import{h as _,x as d}from"./index-BTglIPU2.js?v=1773287522785";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{X as h}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{u as w}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{k as x,R as L,i as b,r as n,$ as k,a8 as C,a9 as F,_ as M,a0 as B,S as i,X as g}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const y={class:"p-20px"},E=x({__name:"FavoriteList",setup(D,{expose:r}){const{t}=L(),a=b("fileStore"),{favoriteList:l}=a,o=n(!1);r({open(){o.value=!0},close(){o.value=!1}});const m=n([{title:t("file.favoriteListModal.path"),key:"path",ellipsis:{tooltip:!0}},w({width:100,options:e=>[{label:t("Public.Btn.Delete"),onClick:()=>p(e.path)}]})]);function p(e){_({title:t("file.favoriteListModal.removeFavoriteTitle"),content:t("file.favoriteListModal.removeFavoriteMessage",{path:e}),onConfirm:async()=>{await h(a,e)}})}return(e,s)=>{const c=v,f=d;return k(),C(f,{show:i(o),"onUpdate:show":s[0]||(s[0]=u=>g(o)?o.value=u:null),title:i(t)("file.favoriteListModal.title"),width:850},{default:F(()=>[M("div",y,[B(c,{"max-height":480,data:i(l),columns:i(m)},null,8,["data","columns"])])]),_:1},8,["show","title"])}}});export{E as default};
