PageSourceSearch

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

js betmgm.com collected 2026-09-24 09:04:18 UTC 46,669 bytes, 1,120 lines download raw bytes

1import { g as mi, n as T, t as l, y as q } from "./chunk-xgti9j2t.js";
2import { $ as li, $r as X, Aa as v, Ai as ui, Ao as _i, Ba as c, Ea as C, Ei as pi, Et as gi, Hn as $, Kn as Z, Li as _, No as fi, Pi as z, Pt as u, Ro as ki, Sa as h, Sn as I, Sr as N, Ui as vi, Xa as Ci, Y as p, a as L, aa as A, bi, d as yi, dt as U, fa as b, fi as x, fr as f, g as R, gn as Ti, go as G, gt as m, ki as F, ri as Ni, ro as Si, sa as Ii, t as S, tn as g, tr as w, xi as Y, zo as k } from "./chunk-c97c17u8.js";
3import { M as Ei } from "./chunk-l3jkbhly.js";
4import { p as Di } from "./chunk-k52vj1ic.js";
5import { o as Pi } from "./chunk-l24fzhmb.js";
6import { A as Oi, v as Li } from "./chunk-jrtaqqwj.js";
7import { o as Gi, t as O } from "./chunk-pesy0vb6.js";
8import { D as wi, E as Q, f as Bi, g as Mi, o as Ai } from "./chunk-llc8ry2a.js";
9import { J as xi, mt as V, ut as Ri } from "./chunk-fbjoug0d.js";
10import { a as Fi } from "./chunk-ewplex8i.js";
11import { n as Vi, r as Wi } from "./chunk-c18gpzrj.js";
12import { r as Hi } from "./chunk-c9rg1mp5.js";
13import { t as Ji } from "./chunk-kyqvtgtk.js";
14import { Y as Ki, gt as ji } from "./chunk-w0x32net.js";
15import { p as qi } from "./chunk-bhnvkbxx.js";
16import { ot as Xi } from "./chunk-f2v2cgea.js";
17import { c as $i } from "./chunk-og5uebri.js";
18import { Dn as Zi, Tt as zi, _t as Ui, jr as Yi, kt as Qi } from "./chunk-go6pvd0a.js";
19import { t as it } from "./chunk-k4et3zlq.js";
20import { i as tt, p as et } from "./chunk-hul0ult7.js";
21import { n as nt } from "./chunk-lmnwxprc.js";
22import { r as at } from "./chunk-ilfhy0in.js";
23import { n as rt } from "./chunk-ohg30iel.js";
24import { $ as ot } from "./chunk-iuhjzybw.js";
25import { a as st } from "./chunk-kanq2829.js";
26import { i as dt } from "./chunk-lareec7a.js";
27import { n as ct } from "./chunk-im7lpx1v.js";
28import { St as ht, bt as mt, h as lt, lr as ut, m as _t, mn as pt } from "./chunk-l8i5rin8.js";
29import { a as gt, s as ft } from "./chunk-bol8t3zz.js";
30import { c as kt } from "./chunk-pccxjem8.js";
31import { r as vt, t as Ct } from "./chunk-i1knml6i.js";
32import { t as bt } from "./chunk-bt0uh5ix.js";
33import { t as yt } from "./chunk-ga84h9wi.js";
34import { n as Tt } from "./chunk-bh3f6w1f.js";
35import { i as Nt } from "./chunk-eoj30x9t.js";
36import { N as St } from "./chunk-dymhuwkz.js";
37import { $t as It, At as Et, Ca as Dt, Cg as Pt, Cr as Ot, Dd as Lt, Dt as Gt, En as wt, Er as Bt, Fh as Mt, Fo as At, Hn as ii, Ia as xt, In as Rt, Kn as Ft, Mn as Vt, Ni as Wt, Or as Ht, Pa as Jt, Qi as Kt, Ra as jt, Sn as qt, Ta as Xt, Ua as $t, Uh as Zt, Va as zt, Vn as s, Wr as Ut, Yh as Yt, Zn as Qt, _i as ie, _t as te, am as ee, di as ne, eh as ae, er as re, f as oe, fo as se, fr as de, ga as ce, gr as he, h as me, io as le, ir as ue, ja as _e, jn as pe, ka as ge, kh as fe, ko as ke, mi as ve, om as Ce, pa as be, pt as ye, qa as E, qn as ti, ro as D, si as Te, so as Ne, sr as Se, ti as Ie, ua as Ee, uo as De, wt as Pe, xr as Oe, xt as Le } from "./chunk-g8mtbi19.js";
38import { $n as Ge, Br as we, Vi as Be, ji as Me, tt as Ae } from "./chunk-iq8thase.js";
39import { i as xe } from "./chunk-lgmrl0ja.js";
40import { n as Re } from "./chunk-yli8twv8.js";
41import { n as Fe } from "./chunk-kxhh4v4a.js";
42import { t as Ve } from "./chunk-j4ugyjxo.js";
43import { t as We } from "./chunk-nugu9zb5.js";
44import { n as He } from "./chunk-g5561f51.js";
45import { n as Je } from "./chunk-j0f6jhv0.js";
46import { i as Ke } from "./chunk-f9r9q8kp.js";
47import { n as je } from "./chunk-bd32vwah.js";
48import { r as qe } from "./chunk-jq0sl3ei.js";
49import { n as Xe } from "./chunk-l121kfao.js";
50import { n as $e } from "./chunk-ja26nt1r.js";
51import { r as Ze } from "./chunk-iuwunkxo.js";
52import { n as ze } from "./chunk-l0e5kunb.js";
53import { n as Ue } from "./chunk-ja4vv35q.js";
54import { t as Ye } from "./chunk-o2kd60zq.js";
55import { t as Qe } from "./chunk-duo7njp1.js";
56import { n as tn } from "./chunk-eto2r310.js";
57import { r as en } from "./chunk-c5h65alx.js";
58import { n as nn } from "./chunk-cah7i2vq.js";
59import { _ as an } from "./chunk-o02wm52v.js";
60import { n as rn } from "./chunk-h91dgy2a.js";
61import { n as on } from "./chunk-l8mcnk9u.js";
62import { o as sn } from "./chunk-d06ulyri.js";
63import { n as dn } from "./chunk-pb29llws.js";
64import { b as cn } from "./chunk-j06mo6pb.js";
65import { n as hn } from "./chunk-izpvy78m.js";
66import { r as mn } from "./chunk-dzpnbkxl.js";
67import { n as ln } from "./chunk-kjann8gz.js";
68import { p as un } from "./chunk-d3zbmodj.js";
69import { t as _n } from "./chunk-ozq493wr.js";
70import { S as pn } from "./chunk-kh77c4xb.js";
71import { n as gn } from "./chunk-op4feybx.js";
72import { t as fn } from "./chunk-f59lr91u.js";
73import { E as kn } from "./chunk-lq9ws58w.js";
74import { _ as vn } from "./chunk-bek7msjx.js";
75import { b as Cn } from "./chunk-lyo49v7s.js";
76import { i as bn } from "./chunk-btnbrvwd.js";
77import { t as yn } from "./chunk-kns01iwg.js";
78import { n as Tn } from "./chunk-fzaji7dq.js";
79import { n as Nn } from "./chunk-ic8zjxxr.js";
80import { n as Sn } from "./chunk-n2m7u3ae.js";
81import { n as In, t as En } from "./chunk-jgjuk5z7.js";
82import { n as Dn } from "./chunk-dww94rc5.js";
83import { r as Pn } from "./chunk-o2xnvp27.js";
84import { t as On } from "./chunk-ehnd5dwo.js";
85import { n as Ln } from "./chunk-cjgg81p0.js";
86import { t as Gn } from "./chunk-eg3yts4b.js";
87import { n as wn, t as Bn } from "./chunk-cs9s1hg3.js";
88import { n as Mn } from "./chunk-f2dkt6m9.js";
89import { n as An } from "./chunk-g3nn5ihv.js";
90import { l as xn } from "./chunk-hgp0v2sq.js";
91import { n as Rn } from "./chunk-n6jntq8w.js";
92import { n as Fn } from "./chunk-nu8d10du.js";
93import { t as Vn } from "./chunk-h8ecxuny.js";
94import { n as Wn } from "./chunk-io5v68wy.js";
95import { c as Hn } from "./chunk-owt74jjd.js";
96import { t as Jn } from "./chunk-ohz1zoj7.js";
97import { n as Kn } from "./chunk-im83gcb3.js";
98import { i as jn } from "./chunk-b3lyblkb.js";
99import { n as qn } from "./chunk-cl696cua.js";
100import { o as Xn } from "./chunk-mxmfuhfl.js";
101import { n as $n, t as Zn } from "./chunk-es5wia5t.js";
102import { t as zn } from "./chunk-csl2swas.js";
103import { n as ei, t as ni } from "./chunk-eber62ai.js";
104import { i as Un } from "./chunk-jipijatq.js";
105import { n as Yn, t as Qn } from "./chunk-jf9hdnex.js";
106import { r as ia } from "./chunk-b81t2lx1.js";
107import { t as ta } from "./chunk-fc584apf.js";
108import { a as ea } from "./chunk-eaht5xxc.js";
109import { t as na } from "./chunk-m1n0twop.js";
110import { s as aa } from "./chunk-ljb6jk92.js";
111import { n as ra } from "./chunk-1gq3zm17.js";
112import { i as oa } from "./chunk-nbskzbw0.js";
113import { r as sa } from "./chunk-j68c2tnj.js";
114import { n as da } from "./chunk-euo2kqq9.js";
115import { n as ca } from "./chunk-i7ecc880.js";
116import { n as ha } from "./chunk-l3bwko7a.js";
117import { u as ma } from "./chunk-n8h65r7c.js";
118import { a as la } from "./chunk-huejnlws.js";
119import { d as ua, m as _a } from "./chunk-ecp6euan.js";
120import { t as pa } from "./chunk-bf8bcr56.js";
121import { i as ga } from "./chunk-hjoftffo.js";
122import { n as fa } from "./chunk-lqsbxgbr.js";
123import { n as ka } from "./chunk-box3ohoo.js";
124import { n as va } from "./chunk-hu55n7wb.js";
125import { n as Ca } from "./chunk-khs3ivm3.js";
126import { t as ba } from "./chunk-le2gywhn.js";
127import { t as ya } from "./chunk-khdxlqp2.js";
128import { l as Ta, n as Na, o as Sa } from "./chunk-b9m59xwf.js";
129import { n as Ia } from "./chunk-d9dplb6z.js";
130import { n as Ea } from "./chunk-hgaiynd0.js";
131import { n as Da } from "./chunk-hx6y7kek.js";
132import { t as Pa } from "./chunk-ld081sxw.js";
133import { n as Oa } from "./chunk-hwni6bri.js";
134import { n as La } from "./chunk-hsf3dpma.js";
135import { n as Ga } from "./chunk-fali582u.js";
136import { n as wa } from "./chunk-ij1u9l2n.js";
137import { n as Ba } from "./chunk-ck56cmad.js";
138import { t as Ma } from "./chunk-nemq363r.js";
139import { t as Aa } from "./chunk-i2ogy8gh.js";
140import { r as xa } from "./chunk-e7mi71mr.js";
141import { _ as Ra } from "./chunk-czakmhgz.js";
142import { n as Fa } from "./chunk-m1yc3ygr.js";
143import { i as Va } from "./chunk-k5qrxypz.js";
144import { t as Wa } from "./chunk-n0qt0ytv.js";
145import { n as Ha } from "./chunk-8uvtj9vi.js";
146import { t as Ja } from "./chunk-kum14w7h.js";
147import { n as Ka } from "./chunk-foy1gqs3.js";
148import { o as ja } from "./chunk-oinny59o.js";
149import { n as qa } from "./chunk-cmoyh3hx.js";
150import { n as Xa } from "./chunk-focwpgem.js";
151import { i as $a } from "./chunk-c6c21m38.js";
152import { i as Za } from "./chunk-b1pv0u7h.js";
153import { t as za } from "./chunk-bzdqm0fg.js";
154import { l as Ua } from "./chunk-ibympkf2.js";
155import { r as Ya } from "./chunk-je8asq4j.js";
156import { d as Qa } from "./chunk-ophyzqlx.js";
157import { n as ir } from "./chunk-kb3m33eu.js";
158import { n as tr } from "./chunk-he7hdbsv.js";
159import { t as er }
159 from "./chunk-kn4tq1y4.js";
160import { n as nr } from "./chunk-pcrjqtwg.js";
161import { n as ar } from "./chunk-hh4rfzhx.js";
162import { i as rr } from "./chunk-o9d3376i.js";
163import { H as or } from "./chunk-n7mazb2g.js";
164import { n as sr } from "./chunk-f003tdgn.js";
165import { n as dr } from "./chunk-h968z96s.js";
166import { t as cr } from "./chunk-egzwc6el.js";
167import { a as hr } from "./chunk-n2c6bkgz.js";
168import { d as mr } from "./chunk-dh6y5o5c.js";
169import { n as lr } from "./chunk-jc6uqvfc.js";
170import { n as ur, t as _r } from "./chunk-cmbai8sy.js";
171import { n as pr } from "./chunk-o8j15sr1.js";
172import { a as gr } from "./chunk-mthf07ko.js";
173import { n as fr } from "./chunk-nu7vclav.js";
174import { t as kr } from "./chunk-gzydrmx8.js";
175import { n as vr } from "./chunk-jnbpzwq8.js";
176import { t as Cr } from "./chunk-hc6zu2lo.js";
177import { a as br } from "./chunk-jd93snah.js";
178import { a as yr } from "./chunk-h2a1jk9u.js";
179import { t as Tr } from "./chunk-ii2nakax.js";
180import { n as Nr } from "./chunk-bz4w98li.js";
181import { i as Sr, n as Ir, r as B, t as Er } from "./chunk-fu031b4l.js";
182import { t as Dr } from "./chunk-m4iun2ve.js";
183import { n as Pr, t as Or } from "./chunk-ezjk3as3.js";
184import { r as Lr } from "./chunk-msjk4c56.js";
185import { n as Gr, r as ai, t as W } from "./chunk-osqporme.js";
186import { n as wr } from "./chunk-jc58j3d1.js";
187import { o as Br } from "./chunk-dnfkq1g8.js";
188import { r as Mr } from "./chunk-drqmrjms.js";
189import { a as Ar, n as xr } from "./chunk-bu3l0ca9.js";
190import { n as Rr, t as Fr } from "./chunk-j8braqzq.js";
191import { r as Vr } from "./chunk-nk13yrgg.js";
192import { c as Wr, t as Hr } from "./chunk-mkjsekfa.js";
193import { n as Jr, t as Kr } from "./chunk-fmcihc9q.js";
194import { i as jr, r as qr, t as Xr } from "./chunk-gyery7c4.js";
195import { n as $r, t as Zr } from "./chunk-jj3cpi7o.js";
196import { n as zr, t as Ur } from "./chunk-kci9tg0j.js";
197import { n as Yr, r as Qr, t as io } from "./chunk-c5sdwb54.js";
198import { n as to, t as eo } from "./chunk-btpgo3hd.js";
199import { n as no, t as ri } from "./chunk-o4f8w5yc.js";
200var P, oi, M;
201function H() {
202	return (H = ri((() => {
203		q(), z(), ti(), ei(), P = {
204			category: "Sports Calendar",
205			label: "navigation",
206			action: "click",
207			location: "featured page",
208			eventDetails: "time frame"
209		}, oi = "calendarGrid", M = (() => {
210			let n = class {
211				constructor() {
212					this.trackingService = m(Ft), this.accessorService = m(ni);
213				}
214				getTrackingValueForMatchList(i) {
215					switch (this.active = i, i.group?.type) {
216						case "Sport": return `sport/${i.itemId}`;
217						case "Competition": return `competition/${i.itemId}`;
218						default: return `affiliation/${i.itemId}`;
219					}
220				}
221				trackTabSelected(i, t) {
222					this.active = i;
223					let e = T(l(l({}, this.getPartialTrackingObject()), this.accessorService.getWidget()?.trackingData), {
224						[s.COMPONENT_EVENT_DETAILS]: i.title,
225						[s.COMPONENT_POSITION_EVENT]: i.group?.type?.toString(),
226						[s.COMPONENT_LOCATION_EVENT]: this.getTrackingLocationByType(),
227						[s.COMPONENT_CONTENT_POSITION]: t.toString()
228					});
229					switch (i.group?.type) {
230						case "Sport":
231							e[s.SPORT_ID] = i.itemId.toString();
232							break;
233						case "Competition":
234							e[s.SPORT_LEAGUE_ID] = i.itemId.toString();
235							break;
236						default: e[s.COMPONENT_POSITION_EVENT] = "Affiliation", e[s.COMPONENT_EVENT_DETAILS] = i.itemId.toString();
237					}
238					this.trackingService.track(s.EVENT_TRACKING, e);
239				}
240				trackLinkClick(i) {
241					let t = T(l(l({}, this.getPartialTrackingObject()), this.accessorService.getWidget()?.trackingData), {
242						[s.COMPONENT_EVENT_DETAILS]: i.eventDetails,
243						[s.COMPONENT_URL_CLICKED]: i.urlClicked,
244						[s.COMPONENT_POSITION_EVENT]: ii,
245						[s.COMPONENT_LOCATION_EVENT]: this.getTrackingLocationByType()
246					});
247					this.trackingService.track(s.EVENT_TRACKING, t);
248				}
249				trackEventClick(i, t) {
250					this.trackingService.track(s.EVENT_TRACKING, T(l(l({}, this.getPartialTrackingObject()), this.accessorService.getWidget()?.trackingData), {
251						[s.COMPONENT_POSITION_EVENT]: ii,
252						[s.COMPONENT_CONTENT_POSITION]: t.toString(),
253						[s.COMPONENT_LOCATION_EVENT]: this.getTrackingLocationByType() ?? "not applicable",
254						[s.COMPONENT_EVENT_DETAILS]: "sport event",
255						[s.SPORT_EVENT_ID]: i.id,
256						[s.SPORT_ID]: i.sport.id.toString()
257					}));
258				}
259				trackCalendarNavigation(i) {
260					this.trackingService.track(s.EVENT_TRACKING, {
261						[s.COMPONENT_CATEGORY_EVENT]: P.category,
262						[s.COMPONENT_LABEL_EVENT]: P.label,
263						[s.COMPONENT_ACTION_EVENT]: P.action,
264						[s.COMPONENT_POSITION_EVENT]: i,
265						[s.COMPONENT_LOCATION_EVENT]: P.location,
266						[s.COMPONENT_EVENT_DETAILS]: P.eventDetails
267					});
268				}
269				getTrackingLocationByType() {
270					if (this.active) switch (this.active.group?.type) {
271						case "Sport": return this.getTrackingLocationEvent(this.active.group.type, this.active.itemId);
272						case "Competition": return this.getTrackingLocationEvent(this.active.group.type, this.active.itemId);
273						default: return this.getTrackingLocationEvent("Affiliation", this.active.itemId);
274					}
275				}
276				getTrackingLocationEvent(i, t) {
277					return [
278						this.accessorService.getPage(),
279						this.accessorService.getWidget()?.templateName,
280						i,
281						t
282					].filter((e) => e).join("/").toLowerCase();
283				}
284				getPartialTrackingObject() {
285					return {
286						[s.COMPONENT_LABEL_EVENT]: "sport events",
287						[s.COMPONENT_CATEGORY_EVENT]: `${this.accessorService.getPage()?.toLowerCase()} grid widgets`,
288						[s.COMPONENT_ACTION_EVENT]: "Click"
289					};
290				}
291			};
292			return n.ɵfac = function(r) {
293				return new (r || n)();
294			}, n.ɵprov = x({
295				token: n,
296				factory: n.ɵfac,
297				providedIn: "root"
298			}), n;
299		})();
300	})))();
301}
302var ao = no({ provide: () => No });
303function ro() {
304	return mi(this, null, function* () {
305		return yield import("./chunk-h6ukdiye.js").then(({ TabbedGridCalendarComponent: n }) => n);
306	});
307}
308function oo(n) {
309	switch (n) {
310		case "CompetitionGrid": return "date";
311		case "CalendarGrid": return "competition";
312		default: return "none";
313	}
314}
315function so(n, r) {
316	n & 1 && I(0, "ds-loading-spinner", 2);
317}
318function co(n, r) {
319	if (n & 1) {
320		let i = N();
321		C(0, "ms-widget-header", 9), S("click", function() {
322			return f(i), k(h(2).headerNavigationHandler());
323		}), b();
324	}
325	if (n & 2) {
326		let i = h(2), t = L(2);
327		Ci("clickable-widget-header", !!i.headerChevronLink()), g("title", i.title())("titleIcon", t.titleIcon)("linkConfig", i.headerLinkConfig())("sportId", i.titleData()?.sportId)("leagueId", i.titleData()?.id)("fallbackIcon", i.titleData()?.icon)("headerChevronLink", i.headerChevronLink());
328	}
329}
330function ho(n, r) {
331	if (n & 1) {
332		let i = N();
333		C(0, "ms-deferred-tabbed-grid-calendar", 10), S("calendarEventsLoaded", function(t) {
334			return f(i), k(h(2).onCalendarEventsLoaded(t));
335		})("loadingStateChanged", function(t) {
336			return f(i), k(h(2).onLoadingStateChanged(t));
337		})("dateSelected", function(t) {
338			return f(i), k(h(2).onCalendarDateSelected(t));
339		}), b();
340	}
341	if (n & 2) {
342		h();
343		let i = L(1), t = h();
344		g("sportId", i.sportId)("calendarPage", t.calendarPage());
345	}
346}
347function mo(n, r) {
348	if (n & 1) {
349		let i = N();
350		C(0, "ms-widget-pill", 12), S("select", function(t) {
351			return f(i), k(h(3).primaryNavigationSelected(t));
352		}), b();
353	}
354	n & 2 && g("pills", h(3).primaryNavigation());
355}
356function lo(n, r) {
357	if (n & 1) {
358		let i = N();
359		C(0, "ms-widget-tab-bar", 13), S("select", function(t) {
360			return f(i), k(h(3).primaryNavigationSelected(t));
361		}), b();
362	}
363	if (n & 2) {
364		let i = h(3);
365		g("tabs", i.primaryNavigation())("stretch", i.stretchTab());
366	}
367}
368function uo(n, r) {
369	n & 1 && p(0, mo, 1, 1, "ms-widget-pill", 5)(1, lo, 1, 2, "ms-widget-tab-bar", 11), n & 2 && _(h(2).showPrimaryNavAsPill ? 0 : 1);
370}
371function _o(n, r) {
372	if (n & 1) {
373		let i = N();
374		C(0, "ms-widget-pill", 12), S("select", function(t) {
375			return f(i), k(h(2).secondaryNavigationSelected(t));
376		}), b();
377	}
378	n & 2 && g("pills", h(2).secondaryNavigation());
379}
380function po(n, r) {
381	if (n & 1) {
382		let i = N();
383		C(0, "ms-grid", 14), S("eventClick", function(t) {
384			return f(i), k(h(2).eventClicked(t));
385		})("contentReady", function() {
386			return f(i), k(h(2).isContentReady.set(!0));
387		}), b();
388	}
389	if (n & 2) {
390		h();
391		let i = L(5), t = h(), e = bi(5);
392		g("vnDisableVirtualViews", t.hasTabNavigation())("model", i)("tracking", t.gridTracking())("hideMarketSwitcher", t.hideMarketSwitcher())("allowBorder", !1)("hideTitle", t.hideGridTitle())("isPrimaryGrid", t.gridType() === "LobbyGrid")("iconTemplate", t.primaryActiveTab()?.group?.type === t.groupTypeCompetition ? e : void 0)("gridHeaderOverride", t.gridHeaderOverride());
393	}
394}
395function go(n, r) {
396	n & 1 && I(0, "ms-error", 15), n & 2 && g("message", h(3).sitecore.event.ErrNoEventsPerSport)("links", !1);
397}
398function fo(n, r) {
399	if (n & 1 && p(0, go, 1, 2, "ms-error", 15), n & 2) {
400		let i = h(2);
401		_(!i.platform.isServerRendered || i.platform.isServerRendered && !i.hasSSRData() ? 0 : -1);
402	}
403}
404function ko(n, r) {
405	if (n & 1) {
406		let i = N();
407		C(0, "div", 7)(1, "ms-item", 16), S("click", function() {
408			return f(i), k(h(2).linkClick());
409		}), I(2, "span", 17), Ni(3, "msTrust"), b()();
410	}
411	if (n & 2) {
412		h();
413		let i = L(8);
414		u(), g("count", i.count)("href", i.link)("tracking", void 0), u(), g("innerHtml", pi(3, 4, i.title, "html"), vi);
415	}
416}
417function vo(n, r) {
418	n & 1 && I(0, "vn-icon", 20);
419}
420function Co(n, r) {
421	if (n & 1) {
422		let i = N();
423		C(0, "div", 18), S("click", function() {
424			return f(i), k(h(2).loadMore());
425		}), I(1, "ms-grid-show-more", 19), p(2, vo, 1, 0, "vn-icon", 20), b();
426	}
427	if (n & 2) {
428		let i = h(2);
429		u(), g("loading", i.moreLoading())("message", i.showMoreMessage()), u(), _(i.moreLoading() ? -1 : 2);
430	}
431}
432function bo(n, r) {
433	if (n & 1 && (p(0, co, 1, 9, "ms-widget-header", 3), G(1), p(2, ho, 1, 2, "ms-deferred-tabbed-grid-calendar", 4), p(3, uo, 2, 1), p(4, _o, 1, 1, "ms-widget-pill", 5), G(5), p(6, po, 1, 9, "ms-grid", 6)(7, fo, 1, 1), G(8), p(9, ko, 4, 7, "div", 7), p(10, Co, 3, 3, "div", 8)), n & 2) {
434		let i = h();
435		_(i.parent ? -1 : 0), u();
436		let t = w(i.calendarContext());
437		u(), _(i.showCalendarSelector() && t ? 2 : -1), u(), _(i.showPrimaryNavigation() ? 3 : -1), u(), _(i.secondaryNavigation().length ? 4 : -1), u();
438		let e = w(i.gridModel());
439		u(), _(e ? 6 : 7), u(2);
440		let a = w(i.linkData());
441		u(), _(a.link && a.title ? 9 : -1), u(), _(i.hasMore() ? 10 : -1);
442	}
443}
444function yo(n, r) {
445	if (n & 1 && (I(0, "ms-competition-logo", 21), C(1, "span", 22), li(2), b()), n & 2) {
446		let i = r;
447		g("sportId", i.sportId)("leagueId", i.itemId)("fallbackIcon", i.icon)("isLogoOverrideEnabled", !0), u(2), Ii(i.title);
448	}
449}
450function To(n, r) {
451	if (n & 1 && p(0, yo, 3, 5), n & 2) {
452		let i;
453		_((i = h().primaryActiveTab()) ? 0 : -1, i);
454	}
455}
456function No() {
457	return [zi(ci)];
458}
459var J, si, di, ci;
460function hi() {
461	return (hi = ri((() => {
462		q(), z(), Ei(), Di(), Pi(), Oi(), Gi(), wi(), Ri(), Fi(), Vi(), Hi(), Ji(), Ai(), ji(), qi(), Xi(), Ki(), $i(), Yi(), it(), et(), tt(), nt(), at(), rt(), ot(), Zi(), Pt(), Yt(), Zt(), Mt(), fe(), ae(), ee(), st(), dt(), Lt(), At(), ke(), se(), De(), ct(), Ne(), le(), $t(), zt(), jt(), pt(), xt(), Jt(), _e(), ge(), Xt(), Dt(), ce(), be(), Ee(), Kt(), Wt(), ft(), gt(), ie(), ve(), ne(), Te(), Ie(), Ut(), Bt(), Ot(), Oe(), he(), de(), kt(), Se(), ue(), re(), Qt(), ti(), Rt(), vt(), bt(), yt(), Vt(), pe(), wt(), qt(), Tt(), Nt(), St(), It(), Et(), Gt(), Pe(), Le(), te(), ye(), me(), oe(), Ge(), Ve(), Je(), je(), xe(), We(), He(), qe(), Xe(), $e(), Ze(), Re(), ze(), Fe(), Ke(), Ue(), an(), Ye(), Qe(), tn(), en(), nn(), dn(), rn(), on(), sn(), Cn(), bn(), yn(), Tn(), Nn(), Sn(), En(), Dn(), Pn(), cn(), On(), hn(), mn(), ln(), un(), Ln(), Gn(), Bn(), Mn(), An(), xn(), _n(), pn(), Rn(), Fn(), Vn(), gn(), fn(), kn(), vn(), Wn(), Hn(), Jn(), Kn(), jn(), qn(), Xn(), $n(), zn(), ei(), Un(), Yn(), ia(), ta(), ea(), na(), aa(), ra(), Rr(), oa(), sa(), da(), ca(), ha(), ma(), la(), ua(), pa(), ga(), fa(), ka(), va(), Ca(), ba(), ya(), Ta(), Ia(), Ea(), Da(), Pa(), Oa(), La(), Ga(), wa(), Ba(), Ma(), Aa(), xa(), Ra(), Va(), Wa(), Ha(), Kr(), Ja(), Ka(), ja(), jr(), qa(), Xa(), $a(), Za(), Ua(), or(), za(), Qa(), ir(), Fa(), tr(), er(), nr(), ar(), rr(), Ya(), sr(), Vr(), Wr(), dr(), cr(), hr(), mr(), lr(), ur(), pr(), gr(), fr(), kr(), vr(), Cr(), br(), yr(), Tr(), Nr(), Sr(), $r(), Dr(), Pr(), Ur(), Lr(), Gr(), wr(), Br(), Mr(), Ar(), Yr(), H(), to(), J = (() => {
463			let n = class extends Qr {
464				constructor() {
465					super(...arguments), this.countryFlagsService = m(Jr);
466				}
467				getCount(i, t) {
468					return xi(i.map((e) => e.count ?? 0));
469				}
470				map(i, t, e) {
471					return t?.length ? t.map((a) => this.mapItem(a, i, e)) : [];
472				}
473				get(i, t) {
474					let e = {
475						competition: t.competitionNavigationDisplay,
476						sport: t.sportsNavigationDisplay
477					}, a = this.map(i, t.navigation ?? [], e), o = this.map(i, t.secondaryNavigation ?? [], e);
478					return a.forEach((d) => this.mapActive(d, t.primaryActiveNavigation, t)), o.forEach((d) => this.mapActive(d, t.secondaryActiveNavigation, t)), a.length && !a.find((d) => d.active) && (a[0].active = !0), o.length && !o.find((d) => d.active) && (o[0].active = !0), [a, o];
479				}
480				getDataForTitleIcon(i, t) {
481					switch (t) {
482						case "SportIcon": return {
483							id: i.sport.id.toString(),
484							title: i.sport.name.value,
485							icon: `sports-${i.sport.id}`
486						};
487						case "CompetitionLogo":
488						case "CompetitionFlag": return {
489							id: i.competition.id.toString(),
490							title: i.competition.name.value,
491							icon: this.countryFlagsService.getFlagName(i.region.id.toString()),
492							sportId: i.sport.id
493						};
494						default: return {
495							id: "",
496							title: ""
497						};
498					}
499				}
500				getNavigationDsiplay(i) {
501					if (i) return {
502						Competition: i.competition,
503						Sport: i.sport
504					};
505				}
506				mapItem(i, t, e) {
507					let { title: a, icon: o, display: d } = this.getView(i, this.getNavigationDsiplay(e));
508					return {
509						context: this.getContext(i),
510						display: d,
511						title: a,
512						id: this.getId(t, i),
513						itemId: this.getIdentifier(i),
514						widgetId: t,
515						icon: o,
516						group: {
517							count: i.count,
518							type: i.type,
519							name: i.name
520						},
521						sportId: i.sport?.id
522					};
523				}
524				getIdentifier(i) {
525					switch (i.type) {
526						case "Competition":
527						case "Sport": return V(i.id);
528						default: return i.id;
529					}
530				}
531				mapActive(i, t, e) {
532					let { competition: a, sport: o, stage: d } = e.fixtures[0], y = t ? i.itemId.toString() === t : void 0;
533					if (y !== void 0) i.active = y;
534					else switch (i.group?.type) {
535						case "Competition":
536							i.active = a.id === i.itemId || a.parentLeagueId === i.itemId;
537							break;
538						case "FixtureState":
539							i.active = d === i.id;
540							break;
541						default: i.active = o.id === i.itemId;
542					}
543				}
544				getView(i, t) {
545					let e = B.Default, a = "", o = t?.[i.type], d = [];
546					switch (i.type) {
547						case "Competition":
548							d.push(this.countryFlagsService.getFlagName(i.region?.id.toString() || ""));
549							break;
550						case "Sport": d.push(`sports-${i.id}`);
551					}
552					switch (o !== "IconOnly" && (a = i.name), o) {
553						case "NameWithLogo":
554							e = B.Logo;
555							break;
556						case "IconOnly":
557							e = B.Icon;
558							break;
559						case "NameWithIcon":
560						case "NameWithFlag":
561							e = B.Icon;
562							break;
563						case "NameOnly":
564							d = [];
565							break;
566						default: d.slice(0);
567					}
568					return {
569						title: a,
570						icon: d.join(" "),
571						display: e
572					};
573				}
574				getContext(i) {
575					switch (i.type) {
576						case "Competition": return {
577							competitionId: V(i.id),
578							sportId: i.sport?.id
579						};
580						case "FixtureState": return { fixtureState: i.id };
581						case "Sport": return { sportId: V(i.id) };
582						default: return {};
583					}
584				}
585			};
586			return n.ɵfac = (() => {
587				let r;
588				return function(i) {
589					return (r || (r = ui(n)))(i || n);
590				};
591			})(), n.ɵprov = x({
592				token: n,
593				factory: n.ɵfac,
594				providedIn: "root"
595			}), n;
596		})(), si = (() => {
597			let n = class extends Xr {
598				constructor() {
599					super(), this.sportId = Y.required(), this.calendarPage = Y.required(), this.calendarEventsLoaded = A(), this.loadingStateChanged = A(), this.dateSelected = A(), this.bindings = [
600						U("sportId", this.sportId),
601						U("calendarPage", this.calendarPage),
602						R("calendarEventsLoaded", (i) => this.calendarEventsLoaded.emit(i)),
603						R("loadingStateChanged", (i) => this.loadingStateChanged.emit(i)),
604						R("dateSelected", (i) => this.dateSelected.emit(i))
605					], this.loadComponent(ro);
606				}
607			};
608			return n.ɵfac = function(r) {
609				return new (r || n)();
610			}, n.ɵcmp = $({
611				type: n,
612				selectors: [["ms-deferred-tabbed-grid-calendar"]],
613				inputs: {
614					sportId: [1, "sportId"],
615					calendarPage: [1, "calendarPage"]
616				},
617				outputs: {
618					calendarEventsLoaded: "calendarEventsLoaded",
619					loadingStateChanged: "loadingStateChanged",
620					dateSelected: "dateSelected"
621				},
622				features: [X],
623				decls: 1,
624				vars: 2,
625				consts: [[
626					3,
627					"componentType",
628					"bindings"
629				]],
630				template: function(r, i) {
631					r & 1 && I(0, "ms-deferred-component", 0), r & 2 && g("componentType", i.deferredComponentType())("bindings", i.bindings);
632				},
633				dependencies: [qr],
634				encapsulation: 2
635			}), n;
636		})(), di = (() => {
637			let n = class extends Sa {
638				get isInComposable() {
639					return this.parent ? this.parent.type === "Composable" : !1;
640				}
641				constructor() {
642					super(), this.sitecore = m(lt), this.gridConfig = m(ht), this.urlHelper = m(Ht), this.deviceService = m(Wi), this.matchListConfig = m(ut), this.gridFactory = m(_a), this.apiService = m(Hr), this.trackingService = m(M), this.accessorService = m(ni), this.navigationService = m(J), this.sportCache = m(Fr), this.store = m(Ce), this.signpostTypeService = m(ai), this.cdnCachingConfig = m(mt), this.widgetNavigationService = m(eo), this.epcotConfig = m(_t), this.hydrationTracker = m(Mi), this.platform = m(Bi), this.hasSSRData = Q(() => `tabbed-grid-has-data-${this.config?.id}`, !1), this.ssrData = Q(() => `tabbed-grid-data-${this.config?.id}`, null), this.tabbedGridPayload = v(null), this.composableParentPayload = v(null), this.gridType = c(() => this.tabbedGridPayload()?.gridType), this.title = c(() => {
643						let i = this.tabbedGridPayload();
644						return i?.gridType === "CalendarGrid" ? "" : i?.fixtures?.length ? this.interpolateTitle(i.title ?? "", i.fixtures[0]) : "";
645					}), this.firstFixture = c(() => this.tabbedGridPayload()?.fixtures?.length ? this.tabbedGridPayload().fixtures[0] : void 0), this.titleData = c(() => {
646						let i = this.tabbedGridPayload();
647						if (i?.gridType !== "CalendarGrid") return i ? this.navigationService.getDataForTitleIcon(i.fixtures[0], i.titleIcon) : void 0;
648					}), this.linkData = c(() => {
649						let i = this.tabbedGridPayload(), t = this.activeNavigation();
650						if (!this.linkConfig()?.visible || !t || !i || i?.gridType === "CalendarGrid") return {
651							link: void 0,
652							title: void 0,
653							count: 0
654						};
655						let e = t.group && t.group.type !== "FixtureState" ? {
656							id: t.itemId,
657							name: t.group.name ?? ""
658						} : {
659							id: t.itemId,
660							name: t.itemId.toString()
661						}, a = this.widgetNavigationService.getNavigationInfo(e, this.linkConfig(), this.firstFixture()), o = 0;
662						return (this.linkConfig()?.target === "SportLive" || this.linkConfig()?.target === "SportLobby") && (o = t.group?.count ?? 0), {
663							link: a?.link,
664							title: a?.title,
665							count: o
666						};
667					}), this.globalLink = c(() => {
668						if (this.gridType() === "CalendarGrid") return;
669						let i = this.firstFixture(), t = this.globalLinkConfig();
670						if (t?.visible && i) switch (t.target) {
671							case "SportLobby":
672								let e = {
673									id: i.sport.id,
674									name: i.sport.name.value
675								};
676								return this.urlHelper.getSportUrl(e);
677							case "CompetitionLobby": return this.widgetNavigationService.getCompetitionData(i);
678							default: return t.linkOverride ?? void 0;
679						}
680					}), this.globalLinkTitle = c(() => {
681						if (this.gridType() === "CalendarGrid") return;
682						let i = this.firstFixture(), t = this.globalLinkConfig();
683						if (t?.visible && i) return Be(t.title, {
684							sport: i.sport.name.value,
685							competition: i.competition.name.value
686						}, !1);
687					}), this.headerLinkConfig = c(() => this.gridType() === "CalendarGrid" ? {
688						link: void 0,
689						linkText: void 0
690					} : {
691						link: this.globalLink(),
692						linkText: this.globalLinkTitle()
693					}), this.headerChevronLink = c(() => {
694						let i = this.tabbedGridPayload();
695						if (!i || i.gridType === "CalendarGrid") return;
696						let t = this.primaryNavigation(), e = this.secondaryNavigation(), a = this.firstFixture();
697						if (t.length > 0 && e.length === 0 && a) {
698							let o = t.length === 1 ? {
699								id: t[0].itemId,
700								name: t[0].group?.name ?? ""
701							} : {
702								id: a.sport.id,
703								name: a.sport.name.value
704							}, d = t.length === 1 ? this.linkConfig() : { target: "SportLobby" };
705							if (i.showChevron) return this.widgetNavigationService.getNavigationInfo(o, d, a)?.link;
706						}
707					}), this.gridTracking = c(() => {
708						let i = this.tabbedGridPayload();
709						if (i?.gridType === "CalendarGrid") return {
710							tracking: "",
711							betDetails: oi,
712							calendarTitle: this.selectedCalendarDate()?.label || "undefined"
713						};
714						let t = i?.fixtures, e = this.primaryActiveNavigation(), a = this.secondaryActiveNavigation();
715						return a ? { tracking: this.trackingService.getTrackingValueForMatchList(a) } : e ? { tracking: this.trackingService.getTrackingValueForMatchList(e) } : t?.length ? { tracking: `sport/${t?.[0].sport.id}` } : { tracking: "" };
716					}), this.hideMarketSwitcher = c(() => {
717						let i = this.tabbedGridPayload();
718						return i?.gridType === "CalendarGrid" || !this.deviceService.isMobile || this.deviceService.isTablet && this.deviceService.currentOrientation === "landscape" ? !1 : this.secondaryNavigation().length > 0 ? !0 : i?.hideMarketSwitcher ?? !1;
719					}), this.stretchTab = c(() => this.gridType() === "CalendarGrid" ? !1 : this.primaryNavigation()?.[0]?.group?.type === "FixtureState"), this.hasMore = F(() => {
720						let i = this.tabbedGridPayload();
721						return i?.gridType === "CalendarGrid" ? !1 : i?.enablePaging ? i?.fixtures.length < (i?.navigation?.[0].count ?? 0) : !1;
722					}), this.moreLoading = F(() => (this.gridType(), !1)), this.loaderVisible = F(() => (this.gridType(), !1)), this.showMoreMessage = c(() => this.moreLoading() ? "" : this.sitecore.event.MoreEvents), this.activeNavigation = c(() => {
723						let i = this.tabbedGridPayload();
724						if (!i?.bottomLink?.visible || i.gridType === "CalendarGrid") return;
725						let t = this.primaryActiveNavigation(), e = this.secondaryActiveNavigation();
726						return this.secondaryNavigation()?.length ? e?.group?.type === "FixtureState" ? t : e : t;
727					}), this.primaryNavigation = v([]), this.secondaryNavigation = v([]), this.show
727FirstLevelNavigation = c(() => this.gridType() === "CalendarGrid" ? !1 : this.secondaryNavigation()?.length ? this.primaryNavigation()?.length > 0 : this.primaryNavigation()?.length > 1), this.primaryActiveNavigation = c(() => this.primaryNavigation().find((i) => i.active)), this.secondaryActiveNavigation = c(() => this.secondaryNavigation().find((i) => i.active)), this.parentIsHandlingNavigation = c(() => this.composableParentPayload()?.mergeNavigation ?? !1), this.primaryActiveTab = v(void 0), this.isAllTabEnabled = c(() => this.composableParentPayload()?.isAllTabEnabled ?? !1), this.gridHeaderOverride = c(() => {
728						if (this.gridType() !== "CalendarGrid") return this.tabbedGridPayload()?.gridHeaderOverride;
729					}), this.isEpcotEnabled = v(!1), this.isMobile = v(!1), this.linkConfig = c(() => {
730						if (this.gridType() !== "CalendarGrid") return this.tabbedGridPayload()?.bottomLink;
731					}), this.globalLinkConfig = c(() => {
732						if (this.gridType() !== "CalendarGrid") return this.tabbedGridPayload()?.globalLink;
733					}), this.isBorderRadiusRequired = c(() => !(this.isMobile() && !this.isEpcotEnabled())), this.shouldIncludePayload = this.cdnCachingConfig.widgets.includes("TabbedGrid"), this.groupTypeCompetition = "Competition", this.showPrimaryNavAsPill = this.gridConfig.primaryNavigationType === "Pill", this.routeKey = Qi(m(Li)), this.gridModel = v(null), this.calendarPage = v(0), this.selectedCalendarDate = v(void 0), this.showCalendarSelector = c(() => {
734						let i = this.tabbedGridPayload();
735						if (!i) return !1;
736						let t = this.getRequestContext();
737						return i.gridType === "CalendarGrid" && !!t.sportId;
738					}), this.calendarContext = c(() => {
739						if (!this.tabbedGridPayload()) return;
740						let i = this.getRequestContext();
741						return i.sportId ? { sportId: i.sportId } : void 0;
742					}), this.themeSurface = {
743						"betboo-br": "low",
744						"sportingbet-2": "low"
745					}, this.themeElevated = {
746						"sportingbet-br": { isElevated: !1 },
747						"betboo-br": { isElevated: !1 }
748					}, this.themeBorderRadius = { "gamebookers-2": { hasRadius: !0 } }, this.themeNoborder = {
749						"sportingbet-br": { hasBorder: !this.isInComposable },
750						"betboo-br": { hasBorder: !this.isInComposable },
751						"gamebookers-2": { hasBorder: !this.isInComposable && !this.isMobile() }
752					}, this.mapData = (i) => {
753						if (this.tabbedGridPayload.set(i), !i?.fixtures?.length && i?.gridType !== "CalendarGrid") {
754							this.hasData = !1, this.setWidgetLoaded(), this.handleEmptyData();
755							return;
756						}
757						this.calendarPage.set(0), i.gridType === "CalendarGrid" ? (this.grid?.destroy(), this.gridSub?.unsubscribe(), this.gridModel.set(null), this.signpostTypeService.signpostType = W.None) : (this.setTabs(i), this.setGrid(i), this.signpostTypeService.signpostType = this.gridType() === "CompetitionGrid" ? W.PriceBoost : W.None);
758					}, this.showPrimaryNavigation = c(() => this.showFirstLevelNavigation() && !this.parentIsHandlingNavigation()), this.hasTabNavigation = c(() => this.showPrimaryNavigation() || this.secondaryNavigation().length > 0), this.hideGridTitle = c(() => {
759						let i = this.tabbedGridPayload();
760						if (!i) return !0;
761						let t = this.deviceService.orientationSignal(), e = i.gridType, a = this.accessorService.getPage();
762						if (!a) return !0;
763						let o = this.gridConfig.isMarketPillsEnabled && this.deviceService.isMobilePhone && t !== "landscape" && !this.hideMarketSwitcher() || this.gridConfig.hideGridTitle, d = a === "HomeLobby" ? o : !1;
764						return e === "CompetitionGrid" || e === "CalendarGrid" ? !0 : this.isInComposable && this.isAllTabEnabled() ? !1 : e === "MatchListGrid" || d;
765					}), this.isMobile.set(this.deviceService.isMobile), this.isEpcotEnabled.set(this.epcotConfig.isEnabled), this.platform.isServer && Ti(() => this.ssrData.set(this.tabbedGridPayload())), this.destroyRef.onDestroy(() => {
766						this.grid?.destroy(), this.gridSub?.unsubscribe();
767					});
768				}
769				onData(i, t) {
770					let e = this.ssrData();
771					this.platform.isBrowser && e && !this.hydrationTracker.isFullyHydrated() ? this.mapData(e) : i?.fixtures?.length || i?.gridType === "CalendarGrid" ? this.mapData(i) : this.getData(t).subscribe(this.mapData);
772				}
773				onParentData(i) {
774					this.composableParentPayload.set(i);
775				}
776				loadMore() {
777					if (!this.hasMore() || this.moreLoading()) return;
778					if (this.moreLoading.set(!0), this.gridType() === "CalendarGrid") {
779						this.calendarPage.update((t) => t + 1);
780						return;
781					}
782					let i = this.grid.getState().groups.reduce((t, e) => t + e[0].count, 0);
783					this.apiService.getWidget(T(l({}, this.getDataContext()), { skip: i }), this.getRequestContext(), !1, !1).pipe(O(this.destroyRef)).subscribe(({ payload: t }) => {
784						if (t) {
785							this.hasMore.set(i + t.fixtures.length < (t.navigation?.[0].count ?? 0));
786							let e = this.grid.getState();
787							this.store.dispatch(Zr.addEvents({ payload: {
788								id: e.id,
789								fixtures: t.fixtures
790							} })), this.moreLoading.set(!1);
791						}
792					});
793				}
794				getDataContext() {
795					let i = super.getDataContext();
796					return this.shouldIncludePayload ? T(l({}, i), { shouldIncludePayload: this.shouldIncludePayload }) : i;
797				}
798				getData(i) {
799					return this.apiService.getWidget(this.getDataContext(), this.getRequestContext(), !i, !1, !1).pipe(ki(({ payload: t }) => t !== void 0), Z(({ payload: t }) => t), O(this.destroyRef));
800				}
801				primaryNavigationSelected(i) {
802					i && (this.primaryNavigation.update((t) => t.map((e) => T(l({}, e), { active: e.id === i.id }))), this.setGridAndLinks(!0));
803				}
804				secondaryNavigationSelected(i) {
805					this.secondaryNavigation.update((t) => t.map((e) => T(l({}, e), { active: e.id === i.id }))), this.setGridAndLinks(!1);
806				}
807				linkClick(i = !1) {
808					this.trackingService.trackLinkClick({
809						eventDetails: i ? "global link" : "show more",
810						urlClicked: i ? this.globalLink() : this.linkData().link
811					});
812				}
813				eventClicked({ event: i, index: t }) {
814					this.trackingService.trackEventClick(i, t);
815				}
816				setGrid({ fixtures: i, disabledFixtureSorting: t, gridType: e, showNonGridable: a }) {
817					let o = (d) => {
818						if (this.grid?.destroy(), !i?.length) return;
819						let y = this.primaryActiveNavigation(), K = this.secondaryActiveNavigation();
820						this.primaryActiveTab.set(y);
821						let j = y?.itemId ?? "";
822						K && (j += `/${K.itemId}`), this.createGrid(`${this.config.id}/${j}/${this.routeKey}`, i, {
823							grouping: oo(e),
824							disableGroupSorting: t,
825							moreGrouping: d
826						}), this.hasData = !0, this.setWidgetLoaded(), this.platform.runOnServer(() => this.hasSSRData.set(!0)), this.config.refreshable;
827					};
828					a ? this.hasNonGridable().pipe(O(this.destroyRef)).subscribe((d) => {
829						o(d);
830					}) : o();
831				}
832				createGrid(i, t, e) {
833					this.grid?.destroy(), this.grid = this.gridFactory.fromResponse(i, t, e), this.gridSub?.unsubscribe(), this.gridSub = this.grid?.pipe(O(this.destroyRef)).subscribe((a) => {
834						this.gridModel.set(a);
835					});
836				}
837				hasNonGridable() {
838					let i = l(l({}, this.getRequestContext()), this.getWidgetContext());
839					return i.sportId ? this.sportCache.getSport(i.sportId).pipe(Z((t) => t ? (this.getCountItem(i, t)?.counts.nonGridable ?? 0) > 0 : !1)) : fi(!1);
840				}
841				getCountItem(i, t) {
842					return i.virtualCompetitionGroupId ? E(t, D.VirtualCompetitionGroup).find((e) => e.id === i.virtualCompetitionGroupId) : i.competitionId ? E(t, D.Competition).find((e) => e.id === i.competitionId) : i.virtualCompetitionId ? E(t, D.Competition).find((e) => e.isVirtual && e.id === i.virtualCompetitionId) : i.tournamentId ? E(t, D.Tournament).find((e) => e.id === i.tournamentId) : i.regionId ? E(t, D.Region).find((e) => e.id === i.regionId) : E(t, D.Sport).find((e) => e.id === i.sportId);
843				}
844				setTabs(i) {
845					let [t, e] = this.navigationService.get(this.config.id, i);
846					i.gridType === "CalendarGrid" ? (this.primaryNavigation.set([]), this.secondaryNavigation.set([])) : (this.primaryNavigation.set(t), this.secondaryNavigation.set(e));
847				}
848				setGridAndLinks(i) {
849					this.matchListConfig.showLoader && this.loaderVisible.set(!0), this.apiService.getWidget(this.getWidgetContext(i, !0), this.getRequestContext()).pipe(yi(() => this.loaderVisible.set(!1)), O(this.destroyRef)).subscribe(({ payload: t }) => {
850						if (t) {
851							if (i) {
852								let [, e] = this.navigationService.get(this.config.id, t);
853								this.secondaryNavigation.set(e);
854							}
855							this.tabbedGridPayload.set(t), this.setGrid(t);
856						}
857					});
858				}
859				getWidgetContext(i = !1, t = !1) {
860					let e = this.primaryActiveNavigation(), a;
861					i || (a = this.secondaryActiveNavigation());
862					let o = super.getDataContext();
863					if (o = this.shouldIncludePayload ? T(l({}, o), { shouldIncludePayload: this.shouldIncludePayload }) : o, e && (o = l(l({}, o), e.context)), a && (o = l(l({}, o), a.context)), t) {
864						if (a) {
865							let d = this.secondaryNavigation().findIndex((y) => y.active);
866							this.trackingService.trackTabSelected(a, d);
867						} else if (e) {
868							let d = this.primaryNavigation().findIndex((y) => y.active);
869							this.trackingService.trackTabSelected(e, d);
870						}
871					}
872					return o;
873				}
874				interpolateTitle(i, t) {
875					return we(i, { competition: t?.virtualCompetition?.name?.value ?? t?.competition?.name?.value ?? "" });
876				}
877				headerNavigationHandler() {
878					this.widgetNavigationService.headerNavigationHandler(this.headerChevronLink()), this.trackingService.trackLinkClick({
879						eventDetails: `${this.title()}-chevron icon`,
880						urlClicked: this.headerChevronLink()
881					});
882				}
883				onLoadingStateChanged(i) {
884					this.loaderVisible.set(i);
885				}
886				onCalendarDateSelected(i) {
887					this.selectedCalendarDate.set(i);
888				}
889				onCalendarEventsLoaded({ hasMore: i, fixtures: t, page: e }) {
890					if (this.hasMore.set(i), e === 0) {
891						this.updateEventList(t);
892						return;
893					}
894					this.addFixturesToEventList(t);
895				}
896				updateEventList(i) {
897					if (this.calendarPage.set(0), i.length === 0) {
898						this.grid?.destroy(), this.gridSub?.unsubscribe(), this.gridModel.set(null), this.setWidgetLoaded();
899						return;
900					}
901					this.createGrid(`${this.config.id}/calendar/${this.routeKey}`, i, { grouping: "competition" }), this.hasData = !0, this.setWidgetLoaded();
902				}
903				addFixturesToEventList(i) {
904					this.moreLoading.set(!1), i.length !== 0 && this.grid?.addEvents(i, void 0, "competition");
905				}
906			};
907			return n.ɵfac = function(r) {
908				return new (r || n)();
909			}, n.ɵcmp = $({
910				type: n,
911				selectors: [["ms-tabbed-grid-widget"]],
912				hostAttrs: [
913					1,
914					"tabbed-grid-widget",
915					"grid-wrapper"
916				],
917				features: [gi([M, ai]), X],
918				decls: 6,
919				vars: 10,
920				consts: [
921					["header", ""],
922					[
923						"msThemedCard",
924						"",
925						"surface",
926						"lowest",
927						1,
928						"card-alignment",
929						3,
930						"border",
931						"elevated",
932						"radius",
933						"themedCardSurface",
934						"themeCardElevated",
935						"themeBorder",
936						"themeBorderRadius"
937					],
938					[1, "loader-alignment"],
939					[
940						3,
941						"clickable-widget-header",
942						"title",
943						"titleIcon",
944						"linkConfig",
945						"sportId",
946						"leagueId",
947						"fallbackIcon",
948						"headerChevronLink"
949					],
950					[
951						3,
952						"sportId",
953						"calendarPage"
954					],
955					[3, "pills"],
956					[
957						3,
958						"vnDisableVirtualViews",
959						"model",
960						"tracking",
961						"hideMarketSwitcher",
962						"allowBorder",
963						"hideTitle",
964						"isPrimaryGrid",
965						"iconTemplate",
966						"gridHeaderOverride"
967					],
968					[1, "grid-footer"],
969					[
970						1,
971						"grid-footer",
972						"show-more"
973					],
974					[
975						3,
976						"click",
977						"title",
978						"titleIcon",
979						"linkConfig",
980						"sportId",
981						"leagueId",
982						"fallbackIcon",
983						"headerChevronLink"
984					],
985					[
986						3,
987						"calendarEventsLoaded",
988						"loadingStateChanged",
989						"dateSelected",
990						"sportId",
991						"calendarPage"
992					],
993					[
994						3,
995						"tabs",
996						"stretch"
997					],
998					[
999						3,
1000						"select",
1001						"pills"
1002					],
1003					[
1004						3,
1005						"select",
1006						"tabs",
1007						"stretch"
1008					],
1009					[
1010						3,
1011						"eventClick",
1012						"contentReady",
1013						"vnDisableVirtualViews",
1014						"model",
1015						"tracking",
1016						"hideMarketSwitcher",
1017						"allowBorder",
1018						"hideTitle",
1019						"isPrimaryGrid",
1020						"iconTemplate",
1021						"gridHeaderOverride"
1022					],
1023					[
1024						"severity",
1025						"info",
1026						3,
1027						"message",
1028						"links"
1029					],
1030					[
1031						3,
1032						"click",
1033						"count",
1034						"href",
1035						"tracking"
1036					],
1037					[
1038						"item-title",
1039						"",
1040						3,
1041						"innerHtml"
1042					],
1043					[
1044						1,
1045						"grid-footer",
1046						"show-more",
1047						3,
1048						"click"
1049					],
1050					[
1051						3,
1052						"loading",
1053						"message"
1054					],
1055					[
1056						"name",
1057						"theme-down",
1058						"size",
1059						"12"
1060					],
1061					[
1062						1,
1063						"sport-icon",
1064						3,
1065						"sportId",
1066						"leagueId",
1067						"fallbackIcon",
1068						"isLogoOverrideEnabled"
1069					],
1070					[1, "sport-name"]
1071				],
1072				template: function(r, i) {
1073					if (r & 1 && (C(0, "ds-card", 1), p(1, so, 1, 0, "ds-loading-spinner", 2), G(2), p(3, bo, 11, 10), b(), Si(4, To, 1, 1, "ng-template", null, 0, _i)), r & 2) {
1074						g("border", !1)("elevated", !0)("radius", i.isBorderRadiusRequired())("themedCardSurface", i.themeSurface)("themeCardElevated", i.themeElevated)("themeBorder", i.themeNoborder)("themeBorderRadius", i.themeBorderRadius), u(), _(i.loaderVisible() ? 1 : -1), u();
1075						let t = w(i.tabbedGridPayload());
1076						u(), _(!i.hidden && t ? 3 : -1);
1077					}
1078				},
1079				dependencies: [
1080					Zn,
1081					_r,
1082					wn,
1083					Ir,
1084					Ct,
1085					Or,
1086					Er,
1087					xr,
1088					Ui,
1089					Me,
1090					Qn,
1091					zr,
1092					si,
1093					Ae,
1094					In
1095				],
1096				styles: [".loader-alignment[_ngcontent-%COMP%]{z-index:99;margin-top:185px}"],
1097				changeDetection: 1
1098			}), n;
1099		})(), ci = (() => {
1100			let n = class {
1101				constructor() {
1102					this.registry = m(Na), this.navigationRegistry = m(io), this.navigationMapper = m(J);
1103				}
1104				onFeatureInit() {
1105					this.registry.registerLazy("TabbedGrid", di), this.navigationRegistry.register("TabbedGrid", this.navigationMapper);
1106				}
1107			};
1108			return n.ɵfac = function(r) {
1109				return new (r || n)();
1110			}, n.ɵprov = x({
1111				token: n,
1112				factory: n.ɵfac,
1113				providedIn: "root"
1114			}), n;
1115		})();
1116	})))();
1117}
1118export { H as i, hi as n, M as r, ao as t };
1119
1120//# sourceMappingURL=chunk-g2kgzb2m.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.