const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/catalog-xP7mnpOB.js","assets/vendor-BmRNukEL.js","assets/vendor-DXOeSP1F.css","assets/index-PU-0vjEQ.js","assets/index-BXA319rR.css","assets/useBreadcrumbs-CNUnnd1u.js","assets/category.vue_vue_type_style_index_0_lang-B_c3Z-AJ.js","assets/filters-popup-sidebar.vue_vue_type_style_index_0_lang-B9z-euq1.js","assets/filters-popup-sidebar-BWzwnoZo.css","assets/product-card-B6qJoCl3.js","assets/product-skeleton-grid-C19_1glW.js","assets/product-skeleton-list-BBhHXX60.js","assets/category-Ct411g4f.css","assets/category-BdO7RO0j.js","assets/index-o5FTalq2.js","assets/product-BxXNHsqm.js","assets/save-changes-modal.vue_vue_type_script_setup_true_lang-CegCmYxO.js","assets/useFiles-Dkx1H-dj.js","assets/index-CmFOQbCo.js","assets/add-to-cart.vue_vue_type_script_setup_true_lang-Dw-Pq-_m.js","assets/useXPickup-DzsbVlpw.js","assets/product-D0zCMLsG.css","assets/virto-pages-DMzFfFFF.js","assets/vp-builder-io.vue_vue_type_script_setup_true_lang-CgeokmDf.js","assets/customComponents-OF_LsCnH.js","assets/block-mapping-BPCjfVLe.js","assets/static-page-DTLr1ivO.js","assets/static-page.vue_vue_type_script_setup_true_lang-cTD7M8tL.js","assets/useStaticPage-BFUBKL47.js","assets/brands-BzQcBfWD.js","assets/brands-BbGYXg6F.css","assets/brand-BfX27PgJ.js","assets/brand-DbmQSPMQ.css","assets/news-article-Ck91wJgt.js","assets/index-Pcib4pjH.js","assets/news-article-C1WAPGB7.css"])))=>i.map(i=>d[i]);
import{F as O,m as j,au as S,N as v,b4 as M,Q as U,W as h,e,R as a,_ as r,ae as s,ab as c}from"./vendor-BmRNukEL.js";import{cq as x,bf as F}from"./index-PU-0vjEQ.js";import{u as q}from"./useStaticPage-BFUBKL47.js";const Q={key:0,class:"slug-content"},H=O({__name:"slug-content",props:{pathMatch:{},isVisible:{type:Boolean}},emits:["setState"],setup(d,{emit:I}){const b=I,u=d,E=s(()=>c(()=>import("./catalog-xP7mnpOB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),k=s(()=>c(()=>import("./category-BdO7RO0j.js"),__vite__mapDeps([13,3,1,2,4,5,14,6,7,8,9,10,11,12]))),A=s(()=>c(()=>import("./product-BxXNHsqm.js").then(t=>t.p),__vite__mapDeps([15,1,2,3,4,5,14,16,17,18,19,20,7,8,21]))),B=s(()=>c(()=>import("./virto-pages-DMzFfFFF.js"),__vite__mapDeps([22,3,1,2,4,23,24,5,25]))),V=s(()=>c(()=>import("./static-page-DTLr1ivO.js"),__vite__mapDeps([26,27,1,2,3,4,5,25,28]))),w=s(()=>c(()=>import("./brands-BzQcBfWD.js"),__vite__mapDeps([29,1,2,3,4,5,30]))),D=s(()=>c(()=>import("./brand-BfX27PgJ.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,32]))),R=s(()=>c(()=>import("./news-article-Ck91wJgt.js"),__vite__mapDeps([33,1,2,3,4,5,34,35]))),{setMatchingRouteName:l}=x(),{staticPage:_}=q(),T=j(()=>u.pathMatch?u.pathMatch.filter(Boolean).join("/"):"/"),{loading:m,slugInfo:o,objectType:n,hasContent:p,hasPageDocumentContent:g,pageDocumentContent:f,pageContent:y,fetchContent:N,fetchPageDocumentContent:L}=F(T);S(()=>{m.value?i("loading"):["Catalog","Category","CatalogProduct","Brands","Brand","NewsArticle"].includes(n.value)||f.value||y.value?i("ready"):o.value?.redirectUrl?i("redirect",o.value.redirectUrl):i("empty")});function i(t,C){b("setState",{state:t,redirectUrl:C})}v(o,()=>{switch(o.value?.entityInfo?.objectType){case"CatalogProduct":l("Product");break;case"Category":l("Category");break;case"NewsArticle":l("NewsArticle");break;case"ContentFile":N();break;case"Pages":L();break;default:P()}},{immediate:!0}),v(y,t=>{t?_.value=t:P()});function P(){_.value=void 0}return M(()=>{l("")}),(t,C)=>d.isVisible&&!e(m)&&(e(p)||e(n)||e(g))?(a(),U("div",Q,[e(n)==="Catalog"?(a(),r(e(E),{key:0})):e(n)==="Category"?(a(),r(e(k),{key:1,"category-id":e(o)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["category-id"])):e(n)==="Brands"?(a(),r(e(w),{key:2})):e(n)==="Brand"?(a(),r(e(D),{key:3,"brand-id":e(o)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["brand-id"])):e(n)==="CatalogProduct"?(a(),r(e(A),{key:4,"product-id":e(o)?.entityInfo?.objectId,"allow-set-meta":""},null,8,["product-id"])):e(n)==="NewsArticle"?(a(),r(e(R),{key:5,"article-id":e(o)?.entityInfo?.objectId??""},null,8,["article-id"])):e(g)?(a(),r(e(B),{key:6,"page-document":e(f)},null,8,["page-document"])):e(p)?(a(),r(e(V),{key:7})):h("",!0)])):h("",!0)}});export{H as default};
//# sourceMappingURL=slug-content-tJJ8QcYi.js.map
