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