@everymatrix/player-account-controller 1.59.2 → 1.59.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-D1bnYvKD.js → GeneralLogout-BplfowFH.js} +617 -639
- package/components/{GeneralLogout-oWKFw5-U.js → GeneralLogout-DuABjNp8.js} +718 -740
- package/components/GeneralLogout-aDlrOvb2.cjs +21 -0
- package/components/{PlayerAccountBettingHistory-cvLnLJaM.js → PlayerAccountBettingHistory-BxCRppml.js} +127 -126
- package/components/PlayerAccountBettingHistory-CIfM4HLW.js +328 -0
- package/components/PlayerAccountBettingHistory-CaGfH6ef.cjs +1 -0
- package/components/{PlayerAccountBiometrics-ClTvex4w.js → PlayerAccountBiometrics-BEFosUME.js} +22 -22
- package/components/{PlayerAccountBiometrics-244_l2MD.js → PlayerAccountBiometrics-C8NBQKUw.js} +22 -22
- package/components/{PlayerAccountBiometrics-D3SdfZAk.cjs → PlayerAccountBiometrics-DTFbvNhj.cjs} +1 -1
- package/components/{PlayerAccountClosure-Dk5N1AgF.cjs → PlayerAccountClosure-B2Gy9x3G.cjs} +1 -1
- package/components/{PlayerAccountClosure-9BJkNHZ1.js → PlayerAccountClosure-D9hNArXT.js} +32 -32
- package/components/{PlayerAccountClosure-CUDjmpCz.js → PlayerAccountClosure-bkzdtq3v.js} +32 -32
- package/components/{PlayerAccountController-DkT-NObO.js → PlayerAccountController-CUbh06Fx.js} +296 -296
- package/components/{PlayerAccountController-hgfiZXi1.cjs → PlayerAccountController-DIWtv1hU.cjs} +1 -1
- package/components/{PlayerAccountController-BiLGpVLk.js → PlayerAccountController-bVtx8Tfe.js} +297 -297
- package/components/{PlayerAccountGamingLimits-FIGZjiiE.cjs → PlayerAccountGamingLimits-BrtFDG1O.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-C2OQmz0L.js → PlayerAccountGamingLimits-Dxz29F5p.js} +81 -81
- package/components/{PlayerAccountGamingLimits-CGZB2W3L.js → PlayerAccountGamingLimits-oNSvEvXz.js} +81 -81
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CMNuF6Yo.js → PlayerAccountGamingLimitsConfirmationModal-Bes0Svrr.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-apD3a9Bz.js → PlayerAccountGamingLimitsConfirmationModal-BhmpbfB9.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs → PlayerAccountGamingLimitsConfirmationModal-aQzVqW8v.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-Cj28m25L.js → PlayerAccountGamingLimitsGroupEdit-BS6wWGFd.js} +54 -54
- package/components/{PlayerAccountGamingLimitsGroupEdit-DrfWEw7D.js → PlayerAccountGamingLimitsGroupEdit-D2lkSHNX.js} +54 -54
- package/components/{PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs → PlayerAccountGamingLimitsGroupEdit-gdCqCIvt.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsHistory2-D90-0n9S.cjs → PlayerAccountGamingLimitsHistory2-DGVBzjIn.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-CL7qYX9D.js → PlayerAccountGamingLimitsHistory2-DrrIUH-E.js} +48 -48
- package/components/{PlayerAccountGamingLimitsHistory2-CsMgI2vP.js → PlayerAccountGamingLimitsHistory2-_bX1iIJM.js} +46 -46
- package/components/{PlayerAccountGamingLimitsInfoCard-CFusXmG3.js → PlayerAccountGamingLimitsInfoCard-Cd2oTK9r.js} +83 -83
- package/components/{PlayerAccountGamingLimitsInfoCard-C-SGItlz.js → PlayerAccountGamingLimitsInfoCard-D73a50SO.js} +83 -83
- package/components/{PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs → PlayerAccountGamingLimitsInfoCard-DwNXbIaa.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DoZ7M3C6.js → PlayerAccountGamingLimitsPage2Gm16-BikeP6Os.js} +9 -9
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BfV10mIx.js → PlayerAccountGamingLimitsPage2Gm16-DV_B0I-1.js} +9 -9
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DAMLMUMu.cjs → PlayerAccountGamingLimitsPage2Gm16-DzG7Yyop.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-4sFhABTh.js → PlayerAccountGamingLimitsPopup-BhxPf2k2.js} +42 -42
- package/components/{PlayerAccountGamingLimitsPopup-Cut_OV-5.js → PlayerAccountGamingLimitsPopup-Bmo_d-SK.js} +42 -42
- package/components/{PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs → PlayerAccountGamingLimitsPopup-BzAiMR7P.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-C8v3JMxo.cjs → PlayerAccountGamingLimitsWrapper2-C5ZEZESw.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BVbh0mz9.js → PlayerAccountGamingLimitsWrapper2-CEfUMBze.js} +20 -20
- package/components/{PlayerAccountGamingLimitsWrapper2-Bh2EK-EX.js → PlayerAccountGamingLimitsWrapper2-DcjNP85K.js} +55 -55
- package/components/{PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs → PlayerAccountGeneralConfirmationModal-C_d3r_5u.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-Cxl-LoG0.js → PlayerAccountGeneralConfirmationModal-DHO5sM_A.js} +34 -34
- package/components/{PlayerAccountGeneralConfirmationModal-L97vGeau.js → PlayerAccountGeneralConfirmationModal-xn068Ofp.js} +34 -34
- package/components/{PlayerAccountMenu-DUTsp-yv.js → PlayerAccountMenu-2fRKWX72.js} +32 -32
- package/components/{PlayerAccountMenu-BIdnddS_.cjs → PlayerAccountMenu-B2ipwiXm.cjs} +1 -1
- package/components/{PlayerAccountMenu-CBgydCnL.js → PlayerAccountMenu-BZMOA6FB.js} +29 -29
- package/components/{PlayerAccountModal-tginaXbZ.cjs → PlayerAccountModal-BC3FTDl6.cjs} +1 -1
- package/components/{PlayerAccountModal-7R2WRCgZ.js → PlayerAccountModal-BPfkAiOY.js} +42 -42
- package/components/{PlayerAccountModal-C7_3et-5.js → PlayerAccountModal-DYanNf6b.js} +42 -42
- package/components/{PlayerAccountNotifications-DcYU4F80.js → PlayerAccountNotifications-989NFh5T.js} +32 -32
- package/components/{PlayerAccountNotifications-BLsxWrq2.cjs → PlayerAccountNotifications-CcTMD34l.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BQPI0SJW.js → PlayerAccountNotifications-DxM4yW0h.js} +31 -31
- package/components/{PlayerAccountSelfExclusion--Rn9q2b5.js → PlayerAccountSelfExclusion-BrQUxdxS.js} +781 -786
- package/components/{PlayerAccountSelfExclusion-CKVraXB_.cjs → PlayerAccountSelfExclusion-D4uJysE9.cjs} +153 -153
- package/components/{PlayerAccountSelfExclusion-DPebzB6p.js → PlayerAccountSelfExclusion-tDcqpg8M.js} +1684 -1689
- package/components/{PlayerAccountTimeout-BUMA2T0A.js → PlayerAccountTimeout-1VU-R_sT.js} +58 -58
- package/components/{PlayerAccountTimeout-Canoqg7a.cjs → PlayerAccountTimeout-BnBgpjeF.cjs} +1 -1
- package/components/{PlayerAccountTimeout-TtjDitl7.js → PlayerAccountTimeout-DAyJv6XI.js} +58 -58
- package/components/{PlayerActiveBonuses-DbsciRwF.cjs → PlayerActiveBonuses-8_q2D0Pm.cjs} +1 -1
- package/components/{PlayerActiveBonuses-BU_F0tZ-.js → PlayerActiveBonuses-C3FSr5OJ.js} +73 -73
- package/components/{PlayerActiveBonuses-DMlTBfp8.js → PlayerActiveBonuses-DslbK9bV.js} +74 -74
- package/components/{PlayerBonusCard-DSwyV5g7.js → PlayerBonusCard-CXkW82MZ.js} +54 -54
- package/components/{PlayerBonusCard-BzDP362v.cjs → PlayerBonusCard-Q-nM2Ss4.cjs} +1 -1
- package/components/{PlayerBonusCard-DVgOCZFk.js → PlayerBonusCard-oV2_xQ7r.js} +54 -54
- package/components/{PlayerBonusHistory-C6qXEcVu.cjs → PlayerBonusHistory-DAOaiP_i.cjs} +1 -1
- package/components/{PlayerBonusHistory-6VkWn4IH.js → PlayerBonusHistory-DOUhJRUl.js} +33 -33
- package/components/{PlayerBonusHistory-Dd_3VBh2.js → PlayerBonusHistory-DZIZHkBk.js} +33 -33
- package/components/{PlayerChangePassword-DRF3YUcY.js → PlayerChangePassword-BXTWOpKM.js} +71 -71
- package/components/{PlayerChangePassword-DIVU7Hm-.js → PlayerChangePassword-CYvwu077.js} +71 -71
- package/components/{PlayerChangePassword-DZ0zUct-.cjs → PlayerChangePassword-CbBHjN4s.cjs} +1 -1
- package/components/{PlayerDeposit-Bu1poUUC.js → PlayerDeposit-BxvpoON-.js} +75 -75
- package/components/{PlayerDeposit-CC1ZNh0V.js → PlayerDeposit-VF5d6vUd.js} +75 -75
- package/components/PlayerDeposit-mr7WW9bf.cjs +1 -0
- package/components/{PlayerGamingHistory-nRhNghIt.cjs → PlayerGamingHistory-CorLWCJo.cjs} +1 -1
- package/components/{PlayerGamingHistory-DV6n7mPC.js → PlayerGamingHistory-D3Ks9sA3.js} +84 -84
- package/components/{PlayerGamingHistory-DdtNlqpX.js → PlayerGamingHistory-D_p5zZIW.js} +74 -74
- package/components/{PlayerPendingWithdrawals-CaouMSqA.js → PlayerPendingWithdrawals-CePMH1Ym.js} +26 -26
- package/components/{PlayerPendingWithdrawals-UG-bN1ca.cjs → PlayerPendingWithdrawals-D3hbZ7iV.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BAYRu_8K.js → PlayerPendingWithdrawals-DnRLD9Qj.js} +26 -26
- package/components/{PlayerProfileInfo-D3NxPM1Z.js → PlayerProfileInfo-BM9bYXPT.js} +56 -56
- package/components/{PlayerProfileInfo-DLth9JMy.cjs → PlayerProfileInfo-BST7W89r.cjs} +1 -1
- package/components/{PlayerProfileInfo-BLPDFygv.js → PlayerProfileInfo-CGh-HMYc.js} +56 -56
- package/components/{PlayerRealityCheck-BmVSMTSf.cjs → PlayerRealityCheck-DTbqf0Qh.cjs} +1 -1
- package/components/{PlayerRealityCheck-DL5sLluu.js → PlayerRealityCheck-Dkm-7UeP.js} +33 -33
- package/components/{PlayerRealityCheck-CI5fiJv3.js → PlayerRealityCheck-hu40INih.js} +33 -33
- package/components/{PlayerTransactionHistory-BGPDkKNI.js → PlayerTransactionHistory-CmHZLNzi.js} +24 -24
- package/components/{PlayerTransactionHistory-U2CncC4r.cjs → PlayerTransactionHistory-Cp--JykS.cjs} +1 -1
- package/components/{PlayerTransactionHistory-x-p-YOv6.js → PlayerTransactionHistory-Dob8ZHvF.js} +24 -24
- package/components/{PlayerWithdrawal-CsPPu5bX.cjs → PlayerWithdrawal-BocnE727.cjs} +1 -1
- package/components/{PlayerWithdrawal-BknOF8Sy.js → PlayerWithdrawal-DMasfo5k.js} +19 -19
- package/components/{PlayerWithdrawal-Cx3cOp7C.js → PlayerWithdrawal-fB3IW1Dc.js} +19 -19
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +2 -2
- package/stencil/checkbox-group-input_9-C_Jto8Jt.js +3881 -0
- package/stencil/checkbox-group-input_9-CinfKCss.js +3881 -0
- package/stencil/checkbox-group-input_9-Dc49Q3Vp.cjs +2 -0
- package/stencil/general-input-DJk-3Amp.js +12195 -0
- package/stencil/general-input-bu08V52z.js +12195 -0
- package/stencil/general-input-n2Odu7ir.cjs +4546 -0
- package/stencil/index-1ef3a64c-Dr_Pi_Tn.cjs +1 -0
- package/stencil/index-1ef3a64c-gNJv-qax.js +572 -0
- package/stencil/index-1ef3a64c-jZYsp9Sk.js +556 -0
- package/stencil/index-7c5e707a-40SRy2Ab.js +616 -0
- package/stencil/index-7c5e707a-B9tD4t-g.js +643 -0
- package/stencil/index-7c5e707a-DosLPDO6.cjs +1 -0
- package/stencil/index-9c0f6c58-CiH_jMvd.cjs +1 -0
- package/stencil/{index-9c0f6c58-CqoLeK5G.js → index-9c0f6c58-DRP3WpwA.js} +197 -197
- package/stencil/index-9c0f6c58-jtioo3_h.js +576 -0
- package/stencil/index-9cd44522-CFA-2f9u.cjs +1 -0
- package/stencil/index-9cd44522-COdVO-ko.js +610 -0
- package/stencil/index-9cd44522-IsBDbKDl.js +626 -0
- package/stencil/index-ae04a8b1-BIDvdZJs.js +532 -0
- package/stencil/index-ae04a8b1-BUa25EUq.cjs +1 -0
- package/stencil/index-ae04a8b1-BYWsXc_G.js +516 -0
- package/stencil/password-input_2-BEm5miI-.js +311 -0
- package/stencil/password-input_2-BQFmAJZH.js +311 -0
- package/stencil/password-input_2-BvQKzYdi.cjs +193 -0
- package/stencil/{player-change-password-gm2-039e300e-1NkfHZ6r.js → player-change-password-gm2-039e300e-CAqacRz5.js} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-BLQGT3AW.js → player-change-password-gm2-039e300e-DsF_swLz.js} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-BU9mX4ix.cjs → player-change-password-gm2-039e300e-WQ9F_3S-.cjs} +1 -1
- package/stencil/{player-change-password-gm2-Cyx-9oVQ.js → player-change-password-gm2-2-y7ZnBr.js} +1 -1
- package/stencil/{player-change-password-gm2-BWRiCTIP.cjs → player-change-password-gm2-21_4LRZA.cjs} +1 -1
- package/stencil/{player-change-password-gm2-E5xKJgy3.js → player-change-password-gm2-lgbjA5yk.js} +1 -1
- package/stencil/{player-kyc-verification-B8arDCja.js → player-kyc-verification-CK7jvih_.js} +1 -1
- package/stencil/{player-kyc-verification-GFBDUbhm.cjs → player-kyc-verification-CWBei0Yk.cjs} +1 -1
- package/stencil/{player-kyc-verification-Di40xn9z.js → player-kyc-verification-ClECAHs-.js} +1 -1
- package/stencil/{toggle-checkbox-input-3f7U98vC.js → toggle-checkbox-input-BETTnM8f.js} +2 -2
- package/stencil/{toggle-checkbox-input-DDDgLFw4.js → toggle-checkbox-input-D3c8zSJU.js} +2 -2
- package/stencil/toggle-checkbox-input-owvrKS5Z.cjs +1 -0
- package/stencil/{ui-skeleton-DT0OMDC6.js → ui-skeleton-CWQGWUte.js} +2 -2
- package/stencil/{ui-skeleton-T4HYbNcC.js → ui-skeleton-DGSaG5JU.js} +2 -2
- package/stencil/{ui-skeleton-a642cced-Ba-weZ4g.js → ui-skeleton-a642cced-21I14Ylk.js} +1 -1
- package/stencil/{ui-skeleton-a642cced-B8H73O_q.cjs → ui-skeleton-a642cced-BXc76uPc.cjs} +1 -1
- package/stencil/{ui-skeleton-a642cced-DhjmNsN7.js → ui-skeleton-a642cced-C5tlYQb-.js} +1 -1
- package/stencil/{ui-skeleton-BC4mw1ae.cjs → ui-skeleton-r-lLy7GD.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-DRe5oBqv.js → user-deposit-withdrawal-BISsu0Z-.js} +1 -1
- package/stencil/{user-deposit-withdrawal-Dj3Po03r.js → user-deposit-withdrawal-BmOGfPLJ.js} +1 -1
- package/stencil/{user-deposit-withdrawal-BQKFgZ31.cjs → user-deposit-withdrawal-C8N7GB9E.cjs} +1 -1
- package/stencil/{user-transaction-history-Dca7qx08.js → user-transaction-history-BO92Qvk4.js} +1 -1
- package/stencil/{user-transaction-history-6-z3byrF.js → user-transaction-history-Bg6onQ-I.js} +1 -1
- package/stencil/{user-transaction-history-DrhquxkJ.cjs → user-transaction-history-COJbthDt.cjs} +1 -1
- package/components/GeneralLogout-DKq7aXpj.cjs +0 -21
- package/components/PlayerAccountBettingHistory-B5a8vPwA.js +0 -329
- package/components/PlayerAccountBettingHistory-Ba0rbzAt.cjs +0 -1
- package/components/PlayerDeposit-2rXfB2O5.cjs +0 -1
- 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-1ef3a64c-BnB-ATuA.js +0 -556
- package/stencil/index-1ef3a64c-BvKbNMH8.cjs +0 -1
- package/stencil/index-1ef3a64c-Nsr9PDe6.js +0 -572
- package/stencil/index-7c5e707a-CTC8RpEi.js +0 -643
- package/stencil/index-7c5e707a-CWE0q0mP.js +0 -616
- package/stencil/index-7c5e707a-D1Fv8nel.cjs +0 -1
- package/stencil/index-9c0f6c58-C1yzTenw.js +0 -576
- package/stencil/index-9c0f6c58-DEsDY2nb.cjs +0 -1
- package/stencil/index-9cd44522-BbKqQXqL.js +0 -610
- package/stencil/index-9cd44522-C5N2LdVm.js +0 -626
- package/stencil/index-9cd44522-QIMe52Dh.cjs +0 -1
- 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/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-IsBDbKDl.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-CAqacRz5.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"), this.sendValidityState = d(this, "sendValidityState"), this.sendInputValue = d(this, "sendInputValue"), 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-COdVO-ko.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-DsF_swLz.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"), this.sendValidityState = d(this, "sendValidityState"), this.sendInputValue = d(this, "sendInputValue"), 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
|
+
};
|