1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9ed95826-0e01-4416-9574-8a59d311e2fe",e._sentryDebugIdIdentifier="sentry-dbid-9ed95826-0e01-4416-9574-8a59d311e2fe")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9676],{22173:(e,t,n)=>{"use strict";n.d(t,{T:()=>T});var o=n(42969),r=n(59860),s=n(58103),l=n.n(s),a=n(83852),i=n(36440),c=n(89099),u=n(14232),d=n(33048),p=n(90153),f=n(81149),m=n(80857),_=n(8744),g=n(28950),h=n(13716),b=n(7632),y=n(62016),j=n(37758),x=n.n(j),E=n(19050),C=n(46261),I=n(86908),v=n(15848),N=n(48459),O=n(37876),w=["style","className"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var T=function(){var e=(0,v.t)(N.Ih.Code),t=e.loading,n=e.login,o=e.generateCode,s=e.error,j=e.errorCode,L=e.errorModalProps,T=(0,b.ur)(),k=T.setUserEmail,D=T.userEmail,A=T.userIdentity,S=T.setLoginProvider,M=T.setUserIdentity,R=(0,u.useState)(!1),B=R[0],F=R[1],X=(0,_.Uz)({linkPosition:"body"}),q=(0,u.useState)(null),z=q[0],U=q[1],G=(0,u.useRef)(!1),H=(0,c.useRouter)(),K=H.isReady,Q=H.query,V=(0,u.useState)(""),Y=V[0],Z=V[1],J=function(e){null==e||e.preventDefault(),n(Y)};(0,u.useEffect)(function(){B&&z&&(o(D,z),F(!1),U(null))},[B,z,o,D]),(0,u.useEffect)(function(){var e=(0,m.Qs)()||Q.email;K&&e&&(S(i.b.Email),M(e),k(e),Z(Q.otp))},[K,Q.otp,Q.email,k,S,M]),(0,u.useEffect)(function(){console.log("=== TESTING OTP ==="),console.log("userIdentity: ".concat(A)),console.log("value?.length: ".concat(null==Y?void 0:Y.length)),console.log("attemptedToLogIn.current: ".concat(G.current)),console.log("=== TESTING OTP ==="),(D||A)&&(null==Y?void 0:Y.length)===6&&!G.current&&(G.current=!0,n(Y))},[n,D,A,Y]);var $=(0,u.useCallback)(function(e){U(e)},[]),W=j===a.yr.BLOCKED_EMAIL_DOMAIN,ee=(0,f.o)();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(C.en,{children:[(0,O.jsx)("h3",{className:l()(x().title,x()[ee]),children:"A code was sent to your email"}),(0,O.jsx)("span",{className:l()(x().subtitle,x()[ee]),children:"Enter it below to verify this address:"}),(0,O.jsx)("span",{className:l()(x().subtitle,x()[ee],x().email),children:D}),(0,O.jsxs)("form",{onSubmit:J,className:l()(x().form,x()[ee]),"data-testid":"code-form",children:[(0,O.jsx)(d.A,{value:Y,onChange:Z,numInputs:6,shouldAutoFocus:!0,renderInput:function(e,t){e.style;var n=e.className,o=(0,r.A)(e,w);return(0,O.jsx)("input",P(P({},o),{},{"data-testid":"otp-input-".concat(t+1),className:l()(n,x()[ee],x().codeInput)}))},containerStyle:{display:"flex",gap:"8px",justifyContent:"center"}}),s&&(0,O.jsxs)("span",{className:x().error,children:[j,": ",s]}),B&&(0,O.jsx)(p.$,{onVerify:$}),(0,O.jsx)(y.Ay,{clickHandler:J,className:l()(x().button,x()[ee]),disabled:(null==Y?void 0:Y.length)<6,analyticsEventName:g.M.emailLoginApplyCode.eventName,children:"Continue"})]}),!W&&(0,O.jsxs)("span",{className:x().help,children:["Can't find the code? Check your promotions tab and spam folder,"," ",(0,O.jsx)("span",P(P({className:x().textButton,onClick:function(){F(!0)},role:"button",tabIndex:0},(0,h.hL)(h.IR.Footer)),{},{children:"request another code"})),", or"," ",(0,O.jsx)("span",{className:x().textButton,tabIndex:0,role:"button",children:(0,O.jsx)("a",P(P({href:X,target:"_blank",rel:"noreferrer"},(0,h.hL)(h.IR.Footer)),{},{children:"contact us"}))}),"."]}),(0,O.jsx)(I.E,P({},L))]}),t&&(0,O.jsx)(E.A,{})]})}},26236:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login-email-otp",function(){return n(60381)}])}
1,37758:e=>{e.exports={title:"EmailLoginCode_title__xFReg",subtitle:"EmailLoginCode_subtitle__q8Jyr",email:"EmailLoginCode_email__RwFZH",form:"EmailLoginCode_form__zhhTN",codeInput:"EmailLoginCode_codeInput__I9nrK",error:"EmailLoginCode_error__kMwaB",button:"EmailLoginCode_button__PZ77X",help:"EmailLoginCode_help__XXMV0",textButton:"EmailLoginCode_textButton__T6n8Y",popularpays:"EmailLoginCode_popularpays__qQ0Mz"}},60381:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var o=n(77328),r=n.n(o),s=n(22173),l=n(37876);let a=function(){return(0,l.jsxs)("div",{children:[(0,l.jsx)(r(),{children:(0,l.jsx)("title",{children:"Your account - Lightricks Store"})}),(0,l.jsx)(s.T,{})]})}}},e=>{e.O(0,[2839,1487,7543,636,6593,8792],()=>e(e.s=26236)),_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.