Liferay.Loader.define("@liferay/analytics-settings-web@5.0.47/js/components/table/PaginationBar",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/pagination","@frontend-taglib-clay$clayui/pagination-bar","frontend-js-web","liferay!frontend-js-react-web$react","../../utils/pagination","./Context"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/button")),l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),i=a("@frontend-taglib-clay$clayui/pagination"),o=_interopRequireDefault(a("@frontend-taglib-clay$clayui/pagination-bar")),r=a("frontend-js-web"),u=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),f=a("../../utils/pagination"),c=a("./Context");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=({disabled:e})=>{const{pagination:{page:t,pageSize:a,totalCount:d}}=(0,c.useData)(),g=(0,c.useDispatch)();return!d||e?null:u.default.createElement(o.default,null,u.default.createElement(o.default.DropDown,{items:f.DELTAS.map((e=>({label:String(e),onClick:()=>{g({payload:{page:1,pageSize:e},type:c.Events.ChangePagination})}}))),trigger:u.default.createElement(n.default,{displayType:"unstyled"},u.default.createElement("strong",null,(0,r.sub)(Liferay.Language.get("x-entries"),a)),u.default.createElement(l.default,{symbol:"caret-double-l"}))}),u.default.createElement(o.default.Results,null,(0,r.sub)(Liferay.Language.get("showing-x-to-x-of-x-entries"),[(t-1)*a+1,t*a<d?t*a:d,d])),u.default.createElement(i.ClayPaginationWithBasicItems,{active:t,defaultActive:1,onActiveChange:e=>{g({payload:{page:e},type:c.Events.ChangePagination})},totalPages:Math.ceil(d/a)}))};t.default=_default}}));
//# sourceMappingURL=PaginationBar.js.map