@igamingcareer/igaming-components 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +121 -47
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7810,9 +7810,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
7810
7810
|
window.dataLayer = window.dataLayer || [];
|
|
7811
7811
|
window.dataLayer.push({ event: 'consent_granted' });
|
|
7812
7812
|
// gtag('consent', 'update', { ad_storage: 'granted', analytics_storage: 'granted' });
|
|
7813
|
-
`})})}function mj(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function xT(...r){return e=>{let a=!1;const n=r.map(s=>{const o=mj(s,e);return!a&&typeof o=="function"&&(a=!0),o});if(a)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():mj(r[s],null)}}}}function yC(...r){return g.useCallback(xT(...r),r)}function gT(r,e=[]){let a=[];function n(o,c){const l=g.createContext(c),d=a.length;a=[...a,c];const h=p=>{var v;const{scope:y,children:m,...x}=p,k=((v=y==null?void 0:y[r])==null?void 0:v[d])||l,f=g.useMemo(()=>x,Object.values(x));return t.jsx(k.Provider,{value:f,children:m})};h.displayName=o+"Provider";function u(p,y){var k;const m=((k=y==null?void 0:y[r])==null?void 0:k[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[h,u]}const s=()=>{const o=a.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||o;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return s.scopeName=r,[n,vT(s,...e)]}function vT(...r){const e=r[0];if(r.length===1)return e;const a=()=>{const n=r.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(o)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return a.scopeName=e.scopeName,a}function kj(r,e,{checkForDefaultPrevented:a=!0}={}){return function(s){if(r==null||r(s),a===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}var Ab=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},MT=g[" useInsertionEffect ".trim().toString()]||Ab;function wT({prop:r,defaultProp:e,onChange:a=()=>{},caller:n}){const[s,o,c]=bT({defaultProp:e,onChange:a}),l=r!==void 0,d=l?r:s;{const u=g.useRef(r!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=CT(u)?u(r):u;y!==r&&((p=c.current)==null||p.call(c,y))}else o(u)},[l,r,o,c]);return[d,h]}function bT({defaultProp:r,onChange:e}){const[a,n]=g.useState(r),s=g.useRef(a),o=g.useRef(e);return MT(()=>{o.current=e},[e]),g.useEffect(()=>{var c;s.current!==a&&((c=o.current)==null||c.call(o,a),s.current=a)},[a,s]),[a,n,o]}function CT(r){return typeof r=="function"}function PI(r){const e=g.useRef({value:r,previous:r});return g.useMemo(()=>(e.current.value!==r&&(e.current.previous=e.current.value,e.current.value=r),e.current.previous),[r])}var jT=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function _I(r){const[e,a]=g.useState(void 0);return jT(()=>{if(r){a({width:r.offsetWidth,height:r.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let c,l;if("borderBoxSize"in o){const d=o.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=r.offsetWidth,l=r.offsetHeight;a({width:c,height:l})});return n.observe(r,{box:"border-box"}),()=>n.unobserve(r)}else a(void 0)},[r]),e}function LT(r,e){return g.useReducer((a,n)=>e[a][n]??a,r)}var qI=r=>{const{present:e,children:a}=r,n=ST(e),s=typeof a=="function"?a({present:n.isPresent}):g.Children.only(a),o=yC(n.ref,IT(s));return typeof a=="function"||n.isPresent?g.cloneElement(s,{ref:o}):null};qI.displayName="Presence";function ST(r){const[e,a]=g.useState(),n=g.useRef(null),s=g.useRef(r),o=g.useRef("none"),c=r?"mounted":"unmounted",[l,d]=LT(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=mo(n.current);o.current=l==="mounted"?h:"none"},[l]),Ab(()=>{const h=n.current,u=s.current;if(u!==r){const y=o.current,m=mo(h);r?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=r}},[r,d]),Ab(()=>{if(e){let h;const u=e.ownerDocument.defaultView??window,p=m=>{const k=mo(n.current).includes(CSS.escape(m.animationName));if(m.target===e&&k&&(d("ANIMATION_END"),!s.current)){const f=e.style.animationFillMode;e.style.animationFillMode="forwards",h=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},y=m=>{m.target===e&&(o.current=mo(n.current))};return e.addEventListener("animationstart",y),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{u.clearTimeout(h),e.removeEventListener("animationstart",y),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,a(h)},[])}}function mo(r){return(r==null?void 0:r.animationName)||"none"}function IT(r){var n,s;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,a=e&&"isReactWarning"in e&&e.isReactWarning;return a?r.ref:(e=(s=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:s.get,a=e&&"isReactWarning"in e&&e.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var NT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mC=NT.reduce((r,e)=>{const a=ha(`Primitive.${e}`),n=g.forwardRef((s,o)=>{const{asChild:c,...l}=s,d=c?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(d,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Aw="Checkbox",[AT,LR]=gT(Aw),[PT,kC]=AT(Aw);function _T(r){const{__scopeCheckbox:e,checked:a,children:n,defaultChecked:s,disabled:o,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=r,[y,m]=wT({prop:a,defaultProp:s??!1,onChange:d,caller:Aw}),[x,k]=g.useState(null),[f,v]=g.useState(null),M=g.useRef(!1),L=x?!!c||!!x.closest("form"):!0,S={checked:y,disabled:o,setChecked:m,control:x,setControl:k,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:M,required:h,defaultChecked:Aa(s)?!1:s,isFormControl:L,bubbleInput:f,setBubbleInput:v};return t.jsx(PT,{scope:e,...S,children:qT(p)?p(S):n})}var zI="CheckboxTrigger",TI=g.forwardRef(({__scopeCheckbox:r,onKeyDown:e,onClick:a,...n},s)=>{const{control:o,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:y,isFormControl:m,bubbleInput:x}=kC(zI,r),k=yC(s,u),f=g.useRef(d);return g.useEffect(()=>{const v=o==null?void 0:o.form;if(v){const M=()=>p(f.current);return v.addEventListener("reset",M),()=>v.removeEventListener("reset",M)}},[o,p]),t.jsx(mC.button,{type:"button",role:"checkbox","aria-checked":Aa(d)?"mixed":d,"aria-required":h,"data-state":VI(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:k,onKeyDown:kj(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:kj(a,v=>{p(M=>Aa(M)?!0:!M),x&&m&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})})});TI.displayName=zI;var fC=g.forwardRef((r,e)=>{const{__scopeCheckbox:a,name:n,checked:s,defaultChecked:o,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=r;return t.jsx(_T,{__scopeCheckbox:a,checked:s,defaultChecked:o,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:y})=>t.jsxs(t.Fragment,{children:[t.jsx(TI,{...p,ref:e,__scopeCheckbox:a}),y&&t.jsx(HI,{__scopeCheckbox:a})]})})});fC.displayName=Aw;var RI="CheckboxIndicator",DI=g.forwardRef((r,e)=>{const{__scopeCheckbox:a,forceMount:n,...s}=r,o=kC(RI,a);return t.jsx(qI,{present:n||Aa(o.checked)||o.checked===!0,children:t.jsx(mC.span,{"data-state":VI(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...r.style}})})});DI.displayName=RI;var FI="CheckboxBubbleInput",HI=g.forwardRef(({__scopeCheckbox:r,...e},a)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:y,setBubbleInput:m}=kC(FI,r),x=yC(a,m),k=PI(o),f=_I(n);g.useEffect(()=>{const M=y;if(!M)return;const L=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(L,"checked").set,N=!s.current;if(k!==o&&C){const j=new Event("click",{bubbles:N});M.indeterminate=Aa(o),C.call(M,Aa(o)?!1:o),M.dispatchEvent(j)}},[y,k,o,s]);const v=g.useRef(Aa(o)?!1:o);return t.jsx(mC.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??v.current,required:l,disabled:d,name:h,value:u,form:p,...e,tabIndex:-1,ref:x,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});HI.displayName=FI;function qT(r){return typeof r=="function"}function Aa(r){return r==="indeterminate"}function VI(r){return Aa(r)?"indeterminate":r?"checked":"unchecked"}const EI=g.forwardRef(({className:r,...e},a)=>t.jsx(fC,{ref:a,className:me("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),...e,children:t.jsx(DI,{className:me("flex items-center justify-center text-current"),children:t.jsx(Ei,{className:"h-4 w-4"})})}));EI.displayName=fC.displayName;const zT=vw("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Pw=g.forwardRef(({className:r,variant:e,...a},n)=>t.jsx("div",{ref:n,role:"alert",className:me(zT({variant:e}),r),...a}));Pw.displayName="Alert";const TT=g.forwardRef(({className:r,...e},a)=>t.jsx("h5",{ref:a,className:me("mb-1 font-medium leading-none tracking-tight",r),...e}));TT.displayName="AlertTitle";const _w=g.forwardRef(({className:r,...e},a)=>t.jsx("div",{ref:a,className:me("text-sm [&_p]:leading-relaxed",r),...e}));_w.displayName="AlertDescription";function RT({onSubmit:r,onForgotPassword:e,onRegisterClick:a,isLoading:n=!1,error:s,title:o="Welcome Back",description:c="Sign in to your account to continue",identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"}){const[h,u]=b.useState(""),[p,y]=b.useState(""),[m,x]=b.useState(!1),k=f=>{f.preventDefault(),r(h,p,m)};return t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx(Ie,{className:"text-2xl font-bold",children:o}),t.jsx(Fe,{children:c})]}),t.jsxs("form",{onSubmit:k,children:[t.jsxs(ye,{className:"space-y-4",children:[s&&t.jsxs(Pw,{variant:"destructive",children:[t.jsx(Rt,{className:"h-4 w-4"}),t.jsx(_w,{children:s})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"identifier",children:l}),t.jsxs("div",{className:"relative",children:[t.jsx(Wt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t.jsx(nt,{id:"identifier",type:"text",placeholder:d,value:h,onChange:f=>u(f.target.value),className:"pl-10",required:!0,disabled:n})]})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"password",children:"Password"}),t.jsxs("div",{className:"relative",children:[t.jsx(_s,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t.jsx(nt,{id:"password",type:"password",placeholder:"••••••••",value:p,onChange:f=>y(f.target.value),className:"pl-10",required:!0,disabled:n})]})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center space-x-2",children:[t.jsx(EI,{id:"remember",checked:m,onCheckedChange:f=>x(f),disabled:n}),t.jsx(ge,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),e&&t.jsx("button",{type:"button",onClick:e,className:"text-sm text-accent hover:underline",disabled:n,children:"Forgot password?"})]})]}),t.jsxs(rs,{className:"flex flex-col space-y-4",children:[t.jsx(B,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Signing in...":"Sign In"}),a&&t.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",t.jsx("button",{type:"button",onClick:a,className:"text-accent hover:underline font-medium",disabled:n,children:"Create account"})]})]})]})]})}const DT=({onSubmit:r,onForgotPassword:e,onRegisterClick:a,isLoading:n=!1,error:s="",appName:o="Your App",logo:c,identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"})=>t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:t.jsxs("div",{className:"w-full max-w-md",children:[t.jsxs("div",{className:"mb-8 text-center",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:t.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),t.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),t.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),t.jsx(RT,{onSubmit:r,onForgotPassword:e,onRegisterClick:a,isLoading:n,error:s,identifierLabel:l,identifierPlaceholder:d})]})});function FT({onSubmit:r,fields:e,onLoginClick:a,isLoading:n=!1,error:s,title:o="Create Account",description:c="Join us to access exclusive opportunities"}){const[l,d]=b.useState({}),[h,u]=b.useState(""),p=(m,x)=>d(k=>({...k,[m]:x})),y=m=>{if(m.preventDefault(),u(""),"password"in l&&"confirmPassword"in l&&l.password!==l.confirmPassword){u("Passwords do not match");return}r(l)};return t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx(Ie,{className:"text-2xl font-bold",children:o}),t.jsx(Fe,{children:c})]}),t.jsxs("form",{onSubmit:y,children:[t.jsxs(ye,{className:"space-y-4",children:[(s||h)&&t.jsxs(Pw,{variant:"destructive",children:[t.jsx(Rt,{className:"h-4 w-4"}),t.jsx(_w,{children:s||h})]}),e.map(m=>t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:m.name,children:m.label}),t.jsx(nt,{id:m.name,type:m.type||"text",placeholder:m.placeholder,required:m.required,disabled:n,value:l[m.name]||"",onChange:x=>p(m.name,x.target.value)})]},m.name))]}),t.jsxs(rs,{className:"flex flex-col space-y-4",children:[t.jsx(B,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Creating account...":"Create Account"}),a&&t.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",t.jsx("button",{type:"button",onClick:a,className:"text-accent hover:underline font-medium",disabled:n,children:"Sign in"})]})]})]})]})}const HT=({onSubmit:r,fields:e,onLoginClick:a,isLoading:n=!1,error:s="",appName:o="Your App",logo:c,title:l="Create Account",description:d="Join us to access exclusive opportunities"})=>t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:t.jsxs("div",{className:"w-full max-w-md",children:[t.jsxs("div",{className:"mb-8 text-center",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:t.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),t.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),t.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),t.jsx(FT,{onSubmit:r,fields:e,onLoginClick:a,isLoading:n,error:s,title:l,description:d})]})});function VT({onSubmit:r,onBackToLogin:e,isLoading:a=!1,error:n,success:s=!1,title:o="Reset Password",description:c="Enter your email address and we'll send you a link to reset your password",successMessage:l="If an account exists with that email, you will receive a password reset link shortly. Please check your inbox and spam folder."}){const[d,h]=b.useState(""),u=p=>{p.preventDefault(),r(d)};return s?t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx("div",{className:"flex items-center justify-center mb-4",children:t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:t.jsx(xt,{className:"h-6 w-6 text-green-600"})})}),t.jsx(Ie,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),t.jsx(Fe,{className:"text-center",children:l})]}),t.jsx(rs,{className:"flex flex-col space-y-4",children:e&&t.jsxs(B,{type:"button",variant:"outline",className:"w-full",onClick:e,children:[t.jsx(di,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx(Ie,{className:"text-2xl font-bold",children:o}),t.jsx(Fe,{children:c})]}),t.jsxs("form",{onSubmit:u,children:[t.jsxs(ye,{className:"space-y-4",children:[n&&t.jsxs(Pw,{variant:"destructive",children:[t.jsx(Rt,{className:"h-4 w-4"}),t.jsx(_w,{children:n})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"email",children:"Email Address"}),t.jsxs("div",{className:"relative",children:[t.jsx(Wt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t.jsx(nt,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:a})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),t.jsxs(rs,{className:"flex flex-col space-y-4",children:[t.jsx(B,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:a,children:a?"Sending...":"Send Reset Link"}),e&&t.jsxs(B,{type:"button",variant:"ghost",className:"w-full",onClick:e,disabled:a,children:[t.jsx(di,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const ET=({onSubmit:r,onBackToLogin:e,isLoading:a=!1,error:n="",success:s=!1,appName:o="Your App",logo:c})=>t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:t.jsxs("div",{className:"w-full max-w-md",children:[t.jsxs("div",{className:"mb-8 text-center",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:t.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),t.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),t.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),t.jsx(VT,{onSubmit:r,onBackToLogin:e,isLoading:a,error:n,success:s})]})}),OT=[{icon:Ns,label:"Dashboard",path:"/dashboard"},{icon:ot,label:"My Jobs",path:"/dashboard/jobs"},{icon:Nt,label:"Courses",path:"/dashboard/courses"},{icon:Xi,label:"Settings",path:"/dashboard/settings"}];function BT({children:r,user:e={name:"User",email:"user@example.com"},onLogout:a,onNavigate:n,currentPath:s="/dashboard",notificationCount:o=0}){return t.jsx("div",{className:"min-h-screen bg-background",children:t.jsxs("div",{className:"flex",children:[t.jsxs("aside",{className:"hidden md:flex w-64 flex-col border-r bg-card h-[calc(100vh-4rem)]",children:[t.jsx("nav",{className:"flex-1 space-y-1 p-4",children:OT.map(c=>{const l=c.icon,d=s===c.path;return t.jsxs("button",{onClick:()=>n==null?void 0:n(c.path),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors ${d?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[t.jsx(l,{className:"h-4 w-4"}),c.label]},c.path)})}),a&&t.jsx("div",{className:"border-t p-4",children:t.jsxs(B,{variant:"ghost",className:"w-full justify-start text-muted-foreground hover:text-foreground",onClick:a,children:[t.jsx(qs,{className:"mr-3 h-4 w-4"}),"Logout"]})})]}),t.jsx("main",{className:"flex-1 p-6 md:p-8",children:r})]})})}const UT=vw("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Je({className:r,variant:e,...a}){return t.jsx("div",{className:me(UT({variant:e}),r),...a})}function $T({userName:r,feedItems:e,alerts:a,snapshot:n,onSave:s,onApply:o,onEnroll:c,onRead:l}){const d=u=>{switch(u){case"job":return ot;case"course":return Nt;case"news":return oa;default:return ot}},h=u=>{switch(u.type){case"job":return t.jsxs(t.Fragment,{children:[t.jsx(B,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),t.jsx(B,{size:"sm",onClick:()=>o(u.id),children:"Apply"})]});case"course":return t.jsxs(t.Fragment,{children:[t.jsx(B,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),t.jsx(B,{size:"sm",onClick:()=>c(u.id),children:"Enroll"})]});case"news":return t.jsx(B,{size:"sm",onClick:()=>l(u.id),children:"Read"});default:return null}};return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsxs("h2",{className:"text-3xl font-bold",children:["Welcome back, ",r," 👋"]}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Your personalized iGaming career hub"})]}),t.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[t.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[t.jsx("h3",{className:"text-xl font-semibold",children:"Your Feed"}),e.map(u=>{const p=d(u.type);return t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(p,{className:"h-5 w-5 text-primary"}),t.jsx(Je,{variant:"secondary",children:u.type})]}),t.jsx("span",{className:"text-xs text-muted-foreground",children:u.timestamp})]}),t.jsx(Ie,{className:"text-lg mt-2",children:u.title}),u.company&&t.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Vi,{className:"h-4 w-4"}),u.company]}),u.location&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(At,{className:"h-4 w-4"}),u.location]})]}),t.jsx(Fe,{children:u.description})]}),t.jsxs(ye,{children:[t.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:u.tags.map(y=>t.jsx(Je,{variant:"outline",children:y},y))}),u.reason&&t.jsxs("p",{className:"text-xs text-muted-foreground mb-3 italic",children:["💡 ",u.reason]}),t.jsx("div",{className:"flex gap-2",children:h(u)})]})]},u.id)})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs(Ie,{className:"flex items-center gap-2",children:[t.jsx(mi,{className:"h-5 w-5"}),"Your iGaming Career Snapshot"]})}),t.jsx(ye,{className:"space-y-3",children:n.map(u=>t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:u.label}),t.jsxs("div",{className:"text-right",children:[t.jsx("span",{className:"font-semibold",children:u.value}),u.trend&&t.jsx("span",{className:"text-xs text-green-600 ml-2",children:u.trend})]})]},u.label))})]}),t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs(Ie,{className:"flex items-center gap-2",children:[t.jsx(Ft,{className:"h-5 w-5"}),"Alerts & Notifications"]})}),t.jsx(ye,{className:"space-y-3",children:a.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:"No new alerts"}):a.map(u=>t.jsxs("div",{className:"p-3 rounded-lg bg-secondary/50 text-sm",children:[t.jsx(Je,{variant:"outline",className:"mb-2",children:u.type}),t.jsx("p",{children:u.message})]},u.id))})]})]})]})]})}function GT(r,e,{checkForDefaultPrevented:a=!0}={}){return function(s){if(r==null||r(s),a===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function fj(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function WT(...r){return e=>{let a=!1;const n=r.map(s=>{const o=fj(s,e);return!a&&typeof o=="function"&&(a=!0),o});if(a)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():fj(r[s],null)}}}}function OI(...r){return g.useCallback(WT(...r),r)}function ZT(r,e=[]){let a=[];function n(o,c){const l=g.createContext(c),d=a.length;a=[...a,c];const h=p=>{var v;const{scope:y,children:m,...x}=p,k=((v=y==null?void 0:y[r])==null?void 0:v[d])||l,f=g.useMemo(()=>x,Object.values(x));return t.jsx(k.Provider,{value:f,children:m})};h.displayName=o+"Provider";function u(p,y){var k;const m=((k=y==null?void 0:y[r])==null?void 0:k[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[h,u]}const s=()=>{const o=a.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||o;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return s.scopeName=r,[n,XT(s,...e)]}function XT(...r){const e=r[0];if(r.length===1)return e;const a=()=>{const n=r.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(o)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return a.scopeName=e.scopeName,a}var JT=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},YT=g[" useInsertionEffect ".trim().toString()]||JT;function KT({prop:r,defaultProp:e,onChange:a=()=>{},caller:n}){const[s,o,c]=QT({defaultProp:e,onChange:a}),l=r!==void 0,d=l?r:s;{const u=g.useRef(r!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=eR(u)?u(r):u;y!==r&&((p=c.current)==null||p.call(c,y))}else o(u)},[l,r,o,c]);return[d,h]}function QT({defaultProp:r,onChange:e}){const[a,n]=g.useState(r),s=g.useRef(a),o=g.useRef(e);return YT(()=>{o.current=e},[e]),g.useEffect(()=>{var c;s.current!==a&&((c=o.current)==null||c.call(o,a),s.current=a)},[a,s]),[a,n,o]}function eR(r){return typeof r=="function"}var tR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],BI=tR.reduce((r,e)=>{const a=ha(`Primitive.${e}`),n=g.forwardRef((s,o)=>{const{asChild:c,...l}=s,d=c?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(d,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),qw="Switch",[aR,SR]=ZT(qw),[rR,nR]=aR(qw),UI=g.forwardRef((r,e)=>{const{__scopeSwitch:a,name:n,checked:s,defaultChecked:o,required:c,disabled:l,value:d="on",onCheckedChange:h,form:u,...p}=r,[y,m]=g.useState(null),x=OI(e,L=>m(L)),k=g.useRef(!1),f=y?u||!!y.closest("form"):!0,[v,M]=KT({prop:s,defaultProp:o??!1,onChange:h,caller:qw});return t.jsxs(rR,{scope:a,checked:v,disabled:l,children:[t.jsx(BI.button,{type:"button",role:"switch","aria-checked":v,"aria-required":c,"data-state":ZI(v),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:x,onClick:GT(r.onClick,L=>{M(S=>!S),f&&(k.current=L.isPropagationStopped(),k.current||L.stopPropagation())})}),f&&t.jsx(WI,{control:y,bubbles:!k.current,name:n,value:d,checked:v,required:c,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});UI.displayName=qw;var $I="SwitchThumb",GI=g.forwardRef((r,e)=>{const{__scopeSwitch:a,...n}=r,s=nR($I,a);return t.jsx(BI.span,{"data-state":ZI(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});GI.displayName=$I;var iR="SwitchBubbleInput",WI=g.forwardRef(({__scopeSwitch:r,control:e,checked:a,bubbles:n=!0,...s},o)=>{const c=g.useRef(null),l=OI(c,o),d=PI(a),h=_I(e);return g.useEffect(()=>{const u=c.current;if(!u)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==a&&m){const x=new Event("click",{bubbles:n});m.call(u,a),u.dispatchEvent(x)}},[d,a,n]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...s,tabIndex:-1,ref:l,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});WI.displayName=iR;function ZI(r){return r?"checked":"unchecked"}var XI=UI,sR=GI;const Dt=g.forwardRef(({className:r,...e},a)=>t.jsx(XI,{className:me("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",r),...e,ref:a,children:t.jsx(sR,{className:me("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Dt.displayName=XI.displayName;function oR({profile:r,onUpdate:e}){return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Your Profile"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your professional information"})]}),t.jsx(B,{onClick:()=>e(r),children:"Save Changes"})]}),t.jsxs(Ci,{defaultValue:"personal",className:"w-full",children:[t.jsxs(qa,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[t.jsx(Me,{value:"personal",children:"Personal"}),t.jsx(Me,{value:"experience",children:"Experience"}),t.jsx(Me,{value:"job-search",children:"Job Search"}),t.jsx(Me,{value:"skills",children:"Skills"}),t.jsx(Me,{value:"alerts",children:"Alerts"}),t.jsx(Me,{value:"preferences",children:"Preferences"})]}),t.jsx(we,{value:"personal",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Personal Details"}),t.jsx(Fe,{children:"Update your personal information"})]}),t.jsx(ye,{className:"space-y-4",children:t.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"fullName",children:"Full Name"}),t.jsx(nt,{id:"fullName",defaultValue:r.personalDetails.fullName})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"email",children:"Email"}),t.jsx(nt,{id:"email",type:"email",defaultValue:r.personalDetails.email})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"phone",children:"Phone"}),t.jsx(nt,{id:"phone",defaultValue:r.personalDetails.phone})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"location",children:"Location"}),t.jsx(nt,{id:"location",defaultValue:r.personalDetails.location})]})]})})]})}),t.jsx(we,{value:"experience",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Work Experience"}),t.jsx(Fe,{children:"Your iGaming industry experience"})]}),t.jsxs(ye,{className:"space-y-4",children:[r.workExperience.map(a=>t.jsxs("div",{className:"p-4 border rounded-lg space-y-2",children:[t.jsx("h4",{className:"font-semibold",children:a.title}),t.jsx("p",{className:"text-sm text-muted-foreground",children:a.company}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a.period}),t.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(n=>t.jsx(Je,{variant:"secondary",children:n},n))})]},a.id)),t.jsx(B,{variant:"outline",className:"w-full",children:"Add Experience"})]})]})}),t.jsx(we,{value:"job-search",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Job Search Details"}),t.jsx(Fe,{children:"Define your ideal job preferences"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Desired Roles"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.desiredRoles.map(a=>t.jsx(Je,{children:a},a))}),t.jsx(B,{variant:"outline",size:"sm",children:"Add Role"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Preferred Locations"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.locations.map(a=>t.jsx(Je,{variant:"secondary",children:a},a))}),t.jsx(B,{variant:"outline",size:"sm",children:"Add Location"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Employment Type"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.employmentType.map(a=>t.jsx(Je,{variant:"outline",children:a},a))})]})]})]})}),t.jsx(we,{value:"skills",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Skill Set"}),t.jsx(Fe,{children:"Your professional skills and expertise"})]}),t.jsxs(ye,{className:"space-y-4",children:[t.jsx("div",{className:"flex flex-wrap gap-2",children:r.skills.map(a=>t.jsx(Je,{variant:"secondary",children:a},a))}),t.jsx(B,{variant:"outline",children:"Add Skill"})]})]})}),t.jsx(we,{value:"alerts",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Alerts & Subscriptions"}),t.jsx(Fe,{children:"Manage your notification preferences"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"job-alerts",className:"text-base",children:"Job Alerts"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Get notified about new job matches"})]}),t.jsx(Dt,{id:"job-alerts",defaultChecked:r.alerts.jobAlerts})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"course-alerts",className:"text-base",children:"Course Alerts"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Updates on new courses and training"})]}),t.jsx(Dt,{id:"course-alerts",defaultChecked:r.alerts.courseAlerts})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"news-alerts",className:"text-base",children:"News Alerts"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Industry news and updates"})]}),t.jsx(Dt,{id:"news-alerts",defaultChecked:r.alerts.newsAlerts})]})]})]})}),t.jsx(we,{value:"preferences",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Preferences"}),t.jsx(Fe,{children:"Customize your platform experience"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Interested Topics"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.preferences.topics.map(a=>t.jsx(Je,{variant:"outline",children:a},a))}),t.jsx(B,{variant:"outline",size:"sm",children:"Manage Topics"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"language",children:"Language"}),t.jsx(nt,{id:"language",defaultValue:r.preferences.language})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),t.jsx(Dt,{id:"email-notif",defaultChecked:r.preferences.emailNotifications})]})]})]})})]})]})}function cR({savedJobs:r,applications:e,recommendedJobs:a,onApply:n,onRemove:s,onUploadCV:o,onSetAlert:c}){const l=({job:d,showStatus:h=!1,showReason:u=!1})=>t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx(Ie,{className:"text-lg",children:d.title}),t.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Vi,{className:"h-4 w-4"}),d.company]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(At,{className:"h-4 w-4"}),d.location]})]})]}),h&&d.status&&t.jsx(Je,{variant:"secondary",children:d.status})]}),d.salary&&t.jsx("p",{className:"text-sm font-semibold text-accent",children:d.salary})]}),t.jsx(ye,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsx(Je,{variant:"outline",children:d.type}),d.tags.map(p=>t.jsx(Je,{variant:"secondary",children:p},p))]}),u&&d.reason&&t.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",d.reason]}),h&&d.appliedDate&&t.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[t.jsx(Ft,{className:"h-3 w-3"}),"Applied ",d.appliedDate]}),t.jsx("div",{className:"flex gap-2",children:h?t.jsx(B,{variant:"outline",size:"sm",children:"View Application"}):t.jsxs(t.Fragment,{children:[t.jsx(B,{size:"sm",onClick:()=>n(d.id),children:"Apply Now"}),t.jsx(B,{variant:"outline",size:"sm",onClick:()=>s(d.id),children:"Remove"})]})})]})})]});return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Jobs"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your job search"})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(B,{variant:"outline",onClick:c,children:"Set Job Alerts"}),t.jsxs(B,{onClick:o,children:[t.jsx(Ki,{className:"h-4 w-4 mr-2"}),"Upload CV"]})]})]}),t.jsxs(Ci,{defaultValue:"recommended",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"recommended",children:["Recommended (",a.length,")"]}),t.jsxs(Me,{value:"saved",children:[t.jsx(ja,{className:"h-4 w-4 mr-2"}),"Saved (",r.length,")"]}),t.jsxs(Me,{value:"applications",children:[t.jsx(ot,{className:"h-4 w-4 mr-2"}),"Applications (",e.length,")"]})]}),t.jsx(we,{value:"recommended",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4",children:a.map(d=>t.jsx(l,{job:d,showReason:!0},d.id))})}),t.jsx(we,{value:"saved",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4",children:r.length===0?t.jsx(ue,{children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(ja,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),t.jsx(B,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):r.map(d=>t.jsx(l,{job:d},d.id))})}),t.jsx(we,{value:"applications",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4",children:e.length===0?t.jsx(ue,{children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(ot,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No applications yet"}),t.jsx(B,{variant:"link",className:"mt-2",children:"Start Applying"})]})}):e.map(d=>t.jsx(l,{job:d,showStatus:!0},d.id))})})]})]})}function lR(r,e=[]){let a=[];function n(o,c){const l=g.createContext(c),d=a.length;a=[...a,c];const h=p=>{var v;const{scope:y,children:m,...x}=p,k=((v=y==null?void 0:y[r])==null?void 0:v[d])||l,f=g.useMemo(()=>x,Object.values(x));return t.jsx(k.Provider,{value:f,children:m})};h.displayName=o+"Provider";function u(p,y){var k;const m=((k=y==null?void 0:y[r])==null?void 0:k[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[h,u]}const s=()=>{const o=a.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||o;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return s.scopeName=r,[n,dR(s,...e)]}function dR(...r){const e=r[0];if(r.length===1)return e;const a=()=>{const n=r.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(o)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return a.scopeName=e.scopeName,a}var hR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],JI=hR.reduce((r,e)=>{const a=ha(`Primitive.${e}`),n=g.forwardRef((s,o)=>{const{asChild:c,...l}=s,d=c?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(d,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),xC="Progress",gC=100,[uR,IR]=lR(xC),[pR,yR]=uR(xC),YI=g.forwardRef((r,e)=>{const{__scopeProgress:a,value:n=null,max:s,getValueLabel:o=mR,...c}=r;(s||s===0)&&!xj(s)&&console.error(kR(`${s}`,"Progress"));const l=xj(s)?s:gC;n!==null&&!gj(n,l)&&console.error(fR(`${n}`,"Progress"));const d=gj(n,l)?n:null,h=gw(d)?o(d,l):void 0;return t.jsx(pR,{scope:a,value:d,max:l,children:t.jsx(JI.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":gw(d)?d:void 0,"aria-valuetext":h,role:"progressbar","data-state":eN(d,l),"data-value":d??void 0,"data-max":l,...c,ref:e})})});YI.displayName=xC;var KI="ProgressIndicator",QI=g.forwardRef((r,e)=>{const{__scopeProgress:a,...n}=r,s=yR(KI,a);return t.jsx(JI.div,{"data-state":eN(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:e})});QI.displayName=KI;function mR(r,e){return`${Math.round(r/e*100)}%`}function eN(r,e){return r==null?"indeterminate":r===e?"complete":"loading"}function gw(r){return typeof r=="number"}function xj(r){return gw(r)&&!isNaN(r)&&r>0}function gj(r,e){return gw(r)&&!isNaN(r)&&r<=e&&r>=0}function kR(r,e){return`Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${gC}\`.`}function fR(r,e){return`Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
7813
|
+
`})})}function mj(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function xT(...r){return e=>{let a=!1;const n=r.map(s=>{const o=mj(s,e);return!a&&typeof o=="function"&&(a=!0),o});if(a)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():mj(r[s],null)}}}}function yC(...r){return g.useCallback(xT(...r),r)}function gT(r,e=[]){let a=[];function n(o,c){const l=g.createContext(c),d=a.length;a=[...a,c];const h=p=>{var v;const{scope:y,children:m,...x}=p,k=((v=y==null?void 0:y[r])==null?void 0:v[d])||l,f=g.useMemo(()=>x,Object.values(x));return t.jsx(k.Provider,{value:f,children:m})};h.displayName=o+"Provider";function u(p,y){var k;const m=((k=y==null?void 0:y[r])==null?void 0:k[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[h,u]}const s=()=>{const o=a.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||o;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return s.scopeName=r,[n,vT(s,...e)]}function vT(...r){const e=r[0];if(r.length===1)return e;const a=()=>{const n=r.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(o)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return a.scopeName=e.scopeName,a}function kj(r,e,{checkForDefaultPrevented:a=!0}={}){return function(s){if(r==null||r(s),a===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}var Ab=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},MT=g[" useInsertionEffect ".trim().toString()]||Ab;function wT({prop:r,defaultProp:e,onChange:a=()=>{},caller:n}){const[s,o,c]=bT({defaultProp:e,onChange:a}),l=r!==void 0,d=l?r:s;{const u=g.useRef(r!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=CT(u)?u(r):u;y!==r&&((p=c.current)==null||p.call(c,y))}else o(u)},[l,r,o,c]);return[d,h]}function bT({defaultProp:r,onChange:e}){const[a,n]=g.useState(r),s=g.useRef(a),o=g.useRef(e);return MT(()=>{o.current=e},[e]),g.useEffect(()=>{var c;s.current!==a&&((c=o.current)==null||c.call(o,a),s.current=a)},[a,s]),[a,n,o]}function CT(r){return typeof r=="function"}function PI(r){const e=g.useRef({value:r,previous:r});return g.useMemo(()=>(e.current.value!==r&&(e.current.previous=e.current.value,e.current.value=r),e.current.previous),[r])}var jT=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function _I(r){const[e,a]=g.useState(void 0);return jT(()=>{if(r){a({width:r.offsetWidth,height:r.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let c,l;if("borderBoxSize"in o){const d=o.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=r.offsetWidth,l=r.offsetHeight;a({width:c,height:l})});return n.observe(r,{box:"border-box"}),()=>n.unobserve(r)}else a(void 0)},[r]),e}function LT(r,e){return g.useReducer((a,n)=>e[a][n]??a,r)}var qI=r=>{const{present:e,children:a}=r,n=ST(e),s=typeof a=="function"?a({present:n.isPresent}):g.Children.only(a),o=yC(n.ref,IT(s));return typeof a=="function"||n.isPresent?g.cloneElement(s,{ref:o}):null};qI.displayName="Presence";function ST(r){const[e,a]=g.useState(),n=g.useRef(null),s=g.useRef(r),o=g.useRef("none"),c=r?"mounted":"unmounted",[l,d]=LT(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=mo(n.current);o.current=l==="mounted"?h:"none"},[l]),Ab(()=>{const h=n.current,u=s.current;if(u!==r){const y=o.current,m=mo(h);r?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=r}},[r,d]),Ab(()=>{if(e){let h;const u=e.ownerDocument.defaultView??window,p=m=>{const k=mo(n.current).includes(CSS.escape(m.animationName));if(m.target===e&&k&&(d("ANIMATION_END"),!s.current)){const f=e.style.animationFillMode;e.style.animationFillMode="forwards",h=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},y=m=>{m.target===e&&(o.current=mo(n.current))};return e.addEventListener("animationstart",y),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{u.clearTimeout(h),e.removeEventListener("animationstart",y),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,a(h)},[])}}function mo(r){return(r==null?void 0:r.animationName)||"none"}function IT(r){var n,s;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,a=e&&"isReactWarning"in e&&e.isReactWarning;return a?r.ref:(e=(s=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:s.get,a=e&&"isReactWarning"in e&&e.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var NT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mC=NT.reduce((r,e)=>{const a=ha(`Primitive.${e}`),n=g.forwardRef((s,o)=>{const{asChild:c,...l}=s,d=c?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(d,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Aw="Checkbox",[AT,LR]=gT(Aw),[PT,kC]=AT(Aw);function _T(r){const{__scopeCheckbox:e,checked:a,children:n,defaultChecked:s,disabled:o,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=r,[y,m]=wT({prop:a,defaultProp:s??!1,onChange:d,caller:Aw}),[x,k]=g.useState(null),[f,v]=g.useState(null),M=g.useRef(!1),L=x?!!c||!!x.closest("form"):!0,S={checked:y,disabled:o,setChecked:m,control:x,setControl:k,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:M,required:h,defaultChecked:Aa(s)?!1:s,isFormControl:L,bubbleInput:f,setBubbleInput:v};return t.jsx(PT,{scope:e,...S,children:qT(p)?p(S):n})}var zI="CheckboxTrigger",TI=g.forwardRef(({__scopeCheckbox:r,onKeyDown:e,onClick:a,...n},s)=>{const{control:o,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:y,isFormControl:m,bubbleInput:x}=kC(zI,r),k=yC(s,u),f=g.useRef(d);return g.useEffect(()=>{const v=o==null?void 0:o.form;if(v){const M=()=>p(f.current);return v.addEventListener("reset",M),()=>v.removeEventListener("reset",M)}},[o,p]),t.jsx(mC.button,{type:"button",role:"checkbox","aria-checked":Aa(d)?"mixed":d,"aria-required":h,"data-state":VI(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:k,onKeyDown:kj(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:kj(a,v=>{p(M=>Aa(M)?!0:!M),x&&m&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})})});TI.displayName=zI;var fC=g.forwardRef((r,e)=>{const{__scopeCheckbox:a,name:n,checked:s,defaultChecked:o,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=r;return t.jsx(_T,{__scopeCheckbox:a,checked:s,defaultChecked:o,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:y})=>t.jsxs(t.Fragment,{children:[t.jsx(TI,{...p,ref:e,__scopeCheckbox:a}),y&&t.jsx(HI,{__scopeCheckbox:a})]})})});fC.displayName=Aw;var RI="CheckboxIndicator",DI=g.forwardRef((r,e)=>{const{__scopeCheckbox:a,forceMount:n,...s}=r,o=kC(RI,a);return t.jsx(qI,{present:n||Aa(o.checked)||o.checked===!0,children:t.jsx(mC.span,{"data-state":VI(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...r.style}})})});DI.displayName=RI;var FI="CheckboxBubbleInput",HI=g.forwardRef(({__scopeCheckbox:r,...e},a)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:y,setBubbleInput:m}=kC(FI,r),x=yC(a,m),k=PI(o),f=_I(n);g.useEffect(()=>{const M=y;if(!M)return;const L=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(L,"checked").set,N=!s.current;if(k!==o&&C){const j=new Event("click",{bubbles:N});M.indeterminate=Aa(o),C.call(M,Aa(o)?!1:o),M.dispatchEvent(j)}},[y,k,o,s]);const v=g.useRef(Aa(o)?!1:o);return t.jsx(mC.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??v.current,required:l,disabled:d,name:h,value:u,form:p,...e,tabIndex:-1,ref:x,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});HI.displayName=FI;function qT(r){return typeof r=="function"}function Aa(r){return r==="indeterminate"}function VI(r){return Aa(r)?"indeterminate":r?"checked":"unchecked"}const EI=g.forwardRef(({className:r,...e},a)=>t.jsx(fC,{ref:a,className:me("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),...e,children:t.jsx(DI,{className:me("flex items-center justify-center text-current"),children:t.jsx(Ei,{className:"h-4 w-4"})})}));EI.displayName=fC.displayName;const zT=vw("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Pw=g.forwardRef(({className:r,variant:e,...a},n)=>t.jsx("div",{ref:n,role:"alert",className:me(zT({variant:e}),r),...a}));Pw.displayName="Alert";const TT=g.forwardRef(({className:r,...e},a)=>t.jsx("h5",{ref:a,className:me("mb-1 font-medium leading-none tracking-tight",r),...e}));TT.displayName="AlertTitle";const _w=g.forwardRef(({className:r,...e},a)=>t.jsx("div",{ref:a,className:me("text-sm [&_p]:leading-relaxed",r),...e}));_w.displayName="AlertDescription";function RT({onSubmit:r,onForgotPassword:e,onRegisterClick:a,isLoading:n=!1,error:s,title:o="Welcome Back",description:c="Sign in to your account to continue",identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"}){const[h,u]=b.useState(""),[p,y]=b.useState(""),[m,x]=b.useState(!1),k=f=>{f.preventDefault(),r(h,p,m)};return t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx(Ie,{className:"text-2xl font-bold",children:o}),t.jsx(Fe,{children:c})]}),t.jsxs("form",{onSubmit:k,children:[t.jsxs(ye,{className:"space-y-4",children:[s&&t.jsxs(Pw,{variant:"destructive",children:[t.jsx(Rt,{className:"h-4 w-4"}),t.jsx(_w,{children:s})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"identifier",children:l}),t.jsxs("div",{className:"relative",children:[t.jsx(Wt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t.jsx(nt,{id:"identifier",type:"text",placeholder:d,value:h,onChange:f=>u(f.target.value),className:"pl-10",required:!0,disabled:n})]})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"password",children:"Password"}),t.jsxs("div",{className:"relative",children:[t.jsx(_s,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t.jsx(nt,{id:"password",type:"password",placeholder:"••••••••",value:p,onChange:f=>y(f.target.value),className:"pl-10",required:!0,disabled:n})]})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center space-x-2",children:[t.jsx(EI,{id:"remember",checked:m,onCheckedChange:f=>x(f),disabled:n}),t.jsx(ge,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),e&&t.jsx("button",{type:"button",onClick:e,className:"text-sm text-accent hover:underline",disabled:n,children:"Forgot password?"})]})]}),t.jsxs(rs,{className:"flex flex-col space-y-4",children:[t.jsx(B,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Signing in...":"Sign In"}),a&&t.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",t.jsx("button",{type:"button",onClick:a,className:"text-accent hover:underline font-medium",disabled:n,children:"Create account"})]})]})]})]})}const DT=({onSubmit:r,onForgotPassword:e,onRegisterClick:a,isLoading:n=!1,error:s="",appName:o="Your App",logo:c,identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"})=>t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:t.jsxs("div",{className:"w-full max-w-md",children:[t.jsxs("div",{className:"mb-8 text-center",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:t.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),t.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),t.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),t.jsx(RT,{onSubmit:r,onForgotPassword:e,onRegisterClick:a,isLoading:n,error:s,identifierLabel:l,identifierPlaceholder:d})]})});function FT({onSubmit:r,fields:e,onLoginClick:a,isLoading:n=!1,error:s,title:o="Create Account",description:c="Join us to access exclusive opportunities"}){const[l,d]=b.useState({}),[h,u]=b.useState(""),p=(m,x)=>d(k=>({...k,[m]:x})),y=m=>{if(m.preventDefault(),u(""),"password"in l&&"confirmPassword"in l&&l.password!==l.confirmPassword){u("Passwords do not match");return}r(l)};return t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx(Ie,{className:"text-2xl font-bold",children:o}),t.jsx(Fe,{children:c})]}),t.jsxs("form",{onSubmit:y,children:[t.jsxs(ye,{className:"space-y-4",children:[(s||h)&&t.jsxs(Pw,{variant:"destructive",children:[t.jsx(Rt,{className:"h-4 w-4"}),t.jsx(_w,{children:s||h})]}),e.map(m=>t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:m.name,children:m.label}),t.jsx(nt,{id:m.name,type:m.type||"text",placeholder:m.placeholder,required:m.required,disabled:n,value:l[m.name]||"",onChange:x=>p(m.name,x.target.value)})]},m.name))]}),t.jsxs(rs,{className:"flex flex-col space-y-4",children:[t.jsx(B,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Creating account...":"Create Account"}),a&&t.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",t.jsx("button",{type:"button",onClick:a,className:"text-accent hover:underline font-medium",disabled:n,children:"Sign in"})]})]})]})]})}const HT=({onSubmit:r,fields:e,onLoginClick:a,isLoading:n=!1,error:s="",appName:o="Your App",logo:c,title:l="Create Account",description:d="Join us to access exclusive opportunities"})=>t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:t.jsxs("div",{className:"w-full max-w-md",children:[t.jsxs("div",{className:"mb-8 text-center",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:t.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),t.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),t.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),t.jsx(FT,{onSubmit:r,fields:e,onLoginClick:a,isLoading:n,error:s,title:l,description:d})]})});function VT({onSubmit:r,onBackToLogin:e,isLoading:a=!1,error:n,success:s=!1,title:o="Reset Password",description:c="Enter your email address and we'll send you a link to reset your password",successMessage:l="If an account exists with that email, you will receive a password reset link shortly. Please check your inbox and spam folder."}){const[d,h]=b.useState(""),u=p=>{p.preventDefault(),r(d)};return s?t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx("div",{className:"flex items-center justify-center mb-4",children:t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:t.jsx(xt,{className:"h-6 w-6 text-green-600"})})}),t.jsx(Ie,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),t.jsx(Fe,{className:"text-center",children:l})]}),t.jsx(rs,{className:"flex flex-col space-y-4",children:e&&t.jsxs(B,{type:"button",variant:"outline",className:"w-full",onClick:e,children:[t.jsx(di,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):t.jsxs(ue,{className:"w-full max-w-md",children:[t.jsxs(Se,{className:"space-y-1",children:[t.jsx(Ie,{className:"text-2xl font-bold",children:o}),t.jsx(Fe,{children:c})]}),t.jsxs("form",{onSubmit:u,children:[t.jsxs(ye,{className:"space-y-4",children:[n&&t.jsxs(Pw,{variant:"destructive",children:[t.jsx(Rt,{className:"h-4 w-4"}),t.jsx(_w,{children:n})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"email",children:"Email Address"}),t.jsxs("div",{className:"relative",children:[t.jsx(Wt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t.jsx(nt,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:a})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),t.jsxs(rs,{className:"flex flex-col space-y-4",children:[t.jsx(B,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:a,children:a?"Sending...":"Send Reset Link"}),e&&t.jsxs(B,{type:"button",variant:"ghost",className:"w-full",onClick:e,disabled:a,children:[t.jsx(di,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const ET=({onSubmit:r,onBackToLogin:e,isLoading:a=!1,error:n="",success:s=!1,appName:o="Your App",logo:c})=>t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:t.jsxs("div",{className:"w-full max-w-md",children:[t.jsxs("div",{className:"mb-8 text-center",children:[t.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:t.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),t.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),t.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),t.jsx(VT,{onSubmit:r,onBackToLogin:e,isLoading:a,error:n,success:s})]})}),OT=[{icon:Ns,label:"Dashboard",path:"/dashboard"},{icon:ot,label:"My Jobs",path:"/dashboard/jobs"},{icon:Nt,label:"Courses",path:"/dashboard/courses"},{icon:Xi,label:"Settings",path:"/dashboard/settings"}];function BT({children:r,user:e={name:"User",email:"user@example.com"},onLogout:a,onNavigate:n,currentPath:s="/dashboard",notificationCount:o=0}){return t.jsx("div",{className:"min-h-screen bg-background",children:t.jsxs("div",{className:"flex",children:[t.jsxs("aside",{className:"hidden md:flex w-64 flex-col border-r bg-card h-[calc(100vh-4rem)]",children:[t.jsx("nav",{className:"flex-1 space-y-1 p-4",children:OT.map(c=>{const l=c.icon,d=s===c.path;return t.jsxs("button",{onClick:()=>n==null?void 0:n(c.path),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors ${d?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[t.jsx(l,{className:"h-4 w-4"}),c.label]},c.path)})}),a&&t.jsx("div",{className:"border-t p-4",children:t.jsxs(B,{variant:"ghost",className:"w-full justify-start text-muted-foreground hover:text-foreground",onClick:a,children:[t.jsx(qs,{className:"mr-3 h-4 w-4"}),"Logout"]})})]}),t.jsx("main",{className:"flex-1 p-6 md:p-8",children:r})]})})}const UT=vw("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Je({className:r,variant:e,...a}){return t.jsx("div",{className:me(UT({variant:e}),r),...a})}function $T({userName:r,feedItems:e,alerts:a,snapshot:n,onSave:s,onApply:o,onEnroll:c,onRead:l}){const d=u=>{switch(u){case"job":return ot;case"course":return Nt;case"news":return oa;default:return ot}},h=u=>{switch(u.type){case"job":return t.jsxs(t.Fragment,{children:[t.jsx(B,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),t.jsx(B,{size:"sm",onClick:()=>o(u.id),children:"Apply"})]});case"course":return t.jsxs(t.Fragment,{children:[t.jsx(B,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),t.jsx(B,{size:"sm",onClick:()=>c(u.id),children:"Enroll"})]});case"news":return t.jsx(B,{size:"sm",onClick:()=>l(u.id),children:"Read"});default:return null}};return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsxs("h2",{className:"text-3xl font-bold",children:["Welcome back, ",r," 👋"]}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Your personalized iGaming career hub"})]}),t.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[t.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[t.jsx("h3",{className:"text-xl font-semibold",children:"Your Feed"}),e.map(u=>{const p=d(u.type);return t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(p,{className:"h-5 w-5 text-primary"}),t.jsx(Je,{variant:"secondary",children:u.type})]}),t.jsx("span",{className:"text-xs text-muted-foreground",children:u.timestamp})]}),t.jsx(Ie,{className:"text-lg mt-2",children:u.title}),u.company&&t.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Vi,{className:"h-4 w-4"}),u.company]}),u.location&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(At,{className:"h-4 w-4"}),u.location]})]}),t.jsx(Fe,{children:u.description})]}),t.jsxs(ye,{children:[t.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:u.tags.map(y=>t.jsx(Je,{variant:"outline",children:y},y))}),u.reason&&t.jsxs("p",{className:"text-xs text-muted-foreground mb-3 italic",children:["💡 ",u.reason]}),t.jsx("div",{className:"flex gap-2",children:h(u)})]})]},u.id)})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs(Ie,{className:"flex items-center gap-2",children:[t.jsx(mi,{className:"h-5 w-5"}),"Your iGaming Career Snapshot"]})}),t.jsx(ye,{className:"space-y-3",children:n.map(u=>t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:u.label}),t.jsxs("div",{className:"text-right",children:[t.jsx("span",{className:"font-semibold",children:u.value}),u.trend&&t.jsx("span",{className:"text-xs text-green-600 ml-2",children:u.trend})]})]},u.label))})]}),t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs(Ie,{className:"flex items-center gap-2",children:[t.jsx(Ft,{className:"h-5 w-5"}),"Alerts & Notifications"]})}),t.jsx(ye,{className:"space-y-3",children:a.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:"No new alerts"}):a.map(u=>t.jsxs("div",{className:"p-3 rounded-lg bg-secondary/50 text-sm",children:[t.jsx(Je,{variant:"outline",className:"mb-2",children:u.type}),t.jsx("p",{children:u.message})]},u.id))})]})]})]})]})}function GT(r,e,{checkForDefaultPrevented:a=!0}={}){return function(s){if(r==null||r(s),a===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function fj(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function WT(...r){return e=>{let a=!1;const n=r.map(s=>{const o=fj(s,e);return!a&&typeof o=="function"&&(a=!0),o});if(a)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():fj(r[s],null)}}}}function OI(...r){return g.useCallback(WT(...r),r)}function ZT(r,e=[]){let a=[];function n(o,c){const l=g.createContext(c),d=a.length;a=[...a,c];const h=p=>{var v;const{scope:y,children:m,...x}=p,k=((v=y==null?void 0:y[r])==null?void 0:v[d])||l,f=g.useMemo(()=>x,Object.values(x));return t.jsx(k.Provider,{value:f,children:m})};h.displayName=o+"Provider";function u(p,y){var k;const m=((k=y==null?void 0:y[r])==null?void 0:k[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[h,u]}const s=()=>{const o=a.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||o;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return s.scopeName=r,[n,XT(s,...e)]}function XT(...r){const e=r[0];if(r.length===1)return e;const a=()=>{const n=r.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(o)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return a.scopeName=e.scopeName,a}var JT=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},YT=g[" useInsertionEffect ".trim().toString()]||JT;function KT({prop:r,defaultProp:e,onChange:a=()=>{},caller:n}){const[s,o,c]=QT({defaultProp:e,onChange:a}),l=r!==void 0,d=l?r:s;{const u=g.useRef(r!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=eR(u)?u(r):u;y!==r&&((p=c.current)==null||p.call(c,y))}else o(u)},[l,r,o,c]);return[d,h]}function QT({defaultProp:r,onChange:e}){const[a,n]=g.useState(r),s=g.useRef(a),o=g.useRef(e);return YT(()=>{o.current=e},[e]),g.useEffect(()=>{var c;s.current!==a&&((c=o.current)==null||c.call(o,a),s.current=a)},[a,s]),[a,n,o]}function eR(r){return typeof r=="function"}var tR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],BI=tR.reduce((r,e)=>{const a=ha(`Primitive.${e}`),n=g.forwardRef((s,o)=>{const{asChild:c,...l}=s,d=c?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(d,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),qw="Switch",[aR,SR]=ZT(qw),[rR,nR]=aR(qw),UI=g.forwardRef((r,e)=>{const{__scopeSwitch:a,name:n,checked:s,defaultChecked:o,required:c,disabled:l,value:d="on",onCheckedChange:h,form:u,...p}=r,[y,m]=g.useState(null),x=OI(e,L=>m(L)),k=g.useRef(!1),f=y?u||!!y.closest("form"):!0,[v,M]=KT({prop:s,defaultProp:o??!1,onChange:h,caller:qw});return t.jsxs(rR,{scope:a,checked:v,disabled:l,children:[t.jsx(BI.button,{type:"button",role:"switch","aria-checked":v,"aria-required":c,"data-state":ZI(v),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:x,onClick:GT(r.onClick,L=>{M(S=>!S),f&&(k.current=L.isPropagationStopped(),k.current||L.stopPropagation())})}),f&&t.jsx(WI,{control:y,bubbles:!k.current,name:n,value:d,checked:v,required:c,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});UI.displayName=qw;var $I="SwitchThumb",GI=g.forwardRef((r,e)=>{const{__scopeSwitch:a,...n}=r,s=nR($I,a);return t.jsx(BI.span,{"data-state":ZI(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});GI.displayName=$I;var iR="SwitchBubbleInput",WI=g.forwardRef(({__scopeSwitch:r,control:e,checked:a,bubbles:n=!0,...s},o)=>{const c=g.useRef(null),l=OI(c,o),d=PI(a),h=_I(e);return g.useEffect(()=>{const u=c.current;if(!u)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==a&&m){const x=new Event("click",{bubbles:n});m.call(u,a),u.dispatchEvent(x)}},[d,a,n]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...s,tabIndex:-1,ref:l,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});WI.displayName=iR;function ZI(r){return r?"checked":"unchecked"}var XI=UI,sR=GI;const Dt=g.forwardRef(({className:r,...e},a)=>t.jsx(XI,{className:me("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",r),...e,ref:a,children:t.jsx(sR,{className:me("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Dt.displayName=XI.displayName;function oR({profile:r,onUpdate:e,isSaving:a=!1}){const[n,s]=b.useState(r),o=(d,h,u)=>{s(p=>({...p,[d]:{...p[d],[h]:u}}))},c=(d,h,u)=>{s(p=>({...p,[d]:{...p[d],[h]:u}}))},l=()=>{e(n)};return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Your Profile"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your professional information"})]}),t.jsx(B,{onClick:l,disabled:a,children:a?"Saving...":"Save Changes"})]}),t.jsxs(Ci,{defaultValue:"personal",className:"w-full",children:[t.jsxs(qa,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[t.jsx(Me,{value:"personal",children:"Personal"}),t.jsx(Me,{value:"experience",children:"Experience"}),t.jsx(Me,{value:"job-search",children:"Job Search"}),t.jsx(Me,{value:"skills",children:"Skills"}),t.jsx(Me,{value:"alerts",children:"Alerts"}),t.jsx(Me,{value:"preferences",children:"Preferences"})]}),t.jsx(we,{value:"personal",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Personal Details"}),t.jsx(Fe,{children:"Update your personal information"})]}),t.jsx(ye,{className:"space-y-4",children:t.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"fullName",children:"Full Name"}),t.jsx(nt,{id:"fullName",value:n.personalDetails.fullName,onChange:d=>o("personalDetails","fullName",d.target.value)})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"email",children:"Email"}),t.jsx(nt,{id:"email",type:"email",value:n.personalDetails.email,onChange:d=>o("personalDetails","email",d.target.value)})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"phone",children:"Phone"}),t.jsx(nt,{id:"phone",value:n.personalDetails.phone,onChange:d=>o("personalDetails","phone",d.target.value)})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"location",children:"Location"}),t.jsx(nt,{id:"location",value:n.personalDetails.location,onChange:d=>o("personalDetails","location",d.target.value)})]})]})})]})}),t.jsx(we,{value:"experience",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Work Experience"}),t.jsx(Fe,{children:"Your iGaming industry experience"})]}),t.jsxs(ye,{className:"space-y-4",children:[r.workExperience.map(d=>t.jsxs("div",{className:"p-4 border rounded-lg space-y-2",children:[t.jsx("h4",{className:"font-semibold",children:d.title}),t.jsx("p",{className:"text-sm text-muted-foreground",children:d.company}),t.jsx("p",{className:"text-xs text-muted-foreground",children:d.period}),t.jsx("div",{className:"flex flex-wrap gap-2",children:d.tags.map(h=>t.jsx(Je,{variant:"secondary",children:h},h))})]},d.id)),t.jsx(B,{variant:"outline",className:"w-full",children:"Add Experience"})]})]})}),t.jsx(we,{value:"job-search",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Job Search Details"}),t.jsx(Fe,{children:"Define your ideal job preferences"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Desired Roles"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.desiredRoles.map(d=>t.jsx(Je,{children:d},d))}),t.jsx(B,{variant:"outline",size:"sm",children:"Add Role"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Preferred Locations"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.locations.map(d=>t.jsx(Je,{variant:"secondary",children:d},d))}),t.jsx(B,{variant:"outline",size:"sm",children:"Add Location"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Employment Type"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.jobSearchDetails.employmentType.map(d=>t.jsx(Je,{variant:"outline",children:d},d))})]})]})]})}),t.jsx(we,{value:"skills",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Skill Set"}),t.jsx(Fe,{children:"Your professional skills and expertise"})]}),t.jsxs(ye,{className:"space-y-4",children:[t.jsx("div",{className:"flex flex-wrap gap-2",children:r.skills.map(d=>t.jsx(Je,{variant:"secondary",children:d},d))}),t.jsx(B,{variant:"outline",children:"Add Skill"})]})]})}),t.jsx(we,{value:"alerts",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Alerts & Subscriptions"}),t.jsx(Fe,{children:"Manage your notification preferences"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"job-alerts",className:"text-base",children:"Job Alerts"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Get notified about new job matches"})]}),t.jsx(Dt,{id:"job-alerts",checked:n.alerts.jobAlerts,onCheckedChange:d=>c("alerts","jobAlerts",d)})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"course-alerts",className:"text-base",children:"Course Alerts"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Updates on new courses and training"})]}),t.jsx(Dt,{id:"course-alerts",checked:n.alerts.courseAlerts,onCheckedChange:d=>c("alerts","courseAlerts",d)})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"news-alerts",className:"text-base",children:"News Alerts"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Industry news and updates"})]}),t.jsx(Dt,{id:"news-alerts",checked:n.alerts.newsAlerts,onCheckedChange:d=>c("alerts","newsAlerts",d)})]})]})]})}),t.jsx(we,{value:"preferences",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Preferences"}),t.jsx(Fe,{children:"Customize your platform experience"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{children:"Interested Topics"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:r.preferences.topics.map(d=>t.jsx(Je,{variant:"outline",children:d},d))}),t.jsx(B,{variant:"outline",size:"sm",children:"Manage Topics"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(ge,{htmlFor:"language",children:"Language"}),t.jsx(nt,{id:"language",defaultValue:r.preferences.language})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),t.jsx(Dt,{id:"email-notif",defaultChecked:r.preferences.emailNotifications})]})]})]})})]})]})}function cR({savedJobs:r,applications:e,recommendedJobs:a,onApply:n,onRemove:s,onUploadCV:o,onSetAlert:c}){const l=({job:d,showStatus:h=!1,showReason:u=!1})=>t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx(Ie,{className:"text-lg",children:d.title}),t.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Vi,{className:"h-4 w-4"}),d.company]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(At,{className:"h-4 w-4"}),d.location]})]})]}),h&&d.status&&t.jsx(Je,{variant:"secondary",children:d.status})]}),d.salary&&t.jsx("p",{className:"text-sm font-semibold text-accent",children:d.salary})]}),t.jsx(ye,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsx(Je,{variant:"outline",children:d.type}),d.tags.map(p=>t.jsx(Je,{variant:"secondary",children:p},p))]}),u&&d.reason&&t.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",d.reason]}),h&&d.appliedDate&&t.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[t.jsx(Ft,{className:"h-3 w-3"}),"Applied ",d.appliedDate]}),t.jsx("div",{className:"flex gap-2",children:h?t.jsx(B,{variant:"outline",size:"sm",children:"View Application"}):t.jsxs(t.Fragment,{children:[t.jsx(B,{size:"sm",onClick:()=>n(d.id),children:"Apply Now"}),t.jsx(B,{variant:"outline",size:"sm",onClick:()=>s(d.id),children:"Remove"})]})})]})})]});return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Jobs"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your job search"})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(B,{variant:"outline",onClick:c,children:"Set Job Alerts"}),t.jsxs(B,{onClick:o,children:[t.jsx(Ki,{className:"h-4 w-4 mr-2"}),"Upload CV"]})]})]}),t.jsxs(Ci,{defaultValue:"recommended",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"recommended",children:["Recommended (",a.length,")"]}),t.jsxs(Me,{value:"saved",children:[t.jsx(ja,{className:"h-4 w-4 mr-2"}),"Saved (",r.length,")"]}),t.jsxs(Me,{value:"applications",children:[t.jsx(ot,{className:"h-4 w-4 mr-2"}),"Applications (",e.length,")"]})]}),t.jsx(we,{value:"recommended",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4",children:a.map(d=>t.jsx(l,{job:d,showReason:!0},d.id))})}),t.jsx(we,{value:"saved",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4",children:r.length===0?t.jsx(ue,{children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(ja,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),t.jsx(B,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):r.map(d=>t.jsx(l,{job:d},d.id))})}),t.jsx(we,{value:"applications",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4",children:e.length===0?t.jsx(ue,{children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(ot,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No applications yet"}),t.jsx(B,{variant:"link",className:"mt-2",children:"Start Applying"})]})}):e.map(d=>t.jsx(l,{job:d,showStatus:!0},d.id))})})]})]})}function lR(r,e=[]){let a=[];function n(o,c){const l=g.createContext(c),d=a.length;a=[...a,c];const h=p=>{var v;const{scope:y,children:m,...x}=p,k=((v=y==null?void 0:y[r])==null?void 0:v[d])||l,f=g.useMemo(()=>x,Object.values(x));return t.jsx(k.Provider,{value:f,children:m})};h.displayName=o+"Provider";function u(p,y){var k;const m=((k=y==null?void 0:y[r])==null?void 0:k[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[h,u]}const s=()=>{const o=a.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||o;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return s.scopeName=r,[n,dR(s,...e)]}function dR(...r){const e=r[0];if(r.length===1)return e;const a=()=>{const n=r.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(o)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return a.scopeName=e.scopeName,a}var hR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],JI=hR.reduce((r,e)=>{const a=ha(`Primitive.${e}`),n=g.forwardRef((s,o)=>{const{asChild:c,...l}=s,d=c?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(d,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),xC="Progress",gC=100,[uR,IR]=lR(xC),[pR,yR]=uR(xC),YI=g.forwardRef((r,e)=>{const{__scopeProgress:a,value:n=null,max:s,getValueLabel:o=mR,...c}=r;(s||s===0)&&!xj(s)&&console.error(kR(`${s}`,"Progress"));const l=xj(s)?s:gC;n!==null&&!gj(n,l)&&console.error(fR(`${n}`,"Progress"));const d=gj(n,l)?n:null,h=gw(d)?o(d,l):void 0;return t.jsx(pR,{scope:a,value:d,max:l,children:t.jsx(JI.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":gw(d)?d:void 0,"aria-valuetext":h,role:"progressbar","data-state":eN(d,l),"data-value":d??void 0,"data-max":l,...c,ref:e})})});YI.displayName=xC;var KI="ProgressIndicator",QI=g.forwardRef((r,e)=>{const{__scopeProgress:a,...n}=r,s=yR(KI,a);return t.jsx(JI.div,{"data-state":eN(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:e})});QI.displayName=KI;function mR(r,e){return`${Math.round(r/e*100)}%`}function eN(r,e){return r==null?"indeterminate":r===e?"complete":"loading"}function gw(r){return typeof r=="number"}function xj(r){return gw(r)&&!isNaN(r)&&r>0}function gj(r,e){return gw(r)&&!isNaN(r)&&r<=e&&r>=0}function kR(r,e){return`Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${gC}\`.`}function fR(r,e){return`Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
7814
7814
|
- a positive number
|
|
7815
7815
|
- less than the value passed to \`max\` (or ${gC} if no \`max\` prop is set)
|
|
7816
7816
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
7817
7817
|
|
|
7818
|
-
Defaulting to \`null\`.`}var tN=YI,xR=QI;const aN=g.forwardRef(({className:r,value:e,...a},n)=>t.jsx(tN,{ref:n,className:me("relative h-4 w-full overflow-hidden rounded-full bg-secondary",r),...a,children:t.jsx(xR,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})}));aN.displayName=tN.displayName;function gR({enrolledCourses:r,recommendedCourses:e,certificates:a,onEnroll:n,onContinue:s,onExplore:o}){const c=({course:l,enrolled:d=!1})=>t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx(Ie,{className:"text-lg",children:l.title}),t.jsx(Fe,{children:l.provider})]}),t.jsx(Je,{variant:"outline",children:l.level})]})}),t.jsx(ye,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[t.jsx("span",{children:l.duration}),l.certificate&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(na,{className:"h-4 w-4"}),"Certificate"]})]}),t.jsx("div",{className:"flex flex-wrap gap-2",children:l.tags.map(h=>t.jsx(Je,{variant:"secondary",children:h},h))}),d&&l.progress!==void 0&&t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex justify-between text-sm",children:[t.jsx("span",{className:"text-muted-foreground",children:"Progress"}),t.jsxs("span",{className:"font-medium",children:[l.progress,"%"]})]}),t.jsx(aN,{value:l.progress})]}),!d&&l.reason&&t.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",l.reason]}),t.jsx(B,{className:"w-full",onClick:()=>d?s(l.id):n(l.id),children:d?"Continue Learning":"Enroll Now"})]})})]});return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Courses"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Advance your iGaming career"})]}),t.jsx(B,{onClick:o,children:"Explore All Courses"})]}),t.jsxs(Ci,{defaultValue:"enrolled",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"enrolled",children:[t.jsx(Nt,{className:"h-4 w-4 mr-2"}),"Enrolled (",r.length,")"]}),t.jsxs(Me,{value:"recommended",children:[t.jsx(mi,{className:"h-4 w-4 mr-2"}),"Recommended (",e.length,")"]}),t.jsxs(Me,{value:"certificates",children:[t.jsx(na,{className:"h-4 w-4 mr-2"}),"Certificates (",a.length,")"]})]}),t.jsx(we,{value:"enrolled",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:r.length===0?t.jsx(ue,{className:"md:col-span-2",children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(Nt,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No enrolled courses yet"}),t.jsx(B,{variant:"link",className:"mt-2",onClick:o,children:"Browse Courses"})]})}):r.map(l=>t.jsx(c,{course:l,enrolled:!0},l.id))})}),t.jsx(we,{value:"recommended",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:e.map(l=>t.jsx(c,{course:l},l.id))})}),t.jsx(we,{value:"certificates",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:a.length===0?t.jsx(ue,{className:"md:col-span-2",children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(na,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No certificates yet"}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Complete courses to earn certificates"})]})}):a.map(l=>t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:t.jsx(na,{className:"h-6 w-6 text-accent"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx(Ie,{className:"text-base",children:l.title}),t.jsx(Fe,{children:l.issuer}),t.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Issued: ",l.date]})]})]})}),t.jsx(ye,{children:t.jsx(B,{variant:"outline",size:"sm",className:"w-full",children:"Download Certificate"})})]},l.id))})})]})]})}function vR({recommendedNews:r,savedArticles:e,categories:a,selectedCategory:n,onRead:s,onSave:o,onCategoryChange:c,onManagePreferences:l}){const d=({article:h})=>t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsxs("div",{className:"flex justify-between items-start mb-2",children:[t.jsx(Je,{variant:"secondary",children:h.category}),t.jsx("span",{className:"text-xs text-muted-foreground",children:h.publishedDate})]}),t.jsx(Ie,{className:"text-lg",children:h.title}),t.jsxs(Fe,{className:"text-xs",children:[h.source," • ",h.readTime]})]}),t.jsx(ye,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:h.excerpt}),t.jsx("div",{className:"flex flex-wrap gap-2",children:h.tags.map(u=>t.jsx(Je,{variant:"outline",className:"text-xs",children:u},u))}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(B,{size:"sm",onClick:()=>s(h.id),children:"Read Article"}),t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(h.id),children:h.saved?"Saved":"Save"})]})]})})]});return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"News"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Stay updated with iGaming industry"})]}),t.jsxs(B,{variant:"outline",onClick:l,children:[t.jsx(Oi,{className:"h-4 w-4 mr-2"}),"Preferences"]})]}),t.jsxs(Ci,{defaultValue:"recommended",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"recommended",children:[t.jsx(oa,{className:"h-4 w-4 mr-2"}),"Recommended"]}),t.jsxs(Me,{value:"saved",children:[t.jsx(ja,{className:"h-4 w-4 mr-2"}),"Saved (",e.length,")"]})]}),t.jsxs(we,{value:"recommended",className:"space-y-4",children:[t.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[t.jsx(B,{variant:n==="all"?"default":"outline",size:"sm",onClick:()=>c("all"),children:"All"}),a.map(h=>t.jsx(B,{variant:n===h?"default":"outline",size:"sm",onClick:()=>c(h),children:h},h))]}),t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:r.map(h=>t.jsx(d,{article:h},h.id))})]}),t.jsx(we,{value:"saved",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:e.length===0?t.jsx(ue,{className:"md:col-span-2",children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(ja,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No saved articles yet"}),t.jsx(B,{variant:"link",className:"mt-2",children:"Browse News"})]})}):e.map(h=>t.jsx(d,{article:h},h.id))})})]})]})}function MR({notifications:r,connectedAccounts:e,isPremium:a,onUpdateNotifications:n,onConnectAccount:s,onDisconnectAccount:o,onChangePassword:c,onDeleteAccount:l,onUpgradePremium:d}){return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your account preferences"})]}),t.jsxs(Ci,{defaultValue:"notifications",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"notifications",children:[t.jsx(Hi,{className:"h-4 w-4 mr-2"}),"Notifications"]}),t.jsxs(Me,{value:"account",children:[t.jsx(Fs,{className:"h-4 w-4 mr-2"}),"Account"]}),t.jsxs(Me,{value:"subscription",children:[t.jsx(js,{className:"h-4 w-4 mr-2"}),"Subscription"]}),t.jsxs(Me,{value:"connected",children:[t.jsx(As,{className:"h-4 w-4 mr-2"}),"Connected"]})]}),t.jsx(we,{value:"notifications",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Notification Preferences"}),t.jsx(Fe,{children:"Choose how you want to be notified"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),t.jsx(Dt,{id:"email-notif",checked:r.emailNotifications,onCheckedChange:h=>n({emailNotifications:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"push-notif",className:"text-base",children:"Push Notifications"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Browser push notifications"})]}),t.jsx(Dt,{id:"push-notif",checked:r.pushNotifications,onCheckedChange:h=>n({pushNotifications:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"weekly-digest",className:"text-base",children:"Weekly Digest"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Summary of activities"})]}),t.jsx(Dt,{id:"weekly-digest",checked:r.weeklyDigest,onCheckedChange:h=>n({weeklyDigest:h})})]}),t.jsxs("div",{className:"border-t pt-4 space-y-4",children:[t.jsx("h4",{className:"font-medium",children:"Content Alerts"}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(ge,{htmlFor:"job-alerts-set",children:"Job Alerts"}),t.jsx(Dt,{id:"job-alerts-set",checked:r.jobAlerts,onCheckedChange:h=>n({jobAlerts:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(ge,{htmlFor:"course-updates",children:"Course Updates"}),t.jsx(Dt,{id:"course-updates",checked:r.courseUpdates,onCheckedChange:h=>n({courseUpdates:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(ge,{htmlFor:"news-digest",children:"News Digest"}),t.jsx(Dt,{id:"news-digest",checked:r.newsDigest,onCheckedChange:h=>n({newsDigest:h})})]})]})]})]})}),t.jsx(we,{value:"account",children:t.jsxs("div",{className:"space-y-4",children:[t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Password"}),t.jsx(Fe,{children:"Change your account password"})]}),t.jsx(ye,{children:t.jsx(B,{onClick:c,children:"Change Password"})})]}),t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Delete Account"}),t.jsx(Fe,{children:"Permanently delete your account and all data"})]}),t.jsx(ye,{children:t.jsx(B,{variant:"destructive",onClick:l,children:"Delete Account"})})]})]})}),t.jsx(we,{value:"subscription",children:t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{children:[t.jsx(Ie,{children:"Subscription Plan"}),t.jsx(Fe,{children:"Manage your membership"})]}),a&&t.jsx(Je,{children:"Premium"})]})}),t.jsx(ye,{className:"space-y-4",children:a?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"p-4 border rounded-lg bg-accent/5",children:[t.jsx("h4",{className:"font-semibold mb-2",children:"Premium Benefits"}),t.jsxs("ul",{className:"space-y-1 text-sm text-muted-foreground",children:[t.jsx("li",{children:"✓ Unlimited job applications"}),t.jsx("li",{children:"✓ Access to all courses"}),t.jsx("li",{children:"✓ Priority support"}),t.jsx("li",{children:"✓ Advanced analytics"}),t.jsx("li",{children:"✓ Ad-free experience"})]})]}),t.jsx(B,{variant:"outline",children:"Manage Subscription"})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:"Upgrade to Premium to unlock exclusive features"}),t.jsx(B,{onClick:d,children:"Upgrade to Premium"})]})})]})}),t.jsx(we,{value:"connected",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Connected Accounts"}),t.jsx(Fe,{children:"Manage linked accounts and integrations"})]}),t.jsx(ye,{className:"space-y-4",children:e.map(h=>t.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"font-medium",children:h.platform}),h.connected&&h.email&&t.jsx("p",{className:"text-sm text-muted-foreground",children:h.email})]}),h.connected?t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(h.id),children:"Disconnect"}):t.jsx(B,{size:"sm",onClick:()=>s(h.platform),children:"Connect"})]},h.id))})]})})]})]})}function wR({user:r,profileData:e,alerts:a,snapshot:n,feedItems:s}){const[o,c]=b.useState("overview"),l=()=>console.log("/logout"),d=u=>console.log(u),h=(...u)=>console.log("Action:",...u);return t.jsx(BT,{user:r,onLogout:l,onNavigate:d,currentPath:"/dashboard",notificationCount:a.length,children:t.jsxs(Ci,{value:o,onValueChange:c,className:"w-full",children:[t.jsxs(qa,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[t.jsxs(Me,{value:"overview",className:"flex items-center gap-2",children:[t.jsx(ea,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Overview"})]}),t.jsxs(Me,{value:"profile",className:"flex items-center gap-2",children:[t.jsx(Es,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Profile"})]}),t.jsxs(Me,{value:"jobs",className:"flex items-center gap-2",children:[t.jsx(ot,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Jobs"})]}),t.jsxs(Me,{value:"courses",className:"flex items-center gap-2",children:[t.jsx(Nt,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Courses"})]}),t.jsxs(Me,{value:"news",className:"flex items-center gap-2",children:[t.jsx(oa,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"News"})]}),t.jsxs(Me,{value:"settings",className:"flex items-center gap-2",children:[t.jsx(Xi,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Settings"})]})]}),t.jsx(we,{value:"overview",className:"mt-6",children:t.jsx($T,{userName:r.name,feedItems:s,alerts:a,snapshot:n,onSave:h,onApply:h,onEnroll:h,onRead:h})}),t.jsx(we,{value:"profile",className:"mt-6",children:t.jsx(oR,{profile:e,onUpdate:u=>console.log("Update profile",u)})}),t.jsx(we,{value:"jobs",className:"mt-6",children:t.jsx(cR,{savedJobs:[],applications:[],recommendedJobs:[],onApply:h,onRemove:h,onUploadCV:h,onSetAlert:h})}),t.jsx(we,{value:"courses",className:"mt-6",children:t.jsx(gR,{enrolledCourses:[],recommendedCourses:[],certificates:[],onEnroll:h,onContinue:h,onExplore:h})}),t.jsx(we,{value:"news",className:"mt-6",children:t.jsx(vR,{recommendedNews:[],savedArticles:[],categories:[],selectedCategory:"all",onRead:h,onSave:h,onCategoryChange:h,onManagePreferences:h})}),t.jsx(we,{value:"settings",className:"mt-6",children:t.jsx(MR,{notifications:{emailNotifications:!0,pushNotifications:!1,weeklyDigest:!0,jobAlerts:!0,courseUpdates:!0,newsDigest:!1},connectedAccounts:[],isPremium:!1,onUpdateNotifications:h,onConnectAccount:h,onDisconnectAccount:h,onChangePassword:h,onDeleteAccount:h,onUpgradePremium:h})})]})})}exports.Advantages=eS;exports.Analytics=fT;exports.Banner=eo;exports.Button=B;exports.Cart=pS;exports.Chatbot=uS;exports.ConsentBanner=SS;exports.ConsentProvider=LS;exports.CourseTypes=mS;exports.Courses=rS;exports.CoursesPage=cT;exports.Dashboard=wR;exports.Destinations=nS;exports.FAQ=dS;exports.FeatureJobs=v_;exports.Features=lS;exports.Footer=A_;exports.FooterLib=bS;exports.ForEmployers=kS;exports.ForgotPassword=ET;exports.Gallery=hS;exports.GroupPrices=EA;exports.Header=Qz;exports.HeaderAlternative=wS;exports.Hero=iS;exports.HeroAlternative=fS;exports.HomePage=g_;exports.IgamingCareerHome=b_;exports.Input=nt;exports.JobDetailPage=Kz;exports.JobListings=N_;exports.JobSearchWidget=MS;exports.Listing=Zz;exports.Login=DT;exports.MobileNav=AS;exports.Navbar=P_;exports.NewsPage=tT;exports.Newsletter=vS;exports.NotificationModal=IS;exports.Partners=CS;exports.Register=HT;exports.SearchableSelect=jw;exports.Services=sS;exports.ServicesNoIcons=yS;exports.SidebarNewsletter=aC;exports.SlidingSummary=OA;exports.Testimonials=oS;exports.TrustSignals=gS;exports.ValueProposition=xS;exports.Videos=cS;exports.useConsent=tC;
|
|
7818
|
+
Defaulting to \`null\`.`}var tN=YI,xR=QI;const aN=g.forwardRef(({className:r,value:e,...a},n)=>t.jsx(tN,{ref:n,className:me("relative h-4 w-full overflow-hidden rounded-full bg-secondary",r),...a,children:t.jsx(xR,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})}));aN.displayName=tN.displayName;function gR({enrolledCourses:r,recommendedCourses:e,certificates:a,onEnroll:n,onContinue:s,onExplore:o}){const c=({course:l,enrolled:d=!1})=>t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx(Ie,{className:"text-lg",children:l.title}),t.jsx(Fe,{children:l.provider})]}),t.jsx(Je,{variant:"outline",children:l.level})]})}),t.jsx(ye,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[t.jsx("span",{children:l.duration}),l.certificate&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(na,{className:"h-4 w-4"}),"Certificate"]})]}),t.jsx("div",{className:"flex flex-wrap gap-2",children:l.tags.map(h=>t.jsx(Je,{variant:"secondary",children:h},h))}),d&&l.progress!==void 0&&t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex justify-between text-sm",children:[t.jsx("span",{className:"text-muted-foreground",children:"Progress"}),t.jsxs("span",{className:"font-medium",children:[l.progress,"%"]})]}),t.jsx(aN,{value:l.progress})]}),!d&&l.reason&&t.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",l.reason]}),t.jsx(B,{className:"w-full",onClick:()=>d?s(l.id):n(l.id),children:d?"Continue Learning":"Enroll Now"})]})})]});return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Courses"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Advance your iGaming career"})]}),t.jsx(B,{onClick:o,children:"Explore All Courses"})]}),t.jsxs(Ci,{defaultValue:"enrolled",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"enrolled",children:[t.jsx(Nt,{className:"h-4 w-4 mr-2"}),"Enrolled (",r.length,")"]}),t.jsxs(Me,{value:"recommended",children:[t.jsx(mi,{className:"h-4 w-4 mr-2"}),"Recommended (",e.length,")"]}),t.jsxs(Me,{value:"certificates",children:[t.jsx(na,{className:"h-4 w-4 mr-2"}),"Certificates (",a.length,")"]})]}),t.jsx(we,{value:"enrolled",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:r.length===0?t.jsx(ue,{className:"md:col-span-2",children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(Nt,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No enrolled courses yet"}),t.jsx(B,{variant:"link",className:"mt-2",onClick:o,children:"Browse Courses"})]})}):r.map(l=>t.jsx(c,{course:l,enrolled:!0},l.id))})}),t.jsx(we,{value:"recommended",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:e.map(l=>t.jsx(c,{course:l},l.id))})}),t.jsx(we,{value:"certificates",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:a.length===0?t.jsx(ue,{className:"md:col-span-2",children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(na,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No certificates yet"}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Complete courses to earn certificates"})]})}):a.map(l=>t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:t.jsx(na,{className:"h-6 w-6 text-accent"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx(Ie,{className:"text-base",children:l.title}),t.jsx(Fe,{children:l.issuer}),t.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Issued: ",l.date]})]})]})}),t.jsx(ye,{children:t.jsx(B,{variant:"outline",size:"sm",className:"w-full",children:"Download Certificate"})})]},l.id))})})]})]})}function vR({recommendedNews:r,savedArticles:e,categories:a,selectedCategory:n,onRead:s,onSave:o,onCategoryChange:c,onManagePreferences:l}){const d=({article:h})=>t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsxs("div",{className:"flex justify-between items-start mb-2",children:[t.jsx(Je,{variant:"secondary",children:h.category}),t.jsx("span",{className:"text-xs text-muted-foreground",children:h.publishedDate})]}),t.jsx(Ie,{className:"text-lg",children:h.title}),t.jsxs(Fe,{className:"text-xs",children:[h.source," • ",h.readTime]})]}),t.jsx(ye,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:h.excerpt}),t.jsx("div",{className:"flex flex-wrap gap-2",children:h.tags.map(u=>t.jsx(Je,{variant:"outline",className:"text-xs",children:u},u))}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(B,{size:"sm",onClick:()=>s(h.id),children:"Read Article"}),t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(h.id),children:h.saved?"Saved":"Save"})]})]})})]});return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"News"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Stay updated with iGaming industry"})]}),t.jsxs(B,{variant:"outline",onClick:l,children:[t.jsx(Oi,{className:"h-4 w-4 mr-2"}),"Preferences"]})]}),t.jsxs(Ci,{defaultValue:"recommended",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"recommended",children:[t.jsx(oa,{className:"h-4 w-4 mr-2"}),"Recommended"]}),t.jsxs(Me,{value:"saved",children:[t.jsx(ja,{className:"h-4 w-4 mr-2"}),"Saved (",e.length,")"]})]}),t.jsxs(we,{value:"recommended",className:"space-y-4",children:[t.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[t.jsx(B,{variant:n==="all"?"default":"outline",size:"sm",onClick:()=>c("all"),children:"All"}),a.map(h=>t.jsx(B,{variant:n===h?"default":"outline",size:"sm",onClick:()=>c(h),children:h},h))]}),t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:r.map(h=>t.jsx(d,{article:h},h.id))})]}),t.jsx(we,{value:"saved",className:"space-y-4",children:t.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:e.length===0?t.jsx(ue,{className:"md:col-span-2",children:t.jsxs(ye,{className:"flex flex-col items-center justify-center py-10",children:[t.jsx(ja,{className:"h-12 w-12 text-muted-foreground mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"No saved articles yet"}),t.jsx(B,{variant:"link",className:"mt-2",children:"Browse News"})]})}):e.map(h=>t.jsx(d,{article:h},h.id))})})]})]})}function MR({notifications:r,connectedAccounts:e,isPremium:a,onUpdateNotifications:n,onConnectAccount:s,onDisconnectAccount:o,onChangePassword:c,onDeleteAccount:l,onUpgradePremium:d}){return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),t.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your account preferences"})]}),t.jsxs(Ci,{defaultValue:"notifications",className:"w-full",children:[t.jsxs(qa,{children:[t.jsxs(Me,{value:"notifications",children:[t.jsx(Hi,{className:"h-4 w-4 mr-2"}),"Notifications"]}),t.jsxs(Me,{value:"account",children:[t.jsx(Fs,{className:"h-4 w-4 mr-2"}),"Account"]}),t.jsxs(Me,{value:"subscription",children:[t.jsx(js,{className:"h-4 w-4 mr-2"}),"Subscription"]}),t.jsxs(Me,{value:"connected",children:[t.jsx(As,{className:"h-4 w-4 mr-2"}),"Connected"]})]}),t.jsx(we,{value:"notifications",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Notification Preferences"}),t.jsx(Fe,{children:"Choose how you want to be notified"})]}),t.jsxs(ye,{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),t.jsx(Dt,{id:"email-notif",checked:r.emailNotifications,onCheckedChange:h=>n({emailNotifications:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"push-notif",className:"text-base",children:"Push Notifications"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Browser push notifications"})]}),t.jsx(Dt,{id:"push-notif",checked:r.pushNotifications,onCheckedChange:h=>n({pushNotifications:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx(ge,{htmlFor:"weekly-digest",className:"text-base",children:"Weekly Digest"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Summary of activities"})]}),t.jsx(Dt,{id:"weekly-digest",checked:r.weeklyDigest,onCheckedChange:h=>n({weeklyDigest:h})})]}),t.jsxs("div",{className:"border-t pt-4 space-y-4",children:[t.jsx("h4",{className:"font-medium",children:"Content Alerts"}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(ge,{htmlFor:"job-alerts-set",children:"Job Alerts"}),t.jsx(Dt,{id:"job-alerts-set",checked:r.jobAlerts,onCheckedChange:h=>n({jobAlerts:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(ge,{htmlFor:"course-updates",children:"Course Updates"}),t.jsx(Dt,{id:"course-updates",checked:r.courseUpdates,onCheckedChange:h=>n({courseUpdates:h})})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(ge,{htmlFor:"news-digest",children:"News Digest"}),t.jsx(Dt,{id:"news-digest",checked:r.newsDigest,onCheckedChange:h=>n({newsDigest:h})})]})]})]})]})}),t.jsx(we,{value:"account",children:t.jsxs("div",{className:"space-y-4",children:[t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Password"}),t.jsx(Fe,{children:"Change your account password"})]}),t.jsx(ye,{children:t.jsx(B,{onClick:c,children:"Change Password"})})]}),t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Delete Account"}),t.jsx(Fe,{children:"Permanently delete your account and all data"})]}),t.jsx(ye,{children:t.jsx(B,{variant:"destructive",onClick:l,children:"Delete Account"})})]})]})}),t.jsx(we,{value:"subscription",children:t.jsxs(ue,{children:[t.jsx(Se,{children:t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{children:[t.jsx(Ie,{children:"Subscription Plan"}),t.jsx(Fe,{children:"Manage your membership"})]}),a&&t.jsx(Je,{children:"Premium"})]})}),t.jsx(ye,{className:"space-y-4",children:a?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"p-4 border rounded-lg bg-accent/5",children:[t.jsx("h4",{className:"font-semibold mb-2",children:"Premium Benefits"}),t.jsxs("ul",{className:"space-y-1 text-sm text-muted-foreground",children:[t.jsx("li",{children:"✓ Unlimited job applications"}),t.jsx("li",{children:"✓ Access to all courses"}),t.jsx("li",{children:"✓ Priority support"}),t.jsx("li",{children:"✓ Advanced analytics"}),t.jsx("li",{children:"✓ Ad-free experience"})]})]}),t.jsx(B,{variant:"outline",children:"Manage Subscription"})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:"Upgrade to Premium to unlock exclusive features"}),t.jsx(B,{onClick:d,children:"Upgrade to Premium"})]})})]})}),t.jsx(we,{value:"connected",children:t.jsxs(ue,{children:[t.jsxs(Se,{children:[t.jsx(Ie,{children:"Connected Accounts"}),t.jsx(Fe,{children:"Manage linked accounts and integrations"})]}),t.jsx(ye,{className:"space-y-4",children:e.map(h=>t.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"font-medium",children:h.platform}),h.connected&&h.email&&t.jsx("p",{className:"text-sm text-muted-foreground",children:h.email})]}),h.connected?t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(h.id),children:"Disconnect"}):t.jsx(B,{size:"sm",onClick:()=>s(h.platform),children:"Connect"})]},h.id))})]})})]})]})}function wR({user:r,profileData:e,alerts:a,snapshot:n,feedItems:s,onUpdateProfile:o}){const[c,l]=b.useState("overview"),d=()=>console.log("/logout"),h=p=>console.log(p),u=(...p)=>console.log("Action:",...p);return t.jsx(BT,{user:r,onLogout:d,onNavigate:h,currentPath:"/dashboard",notificationCount:a.length,children:t.jsxs(Ci,{value:c,onValueChange:l,className:"w-full",children:[t.jsxs(qa,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[t.jsxs(Me,{value:"overview",className:"flex items-center gap-2",children:[t.jsx(ea,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Overview"})]}),t.jsxs(Me,{value:"profile",className:"flex items-center gap-2",children:[t.jsx(Es,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Profile"})]}),t.jsxs(Me,{value:"jobs",className:"flex items-center gap-2",children:[t.jsx(ot,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Jobs"})]}),t.jsxs(Me,{value:"courses",className:"flex items-center gap-2",children:[t.jsx(Nt,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Courses"})]}),t.jsxs(Me,{value:"news",className:"flex items-center gap-2",children:[t.jsx(oa,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"News"})]}),t.jsxs(Me,{value:"settings",className:"flex items-center gap-2",children:[t.jsx(Xi,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Settings"})]})]}),t.jsx(we,{value:"overview",className:"mt-6",children:t.jsx($T,{userName:r.name,feedItems:s,alerts:a,snapshot:n,onSave:u,onApply:u,onEnroll:u,onRead:u})}),t.jsx(we,{value:"profile",className:"mt-6",children:t.jsx(oR,{profile:e,onUpdate:o})}),t.jsx(we,{value:"jobs",className:"mt-6",children:t.jsx(cR,{savedJobs:[],applications:[],recommendedJobs:[],onApply:u,onRemove:u,onUploadCV:u,onSetAlert:u})}),t.jsx(we,{value:"courses",className:"mt-6",children:t.jsx(gR,{enrolledCourses:[],recommendedCourses:[],certificates:[],onEnroll:u,onContinue:u,onExplore:u})}),t.jsx(we,{value:"news",className:"mt-6",children:t.jsx(vR,{recommendedNews:[],savedArticles:[],categories:[],selectedCategory:"all",onRead:u,onSave:u,onCategoryChange:u,onManagePreferences:u})}),t.jsx(we,{value:"settings",className:"mt-6",children:t.jsx(MR,{notifications:{emailNotifications:!0,pushNotifications:!1,weeklyDigest:!0,jobAlerts:!0,courseUpdates:!0,newsDigest:!1},connectedAccounts:[],isPremium:!1,onUpdateNotifications:u,onConnectAccount:u,onDisconnectAccount:u,onChangePassword:u,onDeleteAccount:u,onUpgradePremium:u})})]})})}exports.Advantages=eS;exports.Analytics=fT;exports.Banner=eo;exports.Button=B;exports.Cart=pS;exports.Chatbot=uS;exports.ConsentBanner=SS;exports.ConsentProvider=LS;exports.CourseTypes=mS;exports.Courses=rS;exports.CoursesPage=cT;exports.Dashboard=wR;exports.Destinations=nS;exports.FAQ=dS;exports.FeatureJobs=v_;exports.Features=lS;exports.Footer=A_;exports.FooterLib=bS;exports.ForEmployers=kS;exports.ForgotPassword=ET;exports.Gallery=hS;exports.GroupPrices=EA;exports.Header=Qz;exports.HeaderAlternative=wS;exports.Hero=iS;exports.HeroAlternative=fS;exports.HomePage=g_;exports.IgamingCareerHome=b_;exports.Input=nt;exports.JobDetailPage=Kz;exports.JobListings=N_;exports.JobSearchWidget=MS;exports.Listing=Zz;exports.Login=DT;exports.MobileNav=AS;exports.Navbar=P_;exports.NewsPage=tT;exports.Newsletter=vS;exports.NotificationModal=IS;exports.Partners=CS;exports.Register=HT;exports.SearchableSelect=jw;exports.Services=sS;exports.ServicesNoIcons=yS;exports.SidebarNewsletter=aC;exports.SlidingSummary=OA;exports.Testimonials=oS;exports.TrustSignals=gS;exports.ValueProposition=xS;exports.Videos=cS;exports.useConsent=tC;
|
package/dist/index.mjs
CHANGED
|
@@ -44653,14 +44653,37 @@ const Ht = g.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t.jsx(
|
|
|
44653
44653
|
}
|
|
44654
44654
|
));
|
|
44655
44655
|
Ht.displayName = AI.displayName;
|
|
44656
|
-
function KT({
|
|
44656
|
+
function KT({
|
|
44657
|
+
profile: r,
|
|
44658
|
+
onUpdate: e,
|
|
44659
|
+
isSaving: a = !1
|
|
44660
|
+
}) {
|
|
44661
|
+
const [n, o] = A(r), s = (d, h, u) => {
|
|
44662
|
+
o((p) => ({
|
|
44663
|
+
...p,
|
|
44664
|
+
[d]: {
|
|
44665
|
+
...p[d],
|
|
44666
|
+
[h]: u
|
|
44667
|
+
}
|
|
44668
|
+
}));
|
|
44669
|
+
}, c = (d, h, u) => {
|
|
44670
|
+
o((p) => ({
|
|
44671
|
+
...p,
|
|
44672
|
+
[d]: {
|
|
44673
|
+
...p[d],
|
|
44674
|
+
[h]: u
|
|
44675
|
+
}
|
|
44676
|
+
}));
|
|
44677
|
+
}, l = () => {
|
|
44678
|
+
e(n);
|
|
44679
|
+
};
|
|
44657
44680
|
return /* @__PURE__ */ t.jsxs("div", { className: "space-y-6", children: [
|
|
44658
44681
|
/* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
44659
44682
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
44660
44683
|
/* @__PURE__ */ t.jsx("h2", { className: "text-3xl font-bold", children: "Your Profile" }),
|
|
44661
44684
|
/* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground mt-1", children: "Manage your professional information" })
|
|
44662
44685
|
] }),
|
|
44663
|
-
/* @__PURE__ */ t.jsx(U, { onClick:
|
|
44686
|
+
/* @__PURE__ */ t.jsx(U, { onClick: l, disabled: a, children: a ? "Saving..." : "Save Changes" })
|
|
44664
44687
|
] }),
|
|
44665
44688
|
/* @__PURE__ */ t.jsxs(Li, { defaultValue: "personal", className: "w-full", children: [
|
|
44666
44689
|
/* @__PURE__ */ t.jsxs(Ta, { className: "grid w-full grid-cols-3 lg:grid-cols-6", children: [
|
|
@@ -44679,19 +44702,48 @@ function KT({ profile: r, onUpdate: e }) {
|
|
|
44679
44702
|
/* @__PURE__ */ t.jsx(me, { className: "space-y-4", children: /* @__PURE__ */ t.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
44680
44703
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44681
44704
|
/* @__PURE__ */ t.jsx(ve, { htmlFor: "fullName", children: "Full Name" }),
|
|
44682
|
-
/* @__PURE__ */ t.jsx(
|
|
44705
|
+
/* @__PURE__ */ t.jsx(
|
|
44706
|
+
st,
|
|
44707
|
+
{
|
|
44708
|
+
id: "fullName",
|
|
44709
|
+
value: n.personalDetails.fullName,
|
|
44710
|
+
onChange: (d) => s("personalDetails", "fullName", d.target.value)
|
|
44711
|
+
}
|
|
44712
|
+
)
|
|
44683
44713
|
] }),
|
|
44684
44714
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44685
44715
|
/* @__PURE__ */ t.jsx(ve, { htmlFor: "email", children: "Email" }),
|
|
44686
|
-
/* @__PURE__ */ t.jsx(
|
|
44716
|
+
/* @__PURE__ */ t.jsx(
|
|
44717
|
+
st,
|
|
44718
|
+
{
|
|
44719
|
+
id: "email",
|
|
44720
|
+
type: "email",
|
|
44721
|
+
value: n.personalDetails.email,
|
|
44722
|
+
onChange: (d) => s("personalDetails", "email", d.target.value)
|
|
44723
|
+
}
|
|
44724
|
+
)
|
|
44687
44725
|
] }),
|
|
44688
44726
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44689
44727
|
/* @__PURE__ */ t.jsx(ve, { htmlFor: "phone", children: "Phone" }),
|
|
44690
|
-
/* @__PURE__ */ t.jsx(
|
|
44728
|
+
/* @__PURE__ */ t.jsx(
|
|
44729
|
+
st,
|
|
44730
|
+
{
|
|
44731
|
+
id: "phone",
|
|
44732
|
+
value: n.personalDetails.phone,
|
|
44733
|
+
onChange: (d) => s("personalDetails", "phone", d.target.value)
|
|
44734
|
+
}
|
|
44735
|
+
)
|
|
44691
44736
|
] }),
|
|
44692
44737
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44693
44738
|
/* @__PURE__ */ t.jsx(ve, { htmlFor: "location", children: "Location" }),
|
|
44694
|
-
/* @__PURE__ */ t.jsx(
|
|
44739
|
+
/* @__PURE__ */ t.jsx(
|
|
44740
|
+
st,
|
|
44741
|
+
{
|
|
44742
|
+
id: "location",
|
|
44743
|
+
value: n.personalDetails.location,
|
|
44744
|
+
onChange: (d) => s("personalDetails", "location", d.target.value)
|
|
44745
|
+
}
|
|
44746
|
+
)
|
|
44695
44747
|
] })
|
|
44696
44748
|
] }) })
|
|
44697
44749
|
] }) }),
|
|
@@ -44701,12 +44753,12 @@ function KT({ profile: r, onUpdate: e }) {
|
|
|
44701
44753
|
/* @__PURE__ */ t.jsx(He, { children: "Your iGaming industry experience" })
|
|
44702
44754
|
] }),
|
|
44703
44755
|
/* @__PURE__ */ t.jsxs(me, { className: "space-y-4", children: [
|
|
44704
|
-
r.workExperience.map((
|
|
44705
|
-
/* @__PURE__ */ t.jsx("h4", { className: "font-semibold", children:
|
|
44706
|
-
/* @__PURE__ */ t.jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
44707
|
-
/* @__PURE__ */ t.jsx("p", { className: "text-xs text-muted-foreground", children:
|
|
44708
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children:
|
|
44709
|
-
] },
|
|
44756
|
+
r.workExperience.map((d) => /* @__PURE__ */ t.jsxs("div", { className: "p-4 border rounded-lg space-y-2", children: [
|
|
44757
|
+
/* @__PURE__ */ t.jsx("h4", { className: "font-semibold", children: d.title }),
|
|
44758
|
+
/* @__PURE__ */ t.jsx("p", { className: "text-sm text-muted-foreground", children: d.company }),
|
|
44759
|
+
/* @__PURE__ */ t.jsx("p", { className: "text-xs text-muted-foreground", children: d.period }),
|
|
44760
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: d.tags.map((h) => /* @__PURE__ */ t.jsx(Ye, { variant: "secondary", children: h }, h)) })
|
|
44761
|
+
] }, d.id)),
|
|
44710
44762
|
/* @__PURE__ */ t.jsx(U, { variant: "outline", className: "w-full", children: "Add Experience" })
|
|
44711
44763
|
] })
|
|
44712
44764
|
] }) }),
|
|
@@ -44718,17 +44770,17 @@ function KT({ profile: r, onUpdate: e }) {
|
|
|
44718
44770
|
/* @__PURE__ */ t.jsxs(me, { className: "space-y-6", children: [
|
|
44719
44771
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44720
44772
|
/* @__PURE__ */ t.jsx(ve, { children: "Desired Roles" }),
|
|
44721
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.jobSearchDetails.desiredRoles.map((
|
|
44773
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.jobSearchDetails.desiredRoles.map((d) => /* @__PURE__ */ t.jsx(Ye, { children: d }, d)) }),
|
|
44722
44774
|
/* @__PURE__ */ t.jsx(U, { variant: "outline", size: "sm", children: "Add Role" })
|
|
44723
44775
|
] }),
|
|
44724
44776
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44725
44777
|
/* @__PURE__ */ t.jsx(ve, { children: "Preferred Locations" }),
|
|
44726
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.jobSearchDetails.locations.map((
|
|
44778
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.jobSearchDetails.locations.map((d) => /* @__PURE__ */ t.jsx(Ye, { variant: "secondary", children: d }, d)) }),
|
|
44727
44779
|
/* @__PURE__ */ t.jsx(U, { variant: "outline", size: "sm", children: "Add Location" })
|
|
44728
44780
|
] }),
|
|
44729
44781
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44730
44782
|
/* @__PURE__ */ t.jsx(ve, { children: "Employment Type" }),
|
|
44731
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.jobSearchDetails.employmentType.map((
|
|
44783
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.jobSearchDetails.employmentType.map((d) => /* @__PURE__ */ t.jsx(Ye, { variant: "outline", children: d }, d)) })
|
|
44732
44784
|
] })
|
|
44733
44785
|
] })
|
|
44734
44786
|
] }) }),
|
|
@@ -44738,7 +44790,7 @@ function KT({ profile: r, onUpdate: e }) {
|
|
|
44738
44790
|
/* @__PURE__ */ t.jsx(He, { children: "Your professional skills and expertise" })
|
|
44739
44791
|
] }),
|
|
44740
44792
|
/* @__PURE__ */ t.jsxs(me, { className: "space-y-4", children: [
|
|
44741
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.skills.map((
|
|
44793
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.skills.map((d) => /* @__PURE__ */ t.jsx(Ye, { variant: "secondary", children: d }, d)) }),
|
|
44742
44794
|
/* @__PURE__ */ t.jsx(U, { variant: "outline", children: "Add Skill" })
|
|
44743
44795
|
] })
|
|
44744
44796
|
] }) }),
|
|
@@ -44753,21 +44805,42 @@ function KT({ profile: r, onUpdate: e }) {
|
|
|
44753
44805
|
/* @__PURE__ */ t.jsx(ve, { htmlFor: "job-alerts", className: "text-base", children: "Job Alerts" }),
|
|
44754
44806
|
/* @__PURE__ */ t.jsx("p", { className: "text-sm text-muted-foreground", children: "Get notified about new job matches" })
|
|
44755
44807
|
] }),
|
|
44756
|
-
/* @__PURE__ */ t.jsx(
|
|
44808
|
+
/* @__PURE__ */ t.jsx(
|
|
44809
|
+
Ht,
|
|
44810
|
+
{
|
|
44811
|
+
id: "job-alerts",
|
|
44812
|
+
checked: n.alerts.jobAlerts,
|
|
44813
|
+
onCheckedChange: (d) => c("alerts", "jobAlerts", d)
|
|
44814
|
+
}
|
|
44815
|
+
)
|
|
44757
44816
|
] }),
|
|
44758
44817
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
44759
44818
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
44760
44819
|
/* @__PURE__ */ t.jsx(ve, { htmlFor: "course-alerts", className: "text-base", children: "Course Alerts" }),
|
|
44761
44820
|
/* @__PURE__ */ t.jsx("p", { className: "text-sm text-muted-foreground", children: "Updates on new courses and training" })
|
|
44762
44821
|
] }),
|
|
44763
|
-
/* @__PURE__ */ t.jsx(
|
|
44822
|
+
/* @__PURE__ */ t.jsx(
|
|
44823
|
+
Ht,
|
|
44824
|
+
{
|
|
44825
|
+
id: "course-alerts",
|
|
44826
|
+
checked: n.alerts.courseAlerts,
|
|
44827
|
+
onCheckedChange: (d) => c("alerts", "courseAlerts", d)
|
|
44828
|
+
}
|
|
44829
|
+
)
|
|
44764
44830
|
] }),
|
|
44765
44831
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
44766
44832
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
44767
44833
|
/* @__PURE__ */ t.jsx(ve, { htmlFor: "news-alerts", className: "text-base", children: "News Alerts" }),
|
|
44768
44834
|
/* @__PURE__ */ t.jsx("p", { className: "text-sm text-muted-foreground", children: "Industry news and updates" })
|
|
44769
44835
|
] }),
|
|
44770
|
-
/* @__PURE__ */ t.jsx(
|
|
44836
|
+
/* @__PURE__ */ t.jsx(
|
|
44837
|
+
Ht,
|
|
44838
|
+
{
|
|
44839
|
+
id: "news-alerts",
|
|
44840
|
+
checked: n.alerts.newsAlerts,
|
|
44841
|
+
onCheckedChange: (d) => c("alerts", "newsAlerts", d)
|
|
44842
|
+
}
|
|
44843
|
+
)
|
|
44771
44844
|
] })
|
|
44772
44845
|
] })
|
|
44773
44846
|
] }) }),
|
|
@@ -44779,7 +44852,7 @@ function KT({ profile: r, onUpdate: e }) {
|
|
|
44779
44852
|
/* @__PURE__ */ t.jsxs(me, { className: "space-y-6", children: [
|
|
44780
44853
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
44781
44854
|
/* @__PURE__ */ t.jsx(ve, { children: "Interested Topics" }),
|
|
44782
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.preferences.topics.map((
|
|
44855
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-2", children: r.preferences.topics.map((d) => /* @__PURE__ */ t.jsx(Ye, { variant: "outline", children: d }, d)) }),
|
|
44783
44856
|
/* @__PURE__ */ t.jsx(U, { variant: "outline", size: "sm", children: "Manage Topics" })
|
|
44784
44857
|
] }),
|
|
44785
44858
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -45458,18 +45531,19 @@ function FR({
|
|
|
45458
45531
|
profileData: e,
|
|
45459
45532
|
alerts: a,
|
|
45460
45533
|
snapshot: n,
|
|
45461
|
-
feedItems: o
|
|
45534
|
+
feedItems: o,
|
|
45535
|
+
onUpdateProfile: s
|
|
45462
45536
|
}) {
|
|
45463
|
-
const [
|
|
45537
|
+
const [c, l] = A("overview"), d = () => console.log("/logout"), h = (p) => console.log(p), u = (...p) => console.log("Action:", ...p);
|
|
45464
45538
|
return /* @__PURE__ */ t.jsx(
|
|
45465
45539
|
zT,
|
|
45466
45540
|
{
|
|
45467
45541
|
user: r,
|
|
45468
|
-
onLogout:
|
|
45469
|
-
onNavigate:
|
|
45542
|
+
onLogout: d,
|
|
45543
|
+
onNavigate: h,
|
|
45470
45544
|
currentPath: "/dashboard",
|
|
45471
45545
|
notificationCount: a.length,
|
|
45472
|
-
children: /* @__PURE__ */ t.jsxs(Li, { value:
|
|
45546
|
+
children: /* @__PURE__ */ t.jsxs(Li, { value: c, onValueChange: l, className: "w-full", children: [
|
|
45473
45547
|
/* @__PURE__ */ t.jsxs(Ta, { className: "grid w-full grid-cols-3 lg:grid-cols-6", children: [
|
|
45474
45548
|
/* @__PURE__ */ t.jsxs(we, { value: "overview", className: "flex items-center gap-2", children: [
|
|
45475
45549
|
/* @__PURE__ */ t.jsx(aa, { className: "h-4 w-4" }),
|
|
@@ -45503,17 +45577,17 @@ function FR({
|
|
|
45503
45577
|
feedItems: o,
|
|
45504
45578
|
alerts: a,
|
|
45505
45579
|
snapshot: n,
|
|
45506
|
-
onSave:
|
|
45507
|
-
onApply:
|
|
45508
|
-
onEnroll:
|
|
45509
|
-
onRead:
|
|
45580
|
+
onSave: u,
|
|
45581
|
+
onApply: u,
|
|
45582
|
+
onEnroll: u,
|
|
45583
|
+
onRead: u
|
|
45510
45584
|
}
|
|
45511
45585
|
) }),
|
|
45512
45586
|
/* @__PURE__ */ t.jsx(be, { value: "profile", className: "mt-6", children: /* @__PURE__ */ t.jsx(
|
|
45513
45587
|
KT,
|
|
45514
45588
|
{
|
|
45515
45589
|
profile: e,
|
|
45516
|
-
onUpdate:
|
|
45590
|
+
onUpdate: s
|
|
45517
45591
|
}
|
|
45518
45592
|
) }),
|
|
45519
45593
|
/* @__PURE__ */ t.jsx(be, { value: "jobs", className: "mt-6", children: /* @__PURE__ */ t.jsx(
|
|
@@ -45522,10 +45596,10 @@ function FR({
|
|
|
45522
45596
|
savedJobs: [],
|
|
45523
45597
|
applications: [],
|
|
45524
45598
|
recommendedJobs: [],
|
|
45525
|
-
onApply:
|
|
45526
|
-
onRemove:
|
|
45527
|
-
onUploadCV:
|
|
45528
|
-
onSetAlert:
|
|
45599
|
+
onApply: u,
|
|
45600
|
+
onRemove: u,
|
|
45601
|
+
onUploadCV: u,
|
|
45602
|
+
onSetAlert: u
|
|
45529
45603
|
}
|
|
45530
45604
|
) }),
|
|
45531
45605
|
/* @__PURE__ */ t.jsx(be, { value: "courses", className: "mt-6", children: /* @__PURE__ */ t.jsx(
|
|
@@ -45534,9 +45608,9 @@ function FR({
|
|
|
45534
45608
|
enrolledCourses: [],
|
|
45535
45609
|
recommendedCourses: [],
|
|
45536
45610
|
certificates: [],
|
|
45537
|
-
onEnroll:
|
|
45538
|
-
onContinue:
|
|
45539
|
-
onExplore:
|
|
45611
|
+
onEnroll: u,
|
|
45612
|
+
onContinue: u,
|
|
45613
|
+
onExplore: u
|
|
45540
45614
|
}
|
|
45541
45615
|
) }),
|
|
45542
45616
|
/* @__PURE__ */ t.jsx(be, { value: "news", className: "mt-6", children: /* @__PURE__ */ t.jsx(
|
|
@@ -45546,10 +45620,10 @@ function FR({
|
|
|
45546
45620
|
savedArticles: [],
|
|
45547
45621
|
categories: [],
|
|
45548
45622
|
selectedCategory: "all",
|
|
45549
|
-
onRead:
|
|
45550
|
-
onSave:
|
|
45551
|
-
onCategoryChange:
|
|
45552
|
-
onManagePreferences:
|
|
45623
|
+
onRead: u,
|
|
45624
|
+
onSave: u,
|
|
45625
|
+
onCategoryChange: u,
|
|
45626
|
+
onManagePreferences: u
|
|
45553
45627
|
}
|
|
45554
45628
|
) }),
|
|
45555
45629
|
/* @__PURE__ */ t.jsx(be, { value: "settings", className: "mt-6", children: /* @__PURE__ */ t.jsx(
|
|
@@ -45565,12 +45639,12 @@ function FR({
|
|
|
45565
45639
|
},
|
|
45566
45640
|
connectedAccounts: [],
|
|
45567
45641
|
isPremium: !1,
|
|
45568
|
-
onUpdateNotifications:
|
|
45569
|
-
onConnectAccount:
|
|
45570
|
-
onDisconnectAccount:
|
|
45571
|
-
onChangePassword:
|
|
45572
|
-
onDeleteAccount:
|
|
45573
|
-
onUpgradePremium:
|
|
45642
|
+
onUpdateNotifications: u,
|
|
45643
|
+
onConnectAccount: u,
|
|
45644
|
+
onDisconnectAccount: u,
|
|
45645
|
+
onChangePassword: u,
|
|
45646
|
+
onDeleteAccount: u,
|
|
45647
|
+
onUpgradePremium: u
|
|
45574
45648
|
}
|
|
45575
45649
|
) })
|
|
45576
45650
|
] })
|
package/package.json
CHANGED