(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{25809:function(e,t,r){Promise.resolve().then(r.bind(r,73919))},22468:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(81066).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},47019:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(81066).Z)("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]])},75733:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(81066).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},73919:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return k}});var n=r(57437),a=r(2265),s=r(39343),o=r(59772),i=r(42630);let l=o.Ry({email:o.Z_({required_error:"EMAIL_REQUIRED",invalid_type_error:"EMAIL_REQUIRED"}).regex(i.HN,{message:"EMAIL_INVALID"}),password:o.Z_({required_error:"PASSWORD_REQUIRED",invalid_type_error:"PASSWORD_REQUIRED"}).regex(i.BV,{message:"PASSWORD_INVALID"}),confirmPassword:o.Z_({required_error:"PASSWORD_REQUIRED",invalid_type_error:"PASSWORD_REQUIRED"}),acceptCondition:o.O7({required_error:"ACCEPT_CONDITIONS_REQUIRED"}).default(!1).refine(e=>!0==e,{message:"ACCEPT_CONDITIONS_REQUIRED"}),refCode:o.Rx().default(1),contentCode:o.Z_().default("1")}).superRefine((e,t)=>{let{password:r,confirmPassword:n}=e;n!==r&&t.addIssue({path:["confirmPassword"],code:"custom",message:"PASSWORD_CONFIRMATION_MISMATCH"})});var d=r(31014),c=r(93363),u=r(77209),f=r(83669),p=r(89733),m=r(18087),h=r(44541),x=r(97864),g=r(79058),y=r(70204),b=r(30998),v=r(47260),w=r(17090),j=()=>{let e=(0,m.useTranslations)("Signup"),t=(0,m.useTranslations)("Global"),[r,o]=a.useState(""),[i,j]=a.useState(!1),k=(0,s.cI)({resolver:(0,d.F)(l),mode:"onChange"}),E=async e=>{o(""),j(!0);try{var t,r;let n=+(null!==(t=window.localStorage.getItem("referral"))&&void 0!==t?t:1),a=null!==(r=window.localStorage.getItem("utm_content"))&&void 0!==r?r:"1";await (0,g.Z)({url:"/auth/user",method:"post",body:{...e,refCode:n,contentCode:a}}).then(()=>{(0,v.T)(v.E.customer_signup,{user_type:w.USER_TYPE.USER,email:e.email});try{let t=window._cio;t&&(t.identify({id:e.email,first_name:""}),t.track("signup",{email:e.email}))}catch(e){console.log("error _cio",e)}}),await (0,b.signIn)("credentials",{email:e.email,password:e.password,redirect:!1}),window.location.replace("/auth/instructions/user")}catch(e){console.log(e),j(!1),o(null==e?void 0:e.data)}};return(0,n.jsx)(c.l0,{...k,children:(0,n.jsxs)("form",{onSubmit:k.handleSubmit(E),className:"flex flex-col gap-4",children:[(0,n.jsx)(c.Wi,{control:k.control,name:"email",render:e=>{let{field:r}=e;return(0,n.jsxs)(c.xJ,{children:[(0,n.jsx)(c.lX,{children:t("EMAIL")}),(0,n.jsx)(c.NI,{children:(0,n.jsx)(u.I,{...r,disabled:i,placeholder:t("EMAIL_PLACEHOLDER"),type:"email"})}),(0,n.jsx)(c.zG,{})]})}}),(0,n.jsx)(c.Wi,{control:k.control,name:"password",render:e=>{let{field:r}=e;return(0,n.jsxs)(c.xJ,{children:[(0,n.jsx)(c.lX,{children:t("PASSWORD")}),(0,n.jsx)(c.NI,{children:(0,n.jsx)(f.W,{...r,disabled:i,placeholder:t("PASSWORD_PLACEHOLDER")})}),(0,n.jsx)(c.zG,{})]})}}),(0,n.jsx)(c.Wi,{control:k.control,name:"confirmPassword",render:e=>{let{field:r}=e;return(0,n.jsxs)(c.xJ,{children:[(0,n.jsx)(c.lX,{children:t("PASSWORD_CONFIRMATION_LABEL")}),(0,n.jsx)(c.NI,{children:(0,n.jsx)(f.W,{...r,disabled:i,placeholder:t("PASSWORD_PLACEHOLDER")})}),(0,n.jsx)(c.zG,{})]})}}),(0,n.jsx)(c.Wi,{control:k.control,name:"acceptCondition",render:t=>{let{field:r}=t;return(0,n.jsxs)(c.xJ,{children:[(0,n.jsxs)("div",{className:"flex items-center space-x-3 space-y-0 rounded-md py-4",children:[(0,n.jsx)(c.NI,{children:(0,n.jsx)(h.X,{"data-test":"terms-select",checked:r.value,onCheckedChange:r.onChange})}),(0,n.jsx)(c.lX,{children:(0,n.jsx)("div",{className:"flex items-center",children:e.rich("ACCEPT_CONDITIONS_LABEL",{link:e=>(0,n.jsx)(x.Z,{label:e,className:"pl-1 font-bold underline "})})})})]}),(0,n.jsx)(c.zG,{})]})}}),(0,n.jsx)(y.X,{message:r&&t(r)}),(0,n.jsx)(p.z,{"data-test":"signup-btn",disabled:i,isLoading:i,type:"submit",className:"mt-4 w-full",children:e("ACTION")})]})})},k=()=>(0,n.jsx)(j,{})},83669:function(e,t,r){"use strict";r.d(t,{W:function(){return d}});var n=r(57437),a=r(2265),s=r(89733),o=r(47019),i=r(75733),l=r(77209);let d=a.forwardRef((e,t)=>{let{className:r,...d}=e,[c,u]=a.useState(!1);return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(l.I,{ref:t,...d,type:c?"text":"password"}),(0,n.jsx)(s.z,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-1",onClick:()=>u(!c),children:c?(0,n.jsx)(o.Z,{}):(0,n.jsx)(i.Z,{})})]})});d.displayName="PasswordInput"},14968:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(57437);function a(e){let{size:t=40,fill:r="#ededed"}=e;return(0,n.jsx)("div",{className:"flex items-center justify-center",children:(0,n.jsxs)("svg",{width:t,height:t,viewBox:"0 0 187.3 93.7",children:[(0,n.jsx)("path",{stroke:r,strokeDasharray:"2.42776657104492 242.776657104492",strokeDashoffset:"0",fill:"none",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",className:"animate-infinite",d:"M93.9,46.4c9.3,9.5,13.8,17.9,23.5,17.9s17.5-7.8,17.5-17.5s-7.8-17.6-17.5-17.5c-9.7,0.1-13.3,7.2-22.1,17.1 c-8.9,8.8-15.7,17.9-25.4,17.9s-17.5-7.8-17.5-17.5s7.8-17.5,17.5-17.5S86.2,38.6,93.9,46.4z"}),(0,n.jsx)("path",{id:"outline-bg",opacity:"0.1",fill:"none",stroke:r,strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M93.9,46.4c9.3,9.5,13.8,17.9,23.5,17.9s17.5-7.8,17.5-17.5s-7.8-17.6-17.5-17.5c-9.7,0.1-13.3,7.2-22.1,17.1 c-8.9,8.8-15.7,17.9-25.4,17.9s-17.5-7.8-17.5-17.5s7.8-17.5,17.5-17.5S86.2,38.6,93.9,46.4z"})]})})}},89733:function(e,t,r){"use strict";r.d(t,{d:function(){return d},z:function(){return c}});var n=r(57437),a=r(2265),s=r(71538),o=r(12218),i=r(4807),l=r(14968);let d=(0,o.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-70 overflow-hidden focus:outline-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",gradient:"bg-gradient-to-r from-primary-light to-primary text-primary-foreground hover:bg-primary/90",info:"border border-input bg-muted hover:bg-gray-50 hover:text-primary-darker",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-white hover:bg-gray-50 text-primary hover:text-primary-darker",secondary:"bg-secondary text-primary hover:bg-secondary/30",ghost:"hover:bg-muted hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-12 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-12 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{isLoading:r,children:a,className:o,variant:c,size:u,asChild:f=!1,...p}=e,m=f?s.g7:"button";return(0,n.jsx)(m,{className:(0,i.cn)(d({variant:c,size:u,className:o})),ref:t,...p,children:r?(0,n.jsx)(l.Z,{fill:"outline"==c||"ghost"==c?"#444":"#eee",size:64}):a})});c.displayName="Button"},54662:function(e,t,r){"use strict";r.d(t,{$N:function(){return h},Be:function(){return x},GG:function(){return u},Vq:function(){return l},cZ:function(){return p},fK:function(){return m},hg:function(){return d}});var n=r(57437),a=r(2265),s=r(13304),o=r(74697),i=r(4807);let l=s.fC,d=s.xz,c=s.h_,u=s.x8,f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-[999] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});f.displayName=s.aV.displayName;let p=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(f,{}),(0,n.jsxs)(s.VY,{ref:t,onOpenAutoFocus:e=>{e.preventDefault()},className:(0,i.cn)("fixed left-[50%] top-[50%] z-[999] grid w-[calc(100%_-_24px)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl border border-slate-200 bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-slate-800 dark:bg-slate-950",r),...l,children:[a,(0,n.jsxs)(s.x8,{className:"absolute right-6 top-6 rounded-full opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 data-[state=open]:text-slate-500 dark:ring-offset-slate-950 dark:focus:ring-slate-300 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-400",children:[(0,n.jsx)(o.Z,{className:"size-6"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=s.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-left",t),...r})};m.displayName="DialogHeader";let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.Dx,{ref:t,className:(0,i.cn)("text-2xl font-bold leading-none tracking-tight",r),...a})});h.displayName=s.Dx.displayName;let x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.dk,{ref:t,className:(0,i.cn)("text-left text-sm text-slate-500 dark:text-slate-400",r),...a})});x.displayName=s.dk.displayName},77209:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var n=r(57437),a=r(2265),s=r(4807);let o=a.forwardRef((e,t)=>{let{className:r,type:a,...o}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-12 w-full rounded-xl border-2 bg-[#fff] px-3 py-2 text-sm ring-offset-white","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted","text-md shadow-sm outline-none disabled:cursor-not-allowed disabled:opacity-50","transition-all duration-300 focus:border-primary",r),ref:t,...o})});o.displayName="Input"},79058:function(e,t,r){"use strict";var n=r(38472),a=r(30998),s=r(22291),o=r.n(s);let i=async e=>{var t;let{url:r,method:s="get",body:i=null,params:l,headers:d}=e,c=await (0,a.getSession)(),u=null==c?void 0:null===(t=c.user)||void 0===t?void 0:t.id;try{return(await n.Z.request({method:s,baseURL:"".concat("/api").concat(r),params:l,data:i,withCredentials:!0,headers:{Authorization:"Bearer ".concat(u),Accept:"application/json","Content-Type":"application/json",...d}})).data}catch(e){if(o().dataLayer({dataLayer:{event:"error",parameters:{error:JSON.stringify(e),page_path:r,params:l,headers:d,body:i}}}),e.response){let{status:t,data:r}=e.response;throw 401===t&&await (0,a.signOut)(),{status:t,data:r}}if(e.request)throw{status:500,data:"SERVER NOT RESPOND"};throw{status:500,data:e.message}}};t.Z=i},42630:function(e,t,r){"use strict";r.d(t,{BV:function(){return a},HN:function(){return n}});let n=/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/,a=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/},4807:function(e,t,r){"use strict";r.d(t,{Fw:function(){return d},cn:function(){return o},oG:function(){return i},fW:function(){return l}});var n=r(44839),a=r(96164),s=r(17090);r.g.prisma||new s.PrismaClient;let o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m6)((0,n.W)(t))},i=e=>{switch(e){case"MALE":return"Male";case"FEMALE":return"Female";case"NON_BINARY":return"Other";case"NONE":return"Prefer not to say "}},l=e=>e?e.startsWith("https")?e:"https://lazo-assets.s3.eu-west-3.amazonaws.com/"+e:"",d=e=>{if(!e)return 0;let t=new Date,r=new Date(e),n=r.getFullYear(),a=t.getFullYear(),s=a-n;return t<new Date(a,r.getMonth(),r.getDate())&&s--,s}},69324:function(e,t,r){"use strict";r.d(t,{fC:function(){return k},z$:function(){return E}});var n=r(22988),a=r(2265),s=r(1584),o=r(98324),i=r(78149),l=r(91715),d=r(47250),c=r(75238),u=r(31383),f=r(25171);let p="Checkbox",[m,h]=(0,o.b)(p),[x,g]=m(p),y=(0,a.forwardRef)((e,t)=>{let{__scopeCheckbox:r,name:o,checked:d,defaultChecked:c,required:u,disabled:p,value:m="on",onCheckedChange:h,...g}=e,[y,b]=(0,a.useState)(null),k=(0,s.e)(t,e=>b(e)),E=(0,a.useRef)(!1),N=!y||!!y.closest("form"),[_=!1,R]=(0,l.T)({prop:d,defaultProp:c,onChange:h}),I=(0,a.useRef)(_);return(0,a.useEffect)(()=>{let e=null==y?void 0:y.form;if(e){let t=()=>R(I.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[y,R]),(0,a.createElement)(x,{scope:r,state:_,disabled:p},(0,a.createElement)(f.WV.button,(0,n.Z)({type:"button",role:"checkbox","aria-checked":w(_)?"mixed":_,"aria-required":u,"data-state":j(_),"data-disabled":p?"":void 0,disabled:p,value:m},g,{ref:k,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(e.onClick,e=>{R(e=>!!w(e)||!e),N&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})})),N&&(0,a.createElement)(v,{control:y,bubbles:!E.current,name:o,value:m,checked:_,required:u,disabled:p,style:{transform:"translateX(-100%)"}}))}),b=(0,a.forwardRef)((e,t)=>{let{__scopeCheckbox:r,forceMount:s,...o}=e,i=g("CheckboxIndicator",r);return(0,a.createElement)(u.z,{present:s||w(i.state)||!0===i.state},(0,a.createElement)(f.WV.span,(0,n.Z)({"data-state":j(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),v=e=>{let{control:t,checked:r,bubbles:s=!0,...o}=e,i=(0,a.useRef)(null),l=(0,d.D)(r),u=(0,c.t)(t);return(0,a.useEffect)(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:s});e.indeterminate=w(r),t.call(e,!w(r)&&r),e.dispatchEvent(n)}},[l,r,s]),(0,a.createElement)("input",(0,n.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:!w(r)&&r},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function w(e){return"indeterminate"===e}function j(e){return w(e)?"indeterminate":e?"checked":"unchecked"}let k=y,E=b},47250:function(e,t,r){"use strict";r.d(t,{D:function(){return a}});var n=r(2265);function a(e){let t=(0,n.useRef)({value:e,previous:e});return(0,n.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},75238:function(e,t,r){"use strict";r.d(t,{t:function(){return s}});var n=r(2265),a=r(1336);function s(e){let[t,r]=(0,n.useState)(void 0);return(0,a.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}},function(e){e.O(0,[998,1109,9109,8472,3682,9586,1102,323,9343,1336,6348,2971,7023,1744],function(){return e(e.s=25809)}),_N_E=e.O()}]);