@igamingcareer/igaming-components 1.0.43 → 1.0.44
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 +1 -1
- package/dist/index.mjs +38 -42
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7810,4 +7810,4 @@ 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 oL(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function WT(...r){return e=>{let t=!1;const n=r.map(o=>{const s=oL(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():oL(r[o],null)}}}}function oC(...r){return g.useCallback(WT(...r),r)}function $T(r,e=[]){let t=[];function n(s,c){const l=g.createContext(c),d=t.length;t=[...t,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 a.jsx(k.Provider,{value:f,children:m})};h.displayName=s+"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 \`${s}\``)}return[h,u]}const o=()=>{const s=t.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||s;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return o.scopeName=r,[n,ZT(o,...e)]}function ZT(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const n=r.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(s)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}function sL(r,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(r==null||r(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}var Mb=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},XT=g[" useInsertionEffect ".trim().toString()]||Mb;function JT({prop:r,defaultProp:e,onChange:t=()=>{},caller:n}){const[o,s,c]=YT({defaultProp:e,onChange:t}),l=r!==void 0,d=l?r:o;{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=KT(u)?u(r):u;y!==r&&((p=c.current)==null||p.call(c,y))}else s(u)},[l,r,s,c]);return[d,h]}function YT({defaultProp:r,onChange:e}){const[t,n]=g.useState(r),o=g.useRef(t),s=g.useRef(e);return XT(()=>{s.current=e},[e]),g.useEffect(()=>{var c;o.current!==t&&((c=s.current)==null||c.call(s,t),o.current=t)},[t,o]),[t,n,s]}function KT(r){return typeof r=="function"}function QT(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 ez=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function tz(r){const[e,t]=g.useState(void 0);return ez(()=>{if(r){t({width:r.offsetWidth,height:r.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,l;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=r.offsetWidth,l=r.offsetHeight;t({width:c,height:l})});return n.observe(r,{box:"border-box"}),()=>n.unobserve(r)}else t(void 0)},[r]),e}function az(r,e){return g.useReducer((t,n)=>e[t][n]??t,r)}var wI=r=>{const{present:e,children:t}=r,n=rz(e),o=typeof t=="function"?t({present:n.isPresent}):g.Children.only(t),s=oC(n.ref,nz(o));return typeof t=="function"||n.isPresent?g.cloneElement(o,{ref:s}):null};wI.displayName="Presence";function rz(r){const[e,t]=g.useState(),n=g.useRef(null),o=g.useRef(r),s=g.useRef("none"),c=r?"mounted":"unmounted",[l,d]=az(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=as(n.current);s.current=l==="mounted"?h:"none"},[l]),Mb(()=>{const h=n.current,u=o.current;if(u!==r){const y=s.current,m=as(h);r?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=r}},[r,d]),Mb(()=>{if(e){let h;const u=e.ownerDocument.defaultView??window,p=m=>{const k=as(n.current).includes(CSS.escape(m.animationName));if(m.target===e&&k&&(d("ANIMATION_END"),!o.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&&(s.current=as(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,t(h)},[])}}function as(r){return(r==null?void 0:r.animationName)||"none"}function nz(r){var n,o;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(o=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var iz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sC=iz.reduce((r,e)=>{const t=li(`Primitive.${e}`),n=g.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(d,{...l,ref:s})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),ww="Checkbox",[oz,Mz]=$T(ww),[sz,cC]=oz(ww);function cz(r){const{__scopeCheckbox:e,checked:t,children:n,defaultChecked:o,disabled:s,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=r,[y,m]=JT({prop:t,defaultProp:o??!1,onChange:d,caller:ww}),[x,k]=g.useState(null),[f,v]=g.useState(null),M=g.useRef(!1),j=x?!!c||!!x.closest("form"):!0,S={checked:y,disabled:s,setChecked:m,control:x,setControl:k,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:M,required:h,defaultChecked:ka(o)?!1:o,isFormControl:j,bubbleInput:f,setBubbleInput:v};return a.jsx(sz,{scope:e,...S,children:lz(p)?p(S):n})}var bI="CheckboxTrigger",CI=g.forwardRef(({__scopeCheckbox:r,onKeyDown:e,onClick:t,...n},o)=>{const{control:s,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:y,isFormControl:m,bubbleInput:x}=cC(bI,r),k=oC(o,u),f=g.useRef(d);return g.useEffect(()=>{const v=s==null?void 0:s.form;if(v){const M=()=>p(f.current);return v.addEventListener("reset",M),()=>v.removeEventListener("reset",M)}},[s,p]),a.jsx(sC.button,{type:"button",role:"checkbox","aria-checked":ka(d)?"mixed":d,"aria-required":h,"data-state":NI(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:k,onKeyDown:sL(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:sL(t,v=>{p(M=>ka(M)?!0:!M),x&&m&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})})});CI.displayName=bI;var lC=g.forwardRef((r,e)=>{const{__scopeCheckbox:t,name:n,checked:o,defaultChecked:s,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=r;return a.jsx(cz,{__scopeCheckbox:t,checked:o,defaultChecked:s,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:y})=>a.jsxs(a.Fragment,{children:[a.jsx(CI,{...p,ref:e,__scopeCheckbox:t}),y&&a.jsx(II,{__scopeCheckbox:t})]})})});lC.displayName=ww;var LI="CheckboxIndicator",jI=g.forwardRef((r,e)=>{const{__scopeCheckbox:t,forceMount:n,...o}=r,s=cC(LI,t);return a.jsx(wI,{present:n||ka(s.checked)||s.checked===!0,children:a.jsx(sC.span,{"data-state":NI(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...r.style}})})});jI.displayName=LI;var SI="CheckboxBubbleInput",II=g.forwardRef(({__scopeCheckbox:r,...e},t)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:y,setBubbleInput:m}=cC(SI,r),x=oC(t,m),k=QT(s),f=tz(n);g.useEffect(()=>{const M=y;if(!M)return;const j=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(j,"checked").set,N=!o.current;if(k!==s&&C){const L=new Event("click",{bubbles:N});M.indeterminate=ka(s),C.call(M,ka(s)?!1:s),M.dispatchEvent(L)}},[y,k,s,o]);const v=g.useRef(ka(s)?!1:s);return a.jsx(sC.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%)"}})});II.displayName=SI;function lz(r){return typeof r=="function"}function ka(r){return r==="indeterminate"}function NI(r){return ka(r)?"indeterminate":r?"checked":"unchecked"}const dC=g.forwardRef(({className:r,...e},t)=>a.jsx(lC,{ref:t,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:a.jsx(jI,{className:Me("flex items-center justify-center text-current"),children:a.jsx(Li,{className:"h-4 w-4"})})}));dC.displayName=lC.displayName;const dz=bb("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"}}),bw=g.forwardRef(({className:r,variant:e,...t},n)=>a.jsx("div",{ref:n,role:"alert",className:Me(dz({variant:e}),r),...t}));bw.displayName="Alert";const hz=g.forwardRef(({className:r,...e},t)=>a.jsx("h5",{ref:t,className:Me("mb-1 font-medium leading-none tracking-tight",r),...e}));hz.displayName="AlertTitle";const Cw=g.forwardRef(({className:r,...e},t)=>a.jsx("div",{ref:t,className:Me("text-sm [&_p]:leading-relaxed",r),...e}));Cw.displayName="AlertDescription";function uz({onSubmit:r,onForgotPassword:e,onRegisterClick:t,isLoading:n=!1,error:o,title:s="Welcome Back",description:c="Sign in to your account to continue"}){const[l,d]=b.useState(""),[h,u]=b.useState(""),[p,y]=b.useState(!1),m=x=>{x.preventDefault(),r(l,h,p)};return a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx(Ei,{className:"text-2xl font-bold",children:s}),a.jsx(Oi,{children:c})]}),a.jsxs("form",{onSubmit:m,children:[a.jsxs(Oo,{className:"space-y-4",children:[o&&a.jsxs(bw,{variant:"destructive",children:[a.jsx(Lt,{className:"h-4 w-4"}),a.jsx(Cw,{children:o})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"email",children:"Email"}),a.jsxs("div",{className:"relative",children:[a.jsx(jt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"email",type:"email",placeholder:"you@example.com",value:l,onChange:x=>d(x.target.value),className:"pl-10",required:!0,disabled:n})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"password",children:"Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(ei,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"password",type:"password",placeholder:"••••••••",value:h,onChange:x=>u(x.target.value),className:"pl-10",required:!0,disabled:n})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(dC,{id:"remember",checked:p,onCheckedChange:x=>y(x),disabled:n}),a.jsx(kt,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),e&&a.jsx("button",{type:"button",onClick:e,className:"text-sm text-accent hover:underline",disabled:n,children:"Forgot password?"})]})]}),a.jsxs(Bi,{className:"flex flex-col space-y-4",children:[a.jsx(qe,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Signing in...":"Sign In"}),t&&a.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",a.jsx("button",{type:"button",onClick:t,className:"text-accent hover:underline font-medium",disabled:n,children:"Create account"})]})]})]})]})}const pz=({onSubmit:r,onForgotPassword:e,onRegisterClick:t,isLoading:n=!1,error:o="",appName:s="Your App",logo:c})=>a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"mb-8 text-center",children:[a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:a.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),a.jsx("span",{className:"text-2xl font-bold text-white",children:s})]}),a.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),a.jsx(uz,{onSubmit:r,onForgotPassword:e,onRegisterClick:t,isLoading:n,error:o})]})});function yz({onSubmit:r,onLoginClick:e,isLoading:t=!1,error:n,title:o="Create Account",description:s="Join us to access exclusive opportunities",showCompanyField:c=!1}){const[l,d]=b.useState({email:"",password:"",confirmPassword:"",fullName:"",company:"",acceptTerms:!1}),[h,u]=b.useState(""),p=m=>{if(m.preventDefault(),u(""),l.password!==l.confirmPassword){u("Passwords do not match");return}if(l.password.length<8){u("Password must be at least 8 characters");return}if(!l.acceptTerms){u("You must accept the terms and conditions");return}r(l)},y=(m,x)=>{d(k=>({...k,[m]:x}))};return a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx(Ei,{className:"text-2xl font-bold",children:o}),a.jsx(Oi,{children:s})]}),a.jsxs("form",{onSubmit:p,children:[a.jsxs(Oo,{className:"space-y-4",children:[(n||h)&&a.jsxs(bw,{variant:"destructive",children:[a.jsx(Lt,{className:"h-4 w-4"}),a.jsx(Cw,{children:n||h})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"fullName",children:"Full Name"}),a.jsxs("div",{className:"relative",children:[a.jsx(Io,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"fullName",type:"text",placeholder:"John Doe",value:l.fullName,onChange:m=>y("fullName",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"email",children:"Email"}),a.jsxs("div",{className:"relative",children:[a.jsx(jt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"email",type:"email",placeholder:"you@example.com",value:l.email,onChange:m=>y("email",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),c&&a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"company",children:"Company (Optional)"}),a.jsxs("div",{className:"relative",children:[a.jsx(uo,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"company",type:"text",placeholder:"Your Company",value:l.company,onChange:m=>y("company",m.target.value),className:"pl-10",disabled:t})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"password",children:"Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(ei,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"password",type:"password",placeholder:"••••••••",value:l.password,onChange:m=>y("password",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"confirmPassword",children:"Confirm Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(ei,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"confirmPassword",type:"password",placeholder:"••••••••",value:l.confirmPassword,onChange:m=>y("confirmPassword",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),a.jsxs("div",{className:"flex items-start space-x-2",children:[a.jsx(dC,{id:"terms",checked:l.acceptTerms,onCheckedChange:m=>y("acceptTerms",m),disabled:t}),a.jsxs(kt,{htmlFor:"terms",className:"text-sm font-normal leading-relaxed cursor-pointer",children:["I agree to the"," ",a.jsx("a",{href:"/terms",className:"text-accent hover:underline",children:"Terms of Service"})," ","and"," ",a.jsx("a",{href:"/privacy",className:"text-accent hover:underline",children:"Privacy Policy"})]})]})]}),a.jsxs(Bi,{className:"flex flex-col space-y-4",children:[a.jsx(qe,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:t,children:t?"Creating account...":"Create Account"}),e&&a.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",a.jsx("button",{type:"button",onClick:e,className:"text-accent hover:underline font-medium",disabled:t,children:"Sign in"})]})]})]})]})}const mz=({onSubmit:r,onLoginClick:e,isLoading:t=!1,error:n="",appName:o="Your App",logo:s,showCompanyField:c=!0})=>a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"mb-8 text-center",children:[a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[s||a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:a.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),a.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),a.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),a.jsx(yz,{onSubmit:r,onLoginClick:e,isLoading:t,error:n,showCompanyField:c})]})});function kz({onSubmit:r,onBackToLogin:e,isLoading:t=!1,error:n,success:o=!1,title:s="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 o?a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx("div",{className:"flex items-center justify-center mb-4",children:a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:a.jsx(ct,{className:"h-6 w-6 text-green-600"})})}),a.jsx(Ei,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),a.jsx(Oi,{className:"text-center",children:l})]}),a.jsx(Bi,{className:"flex flex-col space-y-4",children:e&&a.jsxs(qe,{type:"button",variant:"outline",className:"w-full",onClick:e,children:[a.jsx(Xn,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx(Ei,{className:"text-2xl font-bold",children:s}),a.jsx(Oi,{children:c})]}),a.jsxs("form",{onSubmit:u,children:[a.jsxs(Oo,{className:"space-y-4",children:[n&&a.jsxs(bw,{variant:"destructive",children:[a.jsx(Lt,{className:"h-4 w-4"}),a.jsx(Cw,{children:n})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"email",children:"Email Address"}),a.jsxs("div",{className:"relative",children:[a.jsx(jt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:t})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),a.jsxs(Bi,{className:"flex flex-col space-y-4",children:[a.jsx(qe,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:t,children:t?"Sending...":"Send Reset Link"}),e&&a.jsxs(qe,{type:"button",variant:"ghost",className:"w-full",onClick:e,disabled:t,children:[a.jsx(Xn,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const fz=({onSubmit:r,onBackToLogin:e,isLoading:t=!1,error:n="",success:o=!1,appName:s="Your App",logo:c})=>a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"mb-8 text-center",children:[a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:a.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),a.jsx("span",{className:"text-2xl font-bold text-white",children:s})]}),a.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),a.jsx(kz,{onSubmit:r,onBackToLogin:e,isLoading:t,error:n,success:o})]})});exports.Advantages=Gj;exports.Analytics=GT;exports.Banner=Eo;exports.Button=qe;exports.Cart=nS;exports.Chatbot=rS;exports.ConsentBanner=xS;exports.ConsentProvider=fS;exports.CourseTypes=oS;exports.Courses=Zj;exports.CoursesPage=RT;exports.Destinations=Xj;exports.FAQ=tS;exports.FeatureJobs=ZP;exports.Features=eS;exports.Footer=n_;exports.FooterLib=yS;exports.ForEmployers=sS;exports.ForgotPassword=fz;exports.Gallery=aS;exports.GroupPrices=mA;exports.Header=ST;exports.HeaderAlternative=pS;exports.Hero=Jj;exports.HeroAlternative=cS;exports.HomePage=$P;exports.IgamingCareerHome=YP;exports.Input=Ye;exports.JobDetailPage=jT;exports.JobListings=r_;exports.JobSearchWidget=uS;exports.Listing=wT;exports.Login=pz;exports.MobileNav=MS;exports.Navbar=i_;exports.NewsPage=NT;exports.Newsletter=hS;exports.NotificationModal=gS;exports.Partners=mS;exports.Register=mz;exports.SearchableSelect=fw;exports.Services=Yj;exports.ServicesNoIcons=iS;exports.SidebarNewsletter=Zb;exports.SlidingSummary=kA;exports.Testimonials=Kj;exports.TrustSignals=dS;exports.ValueProposition=lS;exports.Videos=Qj;exports.useConsent=$b;
|
|
7813
|
+
`})})}function oL(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function WT(...r){return e=>{let t=!1;const n=r.map(o=>{const s=oL(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():oL(r[o],null)}}}}function oC(...r){return g.useCallback(WT(...r),r)}function $T(r,e=[]){let t=[];function n(s,c){const l=g.createContext(c),d=t.length;t=[...t,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 a.jsx(k.Provider,{value:f,children:m})};h.displayName=s+"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 \`${s}\``)}return[h,u]}const o=()=>{const s=t.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[r])||s;return g.useMemo(()=>({[`__scope${r}`]:{...l,[r]:d}}),[l,d])}};return o.scopeName=r,[n,ZT(o,...e)]}function ZT(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const n=r.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(s)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}function sL(r,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(r==null||r(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}var Mb=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},XT=g[" useInsertionEffect ".trim().toString()]||Mb;function JT({prop:r,defaultProp:e,onChange:t=()=>{},caller:n}){const[o,s,c]=YT({defaultProp:e,onChange:t}),l=r!==void 0,d=l?r:o;{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=KT(u)?u(r):u;y!==r&&((p=c.current)==null||p.call(c,y))}else s(u)},[l,r,s,c]);return[d,h]}function YT({defaultProp:r,onChange:e}){const[t,n]=g.useState(r),o=g.useRef(t),s=g.useRef(e);return XT(()=>{s.current=e},[e]),g.useEffect(()=>{var c;o.current!==t&&((c=s.current)==null||c.call(s,t),o.current=t)},[t,o]),[t,n,s]}function KT(r){return typeof r=="function"}function QT(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 ez=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function tz(r){const[e,t]=g.useState(void 0);return ez(()=>{if(r){t({width:r.offsetWidth,height:r.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,l;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=r.offsetWidth,l=r.offsetHeight;t({width:c,height:l})});return n.observe(r,{box:"border-box"}),()=>n.unobserve(r)}else t(void 0)},[r]),e}function az(r,e){return g.useReducer((t,n)=>e[t][n]??t,r)}var wI=r=>{const{present:e,children:t}=r,n=rz(e),o=typeof t=="function"?t({present:n.isPresent}):g.Children.only(t),s=oC(n.ref,nz(o));return typeof t=="function"||n.isPresent?g.cloneElement(o,{ref:s}):null};wI.displayName="Presence";function rz(r){const[e,t]=g.useState(),n=g.useRef(null),o=g.useRef(r),s=g.useRef("none"),c=r?"mounted":"unmounted",[l,d]=az(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=as(n.current);s.current=l==="mounted"?h:"none"},[l]),Mb(()=>{const h=n.current,u=o.current;if(u!==r){const y=s.current,m=as(h);r?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=r}},[r,d]),Mb(()=>{if(e){let h;const u=e.ownerDocument.defaultView??window,p=m=>{const k=as(n.current).includes(CSS.escape(m.animationName));if(m.target===e&&k&&(d("ANIMATION_END"),!o.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&&(s.current=as(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,t(h)},[])}}function as(r){return(r==null?void 0:r.animationName)||"none"}function nz(r){var n,o;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(o=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var iz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sC=iz.reduce((r,e)=>{const t=li(`Primitive.${e}`),n=g.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(d,{...l,ref:s})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),ww="Checkbox",[oz,Mz]=$T(ww),[sz,cC]=oz(ww);function cz(r){const{__scopeCheckbox:e,checked:t,children:n,defaultChecked:o,disabled:s,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=r,[y,m]=JT({prop:t,defaultProp:o??!1,onChange:d,caller:ww}),[x,k]=g.useState(null),[f,v]=g.useState(null),M=g.useRef(!1),j=x?!!c||!!x.closest("form"):!0,S={checked:y,disabled:s,setChecked:m,control:x,setControl:k,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:M,required:h,defaultChecked:ka(o)?!1:o,isFormControl:j,bubbleInput:f,setBubbleInput:v};return a.jsx(sz,{scope:e,...S,children:lz(p)?p(S):n})}var bI="CheckboxTrigger",CI=g.forwardRef(({__scopeCheckbox:r,onKeyDown:e,onClick:t,...n},o)=>{const{control:s,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:y,isFormControl:m,bubbleInput:x}=cC(bI,r),k=oC(o,u),f=g.useRef(d);return g.useEffect(()=>{const v=s==null?void 0:s.form;if(v){const M=()=>p(f.current);return v.addEventListener("reset",M),()=>v.removeEventListener("reset",M)}},[s,p]),a.jsx(sC.button,{type:"button",role:"checkbox","aria-checked":ka(d)?"mixed":d,"aria-required":h,"data-state":NI(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:k,onKeyDown:sL(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:sL(t,v=>{p(M=>ka(M)?!0:!M),x&&m&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})})});CI.displayName=bI;var lC=g.forwardRef((r,e)=>{const{__scopeCheckbox:t,name:n,checked:o,defaultChecked:s,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=r;return a.jsx(cz,{__scopeCheckbox:t,checked:o,defaultChecked:s,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:y})=>a.jsxs(a.Fragment,{children:[a.jsx(CI,{...p,ref:e,__scopeCheckbox:t}),y&&a.jsx(II,{__scopeCheckbox:t})]})})});lC.displayName=ww;var LI="CheckboxIndicator",jI=g.forwardRef((r,e)=>{const{__scopeCheckbox:t,forceMount:n,...o}=r,s=cC(LI,t);return a.jsx(wI,{present:n||ka(s.checked)||s.checked===!0,children:a.jsx(sC.span,{"data-state":NI(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...r.style}})})});jI.displayName=LI;var SI="CheckboxBubbleInput",II=g.forwardRef(({__scopeCheckbox:r,...e},t)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:y,setBubbleInput:m}=cC(SI,r),x=oC(t,m),k=QT(s),f=tz(n);g.useEffect(()=>{const M=y;if(!M)return;const j=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(j,"checked").set,N=!o.current;if(k!==s&&C){const L=new Event("click",{bubbles:N});M.indeterminate=ka(s),C.call(M,ka(s)?!1:s),M.dispatchEvent(L)}},[y,k,s,o]);const v=g.useRef(ka(s)?!1:s);return a.jsx(sC.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%)"}})});II.displayName=SI;function lz(r){return typeof r=="function"}function ka(r){return r==="indeterminate"}function NI(r){return ka(r)?"indeterminate":r?"checked":"unchecked"}const dC=g.forwardRef(({className:r,...e},t)=>a.jsx(lC,{ref:t,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:a.jsx(jI,{className:Me("flex items-center justify-center text-current"),children:a.jsx(Li,{className:"h-4 w-4"})})}));dC.displayName=lC.displayName;const dz=bb("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"}}),bw=g.forwardRef(({className:r,variant:e,...t},n)=>a.jsx("div",{ref:n,role:"alert",className:Me(dz({variant:e}),r),...t}));bw.displayName="Alert";const hz=g.forwardRef(({className:r,...e},t)=>a.jsx("h5",{ref:t,className:Me("mb-1 font-medium leading-none tracking-tight",r),...e}));hz.displayName="AlertTitle";const Cw=g.forwardRef(({className:r,...e},t)=>a.jsx("div",{ref:t,className:Me("text-sm [&_p]:leading-relaxed",r),...e}));Cw.displayName="AlertDescription";function uz({onSubmit:r,onForgotPassword:e,onRegisterClick:t,isLoading:n=!1,error:o,title:s="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 a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx(Ei,{className:"text-2xl font-bold",children:s}),a.jsx(Oi,{children:c})]}),a.jsxs("form",{onSubmit:k,children:[a.jsxs(Oo,{className:"space-y-4",children:[o&&a.jsxs(bw,{variant:"destructive",children:[a.jsx(Lt,{className:"h-4 w-4"}),a.jsx(Cw,{children:o})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"identifier",children:l}),a.jsxs("div",{className:"relative",children:[a.jsx(jt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"identifier",type:"text",placeholder:d,value:h,onChange:f=>u(f.target.value),className:"pl-10",required:!0,disabled:n})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"password",children:"Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(ei,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"password",type:"password",placeholder:"••••••••",value:p,onChange:f=>y(f.target.value),className:"pl-10",required:!0,disabled:n})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(dC,{id:"remember",checked:m,onCheckedChange:f=>x(f),disabled:n}),a.jsx(kt,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),e&&a.jsx("button",{type:"button",onClick:e,className:"text-sm text-accent hover:underline",disabled:n,children:"Forgot password?"})]})]}),a.jsxs(Bi,{className:"flex flex-col space-y-4",children:[a.jsx(qe,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Signing in...":"Sign In"}),t&&a.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",a.jsx("button",{type:"button",onClick:t,className:"text-accent hover:underline font-medium",disabled:n,children:"Create account"})]})]})]})]})}const pz=({onSubmit:r,onForgotPassword:e,onRegisterClick:t,isLoading:n=!1,error:o="",appName:s="Your App",logo:c,identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"})=>a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"mb-8 text-center",children:[a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:a.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),a.jsx("span",{className:"text-2xl font-bold text-white",children:s})]}),a.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),a.jsx(uz,{onSubmit:r,onForgotPassword:e,onRegisterClick:t,isLoading:n,error:o,identifierLabel:l,identifierPlaceholder:d})]})});function yz({onSubmit:r,onLoginClick:e,isLoading:t=!1,error:n,title:o="Create Account",description:s="Join us to access exclusive opportunities",showCompanyField:c=!1}){const[l,d]=b.useState({email:"",password:"",confirmPassword:"",fullName:"",company:"",acceptTerms:!1}),[h,u]=b.useState(""),p=m=>{if(m.preventDefault(),u(""),l.password!==l.confirmPassword){u("Passwords do not match");return}if(l.password.length<8){u("Password must be at least 8 characters");return}if(!l.acceptTerms){u("You must accept the terms and conditions");return}r(l)},y=(m,x)=>{d(k=>({...k,[m]:x}))};return a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx(Ei,{className:"text-2xl font-bold",children:o}),a.jsx(Oi,{children:s})]}),a.jsxs("form",{onSubmit:p,children:[a.jsxs(Oo,{className:"space-y-4",children:[(n||h)&&a.jsxs(bw,{variant:"destructive",children:[a.jsx(Lt,{className:"h-4 w-4"}),a.jsx(Cw,{children:n||h})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"fullName",children:"Full Name"}),a.jsxs("div",{className:"relative",children:[a.jsx(Io,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"fullName",type:"text",placeholder:"John Doe",value:l.fullName,onChange:m=>y("fullName",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"email",children:"Email"}),a.jsxs("div",{className:"relative",children:[a.jsx(jt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"email",type:"email",placeholder:"you@example.com",value:l.email,onChange:m=>y("email",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),c&&a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"company",children:"Company (Optional)"}),a.jsxs("div",{className:"relative",children:[a.jsx(uo,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"company",type:"text",placeholder:"Your Company",value:l.company,onChange:m=>y("company",m.target.value),className:"pl-10",disabled:t})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"password",children:"Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(ei,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"password",type:"password",placeholder:"••••••••",value:l.password,onChange:m=>y("password",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"confirmPassword",children:"Confirm Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(ei,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"confirmPassword",type:"password",placeholder:"••••••••",value:l.confirmPassword,onChange:m=>y("confirmPassword",m.target.value),className:"pl-10",required:!0,disabled:t})]})]}),a.jsxs("div",{className:"flex items-start space-x-2",children:[a.jsx(dC,{id:"terms",checked:l.acceptTerms,onCheckedChange:m=>y("acceptTerms",m),disabled:t}),a.jsxs(kt,{htmlFor:"terms",className:"text-sm font-normal leading-relaxed cursor-pointer",children:["I agree to the"," ",a.jsx("a",{href:"/terms",className:"text-accent hover:underline",children:"Terms of Service"})," ","and"," ",a.jsx("a",{href:"/privacy",className:"text-accent hover:underline",children:"Privacy Policy"})]})]})]}),a.jsxs(Bi,{className:"flex flex-col space-y-4",children:[a.jsx(qe,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:t,children:t?"Creating account...":"Create Account"}),e&&a.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",a.jsx("button",{type:"button",onClick:e,className:"text-accent hover:underline font-medium",disabled:t,children:"Sign in"})]})]})]})]})}const mz=({onSubmit:r,onLoginClick:e,isLoading:t=!1,error:n="",appName:o="Your App",logo:s,showCompanyField:c=!1,title:l="Create Account",description:d="Join us to access exclusive opportunities"})=>a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"mb-8 text-center",children:[a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[s||a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:a.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),a.jsx("span",{className:"text-2xl font-bold text-white",children:o})]}),a.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),a.jsx(yz,{onSubmit:r,onLoginClick:e,isLoading:t,error:n,showCompanyField:c,title:l,description:d})]})});function kz({onSubmit:r,onBackToLogin:e,isLoading:t=!1,error:n,success:o=!1,title:s="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 o?a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx("div",{className:"flex items-center justify-center mb-4",children:a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:a.jsx(ct,{className:"h-6 w-6 text-green-600"})})}),a.jsx(Ei,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),a.jsx(Oi,{className:"text-center",children:l})]}),a.jsx(Bi,{className:"flex flex-col space-y-4",children:e&&a.jsxs(qe,{type:"button",variant:"outline",className:"w-full",onClick:e,children:[a.jsx(Xn,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):a.jsxs(Hi,{className:"w-full max-w-md",children:[a.jsxs(Vi,{className:"space-y-1",children:[a.jsx(Ei,{className:"text-2xl font-bold",children:s}),a.jsx(Oi,{children:c})]}),a.jsxs("form",{onSubmit:u,children:[a.jsxs(Oo,{className:"space-y-4",children:[n&&a.jsxs(bw,{variant:"destructive",children:[a.jsx(Lt,{className:"h-4 w-4"}),a.jsx(Cw,{children:n})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(kt,{htmlFor:"email",children:"Email Address"}),a.jsxs("div",{className:"relative",children:[a.jsx(jt,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),a.jsx(Ye,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:t})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),a.jsxs(Bi,{className:"flex flex-col space-y-4",children:[a.jsx(qe,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:t,children:t?"Sending...":"Send Reset Link"}),e&&a.jsxs(qe,{type:"button",variant:"ghost",className:"w-full",onClick:e,disabled:t,children:[a.jsx(Xn,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const fz=({onSubmit:r,onBackToLogin:e,isLoading:t=!1,error:n="",success:o=!1,appName:s="Your App",logo:c})=>a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"mb-8 text-center",children:[a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:a.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),a.jsx("span",{className:"text-2xl font-bold text-white",children:s})]}),a.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),a.jsx(kz,{onSubmit:r,onBackToLogin:e,isLoading:t,error:n,success:o})]})});exports.Advantages=Gj;exports.Analytics=GT;exports.Banner=Eo;exports.Button=qe;exports.Cart=nS;exports.Chatbot=rS;exports.ConsentBanner=xS;exports.ConsentProvider=fS;exports.CourseTypes=oS;exports.Courses=Zj;exports.CoursesPage=RT;exports.Destinations=Xj;exports.FAQ=tS;exports.FeatureJobs=ZP;exports.Features=eS;exports.Footer=n_;exports.FooterLib=yS;exports.ForEmployers=sS;exports.ForgotPassword=fz;exports.Gallery=aS;exports.GroupPrices=mA;exports.Header=ST;exports.HeaderAlternative=pS;exports.Hero=Jj;exports.HeroAlternative=cS;exports.HomePage=$P;exports.IgamingCareerHome=YP;exports.Input=Ye;exports.JobDetailPage=jT;exports.JobListings=r_;exports.JobSearchWidget=uS;exports.Listing=wT;exports.Login=pz;exports.MobileNav=MS;exports.Navbar=i_;exports.NewsPage=NT;exports.Newsletter=hS;exports.NotificationModal=gS;exports.Partners=mS;exports.Register=mz;exports.SearchableSelect=fw;exports.Services=Yj;exports.ServicesNoIcons=iS;exports.SidebarNewsletter=Zb;exports.SlidingSummary=kA;exports.Testimonials=Kj;exports.TrustSignals=dS;exports.ValueProposition=lS;exports.Videos=Qj;exports.useConsent=$b;
|
package/dist/index.mjs
CHANGED
|
@@ -43815,34 +43815,36 @@ function oz({
|
|
|
43815
43815
|
isLoading: n = !1,
|
|
43816
43816
|
error: o,
|
|
43817
43817
|
title: s = "Welcome Back",
|
|
43818
|
-
description: c = "Sign in to your account to continue"
|
|
43818
|
+
description: c = "Sign in to your account to continue",
|
|
43819
|
+
identifierLabel: l = "Email or Username",
|
|
43820
|
+
identifierPlaceholder: d = "you@example.com"
|
|
43819
43821
|
}) {
|
|
43820
|
-
const [
|
|
43821
|
-
|
|
43822
|
+
const [h, u] = A(""), [p, y] = A(""), [m, x] = A(!1), k = (f) => {
|
|
43823
|
+
f.preventDefault(), r(h, p, m);
|
|
43822
43824
|
};
|
|
43823
43825
|
return /* @__PURE__ */ a.jsxs(Oi, { className: "w-full max-w-md", children: [
|
|
43824
43826
|
/* @__PURE__ */ a.jsxs(Ei, { className: "space-y-1", children: [
|
|
43825
43827
|
/* @__PURE__ */ a.jsx(Bi, { className: "text-2xl font-bold", children: s }),
|
|
43826
43828
|
/* @__PURE__ */ a.jsx(Ui, { children: c })
|
|
43827
43829
|
] }),
|
|
43828
|
-
/* @__PURE__ */ a.jsxs("form", { onSubmit:
|
|
43830
|
+
/* @__PURE__ */ a.jsxs("form", { onSubmit: k, children: [
|
|
43829
43831
|
/* @__PURE__ */ a.jsxs(Go, { className: "space-y-4", children: [
|
|
43830
43832
|
o && /* @__PURE__ */ a.jsxs(Iw, { variant: "destructive", children: [
|
|
43831
43833
|
/* @__PURE__ */ a.jsx(St, { className: "h-4 w-4" }),
|
|
43832
43834
|
/* @__PURE__ */ a.jsx(Nw, { children: o })
|
|
43833
43835
|
] }),
|
|
43834
43836
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-2", children: [
|
|
43835
|
-
/* @__PURE__ */ a.jsx(xt, { htmlFor: "
|
|
43837
|
+
/* @__PURE__ */ a.jsx(xt, { htmlFor: "identifier", children: l }),
|
|
43836
43838
|
/* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
|
|
43837
43839
|
/* @__PURE__ */ a.jsx(It, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
43838
43840
|
/* @__PURE__ */ a.jsx(
|
|
43839
43841
|
lt,
|
|
43840
43842
|
{
|
|
43841
|
-
id: "
|
|
43842
|
-
type: "
|
|
43843
|
-
placeholder:
|
|
43844
|
-
value:
|
|
43845
|
-
onChange: (
|
|
43843
|
+
id: "identifier",
|
|
43844
|
+
type: "text",
|
|
43845
|
+
placeholder: d,
|
|
43846
|
+
value: h,
|
|
43847
|
+
onChange: (f) => u(f.target.value),
|
|
43846
43848
|
className: "pl-10",
|
|
43847
43849
|
required: !0,
|
|
43848
43850
|
disabled: n
|
|
@@ -43860,8 +43862,8 @@ function oz({
|
|
|
43860
43862
|
id: "password",
|
|
43861
43863
|
type: "password",
|
|
43862
43864
|
placeholder: "••••••••",
|
|
43863
|
-
value:
|
|
43864
|
-
onChange: (
|
|
43865
|
+
value: p,
|
|
43866
|
+
onChange: (f) => y(f.target.value),
|
|
43865
43867
|
className: "pl-10",
|
|
43866
43868
|
required: !0,
|
|
43867
43869
|
disabled: n
|
|
@@ -43875,19 +43877,12 @@ function oz({
|
|
|
43875
43877
|
yC,
|
|
43876
43878
|
{
|
|
43877
43879
|
id: "remember",
|
|
43878
|
-
checked:
|
|
43879
|
-
onCheckedChange: (
|
|
43880
|
+
checked: m,
|
|
43881
|
+
onCheckedChange: (f) => x(f),
|
|
43880
43882
|
disabled: n
|
|
43881
43883
|
}
|
|
43882
43884
|
),
|
|
43883
|
-
/* @__PURE__ */ a.jsx(
|
|
43884
|
-
xt,
|
|
43885
|
-
{
|
|
43886
|
-
htmlFor: "remember",
|
|
43887
|
-
className: "text-sm font-normal cursor-pointer",
|
|
43888
|
-
children: "Remember me"
|
|
43889
|
-
}
|
|
43890
|
-
)
|
|
43885
|
+
/* @__PURE__ */ a.jsx(xt, { htmlFor: "remember", className: "text-sm font-normal cursor-pointer", children: "Remember me" })
|
|
43891
43886
|
] }),
|
|
43892
43887
|
e && /* @__PURE__ */ a.jsx(
|
|
43893
43888
|
"button",
|
|
@@ -43936,7 +43931,9 @@ const Nz = ({
|
|
|
43936
43931
|
isLoading: n = !1,
|
|
43937
43932
|
error: o = "",
|
|
43938
43933
|
appName: s = "Your App",
|
|
43939
|
-
logo: c
|
|
43934
|
+
logo: c,
|
|
43935
|
+
identifierLabel: l = "Email or Username",
|
|
43936
|
+
identifierPlaceholder: d = "you@example.com"
|
|
43940
43937
|
}) => /* @__PURE__ */ a.jsx("div", { className: "min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4", children: /* @__PURE__ */ a.jsxs("div", { className: "w-full max-w-md", children: [
|
|
43941
43938
|
/* @__PURE__ */ a.jsxs("div", { className: "mb-8 text-center", children: [
|
|
43942
43939
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-center gap-2 mb-4", children: [
|
|
@@ -43952,7 +43949,9 @@ const Nz = ({
|
|
|
43952
43949
|
onForgotPassword: e,
|
|
43953
43950
|
onRegisterClick: t,
|
|
43954
43951
|
isLoading: n,
|
|
43955
|
-
error: o
|
|
43952
|
+
error: o,
|
|
43953
|
+
identifierLabel: l,
|
|
43954
|
+
identifierPlaceholder: d
|
|
43956
43955
|
}
|
|
43957
43956
|
)
|
|
43958
43957
|
] }) });
|
|
@@ -44104,22 +44103,15 @@ function sz({
|
|
|
44104
44103
|
disabled: t
|
|
44105
44104
|
}
|
|
44106
44105
|
),
|
|
44107
|
-
/* @__PURE__ */ a.jsxs(
|
|
44108
|
-
|
|
44109
|
-
|
|
44110
|
-
|
|
44111
|
-
|
|
44112
|
-
|
|
44113
|
-
|
|
44114
|
-
|
|
44115
|
-
|
|
44116
|
-
" ",
|
|
44117
|
-
"and",
|
|
44118
|
-
" ",
|
|
44119
|
-
/* @__PURE__ */ a.jsx("a", { href: "/privacy", className: "text-accent hover:underline", children: "Privacy Policy" })
|
|
44120
|
-
]
|
|
44121
|
-
}
|
|
44122
|
-
)
|
|
44106
|
+
/* @__PURE__ */ a.jsxs(xt, { htmlFor: "terms", className: "text-sm font-normal leading-relaxed cursor-pointer", children: [
|
|
44107
|
+
"I agree to the",
|
|
44108
|
+
" ",
|
|
44109
|
+
/* @__PURE__ */ a.jsx("a", { href: "/terms", className: "text-accent hover:underline", children: "Terms of Service" }),
|
|
44110
|
+
" ",
|
|
44111
|
+
"and",
|
|
44112
|
+
" ",
|
|
44113
|
+
/* @__PURE__ */ a.jsx("a", { href: "/privacy", className: "text-accent hover:underline", children: "Privacy Policy" })
|
|
44114
|
+
] })
|
|
44123
44115
|
] })
|
|
44124
44116
|
] }),
|
|
44125
44117
|
/* @__PURE__ */ a.jsxs(Gi, { className: "flex flex-col space-y-4", children: [
|
|
@@ -44157,7 +44149,9 @@ const Az = ({
|
|
|
44157
44149
|
error: n = "",
|
|
44158
44150
|
appName: o = "Your App",
|
|
44159
44151
|
logo: s,
|
|
44160
|
-
showCompanyField: c = !
|
|
44152
|
+
showCompanyField: c = !1,
|
|
44153
|
+
title: l = "Create Account",
|
|
44154
|
+
description: d = "Join us to access exclusive opportunities"
|
|
44161
44155
|
}) => /* @__PURE__ */ a.jsx("div", { className: "min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4", children: /* @__PURE__ */ a.jsxs("div", { className: "w-full max-w-md", children: [
|
|
44162
44156
|
/* @__PURE__ */ a.jsxs("div", { className: "mb-8 text-center", children: [
|
|
44163
44157
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-center gap-2 mb-4", children: [
|
|
@@ -44173,7 +44167,9 @@ const Az = ({
|
|
|
44173
44167
|
onLoginClick: e,
|
|
44174
44168
|
isLoading: t,
|
|
44175
44169
|
error: n,
|
|
44176
|
-
showCompanyField: c
|
|
44170
|
+
showCompanyField: c,
|
|
44171
|
+
title: l,
|
|
44172
|
+
description: d
|
|
44177
44173
|
}
|
|
44178
44174
|
)
|
|
44179
44175
|
] }) });
|
package/package.json
CHANGED