(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3768],{709:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(1847).A)("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},1595:(e,t,s)=>{Promise.resolve().then(s.bind(s,9712))},5426:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(1847).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},5917:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(1847).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},9712:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var a=s(5155),r=s(2115),l=s(5504),d=s(709),n=s(5917),i=s(5426),c=s(7801);function x(){let[e,t]=(0,r.useState)("LOADING"),[s,x]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/auth/me").then(e=>e.ok?e.json():null).then(e=>{var s;(null==e||null==(s=e.user)?void 0:s.referralCode)&&t(e.user.referralCode)})},[]);let o="".concat(window.location.origin,"/register?ref=").concat(e);return(0,a.jsx)(l.N,{children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-white",children:"Referral Program & Rewards"}),(0,a.jsx)("p",{className:"mt-1 text-xs text-[#848E9C]",children:"Invite friends to trade on LionexBridge and earn internal fee credit rewards."})]}),(0,a.jsxs)("div",{className:"rounded-2xl border border-[#2B313A] bg-[#181A20] p-6 space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(d.A,{className:"h-5 w-5 text-[#F0B90B]"}),(0,a.jsx)("h3",{className:"font-bold text-white text-base",children:"Your Exclusive Referral Link"})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,a.jsx)("input",{type:"text",readOnly:!0,value:o,className:"flex-1 rounded-xl border border-[#2B313A] bg-[#0B0E11] px-4 py-2.5 font-mono text-xs text-white focus:outline-none"}),(0,a.jsxs)("button",{onClick:()=>{navigator.clipboard.writeText(o),x(!0),setTimeout(()=>x(!1),2e3)},className:"flex items-center justify-center space-x-1.5 rounded-xl bg-[#F0B90B] px-5 py-2.5 text-xs font-bold text-[#0B0E11] hover:bg-[#FCD535]",children:[s?(0,a.jsx)(n.A,{className:"h-4 w-4"}):(0,a.jsx)(i.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:s?"Copied!":"Copy Link"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 border-t border-[#2B313A] pt-4 text-xs",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-[#848E9C]",children:"Referral Code:"}),(0,a.jsx)("p",{className:"font-mono text-base font-bold text-white mt-0.5",children:e})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-[#848E9C]",children:"Reward Standard:"}),(0,a.jsx)("p",{className:"font-mono text-base font-bold text-[#0ECB81] mt-0.5",children:"10% Platform Fee Credit"})]})]})]}),(0,a.jsxs)("div",{className:"rounded-2xl border border-amber-500/20 bg-amber-500/5 p-6 text-xs text-[#848E9C] space-y-1.5",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 font-bold text-white",children:[(0,a.jsx)(c.A,{className:"h-4 w-4 text-amber-500"}),(0,a.jsx)("span",{children:"Anti-Abuse & Reward Rules"})]}),(0,a.jsx)("p",{className:"leading-relaxed",children:"Commissions are granted strictly as internal non-withdrawable fee credit offsets on completed trades. Wash trading, duplicate accounts, and circular referrals are automatically detected and lead to account restriction."})]})]})})}}},e=>{e.O(0,[2619,2473,8774,5504,8441,1255,7358],()=>e(e.s=1595)),_N_E=e.O()}]);