{"version":3,"file":"panic-button.feature-flndg7os.js","sources":["packages/sports/web/app/src/panic-button/panic-button.component.html","packages/sports/web/app/src/panic-button/panic-button.component.ts","packages/sports/web/app/src/panic-button/widget-registration.service.ts","packages/sports/web/app/src/panic-button/panic-button.feature.ts"],"sourcesContent":["@if (isPanicButtonEnabled && m2User.isAuthenticated) {\n
\n
\n
\n {{ sitecore.panicButtonMessages.PanicButtonDesktopHeader }}\n
\n
\n {{ sitecore.panicButtonMessages.PanicButtonDesktopText }}\n
\n
\n \n {{ sitecore.panicButtonMessages.PanicButtonActivateNow }}\n \n \n
\n}\n","import { Component, HostBinding, inject } from '@angular/core';\n\nimport { ARCConfig, Sitecore } from '@frontend/sports/common/client-config-data-access';\nimport { ThemeOptions } from '@frontend/sports/common/ui/shared';\nimport { SportsThemedButtonDirective } from '@frontend/sports/common/ui/sports-themed-button';\nimport { UserService } from '@frontend/sports/user/feature';\nimport { DsButton } from '@frontend/ui/button';\nimport { ProductHomepagesConfig, WINDOW } from '@frontend/vanilla/core';\nimport { IconCustomComponent } from '@frontend/vanilla/shared/icons';\n\nimport { WidgetComponent } from '../widget/core/widget-registry.service';\n\n@Component({\n selector: 'ms-panic-button',\n templateUrl: './panic-button.component.html',\n imports: [IconCustomComponent, DsButton, SportsThemedButtonDirective],\n standalone: true,\n})\nexport class PanicButtonComponent extends WidgetComponent {\n @HostBinding('class') className = 'panic-button-widget';\n\n isPanicButtonEnabled: boolean;\n readonly buttonThemeInverse: ThemeOptions = { oddset: true };\n\n constructor(\n public sitecore: Sitecore,\n private productHomepagesConfig: ProductHomepagesConfig,\n public m2User: UserService,\n private aRCConfig: ARCConfig,\n ) {\n super();\n\n this.isPanicButtonEnabled = this.aRCConfig.showSelfExclusionLock;\n }\n\n onPanicClick(): void {\n this.#window.location.href = this.productHomepagesConfig.portal + this.sitecore.panicButtonMessages.PanicButtonPath;\n }\n\n readonly #window = inject(WINDOW);\n}\n","import { Injectable } from '@angular/core';\n\nimport { WidgetType } from '@frontend/sports/types/components/widget';\nimport { OnFeatureInit } from '@frontend/vanilla/core';\n\nimport { WidgetRegistryService } from '../widget/core/widget-registry.service';\nimport { PanicButtonComponent } from './panic-button.component';\n\n@Injectable({ providedIn: 'root' })\nexport class WidgetRegistrationService implements OnFeatureInit {\n constructor(private widgetRegistry: WidgetRegistryService) {}\n\n onFeatureInit(): void {\n this.widgetRegistry.registerLazy(WidgetType.PanicButton, PanicButtonComponent);\n }\n}\n","import { runOnFeatureInit } from '@frontend/vanilla/core';\n\nimport { WidgetRegistrationService } from './widget-registration.service';\n\nexport const provide = () => {\n return runOnFeatureInit(WidgetRegistrationService);\n};\n"],"names":["ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onPanicClick","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","sitecore","panicButtonMessages","PanicButtonDesktopHeader","PanicButtonDesktopText","ɵɵproperty","buttonThemeInverse","ɵɵtextInterpolate1","PanicButtonActivateNow","PanicButtonComponent","_window","WidgetComponent","constructor","productHomepagesConfig","m2User","aRCConfig","__privateAdd","className","oddset","__privateSet","inject","WINDOW","isPanicButtonEnabled","showSelfExclusionLock","__privateGet","location","href","portal","PanicButtonPath","ɵɵdirectiveInject","Sitecore","ProductHomepagesConfig","UserService","ARCConfig","selectors","hostVars","hostBindings","rf","ctx","ɵɵclassMap","ɵɵtemplate","PanicButtonComponent_Conditional_0_Template","ɵɵconditional","isAuthenticated","IconCustomComponent","DsButton","SportsThemedButtonDirective","encapsulation","_PanicButtonComponent","WidgetRegistrationService","widgetRegistry","onFeatureInit","registerLazy","ɵɵinject","WidgetRegistryService","factory","ɵfac","providedIn","_WidgetRegistrationService","provide","runOnFeatureInit"],"mappings":"+bACIA,SAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,IAAAA,CAAAA,CAA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