@everymatrix/player-account-controller 1.54.4 → 1.54.8

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.
Files changed (147) hide show
  1. package/components/{GeneralLogout-Ddt-oH9k.js → GeneralLogout-ChXyfO7j.js} +504 -512
  2. package/components/GeneralLogout-CoXr5Hra.js +4819 -0
  3. package/components/GeneralLogout-JiIri-az.cjs +8 -0
  4. package/components/PlayerAccountBettingHistory-C4SfQEr4.js +333 -0
  5. package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-CElNilNd.js} +24 -24
  6. package/components/PlayerAccountBettingHistory-CSI5k3hd.cjs +1 -0
  7. package/components/PlayerAccountBiometrics-BS3jkUXn.cjs +1 -0
  8. package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-D9kYcZXR.js} +26 -26
  9. package/components/PlayerAccountBiometrics-orQ-qG9h.js +307 -0
  10. package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-CHUq23nB.js} +13 -13
  11. package/components/PlayerAccountClosure-CWd3utu_.js +347 -0
  12. package/components/PlayerAccountClosure-DdfqiT7d.cjs +1 -0
  13. package/components/{PlayerAccountController-BZYAo3oo.js → PlayerAccountController-BclvS237.js} +126 -126
  14. package/components/PlayerAccountController-DEXL47fX.js +6671 -0
  15. package/components/PlayerAccountController-DX3vsM6e.cjs +1 -0
  16. package/components/PlayerAccountGamingLimits-CKnItii4.cjs +1 -0
  17. package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-DXQNmZKD.js} +19 -19
  18. package/components/PlayerAccountGamingLimits-Db6qUAS-.js +766 -0
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-i09zMH6w.js} +59 -59
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-jZS53-sU.cjs +1 -0
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-l4fu3WOl.js +310 -0
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BIt0U7Ia.js} +51 -51
  23. package/components/PlayerAccountGamingLimitsGroupEdit-CsnzS7iF.js +4170 -0
  24. package/components/PlayerAccountGamingLimitsGroupEdit-DZlV6G_9.cjs +10 -0
  25. package/components/PlayerAccountGamingLimitsHistory2-CrW3EIzV.cjs +1 -0
  26. package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-D04L-msb.js} +44 -44
  27. package/components/PlayerAccountGamingLimitsHistory2-DA5YY1gv.js +767 -0
  28. package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-B2YB4bdP.js} +95 -95
  29. package/components/PlayerAccountGamingLimitsInfoCard-B4t7J9Ea.js +1513 -0
  30. package/components/PlayerAccountGamingLimitsInfoCard-CaJYYEdy.cjs +1 -0
  31. package/components/PlayerAccountGamingLimitsPage2Gm16-B1GlGvDK.cjs +21 -0
  32. package/components/PlayerAccountGamingLimitsPage2Gm16-CbtwzTC5.js +3283 -0
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-D8OKZxQt.js} +90 -90
  34. package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-B7ZXSiK5.js} +17 -17
  35. package/components/PlayerAccountGamingLimitsPopup-C9KoZcRj.cjs +1 -0
  36. package/components/PlayerAccountGamingLimitsPopup-DxXAP_Yw.js +344 -0
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BoFnZpPK.js} +8 -8
  38. package/components/PlayerAccountGamingLimitsWrapper2-Dll6Amu9.cjs +1 -0
  39. package/components/PlayerAccountGamingLimitsWrapper2-eSNYZCaw.js +866 -0
  40. package/components/PlayerAccountGeneralConfirmationModal-B-p3sJZ3.cjs +1 -0
  41. package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-DLBQH_sl.js} +66 -66
  42. package/components/PlayerAccountGeneralConfirmationModal-DhTWcbuE.js +365 -0
  43. package/components/PlayerAccountMenu-BGRoL3Yz.js +579 -0
  44. package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-BxjdHhZ_.js} +17 -17
  45. package/components/PlayerAccountMenu-Csb1tUf_.cjs +1 -0
  46. package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-C4nIa5u0.js} +28 -28
  47. package/components/PlayerAccountModal-D29fr970.js +213 -0
  48. package/components/PlayerAccountModal-DabmJiP4.cjs +1 -0
  49. package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-4sGKSJWy.js} +16 -16
  50. package/components/PlayerAccountNotifications-C3rPIsKp.js +261 -0
  51. package/components/PlayerAccountNotifications-O92_s-dm.cjs +1 -0
  52. package/components/PlayerAccountSelfExclusion-BkBWGAy2.cjs +3557 -0
  53. package/components/PlayerAccountSelfExclusion-CpKuxBrZ.js +16678 -0
  54. package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-U9dfheYH.js} +11029 -12570
  55. package/components/PlayerAccountTimeout-CucYpS_w.cjs +1 -0
  56. package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-DIRXKowJ.js} +25 -25
  57. package/components/PlayerAccountTimeout-c2osWNku.js +819 -0
  58. package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-B2QAPJxC.js} +49 -49
  59. package/components/PlayerActiveBonuses-DDcAwy_n.js +1089 -0
  60. package/components/PlayerActiveBonuses-cecVnp46.cjs +1 -0
  61. package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-BQU7JBPr.js} +50 -50
  62. package/components/PlayerBonusCard-C9Xdv-lu.cjs +1 -0
  63. package/components/PlayerBonusCard-TYI-WkBy.js +701 -0
  64. package/components/PlayerBonusHistory-Boz8c3tb.js +919 -0
  65. package/components/PlayerBonusHistory-CMPf8GQz.cjs +1 -0
  66. package/components/PlayerBonusHistory-cNqY_wfD.js +920 -0
  67. package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-BGxYGFs-.js} +103 -103
  68. package/components/PlayerChangePassword-Dl3Pgpul.js +1177 -0
  69. package/components/PlayerChangePassword-X_GfgxAV.cjs +3 -0
  70. package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-BzSW3HMj.js} +25 -25
  71. package/components/PlayerDeposit-CqpNLpaq.cjs +1 -0
  72. package/components/PlayerDeposit-kjy658sM.js +395 -0
  73. package/components/PlayerGamingHistory-B6KJDVn0.cjs +1 -0
  74. package/components/PlayerGamingHistory-BW5rigFC.js +986 -0
  75. package/components/PlayerGamingHistory-DIgLxCfL.js +973 -0
  76. package/components/PlayerPendingWithdrawals--W6Dfn3K.cjs +1 -0
  77. package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-BzOmRYiC.js} +33 -33
  78. package/components/PlayerPendingWithdrawals-pV1C12y5.js +311 -0
  79. package/components/PlayerProfileInfo-BTgis7wR.cjs +1 -0
  80. package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-CTgSfW-l.js} +45 -45
  81. package/components/PlayerProfileInfo-DkVAYiPX.js +1753 -0
  82. package/components/PlayerRealityCheck-BcsDhvm0.cjs +1 -0
  83. package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BdZDs3Tl.js} +26 -26
  84. package/components/PlayerRealityCheck-DT3kOky2.js +598 -0
  85. package/components/PlayerTransactionHistory-BL92RRLF.cjs +1 -0
  86. package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-BQIA4QRw.js} +23 -23
  87. package/components/PlayerTransactionHistory-Yhwt7kUa.js +315 -0
  88. package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-Cgv9nZE8.js} +20 -20
  89. package/components/PlayerWithdrawal-KgqM9wo-.cjs +1 -0
  90. package/components/PlayerWithdrawal-uB46JhmK.js +369 -0
  91. package/es2015/player-account-controller.cjs +1 -0
  92. package/es2015/player-account-controller.js +16 -0
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
  96. package/stencil/checkbox-group-input_9-AKw0biZc.cjs +2045 -0
  97. package/stencil/checkbox-group-input_9-BewIfW-f.js +13203 -0
  98. package/stencil/checkbox-group-input_9-CbFpcwPG.js +13237 -0
  99. package/stencil/{general-input-DnFPstQP.js → general-input-BEcUF0Mm.js} +1 -1
  100. package/stencil/general-input-DI0pw0ot.cjs +1 -0
  101. package/stencil/general-input-DKyA-W8i.js +48 -0
  102. package/stencil/index-581287aa-CC7128Vz.js +654 -0
  103. package/stencil/index-581287aa-D5QW29QV.cjs +1 -0
  104. package/stencil/index-581287aa-D8NTWa_9.js +638 -0
  105. package/stencil/index-8b4525de-BFiXEsaX.cjs +1 -0
  106. package/stencil/index-8b4525de-C2xAv-3x.js +708 -0
  107. package/stencil/index-8b4525de-DeHXGvRF.js +692 -0
  108. package/stencil/index-a76d30c7-CFX9mSqu.cjs +1 -0
  109. package/stencil/index-a76d30c7-CQrAWNu0.js +658 -0
  110. package/stencil/index-a76d30c7-PfqrSVyu.js +631 -0
  111. package/stencil/index-c0196f50-3kAjMpUS.cjs +1 -0
  112. package/stencil/index-c0196f50-BjscP7kj.js +697 -0
  113. package/stencil/index-c0196f50-aE1zPmtS.js +724 -0
  114. package/stencil/locale-B5abSHU_.cjs +1 -0
  115. package/stencil/password-input_2-D97O8QAr.cjs +105 -0
  116. package/stencil/password-input_2-eDchPH-o.js +569 -0
  117. package/stencil/password-input_2-vTvSUJey.js +569 -0
  118. package/stencil/{player-change-password-gm2-DR3e2gh5.js → player-change-password-gm2-D4jpQFwb.js} +1 -1
  119. package/stencil/player-change-password-gm2-DSTqyOhE.js +25 -0
  120. package/stencil/player-change-password-gm2-Dw3D3ckz.cjs +1 -0
  121. package/stencil/{player-change-password-gm2-98dcb7bc-gLcZhl3S.js → player-change-password-gm2-e732ee8e-BjoYj-89.js} +1 -1
  122. package/stencil/player-change-password-gm2-e732ee8e-BqRUxIre.cjs +1 -0
  123. package/stencil/player-change-password-gm2-e732ee8e-Df6ljnLL.js +253 -0
  124. package/stencil/player-kyc-verification-B2FHAsrR.cjs +180 -0
  125. package/stencil/player-kyc-verification-CVqP43FY.js +865 -0
  126. package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-D6Au6XVN.js} +1 -1
  127. package/stencil/{toggle-checkbox-input-CCLW6-uK.js → toggle-checkbox-input-BckTBwKu.js} +1 -1
  128. package/stencil/toggle-checkbox-input-D8fVk4wA.js +46 -0
  129. package/stencil/toggle-checkbox-input-kw5Y1n3x.cjs +1 -0
  130. package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
  131. package/stencil/user-deposit-withdrawal-BpAi0dc-.js +668 -0
  132. package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-CrMPR6xn.js} +1 -1
  133. package/stencil/user-deposit-withdrawal-DrKFN7wp.cjs +59 -0
  134. package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-BgYG3IxS.js} +1 -1
  135. package/stencil/user-transaction-history-CBxwJE34.cjs +1 -0
  136. package/stencil/user-transaction-history-D8ebS-DZ.js +355 -0
  137. package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → vaadin-button-mixin-d131076c-C559kyH3.js} +3523 -3021
  138. package/stencil/vaadin-button-mixin-d131076c-brSraXp5.js +10277 -0
  139. package/stencil/vaadin-button-mixin-d131076c-zI_s2YZ5.cjs +2385 -0
  140. package/components/PlayerBonusHistory-BxBiQwQf.js +0 -847
  141. package/components/PlayerGamingHistory-BtQ73TId.js +0 -922
  142. package/stencil/checkbox-group-input_9-CMFoK7_E.js +0 -15610
  143. package/stencil/index-062e829b-DAFsZs6D.js +0 -686
  144. package/stencil/index-33f005e1-fFxPaeNy.js +0 -632
  145. package/stencil/index-9b3245b3-rzHgwqlB.js +0 -625
  146. package/stencil/index-fc58390d-BSwfXuUs.js +0 -691
  147. package/stencil/password-input_2-Bb9Q6Fe0.js +0 -2359
@@ -0,0 +1,579 @@
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-CoXr5Hra.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-CoXr5Hra.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
+ };