const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-Ch_B0BA5.js","assets/vendor-BGtMsOoo.js","assets/index-CRze-aDK.js","assets/index-BBAJCwRL.css","assets/useSlugInfo-CDk-jWkx.js","assets/category-B905syOS.js","assets/useBreadcrumbs-DdGLvHNR.js","assets/index-Go5WDFxx.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-B-nDYXmJ.js","assets/filters-popup-sidebar-DfBjWrx-.css","assets/product-card-grid.vue_vue_type_script_setup_true_lang-DTzN8zH8.js","assets/product-skeleton-grid-CDRk-2IF.js","assets/product-skeleton-list-axb2pdwT.js","assets/category-Cy5XsZZu.css","assets/category-m5wIxGrY.js","assets/product-DcJhXLBC.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-DKokEo5M.js","assets/product-DuGCBuZf.css","assets/virto-pages-B3YBRsfP.js","assets/customComponents-8Hj9M-RR.js","assets/customComponents-CWjMZ39X.css","assets/static-page-BLeLsvnb.js","assets/static-page.vue_vue_type_script_setup_true_lang-C5kP1FvF.js"])))=>i.map(i=>d[i]);
import{bd as L,f as O,d as c}from"./index-CRze-aDK.js";import{C as M,T as N,a8 as U,as as k,aZ as x,D as F,a3 as I,u as t,E as a,K as r,ag as i}from"./vendor-BGtMsOoo.js";import{u as K}from"./useSlugInfo-CDk-jWkx.js";const Z={key:0,class:"slug-content"},H=M({__name:"slug-content",props:{pathMatch:{},isVisible:{type:Boolean}},emits:["setState"],setup(b,{emit:S}){const o=S,p=b,D=i(()=>c(()=>import("./catalog-Ch_B0BA5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),V=i(()=>c(()=>import("./category-m5wIxGrY.js"),__vite__mapDeps([14,5,1,2,3,6,7,8,9,4,10,11,12,13]))),T=i(()=>c(()=>import("./product-DcJhXLBC.js"),__vite__mapDeps([15,2,1,3,6,7,8,9,16,17]))),A=i(()=>c(()=>import("./virto-pages-B3YBRsfP.js"),__vite__mapDeps([18,19,2,1,3,20]))),B=i(()=>c(()=>import("./static-page-BLeLsvnb.js"),__vite__mapDeps([21,22,1,2,3,6]))),{setMatchingRouteName:u}=L(),{staticPage:g}=O(),R=N(()=>p.pathMatch?p.pathMatch.filter(Boolean).join("/"):"/"),{loading:m,slugInfo:l,objectType:n,hasContent:_,hasPageDocumentContent:f,pageDocumentContent:y,pageContent:C,fetchContent:j,fetchPageDocumentContent:w}=K(R);U(()=>{m.value?o("setState","loading"):["Catalog","Category","CatalogProduct"].includes(n.value)||y.value||C.value?o("setState","ready"):o("setState","empty")}),k(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":j();break;case"Pages":w();break;default:h()}}),k(C,e=>{e?g.value=e:h()});function h(){g.value=void 0}return x(()=>{u("")}),(e,d)=>{var s,P,v,E;return e.isVisible&&!t(m)&&(t(_)||t(n)||t(f))?(a(),F("div",Z,[t(n)==="Catalog"?(a(),r(t(D),{key:0})):t(n)==="Category"?(a(),r(t(V),{key:1,"category-id":(P=(s=t(l))==null?void 0:s.entityInfo)==null?void 0:P.objectId,"allow-set-meta":""},null,8,["category-id"])):t(n)==="CatalogProduct"?(a(),r(t(T),{key:2,"product-id":(E=(v=t(l))==null?void 0:v.entityInfo)==null?void 0:E.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(_)?(a(),r(t(B),{key:4})):I("",!0)])):I("",!0)}}});export{H as default};
//# sourceMappingURL=slug-content-B3JA08bs.js.map
