import{_ as t}from"./index.js?v=1763625242172";import{f as e,a as s,h as o}from"./public.js?v=1763625242172";import"./page_layout.js?v=1763625242172";import{e as a}from"./index39.js?v=1763625242172";import{k as i,P as l,i as r,r as p,R as n,a2 as m,a3 as f,U as u,X as v,V as c,aj as d}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./soft2.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";import"./file2.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";const j={class:"p-20px"},_=i({__name:"FavoriteList",setup(i,{expose:_}){const{t:h}=l(),x=r("fileStore"),{favoriteList:w}=x,L=p(!1);_({open(){L.value=!0},close(){L.value=!1}});const M=p([{title:h("file.favoriteListModal.path"),key:"path",ellipsis:{tooltip:!0}},e({width:100,options:t=>[{label:h("Public.Btn.Delete"),onClick:()=>{return e=t.path,void s({title:h("file.favoriteListModal.removeFavoriteTitle"),content:h("file.favoriteListModal.removeFavoriteMessage",{path:e}),onConfirm:async()=>{await a(x,e)}});var e}}]})]);return(e,s)=>{const a=o,i=t;return n(),m(i,{show:c(L),"onUpdate:show":s[0]||(s[0]=t=>d(L)?L.value=t:null),title:c(h)("file.favoriteListModal.title"),width:850},{default:f((()=>[u("div",j,[v(a,{"max-height":480,data:c(w),columns:c(M)},null,8,["data","columns"])])])),_:1},8,["show","title"])}}});export{_ as default};
