import{_ as v}from"./CC3u1PFd.js";import{u as b,a as x,b as y,_ as L}from"./9wDxnFtt.js";import{b as l,A as B,Y as o,Z as a,_ as e,a1 as k,F as N,a2 as C,G as c,a6 as F,a4 as n,u as i}from"./pvhYMo2c.js";const H={class:"allBrands"},V={class:"row"},$={class:"box"},j={class:"d-flex align-items-center justify-content-between w-100"},A={key:0,class:"showmoreBTN d-flex justify-content-center mt-4"},P={__name:"brands",props:["brandsArr"],setup(d){let u=b();const _=x(),{locale:M,setLocale:q}=y(),m=l(6),h=l(!1),p=l(u.brands);function w(){p.value=brands.value.slice(0,m.value+=4)}return B(()=>{}),(r,t)=>{const f=v,g=L;return a(),o("div",null,[e("div",H,[e("div",V,[(a(!0),o(N,null,C(d.brandsArr,s=>(a(),o("div",{key:s,class:"col-6 col-xl-2 col-lg-3 col-md-4"},[c(g,{to:i(_)({path:"/cars",query:{brand:s.name.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\u0600-\u06FF-]/g,"")}})},{default:F(()=>[e("div",$,[c(f,{src:s.image,format:"webp",quality:"75",loading:"lazy",alt:s.name||"Brand logo",width:"100",height:"100",style:{"object-fit":"contain",width:"100px",height:"100px"},placeholder:""},null,8,["src","alt"]),e("h2",null,n(s.name),1),e("div",j,[e("span",null,n(s.cars_count)+" "+n(r.$t("car")),1),t[1]||(t[1]=e("svg",{class:"icon arrowDir",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e("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"})],-1))])])]),_:2},1032,["to"])]))),128))]),i(h)?(a(),o("div",A,[e("button",{class:"showMoreBtn",onClick:t[0]||(t[0]=s=>w())},n(r.$t("showmore")),1)])):k("",!0)])])}}};export{P as _};
