import{d as O,K as r,G as y,J as H,H as R,at as ut,L as ct,ah as de,b2 as ft,a1 as ue,au as T,M as ke,a as w,O as X,d5 as mt,ay as vt,z as j,R as ce,P as fe,Q as se,a_ as ye,a5 as p,U as pt,ad as gt,X as U,d6 as ht,d7 as bt,ce as wt,cg as xt,W as me}from"./index-BhlVWTSX.js";import{N as Ct}from"./Popselect-DEWvJyHq.js";import{g as Ft}from"./get-slot-Bk_rJcZu.js";const kt={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function ve(t){const a=kt[t];if(a===void 0)throw new Error(`${t} has no smaller size.`);return a}const pe=O({name:"Backward",render(){return r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),ge=O({name:"FastBackward",render(){return r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r("g",{fill:"currentColor","fill-rule":"nonzero"},r("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),he=O({name:"FastForward",render(){return r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r("g",{fill:"currentColor","fill-rule":"nonzero"},r("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),be=O({name:"Forward",render(){return r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),we=O({name:"More",render(){return r("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r("g",{fill:"currentColor","fill-rule":"nonzero"},r("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),xe=`
 background: var(--n-item-color-hover);
 color: var(--n-item-text-color-hover);
 border: var(--n-item-border-hover);
`,Ce=[R("button",`
 background: var(--n-button-color-hover);
 border: var(--n-button-border-hover);
 color: var(--n-button-icon-color-hover);
 `)],yt=y("pagination",`
 display: flex;
 vertical-align: middle;
 font-size: var(--n-item-font-size);
 flex-wrap: nowrap;
`,[y("pagination-prefix",`
 display: flex;
 align-items: center;
 margin: var(--n-prefix-margin);
 `),y("pagination-suffix",`
 display: flex;
 align-items: center;
 margin: var(--n-suffix-margin);
 `),H("> *:not(:first-child)",`
 margin: var(--n-item-margin);
 `),y("select",`
 width: var(--n-select-width);
 `),H("&.transition-disabled",[y("pagination-item","transition: none!important;")]),y("pagination-quick-jumper",`
 white-space: nowrap;
 display: flex;
 color: var(--n-jumper-text-color);
 transition: color .3s var(--n-bezier);
 align-items: center;
 font-size: var(--n-jumper-font-size);
 `,[y("input",`
 margin: var(--n-input-margin);
 width: var(--n-input-width);
 `)]),y("pagination-item",`
 position: relative;
 cursor: pointer;
 user-select: none;
 -webkit-user-select: none;
 display: flex;
 align-items: center;
 justify-content: center;
 box-sizing: border-box;
 min-width: var(--n-item-size);
 height: var(--n-item-size);
 padding: var(--n-item-padding);
 background-color: var(--n-item-color);
 color: var(--n-item-text-color);
 border-radius: var(--n-item-border-radius);
 border: var(--n-item-border);
 fill: var(--n-button-icon-color);
 transition:
 color .3s var(--n-bezier),
 border-color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 fill .3s var(--n-bezier);
 `,[R("button",`
 background: var(--n-button-color);
 color: var(--n-button-icon-color);
 border: var(--n-button-border);
 padding: 0;
 `,[y("base-icon",`
 font-size: var(--n-button-icon-size);
 `)]),ut("disabled",[R("hover",xe,Ce),H("&:hover",xe,Ce),H("&:active",`
 background: var(--n-item-color-pressed);
 color: var(--n-item-text-color-pressed);
 border: var(--n-item-border-pressed);
 `,[R("button",`
 background: var(--n-button-color-pressed);
 border: var(--n-button-border-pressed);
 color: var(--n-button-icon-color-pressed);
 `)]),R("active",`
 background: var(--n-item-color-active);
 color: var(--n-item-text-color-active);
 border: var(--n-item-border-active);
 `,[H("&:hover",`
 background: var(--n-item-color-active-hover);
 `)])]),R("disabled",`
 cursor: not-allowed;
 color: var(--n-item-text-color-disabled);
 `,[R("active, button",`
 background-color: var(--n-item-color-disabled);
 border: var(--n-item-border-disabled);
 `)])]),R("disabled",`
 cursor: not-allowed;
 `,[y("pagination-quick-jumper",`
 color: var(--n-jumper-text-color-disabled);
 `)]),R("simple",`
 display: flex;
 align-items: center;
 flex-wrap: nowrap;
 `,[y("pagination-quick-jumper",[y("input",`
 margin: 0;
 `)])])]);function Bt(t){var a;if(!t)return 10;const{defaultPageSize:o}=t;if(o!==void 0)return o;const s=(a=t.pageSizes)===null||a===void 0?void 0:a[0];return typeof s=="number"?s:s?.value||10}function zt(t,a,o,s){let m=!1,l=!1,b=1,g=a;if(a===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:g,fastBackwardTo:b,items:[{type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(a===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:g,fastBackwardTo:b,items:[{type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:t===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const c=1,i=a;let x=t,d=t;const C=(o-5)/2;d+=Math.ceil(C),d=Math.min(Math.max(d,c+o-3),i-2),x-=Math.floor(C),x=Math.max(Math.min(x,i-o+3),c+2);let v=!1,B=!1;x>c+2&&(v=!0),d<i-2&&(B=!0);const u=[];u.push({type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1}),v?(m=!0,b=x-1,u.push({type:"fast-backward",active:!1,label:void 0,options:s?Fe(c+1,x-1):null})):i>=c+1&&u.push({type:"page",label:c+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:t===c+1});for(let h=x;h<=d;++h)u.push({type:"page",label:h,mayBeFastBackward:!1,mayBeFastForward:!1,active:t===h});return B?(l=!0,g=d+1,u.push({type:"fast-forward",active:!1,label:void 0,options:s?Fe(d+1,i-1):null})):d===i-2&&u[u.length-1].label!==i-1&&u.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:i-1,active:t===i-1}),u[u.length-1].label!==i&&u.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:i,active:t===i}),{hasFastBackward:m,hasFastForward:l,fastBackwardTo:b,fastForwardTo:g,items:u}}function Fe(t,a){const o=[];for(let s=t;s<=a;++s)o.push({label:`${s}`,value:s});return o}const Mt=Object.assign(Object.assign({},X.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:String,disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:ht.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},scrollbarProps:Object,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),Nt=O({name:"Pagination",props:Mt,slots:Object,setup(t){const{mergedComponentPropsRef:a,mergedClsPrefixRef:o,inlineThemeDisabled:s,mergedRtlRef:m}=ke(t),l=w(()=>{var e,n;return t.size||((n=(e=a?.value)===null||e===void 0?void 0:e.Pagination)===null||n===void 0?void 0:n.size)||"medium"}),b=X("Pagination","-pagination",yt,mt,t,o),{localeRef:g}=vt("Pagination"),c=j(null),i=j(t.defaultPage),x=j(Bt(t)),d=ce(fe(t,"page"),i),C=ce(fe(t,"pageSize"),x),v=w(()=>{const{itemCount:e}=t;if(e!==void 0)return Math.max(1,Math.ceil(e/C.value));const{pageCount:n}=t;return n!==void 0?Math.max(n,1):1}),B=j("");se(()=>{t.simple,B.value=String(d.value)});const u=j(!1),h=j(!1),J=j(!1),W=j(!1),Y=()=>{t.disabled||(u.value=!0,z())},ee=()=>{t.disabled||(u.value=!1,z())},te=()=>{h.value=!0,z()},q=()=>{h.value=!1,z()},Q=e=>{F(e)},$=w(()=>zt(d.value,v.value,t.pageSlot,t.showQuickJumpDropdown));se(()=>{$.value.hasFastBackward?$.value.hasFastForward||(u.value=!1,J.value=!1):(h.value=!1,W.value=!1)});const ae=w(()=>{const e=g.value.selectionSuffix;return t.pageSizes.map(n=>typeof n=="number"?{label:`${n} / ${e}`,value:n}:n)}),re=w(()=>{var e,n;return((n=(e=a?.value)===null||e===void 0?void 0:e.Pagination)===null||n===void 0?void 0:n.inputSize)||ve(l.value)}),ne=w(()=>{var e,n;return((n=(e=a?.value)===null||e===void 0?void 0:e.Pagination)===null||n===void 0?void 0:n.selectSize)||ve(l.value)}),Z=w(()=>(d.value-1)*C.value),E=w(()=>{const e=d.value*C.value-1,{itemCount:n}=t;return n!==void 0&&e>n-1?n-1:e}),G=w(()=>{const{itemCount:e}=t;return e!==void 0?e:(t.pageCount||1)*C.value}),K=ye("Pagination",m,o);function z(){gt(()=>{var e;const{value:n}=c;n&&(n.classList.add("transition-disabled"),(e=c.value)===null||e===void 0||e.offsetWidth,n.classList.remove("transition-disabled"))})}function F(e){if(e===d.value)return;const{"onUpdate:page":n,onUpdatePage:N,onChange:L,simple:le}=t;n&&U(n,e),N&&U(N,e),L&&U(L,e),i.value=e,le&&(B.value=String(e))}function I(e){if(e===C.value)return;const{"onUpdate:pageSize":n,onUpdatePageSize:N,onPageSizeChange:L}=t;n&&U(n,e),N&&U(N,e),L&&U(L,e),x.value=e,v.value<d.value&&F(v.value)}function ie(){if(t.disabled)return;const e=Math.min(d.value+1,v.value);F(e)}function f(){if(t.disabled)return;const e=Math.max(d.value-1,1);F(e)}function oe(){if(t.disabled)return;const e=Math.min($.value.fastForwardTo,v.value);F(e)}function M(){if(t.disabled)return;const e=Math.max($.value.fastBackwardTo,1);F(e)}function V(e){I(e)}function _(){const e=Number.parseInt(B.value);Number.isNaN(e)||(F(Math.max(1,Math.min(e,v.value))),t.simple||(B.value=""))}function k(){_()}function D(e){if(!t.disabled)switch(e.type){case"page":F(e.label);break;case"fast-backward":M();break;case"fast-forward":oe();break}}function A(e){B.value=e.replace(/\D+/g,"")}se(()=>{d.value,C.value,z()});const P=w(()=>{const e=l.value,{self:{buttonBorder:n,buttonBorderHover:N,buttonBorderPressed:L,buttonIconColor:le,buttonIconColorHover:Be,buttonIconColorPressed:ze,itemTextColor:Me,itemTextColorHover:Pe,itemTextColorPressed:Se,itemTextColorActive:Re,itemTextColorDisabled:Ie,itemColor:je,itemColorHover:$e,itemColorPressed:Ne,itemColorActive:Le,itemColorActiveHover:Oe,itemColorDisabled:Ae,itemBorder:Te,itemBorderHover:Ue,itemBorderPressed:Ee,itemBorderActive:Ve,itemBorderDisabled:_e,itemBorderRadius:De,jumperTextColor:He,jumperTextColorDisabled:Je,buttonColor:We,buttonColorHover:qe,buttonColorPressed:Qe,[p("itemPadding",e)]:Ze,[p("itemMargin",e)]:Ge,[p("inputWidth",e)]:Ke,[p("selectWidth",e)]:Xe,[p("inputMargin",e)]:Ye,[p("selectMargin",e)]:et,[p("jumperFontSize",e)]:tt,[p("prefixMargin",e)]:at,[p("suffixMargin",e)]:rt,[p("itemSize",e)]:nt,[p("buttonIconSize",e)]:it,[p("itemFontSize",e)]:ot,[`${p("itemMargin",e)}Rtl`]:lt,[`${p("inputMargin",e)}Rtl`]:st},common:{cubicBezierEaseInOut:dt}}=b.value;return{"--n-prefix-margin":at,"--n-suffix-margin":rt,"--n-item-font-size":ot,"--n-select-width":Xe,"--n-select-margin":et,"--n-input-width":Ke,"--n-input-margin":Ye,"--n-input-margin-rtl":st,"--n-item-size":nt,"--n-item-text-color":Me,"--n-item-text-color-disabled":Ie,"--n-item-text-color-hover":Pe,"--n-item-text-color-active":Re,"--n-item-text-color-pressed":Se,"--n-item-color":je,"--n-item-color-hover":$e,"--n-item-color-disabled":Ae,"--n-item-color-active":Le,"--n-item-color-active-hover":Oe,"--n-item-color-pressed":Ne,"--n-item-border":Te,"--n-item-border-hover":Ue,"--n-item-border-disabled":_e,"--n-item-border-active":Ve,"--n-item-border-pressed":Ee,"--n-item-padding":Ze,"--n-item-border-radius":De,"--n-bezier":dt,"--n-jumper-font-size":tt,"--n-jumper-text-color":He,"--n-jumper-text-color-disabled":Je,"--n-item-margin":Ge,"--n-item-margin-rtl":lt,"--n-button-icon-size":it,"--n-button-icon-color":le,"--n-button-icon-color-hover":Be,"--n-button-icon-color-pressed":ze,"--n-button-color-hover":qe,"--n-button-color":We,"--n-button-color-pressed":Qe,"--n-button-border":n,"--n-button-border-hover":N,"--n-button-border-pressed":L}}),S=s?pt("pagination",w(()=>{let e="";return e+=l.value[0],e}),P,t):void 0;return{rtlEnabled:K,mergedClsPrefix:o,locale:g,selfRef:c,mergedPage:d,pageItems:w(()=>$.value.items),mergedItemCount:G,jumperValue:B,pageSizeOptions:ae,mergedPageSize:C,inputSize:re,selectSize:ne,mergedTheme:b,mergedPageCount:v,startIndex:Z,endIndex:E,showFastForwardMenu:J,showFastBackwardMenu:W,fastForwardActive:u,fastBackwardActive:h,handleMenuSelect:Q,handleFastForwardMouseenter:Y,handleFastForwardMouseleave:ee,handleFastBackwardMouseenter:te,handleFastBackwardMouseleave:q,handleJumperInput:A,handleBackwardClick:f,handleForwardClick:ie,handlePageItemClick:D,handleSizePickerChange:V,handleQuickJumperChange:k,cssVars:s?void 0:P,themeClass:S?.themeClass,onRender:S?.onRender}},render(){const{$slots:t,mergedClsPrefix:a,disabled:o,cssVars:s,mergedPage:m,mergedPageCount:l,pageItems:b,showSizePicker:g,showQuickJumper:c,mergedTheme:i,locale:x,inputSize:d,selectSize:C,mergedPageSize:v,pageSizeOptions:B,jumperValue:u,simple:h,prev:J,next:W,prefix:Y,suffix:ee,label:te,goto:q,handleJumperInput:Q,handleSizePickerChange:$,handleBackwardClick:ae,handlePageItemClick:re,handleForwardClick:ne,handleQuickJumperChange:Z,onRender:E}=this;E?.();const G=Y||t.prefix,K=ee||t.suffix,z=J||t.prev,F=W||t.next,I=te||t.label;return r("div",{ref:"selfRef",class:[`${a}-pagination`,this.themeClass,this.rtlEnabled&&`${a}-pagination--rtl`,o&&`${a}-pagination--disabled`,h&&`${a}-pagination--simple`],style:s},G?r("div",{class:`${a}-pagination-prefix`},G({page:m,pageSize:v,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(ie=>{switch(ie){case"pages":return r(ue,null,r("div",{class:[`${a}-pagination-item`,!z&&`${a}-pagination-item--button`,(m<=1||m>l||o)&&`${a}-pagination-item--disabled`],onClick:ae},z?z({page:m,pageSize:v,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):r(T,{clsPrefix:a},{default:()=>this.rtlEnabled?r(be,null):r(pe,null)})),h?r(ue,null,r("div",{class:`${a}-pagination-quick-jumper`},r(de,{value:u,onUpdateValue:Q,size:d,placeholder:"",disabled:o,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onChange:Z}))," /"," ",l):b.map((f,oe)=>{let M,V,_;const{type:k}=f;switch(k){case"page":const A=f.label;I?M=I({type:"page",node:A,active:f.active}):M=A;break;case"fast-forward":const P=this.fastForwardActive?r(T,{clsPrefix:a},{default:()=>this.rtlEnabled?r(ge,null):r(he,null)}):r(T,{clsPrefix:a},{default:()=>r(we,null)});I?M=I({type:"fast-forward",node:P,active:this.fastForwardActive||this.showFastForwardMenu}):M=P,V=this.handleFastForwardMouseenter,_=this.handleFastForwardMouseleave;break;case"fast-backward":const S=this.fastBackwardActive?r(T,{clsPrefix:a},{default:()=>this.rtlEnabled?r(he,null):r(ge,null)}):r(T,{clsPrefix:a},{default:()=>r(we,null)});I?M=I({type:"fast-backward",node:S,active:this.fastBackwardActive||this.showFastBackwardMenu}):M=S,V=this.handleFastBackwardMouseenter,_=this.handleFastBackwardMouseleave;break}const D=r("div",{key:oe,class:[`${a}-pagination-item`,f.active&&`${a}-pagination-item--active`,k!=="page"&&(k==="fast-backward"&&this.showFastBackwardMenu||k==="fast-forward"&&this.showFastForwardMenu)&&`${a}-pagination-item--hover`,o&&`${a}-pagination-item--disabled`,k==="page"&&`${a}-pagination-item--clickable`],onClick:()=>{re(f)},onMouseenter:V,onMouseleave:_},M);if(k==="page"&&!f.mayBeFastBackward&&!f.mayBeFastForward)return D;{const A=f.type==="page"?f.mayBeFastBackward?"fast-backward":"fast-forward":f.type;return f.type!=="page"&&!f.options?D:r(Ct,{to:this.to,key:A,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:i.peers.Popselect,themeOverrides:i.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:k==="page"?!1:k==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:P=>{k!=="page"&&(P?k==="fast-backward"?this.showFastBackwardMenu=P:this.showFastForwardMenu=P:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:f.type!=="page"&&f.options?f.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,scrollbarProps:this.scrollbarProps,showCheckmark:!1},{default:()=>D})}}),r("div",{class:[`${a}-pagination-item`,!F&&`${a}-pagination-item--button`,{[`${a}-pagination-item--disabled`]:m<1||m>=l||o}],onClick:ne},F?F({page:m,pageSize:v,pageCount:l,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):r(T,{clsPrefix:a},{default:()=>this.rtlEnabled?r(pe,null):r(be,null)})));case"size-picker":return!h&&g?r(ft,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:C,options:B,value:v,disabled:o,scrollbarProps:this.scrollbarProps,theme:i.peers.Select,themeOverrides:i.peerOverrides.Select,onUpdateValue:$})):null;case"quick-jumper":return!h&&c?r("div",{class:`${a}-pagination-quick-jumper`},q?q():ct(this.$slots.goto,()=>[x.goto]),r(de,{value:u,onUpdateValue:Q,size:d,placeholder:"",disabled:o,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onChange:Z})):null;default:return null}}),K?r("div",{class:`${a}-pagination-suffix`},K({page:m,pageSize:v,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}});function Pt(){return bt}const St={self:Pt},Rt=Object.assign(Object.assign({},X.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),Lt=O({name:"Flex",props:Rt,setup(t){const{mergedClsPrefixRef:a,mergedRtlRef:o}=ke(t),s=X("Flex","-flex",void 0,St,t,a);return{rtlEnabled:ye("Flex",o,a),mergedClsPrefix:a,margin:w(()=>{const{size:l}=t;if(Array.isArray(l))return{horizontal:l[0],vertical:l[1]};if(typeof l=="number")return{horizontal:l,vertical:l};const{self:{[p("gap",l)]:b}}=s.value,{row:g,col:c}=xt(b);return{horizontal:me(c),vertical:me(g)}})}},render(){const{vertical:t,reverse:a,align:o,inline:s,justify:m,margin:l,wrap:b,mergedClsPrefix:g,rtlEnabled:c}=this,i=wt(Ft(this),!1);return i.length?r("div",{role:"none",class:[`${g}-flex`,c&&`${g}-flex--rtl`],style:{display:s?"inline-flex":"flex",flexDirection:t&&!a?"column":t&&a?"column-reverse":!t&&a?"row-reverse":"row",justifyContent:m,flexWrap:!b||t?"nowrap":"wrap",alignItems:o,gap:`${l.vertical}px ${l.horizontal}px`}},i):null}});export{Lt as N,Nt as a};
