1import { b as f } from "./chunk-i2pl4wu9.js"; 2import { $i as k, Ai as C, B as e, Co as d, Ei as l, Ui as g, W as r, Y as a, ao as D, bn as v, er as b, et as w, fr as B, ht as x, tr as _, un as I, va as L } from "./chunk-ql746sly.js"; 3import { j as y } from "./chunk-hcheit1f.js"; 4import { p as M } from "./chunk-b11o3szq.js"; 5import { ut as N } from "./chunk-fz42rx6r.js"; 6import { r as S } from "./chunk-icjzvqcx.js"; 7import { t as E } from "./chunk-jbaamz4y.js"; 8import { A as T, b as G } from "./chunk-c01xxjhs.js"; 9import { J, gt as j } from "./chunk-jtpxiaxj.js"; 10import { o as A } from "./chunk-jaxwt8s1.js"; 11import { j as P, v as V } from "./chunk-nhl74n6z.js"; 12import { o as q, t as R } from "./chunk-br9ckdzm.js"; 13import { p as K } from "./chunk-bl09vhvv.js"; 14import { ot as O } from "./chunk-f0xko016.js"; 15import { c as U } from "./chunk-n63cutws.js"; 16import { Dn as F, Tt as Y, jr as W } from "./chunk-eu7ozsb7.js"; 17import { a as z } from "./chunk-lt7tziae.js"; 18import { n as H } from "./chunk-gpn04stg.js"; 19import { t as Q } from "./chunk-lf77xnpz.js"; 20import { i as Z, p as X } from "./chunk-bnt36dw9.js"; 21import { n as $ } from "./chunk-d6iooz3w.js"; 22import { r as ii } from "./chunk-jouxu15i.js"; 23import { n as ti } from "./chunk-c8btpjog.js"; 24import { tt as ni } from "./chunk-dkzazc5t.js"; 25import { fn as oi, mn as ri } from "./chunk-b0owf95e.js"; 26import { a as si } from "./chunk-kanq2829.js"; 27import { i as ai } from "./chunk-hv7vgf8e.js"; 28import { n as ei } from "./chunk-odv3lgpg.js"; 29import { r as _i } from "./chunk-e73ndlg5.js"; 30import { Aa as mi, Dr as ci, Gh as hi, Ia as pi, Ja as ui, Jn as fi, Ka as ki, Lh as Ci, Ln as di, Pa as li, Qn as gi, Ua as Di, Va as vi, _r as bi, ar as wi, eg as Bi, fo as xi, ho as Ii, lo as Li, pr as yi, tr as Mi, wr as Ni, za as Si } from "./chunk-jrsxruoz.js"; 31import { $n as Ei } from "./chunk-mbdbb8r5.js"; 32import { n as Ti } from "./chunk-2opbn3h8.js"; 33import { a as Gi, i as Ji, l as ji, n as Ai } from "./chunk-bqrjc3xq.js"; 34import { n as Pi } from "./chunk-gii5kata.js"; 35import { t as Vi } from "./chunk-olrwlmxg.js"; 36import { r as qi, t as Ri } from "./chunk-lqjnxwsl.js"; 37import { i as Ki } from "./chunk-gevkd7h2.js"; 38import { n as Oi } from "./chunk-be8ojp17.js"; 39import { t as Ui } from "./chunk-k4tlf00o.js"; 40import { S as Fi } from "./chunk-kagrwll4.js"; 41import { n as Yi } from "./chunk-pb90mct9.js"; 42import { n as Wi } from "./chunk-ms9gi36p.js"; 43import { a as zi, l as Hi } from "./chunk-m6nqvv2w.js"; 44import { n as Qi } from "./chunk-klex6is8.js"; 45import { n as Zi, t as Xi } from "./chunk-lwuc4886.js"; 46import { i as $i } from "./chunk-j3qgoj1h.js"; 47import { n as it } from "./chunk-lkgqbf0b.js"; 48import { n as tt, t as nt } from "./chunk-imwc5iua.js"; 49import { t as ot } from "./chunk-l6oxogr0.js"; 50import { n as rt, t as st } from "./chunk-b2sfyfdu.js"; 51import { t as at } from "./chunk-o4f8w5yc.js"; 52function et(t, n) { 53 if (t & 1 && w(0, "ms-crm-promotion-container", 0), t & 2) { 54 let i = D(); 55 v("heightIncreaseAllowed", !0)("showCardShadow", !0)("promotions", i.promotions); 56 } 57} 58var m, c, h; 59function p() { 60 return (p = at((() => { 61 f(), k(), y(), M(), N(), S(), E(), T(), j(), A(), P(), q(), G(), K(), O(), J(), U(), W(), z(), H(), Q(), X(), Z(), $(), ii(), ti(), ni(), F(), Bi(), ri(), hi(), Ci(), si(), ai(), Ii(), ei(), xi(), Li(), ui(), ki(), Di(), vi(), Si(), pi(), li(), mi(), ci(), Ni(), bi(), yi(), wi(), Mi(), gi(), fi(), di(), _i(), Ei(), Ti(), ji(), Oi(), Ui(), Fi(), Pi(), Yi(), Wi(), Hi(), Ki(), Qi(), Vi(), Xi(), $i(), it(), qi(), tt(), ot(), rt(), m = (() => { 62 let t = class extends Gi { 63 constructor() { 64 super(...arguments), this.route = r(V), this.promoService = r(zi), this.promoMapper = r(nt), this.promoConfig = r(oi), this.eventDetailsModelService = r(Zi), this.widgetContextService = r(Ji), this.enhanceContextService = r(Ri), this.className = "promo-container-widget"; 65 } 66 onData() { 67 this.subscription?.unsubscribe(), this.subscription = this.promoService.promotions$.pipe(_((i) => ({ 68 promotions: i,
69 context: this.widgetContextService.getContext(this.route.snapshot) 70 })), L(({ promotions: i, context: o }) => b([e(() => o.page === "CompetitionLobby" && !!o.virtualCompetitionId, this.enhanceContextService.enhanceContext(o), a(o)), e(() => o.page === "EventDetailsPage", this.eventDetailsModelService?.detailedEventViewModel$ ?? a(void 0), a(void 0))]).pipe(_(([s, u]) => ({ 71 promotions: i, 72 enchancedContext: s, 73 eventViewModel: u?.model 74 })))), R(this.destroyRef)).subscribe(({ promotions: i, enchancedContext: o, eventViewModel: s }) => { 75 this.promotions = this.getPromotions(i, o, s), this.hasData = !!this.promotions.length, this.setWidgetLoaded(); 76 }); 77 } 78 getPromotions(i, o, s) { 79 switch (o.page) { 80 case "CompetitionLobby": return this.promoMapper.getByCompetition(i, [o.virtualCompetitionId ? o.realCompetitionId : o.competitionId]).slice(0, this.promoConfig.promotions.bannerCount.competitionLobby); 81 case "EventDetailsPage": return s ? this.promoMapper.getBannerPromotions(s.optionGroups, s, i).slice(0, this.promoConfig.promotions.bannerCount.eventView) : []; 82 default: return this.promoMapper.getBySport(i, +this.route.snapshot.params.sport).slice(0, this.promoConfig.promotions.bannerCount.sportLobby); 83 } 84 } 85 }; 86 return t.ɵfac = (() => { 87 let n; 88 return function(i) { 89 return (n || (n = g(t)))(i || t); 90 }; 91 })(), t.ɵcmp = d({ 92 type: t, 93 selectors: [["ms-promo-container-widget"]], 94 hostVars: 2, 95 hostBindings: function(n, i) { 96 n & 2 && I(i.className); 97 }, 98 features: [C], 99 decls: 1, 100 vars: 1, 101 consts: [[ 102 3, 103 "heightIncreaseAllowed", 104 "showCardShadow", 105 "promotions" 106 ]], 107 template: function(n, i) { 108 n & 1 && B(0, et, 1, 3, "ms-crm-promotion-container", 0), n & 2 && x(i.hidden ? -1 : 0); 109 }, 110 dependencies: [st], 111 encapsulation: 2, 112 changeDetection: 1 113 }), t; 114 })(), c = (() => { 115 let t = class { 116 constructor() { 117 this.registry = r(Ai); 118 } 119 onFeatureInit() { 120 this.registry.registerLazy("PromoContainer", m); 121 } 122 }; 123 return t.ɵfac = function(n) { 124 return new (n || t)(); 125 }, t.ɵprov = l({ 126 token: t, 127 factory: t.ɵfac, 128 providedIn: "root" 129 }), t; 130 })(), h = () => Y(c); 131 })))(); 132} 133p(); 134export { h as provide }; 135 136//# sourceMappingURL=chunk-Bdbx59229.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.