PageSourceSearch

https://repuestos-d6c3d.firebaseapp.com/_nuxt/7Bkgx2YQ.js

js repuestos-d6c3d.firebaseapp.com collected 2026-10-03 08:14:42 UTC 6,452 bytes, 1 lines download raw bytes

1import{k as R,l as c,r as C,O as U,B as H,u as W,c as r,m as s,t as i,b as a,a as d,h as f,e as _,N as $,i as m,p as q,_ as O,a2 as T,V as j,U as F,o as l,W as G,X,S as J}from"#entry";import{_ as K}from"./WWy_r-EY.js";import{u as Q,a as Y}from"./DmGOLtgk.js";import{u as Z}from"./D-GNixRz.js";import{u as ee}from"./Dfz_eyMs.js";import"./BsqTxom4.js";import"./B-jTRGN7.js";import"./pAYh3yWb.js";const te={class:"min-h-screen bg-[#f6f6f7] pt-28 pb-16"},ae={key:0,class:"max-w-6xl mx-auto px-4 py-20 text-center text-slate-500"},oe={key:1,class:"max-w-6xl mx-auto px-4 py-12 text-center text-red-600"},se={key:2,class:"max-w-2xl mx-auto px-4 py-16 text-center"},le={key:3,class:"max-w-[1200px] mx-auto px-4 sm:px-6"},re={class:"text-sm text-slate-500 mb-8 flex flex-wrap gap-1"},ie={key:0},ne={class:"text-slate-800"},ce={class:"grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-14"},me={class:"bg-white border border-slate-200/80 rounded-lg overflow-hidden"},de=["src","alt"],ue={class:"flex flex-col"},pe={class:"text-2xl sm:text-3xl font-semibold text-slate-900 tracking-tight leading-tight"},xe={key:0,class:"mt-2 text-sm text-slate-500"},ge={class:"font-medium text-slate-800"},be={key:0},ve={class:"mt-6 flex items-baseline gap-3"},fe={class:"text-3xl font-semibold text-slate-900"},_e={class:"mt-6 text-slate-600 leading-relaxed"},he={class:"mt-8 space-y-2 text-sm text-slate-600 border-t border-slate-200 pt-6"},ke={class:"flex items-start gap-2"},ye={class:"flex items-start gap-2"},Ce={class:"flex items-start gap-2"},Ee={__name:"[slug]",async setup(we){let b,w;const V=R(),A=c(()=>String(V.params.slug)),{getAceiteBySlug:L,marcaDisplay:N,viscosidadDisplay:z}=Q(),{agregarAlCarrito:B}=Z(),{setPageSEO:D,setStructuredDataList:E}=ee(),o=C(null),h=C(!0),k=C(null);h.value=!0;try{o.value=([b,w]=U(()=>L(A.value)),b=await b,w(),b)}catch(t){k.value=t.message||"Error al cargar el producto"}finally{h.value=!1}const n=c(()=>o.value?N(o.value):""),p=c(()=>o.value?T(o.value.subcategoria||""):""),x=c(()=>o.value?z(o.value):""),g=c(()=>p.value?`/aceite-motor/${p.value}`:null),I=c(()=>o.value?j(n.value,p.value||void 0):"Aceite de motor Chile"),y=c(()=>`/aceite-motor/producto/${A.value}`);H(o,t=>{if(!t)return;const e=G(n.value,p.value||void 0),u=X(n.value,p.value||void 0)||t.descripcion;D("aceite-motor-producto",{nombre:t.nombre,marca:n.value},e,u),E([{type:"product",data:{nombre:t.nombre,descripcion:t.descripcion,marca:n.value,marcaRepuesto:t.marcaRepuesto,precio:t.precio,stock:t.stock?1:0,id:t.id,imagen:t.imagen,categoria:"Aceite de motor",url:`${J}${y.value}`,subcategoria:x.value}},{type:"breadcrumb",data:{breadcrumbs:[{name:"Inicio",path:"/"},{name:"Aceite de motor",path:"/aceite-motor"},...g.value?[{name:x.value,path:g.value}]:[],{name:t.nombre,path:y.value}]}}])},{immediate:!0}),W({link:[{rel:"canonical",href:c(()=>F(y.value))}]});function M(){if(!o.value)return;const t=o.value;B({id:t.id||"",nombre:t.nombre,precio:t.precio,cantidad:1,imagen:t.imagen,marca:t.marca,modelo:t.modelo||"Universal",anio:t.anio,categoria:t.categoria,slug:t.slug||"",stock:t.stock})}function S(){const t=o.value,e=t?`Hola, consulto por aceite de motor ${t.nombre} (${n.value}) en Chile`:"Hola, consulto por aceite de motor en Chile";window.open(`https://wa.me/56944622816?text=${encodeURIComponent(e)}`,"_blank")}function P(t){window.open(t,"_blank")}return(t,e)=>{const u=O,v=K;return l(),r("div",te,[s(h)?(l(),r("div",ae," Cargando aceite de motor... ")):s(k)?(l(),r("div",oe,i(s(k)),1)):s(o)?(l(),r("div",le,[a("nav",re,[d(u,{to:"/",class:"hover:text-blue-700"},{default:f(()=>[...e[4]||(e[4]=[m("Inicio",-1)])]),_:1}),e[6]||(e[6]=a("span",null,"/",-1)),d(u,{to:"/aceite-motor",class:"hover:text-blue-700"},{default:f(()=>[...e[5]||(e[5]=[m("Aceite de motor",-1)])]),_:1}),s(g)?(l(),r("span",ie,"/")):_("",!0),s(g)?(l(),$(u,{key:1,to:s(g),class:"hover:text-blue-700"},{default:f(()=>[m(i(s(x)),1)]),_:1},8,["to"])):_("",!0),e[7]||(e[7]=a("span",null,"/",-1)),a("span",ne,i(s(o).nombre),1)]),a("div",ce,[a("div",me,[a("div",{class:"aspect-square bg-slate-50 flex items-center justify-center p-8 cursor-pointer",onClick:e[0]||(e[0]=Ae=>s(o).imagen&&P(s(o).imagen))},[s(o).imagen?(l(),r("img",{key:0,src:s(o).imagen,alt:s(o).nombre,class:"max-w-full max-h-full object-contain"},null,8,de)):(l(),$(v,{key:1,name:"beaker",size:"xl",class:"text-slate-300 w-24 h-24"}))])]),a("div",ue,[e[13]||(e[13]=a("p",{class:"text-xs font-semibold uppercase tracking-widest text-blue-700 mb-2"}," Aceite para auto ",-1)),a("h1",pe,i(s(I)),1),s(n)?(l(),r("p",xe,[e[8]||(e[8]=m(" Marca: ",
1-1)),a("span",ge,i(s(n)),1),s(x)?(l(),r("span",be," · Viscosidad "+i(s(x)),1)):_("",!0)])):_("",!0),a("div",ve,[a("span",fe," $"+i(s(o).precio.toLocaleString("es-CL")),1),e[9]||(e[9]=a("span",{class:"text-sm text-slate-500"},"CLP",-1))]),a("p",{class:q(s(o).stock?"mt-2 text-sm font-medium text-emerald-700":"mt-2 text-sm font-medium text-amber-700")},i(s(o).stock?"● Disponible para importación":"● Consultar disponibilidad"),3),a("p",_e,i(s(o).descripcion),1),a("div",{class:"mt-8 flex flex-col sm:flex-row gap-3"},[a("button",{type:"button",class:"flex-1 bg-slate-900 text-white py-3.5 rounded-md font-medium hover:bg-blue-700 transition-colors",onClick:M}," Agregar al carrito "),a("button",{type:"button",class:"flex-1 border border-slate-300 text-slate-800 py-3.5 rounded-md font-medium hover:bg-slate-50",onClick:S}," Consultar por WhatsApp ")]),a("ul",he,[a("li",ke,[d(v,{name:"check-circle",size:"sm",class:"text-emerald-600 shrink-0 mt-0.5"}),e[10]||(e[10]=m(" Aceite de motor con importación directa a Chile ",-1))]),a("li",ye,[d(v,{name:"check-circle",size:"sm",class:"text-emerald-600 shrink-0 mt-0.5"}),e[11]||(e[11]=m(" Entrega estimada en 7 días ",-1))]),a("li",Ce,[d(v,{name:"check-circle",size:"sm",class:"text-emerald-600 shrink-0 mt-0.5"}
1),e[12]||(e[12]=m(" Garantía extendida en tu compra ",-1))])])])]),d(Y)])):(l(),r("div",se,[e[2]||(e[2]=a("h1",{class:"text-2xl font-semibold text-slate-900 mb-4"},"Aceite de motor no encontrado",-1)),e[3]||(e[3]=a("p",{class:"text-slate-600 mb-6"},"Podemos conseguir el aceite para auto que necesitas.",-1)),a("button",{type:"button",class:"bg-green-600 text-white px-6 py-3 rounded-md font-medium",onClick:S}," Consultar por WhatsApp "),d(u,{to:"/aceite-motor",class:"block mt-4 text-blue-700 hover:underline"},{default:f(()=>[...e[1]||(e[1]=[m(" Ver catálogo de aceites ",-1)])]),_:1})]))])}}};export{Ee 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.