import{d as u,a9 as l,c,o as f,aa as s,z as g,W as i,X as v}from"./index-a0da86f0.js";import{u as y}from"./slug-3db6ff8f.js";import{r as p}from"./pagetypeOverride-03903087.js";import d from"./default_list-cd603daa.js";import"./iconify-56cbf3ff.js";import"./default_single-f8126340.js";import"./Jeditor.vue_vue_type_style_index_0_lang-86214493.js";import"./common-fa44b7a0.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./default_list_toolbar-6dbd2320.js";import"./default_list_filterbar-4b24ef8a.js";import"./FilterBar-56414023.js";import"./default_list_actions-cb06f67e.js";const T=u({name:"ListPage",setup(){const e=v(),{pagetypeSlug:o}=y(e),a=l(null),n=c(()=>({route:e,pagetypeSlug:o.value,entity:e.params.entity}));return f(async()=>{const t=await p(o.value);a.value=t?s(t):null}),g(()=>e.params.entity,async(t,m)=>{if(t!==m){const r=await p(String(t));a.value=r?s(r):null}}),()=>a.value?i(a.value,{context:n.value}):i(d)}});export{T as default};
