import{l as a,a4 as e,$ as s,x as t,dt as i}from"./utils-lib.js?v=20260328163632";import{u as o,t as l,p,e as r}from"./index115.js?v=20260328163632";import{r as n,k as m,i as u,o as c,J as d,V as f,_ as x,Y as y}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index88.js?v=20260328163632";const{favoriteList:j}=o(),v=n(null);n(null);const h=n({columns:[{title:a("路径"),key:"path"},{title:a("分类"),key:"storetype",render:e=>"默认分类"===e.storetype?a("默认分类"):e.storetype},e([{onClick:async a=>{if("dir"===a.type)p(a.path);else{const e={...a,fileName:a.name,ext:a.ext||a.name.split(".").pop()};r(e)}v.value()},title:a("打开")},{onClick:a=>l(a,b),title:a("删除")}])],data:[]}),[_,k]=s(h),b=async()=>{t({loading:a("正在获取收藏列表，请稍候..."),request:i(),success:a=>{j.value=a.data;let e=[];a.data.forEach((a=>{a.data.forEach((s=>{e.push({...s,storetype:a.name})}))})),h.value.data=e}})},C=()=>{g(),b()},g=()=>{h.value.data=[]},E=m({__name:"index",setup:a=>(v.value=u("popupClose"),c(C),d(g),(a,e)=>(f(),x(y(_),{class:"p-20px","max-height":300})))});export{E as default};
