@everymatrix/player-account-controller-nd 1.65.1 → 1.65.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/components/{GeneralLogout-D_LZ6noj.js → GeneralLogout-BqarYaGX.js} +1439 -1474
  2. package/components/{GeneralLogout-PryurO1h.js → GeneralLogout-DpRb1GKt.js} +1458 -1493
  3. package/components/GeneralLogout-DweBl3EQ.cjs +21 -0
  4. package/components/{PlayerAccountBettingHistory-BzAXq1xX.js → PlayerAccountBettingHistory-CZ-2Eo65.js} +27 -27
  5. package/components/{PlayerAccountBettingHistory-CwTEYOIN.js → PlayerAccountBettingHistory-DRNj2_nh.js} +27 -27
  6. package/components/{PlayerAccountBettingHistory-BtDZukYI.cjs → PlayerAccountBettingHistory-DgHU9Jz9.cjs} +1 -1
  7. package/components/{PlayerAccountBiometrics-CtLvJg_Q.js → PlayerAccountBiometrics-CS2Ou41a.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-DIkqSnzX.js → PlayerAccountBiometrics-Cp02JZ-p.js} +22 -22
  9. package/components/{PlayerAccountBiometrics-CEEVheLt.cjs → PlayerAccountBiometrics-DXk7ouzk.cjs} +1 -1
  10. package/components/{PlayerAccountClosureNd-DQAZanjf.js → PlayerAccountClosureNd-BDf6ZV_O.js} +50 -50
  11. package/components/{PlayerAccountClosureNd-Cn1XZe_j.cjs → PlayerAccountClosureNd-CEw0GMdr.cjs} +1 -1
  12. package/components/{PlayerAccountClosureNd-DrVdnKee.js → PlayerAccountClosureNd-DTSPR235.js} +50 -50
  13. package/components/{PlayerAccountControllerNd-DkFB8p5R.js → PlayerAccountControllerNd-BQ45aICW.js} +2107 -2096
  14. package/components/PlayerAccountControllerNd-C-wAC_7B.cjs +1 -0
  15. package/components/{PlayerAccountControllerNd-C_OCpw4E.js → PlayerAccountControllerNd-NrSVC8ZA.js} +2099 -2088
  16. package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-C5-wP3x8.cjs} +1 -1
  17. package/components/{PlayerAccountGamingLimits-BwempsG_.js → PlayerAccountGamingLimits-DYeE-UoB.js} +19 -19
  18. package/components/{PlayerAccountGamingLimits-C5fcaaR5.js → PlayerAccountGamingLimits-Dj1vdgsP.js} +19 -19
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-BzaZH1VM.js → PlayerAccountGamingLimitsConfirmationModal-9Smxn0Eo.js} +53 -53
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-CxFJV4Qq.js → PlayerAccountGamingLimitsConfirmationModal-BKE3chFw.js} +53 -53
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +1 -0
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-DVvwhjK6.js → PlayerAccountGamingLimitsGroupEdit-CmrrVg_q.js} +415 -413
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-D0hqXEY4.js → PlayerAccountGamingLimitsGroupEdit-IS7pwiyD.js} +415 -413
  24. package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +1 -0
  25. package/components/{PlayerAccountGamingLimitsHistory2Nd-DrMT268T.js → PlayerAccountGamingLimitsHistory2Nd-B1bxRx8n.js} +192 -192
  26. package/components/{PlayerAccountGamingLimitsHistory2Nd-p3iqTl1u.js → PlayerAccountGamingLimitsHistory2Nd-BWUzYYof.js} +199 -199
  27. package/components/{PlayerAccountGamingLimitsHistory2Nd-juZ45FBC.cjs → PlayerAccountGamingLimitsHistory2Nd-CyUmcHfd.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-dUq3DIBx.js → PlayerAccountGamingLimitsInfoCard-Cu4_dbfd.js} +80 -80
  29. package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs} +1 -1
  30. package/components/{PlayerAccountGamingLimitsInfoCard-BiYcxWjN.js → PlayerAccountGamingLimitsInfoCard-n38U4Bet.js} +80 -80
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B3S3aE0o.js → PlayerAccountGamingLimitsPage2Gm16Nd-BPmAMSJz.js} +91 -91
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CWcAVks7.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-BUYiE8KZ.cjs} +2 -2
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-HpGAoH_E.js → PlayerAccountGamingLimitsPage2Gm16Nd-BYYk6WIK.js} +91 -91
  34. package/components/{PlayerAccountGamingLimitsPopup-B5CoTG_T.js → PlayerAccountGamingLimitsPopup-Chfup4AC.js} +28 -28
  35. package/components/{PlayerAccountGamingLimitsPopup-CzDFUbRs.js → PlayerAccountGamingLimitsPopup-D3tfs8br.js} +28 -28
  36. package/components/{PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs → PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsWrapper2Nd-4ZYALP2a.js → PlayerAccountGamingLimitsWrapper2Nd-B2-GgwO6.js} +36 -36
  38. package/components/{PlayerAccountGamingLimitsWrapper2Nd-CErgPgvk.cjs → PlayerAccountGamingLimitsWrapper2Nd-BYj7hpNE.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2Nd-fpNsXAyX.js → PlayerAccountGamingLimitsWrapper2Nd-CBjFWU6Y.js} +36 -36
  40. package/components/{PlayerAccountGeneralConfirmationModal-Byd2u6b9.js → PlayerAccountGeneralConfirmationModal-C9sZnKk-.js} +95 -95
  41. package/components/{PlayerAccountGeneralConfirmationModal-C4zwKDdb.js → PlayerAccountGeneralConfirmationModal-CzWW7TO1.js} +95 -95
  42. package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +1 -0
  43. package/components/{PlayerAccountMenuNd-Cs9UjL2S.js → PlayerAccountMenuNd-B14HHDMC.js} +29 -29
  44. package/components/{PlayerAccountMenuNd-BFdU3ZXb.cjs → PlayerAccountMenuNd-BMezijtf.cjs} +1 -1
  45. package/components/{PlayerAccountMenuNd-Cx7Fxjin.js → PlayerAccountMenuNd-CGHNQ9Ia.js} +29 -29
  46. package/components/{PlayerAccountModal-DHs1T-B4.js → PlayerAccountModal-CNPgYrpB.js} +44 -44
  47. package/components/{PlayerAccountModal-iZqtQZF3.js → PlayerAccountModal-NKWbQg0Z.js} +44 -44
  48. package/components/{PlayerAccountModal-SsGlrcmj.cjs → PlayerAccountModal-lwDOdDa4.cjs} +1 -1
  49. package/components/{PlayerAccountNotifications-bjLmyXO3.js → PlayerAccountNotifications-BciDzDyI.js} +35 -35
  50. package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-CzMMRPni.cjs} +1 -1
  51. package/components/{PlayerAccountNotifications-BjAtYQls.js → PlayerAccountNotifications-Um7wlaR9.js} +120 -120
  52. package/components/{PlayerAccountSelfExclusionNd-Bp0d5NtF.js → PlayerAccountSelfExclusionNd-B_nRc8Sa.js} +311 -307
  53. package/components/{PlayerAccountSelfExclusionNd-CeQNwGUh.js → PlayerAccountSelfExclusionNd-Byg_2z0c.js} +310 -306
  54. package/components/{PlayerAccountSelfExclusionNd-SQnudIeJ.cjs → PlayerAccountSelfExclusionNd-CpT_ZFMN.cjs} +27 -27
  55. package/components/{PlayerAccountTimeout-CxUnQBuB.js → PlayerAccountTimeout-B4NvwUZo.js} +150 -150
  56. package/components/{PlayerAccountTimeout-WxW7Vcfz.js → PlayerAccountTimeout-CmRl0tEc.js} +150 -150
  57. package/components/{PlayerAccountTimeout-BJR8x6Ir.cjs → PlayerAccountTimeout-N0vyYDyZ.cjs} +1 -1
  58. package/components/{PlayerAccountTransactionsHistory-DV6Lliwo.cjs → PlayerAccountTransactionsHistory-CLtNxF1E.cjs} +1307 -217
  59. package/components/{PlayerAccountTransactionsHistory-BvJ2fnPY.js → PlayerAccountTransactionsHistory-DgRAaof5.js} +5552 -3254
  60. package/components/{PlayerAccountTransactionsHistory-weX9yWak.js → PlayerAccountTransactionsHistory-J86WA-wq.js} +5571 -3273
  61. package/components/{PlayerActiveBonuses-DbYy8R7L.js → PlayerActiveBonuses-BKHuSXjW.js} +54 -54
  62. package/components/{PlayerActiveBonuses-CVhSMdRf.cjs → PlayerActiveBonuses-C7G2b4x9.cjs} +1 -1
  63. package/components/{PlayerActiveBonuses-ednos3wt.js → PlayerActiveBonuses-ClF-vZCZ.js} +52 -52
  64. package/components/{PlayerBonusCard-C0Z6YeQL.js → PlayerBonusCard-DIuiutMI.js} +54 -54
  65. package/components/{PlayerBonusCard-CYnvLBMF.js → PlayerBonusCard-O-ukO4ru.js} +54 -54
  66. package/components/{PlayerBonusCard-BNNcjGWn.cjs → PlayerBonusCard-nwlvuWsq.cjs} +1 -1
  67. package/components/{PlayerBonusHistory-DinAEUrx.js → PlayerBonusHistory-C_nm1a_F.js} +30 -30
  68. package/components/{PlayerBonusHistory-DorlLTd1.cjs → PlayerBonusHistory-CxcDHDex.cjs} +1 -1
  69. package/components/{PlayerBonusHistory-CM-gMjlY.js → PlayerBonusHistory-TfBysWlo.js} +30 -30
  70. package/components/PlayerChangePasswordNd-CfG1zd-9.cjs +3 -0
  71. package/components/{PlayerChangePassword-BeIHgM2j.js → PlayerChangePasswordNd-DzfTEiBO.js} +148 -148
  72. package/components/{PlayerChangePassword-BcqVozRi.js → PlayerChangePasswordNd-R4s1Ic-G.js} +148 -148
  73. package/components/{PlayerDeposit-N7o3ip4d.js → PlayerDeposit-CwClAkf8.js} +29 -29
  74. package/components/{PlayerDeposit-Dzg8Ltb1.cjs → PlayerDeposit-DAFmH9HW.cjs} +1 -1
  75. package/components/{PlayerDeposit-CHnzNVZy.js → PlayerDeposit-odz0L-Xa.js} +29 -29
  76. package/components/{PlayerGamingHistory-D2D9wm2O.cjs → PlayerGamingHistory-BO-_vwOQ.cjs} +1 -1
  77. package/components/{PlayerGamingHistory-pa7KWkEL.js → PlayerGamingHistory-CCuaz9_n.js} +63 -63
  78. package/components/{PlayerGamingHistory-CbHSH7UQ.js → PlayerGamingHistory-D4ub-eTs.js} +63 -63
  79. package/components/{PlayerPendingWithdrawals-B2WyLuNV.js → PlayerPendingWithdrawals-DSZjjRc5.js} +26 -26
  80. package/components/{PlayerPendingWithdrawals-BMwtFNQT.cjs → PlayerPendingWithdrawals-DbuXpIXl.cjs} +1 -1
  81. package/components/{PlayerPendingWithdrawals-CRRuYNXr.js → PlayerPendingWithdrawals-WueprUX6.js} +26 -26
  82. package/components/PlayerProfileInfo-DFtxyN-C.cjs +4 -0
  83. package/components/PlayerProfileInfo-DmPxmtQq.js +2426 -0
  84. package/components/PlayerProfileInfo-i4qDDYbC.js +2463 -0
  85. package/components/{PlayerRealityCheck-RsT9a67Q.js → PlayerRealityCheck-BB6ql_la.js} +45 -45
  86. package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-CFJVJn17.cjs} +1 -1
  87. package/components/{PlayerRealityCheck-C7EUl18t.js → PlayerRealityCheck-Cvp1LCTw.js} +44 -44
  88. package/components/{PlayerTransactionHistory-BQlWb-B9.js → PlayerTransactionHistory-B-WizKVy.js} +19 -19
  89. package/components/{PlayerTransactionHistory-4VtQqLAc.cjs → PlayerTransactionHistory-BOtRm_b6.cjs} +1 -1
  90. package/components/{PlayerTransactionHistory-DyBRNwAw.js → PlayerTransactionHistory-OP187htZ.js} +19 -19
  91. package/components/{PlayerWithdrawal-C6_CSTeL.js → PlayerWithdrawal-5dv65FN3.js} +19 -19
  92. package/components/{PlayerWithdrawal-CgR0BwqA.js → PlayerWithdrawal-Cmns8eAn.js} +19 -19
  93. package/components/{PlayerWithdrawal-BMLgaRLc.cjs → PlayerWithdrawal-OBRjEIH9.cjs} +1 -1
  94. package/es2015/player-account-controller-nd.cjs +1 -1
  95. package/es2015/player-account-controller-nd.js +1 -1
  96. package/esnext/player-account-controller-nd.js +1 -1
  97. package/package.json +1 -1
  98. package/stencil/{checkbox-group-input_9-B_Jl5XYl.js → checkbox-group-input_9-BwrWZeLB.js} +92 -90
  99. package/stencil/checkbox-group-input_9-CImFZbCv.cjs +2 -0
  100. package/stencil/{checkbox-group-input_9-BubdPaeo.js → checkbox-group-input_9-DdpCHvWb.js} +92 -90
  101. package/stencil/{general-input-BRLohAp9.js → general-input-BDPI_fW2.js} +4998 -2742
  102. package/stencil/{general-input-CZRDVuGV.js → general-input-DpokfhP6.js} +5006 -2750
  103. package/stencil/{general-input-BjwgkYic.cjs → general-input-y1CIV_-r.cjs} +1306 -216
  104. package/stencil/{index-1ef3a64c-DsTe-fF4.js → index-1ef3a64c-B1Hda3TY.js} +185 -185
  105. package/stencil/index-1ef3a64c-CCWt3IAA.cjs +1 -0
  106. package/stencil/{index-1ef3a64c-BNosNJnU.js → index-1ef3a64c-Dd-0nq4l.js} +192 -192
  107. package/stencil/index-7c5e707a-8-4_dLFT.js +643 -0
  108. package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-CuTkyLaW.js} +209 -209
  109. package/stencil/index-7c5e707a-nBsW029h.cjs +1 -0
  110. package/stencil/index-9c0f6c58-DbSOntvG.cjs +1 -0
  111. package/stencil/{index-9c0f6c58-BNoMpTuB.js → index-9c0f6c58-NlVKpLut.js} +180 -180
  112. package/stencil/{index-9c0f6c58-pr1WGVFu.js → index-9c0f6c58-RPoO1End.js} +176 -176
  113. package/stencil/{index-9cd44522-NqpP4xs6.js → index-9cd44522-Cto_o6sQ.js} +202 -202
  114. package/stencil/{index-9cd44522-CbUzJsuK.js → index-9cd44522-DrlRFYrB.js} +196 -196
  115. package/stencil/index-9cd44522-lYql7AfG.cjs +1 -0
  116. package/stencil/index-b2193545-BXNomIzV.js +519 -0
  117. package/stencil/index-b2193545-CYe2oVMy.js +503 -0
  118. package/stencil/index-b2193545-DxRobzZI.cjs +1 -0
  119. package/stencil/locale-CB060R77.cjs +1 -0
  120. package/stencil/{locale-ioQf6ZrW.js → locale-Cxpe53Ym.js} +9 -3
  121. package/stencil/{password-input_2-8BNshhaU.cjs → password-input_2-BFXxkcXV.cjs} +2 -2
  122. package/stencil/{password-input_2-DIwo3oT2.js → password-input_2-CqbOPSSZ.js} +26 -24
  123. package/stencil/{password-input_2-DhPkhv-D.js → password-input_2-DQst8UHp.js} +26 -24
  124. package/stencil/{player-change-password-gm2-5cb5c6c1-BsO6atoJ.js → player-change-password-gm2-5cb5c6c1-BhDKCfuN.js} +1 -1
  125. package/stencil/{player-change-password-gm2-5cb5c6c1-C0AlgHfx.js → player-change-password-gm2-5cb5c6c1-Ch9RyZ2b.js} +1 -1
  126. package/stencil/{player-change-password-gm2-5cb5c6c1-ij_CKxBn.cjs → player-change-password-gm2-5cb5c6c1-n4BjzEVs.cjs} +1 -1
  127. package/stencil/{player-change-password-gm2-ALHM57bi.js → player-change-password-gm2-Bg9HNK0A.js} +1 -1
  128. package/stencil/{player-change-password-gm2-bVKmVTiQ.js → player-change-password-gm2-CNOsEIfo.js} +1 -1
  129. package/stencil/{player-change-password-gm2-ZOlHswn0.cjs → player-change-password-gm2-COsfG6W5.cjs} +1 -1
  130. package/stencil/{player-kyc-verification-CUhrMPde.js → player-kyc-verification-Cxnz1raa.js} +79 -76
  131. package/stencil/{player-kyc-verification-DPUx1txP.js → player-kyc-verification-DA_O1Dqu.js} +36 -33
  132. package/stencil/player-kyc-verification-qKWuqiUm.cjs +180 -0
  133. package/stencil/{toggle-checkbox-input-LjmhdQte.js → toggle-checkbox-input-B4lb8oMh.js} +2 -2
  134. package/stencil/{toggle-checkbox-input-D3dpAI79.cjs → toggle-checkbox-input-BhQAILyC.cjs} +1 -1
  135. package/stencil/{toggle-checkbox-input-hUEi-Cj3.js → toggle-checkbox-input-rocW3Yvz.js} +2 -2
  136. package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-1cb75d00-CZJ4UoDJ.js} +1 -1
  137. package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-1cb75d00-D5Bub0nv.js} +1 -1
  138. package/stencil/{ui-skeleton-1cb75d00-Batko5iK.cjs → ui-skeleton-1cb75d00-dFWe5qbW.cjs} +1 -1
  139. package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-BH5oLkn9.cjs} +1 -1
  140. package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-CZ5yC1WO.js} +2 -2
  141. package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-vLKdvRqw.js} +2 -2
  142. package/stencil/{user-deposit-withdrawal-Dzz_fEvK.js → user-deposit-withdrawal-BMWb-WJE.js} +45 -45
  143. package/stencil/{user-deposit-withdrawal-C7W58646.js → user-deposit-withdrawal-ByE9O4TW.js} +45 -45
  144. package/stencil/{user-deposit-withdrawal-Dfu_1g2v.cjs → user-deposit-withdrawal-DGTrOlxS.cjs} +2 -2
  145. package/stencil/{user-transaction-history-DhQ6RqNc.js → user-transaction-history-BU4-cXt6.js} +11 -11
  146. package/stencil/{user-transaction-history-BAK7MHHa.js → user-transaction-history-CXBKXul8.js} +14 -14
  147. package/stencil/{user-transaction-history-DiRXpfbN.cjs → user-transaction-history-DLLIZ5Ck.cjs} +1 -1
  148. package/components/GeneralLogout-Dzu2Sl-x.cjs +0 -21
  149. package/components/PlayerAccountControllerNd-CKctddtR.cjs +0 -1
  150. package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +0 -1
  151. package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
  152. package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
  153. package/components/PlayerChangePassword-LgjKzYU1.cjs +0 -3
  154. package/components/PlayerProfileInfo-8ER8t_W6.js +0 -2383
  155. package/components/PlayerProfileInfo-D5YZWH2T.cjs +0 -4
  156. package/components/PlayerProfileInfo-D6LqZyUL.js +0 -2419
  157. package/stencil/checkbox-group-input_9-BvAcuPzL.cjs +0 -2
  158. package/stencil/index-1ef3a64c-CFvPR_NP.cjs +0 -1
  159. package/stencil/index-7c5e707a-DvxqcEpc.js +0 -643
  160. package/stencil/index-7c5e707a-ESX_oqGB.cjs +0 -1
  161. package/stencil/index-9c0f6c58-DkHHwpww.cjs +0 -1
  162. package/stencil/index-9cd44522-WdjpTA2U.cjs +0 -1
  163. package/stencil/index-b2193545-CnMZ4-Ff.js +0 -519
  164. package/stencil/index-b2193545-Ct5AhxM8.cjs +0 -1
  165. package/stencil/index-b2193545-DePry399.js +0 -503
  166. package/stencil/locale-BB2iZ4t0.cjs +0 -1
  167. package/stencil/player-kyc-verification-DAy-szI5.cjs +0 -180
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-9cd44522-WdjpTA2U.cjs"),n=require("./locale-BB2iZ4t0.cjs"),p=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),h=require("./player-change-password-gm2-5cb5c6c1-ij_CKxBn.cjs"),u=`*,
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-9cd44522-lYql7AfG.cjs"),a=require("./locale-CB060R77.cjs"),h=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),u=require("./player-change-password-gm2-5cb5c6c1-n4BjzEVs.cjs"),c=`*,
2
2
  *::before,
3
3
  *::after {
4
4
  padding: 0;
@@ -190,4 +190,4 @@
190
190
  }
191
191
  .password__tooltip.visible {
192
192
  opacity: 1;
193
- }`,c=u,d=class{constructor(e){i.registerInstance(this,e),this.sendOriginalValidityState=i.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=i.createEvent(this,"sendValidityState"),this.sendInputValue=i.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(e){e==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}originalValidityChangedHandler(e){this.isDuplicateInput&&(e.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(e){this.isDuplicateInput&&this.name===e.detail.name+"Duplicate"&&(this.duplicateInputValue=e.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===e.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===e.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}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)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",e=>{this.handleRevealField(e)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(e){this.passwordComplexity=this.validation.custom.filter(t=>t.rule==="regex").map(t=>{const r=new RegExp(t.pattern).test(e);return{rule:t.displayName,ruleKey:t.errorKey,passed:r}})}setValidity(){var e,t;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((e=this.passwordComplexity)===null||e===void 0)&&e.every(s=>s.passed)?(t=this.inputReference)===null||t===void 0?void 0:t.validity.valid:!1}setPattern(){var e,t;if(((e=this.validation.custom)===null||e===void 0?void 0:e.length)>0)return(t=this.validation.custom.find(s=>s.rule==="regex"))===null||t===void 0?void 0:t.pattern}setErrorMessage(){var e,t,s,r;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return n.translate("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return n.translate("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const a=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorKey,l=(t=this.validation.custom.find(o=>o.rule==="regex"))===null||t===void 0?void 0:t.errorMessage;return n.translate(`${a}`,this.language)?n.translate(`${a}`,this.language):l}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(s=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||s===void 0?void 0:s.errorKey,l=(r=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return n.translate(`${a}`,this.language)?n.translate(`${a}`,this.language):l}}renderTooltip(){return this.showTooltip?i.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}renderComplexityPopup(){const e=this.passwordComplexity.length,s=this.passwordComplexity.filter(a=>a.passed).length/e,r=this.passwordComplexity.every(a=>a.passed);return i.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},i.h("div",{class:"password__complexity--strength"},i.h("p",{class:"password__complexity--text"},n.translate("passwordStrength",this.language)," ",i.h("span",{class:"password__complexity--text-bold"},n.translate(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),i.h("meter",{value:s,min:"0",max:"1"})),i.h("div",null,this.passwordComplexity.map((a,l)=>i.h("div",{key:l},i.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),i.h("span",null,n.translate(`${a.ruleKey}`,this.language)?n.translate(`${a.ruleKey}`,this.language):a.rule)))))}render(){let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),i.h("div",{key:"7df2b034611f7384a1eb4470e39ee580e0ae6ce5",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i.h("div",{key:"fbf309a458ccfd7c7133b7f65fafc061ad7e5c37",class:"password__wrapper--flex"},i.h("label",{key:"f15c05d6fa8690d6a120ab2ad56127665618cb94",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),i.h("div",{key:"d191b29e231685f0ceb7e42f9b1e9471450662bd",class:"password__wrapper--relative"},this.tooltip&&i.h("img",{key:"23052474b109d273ba94e80cbd9d72986c373910",class:"password__tooltip-icon",src:p.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i.h("vaadin-password-field",{key:"cfd7bb8bf495f77037f2a519701e609f18ce072f",type:"password",id:`${this.name}__input`,class:`password__input ${e}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),i.h("small",{key:"e8aa77d19ed2497659f784da065720be6fa64bfd",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return i.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};d.style=c;exports.player_change_password_gm2=h.PlayerChangePasswordGm2;exports.password_input=d;
193
+ }`,m=c,p=class{constructor(e){i.registerInstance(this,e),this.sendOriginalValidityState=i.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=i.createEvent(this,"sendValidityState"),this.sendInputValue=i.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(e){e==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}originalValidityChangedHandler(e){this.isDuplicateInput&&(e.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(e){this.isDuplicateInput&&this.name===e.detail.name+"Duplicate"&&(this.duplicateInputValue=e.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===e.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===e.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}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)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",e=>{this.handleRevealField(e)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(e){this.passwordComplexity=this.validation.custom.filter(t=>t.rule==="regex").map(t=>{const l=new RegExp(t.pattern).test(e);return{rule:t.displayName,ruleKey:t.errorKey,passed:l}})}setValidity(){var e,t;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((e=this.passwordComplexity)===null||e===void 0)&&e.every(s=>s.passed)?(t=this.inputReference)===null||t===void 0?void 0:t.validity.valid:!1}setPattern(){var e,t;if(((e=this.validation.custom)===null||e===void 0?void 0:e.length)>0)return(t=this.validation.custom.find(s=>s.rule==="regex"))===null||t===void 0?void 0:t.pattern}setErrorMessage(){var e,t,s,l,n;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return a.translate("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return a.translate("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const r=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorKey,d=(t=this.validation.custom.find(o=>o.rule==="regex"))===null||t===void 0?void 0:t.errorMessage;return a.translate(`${r}`,this.language)?a.translate(`${r}`,this.language):d}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const r=(s=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||s===void 0?void 0:s.errorKey,d=(l=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||l===void 0?void 0:l.errorMessage;return a.translate(`${r}`,this.language)?a.translate(`${r}`,this.language):d}if(!(!((n=this.passwordComplexity)===null||n===void 0)&&n.every(r=>r.passed))&&!this.showPopup)return a.translate("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?i.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}renderComplexityPopup(){const e=this.passwordComplexity.length,s=this.passwordComplexity.filter(n=>n.passed).length/e,l=this.passwordComplexity.every(n=>n.passed);return i.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},i.h("div",{class:"password__complexity--strength"},i.h("p",{class:"password__complexity--text"},a.translate("passwordStrength",this.language)," ",i.h("span",{class:"password__complexity--text-bold"},a.translate(`${l?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),i.h("meter",{value:s,min:"0",max:"1"})),i.h("div",null,this.passwordComplexity.map((n,r)=>i.h("div",{key:r},i.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:n.passed,disabled:!0}),i.h("span",null,a.translate(`${n.ruleKey}`,this.language)?a.translate(`${n.ruleKey}`,this.language):n.rule)))))}render(){let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),i.h("div",{key:"d5757f6d03b0c3ad30b57b9c62d8cd7c8802a37a",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i.h("div",{key:"7e7508731d7397b6c578335715c711ea97c46d3a",class:"password__wrapper--flex"},i.h("label",{key:"ce4fd50f4f9ae7fb772df496784a3869e29618b6",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),i.h("div",{key:"640fa5664eede59b585bfd314854615cf4da46c1",class:"password__wrapper--relative"},this.tooltip&&i.h("img",{key:"0c0d0d71bf84c3ab6b0804424405ffacb1e87660",class:"password__tooltip-icon",src:h.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i.h("vaadin-password-field",{key:"4a966b226d6ec04fbebcad8cf12896bbc05b84fa",type:"password",id:`${this.name}__input`,class:`password__input ${e}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),i.h("small",{key:"1218d65c065a0dcc1b17d1422e08849b9b3de5ce",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return i.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};p.style=m;exports.player_change_password_gm2=u.PlayerChangePasswordGm2;exports.password_input=p;
@@ -1,8 +1,8 @@
1
- import { r as p, c as d, h as i, g as h } from "./index-9cd44522-NqpP4xs6.js";
2
- import { t as n } from "./locale-ioQf6ZrW.js";
3
- import { t as u } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
- import { P as x } from "./player-change-password-gm2-5cb5c6c1-BsO6atoJ.js";
5
- const c = `*,
1
+ import { r as h, c as p, h as i, g as u } from "./index-9cd44522-DrlRFYrB.js";
2
+ import { t as a } from "./locale-Cxpe53Ym.js";
3
+ import { t as c } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
+ import { P as b } from "./player-change-password-gm2-5cb5c6c1-Ch9RyZ2b.js";
5
+ const m = `*,
6
6
  *::before,
7
7
  *::after {
8
8
  padding: 0;
@@ -194,9 +194,9 @@ const c = `*,
194
194
  }
195
195
  .password__tooltip.visible {
196
196
  opacity: 1;
197
- }`, m = c, g = class {
197
+ }`, g = m, f = class {
198
198
  constructor(e) {
199
- p(this, e), this.sendOriginalValidityState = d(this, "sendOriginalValidityState"), this.sendValidityState = d(this, "sendValidityState"), this.sendInputValue = d(this, "sendInputValue"), this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (t) => {
199
+ h(this, e), this.sendOriginalValidityState = p(this, "sendOriginalValidityState"), this.sendValidityState = p(this, "sendValidityState"), this.sendInputValue = p(this, "sendInputValue"), this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (t) => {
200
200
  this.value = t.target.value, this.calculateComplexity(this.value), this.showPopup = !0, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
201
201
  this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
202
202
  }, 500);
@@ -251,8 +251,8 @@ const c = `*,
251
251
  }
252
252
  calculateComplexity(e) {
253
253
  this.passwordComplexity = this.validation.custom.filter((t) => t.rule === "regex").map((t) => {
254
- const r = new RegExp(t.pattern).test(e);
255
- return { rule: t.displayName, ruleKey: t.errorKey, passed: r };
254
+ const o = new RegExp(t.pattern).test(e);
255
+ return { rule: t.displayName, ruleKey: t.errorKey, passed: o };
256
256
  });
257
257
  }
258
258
  setValidity() {
@@ -265,35 +265,37 @@ const c = `*,
265
265
  return (t = this.validation.custom.find((s) => s.rule === "regex")) === null || t === void 0 ? void 0 : t.pattern;
266
266
  }
267
267
  setErrorMessage() {
268
- var e, t, s, r;
268
+ var e, t, s, o, n;
269
269
  if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
270
- return n("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
270
+ return a("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
271
271
  if (this.inputReference.validity.valueMissing)
272
- return n("requiredError", this.language);
272
+ return a("requiredError", this.language);
273
273
  if (this.isDuplicateInput && !this.originalValid)
274
- return n("invalidOriginalPasswordError", this.language);
274
+ return a("invalidOriginalPasswordError", this.language);
275
275
  if (this.inputReference.validity.patternMismatch) {
276
- const a = (e = this.validation.custom.find((o) => o.rule === "regex")) === null || e === void 0 ? void 0 : e.errorKey, l = (t = this.validation.custom.find((o) => o.rule === "regex")) === null || t === void 0 ? void 0 : t.errorMessage;
277
- return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
276
+ const r = (e = this.validation.custom.find((l) => l.rule === "regex")) === null || e === void 0 ? void 0 : e.errorKey, d = (t = this.validation.custom.find((l) => l.rule === "regex")) === null || t === void 0 ? void 0 : t.errorMessage;
277
+ return a(`${r}`, this.language) ? a(`${r}`, this.language) : d;
278
278
  }
279
279
  if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
280
- const a = (s = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || s === void 0 ? void 0 : s.errorKey, l = (r = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || r === void 0 ? void 0 : r.errorMessage;
281
- return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
280
+ const r = (s = this.validation.custom.find((l) => l.rule === "duplicate-input")) === null || s === void 0 ? void 0 : s.errorKey, d = (o = this.validation.custom.find((l) => l.rule === "duplicate-input")) === null || o === void 0 ? void 0 : o.errorMessage;
281
+ return a(`${r}`, this.language) ? a(`${r}`, this.language) : d;
282
282
  }
283
+ if (!(!((n = this.passwordComplexity) === null || n === void 0) && n.every((r) => r.passed)) && !this.showPopup)
284
+ return a("invalidPassword", this.language);
283
285
  }
284
286
  renderTooltip() {
285
287
  return this.showTooltip ? i("div", { class: `password__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
286
288
  }
287
289
  renderComplexityPopup() {
288
- const e = this.passwordComplexity.length, s = this.passwordComplexity.filter((a) => a.passed).length / e, r = this.passwordComplexity.every((a) => a.passed);
289
- return i("div", { class: `password__complexity ${this.showPopup ? "" : "password__complexity--hidden"}` }, i("div", { class: "password__complexity--strength" }, i("p", { class: "password__complexity--text" }, n("passwordStrength", this.language), " ", i("span", { class: "password__complexity--text-bold" }, n(`${r ? "passwordStrengthStrong" : "passwordStrengthWeak"}`, this.language))), i("meter", { value: s, min: "0", max: "1" })), i("div", null, this.passwordComplexity.map((a, l) => i("div", { key: l }, i("input", { class: "password__complexity--checkbox", type: "checkbox", checked: a.passed, disabled: !0 }), i("span", null, n(`${a.ruleKey}`, this.language) ? n(`${a.ruleKey}`, this.language) : a.rule)))));
290
+ const e = this.passwordComplexity.length, s = this.passwordComplexity.filter((n) => n.passed).length / e, o = this.passwordComplexity.every((n) => n.passed);
291
+ return i("div", { class: `password__complexity ${this.showPopup ? "" : "password__complexity--hidden"}` }, i("div", { class: "password__complexity--strength" }, i("p", { class: "password__complexity--text" }, a("passwordStrength", this.language), " ", i("span", { class: "password__complexity--text-bold" }, a(`${o ? "passwordStrengthStrong" : "passwordStrengthWeak"}`, this.language))), i("meter", { value: s, min: "0", max: "1" })), i("div", null, this.passwordComplexity.map((n, r) => i("div", { key: r }, i("input", { class: "password__complexity--checkbox", type: "checkbox", checked: n.passed, disabled: !0 }), i("span", null, a(`${n.ruleKey}`, this.language) ? a(`${n.ruleKey}`, this.language) : n.rule)))));
290
292
  }
291
293
  render() {
292
294
  let e = "";
293
- return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), i("div", { key: "7df2b034611f7384a1eb4470e39ee580e0ae6ce5", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (t) => this.stylingContainer = t }, i("div", { key: "fbf309a458ccfd7c7133b7f65fafc061ad7e5c37", class: "password__wrapper--flex" }, i("label", { key: "f15c05d6fa8690d6a120ab2ad56127665618cb94", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), i("div", { key: "d191b29e231685f0ceb7e42f9b1e9471450662bd", class: "password__wrapper--relative" }, this.tooltip && i("img", { key: "23052474b109d273ba94e80cbd9d72986c373910", class: "password__tooltip-icon", src: u, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), i("vaadin-password-field", { key: "cfd7bb8bf495f77037f2a519701e609f18ce072f", type: "password", id: `${this.name}__input`, class: `password__input ${e}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), i("small", { key: "e8aa77d19ed2497659f784da065720be6fa64bfd", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
295
+ return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), i("div", { key: "d5757f6d03b0c3ad30b57b9c62d8cd7c8802a37a", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (t) => this.stylingContainer = t }, i("div", { key: "7e7508731d7397b6c578335715c711ea97c46d3a", class: "password__wrapper--flex" }, i("label", { key: "ce4fd50f4f9ae7fb772df496784a3869e29618b6", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), i("div", { key: "640fa5664eede59b585bfd314854615cf4da46c1", class: "password__wrapper--relative" }, this.tooltip && i("img", { key: "0c0d0d71bf84c3ab6b0804424405ffacb1e87660", class: "password__tooltip-icon", src: c, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), i("vaadin-password-field", { key: "4a966b226d6ec04fbebcad8cf12896bbc05b84fa", type: "password", id: `${this.name}__input`, class: `password__input ${e}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), i("small", { key: "1218d65c065a0dcc1b17d1422e08849b9b3de5ce", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
294
296
  }
295
297
  get element() {
296
- return h(this);
298
+ return u(this);
297
299
  }
298
300
  static get watchers() {
299
301
  return {
@@ -304,8 +306,8 @@ const c = `*,
304
306
  };
305
307
  }
306
308
  };
307
- g.style = m;
309
+ f.style = g;
308
310
  export {
309
- g as password_input,
310
- x as player_change_password_gm2
311
+ f as password_input,
312
+ b as player_change_password_gm2
311
313
  };
@@ -1,8 +1,8 @@
1
- import { r as p, c as d, h as i, g as h } from "./index-9cd44522-CbUzJsuK.js";
2
- import { t as n } from "./locale-ioQf6ZrW.js";
3
- import { t as u } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
- import { P as x } from "./player-change-password-gm2-5cb5c6c1-C0AlgHfx.js";
5
- const c = `*,
1
+ import { r as h, c as p, h as i, g as u } from "./index-9cd44522-Cto_o6sQ.js";
2
+ import { t as a } from "./locale-Cxpe53Ym.js";
3
+ import { t as c } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
+ import { P as b } from "./player-change-password-gm2-5cb5c6c1-BhDKCfuN.js";
5
+ const m = `*,
6
6
  *::before,
7
7
  *::after {
8
8
  padding: 0;
@@ -194,9 +194,9 @@ const c = `*,
194
194
  }
195
195
  .password__tooltip.visible {
196
196
  opacity: 1;
197
- }`, m = c, g = class {
197
+ }`, g = m, f = class {
198
198
  constructor(e) {
199
- p(this, e), this.sendOriginalValidityState = d(this, "sendOriginalValidityState"), this.sendValidityState = d(this, "sendValidityState"), this.sendInputValue = d(this, "sendInputValue"), this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (t) => {
199
+ h(this, e), this.sendOriginalValidityState = p(this, "sendOriginalValidityState"), this.sendValidityState = p(this, "sendValidityState"), this.sendInputValue = p(this, "sendInputValue"), this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (t) => {
200
200
  this.value = t.target.value, this.calculateComplexity(this.value), this.showPopup = !0, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
201
201
  this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
202
202
  }, 500);
@@ -251,8 +251,8 @@ const c = `*,
251
251
  }
252
252
  calculateComplexity(e) {
253
253
  this.passwordComplexity = this.validation.custom.filter((t) => t.rule === "regex").map((t) => {
254
- const r = new RegExp(t.pattern).test(e);
255
- return { rule: t.displayName, ruleKey: t.errorKey, passed: r };
254
+ const o = new RegExp(t.pattern).test(e);
255
+ return { rule: t.displayName, ruleKey: t.errorKey, passed: o };
256
256
  });
257
257
  }
258
258
  setValidity() {
@@ -265,35 +265,37 @@ const c = `*,
265
265
  return (t = this.validation.custom.find((s) => s.rule === "regex")) === null || t === void 0 ? void 0 : t.pattern;
266
266
  }
267
267
  setErrorMessage() {
268
- var e, t, s, r;
268
+ var e, t, s, o, n;
269
269
  if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
270
- return n("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
270
+ return a("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
271
271
  if (this.inputReference.validity.valueMissing)
272
- return n("requiredError", this.language);
272
+ return a("requiredError", this.language);
273
273
  if (this.isDuplicateInput && !this.originalValid)
274
- return n("invalidOriginalPasswordError", this.language);
274
+ return a("invalidOriginalPasswordError", this.language);
275
275
  if (this.inputReference.validity.patternMismatch) {
276
- const a = (e = this.validation.custom.find((o) => o.rule === "regex")) === null || e === void 0 ? void 0 : e.errorKey, l = (t = this.validation.custom.find((o) => o.rule === "regex")) === null || t === void 0 ? void 0 : t.errorMessage;
277
- return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
276
+ const r = (e = this.validation.custom.find((l) => l.rule === "regex")) === null || e === void 0 ? void 0 : e.errorKey, d = (t = this.validation.custom.find((l) => l.rule === "regex")) === null || t === void 0 ? void 0 : t.errorMessage;
277
+ return a(`${r}`, this.language) ? a(`${r}`, this.language) : d;
278
278
  }
279
279
  if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
280
- const a = (s = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || s === void 0 ? void 0 : s.errorKey, l = (r = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || r === void 0 ? void 0 : r.errorMessage;
281
- return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
280
+ const r = (s = this.validation.custom.find((l) => l.rule === "duplicate-input")) === null || s === void 0 ? void 0 : s.errorKey, d = (o = this.validation.custom.find((l) => l.rule === "duplicate-input")) === null || o === void 0 ? void 0 : o.errorMessage;
281
+ return a(`${r}`, this.language) ? a(`${r}`, this.language) : d;
282
282
  }
283
+ if (!(!((n = this.passwordComplexity) === null || n === void 0) && n.every((r) => r.passed)) && !this.showPopup)
284
+ return a("invalidPassword", this.language);
283
285
  }
284
286
  renderTooltip() {
285
287
  return this.showTooltip ? i("div", { class: `password__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
286
288
  }
287
289
  renderComplexityPopup() {
288
- const e = this.passwordComplexity.length, s = this.passwordComplexity.filter((a) => a.passed).length / e, r = this.passwordComplexity.every((a) => a.passed);
289
- return i("div", { class: `password__complexity ${this.showPopup ? "" : "password__complexity--hidden"}` }, i("div", { class: "password__complexity--strength" }, i("p", { class: "password__complexity--text" }, n("passwordStrength", this.language), " ", i("span", { class: "password__complexity--text-bold" }, n(`${r ? "passwordStrengthStrong" : "passwordStrengthWeak"}`, this.language))), i("meter", { value: s, min: "0", max: "1" })), i("div", null, this.passwordComplexity.map((a, l) => i("div", { key: l }, i("input", { class: "password__complexity--checkbox", type: "checkbox", checked: a.passed, disabled: !0 }), i("span", null, n(`${a.ruleKey}`, this.language) ? n(`${a.ruleKey}`, this.language) : a.rule)))));
290
+ const e = this.passwordComplexity.length, s = this.passwordComplexity.filter((n) => n.passed).length / e, o = this.passwordComplexity.every((n) => n.passed);
291
+ return i("div", { class: `password__complexity ${this.showPopup ? "" : "password__complexity--hidden"}` }, i("div", { class: "password__complexity--strength" }, i("p", { class: "password__complexity--text" }, a("passwordStrength", this.language), " ", i("span", { class: "password__complexity--text-bold" }, a(`${o ? "passwordStrengthStrong" : "passwordStrengthWeak"}`, this.language))), i("meter", { value: s, min: "0", max: "1" })), i("div", null, this.passwordComplexity.map((n, r) => i("div", { key: r }, i("input", { class: "password__complexity--checkbox", type: "checkbox", checked: n.passed, disabled: !0 }), i("span", null, a(`${n.ruleKey}`, this.language) ? a(`${n.ruleKey}`, this.language) : n.rule)))));
290
292
  }
291
293
  render() {
292
294
  let e = "";
293
- return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), i("div", { key: "7df2b034611f7384a1eb4470e39ee580e0ae6ce5", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (t) => this.stylingContainer = t }, i("div", { key: "fbf309a458ccfd7c7133b7f65fafc061ad7e5c37", class: "password__wrapper--flex" }, i("label", { key: "f15c05d6fa8690d6a120ab2ad56127665618cb94", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), i("div", { key: "d191b29e231685f0ceb7e42f9b1e9471450662bd", class: "password__wrapper--relative" }, this.tooltip && i("img", { key: "23052474b109d273ba94e80cbd9d72986c373910", class: "password__tooltip-icon", src: u, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), i("vaadin-password-field", { key: "cfd7bb8bf495f77037f2a519701e609f18ce072f", type: "password", id: `${this.name}__input`, class: `password__input ${e}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), i("small", { key: "e8aa77d19ed2497659f784da065720be6fa64bfd", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
295
+ return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), i("div", { key: "d5757f6d03b0c3ad30b57b9c62d8cd7c8802a37a", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (t) => this.stylingContainer = t }, i("div", { key: "7e7508731d7397b6c578335715c711ea97c46d3a", class: "password__wrapper--flex" }, i("label", { key: "ce4fd50f4f9ae7fb772df496784a3869e29618b6", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), i("div", { key: "640fa5664eede59b585bfd314854615cf4da46c1", class: "password__wrapper--relative" }, this.tooltip && i("img", { key: "0c0d0d71bf84c3ab6b0804424405ffacb1e87660", class: "password__tooltip-icon", src: c, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), i("vaadin-password-field", { key: "4a966b226d6ec04fbebcad8cf12896bbc05b84fa", type: "password", id: `${this.name}__input`, class: `password__input ${e}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), i("small", { key: "1218d65c065a0dcc1b17d1422e08849b9b3de5ce", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
294
296
  }
295
297
  get element() {
296
- return h(this);
298
+ return u(this);
297
299
  }
298
300
  static get watchers() {
299
301
  return {
@@ -304,8 +306,8 @@ const c = `*,
304
306
  };
305
307
  }
306
308
  };
307
- g.style = m;
309
+ f.style = g;
308
310
  export {
309
- g as password_input,
310
- x as player_change_password_gm2
311
+ f as password_input,
312
+ b as player_change_password_gm2
311
313
  };
@@ -1,4 +1,4 @@
1
- import { r as w, h as i } from "./index-9cd44522-NqpP4xs6.js";
1
+ import { r as w, h as i } from "./index-9cd44522-Cto_o6sQ.js";
2
2
  const p = "en", h = {
3
3
  en: {
4
4
  title: "Change Password",
@@ -1,4 +1,4 @@
1
- import { r as w, h as i } from "./index-9cd44522-CbUzJsuK.js";
1
+ import { r as w, h as i } from "./index-9cd44522-DrlRFYrB.js";
2
2
  const p = "en", h = {
3
3
  en: {
4
4
  title: "Change Password",
@@ -1 +1 @@
1
- "use strict";const i=require("./index-9cd44522-WdjpTA2U.cjs"),p="en",h={en:{title:"Change Password",btnSubmit:"Change Password",passwordPlaceholderText:"Please enter your password",newPasswordPlaceholderText:"Please enter your new password",confirmPasswordPlaceholderText:"Please confirm your new password",passwordDisplayText:"Current Password",newPasswordDisplayText:"New Password",confirmPasswordDisplayText:"Confirm Password",successMsg:"Password changed successfully",errorMsgGeneric:"There was an error when attempting to change your password","gm.pms.password_not_verified_unauthorized":"The current password you have entered is incorrect","gm.pms.password_policy_failed":"Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change."},fr:{title:"Changer le mot de passe",btnSubmit:"Changer le mot de passe",passwordPlaceholderText:"Veuillez entrer votre mot de passe",newPasswordPlaceholderText:"Veuillez entrer votre nouveau mot de passe",confirmPasswordPlaceholderText:"Veuillez confirmer votre nouveau mot de passe",passwordDisplayText:"Mot de passe actuel",newPasswordDisplayText:"Nouveau mot de passe",confirmPasswordDisplayText:"Confirmer le mot de passe",successMsg:"Mot de passe changé avec succès",errorMsgGeneric:"Une erreur est survenue lors de la tentative de changement de mot de passe","gm.pms.password_not_verified_unauthorized":"Le mot de passe actuel que vous avez entré est incorrect","gm.pms.password_policy_failed":"Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement."},ro:{title:"Schimbă Parola",btnSubmit:"Schimbă Parola",passwordPlaceholderText:"Vă rugăm să introduceți parola",newPasswordPlaceholderText:"Vă rugăm să introduceți noua parolă",confirmPasswordPlaceholderText:"Vă rugăm să confirmați noua parolă",passwordDisplayText:"Parolă Curentă",newPasswordDisplayText:"Parolă Nouă",confirmPasswordDisplayText:"Confirmă Parola",successMsg:"Parola a fost schimbată cu succes",errorMsgGeneric:"A apărut o eroare la încercarea de schimbare a parolei","gm.pms.password_not_verified_unauthorized":"Parola curentă introdusă este incorectă","gm.pms.password_policy_failed":"Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare."},es:{title:"Cambiar Contraseña",btnSubmit:"Cambiar Contraseña",passwordPlaceholderText:"Por favor, introduce tu contraseña",newPasswordPlaceholderText:"Por favor, introduce tu nueva contraseña",confirmPasswordPlaceholderText:"Por favor, confirma tu nueva contraseña",passwordDisplayText:"Contraseña Actual",newPasswordDisplayText:"Nueva Contraseña",confirmPasswordDisplayText:"Confirmar Contraseña",successMsg:"Contraseña cambiada con éxito",errorMsgGeneric:"Hubo un error al intentar cambiar tu contraseña","gm.pms.password_not_verified_unauthorized":"La contraseña actual que has introducido es incorrecta","gm.pms.password_policy_failed":"La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio."},pt:{title:"Alterar Senha",btnSubmit:"Alterar Senha",passwordPlaceholderText:"Por favor, insira sua senha",newPasswordPlaceholderText:"Por favor, insira sua nova senha",confirmPasswordPlaceholderText:"Por favor, confirme sua nova senha",passwordDisplayText:"Senha Atual",newPasswordDisplayText:"Nova Senha",confirmPasswordDisplayText:"Confirmar Senha",successMsg:"Senha alterada com sucesso",errorMsgGeneric:"Ocorreu um erro ao tentar alterar sua senha","gm.pms.password_not_verified_unauthorized":"A senha atual que você inseriu está incorreta","gm.pms.password_policy_failed":"A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração."},hr:{title:"Promijeni lozinku",btnSubmit:"Promijeni lozinku",passwordPlaceholderText:"Unesite svoju lozinku",newPasswordPlaceholderText:"Unesite novu lozinku",confirmPasswordPlaceholderText:"Potvrdite novu lozinku",passwordDisplayText:"Trenutna lozinka",newPasswordDisplayText:"Nova lozinka",confirmPasswordDisplayText:"Potvrdite lozinku",successMsg:"Lozinka je uspješno promijenjena",errorMsgGeneric:"Došlo je do pogreške prilikom pokušaja promjene lozinke","gm.pms.password_not_verified_unauthorized":"Unesena trenutna lozinka nije ispravna","gm.pms.password_policy_failed":"Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene."},tr:{title:"Şifreyi Değiştir",btnSubmit:"Şifreyi Değiştir",passwordPlaceholderText:"Lütfen şifrenizi girin",newPasswordPlaceholderText:"Lütfen yeni şifrenizi girin",confirmPasswordPlaceholderText:"Lütfen yeni şifrenizi onaylayın",passwordDisplayText:"Mevcut Şifre",newPasswordDisplayText:"Yeni Şifre",confirmPasswordDisplayText:"Şifreyi Onaylayın",successMsg:"Şifre başarıyla değiştirildi",errorMsgGeneric:"Şifrenizi değiştirirken bir hata oluştu","gm.pms.password_not_verified_unauthorized":"Girdiğiniz mevcut şifre yanlış","gm.pms.password_policy_failed":"Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez."},hu:{title:"Jelszó megváltoztatása",btnSubmit:"Jelszó megváltoztatása",passwordPlaceholderText:"Kérjük, adja meg a jelszavát",newPasswordPlaceholderText:"Kérjük, adja meg az új jelszavát",confirmPasswordPlaceholderText:"Kérjük, erősítse meg az új jelszavát",passwordDisplayText:"Jelenlegi jelszó",newPasswordDisplayText:"Új jelszó",confirmPasswordDisplayText:"Jelszó megerősítése",successMsg:"A jelszó sikeresen megváltozott",errorMsgGeneric:"Hiba történt a jelszó megváltoztatásakor","gm.pms.password_not_verified_unauthorized":"A megadott jelenlegi jelszó helytelen","gm.pms.password_policy_failed":"A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta."}},g=e=>new Promise(s=>{fetch(e).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{for(let r in a[t])h[t][r]=a[t][r]}),s(!0)})}),o=(e,s,a)=>{const t=s;let r=h[t!==void 0?t:p][e];if(a!==void 0)for(const[l,n]of Object.entries(a.values)){const w=new RegExp(`{${l}}`,"g");r=r.replace(w,n)}return r};function d(){const e=navigator.userAgent.toLowerCase(),s=screen.availWidth,a=screen.availHeight;if(e.includes("iphone"))return"mobile";if(e.includes("android")){if(a>s&&s<800)return"mobile";if(s>a&&a<800)return"tablet"}return"desktop"}function c(e,s){if(e){const a=document.createElement("style");a.innerHTML=s,e.appendChild(a)}}function u(e,s){const a=new URL(s);fetch(a.href).then(t=>t.text()).then(t=>{const r=document.createElement("style");r.innerHTML=t,e&&e.appendChild(r)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function f(e,s,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(s,r=>{t.innerHTML=r,e&&e.appendChild(t)})}}const P=":host{display:block}.PlayerChangePassword{font-family:inherit;width:100%;height:100%;container-type:inline-size}.PlayerChangePassword .Wrapper{display:flex;justify-content:center;align-items:center}.PlayerChangePassword .Title{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--color-primary, #22B04E);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerChangePassword .TitleMobile{font-size:var(--emw--font-size-x-large, 20px);color:var(--emw--color-primary, #22B04E)}.PlayerChangePassword svg{fill:var(--emw--color-primary, #22B04E)}.PlayerChangePassword .ButtonReturn{font-family:inherit;display:inline-flex;align-items:center;gap:10px}.PlayerChangePassword .Form{display:grid;grid-template-columns:repeat(1, 1fr);gap:40px;justify-items:stretch;align-content:flex-start;overflow:auto;width:100%;height:100%}.PlayerChangePassword .Form .FieldsSection{display:flex;flex-direction:column;gap:30px}.PlayerChangePassword .Form .ButtonsSection{display:flex;flex-direction:column;justify-content:space-around;align-items:center;position:relative}.PlayerChangePassword .Button{font-family:inherit;border-radius:var(--emw--button-border-radius, var(--emw--border-radius-large, 50px));background:var(--emw--button-background-color, var(--emw--color-primary, #22B04E));border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #22B04E));color:var(--emw--button-text-color, var(--emw--color-white, #FFFFFF));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-normal, 400);height:50px;width:100%;text-transform:uppercase;cursor:pointer}.PlayerChangePassword .Button:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #828282));pointer-events:none;cursor:not-allowed}",y=P,m=class{constructor(e){i.registerInstance(this,e),this.currentPasswordValue="",this.newPasswordValue="",this.confirmPasswordValue="",this.isCurrentPasswordValid=!1,this.isNewPasswordValid=!1,this.isConfirmPasswordValid=!1,this.errorMsg="",this.currentPasswordValidationSchema={mandatory:!0,custom:[]},this.newPasswordValidationSchema={mandatory:!0,custom:[]},this.confirmPasswordValidationSchema={mandatory:!0,custom:[]},this.initValidationSchemas=()=>{this.policy&&(this.newPasswordValidationSchema.custom=this.policy.customValidationRules,this.newPasswordValidationSchema.maxLength=this.policy.maximumPasswordLength,this.newPasswordValidationSchema.minLength=this.policy.minimumPasswordLength)},this.setErrorMsg=s=>{switch(s){case"gm.pms.password_policy_failed":const a={forbiddenLastPasswordsCount:this.policy.forbiddenLastPasswordsCount,minimumPasswordAgeLimitHours:this.policy.minimumPasswordAgeLimitHours,hours:this.policy.minimumPasswordAgeLimitHours>1?"hours":"hour"};this.errorMsg=o(s,this.language,{values:a});break;case"gm.pms.password_not_verified_unauthorized":this.errorMsg=o(s,this.language);break;default:this.errorMsg=o("errorMsgGeneric",this.language)}},this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.getPolicy=()=>{const s=new URL("/api/v1/players/password-management/password",this.endpoint),a=new Headers;a.append("Accept","text/plain");const t={method:"GET",headers:a};fetch(s.href,t).then(r=>r.status===200&&r.json()).then(r=>this.policy=r).catch(r=>console.error(r))},this.submitNewPassword=s=>{if(s.preventDefault(),this.isBtnSubmitEnabled){const a=new URL("/api/v1/players/password-management/password",this.endpoint),t=new Headers;t.append("accept","text/plain"),t.append("Content-Type","application/json-patch+json");const r=JSON.stringify({token:this.forgotMode==="true"?this.token:this.session,oldPassword:this.currentPasswordValue,newPassword:this.confirmPasswordValue}),l={method:"PUT",headers:t,body:r};fetch(a.href,l).then(n=>n.json()).then(n=>{n.errorCode===null&&n.message==="pms.password.update.success"?(window.postMessage({type:"PasswordChangedSuccessfully"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("successMsg",this.language)}},window.location.href)):(this.setErrorMsg(n.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMsg}},window.location.href))}).catch(n=>console.error(n))}},this.language="en",this.endpoint="",this.session="",this.token="",this.forgotMode="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.isBtnSubmitEnabled=!1,this.isMobile=d()==="mobile"||d()==="tablet"}handleClientStylingChange(e,s){e!=s&&c(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,s){e!=s&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}sendValidityStateHandler(e){switch(this.isBtnSubmitEnabled=!1,e.detail.name){case"password":this.isCurrentPasswordValid=e.detail.valid;break;case"newPassword":this.isNewPasswordValid=e.detail.valid;break;case"newPasswordDuplicate":this.isConfirmPasswordValid=e.detail.valid;break}(this.forgotMode==="true"||this.isCurrentPasswordValid)&&this.isNewPasswordValid&&this.isConfirmPasswordValid&&(this.isBtnSubmitEnabled=!0)}sendInputValueHandler(e){switch(e.detail.name){case"password":this.currentPasswordValue=e.detail.value;break;case"newPassword":this.newPasswordValue=e.detail.value;break;case"newPasswordDuplicate":this.confirmPasswordValue=e.detail.value;break}}componentWillLoad(){if(this.getPolicy(),this.initValidationSchemas(),this.translationUrl)return g(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?f(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&c(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i.h("div",{key:"9a8f54fe541ef6409f7cc21bb8431c850d031830",class:"PlayerChangePassword",ref:e=>this.stylingContainer=e},i.h("form",{key:"8a3aaa6a96b16a26477657f0216a7a0a2e2e0869",class:"Form"},this.isMobile?i.h("div",{class:"ButtonReturn",onClick:this.toggleScreen},i.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},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",{class:"TitleMobile"},o("title",this.language))):i.h("h2",{class:"Title"},o("title",this.language)),i.h("section",{key:"47a7214266e06ef9f8ded9f86f76e15ce4f6fc3a",class:"FieldsSection"},this.forgotMode==="false"&&i.h("password-input",{key:"41b721a65332283a3699ab8e838dadb8d73913fa",language:this.language,name:"password","display-name":o("passwordDisplayText",this.language),placeholder:o("passwordPlaceholderText",this.language),validation:this.currentPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"eb7c697eb1900ed580ff17a4cd56819993599924",language:this.language,name:"newPassword","display-name":o("newPasswordDisplayText",this.language),placeholder:o("newPasswordPlaceholderText",this.language),validation:this.newPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"4b12c17b882fe8117f9c49ad296c5918198e18f0",language:this.language,name:"newPasswordDuplicate","display-name":o("confirmPasswordDisplayText",this.language),placeholder:o("confirmPasswordPlaceholderText",this.language),validation:this.confirmPasswordValidationSchema,"is-duplicate-input":!0,clientStyling:this.clientStyling,"mb-source":this.mbSource})),i.h("section",{key:"a0cd6777b46ac8e4ba5eef6c42f77531a9c7ee0b",class:"ButtonsSection"},i.h("button",{key:"d21c481e07a7c7762bf0fa7acbb4f1d68ac92d4d",class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitNewPassword},o("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};m.style=y;exports.PlayerChangePasswordGm2=m;
1
+ "use strict";const i=require("./index-9cd44522-lYql7AfG.cjs"),p="en",h={en:{title:"Change Password",btnSubmit:"Change Password",passwordPlaceholderText:"Please enter your password",newPasswordPlaceholderText:"Please enter your new password",confirmPasswordPlaceholderText:"Please confirm your new password",passwordDisplayText:"Current Password",newPasswordDisplayText:"New Password",confirmPasswordDisplayText:"Confirm Password",successMsg:"Password changed successfully",errorMsgGeneric:"There was an error when attempting to change your password","gm.pms.password_not_verified_unauthorized":"The current password you have entered is incorrect","gm.pms.password_policy_failed":"Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change."},fr:{title:"Changer le mot de passe",btnSubmit:"Changer le mot de passe",passwordPlaceholderText:"Veuillez entrer votre mot de passe",newPasswordPlaceholderText:"Veuillez entrer votre nouveau mot de passe",confirmPasswordPlaceholderText:"Veuillez confirmer votre nouveau mot de passe",passwordDisplayText:"Mot de passe actuel",newPasswordDisplayText:"Nouveau mot de passe",confirmPasswordDisplayText:"Confirmer le mot de passe",successMsg:"Mot de passe changé avec succès",errorMsgGeneric:"Une erreur est survenue lors de la tentative de changement de mot de passe","gm.pms.password_not_verified_unauthorized":"Le mot de passe actuel que vous avez entré est incorrect","gm.pms.password_policy_failed":"Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement."},ro:{title:"Schimbă Parola",btnSubmit:"Schimbă Parola",passwordPlaceholderText:"Vă rugăm să introduceți parola",newPasswordPlaceholderText:"Vă rugăm să introduceți noua parolă",confirmPasswordPlaceholderText:"Vă rugăm să confirmați noua parolă",passwordDisplayText:"Parolă Curentă",newPasswordDisplayText:"Parolă Nouă",confirmPasswordDisplayText:"Confirmă Parola",successMsg:"Parola a fost schimbată cu succes",errorMsgGeneric:"A apărut o eroare la încercarea de schimbare a parolei","gm.pms.password_not_verified_unauthorized":"Parola curentă introdusă este incorectă","gm.pms.password_policy_failed":"Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare."},es:{title:"Cambiar Contraseña",btnSubmit:"Cambiar Contraseña",passwordPlaceholderText:"Por favor, introduce tu contraseña",newPasswordPlaceholderText:"Por favor, introduce tu nueva contraseña",confirmPasswordPlaceholderText:"Por favor, confirma tu nueva contraseña",passwordDisplayText:"Contraseña Actual",newPasswordDisplayText:"Nueva Contraseña",confirmPasswordDisplayText:"Confirmar Contraseña",successMsg:"Contraseña cambiada con éxito",errorMsgGeneric:"Hubo un error al intentar cambiar tu contraseña","gm.pms.password_not_verified_unauthorized":"La contraseña actual que has introducido es incorrecta","gm.pms.password_policy_failed":"La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio."},pt:{title:"Alterar Senha",btnSubmit:"Alterar Senha",passwordPlaceholderText:"Por favor, insira sua senha",newPasswordPlaceholderText:"Por favor, insira sua nova senha",confirmPasswordPlaceholderText:"Por favor, confirme sua nova senha",passwordDisplayText:"Senha Atual",newPasswordDisplayText:"Nova Senha",confirmPasswordDisplayText:"Confirmar Senha",successMsg:"Senha alterada com sucesso",errorMsgGeneric:"Ocorreu um erro ao tentar alterar sua senha","gm.pms.password_not_verified_unauthorized":"A senha atual que você inseriu está incorreta","gm.pms.password_policy_failed":"A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração."},hr:{title:"Promijeni lozinku",btnSubmit:"Promijeni lozinku",passwordPlaceholderText:"Unesite svoju lozinku",newPasswordPlaceholderText:"Unesite novu lozinku",confirmPasswordPlaceholderText:"Potvrdite novu lozinku",passwordDisplayText:"Trenutna lozinka",newPasswordDisplayText:"Nova lozinka",confirmPasswordDisplayText:"Potvrdite lozinku",successMsg:"Lozinka je uspješno promijenjena",errorMsgGeneric:"Došlo je do pogreške prilikom pokušaja promjene lozinke","gm.pms.password_not_verified_unauthorized":"Unesena trenutna lozinka nije ispravna","gm.pms.password_policy_failed":"Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene."},tr:{title:"Şifreyi Değiştir",btnSubmit:"Şifreyi Değiştir",passwordPlaceholderText:"Lütfen şifrenizi girin",newPasswordPlaceholderText:"Lütfen yeni şifrenizi girin",confirmPasswordPlaceholderText:"Lütfen yeni şifrenizi onaylayın",passwordDisplayText:"Mevcut Şifre",newPasswordDisplayText:"Yeni Şifre",confirmPasswordDisplayText:"Şifreyi Onaylayın",successMsg:"Şifre başarıyla değiştirildi",errorMsgGeneric:"Şifrenizi değiştirirken bir hata oluştu","gm.pms.password_not_verified_unauthorized":"Girdiğiniz mevcut şifre yanlış","gm.pms.password_policy_failed":"Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez."},hu:{title:"Jelszó megváltoztatása",btnSubmit:"Jelszó megváltoztatása",passwordPlaceholderText:"Kérjük, adja meg a jelszavát",newPasswordPlaceholderText:"Kérjük, adja meg az új jelszavát",confirmPasswordPlaceholderText:"Kérjük, erősítse meg az új jelszavát",passwordDisplayText:"Jelenlegi jelszó",newPasswordDisplayText:"Új jelszó",confirmPasswordDisplayText:"Jelszó megerősítése",successMsg:"A jelszó sikeresen megváltozott",errorMsgGeneric:"Hiba történt a jelszó megváltoztatásakor","gm.pms.password_not_verified_unauthorized":"A megadott jelenlegi jelszó helytelen","gm.pms.password_policy_failed":"A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta."}},g=e=>new Promise(s=>{fetch(e).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{for(let r in a[t])h[t][r]=a[t][r]}),s(!0)})}),o=(e,s,a)=>{const t=s;let r=h[t!==void 0?t:p][e];if(a!==void 0)for(const[l,n]of Object.entries(a.values)){const w=new RegExp(`{${l}}`,"g");r=r.replace(w,n)}return r};function d(){const e=navigator.userAgent.toLowerCase(),s=screen.availWidth,a=screen.availHeight;if(e.includes("iphone"))return"mobile";if(e.includes("android")){if(a>s&&s<800)return"mobile";if(s>a&&a<800)return"tablet"}return"desktop"}function c(e,s){if(e){const a=document.createElement("style");a.innerHTML=s,e.appendChild(a)}}function u(e,s){const a=new URL(s);fetch(a.href).then(t=>t.text()).then(t=>{const r=document.createElement("style");r.innerHTML=t,e&&e.appendChild(r)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function f(e,s,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(s,r=>{t.innerHTML=r,e&&e.appendChild(t)})}}const P=":host{display:block}.PlayerChangePassword{font-family:inherit;width:100%;height:100%;container-type:inline-size}.PlayerChangePassword .Wrapper{display:flex;justify-content:center;align-items:center}.PlayerChangePassword .Title{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--color-primary, #22B04E);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerChangePassword .TitleMobile{font-size:var(--emw--font-size-x-large, 20px);color:var(--emw--color-primary, #22B04E)}.PlayerChangePassword svg{fill:var(--emw--color-primary, #22B04E)}.PlayerChangePassword .ButtonReturn{font-family:inherit;display:inline-flex;align-items:center;gap:10px}.PlayerChangePassword .Form{display:grid;grid-template-columns:repeat(1, 1fr);gap:40px;justify-items:stretch;align-content:flex-start;overflow:auto;width:100%;height:100%}.PlayerChangePassword .Form .FieldsSection{display:flex;flex-direction:column;gap:30px}.PlayerChangePassword .Form .ButtonsSection{display:flex;flex-direction:column;justify-content:space-around;align-items:center;position:relative}.PlayerChangePassword .Button{font-family:inherit;border-radius:var(--emw--button-border-radius, var(--emw--border-radius-large, 50px));background:var(--emw--button-background-color, var(--emw--color-primary, #22B04E));border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #22B04E));color:var(--emw--button-text-color, var(--emw--color-white, #FFFFFF));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-normal, 400);height:50px;width:100%;text-transform:uppercase;cursor:pointer}.PlayerChangePassword .Button:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #828282));pointer-events:none;cursor:not-allowed}",y=P,m=class{constructor(e){i.registerInstance(this,e),this.currentPasswordValue="",this.newPasswordValue="",this.confirmPasswordValue="",this.isCurrentPasswordValid=!1,this.isNewPasswordValid=!1,this.isConfirmPasswordValid=!1,this.errorMsg="",this.currentPasswordValidationSchema={mandatory:!0,custom:[]},this.newPasswordValidationSchema={mandatory:!0,custom:[]},this.confirmPasswordValidationSchema={mandatory:!0,custom:[]},this.initValidationSchemas=()=>{this.policy&&(this.newPasswordValidationSchema.custom=this.policy.customValidationRules,this.newPasswordValidationSchema.maxLength=this.policy.maximumPasswordLength,this.newPasswordValidationSchema.minLength=this.policy.minimumPasswordLength)},this.setErrorMsg=s=>{switch(s){case"gm.pms.password_policy_failed":const a={forbiddenLastPasswordsCount:this.policy.forbiddenLastPasswordsCount,minimumPasswordAgeLimitHours:this.policy.minimumPasswordAgeLimitHours,hours:this.policy.minimumPasswordAgeLimitHours>1?"hours":"hour"};this.errorMsg=o(s,this.language,{values:a});break;case"gm.pms.password_not_verified_unauthorized":this.errorMsg=o(s,this.language);break;default:this.errorMsg=o("errorMsgGeneric",this.language)}},this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.getPolicy=()=>{const s=new URL("/api/v1/players/password-management/password",this.endpoint),a=new Headers;a.append("Accept","text/plain");const t={method:"GET",headers:a};fetch(s.href,t).then(r=>r.status===200&&r.json()).then(r=>this.policy=r).catch(r=>console.error(r))},this.submitNewPassword=s=>{if(s.preventDefault(),this.isBtnSubmitEnabled){const a=new URL("/api/v1/players/password-management/password",this.endpoint),t=new Headers;t.append("accept","text/plain"),t.append("Content-Type","application/json-patch+json");const r=JSON.stringify({token:this.forgotMode==="true"?this.token:this.session,oldPassword:this.currentPasswordValue,newPassword:this.confirmPasswordValue}),l={method:"PUT",headers:t,body:r};fetch(a.href,l).then(n=>n.json()).then(n=>{n.errorCode===null&&n.message==="pms.password.update.success"?(window.postMessage({type:"PasswordChangedSuccessfully"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("successMsg",this.language)}},window.location.href)):(this.setErrorMsg(n.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMsg}},window.location.href))}).catch(n=>console.error(n))}},this.language="en",this.endpoint="",this.session="",this.token="",this.forgotMode="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.isBtnSubmitEnabled=!1,this.isMobile=d()==="mobile"||d()==="tablet"}handleClientStylingChange(e,s){e!=s&&c(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,s){e!=s&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}sendValidityStateHandler(e){switch(this.isBtnSubmitEnabled=!1,e.detail.name){case"password":this.isCurrentPasswordValid=e.detail.valid;break;case"newPassword":this.isNewPasswordValid=e.detail.valid;break;case"newPasswordDuplicate":this.isConfirmPasswordValid=e.detail.valid;break}(this.forgotMode==="true"||this.isCurrentPasswordValid)&&this.isNewPasswordValid&&this.isConfirmPasswordValid&&(this.isBtnSubmitEnabled=!0)}sendInputValueHandler(e){switch(e.detail.name){case"password":this.currentPasswordValue=e.detail.value;break;case"newPassword":this.newPasswordValue=e.detail.value;break;case"newPasswordDuplicate":this.confirmPasswordValue=e.detail.value;break}}componentWillLoad(){if(this.getPolicy(),this.initValidationSchemas(),this.translationUrl)return g(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?f(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&c(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i.h("div",{key:"9a8f54fe541ef6409f7cc21bb8431c850d031830",class:"PlayerChangePassword",ref:e=>this.stylingContainer=e},i.h("form",{key:"8a3aaa6a96b16a26477657f0216a7a0a2e2e0869",class:"Form"},this.isMobile?i.h("div",{class:"ButtonReturn",onClick:this.toggleScreen},i.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},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",{class:"TitleMobile"},o("title",this.language))):i.h("h2",{class:"Title"},o("title",this.language)),i.h("section",{key:"47a7214266e06ef9f8ded9f86f76e15ce4f6fc3a",class:"FieldsSection"},this.forgotMode==="false"&&i.h("password-input",{key:"41b721a65332283a3699ab8e838dadb8d73913fa",language:this.language,name:"password","display-name":o("passwordDisplayText",this.language),placeholder:o("passwordPlaceholderText",this.language),validation:this.currentPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"eb7c697eb1900ed580ff17a4cd56819993599924",language:this.language,name:"newPassword","display-name":o("newPasswordDisplayText",this.language),placeholder:o("newPasswordPlaceholderText",this.language),validation:this.newPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"4b12c17b882fe8117f9c49ad296c5918198e18f0",language:this.language,name:"newPasswordDuplicate","display-name":o("confirmPasswordDisplayText",this.language),placeholder:o("confirmPasswordPlaceholderText",this.language),validation:this.confirmPasswordValidationSchema,"is-duplicate-input":!0,clientStyling:this.clientStyling,"mb-source":this.mbSource})),i.h("section",{key:"a0cd6777b46ac8e4ba5eef6c42f77531a9c7ee0b",class:"ButtonsSection"},i.h("button",{key:"d21c481e07a7c7762bf0fa7acbb4f1d68ac92d4d",class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitNewPassword},o("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};m.style=y;exports.PlayerChangePasswordGm2=m;
@@ -14,7 +14,7 @@ var u = (e, i, a) => new Promise((s, d) => {
14
14
  }, t = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(o, g);
15
15
  t((a = a.apply(e, i)).next());
16
16
  });
17
- import { b as p, p as c } from "./index-9cd44522-NqpP4xs6.js";
17
+ import { b as p, p as c } from "./index-9cd44522-Cto_o6sQ.js";
18
18
  import { g as m } from "./app-globals-0f993ce5-DzSE6TtH.js";
19
19
  var r = () => {
20
20
  const e = import.meta.url, i = {};
@@ -1,4 +1,4 @@
1
- import { b as i, p as a } from "./index-9cd44522-CbUzJsuK.js";
1
+ import { b as i, p as a } from "./index-9cd44522-DrlRFYrB.js";
2
2
  import { g as t } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
3
  var n = () => {
4
4
  const l = import.meta.url, e = {};
@@ -1 +1 @@
1
- "use strict";var s=(l,i,a)=>new Promise((g,u)=>{var p=e=>{try{t(a.next(e))}catch(n){u(n)}},c=e=>{try{t(a.throw(e))}catch(n){u(n)}},t=e=>e.done?g(e.value):Promise.resolve(e.value).then(p,c);t((a=a.apply(l,i)).next())});const o=require("./index-9cd44522-WdjpTA2U.cjs"),r=require("./app-globals-0f993ce5-DgYhdguE.cjs");var d=typeof document!="undefined"?document.currentScript:null,m=()=>{const l=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:d&&d.tagName.toUpperCase()==="SCRIPT"&&d.src||new URL("stencil/player-change-password-gm2-ZOlHswn0.cjs",document.baseURI).href,i={};return l!==""&&(i.resourcesUrl=new URL(".",l).href),o.promiseResolve(i)};m().then(l=>s(exports,null,function*(){return yield r.globalScripts(),o.bootstrapLazy([["password-input_2",[[1,"player-change-password-gm2",{language:[513],endpoint:[513],session:[513],token:[513],forgotMode:[513,"forgot-mode"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[513,"translation-url"],isBtnSubmitEnabled:[32],isMobile:[32]},[[0,"sendValidityState","sendValidityStateHandler"],[0,"sendInputValue","sendInputValueHandler"]],{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}]]],["checkbox-group-input_9",[[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32],showCheckboxes:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]],["general-input",[[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}]]],["toggle-checkbox-input",[[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"]}]]]],l)}));
1
+ "use strict";var s=(l,i,a)=>new Promise((g,u)=>{var p=e=>{try{t(a.next(e))}catch(n){u(n)}},c=e=>{try{t(a.throw(e))}catch(n){u(n)}},t=e=>e.done?g(e.value):Promise.resolve(e.value).then(p,c);t((a=a.apply(l,i)).next())});const o=require("./index-9cd44522-lYql7AfG.cjs"),r=require("./app-globals-0f993ce5-DgYhdguE.cjs");var d=typeof document!="undefined"?document.currentScript:null,m=()=>{const l=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:d&&d.tagName.toUpperCase()==="SCRIPT"&&d.src||new URL("stencil/player-change-password-gm2-COsfG6W5.cjs",document.baseURI).href,i={};return l!==""&&(i.resourcesUrl=new URL(".",l).href),o.promiseResolve(i)};m().then(l=>s(exports,null,function*(){return yield r.globalScripts(),o.bootstrapLazy([["password-input_2",[[1,"player-change-password-gm2",{language:[513],endpoint:[513],session:[513],token:[513],forgotMode:[513,"forgot-mode"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[513,"translation-url"],isBtnSubmitEnabled:[32],isMobile:[32]},[[0,"sendValidityState","sendValidityStateHandler"],[0,"sendInputValue","sendInputValueHandler"]],{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}]]],["checkbox-group-input_9",[[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32],showCheckboxes:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]],["general-input",[[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}]]],["toggle-checkbox-input",[[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"]}]]]],l)}));