@everymatrix/player-account-controller 1.90.34 → 1.90.35

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 (121) hide show
  1. package/components/{GeneralLogout-BiWSSZ5S.cjs → GeneralLogout-CCnbq4j4.cjs} +1 -1
  2. package/components/{GeneralLogout-CyLCM9l0.js → GeneralLogout-QxdjPsV-.js} +1 -1
  3. package/components/{GeneralLogout-BzRKLebE.js → GeneralLogout-zlXCb1M0.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-DEHOkoTg.js → PlayerAccountBettingHistory-CDo4Cd9k.js} +1 -1
  5. package/components/{PlayerAccountBettingHistory-NAkWJqy8.cjs → PlayerAccountBettingHistory-CFQjCgpA.cjs} +1 -1
  6. package/components/{PlayerAccountBettingHistory-BVg6IbtI.js → PlayerAccountBettingHistory-Cv50dv45.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-Cg9Pc-2B.cjs → PlayerAccountBiometrics-C5A2RpZw.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-Ba0OsLyW.js → PlayerAccountBiometrics-DdUP9tJZ.js} +2 -2
  9. package/components/{PlayerAccountBiometrics-7SWhBiZk.js → PlayerAccountBiometrics-lC80sqbl.js} +2 -2
  10. package/components/{PlayerAccountBiometricsAction-DSGaFZcU.js → PlayerAccountBiometricsAction-CNkuUl4o.js} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-BqSQlmw8.cjs → PlayerAccountBiometricsAction-DLPbRFkz.cjs} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-C_PFJwWd.js → PlayerAccountBiometricsAction-VKSOm5kJ.js} +1 -1
  13. package/components/{PlayerAccountClosure-fRTRRV8I.js → PlayerAccountClosure-C9XWXaA2.js} +1 -1
  14. package/components/{PlayerAccountClosure-BCl0KmqD.js → PlayerAccountClosure-CGbyWv8X.js} +1 -1
  15. package/components/{PlayerAccountClosure-BS9Fbfwp.cjs → PlayerAccountClosure-UhEP3rPL.cjs} +1 -1
  16. package/components/{PlayerAccountController-Du7xEFX7.cjs → PlayerAccountController-BanZIe9X.cjs} +2 -2
  17. package/components/{PlayerAccountController-Clq1yLop.js → PlayerAccountController-KEPBEjsM.js} +23 -23
  18. package/components/{PlayerAccountController-coCSr9GM.js → PlayerAccountController-yWPBVx8j.js} +23 -23
  19. package/components/{PlayerAccountGamingLimits-BbmVQyMO.js → PlayerAccountGamingLimits-CEkcjbJK.js} +2 -2
  20. package/components/{PlayerAccountGamingLimits-CdPwoTMA.js → PlayerAccountGamingLimits-CitxAMmV.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-BfdcB0PB.cjs → PlayerAccountGamingLimits-qJPAIEY8.cjs} +1 -1
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-CX-QkzE2.cjs → PlayerAccountGamingLimitsConfirmationModal-IJgQJ_4b.cjs} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-C_ZS_LaW.js → PlayerAccountGamingLimitsConfirmationModal-TyL9h5p9.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-DtHTCbXE.js → PlayerAccountGamingLimitsConfirmationModal-_t7ldlON.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-CwHD2-sh.cjs → PlayerAccountGamingLimitsGroupEdit-C4mqzVEW.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-DmCMqA1z.js → PlayerAccountGamingLimitsGroupEdit-CpGwzBwU.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-CMs6bLO8.js → PlayerAccountGamingLimitsGroupEdit-Dhe_7L1D.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2-BqVBB1pm.cjs → PlayerAccountGamingLimitsHistory2-2jn0Z8AD.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2-Cwqgi8IX.js → PlayerAccountGamingLimitsHistory2-ClOs1eAO.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-wy6LWNUt.js → PlayerAccountGamingLimitsHistory2-DEH1LAqx.js} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-CvvLaydO.js → PlayerAccountGamingLimitsInfoCard-BU52xlMT.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-CdGppilJ.js → PlayerAccountGamingLimitsInfoCard-D5EzhYQj.js} +4 -4
  33. package/components/{PlayerAccountGamingLimitsInfoCard-C6gSxo_n.cjs → PlayerAccountGamingLimitsInfoCard-D92jtL7A.cjs} +1 -1
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-8yB93h9g.js → PlayerAccountGamingLimitsPage2Gm16-B_BgHMHk.js} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-BToS_bra.js → PlayerAccountGamingLimitsPage2Gm16-Ckh4WoQb.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-BjTmdGud.cjs → PlayerAccountGamingLimitsPage2Gm16-Dg7GRC1j.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-C5mRsFJl.js → PlayerAccountGamingLimitsPopup-B2fWgZku.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-BKkXVYBe.js → PlayerAccountGamingLimitsPopup-BDIjchXw.js} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-RSUIhKeR.cjs → PlayerAccountGamingLimitsPopup-Be-HDj6j.cjs} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-VeWM_74N.cjs → PlayerAccountGamingLimitsWrapper2-BrSEHJW5.cjs} +1 -1
  41. package/components/{PlayerAccountGamingLimitsWrapper2-C1aiGjo5.js → PlayerAccountGamingLimitsWrapper2-Dw8eVWbw.js} +3 -3
  42. package/components/{PlayerAccountGamingLimitsWrapper2-C95I0XgX.js → PlayerAccountGamingLimitsWrapper2-x4DmgOMN.js} +3 -3
  43. package/components/{PlayerAccountGeneralConfirmationModal-CsBPfxOG.js → PlayerAccountGeneralConfirmationModal-B5_LXQeP.js} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-4h5DdFq8.cjs → PlayerAccountGeneralConfirmationModal-D8gEln9g.cjs} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-apKBrLgW.js → PlayerAccountGeneralConfirmationModal-sk2v7J9o.js} +1 -1
  46. package/components/{PlayerAccountMenu-CqwkO7Tm.cjs → PlayerAccountMenu-DAjegoRI.cjs} +1 -1
  47. package/components/{PlayerAccountMenu-CzSYD-ks.js → PlayerAccountMenu-Dz47wun3.js} +2 -2
  48. package/components/{PlayerAccountMenu-iFTVelkU.js → PlayerAccountMenu-hXspu_S8.js} +2 -2
  49. package/components/{PlayerAccountModal-ByWKchzy.js → PlayerAccountModal-FiQDdEtA.js} +1 -1
  50. package/components/{PlayerAccountModal-B7XzbbQn.js → PlayerAccountModal-U6tecPRV.js} +1 -1
  51. package/components/{PlayerAccountModal-_CIj0s8d.cjs → PlayerAccountModal-hjSLdPip.cjs} +1 -1
  52. package/components/{PlayerAccountNotifications-Bjp3laNk.cjs → PlayerAccountNotifications-BVcTJ1Jh.cjs} +1 -1
  53. package/components/{PlayerAccountNotifications-CP0aAWga.js → PlayerAccountNotifications-CCmjOTPB.js} +1 -1
  54. package/components/{PlayerAccountNotifications-C6WAxcX-.js → PlayerAccountNotifications-D0nFm4Mx.js} +1 -1
  55. package/components/{PlayerAccountProductRestriction-Dkzh8WS6.js → PlayerAccountProductRestriction-BPA8buZK.js} +3 -3
  56. package/components/{PlayerAccountProductRestriction-BAxausaW.js → PlayerAccountProductRestriction-CE5zN5yz.js} +3 -3
  57. package/components/{PlayerAccountProductRestriction-CC-qiVwm.cjs → PlayerAccountProductRestriction-CjriNIdD.cjs} +1 -1
  58. package/components/{PlayerAccountReviewFrequency-DFIDKWUW.js → PlayerAccountReviewFrequency-BEVkeUx-.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-DKC2pXZR.js → PlayerAccountReviewFrequency-C9Muz7jL.js} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-CJW1WYDq.cjs → PlayerAccountReviewFrequency-CG5EQo7h.cjs} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-BmDLPFku.cjs → PlayerAccountSelfExclusion-Bdx2yWHv.cjs} +1 -1
  62. package/components/{PlayerAccountSelfExclusion-BeBGEhho.js → PlayerAccountSelfExclusion-CTTddM42.js} +2 -2
  63. package/components/{PlayerAccountSelfExclusion-DajU6qo1.js → PlayerAccountSelfExclusion-DiwAaVKC.js} +2 -2
  64. package/components/{PlayerAccountTimeout-DA9YEa_V.cjs → PlayerAccountTimeout-N6XmZtwk.cjs} +2 -2
  65. package/components/{PlayerAccountTimeout-CkgCUvlS.js → PlayerAccountTimeout-QCTCSipK.js} +3 -3
  66. package/components/{PlayerAccountTimeout-DjgbLfQ9.js → PlayerAccountTimeout-fB-nbffL.js} +3 -3
  67. package/components/{PlayerAccountTransactionsHistory-D5sAZCoS.js → PlayerAccountTransactionsHistory-Cu84ym0T.js} +4 -4
  68. package/components/{PlayerAccountTransactionsHistory-DTW-78VQ.cjs → PlayerAccountTransactionsHistory-CyKriF3n.cjs} +1 -1
  69. package/components/{PlayerAccountTransactionsHistory-C6Ig8MXs.js → PlayerAccountTransactionsHistory-D3DV8wNR.js} +4 -4
  70. package/components/{PlayerActiveBonuses-DtLtGqWJ.js → PlayerActiveBonuses-BltR0g5i.js} +2 -2
  71. package/components/{PlayerActiveBonuses-hzPMl_P1.cjs → PlayerActiveBonuses-DaQpCaOe.cjs} +1 -1
  72. package/components/{PlayerActiveBonuses-BKHSi2HJ.js → PlayerActiveBonuses-fHUEEtDy.js} +2 -2
  73. package/components/{PlayerBonusCard-BcIpjFVC.js → PlayerBonusCard-CaerEGA-.js} +2 -2
  74. package/components/{PlayerBonusCard-DKRu1_JK.js → PlayerBonusCard-DURUozJI.js} +2 -2
  75. package/components/{PlayerBonusCard-P3jvroTI.cjs → PlayerBonusCard-DguU0z9L.cjs} +1 -1
  76. package/components/{PlayerBonusHistory-BG9fkLNY.cjs → PlayerBonusHistory-D6cLOPhl.cjs} +1 -1
  77. package/components/{PlayerBonusHistory-G7zq6m04.js → PlayerBonusHistory-DjBfyDWD.js} +2 -2
  78. package/components/{PlayerBonusHistory-DzWP4zgt.js → PlayerBonusHistory-Yz7g5Kjm.js} +2 -2
  79. package/components/{PlayerChangePassword-Wyp998-j.js → PlayerChangePassword-BEqBAOX9.js} +1 -1
  80. package/components/{PlayerChangePassword-0xUHySn1.js → PlayerChangePassword-CBv3Eqv4.js} +1 -1
  81. package/components/{PlayerChangePassword-3CVPiBt7.cjs → PlayerChangePassword-oyR_1H-1.cjs} +1 -1
  82. package/components/{PlayerDeposit-fNRypBAf.js → PlayerDeposit-D7trdO6r.js} +1 -1
  83. package/components/{PlayerDeposit-CdRqOf_P.cjs → PlayerDeposit-DhkQI2P2.cjs} +1 -1
  84. package/components/{PlayerDeposit-BOZS7UH7.js → PlayerDeposit-GDQU47wT.js} +1 -1
  85. package/components/{PlayerGamingHistory-B-n0JYRA.js → PlayerGamingHistory-Cn2Bve4G.js} +3 -3
  86. package/components/{PlayerGamingHistory-Wv3YfFsc.cjs → PlayerGamingHistory-XotUrX-7.cjs} +1 -1
  87. package/components/{PlayerGamingHistory-BTLY1RMY.js → PlayerGamingHistory-tA1hZ5Fx.js} +3 -3
  88. package/components/{PlayerPendingWithdrawals-UF0Hkfzy.js → PlayerPendingWithdrawals-1E0WXpsU.js} +1 -1
  89. package/components/{PlayerPendingWithdrawals-DDIlZ8RT.cjs → PlayerPendingWithdrawals-WXzH2JeR.cjs} +1 -1
  90. package/components/{PlayerPendingWithdrawals-CJC3TrJp.js → PlayerPendingWithdrawals-ubhyezOe.js} +1 -1
  91. package/components/{PlayerProfileInfo-CdC3WiiU.js → PlayerProfileInfo-1Iet9rF3.js} +2 -2
  92. package/components/{PlayerProfileInfo-DB1L_WYn.js → PlayerProfileInfo-D2qkkl7z.js} +2 -2
  93. package/components/{PlayerProfileInfo-DfFVyR1L.cjs → PlayerProfileInfo-oHLN3Vq_.cjs} +1 -1
  94. package/components/{PlayerRealityCheck-DVc7Z0GA.js → PlayerRealityCheck-Bno3B6Su.js} +1 -1
  95. package/components/{PlayerRealityCheck-DyfVL3k4.js → PlayerRealityCheck-CaFzPyN-.js} +1 -1
  96. package/components/{PlayerRealityCheck-DhYuIUfA.cjs → PlayerRealityCheck-Nl0xVBti.cjs} +1 -1
  97. package/components/{PlayerTransactionHistory-E0_3vgUg.js → PlayerTransactionHistory-4_pE8sEr.js} +1 -1
  98. package/components/{PlayerTransactionHistory-DL-VvAj4.js → PlayerTransactionHistory-DgNl-KNS.js} +1 -1
  99. package/components/{PlayerTransactionHistory-GK3XBCLZ.cjs → PlayerTransactionHistory-J-8TrHbU.cjs} +1 -1
  100. package/components/{PlayerWithdrawal-kSDhv7HH.js → PlayerWithdrawal-CoYTCB-n.js} +1 -1
  101. package/components/{PlayerWithdrawal-4a_-xQJV.js → PlayerWithdrawal-CzcTmxuA.js} +1 -1
  102. package/components/{PlayerWithdrawal-Bu6tockr.cjs → PlayerWithdrawal-DBHkcH7K.cjs} +1 -1
  103. package/es2015/player-account-controller.cjs +1 -1
  104. package/es2015/player-account-controller.js +1 -1
  105. package/esnext/player-account-controller.js +1 -1
  106. package/package.json +1 -1
  107. package/stencil/{checkbox-group-input_16-DiGHrkvc.js → checkbox-group-input_16-BClc1QAF.js} +3 -3
  108. package/stencil/{checkbox-group-input_16-BZ2hl9dg.cjs → checkbox-group-input_16-BzGXxdU9.cjs} +1 -1
  109. package/stencil/{checkbox-group-input_16-BkKDhqiT.js → checkbox-group-input_16-_13Kv9Zi.js} +3 -3
  110. package/stencil/{index-7469517b-CqcJx12g.cjs → index-7469517b-8Vfz7n3C.cjs} +1 -1
  111. package/stencil/{index-7469517b-Bhqgkq7I.js → index-7469517b-Bmgiy_n-.js} +1 -1
  112. package/stencil/{index-7469517b-DIkdDhvj.js → index-7469517b-ulg1Qmdy.js} +1 -1
  113. package/stencil/{pam-change-password-233d1ebe-C-j3XDwF.js → pam-change-password-259289fa-7sJvUi0P.js} +116 -76
  114. package/stencil/{pam-change-password-233d1ebe-3KwOl0bG.cjs → pam-change-password-259289fa-CR3dv02q.cjs} +36 -2
  115. package/stencil/{pam-change-password-233d1ebe-CY6IeK3t.js → pam-change-password-259289fa-DvjX931m.js} +116 -76
  116. package/stencil/pam-change-password-BiAsiO8l.js +25 -0
  117. package/stencil/pam-change-password-Dil_uhA4.js +7 -0
  118. package/stencil/pam-change-password-DnCN0UHR.cjs +1 -0
  119. package/stencil/pam-change-password-Bn9ozqA9.js +0 -25
  120. package/stencil/pam-change-password-C9W05EG7.js +0 -7
  121. package/stencil/pam-change-password-DgTmRbQJ.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { r as g, h as t } from "./index-7469517b-DIkdDhvj.js";
1
+ import { r as g, h as a } from "./index-7469517b-ulg1Qmdy.js";
2
2
  const P = "en", p = {
3
3
  en: {
4
4
  title: "Change Password",
@@ -168,28 +168,28 @@ const P = "en", p = {
168
168
  passwordContainsFirstNameAndLastName: "Password should not contain first name and last name.",
169
169
  passwordContainsDateOfBirth: "Password should not contain date of birth."
170
170
  }
171
- }, f = (a) => new Promise((e) => {
172
- fetch(a).then((s) => s.json()).then((s) => {
173
- Object.keys(s).forEach((n) => {
174
- for (let o in s[n])
175
- p[n][o] = s[n][o];
171
+ }, f = (n) => new Promise((e) => {
172
+ fetch(n).then((s) => s.json()).then((s) => {
173
+ Object.keys(s).forEach((t) => {
174
+ for (let o in s[t])
175
+ p[t][o] = s[t][o];
176
176
  }), e(!0);
177
177
  });
178
- }), l = (a, e, s) => {
179
- const n = e;
180
- let o = p[n !== void 0 ? n : P][a];
178
+ }), i = (n, e, s) => {
179
+ const t = e;
180
+ let o = p[t !== void 0 ? t : P][n];
181
181
  if (s !== void 0)
182
- for (const [r, i] of Object.entries(s.values)) {
182
+ for (const [r, l] of Object.entries(s.values)) {
183
183
  const d = new RegExp(`{${r}}`, "g");
184
- o = o.replace(d, i);
184
+ o = o.replace(d, l);
185
185
  }
186
186
  return o;
187
187
  };
188
- function m() {
189
- const a = navigator.userAgent.toLowerCase(), e = screen.availWidth, s = screen.availHeight;
190
- if (a.includes("iphone"))
188
+ function h() {
189
+ const n = navigator.userAgent.toLowerCase(), e = screen.availWidth, s = screen.availHeight;
190
+ if (n.includes("iphone"))
191
191
  return "mobile";
192
- if (a.includes("android")) {
192
+ if (n.includes("android")) {
193
193
  if (s > e && e < 800)
194
194
  return "mobile";
195
195
  if (e > s && s < 800)
@@ -198,56 +198,56 @@ function m() {
198
198
  return "desktop";
199
199
  }
200
200
  const u = "__WIDGET_GLOBAL_STYLE_CACHE__";
201
- function h(a, e) {
202
- if (a) {
201
+ function m(n, e) {
202
+ if (n) {
203
203
  const s = document.createElement("style");
204
- s.innerHTML = e, a.appendChild(s);
204
+ s.innerHTML = e, n.appendChild(s);
205
205
  }
206
206
  }
207
- function w(a, e) {
208
- if (!a || !e)
207
+ function w(n, e) {
208
+ if (!n || !e)
209
209
  return;
210
210
  const s = new URL(e);
211
- fetch(s.href).then((n) => n.text()).then((n) => {
211
+ fetch(s.href).then((t) => t.text()).then((t) => {
212
212
  const o = document.createElement("style");
213
- o.innerHTML = n, a && a.appendChild(o);
214
- }).catch((n) => {
215
- console.error("There was an error while trying to load client styling from URL", n);
213
+ o.innerHTML = t, n && n.appendChild(o);
214
+ }).catch((t) => {
215
+ console.error("There was an error while trying to load client styling from URL", t);
216
216
  });
217
217
  }
218
- function y(a, e, s, n = !1) {
218
+ function y(n, e, s, t = !1) {
219
219
  if (!window.emMessageBus)
220
220
  return;
221
- if (!("adoptedStyleSheets" in Document.prototype) || !n)
222
- return s = C(a, e), s;
223
- window[u] || (window[u] = {}), s = b(a, e);
224
- const r = s.unsubscribe.bind(s), i = () => {
221
+ if (!("adoptedStyleSheets" in Document.prototype) || !t)
222
+ return s = C(n, e), s;
223
+ window[u] || (window[u] = {}), s = b(n, e);
224
+ const r = s.unsubscribe.bind(s), l = () => {
225
225
  if (window[u][e]) {
226
226
  const d = window[u][e];
227
227
  d.refCount > 1 ? d.refCount = d.refCount - 1 : delete window[u][e];
228
228
  }
229
229
  r();
230
230
  };
231
- return s.unsubscribe = i, s;
231
+ return s.unsubscribe = l, s;
232
232
  }
233
- function C(a, e) {
233
+ function C(n, e) {
234
234
  const s = document.createElement("style");
235
- return window.emMessageBus.subscribe(e, (n) => {
236
- a && (s.innerHTML = n, a.appendChild(s));
235
+ return window.emMessageBus.subscribe(e, (t) => {
236
+ n && (s.innerHTML = t, n.appendChild(s));
237
237
  });
238
238
  }
239
- function b(a, e) {
239
+ function b(n, e) {
240
240
  return window.emMessageBus.subscribe(e, (s) => {
241
- if (!a)
241
+ if (!n)
242
242
  return;
243
- const n = a.getRootNode(), o = window[u];
243
+ const t = n.getRootNode(), o = window[u];
244
244
  let r = o[e] && o[e].sheet;
245
245
  r ? o[e].refCount = o[e].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(s), o[e] = {
246
246
  sheet: r,
247
247
  refCount: 1
248
248
  });
249
- const i = n.adoptedStyleSheets || [];
250
- i.includes(r) || (n.adoptedStyleSheets = [...i, r]);
249
+ const l = t.adoptedStyleSheets || [];
250
+ l.includes(r) || (t.adoptedStyleSheets = [...l, r]);
251
251
  });
252
252
  }
253
253
  const v = `:host {
@@ -352,6 +352,40 @@ const v = `:host {
352
352
  border: none;
353
353
  overflow: hidden;
354
354
  }
355
+ .PlayerChangePassword .ChangedPasswordSuccessfully .SuccessWrapper {
356
+ display: inline-flex;
357
+ align-items: center;
358
+ margin-bottom: 20px;
359
+ }
360
+ .PlayerChangePassword .ChangedPasswordSuccessfully .IconContainer {
361
+ width: 45px;
362
+ height: 45px;
363
+ border: 1px solid var(--emw--color-valid, #48952a);
364
+ border-radius: var(--emw--button-border-radius, 10px);
365
+ display: flex;
366
+ align-items: center;
367
+ justify-content: center;
368
+ }
369
+ .PlayerChangePassword .ChangedPasswordSuccessfully .Checkmark {
370
+ width: 12px;
371
+ height: 22px;
372
+ border: 1px solid var(--emw--color-valid, #48952a);
373
+ border-width: 0 2px 2px 0;
374
+ transform: rotate(45deg);
375
+ position: relative;
376
+ top: -3px;
377
+ }
378
+ .PlayerChangePassword .ChangedPasswordSuccessfully h3 {
379
+ font-size: var(--emw--font-size-large, 20px);
380
+ font-weight: var(--emw--font-weight-normal, 400);
381
+ margin: 10px 0;
382
+ color: var(--emw--color-valid, #48952a);
383
+ }
384
+ .PlayerChangePassword .ChangedPasswordSuccessfully .TextContainer {
385
+ display: flex;
386
+ flex-direction: column;
387
+ padding: 10px 20px;
388
+ }
355
389
  @container (max-width: 425px) {
356
390
  .PlayerChangePassword .Form .ButtonReturn {
357
391
  display: inline-flex;
@@ -375,8 +409,8 @@ const v = `:host {
375
409
  opacity: 1;
376
410
  }
377
411
  }`, x = v, S = class {
378
- constructor(a) {
379
- g(this, a), 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 = () => {
412
+ constructor(n) {
413
+ g(this, n), 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 = () => {
380
414
  this.confirmPasswordValidationSchema = {
381
415
  mandatory: !0,
382
416
  maxLength: this.policy.maximumPasswordLength,
@@ -396,18 +430,18 @@ const v = `:host {
396
430
  custom: this.policy.customValidationRules
397
431
  };
398
432
  }, this.setErrorMsg = (e, s) => {
399
- var n, o, r;
433
+ var t, o, r;
400
434
  switch (e) {
401
435
  case "gm.pms.password_policy_failed":
402
- if (((o = (n = s == null ? void 0 : s.errors) === null || n === void 0 ? void 0 : n.policy) === null || o === void 0 ? void 0 : o.length) > 0) {
403
- const i = {
436
+ if (((o = (t = s == null ? void 0 : s.errors) === null || t === void 0 ? void 0 : t.policy) === null || o === void 0 ? void 0 : o.length) > 0) {
437
+ const l = {
404
438
  forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
405
439
  minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
406
440
  hours: this.policy.minimumPasswordAgeLimitHours > 1 ? "hours" : "hour"
407
441
  };
408
- this.errorMsg = l(e, this.language, { values: i });
442
+ this.errorMsg = i(e, this.language, { values: l });
409
443
  } else if (!((r = s == null ? void 0 : s.errors) === null || r === void 0) && r.strength && Array.isArray(s.errors.strength)) {
410
- const i = s.errors.strength.map((d) => {
444
+ const l = s.errors.strength.map((d) => {
411
445
  const c = {
412
446
  "Password should not contain first name.": "passwordContainsFirstName",
413
447
  "Password should not contain last name.": "passwordContainsLastName",
@@ -417,84 +451,90 @@ const v = `:host {
417
451
  "Password should not contain first name and last name.": "passwordContainsFirstNameAndLastName",
418
452
  "Password should not contain date of birth.": "passwordContainsDateOfBirth"
419
453
  }[d] || null;
420
- return c ? l(c, this.language) : d;
454
+ return c ? i(c, this.language) : d;
421
455
  });
422
- this.errorMsg = i.join(" ");
456
+ this.errorMsg = l.join(" ");
423
457
  }
424
458
  break;
425
459
  case "gm.pms.password_not_verified_unauthorized":
426
- this.errorMsg = l(e, this.language);
460
+ this.errorMsg = i(e, this.language);
427
461
  break;
428
462
  default:
429
- this.errorMsg = l("errorMsgGeneric", this.language);
463
+ this.errorMsg = i("errorMsgGeneric", this.language);
430
464
  }
431
465
  }, this.toggleScreen = () => {
432
466
  this.forgotMode ? window.postMessage({ type: "OpenLoginRegisterModal", transition: "ForgotPassword" }, window.location.href) : window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.isMobile }, window.location.href);
433
467
  }, this.getPolicy = () => {
434
468
  const e = new URL("/api/pam/v2/players/password", this.endpoint), s = new Headers();
435
469
  s.append("Accept", "text/plain"), s.append("Content-Type", "application/json-patch+json");
436
- const n = {
470
+ const t = {
437
471
  method: "GET",
438
472
  headers: s
439
473
  };
440
- fetch(e.href, n).then((o) => o.status === 200 && o.json()).then((o) => {
474
+ fetch(e.href, t).then((o) => o.status === 200 && o.json()).then((o) => {
441
475
  this.policy = o, this.policy.customValidationRules.forEach((r) => {
442
476
  r.rule = r.rule.toLowerCase(), r.rule === "duplicateinput" && (r.rule = "duplicate-input");
443
477
  }), this.initValidationSchemas();
444
478
  }).catch((o) => {
445
- console.error(`${l("errorMsgGeneric", this.language)}:`, o), window.postMessage({ type: "WidgetNotification", data: { type: "error", message: l("errorMsgGeneric", this.language) } }, window.location.href);
479
+ console.error(`${i("errorMsgGeneric", this.language)}:`, o), window.postMessage({ type: "WidgetNotification", data: { type: "error", message: i("errorMsgGeneric", this.language) } }, window.location.href);
446
480
  }).finally(() => {
447
481
  this.isSkeletonLoading = !1;
448
482
  });
449
483
  }, this.submitNewPassword = (e) => {
450
484
  if (e.preventDefault(), this.isBtnSubmitEnabled) {
451
- const s = new URL("/api/pam/v2/players/password", this.endpoint), n = new Headers();
452
- n.append("accept", "text/plain"), n.append("Content-Type", "application/json-patch+json"), this.session && n.append("X-Session-ID", this.session);
485
+ const s = new URL("/api/pam/v2/players/password", this.endpoint), t = new Headers();
486
+ t.append("accept", "text/plain"), t.append("Content-Type", "application/json-patch+json"), this.session && t.append("X-Session-ID", this.session);
453
487
  const o = JSON.stringify({
454
488
  token: this.forgotMode === "true" ? this.token : this.session,
455
489
  oldPassword: this.currentPasswordValue,
456
490
  newPassword: this.confirmPasswordValue
457
491
  }), r = {
458
492
  method: "PUT",
459
- headers: n,
493
+ headers: t,
460
494
  body: o
461
495
  };
462
- fetch(s.href, r).then((i) => i.json()).then((i) => {
463
- i.errorCode === null && i.message === "pms.password.update.success" ? (window.postMessage({ type: "PasswordChangedSuccessfully" }), window.postMessage({ type: "WidgetNotification", data: { type: "success", message: l("successMsg", this.language) } }, window.location.href)) : (this.setErrorMsg(i.message, i), window.postMessage({ type: "WidgetNotification", data: { type: "error", message: this.errorMsg } }, window.location.href));
464
- }).catch((i) => console.error(i));
496
+ fetch(s.href, r).then((l) => {
497
+ if (l.ok) {
498
+ this.passwordChanged = !0, window.postMessage({ type: "PasswordChangedSuccessfully" }), window.postMessage({ type: "WidgetNotification", data: { type: "success", message: i("successMsg", this.language) } }, window.location.href);
499
+ return;
500
+ }
501
+ return l.json().then((d) => {
502
+ this.setErrorMsg(d.message, d), window.postMessage({ type: "WidgetNotification", data: { type: "error", message: this.errorMsg } }, window.location.href);
503
+ });
504
+ }).catch((l) => console.error(l));
465
505
  }
466
- }, 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.isSkeletonLoading = !0, this.isMobile = m() === "mobile" || m() === "tablet";
506
+ }, 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.isSkeletonLoading = !0, this.isMobile = h() === "mobile" || h() === "tablet", this.passwordChanged = !1;
467
507
  }
468
- handleClientStylingChange(a, e) {
469
- a != e && h(this.stylingContainer, this.clientStyling);
508
+ handleClientStylingChange(n, e) {
509
+ n != e && m(this.stylingContainer, this.clientStyling);
470
510
  }
471
- handleClientStylingUrlChange(a, e) {
472
- a != e && this.clientStylingUrl && w(this.stylingContainer, this.clientStylingUrl);
511
+ handleClientStylingUrlChange(n, e) {
512
+ n != e && this.clientStylingUrl && w(this.stylingContainer, this.clientStylingUrl);
473
513
  }
474
- sendValidityStateHandler(a) {
475
- switch (this.isBtnSubmitEnabled = !1, a.detail.name) {
514
+ sendValidityStateHandler(n) {
515
+ switch (this.isBtnSubmitEnabled = !1, n.detail.name) {
476
516
  case "password":
477
- this.isCurrentPasswordValid = a.detail.valid;
517
+ this.isCurrentPasswordValid = n.detail.valid;
478
518
  break;
479
519
  case "newPassword":
480
- this.isNewPasswordValid = a.detail.valid;
520
+ this.isNewPasswordValid = n.detail.valid;
481
521
  break;
482
522
  case "newPasswordDuplicate":
483
- this.isConfirmPasswordValid = a.detail.valid;
523
+ this.isConfirmPasswordValid = n.detail.valid;
484
524
  break;
485
525
  }
486
526
  (this.forgotMode === "true" || this.isCurrentPasswordValid) && this.isNewPasswordValid && this.isConfirmPasswordValid && (this.isBtnSubmitEnabled = !0);
487
527
  }
488
- sendInputValueHandler(a) {
489
- switch (a.detail.name) {
528
+ sendInputValueHandler(n) {
529
+ switch (n.detail.name) {
490
530
  case "password":
491
- this.currentPasswordValue = a.detail.value;
531
+ this.currentPasswordValue = n.detail.value;
492
532
  break;
493
533
  case "newPassword":
494
- this.newPasswordValue = a.detail.value;
534
+ this.newPasswordValue = n.detail.value;
495
535
  break;
496
536
  case "newPasswordDuplicate":
497
- this.confirmPasswordValue = a.detail.value;
537
+ this.confirmPasswordValue = n.detail.value;
498
538
  break;
499
539
  }
500
540
  }
@@ -503,13 +543,13 @@ const v = `:host {
503
543
  return f(this.translationUrl);
504
544
  }
505
545
  componentDidLoad() {
506
- this.stylingContainer && (window.emMessageBus != null ? y(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && h(this.stylingContainer, this.clientStyling), this.clientStylingUrl && w(this.stylingContainer, this.clientStylingUrl)));
546
+ this.stylingContainer && (window.emMessageBus != null ? y(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && w(this.stylingContainer, this.clientStylingUrl)));
507
547
  }
508
548
  disconnectedCallback() {
509
549
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
510
550
  }
511
551
  render() {
512
- return this.isSkeletonLoading ? t("div", { class: "PlayerChangePassword skeleton" }, t("form", { class: "Form" }, t("div", { class: "ButtonReturn" }, t("ui-skeleton", { structure: "text", width: "auto", height: "30px" })), t("section", { class: "FieldsSection" }, t("div", { class: "FieldContainer" }, t("div", { class: "FieldTitle" }, t("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), t("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" })), t("div", { class: "FieldContainer" }, t("div", { class: "FieldTitle" }, t("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), t("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" })), t("div", { class: "FieldContainer" }, t("div", { class: "FieldTitle" }, t("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), t("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" }))), t("section", { class: "ButtonsSection" }, t("div", { class: "Button" }, t("ui-skeleton", { structure: "rectangle", width: "auto", height: "50px" }))))) : t("div", { class: "PlayerChangePassword", ref: (a) => this.stylingContainer = a }, t("form", { class: "Form" }, t("div", { class: "ButtonReturn", onClick: this.toggleScreen }, t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, t("g", { transform: "translate(-20 -158)" }, t("g", { transform: "translate(20 158)" }, t("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)" })))), t("h2", { class: "TitleMobile" }, l("title", this.language))), t("h2", { class: "Title" }, l("title", this.language)), t("section", { class: "FieldsSection" }, this.forgotMode === "false" && t("general-input", { type: "password", action: "input", name: "password", language: this.language, "display-name": l("passwordDisplayText", this.language), placeholder: l("passwordPlaceholderText", this.language), validation: { mandatory: !1 }, "no-validation": "true", clientStyling: this.clientStyling, "mb-source": this.mbSource, "hide-password-complexity": "true" }), t("general-input", { type: "password", action: "input", name: "newPassword", language: this.language, "display-name": l("newPasswordDisplayText", this.language), placeholder: l("newPasswordPlaceholderText", this.language), validation: this.newPasswordValidationSchema, clientStyling: this.clientStyling, "mb-source": this.mbSource }), t("general-input", { type: "password", action: "input", name: "newPasswordDuplicate", language: this.language, "display-name": l("confirmPasswordDisplayText", this.language), placeholder: l("confirmPasswordPlaceholderText", this.language), validation: this.confirmPasswordValidationSchema, "is-duplicate-input": !0, clientStyling: this.clientStyling, "mb-source": this.mbSource })), t("section", { class: "ButtonsSection" }, t("button", { class: "Button", disabled: !this.isBtnSubmitEnabled, onClick: this.submitNewPassword }, l("btnSubmit", this.language)))));
552
+ return this.isSkeletonLoading ? a("div", { class: "PlayerChangePassword skeleton" }, a("form", { class: "Form" }, a("div", { class: "ButtonReturn" }, a("ui-skeleton", { structure: "text", width: "auto", height: "30px" })), a("section", { class: "FieldsSection" }, a("div", { class: "FieldContainer" }, a("div", { class: "FieldTitle" }, a("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), a("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" })), a("div", { class: "FieldContainer" }, a("div", { class: "FieldTitle" }, a("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), a("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" })), a("div", { class: "FieldContainer" }, a("div", { class: "FieldTitle" }, a("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), a("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" }))), a("section", { class: "ButtonsSection" }, a("div", { class: "Button" }, a("ui-skeleton", { structure: "rectangle", width: "auto", height: "50px" }))))) : a("div", { class: "PlayerChangePassword", ref: (n) => this.stylingContainer = n }, this.passwordChanged ? a("div", { class: "ChangedPasswordSuccessfully" }, a("div", { class: "SuccessWrapper" }, a("div", { class: "IconContainer" }, a("div", { class: "Checkmark" })), a("div", { class: "TextContainer" }, a("h3", null, i("successMsg", this.language))))) : a("form", { class: "Form" }, a("div", { class: "ButtonReturn", onClick: this.toggleScreen }, a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, a("g", { transform: "translate(-20 -158)" }, a("g", { transform: "translate(20 158)" }, a("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)" })))), a("h2", { class: "TitleMobile" }, i("title", this.language))), a("h2", { class: "Title" }, i("title", this.language)), a("section", { class: "FieldsSection" }, this.forgotMode === "false" && a("general-input", { type: "password", action: "input", name: "password", language: this.language, "display-name": i("passwordDisplayText", this.language), placeholder: i("passwordPlaceholderText", this.language), validation: { mandatory: !1 }, "no-validation": "true", clientStyling: this.clientStyling, "mb-source": this.mbSource, "hide-password-complexity": "true" }), a("general-input", { type: "password", action: "input", name: "newPassword", language: this.language, "display-name": i("newPasswordDisplayText", this.language), placeholder: i("newPasswordPlaceholderText", this.language), validation: this.newPasswordValidationSchema, clientStyling: this.clientStyling, "mb-source": this.mbSource }), a("general-input", { type: "password", action: "input", name: "newPasswordDuplicate", language: this.language, "display-name": i("confirmPasswordDisplayText", this.language), placeholder: i("confirmPasswordPlaceholderText", this.language), validation: this.confirmPasswordValidationSchema, "is-duplicate-input": !0, clientStyling: this.clientStyling, "mb-source": this.mbSource })), a("section", { class: "ButtonsSection" }, a("button", { class: "Button", disabled: !this.isBtnSubmitEnabled, onClick: this.submitNewPassword }, i("btnSubmit", this.language)))));
513
553
  }
514
554
  static get watchers() {
515
555
  return {
@@ -523,5 +563,5 @@ export {
523
563
  S as P,
524
564
  y as a,
525
565
  w as b,
526
- h as s
566
+ m as s
527
567
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./index-7469517b-CqcJx12g.cjs"),f="en",p={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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."}},y=a=>new Promise(e=>{fetch(a).then(s=>s.json()).then(s=>{Object.keys(s).forEach(n=>{for(let o in s[n])p[n][o]=s[n][o]}),e(!0)})}),l=(a,e,s)=>{const n=e;let o=p[n!==void 0?n:f][a];if(s!==void 0)for(const[i,r]of Object.entries(s.values)){const d=new RegExp(`{${i}}`,"g");o=o.replace(d,r)}return o};function w(){const a=navigator.userAgent.toLowerCase(),e=screen.availWidth,s=screen.availHeight;if(a.includes("iphone"))return"mobile";if(a.includes("android")){if(s>e&&e<800)return"mobile";if(e>s&&s<800)return"tablet"}return"desktop"}const u="__WIDGET_GLOBAL_STYLE_CACHE__";function c(a,e){if(a){const s=document.createElement("style");s.innerHTML=e,a.appendChild(s)}}function h(a,e){if(!a||!e)return;const s=new URL(e);fetch(s.href).then(n=>n.text()).then(n=>{const o=document.createElement("style");o.innerHTML=n,a&&a.appendChild(o)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function g(a,e,s,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return s=C(a,e),s;window[u]||(window[u]={}),s=b(a,e);const i=s.unsubscribe.bind(s),r=()=>{if(window[u][e]){const d=window[u][e];d.refCount>1?d.refCount=d.refCount-1:delete window[u][e]}i()};return s.unsubscribe=r,s}function C(a,e){const s=document.createElement("style");return window.emMessageBus.subscribe(e,n=>{a&&(s.innerHTML=n,a.appendChild(s))})}function b(a,e){return window.emMessageBus.subscribe(e,s=>{if(!a)return;const n=a.getRootNode(),o=window[u];let i=o[e]&&o[e].sheet;i?o[e].refCount=o[e].refCount+1:(i=new CSSStyleSheet,i.replaceSync(s),o[e]={sheet:i,refCount:1});const r=n.adoptedStyleSheets||[];r.includes(i)||(n.adoptedStyleSheets=[...r,i])})}const v=`:host {
1
+ "use strict";const e=require("./index-7469517b-8Vfz7n3C.cjs"),f="en",p={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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."},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.",passwordContainsFirstName:"Password should not contain your first name.",passwordContainsLastName:"Password should not contain your last name.",passwordContainsUsername:"Password should not contain your username.",passwordContainsEmail:"Password should not contain your email.",passwordContainsFirstNamePlusLastName:"Password should not contain first name + last name.",passwordContainsFirstNameAndLastName:"Password should not contain first name and last name.",passwordContainsDateOfBirth:"Password should not contain date of birth."}},y=n=>new Promise(a=>{fetch(n).then(s=>s.json()).then(s=>{Object.keys(s).forEach(t=>{for(let o in s[t])p[t][o]=s[t][o]}),a(!0)})}),i=(n,a,s)=>{const t=a;let o=p[t!==void 0?t:f][n];if(s!==void 0)for(const[r,l]of Object.entries(s.values)){const d=new RegExp(`{${r}}`,"g");o=o.replace(d,l)}return o};function w(){const n=navigator.userAgent.toLowerCase(),a=screen.availWidth,s=screen.availHeight;if(n.includes("iphone"))return"mobile";if(n.includes("android")){if(s>a&&a<800)return"mobile";if(a>s&&s<800)return"tablet"}return"desktop"}const u="__WIDGET_GLOBAL_STYLE_CACHE__";function c(n,a){if(n){const s=document.createElement("style");s.innerHTML=a,n.appendChild(s)}}function h(n,a){if(!n||!a)return;const s=new URL(a);fetch(s.href).then(t=>t.text()).then(t=>{const o=document.createElement("style");o.innerHTML=t,n&&n.appendChild(o)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function g(n,a,s,t=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!t)return s=C(n,a),s;window[u]||(window[u]={}),s=b(n,a);const r=s.unsubscribe.bind(s),l=()=>{if(window[u][a]){const d=window[u][a];d.refCount>1?d.refCount=d.refCount-1:delete window[u][a]}r()};return s.unsubscribe=l,s}function C(n,a){const s=document.createElement("style");return window.emMessageBus.subscribe(a,t=>{n&&(s.innerHTML=t,n.appendChild(s))})}function b(n,a){return window.emMessageBus.subscribe(a,s=>{if(!n)return;const t=n.getRootNode(),o=window[u];let r=o[a]&&o[a].sheet;r?o[a].refCount=o[a].refCount+1:(r=new CSSStyleSheet,r.replaceSync(s),o[a]={sheet:r,refCount:1});const l=t.adoptedStyleSheets||[];l.includes(r)||(t.adoptedStyleSheets=[...l,r])})}const v=`:host {
2
2
  display: block;
3
3
  }
4
4
 
@@ -100,6 +100,40 @@
100
100
  border: none;
101
101
  overflow: hidden;
102
102
  }
103
+ .PlayerChangePassword .ChangedPasswordSuccessfully .SuccessWrapper {
104
+ display: inline-flex;
105
+ align-items: center;
106
+ margin-bottom: 20px;
107
+ }
108
+ .PlayerChangePassword .ChangedPasswordSuccessfully .IconContainer {
109
+ width: 45px;
110
+ height: 45px;
111
+ border: 1px solid var(--emw--color-valid, #48952a);
112
+ border-radius: var(--emw--button-border-radius, 10px);
113
+ display: flex;
114
+ align-items: center;
115
+ justify-content: center;
116
+ }
117
+ .PlayerChangePassword .ChangedPasswordSuccessfully .Checkmark {
118
+ width: 12px;
119
+ height: 22px;
120
+ border: 1px solid var(--emw--color-valid, #48952a);
121
+ border-width: 0 2px 2px 0;
122
+ transform: rotate(45deg);
123
+ position: relative;
124
+ top: -3px;
125
+ }
126
+ .PlayerChangePassword .ChangedPasswordSuccessfully h3 {
127
+ font-size: var(--emw--font-size-large, 20px);
128
+ font-weight: var(--emw--font-weight-normal, 400);
129
+ margin: 10px 0;
130
+ color: var(--emw--color-valid, #48952a);
131
+ }
132
+ .PlayerChangePassword .ChangedPasswordSuccessfully .TextContainer {
133
+ display: flex;
134
+ flex-direction: column;
135
+ padding: 10px 20px;
136
+ }
103
137
  @container (max-width: 425px) {
104
138
  .PlayerChangePassword .Form .ButtonReturn {
105
139
  display: inline-flex;
@@ -122,4 +156,4 @@
122
156
  100% {
123
157
  opacity: 1;
124
158
  }
125
- }`,S=v,P=class{constructor(a){t.registerInstance(this,a),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.confirmPasswordValidationSchema={mandatory:!0,maxLength:this.policy.maximumPasswordLength,minLength:this.policy.minimumPasswordLength,custom:[this.policy.customValidationRules.find(e=>e.rule==="duplicate-input")]},this.newPasswordValidationSchema={mandatory:!0,maxLength:this.policy.maximumPasswordLength,minLength:this.policy.minimumPasswordLength,custom:this.policy.customValidationRules},this.currentPasswordValidationSchema={mandatory:!0,maxLength:this.policy.maximumPasswordLength,minLength:this.policy.minimumPasswordLength,custom:this.policy.customValidationRules}},this.setErrorMsg=(e,s)=>{var n,o,i;switch(e){case"gm.pms.password_policy_failed":if(((o=(n=s==null?void 0:s.errors)===null||n===void 0?void 0:n.policy)===null||o===void 0?void 0:o.length)>0){const r={forbiddenLastPasswordsCount:this.policy.forbiddenLastPasswordsCount,minimumPasswordAgeLimitHours:this.policy.minimumPasswordAgeLimitHours,hours:this.policy.minimumPasswordAgeLimitHours>1?"hours":"hour"};this.errorMsg=l(e,this.language,{values:r})}else if(!((i=s==null?void 0:s.errors)===null||i===void 0)&&i.strength&&Array.isArray(s.errors.strength)){const r=s.errors.strength.map(d=>{const m={"Password should not contain first name.":"passwordContainsFirstName","Password should not contain last name.":"passwordContainsLastName","Password should not contain username.":"passwordContainsUsername","Password should not contain email.":"passwordContainsEmail","Password should not contain first name + last name.":"passwordContainsFirstNamePlusLastName","Password should not contain first name and last name.":"passwordContainsFirstNameAndLastName","Password should not contain date of birth.":"passwordContainsDateOfBirth"}[d]||null;return m?l(m,this.language):d});this.errorMsg=r.join(" ")}break;case"gm.pms.password_not_verified_unauthorized":this.errorMsg=l(e,this.language);break;default:this.errorMsg=l("errorMsgGeneric",this.language)}},this.toggleScreen=()=>{this.forgotMode?window.postMessage({type:"OpenLoginRegisterModal",transition:"ForgotPassword"},window.location.href):window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.getPolicy=()=>{const e=new URL("/api/pam/v2/players/password",this.endpoint),s=new Headers;s.append("Accept","text/plain"),s.append("Content-Type","application/json-patch+json");const n={method:"GET",headers:s};fetch(e.href,n).then(o=>o.status===200&&o.json()).then(o=>{this.policy=o,this.policy.customValidationRules.forEach(i=>{i.rule=i.rule.toLowerCase(),i.rule==="duplicateinput"&&(i.rule="duplicate-input")}),this.initValidationSchemas()}).catch(o=>{console.error(`${l("errorMsgGeneric",this.language)}:`,o),window.postMessage({type:"WidgetNotification",data:{type:"error",message:l("errorMsgGeneric",this.language)}},window.location.href)}).finally(()=>{this.isSkeletonLoading=!1})},this.submitNewPassword=e=>{if(e.preventDefault(),this.isBtnSubmitEnabled){const s=new URL("/api/pam/v2/players/password",this.endpoint),n=new Headers;n.append("accept","text/plain"),n.append("Content-Type","application/json-patch+json"),this.session&&n.append("X-Session-ID",this.session);const o=JSON.stringify({token:this.forgotMode==="true"?this.token:this.session,oldPassword:this.currentPasswordValue,newPassword:this.confirmPasswordValue}),i={method:"PUT",headers:n,body:o};fetch(s.href,i).then(r=>r.json()).then(r=>{r.errorCode===null&&r.message==="pms.password.update.success"?(window.postMessage({type:"PasswordChangedSuccessfully"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:l("successMsg",this.language)}},window.location.href)):(this.setErrorMsg(r.message,r),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMsg}},window.location.href))}).catch(r=>console.error(r))}},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.isSkeletonLoading=!0,this.isMobile=w()==="mobile"||w()==="tablet"}handleClientStylingChange(a,e){a!=e&&c(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(a,e){a!=e&&this.clientStylingUrl&&h(this.stylingContainer,this.clientStylingUrl)}sendValidityStateHandler(a){switch(this.isBtnSubmitEnabled=!1,a.detail.name){case"password":this.isCurrentPasswordValid=a.detail.valid;break;case"newPassword":this.isNewPasswordValid=a.detail.valid;break;case"newPasswordDuplicate":this.isConfirmPasswordValid=a.detail.valid;break}(this.forgotMode==="true"||this.isCurrentPasswordValid)&&this.isNewPasswordValid&&this.isConfirmPasswordValid&&(this.isBtnSubmitEnabled=!0)}sendInputValueHandler(a){switch(a.detail.name){case"password":this.currentPasswordValue=a.detail.value;break;case"newPassword":this.newPasswordValue=a.detail.value;break;case"newPasswordDuplicate":this.confirmPasswordValue=a.detail.value;break}}componentWillLoad(){if(this.getPolicy(),this.translationUrl)return y(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?g(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&c(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&h(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return this.isSkeletonLoading?t.h("div",{class:"PlayerChangePassword skeleton"},t.h("form",{class:"Form"},t.h("div",{class:"ButtonReturn"},t.h("ui-skeleton",{structure:"text",width:"auto",height:"30px"})),t.h("section",{class:"FieldsSection"},t.h("div",{class:"FieldContainer"},t.h("div",{class:"FieldTitle"},t.h("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),t.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"})),t.h("div",{class:"FieldContainer"},t.h("div",{class:"FieldTitle"},t.h("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),t.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"})),t.h("div",{class:"FieldContainer"},t.h("div",{class:"FieldTitle"},t.h("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),t.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"}))),t.h("section",{class:"ButtonsSection"},t.h("div",{class:"Button"},t.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"50px"}))))):t.h("div",{class:"PlayerChangePassword",ref:a=>this.stylingContainer=a},t.h("form",{class:"Form"},t.h("div",{class:"ButtonReturn",onClick:this.toggleScreen},t.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t.h("g",{transform:"translate(-20 -158)"},t.h("g",{transform:"translate(20 158)"},t.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)"})))),t.h("h2",{class:"TitleMobile"},l("title",this.language))),t.h("h2",{class:"Title"},l("title",this.language)),t.h("section",{class:"FieldsSection"},this.forgotMode==="false"&&t.h("general-input",{type:"password",action:"input",name:"password",language:this.language,"display-name":l("passwordDisplayText",this.language),placeholder:l("passwordPlaceholderText",this.language),validation:{mandatory:!1},"no-validation":"true",clientStyling:this.clientStyling,"mb-source":this.mbSource,"hide-password-complexity":"true"}),t.h("general-input",{type:"password",action:"input",name:"newPassword",language:this.language,"display-name":l("newPasswordDisplayText",this.language),placeholder:l("newPasswordPlaceholderText",this.language),validation:this.newPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),t.h("general-input",{type:"password",action:"input",name:"newPasswordDuplicate",language:this.language,"display-name":l("confirmPasswordDisplayText",this.language),placeholder:l("confirmPasswordPlaceholderText",this.language),validation:this.confirmPasswordValidationSchema,"is-duplicate-input":!0,clientStyling:this.clientStyling,"mb-source":this.mbSource})),t.h("section",{class:"ButtonsSection"},t.h("button",{class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitNewPassword},l("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};P.style=S;exports.PamChangePassword=P;exports.setClientStyling=c;exports.setClientStylingURL=h;exports.setStreamStyling=g;
159
+ }`,x=v,P=class{constructor(n){e.registerInstance(this,n),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.confirmPasswordValidationSchema={mandatory:!0,maxLength:this.policy.maximumPasswordLength,minLength:this.policy.minimumPasswordLength,custom:[this.policy.customValidationRules.find(a=>a.rule==="duplicate-input")]},this.newPasswordValidationSchema={mandatory:!0,maxLength:this.policy.maximumPasswordLength,minLength:this.policy.minimumPasswordLength,custom:this.policy.customValidationRules},this.currentPasswordValidationSchema={mandatory:!0,maxLength:this.policy.maximumPasswordLength,minLength:this.policy.minimumPasswordLength,custom:this.policy.customValidationRules}},this.setErrorMsg=(a,s)=>{var t,o,r;switch(a){case"gm.pms.password_policy_failed":if(((o=(t=s==null?void 0:s.errors)===null||t===void 0?void 0:t.policy)===null||o===void 0?void 0:o.length)>0){const l={forbiddenLastPasswordsCount:this.policy.forbiddenLastPasswordsCount,minimumPasswordAgeLimitHours:this.policy.minimumPasswordAgeLimitHours,hours:this.policy.minimumPasswordAgeLimitHours>1?"hours":"hour"};this.errorMsg=i(a,this.language,{values:l})}else if(!((r=s==null?void 0:s.errors)===null||r===void 0)&&r.strength&&Array.isArray(s.errors.strength)){const l=s.errors.strength.map(d=>{const m={"Password should not contain first name.":"passwordContainsFirstName","Password should not contain last name.":"passwordContainsLastName","Password should not contain username.":"passwordContainsUsername","Password should not contain email.":"passwordContainsEmail","Password should not contain first name + last name.":"passwordContainsFirstNamePlusLastName","Password should not contain first name and last name.":"passwordContainsFirstNameAndLastName","Password should not contain date of birth.":"passwordContainsDateOfBirth"}[d]||null;return m?i(m,this.language):d});this.errorMsg=l.join(" ")}break;case"gm.pms.password_not_verified_unauthorized":this.errorMsg=i(a,this.language);break;default:this.errorMsg=i("errorMsgGeneric",this.language)}},this.toggleScreen=()=>{this.forgotMode?window.postMessage({type:"OpenLoginRegisterModal",transition:"ForgotPassword"},window.location.href):window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.getPolicy=()=>{const a=new URL("/api/pam/v2/players/password",this.endpoint),s=new Headers;s.append("Accept","text/plain"),s.append("Content-Type","application/json-patch+json");const t={method:"GET",headers:s};fetch(a.href,t).then(o=>o.status===200&&o.json()).then(o=>{this.policy=o,this.policy.customValidationRules.forEach(r=>{r.rule=r.rule.toLowerCase(),r.rule==="duplicateinput"&&(r.rule="duplicate-input")}),this.initValidationSchemas()}).catch(o=>{console.error(`${i("errorMsgGeneric",this.language)}:`,o),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorMsgGeneric",this.language)}},window.location.href)}).finally(()=>{this.isSkeletonLoading=!1})},this.submitNewPassword=a=>{if(a.preventDefault(),this.isBtnSubmitEnabled){const s=new URL("/api/pam/v2/players/password",this.endpoint),t=new Headers;t.append("accept","text/plain"),t.append("Content-Type","application/json-patch+json"),this.session&&t.append("X-Session-ID",this.session);const o=JSON.stringify({token:this.forgotMode==="true"?this.token:this.session,oldPassword:this.currentPasswordValue,newPassword:this.confirmPasswordValue}),r={method:"PUT",headers:t,body:o};fetch(s.href,r).then(l=>{if(l.ok){this.passwordChanged=!0,window.postMessage({type:"PasswordChangedSuccessfully"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMsg",this.language)}},window.location.href);return}return l.json().then(d=>{this.setErrorMsg(d.message,d),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMsg}},window.location.href)})}).catch(l=>console.error(l))}},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.isSkeletonLoading=!0,this.isMobile=w()==="mobile"||w()==="tablet",this.passwordChanged=!1}handleClientStylingChange(n,a){n!=a&&c(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(n,a){n!=a&&this.clientStylingUrl&&h(this.stylingContainer,this.clientStylingUrl)}sendValidityStateHandler(n){switch(this.isBtnSubmitEnabled=!1,n.detail.name){case"password":this.isCurrentPasswordValid=n.detail.valid;break;case"newPassword":this.isNewPasswordValid=n.detail.valid;break;case"newPasswordDuplicate":this.isConfirmPasswordValid=n.detail.valid;break}(this.forgotMode==="true"||this.isCurrentPasswordValid)&&this.isNewPasswordValid&&this.isConfirmPasswordValid&&(this.isBtnSubmitEnabled=!0)}sendInputValueHandler(n){switch(n.detail.name){case"password":this.currentPasswordValue=n.detail.value;break;case"newPassword":this.newPasswordValue=n.detail.value;break;case"newPasswordDuplicate":this.confirmPasswordValue=n.detail.value;break}}componentWillLoad(){if(this.getPolicy(),this.translationUrl)return y(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?g(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&c(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&h(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return this.isSkeletonLoading?e.h("div",{class:"PlayerChangePassword skeleton"},e.h("form",{class:"Form"},e.h("div",{class:"ButtonReturn"},e.h("ui-skeleton",{structure:"text",width:"auto",height:"30px"})),e.h("section",{class:"FieldsSection"},e.h("div",{class:"FieldContainer"},e.h("div",{class:"FieldTitle"},e.h("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),e.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"})),e.h("div",{class:"FieldContainer"},e.h("div",{class:"FieldTitle"},e.h("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),e.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"})),e.h("div",{class:"FieldContainer"},e.h("div",{class:"FieldTitle"},e.h("ui-skeleton",{structure:"title",width:"auto",height:"10px"})),e.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"35px"}))),e.h("section",{class:"ButtonsSection"},e.h("div",{class:"Button"},e.h("ui-skeleton",{structure:"rectangle",width:"auto",height:"50px"}))))):e.h("div",{class:"PlayerChangePassword",ref:n=>this.stylingContainer=n},this.passwordChanged?e.h("div",{class:"ChangedPasswordSuccessfully"},e.h("div",{class:"SuccessWrapper"},e.h("div",{class:"IconContainer"},e.h("div",{class:"Checkmark"})),e.h("div",{class:"TextContainer"},e.h("h3",null,i("successMsg",this.language))))):e.h("form",{class:"Form"},e.h("div",{class:"ButtonReturn",onClick:this.toggleScreen},e.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},e.h("g",{transform:"translate(-20 -158)"},e.h("g",{transform:"translate(20 158)"},e.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)"})))),e.h("h2",{class:"TitleMobile"},i("title",this.language))),e.h("h2",{class:"Title"},i("title",this.language)),e.h("section",{class:"FieldsSection"},this.forgotMode==="false"&&e.h("general-input",{type:"password",action:"input",name:"password",language:this.language,"display-name":i("passwordDisplayText",this.language),placeholder:i("passwordPlaceholderText",this.language),validation:{mandatory:!1},"no-validation":"true",clientStyling:this.clientStyling,"mb-source":this.mbSource,"hide-password-complexity":"true"}),e.h("general-input",{type:"password",action:"input",name:"newPassword",language:this.language,"display-name":i("newPasswordDisplayText",this.language),placeholder:i("newPasswordPlaceholderText",this.language),validation:this.newPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),e.h("general-input",{type:"password",action:"input",name:"newPasswordDuplicate",language:this.language,"display-name":i("confirmPasswordDisplayText",this.language),placeholder:i("confirmPasswordPlaceholderText",this.language),validation:this.confirmPasswordValidationSchema,"is-duplicate-input":!0,clientStyling:this.clientStyling,"mb-source":this.mbSource})),e.h("section",{class:"ButtonsSection"},e.h("button",{class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitNewPassword},i("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};P.style=x;exports.PamChangePassword=P;exports.setClientStyling=c;exports.setClientStylingURL=h;exports.setStreamStyling=g;