{"version":3,"file":"banner-widget.feature-fvmdonfw.js","sources":["packages/sports/web/app/src/banner/banner-widget.component.html","packages/sports/web/app/src/banner/banner-widget.component.ts","packages/sports/web/app/src/banner/widget-registration.service.ts","packages/sports/web/app/src/banner/banner-widget.feature.ts"],"sourcesContent":["@if (showLoader && hasData) {\n \n}\n\n@if (hasData && banner && (hideGamingCrossSellByArc$ | async) === false) {\n @if (ofType(banner, 'CasinoLink')) {\n \n } @else if (ofType(banner, 'SportLink')) {\n \n } @else if (ofType(banner, 'Jackpot')) {\n \n } @else if (ofType(banner, 'Games')) {\n \n } @else if (ofType(banner, 'Vyml')) {\n \n } @else if (ofType(banner, 'Esport')) {\n \n }\n}\n","import { AsyncPipe } from '@angular/common';\nimport { Component, HostBinding } from '@angular/core';\n\nimport { NOT_APPLICABLE } from '@frontend/sports/tracking/feature';\nimport { BannerType, BannerViewModel } from '@frontend/sports/types/components/banners/models';\nimport { DeviceService } from '@frontend/vanilla/core';\nimport { isEmpty } from 'lodash-es';\nimport { Observable } from 'rxjs';\n\nimport { ArcRestrictionService } from '../arc/arc-restriction.service';\nimport { ComponentLoaderComponent } from '../deferred/component-loader.component';\nimport { WidgetComponent } from '../widget/core/widget-registry.service';\nimport { BannerEsportComponent } from './banner-esport.component';\nimport { BannerGamesComponent } from './banner-games.component';\nimport { BannerJackpotComponent } from './banner-jackpot.component';\nimport { BannerTrackingService } from './banner-tracking.service';\nimport { ofType } from './banner.model';\nimport { CasinoBannerLinkComponent } from './casino-banner-link.component';\nimport { SportBannerLinkComponent } from './sport-banner-link.component';\nimport { VymlComponent } from './vyml.component';\nimport { VymlService } from './vyml.service';\n\n@Component({\n selector: 'ms-banner-widget',\n templateUrl: './banner-widget.component.html',\n standalone: true,\n imports: [\n AsyncPipe,\n BannerEsportComponent,\n BannerGamesComponent,\n BannerJackpotComponent,\n CasinoBannerLinkComponent,\n ComponentLoaderComponent,\n SportBannerLinkComponent,\n VymlComponent,\n ],\n providers: [BannerTrackingService, VymlService],\n // register a dedicated tracking service, to make sure modular-tracking.service overrides tracking.service\n})\nexport class BannerWidgetComponent extends WidgetComponent {\n @HostBinding('class') className = 'banner-widget';\n\n @HostBinding('class.esport')\n get esportClass() {\n return this.banner?.type === BannerType.Esport;\n }\n\n @HostBinding('style.--component-loader-height')\n get bannerComponentSize() {\n if (!this.showLoader) {\n return;\n }\n\n switch (this.banner?.type) {\n case BannerType.CasinoLink:\n return '70px';\n case BannerType.Games:\n case BannerType.Vyml:\n return '137px';\n case BannerType.Jackpot:\n return '100px';\n case BannerType.SportLink:\n return '76px';\n case BannerType.Esport:\n return '82px';\n default:\n return;\n }\n }\n\n @HostBinding('style.--component-loader-padding') bannerComponentPadding = '0';\n\n banner?: BannerViewModel;\n position = NOT_APPLICABLE;\n hideGamingCrossSellByArc$: Observable;\n showLoader = true;\n\n constructor(\n private device: DeviceService,\n private arcRestrictionService: ArcRestrictionService,\n ) {\n super();\n this.hideGamingCrossSellByArc$ = this.arcRestrictionService.gamingCrossSellEnabled$;\n }\n\n protected override onData(data?: BannerViewModel): void {\n if (this.device.isRobot) {\n this.hasData = false;\n } else {\n this.hasData = !isEmpty(data);\n this.banner = data;\n }\n\n this.setWidgetLoaded();\n }\n\n bannerDataLoaded(hasBannerData: boolean): void {\n this.hasData = hasBannerData;\n this.showLoader = false;\n this.setWidgetLoaded();\n }\n\n protected readonly ofType = ofType;\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 { BannerWidgetComponent } from './banner-widget.component';\n\n@Injectable({ providedIn: 'root' })\nexport class WidgetRegistrationService implements OnFeatureInit {\n constructor(private registry: WidgetRegistryService) {}\n\n onFeatureInit(): void {\n this.registry.registerLazy(WidgetType.Banner, BannerWidgetComponent);\n }\n}\n","import { runOnFeatureInit } from '@frontend/vanilla/core';\n\nimport { WidgetRegistrationService } from './widget-registration.service';\n\nexport function provide() {\n return [runOnFeatureInit(WidgetRegistrationService)];\n}\n"],"names":["ɵɵelement","l","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","bannerDataLoaded","ɵɵelementEnd","ɵɵproperty","banner","position","_r3","a","_r4","_r5","_r6","_r7","ɵɵtemplate","BannerWidgetComponent_Conditional_1_Conditional_0_Template","BannerWidgetComponent_Conditional_1_Conditional_1_Template","BannerWidgetComponent_Conditional_1_Conditional_2_Template","BannerWidgetComponent_Conditional_1_Conditional_3_Template","BannerWidgetComponent_Conditional_1_Conditional_4_Template","BannerWidgetComponent_Conditional_1_Conditional_5_Template","ɵɵconditional","ofType","BannerWidgetComponent","WidgetComponent","esportClass","_a","type","bannerComponentSize","showLoader","constructor","device","arcRestrictionService","className","bannerComponentPadding","NOT_APPLICABLE","hideGamingCrossSellByArc$","gamingCrossSellEnabled$","onData","data","isRobot","hasData","isEmpty","setWidgetLoaded","hasBannerData","ɵɵdirectiveInject","DeviceService","ArcRestrictionService","selectors","hostVars","hostBindings","rf","ctx","ɵɵclassMap","ɵɵstyleProp","ɵɵclassProp","w","BannerTrackingService","VymlService","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","BannerWidgetComponent_Conditional_0_Template","BannerWidgetComponent_Conditional_1_Template","ɵɵadvance","ɵɵpipeBind1","AsyncPipe","BannerEsportComponent","BannerGamesComponent","BannerJackpotComponent","CasinoBannerLinkComponent","ComponentLoaderComponent","SportBannerLinkComponent","VymlComponent","encapsulation","_BannerWidgetComponent","WidgetRegistrationService","registry","onFeatureInit","registerLazy","ɵɵinject","WidgetRegistryService","u","factory","ɵfac","providedIn","_WidgetRegistrationService","provide","runOnFeatureInit"],"mappings":"wtBACIA,SAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,EAAAA,CAAA,EAAA,qBAAA,EAA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