const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-54xY0HGF.js","assets/vendor-Di1tOLi3.js","assets/vendor-DXOeSP1F.css","assets/index-BrdDZgk2.js","assets/index-CGpb2wUw.css","assets/useBreadcrumbs-BjNgYg8O.js","assets/category.vue_vue_type_style_index_0_lang-Csb4km3c.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-xEEtdx4Y.js","assets/filters-popup-sidebar-BWzwnoZo.css","assets/product-card-B0k9hZwM.js","assets/product-skeleton-grid-DT_q2Fju.js","assets/product-skeleton-list-Djr3jX2o.js","assets/category-Ct411g4f.css","assets/category-CqjBq_ib.js","assets/index-o5FTalq2.js","assets/product-TQ1xfyiw.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-BXIi9QIm.js","assets/useFiles-D1XpX-Pv.js","assets/index-A7nVgOjB.js","assets/add-to-cart.vue_vue_type_script_setup_true_lang-Dt4Cf6TP.js","assets/useXPickup-42AxUqMu.js","assets/product-D0zCMLsG.css","assets/virto-pages-B8OWKrDc.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-BTMKsp0V.js","assets/customComponents-DgrKwJ09.js","assets/block-mapping-BPCjfVLe.js","assets/vp-markdown-Dzk4V0Tg.js","assets/vp-markdown-CsxAF-Oj.css","assets/static-page-vK7owhCJ.js","assets/static-page.vue_vue_type_script_setup_true_lang-D7GjQIwi.js","assets/useStaticPage-CXLTNpm6.js","assets/brands-DHC3hqjU.js","assets/brands-BbGYXg6F.css","assets/brand-CudTvsfL.js","assets/brand-DbmQSPMQ.css","assets/news-article-n10jaxhu.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-Di1tOLi3.js";import{ct as W,be as q}from"./index-BrdDZgk2.js";import{u as z}from"./useStaticPage-CXLTNpm6.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-54xY0HGF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),A=n(()=>r(()=>import("./category-CqjBq_ib.js"),__vite__mapDeps([13,3,1,2,4,5,14,6,7,8,9,10,11,12]))),w=n(()=>r(()=>import("./product-TQ1xfyiw.js").then(o=>o.p),__vite__mapDeps([15,1,2,3,4,5,14,16,17,18,19,20,7,8,21]))),V=n(()=>r(()=>import("./virto-pages-B8OWKrDc.js"),__vite__mapDeps([22,3,1,2,4,23,24,5,25]))),B=n(()=>r(()=>import("./vp-markdown-Dzk4V0Tg.js"),__vite__mapDeps([26,3,1,2,4,27]))),D=n(()=>r(()=>import("./static-page-vK7owhCJ.js"),__vite__mapDeps([28,29,1,2,3,4,5,25,30]))),R=n(()=>r(()=>import("./brands-DHC3hqjU.js"),__vite__mapDeps([31,1,2,3,4,5,32]))),T=n(()=>r(()=>import("./brand-CudTvsfL.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34]))),L=n(()=>r(()=>import("./news-article-n10jaxhu.js"),__vite__mapDeps([35,1,2,3,4,5,36,37]))),{setMatchingRouteName:l}=W(),{staticPage:m}=z(),N=Q(()=>_.pathMatch?_.pathMatch.filter(Boolean).join("/"):"/"),{loading:p,slugInfo:i,objectType:s,hasContent:g,hasPageDocumentContent:y,pageDocumentContent:f,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)||f.value||d.value||P.value?c("ready"):i.value?.redirectUrl?c("redirect",i.value.redirectUrl):c("empty")});function c(o,v){b("setState",{state:o,redirectUrl:v})}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:C()}},{immediate:!0}),k(P,o=>{o?m.value=o:C()});function C(){m.value=void 0}return x(()=>{l("")}),(o,v)=>u.isVisible&&!e(p)&&(e(g)||e(s)||e(y)||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(y)?(t(),a(e(V),{key:6,"page-document":e(f)},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-2vM1XuOr.js.map
