1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{15043:(e,t,r)=>{"use strict";r.d(t,{default:()=>v});var i=r(95155),l=r(12115),s=r(97003),n=r(33789),o=r(90235),a=r(25016);function d(e){let{value:t,onChange:r,length:s=6,disabled:o=!1,error:d=!1,className:c,autoFocus:u=!0}=e,m=l.useRef([]),[f,p]=l.useState(0);l.useEffect(()=>{m.current=m.current.slice(0,s)},[s]);let g=l.useMemo(()=>{let e=t.split("").slice(0,s);for(;e.length<s;)e.push("");return e},[t,s]);l.useEffect(()=>{u&&m.current[0]&&!o&&m.current[0].focus()},[u,o]),l.useEffect(()=>{d&&(m.current.forEach(e=>{null==e||e.blur()}),p(-1))},[d]);let h=e=>{var t;if(o)return;e.preventDefault();let i=e.clipboardData.getData("text").replace(/\D/g,"").slice(0,s);r(i);let l=Math.min(i.length,s-1);null==(t=m.current[l])||t.focus(),p(l)};return(0,i.jsx)("div",{className:(0,a.cn)("flex gap-2 justify-center",c),"data-testid":"otp-input-container",children:g.map((e,t)=>(0,i.jsx)(n.Input,{ref:e=>{m.current[t]=e},type:"text",inputMode:"numeric",autoComplete:"one-time-code",pattern:"\\d{1}",maxLength:1,value:e,onChange:e=>((e,t)=>{if(o)return;let i=t.replace(/\D/g,"").slice(-1),l=[...g];if(l[e]=i,r(l.join("")),i&&e<s-1){var n;null==(n=m.current[e+1])||n.focus(),p(e+1)}})(t,e.target.value),onKeyDown:e=>((e,t)=>{var i,l,n;if(!o){if("Backspace"===t.key){t.preventDefault();let l=[...g];g[e]?(l[e]="",r(l.join(""))):e>0&&(l[e-1]="",r(l.join("")),null==(i=m.current[e-1])||i.focus(),p(e-1))}if("ArrowLeft"===t.key&&e>0&&(null==(l=m.current[e-1])||l.focus(),p(e-1)),"ArrowRight"===t.key&&e<s-1&&(null==(n=m.current[e+1])||n.focus(),p(e+1)),"Delete"===t.key){t.preventDefault();let i=[...g];i[e]="",r(i.join(""))}}})(t,e),onPaste:h,onFocus:()=>{var e;p(t),null==(e=m.current[t])||e.select()},disabled:o,className:(0,a.cn)("w-10 h-10 text-center text-lg font-semibold","transition-all duration-200","focus:ring-2 focus:ring-offset-0",f===t&&"ring-2",o&&"opacity-50 cursor-not-allowed"),style:{backgroundColor:"transparent",borderColor:d?"var(--color-error-solid)":"hsl(var(--login-foreground) / 0.3)",color:"hsl(var(--login-foreground))","--tw-ring-color":d?"var(--color-error-solid)":"hsl(var(--login-foreground) / 0.3)"},"data-testid":"otp-input-".concat(t),"aria-label":"OTP digit ".concat(t+1)},t))})}var c=r(18720),u=r(15239),m=r(20063),f=r(62853),p=r(49203),g=r(3290),h=r(73977),x=r(33016);function v(){let[e,t]=(0,l.useState)(!1),[r,v]=(0,l.useState)(!1),[y,b]=(0,l.useState)(!1),j=(0,m.useSearchParams)(),w=(0,m.useRouter)(),N=(0,m.usePathname)(),P=j.get("returnUrl")||p.vQ.AUTH.DEFAULT_REDIRECT;(0,l.useEffect)(()=>{b(!0)},[]),(0,l.useEffect)(()=>{y&&p.vQ.AUTH.AUTH_REDIRECT_ROUTES.some(e=>N===e||N.startsWith(e+"/"))&&x.a.isAuthenticated()&&w.replace(P)},[y,w,P,N]);let{email:k,setEmail:C,isVerifyingEmail:R,emailFound:E,canLogin:T,verificationMessage:O,fieldErrors:S,getIsLoginButtonEnabled:_,validateEmailForLogin:L}=(0,g.useEmailVerification)(),{otp:D,setOtp:G,isVerifying:I,isSendingOtp:A,error:B,remainingTime:M,canResend:V,handleVerifyOtp:F,handleResendOtp:$,resetOtpState:q,startTimer:U}=function(e,t){let[r,i]=(0,l.useState)(""),[s,n]=(0,l.useState)(null),[o,a]=(0,l.useState)(0),[d,u]=(0,l.useState)(!1),[g,x]=(0,l.useState)(!1),[v,y]=(0,l.useState)(!1),b=(0,m.useRouter)(),j=(0,l.useCallback)(t=>{a(t||120),u(!1),(0,h.yG)("info","OTP timer started",{email:e,expiryTime:t||120})},[e]);(0,l.useEffect)(()=>{if(o<=0)return;1===o&&u(!0);let e=setTimeout(()=>{a(e=>e-1)},1e3);return()=>clearTimeout(e)},[o]);let w=(0,l.useCallback)(async i=>{let l=null!=i?i:r;if(!l||6!==l.length)return n("Please enter a valid 6-digit code"),c.oR.error("Please enter a valid 6-digit code"),(0,h.yG)("warn","OTP verification failed: Invalid OTP format",{email:e,otpLength:l.length}),{success:!1};if(!e)return n("Email is required"),c.oR.error("Email is required"),(0,h.yG)("error","OTP verification failed: Missing email",{email:e}),{success:!1};n(null),x(!0),(0,h.yG)("info","Initiating OTP verification with Supabase",{email:e});try{let r=await f.y.verifyOtp(e,l);if(r.success&&r.data){(0,h.yG)("info","OTP verification successful",{email:e,userId:r.data.user.id}),c.oR.success("Login successful! Redirecting...");let i=t||p.vQ.AUTH.DEFAULT_REDIRECT;return b.replace(i),{success:!0}}{let t=!r.success&&"error"in r?r.error.message:"OTP verification failed";return n(t),c.oR.error(t),(0,h.yG)("error","OTP verification failed",{email:e,error:t}),{success:!1}}}catch(r){var s,o;let t=(null==r||null==(o=r.response)||null==(s=o.data)?void 0:s.detail)||(null==r?void 0:r.message)||"Failed to verify OTP";return n(t),c.oR.error(t),(0,h.yG)("error","OTP verification error",{email:e,error:t}),{success:!1}}finally{x(!1)}},[r,e,b,t]),N=(0,l.useCallback)(async()=>
1{if(!d)return void c.oR.warning("Please wait ".concat(o," seconds before requesting a new code"));if(!e){c.oR.error("Email is required"),(0,h.yG)("error","Resend OTP failed: Missing email",{email:e});return}(0,h.yG)("info","Initiating OTP resend",{email:e}),y(!0);try{let t=await f.y.resendOtp(e);if(t.success&&t.data)(0,h.yG)("info","OTP resent successfully",{email:e}),c.oR.success(t.data.message||"New verification code sent!"),a(t.data.expires_in||120),u(!1),i(""),n(null);else{let r=!t.success&&"error"in t?t.error.message:"Failed to resend OTP";c.oR.error(r),(0,h.yG)("error","Resend OTP failed",{email:e,error:r})}}catch(l){var t,r;let i=(null==l||null==(r=l.response)||null==(t=r.data)?void 0:t.detail)||(null==l?void 0:l.message)||"Failed to resend OTP";c.oR.error(i),(0,h.yG)("error","Resend OTP error",{email:e,error:i})}finally{y(!1)}},[e,d,o]),P=(0,l.useCallback)(()=>{i(""),n(null),a(0),u(!1),(0,h.yG)("info","OTP state reset",{email:e})},[e]);return{otp:r,setOtp:(0,l.useCallback)(e=>{i(e.replace(/\D/g,"").slice(0,6)),s&&n(null)},[s]),isVerifying:g,isSendingOtp:v,error:s,remainingTime:o,canResend:d,handleVerifyOtp:w,handleResendOtp:N,resetOtpState:P,startTimer:j}}(k,P),z=_(r),W=(0,l.useCallback)(e=>{G(e),6!==e.length||I||A||setTimeout(()=>{F(e)},100)},[G,I,A,F]);(0,l.useEffect)(()=>{if(!y)return;let e=j.get("error_code"),t=j.get("error_description"),r=j.get("returnUrl");if("otp_expired"===e||(null==t?void 0:t.includes("Email link is invalid or has expired"))||(null==t?void 0:t.includes("expired")))return void c.oR.error("Your email verification link has expired. Please request a new one.");if(null==t?void 0:t.includes("invalid"))return void c.oR.error("Your email verification link is invalid or has already been used.");if(r)try{let e=decodeURIComponent(r);e.includes("error_code=otp_expired")||e.includes("error_description=Email+link+is+invalid+or+has+expired")||e.includes("error_description=Email%2Blink%2Bis%2Binvalid%2Bor%2Bhas%2Bexpired")?c.oR.error("Your email verification link has expired. Please request a new one."):e.includes("invalid")&&c.oR.error("Your email verification link is invalid or has already been used.")}catch(e){}},[j,y]);let Q=async e=>{if(e.preventDefault(),L()){v(!0);try{var r,i;let e=await f.y.sendPasswordlessLoginEmail(k);e.success?(t(!0),U(null==(r=e.data)?void 0:r.expires_in),c.oR.success("Verification code has been sent to your email!")):(q(),c.oR.error((null==(i=e.error)?void 0:i.message)||"Failed to send verification code"))}catch(t){q();let e=t instanceof Error?t.message:"An unexpected error occurred";c.oR.error(e)}finally{v(!1)}}},H=async e=>{e.preventDefault(),(await F()).success&&w.push(P)},Y=async()=>{c.oR.info("Google login coming soon!")};return(0,i.jsxs)("div",{className:"h-screen md:min-h-screen flex flex-col md:flex-row relative w-full overflow-hidden p-4 md:p-0","data-testid":"login-container",id:"login-container",children:[(0,i.jsxs)("div",{className:"absolute inset-0",children:[(0,i.jsx)(u.default,{src:"/login-bg.png",alt:"Login to xyrus.ai",fill:!0,priority:!0,className:"object-cover",style:{objectPosition:"68% center"},quality:100,sizes:"(max-width: 768px) 100vw, 1920px",loading:"eager",decoding:"sync"}),(0,i.jsx)("style",{children:"\n @media (min-width: 800px) {\n .absolute.inset-0 img {\n object-position: left center !important;\n }\n }\n "})]}),(0,i.jsxs)("div",{className:"relative z-10 min-h-screen flex flex-col w-full",children:[(0,i.jsx)("header",{className:"absolute top-0 left-0 w-full flex justify-center pt-4 lg:pt-8 px-4 sm:px-6 md:px-10 z-20",children:(0,i.jsxs)("div",{className:"w-full max-w-[1600px]",children:[(0,i.jsx)(u.default,{src:p.I_,alt:"xyrus.ai",width:160,height:48,className:"h-6 sm:h-8 md:h-10 lg:h-12 w-auto",priority:!0,id:"xyrus-logo"}),(0,i.jsx)(u.default,{src:"/images/xyrus.webp",alt:"XQtiv Logo",width:1,height:1,className:"hidden","aria-hidden":"true"})]})}),(0,i.jsx)("div",{className:"flex-1 flex items-center justify-center w-full px-4 sm:px-6 md:px-10 pt-16 pb-8 lg:py-12",children:(0,i.jsxs)("div",{className:"w-full max-w-[1600px] flex flex-col lg:flex-row login-inner-container",children:[(0,i.jsx)("div",{className:"lg:flex-1 flex flex-col justify-center lg:justify-end lg:pr-4 mb-8 lg:mb-0","data-testid":"login-hero-section",id:"login-hero-section",children:(0,i.jsxs)("div",{className:"text-center lg:text-left flex flex-col items-center lg:items-start px-4 lg:px-0",children:[(0,i.jsx)("h2",{className:"font-extrabold leading-none tracking-tight uppercase mb-3 lg:mb-4 login-hero-heading text-2xl xl:text-h1-semibold",style:{color:"hsl(var(--login-foreground))",fontFamily:"Good Times, sans-serif"},"data-testid":"hero-heading",id:"hero-heading",children:"Precision Talent"}),(0,i.jsx)("p",{className:"text-sm sm:text-base md:text-lg lg:text-xl xl:text-h-semibold leading-snug font-light login-hero-description",style:{color:"hsl(var(--login-foreground) / 0.9)"},"data-testid":"hero-description",id:"hero-description",children:"Elevate hiring with Profile 360: complete candidate insights that drive smarter decisions."}),(0,i.jsx)("style",{children:"\n @media (min-width: 768px) and (max-width: 1599px) {\n .login-hero-heading {\n font-size: 32px !important;\n line-height: 1.2;\n }\n .login-hero-description {\n font-size: 22px !important;\n }\n }\n @media (min-width: 1080px) {\n .login-inner-container {\n min-height: 58vh;\n }\n }\n "})]})}),(0,i.jsx)("div",{className:(0,a.cn)("lg:flex-1 flex justify-center lg:pl-4 px-4 lg:px-0","items-center lg:items-end"),"data-testid":"login-form-section",id:"login-form-section",children:e?(0,i.jsxs)("div",{className:"w-full max-w-[415px] rounded-2xl py-8 px-6 sm:px-8 border shadow-2xl backdrop-blur-2xl",style:{backgroundColor:"rgba(255, 255, 255, 0.1)",borderColor:"hsl(var(--login-foreground) / 0.1)"},"data-testid":"otp-verification-screen",id:"otp-verification-screen",children:[(0,i.jsxs)("div",{className:"text-center mb-4",children:[(0,i.jsx)("h2",{className:"text-xl sm:text-2xl font-semibold mb-2",style:{color:"hsl(var(--login-foreground))"},"data-testid":"otp-heading",id:"otp-heading",children:"Verification Code"}),(0,i.jsx)("p",{className:"text-sm sm:text-base mb-1",style:{color:"hsl(var(--login-foreground) / 0.9)"},"data-testid":"otp-description",id:"otp-description",children:"Please enter the verification code sent to"}),(0,i.jsx)("p",{className:"text-sm sm:text-base font-medium",style:{color:"hsl(var(--login-foreground))"},"data-testid":"otp-email",id:"otp-email",children:k.replace(/(.{3})(.*)(@.*)/,"$1*******$3")})]}),(0,i.jsxs)("form",{onSubmit:H,className:"space-y-6","data-testid":"otp-verification-form",id:"otp-verification-form",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(o.Label,{className:"text-sm font-medium text-center block",style:{color:"hsl(var(--login-foreground))"},"data-testid":"otp-label",id:"otp-label",children:"Enter code here"}),(0,i.jsx)(d,{value:D,onChange:W,length:6,disabled:I||A,error:!!B,autoFocus:!0}),I&&(0,i.jsxs)("p",{className:"text-xs text-center mt-2 flex items-center justify-center gap-2",style:{color:"hsl(var(--login-foreground) / 0.7)"},"data-testid":"otp-verifying-message",id:"otp-verifying-message",children:[(0,i.jsx)("span",{className:"animate-spin rounded-full h-3 w-3 border-b-2",style:{borderBottomColor:"hsl(var(--login-foreground) / 0.7)"}}
1),"Verifying your code..."]}),B&&!I&&(0,i.jsx)("p",{className:"text-xs text-center mt-2",style:{color:"var(--color-error-solid)"},"data-testid":"otp-error-message",id:"otp-error-message",children:B})]}),(0,i.jsxs)("div",{className:"text-center space-y-2",children:[!V&&(0,i.jsxs)("p",{className:"text-sm",style:{color:"hsl(var(--login-foreground) / 0.9)"},"data-testid":"otp-timer",id:"otp-timer",children:["Resend OTP in ",(e=>{let t=Math.floor(e/60);return"".concat(t.toString().padStart(2,"0"),":").concat((e%60).toString().padStart(2,"0"))})(M)," Sec"]}),V&&(0,i.jsx)(s.Button,{type:"button",variant:"ghost",onClick:$,disabled:A,onMouseEnter:e=>{A||(e.currentTarget.style.backgroundColor="white",e.currentTarget.style.color="hsl(var(--color-brand-secondary))")},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="hsl(var(--login-foreground))"},className:(0,a.cn)("text-sm font-medium cursor-pointer transition-all duration-200",A&&"opacity-50 cursor-not-allowed"),style:{color:"hsl(var(--login-foreground))"},"data-testid":"resend-otp-button",id:"resend-otp-button",children:A?(0,i.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,i.jsx)("span",{className:"animate-spin rounded-full h-3 w-3 border-b-2 border-current"}),"Sending..."]}):"Resend code"})]}),(0,i.jsx)(s.Button,{type:"submit",disabled:6!==D.length||I||A,className:(0,a.cn)("w-full h-12 font-medium text-base transition-all duration-200","hover:opacity-90 active:opacity-80 cursor-pointer",(6!==D.length||I||A)&&"opacity-50 cursor-not-allowed hover:opacity-50"),style:{backgroundColor:"white",color:"hsl(var(--login-background))"},"data-testid":"verify-otp-button",id:"verify-otp-button",children:I?(0,i.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,i.jsx)("span",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-current"}),"Verifying..."]}):"Continue"})]}),(0,i.jsxs)("div",{className:"mt-8 text-center space-y-2",children:[(0,i.jsx)("p",{className:"text-xs",style:{color:"hsl(var(--login-muted-foreground))"},id:"powered-by-text",children:"Powered by"}),(0,i.jsx)("div",{className:"flex items-center justify-center",id:"xqtiv-branding",children:(0,i.jsx)(u.default,{src:"/xqtiv-logo-white.svg",alt:"XQtiv",width:80,height:24,className:"h-6 w-auto"})}),(0,i.jsxs)("p",{className:"text-xs",style:{color:"hsl(var(--login-muted-foreground))"},id:"contact-us-text",children:["Contact Us :"," ",(0,i.jsx)("a",{href:"mailto:[email protected]",className:"hover:underline transition-all duration-200 cursor-pointer",style:{color:"hsl(var(--login-muted-foreground))"},children:"[email protected]"})]})]})]}):(0,i.jsxs)("div",{className:"w-full max-w-[400px] rounded-2xl p-4 sm:p-6 md:p-8 border shadow-2xl backdrop-blur-2xl",style:{backgroundColor:"rgba(255, 255, 255, 0.1)",borderColor:"hsl(var(--login-foreground) / 0.1)"},"data-testid":"login-card",id:"login-card",children:[(0,i.jsxs)("div",{className:"text-center mb-6",children:[(0,i.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-semibold mb-2",style:{color:"hsl(var(--login-foreground))"},"data-testid":"login-heading",id:"login-heading",children:"Login"}),(0,i.jsx)("p",{className:"text-xs sm:text-sm",style:{color:"hsl(var(--login-muted-foreground))"},"data-testid":"login-description",id:"login-description",children:"Welcome back!"})]}),(0,i.jsx)(s.Button,{variant:"outline",className:"w-full h-10 sm:h-12 mb-6 font-medium text-sm sm:text-base transition-all duration-200 hidden",onClick:Y,disabled:r,type:"button","data-testid":"google-login-button",id:"google-login-button",children:"Sign in with Google"}),(0,i.jsxs)("form",{onSubmit:Q,className:"space-y-4 sm:space-y-6","data-testid":"email-login-form",id:"email-login-form",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(o.Label,{htmlFor:"email",className:"text-xs sm:text-sm font-medium",style:{color:"hsl(var(--login-foreground))"},"data-testid":"email-label",id:"email-label",children:"Email"}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(n.Input,{id:"email",name:"email",type:"email",placeholder:"Enter here",value:k,onChange:e=>{C(e.target.value)},className:(0,a.cn)("h-10 sm:h-12 border text-sm sm:text-base transition-all duration-200","placeholder:text-xs sm:placeholder:text-sm focus:ring-2 focus:ring-offset-0","placeholder:text-text-placeholder","focus:border-white focus:ring-white/30",!0===E&&T&&"border-green-400 focus:border-green-400! focus:ring-green-400/30!",(S.email||!0===E&&!T||!1===E)&&"border-red-400 focus:border-red-400! focus:ring-red-400/30!"),style:{backgroundColor:"transparent",borderColor:!0===E&&T||S.email||!1===E?void 0:"var(--color-text-stroke)",color:"var(--color-text-bg)"},"data-testid":"email-input",autoComplete:"email"}),(0,i.jsx)("div",{className:"absolute right-2 sm:right-3 top-1/2 transform -translate-y-1/2",id:"email-verification-indicator",children:R?(0,i.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 sm:h-5 sm:w-5 border-b-2",style:{borderColor:"white"},id:"email-verifying-spinner"}):!0===E&&T?(0,i.jsx)("svg",{className:"h-4 w-4 sm:h-5 sm:w-5 text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",id:"email-valid-icon",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M5 13l4 4L19 7"})}):!0!==E||T?null:(0,i.jsx)("svg",{className:"h-4 w-4 sm:h-5 sm:w-5 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",id:"email-warning-icon",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.268 18.5c-.77.833.192 2.5 1.732 2.5z"})})})]}),(0,i.jsx)("div",{className:"text-xs mt-1","data-testid":"email-error-message",id:"email-error-message",children:(null==S?void 0:S.email)?(0,i.jsx)("div",{className:"text-red-300 font-medium",children:S.email.map((e,t)=>(0,i.jsx)("div",{children:e},t))}):R?(0,i.jsx)("div",{className:"text-blue-300 font-medium",children:"Verifying email..."}):!0===E&&T?(0,i.jsxs)("div",{className:"text-green-300 font-medium",children:["â ",O||"Ready to login"]}):!0!==E||T?!1===E?(0,i.jsxs)("div",{className:"text-red-300 font-medium",children:["â This Email is not registered with us.",(0,i.jsx)("br",{}),"Contact us:"," ",(0,i.jsx)("a",{href:"mailto:[email protected]",className:"hover:underline",children:"[email protected]"})]}):null:(0,i.jsxs)("div",{className:"text-yellow-300 font-medium",children:["â ",O]})})]}),(0,i.jsx)(s.Button,{type:"submit",disabled:!z,className:(0,a.cn)("w-full h-10 sm:h-12 font-medium text-sm sm:text-base transition-all duration-200","hover:opacity-90 active:opacity-80",!z&&"opacity-50 cursor-not-allowed hover:opacity-50"),style:{backgroundColor:"white",color:"hsl(var(--login-background))"},"data-testid":"email-login-button",id:"email-login-button",children:r?"Logging in...":"Continue"})]}),(0,i.jsxs)("div",{className:"mt-12 text-center space-y-2",children:[(0,i.jsx)("p",{className:"text-xs",style:{color:"hsl(var(--login-muted-foreground))"},id:"powered-by-text",children:"Powered by"}),(0,i.jsx)("div",{className:"flex items-center justify-center",id:"xqtiv-branding",children:(0,i.jsx)(u.default,{src:"/xqtiv-logo-white.svg",alt:"XQtiv",width:80,height:24,className:"h-6 w-auto"})}),(0,i.jsxs)("p",{className:"text-xs",style:{color:"hsl(var(--login-muted-foreground))"},id:"contact-us-text",children:["Contact us :"," ",(0,i.jsx)("a",{href:"mailto:[email protected]",className:"hover:underline transition-all duration-200",style:{color:"hsl(var(--login-muted-foreground))"},children:"[email protected]"})]})]})]})})]})})]})]})}},15239:(e,t,r)=>{"use strict";r.d(t,{default:()=>l.a});var i=r(54652),l=r.n(i)},20063:(e,t,r)=>{"use strict";var i=r(47260);r.o(i,"useParams")&&r.d(t,{useParams:function(){return i.useParams}}),r.o(i,"usePathname")&&r.d(t,{usePathname:function(){return i.usePathname}}),r.o(i,"useRouter")&&r.d(t,{useRouter:function(){return i.useRouter}}),r.o(i,"useSearchParams")&&r.d(t,{useSearchParams:function(){return i.useSearchParams}})},40995:(e,t,r)=>{Promise.resolve().then(r.bind(r,15043))},54652:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},getImageProps:function(){return o}});let i=r(28140),l=r(75040),s=r(81356),n=i._(r(71124));function o(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,1080,1200,1920],imageSizes:[16,32,64,96,128,256],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let a=s.Image},83101:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});var i=r(2821);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=i.$,n=(e,t)=>r=>{var i;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:n,defaultVariants:o}=t,a=Object.keys(n).map(e=>{let t=null==r?void 0:r[e],i=null==o?void 0:o[e];if(null===t)return null;let s=l(t)||l(i);return n[e][s]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,i]=t;return void 0===i||(e[r]=i),e},{});return s(e,a,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:i,...l}=t;return Object.entries(l).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...d}[t]):({...o,...d})[t]===r})?[...e,r,i]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},85408:(e,t,r)=>{"use strict";r.d(t,{b:()=>p});var i=r(12115),l=r.t(i,2);r(47650);var s=r(94446),n=r(95155),o=Symbol.for("react.lazy"),a=l[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===o&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=Symbol("radix.slottable");function u(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:r,...l}=e;if(d(r)&&"function"==typeof a&&(r=a(r._payload)),i.isValidElement(r)){var n;let e,o,a=(n=r,(o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(o=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),d=function(e,t){let r={...t};for(let i in t){let l=e[i],s=t[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...e)=>{let t=s(...e);return l(...e),t}:l&&(r[i]=l):"style"===i?r[i]={...l,...s}:"className"===i&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==i.Fragment&&(d.ref=t?(0,s.t)(t,a):a),i.cloneElement(r,d)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=i.forwardRef((e,r)=>{let{children:l,...s}=e;d(l)&&"function"==typeof a&&(l=a(l._payload));let o=i.Children.toArray(l),c=o.find(u);if(c){let e=c.props.children,l=o.map(t=>t!==c?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,n.jsx)(t,{...s,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,l):null})}return(0,n.jsx)(t,{...s,ref:r,children:l})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),l=i.forwardRef((e,i)=>{let{asChild:l,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(l?r:t,{...s,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),f=i.forwardRef((e,t)=>(0,n.jsx)(m.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));f.displayName="Label";var p=f},90235:(e,t,r)=>{"use strict";r.d(t,{Label:()=>n});var i=r(95155);r(12115);var l=r(85408),s=r(25016);function n(e){let{className:t,...r}=e;return(0,i.jsx)(l.b,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}},94446:(e,t,r)=>{"use strict";r.d(t,{s:()=>n,t:()=>s});var i=r(12115);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1,i=e.map(e=>{let i=l(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof r?r():l(e[t],null)}}}}function n(...e){return i.useCallback(s(...e),e)}}},e=>{e.O(0,[4909,5467,2071,8720,1356,6046,8734,1474,2735,1588,3290,8441,1255,7358],()=>e(e.s=40995)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.