@everymatrix/player-account-controller-nd 1.55.0 → 1.56.2
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.
- package/components/GeneralLogout-B0tDLggX.cjs +21 -0
- package/components/{GeneralLogout-Ve_dOAMA.js → GeneralLogout-Bey9GDpf.js} +987 -935
- package/components/{GeneralLogout-BZhvD1EQ.js → GeneralLogout-YiF0hTAh.js} +991 -939
- package/components/PlayerAccountBettingHistory-Db9Bi7uC.js +328 -0
- package/components/PlayerAccountBettingHistory-QrFClf-q.cjs +1 -0
- package/components/PlayerAccountBettingHistory-e7BZnvlA.js +329 -0
- package/components/{PlayerAccountBiometrics-fQlNKCoA.js → PlayerAccountBiometrics-9yKUwb5y.js} +125 -126
- package/components/{PlayerAccountBiometrics-BrlNlZ5N.cjs → PlayerAccountBiometrics-Bs6NMHc0.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-BupiQCMJ.js → PlayerAccountBiometrics-fgA6msXe.js} +125 -126
- package/components/{PlayerAccountClosureNd-DcMOj468.cjs → PlayerAccountClosureNd-BUJ9_TaL.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-CEad1veU.js → PlayerAccountClosureNd-LZ83f2yz.js} +127 -128
- package/components/{PlayerAccountClosureNd-DAFiYifr.js → PlayerAccountClosureNd-UXSMJQcx.js} +127 -128
- package/components/{PlayerAccountControllerNd-5BH6GjlH.js → PlayerAccountControllerNd-9wsIJ-js.js} +1714 -1141
- package/components/PlayerAccountControllerNd-D0INricU.cjs +1 -0
- package/components/{PlayerAccountControllerNd-BmAwgSdK.js → PlayerAccountControllerNd-DWv_sKx6.js} +1640 -1067
- package/components/{PlayerAccountGamingLimits-9Stjo0gs.js → PlayerAccountGamingLimits-B9-kZCVp.js} +291 -240
- package/components/PlayerAccountGamingLimits-D46zagPJ.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-DI0RPgPB.js → PlayerAccountGamingLimits-qwcdGv5k.js} +291 -240
- package/components/PlayerAccountGamingLimitsConfirmationModal-BVtO8XYY.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BzAWyxny.js → PlayerAccountGamingLimitsConfirmationModal-DsbEiYMl.js} +127 -131
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DKpr25Aj.js → PlayerAccountGamingLimitsConfirmationModal-knZnUTFD.js} +127 -131
- package/components/{PlayerAccountGamingLimitsGroupEdit-Dj2jUWb2.js → PlayerAccountGamingLimitsGroupEdit-5NUu_zZc.js} +1467 -1524
- package/components/{PlayerAccountGamingLimitsGroupEdit-CBViR9JR.js → PlayerAccountGamingLimitsGroupEdit-B8GXBPFa.js} +1467 -1524
- package/components/PlayerAccountGamingLimitsGroupEdit-DNh-dSyB.cjs +10 -0
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BQy_79YQ.js → PlayerAccountGamingLimitsHistory2Nd-CK8Ge8bB.js} +224 -231
- package/components/{PlayerAccountGamingLimitsHistory2Nd-2hdjxCBn.cjs → PlayerAccountGamingLimitsHistory2Nd-CTdhbVen.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BQRXsnS9.js → PlayerAccountGamingLimitsHistory2Nd-DAeqMwXC.js} +220 -227
- package/components/PlayerAccountGamingLimitsInfoCard-BP3ieYB-.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-CDFRfVT4.js → PlayerAccountGamingLimitsInfoCard-CVwEtiRl.js} +649 -594
- package/components/{PlayerAccountGamingLimitsInfoCard-StfGgmLs.js → PlayerAccountGamingLimitsInfoCard-U0DesVX6.js} +649 -594
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Dz-xK27Q.js → PlayerAccountGamingLimitsPage2Gm16Nd-Bw4LELoM.js} +880 -843
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-D5MICFh6.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B672X-1A.js → PlayerAccountGamingLimitsPage2Gm16Nd-DgQc2QVS.js} +1064 -1027
- package/components/{PlayerAccountGamingLimitsPopup-DoLZB2lj.js → PlayerAccountGamingLimitsPopup-CoF07jnu.js} +114 -118
- package/components/{PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs → PlayerAccountGamingLimitsPopup-DyBIvm50.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-f9QP34fL.js → PlayerAccountGamingLimitsPopup-K79LGbuJ.js} +114 -118
- package/components/PlayerAccountGamingLimitsWrapper2Nd-BW4iVYMB.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-BdjEhTA4.js +1016 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-ufU6zWS8.js +1022 -0
- package/components/PlayerAccountGeneralConfirmationModal-B4jIx1BX.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BlglDNwU.js → PlayerAccountGeneralConfirmationModal-C2tJxm9K.js} +144 -145
- package/components/{PlayerAccountGeneralConfirmationModal-rpOFir4P.js → PlayerAccountGeneralConfirmationModal-G69m_xaE.js} +144 -145
- package/components/PlayerAccountMenuNd-BL9F1XLJ.cjs +1 -0
- package/components/PlayerAccountMenuNd-Bhoxd17Y.js +716 -0
- package/components/PlayerAccountMenuNd-BolTLeYK.js +717 -0
- package/components/PlayerAccountModal-COJeLuDu.cjs +1 -0
- package/components/PlayerAccountModal-D7KHd2U7.js +209 -0
- package/components/PlayerAccountModal-Xa2YQAW6.js +209 -0
- package/components/PlayerAccountNotifications-CN9pIy3r.js +370 -0
- package/components/PlayerAccountNotifications-D64RWyxv.js +371 -0
- package/components/PlayerAccountNotifications-DAWwzmCU.cjs +1 -0
- package/components/PlayerAccountSelfExclusionNd-BE6FLnkt.cjs +3555 -0
- package/components/{PlayerAccountSelfExclusionNd-CM37K9pN.js → PlayerAccountSelfExclusionNd-Djz06Ekm.js} +10631 -10864
- package/components/{PlayerAccountSelfExclusionNd-D2JmyzgE.js → PlayerAccountSelfExclusionNd-ig2ia3IY.js} +10743 -10931
- package/components/PlayerAccountTimeout-BeIP73DT.cjs +1 -0
- package/components/{PlayerAccountTimeout-B0zaqo1v.js → PlayerAccountTimeout-DdAujgR0.js} +499 -368
- package/components/{PlayerAccountTimeout-BO3G2t3W.js → PlayerAccountTimeout-y8LG_lWP.js} +499 -368
- package/components/PlayerActiveBonuses-DFEww75_.js +1077 -0
- package/components/PlayerActiveBonuses-DZpjmd5_.cjs +1 -0
- package/components/PlayerActiveBonuses-dJSywFxG.js +1078 -0
- package/components/{PlayerBonusCard-BC8FfHZz.cjs → PlayerBonusCard-BLy1uhLi.cjs} +1 -1
- package/components/{PlayerBonusCard-9LZmOSI1.js → PlayerBonusCard-CFDVa6DC.js} +129 -131
- package/components/{PlayerBonusCard-BvrlU7Ao.js → PlayerBonusCard-soky_TFz.js} +129 -131
- package/components/PlayerBonusHistory--BlJA1se.js +937 -0
- package/components/PlayerBonusHistory-22zrtSy8.js +938 -0
- package/components/PlayerBonusHistory-DZPMcFck.cjs +1 -0
- package/components/{PlayerChangePassword-CzR4Xz0H.cjs → PlayerChangePassword-UepIdqvw.cjs} +2 -2
- package/components/{PlayerChangePassword-BcoctDrY.js → PlayerChangePassword-djQtDeHb.js} +387 -389
- package/components/{PlayerChangePassword-BsQyz4Qc.js → PlayerChangePassword-hrfxOW0b.js} +387 -389
- package/components/{PlayerDeposit-B_7saxic.js → PlayerDeposit-BaC6d2og.js} +129 -152
- package/components/{PlayerDeposit-BIBRCGiC.js → PlayerDeposit-CpzXx-Jg.js} +129 -152
- package/components/PlayerDeposit-Dcjjga2V.cjs +1 -0
- package/components/PlayerGamingHistory-Ccw_gZ0A.cjs +1 -0
- package/components/{PlayerGamingHistory-B1Q3Qiuk.js → PlayerGamingHistory-Vqvs5YTt.js} +339 -343
- package/components/{PlayerGamingHistory-DUCP4vWS.js → PlayerGamingHistory-tfAS2Z8a.js} +362 -366
- package/components/{PlayerPendingWithdrawals-C8jyjgZ0.js → PlayerPendingWithdrawals-C10oNkk6.js} +119 -120
- package/components/PlayerPendingWithdrawals-CvxjxkOD.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-wMhZTLpq.js → PlayerPendingWithdrawals-D5M1bMLH.js} +119 -120
- package/components/PlayerProfileInfo-AlvN_pUL.cjs +1 -0
- package/components/PlayerProfileInfo-B8-CMN4r.js +1823 -0
- package/components/PlayerProfileInfo-BvJQ2_J5.js +1806 -0
- package/components/PlayerRealityCheck-BRhT1UhN.js +652 -0
- package/components/PlayerRealityCheck-DPvdP9-_.js +668 -0
- package/components/PlayerRealityCheck-DSYoUIrf.cjs +1 -0
- package/components/PlayerTransactionHistory-BldqkQc5.js +314 -0
- package/components/PlayerTransactionHistory-Cvm1EwgV.cjs +1 -0
- package/components/PlayerTransactionHistory-JT3TZ8Mb.js +314 -0
- package/components/{PlayerWithdrawal-jGmMHcUX.js → PlayerWithdrawal-CHHAj5SG.js} +137 -141
- package/components/PlayerWithdrawal-D9w69Llz.cjs +1 -0
- package/components/{PlayerWithdrawal-wi9yuRxw.js → PlayerWithdrawal-DI-38Q1t.js} +137 -141
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +1 -0
- package/stencil/app-globals-0f993ce5-DzSE6TtH.js +13 -0
- package/stencil/checkbox-group-input_9-DMrH9pTx.cjs +2045 -0
- package/stencil/{checkbox-group-input_9-DZvX2H_r.js → checkbox-group-input_9-DtZ9kvK4.js} +3129 -2212
- package/stencil/{checkbox-group-input_9-Cny9rOs9.js → checkbox-group-input_9-DvXvp-ML.js} +3231 -2300
- package/stencil/{general-input-igTYIJ6W.cjs → general-input-CFqrfrup.cjs} +1 -1
- package/stencil/{general-input-Yj_LRx0v.js → general-input-eCxMClmW.js} +1 -1
- package/stencil/{general-input-d5RULL12.js → general-input-rL_ftR3H.js} +1 -1
- package/stencil/index-1ef3a64c-BnB-ATuA.js +556 -0
- package/stencil/index-1ef3a64c-BvKbNMH8.cjs +1 -0
- package/stencil/index-1ef3a64c-Nsr9PDe6.js +572 -0
- package/stencil/index-7c5e707a-CTC8RpEi.js +643 -0
- package/stencil/index-7c5e707a-CWE0q0mP.js +616 -0
- package/stencil/index-7c5e707a-D1Fv8nel.cjs +1 -0
- package/stencil/index-9c0f6c58-C1yzTenw.js +576 -0
- package/stencil/index-9c0f6c58-CqoLeK5G.js +549 -0
- package/stencil/index-9c0f6c58-DEsDY2nb.cjs +1 -0
- package/stencil/index-9cd44522-BqLgI-Ho.js +626 -0
- package/stencil/index-9cd44522-Cygpa4pV.js +610 -0
- package/stencil/index-9cd44522-DwMekoGN.cjs +1 -0
- package/stencil/index-ae04a8b1-D4wvtXTw.cjs +1 -0
- package/stencil/index-ae04a8b1-fpBaOn88.js +516 -0
- package/stencil/index-ae04a8b1-ixlRj3zC.js +532 -0
- package/stencil/password-input_2-9_yxZI2g.js +589 -0
- package/stencil/password-input_2-BabcxKun.cjs +105 -0
- package/stencil/password-input_2-D-YA_Jkx.js +589 -0
- package/stencil/{player-change-password-gm2-780eb445-Cg8Z75Vz.js → player-change-password-gm2-039e300e-CcWiaT26.js} +85 -66
- package/stencil/player-change-password-gm2-039e300e-DiYWgS70.cjs +1 -0
- package/stencil/{player-change-password-gm2-780eb445-DEjz9Jjk.js → player-change-password-gm2-039e300e-Zp9TDX77.js} +85 -66
- package/stencil/player-change-password-gm2-BWjI2Hs0.js +25 -0
- package/stencil/player-change-password-gm2-BaYafift.js +7 -0
- package/stencil/player-change-password-gm2-DsT1aXcX.cjs +1 -0
- package/stencil/player-kyc-verification-B8arDCja.js +863 -0
- package/stencil/player-kyc-verification-Di40xn9z.js +885 -0
- package/stencil/player-kyc-verification-GFBDUbhm.cjs +180 -0
- package/stencil/{toggle-checkbox-input-Co64_7cm.js → toggle-checkbox-input-BxUGWw2X.js} +12 -4
- package/stencil/toggle-checkbox-input-D-Cv1QSS.cjs +1 -0
- package/stencil/{toggle-checkbox-input-ErX2Ngat.js → toggle-checkbox-input-PSoH9KF2.js} +12 -4
- package/stencil/ui-skeleton-BC4mw1ae.cjs +1 -0
- package/stencil/ui-skeleton-DT0OMDC6.js +11 -0
- package/stencil/ui-skeleton-T4HYbNcC.js +29 -0
- package/stencil/ui-skeleton-a642cced-B8H73O_q.cjs +1 -0
- package/stencil/ui-skeleton-a642cced-Ba-weZ4g.js +122 -0
- package/stencil/ui-skeleton-a642cced-DhjmNsN7.js +122 -0
- package/stencil/user-deposit-withdrawal-BQKFgZ31.cjs +59 -0
- package/stencil/user-deposit-withdrawal-DRe5oBqv.js +684 -0
- package/stencil/user-deposit-withdrawal-Dj3Po03r.js +706 -0
- package/stencil/user-transaction-history-6-z3byrF.js +374 -0
- package/stencil/user-transaction-history-Dca7qx08.js +350 -0
- package/stencil/user-transaction-history-DrhquxkJ.cjs +1 -0
- package/stencil/vaadin-button-mixin-e8c3f355-BdntioNA.cjs +2391 -0
- package/stencil/{vaadin-button-6001b2a6-CZwj1qjO.js → vaadin-button-mixin-e8c3f355-DON-rAuy.js} +5108 -5747
- package/stencil/{vaadin-button-6001b2a6-Dqz5Vp8D.js → vaadin-button-mixin-e8c3f355-DQ5UgwNf.js} +8267 -8803
- package/components/GeneralLogout-BW6b3iuS.cjs +0 -8
- package/components/PlayerAccountBettingHistory-BsFzBNDY.cjs +0 -1
- package/components/PlayerAccountBettingHistory-C9n4Lfo3.js +0 -332
- package/components/PlayerAccountBettingHistory-QT3-2u7E.js +0 -333
- package/components/PlayerAccountControllerNd-CO0ce0zs.cjs +0 -1
- package/components/PlayerAccountGamingLimits-BPQrptbd.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs +0 -10
- package/components/PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DSThp4HX.cjs +0 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Bz6Zp5tp.js +0 -865
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Cq5vxtjw.js +0 -871
- package/components/PlayerAccountGamingLimitsWrapper2Nd-KUpEDIP8.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs +0 -1
- package/components/PlayerAccountMenuNd-BWUhUlIY.js +0 -590
- package/components/PlayerAccountMenuNd-BmPerb2f.cjs +0 -1
- package/components/PlayerAccountMenuNd-CxMlvYwa.js +0 -589
- package/components/PlayerAccountModal-BK81ZotM.js +0 -213
- package/components/PlayerAccountModal-C7aZZlBw.cjs +0 -1
- package/components/PlayerAccountModal-CzVRNZzB.js +0 -213
- package/components/PlayerAccountNotifications-BBwUcB1T.js +0 -261
- package/components/PlayerAccountNotifications-CB47Zxq9.js +0 -261
- package/components/PlayerAccountNotifications-DkgHtUGj.cjs +0 -1
- package/components/PlayerAccountSelfExclusionNd-DCsOgBZR.cjs +0 -4171
- package/components/PlayerAccountTimeout-Dg5Mlz5K.cjs +0 -1
- package/components/PlayerActiveBonuses-B9jz3QD8.cjs +0 -1
- package/components/PlayerActiveBonuses-CfZ8tegY.js +0 -1037
- package/components/PlayerActiveBonuses-DkKDWhBN.js +0 -1038
- package/components/PlayerBonusHistory-Bsy2Grk6.js +0 -919
- package/components/PlayerBonusHistory-CuSbmVev.cjs +0 -1
- package/components/PlayerBonusHistory-nN8l2tOZ.js +0 -920
- package/components/PlayerDeposit-D_78W5GC.cjs +0 -1
- package/components/PlayerGamingHistory-CNPhCSFS.cjs +0 -1
- package/components/PlayerPendingWithdrawals-BG3I8ifu.cjs +0 -1
- package/components/PlayerProfileInfo-CGsJydqv.cjs +0 -1
- package/components/PlayerProfileInfo-EkbwdTEh.js +0 -1757
- package/components/PlayerProfileInfo-SeOQq0CG.js +0 -1740
- package/components/PlayerRealityCheck--iYjw4rP.js +0 -598
- package/components/PlayerRealityCheck-BGGIPihT.js +0 -582
- package/components/PlayerRealityCheck-C26ZBWae.cjs +0 -1
- package/components/PlayerTransactionHistory-CJqhYnbs.cjs +0 -1
- package/components/PlayerTransactionHistory-CvBbrQn6.js +0 -315
- package/components/PlayerTransactionHistory-DIfTIxF3.js +0 -315
- package/components/PlayerWithdrawal-GDc_7hZX.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/checkbox-group-input_9-FLO2Qa5Y.cjs +0 -2104
- package/stencil/index-72d2f0c7--qtpsDOz.js +0 -642
- package/stencil/index-72d2f0c7-DldCMjBJ.cjs +0 -1
- package/stencil/index-72d2f0c7-DyMEJXra.js +0 -626
- package/stencil/index-Dyvby5gX.cjs +0 -1
- package/stencil/index-l0sNRNKZ.js +0 -1
- package/stencil/password-input_2-CHOu4hgw.js +0 -1420
- package/stencil/password-input_2-DQAgV1SZ.cjs +0 -896
- package/stencil/password-input_2-DaiHlKbQ.js +0 -1420
- package/stencil/player-change-password-gm2-780eb445-CdItmoKI.cjs +0 -1
- package/stencil/player-change-password-gm2-ClBiis4q.js +0 -25
- package/stencil/player-change-password-gm2-Dt0gP_G_.cjs +0 -1
- package/stencil/player-change-password-gm2-cKh7RACV.js +0 -7
- package/stencil/toggle-checkbox-input-a_0w-Y0n.cjs +0 -1
- package/stencil/vaadin-button-6001b2a6-C6xw53k5.cjs +0 -3018
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
const
|
|
1
|
+
import { r as w, h as i } from "./index-9cd44522-BqLgI-Ho.js";
|
|
2
|
+
const p = "en", h = {
|
|
3
3
|
en: {
|
|
4
4
|
title: "Change Password",
|
|
5
5
|
btnSubmit: "Change Password",
|
|
@@ -112,61 +112,74 @@ const h = "en", c = {
|
|
|
112
112
|
"gm.pms.password_not_verified_unauthorized": "A megadott jelenlegi jelszó helytelen",
|
|
113
113
|
"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."
|
|
114
114
|
}
|
|
115
|
-
},
|
|
116
|
-
fetch(
|
|
117
|
-
Object.keys(
|
|
118
|
-
for (let r in
|
|
119
|
-
|
|
120
|
-
}),
|
|
115
|
+
}, g = (e) => new Promise((s) => {
|
|
116
|
+
fetch(e).then((a) => a.json()).then((a) => {
|
|
117
|
+
Object.keys(a).forEach((t) => {
|
|
118
|
+
for (let r in a[t])
|
|
119
|
+
h[t][r] = a[t][r];
|
|
120
|
+
}), s(!0);
|
|
121
121
|
});
|
|
122
|
-
}), o = (s, a
|
|
123
|
-
const t =
|
|
124
|
-
let r =
|
|
125
|
-
if (
|
|
126
|
-
for (const [l, n] of Object.entries(
|
|
127
|
-
const
|
|
128
|
-
r = r.replace(
|
|
122
|
+
}), o = (e, s, a) => {
|
|
123
|
+
const t = s;
|
|
124
|
+
let r = h[t !== void 0 ? t : p][e];
|
|
125
|
+
if (a !== void 0)
|
|
126
|
+
for (const [l, n] of Object.entries(a.values)) {
|
|
127
|
+
const m = new RegExp(`{${l}}`, "g");
|
|
128
|
+
r = r.replace(m, n);
|
|
129
129
|
}
|
|
130
130
|
return r;
|
|
131
131
|
};
|
|
132
132
|
function d() {
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
133
|
+
const e = navigator.userAgent.toLowerCase(), s = screen.availWidth, a = screen.availHeight;
|
|
134
|
+
if (e.includes("iphone"))
|
|
135
135
|
return "mobile";
|
|
136
|
-
if (
|
|
137
|
-
if (
|
|
136
|
+
if (e.includes("android")) {
|
|
137
|
+
if (a > s && s < 800)
|
|
138
138
|
return "mobile";
|
|
139
|
-
if (
|
|
139
|
+
if (s > a && a < 800)
|
|
140
140
|
return "tablet";
|
|
141
141
|
}
|
|
142
142
|
return "desktop";
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
144
|
+
function c(e, s) {
|
|
145
|
+
if (e) {
|
|
146
|
+
const a = document.createElement("style");
|
|
147
|
+
a.innerHTML = s, e.appendChild(a);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function u(e, s) {
|
|
151
|
+
const a = new URL(s);
|
|
152
|
+
fetch(a.href).then((t) => t.text()).then((t) => {
|
|
153
|
+
const r = document.createElement("style");
|
|
154
|
+
r.innerHTML = t, e && e.appendChild(r);
|
|
155
|
+
}).catch((t) => {
|
|
156
|
+
console.error("There was an error while trying to load client styling from URL", t);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function f(e, s, a) {
|
|
160
|
+
if (window.emMessageBus) {
|
|
161
|
+
const t = document.createElement("style");
|
|
162
|
+
window.emMessageBus.subscribe(s, (r) => {
|
|
163
|
+
t.innerHTML = r, e && e.appendChild(t);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
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, #D0046C);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerChangePassword .TitleMobile{font-size:var(--emw--font-size-x-large, 20px);color:var(--emw--color-primary, #D0046C)}.PlayerChangePassword svg{fill:var(--emw--color-primary, #D0046C)}.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, #D0046C));border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #D0046C));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, b = class {
|
|
168
|
+
constructor(e) {
|
|
169
|
+
w(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 = () => {
|
|
157
170
|
this.policy && (this.newPasswordValidationSchema.custom = this.policy.customValidationRules, this.newPasswordValidationSchema.maxLength = this.policy.maximumPasswordLength, this.newPasswordValidationSchema.minLength = this.policy.minimumPasswordLength);
|
|
158
|
-
}, this.setErrorMsg = (
|
|
159
|
-
switch (
|
|
171
|
+
}, this.setErrorMsg = (s) => {
|
|
172
|
+
switch (s) {
|
|
160
173
|
case "gm.pms.password_policy_failed":
|
|
161
|
-
const
|
|
174
|
+
const a = {
|
|
162
175
|
forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
|
|
163
176
|
minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
|
|
164
177
|
hours: this.policy.minimumPasswordAgeLimitHours > 1 ? "hours" : "hour"
|
|
165
178
|
};
|
|
166
|
-
this.errorMsg = o(
|
|
179
|
+
this.errorMsg = o(s, this.language, { values: a });
|
|
167
180
|
break;
|
|
168
181
|
case "gm.pms.password_not_verified_unauthorized":
|
|
169
|
-
this.errorMsg = o(
|
|
182
|
+
this.errorMsg = o(s, this.language);
|
|
170
183
|
break;
|
|
171
184
|
default:
|
|
172
185
|
this.errorMsg = o("errorMsgGeneric", this.language);
|
|
@@ -174,16 +187,16 @@ const p = ":host{display:block}.PlayerChangePassword{font-family:inherit;width:1
|
|
|
174
187
|
}, this.toggleScreen = () => {
|
|
175
188
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.isMobile }, window.location.href);
|
|
176
189
|
}, this.getPolicy = () => {
|
|
177
|
-
const
|
|
178
|
-
|
|
190
|
+
const s = new URL("/api/v1/players/password-management/password", this.endpoint), a = new Headers();
|
|
191
|
+
a.append("Accept", "text/plain");
|
|
179
192
|
const t = {
|
|
180
193
|
method: "GET",
|
|
181
|
-
headers:
|
|
194
|
+
headers: a
|
|
182
195
|
};
|
|
183
|
-
fetch(
|
|
184
|
-
}, this.submitNewPassword = (
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
196
|
+
fetch(s.href, t).then((r) => r.status === 200 && r.json()).then((r) => this.policy = r).catch((r) => console.error(r));
|
|
197
|
+
}, this.submitNewPassword = (s) => {
|
|
198
|
+
if (s.preventDefault(), this.isBtnSubmitEnabled) {
|
|
199
|
+
const a = new URL("/api/v1/players/password-management/password", this.endpoint), t = new Headers();
|
|
187
200
|
t.append("accept", "text/plain"), t.append("Content-Type", "application/json-patch+json");
|
|
188
201
|
const r = JSON.stringify({
|
|
189
202
|
token: this.forgotMode === "true" ? this.token : this.session,
|
|
@@ -194,60 +207,66 @@ const p = ":host{display:block}.PlayerChangePassword{font-family:inherit;width:1
|
|
|
194
207
|
headers: t,
|
|
195
208
|
body: r
|
|
196
209
|
};
|
|
197
|
-
fetch(
|
|
210
|
+
fetch(a.href, l).then((n) => n.json()).then((n) => {
|
|
198
211
|
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));
|
|
199
212
|
}).catch((n) => console.error(n));
|
|
200
213
|
}
|
|
201
|
-
}, this.language = "en", this.endpoint = "", this.session = "", this.token = "", this.forgotMode = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isBtnSubmitEnabled = !1, this.isMobile = d() === "mobile" || d() === "tablet";
|
|
214
|
+
}, 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";
|
|
202
215
|
}
|
|
203
|
-
|
|
204
|
-
|
|
216
|
+
handleClientStylingChange(e, s) {
|
|
217
|
+
e != s && c(this.stylingContainer, this.clientStyling);
|
|
205
218
|
}
|
|
206
|
-
|
|
207
|
-
|
|
219
|
+
handleClientStylingUrlChange(e, s) {
|
|
220
|
+
e != s && this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl);
|
|
221
|
+
}
|
|
222
|
+
sendValidityStateHandler(e) {
|
|
223
|
+
switch (this.isBtnSubmitEnabled = !1, e.detail.name) {
|
|
208
224
|
case "password":
|
|
209
|
-
this.isCurrentPasswordValid =
|
|
225
|
+
this.isCurrentPasswordValid = e.detail.valid;
|
|
210
226
|
break;
|
|
211
227
|
case "newPassword":
|
|
212
|
-
this.isNewPasswordValid =
|
|
228
|
+
this.isNewPasswordValid = e.detail.valid;
|
|
213
229
|
break;
|
|
214
230
|
case "newPasswordDuplicate":
|
|
215
|
-
this.isConfirmPasswordValid =
|
|
231
|
+
this.isConfirmPasswordValid = e.detail.valid;
|
|
216
232
|
break;
|
|
217
233
|
}
|
|
218
234
|
(this.forgotMode === "true" || this.isCurrentPasswordValid) && this.isNewPasswordValid && this.isConfirmPasswordValid && (this.isBtnSubmitEnabled = !0);
|
|
219
235
|
}
|
|
220
|
-
sendInputValueHandler(
|
|
221
|
-
switch (
|
|
236
|
+
sendInputValueHandler(e) {
|
|
237
|
+
switch (e.detail.name) {
|
|
222
238
|
case "password":
|
|
223
|
-
this.currentPasswordValue =
|
|
239
|
+
this.currentPasswordValue = e.detail.value;
|
|
224
240
|
break;
|
|
225
241
|
case "newPassword":
|
|
226
|
-
this.newPasswordValue =
|
|
242
|
+
this.newPasswordValue = e.detail.value;
|
|
227
243
|
break;
|
|
228
244
|
case "newPasswordDuplicate":
|
|
229
|
-
this.confirmPasswordValue =
|
|
245
|
+
this.confirmPasswordValue = e.detail.value;
|
|
230
246
|
break;
|
|
231
247
|
}
|
|
232
248
|
}
|
|
233
249
|
componentWillLoad() {
|
|
234
250
|
if (this.getPolicy(), this.initValidationSchemas(), this.translationUrl)
|
|
235
|
-
return
|
|
251
|
+
return g(this.translationUrl);
|
|
236
252
|
}
|
|
237
253
|
componentDidLoad() {
|
|
238
|
-
this.clientStyling && this.
|
|
254
|
+
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)));
|
|
255
|
+
}
|
|
256
|
+
disconnectedCallback() {
|
|
257
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
239
258
|
}
|
|
240
259
|
render() {
|
|
241
|
-
return i("div", { key: "
|
|
260
|
+
return i("div", { key: "9a8f54fe541ef6409f7cc21bb8431c850d031830", class: "PlayerChangePassword", ref: (e) => this.stylingContainer = e }, i("form", { key: "8a3aaa6a96b16a26477657f0216a7a0a2e2e0869", class: "Form" }, this.isMobile ? i("div", { class: "ButtonReturn", onClick: this.toggleScreen }, i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, i("g", { transform: "translate(-20 -158)" }, i("g", { transform: "translate(20 158)" }, i("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), i("h2", { class: "TitleMobile" }, o("title", this.language))) : i("h2", { class: "Title" }, o("title", this.language)), i("section", { key: "47a7214266e06ef9f8ded9f86f76e15ce4f6fc3a", class: "FieldsSection" }, this.forgotMode === "false" && i("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("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("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("section", { key: "a0cd6777b46ac8e4ba5eef6c42f77531a9c7ee0b", class: "ButtonsSection" }, i("button", { key: "d21c481e07a7c7762bf0fa7acbb4f1d68ac92d4d", class: "Button", disabled: !this.isBtnSubmitEnabled, onClick: this.submitNewPassword }, o("btnSubmit", this.language)))));
|
|
242
261
|
}
|
|
243
262
|
static get watchers() {
|
|
244
263
|
return {
|
|
245
|
-
clientStyling: ["
|
|
246
|
-
clientStylingUrl: ["
|
|
264
|
+
clientStyling: ["handleClientStylingChange", "handleClientStylingChange"],
|
|
265
|
+
clientStylingUrl: ["handleClientStylingUrlChange"]
|
|
247
266
|
};
|
|
248
267
|
}
|
|
249
268
|
};
|
|
250
|
-
|
|
269
|
+
b.style = y;
|
|
251
270
|
export {
|
|
252
|
-
|
|
271
|
+
b as P
|
|
253
272
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./index-9cd44522-DwMekoGN.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, #D0046C);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerChangePassword .TitleMobile{font-size:var(--emw--font-size-x-large, 20px);color:var(--emw--color-primary, #D0046C)}.PlayerChangePassword svg{fill:var(--emw--color-primary, #D0046C)}.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, #D0046C));border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #D0046C));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,5 +1,5 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
const
|
|
1
|
+
import { r as w, h as i } from "./index-9cd44522-Cygpa4pV.js";
|
|
2
|
+
const p = "en", h = {
|
|
3
3
|
en: {
|
|
4
4
|
title: "Change Password",
|
|
5
5
|
btnSubmit: "Change Password",
|
|
@@ -112,61 +112,74 @@ const h = "en", c = {
|
|
|
112
112
|
"gm.pms.password_not_verified_unauthorized": "A megadott jelenlegi jelszó helytelen",
|
|
113
113
|
"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."
|
|
114
114
|
}
|
|
115
|
-
},
|
|
116
|
-
fetch(
|
|
117
|
-
Object.keys(
|
|
118
|
-
for (let r in
|
|
119
|
-
|
|
120
|
-
}),
|
|
115
|
+
}, g = (e) => new Promise((s) => {
|
|
116
|
+
fetch(e).then((a) => a.json()).then((a) => {
|
|
117
|
+
Object.keys(a).forEach((t) => {
|
|
118
|
+
for (let r in a[t])
|
|
119
|
+
h[t][r] = a[t][r];
|
|
120
|
+
}), s(!0);
|
|
121
121
|
});
|
|
122
|
-
}), o = (s, a
|
|
123
|
-
const t =
|
|
124
|
-
let r =
|
|
125
|
-
if (
|
|
126
|
-
for (const [l, n] of Object.entries(
|
|
127
|
-
const
|
|
128
|
-
r = r.replace(
|
|
122
|
+
}), o = (e, s, a) => {
|
|
123
|
+
const t = s;
|
|
124
|
+
let r = h[t !== void 0 ? t : p][e];
|
|
125
|
+
if (a !== void 0)
|
|
126
|
+
for (const [l, n] of Object.entries(a.values)) {
|
|
127
|
+
const m = new RegExp(`{${l}}`, "g");
|
|
128
|
+
r = r.replace(m, n);
|
|
129
129
|
}
|
|
130
130
|
return r;
|
|
131
131
|
};
|
|
132
132
|
function d() {
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
133
|
+
const e = navigator.userAgent.toLowerCase(), s = screen.availWidth, a = screen.availHeight;
|
|
134
|
+
if (e.includes("iphone"))
|
|
135
135
|
return "mobile";
|
|
136
|
-
if (
|
|
137
|
-
if (
|
|
136
|
+
if (e.includes("android")) {
|
|
137
|
+
if (a > s && s < 800)
|
|
138
138
|
return "mobile";
|
|
139
|
-
if (
|
|
139
|
+
if (s > a && a < 800)
|
|
140
140
|
return "tablet";
|
|
141
141
|
}
|
|
142
142
|
return "desktop";
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
144
|
+
function c(e, s) {
|
|
145
|
+
if (e) {
|
|
146
|
+
const a = document.createElement("style");
|
|
147
|
+
a.innerHTML = s, e.appendChild(a);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function u(e, s) {
|
|
151
|
+
const a = new URL(s);
|
|
152
|
+
fetch(a.href).then((t) => t.text()).then((t) => {
|
|
153
|
+
const r = document.createElement("style");
|
|
154
|
+
r.innerHTML = t, e && e.appendChild(r);
|
|
155
|
+
}).catch((t) => {
|
|
156
|
+
console.error("There was an error while trying to load client styling from URL", t);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function f(e, s, a) {
|
|
160
|
+
if (window.emMessageBus) {
|
|
161
|
+
const t = document.createElement("style");
|
|
162
|
+
window.emMessageBus.subscribe(s, (r) => {
|
|
163
|
+
t.innerHTML = r, e && e.appendChild(t);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
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, #D0046C);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerChangePassword .TitleMobile{font-size:var(--emw--font-size-x-large, 20px);color:var(--emw--color-primary, #D0046C)}.PlayerChangePassword svg{fill:var(--emw--color-primary, #D0046C)}.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, #D0046C));border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #D0046C));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, b = class {
|
|
168
|
+
constructor(e) {
|
|
169
|
+
w(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 = () => {
|
|
157
170
|
this.policy && (this.newPasswordValidationSchema.custom = this.policy.customValidationRules, this.newPasswordValidationSchema.maxLength = this.policy.maximumPasswordLength, this.newPasswordValidationSchema.minLength = this.policy.minimumPasswordLength);
|
|
158
|
-
}, this.setErrorMsg = (
|
|
159
|
-
switch (
|
|
171
|
+
}, this.setErrorMsg = (s) => {
|
|
172
|
+
switch (s) {
|
|
160
173
|
case "gm.pms.password_policy_failed":
|
|
161
|
-
const
|
|
174
|
+
const a = {
|
|
162
175
|
forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
|
|
163
176
|
minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
|
|
164
177
|
hours: this.policy.minimumPasswordAgeLimitHours > 1 ? "hours" : "hour"
|
|
165
178
|
};
|
|
166
|
-
this.errorMsg = o(
|
|
179
|
+
this.errorMsg = o(s, this.language, { values: a });
|
|
167
180
|
break;
|
|
168
181
|
case "gm.pms.password_not_verified_unauthorized":
|
|
169
|
-
this.errorMsg = o(
|
|
182
|
+
this.errorMsg = o(s, this.language);
|
|
170
183
|
break;
|
|
171
184
|
default:
|
|
172
185
|
this.errorMsg = o("errorMsgGeneric", this.language);
|
|
@@ -174,16 +187,16 @@ const p = ":host{display:block}.PlayerChangePassword{font-family:inherit;width:1
|
|
|
174
187
|
}, this.toggleScreen = () => {
|
|
175
188
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.isMobile }, window.location.href);
|
|
176
189
|
}, this.getPolicy = () => {
|
|
177
|
-
const
|
|
178
|
-
|
|
190
|
+
const s = new URL("/api/v1/players/password-management/password", this.endpoint), a = new Headers();
|
|
191
|
+
a.append("Accept", "text/plain");
|
|
179
192
|
const t = {
|
|
180
193
|
method: "GET",
|
|
181
|
-
headers:
|
|
194
|
+
headers: a
|
|
182
195
|
};
|
|
183
|
-
fetch(
|
|
184
|
-
}, this.submitNewPassword = (
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
196
|
+
fetch(s.href, t).then((r) => r.status === 200 && r.json()).then((r) => this.policy = r).catch((r) => console.error(r));
|
|
197
|
+
}, this.submitNewPassword = (s) => {
|
|
198
|
+
if (s.preventDefault(), this.isBtnSubmitEnabled) {
|
|
199
|
+
const a = new URL("/api/v1/players/password-management/password", this.endpoint), t = new Headers();
|
|
187
200
|
t.append("accept", "text/plain"), t.append("Content-Type", "application/json-patch+json");
|
|
188
201
|
const r = JSON.stringify({
|
|
189
202
|
token: this.forgotMode === "true" ? this.token : this.session,
|
|
@@ -194,60 +207,66 @@ const p = ":host{display:block}.PlayerChangePassword{font-family:inherit;width:1
|
|
|
194
207
|
headers: t,
|
|
195
208
|
body: r
|
|
196
209
|
};
|
|
197
|
-
fetch(
|
|
210
|
+
fetch(a.href, l).then((n) => n.json()).then((n) => {
|
|
198
211
|
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));
|
|
199
212
|
}).catch((n) => console.error(n));
|
|
200
213
|
}
|
|
201
|
-
}, this.language = "en", this.endpoint = "", this.session = "", this.token = "", this.forgotMode = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isBtnSubmitEnabled = !1, this.isMobile = d() === "mobile" || d() === "tablet";
|
|
214
|
+
}, 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";
|
|
202
215
|
}
|
|
203
|
-
|
|
204
|
-
|
|
216
|
+
handleClientStylingChange(e, s) {
|
|
217
|
+
e != s && c(this.stylingContainer, this.clientStyling);
|
|
205
218
|
}
|
|
206
|
-
|
|
207
|
-
|
|
219
|
+
handleClientStylingUrlChange(e, s) {
|
|
220
|
+
e != s && this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl);
|
|
221
|
+
}
|
|
222
|
+
sendValidityStateHandler(e) {
|
|
223
|
+
switch (this.isBtnSubmitEnabled = !1, e.detail.name) {
|
|
208
224
|
case "password":
|
|
209
|
-
this.isCurrentPasswordValid =
|
|
225
|
+
this.isCurrentPasswordValid = e.detail.valid;
|
|
210
226
|
break;
|
|
211
227
|
case "newPassword":
|
|
212
|
-
this.isNewPasswordValid =
|
|
228
|
+
this.isNewPasswordValid = e.detail.valid;
|
|
213
229
|
break;
|
|
214
230
|
case "newPasswordDuplicate":
|
|
215
|
-
this.isConfirmPasswordValid =
|
|
231
|
+
this.isConfirmPasswordValid = e.detail.valid;
|
|
216
232
|
break;
|
|
217
233
|
}
|
|
218
234
|
(this.forgotMode === "true" || this.isCurrentPasswordValid) && this.isNewPasswordValid && this.isConfirmPasswordValid && (this.isBtnSubmitEnabled = !0);
|
|
219
235
|
}
|
|
220
|
-
sendInputValueHandler(
|
|
221
|
-
switch (
|
|
236
|
+
sendInputValueHandler(e) {
|
|
237
|
+
switch (e.detail.name) {
|
|
222
238
|
case "password":
|
|
223
|
-
this.currentPasswordValue =
|
|
239
|
+
this.currentPasswordValue = e.detail.value;
|
|
224
240
|
break;
|
|
225
241
|
case "newPassword":
|
|
226
|
-
this.newPasswordValue =
|
|
242
|
+
this.newPasswordValue = e.detail.value;
|
|
227
243
|
break;
|
|
228
244
|
case "newPasswordDuplicate":
|
|
229
|
-
this.confirmPasswordValue =
|
|
245
|
+
this.confirmPasswordValue = e.detail.value;
|
|
230
246
|
break;
|
|
231
247
|
}
|
|
232
248
|
}
|
|
233
249
|
componentWillLoad() {
|
|
234
250
|
if (this.getPolicy(), this.initValidationSchemas(), this.translationUrl)
|
|
235
|
-
return
|
|
251
|
+
return g(this.translationUrl);
|
|
236
252
|
}
|
|
237
253
|
componentDidLoad() {
|
|
238
|
-
this.clientStyling && this.
|
|
254
|
+
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)));
|
|
255
|
+
}
|
|
256
|
+
disconnectedCallback() {
|
|
257
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
239
258
|
}
|
|
240
259
|
render() {
|
|
241
|
-
return i("div", { key: "
|
|
260
|
+
return i("div", { key: "9a8f54fe541ef6409f7cc21bb8431c850d031830", class: "PlayerChangePassword", ref: (e) => this.stylingContainer = e }, i("form", { key: "8a3aaa6a96b16a26477657f0216a7a0a2e2e0869", class: "Form" }, this.isMobile ? i("div", { class: "ButtonReturn", onClick: this.toggleScreen }, i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, i("g", { transform: "translate(-20 -158)" }, i("g", { transform: "translate(20 158)" }, i("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), i("h2", { class: "TitleMobile" }, o("title", this.language))) : i("h2", { class: "Title" }, o("title", this.language)), i("section", { key: "47a7214266e06ef9f8ded9f86f76e15ce4f6fc3a", class: "FieldsSection" }, this.forgotMode === "false" && i("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("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("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("section", { key: "a0cd6777b46ac8e4ba5eef6c42f77531a9c7ee0b", class: "ButtonsSection" }, i("button", { key: "d21c481e07a7c7762bf0fa7acbb4f1d68ac92d4d", class: "Button", disabled: !this.isBtnSubmitEnabled, onClick: this.submitNewPassword }, o("btnSubmit", this.language)))));
|
|
242
261
|
}
|
|
243
262
|
static get watchers() {
|
|
244
263
|
return {
|
|
245
|
-
clientStyling: ["
|
|
246
|
-
clientStylingUrl: ["
|
|
264
|
+
clientStyling: ["handleClientStylingChange", "handleClientStylingChange"],
|
|
265
|
+
clientStylingUrl: ["handleClientStylingUrlChange"]
|
|
247
266
|
};
|
|
248
267
|
}
|
|
249
268
|
};
|
|
250
|
-
|
|
269
|
+
b.style = y;
|
|
251
270
|
export {
|
|
252
|
-
|
|
271
|
+
b as P
|
|
253
272
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var u = (e, i, a) => new Promise((s, d) => {
|
|
2
|
+
var o = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
t(a.next(l));
|
|
5
|
+
} catch (n) {
|
|
6
|
+
d(n);
|
|
7
|
+
}
|
|
8
|
+
}, g = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
t(a.throw(l));
|
|
11
|
+
} catch (n) {
|
|
12
|
+
d(n);
|
|
13
|
+
}
|
|
14
|
+
}, t = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(o, g);
|
|
15
|
+
t((a = a.apply(e, i)).next());
|
|
16
|
+
});
|
|
17
|
+
import { b as p, p as c } from "./index-9cd44522-BqLgI-Ho.js";
|
|
18
|
+
import { g as m } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
19
|
+
var r = () => {
|
|
20
|
+
const e = import.meta.url, i = {};
|
|
21
|
+
return e !== "" && (i.resourcesUrl = new URL(".", e).href), c(i);
|
|
22
|
+
};
|
|
23
|
+
r().then((e) => u(void 0, null, function* () {
|
|
24
|
+
return yield m(), p([["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] }, [[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"]], { 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"] }]]]], e);
|
|
25
|
+
}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { b as i, p as a } from "./index-9cd44522-Cygpa4pV.js";
|
|
2
|
+
import { g as t } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
3
|
+
var n = () => {
|
|
4
|
+
const l = import.meta.url, e = {};
|
|
5
|
+
return l !== "" && (e.resourcesUrl = new URL(".", l).href), a(e);
|
|
6
|
+
};
|
|
7
|
+
n().then(async (l) => (await t(), i([["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] }, [[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"]], { 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)));
|