PageSourceSearch

https://www.il.betmgm.com/ClientDist/browser/chunk-Bly0c683e.js

js betmgm.com collected 2026-09-24 09:04:42 UTC 15,263 bytes, 435 lines download raw bytes

1import { n as X, t as tt, y as et } from "./chunk-xgti9j2t.js";
2import { $ as M, $r as nt, Aa as it, Ba as C, Ea as p, Hn as N, Kn as _, Li as E, No as I, Pi as at, Pt as l, R as rt, Ro as P, Sa as h, Sn as O, Sr as ot, To as st, Y as S, Yn as ct, a as ut, f as lt, fa as g, fi as x, fo as mt, fr as dt, go as ft, gt as c, h as pt, ni as B, oi as L, s as A, sr as ht, t as $, ta as _t, tn as m, tr as gt, xi as v, zo as vt } from "./chunk-c97c17u8.js";
3import { M as kt } from "./chunk-l3jkbhly.js";
4import { p as Ct } from "./chunk-k52vj1ic.js";
5import { o as Nt } from "./chunk-l24fzhmb.js";
6import { A as Et } from "./chunk-jrtaqqwj.js";
7import { i as Ot, o as St, t as R } from "./chunk-pesy0vb6.js";
8import { D as xt, o as Tt } from "./chunk-llc8ry2a.js";
9import { ut as yt } from "./chunk-fbjoug0d.js";
10import { a as bt } from "./chunk-ewplex8i.js";
11import { n as Dt } from "./chunk-c18gpzrj.js";
12import { r as wt } from "./chunk-c9rg1mp5.js";
13import { t as Mt } from "./chunk-kyqvtgtk.js";
14import { Y as It, gt as Pt } from "./chunk-w0x32net.js";
15import { p as Bt } from "./chunk-bhnvkbxx.js";
16import { ot as Lt } from "./chunk-f2v2cgea.js";
17import { c as At } from "./chunk-og5uebri.js";
18import { Dn as $t, Sn as Rt, Tt as zt, jr as Ut } from "./chunk-go6pvd0a.js";
19import { t as Gt } from "./chunk-k4et3zlq.js";
20import { i as Ft, p as Vt } from "./chunk-hul0ult7.js";
21import { n as Ht } from "./chunk-lmnwxprc.js";
22import { r as Wt } from "./chunk-ilfhy0in.js";
23import { n as jt } from "./chunk-ohg30iel.js";
24import { $ as qt } from "./chunk-iuhjzybw.js";
25import { a as Yt } from "./chunk-kanq2829.js";
26import { i as Zt, o as Jt } from "./chunk-lareec7a.js";
27import { n as Kt } from "./chunk-im7lpx1v.js";
28import { bt as Qt, ir as z, mn as Xt } from "./chunk-l8i5rin8.js";
29import { c as te } from "./chunk-pccxjem8.js";
30import { r as ee, t as ne } from "./chunk-i1knml6i.js";
31import { $t as ie, At as ae, Cr as re, Dt as oe, Ia as se, Jr as U, Kn as ce, Or as ue, Pa as le, Ra as me, Ta as de, Ua as fe, Va as pe, Vn as o, Wr as he, io as _e, ja as ge, ka as ve, oo as ke, qa as T, qn as Ce, ro as G, so as Ne, uo as Ee } from "./chunk-g8mtbi19.js";
32import { $n as Oe, Br as Se, ji as xe } from "./chunk-iq8thase.js";
33import { n as Te } from "./chunk-eto2r310.js";
34import { n as ye } from "./chunk-n6jntq8w.js";
35import { n as be } from "./chunk-nu8d10du.js";
36import { n as De, t as we } from "./chunk-eber62ai.js";
37import { i as Me } from "./chunk-jipijatq.js";
38import { n as Ie, t as Pe } from "./chunk-jf9hdnex.js";
39import { r as Be } from "./chunk-b81t2lx1.js";
40import { t as Le } from "./chunk-fc584apf.js";
41import { a as Ae, r as $e } from "./chunk-eaht5xxc.js";
42import { l as Re, n as ze, o as Ue } from "./chunk-b9m59xwf.js";
43import { n as Ge, t as Fe } from "./chunk-j8braqzq.js";
44import { r as Ve } from "./chunk-nk13yrgg.js";
45import { c as He, t as We } from "./chunk-mkjsekfa.js";
46import { n as je, t as qe } from "./chunk-fmcihc9q.js";
47import { r as Ye, t as Ze } from "./chunk-l0sfrsyk.js";
48import { t as Je } from "./chunk-o4f8w5yc.js";
49function Ke(e, r) {
50	if (e & 1 && O(0, "vn-icon", 0), e & 2) {
51		let t = h();
52		m("size", t.size())("name", t.flagName());
53	}
54}
55function Qe(e, r) {
56	e & 1 && M(0), e & 2 && L(" ", h().eventCountText(), " ");
57}
58function Xe(e, r, t) {
59	let n = tn(e);
60	if (n.size === 0) return [];
61	let i = Array.from({ length: e.length });
62	for (let a of r) {
63		if (!a) continue;
64		let s = {
65			id: a.id,
66			name: a.name
67		};
68		for (let u of T(a, ke(a.id))) nn(n, i, u, s, t), an(n, i, u, s, t);
69	}
70	return i.filter((a) => a !== void 0 && a.eventCount > 0);
71}
72function tn(e) {
73	let r = e.map((t, n) => [en(t), n]);
74	return new Map(r);
75}
76function en(e) {
77	switch (e.sourceType) {
78		case "Region": return F(e.regionId);
79		case "Competition": return D(e.competitionId);
80	}
81}
82function y(e, r, t, n) {
83	return {
84		title: e,
85		link: r,
86		eventCount: t,
87		flagId: n
88	};
89}
90function nn(e, r, t, n, i) {
91	let a = e.get(F(t.id));
92	if (a === void 0) return;
93	let s = {
94		id: t.id,
95		name: t.name
96	};
97	r[a] = y(t.name, i(n, s, void 0, void 0, "Region"), b(t.counts), String(t.id));
98}
99function an(e, r, t, n, i) {
100	for (let a of T(t, G.Competition)) {
101		rn(e, r, t, a, n, i);
102		for (let s of T(a, G.VirtualCompetitionGroup)) on(e, r, t, a, s, n, i);
103	}
104}
105function rn(e, r, t, n, i, a) {
106	let s = {
107		id: t.id,
108		name: t.name
109	}, u = {
110		id: n.id,
111		name: n.name,
112		prefix: n.prefix
113	};
114	for (let k of [n.id, ...n.siblings]) {
115		let f = e.get(D(k));
116		f !== void 0 && (n.isVirtual && r[f] !== void 0 || (r[f] = y(n.name, a(i, s, u, void 0, "Competition"), b(n.counts), String(t.id))));
117	}
118}
119function on(e, r, t, n, i, a, s) {
120	let u = {
121		id: t.id,
122		name: t.name
123	}, k = {
124		id: n.id,
125		name: n.name,
126		prefix: n.prefix
127	}, f = {
128		id: i.id,
129		name: i.name
130	}, K = n.name ? `${n.name} ${i.name}` : i.name;
131	for (let Q of [i.id, ...i.siblings]) {
132		let w = e.get(D(Q));
133		w !== void 0 && (r[w] = y(K, s(a, u, k, f, "Competition"), b(i.counts), String(t.id)));
134	}
135}
136function b(e) {
137	return (e?.preMatch ?? 0) + (e?.live ?? 0);
138}
139function D(e) {
140	return `c-${e}`;
141}
142function F(e) {
143	return `r-${e}`;
144}
145function sn(e, r, t, n) {
146	return {
147		sitecoreId: e.sitecoreId,
148		userSegmentGroups: e.userSegmentGroups,
149		moduleName: e.type,
150		modulePosition: `${e.location}|${e.order}`,
151		moduleCustomName: e.templateName,
152		moduleSource: n ? `composable|${n.templateName}` : "standard module",
153		pageLayout: r ? [
154			r.folder,
155			t,
156			r.name
157		].filter(Jt).join("/") : void 0
158	};
159}
160function cn(e, r) {
161	if (e & 1 && O(0, "ms-featured-events-card", 2), e & 2) {
162		let t = r.$implicit, n = h(2);
163		m("card", t)("trackingContext", n.trackingContext());
164	}
165}
166function un(e, r) {
167	if (e & 1) {
168		let t = ot();
169		p(0, "ms-scroll-adapter", 0)(1, "div", 1), pt(2, cn, 1, 2, "ms-featured-events-card", 2, q), g()(), p(4, "ms-content-ready", 3), $("contentReady", function() {
170			return dt(t), vt(h().isContentReady.set(!0));
171		}), g();
172	}
173	if (e & 2) {
174		h();
175		let t = ut(0);
176		m("scrollItems", t), l(2), ct(t);
177	}
178}
179function ln() {
180	return [zt(Z)];
181}
182var V, d, H, W, j, q, Y, Z;
183function J() {
184	return (J = Je((() => {
185		et(), at(), kt(), Ct(), Nt(), Et(), St(), xt(), yt(), bt(), Dt(), wt(), Mt(), Tt(), Pt(), Bt(), Lt(), It(), At(), Ut(), Gt(), Vt(), Ft(), Ht(), Wt(), jt
185(), qt(), $t(), Yt(), Zt(), Ee(), Kt(), Ne(), _e(), fe(), pe(), me(), Xt(), se(), le(), ge(), ve(), de(), he(), re(), te(), Ce(), ee(), ie(), ae(), oe(), Oe(), Te(), Ze(), ye(), be(), De(), Me(), Ie(), Be(), Le(), Ae(), Ge(), Re(), qe(), Ve(), He(), V = (() => {
186			class e {
187				flagId = v();
188				size = v("24");
189				countryFlagsService = c(je);
190				flagName = C(() => {
191					let t = this.flagId();
192					return t ? this.countryFlagsService.getFlagName(t) : void 0;
193				});
194				static ɵfac = function(t) {
195					return new (t || e)();
196				};
197				static ɵcmp = N({
198					type: e,
199					selectors: [["ms-flag-icon"]],
200					inputs: {
201						flagId: [1, "flagId"],
202						size: [1, "size"]
203					},
204					decls: 1,
205					vars: 1,
206					consts: [[
207						3,
208						"size",
209						"name"
210					]],
211					template: function(t, n) {
212						t & 1 && S(0, Ke, 1, 2, "vn-icon", 0), t & 2 && E(n.flagName() ? 0 : -1);
213					},
214					dependencies: [ne],
215					encapsulation: 2
216				});
217			}
218			return e;
219		})(), d = {
220			category: "Links",
221			label: "Quick Links",
222			actionLoad: "load",
223			notApplicable: "not applicable",
224			location: "featured"
225		}, H = (() => {
226			class e {
227				trackingService = c(ce);
228				trackNavigation(t, n) {
229					this.trackingService.track(o.EVENT_TRACKING, {
230						[o.COMPONENT_CATEGORY_EVENT]: d.category,
231						[o.COMPONENT_LABEL_EVENT]: d.label,
232						[o.COMPONENT_ACTION_EVENT]: d.actionLoad,
233						[o.COMPONENT_POSITION_EVENT]: d.notApplicable,
234						[o.COMPONENT_LOCATION_EVENT]: d.location,
235						[o.COMPONENT_EVENT_DETAILS]: t,
236						[o.COMPONENT_SITECORE_ID]: n.sitecoreId || "not applicable",
237						[o.COMPONENT_USER_SEGMENTS]: n.userSegmentGroups || "not applicable",
238						[o.COMPONENT_MODULE_NAME]: n.moduleName,
239						[o.COMPONENT_MODULE_POSITION]: n.modulePosition,
240						[o.COMPONENT_MODULE_CUSTOM_NAME]: n.moduleCustomName || "not applicable",
241						[o.COMPONENT_MODULE_SOURCE]: n.moduleSource,
242						[o.COMPONENT_PAGE_LAYOUT]: n.pageLayout || "not applicable"
243					});
244				}
245				static ɵfac = function(t) {
246					return new (t || e)();
247				};
248				static ɵprov = x({
249					token: e,
250					factory: e.ɵfac,
251					providedIn: "root"
252				});
253			}
254			return e;
255		})(), W = (() => {
256			class e {
257				card = v.required();
258				trackingContext = v.required();
259				widgetConfig = c(z);
260				trackingService = c(H);
261				messages = Ot(this.widgetConfig.whenReady.pipe(_(() => this.widgetConfig.messages)));
262				eventCountText = C(() => {
263					let t = this.card().eventCount, n = this.messages();
264					if (!(t <= 0 || !n)) return Se(t === 1 ? n.Match : n.Matches, { count: t });
265				});
266				trackNavigation() {
267					this.trackingService.trackNavigation(this.card().title, this.trackingContext());
268				}
269				static ɵfac = function(t) {
270					return new (t || e)();
271				};
272				static ɵcmp = N({
273					type: e,
274					selectors: [["ms-featured-events-card"]],
275					inputs: {
276						card: [1, "card"],
277						trackingContext: [1, "trackingContext"]
278					},
279					decls: 8,
280					vars: 8,
281					consts: [
282						[
283							"msThemedCard",
284							"",
285							"surface",
286							"lowest",
287							3,
288							"border",
289							"elevated"
290						],
291						[
292							1,
293							"featured-event-item",
294							3,
295							"click",
296							"href"
297						],
298						[
299							"size",
300							"24",
301							3,
302							"flagId"
303						],
304						[1, "featured-event-details"],
305						[1, "featured-event-title"],
306						[1, "featured-event-count-text"]
307					],
308					template: function(t, n) {
309						t & 1 && (p(0, "ds-card", 0)(1, "a", 1), $("click", function() {
310							return n.trackNavigation();
311						}), O(2, "ms-flag-icon", 2), p(3, "div", 3)(4, "span", 4), M(5), g(), p(6, "span", 5), S(7, Qe, 1, 1), g()()()()), t & 2 && (m("border", !0)("elevated", !0), l(), m("href", n.card().link, lt), A("aria-label", n.card().title + (n.eventCountText() ? ", " + n.eventCountText() : "")), l(), m("flagId", n.card().flagId), A("aria-hidden", !0), l(3), L(" ", n.card().title, " "), l(2), E(n.eventCountText() ? 7 : -1));
312					},
313					dependencies: [
314						xe,
315						Pe,
316						V,
317						Rt
318					],
319					styles: ["[_nghost-%COMP%]{display:block;flex:0 0 auto;min-width:140px}.featured-event-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:var(--%NS%semantic-spacing-container-padding-lg) var(--%NS%semantic-spacing-container-padding-2xl);transition:background-color .2s ease;box-sizing:border-box;gap:var(--%NS%semantic-spacing-inline-lg);height:100%;max-width:250px}.featured-event-item[_ngcontent-%COMP%]:hover{background-color:var(--%NS%semantic-color-surface-container-lowest-hover);opacity:.9}.featured-event-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;gap:var(--%NS%semantic-spacing-inline-xs)}.featured-event-title[_ngcontent-%COMP%]{font-size:var(--%NS%semantic-typography-label-lg-strong-font-size);font-weight:var(--%NS%semantic-typography-label-lg-strong-font-we
319ight);line-height:var(--%NS%semantic-typography-label-lg-strong-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--%NS%semantic-color-on-surface-base)}.featured-event-count-text[_ngcontent-%COMP%]{font-size:var(--%NS%semantic-typography-label-sm-font-size);font-weight:var(--%NS%semantic-typography-label-sm-font-weight);color:var(--%NS%semantic-color-on-surface-subtle);line-height:var(--%NS%semantic-typography-label-sm-line-height);white-space:nowrap;height:var(--%NS%semantic-size-x4)}"]
320				});
321			}
322			return e;
323		})(), j = (() => {
324			class e {
325				sportsCacheService = c(Fe);
326				urlHelper = c(ue);
327				createEventCards(t) {
328					let n = t.featuredEvents;
329					if (!n?.length) return I([]);
330					let i = [...new Set(n.map((a) => a.sportId))];
331					return i.length === 0 ? I([]) : mt(i.map((a) => this.sportsCacheService.getSport(a))).pipe(_((a) => Xe(n, a, this.resolveLink)));
332				}
333				resolveLink = (t, n, i, a, s) => s === "Region" && n ? this.urlHelper.getSportUrl(t, U.Betting, n) : s === "Competition" && i ? this.urlHelper.getSportUrl(t, U.Betting, n, i, a) : "#";
334				static ɵfac = function(t) {
335					return new (t || e)();
336				};
337				static ɵprov = x({
338					token: e,
339					factory: e.ɵfac,
340					providedIn: "root"
341				});
342			}
343			return e;
344		})(), q = (e, r) => r.link, Y = (() => {
345			class e extends Ue {
346				featuredEventsConfig = c(z);
347				cdnCachingConfig = c(Qt);
348				apiService = c(We);
349				dataService = c(j);
350				accessorService = c(we);
351				data$ = new ht(void 0);
352				featuredEvents = it([]);
353				trackingContext = C(() => sn(this.config, this.accessorService.getLayoutTemplate(), this.accessorService.getPage(), this.parent));
354				constructor() {
355					super(), this.data$.pipe(P((t) => t !== void 0), _t((t) => rt([this.dataService.createEventCards(t), this.preloadConfig()]).pipe(B(1), _(([n]) => n))), R()).subscribe((t) => {
356						this.hasData = t.length > 0, this.hasData || this.handleEmptyData(), this.setWidgetLoaded(), this.featuredEvents.set(t);
357					});
358				}
359				onData(t, n) {
360					if (!t?.featuredEvents) {
361						this.getData(n).pipe(R(this.destroyRef)).subscribe((i) => {
362							this.data$.next(i);
363						});
364						return;
365					}
366					this.data$.next(t);
367				}
368				getDataContext() {
369					let t = super.getDataContext(), n = this.cdnCachingConfig.widgets.includes("FeaturedEvents");
370					return n ? X(tt({}, t), { shouldIncludePayload: n }) : t;
371				}
372				getData(t) {
373					return this.apiService.getWidget(this.getDataContext(), this.getRequestContext(), !t, !1).pipe(_(({ payload: n }) => n), P((n) => n !== void 0), B(1));
374				}
375				preloadConfig() {
376					return this.featuredEventsConfig.whenReady;
377				}
378				static ɵfac = function(t) {
379					return new (t || e)();
380				};
381				static ɵcmp = N({
382					type: e,
383					selectors: [["ms-featured-events-widget"]],
384					features: [nt],
385					decls: 2,
386					vars: 2,
387					consts: [
388						[3, "scrollItems"],
389						[1, "featured-events-container"],
390						[
391							3,
392							"card",
393							"trackingContext"
394						],
395						[3, "contentReady"]
396					],
397					template: function(t, n) {
398						if (t & 1 && (ft(0), S(1, un, 5, 1)), t & 2) {
399							let i = gt(n.featuredEvents());
400							l(), E(!n.hidden && i.length > 0 ? 1 : -1);
401						}
402					},
403					dependencies: [
404						$e,
405						W,
406						Ye
407					],
408					styles: ["@charset \"UTF-8\";[_nghost-%COMP%]{display:block}.featured-events-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;gap:var(--%NS%semantic-spacing-inline-lg);padding:0 var(--%NS%semantic-spacing-inline-lg)}@media(min-width:960px){.featured-events-container[_ngcontent-%COMP%]{padding:0}}"]
409				});
410			}
411			return e;
412		})(), Z = (() => {
413			class e {
414				registry = c(ze);
415				injector = c(st);
416				onFeatureInit() {
417					this.registry.registerLazy("FeaturedEvents", Y, this.injector);
418				}
419				static ɵfac = function(t) {
420					return new (t || e)();
421				};
422				static ɵprov = x({
423					token: e,
424					factory: e.ɵfac,
425					providedIn: "root"
426				});
427			}
428			return e;
429		})();
430	})))();
431}
432J();
433export { ln as provide };
434
435//# sourceMappingURL=chunk-Bly0c683e.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.