https://www.campercontact.com/_next/static/chunks/app/auth/%5Blang%5D/login/page-425c48b69a4d28c5.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8460],{7523:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var a=r(54568),n=r(19664),s=r.n(n),l=r(96130);let i=(0,r(7552).tv)({base:"underline underline-offset-2",variants:{variant:{default:"text-ui-text-link",secondary:"text-ui-text-secondary",black:"text-black",white:"text-white"}},defaultVariants:{variant:"default"}}),o=e=>{let{variant:t,className:r,href:n,children:o,...c}=e;return(0,a.jsx)(s(),{href:n,className:(0,l.cn)(i({variant:t}),r),...c,children:o})}},12254:(e,t,r)=>{"use strict";r.d(t,{UI:()=>a.UI});var a=r(61479)},13019:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var a=r(54568),n=r(7620),s=r(73795),l=r(26449),i=r(28977),o=r(83631),c=r(63916),d=r(74160),u=r(24605),m=r(67351),f=r(34793),h=r(50469),p=r(7523),g=r(34403),x=r(21804),y=r(66490);let w=function(e){let{credential:t,email:r,goBack:l,redirectTo:c}=e,{formatMessage:u}=(0,d.tz)(),{lang:p}=(0,i.o)(),[g,x]=(0,n.useState)(!1),{register:w,getValues:b,setError:v,clearErrors:j,trigger:N,formState:{errors:k,touchedFields:E}}=(0,o.xW)(),S=async()=>{let e=b(),a=function(e){let t="abcdefghijklmnopqrstuvwxyz",r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",a="0123456789",n="!@#$%^&*()_+=-[]{}|;:,.<>?",s=t+r+a+n,l="";l+=t.charAt(Math.floor(Math.random()*t.length)),l+=r.charAt(Math.floor(Math.random()*r.length)),l+=a.charAt(Math.floor(Math.random()*a.length)),l+=n.charAt(Math.floor(Math.random()*n.length));for(let e=l.length;e<16;e++)l+=s.charAt(Math.floor(Math.random()*s.length));return l.split("").sort(()=>.5-Math.random()).join("")}(0),n={...e,emailAddress:r,password:a,confirmPassword:a,language:p};await (0,y.kg)(n).then(async()=>{await (0,s.hV)(t),window.location.href=c||"/".concat(p)}).catch(e=>{console.warn("createUserError",e),v("screenName",{type:"manual",message:"unknown.general.error"})})},I=async()=>{let e=await N("screenName");if(x(!0),!e)return;let t=b("screenName");try{await (0,y.kd)(t),x(!1),j("screenName"),await S()}catch(e){v("screenName",{type:"manual",message:e.message})}},P=w("screenName");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"my-4",children:[(0,a.jsx)(h.J,{htmlFor:"screenName",className:"mb-1",children:u("create-account.details.screenname.label")}),(0,a.jsx)(f.p,{id:"screenName",placeholder:u("create-account.details.screenname.placeholder"),...P,onBlur:e=>{P.onBlur(e),I()}}),k.screenName&&(E.screenName||g)&&(0,a.jsx)("span",{className:"mt-1 text-sm text-red-600",children:u(k.screenName.message)})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)(m.$,{onClick:l,variant:"secondary",children:u("create-account.button.prev-step")}),(0,a.jsx)(m.$,{onClick:I,variant:"primary",children:u("create-account.button.next-step")})]})]})},b={"auth/too-many-requests":"auth.error.userDisabled","auth/wrong-password":"auth.error.wrongPassword","auth/user-not-found":"auth.error.userNotFound"},v=c.Ik({screenName:c.Yj().min(1,{message:"forms.errors.generic.required"})}),j=function(e){let{redirectTo:t,forgotPasswordLink:r}=e,{lang:y}=(0,i.o)(),{formatMessage:j}=(0,d.tz)(),[N,k]=(0,n.useState)(),[E,S]=(0,n.useState)(!1),[I,P]=(0,n.useState)(),[C,O]=(0,n.useState)(void 0),A=function(){let{formatMessage:e}=(0,d.tz)();return(0,n.useMemo)(()=>c.Ik({email:c.Yj().min(1,{message:e("forms.errors.generic.required")}).email({message:e("forms.errors.email.incorrect")}),password:c.Yj().min(1,{message:e("forms.errors.generic.required")})}),[e])}(),{register:T,handleSubmit:F,formState:{errors:_,isSubmitting:L}}=(0,o.mN)({resolver:(0,l.u)(A),defaultValues:{email:"",password:""}}),M=(0,o.mN)({resolver:(0,l.u)(v),defaultValues:{screenName:""}}),z=async e=>{try{await (0,s.Zr)(e.email,e.password),window.location.href=t||"/".concat(y)}catch(e){var r,a;console.warn(e),k(j(b[null==(a=e.response)||null==(r=a.data)?void 0:r.code]||"error.loginFailed")||j("error.loginFailed"))}},R=async e=>{var r,a,n;try{let a=await (0,s.hC)(e);if(a.loggedIn)window.location.href=t||"/".concat(y);else{let{credential:e,user:t}=a;e&&t&&(P(e),O(null!=(r=t.email)?r:void 0),S(!0))}}catch(e){console.error(e),k(j(b[null==(n=e.response)||null==(a=n.data)?void 0:a.code]||"error.general")||j("error.general"))}};return(0,a.jsx)(a.Fragment,{children:E&&I&&C?(0,a.jsx)(o.Op,{...M,children:(0,a.jsx)(w,{credential:I,email:C,goBack:()=>S(!1),redirectTo:t})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:F(z),children:[N&&(0,a.jsx)(u.F,{severity:"error",children:N}),(0,a.jsxs)("div",{children:[(0,a.jsx)(h.J,{htmlFor:"email",children:j("auth.login.emailInputLabel")}),(0,a.jsx)(f.p,{id:"email",type:"email",placeholder:"",...T("email")}),_.email&&(0,a.jsx)("span",{className:"mt-1 text-sm text-red-600",children:_.email.message})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(h.J,{htmlFor:"password",children:j("auth.login.passwordInputLabel")}),(0,a.jsx)(f.p,{id:"password",type:"password",placeholder:"",...T("password")}),_.password&&(0,a.jsx)("span",{className:"mt-1 text-sm text-red-600",children:_.password.message})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsx)(m.$,{variant:"primary",type:"submit",disabled:L,className:"flex items-center justify-center",children:L?(0,a.jsx)(g.k,{}):(0,a.jsx)(a.Fragment,{children:j("auth.login.loginButton")})}),(0,a.jsx)(p.N,{variant:"secondary",href:r.href,as:r.as,children:j("auth.login.forgotPassword")})]})]}),(0,a.jsxs)("div",{className:"mt-6 flex flex-col gap-6",children:[(0,a.jsx)(x.A,{children:"Of"}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(m.$,{variant:"utility",full:!0,onClick:()=>{R(s.lJ.GOOGLE)},children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2.5 md:flex-row",children:[(0,a.jsx)("img",{src:"/logo/Google_Logo.svg",alt:"Google logo",className:"size-6"}),(0,a.jsx)("strong",{className:"hidden md:block",children:j("auth.login.social.google")})]})}),(0,a.jsx)(m.$,{variant:"utility",full:!0,onClick:()=>{R(s.lJ.APPLE)},children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2.5 md:flex-row",children:[(0,a.jsx)("img",{src:"/logo/apple-logo.svg",alt:"Apple logo",className:"size-6"}),(0,a.jsx)("strong",{className:"hidden md:block",children:j("auth.login.social.apple")}
1)]})})]})]})]})})}},18041:(e,t,r)=>{"use strict";r.d(t,{D:()=>l});var a=r(54568),n=r(56151),s=r(89973);let l=e=>{let{children:t,className:r}=e;return(0,a.jsx)("section",{className:"flex justify-center bg-ui-surface-container p-6",children:(0,a.jsx)(n.Z,{className:(0,s.cn)("mb-16 mt-16 w-full max-w-screen-md lg:mt-24",r),children:t})})}},18097:(e,t,r)=>{Promise.resolve().then(r.bind(r,97085))},19274:(e,t,r)=>{"use strict";r.d(t,{Xn:()=>a,YZ:()=>n});let a="nl",n=["en","es","de","fr","it","nl"]},21804:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(54568),n=r(96130);let s=e=>{let{children:t,className:r,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex w-full items-center before:inline-block before:h-[1px] before:w-full before:bg-neutral90",{children:"before:mr-2 after:ml-2 after:inline-block after:h-[1px] after:w-full after:bg-neutral90"},r),...s,children:t})}},24605:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var a=r(54568),n=r(4048),s=r(89773);let l={info:(0,a.jsx)(n.UI.InfoIcon,{}),error:(0,a.jsx)(n.UI.ErrorIcon,{}),warning:(0,a.jsx)(n.UI.WarningIcon,{color:"currentColor"}),success:(0,a.jsx)(n.UI.SuccessIcon,{})},i={info:"border-blue-100 bg-blue-50",error:"border-red-100 bg-red-50",warning:"border-ui-notice-outline bg-ui-notice-surface text-ui-notice-on-surface",success:"border-green-100 bg-green-50"},o=e=>{let{severity:t,title:r,icon:n,className:o,children:c,...d}=e;return(0,a.jsxs)("div",{className:(0,s.cn)("text-ui-text-primary flex items-start gap-3 rounded-2xl border border-solid p-4 text-base leading-6",i[t],o),...d,children:[(0,a.jsx)("div",{className:"mt-0.5 shrink-0",children:null!=n?n:l[t]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-col",children:[null!=r?(0,a.jsx)("p",{className:"font-bold",children:r}):null,null!=c?(0,a.jsx)("div",{children:c}):null]})]})}},27035:(e,t,r)=>{"use strict";r.d(t,{q:()=>m});var a=r(54568),n=r(28977),s=r(27541),l=r(7620),i=r(74160),o=r(7523),c=r(58533),d=r(96130),u=r(30650);let m=e=>{let{className:t,redirectTo:r}=e,{formatMessage:m}=(0,i.tz)(),f=(0,s.usePathname)(),h=(0,s.useSearchParams)(),{lang:p}=(0,n.o)(),g=(0,l.useMemo)(()=>{let e=h.toString();return"".concat(f).concat(e?"?".concat(e):"")},[f,h]);return(0,a.jsxs)(c.E,{className:(0,d.cn)("mb-2 text-center",t),children:[m("auth.login.noaccount.title"),(0,a.jsx)(o.N,{href:"".concat(u.AJ,"?redirectTo=").concat(encodeURIComponent(null!=r?r:g)),as:"/".concat(p,"/create-account/signup?redirectTo=").concat(encodeURIComponent(null!=r?r:g)),className:"ml-2",variant:"secondary",children:m("create-account.header.title")})]})}},28977:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var a=r(27541),n=r(19274),s=r(82673);let l=()=>{var e;let t=(0,a.useParams)(),r=(0,a.useSearchParams)(),{profile:l}=(0,s.xc)(),i=null==r?void 0:r.get("lang");return{lang:(null==t?void 0:t.lang)||i||(null==l||null==(e=l.personalData)?void 0:e.language)||function(){if(!window.location)return;let e=window.location.pathname.match(/^\/([a-z]{2})(\/|$)/);return e?e[1]:void 0}()||n.Xn}}},30650:(e,t,r)=>{"use strict";r.d(t,{AJ:()=>i,Gc:()=>d,S3:()=>s,a9:()=>n,sR:()=>o,s_:()=>l,wo:()=>c,yZ:()=>a});let a="/[lang]",n="/[lang]/content/[...generic]",s="/auth/[lang]/login",l="/auth/[lang]/forgot-password",i="/[lang]/create-account/signup",o="/[lang]/blog/[slug]",c="/[lang]/blog",d="/[lang]/[...seo_content]"},34403:(e,t,r)=>{"use strict";r.d(t,{k:()=>a.k});var a=r(37725)},34793:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var a=r(54568),n=r(7620),s=r(89773);let l=n.forwardRef((e,t)=>{let{className:r,type:n,...l}=e;return(0,a.jsx)("input",{type:n,className:(0,s.cn)("flex px-4 py-3 w-full rounded-xl border border-input","bg-transparent shadow-sm transition-colors","disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","file:border-0 file:px-3 file:py-1 file:mr-2 file:cursor-pointer file:rounded-full file:bg-ui-surface-container","hover:border-gray-400",r),ref:t,...l})});l.displayName="Input"},37725:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var a=r(54568),n=r(89773);let s=e=>{let{className:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,n.cn)("animate-spin",t),children:(0,a.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})})}},46118:(e,t,r)=>{"use strict";r.d(t,{DX:()=>i,Dc:()=>c,TL:()=>l});var a=r(7620),n=r(61715),s=r(54568);function l(e){let t=function(e){let t=a.forwardRef((e,t)=>
1{let{children:r,...s}=e;if(a.isValidElement(r)){var l;let e,i,o=(l=r,(i=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(i=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),c=function(e,t){let r={...t};for(let a in t){let n=e[a],s=t[a];/^on[A-Z]/.test(a)?n&&s?r[a]=(...e)=>{let t=s(...e);return n(...e),t}:n&&(r[a]=n):"style"===a?r[a]={...n,...s}:"className"===a&&(r[a]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}(s,r.props);return r.type!==a.Fragment&&(c.ref=t?(0,n.t)(t,o):o),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=a.forwardRef((e,r)=>{let{children:n,...l}=e,i=a.Children.toArray(n),o=i.find(d);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...l,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,s.jsx)(t,{...l,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var i=l("Slot"),o=Symbol("radix.slottable");function c(e){let t=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=o,t}function d(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}},50469:(e,t,r)=>{"use strict";r.d(t,{J:()=>c});var a=r(54568),n=r(88594),s=r(7552),l=r(89773),i=r(7620);let o=(0,s.tv)({base:"text-base text-ui-text-primary leading-none peer-disabled:cursor-not-allowed peer-disabled:text-gray-400"}),c=(0,i.forwardRef)((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.b,{ref:t,className:(0,l.cn)(o(),r),...s})});c.displayName=n.b.displayName},56151:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var a=r(54568),n=r(89973);let s=e=>{let{children:t,className:r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("rounded-2xl overflow-hidden bg-white p-6 md:p-8 lg:p-10 shadow-md max-w-screen-md",r),children:t})}},58533:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,U:()=>i});var a=r(54568);r(7620);var n=r(7552),s=r(96130),l=r(67378);let i=(0,n.tv)({variants:{size:{sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl",base:"text-base",footnote:"text-xs","2xl":"text-2xl"},weight:{normal:"font-normal",semibold:"font-semibold",bold:"font-bold",medium:"font-medium"},color:{primary:"text-ui-text-primary",secondary:"text-ui-text-secondary",tertiary:"text-brand-cc-orange",textlink:"text-ui-text-link","ui-primary":"text-ui-primary","ui-secondary":"text-ui-secondary","yellow-notice":"text-ui-semantic-yellow-notice","red-negative":"text-ui-semantic-red-negative","cta-on-primary":"text-ui-cta-on-primary",disabled:"text-ui-icon-disabled",white:"text-base-white"}},defaultVariants:{size:"base",color:"primary"}}),o=e=>{let{as:t="p",children:r,className:n,title:o,dangerouslySetInnerHTML:c,...d}=e;return(0,a.jsx)(t,{className:(0,s.cn)(i(d),n),title:o,dangerouslySetInnerHTML:c?{__html:(0,l.p)(c.__html)}:void 0,...d,children:r})};o.displayName="Text"},60421:(e,t,r)=>{"use strict";r.d(t,{hO:()=>o,sG:()=>i});var a=r(7620),n=r(97509),s=r(46118),l=r(54568),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,s.TL)(`Primitive.${t}`),n=a.forwardRef((e,a)=>{let{asChild:n,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(n?r:t,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function o(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},61715:(e,t,r)=>{"use strict";r.d(t,{s:()=>l,t:()=>s});var a=r(7620);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():n(e[t],null)}}}}function l(...e){return a.useCallback(s(...e),e)}},66490:(e,t,r)=>{"use strict";r.d(t,{O_:()=>s,es:()=>l,kd:()=>i,kg:()=>o,zs:()=>a});let a=async e=>{let t=await fetch("".concat("https://poi.campercontact.com/","api/v1/validateUser?locale=nl"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailAddress:e})});if(!t.ok)throw Error("forms.errors.email.duplicate");return t}
1,n="create-account.invalid.email",s=async e=>{let t=new AbortController,r=setTimeout(()=>t.abort(),1e4);try{let a=await fetch("https://api.apilayer.com/email_verification/check?email=".concat(e),{method:"GET",headers:{"Content-Type":"application/json",apiKey:"a4tqd2vmWoNHM1QV0Q4RX8EY3izxnClM"},signal:t.signal});if(clearTimeout(r),!a.ok){if(429===a.status||403===a.status||a.status>=500)return{skip:!0};throw Error(n)}return a.json()}catch(e){if(clearTimeout(r),e instanceof Error&&e.message===n)throw e;return console.error("Error validating email with API Layer:",e),{skip:!0}}},l=async e=>{await a(e),await s(e)},i=async e=>{let t=await fetch("".concat("https://poi.campercontact.com/","api/v1/validateUser?locale=nl"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenName:e})});if(!t.ok)throw Error("forms.errors.screenname.duplicate");return t},o=async e=>{let t=await fetch("".concat("https://poi.campercontact.com/","api/v1/users"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error("error.general");return t}},67378:(e,t,r)=>{"use strict";r.d(t,{c:()=>i,p:()=>o});var a=r(93709),n=r.n(a);r(78204);let s={"&":"&","<":"<",">":">",""":'"',"'":"'"},l=/&(?:amp|lt|gt|quot|#39);/g,i=e=>"string"==typeof e?e.replace(l,e=>s[e]||e):e,o=e=>n().sanitize(e)},73795:(e,t,r)=>{"use strict";r.d(t,{Zr:()=>o,hC:()=>d,hV:()=>i,lJ:()=>c});var a=r(50742),n=r(10103),s=r(66490);let l=async e=>{let t=await e.user.getIdToken(),r=await fetch("/api/auth/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:t})});if(!r.ok)throw Error("Failed to start session: ".concat(r.status))};async function i(e){let t=await (0,a.eN)(n.j,e);await l(t)}async function o(e,t){let r=await (0,a.x9)(n.j,e,t);await l(r)}let c={APPLE:"apple",GOOGLE:"google"};async function d(e){let t=e===c.GOOGLE?new a.HF:new a.LD("apple.com"),r=e===c.GOOGLE?a.HF:a.LD;e===c.APPLE&&t.addScope("email");try{let e=await (0,a.df)(n.j,t),o=r.credentialFromResult(e),c=e.user;if(!o)throw Error("No credential returned from social login");try{var l;return await (0,s.zs)(c.email||""),await (null==(l=n.j.currentUser)?void 0:l.delete()),{loggedIn:!1,credential:o,user:c}}catch(e){return await i(o),{loggedIn:!0}}}catch(e){throw console.error("Error during social login:",e),e}}},81024:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(54568),n=r(7620),s=r(97573),l=r(12254),i=r(96130);let o=e=>{let{currentStep:t,titles:r}=e,o=Array.from({length:r.length},(e,t)=>t+1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-2 flex items-center justify-between",children:o.map((e,r)=>{let s=e<=t,c=(0,i.cn)("flex h-10 w-10 items-center justify-center rounded-full",s?"bg-brand-cc-green text-white":"bg-gray-300 text-gray-500"),d=(0,i.cn)("h-1 flex-1",e<t?"bg-green-500":"bg-gray-300");return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("div",{className:c,children:e<t?(0,a.jsx)(l.UI.CheckSeparateIcon,{color:"on-primary"}):e}),r<o.length-1&&(0,a.jsx)("div",{className:d})]},e)})}),(0,a.jsx)("div",{className:"mb-8 flex justify-between",children:o.map((e,t)=>(0,a.jsx)(s.E,{size:"sm",className:"hidden sm:block",children:r[t]},e))})]})}},88594:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var a=r(7620),n=r(60421),s=r(54568),l=a.forwardRef((e,t)=>(0,s.jsx)(n.sG.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())}}));l.displayName="Label";var i=l},97085:(e,t,r)=>{"use strict";r.d(t,{default:()=>x});var a=r(54568),n=r(7620),s=r(15822),l=r(27541),i=r(13019),o=r(28977),c=r(27035),d=r(74160),u=r(18041),m=r(63933),f=r(58533),h=r(30650),p=r(81024);let g=e=>{let{redirectTo:t}=e,r=(0,l.useSearchParams)(),{lang:s}=(0,o.o)(),{formatMessage:g}=(0,d.tz)(),x=(0,n.useMemo)(()=>({href:h.s_,as:"/auth/".concat(s,"/forgot-password")}),[s]),y=(null==r?void 0:r.get("buypro"))!==null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.D,{children:[y?(0,a.jsx)(p.A,{currentStep:1,titles:[g("auth.login.buyPro.login"),g("auth.login.buyPro.payment"),g("auth.login.buyPro.confirmation")]}):null,(0,a.jsx)(m.D,{as:"h1",size:"lg",className:"mb-2",children:g("auth.login.screenTitle")}),(0,a.jsx)(f.E,{className:"mb-6",children:g("auth.login.title")}),(0,a.jsx)(i.A,{redirectTo:t,forgotPasswordLink:x})]}),(0,a.jsx)("div",{className:"-mt-14 bg-ui-surface-container pb-12 text-center",children:(0,a.jsx)(c.q,{className:"text-sm"})})]})};function x(e){let{redirectTo:t}=e,{isLoggedIn:r,loading:i}=(0,s.A)(),o=(0,l.useRouter)();return((0,n.useEffect)(()=>{!i&&r&&o.replace(t||"/")},[r,i,t,o]),i||r)?null:(0,a.jsx)(g,{redirectTo:t})}},97573:(e,t,r)=>{"use strict";r.d(t,{E:()=>a.E});var a=r(58533)}},e=>{e.O(0,[4129,7341,9906,9664,9297,3709,2683,2392,235,6449,6612,9266,2673,8790,587,18,7358],()=>e(e.s=18097)),_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.