const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-BqbeNK5x.js","assets/vendor-CsGITfgk.js","assets/vendor-DXOeSP1F.css","assets/index-GCDRvGOr.js","assets/index-CuRKiloU.css","assets/useBreadcrumbs-CLanN9FL.js","assets/useSlugInfo-vjQlUSx_.js","assets/category.vue_vue_type_style_index_0_lang-DCT5fQyo.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-BM2NMQK9.js","assets/filters-popup-sidebar-BC8kckBr.css","assets/product-card.vue_vue_type_script_setup_true_lang-DVxnzjEY.js","assets/product-skeleton-grid-C5BGP13J.js","assets/product-skeleton-list-2NTva31N.js","assets/category-As5HXraM.css","assets/category-DS9lpwWe.js","assets/index-o5FTalq2.js","assets/product-CfY2Leq_.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-DeqhwLqH.js","assets/useFiles-CuSIKmAK.js","assets/index-yOwfcyfN.js","assets/product-BRyECKQz.css","assets/virto-pages-CHmt3ZrZ.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-C5W75jjP.js","assets/customComponents-CTvMze4c.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-BNxRMTDB.js","assets/static-page.vue_vue_type_script_setup_true_lang-vkIlxLWR.js","assets/useStaticPage-D0oZlZQH.js","assets/brands-Bl6q-89B.js","assets/brands-Bk3d9djK.css","assets/brand-CC_O-e7u.js","assets/brand-PrLpsNcJ.css","assets/news-article-DIMp0deG.js","assets/index-Pcib4pjH.js","assets/news-article-C1WAPGB7.css"])))=>i.map(i=>d[i]);
import{M as L,E as j,ad as S,ax as C,b7 as M,N as U,a8 as v,e,O as o,R as r,an as s,ak as i}from"./vendor-CsGITfgk.js";import{bO as x}from"./index-GCDRvGOr.js";import{u as F}from"./useSlugInfo-vjQlUSx_.js";import{u as q}from"./useStaticPage-D0oZlZQH.js";const z={key:0,class:"slug-content"},Q=L({__name:"slug-content",props:{pathMatch:{},isVisible:{type:Boolean}},emits:["setState"],setup(h,{emit:E}){const I=E,d=h,k=s(()=>i(()=>import("./catalog-BqbeNK5x.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),b=s(()=>i(()=>import("./category-DS9lpwWe.js"),__vite__mapDeps([14,3,1,2,4,5,15,7,8,9,6,10,11,12,13]))),A=s(()=>i(()=>import("./product-CfY2Leq_.js").then(t=>t.p),__vite__mapDeps([16,1,2,3,4,5,15,8,9,17,18,19,20]))),B=s(()=>i(()=>import("./virto-pages-CHmt3ZrZ.js"),__vite__mapDeps([21,22,1,2,3,4,23,5,24]))),V=s(()=>i(()=>import("./static-page-BNxRMTDB.js"),__vite__mapDeps([25,26,1,2,3,4,5,24,27]))),w=s(()=>i(()=>import("./brands-Bl6q-89B.js"),__vite__mapDeps([28,1,2,3,4,5,29]))),D=s(()=>i(()=>import("./brand-CC_O-e7u.js"),__vite__mapDeps([30,1,2,3,4,5,7,8,9,6,10,11,12,13,31]))),O=s(()=>i(()=>import("./news-article-DIMp0deG.js"),__vite__mapDeps([32,1,2,3,4,5,33,34]))),{setMatchingRouteName:l}=x(),{staticPage:u}=q(),R=j(()=>d.pathMatch?d.pathMatch.filter(Boolean).join("/"):"/"),{loading:_,slugInfo:a,objectType:n,hasContent:p,hasPageDocumentContent:m,pageDocumentContent:g,pageContent:f,fetchContent:T,fetchPageDocumentContent:N}=F(R);S(()=>{_.value?c("loading"):["Catalog","Category","CatalogProduct","Brands","Brand","NewsArticle"].includes(n.value)||g.value||f.value?c("ready"):a.value?.redirectUrl?c("redirect",a.value.redirectUrl):c("empty")});function c(t,P){I("setState",{state:t,redirectUrl:P})}C(a,()=>{switch(a.value?.entityInfo?.objectType){case"CatalogProduct":l("Product");break;case"Category":l("Category");break;case"NewsArticle":l("NewsArticle");break;case"ContentFile":T();break;case"Pages":N();break;default:y()}}),C(f,t=>{t?u.value=t:y()});function y(){u.value=void 0}return M(()=>{l("")}),(t,P)=>t.isVisible&&!e(_)&&(e(p)||e(n)||e(m))?(o(),U("div",z,[e(n)==="Catalog"?(o(),r(e(k),{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(O),{key:5,"article-id":e(a)?.entityInfo?.objectId??""},null,8,["article-id"])):e(m)?(o(),r(e(B),{key:6,"page-document":e(g)},null,8,["page-document"])):e(p)?(o(),r(e(V),{key:7})):v("",!0)])):v("",!0)}});export{Q as default};
//# sourceMappingURL=slug-content-BOUvm609.js.map
