{
"version": 3,
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-cdk-resize-observer.mjs", "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-tabs.mjs"],
"sourcesContent": ["import * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, Directive, Output, Input, NgModule } from '@angular/core';\nimport { __decorate } from 'tslib';\nimport { InputBoolean } from 'ng-zorro-antd/core/util';\nimport { coerceElement } from '@angular/cdk/coercion';\nimport { Observable, Subject } from 'rxjs';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n/**\n * Factory that creates a new ResizeObserver and allows us to stub it out in unit tests.\n */\nclass NzResizeObserverFactory {\n create(callback) {\n return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);\n }\n static {\n this.ɵfac = function NzResizeObserverFactory_Factory(t) {\n return new (t || NzResizeObserverFactory)();\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: NzResizeObserverFactory,\n factory: NzResizeObserverFactory.ɵfac,\n providedIn: 'root'\n });\n }\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzResizeObserverFactory, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], null, null);\n})();\n/** An injectable service that allows watching elements for changes to their content. */\nclass NzResizeObserver {\n constructor(nzResizeObserverFactory) {\n this.nzResizeObserverFactory = nzResizeObserverFactory;\n /** Keeps track of the existing ResizeObservers so they can be reused. */\n this.observedElements = new Map();\n }\n ngOnDestroy() {\n this.observedElements.forEach((_, element) => this.cleanupObserver(element));\n }\n observe(elementOrRef) {\n const element = coerceElement(elementOrRef);\n return new Observable(observer => {\n const stream = this.observeElement(element);\n const subscription = stream.subscribe(observer);\n return () => {\n subscription.unsubscribe();\n this.unobserveElement(element);\n };\n });\n }\n /**\n * Observes the given element by using the existing ResizeObserver if available, or creating a\n * new one if not.\n */\n observeElement(element) {\n if (!this.observedElements.has(element)) {\n const stream = new Subject();\n const observer = this.nzResizeObserverFactory.create(mutations => stream.next(mutations));\n if (observer) {\n observer.observe(element);\n }\n this.observedElements.set(element, {\n observer,\n stream,\n count: 1\n });\n } else {\n this.observedElements.get(element).count++;\n }\n return this.observedElements.get(element).stream;\n }\n /**\n * Un-observes the given element and cleans up the underlying ResizeObserver if nobody else is\n * observing this element.\n */\n unobserveElement(element) {\n if (this.observedElements.has(element)) {\n this.observedElements.get(element).count--;\n if (!this.observedElements.get(element).count) {\n this.cleanupObserver(element);\n }\n }\n }\n /** Clean up the underlying ResizeObserver for the specified element. */\n cleanupObserver(element) {\n if (this.observedElements.has(element)) {\n const {\n observer,\n stream\n } = this.observedElements.get(element);\n if (observer) {\n observer.disconnect();\n }\n stream.complete();\n this.observedElements.delete(element);\n }\n }\n static {\n this.ɵfac = function NzResizeObserver_Factory(t) {\n return new (t || NzResizeObserver)(i0.ɵɵinject(NzResizeObserverFactory));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: NzResizeObserver,\n factory: NzResizeObserver.ɵfac,\n providedIn: 'root'\n });\n }\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzResizeObserver, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [{\n type: NzResizeObserverFactory\n }], null);\n})();\nclass NzResizeObserverDirective {\n subscribe() {\n this.unsubscribe();\n this.currentSubscription = this.nzResizeObserver.observe(this.elementRef).subscribe(this.nzResizeObserve);\n }\n unsubscribe() {\n this.currentSubscription?.unsubscribe();\n }\n constructor(nzResizeObserver, elementRef) {\n this.nzResizeObserver = nzResizeObserver;\n this.elementRef = elementRef;\n this.nzResizeObserve = new EventEmitter();\n this.nzResizeObserverDisabled = false;\n this.currentSubscription = null;\n }\n ngAfterContentInit() {\n if (!this.currentSubscription && !this.nzResizeObserverDisabled) {\n this.subscribe();\n }\n }\n ngOnDestroy() {\n this.unsubscribe();\n }\n ngOnChanges(changes) {\n const {\n nzResizeObserve\n } = changes;\n if (nzResizeObserve) {\n if (this.nzResizeObserverDisabled) {\n this.unsubscribe();\n } else {\n this.subscribe();\n }\n }\n }\n static {\n this.ɵfac = function NzResizeObserverDirective_Factory(t) {\n return new (t || NzResizeObserverDirective)(i0.ɵɵdirectiveInject(NzResizeObserver), i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: NzResizeObserverDirective,\n selectors: [[\"\", \"nzResizeObserver\", \"\"]],\n inputs: {\n nzResizeObserverDisabled: \"nzResizeObserverDisabled\"\n },\n outputs: {\n nzResizeObserve: \"nzResizeObserve\"\n },\n standalone: true,\n features: [i0.ɵɵProvidersFeature([NzResizeObserverFactory]), i0.ɵɵNgOnChangesFeature]\n });\n }\n}\n__decorate([InputBoolean()], NzResizeObserverDirective.prototype, \"nzResizeObserverDisabled\", void 0);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzResizeObserverDirective, [{\n type: Directive,\n args: [{\n selector: '[nzResizeObserver]',\n standalone: true,\n providers: [NzResizeObserverFactory]\n }]\n }], () => [{\n type: NzResizeObserver\n }, {\n type: i0.ElementRef\n }], {\n nzResizeObserve: [{\n type: Output\n }],\n nzResizeObserverDisabled: [{\n type: Input\n }]\n });\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzResizeObserverModule {\n static {\n this.ɵfac = function NzResizeObserverModule_Factory(t) {\n return new (t || NzResizeObserverModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NzResizeObserverModule,\n imports: [NzResizeObserverDirective],\n exports: [NzResizeObserverDirective]\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzResizeObserverModule, [{\n type: NgModule,\n args: [{\n imports: [NzResizeObserverDirective],\n exports: [NzResizeObserverDirective]\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzResizeObserver, NzResizeObserverDirective, NzResizeObserverFactory, NzResizeObserverModule };\n", "import * as i0 from '@angular/core';\nimport { Component, Input, Directive, Optional, Inject, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Output, ViewChild, ContentChildren, Host, Self, InjectionToken, TemplateRef, ContentChild, QueryList, NgModule } from '@angular/core';\nimport * as i1 from 'ng-zorro-antd/core/outlet';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport * as i2 from 'ng-zorro-antd/icon';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { reqAnimFrame } from 'ng-zorro-antd/core/polyfill';\nimport * as i4 from '@angular/cdk/a11y';\nimport { FocusKeyManager, A11yModule } from '@angular/cdk/a11y';\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { hasModifierKey, SPACE, ENTER, DOWN_ARROW, RIGHT_ARROW, UP_ARROW, LEFT_ARROW } from '@angular/cdk/keycodes';\nimport { NgIf, NgForOf, NgTemplateOutlet, NgStyle } from '@angular/common';\nimport { fromEvent, Subscription, animationFrameScheduler, asapScheduler, Subject, of, merge } from 'rxjs';\nimport { takeUntil, auditTime, startWith, first, filter, delay } from 'rxjs/operators';\nimport { NzDropdownMenuComponent, NzDropDownDirective } from 'ng-zorro-antd/dropdown';\nimport * as i3 from 'ng-zorro-antd/menu';\nimport { NzMenuModule } from 'ng-zorro-antd/menu';\nimport * as i1$1 from '@angular/cdk/overlay';\nimport * as i2$1 from 'ng-zorro-antd/cdk/resize-observer';\nimport * as i3$1 from '@angular/cdk/bidi';\nimport { __decorate } from 'tslib';\nimport { InputBoolean, wrapIntoObservable } from 'ng-zorro-antd/core/util';\nimport * as i1$2 from '@angular/router';\nimport { NavigationEnd } from '@angular/router';\nimport * as i1$3 from 'ng-zorro-antd/core/config';\nimport { WithConfig } from 'ng-zorro-antd/core/config';\nimport { PREFIX } from 'ng-zorro-antd/core/logger';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nfunction NzTabAddButtonComponent_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelement(1, \"span\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const icon_r1 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"nzType\", icon_r1);\n }\n}\nfunction NzTabNavOperationComponent_ul_5_li_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const item_r5 = i0.ɵɵnextContext().$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", item_r5.tab.label, \" \");\n }\n}\nconst _c0 = () => ({\n visible: false\n});\nfunction NzTabNavOperationComponent_ul_5_li_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"li\", 8);\n i0.ɵɵlistener(\"click\", function NzTabNavOperationComponent_ul_5_li_1_Template_li_click_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r9);\n const item_r5 = restoredCtx.$implicit;\n const ctx_r8 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r8.onSelect(item_r5));\n })(\"contextmenu\", function NzTabNavOperationComponent_ul_5_li_1_Template_li_contextmenu_0_listener($event) {\n const restoredCtx = i0.ɵɵrestoreView(_r9);\n const item_r5 = restoredCtx.$implicit;\n const ctx_r10 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r10.onContextmenu(item_r5, $event));\n });\n i0.ɵɵtemplate(1, NzTabNavOperationComponent_ul_5_li_1_ng_container_1_Template, 2, 1, \"ng-container\", 9);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const item_r5 = ctx.$implicit;\n i0.ɵɵclassProp(\"ant-tabs-dropdown-menu-item-disabled\", item_r5.disabled);\n i0.ɵɵproperty(\"nzSelected\", item_r5.active)(\"nzDisabled\", item_r5.disabled);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"nzStringTemplateOutlet\", item_r5.tab.label)(\"nzStringTemplateOutletContext\", i0.ɵɵpureFunction0(6, _c0));\n }\n}\nfunction NzTabNavOperationComponent_ul_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"ul\", 6);\n i0.ɵɵtemplate(1, NzTabNavOperationComponent_ul_5_li_1_Template, 2, 7, \"li\", 7);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngForOf\", ctx_r2.items);\n }\n}\nfunction NzTabNavOperationComponent_button_6_Template(rf, ctx) {\n if (rf & 1) {\n const _r12 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 10);\n i0.ɵɵlistener(\"click\", function NzTabNavOperationComponent_button_6_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r12);\n const ctx_r11 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r11.addClicked.emit());\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"addIcon\", ctx_r3.addIcon);\n }\n}\nconst _c1 = () => ({\n minWidth: \"46px\"\n});\nconst _c2 = [\"navWarp\"];\nconst _c3 = [\"navList\"];\nfunction NzTabNavBarComponent_button_5_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 8);\n i0.ɵɵlistener(\"click\", function NzTabNavBarComponent_button_5_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r4 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r4.addClicked.emit());\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"addIcon\", ctx_r2.addIcon);\n i0.ɵɵattribute(\"tabindex\", -1);\n }\n}\nfunction NzTabNavBarComponent_div_8_ng_template_1_Template(rf, ctx) {}\nfunction NzTabNavBarComponent_div_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 9);\n i0.ɵɵtemplate(1, NzTabNavBarComponent_div_8_ng_template_1_Template, 0, 0, \"ng-template\", 10);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.extraTemplate);\n }\n}\nconst _c4 = [\"*\"];\nconst _c5 = [\"nz-tab-body\", \"\"];\nfunction NzTabBodyComponent_ng_container_0_ng_template_1_Template(rf, ctx) {}\nfunction NzTabBodyComponent_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, NzTabBodyComponent_ng_container_0_ng_template_1_Template, 0, 0, \"ng-template\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.content);\n }\n}\nfunction NzTabCloseButtonComponent_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelement(1, \"span\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const icon_r1 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"nzType\", icon_r1);\n }\n}\nconst _c6 = [\"contentTemplate\"];\nfunction NzTabComponent_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojection(0);\n }\n}\nfunction NzTabComponent_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojection(0, 1);\n }\n}\nconst _c7 = [[[\"\", \"nz-tab-link\", \"\"]], \"*\"];\nconst _c8 = [\"[nz-tab-link]\", \"*\"];\nfunction NzTabSetComponent_nz_tabs_nav_0_div_1_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const tab_r3 = i0.ɵɵnextContext().$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate(tab_r3.label);\n }\n}\nfunction NzTabSetComponent_nz_tabs_nav_0_div_1_button_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r10 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 10);\n i0.ɵɵlistener(\"click\", function NzTabSetComponent_nz_tabs_nav_0_div_1_button_3_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const i_r4 = i0.ɵɵnextContext().index;\n const ctx_r8 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r8.onClose(i_r4, $event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tab_r3 = i0.ɵɵnextContext().$implicit;\n i0.ɵɵproperty(\"closeIcon\", tab_r3.nzCloseIcon);\n }\n}\nconst _c9 = () => ({\n visible: true\n});\nfunction NzTabSetComponent_nz_tabs_nav_0_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r13 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 6);\n i0.ɵɵlistener(\"click\", function NzTabSetComponent_nz_tabs_nav_0_div_1_Template_div_click_0_listener($event) {\n const restoredCtx = i0.ɵɵrestoreView(_r13);\n const tab_r3 = restoredCtx.$implicit;\n const i_r4 = restoredCtx.index;\n const ctx_r12 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r12.clickNavItem(tab_r3, i_r4, $event));\n })(\"contextmenu\", function NzTabSetComponent_nz_tabs_nav_0_div_1_Template_div_contextmenu_0_listener($event) {\n const restoredCtx = i0.ɵɵrestoreView(_r13);\n const tab_r3 = restoredCtx.$implicit;\n const ctx_r14 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r14.contextmenuNavItem(tab_r3, $event));\n });\n i0.ɵɵelementStart(1, \"button\", 7);\n i0.ɵɵtemplate(2, NzTabSetComponent_nz_tabs_nav_0_div_1_ng_container_2_Template, 2, 1, \"ng-container\", 8)(3, NzTabSetComponent_nz_tabs_nav_0_div_1_button_3_Template, 1, 1, \"button\", 9);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const tab_r3 = ctx.$implicit;\n const i_r4 = ctx.index;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵstyleProp(\"margin-right\", ctx_r2.position === \"horizontal\" ? ctx_r2.nzTabBarGutter : null, \"px\")(\"margin-bottom\", ctx_r2.position === \"vertical\" ? ctx_r2.nzTabBarGutter : null, \"px\");\n i0.ɵɵclassProp(\"ant-tabs-tab-active\", ctx_r2.nzSelectedIndex === i_r4)(\"ant-tabs-tab-disabled\", tab_r3.nzDisabled);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"id\", ctx_r2.getTabContentId(i_r4))(\"disabled\", tab_r3.nzDisabled)(\"tab\", tab_r3)(\"active\", ctx_r2.nzSelectedIndex === i_r4);\n i0.ɵɵattribute(\"tabIndex\", ctx_r2.getTabIndex(tab_r3, i_r4))(\"aria-disabled\", tab_r3.nzDisabled)(\"aria-selected\", ctx_r2.nzSelectedIndex === i_r4 && !ctx_r2.nzHideAll)(\"aria-controls\", ctx_r2.getTabContentId(i_r4));\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"nzStringTemplateOutlet\", tab_r3.label)(\"nzStringTemplateOutletContext\", i0.ɵɵpureFunction0(19, _c9));\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", tab_r3.nzClosable && ctx_r2.closable && !tab_r3.nzDisabled);\n }\n}\nfunction NzTabSetComponent_nz_tabs_nav_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r16 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"nz-tabs-nav\", 4);\n i0.ɵɵlistener(\"tabScroll\", function NzTabSetComponent_nz_tabs_nav_0_Template_nz_tabs_nav_tabScroll_0_listener($event) {\n i0.ɵɵrestoreView(_r16);\n const ctx_r15 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r15.nzTabListScroll.emit($event));\n })(\"selectFocusedIndex\", function NzTabSetComponent_nz_tabs_nav_0_Template_nz_tabs_nav_selectFocusedIndex_0_listener($event) {\n i0.ɵɵrestoreView(_r16);\n const ctx_r17 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r17.setSelectedIndex($event));\n })(\"addClicked\", function NzTabSetComponent_nz_tabs_nav_0_Template_nz_tabs_nav_addClicked_0_listener() {\n i0.ɵɵrestoreView(_r16);\n const ctx_r18 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r18.onAdd());\n });\n i0.ɵɵtemplate(1, NzTabSetComponent_nz_tabs_nav_0_div_1_Template, 4, 20, \"div\", 5);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngStyle\", ctx_r0.nzTabBarStyle)(\"selectedIndex\", ctx_r0.nzSelectedIndex || 0)(\"inkBarAnimated\", ctx_r0.inkBarAnimated)(\"addable\", ctx_r0.addable)(\"addIcon\", ctx_r0.nzAddIcon)(\"hideBar\", ctx_r0.nzHideAll)(\"position\", ctx_r0.position)(\"extraTemplate\", ctx_r0.nzTabBarExtraContent);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngForOf\", ctx_r0.tabs);\n }\n}\nfunction NzTabSetComponent_div_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 11);\n }\n if (rf & 2) {\n const tab_r19 = ctx.$implicit;\n const i_r20 = ctx.index;\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"id\", ctx_r1.getTabContentId(i_r20))(\"active\", ctx_r1.nzSelectedIndex === i_r20 && !ctx_r1.nzHideAll)(\"content\", tab_r19.content)(\"forceRender\", tab_r19.nzForceRender)(\"tabPaneAnimated\", ctx_r1.tabPaneAnimated);\n i0.ɵɵattribute(\"aria-labelledby\", ctx_r1.getTabContentId(i_r20));\n }\n}\nclass NzTabAddButtonComponent {\n constructor(elementRef) {\n this.elementRef = elementRef;\n this.addIcon = 'plus';\n this.element = this.elementRef.nativeElement;\n }\n getElementWidth() {\n return this.element?.offsetWidth || 0;\n }\n getElementHeight() {\n return this.element?.offsetHeight || 0;\n }\n static {\n this.ɵfac = function NzTabAddButtonComponent_Factory(t) {\n return new (t || NzTabAddButtonComponent)(i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: NzTabAddButtonComponent,\n selectors: [[\"nz-tab-add-button\"], [\"button\", \"nz-tab-add-button\", \"\"]],\n hostAttrs: [\"aria-label\", \"Add tab\", \"type\", \"button\", 1, \"ant-tabs-nav-add\"],\n inputs: {\n addIcon: \"addIcon\"\n },\n standalone: true,\n features: [i0.ɵɵStandaloneFeature],\n decls: 1,\n vars: 1,\n consts: [[4, \"nzStringTemplateOutlet\"], [\"nz-icon\", \"\", \"nzTheme\", \"outline\", 3, \"nzType\"]],\n template: function NzTabAddButtonComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, NzTabAddButtonComponent_ng_container_0_Template, 2, 1, \"ng-container\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"nzStringTemplateOutlet\", ctx.addIcon);\n }\n },\n dependencies: [NzOutletModule, i1.NzStringTemplateOutletDirective, NzIconModule, i2.NzIconDirective],\n encapsulation: 2\n });\n }\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzTabAddButtonComponent, [{\n type: Component,\n args: [{\n selector: 'nz-tab-add-button, button[nz-tab-add-button]',\n template: `\n \n
\n \n