1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{18913:function(e,t,n){"use strict";n.r(t);var r=n(85893),s=n(809),a=n.n(s),i=n(92447),o=n(26265),c=n(41664),u=n(11163),l=n(67294),d=n(84751),p=n(41819),f=n(37351),g=n(79941),m=n(83983),v=n(9669),h=n.n(v);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default=function(){var e=(0,l.useState)({value:"",state:"",isSave:!1}),t=e[0],n=e[1],s=(0,l.useState)({value:"",state:""}),o=s[0],v=s[1],y=(0,l.useRef)(null),_=(0,l.useState)(null),k=_[0],x=_[1],w=(0,l.useState)(null),S=w[0],N=w[1],I=(0,l.useState)(null),j=I[0],O=I[1],P=(0,l.useState)(null),M=P[0],A=P[1],E=(0,u.useRouter)(),C=(0,d.I0)();(0,l.useEffect)((function(){var e,t,n=null!==(e=sessionStorage.getItem("ynau"))&&void 0!==e?e:localStorage.getItem("ynau-ps"),r=null!==(t=sessionStorage.getItem("ynat"))&&void 0!==t?t:localStorage.getItem("ynat-ps"),s=(0,m.PB)(n),a=(0,m.PB)(r);if(null!==s&&null!==a){var i=E.query.callbackurl;if(void 0!==i){var o="".concat(i);return"/"===o[0]&&(o=o.replace("/","")),void E.replace("/".concat(o))}E.replace("/")}}),[]),(0,l.useEffect)((function(){return Z(),y.current.src="".concat("https://m.helloarchive.co.kr","/login/bridge"),window.addEventListener("message",T),function(){L()}}),[]),(0,l.useEffect)((function(){var e=(0,m.ej)("HelloAchiveUserID");e&&n((function(t){return b(b({},t),{},{value:e,state:"",isSave:!0})}))}),[]);var J=function(){var e=(0,i.Z)(a().mark((function e(){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h().get("".concat("https://m.helloarchive.co.kr","/uls/"));case 3:return t=e.sent,e.next=6,h().get("".concat("https://m.helloarchive.co.kr","/login/bridge"));case 6:return n=e.sent,e.abrupt("return",200===t.status&&200===n.status);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),T=(0,l.useCallback)((function(e){if(e.origin==="".concat("https://m.helloarchive.co.kr")&&"success"===JSON.parse(e.data).result){var t=E.query.callbackurl;if(void 0!==t){var n="".concat(t);"/"===n[0]&&(n=n.replace("/","")),window.location.replace("".concat("https://www.helloarchive.co.kr","/").concat(n))}else E.replace("/")}}),[E.query]),B=function(){var e=y.current;e&&e.contentWindow&&e.contentWindow.postMessage(JSON.stringify({userType:M,encryptedData:k,encryptedToken:S,encryptedCartData:j}),"".concat("https://m.helloarchive.co.kr"))},D=(0,l.useCallback)((0,i.Z)(a().mark((function e(){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J();case 2:if(e.sent){e.next=7;break}return void 0!==(t=E.query.callbackurl)?("/"===(n="".concat(t))[0]&&(n=n.replace("/","")),window.location.replace("".concat("https://www.helloarchive.co.kr","/").concat(n))):E.replace("/"),e.abrupt("return");case 7:B();case 8:case"end":return e.stop()}}),e)}))),[M,k,S]);(0,l.useEffect)((function(){M&&k&&S&&D()}),[M,k,S]);var L=function(){var e=(0,i.Z)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=y.current)&&(t.removeEventListener("load",B),window.removeEventListener("message",T));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=(0,i.Z)(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.location.href.includes("access_token")&&(t=window,n=t.naver.LoginWithNaverId,(r=new n({clientId:"NSR04fPiHZOfhQCwDVaM"})).init(),r.getLoginStatus(function(){var e=(0,i.Z)(a().mark((function e(t){var n,s,i,o,c,u,l,d,f,v,h,y,b,_;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=8;break}return n={email:r.user.getEmail(),nickname:r.user.getNickName(),profile_image:r.user.getProfileImage(),age:r.user.getAge(),gender:r.user.getGender(),id:r.user.getId(),name:r.user.getName(),birthday:r.user.getBirthday(),birthyear:r.user.getBirthyear(),mobile:r.user.getMobile()},e.next=4,(0,g.x4)({login_sts_cd:"NV",mbr_id:n.id});case 4:200===(s=e.sent).status&&(i=s.data,o=i.data,c=i.result,i&&"0000"===c&&(u=E.query.callbackurl,l=window.location.href.split("#")[1],d=l.split("&"),f={},d.map((function(e){var t=e.split("=")[0],n=e.split("=")[1];return f[t]=n,!0})),v={userType:"PS",userId:o.mbr_id,userName:o.mbr_nm,userHpNo:o.hp_no,userEmail:o.email_addr,socialType:"NV",isLogged:!0}
1,h={access_token:o.access_token,refresh_token:o.refresh_token,social_token:f.access_token},y=(0,m.l_)(JSON.stringify(v)),sessionStorage.setItem("ynau",y),b=(0,m.l_)(JSON.stringify(h)),sessionStorage.setItem("ynat",b),_=(0,m.xb)(null===o||void 0===o?void 0:o.cart_count)?"":null===o||void 0===o?void 0:o.cart_count,(0,m.xb)(_)||sessionStorage.setItem("ynacc",(0,m.l_)(_)),"help"===u?E.replace("/mypage/".concat(u)):E.replace("/")),i&&"4001"===c&&U((function(){var e={userType:"NV",userId:n.id,userName:n.name},t=(0,m.l_)(JSON.stringify(e));sessionStorage.setItem("k",t),C(p.n.initModal()),C(p.n.closeModal()),E.push("/member/nice?type=p&sns_type=n")}))),e.next=8;break;case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;C(p.n.setModal({type:"confirm",title:"\uc54c\ub9bc",message:"\uc0ac\uc6a9\uc790\uac00 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",subMessage:"\ud655\uc778\ubc84\ud2bc\uc744 \ub204\ub974\uba74 \ud68c\uc6d0\uac00\uc785 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.",confirmFunction:e,isNeedBackgroundClickBlock:!0})),C(p.n.openModal())},F=function(e){C(e<5?p.n.setModal({type:"password_incorrect",message:e}):p.n.setModal({type:"login_block"})),C(p.n.openModal())},H=function(e){C(p.n.setModal({type:"sign_up_union",isNeedBackgroundClickBlock:!0,confirmFunction:function(){C(p.n.initModal()),C(p.n.closeModal()),E.push(e)}})),C(p.n.openModal())},R=function(){C(p.n.setModal({type:"admin_block",confirmFunction:function(){C(p.n.initModal()),C(p.n.closeModal())}})),C(p.n.openModal())},q=function(){var e=(0,i.Z)(a().mark((function e(r){var s,i,c,u,l,d,f,h,y,b,_,k,w,S,I,j,P,M,J,T,B,D,L,Z,q,V,K,W;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(13!==r.keyCode&&"click"!==r.type&&"Enter"!==r.code){e.next=123;break}if(t.value){e.next=6;break}n({value:"",state:"error",isSave:t.isSave}),document.getElementById("id_input_box"),e.next=123;break;case 6:if(o.value){e.next=11;break}v({value:"",state:"error"}),document.getElementById("password_input_box"),e.next=123;break;case 11:return e.prev=11,e.next=14,(0,m.vC)(o.value);case 14:return s=e.sent,e.next=17,(0,g.x4)({login_sts_cd:"HA",mbr_id:t.value.toUpperCase(),pwd:s});case 17:if(i=e.sent,c=i.data,u=i.status,l=c.result,d=c.field,f=c.reason,200===u){e.next=24;break}alert("\ub85c\uadf8\uc778\uc5d0 \uc2e4\ud328\ud558\uc168\uc2b5\ub2c8\ub2e4. \uad00\ub9ac\uc790\uc5d0\uac8c \ubb38\uc758\ud574\uc8fc\uc138\uc694"),e.next=119;break;case 24:if("4001"!==l){e.next=30;break}U((function(){C(p.n.initModal()),C(p.n.closeModal()),E.push("/member/signup")})),n({value:"",state:"error",isSave:t.isSave}),v({value:"",state:""}),e.next=119;break;case 30:if("4004"!==l){e.next=35;break}v({value:"",state:"error"}),F(d),e.next=119;break;case 35:if("4005"!==l){e.next=39;break}R(),e.next=119;break;case 39:if("4011"!==l){e.next=43;break}C(p.n.setModal({type:"confirm",message:"\ube44\ubc00\ubc88\ud638 \uc624\ub958 \ud69f\uc218\uac00 5\ud68c\ub97c \ub118\uc5c8\uc2b5\ub2c8\ub2e4",subMessage:"\ube44\ubc00\ubc88\ud638 \ucc3e\uae30 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",isNeedBackgroundClickBlock:!0,confirmFunction:function(){E.push("/login/find-password")}})),C(p.n.openModal()),e.next=119;break;case 43:if("0000"===l){e.next=47;break}X=f,C(p.n.setModal({type:"message",message:X})),C(p.n.openModal()),e.next=119;break;case 47:if(t.isSave?(a=t.value,(0,m.d8)("HelloAchiveUserID",a,"525600")):(0,m.nJ)("HelloAchiveUserID"),h=c.data,y={userType:h.mbr_typ_cd,userId:h.mbr_id,userName:h.mbr_nm,userNo:h.mbr_no,userMig:h.mig_div_cd,userHpNo:h.hp_no,userEmail:h.email_addr,isLogged:!1,authorType:h.cp_div_cd,needAfterProcess:{isNeedAgreement:!1,isNeedIdentity:!1},passwordChangeType:h.pwd_chg_type},"SP"!==h.mbr_sts_cd){e.next=54;break}R(),e.next=119;break;case 54:if("DR"!==h.mbr_sts_cd){e.next=62;break}b={access_token:h.access_token,refresh_token:h.refresh_token},_=JSON.stringify(b),k=(0,m.l_)(_),sessionStorage.setItem("ynat",k),E.replace("/login/dormant-guide"),e.next=119;break;case 62:if(w={access_token:h.access_token,refresh_token:h.refresh_token},S=JSON.stringify(w),I=(0,m.l_)(S),sessionStorage.setItem("ynamt",I),"temp"!==h.pwd_chg_type){e.next=69;break}return E.replace("/login/password-change?viewtype=temp"),e.abrupt("return");case 69:if("notify"!==h.pwd_chg_type){e.next=72;break}return E.replace("/login/password-change?viewtype=regular"),e.abrupt("return");case 72:if("NA"!==h.mig_div_cd){e.next=96;break}if("N"===h.stplat_agr_yn&&(y.needAfterProcess.isNeedAgreement=!0),"PS"!==h.mbr_typ_cd||"AF"!==h.myself_auth_div_cd&&"NA"!==h.myself_auth_div_cd||(y.needAfterProcess.isNeedIdentity=!0),!y.needAfterProcess.isNeedAgreement&&!y.needAfterProcess.isNeedIdentity){e.next=82;break}return j=JSON.stringify(y),P=(0,m.l_)(j),sessionStorage.setItem("ynam",P),M=y.needAfterProcess.isNeedAgreement?"/member/nice?type=p":"/member/identity",E.push(M),e.abrupt("return");case 82:sessionStorage.removeItem("ynam"),sessionStorage.removeItem("ynamt"),y.isLogged=!0,A(y.userType),J=(0,m.l_)(JSON.stringify(y)),sessionStorage.setItem("ynau",J),x(J),T=(0,m.l_)(JSON.stringify(w)),sessionStorage.setItem("ynat",T),N(T),B=(0,m.xb)(null===h||void 0===h?void 0:h.cart_count)?"":null===h||void 0===h?void 0:h.cart_count,(0,m.xb)(B)||(D=(0,m.l_)(B),sessionStorage.setItem("ynacc",D),O(D)),e.next=119;break;case 96:if("N"===h.stplat_agr_yn&&(y.needAfterProcess.isNeedAgreement=!0),"PS"===h.mbr_typ_cd&&"AC"!==h.myself_auth_div_cd&&"AE"!==h.myself_auth_div_cd&&(y.needAfterProcess.isNeedIdentity=!0),L=JSON.stringify(y),Z=(0,m.l_)(L),sessionStorage.setItem("ynam",Z),!y.needAfterProcess.isNeedAgreement){e.next=104;break}return H("/login/migration/agrterm"),e.abrupt("return");case 104:if(!y.needAfterProcess.isNeedIdentity){e.next=107;break}return H("/login/migration/idttity"),e.abrupt("return");case 107:sessionStorage.removeItem("ynam"),sessionStorage.removeItem("ynamt"),y.isLogged=!0,A(y.userType),q=(0,m.l_)(JSON.stringify(y)),sessionStorage.setItem("ynau",q),x(q),V=(0,m.l_)(JSON.stringify(w)),sessionStorage.setItem("ynat",V),N(V),K=(0,m.xb)(null===h||void 0===h?void 0:h.cart_count)?"":null===h||void 0===h?void 0:h.cart_count,(0,m.xb)(K)||(W=(0,m.l_)(K),sessionStorage.setItem("ynacc",W),O(W));case 119:e.next=123;break;case 121:e.prev=121,e.t0=e.catch(11);case 123:case"end":return e.stop()}var a,X}),e,null,[[11,121]])})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=(0,i.Z)(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:9!==t.keyCode&&"Tab"!==t.code||"text"===t.target.type&&setTimeout((function(){document.querySelector("input[type='password']").focus()}),100);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),K="".concat("https://www.helloarchive.co.kr","/login");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("iframe",{style:{visibility:"hidden",height:"1px"},title:"mobile-page",ref:y}),(0,r.jsx)("div",{className:"btn-wrap",children:(0,r.jsxs)("a",{href:"".concat("https://join.yna.co.kr","/ko/login?redirectUrl=").concat(encodeURIComponent(K)),className:"btn-etc",children:[(0,r.jsx)("i",{className:"ico-tab-arrow"})," \uc77c\ubc18\ud68c\uc6d0"]})}),(0,r.jsxs)("div",{className:"center-400",children:[(0,r.jsx)("h1",{className:"fs-1",children:"\ubc95\uc778/\uc791\uac00 \ub85c\uadf8\uc778"}),(0,r.jsx)(f.UP,{type:"text",placeholder:"\uc544\uc774\ub514",value:t.value,onChange:function(e){n({value:e.target.value,state:"active",isSave:t.isSave})},onKeyPress:q,onKeyDown:V,onReset:function(){n({value:"",state:"active",isSave:t.isSave})},isError:"error"===t.state,errorMessage:"\uc544\uc774\ub514\ub97c \uc785\ub825\ud558\uc138\uc694"}),(0,r.jsx)(f.UP,{type:"password",placeholder:"\ube44\ubc00\ubc88\ud638",value:o.value,onChange:function(e){e.target.value.length>20||e.target.value.match(/(.*[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3\\.,|?/<>()`_;:'"[\]{}\s\t\r\n\v\f])/g)?v((function(e){return b(b({},e),{},{state:"active"})})):v({value:e.target.value,state:"active"})},onKeyPress:q,onReset:function(){v({value:"",state:"active"})},isError:"error"===o.state,errorMessage:"\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4."}),(0,r.jsxs)("div",{className:"d-flex-between sc-login-bar",children:[(0,r.jsxs)("div",{className:"check-box",children:[(0,r.jsx)("input",{type:"checkbox",id:"check1",checked:t.isSave,onChange:function(){return n((function(e){return b(b({},e),{},{isSave:!e.isSave})}))}}),(0,r.jsx)("label",{htmlFor:"check1"}),(0,r.jsx)("span",{children:"\uc544\uc774\ub514 \uc800\uc7a5"})]}),(0,r.jsxs)("div",{className:"sc-right",children:[(0,r.jsx)("span",{onClick:function(){E.push("/login/find-id")},children:"\uc544\uc774\ub514 \ucc3e\uae30"}),(0,r.jsx)("span",{onClick:function(){E.push("/login/find-password")},children:"\ube44\ubc00\ubc88\ud638 \ucc3e\uae30"})]})]}),(0,r.jsx)("button",{type:"button",className:"btn btn-lg btn-solid w-100",onClick:function(e){q(e)},children:"\ub85c\uadf8\uc778"}),(0,r.jsxs)("div",{className:"d-flex-between snb-join-bar",children:[(0,r.jsx)("p",{className:"cnt-mdtext",children:"\uc544\uc9c1\ud68c\uc6d0\uc774 \uc544\ub2c8\uc2e0\uac00\uc694?"}),(0,r.jsx)(c.default,{href:"/member/signup",children:(0,r.jsx)("button",{type:"button",className:"btn btn-text ",children:"\ud68c\uc6d0\uac00\uc785"})})]}),(0,r.jsx)("p",{className:"cnt-smtext detail-txt",children:"\xb7 \ud68c\uc6d0\uac00\uc785 \uc2dc \ub9cc 19\uc138 \ubbf8\ub9cc\uc778 \uacbd\uc6b0 \ubc95\uc815\ub300\ub9ac\uc778\uc758 \uc0ac\uc804 \ub3d9\uc758\uac00 \ud544\uc694\ud569\ub2c8\ub2e4."})]})]})}},97106:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return n(18913)}])}},function(e){e.O(0,[2561,7351,9774,2888,179],(function(){return t=97106,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.