1var Vt=Object.defineProperty;var Yt=(t,i,s)=>i in t?Vt(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s;var m=(t,i,s)=>(Yt(t,typeof i!="symbol"?i+"":i,s),s);import{j as e,R as Re}from"./index.bef5e139.js";import{R as y,r as u,c as I}from"./index.2506bfc3.js";import{_ as ge}from"./index.e61e400e.js";import{g as b,h as C,a as It,l as Wt,u as Xt,n as Gt,j as Jt,o as Qt}from"./request.86586aa0.js";import{g as Fe,u as Ae}from"./uuid.9e0ca40e.js";import{C as ae}from"./common.16b7b657.js";import{d as Zt}from"./dayjs.min.51cdea88.js";import{f as At,u as es}from"./common.8bfc0f94.js";import{l as x,g as Ze}from"./ga.9867c7ff.js";/* empty css */import"./searchPopover.9ac04b27.js";import{c as f}from"./index.9644aa25.js";import"./isSymbol.0f9d6668.js";import"./index.6fb3ee94.js";import"./index.1c3ae5bf.js";import"./footer.4db07750.js";/* empty css *//* empty css */import{G as ts,A as ss,a as ns}from"./AdGlobalPopad.664c689d.js";import{A as Rt}from"./adIframeTs.d51f645f.js";import{u as Et}from"./index.c6e32529.js";import{A as qt,B as as}from"./buyCar88Provider.21c74e4e.js";import{D as is}from"./nav.8dc10c5e.js";import{s as rs}from"./search-bounds.3387018e.js";import{S as os,a as cs,b as ls}from"./swiper-slide.6d68c872.js";import{A as ds}from"./autoplay.7918d041.js";import{d as _s}from"./dealFeedback.d22a3d04.js";import{s as R,R as hs}from"./review.a1f07929.js";import{a as ms}from"./utils.58414aa6.js";import{u as ps,E as J}from"./ErrorBoundary.56d962f9.js";import{P as Lt}from"./index.6ed59a34.js";/* empty css */import{q as ke}from"./index.40383c2e.js";/* empty css */import{b as us}from"./index.b5c517e3.js";import{A as Me}from"./AdFrame_v2.5c94bf90.js";import{_ as fs,i as gs,l as xs}from"./last.85c3615f.js";import{_ as bs}from"./_baseFlatten.5266b1da.js";import{_ as js}from"./_isIterateeCall.eaffb4f6.js";import{C as ws}from"./columnMarquee.7933a443.js";import{a as S,i as vs,h as ys,s as et,j as ks}from"./ga4.d665fae6.js";import"./index.8b7d40fa.js";/* empty css */import{S as $s}from"./index.d0b89ab3.js";import{u as Tt}from"./styled-components.browser.esm.f1569a17.js";import{u as Dt}from"./index.a0b83b58.js";import{u as Ns}from"./index.c7776927.js";import{u as Cs}from"./index.381af43c.js";import{I as Ve}from"./index.bcb1e369.js";/* empty css */import{C as qe}from"./index.a3832371.js";import{a as Ut,b as Ss}from"./AdScrollRefresh.c73471a6.js";import{T as Is}from"./index.2680b314.js";import{h as zt}from"./index.303c2d16.js";import{C as As}from"./index.0b301713.js";import{T as tt}from"./tcSelfAd.4f6424f8.js";/* empty css */import"./index.4d501b15.js";import"./uuid.02035067.js";import"./throttle.852fdf44.js";import"./debounce.875925b0.js";import"./isObject.f34bc055.js";import"./index.18e8c8ff.js";import"./tslib.es6.5c4c285e.js";import"./index.2193531b.js";import"./index.256cf438.js";import"./index.55d50351.js";import"./ResizeObserver.es.f4289e8a.js";import"./index.e10055d1.js";import"./index.6ad92f63.js";import"./index.888390a5.js";import"./index.147ad7aa.js";import"./_copyObject.5cb23017.js";import"./_defineProperty.fa0b0ccc.js";import"./_getTag.5092a109.js";import"./isArray.5ac9c87d.js";import"./_overArg.e902e0b9.js";import"./_createAssigner.8e7b1afa.js";import"./index.40063437.js";import"./isEqual.21037985.js";import"./_baseIsEqual.861a7c2a.js";import"./index.670a3a99.js";import"./row.311e4200.js";import"./useFlexGapSupport.76ec131a.js";import"./styleChecker.3ed25c31.js";import"./responsiveObserve.61b0cacc.js";import"./type.30d10e57.js";import"./campaigns.5ceb6a77.js";import"./index.e31cbd89.js";import"./regeneratorRuntime.380f3806.js";import"./interopRequireDefault.a67edd7c.js";import"./extends.9a520e33.js";import"./index.3a122988.js";import"./_getPrototype.3c31705c.js";import"./depsAreSame.a4ad80d3.js";import"./omit.5d7f0241.js";import"./reactNode.8dde810e.js";import"./index.8485638d.js";import"./addEventListener.b3f546b0.js";import"./isMobile.11f5ec2b.js";import"./isEqual.163843c5.js";import"./isVisible.73b41658.js";import"./useLayoutEffect.449bf3ac.js";import"./useMergedState.9587c78b.js";import"./colors.4b1b18c1.js";import"./motion.d6f8b339.js";/* empty css */import"./im.c881c5f2.js";import"./index.c53dd266.js";import"./events.5f626723.js";import"./_Uint8Array.e33991e0.js";import"./_getTag.dd2e6989.js";import"./_baseKeys.ebd57a50.js";import"./isObjectLike.46b91259.js";import"./isObject.32699ff3.js";import"./_overArg.484a0c9d.js";import"./keys.269b18ec.js";import"./_baseFor.e233419b.js";import"./toNumber.1a2253c8.js";import"./_arrayMap.2bcec0e7.js";import"./auto.36864c4e.js";import"./effectiveAd.c79ab6f8.js";const{dc:Rs,www:$m}=C,{newCarApiV1:Es,newCarApiV2:F,newCarApiV3:ue,newCarApiV5:qs,usedCarApiV4:Ye,usedCarApi:_e,newCarApiV4:We,usedCarApiV5:$e}=It;function Ls(t){return b(`${F}/brand/select`,{type:"base",...t})}function Ts(t){return b(`${F}/kind/select`,t)}function Ds(t){return b(`${_e}/newIndex/brands`,t)}function Us(t){return b(`${_e}/newIndex/kinds`,t)}function zs(){return b(`${$e}/regions`)}function Ps(t){return b(`${F}/home/movie`,{...t})}function Bs(t){return b(`${F}/brand/recommend`,t)}function Ms(t){return b(`${F}/home/filter/menu`,t)}function Hs(){return b(`${_e}/newIndex/recommendBrand`)}function Os(){return b(`${$e}/common/hot-brands`)}function Ks(){return b(`${_e}/newIndex/filterMenu`)}function Fs(){return b(`${F}/pano/rank`)}function Vs(){return b(`${F}/home/hot/newcar`)}function Ys(){return b(`${_e}/newIndex/topDealerItem`)}function Ws(){return b(`${_e}/newIndex/singleOrgItems?domain=audi`)}function Xs(){return b(`${$e}/common/hot-cars`)}function Gs(t){return b(`${_e}/newIndex/orgItems`,t)}function Js(){return b(`${$e}/shops/recommend`)}function Qs(){return b(`${F}/focus/list`)}function Zs(t){return b(`${F}/hotsell`,{f:" latest-month",...t})}function en(t){return b(`${F}/home/compare`,t)}function tn(){return b(`${F}/focus/banner`)}function sn(){return b(`${Es}/movie/pc/subscriberData`)}function nn(t){return b(`${Rs}/collect`,{...t})}function an(t){return b(`${$e}/items/new-turnover`,{limit:20,...t})}function rn(){return b(`${Ye}/common/item/statics`)}function on(){return b(`${Ye}/exposure/extra/exposure/list`,{limit:10,deviceId:Fe()})}async function cn(t){return b(`${ue}/article/categories`,t)}async function ln(t){return b(`${F}/inquiry/region`,t)}async function dn(t,i,s){return await b(`${ue}/collect`,{id:t,type:i,position:s})}async function _n(t){return await b(`${F}/active/info`,t)}function hn(t){return b(`${Ye}/home/itemShow`,t)}async function mn(t){return await b(`${ue}/oil/price`,t)}async function pn(t){return await b(`${ue}/kinds/recommends`,t)}async function un(t){return await b(`${We}/equip/movie/pc/home/nav`,t)}async function fn(t){return await b(`${We}/equip/movie/list`,t)}function gn(t){return b(`${We}/main-home-contents`,{...t})}function xn(t){return b(`${ue}/article`,t)}function bn(t){return b(`${qs}/article/list`,t)}function jn(t){return b(`${ue}/config`,t)}const z=Object.freeze(Object.defineProperty({__proto__:null,articleCategories:cn,collect:dn,fetchActiveInfo:_n,fetchCompare:en,fetchEquipsList:fn,fetchEquipsNav:un,fetchFocusList:Qs,fetchFocusSlide:tn,fetchGeneric:nn,fetchHomeAudi:Ws,fetchHomeHotAd:on,fetchHomeHotNewcar:Vs,fetchHomeMovieAndArticle:gn,fetchHomeNewItem:hn,fetchHomeSelected:Ys,fetchHomeUsedcarOther:Gs,fetchHomeUsedcarShops:Js,fetchInquiryRegion:ln,fetchKindsRecommends:pn,fetchNewCarBrands:Ls,fetchNewCarHomeMovie:Ps,fetchNewCarKinds:Ts,fetchNewDealed:an,fetchNewIndexHotCar:Xs,fetchNewIndexRegion:zs,fetchNewcarHot:Bs,fetchNewcarPano:Fs,fetchNewcarSelect:Ms,fetchOilPrice
1:mn,fetchPorscheSpecialEditionConfig:jn,fetchSellRank:Zs,fetchUsedCarBrands:Ds,fetchUsedCarKinds:Us,fetchUsedCarStatistics:rn,fetchUsedcarHot:Hs,fetchUsedcarHotBrands:Os,fetchUsedcarSelect:Ks,fetchV3Articles:xn,fetchV5Articles:bn,subscriberData:sn},Symbol.toStringTag,{value:"Module"})),wn=Ve("arrow-right-icon",!1,function(t){return y.createElement("svg",{width:t.size,height:t.size,viewBox:"0 0 49 48"},y.createElement("path",{d:"M15.188 42l18-18-18-18",stroke:t.colors[0],strokeWidth:t.strokeWidth,fill:"none",fillRule:"evenodd",strokeLinejoin:t.strokeLinejoin}))}),st=Ve("top-fill-icon",!1,function(t){return y.createElement("svg",{width:t.size,height:t.size,viewBox:"0 0 49 48"},y.createElement("path",{d:"M12.286 33l12-18 12 18z",fill:t.colors[0],fillRule:"evenodd"}))}),nt=Ve("bottom-fill-icon",!1,function(t){return y.createElement("svg",{width:t.size,height:t.size,viewBox:"0 0 49 48"},y.createElement("path",{d:"M36.143 15l-12 18-12-18z",fill:t.colors[0],fillRule:"evenodd"}))}),vn=["/campaigns/:any*","/iframeSignIn"],yn=({children:t})=>e.jsxs(ts,{children:[t,e.jsx(ss,{blacklist:vn})]}),kn="_adHomePopup_ev56x_1",$n="_none_ev56x_38",Nn="_content_ev56x_41",Y={adHomePopup:kn,"ad-home-item-970":"_ad-home-item-970_ev56x_18","ad-home-popup":"_ad-home-popup_ev56x_27",none:$n,content:Nn,"video-item":"_video-item_ev56x_49","video-duration":"_video-duration_ev56x_56","modal-ad-close":"_modal-ad-close_ev56x_74","ad-home-item-530":"_ad-home-item-530_ev56x_101","ad-home-content":"_ad-home-content_ev56x_101","ad-home-img":"_ad-home-img_ev56x_105","ad-home-item-300":"_ad-home-item-300_ev56x_118"},Pt=y.createRef(),Cn=({data:t,setTrue:i,duration:s})=>e.jsx(e.Fragment,{children:t&&Object.keys(t).length!==0&&e.jsxs("div",{className:f(Y["ad-home-item-970"],{[Y["ad-home-item-530"]]:t.type==="530*250",[Y["ad-home-item-300"]]:t.type==="300*250"}),children:[e.jsx("span",{className:Y["modal-ad-close"],onClick:()=>i(),children:e.jsx("i",{})}),e.jsx("a",{href:t&&t.link,target:"_blank",children:e.jsxs("div",{className:Y["ad-home-content"],children:[t.video!==""&&e.jsxs("div",{className:Y["video-item"],children:[e.jsx("video",{ref:Pt,src:t.video,autoPlay:!0,muted:!0,loop:!0}),e.jsxs("span",{className:Y["video-duration"],children:[s,"S"]})]}),t.img!==""&&e.jsx("div",{className:Y["ad-home-img"],children:e.jsx("img",{src:t.img})})]})}),e.jsx(qt,{data:t})]})});let Le;const at=(t,i,s)=>{clearInterval(Le),Le=setInterval(()=>{t--,s==null||s(t),t<0&&(clearInterval(Le),i())},1e3)},Sn=y.memo(()=>{const t=Pt.current,[i,{setTrue:s,setFalse:n}]=Et(!0),[a,c]=u.useState(0);return u.useEffect(()=>{t&&t.addEventListener("play",()=>{const l=Math.ceil(t.duration),o=l>30?30:l;c(o),at(o,s,c)})}),e.jsx("div",{className:f(Y.adHomePopup,{[Y.none]:i}),children:e.jsx("div",{className:Y.content,children:e.jsx(Rt,{className:Y["ad-home-popup"],slot:"/173427088/8891_1190x400_10-17",size:[["fluid"],[970,250]],refresh:!1,callBack:l=>{n(),l.video===""&&at(5,s)},children:e.jsx(Cn,{setTrue:s,duration:a})})})})}),In=()=>e.jsx(is,{onClickBuyCar:()=>{var t,i;(i=(t=window==null?void 0:window.trackingInstance)==null?void 0:t.trackEvent)==null||i.call(t,{name:"element_clicked",params:{page_sub_business:"ä¸å¤è»é¦é ",page_business:"ä¸å¤è»",trigger_id:"2516",page_id:"484",trigger_name:"é¦é -è²·è»é ",next_spm:"38.484.495.1045",page:"é¦é ",channel:"ä¸å¤è»",element_id:"é¦é -è²·è»é ",element:"æé",module:"ä¸ç´å°èª",tracker_method:"config",expand:"è²·æ°è»"}})},onExposured:()=>{var t,i;(i=(t=window==null?void 0:window.trackingInstance)==null?void 0:t.trackEvent)==null||i.call(t,{name:"element_exposured",params:{page_sub_business:"ä¸å¤è»é¦é ",page_business:"ä¸å¤è»",trigger_id:"2517",page_id:"484",trigger_name:"é¦é -è²·è»é ",next_spm:"38.484.495.1045",page:"é¦é ",channel:"ä¸å¤è»",element_id:"é¦é -è²·è»é ",element:"æé",module:"ä¸ç´å°èª",tracker_method:"config",expand:"è²·æ°è»"}})}}),Xe=u.createContext({subscribe:t=>{},scrollTo:t=>{},current:0,scrollY:0}),An=({children:t,offset:i=0})=>{const[s,n]=u.useState(0),[a,c]=u.useState([]),l=()=>{const r=a.map(h=>{const{top:p}=h.getBoundingClientRect();return window.scrollY+p-i});let _=rs.le(r,window.scrollY);_<0||n(_)},o=r=>{c(_=>[..._,r])},d=r=>{const _=a.findIndex(h=>h.id===r);window.scrollTo(0,a[_].getBoundingClientRect().top+window.scrollY-i-40)};return u.useEffect(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[a]),e.jsx(Xe.Provider,{value:{subscribe:o,scrollTo:d,current:s,scrollY},children:t})},se=({children:t,id:i}
1)=>{const s=u.useContext(Xe),n=u.useRef(null);return u.useEffect(()=>{n.current&&s.subscribe(n.current)},[]),e.jsx("div",{ref:n,id:i,children:t})},{getShopCreditRatingRanking:Rn}=_s,En=()=>{const t=u.useRef(0),[i,s]=u.useState([]),n=async()=>{var c,l,o,d,r,_;const a=await Rn({page:1,limit:3,source:"index"});(a==null?void 0:a.status)===12e3&&(s(((c=a==null?void 0:a.data)==null?void 0:c.items)??[]),t.current=(_=(r=(l=a==null?void 0:a.data)==null?void 0:l.items)==null?void 0:r[((d=(o=a==null?void 0:a.data)==null?void 0:o.items)==null?void 0:d.length)-1])==null?void 0:_.shopId)};return u.useEffect(()=>{n()},[]),i.length===0?null:e.jsxs("a",{id:"credit-rating-home",className:R.container,children:[e.jsx("a",{className:R["container-link"],onClick:()=>{var a,c;window!=null&&window.trackingInstance&&((c=(a=window==null?void 0:window.trackingInstance)==null?void 0:a.trackEvent)==null||c.call(a,{name:"usedcar_rating_promotion_clicked",params:{page_sub_business:"å
¶ä»",page_business:"å
¶ä»",trigger_id:"5361",page_id:"345",trigger_name:"pc-é¦é -éæ¶è©å¹å
¥å£",next_spm:"2.345.1125.3160",page:"å
¨ç«é¦é ",channel:"é¦é ",element_id:"pc-é¦é -éæ¶è©å¹å
¥å£",element:"åç",module:"éæ¶è©å¹",tracker_method:"config",page_name:"å
¨ç«é¦é ",page_channel:"é¦é ",shop_id:t.current}})),window.open("/credit-ratinglist.html","_blank")}}),e.jsxs("div",{className:R["title-row"],children:[e.jsx("div",{className:R["title-text"]}),e.jsxs("div",{className:R["title-tips"],children:[e.jsx("div",{className:R["tips-item"],children:"è²·è³£éæ¹è³æé©è"}),e.jsx("div",{className:R["tips-item"],children:"éæ¶ç»è¨æ¸é©è"}),e.jsx("div",{className:R["tips-item"],children:"è²·å®¶çå¯¦è³¼è»æå"})]}),e.jsx("a",{target:"_blank",className:R["more-btn"],children:"æ´å¤éæ¶è©å¹â"})]}),e.jsx("div",{className:R["shop-cont"],children:e.jsx(os,{modules:[ds],allowTouchMove:!1,direction:"vertical",slidesPerView:1,spaceBetween:10,height:240,speed:1e3,loop:!0,navigation:!1,autoplay:{delay:8e3,disableOnInteraction:!1},onActiveIndexChange:a=>{var l;let c;a.activeIndex>i.length?c=0:c=a.activeIndex-1,t.current=(l=i[c])==null?void 0:l.shopId},children:i.map((a,c)=>{var l,o,d,r,_;return e.jsx(cs,{children:e.jsxs("div",{className:f(R["shop-item"],"tracking-home-credit-rating-shop-item"),"data-shop_id":a==null?void 0:a.shopId,children:[e.jsx("div",{className:R["shop-item-img"],children:e.jsx("img",{src:a.cover})}),e.jsxs("div",{className:R["shop-item-info"],children:[e.jsx("div",{className:R["shop-item-name"],children:a.shopName}),e.jsxs("div",{className:R["shop-addr-brand"],children:[a.region,e.jsx("span",{children:"|"})," 主çï¼",((l=a==null?void 0:a.brand)==null?void 0:l.join("ã"))??"-"]}),e.jsxs("div",{className:R["item-credit-rating"],children:[a.totalScore?e.jsxs("div",{className:R["item-score"],children:[e.jsx("img",{src:ms(Number(a.totalScore)),alt:""}),e.jsx("span",{className:R.text1,children:((o=Number(a.totalScore))==null?void 0:o.toFixed(1))??"-"}),e.jsx("span",{className:R.text2,children:"å"})]}):null,a.creditRatingCount?e.jsxs("div",{className:R["item-rating-count"],children:["æè¿æ°å¢",e.jsx("span",{children:a.creditRatingCount}),"æ¢éæ¶è©å¹"]}):null]}),a!=null&&a.tags&&((d=a==null?void 0:a.tags)==null?void 0:d.length)>0?e.jsx("div",{className:R["item-tag"],children:(r=a==null?void 0:a.tags)==null?void 0:r.map(h=>e.jsx("div",{className:R["item-tag-item"],children:h==null?void 0:h.label},h==null?void 0:h.key))}):null,a!=null&&a.reviews&&((_=a==null?void 0:a.reviews)==null?void 0:_.length)>0?e.jsx(hs,{reviewsList:(a==null?void 0:a.reviews)??[]}):null]})]})},c)})},"shop-ranking-swiper")})]})},qn="_container_1pge0_1",Ln="_select_1pge0_5",Tn="_open_1pge0_16",Dn="_visible_1pge0_54",Un="_active_1pge0_75",zn="_hover_1pge0_167",Pn="_slogan_1pge0_170",w={container:qn,select:Ln,open:Tn,"select-value":"_select-value_1pge0_34","select-popover":"_select-popover_1pge0_45",visible:Dn,"select-popover-index":"_select-popover-index_1pge0_57","select-popover-index-item":"_select-popover-index-item_1pge0_67",active:Un,"select-popover-index-item-used":"_select-popover-index-item-used_1pge0_80","select-popover-list":"_select-popover-list_1pge0_84","border-radius":"_border-radius_1pge0_92","select-popover-section":"_select-popover-section_1pge0_96","select-popover-section-header":"_select-popover-section-header_1pge0_101","select-popover-section-item":"_select-popover-section-item_1pge0_106","select-popover-section-item-text":"_select-popover-section-item-text_1pge0_114","select-popover-section-item-used":"_select-popover-section-item-used_1pge0_130","search-container":"_search-container_1pge0_134","search-btn":"_search-btn_1pge0_140","search-icon":"_search-icon_1pge0_155",hover:zn,slogan:Pn,"container-ask-price":"_container-ask-price_1pge0_176","search-ask-price-btn":"_search-ask-price-btn_1pge0_182","check-empty-price":"_check-empty-price_1pge0_194","ask-price-buy-car":"_ask-price-buy-car_1pge0_201","ask-price-main":"_ask-price-main_1pge0_208","container-ask-price-middle":"_container-ask-price-middle_1pge0_214","check-empty-price-middle":"_check-empty-price-middle_1pge0_223"};class Bn extends y.Component{constructor(){super(...arguments);m(this,"state",{activeIndex:0});m(this,"scrollRef");m(this,"updateRef");m(this,"listView",[0]);m(this,"handleScroll",s=>{const n=this.listView.length;for(let a=0;a<n;a++)s.scrollTop>=this.listView[a]&&(typeof this.listView[a+1]>"u"||s.scrollTop<this.listView[a+1])&&this.setState({activeIndex:a})});m(this,"renderListView",()=>{if(this.listView.length>1||!this.scrollRef)return;this.updateRef.updateScroll(),Array.from(this.scrollRef.children).filter(n=>
1n.classList.contains("tc-select-section")).forEach((n,a)=>{this.listView.push(n.getBoundingClientRect().height+this.listView[a])})});m(this,"jump",s=>{this.scrollRef&&(this.scrollRef.scrollTop=this.listView[s])})}componentDidUpdate(){this.renderListView()}render(){const{dataSource:s,value:n,onSelect:a,field:c}=this.props,{activeIndex:l}=this.state;return e.jsxs(e.Fragment,{children:[e.jsx("ul",{className:w["select-popover-index"],children:s.index.map((o,d)=>e.jsx("li",{className:f(w["select-popover-index-item"],{[w["select-popover-index-item-used"]]:c==="usedcar",[w.active]:d===l}),onClick:()=>this.jump(d),children:o},o))}),e.jsx("div",{className:w["select-popover-list"],children:e.jsx(Lt,{ref:o=>this.updateRef=o,containerRef:o=>{this.scrollRef=o},onScrollY:this.handleScroll,children:s.brand.map(o=>e.jsxs("div",{className:f(w["select-popover-section"],"tc-select-section"),"data-index":o.label,children:[e.jsx("span",{className:w["select-popover-section-header"],children:o.label}),o.list.map(d=>e.jsx("span",{className:f(w["select-popover-section-item"],{[w["select-popover-section-item-used"]]:c==="usedcar",[w.active]:n===d.id}),onClick:()=>a(d.id,d.name,d.urlName),children:d.name},d.id))]},o.label))})})]})}}function Mn(t){const{value:i,onSelect:s,dataSource:n,field:a,hasSaleStop:c}=t;return e.jsx("div",{className:f(w["select-popover-list"],w["border-radius"]),children:e.jsxs(Lt,{children:[e.jsx("div",{className:w["select-popover-section"],children:e.jsx("span",{className:f(w["select-popover-section-item"],{[w["select-popover-section-item-used"]]:a==="usedcar",[w.active]:i===0}),onClick:()=>s(0,""),children:"å
¨é¨è»æ¬¾"})}),n.map(l=>e.jsx("div",{className:w["select-popover-section"],children:e.jsxs("div",{className:f(w["select-popover-section-item"],{[w["select-popover-section-item-used"]]:a==="usedcar",[w.active]:i===l.kindId}),onClick:()=>s(l.kindId,l.kindName),children:[l.kindName,l.showTag&&e.jsx("span",{className:w["select-popover-section-item-text"],style:{color:l.showTag.color},children:l.showTag.title||""})]})},l.kindId)),c===1&&e.jsx("div",{className:w["select-popover-section"],children:e.jsx("span",{className:f(w["select-popover-section-item"],{[w.active]:i===-1}),onClick:()=>s(-1,"åå®è»æ¬¾"),children:"åå®è»æ¬¾"})})]})})}class it extends y.Component{constructor(){super(...arguments);m(this,"state",{mounted:!1})}componentDidMount(){this.setState({mounted:!0})}render(){const{children:s,visible:n,pos:a}=this.props,{mounted:c}=this.state;return c?Re.createPortal(e.jsx("div",{className:w["select-popover"],style:{top:n?a.y:-1e4,left:a.x},children:s}),document.body):null}}class rt extends y.Component{constructor(){super(...arguments);m(this,"state",{visible:!1,posX:0,posY:0,posSecondX:0,posSecondY:0,secondVisible:!1,value:0,label:"",kindValue:0,kindLabel:"",brandUrlName:"",hover:!1});m(this,"containerRef",y.createRef());m(this,"brandRef",y.createRef());m(this,"kindRef",y.createRef());m(this,"bindEvent",s=>{const n=s.target;(this.state.visible||this.state.secondVisible)&&!n.className.includes("select-popover")&&!n.className.includes("select-value")&&this.setState({visible:!1,secondVisible:!1})});m(this,"onSelectBrand",(s,n,a)=>{if(this.setState({value:s,label:n,brandUrlName:a,kindLabel:"",kindValue:0},()=>{this.toggleSecond()}),s){const{field:c}=this.props;x("åç车款æ¾è½¦",c==="newcar"?"æ°è½¦":"ä¸å¤è½¦",n),this.props.onBrandSelect(s)}});m(this,"onSelectKind",(s,n)=>{const{field:a}=this.props;x("åç车款æ¾è½¦",a==="newcar"?"æ°è½¦":"ä¸å¤è½¦",n),this.setState({kindValue:s,kindLabel:n,secondVisible:!1})});m(this,"toggle",s=>{const a=s.target.getBoundingClientRect();this.setState({posX:a.x+window.scrollX,posY:a.y+a.height+window.scrollY,secondVisible:!1,visible:!this.state.visible})});m(this,"toggleSecond",()=>{if(this.state.value===0||!this.kindRef.current){this.brandRef.current&&this.toggle({target:this.brandRef.current});return}const s=this.kindRef.current.getBoundingClientRect();this.setState({posSecondX:s.x+window.scrollX,posSecondY:s.y+s.height+window.scrollY,visible:!1,secondVisible:!this.state.secondVisible})});
1m(this,"onSubmit",()=>{const{value:s,kindValue:n,brandUrlName:a}=this.state;this.setState({secondVisible:!1,visible:!1}),this.props.onSubmit(s,n,a)});m(this,"onHover",()=>{this.state.hover||this.setState({hover:!0})});m(this,"onLeave",()=>{this.state.hover&&this.setState({hover:!1})})}componentDidMount(){document.addEventListener("click",this.bindEvent)}componentWillUnmount(){document.removeEventListener("click",this.bindEvent)}render(){const{visible:s,label:n,value:a,secondVisible:c,kindLabel:l,kindValue:o,posX:d,posY:r,posSecondX:_,posSecondY:h,hover:p}=this.state,{dataSource:g,kindData:A,field:$,hasSaleStop:L,active:ee}=this.props,T=g.photoNum?`${g.kindNum}åè»æ¬¾è³æåº«ï¼${g.photoNum.toLocaleString()}å¼µåçï¼ææ°çæ°è»è³æåº«`:g.onSaleNum?`å¨å®ä¸å¤è»${g.onSaleNum.toLocaleString()}è¼ï¼å
¨å°æå¤§çä¸å¤è»äº¤æå¹³å°`:"";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:w.container,ref:this.containerRef,children:[e.jsxs("div",{className:f(w.select,{[w.open]:s}),children:[e.jsx("span",{className:w["select-value"],onClick:this.toggle,ref:this.brandRef,children:n!==""?n:"é¸æå» ç"}),e.jsx(it,{visible:s,pos:{x:d,y:r},children:e.jsx(Bn,{dataSource:g,value:a,onSelect:this.onSelectBrand,field:$})})]}),e.jsxs("div",{className:f(w.select,{[w.open]:c}),children:[e.jsx("span",{className:w["select-value"],onClick:this.toggleSecond,ref:this.kindRef,children:l!==""?l:"é¸æè»æ¬¾"}),e.jsx(it,{visible:c,pos:{x:_,y:h},children:e.jsx(Mn,{dataSource:A,hasSaleStop:L,value:o,onSelect:this.onSelectKind,field:$})})]}),e.jsxs("div",{className:w["search-container"],children:[e.jsx("a",{className:w["search-btn"],onClick:this.onSubmit,onMouseEnter:this.onHover,onMouseLeave:this.onLeave,children:"æå°"}),e.jsx("span",{className:f(w["search-icon"],{[w.hover]:p,bounceInUp:p,animated:p})})]})]}),e.jsx("p",{className:w.slogan,children:T})]})}}const Hn="_banner_n8hcy_1",On="_content_n8hcy_30",Kn="_filter_n8hcy_36",Fn="_active_n8hcy_66",D={banner:Hn,"usedcar-banner":"_usedcar-banner_n8hcy_15","campaigns-anniversary":"_campaigns-anniversary_n8hcy_18","campaigns-anniversary-phase-2":"_campaigns-anniversary-phase-2_n8hcy_21","newcar-banner":"_newcar-banner_n8hcy_24",content:On,filter:Kn,"banner-gif":"_banner-gif_n8hcy_46","filter-nav":"_filter-nav_n8hcy_51",active:Fn,"active-used":"_active-used_n8hcy_81","filter-tabs":"_filter-tabs_n8hcy_87","filter-tab":"_filter-tab_n8hcy_87","filter-content":"_filter-content_n8hcy_94","jump-usedcar":"_jump-usedcar_n8hcy_99","banner-adver":"_banner-adver_n8hcy_109"},Vn="_show_13zdy_7",Yn="_seller_13zdy_46",oe={"deal-swiper-box":"_deal-swiper-box_13zdy_1",show:Vn,"deal-swiper":"_deal-swiper_13zdy_1","deal-swiper-icon":"_deal-swiper-icon_13zdy_19","deal-swiper-container":"_deal-swiper-container_13zdy_31","swiper-slide":"_swiper-slide_13zdy_41",seller:Yn},{fetchNewDealed:Wn}=z,{www:Xn}=C,Gn=({show:t})=>{const[i,s]=u.useState([]),n=()=>{new ls(".deal-swiper-container",{autoplay:!0,loop:!0,direction:"vertical",allowTouchMove:!1})},a=async()=>{const c=await Wn();c&&c.status===12e3&&(s(c.data.items),setTimeout(()=>{n()},0))};return u.useEffect(()=>{a()},[]),e.jsxs("div",{className:f(oe["deal-swiper-box"],{[oe.show]:t}),children:[e.jsx("div",{className:oe["deal-swiper"],children:e.jsx("div",{className:f(["deal-swiper-container",oe["deal-swiper-container"]]),children:e.jsx("div",{className:"swiper-wrapper",children:i.map((c,l)=>e.jsxs("div",{className:f(["swiper-slide",oe["swiper-slide"]]),children:[c.shopId&&c.shopId>0?e.jsx("a",{target:"_blank",href:`${Xn}/findBuz-info-${c.shopId}.html`,className:oe.seller,children:c.seller}):c.seller,` åå è³£æäº1å°${c.title}ï¼`]},l))})})}),e.jsx("i",{className:oe["deal-swiper-icon"]})]})},{fetchNewCarBrands:Jn,fetchUsedCarBrands:Qn,fetchNewCarKinds:Zn,fetchUsedCarKinds:ea}=z,{auto:He,c:ot,image:ta}=C,{modelList:sa,brandList:na}=It;function aa(t,i,s=""){if(x("åç车款æ¾è½¦","æ°è½¦","æå¯»"),t===0){window.open(`${ot}/Models`);return}const n={b:t};if(t!==0&&i===-1){n.k=i,window.open(`${ot}/Models/${s}?sales=1`);return}if(i!==0){n.k=i,window.open(`${sa}?${ke.stringify(n)}`);return}window.open(`${na}?${ke.stringify(n)}`)}function ia(t,i){const s={};i!==0&&(s.k=i),t!==0&&(s.b=t),x("åç车款æ¾è½¦","ä¸å¤è½¦","æå¯»"),window.open(`${He}?${ke.stringify(s)}`)}const ra=()=>Wt(us).isActive?e.jsx("a",{href:"https://www.8891.com.tw/anniversary-2022Home.html",target:"_blank",children:e.jsx("img",{className:D["banner-gif"],src:`${ta}/campaigns/2022/88buycar/home.png`,alt:""})}):null;class oa extends y.Component{constructor(){super(...arguments);m(this,"state",{active:this.props.userType==="usedcar"?1:0,hasSaleStop:0,newCarKind:[],usedCarKind:[],newCarDataSource:{index:[],brand:[],kindNum:0},usedCarDataSource:{index:[],brand:[],kindNum:0}});m(this,"containerRef",y.createRef());m(this,"changeTab",s=>{const{onChange:n}=this.props;s!==this.state.active&&(x("å
¨ç«é¦é¡µ","åç车款æ¾è½¦",s?"ä¸å¤è½¦":"æ°è½¦"),n&&n(s?"usedcar":"newcar"))});
1m(this,"handleNewCarBrandSelect",async s=>{this.setState({newCarKind:[]});const n={b:s,type:"base"};this.props.userType==="newcar"&&(n.type="pcNcHome",n.showTitle=1);const a=await Zn(n);a&&a.status===12e3&&this.setState({newCarKind:a.data.data,hasSaleStop:a.data.hasSaleStop})});m(this,"handleUsedCarBrandSelect",async s=>{this.setState({usedCarKind:[]});const n=await ea({b:s});n&&n.status===12e3&&this.setState({usedCarKind:n.data.data})});m(this,"clickBanner",()=>{x("å
¨ç«é¦é¡µ","èæ¯å¤§banner")});m(this,"jumpPublicity",()=>{x("ä¸å¤è»å®£å³","å
¨ç«é¦é¡µ","å»äºè§£8891ä¸å¤è»");let s=`${He}/usedauto-publicity.html`;window.open(s)});m(this,"fetch",async()=>{const s=await Jn(),n=await Qn();s&&s.status===12e3&&this.setState({newCarDataSource:s.data}),n&&n.status===12e3&&this.setState({usedCarDataSource:n.data})})}componentDidMount(){this.fetch()}componentDidUpdate(s){const{userType:n}=this.props;n!==s.userType&&this.setState({active:n==="usedcar"?1:0})}render(){const{userType:s}=this.props,{newCarDataSource:n,usedCarDataSource:a,active:c,newCarKind:l,usedCarKind:o,hasSaleStop:d}=this.state;return e.jsxs("div",{className:f([D.banner,D[`${s}-banner`]]),onClick:this.clickBanner,children:[e.jsx(as,{}),e.jsx("div",{className:D["banner-adver"],style:{display:s==="usedcar"?"none":"block"},children:e.jsx(Me,{size:[["fluid"],["fluid",95]],width:"100%",height:300,slot:"/173427088/global-homepage-focus-tv_ads",wrapperStyles:{display:s==="usedcar"?"none":"block"},styles:{width:"100%",height:"95px"}})}),e.jsx("div",{className:D["banner-adver"],style:{display:s==="newcar"?"none":"block"},children:e.jsx(Me,{size:[["fluid"],["fluid",95]],width:"100%",height:300,slot:"/173427088/auto-global-homepage-focus-tv_ads",wrapperStyles:{display:s==="newcar"?"none":"block"},styles:{width:"100%",height:"95px"}})}),e.jsx(Gn,{show:s==="usedcar"}),e.jsxs("div",{className:D.content,children:[e.jsxs("div",{className:D.filter,onClick:r=>{r.stopPropagation()},children:[e.jsxs("div",{className:D["filter-nav"],children:[e.jsx("span",{className:f({[D.active]:!c}),onClick:()=>this.changeTab(0),children:"æ°è»"}),e.jsx("span",{className:f({[D.active]:c,[D["active-used"]]:c}),onClick:()=>this.changeTab(1),children:"ä¸å¤è»"}),e.jsx("span",{id:"tracking-pc-index-banner-filter-sc",onClick:()=>{window.open(`${He}/sell-spread.html?source=8891&entry=hs_pc_hsb_e`,"_blank")},children:"é«å¹æ¶è»"}),e.jsx(ra,{})]}),e.jsx("div",{className:D["filter-content"],children:e.jsxs("div",{className:D["filter-tabs"],children:[s=="newcar"&&e.jsx("div",{className:D["filter-tab"],children:e.jsx(rt,{ref:this.containerRef,field:"newcar",active:c,dataSource:n,kindData:l,hasSaleStop:d,onSubmit:aa,onBrandSelect:this.handleNewCarBrandSelect})}),s=="usedcar"&&e.jsx("div",{className:D["filter-tab"],children:e.jsx(rt,{ref:this.containerRef,field:"usedcar",active:c,dataSource:a,kindData:o,onSubmit:ia,onBrandSelect:this.handleUsedCarBrandSelect})})]})})]}),s==="usedcar"&&e.jsx("div",{className:D["jump-usedcar"],onClick:this.jumpPublicity})]})]})}}const ca="_none_1dl1w_27",la="_tl_1dl1w_30",da="_pr_1dl1w_36",_a="_pa_1dl1w_39",ha="_bn_1dl1w_42",ma="_ellipsis_1dl1w_45",pa="_bounceInUp_1dl1w_280",ua="_animated_1dl1w_284",fa="_infinite_1dl1w_290",ga="_fast_1dl1w_314",xa="_faster_1dl1w_318",ba="_slow_1dl1w_322",ja="_slower_1dl1w_326",wa="_container_1dl1w_340",va="_item_1dl1w_348",ya="_icon_1dl1w_357",ka="_content_1dl1w_363",$a="_loading_1dl1w_368",Na="_all_1dl1w_372",Ca="_progress_1dl1w_1",X={"ant-switch-small":"_ant-switch-small_1dl1w_15",none:ca,tl:la,"br-btn":"_br-btn_1dl1w_33",pr:da,pa:_a,bn:ha,ellipsis:ma,bounceInUp:pa,animated:ua,infinite:fa,"delay-1s":"_delay-1s_1dl1w_294","delay-2s":"_delay-2s_1dl1w_298","delay-3s":"_delay-3s_1dl1w_302","delay-4s":"_delay-4s_1dl1w_306","delay-5s":"_delay-5s_1dl1w_310",fast:ga,faster:xa,slow:ba,slower:ja,container:wa,item:va,"usedcar-item":"_usedcar-item_1dl1w_354",icon:ya,content:ka,loading:$a,all:Na,progress:Ca,"porsche-tag-container":"_porsche-tag-container_1dl1w_394"};class O extends y.PureComponent{constructor(){super(...arguments);m(this,"adRef",y.createRef());m(this,"first",!1)}componentDidMount(){const{data:s,refresh:n,threshold:a,observe:c,first:l}=this.props;let o=this.adRef.current;this.first=!!l;try{let d=new IntersectionObserver(r=>{this.first?r[0].isIntersecting&&n(s):this.first=!0,c&&c(r[0])},{threshold:[a]});o&&d.observe(o)}catch(d){console.log(d)}}render(){const{children:s,styles:n}=this.props;return e.jsx("div",{ref:this.adRef,style:{display:"inline-block",...n},children:s})}}m(O,"defaultProps",{refresh:!0,data:{},threshold:.75});const{c:ct,auto:Sa}=C,{postInitialCollect:Ia,postBatchCollect:Aa}=ae,{fetchPorscheSpecialEditionConfig:Ra}=z;function Ea(){return Array.apply(null,Array(6)).map((t,i)=>e.jsxs("span",{className:X.item,children:[e.jsx("span",{className:f(X.icon,X.loading)}),e.jsx("span",{className:f(X.content,X.loading)})]},i))}const qa={porscheSpecialEdition:{}},La=({dataSource:t,type:i})=>{var r;const[s,n]=u.useState(qa),a=u.useRef([]),c=i==="newcar"?`${ct}/Models`:Sa,l=i==="newcar"?"æ°è½¦":"ä¸å¤è½¦",o=()=>{const _=a.current.filter(h=>h.ads).map(h=>({data:h.ads}));_&&_.length>0&&Aa(_,"show")};if(u.useEffect(()=>{let _=!1;return(async()=>{try{const p=await Ra();if(_)return;(p==null?void 0:p.status)===12e3&&n(p.data)}catch(p){console.error(p)}})(),()=>{_=!0}},[]),u.useEffect(()=>{a.current=t,o()},[t]),!t.length)return null;const d=t.map((_,h)=>{var p,g;return e.jsxs("a",{className:f(X.item,{[X["usedcar-item"]]:i==="usedcar"}),href:_!=null&&_.ads&&((p=_==null?void 0:_.ads)==null?void 0:p.adclick)!==""?(g=_==null?void 0:_.ads)==null?void 0:g.adclick:_==null?void 0:_.link,target:"_blank",onClick:()=>
1{x("å
¶ä»æ¡ä»¶æ¾è½¦",l,"çé¨åç"),_!=null&&_.ads&&Ia(_==null?void 0:_.ads,"click")},children:[e.jsx("img",{src:i==="newcar"?_.brandIcon:_.image,className:X.icon}),i==="usedcar"&&e.jsx("span",{className:X.content,children:_.enName})]},h)});return e.jsx(O,{refresh:o,styles:{display:"block"},children:e.jsxs("div",{className:X.container,children:[i==="newcar"&&!!((r=s==null?void 0:s.porscheSpecialEdition)!=null&&r.enable)&&e.jsx("a",{href:`${ct}/porsche/special-edition`,target:"_blank",className:X["porsche-tag-container"],children:e.jsx("img",{src:"https://photo.8891.com.tw/2026/03/17/17737279455783624276.png",alt:"ä¿ææ·ç¹è¼¯"})}),t.length>0?d:Ea(),e.jsx("a",{className:X.all,href:c,target:"_blank",onClick:()=>{x("å
¶ä»æ¡ä»¶æ¾è½¦",l,"å
¨é¨è½¦æ¬¾")},children:"å
¨é¨è»æ¬¾"})]})})},Ta="_none_euqom_27",Da="_tl_euqom_30",Ua="_pr_euqom_36",za="_pa_euqom_39",Pa="_bn_euqom_42",Ba="_ellipsis_euqom_45",Ma="_bounceInUp_euqom_280",Ha="_animated_euqom_284",Oa="_infinite_euqom_290",Ka="_fast_euqom_314",Fa="_faster_euqom_318",Va="_slow_euqom_322",Ya="_slower_euqom_326",Wa="_container_euqom_340",Xa="_loading_euqom_361",Ga="_progress_euqom_1",Ja="_active_euqom_381",U={"ant-switch-small":"_ant-switch-small_euqom_15",none:Ta,tl:Da,"br-btn":"_br-btn_euqom_33",pr:Ua,pa:za,bn:Pa,ellipsis:Ba,bounceInUp:Ma,animated:Ha,infinite:Oa,"delay-1s":"_delay-1s_euqom_294","delay-2s":"_delay-2s_euqom_298","delay-3s":"_delay-3s_euqom_302","delay-4s":"_delay-4s_euqom_306","delay-5s":"_delay-5s_euqom_310",fast:Ka,faster:Fa,slow:Va,slower:Ya,container:Wa,"tab-bar":"_tab-bar_euqom_346","tab-bar-item":"_tab-bar-item_euqom_351",loading:Xa,progress:Ga,active:Ja,"active-used":"_active-used_euqom_397","tab-bar-item-all":"_tab-bar-item-all_euqom_403","tab-container":"_tab-container_euqom_408","tab-scroll":"_tab-scroll_euqom_413","tab-content":"_tab-content_euqom_417","tab-scroll-prev":"_tab-scroll-prev_euqom_422","tab-scroll-next":"_tab-scroll-next_euqom_433","tab-scroll-more":"_tab-scroll-more_euqom_444","sub-list-item":"_sub-list-item_euqom_455"};var Qa=fs,Za=bs,ei=js,Te=gs,ti=xs,si=ei(function(t,i){var s=ti(i);return Te(s)&&(s=void 0),Te(t)?Qa(t,Za(i,1,Te,!0),void 0,s):[]}),ni=si;const Q={"newcar-item":"_newcar-item_1qy5o_1","item-thumb":"_item-thumb_1qy5o_10","item-name":"_item-name_1qy5o_16","item-extra":"_item-extra_1qy5o_27","item-inquiry":"_item-inquiry_1qy5o_55","item-box":"_item-box_1qy5o_65","item-tag":"_item-tag_1qy5o_69"},ai="_pop_xed2n_1",lt={pop:ai,"item-tag":"_item-tag_xed2n_16"},{postInitialCollect:ii}=ae,ri=({position:t,ads:i,url:s})=>{const[n,a]=u.useState({}),c=()=>{const l=i.adclick?i.adclick:s;ii(i,"click"),window.open(l)};return u.useEffect(()=>{a({top:t.top-160,left:t.left+45})},[t]),e.jsxs("div",{className:lt.pop,style:n,onClick:c,children:[e.jsx("img",{src:i.image,alt:""}),i.tag!==""&&e.jsx("div",{className:lt["item-tag"],children:i.tag})]})};class oi{constructor(i){m(this,"params");m(this,"dom");m(this,"flag");this.params=i,this.dom=document.createElement("div"),this.flag=!0,this.init()}init(){const i=document.createElement("div");this.dom=i,document.body.appendChild(i),Re.render(e.jsx(ri,{...this.params}),i),this.listen(i)}listen(i){const s=this;window.addEventListener("scroll",()=>this.handleScroll()),i.addEventListener("mouseenter",function(){s.flag=!1}),i.addEventListener("mouseleave",function(){s.flag=!0,setTimeout(()=>s.destroy(),100)})}handleScroll(){requestAnimationFrame(()=>{this.destroy()})}destroy(){if(!this.flag)return;const i=this.dom;Re.unmountComponentAtNode(i)&&i.parentNode&&i.parentNode.removeChild(i),window.removeEventListener("scroll",this.handleScroll)}}const{postInitialCollect:dt}=ae,{c:ce}=C;function ci(t){x("å
¶ä»æ¡ä»¶æ¾è½¦","æ°è½¦",t)}const li=({dataSource:t,field:i})=>{var h,p;const{kindName:s,thumb:n,kindId:a,brandId:c,isInquiry:l}=t;let o=null;const d=(g,A)=>{var $,L;($=g==null?void 0:g.ads)!=null&&$.adclick&&(A.preventDefault(),window.open((L=g==null?void 0:g.ads)==null?void 0:L.adclick)),g!=null&&g.ads&&dt(g==null?void 0:g.ads,"click")},r=(g,A)=>{const $=g.currentTarget.getBoundingClientRect();A.image&&(o=new oi({position:$,ads:A,url:`${ce}/photoModel-info.html?k=${a}
1`}))},_=()=>{setTimeout(()=>{o&&o.destroy()},20)};return u.useEffect(()=>{t.ads&&dt(t.ads,"show")},[t.ads]),e.jsx("li",{className:Q["newcar-item"],onClick:()=>ci(i),children:t.ads?e.jsxs(e.Fragment,{children:[e.jsxs("a",{href:`${ce}/photoModel-info.html?k=${a}`,target:"_blank",className:Q["item-box"],onMouseEnter:g=>r(g,t.ads),onMouseLeave:_,onClick:g=>{d(t,g)},children:[((h=t==null?void 0:t.ads)==null?void 0:h.tag)!==""&&e.jsx("div",{className:Q["item-tag"],children:(p=t==null?void 0:t.ads)==null?void 0:p.tag}),e.jsx("img",{src:n,className:Q["item-thumb"]}),e.jsx("p",{className:Q["item-name"],children:s})]}),e.jsxs("div",{className:Q["item-extra"],children:[e.jsx("a",{href:`${ce}/photoModel-balance.html?k=${a}`,target:"_blank",children:"é
å"}),e.jsx("a",{href:`${ce}/photoLibrary-bigPicture.html?k=${a}`,target:"_blank",children:"åç"}),l===1&&e.jsx("a",{id:"tracking-HomeRecommendCarAskPrice","data-source":"é¦é æ¨è¦è»æ¬¾",onClick:()=>x("é·å®ç·ç´¢","é¦é æ¨è¦è»æ¬¾","è©¢å¹"),className:Q["item-inquiry"],href:`https://c.8891.com.tw/ask/price?b=${c||""}&k=${a||""}&source=é¦é æ¨è¦è©¢å¹`,target:"_blank",children:"è©¢å¹"})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("a",{href:`${ce}/photoModel-info.html?k=${a}
1`,target:"_blank",children:[e.jsx("img",{src:n,className:Q["item-thumb"]}),e.jsx("p",{className:Q["item-name"],children:s})]}),e.jsxs("div",{className:Q["item-extra"],children:[e.jsx("a",{href:`${ce}/photoModel-balance.html?k=${a}`,target:"_blank",children:"é
å"}),e.jsx("a",{href:`${ce}/photoLibrary-bigPicture.html?k=${a}`,target:"_blank",children:"åç"}),l===1&&e.jsx("a",{id:"tracking-HomeRecommendCarAskPrice","data-source":"é¦é æ¨è¦è»æ¬¾",onClick:()=>x("é·å®ç·ç´¢","é¦é æ¨è¦è»æ¬¾","è©¢å¹"),className:Q["item-inquiry"],href:`https://c.8891.com.tw/ask/price?b=${c}&k=${a}&source=é¦é æ¨è¦è©¢å¹`,target:"_blank",children:"è©¢å¹"})]})]})})},le={"usedcar-item":"_usedcar-item_yzf9y_1","item-thumb":"_item-thumb_yzf9y_11","item-name":"_item-name_yzf9y_17","item-extra":"_item-extra_yzf9y_28","item-count":"_item-count_yzf9y_53","item-onsale":"_item-onsale_yzf9y_57","new-count":"_new-count_yzf9y_61"},di=({dataSource:t,field:i})=>{const{thumb:s,name:n,number:a,link:c,newItems:l}=t;return e.jsx("li",{className:le["usedcar-item"],children:e.jsxs("a",{href:c,target:"_blank",onClick:()=>{x("å
¶ä»æ¡ä»¶æ¾è½¦","ä¸å¤è½¦",i)},children:[e.jsx("img",{src:s,className:le["item-thumb"]}),e.jsx("div",{className:le["new-count"],children:`æ°å¢${l||0}è¼`}),e.jsx("p",{className:le["item-name"],children:n}),e.jsxs("p",{className:le["item-extra"],children:[e.jsx("span",{className:le["item-count"],children:a}),e.jsx("span",{className:le["item-onsale"],children:"å¨å®"})]})]})})},{c:_i,auto:hi}=C,{postBatchCollect:mi}=ae;function pi(){return Array.apply(null,Array(10)).map((t,i)=>e.jsx("span",{className:f(U["tab-bar-item"],U.loading)},i))}function ui(){return Array.apply(null,Array(7)).map((t,i)=>e.jsx("span",{className:f(U["sub-list-item"],U.loading)},i))}let _t=0;function fi(t){const{item:i,field:s}=t;return i.kindId?e.jsx(li,{dataSource:i,field:s}):e.jsx(di,{dataSource:i,field:s})}class ht extends y.Component{constructor(){super(...arguments);m(this,"state",{active:0,page:0,subList:{},subListLoading:!1,adsArr:[]});m(this,"handleHover",s=>{const{subList:n,active:a}=this.state;a!==s&&(this.setState({active:s,page:0}),n[s]||this.fetchSubList(s))});m(this,"setPage",s=>{this.setState({page:s})});m(this,"fetchSubList",async s=>{const{dataSource:n}=this.props;this.setState({subListLoading:!0});const a=await b(n[s].link,{ads:1});if(this.setState({subListLoading:!1}),a&&a.status===12e3){let c={};this.props.type==="usedcar"?c={...this.state.subList,[s]:a.data.items}:c={...this.state.subList,[s]:a.data.list},this.setState({subList:c})}})}initBatchCollect(){const{active:s,subList:n}=this.state;if(s===0&&n[s]&&n[s].length!==0){const a=n[s].filter(c=>c.ads).map(c=>({data:c.ads}));a&&a.length>0&&(clearTimeout(_t),_t=window.setTimeout(()=>{mi(a,"show")},200))}}refresh(){this.initBatchCollect()}componentDidUpdate(s){ni(this.props.dataSource,s.dataSource,function(a,c){return a.name===c.name}).length>0&&(this.setState({active:0}),this.fetchSubList(0)),this.initBatchCollect()}render(){const{dataSource:s,type:n}=this.props,{active:a,page:c,subList:l,subListLoading:o}=this.state,d=l[a],r=d?d.length:0,_=d?r/7-1:0,h=_>1&&c>=1,p=_>1&&c<_,g=r>0&&a!==0,A=n==="newcar"?`${_i}/Models`:hi,$=n==="newcar"?"æ°è½¦":"ä¸å¤è½¦",L=s.map((T,V)=>{const v=f(U["tab-bar-item"],{[U.active]:V===a,[U["active-used"]]:V===a&&n==="usedcar"});return T.pageLink===""?e.jsx("span",{className:v,onMouseEnter:()=>this.handleHover(V),onClick:()=>{x("å
¶ä»æ¡ä»¶æ¾è½¦",$,"æ¨è")},children:T.name},T.name):e.jsx("a",{href:T.pageLink,target:"_blank",className:v,onMouseEnter:()=>this.handleHover(V),onClick:()=>{x("å
¶ä»æ¡ä»¶æ¾è½¦",$,T.name)},children:T.name},T.name)}),ee=l[a]&&l[a].map((T,V)=>e.jsx(fi,{item:T,field:s[a].name},V));return e.jsxs("div",{className:U.container,children:[e.jsxs("div",{className:U["tab-bar"],children:[s.length>0?L:pi(),e.jsx("a",{className:U["tab-bar-item-all"],href:A,target:"_blank",onClick:()=>{x("å
¶ä»æ¡ä»¶æ¾è½¦",$,"å
¶ä»æ¡ä»¶")},children:"å
¶ä»æ¢ä»¶"})]}),e.jsx("div",{className:U["tab-container"],children:e.jsxs("div",{className:U["tab-scroll"],children:[h&&e.jsx("span",{className:U["tab-scroll-prev"],onClick:()=>this.setPage(c-1)}),e.jsx(O,{refresh:()=>this.refresh(),children:e.jsx("ul",{className:U["tab-content"],style:{transform:`translate(${-840*c}px, 0)`},children:!o&&l[a]?ee:ui()})}),p?e.jsx("span",{className:U["tab-scroll-next"],onClick:()=>this.setPage(c+1)}):g?e.jsx("a",{className:U["tab-scroll-more"],href:s[a].pageLink,target:"_blank"}):null]})})]})}}const gi="_none_1k9a9_27",xi="_tl_1k9a9_30",bi="_pr_1k9a9_36",ji="_pa_1k9a9_39",wi="_bn_1k9a9_42",vi="_ellipsis_1k9a9_45",yi="_bounceInUp_1k9a9_280",ki="_animated_1k9a9_284",$i="_infinite_1k9a9_290",Ni="_fast_1k9a9_314",Ci="_faster_1k9a9_318",Si="_slow_1k9a9_322",Ii="_slower_1k9a9_326",Ai="_container_1k9a9_340",Ri="_left_1k9a9_344",Ei="_right_1k9a9_348",qi="_pano_1k9a9_359",Li="_loading_1k9a9_369",Ti="_progress_1k9a9_1",Di="_next_1k9a9_395",ie={"ant-switch-small":"_ant-switch-small_1k9a9_15",none:gi,tl:xi,"br-btn":"_br-btn_1k9a9_33",pr:bi,pa:ji,bn:wi,ellipsis:vi,bounceInUp:yi,animated:ki,infinite:$i,"delay-1s":"_delay-1s_1k9a9_294","delay-2s":"_delay-2s_1k9a9_298","delay-3s":"_delay-3s_1k9a9_302","delay-4s":"_delay-4s_1k9a9_306","delay-5s":"_delay-5s_1k9a9_310",fast:Ni,faster:Ci,slow:Si,slower:Ii,container:Ai,left:Ri,right:Ei,"app-banner":"_app-banner_1k9a9_351",pano:qi,loading:Li,progress:Ti,"select-container":"_select-container_1k9a9_387","select-slot":"_select-slot_1k9a9_391",next:Di,"pano-icon":"_pano-icon_1k9a9_398"}
1,Ui="_box_1o4aq_1",zi="_header_1o4aq_7",Pi="_sale_1o4aq_23",Bi="_deal_1o4aq_36",Mi="_bt_1o4aq_71",Hi="_pt_1o4aq_89",K={box:Ui,header:zi,"title-box":"_title-box_1o4aq_18",sale:Pi,deal:Bi,"count-box":"_count-box_1o4aq_52","sale-count":"_sale-count_1o4aq_57","deal-count":"_deal-count_1o4aq_58","bt-box":"_bt-box_1o4aq_71",bt:Mi,pt:Hi,"extra-swiper-wrapper":"_extra-swiper-wrapper_1o4aq_104","item-box":"_item-box_1o4aq_116"},{www:mt}=C,{fetchStatistics:Oi}=ae,Ki=()=>{const[t,i]=u.useState({}),s=async()=>{var n;try{const a=await Oi(["itemOnSale","itemDeal"]);if(a&&a.status===12e3){const c=((n=a==null?void 0:a.data)==null?void 0:n.items)??[];let l={dealTotal:0,inStockTotal:0};c.forEach(o=>{o.type==="itemOnSale"?l={...l,inStockTotal:((o==null?void 0:o.count)??0).toLocaleString()}:o.type==="itemDeal"&&(l={...l,dealTotal:((o==null?void 0:o.count)??0).toLocaleString()})}),i(l)}}catch(a){console.error(a)}};return u.useEffect(()=>{s()},[]),e.jsxs("div",{className:K.box,children:[e.jsx("div",{className:K.header}),e.jsxs("div",{className:K["title-box"],children:[e.jsx("div",{className:K.sale,children:e.jsx("span",{children:"å¨å®ä¸å¤è»"})}),e.jsx("div",{className:K.deal,children:e.jsx("span",{children:"ç´¯è¨æäº¤"})})]}),e.jsxs("div",{className:K["count-box"],children:[e.jsxs("div",{className:K["sale-count"],children:[t.inStockTotal||0,e.jsx("span",{children:"å°"})]}),e.jsxs("div",{className:K["deal-count"],children:[t.dealTotal||0,e.jsx("span",{children:"å°"})]})]}),e.jsxs("div",{className:K["bt-box"],children:[e.jsx("a",{href:`${mt}/help-sell.html`,className:K.bt,children:"è»åè³£è»"}),e.jsxs("a",{target:"_blank",className:f(K.pt,"tracking-car-resource-home-sell-btn"),href:`${mt}/sell-spread.html?source=8891&entry=hp-hp-cse_pcs`,onClick:()=>{S("usedcarResource_clicked",{channel:"é¦é ",spm:"",page:"é¦é ",module:"è³£è»å ¥å£",element:"å ¥å£",element_id:"å人賣è»",next_spm:"2.46.71.92"})},children:["å人賣è»",e.jsx("div",{className:K["extra-swiper-wrapper"],children:e.jsx(ws,{scrollHeight:20,loop:!0,wrapperStyles:{width:"64px",overflow:"hidden"},children:["é«å¹æ¶è»","å 費賣è»"].map((n,a)=>e.jsx("div",{className:K["item-box"],dangerouslySetInnerHTML:{__html:n}},a))})})]})]})]})},Fi="_AskPriceCar_jmdvz_1",Vi="_title_jmdvz_8",Yi="_desc_jmdvz_14",Wi="_one_jmdvz_27",Xi="_two_jmdvz_31",Gi="_btn_jmdvz_48",M={AskPriceCar:Fi,title:Vi,desc:Yi,"select-params":"_select-params_jmdvz_20",one:Wi,two:Xi,btn:Gi,"t-2":"_t-2_jmdvz_61","t-1":"_t-1_jmdvz_72"},Ji=Tt.div` 2.text-black { 3 color: rgb(51 51 51)); 4} 5 6.text-14 { 7 font-size: 14px; 8} 9.pt-20 { 10 padding-top: 20px; 11} 12.pl-18 { 13 padding-left: 18px; 14} 15.bg-white { 16 background-color: #fff; 17} 18.border-1 { 19 border-color: rgb(232 232 232); 20} 21.border-solid { 22 border-style: solid; 23} 24.rounded-4 { 25 border-radius: 4px; 26} 27.w-500 { 28 width: 500px; 29} 30.top-30 { 31 top: 30px; 32} 33.right-10 { 34 right: -100px; 35} 36.absolute { 37 position: absolute; 38} 39.inline-block { 40 display: inline-block; 41} 42.font-normal { 43 font-weight: 400; 44} 45.cursor-pointer { 46 cursor: pointer; 47} 48.ml-20 { 49 margin-left: 20px; 50} 51.mb-20 { 52 margin-bottom: 20px; 53} 54.font-500 { 55 font-weight: 700; 56} 57.text-999 { 58 --tw-text-opacity: 1; 59 color: rgb(153 153 153); 60} 61.text-primary { 62 color: #3264ff; 63} 64.flex { 65 display: flex; 66} 67li:hover { 68 color: #3264ff; 69} 70`,{fetchInquiryRegion:Qi}=z,Zi=({regionName:t,setParams:i,brandId:s})=>{var l;const[n,a]=u.useState({}),c=async()=>{try{const o=await Qi({b:s});o&&o.status===12e3&&a(o.data)}catch(o){console.log("ð ~ error:",o)}};return u.useEffect(()=>{s&&c()},[s]),e.jsx(Ji,{children:e.jsx("section",{className:"w-500 bg-white rounded-4 border-solid border-1 text-black text-14 pt-20 pl-18 top-30 right-10 absolute",style:{boxShadow:"0px 8px 20px 0px rgba(0, 0, 0, 0.1)",zIndex:1},children:Object.keys(n).length!==0?(l=n==null?void 0:n.parts)==null?void 0:l.map((o,d)=>e.jsxs("div",{className:"mb-20",children:[e.jsx("label",{className:"inline-block font-black font-500",children:o.name}),e.jsx("ul",{className:"inline-block font-normal text-999 cursor-pointer hover:text-primary",children:Array.isArray(o.regions)&&o.regions.map((r,_)=>e.jsx("li",{className:`inline-block font-normal ${t===n.regions[r].name?"text-primary":"text-999"} ml-20 cursor-pointer hover:text-primary`,onClick:()=>{i({regionsId:n.regions[r].id,regionName:n.regions[r].name,showRegionSelect:!1})},children:n.regions[r].name},_))})]},d)):e.jsx("div",{style:{padding:"0 20px 20px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx($s,{})})})})},er=Tt.div` 71.text-black { 72 color: rgb(51 51 51)); 73} 74 75.text-14 { 76 font-size: 14px; 77} 78.pt-20 { 79 padding-top: 20px; 80} 81.pl-18 { 82 padding-left: 18px; 83} 84.bg-white { 85 background-color: #fff; 86} 87.border-1 { 88 border-color: rgb(232 232 232); 89} 90.border-solid { 91 border-style: solid; 92} 93.rounded-4 { 94 border-radius: 4px; 95} 96.w-500 { 97 width: 500px; 98} 99.top-30 { 100 top: 30px; 101} 102.right-10 { 103 right: -100px; 104} 105.absolute { 106 position: absolute; 107} 108.inline-block { 109 display: inline-block; 110} 111.font-normal { 112 font-weight: 400; 113} 114.cursor-pointer { 115 cursor: pointer; 116} 117.ml-20 { 118 margin-left: 20px; 119} 120.mb-20 { 121 margin-bottom: 20px; 122} 123.font-500 { 124 font-weight: 700; 125} 126.w-208 { 127 width: 208px; 128} 129.h-532 { 130 height: 532px; 131} 132.text-999 { 133 --tw-text-opacity: 1; 134 color: rgb(153 153 153); 135} 136.text-white { 137 color: #fff; 138} 139.text-primary { 140 color: #3264ff; 141} 142.bg-primary { 143 background: #3264ff; 144} 145.flex { 146 display: flex; 147} 148.flex { 149 display: flex; 150} 151 152.z-30 { 153 z-index: 30; 154} 155.top-30 { 156 top: 30px; 157} 158.left-0 { 159 left: 0px; 160} 161.absolute { 162 position: absolute; 163} 164.text-666 { 165 --tw-text-opacity: 1; 166 color: rgb(102 102 102 / var(--tw-text-opacity)); 167} 168 169.leading-32 { 170 line-height: 32px; 171} 172.font-normal { 173 font-weight: 400; 174} 175.leading-24 { 176 line-height: 24px; 177} 178.text-center { 179 text-align: center; 180} 181.w-24 { 182 width: 24px; 183} 184.h-24 { 185 height: 24px; 186} 187.text-14 { 188 font-size: 14px; 189} 190.text-left { 191 text-align: left; 192} 193.pr-10 { 194 padding-right: 10px; 195} 196 197.text-ellipsis { 198 text-overflow: ellipsis; 199} 200.flex-1 { 201 flex: 1 1 0%; 202} 203.pl-16 { 204 padding-left: 16px; 205} 206.bg-white { 207 --tw-bg-opacity: 1; 208 background-color: rgb(255 255 255 / var(--tw-bg-opacity)); 209} 210.justify-between { 211 justify-content: space-between; 212} 213.items-center { 214 align-items: center; 215} 216.cursor-pointer { 217 cursor: pointer; 218} 219.w-full { 220 width: 100%; 221} 222.h-32 { 223 height: 32px; 224} 225.flex { 226 display: flex; 227} 228.font-normal { 229 font-weight: 400; 230} 231.text-14 { 232 font-size: 14px; 233} 234.bg-E8E8E8 { 235 --tw-bg-opacity: 1; 236 background-color: rgb(232 232 232 / var(--tw-bg-opacity)); 237} 238.items-center { 239 align-items: center; 240} 241.flex-col { 242 flex-direction: column; 243} 244.cursor-pointer { 245 cursor: pointer; 246} 247.w-24 { 248 width: 24px; 249} 250.h-532 { 251 height: 532px; 252} 253.overflow-scroll { 254 overflow: scroll; 255} 256 257.w-208 { 258 width: 208px; 259} 260.h-532 { 261 height: 532px; 262} 263.leading-32 { 264 line-height: 32px; 265} 266 267.pl-16 { 268 padding-left: 16px; 269} 270.bg-f5f5f5 { 271 --tw-bg-opacity: 1; 272 background-color: rgb(245 245 245 / var(--tw-bg-opacity)); 273} 274.cursor-pointer { 275 cursor: pointer; 276} 277.w-full { 278 width: 100%; 279} 280.h-32 { 281 height: 32px; 282} 283`,{fetchNewCarBrands:tr}=z,sr=({showKindSelect:t,onChange:i,className:s,setOpen:n})=>{var ee,T,V;const a=u.useRef(null),c=u.useRef(null),[l,o]=u.useState(),[d,r]=u.useState([]),_=ps(a),[h,p]=Dt({index:"A",selectBrand:{},selectKind:{}}),g=async()=>{var E;const v=await tr({hasKind:1,type:"inquiry"});v.status===12e3&&o((E=v.data)==null?void 0:E.brand)},A=v=>{var q,G;p({index:v}),i==null||i("index",v);const E=document.getElementById(`brands-select-${v}`);E&&(a!=null&&a.current)&&((G=(q=a==null?void 0:a.current)==null?void 0:q.scrollTo)==null||G.call(q,0,E==null?void 0:E.offsetTop))},$=v=>{p({selectBrand:v}),i==null||i("brand",v)},L=v=>{p({selectKind:v}),i==null||i("kind",v)};return Cs(()=>{g()}),Ns(()=>{n(!1)},[c,document.getElementById("select-params")]),u.useEffect(()=>{const{top:v}=_||{},E=d.findIndex((G,B)=>d[B+1]&&v>d[B]&&v<d[B+1]);if(E>-1&&p({index:l==null?void 0:l[E].label}),d.length)return;const q=[];l==null||l.forEach(G=>{const B=document.getElementById(`brands-select-${G.label}`);B&&q.push(B==null?void 0:B.offsetTop)}),r(q)},[_,t]),!(l!=null&&l.length)||!t?e.jsx(e.Fragment,{}):e.jsx(er,{children:e.jsxs("div",{className:`flex ${s}`,ref:c,style:{left:"-80px",boxShadow:"0px 4px 20px 0px rgba(0,0,0,0.20)"},children:[e.jsx("div",{className:"w-24 h-532 flex flex-col bg-E8E8E8 text-14 font-normal text-666 items-center cursor-pointer",children:l==null?void 0:l.map(v=>e.jsx("div",{className:`w-24 h-24 leading-24 text-center ${v.label===h.index?"bg-primary rounded-4 text-white":""}`,onClick:()=>{A(v.label)},children:v.label},v.label))}),e.jsx("div",{className:"w-208 h-532 overflow-scroll",ref:a,children:l==null?void 0:l.map(v=>{var E;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-full h-32 bg-f5f5f5 leading-32 pl-16 cursor-pointer",id:`brands-select-${v.label}`,children:v.label},v.label),(E=v.list)==null?void 0:E.map(q=>{var G,B;return e.jsxs("div",{className:`w-full flex items-center justify-between h-32 leading-32 pl-16 pr-10 text-left text-14 text-black font-normal cursor-pointer ${((G=h.selectBrand)==null?void 0:G.id)===q.id?"bg-primary text-white":"bg-white text-black"}`,onClick:()=>{$(q)},children:[e.jsx("div",{className:"flex-1 text-ellipsis",children:q==null?void 0:q.name}),e.jsx(wn,{size:12,fill:((B=h.selectBrand)==null?void 0:B.id)===q.id?"#fff":"#bbb"})]},q.id)})]})})}),((ee=h==null?void 0:h.selectBrand)==null?void 0:ee.id)&&e.jsxs("div",{className:"w-208 h-532 overflow-scroll bg-white",children:[e.jsx("div",{className:"w-full flex items-center justify-between h-32 leading-32 bg-white pl-16 pr-10 text-left text-14 text-black font-normal cursor-pointer",children:"å ¨é¨è»æ¬¾"}),(V=(T=h==null?void 0:h.selectBrand)==null?void 0:T.children)==null?void 0:V.map(v
283=>e.jsx("div",{className:`w-full h-32 leading-32 pl-16 pr-10 text-left text-14 font-normal cursor-pointer ${h.selectKind.id===v.id?"bg-primary text-white":" bg-white text-black "}`,onClick:E=>{E.stopPropagation(),L(v)},children:v.name},v.id))]})]})})},{fetchNewCarBrands:nr}=z,ar=({})=>{const[t,i]=u.useState([]),[s,n]=Dt({regionName:"",regionsId:"",showKindSelect:!1,showRegionSelect:!1,brandData:{},kindData:{},temporaryBrand:{}}),{regionName:a,regionsId:c,showRegionSelect:l,brandData:o,kindData:d,showKindSelect:r,temporaryBrand:_}=s,h=async()=>{var p;try{const g=await nr({hasKind:1,type:"inquiry"});g.status===12e3&&i((p=g.data)==null?void 0:p.brand)}catch{}};return u.useEffect(()=>{h()},[]),e.jsx(e.Fragment,{children:e.jsxs("div",{id:"AskPriceCar",className:M.AskPriceCar,children:[e.jsx("div",{className:M.title,children:"æ°è»ä¸éµè©¢å¹"}),e.jsx("div",{className:M.desc,children:"ä¸éµè©¢3å®¶ï¼æå¿«2åéå ±å¹ï¼"}),e.jsxs("div",{className:"",style:{position:"relative"},children:[e.jsx(sr,{showKindSelect:r,setOpen:p=>{n({showKindSelect:p})},open:r,onChange:(p,g)=>{p==="brand"&&n({temporaryBrand:g}),p==="kind"&&n({showKindSelect:!r,kindData:g,brandData:_})},className:"absolute left-30 top-30 z-30"}),e.jsxs("div",{className:M["select-params"],id:"select-params",children:[e.jsxs("div",{className:M.one,children:[e.jsx("span",{children:"*"}),"è» æ¬¾ï¼"]}),e.jsxs("div",{className:M.two,onClick:p=>{p.stopPropagation(),n({showKindSelect:!r,showRegionSelect:!1})},children:[Object.keys(d).length>0?e.jsxs("div",{className:M["t-2"],children:[o.name," ",d.name]}):e.jsx("div",{className:M["t-1"],children:"è«é¸æå» çè»æ¬¾"}),r?e.jsx(st,{size:22}):e.jsx(nt,{size:22})]})]})]}),e.jsxs("div",{className:M["select-params"],children:[l&&e.jsx(Zi,{brandId:o.id,setParams:n,regionName:a}),e.jsxs("div",{className:M.one,children:[e.jsx("span",{children:"*"}),"å° åï¼"]}),e.jsxs("div",{className:M.two,style:Object.keys(d).length>0?{}:{background:"#f3f3f3"},onClick:p=>{p.stopPropagation(),Object.keys(d).length>0&&n({showRegionSelect:!l,showKindSelect:!1})},children:[a?e.jsx("div",{className:M["t-2"],children:a}):e.jsx("div",{className:M["t-1"],children:"è«é¸æå°å"}),l?e.jsx(st,{size:22}):e.jsx(nt,{size:22})]})]}),e.jsx("span",{id:"tracking-HomeAskPrice","data-source":"é¦é -å³å´è¡¨å®-ä¸éµè©¢å¹",children:e.jsx("div",{className:M.btn,onClick:p=>{if(p.stopPropagation(),!d.id){n({showKindSelect:!0,showRegionSelect:!1});return}if(!c){n({showRegionSelect:!0,showKindSelect:!1});return}const g={b:o.id,k:d.id,regionId:c,source:"é¦é -å³å´è¡¨å®-ä¸éµè©¢å¹"};window.open(`https://c.8891.com.tw/ask/price?${ke.stringify(g)}`,"_blank")},children:"ä¸éµè©¢å¹"})})]})})},{fetchNewcarHot:ir,fetchNewcarSelect:rr,fetchUsedcarHot:Nm,fetchUsedcarSelect:or,fetchNewcarPano:cr,fetchUsedcarHotBrands:lr}=z,{c:pt,image:dr,www:_r}=C;class hr extends y.Component{constructor(){super(...arguments);m(this,"state",{newcar:{hot:[],select:[]},usedcar:{hot:[],select:[]}});m(this,"fetch",async()=>{var s;try{const n=await ir({ads:1}),a=await rr(),c=await lr(),l=await or(),o=await cr();n&&n.status===12e3&&a&&a.status===12e3&&this.setState({newcar:{hot:n.data.list||[],select:a.data.list||[]}}),c&&c.status===12e3&&l&&l.status===12e3&&this.setState({usedcar:{hot:((s=c==null?void 0:c.data)==null?void 0:s.items)||[],select:l.data.list||[]}}),o&&o.status===12e3&&this.setState({pano:o.data.list.map(d=>({...d,link:`${pt}/pano/${d.kindId}`}))})}catch(n){console.error(n)}})}componentDidMount(){this.fetch()}render(){const{type:s}=this.props,{newcar:n,usedcar:a}=this.state,{hot:c}=this.state[s];return e.jsxs("section",{className:ie.container,children:[e.jsxs("div",{className:ie.left,children:[e.jsx(La,{dataSource:c,type:s}),e.jsx("div",{className:ie["select-container"],children:e.jsxs("div",{className:f(ie["select-slot"],{[ie.next]:s==="usedcar"}),children:[e.jsx(ht,{dataSource:n.select,type:"newcar"}),e.jsx(ht,{dataSource:a.select,type:"usedcar"})]})})]}),e.jsxs("div",{className:ie.right,children:[s==="usedcar"&&e.jsx(Ki,{}),s==="newcar"&&e.jsx(ar,{}),s==="newcar"?e.jsx("a",{className:ie["app-banner"],href:`${pt}/photoIndex-appDown.html`,target:"_blank",onClick:()=>{x("å
¨ç«é¦é¡µ","APPä¸è½½")},children:e.jsx("img",{src:`${dr}/home/img-42.png`})}):e.jsx("a",{className:ie["app-banner"],href:`${_r}/index-appDown.html`,target:"_blank",onClick:()=>{x("å
¨ç«é¦é¡µ","APPä¸è½½")},children:e.jsx("img",{src:"https://photo.8891.com.tw/2023/08/10/1691631469285181.png"})})]})]})}}
283const mr="_none_1n3jw_27",pr="_tl_1n3jw_30",ur="_pr_1n3jw_36",fr="_pa_1n3jw_39",gr="_bn_1n3jw_42",xr="_ellipsis_1n3jw_45",br="_bounceInUp_1n3jw_280",jr="_animated_1n3jw_284",wr="_infinite_1n3jw_290",vr="_fast_1n3jw_314",yr="_faster_1n3jw_318",kr="_slow_1n3jw_322",$r="_slower_1n3jw_326",Nr="_container_1n3jw_340",Cr="_left_1n3jw_344",Sr="_middle_1n3jw_348",Ir="_right_1n3jw_353",Ar="_title_1n3jw_356",Rr="_box_1n3jw_370",Er="_row_1n3jw_380",qr="_highlight_1n3jw_400",Lr="_slide_1n3jw_411",Tr="_h3_1n3jw_416",Dr="_rank_1n3jw_438",Ur="_compare_1n3jw_500",zr="_video_1n3jw_403",Pr="_prev_1n3jw_656",Br="_next_1n3jw_671",Mr="_progress_1n3jw_1",j={"ant-switch-small":"_ant-switch-small_1n3jw_15",none:mr,tl:pr,"br-btn":"_br-btn_1n3jw_33",pr:ur,pa:fr,bn:gr,ellipsis:xr,bounceInUp:br,animated:jr,infinite:wr,"delay-1s":"_delay-1s_1n3jw_294","delay-2s":"_delay-2s_1n3jw_298","delay-3s":"_delay-3s_1n3jw_302","delay-4s":"_delay-4s_1n3jw_306","delay-5s":"_delay-5s_1n3jw_310",fast:vr,faster:yr,slow:kr,slower:$r,container:Nr,left:Cr,middle:Sr,right:Ir,title:Ar,box:Rr,row:Er,"row-link":"_row-link_1n3jw_386",highlight:qr,"video-icon":"_video-icon_1n3jw_403",slide:Lr,h3:Tr,"right-title":"_right-title_1n3jw_422",rank:Dr,"rank-row":"_rank-row_1n3jw_441","rank-row-link":"_rank-row-link_1n3jw_473","rank-thumb":"_rank-thumb_1n3jw_479","rank-info":"_rank-info_1n3jw_484","rank-title":"_rank-title_1n3jw_487","rank-content":"_rank-content_1n3jw_496",compare:Ur,"compare-dividing":"_compare-dividing_1n3jw_519","compare-item":"_compare-item_1n3jw_528","compare-thumb":"_compare-thumb_1n3jw_531","compare-title":"_compare-title_1n3jw_536","list-link":"_list-link_1n3jw_544","list-row":"_list-row_1n3jw_571","list-text":"_list-text_1n3jw_586","slide-item":"_slide-item_1n3jw_601",video:zr,"item-tag":"_item-tag_1n3jw_640","carousel-wrapper":"_carousel-wrapper_1n3jw_653",prev:Pr,next:Br,"tc-antialiased":"_tc-antialiased_1n3jw_691","color-2e3038":"_color-2e3038_1n3jw_695",progress:Mr},Bt=y.createRef();let De=!1,ve;const Hr=({setFalse:t,setTrue:i})=>{const s=Bt.current;if(De=!1,!s)return;new IntersectionObserver(a=>{a[0].isIntersecting?(ve.slot&&De&&Ut(ve.slot),i()):(De=!0,t())},{threshold:[.75]}).observe(s)},Or=y.memo(t=>{const{children:i,dataSource:s,currentSide:n}=t,[a,{setTrue:c,setFalse:l}]=Et(!1);return ve=s[n],u.useEffect(()=>{Hr({setTrue:c,setFalse:l})},[]),u.useEffect(()=>{a&&ve.slot&&Ut(ve.slot)},[n]),e.jsx("div",{ref:Bt,children:i})}),Kr="_AdSimpleCarousel_rvmbk_1",Fr="_carousel_rvmbk_5",Vr="_prev_rvmbk_38",Yr="_next_rvmbk_50",Ne={AdSimpleCarousel:Kr,carousel:Fr,prev:Vr,next:Yr};class Mt extends y.PureComponent{constructor(){super(...arguments);m(this,"state",{currentSide:0,dataSource:[]});m(this,"adData",[]);m(this,"slotsCount",0);m(this,"carouselRef",y.createRef());m(this,"paging",s=>{const{current:n}=this.carouselRef;if(n){if(s===1)try{n.next()}catch{}else if(s===-1)try{n.prev()}catch{}}})}componentDidMount(){let s=this;window.googletag&&window.googletag.cmd.push(()=>{window.googletag.pubads().addEventListener("slotRenderEnded",s.slotRenderEnded.bind(s))})}slotRenderEnded(s){const{slots:n}=this.props;if(n.includes(s.slot.getAdUnitPath()))if(this.slotsCount+=1,s.isEmpty)this.slotsCount===n.length&&this.mergeData();else{let c=s.slot.getHtml(),l=Ss(c,s.slot.getAdUnitPath());c!==""&&this.adData.push({...l,slot:s.slot.getAdUnitPath()}),this.slotsCount===n.length&&this.mergeData()}}mergeData(){const{dataSource:s}=this.props;let n=[];this.adData.filter(l=>{Object.keys(l).length>1&&n.push(l)});let a=n.length;s.splice(-a,a);let c=s.concat(n);this.setState({dataSource:c.sort(()=>Math.random()-.5)})}afterChange(s){const{afterChange:n}=this.props;this.setState({currentSide:s}),n&&n(s)}render(){const{autoplay:s,render:n,slots:a,pagingBtn:c}=this.props,{dataSource:l,currentSide:o}=this.state;return e.jsxs("div",{className:Ne.AdSimpleCarousel,children:[c&&e.jsx("div",{className:Ne.prev,onClick:()=>this.paging(-1)}),a&&a.map((d,r)=>e.jsx(ns,{slot:d,width:"fluid",height:"fluid"},r)),l.length>0&&e.jsx(Or,{dataSource:l,currentSide:o,children:e.jsx(qe,{className:Ne.carousel,autoplay:s,afterChange:d=>this.afterChange(d),ref:this.carouselRef,children:l.map((d,r)=>e.jsx("div",{children:n?n(d):e.jsx("a",{href:d.link||d.url,children:e.jsx("img",{src:d.img||d.thumb})},r)},r))})}),c&&e.jsx("div",{className:Ne.next,onClick:()=>this.paging(1)}),l.length>0&&e.jsx(qt,{data:l[o]})]})}}m(Mt,"defaultProps",{autoplay:!1,pagingBtn:!1});const Wr="_img_pprim_1",Xr={img:Wr},fe=t=>{const{className:i}=t;return e.jsx("img",{...t,className:f([Xr.img,i])})},Ht=({children:t,tooltipTitle:i})=>{const s=u.useRef(null),[n,a]=u.useState(!1);if(!u.isValidElement(t))return console.warn("OverflowTooltip åªæ¯æå¯æ ref çå
ç´ "),t;const c=()=>
283{if(s.current){const o=s.current,d=window.getComputedStyle(o),r=d.whiteSpace,_=d.getPropertyValue("-webkit-line-clamp");let h=!1;_&&_!=="none"?h=o.scrollHeight>o.clientHeight:h=o.scrollWidth>o.clientWidth,a(h)}};u.useEffect(()=>{if(!s.current)return;const o=new ResizeObserver(()=>{c()});return o.observe(s.current),c(),()=>{o.disconnect()}},[i]);const l=u.cloneElement(t,{ref:s});return e.jsx(e.Fragment,{children:n?e.jsx(Is,{title:i,overlayStyle:{position:"fixed",top:0},children:l}):l})},{postInitialCollect:ut}=ae,{fetchFocusList:Gr,fetchSellRank:Jr,fetchCompare:Qr,fetchFocusSlide:Zr,collect:Ce}=z,{c:Ue}=C;class eo extends y.Component{constructor(){super(...arguments);m(this,"carouselRef",y.createRef());m(this,"state",{focus:{toptitle:{id:0,type:0,subtitle:"",link:""},box:{id:0,type:0,subtitle:"",link:""},list:[]},rank:[],slide:[],compare:[],isCarouselShow:!1});m(this,"fetch",async()=>{try{const s=await Gr(),n=await Jr({limit:3}),a=await Qr({ads:1}),c=await Zr(),l={};s&&s.status===12e3&&(l.focus=s.data),n.data&&(l.rank=n.data.data),a&&a.status===12e3&&(l.compare=a.data.list||[]),c&&c.status===12e3&&(l.slide=c.data.list||[]),this.setState(l)}catch(s){console.error(s)}});m(this,"refresh",s=>{ut(s,"show")});m(this,"compareJump",s=>{x("å
¨ç«é¦é¡µ","两车PK"),s.ads&&ut(s.ads,"click")});m(this,"gaRefresh",(s="",n="",a)=>{x(s,n,a)});m(this,"afterChange",s=>{var c,l,o,d;const{isCarouselShow:n,slide:a}=this.state;n&&S("element_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"åç",element_id:"é¦é -ç¦é»banner",next_spm:"38.216.131.184",object_type:((c=a[s])==null?void 0:c.type)===3?"å½±é³":"æç« ",object_id:((l=a[s])==null?void 0:l.id)||0}),n&&((o=a[s-1])!=null&&o.id)&&x("ç¦ç¹","ç¦ç¹-è½®æå¾-æå
",`${(d=a[s-1])==null?void 0:d.id}`)})}componentDidMount(){this.fetch()}render(){const{rank:s,compare:n,focus:a,slide:c}=this.state,{toptitle:l,box:o,list:d}=a;return e.jsxs("section",{className:j.container,children:[e.jsxs("div",{className:j.left,children:[e.jsx("h3",{className:f(j.h3,j["tc-antialiased"],j["color-2e3038"]),children:"ç¦é»"}),e.jsx(O,{styles:{display:"block"},threshold:1,refresh:()=>{},observe:r=>this.setState({isCarouselShow:r.isIntersecting}),children:e.jsx("div",{className:j.slide,children:c.length>0&&e.jsx(Mt,{autoplay:!0,slots:["/173427088/global-homepage-focus-banner01","/173427088/global-homepage-focus-banner02","/173427088/global-homepage-focus-banner03"],dataSource:c,pagingBtn:!0,afterChange:this.afterChange,render:r=>e.jsxs("a",{href:r.link,target:"_blank",className:f(j["slide-item"],{[j.video]:r.type===3}),onClick:()=>{x("ç¦ç¹","è½®æå¾"),x("ç¦ç¹","ç¦ç¹-è½®æå¾-ç¹å»",r.id),Ce(r.id,r.type,"pcé¦é ç¦é»"),S("element_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"åç",element_id:"é¦é -ç¦é»banner",next_spm:"38.216.131.184",object_type:r.type===3?"å½±é³":"æç« ",object_id:r.id})},children:[e.jsx(fe,{src:r.img||r.thumb}),e.jsx("p",{children:r.subtitle||r.title})]})})})})]}),e.jsxs("div",{className:j.middle,children:[e.jsx(O,{styles:{display:"block"},first:!0,threshold:1,refresh:()=>{this.gaRefresh("ç¦ç¹","ç¦ç¹-头æ¡-æå
",l.id),l.type===3?S("video_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -影鳿¨é¡-å½±é³",next_spm:"38.216.131.186"}):S("article_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -æç« æ¨é¡-æç« ",next_spm:"38.216.131.185"})}}),e.jsx("div",{className:j.title,children:e.jsx("a",{href:l.link,target:"_blank",onClick:()=>{x("ç¦ç¹","头æ¡"),x("ç¦ç¹","ç¦ç¹-头æ¡-ç¹å»",`${l.id}`),Ce(l.id,l.type,"pcé¦é ç¦é»"),l.type===3?S("video_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -影鳿¨é¡-å½±é³",next_spm:"38.216.131.186",object_id:l.id}):S("article_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -æç« æ¨é¡-æç« ",next_spm:"38.216.131.185"})}
283,children:l.subtitle})}),e.jsx(O,{styles:{display:"block"},first:!0,threshold:1,refresh:()=>{this.gaRefresh("ç¦ç¹","ç¦ç¹-å¸¦æ¡æ é¢-æå
",o.id),o.type===3?S("video_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -影鳿¨é¡-å½±é³",next_spm:"38.216.131.186"}):S("article_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -æç« æ¨é¡-æç« ",next_spm:"38.216.131.185"})}}),e.jsx("a",{className:j.box,href:o.link,target:"_blank",onClick:()=>{x("ç¦ç¹","å¸¦æ¡æ é¢"),x("ç¦ç¹","ç¦ç¹-å¸¦æ¡æ é¢-ç¹å»",`${o.id}`),Ce(o.id,o.type,"pcé¦é ç¦é»"),o.type===3?S("video_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -影鳿¨é¡-å½±é³",next_spm:"38.216.131.186",object_id:o.id}):S("article_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -æç« æ¨é¡-æç« ",next_spm:"38.216.131.185"})},children:o.subtitle}),e.jsx("ul",{className:j.list,children:d.map((r,_)=>e.jsx("li",{className:j["list-row"],children:r.map((h,p)=>e.jsxs("a",{className:f(j["list-link"],{[j.highlight]:!!h.highlight}),href:h.link,target:"_blank",onClick:()=>{x("ç¦ç¹","å°æ é¢",`第${_+1}è¡-${p<=0?"å·¦":"å³"}${h.highlight?"-é«äº®":""}`),x("ç¦ç¹","ç¦ç¹-å°æ é¢-ç¹å»",`${h.id}`),Ce(h.id,h.type,"pcé¦é ç¦é»"),h.type===3?S("video_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -影鳿¨é¡-å½±é³",next_spm:"38.216.131.186",object_id:h.id}):S("article_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -æç« æ¨é¡-æç« ",next_spm:"38.216.131.185"})},children:[h.type===3&&e.jsx("span",{className:j["video-icon"]}),e.jsx(O,{threshold:1,first:!0,refresh:()=>{this.gaRefresh("ç¦ç¹","ç¦ç¹-å°æ é¢-æå
",h.id),h.type===3?S("video_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -影鳿¨é¡-å½±é³",next_spm:"38.216.131.186"}):S("article_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -æç« æ¨é¡-æç« ",next_spm:"38.216.131.185"})}}),e.jsx("span",{className:j["list-text"],children:h.subtitle!==""?h.subtitle:h.title})]},h.id))},_))})]}),e.jsxs("div",{className:j.right,children:[e.jsxs("div",{className:j["right-title"],children:[e.jsx("h3",{className:f(j["tc-antialiased"],j["color-2e3038"]),children:"é·éæè¡"}),e.jsx("a",{href:`${Ue}/sales/top`,target:"_blank",onClick:()=>{x("å
¨ç«é¦é¡µ","ééæè¡")},children:"æ¥çå
¨é¨"})]}),e.jsx("ul",{className:j.rank,children:s.map(r=>e.jsx("li",{className:j["rank-row"],children:e.jsxs("a",{className:j["rank-row-link"],href:`${Ue}/photoModel-info.html?k=${r.kindId}`,target:"_blank",onClick:()=>{x("å
¨ç«é¦é¡µ","ééæè¡")},children:[e.jsx("img",{src:r.thumb,className:j["rank-thumb"]}),e.jsxs("div",{className:j["rank-info"],children:[e.jsx(Ht,{tooltipTitle:`${r.brandName} ${r.kindName}`,children:e.jsx("p",{className:j["rank-title"],children:`${r.brandName} ${r.kindName}`})}),e.jsxs("p",{className:j["rank-content"],children:["é·éï¼",r.sales,"è¼"]})]})]})},r.id))}),e.jsxs("div",{className:j["carousel-wrapper"],children:[Array.isArray(n)&&n.length>1&&e.jsx("div",{className:j.prev,onClick:()=>{var r;return(r=this.carouselRef.current)==null?void 0:r.prev()}}),e.jsx(qe,{ref:this.carouselRef,draggable:!0,autoplay:!0,autoplaySpeed:5e3,dots:{className:"none"},afterChange:r=>{},style:{position:"relative"},children:Array.isArray(n)&&n.length>0&&n.map((r,_)=>{var h,p,g,A,$,L,ee,T,V,v,E,q;return e.jsx("div",{children:e.jsxs("a",{id:"tacking-CompareSpec","data-id":`${(h=r==null?void 0:r.left)==null?void 0:h.myid},${(p=r==null?void 0:r.right)==null?void 0:p.myid}`,className:j.compare,href:r!=null&&r.ads&&((g=r==null?void 0:r.ads)!=null&&g.adclick)?(A=r==null?void 0:r.ads)==null?void 0:A.adclick:`${Ue}/photoModel-compare.html?myids=${($=r==null?void 0:r.left)==null?void 0:$.myid},${(L=r==null?void 0:r.right)==null?void 0:L.myid}&t=tc`,target:"_blank",onClick:()=>{var G,B;this.compareJump(r),S("element_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç¦é»",element:"å表",element_id:"é¦é -æç« æ¨é¡-æç« ",next_spm:"38.216.131.185"}),window.trackingInstance.trackEvent&&window.trackingInstance.trackEvent({name:"element_clicked",params:{page_sub_business:"å
¶ä»",page_business:"å
¶ä»",trigger_id:"4105",page_id:"345",trigger_name:"PKæ¯è¼",object_type:"myid",next_spm:"2.345.806.2195",page:"å
¨ç«é¦é ",channel:"é¦é ",element_id:"PKæ¯è¼",element:"æé",module:"PKæ¯è¼å»£å",tracker_method:"config",object_id:`${(G=r==null?void 0:r.left)==null?void 0:G.myid},${(B=r==null?void 0:r.right)==null?void 0:B.myid}`}})},children:[e.jsx(O,{styles:{display:"block"},first:!0,threshold:1,refresh:()=>{window.trackingInstance.trackEvent&&window.trackingInstance.trackEvent({name:"element_exposured",params:{page_sub_business:"å
¶ä»",page_business:"å
¶ä»",trigger_id:"4104",page_id:"345",trigger_name:"PKæ¯è¼",next_spm:"2.345.806.2195",page:"å
¨ç«é¦é ",channel:"é¦é ",element_id:"PKæ¯è¼",element:"æé",module:"PKæ¯è¼å»£å",tracker_method:"config"}}
283)}}),(r==null?void 0:r.ads)&&e.jsx(O,{data:r==null?void 0:r.ads,styles:{display:"block"},first:!0,refresh:()=>{this.refresh(r.ads)}}),(r==null?void 0:r.ads)&&((ee=r==null?void 0:r.ads)==null?void 0:ee.tag)!==""&&e.jsx("div",{className:j["item-tag"],children:(T=r==null?void 0:r.ads)==null?void 0:T.tag}),e.jsxs("div",{className:j["compare-item"],children:[e.jsx("img",{src:(V=r==null?void 0:r.left)==null?void 0:V.thumb,className:j["compare-thumb"]}),e.jsx("p",{className:j["compare-title"],children:(v=r==null?void 0:r.left)==null?void 0:v.fullName})]}),e.jsx("span",{className:j["compare-dividing"]}),e.jsxs("div",{className:j["compare-item"],children:[e.jsx("img",{src:(E=r==null?void 0:r.right)==null?void 0:E.thumb,className:j["compare-thumb"]}),e.jsx("p",{className:j["compare-title"],children:(q=r==null?void 0:r.right)==null?void 0:q.fullName})]})]})},_)})}),Array.isArray(n)&&n.length>1&&e.jsx("div",{className:j.next,onClick:()=>{var r;return(r=this.carouselRef.current)==null?void 0:r.next()}})]})]})]})}}const to="_row_1rkju_1",so="_left_1rkju_9",no="_right_1rkju_14",ze={row:to,left:so,right:no},ao="_none_1cr3w_27",io="_tl_1cr3w_30",ro="_pr_1cr3w_36",oo="_pa_1cr3w_39",co="_bn_1cr3w_42",lo="_ellipsis_1cr3w_45",_o="_bounceInUp_1cr3w_280",ho="_animated_1cr3w_284",mo="_infinite_1cr3w_290",po="_fast_1cr3w_314",uo="_faster_1cr3w_318",fo="_slow_1cr3w_322",go="_slower_1cr3w_326",xo="_link_1cr3w_340",bo="_top_1cr3w_347",jo="_thumb_1cr3w_351",wo="_ripple_1cr3w_1",vo="_title_1cr3w_426",yo="_loading_1cr3w_437",ko="_price_1cr3w_446",$o="_yx_1cr3w_457",No="_extra_1cr3w_470",Co="_selected_1cr3w_486",So="_audi_1cr3w_497",Io="_progress_1cr3w_1",N={"ant-switch-small":"_ant-switch-small_1cr3w_15",none:ao,tl:io,"br-btn":"_br-btn_1cr3w_33",pr:ro,pa:oo,bn:co,ellipsis:lo,bounceInUp:_o,animated:ho,infinite:mo,"delay-1s":"_delay-1s_1cr3w_294","delay-2s":"_delay-2s_1cr3w_298","delay-3s":"_delay-3s_1cr3w_302","delay-4s":"_delay-4s_1cr3w_306","delay-5s":"_delay-5s_1cr3w_310",fast:po,faster:uo,slow:fo,slower:go,link:xo,top:bo,thumb:jo,"video-icon":"_video-icon_1cr3w_357",ripple:wo,"video-tag":"_video-tag_1cr3w_387","video-tag-icon":"_video-tag-icon_1cr3w_399",title:vo,loading:yo,"title-wrap":"_title-wrap_1cr3w_442",price:ko,yx:$o,"yx-1":"_yx-1_1cr3w_462",new:"_new_1cr3w_465",extra:No,selected:Co,audi:So,progress:Io},{auto:Ao,image:ft}=C;function Ro({topDealerItem:t,isAudi:i}){return t?e.jsx("span",{className:N.selected}):i?e.jsx("span",{className:N.audi}):null}function Eo(){return e.jsxs("a",{className:f(N.link),children:[e.jsx("div",{className:N.top,children:e.jsx("span",{className:f(N.thumb,N.loading)})}),e.jsx("span",{className:f(N.title,N.loading)}),e.jsx("span",{className:f(N.price,N.loading)}),e.jsx("div",{className:f(N.extra,N.loading)})]})}const qo=({dataSource:t,icon:i,gaParams:s})=>{const{image:n,title:a,makeDate:c,mile:l,price:o,saleCode:d,itemId:r,isNew:_,isTopdealer:h,videoData:p,displaySaleCode:g,UUID:A}=t,$=u.useRef(null);return u.useEffect(()=>{$&&$.current&&new IntersectionObserver(ee=>{ee[0].isIntersecting&&vs(t)},{threshold:[.75]}).observe($.current)},[$]),e.jsxs("a",{className:N.link,href:`${Ao}/usedauto-infos-${r}.html?id=${r}&sale_code=${d.join(",")}&display__sale_code=${g}&flow_id=${A}`,target:"_blank",ref:$,onClick:()=>{ys(t),s&&x(s[0],s[1],s[2])},children:[e.jsxs("div",{className:N.top,children:[e.jsxs("div",{className:N.thumb,children:[e.jsx(fe,{src:n}),(p==null?void 0:p.videoUrl)&&(p==null?void 0:p.featuredTag)===""&&e.jsx("span",{className:N["video-icon"]}),(p==null?void 0:p.videoUrl)&&(p==null?void 0:p.featuredTag)!==""&&e.jsxs("div",{className:N["video-tag"],children:[e.jsx("span",{className:N["video-tag-icon"]}),e.jsx("span",{children:p==null?void 0:p.featuredTag})]})]}),e.jsx(Ro,{...t})]}),e.jsxs("p",{className:f(N.title,N["title-wrap"]),children:[!!h&&e.jsx("img",{className:f(N.yx,N["yx-1"]),src:`${ft}/home/yx.svg`}),e.jsx("span",{children:a})]}),e.jsx("div",{className:N.extra,children:e.jsxs("p",{children:[c," | ",l]})}),e.jsxs("p",{className:N.price,children:[o,!!_&&e.jsx("img",{className:N.new,src:`${ft}/home/new.svg`})]})]})};function Lo(){return Array.apply(null,Array(4)).map((t,i)=>e.jsx(Eo,{},i))}const Ee=({children:t,dataSource:i,tabs:s=!1,active:n=0,icon:a=[],gaParams:c})=>{let l=[...i];const o=4;s&&(l=i.slice(n*o,(n+1)*o));const d=l.map(r=>e.jsx(qo,{dataSource:r,icon:a[n],gaParams:c},r.itemId));return e.jsxs("div",{className:ze.row,children:[e.jsx("div",{className:ze.left,children:t}),e.jsx("div",{className:ze.right,children:l.length>0?d:Lo()})]})},To="_header_1ispm_1",Do="_link_1ispm_20",de={header:To,"header-left":"_header-left_1ispm_8","header-right":"_header-right_1ispm_11","img-wrapper":"_img-wrapper_1ispm_15",link:Do,"img-thumb":"_img-thumb_1ispm_37"},{auto:gt,image:xt}=C;class bt extends y.Component{render(){const{dataSource:i,imageKey:s,herfArray:n,gaArray:a}=this.props,c=Math.ceil(i.length/2),l=i.splice(0,c),o=i.splice(-c);return e.jsxs("section",{className:de.container,children:[e.jsx(Ee,{dataSource:l,gaParams:["ä¸å¤è½¦","严é","ç©ä»¶ç¹å»"],children:e.jsxs("div",{className:de["img-wrapper"],children:[e.jsx("img",{className:de["img-thumb"],src:`${xt}/home/${s[0]}`,alt:"å´é¸ä¸å¤è»"}),e.jsx("a",{className:de.link,href:`${gt}${n[0]}`,target:"_blank",onClick:()=>{x("ä¸å¤è½¦","严é",a[0])},children:"æ¥çå
¨é¨"})]})}),e.jsx(Ee,{dataSource:o,gaParams:["ä¸å¤è½¦","严é","ç©ä»¶ç¹å»"],children:e.jsxs("div",{className:de["img-wrapper"],children:[e.jsx("img",{className:de["img-thumb"],src:`${xt}/home/${s[1]}`,alt:"å´é¸ä¸å¤è»"}),e.jsx("a",{className:de.link,href:`${gt}${n[1]}`,target:"_blank",onClick:()=>{x("ä¸å¤è½¦","严é",a[1])},children:"æ¥çå
¨é¨"})]})})]})}}const Uo="_link_etequ_1",zo="_alliance_etequ_14",Po="_guild_etequ_17",Bo="_original_etequ_20",Mo="_tabs_etequ_23",Ho="_active_etequ_43",xe
283={link:Uo,alliance:zo,guild:Po,original:Bo,tabs:Mo,active:Ho},{auto:jt,image:Pe}=C,Oo={guild:{name:"å
¬æèªèè»",bg:`${Pe}/home/img-22.png`},alliance:{name:"è¯çèªèè»",bg:`${Pe}/home/img-23.png`},original:{name:"åå» èªèè»",bg:`${Pe}/home/img-21.png`}};class Be extends y.Component{constructor(){super(...arguments);m(this,"state",{active:0});m(this,"isFirst",!1);m(this,"handleHover",s=>{s!==this.state.active&&this.setState({active:s})})}componentDidUpdate(){this.props.dataSource.length>1&&!this.isFirst&&(this.isFirst=!0,this.setState({active:Math.floor(Math.random()*this.props.dataSource.length-1)+1}))}render(){const{active:s}=this.state,{dataSource:n,field:a}=this.props,c=n.reduce((r,_)=>r.concat(_.items),[]),l=Oo[a],o=a==="guild"?"å
¬ä¼":a==="original"?"åå":"èç",d=a==="guild"?"?org_top=3":a==="original"?"?org_top=1":"?org_top=2";return e.jsx(Ee,{dataSource:c,tabs:!0,active:s,icon:n.map(r=>r.icon),gaParams:["ä¸å¤è½¦",o,`${n[s].name}-ç©ä»¶ç¹å»`],children:e.jsxs(e.Fragment,{children:[e.jsx("img",{src:l.bg,alt:l.name}),e.jsx("div",{className:f(xe.tabs,xe[a]),children:n.map((r,_)=>e.jsx("a",{className:f({[xe.active]:_===s}),onMouseEnter:()=>this.handleHover(_),href:`${jt}/oem/${r.domain}/index.html`,target:"_blank",onClick:()=>{x("ä¸å¤è½¦",o,n[s].name)},children:r.name},_))}),e.jsxs("a",{className:f(xe.link,xe[a]),href:`${jt}${d}`,target:"_blank",onClick:()=>{x("ä¸å¤è½¦",o,`å
¨é¨${o}认è¯è½¦`)},children:["å
¨é¨",l.name]})]})})}}const Ko="_container_1sj92_1",Fo="_title_1sj92_4",he={container:Ko,title:Fo,"title-one":"_title-one_1sj92_8","title-two":"_title-two_1sj92_25","title-three":"_title-three_1sj92_42","title-four":"_title-four_1sj92_59"},Vo="_link_478bm_1",Yo={link:Vo},{auto:Wo,image:Xo}=C,Go=t=>{const{dataSource:i}=t;return e.jsx(Ee,{dataSource:i,gaParams:["ä¸å¤è½¦","AUDI严é","ç©ä»¶ç¹å»"],children:e.jsxs(e.Fragment,{children:[e.jsx("img",{src:`${Xo}/home/img-14.png`,alt:"奧迪èªèè»"}),e.jsx("a",{className:Yo.link,href:`${Wo}/oem/Audi/index.html`,target:"_blank",onClick:()=>{x("ä¸å¤è½¦","AUDI严é","å
¨é¨å¥¥è¿ªè®¤è¯è½¦")},children:"å
¨é¨å¥§è¿ªèªèè»"})]})})},{fetchHomeUsedcarOther:Jo,fetchHomeAudi:Qo}=z;class Cm extends y.Component{constructor(){super(...arguments);m(this,"state",{guild:[],alliance:[],original:[],audi:[]});m(this,"fetch",async s=>{const a=await Jo({type:s==="guild"?4:s==="original"?2:3});a&&a.status===12e3&&this.setState({[s]:a.data.list})});m(this,"fetchAudi",async()=>{const s=await Qo();s&&s.status===12e3&&this.setState({audi:s.data.items})})}componentDidMount(){this.fetchAudi(),this.fetch("guild"),this.fetch("alliance"),this.fetch("original")}render(){const{guild:s,alliance:n,original:a,audi:c}=this.state,l=s.length>0,o=n.length>0,d=a.length>0;return!l&&!o&&!d?null:e.jsxs("div",{className:he.container,children:[e.jsxs("h2",{className:he.title,children:[(d||c.length>0)&&e.jsx("span",{className:he["title-one"],children:"åå» "}),l&&e.jsx("span",{className:he["title-two"],children:"å
¬æ"}),o&&e.jsx("span",{className:he["title-three"],children:"è¯ç"}),e.jsx("span",{className:he["title-four"],children:"èªèä¸å¤è»"})]}),c.length>0&&e.jsx(Go,{dataSource:c}),d&&e.jsx(Be,{dataSource:a,field:"original"}),l&&e.jsx(Be,{dataSource:s,field:"guild"}),o&&e.jsx(Be,{dataSource:n,field:"alliance"})]})}}const Zo="_container_15shi_1",ec="_header_15shi_6",be={container:Zo,header:ec,"header-left":"_header-left_15shi_12","header-right":"_header-right_15shi_29","auto-b":"_auto-b_15shi_33"},tc="_none_1c1y5_27",sc="_tl_1c1y5_30",nc="_pr_1c1y5_36",ac="_pa_1c1y5_39",ic="_bn_1c1y5_42",rc="_ellipsis_1c1y5_45",oc="_bounceInUp_1c1y5_280",cc="_animated_1c1y5_284",lc="_infinite_1c1y5_290",dc="_fast_1c1y5_314",_c="_faster_1c1y5_318",hc="_slow_1c1y5_322",mc="_slower_1c1y5_326",pc="_tabs_1c1y5_340",uc="_loading_1c1y5_353",fc="_active_1c1y5_359",gc="_content_1c1y5_373",xc="_progress_1c1y5_1",bc="_yx_1c1y5_451",k={"ant-switch-small":"_ant-switch-small_1c1y5_15",none:tc,tl:sc,"br-btn":"_br-btn_1c1y5_33",pr:nc,pa:ac,bn:ic,ellipsis:rc,bounceInUp:oc,animated:cc,infinite:lc,"delay-1s":"_delay-1s_1c1y5_294","delay-2s":"_delay-2s_1c1y5_298","delay-3s":"_delay-3s_1c1y5_302","delay-4s":"_delay-4s_1c1y5_306","delay-5s":"_delay-5s_1c1y5_310",fast:dc,faster:_c,slow:hc,slower:mc,tabs:pc,"tabs-item":"_tabs-item_1c1y5_345",loading:uc,active:fc,content:gc,"content-item":"_content-item_1c1y5_376","content-item-top":"_content-item-top_1c1y5_384","content-item-thumb":"_content-item-thumb_1c1y5_388","content-item-title":"_content-item-title_1c1y5_393","content-item-sell":"_content-item-sell_1c1y5_403","content-item-info-left":"_content-item-info-left_1c1y5_414","content-item-info-right":"_content-item-info-right_1c1y5_417","content-item-info-content":"_content-item-info-content_1c1y5_420","content-item-info-dividing":"_content-item-info-dividing_1c1y5_427","content-item-extra":"_content-item-extra_1c1y5_430",progress:xc,yx:bc,"yx-1":"_yx-1_1c1y5_456","content-item-title-wrap":"_content-item-title-wrap_1c1y5_459"},{www:wt,image:jc}=C,wc=({item:t,name:i})=>{const s=u.useRef(null);return u.useEffect(()=>{et({item:t,UUID:Ae()}),s&&s.current&&new IntersectionObserver(a=>{a[0].isIntersecting&&et({...t,UUID:Ae()})},{threshold:[.75]}).observe(s.current)},[s]),e.jsxs("a",{ref:s,className:k["content-item"],href:t.url,target:"_blank",onClick:()=>{ks({...t,UUID:Ae()}),x("ä¸å¤è½¦å",i)},children:[e.jsx("div",{className:k["content-item-top"],children:e.jsx("div",{className:k["content-item-thumb"],children:e.jsx(fe,{src:t.img})})}),e.jsxs("p",{className:f(k["content-item-title"],k["content-item-title-wrap"]),children:[!!t.isTopdealer&&e.jsx("img",{className:f(k.yx,k["yx-1"]),src:`${jc}/home/yx.svg`}),e.jsx("span",{children:t.shopName})]}),e.jsxs("p",{className:k["content-item-sell"],children:[e.jsx("span",{className:k["content-item-info-left"],children:"主çï¼"}
283),e.jsx("span",{className:k["content-item-info-content"],children:t.brandList.join(" | ")})]}),e.jsxs("div",{className:k["content-item-extra"],children:[e.jsxs("p",{className:k["content-item-info"],children:[e.jsx("span",{className:k["content-item-info-left"],children:"åºå®ä¸ï¼"}),e.jsxs("span",{className:k["content-item-info-right"],children:[t.onsale,"è¼"]})]}),e.jsxs("p",{className:k["content-item-info"],children:[e.jsx("span",{className:k["content-item-info-left"],children:"å¨åºæ¸ï¼"}),e.jsx("span",{className:k["content-item-info-right"],children:t.checkCarCount})]})]})]},t.mId)};function vc(){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:k.tabs,children:Array.apply(null,Array(6)).map((t,i)=>e.jsx("span",{className:f(k["tabs-item"],k.loading)},i))}),e.jsx("div",{className:k.content,children:Array.apply(null,Array(5)).map((t,i)=>e.jsxs("a",{className:k["content-item"],children:[e.jsx("div",{className:k["content-item-top"],children:e.jsx("span",{className:f(k["content-item-thumb"],k.loading)})}),e.jsx("span",{className:f(k["content-item-title"],k.loading)}),e.jsx("span",{className:f(k["content-item-sell"],k.loading)})]},i))})]})}const yc=({dataSource:t})=>{const[i,s]=u.useState(0),n=t.filter(o=>o.enName!=="hot"||o.list.length),a=o=>{o!==i&&s(o)},c=n.map((o,d)=>{var _;const r=f(k["tabs-item"],{[k.active]:d===i});return((_=o==null?void 0:o.region)==null?void 0:_.length)>0?e.jsx("a",{href:`${wt}/findBuz-index.html?${ke.stringify({r:o.region},{arrayFormat:"brackets",encode:!1})}`,target:"_blank",onMouseEnter:()=>a(d),className:r,onClick:()=>{x("ä¸å¤è½¦å",o.name)},children:o.name},o.name):o.enName==="topdealer"?e.jsx("a",{href:`${wt}/findBuz-index.html?v=2`,target:"_blank",onMouseEnter:()=>a(d),className:r,onClick:()=>{x("ä¸å¤è½¦å",o.name)},children:o.name},o.name):e.jsx("span",{onMouseEnter:()=>a(d),className:r,onClick:()=>{x("ä¸å¤è½¦å","ç鍿¨è")},children:o.name},o.name)}),l=n[i]?n[i].list:[];return e.jsx("div",{children:Array.isArray(n)&&n.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:k.tabs,children:c}),e.jsx("div",{className:k.content,children:Array.isArray(l)&&l.length>0&&l.map(o=>e.jsx(wc,{item:o,name:n[i].name}))})]}):vc()})},{fetchHomeUsedcarShops:kc}=z,{www:$c}=C;class Nc extends y.Component{constructor(){super(...arguments);m(this,"state",{list:[],shopTotal:0});m(this,"fetch",async()=>{try{const s=await kc();s&&s.status===12e3&&this.setState({list:s.data.list,shopTotal:s.data.shopTotal})}catch(s){console.error(s)}})}componentDidMount(){this.fetch()}render(){const{list:s,shopTotal:n}=this.state;return e.jsxs("section",{className:be.container,children:[e.jsxs("div",{className:be.header,children:[e.jsxs("h2",{className:be["header-left"],children:[e.jsx("b",{className:be["auto-b"],children:"ä¸å¤è»å"})," ",e.jsxs("span",{children:["è¦èå
¨å°è»è¡",e.jsx("i",{children:At(n)}),"å®¶"]})]}),e.jsx("a",{className:be["header-right"],href:`${$c}/findBuz-index.html`,target:"_blank",onClick:()=>{x("ä¸å¤è½¦å","æ¥çå
¨é¨")},children:"æ¥çå
¨é¨"})]}),e.jsx(yc,{dataSource:s})]})}}const Cc="_none_1ku3j_27",Sc="_tl_1ku3j_30",Ic="_pr_1ku3j_36",Ac="_pa_1ku3j_39",Rc="_bn_1ku3j_42",Ec="_ellipsis_1ku3j_45",qc="_bounceInUp_1ku3j_280",Lc="_animated_1ku3j_284",Tc="_infinite_1ku3j_290",Dc="_fast_1ku3j_314",Uc="_faster_1ku3j_318",zc="_slow_1ku3j_322",Pc="_slower_1ku3j_326",Bc="_progress_1ku3j_1",Mc="_carousel_1ku3j_359",Hc="_desc_1ku3j_450",Oc="_prev_1ku3j_482",Kc="_next_1ku3j_494",me={"ant-switch-small":"_ant-switch-small_1ku3j_15",none:Cc,tl:Sc,"br-btn":"_br-btn_1ku3j_33",pr:Ic,pa:Ac,bn:Rc,ellipsis:Ec,bounceInUp:qc,animated:Lc,infinite:Tc,"delay-1s":"_delay-1s_1ku3j_294","delay-2s":"_delay-2s_1ku3j_298","delay-3s":"_delay-3s_1ku3j_302","delay-4s":"_delay-4s_1ku3j_306","delay-5s":"_delay-5s_1ku3j_310",fast:Dc,faster:Uc,slow:zc,slower:Pc,"movie-subscript":"_movie-subscript_1ku3j_340","click-subscript":"_click-subscript_1ku3j_345","carousel-item":"_carousel-item_1ku3j_359",progress:Bc,carousel:Mc,"movie-subscript-img":"_movie-subscript-img_1ku3j_404","movie-subscript-footer":"_movie-subscript-footer_1ku3j_430","movie-subscript-item":"_movie-subscript-item_1ku3j_435","flex-1":"_flex-1_1ku3j_438","flex-2":"_flex-2_1ku3j_445",desc:Hc,"flex-3":"_flex-3_1ku3j_459","youtube-subscription-btn":"_youtube-subscription-btn_1ku3j_468",prev:Oc,next:Kc,"movie-subscript-bottom":"_movie-subscript-bottom_1ku3j_507","bottom-small":"_bottom-small_1ku3j_510"},{c:Fc}=C;class Vc extends y.PureComponent{constructor(){super(...arguments);m(this,"carouselRef",y.createRef());m(this,"state",{});m(this,"paging",s=>{const{current:n}=this.carouselRef;if(n){if(s===1)try{n.next()}catch{}else if(s===-1)try{n.prev()}catch{}}})}componentDidMount(){}render(){const{data:s}=this.props,n=s.filter((a,c)=>[0,1,2,3].includes(c));return e.jsx("div",{className:me["movie-subscript"],children:e.jsxs("div",{className:me["carousel-item"],children:[e.jsx("div",{className:me.prev,onClick:()=>this.paging(-1)}),Array.isArray(s)&&!!s.length&&e.jsx(qe,{className:me.carousel,autoplay:!0,speed:5,ref:this.carouselRef,children:n.map((a,c)=>e.jsxs("div",{className:me["movie-subscript-img"],children:[e.jsx(O,{threshold:1,first:!0,refresh:()=>{S("element_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ææ°è³è¨",element:"åç",element_id:"é¦é -ææ°è³è¨-å½±é³",next_spm:"38.216.133.187"})}}),e.jsx("a",{href:`${Fc}/movies/${a.id}`,target:"_blank",onClick:()=>{S("element_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ææ°è³è¨",element:"åç",element_id:"é¦é -ææ°è³è¨-å½±é³",next_spm:"38.216.133.187"})},children:e.jsx(fe,{src:a.middleThumb})})]},c))}),e.jsx("div",{className:me.next,onClick:()=>this.paging(1)})]})})}}const Yc="_none_1fdt6_27",Wc="_tl_1fdt6_30",Xc="_pr_1fdt6_36",Gc="_pa_1fdt6_39",Jc="_bn_1fdt6_42",Qc="_ellipsis_1fdt6_45",Zc="_bounceInUp_1fdt6_280",el="_animated_1fdt6_284",tl="_infinite_1fdt6_290",sl="_fast_1fdt6_314",nl="_faster_1fdt6_318",al="_slow_1fdt6_322",il="_slower_1fdt6_326",rl="_progress_1fdt6_1",H={"ant-switch-small":"_ant-switch-small_1fdt6_15",none:Yc,tl:Wc,"br-btn":"_br-btn_1fdt6_33",pr:Xc,pa:Gc,bn:Jc,ellipsis:Qc,bounceInUp:Zc,animated:el,infinite:tl,"delay-1s":"_delay-1s_1fdt6_294","delay-2s":"_delay-2s_1fdt6_298","delay-3s":"_delay-3s_1fdt6_302","delay-4s":"_delay-4s_1fdt6_306","delay-5s":"_delay-5s_1fdt6_310",fast:sl,faster:nl,slow:al,slower:il,"movie-item":"_movie-item_1fdt6_340","movie-left":"_movie-left_1fdt6_345","movie-ce
283nter":"_movie-center_1fdt6_348","movie-center-item":"_movie-center-item_1fdt6_354","movie-center-box":"_movie-center-box_1fdt6_358","movie-center-img":"_movie-center-img_1fdt6_365","movie-center-time":"_movie-center-time_1fdt6_372","movie-center-icon":"_movie-center-icon_1fdt6_383","movie-center-title":"_movie-center-title_1fdt6_393","movie-right":"_movie-right_1fdt6_406","movie-img":"_movie-img_1fdt6_412",progress:rl,"movie-bottom":"_movie-bottom_1fdt6_444","bottom-text":"_bottom-text_1fdt6_456"},ol=({data:t})=>{const{movieShortsList:i,list:s}=t;return e.jsxs("div",{className:H["movie-item"],children:[e.jsx("div",{className:H["movie-center"],children:Array.isArray(i)&&i.map((n,a)=>e.jsxs("a",{href:n.link,target:"_blank",className:H["movie-center-item"],onClick:()=>{S("video_clicked",{page:"é¦é ",channel:"é¦é ",module:"é¦é -ææ°è³è¨",element:"åç",element_id:"é¦é -ææ°è³è¨-çå½±é³",next_spm:"2.46.154.215"})},children:[e.jsx("span",{style:{display:"flex"},children:e.jsx(O,{threshold:1,first:!0,refresh:()=>{S("video_exposured",{page:"é¦é ",channel:"é¦é ",module:"é¦é -ææ°è³è¨",element:"åç",element_id:"é¦é -ææ°è³è¨-çå½±é³",next_spm:"2.46.154.215"})}})}),e.jsxs("div",{className:H["movie-center-box"],children:[e.jsx("img",{className:H["movie-center-img"],src:n.thumb,alt:""}),!!n.playTime&&e.jsx("span",{className:H["movie-center-time"],children:es(n.playTime)}),e.jsx("img",{className:H["movie-center-icon"],src:"https://photo.8891.com.tw/2023/10/09/1696843896847944.png",alt:""})]}),e.jsx("div",{className:H["movie-center-title"],children:n.title})]},a))}),e.jsxs("div",{className:H["movie-right"],children:[Array.isArray(s)&&s.map((n,a)=>e.jsxs("div",{className:H["movie-img"],children:[e.jsx("span",{style:{display:"flex"},children:e.jsx(O,{threshold:1,first:!0,refresh:()=>{S("element_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ææ°è³è¨",element:"å表",element_id:"é¦é -ææ°è³è¨-æç« ",next_spm:"38.216.133.188"})}})}),e.jsx("a",{target:"_blank",href:n.link,onClick:()=>{S("element_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ææ°è³è¨",element:"å表",element_id:"é¦é -ææ°è³è¨-æç« ",next_spm:"38.216.133.188"})},children:e.jsx(fe,{src:n.middleThumb})}),e.jsx("div",{className:H["movie-bottom"],children:e.jsx("span",{className:H["bottom-text"],children:n.title})})]},a)),s.length===0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:H["movie-img"]}),e.jsx("div",{className:H["movie-img"]})]})]})]})},cl="_none_uon4o_27",ll="_tl_uon4o_30",dl="_pr_uon4o_36",_l="_pa_uon4o_39",hl="_bn_uon4o_42",ml="_ellipsis_uon4o_45",pl="_bounceInUp_uon4o_280",ul="_animated_uon4o_284",fl="_infinite_uon4o_290",gl="_fast_uon4o_314",xl="_faster_uon4o_318",bl="_slow_uon4o_322",jl="_slower_uon4o_326",wl="_head_uon4o_350",vl="_heading_uon4o_378",yl="_nav_uon4o_379",kl="_number_uon4o_387",$l="_radio_uon4o_411",Nl="_active_uon4o_427",Cl="_item_uon4o_455",Sl="_show_uon4o_463",Il="_progress_uon4o_1",ne={"ant-switch-small":"_ant-switch-small_uon4o_15",none:cl,tl:ll,"br-btn":"_br-btn_uon4o_33",pr:dl,pa:_l,bn:hl,ellipsis:ml,bounceInUp:pl,animated:ul,infinite:fl,"delay-1s":"_delay-1s_uon4o_294","delay-2s":"_delay-2s_uon4o_298","delay-3s":"_delay-3s_uon4o_302","delay-4s":"_delay-4s_uon4o_306","delay-5s":"_delay-5s_uon4o_310",fast:gl,faster:xl,slow:bl,slower:jl,"movie-list":"_movie-list_uon4o_340","movie-item":"_movie-item_uon4o_347",head:wl,heading:vl,nav:yl,number:kl,"home-h3":"_home-h3_uon4o_399",radio:$l,active:Nl,"more-text":"_more-text_uon4o_431","look-at-all":"_look-at-all_uon4o_438","movie-list-tabs":"_movie-list-tabs_uon4o_447","movie-tabs":"_movie-tabs_uon4o_450",item:Cl,show:Sl,progress:Il},{c:vt}=C,{fetchV3Articles:yt,fetchV5Articles:Al}=z;class Rl extends y.PureComponent{constructor(){super(...arguments);m(this,"state",{movieDataList:[],articeDataList:[],movieShortsDataList:[],movieTotal:0,articeTotal:0,isMovieActive:0,movieTypeList:["ææ°","試è»ç¯ç®","è»å£è天室","ç¹å¥ä¼å"],activeTypeList:["æ¯æ¥æ°è","æ°è»è©¦é§","æ±½è»ç¥è庫","è¶
ç´æ¸¬è©¦"],isArticleActive:0});m(this,"fetchMovie",async s=>{try{const n=await yt(s);n&&n.status===12e3&&this.setState({movieDataList:n.data.list,movieTotal:n.data.total})}catch{}});m(this,"fetchArticle",async s=>{try{const n=await yt(s);n&&n.status===12e3&&this.setState({articeDataList:n.data.list,articeTotal:n.data.total})}catch{}});m(this,"fetchMovieShorts",async s=>{try{const n=await Al(s);n&&n.status===12e3&&this.setState({movieShortsDataList:n.data.items})}catch{}})}componentDidMount(){this.fetchMovie({type:"3",limit:4}),this.fetchArticle({type:"1,2",limit:2}),this.fetchMovieShorts({type:"11",limit:1})}render(){const{movieDataList:s,articeDataList:n,articeTotal:a,movieTotal:c,movieShortsDataList:l}=this.state;return e.jsxs("div",{className:ne["movie-list"],children:[e.jsx("div",{className:ne.head,children:e.jsxs("div",{className:ne.heading,children:[e.jsx("h3",{className:ne["home-h3"],children:"ææ°è³è¨"}),e.jsxs("div",{className:ne.number,children:[e.jsxs("a",{href:`${vt}/Articles`,children:["ç´¯è¨",e.jsx("span",{children:a}),"ç¯æç« "]})," ","|"," ",e.jsxs("a",{href:`${vt}/photoMovie-index.html`,children:[e.jsx("span",{children:c}),"é»å½±é³"]})]})]})}),e.jsxs("section",{className:ne["movie-item"],children:[e.jsx(Vc,{data:s||[]}),e.jsx("div",{className:ne["movie-tabs"],children:e.jsx("div",{className:f(ne.item,ne.show),children:e.jsx(ol,{data:{list:n||[],movieShortsList:l||[]}})})})]})]})}}const El="_eightCarousel_wqg8h_1",ql="_box_wqg8h_34",Ll="_img_wqg8h_59",re={eightCarousel:El,"carousel-prev":"_carousel-prev_wqg8h_7","carousel-next":"_carousel-next_wqg8h_8","carousel-center":"_carousel-center_wqg8h_25",box:ql,"app-icon":"_app-icon_wqg8h_37","google-icon":"_google-icon_wqg8h_48",img:Ll},{c:Sm,image:je}=C,Ot=y.createRef(),kt=t=>{let i=Ot.current;if(t===1)try{i.next()}catch{}else if(t===-1)try{i.prev()}catch{}},Tl=[`${je}/home/carousel/banner_01.png`,`${je}/home/carousel/banner_02.png`,`${je}/home/carousel/banner_03.png`,`${je}/home/carousel/banner_04.png`,`${je}/home/carousel/banner_05.png`],Dl=()=>e.jsx("div",{className:re.eightCarousel,children:e.jsxs("div",{className:re["carousel-center"],onClick:()=>{x("å
¨ç«é¦é¡µ","åºé¨å¤§banner")},children:[e.jsx("span",{className:re["carousel-prev"],onClick:()=>kt(-1)}),e.jsx("span",{className:re["carousel-next"],onClick:()=>kt(1)}),e.jsx(qe,{dots:!1,ref:Ot,lazyLoad:"ondemand",children:Tl.map((t,i)=>e.jsxs("div",{className:re.box,children:[e.jsx("img",{className:re.img,src:t}),e.jsx("a",{href:`https://apps.apple.com/tw/app/${encodeURIComponent("8891æ±½è»-å°æ¥æ°è»ä¸å¤äºæè»è²·è³£å¹³å°")}/id958450485`,target:"_blank",className:re["app-icon"],rel:"noopener noreferrer",children:e.jsx("img",{src:"https://photo.8891.com.tw/2024/01/08/1704693345724950.png"})}),e.jsx("a",{href:"https://play.google.com/store/apps/details?id=com.addcn.newcar8891&hl=zh_TW&gl=US",target:"_blank",className:re["google-icon"],rel:"noopener noreferrer",children:e.jsx("img",{src:"https://photo.8891.com.tw/2024/01/08/1704693345718683.png"})})]},i))})]})}),Ul="_none_cz12m_27",zl="_tl_cz12m_30",Pl="_pr_cz12m_36",Bl="_pa_cz12m_39",Ml="_bn_cz12m_42",Hl="_ellipsis_cz12m_45",Ol="_bounceInUp_cz12m_280",Kl="_animated_cz12m_284",Fl="_infinite_cz12m_290",Vl="_fast_cz12m_314",Yl="_faster_cz12m_318",Wl="_slow_cz12m_322",Xl="_slower_cz12m_326",Gl="_heading_cz12m_368",Jl="_section_cz12m_374",Ql="_list_cz12m_383",Zl="_block_cz12m_390",ed="_item_cz12m_393",td="_price_cz12m_408",sd="_progress_cz12m_1",te={"ant-switch-small":"_ant-switch-small_cz12m_15",none:Ul,tl:zl,"br-btn":"_br-btn_cz12m_33",pr:Pl,pa:Bl,bn:Ml,ellipsis:Hl,bounceInUp:Ol,animated:Kl,infinite:Fl,"delay-1s":"_delay-1s_cz12m_294","delay-2s":"_delay-2s_cz12m_298","delay-3s":"_delay-3s_cz12m_302","delay-4s":"_delay-4s_cz12m_306","delay-5s":"_delay-5s_cz12m_310",fast:Vl,faster:Yl,slow:Wl,slower:Xl,"hot-region":"_hot-region_cz12m_340","up-icon":"_up-icon_cz12m_349","unfold-more":"_unfold-more_cz12m_361",heading:Gl,section:Jl,list:Ql,block:Zl,item:ed,"full-name":"_full-name_cz12m_402",price:td,progress:sd},nd=({v:t,limit:i,setLimit:s,title:n})=>e.jsxs("section",{className:te.section,children:[e.jsx("div",{className:te.list,children:t.name}),Array.isArray(t.kinds)&&t.kinds.map((a,c)=>(c<3||i)&&e.jsx("a",{href:a.link,target:"_blank",className:te.block,onClick:()=>{x("SEOç¸å
³",n,t.name)}
283,children:e.jsxs("div",{className:te.item,children:[e.jsx("div",{className:te["full-name"],children:a.fullName}),e.jsx("div",{className:te.price,children:a.callPrice})]})},c)),t.kinds.length>3&&!i&&e.jsxs("div",{className:te["unfold-more"],onClick:()=>{s(!0),x("SEOç¸å
³",n,"å±å¼æ´å¤")},children:["å±éæ´å¤",e.jsx("i",{className:te["up-icon"]})]})]}),$t=({dataSource:t,title:i})=>{const[s,n]=u.useState(!1);return e.jsxs("div",{className:te["hot-region"],children:[e.jsx("h2",{className:te.heading,children:i}),Array.isArray(t)&&t.map((a,c)=>e.jsx(nd,{v:a,limit:s,setLimit:n,title:i},c))]})},ad="_heading_k5n74_10",id="_content_k5n74_17",Se={"region-use-car":"_region-use-car_k5n74_1",heading:ad,content:id,"region-item":"_region-item_k5n74_17"},rd=({dataSource:t})=>e.jsxs("div",{className:Se["region-use-car"],children:[e.jsx("h2",{className:Se.heading,children:"å°åä¸å¤è»"}),e.jsx("div",{className:Se.content,children:Array.isArray(t)&&t.map((i,s)=>e.jsxs("div",{className:Se["region-item"],children:[e.jsxs("h4",{children:[i.name,"ï¼"]}),Array.isArray(i.regions)&&i.regions.map((n,a)=>e.jsx("a",{href:`${C.auto}/?r[]=${n.id}`,target:"_blank",onClick:()=>{x("SEOç¸å
³","å°åä¸å¤è»",i.name)},children:e.jsx("span",{children:n.name})},a))]},s))})]}),{fetchHomeHotNewcar:od,fetchNewIndexHotCar:cd,fetchNewIndexRegion:ld}=z;class dd extends y.Component{constructor(){super(...arguments);m(this,"state",{hotNewcar:[],hotUsedcar:[],hotRegion:[]});m(this,"fetch",async()=>{try{const s=await od(),n=await cd(),a=await ld();s&&s.status===12e3&&this.setState({hotNewcar:s.data.list}),n&&n.status===12e3&&this.setState({hotUsedcar:n.data.items}),a&&a.status===12e3&&this.setState({hotRegion:a.data.parts})}catch{}})}componentDidMount(){this.fetch()}render(){const{hotNewcar:s,hotUsedcar:n,hotRegion:a}=this.state;return e.jsxs(e.Fragment,{children:[e.jsx($t,{dataSource:s,title:"ç±éæ°è»"}),e.jsx($t,{dataSource:n,title:"ç±éä¸å¤è»"}),e.jsx(rd,{dataSource:a})]})}}const _d="_container_1rbii_1",hd="_header_1rbii_5",md="_items_1rbii_25",pd="_item_1rbii_25",ud="_thumb_1rbii_51",fd="_title_1rbii_57",gd="_price_1rbii_66",xd="_views_1rbii_78",bd="_extra_1rbii_82",jd="_subtitle_1rbii_83",wd="_line_1rbii_91",vd="_more_1rbii_99",P={container:_d,header:hd,"header-left":"_header-left_1rbii_11","header-right":"_header-right_1rbii_20",items:md,item:pd,thumb:ud,title:fd,"price-views":"_price-views_1rbii_66",price:gd,views:xd,extra:bd,subtitle:jd,line:wd,more:vd},{fetchHomeHotAd:yd}=z,{postCollectData:kd,postCollectBulkData:$d}=ae,{auto:Nt}=C;class Nd extends y.Component{constructor(){super(...arguments);m(this,"state",{data:[],total:0});m(this,"ref",null);m(this,"io",null);m(this,"fetch",async()=>{const s=await yd();if(s.status===12e3){const{data:{list:n,total:a}}=s;this.setState({data:n,total:a},()=>{const c=this.genericData();this.generic("show",c,{patch:!0})})}});m(this,"generic",(s,n,a)=>{const c="usedcar_ads_count",l={type:s,platform:"pc",time:Zt().format("YYYY-MM-DD HH:mm:ss")},o={userAgent:navigator.userAgent,deviceId:Fe()};a!=null&&a.patch?$d({es_tag:c,bulk:n,common:{action:l,device:o}}):kd({es_tag:c,action:l,device:o,data:n})});m(this,"genericData",()=>this.state.data.map(({adData:s})=>({data:s})));m(this,"handleClick",s=>{this.generic("click",s)})}componentDidMount(){this.fetch(),this.ref&&(this.io=new IntersectionObserver(s=>{if(s[0].isIntersecting){const n=this.genericData();this.generic("show",n,{patch:!0})}},{threshold:[.75]}),this.io.observe(this.ref))}componentWillUnmount(){this.io&&this.ref&&this.io.unobserve(this.ref)}render(){const{data:s,total:n}=this.state;return e.jsx(e.Fragment,{children:e.jsx("section",{className:P.container,ref:a=>this.ref=a,children:n>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:P.header,children:[e.jsx("h2",{className:P["header-left"],children:"ç±éæ¨è¦"}),e.jsx("a",{className:P["header-right"],href:"https://www.8891.com.tw/help-article-389.html",target:"_blank",onClick:()=>{x("ç±éæ¨è¦","æè¦åºç¾å¨é裡")},children:"æè¦åºç¾å¨é裡>"})]}),e.jsx("div",{className:P.items,children:s==null?void 0:s.map(a=>{const{image:c,itemId:l,id:o,title:d,price:r,makeDate:_,mile:h,adData:p,subtitle:g,views:A}=a;return e.jsxs("a",{className:P.item,href:`${Nt}/usedauto-infos-${l}.html?id=${l}`,target:"_blank",onClick:()=>this.handleClick(p),children:[e.jsx("div",{className:P.thumb,children:e.jsx(fe,{src:c})}),e.jsx("p",{className:P.title,children:d}),e.jsx("p",{className:P.subtitle,children:g}),e.jsxs("p",{className:P.extra,children:[_,e.jsx("span",{className:P.line}),h]}),e.jsxs("p",{className:P["price-views"],children:[e.jsx("span",{className:P.price,children:r}),e.jsxs("span",{className:P.views,children:[A,"次ç覽"]})]})]},o)})}),e.jsxs("a",{href:`${Nt}?is_exposure=1`,target:"_blank",className:P.more,children:["æ¥çæ´å¤(",n,"ç)"]})]})})})}}const Cd="_item_1gc78_6",Sd="_active_1gc78_14",Id="_line_1gc78_18",we={"floor-bar":"_floor-bar_1gc78_1",item:Cd,active:Sd,line:Id},Ad="_wrapper_128qw_9",Rd={"shadow-container":"_shadow-container_128qw_1",wrapper:Ad},Ed=({children:t,className:i})=>e.jsx("div",{className:f(Rd.wrapper,i),style:{zIndex:1},children:t}),{auto:qd}=C,Ld=[{label:"ç¦é»",key:"jd",domIndex:0},{label:"ææ°è³è¨",key:"yy",domIndex:1}
283,{label:"ä¸å¤è»",key:"zgc",domIndex:4},{label:"ä¸å¤è»å",key:"zgcs",domIndex:6}],Td=()=>{const{current:t,scrollTo:i}=u.useContext(Xe);return e.jsx(Ed,{offset:80,children:e.jsxs("div",{className:we["floor-bar"],children:[Ld.map((s,n)=>e.jsxs("div",{children:[e.jsx("a",{className:f(we.item,{[we.active]:s.domIndex===t}),onClick:()=>i(s.key),children:s.label}),e.jsx("div",{className:we.line})]},s.key)),e.jsx("div",{id:"tracking-pc-index-sidebar-sc",children:e.jsx("a",{className:we.item,onClick:()=>{window.open(`${qd}/sell-spread.html?source=8891&entry=hs_pc_lnb_e`,"_blank")},children:"é«å¹æ¶è»"})})]})})},Dd="_content_blt19_21",Z={"home-collect":"_home-collect_blt19_1","home-collect-title":"_home-collect-title_blt19_4",content:Dd,"collect-info":"_collect-info_blt19_39","collect-extra":"_collect-extra_blt19_51","icon-view":"_icon-view_blt19_61","item-tag":"_item-tag_blt19_70","item-updated":"_item-updated_blt19_83","item-hot":"_item-hot_blt19_87","tc-antialiased":"_tc-antialiased_blt19_90","color-2e3038":"_color-2e3038_blt19_94"},{articleCategories:Ud}=z,{c:Ct}=C,zd=()=>{const[t,i]=u.useState([]),s=async()=>{try{const n=await Ud({limit:5});n&&n.data&&i(n.data.list)}catch(n){console.error(n)}};return u.useEffect(()=>{s()},[]),t!=null&&t.length?e.jsxs("div",{className:Z["home-collect"],children:[e.jsxs("div",{className:Z["home-collect-title"],children:[e.jsx("h3",{className:f(Z["tc-antialiased"],Z["color-2e3038"]),children:"ç²¾è¯å輯"}),e.jsx("a",{href:`${Ct}/feature`,target:"_blank",onClick:()=>Ze(),children:"æ¥çå
¨é¨"})]}),e.jsx("ul",{className:Z.content,children:Array.isArray(t)&&!!t.length&&t.map((n,a)=>{var c,l,o,d,r,_;return e.jsxs("li",{onClick:()=>Ze(),children:[e.jsx("span",{style:{display:"flex"},children:e.jsx(O,{threshold:1,first:!0,refresh:()=>{S("element_exposured",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç²¾è¯å輯",element:"å表",element_id:"é¦é -ç²¾è¯å輯",next_spm:"38.216.134.189"})}})}),e.jsxs("a",{href:`${Ct}/feature/${n.id}`,target:"_blank",onClick:()=>{S("element_clicked",{page:"é¦é ",spm:"",channel:"ä¸å¤è»",module:"é¦é -ç²¾è¯å輯",element:"å表",element_id:"é¦é -ç²¾è¯å輯",next_spm:"38.216.134.189"})},children:[e.jsx("img",{src:n.thumb,alt:""}),e.jsxs("div",{className:Z["collect-info"],children:[e.jsx("h4",{children:n.title}),e.jsxs("div",{className:Z["collect-extra"],children:[e.jsxs("span",{children:["å
±",n.articleTotal,"ç¯"]}),e.jsxs("span",{children:[e.jsx("i",{className:Z["icon-view"]}),n.viewCount]})]})]}),Array.isArray(n.tags)&&!!n.tags.length&&e.jsx("div",{className:f(Z["item-tag"],{[Z["item-updated"]]:((l=(c=n==null?void 0:n.tags)==null?void 0:c[0])==null?void 0:l.key)==="updated",[Z["item-hot"]]:["hot","hotter","hottest"].includes((d=(o=n==null?void 0:n.tags)==null?void 0:o[0])==null?void 0:d.key)}),children:(_=(r=n==null?void 0:n.tags)==null?void 0:r[0])==null?void 0:_.name})]})]},a)})})]}):null};var Kt={},Ft={},Ge={};(function(t){var i=I&&I.__createBinding||(Object.create?function(o,d,r,_){_===void 0&&(_=r),Object.defineProperty(o,_,{enumerable:!0,get:function(){return d[r]}})}:function(o,d,r,_){_===void 0&&(_=r),o[_]=d[r]}),s=I&&I.__setModuleDefault||(Object.create?function(o,d){Object.defineProperty(o,"default",{enumerable:!0,value:d})}:function(o,d){o.default=d}),n=I&&I.__importStar||function(o){if(o&&o.__esModule)return o;var d={};if(o!=null)for(var r in o)r!=="default"&&Object.prototype.hasOwnProperty.call(o,r)&&i(d,o,r);return s(d,o),d};Object.defineProperty(t,"__esModule",{value:!0}),t.refreshAdver=void 0;var a=n(u),c=function(d){if(d){var r=window.googletag;r.cmd.push(function(){r.pubads().refresh([d])})}};t.refreshAdver=c;var l=function(d){var r=d.children,_=d.slot,h=d.getExposureStatus,p=a.useRef(null),g=a.useRef({}),A=a.useCallback(function(){var $=g.current;t.refreshAdver($)},[g]);return a.useEffect(function(){var $=p.current;$&&new IntersectionObserver(function(L){L[0].isIntersecting?(A(),h==null||h(!0)):h==null||h(!1)},{threshold:.75}).observe($)},[A,h]),a.useEffect(function(){g.current=_},[_]),a.default.createElement("div",{ref:p},r)};t.default=l})(Ge);var Je={},Oe=I&&I.__assign||function(){return Oe=Object.assign||function(t){for(var i,s=1,n=arguments.length;s<n;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},Oe.apply(this,arguments)},Qe=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
283Object.defineProperty(Je,"__esModule",{value:!0});var Ie=Qe(u),Pd=Qe(Ge),Bd=zt,Md=Qe(f),Hd=function(i){var s=i.slot,n=i.children,a=i.width,c=i.height,l=i.style,o=i.className,d=i.target,r=i.hideIframe,_=Bd.useInitAdver(s,d),h=_.curSlot,p=_.data;return Ie.default.createElement(Pd.default,{slot:h},Ie.default.createElement("div",{id:s,style:Oe({width:a,height:r&&Object.keys(p).length>0?0:c},l),className:Md.default(o)}),Ie.default.isValidElement(n)&&Ie.default.cloneElement(n,{data:p}))};Je.default=Hd;(function(t){var i=I&&I.__createBinding||(Object.create?function(d,r,_,h){h===void 0&&(h=_),Object.defineProperty(d,h,{enumerable:!0,get:function(){return r[_]}})}:function(d,r,_,h){h===void 0&&(h=_),d[h]=r[_]}),s=I&&I.__setModuleDefault||(Object.create?function(d,r){Object.defineProperty(d,"default",{enumerable:!0,value:r})}:function(d,r){d.default=r}),n=I&&I.__importStar||function(d){if(d&&d.__esModule)return d;var r={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&i(r,d,_);return s(r,d),r},a=I&&I.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdIframe=t.ScrollRefresher=t.refreshAdver=t.useInitAdver=void 0;var c=zt;Object.defineProperty(t,"useInitAdver",{enumerable:!0,get:function(){return c.useInitAdver}});var l=n(Ge);t.ScrollRefresher=l.default,Object.defineProperty(t,"refreshAdver",{enumerable:!0,get:function(){return l.refreshAdver}});var o=a(Je);t.AdIframe=o.default})(Ft);var Ke=I&&I.__assign||function(){return Ke=Object.assign||function(t){for(var i,s=1,n=arguments.length;s<n;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},Ke.apply(this,arguments)},Od=I&&I.__rest||function(t,i){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0&&(s[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)i.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(s[n[a]]=t[n[a]]);return s},Kd=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kt,"__esModule",{value:!0});var Fd=Kd(u),Vd=Ft,Yd=function(i){var s=i.slot,n=i.children,a=Od(i,["slot","children"]);return Fd.default.createElement(Vd.AdIframe,Ke({slot:s,hideIframe:!0},a),n)},Wd=Kt.default=Yd;const Xd="_marquee_r4o8i_1",Gd="_active_r4o8i_15",Jd="_link_r4o8i_18",ye={"marquee-ad":"_marquee-ad_r4o8i_1",marquee:Xd,active:Gd,link:Jd,"marquee-ad-container":"_marquee-ad-container_r4o8i_42","marquee-ad-fixed":"_marquee-ad-fixed_r4o8i_48"},Qd=({data:t})=>{const[i,s]=u.useState(!1),n=u.useRef(0);return u.useEffect(()=>{n.current||!(t!=null&&t.text)||(n.current=window.setTimeout(()=>{s(!0)},1e3))},[t]),!t||!t.text?null:e.jsx("a",{href:t.link,target:"_blank",className:f(ye["marquee-ad"],{[ye.active]:i}),onMouseEnter:()=>s(!1),onMouseLeave:()=>s(!0),children:e.jsx("span",{className:ye.link,children:t.text})})},Zd=()=>e.jsx("div",{className:ye["marquee-ad-container"],children:e.jsx("div",{className:ye["marquee-ad-fixed"],children:e.jsx(Wd,{slot:"/173427088/global-homepage-runningad",width:250,height:50,children:e.jsx(Qd,{})})})}),e_="_content_5gl18_9",t_="_item_5gl18_14",W={"home-watching":"_home-watching_5gl18_1","home-watching-title":"_home-watching-title_5gl18_4",content:e_,item:t_,"item-img":"_item-img_5gl18_24","item-title":"_item-title_5gl18_30","item-price":"_item-price_5gl18_45","item-btn":"_item-btn_5gl18_59","item-discount":"_item-discount_5gl18_73","item-tag":"_item-tag_5gl18_86","home-h3":"_home-h3_5gl18_97"},{postInitialCollect:St}=ae,s_=({dataSource:t})=>{var i,s,n,a,c,l,o,d;return u.useEffect(()=>{},[]),e.jsxs("a",{className:W.item,target:"_blank",href:`${t!=null&&t.ads&&((i=t==null?void 0:t.ads)==null?void 0:i.adclick)!==""?(s=t==null?void 0:t.ads)==null?void 0:s.adclick:`${C.c}/photoModel-info.html?k=${t.kindId}`}`,children:[e.jsx("img",{className:W["item-img"],src:t.thumb,alt:""}),e.jsx(Ht,{tooltipTitle:`${t.name}`,children:e.jsx("p",{className:W["item-title"],children:t.name})}),e.jsx("p",{className:W["item-price"],children:t.price}),t.isInquiry!==0&&e.jsx("a",{href:`${t!=null&&t.ads&&((n=t==null?void 0:t.ads)==null?void 0:n.adclick)!==""?(a=t==null?void 0:t.ads)==null?void 0:a.adclick:`${C.c}/ask/price?b=${t.brandId}&k=${t.kindId}&source=é¦é -ç±é·è»æ¬¾`}`,id:"tracking-HotSellCarAskPrice","data-source":"é¦é -ç±é·è»æ¬¾",target:"_blank",className:W["item-btn"],onClick:r=>{r.stopPropagation(),t!=null&&t.ads&&St(t==null?void 0:t.ads,"click","")},children:"ä¸éµè©¢å¹"}),t.ads&&e.jsx(O,{data:t==null?void 0:t.ads,first:!0,refresh:()=>St(t==null?void 0:t.ads,"show",""),styles:{display:"inline-block"}}),(c=t==null?void 0:t.ads)!=null&&c.title?e.jsx("span",{className:W["item-discount"],children:(l=t==null?void 0:t.ads)==null?void 0:l.title}):(t==null?void 0:t.discountPrice)!==""?e.jsxs("span",{className:W["item-discount"],children:["æé«ç¦®å
",t==null?void 0:t.discountPrice]}):e.jsx(e.Fragment,{}),(t==null?void 0:t.ads)&&((o=t==null?void 0:t.ads)==null?void 0:o.tag)!==""&&e.jsx("span",{className:W["item-tag"],children:(d=t==null?void 0:t.ads)==null?void 0:d.tag})]})},{fetchKindsRecommends:n_}=z,a_=()=>{const[t,i]=u.useState([]),s=async()=>{try{const n=await n_({limit:6,ads:1});n&&n.data&&i(n.data.list)}catch(n){console.error(n)}};return u.useEffect(()=>{s()},[]),t!=null&&t.length?e.jsxs("div",{className:W["home-watching"],children:[e.jsx("div",{className:W["home-watching-title"],children:e.jsx("h3",{className:W["home-h3"],children:"ç±é·è»æ¬¾"})}),e.jsx("div",{className:W.content,children:Array.isArray(t)&&!!t.length&&t.map((n,a)=>e.jsx(s_,{dataSource:n},a))})]}):null};const i_="_content_7e6mb_5",pe={content:i_,"auto-header":"_auto-header_7e6mb_10","auto-header-left":"_auto-header-left_7e6mb_17","auto-header-right":"_auto-header-right_7e6mb_41","auto-b":"_auto-b_7e6mb_45"},{tokenCollect:r_}=ae,{fetchHomeNewItem:o_}=z,{auto:c_}=C;function l_(){const[t,i]=u.useState("newcar"),[s,n]=u.useState({marginTop:"20px"}),[a,c]=u.useState({itemCount:0,list:[]}),l=Xt(Gt),o=async()=>{const r=await o_({deviceId:Fe()});r&&r.status===12e3&&c({itemCount:r.data.itemCount,list:r.data.list.map(_=>({..._,UUID:Ae()}))})},d=()=>{(window.rtbhEvents=window.rtbhEvents||[]).push({eventType:"home"},{eventType:"uid",id:window.mId||"unknown"})};return u.useEffect(()=>{const r=Jt.get("tc_user_type")||"newcar";i(r),r_(),o(),d()},[]),u.useEffect(()=>{if(window.location.hash!=="#eight_carousel")return;const r=document.getElementById("eight_carousel");if(!r)return;let _=0;const h=()=>{var L;const A=((L=document.getElementById("t8891-home-top-nav"))==null?void 0:L.offsetHeight)||0,$=r.getBoundingClientRect().top+window.scrollY-A;window.scrollTo(0,$)},p=new ResizeObserver(()=>{window.clearTimeout(_),_=window.setTimeout(h,100)});p.observe(document.body),h();const g=window.setTimeout(()=>p.disconnect(),5e3);return()=>{window.clearTimeout(_),window.clearTimeout(g),p.disconnect()}},[]),e.jsx(yn,{children:e.jsxs(An,{offset:60,children:[e.jsx(Me,{slot:"/173427088/global-homepage-top-banner",wrapperStyles:{width:"970px",height:"90px",margin:"0 auto",position:"relative"},styles:{width:"970px",height:"90px",margin:"0 auto",position:"relative"},size:[["fluid"],[970,90]],width:970,height:90}),e.jsx(In,{}),e.jsx(Sn,{}),e.jsx(oa,{userType:t,onChange:r=>i(r)}),e.jsx(Zd,{}),e.jsxs("div",{className:pe.content,children:[e.jsx(Td,{}),e.jsx(J,{children:e.jsx(hr,{type:t})}),e.jsx(se,{id:"jd",children:e.jsx(J,{children:e.jsx(eo,{})})}),e.jsx(se,{id:"AdIframeTs",children:e.jsx(Rt,{slot:"/173427088/global-homepage-weist-focus-under",styles:{width:"1190px",height:"90px",marginTop:"40px"},size:[["fluid"],[1190,90]]})}),e.jsx(se,{id:"yy",children:e.jsx(ge,{height:472,children:e.jsx(J,{children:e.jsx(Rl,{})})})}),e.jsx(se,{id:"jhhj",children:e.jsx(J,{children:e.jsx(zd,{})})}),e.jsx(se,{id:"djdzk",children:e.jsx(J,{children:e.jsx(a_,{})})}),e.jsxs(se,{id:"zgc",children:[e.jsx(tt,{unitId:2,width:1190,style:{marginTop:40}}),e.jsxs(ge,{height:646,children:[e.jsxs("div",{className:pe["auto-header"],children:[e.jsxs("h2",{className:pe["auto-header-left"],children:[e.jsx("b",{className:pe["auto-b"],children:"ä¸å¤è»"})," ",e.jsxs("span",{children:[e.jsx("i",{children:At(a.itemCount||0)}),"è¼è»ä¾æ¨é¸æ"]})]}),e.jsx("a",{className:pe["auto-header-right"],href:c_,target:"_blank",onClick:()=>{x("ä¸å¤è½¦","æ¥çå
¨é¨")},children:"æ¥çå
¨é¨"})]}),e.jsx(En,{}),e.jsx(J,{children:e.jsx(bt,{dataSource:a.list.slice(0,8),imageKey:["used-1.png","used-2.png"],herfArray:["/?yx=1","/?exsits=1"],gaArray:["å
¨é¨ä¸¥éä¸å¤è½¦","å
¨é¨çå®å¨åº"]})})]})]}),e.jsxs(se,{id:"zgcs-two",children:[e.jsx(tt,{unitId:1,width:1190,onSuccess:()=>{n({marginTop:20,marginBottom:20})},style:s}),e.jsx(ge,{height:572,children:e.jsx(J,{children:e.jsx(bt,{dataSource:a.list.slice(8,16),imageKey:["used-3.png","used-4.png"],herfArray:["","/?video=1"],gaArray:["å
¨é¨çå®è½¦æº","å
¨é¨å½±çç车"]})})}),e.jsx(Nd,{})]}),e.jsx(se,{id:"zgcs",children:e.jsx(ge,{children:e.jsx(J,{children:e.jsx(Nc,{})})})})]}),e.jsx(se,{id:"eight_carousel",children:e.jsx(J,{children:e.jsx(Dl,{})})}),e.jsx("div",{className:pe.content,children:e.jsx(ge,{children:e.jsx(J,{children:e.jsx(dd,{})})})}),e.jsx(J,{children:e.jsx(As,{onLoginUpdate:{update:({account:r,mobile:_,memberId:h})=>{Qt({account:r,mobile:_,memberId:h}),l()}}})})]})})}Re.render(e.jsx(l_,{}),document.getElementById("app"));
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.