@everymatrix/player-account-controller-nd 1.68.0 → 1.69.1
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/PlayerAccountControllerNd-B8_Eg8M7.cjs +1 -0
- package/components/{PlayerAccountControllerNd-DdY0uS9P.js → PlayerAccountControllerNd-C9c5qHpB.js} +103 -15
- package/components/{PlayerAccountControllerNd-DLE8Fmlq.js → PlayerAccountControllerNd-D2utEHf5.js} +103 -15
- package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BwempsG_.js → PlayerAccountGamingLimits-Bj6iDB2S.js} +1 -1
- package/components/{PlayerAccountGamingLimits-C5fcaaR5.js → PlayerAccountGamingLimits-DxoR6Rl0.js} +1 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-5Xl-352p.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-CYeY3dwe.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-BiYcxWjN.js → PlayerAccountGamingLimitsInfoCard-B-8AhoxC.js} +2 -2
- package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-dUq3DIBx.js → PlayerAccountGamingLimitsInfoCard-DSLO6bv_.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-D0j9FESV.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-B6tELts_.cjs} +3 -3
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-JTp7ykpl.js → PlayerAccountGamingLimitsPage2Gm16Nd-CXQX6eNH.js} +108 -114
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Cp0HPknx.js → PlayerAccountGamingLimitsPage2Gm16Nd-Dx02fxKY.js} +129 -135
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DnzmU3uL.js → PlayerAccountGamingLimitsWrapper2Nd-CpyV2hP1.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-D6DATRJZ.cjs → PlayerAccountGamingLimitsWrapper2Nd-D5nHHoLm.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BEi1Ax2s.js → PlayerAccountGamingLimitsWrapper2Nd-DT0rCXco.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-C4zwKDdb.js → PlayerAccountGeneralConfirmationModal-BBveBuYk.js} +114 -119
- package/components/{PlayerAccountGeneralConfirmationModal-Byd2u6b9.js → PlayerAccountGeneralConfirmationModal-DFj-HuBM.js} +114 -119
- package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
- package/components/{PlayerAccountMenuNd-Cs9UjL2S.js → PlayerAccountMenuNd-BMBUbI6y.js} +1 -1
- package/components/{PlayerAccountMenuNd-BFdU3ZXb.cjs → PlayerAccountMenuNd-Bb8eCevo.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-Cx7Fxjin.js → PlayerAccountMenuNd-D1RwH7wH.js} +1 -1
- package/components/{PlayerAccountNotifications-bjLmyXO3.js → PlayerAccountNotifications-B-74n2wI.js} +1 -1
- package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-D8r2XtCv.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BjAtYQls.js → PlayerAccountNotifications-k9UyYE2n.js} +1 -1
- package/components/{PlayerAccountProductRestriction-BK1qKxhK.cjs → PlayerAccountProductRestriction-BRQ_0iRa.cjs} +261 -261
- package/components/{PlayerAccountProductRestriction-pQjnbz9B.js → PlayerAccountProductRestriction-Bb852CXS.js} +1941 -1960
- package/components/{PlayerAccountProductRestriction-BSOQXTrt.js → PlayerAccountProductRestriction-DuhY6Smp.js} +1929 -1948
- package/components/{PlayerAccountSelfExclusionNd-DnktIYiG.cjs → PlayerAccountSelfExclusionNd-CSTSxxS9.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-BG-L1FIn.js → PlayerAccountSelfExclusionNd-Ce5YAsGV.js} +3 -3
- package/components/{PlayerAccountSelfExclusionNd-Cm53bCiD.js → PlayerAccountSelfExclusionNd-kOAMG31m.js} +3 -3
- package/components/{PlayerAccountTimeout-BqGTX3_t.js → PlayerAccountTimeout-C5PJ_msd.js} +3 -3
- package/components/{PlayerAccountTimeout-C0aSuJAQ.cjs → PlayerAccountTimeout-CMtwjwEg.cjs} +1 -1
- package/components/{PlayerAccountTimeout-MJuN3qY1.js → PlayerAccountTimeout-ocrV5KJH.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-CWLsJxGB.js → PlayerAccountTransactionsHistory-097RLBFr.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-ClkTyrnI.js → PlayerAccountTransactionsHistory-DH_DQqUA.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-WOO2lyyP.cjs → PlayerAccountTransactionsHistory-DmawfuJF.cjs} +1 -1
- package/components/{PlayerActiveBonuses-D0-l-pB3.js → PlayerActiveBonuses-CD7vVwcl.js} +492 -462
- package/components/{PlayerActiveBonuses-LzSf0vDW.js → PlayerActiveBonuses-CfJuOJRv.js} +489 -459
- package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
- package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
- package/components/{PlayerBonusCard-C0Z6YeQL.js → PlayerBonusCard-CLcU7jvi.js} +207 -191
- package/components/{PlayerBonusCard-CYnvLBMF.js → PlayerBonusCard-DqH1t5fZ.js} +207 -191
- package/components/PlayerBonusHistory-1O3uWzIQ.cjs +1 -0
- package/components/PlayerBonusHistory-BM4fFqSh.js +1051 -0
- package/components/PlayerBonusHistory-ByBUgN3W.js +1040 -0
- package/components/PlayerGamingHistory-DQ4HRmmw.cjs +1 -0
- package/components/{PlayerGamingHistory-DV8OU2Tr.js → PlayerGamingHistory-_yfFEV_F.js} +472 -456
- package/components/PlayerGamingHistory-z-S43iX0.js +1016 -0
- package/components/{PlayerProfileInfo-DcmY9plr.cjs → PlayerProfileInfo-B_Ljin_V.cjs} +1 -1
- package/components/{PlayerProfileInfo-Cnrcnxn9.js → PlayerProfileInfo-D_Tgt-Px.js} +1 -1
- package/components/{PlayerProfileInfo-yVopMUMB.js → PlayerProfileInfo-DzX5fe6K.js} +1 -1
- package/components/{PlayerRealityCheck-RsT9a67Q.js → PlayerRealityCheck-6XXRahxA.js} +1 -1
- package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-BjYYGdSA.cjs} +1 -1
- package/components/{PlayerRealityCheck-C7EUl18t.js → PlayerRealityCheck-DGjxJY9s.js} +1 -1
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_14-D0Wi9yCm.js → checkbox-group-input_14-BFSnZagr.js} +59 -39
- package/stencil/{checkbox-group-input_14-0MlabybW.js → checkbox-group-input_14-GLjTTxmH.js} +59 -39
- package/stencil/{checkbox-group-input_14-BUUOn-f1.cjs → checkbox-group-input_14-uRy46KSq.cjs} +117 -117
- package/stencil/{index-13661b98-wjpz7oVL.cjs → index-13661b98-4yXy6CPB.cjs} +1 -1
- package/stencil/{index-13661b98-Dd0kDfGP.js → index-13661b98-D2nlyS8e.js} +1 -1
- package/stencil/{index-13661b98-Vb11Gqfi.js → index-13661b98-DIbjgfzn.js} +1 -1
- package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-2AC9SnQ7.js} +1 -1
- package/stencil/{index-7c5e707a-DvxqcEpc.js → index-7c5e707a-BM4sfR0h.js} +1 -1
- package/stencil/{index-7c5e707a-ESX_oqGB.cjs → index-7c5e707a-Cw-c3Bke.cjs} +1 -1
- package/stencil/{index-b2193545-Ct5AhxM8.cjs → index-b2193545-BabAkr0e.cjs} +1 -1
- package/stencil/{index-b2193545-DePry399.js → index-b2193545-BiOpH9En.js} +1 -1
- package/stencil/{index-b2193545-CnMZ4-Ff.js → index-b2193545-Ce-13pAo.js} +1 -1
- package/stencil/{pam-change-password-D23ISzqi.js → pam-change-password-BJkxTpcZ.js} +2 -2
- package/stencil/{pam-change-password-1_IegfkZ.cjs → pam-change-password-DBQlR2TU.cjs} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-Cxe8Atmr.js → pam-change-password-f4a1e7e7-BWQCkDNb.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-DzJmDiaX.js → pam-change-password-f4a1e7e7-C9NkOxiM.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-BqEyIcXD.cjs → pam-change-password-f4a1e7e7-D-bYL6gs.cjs} +1 -1
- package/stencil/{pam-change-password-BUGFXbZ2.js → pam-change-password-iLjG4ryi.js} +2 -2
- package/stencil/ui-skeleton-161699c3-B01ZhhJT.cjs +73 -0
- package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-161699c3-B6lE-0Wi.js} +61 -41
- package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-161699c3-D0o9EmS0.js} +61 -41
- package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-B3VBr2Bz.js} +3 -3
- package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-BENu4NGl.js} +3 -3
- package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-DQD9osiT.cjs} +1 -1
- package/stencil/user-transaction-history-7_yFZr3w.js +1645 -0
- package/stencil/user-transaction-history-DZZT2rYX.cjs +1 -0
- package/stencil/user-transaction-history-Dpd_aKdj.js +1621 -0
- package/components/PlayerAccountControllerNd-CWJ_S9v9.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-D0hqXEY4.js +0 -2891
- package/components/PlayerAccountGamingLimitsGroupEdit-DVvwhjK6.js +0 -2891
- package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
- package/components/PlayerActiveBonuses-Bc5S3wl_.cjs +0 -1
- package/components/PlayerBonusCard-BNNcjGWn.cjs +0 -1
- package/components/PlayerBonusHistory-C3fZQarG.js +0 -985
- package/components/PlayerBonusHistory-DWFOy5jX.js +0 -986
- package/components/PlayerBonusHistory-KSW8XpoL.cjs +0 -1
- package/components/PlayerGamingHistory-BBu7qQuS.js +0 -975
- package/components/PlayerGamingHistory-WTu28xyT.cjs +0 -1
- package/stencil/ui-skeleton-1cb75d00-Batko5iK.cjs +0 -73
- package/stencil/user-transaction-history-BAK7MHHa.js +0 -374
- package/stencil/user-transaction-history-DhQ6RqNc.js +0 -350
- package/stencil/user-transaction-history-DiRXpfbN.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as J, $ as K, S as F, i as Q, s as V, f as x, b as X, H as Y, d as S, r as Z, I as $, J as ee, K as te, L as ne, M as oe, c as T, g as L, h as m, l as j, j as _, k as B, m as O, o as l, p as re, q as ie, u as ae, n as le, v as H, w as se, x as ce, y as fe, z as me, A as de, B as ue } from "./GeneralLogout-PryurO1h.js";
|
|
2
2
|
function N(n, e) {
|
|
3
|
-
|
|
3
|
+
J(n, e);
|
|
4
4
|
}
|
|
5
5
|
function ge(n) {
|
|
6
|
-
|
|
6
|
+
K.set(n);
|
|
7
7
|
}
|
|
8
8
|
const P = {
|
|
9
9
|
en: {
|
|
@@ -52,229 +52,224 @@ const P = {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
function be(n) {
|
|
55
|
-
X(n, "svelte-
|
|
55
|
+
X(n, "svelte-8g0wf4", '*,*::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, 10px);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, 10px)}.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}');
|
|
56
56
|
}
|
|
57
57
|
const he = (n) => ({}), q = (n) => ({});
|
|
58
58
|
function Ce(n) {
|
|
59
59
|
let e, t;
|
|
60
60
|
return {
|
|
61
61
|
c() {
|
|
62
|
-
e =
|
|
62
|
+
e = H("svg"), t = H("path"), l(t, "stroke-linecap", "round"), l(t, "stroke-linejoin", "round"), l(t, "stroke-width", "2"), l(t, "d", "M6 18L18 6M6 6l12 12"), l(e, "class", "w-6 h-6"), l(e, "fill", "none"), l(e, "stroke", "currentColor"), l(e, "viewBox", "0 0 24 24"), l(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
63
63
|
},
|
|
64
|
-
m(
|
|
65
|
-
L(
|
|
64
|
+
m(i, c) {
|
|
65
|
+
L(i, e, c), m(e, t);
|
|
66
66
|
},
|
|
67
67
|
p: le,
|
|
68
|
-
d(
|
|
69
|
-
|
|
68
|
+
d(i) {
|
|
69
|
+
i && S(e);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
let e, t,
|
|
73
|
+
function E(n) {
|
|
74
|
+
let e, t, i;
|
|
75
75
|
return {
|
|
76
76
|
c() {
|
|
77
|
-
e = _("div"), t = _("h2"),
|
|
77
|
+
e = _("div"), t = _("h2"), i = O(
|
|
78
78
|
/*modaltitle*/
|
|
79
79
|
n[1]
|
|
80
80
|
), l(e, "class", "GeneralConfirmationTitle");
|
|
81
81
|
},
|
|
82
|
-
m(
|
|
83
|
-
L(
|
|
82
|
+
m(c, d) {
|
|
83
|
+
L(c, e, d), m(e, t), m(t, i);
|
|
84
84
|
},
|
|
85
|
-
p(
|
|
85
|
+
p(c, d) {
|
|
86
86
|
d & /*modaltitle*/
|
|
87
|
-
2 &&
|
|
88
|
-
|
|
87
|
+
2 && T(
|
|
88
|
+
i,
|
|
89
89
|
/*modaltitle*/
|
|
90
|
-
|
|
90
|
+
c[1]
|
|
91
91
|
);
|
|
92
92
|
},
|
|
93
|
-
d(
|
|
94
|
-
|
|
93
|
+
d(c) {
|
|
94
|
+
c && S(e);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function I(n) {
|
|
99
99
|
let e, t = (
|
|
100
100
|
/*$_*/
|
|
101
101
|
n[4]("cancel") + ""
|
|
102
|
-
),
|
|
102
|
+
), i, c, d;
|
|
103
103
|
return {
|
|
104
104
|
c() {
|
|
105
|
-
e = _("button"),
|
|
105
|
+
e = _("button"), i = O(t), l(e, "class", "GeneralCancelButton");
|
|
106
106
|
},
|
|
107
|
-
m(f,
|
|
108
|
-
L(f, e,
|
|
107
|
+
m(f, w) {
|
|
108
|
+
L(f, e, w), m(e, i), c || (d = j(
|
|
109
109
|
e,
|
|
110
110
|
"click",
|
|
111
111
|
/*click_handler*/
|
|
112
112
|
n[17]
|
|
113
|
-
),
|
|
113
|
+
), c = !0);
|
|
114
114
|
},
|
|
115
|
-
p(f,
|
|
116
|
-
|
|
115
|
+
p(f, w) {
|
|
116
|
+
w & /*$_*/
|
|
117
117
|
16 && t !== (t = /*$_*/
|
|
118
|
-
f[4]("cancel") + "") &&
|
|
118
|
+
f[4]("cancel") + "") && T(i, t);
|
|
119
119
|
},
|
|
120
120
|
d(f) {
|
|
121
|
-
f &&
|
|
121
|
+
f && S(e), c = !1, d();
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
function pe(n) {
|
|
126
|
-
let e, t,
|
|
126
|
+
let e, t, i, c, d, f, w, b, y, h, v = (
|
|
127
127
|
/*$_*/
|
|
128
128
|
n[4]("confirm") + ""
|
|
129
|
-
), k, u, G,
|
|
130
|
-
const
|
|
129
|
+
), k, u, G, M;
|
|
130
|
+
const g = (
|
|
131
131
|
/*#slots*/
|
|
132
132
|
n[16].close
|
|
133
|
-
),
|
|
134
|
-
|
|
133
|
+
), A = Y(
|
|
134
|
+
g,
|
|
135
135
|
n,
|
|
136
136
|
/*$$scope*/
|
|
137
137
|
n[15],
|
|
138
138
|
q
|
|
139
|
-
),
|
|
140
|
-
let
|
|
139
|
+
), C = A || Ce();
|
|
140
|
+
let s = (
|
|
141
141
|
/*modaltitle*/
|
|
142
|
-
n[1] &&
|
|
143
|
-
),
|
|
142
|
+
n[1] && E(n)
|
|
143
|
+
), a = (
|
|
144
144
|
/*hascancelbutton*/
|
|
145
|
-
n[2] &&
|
|
145
|
+
n[2] && I(n)
|
|
146
146
|
);
|
|
147
147
|
return {
|
|
148
148
|
c() {
|
|
149
|
-
e = _("div"), t = _("div"),
|
|
150
|
-
/*modaltext*/
|
|
151
|
-
n[0]
|
|
152
|
-
), A = z(), g = _("div"), c && c.c(), y = z(), p = _("button"), k = E(w), l(r, "class", "ModalCloseBtn"), l(r, "role", "button"), l(f, "class", "GeneralConfirmationContent"), l(p, "class", "GeneralConfirmButton"), l(g, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
149
|
+
e = _("div"), t = _("div"), i = _("span"), C && C.c(), c = B(), s && s.c(), d = B(), f = _("div"), w = B(), b = _("div"), a && a.c(), y = B(), h = _("button"), k = O(v), l(i, "class", "ModalCloseBtn"), l(i, "role", "button"), l(f, "class", "GeneralConfirmationContent"), l(h, "class", "GeneralConfirmButton"), l(b, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
153
150
|
(n[5] ? "GeneralConfirmationControlAreaMobile" : "")), l(t, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
154
151
|
(n[5] ? "GeneralConfirmationContainerMobile" : "")), l(e, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
155
152
|
(n[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
156
153
|
},
|
|
157
|
-
m(
|
|
158
|
-
L(
|
|
159
|
-
|
|
160
|
-
|
|
154
|
+
m(r, p) {
|
|
155
|
+
L(r, e, p), m(e, t), m(t, i), C && C.m(i, null), m(t, c), s && s.m(t, null), m(t, d), m(t, f), f.innerHTML = /*modaltext*/
|
|
156
|
+
n[0], m(t, w), m(t, b), a && a.m(b, null), m(b, y), m(b, h), m(h, k), n[19](e), u = !0, G || (M = [
|
|
157
|
+
j(
|
|
158
|
+
i,
|
|
161
159
|
"click",
|
|
162
160
|
/*close*/
|
|
163
161
|
n[6]
|
|
164
162
|
),
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
j(
|
|
164
|
+
h,
|
|
167
165
|
"click",
|
|
168
166
|
/*click_handler_1*/
|
|
169
167
|
n[18]
|
|
170
168
|
)
|
|
171
169
|
], G = !0);
|
|
172
170
|
},
|
|
173
|
-
p(
|
|
174
|
-
|
|
171
|
+
p(r, [p]) {
|
|
172
|
+
A && A.p && (!u || p & /*$$scope*/
|
|
175
173
|
32768) && te(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
A,
|
|
175
|
+
g,
|
|
176
|
+
r,
|
|
179
177
|
/*$$scope*/
|
|
180
|
-
|
|
178
|
+
r[15],
|
|
181
179
|
u ? oe(
|
|
182
|
-
|
|
180
|
+
g,
|
|
183
181
|
/*$$scope*/
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
r[15],
|
|
183
|
+
p,
|
|
186
184
|
he
|
|
187
185
|
) : ne(
|
|
188
186
|
/*$$scope*/
|
|
189
|
-
|
|
187
|
+
r[15]
|
|
190
188
|
),
|
|
191
189
|
q
|
|
192
190
|
), /*modaltitle*/
|
|
193
|
-
|
|
194
|
-
1) &&
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
),
|
|
199
|
-
i[2] ? c ? c.p(i, x) : (c = R(i), c.c(), c.m(g, y)) : c && (c.d(1), c = null), (!u || x & /*$_*/
|
|
200
|
-
16) && w !== (w = /*$_*/
|
|
201
|
-
i[4]("confirm") + "") && S(k, w);
|
|
191
|
+
r[1] ? s ? s.p(r, p) : (s = E(r), s.c(), s.m(t, d)) : s && (s.d(1), s = null), (!u || p & /*modaltext*/
|
|
192
|
+
1) && (f.innerHTML = /*modaltext*/
|
|
193
|
+
r[0]), /*hascancelbutton*/
|
|
194
|
+
r[2] ? a ? a.p(r, p) : (a = I(r), a.c(), a.m(b, y)) : a && (a.d(1), a = null), (!u || p & /*$_*/
|
|
195
|
+
16) && v !== (v = /*$_*/
|
|
196
|
+
r[4]("confirm") + "") && T(k, v);
|
|
202
197
|
},
|
|
203
|
-
i(
|
|
204
|
-
u || (ee(
|
|
198
|
+
i(r) {
|
|
199
|
+
u || (ee(C, r), u = !0);
|
|
205
200
|
},
|
|
206
|
-
o(
|
|
207
|
-
$(
|
|
201
|
+
o(r) {
|
|
202
|
+
$(C, r), u = !1;
|
|
208
203
|
},
|
|
209
|
-
d(
|
|
210
|
-
|
|
204
|
+
d(r) {
|
|
205
|
+
r && S(e), C && C.d(r), s && s.d(), a && a.d(), n[19](null), G = !1, Z(M);
|
|
211
206
|
}
|
|
212
207
|
};
|
|
213
208
|
}
|
|
214
209
|
function xe(n, e, t) {
|
|
215
|
-
let
|
|
216
|
-
|
|
217
|
-
let { $$slots:
|
|
218
|
-
const
|
|
210
|
+
let i;
|
|
211
|
+
re(n, ue, (o) => t(4, i = o));
|
|
212
|
+
let { $$slots: c = {}, $$scope: d } = e, { modaltext: f = "Are you sure that you want to perform this action?" } = e, { modaltitle: w = "" } = e, { hascancelbutton: b = !1 } = e, { modalconfirmevent: y = {} } = e, { modalcancelevent: h = {} } = e, { lang: v = "en" } = e, { clientstyling: k = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: G = "" } = e, { mbsource: M } = e, g, A = window.navigator.userAgent, C = ie(A) !== "PC";
|
|
213
|
+
const s = () => {
|
|
219
214
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
220
215
|
}, a = (o) => {
|
|
221
|
-
o === "confirm" &&
|
|
222
|
-
},
|
|
223
|
-
fetch(
|
|
224
|
-
Object.keys(
|
|
225
|
-
N(
|
|
216
|
+
o === "confirm" && y && window.postMessage(y, window.location.href), o === "cancel" && h && window.postMessage(h, window.location.href), s();
|
|
217
|
+
}, r = () => {
|
|
218
|
+
fetch(G).then((z) => z.json()).then((z) => {
|
|
219
|
+
Object.keys(z).forEach((W) => {
|
|
220
|
+
N(W, z[W]);
|
|
226
221
|
});
|
|
227
|
-
}).catch((
|
|
228
|
-
console.log(
|
|
222
|
+
}).catch((z) => {
|
|
223
|
+
console.log(z);
|
|
229
224
|
});
|
|
230
225
|
};
|
|
231
226
|
Object.keys(P).forEach((o) => {
|
|
232
227
|
N(o, P[o]);
|
|
233
228
|
});
|
|
234
|
-
const
|
|
235
|
-
ge(
|
|
229
|
+
const p = () => {
|
|
230
|
+
ge(v);
|
|
236
231
|
};
|
|
237
232
|
ae(() => () => {
|
|
238
233
|
});
|
|
239
|
-
const
|
|
234
|
+
const R = () => a("cancel"), U = () => a("confirm");
|
|
240
235
|
function D(o) {
|
|
241
236
|
se[o ? "unshift" : "push"](() => {
|
|
242
|
-
|
|
237
|
+
g = o, t(3, g);
|
|
243
238
|
});
|
|
244
239
|
}
|
|
245
240
|
return n.$$set = (o) => {
|
|
246
|
-
"modaltext" in o && t(0, f = o.modaltext), "modaltitle" in o && t(1,
|
|
241
|
+
"modaltext" in o && t(0, f = o.modaltext), "modaltitle" in o && t(1, w = o.modaltitle), "hascancelbutton" in o && t(2, b = o.hascancelbutton), "modalconfirmevent" in o && t(8, y = o.modalconfirmevent), "modalcancelevent" in o && t(9, h = o.modalcancelevent), "lang" in o && t(10, v = o.lang), "clientstyling" in o && t(11, k = o.clientstyling), "clientstylingurl" in o && t(12, u = o.clientstylingurl), "translationurl" in o && t(13, G = o.translationurl), "mbsource" in o && t(14, M = o.mbsource), "$$scope" in o && t(15, d = o.$$scope);
|
|
247
242
|
}, n.$$.update = () => {
|
|
248
243
|
n.$$.dirty & /*modaltext, lang*/
|
|
249
|
-
1025 && f &&
|
|
250
|
-
2056 &&
|
|
251
|
-
4104 &&
|
|
252
|
-
16392 &&
|
|
253
|
-
8192 &&
|
|
244
|
+
1025 && f && v && p(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
245
|
+
2056 && k && g && ce(g, k), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
246
|
+
4104 && u && g && fe(g, u), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
247
|
+
16392 && M && g && me(g, `${M}.Style`), n.$$.dirty & /*translationurl*/
|
|
248
|
+
8192 && G && r();
|
|
254
249
|
}, [
|
|
255
250
|
f,
|
|
256
|
-
|
|
257
|
-
A,
|
|
251
|
+
w,
|
|
258
252
|
b,
|
|
259
|
-
r,
|
|
260
|
-
M,
|
|
261
|
-
h,
|
|
262
|
-
a,
|
|
263
253
|
g,
|
|
254
|
+
i,
|
|
255
|
+
C,
|
|
256
|
+
s,
|
|
257
|
+
a,
|
|
264
258
|
y,
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
h,
|
|
260
|
+
v,
|
|
267
261
|
k,
|
|
268
262
|
u,
|
|
269
263
|
G,
|
|
264
|
+
M,
|
|
270
265
|
d,
|
|
271
|
-
|
|
272
|
-
|
|
266
|
+
c,
|
|
267
|
+
R,
|
|
273
268
|
U,
|
|
274
269
|
D
|
|
275
270
|
];
|
|
276
271
|
}
|
|
277
|
-
class
|
|
272
|
+
class we extends F {
|
|
278
273
|
constructor(e) {
|
|
279
274
|
super(), Q(
|
|
280
275
|
this,
|
|
@@ -301,64 +296,64 @@ class ve extends K {
|
|
|
301
296
|
return this.$$.ctx[0];
|
|
302
297
|
}
|
|
303
298
|
set modaltext(e) {
|
|
304
|
-
this.$$set({ modaltext: e }),
|
|
299
|
+
this.$$set({ modaltext: e }), x();
|
|
305
300
|
}
|
|
306
301
|
get modaltitle() {
|
|
307
302
|
return this.$$.ctx[1];
|
|
308
303
|
}
|
|
309
304
|
set modaltitle(e) {
|
|
310
|
-
this.$$set({ modaltitle: e }),
|
|
305
|
+
this.$$set({ modaltitle: e }), x();
|
|
311
306
|
}
|
|
312
307
|
get hascancelbutton() {
|
|
313
308
|
return this.$$.ctx[2];
|
|
314
309
|
}
|
|
315
310
|
set hascancelbutton(e) {
|
|
316
|
-
this.$$set({ hascancelbutton: e }),
|
|
311
|
+
this.$$set({ hascancelbutton: e }), x();
|
|
317
312
|
}
|
|
318
313
|
get modalconfirmevent() {
|
|
319
314
|
return this.$$.ctx[8];
|
|
320
315
|
}
|
|
321
316
|
set modalconfirmevent(e) {
|
|
322
|
-
this.$$set({ modalconfirmevent: e }),
|
|
317
|
+
this.$$set({ modalconfirmevent: e }), x();
|
|
323
318
|
}
|
|
324
319
|
get modalcancelevent() {
|
|
325
320
|
return this.$$.ctx[9];
|
|
326
321
|
}
|
|
327
322
|
set modalcancelevent(e) {
|
|
328
|
-
this.$$set({ modalcancelevent: e }),
|
|
323
|
+
this.$$set({ modalcancelevent: e }), x();
|
|
329
324
|
}
|
|
330
325
|
get lang() {
|
|
331
326
|
return this.$$.ctx[10];
|
|
332
327
|
}
|
|
333
328
|
set lang(e) {
|
|
334
|
-
this.$$set({ lang: e }),
|
|
329
|
+
this.$$set({ lang: e }), x();
|
|
335
330
|
}
|
|
336
331
|
get clientstyling() {
|
|
337
332
|
return this.$$.ctx[11];
|
|
338
333
|
}
|
|
339
334
|
set clientstyling(e) {
|
|
340
|
-
this.$$set({ clientstyling: e }),
|
|
335
|
+
this.$$set({ clientstyling: e }), x();
|
|
341
336
|
}
|
|
342
337
|
get clientstylingurl() {
|
|
343
338
|
return this.$$.ctx[12];
|
|
344
339
|
}
|
|
345
340
|
set clientstylingurl(e) {
|
|
346
|
-
this.$$set({ clientstylingurl: e }),
|
|
341
|
+
this.$$set({ clientstylingurl: e }), x();
|
|
347
342
|
}
|
|
348
343
|
get translationurl() {
|
|
349
344
|
return this.$$.ctx[13];
|
|
350
345
|
}
|
|
351
346
|
set translationurl(e) {
|
|
352
|
-
this.$$set({ translationurl: e }),
|
|
347
|
+
this.$$set({ translationurl: e }), x();
|
|
353
348
|
}
|
|
354
349
|
get mbsource() {
|
|
355
350
|
return this.$$.ctx[14];
|
|
356
351
|
}
|
|
357
352
|
set mbsource(e) {
|
|
358
|
-
this.$$set({ mbsource: e }),
|
|
353
|
+
this.$$set({ mbsource: e }), x();
|
|
359
354
|
}
|
|
360
355
|
}
|
|
361
|
-
de(
|
|
356
|
+
de(we, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
362
357
|
export {
|
|
363
|
-
|
|
358
|
+
we as default
|
|
364
359
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-Dzu2Sl-x.cjs");function A(o,t){e.addMessages(o,t)}function W(o){e.$locale.set(o)}const z={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 N(o){e.append_styles(o,"svelte-8g0wf4",'*,*::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, 10px);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, 10px)}.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 q=o=>({}),B=o=>({});function E(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,s){e.insert(i,t,s),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(s,m){e.insert(s,t,m),e.append(t,n),e.append(n,i)},p(s,m){m&2&&e.set_data(i,s[1])},d(s){s&&e.detach(t)}}}function L(o){let t,n=o[4]("cancel")+"",i,s,m;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(f,C){e.insert(f,t,C),e.append(t,i),s||(m=e.listen(t,"click",o[17]),s=!0)},p(f,C){C&16&&n!==(n=f[4]("cancel")+"")&&e.set_data(i,n)},d(f){f&&e.detach(t),s=!1,m()}}}function H(o){let t,n,i,s,m,f,C,g,_,b,x=o[4]("confirm")+"",v,d,w,y;const u=o[16].close,k=e.create_slot(u,o,o[15],B),h=k||E();let c=o[1]&&S(o),a=o[2]&&L(o);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),h&&h.c(),s=e.space(),c&&c.c(),m=e.space(),f=e.element("div"),C=e.space(),g=e.element("div"),a&&a.c(),_=e.space(),b=e.element("button"),v=e.text(x),e.attr(i,"class","ModalCloseBtn"),e.attr(i,"role","button"),e.attr(f,"class","GeneralConfirmationContent"),e.attr(b,"class","GeneralConfirmButton"),e.attr(g,"class","GeneralConfirmationControlArea "+(o[5]?"GeneralConfirmationControlAreaMobile":"")),e.attr(n,"class","GeneralConfirmationContainer "+(o[5]?"GeneralConfirmationContainerMobile":"")),e.attr(t,"class","GeneralConfirmationWrapper "+(o[5]?"GeneralConfirmationMobileWrapper":""))},m(l,p){e.insert(l,t,p),e.append(t,n),e.append(n,i),h&&h.m(i,null),e.append(n,s),c&&c.m(n,null),e.append(n,m),e.append(n,f),f.innerHTML=o[0],e.append(n,C),e.append(n,g),a&&a.m(g,null),e.append(g,_),e.append(g,b),e.append(b,v),o[19](t),d=!0,w||(y=[e.listen(i,"click",o[6]),e.listen(b,"click",o[18])],w=!0)},p(l,[p]){k&&k.p&&(!d||p&32768)&&e.update_slot_base(k,u,l,l[15],d?e.get_slot_changes(u,l[15],p,q):e.get_all_dirty_from_scope(l[15]),B),l[1]?c?c.p(l,p):(c=S(l),c.c(),c.m(n,m)):c&&(c.d(1),c=null),(!d||p&1)&&(f.innerHTML=l[0]),l[2]?a?a.p(l,p):(a=L(l),a.c(),a.m(g,_)):a&&(a.d(1),a=null),(!d||p&16)&&x!==(x=l[4]("confirm")+"")&&e.set_data(v,x)},i(l){d||(e.transition_in(h,l),d=!0)},o(l){e.transition_out(h,l),d=!1},d(l){l&&e.detach(t),h&&h.d(l),c&&c.d(),a&&a.d(),o[19](null),w=!1,e.run_all(y)}}}function R(o,t,n){let i;e.component_subscribe(o,e.$format,r=>n(4,i=r));let{$$slots:s={},$$scope:m}=t,{modaltext:f="Are you sure that you want to perform this action?"}=t,{modaltitle:C=""}=t,{hascancelbutton:g=!1}=t,{modalconfirmevent:_={}}=t,{modalcancelevent:b={}}=t,{lang:x="en"}=t,{clientstyling:v=""}=t,{clientstylingurl:d=""}=t,{translationurl:w=""}=t,{mbsource:y}=t,u,k=window.navigator.userAgent,h=e.getDevice(k)!=="PC";const c=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},a=r=>{r==="confirm"&&_&&window.postMessage(_,window.location.href),r==="cancel"&&b&&window.postMessage(b,window.location.href),c()},l=()=>{fetch(w).then(G=>G.json()).then(G=>{Object.keys(G).forEach(M=>{A(M,G[M])})}).catch(G=>{console.log(G)})};Object.keys(z).forEach(r=>{A(r,z[r])});const p=()=>{W(x)};e.onMount(()=>()=>{});const T=()=>a("cancel"),O=()=>a("confirm");function P(r){e.binding_callbacks[r?"unshift":"push"](()=>{u=r,n(3,u)})}return o.$$set=r=>{"modaltext"in r&&n(0,f=r.modaltext),"modaltitle"in r&&n(1,C=r.modaltitle),"hascancelbutton"in r&&n(2,g=r.hascancelbutton),"modalconfirmevent"in r&&n(8,_=r.modalconfirmevent),"modalcancelevent"in r&&n(9,b=r.modalcancelevent),"lang"in r&&n(10,x=r.lang),"clientstyling"in r&&n(11,v=r.clientstyling),"clientstylingurl"in r&&n(12,d=r.clientstylingurl),"translationurl"in r&&n(13,w=r.translationurl),"mbsource"in r&&n(14,y=r.mbsource),"$$scope"in r&&n(15,m=r.$$scope)},o.$$.update=()=>{o.$$.dirty&1025&&f&&x&&p(),o.$$.dirty&2056&&v&&u&&e.setClientStyling(u,v),o.$$.dirty&4104&&d&&u&&e.setClientStylingURL(u,d),o.$$.dirty&16392&&y&&u&&e.setStreamStyling(u,`${y}.Style`),o.$$.dirty&8192&&w&&l()},[f,C,g,u,i,h,c,a,_,b,x,v,d,w,y,m,s,T,O,P]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,R,H,e.safe_not_equal,{modaltext:0,modaltitle:1,hascancelbutton:2,modalconfirmevent:8,modalcancelevent:9,lang:10,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14},N)}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,5 +1,5 @@
|
|
|
1
1
|
import { a as me, $ as de, S as ge, i as fe, s as ye, f as I, b as pe, n as O, d as F, g as E, j as b, p as he, q as V, u as be, w as Ae, O as z, P as ee, h as a, k, e as m, o as d, c as T, m as W, r as Me, l as j, v as H, a1 as X, x as we, y as ve, z as Pe, A as _e, B as xe } from "./GeneralLogout-PryurO1h.js";
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
2
|
+
import "../stencil/ui-skeleton-B3VBr2Bz.js";
|
|
3
3
|
function Z(n, e) {
|
|
4
4
|
me(n, e);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-Dzu2Sl-x.cjs");require("../stencil/ui-skeleton-t0bb1jH7.cjs");function H(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const W={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-Dzu2Sl-x.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-j26xf8",'.PlayerAccountMenuContainer{background:var(--emw--color-primary, #184026);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;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%;border-radius:10px;overflow:hidden}.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:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 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:14px 20px;margin:2px 0;font-size:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 10px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.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{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.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:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function T(l,t,n){const a=l.slice();return a[41]=t[n],a}function z(l,t,n){const a=l.slice();return a[38]=t[n],a}function Y(l){let t,n,a,i,c,m,f,_,A,y,h,b,u=l[12]&&ee(l),s=l[12]&&te(l),d=e.ensure_array_like(l[7]),o=[];for(let p=0;p<d.length;p+=1)o[p]=S(T(l,d,p));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),i=e.element("p"),c=e.text(l[9]),m=e.space(),f=e.element("p"),_=e.text(l[10]),A=e.space(),s&&s.c(),y=e.space(),h=e.element("div");for(let p=0;p<o.length;p+=1)o[p].c();b=e.space(),v&&v.c(),e.attr(i,"class","PlayerAccountMenuUser"),e.attr(i,"translate","no"),e.attr(f,"class","PlayerAccountMenuEmail"),e.attr(f,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,i),e.append(i,c),e.append(n,m),e.append(n,f),e.append(f,_),e.append(n,A),s&&s.m(n,null),e.append(t,y),e.append(t,h);for(let g=0;g<o.length;g+=1)o[g]&&o[g].m(h,null);e.append(t,b),v&&v.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(c,p[9]),w[0]&1024&&e.set_data(_,p[10]),p[12]&&s.p(p,w),w[0]&12672){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=T(p,d,g);o[g]?o[g].p(x,w):(o[g]=S(x),o[g].c(),o[g].m(h,null))}for(;g<o.length;g+=1)o[g].d(1);o.length=d.length}p[12]||v.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),s&&s.d(),e.destroy_each(o,p),v&&v.d()}}}function $(l){let t,n,a,i,c,m,f,_,A,y,h=l[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let s=0;s<b.length;s+=1)u[s]=O(z(l,b,s));return{c(){t=e.element("div"),n=e.element("div"),h&&h.c(),a=e.space(),i=e.element("ui-skeleton"),c=e.space(),m=e.element("ui-skeleton"),f=e.space(),_=e.element("div");for(let s=0;s<u.length;s+=1)u[s].c();A=e.space(),y=e.element("div"),y.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(i,"structure","title"),e.set_custom_element_data(i,"width","100px"),e.set_custom_element_data(i,"height","20px"),e.set_custom_element_data(i,"margin-top","20px"),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(_,"class","PlayerAccountMenuList"),e.attr(y,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(s,d){e.insert(s,t,d),e.append(t,n),h&&h.m(n,null),e.append(n,a),e.append(n,i),e.append(n,c),e.append(n,m),e.append(t,f),e.append(t,_);for(let o=0;o<u.length;o+=1)u[o]&&u[o].m(_,null);e.append(t,A),e.append(t,y)},p(s,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let o;for(o=0;o<b.length;o+=1){const v=z(s,b,o);u[o]?u[o].p(v,d):(u[o]=O(v),u[o].c(),u[o].m(_,null))}for(;o<u.length;o+=1)u[o].d(1);u.length=b.length}},d(s){s&&e.detach(t),h&&h.d(),e.destroy_each(u,s)}}}function ee(l){let t,n,a,i,c,m,f,_,A,y,h=l[11]("title")+"",b,u,s;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),i=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),f=e.svg_element("g"),_=e.svg_element("path"),A=e.space(),y=e.element("h3"),b=e.text(h),e.attr(_,"class","aaa"),e.attr(_,"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(_,"transform","translate(15 15) rotate(180)"),e.attr(f,"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(y,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,o){e.insert(d,t,o),e.append(t,n),e.append(n,a),e.append(a,i),e.append(i,c),e.append(n,m),e.append(m,f),e.append(f,_),e.append(t,A),e.append(t,y),e.append(y,b),u||(s=[e.listen(n,"click",l[14]),e.listen(y,"click",l[14])],u=!0)},p(d,o){o[0]&2048&&h!==(h=d[11]("title")+"")&&e.set_data(b,h)},d(d){d&&e.detach(t),u=!1,e.run_all(s)}}}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,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,i,c,m,f=l[41].label+"",_,A,y,h,b;function u(){return l[25](l[41])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),c=e.space(),m=e.element("span"),_=e.text(f),A=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,i=l[41].img)||e.attr(a,"src",i),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(s,d){e.insert(s,t,d),e.append(t,n),e.append(n,a),e.append(n,c),e.append(n,m),e.append(m,_),e.append(t,A),h||(b=e.listen(t,"click",u),h=!0)},p(s,d){l=s,d[0]&128&&!e.src_url_equal(a.src,i=l[41].img)&&e.attr(a,"src",i),d[0]&128&&f!==(f=l[41].label+"")&&e.set_data(_,f),d[0]&384&&y!==(y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",y)},d(s){s&&e.detach(t),h=!1,b()}}}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,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[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="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></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 O(l){let t,n,a,i,c=!l[12]&&ae();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),a=e.element("ui-skeleton"),i=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]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,f){e.insert(m,t,f),c&&c.m(t,null),e.append(t,n),e.append(t,a),e.append(t,i)},p:e.noop,d(m){m&&e.detach(t),c&&c.d()}}}function re(l){let t;function n(c,m){return c[6]?$:Y}let a=n(l),i=a(l);return{c(){t=e.element("div"),i.c()},m(c,m){e.insert(c,t,m),i.m(t,null),l[26](t)},p(c,m){a===(a=n(c))&&i?i.p(c,m):(i.d(1),i=a(c),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(c){c&&e.detach(t),i.d(),l[26](null)}}}function ie(l,t,n){let a;e.component_subscribe(l,e.$format,r=>n(11,a=r));let{endpoint:i=""}=t,{cmsendpoint:c=""}=t,{env:m=""}=t,{session:f=""}=t,{playerid:_=""}=t,{lang:A="en"}=t,{selecteditem:y=""}=t,{userroles:h=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:s}=t,{translationurl:d=""}=t,{activemenuitem:o=""}=t,v=!1,p=!1,w=!0,g,x=[],k,I=window.navigator.userAgent,D=e.getDevice(I)!=="PC",C="",F="";window.matchMedia("(min-width: 768px)");const U=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(P=>{H(P,M[P])})}).catch(M=>{console.error(M)})};Object.keys(W).forEach(r=>{H(r,W[r])});const E=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,f=r.data.session);break}},q=()=>{let r=e.getDevice(I);if(r)return r==="PC"?"dk":"mtWeb"},R=()=>{const r=new URL(`${c}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",q()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),B()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,v=!0)})},G=()=>{let r=new URL(`${i}/v1/player/${_}/profile`);r.searchParams.append("userRoles",h);let M={method:"GET",headers:{"X-SessionID":f}};fetch(r.href,M).then(P=>P.json()).then(P=>{n(9,C=P.username),n(10,F=P.email)},P=>{console.error(P)}).finally(()=>{n(24,p=!0)})},L=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},B=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(o)))==null?void 0:r.id)},N=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},V=()=>{K(A)},X=()=>{G()};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const Z=r=>L(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return l.$$set=r=>{"endpoint"in r&&n(1,i=r.endpoint),"cmsendpoint"in r&&n(15,c=r.cmsendpoint),"env"in r&&n(16,m=r.env),"session"in r&&n(0,f=r.session),"playerid"in r&&n(17,_=r.playerid),"lang"in r&&n(18,A=r.lang),"selecteditem"in r&&n(19,y=r.selecteditem),"userroles"in r&&n(20,h=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,s=r.mbsource),"translationurl"in r&&n(21,d=r.translationurl),"activemenuitem"in r&&n(22,o=r.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,w=!v||!p),l.$$.dirty[0]&262144&&A&&V(),l.$$.dirty[0]&393219&&i&&f&&_&&A&&X(),l.$$.dirty[0]&360448&&c&&A&&m&&R(),l.$$.dirty[0]&4194304&&o&&B(),l.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),l.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),l.$$.dirty[0]&48&&s&&g&&e.setStreamStyling(g,`${s}.Style`),l.$$.dirty[0]&2097152&&d&&U()},[f,i,b,u,s,g,w,x,k,C,F,a,D,L,N,c,m,_,A,y,h,d,o,v,p,Z,J]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,selecteditem:19,userroles:20,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:21,activemenuitem:22},Q,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[15]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[16]}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[17]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[19]}set selecteditem(t){this.$$set({selecteditem: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 mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource: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()}}e.create_custom_element(j,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=j;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-Dzu2Sl-x.cjs");require("../stencil/ui-skeleton-DQD9osiT.cjs");function H(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const W={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-Dzu2Sl-x.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-j26xf8",'.PlayerAccountMenuContainer{background:var(--emw--color-primary, #184026);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;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%;border-radius:10px;overflow:hidden}.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:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 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:14px 20px;margin:2px 0;font-size:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 10px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.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{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.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:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function T(l,t,n){const a=l.slice();return a[41]=t[n],a}function z(l,t,n){const a=l.slice();return a[38]=t[n],a}function Y(l){let t,n,a,i,c,m,f,_,A,y,h,b,u=l[12]&&ee(l),s=l[12]&&te(l),d=e.ensure_array_like(l[7]),o=[];for(let p=0;p<d.length;p+=1)o[p]=S(T(l,d,p));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),i=e.element("p"),c=e.text(l[9]),m=e.space(),f=e.element("p"),_=e.text(l[10]),A=e.space(),s&&s.c(),y=e.space(),h=e.element("div");for(let p=0;p<o.length;p+=1)o[p].c();b=e.space(),v&&v.c(),e.attr(i,"class","PlayerAccountMenuUser"),e.attr(i,"translate","no"),e.attr(f,"class","PlayerAccountMenuEmail"),e.attr(f,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,i),e.append(i,c),e.append(n,m),e.append(n,f),e.append(f,_),e.append(n,A),s&&s.m(n,null),e.append(t,y),e.append(t,h);for(let g=0;g<o.length;g+=1)o[g]&&o[g].m(h,null);e.append(t,b),v&&v.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(c,p[9]),w[0]&1024&&e.set_data(_,p[10]),p[12]&&s.p(p,w),w[0]&12672){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=T(p,d,g);o[g]?o[g].p(x,w):(o[g]=S(x),o[g].c(),o[g].m(h,null))}for(;g<o.length;g+=1)o[g].d(1);o.length=d.length}p[12]||v.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),s&&s.d(),e.destroy_each(o,p),v&&v.d()}}}function $(l){let t,n,a,i,c,m,f,_,A,y,h=l[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let s=0;s<b.length;s+=1)u[s]=O(z(l,b,s));return{c(){t=e.element("div"),n=e.element("div"),h&&h.c(),a=e.space(),i=e.element("ui-skeleton"),c=e.space(),m=e.element("ui-skeleton"),f=e.space(),_=e.element("div");for(let s=0;s<u.length;s+=1)u[s].c();A=e.space(),y=e.element("div"),y.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(i,"structure","title"),e.set_custom_element_data(i,"width","100px"),e.set_custom_element_data(i,"height","20px"),e.set_custom_element_data(i,"margin-top","20px"),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(_,"class","PlayerAccountMenuList"),e.attr(y,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(s,d){e.insert(s,t,d),e.append(t,n),h&&h.m(n,null),e.append(n,a),e.append(n,i),e.append(n,c),e.append(n,m),e.append(t,f),e.append(t,_);for(let o=0;o<u.length;o+=1)u[o]&&u[o].m(_,null);e.append(t,A),e.append(t,y)},p(s,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let o;for(o=0;o<b.length;o+=1){const v=z(s,b,o);u[o]?u[o].p(v,d):(u[o]=O(v),u[o].c(),u[o].m(_,null))}for(;o<u.length;o+=1)u[o].d(1);u.length=b.length}},d(s){s&&e.detach(t),h&&h.d(),e.destroy_each(u,s)}}}function ee(l){let t,n,a,i,c,m,f,_,A,y,h=l[11]("title")+"",b,u,s;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),i=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),f=e.svg_element("g"),_=e.svg_element("path"),A=e.space(),y=e.element("h3"),b=e.text(h),e.attr(_,"class","aaa"),e.attr(_,"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(_,"transform","translate(15 15) rotate(180)"),e.attr(f,"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(y,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,o){e.insert(d,t,o),e.append(t,n),e.append(n,a),e.append(a,i),e.append(i,c),e.append(n,m),e.append(m,f),e.append(f,_),e.append(t,A),e.append(t,y),e.append(y,b),u||(s=[e.listen(n,"click",l[14]),e.listen(y,"click",l[14])],u=!0)},p(d,o){o[0]&2048&&h!==(h=d[11]("title")+"")&&e.set_data(b,h)},d(d){d&&e.detach(t),u=!1,e.run_all(s)}}}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,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,i,c,m,f=l[41].label+"",_,A,y,h,b;function u(){return l[25](l[41])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),c=e.space(),m=e.element("span"),_=e.text(f),A=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,i=l[41].img)||e.attr(a,"src",i),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(s,d){e.insert(s,t,d),e.append(t,n),e.append(n,a),e.append(n,c),e.append(n,m),e.append(m,_),e.append(t,A),h||(b=e.listen(t,"click",u),h=!0)},p(s,d){l=s,d[0]&128&&!e.src_url_equal(a.src,i=l[41].img)&&e.attr(a,"src",i),d[0]&128&&f!==(f=l[41].label+"")&&e.set_data(_,f),d[0]&384&&y!==(y="PlayerAccountMenuItemBox "+(l[8]===l[41].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",y)},d(s){s&&e.detach(t),h=!1,b()}}}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,i){e.insert(a,t,i),e.append(t,n)},p(a,i){i[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),i[0]&1&&e.set_custom_element_data(n,"session",a[0]),i[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),i[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),i[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="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></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 O(l){let t,n,a,i,c=!l[12]&&ae();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),a=e.element("ui-skeleton"),i=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]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,f){e.insert(m,t,f),c&&c.m(t,null),e.append(t,n),e.append(t,a),e.append(t,i)},p:e.noop,d(m){m&&e.detach(t),c&&c.d()}}}function re(l){let t;function n(c,m){return c[6]?$:Y}let a=n(l),i=a(l);return{c(){t=e.element("div"),i.c()},m(c,m){e.insert(c,t,m),i.m(t,null),l[26](t)},p(c,m){a===(a=n(c))&&i?i.p(c,m):(i.d(1),i=a(c),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(c){c&&e.detach(t),i.d(),l[26](null)}}}function ie(l,t,n){let a;e.component_subscribe(l,e.$format,r=>n(11,a=r));let{endpoint:i=""}=t,{cmsendpoint:c=""}=t,{env:m=""}=t,{session:f=""}=t,{playerid:_=""}=t,{lang:A="en"}=t,{selecteditem:y=""}=t,{userroles:h=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:s}=t,{translationurl:d=""}=t,{activemenuitem:o=""}=t,v=!1,p=!1,w=!0,g,x=[],k,I=window.navigator.userAgent,D=e.getDevice(I)!=="PC",C="",F="";window.matchMedia("(min-width: 768px)");const U=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(P=>{H(P,M[P])})}).catch(M=>{console.error(M)})};Object.keys(W).forEach(r=>{H(r,W[r])});const E=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,f=r.data.session);break}},q=()=>{let r=e.getDevice(I);if(r)return r==="PC"?"dk":"mtWeb"},R=()=>{const r=new URL(`${c}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",q()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),B()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,v=!0)})},G=()=>{let r=new URL(`${i}/v1/player/${_}/profile`);r.searchParams.append("userRoles",h);let M={method:"GET",headers:{"X-SessionID":f}};fetch(r.href,M).then(P=>P.json()).then(P=>{n(9,C=P.username),n(10,F=P.email)},P=>{console.error(P)}).finally(()=>{n(24,p=!0)})},L=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},B=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(o)))==null?void 0:r.id)},N=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},V=()=>{K(A)},X=()=>{G()};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const Z=r=>L(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return l.$$set=r=>{"endpoint"in r&&n(1,i=r.endpoint),"cmsendpoint"in r&&n(15,c=r.cmsendpoint),"env"in r&&n(16,m=r.env),"session"in r&&n(0,f=r.session),"playerid"in r&&n(17,_=r.playerid),"lang"in r&&n(18,A=r.lang),"selecteditem"in r&&n(19,y=r.selecteditem),"userroles"in r&&n(20,h=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,s=r.mbsource),"translationurl"in r&&n(21,d=r.translationurl),"activemenuitem"in r&&n(22,o=r.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,w=!v||!p),l.$$.dirty[0]&262144&&A&&V(),l.$$.dirty[0]&393219&&i&&f&&_&&A&&X(),l.$$.dirty[0]&360448&&c&&A&&m&&R(),l.$$.dirty[0]&4194304&&o&&B(),l.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),l.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),l.$$.dirty[0]&48&&s&&g&&e.setStreamStyling(g,`${s}.Style`),l.$$.dirty[0]&2097152&&d&&U()},[f,i,b,u,s,g,w,x,k,C,F,a,D,L,N,c,m,_,A,y,h,d,o,v,p,Z,J]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,selecteditem:19,userroles:20,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:21,activemenuitem:22},Q,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[15]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[16]}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[17]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[19]}set selecteditem(t){this.$$set({selecteditem: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 mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource: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()}}e.create_custom_element(j,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as me, $ as de, S as ge, i as fe, f as I, s as ye, A as pe, b as he, n as O, d as F, g as E, j as b, p as be, q as V, u as Ae, w as Me, O as z, P as ee, h as a, k, e as m, o as d, c as T, m as W, r as we, l as j, v as H, a1 as X, B as ve, x as Pe, y as _e, z as xe } from "./GeneralLogout-D_LZ6noj.js";
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
2
|
+
import "../stencil/ui-skeleton-BENu4NGl.js";
|
|
3
3
|
function Z(n, e) {
|
|
4
4
|
me(n, e);
|
|
5
5
|
}
|
package/components/{PlayerAccountNotifications-bjLmyXO3.js → PlayerAccountNotifications-B-74n2wI.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as O, i as Q, s as V, f as y, b as Y, n as C, d as b, g as x, j as g, q as S, u as G, w as J, O as M, P as I, h, o as s, k as A, a1 as B, c as K, Y as H, m as X, e as v, x as Z, y as $, z as tt, A as et } from "./GeneralLogout-D_LZ6noj.js";
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
2
|
+
import "../stencil/ui-skeleton-BENu4NGl.js";
|
|
3
3
|
function it(a) {
|
|
4
4
|
Y(a, "svelte-1yq4evv", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
5
5
|
}
|