@everymatrix/player-account-controller 1.55.0 → 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 (222) hide show
  1. package/components/GeneralLogout-9pZTJKCj.cjs +8 -0
  2. package/components/{GeneralLogout-GS7gE3LI.js → GeneralLogout-DH2dZPHM.js} +1081 -1088
  3. package/components/{GeneralLogout-DMvKimEo.js → GeneralLogout-DKa2JUny.js} +1076 -1083
  4. package/components/PlayerAccountBettingHistory-BgdXC00n.cjs +1 -0
  5. package/components/{PlayerAccountBettingHistory-DUgPRDra.js → PlayerAccountBettingHistory-CxIU3NjD.js} +130 -134
  6. package/components/PlayerAccountBettingHistory-DcspNMNL.js +329 -0
  7. package/components/{PlayerAccountBiometrics-BrlNlZ5N.cjs → PlayerAccountBiometrics-8CaZALdD.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-CARn4eVu.js → PlayerAccountBiometrics-BBYUw87N.js} +125 -126
  9. package/components/{PlayerAccountBiometrics-CXLK5_xT.js → PlayerAccountBiometrics-D3fKLHtV.js} +125 -126
  10. package/components/{PlayerAccountClosure-BQsYcTs7.js → PlayerAccountClosure-CtTfS7wl.js} +123 -124
  11. package/components/{PlayerAccountClosure-BkKcpa4J.js → PlayerAccountClosure-DJv7cY7T.js} +123 -124
  12. package/components/{PlayerAccountClosure-DfJc6Ip_.cjs → PlayerAccountClosure-Z7IuAXPP.cjs} +1 -1
  13. package/components/PlayerAccountController-BfaTH0AY.cjs +1 -0
  14. package/components/{PlayerAccountController-BhRqOpNe.js → PlayerAccountController-BqEnzpc6.js} +2702 -2164
  15. package/components/{PlayerAccountController-5iMZlx1a.js → PlayerAccountController-Djsrrn-h.js} +2708 -2170
  16. package/components/{PlayerAccountGamingLimits-DwpArRnO.js → PlayerAccountGamingLimits-Bd5ti2Yy.js} +301 -250
  17. package/components/PlayerAccountGamingLimits-DoYSa5g4.cjs +1 -0
  18. package/components/{PlayerAccountGamingLimits-B2-Mgazd.js → PlayerAccountGamingLimits-cnXxBvfZ.js} +301 -250
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CNTlXu7V.js → PlayerAccountGamingLimitsConfirmationModal-CS4mjsLb.js} +127 -131
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CUg2My3V.cjs +1 -0
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-DefxnTKN.js → PlayerAccountGamingLimitsConfirmationModal-_MNPhSXy.js} +127 -131
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-CDY-ylK7.js → PlayerAccountGamingLimitsGroupEdit-45Rp4DP_.js} +1073 -1077
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs → PlayerAccountGamingLimitsGroupEdit-ByRLb87-.cjs} +4 -4
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-Cj7PXLH2.js → PlayerAccountGamingLimitsGroupEdit-C7OBS8be.js} +1073 -1077
  25. package/components/{PlayerAccountGamingLimitsHistory2-2NpX8p0k.js → PlayerAccountGamingLimitsHistory2-VyLPwXZu.js} +218 -226
  26. package/components/{PlayerAccountGamingLimitsHistory2-B_7Y0DgS.cjs → PlayerAccountGamingLimitsHistory2-XZt8OllP.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2-DF8kvIf6.js → PlayerAccountGamingLimitsHistory2-mJtlR6Ge.js} +210 -218
  28. package/components/{PlayerAccountGamingLimitsInfoCard-D3sJXuZa.js → PlayerAccountGamingLimitsInfoCard-BxU5hBOF.js} +639 -588
  29. package/components/{PlayerAccountGamingLimitsInfoCard-CNvQOw3A.js → PlayerAccountGamingLimitsInfoCard-C7pCh3__.js} +639 -588
  30. package/components/PlayerAccountGamingLimitsInfoCard-c0kYK6Z1.cjs +1 -0
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-C7_DGAt1.js → PlayerAccountGamingLimitsPage2Gm16-CNiOjWfB.js} +1063 -1039
  32. package/components/PlayerAccountGamingLimitsPage2Gm16-Cha-RkAd.cjs +21 -0
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-Dz6knJ_h.js → PlayerAccountGamingLimitsPage2Gm16-D66arvZd.js} +1159 -1135
  34. package/components/{PlayerAccountGamingLimitsPopup-BlCz3nIH.js → PlayerAccountGamingLimitsPopup-BzEwvjUN.js} +116 -120
  35. package/components/{PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs → PlayerAccountGamingLimitsPopup-CfBYEYKc.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-Bt4YlCWi.js → PlayerAccountGamingLimitsPopup-D3UUO_Eq.js} +116 -120
  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-SjPp-PVG.js → PlayerAccountGeneralConfirmationModal-CXql07aQ.js} +141 -142
  41. package/components/{PlayerAccountGeneralConfirmationModal-D3u9X3Q6.js → PlayerAccountGeneralConfirmationModal-D8JPZNbs.js} +141 -142
  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-CW1t2BNm.cjs +3557 -0
  53. package/components/{PlayerAccountSelfExclusion-D6Kby-08.js → PlayerAccountSelfExclusion-Cz0rML3Z.js} +10883 -11100
  54. package/components/{PlayerAccountSelfExclusion-BkK_LRpi.js → PlayerAccountSelfExclusion-DzxXZ0NG.js} +10806 -11069
  55. package/components/{PlayerAccountTimeout-tPNVqlAT.js → PlayerAccountTimeout-9wxsYv0_.js} +495 -364
  56. package/components/PlayerAccountTimeout-CAWJeQ3d.cjs +1 -0
  57. package/components/{PlayerAccountTimeout-DWNG3Mes.js → PlayerAccountTimeout-gWHY_22Q.js} +495 -364
  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-BC8FfHZz.cjs → PlayerBonusCard-5gtng8cd.cjs} +1 -1
  62. package/components/{PlayerBonusCard-8uOU9OLG.js → PlayerBonusCard-CGoRkCFh.js} +166 -168
  63. package/components/{PlayerBonusCard-Cppd6wFF.js → PlayerBonusCard-CaQEQ2Fx.js} +166 -168
  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-N_UEFJNT.js → PlayerChangePassword-6dHXMBQg.js} +384 -388
  68. package/components/{PlayerChangePassword-CzR4Xz0H.cjs → PlayerChangePassword-BsM1lBfW.cjs} +2 -2
  69. package/components/{PlayerChangePassword-OM9U8MSx.js → PlayerChangePassword-COdBpupf.js} +384 -388
  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-BLQD-WyT.js → PlayerGamingHistory-4f_MiXvH.js} +348 -352
  74. package/components/PlayerGamingHistory-DAfDiFej.cjs +1 -0
  75. package/components/{PlayerGamingHistory-XiAb60Gu.js → PlayerGamingHistory-dDHtahYn.js} +373 -377
  76. package/components/PlayerPendingWithdrawals-BFrv_-ow.js +310 -0
  77. package/components/PlayerPendingWithdrawals-CHHH7JPW.js +310 -0
  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-CGSnHppy.js → PlayerWithdrawal-BlhHRFmC.js} +137 -141
  90. package/components/{PlayerWithdrawal-t5mlX5CD.js → PlayerWithdrawal-CnoGAUmo.js} +137 -141
  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-DZvX2H_r.js → checkbox-group-input_9-B_RfUM6E.js} +3279 -2404
  98. package/stencil/checkbox-group-input_9-C2IUNSpC.cjs +2045 -0
  99. package/stencil/{checkbox-group-input_9-Cny9rOs9.js → checkbox-group-input_9-C98yT4vw.js} +3348 -2459
  100. package/stencil/{general-input-Yj_LRx0v.js → general-input-CqTf7ErJ.js} +6 -6
  101. package/stencil/{general-input-d5RULL12.js → general-input-DTHw5Z1Q.js} +6 -6
  102. package/stencil/general-input-wM2i7b57.cjs +1 -0
  103. package/stencil/index-12dd2b03-B2coll71.js +725 -0
  104. package/stencil/index-12dd2b03-Dd1hsUZX.cjs +1 -0
  105. package/stencil/index-12dd2b03-YP3skHrn.js +698 -0
  106. package/stencil/index-92b64862-BRYoLHww.cjs +1 -0
  107. package/stencil/index-92b64862-C_69cKxK.js +708 -0
  108. package/stencil/index-92b64862-w9a1l35N.js +692 -0
  109. package/stencil/index-b1bdf3f6-0mlbFiN3.js +632 -0
  110. package/stencil/index-b1bdf3f6-DBuAhDH-.js +659 -0
  111. package/stencil/index-b1bdf3f6-DdF5azN0.cjs +1 -0
  112. package/stencil/index-c7e52808-7ohcD8fQ.js +638 -0
  113. package/stencil/index-c7e52808-DYutdKGj.cjs +1 -0
  114. package/stencil/index-c7e52808-WCb5gCA6.js +654 -0
  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-B2qvf6ku.cjs +105 -0
  119. package/stencil/password-input_2-CdHS5fmR.js +569 -0
  120. package/stencil/password-input_2-DdQvCp3o.js +569 -0
  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-780eb445-Cg8Z75Vz.js → player-change-password-gm2-38dff08c-BNhjxr22.js} +85 -66
  124. package/stencil/{player-change-password-gm2-780eb445-DEjz9Jjk.js → player-change-password-gm2-38dff08c-CPRdwVFF.js} +85 -66
  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-DuUII5AF.js → player-kyc-verification-BPrVDLfj.js} +49 -29
  129. package/stencil/{player-kyc-verification-CZy8RShe.js → player-kyc-verification-CRwnm961.js} +50 -30
  130. package/stencil/{toggle-checkbox-input-ErX2Ngat.js → toggle-checkbox-input-B4OOk9wz.js} +7 -7
  131. package/stencil/{toggle-checkbox-input-Co64_7cm.js → toggle-checkbox-input-Cwo_Ny77.js} +7 -7
  132. package/stencil/toggle-checkbox-input-tQDhlcag.cjs +1 -0
  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-DRo4MaOR.js → user-deposit-withdrawal-51pO8ttC.js} +194 -177
  140. package/stencil/user-deposit-withdrawal-Bn1WPRou.cjs +59 -0
  141. package/stencil/{user-deposit-withdrawal-DsEm--6b.js → user-deposit-withdrawal-C0SOQks0.js} +268 -251
  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-6001b2a6-Dqz5Vp8D.js → vaadin-button-mixin-ef61174c-B_vhSFKU.js} +8177 -8813
  146. package/stencil/vaadin-button-mixin-ef61174c-DuDVejN4.cjs +2385 -0
  147. package/stencil/{vaadin-button-6001b2a6-CZwj1qjO.js → vaadin-button-mixin-ef61174c-EQiVsI4x.js} +6270 -6860
  148. package/components/GeneralLogout-BW6b3iuS.cjs +0 -8
  149. package/components/PlayerAccountBettingHistory-BsFzBNDY.cjs +0 -1
  150. package/components/PlayerAccountBettingHistory-YNLbWHxl.js +0 -333
  151. package/components/PlayerAccountController-7FPLehfk.cjs +0 -1
  152. package/components/PlayerAccountGamingLimits-BPQrptbd.cjs +0 -1
  153. package/components/PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs +0 -1
  154. package/components/PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs +0 -1
  155. package/components/PlayerAccountGamingLimitsPage2Gm16-BiFzgvUx.cjs +0 -21
  156. package/components/PlayerAccountGamingLimitsWrapper2-D3tW5CCc.js +0 -860
  157. package/components/PlayerAccountGamingLimitsWrapper2-Dg6CwNyN.cjs +0 -1
  158. package/components/PlayerAccountGamingLimitsWrapper2-RnvNKSgN.js +0 -866
  159. package/components/PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs +0 -1
  160. package/components/PlayerAccountMenu-5esyJ_VN.js +0 -579
  161. package/components/PlayerAccountMenu-C704oUrC.cjs +0 -1
  162. package/components/PlayerAccountMenu-DgptA72k.js +0 -578
  163. package/components/PlayerAccountModal-BnWL5726.js +0 -213
  164. package/components/PlayerAccountModal-C7aZZlBw.cjs +0 -1
  165. package/components/PlayerAccountModal-CbLpkfXY.js +0 -213
  166. package/components/PlayerAccountNotifications-B02Ownhe.js +0 -261
  167. package/components/PlayerAccountNotifications-C-lyz5dM.js +0 -261
  168. package/components/PlayerAccountNotifications-DkgHtUGj.cjs +0 -1
  169. package/components/PlayerAccountSelfExclusion-BS89T7sZ.cjs +0 -4171
  170. package/components/PlayerAccountTimeout-DMbUPtRy.cjs +0 -1
  171. package/components/PlayerActiveBonuses-B9jz3QD8.cjs +0 -1
  172. package/components/PlayerActiveBonuses-SCbHFBuw.js +0 -1037
  173. package/components/PlayerActiveBonuses-dRIcHoZG.js +0 -1038
  174. package/components/PlayerBonusHistory-44sPM1i7.js +0 -919
  175. package/components/PlayerBonusHistory-D2YSJiqi.cjs +0 -1
  176. package/components/PlayerBonusHistory-DWvXjCPO.js +0 -920
  177. package/components/PlayerDeposit-CwMvcnsj.js +0 -414
  178. package/components/PlayerDeposit-D_78W5GC.cjs +0 -1
  179. package/components/PlayerDeposit-Q2N0Y2_v.js +0 -414
  180. package/components/PlayerGamingHistory-DRkPp9aG.cjs +0 -1
  181. package/components/PlayerPendingWithdrawals-BG3I8ifu.cjs +0 -1
  182. package/components/PlayerPendingWithdrawals-BSTgce9H.js +0 -311
  183. package/components/PlayerPendingWithdrawals-BsCRRPqb.js +0 -311
  184. package/components/PlayerProfileInfo-C7zRlD3p.js +0 -1757
  185. package/components/PlayerProfileInfo-CGsJydqv.cjs +0 -1
  186. package/components/PlayerProfileInfo-zmbAMe_l.js +0 -1740
  187. package/components/PlayerRealityCheck-A_mZq3YZ.js +0 -598
  188. package/components/PlayerRealityCheck-C26ZBWae.cjs +0 -1
  189. package/components/PlayerRealityCheck-D7u9BzPV.js +0 -582
  190. package/components/PlayerTransactionHistory-CJqhYnbs.cjs +0 -1
  191. package/components/PlayerTransactionHistory-DllIB_qE.js +0 -315
  192. package/components/PlayerTransactionHistory-DsRmd4u6.js +0 -315
  193. package/components/PlayerWithdrawal-GDc_7hZX.cjs +0 -1
  194. package/stencil/app-globals-0f993ce5-8artnnwr.cjs +0 -1
  195. package/stencil/checkbox-group-input_9-FLO2Qa5Y.cjs +0 -2104
  196. package/stencil/general-input-igTYIJ6W.cjs +0 -1
  197. package/stencil/index-0437c9c0-BwGFk0Yq.js +0 -565
  198. package/stencil/index-0437c9c0-C_oD9Yfn.js +0 -592
  199. package/stencil/index-0437c9c0-oCxuDVFQ.cjs +0 -1
  200. package/stencil/index-657e7a14-B7-RqEpB.js +0 -572
  201. package/stencil/index-657e7a14-CrrA_w_5.cjs +0 -1
  202. package/stencil/index-657e7a14-DW4SbCqy.js +0 -588
  203. package/stencil/index-72d2f0c7--qtpsDOz.js +0 -642
  204. package/stencil/index-72d2f0c7-DldCMjBJ.cjs +0 -1
  205. package/stencil/index-72d2f0c7-DyMEJXra.js +0 -626
  206. package/stencil/index-e8249896-BjtvOmsZ.cjs +0 -1
  207. package/stencil/index-e8249896-CM_igLvD.js +0 -658
  208. package/stencil/index-e8249896-DW1YiUqn.js +0 -631
  209. package/stencil/password-input_2-CHOu4hgw.js +0 -1420
  210. package/stencil/password-input_2-DQAgV1SZ.cjs +0 -896
  211. package/stencil/password-input_2-DaiHlKbQ.js +0 -1420
  212. package/stencil/player-change-password-gm2-780eb445-CdItmoKI.cjs +0 -1
  213. package/stencil/player-change-password-gm2-BR82_Y4L.cjs +0 -1
  214. package/stencil/player-change-password-gm2-DlMNv4hv.js +0 -25
  215. package/stencil/player-change-password-gm2-FHUeecdE.js +0 -7
  216. package/stencil/player-kyc-verification-DxpMnJ6t.cjs +0 -180
  217. package/stencil/toggle-checkbox-input-a_0w-Y0n.cjs +0 -1
  218. package/stencil/user-deposit-withdrawal-Cum51n64.cjs +0 -59
  219. package/stencil/user-transaction-history-BpBJPUwq.js +0 -355
  220. package/stencil/user-transaction-history-C3_7vgUY.cjs +0 -1
  221. package/stencil/user-transaction-history-ClGHRdoQ.js +0 -329
  222. package/stencil/vaadin-button-6001b2a6-C6xw53k5.cjs +0 -3018
@@ -0,0 +1,180 @@
1
+ "use strict";var f=(e,n,t)=>new Promise((a,o)=>{var l=d=>{try{s(t.next(d))}catch(p){o(p)}},c=d=>{try{s(t.throw(d))}catch(p){o(p)}},s=d=>d.done?a(d.value):Promise.resolve(d.value).then(l,c);s((t=t.apply(e,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-b1bdf3f6-DdF5azN0.cjs"),C=require("./app-globals-0f993ce5-DgYhdguE.cjs");var h=typeof document!="undefined"?document.currentScript:null,w=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:h&&h.tagName.toUpperCase()==="SCRIPT"&&h.src||new URL("stencil/player-kyc-verification-5V24oWMX.cjs",document.baseURI).href,n={};return e!==""&&(n.resourcesUrl=new URL(".",e).href),i.promiseResolve(n)};w().then(e=>f(exports,null,function*(){return yield C.globalScripts$1(),i.bootstrapLazy([["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)}));const k="en";let u={en:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account Verification",kycDescription:"We require some documents to protect your account and to comply with legal and license requirements.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Recheck:"Recheck",Biometric:"Biometric",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},de:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account-Verifizierung",kycDescription:"Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Dokument bereits hochgeladen.",Unknown:"Unbekannt",Passport:"Reisepass",IdCardFront:"Personalausweis (Vorderseite)",IdCardBack:"Personalausweis (Rückseite)",BirthCertificate:"Geburtsurkunde",DrivingLicenseFront:"Führerschein (Vorderseite)",DrivingLicenseBack:"Führerschein (Rückseite)",ResidentialPermit:"Wohnberechtigungsschein",CreditDebitCardFront:"Kredit-/Debitkarte (Vorderseite)",CreditDebitCardBack:"Kredit-/Debitkarte (Rückseite)",UtilityBill:"Nebenkostenabrechnung",TaxBill:"Steuerbescheid",CertifiedCopy:"Beglaubigte Kopie",Selfie:"Selfie",BankStatement:"Kontoauszug",RentAgreement:"Mietvertrag",InsuranceAgreement:"Versicherungsvertrag",Other:"Sonstige",IncomeAndOrSavingsFromEmployment:"Einkommen und/oder Ersparnisse aus Beschäftigung",SaleOfSharesOrOtherInvestments:"Verkauf von Aktien oder anderen Anlagen",DividendsProfitsFromCompany:"Dividenden/Gewinne aus dem Unternehmen",CompanySale:"Firmenverkauf",IndividualOwnsPolicyCompanyPays:"Einzelperson besitzt die Police/Unternehmen zahlt",SaleOfProperty:"Immobilienverkauf",Inheritance:"Erbschaft",MaturityOrSurrenderOfLifeAssurance:"Fälligkeit oder Rückkauf einer Lebensversicherung",InsuranceClaims:"Versicherungsansprüche",CompensationPayment:"Entschädigungszahlung",LotteryBettingCasinoWin:"Lotterie-/Wett-/Casinogewinn",Loan:"Darlehen",Gift:"Geschenk",Ewallet:"E-Wallet",Voucher:"Gutschein"},ro:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Verificarea contului",kycDescription:"Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document deja încărcat.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},fr:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Vérification de compte",kycDescription:"Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document déjà téléchargé.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},ar:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"التحقق من الحساب",kycDescription:"نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},hr:{loading:"Učitavanje, molimo pričekajte ...",noVerificationRequired:"Trenutačno nije potrebna provjera vašeg računa.",verificationComplete:"Provjera dovršena",verificationFailed:"Provjera nije uspjela",verificationExpired:"Provjera je istekla",fileSizeExceeded:"Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb",uploading:"Prijenos…",successUpload:"Vaš dokument je učitan i uskoro će biti pregledan",successUploadMultipleFiles:"Vaši su dokumenti učitani i uskoro će biti pregledani",failedUpload:"Prijenos nije uspio pokušajte ponovo",chooseDocument:"Odaberite Dokument",kycTitle:"Verifikacija računa",kycDescription:"Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.",download:"Preuzmi",Age:"Dob",Aml:"AML",Documents:"Dokumenti",Pep:"Politički izložena osoba",Sanction:"Sankcija",Biometric:"Verifikacija",Recheck:"Ponovna provjera",ProofOfAddress:"Potvrda adrese",SourceOfWealth:"Izvor sredstava",SocialMedia:"Društvene mreže",ProofOfPayment:"Platna metoda",uploaded:"Dokument je već učitan.",Unknown:"Nepoznato",Passport:"Putovnica",IdCardFront:"Prednja strana osobne iskaznice",IdCardBack:"Stražnja strana osobne iskaznice",BirthCertificate:"Rodni list",DrivingLicenseFront:"Vozačka dozvola (prednja strana)",DrivingLicenseBack:"Vozačka dozvola (stražnja strana)",ResidentialPermit:"Boravišna dozvola",CreditDebitCardFront:"Kreditna/debitna kartica (prednja strana)",CreditDebitCardBack:"Kreditna/debitna kartica (stražnja strana)",UtilityBill:"Račun za komunalne usluge",TaxBill:"Porezni račun",CertifiedCopy:"Ovjereni primjerak",Selfie:"Selfie",BankStatement:"Bankovni izvod",RentAgreement:"Ugovor o najmu",InsuranceAgreement:"Ugovor o osiguranju",Other:"Ostalo",IncomeAndOrSavingsFromEmployment:"Prihod/Ušteđevina ",SaleOfSharesOrOtherInvestments:"Prodaja dionica ili drugih investicija",DividendsProfitsFromCompany:"Dividende/dobit od tvrtke",CompanySale:"Prodaja tvrtke",IndividualOwnsPolicyCompanyPays:"Osoba posjeduje policu/tvrtka plaća",SaleOfProperty:"Prodaja nekretnine",Inheritance:"Nasljeđe",MaturityOrSurrenderOfLifeAssurance:"Dospijeće ili predaja životnog osiguranja",InsuranceClaims:"Zahtjevi za osiguranje",CompensationPayment:"Isplata odštete",LotteryBettingCasinoWin:"Dobitak na lutriji/kladionici/kasinu",Loan:"Zajam",Gift:"Poklon",Ewallet:"Elektronički novčanik",Voucher:"Vaučer"},"pt-br":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Carregando, espere por favor…",noVerificationRequired:"Não há necessidade de verificação para sua conta no momento",verificationComplete:"Verificação completa",verificationFailed:"Verificação de falha",verificationExpired:"A verificação expirou",fileSizeExceeded:"Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB",uploading:"Carregando...",successUpload:"Seu documento foi carregado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão revisados ​​em breve",failedUpload:"Falha no upload do arquivo, tente novamente",chooseDocument:"Escolha um arquivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento já carregado.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},"es-mx":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Cargando, espere por favor…",noVerificationRequired:"No hay verificación requerida para su cuenta al momento",verificationComplete:"Verificación completa",verificationFailed:"Verificación fallo",verificationExpired:"Verificación expiro",fileSizeExceeded:"Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb",uploading:"Cargando ...",successUpload:"Su documento ha sido cargado y será revisado en breve",successUploadMultipleFiles:"Sus documento han sido cargados y serán revisado en breve",failedUpload:"La carga del archivo falló, por favor intente de nuevo",chooseDocument:"Elija un archivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento ya subido.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"}};const m=e=>new Promise(n=>{fetch(e).then(t=>t.json()).then(t=>{Object.keys(t).forEach(a=>{u[a]||(u[a]={});for(let o in t[a])u[a][o]=t[a][o]}),n(!0)})}),r=(e,n,t)=>{const a=n;return u[a!==void 0&&a in u?a:k][e]},x=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));function g(e,n){if(e){const t=document.createElement("style");t.innerHTML=n,e.appendChild(t)}}function y(e,n){const t=new URL(n);fetch(t.href).then(a=>a.text()).then(a=>{const o=document.createElement("style");o.innerHTML=a,e&&e.appendChild(o)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function S(e,n,t){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(n,o=>{a.innerHTML=o,e&&e.appendChild(a)})}}const b=`:host {
2
+ font-family: inherit;
3
+ }
4
+
5
+ button, select {
6
+ font-family: inherit;
7
+ }
8
+
9
+ .ModalContainer {
10
+ container-type: inline-size;
11
+ }
12
+
13
+ .player-kyc-verification-widget {
14
+ padding: 20px;
15
+ align-items: center;
16
+ }
17
+ .player-kyc-verification-widget h2 {
18
+ margin: 15px;
19
+ }
20
+ .player-kyc-verification-widget .widget-description {
21
+ margin: 24px 0px;
22
+ }
23
+ .player-kyc-verification-widget .verification-types {
24
+ width: 100%;
25
+ display: grid;
26
+ grid-template-columns: repeat(3, 1fr);
27
+ grid-gap: 34px;
28
+ }
29
+ .player-kyc-verification-widget .verification-types .verification-box {
30
+ transition: height 0.3s, border-color 0.3s;
31
+ border: solid 1px var(--emw--color-gray-100, #E6E6E6);
32
+ border-radius: 2px;
33
+ display: flex;
34
+ flex-direction: column;
35
+ padding: 0px 14px;
36
+ border-width: 2px 2px 8px 2px;
37
+ align-self: start;
38
+ }
39
+ .player-kyc-verification-widget .verification-types .verification-box .box {
40
+ flex-shrink: 0;
41
+ }
42
+ .player-kyc-verification-widget .verification-types .verification-box .box-header {
43
+ display: flex;
44
+ padding: 14px 0px;
45
+ justify-content: space-between;
46
+ cursor: pointer;
47
+ align-items: center;
48
+ }
49
+ .player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {
50
+ flex-grow: 1;
51
+ display: flex;
52
+ justify-content: center;
53
+ }
54
+ .player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {
55
+ height: 24px;
56
+ width: 24px;
57
+ }
58
+ .player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {
59
+ flex-grow: 1;
60
+ font-size: 18px;
61
+ }
62
+ .player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {
63
+ flex-grow: 10;
64
+ width: 14px;
65
+ height: 14px;
66
+ display: flex;
67
+ justify-content: flex-end;
68
+ }
69
+ .player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {
70
+ width: 20px;
71
+ height: 22px;
72
+ }
73
+ .player-kyc-verification-widget .verification-types .verification-box .box-content {
74
+ flex-grow: 1;
75
+ border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);
76
+ padding: 10px 0px;
77
+ flex-grow: 1;
78
+ }
79
+ .player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {
80
+ text-align: center;
81
+ padding: 20px;
82
+ }
83
+ .player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {
84
+ display: flex;
85
+ flex-direction: column;
86
+ width: 100%;
87
+ align-items: center;
88
+ }
89
+ .player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {
90
+ margin: 16px;
91
+ cursor: pointer;
92
+ }
93
+ .player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {
94
+ cursor: pointer;
95
+ width: 100%;
96
+ height: 30px;
97
+ padding: 4px 14px;
98
+ font-size: 14px;
99
+ border: 1px solid var(--emw--color-gray-150, #828282);
100
+ border-radius: 2px;
101
+ background-color: var(--emw--color-white, #FFFFFF);
102
+ color: #333;
103
+ appearance: none;
104
+ -webkit-appearance: none;
105
+ -moz-appearance: none;
106
+ padding-right: 30px;
107
+ background-repeat: no-repeat;
108
+ background-position: right 10px center;
109
+ background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23333" d="M10 18.4l-6.5-6.5h13z"/><path fill="%23333" d="M10 1.6l6.5 6.5H3.5z"/></svg>');
110
+ }
111
+ .player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {
112
+ font-family: inherit;
113
+ display: flex;
114
+ align-items: center;
115
+ justify-content: center;
116
+ background-color: var(--emw--color-white, #FFFFFF);
117
+ color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
118
+ border: none;
119
+ font-size: 16px;
120
+ padding: 10px 0px 0px 0px;
121
+ cursor: pointer;
122
+ }
123
+ .player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {
124
+ margin-right: 10px;
125
+ }
126
+ .player-kyc-verification-widget .verification-types .verification-box.expanded {
127
+ border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));
128
+ min-height: 120px;
129
+ }
130
+ .player-kyc-verification-widget .verification-types .verification-box.failed {
131
+ border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));
132
+ }
133
+ .player-kyc-verification-widget .verification-types .verification-box.success {
134
+ border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));
135
+ }
136
+ .player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {
137
+ display: flex;
138
+ justify-content: center;
139
+ flex-direction: column;
140
+ }
141
+ .player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {
142
+ margin: 12px 0px 16px;
143
+ font-size: 18px;
144
+ text-align: center;
145
+ color: var(--emw--color-gray-150, #828282);
146
+ }
147
+
148
+ .MenuReturnButton {
149
+ display: flex;
150
+ align-items: center;
151
+ }
152
+
153
+ @container (min-width: 700px) {
154
+ .player-kyc-verification-widget {
155
+ padding: 100px 60px;
156
+ }
157
+ }
158
+ @container (max-width: 700px) {
159
+ .player-kyc-verification-widget h2 {
160
+ margin: 15px;
161
+ text-align: center;
162
+ }
163
+ .player-kyc-verification-widget .verification-types {
164
+ grid-template-columns: 1fr;
165
+ grid-gap: 16px;
166
+ }
167
+ }
168
+ @container (max-width: 475px) {
169
+ .player-kyc-verification-widget .verification-types {
170
+ display: block;
171
+ }
172
+ .player-kyc-verification-widget .verification-types .verification-box {
173
+ margin-bottom: 20px;
174
+ }
175
+ }
176
+ @container (max-width: 1240px) and (min-width: 701px) {
177
+ .player-kyc-verification-widget .verification-types {
178
+ grid-template-columns: repeat(2, 1fr);
179
+ }
180
+ }`,P=b,v=class{constructor(e){i.registerInstance(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=x(this.userAgent),this.handleToggleScreen=()=>{this.toggleScreen(this.isMobile)}}handleNewTranslations(){this.isLoading=!0,m(this.translationUrl).then(()=>{this.isLoading=!1})}componentWillLoad(){return f(this,null,function*(){this.translationUrl.length>2&&(yield m(this.translationUrl))})}handleClientStylingChange(e,n){e!=n&&g(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,n){e!=n&&this.clientStylingUrl&&y(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){return f(this,null,function*(){this.stylingContainer&&(window.emMessageBus!=null?S(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);try{let e=new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);const n={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json"},body:JSON.stringify({})};fetch(e.href,n).then(t=>{if(t.status===200)return t.json();throw new Error("HTTP status "+t.status)}).then(t=>{this.verificationType=t.verifications}).catch(t=>{console.error(t)})}catch(e){console.error("Error fetching verification types:",e)}})}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOptionChange(e,n){const t=e.target;this.selectedOption=t.value,this.verificationType=this.verificationType.map(a=>(a.type===n&&(a.optionChosen=t.value),a))}handleDocumentsStatus(e,n,t){this.verificationType=this.verificationType.map(a=>{if(a.type===e){const o=a.documents.find(l=>l.code===t);o&&(o.statusUploaded=n)}return a})}downloadPDF(e){const n=document.createElement("a");n.href=e,n.download="file.pdf",n.target="_blank",n.dispatchEvent(new MouseEvent("click"))}toggleVerificationType(e,n){this.expandedOnDesktop=!1,this.verificationType=this.verificationType.map(t=>{var a;return t.type===e&&((a=t.flowInfo)===null||a===void 0?void 0:a.type)==n&&(t.expanded=!t.expanded),t})}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}checkFileSize(e){let n=0;return Object.keys(e).forEach(t=>{n+=e[t].size}),n<=this.MAX_UPLOAD_SIZE}handleFileSelection(e,n,t){if(e&&e.length>0)if(this.selectedFile=e,!this.checkFileSize(this.selectedFile))console.error(r("fileSizeExceeded",this.language)),this.uploadingStatus=r("fileSizeExceeded",this.language),this.handleDocumentsStatus(t,this.uploadingStatus,n),this.uploadSizeExceeded=!0;else{const a={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":this.session},body:JSON.stringify({DocumentCode:n})};fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,a).then(o=>{if(o.ok)return this.uploadingStatus=r("uploading",this.language),this.handleDocumentsStatus(t,this.uploadingStatus,n),o.json()}).then(o=>{const l=new FormData;l.append(n,this.selectedFile[0]),fetch(o.Url,{method:"POST",body:l}).then(c=>{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))}).catch(c=>{console.error("File upload error:",c)})}).catch(o=>{console.error("File upload error:",o)})}}importScript(e){return new Promise((n,t)=>{fetch(e).then(a=>a.text()).then(a=>{if(new Function(a)(),this.scriptInjected)n(!0);else{const l=document.createElement("script");l.src="https://test.insic.de/frontend3/static/js/avs-loader.min.js",document.head.appendChild(l),this.scriptInjected=!0,n(!0)}}).catch(a=>{t(a)})})}isStatusUploaded(e){return!!(e&&e.status==="Uploaded")}renderVerificationTypeBox(e){this.expandedOnDesktop&&(e.expanded=!0);let n=e.expanded,t=e.type.trim(),a=e.optionChosen,o=e.status,l=e.documents,c=e.flowInfo;const s=o==="Verified",d=o==="Failed"||o==="Expired";return i.h("div",{class:`verification-box ${n?"expanded":""} ${d?"failed":""} ${s?"success":""}`},i.h("div",{class:`box box-header ${n?"expanded":""}`,onClick:()=>{var p;return this.toggleVerificationType(e.type,(p=e.flowInfo)===null||p===void 0?void 0:p.type)}},i.h("div",{class:"box-icon"},s?i.h("div",null,this.verifiedIcon?i.h("img",{class:"CustomVerifiedIcon",src:this.verifiedIcon,alt:""}):i.h("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i.h("circle",{cx:"50",cy:"50",r:"40",fill:"#388D79"}),i.h("circle",{cx:"50",cy:"50",r:"34",fill:"none",stroke:"#fff","stroke-width":"12px"}),i.h("polyline",{points:"30,50 45,63 70,35",fill:"none",stroke:"#fff","stroke-width":"8px"}))):d?i.h("div",null,this.failedIcon?i.h("img",{class:"CustomFailedIcon",src:this.failedIcon,alt:""}):i.h("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i.h("circle",{cx:"50",cy:"50",r:"40",fill:"red"}),i.h("line",{x1:"30",y1:"30",x2:"70",y2:"70",stroke:"#fff","stroke-width":"10px"}),i.h("line",{x1:"30",y1:"70",x2:"70",y2:"30",stroke:"#fff","stroke-width":"10px"}))):i.h("div",null,this.defaultIcon?i.h("img",{class:"CustomDefaultIcon",src:this.defaultIcon,alt:""}):i.h("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.h("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.h("path",{d:"M9 13H15",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i.h("path",{d:"M9 17H12",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i.h("path",{d:"M14 2V6C14 7.10457 14.8954 8 16 8H20",stroke:"#000000","stroke-width":"2","stroke-linejoin":"round"})))),i.h("div",{class:"box-title"},r(t,this.language)),i.h("div",{class:"chevron-icon"},i.h("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.h("path",{d:n?"M6 15l6-6 6 6":"M6 9l6 6 6-6"})))),n?this.renderExpandedContent(e,a,o,l,c,s,d):i.h("div",{class:"box box-content"},i.h("div",{id:"__avs-wrapper"})))}renderDocumentsActions(e,n,t){return i.h("div",null,this.isStatusUploaded(e)?i.h("div",{class:"upload-status"},r("uploaded",this.language)):e!=null&&e.statusUploaded?i.h("div",{class:"upload-status"},e==null?void 0:e.statusUploaded):i.h("div",{class:"documents-action"},i.h("div",{class:"sample-file"},(e==null?void 0:e.sampleType)==="FileDownload"?i.h("button",{class:"download-button",onClick:()=>this.downloadPDF(e==null?void 0:e.sampleUrl)},i.h("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.h("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.h("path",{d:"M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"})),i.h("span",null,r("download",this.language))):null),i.h("div",{class:"upload-button"},n?i.h("label",null,i.h("input",{type:"file",accept:"*",onChange:a=>this.handleFileSelection(a.target.files,this.selectedOption,t.type),style:{display:"none"}}),i.h("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg"},i.h("circle",{cx:"50",cy:"50",r:"40",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i.h("line",{x1:"30",y1:"50",x2:"70",y2:"50",stroke:"white","stroke-width":"6"}),i.h("line",{x1:"50",y1:"30",x2:"50",y2:"70",stroke:"white","stroke-width":"6"}))):null)))}renderExpandedContent(e,n,t,a,o,l,c){return(o==null?void 0:o.type)==="Widget"?i.h("div",null,i.h("hr",{style:{margin:"5px"}}),i.h("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.h("div",null,i.h("hr",{style:{margin:"5px"}}),i.h("iframe",{src:o.url,frameborder:"0",height:"400px",width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"})):i.h("div",{class:"box box-content"},i.h(i.Fragment,null,l?i.h("div",{class:"verification-status"},r("verificationComplete",this.language)):c?i.h("div",{class:"verification-status"},t==="Failed"?r("verificationFailed",this.language):r("verificationExpired",this.language)):a.length>0?i.h("div",{class:"documents-dropdown"},i.h("select",{class:"nice-select",onChange:s=>this.handleOptionChange(s,e.type)},i.h("option",{value:"",selected:!0,disabled:!0,hidden:!0},r("chooseDocument",this.language)),a.map(s=>i.h("option",{selected:n==s.code,value:s.code},r(s.type,this.language)))),this.renderDocumentsActions(a.find(s=>s.code===n),n,e)):null))}render(){return this.isLoading?i.h("div",null,i.h("p",null,r("loading",this.language))):i.h("div",{class:"ModalContainer",ref:e=>this.stylingContainer=e},i.h("div",{class:"player-kyc-verification-widget"},this.isMobile?i.h("div",{class:"MenuReturnButton",onClick:this.handleToggleScreen},i.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},i.h("defs",null),i.h("g",{transform:"translate(-20 -158)"},i.h("g",{transform:"translate(20 158)"},i.h("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.h("h2",null,r("kycTitle",this.language))):i.h("h2",null,r("kycTitle",this.language)),this.verificationType.length===0?i.h("div",{class:"no-verification-description",style:{padding:"24px",fontSize:"18px"}},r("noVerificationRequired",this.language)):i.h(i.Fragment,null,i.h("div",{class:"widget-description"},r("kycDescription",this.language)),i.h("div",{class:"verification-types"},this.verificationType.map(e=>e?this.renderVerificationTypeBox(e):null)))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};v.style=P;exports.player_kyc_verification=v;
@@ -1,11 +1,11 @@
1
- import { b as h, p as g, r as y, h as i, F as u } from "./index-0437c9c0-BwGFk0Yq.js";
2
- import { a as v } from "./app-globals-0f993ce5-C0vi_PY4.js";
3
- var w = () => {
1
+ import { b as y, p as v, r as w, h as i, F as u } from "./index-b1bdf3f6-0mlbFiN3.js";
2
+ import { a as C } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
+ var k = () => {
4
4
  const e = import.meta.url, n = {};
5
- return e !== "" && (n.resourcesUrl = new URL(".", e).href), g(n);
5
+ return e !== "" && (n.resourcesUrl = new URL(".", e).href), v(n);
6
6
  };
7
- w().then(async (e) => (await v(), h([["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)));
8
- const C = "en";
7
+ k().then(async (e) => (await C(), y([["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)));
8
+ const x = "en";
9
9
  let c = {
10
10
  en: {
11
11
  loading: "Loading, please wait ...",
@@ -502,8 +502,32 @@ const m = (e) => new Promise((n) => {
502
502
  });
503
503
  }), r = (e, n, t) => {
504
504
  const a = n;
505
- return c[a !== void 0 && a in c ? a : C][e];
506
- }, x = (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)), k = `:host {
505
+ return c[a !== void 0 && a in c ? a : x][e];
506
+ }, S = (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));
507
+ function h(e, n) {
508
+ if (e) {
509
+ const t = document.createElement("style");
510
+ t.innerHTML = n, e.appendChild(t);
511
+ }
512
+ }
513
+ function g(e, n) {
514
+ const t = new URL(n);
515
+ fetch(t.href).then((a) => a.text()).then((a) => {
516
+ const o = document.createElement("style");
517
+ o.innerHTML = a, e && e.appendChild(o);
518
+ }).catch((a) => {
519
+ console.error("There was an error while trying to load client styling from URL", a);
520
+ });
521
+ }
522
+ function b(e, n, t) {
523
+ if (window.emMessageBus) {
524
+ const a = document.createElement("style");
525
+ window.emMessageBus.subscribe(n, (o) => {
526
+ a.innerHTML = o, e && e.appendChild(a);
527
+ });
528
+ }
529
+ }
530
+ const P = `:host {
507
531
  font-family: inherit;
508
532
  }
509
533
 
@@ -682,23 +706,11 @@ button, select {
682
706
  .player-kyc-verification-widget .verification-types {
683
707
  grid-template-columns: repeat(2, 1fr);
684
708
  }
685
- }`, b = k, S = class {
709
+ }`, D = P, I = class {
686
710
  constructor(e) {
687
- y(this, e), this.scriptInjected = !1, this.MAX_UPLOAD_SIZE = 5e7, this.userAgent = window.navigator.userAgent, this.isMobile = x(this.userAgent), this.setClientStyling = () => {
688
- let n = document.createElement("style");
689
- n.innerHTML = this.clientStyling, this.stylingContainer.prepend(n);
690
- }, this.setClientStylingURL = () => {
691
- let n = new URL(this.clientStylingUrl), t = document.createElement("style");
692
- fetch(n.href).then((a) => a.text()).then((a) => {
693
- t.innerHTML = a, setTimeout(() => {
694
- this.stylingContainer.prepend(t);
695
- }, 1);
696
- }).catch((a) => {
697
- console.log("error ", a);
698
- });
699
- }, this.handleToggleScreen = () => {
711
+ w(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 = S(this.userAgent), this.handleToggleScreen = () => {
700
712
  this.toggleScreen(this.isMobile);
701
- }, this.userId = "", this.session = "", this.language = void 0, 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.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.selectedOption = void 0, this.expandedOnDesktop = !1;
713
+ };
702
714
  }
703
715
  handleNewTranslations() {
704
716
  this.isLoading = !0, m(this.translationUrl).then(() => {
@@ -708,11 +720,14 @@ button, select {
708
720
  async componentWillLoad() {
709
721
  this.translationUrl.length > 2 && await m(this.translationUrl);
710
722
  }
711
- componentDidRender() {
712
- !this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
723
+ handleClientStylingChange(e, n) {
724
+ e != n && h(this.stylingContainer, this.clientStyling);
725
+ }
726
+ handleClientStylingUrlChange(e, n) {
727
+ e != n && this.clientStylingUrl && g(this.stylingContainer, this.clientStylingUrl);
713
728
  }
714
729
  async componentDidLoad() {
715
- window.innerWidth > 700 && (this.expandedOnDesktop = !0);
730
+ this.stylingContainer && (window.emMessageBus != null ? b(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && h(this.stylingContainer, this.clientStyling), this.clientStylingUrl && g(this.stylingContainer, this.clientStylingUrl))), window.innerWidth > 700 && (this.expandedOnDesktop = !0);
716
731
  try {
717
732
  let e = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
718
733
  const n = {
@@ -736,6 +751,9 @@ button, select {
736
751
  console.error("Error fetching verification types:", e);
737
752
  }
738
753
  }
754
+ disconnectedCallback() {
755
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
756
+ }
739
757
  handleOptionChange(e, n) {
740
758
  const t = e.target;
741
759
  this.selectedOption = t.value, this.verificationType = this.verificationType.map((a) => (a.type === n && (a.optionChosen = t.value), a));
@@ -833,11 +851,13 @@ button, select {
833
851
  }
834
852
  static get watchers() {
835
853
  return {
836
- translationUrl: ["handleNewTranslations"]
854
+ translationUrl: ["handleNewTranslations"],
855
+ clientStyling: ["handleClientStylingChange"],
856
+ clientStylingUrl: ["handleClientStylingUrlChange"]
837
857
  };
838
858
  }
839
859
  };
840
- S.style = b;
860
+ I.style = D;
841
861
  export {
842
- S as player_kyc_verification
862
+ I as player_kyc_verification
843
863
  };
@@ -14,16 +14,16 @@ var u = (e, n, t) => new Promise((a, o) => {
14
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-0437c9c0-C_oD9Yfn.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 ...",
@@ -520,8 +520,32 @@ const h = (e) => new Promise((n) => {
520
520
  });
521
521
  }), r = (e, n, t) => {
522
522
  const a = n;
523
- return f[a !== void 0 && a in f ? a : 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 {
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,23 +724,11 @@ 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.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((a) => a.text()).then((a) => {
711
- t.innerHTML = a, setTimeout(() => {
712
- this.stylingContainer.prepend(t);
713
- }, 1);
714
- }).catch((a) => {
715
- console.log("error ", a);
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
- }, this.userId = "", this.session = "", this.language = void 0, 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.uploadingStatus = void 0, this.uploadSizeExceeded = !1, this.selectedOption = void 0, this.expandedOnDesktop = !1;
731
+ };
720
732
  }
721
733
  handleNewTranslations() {
722
734
  this.isLoading = !0, h(this.translationUrl).then(() => {
@@ -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,6 +773,9 @@ 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
781
  this.selectedOption = t.value, this.verificationType = this.verificationType.map((a) => (a.type === n && (a.optionChosen = t.value), a));
@@ -855,11 +873,13 @@ button, select {
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,12 +1,12 @@
1
- import { r as l, c as o, h as t } from "./index-72d2f0c7--qtpsDOz.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
- import { t as s } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
- const n = '*,*::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}', r = n, c = class {
3
+ import { t as r } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
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 {
5
5
  constructor(e) {
6
- l(this, e), this.sendValidityState = o(this, "sendValidityState", 7), this.sendInputValue = o(this, "sendInputValue", 7), this.value = "", this.setClientStyling = () => {
6
+ l(this, e), this.sendValidityState = o(this, "sendValidityState"), this.sendInputValue = o(this, "sendInputValue"), this.defaultValue = "", this.clientStyling = "", this.limitStylingAppends = !1, this.showTooltip = !1, this.showFields = this.defaultValue === "true", this.value = "", this.setClientStyling = () => {
7
7
  let i = document.createElement("style");
8
8
  i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
9
- }, this.name = void 0, this.displayName = void 0, this.defaultValue = "", this.options = void 0, this.autofilled = void 0, this.tooltip = void 0, this.validation = void 0, this.language = void 0, this.emitValue = void 0, this.clientStyling = "", this.errorMessage = void 0, this.isValid = void 0, this.limitStylingAppends = !1, this.showTooltip = !1, this.showFields = this.defaultValue === "true";
9
+ };
10
10
  }
11
11
  validityStateHandler(e) {
12
12
  this.sendValidityState.emit(e);
@@ -37,10 +37,10 @@ const n = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.toggle
37
37
  return this.showTooltip ? t("div", { class: `togglecheckbox__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
38
38
  }
39
39
  render() {
40
- return t("div", { key: "8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (e) => this.stylingContainer = e }, t("div", { key: "18e2ec43ff98738323ddab1e134d6d215978e1c7", class: "togglecheckbox__wrapper--flex" }, t("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("small", { key: "efd70a691559cfa98e93561dd945a0fe92909718", class: "togglecheckbox__error-message" }, this.errorMessage), t("div", { key: "e56a8fafa17da25d01f894fe6e6c143c318d2aab", class: "togglecheckbox__wrapper--relative" }, this.tooltip && t("img", { key: "8b59366827b8f4f8ca5581203a2dca44ae8132d5", class: "togglecheckbox__tooltip-icon", src: s, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), t("div", { key: "475e27345b51396c36e78b5a1e06edd980bc3ae1", class: `togglecheckbox__fields-wrapper ${this.showFields ? "" : "hidden"}` }, this.options.map((e) => t("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 }))));
40
+ return t("div", { key: "8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (e) => this.stylingContainer = e }, t("div", { key: "18e2ec43ff98738323ddab1e134d6d215978e1c7", class: "togglecheckbox__wrapper--flex" }, t("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("small", { key: "efd70a691559cfa98e93561dd945a0fe92909718", class: "togglecheckbox__error-message" }, this.errorMessage), t("div", { key: "e56a8fafa17da25d01f894fe6e6c143c318d2aab", class: "togglecheckbox__wrapper--relative" }, this.tooltip && t("img", { key: "8b59366827b8f4f8ca5581203a2dca44ae8132d5", class: "togglecheckbox__tooltip-icon", src: r, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), t("div", { key: "475e27345b51396c36e78b5a1e06edd980bc3ae1", class: `togglecheckbox__fields-wrapper ${this.showFields ? "" : "hidden"}` }, this.options.map((e) => t("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 }))));
41
41
  }
42
42
  };
43
- c.style = r;
43
+ c.style = n;
44
44
  export {
45
45
  c as toggle_checkbox_input
46
46
  };
@@ -1,12 +1,12 @@
1
- import { r as l, c as o, h as t } from "./index-72d2f0c7-DyMEJXra.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
- import { t as s } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
- const n = '*,*::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}', r = n, c = class {
3
+ import { t as r } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
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 {
5
5
  constructor(e) {
6
- l(this, e), this.sendValidityState = o(this, "sendValidityState", 7), this.sendInputValue = o(this, "sendInputValue", 7), this.value = "", this.setClientStyling = () => {
6
+ l(this, e), this.sendValidityState = o(this, "sendValidityState"), this.sendInputValue = o(this, "sendInputValue"), this.defaultValue = "", this.clientStyling = "", this.limitStylingAppends = !1, this.showTooltip = !1, this.showFields = this.defaultValue === "true", this.value = "", this.setClientStyling = () => {
7
7
  let i = document.createElement("style");
8
8
  i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
9
- }, this.name = void 0, this.displayName = void 0, this.defaultValue = "", this.options = void 0, this.autofilled = void 0, this.tooltip = void 0, this.validation = void 0, this.language = void 0, this.emitValue = void 0, this.clientStyling = "", this.errorMessage = void 0, this.isValid = void 0, this.limitStylingAppends = !1, this.showTooltip = !1, this.showFields = this.defaultValue === "true";
9
+ };
10
10
  }
11
11
  validityStateHandler(e) {
12
12
  this.sendValidityState.emit(e);
@@ -37,10 +37,10 @@ const n = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.toggle
37
37
  return this.showTooltip ? t("div", { class: `togglecheckbox__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
38
38
  }
39
39
  render() {
40
- return t("div", { key: "8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (e) => this.stylingContainer = e }, t("div", { key: "18e2ec43ff98738323ddab1e134d6d215978e1c7", class: "togglecheckbox__wrapper--flex" }, t("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("small", { key: "efd70a691559cfa98e93561dd945a0fe92909718", class: "togglecheckbox__error-message" }, this.errorMessage), t("div", { key: "e56a8fafa17da25d01f894fe6e6c143c318d2aab", class: "togglecheckbox__wrapper--relative" }, this.tooltip && t("img", { key: "8b59366827b8f4f8ca5581203a2dca44ae8132d5", class: "togglecheckbox__tooltip-icon", src: s, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), t("div", { key: "475e27345b51396c36e78b5a1e06edd980bc3ae1", class: `togglecheckbox__fields-wrapper ${this.showFields ? "" : "hidden"}` }, this.options.map((e) => t("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 }))));
40
+ return t("div", { key: "8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (e) => this.stylingContainer = e }, t("div", { key: "18e2ec43ff98738323ddab1e134d6d215978e1c7", class: "togglecheckbox__wrapper--flex" }, t("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("small", { key: "efd70a691559cfa98e93561dd945a0fe92909718", class: "togglecheckbox__error-message" }, this.errorMessage), t("div", { key: "e56a8fafa17da25d01f894fe6e6c143c318d2aab", class: "togglecheckbox__wrapper--relative" }, this.tooltip && t("img", { key: "8b59366827b8f4f8ca5581203a2dca44ae8132d5", class: "togglecheckbox__tooltip-icon", src: r, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), t("div", { key: "475e27345b51396c36e78b5a1e06edd980bc3ae1", class: `togglecheckbox__fields-wrapper ${this.showFields ? "" : "hidden"}` }, this.options.map((e) => t("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 }))));
41
41
  }
42
42
  };
43
- c.style = r;
43
+ c.style = n;
44
44
  export {
45
45
  c as toggle_checkbox_input
46
46
  };
@@ -0,0 +1 @@
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;