import{h as C}from"./useSetting-bf1f702c.js";import{G as l,r as n,M as x,o as c,c as k,h as d,w as s,a as _,g as B,j as L,t as T,l as V,p as w,q as N}from"./index-25eb6331.js";/* empty css            */import{S as D}from"./ShareListTable-c1438c54.js";import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import{E as M}from"./index-73ac7f16.js";import"./file-5139c625.js";import"./request-14d7fed5.js";import"./index-3bef6acb.js";import"./path-8ad564a3.js";import"./base-00eb0fe9.js";/* empty css                */import"./dialog-66decf59.js";import"./index-db57f3ab.js";import"./vnode-761469ca.js";import"./scroll-044a6ede.js";import"./button-c2afb424.js";import"./overlay-25bb32bf.js";import"./refs-e3c707bd.js";/* empty css                     *//* empty css               *//* empty css                  */import"./dropdown-item-13559a59.js";import"./index-51e1cffc.js";import"./index-b7ba0c9a.js";import"./dropdown-8894c5a8.js";import"./index-0746525e.js";import"./_initCloneObject-55db8b76.js";import"./directive-77ef4fb1.js";import"./index-98eb1092.js";import"./validator-551b2058.js";import"./index-02f3ff91.js";import"./pagination-7be6ee5b.js";import"./index-1c392315.js";import"./strings-59e484a0.js";import"./debounce-8de7dc13.js";import"./index-272fcf3f.js";/* empty css               *//* empty css              */import"./el-table-column-plus-b730a697.js";import"./index-96a4e1cd.js";import"./index-345a9e42.js";import"./popconfirm-350330c8.js";/* empty css                */import"./content-copy-501bdf2a.js";import"./information-outline-0496086d.js";import"./tooltip-4ed993c7.js";/* empty css                  */import"./date-picker-408a8b1c.js";import"./index-dde256e1.js";import"./col-6d08a2dc.js";import"./vue3-clipboard.esm-f774ce6a.js";import"./util-adbe916f.js";import"./share-b912a5b4.js";import"./MagnifyingGlassIcon-94894876.js";import"./ArrowPathIcon-5c9e3e1e.js";import"./index-d3a3425f.js";const z=o=>(w("data-v-b2a0e0cf"),o=o(),N(),o),E={class:"zfile-my-share-dialog-wrapper"},K={class:"dialog-title"},R=z(()=>_("span",null,"我的分享",-1)),j={__name:"MyShareDialog",props:{visible:{type:Boolean,default:!1},storageList:{type:Array,default:()=>[]},activeStorageKey:{type:String,default:""}},emits:["update:visible"],setup(o,{expose:f,emit:g}){const r=o,h=l(()=>r.storageList||[]),a=n(null),i=l({get:()=>r.visible,set:t=>g("update:visible",t)}),e=x({loading:!1,firstLoadCompleted:!1}),u=t=>{e.loading=!!(t!=null&&t.loading),e.firstLoadCompleted=!!(t!=null&&t.firstLoadCompleted)},p=n(0),y=t=>{p.value=Number(t!=null?t:0)};return f({refreshShares:()=>{var t;return(t=a.value)==null?void 0:t.fetchShares()},resetShares:()=>{var t;return(t=a.value)==null?void 0:t.resetFilters()}}),(t,m)=>{const S=M,v=C;return c(),k("div",E,[d(v,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=b=>i.value=b),top:"5vh","show-footer":!1,"destroy-on-close":""},{header:s(()=>[_("div",K,[R,e.firstLoadCompleted&&!e.loading?(c(),B(S,{key:0,size:"small",type:"info"},{default:s(()=>[L(T(p.value),1)]),_:1})):V("",!0)])]),default:s(()=>[d(D,{ref_key:"shareTableRef",ref:a,mode:"user","storage-list":h.value,"active-storage-key":r.activeStorageKey,active:i.value,onStatusChange:u,onTotalChange:y},null,8,["storage-list","active-storage-key","active"])]),_:1},8,["modelValue"])])}}},Gt=I(j,[["__scopeId","data-v-b2a0e0cf"]]);export{Gt as default};
