PageSourceSearch

https://web.chutcha.net/_next/static/chunks/pages/event/booreungmance/form-101c96eccc4cc622.js

js chutcha.net collected 2026-09-24 13:23:45 UTC 17,948 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5af2100a-4dfd-4776-af42-071755a98e91",e._sentryDebugIdIdentifier="sentry-dbid-5af2100a-4dfd-4776-af42-071755a98e91")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1669],{54242:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/booreungmance/form",function(){return t(60985)}])},37354:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var a=t(85893),_=t(67294),o=t(83253),c=t.n(o),r=t(14885),i=t(39159),s=t(74841),l=t.n(s),m=t(93967),u=t.n(m);function g(e){var n;let[t,o]=(0,_.useState)(!1),r=n=>{o(!1),e.setTrigger(!1),void 0!==e.modalData&&e.modalData.closeWindow&&i.R0(),void 0!==e.modalData&&e.modalData.refresh},s=()=>{e.confirmBtnCallback&&e.confirmBtnCallback()};return(0,_.useEffect)(()=>{o(e.trigger)},[e.trigger]),(0,a.jsxs)(c(),{isOpen:t,className:u()(l().modalWrap,l()["style_".concat(null!==(n=e.styleType)&&void 0!==n?n:"wv")],{[e.modalWrapClass]:!!e.modalWrapClass}),overlayClassName:u()(l().dimmer,e.modalOverlayClass?e.modalOverlayClass:""),onRequestClose:()=>{r(!1)},shouldCloseOnOverlayClick:e.shouldCloseOnOverlayClick,children:[(0,a.jsxs)("section",{className:l().description,children:[!!e.modalTitle&&(0,a.jsx)("div",{className:l().modal_title,children:"object"==typeof e.modalTitle?(0,a.jsx)("div",{className:u()(l().txt,l().title),children:e.modalTitle}):(0,a.jsx)("div",{className:u()(l().txt,l().title),dangerouslySetInnerHTML:{__html:e.modalTitle}})}),(0,a.jsxs)("div",{className:l().modal_msg,children:[e.modalContent&&(0,a.jsx)("div",{className:u()(l().txt,l().cont),children:e.modalContent}),e.modalMsg&&(0,a.jsx)("p",{className:u()(l().txt,l().cont),dangerouslySetInnerHTML:{__html:e.modalMsg}})]})]}),(0,a.jsxs)("section",{className:l().actions,children:[(0,a.jsx)("button",{onClick:()=>{r(!1),"confirm"===e.modalType&&e.cancelCallback&&e.cancelCallback(),"confirm"!==e.modalType&&s()},className:"btn "+("confirm"===e.modalType?u()(l().close_btn):u()(l().close_btn,l().only_close_btn)),children:"confirm"===e.modalType?e.cancelText?e.cancelText:"취소":e.confirmText?e.confirmText:"확인"}),"confirm"===e.modalType&&(0,a.jsx)("button",{onClick:()=>{r(!1),s()},className:"btn "+l().confirm_btn,children:e.confirmText?e.confirmText:"확인"})]})]})}!1===r.bW()?c().setAppElement("#site_wrap"):c().setAppElement("body")},2742:function(e,n,t){"use strict";t.d(n,{ET:function(){return s},Fm:function(){return r},KD:function(){return i},Oq:function(){return c},gF:function(){return l},h0:function(){return m},le:function(){return o}});var a=t(43221),_=t(14885);let o="부릉맨스 애정테스트",c="".concat(a.QO,"/event/booreungmance"),r={description:"첫차 부릉맨스 애정테스트 | 나는 내 차를 얼마나 좋아할까?",shareImg:"".concat(a.nx,"/files/webview/chutcha/event/booreungmance/img_share_facebook_default.png"),shareUrl:"".concat(a.QO,"/event/booreungmance")},i=(0,_.WZ)({targetUrl:c,targetTitle:o,adj_t:"6s1chjw",adj_campaign:"download",adj_adgroup:"result_page",adj_creative:"appdown",adj_fallback:"https://www.chutcha.net/?utm_source=booreungmance&utm_medium=organic&utm_campaign=sellmycar_event"}),s=(0,_.WZ)({targetUrl:"".concat(c,"/form"),targetTitle:o,adj_t:"6s1chjw",adj_campaign:"download",adj_adgroup:"intro_page",adj_creative:"teststart",adj_fallback:"https://www.chutcha.net/?utm_source=booreungmance&utm_medium=organic&utm_campaign=sellmycar_event"}),l=(0,_.WZ)({onlyTargetType:!0,targetType:"carmain",targetTitle:o,adj_t:"5qb38ui",adj_campaign:"chut_cpm_web",adj_adgroup:"2023type",adj_creative:"thumb_booreungmance_C"}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{title:n,description:r.description,image:"".concat(a.nx,"/files/webview/chutcha/event/booreungmance/img_share_facebook_").concat(e,".png"),imageKakao:"".concat(a.nx,"/files/webview/chutcha/event/booreungmance/img_share_kakao_").concat(e,".png"),url:"".concat(r.shareUrl,"/").concat(e,"?inflowPath=share"),adjustUrl:t}}},60985:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return k}});var a=t(85893),_=t(67294),o=t(9008),c=t.n(o),r=t(11163),i=t(93967),s=t.n(i),l=t(87066),m=t(43221),u=t(14885),g=t(39159),d=t(92272),b=t(37354),p=t(2742),h=t(73888),f=t.n(h),x=t(34155);let v=async e=>{let{device_key:n=0,user_no:t=0,owner_name:a="",number_plate:_=""}=e;
1n&&a&&_||console.warn("\n        postSetStartEventApi :: required parameter \n\n        - device_key: ".concat(n," \n\n        - owner_name: ").concat(a," \n\n        - number_plate: ").concat(_," \n\n        "));let o=!1,c=new FormData;c.append("device_key","".concat(n)),c.append("user_no","".concat(t)),c.append("owner_name",a),c.append("number_plate",_);try{let e=await (0,l.Z)({url:"".concat(m.x8,"/romanceEvent/setStartEvent"),method:"POST",headers:{"Content-Type":"multipart/form-data"},data:c});o=("200"===e.data.code||"300"===e.data.code)&&e.data}catch(e){console.error("\n            postSetStartEventApi :: api request failed \n\n            - error \n ".concat(e,"\n        ")),o=!1}return o};var k=!0;n.default=e=>{let{}=e,n=(0,r.useRouter)(),[t,o]=(0,_.useState)(0),[i]=(0,_.useState)(u.Pp()),[l,h]=(0,_.useState)(null),[k,w]=(0,_.useState)(0),[y,N]=(0,_.useState)(0),[j,T]=(0,_.useState)(0),C=(0,_.useRef)(null),S=(0,_.useRef)(null),[E,D]=(0,_.useState)(!1),[O,W]=(0,_.useState)(""),[A,U]=(0,_.useState)(!1);(0,_.useEffect)(()=>{!0===l&&new Date().getTime()>new Date("2023-04-14 23:59:59").getTime()&&U(!0)},[l]),(0,_.useEffect)(()=>{g.w8(p.le);let e=window.navigator.userAgent.includes("mrpic_chutcha");h(e),T(1),(null==C?void 0:C.current)&&C.current.focus(),e&&(g.o8(),setTimeout(()=>{window.$chutcha_app_data&&(w(window.$chutcha_app_data.dvc_key&&window.$chutcha_app_data.dvc_key),N(window.$chutcha_app_data.user_no&&window.$chutcha_app_data.user_no))},200))},[]),(0,_.useEffect)(()=>{if(n.isReady){let e=n.query;"{}"!==JSON.stringify(e)&&o(e)}},[n]),(0,_.useEffect)(()=>{"development"===x.env.REACT_APP_BUILD_MODE&&setTimeout(()=>{void 0!==t.user_no&&""!==t.user_no&&N(t.user_no),void 0!==t.dvc_key&&""!==t.dvc_key&&w(t.dvc_key),(t.user_no||t.dvc_key)&&h(!0)},300)},[t]);let[I,P]=(0,_.useState)(!1),[Z,F]=(0,_.useState)({name:"",carNumber:""}),K=(0,_.useCallback)((e,n)=>{if(""===e){F(t=>({...t,[n]:e}));return}F(t=>{let a="name"===n?e.replace(/[0-9]/gi,"").replace(/\s/gi,""):e.replace(/\s/gi,"");return{...t,[n]:a}})},[F]);(0,_.useEffect)(()=>{let e=!0;if((null==Z?void 0:Z.name)?(Z.name.length<2&&(e=!1),/([^가-힣A-Za-z0-9\{\}\[\]\/?.,;:|\)*~`!^\-_+<>@\#$%&\\\=\(\'\"\x20])/i.test(Z.name)&&(e=!1)):e=!1,null==Z?void 0:Z.carNumber){Z.carNumber.length<6&&(e=!1);let n=u.ct(Z.carNumber);null==n[0]&&null==n[1]&&(e=!1)}else e=!1;P(e)},[Z]);let[Q,q]=(0,_.useState)([{label:"개인정보 취급방침 동의",value:!0,checked:!1,id:"ck_policy",link:"".concat(m.To,"/webview/contents/chutcha_booreungmance_privacy")},{label:"내 차와 관련된 상세 정보 알림 받기",value:!0,checked:!1,id:"ck_marketing",link:"".concat(m.To,"/webview/contents/chutcha_booreungmance_marketing_policy")}]),[M,Y]=(0,_.useState)(!1),R=(0,_.useCallback)(async()=>{let e;await Y(n=>(e=n,!n)),q(n=>n.map(n=>({...n,checked:!e})))},[q,Y]),z=e=>{window.location.href="".concat(!1===l?"":"iurl").concat(e)},L=(0,_.useCallback)(e=>{q(n=>n.map(n=>n.id===e?{...n,checked:!n.checked}:{...n}))},[q]);(0,_.useEffect)(()=>{Q.filter(e=>!0===e.checked).length===Q.length?Y(!0):Y(!1)},[Q]);let[B,X]=(0,_.useState)(!1);(0,_.useEffect)(()=>{if(!0===I){let e={category:"테스트_정보입력",action:"엔터"};!0===l&&(e={...e,dimension6:k})}X(!!(!0===I&&!0===M))},[I,M,k,l]);let H=(0,_.useCallback)(async()=>{if(T(0),!1===l){T(1),W("부릉맨스 애정테스트는 첫차 앱에서 진행하실 수 있습니다."),D(!0);return}if(!k){T(1),W(m.W0),D(!0);return}if(!1===B){T(1),W("입력하신 내용을 다시 확인해주세요."),D(!0);return}let e=await v({device_key:k&&Number(k),user_no:y&&Number(y),owner_name:Z.name,number_plate:Z.carNumber});if(e){if(T(1),"200"!==e.code){W(e.msg),D(!0);return}}else{T(1),W(m.W0),D(!0);return}let n={category:"테스트_시작하기",action:"클릭"};!0===l&&(n={...n,dimension6:k}),window.location.href="".concat(l?"iurl":"","https://smore.im/quiz/fvR5lC1CCS")},[l,k,y,B,Z]);return(0,a.jsxs)(d.Z,{webviewTitle:l?"":p.le,appdownloadHeader:!0,appdownBtnLink:p.KD,stickyWrapHeightAuto:!0,isInApp:l,children:[(0,a.jsxs)(c(),{children:[(0,a.jsx)("meta",{property:"robots",content:"noindex"},"robots"),(0,a.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,a.jsx)("meta",{name:"description",content:p.Fm.description},"description"),(0,a.jsx)("meta",{property:"og:title",content:p.le},"ogTitle"),(0,a.jsx)("meta",{property:"og:description",content:p.Fm.description},"ogDescription"),(0,a.jsx)("meta",{property:"og:image",content:p.Fm.shareImg},"ogImage"),(0,a.jsx)("link",{rel:"image_src",href:p.Fm.shareImg},"imageSrc"),(0,a.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,a.jsx)("meta",{property:"og:url",content:p.Fm.shareUrl},"ogUrl"),(0,a.jsx)("title",{children:p.le})]}),(0,a.jsx)("div",{className:s()(f().booreung_wrap,f().form_page,"style_reset"),children:(0,a.jsxs)("div",{className:s()(f().cont_wrap,{[f().padding_top_sticky_header]:!1===l}),children:[(0,a.jsx)("section",{className:s()(f().cont_section,f().input_section),children:(0,a.jsxs)("div",{className:f().section_inner,children:[(0,a.jsxs)("ul",{className:f().input_group,children:[(0,a.jsxs)("li",{className:f().input_item,children:[(0,a.jsxs)("div",{className:s()(f().input_frame,f().input_frame_name),children:[(0,a.jsx)("input",{type:"text",value:Z.name,ref:C,placeholder:"김첫차",maxLength:100,className:f().input,onChange:e=>K(e.target.value,"name"),onKeyUp:e=>K(e.currentTarget.value,"name"),onKeyDown:e=>K(e.currentTarget.value,"name"),onFocus:e=>K(e.target.value,"name"),onBlur:e=>K(e.target.value,"name")}),(0,a.jsx)("div",{className:f().fake_input_block,contentEditable:!0,suppressContentEditableWarning:!0,children:Z.name?Z.name:"김첫차"})]}),(0,a.jsx)("div",{className:f().txt_frame,children:(0,a.jsx)("p",{className:f().txt,children:"와(과)"})})]}),(0,a.jsxs)("li",{className:f().input_item,children:[(0,a.jsxs)("div",{className:s()(f().input_frame,f().input_frame_carnumber),children:[(0,a.jsx)("input",{type:"text",value:Z.carNumber,ref:S,placeholder:"233나5678",maxLength:10,className:f().input,onChange:e=>K(e.target.value,"carNumber"),onKeyUp:e=>K(e.currentTarget.value,"carNumber"),onKeyDown:e=>K(e.currentTarget.value,"carNumber"),onFocus:e=>K(e.target.value,"carNumber"),onBlur:e=>K(e.target.value,"carNumber")}),(0,a.jsx)("div",{className:f().fake_input_block,contentEditable:!0,suppressContentEditableWarning:!0,children:Z.carNumber?Z.carNumber:"233나5678"})]}),(0,a.jsx)("div",{className:f().txt_frame,children:(0,a.jsx)("p",{className:f().txt,children:"의"})})]}),(0,a.jsx)("li",{className:f().input_item,children:(0,a.jsx)("div",{className:f().txt_frame,children:(0,a.jsx)("p",{className:f().txt,children:"애정도를 알려줘!"})})})]}),(0,a.jsxs)("div",{className:f().caution_txt_frame,children:[(0,a.jsx)("i",{className:s()(f().ico,f().ico_caution)}),(0,a.jsx)("span",{className:f().txt,children:"정확한 차량번호와 소유자명을 입력해주세요"})]})]})}),(0,a.jsx)("section",{className:s()(f().cont_section,f().button_group_section),children:(0,a.jsxs)("div",{className:f().section_inner,children:[(0,a.jsxs)("ul",{className:f().ck_group,children:[(0,a.jsx)("li",{className:s()(f().ck_item,f().all_ck),children:(0,a.jsxs)("button",{type:"button",className:s()(f().ckbox,f().ckbox_all,{[f().act]:!!M}),onClick:()=>R(),children:[(0,a.jsx)("i",{className:s()(f().ico,f().ico_ck,f().ico_ck_all)}),(0,a.jsx)("span",{className:f().txt,children:"개인정보 이용약관 전체 동의"})]})}),!!Q&&Q.length>0&&Q.map(e=>(0,a.jsxs)("li",{className:s()(f().ck_item),children:[(0,a.jsx)("input",{type:"checkbox",value:"".concat(e.value),id:e.id,checked:e.checked,onChange:()=>L(e.id)}),(0,a.jsxs)("label",{htmlFor:e.id,className:s()(f().ckbox),children:[(0,a.jsx)("i",{className:s()(f().ico,f().ico_ck)}),(0,a.jsx)("span",{className:f().txt,children:e.label})]}),!!(null==e?void 0:e.link)&&(0,a.jsx)("button",{type:"button",className:f().btn_view_policy,onClick:()=>z(e.link),children:"보기"})]},"checkItem".concat(e.id)))]}),(0,a.jsx)("div",{className:f().btn_frame,children:(0,a.jsx)("button",{type:"button",className:s()(f().btn_test_start,{[f().on]:!!B}),onClick:()=>{H()}
1,children:1!==j?"잠시만 기다려주세요":"테스트 시작하기"})})]})})]})}),(0,a.jsx)(b.Z,{trigger:E,setTrigger:e=>D(e),shouldCloseOnOverlayClick:!0,modalMsg:O})]})}},74841:function(e){e.exports={dimmer:"basic_msg_modal_dimmer__PrQYf",modalWrap:"basic_msg_modal_modalWrap__vogfK",description:"basic_msg_modal_description__YlSoq",modal_title:"basic_msg_modal_modal_title__uC4g6",txt:"basic_msg_modal_txt__rTwWn",title:"basic_msg_modal_title__FIW9C",modal_msg:"basic_msg_modal_modal_msg__EdbKp",cont:"basic_msg_modal_cont__Xo4Qs",actions:"basic_msg_modal_actions__zgYbY",close_btn:"basic_msg_modal_close_btn__4D9kS",only_close_btn:"basic_msg_modal_only_close_btn__r_OnM",confirm_btn:"basic_msg_modal_confirm_btn__cN1Ps",style_pc:"basic_msg_modal_style_pc__LUFCs","skeleton-gradient":"basic_msg_modal_skeleton-gradient__Ubcia"}},73888:function(e){e.exports={booreung_wrap:"booreungmance_booreung_wrap__UIiv1",img:"booreungmance_img__FZuwS",ico:"booreungmance_ico__ZrDTJ",img_txt:"booreungmance_img_txt__09RTI",bottom_float:"booreungmance_bottom_float__QWiDN",booreung_bottom_float:"booreungmance_booreung_bottom_float__VpZtp",inner:"booreungmance_inner___OjGb",btn:"booreungmance_btn__yeknn",cont_wrap:"booreungmance_cont_wrap__u5sza",cont_section:"booreungmance_cont_section__siSR_",section_inner:"booreungmance_section_inner__oqpUF",intro_page:"booreungmance_intro_page__fFfCp",title_section:"booreungmance_title_section__wYovK",act:"booreungmance_act__gDEiD",is_share_page:"booreungmance_is_share_page__mCTGi",txt_box:"booreungmance_txt_box__c9hcO",txt_frame:"booreungmance_txt_frame__C6Doe",tit:"booreungmance_tit__lNcA6",img_txt_tit:"booreungmance_img_txt_tit__hyQ_6",img_txt_subtit:"booreungmance_img_txt_subtit__gKMww",gift_section:"booreungmance_gift_section__yPa3M",img_frame:"booreungmance_img_frame__Ou8E8",heart_bg_frame:"booreungmance_heart_bg_frame__PD3Az",section_frame:"booreungmance_section_frame__zJAQM",caution_section:"booreungmance_caution_section__YMcdA",form_page:"booreungmance_form_page__9Pl4d",input_section:"booreungmance_input_section__QNnZ9",input_group:"booreungmance_input_group__pUDN_",input_item:"booreungmance_input_item__PnSqm",input_frame:"booreungmance_input_frame__Gt7OT",input_frame_name:"booreungmance_input_frame_name__3Ev4b",input_frame_carnumber:"booreungmance_input_frame_carnumber__MNmAL",input:"booreungmance_input__0sphN",fake_input_block:"booreungmance_fake_input_block__A0wVs",txt:"booreungmance_txt__fAWol",caution_txt_frame:"booreungmance_caution_txt_frame__HzOoh",ico_caution:"booreungmance_ico_caution__eWrru",button_group_section:"booreungmance_button_group_section__kltDu",ck_group:"booreungmance_ck_group__5A3Yi",ck_item:"booreungmance_ck_item__lDhTQ",all_ck:"booreungmance_all_ck__SghoA",ckbox:"booreungmance_ckbox__emAhw",ico_ck:"booreungmance_ico_ck__dO5mE",btn_view_policy:"booreungmance_btn_view_policy__6VJkc",ckbox_all:"booreungmance_ckbox_all__msBV9",btn_frame:"booreungmance_btn_frame__Kygtn",btn_test_start:"booreungmance_btn_test_start__qlQom",on:"booreungmance_on__YZ_2j",result_page:"booreungmance_result_page__YxKeW",visual_section:"booreungmance_visual_section__nNta8",img_visual_result:"booreungmance_img_visual_result__PZEpK",detail_section:"booreungmance_detail_section__ZQ_uU",title_area:"booreungmance_title_area__qmEAS",detail_txt_area:"booreungmance_detail_txt_area__w1jlg",item:"booreungmance_item__vXQtK",item_cnt:"booreungmance_item_cnt__WKQQ0",txt_img_frame:"booreungmance_txt_img_frame__66grA",img_txt_cnt:"booreungmance_img_txt_cnt__r_CtQ",img_txt_cnt_txt:"booreungmance_img_txt_cnt_txt__HXT6u",con_group:"booreungmance_con_group__N4v1j",range_group:"booreungmance_range_group__tXOPb",range_frame:"booreungmance_range_frame__Na0qy",ico_frame:"booreungmance_ico_frame__BtOhh",ico_heart:"booreungmance_ico_heart__PEDzb",range_item:"booreungmance_range_item__fCHrZ",dash_frame:"booreungmance_dash_frame__WzJOo",dash:"booreungmance_dash__yE2JM",ranger:"booreungmance_ranger__cA_YX",ico_imogi:"booreungmance_ico_imogi__43YB0",range_frame_right:"booreungmance_range_frame_right___Sdwx",item_current:"booreungmance_item_current__ioT7e",item_forward:"booreungmance_item_forward__4he8O",con:"booreungmance_con__b_TX_",list_style:"booreungmance_list_style__umGlD",btn_group_section:"booreungmance_btn_group_section__LGPzi",share_btn_area:"booreungmance_share_btn_area__aIily",tit_frame:"booreungmance_tit_frame__kR3eY",share_btn_group:"booreungmance_share_btn_group__9_N3W",btn_share:"booreungmance_btn_share__Nogxn",img_share_btn:"booreungmance_img_share_btn__mt_0N",btn_share_kakao:"booreungmance_btn_share_kakao__1gZpw",btn_share_link:"booreungmance_btn_share_link__LUpu1",wide_btn_group:"booreungmance_wide_btn_group__62ucN",btn_wide:"booreungmance_btn_wide__sQUPZ",ico_replay:"booreungmance_ico_replay__OiXOV",btn_replay:"booreungmance_btn_replay__JxUMq",btn_gochutcha:"booreungmance_btn_gochutcha__Gst3u",padding_top_sticky_header:"booreungmance_padding_top_sticky_header__8STH2"}}},function(e){e.O(0,[2428,3253,8065,9223,5745,3357,2888,9774,179],function(){return e(e.s=54242)}),_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.