import{_ as s}from"./DJks87v-.js";import{d as a,a as t,b as e,i as l,_ as r}from"./sxCJehno.js";import{L as i,M as c,G as o,O as d,$ as n,H as m,a2 as p,u as g,V as h,P as u,W as f,_ as x}from"./BCDZ6bul.js";import{_ as b}from"./Chl9e9Vf.js";import{_ as v}from"./B5c2b7sq.js";const _={class:"grid grid-cols-1 md:grid-cols-2 gap-8"};const k=a({},[["render",function(a,t){const e=s;return i(),c("div",_,[(i(),c(o,null,d(6,(s=>n("div",{key:s,class:"flex bg-white p-4 items-center gap-4"},[m(e,{class:"h-[80px] w-[80px]"}),m(e,{class:"h-[24px] w-[150px]"})]))),64))])}]]),y={class:"bg-[#F6F7FC] p-4 lg:p-6 h-fit"},j={class:"font-bold text-xl lg:mb-10 mb-6"},w={key:0},$={key:1},F={key:0,class:"grid grid-cols-1 md:grid-cols-2 gap-4 lg:gap-8"},L=["src"],P={class:"font-medium text-xl"},z={key:1},T={__name:"all-brands",setup(s){const a=t().$axios,{locale:_}=e(),{data:T,status:B,refresh:C}=l("brands",(()=>a("brands").then((s=>s.data.data)).catch((s=>s.response.data))));return(s,a)=>{var t;const e=k,l=b,C=r,D=v;return i(),c("div",y,[n("h3",j,p(s.$t("TITLES.allBrands")),1),"pending"===g(B)?(i(),c("div",w,[m(e)])):"success"==g(B)?(i(),c("div",$,[(null==(t=g(T))?void 0:t.length)?(i(),c("div",F,[(i(!0),c(o,null,d(g(T),(a=>(i(),h(C,{key:a.id,to:s.localePath(`/categories?brand=${a.id}`),class:"flex bg-white p-4 items-center gap-4"},{default:u((()=>[n("img",{src:a.image.media,width:"80",height:"80",alt:"zara",class:"size-20 object-cover rounded"},null,8,L),n("h5",P,p(a.title),1),n("div",{class:x(["flex-shrink-0 ms-auto inline-block","ar"===g(_)?"rotate-180":""])},[m(l,{class:x(["ar"===g(_)?"rotate-180":"","[&_path]:fill-primary [&_path]:scale-75"]),name:"chevron-right"},null,8,["class"])],2)])),_:2},1032,["to"])))),128))])):(i(),c("div",z,[m(D,{class:"!min-h-[320px]"})]))])):f("",!0)])}}};export{T as default};
