@everymatrix/player-account-controller 1.54.12 → 1.56.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-CMYMtWfC.cjs → GeneralLogout-9pZTJKCj.cjs} +4 -4
- package/components/{GeneralLogout-CwSCMNgW.js → GeneralLogout-DH2dZPHM.js} +744 -729
- package/components/{GeneralLogout-BO_iHKNr.js → GeneralLogout-DKa2JUny.js} +617 -602
- package/components/PlayerAccountBettingHistory-BgdXC00n.cjs +1 -0
- package/components/{PlayerAccountBettingHistory-BoeZFFFu.js → PlayerAccountBettingHistory-CxIU3NjD.js} +127 -131
- package/components/PlayerAccountBettingHistory-DcspNMNL.js +329 -0
- package/components/{PlayerAccountBiometrics-DbzqR4YB.cjs → PlayerAccountBiometrics-8CaZALdD.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-TQaVyCUp.js → PlayerAccountBiometrics-BBYUw87N.js} +126 -127
- package/components/{PlayerAccountBiometrics-C6n6AU67.js → PlayerAccountBiometrics-D3fKLHtV.js} +126 -127
- package/components/{PlayerAccountClosure-mb6TcNFj.js → PlayerAccountClosure-CtTfS7wl.js} +121 -122
- package/components/{PlayerAccountClosure-RO3lnj8F.js → PlayerAccountClosure-DJv7cY7T.js} +121 -122
- package/components/{PlayerAccountClosure-CoKkAlIq.cjs → PlayerAccountClosure-Z7IuAXPP.cjs} +1 -1
- package/components/PlayerAccountController-BfaTH0AY.cjs +1 -0
- package/components/{PlayerAccountController-Nco62fa4.js → PlayerAccountController-BqEnzpc6.js} +2707 -2169
- package/components/{PlayerAccountController-B99YscRG.js → PlayerAccountController-Djsrrn-h.js} +2713 -2175
- package/components/{PlayerAccountGamingLimits-DiyC185P.js → PlayerAccountGamingLimits-Bd5ti2Yy.js} +296 -245
- package/components/PlayerAccountGamingLimits-DoYSa5g4.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-Bc6vqzq1.js → PlayerAccountGamingLimits-cnXxBvfZ.js} +296 -245
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BnOXTUlS.js → PlayerAccountGamingLimitsConfirmationModal-CS4mjsLb.js} +123 -127
- package/components/PlayerAccountGamingLimitsConfirmationModal-CUg2My3V.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-x0MkZXMQ.js → PlayerAccountGamingLimitsConfirmationModal-_MNPhSXy.js} +123 -127
- package/components/{PlayerAccountGamingLimitsGroupEdit-dprcKEZC.js → PlayerAccountGamingLimitsGroupEdit-45Rp4DP_.js} +1086 -1090
- package/components/{PlayerAccountGamingLimitsGroupEdit-DYe0OoaG.cjs → PlayerAccountGamingLimitsGroupEdit-ByRLb87-.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-Crmi-e6x.js → PlayerAccountGamingLimitsGroupEdit-C7OBS8be.js} +1086 -1090
- package/components/{PlayerAccountGamingLimitsHistory2-DiAUM6kQ.js → PlayerAccountGamingLimitsHistory2-VyLPwXZu.js} +219 -227
- package/components/{PlayerAccountGamingLimitsHistory2-CS4fpWhH.cjs → PlayerAccountGamingLimitsHistory2-XZt8OllP.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-Dt9CSOvf.js → PlayerAccountGamingLimitsHistory2-mJtlR6Ge.js} +212 -220
- package/components/{PlayerAccountGamingLimitsInfoCard-Bd4vV7fT.js → PlayerAccountGamingLimitsInfoCard-BxU5hBOF.js} +644 -593
- package/components/{PlayerAccountGamingLimitsInfoCard-D9MKGXei.js → PlayerAccountGamingLimitsInfoCard-C7pCh3__.js} +644 -593
- package/components/PlayerAccountGamingLimitsInfoCard-c0kYK6Z1.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16-C9VhT1ek.js → PlayerAccountGamingLimitsPage2Gm16-CNiOjWfB.js} +1058 -1034
- package/components/PlayerAccountGamingLimitsPage2Gm16-Cha-RkAd.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16-WSk66pxJ.js → PlayerAccountGamingLimitsPage2Gm16-D66arvZd.js} +1157 -1133
- package/components/{PlayerAccountGamingLimitsPopup-C2R4OzUK.js → PlayerAccountGamingLimitsPopup-BzEwvjUN.js} +113 -117
- package/components/{PlayerAccountGamingLimitsPopup-zTXU7ohP.cjs → PlayerAccountGamingLimitsPopup-CfBYEYKc.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-DLqNpo7V.js → PlayerAccountGamingLimitsPopup-D3UUO_Eq.js} +113 -117
- package/components/PlayerAccountGamingLimitsWrapper2-5LQf2KmJ.js +1017 -0
- package/components/PlayerAccountGamingLimitsWrapper2-Bodw0FD-.js +1011 -0
- package/components/PlayerAccountGamingLimitsWrapper2-CFxTXIfS.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BrcO0n_o.js → PlayerAccountGeneralConfirmationModal-CXql07aQ.js} +145 -146
- package/components/{PlayerAccountGeneralConfirmationModal-DHuSzGQn.js → PlayerAccountGeneralConfirmationModal-D8JPZNbs.js} +145 -146
- package/components/PlayerAccountGeneralConfirmationModal-Dr-ZkTHH.cjs +1 -0
- package/components/PlayerAccountMenu-5EvNrc-W.cjs +1 -0
- package/components/PlayerAccountMenu-BHWtSf34.js +684 -0
- package/components/PlayerAccountMenu-CKSsdVD4.js +683 -0
- package/components/PlayerAccountModal-CAL-lChv.js +209 -0
- package/components/PlayerAccountModal-CLW-XTid.cjs +1 -0
- package/components/PlayerAccountModal-c01xdqmW.js +209 -0
- package/components/PlayerAccountNotifications-B-haSjPr.cjs +1 -0
- package/components/PlayerAccountNotifications-Bvoot0Jw.js +368 -0
- package/components/PlayerAccountNotifications-CitVsKYm.js +369 -0
- package/components/{PlayerAccountSelfExclusion-Dlkeebgy.cjs → PlayerAccountSelfExclusion-CW1t2BNm.cjs} +92 -92
- package/components/{PlayerAccountSelfExclusion-C-Gq5xhb.js → PlayerAccountSelfExclusion-Cz0rML3Z.js} +1756 -1618
- package/components/{PlayerAccountSelfExclusion-Dsc1c5ET.js → PlayerAccountSelfExclusion-DzxXZ0NG.js} +1743 -1605
- package/components/{PlayerAccountTimeout-BrX6tkl3.js → PlayerAccountTimeout-9wxsYv0_.js} +496 -365
- package/components/PlayerAccountTimeout-CAWJeQ3d.cjs +1 -0
- package/components/{PlayerAccountTimeout-DPGSPm6O.js → PlayerAccountTimeout-gWHY_22Q.js} +496 -365
- package/components/PlayerActiveBonuses-D0jBzeb4.js +1055 -0
- package/components/PlayerActiveBonuses-DTgD47j8.cjs +1 -0
- package/components/PlayerActiveBonuses-qHNn2eq8.js +1056 -0
- package/components/{PlayerBonusCard-DqHyFS9o.cjs → PlayerBonusCard-5gtng8cd.cjs} +1 -1
- package/components/{PlayerBonusCard-Ci1k7NFv.js → PlayerBonusCard-CGoRkCFh.js} +149 -151
- package/components/{PlayerBonusCard-BtSC36hN.js → PlayerBonusCard-CaQEQ2Fx.js} +149 -151
- package/components/PlayerBonusHistory-C6p_5FRc.cjs +1 -0
- package/components/PlayerBonusHistory-DBCc2ItI.js +937 -0
- package/components/PlayerBonusHistory-DfQd--j_.js +938 -0
- package/components/{PlayerChangePassword-Bhfh3D2M.js → PlayerChangePassword-6dHXMBQg.js} +388 -392
- package/components/{PlayerChangePassword-B4VW3taV.cjs → PlayerChangePassword-BsM1lBfW.cjs} +2 -2
- package/components/{PlayerChangePassword-Dk7vlEEM.js → PlayerChangePassword-COdBpupf.js} +388 -392
- package/components/PlayerDeposit-0eaqfWH1.cjs +1 -0
- package/components/PlayerDeposit-CTXnx-k2.js +391 -0
- package/components/PlayerDeposit-DwxXelMX.js +391 -0
- package/components/{PlayerGamingHistory-CaYFZtwD.js → PlayerGamingHistory-4f_MiXvH.js} +337 -341
- package/components/PlayerGamingHistory-DAfDiFej.cjs +1 -0
- package/components/{PlayerGamingHistory-BPF2pyCO.js → PlayerGamingHistory-dDHtahYn.js} +363 -367
- package/components/{PlayerPendingWithdrawals-DQ_Nh38H.js → PlayerPendingWithdrawals-BFrv_-ow.js} +113 -114
- package/components/{PlayerPendingWithdrawals-DabTg_Hg.js → PlayerPendingWithdrawals-CHHH7JPW.js} +113 -114
- package/components/PlayerPendingWithdrawals-qMs8We3P.cjs +1 -0
- package/components/PlayerProfileInfo-DDHAv267.cjs +1 -0
- package/components/PlayerProfileInfo-DlA-e6OI.js +1821 -0
- package/components/PlayerProfileInfo-Yky_xo7E.js +1804 -0
- package/components/PlayerRealityCheck-BLlc8RGo.cjs +1 -0
- package/components/PlayerRealityCheck-Bn_ov_Ie.js +652 -0
- package/components/PlayerRealityCheck-JOxPFKqm.js +668 -0
- package/components/PlayerTransactionHistory-BqEXyDt-.cjs +1 -0
- package/components/PlayerTransactionHistory-CxRrWzgQ.js +314 -0
- package/components/PlayerTransactionHistory-CzOvo_E3.js +314 -0
- package/components/PlayerWithdrawal-1i-tYxaO.cjs +1 -0
- package/components/{PlayerWithdrawal-BrqShTsy.js → PlayerWithdrawal-BlhHRFmC.js} +136 -140
- package/components/{PlayerWithdrawal-ct79yXDc.js → PlayerWithdrawal-CnoGAUmo.js} +136 -140
- 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/app-globals-0f993ce5-DgYhdguE.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-C0vi_PY4.js → app-globals-0f993ce5-DzSE6TtH.js} +4 -2
- package/stencil/{checkbox-group-input_9-BDryW6Wx.js → checkbox-group-input_9-B_RfUM6E.js} +86 -83
- package/stencil/{checkbox-group-input_9-B0JD93gn.cjs → checkbox-group-input_9-C2IUNSpC.cjs} +26 -26
- package/stencil/{checkbox-group-input_9-9b62GyCW.js → checkbox-group-input_9-C98yT4vw.js} +90 -87
- package/stencil/{general-input-BXIgsD0E.js → general-input-CqTf7ErJ.js} +1 -1
- package/stencil/{general-input-CwyM4h8z.js → general-input-DTHw5Z1Q.js} +1 -1
- package/stencil/{general-input-BL1L8PI-.cjs → general-input-wM2i7b57.cjs} +1 -1
- package/stencil/{index-0a27499c-BaAMIKJI.js → index-12dd2b03-B2coll71.js} +143 -142
- package/stencil/index-12dd2b03-Dd1hsUZX.cjs +1 -0
- package/stencil/{index-0a27499c-DaAhyku1.js → index-12dd2b03-YP3skHrn.js} +133 -132
- package/stencil/{index-92b64862-CK1ANWGa.cjs → index-92b64862-BRYoLHww.cjs} +1 -1
- package/stencil/{index-92b64862-Bnmv00O2.js → index-92b64862-C_69cKxK.js} +4 -4
- package/stencil/{index-92b64862-CO3_TP5h.js → index-92b64862-w9a1l35N.js} +4 -4
- package/stencil/{index-1d58b17d-CY3tvLdR.js → index-b1bdf3f6-0mlbFiN3.js} +121 -120
- package/stencil/{index-1d58b17d-BREebYgt.js → index-b1bdf3f6-DBuAhDH-.js} +128 -127
- package/stencil/index-b1bdf3f6-DdF5azN0.cjs +1 -0
- package/stencil/{index-45f4006f-D9GyS-vs.js → index-c7e52808-7ohcD8fQ.js} +44 -44
- package/stencil/index-c7e52808-DYutdKGj.cjs +1 -0
- package/stencil/{index-45f4006f-DKAxZFDZ.js → index-c7e52808-WCb5gCA6.js} +46 -46
- package/stencil/index-db5752f9-B4MZ13Fz.js +610 -0
- package/stencil/index-db5752f9-C_VcDZns.js +594 -0
- package/stencil/index-db5752f9-DSHLGBj_.cjs +1 -0
- package/stencil/{password-input_2-D3ziy4Iu.cjs → password-input_2-B2qvf6ku.cjs} +1 -1
- package/stencil/{password-input_2-ZN0C3aqj.js → password-input_2-CdHS5fmR.js} +3 -3
- package/stencil/{password-input_2-B5ePukhS.js → password-input_2-DdQvCp3o.js} +3 -3
- package/stencil/player-change-password-gm2-1hTMqepH.js +7 -0
- package/stencil/player-change-password-gm2-2YEpyazj.js +25 -0
- package/stencil/{player-change-password-gm2-2de114b8-BXdScOXy.js → player-change-password-gm2-38dff08c-BNhjxr22.js} +84 -65
- package/stencil/{player-change-password-gm2-2de114b8-D375sYxZ.js → player-change-password-gm2-38dff08c-CPRdwVFF.js} +84 -65
- package/stencil/player-change-password-gm2-38dff08c-DnYXSeKg.cjs +1 -0
- package/stencil/player-change-password-gm2-CDxgB3eD.cjs +1 -0
- package/stencil/player-kyc-verification-5V24oWMX.cjs +180 -0
- package/stencil/{player-kyc-verification-BZX3owFI.js → player-kyc-verification-BPrVDLfj.js} +79 -59
- package/stencil/{player-kyc-verification-KcMUMtzd.js → player-kyc-verification-CRwnm961.js} +84 -64
- package/stencil/{toggle-checkbox-input-BqotLJuA.js → toggle-checkbox-input-B4OOk9wz.js} +1 -1
- package/stencil/{toggle-checkbox-input-DFpk-vL2.js → toggle-checkbox-input-Cwo_Ny77.js} +1 -1
- package/stencil/{toggle-checkbox-input-n5b3s-CU.cjs → toggle-checkbox-input-tQDhlcag.cjs} +1 -1
- package/stencil/ui-skeleton-982450d2-BEC6vjfL.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-CXoVwMz-.js +122 -0
- package/stencil/ui-skeleton-982450d2-DgSl7oS5.js +122 -0
- package/stencil/ui-skeleton-BjdFVTvB.cjs +1 -0
- package/stencil/ui-skeleton-BkychLQM.js +29 -0
- package/stencil/ui-skeleton-Bw-C78oa.js +11 -0
- package/stencil/{user-deposit-withdrawal-6RE0dcHP.js → user-deposit-withdrawal-51pO8ttC.js} +181 -164
- package/stencil/user-deposit-withdrawal-Bn1WPRou.cjs +59 -0
- package/stencil/{user-deposit-withdrawal-D7AuBXPO.js → user-deposit-withdrawal-C0SOQks0.js} +257 -240
- package/stencil/user-transaction-history-8EskARbv.cjs +1 -0
- package/stencil/user-transaction-history-BsTUJ4on.js +350 -0
- package/stencil/user-transaction-history-LRgu-JMX.js +374 -0
- package/stencil/{vaadin-button-mixin-b8087c3c-DTenw4S9.js → vaadin-button-mixin-ef61174c-B_vhSFKU.js} +1 -1
- package/stencil/{vaadin-button-mixin-b8087c3c-BzMgQwsM.cjs → vaadin-button-mixin-ef61174c-DuDVejN4.cjs} +1 -1
- package/stencil/{vaadin-button-mixin-b8087c3c-DMeIIR12.js → vaadin-button-mixin-ef61174c-EQiVsI4x.js} +1 -1
- package/components/PlayerAccountBettingHistory-C6G8D9gE.js +0 -333
- package/components/PlayerAccountBettingHistory-Cb8OMNy9.cjs +0 -1
- package/components/PlayerAccountController-C2q8ibgU.cjs +0 -1
- package/components/PlayerAccountGamingLimits-DbX9_Kpb.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-CnGLRHzu.cjs +0 -1
- package/components/PlayerAccountGamingLimitsInfoCard-DFsD9RSx.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPage2Gm16-8-RWZDSp.cjs +0 -21
- package/components/PlayerAccountGamingLimitsWrapper2-CXP2X7Lk.cjs +0 -1
- package/components/PlayerAccountGamingLimitsWrapper2-Cr1xbzbX.js +0 -866
- package/components/PlayerAccountGamingLimitsWrapper2-D3NmPjvT.js +0 -860
- package/components/PlayerAccountGeneralConfirmationModal-CnGS36kY.cjs +0 -1
- package/components/PlayerAccountMenu-Bnj75Pyr.js +0 -578
- package/components/PlayerAccountMenu-VCDFEkVV.js +0 -579
- package/components/PlayerAccountMenu-kULPvwXH.cjs +0 -1
- package/components/PlayerAccountModal-BGNjm-FU.js +0 -213
- package/components/PlayerAccountModal-DLxnK5Aq.cjs +0 -1
- package/components/PlayerAccountModal-d2eY7pgp.js +0 -213
- package/components/PlayerAccountNotifications-BkPn9o0x.js +0 -261
- package/components/PlayerAccountNotifications-DLpnh54-.cjs +0 -1
- package/components/PlayerAccountNotifications-DwHaboef.js +0 -261
- package/components/PlayerAccountTimeout-DX8TE-kL.cjs +0 -1
- package/components/PlayerActiveBonuses-DZ1TuekM.js +0 -1088
- package/components/PlayerActiveBonuses-T1itpvjq.cjs +0 -1
- package/components/PlayerActiveBonuses-WBu-rYFj.js +0 -1089
- package/components/PlayerBonusHistory-C7m0o7Yl.js +0 -919
- package/components/PlayerBonusHistory-D-qDx10G.cjs +0 -1
- package/components/PlayerBonusHistory-DDNLaEBO.js +0 -920
- package/components/PlayerDeposit-B04mpHHT.js +0 -395
- package/components/PlayerDeposit-CH0pw_GN.cjs +0 -1
- package/components/PlayerDeposit-DJXOEJyq.js +0 -395
- package/components/PlayerGamingHistory-CcFH-mIk.cjs +0 -1
- package/components/PlayerPendingWithdrawals-BvhoX5n1.cjs +0 -1
- package/components/PlayerProfileInfo-AEY5xCAX.js +0 -1740
- package/components/PlayerProfileInfo-D7thO7JS.js +0 -1757
- package/components/PlayerProfileInfo-DQflJzdX.cjs +0 -1
- package/components/PlayerRealityCheck-6ZyJUl5U.js +0 -598
- package/components/PlayerRealityCheck-CzPyJQgR.js +0 -582
- package/components/PlayerRealityCheck-DMI_8YfG.cjs +0 -1
- package/components/PlayerTransactionHistory-CSK3J3Na.js +0 -315
- package/components/PlayerTransactionHistory-Dj8ABxFp.cjs +0 -1
- package/components/PlayerTransactionHistory-DmTfwUdw.js +0 -315
- package/components/PlayerWithdrawal-BwymNFiL.cjs +0 -1
- package/stencil/app-globals-0f993ce5-8artnnwr.cjs +0 -1
- package/stencil/index-0a27499c-vG7Av-0V.cjs +0 -1
- package/stencil/index-1d58b17d-oagDV-gC.cjs +0 -1
- package/stencil/index-45f4006f-CL2s7me-.cjs +0 -1
- package/stencil/player-change-password-gm2-2de114b8-j-W8UbVm.cjs +0 -1
- package/stencil/player-change-password-gm2-BDCYchnQ.js +0 -25
- package/stencil/player-change-password-gm2-CQtvRl58.js +0 -7
- package/stencil/player-change-password-gm2-DLw7pfT_.cjs +0 -1
- package/stencil/player-kyc-verification-CnOn9bB_.cjs +0 -180
- package/stencil/user-deposit-withdrawal-BZXlCCQr.cjs +0 -59
- package/stencil/user-transaction-history-CLdEzp7O.cjs +0 -1
- package/stencil/user-transaction-history-CtDvqHoF.js +0 -329
- package/stencil/user-transaction-history-DW482EoT.js +0 -355
|
@@ -1,579 +0,0 @@
|
|
|
1
|
-
import { a as ae, $ as ie, S as ce, i as se, s as ue, f as F, b as me, n as D, d as T, g as E, j as v, p as ye, q as O, u as ge, w as pe, K as R, L as de, c as z, h as a, k, m as H, o as s, r as fe, l as W, v as L, e as P, X as q, x as he, y as Ae } from "./GeneralLogout-BO_iHKNr.js";
|
|
2
|
-
function N(n, e) {
|
|
3
|
-
ae(n, e);
|
|
4
|
-
}
|
|
5
|
-
function Me(n) {
|
|
6
|
-
ie.set(n);
|
|
7
|
-
}
|
|
8
|
-
const G = {
|
|
9
|
-
en: {
|
|
10
|
-
title: "My Account"
|
|
11
|
-
},
|
|
12
|
-
"zh-hk": {
|
|
13
|
-
title: "我的帳戶"
|
|
14
|
-
},
|
|
15
|
-
fr: {
|
|
16
|
-
title: "Mon compte"
|
|
17
|
-
},
|
|
18
|
-
tr: {
|
|
19
|
-
title: "Hesabım"
|
|
20
|
-
},
|
|
21
|
-
ro: {
|
|
22
|
-
title: "Contul meu"
|
|
23
|
-
},
|
|
24
|
-
es: {
|
|
25
|
-
title: "Mi Cuenta"
|
|
26
|
-
},
|
|
27
|
-
pt: {
|
|
28
|
-
title: "Minha Conta"
|
|
29
|
-
},
|
|
30
|
-
hr: {
|
|
31
|
-
title: "Moj račun"
|
|
32
|
-
},
|
|
33
|
-
"pt-br": {
|
|
34
|
-
title: "Minha conta"
|
|
35
|
-
},
|
|
36
|
-
"es-mx": {
|
|
37
|
-
title: "Mi cuenta"
|
|
38
|
-
},
|
|
39
|
-
"en-us": {
|
|
40
|
-
title: "My Account"
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
if (typeof window != "undefined") {
|
|
44
|
-
let n = function(e) {
|
|
45
|
-
return function(...t) {
|
|
46
|
-
try {
|
|
47
|
-
return e.apply(this, t);
|
|
48
|
-
} catch (o) {
|
|
49
|
-
if (o instanceof DOMException && o.message.includes("has already been used with this registry") || o.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
50
|
-
return !1;
|
|
51
|
-
throw o;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-BO_iHKNr.js").then((e) => e.a4).then(({ default: e }) => {
|
|
56
|
-
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function Pe(n) {
|
|
60
|
-
me(n, "svelte-g6nv6v", ".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}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.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;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width: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)}.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)}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}");
|
|
61
|
-
}
|
|
62
|
-
function X(n, e, t) {
|
|
63
|
-
const o = n.slice();
|
|
64
|
-
return o[35] = e[t], o;
|
|
65
|
-
}
|
|
66
|
-
function be(n) {
|
|
67
|
-
let e, t, o, r, y, m, p, A, w, b, f, _, M = (
|
|
68
|
-
/*isMobile*/
|
|
69
|
-
n[10] && we(n)
|
|
70
|
-
), g = (
|
|
71
|
-
/*isMobile*/
|
|
72
|
-
n[10] && ve(n)
|
|
73
|
-
), c = R(
|
|
74
|
-
/*menuItems*/
|
|
75
|
-
n[5]
|
|
76
|
-
), u = [];
|
|
77
|
-
for (let i = 0; i < c.length; i += 1)
|
|
78
|
-
u[i] = K(X(n, c, i));
|
|
79
|
-
let C = !/*isMobile*/
|
|
80
|
-
n[10] && _e(n);
|
|
81
|
-
return {
|
|
82
|
-
c() {
|
|
83
|
-
e = v("div"), t = v("div"), M && M.c(), o = k(), r = v("p"), y = H(
|
|
84
|
-
/*profileUsername*/
|
|
85
|
-
n[7]
|
|
86
|
-
), m = k(), p = v("p"), A = H(
|
|
87
|
-
/*profileEmail*/
|
|
88
|
-
n[8]
|
|
89
|
-
), w = k(), g && g.c(), b = k(), f = v("div");
|
|
90
|
-
for (let i = 0; i < u.length; i += 1)
|
|
91
|
-
u[i].c();
|
|
92
|
-
_ = k(), C && C.c(), s(r, "class", "PlayerAccountMenuUser"), s(p, "class", "PlayerAccountMenuEmail"), s(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
93
|
-
(n[10] ? "PlayerAccountMenuHeaderMobile" : "")), s(f, "class", "PlayerAccountMenuList"), s(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
94
|
-
(n[10] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
|
|
95
|
-
(n[11].matches && /*isMobile*/
|
|
96
|
-
n[10] ? "PlayerAccountTabletContainer" : ""));
|
|
97
|
-
},
|
|
98
|
-
m(i, I) {
|
|
99
|
-
E(i, e, I), a(e, t), M && M.m(t, null), a(t, o), a(t, r), a(r, y), a(t, m), a(t, p), a(p, A), a(t, w), g && g.m(t, null), a(e, b), a(e, f);
|
|
100
|
-
for (let d = 0; d < u.length; d += 1)
|
|
101
|
-
u[d] && u[d].m(f, null);
|
|
102
|
-
a(e, _), C && C.m(e, null);
|
|
103
|
-
},
|
|
104
|
-
p(i, I) {
|
|
105
|
-
if (
|
|
106
|
-
/*isMobile*/
|
|
107
|
-
i[10] && M.p(i, I), I[0] & /*profileUsername*/
|
|
108
|
-
128 && z(
|
|
109
|
-
y,
|
|
110
|
-
/*profileUsername*/
|
|
111
|
-
i[7]
|
|
112
|
-
), I[0] & /*profileEmail*/
|
|
113
|
-
256 && z(
|
|
114
|
-
A,
|
|
115
|
-
/*profileEmail*/
|
|
116
|
-
i[8]
|
|
117
|
-
), /*isMobile*/
|
|
118
|
-
i[10] && g.p(i, I), I[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
|
|
119
|
-
5216
|
|
120
|
-
) {
|
|
121
|
-
c = R(
|
|
122
|
-
/*menuItems*/
|
|
123
|
-
i[5]
|
|
124
|
-
);
|
|
125
|
-
let d;
|
|
126
|
-
for (d = 0; d < c.length; d += 1) {
|
|
127
|
-
const B = X(i, c, d);
|
|
128
|
-
u[d] ? u[d].p(B, I) : (u[d] = K(B), u[d].c(), u[d].m(f, null));
|
|
129
|
-
}
|
|
130
|
-
for (; d < u.length; d += 1)
|
|
131
|
-
u[d].d(1);
|
|
132
|
-
u.length = c.length;
|
|
133
|
-
}
|
|
134
|
-
/*isMobile*/
|
|
135
|
-
i[10] || C.p(i, I);
|
|
136
|
-
},
|
|
137
|
-
d(i) {
|
|
138
|
-
i && T(e), M && M.d(), g && g.d(), de(u, i), C && C.d();
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function we(n) {
|
|
143
|
-
let e, t, o, r, y, m, p, A, w, b, f = (
|
|
144
|
-
/*$_*/
|
|
145
|
-
n[9]("title") + ""
|
|
146
|
-
), _, M, g;
|
|
147
|
-
return {
|
|
148
|
-
c() {
|
|
149
|
-
e = v("div"), t = L("svg"), o = L("defs"), r = L("style"), y = H(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), m = L("g"), p = L("g"), A = L("path"), w = k(), b = v("h3"), _ = H(f), s(A, "class", "aaa"), s(A, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(A, "transform", "translate(15 15) rotate(180)"), s(p, "transform", "translate(20 158)"), s(m, "transform", "translate(-20 -158)"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(t, "width", "15"), s(t, "height", "15"), s(t, "viewBox", "0 0 15 15"), s(b, "class", "PlayerAccountMenuCategoryTitle"), s(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
150
|
-
},
|
|
151
|
-
m(c, u) {
|
|
152
|
-
E(c, e, u), a(e, t), a(t, o), a(o, r), a(r, y), a(t, m), a(m, p), a(p, A), a(e, w), a(e, b), a(b, _), M || (g = [
|
|
153
|
-
W(
|
|
154
|
-
t,
|
|
155
|
-
"click",
|
|
156
|
-
/*goToHome*/
|
|
157
|
-
n[13]
|
|
158
|
-
),
|
|
159
|
-
W(
|
|
160
|
-
b,
|
|
161
|
-
"click",
|
|
162
|
-
/*goToHome*/
|
|
163
|
-
n[13]
|
|
164
|
-
)
|
|
165
|
-
], M = !0);
|
|
166
|
-
},
|
|
167
|
-
p(c, u) {
|
|
168
|
-
u[0] & /*$_*/
|
|
169
|
-
512 && f !== (f = /*$_*/
|
|
170
|
-
c[9]("title") + "") && z(_, f);
|
|
171
|
-
},
|
|
172
|
-
d(c) {
|
|
173
|
-
c && T(e), M = !1, fe(g);
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function ve(n) {
|
|
178
|
-
let e, t;
|
|
179
|
-
return {
|
|
180
|
-
c() {
|
|
181
|
-
e = v("div"), t = v("general-logout"), P(
|
|
182
|
-
t,
|
|
183
|
-
"endpoint",
|
|
184
|
-
/*endpoint*/
|
|
185
|
-
n[1]
|
|
186
|
-
), P(
|
|
187
|
-
t,
|
|
188
|
-
"session",
|
|
189
|
-
/*session*/
|
|
190
|
-
n[0]
|
|
191
|
-
), P(t, "buttonlocation", "PlayerAccountMenu"), P(
|
|
192
|
-
t,
|
|
193
|
-
"clientstyling",
|
|
194
|
-
/*clientstyling*/
|
|
195
|
-
n[2]
|
|
196
|
-
), P(
|
|
197
|
-
t,
|
|
198
|
-
"clientstylingurl",
|
|
199
|
-
/*clientstylingurl*/
|
|
200
|
-
n[3]
|
|
201
|
-
), s(e, "class", "PlayerAccountLogOutArea");
|
|
202
|
-
},
|
|
203
|
-
m(o, r) {
|
|
204
|
-
E(o, e, r), a(e, t);
|
|
205
|
-
},
|
|
206
|
-
p(o, r) {
|
|
207
|
-
r[0] & /*endpoint*/
|
|
208
|
-
2 && P(
|
|
209
|
-
t,
|
|
210
|
-
"endpoint",
|
|
211
|
-
/*endpoint*/
|
|
212
|
-
o[1]
|
|
213
|
-
), r[0] & /*session*/
|
|
214
|
-
1 && P(
|
|
215
|
-
t,
|
|
216
|
-
"session",
|
|
217
|
-
/*session*/
|
|
218
|
-
o[0]
|
|
219
|
-
), r[0] & /*clientstyling*/
|
|
220
|
-
4 && P(
|
|
221
|
-
t,
|
|
222
|
-
"clientstyling",
|
|
223
|
-
/*clientstyling*/
|
|
224
|
-
o[2]
|
|
225
|
-
), r[0] & /*clientstylingurl*/
|
|
226
|
-
8 && P(
|
|
227
|
-
t,
|
|
228
|
-
"clientstylingurl",
|
|
229
|
-
/*clientstylingurl*/
|
|
230
|
-
o[3]
|
|
231
|
-
);
|
|
232
|
-
},
|
|
233
|
-
d(o) {
|
|
234
|
-
o && T(e);
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
function K(n) {
|
|
239
|
-
let e, t, o, r, y, m, p = (
|
|
240
|
-
/*menuItem*/
|
|
241
|
-
n[35].label + ""
|
|
242
|
-
), A, w, b, f, _;
|
|
243
|
-
function M() {
|
|
244
|
-
return (
|
|
245
|
-
/*click_handler*/
|
|
246
|
-
n[21](
|
|
247
|
-
/*menuItem*/
|
|
248
|
-
n[35]
|
|
249
|
-
)
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
return {
|
|
253
|
-
c() {
|
|
254
|
-
e = v("div"), t = v("p"), o = v("img"), y = k(), m = v("span"), A = H(p), w = k(), s(o, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
|
|
255
|
-
(n[10] ? "PlayerAccountMenuItemIconMobile" : "")), q(o.src, r = /*menuItem*/
|
|
256
|
-
n[35].img) || s(o, "src", r), s(m, "class", "PlayerAccountMenuItemTitle"), s(t, "class", "PlayerAccountMenuItemWrapper"), s(e, "class", b = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
257
|
-
(n[6] === /*menuItem*/
|
|
258
|
-
n[35].id && !/*isMobile*/
|
|
259
|
-
n[10] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
260
|
-
},
|
|
261
|
-
m(g, c) {
|
|
262
|
-
E(g, e, c), a(e, t), a(t, o), a(t, y), a(t, m), a(m, A), a(e, w), f || (_ = W(e, "click", M), f = !0);
|
|
263
|
-
},
|
|
264
|
-
p(g, c) {
|
|
265
|
-
n = g, c[0] & /*menuItems*/
|
|
266
|
-
32 && !q(o.src, r = /*menuItem*/
|
|
267
|
-
n[35].img) && s(o, "src", r), c[0] & /*menuItems*/
|
|
268
|
-
32 && p !== (p = /*menuItem*/
|
|
269
|
-
n[35].label + "") && z(A, p), c[0] & /*selectedItem, menuItems*/
|
|
270
|
-
96 && b !== (b = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
271
|
-
(n[6] === /*menuItem*/
|
|
272
|
-
n[35].id && !/*isMobile*/
|
|
273
|
-
n[10] ? "PlayerAccountMenuActiveItemBox" : "")) && s(e, "class", b);
|
|
274
|
-
},
|
|
275
|
-
d(g) {
|
|
276
|
-
g && T(e), f = !1, _();
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
function _e(n) {
|
|
281
|
-
let e, t;
|
|
282
|
-
return {
|
|
283
|
-
c() {
|
|
284
|
-
e = v("div"), t = v("general-logout"), P(
|
|
285
|
-
t,
|
|
286
|
-
"endpoint",
|
|
287
|
-
/*endpoint*/
|
|
288
|
-
n[1]
|
|
289
|
-
), P(
|
|
290
|
-
t,
|
|
291
|
-
"session",
|
|
292
|
-
/*session*/
|
|
293
|
-
n[0]
|
|
294
|
-
), P(t, "buttonlocation", "PlayerAccountMenu"), P(
|
|
295
|
-
t,
|
|
296
|
-
"clientstyling",
|
|
297
|
-
/*clientstyling*/
|
|
298
|
-
n[2]
|
|
299
|
-
), P(
|
|
300
|
-
t,
|
|
301
|
-
"clientstylingurl",
|
|
302
|
-
/*clientstylingurl*/
|
|
303
|
-
n[3]
|
|
304
|
-
), s(e, "class", "PlayerAccountLogOutArea");
|
|
305
|
-
},
|
|
306
|
-
m(o, r) {
|
|
307
|
-
E(o, e, r), a(e, t);
|
|
308
|
-
},
|
|
309
|
-
p(o, r) {
|
|
310
|
-
r[0] & /*endpoint*/
|
|
311
|
-
2 && P(
|
|
312
|
-
t,
|
|
313
|
-
"endpoint",
|
|
314
|
-
/*endpoint*/
|
|
315
|
-
o[1]
|
|
316
|
-
), r[0] & /*session*/
|
|
317
|
-
1 && P(
|
|
318
|
-
t,
|
|
319
|
-
"session",
|
|
320
|
-
/*session*/
|
|
321
|
-
o[0]
|
|
322
|
-
), r[0] & /*clientstyling*/
|
|
323
|
-
4 && P(
|
|
324
|
-
t,
|
|
325
|
-
"clientstyling",
|
|
326
|
-
/*clientstyling*/
|
|
327
|
-
o[2]
|
|
328
|
-
), r[0] & /*clientstylingurl*/
|
|
329
|
-
8 && P(
|
|
330
|
-
t,
|
|
331
|
-
"clientstylingurl",
|
|
332
|
-
/*clientstylingurl*/
|
|
333
|
-
o[3]
|
|
334
|
-
);
|
|
335
|
-
},
|
|
336
|
-
d(o) {
|
|
337
|
-
o && T(e);
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
function xe(n) {
|
|
342
|
-
let e;
|
|
343
|
-
function t(y, m) {
|
|
344
|
-
return be;
|
|
345
|
-
}
|
|
346
|
-
let r = t()(n);
|
|
347
|
-
return {
|
|
348
|
-
c() {
|
|
349
|
-
e = v("div"), r.c();
|
|
350
|
-
},
|
|
351
|
-
m(y, m) {
|
|
352
|
-
E(y, e, m), r.m(e, null), n[22](e);
|
|
353
|
-
},
|
|
354
|
-
p(y, m) {
|
|
355
|
-
r.p(y, m);
|
|
356
|
-
},
|
|
357
|
-
i: D,
|
|
358
|
-
o: D,
|
|
359
|
-
d(y) {
|
|
360
|
-
y && T(e), r.d(), n[22](null);
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
function Ce(n, e, t) {
|
|
365
|
-
let o;
|
|
366
|
-
ye(n, Ae, (l) => t(9, o = l));
|
|
367
|
-
let { endpoint: r = "" } = e, { cmsendpoint: y = "" } = e, { env: m = "" } = e, { session: p = "" } = e, { playerid: A = "" } = e, { lang: w = "en" } = e, { userroles: b = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: M = "" } = e, { activemenuitem: g = "" } = e, c, u = [], C, i = window.navigator.userAgent, I = O(i) !== "PC", d = "", B = "";
|
|
368
|
-
const Q = window.matchMedia("(min-width: 768px)"), V = () => {
|
|
369
|
-
fetch(M).then((h) => h.json()).then((h) => {
|
|
370
|
-
Object.keys(h).forEach((x) => {
|
|
371
|
-
N(x, h[x]);
|
|
372
|
-
});
|
|
373
|
-
}).catch((h) => {
|
|
374
|
-
console.error(h);
|
|
375
|
-
});
|
|
376
|
-
};
|
|
377
|
-
Object.keys(G).forEach((l) => {
|
|
378
|
-
N(l, G[l]);
|
|
379
|
-
});
|
|
380
|
-
const S = (l) => {
|
|
381
|
-
if (l.data)
|
|
382
|
-
switch (l.data.type) {
|
|
383
|
-
case "UserSessionID":
|
|
384
|
-
t(0, p = l.data.session);
|
|
385
|
-
break;
|
|
386
|
-
}
|
|
387
|
-
}, Z = () => {
|
|
388
|
-
let l = O(i);
|
|
389
|
-
if (l)
|
|
390
|
-
return l === "PC" ? "dk" : "mtWeb";
|
|
391
|
-
}, J = () => {
|
|
392
|
-
const l = new URL(`${y}/${w}/profile-menu?env=${m}`);
|
|
393
|
-
l.searchParams.append("device", Z()), fetch(l.href).then((h) => h.json()).then((h) => {
|
|
394
|
-
t(5, u = h), j();
|
|
395
|
-
}).catch((h) => {
|
|
396
|
-
console.error("Error getting menu items", h);
|
|
397
|
-
});
|
|
398
|
-
}, Y = () => {
|
|
399
|
-
let l = new URL(`${r}/v1/player/${A}/profile`);
|
|
400
|
-
l.searchParams.append("userRoles", b);
|
|
401
|
-
let h = {
|
|
402
|
-
method: "GET",
|
|
403
|
-
headers: { "X-SessionID": p }
|
|
404
|
-
};
|
|
405
|
-
fetch(l.href, h).then((x) => x.json()).then(
|
|
406
|
-
(x) => {
|
|
407
|
-
t(7, d = x.username), t(8, B = x.email);
|
|
408
|
-
},
|
|
409
|
-
(x) => {
|
|
410
|
-
console.error(x);
|
|
411
|
-
}
|
|
412
|
-
);
|
|
413
|
-
}, U = (l) => {
|
|
414
|
-
window.postMessage({ type: "ChangeAccountPage", page: l }, window.location.href), t(6, C = l.id);
|
|
415
|
-
}, j = () => {
|
|
416
|
-
var l;
|
|
417
|
-
t(6, C = (l = u.find((h) => h.path.includes(g))) == null ? void 0 : l.id);
|
|
418
|
-
}, $ = () => {
|
|
419
|
-
Me(w);
|
|
420
|
-
}, ee = () => {
|
|
421
|
-
Y();
|
|
422
|
-
}, te = () => {
|
|
423
|
-
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
|
424
|
-
}, ne = () => {
|
|
425
|
-
let l = document.createElement("style");
|
|
426
|
-
l.innerHTML = f, c.appendChild(l);
|
|
427
|
-
}, le = () => {
|
|
428
|
-
let l = new URL(_), h = document.createElement("style");
|
|
429
|
-
fetch(l.href).then((x) => x.text()).then((x) => {
|
|
430
|
-
h.innerHTML = x, setTimeout(
|
|
431
|
-
() => {
|
|
432
|
-
c.appendChild(h);
|
|
433
|
-
},
|
|
434
|
-
1
|
|
435
|
-
);
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
|
-
ge(() => (window.addEventListener("message", S, !1), () => {
|
|
439
|
-
window.removeEventListener("message", S);
|
|
440
|
-
}));
|
|
441
|
-
const oe = (l) => U(l);
|
|
442
|
-
function re(l) {
|
|
443
|
-
pe[l ? "unshift" : "push"](() => {
|
|
444
|
-
c = l, t(4, c);
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
return n.$$set = (l) => {
|
|
448
|
-
"endpoint" in l && t(1, r = l.endpoint), "cmsendpoint" in l && t(14, y = l.cmsendpoint), "env" in l && t(15, m = l.env), "session" in l && t(0, p = l.session), "playerid" in l && t(16, A = l.playerid), "lang" in l && t(17, w = l.lang), "userroles" in l && t(18, b = l.userroles), "clientstyling" in l && t(2, f = l.clientstyling), "clientstylingurl" in l && t(3, _ = l.clientstylingurl), "translationurl" in l && t(19, M = l.translationurl), "activemenuitem" in l && t(20, g = l.activemenuitem);
|
|
449
|
-
}, n.$$.update = () => {
|
|
450
|
-
n.$$.dirty[0] & /*lang*/
|
|
451
|
-
131072 && w && $(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
|
|
452
|
-
196611 && r && p && A && w && ee(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
453
|
-
180224 && y && w && m && J(), n.$$.dirty[0] & /*activemenuitem*/
|
|
454
|
-
1048576 && g && j(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
455
|
-
24 && _ && c && le(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
456
|
-
20 && f && c && ne(), n.$$.dirty[0] & /*translationurl*/
|
|
457
|
-
524288 && M && V();
|
|
458
|
-
}, [
|
|
459
|
-
p,
|
|
460
|
-
r,
|
|
461
|
-
f,
|
|
462
|
-
_,
|
|
463
|
-
c,
|
|
464
|
-
u,
|
|
465
|
-
C,
|
|
466
|
-
d,
|
|
467
|
-
B,
|
|
468
|
-
o,
|
|
469
|
-
I,
|
|
470
|
-
Q,
|
|
471
|
-
U,
|
|
472
|
-
te,
|
|
473
|
-
y,
|
|
474
|
-
m,
|
|
475
|
-
A,
|
|
476
|
-
w,
|
|
477
|
-
b,
|
|
478
|
-
M,
|
|
479
|
-
g,
|
|
480
|
-
oe,
|
|
481
|
-
re
|
|
482
|
-
];
|
|
483
|
-
}
|
|
484
|
-
class Ie extends ce {
|
|
485
|
-
constructor(e) {
|
|
486
|
-
super(), se(
|
|
487
|
-
this,
|
|
488
|
-
e,
|
|
489
|
-
Ce,
|
|
490
|
-
xe,
|
|
491
|
-
ue,
|
|
492
|
-
{
|
|
493
|
-
endpoint: 1,
|
|
494
|
-
cmsendpoint: 14,
|
|
495
|
-
env: 15,
|
|
496
|
-
session: 0,
|
|
497
|
-
playerid: 16,
|
|
498
|
-
lang: 17,
|
|
499
|
-
userroles: 18,
|
|
500
|
-
clientstyling: 2,
|
|
501
|
-
clientstylingurl: 3,
|
|
502
|
-
translationurl: 19,
|
|
503
|
-
activemenuitem: 20
|
|
504
|
-
},
|
|
505
|
-
Pe,
|
|
506
|
-
[-1, -1]
|
|
507
|
-
);
|
|
508
|
-
}
|
|
509
|
-
get endpoint() {
|
|
510
|
-
return this.$$.ctx[1];
|
|
511
|
-
}
|
|
512
|
-
set endpoint(e) {
|
|
513
|
-
this.$$set({ endpoint: e }), F();
|
|
514
|
-
}
|
|
515
|
-
get cmsendpoint() {
|
|
516
|
-
return this.$$.ctx[14];
|
|
517
|
-
}
|
|
518
|
-
set cmsendpoint(e) {
|
|
519
|
-
this.$$set({ cmsendpoint: e }), F();
|
|
520
|
-
}
|
|
521
|
-
get env() {
|
|
522
|
-
return this.$$.ctx[15];
|
|
523
|
-
}
|
|
524
|
-
set env(e) {
|
|
525
|
-
this.$$set({ env: e }), F();
|
|
526
|
-
}
|
|
527
|
-
get session() {
|
|
528
|
-
return this.$$.ctx[0];
|
|
529
|
-
}
|
|
530
|
-
set session(e) {
|
|
531
|
-
this.$$set({ session: e }), F();
|
|
532
|
-
}
|
|
533
|
-
get playerid() {
|
|
534
|
-
return this.$$.ctx[16];
|
|
535
|
-
}
|
|
536
|
-
set playerid(e) {
|
|
537
|
-
this.$$set({ playerid: e }), F();
|
|
538
|
-
}
|
|
539
|
-
get lang() {
|
|
540
|
-
return this.$$.ctx[17];
|
|
541
|
-
}
|
|
542
|
-
set lang(e) {
|
|
543
|
-
this.$$set({ lang: e }), F();
|
|
544
|
-
}
|
|
545
|
-
get userroles() {
|
|
546
|
-
return this.$$.ctx[18];
|
|
547
|
-
}
|
|
548
|
-
set userroles(e) {
|
|
549
|
-
this.$$set({ userroles: e }), F();
|
|
550
|
-
}
|
|
551
|
-
get clientstyling() {
|
|
552
|
-
return this.$$.ctx[2];
|
|
553
|
-
}
|
|
554
|
-
set clientstyling(e) {
|
|
555
|
-
this.$$set({ clientstyling: e }), F();
|
|
556
|
-
}
|
|
557
|
-
get clientstylingurl() {
|
|
558
|
-
return this.$$.ctx[3];
|
|
559
|
-
}
|
|
560
|
-
set clientstylingurl(e) {
|
|
561
|
-
this.$$set({ clientstylingurl: e }), F();
|
|
562
|
-
}
|
|
563
|
-
get translationurl() {
|
|
564
|
-
return this.$$.ctx[19];
|
|
565
|
-
}
|
|
566
|
-
set translationurl(e) {
|
|
567
|
-
this.$$set({ translationurl: e }), F();
|
|
568
|
-
}
|
|
569
|
-
get activemenuitem() {
|
|
570
|
-
return this.$$.ctx[20];
|
|
571
|
-
}
|
|
572
|
-
set activemenuitem(e) {
|
|
573
|
-
this.$$set({ activemenuitem: e }), F();
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
he(Ie, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
|
|
577
|
-
export {
|
|
578
|
-
Ie as default
|
|
579
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CMYMtWfC.cjs");function k(l,t){e.addMessages(l,t)}function Q(l){e.$locale.set(l)}const L={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(o){if(o instanceof DOMException&&o.message.includes("has already been used with this registry")||o.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw o}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CMYMtWfC.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function V(l){e.append_styles(l,"svelte-g6nv6v",".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}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.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;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width: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)}.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)}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}")}function T(l,t,n){const o=l.slice();return o[35]=t[n],o}function X(l){let t,n,o,r,m,u,d,h,M,A,y,P,_=l[10]&&Z(l),p=l[10]&&J(l),i=e.ensure_array_like(l[5]),s=[];for(let c=0;c<i.length;c+=1)s[c]=E(T(l,i,c));let v=!l[10]&&K(l);return{c(){t=e.element("div"),n=e.element("div"),_&&_.c(),o=e.space(),r=e.element("p"),m=e.text(l[7]),u=e.space(),d=e.element("p"),h=e.text(l[8]),M=e.space(),p&&p.c(),A=e.space(),y=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();P=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(d,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[10]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[10]?"PlayerAccountMobileContainer":"")+" "+(l[11].matches&&l[10]?"PlayerAccountTabletContainer":""))},m(c,w){e.insert(c,t,w),e.append(t,n),_&&_.m(n,null),e.append(n,o),e.append(n,r),e.append(r,m),e.append(n,u),e.append(n,d),e.append(d,h),e.append(n,M),p&&p.m(n,null),e.append(t,A),e.append(t,y);for(let g=0;g<s.length;g+=1)s[g]&&s[g].m(y,null);e.append(t,P),v&&v.m(t,null)},p(c,w){if(c[10]&&_.p(c,w),w[0]&128&&e.set_data(m,c[7]),w[0]&256&&e.set_data(h,c[8]),c[10]&&p.p(c,w),w[0]&5216){i=e.ensure_array_like(c[5]);let g;for(g=0;g<i.length;g+=1){const x=T(c,i,g);s[g]?s[g].p(x,w):(s[g]=E(x),s[g].c(),s[g].m(y,null))}for(;g<s.length;g+=1)s[g].d(1);s.length=i.length}c[10]||v.p(c,w)},d(c){c&&e.detach(t),_&&_.d(),p&&p.d(),e.destroy_each(s,c),v&&v.d()}}}function Z(l){let t,n,o,r,m,u,d,h,M,A,y=l[9]("title")+"",P,_,p;return{c(){t=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),m=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),u=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),M=e.space(),A=e.element("h3"),P=e.text(y),e.attr(h,"class","aaa"),e.attr(h,"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(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(u,"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(A,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(i,s){e.insert(i,t,s),e.append(t,n),e.append(n,o),e.append(o,r),e.append(r,m),e.append(n,u),e.append(u,d),e.append(d,h),e.append(t,M),e.append(t,A),e.append(A,P),_||(p=[e.listen(n,"click",l[13]),e.listen(A,"click",l[13])],_=!0)},p(i,s){s[0]&512&&y!==(y=i[9]("title")+"")&&e.set_data(P,y)},d(i){i&&e.detach(t),_=!1,e.run_all(p)}}}function J(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.attr(t,"class","PlayerAccountLogOutArea")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function E(l){let t,n,o,r,m,u,d=l[35].label+"",h,M,A,y,P;function _(){return l[21](l[35])}return{c(){t=e.element("div"),n=e.element("p"),o=e.element("img"),m=e.space(),u=e.element("span"),h=e.text(d),M=e.space(),e.attr(o,"class","PlayerAccountMenuItemIcon "+(l[10]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(o.src,r=l[35].img)||e.attr(o,"src",r),e.attr(u,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,o),e.append(n,m),e.append(n,u),e.append(u,h),e.append(t,M),y||(P=e.listen(t,"click",_),y=!0)},p(p,i){l=p,i[0]&32&&!e.src_url_equal(o.src,r=l[35].img)&&e.attr(o,"src",r),i[0]&32&&d!==(d=l[35].label+"")&&e.set_data(h,d),i[0]&96&&A!==(A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",A)},d(p){p&&e.detach(t),y=!1,P()}}}function K(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.attr(t,"class","PlayerAccountLogOutArea")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function Y(l){let t;function n(m,u){return X}let r=n()(l);return{c(){t=e.element("div"),r.c()},m(m,u){e.insert(m,t,u),r.m(t,null),l[22](t)},p(m,u){r.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),r.d(),l[22](null)}}}function $(l,t,n){let o;e.component_subscribe(l,e.$format,a=>n(9,o=a));let{endpoint:r=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:d=""}=t,{playerid:h=""}=t,{lang:M="en"}=t,{userroles:A=""}=t,{clientstyling:y=""}=t,{clientstylingurl:P=""}=t,{translationurl:_=""}=t,{activemenuitem:p=""}=t,i,s=[],v,c=window.navigator.userAgent,w=e.getDevice(c)!=="PC",g="",x="";const H=window.matchMedia("(min-width: 768px)"),z=()=>{fetch(_).then(f=>f.json()).then(f=>{Object.keys(f).forEach(b=>{k(b,f[b])})}).catch(f=>{console.error(f)})};Object.keys(L).forEach(a=>{k(a,L[a])});const C=a=>{if(a.data)switch(a.data.type){case"UserSessionID":n(0,d=a.data.session);break}},S=()=>{let a=e.getDevice(c);if(a)return a==="PC"?"dk":"mtWeb"},W=()=>{const a=new URL(`${m}/${M}/profile-menu?env=${u}`);a.searchParams.append("device",S()),fetch(a.href).then(f=>f.json()).then(f=>{n(5,s=f),F()}).catch(f=>{console.error("Error getting menu items",f)})},D=()=>{let a=new URL(`${r}/v1/player/${h}/profile`);a.searchParams.append("userRoles",A);let f={method:"GET",headers:{"X-SessionID":d}};fetch(a.href,f).then(b=>b.json()).then(b=>{n(7,g=b.username),n(8,x=b.email)},b=>{console.error(b)})},I=a=>{window.postMessage({type:"ChangeAccountPage",page:a},window.location.href),n(6,v=a.id)},F=()=>{var a;n(6,v=(a=s.find(f=>f.path.includes(p)))==null?void 0:a.id)},O=()=>{Q(M)},U=()=>{D()},j=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},R=()=>{let a=document.createElement("style");a.innerHTML=y,i.appendChild(a)},q=()=>{let a=new URL(P),f=document.createElement("style");fetch(a.href).then(b=>b.text()).then(b=>{f.innerHTML=b,setTimeout(()=>{i.appendChild(f)},1)})};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const G=a=>I(a);function N(a){e.binding_callbacks[a?"unshift":"push"](()=>{i=a,n(4,i)})}return l.$$set=a=>{"endpoint"in a&&n(1,r=a.endpoint),"cmsendpoint"in a&&n(14,m=a.cmsendpoint),"env"in a&&n(15,u=a.env),"session"in a&&n(0,d=a.session),"playerid"in a&&n(16,h=a.playerid),"lang"in a&&n(17,M=a.lang),"userroles"in a&&n(18,A=a.userroles),"clientstyling"in a&&n(2,y=a.clientstyling),"clientstylingurl"in a&&n(3,P=a.clientstylingurl),"translationurl"in a&&n(19,_=a.translationurl),"activemenuitem"in a&&n(20,p=a.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&131072&&M&&O(),l.$$.dirty[0]&196611&&r&&d&&h&&M&&U(),l.$$.dirty[0]&180224&&m&&M&&u&&W(),l.$$.dirty[0]&1048576&&p&&F(),l.$$.dirty[0]&24&&P&&i&&q(),l.$$.dirty[0]&20&&y&&i&&R(),l.$$.dirty[0]&524288&&_&&z()},[d,r,y,P,i,s,v,g,x,o,w,H,I,j,m,u,h,M,A,_,p,G,N]}class B extends e.SvelteComponent{constructor(t){super(),e.init(this,t,$,Y,e.safe_not_equal,{endpoint:1,cmsendpoint:14,env:15,session:0,playerid:16,lang:17,userroles:18,clientstyling:2,clientstylingurl:3,translationurl:19,activemenuitem:20},V,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[15]}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[16]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[18]}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[19]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[20]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(B,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=B;
|