@everymatrix/player-account-controller-nd 1.59.2 → 1.59.99
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-DKq7aXpj.cjs → GeneralLogout-BjsDUNrm.cjs} +4 -4
- package/components/{GeneralLogout-4it4FG1e.js → GeneralLogout-D-SNAWMX.js} +110 -99
- package/components/{GeneralLogout-CeysydbF.js → GeneralLogout-mKknRJlq.js} +118 -107
- package/components/{PlayerAccountBettingHistory-6L3UumfC.js → PlayerAccountBettingHistory-B65ODj4i.js} +1 -1
- package/components/{PlayerAccountBettingHistory-Ba0rbzAt.cjs → PlayerAccountBettingHistory-Bu3VS2Sg.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-CITAS_tU.js → PlayerAccountBettingHistory-D5R8TtVb.js} +1 -1
- package/components/{PlayerAccountBiometrics-DOKW7OSb.js → PlayerAccountBiometrics-1g9245j6.js} +1 -1
- package/components/{PlayerAccountBiometrics-Be6QWwR6.js → PlayerAccountBiometrics-Dke9scx2.js} +1 -1
- package/components/{PlayerAccountBiometrics-D3SdfZAk.cjs → PlayerAccountBiometrics-DvJlyQ8z.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-Ba7qRwie.cjs → PlayerAccountClosureNd-B4GnQQHa.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-DmAOX_fd.js → PlayerAccountClosureNd-CH8UCD0A.js} +1 -1
- package/components/{PlayerAccountClosureNd-rzbr78tt.js → PlayerAccountClosureNd-DtDZNFDs.js} +1 -1
- package/components/PlayerAccountControllerNd-4s7xJ5WW.cjs +1 -0
- package/components/PlayerAccountControllerNd-B-wmDyLr.js +7430 -0
- package/components/{PlayerAccountControllerNd-DsScUGqI.js → PlayerAccountControllerNd-Cda3JHRm.js} +2307 -2243
- package/components/PlayerAccountControllerNd-Cgci2Fcz.cjs +1 -0
- package/components/{PlayerAccountControllerNd-el5m6i4n.js → PlayerAccountControllerNd-Cgdz9EHx.js} +2335 -2271
- package/components/PlayerAccountControllerNd-D0YcM-rD.js +7413 -0
- package/components/PlayerAccountControllerNd-HN4PMQqw.cjs +1 -0
- package/components/PlayerAccountControllerNd-PZ8-RG-h.js +7430 -0
- package/components/PlayerAccountControllerNd-iBO4kr6j.js +7413 -0
- package/components/{PlayerAccountGamingLimits-ByuUh2TU.js → PlayerAccountGamingLimits-CPx-vfQw.js} +2 -2
- package/components/{PlayerAccountGamingLimits-FIGZjiiE.cjs → PlayerAccountGamingLimits-UmFJS4yG.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-Bk5wHTwY.js → PlayerAccountGamingLimits-geiSuCGE.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs → PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CNYtoEVr.js → PlayerAccountGamingLimitsConfirmationModal-CIMWBU9F.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-orqpWBGG.js → PlayerAccountGamingLimitsConfirmationModal-CJvAbSXA.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BaorReGW.js → PlayerAccountGamingLimitsGroupEdit-BBhaC0tE.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs → PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsGroupEdit-CTpK2bHP.js → PlayerAccountGamingLimitsGroupEdit-DxCKKvtt.js} +4 -4
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BXZnq3wo.cjs → PlayerAccountGamingLimitsHistory2Nd-CT3BWhmN.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-2-WDm2bq.js → PlayerAccountGamingLimitsHistory2Nd-CYh5FnDV.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-7fOlRCey.js → PlayerAccountGamingLimitsHistory2Nd-y1qwR7nl.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs → PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-CmZ-aPgC.js → PlayerAccountGamingLimitsInfoCard-Cc-JLiZF.js} +3 -3
- package/components/{PlayerAccountGamingLimitsInfoCard-jkLmhvDf.js → PlayerAccountGamingLimitsInfoCard-Dm9hSuFC.js} +3 -3
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-2aUOAuM6.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-CuoVvIEJ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Hxw4dGQn.js → PlayerAccountGamingLimitsPage2Gm16Nd-DA1By__G.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-C1OaS72g.js → PlayerAccountGamingLimitsPage2Gm16Nd-DMdM3i1l.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs → PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-AuWDAmQP.js → PlayerAccountGamingLimitsPopup-CLyTPF2L.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CwqIGi2v.js → PlayerAccountGamingLimitsPopup-DycV-u3W.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-8YmBMC3v.js → PlayerAccountGamingLimitsWrapper2Nd-ClbwM2gG.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BUsoXkMn.cjs → PlayerAccountGamingLimitsWrapper2Nd-D5Yg91jL.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CZlji5Yr.js → PlayerAccountGamingLimitsWrapper2Nd-j3mecOLN.js} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-DYhGjzZF.js → PlayerAccountGeneralConfirmationModal-4w5ypHAs.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs → PlayerAccountGeneralConfirmationModal-DoognqGf.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-mUHuj-5B.js → PlayerAccountGeneralConfirmationModal-u_yQVW36.js} +1 -1
- package/components/{PlayerAccountMenuNd-BeGAjc3q.js → PlayerAccountMenuNd-D-fAorcB.js} +3 -3
- package/components/{PlayerAccountMenuNd-z28QxKXk.js → PlayerAccountMenuNd-DTmfUkDR.js} +3 -3
- package/components/{PlayerAccountMenuNd-CCPMD49m.cjs → PlayerAccountMenuNd-pBoYi2d7.cjs} +1 -1
- package/components/{PlayerAccountModal-DhsJbk1o.js → PlayerAccountModal-CJAW5eai.js} +1 -1
- package/components/{PlayerAccountModal-RfCUFEKE.js → PlayerAccountModal-DzIuV3KN.js} +1 -1
- package/components/{PlayerAccountModal-tginaXbZ.cjs → PlayerAccountModal-zI2QLAL1.cjs} +1 -1
- package/components/{PlayerAccountNotifications-9IZXsnRq.js → PlayerAccountNotifications-BECefhID.js} +2 -2
- package/components/{PlayerAccountNotifications-CI42A39-.js → PlayerAccountNotifications-BMdZu0IH.js} +2 -2
- package/components/{PlayerAccountNotifications-BLsxWrq2.cjs → PlayerAccountNotifications-BxJEa-bd.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-D1ZE5YnA.js → PlayerAccountSelfExclusionNd-8dbQPzKe.js} +2 -2
- package/components/{PlayerAccountSelfExclusionNd-D5HRQcqt.js → PlayerAccountSelfExclusionNd-CfXWzZaQ.js} +2 -2
- package/components/{PlayerAccountSelfExclusionNd-BwVKiP0r.cjs → PlayerAccountSelfExclusionNd-gT5IXyXv.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BqQ8Dig1.js → PlayerAccountTimeout-CyvXsM5p.js} +4 -4
- package/components/{PlayerAccountTimeout-Oy-er_24.js → PlayerAccountTimeout-DmUdmLQr.js} +4 -4
- package/components/{PlayerAccountTimeout-ChLVrZ1_.cjs → PlayerAccountTimeout-v5URpImy.cjs} +1 -1
- package/components/{PlayerActiveBonuses-6gu0ilHo.js → PlayerActiveBonuses-2M__yMJf.js} +2 -2
- package/components/{PlayerActiveBonuses-CwzErvnX.js → PlayerActiveBonuses-BXlIZiVB.js} +2 -2
- package/components/{PlayerActiveBonuses-DbsciRwF.cjs → PlayerActiveBonuses-CBqsWQfE.cjs} +1 -1
- package/components/{PlayerBonusCard-BzDP362v.cjs → PlayerBonusCard-CJXjuXsU.cjs} +1 -1
- package/components/{PlayerBonusCard--oHCcpOb.js → PlayerBonusCard-CtXP9UPy.js} +2 -2
- package/components/{PlayerBonusCard-D3VZ0SAd.js → PlayerBonusCard-sfjhWo7d.js} +2 -2
- package/components/{PlayerBonusHistory-Bg9FG_wq.js → PlayerBonusHistory-CSz-1_b2.js} +4 -4
- package/components/{PlayerBonusHistory-BGgOFk8A.js → PlayerBonusHistory-DPoWYYcE.js} +4 -4
- package/components/{PlayerBonusHistory-BaPqLAQG.cjs → PlayerBonusHistory-DvzXMZuA.cjs} +1 -1
- package/components/{PlayerChangePassword-DLhHjRp1.js → PlayerChangePassword-Ddfah5-0.js} +1 -1
- package/components/{PlayerChangePassword-BekJt2EW.js → PlayerChangePassword-Dtr2n1Et.js} +1 -1
- package/components/{PlayerChangePassword-DZ0zUct-.cjs → PlayerChangePassword-awaQVsiP.cjs} +1 -1
- package/components/{PlayerDeposit-BwW_MMqP.js → PlayerDeposit-CqqQuB6-.js} +1 -1
- package/components/{PlayerDeposit-CJ23PX1y.js → PlayerDeposit-DzJLjkJJ.js} +1 -1
- package/components/{PlayerDeposit-2rXfB2O5.cjs → PlayerDeposit-_oIOMh8l.cjs} +1 -1
- package/components/{PlayerGamingHistory-CWs-tUkY.cjs → PlayerGamingHistory-4FBAJVJ3.cjs} +1 -1
- package/components/{PlayerGamingHistory-0TYR6SEn.js → PlayerGamingHistory-BawWibCV.js} +4 -4
- package/components/{PlayerGamingHistory-CntwL7Fk.js → PlayerGamingHistory-K0Uvi2fF.js} +4 -4
- package/components/{PlayerPendingWithdrawals-ki_Gjm_H.js → PlayerPendingWithdrawals-B5LftQI0.js} +1 -1
- package/components/{PlayerPendingWithdrawals-B3LxQtqC.js → PlayerPendingWithdrawals-BXngse4L.js} +1 -1
- package/components/{PlayerPendingWithdrawals-UG-bN1ca.cjs → PlayerPendingWithdrawals-aaHugNLD.cjs} +1 -1
- package/components/PlayerProfileInfo-B1A0Xarz.cjs +1 -0
- package/components/PlayerProfileInfo-BmyCYGh7.js +2087 -0
- package/components/PlayerProfileInfo-uGClCGHq.js +2059 -0
- package/components/{PlayerRealityCheck-BmVSMTSf.cjs → PlayerRealityCheck-Ch955fLs.cjs} +1 -1
- package/components/{PlayerRealityCheck-BQCOhNTa.js → PlayerRealityCheck-DHGjsEc_.js} +2 -2
- package/components/{PlayerRealityCheck-CTuOdJqC.js → PlayerRealityCheck-Db8wL8P8.js} +2 -2
- package/components/{PlayerTransactionHistory-DSVdbdHO.js → PlayerTransactionHistory-BdX1ph_m.js} +1 -1
- package/components/{PlayerTransactionHistory-DkLL3JLy.js → PlayerTransactionHistory-CQ3fEpfj.js} +1 -1
- package/components/{PlayerTransactionHistory-U2CncC4r.cjs → PlayerTransactionHistory-Dff51WQG.cjs} +1 -1
- package/components/{PlayerWithdrawal-CuYoN_mb.js → PlayerWithdrawal-8DAmymCW.js} +1 -1
- package/components/{PlayerWithdrawal-CsPPu5bX.cjs → PlayerWithdrawal-DdPBGufW.cjs} +1 -1
- package/components/{PlayerWithdrawal-Dq9rMCnK.js → PlayerWithdrawal-DvDjalE_.js} +1 -1
- 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 +2 -2
- package/stencil/checkbox-group-input_9-C7zEH4Cn.js +3883 -0
- package/stencil/checkbox-group-input_9-CMfQeYlH.cjs +2 -0
- package/stencil/checkbox-group-input_9-OVj7AW5S.js +3883 -0
- package/stencil/general-input-BlFYbInU.cjs +4546 -0
- package/stencil/general-input-C7B1PVb4.js +12201 -0
- package/stencil/general-input-DoSeJn3k.js +12201 -0
- package/stencil/index-9c0f6c58-B94eMODu.js +576 -0
- package/stencil/index-9c0f6c58-BD-Fj_Yj.cjs +1 -0
- package/stencil/index-9c0f6c58-CUIs9poD.js +549 -0
- package/stencil/index-9c0f6c58-CyhtHCyO.js +576 -0
- package/stencil/index-9c0f6c58-D-L9XUok.js +549 -0
- package/stencil/index-9c0f6c58-D55uro-T.cjs +1 -0
- package/stencil/{index-9cd44522-C5N2LdVm.js → index-9cd44522-BOHK5Ehb.js} +4 -4
- package/stencil/{index-9cd44522-BbKqQXqL.js → index-9cd44522-C8s3TvoU.js} +4 -4
- package/stencil/{index-9cd44522-QIMe52Dh.cjs → index-9cd44522-D9raG3xx.cjs} +1 -1
- package/stencil/index-b2193545-B240yE4M.js +503 -0
- package/stencil/index-b2193545-CJQ4H9NG.cjs +1 -0
- package/stencil/index-b2193545-q1mvaES7.js +519 -0
- package/stencil/password-input_2-5nC89CMj.js +311 -0
- package/stencil/password-input_2-DJSgcWve.js +311 -0
- package/stencil/password-input_2-ZOEOuaOe.cjs +193 -0
- package/stencil/{player-change-password-gm2-039e300e-BU9mX4ix.cjs → player-change-password-gm2-039e300e-C-kbOfS1.cjs} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-1NkfHZ6r.js → player-change-password-gm2-039e300e-C_f58yBE.js} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-BLQGT3AW.js → player-change-password-gm2-039e300e-D4KfL3dW.js} +1 -1
- package/stencil/{player-change-password-gm2-E5xKJgy3.js → player-change-password-gm2-3aRR8E4W.js} +1 -1
- package/stencil/{player-change-password-gm2-Cyx-9oVQ.js → player-change-password-gm2-BJ2Ur7Zx.js} +1 -1
- package/stencil/{player-change-password-gm2-BWRiCTIP.cjs → player-change-password-gm2-CHK-mhQ9.cjs} +1 -1
- package/stencil/player-kyc-verification-BDsLC0dz.js +916 -0
- package/stencil/player-kyc-verification-C1kM6V2E.js +894 -0
- package/stencil/player-kyc-verification-Cgr9LJUE.js +894 -0
- package/stencil/player-kyc-verification-Cw4ee6aW.js +916 -0
- package/stencil/player-kyc-verification-L-Gd_xeu.cjs +180 -0
- package/stencil/player-kyc-verification-tvMdQJ0Y.cjs +180 -0
- package/stencil/{toggle-checkbox-input-3f7U98vC.js → toggle-checkbox-input-BRL1Xahc.js} +23 -9
- package/stencil/toggle-checkbox-input-CPDZs55S.cjs +1 -0
- package/stencil/{toggle-checkbox-input-DDDgLFw4.js → toggle-checkbox-input-cLWFox9n.js} +23 -9
- package/stencil/{ui-skeleton-T4HYbNcC.js → ui-skeleton-BacC4KYY.js} +8 -8
- package/stencil/ui-skeleton-C_u2sCMV.cjs +1 -0
- package/stencil/{ui-skeleton-DT0OMDC6.js → ui-skeleton-DuRhzyE8.js} +4 -4
- package/stencil/ui-skeleton-ea659b95-B0Wm9BdQ.js +152 -0
- package/stencil/ui-skeleton-ea659b95-BBQBvLes.cjs +73 -0
- package/stencil/ui-skeleton-ea659b95-DEnEjYcS.js +152 -0
- package/components/PlayerAccountControllerNd-BfM3xK9T.cjs +0 -1
- package/components/PlayerProfileInfo-CNv-9pT9.js +0 -1823
- package/components/PlayerProfileInfo-DLth9JMy.cjs +0 -1
- package/components/PlayerProfileInfo-DV9mn7sN.js +0 -1806
- package/stencil/checkbox-group-input_9-BkT4UtkZ.js +0 -13282
- package/stencil/checkbox-group-input_9-CDYbpnEQ.cjs +0 -2045
- package/stencil/checkbox-group-input_9-CMQLu-qB.js +0 -13248
- package/stencil/general-input--MP17Hyz.cjs +0 -1
- package/stencil/general-input-BqgyG6fv.js +0 -48
- package/stencil/general-input-V-ZuyFa5.js +0 -48
- package/stencil/index-ae04a8b1-D4wvtXTw.cjs +0 -1
- package/stencil/index-ae04a8b1-fpBaOn88.js +0 -516
- package/stencil/index-ae04a8b1-ixlRj3zC.js +0 -532
- package/stencil/password-input_2-C_mvPSDp.js +0 -589
- package/stencil/password-input_2-DeRFrP9K.cjs +0 -105
- package/stencil/password-input_2-g7twAnPT.js +0 -589
- package/stencil/toggle-checkbox-input-DXFebhBM.cjs +0 -1
- package/stencil/ui-skeleton-BC4mw1ae.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-B8H73O_q.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-Ba-weZ4g.js +0 -122
- package/stencil/ui-skeleton-a642cced-DhjmNsN7.js +0 -122
- package/stencil/vaadin-button-mixin-e8c3f355-BdntioNA.cjs +0 -2391
- package/stencil/vaadin-button-mixin-e8c3f355-DON-rAuy.js +0 -10228
- package/stencil/vaadin-button-mixin-e8c3f355-DQ5UgwNf.js +0 -10302
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { r as p, c as d, h as i, g as h } from "./index-9cd44522-BOHK5Ehb.js";
|
|
2
|
+
import { t as n } from "./locale-ioQf6ZrW.js";
|
|
3
|
+
import { t as u } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
4
|
+
import { P as x } from "./player-change-password-gm2-039e300e-D4KfL3dW.js";
|
|
5
|
+
const c = `*,
|
|
6
|
+
*::before,
|
|
7
|
+
*::after {
|
|
8
|
+
padding: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.password {
|
|
14
|
+
font-family: "Roboto";
|
|
15
|
+
font-style: normal;
|
|
16
|
+
}
|
|
17
|
+
.password__wrapper {
|
|
18
|
+
position: relative;
|
|
19
|
+
width: 100%;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 5px;
|
|
23
|
+
container-type: inline-size;
|
|
24
|
+
}
|
|
25
|
+
.password__wrapper--autofilled {
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
.password__wrapper--autofilled .password__label {
|
|
29
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
30
|
+
}
|
|
31
|
+
.password__wrapper--autofilled .password__input::part(input-field) {
|
|
32
|
+
color: var(--emw--color-black, #000000);
|
|
33
|
+
}
|
|
34
|
+
.password__wrapper--flex {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 5px;
|
|
37
|
+
}
|
|
38
|
+
.password__wrapper--relative {
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
.password__label {
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
line-height: 20px;
|
|
47
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
48
|
+
}
|
|
49
|
+
.password__label--required::after {
|
|
50
|
+
content: "*";
|
|
51
|
+
font-family: inherit;
|
|
52
|
+
color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));
|
|
53
|
+
margin-left: 2px;
|
|
54
|
+
}
|
|
55
|
+
.password__input {
|
|
56
|
+
width: inherit;
|
|
57
|
+
border: none;
|
|
58
|
+
}
|
|
59
|
+
.password__input[focused]::part(input-field) {
|
|
60
|
+
border-color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));
|
|
61
|
+
}
|
|
62
|
+
.password__input[invalid]::part(input-field) {
|
|
63
|
+
border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));
|
|
64
|
+
}
|
|
65
|
+
.password__input::part(input-field) {
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
68
|
+
border: 1px solid var(--emw--color-gray-100, #E6E6E6);
|
|
69
|
+
color: var(--emw--color-black, #000000);
|
|
70
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
font-style: normal;
|
|
73
|
+
font-weight: 300;
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
line-height: 1.5;
|
|
76
|
+
position: relative;
|
|
77
|
+
margin-bottom: unset;
|
|
78
|
+
height: 44px;
|
|
79
|
+
padding: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
.password__input::part(reveal-button) {
|
|
83
|
+
position: relative;
|
|
84
|
+
right: 10px;
|
|
85
|
+
}
|
|
86
|
+
.password__input::part(reveal-button)::before {
|
|
87
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
88
|
+
}
|
|
89
|
+
.password__input > input {
|
|
90
|
+
padding: 5px 15px;
|
|
91
|
+
}
|
|
92
|
+
.password__input > input:placeholder-shown {
|
|
93
|
+
color: var(--emw--color-gray-150, #828282);
|
|
94
|
+
}
|
|
95
|
+
.password__error-message {
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: calc(100% + 5px);
|
|
98
|
+
left: 0;
|
|
99
|
+
color: var(--emw--color-error, var(--emw--color-red, #ed0909));
|
|
100
|
+
}
|
|
101
|
+
.password__complexity {
|
|
102
|
+
height: 150px;
|
|
103
|
+
position: relative;
|
|
104
|
+
padding: 10px;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 20px;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
margin-top: 20px;
|
|
110
|
+
font-weight: 300;
|
|
111
|
+
background: var(--emw--color-white, #FFFFFF);
|
|
112
|
+
-webkit-border-radius: 5px;
|
|
113
|
+
-moz-border-radius: 5px;
|
|
114
|
+
border-radius: 5px;
|
|
115
|
+
border: 1px solid #B0B0B0;
|
|
116
|
+
box-sizing: content-box;
|
|
117
|
+
/* works only in this order */
|
|
118
|
+
}
|
|
119
|
+
.password__complexity meter {
|
|
120
|
+
border-color: transparent; /* Needed for Safari */
|
|
121
|
+
}
|
|
122
|
+
.password__complexity meter[value="1"]::-moz-meter-bar {
|
|
123
|
+
background-color: var(--emw--color-valid, #48952a);
|
|
124
|
+
}
|
|
125
|
+
.password__complexity meter[value="1"]::-webkit-meter-optimum-value {
|
|
126
|
+
background-color: var(--emw--color-valid, #48952a);
|
|
127
|
+
}
|
|
128
|
+
.password__complexity meter:not([value="1"])::-moz-meter-bar {
|
|
129
|
+
background-color: var(--emw--color-error, #FD2839);
|
|
130
|
+
}
|
|
131
|
+
.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {
|
|
132
|
+
background-color: var(--emw--color-error, #FD2839);
|
|
133
|
+
}
|
|
134
|
+
.password__complexity--strength {
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: space-evenly;
|
|
137
|
+
align-items: center;
|
|
138
|
+
}
|
|
139
|
+
.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */
|
|
140
|
+
background: #B0B0B0;
|
|
141
|
+
}
|
|
142
|
+
.password__complexity--hidden {
|
|
143
|
+
display: none;
|
|
144
|
+
}
|
|
145
|
+
.password__complexity--text-bold {
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
}
|
|
148
|
+
.password__complexity--checkbox {
|
|
149
|
+
margin-right: 5px;
|
|
150
|
+
}
|
|
151
|
+
.password__complexity:after {
|
|
152
|
+
content: "";
|
|
153
|
+
position: absolute;
|
|
154
|
+
width: 25px;
|
|
155
|
+
height: 25px;
|
|
156
|
+
border-top: 1px solid var(--emw--color-gray-150, #828282);
|
|
157
|
+
border-right: 0 solid var(--emw--color-gray-150, #828282);
|
|
158
|
+
border-left: 1px solid var(--emw--color-gray-150, #828282);
|
|
159
|
+
border-bottom: 0 solid var(--emw--color-gray-150, #828282);
|
|
160
|
+
bottom: 92%;
|
|
161
|
+
left: 50%;
|
|
162
|
+
margin-left: -25px;
|
|
163
|
+
transform: rotate(45deg);
|
|
164
|
+
margin-top: -25px;
|
|
165
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
166
|
+
}
|
|
167
|
+
@container (max-width: 300px) {
|
|
168
|
+
.password__complexity {
|
|
169
|
+
height: 190px;
|
|
170
|
+
}
|
|
171
|
+
.password__complexity:after {
|
|
172
|
+
width: 14px;
|
|
173
|
+
height: 14px;
|
|
174
|
+
bottom: 96%;
|
|
175
|
+
left: 57%;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.password__tooltip-icon {
|
|
179
|
+
width: 16px;
|
|
180
|
+
height: auto;
|
|
181
|
+
}
|
|
182
|
+
.password__tooltip {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 0;
|
|
185
|
+
left: 20px;
|
|
186
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
187
|
+
border: 1px solid var(--emw--color-gray-150, #828282);
|
|
188
|
+
color: #2B2D3F;
|
|
189
|
+
padding: 10px;
|
|
190
|
+
border-radius: 5px;
|
|
191
|
+
opacity: 0;
|
|
192
|
+
transition: opacity 0.3s ease-in-out;
|
|
193
|
+
z-index: 10;
|
|
194
|
+
}
|
|
195
|
+
.password__tooltip.visible {
|
|
196
|
+
opacity: 1;
|
|
197
|
+
}`, m = c, g = class {
|
|
198
|
+
constructor(e) {
|
|
199
|
+
p(this, e), this.sendOriginalValidityState = d(this, "sendOriginalValidityState", 7), this.sendValidityState = d(this, "sendValidityState", 7), this.sendInputValue = d(this, "sendInputValue", 7), this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (t) => {
|
|
200
|
+
this.value = t.target.value, this.calculateComplexity(this.value), this.showPopup = !0, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
|
|
201
|
+
this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
|
|
202
|
+
}, 500);
|
|
203
|
+
}, this.handleRevealField = (t) => {
|
|
204
|
+
t.stopPropagation(), window.postMessage({ type: `registrationShow${this.name}` }, window.location.href);
|
|
205
|
+
}, this.handleBlur = (t) => {
|
|
206
|
+
this.value = t.target.value, this.showPopup = !1, this.touched = !0, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage();
|
|
207
|
+
}, this.handleFocus = () => {
|
|
208
|
+
this.showPopup = !0, this.calculateComplexity(this.value);
|
|
209
|
+
}, this.setClientStyling = () => {
|
|
210
|
+
let t = document.createElement("style");
|
|
211
|
+
t.innerHTML = this.clientStyling, this.stylingContainer.prepend(t);
|
|
212
|
+
}, this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.defaultValue = "", this.autofilled = void 0, this.tooltip = void 0, this.validation = void 0, this.language = void 0, this.emitValue = void 0, this.isDuplicateInput = void 0, this.clientStyling = "", this.isValid = void 0, this.errorMessage = void 0, this.limitStylingAppends = !1, this.showTooltip = !1, this.passwordComplexity = void 0, this.showPopup = void 0, this.value = "";
|
|
213
|
+
}
|
|
214
|
+
handleStylingChange(e, t) {
|
|
215
|
+
e !== t && this.setClientStyling();
|
|
216
|
+
}
|
|
217
|
+
validityChanged() {
|
|
218
|
+
this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
|
|
219
|
+
}
|
|
220
|
+
valueChanged() {
|
|
221
|
+
this.isDuplicateInput || (this.calculateComplexity(this.value), this.sendOriginalValidityState.emit({ name: this.name, valid: this.setValidity() }));
|
|
222
|
+
}
|
|
223
|
+
emitValueHandler(e) {
|
|
224
|
+
e == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value, type: "duplicate" });
|
|
225
|
+
}
|
|
226
|
+
validityStateHandler(e) {
|
|
227
|
+
this.sendValidityState.emit(e);
|
|
228
|
+
}
|
|
229
|
+
valueHandler(e) {
|
|
230
|
+
this.sendInputValue.emit(e);
|
|
231
|
+
}
|
|
232
|
+
originalValidityChangedHandler(e) {
|
|
233
|
+
this.isDuplicateInput && (e.detail.valid ? (this.originalValid = !0, this.isValid = this.setValidity()) : (this.originalValid = !1, this.isValid = !1, this.value !== "" && (this.errorMessage = this.setErrorMessage())));
|
|
234
|
+
}
|
|
235
|
+
valueChangedHandler(e) {
|
|
236
|
+
this.isDuplicateInput && this.name === e.detail.name + "Duplicate" && (this.duplicateInputValue = e.detail.value, this.touched && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage())), this.name === e.detail.name + "Duplicate" && this.name.replace("Duplicate", "") === e.detail.name && this.touched === !0 && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage());
|
|
237
|
+
}
|
|
238
|
+
handleClickOutside(e) {
|
|
239
|
+
e.composedPath()[0] !== this.tooltipIconReference && e.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
|
|
240
|
+
}
|
|
241
|
+
componentDidRender() {
|
|
242
|
+
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
|
|
243
|
+
}
|
|
244
|
+
componentDidLoad() {
|
|
245
|
+
this.inputReference = this.element.shadowRoot.querySelector("input"), this.passwordButton = this.element.shadowRoot.querySelector("vaadin-password-field-button"), this.passwordButton.tabIndex = -1, this.passwordButton.addEventListener("click", (e) => {
|
|
246
|
+
this.handleRevealField(e);
|
|
247
|
+
}), this.defaultValue && (this.value = this.defaultValue, this.calculateComplexity(this.value), this.valueHandler({ name: this.name, value: this.value }), this.isDuplicateInput && (this.duplicateInputValue = this.defaultValue, this.touched = !0)), this.isValid = this.setValidity();
|
|
248
|
+
}
|
|
249
|
+
disconnectedCallback() {
|
|
250
|
+
this.passwordButton.removeEventListener("click", this.handleRevealField);
|
|
251
|
+
}
|
|
252
|
+
calculateComplexity(e) {
|
|
253
|
+
this.passwordComplexity = this.validation.custom.filter((t) => t.rule === "regex").map((t) => {
|
|
254
|
+
const r = new RegExp(t.pattern).test(e);
|
|
255
|
+
return { rule: t.displayName, ruleKey: t.errorKey, passed: r };
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
setValidity() {
|
|
259
|
+
var e, t;
|
|
260
|
+
return this.isDuplicateInput && this.duplicateInputValue !== this.value ? !1 : !((e = this.passwordComplexity) === null || e === void 0) && e.every((s) => s.passed) ? (t = this.inputReference) === null || t === void 0 ? void 0 : t.validity.valid : !1;
|
|
261
|
+
}
|
|
262
|
+
setPattern() {
|
|
263
|
+
var e, t;
|
|
264
|
+
if (((e = this.validation.custom) === null || e === void 0 ? void 0 : e.length) > 0)
|
|
265
|
+
return (t = this.validation.custom.find((s) => s.rule === "regex")) === null || t === void 0 ? void 0 : t.pattern;
|
|
266
|
+
}
|
|
267
|
+
setErrorMessage() {
|
|
268
|
+
var e, t, s, r;
|
|
269
|
+
if (this.isDuplicateInput && !this.originalValid)
|
|
270
|
+
return n("invalidOriginalPasswordError", this.language);
|
|
271
|
+
if (this.inputReference.validity.patternMismatch) {
|
|
272
|
+
const a = (e = this.validation.custom.find((o) => o.rule === "regex")) === null || e === void 0 ? void 0 : e.errorKey, l = (t = this.validation.custom.find((o) => o.rule === "regex")) === null || t === void 0 ? void 0 : t.errorMessage;
|
|
273
|
+
return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
|
|
274
|
+
}
|
|
275
|
+
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
|
|
276
|
+
return n("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
277
|
+
if (this.inputReference.validity.valueMissing)
|
|
278
|
+
return n("requiredError", this.language);
|
|
279
|
+
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
280
|
+
const a = (s = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || s === void 0 ? void 0 : s.errorKey, l = (r = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || r === void 0 ? void 0 : r.errorMessage;
|
|
281
|
+
return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
renderTooltip() {
|
|
285
|
+
return this.showTooltip ? i("div", { class: `password__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
|
|
286
|
+
}
|
|
287
|
+
renderComplexityPopup() {
|
|
288
|
+
const e = this.passwordComplexity.length, s = this.passwordComplexity.filter((a) => a.passed).length / e, r = this.passwordComplexity.every((a) => a.passed);
|
|
289
|
+
return i("div", { class: `password__complexity ${this.showPopup ? "" : "password__complexity--hidden"}` }, i("div", { class: "password__complexity--strength" }, i("p", { class: "password__complexity--text" }, n("passwordStrength", this.language), " ", i("span", { class: "password__complexity--text-bold" }, n(`${r ? "passwordStrengthStrong" : "passwordStrengthWeak"}`, this.language))), i("meter", { value: s, min: "0", max: "1" })), i("div", null, this.passwordComplexity.map((a, l) => i("div", { key: l }, i("input", { class: "password__complexity--checkbox", type: "checkbox", checked: a.passed, disabled: !0 }), i("span", null, n(`${a.ruleKey}`, this.language) ? n(`${a.ruleKey}`, this.language) : a.rule)))));
|
|
290
|
+
}
|
|
291
|
+
render() {
|
|
292
|
+
let e = "";
|
|
293
|
+
return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), i("div", { key: "be707a0330de2fa306f4326a5b374d613e6633f5", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (t) => this.stylingContainer = t }, i("div", { key: "47a7b4a114f9ccf3c8e759f2c8e933b492053a18", class: "password__wrapper--flex" }, i("label", { key: "b51e602d00798e381eea83258812e70a6fe816a0", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), i("div", { key: "585a9dd0a701429b18d767dd19392ad2373e8ce3", class: "password__wrapper--relative" }, this.tooltip && i("img", { key: "637040e9773662b80b36b2d787511778ea12daf8", class: "password__tooltip-icon", src: u, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), i("vaadin-password-field", { key: "1626a68548b795aeb709e5a3a7950f7a5017c787", type: "password", id: `${this.name}__input`, class: `password__input ${e}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), i("small", { key: "791e90e36bf2d67b2a2e68649dcf3052851f2769", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
|
|
294
|
+
}
|
|
295
|
+
get element() {
|
|
296
|
+
return h(this);
|
|
297
|
+
}
|
|
298
|
+
static get watchers() {
|
|
299
|
+
return {
|
|
300
|
+
clientStyling: ["handleStylingChange"],
|
|
301
|
+
isValid: ["validityChanged"],
|
|
302
|
+
value: ["valueChanged"],
|
|
303
|
+
emitValue: ["emitValueHandler"]
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
g.style = m;
|
|
308
|
+
export {
|
|
309
|
+
g as password_input,
|
|
310
|
+
x as player_change_password_gm2
|
|
311
|
+
};
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { r as p, c as d, h as i, g as h } from "./index-9cd44522-C8s3TvoU.js";
|
|
2
|
+
import { t as n } from "./locale-ioQf6ZrW.js";
|
|
3
|
+
import { t as u } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
4
|
+
import { P as x } from "./player-change-password-gm2-039e300e-C_f58yBE.js";
|
|
5
|
+
const c = `*,
|
|
6
|
+
*::before,
|
|
7
|
+
*::after {
|
|
8
|
+
padding: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.password {
|
|
14
|
+
font-family: "Roboto";
|
|
15
|
+
font-style: normal;
|
|
16
|
+
}
|
|
17
|
+
.password__wrapper {
|
|
18
|
+
position: relative;
|
|
19
|
+
width: 100%;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 5px;
|
|
23
|
+
container-type: inline-size;
|
|
24
|
+
}
|
|
25
|
+
.password__wrapper--autofilled {
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
.password__wrapper--autofilled .password__label {
|
|
29
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
30
|
+
}
|
|
31
|
+
.password__wrapper--autofilled .password__input::part(input-field) {
|
|
32
|
+
color: var(--emw--color-black, #000000);
|
|
33
|
+
}
|
|
34
|
+
.password__wrapper--flex {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 5px;
|
|
37
|
+
}
|
|
38
|
+
.password__wrapper--relative {
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
.password__label {
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
line-height: 20px;
|
|
47
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
48
|
+
}
|
|
49
|
+
.password__label--required::after {
|
|
50
|
+
content: "*";
|
|
51
|
+
font-family: inherit;
|
|
52
|
+
color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));
|
|
53
|
+
margin-left: 2px;
|
|
54
|
+
}
|
|
55
|
+
.password__input {
|
|
56
|
+
width: inherit;
|
|
57
|
+
border: none;
|
|
58
|
+
}
|
|
59
|
+
.password__input[focused]::part(input-field) {
|
|
60
|
+
border-color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));
|
|
61
|
+
}
|
|
62
|
+
.password__input[invalid]::part(input-field) {
|
|
63
|
+
border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));
|
|
64
|
+
}
|
|
65
|
+
.password__input::part(input-field) {
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
68
|
+
border: 1px solid var(--emw--color-gray-100, #E6E6E6);
|
|
69
|
+
color: var(--emw--color-black, #000000);
|
|
70
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
font-style: normal;
|
|
73
|
+
font-weight: 300;
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
line-height: 1.5;
|
|
76
|
+
position: relative;
|
|
77
|
+
margin-bottom: unset;
|
|
78
|
+
height: 44px;
|
|
79
|
+
padding: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
.password__input::part(reveal-button) {
|
|
83
|
+
position: relative;
|
|
84
|
+
right: 10px;
|
|
85
|
+
}
|
|
86
|
+
.password__input::part(reveal-button)::before {
|
|
87
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
88
|
+
}
|
|
89
|
+
.password__input > input {
|
|
90
|
+
padding: 5px 15px;
|
|
91
|
+
}
|
|
92
|
+
.password__input > input:placeholder-shown {
|
|
93
|
+
color: var(--emw--color-gray-150, #828282);
|
|
94
|
+
}
|
|
95
|
+
.password__error-message {
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: calc(100% + 5px);
|
|
98
|
+
left: 0;
|
|
99
|
+
color: var(--emw--color-error, var(--emw--color-red, #ed0909));
|
|
100
|
+
}
|
|
101
|
+
.password__complexity {
|
|
102
|
+
height: 150px;
|
|
103
|
+
position: relative;
|
|
104
|
+
padding: 10px;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 20px;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
margin-top: 20px;
|
|
110
|
+
font-weight: 300;
|
|
111
|
+
background: var(--emw--color-white, #FFFFFF);
|
|
112
|
+
-webkit-border-radius: 5px;
|
|
113
|
+
-moz-border-radius: 5px;
|
|
114
|
+
border-radius: 5px;
|
|
115
|
+
border: 1px solid #B0B0B0;
|
|
116
|
+
box-sizing: content-box;
|
|
117
|
+
/* works only in this order */
|
|
118
|
+
}
|
|
119
|
+
.password__complexity meter {
|
|
120
|
+
border-color: transparent; /* Needed for Safari */
|
|
121
|
+
}
|
|
122
|
+
.password__complexity meter[value="1"]::-moz-meter-bar {
|
|
123
|
+
background-color: var(--emw--color-valid, #48952a);
|
|
124
|
+
}
|
|
125
|
+
.password__complexity meter[value="1"]::-webkit-meter-optimum-value {
|
|
126
|
+
background-color: var(--emw--color-valid, #48952a);
|
|
127
|
+
}
|
|
128
|
+
.password__complexity meter:not([value="1"])::-moz-meter-bar {
|
|
129
|
+
background-color: var(--emw--color-error, #FD2839);
|
|
130
|
+
}
|
|
131
|
+
.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {
|
|
132
|
+
background-color: var(--emw--color-error, #FD2839);
|
|
133
|
+
}
|
|
134
|
+
.password__complexity--strength {
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: space-evenly;
|
|
137
|
+
align-items: center;
|
|
138
|
+
}
|
|
139
|
+
.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */
|
|
140
|
+
background: #B0B0B0;
|
|
141
|
+
}
|
|
142
|
+
.password__complexity--hidden {
|
|
143
|
+
display: none;
|
|
144
|
+
}
|
|
145
|
+
.password__complexity--text-bold {
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
}
|
|
148
|
+
.password__complexity--checkbox {
|
|
149
|
+
margin-right: 5px;
|
|
150
|
+
}
|
|
151
|
+
.password__complexity:after {
|
|
152
|
+
content: "";
|
|
153
|
+
position: absolute;
|
|
154
|
+
width: 25px;
|
|
155
|
+
height: 25px;
|
|
156
|
+
border-top: 1px solid var(--emw--color-gray-150, #828282);
|
|
157
|
+
border-right: 0 solid var(--emw--color-gray-150, #828282);
|
|
158
|
+
border-left: 1px solid var(--emw--color-gray-150, #828282);
|
|
159
|
+
border-bottom: 0 solid var(--emw--color-gray-150, #828282);
|
|
160
|
+
bottom: 92%;
|
|
161
|
+
left: 50%;
|
|
162
|
+
margin-left: -25px;
|
|
163
|
+
transform: rotate(45deg);
|
|
164
|
+
margin-top: -25px;
|
|
165
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
166
|
+
}
|
|
167
|
+
@container (max-width: 300px) {
|
|
168
|
+
.password__complexity {
|
|
169
|
+
height: 190px;
|
|
170
|
+
}
|
|
171
|
+
.password__complexity:after {
|
|
172
|
+
width: 14px;
|
|
173
|
+
height: 14px;
|
|
174
|
+
bottom: 96%;
|
|
175
|
+
left: 57%;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.password__tooltip-icon {
|
|
179
|
+
width: 16px;
|
|
180
|
+
height: auto;
|
|
181
|
+
}
|
|
182
|
+
.password__tooltip {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 0;
|
|
185
|
+
left: 20px;
|
|
186
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
187
|
+
border: 1px solid var(--emw--color-gray-150, #828282);
|
|
188
|
+
color: #2B2D3F;
|
|
189
|
+
padding: 10px;
|
|
190
|
+
border-radius: 5px;
|
|
191
|
+
opacity: 0;
|
|
192
|
+
transition: opacity 0.3s ease-in-out;
|
|
193
|
+
z-index: 10;
|
|
194
|
+
}
|
|
195
|
+
.password__tooltip.visible {
|
|
196
|
+
opacity: 1;
|
|
197
|
+
}`, m = c, g = class {
|
|
198
|
+
constructor(e) {
|
|
199
|
+
p(this, e), this.sendOriginalValidityState = d(this, "sendOriginalValidityState", 7), this.sendValidityState = d(this, "sendValidityState", 7), this.sendInputValue = d(this, "sendInputValue", 7), this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (t) => {
|
|
200
|
+
this.value = t.target.value, this.calculateComplexity(this.value), this.showPopup = !0, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
|
|
201
|
+
this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
|
|
202
|
+
}, 500);
|
|
203
|
+
}, this.handleRevealField = (t) => {
|
|
204
|
+
t.stopPropagation(), window.postMessage({ type: `registrationShow${this.name}` }, window.location.href);
|
|
205
|
+
}, this.handleBlur = (t) => {
|
|
206
|
+
this.value = t.target.value, this.showPopup = !1, this.touched = !0, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage();
|
|
207
|
+
}, this.handleFocus = () => {
|
|
208
|
+
this.showPopup = !0, this.calculateComplexity(this.value);
|
|
209
|
+
}, this.setClientStyling = () => {
|
|
210
|
+
let t = document.createElement("style");
|
|
211
|
+
t.innerHTML = this.clientStyling, this.stylingContainer.prepend(t);
|
|
212
|
+
}, this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.defaultValue = "", this.autofilled = void 0, this.tooltip = void 0, this.validation = void 0, this.language = void 0, this.emitValue = void 0, this.isDuplicateInput = void 0, this.clientStyling = "", this.isValid = void 0, this.errorMessage = void 0, this.limitStylingAppends = !1, this.showTooltip = !1, this.passwordComplexity = void 0, this.showPopup = void 0, this.value = "";
|
|
213
|
+
}
|
|
214
|
+
handleStylingChange(e, t) {
|
|
215
|
+
e !== t && this.setClientStyling();
|
|
216
|
+
}
|
|
217
|
+
validityChanged() {
|
|
218
|
+
this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
|
|
219
|
+
}
|
|
220
|
+
valueChanged() {
|
|
221
|
+
this.isDuplicateInput || (this.calculateComplexity(this.value), this.sendOriginalValidityState.emit({ name: this.name, valid: this.setValidity() }));
|
|
222
|
+
}
|
|
223
|
+
emitValueHandler(e) {
|
|
224
|
+
e == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value, type: "duplicate" });
|
|
225
|
+
}
|
|
226
|
+
validityStateHandler(e) {
|
|
227
|
+
this.sendValidityState.emit(e);
|
|
228
|
+
}
|
|
229
|
+
valueHandler(e) {
|
|
230
|
+
this.sendInputValue.emit(e);
|
|
231
|
+
}
|
|
232
|
+
originalValidityChangedHandler(e) {
|
|
233
|
+
this.isDuplicateInput && (e.detail.valid ? (this.originalValid = !0, this.isValid = this.setValidity()) : (this.originalValid = !1, this.isValid = !1, this.value !== "" && (this.errorMessage = this.setErrorMessage())));
|
|
234
|
+
}
|
|
235
|
+
valueChangedHandler(e) {
|
|
236
|
+
this.isDuplicateInput && this.name === e.detail.name + "Duplicate" && (this.duplicateInputValue = e.detail.value, this.touched && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage())), this.name === e.detail.name + "Duplicate" && this.name.replace("Duplicate", "") === e.detail.name && this.touched === !0 && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage());
|
|
237
|
+
}
|
|
238
|
+
handleClickOutside(e) {
|
|
239
|
+
e.composedPath()[0] !== this.tooltipIconReference && e.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
|
|
240
|
+
}
|
|
241
|
+
componentDidRender() {
|
|
242
|
+
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
|
|
243
|
+
}
|
|
244
|
+
componentDidLoad() {
|
|
245
|
+
this.inputReference = this.element.shadowRoot.querySelector("input"), this.passwordButton = this.element.shadowRoot.querySelector("vaadin-password-field-button"), this.passwordButton.tabIndex = -1, this.passwordButton.addEventListener("click", (e) => {
|
|
246
|
+
this.handleRevealField(e);
|
|
247
|
+
}), this.defaultValue && (this.value = this.defaultValue, this.calculateComplexity(this.value), this.valueHandler({ name: this.name, value: this.value }), this.isDuplicateInput && (this.duplicateInputValue = this.defaultValue, this.touched = !0)), this.isValid = this.setValidity();
|
|
248
|
+
}
|
|
249
|
+
disconnectedCallback() {
|
|
250
|
+
this.passwordButton.removeEventListener("click", this.handleRevealField);
|
|
251
|
+
}
|
|
252
|
+
calculateComplexity(e) {
|
|
253
|
+
this.passwordComplexity = this.validation.custom.filter((t) => t.rule === "regex").map((t) => {
|
|
254
|
+
const r = new RegExp(t.pattern).test(e);
|
|
255
|
+
return { rule: t.displayName, ruleKey: t.errorKey, passed: r };
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
setValidity() {
|
|
259
|
+
var e, t;
|
|
260
|
+
return this.isDuplicateInput && this.duplicateInputValue !== this.value ? !1 : !((e = this.passwordComplexity) === null || e === void 0) && e.every((s) => s.passed) ? (t = this.inputReference) === null || t === void 0 ? void 0 : t.validity.valid : !1;
|
|
261
|
+
}
|
|
262
|
+
setPattern() {
|
|
263
|
+
var e, t;
|
|
264
|
+
if (((e = this.validation.custom) === null || e === void 0 ? void 0 : e.length) > 0)
|
|
265
|
+
return (t = this.validation.custom.find((s) => s.rule === "regex")) === null || t === void 0 ? void 0 : t.pattern;
|
|
266
|
+
}
|
|
267
|
+
setErrorMessage() {
|
|
268
|
+
var e, t, s, r;
|
|
269
|
+
if (this.isDuplicateInput && !this.originalValid)
|
|
270
|
+
return n("invalidOriginalPasswordError", this.language);
|
|
271
|
+
if (this.inputReference.validity.patternMismatch) {
|
|
272
|
+
const a = (e = this.validation.custom.find((o) => o.rule === "regex")) === null || e === void 0 ? void 0 : e.errorKey, l = (t = this.validation.custom.find((o) => o.rule === "regex")) === null || t === void 0 ? void 0 : t.errorMessage;
|
|
273
|
+
return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
|
|
274
|
+
}
|
|
275
|
+
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
|
|
276
|
+
return n("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
277
|
+
if (this.inputReference.validity.valueMissing)
|
|
278
|
+
return n("requiredError", this.language);
|
|
279
|
+
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
280
|
+
const a = (s = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || s === void 0 ? void 0 : s.errorKey, l = (r = this.validation.custom.find((o) => o.rule === "duplicate-input")) === null || r === void 0 ? void 0 : r.errorMessage;
|
|
281
|
+
return n(`${a}`, this.language) ? n(`${a}`, this.language) : l;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
renderTooltip() {
|
|
285
|
+
return this.showTooltip ? i("div", { class: `password__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
|
|
286
|
+
}
|
|
287
|
+
renderComplexityPopup() {
|
|
288
|
+
const e = this.passwordComplexity.length, s = this.passwordComplexity.filter((a) => a.passed).length / e, r = this.passwordComplexity.every((a) => a.passed);
|
|
289
|
+
return i("div", { class: `password__complexity ${this.showPopup ? "" : "password__complexity--hidden"}` }, i("div", { class: "password__complexity--strength" }, i("p", { class: "password__complexity--text" }, n("passwordStrength", this.language), " ", i("span", { class: "password__complexity--text-bold" }, n(`${r ? "passwordStrengthStrong" : "passwordStrengthWeak"}`, this.language))), i("meter", { value: s, min: "0", max: "1" })), i("div", null, this.passwordComplexity.map((a, l) => i("div", { key: l }, i("input", { class: "password__complexity--checkbox", type: "checkbox", checked: a.passed, disabled: !0 }), i("span", null, n(`${a.ruleKey}`, this.language) ? n(`${a.ruleKey}`, this.language) : a.rule)))));
|
|
290
|
+
}
|
|
291
|
+
render() {
|
|
292
|
+
let e = "";
|
|
293
|
+
return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), i("div", { key: "be707a0330de2fa306f4326a5b374d613e6633f5", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (t) => this.stylingContainer = t }, i("div", { key: "47a7b4a114f9ccf3c8e759f2c8e933b492053a18", class: "password__wrapper--flex" }, i("label", { key: "b51e602d00798e381eea83258812e70a6fe816a0", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), i("div", { key: "585a9dd0a701429b18d767dd19392ad2373e8ce3", class: "password__wrapper--relative" }, this.tooltip && i("img", { key: "637040e9773662b80b36b2d787511778ea12daf8", class: "password__tooltip-icon", src: u, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), i("vaadin-password-field", { key: "1626a68548b795aeb709e5a3a7950f7a5017c787", type: "password", id: `${this.name}__input`, class: `password__input ${e}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), i("small", { key: "791e90e36bf2d67b2a2e68649dcf3052851f2769", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
|
|
294
|
+
}
|
|
295
|
+
get element() {
|
|
296
|
+
return h(this);
|
|
297
|
+
}
|
|
298
|
+
static get watchers() {
|
|
299
|
+
return {
|
|
300
|
+
clientStyling: ["handleStylingChange"],
|
|
301
|
+
isValid: ["validityChanged"],
|
|
302
|
+
value: ["valueChanged"],
|
|
303
|
+
emitValue: ["emitValueHandler"]
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
g.style = m;
|
|
308
|
+
export {
|
|
309
|
+
g as password_input,
|
|
310
|
+
x as player_change_password_gm2
|
|
311
|
+
};
|