@everymatrix/player-account-controller 1.67.0 → 1.67.3

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 (155) hide show
  1. package/components/{GeneralLogout-CgxHUYZx.js → GeneralLogout-BvHI6IRl.js} +1439 -1474
  2. package/components/{GeneralLogout-CYE3twI-.js → GeneralLogout-DC1eQria.js} +1458 -1493
  3. package/components/GeneralLogout-DweBl3EQ.cjs +21 -0
  4. package/components/{PlayerAccountBettingHistory-BXBMy618.js → PlayerAccountBettingHistory-BTEzWQvN.js} +27 -27
  5. package/components/{PlayerAccountBettingHistory-B0IsJ01N.js → PlayerAccountBettingHistory-Bo3-gODs.js} +27 -27
  6. package/components/{PlayerAccountBettingHistory-BtDZukYI.cjs → PlayerAccountBettingHistory-DgHU9Jz9.cjs} +1 -1
  7. package/components/{PlayerAccountBiometrics-DrmVF6dX.js → PlayerAccountBiometrics-DRMe1Ngk.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-CEEVheLt.cjs → PlayerAccountBiometrics-DXk7ouzk.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-CCk_4MyI.js → PlayerAccountBiometrics-eJ0NsGhR.js} +22 -22
  10. package/components/{PlayerAccountClosure-B_xwOPds.js → PlayerAccountClosure-CenyN-4X.js} +17 -17
  11. package/components/{PlayerAccountClosure-UwL_V2IO.js → PlayerAccountClosure-D4FSDBR-.js} +17 -17
  12. package/components/{PlayerAccountClosure-DoZ91aH2.cjs → PlayerAccountClosure-DMF66IyF.cjs} +1 -1
  13. package/components/PlayerAccountController-BrHDusjh.cjs +1 -0
  14. package/components/{PlayerAccountController-BiEmKUTq.js → PlayerAccountController-C88OV9t0.js} +759 -446
  15. package/components/{PlayerAccountController-Df3HJNfF.js → PlayerAccountController-D3jDQKMc.js} +760 -447
  16. package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-C5-wP3x8.cjs} +1 -1
  17. package/components/{PlayerAccountGamingLimits-BF1Dd_Yw.js → PlayerAccountGamingLimits-bgH5yldD.js} +19 -19
  18. package/components/{PlayerAccountGamingLimits-BKHRQo_P.js → PlayerAccountGamingLimits-qvefhQXf.js} +19 -19
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js → PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js} +53 -53
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js → PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js} +53 -53
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +1 -0
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-B7O4IGQB.js → PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js} +415 -413
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-DlaRG8Hg.js → PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js} +415 -413
  24. package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +1 -0
  25. package/components/{PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js → PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js} +48 -48
  26. package/components/{PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs → PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2-Br4h7_eS.js → PlayerAccountGamingLimitsHistory2-CkXX1K7L.js} +46 -46
  28. package/components/{PlayerAccountGamingLimitsInfoCard-BlMfsPqJ.js → PlayerAccountGamingLimitsInfoCard-ByqimrlU.js} +80 -80
  29. package/components/{PlayerAccountGamingLimitsInfoCard-BqsEfU1b.js → PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js} +80 -80
  30. package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-C4Cf53bH.js → PlayerAccountGamingLimitsPage2Gm16-AMitiwvP.js} +1016 -942
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-D0UaSH_1.js → PlayerAccountGamingLimitsPage2Gm16-Bjtas4Og.js} +1016 -942
  33. package/components/PlayerAccountGamingLimitsPage2Gm16-DfhEHyrV.cjs +26 -0
  34. package/components/{PlayerAccountGamingLimitsPopup-DTb6cpuT.js → PlayerAccountGamingLimitsPopup-Bhe4pnzt.js} +28 -28
  35. package/components/{PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs → PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-Dz9ROowj.js → PlayerAccountGamingLimitsPopup-LjmHojBJ.js} +28 -28
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BNIPTcA9.cjs → PlayerAccountGamingLimitsWrapper2-DUm34VGO.cjs} +1 -1
  38. package/components/{PlayerAccountGamingLimitsWrapper2-B1gV6va3.js → PlayerAccountGamingLimitsWrapper2-Db4M3i4n.js} +36 -36
  39. package/components/{PlayerAccountGamingLimitsWrapper2-BxbHvpZn.js → PlayerAccountGamingLimitsWrapper2-bXqMOFZu.js} +36 -36
  40. package/components/{PlayerAccountGeneralConfirmationModal-DQ7Oklqf.js → PlayerAccountGeneralConfirmationModal-BXvbser8.js} +95 -95
  41. package/components/{PlayerAccountGeneralConfirmationModal-lHX_vmhB.js → PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js} +95 -95
  42. package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +1 -0
  43. package/components/{PlayerAccountMenu-BZnkRiU-.cjs → PlayerAccountMenu-BZSV920e.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-D4d9TQsD.js → PlayerAccountMenu-COhw6RUO.js} +29 -29
  45. package/components/{PlayerAccountMenu-j3TA2Osb.js → PlayerAccountMenu-CXkbGum8.js} +29 -29
  46. package/components/{PlayerAccountModal-Cbpkb5P6.js → PlayerAccountModal-BlJKMVDD.js} +44 -44
  47. package/components/{PlayerAccountModal-Co5a_OZZ.js → PlayerAccountModal-C2BAyjz8.js} +44 -44
  48. package/components/{PlayerAccountModal-SsGlrcmj.cjs → PlayerAccountModal-lwDOdDa4.cjs} +1 -1
  49. package/components/{PlayerAccountNotifications-CkbUxjuk.js → PlayerAccountNotifications-Br27rQuw.js} +35 -35
  50. package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-CzMMRPni.cjs} +1 -1
  51. package/components/{PlayerAccountNotifications-f0A-2obd.js → PlayerAccountNotifications-YIzJUJtW.js} +120 -120
  52. package/components/{PlayerAccountTransactionsHistory-CRucfQT9.js → PlayerAccountProductRestriction-B77qHgnG.js} +3353 -3490
  53. package/components/{PlayerAccountTransactionsHistory-BzB7rnla.cjs → PlayerAccountProductRestriction-DWcq863g.cjs} +272 -269
  54. package/components/{PlayerAccountTransactionsHistory-D5xVdr5D.js → PlayerAccountProductRestriction-JWXFId11.js} +3329 -3465
  55. package/components/{PlayerAccountSelfExclusion-Bme3jA4c.js → PlayerAccountSelfExclusion-B-7yOGf0.js} +2482 -2793
  56. package/components/{PlayerAccountSelfExclusion-CDEu24ob.cjs → PlayerAccountSelfExclusion-DgB8NI71.cjs} +161 -161
  57. package/components/{PlayerAccountSelfExclusion-CcQBa7WB.js → PlayerAccountSelfExclusion-hvxg512S.js} +2324 -2635
  58. package/components/{PlayerAccountTimeout-9R54hZUl.js → PlayerAccountTimeout-BZa0DlXA.js} +103 -102
  59. package/components/{PlayerAccountTimeout-CpDdajvl.js → PlayerAccountTimeout-DiPXXjP_.js} +103 -102
  60. package/components/{PlayerAccountTimeout-BG_yWya9.cjs → PlayerAccountTimeout-ouzdA1ph.cjs} +1 -1
  61. package/components/PlayerAccountTransactionsHistory-DApJMGFo.js +1809 -0
  62. package/components/PlayerAccountTransactionsHistory-DrGUOnga.cjs +1 -0
  63. package/components/PlayerAccountTransactionsHistory-tOK25Lc2.js +1779 -0
  64. package/components/{PlayerActiveBonuses-uCEkihFw.js → PlayerActiveBonuses-5Q7f3yAG.js} +315 -315
  65. package/components/PlayerActiveBonuses-C7-7ACSS.cjs +1 -0
  66. package/components/{PlayerActiveBonuses-Cakyx19i.js → PlayerActiveBonuses-dQ_zgejC.js} +318 -318
  67. package/components/{PlayerBonusCard-6xOKi384.js → PlayerBonusCard-CBO8neP8.js} +54 -54
  68. package/components/{PlayerBonusCard-BNNcjGWn.cjs → PlayerBonusCard-nwlvuWsq.cjs} +1 -1
  69. package/components/{PlayerBonusCard-CXbETnCF.js → PlayerBonusCard-uudC6LGS.js} +54 -54
  70. package/components/{PlayerBonusHistory-wRNMiwgX.js → PlayerBonusHistory-CG01zuOG.js} +30 -30
  71. package/components/{PlayerBonusHistory-BQAF4bSM.js → PlayerBonusHistory-D1AxPL0k.js} +30 -30
  72. package/components/{PlayerBonusHistory-BfctVq0u.cjs → PlayerBonusHistory-DI5gRSGg.cjs} +1 -1
  73. package/components/{PlayerChangePassword-ChwKfBC6.js → PlayerChangePassword-BUbXMFnB.js} +66 -66
  74. package/components/{PlayerChangePassword-LgjKzYU1.cjs → PlayerChangePassword-D0aYOkoZ.cjs} +1 -1
  75. package/components/{PlayerChangePassword-C2ZoKuCq.js → PlayerChangePassword-D4DzBZed.js} +66 -66
  76. package/components/{PlayerDeposit-VLcz0tQH.js → PlayerDeposit-BB64hmyO.js} +29 -29
  77. package/components/{PlayerDeposit-Dzg8Ltb1.cjs → PlayerDeposit-DAFmH9HW.cjs} +1 -1
  78. package/components/{PlayerDeposit-BPZ5wCAZ.js → PlayerDeposit-lfkc7jOj.js} +29 -29
  79. package/components/{PlayerGamingHistory-Du5updfI.cjs → PlayerGamingHistory-C7HQc8KL.cjs} +1 -1
  80. package/components/{PlayerGamingHistory-lkyuXLIU.js → PlayerGamingHistory-DxA-MkBo.js} +63 -63
  81. package/components/{PlayerGamingHistory-BhmBAAFp.js → PlayerGamingHistory-NKBfYTcF.js} +63 -63
  82. package/components/{PlayerPendingWithdrawals-DeNKdUgJ.js → PlayerPendingWithdrawals-B6qiUkpB.js} +26 -26
  83. package/components/{PlayerPendingWithdrawals-BMwtFNQT.cjs → PlayerPendingWithdrawals-DbuXpIXl.cjs} +1 -1
  84. package/components/{PlayerPendingWithdrawals-go7okUzL.js → PlayerPendingWithdrawals-QAaJbf_-.js} +26 -26
  85. package/components/{PlayerProfileInfo-L9Iditu5.js → PlayerProfileInfo-Bpxnw7hG.js} +1035 -949
  86. package/components/{PlayerProfileInfo-Bs0bYgez.js → PlayerProfileInfo-C-yTxZtj.js} +993 -905
  87. package/components/PlayerProfileInfo-CQWJWCmN.cjs +4 -0
  88. package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-CFJVJn17.cjs} +1 -1
  89. package/components/{PlayerRealityCheck-DMNAglZN.js → PlayerRealityCheck-CyxiiYoi.js} +44 -44
  90. package/components/{PlayerRealityCheck-C2TUMl9-.js → PlayerRealityCheck-DQ-_y3IT.js} +45 -45
  91. package/components/{PlayerTransactionHistory-A-aVfyoc.js → PlayerTransactionHistory-6G6ws2ky.js} +19 -19
  92. package/components/{PlayerTransactionHistory-4VtQqLAc.cjs → PlayerTransactionHistory-BOtRm_b6.cjs} +1 -1
  93. package/components/{PlayerTransactionHistory-BFV_XJw9.js → PlayerTransactionHistory-BjRhtwD4.js} +19 -19
  94. package/components/{PlayerWithdrawal-B_wQZI_t.js → PlayerWithdrawal-BIBZrL0i.js} +19 -19
  95. package/components/{PlayerWithdrawal-CTttZqLr.js → PlayerWithdrawal-CuR6Pb4o.js} +19 -19
  96. package/components/{PlayerWithdrawal-BMLgaRLc.cjs → PlayerWithdrawal-OBRjEIH9.cjs} +1 -1
  97. package/es2015/player-account-controller.cjs +1 -1
  98. package/es2015/player-account-controller.js +1 -1
  99. package/esnext/player-account-controller.js +1 -1
  100. package/package.json +1 -1
  101. package/stencil/{checkbox-group-input_14-CNR6zkvw.cjs → checkbox-group-input_14-BQWBhbsW.cjs} +263 -263
  102. package/stencil/{checkbox-group-input_14-CJHYJs5Y.js → checkbox-group-input_14-Rk4kY_Jo.js} +3258 -3258
  103. package/stencil/{checkbox-group-input_14-BcBdDpf8.js → checkbox-group-input_14-yDxYy7hE.js} +3255 -3255
  104. package/stencil/index-13661b98-Pl0EtfMi.cjs +1 -0
  105. package/stencil/{index-13661b98-Bg3nkDqk.js → index-13661b98-l0CINbAR.js} +207 -207
  106. package/stencil/{index-13661b98-DcT9swce.js → index-13661b98-mRWmP463.js} +215 -215
  107. package/stencil/{index-1ef3a64c-DsTe-fF4.js → index-1ef3a64c-B1Hda3TY.js} +185 -185
  108. package/stencil/index-1ef3a64c-CCWt3IAA.cjs +1 -0
  109. package/stencil/{index-1ef3a64c-BNosNJnU.js → index-1ef3a64c-Dd-0nq4l.js} +192 -192
  110. package/stencil/index-7c5e707a-8-4_dLFT.js +643 -0
  111. package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-CuTkyLaW.js} +209 -209
  112. package/stencil/index-7c5e707a-nBsW029h.cjs +1 -0
  113. package/stencil/index-9c0f6c58-DbSOntvG.cjs +1 -0
  114. package/stencil/{index-9c0f6c58-bxjYqwOi.js → index-9c0f6c58-NlVKpLut.js} +180 -180
  115. package/stencil/{index-9c0f6c58-BB5opCt9.js → index-9c0f6c58-RPoO1End.js} +176 -176
  116. package/stencil/index-b2193545-BXNomIzV.js +519 -0
  117. package/stencil/index-b2193545-CYe2oVMy.js +503 -0
  118. package/stencil/index-b2193545-DxRobzZI.cjs +1 -0
  119. package/stencil/{pam-change-password-uD3esedo.cjs → pam-change-password-CCgx2ZAF.cjs} +1 -1
  120. package/stencil/{pam-change-password-sLrzK4Qt.js → pam-change-password-CDNRmQRk.js} +1 -1
  121. package/stencil/{pam-change-password-YhGkcb7G.js → pam-change-password-CThYR6vj.js} +1 -1
  122. package/stencil/{pam-change-password-f4a1e7e7-e1XqJgP9.js → pam-change-password-f4a1e7e7-B0x-tDUM.js} +1 -1
  123. package/stencil/{pam-change-password-f4a1e7e7-DtMPJ715.cjs → pam-change-password-f4a1e7e7-B3Gc4JmD.cjs} +1 -1
  124. package/stencil/{pam-change-password-f4a1e7e7-CfVbvq6Y.js → pam-change-password-f4a1e7e7-DegbNPpZ.js} +1 -1
  125. package/stencil/{player-kyc-verification-CMAkNiAB.js → player-kyc-verification-Cxnz1raa.js} +9 -9
  126. package/stencil/{player-kyc-verification-p2WFnKBp.js → player-kyc-verification-DA_O1Dqu.js} +12 -12
  127. package/stencil/{player-kyc-verification-DYcPWwfi.cjs → player-kyc-verification-qKWuqiUm.cjs} +2 -2
  128. package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-1cb75d00-CZJ4UoDJ.js} +1 -1
  129. package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-1cb75d00-D5Bub0nv.js} +1 -1
  130. package/stencil/{ui-skeleton-1cb75d00-Batko5iK.cjs → ui-skeleton-1cb75d00-dFWe5qbW.cjs} +1 -1
  131. package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-BH5oLkn9.cjs} +1 -1
  132. package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-CZ5yC1WO.js} +2 -2
  133. package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-vLKdvRqw.js} +2 -2
  134. package/stencil/{user-deposit-withdrawal-Dzz_fEvK.js → user-deposit-withdrawal-BMWb-WJE.js} +45 -45
  135. package/stencil/{user-deposit-withdrawal-C7W58646.js → user-deposit-withdrawal-ByE9O4TW.js} +45 -45
  136. package/stencil/{user-deposit-withdrawal-Dfu_1g2v.cjs → user-deposit-withdrawal-DGTrOlxS.cjs} +2 -2
  137. package/stencil/{user-transaction-history-DhQ6RqNc.js → user-transaction-history-BU4-cXt6.js} +11 -11
  138. package/stencil/{user-transaction-history-BAK7MHHa.js → user-transaction-history-CXBKXul8.js} +14 -14
  139. package/stencil/{user-transaction-history-DiRXpfbN.cjs → user-transaction-history-DLLIZ5Ck.cjs} +1 -1
  140. package/components/GeneralLogout-Dzu2Sl-x.cjs +0 -21
  141. package/components/PlayerAccountController-DET7Ledm.cjs +0 -1
  142. package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +0 -1
  143. package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
  144. package/components/PlayerAccountGamingLimitsPage2Gm16-isbaVllo.cjs +0 -24
  145. package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
  146. package/components/PlayerActiveBonuses-CVhSMdRf.cjs +0 -1
  147. package/components/PlayerProfileInfo-DjZCa7C6.cjs +0 -4
  148. package/stencil/index-13661b98-D16qyHKo.cjs +0 -1
  149. package/stencil/index-1ef3a64c-CFvPR_NP.cjs +0 -1
  150. package/stencil/index-7c5e707a-DvxqcEpc.js +0 -643
  151. package/stencil/index-7c5e707a-ESX_oqGB.cjs +0 -1
  152. package/stencil/index-9c0f6c58-DmOKHEVq.cjs +0 -1
  153. package/stencil/index-b2193545-CnMZ4-Ff.js +0 -519
  154. package/stencil/index-b2193545-Ct5AhxM8.cjs +0 -1
  155. package/stencil/index-b2193545-DePry399.js +0 -503
@@ -1,4 +1,4 @@
1
- import { a as H, $ as J, S as K, i as Q, s as V, f as v, b as X, H as Y, d as j, r as Z, I as $, J as ee, K as te, L as ne, M as oe, c as S, g as L, h as m, l as O, j as _, k as z, m as E, o as l, p as ie, q as re, u as ae, n as le, v as W, w as se, x as ce, y as me, z as fe, A as de, B as ue } from "./GeneralLogout-CYE3twI-.js";
1
+ import { a as H, $ as J, S as K, i as Q, f as x, c as V, s as X, b as Y, H as Z, e as w, d as z, t as S, g as l, k as j, l as m, m as O, I as $, J as ee, K as te, n as E, L as ne, M as oe, p as L, r as re, q as ie, u as ae, v as le, x as se, y as ce, z as me, A as de, w as W, o as fe, B as ue } from "./GeneralLogout-BvHI6IRl.js";
2
2
  function N(n, e) {
3
3
  H(n, e);
4
4
  }
@@ -52,7 +52,7 @@ const P = {
52
52
  }
53
53
  };
54
54
  function be(n) {
55
- X(n, "svelte-s0xip8", '*,*::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}');
55
+ Y(n, "svelte-s0xip8", '*,*::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) {
@@ -61,37 +61,37 @@ function Ce(n) {
61
61
  c() {
62
62
  e = W("svg"), t = W("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(r, s) {
65
- L(r, e, s), m(e, t);
64
+ m(i, s) {
65
+ j(i, e, s), m(e, t);
66
66
  },
67
- p: le,
68
- d(r) {
69
- r && j(e);
67
+ p: fe,
68
+ d(i) {
69
+ i && L(e);
70
70
  }
71
71
  };
72
72
  }
73
73
  function I(n) {
74
- let e, t, r;
74
+ let e, t, i;
75
75
  return {
76
76
  c() {
77
- e = _("div"), t = _("h2"), r = E(
77
+ e = w("div"), t = w("h2"), i = S(
78
78
  /*modaltitle*/
79
79
  n[1]
80
80
  ), l(e, "class", "GeneralConfirmationTitle");
81
81
  },
82
- m(s, d) {
83
- L(s, e, d), m(e, t), m(t, r);
82
+ m(s, f) {
83
+ j(s, e, f), m(e, t), m(t, i);
84
84
  },
85
- p(s, d) {
86
- d & /*modaltitle*/
87
- 2 && S(
88
- r,
85
+ p(s, f) {
86
+ f & /*modaltitle*/
87
+ 2 && E(
88
+ i,
89
89
  /*modaltitle*/
90
90
  s[1]
91
91
  );
92
92
  },
93
93
  d(s) {
94
- s && j(e);
94
+ s && L(e);
95
95
  }
96
96
  };
97
97
  }
@@ -99,44 +99,44 @@ function R(n) {
99
99
  let e, t = (
100
100
  /*$_*/
101
101
  n[4]("cancel") + ""
102
- ), r, s, d;
102
+ ), i, s, f;
103
103
  return {
104
104
  c() {
105
- e = _("button"), r = E(t), l(e, "class", "GeneralCancelButton");
105
+ e = w("button"), i = S(t), l(e, "class", "GeneralCancelButton");
106
106
  },
107
- m(f, C) {
108
- L(f, e, C), m(e, r), s || (d = O(
107
+ m(d, h) {
108
+ j(d, e, h), m(e, i), s || (f = O(
109
109
  e,
110
110
  "click",
111
111
  /*click_handler*/
112
112
  n[17]
113
113
  ), s = !0);
114
114
  },
115
- p(f, C) {
116
- C & /*$_*/
115
+ p(d, h) {
116
+ h & /*$_*/
117
117
  16 && t !== (t = /*$_*/
118
- f[4]("cancel") + "") && S(r, t);
118
+ d[4]("cancel") + "") && E(i, t);
119
119
  },
120
- d(f) {
121
- f && j(e), s = !1, d();
120
+ d(d) {
121
+ d && L(e), s = !1, f();
122
122
  }
123
123
  };
124
124
  }
125
125
  function pe(n) {
126
- let e, t, r, s, d, f, C, A, g, y, p, w = (
126
+ let e, t, i, s, f, d, h, A, g, _, C, v = (
127
127
  /*$_*/
128
128
  n[4]("confirm") + ""
129
- ), k, u, G, b;
129
+ ), y, u, k, b;
130
130
  const F = (
131
131
  /*#slots*/
132
132
  n[16].close
133
- ), M = Y(
133
+ ), M = Z(
134
134
  F,
135
135
  n,
136
136
  /*$$scope*/
137
137
  n[15],
138
138
  q
139
- ), h = M || Ce();
139
+ ), G = M || Ce();
140
140
  let a = (
141
141
  /*modaltitle*/
142
142
  n[1] && I(n)
@@ -146,79 +146,79 @@ function pe(n) {
146
146
  );
147
147
  return {
148
148
  c() {
149
- e = _("div"), t = _("div"), r = _("span"), h && h.c(), s = z(), a && a.c(), d = z(), f = _("div"), C = E(
149
+ e = w("div"), t = w("div"), i = w("span"), G.c(), s = z(), a && a.c(), f = z(), d = w("div"), h = S(
150
150
  /*modaltext*/
151
151
  n[0]
152
- ), A = z(), g = _("div"), c && c.c(), y = z(), p = _("button"), k = E(w), l(r, "class", "ModalCloseBtn"), l(r, "role", "button"), l(f, "class", "GeneralConfirmationContent"), l(p, "class", "GeneralConfirmButton"), l(g, "class", "GeneralConfirmationControlArea " + /*isMobile*/
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*/
153
153
  (n[5] ? "GeneralConfirmationControlAreaMobile" : "")), l(t, "class", "GeneralConfirmationContainer " + /*isMobile*/
154
154
  (n[5] ? "GeneralConfirmationContainerMobile" : "")), l(e, "class", "GeneralConfirmationWrapper " + /*isMobile*/
155
155
  (n[5] ? "GeneralConfirmationMobileWrapper" : ""));
156
156
  },
157
- m(i, x) {
158
- L(i, e, x), m(e, t), m(t, r), h && h.m(r, null), m(t, s), a && a.m(t, null), m(t, d), m(t, f), m(f, C), m(t, A), m(t, g), c && c.m(g, null), m(g, y), m(g, p), m(p, k), n[19](e), u = !0, G || (b = [
157
+ m(r, p) {
158
+ j(r, e, p), m(e, t), m(t, i), G.m(i, null), m(t, s), a && a.m(t, null), m(t, f), m(t, d), m(d, h), m(t, A), m(t, g), c && c.m(g, null), m(g, _), m(g, C), m(C, y), n[19](e), u = !0, k || (b = [
159
159
  O(
160
- r,
160
+ i,
161
161
  "click",
162
162
  /*close*/
163
163
  n[6]
164
164
  ),
165
165
  O(
166
- p,
166
+ C,
167
167
  "click",
168
168
  /*click_handler_1*/
169
169
  n[18]
170
170
  )
171
- ], G = !0);
171
+ ], k = !0);
172
172
  },
173
- p(i, [x]) {
174
- M && M.p && (!u || x & /*$$scope*/
175
- 32768) && te(
173
+ p(r, [p]) {
174
+ M && M.p && (!u || p & /*$$scope*/
175
+ 32768) && $(
176
176
  M,
177
177
  F,
178
- i,
178
+ r,
179
179
  /*$$scope*/
180
- i[15],
181
- u ? oe(
180
+ r[15],
181
+ u ? te(
182
182
  F,
183
183
  /*$$scope*/
184
- i[15],
185
- x,
184
+ r[15],
185
+ p,
186
186
  he
187
- ) : ne(
187
+ ) : ee(
188
188
  /*$$scope*/
189
- i[15]
189
+ r[15]
190
190
  ),
191
191
  q
192
192
  ), /*modaltitle*/
193
- i[1] ? a ? a.p(i, x) : (a = I(i), a.c(), a.m(t, d)) : a && (a.d(1), a = null), (!u || x & /*modaltext*/
194
- 1) && S(
195
- C,
193
+ r[1] ? a ? a.p(r, p) : (a = I(r), a.c(), a.m(t, f)) : a && (a.d(1), a = null), (!u || p & /*modaltext*/
194
+ 1) && E(
195
+ h,
196
196
  /*modaltext*/
197
- i[0]
197
+ r[0]
198
198
  ), /*hascancelbutton*/
199
- i[2] ? c ? c.p(i, x) : (c = R(i), c.c(), c.m(g, y)) : c && (c.d(1), c = null), (!u || x & /*$_*/
200
- 16) && w !== (w = /*$_*/
201
- i[4]("confirm") + "") && S(k, w);
199
+ r[2] ? c ? c.p(r, p) : (c = R(r), c.c(), c.m(g, _)) : c && (c.d(1), c = null), (!u || p & /*$_*/
200
+ 16) && v !== (v = /*$_*/
201
+ r[4]("confirm") + "") && E(y, v);
202
202
  },
203
- i(i) {
204
- u || (ee(h, i), u = !0);
203
+ i(r) {
204
+ u || (ne(G, r), u = !0);
205
205
  },
206
- o(i) {
207
- $(h, i), u = !1;
206
+ o(r) {
207
+ oe(G, r), u = !1;
208
208
  },
209
- d(i) {
210
- i && j(e), h && h.d(i), a && a.d(), c && c.d(), n[19](null), G = !1, Z(b);
209
+ d(r) {
210
+ r && L(e), G.d(r), a && a.d(), c && c.d(), n[19](null), k = !1, re(b);
211
211
  }
212
212
  };
213
213
  }
214
214
  function xe(n, e, t) {
215
- let r;
216
- ie(n, ue, (o) => t(4, r = o));
217
- let { $$slots: s = {}, $$scope: d } = e, { modaltext: f = "Are you sure that you want to perform this action?" } = e, { modaltitle: C = "" } = e, { hascancelbutton: A = !1 } = e, { modalconfirmevent: g = {} } = e, { modalcancelevent: y = {} } = e, { lang: p = "en" } = e, { clientstyling: w = "" } = e, { clientstylingurl: k = "" } = e, { translationurl: u = "" } = e, { mbsource: G } = e, b, F = window.navigator.userAgent, M = re(F) !== "PC";
218
- const h = () => {
215
+ let i;
216
+ ie(n, ue, (o) => t(4, i = o));
217
+ let { $$slots: s = {}, $$scope: f } = e, { modaltext: d = "Are you sure that you want to perform this action?" } = e, { modaltitle: h = "" } = e, { hascancelbutton: A = !1 } = e, { modalconfirmevent: g = {} } = e, { modalcancelevent: _ = {} } = e, { lang: C = "en" } = e, { clientstyling: v = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: u = "" } = e, { mbsource: k } = e, b, F = window.navigator.userAgent, M = ae(F) !== "PC";
218
+ const G = () => {
219
219
  window.postMessage({ type: "ModalClosed" }, window.location.href);
220
220
  }, a = (o) => {
221
- o === "confirm" && g && window.postMessage(g, window.location.href), o === "cancel" && y && window.postMessage(y, window.location.href), h();
221
+ o === "confirm" && g && window.postMessage(g, window.location.href), o === "cancel" && _ && window.postMessage(_, window.location.href), G();
222
222
  }, c = () => {
223
223
  fetch(u).then((B) => B.json()).then((B) => {
224
224
  Object.keys(B).forEach((T) => {
@@ -231,45 +231,45 @@ function xe(n, e, t) {
231
231
  Object.keys(P).forEach((o) => {
232
232
  N(o, P[o]);
233
233
  });
234
- const i = () => {
235
- ge(p);
234
+ const r = () => {
235
+ ge(C);
236
236
  };
237
- ae(() => () => {
237
+ le(() => () => {
238
238
  });
239
- const x = () => a("cancel"), U = () => a("confirm");
239
+ const p = () => a("cancel"), U = () => a("confirm");
240
240
  function D(o) {
241
241
  se[o ? "unshift" : "push"](() => {
242
242
  b = o, t(3, b);
243
243
  });
244
244
  }
245
245
  return n.$$set = (o) => {
246
- "modaltext" in o && t(0, f = o.modaltext), "modaltitle" in o && t(1, C = o.modaltitle), "hascancelbutton" in o && t(2, A = o.hascancelbutton), "modalconfirmevent" in o && t(8, g = o.modalconfirmevent), "modalcancelevent" in o && t(9, y = o.modalcancelevent), "lang" in o && t(10, p = o.lang), "clientstyling" in o && t(11, w = o.clientstyling), "clientstylingurl" in o && t(12, k = o.clientstylingurl), "translationurl" in o && t(13, u = o.translationurl), "mbsource" in o && t(14, G = o.mbsource), "$$scope" in o && t(15, d = o.$$scope);
246
+ "modaltext" in o && t(0, d = o.modaltext), "modaltitle" in o && t(1, h = o.modaltitle), "hascancelbutton" in o && t(2, A = o.hascancelbutton), "modalconfirmevent" in o && t(8, g = o.modalconfirmevent), "modalcancelevent" in o && t(9, _ = o.modalcancelevent), "lang" in o && t(10, C = o.lang), "clientstyling" in o && t(11, v = o.clientstyling), "clientstylingurl" in o && t(12, y = o.clientstylingurl), "translationurl" in o && t(13, u = o.translationurl), "mbsource" in o && t(14, k = o.mbsource), "$$scope" in o && t(15, f = o.$$scope);
247
247
  }, n.$$.update = () => {
248
248
  n.$$.dirty & /*modaltext, lang*/
249
- 1025 && f && p && i(), n.$$.dirty & /*clientstyling, customStylingContainer*/
250
- 2056 && w && b && ce(b, w), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
251
- 4104 && k && b && me(b, k), n.$$.dirty & /*mbsource, customStylingContainer*/
252
- 16392 && G && b && fe(b, `${G}.Style`), n.$$.dirty & /*translationurl*/
249
+ 1025 && d && C && r(), n.$$.dirty & /*clientstyling, customStylingContainer*/
250
+ 2056 && v && b && ce(b, v), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
251
+ 4104 && y && b && me(b, y), n.$$.dirty & /*mbsource, customStylingContainer*/
252
+ 16392 && k && b && de(b, `${k}.Style`), n.$$.dirty & /*translationurl*/
253
253
  8192 && u && c();
254
254
  }, [
255
- f,
256
- C,
255
+ d,
256
+ h,
257
257
  A,
258
258
  b,
259
- r,
259
+ i,
260
260
  M,
261
- h,
261
+ G,
262
262
  a,
263
263
  g,
264
+ _,
265
+ C,
266
+ v,
264
267
  y,
265
- p,
266
- w,
267
- k,
268
268
  u,
269
- G,
270
- d,
269
+ k,
270
+ f,
271
271
  s,
272
- x,
272
+ p,
273
273
  U,
274
274
  D
275
275
  ];
@@ -281,7 +281,7 @@ class ve extends K {
281
281
  e,
282
282
  xe,
283
283
  pe,
284
- V,
284
+ X,
285
285
  {
286
286
  modaltext: 0,
287
287
  modaltitle: 1,
@@ -301,64 +301,64 @@ class ve extends K {
301
301
  return this.$$.ctx[0];
302
302
  }
303
303
  set modaltext(e) {
304
- this.$$set({ modaltext: e }), v();
304
+ this.$$set({ modaltext: e }), x();
305
305
  }
306
306
  get modaltitle() {
307
307
  return this.$$.ctx[1];
308
308
  }
309
309
  set modaltitle(e) {
310
- this.$$set({ modaltitle: e }), v();
310
+ this.$$set({ modaltitle: e }), x();
311
311
  }
312
312
  get hascancelbutton() {
313
313
  return this.$$.ctx[2];
314
314
  }
315
315
  set hascancelbutton(e) {
316
- this.$$set({ hascancelbutton: e }), v();
316
+ this.$$set({ hascancelbutton: e }), x();
317
317
  }
318
318
  get modalconfirmevent() {
319
319
  return this.$$.ctx[8];
320
320
  }
321
321
  set modalconfirmevent(e) {
322
- this.$$set({ modalconfirmevent: e }), v();
322
+ this.$$set({ modalconfirmevent: e }), x();
323
323
  }
324
324
  get modalcancelevent() {
325
325
  return this.$$.ctx[9];
326
326
  }
327
327
  set modalcancelevent(e) {
328
- this.$$set({ modalcancelevent: e }), v();
328
+ this.$$set({ modalcancelevent: e }), x();
329
329
  }
330
330
  get lang() {
331
331
  return this.$$.ctx[10];
332
332
  }
333
333
  set lang(e) {
334
- this.$$set({ lang: e }), v();
334
+ this.$$set({ lang: e }), x();
335
335
  }
336
336
  get clientstyling() {
337
337
  return this.$$.ctx[11];
338
338
  }
339
339
  set clientstyling(e) {
340
- this.$$set({ clientstyling: e }), v();
340
+ this.$$set({ clientstyling: e }), x();
341
341
  }
342
342
  get clientstylingurl() {
343
343
  return this.$$.ctx[12];
344
344
  }
345
345
  set clientstylingurl(e) {
346
- this.$$set({ clientstylingurl: e }), v();
346
+ this.$$set({ clientstylingurl: e }), x();
347
347
  }
348
348
  get translationurl() {
349
349
  return this.$$.ctx[13];
350
350
  }
351
351
  set translationurl(e) {
352
- this.$$set({ translationurl: e }), v();
352
+ this.$$set({ translationurl: e }), x();
353
353
  }
354
354
  get mbsource() {
355
355
  return this.$$.ctx[14];
356
356
  }
357
357
  set mbsource(e) {
358
- this.$$set({ mbsource: e }), v();
358
+ this.$$set({ mbsource: e }), x();
359
359
  }
360
360
  }
361
- de(ve, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
361
+ V(ve, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
362
362
  export {
363
363
  ve as default
364
364
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DweBl3EQ.cjs");function A(o,t){e.addMessages(o,t)}function T(o){e.$locale.set(o)}const F={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"},tr:{cancel:"İptal etmek",confirm:"Onaylamak"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function P(o){e.append_styles(o,"svelte-s0xip8",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}')}const W=o=>({}),z=o=>({});function N(o){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("path"),e.attr(n,"stroke-linecap","round"),e.attr(n,"stroke-linejoin","round"),e.attr(n,"stroke-width","2"),e.attr(n,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(a,s){e.insert(a,t,s),e.append(t,n)},p:e.noop,d(a){a&&e.detach(t)}}}function S(o){let t,n,a;return{c(){t=e.element("div"),n=e.element("h2"),a=e.text(o[1]),e.attr(t,"class","GeneralConfirmationTitle")},m(s,m){e.insert(s,t,m),e.append(t,n),e.append(n,a)},p(s,m){m&2&&e.set_data(a,s[1])},d(s){s&&e.detach(t)}}}function E(o){let t,n=o[4]("cancel")+"",a,s,m;return{c(){t=e.element("button"),a=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(d,b){e.insert(d,t,b),e.append(t,a),s||(m=e.listen(t,"click",o[17]),s=!0)},p(d,b){b&16&&n!==(n=d[4]("cancel")+"")&&e.set_data(a,n)},d(d){d&&e.detach(t),s=!1,m()}}}function q(o){let t,n,a,s,m,d,b,G,u,x,h,C=o[4]("confirm")+"",_,f,v,g;const M=o[16].close,y=e.create_slot(M,o,o[15],z),w=y||N();let i=o[1]&&S(o),c=o[2]&&E(o);return{c(){t=e.element("div"),n=e.element("div"),a=e.element("span"),w.c(),s=e.space(),i&&i.c(),m=e.space(),d=e.element("div"),b=e.text(o[0]),G=e.space(),u=e.element("div"),c&&c.c(),x=e.space(),h=e.element("button"),_=e.text(C),e.attr(a,"class","ModalCloseBtn"),e.attr(a,"role","button"),e.attr(d,"class","GeneralConfirmationContent"),e.attr(h,"class","GeneralConfirmButton"),e.attr(u,"class","GeneralConfirmationControlArea "+(o[5]?"GeneralConfirmationControlAreaMobile":"")),e.attr(n,"class","GeneralConfirmationContainer "+(o[5]?"GeneralConfirmationContainerMobile":"")),e.attr(t,"class","GeneralConfirmationWrapper "+(o[5]?"GeneralConfirmationMobileWrapper":""))},m(l,p){e.insert(l,t,p),e.append(t,n),e.append(n,a),w.m(a,null),e.append(n,s),i&&i.m(n,null),e.append(n,m),e.append(n,d),e.append(d,b),e.append(n,G),e.append(n,u),c&&c.m(u,null),e.append(u,x),e.append(u,h),e.append(h,_),o[19](t),f=!0,v||(g=[e.listen(a,"click",o[6]),e.listen(h,"click",o[18])],v=!0)},p(l,[p]){y&&y.p&&(!f||p&32768)&&e.update_slot_base(y,M,l,l[15],f?e.get_slot_changes(M,l[15],p,W):e.get_all_dirty_from_scope(l[15]),z),l[1]?i?i.p(l,p):(i=S(l),i.c(),i.m(n,m)):i&&(i.d(1),i=null),(!f||p&1)&&e.set_data(b,l[0]),l[2]?c?c.p(l,p):(c=E(l),c.c(),c.m(u,x)):c&&(c.d(1),c=null),(!f||p&16)&&C!==(C=l[4]("confirm")+"")&&e.set_data(_,C)},i(l){f||(e.transition_in(w,l),f=!0)},o(l){e.transition_out(w,l),f=!1},d(l){l&&e.detach(t),w.d(l),i&&i.d(),c&&c.d(),o[19](null),v=!1,e.run_all(g)}}}function R(o,t,n){let a;e.component_subscribe(o,e.$format,r=>n(4,a=r));let{$$slots:s={},$$scope:m}=t,{modaltext:d="Are you sure that you want to perform this action?"}=t,{modaltitle:b=""}=t,{hascancelbutton:G=!1}=t,{modalconfirmevent:u={}}=t,{modalcancelevent:x={}}=t,{lang:h="en"}=t,{clientstyling:C=""}=t,{clientstylingurl:_=""}=t,{translationurl:f=""}=t,{mbsource:v}=t,g,M=window.navigator.userAgent,y=e.getDevice(M)!=="PC";const w=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},i=r=>{r==="confirm"&&u&&window.postMessage(u,window.location.href),r==="cancel"&&x&&window.postMessage(x,window.location.href),w()},c=()=>{fetch(f).then(k=>k.json()).then(k=>{Object.keys(k).forEach(B=>{A(B,k[B])})}).catch(k=>{console.log(k)})};Object.keys(F).forEach(r=>{A(r,F[r])});const l=()=>{T(h)};e.onMount(()=>()=>{});const p=()=>i("cancel"),L=()=>i("confirm");function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(3,g)})}return o.$$set=r=>{"modaltext"in r&&n(0,d=r.modaltext),"modaltitle"in r&&n(1,b=r.modaltitle),"hascancelbutton"in r&&n(2,G=r.hascancelbutton),"modalconfirmevent"in r&&n(8,u=r.modalconfirmevent),"modalcancelevent"in r&&n(9,x=r.modalcancelevent),"lang"in r&&n(10,h=r.lang),"clientstyling"in r&&n(11,C=r.clientstyling),"clientstylingurl"in r&&n(12,_=r.clientstylingurl),"translationurl"in r&&n(13,f=r.translationurl),"mbsource"in r&&n(14,v=r.mbsource),"$$scope"in r&&n(15,m=r.$$scope)},o.$$.update=()=>{o.$$.dirty&1025&&d&&h&&l(),o.$$.dirty&2056&&C&&g&&e.setClientStyling(g,C),o.$$.dirty&4104&&_&&g&&e.setClientStylingURL(g,_),o.$$.dirty&16392&&v&&g&&e.setStreamStyling(g,`${v}.Style`),o.$$.dirty&8192&&f&&c()},[d,b,G,g,a,y,w,i,u,x,h,C,_,f,v,m,s,p,L,O]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,R,q,e.safe_not_equal,{modaltext:0,modaltitle:1,hascancelbutton:2,modalconfirmevent:8,modalcancelevent:9,lang:10,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14},P)}get modaltext(){return this.$$.ctx[0]}set modaltext(t){this.$$set({modaltext:t}),e.flush()}get modaltitle(){return this.$$.ctx[1]}set modaltitle(t){this.$$set({modaltitle:t}),e.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(t){this.$$set({hascancelbutton:t}),e.flush()}get modalconfirmevent(){return this.$$.ctx[8]}set modalconfirmevent(t){this.$$set({modalconfirmevent:t}),e.flush()}get modalcancelevent(){return this.$$.ctx[9]}set modalcancelevent(t){this.$$set({modalcancelevent:t}),e.flush()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(j,{modaltext:{},modaltitle:{},hascancelbutton:{type:"Boolean"},modalconfirmevent:{},modalcancelevent:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},["close"],[],!0);exports.default=j;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-Dzu2Sl-x.cjs");require("../stencil/ui-skeleton-t0bb1jH7.cjs");function 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;
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;