import{arrayType as e,booleanType as t,functionType as n,someType as r,stringType as i}from"../_util/type.mjs";import a from"../_util/classNames.mjs";import o from"../vc-pagination/locale/en_US.mjs";import{useLocaleReceiver as s}from"../locale/LocaleReceiver.mjs";import c from"../config-provider/hooks/useConfigInject.mjs";import l from"../_util/hooks/useBreakpoint.mjs";import u from"../vc-pagination/Pagination.mjs";import d,{MiddleSelect as f}from"./Select.mjs";import p from"./style/index.mjs";import{computed as m,createTextVNode as h,createVNode as g,defineComponent as _,toRef as v}from"vue";import{DoubleLeftOutlined as y,DoubleRightOutlined as b,LeftOutlined as x,RightOutlined as S}from"@antsoo-lib/icons";var C=()=>({total:Number,defaultCurrent:Number,disabled:t(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:t(),showSizeChanger:t(),pageSizeOptions:e(),buildOptionText:n(),showQuickJumper:r([Boolean,Object]),showTotal:n(),size:i(),simple:t(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:n(),role:String,responsive:Boolean,showLessItems:t(),onChange:n(),onShowSizeChange:n(),"onUpdate:current":n(),"onUpdate:pageSize":n()}),w=_({compatConfig:{MODE:3},name:`APagination`,inheritAttrs:!1,props:C(),setup(e,{slots:t,attrs:n}){let{prefixCls:r,configProvider:i,direction:_,size:C}=c(`pagination`,e),[w,T]=p(r),E=m(()=>i.getPrefixCls(`select`,e.selectPrefixCls)),D=l(),[O]=s(`Pagination`,o,v(e,`locale`)),k=e=>{let t=g(`span`,{class:`${e}-item-ellipsis`},[h(`•••`)]);return{prevIcon:g(`button`,{class:`${e}-item-link`,type:`button`,tabindex:-1},[_.value===`rtl`?g(S,null,null):g(x,null,null)]),nextIcon:g(`button`,{class:`${e}-item-link`,type:`button`,tabindex:-1},[_.value===`rtl`?g(x,null,null):g(S,null,null)]),jumpPrevIcon:g(`a`,{rel:`nofollow`,class:`${e}-item-link`},[g(`div`,{class:`${e}-item-container`},[_.value===`rtl`?g(b,{class:`${e}-item-link-icon`},null):g(y,{class:`${e}-item-link-icon`},null),t])]),jumpNextIcon:g(`a`,{rel:`nofollow`,class:`${e}-item-link`},[g(`div`,{class:`${e}-item-container`},[_.value===`rtl`?g(y,{class:`${e}-item-link-icon`},null):g(b,{class:`${e}-item-link-icon`},null),t])])}};return()=>{let{itemRender:i=t.itemRender,buildOptionText:o=t.buildOptionText,selectComponentClass:s,responsive:c,...l}=e,p=C.value===`small`||!!(D.value?.xs&&!C.value&&c),m={...l,...k(r.value),prefixCls:r.value,selectPrefixCls:E.value,selectComponentClass:s||(p?d:f),locale:O.value,buildOptionText:o,...n,class:a({[`${r.value}-mini`]:p,[`${r.value}-rtl`]:_.value===`rtl`},n.class,T.value),itemRender:i};return w(g(u,m,null))}}});export{w as default,C as paginationProps};