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