1import{k as w,Q as $,R as E,c as i,b as e,e as N,a as u,h as m,t as l,m as o,F as g,x,_ as S,o as n,i as d,N as V}from"#entry";import{_ as B}from"./WWy_r-EY.js";import{u as R}from"./GyODDOTC.js";import{u as M}from"./Dfz_eyMs.js";import"./BsqTxom4.js";import"./pAYh3yWb.js";const P={class:"min-h-screen bg-[#f6f6f7] pt-28 pb-16"},z={class:"max-w-6xl mx-auto px-4 sm:px-6"},D={class:"text-sm text-slate-500 mb-5"},I={class:"text-slate-800"},L={class:"bg-white border border-slate-200/80 rounded-lg p-6 sm:p-8 mb-8"},A={class:"flex items-start gap-4"},F={class:"w-14 h-14 rounded-xl bg-blue-50 text-blue-600 flex items-center justify-center shrink-0"},O={class:"text-2xl sm:text-3xl font-semibold text-slate-900"},j={class:"mt-2 text-slate-600 max-w-2xl"},Q={class:"mb-10"},T={class:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3"},q={class:"mt-4 text-sm text-slate-600"},G={key:0,class:"bg-white border border-slate-200/80 rounded-lg p-6"},H={class:"flex flex-wrap gap-2"},ee={__name:"[slug]",setup(J){const b=w(),_=String(b.params.slug),t=$.find(a=>a.slug===_&&a.activa!==!1&&a.slug!=="aceite-motor");if(!t)throw E({statusCode:404,statusMessage:"CategorÃa no encontrada"});const{getMarcasPopulares:h,getMarcas:f}=R(),p=h(),v=f().length,{setPageSEO:y,setStructuredDataList:C}=M();return y("categoria-hub",{categoria:t.nombre},`Repuestos ${t.nombre} en Chile | AutoPiezas360`,`${t.descripcion} Encuentra repuestos por marca y modelo con envÃo a todo Chile.`),C([{type:"collection",data:{name:`Repuestos ${t.nombre} Chile`,description:t.descripcion,url:`/categorias/${t.slug}`,items:p.map(a=>({name:a.nombre,url:`/repuestos/${a.slug}`}))}},{type:"breadcrumb",data:{breadcrumbs:[{name:"Inicio",path:"/"},{name:"CategorÃas",path:"/categorias"},{name:t.nombre,path:`/categorias/${t.slug}`}]}}]),(a,s)=>{const c=S,k=B;return n(),i("div",P,[e("div",z,[e("nav",D,[u(c,{to:"/",class:"hover:text-blue-700"},{default:m(()=>[...s[0]||(s[0]=[d("Inicio",-1)])]),_:1}),s[2]||(s[2]=e("span",{class:"mx-2"},"/",-1)),u(c,{to:"/categorias",class:"hover:text-blue-700"},{default:m(()=>[...s[1]||(s[1]=[d("CategorÃas",-1)])]),_:1}),s[3]||(s[3]=e("span",{class:"mx-2"},"/",-1)),e("span",I,l(o(t).nombre),1)]),e("header",L,[e("div",A,[e("div",F,[u(k,{name:o(t).icono,slug:o(t).slug,size:"xl"},null,8,["name","slug"])]),e("div",null,[e("h1",O," Repuestos de "+l(o(t).nombre)+" en Chile ",1),e("p",j,l(o(t).descripcion)+". Elige tu marca y modelo en el catálogo para ver piezas compatibles e importación directa. ",1)])])]),e("section",Q,[s[4]||(s[4]=e("h2",{class:"text-lg font-semibold text-slate-900 mb-4"},"Buscar por marca",-1)),e("div",T,[(n(!0),i(g,null,x(o(p),r=>(n(),V(c,{key:r.slug,to:`/repuestos/${r.slug}`,class:"bg-white border border-slate-200/80 rounded-lg px-4 py-3 text-sm font-medium text-slate-800 hover:border-blue-400 hover:text-blue-700 transition-colors"},{default:m(()=>[d(l(r.nombre),1)]),_:2},1032,["to"]))),128))]),e("p",q,[u(c,{to:"/repuestos",class:"text-blue-700 font-medium hover:underline"},{default:m(()=>[d(" Ver las "+l(o(v))+" marcas del catálogo â ",1)]),_:1})])]),o(t).subcategorias?.length?(n(),i("section",G,[s[5]||(s[5]=e("h2",{class:"text-lg font-semibold text-slate-900 mb-3"},"SubcategorÃas",-1)),e("ul",H,[(n(!0),i(g,null,x(o(t).subcategorias,r=>(n(),i("li",{key:r,class:"text-sm px-3 py-1 rounded-full bg-slate-100 text-slate-700"},l(r),1))),128))])])):N("",!0)])])}}};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.