import{r as s,s as l,d as c,S as u,o as n,c as p,h as _,w as f,i as m,f as i}from"./index-Cdt4oMy6.js";import{A as d}from"./index-FRn5n8Ek.js";import{_ as b}from"./AppBreadcrumbs-D4S6z5V4.js";import{_ as h}from"./AppBanner-DMbYC2-2.js";import"./AppFilters-CU-uIOCE.js";import"./swiper-lfl8oNG_.js";/* empty css */var g={VITE_DOMAIN:"https://admin.resoleasing.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const $={__name:"Docs",setup(v){const r=s([]),a=s(null);return l(async()=>{const{VITE_DOMAIN:o}=g;try{const t=await c.get("/specials/?populate=*&filters[showInMenu][$eq]=true");r.value=t.data.map(e=>({badge:e.attributes.badge,src:o+e.attributes.cover.data.attributes.url,title:e.attributes.title,permalink:`/${u}/${e.id}`,description:e.attributes.shortDescription,category:e.attributes.vehicleCategory}))}catch(t){console.log(t)}try{c.get("/banners?populate=*&filters[type][$eq]=docs").then(function(t){a.value=t.data[0]}).catch(function(t){console.log(t)})}catch(t){console.log(t)}}),(o,t)=>(n(),p("div",null,[a.value?(n(),_(h,{key:0,data:a.value},{bc:f(()=>[i(b)]),_:1},8,["data"])):m("",!0),i(d,{items:r.value},null,8,["items"])]))}};export{$ as default};