1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4076,6054],{99104:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/forgot-password",function(){return r(4894)}])},15465:function(t,e,r){"use strict";r.d(e,{Z:function(){return ErrorPop}});var n=r(85893),o=r(96657),s=r(8843),i=r(69915);function ErrorPop(t){return(0,n.jsxs)(o.b,{my:2,status:"error",children:[(0,n.jsx)(s.z,{}),(0,n.jsx)(i.C,{mr:2,children:t.title})]})}},52663:function(t,e,r){"use strict";var n=r(85893),o=r(68029),s=r(31046),i=r(96254),a=r(88329),l=r(3712),u=r(50232),c=r(47386);e.Z=t=>{let{LoginForm:e}=t;return(0,n.jsx)(o.x,{backgroundPosition:"bottom",backgroundSize:"cover",backgroundImage:"https://expatinsurance.imgix.net/expatinsurance/login_bg.svg",backgroundColor:(0,s.ff)("brand.100","brand.900"),children:(0,n.jsx)(c.Z,{children:(0,n.jsx)(i.W,{h:"100vh",maxW:"container.xl",children:(0,n.jsx)(a.k,{align:"center",justify:"center",children:(0,n.jsxs)(l.K,{spacing:8,mx:"auto",maxW:"xl",py:12,px:6,children:[(0,n.jsx)(l.K,{align:"center",children:(0,n.jsx)(u.X,{color:(0,s.ff)("brand.900","brand.100"),whiteSpace:{base:"wrap",md:"nowrap"},fontSize:{base:"2xl",md:"4xl"},textAlign:"center",children:"Sign in to use our Smart Platform"})}),(0,n.jsx)(e,{})]})})})})})}},84429:function(t,e,r){"use strict";r.d(e,{Z:function(){return Loader}});var n=r(85893),o=r(48899),s=r(68029),i=r(90092);function Loader(){return(0,n.jsxs)(s.x,{p:12,display:"flex",justifyContent:"center",alignItems:"center",flexDir:"column",children:[(0,n.jsx)(o.$,{label:"Loading",thickness:"5px",emptyColor:"gray.700",speed:"1s",color:"brand.400",size:"xl"}),(0,n.jsx)(i.x,{pt:6,fontWeight:600,color:"gray.500",children:"Loading Data..."})]})}},4894:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSP:function(){return _},default:function(){return forgot_password}});var n=r(85893),o=r(67294),s=r(87536),i=r(41664),a=r.n(i),l=r(6459),u=r(31046),c=r(68029),d=r(3712),f=r(50232),m=r(90092),p=r(54506),h=r(82206),x=r(38488),g=r(11163),b=r(15465),j=r(88767),w=r(26054);let resetInitiate=async t=>{let{email:e}=t;if(!e)throw Error("No email set");let{data:r,error:n}=await w.supabase.auth.api.resetPasswordForEmail(e,{redirectTo:"/auth/reset-password"});if(n)throw Error(n.message);return r};var I=r(84429);function ForgotForm(){let t=(0,l.p)(),e=(0,g.useRouter)(),{handleSubmit:r,register:i,watch:w,formState:{errors:S,isSubmitting:y}}=(0,s.cI)(),_=w("email"),v=function(t){let{email:e}=t;return(0,j.useMutation)("resetInitiate",()=>resetInitiate({email:e}))}({email:_});(0,o.useEffect)(()=>{v.isSuccess&&(t({title:"Reset Successful",status:"success",duration:3e3,isClosable:!0}),e.push("/auth/reset-confirm"))},[v.isSuccess]);let onSubmit=async()=>{await v.mutate()},E=(0,u.ff)("white","gray.700"),k=(0,u.ff)("gray.800","gray.400");return v.isLoading?(0,n.jsx)(I.Z,{}):(0,n.jsxs)(c.x,{rounded:"lg",bg:E,boxShadow:"lg",p:8,children:[(0,n.jsx)("form",{onSubmit:r(onSubmit),children:(0,n.jsxs)(d.K,{spacing:4,children:[(0,n.jsx)(f.X,{lineHeight:1.1,fontSize:{base:"2xl",md:"3xl"},children:"Forgot your password?"}),(0,n.jsx)(m.x,{fontSize:{base:"sm",sm:"md"},color:k,children:"You will get an email with a reset link"}),(0,n.jsxs)(p.NI,{pt:1,isInvalid:S.email,children:[(0,n.jsx)(h.I,{id:"email",placeholder:"[email protected]",variant:"filled",type:"text",...i("email",{required:"Email is required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"invalid email address"}})}),S.email&&(0,n.jsx)(b.Z,{title:S.email.message})]}),(0,n.jsx)(x.z,{my:4,bg:"brand.400",color:"white",_hover:{bg:"brand.900"},isLoading:y,type:"submit",children:"Submit"})]})}),(0,n.jsxs)(m.x,{pt:4,align:"center",children:["Remember your password?"," ",(0,n.jsx)(a(),{href:"/auth/login",children:(0,n.jsx)(m.x,{color:"brand.400",children:"Login"})})]})]})}var S=r(52663),y=r(2962),_=!0,forgot_password=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.PB,{noindex:!0,nofollow:!0}),(0,n.jsx)(S.Z,{LoginForm:ForgotForm})]})},26054:function(t,e,r){"use strict";r.d(e,{N:function(){return getServiceSupabase},supabase:function(){return a}});var n=r(30218),o=r(83454);let s="https://maplyowstbnbzdfepnbj.supabase.co",i=o.env.SUPABASE_SERVICE_KEY,a=(0,n.eI)(s,"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1hcGx5b3dzdGJuYnpkZmVwbmJqIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NDUzMDY3MTIsImV4cCI6MTk2MDg4MjcxMn0.R1ZtuhfpBY-ksaYMpk4QODSqfoyFWBLMJd9L8Y9MufA"),getServiceSupabase=()=>(0,n.eI)(s,i)},6459:function(t,e,r){"use strict";r.d(e,{p:function(){return useToast}});var n=r(67294),o=r(2847),s=r(73747),i=r(11065),a=r(88559),l=r(70052);function useToast(t){let{theme:e}=(0,l.uP)(),r=(0,a.OX)();return(0,n.useMemo)(()=>(function(t,e){let normalizeToastOptions=r=>({...e,...r,position:function(t,e){let r=t??"bottom";return({"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}})[r]?.[e]??r}(r?.position??e?.position,t)}),toast=t=>{let e=normalizeToastOptions(t),r=(0,s.C)(e);return i.f.notify(r,e)};return toast.update=(t,e)=>{i.f.update(t,normalizeToastOptions(e))},toast.promise=(t,e)=>{let r=toast({...e.loading,status:"loading",duration:null});t.then(t=>toast.update(r,{status:"success",duration:5e3,...(0,o.P)(e.success,t)})).catch(t=>toast.update(r,{status:"error",duration:5e3,...(0,o.P)(e.error,t)}))},toast.closeAll=i.f.closeAll,toast.close=i.f.close,toast.isActive=i.f.isActive,toast})(e.direction,{...r,...t}),[t,e.direction,r])}}},function(t){t.O(0,[7865,9939,1666,8764,218,6521,2236,7386,9774,2888,179],function(){return t(t.s=99104)}),_N_E=t.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.