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,o as m}from"./vue-vendor-DMUmTARL.js";import{t as h}from"./ShareListTable-VAU7p7gP.js";import{t as g}from"./AdminSettingLayout-sq3DpZ_W.js";import{t as _}from"./admin-form-header-CR7U45Y1.js";import{d as v}from"./admin-storage-CgsX67O1.js";import{t as y}from"./route-block-O8f67cnX.js";var b={class:`flex h-full flex-col`},x={class:`header-title`},S={__name:`index`,setup(y){let S=c(null),C=n({loading:!1,firstLoadCompleted:!1}),w=e=>{C.loading=!!e?.loading,C.firstLoadCompleted=!!e?.firstLoadCompleted},T=c(0),E=e=>{T.value=Number(e??0)},D=c([]),O=i(()=>D.value||[]),k=()=>{v().then(e=>{D.value=Array.isArray(e?.data)?e.data:[]})},A=m();return u(()=>{k(),A.query.dialog===`expire-config`&&S.value?.openShareExpireConfig()}),(n,i)=>{let c=e,u=_,m=g;return d(),t(`div`,b,[s(m,null,{default:f(()=>[s(u,{"hide-bottom-border":``},{title:f(()=>[r(`div`,x,[i[0]||=r(`span`,{class:`mr-2`},`分享管理`,-1),C.firstLoadCompleted&&!C.loading?(d(),o(c,{key:0,type:`info`,size:`small`},{default:f(()=>[a(l(T.value),1)]),_:1})):p(``,!0)])]),_:1}),s(h,{ref_key:`shareTableRef`,ref:S,mode:`admin`,"storage-list":O.value,onStatusChange:w,onTotalChange:E},null,8,[`storage-list`])]),_:1})])}}};typeof y==`function`&&y(S);export{S as ShareLinkPage};