const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-DmNnmWIs.js","assets/vendor-DJC-2VPc.js","assets/vendor-DXOeSP1F.css","assets/index-BZco6cza.js","assets/index-DRuTtKnM.css","assets/useBreadcrumbs-DNKlvuhT.js","assets/category.vue_vue_type_style_index_0_lang-QiRgV7lR.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-D7BFDuBe.js","assets/filters-popup-sidebar-BC8kckBr.css","assets/product-skeleton-grid-DjqEhtTY.js","assets/product-skeleton-list-bi-L_nKm.js","assets/category-CKgv03bd.css","assets/category-CWx9KWOW.js","assets/index-o5FTalq2.js","assets/product-1pA1cJJk.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-xrlo0EgP.js","assets/useFiles-B2QqjIAy.js","assets/index-BdUNrkFj.js","assets/useXPickup-DcgOHV4R.js","assets/product-o2MeCMjj.css","assets/virto-pages-BM9_wgnL.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-DDFEG7L-.js","assets/customComponents-BVNdRjEP.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-BMWNfNK_.js","assets/static-page.vue_vue_type_script_setup_true_lang-nihTekOT.js","assets/useStaticPage-OJFHfxiY.js","assets/brands-q1yEBn-v.js","assets/brands-Bk3d9djK.css","assets/brand-nRNxXSBu.js","assets/brand-PrLpsNcJ.css","assets/news-article-NlJXA82E.js","assets/index-Pcib4pjH.js","assets/news-article-C1WAPGB7.css"])))=>i.map(i=>d[i]);
import{F as O,m as j,as as S,N as C,b8 as M,Q as U,W as v,e,R as o,_ as r,az as s,ad as c}from"./vendor-DJC-2VPc.js";import{bF as F,b4 as x}from"./index-BZco6cza.js";import{u as z}from"./useStaticPage-OJFHfxiY.js";const Q={key:0,class:"slug-content"},H=O({__name:"slug-content",props:{pathMatch:{},isVisible:{type:Boolean}},emits:["setState"],setup(h,{emit:I}){const b=I,d=h,E=s(()=>c(()=>import("./catalog-DmNnmWIs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),k=s(()=>c(()=>import("./category-CWx9KWOW.js"),__vite__mapDeps([12,3,1,2,4,5,13,6,7,8,9,10,11]))),A=s(()=>c(()=>import("./product-1pA1cJJk.js").then(t=>t.p),__vite__mapDeps([14,1,2,3,4,5,13,7,8,15,16,17,18,19]))),B=s(()=>c(()=>import("./virto-pages-BM9_wgnL.js"),__vite__mapDeps([20,3,1,2,4,21,22,5,23]))),V=s(()=>c(()=>import("./static-page-BMWNfNK_.js"),__vite__mapDeps([24,25,1,2,3,4,5,23,26]))),w=s(()=>c(()=>import("./brands-q1yEBn-v.js"),__vite__mapDeps([27,1,2,3,4,5,28]))),D=s(()=>c(()=>import("./brand-nRNxXSBu.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,30]))),R=s(()=>c(()=>import("./news-article-NlJXA82E.js"),__vite__mapDeps([31,1,2,3,4,5,32,33]))),{setMatchingRouteName:l}=F(),{staticPage:u}=z(),T=j(()=>d.pathMatch?d.pathMatch.filter(Boolean).join("/"):"/"),{loading:_,slugInfo:a,objectType:n,hasContent:p,hasPageDocumentContent:m,pageDocumentContent:g,pageContent:f,fetchContent:N,fetchPageDocumentContent:L}=x(T);S(()=>{_.value?i("loading"):["Catalog","Category","CatalogProduct","Brands","Brand","NewsArticle"].includes(n.value)||g.value||f.value?i("ready"):a.value?.redirectUrl?i("redirect",a.value.redirectUrl):i("empty")});function i(t,P){b("setState",{state:t,redirectUrl:P})}C(a,()=>{switch(a.value?.entityInfo?.objectType){case"CatalogProduct":l("Product");break;case"Category":l("Category");break;case"NewsArticle":l("NewsArticle");break;case"ContentFile":N();break;case"Pages":L();break;default:y()}}),C(f,t=>{t?u.value=t:y()});function y(){u.value=void 0}return M(()=>{l("")}),(t,P)=>t.isVisible&&!e(_)&&(e(p)||e(n)||e(m))?(o(),U("div",Q,[e(n)==="Catalog"?(o(),r(e(E),{key:0})):e(n)==="Category"?(o(),r(e(k),{key:1,"category-id":e(a)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["category-id"])):e(n)==="Brands"?(o(),r(e(w),{key:2})):e(n)==="Brand"?(o(),r(e(D),{key:3,"brand-id":e(a)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["brand-id"])):e(n)==="CatalogProduct"?(o(),r(e(A),{key:4,"product-id":e(a)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["product-id"])):e(n)==="NewsArticle"?(o(),r(e(R),{key:5,"article-id":e(a)?.entityInfo?.objectId??""},null,8,["article-id"])):e(m)?(o(),r(e(B),{key:6,"page-document":e(g)},null,8,["page-document"])):e(p)?(o(),r(e(V),{key:7})):v("",!0)])):v("",!0)}});export{H as default};
//# sourceMappingURL=slug-content-DCzsPiw4.js.map
