import{d,o as v,m as i,w as f,h as s,u as g,s as y,c as w,b as C,e as D}from"./index-DOFLUERq.js";import{a as m}from"./timeline-CIH67oDr.js";import P from"./default-f221gxrB.js";import"./common-DEIQtiPI.js";import"./FieldRenderer-B93hvLtQ.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ActivitySection-DEibBWAX.js";import"./iconify-p99pbjf9.js";import"./EmailComposeModal-gr8x42pd.js";import"./LinkField-CPzmuCgV.js";import"./Jeditor.vue_vue_type_style_index_0_lang-BtAK23jg.js";import"./image-resize-CYL53Ji9.js";import"./sidebarOverride-BYstlH4a.js";import"./timezone-gppATNyQ.js";import"./default_toolbar-Bl6BkF5n.js";const G=d({name:"DetailPage",setup(){const e=C(),p=D(),{pagetypeSlug:o}=g(e),a=y(null),u=w(()=>({route:e,router:p,pagetypeSlug:o.value,entity:e.params.entity,id:e.params.id}));return v(async()=>{const t=await m(o.value);a.value=t?i(t):null}),f(()=>[e.params.entity,e.params.id],async([t,l],[n,c])=>{if(t!==n||l!==c){const r=await m(String(t||o.value));a.value=r?i(r):null}},{immediate:!1}),()=>a.value?s(a.value,{context:u.value}):s(P)}});export{G as default};
