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