import{$ as e,Ct as t,Kt 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/xY0c-UfG.js";import"../chunks/xihTtKlq.js";import{i as d}from"../chunks/Ca8AGdcM.js";import{t as f}from"../chunks/ByTixK1i.js";import{a as p}from"../chunks/gfak5NLW.js";import{t as m}from"../chunks/DayPzYFE2.js";var h=n({load:()=>g});function g({params:e}){return{folderName:e.name}}function _(n,h){o(h,!0);let g=t(()=>h.data.folderName),_=t(()=>d.repos.find(e=>e.name===c(g))?.displayName??c(g));u(()=>{f.showView(-1)}),u(()=>{let t=c(g);e(()=>f.selectRepo(t))}),u(()=>{let e=c(g);return p.enter(e,`_folder`,`_chat`),()=>p.leave()});var v=s();i(l(v),()=>c(g),e=>{{let n=t(()=>`folder-${c(g)}`);m(e,{get name(){return c(_)},get storageId(){return c(n)},get lockedFolder(){return c(g)},lockedFolderPath:``,defaultSortKey:`name`,defaultSortAsc:!0})}}),r(n,v),a()}export{_ as component,h as universal};