@everymatrix/player-account-controller 1.67.3 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-DC1eQria.js → GeneralLogout-CYE3twI-.js} +1493 -1458
- package/components/{GeneralLogout-BvHI6IRl.js → GeneralLogout-CgxHUYZx.js} +1474 -1439
- package/components/GeneralLogout-Dzu2Sl-x.cjs +21 -0
- package/components/{PlayerAccountBettingHistory-Bo3-gODs.js → PlayerAccountBettingHistory-B0IsJ01N.js} +27 -27
- package/components/{PlayerAccountBettingHistory-BTEzWQvN.js → PlayerAccountBettingHistory-BXBMy618.js} +27 -27
- package/components/{PlayerAccountBettingHistory-DgHU9Jz9.cjs → PlayerAccountBettingHistory-BtDZukYI.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DRMe1Ngk.js → PlayerAccountBiometrics-CCk_4MyI.js} +22 -22
- package/components/{PlayerAccountBiometrics-DXk7ouzk.cjs → PlayerAccountBiometrics-CEEVheLt.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-eJ0NsGhR.js → PlayerAccountBiometrics-DrmVF6dX.js} +22 -22
- package/components/{PlayerAccountClosure-CenyN-4X.js → PlayerAccountClosure-B_xwOPds.js} +17 -17
- package/components/{PlayerAccountClosure-DMF66IyF.cjs → PlayerAccountClosure-DoZ91aH2.cjs} +1 -1
- package/components/{PlayerAccountClosure-D4FSDBR-.js → PlayerAccountClosure-UwL_V2IO.js} +17 -17
- package/components/{PlayerAccountController-D3jDQKMc.js → PlayerAccountController-Bj-XgQJE.js} +2247 -2187
- package/components/{PlayerAccountController-C88OV9t0.js → PlayerAccountController-CvlVSeuD.js} +2250 -2190
- package/components/PlayerAccountController-DOYR_ETm.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-bgH5yldD.js → PlayerAccountGamingLimits-B0QALjVi.js} +19 -19
- package/components/{PlayerAccountGamingLimits-C5-wP3x8.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-qvefhQXf.js → PlayerAccountGamingLimits-C11On8aq.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js → PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js → PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js} +53 -53
- package/components/PlayerAccountGamingLimitsGroupEdit-C40tSY9Z.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-CoayAtf0.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js → PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js} +48 -48
- package/components/{PlayerAccountGamingLimitsHistory2-CkXX1K7L.js → PlayerAccountGamingLimitsHistory2-Br4h7_eS.js} +46 -46
- package/components/{PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs → PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-ByqimrlU.js → PlayerAccountGamingLimitsInfoCard-D5Vpi7Gd.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js → PlayerAccountGamingLimitsInfoCard-blI001Nx.js} +80 -80
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Bjtas4Og.js → PlayerAccountGamingLimitsPage2Gm16-C-xpYl-9.js} +118 -118
- package/components/{PlayerAccountGamingLimitsPage2Gm16-AMitiwvP.js → PlayerAccountGamingLimitsPage2Gm16-DHrtbHzT.js} +101 -101
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DfhEHyrV.cjs → PlayerAccountGamingLimitsPage2Gm16-D_gOt2wG.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs → PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Bhe4pnzt.js → PlayerAccountGamingLimitsPopup-DTb6cpuT.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-LjmHojBJ.js → PlayerAccountGamingLimitsPopup-Dz9ROowj.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2-bXqMOFZu.js → PlayerAccountGamingLimitsWrapper2-BCk1ujGX.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-Db4M3i4n.js → PlayerAccountGamingLimitsWrapper2-CfyD6xtV.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-DUm34VGO.cjs → PlayerAccountGamingLimitsWrapper2-CwscbjX3.cjs} +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BXvbser8.js → PlayerAccountGeneralConfirmationModal-DbBEBukz.js} +100 -105
- package/components/{PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js → PlayerAccountGeneralConfirmationModal-DzZ3ym_J.js} +100 -105
- package/components/{PlayerAccountMenu-BZSV920e.cjs → PlayerAccountMenu-BZnkRiU-.cjs} +1 -1
- package/components/{PlayerAccountMenu-COhw6RUO.js → PlayerAccountMenu-D4d9TQsD.js} +29 -29
- package/components/{PlayerAccountMenu-CXkbGum8.js → PlayerAccountMenu-j3TA2Osb.js} +29 -29
- package/components/{PlayerAccountModal-BlJKMVDD.js → PlayerAccountModal-Cbpkb5P6.js} +44 -44
- package/components/{PlayerAccountModal-C2BAyjz8.js → PlayerAccountModal-Co5a_OZZ.js} +44 -44
- package/components/{PlayerAccountModal-lwDOdDa4.cjs → PlayerAccountModal-SsGlrcmj.cjs} +1 -1
- package/components/{PlayerAccountNotifications-Br27rQuw.js → PlayerAccountNotifications-CkbUxjuk.js} +35 -35
- package/components/{PlayerAccountNotifications-CzMMRPni.cjs → PlayerAccountNotifications-ejASOsrU.cjs} +1 -1
- package/components/{PlayerAccountNotifications-YIzJUJtW.js → PlayerAccountNotifications-f0A-2obd.js} +120 -120
- package/components/{PlayerAccountProductRestriction-JWXFId11.js → PlayerAccountProductRestriction-BXXflOCi.js} +2228 -2202
- package/components/{PlayerAccountProductRestriction-B77qHgnG.js → PlayerAccountProductRestriction-f6Ihr4uI.js} +2241 -2215
- package/components/{PlayerAccountProductRestriction-DWcq863g.cjs → PlayerAccountProductRestriction-uj_BwdJ0.cjs} +271 -271
- package/components/{PlayerAccountSelfExclusion-hvxg512S.js → PlayerAccountSelfExclusion-B3xDcZXs.js} +898 -900
- package/components/{PlayerAccountSelfExclusion-DgB8NI71.cjs → PlayerAccountSelfExclusion-NoFOWnwy.cjs} +155 -155
- package/components/{PlayerAccountSelfExclusion-B-7yOGf0.js → PlayerAccountSelfExclusion-tzK5a7dq.js} +1208 -1210
- package/components/{PlayerAccountTimeout-BZa0DlXA.js → PlayerAccountTimeout-DFM9IiTT.js} +103 -103
- package/components/{PlayerAccountTimeout-ouzdA1ph.cjs → PlayerAccountTimeout-HZrAxL_1.cjs} +1 -1
- package/components/{PlayerAccountTimeout-DiPXXjP_.js → PlayerAccountTimeout-b0Nl9gfs.js} +103 -103
- package/components/{PlayerAccountTransactionsHistory-tOK25Lc2.js → PlayerAccountTransactionsHistory-B_kH0Hjt.js} +56 -56
- package/components/{PlayerAccountTransactionsHistory-DApJMGFo.js → PlayerAccountTransactionsHistory-DoyCBIgA.js} +56 -56
- package/components/{PlayerAccountTransactionsHistory-DrGUOnga.cjs → PlayerAccountTransactionsHistory-PIw_RR0i.cjs} +1 -1
- package/components/{PlayerActiveBonuses-dQ_zgejC.js → PlayerActiveBonuses-CSDz-kWg.js} +490 -460
- package/components/{PlayerActiveBonuses-5Q7f3yAG.js → PlayerActiveBonuses-CrOQdlJB.js} +497 -467
- package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
- package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
- package/components/{PlayerBonusCard-uudC6LGS.js → PlayerBonusCard-Ca4GQeMu.js} +207 -191
- package/components/{PlayerBonusCard-CBO8neP8.js → PlayerBonusCard-qHJ-z21x.js} +207 -191
- package/components/PlayerBonusHistory-2blkOHr3.js +1051 -0
- package/components/PlayerBonusHistory-ChzkBbAH.js +1040 -0
- package/components/PlayerBonusHistory-D2uJLN_3.cjs +1 -0
- package/components/{PlayerChangePassword-BUbXMFnB.js → PlayerChangePassword-C2ZoKuCq.js} +66 -66
- package/components/{PlayerChangePassword-D4DzBZed.js → PlayerChangePassword-ChwKfBC6.js} +66 -66
- package/components/{PlayerChangePassword-D0aYOkoZ.cjs → PlayerChangePassword-LgjKzYU1.cjs} +1 -1
- package/components/{PlayerDeposit-lfkc7jOj.js → PlayerDeposit-BPZ5wCAZ.js} +29 -29
- package/components/{PlayerDeposit-DAFmH9HW.cjs → PlayerDeposit-Dzg8Ltb1.cjs} +1 -1
- package/components/{PlayerDeposit-BB64hmyO.js → PlayerDeposit-VLcz0tQH.js} +29 -29
- package/components/PlayerGamingHistory-8wco0drZ.js +1016 -0
- package/components/{PlayerGamingHistory-NKBfYTcF.js → PlayerGamingHistory-CRFPc2yB.js} +472 -456
- package/components/PlayerGamingHistory-D5C8zTFo.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-DbuXpIXl.cjs → PlayerPendingWithdrawals-BMwtFNQT.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-QAaJbf_-.js → PlayerPendingWithdrawals-DeNKdUgJ.js} +26 -26
- package/components/{PlayerPendingWithdrawals-B6qiUkpB.js → PlayerPendingWithdrawals-go7okUzL.js} +26 -26
- package/components/{PlayerProfileInfo-CQWJWCmN.cjs → PlayerProfileInfo-DcmY9plr.cjs} +1 -1
- package/components/{PlayerProfileInfo-Bpxnw7hG.js → PlayerProfileInfo-FeIk7zXc.js} +120 -120
- package/components/{PlayerProfileInfo-C-yTxZtj.js → PlayerProfileInfo-lfogo592.js} +116 -116
- package/components/{PlayerRealityCheck-CFJVJn17.cjs → PlayerRealityCheck-BrVF76qp.cjs} +1 -1
- package/components/{PlayerRealityCheck-DQ-_y3IT.js → PlayerRealityCheck-C2TUMl9-.js} +45 -45
- package/components/{PlayerRealityCheck-CyxiiYoi.js → PlayerRealityCheck-DMNAglZN.js} +44 -44
- package/components/{PlayerTransactionHistory-BOtRm_b6.cjs → PlayerTransactionHistory-4VtQqLAc.cjs} +1 -1
- package/components/{PlayerTransactionHistory-6G6ws2ky.js → PlayerTransactionHistory-A-aVfyoc.js} +19 -19
- package/components/{PlayerTransactionHistory-BjRhtwD4.js → PlayerTransactionHistory-BFV_XJw9.js} +19 -19
- package/components/{PlayerWithdrawal-OBRjEIH9.cjs → PlayerWithdrawal-BMLgaRLc.cjs} +1 -1
- package/components/{PlayerWithdrawal-BIBZrL0i.js → PlayerWithdrawal-B_wQZI_t.js} +19 -19
- package/components/{PlayerWithdrawal-CuR6Pb4o.js → PlayerWithdrawal-CTttZqLr.js} +19 -19
- 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_14-yDxYy7hE.js → checkbox-group-input_14-0MlabybW.js} +3270 -3262
- package/stencil/{checkbox-group-input_14-BQWBhbsW.cjs → checkbox-group-input_14-BUUOn-f1.cjs} +263 -263
- package/stencil/{checkbox-group-input_14-Rk4kY_Jo.js → checkbox-group-input_14-D0Wi9yCm.js} +3273 -3265
- package/stencil/{index-13661b98-mRWmP463.js → index-13661b98-Dd0kDfGP.js} +215 -215
- package/stencil/{index-13661b98-l0CINbAR.js → index-13661b98-Vb11Gqfi.js} +207 -207
- package/stencil/index-13661b98-wjpz7oVL.cjs +1 -0
- package/stencil/{index-1ef3a64c-Dd-0nq4l.js → index-1ef3a64c-B5I86vac.js} +192 -192
- package/stencil/{index-1ef3a64c-B1Hda3TY.js → index-1ef3a64c-DqUPq8OL.js} +185 -185
- package/stencil/index-1ef3a64c-uiTzpR-U.cjs +1 -0
- package/stencil/{index-7c5e707a-CuTkyLaW.js → index-7c5e707a-2AC9SnQ7.js} +209 -209
- package/stencil/index-7c5e707a-BM4sfR0h.js +643 -0
- package/stencil/index-7c5e707a-Cw-c3Bke.cjs +1 -0
- package/stencil/{index-9c0f6c58-RPoO1End.js → index-9c0f6c58-BB5opCt9.js} +176 -176
- package/stencil/index-9c0f6c58-DmOKHEVq.cjs +1 -0
- package/stencil/{index-9c0f6c58-NlVKpLut.js → index-9c0f6c58-bxjYqwOi.js} +180 -180
- package/stencil/index-b2193545-CnMZ4-Ff.js +519 -0
- package/stencil/index-b2193545-Ct5AhxM8.cjs +1 -0
- package/stencil/index-b2193545-DePry399.js +503 -0
- package/stencil/{pam-change-password-CCgx2ZAF.cjs → pam-change-password-1_IegfkZ.cjs} +1 -1
- package/stencil/{pam-change-password-CDNRmQRk.js → pam-change-password-BUGFXbZ2.js} +1 -1
- package/stencil/{pam-change-password-CThYR6vj.js → pam-change-password-D23ISzqi.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-B3Gc4JmD.cjs → pam-change-password-f4a1e7e7-BqEyIcXD.cjs} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-DegbNPpZ.js → pam-change-password-f4a1e7e7-Cxe8Atmr.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-B0x-tDUM.js → pam-change-password-f4a1e7e7-DzJmDiaX.js} +1 -1
- package/stencil/{player-kyc-verification-Cxnz1raa.js → player-kyc-verification-CMAkNiAB.js} +9 -9
- package/stencil/{player-kyc-verification-qKWuqiUm.cjs → player-kyc-verification-DYcPWwfi.cjs} +2 -2
- package/stencil/{player-kyc-verification-DA_O1Dqu.js → player-kyc-verification-p2WFnKBp.js} +12 -12
- package/stencil/{ui-skeleton-1cb75d00-CZJ4UoDJ.js → ui-skeleton-1cb75d00-BI5A-j0y.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-dFWe5qbW.cjs → ui-skeleton-1cb75d00-Batko5iK.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-D5Bub0nv.js → ui-skeleton-1cb75d00-CwDKR1VD.js} +1 -1
- package/stencil/{ui-skeleton-CZ5yC1WO.js → ui-skeleton-C974aG7g.js} +2 -2
- package/stencil/{ui-skeleton-vLKdvRqw.js → ui-skeleton-DoX-UmRU.js} +2 -2
- package/stencil/{ui-skeleton-BH5oLkn9.cjs → ui-skeleton-t0bb1jH7.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-BMWb-WJE.js → user-deposit-withdrawal-BjmaGgRK.js} +46 -46
- package/stencil/{user-deposit-withdrawal-ByE9O4TW.js → user-deposit-withdrawal-D6SDVw3h.js} +46 -46
- package/stencil/{user-deposit-withdrawal-DGTrOlxS.cjs → user-deposit-withdrawal-Du59X_-y.cjs} +2 -2
- 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/GeneralLogout-DweBl3EQ.cjs +0 -21
- package/components/PlayerAccountController-BrHDusjh.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js +0 -2893
- package/components/PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js +0 -2893
- package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +0 -1
- package/components/PlayerActiveBonuses-C7-7ACSS.cjs +0 -1
- package/components/PlayerBonusCard-nwlvuWsq.cjs +0 -1
- package/components/PlayerBonusHistory-CG01zuOG.js +0 -985
- package/components/PlayerBonusHistory-D1AxPL0k.js +0 -986
- package/components/PlayerBonusHistory-DI5gRSGg.cjs +0 -1
- package/components/PlayerGamingHistory-C7HQc8KL.cjs +0 -1
- package/components/PlayerGamingHistory-DxA-MkBo.js +0 -975
- package/stencil/index-13661b98-Pl0EtfMi.cjs +0 -1
- package/stencil/index-1ef3a64c-CCWt3IAA.cjs +0 -1
- package/stencil/index-7c5e707a-8-4_dLFT.js +0 -643
- package/stencil/index-7c5e707a-nBsW029h.cjs +0 -1
- package/stencil/index-9c0f6c58-DbSOntvG.cjs +0 -1
- package/stencil/index-b2193545-BXNomIzV.js +0 -519
- package/stencil/index-b2193545-CYe2oVMy.js +0 -503
- package/stencil/index-b2193545-DxRobzZI.cjs +0 -1
- package/stencil/user-transaction-history-BU4-cXt6.js +0 -350
- package/stencil/user-transaction-history-CXBKXul8.js +0 -374
- package/stencil/user-transaction-history-DLLIZ5Ck.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-CYE3twI-.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,236 +52,231 @@ const P = {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
function be(n) {
|
|
55
|
-
|
|
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(i,
|
|
65
|
-
|
|
64
|
+
m(i, c) {
|
|
65
|
+
L(i, e, c), m(e, t);
|
|
66
66
|
},
|
|
67
|
-
p:
|
|
67
|
+
p: le,
|
|
68
68
|
d(i) {
|
|
69
|
-
i &&
|
|
69
|
+
i && S(e);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function E(n) {
|
|
74
74
|
let e, t, i;
|
|
75
75
|
return {
|
|
76
76
|
c() {
|
|
77
|
-
e =
|
|
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
|
-
|
|
82
|
+
m(c, d) {
|
|
83
|
+
L(c, e, d), m(e, t), m(t, i);
|
|
84
84
|
},
|
|
85
|
-
p(
|
|
86
|
-
|
|
87
|
-
2 &&
|
|
85
|
+
p(c, d) {
|
|
86
|
+
d & /*modaltitle*/
|
|
87
|
+
2 && T(
|
|
88
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
|
-
), i,
|
|
102
|
+
), i, c, d;
|
|
103
103
|
return {
|
|
104
104
|
c() {
|
|
105
|
-
e =
|
|
105
|
+
e = _("button"), i = O(t), l(e, "class", "GeneralCancelButton");
|
|
106
106
|
},
|
|
107
|
-
m(
|
|
108
|
-
|
|
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(
|
|
116
|
-
|
|
115
|
+
p(f, w) {
|
|
116
|
+
w & /*$_*/
|
|
117
117
|
16 && t !== (t = /*$_*/
|
|
118
|
-
|
|
118
|
+
f[4]("cancel") + "") && T(i, t);
|
|
119
119
|
},
|
|
120
|
-
d(
|
|
121
|
-
|
|
120
|
+
d(f) {
|
|
121
|
+
f && S(e), c = !1, d();
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
function pe(n) {
|
|
126
|
-
let e, t, i,
|
|
126
|
+
let e, t, i, c, d, f, w, b, y, h, v = (
|
|
127
127
|
/*$_*/
|
|
128
128
|
n[4]("confirm") + ""
|
|
129
|
-
),
|
|
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 =
|
|
150
|
-
/*modaltext*/
|
|
151
|
-
n[0]
|
|
152
|
-
), A = z(), g = w("div"), c && c.c(), _ = z(), C = w("button"), y = S(v), l(i, "class", "ModalCloseBtn"), l(i, "role", "button"), l(d, "class", "GeneralConfirmationContent"), l(C, "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
154
|
m(r, p) {
|
|
158
|
-
|
|
159
|
-
|
|
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(
|
|
160
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
171
|
p(r, [p]) {
|
|
174
|
-
|
|
175
|
-
32768) &&
|
|
176
|
-
|
|
177
|
-
|
|
172
|
+
A && A.p && (!u || p & /*$$scope*/
|
|
173
|
+
32768) && te(
|
|
174
|
+
A,
|
|
175
|
+
g,
|
|
178
176
|
r,
|
|
179
177
|
/*$$scope*/
|
|
180
178
|
r[15],
|
|
181
|
-
u ?
|
|
182
|
-
|
|
179
|
+
u ? oe(
|
|
180
|
+
g,
|
|
183
181
|
/*$$scope*/
|
|
184
182
|
r[15],
|
|
185
183
|
p,
|
|
186
184
|
he
|
|
187
|
-
) :
|
|
185
|
+
) : ne(
|
|
188
186
|
/*$$scope*/
|
|
189
187
|
r[15]
|
|
190
188
|
),
|
|
191
189
|
q
|
|
192
190
|
), /*modaltitle*/
|
|
193
|
-
r[1] ?
|
|
194
|
-
1) &&
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
r[0]
|
|
198
|
-
), /*hascancelbutton*/
|
|
199
|
-
r[2] ? c ? c.p(r, p) : (c = R(r), c.c(), c.m(g, _)) : c && (c.d(1), c = null), (!u || p & /*$_*/
|
|
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 & /*$_*/
|
|
200
195
|
16) && v !== (v = /*$_*/
|
|
201
|
-
r[4]("confirm") + "") &&
|
|
196
|
+
r[4]("confirm") + "") && T(k, v);
|
|
202
197
|
},
|
|
203
198
|
i(r) {
|
|
204
|
-
u || (
|
|
199
|
+
u || (ee(C, r), u = !0);
|
|
205
200
|
},
|
|
206
201
|
o(r) {
|
|
207
|
-
|
|
202
|
+
$(C, r), u = !1;
|
|
208
203
|
},
|
|
209
204
|
d(r) {
|
|
210
|
-
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
210
|
let i;
|
|
216
|
-
|
|
217
|
-
let { $$slots:
|
|
218
|
-
const
|
|
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,
|
|
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 &&
|
|
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
|
-
|
|
256
|
-
|
|
257
|
-
A,
|
|
250
|
+
f,
|
|
251
|
+
w,
|
|
258
252
|
b,
|
|
259
|
-
i,
|
|
260
|
-
M,
|
|
261
|
-
G,
|
|
262
|
-
a,
|
|
263
253
|
g,
|
|
264
|
-
|
|
254
|
+
i,
|
|
265
255
|
C,
|
|
266
|
-
|
|
256
|
+
s,
|
|
257
|
+
a,
|
|
267
258
|
y,
|
|
268
|
-
|
|
259
|
+
h,
|
|
260
|
+
v,
|
|
269
261
|
k,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
262
|
+
u,
|
|
263
|
+
G,
|
|
264
|
+
M,
|
|
265
|
+
d,
|
|
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,
|
|
281
276
|
e,
|
|
282
277
|
xe,
|
|
283
278
|
pe,
|
|
284
|
-
|
|
279
|
+
V,
|
|
285
280
|
{
|
|
286
281
|
modaltext: 0,
|
|
287
282
|
modaltitle: 1,
|
|
@@ -358,7 +353,7 @@ class ve extends K {
|
|
|
358
353
|
this.$$set({ mbsource: e }), x();
|
|
359
354
|
}
|
|
360
355
|
}
|
|
361
|
-
|
|
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
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DweBl3EQ.cjs");require("../stencil/ui-skeleton-BH5oLkn9.cjs");function B(l,t){e.addMessages(l,t)}function J(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-DweBl3EQ.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function K(l){e.append_styles(l,"svelte-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 H(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 Q(l){let t,n,a,r,s,m,g,_,A,y,f,h,u=l[12]&&$(l),c=l[12]&&ee(l),d=e.ensure_array_like(l[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(H(l,d,p));let v=!l[12]&&te(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"),_=e.text(l[10]),A=e.space(),c&&c.c(),y=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,M){e.insert(p,t,M),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,_),e.append(n,A),c&&c.m(n,null),e.append(t,y),e.append(t,f);for(let b=0;b<i.length;b+=1)i[b]&&i[b].m(f,null);e.append(t,h),v&&v.m(t,null)},p(p,M){if(p[12]&&u.p(p,M),M[0]&512&&e.set_data(s,p[9]),M[0]&1024&&e.set_data(_,p[10]),p[12]&&c.p(p,M),M[0]&12672){d=e.ensure_array_like(p[7]);let b;for(b=0;b<d.length;b+=1){const k=H(p,d,b);i[b]?i[b].p(k,M):(i[b]=S(k),i[b].c(),i[b].m(f,null))}for(;b<i.length;b+=1)i[b].d(1);i.length=d.length}p[12]||v.p(p,M)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),v&&v.d()}}}function Y(l){let t,n,a,r,s,m,g,_,A,y,f=l[12]&&ne(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=O(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(),_=e.element("div");for(let c=0;c<u.length;c+=1)u[c].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(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(_,"class","PlayerAccountMenuList"),e.attr(y,"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,_);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(_,null);e.append(t,A),e.append(t,y)},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]=O(v),u[i].c(),u[i].m(_,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 $(l){let t,n,a,r,s,m,g,_,A,y,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"),_=e.svg_element("path"),A=e.space(),y=e.element("h3"),h=e.text(f),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(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(y,"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,_),e.append(t,A),e.append(t,y),e.append(y,h),u||(c=[e.listen(n,"click",l[14]),e.listen(y,"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 ee(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,r,s,m,g=l[40].label+"",_,A,y,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"),_=e.text(g),A=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",y="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,_),e.append(t,A),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(_,g),d[0]&384&&y!==(y="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",y)},d(c){c&&e.detach(t),f=!1,h()}}}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 ne(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 le(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,r,s=!l[12]&&le();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 ae(l){let t;function n(s,m){return s[6]?Y:Q}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 re(l,t,n){let a;e.component_subscribe(l,e.$format,o=>n(11,a=o));let{endpoint:r=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:g=""}=t,{playerid:_=""}=t,{lang:A="en"}=t,{userroles:y=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:d}=t,i=!1,v=!1,p=!0,M,b=[],k,x=window.navigator.userAgent,z=e.getDevice(x)!=="PC",I="",F="";window.matchMedia("(min-width: 768px)");const U=()=>{fetch(u).then(P=>P.json()).then(P=>{Object.keys(P).forEach(w=>{B(w,P[w])})}).catch(P=>{console.error(P)})};Object.keys(W).forEach(o=>{B(o,W[o])});const C=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,g=o.data.session);break}},D=()=>{let o=e.getDevice(x);if(o)return o==="PC"?"dk":"mtWeb"},q=()=>{const o=new URL(`${s}/${A}/profile-menu?env=${m}`);o.searchParams.append("device",D()),fetch(o.href).then(P=>P.json()).then(P=>{n(7,b=P),E()}).catch(P=>{console.error("Error getting menu items",P)}).finally(()=>{n(22,i=!0)})},R=()=>{let o=new URL(`${r}/v1/player/${_}/profile`);o.searchParams.append("userRoles",y);let P={method:"GET",headers:{"X-SessionID":g}};fetch(o.href,P).then(w=>w.json()).then(w=>{n(9,I=w.username),n(10,F=w.email)},w=>{console.error(w)}).finally(()=>{n(23,v=!0)})},L=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,k=o.id)},E=()=>{var o;n(8,k=(o=b.find(P=>P.path.includes(c)))==null?void 0:o.id)},G=()=>{J(A)},N=()=>{R()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const X=o=>L(o);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{M=o,n(5,M)})}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,_=o.playerid),"lang"in o&&n(18,A=o.lang),"userroles"in o&&n(19,y=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&&A&&G(),l.$$.dirty[0]&393219&&r&&g&&_&&A&&N(),l.$$.dirty[0]&360448&&s&&A&&m&&q(),l.$$.dirty[0]&2097152&&c&&E(),l.$$.dirty[0]&36&&f&&M&&e.setClientStyling(M,f),l.$$.dirty[0]&40&&h&&M&&e.setClientStylingURL(M,h),l.$$.dirty[0]&48&&d&&M&&e.setStreamStyling(M,`${d}.Style`),l.$$.dirty[0]&1048576&&u&&U()},[g,r,f,h,d,M,p,b,k,I,F,a,z,L,V,s,m,_,A,y,u,c,i,v,X,Z]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,ae,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},K,[-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(j,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!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-t0bb1jH7.cjs");function B(l,t){e.addMessages(l,t)}function J(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 K(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 H(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 Q(l){let t,n,a,r,s,m,g,_,A,y,f,h,u=l[12]&&$(l),c=l[12]&&ee(l),d=e.ensure_array_like(l[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(H(l,d,p));let v=!l[12]&&te(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"),_=e.text(l[10]),A=e.space(),c&&c.c(),y=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,M){e.insert(p,t,M),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,_),e.append(n,A),c&&c.m(n,null),e.append(t,y),e.append(t,f);for(let b=0;b<i.length;b+=1)i[b]&&i[b].m(f,null);e.append(t,h),v&&v.m(t,null)},p(p,M){if(p[12]&&u.p(p,M),M[0]&512&&e.set_data(s,p[9]),M[0]&1024&&e.set_data(_,p[10]),p[12]&&c.p(p,M),M[0]&12672){d=e.ensure_array_like(p[7]);let b;for(b=0;b<d.length;b+=1){const k=H(p,d,b);i[b]?i[b].p(k,M):(i[b]=S(k),i[b].c(),i[b].m(f,null))}for(;b<i.length;b+=1)i[b].d(1);i.length=d.length}p[12]||v.p(p,M)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),v&&v.d()}}}function Y(l){let t,n,a,r,s,m,g,_,A,y,f=l[12]&&ne(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=O(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(),_=e.element("div");for(let c=0;c<u.length;c+=1)u[c].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(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(_,"class","PlayerAccountMenuList"),e.attr(y,"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,_);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(_,null);e.append(t,A),e.append(t,y)},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]=O(v),u[i].c(),u[i].m(_,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 $(l){let t,n,a,r,s,m,g,_,A,y,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"),_=e.svg_element("path"),A=e.space(),y=e.element("h3"),h=e.text(f),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(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(y,"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,_),e.append(t,A),e.append(t,y),e.append(y,h),u||(c=[e.listen(n,"click",l[14]),e.listen(y,"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 ee(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,r,s,m,g=l[40].label+"",_,A,y,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"),_=e.text(g),A=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",y="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,_),e.append(t,A),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(_,g),d[0]&384&&y!==(y="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",y)},d(c){c&&e.detach(t),f=!1,h()}}}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 ne(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 le(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,r,s=!l[12]&&le();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 ae(l){let t;function n(s,m){return s[6]?Y:Q}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 re(l,t,n){let a;e.component_subscribe(l,e.$format,o=>n(11,a=o));let{endpoint:r=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:g=""}=t,{playerid:_=""}=t,{lang:A="en"}=t,{userroles:y=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:d}=t,i=!1,v=!1,p=!0,M,b=[],k,x=window.navigator.userAgent,z=e.getDevice(x)!=="PC",I="",F="";window.matchMedia("(min-width: 768px)");const U=()=>{fetch(u).then(P=>P.json()).then(P=>{Object.keys(P).forEach(w=>{B(w,P[w])})}).catch(P=>{console.error(P)})};Object.keys(W).forEach(o=>{B(o,W[o])});const C=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,g=o.data.session);break}},D=()=>{let o=e.getDevice(x);if(o)return o==="PC"?"dk":"mtWeb"},q=()=>{const o=new URL(`${s}/${A}/profile-menu?env=${m}`);o.searchParams.append("device",D()),fetch(o.href).then(P=>P.json()).then(P=>{n(7,b=P),E()}).catch(P=>{console.error("Error getting menu items",P)}).finally(()=>{n(22,i=!0)})},R=()=>{let o=new URL(`${r}/v1/player/${_}/profile`);o.searchParams.append("userRoles",y);let P={method:"GET",headers:{"X-SessionID":g}};fetch(o.href,P).then(w=>w.json()).then(w=>{n(9,I=w.username),n(10,F=w.email)},w=>{console.error(w)}).finally(()=>{n(23,v=!0)})},L=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,k=o.id)},E=()=>{var o;n(8,k=(o=b.find(P=>P.path.includes(c)))==null?void 0:o.id)},G=()=>{J(A)},N=()=>{R()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const X=o=>L(o);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{M=o,n(5,M)})}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,_=o.playerid),"lang"in o&&n(18,A=o.lang),"userroles"in o&&n(19,y=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&&A&&G(),l.$$.dirty[0]&393219&&r&&g&&_&&A&&N(),l.$$.dirty[0]&360448&&s&&A&&m&&q(),l.$$.dirty[0]&2097152&&c&&E(),l.$$.dirty[0]&36&&f&&M&&e.setClientStyling(M,f),l.$$.dirty[0]&40&&h&&M&&e.setClientStylingURL(M,h),l.$$.dirty[0]&48&&d&&M&&e.setStreamStyling(M,`${d}.Style`),l.$$.dirty[0]&1048576&&u&&U()},[g,r,f,h,d,M,p,b,k,I,F,a,z,L,V,s,m,_,A,y,u,c,i,v,X,Z]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,ae,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},K,[-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(j,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=j;
|