@everymatrix/player-account-controller 1.56.2 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-BSaw6CR3.js → GeneralLogout-D1bnYvKD.js} +285 -284
- package/components/{GeneralLogout-B0tDLggX.cjs → GeneralLogout-DKq7aXpj.cjs} +5 -5
- package/components/{GeneralLogout-P0C6s5DZ.js → GeneralLogout-oWKFw5-U.js} +278 -277
- package/components/{PlayerAccountBettingHistory-DeLbSbrJ.js → PlayerAccountBettingHistory-B5a8vPwA.js} +1 -1
- package/components/{PlayerAccountBettingHistory-QrFClf-q.cjs → PlayerAccountBettingHistory-Ba0rbzAt.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-l2jKP400.js → PlayerAccountBettingHistory-cvLnLJaM.js} +1 -1
- package/components/{PlayerAccountBiometrics-DSkIQnzt.js → PlayerAccountBiometrics-244_l2MD.js} +1 -1
- package/components/{PlayerAccountBiometrics-BrjU0LiD.js → PlayerAccountBiometrics-ClTvex4w.js} +1 -1
- package/components/{PlayerAccountBiometrics-Bs6NMHc0.cjs → PlayerAccountBiometrics-D3SdfZAk.cjs} +1 -1
- package/components/{PlayerAccountClosure-DfeDK9W_.js → PlayerAccountClosure-9BJkNHZ1.js} +1 -1
- package/components/{PlayerAccountClosure-DiGREXoY.js → PlayerAccountClosure-CUDjmpCz.js} +1 -1
- package/components/{PlayerAccountClosure-BOIOY2XA.cjs → PlayerAccountClosure-Dk5N1AgF.cjs} +1 -1
- package/components/{PlayerAccountController-CFyMeqDb.js → PlayerAccountController-BR2iFVCe.js} +984 -965
- package/components/PlayerAccountController-D25Cayml.cjs +1 -0
- package/components/{PlayerAccountController-B0nEgZTS.js → PlayerAccountController-rcttF6Lm.js} +982 -963
- package/components/{PlayerAccountGamingLimits-Ktm0tqeu.js → PlayerAccountGamingLimits-C2OQmz0L.js} +56 -56
- package/components/{PlayerAccountGamingLimits-Crfy5IPI.js → PlayerAccountGamingLimits-CGZB2W3L.js} +56 -56
- package/components/PlayerAccountGamingLimits-FIGZjiiE.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CVt2dp2q.js → PlayerAccountGamingLimitsConfirmationModal-CMNuF6Yo.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BVtO8XYY.cjs → PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-GJsD4EXP.js → PlayerAccountGamingLimitsConfirmationModal-apD3a9Bz.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-DNh-dSyB.cjs → PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsGroupEdit-CBQMS6_H.js → PlayerAccountGamingLimitsGroupEdit-Cj28m25L.js} +291 -291
- package/components/{PlayerAccountGamingLimitsGroupEdit-G4w9DdS2.js → PlayerAccountGamingLimitsGroupEdit-DrfWEw7D.js} +291 -291
- package/components/{PlayerAccountGamingLimitsHistory2-CtA0oegi.js → PlayerAccountGamingLimitsHistory2-CL7qYX9D.js} +10 -10
- package/components/{PlayerAccountGamingLimitsHistory2-Ciipqbhq.js → PlayerAccountGamingLimitsHistory2-CsMgI2vP.js} +20 -20
- package/components/{PlayerAccountGamingLimitsHistory2-D4h59ZvH.cjs → PlayerAccountGamingLimitsHistory2-D90-0n9S.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-LGJizeyk.js → PlayerAccountGamingLimitsInfoCard-C-SGItlz.js} +89 -89
- package/components/{PlayerAccountGamingLimitsInfoCard-BEtS-68W.js → PlayerAccountGamingLimitsInfoCard-CFusXmG3.js} +89 -89
- package/components/{PlayerAccountGamingLimitsInfoCard-BP3ieYB-.cjs → PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BcM2sb1p.js → PlayerAccountGamingLimitsPage2Gm16-BfV10mIx.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16-HZl-4uMr.cjs → PlayerAccountGamingLimitsPage2Gm16-DAMLMUMu.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DdhPHIQd.js → PlayerAccountGamingLimitsPage2Gm16-DoZ7M3C6.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-CdRdI3JR.js → PlayerAccountGamingLimitsPopup-4sFhABTh.js} +37 -37
- package/components/{PlayerAccountGamingLimitsPopup-Yhb7EjIg.js → PlayerAccountGamingLimitsPopup-Cut_OV-5.js} +37 -37
- package/components/{PlayerAccountGamingLimitsPopup-DyBIvm50.cjs → PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BYv2y-rY.js → PlayerAccountGamingLimitsWrapper2-BBhmB2BI.js} +86 -86
- package/components/{PlayerAccountGamingLimitsWrapper2-gGub1fuG.cjs → PlayerAccountGamingLimitsWrapper2-Cr_T1GBf.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-C6xKIGFF.js → PlayerAccountGamingLimitsWrapper2-eTM9_1BC.js} +83 -83
- package/components/{PlayerAccountGeneralConfirmationModal-B4jIx1BX.cjs → PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-CD-C2QtO.js → PlayerAccountGeneralConfirmationModal-Cxl-LoG0.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-DyiU178q.js → PlayerAccountGeneralConfirmationModal-L97vGeau.js} +1 -1
- package/components/{PlayerAccountMenu-bdpP915D.cjs → PlayerAccountMenu-BIdnddS_.cjs} +1 -1
- package/components/{PlayerAccountMenu-DFrCnbsI.js → PlayerAccountMenu-CBgydCnL.js} +8 -8
- package/components/{PlayerAccountMenu-CdKBgnzJ.js → PlayerAccountMenu-DUTsp-yv.js} +8 -8
- package/components/{PlayerAccountModal-DvoqjoAL.js → PlayerAccountModal-7R2WRCgZ.js} +56 -56
- package/components/{PlayerAccountModal-oVEZuWB2.js → PlayerAccountModal-C7_3et-5.js} +56 -56
- package/components/{PlayerAccountModal-COJeLuDu.cjs → PlayerAccountModal-tginaXbZ.cjs} +1 -1
- package/components/{PlayerAccountNotifications-DAWwzmCU.cjs → PlayerAccountNotifications-BLsxWrq2.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BaNsCEei.js → PlayerAccountNotifications-BQPI0SJW.js} +3 -3
- package/components/{PlayerAccountNotifications-fgHOmoJ0.js → PlayerAccountNotifications-DcYU4F80.js} +3 -3
- package/components/{PlayerAccountSelfExclusion-ARIxVSLP.js → PlayerAccountSelfExclusion-DQemkHnw.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-Bx-xxb7Y.js → PlayerAccountSelfExclusion-EzdDd4JW.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-lAbJlcUC.cjs → PlayerAccountSelfExclusion-PIbK0zJN.cjs} +1 -1
- package/components/{PlayerAccountTimeout-04shprSV.js → PlayerAccountTimeout-DC6dXEP7.js} +10 -10
- package/components/{PlayerAccountTimeout-C392Fv8K.js → PlayerAccountTimeout-DGGqGhkZ.js} +10 -10
- package/components/{PlayerAccountTimeout-C7KH6ovR.cjs → PlayerAccountTimeout-DqOYXUZt.cjs} +1 -1
- package/components/{PlayerActiveBonuses-5eFyy-RT.js → PlayerActiveBonuses-BbsdliMe.js} +54 -54
- package/components/{PlayerActiveBonuses-TbfmKgcG.js → PlayerActiveBonuses-CS8nC9ys.js} +54 -54
- package/components/{PlayerActiveBonuses-DZpjmd5_.cjs → PlayerActiveBonuses-DTojdXrg.cjs} +1 -1
- package/components/{PlayerBonusCard-DW5VwRsP.js → PlayerBonusCard-9sQnuijs.js} +2 -2
- package/components/{PlayerBonusCard-CukAjEqo.js → PlayerBonusCard-QZKUlUnC.js} +2 -2
- package/components/{PlayerBonusCard-BLy1uhLi.cjs → PlayerBonusCard-ihCApHIs.cjs} +1 -1
- package/components/{PlayerBonusHistory-DyASnKHg.js → PlayerBonusHistory-BXX10tEI.js} +38 -38
- package/components/{PlayerBonusHistory-CIbSh98F.js → PlayerBonusHistory-CbptkPyg.js} +39 -39
- package/components/{PlayerBonusHistory-DLekMCrR.cjs → PlayerBonusHistory-DMC3iv-M.cjs} +1 -1
- package/components/{PlayerChangePassword-Bjf-BD9m.js → PlayerChangePassword-DIVU7Hm-.js} +1 -1
- package/components/{PlayerChangePassword-RGHCaEP3.js → PlayerChangePassword-DRF3YUcY.js} +1 -1
- package/components/{PlayerChangePassword-UepIdqvw.cjs → PlayerChangePassword-DZ0zUct-.cjs} +1 -1
- package/components/PlayerDeposit-2rXfB2O5.cjs +1 -0
- package/components/{PlayerDeposit-BEZ5yfVx.js → PlayerDeposit-Bu1poUUC.js} +38 -38
- package/components/{PlayerDeposit-C2zLAno5.js → PlayerDeposit-CC1ZNh0V.js} +38 -38
- package/components/{PlayerGamingHistory-Qv5CmegZ.cjs → PlayerGamingHistory-CITsPSbY.cjs} +1 -1
- package/components/{PlayerGamingHistory-f408ehA1.js → PlayerGamingHistory-CIZ2Ous8.js} +4 -4
- package/components/{PlayerGamingHistory-DYtKLxtA.js → PlayerGamingHistory-LEBGykAk.js} +4 -4
- package/components/{PlayerPendingWithdrawals-Dd-hUBTs.js → PlayerPendingWithdrawals-BAYRu_8K.js} +1 -1
- package/components/{PlayerPendingWithdrawals-Bl7G42a8.js → PlayerPendingWithdrawals-CaouMSqA.js} +1 -1
- package/components/{PlayerPendingWithdrawals-CvxjxkOD.cjs → PlayerPendingWithdrawals-UG-bN1ca.cjs} +1 -1
- package/components/{PlayerProfileInfo-Chwlpy6G.js → PlayerProfileInfo-BLPDFygv.js} +63 -63
- package/components/{PlayerProfileInfo-tT3FUcqx.js → PlayerProfileInfo-D3NxPM1Z.js} +68 -68
- package/components/{PlayerProfileInfo-AlvN_pUL.cjs → PlayerProfileInfo-DLth9JMy.cjs} +1 -1
- package/components/{PlayerRealityCheck-DSYoUIrf.cjs → PlayerRealityCheck-BmVSMTSf.cjs} +1 -1
- package/components/{PlayerRealityCheck-BBRdpOqG.js → PlayerRealityCheck-CI5fiJv3.js} +1 -1
- package/components/{PlayerRealityCheck-6MNq7GKW.js → PlayerRealityCheck-DL5sLluu.js} +1 -1
- package/components/{PlayerTransactionHistory-6qxdyqQZ.js → PlayerTransactionHistory-BGPDkKNI.js} +1 -1
- package/components/{PlayerTransactionHistory-Cvm1EwgV.cjs → PlayerTransactionHistory-U2CncC4r.cjs} +1 -1
- package/components/{PlayerTransactionHistory-BrGY_Ah9.js → PlayerTransactionHistory-x-p-YOv6.js} +1 -1
- package/components/{PlayerWithdrawal-B3-mcOWq.js → PlayerWithdrawal-BknOF8Sy.js} +9 -9
- package/components/{PlayerWithdrawal-D9w69Llz.cjs → PlayerWithdrawal-CsPPu5bX.cjs} +1 -1
- package/components/{PlayerWithdrawal-dfFj1w6I.js → PlayerWithdrawal-Cx3cOp7C.js} +9 -9
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_9-DtZ9kvK4.js → checkbox-group-input_9-JSy4d2L9.js} +2 -2
- package/stencil/{checkbox-group-input_9-DvXvp-ML.js → checkbox-group-input_9-UDA-XaF9.js} +2 -2
- package/stencil/{checkbox-group-input_9-DMrH9pTx.cjs → checkbox-group-input_9-jMRVCzfy.cjs} +2 -2
- package/stencil/{general-input-rL_ftR3H.js → general-input-BbXpUFir.js} +1 -1
- package/stencil/{general-input-eCxMClmW.js → general-input-C6k63W5y.js} +1 -1
- package/stencil/{general-input-CFqrfrup.cjs → general-input-TvqmX5hk.cjs} +1 -1
- package/stencil/{index-9cd44522-BqLgI-Ho.js → index-9cd44522-BQ_s4zJm.js} +4 -4
- package/stencil/{index-9cd44522-Cygpa4pV.js → index-9cd44522-BUwXI--9.js} +4 -4
- package/stencil/{index-9cd44522-DwMekoGN.cjs → index-9cd44522-lJqPKy7q.cjs} +1 -1
- package/stencil/{password-input_2-BabcxKun.cjs → password-input_2-DcXEnCK_.cjs} +1 -1
- package/stencil/{password-input_2-9_yxZI2g.js → password-input_2-DhPva8mM.js} +2 -2
- package/stencil/{password-input_2-D-YA_Jkx.js → password-input_2-DsZJxliE.js} +2 -2
- package/stencil/{player-change-password-gm2-039e300e-DiYWgS70.cjs → player-change-password-gm2-039e300e-BGXXN2fy.cjs} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-CcWiaT26.js → player-change-password-gm2-039e300e-DiWG8cwr.js} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-Zp9TDX77.js → player-change-password-gm2-039e300e-GCkrv9Aa.js} +1 -1
- package/stencil/{player-change-password-gm2-BWjI2Hs0.js → player-change-password-gm2-B2cv54i2.js} +1 -1
- package/stencil/{player-change-password-gm2-BaYafift.js → player-change-password-gm2-BB9nhWGy.js} +1 -1
- package/stencil/{player-change-password-gm2-DsT1aXcX.cjs → player-change-password-gm2-CWzdeleK.cjs} +1 -1
- package/stencil/{toggle-checkbox-input-BxUGWw2X.js → toggle-checkbox-input-2FXfNCyw.js} +1 -1
- package/stencil/{toggle-checkbox-input-PSoH9KF2.js → toggle-checkbox-input-BZQethuD.js} +1 -1
- package/stencil/{toggle-checkbox-input-D-Cv1QSS.cjs → toggle-checkbox-input-CA92JmGn.cjs} +1 -1
- package/components/PlayerAccountController-B7U-7bNI.cjs +0 -1
- package/components/PlayerAccountGamingLimits-D46zagPJ.cjs +0 -1
- package/components/PlayerDeposit-Dcjjga2V.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as le, C as Ce, a as Te, S as
|
|
1
|
+
import { $ as le, C as Ce, a as Te, S as Me, i as Ee, f as b, c as Ae, s as Se, b as Ge, e as C, d as j, t as U, g as _, l as p, k as T, n as X, M as z, _ as Y, L as W, p as v, q as De, u as We, v as ze, w as Be, x as Ne, y as P, m as fe, a0 as x, z as Q, A as Pe, O as q, F as ge, P as he, o as D, j as r, B as je, H as Fe, I as Re, J as Ie, K as Oe } from "./GeneralLogout-D1bnYvKD.js";
|
|
2
2
|
function He({ withLocale: i, translations: e }) {
|
|
3
3
|
le.subscribe((t) => {
|
|
4
4
|
t == null && (Ce.set(e), le.set(i));
|
|
@@ -54,7 +54,7 @@ if (typeof window != "undefined") {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-
|
|
57
|
+
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-DoZ7M3C6.js").then(({ default: e }) => {
|
|
58
58
|
!customElements.get("player-account-gaming-limits-page-2-gm16") && customElements.define(
|
|
59
59
|
"player-account-gaming-limits-page-2-gm16",
|
|
60
60
|
e.element
|
|
@@ -73,7 +73,7 @@ if (typeof window != "undefined") {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsHistory2-
|
|
76
|
+
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsHistory2-CsMgI2vP.js").then(({ default: e }) => {
|
|
77
77
|
!customElements.get("player-account-gaming-limits-history-2") && customElements.define(
|
|
78
78
|
"player-account-gaming-limits-history-2",
|
|
79
79
|
e.element
|
|
@@ -81,45 +81,45 @@ if (typeof window != "undefined") {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
function qe(i) {
|
|
84
|
-
|
|
84
|
+
Ge(i, "svelte-r6lh3z", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.LimitsWrapper{display:flex;flex-direction:column}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-300, #58586B);justify-content:center;background:var(--emw--color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));margin:0}');
|
|
85
85
|
}
|
|
86
86
|
function oe(i, e, t) {
|
|
87
87
|
const n = i.slice();
|
|
88
88
|
return n[46] = e[t], n[48] = t, n;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const Je = (i) => ({}), re = (i) => ({});
|
|
91
91
|
function ae(i, e, t) {
|
|
92
92
|
const n = i.slice();
|
|
93
93
|
return n[49] = e[t], n[48] = t, n;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Ke(i) {
|
|
96
96
|
let e, t, n, l, c, m, h, o, d, g, a = (
|
|
97
97
|
/*$_*/
|
|
98
98
|
i[24]("title") + ""
|
|
99
99
|
), u, f, k;
|
|
100
100
|
return {
|
|
101
101
|
c() {
|
|
102
|
-
e = C("div"), t =
|
|
102
|
+
e = C("div"), t = P("svg"), n = P("defs"), l = P("style"), c = U(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));}"), m = P("g"), h = P("g"), o = P("path"), d = j(), g = C("h2"), u = U(a), _(o, "class", "aaa"), _(o, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), _(o, "transform", "translate(15 15) rotate(180)"), _(h, "transform", "translate(20 158)"), _(m, "transform", "translate(-20 -158)"), _(t, "xmlns", "http://www.w3.org/2000/svg"), _(t, "width", "15"), _(t, "height", "15"), _(t, "viewBox", "0 0 15 15"), _(g, "class", "GamingLimitsTitleMobile"), _(e, "class", "MenuReturnButton"), _(e, "part", "MenuReturnButton");
|
|
103
103
|
},
|
|
104
|
-
m(
|
|
105
|
-
T(
|
|
104
|
+
m(M, w) {
|
|
105
|
+
T(M, e, w), p(e, t), p(t, n), p(n, l), p(l, c), p(t, m), p(m, h), p(h, o), p(e, d), p(e, g), p(g, u), f || (k = fe(
|
|
106
106
|
e,
|
|
107
107
|
"click",
|
|
108
108
|
/*click_handler*/
|
|
109
109
|
i[35]
|
|
110
110
|
), f = !0);
|
|
111
111
|
},
|
|
112
|
-
p(
|
|
112
|
+
p(M, w) {
|
|
113
113
|
w[0] & /*$_*/
|
|
114
114
|
16777216 && a !== (a = /*$_*/
|
|
115
|
-
|
|
115
|
+
M[24]("title") + "") && X(u, a);
|
|
116
116
|
},
|
|
117
|
-
d(
|
|
118
|
-
|
|
117
|
+
d(M) {
|
|
118
|
+
M && v(e), f = !1, k();
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ve(i) {
|
|
123
123
|
let e, t, n, l, c, m = (
|
|
124
124
|
/*limitTabs*/
|
|
125
125
|
i[25].length > 1 && Qe(i)
|
|
@@ -129,7 +129,7 @@ function Ke(i) {
|
|
|
129
129
|
), o = [];
|
|
130
130
|
for (let a = 0; a < h.length; a += 1)
|
|
131
131
|
o[a] = me(oe(i, h, a));
|
|
132
|
-
const d = (a) =>
|
|
132
|
+
const d = (a) => z(o[a], 1, 1, () => {
|
|
133
133
|
o[a] = null;
|
|
134
134
|
});
|
|
135
135
|
let g = (
|
|
@@ -138,10 +138,10 @@ function Ke(i) {
|
|
|
138
138
|
);
|
|
139
139
|
return {
|
|
140
140
|
c() {
|
|
141
|
-
m && m.c(), e =
|
|
141
|
+
m && m.c(), e = j(), t = C("div");
|
|
142
142
|
for (let a = 0; a < o.length; a += 1)
|
|
143
143
|
o[a].c();
|
|
144
|
-
n =
|
|
144
|
+
n = j(), g && g.c(), l = ge(), _(t, "class", "PlayerAccountGamingLmitsWrapper2");
|
|
145
145
|
},
|
|
146
146
|
m(a, u) {
|
|
147
147
|
m && m.m(a, u), T(a, e, u), T(a, t, u);
|
|
@@ -163,7 +163,7 @@ function Ke(i) {
|
|
|
163
163
|
let f;
|
|
164
164
|
for (f = 0; f < h.length; f += 1) {
|
|
165
165
|
const k = oe(a, h, f);
|
|
166
|
-
o[f] ? (o[f].p(k, u),
|
|
166
|
+
o[f] ? (o[f].p(k, u), W(o[f], 1)) : (o[f] = me(k), o[f].c(), W(o[f], 1), o[f].m(t, null));
|
|
167
167
|
}
|
|
168
168
|
for (x(), f = h.length; f < o.length; f += 1)
|
|
169
169
|
d(f);
|
|
@@ -175,14 +175,14 @@ function Ke(i) {
|
|
|
175
175
|
i(a) {
|
|
176
176
|
if (!c) {
|
|
177
177
|
for (let u = 0; u < h.length; u += 1)
|
|
178
|
-
|
|
178
|
+
W(o[u]);
|
|
179
179
|
c = !0;
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
o(a) {
|
|
183
183
|
o = o.filter(Boolean);
|
|
184
184
|
for (let u = 0; u < o.length; u += 1)
|
|
185
|
-
|
|
185
|
+
z(o[u]);
|
|
186
186
|
c = !1;
|
|
187
187
|
},
|
|
188
188
|
d(a) {
|
|
@@ -190,7 +190,7 @@ function Ke(i) {
|
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ze(i) {
|
|
194
194
|
return {
|
|
195
195
|
c: D,
|
|
196
196
|
m: D,
|
|
@@ -488,7 +488,7 @@ function Ye(i) {
|
|
|
488
488
|
const t = (
|
|
489
489
|
/*#slots*/
|
|
490
490
|
i[34].customTabContent
|
|
491
|
-
), n =
|
|
491
|
+
), n = Fe(
|
|
492
492
|
t,
|
|
493
493
|
i,
|
|
494
494
|
/*$$scope*/
|
|
@@ -504,7 +504,7 @@ function Ye(i) {
|
|
|
504
504
|
},
|
|
505
505
|
p(l, c) {
|
|
506
506
|
n && n.p && (!e || c[1] & /*$$scope*/
|
|
507
|
-
4) &&
|
|
507
|
+
4) && Re(
|
|
508
508
|
n,
|
|
509
509
|
t,
|
|
510
510
|
l,
|
|
@@ -515,7 +515,7 @@ function Ye(i) {
|
|
|
515
515
|
/*$$scope*/
|
|
516
516
|
l[33],
|
|
517
517
|
c,
|
|
518
|
-
|
|
518
|
+
Je
|
|
519
519
|
) : Ie(
|
|
520
520
|
/*$$scope*/
|
|
521
521
|
l[33]
|
|
@@ -524,10 +524,10 @@ function Ye(i) {
|
|
|
524
524
|
);
|
|
525
525
|
},
|
|
526
526
|
i(l) {
|
|
527
|
-
e || (
|
|
527
|
+
e || (W(n, l), e = !0);
|
|
528
528
|
},
|
|
529
529
|
o(l) {
|
|
530
|
-
|
|
530
|
+
z(n, l), e = !1;
|
|
531
531
|
},
|
|
532
532
|
d(l) {
|
|
533
533
|
n && n.d(l);
|
|
@@ -553,15 +553,15 @@ function me(i) {
|
|
|
553
553
|
},
|
|
554
554
|
p(o, d) {
|
|
555
555
|
let g = e;
|
|
556
|
-
e = h(o), e === g ? m[e].p(o, d) : (x(),
|
|
556
|
+
e = h(o), e === g ? m[e].p(o, d) : (x(), z(m[g], 1, 1, () => {
|
|
557
557
|
m[g] = null;
|
|
558
|
-
}), Y(), t = m[e], t ? t.p(o, d) : (t = m[e] = c[e](o), t.c()),
|
|
558
|
+
}), Y(), t = m[e], t ? t.p(o, d) : (t = m[e] = c[e](o), t.c()), W(t, 1), t.m(n.parentNode, n));
|
|
559
559
|
},
|
|
560
560
|
i(o) {
|
|
561
|
-
l || (
|
|
561
|
+
l || (W(t), l = !0);
|
|
562
562
|
},
|
|
563
563
|
o(o) {
|
|
564
|
-
|
|
564
|
+
z(t), l = !1;
|
|
565
565
|
},
|
|
566
566
|
d(o) {
|
|
567
567
|
o && v(n), m[e].d(o);
|
|
@@ -712,39 +712,39 @@ function xe(i) {
|
|
|
712
712
|
i[24]("title") + ""
|
|
713
713
|
), d, g, a, u, f, k = (
|
|
714
714
|
/*isMobile*/
|
|
715
|
-
i[26] &&
|
|
715
|
+
i[26] && Ke(i)
|
|
716
716
|
);
|
|
717
|
-
const
|
|
718
|
-
function
|
|
717
|
+
const M = [Ze, Ve], w = [];
|
|
718
|
+
function B(y, E) {
|
|
719
719
|
return (
|
|
720
720
|
/*isLoading*/
|
|
721
721
|
y[16] ? 0 : 1
|
|
722
722
|
);
|
|
723
723
|
}
|
|
724
|
-
return a =
|
|
724
|
+
return a = B(i), u = w[a] = M[a](i), {
|
|
725
725
|
c() {
|
|
726
|
-
e = C("meta"), t =
|
|
726
|
+
e = C("meta"), t = j(), n = C("div"), l = C("div"), c = C("div"), k && k.c(), m = j(), h = C("h2"), d = U(o), g = j(), u.c(), _(e, "name", "viewport"), _(e, "content", "width=device-width, initial-scale=1"), _(h, "class", "GamingLimitsTitle " + /*isMobile*/
|
|
727
727
|
(i[26] ? "GamingLimitsTitleNone" : "")), _(c, "class", "TitleSection"), _(l, "class", "GamingLimitsWrapper " + /*isMobile*/
|
|
728
728
|
(i[26] ? "GamingLimitsWrapperMobile" : ""));
|
|
729
729
|
},
|
|
730
|
-
m(y,
|
|
731
|
-
p(document.head, e), T(y, t,
|
|
730
|
+
m(y, E) {
|
|
731
|
+
p(document.head, e), T(y, t, E), T(y, n, E), p(n, l), p(l, c), k && k.m(c, null), p(c, m), p(c, h), p(h, d), p(l, g), w[a].m(l, null), i[39](n), f = !0;
|
|
732
732
|
},
|
|
733
|
-
p(y,
|
|
733
|
+
p(y, E) {
|
|
734
734
|
/*isMobile*/
|
|
735
|
-
y[26] && k.p(y,
|
|
735
|
+
y[26] && k.p(y, E), (!f || E[0] & /*$_*/
|
|
736
736
|
16777216) && o !== (o = /*$_*/
|
|
737
737
|
y[24]("title") + "") && X(d, o);
|
|
738
|
-
let
|
|
739
|
-
a =
|
|
740
|
-
w[
|
|
741
|
-
}), Y(), u = w[a], u ? u.p(y,
|
|
738
|
+
let N = a;
|
|
739
|
+
a = B(y), a === N ? w[a].p(y, E) : (x(), z(w[N], 1, 1, () => {
|
|
740
|
+
w[N] = null;
|
|
741
|
+
}), Y(), u = w[a], u ? u.p(y, E) : (u = w[a] = M[a](y), u.c()), W(u, 1), u.m(l, null));
|
|
742
742
|
},
|
|
743
743
|
i(y) {
|
|
744
|
-
f || (
|
|
744
|
+
f || (W(u), f = !0);
|
|
745
745
|
},
|
|
746
746
|
o(y) {
|
|
747
|
-
|
|
747
|
+
z(u), f = !1;
|
|
748
748
|
},
|
|
749
749
|
d(y) {
|
|
750
750
|
y && (v(t), v(n)), v(e), k && k.d(), w[a].d(), i[39](null);
|
|
@@ -753,28 +753,28 @@ function xe(i) {
|
|
|
753
753
|
}
|
|
754
754
|
function $e(i, e, t) {
|
|
755
755
|
let n;
|
|
756
|
-
De(i,
|
|
757
|
-
let { $$slots: l = {}, $$scope: c } = e, { lang: m = "" } = e, { userid: h = "" } = e, { session: o = "" } = e, { endpoint: d = "" } = e, { currency: g = "" } = e, { apiversion: a = "" } = e, { tablabels: u = "" } = e, { historyenabled: f = "true" } = e, { enablecompliancetext: k = "false" } = e, { deletelimit:
|
|
756
|
+
De(i, je, (s) => t(24, n = s));
|
|
757
|
+
let { $$slots: l = {}, $$scope: c } = e, { lang: m = "" } = e, { userid: h = "" } = e, { session: o = "" } = e, { endpoint: d = "" } = e, { currency: g = "" } = e, { apiversion: a = "" } = e, { tablabels: u = "" } = e, { historyenabled: f = "true" } = e, { enablecompliancetext: k = "false" } = e, { deletelimit: M = "" } = e, { limitsamount: w = "" } = e, { limitsperiods: B = "" } = e, { numberofentries: y = "" } = e, { customcurrencysymbols: E = "" } = e, { limitformat: N = "" } = e, { clientstyling: R = "" } = e, { clientstylingurl: I = "" } = e, { translationurl: $ = "" } = e, { mbsource: O } = e, { customcontentontab: F = "" } = e;
|
|
758
758
|
He({ withLocale: "en", translations: {} });
|
|
759
|
-
let
|
|
759
|
+
let J = !0, S, K = [], ee, G, A, H, V, de = window.navigator.userAgent, te = We(de) !== "PC", ie;
|
|
760
760
|
Object.keys(se).forEach((s) => {
|
|
761
761
|
Ue(s, se[s]);
|
|
762
762
|
});
|
|
763
763
|
const be = (s, L) => {
|
|
764
|
-
if (t(21, H = s.replace(/\s/g, "").split("|")), t(22,
|
|
764
|
+
if (t(21, H = s.replace(/\s/g, "").split("|")), t(22, V = L.replace(/\s/g, "").split("|")), H.length === 0)
|
|
765
765
|
throw new Error("Please provide a full limits configuration.");
|
|
766
|
-
if (H.length !==
|
|
766
|
+
if (H.length !== V.length)
|
|
767
767
|
throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");
|
|
768
768
|
}, _e = () => {
|
|
769
|
-
be(w,
|
|
770
|
-
|
|
771
|
-
}), t(19, ee = u.split(",").map((L) => L.trim())), t(16,
|
|
769
|
+
be(w, B), w.split("|").forEach((L) => {
|
|
770
|
+
K.includes(L) || K.push(L);
|
|
771
|
+
}), t(19, ee = u.split(",").map((L) => L.trim())), t(16, J = !1);
|
|
772
772
|
}, ye = () => {
|
|
773
|
-
t(23, ie =
|
|
774
|
-
},
|
|
775
|
-
if (
|
|
776
|
-
for (let L = 0; L <
|
|
777
|
-
s === L ? (
|
|
773
|
+
t(23, ie = F ? Number(F) : -1);
|
|
774
|
+
}, Z = (s) => {
|
|
775
|
+
if (G.children.length > 0)
|
|
776
|
+
for (let L = 0; L < G.children.length; L++)
|
|
777
|
+
s === L ? (G.children[L].classList.remove("hidden"), A == null || A.children[L].classList.add("selected")) : (G.children[L].classList.add("hidden"), A == null || A.children[L].classList.remove("selected"));
|
|
778
778
|
}, ne = () => {
|
|
779
779
|
window.postMessage(
|
|
780
780
|
{
|
|
@@ -784,10 +784,10 @@ function $e(i, e, t) {
|
|
|
784
784
|
window.location.href
|
|
785
785
|
);
|
|
786
786
|
};
|
|
787
|
-
|
|
788
|
-
t(18,
|
|
787
|
+
ze(() => () => {
|
|
788
|
+
t(18, G = null), t(20, A = null);
|
|
789
789
|
});
|
|
790
|
-
const pe = () => ne(), we = (s) =>
|
|
790
|
+
const pe = () => ne(), we = (s) => Z(s);
|
|
791
791
|
function ke(s) {
|
|
792
792
|
Q[s ? "unshift" : "push"](() => {
|
|
793
793
|
A = s, t(20, A);
|
|
@@ -795,24 +795,24 @@ function $e(i, e, t) {
|
|
|
795
795
|
}
|
|
796
796
|
function Le(s) {
|
|
797
797
|
Q[s ? "unshift" : "push"](() => {
|
|
798
|
-
|
|
798
|
+
G = s, t(18, G);
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
function ve(s) {
|
|
802
802
|
Q[s ? "unshift" : "push"](() => {
|
|
803
|
-
|
|
803
|
+
S = s, t(17, S);
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
return i.$$set = (s) => {
|
|
807
|
-
"lang" in s && t(0, m = s.lang), "userid" in s && t(1, h = s.userid), "session" in s && t(2, o = s.session), "endpoint" in s && t(3, d = s.endpoint), "currency" in s && t(4, g = s.currency), "apiversion" in s && t(5, a = s.apiversion), "tablabels" in s && t(29, u = s.tablabels), "historyenabled" in s && t(6, f = s.historyenabled), "enablecompliancetext" in s && t(7, k = s.enablecompliancetext), "deletelimit" in s && t(8,
|
|
807
|
+
"lang" in s && t(0, m = s.lang), "userid" in s && t(1, h = s.userid), "session" in s && t(2, o = s.session), "endpoint" in s && t(3, d = s.endpoint), "currency" in s && t(4, g = s.currency), "apiversion" in s && t(5, a = s.apiversion), "tablabels" in s && t(29, u = s.tablabels), "historyenabled" in s && t(6, f = s.historyenabled), "enablecompliancetext" in s && t(7, k = s.enablecompliancetext), "deletelimit" in s && t(8, M = s.deletelimit), "limitsamount" in s && t(30, w = s.limitsamount), "limitsperiods" in s && t(31, B = s.limitsperiods), "numberofentries" in s && t(9, y = s.numberofentries), "customcurrencysymbols" in s && t(10, E = s.customcurrencysymbols), "limitformat" in s && t(11, N = s.limitformat), "clientstyling" in s && t(12, R = s.clientstyling), "clientstylingurl" in s && t(13, I = s.clientstylingurl), "translationurl" in s && t(14, $ = s.translationurl), "mbsource" in s && t(15, O = s.mbsource), "customcontentontab" in s && t(32, F = s.customcontentontab), "$$scope" in s && t(33, c = s.$$scope);
|
|
808
808
|
}, i.$$.update = () => {
|
|
809
809
|
i.$$.dirty[0] & /*userid, session, endpoint, tablabels, lang, apiversion*/
|
|
810
810
|
536870959 && h && o && d && u && m && a && _e(), i.$$.dirty[1] & /*customcontentontab*/
|
|
811
|
-
2 &&
|
|
812
|
-
327680 &&
|
|
813
|
-
135168 &&
|
|
814
|
-
139264 && I &&
|
|
815
|
-
163840 && O &&
|
|
811
|
+
2 && F && ye(), i.$$.dirty[0] & /*mainContainer, isLoading*/
|
|
812
|
+
327680 && G && !J && Z(0), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
813
|
+
135168 && R && S && Pe(S, R), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
814
|
+
139264 && I && S && Be(S, I), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
815
|
+
163840 && O && S && Ne(S, `${O}.Style`);
|
|
816
816
|
}, [
|
|
817
817
|
m,
|
|
818
818
|
h,
|
|
@@ -822,31 +822,31 @@ function $e(i, e, t) {
|
|
|
822
822
|
a,
|
|
823
823
|
f,
|
|
824
824
|
k,
|
|
825
|
-
E,
|
|
826
|
-
y,
|
|
827
825
|
M,
|
|
828
|
-
|
|
829
|
-
|
|
826
|
+
y,
|
|
827
|
+
E,
|
|
828
|
+
N,
|
|
829
|
+
R,
|
|
830
830
|
I,
|
|
831
831
|
$,
|
|
832
832
|
O,
|
|
833
|
-
|
|
834
|
-
G,
|
|
833
|
+
J,
|
|
835
834
|
S,
|
|
835
|
+
G,
|
|
836
836
|
ee,
|
|
837
837
|
A,
|
|
838
838
|
H,
|
|
839
|
-
|
|
839
|
+
V,
|
|
840
840
|
ie,
|
|
841
841
|
n,
|
|
842
|
-
|
|
842
|
+
K,
|
|
843
843
|
te,
|
|
844
|
-
|
|
844
|
+
Z,
|
|
845
845
|
ne,
|
|
846
846
|
u,
|
|
847
847
|
w,
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
B,
|
|
849
|
+
F,
|
|
850
850
|
c,
|
|
851
851
|
l,
|
|
852
852
|
pe,
|
|
@@ -856,14 +856,14 @@ function $e(i, e, t) {
|
|
|
856
856
|
ve
|
|
857
857
|
];
|
|
858
858
|
}
|
|
859
|
-
class et extends
|
|
859
|
+
class et extends Me {
|
|
860
860
|
constructor(e) {
|
|
861
|
-
super(),
|
|
861
|
+
super(), Ee(
|
|
862
862
|
this,
|
|
863
863
|
e,
|
|
864
864
|
$e,
|
|
865
865
|
xe,
|
|
866
|
-
|
|
866
|
+
Se,
|
|
867
867
|
{
|
|
868
868
|
lang: 0,
|
|
869
869
|
userid: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DKq7aXpj.cjs");function A(o,t){e.addMessages(o,t)}function T(o){e.$locale.set(o)}const F={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"},tr:{cancel:"İptal etmek",confirm:"Onaylamak"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function P(o){e.append_styles(o,"svelte-1o81iqe",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}')}const W=o=>({}),z=o=>({});function q(o){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("path"),e.attr(n,"stroke-linecap","round"),e.attr(n,"stroke-linejoin","round"),e.attr(n,"stroke-width","2"),e.attr(n,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(i,c){e.insert(i,t,c),e.append(t,n)},p:e.noop,d(i){i&&e.detach(t)}}}function S(o){let t,n,i;return{c(){t=e.element("div"),n=e.element("h2"),i=e.text(o[1]),e.attr(t,"class","GeneralConfirmationTitle")},m(c,m){e.insert(c,t,m),e.append(t,n),e.append(n,i)},p(c,m){m&2&&e.set_data(i,c[1])},d(c){c&&e.detach(t)}}}function E(o){let t,n=o[4]("cancel")+"",i,c,m;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(d,h){e.insert(d,t,h),e.append(t,i),c||(m=e.listen(t,"click",o[17]),c=!0)},p(d,h){h&16&&n!==(n=d[4]("cancel")+"")&&e.set_data(i,n)},d(d){d&&e.detach(t),c=!1,m()}}}function N(o){let t,n,i,c,m,d,h,G,u,_,p,x=o[4]("confirm")+"",v,f,w,g;const M=o[16].close,y=e.create_slot(M,o,o[15],z),b=y||q();let a=o[1]&&S(o),s=o[2]&&E(o);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),b&&b.c(),c=e.space(),a&&a.c(),m=e.space(),d=e.element("div"),h=e.text(o[0]),G=e.space(),u=e.element("div"),s&&s.c(),_=e.space(),p=e.element("button"),v=e.text(x),e.attr(i,"class","ModalCloseBtn"),e.attr(i,"role","button"),e.attr(d,"class","GeneralConfirmationContent"),e.attr(p,"class","GeneralConfirmButton"),e.attr(u,"class","GeneralConfirmationControlArea "+(o[5]?"GeneralConfirmationControlAreaMobile":"")),e.attr(n,"class","GeneralConfirmationContainer "+(o[5]?"GeneralConfirmationContainerMobile":"")),e.attr(t,"class","GeneralConfirmationWrapper "+(o[5]?"GeneralConfirmationMobileWrapper":""))},m(l,C){e.insert(l,t,C),e.append(t,n),e.append(n,i),b&&b.m(i,null),e.append(n,c),a&&a.m(n,null),e.append(n,m),e.append(n,d),e.append(d,h),e.append(n,G),e.append(n,u),s&&s.m(u,null),e.append(u,_),e.append(u,p),e.append(p,v),o[19](t),f=!0,w||(g=[e.listen(i,"click",o[6]),e.listen(p,"click",o[18])],w=!0)},p(l,[C]){y&&y.p&&(!f||C&32768)&&e.update_slot_base(y,M,l,l[15],f?e.get_slot_changes(M,l[15],C,W):e.get_all_dirty_from_scope(l[15]),z),l[1]?a?a.p(l,C):(a=S(l),a.c(),a.m(n,m)):a&&(a.d(1),a=null),(!f||C&1)&&e.set_data(h,l[0]),l[2]?s?s.p(l,C):(s=E(l),s.c(),s.m(u,_)):s&&(s.d(1),s=null),(!f||C&16)&&x!==(x=l[4]("confirm")+"")&&e.set_data(v,x)},i(l){f||(e.transition_in(b,l),f=!0)},o(l){e.transition_out(b,l),f=!1},d(l){l&&e.detach(t),b&&b.d(l),a&&a.d(),s&&s.d(),o[19](null),w=!1,e.run_all(g)}}}function R(o,t,n){let i;e.component_subscribe(o,e.$format,r=>n(4,i=r));let{$$slots:c={},$$scope:m}=t,{modaltext:d="Are you sure that you want to perform this action?"}=t,{modaltitle:h=""}=t,{hascancelbutton:G=!1}=t,{modalconfirmevent:u={}}=t,{modalcancelevent:_={}}=t,{lang:p="en"}=t,{clientstyling:x=""}=t,{clientstylingurl:v=""}=t,{translationurl:f=""}=t,{mbsource:w}=t,g,M=window.navigator.userAgent,y=e.getDevice(M)!=="PC";const b=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},a=r=>{r==="confirm"&&u&&window.postMessage(u,window.location.href),r==="cancel"&&_&&window.postMessage(_,window.location.href),b()},s=()=>{fetch(f).then(k=>k.json()).then(k=>{Object.keys(k).forEach(B=>{A(B,k[B])})}).catch(k=>{console.log(k)})};Object.keys(F).forEach(r=>{A(r,F[r])});const l=()=>{T(p)};e.onMount(()=>()=>{});const C=()=>a("cancel"),L=()=>a("confirm");function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(3,g)})}return o.$$set=r=>{"modaltext"in r&&n(0,d=r.modaltext),"modaltitle"in r&&n(1,h=r.modaltitle),"hascancelbutton"in r&&n(2,G=r.hascancelbutton),"modalconfirmevent"in r&&n(8,u=r.modalconfirmevent),"modalcancelevent"in r&&n(9,_=r.modalcancelevent),"lang"in r&&n(10,p=r.lang),"clientstyling"in r&&n(11,x=r.clientstyling),"clientstylingurl"in r&&n(12,v=r.clientstylingurl),"translationurl"in r&&n(13,f=r.translationurl),"mbsource"in r&&n(14,w=r.mbsource),"$$scope"in r&&n(15,m=r.$$scope)},o.$$.update=()=>{o.$$.dirty&1025&&d&&p&&l(),o.$$.dirty&2056&&x&&g&&e.setClientStyling(g,x),o.$$.dirty&4104&&v&&g&&e.setClientStylingURL(g,v),o.$$.dirty&16392&&w&&g&&e.setStreamStyling(g,`${w}.Style`),o.$$.dirty&8192&&f&&s()},[d,h,G,g,i,y,b,a,u,_,p,x,v,f,w,m,c,C,L,O]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,R,N,e.safe_not_equal,{modaltext:0,modaltitle:1,hascancelbutton:2,modalconfirmevent:8,modalcancelevent:9,lang:10,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14},P)}get modaltext(){return this.$$.ctx[0]}set modaltext(t){this.$$set({modaltext:t}),e.flush()}get modaltitle(){return this.$$.ctx[1]}set modaltitle(t){this.$$set({modaltitle:t}),e.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(t){this.$$set({hascancelbutton:t}),e.flush()}get modalconfirmevent(){return this.$$.ctx[8]}set modalconfirmevent(t){this.$$set({modalconfirmevent:t}),e.flush()}get modalcancelevent(){return this.$$.ctx[9]}set modalcancelevent(t){this.$$set({modalcancelevent:t}),e.flush()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(j,{modaltext:{},modaltitle:{},hascancelbutton:{type:"Boolean"},modalconfirmevent:{},modalcancelevent:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},["close"],[],!0);exports.default=j;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as H, $ as J, S as K, i as Q, f as v, c as V, s as X, b as Y,
|
|
1
|
+
import { a as H, $ as J, S as K, i as Q, f as v, c as V, s as X, b as Y, H as Z, e as _, d as z, t as S, g as l, k as j, l as m, m as O, I as $, J as ee, K as te, n as E, L as ne, M as oe, p as L, r as ie, q as re, u as ae, v as le, w as se, x as ce, z as me, A as fe, y as W, o as de, B as ue } from "./GeneralLogout-oWKFw5-U.js";
|
|
2
2
|
function q(n, e) {
|
|
3
3
|
H(n, e);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as H, $ as J, S as K, i as Q, f as v, c as V, s as X, b as Y,
|
|
1
|
+
import { a as H, $ as J, S as K, i as Q, f as v, c as V, s as X, b as Y, H as Z, e as _, d as z, t as S, g as l, k as j, l as m, m as O, I as $, J as ee, K as te, n as E, L as ne, M as oe, p as L, r as ie, q as re, u as ae, v as le, w as se, x as ce, z as me, A as fe, y as W, o as de, B as ue } from "./GeneralLogout-D1bnYvKD.js";
|
|
2
2
|
function q(n, e) {
|
|
3
3
|
H(n, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-B0tDLggX.cjs");require("../stencil/ui-skeleton-BC4mw1ae.cjs");function E(l,t){e.addMessages(l,t)}function J(l){e.$locale.set(l)}const B={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-B0tDLggX.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function K(l){e.append_styles(l,"svelte-io9slc",".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function W(l,t,n){const a=l.slice();return a[40]=t[n],a}function H(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,y,f,b,_,g,h,u=l[12]&&ee(l),c=l[12]&&te(l),p=e.ensure_array_like(l[7]),i=[];for(let d=0;d<p.length;d+=1)i[d]=S(W(l,p,d));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),r=e.element("p"),s=e.text(l[9]),m=e.space(),y=e.element("p"),f=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),g=e.element("div");for(let d=0;d<i.length;d+=1)i[d].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(g,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(d,P){e.insert(d,t,P),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,r),e.append(r,s),e.append(n,m),e.append(n,y),e.append(y,f),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,g);for(let A=0;A<i.length;A+=1)i[A]&&i[A].m(g,null);e.append(t,h),v&&v.m(t,null)},p(d,P){if(d[12]&&u.p(d,P),P[0]&512&&e.set_data(s,d[9]),P[0]&1024&&e.set_data(f,d[10]),d[12]&&c.p(d,P),P[0]&20864){p=e.ensure_array_like(d[7]);let A;for(A=0;A<p.length;A+=1){const x=W(d,p,A);i[A]?i[A].p(x,P):(i[A]=S(x),i[A].c(),i[A].m(g,null))}for(;A<i.length;A+=1)i[A].d(1);i.length=p.length}d[12]||v.p(d,P)},d(d){d&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,d),v&&v.d()}}}function $(l){let t,n,a,r,s,m,y,f,b,_,g=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=z(H(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),g&&g.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),f=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(r,"structure","title"),e.set_custom_element_data(r,"width","100px"),e.set_custom_element_data(r,"height","20px"),e.set_custom_element_data(r,"margin-top","10px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(c,p){e.insert(c,t,p),e.append(t,n),g&&g.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,f);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(f,null);e.append(t,b),e.append(t,_)},p(c,p){if(p[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=H(c,h,i);u[i]?u[i].p(v,p):(u[i]=z(v),u[i].c(),u[i].m(f,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),g&&g.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,y,f,b,_,g=l[11]("title")+"",h,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),r=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),f=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(g),e.attr(f,"class","aaa"),e.attr(f,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(f,"transform","translate(15 15) rotate(180)"),e.attr(y,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,a),e.append(a,r),e.append(r,s),e.append(n,m),e.append(m,y),e.append(y,f),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[15]),e.listen(_,"click",l[15])],u=!0)},p(p,i){i[0]&2048&&g!==(g=p[11]("title")+"")&&e.set_data(h,g)},d(p){p&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,r,s,m,y=l[40].label+"",f,b,_,g,h;function u(){return l[25](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),f=e.text(y),b=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,r=l[40].img)||e.attr(a,"src",r),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,p){e.insert(c,t,p),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,f),e.append(t,b),g||(h=e.listen(t,"click",u),g=!0)},p(c,p){l=c,p[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),p[0]&128&&y!==(y=l[40].label+"")&&e.set_data(f,y),p[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),g=!1,h()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function z(l){let t,n,a,r,s=!l[12]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),r=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,a),e.append(t,r)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(l){let t;function n(s,m){return s[6]?$:Y}let a=n(l),r=a(l);return{c(){t=e.element("div"),r.c()},m(s,m){e.insert(s,t,m),r.m(t,null),l[26](t)},p(s,m){a===(a=n(s))&&r?r.p(s,m):(r.d(1),r=a(s),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),r.d(),l[26](null)}}}function re(l,t,n){let a;e.component_subscribe(l,e.$format,o=>n(11,a=o));let{endpoint:r=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:f=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:g=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:p}=t,i=!1,v=!1,d=!0,P,A=[],x,k=window.navigator.userAgent,D=e.getDevice(k)!=="PC",I="",C="";const j=window.matchMedia("(min-width: 768px)"),U=()=>{fetch(u).then(M=>M.json()).then(M=>{Object.keys(M).forEach(w=>{E(w,M[w])})}).catch(M=>{console.error(M)})};Object.keys(B).forEach(o=>{E(o,B[o])});const F=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,y=o.data.session);break}},q=()=>{let o=e.getDevice(k);if(o)return o==="PC"?"dk":"mtWeb"},R=()=>{const o=new URL(`${s}/${b}/profile-menu?env=${m}`);o.searchParams.append("device",q()),fetch(o.href).then(M=>M.json()).then(M=>{n(7,A=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,i=!0)})},G=()=>{let o=new URL(`${r}/v1/player/${f}/profile`);o.searchParams.append("userRoles",_);let M={method:"GET",headers:{"X-SessionID":y}};fetch(o.href,M).then(w=>w.json()).then(w=>{n(9,I=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(24,v=!0)})},L=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},T=()=>{var o;n(8,x=(o=A.find(M=>M.path.includes(c)))==null?void 0:o.id)},N=()=>{J(b)},Q=()=>{G()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const X=o=>L(o);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{P=o,n(5,P)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(16,s=o.cmsendpoint),"env"in o&&n(17,m=o.env),"session"in o&&n(0,y=o.session),"playerid"in o&&n(18,f=o.playerid),"lang"in o&&n(19,b=o.lang),"userroles"in o&&n(20,_=o.userroles),"clientstyling"in o&&n(2,g=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(21,u=o.translationurl),"activemenuitem"in o&&n(22,c=o.activemenuitem),"mbsource"in o&&n(4,p=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,d=!i||!v),l.$$.dirty[0]&524288&&b&&N(),l.$$.dirty[0]&786435&&r&&y&&f&&b&&Q(),l.$$.dirty[0]&720896&&s&&b&&m&&R(),l.$$.dirty[0]&4194304&&c&&T(),l.$$.dirty[0]&36&&g&&P&&e.setClientStyling(P,g),l.$$.dirty[0]&40&&h&&P&&e.setClientStylingURL(P,h),l.$$.dirty[0]&48&&p&&P&&e.setStreamStyling(P,`${p}.Style`),l.$$.dirty[0]&2097152&&u&&U()},[y,r,g,h,p,P,d,A,x,I,C,a,D,j,L,V,s,m,f,b,_,u,c,i,v,X,Z]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,userroles:20,clientstyling:2,clientstylingurl:3,translationurl:21,activemenuitem:22,mbsource:4},K,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[20]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[22]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(O,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=O;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DKq7aXpj.cjs");require("../stencil/ui-skeleton-BC4mw1ae.cjs");function E(l,t){e.addMessages(l,t)}function J(l){e.$locale.set(l)}const B={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-DKq7aXpj.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function K(l){e.append_styles(l,"svelte-io9slc",".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function W(l,t,n){const a=l.slice();return a[40]=t[n],a}function H(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,y,f,b,_,g,h,u=l[12]&&ee(l),c=l[12]&&te(l),p=e.ensure_array_like(l[7]),i=[];for(let d=0;d<p.length;d+=1)i[d]=S(W(l,p,d));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),r=e.element("p"),s=e.text(l[9]),m=e.space(),y=e.element("p"),f=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),g=e.element("div");for(let d=0;d<i.length;d+=1)i[d].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(g,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(d,P){e.insert(d,t,P),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,r),e.append(r,s),e.append(n,m),e.append(n,y),e.append(y,f),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,g);for(let A=0;A<i.length;A+=1)i[A]&&i[A].m(g,null);e.append(t,h),v&&v.m(t,null)},p(d,P){if(d[12]&&u.p(d,P),P[0]&512&&e.set_data(s,d[9]),P[0]&1024&&e.set_data(f,d[10]),d[12]&&c.p(d,P),P[0]&20864){p=e.ensure_array_like(d[7]);let A;for(A=0;A<p.length;A+=1){const x=W(d,p,A);i[A]?i[A].p(x,P):(i[A]=S(x),i[A].c(),i[A].m(g,null))}for(;A<i.length;A+=1)i[A].d(1);i.length=p.length}d[12]||v.p(d,P)},d(d){d&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,d),v&&v.d()}}}function $(l){let t,n,a,r,s,m,y,f,b,_,g=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=z(H(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),g&&g.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),f=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(r,"structure","title"),e.set_custom_element_data(r,"width","100px"),e.set_custom_element_data(r,"height","20px"),e.set_custom_element_data(r,"margin-top","10px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(c,p){e.insert(c,t,p),e.append(t,n),g&&g.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,f);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(f,null);e.append(t,b),e.append(t,_)},p(c,p){if(p[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=H(c,h,i);u[i]?u[i].p(v,p):(u[i]=z(v),u[i].c(),u[i].m(f,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),g&&g.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,y,f,b,_,g=l[11]("title")+"",h,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),r=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),f=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(g),e.attr(f,"class","aaa"),e.attr(f,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(f,"transform","translate(15 15) rotate(180)"),e.attr(y,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,a),e.append(a,r),e.append(r,s),e.append(n,m),e.append(m,y),e.append(y,f),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[15]),e.listen(_,"click",l[15])],u=!0)},p(p,i){i[0]&2048&&g!==(g=p[11]("title")+"")&&e.set_data(h,g)},d(p){p&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,r,s,m,y=l[40].label+"",f,b,_,g,h;function u(){return l[25](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),f=e.text(y),b=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,r=l[40].img)||e.attr(a,"src",r),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,p){e.insert(c,t,p),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,f),e.append(t,b),g||(h=e.listen(t,"click",u),g=!0)},p(c,p){l=c,p[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),p[0]&128&&y!==(y=l[40].label+"")&&e.set_data(f,y),p[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),g=!1,h()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function z(l){let t,n,a,r,s=!l[12]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),r=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,a),e.append(t,r)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(l){let t;function n(s,m){return s[6]?$:Y}let a=n(l),r=a(l);return{c(){t=e.element("div"),r.c()},m(s,m){e.insert(s,t,m),r.m(t,null),l[26](t)},p(s,m){a===(a=n(s))&&r?r.p(s,m):(r.d(1),r=a(s),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),r.d(),l[26](null)}}}function re(l,t,n){let a;e.component_subscribe(l,e.$format,o=>n(11,a=o));let{endpoint:r=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:f=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:g=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:p}=t,i=!1,v=!1,d=!0,P,A=[],x,k=window.navigator.userAgent,D=e.getDevice(k)!=="PC",I="",C="";const j=window.matchMedia("(min-width: 768px)"),U=()=>{fetch(u).then(M=>M.json()).then(M=>{Object.keys(M).forEach(w=>{E(w,M[w])})}).catch(M=>{console.error(M)})};Object.keys(B).forEach(o=>{E(o,B[o])});const F=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,y=o.data.session);break}},q=()=>{let o=e.getDevice(k);if(o)return o==="PC"?"dk":"mtWeb"},R=()=>{const o=new URL(`${s}/${b}/profile-menu?env=${m}`);o.searchParams.append("device",q()),fetch(o.href).then(M=>M.json()).then(M=>{n(7,A=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,i=!0)})},G=()=>{let o=new URL(`${r}/v1/player/${f}/profile`);o.searchParams.append("userRoles",_);let M={method:"GET",headers:{"X-SessionID":y}};fetch(o.href,M).then(w=>w.json()).then(w=>{n(9,I=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(24,v=!0)})},L=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},T=()=>{var o;n(8,x=(o=A.find(M=>M.path.includes(c)))==null?void 0:o.id)},N=()=>{J(b)},Q=()=>{G()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const X=o=>L(o);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{P=o,n(5,P)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(16,s=o.cmsendpoint),"env"in o&&n(17,m=o.env),"session"in o&&n(0,y=o.session),"playerid"in o&&n(18,f=o.playerid),"lang"in o&&n(19,b=o.lang),"userroles"in o&&n(20,_=o.userroles),"clientstyling"in o&&n(2,g=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(21,u=o.translationurl),"activemenuitem"in o&&n(22,c=o.activemenuitem),"mbsource"in o&&n(4,p=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,d=!i||!v),l.$$.dirty[0]&524288&&b&&N(),l.$$.dirty[0]&786435&&r&&y&&f&&b&&Q(),l.$$.dirty[0]&720896&&s&&b&&m&&R(),l.$$.dirty[0]&4194304&&c&&T(),l.$$.dirty[0]&36&&g&&P&&e.setClientStyling(P,g),l.$$.dirty[0]&40&&h&&P&&e.setClientStylingURL(P,h),l.$$.dirty[0]&48&&p&&P&&e.setStreamStyling(P,`${p}.Style`),l.$$.dirty[0]&2097152&&u&&U()},[y,r,g,h,p,P,d,A,x,I,C,a,D,j,L,V,s,m,f,b,_,u,c,i,v,X,Z]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,userroles:20,clientstyling:2,clientstylingurl:3,translationurl:21,activemenuitem:22,mbsource:4},K,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[20]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[22]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(O,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=O;
|