System.register(["./index-legacy.js?v=1723125373998","./data-legacy.js?v=1723125373998","./vue-legacy.js?v=1723125373998","./Skeleton-legacy.js?v=1723125373998","./DataTable-legacy.js?v=1723125373998"],(function(e,a){"use strict";var l,t,s,i,o,u,n,p,r,g,d,c,f,v,y,m,w,S,h,x,P,z,k,j,b,K;return{setters:[e=>{l=e.z,t=e.J,s=e.bs,i=e.K},e=>{o=e.g},e=>{u=e.l,n=e.ah,p=e.ai,r=e.k,g=e.ad,d=e.j,c=e.r,f=e.ak,v=e.f,y=e.P,m=e.w,w=e.S,S=e.U,h=e.V,x=e.D,P=e.L,z=e.W,k=e.t,j=e.n},e=>{b=e._},e=>{K=e.N}],execute:function(){e("u",(function(e){const a=c([]),l=v({data:[],total:0,loading:!1}),t=c(e);return{keys:a,table:l,columns:t,setLoading:(e,a=!0)=>{a&&(l.loading=e)}}})),e("_",u({__name:"index",props:n({data:{default:()=>[]},rowKey:{default:"id"},loading:{type:Boolean,default:!1},loadingNum:{default:10},isPage:{type:Boolean,default:!1},columns:{default:()=>[]},rowProps:{},storeKey:{}},{page:{default:()=>({page:1,pageSize:10})},pageModifiers:{}}),emits:["update:page"],setup(e){const a=e,u=p(e,"page"),n=r((()=>{const{storeKey:e}=a;return e?`${e}-page`:""})),{t:_}=g(),{columns:$,data:N}=d(a),T=()=>s(k($.value)),B=c(T()),C=T(),{rowKey:D}=a,E=l(D)?e=>e[D]:D,J=c([]),L=f(),U=v({style:{width:"100%"},showSizePicker:!0,showQuickJumper:!0,pageSizes:[10,20,50,100],prefix:()=>L.pagePrefix?.(),suffix:e=>y("span",{class:"text-13px text-default"},[_("Public.Table.Total",{total:e.itemCount})]),onChange:e=>{u.value.page=e},onUpdatePageSize:e=>{u.value.page=1,u.value.pageSize=e,n.value&&t(n.value,String(e))}});(()=>{if(n.value){const e=i(n.value);e&&(u.value.pageSize=o(e))}})();const M=r((()=>({...U,page:u.value.page,pageSize:u.value.pageSize})));return m((()=>N.value),(e=>{a.loading||(J.value=e)}),{deep:!0}),m((()=>a.loading),(e=>{if(e){if(B.value.forEach((e=>{"selection"!==e.type&&(e.ellipsis&&delete e.ellipsis,e.render=()=>y(b,null,null))})),0===N.value.length)for(let l=0;l<a.loadingNum;l++){const e={};e.id=l,J.value.push(e)}}else J.value=[],j((()=>{B.value.forEach(((e,a)=>{if("selection"===e.type)return;const l=C[a];l.ellipsis&&(e.ellipsis=l.ellipsis),e.render=l.render})),J.value=N.value}))}),{immediate:!0}),m((()=>a.columns),(()=>{B.value=T(),C.splice(0,C.length),C.push(...T())}),{deep:!0}),(e,a)=>{const l=K;return w(),S(l,P(e.$attrs,{"row-key":z(E),data:z(J),columns:z(B),pagination:!!e.isPage&&z(M),"row-props":e.rowProps}),{empty:h((()=>[x(e.$slots,"empty")])),default:h((()=>[x(e.$slots,"pagePrefix")])),_:3},16,["row-key","data","columns","pagination","row-props"])}}}))}}}));
