PageSourceSearch

https://repuestos-d6c3d.firebaseapp.com/_nuxt/Yaj7M04L.js

js repuestos-d6c3d.firebaseapp.com collected 2026-10-03 08:14:00 UTC 12,696 bytes, 1 lines download raw bytes

1import{a9 as V,c as o,o as a,p as A,e as b,b as e,k as N,l as w,a as n,_ as j,m as u,h as p,F as S,x as L,t as i,aB as E,r as I,a3 as D,d as F,i as k,f as O,z as P,y as z,N as T,a8 as _,a1 as U}from"#entry";import{_ as q}from"./WWy_r-EY.js";import{a as R}from"./DmGOLtgk.js";const W={key:0,class:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},G=V({__name:"FilterCheckbox",props:{checked:{type:Boolean}},setup(t){return(m,r)=>(a(),o("span",{class:A(["flex-shrink-0 w-[18px] h-[18px] rounded border flex items-center justify-center",t.checked?"bg-slate-900 border-slate-900":"border-slate-300 bg-white"]),"aria-hidden":"true"},[t.checked?(a(),o("svg",W,[...r[0]||(r[0]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])])):b("",!0)],2))}}),M=Object.assign(G,{__name:"AceiteMotorFilterCheckbox"}),Q={class:"space-y-8"},Z={class:"border-0 p-0 m-0"},H={class:"space-y-0.5",role:"list"},J={class:"border-0 p-0 m-0 border-t border-slate-100 pt-6"},K=["value","disabled"],X=["value"],Y={key:0,class:"mt-2 text-xs text-slate-500 leading-relaxed"},ee={key:1,class:"mt-2 text-xs text-slate-400"},te=V({__name:"AceiteMotorFilters",props:{activeViscosidad:{},marcas:{}
1,marcaSeleccionada:{},loading:{type:Boolean}},emits:["marca-change"],setup(t,{emit:m}){const r=t,C=m,f=E,v=N(),x=w(()=>r.marcas??[]),h=w(()=>{const d=String(v.query.marca||"").trim();return d?{marca:d}:{}}),$=w(()=>({path:"/aceite-motor",query:h.value}));function y(d){return{path:`/aceite-motor/${d}`,query:h.value}}const s=d=>["flex items-center gap-3 py-2 px-1 -mx-1 rounded-md text-sm transition-colors",d?"text-slate-900 font-medium":"text-slate-600 hover:text-slate-900"].join(" ");return(d,l)=>{const g=j;return a(),o("div",Q,[e("fieldset",Z,[l[2]||(l[2]=e("legend",{class:"text-sm font-semibold text-slate-900 mb-3"}," Viscosidad ",-1)),e("ul",H,[e("li",null,[n(g,{to:u($),class:A(s(!t.activeViscosidad))},{default:p(()=>[n(M,{checked:!t.activeViscosidad},null,8,["checked"]),l[1]||(l[1]=e("span",null,"Todas",-1))]),_:1},8,["to","class"])]),(a(!0),o(S,null,L(u(f),c=>(a(),o("li",{key:c.slug},[n(g,{to:y(c.slug),class:A(s(t.activeViscosidad===c.slug))},{default:p(()=>[n(M,{checked:t.activeViscosidad===c.slug},null,8,["checked"]),e("span",null,i(c.label),1)]),_:2},1032,["to","class"])]))),128))])]),e("fieldset",J,[l[4]||(l[4]=e("legend",{class:"text-sm font-semibold text-slate-900 mb-3"}
1," Marca del aceite ",-1)),e("select",{value:t.marcaSeleccionada,disabled:t.loading,class:"w-full text-sm border border-slate-300 rounded-md px-3 py-2.5 bg-white text-slate-900 disabled:bg-slate-50 disabled:text-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500",onChange:l[0]||(l[0]=c=>C("marca-change",c.target.value))},[l[3]||(l[3]=e("option",{value:""},"Todas las marcas",-1)),(a(!0),o(S,null,L(u(x),c=>(a(),o("option",{key:c,value:c},i(c),9,X))),128))],40,K),!t.loading&&u(x).length===0?(a(),o("p",Y," Aún no hay marcas en catálogo. Usa los filtros de viscosidad o consúltanos por WhatsApp. ")):t.loading?(a(),o("p",ee," Cargando marcas… ")):b("",!0)]),l[5]||(l[5]=e("div",{class:"border-t border-slate-100 pt-6"},[e("p",{class:"text-xs text-slate-500 leading-relaxed"}," Importación directa · Envío a todo Chile · Garantía extendida ")],-1))])}}}),B=Object.assign(te,{__name:"AceiteMotorFilters"}),se={class:"bg-[#f6f6f7] pt-28 pb-20"},ae={class:"max-w-[1400px] mx-auto px-4 sm:px-6"},oe={class:"text-sm text-slate-500 mb-5 flex flex-wrap items-center gap-1"},le={class:"text-slate-800"},ie={class:"mb-8 lg:mb-10"},ne={class:"text-[1.75rem] sm:text-[2rem] font-semibold text-slate-900 tracking-tight leading-tight"},re={key:0,class:"mt-2 text-[15px] text-slate-600 leading-relaxed max-w-2xl"},de={class:"lg:hidden mb-6 group"},ce={class:"mt-3 bg-white border border-slate-200 rounded-md p-4"},ue={class:"flex flex-col lg:flex-row lg:items-start gap-0 lg:gap-0"},me={class:"hidden lg:block lg:w-[280px] flex-shrink-0 lg:pr-10 lg:border-r lg:border-slate-200/90","aria-label":"Filtros de colección"},xe={class:"lg:sticky lg:top-28 lg:max-h-[calc(100vh-7.5rem)] lg:overflow-y-auto lg:pb-8"},be={class:"flex-1 min-w-0 lg:pl-10"},ge={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-6 pb-4 border-b border-slate-200/80"},pe={class:"text-sm text-slate-600"},fe={class:"font-medium text-slate-900"},ve={class:"flex items-center gap-2 text-sm text-slate-600"},he={key:0,class:"flex flex-wrap items-center gap-2 mb-6"},ye={key:1,class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-5"},ke={key:2,class:"bg-white border border-slate-200/80 rounded-lg"},we={class:"px-6 sm:px-10 py-14 sm:py-16 text-center max-w-lg mx-auto"},Ce={class:"w-14 h-14 mx-auto mb-5 rounded-full bg-slate-100 flex items-center justify-center text-blue-600"},$e={class:"flex flex-col sm:flex-row gap-3 justify-center"},Ae={key:3,class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-5"},Se=V({__name:"AceiteCollectionShell",props:{title:{},subtitle:{},breadcrumbExtra:{},count:{},loading:{type:Boolean},activeViscosidad:{},marcas:{}
1,marcaSeleccionada:{},viscosidades:{}},emits:["whatsapp","update:marca"],setup(t){const m=t,r=I("destacados"),C=w(()=>m.loading?"…":String(m.count)),f=w(()=>U(m.activeViscosidad||"")?.label||m.activeViscosidad?.toUpperCase()||""),v=D(),x=N();function h(y){v.push({path:x.path,query:{...x.query,marca:y||void 0}})}function $(){v.push("/aceite-motor")}return(y,s)=>{const d=j,l=q;return a(),o("div",se,[e("div",ae,[e("nav",oe,[n(d,{to:"/",class:"hover:text-blue-700 hover:underline"},{default:p(()=>[...s[3]||(s[3]=[k("Inicio",-1)])]),_:1}),s[6]||(s[6]=e("span",{"aria-hidden":"true",class:"text-slate-400"},"/",-1)),n(d,{to:"/aceite-motor",class:"hover:text-blue-700 hover:underline"},{default:p(()=>[...s[4]||(s[4]=[k("Aceite de motor",-1)])]),_:1}),t.breadcrumbExtra?(a(),o(S,{key:0},[s[5]||(s[5]=e("span",{"aria-hidden":"true",class:"text-slate-400"},"/",-1)),e("span",le,i(t.breadcrumbExtra),1)],64)):b("",!0)]),e("header",ie,[s[7]||(s[7]=e("p",{class:"text-[11px] font-semibold uppercase tracking-[0.2em] text-blue-700 mb-2"}," Aceite para auto · Importación directa ",-1)),e("h1",ne,i(t.title),1),t.subtitle?(a(),o("p",re,i(t.subtitle),1)):b("",!0)]),e("details",de,[s[8]||(s[8]=F('<summary class="flex items-center justify-between w-full bg-white border border-slate-200 rounded-md px-4 py-3 text-sm font-medium text-slate-900 cursor-pointer list-none [&amp;::-webkit-details-marker]:hidden"><span class="flex items-center gap-2"><svg class="w-4 h-4 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4h13M3 8h9m-9 4h6m4 0l4-4m0 0l4 4m-4-4v12"></path></svg> Filtrar y ordenar </span><span class="text-slate-400 group-open:rotate-180 transition-transform">▼</span></summary>',1)),e("div",ce,[n(B,{"active-viscosidad":t.activeViscosidad,marcas:t.marcas,"marca-seleccionada":t.marcaSeleccionad
1a,loading:t.loading,onMarcaChange:h},null,8,["active-viscosidad","marcas","marca-seleccionada","loading"])])]),e("div",ue,[e("aside",me,[e("div",xe,[s[9]||(s[9]=e("p",{class:"text-xs font-semibold uppercase tracking-wider text-slate-500 mb-5"}," Filtros ",-1)),n(B,{"active-viscosidad":t.activeViscosidad,marcas:t.marcas,"marca-seleccionada":t.marcaSeleccionada,loading:t.loading,onMarcaChange:h},null,8,["active-viscosidad","marcas","marca-seleccionada","loading"])])]),e("div",be,[e("div",ge,[e("p",pe,[e("span",fe,i(u(C)),1),k(" "+i(t.count===1?"producto":"productos"),1)]),e("label",ve,[s[11]||(s[11]=e("span",{class:"hidden sm:inline"},"Ordenar:",-1)),O(e("select",{"onUpdate:modelValue":s[0]||(s[0]=g=>z(r)?r.value=g:null),class:"text-sm border border-slate-300 rounded-md px-3 py-2 bg-white text-slate-900 min-w-[160px] focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500"},[...s[10]||(s[10]=[e("option",{value:"destacados"},"Destacados",-1),e("option",{value:"precio-asc"},"Precio: menor a mayor",-1),e("option",{value:"precio-desc"},"Precio: mayor a menor",-1),e("option",{value:"nombre"},"Nombre A–Z",-1)])],512),[[P,u(r)]])])]),t.activeViscosidad||t.marcaSeleccionad
1a?(a(),o("div",he,[s[14]||(s[14]=e("span",{class:"text-xs text-slate-500"},"Filtros activos:",-1)),t.activeViscosidad?(a(),T(d,{key:0,to:t.marcaSeleccionada?{path:"/aceite-motor",query:{marca:t.marcaSeleccionada}}:"/aceite-motor",class:"inline-flex items-center gap-1 text-xs font-medium bg-slate-900 text-white px-2.5 py-1 rounded-full hover:bg-slate-700"},{default:p(()=>[k(i(u(f))+" ",1),s[12]||(s[12]=e("span",{"aria-hidden":"true"},"×",-1))]),_:1},8,["to"])):b("",!0),t.marcaSeleccionada?(a(),o("button",{key:1,type:"button",class:"inline-flex items-center gap-1 text-xs font-medium bg-slate-200 text-slate-800 px-2.5 py-1 rounded-full hover:bg-slate-300",onClick:s[1]||(s[1]=g=>h(""))},[k(i(t.marcaSeleccionada)+" ",1),s[13]||(s[13]=e("span",{"aria-hidden":"true"},"×",-1))])):b("",!0),e("button",{type:"button",class:"text-xs text-blue-700 hover:underline",onClick:$}," Limpiar todo ")])):b("",!0),t.loading?(a(),o("div",ye,[(a(),o(S,null,L(6,g=>e("div",{key:g,class:"bg-white border border-slate-200/80 rounded-lg overflow-hidden animate-pulse"},[...s[15]||(s[15]=[F('<div class="aspect-square bg-slate-100"></div><div class="p-4 space-y-3"><div class="h-3 bg-slate-100 rounded w-1/3"></div><div class="h-4 bg-slate-100 rounded w-full"></div><div class="h-4 bg-slate-100 rounded w-2/3"></div><div class="h-8 bg-slate-100 rounded w-1/2 mt-4"></div></div>',2)])])),64))])):t.count===0?(a(),o("div",ke,[e("div",we,[e("div",Ce,[n(l,{name:"beaker",size:"lg"})]),s[16]||(s[16]=e("h2",{class:"text-lg font-semibold text-slate-900 mb-2"}," No hay aceites con estos filtros ",-1)),s[17]||(s[17]=e("p",{class:"text-sm text-slate-600 mb-6 leading-relaxed"}," Prueba otra viscosidad o quita la marca. Si no está en catálogo, lo importamos para ti. ",-1)),e("div",$e,[e("button",{type:"button",class:"text-sm font-medium text-blue-700 border border-blue-200 bg-blue-50/50 px-5 py-2.5 rounded-md hover:bg-blue-50",onClick:$}," Ver todos los aceites "),e("button",{type:"button",class:"text-sm font-medium bg-slate-900 text-white px-5 py-2.5 rounded-md hover:bg-blue-700 transition-colors",onClick:s[2]||(s[2]=g=>y.$emit("whatsapp"))}," Consultar por WhatsApp ")])])])):(a(),o("div",Ae,[_(y.$slots,"default")]))])]),n(R,{class:"mt-16 lg:mt-20"})])])}}}),ze=Object.assign(Se,{__name:"AceiteMotorAceiteCollectionShell"}),Ve={class:"group flex flex-col h-full bg-white border border-slate-200/80 rounded-lg overflow-hidden hover:shadow-md transition-shadow duration-200"},Le=["src","alt"],je={key:1,class:"w-full h-full flex items-center justify-center bg-slate-50"},Fe={key:2,class:"absolute top-3 left-3 bg-slate-900/90 text-white text-xs font-semibold px-2.5 py-1 rounded"},Me={class:"flex flex-col flex-1 p-4 border-t border-slate-100"},Be={key:0,class:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1"},Ne={class:"text-sm font-medium text-slate-900 leading-snug line-clamp-2 group-hover:text-blue-700 transition-colors"},qe={class:"mt-3 flex items-baseline justify-between gap-2"},Ee={class:"text-lg font-semibold text-slate-900"},Ie=V({__name:"AceiteProductCard",props:{producto:{},marcaLabel:{},viscosidadLabel:{}},setup(t){const m=t,r=w(()=>`/aceite-motor/producto/${m.producto.slug}`);return(C,f)=>{const v=q,x=j;return a(),o("article",Ve,[n(x,{to:u(r),class:"block aspect-square bg-slate-50 relative overflow-hidden"},{default:p(()=>[t.producto.imagen?(a(),o("img",{key:0,src:t.producto.imagen,alt:t.producto.nombre,class:"w-full h-full object-contain p-6 group-hover:scale-[1.02] transition-transform duration-300",loading:"lazy"},null,8,Le)):(a(),o("div",je,[n(v,{name:"beaker",size:"xl",class:"text-slate-300 w-16 h-16"})])),t.viscosidadLabel?(a(),o("span",Fe,i(t.viscosidadLabel),1)):b("",!0)]),_:1},8,["to"]),e("div",Me,[t.marcaLabel?(a(),o("p",Be,i(t.marcaLabel),1)):b("",!0),n(x,{to:u(r),class:"flex-1"},{default:p(()=>[e("h3",Ne,i(t.producto.nombre),1)]),_:1},8,["to"]),e("div",qe,[e("span",Ee," $"+i(t.producto.precio.toLocaleString("es-CL")),1),e("span",{class:A(t.producto.stock?"text-xs font-medium text-emerald-700":"text-xs font-medium text-amber-700")},i(t.producto.stock?"Disponible":"Consultar"),3)]),n(x,{to:u(r),class:"mt-4 w-full text-center text-sm font-medium bg-slate-900 text-white py-2.5 rounded hover:bg-blue-700 transition-colors"},{default:p(()=>[...f[0]||(f[0]=[k(" Ver aceite ",-1)])]),_:1},8,["to"])])])}}}),Te=Object.assign(Ie,{__name:"AceiteMotorAceiteProductCard"});export{ze as A,Te as a};

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.