import{d as C,c as p,r as _,w,as as v,af as x,aL as S,aM as j,al as t,aq as o,ad as s,ao as l,ae as r,at as q,ay as d,ah as f,aN as k}from"./index-BT5eY4j5.js";import{Q as z}from"./QPage-BfEPTOJq.js";import{u as B}from"./use-meta-FmQgFpBa.js";import{b as M,_ as E}from"./CategoryCard.vue_vue_type_style_index_0_lang-BO-8upFE.js";import{E as $,_ as L}from"./EntityCardSkeleton-DqdGeiW9.js";import{_ as A}from"./PartnerButton.vue_vue_type_script_setup_true_lang-CitWnpox.js";import{u as V}from"./vue-i18n-CUkMLu72.js";import"./QSkeleton-B930fRUI.js";import"./QImg-DKhqN3GC.js";import"./QCarousel-Cjxkio9d.js";import"./use-panel-CWoWnVAV.js";import"./TouchSwipe-DbDTeaOO.js";import"./selection-DqxIs-MO.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={key:0,class:"q-mb-xl full-width flex row"},R={class:"col-12 col-md-3"},D={class:"col-12 col-md-9"},Q={class:"row q-col-gutter-y-md q-col-gutter-x-md q-pa-md"},U={key:1,class:"col-12 text-center"};const te=C({__name:"CategoryView",setup(I){const{t:h}=V(),g=S(),y=j(),u=p(()=>String(g.params.mainCategory)),b=p(()=>String(g.params.category)),a=M(u,b),c=_([]),m=_(!1);return B(a.value?{title:a.value.name+" | Moja Agenda",meta:{description:{name:"description",content:"Moja Agenda - personalizovana platforma za zakazivanje termina"},ogTitle:{name:"og:title",content:a.value.name+" | Moja Agenda"},ogDescription:{name:"og:description",content:"Moja Agenda, personalizovana platforma za zakazivanje termina."},ogType:{name:"og:type",content:"website"},ogImage:{name:"og:image",content:"https://mojaagenda.com/"+a.value.image},ogURL:{name:"og:url",content:`https://mojaagenda.com/categories/${u.value}/${a.value.slug}`},ogLocale:{name:"og:locale",content:"sr_RS"},ogLocale_en_US:{name:"og:locale:alternate",content:"en_US"}}}:{}),w(a,n=>{n&&(m.value=!0,n.getEntities().then(i=>{c.value=i}).finally(()=>{m.value=!1}))},{immediate:!0}),(n,i)=>(t(),v(z,null,{default:x(()=>[o(a)?(t(),s("div",N,[l("div",R,[r(E,{id:"category-active",class:"q-pa-none",title:o(a).name,image:o(a).image,disabled:""},null,8,["title","image"]),n.$q.platform.is.desktop?(t(),v(q,{key:0,align:"left",icon:"arrow_back",label:o(h)("goBack"),class:"full-width",onClick:i[0]||(i[0]=e=>o(y).back())},null,8,["label"])):d("",!0)]),l("div",D,[l("div",Q,[m.value?(t(),s(f,{key:0},k(4,e=>l("div",{key:e,class:"col-12 col-lg-6"},[r($)])),64)):c.value.length?(t(!0),s(f,{key:2},k(c.value,e=>(t(),s("div",{key:e.id,class:"col-12 col-lg-6"},[r(L,{id:e.id,title:e.imeSalona,images:e.slike,address:e.adresa??"",rating:e.rating,"working-hours":e.radnoVreme,"payment-methods":e.paymentMethod.split(" "),"next-available-date":e.nextAvailableDate},null,8,["id","title","images","address","rating","working-hours","payment-methods","next-available-date"])]))),128)):(t(),s("div",U,[d("",!0),r(A)]))])])])):d("",!0)]),_:1}))}});export{te as default};
