import{n as e}from"../chunks/BNTlsKDJ.js";import{$ as t,Ct as n,L as r,M as i,Nt as a,Pt as o,R as s,X as c,pt as l,st as u}from"../chunks/BT3KAag_.js";import"../chunks/t62M88qj.js";import{t as d}from"../chunks/CWJVikgc.js";import{a as f}from"../chunks/CjrvnLDf.js";import{t as p}from"../chunks/CJ6d6ePw2.js";var m=e({load:()=>h});function h({params:e}){return{entityType:e.type}}function g(e,m){o(m,!0);let h=n(()=>m.data.entityType),g=n(()=>c(h)===`recent`);u(()=>{d.showView(-1)}),u(()=>{t(()=>d.deselect())});var _=s();i(l(_),()=>c(h),e=>{{let t=n(()=>c(g)?`Recent`:f(c(h))),r=n(()=>`type-${c(h)}`),i=n(()=>c(g)?null:c(h)),a=n(()=>c(g)?`updated_at`:`name`),o=n(()=>!c(g)),s=n(()=>c(g)?`updated_at`:`date`);p(e,{get name(){return c(t)},get storageId(){return c(r)},get lockedType(){return c(i)},get defaultSortKey(){return c(a)},get defaultSortAsc(){return c(o)},get alwaysDefaultSort(){return c(g)},get defaultCalendarDateField(){return c(s)}})}}),r(e,_),a()}export{g as component,m as universal};