1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5012],{21319:(t,e,s)=>{s.d(e,{n:()=>h});var i=s(71443),n=s(61772),a=s(11793),r=s(234),o=s(70288),c=class extends r.Q{#t;#e=void 0;#s;#i;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,o.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,o.EN)(e.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#a(t)}getCurrentResult(){return this.#e}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#n(),this.#a()}mutate(t,e){return this.#i=e,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(t)}#n(){let t=this.#s?.state??(0,n.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#a(t){a.jG.batch(()=>{if(this.#i&&this.hasListeners()){let e=this.#e.variables,s=this.#e.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,e,s,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(t.data,null,e,s,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,e,s,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(void 0,t.error,e,s,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}},u=s(36453);function h(t,e){let s=(0,u.jE)(e),[n]=i.useState(()=>new c(s,t));i.useEffect(()=>{n.setOptions(t)},[n,t]);let r=i.useSyncExternalStore(i.useCallback(t=>n.subscribe(a.jG.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),h=i.useCallback((t,e)=>{n.mutate(t,e).catch(o.lQ)},[n]);if(r.error&&(0,o.GU)(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}},49337:(t,e,s)=>{s.d(e,{$5:()=>n,BD:()=>o,CX:()=>r,iD:()=>a,xw:()=>c});var i=s(56510);s(78208);let n=async t=>{let e=await fetch("".concat(i.y0,"/auth/register"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),s=await e.json();if(!e.ok)throw s.error;return s},a=async t=>{let e=await fetch("".concat(i.y0,"/auth/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),s=await e.json();if(!e.ok)throw s.error;return s},r=async t=>{let e=await fetch("".concat(i.y0,"/auth/resend-url"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})}),s=await e.json();if(!e.ok)throw s.error;return s},o=async t=>{let e=await fetch("".concat(i.y0,"/auth/forgot-password"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})}),s=await e.json();if(!e.ok)throw s.error;return s},c=async t=>{let e=await fetch("".concat(i.y0,"/auth/reset-password"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),s=await e.json();if(!e.ok)throw s.error;return s}},61772:(t,e,s)=>{s.d(e,{$:()=>o,s:()=>r});var i=s(11793),n=s(36640),a=s(67388),r=class extends n.k{#t;#r;#o;#c;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#o=t.mutationCache,this.#r=[],this.state=t.state||o(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#r.includes(t)||(this.#r.push(t),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#r=this.#r.filter(e=>e!==t),this.scheduleGc(),this.#o.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#o.remove(this))}continue(){return this.#c?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#u({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#c=(0,a.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#u({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#u({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#o.canRun(this)});let i="pending"===this.state.status,n=!this.#c.canStart();try{if(i)e();else{this.#u({type:"pending",variables:t,isPaused:n}),this.#o.config.onMutate&&await this.#o.config.onMutate(t,this,s);let e=await this.options.onMutate?.(t,s);e!==this.state.context&&this.#u({type:"pending",context:e,variables:t,isPaused:n})}let a=await this.#c.start();return await this.#o.config.onSuccess?.(a,t,this.state.context,this,s),await this.options.onSuccess?.(a,t,this.state.context,s),await this.#o.config.onSettled?.(a,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(a,null,t,this.state.context,s),this.#u({type:"success",data:a}),a}catch(e){try{await this.#o.config.onError?.(e,t,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,s)}catch(t){Promise.reject(t)}try{await this.#o.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,s)}catch(t){Promise.reject(t)}throw this.#u({type:"error",error:e}),e}finally{this.#o.runNext(this)}}#u(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};
1case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),i.jG.batch(()=>{this.#r.forEach(e=>{e.onMutationUpdate(t)}),this.#o.notify({mutation:this,type:"updated",action:t})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},78208:(t,e,s)=>{s.d(e,{W:()=>a});var i=s(17385),n=s(93382);async function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=(0,n.iD)();e.headers={...e.headers||{},Authorization:"Bearer ".concat(s)};let a=await fetch(t,e);if(a.status===i.lg.UNAUTHORIZED)throw(0,n.bZ)(),window.location.href="/",Error("Unauthorized");return a}},95012:(t,e,s)=>{s.r(e),s.d(e,{default:()=>m});var i=s(23347),n=s(25346),a=s(99721),r=s(21319),o=s(48727),c=s(95035);s(71443);var u=s(57542),h=s(76454),l=s(76024),d=s(32507),p=s(49337);let m=()=>{let t=(0,c.c)(),{isOpenVerifyEmail:e,setIsOpenVerifyEmail:s,fieldEmail
1:m,setFieldEmail:f}=(0,h.A)(),{mutateAsync:y,isPending:b}=(0,r.n)({mutationFn:t=>(0,p.CX)(t)}),x=()=>{s(!1),f("")},v=async()=>{if(!b&&m)try{await y(m),u.Ay.success(t("Authentication.Action.ResendLink_Success"))}catch(e){console.warn("ERROR",e),u.Ay.error(t("Authentication.Action.ResendLink_Failed"))}};return(0,i.jsxs)(n.lG,{open:e,onClose:x,transition:!0,className:"fixed inset-0 z-80 flex w-screen items-center justify-center bg-black/30 p-4 transition duration-300 ease-out data-[closed]:opacity-0",children:[(0,i.jsx)(n.Xi,{className:"fixed inset-0 bg-black/30"}),(0,i.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:(0,i.jsx)(n.Lj,{className:"modal-auth relative max-h-full w-full max-w-[350px] overflow-y-auto bg-white md:max-w-[480px] lg:max-w-[560px]",children:(0,i.jsxs)("div",{className:"border-brand border-t-8 p-4 md:p-8",children:[(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.$,{className:"bg-brand-disabled z-10 flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full",onClick:x,type:"button",children:(0,i.jsx)(o.default,{src:d.A,className:"h-[14px] w-[14px] text-black",alt:"close"})})}),(0,i.jsx)("h2",{className:(0,l.cn)("text-brand font-libre mb-1 text-[32px] leading-[150%] font-semibold","md:text-5xl"),children:t("Authentication.VerifySignUp.title")}),(0,i.jsx)("p",{className:(0,l.cn)("text-sub font-libre text-base leading-[150%] font-semibold","md:text-lg"),children:t("Authentication.VerifySignUp.description",{mail:m})}),(0,i.jsx)("div",{className:"flex flex-col gap-4 pt-6",children:(0,i.jsx)("div",{className:"text-center",children:(0,i.jsxs)("p",{className:(0,l.cn)("text-sub font-roboto text-[13px] leading-[150%] font-medium","md:text-sm"),children:[t("Authentication.VerifySignUp.notReceivedLink"),(0,i.jsx)("span",{className:"text-brand cursor-pointer pl-2",onClick:v,children:t("Authentication.VerifySignUp.resend")})]})})})]})})})]})}}}]); 2//# sourceMappingURL=5012.343613b7721cdf26.js.map
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.