1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ed904bf7-0483-fc36-022e-73a0d190ac09")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,552662,e=>{"use strict";var r=e.i(843476);let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var s=e.i(948148),o=e.i(560032),a=e.i(638678),n=e.i(214040),l=e.i(520133),i=e.i(327653);let d=[{value:"en",label:"English"},{value:"es",label:"Español"},{value:"pt",label:"Português"},{value:"fr",label:"Français"},{value:"ar",label:"Ø§ÙØ¹Ø±Ø¨ÙØ©"}];e.s(["default",0,()=>{let{region:e,setRegion:c,language:u,setLanguage:m}=(0,n.useRegion)(),p=(0,l.useRouter)(),h=(0,l.usePathname)(),f=(0,s.useTranslations)("region"),x=[{value:"us",label:f("us")},{value:"non-us",label:f("nonUs")}],g=d.find(e=>e.value===u)?.label??"English";return(0,r.jsxs)(o.Popover,{children:[(0,r.jsx)(o.PopoverTrigger,{asChild:!0,children:(0,r.jsxs)("button",{type:"button","aria-label":`${f("language")} / ${f("region")}`,className:"flex items-center gap-1.5 rounded-md border border-border/50 px-3 h-9 text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:[(0,r.jsx)(t,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:g}),(0,r.jsx)("span",{className:"text-border",children:"|"}),(0,r.jsx)("span",{className:"region-non-us:hidden",children:f("us")}),(0,r.jsx)("span",{className:"hidden region-non-us:inline",children:f("nonUs")})]})}),(0,r.jsxs)(o.PopoverContent,{className:"w-52 p-3 space-y-3 z-[80]",align:"end",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:f("language")}),(0,r.jsxs)(a.Select,{value:u,onValueChange:e=>m(e),children:[(0,r.jsx)(a.SelectTrigger,{className:"w-full h-9 text-sm",children:(0,r.jsx)(a.SelectValue,{})}),(0,r.jsx)(a.SelectContent,{className:"z-[90]",children:d.map(e=>(0,r.jsx)(a.SelectItem,{value:e.value,children:e.label},e.value))})]})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:f("region")}),(0,r.jsxs)(a.Select,{value:e,onValueChange:e=>(e=>{c(e,{pinned:!0});let{search:r,hash:t}=window.location,s=(0,i.withRegionPrefix)(h||"/",e);p.replace(`${s}${r}${t}`,{scroll:!1})})(e),children:[(0,r.jsx)(a.SelectTrigger,{className:"w-full h-9 text-sm",children:(0,r.jsx)(a.SelectValue,{})}),(0,r.jsx)(a.SelectContent,{className:"z-[90]",children:x.map(e=>(0,r.jsx)(a.SelectItem,{value:e.value,children:e.label},e.value))})]})]})]})]})}],552662)},800597,e=>{"use strict";let r,t,s;var o=e.i(843476),a=e.i(271645),n=e.i(948148),l=e.i(861745),i=e.i(520133),d=e.i(618566),c=e.i(657688),u=e.i(224336),m=e.i(664659),p=e.i(475254);let h=(0,p.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var f=e.i(37727),x=e.i(552662),g=e.i(11168),v=e.i(211966),b=e.i(286536),y=e.i(77705),w=e.i(846696),j=e.i(122913),N=e.i(511398),k=e.i(118621),C=e.i(273792),R=e.i(743925),D=e.i(882943),S=e.i(214040),E=e.i(890432),P=e.i(998970),M=e.i(357023),_=e.i(844014),T=e.i(199205),F=e.i(589645);function I({open:e,onOpenChange:r}){let{region:t}=(0,S.useRegion)(),s=(0,l.useLocale)(),i=(0,n.useTranslations)("auth"),[d,c]=(0,a.useState)(()=>(0,P.getRememberMe)()??""),[u,m]=(0,a.useState)(""),[p,h]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!1),[g,v]=(0,a.useState)(()=>!!(0,P.getRememberMe)()),[A,L]=(0,a.useState)(!1),[H,O]=(0,a.useState)(""),[B,z]=(0,a.useState)("login"),[K,$]=(0,a.useState)(""),[V,U]=(0,a.useState)(""),[G,q]=(0,a.useState)({}),[Y,X]=(0,a.useState)(!1),Q=(0,a.useCallback)(()=>{m(""),O(""),z("login"),$(""),U(""),q({}),X(!1)},[]),W=(0,a.useCallback)(e=>{O(""),q({}),X(!1),z(e)},[]),Z=(0,a.useCallback)(()=>{Q(),r(!1)},[Q,r]),J=(0,D.useAuthStore)(e=>e.loggedIn);(0,a.useEffect)(()=>{e&&!0===J&&Z()},[e,J,Z]);let ee=(0,a.useCallback)(async()=>
2{if(d.trim().length<5)return void O(i("errors.emailTooShort"));if(u.length<5)return void O(i("errors.passwordTooShort"));L(!0),O("");try{await E.login(d.trim(),u,t),D.useAuthStore.getState().setLoggedIn(!0),(0,M.k_login)(d.trim(),s);try{let e=await E.getAccount(t);D.useAuthStore.getState().setAccount(e)}catch{(0,_.eventLogin)(d.trim())}g?(0,P.setRememberMe)(d.trim()):(0,P.clearRememberMe)(),w.toast.success(i("toasts.loginSuccess")),Z()}catch{O(i("errors.loginFailed"))}finally{L(!1)}},[d,u,t,s,g,Z,i]),er=(0,a.useCallback)(async()=>{let e=d.trim();if(!e)return void q({email:i("errors.missingEmail")});if(!T.emailSchema.safeParse(e).success)return void q({email:i("errors.emailInvalid")});q({}),L(!0),O("");try{await E.forgotPassword(e,t),w.toast.success(i("toasts.resetEmailSent")),W("reset")}catch{O(i("errors.resetEmailFailed"))}finally{L(!1)}},[d,t,i,W]),et=(0,a.useCallback)(async()=>{let e=K.trim().replace(/ /g,""),r=d.trim(),s=T.resetPasswordSchema.safeParse({email:r,token:e,password:V});if(!s.success){let e={};for(let r of s.error.issues){let t=r.path[0];"email"!==t||e.email?"token"!==t||e.token?"password"!==t||e.password||(e.password=i("errors.passwordComplexity")):e.token=i("errors.tokenRequired"):e.email=i("errors.emailInvalid")}q(e),O("");return}q({}),L(!0),O("");try{await E.confirmForgotPassword({email:r,token:e,password:V},t),w.toast.success(i("toasts.resetSuccess")),m(""),$(""),U(""),X(!1),W("login")}catch{O(i("errors.resetFailed"))}finally{L(!1)}},[d,K,V,t,i,W]);return(0,o.jsx)(j.Dialog,{open:e,onOpenChange:Z,children:(0,o.jsx)(j.DialogContent,{className:"sm:max-w-md",children:(0,o.jsxs)("div",{className:"animate-in fade-in-0 slide-in-from-bottom-2 duration-300",children:["login"===B&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(j.DialogHeader,{children:[(0,o.jsx)(j.DialogTitle,{children:i("login.title")}),(0,o.jsx)(j.DialogDescription,{children:i("login.description")})]}),(0,o.jsxs)("div",{className:"space-y-4 py-2",children:[(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(C.Label,{htmlFor:"login-email",children:i("login.emailLabel")}),(0,o.jsx)(k.Input,{id:"login-email",type:"email",dir:"ltr",placeholder:i("login.emailPlaceholder"),value:d,onChange:e=>c(e.target.value),onKeyDown:e=>"Enter"===e.key&&ee(),autoFocus:!0})]}),(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(C.Label,{htmlFor:"login-password",children:i("login.passwordLabel")}),(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)(k.Input,{id:"login-password",type:p?"text":"password",dir:"ltr",placeholder:i("login.passwordPlaceholder"),value:u,onChange:e=>m(e.target.value),onKeyDown:e=>"Enter"===e.key&&ee(),className:"pr-10"}),(0,o.jsx)("button",{type:"button",onClick:()=>h(e=>!e),"aria-label":p?i("login.hidePassword"):i("login.showPassword"),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:p?(0,o.jsx)(y.EyeOff,{className:"h-4 w-4"}):(0,o.jsx)(b.Eye,{className:"h-4 w-4"})})]})]}),(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(R.Checkbox,{id:"remember-me",checked:g,onCheckedChange:e=>v(!0===e)}),(0,o.jsx)(C.Label,{htmlFor:"remember-me",className:"text-sm text-muted-foreground cursor-pointer",children:i("login.rememberMe")})]}),(0,o.jsx)("button",{type:"button",onClick:()=>W("forgot"),className:"text-sm text-primary hover:text-primary/80 transition-colors",children:i("login.forgotPassword")})]}),H&&(0,o.jsx)("p",{className:"text-sm text-destructive",children:H})]}),(0,o.jsxs)(j.DialogFooter,{className:"gap-2 sm:gap-0",children:[(0,o.jsx)(N.Button,{variant:"outline",onClick:Z,disabled:A,children:i("login.cancel")}),(0,o.jsx)(N.Button,{onClick:ee,disabled:A,className:"bg-button text-button-foreground hover:bg-button/90",children:A?i("login.loggingIn"):i("login.login")})]})]}),"forgot"===B&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(j.DialogHeader,{children:[(0,o.jsx)(j.DialogTitle,{children:i("forgotPassword.title")}),(0,o.jsx)(j.DialogDescription,{children:i("forgotPassword.description")})]}),(0,o.jsxs)("div",{className:"space-y-4 py-2",children:[(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(C.Label,{htmlFor:"forgot-email",children:i("login.emailLabel")}),(0,o.jsx)(k.Input,{id:"forgot-email",type:"email",dir:"ltr",placeholder:i("login.emailPlaceholder"),value:d,onChange:e=>{c(e.target.value),G.email&&q(e=>({...e,email:void 0}))},onKeyDown:e=>"Enter"===e.key&&er(),className:G.email?"border-destructive":"",autoFocus:!0}),G.email&&(0,o.jsx)("p",{className:"text-xs text-destructive",children:G.email})]}),(0,o.jsx)("button",{type:"button",onClick:()=>W("reset"),className:"text-sm text-primary hover:text-primary/80 transition-colors",children:i("forgotPassword.haveToken")}),H&&(0,o.jsx)("p",{className:"text-sm text-destructive",children:H})]}),(0,o.jsxs)(j.DialogFooter,{className:"gap-2 sm:gap-0",children:[(0,o.jsx)(N.Button,{variant:"outline",onClick:()=>W("login"),disabled:A,children:i("forgotPassword.back")}),(0,o.jsx)(N.Button,{onClick:er,disabled:A,children:A?i("forgotPassword.sending"):i("forgotPassword.send")})]})]}),"reset"===B&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(j.DialogHeader,{children:[(0,o.jsx)(j.DialogTitle,{children:i("resetPassword.title")}),(0,o.jsx)(j.DialogDescription,{children:i("resetPassword.description")})]}),(0,o.jsxs)("div",{className:"space-y-4 py-2",children:[(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(C.Label,{htmlFor:"reset-token",children:i("resetPassword.tokenLabel")}),(0,o.jsx)(k.Input,{id:"reset-token",dir:"ltr",placeholder:i("resetPassword.tokenPlaceholder"),value:K,onChange:e=>{$(e.target.value),G.token&&q(e=>({...e,token:void 0}))},className:G.token?"border-destructive":"",autoFocus:!0}),G.token&&(0,o.jsx)("p",{className:"text-xs text-destructive",children:G.token})]}),(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(C.Label,{htmlFor:"reset-email",children:i("login.emailLabel")}),(0,o.jsx)(k.Input,{id:"reset-email",type:"email",dir:"ltr",placeholder:i("login.emailPlaceholder"),value:d,onChange:e=>{c(e.target.value),G.email&&q(e=>({...e,email:void 0}))},className:G.email?"border-destructive":""}),G.email&&(0,o.jsx)("p",{className:"text-xs text-destructive",children:G.email})]}),(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(C.Label,{htmlFor:"reset-password",children:i("resetPassword.newPasswordLabel")}),(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)(k.Input,{id:"reset-password",type:f?"text":"password",dir:"ltr",placeholder:i("login.passwordPlaceholder"),value:V,onChange:e=>{U(e.target.value),Y||X(!0),G.password&&q(e=>({...e,password:void 0}))},onBlur:()=>X(!0),onKeyDown:e=>"Enter"===e.key&&et(),className:`pr-10 ${G.password?"border-destructive":""}`}),(0,o.jsx)("button",{type:"button",onClick:()=>x(e=>!e),"aria-label":f?i("login.hidePassword"):i("login.showPassword"),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:f?(0,o.jsx)(y.EyeOff,{className:"h-4 w-4"}):(0,o.jsx)(b.Eye,{className:"h-4 w-4"})})]}),G.password&&(0,o.jsx)("p",{className:"text-xs text-destructive",children:G.password}),(0,o.jsx)(F.PasswordHints,{value:V,show:Y||V.length>0})]}),H&&(0,o.jsx)("p",{className:"text-sm text-destructive",children:H})]}),(0,o.jsxs)(j.DialogFooter,{className:"gap-2 sm:gap-0",children:[(0,o.jsx)(N.Button,{variant:"outline",onClick:()=>W("forgot"),disabled:A,children:i("forgotPassword.back")}),(0,o.jsx)(N.Button,{onClick:et,disabled:A,children:A?i("resetPassword.resetting"):i("resetPassword.reset")})]})]})]},B)})})}
2let A=(0,p.default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),L=(0,p.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);var H=e.i(381074),O=e.i(890210),B=e.i(981140),z=e.i(820783),K=e.i(30030),$=e.i(369340),V=e.i(248425),U=e.i(75830),G=e.i(586318),q=e.i(726330),Y=e.i(303536),X=e.i(765491),Q=e.i(610772),W=e.i(853660),Z=e.i(774606),J=e.i(296626),ee=e.i(30207),er="rovingFocusGroup.onEntryFocus",et={bubbles:!1,cancelable:!0},es="RovingFocusGroup",[eo,ea,en]=(0,U.createCollection)(es),[el,ei]=(0,K.createContextScope)(es,[en]),[ed,ec]=el(es),eu=a.forwardRef((e,r)=>(0,o.jsx)(eo.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(eo.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(em,{...e,ref:r})})}));eu.displayName=es;var em=a.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:t,orientation:s,loop:n=!1,dir:l,currentTabStopId:i,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...p}=e,h=a.useRef(null),f=(0,z.useComposedRefs)(r,h),x=(0,G.useDirection)(l),[g,v]=(0,$.useControllableState)({prop:i,defaultProp:d??null,onChange:c,caller:es}),[b,y]=a.useState(!1),w=(0,ee.useCallbackRef)(u),j=ea(t),N=a.useRef(!1),[k,C]=a.useState(0);return a.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(er,w),()=>e.removeEventListener(er,w)},[w]),(0,o.jsx)(ed,{scope:t,orientation:s,dir:x,loop:n,currentTabStopId:g,onItemFocus:a.useCallback(e=>v(e),[v]),onItemShiftTab:a.useCallback(()=>y(!0),[]),onFocusableItemAdd:a.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:a.useCallback(()=>C(e=>e-1),[]),children:(0,o.jsx)(V.Primitive.div,{tabIndex:b||0===k?-1:0,"data-orientation":s,...p,ref:f,style:{outline:"none",...e.style},onMouseDown:(0,B.composeEventHandlers)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,B.composeEventHandlers)(e.onFocus,e=>{let r=!N.current;if(e.target===e.currentTarget&&r&&!b){let r=new CustomEvent(er,et);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=j().filter(e=>e.focusable);ex([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),m)}}N.current=!1}),onBlur:(0,B.composeEventHandlers)(e.onBlur,()=>y(!1))})})}),ep="RovingFocusGroupItem",eh=a.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:t,focusable:s=!0,active:n=!1,tabStopId:l,children:i,...d}=e,c=(0,Q.useId)(),u=l||c,m=ec(ep,t),p=m.currentTabStopId===u,h=ea(t),{onFocusableItemAdd:f,onFocusableItemRemove:x,currentTabStopId:g}=m;return a.useEffect(()=>{if(s)return f(),()=>x()},[s,f,x]),(0,o.jsx)(eo.ItemSlot,{scope:t,id:u,focusable:s,active:n,children:(0,o.jsx)(V.Primitive.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...d,ref:r,onMouseDown:(0,B.composeEventHandlers)(e.onMouseDown,e=>{s?m.onItemFocus(u):e.preventDefault()}),onFocus:(0,B.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(u)),onKeyDown:(0,B.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let r=function(e,r,t){var s;let o=(s=e.key,"rtl"!==t?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return ef[o]}(e,m.orientation,m.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===r)o.reverse();else if("prev"===r||"next"===r){var t,s;"prev"===r&&o.reverse();let a=o.indexOf(e.currentTarget);o=m.loop?(t=o,s=a+1,t.map((e,r)=>t[(s+r)%t.length])):o.slice(a+1)}setTimeout(()=>ex(o))}}),children:"function"==typeof i?i({isCurrentTabStop:p,hasTabStop:null!=g}):i})})});eh.displayName=ep;var ef={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ex(e,r=!1){let t=document.activeElement;for(let s of e)if(s===t||(s.focus({preventScroll:r}),document.activeElement!==t))return}var eg=Symbol("radix.slottable");function ev(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eg}var eb=e.i(186312),ey=e.i(985369),ew=["Enter"," "],ej=["ArrowUp","PageDown","End"],eN=["ArrowDown","PageUp","Home",...ej],ek={ltr:[...ew,"ArrowRight"],rtl:[...ew,"ArrowLeft"]},eC={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eR="Menu",[eD,eS,eE]=(0,U.createCollection)(eR),[eP,eM]=(0,K.createContextScope)(eR,[eE,W.createPopperScope,ei]),e_=(0,W.createPopperScope)(),eT=ei(),[eF,eI]=eP(eR),[eA,eL]=eP(eR),eH=e=>{let{__scopeMenu:r,open:t=!1,children:s,dir:n,onOpenChange:l,modal:i=!0}=e,d=e_(r),[c,u]=a.useState(null),m=a.useRef(!1),p=(0,ee.useCallbackRef)(l),h=(0,G.useDirection)(n);return a.useEffect(()=>{let e=()=>{m.current=!0,document.addEventListener("pointerdown",r,{capture:!0,once:!0}),document.addEventListener("pointermove",r,{capture:!0,once:!0})},r=()=>m.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",r,{capture:!0}),document.removeEventListener("pointermove",r,{capture:!0})}},[]),(0,o.jsx)(W.Root,{...d,children:(0,o.jsx)(eF,{scope:r,open:t,onOpenChange:p,content:c,onContentChange:u,children:(0,o.jsx)(eA,{scope:r,onClose:a.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:h,modal:i,children:s})})})};eH.displayName=eR;var eO=a.forwardRef((e,r)=>{let{__scopeMenu:t,...s}=e,a=e_(t);return(0,o.jsx)(W.Anchor,{...a,...s,ref:r})});eO.displayName="MenuAnchor";var eB="MenuPortal",[ez,eK]=eP(eB,{forceMount:void 0}),e$=e=>{let{__scopeMenu:r,forceMount:t,children:s,container:a}=e,n=eI(eB,r);return(0,o.jsx)(ez,{scope:r,forceMount:t,children:(0,o.jsx)(J.Presence,{present:t||n.open,children:(0,o.jsx)(Z.Portal,{asChild:!0,container:a,children:s})})})};e$.displayName=eB;var eV="MenuContent",[eU,eG]=eP(eV),eq=a.forwardRef((e,r)=>{let t=eK(eV,e.__scopeMenu),{forceMount:s=t.forceMount,...a}=e,n=eI(eV,e.__scopeMenu),l=eL(eV,e.__scopeMenu);return(0,o.jsx)(eD.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(J.Presence,{present:s||n.open,children:(0,o.jsx)(eD.Slot,{scope:e.__scopeMenu,children:l.modal?(0,o.jsx)(eY,{...a,ref:r}):(0,o.jsx)(eX,{...a,ref:r})})})})}),eY=a.forwardRef((e,r)=>{let t=eI(eV,e.__scopeMenu),s=a.useRef(null),n=(0,z.useComposedRefs)(r,s);return a.useEffect(()=>{let e=s.current;if(e)return(0,eb.hideOthers)(e)},[]),(0,o.jsx)(eW,{...e,ref:n,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:(0,B.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),eX=a.forwardRef((e,r)=>{let t=eI(eV,e.__scopeMenu);return(0,o.jsx)(eW,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),eQ=((s=a.forwardRef((e,r)=>{let{children:t,...s}=e;if(a.isValidElement(t)){var o;let e,n,l=(o=t,(n=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.
2isReactWarning)?o.ref:(n=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),i=function(e,r){let t={...r};for(let s in r){let o=e[s],a=r[s];/^on[A-Z]/.test(s)?o&&a?t[s]=(...e)=>{let r=a(...e);return o(...e),r}:o&&(t[s]=o):"style"===s?t[s]={...o,...a}:"className"===s&&(t[s]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}(s,t.props);return t.type!==a.Fragment&&(i.ref=r?(0,z.composeRefs)(r,l):l),a.cloneElement(t,i)}return a.Children.count(t)>1?a.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",r=s,(t=a.forwardRef((e,t)=>{let{children:s,...n}=e,l=a.Children.toArray(s),i=l.find(ev);if(i){let e=i.props.children,s=l.map(r=>r!==i?r:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,o.jsx)(r,{...n,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,s):null})}return(0,o.jsx)(r,{...n,ref:t,children:s})})).displayName="MenuContent.ScrollLock.Slot",t),eW=a.forwardRef((e,r)=>{let{__scopeMenu:t,loop:s=!1,trapFocus:n,onOpenAutoFocus:l,onCloseAutoFocus:i,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:h,onDismiss:f,disableOutsideScroll:x,...g}=e,v=eI(eV,t),b=eL(eV,t),y=e_(t),w=eT(t),j=eS(t),[N,k]=a.useState(null),C=a.useRef(null),R=(0,z.useComposedRefs)(r,C,v.onContentChange),D=a.useRef(0),S=a.useRef(""),E=a.useRef(0),P=a.useRef(null),M=a.useRef("right"),_=a.useRef(0),T=x?ey.RemoveScroll:a.Fragment;a.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,Y.useFocusGuards)();let F=a.useCallback(e=>{var r,t;return M.current===P.current?.side&&(r=e,!!(t=P.current?.area)&&function(e,r){let{x:t,y:s}=e,o=!1;for(let e=0,a=r.length-1;e<r.length;a=e++){let n=r[e],l=r[a],i=n.x,d=n.y,c=l.x,u=l.y;d>s!=u>s&&t<(c-i)*(s-d)/(u-d)+i&&(o=!o)}return o}({x:r.clientX,y:r.clientY},t))},[]);return(0,o.jsx)(eU,{scope:t,searchRef:S,onItemEnter:a.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:a.useCallback(e=>{F(e)||(C.current?.focus(),k(null))},[F]),onTriggerLeave:a.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:E,onPointerGraceIntentChange:a.useCallback(e=>{P.current=e},[]),children:(0,o.jsx)(T,{...x?{as:eQ,allowPinchZoom:!0}:void 0,children:(0,o.jsx)(X.FocusScope,{asChild:!0,trapped:n,onMountAutoFocus:(0,B.composeEventHandlers)(l,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,o.jsx)(q.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:h,onDismiss:f,children:(0,o.jsx)(eu,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:s,currentTabStopId:N,onCurrentTabStopIdChange:k,onEntryFocus:(0,B.composeEventHandlers)(c,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,o.jsx)(W.Content,{role:"menu","aria-orientation":"vertical","data-state":rp(v.open),"data-radix-menu-content":"",dir:b.dir,...y,...g,ref:R,style:{outline:"none",...g.style},onKeyDown:(0,B.composeEventHandlers)(g.onKeyDown,e=>{let r=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,s=1===e.key.length;if(r){var o;let r,a,n,l,i,d;"Tab"===e.key&&e.preventDefault(),!t&&s&&(o=e.key,r=S.current+o,a=j().filter(e=>!e.disabled),n=document.activeElement,l=a.find(e=>e.ref.current===n)?.textValue,i=function(e,r,t){var s;let o=r.length>1&&Array.from(r).every(e=>e===r[0])?r[0]:r,a=t?e.indexOf(t):-1,n=(s=Math.max(a,0),e.map((r,t)=>e[(s+t)%e.length]));1===o.length&&(n=n.filter(e=>e!==t));let l=n.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==t?l:void 0}(a.map(e=>e.textValue),r,l),d=a.find(e=>e.textValue===i)?.ref.current,function e(r){S.current=r,window.clearTimeout(D.current),""!==r&&(D.current=window.setTimeout(()=>e(""),1e3))}(r),d&&setTimeout(()=>d.focus()))}let a=C.current;if(e.target!==a||!eN.includes(e.key))return;e.preventDefault();let n=j().filter(e=>!e.disabled).map(e=>e.ref.current);ej.includes(e.key)&&n.reverse(),function(e){let r=document.activeElement;for(let t of e)if(t===r||(t.focus(),document.activeElement!==r))return}(n)}),onBlur:(0,B.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),S.current="")}),onPointerMove:(0,B.composeEventHandlers)(e.onPointerMove,rx(e=>{let r=e.target,t=_.current!==e.clientX;e.currentTarget.contains(r)&&t&&(M.current=e.clientX>_.current?"right":"left",_.current=e.clientX)}))})})})})})})});eq.displayName=eV;var eZ=a.forwardRef((e,r)=>{let{__scopeMenu:t,...s}=e;return(0,o.jsx)(V.Primitive.div,{role:"group",...s,ref:r})});eZ.displayName="MenuGroup";var eJ=a.forwardRef((e,r)=>{let{__scopeMenu:t,...s}=e;return(0,o.jsx)(V.Primitive.div,{...s,ref:r})});eJ.displayName="MenuLabel";var e0="MenuItem",e1="menu.itemSelect",e2=a.forwardRef((e,r)=>{let{disabled:t=!1,onSelect:s,...n}=e,l=a.useRef(null),i=eL(e0,e.__scopeMenu),d=eG(e0,e.__scopeMenu),c=(0,z.useComposedRefs)(r,l),u=a.useRef(!1);return(0,o.jsx)(e4,{...n,ref:c,disabled:t,onClick:(0,B.composeEventHandlers)(e.onClick,()=>{let e=l.current;if(!t&&e){let r=new CustomEvent(e1,{bubbles:!0,cancelable:!0});e.addEventListener(e1,e=>s?.(e),{once:!0}),(0,V.dispatchDiscreteCustomEvent)(e,r),r.defaultPrevented?u.current=!1:i.onClose()}}),onPointerDown:r=>{e.onPointerDown?.(r),u.current=!0},onPointerUp:(0,B.composeEventHandlers)(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:(0,B.composeEventHandlers)(e.onKeyDown,e=>{let r=""!==d.searchRef.current;
2t||r&&" "===e.key||ew.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});e2.displayName=e0;var e4=a.forwardRef((e,r)=>{let{__scopeMenu:t,disabled:s=!1,textValue:n,...l}=e,i=eG(e0,t),d=eT(t),c=a.useRef(null),u=(0,z.useComposedRefs)(r,c),[m,p]=a.useState(!1),[h,f]=a.useState("");return a.useEffect(()=>{let e=c.current;e&&f((e.textContent??"").trim())},[l.children]),(0,o.jsx)(eD.ItemSlot,{scope:t,disabled:s,textValue:n??h,children:(0,o.jsx)(eh,{asChild:!0,...d,focusable:!s,children:(0,o.jsx)(V.Primitive.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...l,ref:u,onPointerMove:(0,B.composeEventHandlers)(e.onPointerMove,rx(e=>{s?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,B.composeEventHandlers)(e.onPointerLeave,rx(e=>i.onItemLeave(e))),onFocus:(0,B.composeEventHandlers)(e.onFocus,()=>p(!0)),onBlur:(0,B.composeEventHandlers)(e.onBlur,()=>p(!1))})})})}),e3=a.forwardRef((e,r)=>{let{checked:t=!1,onCheckedChange:s,...a}=e;return(0,o.jsx)(rt,{scope:e.__scopeMenu,checked:t,children:(0,o.jsx)(e2,{role:"menuitemcheckbox","aria-checked":rh(t)?"mixed":t,...a,ref:r,"data-state":rf(t),onSelect:(0,B.composeEventHandlers)(a.onSelect,()=>s?.(!!rh(t)||!t),{checkForDefaultPrevented:!1})})})});e3.displayName="MenuCheckboxItem";var e5="MenuRadioGroup",[e6,e7]=eP(e5,{value:void 0,onValueChange:()=>{}}),e8=a.forwardRef((e,r)=>{let{value:t,onValueChange:s,...a}=e,n=(0,ee.useCallbackRef)(s);return(0,o.jsx)(e6,{scope:e.__scopeMenu,value:t,onValueChange:n,children:(0,o.jsx)(eZ,{...a,ref:r})})});e8.displayName=e5;var e9="MenuRadioItem",re=a.forwardRef((e,r)=>{let{value:t,...s}=e,a=e7(e9,e.__scopeMenu),n=t===a.value;return(0,o.jsx)(rt,{scope:e.__scopeMenu,checked:n,children:(0,o.jsx)(e2,{role:"menuitemradio","aria-checked":n,...s,ref:r,"data-state":rf(n),onSelect:(0,B.composeEventHandlers)(s.onSelect,()=>a.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});re.displayName=e9;var rr="MenuItemIndicator",[rt,rs]=eP(rr,{checked:!1}),ro=a.forwardRef((e,r)=>{let{__scopeMenu:t,forceMount:s,...a}=e,n=rs(rr,t);return(0,o.jsx)(J.Presence,{present:s||rh(n.checked)||!0===n.checked,children:(0,o.jsx)(V.Primitive.span,{...a,ref:r,"data-state":rf(n.checked)})})});ro.displayName=rr;var ra=a.forwardRef((e,r)=>{let{__scopeMenu:t,...s}=e;return(0,o.jsx)(V.Primitive.div,{role:"separator","aria-orientation":"horizontal",...s,ref:r})});ra.displayName="MenuSeparator";var rn=a.forwardRef((e,r)=>{let{__scopeMenu:t,...s}=e,a=e_(t);return(0,o.jsx)(W.Arrow,{...a,...s,ref:r})});rn.displayName="MenuArrow";var[rl,ri]=eP("MenuSub"),rd="MenuSubTrigger",rc=a.forwardRef((e,r)=>{let t=eI(rd,e.__scopeMenu),s=eL(rd,e.__scopeMenu),n=ri(rd,e.__scopeMenu),l=eG(rd,e.__scopeMenu),i=a.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:c}=l,u={__scopeMenu:e.__scopeMenu},m=a.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return a.useEffect(()=>m,[m]),a.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),c(null)}},[d,c]),(0,o.jsx)(eO,{asChild:!0,...u,children:(0,o.jsx)(e4,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":n.contentId,"data-state":rp(t.open),...e,ref:(0,z.composeRefs)(r,n.onTriggerChange),onClick:r=>{e.onClick?.(r),e.disabled||r.defaultPrevented||(r.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:(0,B.composeEventHandlers)(e.onPointerMove,rx(r=>{l.onItemEnter(r),!r.defaultPrevented&&(e.disabled||t.open||i.current||(l.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{t.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,B.composeEventHandlers)(e.onPointerLeave,rx(e=>{m();let r=t.content?.getBoundingClientRect();if(r){let s=t.content?.dataset.side,o="right"===s,a=r[o?"left":"right"],n=r[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:r.top},{x:n,y:r.top},{x:n,y:r.bottom},{x:a,y:r.bottom}],side:s}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,B.composeEventHandlers)(e.onKeyDown,r=>{let o=""!==l.searchRef.current;e.disabled||o&&" "===r.key||ek[s.dir].includes(r.key)&&(t.onOpenChange(!0),t.content?.focus(),r.preventDefault())})})})});rc.displayName=rd;var ru="MenuSubContent",rm=a.forwardRef((e,r)=>{let t=eK(eV,e.__scopeMenu),{forceMount:s=t.forceMount,...n}=e,l=eI(eV,e.__scopeMenu),i=eL(eV,e.__scopeMenu),d=ri(ru,e.__scopeMenu),c=a.useRef(null),u=(0,z.useComposedRefs)(r,c);return(0,o.jsx)(eD.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(J.Presence,{present:s||l.open,children:(0,o.jsx)(eD.Slot,{scope:e.__scopeMenu,children:(0,o.jsx)(eW,{id:d.contentId,"aria-labelledby":d.triggerId,...n,ref:u,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,B.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,B.composeEventHandlers)(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:(0,B.composeEventHandlers)(e.onKeyDown,e=>{let r=e.currentTarget.contains(e.target),t=eC[i.dir].includes(e.ke
2y);r&&t&&(l.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function rp(e){return e?"open":"closed"}function rh(e){return"indeterminate"===e}function rf(e){return rh(e)?"indeterminate":e?"checked":"unchecked"}function rx(e){return r=>"mouse"===r.pointerType?e(r):void 0}rm.displayName=ru;var rg="DropdownMenu",[rv,rb]=(0,K.createContextScope)(rg,[eM]),ry=eM(),[rw,rj]=rv(rg),rN=e=>{let{__scopeDropdownMenu:r,children:t,dir:s,open:n,defaultOpen:l,onOpenChange:i,modal:d=!0}=e,c=ry(r),u=a.useRef(null),[m,p]=(0,$.useControllableState)({prop:n,defaultProp:l??!1,onChange:i,caller:rg});return(0,o.jsx)(rw,{scope:r,triggerId:(0,Q.useId)(),triggerRef:u,contentId:(0,Q.useId)(),open:m,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(e=>!e),[p]),modal:d,children:(0,o.jsx)(eH,{...c,open:m,onOpenChange:p,dir:s,modal:d,children:t})})};rN.displayName=rg;var rk="DropdownMenuTrigger",rC=a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,disabled:s=!1,...a}=e,n=rj(rk,t),l=ry(t);return(0,o.jsx)(eO,{asChild:!0,...l,children:(0,o.jsx)(V.Primitive.button,{type:"button",id:n.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":n.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...a,ref:(0,z.composeRefs)(r,n.triggerRef),onPointerDown:(0,B.composeEventHandlers)(e.onPointerDown,e=>{!s&&0===e.button&&!1===e.ctrlKey&&(n.onOpenToggle(),n.open||e.preventDefault())}),onKeyDown:(0,B.composeEventHandlers)(e.onKeyDown,e=>{!s&&(["Enter"," "].includes(e.key)&&n.onOpenToggle(),"ArrowDown"===e.key&&n.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});rC.displayName=rk;var rR=e=>{let{__scopeDropdownMenu:r,...t}=e,s=ry(r);return(0,o.jsx)(e$,{...s,...t})};rR.displayName="DropdownMenuPortal";var rD="DropdownMenuContent",rS=a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,n=rj(rD,t),l=ry(t),i=a.useRef(!1);return(0,o.jsx)(eq,{id:n.contentId,"aria-labelledby":n.triggerId,...l,...s,ref:r,onCloseAutoFocus:(0,B.composeEventHandlers)(e.onCloseAutoFocus,e=>{i.current||n.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,B.composeEventHandlers)(e.onInteractOutside,e=>{let r=e.detail.originalEvent,t=0===r.button&&!0===r.ctrlKey,s=2===r.button||t;(!n.modal||s)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rS.displayName=rD,a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(eZ,{...a,...s,ref:r})}).displayName="DropdownMenuGroup";var rE=a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(eJ,{...a,...s,ref:r})});rE.displayName="DropdownMenuLabel";var rP=a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(e2,{...a,...s,ref:r})});rP.displayName="DropdownMenuItem",a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(e3,{...a,...s,ref:r})}).displayName="DropdownMenuCheckboxItem",a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(e8,{...a,...s,ref:r})}).displayName="DropdownMenuRadioGroup",a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(re,{...a,...s,ref:r})}).displayName="DropdownMenuRadioItem",a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(ro,{...a,...s,ref:r})}).displayName="DropdownMenuItemIndicator";var rM=a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(ra,{...a,...s,ref:r})});rM.displayName="DropdownMenuSeparator",a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(rn,{...a,...s,ref:r})}).displayName="DropdownMenuArrow",a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);return(0,o.jsx)(rc,{...a,...s,ref:r})}).displayName="DropdownMenuSubTrigger",a.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...s}=e,a=ry(t);
2return(0,o.jsx)(rm,{...a,...s,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var r_=e.i(526683);let rT=a.forwardRef(({className:e,sideOffset:r=-1,...t},s)=>(0,o.jsx)(rR,{children:(0,o.jsx)(rS,{ref:s,sideOffset:r,className:(0,r_.cn)("z-[80] min-w-[8rem] overflow-hidden rounded-xl border border-border bg-popover p-1.5 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));rT.displayName=rS.displayName;let rF=a.forwardRef(({className:e,inset:r,...t},s)=>(0,o.jsx)(rP,{ref:s,className:(0,r_.cn)("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",e),...t}));rF.displayName=rP.displayName,a.forwardRef(({className:e,inset:r,...t},s)=>(0,o.jsx)(rE,{ref:s,className:(0,r_.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",e),...t})).displayName=rE.displayName;let rI=a.forwardRef(({className:e,...r},t)=>(0,o.jsx)(rM,{ref:t,className:(0,r_.cn)("-mx-1 my-1 h-px bg-border",e),...r}));function rA({inMobile:e=!1,onItemClick:r}){let t=(0,D.useAuthStore)(e=>e.account),{region:s}=(0,S.useRegion)(),l=(0,i.useRouter)(),d=(0,n.useTranslations)("nav"),[c,u]=(0,a.useState)(!1),p=t?t.displayName?.trim()||t.name?.trim()||t.email:"",h=t?.email??"",f=p?p.trim().split(/\s+/).map(e=>e[0]).filter(Boolean).slice(0,2).join("").toUpperCase():"",x=(0,H.dashboardUrlFor)(s),g=()=>{e&&r?.()},v=async()=>{if(!c){u(!0);try{await E.logout(s)}catch{}D.useAuthStore.getState().clear(),g(),l.replace("/"),u(!1)}};return(0,o.jsxs)(rN,{children:[(0,o.jsxs)(rC,{className:"group inline-flex items-center gap-2 rounded-full border border-border bg-background px-1.5 py-1 pr-3 text-sm font-medium text-foreground hover:text-primary transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer",children:[(0,o.jsx)(O.Avatar,{className:"h-7 w-7",children:(0,o.jsx)(O.AvatarFallback,{className:`text-xs bg-primary/10 text-primary font-bold ${f?"animate-in slide-in-from-left-2 fade-in duration-300":""}`,children:f},f||"pending")}),(0,o.jsx)("div",{className:`grid transition-[grid-template-columns] duration-300 ease-out ${p?"grid-cols-[1fr]":"grid-cols-[0fr]"}`,children:(0,o.jsx)("span",{className:"min-w-0 max-w-[120px] overflow-hidden truncate",children:p})}),(0,o.jsx)(m.ChevronDown,{className:"h-3.5 w-3.5 opacity-70 group-hover:text-primary"})]}),(0,o.jsxs)(rT,{align:"end",className:"w-64",children:[(0,o.jsxs)("div",{className:"flex items-center gap-3 px-2 py-2",children:[(0,o.jsx)(O.Avatar,{className:"h-9 w-9",children:(0,o.jsx)(O.AvatarFallback,{className:"text-xs bg-primary/10 text-primary font-bold",children:f})}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:p}),(0,o.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:h})]})]}),(0,o.jsx)(rI,{}),(0,o.jsx)(rF,{asChild:!0,onSelect:g,className:"rounded-full focus:bg-transparent focus:text-primary",children:(0,o.jsxs)("a",{href:x,children:[(0,o.jsx)(A,{className:"mr-2 h-4 w-4"}),d("dashboardShort")]})}),(0,o.jsxs)(rF,{disabled:c,onSelect:e=>{e.preventDefault(),v()},className:"rounded-full text-destructive focus:bg-transparent focus:text-primary",children:[(0,o.jsx)(L,{className:"mr-2 h-4 w-4"}),d("logout")]})]})]})}rI.displayName=rM.displayName;let rL="/assets/E2T_Logo.svg",rH="/assets/E2T_Logo_Dark.svg",rO=(e,r)=>{if("#"===r)return!1;let t=e.replace(/^\/(es|pt|fr|ar)(\/|$)/,"/").replace(/^\/non-us(\/|$)/,"/").replace(/\/+$/,"")||"/";return"/"!==t&&t===(r.replace(/\/+$/,"")||"/")};e.s(["default",0,()=>{let[e,r]=(0,a.useState)(!1),[t,s]=(0,a.useState)(!1),p=(0,i.usePathname)(),b=(0,d.useSearchParams)(),{region:y,hydrated:w}=(0,S.useRegion)(),j=(0,D.useAuthStore)(e=>e.loggedIn),N=(0,a.useRef)(!1),k=(0,a.useRef)(!1),C=(0,n.useTranslations)("nav"),R=(0,n.useTranslations)("common"),E=(0,l.useLocale)(),P=`https://help.earn2trade.com/${E}/`,M="en"===E?"https://blog.earn2trade.com/":`https://blog.earn2trade.com/${E}/`;return(0,a.useEffect)(()=>{r(!1)},[p]),(0,a.useEffect)(()=>
2{if(b?.has("login")||"#login"===window.location.hash){if(!0===j){if(!w||k.current)return;k.current=!0,window.location.replace((0,H.dashboardUrlFor)(y));return}N.current||(N.current=!0,s(!0))}},[b,j,w,y]),(0,a.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,o.jsxs)("nav",{className:"border-b border-border/50 relative z-[60]",children:[(0,o.jsxs)("div",{className:"mx-auto flex max-w-6xl items-center justify-between px-6 py-4",children:[(0,o.jsxs)(u.default,{to:"/",children:[(0,o.jsx)(c.default,{src:(0,v.assetSrc)(rL),alt:R("brandLogoAlt"),width:221,height:31,className:"h-6 w-auto hidden dark:block"}),(0,o.jsx)(c.default,{src:(0,v.assetSrc)(rH),alt:R("brandLogoAlt"),width:221,height:31,className:"h-6 w-auto block dark:hidden"})]}),(0,o.jsxs)("div",{className:"hidden md:flex items-center gap-6",children:[(0,o.jsxs)("div",{className:"relative group",children:[(0,o.jsxs)("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors flex items-center gap-1 cursor-pointer",children:[C("products"),(0,o.jsx)(m.ChevronDown,{className:"h-3.5 w-3.5"})]}),(0,o.jsx)("div",{className:"absolute left-0 top-full pt-2 hidden group-hover:block z-50",children:(0,o.jsxs)("div",{className:"w-56 rounded-lg border border-border bg-popover p-1.5 shadow-lg",children:[(0,o.jsx)(u.default,{to:"/trader-career-path",className:`block rounded-full px-3 py-2 text-sm transition-colors ${rO(p,"/trader-career-path")?"text-primary font-medium":"text-popover-foreground hover:text-primary"}`,children:C("tcpFull")}),(0,o.jsx)(u.default,{to:"/gauntlet-mini",className:`block rounded-full px-3 py-2 text-sm transition-colors ${rO(p,"/gauntlet-mini")?"text-primary font-medium":"text-popover-foreground hover:text-primary"}`,children:C("gauFull")}),(0,o.jsx)(u.default,{to:"/beginner-crash-course",className:`block rounded-full px-3 py-2 text-sm transition-colors ${rO(p,"/beginner-crash-course")?"text-primary font-medium":"text-popover-foreground hover:text-primary"}`,children:C("bccFull")})]})})]}),(0,o.jsxs)("div",{className:"relative group/resources",children:[(0,o.jsxs)("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors flex items-center gap-1 cursor-pointer",children:[C("resources"),(0,o.jsx)(m.ChevronDown,{className:"h-3.5 w-3.5"})]}),(0,o.jsx)("div",{className:"absolute left-0 top-full pt-2 hidden group-hover/resources:block z-50",children:(0,o.jsxs)("div",{className:"w-48 rounded-lg border border-border bg-popover p-1.5 shadow-lg",children:[(0,o.jsx)(u.default,{to:"/about-us",className:`block rounded-full px-3 py-2 text-sm transition-colors ${rO(p,"/about-us")?"text-primary font-medium":"text-popover-foreground hover:text-primary"}`,children:C("aboutUs")}),(0,o.jsx)(u.default,{to:"/partners",className:`block rounded-full px-3 py-2 text-sm transition-colors ${rO(p,"/partners")?"text-primary font-medium":"text-popover-foreground hover:text-primary"}`,children:C("partners")}),(0,o.jsx)(u.default,{to:"/pledge",className:`block rounded-full px-3 py-2 text-sm transition-colors ${rO(p,"/pledge")?"text-primary font-medium":"text-popover-foreground hover:text-primary"}`,children:C("pledge")}),(0,o.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",className:"block rounded-full px-3 py-2 text-sm text-popover-foreground hover:text-primary transition-colors",children:C("blog")}),(0,o.jsx)("a",{href:P,target:"_blank",rel:"noopener noreferrer",className:"block rounded-full px-3 py-2 text-sm text-popover-foreground hover:text-primary transition-colors",children:C("help")})]})})]}),(0,o.jsx)("span",{className:"contents logged-in:hidden",children:(0,o.jsx)("button",{onClick:()=>s(!0),className:"inline-flex items-center justify-center h-9 rounded-full px-3 text-sm font-medium bg-foreground text-background dark:text-button-foreground hover:bg-foreground
2/90 transition-colors cursor-pointer",children:C("login")})}),(0,o.jsx)("span",{className:"hidden logged-in:contents",children:(0,o.jsx)(rA,{})}),(0,o.jsx)(g.default,{}),(0,o.jsx)(x.default,{})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2 md:hidden",children:[(0,o.jsx)("span",{className:"contents logged-in:hidden",children:(0,o.jsx)("button",{onClick:()=>s(!0),className:"inline-flex items-center justify-center h-8 rounded-full px-3 text-sm font-medium bg-foreground text-background dark:text-button-foreground hover:bg-foreground/90 transition-colors cursor-pointer",children:C("login")})}),(0,o.jsx)("span",{className:"hidden logged-in:contents",children:(0,o.jsx)(rA,{})}),(0,o.jsx)("button",{className:"p-2 text-foreground cursor-pointer",onClick:()=>r(!e),"aria-label":C("toggleMenu"),children:e?(0,o.jsx)(f.X,{className:"h-5 w-5"}):(0,o.jsx)(h,{className:"h-5 w-5"})})]})]}),e&&(0,o.jsxs)("div",{className:"md:hidden fixed inset-0 z-[70] bg-background overflow-y-auto",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border/50",children:[(0,o.jsxs)(u.default,{to:"/",onClick:()=>r(!1),children:[(0,o.jsx)(c.default,{src:(0,v.assetSrc)(rL),alt:R("brandLogoAlt"),width:221,height:31,className:"h-6 w-auto hidden dark:block"}),(0,o.jsx)(c.default,{src:(0,v.assetSrc)(rH),alt:R("brandLogoAlt"),width:221,height:31,className:"h-6 w-auto block dark:hidden"})]}),(0,o.jsx)("button",{onClick:()=>r(!1),className:"p-2 text-foreground cursor-pointer","aria-label":C("closeMenu"),children:(0,o.jsx)(f.X,{className:"h-5 w-5"})})]}),(0,o.jsxs)("div",{className:"px-6 py-6 space-y-1",children:[(0,o.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground px-3 pt-2 pb-1",children:C("products")}),(0,o.jsx)(u.default,{to:"/trader-career-path",onClick:()=>r(!1),className:`block px-3 py-3 text-base transition-colors ${rO(p,"/trader-career-path")?"text-primary font-medium bg-primary/10 rounded-md":"text-foreground/90 hover:text-foreground"}`,children:C("tcpFull")}),(0,o.jsx)(u.default,{to:"/gauntlet-mini",onClick:()=>r(!1),className:`block px-3 py-3 text-base transition-colors ${rO(p,"/gauntlet-mini")?"text-primary font-medium bg-primary/10 rounded-md":"text-foreground/90 hover:text-foreground"}`,children:C("gauFull")}),(0,o.jsx)(u.default,{to:"/beginner-crash-course",onClick:()=>r(!1),className:`block px-3 py-3 text-base transition-colors ${rO(p,"/beginner-crash-course")?"text-primary font-medium bg-primary/10 rounded-md":"text-foreground/90 hover:text-foreground"}`,children:C("bccFull")}),(0,o.jsx)("div",{className:"border-t border-border/30 my-2"}),(0,o.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground px-3 pt-2 pb-1",children:C("resources")}),(0,o.jsx)(u.default,{to:"/about-us",onClick:()=>r(!1),className:`block px-3 py-3 text-base transition-colors ${rO(p,"/about-us")?"text-primary font-medium bg-primary/10 rounded-md":"text-foreground/90 hover:text-foreground"}`,children:C("aboutUs")}),(0,o.jsx)(u.default,{to:"/partners",onClick:()=>r(!1),className:`block px-3 py-3 text-base transition-colors ${rO(p,"/partners")?"text-primary font-medium bg-primary/10 rounded-md":"text-foreground/90 hover:text-foreground"}`,children:C("partners")}),(0,o.jsx)(u.default,{to:"/pledge",onClick:()=>r(!1),className:`block px-3 py-3 text-base transition-colors ${rO(p,"/pledge")?"text-primary font-medium bg-primary/10 rounded-md":"text-foreground/90 hover:text-foreground"}`,children:C("pledge")}),(0,o.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",onClick:()=>r(!1),className:"block px-3 py-3 text-base text-foreground/90 hover:text-foreground transition-colors",children:C("blog")}),(0,o.jsx)("a",{href:P,target:"_blank",rel:"noopener noreferrer",onClick:()=>r(!1),className:"block px-3 py-3 text-base text-foreground/90 hover:text-foreground transition-colors",children:C("help")}),(0,o.jsx)("div",{className:"border-t border-border/30 my-2"}),(0,o.jsxs)("div",{className:"flex items-center justify-end gap-3 pt-2",children:[(0,o.jsx)(g.default,{}),(0,o.jsx)(x.default,{})]})]})]}),(0,o.jsx)(I,{open:t,onOpenChange:s})]})}],800597)},343432,e=>{"use strict";let r=(0,e.i(475254).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
20 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);e.s(["Phone",0,r],343432)},263488,e=>{"use strict";let r=(0,e.i(475254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,r],263488)},279762,743390,e=>{"use strict";e.i(247167);var r=e.i(843476),t=e.i(271645),s=e.i(861745),o=e.i(948148),a=e.i(657688),n=e.i(224336),l=e.i(511398),i=e.i(343432),d=e.i(263488);let c=(0,e.i(475254).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);var u=e.i(214040),m=e.i(114518),p=e.i(122913);let h="https://www.finra.org/rules-guidance/rulebooks/finra-rules/2270",f=({locale:e})=>{switch(e){case"es":return(0,r.jsxs)("p",{children:["Para ver el texto completo, visita"," ",(0,r.jsx)("a",{target:"_blank",rel:"noreferrer nofollow",href:h,className:"text-primary underline-offset-2 hover:underline",children:"este enlace."})]});case"pt":return(0,r.jsxs)("p",{children:["Para o texto completo, visite"," ",(0,r.jsx)("a",{target:"_blank",rel:"noreferrer nofollow",href:h,className:"text-primary underline-offset-2 hover:underline",children:"este link."})]});case"fr":return(0,r.jsxs)("p",{children:["Pour consulter le texte complet, veuillez visiter"," ",(0,r.jsx)("a",{target:"_blank",rel:"noreferrer nofollow",href:h,className:"text-primary underline-offset-2 hover:underline",children:"ce lien."})]});case"ar":return(0,r.jsxs)("p",{children:["ÙÙØØµÙ٠عÙ٠اÙÙØµ اÙÙØ§Ù
ÙØ ÙØ±Ø¬Ù Ø²ÙØ§Ø±Ø©"," ",(0,r.jsx)("a",{target:"_blank",rel:"noreferrer nofollow",href:h,className:"text-primary underline-offset-2 hover:underline",children:"ÙØ°Ø§ Ø§ÙØ±Ø§Ø¨Ø·."})]});case"en":return(0,r.jsxs)("p",{children:["For the full text, please visit"," ",(0,r.jsx)("a",{target:"_blank",rel:"noreferrer nofollow",href:h,className:"text-primary underline-offset-2 hover:underline",children:"this link."})]});default:return null}},x=()=>(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("p",{children:'You should consider the following points before engaging in a day-trading strategy. For purposes of this notice, a "day-trading strategy" means an overall trading strategy characterized by the regular transmission by a customer of intra-day orders to effect both purchase and sale transactions in the same security or securities.'}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Day trading can be extremely risky."})," ","Day trading generally is not appropriate for someone of limited resources and limited investment or trading experience and low risk tolerance. You should be prepared to lose all of the funds that you use for day trading. In particular, you should not fund day-trading activities with retirement savings, student loans, second mortgages, emergency funds, funds set aside for purposes such as education or home ownership, or funds required to meet your living expenses. Further, certain evidence indicates that an investment of less than $50,000 will significantly impair the ability of a day trader to make a profit. Of course, an investment of $50,000 or more will in no way guarantee success."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Be cautious of claims of large profits from day trading."})," ","You should be wary of advertisements or other statements that emphasize the potential for large profits in day trading. Day trading can also lead to large and immediate financial losses."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Day trading requires knowledge of securities markets."})," ","Day trading requires in-depth knowledge of the securities markets and trading techniques and strategies. In attempting to profit through day trading, you must compete with professional, licensed traders employed by securities firms. You should have appropriate experience before engaging in day trading."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Day trading requires knowledge of a firm's operations."})," ","You should be familiar with a securities firm's business practices, including the operation of the firm's order execution systems and procedures. Under certain market conditions, you may find it difficult or impossible to liquidate a position quickly at a reasonable price. This can occur, for example, when the market for a stock suddenly drops, or if trading is halted due to recent news events or unusual trading activity. The more volatile a stock is, the greater the likelihood that problems may be encountered in executing a transaction. In addition to normal market r
2isks, you may experience losses due to system failures."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Day trading will generate substantial commissions, even if the per trade cost is low."})," ","Day trading involves aggressive trading, and generally you will pay commissions on each trade. The total daily commissions that you pay on your trades will add to your losses or significantly reduce your earnings. For instance, assuming that a trade costs $16 and an average of 29 transactions are conducted per day, an investor would need to generate an annual profit of $111,360 just to cover commission expenses."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Day trading on margin or short selling may result in losses beyond your initial investment."})," ","When you day trade with funds borrowed from a firm or someone else, you can lose more than the funds you originally placed at risk. A decline in the value of the securities that are purchased may require you to provide additional funds to the firm to avoid the forced sale of those securities or other securities in your account. Short selling as part of your day-trading strategy also may lead to extraordinary losses, because you may have to purchase a stock at a very high price in order to cover a short position."]})]}),g=({locale:e})=>(0,r.jsxs)("div",{className:"text-sm text-muted-foreground leading-relaxed space-y-4",children:[(0,r.jsx)(f,{locale:e}),(0,r.jsx)(x,{})]}),v=["en","es","pt","fr","ar"],b=({open:e,onOpenChange:t})=>{let a,n=(0,o.useTranslations)("footer.disclaimerTitles"),l=(a=(0,s.useLocale)(),v.includes(a)?a:"en");return(0,r.jsx)(p.Dialog,{open:e,onOpenChange:t,children:(0,r.jsxs)(p.DialogContent,{className:"sm:max-w-3xl sm:max-h-[85vh] sm:overflow-y-auto",children:[(0,r.jsx)(p.DialogHeader,{children:(0,r.jsx)(p.DialogTitle,{children:n("finra")})}),(0,r.jsx)(g,{locale:l})]})})};var y=e.i(211966);function w(){let e=new Intl.DateTimeFormat("en-CA",{timeZone:"America/Chicago",year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date);return e>="2026-09-03"&&e<"2026-09-08"}e.s(["isMarketHolidaysBannerActive",0,w],743390);let j={en:"https://manage.kmail-lists.com/subscriptions/subscribe?a=VfvQhA&g=XnKNJ7",es:"https://manage.kmail-lists.com/subscriptions/subscribe?a=VfvQhA&g=VkQSvd",pt:"https://manage.kmail-lists.com/subscriptions/subscribe?a=VfvQhA&g=RKimdQ",fr:"https://manage.kmail-lists.com/subscriptions/subscribe?a=VfvQhA&g=UtfizZ",ar:"https://manage.kmail-lists.com/subscriptions/subscribe?a=VfvQhA&g=RSxRL7"},N={en:{facebook:"https://www.facebook.com/earn2trade",youtube:"https://www.youtube.com/earn2trade/",instagram:"https://www.instagram.com/earn2trade/",twitter:"https://twitter.com/earn2trade"},es:{facebook:"https://www.facebook.com/Earn2TradeEspanol/",youtube:"https://www.youtube.com/Earn2Trade_esp",instagram:"https://www.instagram.com/earn2trade_esp/",twitter:"https://x.com/earn2trade_esp"},pt:{facebook:"https://www.facebook.com/Earn2TradeBrasil/",youtube:"https://www.youtube.com/@earn2trade_brasil",instagram:"https://www.instagram.com/earn2trade_brasil/",twitter:"https://x.com/earn2trade_br"},fr:{facebook:"https://www.facebook.com/Earn2TradeFR",youtube:"https://www.youtube.com/@earn2trade_fr",instagram:"https://www.instagram.com/earn2trade_fr/",twitter:"https://x.com/earn2trade_fr"},ar:{facebook:"https://www.facebook.com/Earn2TradeArabic/",youtube:"https://www.youtube.com/@earn2trade_ar",instagram:"https://www.instagram.com/earn2trade_ar/",twitter:"https://x.com/earn2trade_ar"}},k={us:{company:"Earn2Trade LLC",lines:["30 N Gould St STE 4000, Sheridan, WY 82801"]},"non-us":{company:"Bahia Education Services LLC",lines:["2nd Floor, Supreme Court Complex","Umm Hurair 2, Dubai, United Arab Emirates"],phone:"+971585822846"}},C=({children:e,href:t})=>(0,r.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"flex h-9 w-9 items-center justify-center rounded-full border border-border/50 text-muted-foreground hover:text-foreground hover:border-primary/40 transition-colors",children:e});e.s(["default",0,()=>{let e=(0,o.useTranslations)("footer"),p=(0,o.useTranslations)("common"),h=(0,s.useLocale)(),f=new Date().getFullYear(),{region:x}=(0,u.useRegion)(),g=k[x],v=N[h],[R,D]=(0,t.useState)(!1),[S,E]=(0,t.useState)(!1);(0,t.useEffect)(()=>{E(w())},[]);let P=[{label:e("disclaimer"),href:"/disclaimer"},{label:e("terms"),href:"/terms-and-conditions"},{label:e("affiliates"),href:"/affiliates"},{label:e("supportPolicy"),href:"/customer-support-policy"},..."us"===x?[]:[{label:e("privacy"),href:"/privacy-policy"}]];return(0,r.jsxs)("footer",{className:"border-t border-border/50 bg-secondary",children:[(0,r.jsx)("div",{className:"mx-auto max-w-6xl px-6 pt-16",children:(0,r.jsxs)("div",{className:"rounded-xl border border-border/50 bg-card/50 p-6 sm:p-8 text-center",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-2",children:e("newsletter.title")}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mb-4 max-w-md
2sm:max-w-none mx-auto",children:e("newsletter.subtitle")}),(0,r.jsx)(l.Button,{size:"sm",className:"gap-2 bg-primary text-primary-foreground hover:bg-primary/90",asChild:!0,children:(0,r.jsxs)("a",{href:j[h],target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(d.Mail,{className:"h-4 w-4"}),e("newsletter.cta")]})})]})}),(0,r.jsx)("div",{className:"mx-auto max-w-6xl px-6 py-16 pb-8",children:(0,r.jsxs)("div",{className:"grid gap-12 sm:grid-cols-3",children:[(0,r.jsxs)("div",{className:"text-center sm:text-start",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-4",children:e("community.title")}),(0,r.jsx)(l.Button,{size:"sm",className:"gap-2 mb-6 bg-stat-highlight text-background hover:bg-stat-highlight/90",asChild:!0,children:(0,r.jsxs)("a",{href:"https://discord.gg/earn2trade",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z"})}),e("community.joinDiscord")]})}),(0,r.jsxs)("div",{className:"flex gap-3 justify-center sm:justify-start",children:[(0,r.jsx)(C,{href:v.facebook,children:(0,r.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}),(0,r.jsx)(C,{href:v.youtube,children:(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,r.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814z"}),(0,r.jsx)("polygon",{fill:"hsl(var(--background))",points:"9.545,15.568 15.818,12 9.545,8.432"})]})}),(0,r.jsx)(C,{href:v.instagram,children:(0,r.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"})})}),(0,r.jsx)(C,{href:v.twitter,children:(0,r.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),(0,r.jsx)(C,{href:"https://www.linkedin.com/company/earn2trade/",children:(0,r.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"
2currentColor",children:(0,r.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})})]})]}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-4",children:e("contactSupport.title")}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:e("contactSupport.subtitle")}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,r.jsx)("a",{href:"https://api.whatsapp.com/send/?phone=13376066535",target:"_blank",rel:"noopener noreferrer","aria-label":e("contactSupport.whatsappAria"),className:"flex items-center justify-center h-10 w-10 rounded-lg border border-border bg-card/80 text-primary hover:text-foreground transition-colors cursor-pointer",children:(0,r.jsx)(i.Phone,{className:"h-4 w-4"})}),(0,r.jsx)("a",{href:"mailto:[email protected]","aria-label":e("contactSupport.emailAria"),className:"flex items-center justify-center h-10 w-10 rounded-lg border border-border bg-card/80 text-primary hover:text-foreground transition-colors cursor-pointer",children:(0,r.jsx)(d.Mail,{className:"h-4 w-4"})}),(0,r.jsx)("button",{type:"button","aria-label":e("contactSupport.chatAria"),onClick:()=>{let e=window.Intercom;e?e("show"):window.location.href="mailto:[email protected]"},className:"flex items-center justify-center h-10 w-10 rounded-lg border border-border bg-card/80 text-primary hover:text-foreground transition-colors cursor-pointer",children:(0,r.jsx)(c,{className:"h-4 w-4"})})]})]}),(0,r.jsx)("div",{className:"flex justify-center sm:justify-end",children:(0,r.jsx)(m.default,{templateId:"53aa8807dec7e10d38f59f32",height:"120px",width:"180px"})})]})}),(0,r.jsx)("div",{className:"border-t border-border/50",children:(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-6 py-10",children:[(0,r.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-2 mb-8 text-sm",children:P.map(e=>(0,r.jsx)(n.default,{to:e.href,className:"text-muted-foreground hover:text-foreground transition-colors",children:e.label},e.label))}),(0,r.jsxs)("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-foreground mb-3",children:e("office.title")}),(0,r.jsxs)("address",{className:"not-italic text-sm text-muted-foreground leading-relaxed",children:[g.company,(0,r.jsx)("br",{}),g.lines.map(e=>(0,r.jsxs)("span",{children:[e,(0,r.jsx)("br",{})]},e)),g.phone?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:`tel:${g.phone}`,className:"hover:text-foreground transition-colors",children:g.phone}),(0,r.jsx)("br",{})]}):null]})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center md:items-end md:justify-end lg:col-start-3",children:[(0,r.jsx)(a.default,{src:(0,y.assetSrc)("/assets/E2T_Logo.svg"),alt:p("brandLogoAlt"),width:221,height:31,className:"h-6 w-auto mb-4 hidden dark:block"}),(0,r.jsx)(a.default,{src:(0,y.assetSrc)("/assets/E2T_Logo_Dark.svg"),alt:p("brandLogoAlt"),width:221,height:31,className:"h-6 w-auto mb-4 block dark:hidden"}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:`\xa9 Copyright ${f} ${g.company}`})]})]})]})}),(0,r.jsx)("div",{className:"border-t border-border/50",children:(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-6 py-8 space-y-6",children:["non-us"===x?(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-foreground mb-1.5",children:e("disclaimerTitles.license")}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/80 leading-relaxed",children:e("disclaimerBodies.license")})]}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-foreground mb-1.5",children:e("disclaimerTitles.exam")}
2),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/80 leading-relaxed",children:e("disclaimerBodies.exam")})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-foreground mb-1.5",children:e("disclaimerTitles.instruments")}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/80 leading-relaxed",children:e("disclaimerBodies.instruments")})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-foreground mb-1.5",children:e("disclaimerTitles.risk")}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/80 leading-relaxed",children:e("disclaimerBodies.risk")})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-foreground mb-1.5",children:e("disclaimerTitles.performance")}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/80 leading-relaxed",children:e("disclaimerBodies.performance")})]}),"us"===x?(0,r.jsxs)("button",{type:"button",onClick:()=>D(!0),"aria-haspopup":"dialog",className:"block w-full text-start rounded-sm transition-colors hover:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 cursor-pointer group",children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-foreground mb-1.5 group-hover:text-primary transition-colors",children:e("disclaimerTitles.finra")}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground/80 leading-relaxed",children:[e("disclaimerBodies.finra")," ",(0,r.jsx)("span",{className:"text-primary underline-offset-2 group-hover:underline",children:e("disclaimerBodies.finraReadMore")})]})]}):null]})}),"us"===x?(0,r.jsx)(b,{open:R,onOpenChange:D}):null,S?(0,r.jsx)("div",{className:"h-16"}):null]})}],279762)}]); 3 4//# debugId=ed904bf7-0483-fc36-022e-73a0d190ac09
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.