@everymatrix/player-account-controller 1.94.3 → 1.94.5
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-MWlMEMui.cjs → GeneralLogout-CnVAejR5.cjs} +1 -1
- package/components/{GeneralLogout-C1KWLRvw.js → GeneralLogout-kTqNTgvC.js} +53 -53
- package/components/{GeneralLogout-CiQVyfJR.js → GeneralLogout-zgSN4JXC.js} +69 -69
- package/components/{PlayerAccountBettingHistory-Bzn7zhTv.cjs → PlayerAccountBettingHistory-BWmHoBAe.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-DJpEA4l1.js → PlayerAccountBettingHistory-CMXH0Rg-.js} +27 -27
- package/components/{PlayerAccountBettingHistory-D4JNMX1U.js → PlayerAccountBettingHistory-CPbEbbHQ.js} +24 -24
- package/components/{PlayerAccountBiometrics-CZxJ6eg9.js → PlayerAccountBiometrics-Btxg2ReE.js} +29 -29
- package/components/{PlayerAccountBiometrics-CZ77Ztyc.js → PlayerAccountBiometrics-C3OhQX00.js} +29 -29
- package/components/{PlayerAccountBiometrics-DipOuxL2.cjs → PlayerAccountBiometrics-NRYQDR1V.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-DkSGBqQr.cjs → PlayerAccountBiometricsAction-B94gsCP8.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-iH61eCKz.js → PlayerAccountBiometricsAction-BpWHzxpk.js} +20 -20
- package/components/{PlayerAccountBiometricsAction-BCxooM-G.js → PlayerAccountBiometricsAction-_fvfCCxj.js} +29 -29
- package/components/{PlayerAccountClosure-DFqXIXbP.js → PlayerAccountClosure-C1d0pUoW.js} +8 -8
- package/components/{PlayerAccountClosure-DYqfecjB.cjs → PlayerAccountClosure-C49V_7aD.cjs} +1 -1
- package/components/{PlayerAccountClosure-qSDghXQE.js → PlayerAccountClosure-C4jgSJYP.js} +24 -24
- package/components/{PlayerAccountController-SYnkGtb2.js → PlayerAccountController-Bd-Ammrb.js} +88 -88
- package/components/{PlayerAccountController-Dp_erLKA.js → PlayerAccountController-C6MS18Sd.js} +88 -88
- package/components/{PlayerAccountController-D-iw4Gm1.cjs → PlayerAccountController-CPE5eIap.cjs} +2 -2
- package/components/{PlayerAccountGamingLimits-COyTX71p.js → PlayerAccountGamingLimits-CCe9uOfh.js} +32 -32
- package/components/{PlayerAccountGamingLimits-B15eCgme.cjs → PlayerAccountGamingLimits-T7LipEE_.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-CQY0G_uB.js → PlayerAccountGamingLimits-chP_kSHR.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Cm-RQN5t.js → PlayerAccountGamingLimitsConfirmationModal-BfjfP8D_.js} +25 -25
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BH0OV5eK.cjs → PlayerAccountGamingLimitsConfirmationModal-CWtPbAJA.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Dc3s4o1Q.js → PlayerAccountGamingLimitsConfirmationModal-OxqOTLbT.js} +34 -34
- package/components/{PlayerAccountGamingLimitsGroupEdit-fH4M7tFv.js → PlayerAccountGamingLimitsGroupEdit-B6jYzCP7.js} +47 -47
- package/components/{PlayerAccountGamingLimitsGroupEdit-C8v4nT2e.cjs → PlayerAccountGamingLimitsGroupEdit-BJeQE4sA.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BVUUAj2h.js → PlayerAccountGamingLimitsGroupEdit-DFKPrpCJ.js} +47 -47
- package/components/{PlayerAccountGamingLimitsHistory2-CqD-ISyD.js → PlayerAccountGamingLimitsHistory2-BmfZwZgM.js} +35 -35
- package/components/{PlayerAccountGamingLimitsHistory2-Dzh-CQXK.js → PlayerAccountGamingLimitsHistory2-BqwQ-RB0.js} +45 -45
- package/components/{PlayerAccountGamingLimitsHistory2-CBlHRmrE.cjs → PlayerAccountGamingLimitsHistory2-yyHOWMEJ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DKRI7D9w.js → PlayerAccountGamingLimitsInfoCard-CRZKXfQf.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-DOkGyTOt.js → PlayerAccountGamingLimitsInfoCard-DgtRTtMC.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-Doajed3W.cjs → PlayerAccountGamingLimitsInfoCard-Tofo4vZN.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-P5RWYm8p.cjs → PlayerAccountGamingLimitsPage2Gm16-B_y_Eo11.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-PV8PjIQg.js → PlayerAccountGamingLimitsPage2Gm16-D5TyY7Fa.js} +105 -105
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BBUHxhmC.js → PlayerAccountGamingLimitsPage2Gm16-zj-tjh23.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-tZb8farN.cjs → PlayerAccountGamingLimitsPopup-CrmeCoDe.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-_7IgGj19.js → PlayerAccountGamingLimitsPopup-DeQD-dRc.js} +15 -15
- package/components/{PlayerAccountGamingLimitsPopup-CyFgSuiz.js → PlayerAccountGamingLimitsPopup-XYvk39nq.js} +19 -19
- package/components/{PlayerAccountGamingLimitsWrapper2-C44qlMd9.cjs → PlayerAccountGamingLimitsWrapper2-BIOoxplS.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-CN0ni_t1.js → PlayerAccountGamingLimitsWrapper2-DNUy1TDd.js} +58 -58
- package/components/{PlayerAccountGamingLimitsWrapper2-C3jtv8xY.js → PlayerAccountGamingLimitsWrapper2-UCXXUa_j.js} +54 -54
- package/components/{PlayerAccountGeneralConfirmationModal-DCeF6KK8.js → PlayerAccountGeneralConfirmationModal-BJ5GkodH.js} +35 -35
- package/components/{PlayerAccountGeneralConfirmationModal-Bt6qRu6u.cjs → PlayerAccountGeneralConfirmationModal-DM0WWO2-.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-BddPCP6_.js → PlayerAccountGeneralConfirmationModal-DUbqZsUq.js} +38 -38
- package/components/{PlayerAccountMenu-DusUWIlC.js → PlayerAccountMenu-C3r2hbOd.js} +23 -23
- package/components/{PlayerAccountMenu-BxliWxSX.js → PlayerAccountMenu-CjkwZGQ-.js} +23 -23
- package/components/{PlayerAccountMenu-BwFD7onO.cjs → PlayerAccountMenu-D7KXle_O.cjs} +1 -1
- package/components/{PlayerAccountModal-BsKMrXHH.js → PlayerAccountModal-CmOPmRtc.js} +51 -51
- package/components/{PlayerAccountModal-BpsSzItd.cjs → PlayerAccountModal-Dju6j_C4.cjs} +1 -1
- package/components/{PlayerAccountModal-NtKRkErX.js → PlayerAccountModal-rB45bRsX.js} +55 -55
- package/components/{PlayerAccountNotifications-Dc_zKmh_.js → PlayerAccountNotifications-BA8xOkk7.js} +29 -29
- package/components/{PlayerAccountNotifications-2m5scfUL.js → PlayerAccountNotifications-BHkmggUK.js} +88 -88
- package/components/{PlayerAccountNotifications-CHvVDz-S.cjs → PlayerAccountNotifications-BNWMouzN.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-DJV7kbl0.js → PlayerAccountProductRestriction-B9Wce-J2.js} +3 -3
- package/components/{PlayerAccountProductRestriction-_aL_JwHJ.js → PlayerAccountProductRestriction-CeJ8nyQV.js} +3 -3
- package/components/{PlayerAccountProductRestriction-B8RqVuaM.cjs → PlayerAccountProductRestriction-DfSfUmAF.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-NZLIic5S.cjs → PlayerAccountReviewFrequency-CqsHl6Q3.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-DNUAgwcU.js → PlayerAccountReviewFrequency-D14a7YnP.js} +31 -31
- package/components/{PlayerAccountReviewFrequency-BhAACqPf.js → PlayerAccountReviewFrequency-DdXg8T1C.js} +30 -30
- package/components/{PlayerAccountSelfExclusion-AyC4-RDs.js → PlayerAccountSelfExclusion-ANDK6YB8.js} +99 -99
- package/components/{PlayerAccountSelfExclusion-tGBZuvd4.cjs → PlayerAccountSelfExclusion-MJhERUGk.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-hGTAvkjG.js → PlayerAccountSelfExclusion-X4m9-Wif.js} +86 -86
- package/components/{PlayerAccountTimeout-B_8NcUA8.cjs → PlayerAccountTimeout-Ao1JVo5-.cjs} +3 -3
- package/components/{PlayerAccountTimeout--0cBq2Kg.js → PlayerAccountTimeout-DW_64okl.js} +4 -4
- package/components/{PlayerAccountTimeout-6FD2Lwiw.js → PlayerAccountTimeout-IFygbRsF.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-C5mRRE_D.js → PlayerAccountTransactionsHistory-BH_S2QvH.js} +36 -36
- package/components/{PlayerAccountTransactionsHistory-C5oNPHOx.js → PlayerAccountTransactionsHistory-DOmEjYBs.js} +35 -35
- package/components/{PlayerAccountTransactionsHistory-DE8XgXFB.cjs → PlayerAccountTransactionsHistory-cMyiqG_0.cjs} +1 -1
- package/components/{PlayerActiveBonuses-BZtVJ0tO.js → PlayerActiveBonuses-BN5q9S2-.js} +212 -212
- package/components/{PlayerActiveBonuses-DtdcEwRk.cjs → PlayerActiveBonuses-BOFs5nLV.cjs} +1 -1
- package/components/{PlayerActiveBonuses-C2htEcPk.js → PlayerActiveBonuses-DDyHb_RP.js} +208 -208
- package/components/{PlayerBonusCard-DFd45Hiy.js → PlayerBonusCard-BQAGPKpP.js} +47 -47
- package/components/{PlayerBonusCard-CCyXYxHk.js → PlayerBonusCard-Bpm8P9Sa.js} +47 -47
- package/components/{PlayerBonusCard-BDsAdzuV.cjs → PlayerBonusCard-CYIktzur.cjs} +1 -1
- package/components/{PlayerBonusHistory-DXHnya6D.cjs → PlayerBonusHistory-D1ZIKvKy.cjs} +2 -2
- package/components/{PlayerBonusHistory-DNrE8L0N.js → PlayerBonusHistory-DBtOIHzS.js} +3 -3
- package/components/{PlayerBonusHistory-Dl3OhBaM.js → PlayerBonusHistory-k7HL08qe.js} +3 -3
- package/components/{PlayerChangePassword-CfYOw08o.js → PlayerChangePassword-BJkTqzxD.js} +71 -71
- package/components/{PlayerChangePassword-KWET13cT.js → PlayerChangePassword-BUai6xC1.js} +71 -71
- package/components/{PlayerChangePassword-Cov4z9CH.cjs → PlayerChangePassword-DoWdtlBb.cjs} +1 -1
- package/components/{PlayerDeposit-VlR9R2HM.cjs → PlayerDeposit-BDODxxlC.cjs} +1 -1
- package/components/{PlayerDeposit-DnJa8Yl3.js → PlayerDeposit-C0XRt5EK.js} +24 -24
- package/components/{PlayerDeposit-B2ac6D8s.js → PlayerDeposit-CLyGovJD.js} +28 -28
- package/components/{PlayerGamingHistory-DCnHiCje.js → PlayerGamingHistory-BsHSSyhU.js} +94 -94
- package/components/{PlayerGamingHistory-CViEAUHh.cjs → PlayerGamingHistory-DdUzR5OW.cjs} +1 -1
- package/components/{PlayerGamingHistory-DEZMZgyp.js → PlayerGamingHistory-m0lb-SaP.js} +114 -114
- package/components/{PlayerPendingWithdrawals-DnIuozwG.cjs → PlayerPendingWithdrawals-3U8OWD5l.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-RKAmjSTJ.js → PlayerPendingWithdrawals-BvhroTya.js} +30 -30
- package/components/{PlayerPendingWithdrawals-ID5cnEfB.js → PlayerPendingWithdrawals-CavqhbX6.js} +34 -34
- package/components/{PlayerProfileInfo-B8b5KNTI.cjs → PlayerProfileInfo-BKKrxITi.cjs} +1 -1
- package/components/{PlayerProfileInfo-BvAv9pYw.js → PlayerProfileInfo-DejS3qt9.js} +364 -364
- package/components/{PlayerProfileInfo-D7Lgohmb.js → PlayerProfileInfo-DrBabxG-.js} +342 -342
- package/components/{PlayerRealityCheck-C-6W6BY0.cjs → PlayerRealityCheck-BP88i1lx.cjs} +1 -1
- package/components/{PlayerRealityCheck-C0Y1Zl_P.js → PlayerRealityCheck-DcTKJjjQ.js} +55 -55
- package/components/{PlayerRealityCheck-7fVeEeFe.js → PlayerRealityCheck-DefrXfkM.js} +54 -54
- package/components/{PlayerTransactionHistory-ClwBJKRp.js → PlayerTransactionHistory-4CZSZQMz.js} +31 -31
- package/components/{PlayerTransactionHistory-dWDqxRu8.cjs → PlayerTransactionHistory-B-WtWjm5.cjs} +1 -1
- package/components/{PlayerTransactionHistory-G98VK3oH.js → PlayerTransactionHistory-DTSGZtwn.js} +44 -44
- package/components/{PlayerWithdrawal-jAhz1Aeb.js → PlayerWithdrawal-C4-ZL4z5.js} +25 -25
- package/components/{PlayerWithdrawal-FJUVucSx.js → PlayerWithdrawal-DAU0uggw.js} +25 -25
- package/components/{PlayerWithdrawal-VlKyb1Pk.cjs → PlayerWithdrawal-DI7dGjmC.cjs} +1 -1
- package/components/{QrSessionGenerator-DttwdIra.js → QrSessionGenerator-BMd3QegI.js} +48 -48
- package/components/{QrSessionGenerator-CUbR8FbA.js → QrSessionGenerator-CGtWSfMU.js} +37 -37
- package/components/{QrSessionGenerator-ce2wxm3H.cjs → QrSessionGenerator-fnnwM7n6.cjs} +1 -1
- 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_16-_13Kv9Zi.js → checkbox-group-input_16-BMVEaVtV.js} +4 -4
- package/stencil/{checkbox-group-input_16-BClc1QAF.js → checkbox-group-input_16-C6fU4lxi.js} +4 -4
- package/stencil/{checkbox-group-input_16-BzGXxdU9.cjs → checkbox-group-input_16-DTlEvXD1.cjs} +2 -2
- package/stencil/{index-6e523641-CqeGydRJ.cjs → index-6e523641-CHZRFi0W.cjs} +1 -1
- package/stencil/{index-6e523641-txnZxPs0.js → index-6e523641-CzpA6fqp.js} +1 -1
- package/stencil/{index-6e523641-M8saYcGO.js → index-6e523641-n8F0I2Fs.js} +1 -1
- package/stencil/{index-7469517b-Bmgiy_n-.js → index-7469517b-BFmBiraV.js} +1 -1
- package/stencil/{index-7469517b-ulg1Qmdy.js → index-7469517b-CCwm-ipO.js} +1 -1
- package/stencil/{index-7469517b-8Vfz7n3C.cjs → index-7469517b-DxaDYmkD.cjs} +1 -1
- package/stencil/{index-9c0f6c58-DlXOBm1V.cjs → index-9c0f6c58-CLDl-isE.cjs} +1 -1
- package/stencil/{index-9c0f6c58-BLHPAiHp.js → index-9c0f6c58-CeHgKkkN.js} +1 -1
- package/stencil/{index-9c0f6c58-Dt7MQ5_j.js → index-9c0f6c58-DGo4u6sZ.js} +1 -1
- package/stencil/{pam-change-password-259289fa-CR3dv02q.cjs → pam-change-password-259289fa-B5K_myvf.cjs} +1 -1
- package/stencil/{pam-change-password-259289fa-7sJvUi0P.js → pam-change-password-259289fa-B_ApylOR.js} +3 -3
- package/stencil/{pam-change-password-259289fa-DvjX931m.js → pam-change-password-259289fa-DJ_lsyvr.js} +3 -3
- package/stencil/{pam-change-password-BiAsiO8l.js → pam-change-password-BOIp7Ttz.js} +1 -1
- package/stencil/{pam-change-password-DnCN0UHR.cjs → pam-change-password-C4n9m8Jg.cjs} +1 -1
- package/stencil/{pam-change-password-Dil_uhA4.js → pam-change-password-DH0owsL8.js} +1 -1
- package/stencil/player-kyc-verification-9Ic-jm7L.cjs +210 -0
- package/stencil/{player-kyc-verification-BhngQMYp.js → player-kyc-verification-ByWsZG6l.js} +20 -15
- package/stencil/{player-kyc-verification-BO_q93r0.js → player-kyc-verification-Cm-zE62-.js} +20 -15
- package/stencil/{user-transaction-history-CZc5JwuK.cjs → user-transaction-history-CH5LwNcg.cjs} +1 -1
- package/stencil/{user-transaction-history-CQl_PHMr.js → user-transaction-history-DF87ngqZ.js} +1 -1
- package/stencil/{user-transaction-history-DObkYfdi.js → user-transaction-history-p2F_rXVi.js} +1 -1
- package/stencil/{user-transaction-history_2-CoqbioXa.cjs → user-transaction-history_2--tfZWSJL.cjs} +2 -2
- package/stencil/{user-transaction-history_2-C2zT8Uc5.js → user-transaction-history_2-CanvRRkc.js} +2 -2
- package/stencil/{user-transaction-history_2-Bl8RpF35.js → user-transaction-history_2-ChdfveXx.js} +2 -2
- package/stencil/player-kyc-verification-ISE1zaDp.cjs +0 -210
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as V, b as Y, S as F, B as K, Q as X, t as h, f as Z, n as $, p as S, O as ee, a8 as te, a7 as ne, a9 as oe, x as ae, y as re, Y as E, D as L, e as d, I as j, q as _, a0 as z, a3 as O, g as i, k as ie, w as le, M as se, h as ce, J as me, a2 as W, U as fe, V as de, W as ue, m as be, a as ge } from "./PlayerAccountController-C6MS18Sd.js";
|
|
2
2
|
function N(n, e) {
|
|
3
|
-
|
|
3
|
+
V(n, e);
|
|
4
4
|
}
|
|
5
5
|
function he(n) {
|
|
6
|
-
|
|
6
|
+
Y.set(n);
|
|
7
7
|
}
|
|
8
8
|
const P = {
|
|
9
9
|
en: {
|
|
@@ -54,7 +54,7 @@ const P = {
|
|
|
54
54
|
function Ce(n) {
|
|
55
55
|
Z(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
|
-
const pe = (n) => ({}),
|
|
57
|
+
const pe = (n) => ({}), U = (n) => ({});
|
|
58
58
|
function xe(n) {
|
|
59
59
|
let e, t;
|
|
60
60
|
return {
|
|
@@ -62,7 +62,7 @@ function xe(n) {
|
|
|
62
62
|
e = W("svg"), t = W("path"), i(t, "stroke-linecap", "round"), i(t, "stroke-linejoin", "round"), i(t, "stroke-width", "2"), i(t, "d", "M6 18L18 6M6 6l12 12"), i(e, "class", "w-6 h-6"), i(e, "fill", "none"), i(e, "stroke", "currentColor"), i(e, "viewBox", "0 0 24 24"), i(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
63
63
|
},
|
|
64
64
|
m(r, l) {
|
|
65
|
-
|
|
65
|
+
L(r, e, l), d(e, t);
|
|
66
66
|
},
|
|
67
67
|
p: me,
|
|
68
68
|
d(r) {
|
|
@@ -70,17 +70,17 @@ function xe(n) {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function q(n) {
|
|
74
74
|
let e, t, r;
|
|
75
75
|
return {
|
|
76
76
|
c() {
|
|
77
|
-
e = _("div"), t = _("h2"), r =
|
|
77
|
+
e = _("div"), t = _("h2"), r = O(
|
|
78
78
|
/*modaltitle*/
|
|
79
79
|
n[1]
|
|
80
80
|
), i(e, "class", "GeneralConfirmationTitle");
|
|
81
81
|
},
|
|
82
82
|
m(l, u) {
|
|
83
|
-
|
|
83
|
+
L(l, e, u), d(e, t), d(t, r);
|
|
84
84
|
},
|
|
85
85
|
p(l, u) {
|
|
86
86
|
u & /*modaltitle*/
|
|
@@ -95,17 +95,17 @@ function H(n) {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function D(n) {
|
|
99
99
|
let e, t = (
|
|
100
100
|
/*$_*/
|
|
101
101
|
n[4]("cancel") + ""
|
|
102
102
|
), r, l, u;
|
|
103
103
|
return {
|
|
104
104
|
c() {
|
|
105
|
-
e = _("button"), r =
|
|
105
|
+
e = _("button"), r = O(t), i(e, "class", "GeneralCancelButton");
|
|
106
106
|
},
|
|
107
107
|
m(f, v) {
|
|
108
|
-
|
|
108
|
+
L(f, e, v), d(e, r), l || (u = j(
|
|
109
109
|
e,
|
|
110
110
|
"click",
|
|
111
111
|
/*click_handler*/
|
|
@@ -135,32 +135,32 @@ function ve(n) {
|
|
|
135
135
|
n,
|
|
136
136
|
/*$$scope*/
|
|
137
137
|
n[16],
|
|
138
|
-
|
|
138
|
+
U
|
|
139
139
|
), x = s || xe();
|
|
140
140
|
let c = (
|
|
141
141
|
/*modaltitle*/
|
|
142
|
-
n[1] &&
|
|
142
|
+
n[1] && q(n)
|
|
143
143
|
), m = (
|
|
144
144
|
/*hascancelbutton*/
|
|
145
|
-
n[2] &&
|
|
145
|
+
n[2] && D(n)
|
|
146
146
|
);
|
|
147
147
|
return {
|
|
148
148
|
c() {
|
|
149
|
-
e = _("div"), t = _("div"), r = _("span"), x && x.c(), l =
|
|
149
|
+
e = _("div"), t = _("div"), r = _("span"), x && x.c(), l = z(), c && c.c(), u = z(), f = _("div"), v = z(), C = _("div"), m && m.c(), y = z(), p = _("button"), k = O(w), i(r, "class", "ModalCloseBtn"), i(r, "role", "button"), i(f, "class", "GeneralConfirmationContent"), i(p, "class", "GeneralConfirmButton"), i(C, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
150
150
|
(n[5] ? "GeneralConfirmationControlAreaMobile" : "")), i(t, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
151
151
|
(n[5] ? "GeneralConfirmationContainerMobile" : "")), i(e, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
152
152
|
(n[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
153
153
|
},
|
|
154
154
|
m(a, g) {
|
|
155
|
-
|
|
155
|
+
L(a, e, g), d(e, t), d(t, r), x && x.m(r, null), d(t, l), c && c.m(t, null), d(t, u), d(t, f), f.innerHTML = /*modaltext*/
|
|
156
156
|
n[0], d(t, v), d(t, C), m && m.m(C, null), d(C, y), d(C, p), d(p, k), n[20](e), b = !0, G || (A = [
|
|
157
|
-
|
|
157
|
+
j(
|
|
158
158
|
r,
|
|
159
159
|
"click",
|
|
160
160
|
/*close*/
|
|
161
161
|
n[6]
|
|
162
162
|
),
|
|
163
|
-
|
|
163
|
+
j(
|
|
164
164
|
p,
|
|
165
165
|
"click",
|
|
166
166
|
/*click_handler_1*/
|
|
@@ -186,12 +186,12 @@ function ve(n) {
|
|
|
186
186
|
/*$$scope*/
|
|
187
187
|
a[16]
|
|
188
188
|
),
|
|
189
|
-
|
|
189
|
+
U
|
|
190
190
|
), /*modaltitle*/
|
|
191
|
-
a[1] ? c ? c.p(a, g) : (c =
|
|
191
|
+
a[1] ? c ? c.p(a, g) : (c = q(a), c.c(), c.m(t, u)) : c && (c.d(1), c = null), (!b || g & /*modaltext*/
|
|
192
192
|
1) && (f.innerHTML = /*modaltext*/
|
|
193
193
|
a[0]), /*hascancelbutton*/
|
|
194
|
-
a[2] ? m ? m.p(a, g) : (m =
|
|
194
|
+
a[2] ? m ? m.p(a, g) : (m = D(a), m.c(), m.m(C, y)) : m && (m.d(1), m = null), (!b || g & /*$_*/
|
|
195
195
|
16) && w !== (w = /*$_*/
|
|
196
196
|
a[4]("confirm") + "") && E(k, w);
|
|
197
197
|
},
|
|
@@ -222,25 +222,25 @@ function _e(n, e, t) {
|
|
|
222
222
|
composed: !0
|
|
223
223
|
}
|
|
224
224
|
)), o === "cancel" && p && s.dispatchEvent(new CustomEvent(p, { bubbles: !0, composed: !0 })), a();
|
|
225
|
-
},
|
|
226
|
-
fetch(A).then((
|
|
227
|
-
Object.keys(
|
|
228
|
-
N(
|
|
225
|
+
}, H = () => {
|
|
226
|
+
fetch(A).then((B) => B.json()).then((B) => {
|
|
227
|
+
Object.keys(B).forEach((T) => {
|
|
228
|
+
N(T, B[T]);
|
|
229
229
|
});
|
|
230
|
-
}).catch((
|
|
231
|
-
console.log(
|
|
230
|
+
}).catch((B) => {
|
|
231
|
+
console.log(B);
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
234
|
Object.keys(P).forEach((o) => {
|
|
235
235
|
N(o, P[o]);
|
|
236
236
|
});
|
|
237
|
-
const
|
|
237
|
+
const I = () => {
|
|
238
238
|
he(k);
|
|
239
239
|
};
|
|
240
240
|
se(() => () => {
|
|
241
241
|
});
|
|
242
|
-
const
|
|
243
|
-
function
|
|
242
|
+
const R = () => g("cancel"), J = () => g("confirm");
|
|
243
|
+
function Q(o) {
|
|
244
244
|
ce[o ? "unshift" : "push"](() => {
|
|
245
245
|
s = o, t(3, s);
|
|
246
246
|
});
|
|
@@ -249,11 +249,11 @@ function _e(n, e, t) {
|
|
|
249
249
|
"modaltext" in o && t(0, f = o.modaltext), "modaltitle" in o && t(1, v = o.modaltitle), "hascancelbutton" in o && t(2, C = o.hascancelbutton), "modalconfirmevent" in o && t(8, y = o.modalconfirmevent), "modalcancelevent" in o && t(9, p = o.modalcancelevent), "modalconfirmdata" in o && t(10, w = o.modalconfirmdata), "lang" in o && t(11, k = o.lang), "clientstyling" in o && t(12, b = o.clientstyling), "clientstylingurl" in o && t(13, G = o.clientstylingurl), "translationurl" in o && t(14, A = o.translationurl), "mbsource" in o && t(15, M = o.mbsource), "$$scope" in o && t(16, u = o.$$scope);
|
|
250
250
|
}, n.$$.update = () => {
|
|
251
251
|
n.$$.dirty & /*modaltext, lang*/
|
|
252
|
-
2049 && f && k &&
|
|
252
|
+
2049 && f && k && I(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
253
253
|
4104 && b && s && fe(s, b), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
254
254
|
8200 && G && s && de(s, G), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
255
255
|
32776 && M && s && ue(s, `${M}.Style`, x), n.$$.dirty & /*translationurl*/
|
|
256
|
-
16384 && A &&
|
|
256
|
+
16384 && A && H();
|
|
257
257
|
}, [
|
|
258
258
|
f,
|
|
259
259
|
v,
|
|
@@ -273,19 +273,19 @@ function _e(n, e, t) {
|
|
|
273
273
|
M,
|
|
274
274
|
u,
|
|
275
275
|
l,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
R,
|
|
277
|
+
J,
|
|
278
|
+
Q
|
|
279
279
|
];
|
|
280
280
|
}
|
|
281
|
-
class ye extends
|
|
281
|
+
class ye extends F {
|
|
282
282
|
constructor(e) {
|
|
283
|
-
super(),
|
|
283
|
+
super(), K(
|
|
284
284
|
this,
|
|
285
285
|
e,
|
|
286
286
|
_e,
|
|
287
287
|
ve,
|
|
288
|
-
|
|
288
|
+
X,
|
|
289
289
|
{
|
|
290
290
|
modaltext: 0,
|
|
291
291
|
modaltitle: 1,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as me, b as ge, S as de, B as fe, Q as ye, t as F, f as pe, J as U, p as C, D as L, q as b, k as he, w as V, M as be, h as Ae, s as S, o as ee, e as a, a0 as I, X as m, g, Y as T, a3 as H, O as Me, I as j, a2 as W, a1 as X, U as Pe, V as we, W as ve, m as _e, a as ke } from "./PlayerAccountController-C6MS18Sd.js";
|
|
2
2
|
import "../stencil/ui-skeleton-BKpwkQ2A.js";
|
|
3
|
-
function
|
|
3
|
+
function J(n, e) {
|
|
4
4
|
me(n, e);
|
|
5
5
|
}
|
|
6
6
|
function xe(n) {
|
|
7
7
|
ge.set(n);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const Q = {
|
|
10
10
|
en: {
|
|
11
11
|
title: "My Account"
|
|
12
12
|
},
|
|
@@ -53,18 +53,18 @@ if (typeof window != "undefined") {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
56
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-zgSN4JXC.js").then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
function Ie(n) {
|
|
61
61
|
pe(n, "svelte-5g0xrl", ".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, #22B04E));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, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Y(n, e, t) {
|
|
64
64
|
const l = n.slice();
|
|
65
65
|
return l[40] = e[t], l;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Z(n, e, t) {
|
|
68
68
|
const l = n.slice();
|
|
69
69
|
return l[37] = e[t], l;
|
|
70
70
|
}
|
|
@@ -80,7 +80,7 @@ function Fe(n) {
|
|
|
80
80
|
n[7]
|
|
81
81
|
), r = [];
|
|
82
82
|
for (let y = 0; y < f.length; y += 1)
|
|
83
|
-
r[y] = Y(
|
|
83
|
+
r[y] = K(Y(n, f, y));
|
|
84
84
|
let x = !/*isMobile*/
|
|
85
85
|
n[12] && Be(n);
|
|
86
86
|
return {
|
|
@@ -127,8 +127,8 @@ function Fe(n) {
|
|
|
127
127
|
);
|
|
128
128
|
let _;
|
|
129
129
|
for (_ = 0; _ < f.length; _ += 1) {
|
|
130
|
-
const B =
|
|
131
|
-
r[_] ? r[_].p(B, v) : (r[_] =
|
|
130
|
+
const B = Y(y, f, _);
|
|
131
|
+
r[_] ? r[_].p(B, v) : (r[_] = K(B), r[_].c(), r[_].m(h, null));
|
|
132
132
|
}
|
|
133
133
|
for (; _ < r.length; _ += 1)
|
|
134
134
|
r[_].d(1);
|
|
@@ -148,7 +148,7 @@ function Ce(n) {
|
|
|
148
148
|
n[12] && We()
|
|
149
149
|
), P = S(Array(18)), u = [];
|
|
150
150
|
for (let c = 0; c < P.length; c += 1)
|
|
151
|
-
u[c] = $(
|
|
151
|
+
u[c] = $(Z(n, P, c));
|
|
152
152
|
return {
|
|
153
153
|
c() {
|
|
154
154
|
e = b("div"), t = b("div"), h && h.c(), l = I(), i = b("ui-skeleton"), s = I(), d = b("ui-skeleton"), p = I(), A = b("div");
|
|
@@ -170,7 +170,7 @@ function Ce(n) {
|
|
|
170
170
|
P = S(Array(18));
|
|
171
171
|
let r;
|
|
172
172
|
for (r = 0; r < P.length; r += 1) {
|
|
173
|
-
const x =
|
|
173
|
+
const x = Z(c, P, r);
|
|
174
174
|
u[r] ? u[r].p(x, f) : (u[r] = $(x), u[r].c(), u[r].m(A, null));
|
|
175
175
|
}
|
|
176
176
|
for (; r < u.length; r += 1)
|
|
@@ -194,13 +194,13 @@ function Le(n) {
|
|
|
194
194
|
},
|
|
195
195
|
m(f, r) {
|
|
196
196
|
L(f, e, r), a(e, t), a(t, l), a(l, i), a(i, s), a(t, d), a(d, p), a(p, A), a(e, w), a(e, M), a(M, P), u || (c = [
|
|
197
|
-
|
|
197
|
+
j(
|
|
198
198
|
t,
|
|
199
199
|
"click",
|
|
200
200
|
/*goToHome*/
|
|
201
201
|
n[14]
|
|
202
202
|
),
|
|
203
|
-
|
|
203
|
+
j(
|
|
204
204
|
M,
|
|
205
205
|
"click",
|
|
206
206
|
/*goToHome*/
|
|
@@ -290,7 +290,7 @@ function Ee(n) {
|
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function K(n) {
|
|
294
294
|
let e, t, l, i, s, d, p = (
|
|
295
295
|
/*menuItem*/
|
|
296
296
|
n[40].label + ""
|
|
@@ -314,7 +314,7 @@ function Y(n) {
|
|
|
314
314
|
n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
315
315
|
},
|
|
316
316
|
m(c, f) {
|
|
317
|
-
L(c, e, f), a(e, t), a(t, l), a(t, s), a(t, d), a(d, A), a(e, w), h || (P =
|
|
317
|
+
L(c, e, f), a(e, t), a(t, l), a(t, s), a(t, d), a(d, A), a(e, w), h || (P = j(e, "click", u), h = !0);
|
|
318
318
|
},
|
|
319
319
|
p(c, f) {
|
|
320
320
|
n = c, f[0] & /*menuItems*/
|
|
@@ -448,7 +448,7 @@ function $(n) {
|
|
|
448
448
|
m(d, p) {
|
|
449
449
|
L(d, e, p), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
|
|
450
450
|
},
|
|
451
|
-
p:
|
|
451
|
+
p: U,
|
|
452
452
|
d(d) {
|
|
453
453
|
d && C(e), s && s.d();
|
|
454
454
|
}
|
|
@@ -473,8 +473,8 @@ function Se(n) {
|
|
|
473
473
|
p(s, d) {
|
|
474
474
|
l === (l = t(s)) && i ? i.p(s, d) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
|
|
475
475
|
},
|
|
476
|
-
i:
|
|
477
|
-
o:
|
|
476
|
+
i: U,
|
|
477
|
+
o: U,
|
|
478
478
|
d(s) {
|
|
479
479
|
s && C(e), i.d(), n[25](null);
|
|
480
480
|
}
|
|
@@ -483,19 +483,19 @@ function Se(n) {
|
|
|
483
483
|
function Te(n, e, t) {
|
|
484
484
|
let l;
|
|
485
485
|
he(n, ke, (o) => t(11, l = o));
|
|
486
|
-
let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: d = "" } = e, { session: p = "" } = e, { playerid: A = "" } = e, { lang: w = "en" } = e, { userroles: M = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: P = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: f } = e, r = !1, x = !1, y = !0, v, _, B = [], O,
|
|
486
|
+
let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: d = "" } = e, { session: p = "" } = e, { playerid: A = "" } = e, { lang: w = "en" } = e, { userroles: M = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: P = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: f } = e, r = !1, x = !1, y = !0, v, _, B = [], O, z = window.navigator.userAgent, te = V(z) !== "PC", D = "", R = "";
|
|
487
487
|
window.matchMedia("(min-width: 768px)");
|
|
488
488
|
const ne = () => {
|
|
489
489
|
fetch(u).then((k) => k.json()).then((k) => {
|
|
490
490
|
Object.keys(k).forEach((E) => {
|
|
491
|
-
|
|
491
|
+
J(E, k[E]);
|
|
492
492
|
});
|
|
493
493
|
}).catch((k) => {
|
|
494
494
|
console.error(k);
|
|
495
495
|
});
|
|
496
496
|
};
|
|
497
|
-
Object.keys(
|
|
498
|
-
|
|
497
|
+
Object.keys(Q).forEach((o) => {
|
|
498
|
+
J(o, Q[o]);
|
|
499
499
|
});
|
|
500
500
|
const q = (o) => {
|
|
501
501
|
if (o.data)
|
|
@@ -505,7 +505,7 @@ function Te(n, e, t) {
|
|
|
505
505
|
break;
|
|
506
506
|
}
|
|
507
507
|
}, le = () => {
|
|
508
|
-
let o = V(
|
|
508
|
+
let o = V(z);
|
|
509
509
|
if (o)
|
|
510
510
|
return o === "PC" ? "dk" : "mtWeb";
|
|
511
511
|
}, ie = () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as me, b as ge, S as de, B as fe, t as F, Q as ye, m as pe, f as he, J as U, p as C, D as L, q as b, k as be, w as V, M as Ae, h as Me, s as S, o as ee, e as a, a0 as I, X as m, g, Y as T, a3 as H, O as Pe, I as j, a2 as W, a1 as X, a as we, U as ve, V as _e, W as ke } from "./PlayerAccountController-Bd-Ammrb.js";
|
|
2
2
|
import "../stencil/ui-skeleton-DNuG5l9W.js";
|
|
3
|
-
function
|
|
3
|
+
function J(n, e) {
|
|
4
4
|
me(n, e);
|
|
5
5
|
}
|
|
6
6
|
function xe(n) {
|
|
7
7
|
ge.set(n);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const Q = {
|
|
10
10
|
en: {
|
|
11
11
|
title: "My Account"
|
|
12
12
|
},
|
|
@@ -53,18 +53,18 @@ if (typeof window < "u") {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
56
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-kTqNTgvC.js").then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
function Ie(n) {
|
|
61
61
|
he(n, "svelte-5g0xrl", ".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, #22B04E));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, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Y(n, e, t) {
|
|
64
64
|
const l = n.slice();
|
|
65
65
|
return l[40] = e[t], l;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Z(n, e, t) {
|
|
68
68
|
const l = n.slice();
|
|
69
69
|
return l[37] = e[t], l;
|
|
70
70
|
}
|
|
@@ -80,7 +80,7 @@ function Fe(n) {
|
|
|
80
80
|
n[7]
|
|
81
81
|
), r = [];
|
|
82
82
|
for (let y = 0; y < f.length; y += 1)
|
|
83
|
-
r[y] = Y(
|
|
83
|
+
r[y] = K(Y(n, f, y));
|
|
84
84
|
let k = !/*isMobile*/
|
|
85
85
|
n[12] && Be(n);
|
|
86
86
|
return {
|
|
@@ -127,8 +127,8 @@ function Fe(n) {
|
|
|
127
127
|
);
|
|
128
128
|
let _;
|
|
129
129
|
for (_ = 0; _ < f.length; _ += 1) {
|
|
130
|
-
const B =
|
|
131
|
-
r[_] ? r[_].p(B, v) : (r[_] =
|
|
130
|
+
const B = Y(y, f, _);
|
|
131
|
+
r[_] ? r[_].p(B, v) : (r[_] = K(B), r[_].c(), r[_].m(h, null));
|
|
132
132
|
}
|
|
133
133
|
for (; _ < r.length; _ += 1)
|
|
134
134
|
r[_].d(1);
|
|
@@ -148,7 +148,7 @@ function Ce(n) {
|
|
|
148
148
|
n[12] && We()
|
|
149
149
|
), P = S(Array(18)), u = [];
|
|
150
150
|
for (let c = 0; c < P.length; c += 1)
|
|
151
|
-
u[c] = $(
|
|
151
|
+
u[c] = $(Z(n, P, c));
|
|
152
152
|
return {
|
|
153
153
|
c() {
|
|
154
154
|
e = b("div"), t = b("div"), h && h.c(), l = I(), i = b("ui-skeleton"), s = I(), d = b("ui-skeleton"), p = I(), A = b("div");
|
|
@@ -170,7 +170,7 @@ function Ce(n) {
|
|
|
170
170
|
P = S(Array(18));
|
|
171
171
|
let r;
|
|
172
172
|
for (r = 0; r < P.length; r += 1) {
|
|
173
|
-
const k =
|
|
173
|
+
const k = Z(c, P, r);
|
|
174
174
|
u[r] ? u[r].p(k, f) : (u[r] = $(k), u[r].c(), u[r].m(A, null));
|
|
175
175
|
}
|
|
176
176
|
for (; r < u.length; r += 1)
|
|
@@ -194,13 +194,13 @@ function Le(n) {
|
|
|
194
194
|
},
|
|
195
195
|
m(f, r) {
|
|
196
196
|
L(f, e, r), a(e, t), a(t, l), a(l, i), a(i, s), a(t, d), a(d, p), a(p, A), a(e, w), a(e, M), a(M, P), u || (c = [
|
|
197
|
-
|
|
197
|
+
j(
|
|
198
198
|
t,
|
|
199
199
|
"click",
|
|
200
200
|
/*goToHome*/
|
|
201
201
|
n[14]
|
|
202
202
|
),
|
|
203
|
-
|
|
203
|
+
j(
|
|
204
204
|
M,
|
|
205
205
|
"click",
|
|
206
206
|
/*goToHome*/
|
|
@@ -290,7 +290,7 @@ function Ee(n) {
|
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function K(n) {
|
|
294
294
|
let e, t, l, i, s, d, p = (
|
|
295
295
|
/*menuItem*/
|
|
296
296
|
n[40].label + ""
|
|
@@ -314,7 +314,7 @@ function Y(n) {
|
|
|
314
314
|
n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
315
315
|
},
|
|
316
316
|
m(c, f) {
|
|
317
|
-
L(c, e, f), a(e, t), a(t, l), a(t, s), a(t, d), a(d, A), a(e, w), h || (P =
|
|
317
|
+
L(c, e, f), a(e, t), a(t, l), a(t, s), a(t, d), a(d, A), a(e, w), h || (P = j(e, "click", u), h = !0);
|
|
318
318
|
},
|
|
319
319
|
p(c, f) {
|
|
320
320
|
n = c, f[0] & /*menuItems*/
|
|
@@ -448,7 +448,7 @@ function $(n) {
|
|
|
448
448
|
m(d, p) {
|
|
449
449
|
L(d, e, p), s && s.m(e, null), a(e, t), a(e, l), a(e, i);
|
|
450
450
|
},
|
|
451
|
-
p:
|
|
451
|
+
p: U,
|
|
452
452
|
d(d) {
|
|
453
453
|
d && C(e), s && s.d();
|
|
454
454
|
}
|
|
@@ -473,8 +473,8 @@ function Se(n) {
|
|
|
473
473
|
p(s, d) {
|
|
474
474
|
l === (l = t(s)) && i ? i.p(s, d) : (i.d(1), i = l(s), i && (i.c(), i.m(e, null)));
|
|
475
475
|
},
|
|
476
|
-
i:
|
|
477
|
-
o:
|
|
476
|
+
i: U,
|
|
477
|
+
o: U,
|
|
478
478
|
d(s) {
|
|
479
479
|
s && C(e), i.d(), n[25](null);
|
|
480
480
|
}
|
|
@@ -483,19 +483,19 @@ function Se(n) {
|
|
|
483
483
|
function Te(n, e, t) {
|
|
484
484
|
let l;
|
|
485
485
|
be(n, we, (o) => t(11, l = o));
|
|
486
|
-
let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: d = "" } = e, { session: p = "" } = e, { playerid: A = "" } = e, { lang: w = "en" } = e, { userroles: M = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: P = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: f } = e, r = !1, k = !1, y = !0, v, _, B = [], O,
|
|
486
|
+
let { endpoint: i = "" } = e, { cmsendpoint: s = "" } = e, { env: d = "" } = e, { session: p = "" } = e, { playerid: A = "" } = e, { lang: w = "en" } = e, { userroles: M = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: P = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: f } = e, r = !1, k = !1, y = !0, v, _, B = [], O, z = window.navigator.userAgent, te = V(z) !== "PC", D = "", R = "";
|
|
487
487
|
window.matchMedia("(min-width: 768px)");
|
|
488
488
|
const ne = () => {
|
|
489
489
|
fetch(u).then((x) => x.json()).then((x) => {
|
|
490
490
|
Object.keys(x).forEach((E) => {
|
|
491
|
-
|
|
491
|
+
J(E, x[E]);
|
|
492
492
|
});
|
|
493
493
|
}).catch((x) => {
|
|
494
494
|
console.error(x);
|
|
495
495
|
});
|
|
496
496
|
};
|
|
497
|
-
Object.keys(
|
|
498
|
-
|
|
497
|
+
Object.keys(Q).forEach((o) => {
|
|
498
|
+
J(o, Q[o]);
|
|
499
499
|
});
|
|
500
500
|
const q = (o) => {
|
|
501
501
|
if (o.data)
|
|
@@ -505,7 +505,7 @@ function Te(n, e, t) {
|
|
|
505
505
|
break;
|
|
506
506
|
}
|
|
507
507
|
}, le = () => {
|
|
508
|
-
let o = V(
|
|
508
|
+
let o = V(z);
|
|
509
509
|
if (o)
|
|
510
510
|
return o === "PC" ? "dk" : "mtWeb";
|
|
511
511
|
}, ie = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-D-iw4Gm1.cjs");require("../stencil/ui-skeleton-CS05SPLQ.cjs");function W(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const H={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-MWlMEMui.cjs")).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-5g0xrl",".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, #22B04E));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, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function S(l,t,n){const a=l.slice();return a[40]=t[n],a}function T(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,g,y,b,_,f,h,u=l[12]&&ee(l),c=l[12]&&te(l),d=e.ensure_array_like(l[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=O(S(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(),r=e.element("p"),s=e.text(l[9]),m=e.space(),g=e.element("p"),y=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(r,"translate","no"),e.attr(g,"class","PlayerAccountMenuEmail"),e.attr(g,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,A){e.insert(p,t,A),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,g),e.append(g,y),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let M=0;M<i.length;M+=1)i[M]&&i[M].m(f,null);e.append(t,h),v&&v.m(t,null)},p(p,A){if(p[12]&&u.p(p,A),A[0]&512&&e.set_data(s,p[9]),A[0]&1024&&e.set_data(y,p[10]),p[12]&&c.p(p,A),A[0]&12672){d=e.ensure_array_like(p[7]);let M;for(M=0;M<d.length;M+=1){const k=S(p,d,M);i[M]?i[M].p(k,A):(i[M]=O(k),i[M].c(),i[M].m(f,null))}for(;M<i.length;M+=1)i[M].d(1);i.length=d.length}p[12]||v.p(p,A)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),v&&v.d()}}}function $(l){let t,n,a,r,s,m,g,y,b,_,f=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=j(T(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),g=e.space(),y=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(y,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,g),e.append(t,y);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(y,null);e.append(t,b),e.append(t,_)},p(c,d){if(d[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=T(c,h,i);u[i]?u[i].p(v,d):(u[i]=j(v),u[i].c(),u[i].m(y,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,g,y,b,_,f=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"),g=e.svg_element("g"),y=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(f),e.attr(y,"class","aaa"),e.attr(y,"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(y,"transform","translate(15 15) rotate(180)"),e.attr(g,"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(d,i){e.insert(d,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,g),e.append(g,y),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[14]),e.listen(_,"click",l[14])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(h,f)},d(d){d&&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 O(l){let t,n,a,r,s,m,g=l[40].label+"",y,b,_,f,h;function u(){return l[24](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),y=e.text(g),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,d){e.insert(c,t,d),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,y),e.append(t,b),f||(h=e.listen(t,"click",u),f=!0)},p(c,d){l=c,d[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),d[0]&128&&g!==(g=l[40].label+"")&&e.set_data(y,g),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!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 j(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,g){e.insert(m,t,g),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 re(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[25](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[25](null)}}}function oe(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:g=""}=t,{playerid:y=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:d}=t,i=!1,v=!1,p=!0,A,M,k=[],x,I=window.navigator.userAgent,U=e.getDevice(I)!=="PC",F="",C="";window.matchMedia("(min-width: 768px)");const D=()=>{fetch(u).then(P=>P.json()).then(P=>{Object.keys(P).forEach(w=>{W(w,P[w])})}).catch(P=>{console.error(P)})};Object.keys(H).forEach(o=>{W(o,H[o])});const L=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,g=o.data.session);break}},q=()=>{let o=e.getDevice(I);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(P=>P.json()).then(P=>{n(7,k=P),B()}).catch(P=>{console.error("Error getting menu items",P)}).finally(()=>{n(22,i=!0)})},N=()=>{let o=new URL(`${r}/v1/player/${y}/profile`);o.searchParams.append("userRoles",_);let P={method:"GET",headers:{"X-SessionID":g}};fetch(o.href,P).then(w=>w.json()).then(w=>{n(9,F=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(23,v=!0)})},E=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},B=()=>{var o;n(8,x=(o=k.find(P=>P.path.includes(c)))==null?void 0:o.id)},G=()=>{K(b)},V=()=>{N()},X=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Z=o=>E(o);function J(o){e.binding_callbacks[o?"unshift":"push"](()=>{A=o,n(5,A)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(15,s=o.cmsendpoint),"env"in o&&n(16,m=o.env),"session"in o&&n(0,g=o.session),"playerid"in o&&n(17,y=o.playerid),"lang"in o&&n(18,b=o.lang),"userroles"in o&&n(19,_=o.userroles),"clientstyling"in o&&n(2,f=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(20,u=o.translationurl),"activemenuitem"in o&&n(21,c=o.activemenuitem),"mbsource"in o&&n(4,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&12582912&&n(6,p=!i||!v),l.$$.dirty[0]&262144&&b&&G(),l.$$.dirty[0]&393219&&r&&g&&y&&b&&V(),l.$$.dirty[0]&360448&&s&&b&&m&&R(),l.$$.dirty[0]&2097152&&c&&B(),l.$$.dirty[0]&36&&f&&A&&e.setClientStyling(A,f),l.$$.dirty[0]&40&&h&&A&&e.setClientStylingURL(A,h),l.$$.dirty[0]&48&&d&&A&&e.setStreamStyling(A,`${d}.Style`,M),l.$$.dirty[0]&1048576&&u&&D()},[g,r,f,h,d,A,p,k,x,F,C,a,U,E,X,s,m,y,b,_,u,c,i,v,Z,J]}class z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21,mbsource:4},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 userroles(){return this.$$.ctx[19]}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[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[21]}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(z,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-CPE5eIap.cjs");require("../stencil/ui-skeleton-CS05SPLQ.cjs");function W(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const H={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-CnVAejR5.cjs")).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-5g0xrl",".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, #22B04E));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, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function S(l,t,n){const a=l.slice();return a[40]=t[n],a}function T(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,g,y,b,_,f,h,u=l[12]&&ee(l),c=l[12]&&te(l),d=e.ensure_array_like(l[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=O(S(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(),r=e.element("p"),s=e.text(l[9]),m=e.space(),g=e.element("p"),y=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(r,"translate","no"),e.attr(g,"class","PlayerAccountMenuEmail"),e.attr(g,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,A){e.insert(p,t,A),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,g),e.append(g,y),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let M=0;M<i.length;M+=1)i[M]&&i[M].m(f,null);e.append(t,h),v&&v.m(t,null)},p(p,A){if(p[12]&&u.p(p,A),A[0]&512&&e.set_data(s,p[9]),A[0]&1024&&e.set_data(y,p[10]),p[12]&&c.p(p,A),A[0]&12672){d=e.ensure_array_like(p[7]);let M;for(M=0;M<d.length;M+=1){const k=S(p,d,M);i[M]?i[M].p(k,A):(i[M]=O(k),i[M].c(),i[M].m(f,null))}for(;M<i.length;M+=1)i[M].d(1);i.length=d.length}p[12]||v.p(p,A)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),v&&v.d()}}}function $(l){let t,n,a,r,s,m,g,y,b,_,f=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=j(T(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),g=e.space(),y=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(y,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,g),e.append(t,y);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(y,null);e.append(t,b),e.append(t,_)},p(c,d){if(d[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=T(c,h,i);u[i]?u[i].p(v,d):(u[i]=j(v),u[i].c(),u[i].m(y,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,g,y,b,_,f=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"),g=e.svg_element("g"),y=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(f),e.attr(y,"class","aaa"),e.attr(y,"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(y,"transform","translate(15 15) rotate(180)"),e.attr(g,"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(d,i){e.insert(d,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,g),e.append(g,y),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[14]),e.listen(_,"click",l[14])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(h,f)},d(d){d&&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 O(l){let t,n,a,r,s,m,g=l[40].label+"",y,b,_,f,h;function u(){return l[24](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),y=e.text(g),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,d){e.insert(c,t,d),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,y),e.append(t,b),f||(h=e.listen(t,"click",u),f=!0)},p(c,d){l=c,d[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),d[0]&128&&g!==(g=l[40].label+"")&&e.set_data(y,g),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!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 j(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,g){e.insert(m,t,g),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 re(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[25](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[25](null)}}}function oe(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:g=""}=t,{playerid:y=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:d}=t,i=!1,v=!1,p=!0,A,M,k=[],x,I=window.navigator.userAgent,U=e.getDevice(I)!=="PC",F="",C="";window.matchMedia("(min-width: 768px)");const D=()=>{fetch(u).then(P=>P.json()).then(P=>{Object.keys(P).forEach(w=>{W(w,P[w])})}).catch(P=>{console.error(P)})};Object.keys(H).forEach(o=>{W(o,H[o])});const L=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,g=o.data.session);break}},q=()=>{let o=e.getDevice(I);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(P=>P.json()).then(P=>{n(7,k=P),B()}).catch(P=>{console.error("Error getting menu items",P)}).finally(()=>{n(22,i=!0)})},N=()=>{let o=new URL(`${r}/v1/player/${y}/profile`);o.searchParams.append("userRoles",_);let P={method:"GET",headers:{"X-SessionID":g}};fetch(o.href,P).then(w=>w.json()).then(w=>{n(9,F=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(23,v=!0)})},E=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},B=()=>{var o;n(8,x=(o=k.find(P=>P.path.includes(c)))==null?void 0:o.id)},G=()=>{K(b)},V=()=>{N()},X=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Z=o=>E(o);function J(o){e.binding_callbacks[o?"unshift":"push"](()=>{A=o,n(5,A)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(15,s=o.cmsendpoint),"env"in o&&n(16,m=o.env),"session"in o&&n(0,g=o.session),"playerid"in o&&n(17,y=o.playerid),"lang"in o&&n(18,b=o.lang),"userroles"in o&&n(19,_=o.userroles),"clientstyling"in o&&n(2,f=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(20,u=o.translationurl),"activemenuitem"in o&&n(21,c=o.activemenuitem),"mbsource"in o&&n(4,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&12582912&&n(6,p=!i||!v),l.$$.dirty[0]&262144&&b&&G(),l.$$.dirty[0]&393219&&r&&g&&y&&b&&V(),l.$$.dirty[0]&360448&&s&&b&&m&&R(),l.$$.dirty[0]&2097152&&c&&B(),l.$$.dirty[0]&36&&f&&A&&e.setClientStyling(A,f),l.$$.dirty[0]&40&&h&&A&&e.setClientStylingURL(A,h),l.$$.dirty[0]&48&&d&&A&&e.setStreamStyling(A,`${d}.Style`,M),l.$$.dirty[0]&1048576&&u&&D()},[g,r,f,h,d,A,p,k,x,F,C,a,U,E,X,s,m,y,b,_,u,c,i,v,Z,J]}class z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21,mbsource:4},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 userroles(){return this.$$.ctx[19]}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[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[21]}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(z,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=z;
|