PageSourceSearch

https://www.holdcroft.com/_nuxt/CdfuZnC2.js

js holdcroft.com collected 2026-10-08 10:19:06 UTC 9,224 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CwF5Qyq7.js","./B6lg6KyC.js","./DlQsPAEo.js","./tXliWkcG.js","./DKPRQeYQ.js","./C5hFdK3w.js","./hRVa7Yno.js","./Djzvhd2m.js","./DOsHWGkS.js","./CGEPtw0G.js","./CUjNQOoq.js","./DE_LPZwC.js","./Bp-UngTe.js","./BKX5c3Py.js","./BDin7d0d.js","./D8PQbvXD.js","./D2a22Ail.js","./BjM_m_nA.js","./DrTWpuQX.js","./ByzHslcf.js","./4u3tHJim.js","./DIiivXI7.js","./DkS9t1hr.js","./CLzY9OhB.js","./DC5tuFk2.js","./CLhVU4Sh.js","./jn0HhGf0.js","./GlbK1MbY.js","./BFUokTX9.js"])))=>i.map(i=>d[i]);
2import{d as Ee,ai as Re,i as qe,s as Fe,M as Pe,k as ze,m as ge,z as Ne,g as k,a3 as pe,bM as ye,aE as He,aF as Ge,aG as Ke,a4 as Ve,a5 as We,c as E,o as f,h as T,j,u as i,e as fe,f as X,ac as Xe,ad as Ze,aC as Je,bN as Qe,bO as Ye,_ as ea}from"./B6lg6KyC.js";import{P as aa}from"./DzAezW3Z.js";import{u as ra,b as sa}from"./DkS9t1hr.js";import"./CLzY9OhB.js";import"./C5hFdK3w.js";const ia={class:"dynamic-search-page","data-page":"dynamic-search-page"},ta={key:0,class:"sw-md"},na={class:"dynamic-banner"},la={key:0,class:"banner-content-container"},ca=["innerHTML"],oa={key:1,class:"image-container"},ga=ea(Ee({__name:"dynamic-search-page",async setup(ha){let Z,J;const $=Re(),ke=Xe(()=>Ze(()=>import("./CwF5Qyq7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)),$e=qe(),{siteConfig:c}=Fe($e),{formatSearchFilterRange:R,slugify:q,unslugify:be}=Pe(),we=Je(),{handleInternalLinkClick:Q}=ze(),Y=ge(0),F=ge(!1),ee=()=>{var m,v,u;const e=$.path.split("/").filter(Boolean).map(y=>decodeURIComponent(y).trim()).map(y=>y.toLowerCase()),[r,n,h,a]=e,t=(v=(m=c.value)==null?void 0:m.vehicle_search)==null?void 0:v.dynamic_vehicle_search_classification_map,s=r&&t?t[r]:void 0,d=n?[n]:void 0,l=h?[h]:void 0,_=a?[be(String(a))]:void 0,o={};return(u=c.value)!=null&&u.vehicle_search.dynamic_vehicle_search_fixed_parameters&&r&&r in c.value.vehicle_search.dynamic_vehicle_search_fixed_parameters&&Object.assign(o,c.value.vehicle_search.dynamic_vehicle_search_fixed_parameters[r]),Array.isArray(s)&&s.length>0&&(o.advert_classification=s),d!==void 0&&(o.make=d),l!==void 0&&(o.range=l),_!==void 0&&(o.coin=_),o},{filters:ae,vehicleSearchLinkPath:P,defaultFilters:re,resetFilters:Ae,setFilters:Oe,index:Ce,vehicleSearchKey:Ie,vehicleSearchCacheOptions:xe}=ra(!0,ee()),{Breakpoint:se}=Ne(),Le=se.greaterOrEqual("medium"),Ue=se.greaterOrEqual("large"),Me=k(()=>{var e;try{return((e=P.value)==null?void 0:e.replace("/","").split("/")[0])||"vehicle-search"}catch{return"vehicle-search"}});async function Se(e){F.value=!0,Oe(e),setTimeout(()=>{F.value=!1},250)}const{data:Te}=pe(Ie,()=>Ce(),{...xe,lazy:!0,deep:!1}),je=k(()=>{var e,r;return((r=(e=Te.value)==null?void 0:e.meta)==null?void 0:r.total)===0}),ie=k(()=>`/api/v2/content/page${P.value}`),z=k(()=>`content-key-${ie.value}`),De=pe(()=>z.value,()=>we(ie.value),"$z_MtXRuZT3"),{data:g}=De,te=k(()=>{var a,t,s,d;const e=((s=(t=(a=c.value)==null?void 0:a.seo)==null?void 0:t.domain)==null?void 0:s.replace(/\/$/,""))||"",r=((d=P.value)==null?void 0:d.split("?")[0])||"/",n=$.fullPath.split("?")[0]||"/",h=`${e}${r}`;return h.endsWith(n)?ye(h.toLowerCase(),c.value):ye(`${e}${n}`.toLowerCase(),c.value)}),{description:N,keywords:H,ogTitle:G,ogDescription:K,getOgImage:V,getOgUrl:W,isIndexedDomain:D}=He(()=>{var e;return(e=g.value)==null?void 0:e.data}),p=k(()=>{var _,o,m,v,u,y,b,w,A,O,C,I,x,L,U,M,S,B,ce,oe,he,de,me,ve,ue,_e;const e=((_=c.value)==null?void 0:_.seo)||{},r=((v=(m=(o=g.value)==null?void 0:o.data)==null?void 0:m.meta)==null?void 0:v.title)||e.title||"",n=((b=(y=(u=g.value)==null?void 0:u.data)==null?void 0:y.meta)==null?void 0:b.description)||(N==null?void 0:N.value)||(e==null?void 0:e.description)||"",h=((O=(A=(w=g.value)==null?void 0:w.data)==null?void 0:A.meta)==null?void 0:O.keywords)||(H==null?void 0:H.value)||(e==null?void 0:e.keywords)||"",a=((L=(x=(I=(C=g.value)==null?void 0:C.data)==null?void 0:I.meta)==null?void 0:x.opengraph)==null?void 0:L["og:title"])||(G==null?void 0:G.value)||(e==null?void 0:e.title)||r,t=((B=(S=(M=(U=g.value)==null?void 0:U.data)==null?void 0:M.meta)==null?void 0:S.opengraph)==null?void 0:B["og:description"])||(K==null?void 0:K.value)||(e==null?void 0:e.description)||n,s=V==null?void 0:V(((de=(he=(oe=(ce=g.value)==null?void 0:ce.data)==null?void 0:oe.meta)==null?void 0:he.opengraph)==null?void 0:de["og:image"])||(e==null?void 0:e.ogImage)||""),d=W==null?void 0:W(((_e=(ue=(ve=(me=g.value)==null?void 0:me.data)==null?void 0:ve.meta)==null?void 0:ue.opengraph)==null?void 0:_e["og:url"])||te.value),l=((D==null?void 0:D.value)===void 0||D.value)&&!je.value;return{title:Ge(r),description:n,keywords:h,ogTitle:a,ogDescription:t,ogImage:s,ogUrl:d,canonicalUrl:te.value,isIndexedDomain:l}});Ke(()=>({title:p.value.title,meta:[{name:"description",content:p.value.description},{name:"keywords",content:p.value.keywords},{property:"og:title",content:p.value.ogTitle},{property:"og:description",content:p.value.ogDescription},{property:"og:image",content:p.value.ogImage},{property:"og:url",content:p.value.ogUrl},!p.value.isIndexedDomain&&{name:"robots",content:"noindex, nofollow"}
2].filter(Boolean),link:[{rel:"canonical",href:p.value.canonicalUrl}]}));const Be=k(()=>{var e,r,n,h;return!!((r=(e=c.value)==null?void 0:e.vehicle_search)!=null&&r.dynamic_vehicle_search_use_custom_banner)&&Object.keys(((h=(n=c.value)==null?void 0:n.vehicle_search)==null?void 0:h.dynamic_vehicle_search_banner_decoration_image)||{}).length>0}),ne=k(()=>{const{formatted:e,hasMake:r,hasModel:n,hasCoin:h}=function(l){const _=u=>u?Array.isArray(u)?u.length===1?String(u[0]??""):"":String(u??""):"",o=_(l.make),m=_(l.range),v=_(l.coin);return{raw:{make:o,model:m,coin:v},formatted:{make:o?R(o):"",model:m?R(m):"",coin:v?R(String(v)):""},slug:{make:o?q(o):"",model:m?q(m):"",coin:v?q(String(v)):""},hasMake:l.make!==void 0&&Array.isArray(l.make)&&l.make.length===1,hasModel:l.range!==void 0&&Array.isArray(l.range)&&l.range.length===1,hasCoin:l.coin!==void 0&&Array.isArray(l.coin)&&l.coin.length===1}}(ae.value);let a="Used",t="",s="",d="";switch(Me.value){case"used-cars":a="Used";break;case"new-cars":a="New";break;case"new-car-offers":a="Latest",t="Offers";break;case"vehicle-search":a="New and Used";break;case"leasing-vehicles":a="Leasing",s="Offers"}return r&&n&&h?d=s?`<h1 class="h2">${e.make} ${e.model} ${a} ${e.coin} ${s}</h1>`:t?`<h1 class="h2">${a} ${e.make} ${e.model} ${e.coin} ${t}</h1>`:`<h1 class="h2">${a} ${e.make} ${e.model} ${e.coin} for sale</h1>`:r&&n?d=s?`<h1 class="h2">${e.make} ${e.model} ${a} ${s}</h1>`:t?`<h1 class="h2">${a} ${e.make} ${e.model} ${t}</h1>`:`<h1 class="h2">${a} ${e.make} ${e.model} for sale</h1>`:r?d=s?`<h1 class="h2">${e.make} ${a} ${s}</h1>`:t?`<h1 class="h2">${a} ${e.make} ${t}</h1>`:`<h1 class="h2">${a} ${e.make} for sale</h1>`:d=`<h1 class="h2">${a} ${t||"Cars for sale"}</h1>`,d+=t||s?r||n?`<h3 class="h4">Browse our current ${e.make} ${e.model} offers</h3>`:'<h3 class="h4">Browse our current offers and promotions below</h3>':'<h3 class="h4">Refundable deposit of £49</h3>',d});Ve(()=>$.fullPath,(e,r)=>{if(e===r||F.value)return;const n=ee(),h=sa($.query,re),a={...re,...h,...Object.fromEntries(Object.entries(n).filter(([t,s])=>Array.isArray(s)?s.length>0:s!==""&&s!=null))};Ae(a),Y.value++,Ye(z.value)});const le=$.path.split("/").filter(Boolean);if(le.length>4){const e="/"+le.slice(0,4).join("/");[Z,J]=We(()=>Qe({path:e,query:$.query},{})),await Z,J()}return(e,r)=>{var n,h,a,t,s,d,l,_,o,m,v,u,y,b,w,A,O,C,I,x,L,U,M,S;return f(),E("div",ia,[i(Be)?(f(),E("div",ta,[fe("div",na,[i(ne)?(f(),E("div",la,[fe("div",{class:"banner-text",onClick:r[0]||(r[0]=(...B)=>i(Q)&&i(Q)(...B)),innerHTML:i(ne)},null,8,ca)])):T("",!0),i(c)&&i(c).vehicle_search&&i(c).vehicle_search.dynamic_vehicle_search_banner_decoration_image?(f(),E("div",oa,[(a=(h=(n=i(c))==null?void 0:n.vehicle_search)==null?void 0:h.dynamic_vehicle_search_banner_decoration_image)!=null&&a.desktop_src&&i(Ue)?(f(),j(i(X),{key:0,src:(d=(s=(t=i(c))==null?void 0:t.vehicle_search)==null?void 0:s.dynamic_vehicle_search_banner_decoration_image)==null?void 0:d.desktop_src},null,8,["src"])):(o=(_=(l=i(c))==null?void 0:l.vehicle_search)==null?void 0:_.dynamic_vehicle_search_banner_decoration_image)!=null&&o.tablet_src&&i(Le)?(f(),j(i(X),{key:1,src:(u=(v=(m=i(c))==null?void 0:m.vehicle_search)==null?void 0:v.dynamic_vehicle_search_banner_decoration_image)==null?void 0:u.tablet_src},null,8,["src"])):(w=(b=(y=i(c))==null?void 0:y.vehicle_search)==null?void 0:b.dynamic_vehicle_search_banner_decoration_image)!=null&&w.mobile_src?(f(),j(i(X),{key:2,src:(C=(O=(A=i(c))==null?void 0:A.vehicle_search)==null?void 0:O.dynamic_vehicle_search_banner_decoration_image)==null?void 0:C.mobile_src},null,8,["src"])):T("",!0)])):T("",!0)])])):T("",!0),(f(),j(i(ke),{key:i(Y),"filter-override":i(ae),content:{},"onUpdate:filters":Se},null,8,["filter-override"])),(L=(x=(I=i(g))==null?void 0:I.data)==null?void 0:x.contents)!=null&&L.rows?(f(),j(aa,{key:i(z),rows:(S=(M=(U=i(g))==null?void 0:U.data)==null?void 0:M.contents)==null?void 0:S.rows},null,8,["rows"])):T("",!0)])}}}),[["__scopeId","data-v-9882b7dd"]]);export{ga as default};

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.