const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-D-hgYL0S.js","assets/vendor-bSWkQivH.js","assets/index-Dqv5IkpS.js","assets/index-CHJVabrQ.css","assets/useSlugInfo-cU0FszRY.js","assets/category.vue_vue_type_style_index_0_lang-hREM4p6T.js","assets/useBreadcrumbs-Bvh8-Tkx.js","assets/index-C20fDzNq.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-BdkpK2YN.js","assets/filters-popup-sidebar-Rh9ptexR.css","assets/product-skeleton-grid-CTjvbIpH.js","assets/product-skeleton-list-MUr-_M1I.js","assets/category-Dp1eYlK0.css","assets/category-DKtirzBC.js","assets/product-DHgQIBaS.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-ecMzjFtL.js","assets/index-D-4abmdp.js","assets/product-Cd_R_c0n.css","assets/virto-pages-B2h38nu2.js","assets/customComponents-twZNGYGk.js","assets/customComponents-CoXMEGm4.css","assets/static-page-DKlLXQ9V.js","assets/static-page.vue_vue_type_script_setup_true_lang-BT67sBlx.js"])))=>i.map(i=>d[i]);
import{aY as w,f as M,d as c}from"./index-Dqv5IkpS.js";import{K as O,Y as N,ac as U,av as E,b5 as Y,L as x,a7 as b,b as t,M as a,P as r,ak as i}from"./vendor-bSWkQivH.js";import{u as F}from"./useSlugInfo-cU0FszRY.js";const K={key:0,class:"slug-content"},H=O({__name:"slug-content",props:{pathMatch:{},isVisible:{type:Boolean}},emits:["setState"],setup(I,{emit:S}){const o=S,p=I,V=i(()=>c(()=>import("./catalog-D-hgYL0S.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),D=i(()=>c(()=>import("./category-DKtirzBC.js"),__vite__mapDeps([13,5,1,2,3,6,7,8,9,4,10,11,12]))),T=i(()=>c(()=>import("./product-DHgQIBaS.js"),__vite__mapDeps([14,2,1,3,6,7,8,9,15,16,17]))),A=i(()=>c(()=>import("./virto-pages-B2h38nu2.js"),__vite__mapDeps([18,19,2,1,3,20]))),B=i(()=>c(()=>import("./static-page-DKlLXQ9V.js"),__vite__mapDeps([21,22,1,2,3,6]))),{setMatchingRouteName:u}=w(),{staticPage:m}=M(),L=N(()=>p.pathMatch?p.pathMatch.filter(Boolean).join("/"):"/"),{loading:_,slugInfo:l,objectType:n,hasContent:g,hasPageDocumentContent:f,pageDocumentContent:y,pageContent:C,fetchContent:R,fetchPageDocumentContent:j}=F(L);U(()=>{_.value?o("setState","loading"):["Catalog","Category","CatalogProduct"].includes(n.value)||y.value||C.value?o("setState","ready"):o("setState","empty")}),E(l,()=>{var d,s;switch((s=(d=l.value)==null?void 0:d.entityInfo)==null?void 0:s.objectType){case"CatalogProduct":u("Product");break;case"Category":u("Category");break;case"ContentFile":R();break;case"Pages":j();break;default:P()}}),E(C,e=>{e?m.value=e:P()});function P(){m.value=void 0}return Y(()=>{u("")}),(e,d)=>{var s,h,v,k;return e.isVisible&&!t(_)&&(t(g)||t(n)||t(f))?(a(),x("div",K,[t(n)==="Catalog"?(a(),r(t(V),{key:0})):t(n)==="Category"?(a(),r(t(D),{key:1,"category-id":(h=(s=t(l))==null?void 0:s.entityInfo)==null?void 0:h.objectId,"allow-set-meta":""},null,8,["category-id"])):t(n)==="CatalogProduct"?(a(),r(t(T),{key:2,"product-id":(k=(v=t(l))==null?void 0:v.entityInfo)==null?void 0:k.objectId,"allow-set-meta":""},null,8,["product-id"])):t(f)?(a(),r(t(A),{key:3,"page-document":t(y)},null,8,["page-document"])):t(g)?(a(),r(t(B),{key:4})):b("",!0)])):b("",!0)}}});export{H as default};
//# sourceMappingURL=slug-content-BX-4zVI0.js.map
