@everymatrix/player-account-controller 1.54.12 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/components/{GeneralLogout-CMYMtWfC.cjs → GeneralLogout-9pZTJKCj.cjs} +4 -4
  2. package/components/{GeneralLogout-CwSCMNgW.js → GeneralLogout-DH2dZPHM.js} +744 -729
  3. package/components/{GeneralLogout-BO_iHKNr.js → GeneralLogout-DKa2JUny.js} +617 -602
  4. package/components/PlayerAccountBettingHistory-BgdXC00n.cjs +1 -0
  5. package/components/{PlayerAccountBettingHistory-BoeZFFFu.js → PlayerAccountBettingHistory-CxIU3NjD.js} +127 -131
  6. package/components/PlayerAccountBettingHistory-DcspNMNL.js +329 -0
  7. package/components/{PlayerAccountBiometrics-DbzqR4YB.cjs → PlayerAccountBiometrics-8CaZALdD.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-TQaVyCUp.js → PlayerAccountBiometrics-BBYUw87N.js} +126 -127
  9. package/components/{PlayerAccountBiometrics-C6n6AU67.js → PlayerAccountBiometrics-D3fKLHtV.js} +126 -127
  10. package/components/{PlayerAccountClosure-mb6TcNFj.js → PlayerAccountClosure-CtTfS7wl.js} +121 -122
  11. package/components/{PlayerAccountClosure-RO3lnj8F.js → PlayerAccountClosure-DJv7cY7T.js} +121 -122
  12. package/components/{PlayerAccountClosure-CoKkAlIq.cjs → PlayerAccountClosure-Z7IuAXPP.cjs} +1 -1
  13. package/components/PlayerAccountController-BfaTH0AY.cjs +1 -0
  14. package/components/{PlayerAccountController-Nco62fa4.js → PlayerAccountController-BqEnzpc6.js} +2707 -2169
  15. package/components/{PlayerAccountController-B99YscRG.js → PlayerAccountController-Djsrrn-h.js} +2713 -2175
  16. package/components/{PlayerAccountGamingLimits-DiyC185P.js → PlayerAccountGamingLimits-Bd5ti2Yy.js} +296 -245
  17. package/components/PlayerAccountGamingLimits-DoYSa5g4.cjs +1 -0
  18. package/components/{PlayerAccountGamingLimits-Bc6vqzq1.js → PlayerAccountGamingLimits-cnXxBvfZ.js} +296 -245
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-BnOXTUlS.js → PlayerAccountGamingLimitsConfirmationModal-CS4mjsLb.js} +123 -127
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CUg2My3V.cjs +1 -0
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-x0MkZXMQ.js → PlayerAccountGamingLimitsConfirmationModal-_MNPhSXy.js} +123 -127
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-dprcKEZC.js → PlayerAccountGamingLimitsGroupEdit-45Rp4DP_.js} +1086 -1090
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-DYe0OoaG.cjs → PlayerAccountGamingLimitsGroupEdit-ByRLb87-.cjs} +4 -4
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-Crmi-e6x.js → PlayerAccountGamingLimitsGroupEdit-C7OBS8be.js} +1086 -1090
  25. package/components/{PlayerAccountGamingLimitsHistory2-DiAUM6kQ.js → PlayerAccountGamingLimitsHistory2-VyLPwXZu.js} +219 -227
  26. package/components/{PlayerAccountGamingLimitsHistory2-CS4fpWhH.cjs → PlayerAccountGamingLimitsHistory2-XZt8OllP.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2-Dt9CSOvf.js → PlayerAccountGamingLimitsHistory2-mJtlR6Ge.js} +212 -220
  28. package/components/{PlayerAccountGamingLimitsInfoCard-Bd4vV7fT.js → PlayerAccountGamingLimitsInfoCard-BxU5hBOF.js} +644 -593
  29. package/components/{PlayerAccountGamingLimitsInfoCard-D9MKGXei.js → PlayerAccountGamingLimitsInfoCard-C7pCh3__.js} +644 -593
  30. package/components/PlayerAccountGamingLimitsInfoCard-c0kYK6Z1.cjs +1 -0
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-C9VhT1ek.js → PlayerAccountGamingLimitsPage2Gm16-CNiOjWfB.js} +1058 -1034
  32. package/components/PlayerAccountGamingLimitsPage2Gm16-Cha-RkAd.cjs +21 -0
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-WSk66pxJ.js → PlayerAccountGamingLimitsPage2Gm16-D66arvZd.js} +1157 -1133
  34. package/components/{PlayerAccountGamingLimitsPopup-C2R4OzUK.js → PlayerAccountGamingLimitsPopup-BzEwvjUN.js} +113 -117
  35. package/components/{PlayerAccountGamingLimitsPopup-zTXU7ohP.cjs → PlayerAccountGamingLimitsPopup-CfBYEYKc.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-DLqNpo7V.js → PlayerAccountGamingLimitsPopup-D3UUO_Eq.js} +113 -117
  37. package/components/PlayerAccountGamingLimitsWrapper2-5LQf2KmJ.js +1017 -0
  38. package/components/PlayerAccountGamingLimitsWrapper2-Bodw0FD-.js +1011 -0
  39. package/components/PlayerAccountGamingLimitsWrapper2-CFxTXIfS.cjs +1 -0
  40. package/components/{PlayerAccountGeneralConfirmationModal-BrcO0n_o.js → PlayerAccountGeneralConfirmationModal-CXql07aQ.js} +145 -146
  41. package/components/{PlayerAccountGeneralConfirmationModal-DHuSzGQn.js → PlayerAccountGeneralConfirmationModal-D8JPZNbs.js} +145 -146
  42. package/components/PlayerAccountGeneralConfirmationModal-Dr-ZkTHH.cjs +1 -0
  43. package/components/PlayerAccountMenu-5EvNrc-W.cjs +1 -0
  44. package/components/PlayerAccountMenu-BHWtSf34.js +684 -0
  45. package/components/PlayerAccountMenu-CKSsdVD4.js +683 -0
  46. package/components/PlayerAccountModal-CAL-lChv.js +209 -0
  47. package/components/PlayerAccountModal-CLW-XTid.cjs +1 -0
  48. package/components/PlayerAccountModal-c01xdqmW.js +209 -0
  49. package/components/PlayerAccountNotifications-B-haSjPr.cjs +1 -0
  50. package/components/PlayerAccountNotifications-Bvoot0Jw.js +368 -0
  51. package/components/PlayerAccountNotifications-CitVsKYm.js +369 -0
  52. package/components/{PlayerAccountSelfExclusion-Dlkeebgy.cjs → PlayerAccountSelfExclusion-CW1t2BNm.cjs} +92 -92
  53. package/components/{PlayerAccountSelfExclusion-C-Gq5xhb.js → PlayerAccountSelfExclusion-Cz0rML3Z.js} +1756 -1618
  54. package/components/{PlayerAccountSelfExclusion-Dsc1c5ET.js → PlayerAccountSelfExclusion-DzxXZ0NG.js} +1743 -1605
  55. package/components/{PlayerAccountTimeout-BrX6tkl3.js → PlayerAccountTimeout-9wxsYv0_.js} +496 -365
  56. package/components/PlayerAccountTimeout-CAWJeQ3d.cjs +1 -0
  57. package/components/{PlayerAccountTimeout-DPGSPm6O.js → PlayerAccountTimeout-gWHY_22Q.js} +496 -365
  58. package/components/PlayerActiveBonuses-D0jBzeb4.js +1055 -0
  59. package/components/PlayerActiveBonuses-DTgD47j8.cjs +1 -0
  60. package/components/PlayerActiveBonuses-qHNn2eq8.js +1056 -0
  61. package/components/{PlayerBonusCard-DqHyFS9o.cjs → PlayerBonusCard-5gtng8cd.cjs} +1 -1
  62. package/components/{PlayerBonusCard-Ci1k7NFv.js → PlayerBonusCard-CGoRkCFh.js} +149 -151
  63. package/components/{PlayerBonusCard-BtSC36hN.js → PlayerBonusCard-CaQEQ2Fx.js} +149 -151
  64. package/components/PlayerBonusHistory-C6p_5FRc.cjs +1 -0
  65. package/components/PlayerBonusHistory-DBCc2ItI.js +937 -0
  66. package/components/PlayerBonusHistory-DfQd--j_.js +938 -0
  67. package/components/{PlayerChangePassword-Bhfh3D2M.js → PlayerChangePassword-6dHXMBQg.js} +388 -392
  68. package/components/{PlayerChangePassword-B4VW3taV.cjs → PlayerChangePassword-BsM1lBfW.cjs} +2 -2
  69. package/components/{PlayerChangePassword-Dk7vlEEM.js → PlayerChangePassword-COdBpupf.js} +388 -392
  70. package/components/PlayerDeposit-0eaqfWH1.cjs +1 -0
  71. package/components/PlayerDeposit-CTXnx-k2.js +391 -0
  72. package/components/PlayerDeposit-DwxXelMX.js +391 -0
  73. package/components/{PlayerGamingHistory-CaYFZtwD.js → PlayerGamingHistory-4f_MiXvH.js} +337 -341
  74. package/components/PlayerGamingHistory-DAfDiFej.cjs +1 -0
  75. package/components/{PlayerGamingHistory-BPF2pyCO.js → PlayerGamingHistory-dDHtahYn.js} +363 -367
  76. package/components/{PlayerPendingWithdrawals-DQ_Nh38H.js → PlayerPendingWithdrawals-BFrv_-ow.js} +113 -114
  77. package/components/{PlayerPendingWithdrawals-DabTg_Hg.js → PlayerPendingWithdrawals-CHHH7JPW.js} +113 -114
  78. package/components/PlayerPendingWithdrawals-qMs8We3P.cjs +1 -0
  79. package/components/PlayerProfileInfo-DDHAv267.cjs +1 -0
  80. package/components/PlayerProfileInfo-DlA-e6OI.js +1821 -0
  81. package/components/PlayerProfileInfo-Yky_xo7E.js +1804 -0
  82. package/components/PlayerRealityCheck-BLlc8RGo.cjs +1 -0
  83. package/components/PlayerRealityCheck-Bn_ov_Ie.js +652 -0
  84. package/components/PlayerRealityCheck-JOxPFKqm.js +668 -0
  85. package/components/PlayerTransactionHistory-BqEXyDt-.cjs +1 -0
  86. package/components/PlayerTransactionHistory-CxRrWzgQ.js +314 -0
  87. package/components/PlayerTransactionHistory-CzOvo_E3.js +314 -0
  88. package/components/PlayerWithdrawal-1i-tYxaO.cjs +1 -0
  89. package/components/{PlayerWithdrawal-BrqShTsy.js → PlayerWithdrawal-BlhHRFmC.js} +136 -140
  90. package/components/{PlayerWithdrawal-ct79yXDc.js → PlayerWithdrawal-CnoGAUmo.js} +136 -140
  91. package/es2015/player-account-controller.cjs +1 -1
  92. package/es2015/player-account-controller.js +1 -1
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +1 -0
  96. package/stencil/{app-globals-0f993ce5-C0vi_PY4.js → app-globals-0f993ce5-DzSE6TtH.js} +4 -2
  97. package/stencil/{checkbox-group-input_9-BDryW6Wx.js → checkbox-group-input_9-B_RfUM6E.js} +86 -83
  98. package/stencil/{checkbox-group-input_9-B0JD93gn.cjs → checkbox-group-input_9-C2IUNSpC.cjs} +26 -26
  99. package/stencil/{checkbox-group-input_9-9b62GyCW.js → checkbox-group-input_9-C98yT4vw.js} +90 -87
  100. package/stencil/{general-input-BXIgsD0E.js → general-input-CqTf7ErJ.js} +1 -1
  101. package/stencil/{general-input-CwyM4h8z.js → general-input-DTHw5Z1Q.js} +1 -1
  102. package/stencil/{general-input-BL1L8PI-.cjs → general-input-wM2i7b57.cjs} +1 -1
  103. package/stencil/{index-0a27499c-BaAMIKJI.js → index-12dd2b03-B2coll71.js} +143 -142
  104. package/stencil/index-12dd2b03-Dd1hsUZX.cjs +1 -0
  105. package/stencil/{index-0a27499c-DaAhyku1.js → index-12dd2b03-YP3skHrn.js} +133 -132
  106. package/stencil/{index-92b64862-CK1ANWGa.cjs → index-92b64862-BRYoLHww.cjs} +1 -1
  107. package/stencil/{index-92b64862-Bnmv00O2.js → index-92b64862-C_69cKxK.js} +4 -4
  108. package/stencil/{index-92b64862-CO3_TP5h.js → index-92b64862-w9a1l35N.js} +4 -4
  109. package/stencil/{index-1d58b17d-CY3tvLdR.js → index-b1bdf3f6-0mlbFiN3.js} +121 -120
  110. package/stencil/{index-1d58b17d-BREebYgt.js → index-b1bdf3f6-DBuAhDH-.js} +128 -127
  111. package/stencil/index-b1bdf3f6-DdF5azN0.cjs +1 -0
  112. package/stencil/{index-45f4006f-D9GyS-vs.js → index-c7e52808-7ohcD8fQ.js} +44 -44
  113. package/stencil/index-c7e52808-DYutdKGj.cjs +1 -0
  114. package/stencil/{index-45f4006f-DKAxZFDZ.js → index-c7e52808-WCb5gCA6.js} +46 -46
  115. package/stencil/index-db5752f9-B4MZ13Fz.js +610 -0
  116. package/stencil/index-db5752f9-C_VcDZns.js +594 -0
  117. package/stencil/index-db5752f9-DSHLGBj_.cjs +1 -0
  118. package/stencil/{password-input_2-D3ziy4Iu.cjs → password-input_2-B2qvf6ku.cjs} +1 -1
  119. package/stencil/{password-input_2-ZN0C3aqj.js → password-input_2-CdHS5fmR.js} +3 -3
  120. package/stencil/{password-input_2-B5ePukhS.js → password-input_2-DdQvCp3o.js} +3 -3
  121. package/stencil/player-change-password-gm2-1hTMqepH.js +7 -0
  122. package/stencil/player-change-password-gm2-2YEpyazj.js +25 -0
  123. package/stencil/{player-change-password-gm2-2de114b8-BXdScOXy.js → player-change-password-gm2-38dff08c-BNhjxr22.js} +84 -65
  124. package/stencil/{player-change-password-gm2-2de114b8-D375sYxZ.js → player-change-password-gm2-38dff08c-CPRdwVFF.js} +84 -65
  125. package/stencil/player-change-password-gm2-38dff08c-DnYXSeKg.cjs +1 -0
  126. package/stencil/player-change-password-gm2-CDxgB3eD.cjs +1 -0
  127. package/stencil/player-kyc-verification-5V24oWMX.cjs +180 -0
  128. package/stencil/{player-kyc-verification-BZX3owFI.js → player-kyc-verification-BPrVDLfj.js} +79 -59
  129. package/stencil/{player-kyc-verification-KcMUMtzd.js → player-kyc-verification-CRwnm961.js} +84 -64
  130. package/stencil/{toggle-checkbox-input-BqotLJuA.js → toggle-checkbox-input-B4OOk9wz.js} +1 -1
  131. package/stencil/{toggle-checkbox-input-DFpk-vL2.js → toggle-checkbox-input-Cwo_Ny77.js} +1 -1
  132. package/stencil/{toggle-checkbox-input-n5b3s-CU.cjs → toggle-checkbox-input-tQDhlcag.cjs} +1 -1
  133. package/stencil/ui-skeleton-982450d2-BEC6vjfL.cjs +1 -0
  134. package/stencil/ui-skeleton-982450d2-CXoVwMz-.js +122 -0
  135. package/stencil/ui-skeleton-982450d2-DgSl7oS5.js +122 -0
  136. package/stencil/ui-skeleton-BjdFVTvB.cjs +1 -0
  137. package/stencil/ui-skeleton-BkychLQM.js +29 -0
  138. package/stencil/ui-skeleton-Bw-C78oa.js +11 -0
  139. package/stencil/{user-deposit-withdrawal-6RE0dcHP.js → user-deposit-withdrawal-51pO8ttC.js} +181 -164
  140. package/stencil/user-deposit-withdrawal-Bn1WPRou.cjs +59 -0
  141. package/stencil/{user-deposit-withdrawal-D7AuBXPO.js → user-deposit-withdrawal-C0SOQks0.js} +257 -240
  142. package/stencil/user-transaction-history-8EskARbv.cjs +1 -0
  143. package/stencil/user-transaction-history-BsTUJ4on.js +350 -0
  144. package/stencil/user-transaction-history-LRgu-JMX.js +374 -0
  145. package/stencil/{vaadin-button-mixin-b8087c3c-DTenw4S9.js → vaadin-button-mixin-ef61174c-B_vhSFKU.js} +1 -1
  146. package/stencil/{vaadin-button-mixin-b8087c3c-BzMgQwsM.cjs → vaadin-button-mixin-ef61174c-DuDVejN4.cjs} +1 -1
  147. package/stencil/{vaadin-button-mixin-b8087c3c-DMeIIR12.js → vaadin-button-mixin-ef61174c-EQiVsI4x.js} +1 -1
  148. package/components/PlayerAccountBettingHistory-C6G8D9gE.js +0 -333
  149. package/components/PlayerAccountBettingHistory-Cb8OMNy9.cjs +0 -1
  150. package/components/PlayerAccountController-C2q8ibgU.cjs +0 -1
  151. package/components/PlayerAccountGamingLimits-DbX9_Kpb.cjs +0 -1
  152. package/components/PlayerAccountGamingLimitsConfirmationModal-CnGLRHzu.cjs +0 -1
  153. package/components/PlayerAccountGamingLimitsInfoCard-DFsD9RSx.cjs +0 -1
  154. package/components/PlayerAccountGamingLimitsPage2Gm16-8-RWZDSp.cjs +0 -21
  155. package/components/PlayerAccountGamingLimitsWrapper2-CXP2X7Lk.cjs +0 -1
  156. package/components/PlayerAccountGamingLimitsWrapper2-Cr1xbzbX.js +0 -866
  157. package/components/PlayerAccountGamingLimitsWrapper2-D3NmPjvT.js +0 -860
  158. package/components/PlayerAccountGeneralConfirmationModal-CnGS36kY.cjs +0 -1
  159. package/components/PlayerAccountMenu-Bnj75Pyr.js +0 -578
  160. package/components/PlayerAccountMenu-VCDFEkVV.js +0 -579
  161. package/components/PlayerAccountMenu-kULPvwXH.cjs +0 -1
  162. package/components/PlayerAccountModal-BGNjm-FU.js +0 -213
  163. package/components/PlayerAccountModal-DLxnK5Aq.cjs +0 -1
  164. package/components/PlayerAccountModal-d2eY7pgp.js +0 -213
  165. package/components/PlayerAccountNotifications-BkPn9o0x.js +0 -261
  166. package/components/PlayerAccountNotifications-DLpnh54-.cjs +0 -1
  167. package/components/PlayerAccountNotifications-DwHaboef.js +0 -261
  168. package/components/PlayerAccountTimeout-DX8TE-kL.cjs +0 -1
  169. package/components/PlayerActiveBonuses-DZ1TuekM.js +0 -1088
  170. package/components/PlayerActiveBonuses-T1itpvjq.cjs +0 -1
  171. package/components/PlayerActiveBonuses-WBu-rYFj.js +0 -1089
  172. package/components/PlayerBonusHistory-C7m0o7Yl.js +0 -919
  173. package/components/PlayerBonusHistory-D-qDx10G.cjs +0 -1
  174. package/components/PlayerBonusHistory-DDNLaEBO.js +0 -920
  175. package/components/PlayerDeposit-B04mpHHT.js +0 -395
  176. package/components/PlayerDeposit-CH0pw_GN.cjs +0 -1
  177. package/components/PlayerDeposit-DJXOEJyq.js +0 -395
  178. package/components/PlayerGamingHistory-CcFH-mIk.cjs +0 -1
  179. package/components/PlayerPendingWithdrawals-BvhoX5n1.cjs +0 -1
  180. package/components/PlayerProfileInfo-AEY5xCAX.js +0 -1740
  181. package/components/PlayerProfileInfo-D7thO7JS.js +0 -1757
  182. package/components/PlayerProfileInfo-DQflJzdX.cjs +0 -1
  183. package/components/PlayerRealityCheck-6ZyJUl5U.js +0 -598
  184. package/components/PlayerRealityCheck-CzPyJQgR.js +0 -582
  185. package/components/PlayerRealityCheck-DMI_8YfG.cjs +0 -1
  186. package/components/PlayerTransactionHistory-CSK3J3Na.js +0 -315
  187. package/components/PlayerTransactionHistory-Dj8ABxFp.cjs +0 -1
  188. package/components/PlayerTransactionHistory-DmTfwUdw.js +0 -315
  189. package/components/PlayerWithdrawal-BwymNFiL.cjs +0 -1
  190. package/stencil/app-globals-0f993ce5-8artnnwr.cjs +0 -1
  191. package/stencil/index-0a27499c-vG7Av-0V.cjs +0 -1
  192. package/stencil/index-1d58b17d-oagDV-gC.cjs +0 -1
  193. package/stencil/index-45f4006f-CL2s7me-.cjs +0 -1
  194. package/stencil/player-change-password-gm2-2de114b8-j-W8UbVm.cjs +0 -1
  195. package/stencil/player-change-password-gm2-BDCYchnQ.js +0 -25
  196. package/stencil/player-change-password-gm2-CQtvRl58.js +0 -7
  197. package/stencil/player-change-password-gm2-DLw7pfT_.cjs +0 -1
  198. package/stencil/player-kyc-verification-CnOn9bB_.cjs +0 -180
  199. package/stencil/user-deposit-withdrawal-BZXlCCQr.cjs +0 -59
  200. package/stencil/user-transaction-history-CLdEzp7O.cjs +0 -1
  201. package/stencil/user-transaction-history-CtDvqHoF.js +0 -329
  202. package/stencil/user-transaction-history-DW482EoT.js +0 -355
@@ -1,29 +1,29 @@
1
- var u = (e, n, t) => new Promise((o, a) => {
1
+ var u = (e, n, t) => new Promise((a, o) => {
2
2
  var l = (d) => {
3
3
  try {
4
4
  s(t.next(d));
5
5
  } catch (p) {
6
- a(p);
6
+ o(p);
7
7
  }
8
8
  }, c = (d) => {
9
9
  try {
10
10
  s(t.throw(d));
11
11
  } catch (p) {
12
- a(p);
12
+ o(p);
13
13
  }
14
- }, s = (d) => d.done ? o(d.value) : Promise.resolve(d.value).then(l, c);
14
+ }, s = (d) => d.done ? a(d.value) : Promise.resolve(d.value).then(l, c);
15
15
  s((t = t.apply(e, n)).next());
16
16
  });
17
- import { b as g, p as y, r as v, h as i, F as m } from "./index-1d58b17d-BREebYgt.js";
18
- import { a as w } from "./app-globals-0f993ce5-C0vi_PY4.js";
19
- var C = () => {
17
+ import { b as v, p as w, r as C, h as i, F as m } from "./index-b1bdf3f6-DBuAhDH-.js";
18
+ import { a as k } from "./app-globals-0f993ce5-DzSE6TtH.js";
19
+ var x = () => {
20
20
  const e = import.meta.url, n = {};
21
- return e !== "" && (n.resourcesUrl = new URL(".", e).href), y(n);
21
+ return e !== "" && (n.resourcesUrl = new URL(".", e).href), w(n);
22
22
  };
23
- C().then((e) => u(void 0, null, function* () {
24
- return yield w(), g([["player-kyc-verification", [[1, "player-kyc-verification", { userId: [1, "user-id"], session: [1], language: [1], endpoint: [1], translationUrl: [1, "translation-url"], clientStyling: [1, "client-styling"], verifiedIcon: [1, "verified-icon"], failedIcon: [1, "failed-icon"], defaultIcon: [1, "default-icon"], clientStylingUrl: [1, "client-styling-url"], verificationType: [32], isLoading: [32], stylingAppends: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], selectedOption: [32], expandedOnDesktop: [32] }, null, { translationUrl: ["handleNewTranslations"] }]]]], e);
23
+ x().then((e) => u(void 0, null, function* () {
24
+ return yield k(), v([["player-kyc-verification", [[1, "player-kyc-verification", { userId: [1, "user-id"], session: [1], language: [1], endpoint: [1], translationUrl: [1, "translation-url"], clientStyling: [1, "client-styling"], verifiedIcon: [1, "verified-icon"], failedIcon: [1, "failed-icon"], defaultIcon: [1, "default-icon"], clientStylingUrl: [1, "client-styling-url"], mbSource: [1, "mb-source"], verificationType: [32], isLoading: [32], selectedFile: [32], uploadingStatus: [32], uploadSizeExceeded: [32], selectedOption: [32], expandedOnDesktop: [32] }, null, { translationUrl: ["handleNewTranslations"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"] }]]]], e);
25
25
  }));
26
- const x = "en";
26
+ const S = "en";
27
27
  let f = {
28
28
  en: {
29
29
  loading: "Loading, please wait ...",
@@ -512,16 +512,40 @@ let f = {
512
512
  };
513
513
  const h = (e) => new Promise((n) => {
514
514
  fetch(e).then((t) => t.json()).then((t) => {
515
- Object.keys(t).forEach((o) => {
516
- f[o] || (f[o] = {});
517
- for (let a in t[o])
518
- f[o][a] = t[o][a];
515
+ Object.keys(t).forEach((a) => {
516
+ f[a] || (f[a] = {});
517
+ for (let o in t[a])
518
+ f[a][o] = t[a][o];
519
519
  }), n(!0);
520
520
  });
521
521
  }), r = (e, n, t) => {
522
- const o = n;
523
- return f[o !== void 0 && o in f ? o : x][e];
524
- }, k = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), b = `:host {
522
+ const a = n;
523
+ return f[a !== void 0 && a in f ? a : S][e];
524
+ }, b = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
525
+ function g(e, n) {
526
+ if (e) {
527
+ const t = document.createElement("style");
528
+ t.innerHTML = n, e.appendChild(t);
529
+ }
530
+ }
531
+ function y(e, n) {
532
+ const t = new URL(n);
533
+ fetch(t.href).then((a) => a.text()).then((a) => {
534
+ const o = document.createElement("style");
535
+ o.innerHTML = a, e && e.appendChild(o);
536
+ }).catch((a) => {
537
+ console.error("There was an error while trying to load client styling from URL", a);
538
+ });
539
+ }
540
+ function P(e, n, t) {
541
+ if (window.emMessageBus) {
542
+ const a = document.createElement("style");
543
+ window.emMessageBus.subscribe(n, (o) => {
544
+ a.innerHTML = o, e && e.appendChild(a);
545
+ });
546
+ }
547
+ }
548
+ const D = `:host {
525
549
  font-family: inherit;
526
550
  }
527
551
 
@@ -700,21 +724,9 @@ button, select {
700
724
  .player-kyc-verification-widget .verification-types {
701
725
  grid-template-columns: repeat(2, 1fr);
702
726
  }
703
- }`, S = b, P = class {
727
+ }`, I = D, O = class {
704
728
  constructor(e) {
705
- v(this, e), this.userId = "", this.session = "", this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.verificationType = [], this.isLoading = !1, this.stylingAppends = !1, this.selectedFile = null, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1, this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = k(this.userAgent), this.setClientStyling = () => {
706
- let n = document.createElement("style");
707
- n.innerHTML = this.clientStyling, this.stylingContainer.prepend(n);
708
- }, this.setClientStylingURL = () => {
709
- let n = new URL(this.clientStylingUrl), t = document.createElement("style");
710
- fetch(n.href).then((o) => o.text()).then((o) => {
711
- t.innerHTML = o, setTimeout(() => {
712
- this.stylingContainer.prepend(t);
713
- }, 1);
714
- }).catch((o) => {
715
- console.log("error ", o);
716
- });
717
- }, this.handleToggleScreen = () => {
729
+ C(this, e), this.userId = "", this.session = "", this.endpoint = "", this.translationUrl = "", this.clientStyling = "", this.verifiedIcon = "", this.failedIcon = "", this.defaultIcon = "", this.clientStylingUrl = "", this.verificationType = [], this.isLoading = !1, this.selectedFile = null, this.uploadSizeExceeded = !1, this.expandedOnDesktop = !1, this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = b(this.userAgent), this.handleToggleScreen = () => {
718
730
  this.toggleScreen(this.isMobile);
719
731
  };
720
732
  }
@@ -728,12 +740,15 @@ button, select {
728
740
  this.translationUrl.length > 2 && (yield h(this.translationUrl));
729
741
  });
730
742
  }
731
- componentDidRender() {
732
- !this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
743
+ handleClientStylingChange(e, n) {
744
+ e != n && g(this.stylingContainer, this.clientStyling);
745
+ }
746
+ handleClientStylingUrlChange(e, n) {
747
+ e != n && this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl);
733
748
  }
734
749
  componentDidLoad() {
735
750
  return u(this, null, function* () {
736
- window.innerWidth > 700 && (this.expandedOnDesktop = !0);
751
+ this.stylingContainer && (window.emMessageBus != null ? P(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && g(this.stylingContainer, this.clientStyling), this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl))), window.innerWidth > 700 && (this.expandedOnDesktop = !0);
737
752
  try {
738
753
  let e = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
739
754
  const n = {
@@ -758,17 +773,20 @@ button, select {
758
773
  }
759
774
  });
760
775
  }
776
+ disconnectedCallback() {
777
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
778
+ }
761
779
  handleOptionChange(e, n) {
762
780
  const t = e.target;
763
- this.selectedOption = t.value, this.verificationType = this.verificationType.map((o) => (o.type === n && (o.optionChosen = t.value), o));
781
+ this.selectedOption = t.value, this.verificationType = this.verificationType.map((a) => (a.type === n && (a.optionChosen = t.value), a));
764
782
  }
765
783
  handleDocumentsStatus(e, n, t) {
766
- this.verificationType = this.verificationType.map((o) => {
767
- if (o.type === e) {
768
- const a = o.documents.find((l) => l.code === t);
769
- a && (a.statusUploaded = n);
784
+ this.verificationType = this.verificationType.map((a) => {
785
+ if (a.type === e) {
786
+ const o = a.documents.find((l) => l.code === t);
787
+ o && (o.statusUploaded = n);
770
788
  }
771
- return o;
789
+ return a;
772
790
  });
773
791
  }
774
792
  downloadPDF(e) {
@@ -777,8 +795,8 @@ button, select {
777
795
  }
778
796
  toggleVerificationType(e, n) {
779
797
  this.expandedOnDesktop = !1, this.verificationType = this.verificationType.map((t) => {
780
- var o;
781
- return t.type === e && ((o = t.flowInfo) === null || o === void 0 ? void 0 : o.type) == n && (t.expanded = !t.expanded), t;
798
+ var a;
799
+ return t.type === e && ((a = t.flowInfo) === null || a === void 0 ? void 0 : a.type) == n && (t.expanded = !t.expanded), t;
782
800
  });
783
801
  }
784
802
  toggleScreen(e) {
@@ -795,7 +813,7 @@ button, select {
795
813
  if (this.selectedFile = e, !this.checkFileSize(this.selectedFile))
796
814
  console.error(r("fileSizeExceeded", this.language)), this.uploadingStatus = r("fileSizeExceeded", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), this.uploadSizeExceeded = !0;
797
815
  else {
798
- const o = {
816
+ const a = {
799
817
  method: "POST",
800
818
  headers: {
801
819
  "Content-Type": "application/json",
@@ -803,32 +821,32 @@ button, select {
803
821
  },
804
822
  body: JSON.stringify({ DocumentCode: n })
805
823
  };
806
- fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`, o).then((a) => {
807
- if (a.ok)
808
- return this.uploadingStatus = r("uploading", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), a.json();
809
- }).then((a) => {
824
+ fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`, a).then((o) => {
825
+ if (o.ok)
826
+ return this.uploadingStatus = r("uploading", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), o.json();
827
+ }).then((o) => {
810
828
  const l = new FormData();
811
- l.append(n, this.selectedFile[0]), fetch(a.Url, { method: "POST", body: l }).then((c) => {
829
+ l.append(n, this.selectedFile[0]), fetch(o.Url, { method: "POST", body: l }).then((c) => {
812
830
  c.ok ? (this.selectedFile.length > 1 ? this.uploadingStatus = r("successUploadMultipleFiles", this.language) : this.uploadingStatus = r("successUpload", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n)) : (this.uploadingStatus = r("failedUpload", this.language), this.handleDocumentsStatus(t, this.uploadingStatus, n), console.error("File upload error:", c.status));
813
831
  }).catch((c) => {
814
832
  console.error("File upload error:", c);
815
833
  });
816
- }).catch((a) => {
817
- console.error("File upload error:", a);
834
+ }).catch((o) => {
835
+ console.error("File upload error:", o);
818
836
  });
819
837
  }
820
838
  }
821
839
  importScript(e) {
822
840
  return new Promise((n, t) => {
823
- fetch(e).then((o) => o.text()).then((o) => {
824
- if (new Function(o)(), this.scriptInjected)
841
+ fetch(e).then((a) => a.text()).then((a) => {
842
+ if (new Function(a)(), this.scriptInjected)
825
843
  n(!0);
826
844
  else {
827
845
  const l = document.createElement("script");
828
846
  l.src = "https://test.insic.de/frontend3/static/js/avs-loader.min.js", document.head.appendChild(l), this.scriptInjected = !0, n(!0);
829
847
  }
830
- }).catch((o) => {
831
- t(o);
848
+ }).catch((a) => {
849
+ t(a);
832
850
  });
833
851
  });
834
852
  }
@@ -837,29 +855,31 @@ button, select {
837
855
  }
838
856
  renderVerificationTypeBox(e) {
839
857
  this.expandedOnDesktop && (e.expanded = !0);
840
- let n = e.expanded, t = e.type.trim(), o = e.optionChosen, a = e.status, l = e.documents, c = e.flowInfo;
841
- const s = a === "Verified", d = a === "Failed" || a === "Expired";
858
+ let n = e.expanded, t = e.type.trim(), a = e.optionChosen, o = e.status, l = e.documents, c = e.flowInfo;
859
+ const s = o === "Verified", d = o === "Failed" || o === "Expired";
842
860
  return i("div", { class: `verification-box ${n ? "expanded" : ""} ${d ? "failed" : ""} ${s ? "success" : ""}` }, i("div", { class: `box box-header ${n ? "expanded" : ""}`, onClick: () => {
843
861
  var p;
844
862
  return this.toggleVerificationType(e.type, (p = e.flowInfo) === null || p === void 0 ? void 0 : p.type);
845
- } }, i("div", { class: "box-icon" }, s ? i("div", null, this.verifiedIcon ? i("img", { class: "CustomVerifiedIcon", src: this.verifiedIcon, alt: "" }) : i("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "#388D79" }), i("circle", { cx: "50", cy: "50", r: "34", fill: "none", stroke: "#fff", "stroke-width": "12px" }), i("polyline", { points: "30,50 45,63 70,35", fill: "none", stroke: "#fff", "stroke-width": "8px" }))) : d ? i("div", null, this.failedIcon ? i("img", { class: "CustomFailedIcon", src: this.failedIcon, alt: "" }) : i("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "red" }), i("line", { x1: "30", y1: "30", x2: "70", y2: "70", stroke: "#fff", "stroke-width": "10px" }), i("line", { x1: "30", y1: "70", x2: "70", y2: "30", stroke: "#fff", "stroke-width": "10px" }))) : i("div", null, this.defaultIcon ? i("img", { class: "CustomDefaultIcon", src: this.defaultIcon, alt: "" }) : i("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { d: "M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M9 13H15", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M9 17H12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M14 2V6C14 7.10457 14.8954 8 16 8H20", stroke: "#000000", "stroke-width": "2", "stroke-linejoin": "round" })))), i("div", { class: "box-title" }, r(t, this.language)), i("div", { class: "chevron-icon" }, i("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, i("path", { d: n ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" })))), n ? this.renderExpandedContent(e, o, a, l, c, s, d) : i("div", { class: "box box-content" }, i("div", { id: "__avs-wrapper" })));
863
+ } }, i("div", { class: "box-icon" }, s ? i("div", null, this.verifiedIcon ? i("img", { class: "CustomVerifiedIcon", src: this.verifiedIcon, alt: "" }) : i("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "#388D79" }), i("circle", { cx: "50", cy: "50", r: "34", fill: "none", stroke: "#fff", "stroke-width": "12px" }), i("polyline", { points: "30,50 45,63 70,35", fill: "none", stroke: "#fff", "stroke-width": "8px" }))) : d ? i("div", null, this.failedIcon ? i("img", { class: "CustomFailedIcon", src: this.failedIcon, alt: "" }) : i("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "red" }), i("line", { x1: "30", y1: "30", x2: "70", y2: "70", stroke: "#fff", "stroke-width": "10px" }), i("line", { x1: "30", y1: "70", x2: "70", y2: "30", stroke: "#fff", "stroke-width": "10px" }))) : i("div", null, this.defaultIcon ? i("img", { class: "CustomDefaultIcon", src: this.defaultIcon, alt: "" }) : i("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { d: "M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M9 13H15", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M9 17H12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), i("path", { d: "M14 2V6C14 7.10457 14.8954 8 16 8H20", stroke: "#000000", "stroke-width": "2", "stroke-linejoin": "round" })))), i("div", { class: "box-title" }, r(t, this.language)), i("div", { class: "chevron-icon" }, i("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, i("path", { d: n ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" })))), n ? this.renderExpandedContent(e, a, o, l, c, s, d) : i("div", { class: "box box-content" }, i("div", { id: "__avs-wrapper" })));
846
864
  }
847
865
  renderDocumentsActions(e, n, t) {
848
- return i("div", null, this.isStatusUploaded(e) ? i("div", { class: "upload-status" }, r("uploaded", this.language)) : e != null && e.statusUploaded ? i("div", { class: "upload-status" }, e == null ? void 0 : e.statusUploaded) : i("div", { class: "documents-action" }, i("div", { class: "sample-file" }, (e == null ? void 0 : e.sampleType) === "FileDownload" ? i("button", { class: "download-button", onClick: () => this.downloadPDF(e == null ? void 0 : e.sampleUrl) }, i("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { d: "M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" }), i("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" })), i("span", null, r("download", this.language))) : null), i("div", { class: "upload-button" }, n ? i("label", null, i("input", { type: "file", accept: "*", onChange: (o) => this.handleFileSelection(o.target.files, this.selectedOption, t.type), style: { display: "none" } }), i("svg", { width: "100", height: "100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" }), i("line", { x1: "30", y1: "50", x2: "70", y2: "50", stroke: "white", "stroke-width": "6" }), i("line", { x1: "50", y1: "30", x2: "50", y2: "70", stroke: "white", "stroke-width": "6" }))) : null)));
866
+ return i("div", null, this.isStatusUploaded(e) ? i("div", { class: "upload-status" }, r("uploaded", this.language)) : e != null && e.statusUploaded ? i("div", { class: "upload-status" }, e == null ? void 0 : e.statusUploaded) : i("div", { class: "documents-action" }, i("div", { class: "sample-file" }, (e == null ? void 0 : e.sampleType) === "FileDownload" ? i("button", { class: "download-button", onClick: () => this.downloadPDF(e == null ? void 0 : e.sampleUrl) }, i("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { d: "M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" }), i("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" })), i("span", null, r("download", this.language))) : null), i("div", { class: "upload-button" }, n ? i("label", null, i("input", { type: "file", accept: "*", onChange: (a) => this.handleFileSelection(a.target.files, this.selectedOption, t.type), style: { display: "none" } }), i("svg", { width: "100", height: "100", xmlns: "http://www.w3.org/2000/svg" }, i("circle", { cx: "50", cy: "50", r: "40", fill: "var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))" }), i("line", { x1: "30", y1: "50", x2: "70", y2: "50", stroke: "white", "stroke-width": "6" }), i("line", { x1: "50", y1: "30", x2: "50", y2: "70", stroke: "white", "stroke-width": "6" }))) : null)));
849
867
  }
850
- renderExpandedContent(e, n, t, o, a, l, c) {
851
- return (a == null ? void 0 : a.type) === "Widget" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : (a == null ? void 0 : a.type) === "Redirect" && e.vendorName !== "Manual" && t !== "Verified" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: a.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : i("div", { class: "box box-content" }, i(m, null, l ? i("div", { class: "verification-status" }, r("verificationComplete", this.language)) : c ? i("div", { class: "verification-status" }, t === "Failed" ? r("verificationFailed", this.language) : r("verificationExpired", this.language)) : o.length > 0 ? i("div", { class: "documents-dropdown" }, i("select", { class: "nice-select", onChange: (s) => this.handleOptionChange(s, e.type) }, i("option", { value: "", selected: !0, disabled: !0, hidden: !0 }, r("chooseDocument", this.language)), o.map((s) => i("option", { selected: n == s.code, value: s.code }, r(s.type, this.language)))), this.renderDocumentsActions(o.find((s) => s.code === n), n, e)) : null));
868
+ renderExpandedContent(e, n, t, a, o, l, c) {
869
+ return (o == null ? void 0 : o.type) === "Widget" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: o.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : (o == null ? void 0 : o.type) === "Redirect" && e.vendorName !== "Manual" && t !== "Verified" ? i("div", null, i("hr", { style: { margin: "5px" } }), i("iframe", { src: o.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: !0, allow: "camera *;microphone *" })) : i("div", { class: "box box-content" }, i(m, null, l ? i("div", { class: "verification-status" }, r("verificationComplete", this.language)) : c ? i("div", { class: "verification-status" }, t === "Failed" ? r("verificationFailed", this.language) : r("verificationExpired", this.language)) : a.length > 0 ? i("div", { class: "documents-dropdown" }, i("select", { class: "nice-select", onChange: (s) => this.handleOptionChange(s, e.type) }, i("option", { value: "", selected: !0, disabled: !0, hidden: !0 }, r("chooseDocument", this.language)), a.map((s) => i("option", { selected: n == s.code, value: s.code }, r(s.type, this.language)))), this.renderDocumentsActions(a.find((s) => s.code === n), n, e)) : null));
852
870
  }
853
871
  render() {
854
872
  return this.isLoading ? i("div", null, i("p", null, r("loading", this.language))) : i("div", { class: "ModalContainer", ref: (e) => this.stylingContainer = e }, i("div", { class: "player-kyc-verification-widget" }, this.isMobile ? i("div", { class: "MenuReturnButton", onClick: this.handleToggleScreen }, i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, i("defs", null), i("g", { transform: "translate(-20 -158)" }, i("g", { transform: "translate(20 158)" }, i("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), i("h2", null, r("kycTitle", this.language))) : i("h2", null, r("kycTitle", this.language)), this.verificationType.length === 0 ? i("div", { class: "no-verification-description", style: { padding: "24px", fontSize: "18px" } }, r("noVerificationRequired", this.language)) : i(m, null, i("div", { class: "widget-description" }, r("kycDescription", this.language)), i("div", { class: "verification-types" }, this.verificationType.map((e) => e ? this.renderVerificationTypeBox(e) : null)))));
855
873
  }
856
874
  static get watchers() {
857
875
  return {
858
- translationUrl: ["handleNewTranslations"]
876
+ translationUrl: ["handleNewTranslations"],
877
+ clientStyling: ["handleClientStylingChange"],
878
+ clientStylingUrl: ["handleClientStylingUrlChange"]
859
879
  };
860
880
  }
861
881
  };
862
- P.style = S;
882
+ O.style = I;
863
883
  export {
864
- P as player_kyc_verification
884
+ O as player_kyc_verification
865
885
  };
@@ -1,4 +1,4 @@
1
- import { r as l, c as o, h as t } from "./index-92b64862-CO3_TP5h.js";
1
+ import { r as l, c as o, h as t } from "./index-92b64862-C_69cKxK.js";
2
2
  import { t as a } from "./locale-BG_TzyDt.js";
3
3
  import { t as r } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
4
  const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', n = s, c = class {
@@ -1,4 +1,4 @@
1
- import { r as l, c as o, h as t } from "./index-92b64862-Bnmv00O2.js";
1
+ import { r as l, c as o, h as t } from "./index-92b64862-w9a1l35N.js";
2
2
  import { t as a } from "./locale-BG_TzyDt.js";
3
3
  import { t as r } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
4
  const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', n = s, c = class {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-92b64862-CK1ANWGa.cjs"),l=require("./locale-B5abSHU_.cjs"),a=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),r='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',s=r,o=class{constructor(e){t.registerInstance(this,e),this.sendValidityState=t.createEvent(this,"sendValidityState"),this.sendInputValue=t.createEvent(this,"sendInputValue"),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true",this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)}}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return l.translate("requiredError",this.language)}renderLabel(){return t.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},t.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?t.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return t.h("div",{key:"8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},t.h("div",{key:"18e2ec43ff98738323ddab1e134d6d215978e1c7",class:"togglecheckbox__wrapper--flex"},t.h("input",{key:"640b3ba4fd34bd813239533236e51f452e735409",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),t.h("small",{key:"efd70a691559cfa98e93561dd945a0fe92909718",class:"togglecheckbox__error-message"},this.errorMessage),t.h("div",{key:"e56a8fafa17da25d01f894fe6e6c143c318d2aab",class:"togglecheckbox__wrapper--relative"},this.tooltip&&t.h("img",{key:"8b59366827b8f4f8ca5581203a2dca44ae8132d5",class:"togglecheckbox__tooltip-icon",src:a.tooltipIconSvg,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),t.h("div",{key:"475e27345b51396c36e78b5a1e06edd980bc3ae1",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(e=>t.h("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:e.placeholder==null?"":e.placeholder}))))}};o.style=s;exports.toggle_checkbox_input=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-92b64862-BRYoLHww.cjs"),l=require("./locale-B5abSHU_.cjs"),a=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),r='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',s=r,o=class{constructor(e){t.registerInstance(this,e),this.sendValidityState=t.createEvent(this,"sendValidityState"),this.sendInputValue=t.createEvent(this,"sendInputValue"),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true",this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)}}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return l.translate("requiredError",this.language)}renderLabel(){return t.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},t.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?t.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return t.h("div",{key:"8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},t.h("div",{key:"18e2ec43ff98738323ddab1e134d6d215978e1c7",class:"togglecheckbox__wrapper--flex"},t.h("input",{key:"640b3ba4fd34bd813239533236e51f452e735409",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),t.h("small",{key:"efd70a691559cfa98e93561dd945a0fe92909718",class:"togglecheckbox__error-message"},this.errorMessage),t.h("div",{key:"e56a8fafa17da25d01f894fe6e6c143c318d2aab",class:"togglecheckbox__wrapper--relative"},this.tooltip&&t.h("img",{key:"8b59366827b8f4f8ca5581203a2dca44ae8132d5",class:"togglecheckbox__tooltip-icon",src:a.tooltipIconSvg,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),t.h("div",{key:"475e27345b51396c36e78b5a1e06edd980bc3ae1",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(e=>t.h("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:e.placeholder==null?"":e.placeholder}))))}};o.style=s;exports.toggle_checkbox_input=o;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./index-db5752f9-DSHLGBj_.cjs"),n=".Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",s=n,i=class{constructor(t){r.registerInstance(this,t),this.animation=!0}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}updateStyles(){this.primaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color",this.primaryColor),this.secondaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color",this.secondaryColor)}handleStructure(t){switch(t){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle()}}renderLogo(){const t={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:e=>this.skeletonContainer=e},r.h("div",{style:t,class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){const t={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:e=>this.skeletonContainer=e},r.h("div",{style:t,class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){const t={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:e=>this.skeletonContainer=e},r.h("div",{style:t,class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){const t={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return Array.from({length:this.rows>0?this.rows:1}).map((e,o)=>r.h("div",{style:t,key:o,class:"Text "+(this.animation?"Skeleton":"")}))}renderRectangle(){const t={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:e=>this.skeletonContainer=e},r.h("div",{style:t,class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){const t={width:`${this.size}`,height:`${this.size}`,"background-color":`${this.color}`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return r.h("div",{ref:e=>this.skeletonContainer=e},r.h("div",{style:t,class:"Circle "+(this.animation?"Skeleton":"")}))}componentDidLoad(){this.updateStyles()}render(){return this.handleStructure(this.structure)}static get watchers(){return{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}}};i.style=s;exports.UiSkeleton=i;
@@ -0,0 +1,122 @@
1
+ import { r as o, h as r } from "./index-db5752f9-B4MZ13Fz.js";
2
+ const s = ".Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", n = s, a = class {
3
+ constructor(t) {
4
+ o(this, t), this.animation = !0;
5
+ }
6
+ handleStructureChange(t, e) {
7
+ e !== t && this.handleStructure(t);
8
+ }
9
+ updateStyles() {
10
+ this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
11
+ }
12
+ handleStructure(t) {
13
+ switch (t) {
14
+ case "logo":
15
+ return this.renderLogo();
16
+ case "image":
17
+ return this.renderImage();
18
+ case "title":
19
+ return this.renderTitle();
20
+ case "text":
21
+ return this.renderText();
22
+ case "rectangle":
23
+ return this.renderRectangle();
24
+ case "circle":
25
+ return this.renderCircle();
26
+ }
27
+ }
28
+ renderLogo() {
29
+ const t = {
30
+ width: `${this.width}`,
31
+ height: `${this.height}`,
32
+ "background-color": `${this.color}`,
33
+ "border-radius": `${this.borderRadius}px`,
34
+ "margin-bottom": `${this.marginBottom}px`,
35
+ "margin-top": `${this.marginTop}px`,
36
+ "margin-left": `${this.marginLeft}px`,
37
+ "margin-right": `${this.marginRight}px`
38
+ };
39
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Logo " + (this.animation ? "Skeleton" : "") }));
40
+ }
41
+ renderImage() {
42
+ const t = {
43
+ width: `${this.width}`,
44
+ height: `${this.height}`,
45
+ "background-color": `${this.color}`,
46
+ "border-radius": `${this.borderRadius}px`,
47
+ "margin-bottom": `${this.marginBottom}px`,
48
+ "margin-top": `${this.marginTop}px`,
49
+ "margin-left": `${this.marginLeft}px`,
50
+ "margin-right": `${this.marginRight}px`
51
+ };
52
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Image " + (this.animation ? "Skeleton" : "") }));
53
+ }
54
+ renderTitle() {
55
+ const t = {
56
+ width: `${this.width}`,
57
+ height: `${this.height}`,
58
+ "background-color": `${this.color}`,
59
+ "border-radius": `${this.borderRadius}px`,
60
+ "margin-bottom": `${this.marginBottom}px`,
61
+ "margin-top": `${this.marginTop}px`,
62
+ "margin-left": `${this.marginLeft}px`,
63
+ "margin-right": `${this.marginRight}px`
64
+ };
65
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Title " + (this.animation ? "Skeleton" : "") }));
66
+ }
67
+ renderText() {
68
+ const t = {
69
+ width: `${this.width}`,
70
+ height: `${this.height}`,
71
+ "background-color": `${this.color}`,
72
+ "border-radius": `${this.borderRadius}px`,
73
+ "margin-bottom": `${this.marginBottom}px`,
74
+ "margin-top": `${this.marginTop}px`,
75
+ "margin-left": `${this.marginLeft}px`,
76
+ "margin-right": `${this.marginRight}px`
77
+ };
78
+ return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => r("div", { style: t, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
79
+ }
80
+ renderRectangle() {
81
+ const t = {
82
+ width: `${this.width}`,
83
+ height: `${this.height}`,
84
+ "background-color": `${this.color}`,
85
+ "border-radius": `${this.borderRadius}px`,
86
+ "margin-bottom": `${this.marginBottom}px`,
87
+ "margin-top": `${this.marginTop}px`,
88
+ "margin-left": `${this.marginLeft}px`,
89
+ "margin-right": `${this.marginRight}px`
90
+ };
91
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
92
+ }
93
+ renderCircle() {
94
+ const t = {
95
+ width: `${this.size}`,
96
+ height: `${this.size}`,
97
+ "background-color": `${this.color}`,
98
+ "margin-bottom": `${this.marginBottom}px`,
99
+ "margin-top": `${this.marginTop}px`,
100
+ "margin-left": `${this.marginLeft}px`,
101
+ "margin-right": `${this.marginRight}px`
102
+ };
103
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Circle " + (this.animation ? "Skeleton" : "") }));
104
+ }
105
+ componentDidLoad() {
106
+ this.updateStyles();
107
+ }
108
+ render() {
109
+ return this.handleStructure(this.structure);
110
+ }
111
+ static get watchers() {
112
+ return {
113
+ structure: ["handleStructureChange"],
114
+ primaryColor: ["updateStyles"],
115
+ secondaryColor: ["updateStyles"]
116
+ };
117
+ }
118
+ };
119
+ a.style = n;
120
+ export {
121
+ a as U
122
+ };
@@ -0,0 +1,122 @@
1
+ import { r as o, h as r } from "./index-db5752f9-C_VcDZns.js";
2
+ const s = ".Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", n = s, a = class {
3
+ constructor(t) {
4
+ o(this, t), this.animation = !0;
5
+ }
6
+ handleStructureChange(t, e) {
7
+ e !== t && this.handleStructure(t);
8
+ }
9
+ updateStyles() {
10
+ this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
11
+ }
12
+ handleStructure(t) {
13
+ switch (t) {
14
+ case "logo":
15
+ return this.renderLogo();
16
+ case "image":
17
+ return this.renderImage();
18
+ case "title":
19
+ return this.renderTitle();
20
+ case "text":
21
+ return this.renderText();
22
+ case "rectangle":
23
+ return this.renderRectangle();
24
+ case "circle":
25
+ return this.renderCircle();
26
+ }
27
+ }
28
+ renderLogo() {
29
+ const t = {
30
+ width: `${this.width}`,
31
+ height: `${this.height}`,
32
+ "background-color": `${this.color}`,
33
+ "border-radius": `${this.borderRadius}px`,
34
+ "margin-bottom": `${this.marginBottom}px`,
35
+ "margin-top": `${this.marginTop}px`,
36
+ "margin-left": `${this.marginLeft}px`,
37
+ "margin-right": `${this.marginRight}px`
38
+ };
39
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Logo " + (this.animation ? "Skeleton" : "") }));
40
+ }
41
+ renderImage() {
42
+ const t = {
43
+ width: `${this.width}`,
44
+ height: `${this.height}`,
45
+ "background-color": `${this.color}`,
46
+ "border-radius": `${this.borderRadius}px`,
47
+ "margin-bottom": `${this.marginBottom}px`,
48
+ "margin-top": `${this.marginTop}px`,
49
+ "margin-left": `${this.marginLeft}px`,
50
+ "margin-right": `${this.marginRight}px`
51
+ };
52
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Image " + (this.animation ? "Skeleton" : "") }));
53
+ }
54
+ renderTitle() {
55
+ const t = {
56
+ width: `${this.width}`,
57
+ height: `${this.height}`,
58
+ "background-color": `${this.color}`,
59
+ "border-radius": `${this.borderRadius}px`,
60
+ "margin-bottom": `${this.marginBottom}px`,
61
+ "margin-top": `${this.marginTop}px`,
62
+ "margin-left": `${this.marginLeft}px`,
63
+ "margin-right": `${this.marginRight}px`
64
+ };
65
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Title " + (this.animation ? "Skeleton" : "") }));
66
+ }
67
+ renderText() {
68
+ const t = {
69
+ width: `${this.width}`,
70
+ height: `${this.height}`,
71
+ "background-color": `${this.color}`,
72
+ "border-radius": `${this.borderRadius}px`,
73
+ "margin-bottom": `${this.marginBottom}px`,
74
+ "margin-top": `${this.marginTop}px`,
75
+ "margin-left": `${this.marginLeft}px`,
76
+ "margin-right": `${this.marginRight}px`
77
+ };
78
+ return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => r("div", { style: t, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
79
+ }
80
+ renderRectangle() {
81
+ const t = {
82
+ width: `${this.width}`,
83
+ height: `${this.height}`,
84
+ "background-color": `${this.color}`,
85
+ "border-radius": `${this.borderRadius}px`,
86
+ "margin-bottom": `${this.marginBottom}px`,
87
+ "margin-top": `${this.marginTop}px`,
88
+ "margin-left": `${this.marginLeft}px`,
89
+ "margin-right": `${this.marginRight}px`
90
+ };
91
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
92
+ }
93
+ renderCircle() {
94
+ const t = {
95
+ width: `${this.size}`,
96
+ height: `${this.size}`,
97
+ "background-color": `${this.color}`,
98
+ "margin-bottom": `${this.marginBottom}px`,
99
+ "margin-top": `${this.marginTop}px`,
100
+ "margin-left": `${this.marginLeft}px`,
101
+ "margin-right": `${this.marginRight}px`
102
+ };
103
+ return r("div", { ref: (e) => this.skeletonContainer = e }, r("div", { style: t, class: "Circle " + (this.animation ? "Skeleton" : "") }));
104
+ }
105
+ componentDidLoad() {
106
+ this.updateStyles();
107
+ }
108
+ render() {
109
+ return this.handleStructure(this.structure);
110
+ }
111
+ static get watchers() {
112
+ return {
113
+ structure: ["handleStructureChange"],
114
+ primaryColor: ["updateStyles"],
115
+ secondaryColor: ["updateStyles"]
116
+ };
117
+ }
118
+ };
119
+ a.style = n;
120
+ export {
121
+ a as U
122
+ };
@@ -0,0 +1 @@
1
+ "use strict";var l=(r,t,o)=>new Promise((c,s)=>{var d=e=>{try{n(o.next(e))}catch(i){s(i)}},m=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?c(e.value):Promise.resolve(e.value).then(d,m);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-db5752f9-DSHLGBj_.cjs"),p=require("./app-globals-0f993ce5-DgYhdguE.cjs"),g=require("./ui-skeleton-982450d2-BEC6vjfL.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-BjdFVTvB.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>l(exports,null,function*(){return yield p.globalScripts$2(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;