1import { a as ir, g as x, n as St, t as Q, y as fe } from "./chunk-xgti9j2t.js"; 2import { $ as d, Ai as ht, An as yi, Ao as fi, Ar as gi, Ba as sr, Bi as Y, Ci as q, Cr as Si, Dn as ge, Do as nr, Ea as l, Ei as rr, Et as bi, Fn as or, G as _i, Hn as U, Hr as ar, Ia as vi, J as cr, Kn as Se, Li as m, Mr as be, No as it, Pi as Vt, Pt as o, R as _e, Ra as I, Rn as st, Ro as H, Sa as c, Sn as v, Sr as z, To as Bi, Ui as $t, Wi as mt, Xa as V, Y as p, Yn as At, _i as lr, a as ki, aa as zt, bi as Nt, ei as ur, fa as u, fi as S, fr as R, go as Ci, gt as n, h as Dt, ir as Ti, ja as Kt, l as Tt, lt as It, ma as Pi, ni as bt, nt as Rt, oa as nt, oi as E, on as Mt, or as dr, qa as hr, ri as $, ro as _t, s as Ei, sa as g, st as mr, t as K, ta as Jt, tn as b, tr as Oi, ua as ve, ut as Be, va as F, wa as Xt, xi as G, zo as M } from "./chunk-c97c17u8.js"; 3import { C as pr, M as Ai, V as ke, W as yr, b as Ut, g as fr } from "./chunk-l3jkbhly.js"; 4import { c as gr, p as Sr, r as br } from "./chunk-k52vj1ic.js"; 5import { o as _r } from "./chunk-l24fzhmb.js"; 6import { A as vr } from "./chunk-jrtaqqwj.js"; 7import { o as Ce, t as rt } from "./chunk-pesy0vb6.js"; 8import { D as Br, a as kr, o as Cr } from "./chunk-llc8ry2a.js"; 9import { d as Tr, j as Ni, ut as Di, v as Pr } from "./chunk-fbjoug0d.js"; 10import { a as Er } from "./chunk-ewplex8i.js"; 11import { n as Or } from "./chunk-c18gpzrj.js"; 12import { r as Ar, t as Nr } from "./chunk-c9rg1mp5.js"; 13import { n as Dr, t as Ir } from "./chunk-kyqvtgtk.js"; 14import { K as Rr, L as Ii, U as Mr, Y as Ri, gt as wr, l as Fr, y as Lr, z as Te } from "./chunk-w0x32net.js"; 15import { d as xr, p as Vr } from "./chunk-bhnvkbxx.js"; 16import { ot as $r } from "./chunk-f2v2cgea.js"; 17import { c as Ur } from "./chunk-og5uebri.js"; 18import { Dn as Hr, ct as Mi, ft as wi, jr as Gr, k as Wr } from "./chunk-go6pvd0a.js"; 19import { t as qr } from "./chunk-k4et3zlq.js"; 20import { i as jr, p as Yr } from "./chunk-hul0ult7.js"; 21import { n as zr } from "./chunk-lmnwxprc.js"; 22import { r as Kr } from "./chunk-ilfhy0in.js"; 23import { n as Fi, t as Li } from "./chunk-ohg30iel.js"; 24import { $ as Jr, F as Xr, r as Zr } from "./chunk-iuhjzybw.js"; 25import { a as xi, i as Qr } from "./chunk-kanq2829.js"; 26import { i as to, o as Vi } from "./chunk-lareec7a.js"; 27import { n as eo, t as $i } from "./chunk-im7lpx1v.js";
28import { $ as io, Dn as so, E as Ui, F as no, G as Hi, Gt as Gi, In as ro, Jt as oo, Nn as Pe, Ut as ao, Vn as Wi, Wt as co, Yn as lo, et as qi, fn as uo, h as A, j as ho, mn as Zt, nr as ji, s as mo, v as Yi } from "./chunk-l8i5rin8.js"; 29import { a as po, s as yo } from "./chunk-bol8t3zz.js"; 30import { c as fo } from "./chunk-pccxjem8.js"; 31import { r as go } from "./chunk-i1knml6i.js"; 32import { t as So } from "./chunk-bt0uh5ix.js"; 33import { t as bo } from "./chunk-ga84h9wi.js"; 34import { n as _o } from "./chunk-bh3f6w1f.js"; 35import { i as vo } from "./chunk-eoj30x9t.js"; 36import { N as Bo } from "./chunk-dymhuwkz.js"; 37import { t as ko } from "./chunk-bwsrvyqb.js"; 38import { n as Co } from "./chunk-k0kygnvj.js"; 39import { $h as To, $t as Po, A as Eo, Aa as wt, Ao as Oo, Ar as Qt, At as Ao, Ca as No, Cg as Do, Cr as Io, Dd as zi, Dr as Ft, Dt as Ro, Ea as Mo, En as wo, Eo as Fo, Er as Ee, Fh as Ki, Fn as Ji, Fo as Lo, Hn as Pt, Hr as J, Ia as xo, In as Vo, Jr as Xi, Kn as Zi, L as $o, La as pt, Ma as Uo, Mn as Ho, Ni as Go, Nr as te, Oo as Et, Pa as Qi, Ph as ot, Pn as Wo, Qi as qo, Ra as ts, Sa as jo, Sn as Yo, So as zo, Sr as Ko, Ta as es, Ua as Jo, Uh as Xo, Va as is, Vn as h, Vp as Zo, Wr as ss, Xm as Qo, Yh as ta, Zn as ea, Zs as at, _i as ia, _m as ns, _t as sa, ai as na, am as rs, di as ra, do as oa, eh as os, er as aa, f as ca, fo as la, fr as ua, ga as da, gi as as, gm as ha, gr as ma, h as pa, io as ya, ir as fa, it as ga, ja as cs, jm as Ht, jn as Sa, jo as ba, ka as _a, kh as va, ko as Ba, lt as ka, mi as Ca, mo as Ta, mr as Pa, nr as Ea, om as Oe, or as ee, pa as Oa, pt as Aa, q as Na, qn as Ae, si as Da, so as Ia, sr as Ra, ti as Ma, ua as wa, um as Fa, uo as La, va as xa, vh as Va, vi as Ne, wt as $a, xa as Ua, xm as Ha, xr as Ga, xt as Wa, yh as L, yo as qa, yt as ja, za as Ya, zm as za } from "./chunk-g8mtbi19.js"; 40import { $n as ie, A as Ka, B as ct, Br as yt, Bt as Ja, D as Xa, Fr as vt, Jn as Za, K as Qa, L as se, Oi as tc, Qt as lt, Si as ec, Un as ic, Vt as De, Yi as ls, Yn as sc, Zr as us, a as ds, f as nc, ft as rc, k as Ie, kn as oc, kr as ac, mr as cc, qi as lc, yt as uc } from "./chunk-iq8thase.js"; 41import { i as dc } from "./chunk-lgmrl0ja.js"; 42import { n as hc } from "./chunk-yli8twv8.js"; 43import { n as mc } from "./chunk-kxhh4v4a.js"; 44import { t as pc } from "./chunk-j4ugyjxo.js"; 45import { t as yc } from "./chunk-gv18bf88.js"; 46import { a as fc, t as gc } from "./chunk-ezghzp8b.js"; 47import { t as Sc } from "./chunk-nugu9zb5.js"; 48import { n as bc } from "./chunk-g5561f51.js"; 49import { n as _c } from "./chunk-j0f6jhv0.js"; 50import { i as vc } from "./chunk-f9r9q8kp.js"; 51import { n as Bc } from "./chunk-bd32vwah.js"; 52import { r as kc } from "./chunk-jq0sl3ei.js"; 53import { n as Cc } from "./chunk-l121kfao.js"; 54import { n as Tc } from "./chunk-ja26nt1r.js"; 55import { r as Pc } from "./chunk-iuwunkxo.js"; 56import { n as Ec } from "./chunk-l0e5kunb.js"; 57import { n as Oc } from "./chunk-ja4vv35q.js"; 58import { t as Ac } from "./chunk-o2kd60zq.js"; 59import { t as Nc } from "./chunk-duo7njp1.js"; 60import { n as hs, t as ne } from "./chunk-eto2r310.js"; 61import { n as Re, r as ms } from "./chunk-c5h65alx.js"; 62import { n as Dc } from "./chunk-cah7i2vq.js"; 63import { _ as Ic, n as Rc, s as ps, w as Mc, y as ys } from "./chunk-o02wm52v.js"; 64import { n as wc } from "./chunk-h91dgy2a.js"; 65import { n as Fc } from "./chunk-l8mcnk9u.js"; 66import { o as Lc } from "./chunk-d06ulyri.js"; 67import { n as xc } from "./chunk-pb29llws.js"; 68import { E as fs, b as gs } from "./chunk-j06mo6pb.js"; 69import { n as Ss, t as Vc } from "./chunk-izpvy78m.js"; 70import { r as $c } from "./chunk-dzpnbkxl.js"; 71import { n as Uc } from "./chunk-kjann8gz.js"; 72import { p as Hc } from "./chunk-d3zbmodj.js"; 73import { t as Gc } from "./chunk-ozq493wr.js"; 74import { S as Wc } from "./chunk-kh77c4xb.js"; 75import { n as qc } from "./chunk-op4feybx.js"; 76import { t as jc } from "./chunk-f59lr91u.js"; 77import { E as Yc } from "./chunk-lq9ws58w.js"; 78import { _ as bs, o as zc } from "./chunk-bek7msjx.js"; 79import { b as _s, d as Kc } from "./chunk-lyo49v7s.js"; 80import { i as Jc } from "./chunk-btnbrvwd.js"; 81import { n as Xc, t as Zc } from "./chunk-kns01iwg.js"; 82import { n as Qc } from "./chunk-fzaji7dq.js"; 83import { n as tl } from "./chunk-ic8zjxxr.js"; 84import { n as el } from "./chunk-n2m7u3ae.js"; 85import { t as il } from "./chunk-jgjuk5z7.js"; 86import { n as sl } from "./chunk-dww94rc5.js"; 87import { r as nl } from "./chunk-o2xnvp27.js"; 88import { n as Me, t as vs } from "./chunk-ehnd5dwo.js"; 89import { n as rl } from "./chunk-cjgg81p0.js"; 90import { n as Bs, t as ks } from "./chunk-eg3yts4b.js"; 91import { t as ol } from "./chunk-cs9s1hg3.js"; 92import { n as al } from "./chunk-f2dkt6m9.js"; 93import { n as cl } from "./chunk-g3nn5ihv.js"; 94import { a as ll, i as ul, l as Cs, t as Ts } from "./chunk-hgp0v2sq.js"; 95import { n as dl } from "./chunk-n6jntq8w.js"; 96import { n as hl } from "./chunk-nu8d10du.js"; 97import { t as ml } from "./chunk-h8ecxuny.js"; 98import { n as pl } from "./chunk-io5v68wy.js"; 99import { c as yl } from "./chunk-owt74jjd.js"; 100import { t as fl } from "./chunk-ohz1zoj7.js"; 101import { n as gl } from "./chunk-im83gcb3.js"; 102import { i as Sl, t as bl } from "./chunk-b3lyblkb.js"; 103import { n as _l } from "./chunk-cl696cua.js"; 104import { o as vl } from "./chunk-mxmfuhfl.js"; 105import { n as Bl } from "./chunk-es5wia5t.js"; 106import { t as kl } from "./chunk-csl2swas.js"; 107import { n as Cl } from "./chunk-eber62ai.js"; 108import { i as Tl, r as Pl } from "./chunk-jipijatq.js"; 109import { n as El } from "./chunk-jf9hdnex.js"; 110import { r as Ol } from "./chunk-b81t2lx1.js"; 111import { t as Al } from "./chunk-fc584apf.js"; 112import { a as Nl } from "./chunk-eaht5xxc.js"; 113import { s as Dl } from "./chunk-ljb6jk92.js"; 114import { n as Il } from "./chunk-1gq3zm17.js"; 115import { i as Rl } from "./chunk-nbskzbw0.js"; 116import { r as Ml } from "./chunk-j68c2tnj.js"; 117import { n as wl } from "./chunk-euo2kqq9.js"; 118import { n as Fl } from "./chunk-i7ecc880.js"; 119import { n as Ll } from "./chunk-l3bwko7a.js"; 120import { u as xl } from "./chunk-n8h65r7c.js"; 121import { a as Vl } from "./chunk-huejnlws.js"; 122import { d as $l } from "./chunk-ecp6euan.js"; 123import { t as Ul } from "./chunk-bf8bcr56.js"; 124import { i as Ps, n as re, r as Es } from "./chunk-hjoftffo.js"; 125import { n as Hl } from "./chunk-lqsbxgbr.js"; 126import { n as Gl } from "./chunk-box3ohoo.js"; 127import { n as Wl } from "./chunk-hu55n7wb.js"; 128import { n as ql } from "./chunk-khs3ivm3.js"; 129import { t as jl } from "./chunk-le2gywhn.js"; 130import { t as Yl } from "./chunk-khdxlqp2.js"; 131import { l as zl } from "./chunk-b9m59xwf.js"; 132import { n as Kl } from "./chunk-d9dplb6z.js"; 133import { n as Jl } from "./chunk-hgaiynd0.js"; 134import { n as Xl } from "./chunk-hx6y7kek.js"; 135import { t as Zl } from "./chunk-ld081sxw.js"; 136import { n as Ql } from "./chunk-hwni6bri.js"; 137import { n as tu } from "./chunk-hsf3dpma.js"; 138import { n as eu } from "./chunk-fali582u.js"; 139import { n as iu } from "./chunk-ij1u9l2n.js"; 140import { n as su, t as Bt } from "./chunk-ck56cmad.js"; 141import { t as nu } from "./chunk-nemq363r.js"; 142import { t as ru } from "./chunk-i2ogy8gh.js"; 143import { r as ou } from "./chunk-e7mi71mr.js"; 144import { _ as au } from "./chunk-czakmhgz.js"; 145import { n as cu } from "./chunk-m1yc3ygr.js"; 146import { i as lu } from "./chunk-k5qrxypz.js"; 147import { t as uu } from "./chunk-n0qt0ytv.js"; 148import { n as du } from "./chunk-8uvtj9vi.js"; 149import { t as hu } from "./chunk-kum14w7h.js"; 150import { n as mu } from "./chunk-foy1gqs3.js"; 151import { o as pu } from "./chunk-oinny59o.js"; 152import { n as yu } from "./chunk-cmoyh3hx.js"; 153import { n as fu } from "./chunk-igmzk05c.js"; 154import { n as gu } from "./chunk-focwpgem.js"; 155import { i as Su } from "./chunk-c6c21m38.js"; 156import { i as bu } from "./chunk-b1pv0u7h.js"; 157import { t as _u } from "./chunk-bzdqm0fg.js"; 158import { l as vu } from "./chunk-ibympkf2.js"; 159import { r as Bu } from "./chunk-je8asq4j.js"; 160import { d as ku } from "./chunk-ophyzqlx.js"; 161import { n as Cu } from "./chunk-kb3m33eu.js"; 162import { n as Tu } from "./chunk-he7hdbsv.js"; 163import { t as Pu }
163 from "./chunk-kn4tq1y4.js"; 164import { n as Eu } from "./chunk-pcrjqtwg.js"; 165import { n as Ou } from "./chunk-hh4rfzhx.js"; 166import { i as Os, t as As } from "./chunk-o9d3376i.js"; 167import { H as Au } from "./chunk-n7mazb2g.js"; 168import { n as Nu } from "./chunk-f003tdgn.js"; 169import { n as Du, t as Iu } from "./chunk-h968z96s.js"; 170import { t as Ru } from "./chunk-egzwc6el.js"; 171import { a as Mu } from "./chunk-n2c6bkgz.js"; 172import { d as wu } from "./chunk-dh6y5o5c.js"; 173import { n as Fu } from "./chunk-jc6uqvfc.js"; 174import { n as Lu } from "./chunk-cmbai8sy.js"; 175import { n as xu } from "./chunk-o8j15sr1.js"; 176import { a as Vu } from "./chunk-mthf07ko.js"; 177import { n as $u } from "./chunk-nu7vclav.js"; 178import { t as Uu } from "./chunk-gzydrmx8.js"; 179import { n as Hu } from "./chunk-jnbpzwq8.js"; 180import { t as Gu } from "./chunk-hc6zu2lo.js"; 181import { a as Wu } from "./chunk-jd93snah.js"; 182import { a as qu } from "./chunk-h2a1jk9u.js"; 183import { t as ju } from "./chunk-ii2nakax.js"; 184import { n as Yu } from "./chunk-bz4w98li.js"; 185import { i as zu } from "./chunk-fu031b4l.js"; 186import { t as Ku } from "./chunk-dd0qh0uf.js"; 187import { n as Ju } from "./chunk-m87hbvd4.js"; 188import { t as Xu } from "./chunk-m4iun2ve.js"; 189import { n as Zu } from "./chunk-ezjk3as3.js"; 190import { n as Qu } from "./chunk-cmpdrpe0.js"; 191import { n as td } from "./chunk-h0085uyy.js"; 192import { t as ed } from "./chunk-nuhmt4d2.js"; 193import { t as id } from "./chunk-d90z9n1w.js"; 194import { n as sd } from "./chunk-j8braqzq.js"; 195import { t as nd } from "./chunk-hondkzyr.js"; 196import { n as rd } from "./chunk-e128byv8.js"; 197import { r as od } from "./chunk-k71xwh5a.js"; 198import { a as ad, i as cd, r as ld, t as ud } from "./chunk-dvmipx90.js"; 199import { n as dd } from "./chunk-e1os2gbb.js"; 200import { r as hd } from "./chunk-nk13yrgg.js"; 201import { c as md } from "./chunk-mkjsekfa.js"; 202import { n as pd, r as yd } from "./chunk-cdd7dgx2.js"; 203import { a as fd } from "./chunk-g5difdjd.js"; 204import { t as gd } from "./chunk-k3g43zo0.js"; 205import { c as Sd, m as bd, n as _d } from "./chunk-ihkbjmi2.js"; 206import { t as vd } from "./chunk-fmcihc9q.js"; 207import { n as Bd } from "./chunk-dwrwd9dn.js"; 208import { r as kd } from "./chunk-ng86s9a3.js"; 209import { n as Cd } from "./chunk-jzudznh6.js"; 210import { t as Td } from "./chunk-l88as4nd.js"; 211import { i as Pd } from "./chunk-os9i5de4.js"; 212import { n as Ed } from "./chunk-p1lk0fbh.js"; 213import { n as Od } from "./chunk-iskf5dxw.js"; 214import { i as Ad, n as Nd } from "./chunk-gyery7c4.js"; 215import { n as Dd } from "./chunk-esg3xot5.js"; 216import { c as Id } from "./chunk-j6ryrb6h.js"; 217import { i as Ns, t as Rd } from "./chunk-mpv0arz9.js"; 218import { n as Md } from "./chunk-l8dd4lui.js"; 219import { n as wd } from "./chunk-f5yr9pd1.js"; 220import { d as Ds, f as Fd } from "./chunk-crzu2vqq.js"; 221import { t as Ld } from "./chunk-cgphozbx.js"; 222import { t as xd } from "./chunk-owngo6i4.js"; 223import { t as Vd } from "./chunk-mdagmlev.js"; 224import { t as $d } from "./chunk-jwxd2des.js"; 225import { b as Ud, p as Is, s as Hd } from "./chunk-bahnp210.js"; 226import { r as Rs, t as Gd } from "./chunk-ezv0me8w.js"; 227import { n as Wd } from "./chunk-g1hy7auv.js"; 228import { r as qd } from "./chunk-fdc8teu0.js"; 229import { s as jd } from "./chunk-kwjhgywx.js"; 230import { n as Yd } from "./chunk-h59yj09w.js"; 231import { r as zd } from "./chunk-b727naql.js"; 232import { i as Kd } from "./chunk-cti9u4fd.js"; 233import { o as Jd } from "./chunk-dgnyb449.js"; 234import { n as Xd } from "./chunk-bmes2zwv.js"; 235import { n as Zd } from "./chunk-d4fgqaxk.js"; 236import { n as Qd } from "./chunk-g9opuhpi.js"; 237import { P as th } from "./chunk-j67369fr.js"; 238import { r as eh } from "./chunk-i3vwv9tw.js"; 239import { r as ih } from "./chunk-e7hseq4p.js"; 240import { d as sh, f as nh, t as rh, u as oh } from "./chunk-coq9or56.js"; 241import { t as ah } from "./chunk-cnatsayw.js"; 242import { n as ch } from "./chunk-cnpmim50.js"; 243import { n as lh } from "./chunk-bqi34kzb.js"; 244import { n as uh } from "./chunk-z4wfyum1.js"; 245import { n as dh } from "./chunk-kh3wc5ga.js"; 246import { a as hh } from "./chunk-f0subqvg.js"; 247import { t as mh } from "./chunk-gyqrv583.js"; 248import { r as ph } from "./chunk-by7nwdb5.js"; 249import { n as yh } from "./chunk-bv6nuydk.js"; 250import { t as fh } from "./chunk-c8z0d69p.js"; 251import { S as gh, g as Ms, i as Sh, m as ut, n as bh, r as _h, y as ws } from "./chunk-jn80jst7.js"; 252import { n as vh } from "./chunk-n663wm00.js"; 253import { r as Bh } from "./chunk-cwik43c3.js"; 254import { n as kh } from "./chunk-ls3cgcpm.js"; 255import { r as Ch } from "./chunk-boqoqp5c.js"; 256import { n as Th } from "./chunk-gc7biacf.js"; 257import { n as Ph, s as Eh } from "./chunk-cn3irxwq.js"; 258import { n as Oh } from "./chunk-jj3cpi7o.js"; 259import { n as Ah } from "./chunk-xflysgpm.js"; 260import { n as Nh } from "./chunk-oo87drul.js"; 261import { t as Dh } from "./chunk-evyrsj6v.js"; 262import { t as Ih } from "./chunk-kxhstsfk.js"; 263import { $ as Rh, E as Mh, F as wh, G as Fh, M as Lh, N as xh, O as Vh, P as $h, Q as Uh, V as Fs, Y as Hh, _ as Gh, a as Wh, f as qh, ft as jh, g as Yh, it as zh, k as Kh, l as Jh, n as Xh, nt as Ls, r as Zh, rt as Qh, tt as tm, vt as em, w as im, z as sm } from "./chunk-m2id3nv3.js"; 264import { n as xs, r as nm } from "./chunk-bk0i6e7m.js"; 265import { n as rm } from "./chunk-kr41z37k.js"; 266import { W as om } from "./chunk-iggsbb0f.js"; 267import { rt as am } from "./chunk-dnszgv69.js"; 268import { t as cm } from "./chunk-l0sfrsyk.js"; 269import { A as lm } from "./chunk-j7xc1xjm.js"; 270import { n as um } from "./chunk-m4evzx6j.js"; 271import { i as dm } from "./chunk-d9exxnre.js"; 272import { n as hm } from "./chunk-bsdtqhyf.js"; 273import { t as mm } from "./chunk-cw24gzy6.js"; 274import { i as pm } from "./chunk-cdlwcoxy.js"; 275import { a as Vs, c as ym } from "./chunk-fiflfmu8.js"; 276import { t as fm } from "./chunk-ka2i6e1c.js"; 277import { s as gm } from "./chunk-e59pjvbr.js"; 278import { n as Sm } from "./chunk-bah5gkvi.js"; 279import { n as bm } from "./chunk-leizlffa.js"; 280import { n as _m } from "./chunk-4k628izn.js"; 281import { n as vm } from "./chunk-njugynff.js"; 282import { n as Bm } from "./chunk-e2il0kn5.js"; 283import { t as km } from "./chunk-flvkdug5.js"; 284import { n as Cm } from "./chunk-k1xp67xl.js"; 285import { n as Tm } from "./chunk-ec2dz0nq.js"; 286import { i as Pm } from "./chunk-bruqyvjz.js"; 287import { a as Em } from "./chunk-jlrxnjx9.js"; 288import { t as Om } from "./chunk-ho4v605u.js"; 289import { t as Am } from "./chunk-mu1axej8.js"; 290import { n as Nm } from "./chunk-k29dmqmn.js"; 291import { r as Dm } from "./chunk-j49r8xxi.js"; 292import { p as Im } from "./chunk-lq0tys2t.js"; 293import { t as Rm } from "./chunk-ofbeetyf.js"; 294import { o as Mm } from "./chunk-deivjslq.js"; 295import { n as wm } from "./chunk-hv5ly7lc.js"; 296import { t as Fm } from "./chunk-d3qcs6qf.js"; 297import { r as Lm } from "./chunk-pevj5dch.js"; 298import { t as xm } from "./chunk-eyv2ovnw.js"; 299import { t as Vm } from "./chunk-b36qo3kp.js"; 300import { s as $m } from "./chunk-nau5uclz.js"; 301import { t as Um } from "./chunk-jdimqkj0.js"; 302import { n as Hm } from "./chunk-kkoco3a6.js"; 303import { a as Gm, i as Wm, n as $s, r as Us } from "./chunk-kka9chlt.js"; 304import { r as qm } from "./chunk-kpjnpezo.js"; 305import { a as jm, i as Hs, o as w, t as Gs } from "./chunk-br1elq7q.js"; 306import { a as Ym, f as zm, i as Ws, l as Km, n as Jm, o as Xm, p as qs, r as Zm, t as Qm, y as tp } from "./chunk-kbrgou76.js"; 307import { f as ep } from "./chunk-mpes9cya.js"; 308import { n as ip } from "./chunk-dup0i88x.js"; 309import { Xt as sp, i as np } from "./chunk-m9tb6vgg.js"; 310import { a as rp, i as js, l as Ys, n as B, p as zs } from "./chunk-d2rbh7v5.js"; 311import { a as op, i as ap, l as Ks, n as Js, o as Xs, r as cp } from "./chunk-msmmi2e2.js"; 312import { n as lp, t as oe } from "./chunk-gro32smv.js"; 313import { n as up, t as dp } from "./chunk-be840hh7.js"; 314import { a as hp } from "./chunk-n8y96udx.js"; 315import { a as mp, n as pp } from "./chunk-fdzfmz26.js"; 316import { o as yp } from "./chunk-k7i9z7wn.js"; 317import { w as fp } from "./chunk-lov4wypb.js"; 318import { n as gp }
318 from "./chunk-ny7dhi78.js"; 319import { r as Sp } from "./chunk-i01uvh25.js"; 320import { n as bp } from "./chunk-glnjuwxx.js"; 321import { r as _p } from "./chunk-bwzsd5tc.js"; 322import { n as vp } from "./chunk-jhp340vn.js"; 323import { m as Bp } from "./chunk-kb4jfp8o.js"; 324import { t as kp } from "./chunk-dyjtqzw5.js"; 325import { n as Cp } from "./chunk-n2noyopa.js"; 326import { i as Tp } from "./chunk-kamr2hwt.js"; 327import { t as Pp } from "./chunk-bohn0jvp.js"; 328import { n as Ep } from "./chunk-fn71jcd8.js"; 329import { t as Op } from "./chunk-nlliaaqh.js"; 330import { o as Ap } from "./chunk-n7wuxkff.js"; 331import { n as Np } from "./chunk-btfeydsq.js"; 332import { r as Dp, t as Ip } from "./chunk-pbjhjc9r.js"; 333import { r as Zs, t as Qs } from "./chunk-lqidtige.js"; 334import { n as tn, r as kt, t as en } from "./chunk-btjyn4q7.js"; 335import { n as Rp, t as sn } from "./chunk-gu3n3b3x.js"; 336import { n as Mp, r as nn, t as rn } from "./chunk-b0j4mh64.js"; 337import { n as wp, t as on } from "./chunk-ot6no10e.js"; 338import { a as an, c as we, d as Fp, f as Fe, i as Lp, l as ae, n as Le, o as xe, p as cn, r as Ve, s as $e, t as ln } from "./chunk-fu0a1o28.js"; 339import { a as dt, i as un, n as xp, o as Vp, r as ce, s as Ue, t as dn } from "./chunk-gx6gyf7q.js"; 340import { i as hn, n as j, t as $p } from "./chunk-kk5h31ux.js"; 341import { n as Up, t as Hp } from "./chunk-l0t5mce1.js"; 342import { n as Gp, t as Gt } from "./chunk-o4f8w5yc.js"; 343var He; 344function Ge() { 345 return (Ge = Gt((() => { 346 fe(), Vt(), xi(), Zt(), ss(), ie(), Vs(), He = (() => { 347 let e = class { 348 constructor() { 349 this.siteCore = n(A), this.urlHelper = n(se), this.sportConfig = n(no), this.activeClassName = "active", this.calendarUrlParams = [ 350 J.After2days, 351 J.After3days, 352 J.In30minutes, 353 J.In60minutes, 354 J.In180minutes, 355 J.Today, 356 J.Tomorrow, 357 J.Next2days, 358 J.Next3days, 359 J.Next5days, 360 J.MidWeek, 361 J.ThisWeekend 362 ], this.getRegionIcon = (t, s) => s !== Qr.Tennis ? `country-icon c${t}` : "", this.getSportUrlParam = (t) => ({ 363 id: t.id, 364 name: "" 365 }); 366 } 367 createSportCouponsCrumbOptions(t, s) { 368 return { 369 icon: "", 370 title: this.siteCore.betStation.breadcrumbs.SportCoupons.replace(/{{sport}}/, t.name.toUpperCase()), 371 url: s?.buildUrl ? this.urlHelper.getCouponUrl(Q({ prefix: "sport" }, t)) : "", 372 classes: s?.isActive ? this.activeClassName : void 0 373 }; 374 } 375 createSportCouponDetailsCrumbOptions(t, s) { 376 return { 377 icon: "", 378 title: t, 379 url: "", 380 classes: this.activeClassName, 381 bgColor: s 382 }; 383 } 384 createAllSportsCrumbOptions(t) { 385 return { 386 icon: t.live ? "" : "sports-sports", 387 title: t.live ? this.siteCore.betStation.breadcrumbs.InPlay : this.siteCore.betStation.breadcrumbs.Sports, 388 url: t.buildUrl ? t.live ? this.urlHelper.getLiveUrl() : this.urlHelper.getAllSportsUrl(t.context) : "", 389 classes: t.isActive ? this.activeClassName : void 0 390 }; 391 } 392 createAllSportsCalendarCrumbOptions(t) { 393 return { 394 icon: "sports-clock", 395 title: this.getCalendarTitle(t.context), 396 url: t.buildUrl ? this.urlHelper.getCalendarUrl(t.context) : "", 397 classes: t.isActive ? this.activeClassName : void 0 398 }; 399 } 400 createSportCrumbOptions(t) { 401 let s = this.getSportUrlParam(t.sport); 402 return { 403 icon: `sports-${t.sport.id}`, 404 title: t.sport instanceof ym ? t.sport.title : t.sport.name, 405 url: t.buildUrl ? t.live ? this.urlHelper.getLiveSportUrl({ sport: s }) : this.urlHelper.getSportUrl(s, t.context) : "", 406 classes: t.isActive ? this.activeClassName : void 0 407 }; 408 } 409 createRegionCrumbOptions(t, s, r) { 410 return { 411 icon: this.getRegionIcon(t.region.id, +t.sport.id), 412 title: s || t.region.name, 413 url: t.buildUrl ? this.urlHelper.getSportUrl(this.getSportUrlParam(t.sport), r || (t.context ? t.context : Xi.Betting), t.region) : "", 414 classes: t.isActive ? this.activeClassName : void 0 415 }; 416 } 417 createLeagueCrumbOptions(t) { 418 return {
419 icon: this.getRegionIcon(t.region.id, +t.sport.id), 420 title: t.league.name, 421 url: t.buildUrl ? this.urlHelper.getSportUrl(this.getSportUrlParam(t.sport), t.context ? t.context : Xi.Betting, t.region, t.league, t.group) : "", 422 classes: t.isActive ? this.activeClassName : void 0 423 }; 424 } 425 isOutrightSport(t) { 426 return this.sportConfig.competitionLandingPage.includes(t); 427 } 428 getCalendarTitle(t) { 429 switch (t) { 430 case "in30minutes": return this.siteCore.betStation.breadcrumbs.CalendarIn30; 431 case "in60minutes": return this.siteCore.betStation.breadcrumbs.CalendarIn60; 432 case "in180minutes": return this.siteCore.betStation.breadcrumbs.CalendarIn180; 433 case "all": return this.siteCore.betStation.breadcrumbs.All; 434 case "today": return this.siteCore.betStation.breadcrumbs.Today; 435 case "tomorrow": return this.siteCore.betStation.breadcrumbs.Tomorrow; 436 case "next2days": return this.siteCore.betStation.breadcrumbs.Next2Days; 437 case "next3days": return this.siteCore.betStation.breadcrumbs.Next3Days; 438 case "next5days": return this.siteCore.betStation.breadcrumbs.Next5Days; 439 case "midWeek": return this.siteCore.betStation.breadcrumbs.MidWeek; 440 case "thisWeekend": return this.siteCore.betStation.breadcrumbs.ThisWeekend; 441 default: return this.siteCore.betStation.breadcrumbs.CalendarIn60; 442 } 443 } 444 }; 445 return e.ɵfac = function(i) { 446 return new (i || e)(); 447 }, e.ɵprov = S({ 448 token: e, 449 factory: e.ɵfac 450 }), e; 451 })(); 452 })))(); 453} 454function Wp(e, i) { 455 if (e & 1 && (l(0, "div", 2), d(1), u()), e & 2) { 456 let t = c(2); 457 b("msAutomation", "odds-acceptance-teaser-badge"), o(), E(" ", t.recommendedBadge, " "); 458 } 459} 460function qp(e, i) { 461 if (e & 1 && (l(0, "div", 6), d(1), u()), e & 2) { 462 let t = c().$implicit; 463 o(), E(" ", t.subTitle, " "); 464 } 465} 466function jp(e, i) { 467 if (e & 1) { 468 let t = z(); 469 l(0, "div", 1), p(1, Wp, 2, 2, "div", 2), l(2, "input", 3), K("change", function() { 470 let s = R(t).$implicit; 471 return M(c().setValue(s.id)); 472 }), u(), l(3, "label", 4)(4, "div", 5), d(5), u(), p(6, qp, 2, 1, "div", 6), u()(); 473 } 474 if (e & 2) { 475 let t = i.$implicit, s = c(); 476 V("odds-acceptance__item--recommended", t.isRecommended), o(), m(t.isRecommended ? 1 : -1), o(), b("id", vi(t.id))("checked", t.id === s.currentValue)("msAutomation", ve(11, mn, t.id)), o(), b("for", vi(t.id)), o(2), g(t.title), o(), m(t.subTitle ? 6 : -1); 477 } 478} 479var We, qe, C, W, le, mn, je, Ot, Ye; 480function ze() { 481 return (ze = Gt((() => { 482 Vt(), rs(), Zt(), Ae(), ie(), ks(), Cs(), we(), Ue(), We = (() => { 483 let e = class extends Ts { 484 constructor() { 485 super(...arguments), this.betStationInfoService = n(an); 486 } 487 get params() { 488 return { shopId: this.betStationInfoService.shopId }; 489 } 490 }; 491 return e.ɵfac = (() => { 492 let i; 493 return function(t) { 494 return (i || (i = ht(e)))(t || e); 495 }; 496 })(), e.ɵprov = S({ 497 token: e, 498 factory: e.ɵfac 499 }), e; 500 })(), qe = (() => { 501 let e = class extends ce { 502 getInitMessage() { 503 let t = this.retailTracingFactory.createTracingInitMessage(dt.BetPlacementInit, un.PlaceBet); 504 return this.setRequestReferenceId(t.reqRefId), t; 505 } 506 getCompleteMessage() { 507 let t = this.getAndResetRequestReferenceId(); 508 return t ? this.retailTracingFactory.createTracingCompleteMessage(dt.BetPlacementComplete, t) : null; 509 } 510 getFailMessage(t) { 511 let s = this.getAndResetRequestReferenceId(); 512 return s ? this.retailTracingFactory.createTracingFailMessage(dt.BetPlacementFailed, s, t) : null; 513 } 514 }; 515 return e.ɵfac = (() => { 516 let i; 517 return function(t) { 518 return (i || (i = ht(e)))(t || e); 519 }; 520 })(), e.ɵprov = S({ 521 token: e, 522 factory: e.ɵfac 523 }), e; 524 })(), C = (function(e) { 525 return e.NotApplicable = "not applicable", e.Category = "betting settings", e.SettingsLocation = "odds settings overlay", e.TeaserLocation = "faster beeting overlay", e.SaveAction = "save", e.LoadAction = "load", e.ExitAction = "exit", e.FormatLabel = "odds format", e.AcceptanceLabel = "odds acceptance", e.FormatDecimal = "decimal", e.FormatFractional = "fractional", e.AcceptanceAny = "accept all odds", e.AcceptanceHigher = "accept higher odds", e.AcceptanceNo = "don't accept odds changes", e; 526 })(C || {}), W = { 527 settingsOrigin: "settings", 528 teaserOrigin: "teaser", 529 formatChanged: "format", 530 acceptanceChanged: "acceptance" 531 }, le = (() => { 532 let e = class { 533 constructor() { 534 this.trackingService = n(Zi); 535 } 536 trackSaveSetting(t, s, r, a) { 537 this.trackData(C.SaveAction, s === W.formatChanged ? this.getOddsFormatInfo(r) : this.getOddsAcceptanceInfo(r), s === W.formatChanged ? this.getOddsFormatInfo(a) : this.getOddsAcceptanceInfo(a), t === W.settingsOrigin ? C.SettingsLocation : C.TeaserLocation, s === W.formatChanged ? C.FormatLabel : C.AcceptanceLabel); 538 } 539 trackSettingScreenLoaded(t) { 540 this.trackData(C.LoadAction, t === W.settingsOrigin ? C.SettingsLocation : C.TeaserLocation); 541 } 542 trackSettingScreenClosed(t) { 543 this.trackData(C.ExitAction, t === W.settingsOrigin ? C.SettingsLocation : C.TeaserLocation); 544 }
545 trackData(t, s, r = C.NotApplicable, a = C.NotApplicable, y = C.AcceptanceLabel) { 546 let f = { 547 [h.COMPONENT_CATEGORY_EVENT]: C.Category, 548 [h.COMPONENT_LABEL_EVENT]: y, 549 [h.COMPONENT_ACTION_EVENT]: t, 550 [h.COMPONENT_POSITION_EVENT]: r, 551 [h.COMPONENT_LOCATION_EVENT]: a, 552 [h.COMPONENT_EVENT_DETAILS]: s, 553 [h.COMPONENT_URL_CLICKED]: C.NotApplicable 554 }; 555 this.trackingService.track(h.EVENT_TRACKING, f); 556 } 557 getOddsFormatInfo(t) { 558 switch (t) { 559 case "EU": return C.FormatDecimal; 560 case "UK": return C.FormatFractional; 561 default: return C.FormatFractional; 562 } 563 } 564 getOddsAcceptanceInfo(t) { 565 switch (t) { 566 case vt.Any: return C.AcceptanceAny; 567 case vt.Higher: return C.AcceptanceHigher; 568 case vt.No: return C.AcceptanceNo; 569 default: return C.AcceptanceNo; 570 } 571 } 572 }; 573 return e.ɵfac = function(i) { 574 return new (i || e)(); 575 }, e.ɵprov = S({ 576 token: e, 577 factory: e.ɵfac, 578 providedIn: "root" 579 }), e; 580 })(), mn = (e) => ({ oddsAcceptance: e }), je = (() => { 581 let e = class { 582 constructor() { 583 this.sitecore = n(A), this.initialValue = G(vt.No), this.valueChange = zt(), this.recommendedBadge = this.sitecore.betStation.settings.odds.RecommendedBadge; 584 } 585 ngOnInit() { 586 this.currentValue = this.initialValue(), this.oddsAcceptanceValues = this.getOddsAcceptanceValues(); 587 } 588 setValue(t) { 589 t !== this.currentValue && (this.currentValue = t, this.valueChange.emit(t)); 590 } 591 getOddsAcceptanceValues() { 592 return [ 593 { 594 id: vt.Any, 595 title: this.sitecore.betStation.settings.odds.OddsAcceptanceAny, 596 subTitle: this.sitecore.betStation.settings.odds.OddsAcceptanceAnySmallText, 597 isRecommended: this.showRecommended 598 }, 599 { 600 id: vt.Higher, 601 title: this.sitecore.betStation.settings.odds.OddsAcceptanceHigher 602 }, 603 { 604 id: vt.No, 605 title: this.sitecore.betStation.settings.odds.OddsAcceptanceNo 606 } 607 ]; 608 } 609 }; 610 return e.ɵfac = function(i) { 611 return new (i || e)(); 612 }, e.ɵcmp = U({ 613 type: e, 614 selectors: [["st-odds-acceptance-settings"]], 615 hostVars: 2, 616 hostBindings: function(i, t) { 617 i & 2 && V("odds-acceptance--show-recommended", t.showRecommended); 618 }, 619 inputs: { 620 initialValue: [1, "initialValue"], 621 showRecommended: "showRecommended" 622 }, 623 outputs: { valueChange: "valueChange" }, 624 decls: 2, 625 vars: 0, 626 consts: [ 627 [ 628 1, 629 "odds-acceptance__item", 630 3, 631 "odds-acceptance__item--recommended" 632 ], 633 [1, "odds-acceptance__item"], 634 [ 635 1, 636 "odds-acceptance__item-badge", 637 3, 638 "msAutomation" 639 ], 640 [ 641 "type", 642 "radio", 643 "name", 644 "oddsAcceptance", 645 1, 646 "custom-control-input", 647 "custom-control-radio", 648 "odds-acceptance__input", 649 3, 650 "change", 651 "id", 652 "checked", 653 "msAutomation" 654 ], 655 [ 656 1, 657 "odds-acceptance__label", 658 3, 659 "for" 660 ], 661 [1, "odds-acceptance__label-title"], 662 [1, "odds-acceptance__label-sub-title"] 663 ], 664 template: function(i, t) { 665 i & 1 && Dt(0, jp, 7, 13, "div", 0, Be), i & 2 && At(t.oddsAcceptanceValues); 666 }, 667 dependencies: [Bs], 668 styles: ["[_nghost-%COMP%]{--%NS%sports-odds-acceptance-color: var(--%NS%theme-cta-ghost-light);--%NS%sports-odds-acceptance-badge-background: var(--%NS%theme-info);--%NS%sports-odds-acceptance-badge-font-color: var(--%NS%color-white)}.odds-acceptance--show-recommended[_nghost-%COMP%] .odds-acceptance__label[_ngcontent-%COMP%]{margin:0 25px}.odds-acceptance__item[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;display:flex;border:1px solid transparent}.odds-acceptance__item--recommended[_ngcontent-%COMP%]{border:1px solid var(--%NS%sports-odds-acceptance-badge-background);border-radius:5px}.odds-acceptance__item-badge[_ngcontent-%COMP%]{width:fit-content;background-color:var(--%NS%sports-odds-acceptance-badge-background);color:var(--%NS%sports-odds-acceptance-badge-font-color);font-family:var(--%NS%theme-font-family-secondary);font-size:18px;text-transform:uppercase;border-radius:4px 0;padding:0 5px;line-height:1}.odds-acceptance__input[_ngcontent-%COMP%]{display:none}label.odds-acceptance__label[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;font-size:28px;justify-content:center;height:80px}.odds-acceptance__label-title[_ngcontent-%COMP%]{text-align:left;text-transform:uppercase;font-weight:700;font-size:18px;color:var(--%NS%sports-odds-acceptance-color)}.odds-acceptance__label-sub-title[_ngcontent-%COMP%]{text-align:left;font-weight:400;font-size:15px;color:var(--%NS%sports-odds-acceptance-color)}"], 669 changeDetection: 1 670 }), e; 671 })(), Ot = class {}, Ot.ACTION_SCHEMA = "@odds-settings", Ot.ODDS_ACCEPTANCE_CHANGED = `${Ot.ACTION_SCHEMA}/ODDS_ACCEPTANCE_CHANGED`, Ot.oddsAcceptanceChanged = Zo(Ot.ODDS_ACCEPTANCE_CHANGED), Ye = Ot; 672 })))(); 673} 674function pn() { 675 return [ 676 Lt, 677 Wt, 678 { 679 provide: Ym, 680 useClass: Wt 681 }, 682 Ke, 683 Xe, 684 Js, 685 ue, 686 Je 687 ]; 688} 689function Yp(e, i) { 690 if (e & 1 && (mt(0, "span", 0), I(1, "span", 1), d(2), $(3, "msCurrency"), F()), e & 2) { 691 let t = c(); 692 It("innerHTML", t.sitecore.betStation.earlyPayout.CashoutButtonText, $t), o(2), q("", t.currencySymbol, "", nt(3, 3, t.payoutValue, !1, 2)); 693 } 694} 695function zp(e, i) { 696 if (e & 1 && (mt(0, "span", 0), I(1, "span", 1), d(2), $(3, "msCurrency"), F()), e & 2) { 697 let t = c(); 698 It("innerHTML", t.sitecore.betStation.earlyPayout.CashoutConfirmationButtonText, $t), o(2), q("", t.currencySymbol, "", nt(3, 3, t.payoutValue, !1, 2)); 699 } 700} 701function Kp(e, i) { 702 e & 1 && mt(0, "span", 0), e & 2 && It("innerHTML", c().sitecore.betStation.earlyPayout.CashoutProcessingButtonText, $t); 703} 704function Jp(e, i) { 705 e & 1 && mt(0, "span", 0), e & 2 && It("innerHTML", c().sitecore.betStation.earlyPayout.CashoutNotAvailableButtonText, $t); 706} 707function Xp(e, i) { 708 e & 1 && mt(0, "span", 0), e & 2 && It("innerHTML", c().sitecore.betStation.myBets.CashoutConfirmed, $t); 709} 710function Zp(e, i) { 711 if (e & 1 && (l(0, "div", 4), v(1, "i", 7), l(2, "span"), d(3), u(
711)()), e & 2) { 712 let t = c(); 713 o(3), g(t.payoutErrorMessage); 714 } 715} 716function Qp(e, i) { 717 if (e & 1 && (l(0, "div", 5), v(1, "i", 7), l(2, "span", 8), d(3), u()()), e & 2) { 718 let t = c(); 719 o(3), g(t.sitecore.betStation.earlyPayout.CashoutFreebetInformationText); 720 } 721} 722function ty(e, i) { 723 e & 1 && v(0, "st-error", 1), e & 2 && b("message", c().payoutErrorMessage)("links", !1); 724} 725function ey(e, i) { 726 if (e & 1 && (l(0, "div", 2), d(1), u()), e & 2) { 727 let t = c(); 728 o(), g(t.sitecore.betStation.myBets.CashoutConfirmed); 729 } 730} 731function iy(e, i) { 732 e & 1 && d(0), e & 2 && E(" ", c(2).sitecore.betStation.myBets.PayoutSuccessful, " "); 733} 734function sy(e, i) { 735 e & 1 && Mt(0); 736} 737function ny(e, i) { 738 if (e & 1 && _t(0, sy, 1, 0, "ng-container", 8), e & 2) { 739 let t = c(2); 740 b("ngTemplateOutlet", Nt(11))("ngTemplateOutletContext", ve(2, ei, t.myBet.isOddsBoosted)); 741 } 742} 743function ry(e, i) { 744 if (e & 1 && (l(0, "span"), p(1, iy, 1, 1), p(2, ny, 1, 4, "ng-container"), u()), e & 2) { 745 let t = c(); 746 o(), m(t.isAnonymous ? 1 : -1), o(), m(t.isAnonymous ? -1 : 2); 747 } 748} 749function oy(e, i) { 750 e & 1 && Mt(0); 751} 752function ay(e, i) { 753 if (e & 1 && _t(0, oy, 1, 0, "ng-container", 8), e & 2) { 754 let t = c(); 755 b("ngTemplateOutlet", Nt(11))("ngTemplateOutletContext", ve(2, ei, t.myBet.isOddsBoosted)); 756 } 757} 758function cy(e, i) { 759 if (e & 1 && (l(0, "span"), d(1), $(2, "msCurrency"), u()), e & 2) { 760 let t = c(3); 761 o(), q("", t.currencySymbol, "", nt(2, 2, t.myBet.returnsInMajorCurrency, !1, 2)); 762 } 763} 764function ly(e, i) { 765 if (e & 1 && (l(0, "span"), d(1), $(2, "msCurrency"), u()), e & 2) { 766 let t = c(3); 767 o(), q("", t.currencySymbol, "", nt(2, 2, t.myBet.boostedReturnsInMajorCurrency, !1, 2)); 768 } 769} 770function uy(e, i) { 771 if (e & 1 && (l(0, "div")(1, "span"), d(2), u(), p(3, cy, 3, 6, "span"), p(4, ly, 3, 6, "span"), u(), l(5, "div")(6, "span"), d(7), u(), l(8, "span"), d(9), $(10, "msCurrency"), u()()), e & 2) { 772 let t = c(2); 773 o(2), g(t.sitecore.betStation.myBets.PayoutAdded), o(), m(t.myBet.isOddsBoosted ? -1 : 3), o(), m(t.myBet.isOddsBoosted ? 4 : -1), o(3), g(t.sitecore.betStation.myBets.PayoutNow), o(2), q("", t.currencySymbol, "", nt(10, 6, t.accountBalance, !1, 2)); 774 } 775} 776function dy(e, i) { 777 if (e & 1 && (l(0, "span"), d(1), u()), e & 2) { 778 let t = c(2); 779 o(), g(t.sitecore.betStation.myBets.FundsAddedToWallet); 780 } 781} 782function hy(e, i) { 783 if (e & 1 && (l(0, "div", 9), p(1, uy, 11, 10), p(2, dy, 2, 1, "span"), u()), e & 2) { 784 let t = c(); 785 V("non-anonymous", !t.isAnonymous), o(), m(t.isAnonymous ? 1 : -1), o(), m(t.isAnonymous ? -1 : 2); 786 } 787} 788function my(e, i) { 789 if (e & 1) { 790 let t = z(); 791 l(0, "div", 10), K("click", function() { 792 return R(t), M(c().addToBalance()); 793 }), d(1), u(); 794 } 795 if (e & 2) { 796 let t = c(); 797 o(), E(" ", t.sitecore.betStation.myBets.AddToBalance, " "); 798 } 799} 800function py(e, i) { 801 if (e & 1 && (l(0, "div", 6), d(1), u()), e & 2) { 802 let t = c(); 803 o(), g(t.sitecore.betStation.myBets.PayoutInProgress); 804 } 805} 806function yy(e, i) { 807 if (e & 1 && (l(0, "div", 7), d(1), u()), e & 2) { 808 let t = c(); 809 o(), g(t.sitecore.betStation.myBets.PayoutNotAvailable); 810 } 811} 812function fy(e, i) { 813 if (e & 1 && (l(0, "div", 7), d(1), u()), e & 2) { 814 let t = c(); 815 o(), g(t.sitecore.betStation.myBets.PayoutFailed); 816 } 817} 818function gy(e, i) { 819 if (e & 1 && (l(0, "span"), d(1), $(2, "msCurrency"), u()), e & 2) { 820 let t = c(2); 821 o(), q("", t.currencySymbol, "", nt(2, 2, t.myBet.returnsInMajorCurrency, !1, 2)); 822 } 823} 824function Sy(e, i) { 825 if (e & 1 && (l(0, "span"), d(1), $(2, "msCurrency"), u()), e & 2) { 826 let t = c(2); 827 o(), q("", t.currencySymbol, "", nt(2, 2, t.myBet.boostedReturnsInMajorCurrency, !1, 2)); 828 } 829} 830function by(e, i) { 831 if (e & 1 && (l(0, "span", 11), d(1), u(), l(2, "span", 12), p(3, gy, 3, 6, "span"), p(4, Sy, 3, 6, "span"), u()), e & 2) { 832 let t = i.showAccaBoostInfo, s = c(); 833 o(), g(s.sitecore.betStation.myBets.TicketValue), o(2), m(t ? -1 : 3), o(), m(t ? 4 : -1); 834 } 835} 836function _y(e, i) { 837 e & 1 && mt(0, "div", 5); 838} 839function vy(e, i) { 840 if (e & 1 && (I(0, "div", 6)(1, "span"), d(2), F(), I(3, "span"), d(4), F()()), e & 2) { 841 let t = c(2); 842 o(2), E("", t.sitecore.betStation.edsTriggers.myBets.Expires, " "), o(2), g(t.formatDate()); 843 } 844} 845function By(e, i) { 846 if (e & 1) { 847 let t = z(); 848 I(0, "div", 7)(1, "div", 8), Kt("click", function() { 849 return R(t), M(c(2).useFreeBet()); 850 }), d(2), F(), I(3, "div", 9), Kt("click", function() { 851 return R(t), M(c(2).printFreeBet()); 852 }), d(4), F()(); 853 } 854 if (e & 2) { 855 let t = c(2); 856 o(2), E(" ", t.sitecore.betStation.edsTriggers.myBets.UseFreeBet, " "), o(2), E(" ", t.sitecore.betStation.edsTriggers.myBets.PrintFreeBet, " "); 857 } 858} 859function ky(e, i) { 860 if (e & 1) { 861 let t = z(); 862 I(0, "div", 1)(1, "div", 2), Kt("click", function() { 863 return R(t), M(c().toggle()); 864 }), I(2, "span"), d(3), F(), I(4, "div")(5, "span", 3), d(6), $(7, "number"), F(), mt(8, "span", 4), F()(), p(9, _y, 1, 0, "div", 5), p(10, vy, 5, 2, "div", 6), F(), p(11, By, 5, 2, "div", 7); 865 } 866 if (e & 2) { 867 let t = c(); 868 o(3), E("", t.sitecore.betStation.edsTriggers.myBets.FreebetValue, " "), o(3), q(" ", t.currencySymbol, "", rr(7, 8, t.getAmount(), "1.2-2"), " "), o(2), st(t.collapsed ? "theme-down" : "theme-up"), o(), m(t.collapsed ? -1 : 9), o(), m(t.collapsed ? -1 : 10), o(), m(t.collapsed ? -1 : 11); 869 } 870} 871function Cy(e, i) { 872 if (e & 1 && (I(0, "div", 10)(1, "div", 12), mt(2, "i", 13), I(3, "span", 14), d(4), F()()()), e & 2) { 873 let t = c(2);
874 o(4), g(t.sitecore.betStation.edsTriggers.myBets.FreebetExpiredMessage); 875 } 876} 877function Ty(e, i) { 878 if (e & 1 && (ur(0, 11), I(1, "div", 12), mt(2, "i", 13), I(3, "span", 14), d(4), F()(), cr()), e & 2) { 879 let t = c(2); 880 o(4), E(" ", t.sitecore.betStation.edsTriggers.myBets.FreebetErrorMessage, " "); 881 } 882} 883function Py(e, i) { 884 if (e & 1 && p(0, Cy, 5, 1, "div", 10)(1, Ty, 5, 1, "ng-container", 11), e & 2) { 885 let t = c(); 886 m(t.statusCode === "VoucherInvalidOrExpired" || t.isExpired() ? 0 : 1); 887 } 888} 889function Ey(e, i) { 890 if (e & 1 && (I(0, "span", 0), d(1), F()), e & 2) { 891 let t = c(); 892 o(), g(t.subTitle); 893 } 894} 895function Oy(e, i) { 896 if (e & 1 && (l(0, "div", 5)(1, "span", 13), v(2, "span", 14)(3, "span", 15), u(), l(4, "span", 16), d(5), u()()), e & 2) { 897 let t = i.$implicit; 898 o(5), g(t.name); 899 } 900} 901function Ay(e, i) { 902 if (e & 1 && (l(0, "span", 8), d(1), u()), e & 2) { 903 let t = c(); 904 o(), g(t.sitecore.betStation.myBets.Live); 905 } 906} 907function Ny(e, i) { 908 if (e & 1 && (l(0, "span", 17), d(1), $(2, "stMyBetsDateFormatter"), u()), e & 2) { 909 let t = c(2); 910 o(), g(Xt(2, 1, t.eventTime())); 911 } 912} 913function Dy(e, i) { 914 e & 1 && p(0, Ny, 3, 3, "span", 17), e & 2 && m(c().eventTime() ? 0 : -1); 915} 916function Iy(e, i) { 917 if (e & 1 && v(0, "ms-event-timer", 9), e & 2) { 918 c(); 919 let t = ki(14); 920 b("live", t.live)("start", t.startDate)("scoreboard", t.scoreboard); 921 } 922} 923function Ry(e, i) { 924 if (e & 1 && (l(0, "div", 10), v(1, "st-grid-scoreboard", 18), u()), e & 2) { 925 c(); 926 let t = ki(16); 927 o(), b("scoreboard", t.scoreboard)("sport", t.sport.id); 928 } 929} 930function My(e, i) { 931 if (e & 1 && (l(0, "span"), d(1), u()), e & 2) { 932 let t = c(); 933 o(), g(t.rePricedOdds()); 934 } 935} 936function wy(e, i) { 937 e & 1 && Mt(0); 938} 939function Fy(e, i) { 940 e & 1 && _t(0, wy, 1, 0, "ng-container", 1), e & 2 && (c(), b("ngTemplateOutlet", Nt(5))); 941} 942function Ly(e, i) { 943 e & 1 && Mt(0); 944} 945function xy(e, i) { 946 e & 1 && _t(0, Ly, 1, 0, "ng-container", 1), e & 2 && (c(), b("ngTemplateOutlet", Nt(5))); 947} 948function Vy(e, i) { 949 e & 1 && Mt(0); 950} 951function $y(e, i) { 952 e & 1 && _t(0, Vy, 1, 0, "ng-container", 1), e & 2 && (c(), b("ngTemplateOutlet", Nt(5))); 953} 954function Uy(e, i) { 955 if (e & 1 && v(0, "st-my-bets-bet-builder-selection", 2), e & 2) { 956 let t = c(2); 957 b("legs", t.betSelection.betbuilderData.legs)("eventName", t.betSelection.eventName)("status", t.betSelection.selectionState)("statusTitle", t.betSelection.selectionStateTitle)("eventTime", t.betSelection.eventTime)("isLive", t.betSelection.isLive)("odds", t.betSelection.odds)("outcome", t.betSelection.outcome)("cancellationReason", t.betSelection.cancellationReason)("betSelectionEvent", t.betSelectionEvent)("offerBadge", t.promotionBadgeStyle ? t.getBadgeData() : void 0)("rePricedOdds", t.betSelection.sgpRePricedOdds); 958 } 959} 960function Hy(e, i) { 961 e & 1 && p(0, Uy, 1, 12, "st-my-bets-bet-builder-selection", 2), e & 2 && m(c().betSelection.betbuilderData ? 0 : -1); 962} 963function Gy(e, i) { 964 e & 1 && v(0, "st-bog-help-badge"); 965} 966function Wy(e, i) { 967 if (e & 1 && (l(0, "div", 6)(1, "span", 16), d(2), u(), l(3, "span"), d(4), u()()), e & 2) { 968 let t = c(2); 969 o(2), E("", t.betSelection.optionName, " "), o(2), g(t.marketName); 970 } 971} 972function qy(e, i) { 973 e & 1 && (l(0, "span", 17), d(1, ","), u()); 974} 975function jy(e, i) { 976 if (e & 1 && (l(0, "span"), d(1), u(), l(2, "span", 16), d(3), u(), p(4, qy, 2, 0, "span", 17)), e & 2) { 977 let t = i.$implicit, s = i.$index, r = i.$count; 978 o(), E("", t.title, " "), o(2), g(t.optionName), o(), m(s !== r - 1 ? 4 : -1); 979 } 980} 981function Yy(e, i) { 982 if (e & 1 && (l(0, "div", 6), Dt(1, jy, 5, 3, null, null, Ti), l(3, "span"), d(4), u()()), e & 2) { 983 let t = c(2); 984 o(), At(t.betSelection.forecastTricastInfo), o(3), g(t.marketName); 985 } 986} 987function zy(e, i) { 988 if (e & 1 && (l(0, "span"), d(1), u()), e & 2) { 989 let t = c(2); 990 o(), q("", t.sitecore.betStation.myBets.CancellationReasonTitle, " ", t.betSelection.cancellationReason); 991 } 992} 993function Ky(e, i) { 994 if (e & 1 && (l(0, "span"), d(1), u()), e & 2) { 995 let t = c(2); 996 o(), g(t.betSelection.eventName); 997 } 998} 999function Jy(e, i) { 1000 if (e & 1 && (l(0, "div", 7)(1, "span"), d(2), u()()), e & 2) { 1001 let t = c(2); 1002 o(2), E(" ", t.betSelectionEvent.name, " "); 1003 } 1004} 1005function Xy(e, i) { 1006 if (e & 1 && (l(0, "span", 9), d(1), u()), e & 2) { 1007 let t = c(2); 1008 o(), g(t.sitecore.betStation.myBets.Live); 1009 } 1010} 1011function Zy(e, i) { 1012 if (e & 1 && (l(0, "span", 10), d(1), $(2, "stMyBetsDateFormatter"), u()), e & 2) { 1013 let t = c(2); 1014 o(), g(Xt(2, 1, t.betSelection.eventTime)); 1015 } 1016} 1017function Qy(e, i) { 1018 if (e & 1 && v(0, "ms-event-timer", 11), e & 2) { 1019 let t = c(2); 1020 b("live", t.betSelectionEvent.live)("start", t.betSelectionEvent.startDate)("scoreboard", t.betSelectionEvent.scoreboard); 1021 } 1022} 1023function tf(e, i) { 1024 if (e & 1 && v(0, "st-grid-scoreboard", 13), e & 2) { 1025 let t = c(2); 1026 b("scoreboard", t.betSelectionEvent.scoreboard)("sport", t.betSelectionEvent.sport.id); 1027 } 1028} 1029function ef(e, i) {
1030 if (e & 1 && (l(0, "span"), v(1, "st-offer-badge", 19), u()), e & 2) { 1031 let t = c(3); 1032 o(), b("model", t.getBadgeData()); 1033 } 1034} 1035function sf(e, i) { 1036 if (e & 1 && (l(0, "div", 14)(1, "span", 18), d(2), u(), p(3, ef, 2, 1, "span"), u()), e & 2) { 1037 let t = c(2); 1038 o(2), g(t.betSelectionOdds), o(), m(t.promotionBadgeStyle ? 3 : -1); 1039 } 1040} 1041function nf(e, i) { 1042 if (e & 1 && (l(0, "div", 15)(1, "div", 20)(2, "span", 21), d(3), u()(), v(4, "st-priceboost-count-signpost", 22), u()), e & 2) { 1043 let t = c(2); 1044 o(3), g(t.betSelection.priceBoostOriginalOdds), o(), b("isLargeSignPost", !0)("count", t.betSelectionOdds); 1045 } 1046} 1047function rf(e, i) { 1048 if (e & 1 && (l(0, "div", 3), v(1, "st-my-bets-status", 4), p(2, Gy, 1, 0, "st-bog-help-badge"), u(), l(3, "div", 5), p(4, Wy, 5, 2, "div", 6), p(5, Yy, 5, 1, "div", 6), p(6, zy, 2, 2, "span"), p(7, Ky, 2, 1, "span"), p(8, Jy, 3, 1, "div", 7), l(9, "div", 8), p(10, Xy, 2, 1, "span", 9), p(11, Zy, 3, 3, "span", 10), p(12, Qy, 1, 3, "ms-event-timer", 11), u()(), l(13, "div", 12), p(14, tf, 1, 2, "st-grid-scoreboard", 13), u(), p(15, sf, 4, 2, "div", 14), p(16, nf, 5, 3, "div", 15)), e & 2) { 1049 let t = c(); 1050 o(), b("title", t.betSelection.selectionStateTitle)("state", t.betSelection.selectionState)("hasClass", !0)("subTitle", t.betSelection.selectionStateSubTitle), o(), m(t.isBogEligible ? 2 : -1), o(2), m(t.betSelection.forecastTricastInfo ? -1 : 4), o(), m(t.betSelection.forecastTricastInfo ? 5 : -1), o(), m(t.betSelection.cancellationReason ? 6 : -1), o(), m(!t.betSelectionEvent || t.betSelection.outcome || t.betSelection.cancellationReason ? 7 : -1), o(), m(!t.betSelection.outcome && !t.betSelection.cancellationReason && t.betSelectionEvent ? 8 : -1), o(2), m(t.isLive ? 10 : -1), o(), m(!t.betSelectionEvent || t.betSelection.outcome || t.betSelection.cancellationReason ? 11 : -1), o(), m(t.betSelectionEvent && t.betSelectionEvent.scoreboard && !t.betSelection.outcome && !t.betSelection.cancellationReason ? 12 : -1), o(2), m(t.betSelectionEvent && t.betSelectionEvent.scoreboard.started && !t.betSelection.outcome && !t.betSelection.cancellationReason ? 14 : -1), o(), m(t.betSelection.isPriceBoosted ? -1 : 15), o(), m(t.betSelection.isPriceBoosted ? 16 : -1); 1051 } 1052} 1053function of(e, i) { 1054 if (e & 1 && v(0, "st-my-bets-status", 6), e & 2) { 1055 let t = c(); 1056 b("title", t.sitecore.betStation.myBets.PAIDOUT)("state", t.paidOutStatus); 1057 } 1058} 1059function af(e, i) { 1060 if (e & 1 && (l(0, "div", 9), d(1), $(2, "stMyBetsDateFormatter"), u()), e & 2) { 1061 let t = c(); 1062 o(), g(Xt(2, 1, t.myBet.betPlacedOn)); 1063 } 1064} 1065function cf(e, i) { 1066 if (e & 1 && (l(0, "span"), d(1), u()), e & 2) { 1067 let t = c(); 1068 o(), g(t.rePricedOdds); 1069 } 1070} 1071function lf(e, i) { 1072 if (e & 1 && (l(0, "span", 14), d(1), $(2, "msCurrency"), u()), e & 2) { 1073 let t = c(2); 1074 o(), q(" ", t.currencySymbol, "", nt(2, 2, t.myBet.returnsInMajorCurrency, !1, 2), " "); 1075 } 1076} 1077function uf(e, i) { 1078 e & 1 && (l(0, "span"), d(1, "-"), u()); 1079} 1080function df(e, i) { 1081 e & 1 && p(0, lf, 3, 6, "span", 14)(1, uf, 2, 0, "span"), e & 2 && m(c().myBet.returnsInMajorCurrency ? 0 : 1); 1082} 1083function hf(e, i) { 1084 if (e & 1 && (l(0, "span", 14), d(1), u()), e & 2) { 1085 let t = c(); 1086 o(), E(" ", t.sitecore.betslip.messages.NA, " "); 1087 } 1088} 1089function mf(e, i) { 1090 if (e & 1 && (l(0, "span"), d(1), $(2, "msCurrency"), u()), e & 2) { 1091 let t = c(); 1092 o(), q(" ", t.currencySymbol, "", nt(2, 2, t.myBet.boostedReturnsInMajorCurrency, !1, 2)); 1093 } 1094} 1095function pf(e, i) { 1096 if (e & 1 && (l(0, "div", 15), v(1, "span", 26), l(2, "span"), d(3), u()()), e & 2) { 1097 let t = c(); 1098 o(3), g(t.repricingMessage); 1099 } 1100} 1101function yf(e, i) { 1102 if (e & 1 && (l(0, "span", 16), d(1), u()), e & 2) { 1103 let t = c(); 1104 o(), g(t.myBet.accaBoostErrorMessage); 1105 } 1106} 1107function ff(e, i) { 1108 if (e & 1 && (l(0, "st-offer-badge", 18)(1, "span"), d(2), u()()), e & 2) { 1109 let t = c(); 1110 b("model", t.getBadgeData()), o(2), g(t.totalVoucherAmount); 1111 } 1112} 1113function gf(e, i) { 1114 if (e & 1 && (l(0, "span", 19), d(1), u()), e & 2) { 1115 let t = c(); 1116 o(), g(t.promoInfoMessage); 1117 } 1118} 1119function Sf(e, i) { 1120 if (e & 1 && v(0, "st-my-bets-selection", 23), e & 2) { 1121 let t = i.$implicit, s = c();
1122 b("betSelection", t)("myBet", s.myBet); 1123 } 1124} 1125function bf(e, i) { 1126 if (e & 1 && (l(0, "span"), d(1), u()), e & 2) { 1127 let t = c(3); 1128 o(), E("\xA0(", t.myBet.betStationVouchers.vouchers.length, ")"); 1129 } 1130} 1131function _f(e, i) { 1132 if (e & 1 && v(0, "st-my-bets-promotion-container", 30), e & 2) { 1133 let t = i.$implicit, s = i.$index, r = c(3); 1134 b("statusCode", r.myBet.betStationVouchers.statusCode)("statusDescription", r.myBet.betStationVouchers.statusDescription)("voucher", t)("collapsed", s !== 0); 1135 } 1136} 1137function vf(e, i) { 1138 if (e & 1 && (l(0, "div", 27)(1, "div", 29)(2, "span"), d(3), u(), p(4, bf, 2, 1, "span"), u(), Dt(5, _f, 1, 4, "st-my-bets-promotion-container", 30, Be), u()), e & 2) { 1139 let t = c(2); 1140 o(3), g(t.sitecore.betStation.edsTriggers.myBets.Promotion), o(), m(t.myBet.betStationVouchers?.statusCode === "Success" ? 4 : -1), o(), At(t.myBet.betStationVouchers.vouchers); 1141 } 1142} 1143function Bf(e, i) { 1144 if (e & 1) { 1145 let t = z(); 1146 l(0, "div", 28)(1, "st-my-bets-payout", 31), K("paidOut", function(s) { 1147 return R(t), M(c(2).updateStatus(s)); 1148 }), u()(); 1149 } 1150 if (e & 2) { 1151 let t = c(2); 1152 o(), b("myBet", t.myBetPayout)("showCashoutConfirmed", t.isCashedOut); 1153 } 1154} 1155function kf(e, i) { 1156 if (e & 1 && (l(0, "ng-scrollbar", 24), p(1, vf, 7, 2, "div", 27), p(2, Bf, 2, 2, "div", 28), u()), e & 2) { 1157 let t = c(); 1158 o(), m(t.showPromoRightColumn ? 1 : -1), o(), m(t.showPayout ? 2 : -1); 1159 } 1160} 1161function Cf(e, i) { 1162 if (e & 1 && v(0, "st-my-bets-earlypayout-container", 25), e & 2) { 1163 let t = c(); 1164 b("betslip", t.myBet)("earlyPayoutSubscription", t.earlyPayoutService); 1165 } 1166} 1167var Ke, Je, Lt, Xe, yn, fn, Wt, ue, X, gn, tt, ft, qt, Z, de, k, gt, jt, Ze, xt, Qe, he, Sn, ti, bn, _n, ei, vn, Bn, me, kn, Cn, Tn, ii, si; 1168function ni() { 1169 return (ni = Gt((() => { 1170 fe(), Vt(), Ai(), Ce(), Di(), Ri(), Fi(), Ki(), os(), zi(), Ua(), is(), ts(), Zt(), Qi(), cs(), es(), Ee(), Ae(), ie(), hs(), ms(), _s(), xs(), Rs(), gs(), vs(), Ss(), bs(), Os(), Ns(), we(), Ue(), Qs(), hn(), rn(), Us(), sn(), Ms(), Hs(), qs(), zs(), en(), Ks(), Ke = (() => { 1171 let e = class { 1172 constructor() { 1173 this.repository = n(cp), this.urlConfig = n(so), this.filterConstraint = n(Js), this.myBetsBetstationConfig = n(ji), this.pageSize = 12, this.routeTags = /* @__PURE__ */ new Map(), this.isAnonymousUser = !1; 1174 let t = n(pt); 1175 this.routeTags.set(this.urlConfig.translations.open, "Open"), this.routeTags.set(this.urlConfig.translations.settled, "Settled"), t.onUserLogout$.pipe(rt()).subscribe(() => this.isAnonymousUser = !0); 1176 } 1177 resolve(t) { 1178 return x(this, null, function* () { 1179 if (this.isAnonymousUser) return this.repositoryResult; 1180 let s = this.routeTags.get(t.url[0].path); 1181 this.filterConstraint.removeConstraint(Xs); 1182 let r = 76896e5, a = /* @__PURE__ */ new Date(), y = /* @__PURE__ */ new Date(a.valueOf() - r); 1183 return this.filterConstraint.addConstraint(new Xs("", y, a)), yield Rt(this.myBetsBetstationConfig.whenReady), this.repositoryResult = yield this.repository.getBetSlips({ 1184 pageSize: this.myBetsBetstationConfig.myBetsPageSize, 1185 filterConstraint: this.filterConstraint, 1186 listType: s 1187 }), this.repositoryResult; 1188 }); 1189 } 1190 }; 1191 return e.ɵfac = function(i) { 1192 return new (i || e)(); 1193 }, e.ɵprov = S({ 1194 token: e, 1195 factory: e.ɵfac 1196 }), e; 1197 })(), Je = (() => { 1198 let e = class { 1199 constructor() { 1200 this.redirectHelperService = n(Re), this.userService = n(pt); 1201 } 1202 canActivate() { 1203 return this.userService.isAnonymous ? (this.redirectHelperService.goHome(), it(!1)) : it(!0); 1204 } 1205 }; 1206 return e.ɵfac = function(i) { 1207 return new (i || e)(); 1208 }, e.ɵprov = S({ 1209 token: e, 1210 factory: e.ɵfac 1211 }), e; 1212 })(), Lt = (() => { 1213 let e = class { 1214 constructor() { 1215 this.intlService = n(Li); 1216 } 1217 transform(t) { 1218 return t ? `${this.intlService.formatDate(t, "shortDate")} ${this.intlService.formatDate(t, "shortTime")}` : ""; 1219 } 1220 }; 1221 return e.ɵfac = function(i) { 1222 return new (i || e)(); 1223 }, e.ɵpipe = gi({ 1224 name: "stMyBetsDateFormatter", 1225 type: e, 1226 pure: !0 1227 }), e; 1228 })(), Xe = (() => { 1229 let e = class { 1230 transform(t) { 1231 return t ? `${Ut(t.currency, "narrow")}${t.value.toFixed(2)}` : "-"; 1232 } 1233 }; 1234 return e.ɵfac = function(i) { 1235 return new (i || e)(); 1236 }, e.ɵpipe = gi({ 1237 name: "stMyBetsMoneyPipe", 1238 type: e, 1239 pure: !0 1240 }), e; 1241 })(), yn = class extends Km {
1242 constructor(e, i, t, s, r, a, y, f) { 1243 super(e, i, t, s, r, a, y, f); 1244 } 1245 isPotentialEarlyPayoutable(e) { 1246 return e instanceof gh ? !e.isCachedOut && e.state === "Open" && (e.betType === "Single" || e.betType === "Combo" || e.betType === "System" && e.systemType === "SystemSingles") : e.isPotentialEP; 1247 } 1248 prepareEarlyPayouts(e, i) { 1249 return x(this, null, function* () { 1250 this.mapEarlyPayouts(e, i, this.callbackFunction); 1251 }); 1252 } 1253 getEarlyPayoutAmount(e) { 1254 return x(this, null, function* () { 1255 this.cancelToken = this.refreshCancelationToken(); 1256 let i = e.isPotentialEP ? [e] : [], t = e.isPotentialEP ? [e.betslipRealId] : []; 1257 if (t.length) try { 1258 let s = yield this.earlyPayoutService.checkEarlyPayoutAndSubscribe(t, this.cancelToken); 1259 if (s.earlyPayouts) return this.mapEarlyPayoutsData(s.earlyPayouts, i), { 1260 earlyPayoutPossibility: s.earlyPayouts[0], 1261 betslip: e 1262 }; 1263 } catch (s) { 1264 if (typeof s == "object" && s && "status" in s && s.status === -1) return { betslip: e }; 1265 this.logger.error(s, "Failed to load betstation early payout values."); 1266 } 1267 return { betslip: e }; 1268 }); 1269 } 1270 subscribeEarlyPayoutAmount(e, i) { 1271 let t = i.isPotentialEP ? [i] : []; 1272 t.length && this.subscribeEarlyPayouts([e], t, this.callbackFunction); 1273 } 1274 mapEarlyPayoutsData(e, i) { 1275 this.epHelpers.mapPermanentlyDisabledEarlyPayouts(e, i), this.epHelpers.mapDisabledEarlyPayouts(i), this.epHelpers.mapHiddenEarlyPayouts(i), this.mapMatchedEpBetslips(i, e, !0), this.mapMatchedEpBetslips(i, e, !1), this.adjustPayoutStatus(i); 1276 } 1277 subscribeEarlyPayouts(e, i, t) { 1278 this.epHelpers.mapPermanentlyDisabledEarlyPayouts(e, i), this.epHelpers.mapDisabledEarlyPayouts(i), this.epHelpers.mapHiddenEarlyPayouts(i); 1279 let s = this.mapMatchedEpBetslips(i, e, !0), r = this.mapMatchedEpBetslips(i, e, !1); 1280 this.epSubService.subscribeEarlyPayoutChanges(i, s.concat(r), !0, t), this.adjustPayoutStatus(i); 1281 } 1282 }, fn = class { 1283 constructor(e, i, t, s, r, a, y, f) { 1284 this.epHelpers = e, this.loggerFactory = i, this.earlyPayoutService = t, this.earlyPayoutSubscriptionService = s, this.earlyPayoutSubmitService = r, this.epsLogger = a, this.earlyPayoutSubscriptionMapperService = y, this.syncUserSettingsService = f; 1285 } 1286 create() { 1287 return new yn(this.earlyPayoutService, this.earlyPayoutSubscriptionService, this.epHelpers, this.loggerFactory, this.earlyPayoutSubmitService, this.epsLogger, this.earlyPayoutSubscriptionMapperService, this.syncUserSettingsService); 1288 } 1289 }, Wt = (() => { 1290 let e = class extends fn { 1291 constructor() { 1292 let t = n(Jm), s = n(wt), r = n(tp), a = n(Xm), y = n(Ws), f = n(Zm), _ = n(Qm), T = n(Gd); 1293 super(t, s, r, a, y, f, _, T); 1294 } 1295 }; 1296 return e.ɵfac = function(i) { 1297 return new (i || e)(); 1298 }, e.ɵprov = S({ 1299 token: e, 1300 factory: e.ɵfac, 1301 providedIn: "root" 1302 }), e; 1303 })(), ue = (() => { 1304 let e = class { 1305 constructor() { 1306 this.nativeAppService = n(Te), this.userService = n(pt); 1307 let t = n(wt); 1308 this.logger = t.getLogger("BetStationMyBetsPrintFreeBetReceipt"); 1309 } 1310 printFreeBetVoucherReceipt(t) { 1311 try { 1312 this.nativeAppService.sendToNative({ 1313 eventName: "PrintFreeBetVoucherReceipt", 1314 parameters: t 1315 }), this.logger.warning(`Sent a PrintFreeBetVoucherReceipt message to native for user ${this.userService.username}. Freebet Receipt: ${JSON.stringify(t)}`); 1316 } catch (s) { 1317 this.logger.error(s, `Failed sending message to native for freebet receipt ${t.freeBetId} - ${this.userService.username}`); 1318 } 1319 } 1320 }; 1321 return e.ɵfac = function(i) { 1322 return new (i || e)(); 1323 }, e.ɵprov = S({ 1324 token: e, 1325 factory: e.ɵfac 1326 }), e; 1327 })(), X = (function(e) { 1328 return e.Open = "Open", e.Won = "Won", e.Lost = "Lost", e.Canceled = "Canceled", e.Placed = "Placed", e; 1329 })(X || {}), gn = class extends Sh { 1330 get isOddsBoosted() { 1331 return this.showBestOddsInfo || this.showAccaBoostInfo; 1332 } 1333 constructor(e) { 1334 super(), Object.assign(this, e); 1335 } 1336 }, tt = (function(e) { 1337 return e.Available = "Available", e.Processing = "Processing", e.Hidden = "Hidden", e.NotAvailable = "NotAvailable", e.Paid = "Paid", e.Failed = "Failed", e; 1338 })(tt || {}), ft = (function(e) { 1339 return e.AmlDecisionStatusError = "AmlDecisionStatusError", e.DifferentCurrency = "DifferentCurrency", e.NoBetData = "NoBetData", e; 1340 })(ft || {}), qt = (function(e) { 1341 return e.Dialog = "Dialog", e.BlockedRejectedDialog = "BlockedRejectedDialog", e.DifferentCurrency = "DifferentCurrency", e; 1342 })(qt || {}), Z = (function(e) { 1343 return e.Allowed = "Allowed", e.Locked = "Locked", e.Confirm = "Confirm", e.Processing = "Processing", e.PaidOut = "PaidOut", e; 1344 })(Z || {}), de = (function(e) { 1345 return e.OrcDepositLimitExceed01 = "ORC_DEPOSIT_LIMIT_EXCEED_01", e; 1346 })(de || {}), k = { 1347 SCAN_BET_TICKET: "scan bet ticket", 1348 BET_STATUS: "bet status", 1349 SCANNING_FAILED_SCREEN: "scanning failed screen", 1350 ADD_TO_BALANCE_AVAILABLE: "add to balance available", 1351 ADD_TO_BALANCE_NOT_AVAILABLE: "add to balance not available", 1352 BET_STATUS_SCREEN: "bet status screen", 1353 FREE_BET: "free bet", 1354 FREE_BET_COUPON: "free bet cupon", 1355 MY_BETS_PAGE: "my bets page", 1356 MY_BETS: "my bets", 1357 MY_ACCOUNT: "my account", 1358 EARLY_PAYOUT: "early payout" 1359 }, gt = (() => { 1360 let e = class { 1361 constructor() { 1362 this.trackingService = n(Zi); 1363 } 1364 trackLoading(t) { 1365 let s = St(Q({}, this.getBaseTrackingData(t)), { 1366 [h.COMPONENT_ACTION_EVENT]: "load",
1367 [h.COMPONENT_EVENT_DETAILS]: "scanned bet load screen" 1368 }); 1369 this.trackingService.track(h.EVENT_BET_STATUS, s); 1370 } 1371 trackLoadError(t, s) { 1372 let r = s === ft.AmlDecisionStatusError ? "locked bet" : s === ft.DifferentCurrency ? "different currency" : "scanning failed", a = St(Q({}, this.getBaseTrackingData(t)), { 1373 [h.COMPONENT_ACTION_EVENT]: "error", 1374 [h.COMPONENT_LOCATION_EVENT]: k.SCANNING_FAILED_SCREEN, 1375 [h.COMPONENT_EVENT_DETAILS]: r 1376 }); 1377 this.trackingService.track(h.EVENT_BET_STATUS, a); 1378 } 1379 trackLoadErrorOK(t) { 1380 let s = St(Q({}, this.getBaseTrackingData(t)), { 1381 [h.COMPONENT_ACTION_EVENT]: "click", 1382 [h.COMPONENT_LOCATION_EVENT]: k.SCANNING_FAILED_SCREEN, 1383 [h.COMPONENT_EVENT_DETAILS]: "ok" 1384 }); 1385 this.trackingService.track(h.EVENT_BET_STATUS, s); 1386 } 1387 trackBetsViewLoad(t, s) { 1388 let r = St(Q({}, this.getBaseTrackingData(t)), { 1389 [h.COMPONENT_ACTION_EVENT]: "load", 1390 [h.COMPONENT_POSITION_EVENT]: s ? k.ADD_TO_BALANCE_AVAILABLE : k.ADD_TO_BALANCE_NOT_AVAILABLE, 1391 [h.COMPONENT_EVENT_DETAILS]: k.BET_STATUS_SCREEN 1392 }); 1393 this.trackingService.track(h.EVENT_BET_STATUS, r); 1394 } 1395 trackBetsViewClose(t) { 1396 let s = St(Q({}, this.getBaseTrackingData(t)), { 1397 [h.COMPONENT_ACTION_EVENT]: "exit", 1398 [h.COMPONENT_EVENT_DETAILS]: k.BET_STATUS_SCREEN 1399 }); 1400 this.trackingService.track(h.EVENT_BET_STATUS, s); 1401 } 1402 trackAddToBalanceClick(t) { 1403 let s = St(Q({}, this.getBaseTrackingData(t)), { 1404 [h.COMPONENT_ACTION_EVENT]: "click", 1405 [h.COMPONENT_EVENT_DETAILS]: "add to balance" 1406 }); 1407 this.trackingService.track(h.EVENT_BET_STATUS, s); 1408 } 1409 trackPayoutSuccess(t, s) { 1410 this.trackingService.track(h.EVENT_CART_ADD_BALANCE, { 1411 transactionId: t.requestReferenceId, 1412 transactionTotal: s.returnsInMajorCurrency?.toNumber() ?? 0, 1413 transactionProducts: s.betDetails.map((r) => ({ 1414 category: s.trackingCategory, 1415 transactionAffiliate: r.isLive ? fs.livebook : fs.mainbook, 1416 quantity: 1, 1417 odds: r.odds, 1418 sportEventID: r.eventId, 1419 betStatus: r.selectionState 1420 })), 1421 ticketID: s.receiptNumber, 1422 numberOfBets: s.noOfSelections, 1423 currencyCode: s.currencyCode, 1424 [h.COMPONENT_SLIP_ID]: s.receiptNumber, 1425 numberOfCombinations: s.noOfCombinations, 1426 betTicketStatus: s.status 1427 }); 1428 } 1429 trackPayoutError(t, s) { 1430 let r = St(Q({}, this.getBaseTrackingData(t)), { 1431 [h.COMPONENT_ACTION_EVENT]: "payout error", 1432 [h.COMPONENT_EVENT_DETAILS]: s 1433 }); 1434 this.trackingService.track(h.EVENT_BET_STATUS, r); 1435 } 1436 trackPrintFreeBetClick() { 1437 let t = { 1438 [h.COMPONENT_CATEGORY_EVENT]: k.FREE_BET, 1439 [h.COMPONENT_LABEL_EVENT]: k.FREE_BET_COUPON, 1440 [h.COMPONENT_ACTION_EVENT]: "click", 1441 [h.COMPONENT_POSITION_EVENT]: "promotion", 1442 [h.COMPONENT_LOCATION_EVENT]: k.MY_BETS_PAGE, 1443 [h.COMPONENT_EVENT_DETAILS]: "print free bet", 1444 [h.COMPONENT_URL_CLICKED]: Pt 1445 }; 1446 this.trackingService.track(h.EVENT_TRACKING, t); 1447 } 1448 trackUseFreeBetClick() { 1449 let t = { 1450 [h.COMPONENT_CATEGORY_EVENT]: k.FREE_BET, 1451 [h.COMPONENT_LABEL_EVENT]: k.FREE_BET_COUPON, 1452 [h.COMPONENT_ACTION_EVENT]: "click", 1453 [h.COMPONENT_POSITION_EVENT]: "promotion", 1454 [h.COMPONENT_LOCATION_EVENT]: k.MY_BETS_PAGE, 1455 [h.COMPONENT_EVENT_DETAILS]: "use free bet", 1456 [h.COMPONENT_URL_CLICKED]: Pt 1457 }; 1458 this.trackingService.track(h.EVENT_TRACKING, t); 1459 } 1460 trackMyBets() { 1461 this.trackingService.track(h.EVENT_PAGE_VIEW, { [h.PAGE_NAME]: "my bets" }); 1462 } 1463 trackOpenSettledBets(t) { 1464 this.trackingService.track(h.EVENT_TRACKING, { 1465 [h.COMPONENT_CATEGORY_EVENT]: k.MY_ACCOUNT, 1466 [h.COMPONENT_LABEL_EVENT]: k.MY_BETS, 1467 [h.COMPONENT_ACTION_EVENT]: "click", 1468 [h.COMPONENT_POSITION_EVENT]: "not applicable", 1469 [h.COMPONENT_LOCATION_EVENT]: k.MY_BETS_PAGE, 1470 [h.COMPONENT_EVENT_DETAILS]: t.toLowerCase() 1471 }); 1472 } 1473 trackMyBetsFilter(t) { 1474 this.trackingService.track(h.EVENT_TRACKING, { 1475 [h.COMPONENT_CATEGORY_EVENT]: k.MY_ACCOUNT, 1476 [h.COMPONENT_LABEL_EVENT]: k.MY_BETS, 1477 [h.COMPONENT_ACTION_EVENT]: "click", 1478 [h.COMPONENT_POSITION_EVENT]: "filter", 1479 [h.COMPONENT_LOCATION_EVENT]: k.MY_BETS_PAGE,
1480 [h.COMPONENT_EVENT_DETAILS]: t 1481 }); 1482 } 1483 trackDetailsButton(t) { 1484 this.trackingService.track(h.EVENT_TRACKING, { 1485 [h.COMPONENT_CATEGORY_EVENT]: k.MY_ACCOUNT, 1486 [h.COMPONENT_LABEL_EVENT]: k.MY_BETS, 1487 [h.COMPONENT_ACTION_EVENT]: "click", 1488 [h.COMPONENT_POSITION_EVENT]: t, 1489 [h.COMPONENT_LOCATION_EVENT]: k.MY_BETS_PAGE, 1490 [h.COMPONENT_EVENT_DETAILS]: "details" 1491 }); 1492 } 1493 getBaseTrackingData(t) { 1494 return { 1495 [h.COMPONENT_CATEGORY_EVENT]: k.SCAN_BET_TICKET, 1496 [h.COMPONENT_LABEL_EVENT]: k.BET_STATUS, 1497 [h.COMPONENT_ACTION_EVENT]: Pt, 1498 [h.COMPONENT_POSITION_EVENT]: Pt, 1499 [h.COMPONENT_LOCATION_EVENT]: Pt, 1500 [h.COMPONENT_EVENT_DETAILS]: Pt, 1501 [h.COMPONENT_URL_CLICKED]: Pt, 1502 [h.BET_TICKET_ID]: t 1503 }; 1504 } 1505 }; 1506 return e.ɵfac = function(i) { 1507 return new (i || e)(); 1508 }, e.ɵprov = S({ 1509 token: e, 1510 factory: e.ɵfac, 1511 providedIn: "root" 1512 }), e; 1513 })(), jt = (() => { 1514 let e = class extends ce { 1515 getInitMessage() { 1516 let t = this.retailTracingFactory.createTracingInitMessage(dt.CashOutInit, un.Cashout); 1517 return this.setRequestReferenceId(t.reqRefId), t; 1518 } 1519 getCompleteMessage() { 1520 let t = this.getAndResetRequestReferenceId(); 1521 return t ? this.retailTracingFactory.createTracingCompleteMessage(dt.CashOutComplete, t) : null; 1522 } 1523 getFailMessage(t) { 1524 let s = this.getAndResetRequestReferenceId(); 1525 return s ? this.retailTracingFactory.createTracingFailMessage(dt.CashOutError, s, t) : null; 1526 } 1527 }; 1528 return e.ɵfac = (() => { 1529 let i; 1530 return function(t) { 1531 return (i || (i = ht(e)))(t || e); 1532 }; 1533 })(), e.ɵprov = S({ 1534 token: e, 1535 factory: e.ɵfac, 1536 providedIn: "root" 1537 }), e; 1538 })(), Ze = (() => { 1539 let e = class extends ce { 1540 getInitMessage() { 1541 throw new Error("RetailTracingScanBetService.getInitMessage should not be called!"); 1542 } 1543 getCompleteMessage() { 1544 let t = this.getAndResetRequestReferenceId(); 1545 return t ? this.retailTracingFactory.createTracingCompleteMessage(dt.ScanBetComplete, t) : null; 1546 } 1547 getFailMessage(t) { 1548 let s = this.getAndResetRequestReferenceId(); 1549 return s ? this.retailTracingFactory.createTracingFailMessage(dt.ScanBetError, s, t) : null; 1550 } 1551 setScanRequestReferenceId(t) { 1552 this.setRequestReferenceId(t); 1553 } 1554 }; 1555 return e.ɵfac = (() => { 1556 let i; 1557 return function(t) { 1558 return (i || (i = ht(e)))(t || e); 1559 }; 1560 })(), e.ɵprov = S({ 1561 token: e, 1562 factory: e.ɵfac, 1563 providedIn: "root" 1564 }), e; 1565 })(), xt = (() => { 1566 let e = class { 1567 constructor() { 1568 this.sitecore = n(A), this.apiService = n(Uo), this.bettingOfferApi = n(Mo), this.betStationInfoService = n(an), this.trackingService = n(gt), this.betstationOddsMapper = n(xp), this.accaBoostRatioFormatter = n(nm), this.systemBetsService = n(rp), this.epConfig = n(ro), this.sportsUserConfig = n(lo), this.myBetsOddsPipe = n(op), this.tokensConfig = n(uo), this.fixtureFactory = n(zc), this.eachWayMarketHelper = n(Kc), this.isBetScan = !1; 1569 let t = n(wt), s = n(Wt); 1570 this.myBetsEarlyPayoutService = s.create(), this.logger = t.getLogger("MyBetsDataService"); 1571 } 1572 getData(t) { 1573 return this.apiService.get("mybets/retailBetslip", { 1574 betslipId: t, 1575 shopId: this.betStationInfoService.shopId, 1576 terminalId: this.betStationInfoService.terminalId, 1577 isBetScan: this.isBetScan 1578 }).pipe(be((s) => (this.logger.error(s, `Searching for Retail Betslip with ID: ${t} failed`), it(void 0))), Jt((s) => s?.betslips.length ? this.mapBet(s.betslips[0], s.vouchersResponse, s.promotionSubTypes) : it(void 0))); 1579 } 1580 payoutBet(t) { 1581 return this.apiService.get("mybets/retailPayout", Q({}, t)).pipe(be((s) => { 1582 let r = `Payout for Retail Betslip with ID: ${t.betslipId} failed`; 1583 return this.trackingService.trackPayoutError(t.betslipId, s.exceptionMessage ?? r), this.logger.error(s, r), it(void 0); 1584 })); 1585 } 1586 getSystemTypeName(t, s, r) { 1587 if (!t || !s) return ""; 1588 switch (t) { 1589 case "System2Of3": 1590 case "System2Of4": 1591 case "System2Of5": 1592 case "System2Of6": 1593 case "System2Of7": 1594 case "System2Of8": return this.systemBetsService.getSystemBasicName(2, s); 1595 case "System3Of4": 1596 case "System3Of5": 1597 case "System3Of6": 1598 case "System3Of7": 1599 case "System3Of8": return this.systemBetsService.getSystemBasicName(3, s); 1600 case "System4Of5": 1601 case "System4Of6": 1602 case "System4Of7": 1603 case "System4Of8": return this.systemBetsService.getSystemBasicName(4, s); 1604 case "System5Of6": 1605 case "System5Of7": 1606 case "System5Of8": return this.systemBetsService.getSystemBasicName(5, s); 1607 case "System6Of7": 1608 case "System6Of8": return this.systemBetsService.getSystemBasicName(6, s); 1609 case "System7Of8": return this.systemBetsService.getSystemBasicName(7, s); 1610 case "SystemMOfN": return this.systemBetsService.getSystemBasicName(r || 1, s); 1611 case "SystemCanadian": return this.systemBetsService.getSystemFullName(at.Canadian); 1612 case "SystemGoliath": return this.systemBetsService.getSystemFullName(at.Goliath); 1613 case "SystemHeinz": return this.systemBetsService.getSystemFullName(at.Heinz); 1614 case "SystemLucky15": return this.systemBetsService.getSystemFullName(at.Lucky15); 1615 case "SystemLucky31": return this.systemBetsService.getSystemFullName(at.Lucky31); 1616 case "SystemLucky63": return this.systemBetsService.getSystemFullName(at.Lucky63); 1617 case "SystemPatent": return this.systemBetsService.getSystemFullName(at.Patent); 1618 case "SystemSuperHeinz": return this.systemBetsService.getSystemFullName(at.SuperHeinz); 1619 case "SystemTrixie": return this.systemBetsService.getSystemFullName(at.Trixie); 1620 case "SystemYankee": return this.systemBetsService.getSystemFullName(at.Yankee); 1621 default: return ""; 1622 } 1623 } 1624 mapBet(t, s, r) { 1625 return this.getDetails(t.betSlip).pipe(be((a) => (this.logger.error(a, `Searching for Batch event details in Retail Betslip with ID: ${t.betSlip.betSlipNumber}
1625 failed`), it(void 0))), Se((a) => this.mapBetWithDetails(t, a, s, r)), Jt((a) => a ? this.isEarlyPayoutAvailable(a).pipe(Jt((y) => y ? Pi(this.myBetsEarlyPayoutService.getEarlyPayoutAmount(a)) : it({ betslip: a }))) : it(void 0))); 1626 } 1627 mapBetWithDetails(t, s, r, a) { 1628 let y = this.getUsedReward(t.betSlip), f = [], _ = t.betSlip.bets.find((D) => D.deadHeatDivisor && D.deadHeatDivisor !== 1)?.deadHeatDivisor, T = t.betSlip.conclusionDateUtc ? new Date(t.betSlip.conclusionDateUtc) : void 0; 1629 if (t.betSlip.betGroups.length) { 1630 let D = new Set(t.betSlip.betGroups.flatMap((ye) => ye.bets)), pe = t.betSlip.bets.filter((ye) => !D?.has(ye.index)), tr = this.mapOGPBetDetails(t.betSlip.betGroups, t.betSlip.bets, s), er = this.mapBetDetails(pe, s, !!_); 1631 f = [...tr, ...er]; 1632 } else f = this.mapBetDetails(t.betSlip.bets, s, !!_); 1633 f.forEach((D, pe) => this.setPromotionSubType(D, pe, t.betSlip, r)); 1634 let { totalStakeInMajorCurrency: O, returnsInMajorCurrency: P, boostedReturnsInMajorCurrency: et } = this.calculateStakeAndReturns(t.betSlip, y), Ct = et.greaterThan(0) ? et.toNumber() : null, pi = t.betSlip.ogpRepricingInfo?.totalOdds, Qn = t.betSlip.betGroups.some((D) => D.ogpBetGroupDetails?.repricingInfo?.deadHeatMultiplier != null); 1635 return new gn({ 1636 events: this.createEventModels(s), 1637 betTypeTitle: this.getBetTypeTitle(t.betSlip), 1638 selectionsTitle: this.getSelectionsTitle(t.betSlip), 1639 returnsTitle: this.getReturnsTitle(t.betSlip, _, y), 1640 receiptNumber: t.betSlip.betSlipNumber, 1641 betType: t.betSlip.slipType, 1642 status: this.getBetUIStatus(t.betSlip.state, t.betSlip.isEarlyPayout), 1643 statusTitle: this.getBetStatusTitle(t.betSlip.state, t.betSlip.isEarlyPayout), 1644 betPlacedOn: T, 1645 noOfSelections: t.betSlip.bets.length, 1646 noOfCombinations: t.betSlip.systemType && t.betSlip.systemBetDetails?.slipCount || 1, 1647 currencyCode: this.getMajorCurrency(t.betSlip), 1648 totalOdds: t.betSlip.totalOdds ? this.betstationOddsMapper.mapTotalOdds(t.betSlip.totalOdds) : "-", 1649 rePricedOdds: pi != null ? this.betstationOddsMapper.mapTotalOdds(pi) : void 0, 1650 hasDeadHeat: Qn, 1651 totalStake: new ot(t.betSlip.stake.value), 1652 totalStakeInMajorCurrency: O, 1653 returns: t.betSlip.state === "Open" ? new ot(t.betSlip.maxPayout?.value || 0) : new ot(t.betSlip.payout?.value || 0), 1654 returnsInMajorCurrency: P, 1655 usedRewardToken: y, 1656 boostedReturnsInMajorCurrency: et, 1657 boostedWinnings: Ct, 1658 showAccaBoostInfo: !!y?.additionalInformation?.winningsBoost && t.betSlip.state !== "Lost", 1659 showBestOddsInfo: (y?.additionalInformation?.bestOddsBonus || 0) > 0, 1660 accaBoostErrorMessage: this.getAccaBoostErrorMessage(y), 1661 betDetails: f, 1662 accountType: t.retailBetSlipInfo?.accountType, 1663 winReturns: t.retailBetSlipInfo?.winReturns.value, 1664 voidReturns: t.retailBetSlipInfo?.voidReturns.value, 1665 brand: t.retailBetSlipInfo?.brand, 1666 retailReceiptNo: t.retailBetSlipInfo?.retailReceiptNo, 1667 amlDecisionStatus: t.retailBetSlipInfo?.amlResponse?.decisionStatusAml, 1668 isStartingPrice: t.betSlip.bets.some((D) => D.participantBetDetails?.isStartingPrice || D.optionBetDetails?.isStartingPrice), 1669 payoutStatus: t.retailBetSlipInfo?.payoutStatus, 1670 settledReturn: t.betSlip.payout.value, 1671 isFreeBet: t.betSlip.isFreeBet, 1672 freeBetInformation: t.betSlip.isFreeBet ? { 1673 possibleWinnings: { 1674 amount: t.betSlip.grossPossibleWinnings?.value, 1675 currencyCode: t.betSlip.grossPossibleWinnings?.currency 1676 }, 1677 winnings: { 1678 amount: t.betSlip.maxPayout?.value, 1679 currencyCode: t.betSlip.maxPayout?.currency 1680 } 1681 } : void 0, 1682 trackingCategory: this.getTrackingCategory(t.betSlip.slipType, t.betSlip.bets.some((D) => D.optionBetDetails?.isBetBuilder), t.betSlip.systemType), 1683 isPotentialEP: this.isPotentialEarlyPayoutable(t.betSlip) && f.every((D) => D.hasResultInfo || D.hasOptionMarketInfo && !D.hasEachWayOptionBet), 1684 betPlacedDate: T, 1685 betslipRealId: t.betSlip.betSlipNumber, 1686 state: this.mapBetslipState(t.betSlip.state), 1687 isCachedOut: t.betSlip.isEarlyPayout, 1688 stake: { 1689 currency: t.betSlip.stake.currency, 1690 value: t.betSlip.stake.value 1691 }, 1692 typeAsName: "", 1693 containsLiveBets: f.some((D) => D.isLive), 1694 bestOddsGuaranteedInformation: t.betSlip.bestOddsGuaranteedInformation, 1695 betStationVouchers: r || void 0, 1696 promotionSubTypes: a?.length ? a : void 0 1697 }); 1698 } 1699 createEventModels(t) { 1700 return Object.entries(t).reduce((s, r) => { 1701 let a = r[1].fixtures[0]; 1702 return !a || a.fixtureType === "DayOfRace" || (s[r[0]] = this.toEventModel(a)), s; 1703 }, {}); 1704 } 1705 toEventModel(t) { 1706 let s = this.fixtureFactory.create(t); 1707 return s.fixtureScoreboard = t.scoreboard, s; 1708 } 1709 calculateStakeAndReturns(t, s) { 1710 let r = new ot(t.stake.value), a = s?.additionalInformation?.fixedPriceWinnings || this.getReturnsInMajorCurrency(t), y = !!t.isFreeBet && s?.tokenType === _h.BestOddsToken && t.state === "Won", f = y ? new ot(a).minus(r) : new ot(a), _ = new ot(s?.additionalInformation?.boostedWinnings || 0), T = y ? _.minus(r) : _; 1711 return { 1712 returnsInMajorCurrency: f.greaterThan(0) ? f : null, 1713 boostedReturnsInMajorCurrency: T, 1714 totalStakeInMajorCurrency: r.greaterThan(0) ? r : null 1715 }; 1716 } 1717 getReturnsInMajorCurrency(t) { 1718 let s = this.getCalculatedPossibleWinnings(this.tokensConfig, t), r = this.getCalculatedPayoutAmount(this.tokensConfig, t); 1719 return t.state === "Open" ? s || 0 : r || 0; 1720 } 1721 getCalculatedPossibleWinnings(t, s) { 1722 return t.tokens?.useFreebetStakeInCalculations && s.isFreeBet ? s.grossPossibleWinnings?.value || 0 : s.maxPayout?.value || 0; 1723 } 1724 getCalculatedPayoutAmount(t, s) { 1725 return t.tokens?.useFreebetStakeInCalculations && s.isFreeBet ? s.maxPayout?.value || 0 : s.payout?.value || 0; 1726 } 1727 getMajorCurrency(t) { 1728 return t.isFreeBet && (t.grossPossibleWinnings?.currency || t.grossPayout?.currency) || t.payout.currency; 1729 } 1730 getBetUIStatus(t, s) { 1731 return s ? B.CashedOut : B[t]; 1732 } 1733 getUsedReward(t) { 1734 return Pr(t.promoTokens) ? null : bh.createFromResponse(t.promoTokens[0], t.state); 1735 } 1736 getReturnsTitle(t, s, r) { 1737 let a = t.state, y = t.bets[0].participantBetDetails?.rule4Deduction || t.bets[0].optionBetDetails?.rule4Deduction, f = r?.additionalInformation?.boostRatio; 1738 if (s) { 1739 let _ = (1 / s * 100).toFixed(0); 1740 return yt(this.sitecore.betStation.myBets.ReducedMaxReturns, { reduction: _ }); 1741 } 1742 return y ? yt(this.sitecore.betStation.myBets.ReducedMaxReturns, { reduction: (y * 100).toFixed(0) }) : f && this.hasAccaBoost(t) && t.state !== "Lost" ? this.accaBoostRatioFormatter.transform(f, !1, this.sitecore.betStation.myBets.AccaBoostReturns) : a === "Open" ? this.sitecore.betStation.myBets.MaxReturns : this.sitecore.betStation.myBets.Returns; 1743 } 1744 getBetStatusTitle(t, s) { 1745 if (s) return this.sitecore.betStation.myBets.CASHEDOUT; 1746 switch (t) { 1747 case "Open": return this.sitecore.betStation.myBets.OPEN; 1748 case "Won": return this.sitecore.betStation.myBets.WON; 1749 case "Lost": return this.sitecore.betStation.myBets.LOST; 1750 case "Canceled": return this.sitecore.betStation.myBets.CANCELLED; 1751 } 1752 } 1753 mapBetDetails(t, s, r) { 1754 return t.map((a) => { 1755 let y = a.optionBetDetails?.betBuilderData?.tv1BetBuilderInfo?.event?.id.toString(), f = this.getEventIdForOfferType(a), _; 1756 a.optionBetDetails ? _ = a.optionBetDetails?.picks?.sort((O, P) => (O.positionInBet ?? 0) > (P.positionInBet ?? 0) ? 1 : (O.positionInBet ?? 0) < (P.positionInBet ?? 0) ? -1 : 0).map((O) => O.optionName) : _ = a.participantBetDetails?.picks?.sort((O, P) => O.positionInBet > P.positionInBet ? 1 : O.positionInBet < P.positionInBet ? -1 : 0).map((O) => O.participantName); 1757 let T = { 1758 participantBetType: null, 1759 odds: this.myBetsOddsPipe.transform(a.odds), 1760 offerType: this.getOfferType(a), 1761 optionName: _?.join(", ") || a.option?.name, 1762 marketName: this.getMarketName(a), 1763 eventName: a.fixture.name, 1764 eventId: f, 1765 isLive: this.isLive(y || f, s), 1766 eventTime: a.fixture.date ? new Date(a.fixture.date) : void 0,
1767 selectionState: this.getSelectionStatus(a.state), 1768 selectionStateTitle: this.getSelectionStatusTitle(a.state), 1769 selectionStateSubTitle: this.getSelectionSubStatusTitle(r, !!a.participantBetDetails?.rule4Deduction || !!a.optionBetDetails?.rule4Deduction), 1770 outcome: a.state === "Won" || a.state === "Lost" ? a.outcome : void 0, 1771 cancellationReason: a.cancellationReason, 1772 isBetBuilder: !!a.optionBetDetails?.isBetBuilder, 1773 betbuilderData: this.mapBetBuilderData(!!a.optionBetDetails?.isBetBuilder, a.optionBetDetails?.betBuilderData), 1774 isStartingPrice: a.participantBetDetails ? !!a.participantBetDetails.isStartingPrice : !!a.optionBetDetails?.isStartingPrice, 1775 bestOddsState: a.participantBetDetails?.bestOddsGuaranteedState || a.optionBetDetails?.bestOddsGuaranteedState, 1776 isPriceBoosted: a.optionBetDetails?.isPriceBoost, 1777 priceBoostOriginalOdds: this.myBetsOddsPipe.transform(a.optionBetDetails?.priceBoostData?.originalOdds), 1778 hasResultInfo: !a.participantBetDetails && !a.optionBetDetails, 1779 hasOptionMarketInfo: !a.participantBetDetails && a.optionBetDetails && !a.optionBetDetails?.isBetBuilder, 1780 hasEachWayOptionBet: a.optionBetDetails?.betType === "EachWay", 1781 fixtureType: a.fixture.type 1782 }; 1783 return (a.participantBetDetails?.betTypeName === "Forecast" || a.participantBetDetails?.betTypeName === "Tricast") && (T.forecastTricastInfo = [{ 1784 title: this.sitecore.betStation.myBets.TricastFirst, 1785 optionName: a.participantBetDetails.picks[0].participantName 1786 }, { 1787 title: this.sitecore.betStation.myBets.TricastSecond, 1788 optionName: a.participantBetDetails.picks[1].participantName 1789 }], a.participantBetDetails.picks.length > 2 && T.forecastTricastInfo.push({ 1790 title: this.sitecore.betStation.myBets.TricastThird, 1791 optionName: a.participantBetDetails.picks[2].participantName 1792 })), (a.optionBetDetails?.betTypeName === "Forecast" || a.optionBetDetails?.betTypeName === "Tricast") && (T.forecastTricastInfo = [{ 1793 title: this.sitecore.betStation.myBets.TricastFirst, 1794 optionName: a.optionBetDetails.picks[0].optionName 1795 }, { 1796 title: this.sitecore.betStation.myBets.TricastSecond, 1797 optionName: a.optionBetDetails.picks[1].optionName 1798 }], a.optionBetDetails.picks.length > 2 && T.forecastTricastInfo.push({ 1799 title: this.sitecore.betStation.myBets.TricastThird, 1800 optionName: a.optionBetDetails.picks[2].optionName 1801 })), T; 1802 }); 1803 } 1804 mapOGPBetDetails(t, s, r) { 1805 return t.map((a) => { 1806 let y = s.filter((f) => a.bets.includes(f.index)); 1807 if (y.length) { 1808 let f = y[0], _ = a.ogpBetGroupDetails.repricingInfo?.odds; 1809 return { 1810 odds: this.myBetsOddsPipe.transform(a.odds), 1811 sgpRePricedOdds: _ != null ? this.myBetsOddsPipe.transform(_) : void 0, 1812 offerType: "OptionBet", 1813 eventName: f.fixture.name, 1814 eventId: f.fixture.compoundId, 1815 isLive: this.isLive(f?.fixture.compoundId, r), 1816 eventTime: f.fixture.date ? new Date(f.fixture.date) : void 0, 1817 selectionState: this.getSelectionStatus(a.betGroupState), 1818 selectionStateTitle: this.getSelectionStatusTitle(a.betGroupState), 1819 outcome: a.betGroupState === "Won" || a.betGroupState === "Lost" ? f.outcome : void 0, 1820 cancellationReason: f.cancellationReason, 1821 isBetBuilder: !0, 1822 marketName: y.map((T) => `${T.market.name} - ${T.option.name}`).join(";"), 1823 betbuilderData: this.mapOGPBetBuilderData(y), 1824 isPriceBoosted: f.optionBetDetails?.isPriceBoost, 1825 priceBoostOriginalOdds: this.myBetsOddsPipe.transform(f.optionBetDetails?.priceBoostData?.originalOdds), 1826 participantBetType: null, 1827 optionName: "", 1828 isStartingPrice: !1, 1829 hasResultInfo: !f.participantBetDetails && !f.optionBetDetails, 1830 hasOptionMarketInfo: !!f.optionBetDetails, 1831 hasEachWayOptionBet: f.optionBetDetails?.betType === "EachWay" 1832 }; 1833 } 1834 return null; 1835 }).filter((a) => a != null); 1836 } 1837 getOfferType(t) { 1838 return t.participantBetDetails ? "ParticipantBet" : t.optionBetDetails ? "OptionBet" : "ResultBet"; 1839 } 1840 getMarketName(t) { 1841 if (this.isEachWay(t)) { 1842 let s = t.optionBetDetails ?? t.participantBetDetails; 1843 if (s?.placeTerm) return s.betTypeName + " " + this.eachWayMarketHelper.calculateEachWayTerms(s.placeTerm); 1844 } 1845 return t.participantBetDetails?.betTypeName === "Forecast" || t.participantBetDetails?.betTypeName === "Tricast" || t.optionBetDetails?.betTypeName === "Forecast" || t.optionBetDetails?.betTypeName === "Tricast" ? t.participantBetDetails?.betTypeName || t.optionBetDetails?.betTypeName : t.market.name; 1846 } 1847 mapBetBuilderData(t, s) { 1848 if (!(!t || !s)) return { legs: s.legs.map((r) => ({ 1849 name: r.name, 1850 betState: B[r.betState], 1851 betStateTitle: this.getBetBuilderLegState(r.betState) 1852 })) }; 1853 } 1854 mapOGPBetBuilderData(t) { 1855 if (t) return { legs: t.map((s) => ({ 1856 name: `${s.market.name} - ${s.option.name}`, 1857 betState: this.getOGPSelectionStatus(s.state), 1858 betStateTitle: this.getBetBuilderLegState(s.state) 1859 })) }; 1860 } 1861 getBetBuilderLegState(t) { 1862 switch (t) { 1863 case B.Open: return this.sitecore.betStation.myBets.OPEN; 1864 case B.Won: return this.sitecore.betStation.myBets.WON; 1865 case B.Lost: return this.sitecore.betStation.myBets.LOST; 1866 case B.Canceled: return this.sitecore.betStation.myBets.CANCELLED; 1867 default: return ""; 1868 } 1869 } 1870 getSelectionStatus(t) { 1871 switch (t) { 1872 case "Open": return X.Open; 1873 case "Won": return X.Won; 1874 case "Placed": return X.Placed; 1875 case "Lost": return X.Lost; 1876 case "WithHeld": 1877 case "Canceled": return X.Canceled; 1878 } 1879 } 1880 getOGPSelectionStatus(t) { 1881 switch (t) { 1882 case "Open": return B.Open; 1883 case "Won": 1884 case "Placed": return B.Won; 1885 case "Lost": return B.Lost; 1886 case "WithHeld": 1887 case "Canceled": return B.Canceled; 1888 } 1889 } 1890 getSelectionStatusTitle(t) { 1891 switch (t) { 1892 case "Open": return this.sitecore.betStation.myBets.OPEN; 1893 case "Won": return this.sitecore.betStation.myBets.WON; 1894 case "Placed": return this.sitecore.betStation.myBets.PLACED; 1895 case "Lost": return this.sitecore.betStation.myBets.LOST; 1896 case "WithHeld": 1897 case "Canceled": return this.sitecore.betStation.myBets.CANCELLED; 1898 } 1899 } 1900 getSelectionSubStatusTitle(t, s) { 1901 return t ? this.sitecore.betStation.myBets.DeadHeat : s ? this.sitecore.betStation.myBets.R4 : ""; 1902 } 1903 getBetTypeTitle(t) { 1904 let s = t.systemType && t.systemBetDetails?.slipCount || 1; 1905 switch (t.slipType) { 1906 case "Single": return this.sitecore.betStation.myBets.SingleTitle; 1907 case "Combo": return this.getComboTitle(t); 1908 case "System": return t.systemType === "SystemSingles" ? yt(this.sitecore.betStation.myBets.MultiSingleTitle, { num_bets: s + t.bets.filter(this.isEachWay).length }) : yt(this.sitecore.betStation.myBets.SystemTitle, {
1909 system: this.getSystemTypeName(t.systemType, t.bets.length, t.systemBetDetails?.arity || 1), 1910 num_bets: t.bets.some(this.isEachWay) ? s * 2 : s 1911 }); 1912 } 1913 } 1914 getComboTitle(t) { 1915 let s = this.sitecore.betStation.myBets.AccumulatorTitle; 1916 return s = yt(s, { num_picks: t.bets.length }), this.hasAccaBoost(t) && (s = `${this.sitecore.betStation.myBets.AccaBoostTitle} - ${s}`), s; 1917 } 1918 hasAccaBoost(t) { 1919 return t.promoTokens && t.promoTokens[0]?.tokenType === "AccaBoost"; 1920 } 1921 getSelectionsTitle(t) { 1922 switch (t.slipType) { 1923 case "Single": return this.sitecore.betStation.myBets.SingleSelections; 1924 case "Combo": return yt(this.sitecore.betStation.myBets.AccumulatorSelections, { num_selections: t.bets.length }); 1925 case "System": return t.systemType === "SystemSingles" ? yt(this.sitecore.betStation.myBets.MultiSingleSelections, { num_selections: t.bets.length }) : yt(this.sitecore.betStation.myBets.SystemSelections, { 1926 system: this.getSystemTypeName(t.systemType, t.bets.length, t.systemBetDetails?.arity || 1), 1927 num_selections: t.bets.length 1928 }); 1929 } 1930 } 1931 getDetails(t) { 1932 let s = t.bets.filter((a) => a.outcome === "Open" || a.state === "Open").map((a) => this.getEventIdForOfferType(a)); 1933 if (!s.length) return it({}); 1934 let r = s.map((a) => ({ 1935 batchId: a, 1936 request: { 1937 fixtureTypes: "Standard,DayOfRace", 1938 state: "Latest", 1939 offerMapping: "None", 1940 fixtureIds: a, 1941 scoreboardMode: "Full" 1942 } 1943 })); 1944 return this.bettingOfferApi.getBatchFixtureList(r); 1945 } 1946 isLive(t, s) { 1947 if (!s?.[t]?.fixtures.length) return !1; 1948 let r = s[t].fixtures[0]; 1949 return r.isPlannedInPlay && r.addons.isRaceOff && !r.addons.isResulted ? !0 : r.stage === "Live"; 1950 } 1951 getEventIdForOfferType(t) { 1952 return t.optionBetDetails ? t.optionBetDetails?.betBuilderData?.tv1BetBuilderInfo?.event?.id.toString() ?? t.fixture.compoundId : t.fixture.id.toString(); 1953 } 1954 getTrackingCategory(t, s, r) { 1955 if (s) return "bet builder"; 1956 switch (t) { 1957 case "Combo": return "Accumulator"; 1958 case "Single": return "single"; 1959 case "System": return r === "SystemSingles" ? "multi single" : "system"; 1960 } 1961 } 1962 getAccaBoostErrorMessage(t) { 1963 switch (t?.additionalInformation?.accaBoostDeviationReason) { 1964 case "ReducedDueToBetsCancelled": return this.sitecore.betStation.myBets.AccaBoostReducedDueToBetsCancelled; 1965 case "LostDueToCashOut": return this.sitecore.betStation.myBets.AccaBoostLostDueToCashOut; 1966 case "LostDueToUnderMinSelections": return this.sitecore.betStation.myBets.AccaBoostLostDueToUnderMinSelections; 1967 default: return ""; 1968 } 1969 } 1970 isPotentialEarlyPayoutable(t) { 1971 return !t.isEarlyPayout && t.state === "Open" && (t.slipType === "Single" || t.slipType === "Combo" || t.slipType === "System" && t.systemType === "SystemSingles"); 1972 } 1973 mapBetslipState(t) { 1974 let s = "Open"; 1975 switch (t) { 1976 case "Canceled": 1977 s = "Canceled"; 1978 break; 1979 case "Lost": 1980 s = "Lost"; 1981 break; 1982 case "Won": 1983 s = "Won"; 1984 break; 1985 case "Open": s = "Open"; 1986 } 1987 return s; 1988 } 1989 isEarlyPayoutAvailable(t) { 1990 return !t.isPotentialEP || !this.epConfig.isEarlyPayoutEnabled ? it(!1) : Ya(this.sportsUserConfig, (s) => s.isEarlyPayoutAllowed, !1); 1991 } 1992 setPromotionSubType(t, s, r, a) { 1993 let y = r.combinations.find((P) => P.betReferences[0].index === s + 1)?.slipIndex, f = y ? r.edsPromoTokens.find((P) => P.additionalInformation.informationItems.some((et) => et.key === "SlipIndex" && et.value === y.toString())) : void 0, _ = f ? f?.additionalInformation.informationItems.find((P) => P.key === "EdsCampaignPromotionType")?.value : void 0, T = a && a.statusCode === "Success", O = !1; 1994 _ === j.MoneyBackDraw && t.selectionState === X.Open && (O = !0), _ === j.MoneyBackDraw && t.selectionState === X.Lost && T && (O = !0), _ === j.BetAndGet && T && (O = !0), t.promotionSubType = O ? _ : void 0; 1995 } 1996 isEachWay(t) { 1997 return (t.participantBetDetails?.betTypeName ?? t.optionBetDetails?.betType) === "EachWay"; 1998 } 1999 }; 2000 return e.ɵfac = function(i) { 2001 return new (i || e)(); 2002 }, e.ɵprov = S({ 2003 token: e, 2004 factory: e.ɵfac, 2005 providedIn: "root" 2006 }), e; 2007 })(), Qe = (() => { 2008 let e = class { 2009 get classes() { 2010 return `mybets-earlypayout-button ${this.btnState}`; 2011 } 2012 onClick(t) { 2013 this.submitEarlyPayout(t); 2014 } 2015 constructor() { 2016 this.sitecore = n(A), this.m2User = n(pt), this.myBetsConfig = n(oo), this.timerService = n(ne), this.earlyPayoutSubmitService = n(Ws), this.trackingService = n(ap), this.retailService = n(jt), this.btnStates = Z, this.buttonResetTimerClean = null, this.epTimeoutDelay = this.myBetsConfig.earlyPayoutButtonResetTime ? jo(this.myBetsConfig.earlyPayoutButtonResetTime) : 5e3; 2017 } 2018 ngOnInit() { 2019 this.currencySymbol = Ut(this.m2User.currency, "narrow"), this.context = `_${this.pageName}`; 2020 } 2021 ngOnDestroy() { 2022 this.buttonResetTimerClean && (this.buttonResetTimerClean = null); 2023 } 2024 get btnState() { 2025 switch (this.betslip.earlyPayout?.state) { 2026 case w.Disabled: 2027 case w.PermanentlyDisabled: return Z.Locked; 2028 case w.Preparing: return Z.Processing; 2029 case w.PaidOut: 2030 case w.Completed: 2031 case w.Done: return Z.PaidOut; 2032 case w.Allowed: 2033 case w.ModeHigher: return Z.Allowed;
2034 case w.Confirm: return Z.Confirm; 2035 default: return Z.Locked; 2036 } 2037 } 2038 get payoutValue() { 2039 return this.betslip.earlyPayout.valueWithoutStake || this.betslip.earlyPayout.value; 2040 } 2041 submitEarlyPayout(t) { 2042 return x(this, null, function* () { 2043 if (!this.betslip.earlyPayout) return; 2044 if (this.btnState === Z.Locked) { 2045 t && (t.stopPropagation(), t.preventDefault()); 2046 return; 2047 } 2048 this.betslip.earlyPayout.error = void 0; 2049 let s = { 2050 earlyPayoutSlipID: this.betslip.betslipRealId, 2051 earlyPayoutValue: this.payoutValue, 2052 containsLiveBets: this.betslip.containsLiveBets, 2053 context: this.context, 2054 betType: this.betslip.betType.toLowerCase(), 2055 isFreeBet: this.betslip.isFreeBet 2056 }; 2057 switch (this.btnState) { 2058 case Z.Allowed: 2059 this.betslip.earlyPayout.state = w.Confirm, this.buttonResetTimerClean = this.timerService.setTimeout(() => this.resetPreparingState(), this.epTimeoutDelay), this.trackingService.trackCashoutClick(s); 2060 return; 2061 case Z.Confirm: 2062 this.betslip.earlyPayout.state = w.Preparing, this.betslip.earlyPayout.userExpectedValue = this.betslip.earlyPayout.value, this.buttonResetTimerClean && this.buttonResetTimerClean(), this.trackingService.trackCashoutConfirm(s); 2063 let r = this.retailService.getInitMessage(); 2064 this.retailService.sendTracingMessage(r), this.betslip.earlyPayout.acceptMode = Gs.modeHigher, this.earlyPayoutSubmitService.submitPayout(this.betslip, this.context); 2065 return; 2066 default: return; 2067 } 2068 }); 2069 } 2070 resetPreparingState() { 2071 this.betslip.earlyPayout?.state === w.Confirm && (this.betslip.earlyPayout.state = w.Allowed, this.trackingService.trackCashoutResetPreparing({ 2072 earlyPayoutSlipID: this.betslip.betslipRealId, 2073 earlyPayoutValue: this.payoutValue, 2074 containsLiveBets: this.betslip.containsLiveBets, 2075 context: this.context, 2076 betType: this.betslip.betType.toLowerCase(), 2077 isFreeBet: this.betslip.isFreeBet 2078 })); 2079 } 2080 }; 2081 return e.ɵfac = function(i) { 2082 return new (i || e)(); 2083 }, e.ɵcmp = U({ 2084 type: e, 2085 selectors: [["st-my-bets-earlypayout-button"]], 2086 hostVars: 2, 2087 hostBindings: function(i, t) { 2088 i & 1 && K("click", function(s) { 2089 return t.onClick(s); 2090 }), i & 2 && st(t.classes); 2091 }, 2092 inputs: { 2093 betslip: "betslip", 2094 pageName: "pageName" 2095 }, 2096 decls: 5, 2097 vars: 1, 2098 consts: [[ 2099 1, 2100 "text", 2101 3, 2102 "innerHTML" 2103 ], [1, "value"]], 2104 template: function(i, t) { 2105 if (i & 1 && p(0, Yp, 4, 7)(1, zp, 4, 7)(2, Kp, 1, 1, "span", 0)(3, Jp, 1, 1, "span", 0)(4, Xp, 1, 1, "span", 0), i & 2) { 2106 let s; 2107 m((s = t.btnState) === t.btnStates.Allowed ? 0 : s === t.btnStates.Confirm ? 1 : s === t.btnStates.Processing ? 2 : s === t.btnStates.Locked ? 3 : s === t.btnStates.PaidOut ? 4 : -1); 2108 } 2109 }, 2110 dependencies: [Me], 2111 encapsulation: 2, 2112 changeDetection: 1 2113 }), e; 2114 })(), he = class { 2115 constructor() { 2116 this.openModalHandle = null; 2117 } 2118 close() { 2119 this.openModalHandle && (this.openModalHandle.close(), this.openModalHandle = null); 2120 } 2121 }, Sn = (() => { 2122 let e = class extends he { 2123 constructor() { 2124 super(...arguments), this.sitecore = n(A), this.modalDialogService = n(Ie), this.trackingService = n(gt); 2125 } 2126 show(t, s) { 2127 let r = this.sitecore.betStation.modalDialogs.myBetsError, a; 2128 switch (s) { 2129 case ft.AmlDecisionStatusError: 2130 a = qt.BlockedRejectedDialog; 2131 break; 2132 case ft.DifferentCurrency: 2133 a = qt.DifferentCurrency; 2134 break; 2135 default: a = qt.Dialog; 2136 } 2137 let y = r[`${a}Text1`], f = r[`${a}Text2`], _ = { 2138 type: ds.Warning, 2139 firstParagraph: y, 2140 secondParagraph: f, 2141 title: r.DialogTitle, 2142 buttons: [{ 2143 type: Qa.Ok, 2144 text: r.DialogButtonText 2145 }] 2146 }; 2147 this.openModalHandle = this.modalDialogService.openMessage(_, { cssClass: "bet-station-modal bet-station-mybets-error-dialog modal-error" }), this.trackingService.trackLoadError(t, s), this.openModalHandle.result.then(() => { 2148 this.trackingService.trackLoadErrorOK(t); 2149 }).catch(() => {}).finally(() => this.openModalHandle = null); 2150 } 2151 }; 2152 return e.ɵfac = (() => { 2153 let i; 2154 return function(t) { 2155 return (i || (i = ht(e)))(t || e); 2156 }; 2157 })(), e.ɵprov = S({ 2158 token: e, 2159 factory: e.ɵfac, 2160 providedIn: "root" 2161 }), e; 2162 })(), ti = (() => { 2163 let e = class extends he { 2164 constructor() { 2165 super(...arguments), this.sitecore = n(A), this.loadingDialogService = n(Fp), this.trackingService = n(gt); 2166 } 2167 show(t = {}) { 2168 let s = this.sitecore.betStation.modalDialogs.myBetsLoadingIndicator, r = { 2169 type: ds.Info, 2170 firstParagraph: t.isRefreshing ? s.RefreshText1 : s.DialogText1, 2171 secondParagraph: t.isRefreshing ? s.RefreshText2 : s.DialogText2 2172 }; 2173 this.loadingDialogService.show(r), this.trackingService.trackLoading(t.betNumber); 2174 } 2175 close() { 2176 this.loadingDialogService.close(); 2177 } 2178 }; 2179 return e.ɵfac = (() => { 2180 let i; 2181 return function(t) { 2182 return (i || (i = ht(e)))(t || e); 2183 }; 2184 })(), e.ɵprov = S({ 2185 token: e, 2186 factory: e.ɵfac, 2187 providedIn: "root" 2188 }), e; 2189 })(), bn = (() => { 2190 let e = class { 2191 constructor() { 2192 this.sitecore = n(A), this.intlService = n(Li), this.interpolatePipe = n(Vc), this.className = "mybets-details mybets-best-odds"; 2193 } 2194 get isHidden() { 2195 return !(this.myBet.status !== B.Lost && js(this.myBet.status, this.myBet.usedRewardToken?.additionalInformation?.bestOddsBonus) && Ys(this.myBet.bestOddsGuaranteedInformation?.state)); 2196 } 2197 get bogLabel() { 2198 if (this.myBet.status === B.Open) return this.sitecore.betStation.myBets.BestOddsGuaranteedOpen; 2199 if (this.myBet.usedRewardToken?.additionalInformation?.bestOddsBonus) { 2200 let t = this.myBet.usedRewardToken?.additionalInformation?.bestOddsBonus, s = { amount: this.intlService.formatCurrency(t, this.myBet.currencyCode) }; 2201 return this.interpolatePipe.transform(this.sitecore.betStation.myBets.BestOddsGuaranteedSettledBoosted, s); 2202 } 2203 return ""; 2204 } 2205 }; 2206 return e.ɵfac = function(i) { 2207 return new (i || e)(); 2208 }, e.ɵcmp = U({ 2209 type: e, 2210 selectors: [["st-my-bets-best-odds-guaranteed-info"]], 2211 hostVars: 4, 2212 hostBindings: function(i, t) { 2213 i & 2 && (st(t.className), V("hidden", t.isHidden)); 2214 }, 2215 inputs: { 2216 myBet: "myBet", 2217 currencySymbol: "currencySymbol" 2218 }, 2219 decls: 3, 2220 vars: 1, 2221 template: function(i, t) { 2222 i & 1 && (v(0, "st-bog-help-badge"), l(1, "span"), d(2), u()), i & 2 && (o(2), g(t.bogLabel)); 2223 }, 2224 dependencies: [Zs], 2225 encapsulation: 2 2226 }), e; 2227 })(), _n = (() => { 2228 let e = class { 2229 constructor() { 2230 this.sitecore = n(A), this.dispatcher = n(Ft), this.userService = n(pt), this.earlyPayoutUtils = n(zm), this.retailTracingService = n(jt), this.className = "cashout-container", this.destroyRef = n(Tt); 2231 } 2232 ngOnInit() { 2233 this.betStatus = k.BET_STATUS, this.dispatcher.on(ws.CashOut.EarlyPayoutFailed).pipe(H((t) => t.betslipId === this.betslip.betslipRealId), rt(this.destroyRef)).subscribe((t) => this.handleEarlyPayoutPlaceError(t)); 2234 } 2235 ngOnDestroy() { 2236 this.earlyPayoutSubscription && this.earlyPayoutSubscription.dropEarlyPayoutSubscription(); 2237 } 2238 handleEarlyPayoutPlaceError(t) { 2239 this.earlyPayoutUtils.handleEarlyPayoutPlaceError(t, this.betslip.earlyPayout), this.betslip.earlyPayout && (this.betslip.earlyPayout.pushUpdate = !1, this.betslip.earlyPayout.acceptMode = Gs.modeHigher, this.betslip.earlyPayout.pushUpdate = !1), this.betslip.showEarlyPayoutError = !0; 2240 let s = this.retailTracingService.getFailMessage(t.error.type); 2241 s && this.retailTracingService.sendTracingMessage(s); 2242 } 2243 get payoutErrorMessage() { 2244 if (!(!this.betslip?.earlyPayout || this.betslip.earlyPayout.pushUpdate || !this.betslip.earlyPayout.error)) return this.mapPayoutErrorMessage(this.betslip.earlyPayout.error); 2245 } 2246 mapPayoutErrorMessage(t) { 2247 return t.type === jm.BetFromDifferentUser ? this.userService.isAnonymous ? this.sitecore.betStation.myBets.LoginToCashout : this.sitecore.betStation.myBets.LoginCorrectAccountToCashout : this.sitecore.betStation.earlyPayoutErrors[t.type] || this.sitecore.betStation.earlyPayoutErrors.EarlyPayoutNotPossible; 2248 } 2249 }; 2250 return e.ɵfac = function(i) { 2251 return new (i || e)(); 2252 }, e.ɵcmp = U({ 2253 type: e, 2254 selectors: [["st-my-bets-earlypayout-container"]], 2255 hostVars: 2, 2256 hostBindings: function(i, t) { 2257 i & 2 && st(t.className); 2258 }, 2259 inputs: { 2260 betslip: "betslip", 2261 earlyPayoutSubscription: "earlyPayoutSubscription" 2262 }, 2263 decls: 9, 2264 vars: 6, 2265 consts: [ 2266 [1, "terms-and-conditions"], 2267 [1, "terms-and-conditions--title"], 2268 [1, "terms-and-conditions--text"], 2269 [1, "my-bets-earlypayout-button-container"], 2270 [1, "cashout-error"], 2271 [1, "freebet-cashout-info"], 2272 [ 2273 3, 2274 "betslip", 2275 "pageName" 2276 ], 2277 [1, "theme-error-i"], 2278 [1, "freebet-cashout-info--text"] 2279 ], 2280 template: function(i, t) { 2281 i & 1 && (l(0, "div", 0)(1, "span", 1), d(2), u(), l(3, "span", 2), d(4), u()(), l(5, "div", 3), p(6, Zp, 4, 1, "div", 4), p(7, Qp, 4, 1, "div", 5), v(8, "st-my-bets-earlypayout-button", 6), u()), i & 2 && (o(2), g(t.
2281sitecore.betStation.earlyPayout.TermsAndConditionsTitle), o(2), g(t.sitecore.betStation.earlyPayout.TermsAndConditionsText), o(2), m(t.betslip.showEarlyPayoutError && t.payoutErrorMessage ? 6 : -1), o(), m(!(t.betslip.showEarlyPayoutError && t.payoutErrorMessage) && t.betslip.isFreeBet ? 7 : -1), o(), b("betslip", t.betslip)("pageName", t.betStatus)); 2282 }, 2283 dependencies: [Qe], 2284 encapsulation: 2, 2285 changeDetection: 1 2286 }), e; 2287 })(), ei = (e) => ({ showAccaBoostInfo: e }), vn = (() => { 2288 let e = class { 2289 constructor() { 2290 this.sitecore = n(A), this.m2User = n(pt), this.myBetsDataService = n(xt), this.trackingService = n(gt), this.changeDetectorRef = n(yi), this.tracingService = n(jt), this.destroyRef = n(Tt), this.showCashoutConfirmed = !1, this.paidOut = zt(), this.showError = !1; 2291 } 2292 ngOnInit() { 2293 this.currencySymbol = Ut(this.m2User.currency, "narrow"); 2294 } 2295 ngOnChanges(t) { 2296 if (t.myBet && t.myBet.currentValue && (this.isAnonymous = this.m2User.isAnonymous, this.myBet.accountType !== "Anonymous" && this.myBet.isCachedOut ? this.payoutBtnState = tt.Paid : this.payoutBtnState = this.myBet.payoutStatus === "FUNDS_AVAILABLE" ? tt.Available : tt.NotAvailable, this.showCashoutConfirmed)) { 2297 let s = this.tracingService.getCompleteMessage(); 2298 s && this.tracingService.sendTracingMessage(s); 2299 } 2300 } 2301 addToBalance() { 2302 if (this.payoutBtnState === tt.Processing) return; 2303 this.showError = !1, this.payoutBtnState = tt.Processing, this.changeDetectorRef.markForCheck(); 2304 let t = this.getRequest(); 2305 this.myBetsDataService.payoutBet(t).pipe(rt(this.destroyRef)).subscribe((s) => this.handleResponse(s)), this.trackingService.trackAddToBalanceClick(this.myBet.receiptNumber); 2306 } 2307 handleResponse(t) { 2308 if (!t) { 2309 this.payoutBtnState = tt.Available, this.showError = !0, this.payoutErrorMessage = this.sitecore.betStation.myBets.PayoutError, this.changeDetectorRef.markForCheck(); 2310 return; 2311 } 2312 if (t.errorCode === de.OrcDepositLimitExceed01) { 2313 this.payoutErrorMessage = this.sitecore.betStation.earlyPayoutErrors[de.OrcDepositLimitExceed01], this.showError = !0, this.payoutBtnState = tt.Failed, this.changeDetectorRef.markForCheck(); 2314 return; 2315 } 2316 this.showCashoutConfirmed = !1, this.accountBalance = t.accountBalance / 100, this.payoutBtnState = tt.Paid, this.changeDetectorRef.markForCheck(), this.paidOut.emit(!0), this.trackingService.trackPayoutSuccess(t, this.myBet); 2317 } 2318 getRequest() { 2319 return { 2320 amount: this.getPayoutAmount(), 2321 currency: this.myBet.currencyCode, 2322 description: "Betslip payout", 2323 requestReferenceId: this.getRequestReferenceId(), 2324 transactionDateAtOrigin: this.myBet.betPlacedOn?.toISOString() ?? "", 2325 voidReturns: this.getVoidAmount(), 2326 winReturns: this.getWinAmount(), 2327 betslipId: this.myBet.retailReceiptNo 2328 }; 2329 } 2330 getPayoutAmount() { 2331 let t = 0; 2332 return this.myBet.isOddsBoosted ? t = this.myBet.boostedWinnings : this.myBet.freeBetInformation ? t = this.myBet.freeBetInformation.winnings.amount : t = this.myBet.settledReturn, new ot(t).toDecimalPlaces(2).times(100).toNumber(); 2333 } 2334 getWinAmount() { 2335 let t = 0; 2336 return this.myBet.isOddsBoosted ? t = this.myBet.boostedWinnings : this.myBet.freeBetInformation ? t = this.myBet.freeBetInformation.winnings.amount : t = this.myBet.winReturns, new ot(t).toDecimalPlaces(2).times(100).toNumber(); 2337 } 2338 getVoidAmount() { 2339 return new ot(this.myBet.voidReturns).toDecimalPlaces(2).times(100).toNumber(); 2340 } 2341 getRequestReferenceId() { 2342 return `GBS-BR${this.myBet.brand}-${this.myBet.retailReceiptNo}-payout`; 2343 } 2344 get PayoutBtnStateEnum() { 2345 return tt; 2346 } 2347 }; 2348 return e.ɵfac = function(i) { 2349 return new (i || e)(); 2350 }, e.ɵcmp = U({ 2351 type: e, 2352 selectors: [["st-my-bets-payout"]], 2353 inputs: { 2354 myBet: "myBet", 2355 showCashoutConfirmed: "showCashoutConfirmed" 2356 }, 2357 outputs: { paidOut: "paidOut" }, 2358 features: [Si], 2359 decls: 12, 2360 vars: 13, 2361 consts: [ 2362 ["ticketValueTemplate", ""], 2363 [ 2364 "severity", 2365 "error", 2366 3, 2367 "message", 2368 "links" 2369 ], 2370 [ 2371 1, 2372 "mybets-button", 2373 "cashout" 2374 ], 2375 [1, "mybets-ticket-value"], 2376 [ 2377 1, 2378 "mybets-info-box", 2379 3, 2380 "non-anonymous" 2381 ], 2382 [1, "mybets-button"], 2383 [ 2384 1, 2385 "mybets-button", 2386 "processing" 2387 ], 2388 [ 2389 1, 2390 "mybets-button", 2391 "grey" 2392 ], 2393 [ 2394 4, 2395 "ngTemplateOutlet", 2396 "ngTemplateOutletContext" 2397 ], 2398 [1, "mybets-info-box"], 2399 [ 2400 1, 2401 "mybets-button", 2402 3, 2403 "click" 2404 ], 2405 [1, "left"], 2406 [1, "right"] 2407 ], 2408 template: function(i, t) { 2409 i & 1 && (p(0, ty, 1, 2, "st-error", 1), p(1, ey, 2, 1, "div", 2), l(2, "div", 3), p(3, ry, 3, 2, "span"), p(4, ay, 1, 4, "ng-container"), u(
2409), p(5, hy, 3, 4, "div", 4), p(6, my, 2, 1, "div", 5), p(7, py, 2, 1, "div", 6), p(8, yy, 2, 1, "div", 7), p(9, fy, 2, 1, "div", 7), _t(10, by, 5, 3, "ng-template", null, 0, fi)), i & 2 && (m(t.showError ? 0 : -1), o(), m(t.showCashoutConfirmed ? 1 : -1), o(), V("paid", t.payoutBtnState === t.PayoutBtnStateEnum.Paid)("non-anonymous", !t.isAnonymous), o(), m(t.payoutBtnState === t.PayoutBtnStateEnum.Paid ? 3 : -1), o(), m(t.payoutBtnState !== t.PayoutBtnStateEnum.Paid ? 4 : -1), o(), m(t.payoutBtnState === t.PayoutBtnStateEnum.Paid ? 5 : -1), o(), m(t.payoutBtnState === t.PayoutBtnStateEnum.Available ? 6 : -1), o(), m(t.payoutBtnState === t.PayoutBtnStateEnum.Processing ? 7 : -1), o(), m(t.payoutBtnState === t.PayoutBtnStateEnum.NotAvailable ? 8 : -1), o(), m(t.payoutBtnState === t.PayoutBtnStateEnum.Failed ? 9 : -1)); 2410 }, 2411 dependencies: [ 2412 ke, 2413 Wm, 2414 Me 2415 ], 2416 encapsulation: 2 2417 }), e; 2418 })(), Bn = (() => { 2419 let e = class { 2420 constructor() { 2421 this.sitecore = n(A), this.freeBetRetailService = n(xe), this.freebetDetailsDialogService = n(Fe), this.freebetTrackingService = n(ln), this.freebetPersistenceService = n(Ve), this.freebetErrorDialogService = n(ae), this.myBetsViewDialogService = n(ii), this.printFreeBetReceiptService = n(ue), this.trackingService = n(gt); 2422 } 2423 ngOnInit() { 2424 this.currencySymbol = Ut(this.voucher.currency, "narrow"); 2425 } 2426 printFreeBet() { 2427 this.printFreeBetReceiptService.printFreeBetVoucherReceipt(this.buildVoucherReceipt()), this.trackingService.trackPrintFreeBetClick(); 2428 } 2429 useFreeBet() { 2430 this.getFreeBet(), this.trackingService.trackUseFreeBetClick(); 2431 } 2432 formatDate() { 2433 return this.voucher.validTill ? dn.formatDate(this.voucher.validTill, "dd/MM/yyyy HH:mm", "en-GB") : void 0; 2434 } 2435 formatFromDate() { 2436 return this.voucher.validFrom ? dn.formatDate(this.voucher.validFrom, "dd/MM/yyyy HH:mm", "en-GB") : void 0; 2437 } 2438 getAmount() { 2439 return this.voucher?.amount ? this.voucher.amount / 100 : void 0; 2440 } 2441 isExpired() { 2442 return Date.now() > new Date(this.voucher.validTill).getTime(); 2443 } 2444 getFreeBet() { 2445 return x(this, null, function* () { 2446 if (this.freebetPersistenceService.getUserFreeBetId()) { 2447 this.freebetErrorDialogService.openErrorDialog(cn.FreeBetActivated); 2448 return; 2449 } 2450 this.freebetTrackingService.trackClaim(); 2451 let t = yield Rt(this.freeBetRetailService.validate(this.voucher.voucherCode, $e.Code)); 2452 t.statusCode === Le.Success ? (this.myBetsViewDialogService.close(), this.freebetDetailsDialogService.showDetailsDialog(t.freeBetDetails, !0)) : (this.myBetsViewDialogService.close(), this.freebetErrorDialogService.openErrorDialog(t.statusCode)); 2453 }); 2454 } 2455 toggle() { 2456 this.collapsed = !this.collapsed; 2457 } 2458 buildVoucherReceipt() { 2459 return { 2460 voucherCode: this.voucher.voucherCode, 2461 validFrom: this.formatFromDate(), 2462 validTill: this.formatDate(), 2463 freeBetId: this.voucher.freeBetId, 2464 freeBetValue: { 2465 currency: this.voucher.currency, 2466 value: this.getAmount().toFixed(2) 2467 } 2468 }; 2469 } 2470 }; 2471 return e.ɵfac = function(i) { 2472 return new (i || e)(); 2473 }, e.ɵcmp = U({ 2474 type: e, 2475 selectors: [["st-my-bets-promotion-container"]], 2476 inputs: { 2477 voucher: "voucher", 2478 statusCode: "statusCode", 2479 statusDescription: "statusDescription", 2480 collapsed: "collapsed" 2481 }, 2482 features: [bi([ue])], 2483 decls: 3, 2484 vars: 1, 2485 consts: [ 2486 [1, "mybets-promo-voucher-item"], 2487 [1, "mybets-promo-details"], 2488 [ 2489 1, 2490 "mybets-promo-details-value", 2491 3, 2492 "click" 2493 ], 2494 [1, "mybets-freebet-value"], 2495 [1, "mybets-promo-details-arrow"], 2496 [1, "mybets-promo-details-separator"], 2497 [1, "mybets-promo-details-date"], 2498 [1, "mybets-promo-buttons"], 2499 [ 2500 1, 2501 "btn", 2502 "btn-primary", 2503 "mybets-place-freebet-button", 2504 3, 2505 "click" 2506 ], 2507 [ 2508 1, 2509 "btn", 2510 "btn-primary", 2511 "mybets-print-freebet-button", 2512 3, 2513 "click" 2514 ],
2515 [1, "mybets-promo-details-value"], 2516 [1, "mybets-technical-error"], 2517 [1, "mybets-invalid-freebet-info"], 2518 [1, "theme-error-i"], 2519 [1, "expired-info-text"] 2520 ], 2521 template: function(i, t) { 2522 i & 1 && (I(0, "div", 0), p(1, ky, 12, 11)(2, Py, 2, 1), F()), i & 2 && (o(), m(t.statusCode === "Success" && !t.isExpired() ? 1 : 2)); 2523 }, 2524 dependencies: [yr], 2525 encapsulation: 2 2526 }), e; 2527 })(), me = (() => { 2528 let e = class { 2529 constructor() { 2530 this.hasClass = !1; 2531 } 2532 ngOnChanges(t) { 2533 let s = { 2534 Open: "mybets-status--Open", 2535 Won: "mybets-status--Won", 2536 Lost: "mybets-status--Lost", 2537 Canceled: "mybets-status--Canceled", 2538 CashedOut: "mybets-status--CashedOut", 2539 PaidOut: "mybets-status--PaidOut", 2540 Placed: "mybets-status--Placed" 2541 }; 2542 t.state && (this.statusClass = s[this.state]); 2543 } 2544 }; 2545 return e.ɵfac = function(i) { 2546 return new (i || e)(); 2547 }, e.ɵcmp = U({ 2548 type: e, 2549 selectors: [["st-my-bets-status"]], 2550 hostVars: 2, 2551 hostBindings: function(i, t) { 2552 i & 2 && V("mybets-selection-status", t.hasClass); 2553 }, 2554 inputs: { 2555 state: "state", 2556 title: "title", 2557 subTitle: "subTitle", 2558 hasClass: "hasClass" 2559 }, 2560 features: [Si], 2561 decls: 3, 2562 vars: 4, 2563 consts: [[1, "mybets-status-sub-title"]], 2564 template: function(i, t) { 2565 i & 1 && (I(0, "span"), d(1), F(), p(2, Ey, 2, 1, "span", 0)), i & 2 && (st(t.statusClass), o(), g(t.title), o(), m(t.subTitle ? 2 : -1)); 2566 }, 2567 encapsulation: 2 2568 }), e; 2569 })(), kn = (() => { 2570 let e = class { 2571 constructor() { 2572 this.sitecore = n(A), this.legs = G(), this.eventName = G(), this.status = G.required(), this.statusTitle = G.required(), this.odds = G(), this.rePricedOdds = G(), this.eventTime = G(), this.isLive = G(), this.outcome = G(), this.cancellationReason = G(), this.offerBadge = G(), this.betSelectionEvent = G(); 2573 } 2574 }; 2575 return e.ɵfac = function(i) { 2576 return new (i || e)(); 2577 }, e.ɵcmp = U({ 2578 type: e, 2579 selectors: [["st-my-bets-bet-builder-selection"]], 2580 hostAttrs: [1, "mybets-selection--betbuilder"], 2581 inputs: { 2582 legs: [1, "legs"], 2583 eventName: [1, "eventName"], 2584 status: [1, "status"], 2585 statusTitle: [1, "statusTitle"], 2586 odds: [1, "odds"], 2587 rePricedOdds: [1, "rePricedOdds"], 2588 eventTime: [1, "eventTime"], 2589 isLive: [1, "isLive"], 2590 outcome: [1, "outcome"], 2591 cancellationReason: [1, "cancellationReason"], 2592 offerBadge: [1, "offerBadge"], 2593 betSelectionEvent: [1, "betSelectionEvent"] 2594 }, 2595 decls: 22, 2596 vars: 15, 2597 consts: [ 2598 [1, "mybets-selection--betbuilder-content"], 2599 [ 2600 1, 2601 "mybets-selection--betbuilder-status", 2602 3, 2603 "title", 2604 "state", 2605 "hasClass" 2606 ], 2607 [1, "mybets-selection--betbuilder-container"], 2608 [1, "mybets-selection--betbuilder-header-title"], 2609 [1, "mybets-selection--betbuilder-legs"], 2610 [1, "mybets-selection--betbuilder-leg"], 2611 [1, "mybets-selection--betbuilder-event-details"], 2612 [1, "event-status"], 2613 [1, "mybets-selection--live"], 2614 [ 2615 1, 2616 "mybets-selection-timer", 2617 3, 2618 "live", 2619 "start", 2620 "scoreboard" 2621 ], 2622 [1, "mybets-selection-score"], 2623 [1, "mybets-selection-odds"], 2624 [1, "mybets-selection-odds-value"], 2625 [1, "circle-overlay"], 2626 [1, "circle-line"], 2627 [1, "radio-off"], 2628 [1, "mybets-selection--betbuilder-leg-name"], 2629 [1, "mybets-selection-timer"], 2630 [ 2631 3, 2632 "scoreboard", 2633 "sport" 2634 ] 2635 ], 2636 template: function(i, t) { 2637 if (i & 1 && (l(0, "div", 0), v(1, "st-my-bets-status", 1), l(2, "div", 2)(3, "div", 3), d(4), u(), l(5, "div", 4), Dt(6, Oy, 6, 1, "div", 5, Ti), u(), l(8, "div", 6)(9, "span"), d(10), u(), l(11, "div", 7), p(12, Ay, 2, 1, "span", 8), p(13, Dy, 1, 1), Ci(14), p(15, Iy, 1, 3, "ms-event-timer", 9), u()()()(), Ci(16), p(17, Ry, 2, 2, "div", 10), l(18, "div", 11)(19, "span", 12), d(20), u(), p(21, My, 2, 1, "span"), u()), i & 2) { 2638 o(), b("title", t.statusTitle())("state", t.status())("hasClass", !0), o(3), E(" ", t.sitecore.betStation.betslip.messages.BetBuilderPickTitle, " "), o(2), At(t.legs()), o(4), g(t.eventName()), o(2), m(t.isLive() ? 12 : -1), o(), m(!t.betSelectionEvent() || t.outcome() || t.cancellationReason() ? 13 : -1), o(); 2639 let s = Oi(t.betSelectionEvent()); 2640 o(), m(s && s.scoreboard && !t.outcome() && !t.cancellationReason() ? 15 :
2640-1), o(); 2641 let r = Oi(t.betSelectionEvent()); 2642 o(), m(r && r.scoreboard.started && !t.outcome() && !t.cancellationReason() ? 17 : -1), o(2), V("has-reprice", t.rePricedOdds()), o(), g(t.odds()), o(), m(t.rePricedOdds() ? 21 : -1); 2643 } 2644 }, 2645 dependencies: [ 2646 me, 2647 As, 2648 nn, 2649 Lt 2650 ], 2651 encapsulation: 2 2652 }), e; 2653 })(), Cn = (() => { 2654 let e = class { 2655 constructor() { 2656 this.sitecore = n(A), this.changeDetection = n(yi), this.pushService = n(Rd), this.className = "mybets-selection", this.pickTypes = Ht, this.isLive = !1, this.onScoreboardUpdatedInternal = () => { 2657 this.betSelectionEvent = Q({}, this.pushEvent), this.betSelectionEvent?.scoreboard.started && (this.betSelectionEvent.live = !0), this.changeDetection.markForCheck(); 2658 }; 2659 } 2660 ngOnInit() { 2661 this.betSelectionOdds = this.betSelection.isStartingPrice ? this.sitecore.betStation.myBets.SP : this.betSelection.odds, this.betType = this.getBetType(), this.pushEvent = this.getEventModel(), this.betSelectionEvent = this.getEventModel(), this.subscribe(), this.marketName = this.betSelection.isPriceBoosted ? `${this.betSelection.marketName} - ${this.sitecore.event.PriceBoostMarket}` : this.betSelection.marketName, this.isLive = this.isFixtureLive(); 2662 } 2663 ngOnDestroy() { 2664 this.pushSubscription?.unsubscribe(); 2665 } 2666 getBetType() { 2667 if (this.betSelection.isBetBuilder) return Ht.BetBuilderPick; 2668 switch (this.betSelection.offerType) { 2669 case "OptionBet": return Ht.V2OptionMarketPick; 2670 case "ParticipantBet": return Ht.V2ParticipantPick; 2671 default: return Ht.V1Pick; 2672 } 2673 } 2674 get isBogEligible() { 2675 return Ys(this.betSelection.bestOddsState); 2676 } 2677 subscribe() { 2678 this.pushEvent && (this.pushSubscription = this.pushService.resubscribe(this.pushSubscription, [{ 2679 event: this.pushEvent, 2680 callback: this.onScoreboardUpdatedInternal 2681 }])); 2682 } 2683 get promotionBadgeStyle() { 2684 switch (this.betSelection.promotionSubType) { 2685 case j.BetAndGet: return kt.Betandget; 2686 case j.MoneyBackDraw: return kt.Moneybackdraw; 2687 default: return; 2688 } 2689 } 2690 getEventModel() { 2691 return this.myBet?.events?.[this.betSelection.eventId]; 2692 } 2693 getBadgeData() { 2694 return { style: this.promotionBadgeStyle }; 2695 } 2696 isFixtureLive() { 2697 return !!(this.betSelectionEvent?.scoreboard.started && !this.betSelection.outcome && !this.betSelection.cancellationReason || this.betSelection.isLive && this.betSelection.fixtureType === "DayOfRace"); 2698 } 2699 }; 2700 return e.ɵfac = function(i) { 2701 return new (i || e)(); 2702 }, e.ɵcmp = U({ 2703 type: e, 2704 selectors: [["st-my-bets-selection"]], 2705 hostVars: 2, 2706 hostBindings: function(i, t) { 2707 i & 2 && st(t.className); 2708 }, 2709 inputs: { 2710 betSelection: "betSelection", 2711 myBet: "myBet" 2712 }, 2713 decls: 6, 2714 vars: 1, 2715 consts: [ 2716 ["baseSelection", ""], 2717 [4, "ngTemplateOutlet"], 2718 [ 2719 3, 2720 "legs", 2721 "eventName", 2722 "status", 2723 "statusTitle", 2724 "eventTime", 2725 "isLive", 2726 "odds", 2727 "outcome", 2728 "cancellationReason", 2729 "betSelectionEvent", 2730 "offerBadge", 2731 "rePricedOdds" 2732 ], 2733 [1, "mybets-selection-badges"], 2734 [ 2735 3, 2736 "title", 2737 "state", 2738 "hasClass", 2739 "subTitle" 2740 ], 2741 [1, "mybets-selection-details"], 2742 [1, "mybets-selection--title"], 2743 [1, "mybets-selection-participants"], 2744 [1, "mybets-selection--additional"], 2745 [1, "mybets-selection--live"], 2746 [ 2747 1, 2748 "mybets-selection-date", 2749 "mybets-selection-timer" 2750 ], 2751 [ 2752 1, 2753 "font", 2754 "medium", 2755 "mybets-selection-timer", 2756 3, 2757 "live", 2758 "start", 2759 "scoreboard" 2760 ], 2761 [1, "mybets-selection-score"], 2762 [ 2763 3, 2764 "scoreboard", 2765 "sport" 2766 ], 2767 [1, "mybets-selection-odds"], 2768 [1, "mybets-selection-priceboost-odds"], 2769 [1, "mybets-selection--option"], 2770 [1, "mybets-selection--option-comma"], 2771 [1, "mybets-selection-odds-value"], 2772 [ 2773 1, 2774 "mybets-promo-badge", 2775 3, 2776 "model" 2777 ], 2778 [1, "previous-odds"], 2779 [1, "was-price"], 2780 [ 2781 3, 2782 "isLargeSignPost", 2783 "count" 2784 ] 2785 ], 2786 template: function(i, t) { 2787 if (i & 1 && (p(0, Fy, 1, 1, "ng-container")(1, xy, 1, 1, "ng-container")(2, $y, 1, 1, "ng-container")(3, Hy, 1, 1), _t(4, rf, 17, 16, "ng-template", null, 0, fi)), i & 2) { 2788 let s; 2789 m((s = t.betType) === t.pickTypes.V1Pick ? 0 : s === t.pickTypes.V2OptionMarketP
2789ick ? 1 : s === t.pickTypes.V2ParticipantPick ? 2 : s === t.pickTypes.BetBuilderPick ? 3 : -1); 2790 } 2791 }, 2792 dependencies: [ 2793 ke, 2794 kn, 2795 me, 2796 As, 2797 nn, 2798 tn, 2799 Rp, 2800 Zs, 2801 Lt 2802 ], 2803 encapsulation: 2 2804 }), e; 2805 })(), Tn = (() => { 2806 let e = class { 2807 constructor() { 2808 this.sitecore = n(A), this.m2User = n(pt), this.myBetsDataService = n(xt), this.myBetsBetstationConfig = n(ji), this.timerService = n(ne), this.myBetsLoadingDialogService = n(ti), this.trackingService = n(gt), this.dispatcher = n(Ft), this.uKGCConfig = n(ho), this.showPayout = !1, this.showEarlyPayout = !1, this.showPromoRightColumn = !1, this.isPaidOut = !1, this.oneColumn = !1, this.retryCounter = 0, this.paidOutStatus = B.PaidOut, this.timeouts = [], this.isCashedOut = !1, this.minThumbSize = 100, this.eventIds = [], this.destroyRef = n(Tt); 2809 let t = n(wt), s = n(Wt); 2810 this.logger = t.getLogger("MyBetsViewComponent"), this.earlyPayoutService = s.create(); 2811 } 2812 ngOnInit() { 2813 this.currencySymbol = Ut(this.m2User.currency, "narrow"), this.myBet = this.myBetInput.betslip, this.myBetPayout = this.myBet, this.earlyPayoutPossibility = this.myBetInput.earlyPayoutPossibility, this.setPaidOutAndColumns(), this.trackLoad(), (this.myBet.payoutStatus === "FUNDS_TO_BE_VERIFIED" || this.myBet.status === B.Open) && (this.isCheckingPayoutStatus = this.myBet.payoutStatus === "FUNDS_TO_BE_VERIFIED", this.myBetsBetstationConfig.whenReady.pipe(rt(this.destroyRef)).subscribe(() => { 2814 this.retryCounter = this.myBetsBetstationConfig.payoutVerifyRetryAttemps, this.checkForStatusChange(); 2815 })), this.totalOdds = this.myBet.isStartingPrice ? this.sitecore.betStation.myBets.SP : this.myBet.totalOdds, this.rePricedOdds = this.myBet.rePricedOdds, _e([this.dispatcher.on(ws.CashOut.EarlyPayoutSuccess), this.myBetsBetstationConfig.whenReady]).pipe(H(([r]) => r.betslipId === this.myBetInput.betslip.betslipRealId), rt(this.destroyRef)).subscribe(() => this.handleEarlyPayoutSuccess()), this.earlyPayoutPossibility && this.earlyPayoutService.subscribeEarlyPayoutAmount(this.earlyPayoutPossibility, this.myBet), this.myBet.betDetails.forEach((r) => { 2816 this.eventIds.push(r.eventId), r?.forecastTricastInfo?.length && (this.hasXCastPick = !0), this.myBet.state === "Won" && (this.hasSettledBet = !0); 2817 }); 2818 let t = this.eventIds.filter((r, a) => this.eventIds.indexOf(r) !== a), s = yt(this.sitecore.betStation.myBets.MultiSingleTitle, { num_bets: this.myBet.betDetails.length }); 2819 this.uKGCConfig.isPotentialReturnsEnabledForSingle && this.myBet.betTypeTitle.includes(s) && t.length && !this.myBet.isStartingPrice && !this.hasXCastPick && !this.hasSettledBet && (this.isPotentailReturn = !0); 2820 } 2821 ngOnDestroy() { 2822 this.timeouts.length && (this.timeouts.forEach((t) => t?.()), this.timeouts = []); 2823 } 2824 updateStatus(t) { 2825 this.isPaidOut = t; 2826 } 2827 get headerTitle() { 2828 return this.myBet.freeBetInformation ? `${this.sitecore.betStation.myBets.FreebetTitle} - ${this.myBet.betTypeTitle}` : this.myBet.betTypeTitle; 2829 } 2830 get repricingMessage() { 2831 return this.myBet.hasDeadHeat ? this.sitecore.betStation.myBets.GroupedPicksDeadHeatInfo : this.sitecore.betStation.myBets.RepricingInfo; 2832 } 2833 get showPromoInfo() { 2834 return this.myBet.betStationVouchers ? !!(this.promotionBadgeStyle || this.getBadgeTypeMultiSingle()) : !1; 2835 } 2836 get promoInfoMessage() { 2837 let t = this.getBadgeTypeMultiSingle(); 2838 if (this.promotionBadgeStyle === kt.Moneybackdraw || t === j.MoneyBackDraw) return this.sitecore.betStation.edsTriggers.myBets.PossibleFreeBetMessage; 2839 if (this.promotionBadgeStyle === kt.Betandget || t === j.BetAndGet) return this.sitecore.betStation.edsTriggers.myBets.EligibilityMessage; 2840 } 2841 get promotionBadgeStyle() { 2842 if (!(!this.myBet.betStationVouchers || this.myBet.betType === "System" || !this.myBet.promotionSubTypes?.length)) switch (this.myBet.betStationVouchers?.statusCode) { 2843 case "Success": return this.myBet.promotionSubTypes[0] === j.MoneyBackDraw ? kt.Moneybackdraw : kt.Betandget; 2844 case "VoucherNotAssignedToBetSlip": return this.myBet.status === B.Open && this.myBet.promotionSubTypes[0] === j.MoneyBackDraw ? kt.Moneybackdraw : void 0; 2845 case "VoucherInvalidOrExpired": return; 2846 default: return kt.Moneybackdraw; 2847 } 2848 } 2849 getBadgeData() { 2850 return { style: this.promotionBadgeStyle }; 2851 } 2852 get totalVoucherAmount() { 2853 return this.myBet.betStationVouchers?.vouchers?.reduce((t, s) => t + (s.amount ?? 0), 0) ?? 0; 2854 } 2855 trackSelection(t, s) { 2856 return `${t}_${s.selectionStateTitle}_${s.isLive}`; 2857 } 2858 get isBogActive() { 2859 return js(this.myBet.status, this.myBet.usedRewardToken?.additionalInformation?.bestOddsBonus); 2860 } 2861 setPaidOutAndColumns() { 2862 this.isPaidOut = this.myBet.payoutStatus === "PAID_OUT", this.showPayout = this.shouldShowPayout(), this.showEarlyPayout = this.shouldShowEarlyPayout(), this.showPromoRightColumn = this.shouldShowPromoRightColumn(), this.oneColumn = !this.showPayout && !this.showEarlyPayout && !this.showPromoRightColumn; 2863 } 2864 shouldShowPromoRightColumn() { 2865 return this.myBet.betStationVouchers !== void 0 && this.myBet.betStationVouchers.statusCode !== "VoucherNotAssignedToBetSlip"; 2866 } 2867 shouldShowEarlyPayout() { 2868 let t = [ 2869 w.Done, 2870 w.PaidOut, 2871 w.PermanentlyDisabled, 2872 w.Completed 2873 ]; 2874 return this.myBet.isPotentialEP && !this.myBet.isCachedOut && !!this.myBet.earlyPayout && !t.some((s) => s === this.myBet.earlyPayout?.state); 2875 } 2876 shouldShowPayout() { 2877 return this.myBet.freeBetInformation && this.myBet.status === B.C
2877anceled ? !1 : this.myBet.accountType === "Anonymous" ? !this.isPaidOut && (this.myBet.status === B.Won || this.myBet.status === B.Canceled || this.myBet.status === B.CashedOut) : this.isCashedOut; 2878 } 2879 checkForStatusChange() { 2880 let t = this.isCheckingPayoutStatus ? this.myBetsBetstationConfig.intervalForPayoutVerifyCalls : this.myBetsBetstationConfig.openBetReloadDataInterval, s = this.timerService.setTimeout(() => { 2881 if (this.myBet.payoutStatus === "FUNDS_TO_BE_VERIFIED" && this.isCheckingPayoutStatus) { 2882 if (this.retryCounter < 1) return; 2883 this.retryCounter--; 2884 } 2885 this.tryReloadBet(); 2886 }, t * 1e3); 2887 this.timeouts.push(s); 2888 } 2889 tryReloadBet() { 2890 this.myBet.status === B.Open && !this.isCheckingPayoutStatus && this.myBetsLoadingDialogService.show({ 2891 isRefreshing: !0, 2892 betNumber: this.myBet.receiptNumber 2893 }), Rt(this.myBetsDataService.getData(this.myBet.retailReceiptNo || this.myBet.receiptNumber)).then((t) => { 2894 if (this.myBetsLoadingDialogService.close(), !t) return; 2895 let s = t.betslip; 2896 (s.payoutStatus === "PAID_OUT" || s.status === B.CashedOut || (s.status !== B.Open || s.betDetails.some((r) => r.selectionState !== X.Open || r.isLive)) && !this.isCheckingPayoutStatus) && this.refreshBetData(t), !this.isCheckingPayoutStatus && (s.status === B.Won || s.status === B.Canceled) && (this.isCheckingPayoutStatus = !0), (this.retryCounter > 0 && s.payoutStatus === "FUNDS_TO_BE_VERIFIED" || s.status === B.Open) && this.checkForStatusChange(), this.trackLoad(); 2897 }).catch((t) => { 2898 this.logger.error(t, `Loading bet: ${this.myBet.receiptNumber} failed`); 2899 }); 2900 } 2901 refreshBetData(t) { 2902 Object.assign(this.myBet, t.betslip), this.myBet.showEarlyPayoutError = !1, this.myBetPayout = t.betslip, this.setPaidOutAndColumns(); 2903 } 2904 trackLoad() { 2905 let t = this.showPayout && this.myBet.payoutStatus === "FUNDS_AVAILABLE"; 2906 this.trackingService.trackBetsViewLoad(this.myBet.receiptNumber, t); 2907 } 2908 handleEarlyPayoutSuccess() { 2909 let t = this.timerService.setTimeout(() => { 2910 this.isCheckingPayoutStatus = !0, this.retryCounter = this.myBetsBetstationConfig.payoutVerifyRetryAttemps, this.tryReloadBet(); 2911 }, this.myBetsBetstationConfig.delayForPayoutStatusCheckAfterCashout * 1e3); 2912 this.isCashedOut = !0, this.timeouts.push(t); 2913 } 2914 getBadgeTypeMultiSingle() { 2915 let t; 2916 return this.myBet.betType === "System" && this.myBet.betDetails.some((s) => s.promotionSubType === j.MoneyBackDraw && (s.selectionState === X.Open || s.selectionState === X.Lost && this.myBet.betStationVouchers?.statusCode === "Success")) ? t = j.MoneyBackDraw : this.myBet.betType === "System" && this.myBet.betDetails.some((s) => s.promotionSubType === j.BetAndGet) && (t = j.BetAndGet), t; 2917 } 2918 }; 2919 return e.ɵfac = function(i) { 2920 return new (i || e)(); 2921 }, e.ɵcmp = U({ 2922 type: e, 2923 selectors: [["st-my-bets-view"]], 2924 hostAttrs: [1, "mybets-container"], 2925 hostVars: 2, 2926 hostBindings: function(i, t) { 2927 i & 2 && V("one-column", t.oneColumn); 2928 }, 2929 inputs: { myBetInput: "myBetInput" }, 2930 decls: 45, 2931 vars: 41, 2932 consts: [ 2933 ["scrollbar", ""], 2934 [ 2935 1, 2936 "mybets-center-column", 2937 3, 2938 "minThumbSize" 2939 ], 2940 [1, "mybets-details-container"], 2941 [1, "mybets-details"], 2942 [ 2943 1, 2944 "mybets-details-left", 2945 "mybets-type" 2946 ], 2947 [ 2948 1, 2949 "mybets-details-right", 2950 "mybets-status" 2951 ], 2952 [ 2953 3, 2954 "title", 2955 "state" 2956 ], 2957 [ 2958 1, 2959 "mybets-details", 2960 "mybets-ticket" 2961 ], 2962 [ 2963 1, 2964 "mybets-details-left", 2965 "mybets-ticket" 2966 ], 2967 [1, "mybets-details-right"], 2968 [ 2969 1, 2970 "mybets-details", 2971 "mybets-stake" 2972 ], 2973 [1, "mybets-col"], 2974 [1, "mybets-total-odds"], 2975 [1, "mybets-returns"], 2976 [1, "mybets-original-returns"], 2977 [ 2978 1, 2979 "mybets-details", 2980 "mybets-info" 2981 ], 2982 [1, "mybets-error-message"], 2983 [ 2984 1, 2985 "mybets-details", 2986 "mybets-promo" 2987 ], 2988 [ 2989 1, 2990 "mybets-promo-badge", 2991 3, 2992 "model" 2993 ], 2994 [1, "mybets-promo-info"], 2995 [ 2996 3, 2997 "myBet", 2998 "currencySymbol" 2999 ], 3000 [1, "mybets-selections-title"], 3001 [1, "mybets-selections"], 3002 [ 3003 3, 3004 "betSelection", 3005 "myBet" 3006 ], 3007 [ 3008 "visibility", 3009 "native", 3010 1, 3011 "mybets-right-column" 3012 ], 3013 [ 3014 3, 3015 "betslip", 3016 "earlyPayoutSubscription" 3017 ], 3018 [1, "theme-info-i"], 3019 [1, "mybets-promo"], 3020 [1, "mybets-payout-right-column"], 3021 [1, "mybets-promo-title"], 3022 [ 3023 1, 3024 "my-bets-promo-right-column", 3025 3, 3026 "statusCode", 3027 "statusDescription", 3028 "voucher", 3029 "collapsed" 3030 ], 3031 [ 3032 3, 3033 "paidOut", 3034 "myBet", 3035 "showCashoutConfirmed" 3036 ] 3037 ], 3038 template: function(i, t) { 3039 if (i & 1 && (l(0, "ng-scrollbar", 1, 0)(2, "div", 2)(3, "div", 3)(4, "div", 4), d(5), u(), l(6, "div", 5), d(7), v(8, "st-my-bets-status", 6), p(9, of, 1, 2, "st-my-bets-status", 6), u()(), l(10, "div", 7)(11, "div", 8), d(12), u(), p(13, af, 3, 3, "div", 9), u(), l(14, "div", 10)(15, "div", 11), d(16), l(17, "span"), d(18), $(19, "msCurrency"), u()(), l(20, "div", 11), d(21), l(22, "div", 12)(23, "span"), d(24), u(
3039), p(25, cf, 2, 1, "span"), u()(), l(26, "div", 11), d(27), l(28, "div", 13), p(29, df, 2, 1)(30, hf, 2, 1, "span", 14), p(31, mf, 3, 6, "span"), u()()(), p(32, pf, 4, 1, "div", 15), p(33, yf, 2, 1, "span", 16), l(34, "div", 17), p(35, ff, 3, 2, "st-offer-badge", 18), p(36, gf, 2, 1, "span", 19), u(), v(37, "st-my-bets-best-odds-guaranteed-info", 20), l(38, "div", 21), d(39), u(), l(40, "div", 22), Dt(41, Sf, 1, 2, "st-my-bets-selection", 23, t.trackSelection, !0), u()()(), p(43, kf, 3, 2, "ng-scrollbar", 24), p(44, Cf, 1, 2, "st-my-bets-earlypayout-container", 25)), i & 2) { 3040 let s = Nt(1); 3041 V("scrollable", s.state && s.state.isVerticallyScrollable), b("minThumbSize", t.minThumbSize), o(5), g(t.headerTitle), o(2), E(" ", t.sitecore.betStation.myBets.Status), o(), b("title", t.myBet.statusTitle)("state", t.myBet.status), o(), m(t.isPaidOut ? 9 : -1), o(3), q("", t.sitecore.betStation.myBets.TicketId, " ", t.myBet.receiptNumber), o(), m(t.myBet.betPlacedOn ? 13 : -1), o(3), E(" ", t.myBet.freeBetInformation ? t.sitecore.betStation.myBets.FreebetStake : t.sitecore.betStation.myBets.Stake, " "), o(), V("freeBetStake", t.myBet.freeBetInformation), o(), q(" ", t.currencySymbol, "", nt(19, 37, t.myBet.totalStakeInMajorCurrency, !1, 2), " "), o(3), E(" ", t.sitecore.betStation.myBets.Odds, " "), o(2), V("has-reprice", t.rePricedOdds), o(), g(t.totalOdds), o(), m(t.rePricedOdds ? 25 : -1), o(2), E(" ", t.myBet.returnsTitle, " "), o(), V("boosted", t.myBet.isOddsBoosted), o(), m(t.isPotentailReturn ? 30 : 29), o(2), m(t.myBet.isOddsBoosted ? 31 : -1), o(), m(t.rePricedOdds ? 32 : -1), o(), m(t.myBet.accaBoostErrorMessage ? 33 : -1), o(2), m(t.promotionBadgeStyle !== void 0 ? 35 : -1), o(), m(t.showPromoInfo ? 36 : -1), o(), b("myBet", t.myBet)("currencySymbol", t.currencySymbol), o(2), g(t.myBet.selectionsTitle), o(), V("mybets-selections--bog-inactive", !t.isBogActive), o(), At(t.myBet.betDetails), o(2), m(t.showPromoRightColumn || t.showPayout ? 43 : -1), o(), m(t.showEarlyPayout && !t.showPromoRightColumn ? 44 : -1); 3042 } 3043 }, 3044 dependencies: [ 3045 ec, 3046 tc, 3047 me, 3048 bn, 3049 Cn, 3050 Bn, 3051 vn, 3052 _n, 3053 tn, 3054 Me, 3055 Lt 3056 ], 3057 encapsulation: 2, 3058 changeDetection: 1 3059 }), e; 3060 })(), ii = (() => { 3061 let e = class extends he { 3062 constructor() { 3063 super(...arguments), this.sitecore = n(A), this.modalDialogService = n(Ie), this.trackingService = n(gt); 3064 } 3065 show(t) { 3066 this.openModalHandle = this.modalDialogService.openDialog(Tn, { 3067 data: { myBetInput: t }, 3068 settings: { 3069 isModalDialog: !0, 3070 cssClass: "bet-station-modal bet-station-mybets-modal", 3071 fit: !1, 3072 showDialogHeader: !0, 3073 title: this.sitecore.betStation.myBets.Title, 3074 beforeDismiss: () => this.trackClose(t.betslip.receiptNumber) 3075 } 3076 }); 3077 } 3078 trackClose(t) { 3079 return this.trackingService.trackBetsViewClose(t), !0; 3080 } 3081 }; 3082 return e.ɵfac = (() => { 3083 let i; 3084 return function(t) { 3085 return (i || (i = ht(e)))(t || e); 3086 }; 3087 })(), e.ɵprov = S({ 3088 token: e, 3089 factory: e.ɵfac, 3090 providedIn: "root" 3091 }), e; 3092 })(), si = (() => { 3093 let e = class { 3094 constructor() { 3095 this.myBetsErrorsDialogService = n(Sn), this.myBetsLoadingDialogService = n(ti), this.myBetsDataService = n(xt), this.myBetsViewDialogService = n(ii), this.userService = n(pt), this.tracingScanBetService = n(Ze); 3096 } 3097 processBetNumber(t, s) { 3098 return x(this, null, function* () { 3099 this.myBetsErrorsDialogService.close(), this.myBetsLoadingDialogService.close(), this.myBetsViewDialogService.close(), s && this.tracingScanBetService.setScanRequestReferenceId(s); 3100 let r; 3101 this.myBetsLoadingDialogService.show({ betNumber: t }); 3102 try { 3103 let a = yield Rt(this.myBetsDataService.getData(t)), y = this.getError(a); 3104 if (y) { 3105 this.myBetsErrorsDialogService.show(t, y), r = this.tracingScanBetService.getFailMessage(y); 3106 return; 3107 } 3108 this.myBetsViewDialogService.show(a), r = this.tracingScanBetService.getCompleteMessage(); 3109 } catch { 3110 r = this.tracingScanBetService.getFailMessage("TechnicalError"); 3111 } finally { 3112 this.myBetsLoadingDialogService.close(), r && this.tracingScanBetService.sendTracingMessage(r); 3113 } 3114 }); 3115 } 3116 getError(t) { 3117 if (!t) return ft.NoBetData; 3118 let s = t.betslip; 3119 return s.amlDecisionStatus === "Blocked" || s.amlDecisionStatus === "Rejected" ? ft.AmlDecisionStatusError : s.currencyCode !== this.userService.currency ? ft.DifferentCurrency : null; 3120 } 3121 }; 3122 return e.ɵfac = function(i) { 3123 return new (i || e)(); 3124 }, e.ɵprov = S({ 3125 token: e, 3126 factory: e.ɵfac, 3127 providedIn: "root" 3128 }), e; 3129 })(); 3130 })))(); 3131} 3132var Pn, ri; 3133function oi() { 3134 return (oi = Gt((() => { 3135 Vt(), Ce(), Ee(), Ps(), Pn = (() => { 3136 let e = class extends re { 3137 constructor() { 3138 let t = n(Ft); 3139 super(), this.reloadNeededStream = new _i(), t.on(ri.ResultedRaceEvent).pipe(rt()).subscribe(() => { 3140 this.reloadNeededStream.next(Es.Data); 3141 }); 3142 } 3143 isRefreshNeeded() { 3144 return this.reloadNeededStream.asObservable(); 3145 } 3146 }; 3147 return e.ɵfac = function(i) { 3148 return new (i || e)(); 3149 }, e.ɵprov = S({ 3150 token: e, 3151 factory: e.ɵfac 3152 }), e; 3153 })(), ri = { ResultedRaceEvent: "resulted-race-event" }; 3154 })))(); 3155} 3156var Tf = Gp({ SPORTS_BETSTATION_ROUTES: () => Xn }); 3157function Pf() { 3158 return ls([En]); 3159} 3160function Ef() { 3161 return [He]; 3162} 3163function Of() { 3164 return [{ 3165 provide: Mi, 3166 useClass: Qh 3167 }]; 3168} 3169function Af() { 3170 return [$p]; 3171} 3172function Nf(e, i) { 3173 if (e & 1) { 3174 let t = z(); 3175 I(0, "div")(1, "button", 0), Kt("click", function() { 3176 let s = R(t).$implicit; 3177 return M(c().selectSetting(s.id)); 3178 }), d(2), F()(); 3179 } 3180 if (e & 2) { 3181 let t = i.$implicit, s = c(); 3182 o(), V("odds-display-format__button--selected", t.id === s.currentValue), It("id", mr("odds-display-format-", t.id)), o(), E(" ", t.text, " "); 3183 } 3184} 3185function Df() { 3186 return [{ 3187 provide: re, 3188 useClass: An, 3189 multi: !0 3190 }]; 3191} 3192function If(e, i) { 3193 if (e & 1 && (l(0, "div", 4)(1, "span"), d(2), u()()), e & 2) { 3194 let t = c(2); 3195 st(t.oddsFormatMsg.class), o(2), g(t.oddsFormatMsg.msg); 3196 } 3197} 3198function Rf(e, i) { 3199 if (e & 1 && (l(0, "div", 4)(1, "span"), d(2), u()()), e & 2) { 3200 let t = c(3); 3201 st(t.oddsAcceptanceMsg.class), o(2), g(t.oddsAcceptanceMsg.msg); 3202 } 3203} 3204function Mf(e, i) { 3205 if (e & 1) { 3206 let t = z(); 3207 v(0, "div", 5), p(1, Rf, 3, 3, "div", 1), l(2, "st-odds-acceptance-settings", 2), K("valueChange", function(s) { 3208 return R(t), M(c(2).oddsAcceptanceChanged(s)); 3209 }), u(); 3210 } 3211 if (e & 2) { 3212 let t = c(2); 3213 o(), m(t.oddsAcceptanceMsg ? 1 : -1), o(), b("initialValue", t.initialOddsAcceptance); 3214 } 3215} 3216function wf(e, i) { 3217 if (e & 1) { 3218 let t = z(); 3219 l(0, "div", 0), p(1, If, 3, 3, "div", 1), l(2, "st-odds-display-format-settings", 2), K("valueChange", function(s) { 3220 return R(t), M(c().oddsFormatChanged(s)); 3221 }), u(), p(3, Mf, 3, 2), l(4, "button", 3), K("click", function() { 3222 return R(t), M(c().submit()); 3223 }), d(5), u()(); 3224 } 3225 if (e & 2) { 3226 let t = c(); 3227 o(), m(t.oddsFormatMsg ? 1 : -1), o(), b("initialValue", t.initialFormat), o(), m(t.oddsConfig.showOddsAcceptanceSettings ? 3 : -1), o(), b("disabled", !t.selectionChanged), o(), E(" ", t.buttonText, " "); 3228 } 3229} 3230function Ff() { 3231 return [ 3232 ls([rh]), 3233 { 3234 provide: uc, 3235 useClass: In 3236 }, 3237 { 3238 provide: as, 3239 useValue: as.BetStation 3240 }, 3241 { 3242 provide: Ts, 3243 useClass: We 3244 }, 3245 { 3246 provide: Is, 3247 useClass: Rn 3248 }, 3249 { 3250 provide: rc, 3251 useClass: Xa 3252 } 3253 ]; 3254} 3255function Lf() { 3256 return [{ 3257 provide: oc, 3258 useClass: lc 3259 }, ...wh()]; 3260} 3261function xf() { 3262 return [ 3263 li, 3264 di, 3265 ci 3266 ]; 3267} 3268function Vf() { 3269 return [us]; 3270} 3271function $f(e, i) { 3272 if (e & 1) { 3273 let t = z(); 3274 l(0, "div", 7), K("click", function() { 3275 return R(t), M(c(2).goBack()); 3276 })("keydown.escape", function() { 3277 return R(t), M(c(2).goBack()); 3278 })("keydown.backspace", function() { 3279 return R(t), M(c(2).goBack()); 3280 }), v(1, "i", 8), u(); 3281 } 3282} 3283function Uf(e, i) { 3284 e & 1 && Mt(0); 3285} 3286function Hf(e, i) { 3287 e & 1 && _t(0, Uf, 1, 0, "ng-container", 9), e & 2 && b("ngTemplateOutlet", c(2).headerTemplate); 3288} 3289function Gf(e, i) { 3290 if (e & 1) { 3291 let t = z(); 3292 l(0, "button", 11), K("click", function() { 3293 return R(t), M(c(3).close()); 3294 }), l(1, "span", 12), d(2), u(), v(3, "i", 13), u(); 3295 } 3296 if (e & 2) { 3297 let t = c(3); 3298 o(2), g(t.closeText), o(), b("msAutomation", "header-close-icon"); 3299 } 3300} 3301function Wf(e, i) { 3302 if (e & 1) { 3303 let t = z(); 3304 l(0, "i", 16), K("click", function() { 3305 return R(t), M(c(4).close()); 3306 })("keydown", function() { 3307 return R(t), M(c(4).close()); 3308 }), u(); 3309 } 3310 e & 2 && b("msAutomation", "header-close-icon"); 3311} 3312function qf(e, i) { 3313 if (e & 1) { 3314 let t = z(); 3315 l(0, "button", 17), K("click", function() { 3316 return R(t), M(c(4).close()); 3317 }), d(1), u(); 3318 } 3319 if (e & 2) { 3320 let t = c(4); 3321 b("msAutomation", "header-close-icon"), o(), E(" ", t.closeText, " "); 3322 } 3323} 3324function jf(e, i) { 3325 e & 1 && p(0, Wf, 1, 1, "i", 14)(1, qf, 2, 2, "button", 15), e & 2 && m(c(3).showCloseIcon ? 0 : 1); 3326} 3327function Yf(e, i) { 3328 e & 1 && p(0, Gf, 4, 2, "button", 10)(1, jf, 2, 1), e & 2 && m(c(2).showCloseBtnText ? 0 : 1); 3329} 3330function zf(e, i) { 3331 if (e & 1 && (l(0, "div", 6), d(1), u()), e & 2) { 3332 let t = c(2); 3333 o(), g(t.title); 3334 } 3335} 3336function Kf(e, i) { 3337 if (e & 1 && (l(0, "div", 2)(1, "div", 4), p(2, $f, 2, 0, "div", 5), p(3, Hf, 1, 1, "ng-container")(4, Yf, 2, 1), p(5, zf, 2, 1, "div", 6), u()()), e & 2) { 3338 let t = c(); 3339 o(), V("default-header", !t.headerTemplate), o(), m(t.showBackNav ? 2 : -1), o(), m(t.headerTemplate ? 3 : t.hideCloseButton ? -1 : 4), o(2), m(t.title ? 5 : -1); 3340 } 3341} 3342function Jf() { 3343 return [ 3344 Jh(), 3345 Af(), 3346 $h(), 3347 Mh(), 3348 gr(br(Ph())), 3349 Hd(), 3350 em(), 3351 jh(), 3352 Gh(), 3353 Vh(), 3354 xh(), 3355 ge(on), 3356 Lf(), 3357 Vf(), 3358 Of(), 3359 Df(), 3360 Ef(), 3361 pn(), 3362 Kh(), 3363 xf(), 3364 Pf(), 3365 $n(), 3366 oe, 3367 fr, 3368 qe, 3369 jt, 3370 Vp, 3371 Ze, 3372 ai, 3373 { 3374 provide: re, 3375 useClass: Pn, 3376 multi: !0 3377 }, 3378 { 3379 provide: ad, 3380 useExisting: ld 3381 }, 3382 { 3383 provide: Pl, 3384 useFactory: (e) => e.theme, 3385 deps: [Dr] 3386 }, 3387 { 3388 provide: ud, 3389 useValue: "" 3390 }, 3391 { 3392 provide: ac,
3393 useValue: jn 3394 }, 3395 { 3396 provide: im, 3397 useValue: !1 3398 }, 3399 { 3400 provide: Ea, 3401 useClass: qn 3402 }, 3403 { 3404 provide: Mr, 3405 useValue: "st." 3406 }, 3407 us, 3408 se, 3409 nc, 3410 Ka, 3411 Mp, 3412 dp, 3413 $s, 3414 { 3415 provide: np, 3416 useExisting: De 3417 }, 3418 { 3419 provide: Nd, 3420 useFactory: () => Up 3421 }, 3422 { 3423 provide: pp, 3424 useClass: Un 3425 }, 3426 Ff() 3427 ]; 3428} 3429function Xf() { 3430 return [ 3431 mi, 3432 { 3433 provide: Wr, 3434 useClass: Kn, 3435 multi: !0 3436 }, 3437 { 3438 provide: fc, 3439 useClass: zh 3440 }, 3441 ge(on), 3442 ge(Xr), 3443 { 3444 provide: Rc, 3445 useFactory: () => { 3446 let e = n(Xc); 3447 return { isOverlayOpen: () => e.isOpen() }; 3448 } 3449 } 3450 ]; 3451} 3452var N, En, On, ai, An, Nn, Dn, In, Rn, ci, li, ui, di, Mn, wn, Fn, Ln, xn, Vn, $n, Un, Hn, Gn, Yt, hi, Wn, qn, jn, mi, Yn, zn, Kn, Jn, Xn; 3453function Zn() { 3454 return (Zn = Gt((() => { 3455 fe(), Vt(), Ai(), Sr(), _r(), vr(), Ce(), Br(), Di(), Er(), Or(), Ar(), Ir(), Cr(), wr(), Vr(), $r(), Ri(), Ur(), Gr(), qr(), Yr(), jr(), zr(), Kr(), Fi(), Jr(), Hr(), Do(), To(), ta(), Xo(), Ki(), va(), os(), rs(), xi(), to(), zi(), Lo(), ba(), Ba(), Fo(), zo(), qa(), Ta(), la(), La(), eo(), Ia(), ya(), Jo(), is(), ts(), Zt(), xo(), Qi(), cs(), _a(), es(), No(), xa(), da(), Oa(), wa(), qo(), Go(), yo(), po(), ia(), Ca(), ra(), Da(), Ma(), ss(), Ee(), Io(), Ga(), ma(), ua(), fo(), Ra(), fa(), aa(), ea(), Ae(), Vo(), go(), So(), bo(), Ho(), Sa(), wo(), Yo(), _o(), vo(), Bo(), ko(), Co(), Po(), Ao(), Ro(), $a(), Wa(), ja(), sa(), Aa(), ka(), ga(), Na(), $o(), Eo(), pa(), ca(), ie(), pc(), yc(), gc(), _c(), Qu(), Bc(), dc(), Sc(), bc(), kc(), Cc(), Tc(), Pc(), hc(), Ec(), mc(), vc(), td(), Fd(), Ld(), xd(), Oc(), Ic(), Ac(), Nc(), hs(), ms(), Dc(), ed(), Vd(), $d(), xc(), wc(), Fc(), Lc(), _s(), Jc(), Zc(), xs(), Qc(), rm(), tl(), el(), il(), sl(), nl(), Ud(), Rs(), gs(), th(), om(), vs(), Ss(), $c(), Uc(), Hc(), am(), Wd(), id(), cm(), rl(), ks(), ol(), al(), cl(), Cs(), Gc(), Wc(), dl(), hl(), ml(), qc(), jc(), Yc(), bs(), pl(), yl(), fl(), gl(), Sl(), _l(), vl(), Bl(), kl(), Cl(), Tl(), El(), Ol(), Al(), Nl(), od(), cd(), lm(), qd(), Dl(), Il(), jd(), Yd(), zd(), sd(), Rl(), Ml(), wl(), Fl(), Ll(), xl(), Vl(), $l(), Ul(), Ps(), Hl(), Gl(), Wl(), ql(), jl(), Kd(), Yl(), zl(), Kl(), dd(), um(), wd(), rd(), dm(), Jl(), Xl(), Zl(), Ql(), Jd(), tu(), eu(), hm(), iu(), su(), nu(), ru(), ou(), au(), mm(), lu(), uu(), du(), vd(), hu(), mu(), pu(), Ad(), Hh(), Bd(), Xd(), Zd(), pm(), Vs(), yu(), fu(), Qd(), fm(), gu(), gm(), Su(), bu(), Sm(), vu(), Au(), _u(), ku(), Cu(), cu(), Tu(), Pu(), Eu(), Ou(), Os(), Bu(), Nu(), hd(), md(), eh(), bm(), _m(), Du(), vm(), Bm(), yd(), oh(), ah(), km(), Ru(), Cm(), ch(), lh(), Tm(), dh(), Mu(), wu(), Ns(), hh(), Pm(), Id(), Dd(), Em(), Om(), fd(), Fu(), Am(), Nm(), Cd(), Td(), Pd(), Ed(), Od(), Lu(), ih(), mh(), Dm(), Im(), xu(), Vu(), Rm(), kd(), Mm(), $u(), wm(), Uu(), Hu(), Gu(), Wu(), qu(), Md(), Fm(), Lm(), xm(), Vm(), Sd(), $m(), Um(), ju(), Hm(), ph(), yh(), fh(), wp(), we(), Ue(), Qs(), hn(), rn(), Us(), sn(), qm(), gd(), Ms(), Hs(), qs(), ep(), ip(), sp(), zs(), en(), vh(), Ks(), ni(), oi(), Ge(), ze(), Hp(), lp(), Yu(), up(), Bh(), kh(), Ch(), nd(), Eh(), uh(), zu(), Ku(), Oh(), Ah(), Nh(), Dh(), Ih(), Ju(), Xu(), Zu(), Th(), hp(), mp(), yp(), fp(), gp(), Sp(), bp(), _p(), vp(), Bp(), kp(), Cp(), Tp(), Pp(), Ap(), Ep(), Op(), Np(), Ip(), N = (function(e) { 3456 return e.AddPick = "AddPick", e.AddBabPick = "AddBABPick", e.RequestRemovePick = "RequestRemovePick", e.RequestRemoveMultiplePicks = "RequestRemoveMultiplePicks", e.ToggleWinPick = "ToggleWinPick", e.AddGroupPick = "AddGroupPick", e.RemoveGroupPick = "RemoveGroupPick", e.RequestRemoveAllPicks = "RequestRemoveAllPicks", e.UpdateBetslipType = "UpdateBetslipType", e; 3457 })(N || {}), En = (() => { 3458 let e = class { 3459 constructor() { 3460 this.actions$ = n(cc), this.nativeAppService = n(Te), this.screenService = n(oe), this.handleCrossScreenActions$ = ct(() => this.actions$.pipe(lt(Fh.saveState), Y((t) => { 3461 let s = "TopScreen"; 3462 this.screenService.getScreen() === "TopScreen" && (s = "MainScreen"), this.nativeAppService.sendToNative({ 3463 eventName: "NgRxAction", 3464 parameters: { 3465 action: t, 3466 targetScreen: s 3467 } 3468 }); 3469 }), ut()), { dispatch: !1 }), this.handleCrossScreenAddPickAction$ = ct(() => this.actions$.pipe(lt(Ne, Bt.pickSelectionChanged), H((t) => t.source === L.Local), Y((t) => { 3470 this.nativeAppService.sendToNative({ 3471 eventName: "NgRxAction", 3472 parameters: { 3473 action: { 3474 actionType: N.AddPick, 3475 pickId: t.pickId.toString(), 3476 priceId: t.priceId, 3477 tracking: t.tracking, 3478 boostType: t.boostType, 3479 groupInfo: t.groupInfo, 3480 isBetBuilderEnabled: t.isBetBuilder, 3481 isRacingPick: t.isRacingPick 3482 }, 3483 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3484 } 3485 }); 3486 }), ut()), { dispatch: !1 }), this.handleCrossScreenAddBetBuilderPickAction$ = ct(() => this.actions$.pipe(lt(Et.addBetBuilderPick), H((t) => t.source === L.Local), Y((t) => { 3487 this.nativeAppService.sendToNative({ 3488 eventName: "NgRxAction", 3489 parameters: { 3490 action: this.mapAddBABPickActionMessage(t), 3491 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3492 } 3493 }); 3494 }), ut()), { dispatch: !1 }), this.handleCrossScreenAddGroupPickAction$ = ct(() => this.actions$.pipe(lt(Et.addGroupPick), H((t) => t.source === L.Local), Y((t) => { 3495 this.nativeAppService.sendToNative({ 3496 eventName: "NgRxAction", 3497 parameters: { 3498 action: this.mapAddGroupPickActionMessage(t), 3499 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3500 } 3501 }); 3502 }), ut()), { dispatch: !1 }), this.handleCrossScreenRemoveGroupPickAction$ = ct(() => this.actions$.pipe(lt(Et.removePicksFromGroup), H((t) => t.source === L.Local), Y((t) => { 3503 this.nativeAppService.sendToNative({ 3504 eventName: "NgRxAction", 3505 parameters: { 3506 action: this.mapRemoveGroupPickActionMessage(t), 3507 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3508 } 3509 }); 3510 }), ut()), { dispatch: !1 }), this.handleCrossScreenToggleWinPickAction$ = ct(() => this.actions$.pipe(lt(Et.toggleWinPick), Y((t) => { 3511 this.nativeAppService.sendToNative({ 3512 eventName: "NgRxAction", 3513 parameters: { 3514 action: this.mapToggleWinPickActionMessage(t), 3515 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3516 } 3517 }); 3518 }), ut()), { dispatch: !1 }), this.handleCrossScreenBetTypeAction$ = ct(() => this.actions$.pipe(lt(Ds.setSelectedType), H((t) => t.source === L.Local), Y((t) => { 3519 this.nativeAppService.sendToNative({ 3520 eventName: "NgRxAction", 3521 parameters: { 3522 action: this.mapUpdateBetslipTypeActionMessage(t), 3523 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3524 } 3525 }); 3526 }), ut()), { dispatch: !1 }), this.handleCrossScreenRequestRemovePickAction$ = ct(() => this.actions$.pipe(lt(Bt.requestRemovePick), H((t) => t.source === L.Local), Y((t) => { 3527 this.nativeAppService.sendToNative({ 3528 eventName: "NgRxAction", 3529 parameters: { 3530 action: { 3531 actionType: N.RequestRemovePick, 3532 pickId: t.pickId.toString() 3533 }, 3534 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3535 } 3536 }); 3537 }), ut()), { dispatch: !1 }), this.handleCrossScreenRequestRemoveMultiplePicksAction$ = ct(() => this.actions$.pipe(lt(Bt.requestRemoveMultiplePicks), H((t) => t.source === L.Local), Y((t) => { 3538 this.nativeAppService.sendToNative({ 3539 eventName: "NgRxAction", 3540 parameters: { 3541 action: { 3542 actionType: N.RequestRemoveMultiplePicks, 3543 pickId: t.pickIds.toString() 3544 }, 3545 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3546 } 3547 }); 3548 }), ut()), { dispatch: !1 }), this.handleCrossScreenRequestRemoveAllPicksAction$ = ct(() => this.actions$.pipe(lt(Bt.requestRemoveAllPicks), H((t) => t.source === L.Local), Y(() => { 3549 this.nativeAppService.sendToNative({ 3550 eventName: "NgRxAction", 3551 parameters: { 3552 action: { actionType: N.RequestRemoveAllPicks }, 3553 targetScreen: this.getTargetScreenFor(this.screenService.getScreen()) 3554 } 3555 }); 3556 }), ut()), { dispatch: !1 }); 3557 } 3558 mapAddBABPickActionMessage(t) { 3559 return { 3560 actionType: N.AddBabPick, 3561 pickId: t.pickId.toString(), 3562 tracking: t.tracking, 3563 eventData: t.eventData, 3564 additionalInfo: t.additionalInfo 3565 }; 3566 } 3567 mapAddGroupPickActionMessage(t) { 3568 return { 3569 actionType: N.AddGroupPick, 3570 picks: t.picks.map((s) => { 3571 var r = s, { clientData: a } = r; 3572 return ir(r, ["clientData"]); 3573 }) 3574 }; 3575 } 3576 mapRemoveGroupPickActionMessage(t) { 3577 return { 3578 actionType: N.RemoveGroupPick, 3579 pickIds: t.pickIds 3580 }; 3581 } 3582 mapToggleWinPickActionMessage(t) { 3583 return { 3584 actionType: N.ToggleWinPick, 3585 pickId: t.pickId.toString() 3586 }; 3587 } 3588 mapUpdateBetslipTypeActionMessage(t) { 3589 return { 3590 actionType: N.UpdateBetslipType, 3591 betslipType: t.betslipType, 3592 selectedByUser: t.selectedByUser, 3593 systeminfo: t.systemInfo 3594 }; 3595 } 3596 getTargetScreenFor(t) { 3597 switch (t) { 3598 case "TopScreen": return "MainScreen"; 3599 case "MainScreen": return "TopScreen"; 3600 default: return "Unknown"; 3601 } 3602 } 3603 }; 3604 return e.ɵfac = function(i) { 3605 return new (i || e)(); 3606 }, e.ɵprov = S({ 3607 token: e, 3608 factory: e.ɵfac 3609 }), e; 3610 })(), On = (() => { 3611 let e = class { 3612 constructor() { 3613 this.injector = n(Bi), this.routerEventsService = n(oa), this.breadcrumbService = n(tm), this.media = n(Mi), this.destroyRef = n(Tt), this.rebuildBreadcrumbs = () => this.activationEnded(this.lastActivationEnd); 3614 let t = n(wt); 3615 this.logger = t.getLogger("BreadcrumbsBoostrapService"); 3616 } 3617 onAppInit() { 3618 this.media.observe().subscribe(() => this.rebuildBreadcrumbs()), this.routerEventsService.currentActivationEnd.pipe(rt(this.destroyRef)).subscribe((t) => this.activationEnded(t)); 3619 } 3620 activationEnded(t) { 3621 if (!t) return; 3622 this.lastActivationEnd = t; 3623 let s = this.findFirstBreadcrumbResolver(t.snapshot); 3624 if (!s) { 3625 this.breadcrumbService.setBreadcrumbs([]); 3626 return; 3627 } 3628 let r = bd(s, t.snapshot, this.injector); 3629 if (!r) { 3630 this.logger.error(`Could not resolve Breadcrumbs resolver: ${s} - route: ${t}`); 3631 return; 3632 } 3633 let a = t.snapshot.data.model, y = r.resolve(a); 3634 this.breadcrumbService.setBreadcrumbs(y); 3635 } 3636 findFirstBreadcrumbResolver(t) { 3637 let s = t; 3638 for (; s && (!s.data || !s.data.breadcrumbs);) s = s.parent; 3639 return s && s.data.breadcrumbs; 3640 } 3641 }; 3642 return e.ɵfac = function(i) { 3643 return new (i || e)(); 3644 }, e.ɵprov = S({ 3645 token: e, 3646 factory: e.ɵfac, 3647 providedIn: "root" 3648 }), e; 3649 })(), ai = (() => { 3650 let e = class extends ce { 3651 getInitMessage() { 3652 throw new Error("RetailTracingScanFreeBetService.getInitMessage should not be called!"); 3653 } 3654 getCompleteMessage() { 3655 let t = this.getAndResetRequestReferenceId(); 3656 return t ? this.retailTracingFactory.createTracingCompleteMessage(dt.ScanFreeBetComplete, t) : null; 3657 } 3658 getFailMessage(t) { 3659 let s = this.getAndResetRequestReferenceId(); 3660 return s ? this.retailTracingFactory.createTracingFailMessage(dt.ScanFreeBetError, s, t) : null; 3661 } 3662 setScanRequestReferenceId(t) { 3663 this.setRequestReferenceId(t); 3664 } 3665 }; 3666 return e.ɵfac = (() => { 3667 let i; 3668 return function(t) { 3669 return (i || (i = ht(e)))(t || e); 3670 }; 3671 })(), e.ɵprov = S({ 3672 token: e, 3673 factory: e.ɵfac, 3674 providedIn: "root" 3675 }), e; 3676 })(), An = (() => { 3677 let e = class extends re { 3678 constructor() { 3679 let t = n(Ft); 3680 super(), this.reloadNeededStream = new _i(), t.on(ee.M2UserClaimsChanged).pipe(rt()).subscribe(() => this.reloadNeededStream.next(Es.Data)); 3681 } 3682 isRefreshNeeded() { 3683 return this.reloadNeededStream.asObservable(); 3684 } 3685 }; 3686 return e.ɵfac = function(i) { 3687 return new (i || e)(); 3688 }, e.ɵprov = S({ 3689 token: e, 3690 factory: e.ɵfac 3691 }), e; 3692 })(), Nn = (() => { 3693 let e = class { 3694 constructor() { 3695 this.sitecore = n(A), this.displayFormats = [], this.valueChange = zt(); 3696 } 3697 selectSetting(t) { 3698 t !== this.currentValue && (this.valueChange.emit(t), this.currentValue = t); 3699 } 3700 ngOnInit() { 3701 this.displayFormats = this.getDisplayFormats(), this.currentValue = this.initialValue; 3702 } 3703 getDisplayFormats() { 3704 return [{ 3705 id: "UK", 3706 text: this.sitecore.betStation.settings.odds.FormatTextUK 3707 }, {
3708 id: "EU", 3709 text: this.sitecore.betStation.settings.odds.FormatTextEU 3710 }]; 3711 } 3712 }; 3713 return e.ɵfac = function(i) { 3714 return new (i || e)(); 3715 }, e.ɵcmp = U({ 3716 type: e, 3717 selectors: [["st-odds-display-format-settings"]], 3718 inputs: { initialValue: "initialValue" }, 3719 outputs: { valueChange: "valueChange" }, 3720 decls: 2, 3721 vars: 0, 3722 consts: [[ 3723 1, 3724 "odds-display-format__button", 3725 3, 3726 "click", 3727 "id" 3728 ]], 3729 template: function(i, t) { 3730 i & 1 && Dt(0, Nf, 3, 5, "div", null, Be), i & 2 && At(t.displayFormats); 3731 }, 3732 styles: ["[_nghost-%COMP%]{--%NS%sports-selected-button-bg-color: var(--%NS%theme-cta-01);--%NS%sports-selected-button-color: var(--%NS%color-white);--%NS%sports-odds-setting-button-bg-color: var(--%NS%theme-gray-tint);--%NS%sports-odds-setting-button-color: var(--%NS%theme-body);--%NS%sports-odds-setting-button-border: var(--%NS%theme-body-20)}.th-coral-betstation[_nghost-%COMP%], .th-coral-betstation [_nghost-%COMP%]{--%NS%sports-selected-button-bg-color: var(--%NS%theme-cta-02);--%NS%sports-selected-button-color: var(--%NS%theme-body);--%NS%sports-odds-setting-button-bg-color: var(--%NS%color-white);--%NS%sports-odds-setting-button-border: var(--%NS%theme-body)}.odds-display-format__button[_ngcontent-%COMP%]{margin-bottom:20px;text-transform:uppercase;width:100%;border-radius:5px;padding:16px;border:1px solid var(--%NS%sports-odds-setting-button-border);background:var(--%NS%sports-odds-setting-button-bg-color);color:var(--%NS%sports-odds-setting-button-color);font-weight:600;font-size:18px}.odds-display-format__button--selected[_ngcontent-%COMP%]{background-color:var(--%NS%sports-selected-button-bg-color);color:var(--%NS%sports-selected-button-color);border:1px solid var(--%NS%sports-selected-button-bg-color)}"], 3733 changeDetection: 1 3734 }), e; 3735 })(), Dn = (() => { 3736 let e = class { 3737 constructor() { 3738 this.activeModal = n(Ji), this.sitecore = n(A), this.userService = n(pt), this.userSettingsService = n(Ja), this.trackingService = n(le), this.oddsConfig = n(co), this.oddsSettings = n(De), this.store = n(Oe), this.dispatcher = n(Ft), this.bettingSettingsService = n(sc), this.userOddsFormatSettingsService = n(Za), this.timerService = n(Lr), this.destroyRef = n(Tt), this.buttonText = this.sitecore.betStation.settings.odds.SaveChanges, this.destroyRef.onDestroy(() => { 3739 this.timerService.clearTimeout(this.closeTimeoutId); 3740 }), this.settingsInitialized$ = this.bettingSettingsService.bettingSettings$.pipe(bt(1), Y((t) => { 3741 this.isAnonymousUser || (this.settings = Object.assign({}, t)), this.oddsConfig.showOddsAcceptanceSettings && (this.initialOddsAcceptance = vt[t.oddsAcceptanceMode], this.selectedOddsAcceptance = this.initialOddsAcceptance); 3742 })); 3743 } 3744 ngOnInit() { 3745 return x(this, null, function* () { 3746 this.isAnonymousUser = this.userService.isAnonymous, this.initialFormat = this.userOddsFormatSettingsService.oddsFormat() || "UK", this.selectedFormat = this.initialFormat, this.selectionChanged = !1, this.clearAllMessages(); 3747 }); 3748 } 3749 clearAllMessages() { 3750 this.oddsAcceptanceMsg = null, this.oddsFormatMsg = null; 3751 } 3752 oddsAcceptanceChanged(t) { 3753 t !== this.selectedOddsAcceptance && (this.selectedOddsAcceptance = t, this.selectionChanged = !0); 3754 } 3755 oddsFormatChanged(t) { 3756 t !== this.selectedFormat && (this.selectedFormat = t, this.selectionChanged = !0); 3757 } 3758 submit() { 3759 this.hasOddsAcceptanceChanges && (this.isAnonymousUser ? this.oddsSettings.setOddsAcceptance(this.selectedOddsAcceptance) : this.handleOddsAcceptance(this.selectedOddsAcceptance), this.trackingService.trackSaveSetting(W.
3759settingsOrigin, W.acceptanceChanged, this.selectedOddsAcceptance, this.initialOddsAcceptance)), this.hasOddsFormatChanges && (this.isAnonymousUser ? this.userSettingsService.setOddsFormat(this.selectedFormat) : this.handleOddsFormatChange(this.selectedFormat), this.trackingService.trackSaveSetting(W.settingsOrigin, W.formatChanged, this.selectedFormat, this.initialFormat)), this.isAnonymousUser && this.close(); 3760 } 3761 handleOddsAcceptance(t) { 3762 return x(this, null, function* () { 3763 try { 3764 this.selectionChanged = !1, this.settings.oddsAcceptanceMode = t.toString(), (yield this.userSettingsService.set(this.settings)).succeeded ? this.oddsAcceptanceMsg = { 3765 class: "theme-check success", 3766 msg: this.sitecore.bettingPreferences.UpdateSuccess 3767 } : this.oddsAcceptanceMsg = { 3768 class: "theme-error-i error", 3769 msg: this.sitecore.bettingPreferences.UpdateFail 3770 }, this.store.dispatch(Ye.oddsAcceptanceChanged()), this.hasOddsFormatChanges || this.closePopup(), this.dispatcher.dispatch(ee.UserSettingsChanged, this.settings); 3771 } catch { 3772 this.selectionChanged = !0, this.oddsAcceptanceMsg = { 3773 class: "theme-error-i error", 3774 msg: this.sitecore.bettingPreferences.UpdateFail 3775 }, this.closePopup(); 3776 } 3777 }); 3778 } 3779 handleOddsFormatChange(t) { 3780 return x(this, null, function* () { 3781 try { 3782 this.selectionChanged = !1, (yield this.oddsSettings.setOddsFormat(t, this.isAnonymousUser)).oddsFormatLimitReached ? this.oddsFormatMsg = { 3783 class: "theme-error-i error", 3784 msg: this.sitecore.bettingPreferences.MaxOddsChangesError 3785 } : (this.oddsFormatMsg = { 3786 class: "theme-check success", 3787 msg: this.sitecore.bettingPreferences.UpdateSuccess 3788 }, this.oddsSettings.handleTopScreenNavigation(t), this.dispatcher.dispatch(ee.M2UserClaimsChanged)), this.closePopup(); 3789 } catch { 3790 this.selectionChanged = !0, this.oddsFormatMsg = { 3791 class: "theme-error-i", 3792 msg: this.sitecore.bettingPreferences.UpdateFail 3793 }, this.closePopup(); 3794 } 3795 }); 3796 } 3797 closePopup() { 3798 this.timerService.clearTimeout(this.closeTimeoutId), this.closeTimeoutId = this.timerService.setTimeout(() => { 3799 this.close(); 3800 }, 3e3); 3801 } 3802 close() { 3803 this.activeModal.close(); 3804 } 3805 get hasOddsAcceptanceChanges() { 3806 return this.selectedOddsAcceptance !== this.initialOddsAcceptance; 3807 } 3808 get hasOddsFormatChanges() { 3809 return this.selectedFormat !== this.initialFormat; 3810 } 3811 }; 3812 return e.ɵfac = function(i) { 3813 return new (i || e)(); 3814 }, e.ɵcmp = U({ 3815 type: e, 3816 selectors: [["st-odds-settings-modal"]], 3817 decls: 2, 3818 vars: 3, 3819 consts: [ 3820 [1, "odds-settings__content"], 3821 [ 3822 1, 3823 "odds-settings-messages", 3824 3, 3825 "class" 3826 ], 3827 [ 3828 3, 3829 "valueChange", 3830 "initialValue" 3831 ], 3832 [ 3833 1, 3834 "btn", 3835 "btn-secondary", 3836 "btn-xlg", 3837 "odds-settings__submit", 3838 3, 3839 "click", 3840 "disabled" 3841 ], 3842 [1, "odds-settings-messages"], 3843 [1, "odds-settings__separator"] 3844 ], 3845 template: function(i, t) { 3846 i & 1 && (p(0, wf, 6, 5, "div", 0), $(1, "async")), i & 2 && m(Xt(1, 1, t.settingsInitialized$) ? 0 : -1); 3847 }, 3848 dependencies: [ 3849 je, 3850 Nn, 3851 pr 3852 ], 3853 styles: ["[_nghost-%COMP%]{--%NS%sports-odds-settings-separator-color: var(--%NS%theme-body-50)}.odds-settings__content[_ngcontent-%COMP%]{margin:40px 24px;min-height:120px}
3853.odds-settings__separator[_ngcontent-%COMP%]{border-top:1px solid var(--%NS%sports-odds-settings-separator-color);margin:20px 0}.odds-settings__submit[_ngcontent-%COMP%]{margin-top:20px}"], 3854 changeDetection: 1 3855 }), e; 3856 })(), In = (() => { 3857 let e = class { 3858 constructor() { 3859 this.RewardTokensActions = Oo, this.moduleLoader = n(pd), this.sportsUserSettings = n(Pe), this.lineSwitcherConfig = n(Hi), this.betslipOnboardingConfig = n(Yi), this.betslipUpsellConfig = n(Ui), this.overAskConfig = n(Gi), this.notificationsConfig = n(Wi), this.teaserBetConfig = n(qi), this.styles = n(Pa), this.loadedStyles = Pi(this.styles.loadStyles([{ 3860 id: "betslip", 3861 type: "theme" 3862 }])); 3863 } 3864 loadBetslipModule() { 3865 return _e([ 3866 this.loadedStyles, 3867 this.sportsUserSettings.whenReady.pipe(bt(1)), 3868 this.lineSwitcherConfig.whenReady.pipe(bt(1)), 3869 this.betslipOnboardingConfig.whenReady.pipe(bt(1)), 3870 this.betslipUpsellConfig.whenReady.pipe(bt(1)), 3871 this.overAskConfig.whenReady.pipe(bt(1)), 3872 this.notificationsConfig.whenReady.pipe(bt(1)), 3873 this.teaserBetConfig.whenReady.pipe(bt(1)), 3874 this.moduleLoader.loadModule("BetslipBetStationModule", () => import("./chunk-or5fkbzy.js").then((t) => t.BetslipBetStationModule)) 3875 ]).pipe(Se(([, , , , , , , , t]) => t.instance)); 3876 } 3877 }; 3878 return e.ɵfac = function(i) { 3879 return new (i || e)(); 3880 }, e.ɵprov = S({ 3881 token: e, 3882 factory: e.ɵfac 3883 }), e; 3884 })(), Rn = (() => { 3885 let e = class extends Is { 3886 isValidInput(t) { 3887 return this.isSeparator(t) || this.validateRegex.test(t); 3888 } 3889 }; 3890 return e.ɵfac = (() => { 3891 let i; 3892 return function(t) { 3893 return (i || (i = ht(e)))(t || e); 3894 }; 3895 })(), e.ɵprov = S({ 3896 token: e, 3897 factory: e.ɵfac 3898 }), e; 3899 })(), ci = (() => { 3900 let e = class { 3901 constructor() { 3902 this.freebetPersistenceService = n(Ve), this.urlHelper = n(se), this.freeBetRetailService = n(xe), this.redirectHelperService = n(Re), this.menuActionsService = n(wi), this.freebetDetailsDialogService = n(Fe), this.freebetErrorDialogService = n(ae), this.freebetTrackingService = n(ln), this.freeBetTokenService = n(ic); 3903 } 3904 onAppInit() { 3905 this.menuActionsService.register("openFreebetMenu", this.navigateToFreebet.bind(this)), this.menuActionsService.register("exitFreebetMode", this.exitFreeBetMode.bind(this)), this.menuActionsService.register("openFreebetCriteria", this.openFreeBetCriteria.bind(this)); 3906 } 3907 navigateToFreebet() { 3908 this.freebetTrackingService.trackFreebetNavigation(); 3909 let t = this.urlHelper.getFreebetMenuUrl(); 3910 this.redirectHelperService.goToPage(t); 3911 } 3912 exitFreeBetMode() { 3913 return x(this, null, function* () { 3914 if (yield this.freeBetTokenService.canRemove()) { 3915 let t = yield Rt(this.freeBetRetailService.cancel(Lp.Close)); 3916 t && t.statusCode !== Le.Success && this.freebetErrorDialogService.openErrorDialog(t.statusCode); 3917 } 3918 }); 3919 } 3920 openFreeBetCriteria() { 3921 this.freebetTrackingService.trackFreeBetCriteria(); 3922 let t = this.freebetPersistenceService.getFreeBetDetails(); 3923 t && this.freebetDetailsDialogService.showDetailsDialog(t, !1); 3924 } 3925 }; 3926 return e.ɵfac = function(i) { 3927 return new (i || e)(); 3928 }, e.ɵprov = S({ 3929 token: e, 3930 factory: e.ɵfac, 3931 providedIn: "root" 3932 }), e; 3933 })(), li = (() => { 3934 let e = class { 3935 constructor() { 3936 this.columnBootstrap = n(Iu); 3937 } 3938 onAppInit() { 3939 this.columnBootstrap.initializeLayout(this.createLayout()); 3940 } 3941 createLayout() { 3942 return new na(1); 3943 } 3944 }; 3945 return e.ɵfac = function(i) { 3946 return new (i || e)(); 3947 }, e.ɵprov = S({ 3948 token: e, 3949 factory: e.ɵfac, 3950 providedIn: "root" 3951 }), e; 3952 })(), ui = (() => { 3953 let e = class { 3954 constructor() { 3955 this.freebetErrorDialogService = n(ae), this.freebetPersistenceService = n(Ve); 3956 } 3957 isScanAvailable() { 3958 return this.freebetPersistenceService.getUserFreeBetId() ? (this.freebetErrorDialogService.openErrorDialog(cn.FreeBetActivated), !1) : !0; 3959 } 3960 }; 3961 return e.ɵfac = function(i) { 3962 return new (i || e)(); 3963 }, e.ɵprov = S({ 3964 token: e, 3965 factory: e.ɵfac, 3966 providedIn: "root" 3967 }), e; 3968 })(), di = (() => { 3969 let e = class { 3970 constructor() { 3971 this.nativeAppService = n(Te), this.eventsService = n(Ii), this.redirectHelper = n(Re), this.screenService = n(oe), this.myBetsProcessor = n(si), this.oddsSettingService = n(De), this.dispatcher = n(Ft), this.store = n(Oe), this.scannerAvailabilityService = n(ui), this.sessionStore = n(Rr), this.userService = n(xr), this.clientConfig = n(Tr), this.myBetsDataService = n(xt), this.urlService = n(kr), this.urlHelperService = n(se), this.eventDetailsService = n(bl), this.loggerFactory = n(wt), this.logger = this.loggerFactory.getLogger("TerminalBootstrapService"); 3972 } 3973 onAppInit() { 3974 let t = this.screenService.getScreen(); 3975 this.nativeAppService.eventsFromNative.subscribe((s) => x(this, null, function* () { 3976 if (s.eventName === "NavigateToFullUrl") { 3977 let r = s.parameters; 3978 if (r && t === r.targetScreen) { 3979 let a = s.parameters?.href; 3980 s.parameters?.betFilterParams && t === "MainScreen" && this.sessionStore.set("horse-racing-bet-filter-request", s.parameters?.betFilterParams), this.redirectHelper.goToPage(a); 3981 } 3982 } 3983 if (s.eventName === "OddsSettingsChange") { 3984 let r = s.parameters; 3985 r && (this.userService.isAnonymous || !this.userService.isAuthenticated ? this.oddsSettingService.setOddsFormat(r.format, !0) : yield this.clientConfig.reload([Pe, ao]), this.dispatcher.dispatch(ee.M2UserClaimsChanged)); 3986 } 3987 if (s.eventName === "NgRxAction") { 3988 let r = s.parameters; 3989 if (r && t === r.targetScreen) { 3990 if (this.isAddPickAction(r.action)) { 3991 let a = this.createPickId(r.action.pickId); 3992 a && this.store.dispatch(Ne({ 3993 pickId: a, 3994 tracking: r.action.tracking, 3995 priceId: r.action.priceId, 3996 boostType: r.action.boostType, 3997 groupInfo: r.action.groupInfo, 3998 isBetBuilder: r.action.isBetBuilderEnabled, 3999 isRacingPick: r.action.isRacingPick 4000 }, L.Remote)); 4001 } 4002 if (this.isAddBABPickAction(r.action)) { 4003 let a = this.createPickId(r.action.pickId); 4004 a && this.store.dispatch(Et.addBetBuilderPick({ 4005 pickId: a, 4006 tracking: r.action.tracking, 4007 eventData: r.action.eventData, 4008 additionalInfo: r.action.additionalInfo 4009 }, L.Remote)); 4010 } 4011 if (this.isAddGroupPickAction(r.action) && r.action.picks.length && (r.action.picks.map((a) => a.pickId = this.createPickId(a.pickId.id)), this.store.dispatch(Et.addGroupPick({ picks: r.action.picks }, L.Remote))), this.isRequestRemovePickAction(r.action)) { 4012 let a = this.createPickId(r.action.pickId); 4013 a && this.store.dispatch(Bt.requestRemovePick({ pickId: a }, L.Remote)); 4014 } 4015 if (this.isRequestRemoveMultiplePicksAction(r.action)) { 4016 let a = []; 4017 r.action.pickId.split(",").forEach((y) => { 4018 a.push(this.createPickId(y)); 4019 }), this.store.dispatch(Bt.requestRemoveMultiplePicks({ pickIds: a }, L.Remote)); 4020 } 4021 if (this.isToggleWinPickAction(r.action)) { 4022 let a = this.createPickId(r.action.pickId); 4023 a && this.store.dispatch(Bt.toggleWinPick({ pickId: a })); 4024 } 4025 if (this.isRemoveGroupPickAction(r.action) && r.action.pickIds.length) { 4026 let a = []; 4027 r.action.pickIds.forEach((y) => a.push(this.createPickId(y.id))), this.store.dispatch(Et.removePicksFromGroup({ pickIds: a }, L.Remote)); 4028 } 4029 this.isRequestRemoveAllPicksAction(r.action) && this.store.dispatch(Bt.requestRemoveAllPicks(L.Remote)), this.isUpdateBetslipTypeAction(r.action) && this.store.dispatch(Ds.setSelectedType({ 4030 betslipType: r.action.betslipType, 4031 selectedByUser: r.action.selectedByUser, 4032 systemInfo: r.action.systeminfo 4033 }, L.Remote)); 4034 } 4035 } 4036 if (s.eventName === "LanguageUpdated") { 4037 let r = s.parameters; 4038 if (t === "TopScreen" && r?.routeValue) { 4039 let a = this.urlService.current(), y = a.search.get("redirect-home") ? this.urlService.parse(this.urlHelperService.getTopScreenBaseUrl()) : a; 4040 y.changeCulture(r.routeValue), this.redirectHelper.goToPage(y.url()); 4041 } 4042 } 4043 })), t === "MainScreen" && this.eventsService.events.subscribe((s) => { 4044 if (s?.eventName === "BetReceipt" || s?.eventName === "RetailReceiptNumber") { 4045 let r = s?.data; 4046 this.scannerAvailabilityService.isScanAvailable() && r?.barcode && (this.myBetsDataService.isBetScan = !0, this.myBetsProcessor.processBetNumber(r.barcode, r.reqRefId)); 4047 return; 4048 } 4049 if (s?.data?.eventName === "EXIT_LOYALTY_MODE") { 4050 this.nativeAppService.sendToNative({ 4051 eventName: Fr.LOGOUT, 4052 parameters: { systemLogout: !1 } 4053 }); 4054 return; 4055 } 4056 if (s?.eventName === "OneTwoFree") { 4057 let r = this.urlHelperService.getPromoUrl(s.data?.barcode); 4058 this.redirectHelper.goToPage(r); 4059 return; 4060 } 4061 s?.eventName === "AddToBetslip" && s?.data?.picks?.map((r) => x(this, null, function* () { 4062 let a = yield this.eventDetailsService.getModel(r.fixtureId); 4063 if (a?.model) { 4064 let y = a.model.optionGroups.find((f) => f.id === r.marketId)?.options.filter((f) => f.id === Number(r.optionId)).shift(); 4065 if (y) { 4066 let f = Number(y?.priceId), _ = new ns(r.fixtureId, parseInt(r.marketId, 10), parseInt(r.optionId, 10), f); 4067 this.store.dispatch(Ne({ 4068 pickId: _, 4069 tracking: { source: s.data?.source } 4070 })); 4071 } 4072 } 4073 })); 4074 }); 4075 } 4076 isAddPickAction(t) { 4077 return t.actionType === N.AddPick; 4078 } 4079 isAddBABPickAction(t) { 4080 return t.actionType === N.AddBabPick; 4081 } 4082 isAddGroupPickAction(t) { 4083 return t.actionType === N.AddGroupPick; 4084 } 4085 isRequestRemovePickAction(t) { 4086 return t.actionType === N.RequestRemovePick; 4087 } 4088 isRemoveGroupPickAction(t) { 4089 return t.actionType === N.RemoveGroupPick; 4090 } 4091 isUpdateBetslipTypeAction(t) { 4092 return t.actionType === N.UpdateBetslipType; 4093 } 4094 isToggleWinPickAction(t) { 4095 return t.actionType === N.ToggleWinPick; 4096 } 4097 isRequestRemoveMultiplePicksAction(t) { 4098 return t.actionType === N.RequestRemoveMultiplePicks; 4099 } 4100 isRequestRemoveAllPicksAction(t) { 4101 return t.actionType === N.RequestRemoveAllPicks; 4102 } 4103 createPickId(t) { 4104 try { 4105 let s = Qo(t); 4106 return Ha.isId(s) || ns.isId(s) || ha.isId(s) || Fa.isId(s) || za.isId(s) || Va.isId(s) ? s : void 0; 4107 } catch (s) { 4108 this.logger.error(`Error during createPickId: ${s}`); 4109 } 4110 } 4111 }; 4112 return e.ɵfac = function(i) { 4113 return new (i || e)(); 4114 }, e.ɵprov = S({ 4115 token: e, 4116 factory: e.ɵfac, 4117 providedIn: "root" 4118 }), e; 4119 })(), Mn = (() => { 4120 let e = class { 4121 constructor() { 4122 this.betStationScreenService = n(oe), this.eventsService = n(Ii), this.freeBetRetailService = n(xe), this.freebetErrorDialogService = n(ae), this.freebetDetailsDialogService = n(Fe), this.scannerAvailabilityService = n(ui), this.retailTracingScanBetService = n(ai), this.destroyRef = n(Tt); 4123 } 4124 onAppInit() { 4125 this.betStationScreenService.getScreen() === "MainScreen" && this.eventsService.events.pipe(H(Vi), H((t) => t.eventName === "FreeBetCode"), H(() => this.scannerAvailabilityService.isScanAvailable()), Se((t) => t.data), Y((t) => this.retailTracingScanBetService.setScanRequestReferenceId(t.reqRefId)), H((t) => Vi(t?.barcode)), Jt((t) => this.freeBetRetailService.validate(t.barcode, $e.Scan)), rt(this.destroyRef)).subscribe((t) => { 4126 if (this.freebetDetailsDialogService.close(), this.freebetErrorDialogService.close(), t.statusCode === Le.Success) {
4127 this.freebetDetailsDialogService.showDetailsDialog(t.freeBetDetails, !0); 4128 let s = this.retailTracingScanBetService.getCompleteMessage(); 4129 s != null && this.retailTracingScanBetService.sendTracingMessage(s); 4130 } else { 4131 this.freebetErrorDialogService.openErrorDialog(t.statusCode, $e.Scan); 4132 let s = this.retailTracingScanBetService.getFailMessage(t.statusCode); 4133 s != null && this.retailTracingScanBetService.sendTracingMessage(s); 4134 } 4135 }); 4136 } 4137 }; 4138 return e.ɵfac = function(i) { 4139 return new (i || e)(); 4140 }, e.ɵprov = S({ 4141 token: e, 4142 factory: e.ɵfac, 4143 providedIn: "root" 4144 }), e; 4145 })(), wn = (() => { 4146 let e = class { 4147 constructor() { 4148 this.sitecore = n(A), this.userSettings = n(Pe), this.lineSwitcherConfig = n(Hi), this.betslipOnboardingConfig = n(Yi), this.betslipUpsellConfig = n(Ui), this.overAskConfig = n(Gi), this.notificationsConfig = n(Wi), this.teaserBetConfig = n(qi); 4149 } 4150 onAppInit() { 4151 return x(this, null, function* () { 4152 yield Rt(_e([ 4153 this.sitecore.whenReady, 4154 this.userSettings.whenReady, 4155 this.lineSwitcherConfig.whenReady, 4156 this.betslipOnboardingConfig.whenReady, 4157 this.betslipUpsellConfig.whenReady, 4158 this.overAskConfig.whenReady, 4159 this.notificationsConfig.whenReady, 4160 this.teaserBetConfig.whenReady 4161 ])); 4162 }); 4163 } 4164 }; 4165 return e.ɵfac = function(i) { 4166 return new (i || e)(); 4167 }, e.ɵprov = S({ 4168 token: e, 4169 factory: e.ɵfac, 4170 providedIn: "root" 4171 }), e; 4172 })(), Fn = (() => { 4173 let e = class { 4174 constructor() { 4175 this.menuActionsService = n(wi), this.modalDialogService = n(Ie), this.sitecore = n(A), this.oddsTrackingService = n(le), this.modalHandler = null; 4176 } 4177 onAppInit() { 4178 this.menuActionsService.register("openOddsSwitcherPopup", this.openOddsSwitcherModal.bind(this)); 4179 } 4180 openOddsSwitcherModal() { 4181 this.modalHandler || (this.oddsTrackingService.trackSettingScreenLoaded(W.settingsOrigin), this.modalHandler = this.modalDialogService.openDialog(Dn, { settings: { 4182 cssClass: "modal-popup odds-settings", 4183 showDialogHeader: !0, 4184 hideCloseButton: !1, 4185 title: this.sitecore.betStation.settings.odds.Title, 4186 isModalDialog: !1 4187 } }), this.modalHandler.result.then(() => {}, () => this.oddsTrackingService.trackSettingScreenClosed(W.settingsOrigin)).finally(() => this.modalHandler = null)); 4188 } 4189 }; 4190 return e.ɵfac = function(i) { 4191 return new (i || e)(); 4192 }, e.ɵprov = S({ 4193 token: e, 4194 factory: e.ɵfac, 4195 providedIn: "root" 4196 }), e; 4197 })(), Ln = (() => { 4198 let e = class { 4199 constructor() { 4200 this.popupManager = n(Mc), this.siteCore = n(A); 4201 } 4202 onAppInit() { 4203 let t = () => import("./chunk-hbt6uob7.js").then(({ OverlayMessagesComponent: s }) => s); 4204 this.popupManager.configure(Qt.HrHelp, t, this.getPopupOptions(this.siteCore.horseRacing.common.HrHelpOverlayName, te.HrHelp)), this.popupManager.configure(Qt.HrInfo, t, this.getPopupOptions(this.siteCore.horseRacing.common.HrInfoOverlayName, te.HrInfo)), this.popupManager.configure(Qt.GhHelp, t, this.getPopupOptions(this.siteCore.betStation.greyhoundRacing.messages.GrHelpOverlayName, te.GhHelp)), this.popupManager.configure(Qt.GhInfo, t, this.getPopupOptions(this.siteCore.betStation.greyhoundRacing.messages.GhInfoOverlayName, te.GhInfo)); 4205 } 4206 getPopupOptions(t, s) { 4207 return { 4208 data: { overlayType: t }, 4209 settings: { 4210 cssClass: s, 4211 showDialogHeader: !0, 4212 hideCloseButton: !1, 4213 isModalDialog: !0, 4214 showCloseBtnText: !0 4215 } 4216 }; 4217 } 4218 }; 4219 return e.ɵfac = function(i) { 4220 return new (i || e)(); 4221 }, e.ɵprov = S({ 4222 token: e, 4223 factory: e.ɵfac, 4224 providedIn: "root" 4225 }), e; 4226 })(), xn = (() => { 4227 let e = class { 4228 constructor() { 4229 this.destroyRef = n(Tt), this.crmOfferLoaderService = n(ul), this.bogTokenProvideService = n(Yh), this.loyaltyLoginService = n(Dp), this.accaBoostTokenProviderService = n(sh); 4230 } 4231 onAppInit() { 4232 this.loyaltyLoginService.loyaltyLoginValidation.pipe(rt(this.destroyRef)).subscribe((t) => { 4233 t && (this.crmOfferLoaderService.clearAndRefresh(), this.bogTokenProvideService.refresh(), this.accaBoostTokenProviderService.refresh()); 4234 }); 4235 } 4236 }; 4237 return e.ɵfac = function(i) { 4238 return new (i || e)(); 4239 }, e.ɵprov = S({ 4240 token: e, 4241 factory: e.ɵfac, 4242 providedIn: "root" 4243 }), e; 4244 })(), Vn = (() => { 4245 let e = class { 4246 constructor() { 4247 this.layoutBootstrapService = n(li), this.userStateService = n(Xh), this.lazySportsLoaderService = n(wn), this.breadcrumbsBoostrapService = n(On), this.freeBetMenuService = n(ci), this.freebetScannerBootstrapService = n(Mn), this.oddsSettingsService = n(Fn), this.racingBootstrapService = n(Ln), this.crmPromotionProviderService = n(ll), this.autoScrollService = n($s), this.userAccountIdCookieService = n(Lh), this.betStationLoyaltyUserService = n(xn), this.terminalService = n(di); 4248 } 4249 onAppInit() { 4250 return x(this, null, function* () { 4251 this.crmPromotionProviderService.onAppInit(), this.layoutBootstrapService.onAppInit(), yield this.lazySportsLoaderService.onAppInit(), this.terminalService.onAppInit(), this.breadcrumbsBoostrapService.onAppInit(), this.freeBetMenuService.onAppInit(), this.freebetScannerBootstrapService.onAppInit(), this.oddsSettingsService.onAppInit(), this.racingBootstrapService.onAppInit(), this.userStateService.onAppInit(), this.autoScrollService.onAppInit(), this.userAccountIdCookieService.onAppInit(), this.betStationLoyaltyUserService.onAppInit(); 4252 }); 4253 } 4254 }; 4255 return e.ɵfac = function(i) { 4256 return new (i || e)(); 4257 }, e.ɵprov = S({ 4258 token: e, 4259 factory: e.ɵfac, 4260 providedIn: "root" 4261 }), e; 4262 })(), $n = () => Zh(Vn), Un = (() => { 4263 let e = class { 4264 constructor() { 4265 this.previousPageLocationCacheService = n(Gm); 4266 } 4267 getCachedValue$() { 4268 return this.previousPageLocationCacheService.getPreviousPage(); 4269 } 4270 }; 4271 return e.ɵfac = function(i) { 4272 return new (i || e)(); 4273 }, e.ɵprov = S({ 4274 token: e, 4275 factory: e.ɵfac, 4276 providedIn: null 4277 }), e; 4278 })(), Hn = (() => { 4279 let e = class { 4280 constructor() { 4281 this.backdropClass = G(""), this.classes = sr(() => `modal-backdrop ${this.backdropClass()}`); 4282 } 4283 }; 4284 return e.ɵfac = function(i) { 4285 return new (i || e)(); 4286 }, e.ɵcmp = U({ 4287 type: e, 4288 selectors: [["st-modal-backdrop"]], 4289 hostVars: 2, 4290 hostBindings: function(i, t) { 4291 i & 2 && st(t.classes()); 4292 }, 4293 inputs: { backdropClass: [1, "backdropClass"] }, 4294 decls: 0, 4295 vars: 0, 4296 template: function(i, t) {}, 4297 encapsulation: 2 4298 }), e; 4299 })(), Gn = ["*"], Yt = (function(e) { 4300 return e.Open = "open", e.ManualClose = "manualClose", e.CloseByNavigation = "closeByNavigation", e.CloseByMybets = "CloseByMybets", e.CloseByNextPopup = "CloseByNextPopup", e.CloseByPan = "CloseByPan", e.SilentClose = "SilentClose", e; 4301 })(Yt || {}), hi = (function(e) { 4302 return e.Icon = "Icon", e.Button = "Button", e; 4303 })(hi || {}), Wn = (() => { 4304 let e = class { 4305 get class() { 4306 return "modal " + (this.windowClass ? " " + this.windowClass : ""); 4307 } 4308 constructor() {
4309 this.slideOutFromTopToButtom = "modal-slide-out-to-bottom", this.slideOutToRight = "modal-slide-out-to-right", this.backdrop = !0, this.keyboard = !0, this.animatePopupDismiss = !1, this.showCloseIcon = !0, this.dismiss = zt(), this.role = "dialog", this.tabindex = "-1", this.closeText = "", this._doc = n(or), this.siteCore = n(A), this.elementRef = n(dr), this.renderer = n(nr), this.timerService = n(ne), this.store$ = n(Oe), this.modalVerticalGestureService = n(Ls), this.modalGestureAnimationService = n(ys), this.modalHorizontalGestureService = n(Fs), this.config = n(Ko(Wh)), this.popUpsConfig = n(io), this.config && (this.animatePopupDismiss = this.config.animatePopupDismiss ?? !1, this.showCloseIcon = this.popUpsConfig.closeButtonType === hi.Icon || (this.config.showCloseIcon ?? !0)), this.closeText = this.siteCore.globalMessages.Close; 4310 } 4311 close() { 4312 this.gestureOptions.enabled ? this.modalGestureAnimationService.slideOutToBottom(this.elementRef.nativeElement).finally(() => { 4313 this.dismiss.emit({ closeAction: Yt.ManualClose }); 4314 }) : (this.renderer.addClass(this.elementRef.nativeElement, this.slideOutFromTopToButtom), this.dismissPopup()), this.store$.dispatch(nh()); 4315 } 4316 goBack() { 4317 this.renderer.addClass(this.elementRef.nativeElement, this.slideOutToRight), this.dismissPopup(); 4318 } 4319 dismissPopup() { 4320 this.animatePopupDismiss ? this.timerService.setTimeoutOutsideAngular(() => { 4321 this.dismiss.emit({ closeAction: Yt.ManualClose }); 4322 }, 500) : this.dismiss.emit({ closeAction: Yt.ManualClose }); 4323 } 4324 backdropClick(t) { 4325 this.backdrop === !0 && this.elementRef.nativeElement === t.target && this.dismissWindow(ps.BackdropClick); 4326 } 4327 preventScrolPropogation(t) { 4328 t.stopPropagation(); 4329 } 4330 escKey(t) { 4331 this.keyboard && !t.defaultPrevented && this.dismissWindow(ps.Esc); 4332 } 4333 dismissWindow(t) { 4334 this.animatePopupDismiss ? (this.renderer.addClass(this.elementRef.nativeElement, this.slideOutFromTopToButtom), this.timerService.setTimeoutOutsideAngular(() => { 4335 this.dismiss.emit(t); 4336 }, 500)) : this.dismiss.emit(t); 4337 } 4338 ngOnInit() { 4339 this.renderer.addClass(this._doc.body, "modal-open"); 4340 } 4341 ngAfterViewInit() { 4342 this.timerService.setTimeoutOutsideAngular(() => { 4343 this.elementRef.nativeElement.contains(this._doc.activeElement) || this.elementRef.nativeElement.focus.apply(this.elementRef.nativeElement, []); 4344 }), this.gestureOptions.headerSelector === "event-details-modal" ? this.modalHorizontalGestureService.addGestures(this.elementRef.nativeElement, this.gestureOptions) : this.modalVerticalGestureService.addGestures(this.elementRef.nativeElement, this.gestureOptions); 4345 } 4346 ngOnDestroy() { 4347 this.renderer.removeClass(this._doc.body, "modal-open"); 4348 } 4349 }; 4350 return e.ɵfac = function(i) { 4351 return new (i || e)(); 4352 }, e.ɵcmp = U({ 4353 type: e, 4354 selectors: [["st-modal-window"]], 4355 hostVars: 5, 4356 hostBindings: function(i, t) { 4357 i & 1 && K("mousedown", function(s) { 4358 return t.backdropClick(s); 4359 })("touch", function(s) { 4360 return t.backdropClick(s); 4361 })("scroll", function(s) { 4362 return t.preventScrolPropogation(s); 4363 })("touchmove", function(s) { 4364 return t.preventScrolPropogation(s); 4365 })("keyup.esc", function(s) { 4366 return t.escKey(s); 4367 }), i & 2 && (Ei("aria-labelledby", t.ariaLabelledBy)("role", t.role)("tabindex", t.tabindex), st(t.class)); 4368 }, 4369 inputs: { 4370 ariaLabelledBy: "ariaLabelledBy", 4371 headerTemplate: "headerTemplate", 4372 backdrop: "backdrop", 4373 centered: "centered", 4374 keyboard: "keyboard", 4375 size: "size", 4376 windowClass: "windowClass", 4377 showDialogHeader: "showDialogHeader", 4378 title: "title", 4379 hideCloseButton: "hideCloseButton", 4380 showBackNav: "showBackNav", 4381 animatePopupDismiss: "animatePopupDismiss", 4382 showCloseIcon: "showCloseIcon", 4383 closePrevious: "closePrevious", 4384 gestureOptions: "gestureOptions" 4385 }, 4386 outputs: { dismiss: "dismiss" }, 4387 features: [bi([ 4388 Ls, 4389 Fs, 4390 Uh 4391 ])], 4392 ngContentSelectors: Gn, 4393 decls: 5, 4394 vars: 2, 4395 consts: [ 4396 ["role", "document"], 4397 [1, "modal-content"], 4398 [ 4399 "id", 4400 "headerWrapper", 4401 1, 4402 "modal-dialog-header-wrapper" 4403 ], 4404 [1, "modal-body"], 4405 [1, "header"], 4406 [ 4407 "tabindex", 4408 "0", 4409 1, 4410 "header-back" 4411 ], 4412 [1, "header-title"], 4413 [ 4414 "tabindex", 4415 "0", 4416 1, 4417 "header-back", 4418 3, 4419 "click", 4420 "keydown.escape", 4421 "keydown.backspace" 4422 ], 4423 [1, "theme-left"], 4424 [4, "ngTemplateOutlet"], 4425 [1, "betstation-btn-close"], 4426 [ 4427 1, 4428 "betstation-btn-close", 4429 3, 4430 "click" 4431 ], 4432 [1, "text"], 4433 [ 4434 1, 4435 "close-icon", 4436 "theme-ex", 4437 3, 4438 "msAutomation" 4439 ], 4440 [ 4441 "tabindex", 4442 "0", 4443 1, 4444 "close", 4445 "theme-ex", 4446 3, 4447 "msAutomation" 4448 ], 4449 [ 4450 1, 4451 "close", 4452 3, 4453 "msAutomation" 4454 ], 4455 [ 4456 "tabindex", 4457 "0", 4458 1, 4459 "close", 4460 "theme-ex", 4461 3, 4462 "click", 4463 "keydown", 4464 "msAutomation" 4465 ], 4466 [ 4467 1, 4468 "close", 4469 3, 4470 "click", 4471 "msAutomation" 4472 ] 4473 ], 4474 template: function(i, t) { 4475 i & 1 && (hr(), l(0, "div", 0)(1, "div", 1), p(2, Kf, 6, 5, "div", 2), l(3, "div", 3), ar(4), u()()()), i & 2 && (Ei("class", "modal-dialog" + (t.size ? " modal-" + t.size : "") + (t.centered ? " modal-dialog-centered" : "")), o(2), m(t.showDialogHeader ? 2 : -1)); 4476 }, 4477 dependencies: [Bs, ke], 4478 encapsulation: 2, 4479 changeDetection: 1 4480 }), e; 4481 })(), qn = (() => { 4482 let e = class { 4483 constructor() { 4484 this.timerService = n(ne), this.containerService = n(Zr), this.appConfig = n(mo), this.modalWindowStackService = n(Rh), this.modalGestureAnimationService = n(ys); 4485 } 4486 createModalRef(...t) { 4487 return new Wo(...t); 4488 } 4489 openModalWindow(t, s, r) { 4490 let a = r.container ?? this.containerService.getContainerElement(); 4491 if (!a) throw new Error(`The specified modal container "${r.container?.tagName || "body"}" was not found in the DOM.`); 4492 r.centerVerticalToViewport && (r.windowClass = `${r.windowClass ?? ""}
4492 modal-vertical-align`); 4493 let y = new Ji(), f = this.modalWindowStackService.getContentRef(r.injector || t, s, y), _ = r.gestureOptions?.enabled ? this.modalWindowStackService.attachCoverElement(a) : void 0, T = r.backdrop !== !1 ? this.modalWindowStackService.attachBackdrop(a, Hn) : void 0, O = this.modalWindowStackService.attachWindowComponent(a, f, Wn), P = this.createModalRef(O, f, T, _, r.beforeDismiss); 4494 y.result = P.result; 4495 let et = O.instance; 4496 return y.close = (Ct) => { 4497 if (!r.closeAnimation) { 4498 P.close(Ct); 4499 return; 4500 } 4501 r.closeAnimation && T?.instance?.classes()?.includes("close-animation") && !this.appConfig.modalDialogGesturesEnabled && P.addBackdropClass("hide-backdrop"), this.appConfig.modalDialogGesturesEnabled && et.gestureOptions?.enabled ? this.modalGestureAnimationService.slideOutToBottom({ modalWindow: P.windowRef ?? void 0 }).finally(() => { 4502 P.close(Ct); 4503 }) : et.windowClass += ` ${r.closeAnimation}`, this.timerService.setTimeout(() => { 4504 P.close(Ct); 4505 }, 350); 4506 }, y.dismiss = (Ct) => { 4507 P.dismiss(Ct); 4508 }, this.applyOptions(et, r, a, O, T), P; 4509 } 4510 applyOptions(t, s, r, a, y) { 4511 this.modalWindowStackService.applyWindowOptions(t, s), s.container && s.container === r && s.centerVerticalToViewport && this.modalWindowStackService.applyVerticalCentering(a, r), y?.instance && this.modalWindowStackService.applyBackdropOptions(y, s); 4512 } 4513 }; 4514 return e.ɵfac = function(i) { 4515 return new (i || e)(); 4516 }, e.ɵprov = S({ 4517 token: e, 4518 factory: e.ɵfac, 4519 providedIn: "root" 4520 }), e; 4521 })(), jn = { 4522 visibility: "always", 4523 track: "vertical" 4524 }, mi = (() => { 4525 let e = class { 4526 constructor() { 4527 this.initializers = n(sm), this.isAlreadyBootstrapped = !1; 4528 } 4529 onSportsBetstationInit() { 4530 return x(this, null, function* () { 4531 if (this.isAlreadyBootstrapped) return; 4532 let t = []; 4533 for (let s of this.initializers) { 4534 let r = s.onAppInit(); 4535 r instanceof Promise && t.push(r); 4536 } 4537 yield Promise.all(t), this.isAlreadyBootstrapped = !0; 4538 }); 4539 } 4540 }; 4541 return e.ɵfac = function(i) { 4542 return new (i || e)(); 4543 }, e.ɵprov = S({ 4544 token: e, 4545 factory: e.ɵfac, 4546 providedIn: "root" 4547 }), e; 4548 })(), Yn = () => (n($i).activateSports(), n(mi).onSportsBetstationInit()), zn = () => { 4549 n($i).deactivateSports(); 4550 }, Kn = (() => { 4551 let e = class { 4552 process(t) { 4553 let s = t.data?.product || Ni.SPORTS; 4554 return t.data = St(Q({}, t.data), { product: s }), t; 4555 } 4556 }; 4557 return e.ɵfac = function(i) { 4558 return new (i || e)(); 4559 }, e.ɵprov = S({ 4560 token: e, 4561 factory: e.ɵfac, 4562 providedIn: "root" 4563 }), e; 4564 })(), Jn = () => { 4565 let e = n(Bi); 4566 n(Nr).register(Ni.SPORTS, e); 4567 }, Xn = [{ 4568 path: "", 4569 canMatch: [Yn], 4570 canDeactivate: [zn], 4571 providers: [ 4572 lr(Jn), 4573 Xf(), 4574 Jf() 4575 ], 4576 children: [{ 4577 path: "", 4578 loadChildren: () => import("./chunk-mtmh0t11.js").then((e) => e.INTERNAL_SPORTS_BETSTATION_ROUTES) 4579 }, { 4580 path: "**", 4581 loadComponent: () => import("./chunk-blsle8xd.js").then((e) => e.EmptyComponent), 4582 canActivate: [qh, _d] 4583 }] 4584 }]; 4585 })))(); 4586} 4587export { Ge as C, je as S, We as _, Ke as a, W as b, Je as c, Lt as d, ni as f, Ye as g, Xe as h, ri as i, k as l, pn as m, Zn as n, Qe as o, si as p, oi as r, xt as s, Tf as t, gt as u, qe as v, He as w, le as x, ze as y }; 4588 4589//# sourceMappingURL=chunk-n5ti6y3x.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.