const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-Cw_4f7Rt.js","assets/vendor-sJIIH5Cr.js","assets/vendor-DXOeSP1F.css","assets/index-BGo1APpE.js","assets/index-DgrPKDyh.css","assets/useBreadcrumbs-m4lwMW3p.js","assets/category.vue_vue_type_style_index_0_lang-D5tsghDV.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-B_eYy6Rw.js","assets/filters-popup-sidebar-DemQgZHk.css","assets/product-card-D8QD_C5k.js","assets/product-skeleton-grid-CmWGhpwb.js","assets/product-skeleton-list-CmQbtmsi.js","assets/category-D7EDBdBZ.css","assets/category-Bcg7Gv91.js","assets/index-o5FTalq2.js","assets/product-8vY-NRI7.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-DLBL2kig.js","assets/useFiles-BtMJrn-Y.js","assets/index-hI1sfMXz.js","assets/add-to-cart.vue_vue_type_script_setup_true_lang-DmF_V-WG.js","assets/useXPickup-D4GucMJk.js","assets/product-D0zCMLsG.css","assets/virto-pages-bovxAlbk.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-BBpLG9Mo.js","assets/customComponents-D6ytTEvh.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-IEwx25pz.js","assets/static-page.vue_vue_type_script_setup_true_lang-BGq_Jysz.js","assets/useStaticPage-8Oh42ldB.js","assets/brands-Cd0297yK.js","assets/brands-Bk3d9djK.css","assets/brand-VITG3FvF.js","assets/brand-PrLpsNcJ.css","assets/news-article-BVUNOn2o.js","assets/index-Pcib4pjH.js","assets/news-article-C1WAPGB7.css"])))=>i.map(i=>d[i]);
import{F as O,m as j,av as S,N as C,b4 as M,Q as U,W as h,e,R as a,_ as r,af as c,ac as s}from"./vendor-sJIIH5Cr.js";import{cm as x,bb as F}from"./index-BGo1APpE.js";import{u as Q}from"./useStaticPage-8Oh42ldB.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 b=I,u=d,E=c(()=>s(()=>import("./catalog-Cw_4f7Rt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),k=c(()=>s(()=>import("./category-Bcg7Gv91.js"),__vite__mapDeps([13,3,1,2,4,5,14,6,7,8,9,10,11,12]))),A=c(()=>s(()=>import("./product-8vY-NRI7.js").then(t=>t.p),__vite__mapDeps([15,1,2,3,4,5,14,16,17,18,19,20,7,8,21]))),B=c(()=>s(()=>import("./virto-pages-bovxAlbk.js"),__vite__mapDeps([22,3,1,2,4,23,24,5,25]))),V=c(()=>s(()=>import("./static-page-IEwx25pz.js"),__vite__mapDeps([26,27,1,2,3,4,5,25,28]))),w=c(()=>s(()=>import("./brands-Cd0297yK.js"),__vite__mapDeps([29,1,2,3,4,5,30]))),D=c(()=>s(()=>import("./brand-VITG3FvF.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,32]))),R=c(()=>s(()=>import("./news-article-BVUNOn2o.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:o,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"):o.value?.redirectUrl?i("redirect",o.value.redirectUrl):i("empty")});function i(t,v){b("setState",{state:t,redirectUrl:v})}C(o,()=>{switch(o.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()}},{immediate:!0}),C(y,t=>{t?_.value=t:P()});function P(){_.value=void 0}return M(()=>{l("")}),(t,v)=>d.isVisible&&!e(m)&&(e(p)||e(n)||e(g))?(a(),U("div",W,[e(n)==="Catalog"?(a(),r(e(E),{key:0})):e(n)==="Category"?(a(),r(e(k),{key:1,"category-id":e(o)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["category-id"])):e(n)==="Brands"?(a(),r(e(w),{key:2})):e(n)==="Brand"?(a(),r(e(D),{key:3,"brand-id":e(o)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["brand-id"])):e(n)==="CatalogProduct"?(a(),r(e(A),{key:4,"product-id":e(o)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["product-id"])):e(n)==="NewsArticle"?(a(),r(e(R),{key:5,"article-id":e(o)?.entityInfo?.objectId??""},null,8,["article-id"])):e(g)?(a(),r(e(B),{key:6,"page-document":e(f)},null,8,["page-document"])):e(p)?(a(),r(e(V),{key:7})):h("",!0)])):h("",!0)}});export{H as default};
//# sourceMappingURL=slug-content-B2kspMWB.js.map
