@andersbakken/fisk-scheduler-ui 0.0.56 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/.angular/cache/18.2.21/ui/.tsbuildinfo +1 -1
  2. package/.angular/cache/18.2.21/ui/angular-compiler.db +0 -0
  3. package/.angular/cache/18.2.21/ui/angular-compiler.db-lock +0 -0
  4. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js +201 -0
  5. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js.map +7 -0
  6. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js +85 -0
  7. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js.map +7 -0
  8. package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js +932 -0
  9. package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js.map +7 -0
  10. package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js +134 -0
  11. package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js.map +7 -0
  12. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js +33 -0
  13. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js.map +7 -0
  14. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js +567 -0
  15. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js.map +7 -0
  16. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js +782 -0
  17. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js.map +7 -0
  18. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js +98 -0
  19. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js.map +7 -0
  20. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js +1829 -0
  21. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js.map +7 -0
  22. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js +45 -0
  23. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js.map +7 -0
  24. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js +1014 -0
  25. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js.map +7 -0
  26. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js +2169 -0
  27. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js.map +7 -0
  28. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js +1529 -0
  29. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js.map +7 -0
  30. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js +940 -0
  31. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js.map +7 -0
  32. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js +2962 -0
  33. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js.map +7 -0
  34. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js +84 -0
  35. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js.map +7 -0
  36. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js +4136 -0
  37. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js.map +7 -0
  38. package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js +5700 -0
  39. package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js.map +7 -0
  40. package/.angular/cache/18.2.21/ui/vite/deps/_metadata.json +172 -0
  41. package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js +1222 -0
  42. package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js.map +7 -0
  43. package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js +64 -0
  44. package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js.map +7 -0
  45. package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js +2218 -0
  46. package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js.map +7 -0
  47. package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js +2374 -0
  48. package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js.map +7 -0
  49. package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js +1940 -0
  50. package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js.map +7 -0
  51. package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js +126 -0
  52. package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js.map +7 -0
  53. package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js +5795 -0
  54. package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js.map +7 -0
  55. package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js +512 -0
  56. package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js.map +7 -0
  57. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js +6511 -0
  58. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js.map +7 -0
  59. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js +27918 -0
  60. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js.map +7 -0
  61. package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js +5116 -0
  62. package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js.map +7 -0
  63. package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js +2840 -0
  64. package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js.map +7 -0
  65. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js +379 -0
  66. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js.map +7 -0
  67. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js +1534 -0
  68. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js.map +7 -0
  69. package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js +2925 -0
  70. package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js.map +7 -0
  71. package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js +703 -0
  72. package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js.map +7 -0
  73. package/README.md +16 -0
  74. package/dist/ui/browser/index.html +1 -1
  75. package/dist/ui/browser/main-6SIZHY3G.js +17 -0
  76. package/package.json +3 -1
  77. package/scripts/mock-scheduler.js +350 -0
  78. package/scripts/test-live-model.js +286 -0
  79. package/dist/ui/browser/main-WR7FX6UH.js +0 -16
@@ -0,0 +1,2962 @@
1
+ import {
2
+ SharedResizeObserver
3
+ } from "./chunk-FE6XYTIJ.js";
4
+ import {
5
+ CdkPortal,
6
+ CdkPortalOutlet,
7
+ CdkScrollable,
8
+ TemplatePortal,
9
+ ViewportRuler
10
+ } from "./chunk-57TVY4HY.js";
11
+ import {
12
+ animate,
13
+ state,
14
+ style,
15
+ transition,
16
+ trigger
17
+ } from "./chunk-MFI342ZJ.js";
18
+ import "./chunk-WFLMTRZP.js";
19
+ import {
20
+ CdkMonitorFocus,
21
+ CdkObserveContent,
22
+ Directionality,
23
+ ENTER,
24
+ FocusKeyManager,
25
+ FocusMonitor,
26
+ MAT_RIPPLE_GLOBAL_OPTIONS,
27
+ MatCommonModule,
28
+ MatRipple,
29
+ Platform,
30
+ SPACE,
31
+ hasModifierKey,
32
+ normalizePassiveListenerOptions
33
+ } from "./chunk-ITHJLHIY.js";
34
+ import {
35
+ DOCUMENT
36
+ } from "./chunk-R2N6IWJV.js";
37
+ import {
38
+ ANIMATION_MODULE_TYPE,
39
+ Attribute,
40
+ BehaviorSubject,
41
+ ChangeDetectionStrategy,
42
+ ChangeDetectorRef,
43
+ Component,
44
+ ComponentFactoryResolver$1,
45
+ ContentChild,
46
+ ContentChildren,
47
+ Directive,
48
+ EMPTY,
49
+ ElementRef,
50
+ EventEmitter,
51
+ Inject,
52
+ InjectionToken,
53
+ Injector,
54
+ Input,
55
+ NgModule,
56
+ NgZone,
57
+ Observable,
58
+ Optional,
59
+ Output,
60
+ QueryList,
61
+ Subject,
62
+ Subscription,
63
+ TemplateRef,
64
+ ViewChild,
65
+ ViewContainerRef,
66
+ ViewEncapsulation$1,
67
+ afterNextRender,
68
+ booleanAttribute,
69
+ debounceTime,
70
+ filter,
71
+ forwardRef,
72
+ fromEvent,
73
+ inject,
74
+ merge,
75
+ numberAttribute,
76
+ of,
77
+ setClassMetadata,
78
+ skip,
79
+ startWith,
80
+ switchMap,
81
+ takeUntil,
82
+ timer,
83
+ ɵɵInheritDefinitionFeature,
84
+ ɵɵInputTransformsFeature,
85
+ ɵɵNgOnChangesFeature,
86
+ ɵɵProvidersFeature,
87
+ ɵɵStandaloneFeature,
88
+ ɵɵadvance,
89
+ ɵɵattribute,
90
+ ɵɵclassMap,
91
+ ɵɵclassProp,
92
+ ɵɵconditional,
93
+ ɵɵcontentQuery,
94
+ ɵɵdefineComponent,
95
+ ɵɵdefineDirective,
96
+ ɵɵdefineInjector,
97
+ ɵɵdefineNgModule,
98
+ ɵɵdirectiveInject,
99
+ ɵɵelement,
100
+ ɵɵelementEnd,
101
+ ɵɵelementStart,
102
+ ɵɵgetCurrentView,
103
+ ɵɵinjectAttribute,
104
+ ɵɵlistener,
105
+ ɵɵloadQuery,
106
+ ɵɵnextContext,
107
+ ɵɵprojection,
108
+ ɵɵprojectionDef,
109
+ ɵɵproperty,
110
+ ɵɵpureFunction1,
111
+ ɵɵpureFunction2,
112
+ ɵɵqueryRefresh,
113
+ ɵɵreference,
114
+ ɵɵrepeater,
115
+ ɵɵrepeaterCreate,
116
+ ɵɵrepeaterTrackByIdentity,
117
+ ɵɵresetView,
118
+ ɵɵrestoreView,
119
+ ɵɵstyleProp,
120
+ ɵɵtemplate,
121
+ ɵɵtext,
122
+ ɵɵtextInterpolate,
123
+ ɵɵviewQuery
124
+ } from "./chunk-NSRJEU3V.js";
125
+ import "./chunk-3OV72XIM.js";
126
+
127
+ // node_modules/@angular/material/fesm2022/tabs.mjs
128
+ var _c0 = ["*"];
129
+ function MatTab_ng_template_0_Template(rf, ctx) {
130
+ if (rf & 1) {
131
+ ɵɵprojection(0);
132
+ }
133
+ }
134
+ var _c1 = ["tabListContainer"];
135
+ var _c2 = ["tabList"];
136
+ var _c3 = ["tabListInner"];
137
+ var _c4 = ["nextPaginator"];
138
+ var _c5 = ["previousPaginator"];
139
+ var _c6 = (a0) => ({
140
+ animationDuration: a0
141
+ });
142
+ var _c7 = (a0, a1) => ({
143
+ value: a0,
144
+ params: a1
145
+ });
146
+ function MatTabBody_ng_template_2_Template(rf, ctx) {
147
+ }
148
+ var _c8 = ["tabBodyWrapper"];
149
+ var _c9 = ["tabHeader"];
150
+ function MatTabGroup_For_3_Conditional_6_ng_template_0_Template(rf, ctx) {
151
+ }
152
+ function MatTabGroup_For_3_Conditional_6_Template(rf, ctx) {
153
+ if (rf & 1) {
154
+ ɵɵtemplate(0, MatTabGroup_For_3_Conditional_6_ng_template_0_Template, 0, 0, "ng-template", 12);
155
+ }
156
+ if (rf & 2) {
157
+ const tab_r4 = ɵɵnextContext().$implicit;
158
+ ɵɵproperty("cdkPortalOutlet", tab_r4.templateLabel);
159
+ }
160
+ }
161
+ function MatTabGroup_For_3_Conditional_7_Template(rf, ctx) {
162
+ if (rf & 1) {
163
+ ɵɵtext(0);
164
+ }
165
+ if (rf & 2) {
166
+ const tab_r4 = ɵɵnextContext().$implicit;
167
+ ɵɵtextInterpolate(tab_r4.textLabel);
168
+ }
169
+ }
170
+ function MatTabGroup_For_3_Template(rf, ctx) {
171
+ if (rf & 1) {
172
+ const _r2 = ɵɵgetCurrentView();
173
+ ɵɵelementStart(0, "div", 7, 2);
174
+ ɵɵlistener("click", function MatTabGroup_For_3_Template_div_click_0_listener() {
175
+ const ctx_r2 = ɵɵrestoreView(_r2);
176
+ const tab_r4 = ctx_r2.$implicit;
177
+ const ɵ$index_3_r5 = ctx_r2.$index;
178
+ const ctx_r5 = ɵɵnextContext();
179
+ const tabHeader_r7 = ɵɵreference(1);
180
+ return ɵɵresetView(ctx_r5._handleClick(tab_r4, tabHeader_r7, ɵ$index_3_r5));
181
+ })("cdkFocusChange", function MatTabGroup_For_3_Template_div_cdkFocusChange_0_listener($event) {
182
+ const ɵ$index_3_r5 = ɵɵrestoreView(_r2).$index;
183
+ const ctx_r5 = ɵɵnextContext();
184
+ return ɵɵresetView(ctx_r5._tabFocusChanged($event, ɵ$index_3_r5));
185
+ });
186
+ ɵɵelement(2, "span", 8)(3, "div", 9);
187
+ ɵɵelementStart(4, "span", 10)(5, "span", 11);
188
+ ɵɵtemplate(6, MatTabGroup_For_3_Conditional_6_Template, 1, 1, null, 12)(7, MatTabGroup_For_3_Conditional_7_Template, 1, 1);
189
+ ɵɵelementEnd()()();
190
+ }
191
+ if (rf & 2) {
192
+ const tab_r4 = ctx.$implicit;
193
+ const ɵ$index_3_r5 = ctx.$index;
194
+ const tabNode_r8 = ɵɵreference(1);
195
+ const ctx_r5 = ɵɵnextContext();
196
+ ɵɵclassMap(tab_r4.labelClass);
197
+ ɵɵclassProp("mdc-tab--active", ctx_r5.selectedIndex === ɵ$index_3_r5);
198
+ ɵɵproperty("id", ctx_r5._getTabLabelId(ɵ$index_3_r5))("disabled", tab_r4.disabled)("fitInkBarToContent", ctx_r5.fitInkBarToContent);
199
+ ɵɵattribute("tabIndex", ctx_r5._getTabIndex(ɵ$index_3_r5))("aria-posinset", ɵ$index_3_r5 + 1)("aria-setsize", ctx_r5._tabs.length)("aria-controls", ctx_r5._getTabContentId(ɵ$index_3_r5))("aria-selected", ctx_r5.selectedIndex === ɵ$index_3_r5)("aria-label", tab_r4.ariaLabel || null)("aria-labelledby", !tab_r4.ariaLabel && tab_r4.ariaLabelledby ? tab_r4.ariaLabelledby : null);
200
+ ɵɵadvance(3);
201
+ ɵɵproperty("matRippleTrigger", tabNode_r8)("matRippleDisabled", tab_r4.disabled || ctx_r5.disableRipple);
202
+ ɵɵadvance(3);
203
+ ɵɵconditional(tab_r4.templateLabel ? 6 : 7);
204
+ }
205
+ }
206
+ function MatTabGroup_Conditional_4_Template(rf, ctx) {
207
+ if (rf & 1) {
208
+ ɵɵprojection(0);
209
+ }
210
+ }
211
+ function MatTabGroup_For_8_Template(rf, ctx) {
212
+ if (rf & 1) {
213
+ const _r9 = ɵɵgetCurrentView();
214
+ ɵɵelementStart(0, "mat-tab-body", 13);
215
+ ɵɵlistener("_onCentered", function MatTabGroup_For_8_Template_mat_tab_body__onCentered_0_listener() {
216
+ ɵɵrestoreView(_r9);
217
+ const ctx_r5 = ɵɵnextContext();
218
+ return ɵɵresetView(ctx_r5._removeTabBodyWrapperHeight());
219
+ })("_onCentering", function MatTabGroup_For_8_Template_mat_tab_body__onCentering_0_listener($event) {
220
+ ɵɵrestoreView(_r9);
221
+ const ctx_r5 = ɵɵnextContext();
222
+ return ɵɵresetView(ctx_r5._setTabBodyWrapperHeight($event));
223
+ });
224
+ ɵɵelementEnd();
225
+ }
226
+ if (rf & 2) {
227
+ const tab_r10 = ctx.$implicit;
228
+ const ɵ$index_23_r11 = ctx.$index;
229
+ const ctx_r5 = ɵɵnextContext();
230
+ ɵɵclassMap(tab_r10.bodyClass);
231
+ ɵɵclassProp("mat-mdc-tab-body-active", ctx_r5.selectedIndex === ɵ$index_23_r11);
232
+ ɵɵproperty("id", ctx_r5._getTabContentId(ɵ$index_23_r11))("content", tab_r10.content)("position", tab_r10.position)("origin", tab_r10.origin)("animationDuration", ctx_r5.animationDuration)("preserveContent", ctx_r5.preserveContent);
233
+ ɵɵattribute("tabindex", ctx_r5.contentTabIndex != null && ctx_r5.selectedIndex === ɵ$index_23_r11 ? ctx_r5.contentTabIndex : null)("aria-labelledby", ctx_r5._getTabLabelId(ɵ$index_23_r11))("aria-hidden", ctx_r5.selectedIndex !== ɵ$index_23_r11);
234
+ }
235
+ }
236
+ var _c10 = ["mat-tab-nav-bar", ""];
237
+ var _c11 = ["mat-tab-link", ""];
238
+ var MAT_TAB_CONTENT = new InjectionToken("MatTabContent");
239
+ var MatTabContent = class _MatTabContent {
240
+ constructor(template) {
241
+ this.template = template;
242
+ }
243
+ static {
244
+ this.ɵfac = function MatTabContent_Factory(__ngFactoryType__) {
245
+ return new (__ngFactoryType__ || _MatTabContent)(ɵɵdirectiveInject(TemplateRef));
246
+ };
247
+ }
248
+ static {
249
+ this.ɵdir = ɵɵdefineDirective({
250
+ type: _MatTabContent,
251
+ selectors: [["", "matTabContent", ""]],
252
+ standalone: true,
253
+ features: [ɵɵProvidersFeature([{
254
+ provide: MAT_TAB_CONTENT,
255
+ useExisting: _MatTabContent
256
+ }])]
257
+ });
258
+ }
259
+ };
260
+ (() => {
261
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabContent, [{
262
+ type: Directive,
263
+ args: [{
264
+ selector: "[matTabContent]",
265
+ providers: [{
266
+ provide: MAT_TAB_CONTENT,
267
+ useExisting: MatTabContent
268
+ }],
269
+ standalone: true
270
+ }]
271
+ }], () => [{
272
+ type: TemplateRef
273
+ }], null);
274
+ })();
275
+ var MAT_TAB_LABEL = new InjectionToken("MatTabLabel");
276
+ var MAT_TAB = new InjectionToken("MAT_TAB");
277
+ var MatTabLabel = class _MatTabLabel extends CdkPortal {
278
+ constructor(templateRef, viewContainerRef, _closestTab) {
279
+ super(templateRef, viewContainerRef);
280
+ this._closestTab = _closestTab;
281
+ }
282
+ static {
283
+ this.ɵfac = function MatTabLabel_Factory(__ngFactoryType__) {
284
+ return new (__ngFactoryType__ || _MatTabLabel)(ɵɵdirectiveInject(TemplateRef), ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(MAT_TAB, 8));
285
+ };
286
+ }
287
+ static {
288
+ this.ɵdir = ɵɵdefineDirective({
289
+ type: _MatTabLabel,
290
+ selectors: [["", "mat-tab-label", ""], ["", "matTabLabel", ""]],
291
+ standalone: true,
292
+ features: [ɵɵProvidersFeature([{
293
+ provide: MAT_TAB_LABEL,
294
+ useExisting: _MatTabLabel
295
+ }]), ɵɵInheritDefinitionFeature]
296
+ });
297
+ }
298
+ };
299
+ (() => {
300
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabLabel, [{
301
+ type: Directive,
302
+ args: [{
303
+ selector: "[mat-tab-label], [matTabLabel]",
304
+ providers: [{
305
+ provide: MAT_TAB_LABEL,
306
+ useExisting: MatTabLabel
307
+ }],
308
+ standalone: true
309
+ }]
310
+ }], () => [{
311
+ type: TemplateRef
312
+ }, {
313
+ type: ViewContainerRef
314
+ }, {
315
+ type: void 0,
316
+ decorators: [{
317
+ type: Inject,
318
+ args: [MAT_TAB]
319
+ }, {
320
+ type: Optional
321
+ }]
322
+ }], null);
323
+ })();
324
+ var MAT_TAB_GROUP = new InjectionToken("MAT_TAB_GROUP");
325
+ var MatTab = class _MatTab {
326
+ /** Content for the tab label given by `<ng-template mat-tab-label>`. */
327
+ get templateLabel() {
328
+ return this._templateLabel;
329
+ }
330
+ set templateLabel(value) {
331
+ this._setTemplateLabelInput(value);
332
+ }
333
+ /** @docs-private */
334
+ get content() {
335
+ return this._contentPortal;
336
+ }
337
+ constructor(_viewContainerRef, _closestTabGroup) {
338
+ this._viewContainerRef = _viewContainerRef;
339
+ this._closestTabGroup = _closestTabGroup;
340
+ this.disabled = false;
341
+ this._explicitContent = void 0;
342
+ this.textLabel = "";
343
+ this._contentPortal = null;
344
+ this._stateChanges = new Subject();
345
+ this.position = null;
346
+ this.origin = null;
347
+ this.isActive = false;
348
+ }
349
+ ngOnChanges(changes) {
350
+ if (changes.hasOwnProperty("textLabel") || changes.hasOwnProperty("disabled")) {
351
+ this._stateChanges.next();
352
+ }
353
+ }
354
+ ngOnDestroy() {
355
+ this._stateChanges.complete();
356
+ }
357
+ ngOnInit() {
358
+ this._contentPortal = new TemplatePortal(this._explicitContent || this._implicitContent, this._viewContainerRef);
359
+ }
360
+ /**
361
+ * This has been extracted to a util because of TS 4 and VE.
362
+ * View Engine doesn't support property rename inheritance.
363
+ * TS 4.0 doesn't allow properties to override accessors or vice-versa.
364
+ * @docs-private
365
+ */
366
+ _setTemplateLabelInput(value) {
367
+ if (value && value._closestTab === this) {
368
+ this._templateLabel = value;
369
+ }
370
+ }
371
+ static {
372
+ this.ɵfac = function MatTab_Factory(__ngFactoryType__) {
373
+ return new (__ngFactoryType__ || _MatTab)(ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(MAT_TAB_GROUP, 8));
374
+ };
375
+ }
376
+ static {
377
+ this.ɵcmp = ɵɵdefineComponent({
378
+ type: _MatTab,
379
+ selectors: [["mat-tab"]],
380
+ contentQueries: function MatTab_ContentQueries(rf, ctx, dirIndex) {
381
+ if (rf & 1) {
382
+ ɵɵcontentQuery(dirIndex, MatTabLabel, 5);
383
+ ɵɵcontentQuery(dirIndex, MatTabContent, 7, TemplateRef);
384
+ }
385
+ if (rf & 2) {
386
+ let _t;
387
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.templateLabel = _t.first);
388
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._explicitContent = _t.first);
389
+ }
390
+ },
391
+ viewQuery: function MatTab_Query(rf, ctx) {
392
+ if (rf & 1) {
393
+ ɵɵviewQuery(TemplateRef, 7);
394
+ }
395
+ if (rf & 2) {
396
+ let _t;
397
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._implicitContent = _t.first);
398
+ }
399
+ },
400
+ hostAttrs: ["hidden", ""],
401
+ inputs: {
402
+ disabled: [2, "disabled", "disabled", booleanAttribute],
403
+ textLabel: [0, "label", "textLabel"],
404
+ ariaLabel: [0, "aria-label", "ariaLabel"],
405
+ ariaLabelledby: [0, "aria-labelledby", "ariaLabelledby"],
406
+ labelClass: "labelClass",
407
+ bodyClass: "bodyClass"
408
+ },
409
+ exportAs: ["matTab"],
410
+ standalone: true,
411
+ features: [ɵɵProvidersFeature([{
412
+ provide: MAT_TAB,
413
+ useExisting: _MatTab
414
+ }]), ɵɵInputTransformsFeature, ɵɵNgOnChangesFeature, ɵɵStandaloneFeature],
415
+ ngContentSelectors: _c0,
416
+ decls: 1,
417
+ vars: 0,
418
+ template: function MatTab_Template(rf, ctx) {
419
+ if (rf & 1) {
420
+ ɵɵprojectionDef();
421
+ ɵɵtemplate(0, MatTab_ng_template_0_Template, 1, 0, "ng-template");
422
+ }
423
+ },
424
+ encapsulation: 2
425
+ });
426
+ }
427
+ };
428
+ (() => {
429
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTab, [{
430
+ type: Component,
431
+ args: [{
432
+ selector: "mat-tab",
433
+ changeDetection: ChangeDetectionStrategy.Default,
434
+ encapsulation: ViewEncapsulation$1.None,
435
+ exportAs: "matTab",
436
+ providers: [{
437
+ provide: MAT_TAB,
438
+ useExisting: MatTab
439
+ }],
440
+ standalone: true,
441
+ host: {
442
+ // This element will be rendered on the server in order to support hydration.
443
+ // Hide it so it doesn't cause a layout shift when it's removed on the client.
444
+ "hidden": ""
445
+ },
446
+ template: "<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n tab-group. -->\n<ng-template><ng-content></ng-content></ng-template>\n"
447
+ }]
448
+ }], () => [{
449
+ type: ViewContainerRef
450
+ }, {
451
+ type: void 0,
452
+ decorators: [{
453
+ type: Inject,
454
+ args: [MAT_TAB_GROUP]
455
+ }, {
456
+ type: Optional
457
+ }]
458
+ }], {
459
+ disabled: [{
460
+ type: Input,
461
+ args: [{
462
+ transform: booleanAttribute
463
+ }]
464
+ }],
465
+ templateLabel: [{
466
+ type: ContentChild,
467
+ args: [MatTabLabel]
468
+ }],
469
+ _explicitContent: [{
470
+ type: ContentChild,
471
+ args: [MatTabContent, {
472
+ read: TemplateRef,
473
+ static: true
474
+ }]
475
+ }],
476
+ _implicitContent: [{
477
+ type: ViewChild,
478
+ args: [TemplateRef, {
479
+ static: true
480
+ }]
481
+ }],
482
+ textLabel: [{
483
+ type: Input,
484
+ args: ["label"]
485
+ }],
486
+ ariaLabel: [{
487
+ type: Input,
488
+ args: ["aria-label"]
489
+ }],
490
+ ariaLabelledby: [{
491
+ type: Input,
492
+ args: ["aria-labelledby"]
493
+ }],
494
+ labelClass: [{
495
+ type: Input
496
+ }],
497
+ bodyClass: [{
498
+ type: Input
499
+ }]
500
+ });
501
+ })();
502
+ var ACTIVE_CLASS = "mdc-tab-indicator--active";
503
+ var NO_TRANSITION_CLASS = "mdc-tab-indicator--no-transition";
504
+ var MatInkBar = class {
505
+ constructor(_items) {
506
+ this._items = _items;
507
+ }
508
+ /** Hides the ink bar. */
509
+ hide() {
510
+ this._items.forEach((item) => item.deactivateInkBar());
511
+ }
512
+ /** Aligns the ink bar to a DOM node. */
513
+ alignToElement(element) {
514
+ const correspondingItem = this._items.find((item) => item.elementRef.nativeElement === element);
515
+ const currentItem = this._currentItem;
516
+ if (correspondingItem === currentItem) {
517
+ return;
518
+ }
519
+ currentItem?.deactivateInkBar();
520
+ if (correspondingItem) {
521
+ const domRect = currentItem?.elementRef.nativeElement.getBoundingClientRect?.();
522
+ correspondingItem.activateInkBar(domRect);
523
+ this._currentItem = correspondingItem;
524
+ }
525
+ }
526
+ };
527
+ var InkBarItem = class _InkBarItem {
528
+ constructor() {
529
+ this._elementRef = inject(ElementRef);
530
+ this._fitToContent = false;
531
+ }
532
+ /** Whether the ink bar should fit to the entire tab or just its content. */
533
+ get fitInkBarToContent() {
534
+ return this._fitToContent;
535
+ }
536
+ set fitInkBarToContent(newValue) {
537
+ if (this._fitToContent !== newValue) {
538
+ this._fitToContent = newValue;
539
+ if (this._inkBarElement) {
540
+ this._appendInkBarElement();
541
+ }
542
+ }
543
+ }
544
+ /** Aligns the ink bar to the current item. */
545
+ activateInkBar(previousIndicatorClientRect) {
546
+ const element = this._elementRef.nativeElement;
547
+ if (!previousIndicatorClientRect || !element.getBoundingClientRect || !this._inkBarContentElement) {
548
+ element.classList.add(ACTIVE_CLASS);
549
+ return;
550
+ }
551
+ const currentClientRect = element.getBoundingClientRect();
552
+ const widthDelta = previousIndicatorClientRect.width / currentClientRect.width;
553
+ const xPosition = previousIndicatorClientRect.left - currentClientRect.left;
554
+ element.classList.add(NO_TRANSITION_CLASS);
555
+ this._inkBarContentElement.style.setProperty("transform", `translateX(${xPosition}px) scaleX(${widthDelta})`);
556
+ element.getBoundingClientRect();
557
+ element.classList.remove(NO_TRANSITION_CLASS);
558
+ element.classList.add(ACTIVE_CLASS);
559
+ this._inkBarContentElement.style.setProperty("transform", "");
560
+ }
561
+ /** Removes the ink bar from the current item. */
562
+ deactivateInkBar() {
563
+ this._elementRef.nativeElement.classList.remove(ACTIVE_CLASS);
564
+ }
565
+ /** Initializes the foundation. */
566
+ ngOnInit() {
567
+ this._createInkBarElement();
568
+ }
569
+ /** Destroys the foundation. */
570
+ ngOnDestroy() {
571
+ this._inkBarElement?.remove();
572
+ this._inkBarElement = this._inkBarContentElement = null;
573
+ }
574
+ /** Creates and appends the ink bar element. */
575
+ _createInkBarElement() {
576
+ const documentNode = this._elementRef.nativeElement.ownerDocument || document;
577
+ const inkBarElement = this._inkBarElement = documentNode.createElement("span");
578
+ const inkBarContentElement = this._inkBarContentElement = documentNode.createElement("span");
579
+ inkBarElement.className = "mdc-tab-indicator";
580
+ inkBarContentElement.className = "mdc-tab-indicator__content mdc-tab-indicator__content--underline";
581
+ inkBarElement.appendChild(this._inkBarContentElement);
582
+ this._appendInkBarElement();
583
+ }
584
+ /**
585
+ * Appends the ink bar to the tab host element or content, depending on whether
586
+ * the ink bar should fit to content.
587
+ */
588
+ _appendInkBarElement() {
589
+ if (!this._inkBarElement && (typeof ngDevMode === "undefined" || ngDevMode)) {
590
+ throw Error("Ink bar element has not been created and cannot be appended");
591
+ }
592
+ const parentElement = this._fitToContent ? this._elementRef.nativeElement.querySelector(".mdc-tab__content") : this._elementRef.nativeElement;
593
+ if (!parentElement && (typeof ngDevMode === "undefined" || ngDevMode)) {
594
+ throw Error("Missing element to host the ink bar");
595
+ }
596
+ parentElement.appendChild(this._inkBarElement);
597
+ }
598
+ static {
599
+ this.ɵfac = function InkBarItem_Factory(__ngFactoryType__) {
600
+ return new (__ngFactoryType__ || _InkBarItem)();
601
+ };
602
+ }
603
+ static {
604
+ this.ɵdir = ɵɵdefineDirective({
605
+ type: _InkBarItem,
606
+ inputs: {
607
+ fitInkBarToContent: [2, "fitInkBarToContent", "fitInkBarToContent", booleanAttribute]
608
+ },
609
+ features: [ɵɵInputTransformsFeature]
610
+ });
611
+ }
612
+ };
613
+ (() => {
614
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(InkBarItem, [{
615
+ type: Directive
616
+ }], null, {
617
+ fitInkBarToContent: [{
618
+ type: Input,
619
+ args: [{
620
+ transform: booleanAttribute
621
+ }]
622
+ }]
623
+ });
624
+ })();
625
+ function _MAT_INK_BAR_POSITIONER_FACTORY() {
626
+ const method = (element) => ({
627
+ left: element ? (element.offsetLeft || 0) + "px" : "0",
628
+ width: element ? (element.offsetWidth || 0) + "px" : "0"
629
+ });
630
+ return method;
631
+ }
632
+ var _MAT_INK_BAR_POSITIONER = new InjectionToken("MatInkBarPositioner", {
633
+ providedIn: "root",
634
+ factory: _MAT_INK_BAR_POSITIONER_FACTORY
635
+ });
636
+ var MatTabLabelWrapper = class _MatTabLabelWrapper extends InkBarItem {
637
+ constructor(elementRef) {
638
+ super();
639
+ this.elementRef = elementRef;
640
+ this.disabled = false;
641
+ }
642
+ /** Sets focus on the wrapper element */
643
+ focus() {
644
+ this.elementRef.nativeElement.focus();
645
+ }
646
+ getOffsetLeft() {
647
+ return this.elementRef.nativeElement.offsetLeft;
648
+ }
649
+ getOffsetWidth() {
650
+ return this.elementRef.nativeElement.offsetWidth;
651
+ }
652
+ static {
653
+ this.ɵfac = function MatTabLabelWrapper_Factory(__ngFactoryType__) {
654
+ return new (__ngFactoryType__ || _MatTabLabelWrapper)(ɵɵdirectiveInject(ElementRef));
655
+ };
656
+ }
657
+ static {
658
+ this.ɵdir = ɵɵdefineDirective({
659
+ type: _MatTabLabelWrapper,
660
+ selectors: [["", "matTabLabelWrapper", ""]],
661
+ hostVars: 3,
662
+ hostBindings: function MatTabLabelWrapper_HostBindings(rf, ctx) {
663
+ if (rf & 2) {
664
+ ɵɵattribute("aria-disabled", !!ctx.disabled);
665
+ ɵɵclassProp("mat-mdc-tab-disabled", ctx.disabled);
666
+ }
667
+ },
668
+ inputs: {
669
+ disabled: [2, "disabled", "disabled", booleanAttribute]
670
+ },
671
+ standalone: true,
672
+ features: [ɵɵInputTransformsFeature, ɵɵInheritDefinitionFeature]
673
+ });
674
+ }
675
+ };
676
+ (() => {
677
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabLabelWrapper, [{
678
+ type: Directive,
679
+ args: [{
680
+ selector: "[matTabLabelWrapper]",
681
+ host: {
682
+ "[class.mat-mdc-tab-disabled]": "disabled",
683
+ "[attr.aria-disabled]": "!!disabled"
684
+ },
685
+ standalone: true
686
+ }]
687
+ }], () => [{
688
+ type: ElementRef
689
+ }], {
690
+ disabled: [{
691
+ type: Input,
692
+ args: [{
693
+ transform: booleanAttribute
694
+ }]
695
+ }]
696
+ });
697
+ })();
698
+ var passiveEventListenerOptions = normalizePassiveListenerOptions({
699
+ passive: true
700
+ });
701
+ var HEADER_SCROLL_DELAY = 650;
702
+ var HEADER_SCROLL_INTERVAL = 100;
703
+ var MatPaginatedTabHeader = class _MatPaginatedTabHeader {
704
+ /** The index of the active tab. */
705
+ get selectedIndex() {
706
+ return this._selectedIndex;
707
+ }
708
+ set selectedIndex(v) {
709
+ const value = isNaN(v) ? 0 : v;
710
+ if (this._selectedIndex != value) {
711
+ this._selectedIndexChanged = true;
712
+ this._selectedIndex = value;
713
+ if (this._keyManager) {
714
+ this._keyManager.updateActiveItem(value);
715
+ }
716
+ }
717
+ }
718
+ constructor(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone, _platform, _animationMode) {
719
+ this._elementRef = _elementRef;
720
+ this._changeDetectorRef = _changeDetectorRef;
721
+ this._viewportRuler = _viewportRuler;
722
+ this._dir = _dir;
723
+ this._ngZone = _ngZone;
724
+ this._platform = _platform;
725
+ this._animationMode = _animationMode;
726
+ this._scrollDistance = 0;
727
+ this._selectedIndexChanged = false;
728
+ this._destroyed = new Subject();
729
+ this._showPaginationControls = false;
730
+ this._disableScrollAfter = true;
731
+ this._disableScrollBefore = true;
732
+ this._stopScrolling = new Subject();
733
+ this.disablePagination = false;
734
+ this._selectedIndex = 0;
735
+ this.selectFocusedIndex = new EventEmitter();
736
+ this.indexFocused = new EventEmitter();
737
+ this._sharedResizeObserver = inject(SharedResizeObserver);
738
+ this._injector = inject(Injector);
739
+ _ngZone.runOutsideAngular(() => {
740
+ fromEvent(_elementRef.nativeElement, "mouseleave").pipe(takeUntil(this._destroyed)).subscribe(() => {
741
+ this._stopInterval();
742
+ });
743
+ });
744
+ }
745
+ ngAfterViewInit() {
746
+ fromEvent(this._previousPaginator.nativeElement, "touchstart", passiveEventListenerOptions).pipe(takeUntil(this._destroyed)).subscribe(() => {
747
+ this._handlePaginatorPress("before");
748
+ });
749
+ fromEvent(this._nextPaginator.nativeElement, "touchstart", passiveEventListenerOptions).pipe(takeUntil(this._destroyed)).subscribe(() => {
750
+ this._handlePaginatorPress("after");
751
+ });
752
+ }
753
+ ngAfterContentInit() {
754
+ const dirChange = this._dir ? this._dir.change : of("ltr");
755
+ const resize = this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(debounceTime(32), takeUntil(this._destroyed));
756
+ const viewportResize = this._viewportRuler.change(150).pipe(takeUntil(this._destroyed));
757
+ const realign = () => {
758
+ this.updatePagination();
759
+ this._alignInkBarToSelectedTab();
760
+ };
761
+ this._keyManager = new FocusKeyManager(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(() => false);
762
+ this._keyManager.updateActiveItem(this._selectedIndex);
763
+ afterNextRender(realign, {
764
+ injector: this._injector
765
+ });
766
+ merge(dirChange, viewportResize, resize, this._items.changes, this._itemsResized()).pipe(takeUntil(this._destroyed)).subscribe(() => {
767
+ this._ngZone.run(() => {
768
+ Promise.resolve().then(() => {
769
+ this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), this._scrollDistance));
770
+ realign();
771
+ });
772
+ });
773
+ this._keyManager.withHorizontalOrientation(this._getLayoutDirection());
774
+ });
775
+ this._keyManager.change.subscribe((newFocusIndex) => {
776
+ this.indexFocused.emit(newFocusIndex);
777
+ this._setTabFocus(newFocusIndex);
778
+ });
779
+ }
780
+ /** Sends any changes that could affect the layout of the items. */
781
+ _itemsResized() {
782
+ if (typeof ResizeObserver !== "function") {
783
+ return EMPTY;
784
+ }
785
+ return this._items.changes.pipe(
786
+ startWith(this._items),
787
+ switchMap((tabItems) => new Observable((observer) => this._ngZone.runOutsideAngular(() => {
788
+ const resizeObserver = new ResizeObserver((entries) => observer.next(entries));
789
+ tabItems.forEach((item) => resizeObserver.observe(item.elementRef.nativeElement));
790
+ return () => {
791
+ resizeObserver.disconnect();
792
+ };
793
+ }))),
794
+ // Skip the first emit since the resize observer emits when an item
795
+ // is observed for new items when the tab is already inserted
796
+ skip(1),
797
+ // Skip emissions where all the elements are invisible since we don't want
798
+ // the header to try and re-render with invalid measurements. See #25574.
799
+ filter((entries) => entries.some((e) => e.contentRect.width > 0 && e.contentRect.height > 0))
800
+ );
801
+ }
802
+ ngAfterContentChecked() {
803
+ if (this._tabLabelCount != this._items.length) {
804
+ this.updatePagination();
805
+ this._tabLabelCount = this._items.length;
806
+ this._changeDetectorRef.markForCheck();
807
+ }
808
+ if (this._selectedIndexChanged) {
809
+ this._scrollToLabel(this._selectedIndex);
810
+ this._checkScrollingControls();
811
+ this._alignInkBarToSelectedTab();
812
+ this._selectedIndexChanged = false;
813
+ this._changeDetectorRef.markForCheck();
814
+ }
815
+ if (this._scrollDistanceChanged) {
816
+ this._updateTabScrollPosition();
817
+ this._scrollDistanceChanged = false;
818
+ this._changeDetectorRef.markForCheck();
819
+ }
820
+ }
821
+ ngOnDestroy() {
822
+ this._keyManager?.destroy();
823
+ this._destroyed.next();
824
+ this._destroyed.complete();
825
+ this._stopScrolling.complete();
826
+ }
827
+ /** Handles keyboard events on the header. */
828
+ _handleKeydown(event) {
829
+ if (hasModifierKey(event)) {
830
+ return;
831
+ }
832
+ switch (event.keyCode) {
833
+ case ENTER:
834
+ case SPACE:
835
+ if (this.focusIndex !== this.selectedIndex) {
836
+ const item = this._items.get(this.focusIndex);
837
+ if (item && !item.disabled) {
838
+ this.selectFocusedIndex.emit(this.focusIndex);
839
+ this._itemSelected(event);
840
+ }
841
+ }
842
+ break;
843
+ default:
844
+ this._keyManager.onKeydown(event);
845
+ }
846
+ }
847
+ /**
848
+ * Callback for when the MutationObserver detects that the content has changed.
849
+ */
850
+ _onContentChanges() {
851
+ const textContent = this._elementRef.nativeElement.textContent;
852
+ if (textContent !== this._currentTextContent) {
853
+ this._currentTextContent = textContent || "";
854
+ this._ngZone.run(() => {
855
+ this.updatePagination();
856
+ this._alignInkBarToSelectedTab();
857
+ this._changeDetectorRef.markForCheck();
858
+ });
859
+ }
860
+ }
861
+ /**
862
+ * Updates the view whether pagination should be enabled or not.
863
+ *
864
+ * WARNING: Calling this method can be very costly in terms of performance. It should be called
865
+ * as infrequently as possible from outside of the Tabs component as it causes a reflow of the
866
+ * page.
867
+ */
868
+ updatePagination() {
869
+ this._checkPaginationEnabled();
870
+ this._checkScrollingControls();
871
+ this._updateTabScrollPosition();
872
+ }
873
+ /** Tracks which element has focus; used for keyboard navigation */
874
+ get focusIndex() {
875
+ return this._keyManager ? this._keyManager.activeItemIndex : 0;
876
+ }
877
+ /** When the focus index is set, we must manually send focus to the correct label */
878
+ set focusIndex(value) {
879
+ if (!this._isValidIndex(value) || this.focusIndex === value || !this._keyManager) {
880
+ return;
881
+ }
882
+ this._keyManager.setActiveItem(value);
883
+ }
884
+ /**
885
+ * Determines if an index is valid. If the tabs are not ready yet, we assume that the user is
886
+ * providing a valid index and return true.
887
+ */
888
+ _isValidIndex(index) {
889
+ return this._items ? !!this._items.toArray()[index] : true;
890
+ }
891
+ /**
892
+ * Sets focus on the HTML element for the label wrapper and scrolls it into the view if
893
+ * scrolling is enabled.
894
+ */
895
+ _setTabFocus(tabIndex) {
896
+ if (this._showPaginationControls) {
897
+ this._scrollToLabel(tabIndex);
898
+ }
899
+ if (this._items && this._items.length) {
900
+ this._items.toArray()[tabIndex].focus();
901
+ const containerEl = this._tabListContainer.nativeElement;
902
+ const dir = this._getLayoutDirection();
903
+ if (dir == "ltr") {
904
+ containerEl.scrollLeft = 0;
905
+ } else {
906
+ containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;
907
+ }
908
+ }
909
+ }
910
+ /** The layout direction of the containing app. */
911
+ _getLayoutDirection() {
912
+ return this._dir && this._dir.value === "rtl" ? "rtl" : "ltr";
913
+ }
914
+ /** Performs the CSS transformation on the tab list that will cause the list to scroll. */
915
+ _updateTabScrollPosition() {
916
+ if (this.disablePagination) {
917
+ return;
918
+ }
919
+ const scrollDistance = this.scrollDistance;
920
+ const translateX = this._getLayoutDirection() === "ltr" ? -scrollDistance : scrollDistance;
921
+ this._tabList.nativeElement.style.transform = `translateX(${Math.round(translateX)}px)`;
922
+ if (this._platform.TRIDENT || this._platform.EDGE) {
923
+ this._tabListContainer.nativeElement.scrollLeft = 0;
924
+ }
925
+ }
926
+ /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
927
+ get scrollDistance() {
928
+ return this._scrollDistance;
929
+ }
930
+ set scrollDistance(value) {
931
+ this._scrollTo(value);
932
+ }
933
+ /**
934
+ * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
935
+ * the end of the list, respectively). The distance to scroll is computed to be a third of the
936
+ * length of the tab list view window.
937
+ *
938
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
939
+ * should be called sparingly.
940
+ */
941
+ _scrollHeader(direction) {
942
+ const viewLength = this._tabListContainer.nativeElement.offsetWidth;
943
+ const scrollAmount = (direction == "before" ? -1 : 1) * viewLength / 3;
944
+ return this._scrollTo(this._scrollDistance + scrollAmount);
945
+ }
946
+ /** Handles click events on the pagination arrows. */
947
+ _handlePaginatorClick(direction) {
948
+ this._stopInterval();
949
+ this._scrollHeader(direction);
950
+ }
951
+ /**
952
+ * Moves the tab list such that the desired tab label (marked by index) is moved into view.
953
+ *
954
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
955
+ * should be called sparingly.
956
+ */
957
+ _scrollToLabel(labelIndex) {
958
+ if (this.disablePagination) {
959
+ return;
960
+ }
961
+ const selectedLabel = this._items ? this._items.toArray()[labelIndex] : null;
962
+ if (!selectedLabel) {
963
+ return;
964
+ }
965
+ const viewLength = this._tabListContainer.nativeElement.offsetWidth;
966
+ const {
967
+ offsetLeft,
968
+ offsetWidth
969
+ } = selectedLabel.elementRef.nativeElement;
970
+ let labelBeforePos, labelAfterPos;
971
+ if (this._getLayoutDirection() == "ltr") {
972
+ labelBeforePos = offsetLeft;
973
+ labelAfterPos = labelBeforePos + offsetWidth;
974
+ } else {
975
+ labelAfterPos = this._tabListInner.nativeElement.offsetWidth - offsetLeft;
976
+ labelBeforePos = labelAfterPos - offsetWidth;
977
+ }
978
+ const beforeVisiblePos = this.scrollDistance;
979
+ const afterVisiblePos = this.scrollDistance + viewLength;
980
+ if (labelBeforePos < beforeVisiblePos) {
981
+ this.scrollDistance -= beforeVisiblePos - labelBeforePos;
982
+ } else if (labelAfterPos > afterVisiblePos) {
983
+ this.scrollDistance += Math.min(labelAfterPos - afterVisiblePos, labelBeforePos - beforeVisiblePos);
984
+ }
985
+ }
986
+ /**
987
+ * Evaluate whether the pagination controls should be displayed. If the scroll width of the
988
+ * tab list is wider than the size of the header container, then the pagination controls should
989
+ * be shown.
990
+ *
991
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
992
+ * should be called sparingly.
993
+ */
994
+ _checkPaginationEnabled() {
995
+ if (this.disablePagination) {
996
+ this._showPaginationControls = false;
997
+ } else {
998
+ const scrollWidth = this._tabListInner.nativeElement.scrollWidth;
999
+ const containerWidth = this._elementRef.nativeElement.offsetWidth;
1000
+ const isEnabled = scrollWidth - containerWidth >= 5;
1001
+ if (!isEnabled) {
1002
+ this.scrollDistance = 0;
1003
+ }
1004
+ if (isEnabled !== this._showPaginationControls) {
1005
+ this._showPaginationControls = isEnabled;
1006
+ this._changeDetectorRef.markForCheck();
1007
+ }
1008
+ }
1009
+ }
1010
+ /**
1011
+ * Evaluate whether the before and after controls should be enabled or disabled.
1012
+ * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
1013
+ * before button. If the header is at the end of the list (scroll distance is equal to the
1014
+ * maximum distance we can scroll), then disable the after button.
1015
+ *
1016
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
1017
+ * should be called sparingly.
1018
+ */
1019
+ _checkScrollingControls() {
1020
+ if (this.disablePagination) {
1021
+ this._disableScrollAfter = this._disableScrollBefore = true;
1022
+ } else {
1023
+ this._disableScrollBefore = this.scrollDistance == 0;
1024
+ this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();
1025
+ this._changeDetectorRef.markForCheck();
1026
+ }
1027
+ }
1028
+ /**
1029
+ * Determines what is the maximum length in pixels that can be set for the scroll distance. This
1030
+ * is equal to the difference in width between the tab list container and tab header container.
1031
+ *
1032
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
1033
+ * should be called sparingly.
1034
+ */
1035
+ _getMaxScrollDistance() {
1036
+ const lengthOfTabList = this._tabListInner.nativeElement.scrollWidth;
1037
+ const viewLength = this._tabListContainer.nativeElement.offsetWidth;
1038
+ return lengthOfTabList - viewLength || 0;
1039
+ }
1040
+ /** Tells the ink-bar to align itself to the current label wrapper */
1041
+ _alignInkBarToSelectedTab() {
1042
+ const selectedItem = this._items && this._items.length ? this._items.toArray()[this.selectedIndex] : null;
1043
+ const selectedLabelWrapper = selectedItem ? selectedItem.elementRef.nativeElement : null;
1044
+ if (selectedLabelWrapper) {
1045
+ this._inkBar.alignToElement(selectedLabelWrapper);
1046
+ } else {
1047
+ this._inkBar.hide();
1048
+ }
1049
+ }
1050
+ /** Stops the currently-running paginator interval. */
1051
+ _stopInterval() {
1052
+ this._stopScrolling.next();
1053
+ }
1054
+ /**
1055
+ * Handles the user pressing down on one of the paginators.
1056
+ * Starts scrolling the header after a certain amount of time.
1057
+ * @param direction In which direction the paginator should be scrolled.
1058
+ */
1059
+ _handlePaginatorPress(direction, mouseEvent) {
1060
+ if (mouseEvent && mouseEvent.button != null && mouseEvent.button !== 0) {
1061
+ return;
1062
+ }
1063
+ this._stopInterval();
1064
+ timer(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL).pipe(takeUntil(merge(this._stopScrolling, this._destroyed))).subscribe(() => {
1065
+ const {
1066
+ maxScrollDistance,
1067
+ distance
1068
+ } = this._scrollHeader(direction);
1069
+ if (distance === 0 || distance >= maxScrollDistance) {
1070
+ this._stopInterval();
1071
+ }
1072
+ });
1073
+ }
1074
+ /**
1075
+ * Scrolls the header to a given position.
1076
+ * @param position Position to which to scroll.
1077
+ * @returns Information on the current scroll distance and the maximum.
1078
+ */
1079
+ _scrollTo(position) {
1080
+ if (this.disablePagination) {
1081
+ return {
1082
+ maxScrollDistance: 0,
1083
+ distance: 0
1084
+ };
1085
+ }
1086
+ const maxScrollDistance = this._getMaxScrollDistance();
1087
+ this._scrollDistance = Math.max(0, Math.min(maxScrollDistance, position));
1088
+ this._scrollDistanceChanged = true;
1089
+ this._checkScrollingControls();
1090
+ return {
1091
+ maxScrollDistance,
1092
+ distance: this._scrollDistance
1093
+ };
1094
+ }
1095
+ static {
1096
+ this.ɵfac = function MatPaginatedTabHeader_Factory(__ngFactoryType__) {
1097
+ return new (__ngFactoryType__ || _MatPaginatedTabHeader)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ViewportRuler), ɵɵdirectiveInject(Directionality, 8), ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(Platform), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));
1098
+ };
1099
+ }
1100
+ static {
1101
+ this.ɵdir = ɵɵdefineDirective({
1102
+ type: _MatPaginatedTabHeader,
1103
+ inputs: {
1104
+ disablePagination: [2, "disablePagination", "disablePagination", booleanAttribute],
1105
+ selectedIndex: [2, "selectedIndex", "selectedIndex", numberAttribute]
1106
+ },
1107
+ outputs: {
1108
+ selectFocusedIndex: "selectFocusedIndex",
1109
+ indexFocused: "indexFocused"
1110
+ },
1111
+ features: [ɵɵInputTransformsFeature]
1112
+ });
1113
+ }
1114
+ };
1115
+ (() => {
1116
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatPaginatedTabHeader, [{
1117
+ type: Directive
1118
+ }], () => [{
1119
+ type: ElementRef
1120
+ }, {
1121
+ type: ChangeDetectorRef
1122
+ }, {
1123
+ type: ViewportRuler
1124
+ }, {
1125
+ type: Directionality,
1126
+ decorators: [{
1127
+ type: Optional
1128
+ }]
1129
+ }, {
1130
+ type: NgZone
1131
+ }, {
1132
+ type: Platform
1133
+ }, {
1134
+ type: void 0,
1135
+ decorators: [{
1136
+ type: Optional
1137
+ }, {
1138
+ type: Inject,
1139
+ args: [ANIMATION_MODULE_TYPE]
1140
+ }]
1141
+ }], {
1142
+ disablePagination: [{
1143
+ type: Input,
1144
+ args: [{
1145
+ transform: booleanAttribute
1146
+ }]
1147
+ }],
1148
+ selectedIndex: [{
1149
+ type: Input,
1150
+ args: [{
1151
+ transform: numberAttribute
1152
+ }]
1153
+ }],
1154
+ selectFocusedIndex: [{
1155
+ type: Output
1156
+ }],
1157
+ indexFocused: [{
1158
+ type: Output
1159
+ }]
1160
+ });
1161
+ })();
1162
+ var MatTabHeader = class _MatTabHeader extends MatPaginatedTabHeader {
1163
+ constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {
1164
+ super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
1165
+ this.disableRipple = false;
1166
+ }
1167
+ ngAfterContentInit() {
1168
+ this._inkBar = new MatInkBar(this._items);
1169
+ super.ngAfterContentInit();
1170
+ }
1171
+ _itemSelected(event) {
1172
+ event.preventDefault();
1173
+ }
1174
+ static {
1175
+ this.ɵfac = function MatTabHeader_Factory(__ngFactoryType__) {
1176
+ return new (__ngFactoryType__ || _MatTabHeader)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ViewportRuler), ɵɵdirectiveInject(Directionality, 8), ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(Platform), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));
1177
+ };
1178
+ }
1179
+ static {
1180
+ this.ɵcmp = ɵɵdefineComponent({
1181
+ type: _MatTabHeader,
1182
+ selectors: [["mat-tab-header"]],
1183
+ contentQueries: function MatTabHeader_ContentQueries(rf, ctx, dirIndex) {
1184
+ if (rf & 1) {
1185
+ ɵɵcontentQuery(dirIndex, MatTabLabelWrapper, 4);
1186
+ }
1187
+ if (rf & 2) {
1188
+ let _t;
1189
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._items = _t);
1190
+ }
1191
+ },
1192
+ viewQuery: function MatTabHeader_Query(rf, ctx) {
1193
+ if (rf & 1) {
1194
+ ɵɵviewQuery(_c1, 7);
1195
+ ɵɵviewQuery(_c2, 7);
1196
+ ɵɵviewQuery(_c3, 7);
1197
+ ɵɵviewQuery(_c4, 5);
1198
+ ɵɵviewQuery(_c5, 5);
1199
+ }
1200
+ if (rf & 2) {
1201
+ let _t;
1202
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabListContainer = _t.first);
1203
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabList = _t.first);
1204
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabListInner = _t.first);
1205
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._nextPaginator = _t.first);
1206
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._previousPaginator = _t.first);
1207
+ }
1208
+ },
1209
+ hostAttrs: [1, "mat-mdc-tab-header"],
1210
+ hostVars: 4,
1211
+ hostBindings: function MatTabHeader_HostBindings(rf, ctx) {
1212
+ if (rf & 2) {
1213
+ ɵɵclassProp("mat-mdc-tab-header-pagination-controls-enabled", ctx._showPaginationControls)("mat-mdc-tab-header-rtl", ctx._getLayoutDirection() == "rtl");
1214
+ }
1215
+ },
1216
+ inputs: {
1217
+ ariaLabel: [0, "aria-label", "ariaLabel"],
1218
+ ariaLabelledby: [0, "aria-labelledby", "ariaLabelledby"],
1219
+ disableRipple: [2, "disableRipple", "disableRipple", booleanAttribute]
1220
+ },
1221
+ standalone: true,
1222
+ features: [ɵɵInputTransformsFeature, ɵɵInheritDefinitionFeature, ɵɵStandaloneFeature],
1223
+ ngContentSelectors: _c0,
1224
+ decls: 13,
1225
+ vars: 10,
1226
+ consts: [["previousPaginator", ""], ["tabListContainer", ""], ["tabList", ""], ["tabListInner", ""], ["nextPaginator", ""], ["mat-ripple", "", 1, "mat-mdc-tab-header-pagination", "mat-mdc-tab-header-pagination-before", 3, "click", "mousedown", "touchend", "matRippleDisabled"], [1, "mat-mdc-tab-header-pagination-chevron"], [1, "mat-mdc-tab-label-container", 3, "keydown"], ["role", "tablist", 1, "mat-mdc-tab-list", 3, "cdkObserveContent"], [1, "mat-mdc-tab-labels"], ["mat-ripple", "", 1, "mat-mdc-tab-header-pagination", "mat-mdc-tab-header-pagination-after", 3, "mousedown", "click", "touchend", "matRippleDisabled"]],
1227
+ template: function MatTabHeader_Template(rf, ctx) {
1228
+ if (rf & 1) {
1229
+ const _r1 = ɵɵgetCurrentView();
1230
+ ɵɵprojectionDef();
1231
+ ɵɵelementStart(0, "div", 5, 0);
1232
+ ɵɵlistener("click", function MatTabHeader_Template_div_click_0_listener() {
1233
+ ɵɵrestoreView(_r1);
1234
+ return ɵɵresetView(ctx._handlePaginatorClick("before"));
1235
+ })("mousedown", function MatTabHeader_Template_div_mousedown_0_listener($event) {
1236
+ ɵɵrestoreView(_r1);
1237
+ return ɵɵresetView(ctx._handlePaginatorPress("before", $event));
1238
+ })("touchend", function MatTabHeader_Template_div_touchend_0_listener() {
1239
+ ɵɵrestoreView(_r1);
1240
+ return ɵɵresetView(ctx._stopInterval());
1241
+ });
1242
+ ɵɵelement(2, "div", 6);
1243
+ ɵɵelementEnd();
1244
+ ɵɵelementStart(3, "div", 7, 1);
1245
+ ɵɵlistener("keydown", function MatTabHeader_Template_div_keydown_3_listener($event) {
1246
+ ɵɵrestoreView(_r1);
1247
+ return ɵɵresetView(ctx._handleKeydown($event));
1248
+ });
1249
+ ɵɵelementStart(5, "div", 8, 2);
1250
+ ɵɵlistener("cdkObserveContent", function MatTabHeader_Template_div_cdkObserveContent_5_listener() {
1251
+ ɵɵrestoreView(_r1);
1252
+ return ɵɵresetView(ctx._onContentChanges());
1253
+ });
1254
+ ɵɵelementStart(7, "div", 9, 3);
1255
+ ɵɵprojection(9);
1256
+ ɵɵelementEnd()()();
1257
+ ɵɵelementStart(10, "div", 10, 4);
1258
+ ɵɵlistener("mousedown", function MatTabHeader_Template_div_mousedown_10_listener($event) {
1259
+ ɵɵrestoreView(_r1);
1260
+ return ɵɵresetView(ctx._handlePaginatorPress("after", $event));
1261
+ })("click", function MatTabHeader_Template_div_click_10_listener() {
1262
+ ɵɵrestoreView(_r1);
1263
+ return ɵɵresetView(ctx._handlePaginatorClick("after"));
1264
+ })("touchend", function MatTabHeader_Template_div_touchend_10_listener() {
1265
+ ɵɵrestoreView(_r1);
1266
+ return ɵɵresetView(ctx._stopInterval());
1267
+ });
1268
+ ɵɵelement(12, "div", 6);
1269
+ ɵɵelementEnd();
1270
+ }
1271
+ if (rf & 2) {
1272
+ ɵɵclassProp("mat-mdc-tab-header-pagination-disabled", ctx._disableScrollBefore);
1273
+ ɵɵproperty("matRippleDisabled", ctx._disableScrollBefore || ctx.disableRipple);
1274
+ ɵɵadvance(3);
1275
+ ɵɵclassProp("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
1276
+ ɵɵadvance(2);
1277
+ ɵɵattribute("aria-label", ctx.ariaLabel || null)("aria-labelledby", ctx.ariaLabelledby || null);
1278
+ ɵɵadvance(5);
1279
+ ɵɵclassProp("mat-mdc-tab-header-pagination-disabled", ctx._disableScrollAfter);
1280
+ ɵɵproperty("matRippleDisabled", ctx._disableScrollAfter || ctx.disableRipple);
1281
+ }
1282
+ },
1283
+ dependencies: [MatRipple, CdkObserveContent],
1284
+ styles: [".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],
1285
+ encapsulation: 2
1286
+ });
1287
+ }
1288
+ };
1289
+ (() => {
1290
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabHeader, [{
1291
+ type: Component,
1292
+ args: [{
1293
+ selector: "mat-tab-header",
1294
+ encapsulation: ViewEncapsulation$1.None,
1295
+ changeDetection: ChangeDetectionStrategy.Default,
1296
+ host: {
1297
+ "class": "mat-mdc-tab-header",
1298
+ "[class.mat-mdc-tab-header-pagination-controls-enabled]": "_showPaginationControls",
1299
+ "[class.mat-mdc-tab-header-rtl]": "_getLayoutDirection() == 'rtl'"
1300
+ },
1301
+ standalone: true,
1302
+ imports: [MatRipple, CdkObserveContent],
1303
+ template: `<!--
1304
+ Note that this intentionally uses a \`div\` instead of a \`button\`, because it's not part of
1305
+ the regular tabs flow and is only here to support mouse users. It should also not be focusable.
1306
+ -->
1307
+ <div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-before"
1308
+ #previousPaginator
1309
+ mat-ripple
1310
+ [matRippleDisabled]="_disableScrollBefore || disableRipple"
1311
+ [class.mat-mdc-tab-header-pagination-disabled]="_disableScrollBefore"
1312
+ (click)="_handlePaginatorClick('before')"
1313
+ (mousedown)="_handlePaginatorPress('before', $event)"
1314
+ (touchend)="_stopInterval()">
1315
+ <div class="mat-mdc-tab-header-pagination-chevron"></div>
1316
+ </div>
1317
+
1318
+ <div
1319
+ class="mat-mdc-tab-label-container"
1320
+ #tabListContainer
1321
+ (keydown)="_handleKeydown($event)"
1322
+ [class._mat-animation-noopable]="_animationMode === 'NoopAnimations'">
1323
+ <div
1324
+ #tabList
1325
+ class="mat-mdc-tab-list"
1326
+ role="tablist"
1327
+ [attr.aria-label]="ariaLabel || null"
1328
+ [attr.aria-labelledby]="ariaLabelledby || null"
1329
+ (cdkObserveContent)="_onContentChanges()">
1330
+ <div class="mat-mdc-tab-labels" #tabListInner>
1331
+ <ng-content></ng-content>
1332
+ </div>
1333
+ </div>
1334
+ </div>
1335
+
1336
+ <div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-after"
1337
+ #nextPaginator
1338
+ mat-ripple
1339
+ [matRippleDisabled]="_disableScrollAfter || disableRipple"
1340
+ [class.mat-mdc-tab-header-pagination-disabled]="_disableScrollAfter"
1341
+ (mousedown)="_handlePaginatorPress('after', $event)"
1342
+ (click)="_handlePaginatorClick('after')"
1343
+ (touchend)="_stopInterval()">
1344
+ <div class="mat-mdc-tab-header-pagination-chevron"></div>
1345
+ </div>
1346
+ `,
1347
+ styles: [".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"]
1348
+ }]
1349
+ }], () => [{
1350
+ type: ElementRef
1351
+ }, {
1352
+ type: ChangeDetectorRef
1353
+ }, {
1354
+ type: ViewportRuler
1355
+ }, {
1356
+ type: Directionality,
1357
+ decorators: [{
1358
+ type: Optional
1359
+ }]
1360
+ }, {
1361
+ type: NgZone
1362
+ }, {
1363
+ type: Platform
1364
+ }, {
1365
+ type: void 0,
1366
+ decorators: [{
1367
+ type: Optional
1368
+ }, {
1369
+ type: Inject,
1370
+ args: [ANIMATION_MODULE_TYPE]
1371
+ }]
1372
+ }], {
1373
+ _items: [{
1374
+ type: ContentChildren,
1375
+ args: [MatTabLabelWrapper, {
1376
+ descendants: false
1377
+ }]
1378
+ }],
1379
+ _tabListContainer: [{
1380
+ type: ViewChild,
1381
+ args: ["tabListContainer", {
1382
+ static: true
1383
+ }]
1384
+ }],
1385
+ _tabList: [{
1386
+ type: ViewChild,
1387
+ args: ["tabList", {
1388
+ static: true
1389
+ }]
1390
+ }],
1391
+ _tabListInner: [{
1392
+ type: ViewChild,
1393
+ args: ["tabListInner", {
1394
+ static: true
1395
+ }]
1396
+ }],
1397
+ _nextPaginator: [{
1398
+ type: ViewChild,
1399
+ args: ["nextPaginator"]
1400
+ }],
1401
+ _previousPaginator: [{
1402
+ type: ViewChild,
1403
+ args: ["previousPaginator"]
1404
+ }],
1405
+ ariaLabel: [{
1406
+ type: Input,
1407
+ args: ["aria-label"]
1408
+ }],
1409
+ ariaLabelledby: [{
1410
+ type: Input,
1411
+ args: ["aria-labelledby"]
1412
+ }],
1413
+ disableRipple: [{
1414
+ type: Input,
1415
+ args: [{
1416
+ transform: booleanAttribute
1417
+ }]
1418
+ }]
1419
+ });
1420
+ })();
1421
+ var MAT_TABS_CONFIG = new InjectionToken("MAT_TABS_CONFIG");
1422
+ var matTabsAnimations = {
1423
+ /** Animation translates a tab along the X axis. */
1424
+ translateTab: trigger("translateTab", [
1425
+ // Transitions to `none` instead of 0, because some browsers might blur the content.
1426
+ state("center, void, left-origin-center, right-origin-center", style({
1427
+ transform: "none",
1428
+ visibility: "visible"
1429
+ })),
1430
+ // If the tab is either on the left or right, we additionally add a `min-height` of 1px
1431
+ // in order to ensure that the element has a height before its state changes. This is
1432
+ // necessary because Chrome does seem to skip the transition in RTL mode if the element does
1433
+ // not have a static height and is not rendered. See related issue: #9465
1434
+ state("left", style({
1435
+ transform: "translate3d(-100%, 0, 0)",
1436
+ minHeight: "1px",
1437
+ // Normally this is redundant since we detach the content from the DOM, but if the user
1438
+ // opted into keeping the content in the DOM, we have to hide it so it isn't focusable.
1439
+ visibility: "hidden"
1440
+ })),
1441
+ state("right", style({
1442
+ transform: "translate3d(100%, 0, 0)",
1443
+ minHeight: "1px",
1444
+ visibility: "hidden"
1445
+ })),
1446
+ transition("* => left, * => right, left => center, right => center", animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),
1447
+ transition("void => left-origin-center", [style({
1448
+ transform: "translate3d(-100%, 0, 0)",
1449
+ visibility: "hidden"
1450
+ }), animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),
1451
+ transition("void => right-origin-center", [style({
1452
+ transform: "translate3d(100%, 0, 0)",
1453
+ visibility: "hidden"
1454
+ }), animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])
1455
+ ])
1456
+ };
1457
+ var MatTabBodyPortal = class _MatTabBodyPortal extends CdkPortalOutlet {
1458
+ constructor(componentFactoryResolver, viewContainerRef, _host, _document) {
1459
+ super(componentFactoryResolver, viewContainerRef, _document);
1460
+ this._host = _host;
1461
+ this._centeringSub = Subscription.EMPTY;
1462
+ this._leavingSub = Subscription.EMPTY;
1463
+ }
1464
+ /** Set initial visibility or set up subscription for changing visibility. */
1465
+ ngOnInit() {
1466
+ super.ngOnInit();
1467
+ this._centeringSub = this._host._beforeCentering.pipe(startWith(this._host._isCenterPosition(this._host._position))).subscribe((isCentering) => {
1468
+ if (this._host._content && isCentering && !this.hasAttached()) {
1469
+ this.attach(this._host._content);
1470
+ }
1471
+ });
1472
+ this._leavingSub = this._host._afterLeavingCenter.subscribe(() => {
1473
+ if (!this._host.preserveContent) {
1474
+ this.detach();
1475
+ }
1476
+ });
1477
+ }
1478
+ /** Clean up centering subscription. */
1479
+ ngOnDestroy() {
1480
+ super.ngOnDestroy();
1481
+ this._centeringSub.unsubscribe();
1482
+ this._leavingSub.unsubscribe();
1483
+ }
1484
+ static {
1485
+ this.ɵfac = function MatTabBodyPortal_Factory(__ngFactoryType__) {
1486
+ return new (__ngFactoryType__ || _MatTabBodyPortal)(ɵɵdirectiveInject(ComponentFactoryResolver$1), ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(forwardRef(() => MatTabBody)), ɵɵdirectiveInject(DOCUMENT));
1487
+ };
1488
+ }
1489
+ static {
1490
+ this.ɵdir = ɵɵdefineDirective({
1491
+ type: _MatTabBodyPortal,
1492
+ selectors: [["", "matTabBodyHost", ""]],
1493
+ standalone: true,
1494
+ features: [ɵɵInheritDefinitionFeature]
1495
+ });
1496
+ }
1497
+ };
1498
+ (() => {
1499
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabBodyPortal, [{
1500
+ type: Directive,
1501
+ args: [{
1502
+ selector: "[matTabBodyHost]",
1503
+ standalone: true
1504
+ }]
1505
+ }], () => [{
1506
+ type: ComponentFactoryResolver$1
1507
+ }, {
1508
+ type: ViewContainerRef
1509
+ }, {
1510
+ type: MatTabBody,
1511
+ decorators: [{
1512
+ type: Inject,
1513
+ args: [forwardRef(() => MatTabBody)]
1514
+ }]
1515
+ }, {
1516
+ type: void 0,
1517
+ decorators: [{
1518
+ type: Inject,
1519
+ args: [DOCUMENT]
1520
+ }]
1521
+ }], null);
1522
+ })();
1523
+ var MatTabBody = class _MatTabBody {
1524
+ /** The shifted index position of the tab body, where zero represents the active center tab. */
1525
+ set position(position) {
1526
+ this._positionIndex = position;
1527
+ this._computePositionAnimationState();
1528
+ }
1529
+ constructor(_elementRef, _dir, changeDetectorRef) {
1530
+ this._elementRef = _elementRef;
1531
+ this._dir = _dir;
1532
+ this._dirChangeSubscription = Subscription.EMPTY;
1533
+ this._translateTabComplete = new Subject();
1534
+ this._onCentering = new EventEmitter();
1535
+ this._beforeCentering = new EventEmitter();
1536
+ this._afterLeavingCenter = new EventEmitter();
1537
+ this._onCentered = new EventEmitter(true);
1538
+ this.animationDuration = "500ms";
1539
+ this.preserveContent = false;
1540
+ if (_dir) {
1541
+ this._dirChangeSubscription = _dir.change.subscribe((dir) => {
1542
+ this._computePositionAnimationState(dir);
1543
+ changeDetectorRef.markForCheck();
1544
+ });
1545
+ }
1546
+ this._translateTabComplete.subscribe((event) => {
1547
+ if (this._isCenterPosition(event.toState) && this._isCenterPosition(this._position)) {
1548
+ this._onCentered.emit();
1549
+ }
1550
+ if (this._isCenterPosition(event.fromState) && !this._isCenterPosition(this._position)) {
1551
+ this._afterLeavingCenter.emit();
1552
+ }
1553
+ });
1554
+ }
1555
+ /**
1556
+ * After initialized, check if the content is centered and has an origin. If so, set the
1557
+ * special position states that transition the tab from the left or right before centering.
1558
+ */
1559
+ ngOnInit() {
1560
+ if (this._position == "center" && this.origin != null) {
1561
+ this._position = this._computePositionFromOrigin(this.origin);
1562
+ }
1563
+ }
1564
+ ngOnDestroy() {
1565
+ this._dirChangeSubscription.unsubscribe();
1566
+ this._translateTabComplete.complete();
1567
+ }
1568
+ _onTranslateTabStarted(event) {
1569
+ const isCentering = this._isCenterPosition(event.toState);
1570
+ this._beforeCentering.emit(isCentering);
1571
+ if (isCentering) {
1572
+ this._onCentering.emit(this._elementRef.nativeElement.clientHeight);
1573
+ }
1574
+ }
1575
+ /** The text direction of the containing app. */
1576
+ _getLayoutDirection() {
1577
+ return this._dir && this._dir.value === "rtl" ? "rtl" : "ltr";
1578
+ }
1579
+ /** Whether the provided position state is considered center, regardless of origin. */
1580
+ _isCenterPosition(position) {
1581
+ return position == "center" || position == "left-origin-center" || position == "right-origin-center";
1582
+ }
1583
+ /** Computes the position state that will be used for the tab-body animation trigger. */
1584
+ _computePositionAnimationState(dir = this._getLayoutDirection()) {
1585
+ if (this._positionIndex < 0) {
1586
+ this._position = dir == "ltr" ? "left" : "right";
1587
+ } else if (this._positionIndex > 0) {
1588
+ this._position = dir == "ltr" ? "right" : "left";
1589
+ } else {
1590
+ this._position = "center";
1591
+ }
1592
+ }
1593
+ /**
1594
+ * Computes the position state based on the specified origin position. This is used if the
1595
+ * tab is becoming visible immediately after creation.
1596
+ */
1597
+ _computePositionFromOrigin(origin) {
1598
+ const dir = this._getLayoutDirection();
1599
+ if (dir == "ltr" && origin <= 0 || dir == "rtl" && origin > 0) {
1600
+ return "left-origin-center";
1601
+ }
1602
+ return "right-origin-center";
1603
+ }
1604
+ static {
1605
+ this.ɵfac = function MatTabBody_Factory(__ngFactoryType__) {
1606
+ return new (__ngFactoryType__ || _MatTabBody)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Directionality, 8), ɵɵdirectiveInject(ChangeDetectorRef));
1607
+ };
1608
+ }
1609
+ static {
1610
+ this.ɵcmp = ɵɵdefineComponent({
1611
+ type: _MatTabBody,
1612
+ selectors: [["mat-tab-body"]],
1613
+ viewQuery: function MatTabBody_Query(rf, ctx) {
1614
+ if (rf & 1) {
1615
+ ɵɵviewQuery(CdkPortalOutlet, 5);
1616
+ }
1617
+ if (rf & 2) {
1618
+ let _t;
1619
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._portalHost = _t.first);
1620
+ }
1621
+ },
1622
+ hostAttrs: [1, "mat-mdc-tab-body"],
1623
+ inputs: {
1624
+ _content: [0, "content", "_content"],
1625
+ origin: "origin",
1626
+ animationDuration: "animationDuration",
1627
+ preserveContent: "preserveContent",
1628
+ position: "position"
1629
+ },
1630
+ outputs: {
1631
+ _onCentering: "_onCentering",
1632
+ _beforeCentering: "_beforeCentering",
1633
+ _afterLeavingCenter: "_afterLeavingCenter",
1634
+ _onCentered: "_onCentered"
1635
+ },
1636
+ standalone: true,
1637
+ features: [ɵɵStandaloneFeature],
1638
+ decls: 3,
1639
+ vars: 6,
1640
+ consts: [["content", ""], ["cdkScrollable", "", 1, "mat-mdc-tab-body-content"], ["matTabBodyHost", ""]],
1641
+ template: function MatTabBody_Template(rf, ctx) {
1642
+ if (rf & 1) {
1643
+ const _r1 = ɵɵgetCurrentView();
1644
+ ɵɵelementStart(0, "div", 1, 0);
1645
+ ɵɵlistener("@translateTab.start", function MatTabBody_Template_div_animation_translateTab_start_0_listener($event) {
1646
+ ɵɵrestoreView(_r1);
1647
+ return ɵɵresetView(ctx._onTranslateTabStarted($event));
1648
+ })("@translateTab.done", function MatTabBody_Template_div_animation_translateTab_done_0_listener($event) {
1649
+ ɵɵrestoreView(_r1);
1650
+ return ɵɵresetView(ctx._translateTabComplete.next($event));
1651
+ });
1652
+ ɵɵtemplate(2, MatTabBody_ng_template_2_Template, 0, 0, "ng-template", 2);
1653
+ ɵɵelementEnd();
1654
+ }
1655
+ if (rf & 2) {
1656
+ ɵɵproperty("@translateTab", ɵɵpureFunction2(3, _c7, ctx._position, ɵɵpureFunction1(1, _c6, ctx.animationDuration)));
1657
+ }
1658
+ },
1659
+ dependencies: [MatTabBodyPortal, CdkScrollable],
1660
+ styles: ['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],
1661
+ encapsulation: 2,
1662
+ data: {
1663
+ animation: [matTabsAnimations.translateTab]
1664
+ }
1665
+ });
1666
+ }
1667
+ };
1668
+ (() => {
1669
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabBody, [{
1670
+ type: Component,
1671
+ args: [{
1672
+ selector: "mat-tab-body",
1673
+ encapsulation: ViewEncapsulation$1.None,
1674
+ changeDetection: ChangeDetectionStrategy.Default,
1675
+ animations: [matTabsAnimations.translateTab],
1676
+ host: {
1677
+ "class": "mat-mdc-tab-body"
1678
+ },
1679
+ standalone: true,
1680
+ imports: [MatTabBodyPortal, CdkScrollable],
1681
+ template: '<div class="mat-mdc-tab-body-content" #content\n [@translateTab]="{\n value: _position,\n params: {animationDuration: animationDuration}\n }"\n (@translateTab.start)="_onTranslateTabStarted($event)"\n (@translateTab.done)="_translateTabComplete.next($event)"\n cdkScrollable>\n <ng-template matTabBodyHost></ng-template>\n</div>\n',
1682
+ styles: ['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}']
1683
+ }]
1684
+ }], () => [{
1685
+ type: ElementRef
1686
+ }, {
1687
+ type: Directionality,
1688
+ decorators: [{
1689
+ type: Optional
1690
+ }]
1691
+ }, {
1692
+ type: ChangeDetectorRef
1693
+ }], {
1694
+ _onCentering: [{
1695
+ type: Output
1696
+ }],
1697
+ _beforeCentering: [{
1698
+ type: Output
1699
+ }],
1700
+ _afterLeavingCenter: [{
1701
+ type: Output
1702
+ }],
1703
+ _onCentered: [{
1704
+ type: Output
1705
+ }],
1706
+ _portalHost: [{
1707
+ type: ViewChild,
1708
+ args: [CdkPortalOutlet]
1709
+ }],
1710
+ _content: [{
1711
+ type: Input,
1712
+ args: ["content"]
1713
+ }],
1714
+ origin: [{
1715
+ type: Input
1716
+ }],
1717
+ animationDuration: [{
1718
+ type: Input
1719
+ }],
1720
+ preserveContent: [{
1721
+ type: Input
1722
+ }],
1723
+ position: [{
1724
+ type: Input
1725
+ }]
1726
+ });
1727
+ })();
1728
+ var nextId = 0;
1729
+ var ENABLE_BACKGROUND_INPUT = true;
1730
+ var MatTabGroup = class _MatTabGroup {
1731
+ /** Whether the ink bar should fit its width to the size of the tab label content. */
1732
+ get fitInkBarToContent() {
1733
+ return this._fitInkBarToContent;
1734
+ }
1735
+ set fitInkBarToContent(value) {
1736
+ this._fitInkBarToContent = value;
1737
+ this._changeDetectorRef.markForCheck();
1738
+ }
1739
+ /** The index of the active tab. */
1740
+ get selectedIndex() {
1741
+ return this._selectedIndex;
1742
+ }
1743
+ set selectedIndex(value) {
1744
+ this._indexToSelect = isNaN(value) ? null : value;
1745
+ }
1746
+ /** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */
1747
+ get animationDuration() {
1748
+ return this._animationDuration;
1749
+ }
1750
+ set animationDuration(value) {
1751
+ const stringValue = value + "";
1752
+ this._animationDuration = /^\d+$/.test(stringValue) ? value + "ms" : stringValue;
1753
+ }
1754
+ /**
1755
+ * `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved
1756
+ * accessibility when the tab does not have focusable elements or if it has scrollable content.
1757
+ * The `tabindex` will be removed automatically for inactive tabs.
1758
+ * Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html
1759
+ */
1760
+ get contentTabIndex() {
1761
+ return this._contentTabIndex;
1762
+ }
1763
+ set contentTabIndex(value) {
1764
+ this._contentTabIndex = isNaN(value) ? null : value;
1765
+ }
1766
+ /**
1767
+ * Theme color of the background of the tab group. This API is supported in M2 themes only, it
1768
+ * has no effect in M3 themes.
1769
+ *
1770
+ * For information on applying color variants in M3, see
1771
+ * https://material.angular.io/guide/theming#using-component-color-variants.
1772
+ *
1773
+ * @deprecated The background color should be customized through Sass theming APIs.
1774
+ * @breaking-change 20.0.0 Remove this input
1775
+ */
1776
+ get backgroundColor() {
1777
+ return this._backgroundColor;
1778
+ }
1779
+ set backgroundColor(value) {
1780
+ if (!ENABLE_BACKGROUND_INPUT) {
1781
+ throw new Error(`mat-tab-group background color must be set through the Sass theming API`);
1782
+ }
1783
+ const classList = this._elementRef.nativeElement.classList;
1784
+ classList.remove("mat-tabs-with-background", `mat-background-${this.backgroundColor}`);
1785
+ if (value) {
1786
+ classList.add("mat-tabs-with-background", `mat-background-${value}`);
1787
+ }
1788
+ this._backgroundColor = value;
1789
+ }
1790
+ constructor(_elementRef, _changeDetectorRef, defaultConfig, _animationMode) {
1791
+ this._elementRef = _elementRef;
1792
+ this._changeDetectorRef = _changeDetectorRef;
1793
+ this._animationMode = _animationMode;
1794
+ this._tabs = new QueryList();
1795
+ this._indexToSelect = 0;
1796
+ this._lastFocusedTabIndex = null;
1797
+ this._tabBodyWrapperHeight = 0;
1798
+ this._tabsSubscription = Subscription.EMPTY;
1799
+ this._tabLabelSubscription = Subscription.EMPTY;
1800
+ this._fitInkBarToContent = false;
1801
+ this.stretchTabs = true;
1802
+ this.dynamicHeight = false;
1803
+ this._selectedIndex = null;
1804
+ this.headerPosition = "above";
1805
+ this.disablePagination = false;
1806
+ this.disableRipple = false;
1807
+ this.preserveContent = false;
1808
+ this.selectedIndexChange = new EventEmitter();
1809
+ this.focusChange = new EventEmitter();
1810
+ this.animationDone = new EventEmitter();
1811
+ this.selectedTabChange = new EventEmitter(true);
1812
+ this._isServer = !inject(Platform).isBrowser;
1813
+ this._groupId = nextId++;
1814
+ this.animationDuration = defaultConfig && defaultConfig.animationDuration ? defaultConfig.animationDuration : "500ms";
1815
+ this.disablePagination = defaultConfig && defaultConfig.disablePagination != null ? defaultConfig.disablePagination : false;
1816
+ this.dynamicHeight = defaultConfig && defaultConfig.dynamicHeight != null ? defaultConfig.dynamicHeight : false;
1817
+ if (defaultConfig?.contentTabIndex != null) {
1818
+ this.contentTabIndex = defaultConfig.contentTabIndex;
1819
+ }
1820
+ this.preserveContent = !!defaultConfig?.preserveContent;
1821
+ this.fitInkBarToContent = defaultConfig && defaultConfig.fitInkBarToContent != null ? defaultConfig.fitInkBarToContent : false;
1822
+ this.stretchTabs = defaultConfig && defaultConfig.stretchTabs != null ? defaultConfig.stretchTabs : true;
1823
+ }
1824
+ /**
1825
+ * After the content is checked, this component knows what tabs have been defined
1826
+ * and what the selected index should be. This is where we can know exactly what position
1827
+ * each tab should be in according to the new selected index, and additionally we know how
1828
+ * a new selected tab should transition in (from the left or right).
1829
+ */
1830
+ ngAfterContentChecked() {
1831
+ const indexToSelect = this._indexToSelect = this._clampTabIndex(this._indexToSelect);
1832
+ if (this._selectedIndex != indexToSelect) {
1833
+ const isFirstRun = this._selectedIndex == null;
1834
+ if (!isFirstRun) {
1835
+ this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));
1836
+ const wrapper = this._tabBodyWrapper.nativeElement;
1837
+ wrapper.style.minHeight = wrapper.clientHeight + "px";
1838
+ }
1839
+ Promise.resolve().then(() => {
1840
+ this._tabs.forEach((tab, index) => tab.isActive = index === indexToSelect);
1841
+ if (!isFirstRun) {
1842
+ this.selectedIndexChange.emit(indexToSelect);
1843
+ this._tabBodyWrapper.nativeElement.style.minHeight = "";
1844
+ }
1845
+ });
1846
+ }
1847
+ this._tabs.forEach((tab, index) => {
1848
+ tab.position = index - indexToSelect;
1849
+ if (this._selectedIndex != null && tab.position == 0 && !tab.origin) {
1850
+ tab.origin = indexToSelect - this._selectedIndex;
1851
+ }
1852
+ });
1853
+ if (this._selectedIndex !== indexToSelect) {
1854
+ this._selectedIndex = indexToSelect;
1855
+ this._lastFocusedTabIndex = null;
1856
+ this._changeDetectorRef.markForCheck();
1857
+ }
1858
+ }
1859
+ ngAfterContentInit() {
1860
+ this._subscribeToAllTabChanges();
1861
+ this._subscribeToTabLabels();
1862
+ this._tabsSubscription = this._tabs.changes.subscribe(() => {
1863
+ const indexToSelect = this._clampTabIndex(this._indexToSelect);
1864
+ if (indexToSelect === this._selectedIndex) {
1865
+ const tabs = this._tabs.toArray();
1866
+ let selectedTab;
1867
+ for (let i = 0; i < tabs.length; i++) {
1868
+ if (tabs[i].isActive) {
1869
+ this._indexToSelect = this._selectedIndex = i;
1870
+ this._lastFocusedTabIndex = null;
1871
+ selectedTab = tabs[i];
1872
+ break;
1873
+ }
1874
+ }
1875
+ if (!selectedTab && tabs[indexToSelect]) {
1876
+ Promise.resolve().then(() => {
1877
+ tabs[indexToSelect].isActive = true;
1878
+ this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));
1879
+ });
1880
+ }
1881
+ }
1882
+ this._changeDetectorRef.markForCheck();
1883
+ });
1884
+ }
1885
+ /** Listens to changes in all of the tabs. */
1886
+ _subscribeToAllTabChanges() {
1887
+ this._allTabs.changes.pipe(startWith(this._allTabs)).subscribe((tabs) => {
1888
+ this._tabs.reset(tabs.filter((tab) => {
1889
+ return tab._closestTabGroup === this || !tab._closestTabGroup;
1890
+ }));
1891
+ this._tabs.notifyOnChanges();
1892
+ });
1893
+ }
1894
+ ngOnDestroy() {
1895
+ this._tabs.destroy();
1896
+ this._tabsSubscription.unsubscribe();
1897
+ this._tabLabelSubscription.unsubscribe();
1898
+ }
1899
+ /** Re-aligns the ink bar to the selected tab element. */
1900
+ realignInkBar() {
1901
+ if (this._tabHeader) {
1902
+ this._tabHeader._alignInkBarToSelectedTab();
1903
+ }
1904
+ }
1905
+ /**
1906
+ * Recalculates the tab group's pagination dimensions.
1907
+ *
1908
+ * WARNING: Calling this method can be very costly in terms of performance. It should be called
1909
+ * as infrequently as possible from outside of the Tabs component as it causes a reflow of the
1910
+ * page.
1911
+ */
1912
+ updatePagination() {
1913
+ if (this._tabHeader) {
1914
+ this._tabHeader.updatePagination();
1915
+ }
1916
+ }
1917
+ /**
1918
+ * Sets focus to a particular tab.
1919
+ * @param index Index of the tab to be focused.
1920
+ */
1921
+ focusTab(index) {
1922
+ const header = this._tabHeader;
1923
+ if (header) {
1924
+ header.focusIndex = index;
1925
+ }
1926
+ }
1927
+ _focusChanged(index) {
1928
+ this._lastFocusedTabIndex = index;
1929
+ this.focusChange.emit(this._createChangeEvent(index));
1930
+ }
1931
+ _createChangeEvent(index) {
1932
+ const event = new MatTabChangeEvent();
1933
+ event.index = index;
1934
+ if (this._tabs && this._tabs.length) {
1935
+ event.tab = this._tabs.toArray()[index];
1936
+ }
1937
+ return event;
1938
+ }
1939
+ /**
1940
+ * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
1941
+ * on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the
1942
+ * binding to be updated, we need to subscribe to changes in it and trigger change detection
1943
+ * manually.
1944
+ */
1945
+ _subscribeToTabLabels() {
1946
+ if (this._tabLabelSubscription) {
1947
+ this._tabLabelSubscription.unsubscribe();
1948
+ }
1949
+ this._tabLabelSubscription = merge(...this._tabs.map((tab) => tab._stateChanges)).subscribe(() => this._changeDetectorRef.markForCheck());
1950
+ }
1951
+ /** Clamps the given index to the bounds of 0 and the tabs length. */
1952
+ _clampTabIndex(index) {
1953
+ return Math.min(this._tabs.length - 1, Math.max(index || 0, 0));
1954
+ }
1955
+ /** Returns a unique id for each tab label element */
1956
+ _getTabLabelId(i) {
1957
+ return `mat-tab-label-${this._groupId}-${i}`;
1958
+ }
1959
+ /** Returns a unique id for each tab content element */
1960
+ _getTabContentId(i) {
1961
+ return `mat-tab-content-${this._groupId}-${i}`;
1962
+ }
1963
+ /**
1964
+ * Sets the height of the body wrapper to the height of the activating tab if dynamic
1965
+ * height property is true.
1966
+ */
1967
+ _setTabBodyWrapperHeight(tabHeight) {
1968
+ if (!this.dynamicHeight || !this._tabBodyWrapperHeight) {
1969
+ return;
1970
+ }
1971
+ const wrapper = this._tabBodyWrapper.nativeElement;
1972
+ wrapper.style.height = this._tabBodyWrapperHeight + "px";
1973
+ if (this._tabBodyWrapper.nativeElement.offsetHeight) {
1974
+ wrapper.style.height = tabHeight + "px";
1975
+ }
1976
+ }
1977
+ /** Removes the height of the tab body wrapper. */
1978
+ _removeTabBodyWrapperHeight() {
1979
+ const wrapper = this._tabBodyWrapper.nativeElement;
1980
+ this._tabBodyWrapperHeight = wrapper.clientHeight;
1981
+ wrapper.style.height = "";
1982
+ this.animationDone.emit();
1983
+ }
1984
+ /** Handle click events, setting new selected index if appropriate. */
1985
+ _handleClick(tab, tabHeader, index) {
1986
+ tabHeader.focusIndex = index;
1987
+ if (!tab.disabled) {
1988
+ this.selectedIndex = index;
1989
+ }
1990
+ }
1991
+ /** Retrieves the tabindex for the tab. */
1992
+ _getTabIndex(index) {
1993
+ const targetIndex = this._lastFocusedTabIndex ?? this.selectedIndex;
1994
+ return index === targetIndex ? 0 : -1;
1995
+ }
1996
+ /** Callback for when the focused state of a tab has changed. */
1997
+ _tabFocusChanged(focusOrigin, index) {
1998
+ if (focusOrigin && focusOrigin !== "mouse" && focusOrigin !== "touch") {
1999
+ this._tabHeader.focusIndex = index;
2000
+ }
2001
+ }
2002
+ static {
2003
+ this.ɵfac = function MatTabGroup_Factory(__ngFactoryType__) {
2004
+ return new (__ngFactoryType__ || _MatTabGroup)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(MAT_TABS_CONFIG, 8), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));
2005
+ };
2006
+ }
2007
+ static {
2008
+ this.ɵcmp = ɵɵdefineComponent({
2009
+ type: _MatTabGroup,
2010
+ selectors: [["mat-tab-group"]],
2011
+ contentQueries: function MatTabGroup_ContentQueries(rf, ctx, dirIndex) {
2012
+ if (rf & 1) {
2013
+ ɵɵcontentQuery(dirIndex, MatTab, 5);
2014
+ }
2015
+ if (rf & 2) {
2016
+ let _t;
2017
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._allTabs = _t);
2018
+ }
2019
+ },
2020
+ viewQuery: function MatTabGroup_Query(rf, ctx) {
2021
+ if (rf & 1) {
2022
+ ɵɵviewQuery(_c8, 5);
2023
+ ɵɵviewQuery(_c9, 5);
2024
+ }
2025
+ if (rf & 2) {
2026
+ let _t;
2027
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabBodyWrapper = _t.first);
2028
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabHeader = _t.first);
2029
+ }
2030
+ },
2031
+ hostAttrs: [1, "mat-mdc-tab-group"],
2032
+ hostVars: 10,
2033
+ hostBindings: function MatTabGroup_HostBindings(rf, ctx) {
2034
+ if (rf & 2) {
2035
+ ɵɵclassMap("mat-" + (ctx.color || "primary"));
2036
+ ɵɵstyleProp("--mat-tab-animation-duration", ctx.animationDuration);
2037
+ ɵɵclassProp("mat-mdc-tab-group-dynamic-height", ctx.dynamicHeight)("mat-mdc-tab-group-inverted-header", ctx.headerPosition === "below")("mat-mdc-tab-group-stretch-tabs", ctx.stretchTabs);
2038
+ }
2039
+ },
2040
+ inputs: {
2041
+ color: "color",
2042
+ fitInkBarToContent: [2, "fitInkBarToContent", "fitInkBarToContent", booleanAttribute],
2043
+ stretchTabs: [2, "mat-stretch-tabs", "stretchTabs", booleanAttribute],
2044
+ dynamicHeight: [2, "dynamicHeight", "dynamicHeight", booleanAttribute],
2045
+ selectedIndex: [2, "selectedIndex", "selectedIndex", numberAttribute],
2046
+ headerPosition: "headerPosition",
2047
+ animationDuration: "animationDuration",
2048
+ contentTabIndex: [2, "contentTabIndex", "contentTabIndex", numberAttribute],
2049
+ disablePagination: [2, "disablePagination", "disablePagination", booleanAttribute],
2050
+ disableRipple: [2, "disableRipple", "disableRipple", booleanAttribute],
2051
+ preserveContent: [2, "preserveContent", "preserveContent", booleanAttribute],
2052
+ backgroundColor: "backgroundColor",
2053
+ ariaLabel: [0, "aria-label", "ariaLabel"],
2054
+ ariaLabelledby: [0, "aria-labelledby", "ariaLabelledby"]
2055
+ },
2056
+ outputs: {
2057
+ selectedIndexChange: "selectedIndexChange",
2058
+ focusChange: "focusChange",
2059
+ animationDone: "animationDone",
2060
+ selectedTabChange: "selectedTabChange"
2061
+ },
2062
+ exportAs: ["matTabGroup"],
2063
+ standalone: true,
2064
+ features: [ɵɵProvidersFeature([{
2065
+ provide: MAT_TAB_GROUP,
2066
+ useExisting: _MatTabGroup
2067
+ }]), ɵɵInputTransformsFeature, ɵɵStandaloneFeature],
2068
+ ngContentSelectors: _c0,
2069
+ decls: 9,
2070
+ vars: 8,
2071
+ consts: [["tabHeader", ""], ["tabBodyWrapper", ""], ["tabNode", ""], [3, "indexFocused", "selectFocusedIndex", "selectedIndex", "disableRipple", "disablePagination", "aria-label", "aria-labelledby"], ["role", "tab", "matTabLabelWrapper", "", "cdkMonitorElementFocus", "", 1, "mdc-tab", "mat-mdc-tab", "mat-mdc-focus-indicator", 3, "id", "mdc-tab--active", "class", "disabled", "fitInkBarToContent"], [1, "mat-mdc-tab-body-wrapper"], ["role", "tabpanel", 3, "id", "mat-mdc-tab-body-active", "class", "content", "position", "origin", "animationDuration", "preserveContent"], ["role", "tab", "matTabLabelWrapper", "", "cdkMonitorElementFocus", "", 1, "mdc-tab", "mat-mdc-tab", "mat-mdc-focus-indicator", 3, "click", "cdkFocusChange", "id", "disabled", "fitInkBarToContent"], [1, "mdc-tab__ripple"], ["mat-ripple", "", 1, "mat-mdc-tab-ripple", 3, "matRippleTrigger", "matRippleDisabled"], [1, "mdc-tab__content"], [1, "mdc-tab__text-label"], [3, "cdkPortalOutlet"], ["role", "tabpanel", 3, "_onCentered", "_onCentering", "id", "content", "position", "origin", "animationDuration", "preserveContent"]],
2072
+ template: function MatTabGroup_Template(rf, ctx) {
2073
+ if (rf & 1) {
2074
+ const _r1 = ɵɵgetCurrentView();
2075
+ ɵɵprojectionDef();
2076
+ ɵɵelementStart(0, "mat-tab-header", 3, 0);
2077
+ ɵɵlistener("indexFocused", function MatTabGroup_Template_mat_tab_header_indexFocused_0_listener($event) {
2078
+ ɵɵrestoreView(_r1);
2079
+ return ɵɵresetView(ctx._focusChanged($event));
2080
+ })("selectFocusedIndex", function MatTabGroup_Template_mat_tab_header_selectFocusedIndex_0_listener($event) {
2081
+ ɵɵrestoreView(_r1);
2082
+ return ɵɵresetView(ctx.selectedIndex = $event);
2083
+ });
2084
+ ɵɵrepeaterCreate(2, MatTabGroup_For_3_Template, 8, 17, "div", 4, ɵɵrepeaterTrackByIdentity);
2085
+ ɵɵelementEnd();
2086
+ ɵɵtemplate(4, MatTabGroup_Conditional_4_Template, 1, 0);
2087
+ ɵɵelementStart(5, "div", 5, 1);
2088
+ ɵɵrepeaterCreate(7, MatTabGroup_For_8_Template, 1, 13, "mat-tab-body", 6, ɵɵrepeaterTrackByIdentity);
2089
+ ɵɵelementEnd();
2090
+ }
2091
+ if (rf & 2) {
2092
+ ɵɵproperty("selectedIndex", ctx.selectedIndex || 0)("disableRipple", ctx.disableRipple)("disablePagination", ctx.disablePagination)("aria-label", ctx.ariaLabel)("aria-labelledby", ctx.ariaLabelledby);
2093
+ ɵɵadvance(2);
2094
+ ɵɵrepeater(ctx._tabs);
2095
+ ɵɵadvance(2);
2096
+ ɵɵconditional(ctx._isServer ? 4 : -1);
2097
+ ɵɵadvance();
2098
+ ɵɵclassProp("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
2099
+ ɵɵadvance(2);
2100
+ ɵɵrepeater(ctx._tabs);
2101
+ }
2102
+ },
2103
+ dependencies: [MatTabHeader, MatTabLabelWrapper, CdkMonitorFocus, MatRipple, CdkPortalOutlet, MatTabBody],
2104
+ styles: ['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],
2105
+ encapsulation: 2
2106
+ });
2107
+ }
2108
+ };
2109
+ (() => {
2110
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabGroup, [{
2111
+ type: Component,
2112
+ args: [{
2113
+ selector: "mat-tab-group",
2114
+ exportAs: "matTabGroup",
2115
+ encapsulation: ViewEncapsulation$1.None,
2116
+ changeDetection: ChangeDetectionStrategy.Default,
2117
+ providers: [{
2118
+ provide: MAT_TAB_GROUP,
2119
+ useExisting: MatTabGroup
2120
+ }],
2121
+ host: {
2122
+ "class": "mat-mdc-tab-group",
2123
+ "[class]": '"mat-" + (color || "primary")',
2124
+ "[class.mat-mdc-tab-group-dynamic-height]": "dynamicHeight",
2125
+ "[class.mat-mdc-tab-group-inverted-header]": 'headerPosition === "below"',
2126
+ "[class.mat-mdc-tab-group-stretch-tabs]": "stretchTabs",
2127
+ "[style.--mat-tab-animation-duration]": "animationDuration"
2128
+ },
2129
+ standalone: true,
2130
+ imports: [MatTabHeader, MatTabLabelWrapper, CdkMonitorFocus, MatRipple, CdkPortalOutlet, MatTabBody],
2131
+ template: '<mat-tab-header #tabHeader\n [selectedIndex]="selectedIndex || 0"\n [disableRipple]="disableRipple"\n [disablePagination]="disablePagination"\n [aria-label]="ariaLabel"\n [aria-labelledby]="ariaLabelledby"\n (indexFocused)="_focusChanged($event)"\n (selectFocusedIndex)="selectedIndex = $event">\n\n @for (tab of _tabs; track tab; let i = $index) {\n <div class="mdc-tab mat-mdc-tab mat-mdc-focus-indicator"\n #tabNode\n role="tab"\n matTabLabelWrapper\n cdkMonitorElementFocus\n [id]="_getTabLabelId(i)"\n [attr.tabIndex]="_getTabIndex(i)"\n [attr.aria-posinset]="i + 1"\n [attr.aria-setsize]="_tabs.length"\n [attr.aria-controls]="_getTabContentId(i)"\n [attr.aria-selected]="selectedIndex === i"\n [attr.aria-label]="tab.ariaLabel || null"\n [attr.aria-labelledby]="(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null"\n [class.mdc-tab--active]="selectedIndex === i"\n [class]="tab.labelClass"\n [disabled]="tab.disabled"\n [fitInkBarToContent]="fitInkBarToContent"\n (click)="_handleClick(tab, tabHeader, i)"\n (cdkFocusChange)="_tabFocusChanged($event, i)">\n <span class="mdc-tab__ripple"></span>\n\n <!-- Needs to be a separate element, because we can\'t put\n `overflow: hidden` on tab due to the ink bar. -->\n <div\n class="mat-mdc-tab-ripple"\n mat-ripple\n [matRippleTrigger]="tabNode"\n [matRippleDisabled]="tab.disabled || disableRipple"></div>\n\n <span class="mdc-tab__content">\n <span class="mdc-tab__text-label">\n <!--\n If there is a label template, use it, otherwise fall back to the text label.\n Note that we don\'t have indentation around the text label, because it adds\n whitespace around the text which breaks some internal tests.\n -->\n @if (tab.templateLabel) {\n <ng-template [cdkPortalOutlet]="tab.templateLabel"></ng-template>\n } @else {{{tab.textLabel}}}\n </span>\n </span>\n </div>\n }\n</mat-tab-header>\n\n<!--\n We need to project the content somewhere to avoid hydration errors. Some observations:\n 1. This is only necessary on the server.\n 2. We get a hydration error if there aren\'t any nodes after the `ng-content`.\n 3. We get a hydration error if `ng-content` is wrapped in another element.\n-->\n@if (_isServer) {\n <ng-content/>\n}\n\n<div\n class="mat-mdc-tab-body-wrapper"\n [class._mat-animation-noopable]="_animationMode === \'NoopAnimations\'"\n #tabBodyWrapper>\n @for (tab of _tabs; track tab; let i = $index) {\n <mat-tab-body role="tabpanel"\n [id]="_getTabContentId(i)"\n [attr.tabindex]="(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null"\n [attr.aria-labelledby]="_getTabLabelId(i)"\n [attr.aria-hidden]="selectedIndex !== i"\n [class.mat-mdc-tab-body-active]="selectedIndex === i"\n [class]="tab.bodyClass"\n [content]="tab.content!"\n [position]="tab.position!"\n [origin]="tab.origin"\n [animationDuration]="animationDuration"\n [preserveContent]="preserveContent"\n (_onCentered)="_removeTabBodyWrapperHeight()"\n (_onCentering)="_setTabBodyWrapperHeight($event)">\n </mat-tab-body>\n }\n</div>\n',
2132
+ styles: ['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}']
2133
+ }]
2134
+ }], () => [{
2135
+ type: ElementRef
2136
+ }, {
2137
+ type: ChangeDetectorRef
2138
+ }, {
2139
+ type: void 0,
2140
+ decorators: [{
2141
+ type: Inject,
2142
+ args: [MAT_TABS_CONFIG]
2143
+ }, {
2144
+ type: Optional
2145
+ }]
2146
+ }, {
2147
+ type: void 0,
2148
+ decorators: [{
2149
+ type: Optional
2150
+ }, {
2151
+ type: Inject,
2152
+ args: [ANIMATION_MODULE_TYPE]
2153
+ }]
2154
+ }], {
2155
+ _allTabs: [{
2156
+ type: ContentChildren,
2157
+ args: [MatTab, {
2158
+ descendants: true
2159
+ }]
2160
+ }],
2161
+ _tabBodyWrapper: [{
2162
+ type: ViewChild,
2163
+ args: ["tabBodyWrapper"]
2164
+ }],
2165
+ _tabHeader: [{
2166
+ type: ViewChild,
2167
+ args: ["tabHeader"]
2168
+ }],
2169
+ color: [{
2170
+ type: Input
2171
+ }],
2172
+ fitInkBarToContent: [{
2173
+ type: Input,
2174
+ args: [{
2175
+ transform: booleanAttribute
2176
+ }]
2177
+ }],
2178
+ stretchTabs: [{
2179
+ type: Input,
2180
+ args: [{
2181
+ alias: "mat-stretch-tabs",
2182
+ transform: booleanAttribute
2183
+ }]
2184
+ }],
2185
+ dynamicHeight: [{
2186
+ type: Input,
2187
+ args: [{
2188
+ transform: booleanAttribute
2189
+ }]
2190
+ }],
2191
+ selectedIndex: [{
2192
+ type: Input,
2193
+ args: [{
2194
+ transform: numberAttribute
2195
+ }]
2196
+ }],
2197
+ headerPosition: [{
2198
+ type: Input
2199
+ }],
2200
+ animationDuration: [{
2201
+ type: Input
2202
+ }],
2203
+ contentTabIndex: [{
2204
+ type: Input,
2205
+ args: [{
2206
+ transform: numberAttribute
2207
+ }]
2208
+ }],
2209
+ disablePagination: [{
2210
+ type: Input,
2211
+ args: [{
2212
+ transform: booleanAttribute
2213
+ }]
2214
+ }],
2215
+ disableRipple: [{
2216
+ type: Input,
2217
+ args: [{
2218
+ transform: booleanAttribute
2219
+ }]
2220
+ }],
2221
+ preserveContent: [{
2222
+ type: Input,
2223
+ args: [{
2224
+ transform: booleanAttribute
2225
+ }]
2226
+ }],
2227
+ backgroundColor: [{
2228
+ type: Input
2229
+ }],
2230
+ ariaLabel: [{
2231
+ type: Input,
2232
+ args: ["aria-label"]
2233
+ }],
2234
+ ariaLabelledby: [{
2235
+ type: Input,
2236
+ args: ["aria-labelledby"]
2237
+ }],
2238
+ selectedIndexChange: [{
2239
+ type: Output
2240
+ }],
2241
+ focusChange: [{
2242
+ type: Output
2243
+ }],
2244
+ animationDone: [{
2245
+ type: Output
2246
+ }],
2247
+ selectedTabChange: [{
2248
+ type: Output
2249
+ }]
2250
+ });
2251
+ })();
2252
+ var MatTabChangeEvent = class {
2253
+ };
2254
+ var nextUniqueId = 0;
2255
+ var MatTabNav = class _MatTabNav extends MatPaginatedTabHeader {
2256
+ /** Whether the ink bar should fit its width to the size of the tab label content. */
2257
+ get fitInkBarToContent() {
2258
+ return this._fitInkBarToContent.value;
2259
+ }
2260
+ set fitInkBarToContent(value) {
2261
+ this._fitInkBarToContent.next(value);
2262
+ this._changeDetectorRef.markForCheck();
2263
+ }
2264
+ get animationDuration() {
2265
+ return this._animationDuration;
2266
+ }
2267
+ set animationDuration(value) {
2268
+ const stringValue = value + "";
2269
+ this._animationDuration = /^\d+$/.test(stringValue) ? value + "ms" : stringValue;
2270
+ }
2271
+ /**
2272
+ * Theme color of the background of the tab nav. This API is supported in M2 themes only, it
2273
+ * has no effect in M3 themes.
2274
+ *
2275
+ * For information on applying color variants in M3, see
2276
+ * https://material.angular.io/guide/theming#using-component-color-variants.
2277
+ */
2278
+ get backgroundColor() {
2279
+ return this._backgroundColor;
2280
+ }
2281
+ set backgroundColor(value) {
2282
+ const classList = this._elementRef.nativeElement.classList;
2283
+ classList.remove("mat-tabs-with-background", `mat-background-${this.backgroundColor}`);
2284
+ if (value) {
2285
+ classList.add("mat-tabs-with-background", `mat-background-${value}`);
2286
+ }
2287
+ this._backgroundColor = value;
2288
+ }
2289
+ constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode, defaultConfig) {
2290
+ super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
2291
+ this._fitInkBarToContent = new BehaviorSubject(false);
2292
+ this.stretchTabs = true;
2293
+ this.disableRipple = false;
2294
+ this.color = "primary";
2295
+ this.disablePagination = defaultConfig && defaultConfig.disablePagination != null ? defaultConfig.disablePagination : false;
2296
+ this.fitInkBarToContent = defaultConfig && defaultConfig.fitInkBarToContent != null ? defaultConfig.fitInkBarToContent : false;
2297
+ this.stretchTabs = defaultConfig && defaultConfig.stretchTabs != null ? defaultConfig.stretchTabs : true;
2298
+ }
2299
+ _itemSelected() {
2300
+ }
2301
+ ngAfterContentInit() {
2302
+ this._inkBar = new MatInkBar(this._items);
2303
+ this._items.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
2304
+ this.updateActiveLink();
2305
+ });
2306
+ super.ngAfterContentInit();
2307
+ }
2308
+ ngAfterViewInit() {
2309
+ if (!this.tabPanel && (typeof ngDevMode === "undefined" || ngDevMode)) {
2310
+ throw new Error("A mat-tab-nav-panel must be specified via [tabPanel].");
2311
+ }
2312
+ super.ngAfterViewInit();
2313
+ }
2314
+ /** Notifies the component that the active link has been changed. */
2315
+ updateActiveLink() {
2316
+ if (!this._items) {
2317
+ return;
2318
+ }
2319
+ const items = this._items.toArray();
2320
+ for (let i = 0; i < items.length; i++) {
2321
+ if (items[i].active) {
2322
+ this.selectedIndex = i;
2323
+ this._changeDetectorRef.markForCheck();
2324
+ if (this.tabPanel) {
2325
+ this.tabPanel._activeTabId = items[i].id;
2326
+ }
2327
+ return;
2328
+ }
2329
+ }
2330
+ this.selectedIndex = -1;
2331
+ this._inkBar.hide();
2332
+ }
2333
+ _getRole() {
2334
+ return this.tabPanel ? "tablist" : this._elementRef.nativeElement.getAttribute("role");
2335
+ }
2336
+ static {
2337
+ this.ɵfac = function MatTabNav_Factory(__ngFactoryType__) {
2338
+ return new (__ngFactoryType__ || _MatTabNav)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Directionality, 8), ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ViewportRuler), ɵɵdirectiveInject(Platform), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), ɵɵdirectiveInject(MAT_TABS_CONFIG, 8));
2339
+ };
2340
+ }
2341
+ static {
2342
+ this.ɵcmp = ɵɵdefineComponent({
2343
+ type: _MatTabNav,
2344
+ selectors: [["", "mat-tab-nav-bar", ""]],
2345
+ contentQueries: function MatTabNav_ContentQueries(rf, ctx, dirIndex) {
2346
+ if (rf & 1) {
2347
+ ɵɵcontentQuery(dirIndex, MatTabLink, 5);
2348
+ }
2349
+ if (rf & 2) {
2350
+ let _t;
2351
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._items = _t);
2352
+ }
2353
+ },
2354
+ viewQuery: function MatTabNav_Query(rf, ctx) {
2355
+ if (rf & 1) {
2356
+ ɵɵviewQuery(_c1, 7);
2357
+ ɵɵviewQuery(_c2, 7);
2358
+ ɵɵviewQuery(_c3, 7);
2359
+ ɵɵviewQuery(_c4, 5);
2360
+ ɵɵviewQuery(_c5, 5);
2361
+ }
2362
+ if (rf & 2) {
2363
+ let _t;
2364
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabListContainer = _t.first);
2365
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabList = _t.first);
2366
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._tabListInner = _t.first);
2367
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._nextPaginator = _t.first);
2368
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._previousPaginator = _t.first);
2369
+ }
2370
+ },
2371
+ hostAttrs: [1, "mat-mdc-tab-nav-bar", "mat-mdc-tab-header"],
2372
+ hostVars: 17,
2373
+ hostBindings: function MatTabNav_HostBindings(rf, ctx) {
2374
+ if (rf & 2) {
2375
+ ɵɵattribute("role", ctx._getRole());
2376
+ ɵɵstyleProp("--mat-tab-animation-duration", ctx.animationDuration);
2377
+ ɵɵclassProp("mat-mdc-tab-header-pagination-controls-enabled", ctx._showPaginationControls)("mat-mdc-tab-header-rtl", ctx._getLayoutDirection() == "rtl")("mat-mdc-tab-nav-bar-stretch-tabs", ctx.stretchTabs)("mat-primary", ctx.color !== "warn" && ctx.color !== "accent")("mat-accent", ctx.color === "accent")("mat-warn", ctx.color === "warn")("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
2378
+ }
2379
+ },
2380
+ inputs: {
2381
+ fitInkBarToContent: [2, "fitInkBarToContent", "fitInkBarToContent", booleanAttribute],
2382
+ stretchTabs: [2, "mat-stretch-tabs", "stretchTabs", booleanAttribute],
2383
+ animationDuration: "animationDuration",
2384
+ backgroundColor: "backgroundColor",
2385
+ disableRipple: [2, "disableRipple", "disableRipple", booleanAttribute],
2386
+ color: "color",
2387
+ tabPanel: "tabPanel"
2388
+ },
2389
+ exportAs: ["matTabNavBar", "matTabNav"],
2390
+ standalone: true,
2391
+ features: [ɵɵInputTransformsFeature, ɵɵInheritDefinitionFeature, ɵɵStandaloneFeature],
2392
+ attrs: _c10,
2393
+ ngContentSelectors: _c0,
2394
+ decls: 13,
2395
+ vars: 6,
2396
+ consts: [["previousPaginator", ""], ["tabListContainer", ""], ["tabList", ""], ["tabListInner", ""], ["nextPaginator", ""], ["mat-ripple", "", 1, "mat-mdc-tab-header-pagination", "mat-mdc-tab-header-pagination-before", 3, "click", "mousedown", "touchend", "matRippleDisabled"], [1, "mat-mdc-tab-header-pagination-chevron"], [1, "mat-mdc-tab-link-container", 3, "keydown"], [1, "mat-mdc-tab-list", 3, "cdkObserveContent"], [1, "mat-mdc-tab-links"], ["mat-ripple", "", 1, "mat-mdc-tab-header-pagination", "mat-mdc-tab-header-pagination-after", 3, "mousedown", "click", "touchend", "matRippleDisabled"]],
2397
+ template: function MatTabNav_Template(rf, ctx) {
2398
+ if (rf & 1) {
2399
+ const _r1 = ɵɵgetCurrentView();
2400
+ ɵɵprojectionDef();
2401
+ ɵɵelementStart(0, "div", 5, 0);
2402
+ ɵɵlistener("click", function MatTabNav_Template_div_click_0_listener() {
2403
+ ɵɵrestoreView(_r1);
2404
+ return ɵɵresetView(ctx._handlePaginatorClick("before"));
2405
+ })("mousedown", function MatTabNav_Template_div_mousedown_0_listener($event) {
2406
+ ɵɵrestoreView(_r1);
2407
+ return ɵɵresetView(ctx._handlePaginatorPress("before", $event));
2408
+ })("touchend", function MatTabNav_Template_div_touchend_0_listener() {
2409
+ ɵɵrestoreView(_r1);
2410
+ return ɵɵresetView(ctx._stopInterval());
2411
+ });
2412
+ ɵɵelement(2, "div", 6);
2413
+ ɵɵelementEnd();
2414
+ ɵɵelementStart(3, "div", 7, 1);
2415
+ ɵɵlistener("keydown", function MatTabNav_Template_div_keydown_3_listener($event) {
2416
+ ɵɵrestoreView(_r1);
2417
+ return ɵɵresetView(ctx._handleKeydown($event));
2418
+ });
2419
+ ɵɵelementStart(5, "div", 8, 2);
2420
+ ɵɵlistener("cdkObserveContent", function MatTabNav_Template_div_cdkObserveContent_5_listener() {
2421
+ ɵɵrestoreView(_r1);
2422
+ return ɵɵresetView(ctx._onContentChanges());
2423
+ });
2424
+ ɵɵelementStart(7, "div", 9, 3);
2425
+ ɵɵprojection(9);
2426
+ ɵɵelementEnd()()();
2427
+ ɵɵelementStart(10, "div", 10, 4);
2428
+ ɵɵlistener("mousedown", function MatTabNav_Template_div_mousedown_10_listener($event) {
2429
+ ɵɵrestoreView(_r1);
2430
+ return ɵɵresetView(ctx._handlePaginatorPress("after", $event));
2431
+ })("click", function MatTabNav_Template_div_click_10_listener() {
2432
+ ɵɵrestoreView(_r1);
2433
+ return ɵɵresetView(ctx._handlePaginatorClick("after"));
2434
+ })("touchend", function MatTabNav_Template_div_touchend_10_listener() {
2435
+ ɵɵrestoreView(_r1);
2436
+ return ɵɵresetView(ctx._stopInterval());
2437
+ });
2438
+ ɵɵelement(12, "div", 6);
2439
+ ɵɵelementEnd();
2440
+ }
2441
+ if (rf & 2) {
2442
+ ɵɵclassProp("mat-mdc-tab-header-pagination-disabled", ctx._disableScrollBefore);
2443
+ ɵɵproperty("matRippleDisabled", ctx._disableScrollBefore || ctx.disableRipple);
2444
+ ɵɵadvance(10);
2445
+ ɵɵclassProp("mat-mdc-tab-header-pagination-disabled", ctx._disableScrollAfter);
2446
+ ɵɵproperty("matRippleDisabled", ctx._disableScrollAfter || ctx.disableRipple);
2447
+ }
2448
+ },
2449
+ dependencies: [MatRipple, CdkObserveContent],
2450
+ styles: [".mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"],
2451
+ encapsulation: 2
2452
+ });
2453
+ }
2454
+ };
2455
+ (() => {
2456
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabNav, [{
2457
+ type: Component,
2458
+ args: [{
2459
+ selector: "[mat-tab-nav-bar]",
2460
+ exportAs: "matTabNavBar, matTabNav",
2461
+ host: {
2462
+ "[attr.role]": "_getRole()",
2463
+ "class": "mat-mdc-tab-nav-bar mat-mdc-tab-header",
2464
+ "[class.mat-mdc-tab-header-pagination-controls-enabled]": "_showPaginationControls",
2465
+ "[class.mat-mdc-tab-header-rtl]": "_getLayoutDirection() == 'rtl'",
2466
+ "[class.mat-mdc-tab-nav-bar-stretch-tabs]": "stretchTabs",
2467
+ "[class.mat-primary]": 'color !== "warn" && color !== "accent"',
2468
+ "[class.mat-accent]": 'color === "accent"',
2469
+ "[class.mat-warn]": 'color === "warn"',
2470
+ "[class._mat-animation-noopable]": '_animationMode === "NoopAnimations"',
2471
+ "[style.--mat-tab-animation-duration]": "animationDuration"
2472
+ },
2473
+ encapsulation: ViewEncapsulation$1.None,
2474
+ changeDetection: ChangeDetectionStrategy.Default,
2475
+ standalone: true,
2476
+ imports: [MatRipple, CdkObserveContent],
2477
+ template: `<!--
2478
+ Note that this intentionally uses a \`div\` instead of a \`button\`, because it's not part of
2479
+ the regular tabs flow and is only here to support mouse users. It should also not be focusable.
2480
+ -->
2481
+ <div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-before"
2482
+ #previousPaginator
2483
+ mat-ripple
2484
+ [matRippleDisabled]="_disableScrollBefore || disableRipple"
2485
+ [class.mat-mdc-tab-header-pagination-disabled]="_disableScrollBefore"
2486
+ (click)="_handlePaginatorClick('before')"
2487
+ (mousedown)="_handlePaginatorPress('before', $event)"
2488
+ (touchend)="_stopInterval()">
2489
+ <div class="mat-mdc-tab-header-pagination-chevron"></div>
2490
+ </div>
2491
+
2492
+ <div class="mat-mdc-tab-link-container" #tabListContainer (keydown)="_handleKeydown($event)">
2493
+ <div class="mat-mdc-tab-list" #tabList (cdkObserveContent)="_onContentChanges()">
2494
+ <div class="mat-mdc-tab-links" #tabListInner>
2495
+ <ng-content></ng-content>
2496
+ </div>
2497
+ </div>
2498
+ </div>
2499
+
2500
+ <div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-after"
2501
+ #nextPaginator
2502
+ mat-ripple
2503
+ [matRippleDisabled]="_disableScrollAfter || disableRipple"
2504
+ [class.mat-mdc-tab-header-pagination-disabled]="_disableScrollAfter"
2505
+ (mousedown)="_handlePaginatorPress('after', $event)"
2506
+ (click)="_handlePaginatorClick('after')"
2507
+ (touchend)="_stopInterval()">
2508
+ <div class="mat-mdc-tab-header-pagination-chevron"></div>
2509
+ </div>
2510
+ `,
2511
+ styles: [".mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"]
2512
+ }]
2513
+ }], () => [{
2514
+ type: ElementRef
2515
+ }, {
2516
+ type: Directionality,
2517
+ decorators: [{
2518
+ type: Optional
2519
+ }]
2520
+ }, {
2521
+ type: NgZone
2522
+ }, {
2523
+ type: ChangeDetectorRef
2524
+ }, {
2525
+ type: ViewportRuler
2526
+ }, {
2527
+ type: Platform
2528
+ }, {
2529
+ type: void 0,
2530
+ decorators: [{
2531
+ type: Optional
2532
+ }, {
2533
+ type: Inject,
2534
+ args: [ANIMATION_MODULE_TYPE]
2535
+ }]
2536
+ }, {
2537
+ type: void 0,
2538
+ decorators: [{
2539
+ type: Optional
2540
+ }, {
2541
+ type: Inject,
2542
+ args: [MAT_TABS_CONFIG]
2543
+ }]
2544
+ }], {
2545
+ fitInkBarToContent: [{
2546
+ type: Input,
2547
+ args: [{
2548
+ transform: booleanAttribute
2549
+ }]
2550
+ }],
2551
+ stretchTabs: [{
2552
+ type: Input,
2553
+ args: [{
2554
+ alias: "mat-stretch-tabs",
2555
+ transform: booleanAttribute
2556
+ }]
2557
+ }],
2558
+ animationDuration: [{
2559
+ type: Input
2560
+ }],
2561
+ _items: [{
2562
+ type: ContentChildren,
2563
+ args: [forwardRef(() => MatTabLink), {
2564
+ descendants: true
2565
+ }]
2566
+ }],
2567
+ backgroundColor: [{
2568
+ type: Input
2569
+ }],
2570
+ disableRipple: [{
2571
+ type: Input,
2572
+ args: [{
2573
+ transform: booleanAttribute
2574
+ }]
2575
+ }],
2576
+ color: [{
2577
+ type: Input
2578
+ }],
2579
+ tabPanel: [{
2580
+ type: Input
2581
+ }],
2582
+ _tabListContainer: [{
2583
+ type: ViewChild,
2584
+ args: ["tabListContainer", {
2585
+ static: true
2586
+ }]
2587
+ }],
2588
+ _tabList: [{
2589
+ type: ViewChild,
2590
+ args: ["tabList", {
2591
+ static: true
2592
+ }]
2593
+ }],
2594
+ _tabListInner: [{
2595
+ type: ViewChild,
2596
+ args: ["tabListInner", {
2597
+ static: true
2598
+ }]
2599
+ }],
2600
+ _nextPaginator: [{
2601
+ type: ViewChild,
2602
+ args: ["nextPaginator"]
2603
+ }],
2604
+ _previousPaginator: [{
2605
+ type: ViewChild,
2606
+ args: ["previousPaginator"]
2607
+ }]
2608
+ });
2609
+ })();
2610
+ var MatTabLink = class _MatTabLink extends InkBarItem {
2611
+ /** Whether the link is active. */
2612
+ get active() {
2613
+ return this._isActive;
2614
+ }
2615
+ set active(value) {
2616
+ if (value !== this._isActive) {
2617
+ this._isActive = value;
2618
+ this._tabNavBar.updateActiveLink();
2619
+ }
2620
+ }
2621
+ /**
2622
+ * Whether ripples are disabled on interaction.
2623
+ * @docs-private
2624
+ */
2625
+ get rippleDisabled() {
2626
+ return this.disabled || this.disableRipple || this._tabNavBar.disableRipple || !!this.rippleConfig.disabled;
2627
+ }
2628
+ constructor(_tabNavBar, elementRef, globalRippleOptions, tabIndex, _focusMonitor, animationMode) {
2629
+ super();
2630
+ this._tabNavBar = _tabNavBar;
2631
+ this.elementRef = elementRef;
2632
+ this._focusMonitor = _focusMonitor;
2633
+ this._destroyed = new Subject();
2634
+ this._isActive = false;
2635
+ this.disabled = false;
2636
+ this.disableRipple = false;
2637
+ this.tabIndex = 0;
2638
+ this.id = `mat-tab-link-${nextUniqueId++}`;
2639
+ this.rippleConfig = globalRippleOptions || {};
2640
+ this.tabIndex = parseInt(tabIndex) || 0;
2641
+ if (animationMode === "NoopAnimations") {
2642
+ this.rippleConfig.animation = {
2643
+ enterDuration: 0,
2644
+ exitDuration: 0
2645
+ };
2646
+ }
2647
+ _tabNavBar._fitInkBarToContent.pipe(takeUntil(this._destroyed)).subscribe((fitInkBarToContent) => {
2648
+ this.fitInkBarToContent = fitInkBarToContent;
2649
+ });
2650
+ }
2651
+ /** Focuses the tab link. */
2652
+ focus() {
2653
+ this.elementRef.nativeElement.focus();
2654
+ }
2655
+ ngAfterViewInit() {
2656
+ this._focusMonitor.monitor(this.elementRef);
2657
+ }
2658
+ ngOnDestroy() {
2659
+ this._destroyed.next();
2660
+ this._destroyed.complete();
2661
+ super.ngOnDestroy();
2662
+ this._focusMonitor.stopMonitoring(this.elementRef);
2663
+ }
2664
+ _handleFocus() {
2665
+ this._tabNavBar.focusIndex = this._tabNavBar._items.toArray().indexOf(this);
2666
+ }
2667
+ _handleKeydown(event) {
2668
+ if (event.keyCode === SPACE || event.keyCode === ENTER) {
2669
+ if (this.disabled) {
2670
+ event.preventDefault();
2671
+ } else if (this._tabNavBar.tabPanel) {
2672
+ if (event.keyCode === SPACE) {
2673
+ event.preventDefault();
2674
+ }
2675
+ this.elementRef.nativeElement.click();
2676
+ }
2677
+ }
2678
+ }
2679
+ _getAriaControls() {
2680
+ return this._tabNavBar.tabPanel ? this._tabNavBar.tabPanel?.id : this.elementRef.nativeElement.getAttribute("aria-controls");
2681
+ }
2682
+ _getAriaSelected() {
2683
+ if (this._tabNavBar.tabPanel) {
2684
+ return this.active ? "true" : "false";
2685
+ } else {
2686
+ return this.elementRef.nativeElement.getAttribute("aria-selected");
2687
+ }
2688
+ }
2689
+ _getAriaCurrent() {
2690
+ return this.active && !this._tabNavBar.tabPanel ? "page" : null;
2691
+ }
2692
+ _getRole() {
2693
+ return this._tabNavBar.tabPanel ? "tab" : this.elementRef.nativeElement.getAttribute("role");
2694
+ }
2695
+ _getTabIndex() {
2696
+ if (this._tabNavBar.tabPanel) {
2697
+ return this._isActive && !this.disabled ? 0 : -1;
2698
+ } else {
2699
+ return this.disabled ? -1 : this.tabIndex;
2700
+ }
2701
+ }
2702
+ static {
2703
+ this.ɵfac = function MatTabLink_Factory(__ngFactoryType__) {
2704
+ return new (__ngFactoryType__ || _MatTabLink)(ɵɵdirectiveInject(MatTabNav), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(MAT_RIPPLE_GLOBAL_OPTIONS, 8), ɵɵinjectAttribute("tabindex"), ɵɵdirectiveInject(FocusMonitor), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));
2705
+ };
2706
+ }
2707
+ static {
2708
+ this.ɵcmp = ɵɵdefineComponent({
2709
+ type: _MatTabLink,
2710
+ selectors: [["", "mat-tab-link", ""], ["", "matTabLink", ""]],
2711
+ hostAttrs: [1, "mdc-tab", "mat-mdc-tab-link", "mat-mdc-focus-indicator"],
2712
+ hostVars: 11,
2713
+ hostBindings: function MatTabLink_HostBindings(rf, ctx) {
2714
+ if (rf & 1) {
2715
+ ɵɵlistener("focus", function MatTabLink_focus_HostBindingHandler() {
2716
+ return ctx._handleFocus();
2717
+ })("keydown", function MatTabLink_keydown_HostBindingHandler($event) {
2718
+ return ctx._handleKeydown($event);
2719
+ });
2720
+ }
2721
+ if (rf & 2) {
2722
+ ɵɵattribute("aria-controls", ctx._getAriaControls())("aria-current", ctx._getAriaCurrent())("aria-disabled", ctx.disabled)("aria-selected", ctx._getAriaSelected())("id", ctx.id)("tabIndex", ctx._getTabIndex())("role", ctx._getRole());
2723
+ ɵɵclassProp("mat-mdc-tab-disabled", ctx.disabled)("mdc-tab--active", ctx.active);
2724
+ }
2725
+ },
2726
+ inputs: {
2727
+ active: [2, "active", "active", booleanAttribute],
2728
+ disabled: [2, "disabled", "disabled", booleanAttribute],
2729
+ disableRipple: [2, "disableRipple", "disableRipple", booleanAttribute],
2730
+ tabIndex: [2, "tabIndex", "tabIndex", (value) => value == null ? 0 : numberAttribute(value)],
2731
+ id: "id"
2732
+ },
2733
+ exportAs: ["matTabLink"],
2734
+ standalone: true,
2735
+ features: [ɵɵInputTransformsFeature, ɵɵInheritDefinitionFeature, ɵɵStandaloneFeature],
2736
+ attrs: _c11,
2737
+ ngContentSelectors: _c0,
2738
+ decls: 5,
2739
+ vars: 2,
2740
+ consts: [[1, "mdc-tab__ripple"], ["mat-ripple", "", 1, "mat-mdc-tab-ripple", 3, "matRippleTrigger", "matRippleDisabled"], [1, "mdc-tab__content"], [1, "mdc-tab__text-label"]],
2741
+ template: function MatTabLink_Template(rf, ctx) {
2742
+ if (rf & 1) {
2743
+ ɵɵprojectionDef();
2744
+ ɵɵelement(0, "span", 0)(1, "div", 1);
2745
+ ɵɵelementStart(2, "span", 2)(3, "span", 3);
2746
+ ɵɵprojection(4);
2747
+ ɵɵelementEnd()();
2748
+ }
2749
+ if (rf & 2) {
2750
+ ɵɵadvance();
2751
+ ɵɵproperty("matRippleTrigger", ctx.elementRef.nativeElement)("matRippleDisabled", ctx.rippleDisabled);
2752
+ }
2753
+ },
2754
+ dependencies: [MatRipple],
2755
+ styles: ['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],
2756
+ encapsulation: 2,
2757
+ changeDetection: 0
2758
+ });
2759
+ }
2760
+ };
2761
+ (() => {
2762
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabLink, [{
2763
+ type: Component,
2764
+ args: [{
2765
+ selector: "[mat-tab-link], [matTabLink]",
2766
+ exportAs: "matTabLink",
2767
+ changeDetection: ChangeDetectionStrategy.OnPush,
2768
+ encapsulation: ViewEncapsulation$1.None,
2769
+ host: {
2770
+ "class": "mdc-tab mat-mdc-tab-link mat-mdc-focus-indicator",
2771
+ "[attr.aria-controls]": "_getAriaControls()",
2772
+ "[attr.aria-current]": "_getAriaCurrent()",
2773
+ "[attr.aria-disabled]": "disabled",
2774
+ "[attr.aria-selected]": "_getAriaSelected()",
2775
+ "[attr.id]": "id",
2776
+ "[attr.tabIndex]": "_getTabIndex()",
2777
+ "[attr.role]": "_getRole()",
2778
+ "[class.mat-mdc-tab-disabled]": "disabled",
2779
+ "[class.mdc-tab--active]": "active",
2780
+ "(focus)": "_handleFocus()",
2781
+ "(keydown)": "_handleKeydown($event)"
2782
+ },
2783
+ standalone: true,
2784
+ imports: [MatRipple],
2785
+ template: '<span class="mdc-tab__ripple"></span>\n\n<div\n class="mat-mdc-tab-ripple"\n mat-ripple\n [matRippleTrigger]="elementRef.nativeElement"\n [matRippleDisabled]="rippleDisabled"></div>\n\n<span class="mdc-tab__content">\n <span class="mdc-tab__text-label">\n <ng-content></ng-content>\n </span>\n</span>\n\n',
2786
+ styles: ['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}']
2787
+ }]
2788
+ }], () => [{
2789
+ type: MatTabNav
2790
+ }, {
2791
+ type: ElementRef
2792
+ }, {
2793
+ type: void 0,
2794
+ decorators: [{
2795
+ type: Optional
2796
+ }, {
2797
+ type: Inject,
2798
+ args: [MAT_RIPPLE_GLOBAL_OPTIONS]
2799
+ }]
2800
+ }, {
2801
+ type: void 0,
2802
+ decorators: [{
2803
+ type: Attribute,
2804
+ args: ["tabindex"]
2805
+ }]
2806
+ }, {
2807
+ type: FocusMonitor
2808
+ }, {
2809
+ type: void 0,
2810
+ decorators: [{
2811
+ type: Optional
2812
+ }, {
2813
+ type: Inject,
2814
+ args: [ANIMATION_MODULE_TYPE]
2815
+ }]
2816
+ }], {
2817
+ active: [{
2818
+ type: Input,
2819
+ args: [{
2820
+ transform: booleanAttribute
2821
+ }]
2822
+ }],
2823
+ disabled: [{
2824
+ type: Input,
2825
+ args: [{
2826
+ transform: booleanAttribute
2827
+ }]
2828
+ }],
2829
+ disableRipple: [{
2830
+ type: Input,
2831
+ args: [{
2832
+ transform: booleanAttribute
2833
+ }]
2834
+ }],
2835
+ tabIndex: [{
2836
+ type: Input,
2837
+ args: [{
2838
+ transform: (value) => value == null ? 0 : numberAttribute(value)
2839
+ }]
2840
+ }],
2841
+ id: [{
2842
+ type: Input
2843
+ }]
2844
+ });
2845
+ })();
2846
+ var MatTabNavPanel = class _MatTabNavPanel {
2847
+ constructor() {
2848
+ this.id = `mat-tab-nav-panel-${nextUniqueId++}`;
2849
+ }
2850
+ static {
2851
+ this.ɵfac = function MatTabNavPanel_Factory(__ngFactoryType__) {
2852
+ return new (__ngFactoryType__ || _MatTabNavPanel)();
2853
+ };
2854
+ }
2855
+ static {
2856
+ this.ɵcmp = ɵɵdefineComponent({
2857
+ type: _MatTabNavPanel,
2858
+ selectors: [["mat-tab-nav-panel"]],
2859
+ hostAttrs: ["role", "tabpanel", 1, "mat-mdc-tab-nav-panel"],
2860
+ hostVars: 2,
2861
+ hostBindings: function MatTabNavPanel_HostBindings(rf, ctx) {
2862
+ if (rf & 2) {
2863
+ ɵɵattribute("aria-labelledby", ctx._activeTabId)("id", ctx.id);
2864
+ }
2865
+ },
2866
+ inputs: {
2867
+ id: "id"
2868
+ },
2869
+ exportAs: ["matTabNavPanel"],
2870
+ standalone: true,
2871
+ features: [ɵɵStandaloneFeature],
2872
+ ngContentSelectors: _c0,
2873
+ decls: 1,
2874
+ vars: 0,
2875
+ template: function MatTabNavPanel_Template(rf, ctx) {
2876
+ if (rf & 1) {
2877
+ ɵɵprojectionDef();
2878
+ ɵɵprojection(0);
2879
+ }
2880
+ },
2881
+ encapsulation: 2,
2882
+ changeDetection: 0
2883
+ });
2884
+ }
2885
+ };
2886
+ (() => {
2887
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabNavPanel, [{
2888
+ type: Component,
2889
+ args: [{
2890
+ selector: "mat-tab-nav-panel",
2891
+ exportAs: "matTabNavPanel",
2892
+ template: "<ng-content></ng-content>",
2893
+ host: {
2894
+ "[attr.aria-labelledby]": "_activeTabId",
2895
+ "[attr.id]": "id",
2896
+ "class": "mat-mdc-tab-nav-panel",
2897
+ "role": "tabpanel"
2898
+ },
2899
+ encapsulation: ViewEncapsulation$1.None,
2900
+ changeDetection: ChangeDetectionStrategy.OnPush,
2901
+ standalone: true
2902
+ }]
2903
+ }], null, {
2904
+ id: [{
2905
+ type: Input
2906
+ }]
2907
+ });
2908
+ })();
2909
+ var MatTabsModule = class _MatTabsModule {
2910
+ static {
2911
+ this.ɵfac = function MatTabsModule_Factory(__ngFactoryType__) {
2912
+ return new (__ngFactoryType__ || _MatTabsModule)();
2913
+ };
2914
+ }
2915
+ static {
2916
+ this.ɵmod = ɵɵdefineNgModule({
2917
+ type: _MatTabsModule,
2918
+ imports: [MatCommonModule, MatTabContent, MatTabLabel, MatTab, MatTabGroup, MatTabNav, MatTabNavPanel, MatTabLink],
2919
+ exports: [MatCommonModule, MatTabContent, MatTabLabel, MatTab, MatTabGroup, MatTabNav, MatTabNavPanel, MatTabLink]
2920
+ });
2921
+ }
2922
+ static {
2923
+ this.ɵinj = ɵɵdefineInjector({
2924
+ imports: [MatCommonModule, MatCommonModule]
2925
+ });
2926
+ }
2927
+ };
2928
+ (() => {
2929
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatTabsModule, [{
2930
+ type: NgModule,
2931
+ args: [{
2932
+ imports: [MatCommonModule, MatTabContent, MatTabLabel, MatTab, MatTabGroup, MatTabNav, MatTabNavPanel, MatTabLink],
2933
+ exports: [MatCommonModule, MatTabContent, MatTabLabel, MatTab, MatTabGroup, MatTabNav, MatTabNavPanel, MatTabLink]
2934
+ }]
2935
+ }], null, null);
2936
+ })();
2937
+ export {
2938
+ MAT_TAB,
2939
+ MAT_TABS_CONFIG,
2940
+ MAT_TAB_CONTENT,
2941
+ MAT_TAB_GROUP,
2942
+ MAT_TAB_LABEL,
2943
+ MatInkBar,
2944
+ MatPaginatedTabHeader,
2945
+ MatTab,
2946
+ MatTabBody,
2947
+ MatTabBodyPortal,
2948
+ MatTabChangeEvent,
2949
+ MatTabContent,
2950
+ MatTabGroup,
2951
+ MatTabHeader,
2952
+ MatTabLabel,
2953
+ MatTabLabelWrapper,
2954
+ MatTabLink,
2955
+ MatTabNav,
2956
+ MatTabNavPanel,
2957
+ MatTabsModule,
2958
+ _MAT_INK_BAR_POSITIONER,
2959
+ _MAT_INK_BAR_POSITIONER_FACTORY,
2960
+ matTabsAnimations
2961
+ };
2962
+ //# sourceMappingURL=@angular_material_tabs.js.map