1import { y as k } from "./chunk-xgti9j2t.js"; 2import { $r as f, Ai as C, Hn as d, Kn as e, Li as l, Mo as _, No as a, Pi as D, R as g, Rn as v, Sa as b, Sn as B, Y as w, fi as I, gt as r, ta as x, tn as M } from "./chunk-c97c17u8.js"; 3import { M as L } from "./chunk-l3jkbhly.js"; 4import { p as S } from "./chunk-k52vj1ic.js"; 5import { o as y } from "./chunk-l24fzhmb.js"; 6import { A, v as G } from "./chunk-jrtaqqwj.js"; 7import { o as P, t as E } from "./chunk-pesy0vb6.js"; 8import { D as T, o as O } from "./chunk-llc8ry2a.js"; 9import { ut as V } from "./chunk-fbjoug0d.js"; 10import { a as Z } from "./chunk-ewplex8i.js"; 11import { n as J } from "./chunk-c18gpzrj.js"; 12import { r as K } from "./chunk-c9rg1mp5.js"; 13import { t as j } from "./chunk-kyqvtgtk.js"; 14import { Y as R, gt as W } from "./chunk-w0x32net.js"; 15import { p as F } from "./chunk-bhnvkbxx.js"; 16import { ot as H } from "./chunk-f2v2cgea.js"; 17import { c as N } from "./chunk-og5uebri.js"; 18import { Dn as q, Tt as U, jr as X } from "./chunk-go6pvd0a.js"; 19import { t as z } from "./chunk-k4et3zlq.js"; 20import { i as Q, p as Y } from "./chunk-hul0ult7.js"; 21import { n as $ } from "./chunk-lmnwxprc.js"; 22import { r as ii } from "./chunk-ilfhy0in.js"; 23import { n as ti } from "./chunk-ohg30iel.js"; 24import { $ as ni } from "./chunk-iuhjzybw.js"; 25import { a as oi } from "./chunk-kanq2829.js"; 26import { i as ri } from "./chunk-lareec7a.js"; 27import { n as si } from "./chunk-im7lpx1v.js"; 28import { fn as ai, mn as ei } from "./chunk-l8i5rin8.js"; 29import { r as _i } from "./chunk-i1knml6i.js"; 30import { Cr as mi, Er as ci, Fh as hi, Ia as pi, In as ui, Pa as ki, Ra as fi, Ta as Ci, Ua as di, Uh as li, Va as Di, Zn as gi, er as vi, fo as bi, fr as Bi, gr as wi, io as Ii, ir as xi, ja as Mi, ka as Li, qn as Si, so as yi, uo as Ai } from "./chunk-g8mtbi19.js"; 31import { $n as Gi } from "./chunk-iq8thase.js"; 32import { n as Pi } from "./chunk-eto2r310.js"; 33import { t as Ei } from "./chunk-ozq493wr.js"; 34import { S as Ti } from "./chunk-kh77c4xb.js"; 35import { n as Oi } from "./chunk-fzaji7dq.js"; 36import { n as Vi } from "./chunk-g3nn5ihv.js"; 37import { a as Zi, l as Ji } from "./chunk-hgp0v2sq.js"; 38import { n as Ki } from "./chunk-n6jntq8w.js"; 39import { n as ji } from "./chunk-eber62ai.js"; 40import { i as Ri } from "./chunk-jipijatq.js"; 41import { i as Wi, l as Fi, n as Hi, o as Ni } from "./chunk-b9m59xwf.js"; 42import { n as qi } from "./chunk-hx6y7kek.js"; 43import { n as Ui, t as Xi } from "./chunk-kn4tq1y4.js"; 44import { n as zi } from "./chunk-j8braqzq.js"; 45import { r as Qi, t as Yi } from "./chunk-nk13yrgg.js"; 46import { n as $i, t as it } from "./chunk-jzudznh6.js"; 47import { t as tt } from "./chunk-l88as4nd.js"; 48import { i as nt } from "./chunk-os9i5de4.js"; 49import { n as ot } from "./chunk-p1lk0fbh.js"; 50import { n as rt, t as st } from "./chunk-iskf5dxw.js"; 51import { t as at } from "./chunk-o4f8w5yc.js"; 52function et(t, n) { 53 if (t & 1 && B(0, "ms-crm-promotion-container", 0), t & 2) { 54 let i = b(); 55 M("heightIncreaseAllowed", !0)("showCardShadow", !0)("promotions", i.promotions); 56 } 57} 58var m, c, h; 59function p() { 60 return (p = at((() => { 61 k(), D(), L(), S(), y(), A(), P(), T(), V(), Z(), J(), K(), j(), O(), W(), F(), H(), R(), N(), X(), z(), Y(), Q(), $(), ii(), ti(), ni(), q(), li(), hi(), oi(), ri(), bi(), Ai(), si(), yi(), Ii(), di(), Di(), fi(), ei(), pi(), ki(), Mi(), Li(), Ci(), ci(), mi(), wi(), Bi(), xi(), vi(), gi(), Si(), ui(), _i(), Gi(), Pi(), Oi(), Vi(), Ji(), Ei(), Ti(), Ki(), ji(), Ri(), zi(), Fi(), qi(), Xi(), Qi(), $i(), tt(), nt(), ot(), rt(), m = (() => { 62 let t = class extends Ni { 63 constructor() { 64 super(...arguments), this.route = r(G), this.promoService = r(Zi), this.promoMapper = r(it), this.promoConfig = r(ai), this.eventDetailsModelService = r(Ui), this.widgetContextService = r(Wi), this.enhanceContextService = r(Yi), this.className = "promo-container-widget"; 65 } 66 onData() { 67 this.subscription?.unsubscribe(), this.subscription = this.promoService.promotions$.pipe(e((i) => ({ 68 promotions: i,
69 context: this.widgetContextService.getContext(this.route.snapshot) 70 })), x(({ promotions: i, context: o }) => g([_(() => o.page === "CompetitionLobby" && !!o.virtualCompetitionId, this.enhanceContextService.enhanceContext(o), a(o)), _(() => o.page === "EventDetailsPage", this.eventDetailsModelService?.detailedEventViewModel$ ?? a(void 0), a(void 0))]).pipe(e(([s, u]) => ({ 71 promotions: i, 72 enchancedContext: s, 73 eventViewModel: u?.model 74 })))), E(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 = C(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 && v(i.className); 97 }, 98 features: [f], 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 && w(0, et, 1, 3, "ms-crm-promotion-container", 0), n & 2 && l(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(Hi); 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 = I({ 126 token: t, 127 factory: t.ɵfac, 128 providedIn: "root" 129 }), t; 130 })(), h = () => U(c); 131 })))(); 132} 133p(); 134export { h as provide }; 135 136//# sourceMappingURL=chunk-onedwxgs.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.