1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BCiIv-No.js","./B6lg6KyC.js","./BFUokTX9.js","./CLzY9OhB.js","./C5hFdK3w.js","./CGnAmv0C.js","./BW9V6iSA.js","./D2a22Ail.js","./BNDL1TPj.js","./hRVa7Yno.js","./DkS9t1hr.js","./DKPRQeYQ.js","./BUFBeVCL.js","./BKX5c3Py.js","./DP2Tuw6V.js","./0-I-aX-V.js","./DOsHWGkS.js","./Djzvhd2m.js","./CGEPtw0G.js","./CUjNQOoq.js","./DE_LPZwC.js","./Bp-UngTe.js","./jn0HhGf0.js","./GlbK1MbY.js","./Ca2rGEGQ.js","./CiGMrcg0.js","./LkdHc8Ks.js","./BKWyvbZq.js","./DLLdmAcn.js","./BBTrNXSv.js","./DHRuAeoA.js","./DJDXcsc_.js","./r-HtI9Tr.js","./B1g4zm5y.js","./CLtXnf3I.js","./Cc14Hc4T.js","./DzSOPZ5u.js","./Dfb6AAF0.js","./D8PQbvXD.js","./BmuTBzAl.js","./CLhVU4Sh.js","./DDx4DumQ.js","./DqoZuwk6.js","./BmJq4pVu.js","./DBQIqQs2.js","./DNo5Zo2e.js","./R4ymdg-E.js","./BjM_m_nA.js","./Bt91gAWs.js","./Ffb9oXbg.js","./BUw4lyy5.js","./Dv6cLsEG.js","./CyA82eeB.js","./C4s58Mi4.js","./C2a-ka9j.js","./CU-OKTJM.js","./DqdUi-i9.js","./6ryHgR7j.js","./DS8g8QNC.js","./CoyMEwAC.js","./D7j4L09i.js","./nRNnAz01.js","./BENyCMkN.js","./D7fCrhSi.js","./D_HnYHRh.js"])))=>i.map(i=>d[i]); 2import{cy as ga,d as Y,i as ke,s as de,g as r,D as ba,j as R,o,E as Ie,u as e,n as j,w as F,e as x,r as ye,h as m,v as Pe,a0 as je,_ as H,Q as Xe,b as we,c2 as ka,m as ce,a9 as Ze,bi as ya,bj as wa,z as ea,Y as ge,b0 as aa,c as p,a as _,t as q,B as be,x as xa,y as me,af as Ue,T as Ea,au as Ta,q as Ra,M as Ia,S as Pa,ai as qe,c3 as Me,aC as We,bM as Ge,bN as Je,cz as Oa,aY as Va,aE as Sa,bF as Da,R as $a,aa as La,ab as Ca,aG as Aa,b2 as za,cd as Na,cA as Ye,ac as b,bJ as Ba,bP as Fa,a5 as He,H as le,I as ie,aB as ja,cB as Ua,ad as k,bo as qa,cC as Ma,cD as Ke,am as Wa}from"./B6lg6KyC.js";import{u as Ga,a as Ja,s as Ya,c as Ha,V as Ka}from"./DkS9t1hr.js";import{F as Qa}from"./B1g4zm5y.js";import{F as Xa}from"./CLtXnf3I.js";const Za={class:"label"},fe=H(Y({__name:"f-lockup",props:{componentName:{default:"lockup"},title:{default:""},type:{default:"button"},disabled:{type:Boolean},variant:{default:()=>["tertiary-outline"]},borderRadius:{default:void 0},paddingSize:{default:"large"},size:{default:"large"},iconType:{default:void 0},iconProps:{default:void 0},iconPosition:{default:"prepend"},href:{default:void 0},windowTarget:{default:void 0},to:{default:void 0},iconOnly:{type:Boolean,default:!1},widthType:{default:"fit"},showToTablet:{type:Boolean,default:!1},showFromDesktop:{type:Boolean,default:!1},fontSize:{default:void 0}},emits:["click"],setup(l,{emit:P}){const y=ke(),{componentConfig:I}=de(y),f=l,g=P,z=r(()=>f.href||f.to?ba:"button"),D=r(()=>{var w;return f.borderRadius??((w=I.value)==null?void 0:w.buttons.border_radius)??"square"}),S=w=>{g("click",w)};return(w,N)=>(o(),R(Ie(e(z)),{ref:"root",class:j([l.componentName,l.variant,`f-lockup-padding-${l.paddingSize}`,e(D),`f-lockup-size-${l.size}`,`f-lockup-width-type-${l.widthType}`,`f-lockup-font-size-${l.fontSize}`,l.showToTablet?"show-to-tablet":"",l.showFromDesktop?"show-from-desktop":""]),disabled:l.disabled,type:l.type,title:l.title,href:l.href,to:l.to,target:l.windowTarget,onClick:S},{default:F(()=>[N[0]||(N[0]=x("div",{role:"presentation",class:"simulated-border"},null,-1)),ye(w.$slots,"toggle",{},void 0,!0),l.iconType&&l.iconPosition==="prepend"?(o(),R(e(Pe),je({key:0,class:"prepend-icon","aria-hidden":!0,icon:l.iconType,size:{height:24,width:24}},l.iconProps),null,16,["icon"])):m("",!0),x("div",Za,[ye(w.$slots,"default",{},void 0,!0)]),l.iconType&&l.iconPosition==="append"?(o(),R(e(Pe),je({key:1,class:"append-icon","aria-hidden":!0,icon:l.iconType,size:{height:24,width:24}},l.iconProps),null,16,["icon"])):m("",!0)]),_:3},8,["class","disabled","type","title","href","to","target"]))}}),[["__scopeId","data-v-c2f12c5e"]]),et={key:0},at={class:"share-container"},tt={class:"share-container"},lt=H(Y({__name:"f-breadcrumb-vehicle-details",props:{componentName:{default:"f-breadcrumb-vehicle-details"},vehicle:{}},emits:["update:modelValue"],setup(l,{emit:P}){var se,X;const{fireGtmEvent:y}=Xe(),I=ke(),{siteConfig:f}=de(I),{t:g}=we(),z=ka(),{previous:D}=de(z),S=r(()=>{var E,u,O,Z;return!!((E=D.value)!=null&&E.meta.isVehicleSearchPage||((u=D.value)==null?void 0:u.route.name)==="dynamic-search"||(O=D.value)!=null&&O.route.path&&((Z=f.value)!=null&&Z.urls.vehicle_search.includes(D.value.route.path)))}),w=l,N=((X=(se=f.value)==null?void 0:se.urls)==null?void 0:X.vehicle_advert_vehicle_details)||"/vehicle-details",$=ce(!1),K=r(()=>{var E,u;return((u=(E=f.value)==null?void 0:E.vdp_config)==null?void 0:u.show_vdp_lockups_on_mobile)||!0}),c=r(()=>{var E,u;return{favourites:!0,compare:!0,share:!0,print:!0,pdf:!1,...((u=(E=f.value)==null?void 0:E.vdp_config)==null?void 0:u.features)||{}}}),M=r(()=>{var E,u,O;return!!(Ze(w.vehicle)&&((u=(E=w.vehicle)==null?void 0:E.advert_classification)!=null&&u.length)&&((O=w.vehicle)==null?void 0:O.advert_classification)!=="OFFER"&&c.value.compare)}
2),{toggleVehicleComparison:xe,vehicleSaved:ue}=ya(w.vehicle),{saveVehicle:Ee,vehicleSaved:ve}=wa(w.vehicle),{Breakpoint:W}=ea(),oe=W.greaterOrEqual("medium"),Q=r(()=>!!(c.value.print&&oe.value&&!ge(w.vehicle)&&!aa(w.vehicle)));return(E,u)=>(o(),p("div",{class:j([l.componentName])},[e(S)?(o(),R(e(xa),{key:0,variant:"hyperlink","padding-size":"none","icon-type":e(be).Icon.ChevronLeft,"font-weight":"body",class:"back-to-results-cta",onClick:u[0]||(u[0]=O=>E.$router.go(-1))},{default:F(()=>[e(oe)?(o(),p("span",et,q(e(g)("back-to-results")),1)):m("",!0)]),_:1},8,["icon-type"])):m("",!0),x("div",at,[e(c).favourites?(o(),R(e(fe),{key:0,variant:"neutral","icon-type":e(ve)?"icon-heart-full":"icon-heart","border-radius":"rounded","icon-props":{size:{width:18,height:18}},onClick:u[1]||(u[1]=Ue(O=>e(Ee)(),["prevent"]))},{default:F(()=>[me(q(e(ve)?e(g)("saved"):e(g)("save")),1)]),_:1},8,["icon-type"])):m("",!0),e(M)?(o(),R(e(fe),{key:1,variant:"neutral","icon-type":e(ue)?"icon-tick":"icon-compare-vehicle","border-radius":"rounded","icon-props":{size:{width:18,height:18}},onClick:u[2]||(u[2]=Ue(O=>e(xe)(),["prevent"]))},{default:F(()=>[me(q(e(ue)?e(g)("comparing"):e(g)("compare")),1)]),_:1},8,["icon-type"])):m("",!0),e(c).share||e(K)?(o(),R(e(fe),{key:2,"icon-type":e(be).Icon.Share,variant:"neutral","border-radius":"rounded","icon-props":{size:{width:18,height:18}},onClick:u[3]||(u[3]=O=>[$.value=!0,e(y)("vdp_share_cta")])},{default:F(()=>[me(q(e(g)("share")),1)]),_:1},8,["icon-type"])):m("",!0),e(Q)?(o(),R(e(fe),{key:3,variant:"neutral","border-radius":"rounded",to:`${e(N)}/print/`+l.vehicle.slug,"icon-type":e(be).Icon.Print,"icon-props":{size:{width:18,height:18}},onClick:u[4]||(u[4]=O=>e(y)("vdp_print_cta"))},{default:F(()=>[me(q(e(g)("print")),1)]),_:1},8,["to","icon-type"])):m("",!0)]),_(e(Ta),{heading:e(g)("share-this-vehicle"),subheading:e(g)("select-the-platform-you-want-to-share"),"is-open":e($),"onUpdate:isOpen":u[5]||(u[5]=O=>Ea($)?$.value=O:null)},{default:F(()=>[x("aside",tt,[_(e(Xa))])]),_:1},8,["heading","subheading","is-open"])],2))}}),[["__scopeId","data-v-77d75bb0"]]),it=["aria-label"],ot={key:0,class:"skeleton-deep-root"},st=H(Y({__name:"f-skeleton-loader",props:{componentName:{default:"f-skeleton-loader"},height:{default:void 0},width:{default:void 0},aspectRatio:{default:void 0},borderRadius:{default:"default"},animationStyle:{default:"pulse"},isLoading:{type:Boolean}},emits:["update:modelValue"],setup(l){const{t:P}=we();return(y,I)=>(o(),p("div",{class:j([l.componentName,`border-radius-${l.borderRadius}`,`animation-style-${l.animationStyle}`]),"aria-label":e(P)("loading"),"aria-busy":"true","aria-live":"polite",role:"alert"},[l.isLoading?(o(),p("div",ot,[ye(y.$slots,"skeleton",{},()=>[_(e(T),{height:l.height,width:l.width,"aspect-ratio":l.aspectRatio},null,8,["height","width","aspect-ratio"])],!0)])):ye(y.$slots,"default",{key:1},void 0,!0)],10,it))}}),[["__scopeId","data-v-2d5a4e3e"]]),T=H(Y({__name:"f-skeleton-rect",props:{animationStyle:{default:"pulse"},componentName:{default:"f-skeleton-rect"},borderRadius:{default:"default"},height:{default:void 0},width:{default:void 0},aspectRatio:{default:void 0}},setup(l){const P=l,y=r(()=>{const{height:I,width:f,aspectRatio:g}=P;return I&&f?{height:I,width:f,aspectRatio:void 0}:I&&!f?{height:I,width:"100%",aspectRatio:void 0}:f&&!I?{width:f,height:"100%",aspectRatio:void 0}:{width:"100%",height:void 0,aspectRatio:g||"1/1"}});return(I,f)=>(o(),p("div",{class:j([l.componentName,`border-radius-${l.borderRadius}`,`animation-style-${l.animationStyle}`]),style:Ra([e(y)])},null,6))}}),[["__scopeId","data-v-ad84ed7c"]]),Qe=H(Y({__name:"f-skeleton-paragraph",props:{animationStyle:{default:"pulse"},componentName:{default:"f-skeleton-paragraph"},borderRadius:{default:"default"}},setup:l=>(P,y)=>(o(),p("div",{class:j([[l.componentName],"flex flex-col gap-small"])},[_(e(T),{"border-radius":"pill",height:"1rem",width:"90%"}),_(e(T),{"border-radius":"pill",height:"1rem",width:"60%"}),_(e(T),{"border-radius":"pill",height:"1rem",width:"70%"})],2))}),[["__scopeId","data-v-9677b182"]]),ta=H(Y({__name:"f-optional-extras-banner",props:{componentName:{default:"f-optional-extras-banner"},vehicle:{default:void 0},context:{default:"vdp"}},emits:["click","update:modelValue"],setup(l,{emit:P}){const{t:y}=we(),{formatPriceNoDecimal:I}=Ia(),{vehicleOptionalExtrasValue:f}=Pa(),g=l,z=r(()=>g.context==="srp"),D=r(()=>g.vehicle?f(g.vehicle,z.value):0),S=P;return(w,N)=>{var $,K;return"additional_features"in l.vehicle&&((K=($=l.vehicle)==null?void 0:$.additional_features)!=null&&K.length)&&e(D
2)>0?(o(),p("aside",{key:0,class:j([l.componentName]),onClick:N[0]||(N[0]=c=>S("click"))},[_(e(Pe),{icon:e(be).Icon.SpecFeatures,size:{height:24,width:24}},null,8,["icon"]),x("p",null,q(e(y)("includes"))+" "+q(e(I)(e(f)(l.vehicle,e(z))))+" "+q(e(y)("of-optional-extras")),1)],2)):m("",!0)}}}),[["__scopeId","data-v-56ac7c70"]]),rt=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),nt={class:"vehicle-details-page"},ct={class:"sw"},dt={class:"vdp-body"},ut={key:0,class:"vdp-skeleton-breadcrumb-spacer"},vt={class:"row gap-large"},pt={class:"col-12 col-lg-8 flex flex-col gap-large"},ht={key:0,class:"flex flex-col vdp-skeleton-bottom-track"},_t={class:"flex gap-small vdp-skeleton-thumbs"},mt={key:1,class:"flex gap-small vdp-skeleton-right-track"},ft={key:0,class:"flex flex-col gap-small vdp-skeleton-right-track__thumbs"},gt={key:1,class:"flex flex-col gap-small vdp-skeleton-right-track__thumbs"},bt={key:2,class:"vdp-skeleton-breadcrumb-spacer vdp-skeleton-breadcrumb-spacer--bottom"},kt={class:"flex flex-col gap-small"},yt={class:"flex gap-medium"},wt={key:0,class:"col-12 col-lg-4 flex flex-col gap-large"},xt={class:"flex flex-col gap-small"},Et={class:"row gap-large"},Tt={class:"vehicle-overview-container col-12 col-lg-8"},Rt={key:0,class:"vdp-mobile-view"},It={key:1,class:"vdp-desktop-view"},Pt={class:"col-12 col-lg-4"},Ot={key:1,class:"deal-stacker-skeleton"},Vt={class:"col-12"},St=Y({__name:"vehicle-details-page",props:{vehicleSlug:{}},async setup(l){let P,y;const{setVehicleData:I,clearVehicleData:f}=Oa(),g=b(()=>k(()=>import("./BCiIv-No.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),z=b(()=>k(()=>import("./BUFBeVCL.js"),__vite__mapDeps([12,13,1,14,15,16,17,18,19,20,21,22,23,24,10,3,4]),import.meta.url)),{fireGtmEvent:D}=Xe(),{t:S}=we(),{checkAndRedirect:w}=(()=>{const a=We(),t=qe(),s=Me(),n=ke(),{tenantConfig:h}=de(n);return{checkAndRedirect:async()=>{var L,C;const v=t.path;try{const d=await a(`${(L=h.value)==null?void 0:L.api_domain}/api/redirect`,{params:{slug:v}});if(d&&"url"in d){const V=d.status||301,A=d.url===""?"/":Ge(`/${d.url}`,(C=h.value)==null?void 0:C.site_config);return await s.runWithContext(()=>Je({path:A,query:t.query},{redirectCode:V,replace:!0})),!0}}catch{}return!1}}})(),N=l,$=Me(),K=ke(),{siteConfig:c,vehicleConfig:M}=de(K),{show:xe}=Ga(),{show:ue}=Ja(!1,{}),{setVehicle:Ee}=Va(),{vehicleSeoParams:ve}=Sa(),W=qe(),oe=new Set,Q=ce(void 0),se=r(()=>he.value==="success"&&i.value&&i.value.vehicle),X=ce({finance_term:null,finance_mileage:null,finance_deposit:null,finance_type:null}),E=r(()=>{var a,t;return((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.remove_breadcrumbs_from_top)!==!0}),u=r(()=>{var a,t;return((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.display_optional_extras_banner)===!0}),O=r(()=>{var a,t,s;return!("show_featured_motability_vehicles"in(((a=c.value)==null?void 0:a.motability)??{}))||((s=(t=c.value)==null?void 0:t.motability)==null?void 0:s.show_featured_motability_vehicles)}),Z=r(()=>{var a,t;return((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.gallery_track_layout)||"bottom"}),la=r(()=>{var s,n,h,v;const a=((n=(s=c.value)==null?void 0:s.vdp_config)==null?void 0:n.mobile_header_component)??[],t=((v=(h=c.value)==null?void 0:h.vdp_config)==null?void 0:v.desktop_header_component)??[];return a.includes("f-gallery-thumbs")||t.includes("f-gallery-thumbs")}),ia=r(()=>{var a,t;return(((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.mobile_header_component)??[]).includes("f-breadcrumb-vehicle-details")}),Oe=r(()=>!E.value&&pe.value&&(G.value||!ia.value)),Te=r(()=>la.value?"50px":"60px"),pe=r(()=>{var a,t;return((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.remove_save_compare_from_top)===!0}),ee=r(()=>{var a,t;return W.path.startsWith(String((t=(a=c.value)==null?void 0:a.urls)==null?void 0:t.motability_vehicle_details))||!1}),{Breakpoint:oa}=ea(),G=oa.greaterOrEqual("large"),re=ce(!1);$a(()=>{re.value||(re.value=!0)});const sa=r(()=>{var a,t;return((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.show_featured_vehicles)||!1}),ra=r(()=>{var a,t;return((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.hide_link_in_rep_example)||!0}),Ve=r(()=>{var a,t;return((t=(a=c.value)==null?void 0:a.vdp_config)==null?void 0:t.hide_finance_approval_on_vdp)||!0}),Se=r(()=>{var a,t;return(t=(a=c.value)==null?void 0:a.vdp_config)!=null&&t.show_rep_example_in_featured_vehicles?"true":"false"}
2),B=r(()=>N.vehicleSlug||W.params.slug),De=r(()=>{var v,L,C,d,V;const a=(v=i.value)==null?void 0:v.vehicle;if(!a)return"/vehicle-search";const t=(L=a.make)==null?void 0:L.toLowerCase(),s=(C=a.range_slug)==null?void 0:C.toLowerCase(),n=[t?`make=${t}`:null,s?`range=${s}`:null].filter(Boolean).join("&"),h=(V=(d=c.value)==null?void 0:d.urls)==null?void 0:V.vehicle_search;return n?`${h}?${n}`:"/vehicle-search"}),$e=r(()=>{var v,L,C,d,V;const a=(v=i.value)==null?void 0:v.vehicle;if(!a)return"/vehicle-search";const t=(L=a.make)==null?void 0:L.toLowerCase(),s=(C=a.range_slug)==null?void 0:C.toLowerCase(),n=[t?`make=${t}`:null,s?`range=${s}`:null].filter(Boolean).join("&"),h=(V=(d=c.value)==null?void 0:d.urls)==null?void 0:V.motability_search;return n?`${h}?${n}`:"/vehicle-search"}),Le=Da(()=>B.value?`vehicle-${B.value}`:`vehicle-${W.path}`,async()=>{var a,t;return B.value?W.path.startsWith(String((t=(a=c.value)==null?void 0:a.urls)==null?void 0:t.motability_vehicle_details))?await ue(B.value):await xe(B.value):null},{watch:[B],immediate:!0}),{status:he,data:i,error:Ce}=Le,ae=r(()=>{var a;return((a=i.value)==null?void 0:a.vehicle)??void 0}),{getJsonLdVehicleSchema:na}=La();Ca(()=>na(ae.value));const U=r(()=>ve(ae.value)),ca=r(()=>{var a;return!!ae.value&&(ae.value.status==="SOLD"||((a=M.value)==null?void 0:a.no_index_vdp)===!0)});Aa(()=>{var a,t;return{title:(a=U.value)==null?void 0:a.metaTitle,link:[{rel:"canonical",href:(t=U.value)==null?void 0:t.canonicalUrl}]}}),za({robots:()=>ca.value?"noindex, follow":void 0,description:()=>{var a;return(a=U.value)==null?void 0:a.metaDescription},keywords:()=>{var a;return(a=U.value)==null?void 0:a.metaKeywords},ogTitle:()=>{var a;return(a=U.value)==null?void 0:a.ogTitle},ogDescription:()=>{var a;return(a=U.value)==null?void 0:a.ogDescription},ogImage:()=>{var a;return(a=U.value)==null?void 0:a.ogImage},ogUrl:()=>{var a;return(a=U.value)==null?void 0:a.canonicalUrl}});const{addVehicle:da}=Na();Ye(ae,a=>{var t;if((t=i==null?void 0:i.value)!=null&&t.vehicle&&(da(i.value),Ee(i.value.vehicle)),a){let s="";s=ge(a)?"offer_vdp_viewed":qa(a)?"new_vehicle_vdp_viewed":aa(a)?"motability_vehicle_vdp_viewed":"used_vehicle_vdp_viewed",Ma(a)&&(s=`sold_${s}`),D(s)}},{immediate:!0,once:!0});const te=ce({}),Re=a=>{te.value=a||{}},Ae=a=>{X.value={...X.value,...a}},_e={"f-listing-page-header":b(()=>k(()=>import("./CiGMrcg0.js"),__vite__mapDeps([25,1,2,3,4,20,16,26,27,28,19,29,30,31,32,10,33,34]),import.meta.url)),"f-vehicle-highlights":b(()=>k(()=>import("./BBTrNXSv.js"),__vite__mapDeps([29,1]),import.meta.url)),"f-vehicle-key-details":b(()=>k(()=>import("./DHRuAeoA.js").then(a=>a.i),__vite__mapDeps([30,1]),import.meta.url)),"f-vehicle-content-accordion":b(()=>k(()=>import("./Cc14Hc4T.js"),__vite__mapDeps([35,1,30,36,37,38,39,40,41,42,43,3,4,2,44,45,46,47,48,9,49,15,50,11,51,10,5,52]),import.meta.url)),"f-market-price-specs":b(()=>k(()=>import("./BKWyvbZq.js"),__vite__mapDeps([27,1,28,19]),import.meta.url)),"f-listing-page-summary":b(()=>k(()=>import("./DJDXcsc_.js"),__vite__mapDeps([31,1,28,19]),import.meta.url)),"f-optional-extras":b(()=>k(()=>import("./C4s58Mi4.js"),__vite__mapDeps([53,1]),import.meta.url)),"f-optional-extras-banner":b(()=>k(()=>Promise.resolve().then(()=>rt),void 0,import.meta.url)),"f-autotrader-highlights":b(()=>k(()=>import("./C2a-ka9j.js"),__vite__mapDeps([54,1]),import.meta.url)),"f-finance-pre-approval":b(()=>k(()=>import("./CU-OKTJM.js"),__vite__mapDeps([55,1,56]),import.meta.url)),"f-offer-rep-example":b(()=>k(()=>import("./6ryHgR7j.js"),__vite__mapDeps([57,1]),import.meta.url)),"f-vehicle-rep-example":b(()=>k(()=>import("./DS8g8QNC.js"),__vite__mapDeps([58,1]),import.meta.url)),"f-report-tiles":b(()=>k(()=>import("./r-HtI9Tr.js"),__vite__mapDeps([32,1,30]),import.meta.url)),"f-included-with-this-vehicle":b(()=>k(()=>import("./CoyMEwAC.js"),__vite__mapDeps([59,56,1]),import.meta.url)),"judge-service-reviews":b(()=>k(()=>import("./D7j4L09i.js"),__vite__mapDeps([60,1,61]),import.meta.url)),"f-vdp-content-list":b(()=>k(()=>import("./BENyCMkN.js"),__vite__mapDeps([62,14,1,15,16,63]),import.meta.url)),"f-vehicle-notification-banner":b(()=>k(()=>import("./D_HnYHRh.js"),__vite__mapDeps([64,1]),import.meta.url))},ua=r(()=>{var t,s,n,h;let a=(((s=(t=c.value)==null?void 0:t.vdp_config)==null?void 0:s.mobile_components)??[]).filter(v=>v in _e);
2return ee.value&&Ve.value&&(a=a.filter(v=>v!=="f-finance-pre-approval")),ge((n=i==null?void 0:i.value)==null?void 0:n.vehicle)&&((h=M.value)!=null&&h.show_offers_as_new)&&(a=a.filter(v=>!["f-vehicle-content-accordion","f-report-tiles"].includes(v))),a}),va=r(()=>{var t,s,n,h;let a=(((s=(t=c.value)==null?void 0:t.vdp_config)==null?void 0:s.desktop_components)??[]).filter(v=>v in _e);return ee.value&&Ve.value&&(a=a.filter(v=>v!=="f-finance-pre-approval")),ge((n=i==null?void 0:i.value)==null?void 0:n.vehicle)&&((h=M.value)!=null&&h.show_offers_as_new)&&(a=a.filter(v=>!["f-vehicle-content-accordion","f-report-tiles"].includes(v))),a}),ze=a=>{oe.has(a)||(D(a),oe.add(a))},Ne=r(()=>{var n;return a=he.value,t=i.value,s=Ce.value,a==="error"?ga(s)===404:a==="success"&&(((n=t==null?void 0:t.vehicle)==null?void 0:n.message)==="Sold Vehicle"||(t==null?void 0:t.message)==="Sold Vehicle"||!(t!=null&&t.vehicle));var a,t,s}),pa=r(()=>he.value!=="error"||Ne.value?null:Ce.value),ha=r(()=>{var a;return((a=M.value)==null?void 0:a.redirect_sold_vehicles_to_search)!==!1}),_a=r(()=>{var t,s,n,h;const a=ee.value?(s=(t=c.value)==null?void 0:t.urls)==null?void 0:s.motability_search:(h=(n=c.value)==null?void 0:n.urls)==null?void 0:h.vehicle_search;return Ge(a||"/vehicle-search",c.value)}),ma=We(),fa=async a=>{const t=ee.value?"/api/v2/motability-search-filter":"/api/v2/vehicle-search-filter",s=a?`?make[]=${encodeURIComponent(a)}`:"";try{const n=await ma(`${t}${s}`);return(n==null?void 0:n.data)??n}catch{return null}};let Be=null;const Fe=async()=>{var n;const a=Ne.value,t=pa.value;if(!a&&!t||Be===B.value)return;Be=B.value;const s=Ya(i.value);if(i.value=null,te.value={},Q.value=void 0,t)$.runWithContext(()=>Ke(Wa(t,"vehicle details page")));else{if((n=M.value)!=null&&n.use_apex_redirects_on_vdp&&await w())return;if(ha.value){const h=Object.keys(s).length?s:await Ha(B.value,fa);return void await $.runWithContext(()=>Je({path:_a.value,query:{...W.query,...h,[Ka]:"1"}},{replace:!0}))}$.runWithContext(()=>Ke({statusCode:404,statusMessage:"Vehicle not found",fatal:!0}))}};return Ba(()=>{Fe()}),Ye(ae,a=>{Ze(a)&&I(a)},{immediate:!0}),Fa(()=>{f()}),[P,y]=He(()=>Le),await P,y(),[P,y]=He(()=>Fe()),await P,y(),(a,t)=>{var s,n,h,v,L,C;return o(),p("div",nt,[x("div",ct,[e(E)?(o(),R(e(Qa),{key:0,vehicle:((s=e(i))==null?void 0:s.vehicle)??void 0},null,8,["vehicle"])):m("",!0)]),(n=e(i))!=null&&n.vehicle&&e(u)?(o(),R(e(ta),{key:0,vehicle:(h=e(i))==null?void 0:h.vehicle},null,8,["vehicle"])):m("",!0),x("div",dt,[_(e(st),{class:j([{"vdp-skeleton--hidden":e(se)},"vdp-skeleton"]),"is-loading":!0},{skeleton:F(()=>[x("div",{class:j(["sw",{"padding-top":e(Oe)}])},[e(pe)?m("",!0):(o(),p("div",ut)),x("div",vt,[x("div",pt,[e(Z)==="bottom"?(o(),p("div",ht,[_(e(T),{"aspect-ratio":"var(--vdp-aspect-ratio, 3 / 2)"}),x("div",_t,[(o(),p(le,null,ie(6,d=>_(e(T),{key:d,width:"90px",height:e(Te)},null,8,["height"])),64))])])):(o(),p("div",mt,[e(Z)==="left"?(o(),p("div",ft,[(o(),p(le,null,ie(8,d=>_(e(T),{key:d,width:"90px",height:e(Te)},null,8,["height"])),64))])):m("",!0),_(e(T),{class:"vdp-skeleton-right-track__main","aspect-ratio":"var(--vdp-aspect-ratio, 3 / 2)"}),e(Z)!=="left"?(o(),p("div",gt,[(o(),p(le,null,ie(8,d=>_(e(T),{key:d,width:"90px",height:e(Te)},null,8,["height"])),64))])):m("",!0)])),e(pe)?(o(),p("div",bt)):m("",!0),x("div",kt,[_(e(T),{"border-radius":"pill",width:"80%",height:"3rem"}),_(e(T),{"border-radius":"pill",width:"20%",height:"1rem"})]),_(e(Qe)),x("div",yt,[_(e(T),{height:"5rem"}),_(e(T),{height:"5rem"})]),(o(),p(le,null,ie(9,d=>_(e(Qe),{key:d})),64))]),e(G)?(o(),p("div",wt,[x("div",xt,[_(e(T),{height:"5rem","border-radius":"default"}),_(e(T),{height:"10rem","border-radius":"default"}),_(e(T),{height:"15rem","border-radius":"default"})])])):m("",!0)])],2)]),_:1},8,["class"]),(v=e(i))!=null&&v.vehicle&&e(he)==="success"?(o(),p("div",{key:0,class:j([{"padding-top":e(Oe),"vdp-content--visible":e(se)},"sw vdp-content"])},[(L=e(i))!=null&&L.vehicle&&!e(pe)?(o(),R(e(lt),{key:0,vehicle:((C=e(i))==null?void 0:C.vehicle)??null},null,8,["vehicle"])):m("",!0),x("div",Et,[x("div",Tt,[e(G)?m("",!0):(o(),p("div",Rt,[(o(!0),p(le,null,ie(e(ua),(d,V
2)=>{var A,ne;return o(),R(Ie(_e[d]),{key:`mobile-${V}`,vehicle:((A=e(i))==null?void 0:A.vehicle)??null,"deal-stacker-deal-items":e(Q),finance:((ne=e(i))==null?void 0:ne.finance)??null,"selected-finance":e(te),"onUpdate:financeData":t[0]||(t[0]=J=>Ae(J)),"onUpdate:selectedFinance":Re,onSingletonGtmEvent:t[1]||(t[1]=J=>ze(J))},null,40,["vehicle","deal-stacker-deal-items","finance","selected-finance"])}),128))])),e(G)?(o(),p("div",It,[(o(!0),p(le,null,ie(e(va),(d,V)=>{var A,ne;return o(),R(Ie(_e[d]),{key:`desktop-${V}`,vehicle:((A=e(i))==null?void 0:A.vehicle)??null,finance:((ne=e(i))==null?void 0:ne.finance)??null,"deal-stacker-deal-items":e(Q),"selected-finance":e(te),"onUpdate:financeData":t[2]||(t[2]=J=>Ae(J)),"onUpdate:selectedFinance":Re,onSingletonGtmEvent:t[3]||(t[3]=J=>ze(J))},null,40,["vehicle","finance","deal-stacker-deal-items","selected-finance"])}),128))])):m("",!0)]),x("div",Pt,[e(G)||e(re)?(o(),R(Ua,{key:0},{default:F(()=>{var d,V;return[_(e(g),{vehicle:(d=e(i))==null?void 0:d.vehicle,finance:Object.keys(e(te)).length?e(te):(V=e(i))==null?void 0:V.finance,"parent-finance-params":e(X),onScrollTo:t[4]||(t[4]=A=>e(ja)(A)),"onUpdate:dealItems":t[5]||(t[5]=A=>Q.value=A),"onUpdate:selectedFinance":Re},null,8,["vehicle","finance","parent-finance-params"])]}),_:1})):(o(),p("div",Ot))]),x("div",Vt,[e(ee)&&e(O)&&(e(G)||e(re))?(o(),R(e(z),{key:0,content:{title:e(S)("available-to-order-new"),description:"",tabs:[{filters:JSON.stringify({make:e(i).vehicle.make,range:e(i).vehicle.range_slug,exclude:e(i).vehicle.slug}),label:"",orderBy:"price|asc",resultsPerPage:"6",view_all_link_url:e($e),view_all_link_text:e(S)("browse-all-vehicles"),advert_classification:"MOTABILITY"}],link:{url:e($e),text:e(S)("browse-all-vehicles")},theme:!1,showRepExample:e(Se),repExampleTitle:"",showNav:1,showTab:null},"is-vdp":!0},null,8,["content"])):m("",!0),!e(ee)&&e(sa)&&(e(G)||e(re))?(o(),R(e(z),{key:1,content:{title:e(S)("similar-vehicles"),description:"",tabs:[{filters:JSON.stringify({make:e(i).vehicle.make,range:e(i).vehicle.range_slug,exclude:e(i).vehicle.slug}),label:"",orderBy:"price|asc",resultsPerPage:"6",view_all_link_url:e(De),view_all_link_text:e(S)("browse-all-vehicles"),advert_classification:e(i).vehicle&&"advert_classification"in e(i).vehicle&&e(i).vehicle.advert_classification?e(i).vehicle.advert_classification:"NEW"}],link:{url:e(De),text:e(S)("browse-all-vehicles")},theme:!1,showRepExample:e(Se),repExampleTitle:"",showNav:1,showTab:null},"is-vdp":!0,"hide-link":e(ra)},null,8,["content","hide-link"])):m("",!0)])])],2)):m("",!0)])])}}}),Dt=H(St,[["__scopeId","data-v-f3bf0a0b"]]),zt=Object.freeze(Object.defineProperty({__proto__:null,default:Dt},Symbol.toStringTag,{value:"Module"}));export{lt as F,zt as v};
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.