1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2935],{41692:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/password-reset",function(){return t(21972)}])},70637:function(e,r,t){"use strict";var s=t(31549),o=t(44194),n=t(67103),a=t(73862),i=t(87708),l=t(46966),d=t(25924),u=t(29608);let c=(0,o.forwardRef)((e,r)=>{let{type:t,...c}=e,[p,x]=(0,o.useState)(!1);return(0,s.jsxs)(n.B,{children:[(0,s.jsx)(a.I,{...c,type:"password"===t?p?"text":"password":t,ref:r}),"password"===t&&(0,s.jsx)(i.x,{children:(0,s.jsx)(l.h,{variant:"unstyled","aria-label":"password visibility",icon:(0,s.jsx)(d.J,{w:"24px",h:"24px",as:p?u.EyeIcon:u.EyeSlashIcon}),onClick:()=>x(!p)})})]})});c.displayName="Input",r.Z=c},96870:function(e,r,t){"use strict";var s=t(31549),o=t(4540),n=t(83305),a=t(98002);r.Z=e=>{let{children:r,label:t,isRequired:i,message:l,styles:d,error:u,...c}=e,p=!!(null==l?void 0:l.error),x=!!(null==l?void 0:l.success)&&!p,E=!!(null==l?void 0:l.help)&&!p&&!x;return(0,s.jsxs)(o.NI,{isInvalid:p||u,...c,children:[!!t&&(0,s.jsxs)(n.k,{children:[(0,s.jsx)(a.x,{textStyle:"pre-body-05",color:"text.secondary",mb:"6px",children:t}),i&&(0,s.jsx)(a.x,{textStyle:"pre-caption-02",color:"support.error",children:"*"})]}),r,p&&(0,s.jsx)(a.x,{textStyle:"pre-caption-02",color:"support.error",mt:"6px",...null==d?void 0:d.error,children:null==l?void 0:l.error}),x&&(0,s.jsx)(a.x,{textStyle:"pre-caption-02",color:"text.brand",mt:"6px",...null==d?void 0:d.success,children:null==l?void 0:l.success}),E&&(0,s.jsx)(a.x,{textStyle:"pre-caption-02",color:"text.secondary",mt:"6px",...null==d?void 0:d.help,children:null==l?void 0:l.help})]})}},19774:function(e,r,t){"use strict";t.d(r,{m:function(){return s}});let s={ID:/^[A-Za-z][A-Za-z0-9]{3,19}$/,PHONE_VERIFICATION_CODE:/^\d+$/g,BIRTHDATE_COMMON:/^\d{4}-\d{2}-\d{2}$/,BIRTHDATE_DETAIL_FORMAT:/^(190[1-9]|19[1-9]\d|[2-9]\d{3})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/,NICKNAME:RegExp("^[\\p{L}\\p{M}\\p{N}]+$","u"),EMAIL:/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/,PHONE:/^((010|011|016|017|018|019)-\d{3,4}-\d{4})|((02|0[3-6][1-5]|0[7-9][0-9])-\d{3,4}-\d{4})$/,CELL_PHONE:/^010-(\d){4}-(\d){4}$/,BUSINESS_PHONE:/^\d{4}-\d{4}$/,PASSWORD:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9\s])[^\sê°-í£ã±-ã
ã
-ã
£]{8,20}$/,EMAIL_VERIFICATION_CODE:/^\d+$/g,USERNAME:RegExp("^[\\p{L}\\p{M}\\p{N}()'.,-]+$","u"),USERNAME_WITH_SPACE:RegExp("^[\\p{L}\\p{M}\\p{N}\\s()'.,-]+$","u"),KOREAN_USERNAME:/^[ê°-í£]+$/,NUMBER:/^\d+$/g,SPECIAL_CHARACTER:/[!@#$%^&*()_+={}[\]|\\:;"'<,>.?/~`]/,POSTCODE_EXCEPT_HYPHEN:/[^\w\s-]/}},21972:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSG:function(){return P},default:function(){return A}});var s=t(31549),o=t(76203),n=t(60892),a=t(26370),i=t(44194),l=t(3618),d=t(13049),u=t(83305),c=t(51813),p=t(98002),x=t(77690),E=t(61237),m=t(48295),h=t(70637),f=t(96870),w=t(2928),v=t(20447),_=t(67761),N=t(32329),j=t(18648),R=t(19774),S=e=>{let{t:r}=(0,o.$G)("auth"),t=(0,i.useMemo)(()=>j.Ry().shape({newPassword:j.Z_().matches(R.m.PASSWORD,r("auth.validation.password.format")).required(r("auth.validation.password.required")),confirmPassword:j.Z_().oneOf([j.iH("newPassword")],r("auth.validation.password.mismatch")).required(r("auth.validation.password.required"))}),[r]);return(0,m.cI)({resolver:(0,N.X)(t),mode:"onChange",...e})},y=()=>{var e,r;let{t}=(0,o.$G)("auth"),{openToast:n}=(0,v.Z)(),a=(0,d.useRouter)(),N=(0,l.useSearchParams)(),j=N.get("uid"),R=N.get("token"),{control:y,handleSubmit:P,register:A,formState:{errors:b}}=S(),I=(0,m.qo)({control:y,name:"newPassword"}),g=(0,m.qo)({control:y,name:"confirmPassword"}),{mutate:O,isPending:C}=(0,w.cE)({options:{onSuccess:()=>{a.push("/login"),n({status:"SUCCESS",bottom:{open:100},title:"ë¹ë°ë²í¸ ìì ì´ ìë£ ëìì´ì"})},onError:e=>{n({status:"ERROR",bottom:{open:100},title:(0,_.Z)(e)})}}}),T=(0,i.useCallback)(()=>{let e=[I,g].every(e=>void 0!==e&&""!==e),r=0===Object.keys(b).length;return!e||!r},[I,g,b]);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(u.k,{as:"form",pt:"20px",px:"20px",h:"100%",direction:"column",onSubmit:P(()=>{R&&j&&O({data:{password:I,passwordConfirm:g,token:R,uid:j}})}),children:[(0,s.jsxs)(c.g,{spacing:"12px",alignItems:"flex-start",children:[(0,s.jsx)(f.Z,{label:t("password.newLabel"),isRequired:!0,message:{error:null===(e=b.newPassword)||void 0===e?void 0:e.message},children:(0,s.jsx)(h.Z,{...A("newPassword"),placeholder:t("password.newPlaceholder"),autoComplete:"off",type:"password"})}),(0,s.jsx)(f.Z,{label:t("password.confirmLabel"),isRequired:!0,message:{error:null===(r=b.confirmPassword)||void 0===r?void 0:r.message},children:(0,s.jsx)(h.Z,{...A("confirmPassword"),placeholder:t("password.confirmPlaceholder"),autoComplete:"off",type:"password"})}),(0,s.jsx)(p.x,{textStyle:"pre-caption-02",color:"text.secondary",children:"8~20ìë¡ ì문, ì«ì, í¹ì문ì를 ê° 1ì ì´ì í¬í¨í´ 주ì¸ì"})]}),(0,s.jsx)(x.xu,{mt:"auto",mb:"30px",children:(0,s.jsx)(E.z,{w:"100%",colorScheme:"brand.primary",type:"submit",isLoading:C,isDisabled:C||!R||!j||T(),children:"ìë£"})})]})})},P=!0,A=function(){let{t:e}=(0,o.$G)("common");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.PB,{title:e("page.passwordReset")}),(0,s.jsx)(a.Z,{content:(0,s.jsx)(y,{}),footer:null})]})}},67761:function(e,r,t){"use strict";var s=t(93216);let o={DEFAULT:"ì ì ìë ì¤ë¥ê° ë°ìíì´ì.",NETWORK:"ë¤í¸ìí¬ ì¤ë¥ê° ë°ìíì´ì."},n=()=>({DEFAULT:s.ZP.isInitialized?s.ZP.t("error.unknown",{ns:"common"}):o.DEFAULT,NETWORK:s.ZP.isInitialized?s.ZP.t("error.networkError",{ns:"common"}):o.NETWORK}),a=e=>{if(Array.isArray(e))return e[0]||null;if("string"==typeof e)return e;if(e&&"object"==typeof e)for(let r of Object.keys(e)){let t=a(e[r]);if(t)return t}return null};r.Z=e=>{var r;let t=n(),s=null===(r=e.response)||void 0===r?void 0:r.data;return(null==s?void 0:s.detail)?s.detail:(null==s?void 0:s.message)?s.message:s&&"object"==typeof s?a(s)||t.DEFAULT:t.NETWORK}},46966:function(e,r,t){"use strict";t.d(r,{h:function(){return i}});var s=t(61237),o=t(75806),n=t(44194),a=t(31549),i=(0,o.G)((e,r)=>{let{icon:t,children:o,isRound:i,"aria-label":l,...d}=e,u=t||o,c=(0,n.isValidElement)(u)?(0,n.cloneElement)(u,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(s.z,{padding:"0",borderRadius:i?"full":void 0,ref:r,"aria-label":l,...d,children:c})});i.displayName="IconButton"}},function(e){e.O(0,[5776,2888,9774,179],function(){return e(e.s=41692)}),_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.