import{u as e,a as t,b as s,_ as l}from"./server.mjs";import{R as a}from"./NuxtImg-CUgs9eQf.mjs";import{ref as n,unref as o,withCtx as r,createVNode as i,toDisplayString as d,createBlock as c,openBlock as h,useSSRContext as u}from"vue";import{ssrRenderAttrs as v,ssrRenderList as m,ssrRenderComponent as p,ssrInterpolate as w}from"vue/server-renderer";const g={__name:"brands",__ssrInlineRender:!0,props:["brandsArr"],setup(u){let g=e();const f=t(),{locale:x,setLocale:b}=s();n(6);const $=n(!1);return n(g.brands),(e,t,s,n)=>{const g=l,x=a;t(`<div${v(n)}><div class="allBrands"><div class="row">\x3c!--[--\x3e`),m(u.brandsArr,(l=>{t('<div class="col-6 col-xl-2 col-lg-3 col-md-4">'),t(p(g,{to:o(f)({path:"/cars",query:{brand:l.name.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\u0600-\u06FF-]/g,"")}})},{default:r(((t,s,a,n)=>{if(!s)return[i("div",{class:"box"},[i(x,{src:l.image,format:"webp",quality:"75",loading:"lazy",alt:l.name||"Brand logo",width:"100",height:"100",style:{"object-fit":"contain",width:"100px",height:"100px"},placeholder:""},null,8,["src","alt"]),i("h2",null,d(l.name),1),i("div",{class:"d-flex align-items-center justify-content-between w-100"},[i("span",null,d(l.cars_count)+" "+d(e.$t("car")),1),(h(),c("svg",{class:"icon arrowDir",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[i("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"})]))])])];s(`<div class="box"${n}>`),s(p(x,{src:l.image,format:"webp",quality:"75",loading:"lazy",alt:l.name||"Brand logo",width:"100",height:"100",style:{"object-fit":"contain",width:"100px",height:"100px"},placeholder:""},null,a,n)),s(`<h2${n}>${w(l.name)}</h2><div class="d-flex align-items-center justify-content-between w-100"${n}><span${n}>${w(l.cars_count)} ${w(e.$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>`)})),_:2},s)),t("</div>")})),t("\x3c!--]--\x3e</div>"),o($)?t(`<div class="showmoreBTN d-flex justify-content-center mt-4"><button class="showMoreBtn">${w(e.$t("showmore"))}</button></div>`):t("\x3c!----\x3e"),t("</div></div>")}}},f=g.setup;g.setup=(e,t)=>{const s=u();return(s.modules||(s.modules=new Set)).add("components/brands.vue"),f?f(e,t):void 0};export{g as v};
