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]="b157c9be-4c54-430f-ad12-347d4e6f1013",e._sentryDebugIdIdentifier="sentry-dbid-b157c9be-4c54-430f-ad12-347d4e6f1013")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8475],{9297:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cc_webview/lovestory",function(){return l(92240)}])},65381:function(e,t,l){"use strict";l.d(t,{A0:function(){return f},F5:function(){return p},In:function(){return v},LK:function(){return h}});var r=l(85893),a=l(67294),i=l(25675),s=l.n(i),n=l(41664),c=l.n(n),o=l(93967),d=l.n(o),_=l(85518),u=l(43221),m=l(14885),y=l(47720),g=l.n(y);let p={lovestory:u.QO+"/bmc/search/theme?brandGroup=1&modelTree=%7B%7D&priceRange=0%2C0&mileage=0%2C0&year=&saleType=&accident=&fuel=&transmission=®ion=&color=&option=&cpo=&theme=38&sort=1&currPage=&carType=",community:u.QO+"/bmc/search/theme?brandGroup=1&modelTree=%7B%7D&priceRange=0%2C0&mileage=0%2C0&year=&saleType=&accident=&fuel=&transmission=®i
1on=&color=&option=&cpo=&theme=38&sort=1&currPage=&carType="},f={imgSrc:"".concat(u.nx,"/files/webview/common/pc_banner/20250114/img_pc_side_banner_app.png"),imgAlt:u.n2+" ì´ì©ìê° ì íí ì¤ê³ ì°¨ íìì±, 첫차 ì± ë¤ì´ë°ê³ ë í¸í ë³´ì¸ì",bannerId:"wvSideBanner_appStore"},v={imgSrc:"".concat(u.nx,"/files/webview/common/pc_banner/20251013/[email protected]"),imgAlt:"첫차 í¹ê°ì°¬ì¤ ì¤í! ì¤ë í¹ê°ì°¨ë ë°ë¡ê°ê¸°",bannerId:"wvSideBanner_weekly",linkUrl:""},h=e=>{let{imgSrc:t,imgAlt:l,linkUrl:i,bannerId:s,bannerAlign:n="left",GA4Fn:c=()=>{},...o}=e,[d,u]=(0,a.useState)(!1),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,[t,l]=(0,a.useState)(0),r=(0,a.useCallback)(()=>{l(window.innerWidth)},[]);return(0,a.useEffect)(()=>{window&&l(window.innerWidth)},[]),(0,a.useEffect)(()=>{window&&document&&(window.addEventListener("resize",(0,m.P2)(r,e)),window.addEventListener("resize",(0,m.Ds)(r,e)))},[e,r]),t}(500);return(0,a.useEffect)(()=>{_.nI&&y>=1024?u(!0):u(!1)},[y]),(0,r.jsx)(r.Fragment,{children:d&&("right"===n?(0,r.jsx)(A,{imgSrc:t,imgAlt:l,bannerId:s,GA4Fn:c}):(0,r.jsx)(b,{imgSrc:t,imgAlt:l,bannerId:s,linkUrl:i,GA4Fn:c}))})},b=e=>{let{imgSrc:t,imgAlt:l,linkUrl:i,bannerId:n,GA4Fn:o=()=>{},..._}=e,[u,m]=(0,a.useState)(),y=(0,a.useRef)(null),[p,f]=(0,a.useState)(!1),[v]=(0,a.useState)(80),[h,b]=(0,a.useState)(0);(0,a.useEffect)(()=>(window.addEventListener("scroll",A,{passive:!0}),()=>{window.removeEventListener("scroll",A)}),[u,h]);let A=()=>{let e=window.scrollY;p&&h>0&&e<h&&(f(!1),b(0))};return(0,a.useEffect)(()=>{(null==y?void 0:y.current)&&m(y.current.getBoundingClientRect())},[y]),(0,r.jsx)("div",{className:d()([g().side_banner_wrap,{[g().bottom_sticky]:!!p},g().left_side]),style:{bottom:p?v:"auto"},children:!!t&&(0,r.jsx)(c(),{href:i,target:"_blank",className:g().banner_frame,onClick:()=>{o&&o("wing_ad_cdbanner")},children:(0,r.jsx)("div",{className:g().img_frame,children:(0,r.jsx)(s(),{src:t,alt:null!=l?l:"ê´ê³ ë°°ë ì´ë¯¸ì§",ref:y,priority:!0,quality:90,width:173,height:286})})})})},A=e=>{let{imgSrc:t,imgAlt:l,bannerId:i,GA4Fn:n=()=>{},...o}=e,[_,u]=(0,a.useState)(),m=(0,a.useRef)(null),[y,p]=(0,a.useState)(!1),[f]=(0,a.useState)(80),[v,h]=(0,a.useState)(0);(0,a.useEffect)(()=>(window.addEventListener("scroll",b,{passive:!0}),()=>{window.removeEventListener("scroll",b)}),[_,v]);let b=()=>{let e=window.scrollY;y&&v>0&&e<v&&(p(!1),h(0))};return(0,a.useEffect)(()=>{(null==m?void 0:m.current)&&u(m.current.getBoundingClientRect())},[m]),(0,r.jsx)("div",{className:d()([g().side_banner_wrap,{[g().bottom_sticky]:!!y},g().right_side]),style:{bottom:y?f:"auto"},children:!!t&&(0,r.jsx)("div",{className:g().banner_frame,children:(0,r.jsxs)("div",{className:g().img_frame,children:[(0,r.jsx)(s(),{src:t,alt:null!=l?l:"ê´ê³ ë°°ë ì´ë¯¸ì§",priority:!0,ref:m,quality:90,width:156,height:375}),(0,r.jsx)(c(),{href:"https://itunes.apple.com/kr/app/%EC%A4%91%EA%B3%A0%EC%B0%A8%EB%8A%94-%EC%B2%AB%EC%B0%A8-%EC%A4%91%EA%B3%A0%EC%B0%A8%EA%B5%AC%EC%9E%85-%EC%A4%91%EA%B3%A0%EC%B0%A8%EC%8B%9C%EC%84%B8-%EB%94%9C%EB%9F%AC%EC%A0%95%EB%B3%B4%EA%B9%8C%EC%A7%80/id982096152?mt=8",target:"_blank",className:d()([g().btn_img,g().first]),onClick:()=>{n&&n("ios_download")},children:(0,r.jsx)("span",{className:g().blind_txt,children:"ì±ì¤í ì´ìì iOS 첫차 ì± ë¤ì´ë¡ë"})}),(0,r.jsx)(c(),{href:"https://play.google.com/store/apps/details?id=com.mrpic.chutcha&hl=ko",target:"_blank",className:d()([g().btn_img,g().second]),onClick:()=>{n&&n("android_download")},children:(0,r.jsx)("span",{className:g().blind_txt,children:"íë ì´ì¤í ì´ìì ìëë¡ì´ë 첫차 ì± ë¤ì´ë¡ë"})})]})})})}},51855:function(e,t,l){"use strict";l.d(t,{S:function(){return a}});var r=l(67294);let a=e=>{let{target:t,observerCallback:l,root:a=null,rootMargin:i="0px",threshold:s=0}=e;(0,r.useEffect)(()=>{let e;return t&&t.current&&(e=new IntersectionObserver(l,{root:a,rootMargin:i,threshold:s})).observe(t.current),()=>e&&e.disconnect()},[t,i,s])}},92240:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return U},default:function(){return q}});var r=l(85893),a=l(9008),i=l.n(a),s=l(67294),n=l(11163),c=l(59403),o=l(93967),d=l.n(o),_=l(87066),u=l(48583),m=l(43221),y=l(39159),g=l(51855),p=l(34305),f=l(32991),v=l(2261),h=l(99304);l(30889),l(46169);var b=l(65460),A=l(92272),w=l(8704);l(54367);var x=l(58675),S=l.n(x),N=e=>{let{filterData:t,sheetClass:l,inputOnKey:a}
1=e,[i,n]=(0,s.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:()=>{"0"!==t.selectedKey?a("0","change"):n(!0)},className:"0"!==t.selectedKey?S().selected:"",children:t.selectedText}),(0,r.jsx)(w.R,{open:i,onDismiss:()=>n(!1),snapPoints:e=>{let{minHeight:t,maxHeight:l}=e;return[t,.75*l]},children:Object.keys(t.list).map((e,l)=>(0,r.jsx)("button",{type:"button",className:"choose_data_btn",onClick:()=>{a(l,"change"),n(!1)},children:t.list[l].name},l))})]})},j=l(41664),k=l.n(j),I=l(72679),E=l(67844),P=l.n(E),T=l(14885),C=l(77856),D=l.n(C),K=e=>{let{articleVal:t,isInApp:l}=e,[a,i]=P()("loveStoryListScroll",0);return(0,r.jsx)(k(),{legacyBehavior:!0,href:"".concat(l?"iurl":"").concat(m.QO,"/cc_webview/lovestory/").concat(t.hugi_id).concat(l?"?flow=list":""),children:(0,r.jsx)("a",{onClick:()=>{i(window.scrollY)},target:"_blank",rel:"noreffrer",className:D().listArticleLink,children:(0,r.jsxs)("article",{className:D().listArticleWrap,children:[(0,r.jsxs)("header",{className:D().listArticleAuthor,children:[(0,r.jsx)("span",{className:D().listProfileImage,style:{backgroundImage:"url("+m.nx+t.profile_img+")"},children:(0,r.jsx)(I.LazyLoadImage,{src:m.nx+t.profile_img,alt:t.user_name+" íë¡í ì´ë¯¸ì§"})}),(0,r.jsxs)("p",{className:D().listArticleUser,children:[(0,r.jsx)("span",{className:D().listArticleUserName,children:t.user_name}),(0,r.jsx)("span",{className:D().listArticleDate,children:t.view_date})]}),(0,r.jsxs)("p",{className:D().listArticleMarks,children:[(0,r.jsx)("span",{className:D().listArticleMarksStar,children:T.g0(t.marks).map((e,t)=>(0,r.jsx)("span",{children:(0,r.jsx)(I.LazyLoadImage,{src:m.nx+"/files/webview/common/icon/icon-ic-star-"+e+".svg",alt:"ë³ì "})},t))}),(0,r.jsx)("span",{className:D().listArticleMarsScore,children:t.marks})]})]}),(0,r.jsxs)("div",{className:D().listArticleContentWrap,children:[(0,r.jsxs)("p",{className:D().listArticleTitle,children:[(0,r.jsx)("span",{className:D().listArticleFlag,children:(0,r.jsx)(I.LazyLoadImage,{src:m.nx+"/files/webview/common/icon/review_type_flag_"+("1"===t.flag?"buy":"sell")+".svg",alt:t.flag_str,className:D().listArticleFlagImg})}),(0,r.jsx)("span",{className:d()({[D().listArticleCarName]:!0,[D().flag_2]:"2"===t.flag&&"0"!==t.final_smc_price}),children:t.car_name}),(0,r.jsx)("span",{className:D().listArticleSmcPrice,children:"2"===t.flag&&"0"!==t.final_smc_price?"\xb7 ëì°°ê° "+T.x6(t.final_smc_price)+"ë§ì":""})]}),"1"===t.use_ccloan&&(0,r.jsxs)("ul",{className:D().listArticleLoanTagWrap,children:[(0,r.jsx)("li",{className:D().loan_use_tag,children:"ì²«ì°¨ë¡ ì´ì©"}),t.ccloan_merit.map((e,t)=>(0,r.jsx)("li",{children:T.bh(e)},t))]}),t.img_array.length>0&&(0,r.jsx)("div",{className:d()({[D().listArticleContentImgWrap]:!0,[D().img01]:t.img_array.length>0,[D().img02]:t.img_array.length>1,[D().img03]:t.img_array.length>2}),children:t.img_array.map((e,l)=>!(l>2)&&(0,r.jsx)("div",{className:D().listArticleContentImg,style:{backgroundImage:"url("+m.nx+e+")"},children:(0,r.jsx)(I.LazyLoadImage,{src:m.nx+e,alt:t.dealer_name+" "+t.dealer_flag_str+"ì "+t.car_name+" ì¤ê³ ì°¨ í기 ì´ë¯¸ì§"})},l))}),(0,r.jsx)("p",{className:D().listArticleParagraph,children:t.paragraph}),(0,r.jsx)("button",{type:"button",className:D().listArticleDetailBtn,children:"ë보기"})]}),t.dealer_reply&&(0,r.jsxs)("div",{className:D().listArticleReplyWrap,children:[(0,r.jsxs)("p",{className:D().listAritcleDealerInfo,children:[(0,r.jsx)("span",{className:D().listArticleDealerName,children:t.dealer_name+" "+t.dealer_flag_str}),(0,r.jsx)("span",{className:D().listArticleReplyDate,children:t.reply_date})]}),(0,r.jsx)("p",{className:D().listArticleDealerReplyParagraph,children:t.dealer_reply})]})]})})})},B=l(65381),L=l(26637),R=l.n(L);let M=async e=>{let t=await (0,_.Z)({url:"".concat("ssr"===e?m.$T:m.x8,"/common/getBrandList"),method:"GET"}).then(e=>({status:e.status,data:e.data})).catch(e=>({status:e.status,data:null})),l=[];if(l["0"]={brand_id:"0",name:"ë¸ëë ì ì²´"},200===t.status&&"200"===t.data.code){let e=t.data.data;e.map((t,r)=>{("íë"===e[r].brand_name||"ìì©"===e[r].brand_name||"르ë
¸ì½ë¦¬ì"===e[r].brand_name)&&(e[r].brand_name=e[r].brand_name+"ìëì°¨"),e[r].name=e[r].brand_name,l.push(e[r])})}return l},W=async(e,t)=>{let l=await (0,_.Z)({url:"".concat("ssr"===t?m.$T:m.x8,"/common/getModelList"),method:"GET",params:{brand_id:e}}).then(e=>({status:e.status,data:e.data}
1)).catch(e=>({status:e.status,data:null})),r=[];if(r["0"]={model_id:"0",name:"ëª¨ë¸ ì ì²´"},200===l.status&&"200"===l.data.code){let e=l.data.data;e.map((t,l)=>{e[l].name=e[l].model_name,r.push(e[l])})}return r},O=async(e,t)=>{let l=await (0,_.Z)({url:"".concat("ssr"===t?m.$T:m.x8,"/common/getSubModelList"),method:"GET",params:{model_id:e}}).then(e=>({status:e.status,data:e.data})).catch(e=>({status:e.status,data:null})),r=[];if(r["0"]={sub_model_id:"0",name:"ì¸ë¶ëª¨ë¸ ì ì²´"},200===l.status&&"200"===l.data.code){let e=l.data.data;e.map((t,l)=>{e[l].name=e[l].sub_model_name,r.push(e[l])})}return r},F=async(e,t,l,r,a,i,s,n)=>{n=n||"",t=t||1,l=l||0,r=r||0,a=a||0,i=i||0,s=s||null,e=e||0;let c=await (0,_.Z)({url:"".concat("ssr"===n?m.$T:m.x8,"/lovestory/getList"),method:"GET",params:{timestamp:e,page:t,flag:l,brand_id:r,model_id:a,sub_model_id:i,hash_key:s}}).then(e=>({status:e.status,data:e.data})).catch(e=>({status:e.status,data:null})),o={};return 200===c.status&&"200"===c.data.code&&(o=c.data.data),o};var U=!0,q=e=>{var t,l,a,o,_,w,x,j,k,I,E,P;let{host:T,filterBrandData:C,filterModelData:L,filterSubModelData:U,loveStoryData:q,qs:z,resolvedUrl:G,hash_key:V}
1=e,J=(0,n.useRouter)(),Y=(0,u.Dv)(b.vB),[Z,Q]=(0,s.useState)(!1);(0,s.useEffect)(()=>{f.S1(),Q(!0)},[]),(0,s.useEffect)(()=>{!0===Z&&f.P8("chutcha_lovestory",{event_action:"view",event_category:"list_page_view"})},[Z]),(0,s.useEffect)(()=>{!0===Y&&(y.w8("ë¬ë¸ ì¤í 리"),y.ro({type:"3",url:"chutcha://goto?type=webview&title=".concat(encodeURIComponent("í´ë¦° í기 ì´ìì ì±
"),"&url=").concat(encodeURIComponent(m.IR+"/policy/etc/cleanReview")),iconUrl:m.nx+"/files/webview/common/icon/ic_hd_info.png",text:"ì´ìì ì±
",textColor:"#757579"}),y.Ak())},[Y]);let X=(e,t,l)=>{let r=J.query,a=J.pathname;null!==t?r[e]=t:null!==e&&delete r[e],J.push({pathname:a,query:"init"===l?{}:r})},H=(e,t,l)=>{let r={};return"init"===l&&X(null,null,"init"),"type"===e&&(r={selectedText:"í기 ì ì²´",selectedKey:"0",list:{0:{type_id:"0",name:"í기 ì ì²´"},1:{type_id:"1",name:"구매 í기"},2:{type_id:"2",name:"í매 í기"},3:{type_id:"3",name:"ì²«ì°¨ë¡ í기"}}},"init"!==l&&void 0!==J.query.rType&&""!==J.query.rType&&Object.keys(r.list).forEach((e,t)=>{void 0!==r.list[e]&&J.query.rType===e&&(r.selectedText=r.list[e].name,r.selectedKey=e)})),"brand"===e&&(r={selectedText:"ë¸ëë ì ì²´",selectedKey:"0",list:t||C},"init"!==l&&void 0!==J.query.brand&&""!==J.query.brand&&Object.keys(r.list).forEach((e,t)=>{void 0!==r.list[e]&&J.query.brand===r.list[e].brand_id&&(r.selectedText=r.list[e].name,r.selectedKey=e)})),"model"===e&&(r={selectedText:"ëª¨ë¸ ì ì²´",selectedKey:"0",list:t||L},"init"!==l&&void 0!==J.query.model&&""!==J.query.model&&Object.keys(r.list).forEach((e,t)=>{void 0!==r.list[e]&&J.query.model===r.list[e].model_id&&(r.selectedText=r.list[e].name,r.selectedKey=e)})),"subModel"===e&&(r={selectedText:"ì¸ë¶ëª¨ë¸ ì ì²´",selectedKey:"0",list:t||U},"init"!==l&&void 0!==J.query.sub_model&&""!==J.query.sub_model&&Object.keys(r.list).forEach((e,t)=>{void 0!==r.list[e]&&J.query.sub_model===r.list[e].sub_model_id&&(r.selectedText=r.list[e].name,r.selectedKey=e)})),r},[$,ee]=(0,s.useState)(0),et=async()=>{er(H("type",null,"init")),ei(H("brand",await M("0"),"init")),en(H("model",await W("0"),"init")),eo(H("subModel",await O("0"),"init")),f.P8("chutcha_lovestory",{event_action:"click",event_category:"filter_reset"})},[el,er]=(0,s.useState)(H("type")),[ea,ei]=(0,s.useState)(H("brand",C)),[es,en]=(0,s.useState)(H("model",L)),[ec,eo]=(0,s.useState)(H("subModel",U)),[ed,e_]=(0,s.useState)(!1),[eu,em]=(0,s.useState)(null),ey=async(e,t,l)=>{let r="",a="";switch(e){case"type":a="0"!==t?el.list[t].name:"",r=el.list[t].name,er({...el,selectedText:r,selectedKey:String(t)}),X("rType","0"===String(t)?null:String(t));break;case"brand":a="0"!==t?ea.list[t].name:"",r=ea.list[t].name,ei({...ea,selectedText:r,selectedKey:String(t)}),X("brand","0"===String(t=ea.list[t].brand_id)?null:String(t)),en(H("model",await W(String(t)))),X("model",null),eo(H("subModel",await O(String("0")))),X("sub_model",null);break;case"model":a="0"!==t?es.list[t].name:"",r=es.list[t].name,en({...es,selectedText:r,selectedKey:String(t)}),X("model","0"===String(t=es.list[t].model_id)?null:String(t)),eo(H("subModel",await O(String(t)))),X("sub_model",null);break;case"subModel":a="0"!==t?ec.list[t].name:"",r=ec.list[t].name,eo({...ec,selectedText:r,selectedKey:String(t)}),X("sub_model","0"===String(t=ec.list[t].sub_model_id)?null:String(t))}a&&f.P8("chutcha_lovestory",{event_action:"click",event_category:"list_filter",event_value:a})};(0,s.useEffect)(()=>{let e;e=!1,"0"!==el.selectedKey&&(e=!0),"0"!==ea.selectedKey&&(e=!0),"0"!==es.selectedKey&&(e=!0),"0"!==ec.selectedKey&&(e=!0),e_(e),0!==$?ex("0"):ee(1);let t={type:el.selectedText,brand_uid:Number(ea.list[ea.selectedKey].brand_id),model_uid:Number(es.list[es.selectedKey].model_id),sub_model_uid:Number(ec.list[ec.selectedKey].sub_model_id)};"0"===ea.selectedKey&&("0"!==es.selectedKey||"0"!==ec.selectedKey)||"0"===es.selectedKey&&"0"!==ec.selectedKey||y.gm("lovestory_view","p0bnp0",t);let l=new URLSearchParams(JSON.parse(JSON.stringify(J.query))).toString();ef(T+"/cc_webview/lovestory"+(""!==l?"?"+l:""));let r=H("type",null),a="0"!==r.selectedKey?"ì¤ê³ ì°¨ "+("2"===r.selectedKey?"ë´ì°¨í기 í기":r.selectedText):"ì¤ê³ ì°¨ ê±°ëí기",i=H("brand",C),s=H("model",L),n=H("subModel",U),c="".concat("0"!==i.selectedKey?i.selectedText+" ":"").concat("0"!==s.selectedKey&&"0"===n.selectedKey?s.selectedText+" ":"").concat("0"!==n.selectedKey?n.selectedText+" ":"").concat(a," - ì¤ê³ ì°¨ë 첫차");eh(""!==l?c.trim():"ì¤ê³ ì°¨ ê±°ëí기 - ì¤ê³ ì°¨ë 첫차");let o="첫차ì ".concat("0"!==i.selectedKey?i.selectedText+" ":"").concat("0"!==s.selectedKey&&"0"===n.selectedKey?s.selectedText+" ":"").concat("0"!==n.selectedKey?n.selectedText+" ":"").concat(a,"를 ì¬ê¸°ìì ì§ì íì¸í´ë³´ì¸ì.");eA(""!==l?o.trim():"첫차ì ì¤ê³ ì°¨ ì¤ê±°ë í기를 ì¬ê¸°ìì ì§ì íì¸í´ë³´ì¸ì.")},[el.selectedKey,ea.selectedKey,es.selectedKey,ec.selectedKey]);let eg=new URLSearchParams(JSON.parse(JSON.stringify(J.query))).toString(),[ep,ef]=(0,s.use
1State)(T+"/cc_webview/lovestory"+(""!==eg?"?"+eg:"")),[ev,eh]=(0,s.useState)("".concat("0"!==H("brand",C).selectedKey?H("brand",C).selectedText+" ":""," ").concat("0"!==H("model",L).selectedKey&&"0"===H("subModel",U).selectedKey?H("model",L).selectedText+" ":""," ").concat("0"!==H("subModel",U).selectedKey?H("subModel",U).selectedText+" ":""," ").concat("0"!==H("type",null).selectedKey?"ì¤ê³ ì°¨ "+H("type",null).selectedText:"ì¤ê³ ì°¨ ê±°ëí기"," - ì¤ê³ ì°¨ë 첫차").trim()),[eb,eA]=(0,s.useState)("첫차ì ".concat("0"!==H("brand",C).selectedKey?H("brand",C).selectedText+" ":"").concat("0"!==H("model",L).selectedKey&&"0"===H("subModel",U).selectedKey?H("model",L).selectedText+" ":"").concat("0"!==H("subModel",U).selectedKey?H("subModel",U).selectedText+" ":"").concat("0"!==H("type",null).selectedKey?"ì¤ê³ ì°¨ "+H("type",null).selectedText:"ì¤ê³ ì°¨ ê±°ëí기","를 ì¬ê¸°ìì ì§ì íì¸í´ë³´ì¸ì.").trim());(0,s.useEffect)(()=>{null!==eu&&eu.update()},[el,ea,es,ec,ed]);let[ew,ex]=(0,s.useState)(String(q.timestamp)),eS=async e=>{let t=el.list[el.selectedKey].type_id,l=ea.list[ea.selectedKey].brand_id,r=es.list[es.selectedKey].model_id,a=ec.list[ec.selectedKey].sub_model_id,i=e.pageParam;i="0"===ew?1:Number(i)+1;let s=await F(ew,String(i),t,l,r,a,V,null);return"0"===ew&&(ex(String(s.timestamp)),window.scrollTo(0,0)),s},eN=(0,s.useRef)(null),{data:ej,error:ek,fetchNextPage:eI,refetch:eE,status:eP}=(0,c.N)({queryKey:["lsList"],queryFn:eS,initialData:()=>({pages:[q],pageParams:["0"]}),getNextPageParam:(e,t)=>{let l=e.page,r=!(Object.keys(e.list).length<10)&&l;if(r)return r},refetchOnWindowFocus:!1});return g.S({target:eN,observerCallback:(e,t)=>{e[0].isIntersecting&&eI()}}),(0,s.useEffect)(()=>{"0"===ew&&async function(){ej.pages=[await eS("1")],eE()}()},[ew]),(0,r.jsxs)(A.Z,{webviewTitle:!1===Y?"첫차 ì¤ê³ ì°¨ ê±°ë í기":"",appdownloadHeader:!0,isInApp:Y,pageBackgroun
1dColor:"white",headerChildAddClass:["sticky_layout"],children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:ev}),(0,r.jsx)("link",{rel:"canonical",href:ep},"canonical"),(0,r.jsx)("meta",{name:"title",content:ev},"title"),(0,r.jsx)("meta",{name:"description",content:eb},"description"),(0,r.jsx)("meta",{property:"og:title",content:ev},"ogTitle"),(0,r.jsx)("meta",{property:"og:url",content:ep},"ogUrl"),(0,r.jsx)("meta",{property:"og:site_name",content:"첫차"},"ogSiteName"),(0,r.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,r.jsx)("meta",{property:"og:description",content:eb},"ogDescription")]}),(0,r.jsxs)("div",{className:R().webviewContWrap,children:[(0,r.jsx)(p.Z,{stickyTriggerTop:Y?0:".sticky_layout",stickyZindex:100,settingFlag:null!==Y,priorityMaxWidth:"460px",children:(0,r.jsxs)("div",{className:d()({[S().filterWrap]:!0,[S().selected]:ed}),children:[(0,r.jsxs)(v.tq,{slidesPerView:"auto",freeMode:!0,modules:[h.Rv],className:S().filterSwiper,onSwiper:em,observer:!0,children:[(0,r.jsx)(v.o5,{className:S().filterSlide,children:(0,r.jsx)(N,{filterData:el,inputOnKey:(e,t)=>{ey("type",e,t)}})}),(0,r.jsx)(v.o5,{className:S().filterSlide,children:(0,r.jsx)(N,{filterData:ea,inputOnKey:(e,t)=>{ey("brand",e,t)}})}),(0,r.jsx)(v.o5,{className:S().filterSlide,children:(0,r.jsx)(N,{filterData:es,inputOnKey:(e,t)=>{ey("model",e,t)}})}),(0,r.jsx)(v.o5,{className:S().filterSlide,children:(0,r.jsx)(N,{filterData:ec,inputOnKey:(e,t)=>{ey("subModel",e,t)}})})]}),(0,r.jsx)("span",{className:S().filterInitBtnWrap+" "+(ed?S().on:""),children:(0,r.jsx)("button",{type:"button",className:S().filterInitBtn,onClick:()=>et(),children:"ì´ê¸°í"})})]})}),(0,r.jsxs)("section",{className:D().listContentWrap,children:["success"===eP&&0===Object.keys(ej.pages[0].list).length&&(0,r.jsx)("p",{className:D().emptyList,children:"ê²ì ê²°ê³¼ê° ìì´ì"}),"success"===eP&&0!==Object.keys(ej.pages[0].list).length&&ej.pages.map((e,t)=>(0,r.jsx)("section",{className:D().listPageWrap,children:e.list.map((e,t)=>(0,r.jsx)(K,{articleVal:e,isInApp:Y},t))},t)),"loading"===eP&&(0,r.jsx)("p",{children:"ë¶ë¬ì¤ë ì¤"}),(0,r.jsx)("span",{ref:eN,className:D().nextPageTrigger}),(0,r.jsx)(B.LK,{bannerAlign:"left",imgSrc:null!==(x=null===(t=B.In)||void 0===t?void 0:t.imgSrc)&&void 0!==x?x:"",imgAlt:null!==(j=null===(l=B.In)||void 0===l?void 0:l.imgAlt)&&void 0!==j?j:"",linkUrl:B.F5.lovestory,bannerId:null!==(k=null===(a=B.In)||void 0===a?void 0:a.bannerId)&&void 0!==k?k:"",GA4Fn:e=>{Z&&f.P8("chutcha_lovestory",{event_action:"click",event_category:e})}}),(0,r.jsx)(B.LK,{bannerAlign:"right",imgSrc:null!==(I=null===(o=B.A0)||void 0===o?void 0:o.imgSrc)&&void 0!==I?I:"",imgAlt:null!==(E=null===(_=B.A0)||void 0===_?void 0:_.imgAlt)&&void 0!==E?E:"",bannerId:null!==(P=null===(w=B.A0)||void 0===w?void 0:w.bannerId)&&void 0!==P?P:"",GA4Fn:e=>{Z&&f.P8("chutcha_lovestory",{event_action:"click",event_category:e})}})]})]})]})}},47720:function(e){e.exports={detail_cont_middle:"ad_banner_detail_cont_middle__gxV7z",img_frame:"ad_banner_img_frame__Dhmw4",side_banner_wrap:"ad_banner_side_banner_wrap___lFlB",banner_frame:"ad_banner_banner_frame__uHxfk",btn_img:"ad_banner_btn_img__210Qu",left_side:"ad_banner_left_side__fx6aQ",right_side:"ad_banner_right_side__cOg86",blind_txt:"ad_banner_blind_txt__cnYA_",first:"ad_banner_first__IUjdo",second:"ad_banner_second__Iaho4",bottom_sticky:"ad_banner_bottom_sticky__I1OmU",detail_right_side:"ad_banner_detail_right_side___CY9u","skeleton-gradient":"ad_banner_skeleton-gradient__1INDt"}},58675:function(e){e.exports={filterWrap:"webviewFilter_filterWrap__f4I0f",filterSlide:"webviewFilter_filterSlide__GAvtA",selected:"webviewFilter_selected__mzr03",filterInitBtnWrap:"webviewFilter_filterInitBtnWrap__pRnTC",on:"webviewFilter_on__PGFtT",filterInitBtn:"webviewFilter_filterInitBtn__no58E","skeleton-gradient":"webviewFilter_skeleton-gradient__zZGPs"}},77856:function(e){e.exports={listContentWrap:"lovestory_listContentWrap__EN8DJ",listPageWrap:"lovestory_listPageWrap__WmMIp",listArticleWrap:"lovestory_listArticleWrap__NaKCj",listArticleAuthor:"lovestory_listArticleAuthor___0LNF",listProfileImage:"lovestory_listProfileImage__SD5Lt",listArticleUser:"lovestory_listArticleUser__k0hxD",listArticleUserName:"lovestory_listArticleUserName__CmjJl",listArticleDate:"lovestory_listArticleDate__TYLEP",listArticleMarks:"lovestory_listArticleMarks__2USPv",listArticleMarksStar:"lovestory_listArticleMarksStar__E7iy_",listArticleMarsScore:"lovestory_listArticleMarsScore__uuh1R",listArticleContentWrap:"lovestory_listArticleContentWrap__IV7LL",listArticleTitle:"lovestory_listArticleTitle__mjqSB",listArticleFlag:"lovestory_listArticleFlag__AY2LT",listArticleCarName:"lovestory_listArticleCarName__e_kBA",flag_2:"lovestory_flag_2__7VNFU",listArticleSmcPrice:"lovestory_listArticleSmcPrice__J0z58",listArticleLoanTagWrap:"lovestory_listArticleLoanTagWrap___LzIp",loan_use_tag:"lovestory_loan_use_tag__TAx_k",listArticleContentImgWrap:"lovestory_listArticleContentImgWrap__tJ72a",listArticleContentImg:"lovestory_listArticleContentImg__ZdeA2",img02:"lovestory_img02__SnKDT",img03:"lovestory_img03__vfgkI",listArticleParagraph:"lovestory_listArticleParagraph__EKHOs",listArticleDetailBtn:"lovestory_listArticleDetailBtn__cYC9o",listArticleReplyWrap:"lovestory_listArticleReplyWrap__hunYn",listAritcleDealerInfo:"lovestory_listAritcleDealerInfo__Vc8BY",listArticleDealerName:"lovestory_listArticleDealerName__nbL_z",listArticleReplyDate:"lovestory_listArticleReplyDate__lIUvQ",listArticleDealerReplyParagraph:"lovestory_listArticleDealerReplyParagraph__DbDh1",listArticleLink:"lovestory_listArticleLink__Pws6u",emptyList:"lovestory_emptyList__0Wh2B",nextPageTrigger:"lovestory_nextPageTrigger__maKkJ",detailArticleWrap:"lovestory_detailArticleWrap__BUUru",detailArticleAuthor:"lovestory_detailArticleAuthor__W0LgB",detailProfileImage:"lovestory_detailProfileImage__ZoDzQ",detailArticleUser:"lovestory_detailArticleUser__VixUe",detailArticleUserName:"lovestory_detailArticleUserName__EwlR2",detailArticleDate:"lovestory_detailArticleDate__qa_bC",detailArticleMarks:"lovestory_detailArticleMarks__B6Fu3",detailArticleMarksStar:"lovestory_detailArticleMarksStar__di7u9",detailArticleMarsScore:"lovestory_detailArticleMarsScore__BNtGK",detailArticleContentWrap:"lovestory_detailArticleContentWrap__7esiA",detailArticleTitle:"lovestory_detailArticleTitle__RLuXo",detailArticleFlag:"lovestory_detailArticleFlag__QNROb",detailArticleCarName:"lovestory_detailArticleCarName__AqwYu",detailArticleSmcPrice:"lovestory_detailArticleSmcPrice__amgLN",detailArticleParagraph:"lovestory_detailArticleParagraph___DvSx",detailArticleContentImgWrap:"lovestory_detailArticleContentImgWrap__u5jw6",detailArticleContentImg:"lovestory_detailArticleContentImg__af_fU",detailArticleReplyWrap:"lovestory_detailArticleReplyWrap__cOnVC",detailAritcleDealer:"lovestory_detailAritcleDealer__F2Oqa",detailDealerProfileImage:"lovestory_detailDealerProfileImage__pRajD",detailAritcleDealerInfo:"lovestory_detailAritcleDealerInfo__UTOMA",detailArticleDealerName:"lovestory_detailArticleDealerName__OJpNd",detailArticleReplyDate:"lovestory_detailArticleReplyDate__03az7",detailArticleDealerReplyParagraph:"lovestory_detailArticleDealerReplyParagraph__TEEu4",detailArticleBannerWrap:"lovestory_detailArticleBannerWrap__OWiXx",detailDealerInfo:"lovestory_detailDealerInfo__M6Afq",dealerAuthInfo:"lovestory_dealerAuthInfo__0EV_N",dealer:"lovestory_dealer__bBhUi",dealerName:"lovestory_dealerName__XyqPo",badge:"lovestory_badge__PesDB",dealerShop:"lovestory_dealerShop__wcFDI",dealerReview:"lovestory_dealerReview__lqSEL",dealerMarks:"lovestory_dealerMarks__XnKT9",marksScore:"lovestory_marksScore__0isgc",dealerReviewCnt:"lovestory_dealerReviewCnt__fphXH",dealerProfile:"lovestory_dealerProfile__8h1pj",detailDealerRoomLink:"lovestory_detailDealerRoomLink__7I8ED","skeleton-gradient":"lovestory_skeleton-gradient__tAD9N"}},46169:function(){},67844:function(e,t,l){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,l=1,r=arguments.length;l<r;l++)for(var a in t=arguments[l])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};
1Object.defineProperty(t,"__esModule",{value:!0});var a=l(67294);t.default=function(e,t,l){var i=(0,a.useMemo)(function(){return r({serializer:JSON.stringify,parser:JSON.parse,logger:console.log,syncData:!0},l)},[l]),s=i.serializer,n=i.parser,c=i.logger,o=i.syncData,d=(0,a.useRef)(null),_=(0,a.useState)(function(){if("undefined"==typeof window)return t;try{return d.current=window.localStorage.getItem(e),d.current?n(d.current):t}catch(e){return c(e),t}}),u=_[0],m=_[1];return(0,a.useEffect)(function(){if("undefined"!=typeof window)try{!function(){if(void 0!==u){var t=s(u),l=d.current;d.current=t,window.localStorage.setItem(e,t),window.dispatchEvent(new StorageEvent("storage",{storageArea:window.localStorage,url:window.location.href,key:e,newValue:t,oldValue:l}))}else window.localStorage.removeItem(e),window.dispatchEvent(new StorageEvent("storage",{storageArea:window.localStorage,url:window.location.href,key:e}))}()}catch(e){c(e)}},[u]),(0,a.useEffect)(function(){if(o){var t=function(t){if(t.key===e&&t.storageArea===window.localStorage)try{t.newValue!==d.current&&(d.current=t.newValue,m(t.newValue?n(t.newValue):void 0))}catch(e){c(e)}};if("undefined"!=typeof window)return window.addEventListener("storage",t),function(){return window.removeEventListener("storage",t)}}},[e,o]),[u,m]}},42473:function(e){"use strict";e.exports=function(){}},59403:function(e,t,l){"use strict";l.d(t,{N:function(){return c}});var r=l(32161),a=l(52924),i=l(9499);class s extends a.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,i.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,i.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var l,r,a,s,n,c;let{state:o}=e,d=super.createResult(e,t),{isFetching:_,isRefetching:u}=d,m=_&&(null==(l=o.fetchMeta)?void 0:null==(r=l.fetchMore)?void 0:r.direction)==="forward",y=_&&(null==(a=o.fetchMeta)?void 0:null==(s=a.fetchMore)?void 0:s.direction)==="backward";return{...d,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.Qy)(t,null==(n=o.data)?void 0:n.pages),hasPreviousPage:(0,i.ZF)(t,null==(c=o.data)?void 0:c.pages),isFetchingNextPage:m,isFetchingPreviousPage:y,isRefetching:u&&!m&&!y}}}var n=l(89582);function c(e,t,l){let a=(0,r._v)(e,t,l);return(0,n.r)(a,s)}}},function(e){e.O(0,[2428,9089,245,4559,7223,2679,5518,8065,9223,5745,2991,660,2888,9774,179],function(){return e(e.s=9297)}),_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.