const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-_nHJ8_WV.js","assets/vendor-CsGITfgk.js","assets/vendor-DXOeSP1F.css","assets/index-B7qwhRTg.js","assets/index-Dd5T_0C2.css","assets/useBreadcrumbs-CLanN9FL.js","assets/useSlugInfo-CsaEdl-y.js","assets/category.vue_vue_type_style_index_0_lang-44v1qTwa.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-F1_VuV8h.js","assets/filters-popup-sidebar-BC8kckBr.css","assets/product-card.vue_vue_type_script_setup_true_lang-BNAp9V9h.js","assets/product-skeleton-grid-BcT3yZ5L.js","assets/product-skeleton-list-BuB7jJGJ.js","assets/category-As5HXraM.css","assets/category-Utu5hJ_9.js","assets/index-o5FTalq2.js","assets/product-D2tdqdAv.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-DeqhwLqH.js","assets/useFiles-DKuzRSwa.js","assets/index-DhwPO-Ue.js","assets/useXPickup-Ci46kjnB.js","assets/product-jdW06Axp.css","assets/virto-pages-3ZgsMu61.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-CDdjBObl.js","assets/customComponents-CT1uB5n5.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-B5ytbrMS.js","assets/static-page.vue_vue_type_script_setup_true_lang-DISo82ex.js","assets/useStaticPage-D0oZlZQH.js","assets/brands-VaNScjGu.js","assets/brands-Bk3d9djK.css","assets/brand-Cza4Pg9t.js","assets/brand-PrLpsNcJ.css","assets/news-article-TZQW_gy4.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-B7qwhRTg.js";import{u as F}from"./useSlugInfo-CsaEdl-y.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-_nHJ8_WV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),b=s(()=>i(()=>import("./category-Utu5hJ_9.js"),__vite__mapDeps([14,3,1,2,4,5,15,7,8,9,6,10,11,12,13]))),A=s(()=>i(()=>import("./product-D2tdqdAv.js").then(t=>t.p),__vite__mapDeps([16,1,2,3,4,5,15,8,9,17,18,19,20,21]))),B=s(()=>i(()=>import("./virto-pages-3ZgsMu61.js"),__vite__mapDeps([22,23,1,2,3,4,24,5,25]))),V=s(()=>i(()=>import("./static-page-B5ytbrMS.js"),__vite__mapDeps([26,27,1,2,3,4,5,25,28]))),w=s(()=>i(()=>import("./brands-VaNScjGu.js"),__vite__mapDeps([29,1,2,3,4,5,30]))),D=s(()=>i(()=>import("./brand-Cza4Pg9t.js"),__vite__mapDeps([31,1,2,3,4,5,7,8,9,6,10,11,12,13,32]))),O=s(()=>i(()=>import("./news-article-TZQW_gy4.js"),__vite__mapDeps([33,1,2,3,4,5,34,35]))),{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-QJMNQEJe.js.map
