const e=require("../_util/classNames.js"),t=require("../_util/vue-types/index.js");let n=require("vue");var r=(0,n.defineComponent)({compatConfig:{MODE:3},name:`Pager`,inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:t.default.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:[`click`,`keypress`],setup(t,{emit:r,attrs:i}){let a=()=>{r(`click`,t.page)},o=e=>{r(`keypress`,e,a,t.page)};return()=>{let{showTitle:r,page:s,itemRender:c}=t,{class:l,style:u}=i,d=`${t.rootPrefixCls}-item`,f=e.default(d,`${d}-${t.page}`,{[`${d}-active`]:t.active,[`${d}-disabled`]:!t.page},l);return(0,n.createVNode)(`li`,{onClick:a,onKeypress:o,title:r?String(s):null,tabindex:`0`,class:f,style:u},[c({page:s,type:`page`,originalElement:(0,n.createVNode)(`a`,{rel:`nofollow`},[s])})])}}});exports.default=r;