"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@antsoo-lib/icons"),x=require("../_util/classNames.js"),O=require("../_util/hooks/useBreakpoint.js"),t=require("../_util/type.js"),V=require("../config-provider/hooks/useConfigInject.js"),$=require("../locale/LocaleReceiver.js"),k=require("../vc-pagination/Pagination.js"),q=require("../vc-pagination/locale/en_US.js"),g=require("./Select.js"),R=require("./style/index.js"),b=()=>({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()}),w=e.defineComponent({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:b(),setup(a,{slots:p,attrs:f}){const{prefixCls:o,configProvider:v,direction:i,size:m}=V.default("pagination",a),[N,C]=R.default(o),S=e.computed(()=>v.getPrefixCls("select",a.selectPrefixCls)),y=O.default(),[T]=$.useLocaleReceiver("Pagination",q.default,e.toRef(a,"locale")),P=n=>{const s=e.createVNode("span",{class:`${n}-item-ellipsis`},[e.createTextVNode("•••")]),u=e.createVNode("button",{class:`${n}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?e.createVNode(l.RightOutlined,null,null):e.createVNode(l.LeftOutlined,null,null)]),r=e.createVNode("button",{class:`${n}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?e.createVNode(l.LeftOutlined,null,null):e.createVNode(l.RightOutlined,null,null)]),d=e.createVNode("a",{rel:"nofollow",class:`${n}-item-link`},[e.createVNode("div",{class:`${n}-item-container`},[i.value==="rtl"?e.createVNode(l.DoubleRightOutlined,{class:`${n}-item-link-icon`},null):e.createVNode(l.DoubleLeftOutlined,{class:`${n}-item-link-icon`},null),s])]),c=e.createVNode("a",{rel:"nofollow",class:`${n}-item-link`},[e.createVNode("div",{class:`${n}-item-container`},[i.value==="rtl"?e.createVNode(l.DoubleLeftOutlined,{class:`${n}-item-link-icon`},null):e.createVNode(l.DoubleRightOutlined,{class:`${n}-item-link-icon`},null),s])]);return{prevIcon:u,nextIcon:r,jumpPrevIcon:d,jumpNextIcon:c}};return()=>{const{itemRender:n=p.itemRender,buildOptionText:s=p.buildOptionText,selectComponentClass:u,responsive:r,...d}=a,c=m.value==="small"||!!(y.value?.xs&&!m.value&&r),h={...d,...P(o.value),prefixCls:o.value,selectPrefixCls:S.value,selectComponentClass:u||(c?g.default:g.MiddleSelect),locale:T.value,buildOptionText:s,...f,class:x.default({[`${o.value}-mini`]:c,[`${o.value}-rtl`]:i.value==="rtl"},f.class,C.value),itemRender:n};return N(e.createVNode(k.default,h,null))}}});exports.default=w;exports.paginationProps=b;
