const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-BrH08bqp.js","assets/vendor-D8NNcBCx.js","assets/vendor-DXOeSP1F.css","assets/index-CiAiYnez.js","assets/index-DSBsdAPm.css","assets/useBreadcrumbs-DJ2ZfPFw.js","assets/category.vue_vue_type_style_index_0_lang-DPxLm8e_.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-D6uZ3B0E.js","assets/filters-popup-sidebar-BWzwnoZo.css","assets/product-card-B_VgM0-U.js","assets/product-skeleton-grid-TSbIQFsH.js","assets/product-skeleton-list-BdGMqpRR.js","assets/category-CfcMKUww.css","assets/category-DxBRMgep.js","assets/index-o5FTalq2.js","assets/product-CdT-OVy2.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-CvT5fijJ.js","assets/useFiles-DLDksq11.js","assets/index-DGm8AMTO.js","assets/add-to-cart.vue_vue_type_script_setup_true_lang-D6vcpz-l.js","assets/useXPickup-CHfMANZq.js","assets/select-address-map-modal.vue_vue_type_script_setup_true_lang-0Y7QDdZg.js","assets/cube-4PtvGaPd.js","assets/select-address-map-modal-Bp1_SXQQ.css","assets/product-AgaI5HbQ.css","assets/virto-pages-Di1Ks0X1.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-DUBYhi-c.js","assets/customComponents-COHIqf1G.js","assets/block-mapping-BPCjfVLe.js","assets/vp-markdown-DbCOTEUZ.js","assets/vp-markdown-CsxAF-Oj.css","assets/static-page-CDSAiZXi.js","assets/static-page.vue_vue_type_script_setup_true_lang-DGtoOHbP.js","assets/useStaticPage-ByQHvB29.js","assets/brands-Bi4h_Or_.js","assets/brands-BbGYXg6F.css","assets/brand-DSsKqgA9.js","assets/brand-DbmQSPMQ.css","assets/news-article-J4DWOrEt.js","assets/index-Pcib4pjH.js","assets/news-article-C1WAPGB7.css"])))=>i.map(i=>d[i]);
import{F as M,b8 as U,N as k,b3 as x,Q as F,W as E,e,R as t,_ as a,ae as n,ab as r,m as Q}from"./vendor-D8NNcBCx.js";import{cv as W,bf as q}from"./index-CiAiYnez.js";import{u as z}from"./useStaticPage-ByQHvB29.js";const G={key:0,class:"slug-content"},X=M({__name:"slug-content",props:{pathMatch:{},isVisible:{type:Boolean}},emits:["setState"],setup(u,{emit:I}){const b=I,_=u,h=n(()=>r(()=>import("./catalog-BrH08bqp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),A=n(()=>r(()=>import("./category-DxBRMgep.js"),__vite__mapDeps([13,3,1,2,4,5,14,6,7,8,9,10,11,12]))),w=n(()=>r(()=>import("./product-CdT-OVy2.js").then(o=>o.p),__vite__mapDeps([15,1,2,3,4,5,14,16,17,18,19,20,7,8,21,22,23,24]))),V=n(()=>r(()=>import("./virto-pages-Di1Ks0X1.js"),__vite__mapDeps([25,3,1,2,4,26,27,5,28]))),B=n(()=>r(()=>import("./vp-markdown-DbCOTEUZ.js"),__vite__mapDeps([29,3,1,2,4,30]))),D=n(()=>r(()=>import("./static-page-CDSAiZXi.js"),__vite__mapDeps([31,32,1,2,3,4,5,28,33]))),R=n(()=>r(()=>import("./brands-Bi4h_Or_.js"),__vite__mapDeps([34,1,2,3,4,5,35]))),T=n(()=>r(()=>import("./brand-DSsKqgA9.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,37]))),L=n(()=>r(()=>import("./news-article-J4DWOrEt.js"),__vite__mapDeps([38,1,2,3,4,5,39,40]))),{setMatchingRouteName:l}=W(),{staticPage:m}=z(),N=Q(()=>_.pathMatch?_.pathMatch.filter(Boolean).join("/"):"/"),{loading:p,slugInfo:i,objectType:s,hasContent:g,hasPageDocumentContent:f,pageDocumentContent:y,pageContent:P,fetchContent:O,fetchPageDocumentContent:j,isMarkdownContent:d,markdownContent:S}=q(N);U(()=>{p.value?c("loading"):["Catalog","Category","CatalogProduct","Brands","Brand","NewsArticle"].includes(s.value)||y.value||d.value||P.value?c("ready"):i.value?.redirectUrl?c("redirect",i.value.redirectUrl):c("empty")});function c(o,C){b("setState",{state:o,redirectUrl:C})}k(i,()=>{switch(i.value?.entityInfo?.objectType){case"CatalogProduct":l("Product");break;case"Category":l("Category");break;case"NewsArticle":l("NewsArticle");break;case"ContentFile":O();break;case"Pages":j();break;default:v()}},{immediate:!0}),k(P,o=>{o?m.value=o:v()});function v(){m.value=void 0}return x(()=>{l("")}),(o,C)=>u.isVisible&&!e(p)&&(e(g)||e(s)||e(f)||e(d))?(t(),F("div",G,[e(s)==="Catalog"?(t(),a(e(h),{key:0})):e(s)==="Category"?(t(),a(e(A),{key:1,"category-id":e(i)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["category-id"])):e(s)==="Brands"?(t(),a(e(R),{key:2})):e(s)==="Brand"?(t(),a(e(T),{key:3,"brand-id":e(i)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["brand-id"])):e(s)==="CatalogProduct"?(t(),a(e(w),{key:4,"product-id":e(i)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["product-id"])):e(s)==="NewsArticle"?(t(),a(e(L),{key:5,"article-id":e(i)?.entityInfo?.objectId??""},null,8,["article-id"])):e(f)?(t(),a(e(V),{key:6,"page-document":e(y)},null,8,["page-document"])):e(d)?(t(),a(e(B),{key:7,content:e(S)},null,8,["content"])):e(g)?(t(),a(e(D),{key:8})):E("",!0)])):E("",!0)}});export{X as default};
//# sourceMappingURL=slug-content-B4o31vCI.js.map
