1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a01295-7833-7232-8213-2637c84934db")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9869],{36359:()=>{},99869:(e,a,s)=>{"use strict";s.r(a),s.d(a,{VerificationModal:()=>h});var r=s(95155),i=s(12115),t=s(78353),n=s.n(t),o=s(6874),c=s.n(o),l=s(62177),d=s(5041),m=s(18754),u=s(8550),f=s(95886);s(36359);let h=e=>{let{isOpen:a,onRequestClose:s,email:t,firstName:o,formData:h,onVerificationSuccess:v,isSubmitting:j}=e,{register:p,handleSubmit:b,setValue:x,getValues:y,setFocus:g,formState:{errors:N}}=(0,l.mN)({defaultValues:Object.fromEntries(Object.keys(f.dA).map(e=>[e,""]))}),[k,w]=(0,i.useState)(3),[C,E]=(0,i.useState)(""),[S,_]=(0,i.useState)(!1),[A,F]=(0,i.useState)(!1),V=(0,i.useRef)({}),{mutate:O,isPending:z}=(0,d.n)({mutationFn:async e=>{let a=Object.values(e).join("");return m.F.verifyCode({code:a,email:t})},onSuccess:e=>{!0===e.data.data.verified?(s(),v()):(w(e=>e-1),E(e.data.data.reason))},onError:e=>{console.error("Error verifying code:",e)}}),{mutate:H}=(0,d.n)({mutationFn:async()=>m.F.createVerificationCode({email:t,firstName:o}),onSuccess:e=>{e.data.error?_(!0):F(!0)},onError:e=>{console.error("Error resending code:",e)}});return(0,i.useEffect)(()=>{a&&g("code")},[a,g]),(0,r.jsx)(n(),{isOpen:a,onRequestClose:s,ariaHideApp:!1,style:f.K6,children:(0,r.jsxs)("div",{className:"verification-modal",children:[(0,r.jsx)(u.zC,{scale:2,color:"#000",className:"close-modal",onClick:s}),(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)(u.gu,{scale:1.6157,color:"#000",className:"logo"}),(0,r.jsx)("h2",{className:"header",children:"Authenticate Your Email"}),(0,r.jsx)("div",{className:"description",children:k>0&&!S?(0,r.jsxs)("p",{children:["Please confirm your email address by entering the authorization code sent to ",t,"."]}):(0,r.jsx)("p",{children:"You have tried too many times. Please wait 1 hour and try again."})}),k>0&&!S&&(0,r.jsxs)("form",{onSubmit:b(e=>{O(e)}),className:"verification-form",children:[(0,r.jsx)("div",{className:"verification-code-container",children:Object.values(f.dA).map(e=>(0,r.jsx)("input",{...p(e.name,{required:!0}),ref:a=>{V.current[e.name]=a},className:"verification-textfield",maxLength:1,onChange:a=>((e,a,s)=>{let r=e.target.value;if(r.length>1)x(a,r.slice(0,1));else if(x(a,r),r&&s){let e=V.current[s];e&&e.focus()}})(a,e.name,e.movesTo),autoFocus:"first"===e.name},e.name))}),C&&(0,r.jsx)("div",{className:"verification-error",children:C}),(0,r.jsxs)("div",{className:"verification-submit-container",children:[A?(0,r.jsxs)("div",{className:"verification-send-again",children:["A new verification code has been sent.",(0,r.jsx)("br",{}),"Please check your email.",(0,r.jsx)("br",{}),"Having trouble? View our"," ",(0,r.jsx)(c(),{href:"https://stylemepretty.reamaze.com/articles/how-do-i-sign-up-for-a-profile-membership?_brand=stylemepretty",target:"_blank",className:"resend",children:"FAQ page"})]}):(0,r.jsxs)("div",{className:"verification-send-again",children:["It may take a minute or two to receive your code.",(0,r.jsx)("br",{}),"Haven't received it?"," ",(0,r.jsx)("span",{onClick:()=>H(),className:"resend-link",children:"Resend new code"}),(0,r.jsx)("br",{}),"Having trouble? View our"," ",(0,r.jsx)(c(),{href:"https://stylemepretty.reamaze.com/articles/how-do-i-sign-up-for-a-profile-membership?_brand=stylemepretty",className:"resend",target:"_blank",children:"FAQ page"})]}),(0,r.jsx)("button",{className:"verification-button",type:"submit",disabled:z||j,children:z||j?"Verifying...":"Submit"})]})]})]})]})})}}}]); 2//# chunkId=01a01295-7833-7232-8213-2637c84934db
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.