const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-hCHZk3a2.js","assets/vendor-d3O24IFR.js","assets/vendor-DXOeSP1F.css","assets/index-BVlIyij2.js","assets/index--BmNDmXk.css","assets/useBreadcrumbs-DcbzYr3f.js","assets/category.vue_vue_type_style_index_0_lang-C16L4Egp.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-BFNhwpTD.js","assets/filters-popup-sidebar-BC8kckBr.css","assets/product-skeleton-grid-BuGBKYNW.js","assets/product-skeleton-list-l5_GRhWE.js","assets/category-nwbWOxpX.css","assets/category-CIdndZD2.js","assets/index-o5FTalq2.js","assets/product-BvIYfvv9.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-BCveX_zn.js","assets/useFiles-BawmHfWG.js","assets/index-_8AUyJFh.js","assets/useXPickup-BLFz2G8E.js","assets/product-o2MeCMjj.css","assets/virto-pages-MktWLpz1.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-BzNEy30T.js","assets/customComponents-h3TnxSkh.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-CYcUTxAr.js","assets/static-page.vue_vue_type_script_setup_true_lang-DqGtgQcQ.js","assets/useStaticPage-Cxvi10gm.js","assets/brands-DsdFNnZ2.js","assets/brands-Bk3d9djK.css","assets/brand-DOeZPEWd.js","assets/brand-PrLpsNcJ.css","assets/news-article-BorNkelh.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,b8 as M,Q as U,W as h,e,R as o,_ as r,az as s,ad as c}from"./vendor-d3O24IFR.js";import{bF as F,b4 as x}from"./index-BVlIyij2.js";import{u as z}from"./useStaticPage-Cxvi10gm.js";const Q={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=s(()=>c(()=>import("./catalog-hCHZk3a2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),k=s(()=>c(()=>import("./category-CIdndZD2.js"),__vite__mapDeps([12,3,1,2,4,5,13,6,7,8,9,10,11]))),A=s(()=>c(()=>import("./product-BvIYfvv9.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-MktWLpz1.js"),__vite__mapDeps([20,3,1,2,4,21,22,5,23]))),V=s(()=>c(()=>import("./static-page-CYcUTxAr.js"),__vite__mapDeps([24,25,1,2,3,4,5,23,26]))),w=s(()=>c(()=>import("./brands-DsdFNnZ2.js"),__vite__mapDeps([27,1,2,3,4,5,28]))),D=s(()=>c(()=>import("./brand-DOeZPEWd.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,30]))),R=s(()=>c(()=>import("./news-article-BorNkelh.js"),__vite__mapDeps([31,1,2,3,4,5,32,33]))),{setMatchingRouteName:l}=F(),{staticPage:_}=z(),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}=x(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){b("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",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(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-KVJOwqw6.js.map
