System.register(["./base-lib-legacy.js?v=20260328163632","./utils-lib-legacy.js?v=20260328163632","./naive-ui-legacy.js?v=20260328163632"],(function(e,r){"use strict";var a,t,n,u,l,o,i,p,d,c,s,v,f;return{setters:[function(e){a=e.k,t=e.a9,n=e.r,u=e.Q,l=e.ak,o=e.c,i=e.w,p=e.O,d=e.s,c=e.F},function(e){s=e.aU,v=e.l},function(e){f=e.y}],execute:function(){e("B",a({name:"BtPagination",props:{type:{type:String,default:"default",required:!1},row:{type:Number,default:10},page:{type:Number,default:1},total:{type:Number,default:0},displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"],required:!1},pageSizes:{type:Array,default:function(){return[10,20,50,100]},required:!1},isEnd:{type:Boolean,default:!1,required:!1}},emits:["change","update:page","update:row"],setup:function(e,r){var a,g=r.emit,b=r.attrs,x=t(e),y=x.row,m=x.page,k=x.total,h=x.isEnd,z=n(!0),S=u(),w="".concat(null==S?void 0:S.fullPath.replace(/\//g,"_")),q=l(w,y.value||e.pageSizes[0]),j=o((function(){return z.value?q.value:y.value})),C=n(null==e||null===(a=e.pageSizes)||void 0===a?void 0:a.map((function(e){return s(e)?e:{label:"".concat(e,"条 / 页"),value:e}})));i((function(){return y.value}),(function(e){g("update:row",e),g("change")})),i((function(){return m.value}),(function(e){g("update:page",e),g("change")}));var U=function(e){q.value=e,y.value=e,e!==y.value&&g("update:row",e),g("update:page",1)},B=function(e){g("update:page",e)};return function(){return p(c,null,["default"===e.type?p(f,d({pageSize:j.value,"onUpdate:pageSize":function(e){return j.value=e},page:m.value,"onUpdate:page":[function(e){return m.value=e},B],pageSizes:C.value,"display-order":e.displayOrder,itemCount:k.value,goto:function(){return v("前往")},"onUpdate:page-size":U},b),null):p("div",{class:"flex items-center h-[28px]"},[m.value>1&&p(c,null,[p("span",{class:"bt-link !border-solid !border-1 !border-[var(--border-color-25)] !px-[10px] !h-[28px] leading-[28px] text-center",onClick:function(){return B(1)}},[v("首页")]),p("span",{class:"bt-link !border-solid !border-1 !border-[var(--border-color-25)] !px-[10px] !h-[28px] leading-[28px] text-center",onClick:function(){return B(m.value-1)}},[v("上一页")])]),k.value>0&&k.value>=y.value&&!h.value&&p("span",{class:"bt-link !border-solid !border-1 !border-[var(--border-color-25)] !px-[10px] !h-[28px] leading-[28px] text-center",onClick:function(){return B(m.value+1)}},[v("下一页")]),p("span",{class:"!border-solid !border-1 !border-[var(--border-color-25)] !px-[10px] !h-[28px] leading-[28px] text-center"},[v("第 {0} 页",[m.value])])])])}}}))}}}));
