PageSourceSearch

https://nutrigeni.co.kr/static/js/404.8dc67dc3.chunk.js

js nutrigeni.co.kr collected 2026-10-08 20:23:13 UTC 5,137 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_nutrigeni_nutrigeni=self.webpackChunk_nutrigeni_nutrigeni||[]).push([[404],{86404:function(e,r,n){n.r(r),n.d(r,{default:function(){return L}});var o=n(70178),t=n(61113),i=n(9506),s=n(90891),a=n(17592),c=n(33896),d=n(71361),u=n(1413),l=n(74165),m=n(15861),f=n(29439),x=n(58908),p=n(47313),h=n(97890),v=n(24511),g=n(3463),Z=n(62563),j=n(75627),w=n(51406),q=n(35898),b=n(49914),y=n(15480),C=n(41727),P=n(47131),_=n(48175),S=n(54449),k=n(42593),E=n(46417);function D(){var e=(0,h.s0)(),r=(0,x.Ds)().enqueueSnackbar,n=(0,v.$)().t,o=(0,p.useState)(!1),t=(0,f.Z)(o,2),i=t[0],s=t[1],a=sessionStorage.getItem("email-recovery"),c=g.Ry().shape({code1:g.Z_().required("Code is required"),code2:g.Z_().required("Code is required"),code3:g.Z_().required("Code is required"),code4:g.Z_().required("Code is required"),code5:g.Z_().required("Code is required"),code6:g.Z_().required("Code is required"),email:g.Z_().email("Email must be a valid email address").required("Email is required"),password:g.Z_().min(6,"Password must be at least 6 characters").required("Password is required"),confirmPassword:g.Z_().required("Confirm password is required").oneOf([g.iH("password"),null],"Passwords must match")}),d={code1:"",code2:"",code3:"",code4:"",code5:"",code6:"",email:a||"",password:"",confirmPassword:""},D=(0,j.cI)({mode:"all",resolver:(0,Z.X)(c),defaultValues:d}),A=D.control,I=D.setValue,L=D.handleSubmit,N=D.formState,R=N.isSubmitting,V=N.errors;(0,p.useEffect)((function(){var e=document.querySelector("input.field-code");return null===e||void 0===e||e.addEventListener("paste",W),function(){null===e||void 0===e||e.removeEventListener("paste",W)}}),[]);var W=function(e){var r=e.clipboardData.getData("text");r=r.split(""),[].forEach.call(document.querySelectorAll(".field-code"),(function(e,n){e.value=r[n];var o="code".concat(n+1);I(o,r[n])})),e.preventDefault()},B=function(){var o=(0,m.Z)((0,l.Z)().mark((function o(t){return(0,l.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,new Promise((function(e){return setTimeout(e,500)}));case 3:console.log("data:",{email:t.email,code:"".concat(t.code1).concat(t.code2).concat(t.code3).concat(t.code4).concat(t.code5).concat(t.code6),password:t.password}),sessionStorage.removeItem("email-recovery"),r(n("Change password success!")),e(_.vB.root,{replace:!0}),o.next=12;break;case 9:o.prev=9,o.t0=o.catch(0),console.error(o.t0);case 12:case"end":return o.stop()}}),o,null,[[0,9]])})));return function(e){return o.apply(this,arguments)}}();return(0,E.jsx)(S.RV,{methods:D,onSubmit:L(B),children:(0,E.jsxs)(q.Z,{spacing:3,children:[(0,E.jsx)(S.au,{name:"email",label:"Email",disabled:!!a}),(0,E.jsx)(q.Z,{direction:"row",spacing:2,justifyContent:"center",children:["code1","code2","code3","code4","code5","code6"].map((function(e,r){return(0,E.jsx)(j.Qr,{name:"code".concat(r+1),control:A,render:function(e){var n=e.field,o=e.fieldState.error;return(0,E.jsx)(b.Z,(0,u.Z)((0,u.Z)({},n),{},{error:!!o,autoFocus:0===r,placeholder:"-",onChange:function(e){return function(e,r){var n=e.target,o=n.maxLength,t=n.value,i=n.name.replace("code",""),s=Number(i);if(t.length>=o&&s<6){var a=document.querySelector("input[name=code".concat(s+1,"]"));null!==a&&a.focus()}r(e)}(e,n.onChange)},inputProps:{className:"field-code",maxLength:1,sx:{p:0,textAlign:"center",width:{xs:36,sm:56},height:{xs:36,sm:56}}}}))}},e)}))}),(!!V.code1||!!V.code2||!!V.code3||!!V.code4||!!V.code5||!!V.code6)&&(0,E.jsx)(y.Z,{error:!0,sx:{px:2},children:"Code is required"}),(0,E.jsx)(S.au,{name:"password",label:"Password",type:i?"text":"password",InputProps:{endAdornment:(0,E.jsx)(C.Z,{position:"end",children:(0,E.jsx)(P.Z,{onClick:function(){return s(!i)},edge:"end",children:(0,E.jsx)(k.Z,{icon:i?"eva:eye-fill":"eva:eye-off-fill"})})})}}),(0,E.jsx)(S.au,{name:"confirmPassword",label:"Confirm New Password",type:i?"text":"password",InputProps:{endAdornment:(0,E.jsx)(C.Z,{position:"end",children:(0,E.jsx)(P.Z,{onClick:function(){return s(!i)},edge:"end",children:(0,E.jsx)(k.Z,{icon:i?"eva:eye-fill":"eva:eye-off-fill"})})})}}),(0,E.jsx)(w.Z,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:R,sx:{mt:3},children:"Change password"})]})})}var A=n(64092),I=(0,a.ZP)("div")((function(e){return{maxWidth:480,margin:"auto",minHeight:"100vh",display:"flex",justifyContent:"center",flexDirection:"column",padding:e.theme.spacing(12,0)}}));function L(){return(0,E.jsxs)(d.Z,{title:"New Password",children:[(0,E.jsx)(c.Z,{}),(0,E.jsx)(o.Z,{children:(0,E.jsxs)(I,{sx:{textAlign:"center"},children:[(0,E.jsx)(A.Jg,{sx:{mb:5,mx:"auto",height:120}}),(0,E.jsx)(t.Z,{variant:"h3",gutterBottom:!0,children:"Request sent successfully!"}),(0,E.jsxs)(t.Z,{sx:{color:"text.secondary"},children:["We've sent a 6-digit confirmation email to your email.",(0,E.jsx)("br",{}),"Please enter the code in below box to verify your email."]}),(0,E.jsx)(i.Z,{sx:{mt:5,mb:3},children:(0,E.jsx)(D,{})}),(0,E.jsxs)(t.Z,{variant:"body2",children:["Don\u2019t have a code? \xa0",(0,E.jsx)(s.Z,{variant:"subtitle2",onClick:function(){},children:"Resend code"})]})]})})]})}}}]);

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.