{"ast":null,"code":"import * as i0 from '@angular/core';\nimport { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, NgModule } from '@angular/core';\nimport * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i1 from '@angular/router';\nimport { RouterModule } from '@angular/router';\nimport * as i3 from 'primeng/tooltip';\nimport { TooltipModule } from 'primeng/tooltip';\n\nfunction Steps_li_2_a_2_span_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 11);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const item_r1 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate(item_r1.label);\n }\n}\n\nfunction Steps_li_2_a_2_ng_template_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 12);\n }\n\n if (rf & 2) {\n const item_r1 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵproperty(\"innerHTML\", item_r1.label, i0.ɵɵsanitizeHtml);\n }\n}\n\nconst _c0 = function () {\n return {\n exact: false\n };\n};\n\nfunction Steps_li_2_a_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r14 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"a\", 7);\n i0.ɵɵlistener(\"click\", function Steps_li_2_a_2_Template_a_click_0_listener($event) {\n i0.ɵɵrestoreView(_r14);\n const ctx_r13 = i0.ɵɵnextContext();\n const item_r1 = ctx_r13.$implicit;\n const i_r2 = ctx_r13.index;\n const ctx_r12 = i0.ɵɵnextContext();\n return ctx_r12.itemClick($event, item_r1, i_r2);\n })(\"keydown.enter\", function Steps_li_2_a_2_Template_a_keydown_enter_0_listener($event) {\n i0.ɵɵrestoreView(_r14);\n const ctx_r16 = i0.ɵɵnextContext();\n const item_r1 = ctx_r16.$implicit;\n const i_r2 = ctx_r16.index;\n const ctx_r15 = i0.ɵɵnextContext();\n return ctx_r15.itemClick($event, item_r1, i_r2);\n });\n i0.ɵɵelementStart(1, \"span\", 8);\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, Steps_li_2_a_2_span_3_Template, 2, 1, \"span\", 9);\n i0.ɵɵtemplate(4, Steps_li_2_a_2_ng_template_4_Template, 1, 1, \"ng-template\", null, 10, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const _r8 = i0.ɵɵreference(5);\n\n const ctx_r17 = i0.ɵɵnextContext();\n const item_r1 = ctx_r17.$implicit;\n const i_r2 = ctx_r17.index;\n const ctx_r4 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"routerLink\", item_r1.routerLink)(\"queryParams\", item_r1.queryParams)(\"routerLinkActive\", \"p-menuitem-link-active\")(\"routerLinkActiveOptions\", item_r1.routerLinkActiveOptions || i0.ɵɵpureFunction0(16, _c0))(\"fragment\", item_r1.fragment)(\"queryParamsHandling\", item_r1.queryParamsHandling)(\"preserveFragment\", item_r1.preserveFragment)(\"skipLocationChange\", item_r1.skipLocationChange)(\"replaceUrl\", item_r1.replaceUrl)(\"state\", item_r1.state);\n i0.ɵɵattribute(\"target\", item_r1.target)(\"id\", item_r1.id)(\"tabindex\", item_r1.disabled || ctx_r4.readonly ? null : item_r1.tabindex ? item_r1.tabindex : \"0\");\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(i_r2 + 1);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", item_r1.escape !== false)(\"ngIfElse\", _r8);\n }\n}\n\nfunction Steps_li_2_ng_template_3_span_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 11);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const item_r1 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate(item_r1.label);\n }\n}\n\nfunction Steps_li_2_ng_template_3_ng_template_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 12);\n }\n\n if (rf & 2) {\n const item_r1 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵproperty(\"innerHTML\", item_r1.label, i0.ɵɵsanitizeHtml);\n }\n}\n\nfunction Steps_li_2_ng_template_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r25 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"a\", 13);\n i0.ɵɵlistener(\"click\", function Steps_li_2_ng_template_3_Template_a_click_0_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r24 = i0.ɵɵnextContext();\n const item_r1 = ctx_r24.$implicit;\n const i_r2 = ctx_r24.index;\n const ctx_r23 = i0.ɵɵnextContext();\n return ctx_r23.itemClick($event, item_r1, i_r2);\n })(\"keydown.enter\", function Steps_li_2_ng_template_3_Template_a_keydown_enter_0_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r27 = i0.ɵɵnextContext();\n const item_r1 = ctx_r27.$implicit;\n const i_r2 = ctx_r27.index;\n const ctx_r26 = i0.ɵɵnextContext();\n return ctx_r26.itemClick($event, item_r1, i_r2);\n });\n i0.ɵɵelementStart(1, \"span\", 8);\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, Steps_li_2_ng_template_3_span_3_Template, 2, 1, \"span\", 9);\n i0.ɵɵtemplate(4, Steps_li_2_ng_template_3_ng_template_4_Template, 1, 1, \"ng-template\", null, 14, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const _r19 = i0.ɵɵreference(5);\n\n const ctx_r28 = i0.ɵɵnextContext();\n const item_r1 = ctx_r28.$implicit;\n const i_r2 = ctx_r28.index;\n const ctx_r6 = i0.ɵɵnextContext();\n i0.ɵɵattribute(\"href\", item_r1.url, i0.ɵɵsanitizeUrl)(\"target\", item_r1.target)(\"id\", item_r1.id)(\"tabindex\", item_r1.disabled || i_r2 !== ctx_r6.activeIndex && ctx_r6.readonly ? null : item_r1.tabindex ? item_r1.tabindex : \"0\");\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(i_r2 + 1);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", item_r1.escape !== false)(\"ngIfElse\", _r19);\n }\n}\n\nconst _c1 = function (a0, a1) {\n return {\n \"p-highlight p-steps-current\": a0,\n \"p-disabled\": a1\n };\n};\n\nfunction Steps_li_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"li\", 3, 4);\n i0.ɵɵtemplate(2, Steps_li_2_a_2_Template, 6, 17, \"a\", 5);\n i0.ɵɵtemplate(3, Steps_li_2_ng_template_3_Template, 6, 7, \"ng-template\", null, 6, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const item_r1 = ctx.$implicit;\n const i_r2 = ctx.index;\n\n const _r5 = i0.ɵɵreference(4);\n\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(item_r1.styleClass);\n i0.ɵɵproperty(\"ngStyle\", item_r1.style)(\"tooltipOptions\", item_r1.tooltipOptions)(\"ngClass\", i0.ɵɵpureFunction2(9, _c1, ctx_r0.isActive(item_r1, i_r2), item_r1.disabled || ctx_r0.readonly && !ctx_r0.isActive(item_r1, i_r2)));\n i0.ɵɵattribute(\"aria-selected\", i_r2 === ctx_r0.activeIndex)(\"aria-expanded\", i_r2 === ctx_r0.activeIndex);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.isClickableRouterLink(item_r1))(\"ngIfElse\", _r5);\n }\n}\n\nconst _c2 = function (a1) {\n return {\n \"p-steps p-component\": true,\n \"p-readonly\": a1\n };\n};\n\nclass Steps {\n constructor(router, route, cd) {\n this.router = router;\n this.route = route;\n this.cd = cd;\n this.activeIndex = 0;\n this.readonly = true;\n this.activeIndexChange = new EventEmitter();\n }\n\n ngOnInit() {\n this.subscription = this.router.events.subscribe(() => this.cd.markForCheck());\n }\n\n itemClick(event, item, i) {\n if (this.readonly || item.disabled) {\n event.preventDefault();\n return;\n }\n\n this.activeIndexChange.emit(i);\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item,\n index: i\n });\n }\n }\n\n isClickableRouterLink(item) {\n return item.routerLink && !this.readonly && !item.disabled;\n }\n\n isActive(item, index) {\n if (item.routerLink) return this.router.isActive(item.routerLink, false) || this.router.isActive(this.router.createUrlTree([item.routerLink], {\n relativeTo: this.route\n }).toString(), false);else return index === this.activeIndex;\n }\n\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n\n}\n\nSteps.ɵfac = function Steps_Factory(t) {\n return new (t || Steps)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\n\nSteps.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Steps,\n selectors: [[\"p-steps\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n activeIndex: \"activeIndex\",\n model: \"model\",\n readonly: \"readonly\",\n style: \"style\",\n styleClass: \"styleClass\"\n },\n outputs: {\n activeIndexChange: \"activeIndexChange\"\n },\n decls: 3,\n vars: 7,\n consts: [[3, \"ngClass\", \"ngStyle\"], [\"role\", \"tablist\"], [\"class\", \"p-steps-item\", \"role\", \"tab\", \"pTooltip\", \"\", 3, \"ngStyle\", \"class\", \"tooltipOptions\", \"ngClass\", 4, \"ngFor\", \"ngForOf\"], [\"role\", \"tab\", \"pTooltip\", \"\", 1, \"p-steps-item\", 3, \"ngStyle\", \"tooltipOptions\", \"ngClass\"], [\"menuitem\", \"\"], [\"role\", \"presentation\", \"class\", \"p-menuitem-link\", 3, \"routerLink\", \"queryParams\", \"routerLinkActive\", \"routerLinkActiveOptions\", \"fragment\", \"queryParamsHandling\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"state\", \"click\", \"keydown.enter\", 4, \"ngIf\", \"ngIfElse\"], [\"elseBlock\", \"\"], [\"role\", \"presentation\", 1, \"p-menuitem-link\", 3, \"routerLink\", \"queryParams\", \"routerLinkActive\", \"routerLinkActiveOptions\", \"fragment\", \"queryParamsHandling\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"state\", \"click\", \"keydown.enter\"], [1, \"p-steps-number\"], [\"class\", \"p-steps-title\", 4, \"ngIf\", \"ngIfElse\"], [\"htmlLabel\", \"\"], [1, \"p-steps-title\"], [1, \"p-steps-title\", 3, \"innerHTML\"], [\"role\", \"presentation\", 1, \"p-menuitem-link\", 3, \"click\", \"keydown.enter\"], [\"htmlRouteLabel\", \"\"]],\n template: function Steps_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵelementStart(1, \"ul\", 1);\n i0.ɵɵtemplate(2, Steps_li_2_Template, 5, 12, \"li\", 2);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(5, _c2, ctx.readonly))(\"ngStyle\", ctx.style);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngForOf\", ctx.model);\n }\n },\n directives: [i2.NgClass, i2.NgStyle, i2.NgForOf, i3.Tooltip, i2.NgIf, i1.RouterLinkWithHref, i1.RouterLinkActive],\n styles: [\".p-steps{position:relative}.p-steps ul{padding:0;margin:0;list-style-type:none;display:flex}.p-steps-item{position:relative;display:flex;justify-content:center;flex:1 1 auto}.p-steps-item .p-menuitem-link{display:inline-flex;flex-direction:column;align-items:center;overflow:hidden;text-decoration:none}.p-steps.p-steps-readonly .p-steps-item{cursor:auto}.p-steps-item.p-steps-current .p-menuitem-link{cursor:default}.p-steps-title{white-space:nowrap}.p-steps-number{display:flex;align-items:center;justify-content:center}.p-steps-title{display:block}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(Steps, [{\n type: Component,\n args: [{\n selector: 'p-steps',\n template: `\n