import"./rolldown-runtime-BM3Ffeng.js";import{at as e}from"./element-plus-vendor-BF9PNysW.js";import{A as t,Ct as n,D as r,E as i,N as a,O as o,P as s,Tt as c,Xt as l,Z as u,et as d,ht as f,k as p}from"./vue-vendor-DMUmTARL.js";import{t as m}from"./ShareListTable-BJS1IX09.js";import{t as h}from"./AdminSettingLayout-CzCwKa9p.js";import{t as g}from"./admin-form-header-DFAG_myc.js";import{u as _}from"./admin-storage-BUsF0XeM.js";import{t as v}from"./route-block-D7Rwj2No.js";var y={class:`flex h-full flex-col`},b={class:`header-title`},x={__name:`index`,setup(v){let x=c(null),S=n({loading:!1,firstLoadCompleted:!1}),C=e=>{S.loading=!!e?.loading,S.firstLoadCompleted=!!e?.firstLoadCompleted},w=c(0),T=e=>{w.value=Number(e??0)},E=c([]),D=i(()=>E.value||[]),O=()=>{_().then(e=>{E.value=Array.isArray(e?.data)?e.data:[]})};return u(()=>{O()}),(n,i)=>{let c=e,u=g,_=h;return d(),t(`div`,y,[s(_,null,{default:f(()=>[s(u,{"hide-bottom-border":``},{title:f(()=>[r(`div`,b,[i[0]||=r(`span`,{class:`mr-2`},`分享管理`,-1),S.firstLoadCompleted&&!S.loading?(d(),o(c,{key:0,type:`info`,size:`small`},{default:f(()=>[a(l(w.value),1)]),_:1})):p(``,!0)])]),_:1}),s(m,{ref_key:`shareTableRef`,ref:x,mode:`admin`,"storage-list":D.value,onStatusChange:C,onTotalChange:T},null,8,[`storage-list`])]),_:1})])}}};typeof v==`function`&&v(x);export{x as ShareLinkPage};