1import{A as x,a as S}from"./Yaj7M04L.js";import{k as E,l as o,r as s,O as M,B as O,u as T,U as q,S as B,N as h,h as D,m as a,V as F,W as H,X as I,o as i,c as R,F as U,x as L}from"#entry";import{u as W,A as $}from"./DmGOLtgk.js";import{u as P}from"./Dfz_eyMs.js";import"./WWy_r-EY.js";import"./BsqTxom4.js";import"./B-jTRGN7.js";import"./pAYh3yWb.js";const Z={__name:"index",async setup(N){let n,l;const u=E(),{getAceites:_,getMarcasAceite:v,marcaDisplay:b,viscosidadDisplay:A}=W(),{setPageSEO:g,setStructuredDataList:y}=P(),e=o(()=>String(u.query.marca||"").trim()),w=o(()=>F(e.value||void 0)),C=o(()=>H(e.value||void 0)),m=o(()=>I(e.value||void 0)),c=s([]),d=s([]),r=s(!0);async function p(){r.value=!0,c.value=await _({marca:e.value||void 0,limite:200}),d.value=await v(),r.value=!1}[n,l]=M(()=>p()),await n,l(),O(()=>u.query.marca,p),T({link:[{rel:"canonical",href:q("/aceite-motor")}]}),g("aceite-motor-hub",{marca:e.value},C.value,m.value),y([{type:"breadcrumb",data:{breadcrumbs:[{name:"Inicio",path:"/"},{name:"Aceite de motor",path:"/aceite-motor"}]}},{type:"faq",data:{faqs:$,url:`${B}/aceite-motor`}}]);function k(){const f=e.value?`Hola, busco aceite de motor ${e.value} en Chile`:"Hola, busco aceite de motor para mi auto en Chile";window.open(`https://wa.me/56944622816?text=${encodeURIComponent(f)}`,"_blank")}return(f,Q)=>(i(),h(x,{title:a(w),subtitle:a(m),count:a(c).length,loading:a(r),marcas:a(d),"marca-seleccionada":a(e),onWhatsapp:k},{default:D(()=>[(i(!0),R(U,null,L(a(c),t=>(i(),h(S,{key:t.id,producto:t,"marca-label":a(b)(t),"viscosidad-label":a(A)(t)},null,8,["producto","marca-label","viscosidad-label"]))),128))]),_:1},8,["title","subtitle","count","loading","marcas","marca-seleccionada"]))}};export{Z 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.