System.register(["./chunk-legacy-B09Jcn0a.js","./chunk-legacy-Dq4znTTY.js","./souav-legacy-ptBXoxNy.js"],function(e){"use strict";var t,a,n,l,r,u,s,o,i,c,d,p,b;return{setters:[e=>{t=e.C,a=e.r,n=e.c,l=e.P,r=e.S,u=e.R,s=e.u,o=e.F,i=e.a0,c=e.J,d=e.N},e=>{p=e.u},e=>{b=e.b}],execute:function(v,g){var x=document.createElement("style");x.textContent="input[type=number][data-v-17cc2951]::-webkit-inner-spin-button,input[type=number][data-v-17cc2951]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-17cc2951]{-moz-appearance:textfield}\n/*$vite$:1*/",document.head.appendChild(x);const f={class:"flex w-full flex-row items-center justify-center space-x-2"},m=["disabled"],y=["disabled"],w={class:"flex h-8 flex-1 items-center justify-center rounded-[3px] border bg-transparent"},h={class:"text-base font-medium"},P={class:"flex h-8 flex-1 items-center justify-center space-x-0.5"},j=["max"],k=["disabled"],C=["disabled"];e("P",b(t({__name:"PaginationView",props:{totalPage:{},pageSize:{default:10},currentPage:{default:1}},emits:["update:currentPage"],setup(e,{emit:t}){const b=e,v=t,g=a(b.currentPage),x=a(null),N=b.totalPage,_=()=>{1!==g.value&&(g.value=1,v("update:currentPage",1))},S=()=>{g.value>1&&(g.value--,v("update:currentPage",g.value))},q=()=>{g.value<N&&(g.value++,v("update:currentPage",g.value))},z=()=>{g.value!==N&&(g.value=N,v("update:currentPage",N))},V=()=>{x.value&&x.value>=1&&x.value<=N&&(g.value=x.value,v("update:currentPage",x.value),x.value=null)},$=p();return n(()=>{var e;null!==(e=$.query)&&void 0!==e&&e.pageNo?g.value=Number($.query.pageNo):g.value=1}),(e,t)=>(d(),l("div",f,[r("button",{onClick:_,disabled:1===g.value,class:"flex h-8 w-8 bg-transparent items-center justify-center rounded-[3px] border transition-colors disabled:cursor-not-allowed disabled:opacity-50"},t[1]||(t[1]=[r("i",{class:"iconfont icon-previous-page text-lg"},null,-1)]),8,m),r("button",{onClick:S,disabled:1===g.value,class:"flex h-8 w-8 bg-transparent items-center justify-center rounded-[3px] border transition-colors disabled:cursor-not-allowed disabled:opacity-50"},t[2]||(t[2]=[r("i",{class:"iconfont icon-arrowleft text-lg"},null,-1)]),8,y),r("div",w,[r("span",h,u(g.value)+" / "+u(s(N)),1)]),r("div",P,[o(r("input",{type:"number","onUpdate:modelValue":t[0]||(t[0]=e=>x.value=e),onKeyup:c(V,["enter"]),min:"1",max:s(N),class:"h-8 flex-grow rounded-[3px] border bg-transparent text-center focus:outline-none placeholder-gray-500 text-[14px]",placeholder:"页码"},null,40,j),[[i,x.value,void 0,{number:!0}]]),r("button",{onClick:V,class:"h-8 w-8 bg-transparent rounded-[3px] border transition-colors"},"Go")]),r("button",{onClick:q,disabled:g.value===s(N),class:"flex h-8 w-8 bg-transparent items-center justify-center rounded-[3px] border transition-colors disabled:cursor-not-allowed disabled:opacity-50"},t[3]||(t[3]=[r("i",{class:"iconfont icon-arrowright text-lg"},null,-1)]),8,k),r("button",{onClick:z,disabled:g.value===s(N),class:"flex h-8 w-8 bg-transparent items-center justify-center rounded-[3px] border transition-colors disabled:cursor-not-allowed disabled:opacity-50"},t[4]||(t[4]=[r("i",{class:"iconfont icon-next-pages text-lg"},null,-1)]),8,C)]))}}),[["__scopeId","data-v-17cc2951"]]))}}});
