{"ast":null,"code":"import * as i0 from '@angular/core';\nimport { forwardRef, Component, Inject, Input, ContentChildren, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Output, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i3 from 'primeng/tooltip';\nimport { TooltipModule } from 'primeng/tooltip';\nimport * as i2 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { DomHandler } from 'primeng/dom';\n\nfunction TabPanel_div_0_ng_container_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction TabPanel_div_0_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TabPanel_div_0_ng_container_2_ng_container_1_Template, 1, 0, \"ng-container\", 3);\n i0.ɵɵelementContainerEnd();\n }\n\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.contentTemplate);\n }\n}\n\nfunction TabPanel_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵprojection(1);\n i0.ɵɵtemplate(2, TabPanel_div_0_ng_container_2_Template, 2, 1, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"hidden\", !ctx_r0.selected);\n i0.ɵɵattribute(\"id\", ctx_r0.id)(\"aria-hidden\", !ctx_r0.selected)(\"aria-labelledby\", ctx_r0.id + \"-label\");\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.contentTemplate && (ctx_r0.cache ? ctx_r0.loaded : ctx_r0.selected));\n }\n}\n\nconst _c0 = [\"*\"];\nconst _c1 = [\"content\"];\nconst _c2 = [\"navbar\"];\nconst _c3 = [\"prevBtn\"];\nconst _c4 = [\"nextBtn\"];\nconst _c5 = [\"inkbar\"];\n\nfunction TabView_button_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 12, 13);\n i0.ɵɵlistener(\"click\", function TabView_button_2_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r8);\n const ctx_r7 = i0.ɵɵnextContext();\n return ctx_r7.navBackward();\n });\n i0.ɵɵelement(2, \"span\", 14);\n i0.ɵɵelementEnd();\n }\n}\n\nfunction TabView_ng_template_7_li_0_ng_container_2_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 24);\n }\n\n if (rf & 2) {\n const tab_r9 = i0.ɵɵnextContext(3).$implicit;\n i0.ɵɵproperty(\"ngClass\", tab_r9.leftIcon);\n }\n}\n\nfunction TabView_ng_template_7_li_0_ng_container_2_span_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 25);\n }\n\n if (rf & 2) {\n const tab_r9 = i0.ɵɵnextContext(3).$implicit;\n i0.ɵɵproperty(\"ngClass\", tab_r9.rightIcon);\n }\n}\n\nfunction TabView_ng_template_7_li_0_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TabView_ng_template_7_li_0_ng_container_2_span_1_Template, 1, 1, \"span\", 21);\n i0.ɵɵelementStart(2, \"span\", 22);\n i0.ɵɵtext(3);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(4, TabView_ng_template_7_li_0_ng_container_2_span_4_Template, 1, 1, \"span\", 23);\n i0.ɵɵelementContainerEnd();\n }\n\n if (rf & 2) {\n const tab_r9 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", tab_r9.leftIcon);\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(tab_r9.header);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", tab_r9.rightIcon);\n }\n}\n\nfunction TabView_ng_template_7_li_0_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction TabView_ng_template_7_li_0_span_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r21 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"span\", 26);\n i0.ɵɵlistener(\"click\", function TabView_ng_template_7_li_0_span_4_Template_span_click_0_listener($event) {\n i0.ɵɵrestoreView(_r21);\n const tab_r9 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r19 = i0.ɵɵnextContext();\n return ctx_r19.close($event, tab_r9);\n });\n i0.ɵɵelementEnd();\n }\n}\n\nconst _c6 = function (a0, a1) {\n return {\n \"p-highlight\": a0,\n \"p-disabled\": a1\n };\n};\n\nfunction TabView_ng_template_7_li_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r24 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"li\", 16);\n i0.ɵɵelementStart(1, \"a\", 17);\n i0.ɵɵlistener(\"click\", function TabView_ng_template_7_li_0_Template_a_click_1_listener($event) {\n i0.ɵɵrestoreView(_r24);\n const tab_r9 = i0.ɵɵnextContext().$implicit;\n const ctx_r22 = i0.ɵɵnextContext();\n return ctx_r22.open($event, tab_r9);\n })(\"keydown.enter\", function TabView_ng_template_7_li_0_Template_a_keydown_enter_1_listener($event) {\n i0.ɵɵrestoreView(_r24);\n const tab_r9 = i0.ɵɵnextContext().$implicit;\n const ctx_r25 = i0.ɵɵnextContext();\n return ctx_r25.open($event, tab_r9);\n });\n i0.ɵɵtemplate(2, TabView_ng_template_7_li_0_ng_container_2_Template, 5, 3, \"ng-container\", 18);\n i0.ɵɵtemplate(3, TabView_ng_template_7_li_0_ng_container_3_Template, 1, 0, \"ng-container\", 19);\n i0.ɵɵtemplate(4, TabView_ng_template_7_li_0_span_4_Template, 1, 0, \"span\", 20);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const tab_r9 = i0.ɵɵnextContext().$implicit;\n i0.ɵɵclassMap(tab_r9.headerStyleClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(16, _c6, tab_r9.selected, tab_r9.disabled))(\"ngStyle\", tab_r9.headerStyle);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"pTooltip\", tab_r9.tooltip)(\"tooltipPosition\", tab_r9.tooltipPosition)(\"positionStyle\", tab_r9.tooltipPositionStyle)(\"tooltipStyleClass\", tab_r9.tooltipStyleClass);\n i0.ɵɵattribute(\"id\", tab_r9.id + \"-label\")(\"aria-selected\", tab_r9.selected)(\"aria-controls\", tab_r9.id)(\"aria-selected\", tab_r9.selected)(\"tabindex\", tab_r9.disabled ? null : \"0\");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", !tab_r9.headerTemplate);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", tab_r9.headerTemplate);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", tab_r9.closable);\n }\n}\n\nfunction TabView_ng_template_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TabView_ng_template_7_li_0_Template, 5, 19, \"li\", 15);\n }\n\n if (rf & 2) {\n const tab_r9 = ctx.$implicit;\n i0.ɵɵproperty(\"ngIf\", !tab_r9.closed);\n }\n}\n\nfunction TabView_button_10_Template(rf, ctx) {\n if (rf & 1) {\n const _r30 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"button\", 27, 28);\n i0.ɵɵlistener(\"click\", function TabView_button_10_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r30);\n const ctx_r29 = i0.ɵɵnextContext();\n return ctx_r29.navForward();\n });\n i0.ɵɵelement(2, \"span\", 29);\n i0.ɵɵelementEnd();\n }\n}\n\nconst _c7 = function (a1) {\n return {\n \"p-tabview p-component\": true,\n \"p-tabview-scrollable\": a1\n };\n};\n\nlet idx = 0;\n\nclass TabPanel {\n constructor(tabView, viewContainer, cd) {\n this.viewContainer = viewContainer;\n this.cd = cd;\n this.cache = true;\n this.tooltipPosition = 'top';\n this.tooltipPositionStyle = 'absolute';\n this.id = `p-tabpanel-${idx++}`;\n this.tabView = tabView;\n }\n\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'header':\n this.headerTemplate = item.template;\n break;\n\n case 'content':\n this.contentTemplate = item.template;\n break;\n\n default:\n this.contentTemplate = item.template;\n break;\n }\n });\n }\n\n get selected() {\n return this._selected;\n }\n\n set selected(val) {\n this._selected = val;\n\n if (!this.loaded) {\n this.cd.detectChanges();\n }\n\n if (val) this.loaded = true;\n }\n\n get disabled() {\n return this._disabled;\n }\n\n set disabled(disabled) {\n this._disabled = disabled;\n this.tabView.cd.markForCheck();\n }\n\n get header() {\n return this._header;\n }\n\n set header(header) {\n this._header = header;\n this.tabView.cd.markForCheck();\n }\n\n get leftIcon() {\n return this._leftIcon;\n }\n\n set leftIcon(leftIcon) {\n this._leftIcon = leftIcon;\n this.tabView.cd.markForCheck();\n }\n\n get rightIcon() {\n return this._rightIcon;\n }\n\n set rightIcon(rightIcon) {\n this._rightIcon = rightIcon;\n this.tabView.cd.markForCheck();\n }\n\n ngOnDestroy() {\n this.view = null;\n }\n\n}\n\nTabPanel.ɵfac = function TabPanel_Factory(t) {\n return new (t || TabPanel)(i0.ɵɵdirectiveInject(forwardRef(() => TabView)), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\n\nTabPanel.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TabPanel,\n selectors: [[\"p-tabPanel\"]],\n contentQueries: function TabPanel_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n\n if (rf & 2) {\n let _t;\n\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n closable: \"closable\",\n headerStyle: \"headerStyle\",\n headerStyleClass: \"headerStyleClass\",\n cache: \"cache\",\n tooltip: \"tooltip\",\n tooltipPosition: \"tooltipPosition\",\n tooltipPositionStyle: \"tooltipPositionStyle\",\n tooltipStyleClass: \"tooltipStyleClass\",\n selected: \"selected\",\n disabled: \"disabled\",\n header: \"header\",\n leftIcon: \"leftIcon\",\n rightIcon: \"rightIcon\"\n },\n ngContentSelectors: _c0,\n decls: 1,\n vars: 1,\n consts: [[\"class\", \"p-tabview-panel\", \"role\", \"tabpanel\", 3, \"hidden\", 4, \"ngIf\"], [\"role\", \"tabpanel\", 1, \"p-tabview-panel\", 3, \"hidden\"], [4, \"ngIf\"], [4, \"ngTemplateOutlet\"]],\n template: function TabPanel_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵtemplate(0, TabPanel_div_0_Template, 3, 5, \"div\", 0);\n }\n\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", !ctx.closed);\n }\n },\n directives: [i1.NgIf, i1.NgTemplateOutlet],\n encapsulation: 2\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(TabPanel, [{\n type: Component,\n args: [{\n selector: 'p-tabPanel',\n template: `\n