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]="121e8dd6-6210-46a0-9f5a-1bd73ff94130",e._sentryDebugIdIdentifier="sentry-dbid-121e8dd6-6210-46a0-9f5a-1bd73ff94130")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[806],{9357:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cc_webview/ew/apply",function(){return n(23430)}])},55676:function(e,t,n){"use strict";n.d(t,{H3:function(){return i},zs:function(){return l}});var a=n(43221),r=n(87066);let i=async e=>{let{isSSR:t=!1,rcid:n="",keys:i=""}=e,l=await (0,r.Z)({url:"".concat(t?a.$T:a.x8,"/car/info/summary/").concat(n||i),method:"GET"}).then(e=>({status:e.status,data:e.data})).catch(e=>(console.error("getCarInfo error :: ",e),{status:e.status,data:null})),s={};return Number(l.status)>=200&&400>Number(l.status)&&Number(l.data.code)>=200&&400>Number(l.data.code)&&(s=l.data.data.info),s},l=async e=>{let{isSSR:t=!1,platform:n,deviceKey:i}=e;return await (0,r.Z)({url:"".concat(t?a.$T:a.x8,"/car/recentCar"),method:"GET",params:{platform:n,device_key:i}}).then(e=>({status:e.status,data:e.data})).catch(e=>(console.error("getRecentlyViewedCarList error :: ",e),{status:e.status,data:null}))}},44283:function(e,t,n){"use strict";var a=n(85893);n(67294);var r=n(25675),i=n.n(r),l=n(38639),s=n.n(l),c=n(93967),_=n.n(c);t.Z=e=>{let{wrapClassName:t,...n}=e;return(0,a.jsx)("div",{className:_()(s().img_wrap,t),children:(0,a.jsx)(i(),{className:_()(s().auto_image),alt:n.alt,...n})})}},40312:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var a=n(85893),r=n(67294),i=n(8704);n(54367);var l=n(20404),s=n.n(l),c=n(93967),_=n.n(c);let o=e=>{let[t,n]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"boolean"==typeof e.openBottomSheet&&n(e.openBottomSheet)},[e.openBottomSheet]);let[l,c]=(0,r.useState)((null==e?void 0:e.styleType)?e.styleType:"medium");return(0,r.useEffect)(()=>{c((null==e?void 0:e.styleType)?e.styleType:"medium")},[e.styleType]),(0,a.jsxs)("div",{className:_()(s().input_select_group,t?s().focus:"",s()["style_type_".concat(l)],e.wrapperClassName),ref:t=>{(null==e?void 0:e.refFn)&&e.refFn(t)},children:[(0,a.jsxs)("div",{className:_()(s().inner,"g_select_box_inner"),children:[(0,a.jsx)("label",{htmlFor:e.inputSelectId,children:e.lableText}),(0,a.jsx)("button",{type:"button",id:e.inputSelectId,disabled:e.disabled||!1,onClick:()=>{let t=!0;if(e.beforeSheetOpenFn){let n=e.beforeSheetOpenFn();"boolean"==typeof n&&!1===n&&(t=!1)}n(t)},className:_()(e.inputSelectedText?s().selected:"",e.disabled?s().disabled:""),title:e.placeHolder,children:e.inputSelectedText?e.inputSelectedText:e.placeHolder})]}),(0,a.jsx)(i.R,{open:t,onDismiss:()=>{n(!1),e.setOpenBottomSheet&&e.setOpenBottomSheet(!1)},snapPoints:e=>{let{minHeight:t,maxHeight:n}=e;return[t,.75*n]},children:e.selectData.map((t,r)=>{if(t)return(0,a.jsx)("button",{type:"button",onClick:()=>{e.inputOnKey(r,"change"),n(!1),e.setOpenBottomSheet&&e.setOpenBottomSheet(!1)},className:"choose_data_btn",children:t},r)})})]})}},60962:function(e,t,n){"use strict";var a=n(85893);n(67294);var r=n(25675),i=n.n(r),l=n(93967),s=n.n(l),c=n(43221),_=n(2286),o=n.n(_);t.Z=e=>(0,a.jsx)("div",{className:s()(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,a.jsxs)("div",{className:s()([o().spinner,"spinner_image_wrap"]),children:[(0,a.jsx)(i(),{src:c.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,a.jsx)("div",{className:o().txt_frame,children:(0,a.jsx)("p",{className:o().txt,children:e.textMsg})})]})})},23430:function(e,t,n){"use strict";n.r(t),n.d(t,{Apply:function(){return B},__N_SSP:function(){return I},default:function(){return D}});var a=n(85893),r=n(67294),i=n(41664),l=n.n(i),s=n(9008),c=n.n(s),_=n(11163),o=n(48583),u=n(93967),d=n.n(u),p=n(36492),h=n(14885),m=n(39159),g=n(43221),w=n(32991),x=n(65460),y=n(99118),b=n(87066);let f=async e=>{let t=await (0,b.Z)({url:g.$T+"/ew/request",method:"POST",params:e}).then(e=>({status:e.status,data:e.data}
1)).catch(e=>(console.error("getCarInfo error :: ",e),{status:e.status,data:null}));return!!(Number(t.status)>=200&&400>Number(t.status))&&!!(Number(t.data.code)>=200&&400>Number(t.data.code))};var k=n(55676),v=n(32446),j=n(92272),N=n(44283),T=n(13126),C=n(10577),S=n(37354),P=n(60962),O=n(40312),F=n(56593),R=n.n(F);let A="첫차 ìë°í°";var I=!0;let B=e=>{let{qs:t={},rcid:n,keys:i,...s}=e,u=(0,_.useRouter)(),b=(0,o.Dv)(x.vB),F=(0,o.Dv)(x.m6),I=(0,o.Dv)(x.c8);(0,r.useEffect)(()=>{!0===b&&m.w8(A)},[b]),(0,r.useEffect)(()=>{w.S1()},[]);let[B,D]=(0,r.useState)({userName:"",userPhone:"",userRegion:"",numberPlate:"",carType:null,warrantyRange:null,warrantyPeriod:null,agreementAllChk:!1,privacyChk:!1,privacyThirdChk:!1}),[E,M]=(0,r.useState)({userName:"",userPhone:"",numberPlate:""}),[H,Z]=(0,r.useState)(1),[K]=(0,r.useState)(["êµì°ì°¨","ìì
ì°¨"]),[W,L]=(0,r.useState)(null),{data:q}=(0,p.a)(["residenceArea"],async()=>await y.J(),{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1}),{data:G}=(0,p.a)(["carInfo"],async()=>await k.H3({isSSR:!1,rcid:n||null,keys:i||null}),{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1}),[Q,V]=(0,r.useState)(!1),[Y,z]=(0,r.useState)({cont:null,type:null,confirmBtnText:"íì¸",cancelBtnText:null,closeWindow:!1,refresh:!1,disableBackdropClick:!1,disableEscapeKeyDown:!1,transitionDuration:1});(0,r.useEffect)(()=>{let e=async()=>{L((await v.bG(String(F))).phone)};F&&e()},[F]);let U=(e,t,n)=>{if(""===e){M({...E,[n]:""}),D({...B,[n]:""});return}if("userName"===n&&e.length<2){M({...E,[n]:"ì¬ë°ë¥¸ ì´ë¦ì ì
ë ¥í´ì£¼ì¸ì."});return}if("numberPlate"===n){if(e.length<6){M({...E,[n]:"ì¬ë°ë¥¸ ì°¨ëë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì."});return}var a=h.ct(e);if(null==a[0]&&null==a[1]){M({...E,[n]:"ì¬ë°ë¥¸ ì°¨ëë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì."});return}}D({...B,[n]:e}),M({...E,[n]:""})},X=e=>{let t=e.target.name,n={...B};"agreement_all_chk"===t&&(n.agreementAllChk?(n.agreementAllChk=!1,n.privacyChk=!1,n.privacyThirdChk=!1):(n.agreementAllChk=!0,n.privacyChk=!0,n.privacyThirdChk=!0)),"privacy_chk"===t&&(n.privacyChk?(n.agreementAllChk=!1,n.privacyChk=!1):(n.privacyChk=!0,!0===n.privacyThirdChk&&(n.agreementAllChk=!0))),"privacy_3rd_chk"===t&&(n.privacyThirdChk?(n.agreementAllChk=!1,n.privacyThirdChk=!1):(n.privacyThirdChk=!0,!0===n.privacyChk&&(n.agreementAllChk=!0))),D(n)},$=async()=>{w.P8("ew",{event_action:"click",event_category:"apply"});let e=!0,t=null;
1if(Object.keys(E).forEach(n=>{if(""!==E[n]){switch(e=!1,n){case"userName":t=(0,a.jsxs)(a.Fragment,{children:["ì ì²ìëª
ì ì¬ë°ë¥´ê²",(0,a.jsx)("br",{}),"ì
ë ¥í´ì£¼ì¸ì."]});break;case"userPhone":t=(0,a.jsxs)(a.Fragment,{children:["í´ëì íë²í¸ë¥¼ ì¬ë°ë¥´ê²",(0,a.jsx)("br",{}),"ì
ë ¥í´ì£¼ì¸ì."]});break;case"numberPlate":t=(0,a.jsxs)(a.Fragment,{children:["ì°¨ëë²í¸ë¥¼ ì¬ë°ë¥´ê²",(0,a.jsx)("br",{}),"ì
ë ¥í´ì£¼ì¸ì."]})}return!1}}),e&&""===B.userName&&(t=(0,a.jsxs)(a.Fragment,{children:["ì ì²ìëª
ì ì¬ë°ë¥´ê²",(0,a.jsx)("br",{}),"ì
ë ¥í´ì£¼ì¸ì."]}),e=!1),e&&""===B.userPhone&&(t=(0,a.jsxs)(a.Fragment,{children:["í´ëì íë²í¸ ì
ë ¥ê³¼",(0,a.jsx)("br",{}),"ì¸ì¦ì í´ì£¼ì¸ì."]}),e=!1),e&&""===B.userRegion&&(t="ì´íì§ìì ì
ë ¥í´ì£¼ì¸ì.",e=!1),e&&""===B.numberPlate&&(t=(0,a.jsxs)(a.Fragment,{children:["ì°¨ëë²í¸ë¥¼ ì¬ë°ë¥´ê²",(0,a.jsx)("br",{}),"ì
ë ¥í´ì£¼ì¸ì."]}),e=!1),e&&null===B.carType&&(t="구ë¶ì ì
ë ¥í´ì£¼ì¸ì.",e=!1),e&&!B.warrantyRange&&(t="ë³´ì¦ë²ì를 ì
ë ¥í´ì£¼ì¸ì.",e=!1),e&&!B.warrantyPeriod&&(t="ë³´ì¦ê¸°ê°ì ì
ë ¥í´ì£¼ì¸ì.",e=!1),e&&!1===B.agreementAllChk&&(t=(0,a.jsxs)(a.Fragment,{children:["ê°ì¸ì ë³´ ì·¨ê¸ë°©ì¹¨ ë°",(0,a.jsx)("br",{}),"3ì ì ê³µì ëìí´ì£¼ì¸ì."]}),e=!1),t=(0,a.jsx)(a.Fragment,{children:t}),z({...Y,cont:t}),!e)return V(!0),!1;let n=null;null!==G&&G.number_plate===B.numberPlate&&(n=G.resist_car_id),Z(0);let r={user_no:0!==Number(F)?Number(F):null,device_key:null!==I&&0!==I?Number(I):null,req_user_name:B.userName,req_user_phone:B.userPhone,resist_car_id:n,number_plate:B.numberPlate,nation:Number(B.carType)+1,warranty_type:B.warrantyRange,warranty_month:B.warrantyPeriod,sido_id:Number(B.userRegion)+1},i=await f(r);Z(1),i&&(w.P8("ew",{event_action:"click",event_category:"apply_complete"}),u.push("/cc_webview/ew/chutchaEwComplete"))};return(0,a.jsxs)(j.Z,{webviewTitle:"",appdownloadHeader:!1,appdownBtnLink:"",stickyWrapHeightAuto:!1,isInApp:b,children:[(0,a.jsx)(c(),{children:(0,a.jsx)("title",{children:A})}),(0,a.jsxs)("section",{className:R().apply_wrap,children:[(0,a.jsxs)("form",{children:[(0,a.jsxs)("section",{className:R().form_section_wrap,children:[(0,a.jsx)("h2",{children:"ì ì²ì ì ë³´"}),(0,a.jsx)(T.Z,{placeHolder:"ì) ê¹ì²«ì°¨",inputTextId:"userName",lableText:"ì ì²ìëª
",errorMsg:E.userName,inputMode:"onlyKorean",maxLength:10,inputOnKey:(e,t)=>U(e,t,"userName")}),(0,a.jsx)(C.Z,{placeHolder:"-ìì´ ì«ìë§ ì
ë ¥",inputTextId:"userPhone",lableText:"í´ëì í",errorMsg:E.userPhone,inputMode:"onlyNumber",maxLength:11,inputOnKey:e=>U(e.phone,void 0,"userPhone"),inputValue:W||""}),(0,a.jsx)(O.P,{placeHolder:"ì ííì¸ì",inputSelectId:"userRegion",lableText:"ì´íì§ì",inputSelectedText:""!==B.userRegion?q[B.userRegion]:"",selectData:q,inputOnKey:(e,t)=>U(e,t,"userRegion")})]}),(0,a.jsxs)("section",{className:R().form_section_wrap,children:[(0,a.jsx)("h2",{children:"구매 ì ë³´"}),(0,a.jsx)(T.Z,{placeHolder:"ì) 12ê°3456",inputTextId:"numberPlate",lableText:"ì°¨ëë²í¸",errorMsg:E.numberPlate,maxLength:10,inputMode:"numberKorean",inputOnKey:(e,t)=>U(e,t,"numberPlate"),inputValue:G?G.number_plate:""}),(0,a.jsx)(O.P,{placeHolder:"ì ííì¸ì",inputSelectId:"carType",lableText:"구ë¶",inputSelectedText:""!==B.carType?K[B.carType]:"",selectData:K,inputOnKey:(e,t)=>U(e,t,"carType")}),(0,a.jsx)("div",{className:d()(R().input_checkbox_mixed_group,R().warranty_range_group),children:(0,a.jsxs)("fieldset",{children:[(0,a.jsxs)("legend",{children:["ë³´ì¦ë²ì",(0,a.jsx)(l(),{href:(b?"iurl":"")+g.QO+"/cc_webview/ew/chutchaEwService",target:"_blank",className:R().ew_service_range,rel:"noreferrer",title:"ë³´ì¦ë²ì ìì¸í보기",children:(0,a.jsx)(N.Z,{src:g.nx+"/files/webview/common/icon/icon-ic-exclamation-round-line-black.svg",alt:"ë³´ì¦ë²ì ìì¸í보기",width:100,height:100,quality:100})})]}),(0,a.jsxs)("div",{className:R().inner,children:[(0,a.jsx)("input",{type:"checkbox",id:"warrantyRangeWide",name:"warrantyRange",value:"2",onChange:e=>{U(e.target.value,e.target.checked,"warrantyRange")},checked:"2"===B.warrantyRange}),(0,a.jsx)("label",{htmlFor:"warrantyRangeWide",children:"ìì´ë"}),(0,a.jsx)("input",{type:"checkbox",id:"warrantyRangeSlim",name:"warrantyRange",value:"1",onChange:e=>{U(e.target.value,e.target.checked,"warrantyRange")},checked:"1"===B.warrantyRange}),(0,a.jsx)("label",{htmlFor:"warrantyRangeSlim",children:"ì¬ë¦¼"})]})]})}),(0,a.jsxs)("div",{className:d()(R().input_checkbox_mixed_group,R().warranty_period_group),children:[(0,a.jsxs)("fieldset",{children:[(0,a.jsx)("legend",{children:"ë³´ì¦ê¸°ê°"}),(0,a.jsxs)("div",{className:R().inner,children:[(0,a.jsx)("input",{type:"checkbox",id:"warrantyPeriod12",name:"warrantyPeriod",value:"12",onChange:e=>{U(e.target.value,e.target.checked,"warrantyPeriod")},checked:"12"===B.warrantyPeriod}),(0,a.jsx)("label",{htmlFor:"warrantyPeriod12",children:"12ê°ì"}),(0,a.jsx)("input",{type:"checkbox",id:"warrantyPeriod6",name:"warrantyPeriod",value:"6",onChange:e=>{U(e.target.value,e.target.checked,"warrantyPeriod")},checked:"6"===B.warrantyPeriod}),(0,a.jsx)("label",{htmlFor:"warrantyPeriod6",children:"6ê°ì"})]})]}),(0,a.jsx)("p",{children:"ì ì² ì¡°ê±´ì ì ì ìë´ ììë ë³ê²½íì¤ ì ììµëë¤."})]})]}),(0,a.jsxs)("section",{className:R().agreement_section_wrap,children:[(0,a.jsxs)("div",{className:R().check_area,children:[(0,a.jsx)("input",{type:"checkbox",id:"agreement_all_chk",name:"agreement_all_chk",onChange:e=>{X(e)},checked:!!B.agreementAllChk}),(0,a.jsx)("label",{htmlFor:"agreement_all_chk",children:"ê°ì¸ì ë³´ ì´ì©ì½ê´ ì ì²´ ëì"})]}),(0,a.jsxs)("ul",{className:R().detail_check_area,children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("input",{type:"checkbox",id:"privacy_chk",name:"privacy_chk",onChange:e=>{X(e)},checked:!!B.privacyChk}),(0,a.jsx)("label",{htmlFor:"privacy_chk",children:"ê°ì¸ì ë³´ì²ë¦¬ë°©ì¹¨ ëì"}),(0,a.jsx)(l(),{href:(b?"iurl":"")+g.To+"/webview/contents/privacy_policy",target:b?"":"_blank",rel:"noreferrer",children:"보기"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("input",{type:"checkbox",id:"privacy_3rd_chk",name:"privacy_3rd_chk",onChange:e=>{X(e)},checked:!!B.privacyThirdChk}),(0,a.jsx)("label",{htmlFor:"privacy_3rd_chk",children:"ì 3ì ì ë³´ì ê³µ ëì"}),(0,a.jsx)(l(),{href:(b?"iurl":"")+g.To+"/webview/contents/chutcha_ew_privacy_3rd",target:b?"":"_blank",rel:"noreferrer",children:"보기"})]})]})]}),(0,a.jsxs)("section",{className:R().btn_group,children:[(0,a.jsx)("span",{className:"hat"}),(0,a.jsx)("section",{className:"inner",children:(0,a.jsx)("button",{type:"button",className:"btn",onClick:()=>{$()},children:"ìë´ ì ì²í기"})})]})]}),(0,a.jsx)(S.Z,{trigger:Q,setTrigger:e=>V(e),modalContent:Y.cont,modalData:Y,shouldCloseOnOverlayClick:!1}),(0,a.jsx)(P.Z,{loadingFlag:H})]})]})};var D=B},38639:function(e){e.exports={img_wrap:"auto_height_image_img_wrap__pQRru",auto_image:"auto_height_image_auto_image__9SnG9","skeleton-gradient":"auto_height_image_skeleton-gradient__rP1_5"}},20404:function(e){e.exports={input_select_group:"input_select_box_input_select_group__W6r58",inner:"input_select_box_inner__bRZKd",selected:"input_select_box_selected__gNR8_",disabled:"input_select_box_disabled__OajQZ",focus:"input_select_box_focus__x6LaK",style_type_large:"input_select_box_style_type_large__9YQN8",loan_type:"input_select_box_loan_type__vUIOC",ico_box_drop_arr:"input_select_box_ico_box_drop_arr___YtgY","skeleton-gradient":"input_select_box_skeleton-gradient__sBf8d"}},56593:function(e){e.exports={landing_cont_wrap:"ew_landing_cont_wrap__86rWO",cont_wrap:"ew_cont_wrap__O5Uxg",last_cont:"ew_last_cont__vKycl",apply_link_btn:"ew_apply_link_btn__2F9GB",review_slider:"ew_review_slider__1xBRI",review_swiper_slide:"ew_review_swiper_slide__zdTPJ",review_swiper_pagination:"ew_review_swiper_pagination__B_Ab8",review_swiper_pagination_bullet:"ew_review_swiper_pagination_bullet__f4ox5",swiper_pagination_bullet_active:"ew_swiper_pagination_bullet_active__O5vuH",common_tab_area:"ew_common_tab_area__TvvM5",sticky:"ew_sticky__B_lgr",bottom_float:"ew_bottom_float__ftlj1",on:"ew_on__THyjn",banner:"ew_banner__OlVQY",inner:"ew_inner__iVvWP",msg_text:"ew_msg_text__jkSS_",exclamation:"ew_exclamation__dLzFd",complete_wrap:"ew_complete_wrap__IrMGY",garageListLink:"ew_garageListLink__kDVA1",tab_section_wrap:"ew_tab_section_wrap__hickF",info_tab_list:"ew_info_tab_list__unA7k",landingFaq:"ew_landingFaq__H4a7P",btn_group:"ew_btn_group__zn09d",apply_wrap:"ew_apply_wrap__j6HSA",form_section_wrap:"ew_form_section_wrap__uHuMU",input_checkbox_mixed_group:"ew_input_checkbox_mixed_group__qmqXt",ew_service_range:"ew_ew_service_range__7gimA",warranty_period_group:"ew_warranty_period_group__wp4tR",agreement_section_wrap:"ew_agreement_section_wrap__eIWAv",check_area:"ew_check_area__Wn_pI",detail_check_area:"ew_detail_check_area__1Dl4W","skeleton-gradient":"ew_skeleton-gradient__g1QA5"}},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"}},36492:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var a=n(32161),r=n(52924),i=n(89582);function l(e,t,n){let l=(0,a._v)(e,t,n);return(0,i.r)(l,r.z)}}},function(e){e.O(0,[2428,3253,9089,4559,7223,8065,9223,5745,2991,5121,577,2241,2888,9774,179],function(){return e(e.s=9357)}),_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.