1import { b as Z, n as v, t as D } from "./chunk-i2pl4wu9.js"; 2import { $i as z, Ai as J, At as H, Co as x, Ei as K, Fo as Y, G as m, Ha as u, I as Q, Kn as f, Nr as U, Ti as X, V as k, Vr as P, W as e, Xa as $, Xi as ii, Y as M, Yt as ti, ao as h, bn as g, eo as r, er as ni, et as b, fa as si, fr as C, ft as ei, g as oi, hi as T, ht as y, jn as ri, qn as ai, ro as O, rt as S, tr as l, va as ui, zi as E, zt as hi } from "./chunk-ql746sly.js"; 3import { j as _i } from "./chunk-hcheit1f.js"; 4import { p as ci } from "./chunk-b11o3szq.js"; 5import { d as mi, ut as li } from "./chunk-fz42rx6r.js"; 6import { r as di } from "./chunk-icjzvqcx.js"; 7import { t as pi } from "./chunk-jbaamz4y.js"; 8import { A as fi, a as L, b as ki, y as B } from "./chunk-c01xxjhs.js"; 9import { J as gi, gt as bi } from "./chunk-jtpxiaxj.js"; 10import { o as Ci } from "./chunk-jaxwt8s1.js"; 11import { j as yi } from "./chunk-nhl74n6z.js"; 12import { i as Bi, o as vi, t as c } from "./chunk-br9ckdzm.js"; 13import { p as Di } from "./chunk-bl09vhvv.js"; 14import { ot as xi } from "./chunk-f0xko016.js"; 15import { c as Pi } from "./chunk-n63cutws.js"; 16import { Dn as Mi, Tt as Ti, _t as Oi, jr as Si } from "./chunk-eu7ozsb7.js"; 17import { a as Ei } from "./chunk-lt7tziae.js"; 18import { n as Li } from "./chunk-gpn04stg.js"; 19import { t as wi } from "./chunk-lf77xnpz.js"; 20import { i as Ni, p as Ii } from "./chunk-bnt36dw9.js"; 21import { n as Ri } from "./chunk-d6iooz3w.js"; 22import { r as Fi } from "./chunk-jouxu15i.js"; 23import { n as Gi } from "./chunk-c8btpjog.js"; 24import { tt as Ai } from "./chunk-dkzazc5t.js"; 25import { St as qi, W as w, bt as ji, h as Wi, mn as Vi, yn as N } from "./chunk-b0owf95e.js"; 26import { a as Zi } from "./chunk-kanq2829.js"; 27import { i as zi, t as Ji } from "./chunk-hv7vgf8e.js"; 28import { n as Hi } from "./chunk-odv3lgpg.js"; 29import { a as Ki, s as Yi } from "./chunk-jnhmm4s0.js"; 30import { c as Qi } from "./chunk-c9i0kray.js"; 31import { r as Ui } from "./chunk-e73ndlg5.js"; 32import { t as Xi } from "./chunk-ggzcwtgt.js"; 33import { t as $i } from "./chunk-mzi4pjon.js"; 34import { n as it } from "./chunk-gd9lkrcj.js"; 35import { i as tt } from "./chunk-fht9rnel.js"; 36import { $i as nt, $t as st, Aa as et, At as ot, Dg as rt, Dr as at, Dt as ut, En as ht, Gh as _t, Gr as ct, Hn as a, Ia as mt, Ja as lt, Jn as dt, Ka as pt, Lh as ft, Ln as kt, Mo as gt, Ni as bt, Oa as Ct, Od as yt, Pa as Bt, Pn as vt, Qn as Dt, Ro as xt, Sn as Pt, Sr as Mt, Ua as Tt, Un as I, Va as Ot, Zh as St, _t as Et, ar as Lt, ci as wt, cr as Nt, da as It, eg as Rt, fi as Ft, fo as Gt, ga as At, h as qt, hi as jt, ho as Wt, jh as Vt, jn as Zt, kr as zt, lo as Jt, mo as Ht, nh as Kt, ni as Yt, pt as Qt, sm as Ut, tr as Xt, vi as $t, wr as tn, wt as nn, xa as sn, xt as en, za as on } from "./chunk-jrsxruoz.js"; 37import { $n as rn, Dt as an } from "./chunk-mbdbb8r5.js"; 38import { n as un } from "./chunk-luvx8vw4.js"; 39import { n as hn } from "./chunk-d6en4i42.js"; 40import { r as _n } from "./chunk-28oaza20.js"; 41import { t as cn } from "./chunk-ilt4s80f.js"; 42import { n as mn } from "./chunk-m64fxhxy.js"; 43import { o as ln } from "./chunk-ivxaj1u0.js"; 44import { n as dn } from "./chunk-2opbn3h8.js"; 45import { n as pn } from "./chunk-m0xwxaxl.js"; 46import { a as fn, l as kn, n as gn, s as bn } from "./chunk-bqrjc3xq.js"; 47import { n as Cn } from "./chunk-g5j7iqbv.js"; 48import { t as yn } from "./chunk-gecd0xho.js"; 49import { n as Bn } from "./chunk-pewqtdn1.js"; 50import { n as vn } from "./chunk-gii5kata.js"; 51import { t as Dn } from "./chunk-olrwlmxg.js"; 52import { r as xn } from "./chunk-lqjnxwsl.js"; 53import { c as Pn, t as R } from "./chunk-ihcaprm0.js"; 54import { n as Mn } from "./chunk-euo2kqq9.js"; 55import { i as Tn, o as On } from "./chunk-gevkd7h2.js"; 56import { n as Sn } from "./chunk-j6lgpvii.js"; 57import { t as En } from "./chunk-fy9owktd.js"; 58import { n as Ln } from "./chunk-be8ojp17.js"; 59import { t as wn } from "./chunk-k4tlf00o.js"; 60import { S as Nn } from "./chunk-kagrwll4.js"; 61import { n as In } from "./chunk-kbn68rdy.js"; 62import { t as Rn } from "./chunk-ngf1ic69.js"; 63import { t as Fn } from "./chunk-fxe25ioo.js"; 64import { r as Gn } from "./chunk-ncgjjre8.js"; 65import { n as An } from "./chunk-f7iol0ao.js"; 66import { _ as qn } from "./chunk-go1bm1yh.js"; 67import { n as jn } from "./chunk-gt2cdwqq.js"; 68import { t as Wn } from "./chunk-hcdgcklj.js"; 69import { E as Vn } from "./chunk-famz94c7.js"; 70import { m as Zn } from "./chunk-cnti7k2q.js"; 71import { n as zn } from "./chunk-ms3g3d7a.js"; 72import { n as Jn } from "./chunk-hnrf9xfp.js"; 73import { c as Hn, s as Kn } from "./chunk-gmqi4nh3.js"; 74import { o as Yn } from "./chunk-i1givh4w.js"; 75import { t as Qn } from "./chunk-nemq363r.js"; 76import { t as Un } from "./chunk-nm7ask5q.js"; 77import { i as Xn } from "./chunk-oowbyg1d.js"; 78import { b as $n } from "./chunk-n19qwkxa.js"; 79import { n as is } from "./chunk-naos6jxl.js"; 80import { r as ts } from "./chunk-hxwt8fl2.js"; 81import { n as ns } from "./chunk-geya9yro.js"; 82import { p as ss } from "./chunk-mkbbjk1u.js"; 83import { x as es } from "./chunk-i5j6065i.js"; 84import { o as os } from "./chunk-fg0cc0sp.js"; 85import { i as rs } from "./chunk-jtdkmhiw.js"; 86import { n as as } from "./chunk-cd890b3k.js"; 87import { n as us } from "./chunk-l23efgix.js"; 88import { n as hs } from "./chunk-iub9tre1.js"; 89import { r as _s } from "./chunk-jb9t32y0.js"; 90import { t as cs } from "./chunk-ewo1fh9z.js"; 91import { n as ms } from "./chunk-hw3fg1vc.js"; 92import { t as ls } from "./chunk-b7jq054z.js"; 93import { t as ds } from "./chunk-mrjt3x63.js"; 94import { n as ps } from "./chunk-o20lk9pp.js"; 95import { l as fs } from "./chunk-bbp1bm09.js"; 96import { n as ks } from "./chunk-pb90mct9.js"; 97import { n as gs } from "./chunk-ms9gi36p.js"; 98import { l as bs } from "./chunk-m6nqvv2w.js"; 99import { n as Cs } from "./chunk-f8tjz0gl.js"; 100import { n as ys } from "./chunk-c7ynzuqf.js"; 101import { r as Bs } from "./chunk-f51afv4e.js"; 102import { r as vs } from "./chunk-fxa8v565.js"; 103import { t as Ds } from "./chunk-f3xyw5ct.js"; 104import { n as xs } from "./chunk-gkzns3vn.js"; 105import { t as Ps } from "./chunk-lfrh489z.js"; 106import { y as Ms } from "./chunk-ld8wsg9a.js"; 107import { n as Ts } from "./chunk-klex6is8.js"; 108import { r as Os } from "./chunk-bwctm2ju.js"; 109import { a as Ss } from "./chunk-n78g9cxt.js"; 110import { n as Es } from "./chunk-dg09gejc.js"; 111import { i as Ls } from "./chunk-d5b0mcln.js"; 112import { i as ws } from "./chunk-dfw8xvpl.js"; 113import { n as Ns } from "./chunk-o4mv1s6j.js"; 114import { s as Is } from "./chunk-dht3eq07.js"; 115import { t as Rs } from "./chunk-k1r4cyzu.js"; 116import { t as Fs } from "./chunk-mi5orjnu.js"; 117import { n as Gs } from "./chunk-dw434jzk.js"; 118import { n as As } from "./chunk-m285lrbc.js"; 119import { n as qs } from "./chunk-fil2t8vm.js"; 120import { n as js } from "./chunk-hhpetl4y.js"; 121import { r as Ws } from "./chunk-jjxmik21.js"; 122import { n as Vs } from "./chunk-fav8nil9.js"; 123import { n as Zs } from "./chunk-ju3l80sp.js"; 124import { u as zs } from "./chunk-n2pwgd8t.js"; 125import { n as Js } from "./chunk-jfl78vef.js"; 126import { i as Hs } from "./chunk-hpqnmvhj.js"; 127import { n as Ks } from "./chunk-ff51bsm0.js"; 128import { n as Ys } from "./chunk-dcudjj91.js"; 129import { n as Qs } from "./chunk-jz9h6437.js"; 130import { t as Us } from "./chunk-lwuc4886.js"; 131import { n as Xs } from "./chunk-ew0ihfmv.js"; 132import { n as $s } from "./chunk-b96q384n.js"; 133import { n as ie, t as te } from "./chunk-hllqc7v7.js"; 134import { i as ne } from "./chunk-mcknvqlq.js"; 135import { i as se } from "./chunk-hgydm6rb.js"; 136import { n as ee } from "./chunk-gna4yetz.js"; 137import { y as oe } from "./chunk-d5tbg4ka.js"; 138import { n as re } from "./chunk-kzxxo4z7.js"; 139import { W as ae } from "./chunk-c59pw86h.js"; 140import { n as ue } from "./chunk-bcxubi9s.js"; 141import { n as he } from "./chunk-mu9v4sos.js"; 142import { n as _e } from "./chunk-ehaurpth.js"; 143import { n as ce } from "./chunk-l9kbdvnd.js"; 144import { n as me, t as le } from "./chunk-h3ar2fnb.js"; 145import { r as de } from "./chunk-j29y7idd.js"; 146import { n as pe } from "./chunk-ibr2akm9.js"; 147import { t as fe } from "./chunk-groqgtqa.js"; 148import { a as ke } from "./chunk-dlbhkaap.js"; 149import { a as ge } from "./chunk-eq2tklc7.js"; 150import { n as be } from "./chunk-lisvdwld.js"; 151import { n as Ce } from "./chunk-6av4kv53.js"; 152import { n as ye } from "./chunk-u4ppkx6p.js"; 153import { n as Be } from "./chunk-iu29fs3k.js"; 154import { n as ve, t as De } from "./chunk-kyjw8c3r.js"; 155import { t as xe } from "./chunk-o7k5zceg.js"; 156import { a as Pe, i as Me, n as Te, o as Oe, r as F, s as Se, t as G } from "./chunk-cauxg6q7.js"; 157import { t as Ee } from "./chunk-o4f8w5yc.js"; 158function Le(n, s) { 159 if (n & 1) { 160 let i = H(); 161 E(0, "ms-event-list-switch", 2), Y("loadMore", function() { 162 return ri(i), U(h(2).loadMore()); 163 }), O(); 164 } 165 if (n & 2) { 166 h(); 167 let i = ei(0), t = h(); 168 g("model", i)("tabs", t.tabs())("tracking", t.tracking())("hasMore", t.hasMore())("gridConfig", t.gridConfig)("headerContent", t.headerContent())("popularTab", t.popularTab())("isTeamGroupingEnabled", t.isTeamGroupingEnabled())("popularTabOptionsCountByEventPosition", t.popularTabOptionsCountByEventPosition())("fixturesBatchCount", t.fixturesBatchCount())("maxCarouselFixtures", t.isBetBuilderPlusLobby() || t.isModule() ? t.maxCarouselFixtures() : null)("useOverlayLayout", t.isBetBuilderPlusLobby())("isModule", t.isModule())("moduleMaxNumberOfLines", t.moduleMaxNumberOfLines()); 169 } 170} 171function we(n, s) {
172 if (n & 1 && (E(0, "div", 1), b(1, "ms-error", 3), O()), n & 2) { 173 let i = h(2); 174 S(), g("message", i.sitecore.widgets.messages.ComposableEmptyTab)("links", !1); 175 } 176} 177function Ne(n, s) { 178 if (n & 1 && (ti(0), C(1, Le, 1, 14, "ms-event-list-switch", 0)(2, we, 2, 2, "div", 1)), n & 2) { 179 let i = h(), t = $(i.events()); 180 S(), y(t.length > 0 ? 1 : !i.isModule() && i.eventListLoaded() ? 2 : -1); 181 } 182} 183function Ie(n, s) { 184 n & 1 && b(0, "ds-loading-spinner"), n & 2 && hi("aria-label", "Loading"); 185} 186function Re(n, s) { 187 if (n & 1 && b(0, "ms-dynamic-event-list-carousel", 0), n & 2) { 188 let i = h(); 189 g("isBetBuilderPlusLobby", i.isBetBuilderPlusLobby)("payload", s)("context", i.context)("widgetId", i.widgetId()); 190 } 191} 192function Fe() { 193 return [Ti(j)]; 194} 195var A, q, j; 196function W() { 197 return (W = Ee((() => { 198 Z(), z(), _i(), ci(), li(), di(), pi(), fi(), bi(), Ci(), yi(), vi(), ki(), Di(), xi(), gi(), Pi(), Si(), Ei(), Li(), wi(), Ii(), Ni(), Ri(), Fi(), Gi(), Ai(), Mi(), rt(), Rt(), Vi(), St(), _t(), ft(), Vt(), Kt(), Ut(), Zi(), zi(), yt(), xt(), gt(), Wt(), Hi(), Gt(), Jt(), lt(), pt(), Tt(), Ot(), on(), mt(), Bt(), et(), Ct(), sn(), At(), It(), nt(), bt(), Yi(), Ki(), $t(), jt(), Ft(), wt(), Yt(), ct(), at(), tn(), Mt(), Qi(), Nt(), Lt(), Xt(), Dt(), dt(), kt(), Ui(), Xi(), $i(), vt(), Zt(), ht(), Pt(), it(), tt(), st(), ot(), ut(), nn(), en(), Et(), Qt(), qt(), rn(), un(), Ys(), Xn(), cn(), hn(), _n(), mn(), js(), ln(), En(), dn(), pn(), kn(), Ln(), es(), $n(), is(), wn(), Nn(), ts(), ns(), In(), qn(), Rn(), Fn(), Gn(), An(), ss(), fs(), Jn(), Bn(), jn(), Wn(), Vn(), Zn(), zn(), Hn(), Es(), vn(), Yn(), rs(), as(), us(), Qn(), _s(), hs(), Cn(), Un(), ae(), cs(), ms(), os(), ks(), gs(), bs(), Tn(), Cs(), ys(), qs(), Bs(), Ms(), Os(), ls(), ds(), Ts(), yn(), Ss(), ue(), xe(), Ls(), ws(), Ns(), Is(), Rs(), he(), Dn(), Mn(), $s(), te(), Ws(), Vs(), Zs(), zs(), Fs(), vs(), As(), Sn(), Js(), Hs(), Ks(), Qs(), ps(), Us(), Xs(), Gs(), ne(), se(), ee(), Ds(), xs(), Ps(), oe(), re(), ce(), be(), _e(), xn(), Pn(), me(), de(), pe(), fe(), ke(), ge(), Ce(), ye(), Be(), ve(), Me(), A = (() => { 199 let n = class { 200 constructor() { 201 this.competitionRoute = e(an), this.carouselSubscriptionService = e(F), this.apiService = e(R), this.destroyRef = e(oi), this.contextProvider = e(bn), this.detailedFixtureFactory = e(ie), this.groupingService = e(Kn), this.urlHelper = e(zt), this.trackingService = e(G), this.msBetBuilderPlus = e(w), this.msDynamicCategoryWidget = e(N), this.platform = e(L), this.clientConfigService = e(mi), this.sitecore = e(Wi), this.gridConfig = e(qi), this.currentTheme = On(), this.inverseConfig = Se[this.currentTheme] ?? Oe, this.activeContext = this.contextProvider.getActiveContext(), this.ssrBetBuilderPlusConfig = B("sports-bb-plus-carousel-config", null), this.ssrDynamicCategoryWidgetConfig = B("sports-bb-plus-carousel-dcw-config", null), this.payload = m.required(), this.context = m.required(), this.widgetId = m.required(), this.isBetBuilderPlusLobby = m.required(), this.events = u([]), this.eventListLoaded = u(!1), this.hasMore = u(!1), this.loading = u(!1), this.hasInitialFixtures = r(() => this.payload().fixtures.length > 0), this.shouldShowEventList = r(() => this.events().length > 0 || this.hasInitialFixtures() && !this.eventListLoaded()), this.maxCarouselFixtures = r(() => this.configReady() ? this.msBetBuilderPlus.maxCarouselFixtures : null), this.isTeamGroupingEnabled = r(() => this.configReady() ? this.msBetBuilderPlus.enableTeamGroupingForPopularTab : !1), this.isModule = r(() => this.payload().dynamicCategoryData?.isBetBuilderPlusModule ?? !1), this.moduleMaxNumberOfLines = r(() => this.configReady() && this.isModule() ? this.msBetBuilderPlus.moduleMaxNumberOfLines : void 0), this.popularTabOptionsCountByEventPosition = r(() => this.configReady() ? this.msBetBuilderPlus.popularTabOptionsCountByEventPosition : []), this.fixturesBatchCount = r(() => this.configReady() ? this.msDynamicCategoryWidget.fixturesBatchCount : 0), this.dynamicCategoryWidgetTabMap = r(() => this.configReady() ? new Map(Object.entries(this.msDynamicCategoryWidget.enableDynamicCategoryWidgetTab).map(([i, t]) => [i.toLowerCase(), t])) : /* @__PURE__ */ new Map()), this.isBBPlusLobbyEnabled = r(() => this.dynamicCategoryWidgetTabMap().get(Ht.BetBuilderPlusLobby.toLowerCase()) ?? !1), this.moduleRedirectLink = r(() => { 202 if (this.configReady() && this.isModule() && this.isBBPlusLobbyEnabled()) return this.urlHelper.getBuilder("betbuilderplus").toString(); 203 }), this.headerContent = r(() => ({ 204 showBadge: this.isModule(), 205 isModule: this.isModule(), 206 badgeTitle: this.sitecore.betBuilder.messages?.BetBuilderPlusModuleBadge ?? "", 207 tooltipTitle: this.sitecore.betBuilder.messages?.BetBuilderPlusTooltipTitle ?? "", 208 tooltipDescription: this.sitecore.betBuilder.messages?.BetBuilderPlusTooltipDescription ?? "", 209 tooltipIcon: this.currentTheme === "ladbrokes-uk" ? "theme-info" : "theme-question", 210 linkText: this.sitecore.betBuilder.messages?.BetBuilderPlusModuleLinkText ?? "", 211 redirectLink: this.moduleRedirectLink(), 212 isTooltipInverse: this.inverseConfig.tooltipInverse, 213 isLinkButtonInverse: this.inverseConfig.linkButtonInverse 214 })), this.tracking = r(() => { 215 let i = this.competitionRoute.getCompetitionRouteTracking(this.payload().fixtures.length > 0), t = this.isBetBuilderPlusLobby() ? "sports event" : "event carousel"; 216 return { 217 competitionRoute: i, 218 defaultTracking: { 219 [a.COMPONENT_LOCATION_EVENT]: this.trackingService.pageMapper(this.activeContext.page),
220 [a.COMPONENT_CATEGORY_EVENT]: t, 221 [a.COMPONENT_LABEL_EVENT]: "betbuilder plus", 222 [a.COMPONENT_ACTION_EVENT]: "click", 223 [a.COMPONENT_URL_CLICKED]: I, 224 [a.SPORT_LEAGUE_ID]: this.activeContext.competitionId?.toString() ?? "not applicable", 225 [a.MARKET_ID]: I, 226 [a.SPORT_ID]: this.activeContext.sportId?.toString() ?? "not applicable" 227 } 228 }; 229 }), this.tabs = r(() => this.payload().dynamicCategoryData?.subCategories ?? []), this.popularTab = r(() => this.payload().fixtures.length <= 1 ? null : this.payload().dynamicCategoryData?.popularCategory ?? null), this.initialized = !1, this.initSsrConfigTransfer(), this.configReady = Bi(ni([this.msBetBuilderPlus.whenReady, this.msDynamicCategoryWidget.whenReady]).pipe(l(() => !0)), { initialValue: this.msBetBuilderPlus.isConfigReady && this.msDynamicCategoryWidget.isConfigReady }), P(() => { 230 if (this.configReady() && !this.initialized) { 231 this.initialized = !0; 232 let i = ai(() => this.payload()); 233 i.fixtures.length > 0 ? this.createEvents(i.fixtures).pipe(c(this.destroyRef)).subscribe((t) => { 234 this.events.set(t), this.hasMore.set(i.fixtures.length < (i.navigation?.[0].count ?? 0)), this.carouselSubscriptionService.subscribeEvents(t, i.dynamicCategoryData?.dynamicCategoryId), this.eventListLoaded.set(!0); 235 }) : this.eventListLoaded.set(!0); 236 } 237 }), P(() => { 238 let i = this.carouselSubscriptionService.updatedEvent(); 239 i && this.events.update((t) => { 240 let o = t.findIndex((d) => d.id === i.id); 241 if (o === -1) return t; 242 let _ = [...t]; 243 return _[o] = Ji(i, {}), _; 244 }); 245 }), Q({ read: () => { 246 this.isBetBuilderPlusLobby() && this.trackingService.trackOverlayOpen(this.tracking().defaultTracking); 247 } }), this.destroyRef.onDestroy(() => { 248 this.carouselSubscriptionService.unsubscribe(); 249 }); 250 } 251 loadMore() { 252 if (!this.hasMore() || this.loading()) return; 253 this.loading.set(!0); 254 let i = this.events().length; 255 this.apiService.getWidget(v(D({}, this.context()), { skip: i }), this.activeContext).pipe(c(this.destroyRef), ui(({ payload: t }) => !t || t.fixtures.length === 0 ? (this.hasMore.set(!1), k) : this.createEvents(t.fixtures).pipe(l((o) => ({ 256 newEvents: o, 257 payload: t 258 })))), si(() => this.loading.set(!1))).subscribe(({ newEvents: t, payload: o }) => { 259 this.events.update((_) => { 260 let d = new Set(_.map((p) => p.id)), V = t.filter((p) => !d.has(p.id)); 261 return [..._, ...V]; 262 }), this.hasMore.set(i + o.fixtures.length < (o.navigation?.[0].count ?? 0) && o.fixtures.length > 0 && i < this.events().length), this.carouselSubscriptionService.subscribeEvents(t, this.payload().dynamicCategoryData?.dynamicCategoryId); 263 }); 264 } 265 createEvents(i) { 266 return i.length ? this.groupingService.getFixtureGrouping(i[0].sport.id, "any").pipe(l((t) => t ? i.map((o) => this.detailedFixtureFactory.create({ 267 fixture: o, 268 splitFixtures: [], 269 grouping: t, 270 isPriceBoosted: !1, 271 excludePriceboostedMarketGrouping: !1 272 })) : []), f(() => M([]))) : M([]); 273 } 274 initSsrConfigTransfer() { 275 if (this.platform.isServer) this.msBetBuilderPlus.whenReady.pipe(T(1), c(this.destroyRef), f(() => k)).subscribe(() => { 276 let i = this.clientConfigService.get(w); 277 this.ssrBetBuilderPlusConfig.set(i); 278 }), this.msDynamicCategoryWidget.whenReady.pipe(T(1), c(this.destroyRef), f(() => k)).subscribe(() => { 279 let i = this.clientConfigService.get(N); 280 this.ssrDynamicCategoryWidgetConfig.set(i); 281 }); 282 else { 283 let i = this.ssrBetBuilderPlusConfig(), t = this.ssrDynamicCategoryWidgetConfig(); 284 if (i || t) { 285 let o = {}; 286 i && (o.msBetBuilderPlus = i), t && (o.msDynamicCategoryWidget = t), this.clientConfigService.update(o); 287 } 288 } 289 } 290 }; 291 return n.ɵfac = function(s) { 292 return new (s || n)(); 293 }, n.ɵcmp = x({ 294 type: n, 295 selectors: [["ms-dynamic-event-list-carousel"]], 296 hostAttrs: [1, "dynamic-event-list-carousel-container"], 297 hostVars: 6, 298 hostBindings: function(s, i) {
299 s & 2 && ii("bet-builder-lobby", i.isModule() || i.isBetBuilderPlusLobby())("bet-builder-module", i.isModule())("bet-builder-loading", !i.configReady() && !i.hasInitialFixtures()); 300 }, 301 inputs: { 302 payload: [1, "payload"], 303 context: [1, "context"], 304 widgetId: [1, "widgetId"], 305 isBetBuilderPlusLobby: [1, "isBetBuilderPlusLobby"] 306 }, 307 features: [X([F, { 308 provide: G, 309 useExisting: Pe 310 }])], 311 decls: 2, 312 vars: 1, 313 consts: [ 314 [ 315 3, 316 "model", 317 "tabs", 318 "tracking", 319 "hasMore", 320 "gridConfig", 321 "headerContent", 322 "popularTab", 323 "isTeamGroupingEnabled", 324 "popularTabOptionsCountByEventPosition", 325 "fixturesBatchCount", 326 "maxCarouselFixtures", 327 "useOverlayLayout", 328 "isModule", 329 "moduleMaxNumberOfLines" 330 ], 331 [1, "empty-panel"], 332 [ 333 3, 334 "loadMore", 335 "model", 336 "tabs", 337 "tracking", 338 "hasMore", 339 "gridConfig", 340 "headerContent", 341 "popularTab", 342 "isTeamGroupingEnabled", 343 "popularTabOptionsCountByEventPosition", 344 "fixturesBatchCount", 345 "maxCarouselFixtures", 346 "useOverlayLayout", 347 "isModule", 348 "moduleMaxNumberOfLines" 349 ], 350 [ 351 "severity", 352 "info", 353 3, 354 "message", 355 "links" 356 ] 357 ], 358 template: function(s, i) { 359 s & 1 && C(0, Ne, 3, 2)(1, Ie, 1, 1, "ds-loading-spinner"), s & 2 && y(i.configReady() ? 0 : i.isModule() ? -1 : 1); 360 }, 361 dependencies: [ 362 Te, 363 De, 364 Oi 365 ], 366 styles: ["[_nghost-%COMP%]{text-align:left}.bet-builder-loading.bet-builder-lobby[_nghost-%COMP%]{height:100vh}.bet-builder-lobby[_nghost-%COMP%]{background-color: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)}"] 367 }), n; 368 })(), q = (() => { 369 let n = class extends fn { 370 constructor() { 371 super(), this.apiService = e(R), this.cdnCachingConfig = e(ji), this.widgetPageService = e(le), this.platform = e(L), this.ssrData = B(() => `dynamic-category-data-${this.config?.id}`, null), this.isBetBuilderPlusLobby = this.widgetPageService.page === "BetBuilderPlusLobby", this.parentIsHandlingNavigation = !1, this.payload = u(void 0), this.widgetId = u(""), this.shouldIncludePayload = !1, this.renderData = (i) => { 372 if (!i) { 373 this.hasData = !1, this.setWidgetLoaded(), this.handleEmptyData(); 374 return; 375 } 376 this.payload.set(i), this.widgetId.set(this.config.id), this.hidden = !1, this.hasData = !0, i.fixtures?.length && this.platform.runOnServer(() => this.ssrData.set(i)), this.setWidgetLoaded(); 377 }, this.shouldIncludePayload = this.cdnCachingConfig.widgets.includes("DynamicCategory"); 378 } 379 onData(i, t) { 380 let o = this.ssrData(); 381 if (this.platform.isBrowser && !t && o) { 382 this.renderData(o); 383 return; 384 } 385 i?.fixtures?.length ? this.renderData(i) : this.getData(t).pipe(c(this.destroyRef)).subscribe({ 386 next: this.renderData, 387 error: () => this.renderData(void 0) 388 }); 389 } 390 onParentData(i) { 391 this.parentIsHandlingNavigation = i.mergeNavigation; 392 } 393 get context() { 394 if (!this.cachedContext) { 395 let i = this.getDataContext(); 396 this.cachedContext = this.shouldIncludePayload ? v(D({}, i), { shouldIncludePayload: this.shouldIncludePayload }) : i; 397 } 398 return this.cachedContext; 399 } 400 getData(i = !1) { 401 return this.apiService.getWidget(this.context, this.getRequestContext(), i, !1).pipe(l(({ payload: t }) => t)); 402 } 403 }; 404 return n.ɵfac = function(s) { 405 return new (s || n)(); 406 }, n.ɵcmp = x({ 407 type: n, 408 selectors: [["ms-dynamic-category-widget"]], 409 hostAttrs: [ 410 1, 411 "dynamic-category-widget", 412 "grid-wrapper" 413 ], 414 features: [J], 415 decls: 1, 416 vars: 1, 417 consts: [[ 418 3, 419 "isBetBuilderPlusLobby", 420 "payload", 421 "context", 422 "widgetId" 423 ]], 424 template: function(s, i) { 425 if (s & 1 && C(0, Re, 1, 4, "ms-dynamic-event-list-carousel",
4250), s & 2) { 426 let t; 427 y((t = i.payload()) ? 0 : -1, t); 428 } 429 }, 430 dependencies: [A], 431 encapsulation: 2 432 }), n; 433 })(), j = (() => { 434 let n = class { 435 constructor() { 436 this.registry = e(gn); 437 } 438 onFeatureInit() { 439 this.registry.registerLazy("DynamicCategory", q); 440 } 441 }; 442 return n.ɵfac = function(s) { 443 return new (s || n)(); 444 }, n.ɵprov = K({ 445 token: n, 446 factory: n.ɵfac, 447 providedIn: "root" 448 }), n; 449 })(); 450 })))(); 451} 452W(); 453export { Fe as provide }; 454 455//# sourceMappingURL=chunk-iwdmid6n.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.