1import{_ as M}from"./1IPH43Hq.js";import{v as N,at as B,ad as U,am as L,c7 as H,M as V,av as E,ah as o,o as y,t as T,c8 as h,a3 as A,_ as R,$ as n,n as u,l as r,m as g,ae as w,f as j,d as G,k as l,i as K}from"./BJvA0EIL.js";import P from"./Bhih7OxK.js";import{u as Y}from"./CdB7Icv8.js";import"./DnTGr4du.js";import"./Cx1ahJTy.js";import"./DEUUPgSz.js";import"./qn8f9jnI.js";import"./5_InDKFl.js";import"./Fo8hnxae.js";import"./CnzxiZkx.js";const q={key:0},z=["src"],F={class:"content-wrap"},J={class:"parsed-content-wrap"},O=["innerHTML"],Q={key:1},W=N({__name:"index",async setup(X){let i,x;const p=B(),{currentDealer:_}=U(L()),m=A(0),C=A("");p.name==="articles-id-slug"&&(m.value=Number(p.params.id),C.value=p.params.slug);const{data:e}=([i,x]=H(()=>Y("/aeo-articles/detailed/{id}",{key:`article-${Number(m.value)}`,path:{id:Number(m.value)}},"$w3IYKHg6dp")),i=await i,x(),i);(!e.value||e.value.id===0)&&V("/",{});function S(t){const s=t.split("-"),f=s.pop()?.toUpperCase()||"";return{city:s.map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),state:f}}const a=l(()=>{const t=e.value?.cityList.split(",").find(s=>C.value.includes(s));return t?S(t):{city:"",state:""}}),$=l(()=>e.value?a.value.city&&a.value.state?`${e.value.title} near ${a.value.city}, ${a.value.state}`:e.value.title:""),b=l(()=>{if(!e.value)return"";let t=e.value.content;return a.value.city&&a.value.state&&(t=t.replaceAll("{{ location }}",`${a.value.city}, ${a.value.state}`)),t.replaceAll("{{ dealer }}",_.value.dealership)}),d=l(()=>$.value+` | ${_.value.dealership}`),v=l(()=>{if(!e.value)return"";let t=e.value.metaDescription;return a.value.city&&a.value.state&&(t=t.replaceAll("{{ location }}",`${a.value.city}, ${a.value.state}`)),t.replaceAll("{{ dealer }}",_.value.dealership)});return e.value&&E({title:d,ogTitle:d,twitterTitle:d,description:v,ogDescription:v,twitterDescription:v}),(t,s)=>{const f=M,k=G,c=j,D=P,I=R;return o(e)?(n(),y("article",q,[T(I,null,{default:h(()=>[o(e).heroImageUrl?(n(),y("img",{key:0,src:o(e).heroImageUrl,class:"hero-image"},null,8,z)):u("",!0),r("div",F,[o(e).useInfoSection?(n(),g(f,{key:0,class:"contact-information"})):u("",!0),r("div",J,[r("h1",null,w(o($)),1),o(e).callToActionUrl?(n(),g(c,{key:0,shiny:!1},{default:h(()=>[T(k,{to:o(e).callToActionUrl,"no-rel":!o(e).callToActionIsExternal},{default:h(()=>[r("strong",null,w(o(e).callToActionLabel),1)]),_:1},8,["to","no-rel"])]),_:1})):u("",!0),r("main",{class:"parsed-content",innerHTML:o(b)},null,8,O)])]),o(e).useMapSection?(n(),g(D,{key:1})):u("",!0)]),_:1})])):(n(),y("div",Q))}}}),ue=K(W,[["__scopeId","data-v-4bfbe2fc"]]);export{ue 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.