const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-nx8R9K8k.js","assets/vendor-BMB8ItLC.js","assets/vendor-DXOeSP1F.css","assets/index-EAGRne_f.js","assets/index-C0xjWaF1.css","assets/useBreadcrumbs-Dvqw9dNT.js","assets/category.vue_vue_type_style_index_0_lang-Oq5Ong34.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-BVHPuxAf.js","assets/filters-popup-sidebar-BC8kckBr.css","assets/product-skeleton-grid-CqWkFHS-.js","assets/product-skeleton-list-CrYUl-Vg.js","assets/category-nwbWOxpX.css","assets/category-D23hfISB.js","assets/index-o5FTalq2.js","assets/product-Cwu9o_Sr.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-uXJQEcDU.js","assets/useFiles-C5nKMtnZ.js","assets/index-DbRYwbuO.js","assets/add-to-cart.vue_vue_type_script_setup_true_lang-CqYbtOFd.js","assets/useXPickup-C6BSvrnq.js","assets/product-DVNwa8Z4.css","assets/virto-pages-Csn8mnnw.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-C1qfeFz0.js","assets/customComponents-BoM7V1Jx.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-pFIssBmx.js","assets/static-page.vue_vue_type_script_setup_true_lang-CySdjl0c.js","assets/useStaticPage-BrjH2a_C.js","assets/brands-BYarVl9f.js","assets/brands-Bk3d9djK.css","assets/brand-BS6NAF3G.js","assets/brand-PrLpsNcJ.css","assets/news-article-BBuA83Un.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,b9 as M,Q as U,W as h,e,R as o,_ as r,az as s,ad as c}from"./vendor-BMB8ItLC.js";import{ck as x,bc as F}from"./index-EAGRne_f.js";import{u as z}from"./useStaticPage-BrjH2a_C.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 k=I,u=d,E=s(()=>c(()=>import("./catalog-nx8R9K8k.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),b=s(()=>c(()=>import("./category-D23hfISB.js"),__vite__mapDeps([12,3,1,2,4,5,13,6,7,8,9,10,11]))),A=s(()=>c(()=>import("./product-Cwu9o_Sr.js").then(t=>t.p),__vite__mapDeps([14,1,2,3,4,5,13,7,8,15,16,17,18,19,20]))),B=s(()=>c(()=>import("./virto-pages-Csn8mnnw.js"),__vite__mapDeps([21,3,1,2,4,22,23,5,24]))),V=s(()=>c(()=>import("./static-page-pFIssBmx.js"),__vite__mapDeps([25,26,1,2,3,4,5,24,27]))),w=s(()=>c(()=>import("./brands-BYarVl9f.js"),__vite__mapDeps([28,1,2,3,4,5,29]))),D=s(()=>c(()=>import("./brand-BS6NAF3G.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,31]))),R=s(()=>c(()=>import("./news-article-BBuA83Un.js"),__vite__mapDeps([32,1,2,3,4,5,33,34]))),{setMatchingRouteName:l}=x(),{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}=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){k("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(b),{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-BVEx3zaE.js.map
