const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-C3uVj0J7.js","assets/vendor-DpspMRYS.js","assets/vendor-DXOeSP1F.css","assets/index-BN2vBFYR.js","assets/index-DHLoV-Kc.css","assets/useBreadcrumbs-CYNtaiHl.js","assets/category.vue_vue_type_style_index_0_lang-CJPShWZd.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-CUqWgtmC.js","assets/filters-popup-sidebar-BC8kckBr.css","assets/product-card-BAiSn3mf.js","assets/product-skeleton-grid-DPCvzjcu.js","assets/product-skeleton-list-D0oxoY4r.js","assets/category-D7EDBdBZ.css","assets/category-C061-eCO.js","assets/index-o5FTalq2.js","assets/product-QyUvfGXC.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-DJgRF0EF.js","assets/useFiles-CLZfaTyW.js","assets/index-BFcunref.js","assets/add-to-cart.vue_vue_type_script_setup_true_lang-z7ApyXUZ.js","assets/useXPickup-DniPIndp.js","assets/product-B4gVDMot.css","assets/virto-pages-G-aK9nPM.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-CO6ffz2w.js","assets/customComponents-Ju2oEB7a.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-wCV3CA6j.js","assets/static-page.vue_vue_type_script_setup_true_lang-Dnbt0sqf.js","assets/useStaticPage-fC_4iKa2.js","assets/brands-DXWd8R5R.js","assets/brands-Bk3d9djK.css","assets/brand-C7PDFvv3.js","assets/brand-PrLpsNcJ.css","assets/news-article-BxsNgKan.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 v,bd as M,Q as U,W as h,e,R as o,_ as r,aA as s,ad as c}from"./vendor-DpspMRYS.js";import{cm as x,bc as F}from"./index-BN2vBFYR.js";import{u as Q}from"./useStaticPage-fC_4iKa2.js";const W={key:0,class:"slug-content"},H=O({__name:"slug-content",props:{pathMatch:{},isVisible:{type:Boolean}},emits:["setState"],setup(d,{emit:I}){const E=I,u=d,b=s(()=>c(()=>import("./catalog-C3uVj0J7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),k=s(()=>c(()=>import("./category-C061-eCO.js"),__vite__mapDeps([13,3,1,2,4,5,14,6,7,8,9,10,11,12]))),A=s(()=>c(()=>import("./product-QyUvfGXC.js").then(t=>t.p),__vite__mapDeps([15,1,2,3,4,5,14,16,17,18,19,20,7,8,21]))),B=s(()=>c(()=>import("./virto-pages-G-aK9nPM.js"),__vite__mapDeps([22,3,1,2,4,23,24,5,25]))),V=s(()=>c(()=>import("./static-page-wCV3CA6j.js"),__vite__mapDeps([26,27,1,2,3,4,5,25,28]))),w=s(()=>c(()=>import("./brands-DXWd8R5R.js"),__vite__mapDeps([29,1,2,3,4,5,30]))),D=s(()=>c(()=>import("./brand-C7PDFvv3.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,32]))),R=s(()=>c(()=>import("./news-article-BxsNgKan.js"),__vite__mapDeps([33,1,2,3,4,5,34,35]))),{setMatchingRouteName:l}=x(),{staticPage:_}=Q(),T=j(()=>u.pathMatch?u.pathMatch.filter(Boolean).join("/"):"/"),{loading:m,slugInfo:a,objectType:n,hasContent:p,hasPageDocumentContent:g,pageDocumentContent:f,pageContent:y,fetchContent:N,fetchPageDocumentContent:L}=F(T);S(()=>{m.value?i("loading"):["Catalog","Category","CatalogProduct","Brands","Brand","NewsArticle"].includes(n.value)||f.value||y.value?i("ready"):a.value?.redirectUrl?i("redirect",a.value.redirectUrl):i("empty")});function i(t,C){E("setState",{state:t,redirectUrl:C})}v(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:P()}}),v(y,t=>{t?_.value=t:P()});function P(){_.value=void 0}return M(()=>{l("")}),(t,C)=>d.isVisible&&!e(m)&&(e(p)||e(n)||e(g))?(o(),U("div",W,[e(n)==="Catalog"?(o(),r(e(b),{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(g)?(o(),r(e(B),{key:6,"page-document":e(f)},null,8,["page-document"])):e(p)?(o(),r(e(V),{key:7})):h("",!0)])):h("",!0)}});export{H as default};
//# sourceMappingURL=slug-content-w-KLT04Z.js.map
