@everymatrix/player-account-controller 1.55.0 → 1.56.1

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 (237) hide show
  1. package/components/GeneralLogout-BJr23vYk.cjs +8 -0
  2. package/components/GeneralLogout-BVJrgB3o.js +4819 -0
  3. package/components/GeneralLogout-BsU4ASHU.js +4856 -0
  4. package/components/GeneralLogout-CBaU48IH.js +4858 -0
  5. package/components/GeneralLogout-CtNZ2rvU.js +4821 -0
  6. package/components/GeneralLogout-DMKG3DPv.cjs +8 -0
  7. package/components/PlayerAccountBettingHistory-B5BniV4g.cjs +1 -0
  8. package/components/PlayerAccountBettingHistory-Bb3AMzX8.js +329 -0
  9. package/components/PlayerAccountBettingHistory-Bmd5vUtv.js +329 -0
  10. package/components/PlayerAccountBettingHistory-Bq4NWDqV.js +328 -0
  11. package/components/PlayerAccountBettingHistory-DNqJtC6N.js +328 -0
  12. package/components/PlayerAccountBettingHistory-o_QsnHUF.cjs +1 -0
  13. package/components/PlayerAccountBiometrics-9jkq0tvf.js +306 -0
  14. package/components/PlayerAccountBiometrics-AVQKN7o3.cjs +1 -0
  15. package/components/PlayerAccountBiometrics-CsN8vgVA.js +306 -0
  16. package/components/PlayerAccountBiometrics-Dg73RCT9.cjs +1 -0
  17. package/components/PlayerAccountBiometrics-DlroL56t.js +306 -0
  18. package/components/PlayerAccountBiometrics-Gd9NVjdX.js +306 -0
  19. package/components/PlayerAccountClosure-BJqYBJtn.js +346 -0
  20. package/components/PlayerAccountClosure-Bq8aSkiW.js +346 -0
  21. package/components/PlayerAccountClosure-DKliqI6n.js +346 -0
  22. package/components/PlayerAccountClosure-DMjXua4S.js +346 -0
  23. package/components/PlayerAccountClosure-DnkzjHvI.cjs +1 -0
  24. package/components/PlayerAccountClosure-MKEqjDLD.cjs +1 -0
  25. package/components/PlayerAccountController-4gBny5Rp.js +7209 -0
  26. package/components/PlayerAccountController-BJB0Tl_L.cjs +1 -0
  27. package/components/PlayerAccountController-BpyAtpJE.cjs +1 -0
  28. package/components/PlayerAccountController-C_emVJuv.js +7209 -0
  29. package/components/PlayerAccountController-CnAQbK4J.cjs +1 -0
  30. package/components/PlayerAccountController-DEbBohhW.js +7192 -0
  31. package/components/PlayerAccountController-DjbCb6IF.js +7209 -0
  32. package/components/PlayerAccountController-Mp8kU2tC.js +7192 -0
  33. package/components/PlayerAccountController-uMgaSyVI.js +7192 -0
  34. package/components/PlayerAccountGamingLimits-B5ZobNN6.js +817 -0
  35. package/components/PlayerAccountGamingLimits-BJcdfjxs.cjs +1 -0
  36. package/components/PlayerAccountGamingLimits-BqZOV7ER.js +817 -0
  37. package/components/PlayerAccountGamingLimits-BqtQWVJY.js +817 -0
  38. package/components/PlayerAccountGamingLimits-CEJOtmtT.js +817 -0
  39. package/components/PlayerAccountGamingLimits-CSy-XeyP.cjs +1 -0
  40. package/components/PlayerAccountGamingLimitsConfirmationModal-BGzrS313.js +306 -0
  41. package/components/PlayerAccountGamingLimitsConfirmationModal-BkfdzG8y.cjs +1 -0
  42. package/components/PlayerAccountGamingLimitsConfirmationModal-D4OvRvHS.js +306 -0
  43. package/components/PlayerAccountGamingLimitsConfirmationModal-DYzB3j6L.js +306 -0
  44. package/components/PlayerAccountGamingLimitsConfirmationModal-DhhlnYgg.cjs +1 -0
  45. package/components/PlayerAccountGamingLimitsConfirmationModal-ffEfhpF7.js +306 -0
  46. package/components/PlayerAccountGamingLimitsGroupEdit-CdEnus68.js +4166 -0
  47. package/components/PlayerAccountGamingLimitsGroupEdit-Cer2-m_x.js +4166 -0
  48. package/components/PlayerAccountGamingLimitsGroupEdit-DMt5E3K-.js +4166 -0
  49. package/components/PlayerAccountGamingLimitsGroupEdit-DUdaJ7Kq.js +4166 -0
  50. package/components/PlayerAccountGamingLimitsGroupEdit-DZ70sSBt.cjs +10 -0
  51. package/components/PlayerAccountGamingLimitsGroupEdit-Yjf_2udY.cjs +10 -0
  52. package/components/PlayerAccountGamingLimitsHistory2-BFqWdMn-.js +748 -0
  53. package/components/PlayerAccountGamingLimitsHistory2-CCJMGIcX.cjs +1 -0
  54. package/components/PlayerAccountGamingLimitsHistory2-CGy6w5_0.js +748 -0
  55. package/components/PlayerAccountGamingLimitsHistory2-ClU7aHVz.cjs +1 -0
  56. package/components/PlayerAccountGamingLimitsHistory2-PeeGekce.js +759 -0
  57. package/components/PlayerAccountGamingLimitsHistory2-j00bAoG0.js +759 -0
  58. package/components/PlayerAccountGamingLimitsInfoCard-C0h1smBV.cjs +1 -0
  59. package/components/PlayerAccountGamingLimitsInfoCard-C5Uyy4hS.js +1564 -0
  60. package/components/PlayerAccountGamingLimitsInfoCard-CV9ZhYiF.js +1564 -0
  61. package/components/PlayerAccountGamingLimitsInfoCard-CoMJRMLA.js +1564 -0
  62. package/components/PlayerAccountGamingLimitsInfoCard-lJRgmwtb.cjs +1 -0
  63. package/components/PlayerAccountGamingLimitsInfoCard-yxF974vj.js +1564 -0
  64. package/components/PlayerAccountGamingLimitsPage2Gm16-BTjt40ut.cjs +21 -0
  65. package/components/PlayerAccountGamingLimitsPage2Gm16-CxPXwme_.js +3276 -0
  66. package/components/PlayerAccountGamingLimitsPage2Gm16-Di6v3kmW.js +3307 -0
  67. package/components/PlayerAccountGamingLimitsPage2Gm16-L1Jp_iKB.js +3276 -0
  68. package/components/PlayerAccountGamingLimitsPage2Gm16-T2cmSKjm.js +3307 -0
  69. package/components/PlayerAccountGamingLimitsPage2Gm16-p3GcsFI7.cjs +21 -0
  70. package/components/PlayerAccountGamingLimitsPopup-B4-V_QNS.js +340 -0
  71. package/components/PlayerAccountGamingLimitsPopup-BzDVzkzb.js +340 -0
  72. package/components/PlayerAccountGamingLimitsPopup-C1u8s5Rb.js +340 -0
  73. package/components/PlayerAccountGamingLimitsPopup-Dcz_452O.js +340 -0
  74. package/components/PlayerAccountGamingLimitsPopup-DdcT7vPa.cjs +1 -0
  75. package/components/PlayerAccountGamingLimitsPopup-LRDbiAly.cjs +1 -0
  76. package/components/PlayerAccountGamingLimitsWrapper2-BiXnSxca.cjs +1 -0
  77. package/components/PlayerAccountGamingLimitsWrapper2-BqtUjbbu.js +1011 -0
  78. package/components/PlayerAccountGamingLimitsWrapper2-CcyRURaw.js +1017 -0
  79. package/components/PlayerAccountGamingLimitsWrapper2-_YHpEotj.js +1011 -0
  80. package/components/PlayerAccountGamingLimitsWrapper2-s5SZNIjP.cjs +1 -0
  81. package/components/PlayerAccountGamingLimitsWrapper2-x4L94fha.js +1017 -0
  82. package/components/PlayerAccountGeneralConfirmationModal-B0kXXOye.js +364 -0
  83. package/components/PlayerAccountGeneralConfirmationModal-BIT_T-29.js +364 -0
  84. package/components/PlayerAccountGeneralConfirmationModal-BRCvYq3w.js +364 -0
  85. package/components/PlayerAccountGeneralConfirmationModal-CBYinFim.js +364 -0
  86. package/components/PlayerAccountGeneralConfirmationModal-CGsrVc5R.cjs +1 -0
  87. package/components/PlayerAccountGeneralConfirmationModal-DdoBD-jg.cjs +1 -0
  88. package/components/PlayerAccountMenu-8KOKoKVb.cjs +1 -0
  89. package/components/PlayerAccountMenu-Bfre06Le.cjs +1 -0
  90. package/components/PlayerAccountMenu-C_YGuNPM.js +684 -0
  91. package/components/PlayerAccountMenu-DN2PIyCS.js +705 -0
  92. package/components/PlayerAccountMenu-DqJbyUfh.js +706 -0
  93. package/components/PlayerAccountMenu-FryvTe0M.js +683 -0
  94. package/components/PlayerAccountModal-Bc_9P-LN.cjs +1 -0
  95. package/components/PlayerAccountModal-C3LgI3bI.js +209 -0
  96. package/components/PlayerAccountModal-C6u0YlOB.js +209 -0
  97. package/components/PlayerAccountModal-Cb9Cx84R.js +209 -0
  98. package/components/PlayerAccountModal-DfP5i5EL.cjs +1 -0
  99. package/components/PlayerAccountModal-DxF0TUrk.js +209 -0
  100. package/components/PlayerAccountNotifications-C8jpcaHS.js +368 -0
  101. package/components/PlayerAccountNotifications-CGAudNFs.js +369 -0
  102. package/components/PlayerAccountNotifications-Ck05XEl9.cjs +1 -0
  103. package/components/PlayerAccountNotifications-CmREqnee.cjs +1 -0
  104. package/components/PlayerAccountNotifications-xD7DJqe7.js +368 -0
  105. package/components/PlayerAccountNotifications-zizauj3S.js +369 -0
  106. package/components/PlayerAccountSelfExclusion-BIGBywgv.cjs +4171 -0
  107. package/components/PlayerAccountSelfExclusion-BOP9Y_Cl.js +17171 -0
  108. package/components/PlayerAccountSelfExclusion-CDVz-lP6.js +17138 -0
  109. package/components/PlayerAccountSelfExclusion-CJ4jfPui.js +17138 -0
  110. package/components/PlayerAccountSelfExclusion-Cfcq-ilJ.js +17171 -0
  111. package/components/PlayerAccountSelfExclusion-Cy05j-IP.cjs +4171 -0
  112. package/components/PlayerAccountTimeout-2YkNAJ9f.cjs +1 -0
  113. package/components/PlayerAccountTimeout-BW3T413k.js +950 -0
  114. package/components/PlayerAccountTimeout-BcsZ2sb4.js +950 -0
  115. package/components/PlayerAccountTimeout-CBKTomqH.cjs +1 -0
  116. package/components/PlayerAccountTimeout-Cx77nKle.js +950 -0
  117. package/components/PlayerAccountTimeout-DiMSoYxX.js +950 -0
  118. package/components/PlayerActiveBonuses-3N_s8OrY.js +1055 -0
  119. package/components/PlayerActiveBonuses-Bk-LUaGe.cjs +1 -0
  120. package/components/PlayerActiveBonuses-CacJcfPT.js +1056 -0
  121. package/components/PlayerActiveBonuses-Dyedxyle.js +1055 -0
  122. package/components/PlayerActiveBonuses-DzsnlkKd.cjs +1 -0
  123. package/components/PlayerActiveBonuses-hMskUSPf.js +1056 -0
  124. package/components/PlayerBonusCard-2TI6CPMg.js +699 -0
  125. package/components/PlayerBonusCard-BLQee3Yl.js +699 -0
  126. package/components/PlayerBonusCard-BtmQf1aE.js +699 -0
  127. package/components/PlayerBonusCard-CzDI2441.js +699 -0
  128. package/components/PlayerBonusCard-fmiQL149.cjs +1 -0
  129. package/components/PlayerBonusCard-seJw_ipN.cjs +1 -0
  130. package/components/PlayerBonusHistory-1zb5ypXm.js +937 -0
  131. package/components/PlayerBonusHistory-B_fcWrpb.cjs +1 -0
  132. package/components/PlayerBonusHistory-Cc7KuYdG.js +938 -0
  133. package/components/PlayerBonusHistory-Cl6yHmyn.cjs +1 -0
  134. package/components/PlayerBonusHistory-DTWoOB2F.js +937 -0
  135. package/components/PlayerBonusHistory-WRG91zGG.js +938 -0
  136. package/components/PlayerChangePassword-C25k7g0R.js +1173 -0
  137. package/components/PlayerChangePassword-C8JMSlO2.cjs +3 -0
  138. package/components/PlayerChangePassword-CRAV5XBF.js +1173 -0
  139. package/components/PlayerChangePassword-ChN8vXoe.js +1173 -0
  140. package/components/PlayerChangePassword-D2hz3KZY.js +1173 -0
  141. package/components/PlayerChangePassword-Dm7ojx3B.cjs +3 -0
  142. package/components/PlayerDeposit-C3LBDk7P.js +391 -0
  143. package/components/PlayerDeposit-D-vkpaj8.js +391 -0
  144. package/components/PlayerDeposit-D9vHJT5z.cjs +1 -0
  145. package/components/PlayerDeposit-Drn_qTXy.js +391 -0
  146. package/components/PlayerDeposit-H96LYwvc.cjs +1 -0
  147. package/components/PlayerDeposit-lFMe4Ubk.js +391 -0
  148. package/components/PlayerGamingHistory-A8ezawol.cjs +1 -0
  149. package/components/PlayerGamingHistory-CBybmkzJ.js +982 -0
  150. package/components/PlayerGamingHistory-D-g7DsZY.js +969 -0
  151. package/components/PlayerGamingHistory-D4BBX_NO.js +982 -0
  152. package/components/PlayerGamingHistory-kQXWPOVX.js +969 -0
  153. package/components/PlayerGamingHistory-nXcnrY9t.cjs +1 -0
  154. package/components/PlayerPendingWithdrawals-335u7VHy.cjs +1 -0
  155. package/components/PlayerPendingWithdrawals-Bkq_LzUX.js +310 -0
  156. package/components/PlayerPendingWithdrawals-Cc5b8V0M.cjs +1 -0
  157. package/components/PlayerPendingWithdrawals-CiE7UXZE.js +310 -0
  158. package/components/PlayerPendingWithdrawals-Cv8ar9i7.js +310 -0
  159. package/components/PlayerPendingWithdrawals-D0PnJ2Ry.js +310 -0
  160. package/components/PlayerProfileInfo-BZjVrvCn.cjs +1 -0
  161. package/components/PlayerProfileInfo-BtajfoNY.cjs +1 -0
  162. package/components/PlayerProfileInfo-C3sb-ekE.js +1804 -0
  163. package/components/PlayerProfileInfo-C6wcnHjE.js +1821 -0
  164. package/components/PlayerProfileInfo-ChVQdofV.js +1821 -0
  165. package/components/PlayerProfileInfo-DGa8IkvB.js +1804 -0
  166. package/components/PlayerRealityCheck-4dDx5fG9.js +668 -0
  167. package/components/PlayerRealityCheck-Bp0kcyji.js +652 -0
  168. package/components/PlayerRealityCheck-CLNviBS2.cjs +1 -0
  169. package/components/PlayerRealityCheck-DnV8RaMw.cjs +1 -0
  170. package/components/PlayerRealityCheck-FpmFAP1-.js +668 -0
  171. package/components/PlayerRealityCheck-zj5BHTDl.js +652 -0
  172. package/components/PlayerTransactionHistory-CCdvsW9A.cjs +1 -0
  173. package/components/PlayerTransactionHistory-CM91yXea.js +314 -0
  174. package/components/PlayerTransactionHistory-CYYFJ6EG.js +314 -0
  175. package/components/PlayerTransactionHistory-DbNzhWfM.js +314 -0
  176. package/components/PlayerTransactionHistory-Gz5Ae9tP.cjs +1 -0
  177. package/components/PlayerTransactionHistory-RmKm-89S.js +314 -0
  178. package/components/PlayerWithdrawal-BrBDWDhT.cjs +1 -0
  179. package/components/PlayerWithdrawal-CUYps7WV.js +365 -0
  180. package/components/PlayerWithdrawal-CcdByNbq.js +365 -0
  181. package/components/PlayerWithdrawal-CohuE2wz.js +365 -0
  182. package/components/PlayerWithdrawal-DMhVwQlF.cjs +1 -0
  183. package/components/PlayerWithdrawal-_cBpaGNe.js +365 -0
  184. package/es2015/player-account-controller.cjs +1 -1
  185. package/es2015/player-account-controller.js +1 -1
  186. package/esnext/player-account-controller.js +1 -1
  187. package/package.json +1 -1
  188. package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +1 -0
  189. package/stencil/app-globals-0f993ce5-DzSE6TtH.js +13 -0
  190. package/stencil/checkbox-group-input_9-C0sxArC8.cjs +2104 -0
  191. package/stencil/checkbox-group-input_9-CgJXKrax.js +12351 -0
  192. package/stencil/checkbox-group-input_9-cgJtsdKg.js +12331 -0
  193. package/stencil/general-input-Bd9atiWx.js +48 -0
  194. package/stencil/general-input-CsKjNbmZ.js +48 -0
  195. package/stencil/general-input-DdanLnhp.cjs +1 -0
  196. package/stencil/index-1c9f7b34-Bc7D_MDc.js +566 -0
  197. package/stencil/index-1c9f7b34-CQG22CHt.cjs +1 -0
  198. package/stencil/index-1c9f7b34-DjxFQLNm.js +593 -0
  199. package/stencil/index-42a69622-Bf3iffRU.js +659 -0
  200. package/stencil/index-42a69622-D_Ld41zA.cjs +1 -0
  201. package/stencil/index-42a69622-sw0JKBUm.js +632 -0
  202. package/stencil/index-72d2f0c7-B6npgOpT.cjs +1 -0
  203. package/stencil/index-72d2f0c7-C1SVQLk_.js +642 -0
  204. package/stencil/index-72d2f0c7-DbRKphKh.js +626 -0
  205. package/stencil/index-7c2d76a2-Ac3uLCab.js +548 -0
  206. package/stencil/index-7c2d76a2-BhtzgVqi.js +532 -0
  207. package/stencil/index-7c2d76a2-BrBQDQDN.cjs +1 -0
  208. package/stencil/index-c68bbded-Ca8oRZ5p.js +572 -0
  209. package/stencil/index-c68bbded-lJvOfh6w.js +588 -0
  210. package/stencil/index-c68bbded-lic9DimW.cjs +1 -0
  211. package/stencil/password-input_2-BcA_GQhg.js +1420 -0
  212. package/stencil/password-input_2-CWC2OUx-.js +1420 -0
  213. package/stencil/password-input_2-D_l1ccPG.cjs +896 -0
  214. package/stencil/player-change-password-gm2-7b05cf53-BGg_is8g.cjs +1 -0
  215. package/stencil/player-change-password-gm2-7b05cf53-ChOp29_5.js +272 -0
  216. package/stencil/player-change-password-gm2-7b05cf53-CnV9s-Ih.js +272 -0
  217. package/stencil/player-change-password-gm2-B_kRjFUL.js +7 -0
  218. package/stencil/player-change-password-gm2-DEeeAs8O.js +25 -0
  219. package/stencil/player-change-password-gm2-DGfPRqEK.cjs +1 -0
  220. package/stencil/player-kyc-verification-2B5tE4Ms.js +885 -0
  221. package/stencil/player-kyc-verification-BV7JAA9D.js +863 -0
  222. package/stencil/player-kyc-verification-Bc4oE7cr.cjs +180 -0
  223. package/stencil/toggle-checkbox-input-CdUMWsZk.js +46 -0
  224. package/stencil/toggle-checkbox-input-CtT_ZCWu.cjs +1 -0
  225. package/stencil/toggle-checkbox-input-DXS0qpdk.js +46 -0
  226. package/stencil/ui-skeleton-82ccc79b-3ievvoeK.js +122 -0
  227. package/stencil/ui-skeleton-82ccc79b-BPwVGHA5.js +122 -0
  228. package/stencil/ui-skeleton-82ccc79b-BrQV4Gq-.cjs +1 -0
  229. package/stencil/ui-skeleton-BIkTgHQw.js +29 -0
  230. package/stencil/ui-skeleton-CYW2WO8b.js +11 -0
  231. package/stencil/ui-skeleton-DFziT7_7.cjs +1 -0
  232. package/stencil/user-deposit-withdrawal-CDH0Oqm0.cjs +59 -0
  233. package/stencil/user-deposit-withdrawal-CieORRUN.js +663 -0
  234. package/stencil/user-deposit-withdrawal-D7WNAnCv.js +685 -0
  235. package/stencil/user-transaction-history-BPKIXepd.cjs +1 -0
  236. package/stencil/user-transaction-history-C4pLTnxb.js +374 -0
  237. package/stencil/user-transaction-history-CegXbhhd.js +350 -0
@@ -0,0 +1,364 @@
1
+ import { a as H, $ as J, S as K, i as Q, f as v, c as V, s as X, b as Y, G as Z, e as _, d as z, t as S, g as l, k as j, l as m, m as O, H as $, I as ee, J as te, n as E, K as ne, L as oe, p as L, r as ie, q as re, u as ae, v as le, w as se, x as ce, z as me, A as fe, y as W, o as de, B as ue } from "./GeneralLogout-CtNZ2rvU.js";
2
+ function q(n, e) {
3
+ H(n, e);
4
+ }
5
+ function ge(n) {
6
+ J.set(n);
7
+ }
8
+ const N = {
9
+ en: {
10
+ cancel: "Cancel",
11
+ confirm: "Confirm"
12
+ },
13
+ fr: {
14
+ cancel: "Annuler",
15
+ confirm: "Confirmer"
16
+ },
17
+ ro: {
18
+ cancel: "Anulează",
19
+ confirm: "Confirmă"
20
+ },
21
+ es: {
22
+ cancel: "Cancelar",
23
+ confirm: "Confirmar"
24
+ },
25
+ pt: {
26
+ cancel: "Cancelar",
27
+ confirm: "Confirmar"
28
+ },
29
+ "zh-hk": {
30
+ cancel: "取消",
31
+ confirm: "確認"
32
+ },
33
+ hr: {
34
+ cancel: "Otkaži",
35
+ confirm: "Potvrdi"
36
+ },
37
+ "pt-br": {
38
+ cancel: "Cancelar",
39
+ confirm: "confirme"
40
+ },
41
+ "es-mx": {
42
+ cancel: "Cancelar",
43
+ confirm: "Confirmar"
44
+ },
45
+ tr: {
46
+ cancel: "İptal etmek",
47
+ confirm: "Onaylamak"
48
+ },
49
+ "en-us": {
50
+ cancel: "Cancel",
51
+ confirm: "Confirm"
52
+ }
53
+ };
54
+ function be(n) {
55
+ Y(n, "svelte-1o81iqe", '*,*::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, 20px);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, 20px)}.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
+ }
57
+ const he = (n) => ({}), P = (n) => ({});
58
+ function Ce(n) {
59
+ let e, t;
60
+ return {
61
+ c() {
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
+ },
64
+ m(r, s) {
65
+ j(r, e, s), m(e, t);
66
+ },
67
+ p: de,
68
+ d(r) {
69
+ r && L(e);
70
+ }
71
+ };
72
+ }
73
+ function I(n) {
74
+ let e, t, r;
75
+ return {
76
+ c() {
77
+ e = _("div"), t = _("h2"), r = S(
78
+ /*modaltitle*/
79
+ n[1]
80
+ ), l(e, "class", "GeneralConfirmationTitle");
81
+ },
82
+ m(s, d) {
83
+ j(s, e, d), m(e, t), m(t, r);
84
+ },
85
+ p(s, d) {
86
+ d & /*modaltitle*/
87
+ 2 && E(
88
+ r,
89
+ /*modaltitle*/
90
+ s[1]
91
+ );
92
+ },
93
+ d(s) {
94
+ s && L(e);
95
+ }
96
+ };
97
+ }
98
+ function R(n) {
99
+ let e, t = (
100
+ /*$_*/
101
+ n[4]("cancel") + ""
102
+ ), r, s, d;
103
+ return {
104
+ c() {
105
+ e = _("button"), r = S(t), l(e, "class", "GeneralCancelButton");
106
+ },
107
+ m(f, C) {
108
+ j(f, e, C), m(e, r), s || (d = O(
109
+ e,
110
+ "click",
111
+ /*click_handler*/
112
+ n[17]
113
+ ), s = !0);
114
+ },
115
+ p(f, C) {
116
+ C & /*$_*/
117
+ 16 && t !== (t = /*$_*/
118
+ f[4]("cancel") + "") && E(r, t);
119
+ },
120
+ d(f) {
121
+ f && L(e), s = !1, d();
122
+ }
123
+ };
124
+ }
125
+ function pe(n) {
126
+ let e, t, r, s, d, f, C, A, g, y, p, w = (
127
+ /*$_*/
128
+ n[4]("confirm") + ""
129
+ ), k, u, G, b;
130
+ const F = (
131
+ /*#slots*/
132
+ n[16].close
133
+ ), M = Z(
134
+ F,
135
+ n,
136
+ /*$$scope*/
137
+ n[15],
138
+ P
139
+ ), h = M || Ce();
140
+ let a = (
141
+ /*modaltitle*/
142
+ n[1] && I(n)
143
+ ), c = (
144
+ /*hascancelbutton*/
145
+ n[2] && R(n)
146
+ );
147
+ return {
148
+ c() {
149
+ e = _("div"), t = _("div"), r = _("span"), h && h.c(), s = z(), a && a.c(), d = z(), f = _("div"), C = S(
150
+ /*modaltext*/
151
+ n[0]
152
+ ), A = z(), g = _("div"), c && c.c(), y = z(), p = _("button"), k = S(w), l(r, "class", "ModalCloseBtn"), l(r, "role", "button"), l(f, "class", "GeneralConfirmationContent"), l(p, "class", "GeneralConfirmButton"), l(g, "class", "GeneralConfirmationControlArea " + /*isMobile*/
153
+ (n[5] ? "GeneralConfirmationControlAreaMobile" : "")), l(t, "class", "GeneralConfirmationContainer " + /*isMobile*/
154
+ (n[5] ? "GeneralConfirmationContainerMobile" : "")), l(e, "class", "GeneralConfirmationWrapper " + /*isMobile*/
155
+ (n[5] ? "GeneralConfirmationMobileWrapper" : ""));
156
+ },
157
+ m(i, x) {
158
+ j(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 = [
159
+ O(
160
+ r,
161
+ "click",
162
+ /*close*/
163
+ n[6]
164
+ ),
165
+ O(
166
+ p,
167
+ "click",
168
+ /*click_handler_1*/
169
+ n[18]
170
+ )
171
+ ], G = !0);
172
+ },
173
+ p(i, [x]) {
174
+ M && M.p && (!u || x & /*$$scope*/
175
+ 32768) && $(
176
+ M,
177
+ F,
178
+ i,
179
+ /*$$scope*/
180
+ i[15],
181
+ u ? te(
182
+ F,
183
+ /*$$scope*/
184
+ i[15],
185
+ x,
186
+ he
187
+ ) : ee(
188
+ /*$$scope*/
189
+ i[15]
190
+ ),
191
+ P
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) && E(
195
+ C,
196
+ /*modaltext*/
197
+ i[0]
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") + "") && E(k, w);
202
+ },
203
+ i(i) {
204
+ u || (ne(h, i), u = !0);
205
+ },
206
+ o(i) {
207
+ oe(h, i), u = !1;
208
+ },
209
+ d(i) {
210
+ i && L(e), h && h.d(i), a && a.d(), c && c.d(), n[19](null), G = !1, ie(b);
211
+ }
212
+ };
213
+ }
214
+ function xe(n, e, t) {
215
+ let r;
216
+ re(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 = ae(F) !== "PC";
218
+ const h = () => {
219
+ window.postMessage({ type: "ModalClosed" }, window.location.href);
220
+ }, a = (o) => {
221
+ o === "confirm" && g && window.postMessage(g, window.location.href), o === "cancel" && y && window.postMessage(y, window.location.href), h();
222
+ }, c = () => {
223
+ fetch(u).then((B) => B.json()).then((B) => {
224
+ Object.keys(B).forEach((T) => {
225
+ q(T, B[T]);
226
+ });
227
+ }).catch((B) => {
228
+ console.log(B);
229
+ });
230
+ };
231
+ Object.keys(N).forEach((o) => {
232
+ q(o, N[o]);
233
+ });
234
+ const i = () => {
235
+ ge(p);
236
+ };
237
+ le(() => () => {
238
+ });
239
+ const x = () => a("cancel"), U = () => a("confirm");
240
+ function D(o) {
241
+ me[o ? "unshift" : "push"](() => {
242
+ b = o, t(3, b);
243
+ });
244
+ }
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);
247
+ }, n.$$.update = () => {
248
+ n.$$.dirty & /*modaltext, lang*/
249
+ 1025 && f && p && i(), n.$$.dirty & /*clientstyling, customStylingContainer*/
250
+ 2056 && w && b && fe(b, w), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
251
+ 4104 && k && b && se(b, k), n.$$.dirty & /*mbsource, customStylingContainer*/
252
+ 16392 && G && b && ce(b, `${G}.Style`), n.$$.dirty & /*translationurl*/
253
+ 8192 && u && c();
254
+ }, [
255
+ f,
256
+ C,
257
+ A,
258
+ b,
259
+ r,
260
+ M,
261
+ h,
262
+ a,
263
+ g,
264
+ y,
265
+ p,
266
+ w,
267
+ k,
268
+ u,
269
+ G,
270
+ d,
271
+ s,
272
+ x,
273
+ U,
274
+ D
275
+ ];
276
+ }
277
+ class ve extends K {
278
+ constructor(e) {
279
+ super(), Q(
280
+ this,
281
+ e,
282
+ xe,
283
+ pe,
284
+ X,
285
+ {
286
+ modaltext: 0,
287
+ modaltitle: 1,
288
+ hascancelbutton: 2,
289
+ modalconfirmevent: 8,
290
+ modalcancelevent: 9,
291
+ lang: 10,
292
+ clientstyling: 11,
293
+ clientstylingurl: 12,
294
+ translationurl: 13,
295
+ mbsource: 14
296
+ },
297
+ be
298
+ );
299
+ }
300
+ get modaltext() {
301
+ return this.$$.ctx[0];
302
+ }
303
+ set modaltext(e) {
304
+ this.$$set({ modaltext: e }), v();
305
+ }
306
+ get modaltitle() {
307
+ return this.$$.ctx[1];
308
+ }
309
+ set modaltitle(e) {
310
+ this.$$set({ modaltitle: e }), v();
311
+ }
312
+ get hascancelbutton() {
313
+ return this.$$.ctx[2];
314
+ }
315
+ set hascancelbutton(e) {
316
+ this.$$set({ hascancelbutton: e }), v();
317
+ }
318
+ get modalconfirmevent() {
319
+ return this.$$.ctx[8];
320
+ }
321
+ set modalconfirmevent(e) {
322
+ this.$$set({ modalconfirmevent: e }), v();
323
+ }
324
+ get modalcancelevent() {
325
+ return this.$$.ctx[9];
326
+ }
327
+ set modalcancelevent(e) {
328
+ this.$$set({ modalcancelevent: e }), v();
329
+ }
330
+ get lang() {
331
+ return this.$$.ctx[10];
332
+ }
333
+ set lang(e) {
334
+ this.$$set({ lang: e }), v();
335
+ }
336
+ get clientstyling() {
337
+ return this.$$.ctx[11];
338
+ }
339
+ set clientstyling(e) {
340
+ this.$$set({ clientstyling: e }), v();
341
+ }
342
+ get clientstylingurl() {
343
+ return this.$$.ctx[12];
344
+ }
345
+ set clientstylingurl(e) {
346
+ this.$$set({ clientstylingurl: e }), v();
347
+ }
348
+ get translationurl() {
349
+ return this.$$.ctx[13];
350
+ }
351
+ set translationurl(e) {
352
+ this.$$set({ translationurl: e }), v();
353
+ }
354
+ get mbsource() {
355
+ return this.$$.ctx[14];
356
+ }
357
+ set mbsource(e) {
358
+ this.$$set({ mbsource: e }), v();
359
+ }
360
+ }
361
+ V(ve, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
362
+ export {
363
+ ve as default
364
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-BJr23vYk.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-1o81iqe",'*,*::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, 20px);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, 20px)}.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 q(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(i,c){e.insert(i,t,c),e.append(t,n)},p:e.noop,d(i){i&&e.detach(t)}}}function S(o){let t,n,i;return{c(){t=e.element("div"),n=e.element("h2"),i=e.text(o[1]),e.attr(t,"class","GeneralConfirmationTitle")},m(c,m){e.insert(c,t,m),e.append(t,n),e.append(n,i)},p(c,m){m&2&&e.set_data(i,c[1])},d(c){c&&e.detach(t)}}}function E(o){let t,n=o[4]("cancel")+"",i,c,m;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(d,h){e.insert(d,t,h),e.append(t,i),c||(m=e.listen(t,"click",o[17]),c=!0)},p(d,h){h&16&&n!==(n=d[4]("cancel")+"")&&e.set_data(i,n)},d(d){d&&e.detach(t),c=!1,m()}}}function N(o){let t,n,i,c,m,d,h,G,u,_,p,x=o[4]("confirm")+"",v,f,w,g;const M=o[16].close,y=e.create_slot(M,o,o[15],z),b=y||q();let a=o[1]&&S(o),s=o[2]&&E(o);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),b&&b.c(),c=e.space(),a&&a.c(),m=e.space(),d=e.element("div"),h=e.text(o[0]),G=e.space(),u=e.element("div"),s&&s.c(),_=e.space(),p=e.element("button"),v=e.text(x),e.attr(i,"class","ModalCloseBtn"),e.attr(i,"role","button"),e.attr(d,"class","GeneralConfirmationContent"),e.attr(p,"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,C){e.insert(l,t,C),e.append(t,n),e.append(n,i),b&&b.m(i,null),e.append(n,c),a&&a.m(n,null),e.append(n,m),e.append(n,d),e.append(d,h),e.append(n,G),e.append(n,u),s&&s.m(u,null),e.append(u,_),e.append(u,p),e.append(p,v),o[19](t),f=!0,w||(g=[e.listen(i,"click",o[6]),e.listen(p,"click",o[18])],w=!0)},p(l,[C]){y&&y.p&&(!f||C&32768)&&e.update_slot_base(y,M,l,l[15],f?e.get_slot_changes(M,l[15],C,W):e.get_all_dirty_from_scope(l[15]),z),l[1]?a?a.p(l,C):(a=S(l),a.c(),a.m(n,m)):a&&(a.d(1),a=null),(!f||C&1)&&e.set_data(h,l[0]),l[2]?s?s.p(l,C):(s=E(l),s.c(),s.m(u,_)):s&&(s.d(1),s=null),(!f||C&16)&&x!==(x=l[4]("confirm")+"")&&e.set_data(v,x)},i(l){f||(e.transition_in(b,l),f=!0)},o(l){e.transition_out(b,l),f=!1},d(l){l&&e.detach(t),b&&b.d(l),a&&a.d(),s&&s.d(),o[19](null),w=!1,e.run_all(g)}}}function R(o,t,n){let i;e.component_subscribe(o,e.$format,r=>n(4,i=r));let{$$slots:c={},$$scope:m}=t,{modaltext:d="Are you sure that you want to perform this action?"}=t,{modaltitle:h=""}=t,{hascancelbutton:G=!1}=t,{modalconfirmevent:u={}}=t,{modalcancelevent:_={}}=t,{lang:p="en"}=t,{clientstyling:x=""}=t,{clientstylingurl:v=""}=t,{translationurl:f=""}=t,{mbsource:w}=t,g,M=window.navigator.userAgent,y=e.getDevice(M)!=="PC";const b=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},a=r=>{r==="confirm"&&u&&window.postMessage(u,window.location.href),r==="cancel"&&_&&window.postMessage(_,window.location.href),b()},s=()=>{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(p)};e.onMount(()=>()=>{});const C=()=>a("cancel"),L=()=>a("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,h=r.modaltitle),"hascancelbutton"in r&&n(2,G=r.hascancelbutton),"modalconfirmevent"in r&&n(8,u=r.modalconfirmevent),"modalcancelevent"in r&&n(9,_=r.modalcancelevent),"lang"in r&&n(10,p=r.lang),"clientstyling"in r&&n(11,x=r.clientstyling),"clientstylingurl"in r&&n(12,v=r.clientstylingurl),"translationurl"in r&&n(13,f=r.translationurl),"mbsource"in r&&n(14,w=r.mbsource),"$$scope"in r&&n(15,m=r.$$scope)},o.$$.update=()=>{o.$$.dirty&1025&&d&&p&&l(),o.$$.dirty&2056&&x&&g&&e.setClientStyling(g,x),o.$$.dirty&4104&&v&&g&&e.setClientStylingURL(g,v),o.$$.dirty&16392&&w&&g&&e.setStreamStyling(g,`${w}.Style`),o.$$.dirty&8192&&f&&s()},[d,h,G,g,i,y,b,a,u,_,p,x,v,f,w,m,c,C,L,O]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,R,N,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;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DMKG3DPv.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-1o81iqe",'*,*::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, 20px);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, 20px)}.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 q(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(i,c){e.insert(i,t,c),e.append(t,n)},p:e.noop,d(i){i&&e.detach(t)}}}function S(o){let t,n,i;return{c(){t=e.element("div"),n=e.element("h2"),i=e.text(o[1]),e.attr(t,"class","GeneralConfirmationTitle")},m(c,m){e.insert(c,t,m),e.append(t,n),e.append(n,i)},p(c,m){m&2&&e.set_data(i,c[1])},d(c){c&&e.detach(t)}}}function E(o){let t,n=o[4]("cancel")+"",i,c,m;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(d,h){e.insert(d,t,h),e.append(t,i),c||(m=e.listen(t,"click",o[17]),c=!0)},p(d,h){h&16&&n!==(n=d[4]("cancel")+"")&&e.set_data(i,n)},d(d){d&&e.detach(t),c=!1,m()}}}function N(o){let t,n,i,c,m,d,h,G,u,_,p,x=o[4]("confirm")+"",v,f,w,g;const M=o[16].close,y=e.create_slot(M,o,o[15],z),b=y||q();let a=o[1]&&S(o),s=o[2]&&E(o);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),b&&b.c(),c=e.space(),a&&a.c(),m=e.space(),d=e.element("div"),h=e.text(o[0]),G=e.space(),u=e.element("div"),s&&s.c(),_=e.space(),p=e.element("button"),v=e.text(x),e.attr(i,"class","ModalCloseBtn"),e.attr(i,"role","button"),e.attr(d,"class","GeneralConfirmationContent"),e.attr(p,"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,C){e.insert(l,t,C),e.append(t,n),e.append(n,i),b&&b.m(i,null),e.append(n,c),a&&a.m(n,null),e.append(n,m),e.append(n,d),e.append(d,h),e.append(n,G),e.append(n,u),s&&s.m(u,null),e.append(u,_),e.append(u,p),e.append(p,v),o[19](t),f=!0,w||(g=[e.listen(i,"click",o[6]),e.listen(p,"click",o[18])],w=!0)},p(l,[C]){y&&y.p&&(!f||C&32768)&&e.update_slot_base(y,M,l,l[15],f?e.get_slot_changes(M,l[15],C,W):e.get_all_dirty_from_scope(l[15]),z),l[1]?a?a.p(l,C):(a=S(l),a.c(),a.m(n,m)):a&&(a.d(1),a=null),(!f||C&1)&&e.set_data(h,l[0]),l[2]?s?s.p(l,C):(s=E(l),s.c(),s.m(u,_)):s&&(s.d(1),s=null),(!f||C&16)&&x!==(x=l[4]("confirm")+"")&&e.set_data(v,x)},i(l){f||(e.transition_in(b,l),f=!0)},o(l){e.transition_out(b,l),f=!1},d(l){l&&e.detach(t),b&&b.d(l),a&&a.d(),s&&s.d(),o[19](null),w=!1,e.run_all(g)}}}function R(o,t,n){let i;e.component_subscribe(o,e.$format,r=>n(4,i=r));let{$$slots:c={},$$scope:m}=t,{modaltext:d="Are you sure that you want to perform this action?"}=t,{modaltitle:h=""}=t,{hascancelbutton:G=!1}=t,{modalconfirmevent:u={}}=t,{modalcancelevent:_={}}=t,{lang:p="en"}=t,{clientstyling:x=""}=t,{clientstylingurl:v=""}=t,{translationurl:f=""}=t,{mbsource:w}=t,g,M=window.navigator.userAgent,y=e.getDevice(M)!=="PC";const b=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},a=r=>{r==="confirm"&&u&&window.postMessage(u,window.location.href),r==="cancel"&&_&&window.postMessage(_,window.location.href),b()},s=()=>{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(p)};e.onMount(()=>()=>{});const C=()=>a("cancel"),L=()=>a("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,h=r.modaltitle),"hascancelbutton"in r&&n(2,G=r.hascancelbutton),"modalconfirmevent"in r&&n(8,u=r.modalconfirmevent),"modalcancelevent"in r&&n(9,_=r.modalcancelevent),"lang"in r&&n(10,p=r.lang),"clientstyling"in r&&n(11,x=r.clientstyling),"clientstylingurl"in r&&n(12,v=r.clientstylingurl),"translationurl"in r&&n(13,f=r.translationurl),"mbsource"in r&&n(14,w=r.mbsource),"$$scope"in r&&n(15,m=r.$$scope)},o.$$.update=()=>{o.$$.dirty&1025&&d&&p&&l(),o.$$.dirty&2056&&x&&g&&e.setClientStyling(g,x),o.$$.dirty&4104&&v&&g&&e.setClientStylingURL(g,v),o.$$.dirty&16392&&w&&g&&e.setStreamStyling(g,`${w}.Style`),o.$$.dirty&8192&&f&&s()},[d,h,G,g,i,y,b,a,u,_,p,x,v,f,w,m,c,C,L,O]}class j extends e.SvelteComponent{constructor(t){super(),e.init(this,t,R,N,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;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DMKG3DPv.cjs");require("../stencil/ui-skeleton-DFziT7_7.cjs");function E(l,t){e.addMessages(l,t)}function J(l){e.$locale.set(l)}const B={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-DMKG3DPv.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-io9slc",".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, #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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function W(l,t,n){const a=l.slice();return a[40]=t[n],a}function H(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,o,s,m,y,f,P,h,g,_,u=l[11]&&ee(l),c=l[11]&&te(l),p=e.ensure_array_like(l[6]),i=[];for(let d=0;d<p.length;d+=1)i[d]=S(W(l,p,d));let v=!l[11]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),o=e.element("p"),s=e.text(l[8]),m=e.space(),y=e.element("p"),f=e.text(l[9]),P=e.space(),c&&c.c(),h=e.space(),g=e.element("div");for(let d=0;d<i.length;d+=1)i[d].c();_=e.space(),v&&v.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[11]?"PlayerAccountMenuHeaderMobile":"")),e.attr(g,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[11]?"PlayerAccountMobileContainer":"")+" "+(l[12].matches&&l[11]?"PlayerAccountTabletContainer":""))},m(d,b){e.insert(d,t,b),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,y),e.append(y,f),e.append(n,P),c&&c.m(n,null),e.append(t,h),e.append(t,g);for(let A=0;A<i.length;A+=1)i[A]&&i[A].m(g,null);e.append(t,_),v&&v.m(t,null)},p(d,b){if(d[11]&&u.p(d,b),b[0]&256&&e.set_data(s,d[8]),b[0]&512&&e.set_data(f,d[9]),d[11]&&c.p(d,b),b[0]&10432){p=e.ensure_array_like(d[6]);let A;for(A=0;A<p.length;A+=1){const x=W(d,p,A);i[A]?i[A].p(x,b):(i[A]=S(x),i[A].c(),i[A].m(g,null))}for(;A<i.length;A+=1)i[A].d(1);i.length=p.length}d[11]||v.p(d,b)},d(d){d&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,d),v&&v.d()}}}function $(l){let t,n,a,o,s,m,y,f,P,h,g=l[11]&&le(),_=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<_.length;c+=1)u[c]=z(H(l,_,c));return{c(){t=e.element("div"),n=e.element("div"),g&&g.c(),a=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),f=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();P=e.space(),h=e.element("div"),h.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"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[11]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(h,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[11]?"PlayerAccountMobileContainer":"")+" "+(l[12].matches&&l[11]?"PlayerAccountTabletContainer":""))},m(c,p){e.insert(c,t,p),e.append(t,n),g&&g.m(n,null),e.append(n,a),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,f);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(f,null);e.append(t,P),e.append(t,h)},p(c,p){if(p[0]&2048){_=e.ensure_array_like(Array(18));let i;for(i=0;i<_.length;i+=1){const v=H(c,_,i);u[i]?u[i].p(v,p):(u[i]=z(v),u[i].c(),u[i].m(f,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=_.length}},d(c){c&&e.detach(t),g&&g.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,o,s,m,y,f,P,h,g=l[10]("title")+"",_,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),f=e.svg_element("path"),P=e.space(),h=e.element("h3"),_=e.text(g),e.attr(f,"class","aaa"),e.attr(f,"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(f,"transform","translate(15 15) rotate(180)"),e.attr(y,"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(h,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,a),e.append(a,o),e.append(o,s),e.append(n,m),e.append(m,y),e.append(y,f),e.append(t,P),e.append(t,h),e.append(h,_),u||(c=[e.listen(n,"click",l[14]),e.listen(h,"click",l[14])],u=!0)},p(p,i){i[0]&1024&&g!==(g=p[10]("title")+"")&&e.set_data(_,g)},d(p){p&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,o){e.insert(a,t,o),e.append(t,n)},p(a,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),o[0]&1&&e.set_custom_element_data(n,"session",a[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,o,s,m,y=l[40].label+"",f,P,h,g,_;function u(){return l[25](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),f=e.text(y),P=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[11]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,o=l[40].img)||e.attr(a,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",h="PlayerAccountMenuItemBox "+(l[7]===l[40].id&&!l[11]?"PlayerAccountMenuActiveItemBox":""))},m(c,p){e.insert(c,t,p),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,f),e.append(t,P),g||(_=e.listen(t,"click",u),g=!0)},p(c,p){l=c,p[0]&64&&!e.src_url_equal(a.src,o=l[40].img)&&e.attr(a,"src",o),p[0]&64&&y!==(y=l[40].label+"")&&e.set_data(f,y),p[0]&192&&h!==(h="PlayerAccountMenuItemBox "+(l[7]===l[40].id&&!l[11]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",h)},d(c){c&&e.detach(t),g=!1,_()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,o){e.insert(a,t,o),e.append(t,n)},p(a,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),o[0]&1&&e.set_custom_element_data(n,"session",a[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function z(l){let t,n,a,o,s=!l[11]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),o=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[11]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[11]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,a),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function re(l){let t;function n(s,m){return s[5]?$:Y}let a=n(l),o=a(l);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),l[26](t)},p(s,m){a===(a=n(s))&&o?o.p(s,m):(o.d(1),o=a(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),l[26](null)}}}function oe(l,t,n){let a;e.component_subscribe(l,e.$format,r=>n(10,a=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:f=""}=t,{lang:P="en"}=t,{userroles:h=""}=t,{clientstyling:g=""}=t,{clientstylingurl:_=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:p}=t,i=!1,v=!1,d=!0,b,A=[],x,k=window.navigator.userAgent,D=e.getDevice(k)!=="PC",I="",C="";const j=window.matchMedia("(min-width: 768px)"),U=()=>{fetch(u).then(M=>M.json()).then(M=>{Object.keys(M).forEach(w=>{E(w,M[w])})}).catch(M=>{console.error(M)})};Object.keys(B).forEach(r=>{E(r,B[r])});const F=r=>{if(r.data)switch(r.data.type){case"UserSessionID":n(0,y=r.data.session);break}},q=()=>{let r=e.getDevice(k);if(r)return r==="PC"?"dk":"mtWeb"},R=()=>{const r=new URL(`${s}/${P}/profile-menu?env=${m}`);r.searchParams.append("device",q()),fetch(r.href).then(M=>M.json()).then(M=>{n(6,A=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,i=!0)})},G=()=>{let r=new URL(`${o}/v1/player/${f}/profile`);r.searchParams.append("userRoles",h);let M={method:"GET",headers:{"X-SessionID":y}};fetch(r.href,M).then(w=>w.json()).then(w=>{n(8,I=w.username),n(9,C=w.email)},w=>{console.error(w)}).finally(()=>{n(24,v=!0)})},L=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(7,x=r.id)},T=()=>{var r;n(7,x=(r=A.find(M=>M.path.includes(c)))==null?void 0:r.id)},N=()=>{J(P)},Q=()=>{G()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const X=r=>L(r);function Z(r){e.binding_callbacks[r?"unshift":"push"](()=>{b=r,n(4,b)})}return l.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(15,s=r.cmsendpoint),"env"in r&&n(16,m=r.env),"session"in r&&n(0,y=r.session),"playerid"in r&&n(17,f=r.playerid),"lang"in r&&n(18,P=r.lang),"userroles"in r&&n(19,h=r.userroles),"clientstyling"in r&&n(2,g=r.clientstyling),"clientstylingurl"in r&&n(3,_=r.clientstylingurl),"translationurl"in r&&n(20,u=r.translationurl),"activemenuitem"in r&&n(21,c=r.activemenuitem),"mbsource"in r&&n(22,p=r.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(5,d=!i||!v),l.$$.dirty[0]&262144&&P&&N(),l.$$.dirty[0]&393219&&o&&y&&f&&P&&Q(),l.$$.dirty[0]&360448&&s&&P&&m&&R(),l.$$.dirty[0]&2097152&&c&&T(),l.$$.dirty[0]&20&&g&&b&&e.setClientStyling(b,g),l.$$.dirty[0]&24&&_&&b&&e.setClientStylingURL(b,_),l.$$.dirty[0]&4194320&&p&&b&&e.setStreamStyling(b,`${p}.Style`),l.$$.dirty[0]&1048576&&u&&U()},[y,o,g,_,b,d,A,x,I,C,a,D,j,L,V,s,m,f,P,h,u,c,p,i,v,X,Z]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21,mbsource:22},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[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(O,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=O;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-BJr23vYk.cjs");require("../stencil/ui-skeleton-DFziT7_7.cjs");function E(l,t){e.addMessages(l,t)}function J(l){e.$locale.set(l)}const B={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-BJr23vYk.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-io9slc",".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, #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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function W(l,t,n){const a=l.slice();return a[40]=t[n],a}function H(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,y,f,b,_,g,h,u=l[12]&&ee(l),c=l[12]&&te(l),p=e.ensure_array_like(l[7]),i=[];for(let d=0;d<p.length;d+=1)i[d]=S(W(l,p,d));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),r=e.element("p"),s=e.text(l[9]),m=e.space(),y=e.element("p"),f=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),g=e.element("div");for(let d=0;d<i.length;d+=1)i[d].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(g,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(d,P){e.insert(d,t,P),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,y),e.append(y,f),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,g);for(let A=0;A<i.length;A+=1)i[A]&&i[A].m(g,null);e.append(t,h),v&&v.m(t,null)},p(d,P){if(d[12]&&u.p(d,P),P[0]&512&&e.set_data(s,d[9]),P[0]&1024&&e.set_data(f,d[10]),d[12]&&c.p(d,P),P[0]&20864){p=e.ensure_array_like(d[7]);let A;for(A=0;A<p.length;A+=1){const x=W(d,p,A);i[A]?i[A].p(x,P):(i[A]=S(x),i[A].c(),i[A].m(g,null))}for(;A<i.length;A+=1)i[A].d(1);i.length=p.length}d[12]||v.p(d,P)},d(d){d&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,d),v&&v.d()}}}function $(l){let t,n,a,r,s,m,y,f,b,_,g=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=z(H(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),g&&g.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),f=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(r,"structure","title"),e.set_custom_element_data(r,"width","100px"),e.set_custom_element_data(r,"height","20px"),e.set_custom_element_data(r,"margin-top","10px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(c,p){e.insert(c,t,p),e.append(t,n),g&&g.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,f);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(f,null);e.append(t,b),e.append(t,_)},p(c,p){if(p[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=H(c,h,i);u[i]?u[i].p(v,p):(u[i]=z(v),u[i].c(),u[i].m(f,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),g&&g.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,y,f,b,_,g=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"),y=e.svg_element("g"),f=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(g),e.attr(f,"class","aaa"),e.attr(f,"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(f,"transform","translate(15 15) rotate(180)"),e.attr(y,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(p,i){e.insert(p,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,y),e.append(y,f),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[15]),e.listen(_,"click",l[15])],u=!0)},p(p,i){i[0]&2048&&g!==(g=p[11]("title")+"")&&e.set_data(h,g)},d(p){p&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,r,s,m,y=l[40].label+"",f,b,_,g,h;function u(){return l[25](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),f=e.text(y),b=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,r=l[40].img)||e.attr(a,"src",r),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,p){e.insert(c,t,p),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,f),e.append(t,b),g||(h=e.listen(t,"click",u),g=!0)},p(c,p){l=c,p[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),p[0]&128&&y!==(y=l[40].label+"")&&e.set_data(f,y),p[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),g=!1,h()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function z(l){let t,n,a,r,s=!l[12]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),r=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),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 oe(l){let t;function n(s,m){return s[6]?$:Y}let a=n(l),r=a(l);return{c(){t=e.element("div"),r.c()},m(s,m){e.insert(s,t,m),r.m(t,null),l[26](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[26](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:y=""}=t,{playerid:f=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:g=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:p}=t,i=!1,v=!1,d=!0,P,A=[],x,k=window.navigator.userAgent,D=e.getDevice(k)!=="PC",I="",C="";const j=window.matchMedia("(min-width: 768px)"),U=()=>{fetch(u).then(M=>M.json()).then(M=>{Object.keys(M).forEach(w=>{E(w,M[w])})}).catch(M=>{console.error(M)})};Object.keys(B).forEach(o=>{E(o,B[o])});const F=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,y=o.data.session);break}},q=()=>{let o=e.getDevice(k);if(o)return o==="PC"?"dk":"mtWeb"},R=()=>{const o=new URL(`${s}/${b}/profile-menu?env=${m}`);o.searchParams.append("device",q()),fetch(o.href).then(M=>M.json()).then(M=>{n(7,A=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,i=!0)})},G=()=>{let o=new URL(`${r}/v1/player/${f}/profile`);o.searchParams.append("userRoles",_);let M={method:"GET",headers:{"X-SessionID":y}};fetch(o.href,M).then(w=>w.json()).then(w=>{n(9,I=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(24,v=!0)})},L=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},T=()=>{var o;n(8,x=(o=A.find(M=>M.path.includes(c)))==null?void 0:o.id)},N=()=>{J(b)},Q=()=>{G()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const X=o=>L(o);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{P=o,n(5,P)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(16,s=o.cmsendpoint),"env"in o&&n(17,m=o.env),"session"in o&&n(0,y=o.session),"playerid"in o&&n(18,f=o.playerid),"lang"in o&&n(19,b=o.lang),"userroles"in o&&n(20,_=o.userroles),"clientstyling"in o&&n(2,g=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(21,u=o.translationurl),"activemenuitem"in o&&n(22,c=o.activemenuitem),"mbsource"in o&&n(4,p=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,d=!i||!v),l.$$.dirty[0]&524288&&b&&N(),l.$$.dirty[0]&786435&&r&&y&&f&&b&&Q(),l.$$.dirty[0]&720896&&s&&b&&m&&R(),l.$$.dirty[0]&4194304&&c&&T(),l.$$.dirty[0]&36&&g&&P&&e.setClientStyling(P,g),l.$$.dirty[0]&40&&h&&P&&e.setClientStylingURL(P,h),l.$$.dirty[0]&48&&p&&P&&e.setStreamStyling(P,`${p}.Style`),l.$$.dirty[0]&2097152&&u&&U()},[y,r,g,h,p,P,d,A,x,I,C,a,D,j,L,V,s,m,f,b,_,u,c,i,v,X,Z]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,userroles:20,clientstyling:2,clientstylingurl:3,translationurl:21,activemenuitem:22,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[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}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[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[20]}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[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[22]}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(O,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=O;