import{aa as h,c as r,aq as u,aj as _,aE as v,aF as x,d as k,al as l,ad as m,ae as d,af as p,ao as g,f as w,aW as B,as as D,av as N,ay as Q,ap as S}from"./index-BT5eY4j5.js";import{u as E}from"./vue-i18n-CUkMLu72.js";import{Q as I}from"./QSkeleton-B930fRUI.js";import{Q as q}from"./QImg-DKhqN3GC.js";function G(t){const e=y();return r(()=>{const a=u(t);return e.value.find(s=>s.slug===a)})}function H(t,e){const a=y();return r(()=>{const s=u(t);return a.value.find(i=>i.slug===s)?.getCategory(u(e))})}function y(){const t=_(),e=h(),{tm:a}=E(),s=r(()=>a("mainCategories")),i=r(()=>a("categories"));return r(()=>e.mainCategories.map(f=>{const n=v(f),C=e.categoriesMap[n.category];return{...n,name:s.value[n.category],categories:C.map(c=>{const o=x(n.category,c);return{...o,name:i.value[o.category],getEntities(){return t.categories.getEntities(o.category).then(b=>b.data.entities)}}}),getCategory(c){return this.categories.find(o=>o.slug===c)}}}))}const M={class:"col-6 col-sm-4 col-lg-2 q-pa-xs"},V={class:"absolute-full text-body1 text-weight-bold text-uppercase flex flex-center non-selectable"},j={class:"flex column flex-center",style:{color:"#a67e2eaa"}},z={class:"text-center q-mt-xs text-white"},J=k({__name:"CategoryCard",props:{title:{},image:{},disabled:{type:Boolean},icon:{}},setup(t){return(e,a)=>(l(),m("div",M,[d(q,{src:e.image,ratio:4/3,class:"rounded-borders","loading-show-delay":"50"},{loading:p(()=>[d(I,{class:"absolute-full"})]),default:p(()=>[a[0]||(a[0]=g("div",{class:"absolute-full gradient-background"},null,-1)),w((l(),m("div",V,[g("div",j,[e.icon?(l(),D(N,{key:0,name:e.icon,size:"lg"},null,8,["name"])):Q("",!0),g("p",z,S(e.title),1)])])),[[B,!e.disabled,"primary",{early:!0}]])]),_:1},8,["src"])]))}});export{J as _,G as a,H as b,y as u};
