System.register(["./index-legacy-BGUFxny_.js","./index-legacy-CwkvHJvM.js"],function(e,r){"use strict";var t,n,c,l,i,u,o,a,h,g,d,m,s,S,x,f,p,z,C;return{setters:[e=>{t=e.Q,n=e.bV,c=e.O,l=e.D,i=e.aw,u=e.S,o=e.K,a=e.aA,h=e.R,g=e.bF,d=e.bH,m=e.an,s=e.bL,S=e.bM,x=e.bN,f=e.bO},e=>{p=e.x,z=e.y,C=e.z}],execute:function(){e("P",e=>{const r=t({maxShowPage:4,defaultPageSize:30,defaultCurrent:1,hideOnSinglePage:!0},e),[$,b]=n({pageSize:r.defaultPageSize,current:r.defaultCurrent});r.setResetCallback?.(()=>{b("current",r.defaultCurrent)});const w=c(()=>Math.ceil(r.total/$.pageSize)),P=c(()=>{const e=$.current,t=Math.max(2,e-Math.floor(r.maxShowPage/2));return Array.from({length:e-t},(e,r)=>t+r)}),y=c(()=>{const e=$.current,t=Math.min(w()-1,e+Math.floor(r.maxShowPage/2));return Array.from({length:t-e},(r,t)=>e+1+t)}),k=c(()=>Array.from({length:w()},(e,r)=>1+r)),M={"@initial":"sm","@md":"md"},v=e=>{b("current",e),r.onChange?.(e)};return l(u,{get when(){return!r.hideOnSinglePage||w()>1},get children(){return l(i,{spacing:"$1",get children(){return[l(u,{get when(){return 1!==$.current},get children(){return[l(o,{size:M,get colorScheme(){return r.colorScheme},onClick:()=>{v(1)},px:"$3",children:"1"}),l(a,{size:M,get icon(){return l(p,{})},"aria-label":"Previous",get colorScheme(){return r.colorScheme},onClick:()=>{v($.current-1)},w:"2rem !important"})]}}),l(h,{get each(){return P()},children:e=>l(o,{size:M,get colorScheme(){return r.colorScheme},onClick:()=>{v(e)},px:e>10?"$2_5":"$3",children:e})}),l(g,{size:M,variant:"unstyled",get defaultValue(){return $.current},onChange:e=>{v(+e)},get children(){return[l(d,{as:o,size:M,width:"auto",px:"$1",variant:"solid",get colorScheme(){return r.colorScheme},get children(){return[l(m,{get px(){return $.current>10?"$1_5":"$2"},get children(){return $.current}}),l(z,{})]}}),l(s,{minW:"80px",get children(){return l(S,{get children(){return l(h,{get each(){return k()},children:e=>l(x,{value:e,get children(){return l(f,{px:"$2",children:e})}})})}})}})]}}),l(h,{get each(){return y()},children:e=>l(o,{size:M,get colorScheme(){return r.colorScheme},onClick:()=>{v(e)},px:e>10?"$2_5":"$3",children:e})}),l(u,{get when(){return $.current!==w()},get children(){return[l(a,{size:M,get icon(){return l(C,{})},"aria-label":"Next",get colorScheme(){return r.colorScheme},onClick:()=>{v($.current+1)},w:"2rem !important"}),l(o,{size:M,get colorScheme(){return r.colorScheme},onClick:()=>{v(w())},get px(){return w()>10?"$2_5":"$3"},get children(){return w()}})]}})]}})}})})}}});
