{"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
\n \n \n \n \n
\n `,\n host: {\n 'class': 'p-element'\n }\n }]\n }], function () {\n return [{\n type: undefined,\n decorators: [{\n type: Inject,\n args: [forwardRef(() => TabView)]\n }]\n }, {\n type: i0.ViewContainerRef\n }, {\n type: i0.ChangeDetectorRef\n }];\n }, {\n closable: [{\n type: Input\n }],\n headerStyle: [{\n type: Input\n }],\n headerStyleClass: [{\n type: Input\n }],\n cache: [{\n type: Input\n }],\n tooltip: [{\n type: Input\n }],\n tooltipPosition: [{\n type: Input\n }],\n tooltipPositionStyle: [{\n type: Input\n }],\n tooltipStyleClass: [{\n type: Input\n }],\n templates: [{\n type: ContentChildren,\n args: [PrimeTemplate]\n }],\n selected: [{\n type: Input\n }],\n disabled: [{\n type: Input\n }],\n header: [{\n type: Input\n }],\n leftIcon: [{\n type: Input\n }],\n rightIcon: [{\n type: Input\n }]\n });\n})();\n\nclass TabView {\n constructor(el, cd) {\n this.el = el;\n this.cd = cd;\n this.orientation = 'top';\n this.onChange = new EventEmitter();\n this.onClose = new EventEmitter();\n this.activeIndexChange = new EventEmitter();\n this.backwardIsDisabled = true;\n this.forwardIsDisabled = false;\n }\n\n ngAfterContentInit() {\n this.initTabs();\n this.tabPanels.changes.subscribe(_ => {\n this.initTabs();\n });\n }\n\n ngAfterViewChecked() {\n if (this.tabChanged) {\n this.updateInkBar();\n this.tabChanged = false;\n }\n }\n\n initTabs() {\n this.tabs = this.tabPanels.toArray();\n let selectedTab = this.findSelectedTab();\n\n if (!selectedTab && this.tabs.length) {\n if (this.activeIndex != null && this.tabs.length > this.activeIndex) this.tabs[this.activeIndex].selected = true;else this.tabs[0].selected = true;\n this.tabChanged = true;\n }\n\n this.cd.markForCheck();\n }\n\n open(event, tab) {\n if (tab.disabled) {\n if (event) {\n event.preventDefault();\n }\n\n return;\n }\n\n if (!tab.selected) {\n let selectedTab = this.findSelectedTab();\n\n if (selectedTab) {\n selectedTab.selected = false;\n }\n\n this.tabChanged = true;\n tab.selected = true;\n let selectedTabIndex = this.findTabIndex(tab);\n this.preventActiveIndexPropagation = true;\n this.activeIndexChange.emit(selectedTabIndex);\n this.onChange.emit({\n originalEvent: event,\n index: selectedTabIndex\n });\n this.updateScrollBar(selectedTabIndex);\n }\n\n if (event) {\n event.preventDefault();\n }\n }\n\n close(event, tab) {\n if (this.controlClose) {\n this.onClose.emit({\n originalEvent: event,\n index: this.findTabIndex(tab),\n close: () => {\n this.closeTab(tab);\n }\n });\n } else {\n this.closeTab(tab);\n this.onClose.emit({\n originalEvent: event,\n index: this.findTabIndex(tab)\n });\n }\n\n event.stopPropagation();\n }\n\n closeTab(tab) {\n if (tab.disabled) {\n return;\n }\n\n if (tab.selected) {\n this.tabChanged = true;\n tab.selected = false;\n\n for (let i = 0; i < this.tabs.length; i++) {\n let tabPanel = this.tabs[i];\n\n if (!tabPanel.closed && !tab.disabled) {\n tabPanel.selected = true;\n break;\n }\n }\n }\n\n tab.closed = true;\n }\n\n findSelectedTab() {\n for (let i = 0; i < this.tabs.length; i++) {\n if (this.tabs[i].selected) {\n return this.tabs[i];\n }\n }\n\n return null;\n }\n\n findTabIndex(tab) {\n let index = -1;\n\n for (let i = 0; i < this.tabs.length; i++) {\n if (this.tabs[i] == tab) {\n index = i;\n break;\n }\n }\n\n return index;\n }\n\n getBlockableElement() {\n return this.el.nativeElement.children[0];\n }\n\n get activeIndex() {\n return this._activeIndex;\n }\n\n set activeIndex(val) {\n this._activeIndex = val;\n\n if (this.preventActiveIndexPropagation) {\n this.preventActiveIndexPropagation = false;\n return;\n }\n\n if (this.tabs && this.tabs.length && this._activeIndex != null && this.tabs.length > this._activeIndex) {\n this.findSelectedTab().selected = false;\n this.tabs[this._activeIndex].selected = true;\n this.tabChanged = true;\n this.updateScrollBar(val);\n }\n }\n\n updateInkBar() {\n let tabHeader = DomHandler.findSingle(this.navbar.nativeElement, 'li.p-highlight');\n this.inkbar.nativeElement.style.width = DomHandler.getWidth(tabHeader) + 'px';\n this.inkbar.nativeElement.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.navbar.nativeElement).left + 'px';\n }\n\n updateScrollBar(index) {\n let tabHeader = this.navbar.nativeElement.children[index];\n tabHeader.scrollIntoView({\n block: 'nearest'\n });\n }\n\n updateButtonState() {\n const content = this.content.nativeElement;\n const {\n scrollLeft,\n scrollWidth\n } = content;\n const width = DomHandler.getWidth(content);\n this.backwardIsDisabled = scrollLeft === 0;\n this.forwardIsDisabled = scrollLeft === scrollWidth - width;\n }\n\n onScroll(event) {\n this.scrollable && this.updateButtonState();\n event.preventDefault();\n }\n\n getVisibleButtonWidths() {\n return [this.prevBtn?.nativeElement, this.nextBtn?.nativeElement].reduce((acc, el) => el ? acc + DomHandler.getWidth(el) : acc, 0);\n }\n\n navBackward() {\n const content = this.content.nativeElement;\n const width = DomHandler.getWidth(content) - this.getVisibleButtonWidths();\n const pos = content.scrollLeft - width;\n content.scrollLeft = pos <= 0 ? 0 : pos;\n }\n\n navForward() {\n const content = this.content.nativeElement;\n const width = DomHandler.getWidth(content) - this.getVisibleButtonWidths();\n const pos = content.scrollLeft + width;\n const lastPos = content.scrollWidth - width;\n content.scrollLeft = pos >= lastPos ? lastPos : pos;\n }\n\n}\n\nTabView.ɵfac = function TabView_Factory(t) {\n return new (t || TabView)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\n\nTabView.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TabView,\n selectors: [[\"p-tabView\"]],\n contentQueries: function TabView_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, TabPanel, 4);\n }\n\n if (rf & 2) {\n let _t;\n\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabPanels = _t);\n }\n },\n viewQuery: function TabView_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c1, 5);\n i0.ɵɵviewQuery(_c2, 5);\n i0.ɵɵviewQuery(_c3, 5);\n i0.ɵɵviewQuery(_c4, 5);\n i0.ɵɵviewQuery(_c5, 5);\n }\n\n if (rf & 2) {\n let _t;\n\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.navbar = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prevBtn = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nextBtn = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inkbar = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n orientation: \"orientation\",\n style: \"style\",\n styleClass: \"styleClass\",\n controlClose: \"controlClose\",\n scrollable: \"scrollable\",\n activeIndex: \"activeIndex\"\n },\n outputs: {\n onChange: \"onChange\",\n onClose: \"onClose\",\n activeIndexChange: \"activeIndexChange\"\n },\n ngContentSelectors: _c0,\n decls: 13,\n vars: 9,\n consts: [[3, \"ngClass\", \"ngStyle\"], [1, \"p-tabview-nav-container\"], [\"class\", \"p-tabview-nav-prev p-tabview-nav-btn p-link\", \"type\", \"button\", \"pRipple\", \"\", 3, \"click\", 4, \"ngIf\"], [1, \"p-tabview-nav-content\", 3, \"scroll\"], [\"content\", \"\"], [\"role\", \"tablist\", 1, \"p-tabview-nav\"], [\"navbar\", \"\"], [\"ngFor\", \"\", 3, \"ngForOf\"], [1, \"p-tabview-ink-bar\"], [\"inkbar\", \"\"], [\"class\", \"p-tabview-nav-next p-tabview-nav-btn p-link\", \"type\", \"button\", \"pRipple\", \"\", 3, \"click\", 4, \"ngIf\"], [1, \"p-tabview-panels\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-tabview-nav-prev\", \"p-tabview-nav-btn\", \"p-link\", 3, \"click\"], [\"prevBtn\", \"\"], [1, \"pi\", \"pi-chevron-left\"], [\"role\", \"presentation\", 3, \"ngClass\", \"ngStyle\", \"class\", 4, \"ngIf\"], [\"role\", \"presentation\", 3, \"ngClass\", \"ngStyle\"], [\"role\", \"tab\", \"pRipple\", \"\", 1, \"p-tabview-nav-link\", 3, \"pTooltip\", \"tooltipPosition\", \"positionStyle\", \"tooltipStyleClass\", \"click\", \"keydown.enter\"], [4, \"ngIf\"], [4, \"ngTemplateOutlet\"], [\"class\", \"p-tabview-close pi pi-times\", 3, \"click\", 4, \"ngIf\"], [\"class\", \"p-tabview-left-icon\", 3, \"ngClass\", 4, \"ngIf\"], [1, \"p-tabview-title\"], [\"class\", \"p-tabview-right-icon\", 3, \"ngClass\", 4, \"ngIf\"], [1, \"p-tabview-left-icon\", 3, \"ngClass\"], [1, \"p-tabview-right-icon\", 3, \"ngClass\"], [1, \"p-tabview-close\", \"pi\", \"pi-times\", 3, \"click\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-tabview-nav-next\", \"p-tabview-nav-btn\", \"p-link\", 3, \"click\"], [\"nextBtn\", \"\"], [1, \"pi\", \"pi-chevron-right\"]],\n template: function TabView_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵelementStart(1, \"div\", 1);\n i0.ɵɵtemplate(2, TabView_button_2_Template, 3, 0, \"button\", 2);\n i0.ɵɵelementStart(3, \"div\", 3, 4);\n i0.ɵɵlistener(\"scroll\", function TabView_Template_div_scroll_3_listener($event) {\n return ctx.onScroll($event);\n });\n i0.ɵɵelementStart(5, \"ul\", 5, 6);\n i0.ɵɵtemplate(7, TabView_ng_template_7_Template, 1, 1, \"ng-template\", 7);\n i0.ɵɵelement(8, \"li\", 8, 9);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(10, TabView_button_10_Template, 3, 0, \"button\", 10);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(11, \"div\", 11);\n i0.ɵɵprojection(12);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(7, _c7, ctx.scrollable))(\"ngStyle\", ctx.style);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.scrollable && !ctx.backwardIsDisabled);\n i0.ɵɵadvance(5);\n i0.ɵɵproperty(\"ngForOf\", ctx.tabs);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", ctx.scrollable && !ctx.forwardIsDisabled);\n }\n },\n directives: [i1.NgClass, i1.NgStyle, i1.NgIf, i1.NgForOf, i2.Ripple, i3.Tooltip, i1.NgTemplateOutlet],\n styles: [\".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-scroll-chaining:contain auto;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(TabView, [{\n type: Component,\n args: [{\n selector: 'p-tabView',\n template: `\n
\n
\n \n
\n \n
\n \n
\n
\n \n
\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'p-element'\n },\n styles: [\".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-scroll-chaining:contain auto;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\\n\"]\n }]\n }], function () {\n return [{\n type: i0.ElementRef\n }, {\n type: i0.ChangeDetectorRef\n }];\n }, {\n orientation: [{\n type: Input\n }],\n style: [{\n type: Input\n }],\n styleClass: [{\n type: Input\n }],\n controlClose: [{\n type: Input\n }],\n scrollable: [{\n type: Input\n }],\n content: [{\n type: ViewChild,\n args: ['content']\n }],\n navbar: [{\n type: ViewChild,\n args: ['navbar']\n }],\n prevBtn: [{\n type: ViewChild,\n args: ['prevBtn']\n }],\n nextBtn: [{\n type: ViewChild,\n args: ['nextBtn']\n }],\n inkbar: [{\n type: ViewChild,\n args: ['inkbar']\n }],\n tabPanels: [{\n type: ContentChildren,\n args: [TabPanel]\n }],\n onChange: [{\n type: Output\n }],\n onClose: [{\n type: Output\n }],\n activeIndexChange: [{\n type: Output\n }],\n activeIndex: [{\n type: Input\n }]\n });\n})();\n\nclass TabViewModule {}\n\nTabViewModule.ɵfac = function TabViewModule_Factory(t) {\n return new (t || TabViewModule)();\n};\n\nTabViewModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TabViewModule\n});\nTabViewModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, SharedModule, TooltipModule, RippleModule], SharedModule]\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(TabViewModule, [{\n type: NgModule,\n args: [{\n imports: [CommonModule, SharedModule, TooltipModule, RippleModule],\n exports: [TabView, TabPanel, SharedModule],\n declarations: [TabView, TabPanel]\n }]\n }], null, null);\n})();\n/**\n * Generated bundle index. Do not edit.\n */\n\n\nexport { TabPanel, TabView, TabViewModule };","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/node_modules/primeng/fesm2020/primeng-tabview.mjs"],"names":["i0","forwardRef","Component","Inject","Input","ContentChildren","EventEmitter","ChangeDetectionStrategy","ViewEncapsulation","ViewChild","Output","NgModule","i1","CommonModule","i3","TooltipModule","i2","RippleModule","PrimeTemplate","SharedModule","DomHandler","idx","TabPanel","constructor","tabView","viewContainer","cd","cache","tooltipPosition","tooltipPositionStyle","id","ngAfterContentInit","templates","forEach","item","getType","headerTemplate","template","contentTemplate","selected","_selected","val","loaded","detectChanges","disabled","_disabled","markForCheck","header","_header","leftIcon","_leftIcon","rightIcon","_rightIcon","ngOnDestroy","view","ɵfac","TabView","ViewContainerRef","ChangeDetectorRef","ɵcmp","NgIf","NgTemplateOutlet","type","args","selector","host","undefined","decorators","closable","headerStyle","headerStyleClass","tooltip","tooltipStyleClass","el","orientation","onChange","onClose","activeIndexChange","backwardIsDisabled","forwardIsDisabled","initTabs","tabPanels","changes","subscribe","_","ngAfterViewChecked","tabChanged","updateInkBar","tabs","toArray","selectedTab","findSelectedTab","length","activeIndex","open","event","tab","preventDefault","selectedTabIndex","findTabIndex","preventActiveIndexPropagation","emit","originalEvent","index","updateScrollBar","close","controlClose","closeTab","stopPropagation","i","tabPanel","closed","getBlockableElement","nativeElement","children","_activeIndex","tabHeader","findSingle","navbar","inkbar","style","width","getWidth","left","getOffset","scrollIntoView","block","updateButtonState","content","scrollLeft","scrollWidth","onScroll","scrollable","getVisibleButtonWidths","prevBtn","nextBtn","reduce","acc","navBackward","pos","navForward","lastPos","ElementRef","NgClass","NgStyle","NgForOf","Ripple","Tooltip","changeDetection","OnPush","encapsulation","None","styles","styleClass","TabViewModule","ɵmod","ɵinj","imports","exports","declarations"],"mappings":"AAAA,OAAO,KA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V3F;AAAA,YAAoI,CAACa,YAAD,EAAeM,YAAf,EAA6BJ,aAA7B,EAA4CE,YAA5C,CAApI,EAA+LE,YAA/L;AAAA;;AACA;AAAA,qDA1V2FnB,EA0V3F,mBAA2F0J,aAA3F,EAAsH,CAAC;AAC3G5F,IAAAA,IAAI,EAAEnD,QADqG;AAE3GoD,IAAAA,IAAI,EAAE,CAAC;AACC8F,MAAAA,OAAO,EAAE,CAAChJ,YAAD,EAAeM,YAAf,EAA6BJ,aAA7B,EAA4CE,YAA5C,CADV;AAEC6I,MAAAA,OAAO,EAAE,CAACtG,OAAD,EAAUlC,QAAV,EAAoBH,YAApB,CAFV;AAGC4I,MAAAA,YAAY,EAAE,CAACvG,OAAD,EAAUlC,QAAV;AAHf,KAAD;AAFqG,GAAD,CAAtH;AAAA;AASA;AACA;AACA;;;AAEA,SAASA,QAAT,EAAmBkC,OAAnB,EAA4BkG,aAA5B","sourcesContent":["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\nlet idx = 0;\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 ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch (item.getType()) {\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'content':\n this.contentTemplate = item.template;\n break;\n default:\n this.contentTemplate = item.template;\n break;\n }\n });\n }\n get selected() {\n return this._selected;\n }\n set selected(val) {\n this._selected = val;\n if (!this.loaded) {\n this.cd.detectChanges();\n }\n if (val)\n this.loaded = true;\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 get header() {\n return this._header;\n }\n set header(header) {\n this._header = header;\n this.tabView.cd.markForCheck();\n }\n get leftIcon() {\n return this._leftIcon;\n }\n set leftIcon(leftIcon) {\n this._leftIcon = leftIcon;\n this.tabView.cd.markForCheck();\n }\n get rightIcon() {\n return this._rightIcon;\n }\n set rightIcon(rightIcon) {\n this._rightIcon = rightIcon;\n this.tabView.cd.markForCheck();\n }\n ngOnDestroy() {\n this.view = null;\n }\n}\nTabPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabPanel, deps: [{ token: forwardRef(() => TabView) }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nTabPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: TabPanel, selector: \"p-tabPanel\", inputs: { closable: \"closable\", headerStyle: \"headerStyle\", headerStyleClass: \"headerStyleClass\", cache: \"cache\", tooltip: \"tooltip\", tooltipPosition: \"tooltipPosition\", tooltipPositionStyle: \"tooltipPositionStyle\", tooltipStyleClass: \"tooltipStyleClass\", selected: \"selected\", disabled: \"disabled\", header: \"header\", leftIcon: \"leftIcon\", rightIcon: \"rightIcon\" }, host: { classAttribute: \"p-element\" }, queries: [{ propertyName: \"templates\", predicate: PrimeTemplate }], ngImport: i0, template: `\n
\n \n \n \n \n
\n `, isInline: true, directives: [{ type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabPanel, decorators: [{\n type: Component,\n args: [{\n selector: 'p-tabPanel',\n template: `\n
\n \n \n \n \n
\n `,\n host: {\n 'class': 'p-element'\n }\n }]\n }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [forwardRef(() => TabView)]\n }] }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { closable: [{\n type: Input\n }], headerStyle: [{\n type: Input\n }], headerStyleClass: [{\n type: Input\n }], cache: [{\n type: Input\n }], tooltip: [{\n type: Input\n }], tooltipPosition: [{\n type: Input\n }], tooltipPositionStyle: [{\n type: Input\n }], tooltipStyleClass: [{\n type: Input\n }], templates: [{\n type: ContentChildren,\n args: [PrimeTemplate]\n }], selected: [{\n type: Input\n }], disabled: [{\n type: Input\n }], header: [{\n type: Input\n }], leftIcon: [{\n type: Input\n }], rightIcon: [{\n type: Input\n }] } });\nclass TabView {\n constructor(el, cd) {\n this.el = el;\n this.cd = cd;\n this.orientation = 'top';\n this.onChange = new EventEmitter();\n this.onClose = new EventEmitter();\n this.activeIndexChange = new EventEmitter();\n this.backwardIsDisabled = true;\n this.forwardIsDisabled = false;\n }\n ngAfterContentInit() {\n this.initTabs();\n this.tabPanels.changes.subscribe(_ => {\n this.initTabs();\n });\n }\n ngAfterViewChecked() {\n if (this.tabChanged) {\n this.updateInkBar();\n this.tabChanged = false;\n }\n }\n initTabs() {\n this.tabs = this.tabPanels.toArray();\n let selectedTab = this.findSelectedTab();\n if (!selectedTab && this.tabs.length) {\n if (this.activeIndex != null && this.tabs.length > this.activeIndex)\n this.tabs[this.activeIndex].selected = true;\n else\n this.tabs[0].selected = true;\n this.tabChanged = true;\n }\n this.cd.markForCheck();\n }\n open(event, tab) {\n if (tab.disabled) {\n if (event) {\n event.preventDefault();\n }\n return;\n }\n if (!tab.selected) {\n let selectedTab = this.findSelectedTab();\n if (selectedTab) {\n selectedTab.selected = false;\n }\n this.tabChanged = true;\n tab.selected = true;\n let selectedTabIndex = this.findTabIndex(tab);\n this.preventActiveIndexPropagation = true;\n this.activeIndexChange.emit(selectedTabIndex);\n this.onChange.emit({ originalEvent: event, index: selectedTabIndex });\n this.updateScrollBar(selectedTabIndex);\n }\n if (event) {\n event.preventDefault();\n }\n }\n close(event, tab) {\n if (this.controlClose) {\n this.onClose.emit({\n originalEvent: event,\n index: this.findTabIndex(tab),\n close: () => {\n this.closeTab(tab);\n }\n });\n }\n else {\n this.closeTab(tab);\n this.onClose.emit({\n originalEvent: event,\n index: this.findTabIndex(tab)\n });\n }\n event.stopPropagation();\n }\n closeTab(tab) {\n if (tab.disabled) {\n return;\n }\n if (tab.selected) {\n this.tabChanged = true;\n tab.selected = false;\n for (let i = 0; i < this.tabs.length; i++) {\n let tabPanel = this.tabs[i];\n if (!tabPanel.closed && !tab.disabled) {\n tabPanel.selected = true;\n break;\n }\n }\n }\n tab.closed = true;\n }\n findSelectedTab() {\n for (let i = 0; i < this.tabs.length; i++) {\n if (this.tabs[i].selected) {\n return this.tabs[i];\n }\n }\n return null;\n }\n findTabIndex(tab) {\n let index = -1;\n for (let i = 0; i < this.tabs.length; i++) {\n if (this.tabs[i] == tab) {\n index = i;\n break;\n }\n }\n return index;\n }\n getBlockableElement() {\n return this.el.nativeElement.children[0];\n }\n get activeIndex() {\n return this._activeIndex;\n }\n set activeIndex(val) {\n this._activeIndex = val;\n if (this.preventActiveIndexPropagation) {\n this.preventActiveIndexPropagation = false;\n return;\n }\n if (this.tabs && this.tabs.length && this._activeIndex != null && this.tabs.length > this._activeIndex) {\n this.findSelectedTab().selected = false;\n this.tabs[this._activeIndex].selected = true;\n this.tabChanged = true;\n this.updateScrollBar(val);\n }\n }\n updateInkBar() {\n let tabHeader = DomHandler.findSingle(this.navbar.nativeElement, 'li.p-highlight');\n this.inkbar.nativeElement.style.width = DomHandler.getWidth(tabHeader) + 'px';\n this.inkbar.nativeElement.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.navbar.nativeElement).left + 'px';\n }\n updateScrollBar(index) {\n let tabHeader = this.navbar.nativeElement.children[index];\n tabHeader.scrollIntoView({ block: 'nearest' });\n }\n updateButtonState() {\n const content = this.content.nativeElement;\n const { scrollLeft, scrollWidth } = content;\n const width = DomHandler.getWidth(content);\n this.backwardIsDisabled = scrollLeft === 0;\n this.forwardIsDisabled = scrollLeft === scrollWidth - width;\n }\n onScroll(event) {\n this.scrollable && this.updateButtonState();\n event.preventDefault();\n }\n getVisibleButtonWidths() {\n return [this.prevBtn?.nativeElement, this.nextBtn?.nativeElement].reduce((acc, el) => el ? acc + DomHandler.getWidth(el) : acc, 0);\n }\n navBackward() {\n const content = this.content.nativeElement;\n const width = DomHandler.getWidth(content) - this.getVisibleButtonWidths();\n const pos = content.scrollLeft - width;\n content.scrollLeft = pos <= 0 ? 0 : pos;\n }\n navForward() {\n const content = this.content.nativeElement;\n const width = DomHandler.getWidth(content) - this.getVisibleButtonWidths();\n const pos = content.scrollLeft + width;\n const lastPos = content.scrollWidth - width;\n content.scrollLeft = pos >= lastPos ? lastPos : pos;\n }\n}\nTabView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabView, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nTabView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: TabView, selector: \"p-tabView\", inputs: { orientation: \"orientation\", style: \"style\", styleClass: \"styleClass\", controlClose: \"controlClose\", scrollable: \"scrollable\", activeIndex: \"activeIndex\" }, outputs: { onChange: \"onChange\", onClose: \"onClose\", activeIndexChange: \"activeIndexChange\" }, host: { classAttribute: \"p-element\" }, queries: [{ propertyName: \"tabPanels\", predicate: TabPanel }], viewQueries: [{ propertyName: \"content\", first: true, predicate: [\"content\"], descendants: true }, { propertyName: \"navbar\", first: true, predicate: [\"navbar\"], descendants: true }, { propertyName: \"prevBtn\", first: true, predicate: [\"prevBtn\"], descendants: true }, { propertyName: \"nextBtn\", first: true, predicate: [\"nextBtn\"], descendants: true }, { propertyName: \"inkbar\", first: true, predicate: [\"inkbar\"], descendants: true }], ngImport: i0, template: `\n
\n
\n \n
\n \n
\n \n
\n
\n \n
\n
\n `, isInline: true, styles: [\".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-scroll-chaining:contain auto;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\\n\"], directives: [{ type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i2.Ripple, selector: \"[pRipple]\" }, { type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: i3.Tooltip, selector: \"[pTooltip]\", inputs: [\"tooltipPosition\", \"tooltipEvent\", \"appendTo\", \"positionStyle\", \"tooltipStyleClass\", \"tooltipZIndex\", \"escape\", \"showDelay\", \"hideDelay\", \"life\", \"positionTop\", \"positionLeft\", \"pTooltip\", \"tooltipDisabled\", \"tooltipOptions\"] }, { type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabView, decorators: [{\n type: Component,\n args: [{ selector: 'p-tabView', template: `\n
\n
\n \n
\n \n
\n \n
\n
\n \n
\n
\n `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {\n 'class': 'p-element'\n }, styles: [\".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-scroll-chaining:contain auto;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\\n\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { orientation: [{\n type: Input\n }], style: [{\n type: Input\n }], styleClass: [{\n type: Input\n }], controlClose: [{\n type: Input\n }], scrollable: [{\n type: Input\n }], content: [{\n type: ViewChild,\n args: ['content']\n }], navbar: [{\n type: ViewChild,\n args: ['navbar']\n }], prevBtn: [{\n type: ViewChild,\n args: ['prevBtn']\n }], nextBtn: [{\n type: ViewChild,\n args: ['nextBtn']\n }], inkbar: [{\n type: ViewChild,\n args: ['inkbar']\n }], tabPanels: [{\n type: ContentChildren,\n args: [TabPanel]\n }], onChange: [{\n type: Output\n }], onClose: [{\n type: Output\n }], activeIndexChange: [{\n type: Output\n }], activeIndex: [{\n type: Input\n }] } });\nclass TabViewModule {\n}\nTabViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nTabViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabViewModule, declarations: [TabView, TabPanel], imports: [CommonModule, SharedModule, TooltipModule, RippleModule], exports: [TabView, TabPanel, SharedModule] });\nTabViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabViewModule, imports: [[CommonModule, SharedModule, TooltipModule, RippleModule], SharedModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: TabViewModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, SharedModule, TooltipModule, RippleModule],\n exports: [TabView, TabPanel, SharedModule],\n declarations: [TabView, TabPanel]\n }]\n }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TabPanel, TabView, TabViewModule };\n"]},"metadata":{},"sourceType":"module"}