1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1d4d83cb-2d63-46d6-b742-2428aa330e1f",e._sentryDebugIdIdentifier="sentry-dbid-1d4d83cb-2d63-46d6-b742-2428aa330e1f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3152],{48920:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cc_webview/ev_lease/apply",function(){return a(32340)}])},60962:function(e,t,a){"use strict";var r=a(85893);a(67294);var l=a(25675),s=a.n(l),n=a(93967),i=a.n(n),_=a(43221),p=a(2286),o=a.n(p);t.Z=e=>(0,r.jsx)("div",{className:i()(o().loadingSpinner,{[o().on]:0===e.loadingFlag||!0===e.loadingFlag},{[o().with_message]:e.textMsg&&"string"==typeof e.textMsg},e.className),style:e.spinnerWrapStyle,children:(0,r.jsxs)("div",{className:i()([o().spinner,"spinner_image_wrap"]),children:[(0,r.jsx)(s(),{src:_.A9+"/files/webview/common/icon/animation_300_kr30x9nf.gif",alt:"",className:"spinner_image",width:50,height:50,priority:!0,quality:80}),e.textMsg&&"string"==typeof e.textMsg&&(0,r.jsx)("div",{className:o().txt_frame,children:(0,r.jsx)("p",{className:o().txt,children:e.textMsg})})]})})},32340:function(e,t,a){"use strict";a.r(t),a.d(t,{EvLeaseApply:function(){return S},default:function(){return B}});var r=a(85893),l=a(67294),s=a(41664),n=a.n(s),i=a(9008),_=a.n(i),p=a(11163),o=a(48583),c=a(93967),u=a.n(c),d=a(14885),h=a(39159),m=a(43221),v=a(87066);let y=async e=>{var t,a,r,l;let s=new FormData;Object.keys(e).forEach(t=>{void 0!==e[t]&&null!==e[t]&&""!==e[t]&&s.append(t,e[t])});let n=await (0,v.Z)({url:m.$T+"/evlease/apply",method:"POST",data:s}).then(e=>({status:e.status,data:e.data})).catch(e=>{var t;return console.error("setEvLeaseRequest error :: ",e),{status:null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.status,data:null}});return Number(null==n?void 0:n.status)>=200&&400>Number(null==n?void 0:n.status)&&Number(null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.code)>=200&&400>Number(null==n?void 0:null===(a=n.data)||void 0===a?void 0:a.code)&&null!==(l=null===(r=n.data)||void 0===r?void 0:r.data)&&void 0!==l?l:null};var g=a(65460),w=a(92272),x=a(13126),f=a(10577),b=a(37354),k=a(60962),N=a(64981),j=a.n(N);let C="ìì´ì¤ë ë²ì©ë",T=e=>{let t=Number(e.substring(0,2)),a=Number(e.substring(2,4)),r=Number(e.substring(4,6)),l=(Number(String(new Date().getFullYear()).substring(2,4))-t>=0?2e3:1900)+t,s=new Date(l,a-1,r);return s.getFullYear()===l&&s.getMonth()===a-1&&s.getDate()===r},S=()=>{let e=(0,p.useRouter)(),[t,a]=(0,l.useState)(!1),s=(0,o.Dv)(g.vB),i=(0,o.Dv)(g.m6);(0,l.useEffect)(()=>{h.w8(C)},[]);let[c,v]=(0,l.useState)("");(0,l.useEffect)(()=>{v(d.Pp())},[]);let[N,S]=(0,l.useState)("");(0,l.useEffect)(()=>{var t,a;let r=null!==(a=null===(t=e.query)||void 0===t?void 0:t.utm_source)&&void 0!==a?a:"";"string"==typeof r&&S(r)},[e.query]);let[B,E]=(0,l.useState)(!1),[A,I]=(0,l.useState)(null),[M,D]=(0,l.useState)(!1),[P,Z]=(0,l.useState)({userName:"",userBirth:"",userPhone:"",agreementAllChk:!1,privacyChk:!1,privacyThirdChk:!1}),[F,O]=(0,l.useState)({userName:"",userBirth:""}),[V,R]=(0,l.useState)(""),[q,L]=(0,l.useState)(""),[H,K]=(0,l.useState)(""),U=(e,t)=>{if("userName"===e&&t){if(t.length<2||!1===/^[a-zA-Zê°-í£]+$/.test(t)){O({...F,userName:"ì¬ë°ë¥¸ ì´ë¦ì ì
ë ¥í´ì£¼ì¸ì."}),Z({...P,userName:t});return}O({...F,userName:""}),Z({...P,userName:t});return}if("userBirth"===e&&t){/^([0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1,2][0-9]|3[0,1]))$/.test(t)&&T(t)?O({...F,userBirth:""}):O({...F,userBirth:"ìë
ìì¼ì ì¬ë°ë¥´ê² ì
ë ¥í´ì£¼ì¸ì."}),Z({...P,userBirth:t});return}Z({...P,[e]:t}),O({...F,[e]:""})},z=e=>{let t=e.target.name,a={...P};"agreement_all_chk"===t&&(a.agreementAllChk?(a.agreementAllChk=!1,a.privacyChk=!1,a.privacyThirdChk=!1):(a.agreementAllChk=!0,a.privacyChk=!0,a.privacyThirdChk=!0)),"privacy_chk"===t&&(a.privacyChk?(a.agreementAllChk=!1,a.privacyChk=!1):(a.privacyChk=!0,!0===a.privacyThirdChk&&(a.agreementAllChk=!0))),"privacy_3rd_chk"===t&&(
1a.privacyThirdChk?(a.agreementAllChk=!1,a.privacyThirdChk=!1):(a.privacyThirdChk=!0,!0===a.privacyChk&&(a.agreementAllChk=!0))),Z(a)},Y=!!P.userName&&!F.userName&&!!P.userBirth&&!F.userBirth&&!!P.userPhone&&!!V&&P.privacyChk&&P.privacyThirdChk,[G,X]=(0,l.useState)(!1),W=async()=>{if(!0!==t&&!0!==G){if(a(!0),21>d.BM(P.userBirth)){a(!1),D(!0);return}try{if(s&&h.gm("EVLease_submit_complete","fsi7ft",{route:N}),!await y({req_user_name:P.userName,req_user_birth:P.userBirth,req_user_phone:P.userPhone,log_id:q,sms_code:H,user_no:null!=i?i:void 0}))throw Error("setEvLeaseRequest failed");X(!0),a(!1),e.replace("/cc_webview/ev_lease/apply/complete")}catch(e){console.error("Error while submitting apply :: ",e),I((0,r.jsx)(r.Fragment,{children:m.W0})),X(!1),a(!1),E(!0)}}},[$,J]=(0,l.useState)(null),Q=(0,l.useRef)(null);return(0,l.useEffect)(()=>{window.visualViewport&&(Q.current=window.visualViewport.height,J(window.visualViewport.height))},[]),(0,l.useEffect)(()=>{if(!window.visualViewport||"ANDROID"!==c)return;let e=window.visualViewport,t=()=>{let t=Q.current,a=e.height;if(null!==t&&a<t){let e=(a-window.scrollY)/2;window.scrollTo(0,e)}Q.current=a,J(a)};return e.addEventListener("resize",t),()=>{e.removeEventListener("resize",t)}},[c]),(0,r.jsxs)(w.Z,{stickyWrapHeightAuto:!1,isInApp:s,pageBackgroun
1dColor:"white",children:[(0,r.jsxs)(_(),{children:[(0,r.jsx)("meta",{name:"robots",content:"noindex"},"robots"),(0,r.jsx)("meta",{name:"viewport",content:"user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width, viewport-fit=cover"},"viewport"),(0,r.jsx)("title",{children:C})]}),(0,r.jsxs)("section",{className:j().ev_lease_apply_wrap,children:[(0,r.jsx)("div",{className:j().apply_step_wrap,children:(0,r.jsxs)("div",{className:j().apply_step_wrap_inner,children:[(0,r.jsxs)("div",{className:u()(j().content_area,j().padding_bottom_float_btn),children:[(0,r.jsxs)("h2",{className:j().step_title,children:["ê³ ê°ëì ì 보를",(0,r.jsx)("br",{}),"ì
ë ¥í´ì£¼ì¸ì"]}),(0,r.jsx)("div",{className:j().input_area,children:(0,r.jsxs)("ul",{className:j().input_wrap,children:[(0,r.jsx)("li",{className:u()(j().input_row,j().input_row_padding_top),children:(0,r.jsx)(x.Z,{placeHolder:"ì) ê¹ì²«ì°¨",inputTextId:"userName",lableText:"ì ì²ìëª
",unitMode:"input",errorMsg:F.userName,maxLength:10,inputOnKey:e=>U("userName",e),inputValue:P.userName,styleType:"large"})}),(0,r.jsx)("li",{className:u()(j().input_row,j().input_row_padding_top),children:(0,r.jsx)(x.Z,{placeHolder:"ì) 891231",inputTextId:"userBirth",lableText:"ìë
ìì¼",unitMode:"input",errorMsg:F.userBirth,inputMode:"birth",maxLength:6,inputOnKey:e=>U("userBirth",e),inputValue:P.userBirth,styleType:"large"})}),(0,r.jsx)("li",{className:u()(j().input_row,j().input_row_padding_top),children:(0,r.jsx)(f.Z,{styleType:"large",placeHolder:"-ìì´ ì«ìë§ ì
ë ¥",inputTextId:"userPhone",lableText:"í´ëí° ë²í¸",errorMsg:F.userPhone,inputMode:"onlyNumber",maxLength:11,inputOnKey:e=>{U("userPhone",e.phone),L(e.logId),K(e.smsCode)},setUserPhoneAuth:e=>{R(e),e||(L(""),K(""))},inputValue:""})}),(0,r.jsx)("li",{className:u()(j().input_row,j().input_row_agree),children:(0,r.jsxs)("div",{className:j().agreement_section_wrap,children:[(0,r.jsxs)("div",{className:j().check_area,children:[(0,r.jsx)("input",{type:"checkbox",id:"agreement_all_chk",name:"agreement_all_chk",onChange:e=>{z(e)},checked:P.agreementAllChk}),(0,r.jsx)("label",{htmlFor:"agreement_all_chk",children:"ê°ì¸ì ë³´ ì´ì©ì½ê´ ì ì²´ ëì"})]}),(0,r.jsxs)("ul",{className:j().detail_check_area,children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("input",{type:"checkbox",id:"privacy_chk",name:"privacy_chk",onChange:e=>{z(e)},checked:P.privacyChk}),(0,r.jsx)("label",{htmlFor:"privacy_chk",children:"ê°ì¸ì ë³´ì²ë¦¬ë°©ì¹¨ ëì"}),(0,r.jsx)(n(),{href:(s?"iurl":"")+m.IR+"/policy/chutcha/privacy",target:s?"":"_blank",rel:"noreferrer",children:"보기"})]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("input",{type:"checkbox",id:"privacy_3rd_chk",name:"privacy_3rd_chk",onChange:e=>{z(e)},checked:P.privacyThirdChk}),(0,r.jsx)("label",{htmlFor:"privacy_3rd_chk",children:"ì 3ì ì ë³´ì ê³µ ëì"}),(0,r.jsx)(n(),{href:(s?"iurl":"")+m.IR+"/policy/chutcha/etc/evLease/privacy3rd",target:s?"":"_blank",rel:"noreferrer",children:"보기"})]})]})]})})]})})]}),(0,r.jsxs)("section",{className:u()("bottom_float",j().bottom_float,j().bottom_float_apply_step),children:[(0,r.jsx)("span",{className:"hat"}),(0,r.jsx)("section",{className:u()("inner",j().inner),children:(0,r.jsx)("button",{type:"button",className:u()("btn",j().btn_apply_step,{[j().disabled]:!Y||!0===t||!0===G}),onClick:()=>{t||!1!==G||W()},disabled:!Y,children:"ì ì²ìë£"})})]})]})}),(0,r.jsx)(k.Z,{loadingFlag:t}),(0,r.jsx)(b.Z,{trigger:B,setTrigger:e=>E(e),modalContent:A,shouldCloseOnOverlayClick:!1}),(0,r.jsx)(b.Z,{trigger:M,setTrigger:e=>D(e),modalContent:(0,r.jsxs)(r.Fragment,{children:["ë§ 21ì¸ ë¯¸ë§ ê³ ê°ëì",(0,r.jsx)("br",{}),"ì´ì©í ì ììµëë¤.",(0,r.jsx)("br",{}),"ë¤ìì ë¤ì ì´ì©í´ì£¼ì¸ì."]}),shouldCloseOnOverlayClick:!1,confirmText:"ë¤ìì í기",confirmBtnCallback:()=>{s?h.R0():window&&window.open("","_self").close()}})]})]})};var B=S},64981:function(e){e.exports={agreement_section_wrap:"ev_lease_apply_agreement_section_wrap__oSHGR",check_area:"ev_lease_apply_check_area__plDr5",detail_check_area:"ev_lease_apply_detail_check_area__N96lF",ev_lease_apply_wrap:"ev_lease_apply_ev_lease_apply_wrap__inkjk",apply_step_wrap:"ev_lease_apply_apply_step_wrap__Kjj7f",apply_step_wrap_inner:"ev_lease_apply_apply_step_wrap_inner__JZdTs",content_area:"ev_lease_apply_content_area__CCCgy",padding_bottom_float_bt
1n:"ev_lease_apply_padding_bottom_float_btn__pRFyM",step_title:"ev_lease_apply_step_title__aNBsa",caution_box:"ev_lease_apply_caution_box__AmUOB",txt_tit:"ev_lease_apply_txt_tit__jVPtD",txt:"ev_lease_apply_txt__IsCix",liststyle:"ev_lease_apply_liststyle__pVrmP",last:"ev_lease_apply_last__PkeKn",middot:"ev_lease_apply_middot__K4ZyZ",input_area:"ev_lease_apply_input_area__pv74m",input_row_padding_top:"ev_lease_apply_input_row_padding_top__rfqTq",input_row_agree:"ev_lease_apply_input_row_agree__Ai03w",apply_complete_wrap:"ev_lease_apply_apply_complete_wrap__ZP6MD",title_area:"ev_lease_apply_title_area__BUv0B",ico_complete:"ev_lease_apply_ico_complete__rsRCz",step_desc:"ev_lease_apply_step_desc__qRHsc",input_row_margin_top:"ev_lease_apply_input_row_margin_top__Gyk8E",bottom_float:"ev_lease_apply_bottom_float__aNzrs",bottom_float_apply_step:"ev_lease_apply_bottom_float_apply_step__Fx7SV",inner:"ev_lease_apply_inner__3X07s",btn_apply_step:"ev_lease_apply_btn_apply_step__HGZVV",disabled:"ev_lease_apply_disabled__fdso_","skeleton-gradient":"ev_lease_apply_skeleton-gradient__Y_kIU"}},2286:function(e){e.exports={loadingSpinner:"loadingSpinner_loadingSpinner__GUZDA",on:"loadingSpinner_on__UFIXO",with_message:"loadingSpinner_with_message__K05CC",spinner:"loadingSpinner_spinner__sYy5B",txt_frame:"loadingSpinner_txt_frame__IlP7I",txt:"loadingSpinner_txt__gAcTM"}}},function(e){e.O(0,[2428,3253,8065,9223,5745,5121,577,2888,9774,179],function(){return e(e.s=48920)}),_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.