import{d as u,o as l,m as s,w as c,h as i,u as g,s as v,c as f,b as y}from"./index-DOFLUERq.js";import{r as p}from"./timeline-CIH67oDr.js";import d from"./default_list-BdHkTWY0.js";import"./common-DEIQtiPI.js";import"./iconify-p99pbjf9.js";import"./timezone-gppATNyQ.js";import"./default_single-rTQ_XI7L.js";import"./FieldRenderer-B93hvLtQ.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./default_list_toolbar-D6vV-0du.js";import"./default_list_filterbar-B9C7fs83.js";import"./FilterBar-J9h-Lc5V.js";import"./default_list_actions-CJ8LQB_-.js";import"./CreatePageTypeModal-CoDuRKWb.js";import"./LinkField-CPzmuCgV.js";const q=u({name:"ListPage",setup(){const e=y(),{pagetypeSlug:a}=g(e),o=v(null),m=f(()=>({route:e,pagetypeSlug:a.value,entity:e.params.entity}));return l(async()=>{const t=await p(a.value);o.value=t?s(t):null}),c(()=>e.params.entity,async(t,n)=>{if(t!==n){const r=await p(String(t));o.value=r?s(r):null}}),()=>o.value?i(o.value,{context:m.value}):i(d)}});export{q as default};
