@everymatrix/player-account-controller 1.87.25 → 1.87.27
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-B5j_vW4P.js +300 -0
- package/components/GeneralLogout-CjFz6GhW.cjs +1 -0
- package/components/GeneralLogout-fKTKcCGJ.js +300 -0
- package/components/PlayerAccountBettingHistory-CIzi9adW.js +311 -0
- package/components/PlayerAccountBettingHistory-CPnTOt06.cjs +1 -0
- package/components/PlayerAccountBettingHistory-QM3zfoYn.js +310 -0
- package/components/{PlayerAccountBiometrics-Cu1scn1a.js → PlayerAccountBiometrics-CsgBvnb7.js} +94 -94
- package/components/{PlayerAccountBiometrics-kmv4HqQ_.js → PlayerAccountBiometrics-DG4UZ7gJ.js} +94 -94
- package/components/PlayerAccountBiometrics-DemarL8b.cjs +1 -0
- package/components/PlayerAccountBiometricsAction-BsW0OHhf.cjs +1 -0
- package/components/{PlayerAccountBiometricsAction-BcR2gS30.js → PlayerAccountBiometricsAction-D0v5Q9lm.js} +48 -48
- package/components/{PlayerAccountBiometricsAction-BJrkhDoI.js → PlayerAccountBiometricsAction-SyauJZ2U.js} +53 -53
- package/components/{PlayerAccountClosure-B7lWhxS5.js → PlayerAccountClosure-B-dMr1Jn.js} +90 -90
- package/components/PlayerAccountClosure-BWvJR3TO.cjs +1 -0
- package/components/{PlayerAccountClosure-DWX0cAW_.js → PlayerAccountClosure-CVfc0dYJ.js} +92 -92
- package/components/PlayerAccountController-BAQQQd6f.js +13466 -0
- package/components/PlayerAccountController-BLw_7Wxf.js +13423 -0
- package/components/PlayerAccountController-En_hyyNC.cjs +21 -0
- package/components/{PlayerAccountGamingLimits-DuDCpH1C.js → PlayerAccountGamingLimits-Cow9pdbW.js} +101 -101
- package/components/{PlayerAccountGamingLimits-DNqahHsA.js → PlayerAccountGamingLimits-CyI_jaC4.js} +97 -97
- package/components/PlayerAccountGamingLimits-OyM5Opvb.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-De_w7-UU.js → PlayerAccountGamingLimitsConfirmationModal-BaHYtGpR.js} +88 -88
- package/components/PlayerAccountGamingLimitsConfirmationModal-BrOtl3Gh.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DfJgQjRr.js → PlayerAccountGamingLimitsConfirmationModal-Dyp4qeUR.js} +77 -77
- package/components/PlayerAccountGamingLimitsGroupEdit-B-jxQbpZ.js +1555 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-CtjRT5jg.js +1555 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-Dq7oKBvT.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-D1N2rg25.js → PlayerAccountGamingLimitsHistory2-B39ZuccZ.js} +111 -111
- package/components/{PlayerAccountGamingLimitsHistory2-BN0w14Hg.js → PlayerAccountGamingLimitsHistory2-Bjh88L-r.js} +100 -100
- package/components/PlayerAccountGamingLimitsHistory2-D2Pv9fHy.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-C2iKiolC.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-D_ro79gB.js → PlayerAccountGamingLimitsInfoCard-DX-5uUnY.js} +415 -399
- package/components/{PlayerAccountGamingLimitsInfoCard-B6oHRJP6.js → PlayerAccountGamingLimitsInfoCard-D_Hn3lLp.js} +415 -399
- package/components/{PlayerAccountGamingLimitsPage2Gm16-EA4I02NQ.js → PlayerAccountGamingLimitsPage2Gm16-BXIgZHBA.js} +702 -702
- package/components/{PlayerAccountGamingLimitsPage2Gm16-o_0DfyBW.js → PlayerAccountGamingLimitsPage2Gm16-Crtu_pde.js} +699 -699
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CMxzI07w.cjs → PlayerAccountGamingLimitsPage2Gm16-De419B1o.cjs} +6 -6
- package/components/{PlayerAccountGamingLimitsPopup-DhlQaawG.js → PlayerAccountGamingLimitsPopup-BLbMRSf_.js} +38 -38
- package/components/{PlayerAccountGamingLimitsPopup-9casCGHJ.js → PlayerAccountGamingLimitsPopup-Be_S9ZcF.js} +34 -34
- package/components/PlayerAccountGamingLimitsPopup-CNvTB9c2.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-D1UYcvKH.cjs +4 -0
- package/components/{PlayerAccountGamingLimitsWrapper2-B_pUqlM0.js → PlayerAccountGamingLimitsWrapper2-De2EL3tm.js} +75 -75
- package/components/{PlayerAccountGamingLimitsWrapper2-DG5pRuF1.js → PlayerAccountGamingLimitsWrapper2-Dzf9XPuV.js} +81 -81
- package/components/{PlayerAccountGeneralConfirmationModal-BIStQzTL.js → PlayerAccountGeneralConfirmationModal-C-pUW7UE.js} +103 -103
- package/components/{PlayerAccountGeneralConfirmationModal-DAUZlQfJ.js → PlayerAccountGeneralConfirmationModal-D0gnNBxN.js} +106 -106
- package/components/PlayerAccountGeneralConfirmationModal-sBWJGJ3j.cjs +1 -0
- package/components/PlayerAccountMenu-5RiJxzF8.cjs +1 -0
- package/components/{PlayerAccountMenu-OqVmttiI.js → PlayerAccountMenu-88qusOe1.js} +129 -129
- package/components/{PlayerAccountMenu-khqZEoBc.js → PlayerAccountMenu-DNy_Hk32.js} +129 -129
- package/components/{PlayerAccountModal-NUSkSmow.js → PlayerAccountModal-B6JKobGH.js} +58 -58
- package/components/PlayerAccountModal-BdVMgMM0.cjs +1 -0
- package/components/{PlayerAccountModal-BXez3U77.js → PlayerAccountModal-DacnysL5.js} +54 -54
- package/components/PlayerAccountNotifications-B8QW73lK.cjs +1 -0
- package/components/{PlayerAccountNotifications-XjCLekPR.js → PlayerAccountNotifications-C30B-b67.js} +126 -126
- package/components/{PlayerAccountNotifications-0v1ghF-m.js → PlayerAccountNotifications-Ca-yj1FW.js} +87 -87
- package/components/PlayerAccountProductRestriction-DMMlQ5x4.js +1493 -0
- package/components/PlayerAccountProductRestriction-DQaf3YS6.js +1458 -0
- package/components/PlayerAccountProductRestriction-TK3PdIUq.cjs +4 -0
- package/components/{PlayerAccountReviewFrequency-yLwAfHZd.js → PlayerAccountReviewFrequency-BX3lMYXn.js} +235 -235
- package/components/PlayerAccountReviewFrequency-DVU5nmS6.cjs +4 -0
- package/components/{PlayerAccountReviewFrequency-ByPlOg40.js → PlayerAccountReviewFrequency-nChzMifu.js} +245 -245
- package/components/PlayerAccountSelfExclusion-Bcr8vJib.js +1523 -0
- package/components/PlayerAccountSelfExclusion-CsZr8Rp-.js +1551 -0
- package/components/PlayerAccountSelfExclusion-D1g-5SMn.cjs +1 -0
- package/components/{PlayerAccountSelfExclusion-CP3lzn6g.cjs → PlayerAccountTimeout-DUK2ndeT.cjs} +161 -161
- package/components/{PlayerAccountSelfExclusion-0IraJUCF.js → PlayerAccountTimeout-Dm6G5s24.js} +2363 -2581
- package/components/{PlayerAccountSelfExclusion-B9QFixvG.js → PlayerAccountTimeout-Hzpth7m_.js} +2327 -2545
- package/components/{PlayerAccountTransactionsHistory-CAFUIFUl.js → PlayerAccountTransactionsHistory-DbcrevKR.js} +304 -303
- package/components/{PlayerAccountTransactionsHistory-C4dSIP6l.js → PlayerAccountTransactionsHistory-TpzDg4nW.js} +293 -292
- package/components/PlayerAccountTransactionsHistory-aY0Baw7m.cjs +4 -0
- package/components/PlayerActiveBonuses-8Opx6dzV.cjs +4 -0
- package/components/{PlayerActiveBonuses-BQSKxH9G.js → PlayerActiveBonuses-BDw7e79b.js} +222 -221
- package/components/{PlayerActiveBonuses-DSpez0EN.js → PlayerActiveBonuses-HVGiWNOd.js} +192 -193
- package/components/PlayerBonusCard-DC_pKqNw.cjs +1 -0
- package/components/{PlayerBonusCard-D4jw0D02.js → PlayerBonusCard-thh4vUMx.js} +53 -53
- package/components/{PlayerBonusCard--2t2lX4X.js → PlayerBonusCard-zjN36qJb.js} +53 -53
- package/components/PlayerBonusHistory-BcN0Ya_g.js +20037 -0
- package/components/{PlayerAccountProductRestriction-Drc1Iu2o.cjs → PlayerBonusHistory-Dkrv14z8.cjs} +295 -294
- package/components/PlayerBonusHistory-vs9jxJhQ.js +20048 -0
- package/components/PlayerChangePassword-BuJNikhz.cjs +3 -0
- package/components/{PlayerChangePassword-CK9EmNEl.js → PlayerChangePassword-C6mFUw5u.js} +257 -257
- package/components/{PlayerChangePassword-DDqLNG5r.js → PlayerChangePassword-C8qYkJCx.js} +257 -257
- package/components/{PlayerDeposit-B0xGf2EY.js → PlayerDeposit-BJrNyzPW.js} +51 -51
- package/components/{PlayerDeposit-BiOuprGV.js → PlayerDeposit-DadV3-2W.js} +53 -53
- package/components/PlayerDeposit-DemYa-nv.cjs +1 -0
- package/components/{PlayerGamingHistory-CJn-wybc.js → PlayerGamingHistory-BMEQFFwn.js} +404 -405
- package/components/PlayerGamingHistory-D2s0Otth.cjs +1 -0
- package/components/{PlayerGamingHistory-CDPSEyVI.js → PlayerGamingHistory-D3WjUHop.js} +372 -373
- package/components/{PlayerPendingWithdrawals-DKIV0VFt.js → PlayerPendingWithdrawals-B7PgOP7F.js} +54 -54
- package/components/PlayerPendingWithdrawals-CY3g0w83.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-Cw2CONsa.js → PlayerPendingWithdrawals-CiS2VIJm.js} +54 -54
- package/components/PlayerProfileInfo-B6L0INWX.cjs +4 -0
- package/components/{PlayerProfileInfo-B2PmsKAI.js → PlayerProfileInfo-COpic9Sl.js} +781 -781
- package/components/{PlayerProfileInfo-YrTsyEfP.js → PlayerProfileInfo-DGwH1Xbb.js} +645 -645
- package/components/{PlayerRealityCheck-BdFZDJFk.js → PlayerRealityCheck-CRqlzifK.js} +217 -217
- package/components/PlayerRealityCheck-CXPnhtbt.cjs +1 -0
- package/components/{PlayerRealityCheck-CEToSHcC.js → PlayerRealityCheck-DPhiL4g2.js} +202 -202
- package/components/{PlayerTransactionHistory-C8uedDZz.js → PlayerTransactionHistory-CJVcCHMB.js} +68 -68
- package/components/{PlayerTransactionHistory-BWwWT8z7.js → PlayerTransactionHistory-CblCTe3C.js} +64 -64
- package/components/PlayerTransactionHistory-k-3KbRna.cjs +1 -0
- package/components/{PlayerWithdrawal-BXYWP9OV.js → PlayerWithdrawal-DDhF1YFQ.js} +65 -65
- package/components/{PlayerWithdrawal-DuhBS0tB.js → PlayerWithdrawal-gngFCPKe.js} +65 -65
- package/components/PlayerWithdrawal-pcXdzQpS.cjs +1 -0
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +7 -7
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-BjWsvLzr.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-DzSE6TtH.js → app-globals-0f993ce5-XUXOuUQl.js} +4 -4
- package/stencil/{checkbox-group-input_16-CFtp0f8h.js → checkbox-group-input_16-Bn7_E98r.js} +2 -2
- package/stencil/{checkbox-group-input_16-DuSVlPzJ.cjs → checkbox-group-input_16-C6_jN3p0.cjs} +1 -1
- package/stencil/{checkbox-group-input_16-ywIYg4ns.js → checkbox-group-input_16-D9ML4j06.js} +2 -2
- package/stencil/{index-1ef3a64c-CEngIsyB.js → index-1ef3a64c-BvSXLnmQ.js} +1 -1
- package/stencil/{index-1ef3a64c-BzR_jMKw.cjs → index-1ef3a64c-DK-TGomt.cjs} +1 -1
- package/stencil/{index-1ef3a64c-D5p-wZAC.js → index-1ef3a64c-Dwdxxwjy.js} +1 -1
- package/stencil/{index-6e523641-D2onrjgE.cjs → index-6e523641-DOnePbtQ.cjs} +1 -1
- package/stencil/{index-6e523641-B9tbNrXZ.js → index-6e523641-DpGJosc3.js} +1 -1
- package/stencil/{index-6e523641-DH0Ezdpy.js → index-6e523641-pWMNWAtQ.js} +1 -1
- package/stencil/{index-9c0f6c58-DjED2nNw.js → index-9c0f6c58-BN39eMNX.js} +1 -1
- package/stencil/{index-9c0f6c58-XIZolvs1.cjs → index-9c0f6c58-DK260bKj.cjs} +1 -1
- package/stencil/{index-9c0f6c58-DEQL19Io.js → index-9c0f6c58-_RRbHDNl.js} +1 -1
- package/stencil/{index-b2193545-0zWC7J3V.js → index-b2193545-CubpYFkO.js} +1 -1
- package/stencil/{index-b2193545-BDUg7na_.js → index-b2193545-D3SG_Z28.js} +1 -1
- package/stencil/{index-b2193545-C-iFa_cO.cjs → index-b2193545-DM_LjYJq.cjs} +1 -1
- package/stencil/{index-c666b6e6-GVnzND9A.cjs → index-c666b6e6-2zPWxCxt.cjs} +1 -1
- package/stencil/{index-c666b6e6-C3HFUtzN.js → index-c666b6e6-C0YjtgbT.js} +1 -1
- package/stencil/{index-c666b6e6-C5SvvcXp.js → index-c666b6e6-DO3NG0d_.js} +1 -1
- package/stencil/{pam-change-password-6b535bd5-BM0i-nkQ.js → pam-change-password-25b46f90--RvqyvAS.js} +122 -93
- package/stencil/{pam-change-password-6b535bd5-CwazAyPT.cjs → pam-change-password-25b46f90-CILEgZdb.cjs} +2 -2
- package/stencil/{pam-change-password-6b535bd5-BMlVfXop.js → pam-change-password-25b46f90-DBsCYhoF.js} +121 -93
- package/stencil/pam-change-password-BaP9RQnm.cjs +1 -0
- package/stencil/{pam-change-password-vIDF9oZ0.js → pam-change-password-CfJwcRNG.js} +2 -2
- package/stencil/{pam-change-password-YY_WAq3p.js → pam-change-password-a_MEmefG.js} +2 -2
- package/stencil/{player-kyc-verification-Cg0fVyvL.cjs → player-kyc-verification-CR-8JjQM.cjs} +2 -2
- package/stencil/{player-kyc-verification-vQ6gNPBe.js → player-kyc-verification-DQBYB3LU.js} +90 -62
- package/stencil/{player-kyc-verification-BUKoBt3P.js → player-kyc-verification-TCKpEp1x.js} +120 -93
- package/stencil/{ui-skeleton-CTFP1U_H.js → ui-skeleton-BKpwkQ2A.js} +3 -3
- package/stencil/{ui-skeleton-C2ZVNvDq.cjs → ui-skeleton-CS05SPLQ.cjs} +1 -1
- package/stencil/{ui-skeleton-BQnxp85t.js → ui-skeleton-DNuG5l9W.js} +3 -3
- package/stencil/{ui-skeleton-ed169f8f-BXqYzfTU.js → ui-skeleton-ed169f8f-BI8lGn4f.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DCJKKb_M.cjs → ui-skeleton-ed169f8f-CKUfafNC.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-OyzwWyyv.js → ui-skeleton-ed169f8f-CLfa7nfh.js} +1 -1
- package/stencil/{user-deposit-withdrawal-C5lc1C0l.js → user-deposit-withdrawal-BXuiRURM.js} +366 -338
- package/stencil/{user-deposit-withdrawal-DmXcotOq.js → user-deposit-withdrawal-CL7rhukA.js} +321 -294
- package/stencil/user-deposit-withdrawal-gb0EFmeV.cjs +72 -0
- package/stencil/{user-transaction-history-BdbQJzhb.js → user-transaction-history-DCZDdxLh.js} +2 -2
- package/stencil/{user-transaction-history-CcfxBfFN.js → user-transaction-history-E1bvLWYx.js} +2 -2
- package/stencil/{user-transaction-history-CucZiFYD.cjs → user-transaction-history-_0g5E0XE.cjs} +1 -1
- package/stencil/{user-transaction-history_2-B2XvgToy.cjs → user-transaction-history_2-BsrwI7Ib.cjs} +275 -275
- package/stencil/{user-transaction-history_2-Ds0pNCu8.js → user-transaction-history_2-C5uqpRMQ.js} +1701 -1651
- package/stencil/{user-transaction-history_2-B9fxyLUj.js → user-transaction-history_2-DXX9cR5-.js} +916 -911
- package/components/GeneralLogout-0J1RtGyR.js +0 -5018
- package/components/GeneralLogout-CmR1r8PX.cjs +0 -21
- package/components/GeneralLogout-CwcvAxfM.js +0 -4981
- package/components/PlayerAccountBettingHistory-Bf-VPJhk.cjs +0 -1
- package/components/PlayerAccountBettingHistory-CiMelnLz.js +0 -311
- package/components/PlayerAccountBettingHistory-Cr9hPDou.js +0 -310
- package/components/PlayerAccountBiometrics-j15j-n3y.cjs +0 -1
- package/components/PlayerAccountBiometricsAction-z16q0M2J.cjs +0 -1
- package/components/PlayerAccountClosure-CxxMCXDa.cjs +0 -1
- package/components/PlayerAccountController-0zwzJJ4s.js +0 -8738
- package/components/PlayerAccountController-Cg3bzQs5.js +0 -8721
- package/components/PlayerAccountController-J-78lsk8.cjs +0 -1
- package/components/PlayerAccountGamingLimits-DdwsiJT8.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-BiEiNlIc.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-2iDWNhRl.js +0 -4781
- package/components/PlayerAccountGamingLimitsGroupEdit-CsTpmmhw.js +0 -4781
- package/components/PlayerAccountGamingLimitsGroupEdit-gLF0R4uM.cjs +0 -2
- package/components/PlayerAccountGamingLimitsHistory2-D3h2vvVL.cjs +0 -1
- package/components/PlayerAccountGamingLimitsInfoCard-CUhqA1Ww.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPopup-DJbPWFdb.cjs +0 -1
- package/components/PlayerAccountGamingLimitsWrapper2-1lOfUhUT.cjs +0 -4
- package/components/PlayerAccountGeneralConfirmationModal-BCMD8hM8.cjs +0 -1
- package/components/PlayerAccountMenu-DXhrPxvF.cjs +0 -1
- package/components/PlayerAccountModal-BpTtaUfX.cjs +0 -1
- package/components/PlayerAccountNotifications-CMZltoyc.cjs +0 -1
- package/components/PlayerAccountProductRestriction-Dl552qim.js +0 -17524
- package/components/PlayerAccountProductRestriction-THYKSRMa.js +0 -17559
- package/components/PlayerAccountReviewFrequency-BeI7-JB-.cjs +0 -4
- package/components/PlayerAccountTimeout-BRlyos9t.cjs +0 -1
- package/components/PlayerAccountTimeout-BVyjYoqw.js +0 -975
- package/components/PlayerAccountTimeout-CkMUko7-.js +0 -975
- package/components/PlayerAccountTransactionsHistory-DlCJ6V4t.cjs +0 -4
- package/components/PlayerActiveBonuses-CQXEEx6M.cjs +0 -4
- package/components/PlayerBonusCard-DqB-YOwa.cjs +0 -1
- package/components/PlayerBonusHistory-BbO5bAQY.js +0 -1106
- package/components/PlayerBonusHistory-C6ZPMR2L.js +0 -1095
- package/components/PlayerBonusHistory-DtiQesaY.cjs +0 -4
- package/components/PlayerChangePassword-IADHpyQs.cjs +0 -3
- package/components/PlayerDeposit-CN2QU967.cjs +0 -1
- package/components/PlayerGamingHistory-2XEKCfky.cjs +0 -1
- package/components/PlayerPendingWithdrawals-HXAehYWA.cjs +0 -1
- package/components/PlayerProfileInfo-wZEXXCWQ.cjs +0 -4
- package/components/PlayerRealityCheck-DWoQCHkQ.cjs +0 -1
- package/components/PlayerTransactionHistory-CHKGqwam.cjs +0 -1
- package/components/PlayerWithdrawal-DhfwYn8c.cjs +0 -1
- package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +0 -1
- package/stencil/pam-change-password-zaJZcylb.cjs +0 -1
- package/stencil/user-deposit-withdrawal-DfWpITDc.cjs +0 -72
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
const
|
|
1
|
+
import { r as g, h as t } from "./index-c666b6e6-C0YjtgbT.js";
|
|
2
|
+
const P = "en", p = {
|
|
3
3
|
en: {
|
|
4
4
|
title: "Change Password",
|
|
5
5
|
btnSubmit: "Change Password",
|
|
@@ -168,61 +168,90 @@ const g = "en", w = {
|
|
|
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
|
-
},
|
|
172
|
-
fetch(
|
|
173
|
-
Object.keys(
|
|
174
|
-
for (let o in
|
|
175
|
-
|
|
176
|
-
}),
|
|
171
|
+
}, f = (e) => new Promise((a) => {
|
|
172
|
+
fetch(e).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];
|
|
176
|
+
}), a(!0);
|
|
177
177
|
});
|
|
178
|
-
}),
|
|
179
|
-
const
|
|
180
|
-
let o =
|
|
181
|
-
if (
|
|
182
|
-
for (const [
|
|
183
|
-
const d = new RegExp(`{${
|
|
184
|
-
o = o.replace(d,
|
|
178
|
+
}), l = (e, a, s) => {
|
|
179
|
+
const n = a;
|
|
180
|
+
let o = p[n !== void 0 ? n : P][e];
|
|
181
|
+
if (s !== void 0)
|
|
182
|
+
for (const [r, i] of Object.entries(s.values)) {
|
|
183
|
+
const d = new RegExp(`{${r}}`, "g");
|
|
184
|
+
o = o.replace(d, i);
|
|
185
185
|
}
|
|
186
186
|
return o;
|
|
187
187
|
};
|
|
188
|
-
function
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
188
|
+
function m() {
|
|
189
|
+
const e = navigator.userAgent.toLowerCase(), a = screen.availWidth, s = screen.availHeight;
|
|
190
|
+
if (e.includes("iphone"))
|
|
191
191
|
return "mobile";
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
192
|
+
if (e.includes("android")) {
|
|
193
|
+
if (s > a && a < 800)
|
|
194
194
|
return "mobile";
|
|
195
|
-
if (
|
|
195
|
+
if (a > s && s < 800)
|
|
196
196
|
return "tablet";
|
|
197
197
|
}
|
|
198
198
|
return "desktop";
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
const u = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
201
|
+
function h(e, a) {
|
|
202
|
+
if (e) {
|
|
203
|
+
const s = document.createElement("style");
|
|
204
|
+
s.innerHTML = a, e.appendChild(s);
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
-
if (!
|
|
207
|
+
function w(e, a) {
|
|
208
|
+
if (!e || !a)
|
|
208
209
|
return;
|
|
209
|
-
const
|
|
210
|
-
fetch(
|
|
210
|
+
const s = new URL(a);
|
|
211
|
+
fetch(s.href).then((n) => n.text()).then((n) => {
|
|
211
212
|
const o = document.createElement("style");
|
|
212
|
-
o.innerHTML =
|
|
213
|
-
}).catch((
|
|
214
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
213
|
+
o.innerHTML = n, e && e.appendChild(o);
|
|
214
|
+
}).catch((n) => {
|
|
215
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
215
216
|
});
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
-
if (window.emMessageBus)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
function y(e, a, s, n = !1) {
|
|
219
|
+
if (!window.emMessageBus)
|
|
220
|
+
return;
|
|
221
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
222
|
+
return s = C(e, a), s;
|
|
223
|
+
window[u] || (window[u] = {}), s = b(e, a);
|
|
224
|
+
const r = s.unsubscribe.bind(s), i = () => {
|
|
225
|
+
if (window[u][a]) {
|
|
226
|
+
const d = window[u][a];
|
|
227
|
+
d.refCount > 1 ? d.refCount = d.refCount - 1 : delete window[u][a];
|
|
228
|
+
}
|
|
229
|
+
r();
|
|
230
|
+
};
|
|
231
|
+
return s.unsubscribe = i, s;
|
|
232
|
+
}
|
|
233
|
+
function C(e, a) {
|
|
234
|
+
const s = document.createElement("style");
|
|
235
|
+
return window.emMessageBus.subscribe(a, (n) => {
|
|
236
|
+
e && (s.innerHTML = n, e.appendChild(s));
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function b(e, a) {
|
|
240
|
+
return window.emMessageBus.subscribe(a, (s) => {
|
|
241
|
+
var d;
|
|
242
|
+
if (!e)
|
|
243
|
+
return;
|
|
244
|
+
const n = e.getRootNode(), o = window[u];
|
|
245
|
+
let r = (d = o[a]) == null ? void 0 : d.sheet;
|
|
246
|
+
r ? o[a].refCount = o[a].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(s), o[a] = {
|
|
247
|
+
sheet: r,
|
|
248
|
+
refCount: 1
|
|
222
249
|
});
|
|
223
|
-
|
|
250
|
+
const i = n.adoptedStyleSheets || [];
|
|
251
|
+
i.includes(r) || (n.adoptedStyleSheets = [...i, r]);
|
|
252
|
+
});
|
|
224
253
|
}
|
|
225
|
-
const
|
|
254
|
+
const v = `:host {
|
|
226
255
|
display: block;
|
|
227
256
|
}
|
|
228
257
|
|
|
@@ -346,15 +375,15 @@ const y = `:host {
|
|
|
346
375
|
100% {
|
|
347
376
|
opacity: 1;
|
|
348
377
|
}
|
|
349
|
-
}`,
|
|
350
|
-
constructor(
|
|
351
|
-
|
|
378
|
+
}`, x = v, S = class {
|
|
379
|
+
constructor(e) {
|
|
380
|
+
g(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 = () => {
|
|
352
381
|
this.confirmPasswordValidationSchema = {
|
|
353
382
|
mandatory: !0,
|
|
354
383
|
maxLength: this.policy.maximumPasswordLength,
|
|
355
384
|
minLength: this.policy.minimumPasswordLength,
|
|
356
385
|
custom: [
|
|
357
|
-
this.policy.customValidationRules.find((
|
|
386
|
+
this.policy.customValidationRules.find((a) => a.rule === "duplicate-input")
|
|
358
387
|
]
|
|
359
388
|
}, this.newPasswordValidationSchema = {
|
|
360
389
|
mandatory: !0,
|
|
@@ -367,20 +396,20 @@ const y = `:host {
|
|
|
367
396
|
minLength: this.policy.minimumPasswordLength,
|
|
368
397
|
custom: this.policy.customValidationRules
|
|
369
398
|
};
|
|
370
|
-
}, this.setErrorMsg = (
|
|
371
|
-
var
|
|
372
|
-
switch (
|
|
399
|
+
}, this.setErrorMsg = (a, s) => {
|
|
400
|
+
var n, o, r;
|
|
401
|
+
switch (a) {
|
|
373
402
|
case "gm.pms.password_policy_failed":
|
|
374
|
-
if (((o = (
|
|
375
|
-
const
|
|
403
|
+
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) {
|
|
404
|
+
const i = {
|
|
376
405
|
forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
|
|
377
406
|
minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
|
|
378
407
|
hours: this.policy.minimumPasswordAgeLimitHours > 1 ? "hours" : "hour"
|
|
379
408
|
};
|
|
380
|
-
this.errorMsg =
|
|
381
|
-
} else if (!((
|
|
382
|
-
const
|
|
383
|
-
const
|
|
409
|
+
this.errorMsg = l(a, this.language, { values: i });
|
|
410
|
+
} else if (!((r = s == null ? void 0 : s.errors) === null || r === void 0) && r.strength && Array.isArray(s.errors.strength)) {
|
|
411
|
+
const i = s.errors.strength.map((d) => {
|
|
412
|
+
const c = {
|
|
384
413
|
"Password should not contain first name.": "passwordContainsFirstName",
|
|
385
414
|
"Password should not contain last name.": "passwordContainsLastName",
|
|
386
415
|
"Password should not contain username.": "passwordContainsUsername",
|
|
@@ -389,99 +418,99 @@ const y = `:host {
|
|
|
389
418
|
"Password should not contain first name and last name.": "passwordContainsFirstNameAndLastName",
|
|
390
419
|
"Password should not contain date of birth.": "passwordContainsDateOfBirth"
|
|
391
420
|
}[d] || null;
|
|
392
|
-
return
|
|
421
|
+
return c ? l(c, this.language) : d;
|
|
393
422
|
});
|
|
394
|
-
this.errorMsg =
|
|
423
|
+
this.errorMsg = i.join(" ");
|
|
395
424
|
}
|
|
396
425
|
break;
|
|
397
426
|
case "gm.pms.password_not_verified_unauthorized":
|
|
398
|
-
this.errorMsg =
|
|
427
|
+
this.errorMsg = l(a, this.language);
|
|
399
428
|
break;
|
|
400
429
|
default:
|
|
401
|
-
this.errorMsg =
|
|
430
|
+
this.errorMsg = l("errorMsgGeneric", this.language);
|
|
402
431
|
}
|
|
403
432
|
}, this.toggleScreen = () => {
|
|
404
433
|
this.forgotMode ? window.postMessage({ type: "OpenLoginRegisterModal", transition: "ForgotPassword" }, window.location.href) : window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.isMobile }, window.location.href);
|
|
405
434
|
}, this.getPolicy = () => {
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
const
|
|
435
|
+
const a = new URL("/api/v1/players/password-management/password", this.endpoint), s = new Headers();
|
|
436
|
+
s.append("Accept", "text/plain"), s.append("Content-Type", "application/json-patch+json");
|
|
437
|
+
const n = {
|
|
409
438
|
method: "GET",
|
|
410
|
-
headers:
|
|
439
|
+
headers: s
|
|
411
440
|
};
|
|
412
|
-
fetch(
|
|
413
|
-
this.policy = o, this.policy.customValidationRules.forEach((
|
|
414
|
-
|
|
441
|
+
fetch(a.href, n).then((o) => o.status === 200 && o.json()).then((o) => {
|
|
442
|
+
this.policy = o, this.policy.customValidationRules.forEach((r) => {
|
|
443
|
+
r.rule = r.rule.toLowerCase(), r.rule === "duplicateinput" && (r.rule = "duplicate-input");
|
|
415
444
|
}), this.initValidationSchemas();
|
|
416
445
|
}).catch((o) => {
|
|
417
|
-
console.error(`${
|
|
446
|
+
console.error(`${l("errorMsgGeneric", this.language)}:`, o), window.postMessage({ type: "WidgetNotification", data: { type: "error", message: l("errorMsgGeneric", this.language) } }, window.location.href);
|
|
418
447
|
}).finally(() => {
|
|
419
448
|
this.isSkeletonLoading = !1;
|
|
420
449
|
});
|
|
421
|
-
}, this.submitNewPassword = (
|
|
422
|
-
if (
|
|
423
|
-
const
|
|
424
|
-
|
|
450
|
+
}, this.submitNewPassword = (a) => {
|
|
451
|
+
if (a.preventDefault(), this.isBtnSubmitEnabled) {
|
|
452
|
+
const s = new URL("/api/v1/players/password-management/password", this.endpoint), n = new Headers();
|
|
453
|
+
n.append("accept", "text/plain"), n.append("Content-Type", "application/json-patch+json");
|
|
425
454
|
const o = JSON.stringify({
|
|
426
455
|
token: this.forgotMode === "true" ? this.token : this.session,
|
|
427
456
|
oldPassword: this.currentPasswordValue,
|
|
428
457
|
newPassword: this.confirmPasswordValue
|
|
429
|
-
}),
|
|
458
|
+
}), r = {
|
|
430
459
|
method: "PUT",
|
|
431
|
-
headers:
|
|
460
|
+
headers: n,
|
|
432
461
|
body: o
|
|
433
462
|
};
|
|
434
|
-
fetch(
|
|
435
|
-
|
|
436
|
-
}).catch((
|
|
463
|
+
fetch(s.href, r).then((i) => i.json()).then((i) => {
|
|
464
|
+
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));
|
|
465
|
+
}).catch((i) => console.error(i));
|
|
437
466
|
}
|
|
438
|
-
}, 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 =
|
|
467
|
+
}, 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";
|
|
439
468
|
}
|
|
440
|
-
handleClientStylingChange(
|
|
441
|
-
|
|
469
|
+
handleClientStylingChange(e, a) {
|
|
470
|
+
e != a && h(this.stylingContainer, this.clientStyling);
|
|
442
471
|
}
|
|
443
|
-
handleClientStylingUrlChange(
|
|
444
|
-
|
|
472
|
+
handleClientStylingUrlChange(e, a) {
|
|
473
|
+
e != a && this.clientStylingUrl && w(this.stylingContainer, this.clientStylingUrl);
|
|
445
474
|
}
|
|
446
|
-
sendValidityStateHandler(
|
|
447
|
-
switch (this.isBtnSubmitEnabled = !1,
|
|
475
|
+
sendValidityStateHandler(e) {
|
|
476
|
+
switch (this.isBtnSubmitEnabled = !1, e.detail.name) {
|
|
448
477
|
case "password":
|
|
449
|
-
this.isCurrentPasswordValid =
|
|
478
|
+
this.isCurrentPasswordValid = e.detail.valid;
|
|
450
479
|
break;
|
|
451
480
|
case "newPassword":
|
|
452
|
-
this.isNewPasswordValid =
|
|
481
|
+
this.isNewPasswordValid = e.detail.valid;
|
|
453
482
|
break;
|
|
454
483
|
case "newPasswordDuplicate":
|
|
455
|
-
this.isConfirmPasswordValid =
|
|
484
|
+
this.isConfirmPasswordValid = e.detail.valid;
|
|
456
485
|
break;
|
|
457
486
|
}
|
|
458
487
|
(this.forgotMode === "true" || this.isCurrentPasswordValid) && this.isNewPasswordValid && this.isConfirmPasswordValid && (this.isBtnSubmitEnabled = !0);
|
|
459
488
|
}
|
|
460
|
-
sendInputValueHandler(
|
|
461
|
-
switch (
|
|
489
|
+
sendInputValueHandler(e) {
|
|
490
|
+
switch (e.detail.name) {
|
|
462
491
|
case "password":
|
|
463
|
-
this.currentPasswordValue =
|
|
492
|
+
this.currentPasswordValue = e.detail.value;
|
|
464
493
|
break;
|
|
465
494
|
case "newPassword":
|
|
466
|
-
this.newPasswordValue =
|
|
495
|
+
this.newPasswordValue = e.detail.value;
|
|
467
496
|
break;
|
|
468
497
|
case "newPasswordDuplicate":
|
|
469
|
-
this.confirmPasswordValue =
|
|
498
|
+
this.confirmPasswordValue = e.detail.value;
|
|
470
499
|
break;
|
|
471
500
|
}
|
|
472
501
|
}
|
|
473
502
|
componentWillLoad() {
|
|
474
503
|
if (this.getPolicy(), this.translationUrl)
|
|
475
|
-
return
|
|
504
|
+
return f(this.translationUrl);
|
|
476
505
|
}
|
|
477
506
|
componentDidLoad() {
|
|
478
|
-
this.stylingContainer && (window.emMessageBus != null ?
|
|
507
|
+
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)));
|
|
479
508
|
}
|
|
480
509
|
disconnectedCallback() {
|
|
481
510
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
482
511
|
}
|
|
483
512
|
render() {
|
|
484
|
-
return this.isSkeletonLoading ?
|
|
513
|
+
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: (e) => this.stylingContainer = e }, 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)))));
|
|
485
514
|
}
|
|
486
515
|
static get watchers() {
|
|
487
516
|
return {
|
|
@@ -490,7 +519,7 @@ const y = `:host {
|
|
|
490
519
|
};
|
|
491
520
|
}
|
|
492
521
|
};
|
|
493
|
-
|
|
522
|
+
S.style = x;
|
|
494
523
|
export {
|
|
495
|
-
|
|
524
|
+
S as P
|
|
496
525
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("./index-c666b6e6-GVnzND9A.cjs"),g="en",w={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."}},P=a=>new Promise(n=>{fetch(a).then(e=>e.json()).then(e=>{Object.keys(e).forEach(t=>{for(let o in e[t])w[t][o]=e[t][o]}),n(!0)})}),i=(a,n,e)=>{const t=n;let o=w[t!==void 0?t:g][a];if(e!==void 0)for(const[l,r]of Object.entries(e.values)){const d=new RegExp(`{${l}}`,"g");o=o.replace(d,r)}return o};function c(){const a=navigator.userAgent.toLowerCase(),n=screen.availWidth,e=screen.availHeight;if(a.includes("iphone"))return"mobile";if(a.includes("android")){if(e>n&&n<800)return"mobile";if(n>e&&e<800)return"tablet"}return"desktop"}function m(a,n){if(a){const e=document.createElement("style");e.innerHTML=n,a.appendChild(e)}}function h(a,n){if(!a||!n)return;const e=new URL(n);fetch(e.href).then(t=>t.text()).then(t=>{const o=document.createElement("style");o.innerHTML=t,a&&a.appendChild(o)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function f(a,n,e){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(n,o=>{t.innerHTML=o,a&&a.appendChild(t)})}}const y=`:host {
|
|
1
|
+
"use strict";const t=require("./index-c666b6e6-2zPWxCxt.cjs"),P="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."}},f=e=>new Promise(a=>{fetch(e).then(s=>s.json()).then(s=>{Object.keys(s).forEach(n=>{for(let o in s[n])p[n][o]=s[n][o]}),a(!0)})}),l=(e,a,s)=>{const n=a;let o=p[n!==void 0?n:P][e];if(s!==void 0)for(const[r,i]of Object.entries(s.values)){const d=new RegExp(`{${r}}`,"g");o=o.replace(d,i)}return o};function h(){const e=navigator.userAgent.toLowerCase(),a=screen.availWidth,s=screen.availHeight;if(e.includes("iphone"))return"mobile";if(e.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 m(e,a){if(e){const s=document.createElement("style");s.innerHTML=a,e.appendChild(s)}}function w(e,a){if(!e||!a)return;const s=new URL(a);fetch(s.href).then(n=>n.text()).then(n=>{const o=document.createElement("style");o.innerHTML=n,e&&e.appendChild(o)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function y(e,a,s,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return s=C(e,a),s;window[u]||(window[u]={}),s=b(e,a);const r=s.unsubscribe.bind(s),i=()=>{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=i,s}function C(e,a){const s=document.createElement("style");return window.emMessageBus.subscribe(a,n=>{e&&(s.innerHTML=n,e.appendChild(s))})}function b(e,a){return window.emMessageBus.subscribe(a,s=>{var d;if(!e)return;const n=e.getRootNode(),o=window[u];let r=(d=o[a])==null?void 0:d.sheet;r?o[a].refCount=o[a].refCount+1:(r=new CSSStyleSheet,r.replaceSync(s),o[a]={sheet:r,refCount:1});const i=n.adoptedStyleSheets||[];i.includes(r)||(n.adoptedStyleSheets=[...i,r])})}const v=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -122,4 +122,4 @@
|
|
|
122
122
|
100% {
|
|
123
123
|
opacity: 1;
|
|
124
124
|
}
|
|
125
|
-
}`,
|
|
125
|
+
}`,x=v,g=class{constructor(e){t.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.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 n,o,r;switch(a){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 i={forbiddenLastPasswordsCount:this.policy.forbiddenLastPasswordsCount,minimumPasswordAgeLimitHours:this.policy.minimumPasswordAgeLimitHours,hours:this.policy.minimumPasswordAgeLimitHours>1?"hours":"hour"};this.errorMsg=l(a,this.language,{values:i})}else if(!((r=s==null?void 0:s.errors)===null||r===void 0)&&r.strength&&Array.isArray(s.errors.strength)){const i=s.errors.strength.map(d=>{const c={"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 c?l(c,this.language):d});this.errorMsg=i.join(" ")}break;case"gm.pms.password_not_verified_unauthorized":this.errorMsg=l(a,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 a=new URL("/api/v1/players/password-management/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(a.href,n).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(`${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=a=>{if(a.preventDefault(),this.isBtnSubmitEnabled){const s=new URL("/api/v1/players/password-management/password",this.endpoint),n=new Headers;n.append("accept","text/plain"),n.append("Content-Type","application/json-patch+json");const o=JSON.stringify({token:this.forgotMode==="true"?this.token:this.session,oldPassword:this.currentPasswordValue,newPassword:this.confirmPasswordValue}),r={method:"PUT",headers:n,body:o};fetch(s.href,r).then(i=>i.json()).then(i=>{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))}).catch(i=>console.error(i))}},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"}handleClientStylingChange(e,a){e!=a&&m(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,a){e!=a&&this.clientStylingUrl&&w(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.translationUrl)return f(this.translationUrl)}componentDidLoad(){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)))}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:e=>this.stylingContainer=e},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"]}}};g.style=x;exports.PamChangePassword=g;
|