@everymatrix/player-account-controller 1.59.2 → 1.60.0
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-D1bnYvKD.js → GeneralLogout-CrdxxT-0.js} +110 -99
- package/components/{GeneralLogout-oWKFw5-U.js → GeneralLogout-Cs6a0Woe.js} +118 -107
- package/components/{PlayerAccountBettingHistory-Ba0rbzAt.cjs → PlayerAccountBettingHistory-Bu3VS2Sg.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-B5a8vPwA.js → PlayerAccountBettingHistory-DznJRKHH.js} +1 -1
- package/components/{PlayerAccountBettingHistory-cvLnLJaM.js → PlayerAccountBettingHistory-HLjCXypd.js} +1 -1
- package/components/{PlayerAccountBiometrics-ClTvex4w.js → PlayerAccountBiometrics-CIo8pkfn.js} +1 -1
- package/components/{PlayerAccountBiometrics-244_l2MD.js → PlayerAccountBiometrics-DpVTOI5S.js} +1 -1
- package/components/{PlayerAccountBiometrics-D3SdfZAk.cjs → PlayerAccountBiometrics-DvJlyQ8z.cjs} +1 -1
- package/components/{PlayerAccountClosure-Dk5N1AgF.cjs → PlayerAccountClosure-Bgcd5aWK.cjs} +1 -1
- package/components/{PlayerAccountClosure-9BJkNHZ1.js → PlayerAccountClosure-DJx7NuYi.js} +1 -1
- package/components/{PlayerAccountClosure-CUDjmpCz.js → PlayerAccountClosure-DUnNJuF0.js} +1 -1
- package/components/{PlayerAccountController-BiLGpVLk.js → PlayerAccountController-BHULNGiG.js} +697 -633
- package/components/PlayerAccountController-C7RCoOhc.cjs +1 -0
- package/components/{PlayerAccountController-DkT-NObO.js → PlayerAccountController-oC2_eSvR.js} +695 -631
- package/components/{PlayerAccountGamingLimits-CGZB2W3L.js → PlayerAccountGamingLimits-DiTQMKO-.js} +2 -2
- package/components/{PlayerAccountGamingLimits-FIGZjiiE.cjs → PlayerAccountGamingLimits-UmFJS4yG.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-C2OQmz0L.js → PlayerAccountGamingLimits-t-Kt6fD1.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CMNuF6Yo.js → PlayerAccountGamingLimitsConfirmationModal-BOqmU6ao.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs → PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-apD3a9Bz.js → PlayerAccountGamingLimitsConfirmationModal-CJS6pzAL.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-Cj28m25L.js → PlayerAccountGamingLimitsGroupEdit-Cohx9d0h.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-DrfWEw7D.js → PlayerAccountGamingLimitsGroupEdit-DQ4LAIh3.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs → PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsHistory2-D90-0n9S.cjs → PlayerAccountGamingLimitsHistory2-1CxT-5pd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-CsMgI2vP.js → PlayerAccountGamingLimitsHistory2-CZWoK_f5.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-CL7qYX9D.js → PlayerAccountGamingLimitsHistory2-DuWgdsnY.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs → PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-CFusXmG3.js → PlayerAccountGamingLimitsInfoCard-AOCz2477.js} +3 -3
- package/components/{PlayerAccountGamingLimitsInfoCard-C-SGItlz.js → PlayerAccountGamingLimitsInfoCard-wb1MgSRM.js} +3 -3
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DAMLMUMu.cjs → PlayerAccountGamingLimitsPage2Gm16-DQhfQZf3.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DoZ7M3C6.js → PlayerAccountGamingLimitsPage2Gm16-DqVb6gUu.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BfV10mIx.js → PlayerAccountGamingLimitsPage2Gm16-yGmurNY8.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs → PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-4sFhABTh.js → PlayerAccountGamingLimitsPopup-Byk1Oi5A.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Cut_OV-5.js → PlayerAccountGamingLimitsPopup-Cou16qpk.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BVbh0mz9.js → PlayerAccountGamingLimitsWrapper2-BEDe0nx6.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-Bh2EK-EX.js → PlayerAccountGamingLimitsWrapper2-BMjMekAI.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-C8v3JMxo.cjs → PlayerAccountGamingLimitsWrapper2-BTn_7__K.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-Cxl-LoG0.js → PlayerAccountGeneralConfirmationModal-DTd4PiMe.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs → PlayerAccountGeneralConfirmationModal-DoognqGf.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-L97vGeau.js → PlayerAccountGeneralConfirmationModal-kdUl-EBq.js} +1 -1
- package/components/{PlayerAccountMenu-BIdnddS_.cjs → PlayerAccountMenu-C5GtMCo6.cjs} +1 -1
- package/components/{PlayerAccountMenu-DUTsp-yv.js → PlayerAccountMenu-CqVrDqg2.js} +2 -2
- package/components/{PlayerAccountMenu-CBgydCnL.js → PlayerAccountMenu-DNaPK2TZ.js} +2 -2
- package/components/{PlayerAccountModal-7R2WRCgZ.js → PlayerAccountModal-Cgwoz0_A.js} +1 -1
- package/components/{PlayerAccountModal-C7_3et-5.js → PlayerAccountModal-ZSZxImk8.js} +1 -1
- package/components/{PlayerAccountModal-tginaXbZ.cjs → PlayerAccountModal-zI2QLAL1.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BLsxWrq2.cjs → PlayerAccountNotifications-B-wkpb9J.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BQPI0SJW.js → PlayerAccountNotifications-B1K_Z2TT.js} +1 -1
- package/components/{PlayerAccountNotifications-DcYU4F80.js → PlayerAccountNotifications-Cf28JRBn.js} +1 -1
- package/components/{PlayerAccountSelfExclusion--Rn9q2b5.js → PlayerAccountSelfExclusion-DSxM_f45.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-CKVraXB_.cjs → PlayerAccountSelfExclusion-DlekYIJO.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-DPebzB6p.js → PlayerAccountSelfExclusion-DxRAfTZT.js} +1 -1
- package/components/{PlayerAccountTimeout-Canoqg7a.cjs → PlayerAccountTimeout-BBpwfboX.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BUMA2T0A.js → PlayerAccountTimeout-BVATVPRq.js} +3 -3
- package/components/{PlayerAccountTimeout-TtjDitl7.js → PlayerAccountTimeout-Bb58NRXY.js} +3 -3
- package/components/{PlayerActiveBonuses-DbsciRwF.cjs → PlayerActiveBonuses-CBqsWQfE.cjs} +1 -1
- package/components/{PlayerActiveBonuses-BU_F0tZ-.js → PlayerActiveBonuses-DXMMRNp0.js} +2 -2
- package/components/{PlayerActiveBonuses-DMlTBfp8.js → PlayerActiveBonuses-Dt0N6Bn0.js} +2 -2
- package/components/{PlayerBonusCard-DSwyV5g7.js → PlayerBonusCard-CH-ncifJ.js} +2 -2
- package/components/{PlayerBonusCard-BzDP362v.cjs → PlayerBonusCard-CJXjuXsU.cjs} +1 -1
- package/components/{PlayerBonusCard-DVgOCZFk.js → PlayerBonusCard-Di1Znpi1.js} +2 -2
- package/components/{PlayerBonusHistory-Dd_3VBh2.js → PlayerBonusHistory-CG4iedyf.js} +4 -4
- package/components/{PlayerBonusHistory-6VkWn4IH.js → PlayerBonusHistory-CHDc8kFG.js} +4 -4
- package/components/{PlayerBonusHistory-C6qXEcVu.cjs → PlayerBonusHistory-Dt0nm--k.cjs} +1 -1
- package/components/{PlayerChangePassword-DRF3YUcY.js → PlayerChangePassword-Cy_iUEwl.js} +1 -1
- package/components/{PlayerChangePassword-DIVU7Hm-.js → PlayerChangePassword-DMiyyEYC.js} +1 -1
- package/components/{PlayerChangePassword-DZ0zUct-.cjs → PlayerChangePassword-awaQVsiP.cjs} +1 -1
- package/components/{PlayerDeposit-Bu1poUUC.js → PlayerDeposit-BFpoULil.js} +1 -1
- package/components/{PlayerDeposit-CC1ZNh0V.js → PlayerDeposit-BUbpr-x6.js} +1 -1
- package/components/{PlayerDeposit-2rXfB2O5.cjs → PlayerDeposit-_oIOMh8l.cjs} +1 -1
- package/components/{PlayerGamingHistory-nRhNghIt.cjs → PlayerGamingHistory-Bw_u3E09.cjs} +1 -1
- package/components/{PlayerGamingHistory-DdtNlqpX.js → PlayerGamingHistory-Cy9FMn9D.js} +4 -4
- package/components/{PlayerGamingHistory-DV6n7mPC.js → PlayerGamingHistory-RqKyBLJf.js} +4 -4
- package/components/{PlayerPendingWithdrawals-CaouMSqA.js → PlayerPendingWithdrawals-Dc91b0Cm.js} +1 -1
- package/components/{PlayerPendingWithdrawals-UG-bN1ca.cjs → PlayerPendingWithdrawals-aaHugNLD.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BAYRu_8K.js → PlayerPendingWithdrawals-ttbTlX0c.js} +1 -1
- package/components/PlayerProfileInfo-DXGC3Nhp.js +2059 -0
- package/components/PlayerProfileInfo-tYfJSyL9.cjs +1 -0
- package/components/PlayerProfileInfo-yGYztqLK.js +2087 -0
- package/components/{PlayerRealityCheck-BmVSMTSf.cjs → PlayerRealityCheck-BobhhM62.cjs} +1 -1
- package/components/{PlayerRealityCheck-CI5fiJv3.js → PlayerRealityCheck-C9j8cYwx.js} +1 -1
- package/components/{PlayerRealityCheck-DL5sLluu.js → PlayerRealityCheck-D7YLuHGQ.js} +1 -1
- package/components/{PlayerTransactionHistory-BGPDkKNI.js → PlayerTransactionHistory-BHDwTuEi.js} +1 -1
- package/components/{PlayerTransactionHistory-U2CncC4r.cjs → PlayerTransactionHistory-Dff51WQG.cjs} +1 -1
- package/components/{PlayerTransactionHistory-x-p-YOv6.js → PlayerTransactionHistory-fsxifDQz.js} +1 -1
- package/components/{PlayerWithdrawal-BknOF8Sy.js → PlayerWithdrawal-4QbyF-GU.js} +1 -1
- package/components/{PlayerWithdrawal-Cx3cOp7C.js → PlayerWithdrawal-D6ic1PCk.js} +1 -1
- package/components/{PlayerWithdrawal-CsPPu5bX.cjs → PlayerWithdrawal-DdPBGufW.cjs} +1 -1
- 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-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-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/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/{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/components/PlayerAccountController-hgfiZXi1.cjs +0 -1
- package/components/PlayerProfileInfo-BLPDFygv.js +0 -1806
- package/components/PlayerProfileInfo-D3NxPM1Z.js +0 -1823
- package/components/PlayerProfileInfo-DLth9JMy.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/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
|
@@ -1,589 +0,0 @@
|
|
|
1
|
-
import { r as w, c as p, h as a, g as y } from "./index-9cd44522-BbKqQXqL.js";
|
|
2
|
-
import { t as o } from "./locale-ioQf6ZrW.js";
|
|
3
|
-
import { r as d, h, T as b, a as c, i as m, B as x, o as v, f as C, L as F, R as V, a9 as S, s as k, M as I, aa as M, g as E, n as B, j as R, H as T, I as P, b as g, E as N, P as _ } from "./vaadin-button-mixin-e8c3f355-DON-rAuy.js";
|
|
4
|
-
import { t as D } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
5
|
-
import { P as ae } from "./player-change-password-gm2-039e300e-BLQGT3AW.js";
|
|
6
|
-
/**
|
|
7
|
-
* @license
|
|
8
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10
|
-
*/
|
|
11
|
-
d("vaadin-text-field", v, {
|
|
12
|
-
moduleId: "lumo-text-field-styles"
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
17
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18
|
-
*/
|
|
19
|
-
const A = (t) => class extends P(t) {
|
|
20
|
-
static get properties() {
|
|
21
|
-
return {
|
|
22
|
-
/**
|
|
23
|
-
* Whether the value of the control can be automatically completed by the browser.
|
|
24
|
-
* List of available options at:
|
|
25
|
-
* https://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete
|
|
26
|
-
*/
|
|
27
|
-
autocomplete: {
|
|
28
|
-
type: String
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* This is a property supported by Safari that is used to control whether
|
|
32
|
-
* autocorrection should be enabled when the user is entering/editing the text.
|
|
33
|
-
* Possible values are:
|
|
34
|
-
* on: Enable autocorrection.
|
|
35
|
-
* off: Disable autocorrection.
|
|
36
|
-
*/
|
|
37
|
-
autocorrect: {
|
|
38
|
-
type: String
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* This is a property supported by Safari and Chrome that is used to control whether
|
|
42
|
-
* autocapitalization should be enabled when the user is entering/editing the text.
|
|
43
|
-
* Possible values are:
|
|
44
|
-
* characters: Characters capitalization.
|
|
45
|
-
* words: Words capitalization.
|
|
46
|
-
* sentences: Sentences capitalization.
|
|
47
|
-
* none: No capitalization.
|
|
48
|
-
*/
|
|
49
|
-
autocapitalize: {
|
|
50
|
-
type: String,
|
|
51
|
-
reflectToAttribute: !0
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
static get delegateAttrs() {
|
|
56
|
-
return [...super.delegateAttrs, "autocapitalize", "autocomplete", "autocorrect"];
|
|
57
|
-
}
|
|
58
|
-
// Workaround for https://github.com/Polymer/polymer/issues/5259
|
|
59
|
-
get __data() {
|
|
60
|
-
return this.__dataValue || {};
|
|
61
|
-
}
|
|
62
|
-
set __data(e) {
|
|
63
|
-
this.__dataValue = e;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* @param {HTMLElement} input
|
|
67
|
-
* @protected
|
|
68
|
-
* @override
|
|
69
|
-
*/
|
|
70
|
-
_inputElementChanged(e) {
|
|
71
|
-
super._inputElementChanged(e), e && (e.value && e.value !== this.value && (console.warn(`Please define value on the <${this.localName}> component!`), e.value = ""), this.value && (e.value = this.value));
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Override an event listener from `FocusMixin`.
|
|
75
|
-
* @param {boolean} focused
|
|
76
|
-
* @protected
|
|
77
|
-
* @override
|
|
78
|
-
*/
|
|
79
|
-
_setFocused(e) {
|
|
80
|
-
super._setFocused(e), !e && document.hasFocus() && this.validate();
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Override an event listener from `InputMixin`
|
|
84
|
-
* to mark as valid after user started typing.
|
|
85
|
-
* @param {Event} event
|
|
86
|
-
* @protected
|
|
87
|
-
* @override
|
|
88
|
-
*/
|
|
89
|
-
_onInput(e) {
|
|
90
|
-
super._onInput(e), this.invalid && this.validate();
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Override an observer from `InputMixin` to validate the field
|
|
94
|
-
* when a new value is set programmatically.
|
|
95
|
-
*
|
|
96
|
-
* @param {string | undefined} newValue
|
|
97
|
-
* @param {string | undefined} oldValue
|
|
98
|
-
* @protected
|
|
99
|
-
* @override
|
|
100
|
-
*/
|
|
101
|
-
_valueChanged(e, s) {
|
|
102
|
-
super._valueChanged(e, s), s !== void 0 && this.invalid && this.validate();
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* @license
|
|
107
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
108
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
109
|
-
*/
|
|
110
|
-
const $ = (t) => class extends A(t) {
|
|
111
|
-
static get properties() {
|
|
112
|
-
return {
|
|
113
|
-
/**
|
|
114
|
-
* Maximum number of characters (in Unicode code points) that the user can enter.
|
|
115
|
-
*/
|
|
116
|
-
maxlength: {
|
|
117
|
-
type: Number
|
|
118
|
-
},
|
|
119
|
-
/**
|
|
120
|
-
* Minimum number of characters (in Unicode code points) that the user can enter.
|
|
121
|
-
*/
|
|
122
|
-
minlength: {
|
|
123
|
-
type: Number
|
|
124
|
-
},
|
|
125
|
-
/**
|
|
126
|
-
* A regular expression that the value is checked against.
|
|
127
|
-
* The pattern must match the entire value, not just some subset.
|
|
128
|
-
*/
|
|
129
|
-
pattern: {
|
|
130
|
-
type: String
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
static get delegateAttrs() {
|
|
135
|
-
return [...super.delegateAttrs, "maxlength", "minlength", "pattern"];
|
|
136
|
-
}
|
|
137
|
-
static get constraints() {
|
|
138
|
-
return [...super.constraints, "maxlength", "minlength", "pattern"];
|
|
139
|
-
}
|
|
140
|
-
constructor() {
|
|
141
|
-
super(), this._setType("text");
|
|
142
|
-
}
|
|
143
|
-
/** @protected */
|
|
144
|
-
get clearElement() {
|
|
145
|
-
return this.$.clearButton;
|
|
146
|
-
}
|
|
147
|
-
/** @protected */
|
|
148
|
-
ready() {
|
|
149
|
-
super.ready(), this.addController(
|
|
150
|
-
new C(this, (e) => {
|
|
151
|
-
this._setInputElement(e), this._setFocusElement(e), this.stateTarget = e, this.ariaTarget = e;
|
|
152
|
-
})
|
|
153
|
-
), this.addController(new F(this.inputElement, this._labelController));
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* @license
|
|
158
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
159
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
160
|
-
*/
|
|
161
|
-
d("vaadin-text-field", V, { moduleId: "vaadin-text-field-styles" });
|
|
162
|
-
class f extends $(g(N(_))) {
|
|
163
|
-
static get is() {
|
|
164
|
-
return "vaadin-text-field";
|
|
165
|
-
}
|
|
166
|
-
static get template() {
|
|
167
|
-
return h`
|
|
168
|
-
<div class="vaadin-field-container">
|
|
169
|
-
<div part="label">
|
|
170
|
-
<slot name="label"></slot>
|
|
171
|
-
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
172
|
-
</div>
|
|
173
|
-
|
|
174
|
-
<vaadin-input-container
|
|
175
|
-
part="input-field"
|
|
176
|
-
readonly="[[readonly]]"
|
|
177
|
-
disabled="[[disabled]]"
|
|
178
|
-
invalid="[[invalid]]"
|
|
179
|
-
theme$="[[_theme]]"
|
|
180
|
-
>
|
|
181
|
-
<slot name="prefix" slot="prefix"></slot>
|
|
182
|
-
<slot name="input"></slot>
|
|
183
|
-
<slot name="suffix" slot="suffix"></slot>
|
|
184
|
-
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
185
|
-
</vaadin-input-container>
|
|
186
|
-
|
|
187
|
-
<div part="helper-text">
|
|
188
|
-
<slot name="helper"></slot>
|
|
189
|
-
</div>
|
|
190
|
-
|
|
191
|
-
<div part="error-message">
|
|
192
|
-
<slot name="error-message"></slot>
|
|
193
|
-
</div>
|
|
194
|
-
</div>
|
|
195
|
-
<slot name="tooltip"></slot>
|
|
196
|
-
`;
|
|
197
|
-
}
|
|
198
|
-
static get properties() {
|
|
199
|
-
return {
|
|
200
|
-
/**
|
|
201
|
-
* Maximum number of characters (in Unicode code points) that the user can enter.
|
|
202
|
-
*/
|
|
203
|
-
maxlength: {
|
|
204
|
-
type: Number
|
|
205
|
-
},
|
|
206
|
-
/**
|
|
207
|
-
* Minimum number of characters (in Unicode code points) that the user can enter.
|
|
208
|
-
*/
|
|
209
|
-
minlength: {
|
|
210
|
-
type: Number
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
/** @protected */
|
|
215
|
-
ready() {
|
|
216
|
-
super.ready(), this._tooltipController = new b(this), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.inputElement), this.addController(this._tooltipController);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
c(f);
|
|
220
|
-
/**
|
|
221
|
-
* @license
|
|
222
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
223
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
224
|
-
*/
|
|
225
|
-
const H = m`
|
|
226
|
-
:host {
|
|
227
|
-
position: absolute;
|
|
228
|
-
right: 0;
|
|
229
|
-
top: 0;
|
|
230
|
-
margin: 0;
|
|
231
|
-
padding: 0;
|
|
232
|
-
width: 100%;
|
|
233
|
-
height: 100%;
|
|
234
|
-
min-width: auto;
|
|
235
|
-
background: transparent;
|
|
236
|
-
outline: none;
|
|
237
|
-
}
|
|
238
|
-
`;
|
|
239
|
-
d("vaadin-password-field-button", [S, H], {
|
|
240
|
-
moduleId: "lumo-password-field-button"
|
|
241
|
-
});
|
|
242
|
-
/**
|
|
243
|
-
* @license
|
|
244
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
245
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
246
|
-
*/
|
|
247
|
-
const L = m`
|
|
248
|
-
[part='reveal-button']::before {
|
|
249
|
-
content: var(--lumo-icons-eye);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
:host([password-visible]) [part='reveal-button']::before {
|
|
253
|
-
content: var(--lumo-icons-eye-disabled);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/* Make it easy to hide the button across the whole app */
|
|
257
|
-
[part='reveal-button'] {
|
|
258
|
-
position: relative;
|
|
259
|
-
display: var(--lumo-password-field-reveal-button-display, block);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
[part='reveal-button'][hidden] {
|
|
263
|
-
display: none !important;
|
|
264
|
-
}
|
|
265
|
-
`;
|
|
266
|
-
d("vaadin-password-field", [v, L], { moduleId: "lumo-password-field" });
|
|
267
|
-
/**
|
|
268
|
-
* @license
|
|
269
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
270
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
271
|
-
*/
|
|
272
|
-
d("vaadin-password-field-button", k, { moduleId: "vaadin-password-field-button-styles" });
|
|
273
|
-
class z extends x(I(g(_))) {
|
|
274
|
-
static get is() {
|
|
275
|
-
return "vaadin-password-field-button";
|
|
276
|
-
}
|
|
277
|
-
static get template() {
|
|
278
|
-
return h``;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
c(z);
|
|
282
|
-
/**
|
|
283
|
-
* @license
|
|
284
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
285
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
286
|
-
*/
|
|
287
|
-
const q = (t) => class extends M(E(B(R(t)))) {
|
|
288
|
-
static get properties() {
|
|
289
|
-
return {
|
|
290
|
-
/**
|
|
291
|
-
* Set to true to hide the eye icon which toggles the password visibility.
|
|
292
|
-
* @attr {boolean} reveal-button-hidden
|
|
293
|
-
*/
|
|
294
|
-
revealButtonHidden: {
|
|
295
|
-
type: Boolean,
|
|
296
|
-
observer: "_revealButtonHiddenChanged",
|
|
297
|
-
value: !1
|
|
298
|
-
},
|
|
299
|
-
/**
|
|
300
|
-
* True if the password is visible ([type=text]).
|
|
301
|
-
* @attr {boolean} password-visible
|
|
302
|
-
*/
|
|
303
|
-
passwordVisible: {
|
|
304
|
-
type: Boolean,
|
|
305
|
-
value: !1,
|
|
306
|
-
reflectToAttribute: !0,
|
|
307
|
-
observer: "_passwordVisibleChanged",
|
|
308
|
-
readOnly: !0
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
* An object with translated strings used for localization.
|
|
312
|
-
* It has the following structure and default values:
|
|
313
|
-
*
|
|
314
|
-
* ```
|
|
315
|
-
* {
|
|
316
|
-
* // Translation of the reveal icon button accessible label
|
|
317
|
-
* reveal: 'Show password'
|
|
318
|
-
* }
|
|
319
|
-
* ```
|
|
320
|
-
*/
|
|
321
|
-
i18n: {
|
|
322
|
-
type: Object,
|
|
323
|
-
value: () => ({
|
|
324
|
-
reveal: "Show password"
|
|
325
|
-
})
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
static get observers() {
|
|
330
|
-
return ["__i18nChanged(i18n)"];
|
|
331
|
-
}
|
|
332
|
-
constructor() {
|
|
333
|
-
super(), this._setType("password"), this.__boundRevealButtonClick = this._onRevealButtonClick.bind(this), this.__boundRevealButtonMouseDown = this._onRevealButtonMouseDown.bind(this), this.__lastChange = "";
|
|
334
|
-
}
|
|
335
|
-
/** @protected */
|
|
336
|
-
get slotStyles() {
|
|
337
|
-
const e = this.localName;
|
|
338
|
-
return [
|
|
339
|
-
...super.slotStyles,
|
|
340
|
-
`
|
|
341
|
-
${e} [slot="input"]::-ms-reveal {
|
|
342
|
-
display: none;
|
|
343
|
-
}
|
|
344
|
-
`
|
|
345
|
-
];
|
|
346
|
-
}
|
|
347
|
-
/** @protected */
|
|
348
|
-
get _revealNode() {
|
|
349
|
-
return this._revealButtonController && this._revealButtonController.node;
|
|
350
|
-
}
|
|
351
|
-
/** @protected */
|
|
352
|
-
ready() {
|
|
353
|
-
super.ready(), this._revealPart = this.shadowRoot.querySelector('[part="reveal-button"]'), this._revealButtonController = new T(this, "reveal", "vaadin-password-field-button", {
|
|
354
|
-
initializer: (e) => {
|
|
355
|
-
e.disabled = this.disabled, e.addEventListener("click", this.__boundRevealButtonClick), e.addEventListener("mousedown", this.__boundRevealButtonMouseDown);
|
|
356
|
-
}
|
|
357
|
-
}), this.addController(this._revealButtonController), this.__updateAriaLabel(this.i18n), this._updateToggleState(!1), this._toggleRevealHidden(this.revealButtonHidden), this.inputElement && (this.inputElement.autocapitalize = "off");
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Override an event listener inherited from `InputControlMixin`
|
|
361
|
-
* to store the value at the moment of the native `change` event.
|
|
362
|
-
* @param {Event} event
|
|
363
|
-
* @protected
|
|
364
|
-
* @override
|
|
365
|
-
*/
|
|
366
|
-
_onChange(e) {
|
|
367
|
-
super._onChange(e), this.__lastChange = this.inputElement.value;
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Override method inherited from `FocusMixin` to mark field as focused
|
|
371
|
-
* when focus moves to the reveal button using Shift Tab.
|
|
372
|
-
* @param {Event} event
|
|
373
|
-
* @return {boolean}
|
|
374
|
-
* @protected
|
|
375
|
-
*/
|
|
376
|
-
_shouldSetFocus(e) {
|
|
377
|
-
return e.target === this.inputElement || e.target === this._revealNode;
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* Override method inherited from `FocusMixin` to not hide password
|
|
381
|
-
* when focus moves to the reveal button or back to the input.
|
|
382
|
-
* @param {Event} event
|
|
383
|
-
* @return {boolean}
|
|
384
|
-
* @protected
|
|
385
|
-
*/
|
|
386
|
-
_shouldRemoveFocus(e) {
|
|
387
|
-
return !(e.relatedTarget === this._revealNode || e.relatedTarget === this.inputElement && e.target === this._revealNode);
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* Override method inherited from `FocusMixin` to toggle password visibility.
|
|
391
|
-
* @param {boolean} focused
|
|
392
|
-
* @protected
|
|
393
|
-
* @override
|
|
394
|
-
*/
|
|
395
|
-
_setFocused(e) {
|
|
396
|
-
if (super._setFocused(e), !e)
|
|
397
|
-
this._setPasswordVisible(!1), this.__lastChange !== this.inputElement.value && (this.__lastChange = this.inputElement.value, this.dispatchEvent(new CustomEvent("change", { bubbles: !0 })));
|
|
398
|
-
else {
|
|
399
|
-
const s = this.getRootNode().activeElement === this._revealNode;
|
|
400
|
-
this.toggleAttribute("focus-ring", this._keyboardActive && !s);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
/** @private */
|
|
404
|
-
__updateAriaLabel(e) {
|
|
405
|
-
e && e.reveal && this._revealNode && this._revealNode.setAttribute("aria-label", e.reveal);
|
|
406
|
-
}
|
|
407
|
-
/** @private */
|
|
408
|
-
__i18nChanged(e) {
|
|
409
|
-
this.__updateAriaLabel(e);
|
|
410
|
-
}
|
|
411
|
-
/** @private */
|
|
412
|
-
_revealButtonHiddenChanged(e) {
|
|
413
|
-
this._toggleRevealHidden(e);
|
|
414
|
-
}
|
|
415
|
-
/** @private */
|
|
416
|
-
_togglePasswordVisibility() {
|
|
417
|
-
this._setPasswordVisible(!this.passwordVisible);
|
|
418
|
-
}
|
|
419
|
-
/** @private */
|
|
420
|
-
_onRevealButtonClick() {
|
|
421
|
-
this._togglePasswordVisibility();
|
|
422
|
-
}
|
|
423
|
-
/** @private */
|
|
424
|
-
_onRevealButtonMouseDown(e) {
|
|
425
|
-
e.preventDefault(), this.inputElement.focus();
|
|
426
|
-
}
|
|
427
|
-
/** @private */
|
|
428
|
-
_toggleRevealHidden(e) {
|
|
429
|
-
this._revealNode && (e ? (this._revealPart.setAttribute("hidden", ""), this._revealNode.setAttribute("tabindex", "-1"), this._revealNode.setAttribute("aria-hidden", "true")) : (this._revealPart.removeAttribute("hidden"), this._revealNode.setAttribute("tabindex", "0"), this._revealNode.removeAttribute("aria-hidden")));
|
|
430
|
-
}
|
|
431
|
-
/** @private */
|
|
432
|
-
_updateToggleState(e) {
|
|
433
|
-
this._revealNode && this._revealNode.setAttribute("aria-pressed", e ? "true" : "false");
|
|
434
|
-
}
|
|
435
|
-
/** @private */
|
|
436
|
-
_passwordVisibleChanged(e) {
|
|
437
|
-
this._setType(e ? "text" : "password"), this._updateToggleState(e);
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Override method inherited from `DisabledMixin` to synchronize the reveal button
|
|
441
|
-
* disabled state with the password field disabled state.
|
|
442
|
-
* @param {boolean} disabled
|
|
443
|
-
* @param {boolean} oldDisabled
|
|
444
|
-
* @protected
|
|
445
|
-
*/
|
|
446
|
-
_disabledChanged(e, s) {
|
|
447
|
-
super._disabledChanged(e, s), this._revealNode && (this._revealNode.disabled = e);
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
/**
|
|
451
|
-
* @license
|
|
452
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
453
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
454
|
-
*/
|
|
455
|
-
const O = h`
|
|
456
|
-
<div part="reveal-button" slot="suffix">
|
|
457
|
-
<slot name="reveal"></slot>
|
|
458
|
-
</div>
|
|
459
|
-
`;
|
|
460
|
-
let u;
|
|
461
|
-
class K extends q(f) {
|
|
462
|
-
static get is() {
|
|
463
|
-
return "vaadin-password-field";
|
|
464
|
-
}
|
|
465
|
-
static get template() {
|
|
466
|
-
if (!u) {
|
|
467
|
-
u = super.template.cloneNode(!0);
|
|
468
|
-
const i = O.content.querySelector('[part="reveal-button"]');
|
|
469
|
-
u.content.querySelector('[part="input-field"]').appendChild(i);
|
|
470
|
-
}
|
|
471
|
-
return u;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
c(K);
|
|
475
|
-
const j = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:"Roboto";font-style:normal}.password__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__wrapper--autofilled .password__input::part(input-field){color:var(--emw--color-black, #000000)}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.password__input{width:inherit;border:none}.password__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.password__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);background-color:var(--emw--color-white, #FFFFFF);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;position:relative;margin-bottom:unset;height:44px;padding:0;width:100%}.password__input::part(reveal-button){position:relative;right:10px}.password__input::part(reveal-button)::before{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__input>input{padding:5px 15px}.password__input>input:placeholder-shown{color:var(--emw--color-gray-150, #828282)}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:var(--emw--color-white, #FFFFFF);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;height:150px;border:1px solid #B0B0B0;}.password__complexity meter{border-color:transparent;}.password__complexity meter[value="1"]::-moz-meter-bar{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter[value="1"]::-webkit-meter-optimum-value{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter:not([value="1"])::-moz-meter-bar{background-color:var(--emw--color-error, #FD2839)}.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value{background-color:var(--emw--color-error, #FD2839)}.password__complexity--strength{display:flex;justify-content:space-evenly;align-items:center}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--hidden{display:none}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:"";position:absolute;width:25px;height:25px;border-top:1px solid var(--emw--color-gray-150, #828282);border-right:0 solid var(--emw--color-gray-150, #828282);border-left:1px solid var(--emw--color-gray-150, #828282);border-bottom:0 solid var(--emw--color-gray-150, #828282);bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:var(--emw--color-white, #FFFFFF)}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-150, #828282);color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}', W = j, G = class {
|
|
476
|
-
constructor(t) {
|
|
477
|
-
w(this, t), this.sendOriginalValidityState = p(this, "sendOriginalValidityState", 7), this.sendValidityState = p(this, "sendValidityState", 7), this.sendInputValue = p(this, "sendInputValue", 7), this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (i) => {
|
|
478
|
-
this.value = i.target.value, this.calculateComplexity(this.value), this.showPopup = !0, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
|
|
479
|
-
this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
|
|
480
|
-
}, 500);
|
|
481
|
-
}, this.handleRevealField = (i) => {
|
|
482
|
-
i.stopPropagation(), window.postMessage({ type: `registrationShow${this.name}` }, window.location.href);
|
|
483
|
-
}, this.handleBlur = (i) => {
|
|
484
|
-
this.value = i.target.value, this.showPopup = !1, this.touched = !0, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage();
|
|
485
|
-
}, this.handleFocus = () => {
|
|
486
|
-
this.showPopup = !0, this.calculateComplexity(this.value);
|
|
487
|
-
}, this.setClientStyling = () => {
|
|
488
|
-
let i = document.createElement("style");
|
|
489
|
-
i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
|
|
490
|
-
}, 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 = "";
|
|
491
|
-
}
|
|
492
|
-
handleStylingChange(t, i) {
|
|
493
|
-
t !== i && this.setClientStyling();
|
|
494
|
-
}
|
|
495
|
-
validityChanged() {
|
|
496
|
-
this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
|
|
497
|
-
}
|
|
498
|
-
valueChanged() {
|
|
499
|
-
this.isDuplicateInput || (this.calculateComplexity(this.value), this.sendOriginalValidityState.emit({ name: this.name, valid: this.setValidity() }));
|
|
500
|
-
}
|
|
501
|
-
emitValueHandler(t) {
|
|
502
|
-
t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value, type: "duplicate" });
|
|
503
|
-
}
|
|
504
|
-
validityStateHandler(t) {
|
|
505
|
-
this.sendValidityState.emit(t);
|
|
506
|
-
}
|
|
507
|
-
valueHandler(t) {
|
|
508
|
-
this.sendInputValue.emit(t);
|
|
509
|
-
}
|
|
510
|
-
originalValidityChangedHandler(t) {
|
|
511
|
-
this.isDuplicateInput && (t.detail.valid ? (this.originalValid = !0, this.isValid = this.setValidity()) : (this.originalValid = !1, this.isValid = !1, this.value !== "" && (this.errorMessage = this.setErrorMessage())));
|
|
512
|
-
}
|
|
513
|
-
valueChangedHandler(t) {
|
|
514
|
-
this.isDuplicateInput && this.name === t.detail.name + "Duplicate" && (this.duplicateInputValue = t.detail.value, this.touched && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage())), this.name === t.detail.name + "Duplicate" && this.name.replace("Duplicate", "") === t.detail.name && this.touched === !0 && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage());
|
|
515
|
-
}
|
|
516
|
-
handleClickOutside(t) {
|
|
517
|
-
t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
|
|
518
|
-
}
|
|
519
|
-
componentDidRender() {
|
|
520
|
-
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
|
|
521
|
-
}
|
|
522
|
-
componentDidLoad() {
|
|
523
|
-
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", (t) => {
|
|
524
|
-
this.handleRevealField(t);
|
|
525
|
-
}), 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();
|
|
526
|
-
}
|
|
527
|
-
disconnectedCallback() {
|
|
528
|
-
this.passwordButton.removeEventListener("click", this.handleRevealField);
|
|
529
|
-
}
|
|
530
|
-
calculateComplexity(t) {
|
|
531
|
-
this.passwordComplexity = this.validation.custom.filter((i) => i.rule === "regex").map((i) => {
|
|
532
|
-
const s = new RegExp(i.pattern).test(t);
|
|
533
|
-
return { rule: i.displayName, ruleKey: i.errorKey, passed: s };
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
setValidity() {
|
|
537
|
-
var t, i;
|
|
538
|
-
return this.isDuplicateInput && this.duplicateInputValue !== this.value ? !1 : !((t = this.passwordComplexity) === null || t === void 0) && t.every((e) => e.passed) ? (i = this.inputReference) === null || i === void 0 ? void 0 : i.validity.valid : !1;
|
|
539
|
-
}
|
|
540
|
-
setPattern() {
|
|
541
|
-
var t, i;
|
|
542
|
-
if (((t = this.validation.custom) === null || t === void 0 ? void 0 : t.length) > 0)
|
|
543
|
-
return (i = this.validation.custom.find((e) => e.rule === "regex")) === null || i === void 0 ? void 0 : i.pattern;
|
|
544
|
-
}
|
|
545
|
-
setErrorMessage() {
|
|
546
|
-
var t, i, e, s;
|
|
547
|
-
if (this.isDuplicateInput && !this.originalValid)
|
|
548
|
-
return o("invalidOriginalPasswordError", this.language);
|
|
549
|
-
if (this.inputReference.validity.patternMismatch) {
|
|
550
|
-
const r = (t = this.validation.custom.find((l) => l.rule === "regex")) === null || t === void 0 ? void 0 : t.errorKey, n = (i = this.validation.custom.find((l) => l.rule === "regex")) === null || i === void 0 ? void 0 : i.errorMessage;
|
|
551
|
-
return o(`${r}`, this.language) ? o(`${r}`, this.language) : n;
|
|
552
|
-
}
|
|
553
|
-
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
|
|
554
|
-
return o("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
555
|
-
if (this.inputReference.validity.valueMissing)
|
|
556
|
-
return o("requiredError", this.language);
|
|
557
|
-
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
558
|
-
const r = (e = this.validation.custom.find((l) => l.rule === "duplicate-input")) === null || e === void 0 ? void 0 : e.errorKey, n = (s = this.validation.custom.find((l) => l.rule === "duplicate-input")) === null || s === void 0 ? void 0 : s.errorMessage;
|
|
559
|
-
return o(`${r}`, this.language) ? o(`${r}`, this.language) : n;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
renderTooltip() {
|
|
563
|
-
return this.showTooltip ? a("div", { class: `password__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
|
|
564
|
-
}
|
|
565
|
-
renderComplexityPopup() {
|
|
566
|
-
const t = this.passwordComplexity.length, e = this.passwordComplexity.filter((r) => r.passed).length / t, s = this.passwordComplexity.every((r) => r.passed);
|
|
567
|
-
return a("div", { class: `password__complexity ${this.showPopup ? "" : "password__complexity--hidden"}` }, a("div", { class: "password__complexity--strength" }, a("p", { class: "password__complexity--text" }, o("passwordStrength", this.language), " ", a("span", { class: "password__complexity--text-bold" }, o(`${s ? "passwordStrengthStrong" : "passwordStrengthWeak"}`, this.language))), a("meter", { value: e, min: "0", max: "1" })), a("div", null, this.passwordComplexity.map((r, n) => a("div", { key: n }, a("input", { class: "password__complexity--checkbox", type: "checkbox", checked: r.passed, disabled: !0 }), a("span", null, o(`${r.ruleKey}`, this.language) ? o(`${r.ruleKey}`, this.language) : r.rule)))));
|
|
568
|
-
}
|
|
569
|
-
render() {
|
|
570
|
-
let t = "";
|
|
571
|
-
return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), a("div", { key: "36d21c63dcd15b6de2d2de417ce97b520493cd16", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (i) => this.stylingContainer = i }, a("div", { key: "3de600f4ccbf2ffe7a8a8858e9d5a483701dd4d7", class: "password__wrapper--flex" }, a("label", { key: "74fee343f4d6adbbb22e88c5d51d3a471979d42e", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), a("div", { key: "d1f30d776c5612b1a5581859b929bee171105bf5", class: "password__wrapper--relative" }, this.tooltip && a("img", { key: "932201990b5fa67f448d4ab8ca7f844f757d5e47", class: "password__tooltip-icon", src: D, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), a("vaadin-password-field", { key: "83f00cb4452b60fd883efcd742d6eb463a8fc729", type: "password", id: `${this.name}__input`, class: `password__input ${t}`, 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 }), a("small", { key: "0f6f7ba5e9ec6f492f22a46ac77c7977f7a8e835", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
|
|
572
|
-
}
|
|
573
|
-
get element() {
|
|
574
|
-
return y(this);
|
|
575
|
-
}
|
|
576
|
-
static get watchers() {
|
|
577
|
-
return {
|
|
578
|
-
clientStyling: ["handleStylingChange"],
|
|
579
|
-
isValid: ["validityChanged"],
|
|
580
|
-
value: ["valueChanged"],
|
|
581
|
-
emitValue: ["emitValueHandler"]
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
G.style = W;
|
|
586
|
-
export {
|
|
587
|
-
G as password_input,
|
|
588
|
-
ae as player_change_password_gm2
|
|
589
|
-
};
|