PageSourceSearch

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

js betmgm.com collected 2026-09-24 09:04:08 UTC 53,204 bytes, 1,203 lines download raw bytes

1import { n as T, t as b, y as Oi } from "./chunk-xgti9j2t.js";
2import { $ as Bi, $r as Ii, Aa as w, Ai as xi, Ba as d, Cr as Di, Ea as y, Ei as Si, Et as W, Gn as Ti, Hn as N, Kn as M, Li as m, Mr as Pi, Na as wi, No as Y, Pi as Ei, Pt as l, R as Ni, Rn as Mi, Sa as c, Sn as f, So as Li, Sr as O, Ui as Gi, Xa as Z, Y as p, a as V, d as Q, fa as C, fi as H, fr as B, gn as ii, go as ti, gt as r, ki as Ri, l as $, ni as ei, oi as Ai, ri as Fi, ro as Wi, s as Vi, t as I, ta as ni, tn as g, tr as K, xi as x, z as si, zo as D, zr as Hi } from "./chunk-c97c17u8.js";
3import { M as $i } from "./chunk-l3jkbhly.js";
4import { p as Ki } from "./chunk-k52vj1ic.js";
5import { o as ji } from "./chunk-l24fzhmb.js";
6import { A as Ji, v as qi } from "./chunk-jrtaqqwj.js";
7import { i as ri, o as Xi, r as zi, t as S } from "./chunk-pesy0vb6.js";
8import { D as Ui, E as j, f as oi, o as Yi } from "./chunk-llc8ry2a.js";
9import { J as Zi, Pt as Qi, d as it, mt as E, ut as tt } from "./chunk-fbjoug0d.js";
10import { a as et } from "./chunk-ewplex8i.js";
11import { n as nt, r as st } from "./chunk-c18gpzrj.js";
12import { r as rt } from "./chunk-c9rg1mp5.js";
13import { t as ot } from "./chunk-kyqvtgtk.js";
14import { Y as at, gt as ct } from "./chunk-w0x32net.js";
15import { p as ht } from "./chunk-bhnvkbxx.js";
16import { ot as ut } from "./chunk-f2v2cgea.js";
17import { c as dt } from "./chunk-og5uebri.js";
18import { Dn as lt, Tt as mt, _t as pt, jr as gt, kt as _t } from "./chunk-go6pvd0a.js";
19import { t as ft } from "./chunk-k4et3zlq.js";
20import { i as kt, p as vt } from "./chunk-hul0ult7.js";
21import { n as yt } from "./chunk-lmnwxprc.js";
22import { r as Ct } from "./chunk-ilfhy0in.js";
23import { n as bt } from "./chunk-ohg30iel.js";
24import { $ as Ot } from "./chunk-iuhjzybw.js";
25import { a as Bt } from "./chunk-kanq2829.js";
26import { i as It } from "./chunk-lareec7a.js";
27import { n as xt } from "./chunk-im7lpx1v.js";
28import { $n as Dt, Ht as St, St as ai, W as ci, bt as hi, h as J, mn as Tt, yn as ui } from "./chunk-l8i5rin8.js";
29import { a as Pt, s as wt } from "./chunk-bol8t3zz.js";
30import { c as Et } from "./chunk-pccxjem8.js";
31import { r as Nt, t as Mt } from "./chunk-i1knml6i.js";
32import { t as Lt } from "./chunk-bt0uh5ix.js";
33import { t as Gt } from "./chunk-ga84h9wi.js";
34import { n as Rt } from "./chunk-bh3f6w1f.js";
35import { i as At } from "./chunk-eoj30x9t.js";
36import { $t as Ft, At as Wt, Ca as Vt, Cg as Ht, Cr as $t, Dd as Kt, Dt as jt, En as Jt, Er as qt, Fh as Xt, Fo as zt, Hn as L, Ia as Ut, In as Yt, Kn as Zt, Mn as Qt, Ni as ie, Or as di, Pa as te, Qi as ee, Ra as ne, Sn as se, Ta as re, Ua as oe, Uh as ae, Va as ce, Vn as u, Wr as he, Yh as ue, Zn as de, _i as le, _t as me, am as pe, di as ge, eh as _e, er as fe, fo as ke, ga as ve, gr as ye, h as Ce, io as be, ir as Oe, ja as Be, jn as Ie, ka as xe, kh as De, ko as Se, lo as Te, mi as Pe, om as we, pa as Ee, pt as Ne, qn as Me, si as Le, so as Ge, sr as Re, ti as Ae, ua as Fe, uo as We, wt as Ve, xr as He, xt as $e } from "./chunk-g8mtbi19.js";
37import { $n as Ke, Ar as je, Br as Je, Ot as li, R as qe, it as Xe, ur as ze } from "./chunk-iq8thase.js";
38import { i as Ue } from "./chunk-lgmrl0ja.js";
39import { n as Ye } from "./chunk-yli8twv8.js";
40import { n as Ze } from "./chunk-kxhh4v4a.js";
41import { t as Qe } from "./chunk-j4ugyjxo.js";
42import { t as tn } from "./chunk-nugu9zb5.js";
43import { n as en } from "./chunk-g5561f51.js";
44import { n as nn } from "./chunk-j0f6jhv0.js";
45import { i as sn } from "./chunk-f9r9q8kp.js";
46import { n as rn } from "./chunk-bd32vwah.js";
47import { r as on } from "./chunk-jq0sl3ei.js";
48import { n as an } from "./chunk-l121kfao.js";
49import { n as cn } from "./chunk-ja26nt1r.js";
50import { r as hn } from "./chunk-iuwunkxo.js";
51import { n as un } from "./chunk-l0e5kunb.js";
52import { n as dn } from "./chunk-ja4vv35q.js";
53import { t as ln } from "./chunk-o2kd60zq.js";
54import { t as mn } from "./chunk-duo7njp1.js";
55import { n as pn } from "./chunk-eto2r310.js";
56import { r as gn } from "./chunk-c5h65alx.js";
57import { n as _n } from "./chunk-cah7i2vq.js";
58import { _ as fn } from "./chunk-o02wm52v.js";
59import { n as kn } from "./chunk-h91dgy2a.js";
60import { n as vn } from "./chunk-l8mcnk9u.js";
61import { o as yn } from "./chunk-d06ulyri.js";
62import { n as Cn } from "./chunk-pb29llws.js";
63import { b as bn } from "./chunk-j06mo6pb.js";
64import { n as On } from "./chunk-izpvy78m.js";
65import { r as Bn } from "./chunk-dzpnbkxl.js";
66import { n as In } from "./chunk-kjann8gz.js";
67import { p as xn } from "./chunk-d3zbmodj.js";
68import { t as Dn } from "./chunk-ozq493wr.js";
69import { S as Sn } from "./chunk-kh77c4xb.js";
70import { n as Tn } from "./chunk-op4feybx.js";
71import { t as Pn } from "./chunk-f59lr91u.js";
72import { E as wn } from "./chunk-lq9ws58w.js";
73import { E as En, _ as Nn } from "./chunk-bek7msjx.js";
74import { b as Mn, d as Ln } from "./chunk-lyo49v7s.js";
75import { i as Gn } from "./chunk-btnbrvwd.js";
76import { t as Rn } from "./chunk-kns01iwg.js";
77import { n as An } from "./chunk-fzaji7dq.js";
78import { n as Fn } from "./chunk-n2m7u3ae.js";
79import { n as Wn, t as Vn } from "./chunk-jgjuk5z7.js";
80import { n as Hn } from "./chunk-dww94rc5.js";
81import { r as $n } from "./chunk-o2xnvp27.js";
82import { t as Kn } from "./chunk-ehnd5dwo.js";
83import { n as jn } from "./chunk-cjgg81p0.js";
84import { t as Jn } from "./chunk-eg3yts4b.js";
85import { n as qn, t as Xn } from "./chunk-cs9s1hg3.js";
86import { n as zn } from "./chunk-f2dkt6m9.js";
87import { n as Un } from "./chunk-g3nn5ihv.js";
88import { l as Yn } from "./chunk-hgp0v2sq.js";
89import { n as Zn } from "./chunk-n6jntq8w.js";
90import { n as Qn } from "./chunk-nu8d10du.js";
91import { t as is } from "./chunk-h8ecxuny.js";
92import { n as ts } from "./chunk-io5v68wy.js";
93import { c as es, s as ns } from "./chunk-owt74jjd.js";
94import { n as ss, t as rs } from "./chunk-ohz1zoj7.js";
95import { n as os } from "./chunk-im83gcb3.js";
96import { i as as } from "./chunk-b3lyblkb.js";
97import { n as cs } from "./chunk-cl696cua.js";
98import { o as hs } from "./chunk-mxmfuhfl.js";
99import { n as us } from "./chunk-es5wia5t.js";
100import { t as ds } from "./chunk-csl2swas.js";
101import { n as ls, t as q } from "./chunk-eber62ai.js";
102import { i as ms, o as ps } from "./chunk-jipijatq.js";
103import { n as gs } from "./chunk-jf9hdnex.js";
104import { r as _s } from "./chunk-b81t2lx1.js";
105import { t as fs } from "./chunk-fc584apf.js";
106import { a as ks } from "./chunk-eaht5xxc.js";
107import { t as vs } from "./chunk-m1n0twop.js";
108import { s as ys } from "./chunk-ljb6jk92.js";
109import { i as Cs } from "./chunk-nbskzbw0.js";
110import { r as bs } from "./chunk-j68c2tnj.js";
111import { n as Os, t as P } from "./chunk-euo2kqq9.js";
112import { n as Bs } from "./chunk-i7ecc880.js";
113import { n as Is } from "./chunk-l3bwko7a.js";
114import { u as xs } from "./chunk-n8h65r7c.js";
115import { a as Ds } from "./chunk-huejnlws.js";
116import { d as Ss, m as Ts } from "./chunk-ecp6euan.js";
117import { n as Ps } from "./chunk-lqsbxgbr.js";
118import { n as ws } from "./chunk-box3ohoo.js";
119import { n as Es, t as Ns } from "./chunk-hu55n7wb.js";
120import { t as Ms } from "./chunk-le2gywhn.js";
121import { t as Ls } from "./chunk-khdxlqp2.js";
122import { l as Gs, n as Rs, o as As, s as X } from "./chunk-b9m59xwf.js";
123import { n as Fs } from "./chunk-d9dplb6z.js";
124import { n as Ws } from "./chunk-hgaiynd0.js";
125import { n as Vs } from "./chunk-hx6y7kek.js";
126import { t as Hs } from "./chunk-ld081sxw.js";
127import { n as $s } from "./chunk-hwni6bri.js";
128import { n as Ks } from "./chunk-hsf3dpma.js";
129import { n as js } from "./chunk-fali582u.js";
130import { n as Js } from "./chunk-ij1u9l2n.js";
131import { n as qs } from "./chunk-ck56cmad.js";
132import { n as Xs, t as zs } from "./chunk-nemq363r.js";
133import { t as Us } from "./chunk-i2ogy8gh.js";
134import { r as Ys } from "./chunk-e7mi71mr.js";
135import { _ as Zs } from "./chunk-czakmhgz.js";
136import { n as Qs } from "./chunk-m1yc3ygr.js";
137import { i as ir } from "./chunk-k5qrxypz.js";
138import { t as tr } from "./chunk-n0qt0ytv.js";
139import { n as er } from "./chunk-8uvtj9vi.js";
140import { t as nr } from "./chunk-kum14w7h.js";
141import { n as sr } from "./chunk-foy1gqs3.js";
142import { o as rr } from "./chunk-oinny59o.js";
143import { n as or } from "./chunk-cmoyh3hx.js";
144import { n as ar } from "./chunk-focwpgem.js";
145import { i as cr } from "./chunk-c6c21m38.js";
146import { i as hr } from "./chunk-b1pv0u7h.js";
147import { t as ur } from "./chunk-bzdqm0fg.js";
148import { l as dr, r as lr, s as mr, u as pr } from "./chunk-ibympkf2.js";
149import { r as gr } from "./chunk-je8asq4j.js";
150import { d as _r } from "./chunk-ophyzqlx.js";
151import { n as fr } from "./chunk-kb3m33eu.js";
152import { n as kr } from "./chunk-he7hdbsv.js";
153import { t as vr }
153 from "./chunk-kn4tq1y4.js";
154import { n as yr } from "./chunk-pcrjqtwg.js";
155import { n as Cr } from "./chunk-hh4rfzhx.js";
156import { i as br } from "./chunk-o9d3376i.js";
157import { F as Or, H as Br, lt as mi, u as Ir } from "./chunk-n7mazb2g.js";
158import { n as xr } from "./chunk-f003tdgn.js";
159import { n as Dr, t as Sr } from "./chunk-h968z96s.js";
160import { a as Tr } from "./chunk-n2c6bkgz.js";
161import { d as Pr } from "./chunk-dh6y5o5c.js";
162import { n as wr, t as pi } from "./chunk-cmbai8sy.js";
163import { n as Er } from "./chunk-o8j15sr1.js";
164import { a as Nr } from "./chunk-mthf07ko.js";
165import { n as Mr } from "./chunk-nu7vclav.js";
166import { n as Lr } from "./chunk-jnbpzwq8.js";
167import { t as Gr } from "./chunk-hc6zu2lo.js";
168import { a as Rr } from "./chunk-jd93snah.js";
169import { a as Ar } from "./chunk-h2a1jk9u.js";
170import { t as Fr } from "./chunk-ii2nakax.js";
171import { n as Wr } from "./chunk-bz4w98li.js";
172import { i as Vr, n as Hr, r as z, t as $r } from "./chunk-fu031b4l.js";
173import { t as Kr } from "./chunk-m4iun2ve.js";
174import { n as jr, t as Jr } from "./chunk-ezjk3as3.js";
175import { n as qr } from "./chunk-osqporme.js";
176import { n as Xr } from "./chunk-jc58j3d1.js";
177import { o as zr } from "./chunk-dnfkq1g8.js";
178import { n as Ur } from "./chunk-j8braqzq.js";
179import { r as Yr } from "./chunk-nk13yrgg.js";
180import { c as Zr, t as G } from "./chunk-mkjsekfa.js";
181import { n as Qr, t as io } from "./chunk-fmcihc9q.js";
182import { n as to } from "./chunk-bqi34kzb.js";
183import { r as eo } from "./chunk-by7nwdb5.js";
184import { n as no, t as so } from "./chunk-ls3cgcpm.js";
185import { n as ro, t as oo } from "./chunk-jj3cpi7o.js";
186import { n as ao, t as co } from "./chunk-n6mgwg00.js";
187import { n as ho, t as uo } from "./chunk-knpiblhl.js";
188import { n as lo, t as mo } from "./chunk-kci9tg0j.js";
189import { n as po, r as go, t as _o } from "./chunk-c5sdwb54.js";
190import { a as fo, i as ko, n as vo, o as yo, r as gi, s as Co, t as _i } from "./chunk-ivfyvm01.js";
191import { n as bo, t as Oo } from "./chunk-itb5u0c9.js";
192import { t as Bo } from "./chunk-o4f8w5yc.js";
193function Io(e, s) {
194	if (e & 1) {
195		let i = O();
196		y(0, "ms-event-list-switch", 2), I("loadMore", function() {
197			return B(i), D(c(2).loadMore());
198		}), C();
199	}
200	if (e & 2) {
201		c();
202		let i = V(0), t = V(1), n = c();
203		g("model", i)("tabs", n.tabs())("tracking", n.tracking())("hasMore", n.hasMore())("gridConfig", n.gridConfig)("headerContent", n.headerContent())("popularTab", n.popularTab())("isTeamGroupingEnabled", n.isTeamGroupingEnabled())("popularTabOptionsCountByEventPosition", n.popularTabOptionsCountByEventPosition())("fixturesBatchCount", n.fixturesBatchCount())("maxCarouselFixtures", n.isBetBuilderPlusLobby() || t ? n.maxCarouselFixtures() : null)("useOverlayLayout", n.isBetBuilderPlusLobby())("isModule", t)("moduleMaxNumberOfLines", n.moduleMaxNumberOfLines());
204	}
205}
206function xo(e, s) {
207	if (e & 1 && (y(0, "div", 1), f(1, "ms-error", 3), C()), e & 2) {
208		let i = c(2);
209		l(), g("message", i.sitecore.widgets.messages.ComposableEmptyTab)("links", !1);
210	}
211}
212function Do(e, s) {
213	if (e & 1 && (ti(0)(1), p(2, Io, 1, 14, "ms-event-list-switch", 0)(3, xo, 2, 2, "div", 1)), e & 2) {
214		let i = c();
215		K(i.events()), l();
216		let t = K(i.isModule());
217		l(), m(i.shouldShowEventList() ? 2 : !t && i.eventListLoaded() ? 3 : -1);
218	}
219}
220function So(e, s) {
221	e & 1 && f(0, "ds-loading-spinner");
222}
223function To(e, s) {
224	if (e & 1) {
225		let i = O();
226		y(0, "ms-widget-tab-bar", 5), I("select", function() {
227			return B(i), D(c().primaryNavigationSelected());
228		}), C();
229	}
230	e & 2 && g("tabs", c().primaryNavigation);
231}
232function Po(e, s) {
233	if (e & 1 && (y(0, "div", 7)(1, "span", 8), Bi(2), C()()), e & 2) {
234		let i = c(3);
235		l(), g("title", i.singleMarketTitle), l(), Ai(" ", i.singleMarketTitle, " ");
236	}
237}
238function wo(e, s) {
239	e & 1 && p(0, Po, 3, 2, "div", 7), e & 2 && m(c(2).hideSingleMarket ? -1 : 0);
240}
241function Eo(e, s) {
242	if (e & 1) {
243		let i = O();
244		y(0, "ms-widget-pill", 9), I("select", function() {
245			return B(i), D(c(2).secondaryNavigationSelected());
246		}), C();
247	}
248	e & 2 && g("pills", c(2).secondaryNavigation);
249}
250function No(e, s) {
251	if (e & 1 && p(0, wo, 1, 1)(1, Eo, 1, 1, "ms-widget-pill", 6), e & 2) {
252		let i = c();
253		m(i.singleMarketTitle ? 0 : i.secondaryNavigation.length ? 1 : -1);
254	}
255}
256function Mo(e, s) {
257	if (e & 1) {
258		let i = O();
259		y(0, "div", 1)(1, "ms-dropdown", 10), I("optionChange", function(t) {
260			return B(i), D(c().optionSelected(t));
261		}), C()();
262	}
263	if (e & 2) {
264		let i = c();
265		l(), g("activeOption", i.activeOption)("options", i.dropdownOptions);
266	}
267}
268function Lo(e, s) {
269	if (e & 1 && f(0, "ms-grid-option-group", 12), e & 2) {
270		let i = c(2);
271		g("activeEvent", i.activeEvent)("activeOptionGroup", i.activeOptionGroup)("enableOptionImages", i.enableOptionImages)("optionImages", i.optionImages)("tracking", i.pickTracking)("sourceOfPick", i.sourceOfPick)("isOutrightGrid", !0)("threshold", i.threshold);
272	}
273}
274function Go(e, s) {
275	if (e & 1) {
276		let i = O();
277		y(0, "div", 11), I("rerender", function(t) {
278			return B(i), D(c().getColumns(t));
279		}), p(1, Lo, 1, 8, "ms-grid-option-group", 12), C();
280	}
281	if (e & 2) {
282		let i = c();
283		g("maxColumns", i.maxColumns)("tolerance", i.tolerance)("resetClass", !0)("optionGroup", i.activeOptionGroup)("optionPickClass", ".option-group"), l(), m(i.activeEvent ? 1 : -1);
284	}
285}
286function Ro(e, s) {
287	e & 1 && f(0, "ms-error", 3), e & 2 && g("message", c().siteCore.eventGrid.NonGridableEmpty)("links", !1);
288}
289function Ao(e, s) {
290	if (e & 1) {
291		let i = O();
292		y(0, "div", 4)(1, "ms-item", 13), I("click", function() {
293			return B(i), D(c().linkClick());
294		}), f(2, "span", 14), Fi(3, "msTrust"), C()();
295	}
296	if (e & 2) {
297		let i = c();
298		l(), g("href", i.eventUrl)("tracking", void 0), l(), g("innerHtml", Si(3, 3, i.bottomLink, "html"), Gi);
299	}
300}
301function Fo(e, s) {
302	e & 1 && f(0, "vn-icon", 4);
303}
304function Wo(e, s) {
305	if (e & 1) {
306		let i = O();
307		y(0, "div", 2), I("click", function() {
308			return B(i), D(c(2).loadMore());
309		}), f(1, "ms-grid-show-more", 3), p(2, Fo, 1, 0, "vn-icon", 4), C();
310	}
311	if (e & 2) {
312		let i = c(2);
313		l(), g("loading", i.moreLoading())("message", i.showMoreMessage()), l(), m(i.moreLoading() ? -1 : 2);
314	}
315}
316function Vo(e, s) {
317	if (e & 1 && (f(0, "ms-grid-list", 0), p(1, Wo, 3, 3, "div", 1)), e & 2) {
318		let i = c();
319		g("model", V(0))("tracking", i.gridTracking())("showAllBetsButton", i.showAllBetsButton())("isOutrightMarket", i.isOutrightMarket()), l(), m(i.hasMore() ? 1 : -1);
320	}
321}
322function Ho(e, s) {
323	if (e & 1 && f(0, "ms-widget-header", 3), e & 2) {
324		let i = c(2);
325		g("title", i.title)("titleIcon", i.titleIcon)("sportId", i.titleData.sportId)("leagueId", i.titleData.id)("fallbackIcon", i.titleData.icon);
326	}
327}
328function $o(e, s) {
329	if (e & 1 && f(0, "ms-outrights-grid-widget", 4), e & 2) {
330		let i = c(3);
331		g("context", i.context)("payload", i.payload)("title", i.title)("titleIcon", i.titleIcon)("titleData", i.titleData)("parentIsHandlingNavigation", i.parentIsHandlingNavigation);
332	}
333}
334function Ko(e, s) {
335	if (e & 1 && f(0, "ms-outrights-stacked-widget", 5), e & 2) {
336		let i = c(4);
337		g("payload", i.payload)("context", i.context)("widgetId", i.widgetId);
338	}
339}
340function jo(e, s) {
341	if (e & 1 && f(0, "ms-outrights-event-list-carousel", 6), e & 2) {
342		let i = c(4);
343		g("isBetBuilderPlusLobby", i.isBetBuilderPlusLobby)("payload", i.payload)("context", i.context)("widgetId", i.widgetId);
344	}
345}
346function Jo(e, s) {
347	if (e & 1 && p(0, Ko, 1, 3, "ms-outrights-stacked-widget", 5)(1, jo, 1, 4, "ms-outrights-event-list-carousel", 6), e & 2) {
348		let i = c(3);
349		m(i.payload.type !== i.stackedDynamicsType ? 0 : 1);
350	}
351}
352function qo(e, s) {
353	if (e & 1 && (p(0, $o, 1, 6, "ms-outrights-grid-widget", 4), p(1, Jo, 2, 1)), e & 2) {
354		let i = c(2);
355		m(i.isGridView ? 0 : -1), l(), m(i.isGridView ? -1 : 1);
356	}
357}
358function Xo(e, s) {
359	if (e & 1 && (Hi(0), p(1, Ho, 1, 5, "ms-widget-header", 3), p(2, qo, 2, 2), wi()), e & 2) {
360		let i = c();
361		l(), m(i.showTitle ? 1 : -1), l(), m(i.payload ? 2 : -1);
362	}
363}
364function zo(e, s) {
365	e & 1 && f(0, "div", 7);
366}
367function Uo() {
368	return [mt(Ci)];
369}
370var U, fi, R, ki, vi, yi, Ci;
371function bi() {
372	return (bi = Bo((() => {
373		Oi(), Ei(), $i(), Ki(), ji(), Ji(), Xi(), Ui(), tt(), et(), nt(), rt(), ot(), Yi(), ct(), ht(), ut(), at(), dt(), gt(), ft(), vt(), kt(), yt(), Ct(), bt(), Ot(), lt(), Ht(), ue(), ae(), Xt(), De(), _e(), pe(), Bt(), It(), Kt(), zt(), Se(), ke(), We(), xt(), Ge(), be(), oe(), ce(), ne(), Tt(), Ut(), te(), Be(), xe(), re(), Vt(), ve(), Ee(), Fe(), ee(), ie(), wt(), Pt(), le(), Pe(), ge(), Le(), Ae(), he(), qt(), $t(), He(), ye(), Et(), Re(), Oe(), fe(), de(), Me(), Yt(), Nt(), Lt
373(), Gt(), Qt(), Ie(), Jt(), se(), Rt(), At(), Ft(), Wt(), jt(), Ve(), $e(), me(), Ne(), Ce(), Ke(), Qe(), nn(), rn(), Ue(), tn(), en(), on(), an(), cn(), hn(), Ye(), un(), Ze(), sn(), dn(), fn(), ln(), mn(), pn(), gn(), _n(), Cn(), kn(), vn(), yn(), Mn(), Gn(), Rn(), An(), Fn(), Vn(), Hn(), $n(), bn(), Kn(), On(), Bn(), In(), xn(), jn(), Jn(), Xn(), zn(), Un(), Yn(), Dn(), Sn(), Zn(), Qn(), is(), Tn(), Pn(), wn(), Nn(), ts(), es(), rs(), os(), as(), cs(), hs(), us(), ds(), ls(), ms(), gs(), _s(), fs(), ks(), vs(), ys(), Ur(), Cs(), bs(), Os(), Bs(), Is(), xs(), Ds(), Ss(), Ps(), ws(), Es(), Ms(), Ls(), Gs(), Fs(), Ws(), Vs(), Hs(), $s(), Ks(), js(), Js(), qs(), zs(), Us(), Ys(), Zs(), ir(), tr(), er(), io(), nr(), sr(), rr(), or(), ar(), cr(), hr(), dr(), Br(), ur(), _r(), fr(), Qs(), kr(), vr(), yr(), Cr(), br(), gr(), xr(), Yr(), Zr(), Dr(), to(), Tr(), Pr(), wr(), Er(), Nr(), Mr(), Lr(), Gr(), Rr(), Ar(), Fr(), eo(), Wr(), no(), Vr(), ro(), Kr(), jr(), ho(), mo(), qr(), Xr(), zr(), bo(), po(), ao(), ko(), U = (() => {
374			let e = class extends go {
375				constructor() {
376					super(...arguments), this.eachWayMarketHelperService = r(Ln), this.activeMarketDictionary = /* @__PURE__ */ new Map();
377				}
378				getCount(i, t) {
379					return Zi(i.map((n) => n.count ?? 0));
380				}
381				map(i, t, n) {
382					return this.getPrimaryNavigation(i, t, n);
383				}
384				setSecondaryActiveId(i, t, n) {
385					let o = this.getKey(i, t);
386					this.activeMarketDictionary.set(o, n);
387				}
388				deleteSecondaryActiveId(i, t) {
389					let n = this.getKey(i, t);
390					this.activeMarketDictionary.delete(n);
391				}
392				getPrimaryNavigation(i, t, n) {
393					return t?.length ? t.map((o) => this.mapGroupItem(o, n, i)) : [];
394				}
395				getSecondaryNavigation(i, t, n, o) {
396					if (!t.length) return [];
397					let h = [];
398					return h = t.flatMap((a) => [...h, ...this.mapEvent(i, a, n, o)]), h = this.getOrderedTabs(h, o), h.length && !h.find((a) => a.active === !0) && (h[0].active = !0), h;
399				}
400				getOrderedTabs(i, t) {
401					let n = new Map(t.map((o, h) => [o.id, h]));
402					return Qi(i, (o) => n.get(+o.id) ?? 9999);
403				}
404				mapGroupItem(i, t, n) {
405					let o = i.id || "";
406					return {
407						id: this.getId(n, i),
408						widgetId: n,
409						itemId: o,
410						title: i.name,
411						sportId: E(i.sport?.id),
412						context: o === n ? {} : { competitionId: E(i.id) },
413						active: E(o) === (t.parentLeagueId ?? t.competitionId),
414						icon: t.showCompetitionLogo ? `sports-${i.sport?.id}` : "",
415						display: t.showCompetitionLogo ? z.Logo : z.Default
416					};
417				}
418				mapEvent(i, t, n, o) {
419					return t.optionGroups.map((h) => this.mapOptionGroup(i, h, t, n, o));
420				}
421				mapOptionGroup(i, t, n, o, h) {
422					let a = t.id, k = this.getActiveOptionGroupId(i, n, o), A = h.find((F) => F.id === +a), _ = this.eachWayMarketHelperService.getWinMarketName(t, n), v = A?.name ?? t.name;
423					return v = _ ? `${v} ${_}` : v, {
424						widgetId: i,
425						title: v,
426						itemId: a,
427						context: {},
428						gridEvent: n,
429						id: a.toString(),
430						active: a === k,
431						display: z.Default
432					};
433				}
434				getActiveOptionGroupId(i, t, n) {
435					let o = this.getKey(i, n), h = this.activeMarketDictionary.get(o)?.toString();
436					if (h && this.checkIfOptionGroupExists(t, h)) return h;
437				}
438				getKey(i, t) {
439					return t ? `${i}/${t}` : `${i}`;
440				}
441				checkIfOptionGroupExists(i, t) {
442					return i.optionGroups.some((n) => n.id === t);
443				}
444			};
445			return e.ɵfac = (() => {
446				let s;
447				return function(i) {
448					return (s || (s = xi(e)))(i || e);
449				};
450			})(), e.ɵprov = H({
451				token: e,
452				factory: e.ɵfac,
453				providedIn: "root"
454			}), e;
455		})(), fi = (() => {
456			let e = class {
457				constructor() {
458					this.competitionRoute = r(li), this.carouselSubscriptionService = r(gi), this.apiService = r(G), this.destroyRef = r($), this.contextProvider = r(X), this.detailedFixtureFactory = r(ss), this.groupingService = r(ns), this.urlHelper = r(di), this.trackingService = r(_i), this.msBetBuilderPlus = r(ci), this.sitecore = r(J), this.msDynamicCategoryWidget = r(ui), this.currentTheme = ps(), this.inverseConfig = Co[this.currentTheme] ?? yo, this.platform = r(oi), this.clientConfigService = r(it), this.ssrBetBuilderPlusConfig = j("sports-bb-plus-carousel-config", null), this.ssrDynamicCategoryWidgetConfig = j("sports-bb-plus-carousel-dcw-config", null), this.gridConfig = r(ai), this.activeContext = this.contextProvider.getActiveContext(), this.payload = x.required(), this.context = x.required(), this.widgetId = x.required(), this.isBetBuilderPlusLobby = x.required(), this.hasInitialFixtures = d(() => this.payload().fixtures.length > 0), this.shouldShowEventList = d(() => this.events().length > 0 || this.hasInitialFixtures() && !this.eventListLoaded()), this.maxCarouselFixtures = d(() => this.configReady() ? this.msBetBuilderPlus.maxCarouselFixtures : null), this.isTeamGroupingEnabled = d(() => this.configReady() ? this.msBetBuilderPlus.enableTeamGroupingForPopularTab : !1), this.isModule = d(() => this.payload().dynamicCategoryData?.isBetBuilderPlusModule ?? !1), this.moduleMaxNumberOfLines = d(() => this.configReady() && this.isModule() ? this.msBetBuilderPlus.moduleMaxNumberOfLines : void 0), this.popularTabOptionsCountByEventPosition = d(() => this.configReady() ? this.msBetBuilderPlus.popularTabOptionsCountByEventPosition ?? [] : []), this.fixturesBatchCount = d(() => this.configReady() ? this.msDynamicCategoryWidget.fixturesBatchCount : 0), this.isBBPlusLobbyEnabled = d(() => this.dynamicCategoryWidgetTabMap().get(Te.BetBuilderPlusLobby.toLowerCase()) ?? !1), this.dynamicCategoryWidgetTabMap = d(() => {
459						let i = this.configReady() ? this.msDynamicCategoryWidget.enableDynamicCategoryWidgetTab : void 0;
460						return new Map(Object.entries(i ?? {}).map(([t, n]) => [t.toLowerCase(), n]));
461					}), this.moduleRedirectLink = d(() => {
462						if (this.configReady() && this.isModule() && this.isBBPlusLobbyEnabled()) return this.urlHelper.getBuilder("betbuilderplus").toString();
463					}), this.headerContent = d(() => ({
464						showBadge: this.isModule(),
465						isModule: this.isModule(),
466						badgeTitle: this.sitecore.betBuilder.messages?.BetBuilderPlusModuleBadge ?? "",
467						tooltipTitle: this.sitecore.betBuilder.messages?.BetBuilderPlusTooltipTitle ?? "",
468						tooltipDescription: this.sitecore.betBuilder.messages?.BetBuilderPlusTooltipDescription ?? "",
469						tooltipIcon: this.currentTheme === "ladbrokes-uk" ? "theme-info" : "theme-question",
470						linkText: this.sitecore.betBuilder.messages?.BetBuilderPlusModuleLinkText ?? "",
471						redirectLink: this.moduleRedirectLink(),
472						isTooltipInverse: this.inverseConfig.tooltipInverse,
473						isLinkButtonInverse: this.inverseConfig.linkButtonInverse
474					})), this.events = w([]), this.eventListLoaded = w(!1), this.hasMore = w(!1), this.loading = w(!1), this.initialized = !1, this.tracking = d(() => {
475						let i = this.competitionRoute.getCompetitionRouteTracking(this.payload().fixtures.length > 0), t = this.isBetBuilderPlusLobby() ? "sports event" : "event carousel";
476						return {
477							competitionRoute: i,
478							defaultTracking: {
479								[u.COMPONENT_LOCATION_EVENT]: this.trackingService.pageMapper(this.activeContext.page),
480								[u.COMPONENT_CATEGORY_EVENT]: t,
481								[u.COMPONENT_LABEL_EVENT]: "betbuilder plus",
482								[u.COMPONENT_ACTION_EVENT]: "click",
483								[u.COMPONENT_URL_CLICKED]: L,
484								[u.SPORT_LEAGUE_ID]: this.activeContext.competitionId?.toString() ?? "not applicable",
485								[u.MARKET_ID]: L,
486								[u.SPORT_ID]: this.activeContext.sportId?.toString() ?? "not applicable"
487							}
488						};
489					}), this.tabs = d(() => this.payload().dynamicCategoryData?.subCategories ?? []), this.isDynamicCategory = d(() => this.payload().type === "StackedDynamics" && !!this.payload().dynamicCategoryData?.dynamicCategoryId), this.popularTab = d(() => !this.isDynamicCategory() || this.payload().fixtures.length <= 1 ? null : this.payload().dynamicCategoryData?.popularCategory ?? null), this.initSsrConfigTransfer(), this.configReady = ri(Ni([this.msBetBuilderPlus.whenReady, this.msDynamicCategoryWidget.whenReady]).pipe(M(() => !0)), { initialValue: this.msBetBuilderPlus.isConfigReady && this.msDynamicCategoryWidget.isConfigReady }), ii(() => {
490						let i = this.configReady(), t = this.payload();
491						i && !this.initialized && (this.initialized = !0, t.fixtures.length > 0 ? this.createEvents(t.fixtures).pipe(S(this.destroyRef)).subscribe((n) => {
492							this.events.set(n), this.hasMore.set(t.fixtures.length < (t.navigation?.[0].count ?? 0)), this.carouselSubscriptionService.subscribeEvents(n, t.dynamicCategoryData?.dynamicCategoryId), this.eventListLoaded.set(!0);
493						}) : this.eventListLoaded.set(!0));
494					}), ii(() => {
495						let i = this.carouselSubscriptionService.updatedEvent();
496						i && this.events.update((t) => {
497							let n = t.findIndex((h) => h.id === i.id);
498							if (n === -1) return t;
499							let o = [...t];
500							return o[n] = Object.assign(Object.create(Object.getPrototypeOf(i)), i), o;
501						});
502					}), Ti({ write: () => {
503						this.isBetBuilderPlusLobby() && this.trackingService.trackOverlayOpen(this.tracking().defaultTracking);
504					} }), this.destroyRef.onDestroy(() => {
505						this.carouselSubscriptionService.unsubscribe();
506					});
507				}
508				loadMore() {
509					if (!this.hasMore() || this.loading()) return;
510					this.loading.set(!0);
511					let i = this.events().length;
512					this.apiService.getWidget(T(b({}, this.context()), { skip: i }), this.activeContext).pipe(S(this.destroyRef), ni(({ payload: t }) => !t || t.fixtures.length === 0 ? (this.hasMore.set(!1), si) : this.createEvents(t.fixtures).pipe(M((n) => ({
513						newEvents: n,
514						payload: t
515					})))), Q(() => this.loading.set(!1))).subscribe(({ newEvents: t, payload: n }) => {
516						this.events.update((o) => {
517							let h = new Set(o.map((k) => k.id)), a = t.filter((k) => !h.has(k.id));
518							return [...o, ...a];
519						}), this.hasMore.set(i + n.fixtures.length < (n.navigation?.[0].count ?? 0) && n.fixtures.length > 0 && i < this.events().length), this.carouselSubscriptionService.subscribeEvents(t, this.payload().dynamicCategoryData?.dynamicCategoryId);
520					});
521				}
522				createEvents(i) {
523					return i.length ? this.groupingService.getFixtureGrouping(i[0].sport.id, "any").pipe(M((t) => t ? i.map((n) => this.detailedFixtureFactory.create({
524						fixture: n,
525						splitFixtures: [],
526						grouping: t,
527						isPriceBoosted: !1,
528						excludePriceboostedMarketGrouping: !1
529					})) : []), Pi(() => Y([]))) : Y([]);
530				}
531				initSsrConfigTransfer() {
532					if (this.platform.isServer) this.msBetBuilderPlus.whenReady.pipe(ei(1)).subscribe(() => {
533						let i = this.clientConfigService.get(ci);
534						this.ssrBetBuilderPlusConfig.set(i);
535					}), this.msDynamicCategoryWidget.whenReady.pipe(ei(1)).subscribe(() => {
536						let i = this.clientConfigService.get(ui);
537						this.ssrDynamicCategoryWidgetConfig.set(i);
538					});
539					else {
540						let i = this.ssrBetBuilderPlusConfig(), t = this.ssrDynamicCategoryWidgetConfig();
541						if (i || t) {
542							let n = {};
543							i && (n.msBetBuilderPlus = i), t && (n.msDynamicCategoryWidget = t), this.clientConfigService.update(n);
544						}
545					}
546				}
547			};
548			return e.ɵfac = function(s) {
549				return new (s || e)();
550			}, e.ɵcmp = N({
551				type: e,
552				selectors: [["ms-outrights-event-list-carousel"]],
553				hostAttrs: [1, "outrights-event-list-carousel-container"],
554				hostVars: 6,
555				hostBindings: function(s, i) {
556					s & 2 && Z("bet-builder-lobby", i.isModule() || i.isBetBuilderPlusLobby())("bet-builder-module", i.isModule())("bet-builder-loading", !i.configReady() && !i.hasInitialFixtures());
557				},
558				inputs: {
559					payload: [1, "payload"],
560					context: [1, "context"],
561					widgetId: [1, "widgetId"],
562					isBetBuilderPlusLobby: [1, "isBetBuilderPlusLobby"]
563				},
564				features: [W([gi, {
565					provide: _i,
566					useExisting: fo
567				}])],
568				decls: 2,
569				vars: 1,
570				consts: [
571					[
572						3,
573						"model",
574						"tabs",
575						"tracking",
576						"hasMore",
577						"gridConfig",
578						"headerContent",
579						"popularTab",
580						"isTeamGroupingEnabled",
581						"popularTabOptionsCountByEventPosition",
582						"fixturesBatchCount",
583						"maxCarouselFixtures",
584						"useOverlayLayout",
585						"isModule",
586						"moduleMaxNumberOfLines"
587					],
588					[1, "empty-panel"],
589					[
590						3,
591						"loadMore",
592						"model",
593						"tabs",
594						"tracking",
595						"hasMore",
596						"gridConfig",
597						"headerContent",
598						"popularTab",
599						"isTeamGroupingEnabled",
600						"popularTabOptionsCountByEventPosition",
601						"fixturesBatchCount",
602						"maxCarouselFixtures",
603						"useOverlayLayout",
604						"isModule",
605						"moduleMaxNumberOfLines"
606					],
607					[
608						"severity",
609						"info",
610						3,
611						"message",
612						"links"
613					]
614				],
615				template: function(s, i) {
616					s & 1 && p(0, Do, 4, 3)(1, So, 1, 0, "ds-loading-spinner"), s & 2 && m(i.configReady() || i.hasInitialFixtures() ? 0 : i.isModule() ? -1 : 1);
617				},
618				dependencies: [
619					vo,
620					pi,
621					pt
622				],
623				styles: ["[_nghost-%COMP%]{text-align:left}.bet-builder-loading.bet-builder-lobby[_nghost-%COMP%]{height:100vh}.bet-builder-loading.bet-builder-lobby.bet-builder-module[_nghost-%COMP%]{height:auto;min-height:350px}.bet-builder-lobby[_nghost-%COMP%]{background:var(--%NS%semantic-color-surface-container-lowest-base);border-radius:var(--%NS%semantic-radius-semi-rounded-md) var(--%NS%semantic-radius-semi-rounded-md) var(--%NS%semantic-radius-semi-rounded-sm) var(--%NS%semantic-radius-semi-rounded-sm);display:block}.bet-builder-lobby.bet-builder-module[_nghost-%COMP%]{border-radius:var(--%NS%semantic-radius-semi-rounded-md);min-height:350px}.bet-builder-lobby.device-desktop[_nghost-%COMP%][_nghost-%COMP%], .device-desktop   [_nghost-%COMP%]{margin:var(--%NS%lobby-margin)}.bet-builder-module[_nghost-%COMP%], .bet-builder-module   [_nghost-%COMP%]{margin:var(--%NS%module-badge-margin)}.bet-builder-module.device-mobile[_nghost-%COMP%], .bet-builder-module.device-mobile   [_nghost-%COMP%], .bet-builder-module   .device-mobile[_nghost-%COMP%], .bet-builder-module   .device-mobile   [_nghost-%COMP%], .device-mobile   .bet-builder-module[_nghost-%COMP%], .device-mobile   .bet-builder-module   [_nghost-%COMP%]{margin:var(--%NS%module-mobile-badge-margin)}"]
624			}), e;
625		})(), R = (() => {
626			let e = class {
627				constructor() {
628					this.trackingService = r(Zt), this.accessorService = r(q);
629				}
630				getTrackingLocationEvent(i, t) {
631					return [
632						this.accessorService.getPage(),
633						this.accessorService.getWidget()?.templateName,
634						i,
635						t
636					].filter((n) => n).join("/").toLowerCase();
637				}
638				trackLinkClick(i) {
639					let t = T(b(b({}, this.getPartialTrackingObject()), this.accessorService.getWidget()?.trackingData), {
640						[u.COMPONENT_EVENT_DETAILS]: i.eventDetails,
641						[u.COMPONENT_LOCATION_EVENT]: this.getTrackingLocationEvent(this.positionType, this.activeId),
642						[u.COMPONENT_URL_CLICKED]: i.urlClicked,
643						[u.COMPONENT_POSITION_EVENT]: L,
644						[u.COMPONENT_CONTENT_POSITION]: L
645					});
646					this.trackingService.track(u.EVENT_TRACKING, t);
647				}
648				setActiveTabItem(i, t) {
649					this.activeId = i, this.positionType = t;
650				}
651				trackTabSelected(i, t, n) {
652					this.activeId = i.itemId, this.positionType = n;
653					let o = T(b(b({}, this.getPartialTrackingObject()), this.accessorService.getWidget()?.trackingData), {
654						[u.COMPONENT_EVENT_DETAILS]: i.title ?? "",
655						[u.COMPONENT_POSITION_EVENT]: n,
656						[u.COMPONENT_LOCATION_EVENT]: this.getTrackingLocationEvent(n, i.itemId),
657						[u.COMPONENT_CONTENT_POSITION]: t.toString()
658					});
659					n === "league" ? o[u.SPORT_LEAGUE_ID] = i.itemId.toString() : o[u.MARKET_ID] = i.itemId.toString(), this.trackingService.track(u.EVENT_TRACKING, o);
660				}
661				getPartialTrackingObject() {
662					return {
663						[u.COMPONENT_LABEL_EVENT]: "widget navigation",
664						[u.COMPONENT_CATEGORY_EVENT]: `${this.accessorService.getPage()?.toLowerCase()} grid widgets`,
665						[u.COMPONENT_ACTION_EVENT]: "Click"
666					};
667				}
668			};
669			return e.ɵfac = function(s) {
670				return new (s || e)();
671			}, e.ɵprov = H({
672				token: e,
673				factory: e.ɵfac,
674				providedIn: "root"
675			}), e;
676		})(), ki = (() => {
677			let e = class {
678				constructor() {
679					this.siteCore = r(J), this.urlHelper = r(di), this.fixtureFactory = r(En), this.apiService = r(G), this.stylingGridConfig = r(Dt), this.outrightsGridConfig = r(St), this.trackingService = r(R), this.navigationService = r(U), this.eventSubscriptionService = r(Ns), this.accessorService = r(q), this.deviceService = r(st), this.participantImageService = r(mi), this.columnLayoutService = r(Sr), this.cdnCachingConfig = r(hi), this.className = "grid outrights-grid-widget", this.showParticipantBoldName = !1, this.leagueText = "league", this.marketText = "market", this.outrightEvents = [], this.shouldIncludePayload = !1, this.tolerance = 50, this.maxColumns = 4, this.showPills = !1, this.sourceOfPick = Xs.OutrightsGrid, this.optionImages = {}, this.destroyRef = r($), this.contextProvider = r(X), this.shouldIncludePayload = this.cdnCachingConfig.widgets.includes("OutrightsGrid"), this.deviceService.isMobilePhone && this.deviceService.orientation.pipe(S()).subscribe((i) => {
680						i === "portrait" ? this.maxColumns = 1 : this.maxColumns = 4;
681					});
682				}
683				ngAfterViewInit() {
684					this.columnLayoutService.resetMeasurement();
685				}
686				ngOnDestroy() {
687					this.unsubscribe();
688				}
689				ngOnChanges(i) {
690					if (!i.payload || (i.payload?.currentValue.fixtures.length ?? 0) === 0) return;
691					let t = i.payload.currentValue;
692					this.fixtures = t.fixtures, this.hidePrimaryNavigation = t.hidePrimaryNavigation, this.showPills = this.outrightsGridConfig.isMarketP
692illsEnabled, this.showParticipantBoldName = this.stylingGridConfig.showParticipantBoldName, this.bottomLink = t.bottomLinkText || this.siteCore.eventGrid.OutrightsGrid_AllBetsLinkText;
693					let n = t.maxRows ?? 0;
694					this.maxRows = n <= 0 || n > this.outrightsGridConfig.maxRowsThreshold ? this.outrightsGridConfig.maxRowsThreshold : n, this.showCompetitionNavigation = t.showCompetitionNavigation, this.hideSingleMarket = t.hideSingleMarket, this.showParticipantImages = this.outrightsGridConfig.enableParticipantImages;
695					let o = this.getMarketsByCompetition(t.fixtures, t.marketOverrides);
696					this.marketNameOverrides = this.showCompetitionNavigation ? o : t.marketOverrides, this.setEventModels(), this.setPrimaryNavigation(t), this.setSecondaryNavigation(), this.pickTracking?.source || (this.pickTracking = { source: `${this.leagueText}/${t.fixtures[0].competition.id}` });
697				}
698				setEventModels() {
699					this.outrightEvents = this.fixtures.map((i) => this.fixtureFactory.create(i)), this.subscribeEvents();
700				}
701				subscribeEvents() {
702					this.unsubscribe();
703					let i = () => this.setSecondaryNavigation(), t = this.outrightEvents.map((n) => ({
704						event: n,
705						callback: i
706					}));
707					t.length && (this.eventSubscriptions = this.eventSubscriptionService.subscribe(t));
708				}
709				unsubscribe() {
710					this.eventSubscriptions?.unsubscribe();
711				}
712				setPrimaryNavigation(i) {
713					let { competition: t } = i.fixtures[0];
714					this.primaryNavigation = this.navigationService.getPrimaryNavigation(this.widget.id, i.navigation ?? [], {
715						competitionId: t.id,
716						parentLeagueId: t.parentLeagueId,
717						showCompetitionLogo: i.showCompetitionLogo
718					});
719					let n = this.getPrimaryActive();
720					n && this.trackingService.setActiveTabItem(n.itemId, this.leagueText);
721				}
722				setSecondaryNavigation() {
723					let i = this.outrightEvents, t = this.getPrimaryActive(), n = this.navigationService.getSecondaryNavigation(this.widget.id, i, t?.id, this.marketNameOverrides);
724					this.setSecondaryLevelOptions(n);
725				}
726				setSecondaryLevelOptions(i) {
727					if (this.showPills) this.secondaryNavigation = i, this.singleMarketTitle = i.length === 1 ? i[0].title : void 0, this.setGrid();
728					else {
729						let t = i.find((n) => n.active)?.id;
730						t ? (this.dropdownOptions = i.map((n) => ({
731							id: n.id,
732							payload: n,
733							name: n.title,
734							type: pr.Regular,
735							arrowType: lr.Right
736						})), this.activeOption = this.dropdownOptions.find((n) => n.id === t), this.activeOption && this.setGrid(this.activeOption)) : this.removeSecondaryItem(this.getPrimaryActive());
737					}
738				}
739				setGrid(i, t) {
740					let n, o;
741					i ? (this.activeOption = i, n = i.payload, o = this.dropdownOptions.findIndex((a) => a.id === i.id)) : (n = this.secondaryNavigation?.find((a) => a.active), o = this.secondaryNavigation.findIndex((a) => a.active));
742					let h = this.getPrimaryActive();
743					if (n) {
744						this.activeEvent = n.gridEvent, this.eventUrl = this.urlHelper.getEventUrl(this.activeEvent);
745						let a = this.activeEvent?.optionGroups.find((k) => k.id === n?.id);
746						if (a) {
747							let k = a.options.filter((_) => _.online), A = a.options.filter((_) => !_.online);
748							a.options = [...k.sort((_, v) => E(_.nativePrice.decimals) - E(v.nativePrice.decimals)), ...A], a.options.forEach((_) => {
749								if (this.activeEvent?.offerSource === "V2") {
750									let v = this.activeEvent?.participants.find((F) => F.fixtureParticipantId === _.playerId);
751									_.playerId = v?.id ?? _.playerId, _.image = v?.image ?? void 0;
752								} else _.image = this.activeEvent?.participants.find((v) => v.id === _.playerId)?.image ?? void 0;
753							}), [this.enableOptionImages, this.optionImages] = this.participantImageService.showOrHideOptionImages(a.options, this.activeEvent?.sport?.id, this.activeEvent?.offerSource), this.activeOptionGroup = Object.assign({}, a);
754						}
755						this.navigationService.setSecondaryActiveId(this.widget.id, h?.id, n.id ?? i?.id), t ? (this.pickTracking = { source: `${this.marketText}/${n.itemId}` }, this.trackingService.trackTabSelected(n, o, this.marketText)) : this.trackingService.setActiveTabItem(n.itemId, this.marketText);
756					} else this.removeSecondaryItem(h);
757				}
758				removeSecondaryItem(i) {
759					this.activeOptionGroup = void 0, this.navigationService.deleteSecondaryActiveId(this.widget.id, i?.id);
760				}
761				getPrimaryActive() {
762					return this.primaryNavigation?.find((i) => i.active);
763				}
764				getMarketsByCompetition(i, t) {
765					return !i.length || !t ? [] : [...t.filter((n) => n.competitionId === i[0].competition.id.toString())];
766				}
767				primaryNavigationSelected() {
768					let i = this.primaryNavigation.findIndex((n) => n.active), t = this.getPrimaryActive();
769					this.pickTracking = { source: `${this.leagueText}/${t?.itemId}` }, this.trackingService.trackTabSelected(t, i, this.leagueText), this.apiService.getWidget(this.getDataContext(), this.contextProvider.getActiveContext()).pipe(S(this.destroyRef)).subscribe(({ payload: n }) => {
770						n && (this.showCompetitionNavigation = n.showCompetitionNavigation, this.marketNameOverrides = this.showCompetitionNavigation ? this.getMarketsByCompetition(n.fixtures, n.marketOverrides) : n.marketOverrides, this.fixtures = n.fixtures, this.setEventModels(), this.setSecondaryNavigation());
771					});
772				}
773				optionSelected(i) {
774					this.setGrid(i, !0);
775				}
776				secondaryNavigationSelected() {
777					this.setGrid(void 0, !0);
778				}
779				getDataContext() {
780					let i = this.getPrimaryActive();
781					return T(b(b({}, this.context), i?.context), { shouldIncludePayload: this.shouldIncludePayload });
782				}
783				linkClick() {
784					this.trackingService.trackLinkClick({
785						eventDetails: "see all",
786						urlClicked: this.urlHelper.getAbsolute(this.eventUrl)
787					});
788				}
789				getColumns(i) {
790					this.threshold = this.maxRows * i;
791				}
792				showOption(i) {
793					return i < this.threshold;
794				}
795				get showPrimaryNavigation() {
796					let i = !!this.parent && this.primaryNavigation.length === 1;
797					return !this.parentIsHandlingNavigation && this.primaryNavigation?.length > 0 && !i && !this.hidePrimaryNavigation;
798				}
799				get widget() {
800					return this.accessorService.getWidget();
801				}
802				get parent() {
803					return this.accessorService.getParentWidget();
804				}
805			};
806			return e.ɵfac = function(s) {
807				return new (s || e)();
808			}, e.ɵcmp = N({
809				type: e,
810				selectors: [["ms-outrights-grid-widget"]],
811				hostVars: 4,
812				hostBindings: function(s, i) {
813					s & 2 && (Mi(i.className), Z("bold-participant-names", i.showParticipantBoldName));
814				},
815				inputs: {
816					payload: "payload",
817					context: "context",
818					title: "title",
819					titleIcon: "titleIcon",
820					titleData: "titleData",
821					parentIsHandlingNavigation: "parentIsHandlingNavigation"
822				},
823				features: [W([R, mi]), Di],
824				decls: 6,
825				vars: 4,
826				consts: [
827					[3, "tabs"],
828					[1, "outrights-dropdown"],
829					[
830						"msOptionGroupRenderer",
831						"",
832						1,
833						"mesh-container",
834						3,
835						"maxColumns",
836						"tolerance",
837						"resetClass",
838						"optionGroup",
839						"optionPickClass"
840					],
841					[
842						"severity",
843						"info",
844						3,
845						"message",
846						"links"
847					],
848					[1, "grid-footer"],
849					[
850						3,
851						"select",
852						"tabs"
853					],
854					[3, "pills"],
855					[1, "outrights-single-market"],
856					[
857						1,
858						"single-market",
859						3,
860						"title"
861					],
862					[
863						3,
864						"select",
865						"pills"
866					],
867					[
868						1,
869						"grid-dropdown",
870						3,
871						"optionChange",
872						"activeOption",
873						"options"
874					],
875					[
876						"msOptionGroupRenderer",
877						"",
878						1,
879						"mesh-container",
880						3,
881						"rerender",
882						"maxColumns",
883						"tolerance",
884						"resetClass",
885						"optionGroup",
886						"optionPickClass"
887					],
888					[
889						3,
890						"activeEvent",
891						"activeOptionGroup",
892						"enableOptionImages",
893						"optionImages",
894						"tracking",
895						"sourceOfPick",
896						"isOutrightGrid",
897						"threshold"
898					],
899					[
900						3,
901						"click",
902						"href",
903						"tracking"
904					],
905					[
906						"item-title",
907						"",
908						3,
909						"innerHtml"
910					]
911				],
912				template: function(s, i) {
913					s & 1 && (p(0, To, 1, 1, "ms-widget-tab-bar", 0), p(1, No, 2, 1)(2, Mo, 2, 2, "div", 1), p(3, Go, 2, 6, "div", 2)(4, Ro, 1, 2, "ms-error", 3), p(5, Ao, 4, 6, "div", 4)), s & 2 && (m(i.showPrimaryNavigation ? 0 : -1), l(), m(i.showPills ? 1 : i.activeOptionGroup ? 2 : -1), l(2), m(i.activeOptionGroup && i.activeOptionGroup.online ? 3 : 4), l(2), m(i.bottomLink ? 5 : -1));
914				},
915				dependencies: [
916					mr,
917					pi,
918					uo,
919					qn,
920					Ir,
921					Hr,
922					$r,
923					Wn
924				],
925				encapsulation: 2,
926				changeDetection: 1
927			}), e;
928		})(), vi = (() => {
929			let e = class {
930				constructor() {
931					this.competitionRoute = r(li), this.gridFactory = r(Ts), this.apiService = r(G), this.store$ = r(we), this.accessorService = r(q), this.sitecore = r(J), this.destroyRef = r($), this.contextProvider = r(X), this.outrightsFixtureOrderService = r(Oo), this.gridConfig = r(ai), this.routeKey = _t(r(qi)), this.payload = x.required(), this.context = x.required(), this.widgetId = x.required(), this.moreLoading = w(!1), this.hasMore = Ri({
932						source: this.payload,
933						computation: (i) => i.fixtures.length < (i.navigation?.[0].count ?? 0)
934					}), this.topic = d(() => this.getTopic(this.payload().type)), this.isOutrightMarket = d(() => this.topic() === P.Outrights), this.showAllBetsButton = d(() => this.payload().showAllBetsButton), this.gridTracking = d(() => ({ tracking: this.competitionRoute.getCompetitionRouteTracking(this.payload().fixtures.length > 0) })), this.showMoreMessage = d(() => this.moreLoading() ? "" : this.sitecore.event.MoreEvents), this.isFixtureOrderEnabled = d(() => this.outrightsFixtureOrderService.isFixtureOrderEnabled(this.topic(), this.competitionRoute.params().sport, this.competitionRoute.params().region)), this.gridOptions = d(() => ({
935						marketGrouping: !0,
936						collapsedThreshold: this.gridConfig.collapseSize,
937						grouping: this.hasMultipleCompetitions(this.payload().fixtures) ? "competition" : this.isFixtureOrderEnabled() ? "none" : "date",
938						subscriptionTopic: this.topic(),
939						subscriptionTopicDetail: this.topic() === P.DynamicCategory ? this.payload().dynamicCategoryData?.dynamicCategoryId : void 0,
940						disableGroupSorting: this.isFixtureOrderEnabled()
941					})), this.grid$ = zi(this.payload).pipe(ni((i) => {
942						if (!i) return si;
943						let t = i.fixtures;
944						return (this.isOutrightMarket() || this.topic() === P.Specials) && (t = this.outrightsFixtureOrderService.applyFixtureOrdering(i, this.competitionRoute.params(), this.topic())), this.gridFactory.fromResponse(this.getGridId(), t, this.gridOptions());
945					})), this.grid = ri(this.grid$, { initialValue: null });
946				}
947				loadMore() {
948					let i = this.hasMore(), t = this.moreLoading(), n = this.context(), o = this.grid();
949					if (!i || t || !o) return;
950					this.moreLoading.set(!0);
951					let h = o.groups.reduce((a, k) => a + k[0].count, 0);
952					this.apiService.getWidget(T(b({}, n), { skip: h }), this.contextProvider.getActiveContext()).pipe(Q(() => this.moreLoading.set(!1)), S(this.destroyRef)).subscribe(({ payload: a }) => {
953						a && (this.hasMore.set(h + a.fixtures.length < (a.navigation?.[0].count ?? 0) && a.fixtures.length > 0), this.store$.dispatch(oo.addEvents({ payload: {
954							id: o.id,
955							fixtures: a.fixtures
956						} })));
957					});
958				}
959				getGridId() {
960					let i = this.accessorService.getParentWidget();
961					return i ? `${i.id}|${this.widgetId()}/${this.routeKey}` : `${this.widgetId()}/${this.routeKey}`;
962				}
963				hasMultipleCompetitions(i) {
964					return new Set(i.map((t) => t.isVirtual ? t.virtualCompetition.id : t.competition.parentLeagueId ?? t.competition.id)).size > 1;
965				}
966				getTopic(i) {
967					switch (i) {
968						case "StackedSpecials": return P.Specials;
969						case "StackedDynamics": return P.DynamicCategory;
970						default: return P.Outrights;
971					}
972				}
973			};
974			return e.ɵfac = function(s) {
975				return new (s || e)();
976			}, e.ɵcmp = N({
977				type: e,
978				selectors: [["ms-outrights-stacked-widget"]],
979				hostAttrs: [
980					1,
981					"grid",
982					"grid-wrapper",
983					"outrights-stacked-widget"
984				],
985				inputs: {
986					payload: [1, "payload"],
987					context: [1, "context"],
988					widgetId: [1, "widgetId"]
989				},
990				features: [W([R, {
991					provide: Or,
992					useValue: "ms-widget-slot"
993				}])],
994				decls: 2,
995				vars: 2,
996				consts: [
997					[
998						3,
999						"model",
1000						"tracking",
1001						"showAllBetsButton",
1002						"isOutrightMarket"
1003					],
1004					[
1005						1,
1006						"grid-footer",
1007						"show-more"
1008					],
1009					[
1010						1,
1011						"grid-footer",
1012						"show-more",
1013						3,
1014						"click"
1015					],
1016					[
1017						3,
1018						"loading",
1019						"message"
1020					],
1021					[
1022						"name",
1023						"theme-down",
1024						"size",
1025						"12"
1026					]
1027				],
1028				template: function(s, i) {
1029					if (s & 1 && (ti(0), p(1, Vo, 2, 5)), s & 2) {
1030						let t = K(i.grid());
1031						l(), m(t ? 1 : -1);
1032					}
1033				},
1034				dependencies: [
1035					Mt,
1036					co,
1037					lo
1038				],
1039				encapsulation: 2,
1040				changeDetection: 1
1041			}), e;
1042		})(), yi = (() => {
1043			let e = class extends As {
1044				constructor() {
1045					super(), this.apiService = r(G), this.cdnCachingConfig = r(hi), this.countryFlagsService = r(Qr), this.widgetPageService = r(so), this.isBetBuilderPlusLobby = this.widgetPageService.page === "BetBuilderPlusLobby", this.stackedDynamicsType = "StackedDynamics", this.platform = r(oi), this.ssrData = j(() => `sports-outrights-data-${this.config?.id}`, null), this.parentIsHandlingNavigation = !1, this.shouldIncludePayload = !1, this.renderData = (i) => {
1046						i?.fixtures?.length ? (this.platform.runOnServer(() => this.ssrData.set(i)), this.payload = i, this.title = this.interpolateTitle(i.title, i.fixtures), this.titleIcon = i.titleIcon, this.titleData = this.getDataForTitleIcon(i.fixtures[0]), this.type = i.type, this.widgetId = this.config.id, this.hasData = !0) : (this.hasData = !1, this.handleEmptyData()), this.setWidgetLoaded(), i?.type === this.stackedDynamicsType && (this.hidden = !1, this.payload = i);
1047					}, this.shouldIncludePayload = this.cdnCachingConfig.widgets.includes("OutrightsGrid");
1048				}
1049				onData(i, t) {
1050					let n = this.ssrData();
1051					if (this.platform.isBrowser && !t && n) {
1052						this.renderData(n);
1053						return;
1054					}
1055					i?.fixtures?.length ? this.renderData(i) : this.getData(t).pipe(S(this.destroyRef)).subscribe(this.renderData);
1056				}
1057				onParentData(i) {
1058					this.parentIsHandlingNavigation = i.mergeNavigation;
1059				}
1060				get context() {
1061					let i = this.getDataContext();
1062					return this.shouldIncludePayload ? T(b({}, i), { shouldIncludePayload: this.shouldIncludePayload }) : i;
1063				}
1064				get showTitle() {
1065					return !this.parentIsHandlingNavigation && !this.parent && !!this.title && !this.isBetBuilderPlusLobby && !this.payload?.dynamicCategoryData?.isBetBuilderPlusModule;
1066				}
1067				getData(i = !1) {
1068					return this.apiService.getWidget(this.context, this.getRequestContext(), i, !1).pipe(M(({ payload: t }) => t), S(this.destroyRef));
1069				}
1070				get isGridView() {
1071					return this.type === "GridOutrights";
1072				}
1073				getDataForTitleIcon(i) {
1074					if (!i) return {
1075						id: "",
1076						title: ""
1077					};
1078					switch (this.titleIcon) {
1079						case "SportIcon": return {
1080							id: i.sport.id.toString(),
1081							title: i.sport.name.value,
1082							icon: `sports-${i.sport.id}`
1083						};
1084						case "CompetitionLogo":
1085						case "CompetitionFlag": return {
1086							id: i.competition.id.toString(),
1087							title: i.competition.name.value,
1088							icon: this.countryFlagsService.getFlagName(i.region.id.toString()),
1089							sportId: i.sport.id
1090						};
1091						default: return {
1092							id: "",
1093							title: ""
1094						};
1095					}
1096				}
1097				interpolateTitle(i, t) {
1098					return Je(i, { competition: t[0]?.virtualCompetition?.name?.value ?? t[0]?.competition.name.value });
1099				}
1100			};
1101			return e.ɵfac = function(s) {
1102				return new (s || e)();
1103			}, e.ɵcmp = N({
1104				type: e,
1105				selectors: [["ms-outrights-widget"]],
1106				hostAttrs: [
1107					1,
1108					"outrights-widget",
1109					"grid-wrapper"
1110				],
1111				hostVars: 1,
1112				hostBindings: function(s, i) {
1113					s & 2 && Vi("root", null);
1114				},
1115				features: [Li([{
1116					directive: Xe,
1117					inputs: ["root", "root"]
1118				}
1118]), Ii],
1119				decls: 3,
1120				vars: 0,
1121				consts: [
1122					["rxVirtualView", ""],
1123					[4, "rxVirtualViewContent"],
1124					[
1125						"style",
1126						"min-height: var(--rx-vw-h, 620px)",
1127						4,
1128						"rxVirtualViewPlaceholder"
1129					],
1130					[
1131						3,
1132						"title",
1133						"titleIcon",
1134						"sportId",
1135						"leagueId",
1136						"fallbackIcon"
1137					],
1138					[
1139						3,
1140						"context",
1141						"payload",
1142						"title",
1143						"titleIcon",
1144						"titleData",
1145						"parentIsHandlingNavigation"
1146					],
1147					[
1148						3,
1149						"payload",
1150						"context",
1151						"widgetId"
1152					],
1153					[
1154						3,
1155						"isBetBuilderPlusLobby",
1156						"payload",
1157						"context",
1158						"widgetId"
1159					],
1160					[
1161						2,
1162						"min-height",
1163						"var(--rx-vw-h, 620px)"
1164					]
1165				],
1166				template: function(s, i) {
1167					s & 1 && (y(0, "div", 0), Wi(1, Xo, 3, 2, "ng-container", 1)(2, zo, 1, 0, "div", 2), C());
1168				},
1169				dependencies: [
1170					Jr,
1171					ki,
1172					vi,
1173					fi,
1174					je,
1175					qe,
1176					ze
1177				],
1178				encapsulation: 2,
1179				changeDetection: 1
1180			}), e;
1181		})(), Ci = (() => {
1182			let e = class {
1183				constructor() {
1184					this.registry = r(Rs), this.navigationRegistry = r(_o), this.navigationMapper = r(U);
1185				}
1186				onFeatureInit() {
1187					this.registry.registerLazy("OutrightsGrid", yi), this.navigationRegistry.register("OutrightsGrid", this.navigationMapper);
1188				}
1189			};
1190			return e.ɵfac = function(s) {
1191				return new (s || e)();
1192			}, e.ɵprov = H({
1193				token: e,
1194				factory: e.ɵfac,
1195				providedIn: "root"
1196			}), e;
1197		})();
1198	})))();
1199}
1200bi();
1201export { Uo as provide };
1202
1203//# sourceMappingURL=chunk-i8m66fmw.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.