1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[198],{30583:function(e,r,t){t.d(r,{w:function(){return C}});var n=t(95235),o=t(87254),i=t(55452),s=t(59234),a=t(81890),c=t(5632),d=t(2784),l=t(63955),u=t(75545),g=u.default.ul.withConfig({componentId:"sc-bdqg0c-0"})(["",""],(function(e){var r=e.theme;return(0,u.css)(["margin:"," 0;"],r.grid._1ako)})),m=u.default.li.withConfig({componentId:"sc-bdqg0c-1"})(["",""],(function(e){var r=e.theme;return(0,u.css)(["display:flex;align-items:center;& + &{padding-top:",";}"],r.grid._1nko)})),f=(0,u.default)(s.CheckmarkIcon).withConfig({componentId:"sc-bdqg0c-2"})(["margin-right:",";"],(function(e){return e.theme.grid._1ako})),p=u.default.div.withConfig({componentId:"sc-bdqg0c-3"})(["",""],(function(e){var r=e.theme;return(0,u.css)(["margin-top:",";"],r.grid._5ako)})),h=u.default.div.withConfig({componentId:"sc-bdqg0c-4"})(["",""],(function(e){var r=e.theme;return(0,u.css)(["margin-top:",";"],r.grid._1ako)})),b=t(52322);function j(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?j(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var x=/[a-z]/i,O=/[0-9!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/,S=o.ag._({id:"/46VqB"}),C=(0,a.observer)((function(e){var r,t,n=e.onSubmit,o=e.loading,a=e.error,u=(0,i.mV)().i18n,j=u._("ERR_REQUIRED"),C=(0,c.useRouter)().asPath.startsWith("/member/reset_password"),y=(0,l.cI)({defaultValues:{password:"",passwordConfirm:""},mode:"onChange",reValidateMode:"onChange"}),w=y.register,_=y.watch,k=y.handleSubmit,I=y.clearErrors,E=y.setError,M=y.formState,P=M.errors,T=M.isValid,D=_("password"),R=(0,d.useMemo)((function(){return D.length>=6}),[D]),U=(0,d.useMemo)((function(){return x.test(D)}),[D]),z=(0,d.useMemo)((function(){return O.test(D)}),[D]),N=R&&U&&z,V=[{condition:R,message:u._({id:"qaQ5GW"})},{condition:U,message:u._({id:"I/HyMw"})},{condition:z,message:u._({id:"+8FoMu"})}];return(0,b.jsxs)("form",{onSubmit:k(n),children:[(0,b.jsx)(s.TextField,v({fluid:!0,label:C?"":u._({id:"8ZsakT"}),size:"large",autoComplete:"off",placeholder:u._({id:"8ZsakT"}),type:"password",disabled:o,error:!!P.password,errorMessage:(null==(r=P.password)?void 0:r.message)||""},w("password",{required:j}))),(0,b.jsx)(g,{children:V.map((function(e,r){var t=e.condition,n=e.message;return(0,b.jsxs)(m,{children:[(0,b.jsx)(f,{size:16,color:t?"blue800":"gray500"}),(0,b.jsx)(s.Typography,{variant:"caption",bold:t,color:t?"blue800":"gray500",children:n})]},r)}))}),(0,b.jsx)(s.TextField,v(v({fluid:!0,size:"large",autoComplete:"off",placeholder:u._({id:"eL+gD1"}),type:"password",disabled:o},w("passwordConfirm",{required:j,validate:function(e){return D.length>0&&D===e?(I("passwordConfirm"),!0):(E("passwordConfirm",{type:"manual",message:S}),S)}})),{},{error:!!a||!!P.passwordConfirm,errorMessage:a||(null==(t=P.passwordConfirm)?void 0:t.message)||""})),T&&!P.passwordConfirm&&(0,b.jsx)(h,{children:(0,b.jsx)(s.Typography,{variant:"caption",size:"small",color:"blue800",children:(0,b.jsx)(i.cC,{id:"fot+d1"})})}),(0,b.jsx)(p,{children:(0,b.jsx)(s.Button,{size:"large",fluid:!0,type:"submit",disabled:o||!(T&&N),children:C?(0,b.jsx)(i.cC,{id:"RfwZxd"}):(0,b.jsx)(i.cC,{id:"hXzOVo"})})})]})}))},70198:function(e,r,t){t.r(r),t.d(r,{default:function(){return R}});var n,o=t(8878),i=t(63155),s=t(81890),a=t(2784),c=t(76688),d=t(28571),l=t(44680),u=t(55452),g=t(59234),m=t(7328),f=t(75545),p=f.default.div.withConfig({componentId:"sc-1tmxmql-0"})(["",""],(function(e){var r=e.theme;return(0,f.css)(["margin-bottom:",";text-transform:capitalize;",""],r.grid._3ako,r.device.lt.tablet(n||(n=(0,m.Z)(["\n margin-bottom: ",";\n text-align: center;\n "])),r.grid._2ako))})),h=f.default.div.withConfig({componentId:"sc-1tmxmql-1"})(["",""],(function(e){var r=e.theme;return(0,f.css)(["button + button{margin-top:",";}"],r.grid._1ako)})),b=t(52322),j=(0,s.observer)((function(e){var r=e.signUpVm,t=e.onGTMSend,n=r.setSignUpStage,o=r.handleOauthSignUpClick;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p,{children:(0,b.jsx)(g.Typography,{variant:"page",bold:!0,size:"large",children:(0,b.jsx)(u.cC,{id:"e+RpCP"})})}),(0,b.jsxs)(h,{children:[(0,b.jsx)(g.Button,{fluid:!0,size:"large",variant:"outlined",color:"secondary",useDefaultIconColor:!0,onClick:function(){t({event:"clickSignupMethod",sign_method:"social_google"}),o("google")},startIcon:(0,b.jsx)(g.SNSGoogleIcon,{size:20}),children:"Google"}),(0,b.jsx)(g.Button,{fluid:!0,size:"large",variant:"outlined",color:"secondary",useDefaultIconColor:!0,onClick:function(){t({event:"clickSignupMethod",sign_method:"social_kakao"}),o("kakao")},startIcon:(0,b.jsx)(g.SNSKaKaoIcon,{size:20}),children:"KakaoTalk"}),(0,b.jsx)(g.Button,{fluid:!0,size:"large",variant:"outlined",color:"secondary",useDefaultIconColor:!0,onClick:function(){t({event:"clickSignupMethod",sign_method:"email"}),n(l.vb.ACCOUNT_EMAIL)},startIcon:(0,b.jsx)(g.MMTIcon,{size:20}),children:"Email account"})]})]})})),v=f.default.div.withConfig({componentId:"sc-rpn6h1-0"})(["",""],(function(e){var r=e.theme;return(0,f.css)(["width:100%;margin-bottom:",";background-color:",";"],r.grid._3ako,r.color.gray100)})),x=f.default.div.withConfig({componentId:"sc-rpn6h1-1"})(["",""],(function(e){var r=e.theme,t=e.currentStage,n=e.totalStages;return(0,f.css)(["width:","%;height:",";background-color:",";"],t/n*100,r.grid._1nko,r.color.blue800)})),O=(0,s.observer)((function(e){var r=e.stage,t=e.isSocialLogin,n=void 0!==t&&t;return(0,b.jsx)(v,{children:(0,b.jsx)(x,{currentStage:r,totalStages:n?4:6})})})),S=t(95235),C=t(30583),y=t(78932),w=t(90523),_=t(63955),k=t(10599);function I(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function E(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?I(Object(t),!0).forEach((function(r){(0,S.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var M=function(e){var r,t=e.onSubmit,n=e.apiStatus,o=(0,u.mV)().i18n,i=n.loading,s=n.success,a=n.error,c=(0,_.cI)({defaultValues:{email:""},mode:"onChange"}),d=c.register,l=c.handleSubmit,m=c.formState,f=m.errors,p=m.isValid;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y.bU,{children:(0,b.jsx)(g.Typography,{variant:"section",bold:!0,children:(0,b.jsx)(u.cC,{id:"C3nD/1"})})}),(0,b.jsxs)("form",{onSubmit:l((function(e){return t(e.email)})),children:[(0,b.jsx)(g.TextField,E({fluid:!0,size:"large",type:"email",label:o._({id:"O3oNi5"}),error:!!f.email||!!a||s,errorMessage:(null==(r=f.email)?void 0:r.message)||(null==a?void 0:a.ANY)||s&&o._({id:"3IQkKT"})||""},d("email",{required:o._("ERR_REQUIRED"),pattern:{value:w.Vq,message:o._("ERR_INVALID_EMAIL")}}))),(0,b.jsx)(k.M,{children:(0,b.jsx)(g.Button,{size:"large",fluid:!0,type:"submit",disabled:!p||i,children:(0,b.jsx)(u.cC,{id:"hXzOVo"})})})]})]})},P=function(e){var r=e.onSubmit;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y.bU,{children:(0,b.jsx)(g.Typography,{variant:"section",bold:!0,children:(0,b.jsx)(u.cC,{id:"NgaR6B"})})}),(0,b.jsx)(C.w,{onSubmit:r,loading:!1,error:""})]})},T=t(3864),D=t(77368),R=(0,s.observer)((function(e){var r=e.oauthId,t=e.isEmailSignUp,n=(0,i.oR)(),s=c.e.getByStore(n),u=s.signUpSubVm,g=s.pVSubVm,m=s.setAuthContext,f=s.sendGTM,p=u.state.stage,h=u.data,v=h.emailValidation,x=h.hasOtherAccounts,S=u.setSignUpStage,C=u.handleEmailSubmit,y=u.handlePasswordSubmit,w=g.state.stage;(0,a.useEffect)((function(){if(r)return m({preuserId:"",preuserToken:"",tempOAuthId:r}),S(l.vb.PHONE_NUMBER),function(){m({preuserId:"",preuserToken:"",tempOAuthId:""})}}),[r]),(0,a.useEffect)((function(){t&&S(l.vb.ACCOUNT_EMAIL)}),[t]);var _=w===d.u3.SMS?p+1:p;return(0,b.jsxs)(b.Fragment,{children:[p!==l.vb.METHOD&&p!==l.vb.SUCCESS&&w!==d.u3.HELP&&(0,b.jsx)(O,{stage:_}),p===l.vb.METHOD&&(0,b.jsx)(j,{signUpVm:u,onGTMSend:f}),p===l.vb.ACCOUNT_EMAIL&&(0,b.jsx)(M,{onSubmit:C,apiStatus:v}),p===l.vb.ACCOUNT_PASSWORD&&(0,b.jsx)(P,{onSubmit:y}),p===l.vb.PHONE_NUMBER&&(0,b.jsx)(o.Y,{}),p===l.vb.PERSONAL_INFO&&(0,b.jsx)(T.B,{}),p===l.vb.SUCCESS&&(0,b.jsx)(D.c,{hasOtherAccounts:x,isOauthLogin:!!r})]})}))}}]);
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.