PageSourceSearch

https://comake.ai/_next/static/chunks/pages/comake2/new-lock-pw-d1e4fd46ad58ae3f.js

js comake.ai collected 2026-10-05 12:32:37 UTC 7,069 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9446],{44100:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/comake2/new-lock-pw",function(){return t(11552)}])},11552:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var r=t(47568),o=t(97582),c=t(85893),i=t(90948),a=t(32860),s=t(61582),d=t(73400),u=t(26042),l=t(69396),f=t(67294),m=t(74231),h=t(11163),p=t(95496),x=t(87536),v=t(31812),g=t(93946),Z=t(87109),j=t(26447),w=t(59673),y=t(3140),_=t(57709),b=t(56815);function S(){var e=(0,h.useRouter)().push,n=(0,d.Ds)().enqueueSnackbar,t=(0,f.useState)(!1),i=t[0],a=t[1],s=sessionStorage.getItem("email-recovery"),S=m.Ry().shape({code1:m.Z_().required("\ucf54\ub4dc\ub294 \ud544\uc218\uc785\ub2c8\ub2e4."),code2:m.Z_().required("\ucf54\ub4dc\ub294 \ud544\uc218\uc785\ub2c8\ub2e4."),code3:m.Z_().required("\ucf54\ub4dc\ub294 \ud544\uc218\uc785\ub2c8\ub2e4."),code4:m.Z_().required("\ucf54\ub4dc\ub294 \ud544\uc218\uc785\ub2c8\ub2e4."),code5:m.Z_().required("\ucf54\ub4dc\ub294 \ud544\uc218\uc785\ub2c8\ub2e4."),code6:m.Z_().required("\ucf54\ub4dc\ub294 \ud544\uc218\uc785\ub2c8\ub2e4."),email:m.Z_().email("\uc785\ub825\ud55c \uac12\uc774 \uc774\uba54\uc77c \ud615\uc2dd\uc774 \uc544\ub2d9\ub2c8\ub2e4").required("\uc774\uba54\uc77c\uc740 \ud544\uc218\uc785\ub2c8\ub2e4."),password:m.Z_().min(4,"4\uae00\uc790 \uc774\uc0c1\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.").required("\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218\uc785\ub2c8\ub2e4. "),confirmPassword:m.Z_().required("\ube44\ubc00\ubc88\ud638\ub97c \ub2e4\uc2dc\ud55c\ubc88 \uc785\ub825\ud574\uc8fc\uc138\uc694.").oneOf([m.iH("password"),null],"\ube44\ubc03\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4."),hint:m.Z_().required("\ud78c\ud2b8\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.")}),k={code1:"",code2:"",code3:"",code4:"",code5:"",code6:"",email:s||"",password:"",confirmPassword:"",hint:""},q=(0,x.cI)({mode:"all",resolver:(0,p.X)(S),defaultValues:k}),P=q.control,C=q.setValue,E=q.handleSubmit,N=q.formState,O=N.isSubmitting,A=N.errors;(0,f.useEffect)((function(){var e=document.querySelector("input.field-code");return null===e||void 0===e||e.addEventListener("paste",D),function(){null===e||void 0===e||e.removeEventListener("paste",D)}}),[]);var D=function(e){var n=e.clipboardData.getData("text");n=n.split(""),[].forEach.call(document.querySelectorAll(".field-code"),(function(e,t){e.value=n[t];var r="code".concat(t+1);C(r,n[t])})),e.preventDefault()},I=function(){var t=(0,r.Z)((function(t){var r,c;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),r={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,hint:t.hint},sessionStorage.removeItem("email-recovery"),[4,fetch("/api/comake2/change-lock-pw",{method:"POST",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(r)})];case 1:return 200!=(c=o.sent()).status?c.json().then((function(e){n(e.message,{variant:"error"})})):c.json().then((function(r){n(r.message,{variant:"success"}),sessionStorage.setItem("email-recovery",t.email),e("/comake2/docList")})),[3,3];case 2:return o.sent(),[3,3];case 3:return[2]}}
1))}));return function(e){return t.apply(this,arguments)}}();return(0,c.jsx)(w.RV,{methods:q,onSubmit:E(I),children:(0,c.jsxs)(j.Z,{spacing:3,children:[(0,c.jsx)(w.au,{name:"email",label:"Email",disabled:!!s}),(0,c.jsx)(j.Z,{direction:"row",spacing:2,justifyContent:"center",children:["code1","code2","code3","code4","code5","code6"].map((function(e,n){return(0,c.jsx)(x.Qr,{name:"code".concat(n+1),control:P,render:function(e){var t=e.field,r=e.fieldState.error;return(0,c.jsx)(_.Z,(0,l.Z)((0,u.Z)({},t),{error:!!r,autoFocus:0===n,placeholder:"-",onChange:function(e){return function(e,n){var t=e.target,r=t.maxLength,o=t.value,c=t.name.replace("code",""),i=Number(c);if(o.length>=r&&i<6){var a=document.querySelector("input[name=code".concat(i+1,"]"));null!==a&&a.focus()}n(e)}(e,t.onChange)},inputProps:{className:"field-code",maxLength:1,sx:{p:0,textAlign:"center",width:{xs:36,sm:56},height:{xs:36,sm:56}}}}))}},e)}))}),(!!A.code1||!!A.code2||!!A.code3||!!A.code4||!!A.code5||!!A.code6)&&(0,c.jsx)(b.Z,{error:!0,sx:{px:2},children:"\ucf54\ub4dc\ub294 \ud544\uc218\uc785\ub2c8\ub2e4."}),(0,c.jsx)(w.au,{autoComplete:"new-password",name:"password",label:"\ube44\ubc00\ubc88\ud638",type:i?"text":"password",InputProps:{endAdornment:(0,c.jsx)(Z.Z,{position:"end",children:(0,c.jsx)(g.Z,{onClick:function(){return a(!i)},edge:"end",children:(0,c.jsx)(y.Z,{icon:i?"eva:eye-fill":"eva:eye-off-fill"})})})}}),(0,c.jsx)(w.au,{autoComplete:"new-password",name:"confirmPassword",label:"\ube44\ubc00\ubc88\ud638 \ud655\uc778",type:i?"text":"password",InputProps:{endAdornment:(0,c.jsx)(Z.Z,{position:"end",children:(0,c.jsx)(g.Z,{onClick:function(){return a(!i)},edge:"end",children:(0,c.jsx)(y.Z,{icon:i?"eva:eye-fill":"eva:eye-off-fill"})})})}}),(0,c.jsx)(w.au,{name:"hint",label:"\ud78c\ud2b8",type:"text"}),(0,c.jsx)(v.Z,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:O,sx:{mt:3},children:"\ube44\ubc00\ubc88\ud638 \ubcc0\uacbd"})]})})}var k=t(46574),q=t(15861),P=t(87357),C=t(83321),E=(0,i.ZP)("div")((function(e){return{maxWidth:480,margin:"auto",minHeight:"100vh",display:"flex",justifyContent:"center",flexDirection:"column",padding:e.theme.spacing(12,0)}}));function N(){var e=(0,d.Ds)().enqueueSnackbar,n=function(){var n=(0,r.Z)((function(){return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return[4,fetch("/api/comake2/send-verification-code",{method:"POST"})];case 1:return 200===n.sent().status?e("\uc778\uc99d\ubc88\ud638\ub97c \uc7ac\uc804\uc1a1\ud588\uc2b5\ub2c8\ub2e4. \uc774\uba54\uc77c\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694."):e("\uc778\uc99d\ubc88\ud638\ub97c \uc7ac\uc804\uc1a1\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4."),[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,c.jsx)(s.Z,{title:"New Password",children:(0,c.jsx)(k.Z,{children:(0,c.jsxs)(E,{sx:{textAlign:"center"},children:[(0,c.jsx)(q.Z,{variant:"h3",gutterBottom:!0,children:"\uc778\uc99d\ubc88\ud638\ub97c \ubcf4\ub0c8\uc2b5\ub2c8\ub2e4!"}),(0,c.jsxs)(q.Z,{sx:{color:"text.secondary"},children:["\uc774\uba54\uc77c\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694.",(0,c.jsx)("br",{}),"\ubcf4\ub0b4\ub4dc\ub9b0 6\uc790\ub9ac \uc22b\uc790\ub97c \uc544\ub798\uc758 \uc785\ub825\ub780\uc5d0 \uc785\ub825\ud574\uc8fc\uc138\uc694."]}),(0,c.jsx)(P.Z,{sx:{mt:5,mb:3},children:(0,c.jsx)(S,{})}),(0,c.jsxs)(q.Z,{variant:"body2",children:["\uba54\uc77c\uc744 \ubc1b\uc9c0 \ubabb\ud558\uc168\ub098\uc694? \xa0",(0,c.jsx)(C.Z,{variant:"text",onClick:n,children:"\uc7ac\uc804\uc1a1 \ud558\uae30"})]})]})})})}N.getLayout=function(e){return(0,c.jsx)(a.Z,{variant:"logoOnlyWithAuthGard",children:e})}}},function(e){e.O(0,[738,4512,1664,1252,1120,1023,5839,1864,9536,2233,829,2860,9774,2888,179],(function(){return n=44100,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.