const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-D73Nwn3i.js","assets/vendor-CsGITfgk.js","assets/vendor-DXOeSP1F.css","assets/index-CsCqMgta.js","assets/index-DhsNQ5a8.css","assets/useBreadcrumbs-CLanN9FL.js","assets/useSlugInfo-BKFu_7wx.js","assets/category.vue_vue_type_style_index_0_lang-DxXhokKv.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-BrnyJefL.js","assets/filters-popup-sidebar-BC8kckBr.css","assets/product-card.vue_vue_type_script_setup_true_lang-CXwGwsM6.js","assets/product-skeleton-grid-DM9bsmii.js","assets/product-skeleton-list-84IOCtdh.js","assets/category-As5HXraM.css","assets/category-y766czg4.js","assets/index-o5FTalq2.js","assets/product-HW7vkan4.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-DeqhwLqH.js","assets/useFiles-EFPcvAdh.js","assets/index-CQ4UNaFJ.js","assets/useXPickup-bRkdRlSA.js","assets/product-o2MeCMjj.css","assets/virto-pages--jgKwStJ.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-b9d-JwoL.js","assets/customComponents-CXLINvk3.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-CVasguKU.js","assets/static-page.vue_vue_type_script_setup_true_lang-CyepwCAP.js","assets/useStaticPage-D0oZlZQH.js","assets/brands-adUH8qHc.js","assets/brands-Bk3d9djK.css","assets/brand-DnM5dhw6.js","assets/brand-PrLpsNcJ.css","assets/news-article-BnyBTuaG.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{bQ as x}from"./index-CsCqMgta.js";import{u as F}from"./useSlugInfo-BKFu_7wx.js";import{u as Q}from"./useStaticPage-D0oZlZQH.js";const q={key:0,class:"slug-content"},K=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-D73Nwn3i.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),b=s(()=>i(()=>import("./category-y766czg4.js"),__vite__mapDeps([14,3,1,2,4,5,15,7,8,9,6,10,11,12,13]))),A=s(()=>i(()=>import("./product-HW7vkan4.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--jgKwStJ.js"),__vite__mapDeps([22,3,1,2,4,23,24,5,25]))),V=s(()=>i(()=>import("./static-page-CVasguKU.js"),__vite__mapDeps([26,27,1,2,3,4,5,25,28]))),w=s(()=>i(()=>import("./brands-adUH8qHc.js"),__vite__mapDeps([29,1,2,3,4,5,30]))),D=s(()=>i(()=>import("./brand-DnM5dhw6.js"),__vite__mapDeps([31,1,2,3,4,5,7,8,9,6,10,11,12,13,32]))),R=s(()=>i(()=>import("./news-article-BnyBTuaG.js"),__vite__mapDeps([33,1,2,3,4,5,34,35]))),{setMatchingRouteName:l}=x(),{staticPage:u}=Q(),T=j(()=>d.pathMatch?d.pathMatch.filter(Boolean).join("/"):"/"),{loading:_,slugInfo:a,objectType:n,hasContent:p,hasPageDocumentContent:m,pageDocumentContent:g,pageContent:f,fetchContent:N,fetchPageDocumentContent:O}=F(T);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":N();break;case"Pages":O();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",q,[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(R),{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{K as default};
//# sourceMappingURL=slug-content-Btofbdg1.js.map
