1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4903],{14635:function(a,b,c){"use strict";c.d(b,{pt:function(){return k},tN:function(){return l},YD:function(){return m},hB:function(){return n}});var d=c(67294),e=c(94184),f=c.n(e),g=c(11163),h=c(96486);c.n(h);var i=c(65259),j=c(85893);b.ZP=function(a){var b=a.label,c=a.name,d=a.nameError,e=a.type,g=a.data,i=a._errors,m=a.textarea,n=a.defaultValue,o=a.required,p=a.min,q=a.eRef,r=a.disabled,s=a.placeholder,t=a.hideLabel,u=a.autoComplete,v=a.sub,w=a.cypressTarget;return(0,j.jsxs)("label",{className:"Label",children:[!(void 0!==t&&t)&&(0,j.jsx)(k,{label:b,required:void 0!==o&&o}),(0,j.jsx)(m?"textarea":"input",{type:e||"text",className:f()("Input",{"Input--error":null==i?void 0:i[c]}),disabled:r,name:r?null:c,defaultValue:(0,h.isNil)(n)?null==g?void 0:g[c]:n,rows:m?5:null,min:(0,h.isNil)(p)?null:p,ref:q||null,placeholder:(0,h.isNil)(s)?null:s,autoComplete:(0,h.isNil)(u)?"off":u,"cypress-target":w}),(0,j.jsx)(l,{name:c,nameError:d,_errors:i,label:b}),v&&v]})};var k=function(a){var b=a.label,c=a.required,d=(0,g.useRouter)(),e=(0,i._t)(d.locale);return(0,j.jsxs)("div",{className:"Label__row",children:[(0,j.jsx)("span",{className:"Label__span",children:b}),void 0!==c&&c&&(0,j.jsx)("span",{className:"Label__required",children:e("components.Label.required")})]})},l=function(a){var b,c,e=a.name,f=a.nameError,g=a._errors,h=a.label;return(0,j.jsx)(d.Fragment,{children:(null==g?void 0:g[e])&&(0,j.jsxs)("p",{className:"Label__errors",children:[h," ",null==g?void 0:null===(b=g[f||e])|| void 0===b?void 0:null===(c=b.join)|| void 0===c?void 0:c.call(b,", ")]})})},m=function(a){var b=a._errors;return(0,j.jsx)(d.Fragment,{children:b&&(0,j.jsx)("p",{className:"Label__errors",children:b})})},n=function(a){var b=a.label,c=a.name,d=a.nameError,e=a._errors,f=a.required,g=a.hideLabel,h=a.sub,i=a.children;return(0,j.jsxs)("label",{className:"Label",children:[!(void 0!==g&&g)&&(0,j.jsx)(k,{label:b,required:void 0!==f&&f}),i,(0,j.jsx)(l,{name:c,nameError:d,_errors:e,label:b}),h&&h]})}},68779:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return t}});var d=c(50029),e=c(16835),f=c(87794),g=c.n(f);c(67294);var h=c(94184),i=c.n(h),j=c(11163),k=c(88767),l=c(81043),m=c(96486);c.n(m);var n=c(65259),o=c(39169),p=c(84691),q=c(11373),r=c(14635),s=c(85893),t=!0;b.default=function(){var a,b,c,f,h=(0,l.I0)(),t=(0,j.useRouter)(),u=(0,n._t)(t.locale),v=(0,p.wL)(),w=(0,e.Z)(v,1)[0],x=(0,p.gH)(),y=x.__timeout,z=x.getTimeDiff,A=x.setResendTimeout,B=(0,k.useMutation)(function(a){return n.kN.post(q.x$,a)},{onSuccess:function(){h((0,o.EA)({small:"Password reset email has been sent."})),A(),t.push("/shop-admin")},onError:function(a){var b,c;h((0,o.EA)({type:"red",small:null==a?void 0:null===(b=a.response)|| void 0===b?void 0:null===(c=b.data)|| void 0===c?void 0:c.message}))}}),C=null===(a=B.error)|| void 0===a?void 0:null===(b=a.response)|| void 0===b?void 0:b.data;return(0,s.jsx)("div",{className:"Session",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"Session__wrapper",children:[(0,s.jsx)("h1",{className:"Session__h1",children:u("pages.forgotPasswordShop.h1")}),(0,s.jsx)("p",{className:"Session__p",children:u("pages.forgotPasswordShop.p")}),(0,s.jsxs)("form",{className:i()("Session__form",{"Session__form--disabled":B.isLoading||y}),onSubmit:function(){var a=(0,d.Z)(g().mark(function a(b){var c,d;return g().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:b.preventDefault(),c=b.target,(0,m.isNull)(y)&&B.mutate({agency:{email:null===(d=c.elements.email)|| void 0===d?void 0:d.value}});case 3:case"end":return a.stop()}},a)}));return function(b){return a.apply(this,arguments)}}(),children:[(0,s.jsx)(r.ZP,{label:u("pages.signupShop.form.email"),name:"email",_errors:C,eRef:w}),(0,s.jsx)("button",{className:"Button",children:y?u("pages.buyerAdmin.verification.index.resend_timeout",{seconds:null===(c=z())|| void 0===c?void 0:null===(f=c.toString)|| void 0===f?void 0:f.call(c)}):u("pages.forgotPasswordShop.submit")})]})]})})})}},30592:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password-shop",function(){return c(68779)}])}},function(a){a.O(0,[9774,2888,179],function(){return a(a.s=30592)}),_N_E=a.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.