"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),g=require("../_util/classNames.js"),y=require("../_util/vue-types/index.js"),p=a.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:y.default.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,{emit:i,attrs:s}){const o=()=>{i("click",e.page)},c=n=>{i("keypress",n,o,e.page)};return()=>{const{showTitle:n,page:l,itemRender:r}=e,{class:u,style:d}=s,t=`${e.rootPrefixCls}-item`,f=g.default(t,`${t}-${e.page}`,{[`${t}-active`]:e.active,[`${t}-disabled`]:!e.page},u);return a.createVNode("li",{onClick:o,onKeypress:c,title:n?String(l):null,tabindex:"0",class:f,style:d},[r({page:l,type:"page",originalElement:a.createVNode("a",{rel:"nofollow"},[l])})])}}});exports.default=p;
