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