import{u as L,a as y,b as B,_}from"../server.mjs";import{_ as H}from"./NuxtImg-CUgs9eQf.js";import{ref as d,unref as f,withCtx as j,createVNode as l,toDisplayString as w,createBlock as C,openBlock as R,useSSRContext as S}from"vue";import{ssrRenderAttrs as k,ssrRenderList as q,ssrRenderComponent as m,ssrInterpolate as a}from"vue/server-renderer";const v={__name:"brands",__ssrInlineRender:!0,props:["brandsArr"],setup(r){let i=L();const o=y(),{locale:z,setLocale:A}=B();d(6);const g=d(!1);return d(i.brands),(c,t,p,x)=>{const b=_,u=H;t(`<div${k(x)}><div class="allBrands"><div class="row"><!--[-->`),q(r.brandsArr,e=>{t('<div class="col-6 col-xl-2 col-lg-3 col-md-4">'),t(m(b,{to:f(o)({path:"/cars",query:{brand:e.name.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\u0600-\u06FF-]/g,"")}})},{default:j((D,s,$,n)=>{if(s)s(`<div class="box"${n}>`),s(m(u,{src:e.image,format:"webp",quality:"75",loading:"lazy",alt:e.name||"Brand logo",width:"100",height:"100",style:{"object-fit":"contain",width:"100px",height:"100px"},placeholder:""},null,$,n)),s(`<h2${n}>${a(e.name)}</h2><div class="d-flex align-items-center justify-content-between w-100"${n}><span${n}>${a(e.cars_count)} ${a(c.$t("car"))}</span><svg class="icon arrowDir" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"${n}><path fill-rule="evenodd" clip-rule="evenodd" d="M16.7 6.29999H6.30004L6.30004 16.7H7.70004L7.70004 8.68994L17 17.9899L17.99 17L8.68999 7.69999H16.7V6.29999Z" fill="white"${n}></path></svg></div></div>`);else return[l("div",{class:"box"},[l(u,{src:e.image,format:"webp",quality:"75",loading:"lazy",alt:e.name||"Brand logo",width:"100",height:"100",style:{"object-fit":"contain",width:"100px",height:"100px"},placeholder:""},null,8,["src","alt"]),l("h2",null,w(e.name),1),l("div",{class:"d-flex align-items-center justify-content-between w-100"},[l("span",null,w(e.cars_count)+" "+w(c.$t("car")),1),(R(),C("svg",{class:"icon arrowDir",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[l("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.7 6.29999H6.30004L6.30004 16.7H7.70004L7.70004 8.68994L17 17.9899L17.99 17L8.68999 7.69999H16.7V6.29999Z",fill:"white"})]))])])]}),_:2},p)),t("</div>")}),t("<!--]--></div>"),f(g)?t(`<div class="showmoreBTN d-flex justify-content-center mt-4"><button class="showMoreBtn">${a(c.$t("showmore"))}</button></div>`):t("<!---->"),t("</div></div>")}}},h=v.setup;v.setup=(r,i)=>{const o=S();return(o.modules||(o.modules=new Set)).add("components/brands.vue"),h?h(r,i):void 0};export{v as _};
