import{s as l,f as o,z as m,D as P,d6 as c}from"./index-BPRWoLf4.js";var y=function(r){l(a,r);function a(e){var t=r.call(this,e)||this;return e.store.syncProps(e,void 0,["perPage","mode","ellipsisPageGap","inputName","outputName"]),t}return a.prototype.componentDidUpdate=function(e){var t=this.props.store;t.syncProps(this.props,e,["perPage","mode","ellipsisPageGap","inputName","outputName"])},a.prototype.render=function(){var e=this.props,t=e.position,p=e.render,n=e.store,g=e.classnames,u=e.style,i=e.body,d=e.translate,s=t!=="none"?p("pager",{type:"pagination"},{activePage:n.page,lastPage:n.lastPage,mode:n.mode,ellipsisPageGap:n.ellipsisPageGap,onPageChange:n.switchTo,perPage:n.perPage,className:"PaginationWrapper-pager"}):null;return o.createElement("div",{className:g("PaginationWrapper"),style:u},t==="top"?s:null,i?p("body",i,{data:n.locals}):o.createElement("span",null,d("PaginationWrapper.placeholder")),t==="bottom"?s:null)},a.defaultProps={inputName:"items",outputName:"items",perPage:10,position:"top"},a}(o.Component),h=function(r){l(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a=m([P({type:"pagination-wrapper",storeType:c.name})],a),a}(y);export{y as PaginationWrapper,h as PaginationWrapperRenderer};
