{"ast":null,"code":"import * as i0 from '@angular/core';\nimport { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, NgModule } from '@angular/core';\nimport * as i3 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i5 from '@angular/forms';\nimport { FormsModule } from '@angular/forms';\nimport * as i1 from 'primeng/dropdown';\nimport { DropdownModule } from 'primeng/dropdown';\nimport * as i4 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport * as i6 from 'primeng/api';\nimport { SharedModule } from 'primeng/api';\nimport * as i2 from 'primeng/inputnumber';\nimport { InputNumberModule } from 'primeng/inputnumber';\n\nfunction Paginator_div_0_div_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nconst _c0 = function (a0) {\n return {\n $implicit: a0\n };\n};\n\nfunction Paginator_div_0_div_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 15);\n i0.ɵɵtemplate(1, Paginator_div_0_div_1_ng_container_1_Template, 1, 0, \"ng-container\", 16);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.templateLeft)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c0, ctx_r1.paginatorState));\n }\n}\n\nfunction Paginator_div_0_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 17);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate(ctx_r2.currentPageReport);\n }\n}\n\nconst _c1 = function (a0) {\n return {\n \"p-disabled\": a0\n };\n};\n\nfunction Paginator_div_0_button_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r12 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 18);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_button_3_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r12);\n const ctx_r11 = i0.ɵɵnextContext(2);\n return ctx_r11.changePageToFirst($event);\n });\n i0.ɵɵelement(1, \"span\", 19);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"disabled\", ctx_r3.isFirstPage() || ctx_r3.empty())(\"ngClass\", i0.ɵɵpureFunction1(2, _c1, ctx_r3.isFirstPage() || ctx_r3.empty()));\n }\n}\n\nconst _c2 = function (a0) {\n return {\n \"p-highlight\": a0\n };\n};\n\nfunction Paginator_div_0_span_6_button_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r16 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 22);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_span_6_button_1_Template_button_click_0_listener($event) {\n const restoredCtx = i0.ɵɵrestoreView(_r16);\n const pageLink_r14 = restoredCtx.$implicit;\n const ctx_r15 = i0.ɵɵnextContext(3);\n return ctx_r15.onPageLinkClick($event, pageLink_r14 - 1);\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const pageLink_r14 = ctx.$implicit;\n const ctx_r13 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(2, _c2, pageLink_r14 - 1 == ctx_r13.getPage()));\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate(pageLink_r14);\n }\n}\n\nfunction Paginator_div_0_span_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 20);\n i0.ɵɵtemplate(1, Paginator_div_0_span_6_button_1_Template, 2, 4, \"button\", 21);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r4 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngForOf\", ctx_r4.pageLinks);\n }\n}\n\nfunction Paginator_div_0_p_dropdown_7_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtext(0);\n }\n\n if (rf & 2) {\n const ctx_r17 = i0.ɵɵnextContext(3);\n i0.ɵɵtextInterpolate(ctx_r17.currentPageReport);\n }\n}\n\nfunction Paginator_div_0_p_dropdown_7_Template(rf, ctx) {\n if (rf & 1) {\n const _r19 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"p-dropdown\", 23);\n i0.ɵɵlistener(\"onChange\", function Paginator_div_0_p_dropdown_7_Template_p_dropdown_onChange_0_listener($event) {\n i0.ɵɵrestoreView(_r19);\n const ctx_r18 = i0.ɵɵnextContext(2);\n return ctx_r18.onPageDropdownChange($event);\n });\n i0.ɵɵtemplate(1, Paginator_div_0_p_dropdown_7_ng_template_1_Template, 1, 1, \"ng-template\", 24);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r5 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"options\", ctx_r5.pageItems)(\"ngModel\", ctx_r5.getPage())(\"disabled\", ctx_r5.empty())(\"appendTo\", ctx_r5.dropdownAppendTo)(\"scrollHeight\", ctx_r5.dropdownScrollHeight);\n }\n}\n\nfunction Paginator_div_0_button_10_Template(rf, ctx) {\n if (rf & 1) {\n const _r21 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 25);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_button_10_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r21);\n const ctx_r20 = i0.ɵɵnextContext(2);\n return ctx_r20.changePageToLast($event);\n });\n i0.ɵɵelement(1, \"span\", 26);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r6 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"disabled\", ctx_r6.isLastPage() || ctx_r6.empty())(\"ngClass\", i0.ɵɵpureFunction1(2, _c1, ctx_r6.isLastPage() || ctx_r6.empty()));\n }\n}\n\nfunction Paginator_div_0_p_inputNumber_11_Template(rf, ctx) {\n if (rf & 1) {\n const _r23 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"p-inputNumber\", 27);\n i0.ɵɵlistener(\"ngModelChange\", function Paginator_div_0_p_inputNumber_11_Template_p_inputNumber_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r23);\n const ctx_r22 = i0.ɵɵnextContext(2);\n return ctx_r22.changePage($event - 1);\n });\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r7 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngModel\", ctx_r7.currentPage())(\"disabled\", ctx_r7.empty());\n }\n}\n\nfunction Paginator_div_0_p_dropdown_12_ng_container_1_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction Paginator_div_0_p_dropdown_12_ng_container_1_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_p_dropdown_12_ng_container_1_ng_template_1_ng_container_0_Template, 1, 0, \"ng-container\", 16);\n }\n\n if (rf & 2) {\n const item_r26 = ctx.$implicit;\n const ctx_r25 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r25.dropdownItemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c0, item_r26));\n }\n}\n\nfunction Paginator_div_0_p_dropdown_12_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Paginator_div_0_p_dropdown_12_ng_container_1_ng_template_1_Template, 1, 4, \"ng-template\", 30);\n i0.ɵɵelementContainerEnd();\n }\n}\n\nfunction Paginator_div_0_p_dropdown_12_Template(rf, ctx) {\n if (rf & 1) {\n const _r29 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"p-dropdown\", 28);\n i0.ɵɵlistener(\"ngModelChange\", function Paginator_div_0_p_dropdown_12_Template_p_dropdown_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r29);\n const ctx_r28 = i0.ɵɵnextContext(2);\n return ctx_r28.rows = $event;\n })(\"onChange\", function Paginator_div_0_p_dropdown_12_Template_p_dropdown_onChange_0_listener($event) {\n i0.ɵɵrestoreView(_r29);\n const ctx_r30 = i0.ɵɵnextContext(2);\n return ctx_r30.onRppChange($event);\n });\n i0.ɵɵtemplate(1, Paginator_div_0_p_dropdown_12_ng_container_1_Template, 2, 0, \"ng-container\", 29);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r8 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"options\", ctx_r8.rowsPerPageItems)(\"ngModel\", ctx_r8.rows)(\"disabled\", ctx_r8.empty())(\"appendTo\", ctx_r8.dropdownAppendTo)(\"scrollHeight\", ctx_r8.dropdownScrollHeight);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r8.dropdownItemTemplate);\n }\n}\n\nfunction Paginator_div_0_div_13_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction Paginator_div_0_div_13_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 31);\n i0.ɵɵtemplate(1, Paginator_div_0_div_13_ng_container_1_Template, 1, 0, \"ng-container\", 16);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r9 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r9.templateRight)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c0, ctx_r9.paginatorState));\n }\n}\n\nfunction Paginator_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r33 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, Paginator_div_0_div_1_Template, 2, 4, \"div\", 2);\n i0.ɵɵtemplate(2, Paginator_div_0_span_2_Template, 2, 1, \"span\", 3);\n i0.ɵɵtemplate(3, Paginator_div_0_button_3_Template, 2, 4, \"button\", 4);\n i0.ɵɵelementStart(4, \"button\", 5);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_Template_button_click_4_listener($event) {\n i0.ɵɵrestoreView(_r33);\n const ctx_r32 = i0.ɵɵnextContext();\n return ctx_r32.changePageToPrev($event);\n });\n i0.ɵɵelement(5, \"span\", 6);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(6, Paginator_div_0_span_6_Template, 2, 1, \"span\", 7);\n i0.ɵɵtemplate(7, Paginator_div_0_p_dropdown_7_Template, 2, 5, \"p-dropdown\", 8);\n i0.ɵɵelementStart(8, \"button\", 9);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_Template_button_click_8_listener($event) {\n i0.ɵɵrestoreView(_r33);\n const ctx_r34 = i0.ɵɵnextContext();\n return ctx_r34.changePageToNext($event);\n });\n i0.ɵɵelement(9, \"span\", 10);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(10, Paginator_div_0_button_10_Template, 2, 4, \"button\", 11);\n i0.ɵɵtemplate(11, Paginator_div_0_p_inputNumber_11_Template, 1, 2, \"p-inputNumber\", 12);\n i0.ɵɵtemplate(12, Paginator_div_0_p_dropdown_12_Template, 2, 6, \"p-dropdown\", 13);\n i0.ɵɵtemplate(13, Paginator_div_0_div_13_Template, 2, 4, \"div\", 14);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r0.styleClass);\n i0.ɵɵproperty(\"ngStyle\", ctx_r0.style)(\"ngClass\", \"p-paginator p-component\");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.templateLeft);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showCurrentPageReport);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showFirstLastIcon);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"disabled\", ctx_r0.isFirstPage() || ctx_r0.empty())(\"ngClass\", i0.ɵɵpureFunction1(17, _c1, ctx_r0.isFirstPage() || ctx_r0.empty()));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showPageLinks);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showJumpToPageDropdown);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"disabled\", ctx_r0.isLastPage() || ctx_r0.empty())(\"ngClass\", i0.ɵɵpureFunction1(19, _c1, ctx_r0.isLastPage() || ctx_r0.empty()));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showFirstLastIcon);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showJumpToPageInput);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.rowsPerPageOptions);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.templateRight);\n }\n}\n\nclass Paginator {\n constructor(cd) {\n this.cd = cd;\n this.pageLinkSize = 5;\n this.onPageChange = new EventEmitter();\n this.alwaysShow = true;\n this.dropdownScrollHeight = '200px';\n this.currentPageReportTemplate = '{currentPage} of {totalPages}';\n this.showFirstLastIcon = true;\n this.totalRecords = 0;\n this.rows = 0;\n this.showPageLinks = true;\n this._first = 0;\n this._page = 0;\n }\n\n ngOnInit() {\n this.updatePaginatorState();\n }\n\n ngOnChanges(simpleChange) {\n if (simpleChange.totalRecords) {\n this.updatePageLinks();\n this.updatePaginatorState();\n this.updateFirst();\n this.updateRowsPerPageOptions();\n }\n\n if (simpleChange.first) {\n this._first = simpleChange.first.currentValue;\n this.updatePageLinks();\n this.updatePaginatorState();\n }\n\n if (simpleChange.rows) {\n this.updatePageLinks();\n this.updatePaginatorState();\n }\n\n if (simpleChange.rowsPerPageOptions) {\n this.updateRowsPerPageOptions();\n }\n }\n\n get first() {\n return this._first;\n }\n\n set first(val) {\n this._first = val;\n }\n\n updateRowsPerPageOptions() {\n if (this.rowsPerPageOptions) {\n this.rowsPerPageItems = [];\n\n for (let opt of this.rowsPerPageOptions) {\n if (typeof opt == 'object' && opt['showAll']) {\n this.rowsPerPageItems.unshift({\n label: opt['showAll'],\n value: this.totalRecords\n });\n } else {\n this.rowsPerPageItems.push({\n label: String(opt),\n value: opt\n });\n }\n }\n }\n }\n\n isFirstPage() {\n return this.getPage() === 0;\n }\n\n isLastPage() {\n return this.getPage() === this.getPageCount() - 1;\n }\n\n getPageCount() {\n return Math.ceil(this.totalRecords / this.rows);\n }\n\n calculatePageLinkBoundaries() {\n let numberOfPages = this.getPageCount(),\n visiblePages = Math.min(this.pageLinkSize, numberOfPages); //calculate range, keep current in middle if necessary\n\n let start = Math.max(0, Math.ceil(this.getPage() - visiblePages / 2)),\n end = Math.min(numberOfPages - 1, start + visiblePages - 1); //check when approaching to last page\n\n var delta = this.pageLinkSize - (end - start + 1);\n start = Math.max(0, start - delta);\n return [start, end];\n }\n\n updatePageLinks() {\n this.pageLinks = [];\n let boundaries = this.calculatePageLinkBoundaries(),\n start = boundaries[0],\n end = boundaries[1];\n\n for (let i = start; i <= end; i++) {\n this.pageLinks.push(i + 1);\n }\n\n if (this.showJumpToPageDropdown) {\n this.pageItems = [];\n\n for (let i = 0; i < this.getPageCount(); i++) {\n this.pageItems.push({\n label: String(i + 1),\n value: i\n });\n }\n }\n }\n\n changePage(p) {\n var pc = this.getPageCount();\n\n if (p >= 0 && p < pc) {\n this._first = this.rows * p;\n var state = {\n page: p,\n first: this.first,\n rows: this.rows,\n pageCount: pc\n };\n this.updatePageLinks();\n this.onPageChange.emit(state);\n this.updatePaginatorState();\n }\n }\n\n updateFirst() {\n const page = this.getPage();\n\n if (page > 0 && this.totalRecords && this.first >= this.totalRecords) {\n Promise.resolve(null).then(() => this.changePage(page - 1));\n }\n }\n\n getPage() {\n return Math.floor(this.first / this.rows);\n }\n\n changePageToFirst(event) {\n if (!this.isFirstPage()) {\n this.changePage(0);\n }\n\n event.preventDefault();\n }\n\n changePageToPrev(event) {\n this.changePage(this.getPage() - 1);\n event.preventDefault();\n }\n\n changePageToNext(event) {\n this.changePage(this.getPage() + 1);\n event.preventDefault();\n }\n\n changePageToLast(event) {\n if (!this.isLastPage()) {\n this.changePage(this.getPageCount() - 1);\n }\n\n event.preventDefault();\n }\n\n onPageLinkClick(event, page) {\n this.changePage(page);\n event.preventDefault();\n }\n\n onRppChange(event) {\n this.changePage(this.getPage());\n }\n\n onPageDropdownChange(event) {\n this.changePage(event.value);\n }\n\n updatePaginatorState() {\n this.paginatorState = {\n page: this.getPage(),\n pageCount: this.getPageCount(),\n rows: this.rows,\n first: this.first,\n totalRecords: this.totalRecords\n };\n }\n\n empty() {\n return this.getPageCount() === 0;\n }\n\n currentPage() {\n return this.getPageCount() > 0 ? this.getPage() + 1 : 0;\n }\n\n get currentPageReport() {\n return this.currentPageReportTemplate.replace(\"{currentPage}\", String(this.currentPage())).replace(\"{totalPages}\", String(this.getPageCount())).replace(\"{first}\", String(this.totalRecords > 0 ? this._first + 1 : 0)).replace(\"{last}\", String(Math.min(this._first + this.rows, this.totalRecords))).replace(\"{rows}\", String(this.rows)).replace(\"{totalRecords}\", String(this.totalRecords));\n }\n\n}\n\nPaginator.ɵfac = function Paginator_Factory(t) {\n return new (t || Paginator)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\n\nPaginator.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Paginator,\n selectors: [[\"p-paginator\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n pageLinkSize: \"pageLinkSize\",\n style: \"style\",\n styleClass: \"styleClass\",\n alwaysShow: \"alwaysShow\",\n templateLeft: \"templateLeft\",\n templateRight: \"templateRight\",\n dropdownAppendTo: \"dropdownAppendTo\",\n dropdownScrollHeight: \"dropdownScrollHeight\",\n currentPageReportTemplate: \"currentPageReportTemplate\",\n showCurrentPageReport: \"showCurrentPageReport\",\n showFirstLastIcon: \"showFirstLastIcon\",\n totalRecords: \"totalRecords\",\n rows: \"rows\",\n rowsPerPageOptions: \"rowsPerPageOptions\",\n showJumpToPageDropdown: \"showJumpToPageDropdown\",\n showJumpToPageInput: \"showJumpToPageInput\",\n showPageLinks: \"showPageLinks\",\n dropdownItemTemplate: \"dropdownItemTemplate\",\n first: \"first\"\n },\n outputs: {\n onPageChange: \"onPageChange\"\n },\n features: [i0.ɵɵNgOnChangesFeature],\n decls: 1,\n vars: 1,\n consts: [[3, \"class\", \"ngStyle\", \"ngClass\", 4, \"ngIf\"], [3, \"ngStyle\", \"ngClass\"], [\"class\", \"p-paginator-left-content\", 4, \"ngIf\"], [\"class\", \"p-paginator-current\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", \"class\", \"p-paginator-first p-paginator-element p-link\", 3, \"disabled\", \"ngClass\", \"click\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-prev\", \"p-paginator-element\", \"p-link\", 3, \"disabled\", \"ngClass\", \"click\"], [1, \"p-paginator-icon\", \"pi\", \"pi-angle-left\"], [\"class\", \"p-paginator-pages\", 4, \"ngIf\"], [\"styleClass\", \"p-paginator-page-options\", 3, \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\", \"onChange\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-next\", \"p-paginator-element\", \"p-link\", 3, \"disabled\", \"ngClass\", \"click\"], [1, \"p-paginator-icon\", \"pi\", \"pi-angle-right\"], [\"type\", \"button\", \"pRipple\", \"\", \"class\", \"p-paginator-last p-paginator-element p-link\", 3, \"disabled\", \"ngClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-paginator-page-input\", 3, \"ngModel\", \"disabled\", \"ngModelChange\", 4, \"ngIf\"], [\"styleClass\", \"p-paginator-rpp-options\", 3, \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\", \"ngModelChange\", \"onChange\", 4, \"ngIf\"], [\"class\", \"p-paginator-right-content\", 4, \"ngIf\"], [1, \"p-paginator-left-content\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"p-paginator-current\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-first\", \"p-paginator-element\", \"p-link\", 3, \"disabled\", \"ngClass\", \"click\"], [1, \"p-paginator-icon\", \"pi\", \"pi-angle-double-left\"], [1, \"p-paginator-pages\"], [\"type\", \"button\", \"class\", \"p-paginator-page p-paginator-element p-link\", \"pRipple\", \"\", 3, \"ngClass\", \"click\", 4, \"ngFor\", \"ngForOf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-page\", \"p-paginator-element\", \"p-link\", 3, \"ngClass\", \"click\"], [\"styleClass\", \"p-paginator-page-options\", 3, \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\", \"onChange\"], [\"pTemplate\", \"selectedItem\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-last\", \"p-paginator-element\", \"p-link\", 3, \"disabled\", \"ngClass\", \"click\"], [1, \"p-paginator-icon\", \"pi\", \"pi-angle-double-right\"], [1, \"p-paginator-page-input\", 3, \"ngModel\", \"disabled\", \"ngModelChange\"], [\"styleClass\", \"p-paginator-rpp-options\", 3, \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\", \"ngModelChange\", \"onChange\"], [4, \"ngIf\"], [\"pTemplate\", \"item\"], [1, \"p-paginator-right-content\"]],\n template: function Paginator_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_Template, 14, 21, \"div\", 0);\n }\n\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", ctx.alwaysShow ? true : ctx.pageLinks && ctx.pageLinks.length > 1);\n }\n },\n directives: [i3.NgIf, i3.NgStyle, i3.NgClass, i4.Ripple, i3.NgTemplateOutlet, i3.NgForOf, i1.Dropdown, i5.NgControlStatus, i5.NgModel, i6.PrimeTemplate, i2.InputNumber],\n styles: [\".p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(Paginator, [{\n type: Component,\n args: [{\n selector: 'p-paginator',\n template: `\n