@everymatrix/player-account-controller 1.54.11 → 1.55.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-BW6b3iuS.cjs +8 -0
- package/components/{GeneralLogout-BO_iHKNr.js → GeneralLogout-DMvKimEo.js} +735 -713
- package/components/{GeneralLogout-CwSCMNgW.js → GeneralLogout-GS7gE3LI.js} +610 -588
- package/components/{PlayerAccountBettingHistory-Cb8OMNy9.cjs → PlayerAccountBettingHistory-BsFzBNDY.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-BoeZFFFu.js → PlayerAccountBettingHistory-DUgPRDra.js} +24 -24
- package/components/{PlayerAccountBettingHistory-C6G8D9gE.js → PlayerAccountBettingHistory-YNLbWHxl.js} +24 -24
- package/components/{PlayerAccountBiometrics-DbzqR4YB.cjs → PlayerAccountBiometrics-BrlNlZ5N.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-TQaVyCUp.js → PlayerAccountBiometrics-CARn4eVu.js} +26 -26
- package/components/{PlayerAccountBiometrics-C6n6AU67.js → PlayerAccountBiometrics-CXLK5_xT.js} +26 -26
- package/components/{PlayerAccountClosure-mb6TcNFj.js → PlayerAccountClosure-BQsYcTs7.js} +13 -13
- package/components/{PlayerAccountClosure-RO3lnj8F.js → PlayerAccountClosure-BkKcpa4J.js} +13 -13
- package/components/{PlayerAccountClosure-CoKkAlIq.cjs → PlayerAccountClosure-DfJc6Ip_.cjs} +1 -1
- package/components/{PlayerAccountController-DYgabEdS.js → PlayerAccountController-5iMZlx1a.js} +128 -128
- package/components/{PlayerAccountController-BuXBBarM.cjs → PlayerAccountController-7FPLehfk.cjs} +1 -1
- package/components/{PlayerAccountController-B1T1aFdb.js → PlayerAccountController-BhRqOpNe.js} +126 -126
- package/components/{PlayerAccountGamingLimits-Bc6vqzq1.js → PlayerAccountGamingLimits-B2-Mgazd.js} +19 -19
- package/components/{PlayerAccountGamingLimits-DbX9_Kpb.cjs → PlayerAccountGamingLimits-BPQrptbd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-DiyC185P.js → PlayerAccountGamingLimits-DwpArRnO.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BnOXTUlS.js → PlayerAccountGamingLimitsConfirmationModal-CNTlXu7V.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-x0MkZXMQ.js → PlayerAccountGamingLimitsConfirmationModal-DefxnTKN.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CnGLRHzu.cjs → PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-dprcKEZC.js → PlayerAccountGamingLimitsGroupEdit-CDY-ylK7.js} +51 -51
- package/components/{PlayerAccountGamingLimitsGroupEdit-Crmi-e6x.js → PlayerAccountGamingLimitsGroupEdit-Cj7PXLH2.js} +51 -51
- package/components/{PlayerAccountGamingLimitsGroupEdit-DYe0OoaG.cjs → PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsHistory2-DiAUM6kQ.js → PlayerAccountGamingLimitsHistory2-2NpX8p0k.js} +44 -44
- package/components/{PlayerAccountGamingLimitsHistory2-CS4fpWhH.cjs → PlayerAccountGamingLimitsHistory2-B_7Y0DgS.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-Dt9CSOvf.js → PlayerAccountGamingLimitsHistory2-DF8kvIf6.js} +46 -46
- package/components/{PlayerAccountGamingLimitsInfoCard-DFsD9RSx.cjs → PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-D9MKGXei.js → PlayerAccountGamingLimitsInfoCard-CNvQOw3A.js} +95 -95
- package/components/{PlayerAccountGamingLimitsInfoCard-Bd4vV7fT.js → PlayerAccountGamingLimitsInfoCard-D3sJXuZa.js} +95 -95
- package/components/{PlayerAccountGamingLimitsPage2Gm16-8-RWZDSp.cjs → PlayerAccountGamingLimitsPage2Gm16-BiFzgvUx.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-C9VhT1ek.js → PlayerAccountGamingLimitsPage2Gm16-C7_DGAt1.js} +72 -72
- package/components/{PlayerAccountGamingLimitsPage2Gm16-WSk66pxJ.js → PlayerAccountGamingLimitsPage2Gm16-Dz6knJ_h.js} +122 -122
- package/components/{PlayerAccountGamingLimitsPopup-C2R4OzUK.js → PlayerAccountGamingLimitsPopup-BlCz3nIH.js} +17 -17
- package/components/{PlayerAccountGamingLimitsPopup-DLqNpo7V.js → PlayerAccountGamingLimitsPopup-Bt4YlCWi.js} +17 -17
- package/components/{PlayerAccountGamingLimitsPopup-zTXU7ohP.cjs → PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-D3NmPjvT.js → PlayerAccountGamingLimitsWrapper2-D3tW5CCc.js} +8 -8
- package/components/{PlayerAccountGamingLimitsWrapper2-CXP2X7Lk.cjs → PlayerAccountGamingLimitsWrapper2-Dg6CwNyN.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-Cr1xbzbX.js → PlayerAccountGamingLimitsWrapper2-RnvNKSgN.js} +8 -8
- package/components/{PlayerAccountGeneralConfirmationModal-CnGS36kY.cjs → PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-BrcO0n_o.js → PlayerAccountGeneralConfirmationModal-D3u9X3Q6.js} +39 -39
- package/components/{PlayerAccountGeneralConfirmationModal-DHuSzGQn.js → PlayerAccountGeneralConfirmationModal-SjPp-PVG.js} +39 -39
- package/components/{PlayerAccountMenu-VCDFEkVV.js → PlayerAccountMenu-5esyJ_VN.js} +20 -20
- package/components/{PlayerAccountMenu-kULPvwXH.cjs → PlayerAccountMenu-C704oUrC.cjs} +1 -1
- package/components/{PlayerAccountMenu-Bnj75Pyr.js → PlayerAccountMenu-DgptA72k.js} +17 -17
- package/components/{PlayerAccountModal-BGNjm-FU.js → PlayerAccountModal-BnWL5726.js} +28 -28
- package/components/{PlayerAccountModal-DLxnK5Aq.cjs → PlayerAccountModal-C7aZZlBw.cjs} +1 -1
- package/components/{PlayerAccountModal-d2eY7pgp.js → PlayerAccountModal-CbLpkfXY.js} +28 -28
- package/components/{PlayerAccountNotifications-BkPn9o0x.js → PlayerAccountNotifications-B02Ownhe.js} +16 -16
- package/components/{PlayerAccountNotifications-DwHaboef.js → PlayerAccountNotifications-C-lyz5dM.js} +16 -16
- package/components/{PlayerAccountNotifications-DLpnh54-.cjs → PlayerAccountNotifications-DkgHtUGj.cjs} +1 -1
- package/components/PlayerAccountSelfExclusion-BS89T7sZ.cjs +4171 -0
- package/components/{PlayerAccountSelfExclusion-Dsc1c5ET.js → PlayerAccountSelfExclusion-BkK_LRpi.js} +9840 -9439
- package/components/{PlayerAccountSelfExclusion-C-Gq5xhb.js → PlayerAccountSelfExclusion-D6Kby-08.js} +9320 -8965
- package/components/{PlayerAccountTimeout-DX8TE-kL.cjs → PlayerAccountTimeout-DMbUPtRy.cjs} +1 -1
- package/components/{PlayerAccountTimeout-DPGSPm6O.js → PlayerAccountTimeout-DWNG3Mes.js} +25 -25
- package/components/{PlayerAccountTimeout-BrX6tkl3.js → PlayerAccountTimeout-tPNVqlAT.js} +25 -25
- package/components/PlayerActiveBonuses-B9jz3QD8.cjs +1 -0
- package/components/{PlayerActiveBonuses-DZ1TuekM.js → PlayerActiveBonuses-SCbHFBuw.js} +392 -443
- package/components/{PlayerActiveBonuses-WBu-rYFj.js → PlayerActiveBonuses-dRIcHoZG.js} +415 -466
- package/components/{PlayerBonusCard-BtSC36hN.js → PlayerBonusCard-8uOU9OLG.js} +50 -50
- package/components/{PlayerBonusCard-DqHyFS9o.cjs → PlayerBonusCard-BC8FfHZz.cjs} +1 -1
- package/components/{PlayerBonusCard-Ci1k7NFv.js → PlayerBonusCard-Cppd6wFF.js} +50 -50
- package/components/{PlayerBonusHistory-C7m0o7Yl.js → PlayerBonusHistory-44sPM1i7.js} +30 -30
- package/components/{PlayerBonusHistory-D-qDx10G.cjs → PlayerBonusHistory-D2YSJiqi.cjs} +1 -1
- package/components/{PlayerBonusHistory-DDNLaEBO.js → PlayerBonusHistory-DWvXjCPO.js} +30 -30
- package/components/{PlayerChangePassword-B4VW3taV.cjs → PlayerChangePassword-CzR4Xz0H.cjs} +1 -1
- package/components/{PlayerChangePassword-Bhfh3D2M.js → PlayerChangePassword-N_UEFJNT.js} +103 -103
- package/components/{PlayerChangePassword-Dk7vlEEM.js → PlayerChangePassword-OM9U8MSx.js} +103 -103
- package/components/PlayerDeposit-CwMvcnsj.js +414 -0
- package/components/PlayerDeposit-D_78W5GC.cjs +1 -0
- package/components/PlayerDeposit-Q2N0Y2_v.js +414 -0
- package/components/{PlayerGamingHistory-CaYFZtwD.js → PlayerGamingHistory-BLQD-WyT.js} +54 -54
- package/components/{PlayerGamingHistory-CcFH-mIk.cjs → PlayerGamingHistory-DRkPp9aG.cjs} +1 -1
- package/components/{PlayerGamingHistory-BPF2pyCO.js → PlayerGamingHistory-XiAb60Gu.js} +59 -59
- package/components/{PlayerPendingWithdrawals-BvhoX5n1.cjs → PlayerPendingWithdrawals-BG3I8ifu.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-DQ_Nh38H.js → PlayerPendingWithdrawals-BSTgce9H.js} +33 -33
- package/components/{PlayerPendingWithdrawals-DabTg_Hg.js → PlayerPendingWithdrawals-BsCRRPqb.js} +33 -33
- package/components/{PlayerProfileInfo-B6I2vv_G.js → PlayerProfileInfo-C7zRlD3p.js} +163 -159
- package/components/{PlayerProfileInfo-Bx9bKldG.cjs → PlayerProfileInfo-CGsJydqv.cjs} +1 -1
- package/components/{PlayerProfileInfo-Baoz1CHE.js → PlayerProfileInfo-zmbAMe_l.js} +154 -150
- package/components/{PlayerRealityCheck-6ZyJUl5U.js → PlayerRealityCheck-A_mZq3YZ.js} +27 -27
- package/components/{PlayerRealityCheck-DMI_8YfG.cjs → PlayerRealityCheck-C26ZBWae.cjs} +1 -1
- package/components/{PlayerRealityCheck-CzPyJQgR.js → PlayerRealityCheck-D7u9BzPV.js} +26 -26
- package/components/{PlayerTransactionHistory-Dj8ABxFp.cjs → PlayerTransactionHistory-CJqhYnbs.cjs} +1 -1
- package/components/{PlayerTransactionHistory-CSK3J3Na.js → PlayerTransactionHistory-DllIB_qE.js} +23 -23
- package/components/{PlayerTransactionHistory-DmTfwUdw.js → PlayerTransactionHistory-DsRmd4u6.js} +23 -23
- package/components/{PlayerWithdrawal-BrqShTsy.js → PlayerWithdrawal-CGSnHppy.js} +20 -20
- package/components/{PlayerWithdrawal-BwymNFiL.cjs → PlayerWithdrawal-GDc_7hZX.cjs} +1 -1
- package/components/{PlayerWithdrawal-ct79yXDc.js → PlayerWithdrawal-t5mlX5CD.js} +20 -20
- 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 +1 -1
- package/stencil/{checkbox-group-input_9-9b62GyCW.js → checkbox-group-input_9-Cny9rOs9.js} +2490 -3376
- package/stencil/{checkbox-group-input_9-BDryW6Wx.js → checkbox-group-input_9-DZvX2H_r.js} +2434 -3306
- package/stencil/checkbox-group-input_9-FLO2Qa5Y.cjs +2104 -0
- package/stencil/{general-input-BXIgsD0E.js → general-input-Yj_LRx0v.js} +6 -6
- package/stencil/{general-input-CwyM4h8z.js → general-input-d5RULL12.js} +6 -6
- package/stencil/general-input-igTYIJ6W.cjs +1 -0
- package/stencil/index-0437c9c0-BwGFk0Yq.js +565 -0
- package/stencil/index-0437c9c0-C_oD9Yfn.js +592 -0
- package/stencil/index-0437c9c0-oCxuDVFQ.cjs +1 -0
- package/stencil/index-657e7a14-B7-RqEpB.js +572 -0
- package/stencil/index-657e7a14-CrrA_w_5.cjs +1 -0
- package/stencil/index-657e7a14-DW4SbCqy.js +588 -0
- package/stencil/index-72d2f0c7--qtpsDOz.js +642 -0
- package/stencil/index-72d2f0c7-DldCMjBJ.cjs +1 -0
- package/stencil/index-72d2f0c7-DyMEJXra.js +626 -0
- package/stencil/index-e8249896-BjtvOmsZ.cjs +1 -0
- package/stencil/index-e8249896-CM_igLvD.js +658 -0
- package/stencil/index-e8249896-DW1YiUqn.js +631 -0
- package/stencil/password-input_2-CHOu4hgw.js +1420 -0
- package/stencil/password-input_2-DQAgV1SZ.cjs +896 -0
- package/stencil/password-input_2-DaiHlKbQ.js +1420 -0
- package/stencil/{player-change-password-gm2-2de114b8-j-W8UbVm.cjs → player-change-password-gm2-780eb445-CdItmoKI.cjs} +1 -1
- package/stencil/{player-change-password-gm2-2de114b8-BXdScOXy.js → player-change-password-gm2-780eb445-Cg8Z75Vz.js} +3 -3
- package/stencil/{player-change-password-gm2-2de114b8-D375sYxZ.js → player-change-password-gm2-780eb445-DEjz9Jjk.js} +3 -3
- package/stencil/{player-change-password-gm2-DLw7pfT_.cjs → player-change-password-gm2-BR82_Y4L.cjs} +1 -1
- package/stencil/{player-change-password-gm2-BDCYchnQ.js → player-change-password-gm2-DlMNv4hv.js} +1 -1
- package/stencil/{player-change-password-gm2-CQtvRl58.js → player-change-password-gm2-FHUeecdE.js} +1 -1
- package/stencil/{player-kyc-verification-KcMUMtzd.js → player-kyc-verification-CZy8RShe.js} +43 -43
- package/stencil/{player-kyc-verification-BZX3owFI.js → player-kyc-verification-DuUII5AF.js} +39 -39
- package/stencil/{player-kyc-verification-CnOn9bB_.cjs → player-kyc-verification-DxpMnJ6t.cjs} +2 -2
- package/stencil/{toggle-checkbox-input-BqotLJuA.js → toggle-checkbox-input-Co64_7cm.js} +7 -7
- package/stencil/{toggle-checkbox-input-DFpk-vL2.js → toggle-checkbox-input-ErX2Ngat.js} +7 -7
- package/stencil/toggle-checkbox-input-a_0w-Y0n.cjs +1 -0
- package/stencil/{user-deposit-withdrawal-BZXlCCQr.cjs → user-deposit-withdrawal-Cum51n64.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-6RE0dcHP.js → user-deposit-withdrawal-DRo4MaOR.js} +24 -24
- package/stencil/{user-deposit-withdrawal-D7AuBXPO.js → user-deposit-withdrawal-DsEm--6b.js} +24 -24
- package/stencil/{user-transaction-history-DW482EoT.js → user-transaction-history-BpBJPUwq.js} +10 -10
- package/stencil/{user-transaction-history-CLdEzp7O.cjs → user-transaction-history-C3_7vgUY.cjs} +1 -1
- package/stencil/{user-transaction-history-CtDvqHoF.js → user-transaction-history-ClGHRdoQ.js} +7 -7
- package/stencil/vaadin-button-6001b2a6-C6xw53k5.cjs +3018 -0
- package/stencil/{vaadin-button-mixin-b8087c3c-DMeIIR12.js → vaadin-button-6001b2a6-CZwj1qjO.js} +5818 -5228
- package/stencil/{vaadin-button-mixin-b8087c3c-DTenw4S9.js → vaadin-button-6001b2a6-Dqz5Vp8D.js} +3935 -3299
- package/components/GeneralLogout-CMYMtWfC.cjs +0 -8
- package/components/PlayerAccountSelfExclusion-Dlkeebgy.cjs +0 -3557
- package/components/PlayerActiveBonuses-T1itpvjq.cjs +0 -1
- package/components/PlayerDeposit-B04mpHHT.js +0 -395
- package/components/PlayerDeposit-CH0pw_GN.cjs +0 -1
- package/components/PlayerDeposit-DJXOEJyq.js +0 -395
- package/stencil/checkbox-group-input_9-B0JD93gn.cjs +0 -2045
- package/stencil/general-input-BL1L8PI-.cjs +0 -1
- package/stencil/index-0a27499c-BaAMIKJI.js +0 -724
- package/stencil/index-0a27499c-DaAhyku1.js +0 -697
- package/stencil/index-0a27499c-vG7Av-0V.cjs +0 -1
- package/stencil/index-1d58b17d-BREebYgt.js +0 -658
- package/stencil/index-1d58b17d-CY3tvLdR.js +0 -631
- package/stencil/index-1d58b17d-oagDV-gC.cjs +0 -1
- package/stencil/index-45f4006f-CL2s7me-.cjs +0 -1
- package/stencil/index-45f4006f-D9GyS-vs.js +0 -638
- package/stencil/index-45f4006f-DKAxZFDZ.js +0 -654
- package/stencil/index-92b64862-Bnmv00O2.js +0 -708
- package/stencil/index-92b64862-CK1ANWGa.cjs +0 -1
- package/stencil/index-92b64862-CO3_TP5h.js +0 -692
- package/stencil/password-input_2-B5ePukhS.js +0 -569
- package/stencil/password-input_2-D3ziy4Iu.cjs +0 -105
- package/stencil/password-input_2-ZN0C3aqj.js +0 -569
- package/stencil/toggle-checkbox-input-n5b3s-CU.cjs +0 -1
- package/stencil/vaadin-button-mixin-b8087c3c-BzMgQwsM.cjs +0 -2385
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
import { r as w, c as p, h as a, g as b } from "./index-92b64862-CO3_TP5h.js";
|
|
2
|
-
import { t as o } from "./locale-BG_TzyDt.js";
|
|
3
|
-
import { r as d, f as m, m as y, h, T as x, b as c, i as v, a9 as C, g as F, B as V, o as S, L as k, J as E, aa as I, a as M, q as B, I as R, z as T, n as P, j as g, E as D, P as _ } from "./vaadin-button-mixin-b8087c3c-DTenw4S9.js";
|
|
4
|
-
import { t as A } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
5
|
-
import { P as ae } from "./player-change-password-gm2-2de114b8-D375sYxZ.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", m, {
|
|
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 N = (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._requestValidation();
|
|
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._requestValidation();
|
|
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._requestValidation();
|
|
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 N(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 S(this, (e) => {
|
|
151
|
-
this._setInputElement(e), this._setFocusElement(e), this.stateTarget = e, this.ariaTarget = e;
|
|
152
|
-
})
|
|
153
|
-
), this.addController(new k(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", y, { moduleId: "vaadin-text-field-styles" });
|
|
162
|
-
class f extends $(g(D(_))) {
|
|
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
|
-
/** @protected */
|
|
199
|
-
ready() {
|
|
200
|
-
super.ready(), this._tooltipController = new x(this), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.inputElement), this.addController(this._tooltipController);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
c(f);
|
|
204
|
-
/**
|
|
205
|
-
* @license
|
|
206
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
207
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
208
|
-
*/
|
|
209
|
-
const H = v`
|
|
210
|
-
:host {
|
|
211
|
-
position: absolute;
|
|
212
|
-
right: 0;
|
|
213
|
-
top: 0;
|
|
214
|
-
margin: 0;
|
|
215
|
-
padding: 0;
|
|
216
|
-
width: 100%;
|
|
217
|
-
height: 100%;
|
|
218
|
-
min-width: auto;
|
|
219
|
-
background: transparent;
|
|
220
|
-
outline: none;
|
|
221
|
-
}
|
|
222
|
-
`;
|
|
223
|
-
d("vaadin-password-field-button", [C, H], {
|
|
224
|
-
moduleId: "lumo-password-field-button"
|
|
225
|
-
});
|
|
226
|
-
/**
|
|
227
|
-
* @license
|
|
228
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
229
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
230
|
-
*/
|
|
231
|
-
const L = v`
|
|
232
|
-
[part='reveal-button']::before {
|
|
233
|
-
content: var(--lumo-icons-eye);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
:host([password-visible]) [part='reveal-button']::before {
|
|
237
|
-
content: var(--lumo-icons-eye-disabled);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/* Make it easy to hide the button across the whole app */
|
|
241
|
-
[part='reveal-button'] {
|
|
242
|
-
position: relative;
|
|
243
|
-
display: var(--lumo-password-field-reveal-button-display, block);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
[part='reveal-button'][hidden] {
|
|
247
|
-
display: none !important;
|
|
248
|
-
}
|
|
249
|
-
`;
|
|
250
|
-
d("vaadin-password-field", [m, L], { moduleId: "lumo-password-field" });
|
|
251
|
-
/**
|
|
252
|
-
* @license
|
|
253
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
254
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
255
|
-
*/
|
|
256
|
-
d("vaadin-password-field-button", F, { moduleId: "vaadin-password-field-button-styles" });
|
|
257
|
-
class q extends V(E(g(_))) {
|
|
258
|
-
static get is() {
|
|
259
|
-
return "vaadin-password-field-button";
|
|
260
|
-
}
|
|
261
|
-
static get template() {
|
|
262
|
-
return h``;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
c(q);
|
|
266
|
-
/**
|
|
267
|
-
* @license
|
|
268
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
269
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
270
|
-
*/
|
|
271
|
-
const z = (t) => class extends I(M(B(R(t)))) {
|
|
272
|
-
static get properties() {
|
|
273
|
-
return {
|
|
274
|
-
/**
|
|
275
|
-
* Set to true to hide the eye icon which toggles the password visibility.
|
|
276
|
-
* @attr {boolean} reveal-button-hidden
|
|
277
|
-
*/
|
|
278
|
-
revealButtonHidden: {
|
|
279
|
-
type: Boolean,
|
|
280
|
-
observer: "_revealButtonHiddenChanged",
|
|
281
|
-
value: !1
|
|
282
|
-
},
|
|
283
|
-
/**
|
|
284
|
-
* True if the password is visible ([type=text]).
|
|
285
|
-
* @attr {boolean} password-visible
|
|
286
|
-
*/
|
|
287
|
-
passwordVisible: {
|
|
288
|
-
type: Boolean,
|
|
289
|
-
value: !1,
|
|
290
|
-
reflectToAttribute: !0,
|
|
291
|
-
observer: "_passwordVisibleChanged",
|
|
292
|
-
readOnly: !0
|
|
293
|
-
},
|
|
294
|
-
/**
|
|
295
|
-
* An object with translated strings used for localization.
|
|
296
|
-
* It has the following structure and default values:
|
|
297
|
-
*
|
|
298
|
-
* ```
|
|
299
|
-
* {
|
|
300
|
-
* // Translation of the reveal icon button accessible label
|
|
301
|
-
* reveal: 'Show password'
|
|
302
|
-
* }
|
|
303
|
-
* ```
|
|
304
|
-
*/
|
|
305
|
-
i18n: {
|
|
306
|
-
type: Object,
|
|
307
|
-
value: () => ({
|
|
308
|
-
reveal: "Show password"
|
|
309
|
-
})
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
static get observers() {
|
|
314
|
-
return ["__i18nChanged(i18n)"];
|
|
315
|
-
}
|
|
316
|
-
constructor() {
|
|
317
|
-
super(), this._setType("password"), this.__boundRevealButtonClick = this._onRevealButtonClick.bind(this), this.__boundRevealButtonMouseDown = this._onRevealButtonMouseDown.bind(this), this.__lastChange = "";
|
|
318
|
-
}
|
|
319
|
-
/** @protected */
|
|
320
|
-
get slotStyles() {
|
|
321
|
-
const e = this.localName;
|
|
322
|
-
return [
|
|
323
|
-
...super.slotStyles,
|
|
324
|
-
`
|
|
325
|
-
${e} [slot="input"]::-ms-reveal {
|
|
326
|
-
display: none;
|
|
327
|
-
}
|
|
328
|
-
`
|
|
329
|
-
];
|
|
330
|
-
}
|
|
331
|
-
/** @protected */
|
|
332
|
-
get _revealNode() {
|
|
333
|
-
return this._revealButtonController && this._revealButtonController.node;
|
|
334
|
-
}
|
|
335
|
-
/** @protected */
|
|
336
|
-
ready() {
|
|
337
|
-
super.ready(), this._revealPart = this.shadowRoot.querySelector('[part="reveal-button"]'), this._revealButtonController = new T(this, "reveal", "vaadin-password-field-button", {
|
|
338
|
-
initializer: (e) => {
|
|
339
|
-
e.disabled = this.disabled, e.addEventListener("click", this.__boundRevealButtonClick), e.addEventListener("mousedown", this.__boundRevealButtonMouseDown);
|
|
340
|
-
}
|
|
341
|
-
}), this.addController(this._revealButtonController), this.__updateAriaLabel(this.i18n), this._updateToggleState(!1), this._toggleRevealHidden(this.revealButtonHidden), this.inputElement && (this.inputElement.autocapitalize = "off");
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Override an event listener inherited from `InputControlMixin`
|
|
345
|
-
* to store the value at the moment of the native `change` event.
|
|
346
|
-
* @param {Event} event
|
|
347
|
-
* @protected
|
|
348
|
-
* @override
|
|
349
|
-
*/
|
|
350
|
-
_onChange(e) {
|
|
351
|
-
super._onChange(e), this.__lastChange = this.inputElement.value;
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Override method inherited from `FocusMixin` to mark field as focused
|
|
355
|
-
* when focus moves to the reveal button using Shift Tab.
|
|
356
|
-
* @param {Event} event
|
|
357
|
-
* @return {boolean}
|
|
358
|
-
* @protected
|
|
359
|
-
*/
|
|
360
|
-
_shouldSetFocus(e) {
|
|
361
|
-
return e.target === this.inputElement || e.target === this._revealNode;
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* Override method inherited from `FocusMixin` to not hide password
|
|
365
|
-
* when focus moves to the reveal button or back to the input.
|
|
366
|
-
* @param {Event} event
|
|
367
|
-
* @return {boolean}
|
|
368
|
-
* @protected
|
|
369
|
-
*/
|
|
370
|
-
_shouldRemoveFocus(e) {
|
|
371
|
-
return !(e.relatedTarget === this._revealNode || e.relatedTarget === this.inputElement && e.target === this._revealNode);
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Override method inherited from `FocusMixin` to toggle password visibility.
|
|
375
|
-
* @param {boolean} focused
|
|
376
|
-
* @protected
|
|
377
|
-
* @override
|
|
378
|
-
*/
|
|
379
|
-
_setFocused(e) {
|
|
380
|
-
if (super._setFocused(e), !e)
|
|
381
|
-
this._setPasswordVisible(!1), this.__lastChange !== this.inputElement.value && (this.__lastChange = this.inputElement.value, this.dispatchEvent(new CustomEvent("change", { bubbles: !0 })));
|
|
382
|
-
else {
|
|
383
|
-
const s = this.getRootNode().activeElement === this._revealNode;
|
|
384
|
-
this.toggleAttribute("focus-ring", this._keyboardActive && !s);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
/** @private */
|
|
388
|
-
__updateAriaLabel(e) {
|
|
389
|
-
e && e.reveal && this._revealNode && this._revealNode.setAttribute("aria-label", e.reveal);
|
|
390
|
-
}
|
|
391
|
-
/** @private */
|
|
392
|
-
__i18nChanged(e) {
|
|
393
|
-
this.__updateAriaLabel(e);
|
|
394
|
-
}
|
|
395
|
-
/** @private */
|
|
396
|
-
_revealButtonHiddenChanged(e) {
|
|
397
|
-
this._toggleRevealHidden(e);
|
|
398
|
-
}
|
|
399
|
-
/** @private */
|
|
400
|
-
_togglePasswordVisibility() {
|
|
401
|
-
this._setPasswordVisible(!this.passwordVisible);
|
|
402
|
-
}
|
|
403
|
-
/** @private */
|
|
404
|
-
_onRevealButtonClick() {
|
|
405
|
-
this._togglePasswordVisibility();
|
|
406
|
-
}
|
|
407
|
-
/** @private */
|
|
408
|
-
_onRevealButtonMouseDown(e) {
|
|
409
|
-
e.preventDefault(), this.inputElement.focus();
|
|
410
|
-
}
|
|
411
|
-
/** @private */
|
|
412
|
-
_toggleRevealHidden(e) {
|
|
413
|
-
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")));
|
|
414
|
-
}
|
|
415
|
-
/** @private */
|
|
416
|
-
_updateToggleState(e) {
|
|
417
|
-
this._revealNode && this._revealNode.setAttribute("aria-pressed", e ? "true" : "false");
|
|
418
|
-
}
|
|
419
|
-
/** @private */
|
|
420
|
-
_passwordVisibleChanged(e) {
|
|
421
|
-
this._setType(e ? "text" : "password"), this._updateToggleState(e);
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* Override method inherited from `DisabledMixin` to synchronize the reveal button
|
|
425
|
-
* disabled state with the password field disabled state.
|
|
426
|
-
* @param {boolean} disabled
|
|
427
|
-
* @param {boolean} oldDisabled
|
|
428
|
-
* @protected
|
|
429
|
-
*/
|
|
430
|
-
_disabledChanged(e, s) {
|
|
431
|
-
super._disabledChanged(e, s), this._revealNode && (this._revealNode.disabled = e);
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
/**
|
|
435
|
-
* @license
|
|
436
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
437
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
438
|
-
*/
|
|
439
|
-
const O = h`
|
|
440
|
-
<div part="reveal-button" slot="suffix">
|
|
441
|
-
<slot name="reveal"></slot>
|
|
442
|
-
</div>
|
|
443
|
-
`;
|
|
444
|
-
let u;
|
|
445
|
-
class K extends z(f) {
|
|
446
|
-
static get is() {
|
|
447
|
-
return "vaadin-password-field";
|
|
448
|
-
}
|
|
449
|
-
static get template() {
|
|
450
|
-
if (!u) {
|
|
451
|
-
u = super.template.cloneNode(!0);
|
|
452
|
-
const i = O.content.querySelector('[part="reveal-button"]');
|
|
453
|
-
u.content.querySelector('[part="input-field"]').appendChild(i);
|
|
454
|
-
}
|
|
455
|
-
return u;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
c(K);
|
|
459
|
-
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}', J = j, W = class {
|
|
460
|
-
constructor(t) {
|
|
461
|
-
w(this, t), this.sendOriginalValidityState = p(this, "sendOriginalValidityState"), this.sendValidityState = p(this, "sendValidityState"), this.sendInputValue = p(this, "sendInputValue"), this.defaultValue = "", this.clientStyling = "", this.limitStylingAppends = !1, this.showTooltip = !1, this.value = "", this.touched = !1, this.originalValid = !1, this.validationPattern = "", this.duplicateInputValue = null, this.handleInput = (i) => {
|
|
462
|
-
this.value = i.target.value, this.calculateComplexity(this.value), this.showPopup = !0, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
|
|
463
|
-
this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
|
|
464
|
-
}, 500);
|
|
465
|
-
}, this.handleRevealField = (i) => {
|
|
466
|
-
i.stopPropagation(), window.postMessage({ type: `registrationShow${this.name}` }, window.location.href);
|
|
467
|
-
}, this.handleBlur = (i) => {
|
|
468
|
-
this.value = i.target.value, this.showPopup = !1, this.touched = !0, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage();
|
|
469
|
-
}, this.handleFocus = () => {
|
|
470
|
-
this.showPopup = !0, this.calculateComplexity(this.value);
|
|
471
|
-
}, this.setClientStyling = () => {
|
|
472
|
-
let i = document.createElement("style");
|
|
473
|
-
i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
validityChanged() {
|
|
477
|
-
this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
|
|
478
|
-
}
|
|
479
|
-
valueChanged() {
|
|
480
|
-
this.isDuplicateInput || (this.calculateComplexity(this.value), this.sendOriginalValidityState.emit({ name: this.name, valid: this.setValidity() }));
|
|
481
|
-
}
|
|
482
|
-
emitValueHandler(t) {
|
|
483
|
-
t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value, type: "duplicate" });
|
|
484
|
-
}
|
|
485
|
-
validityStateHandler(t) {
|
|
486
|
-
this.sendValidityState.emit(t);
|
|
487
|
-
}
|
|
488
|
-
valueHandler(t) {
|
|
489
|
-
this.sendInputValue.emit(t);
|
|
490
|
-
}
|
|
491
|
-
originalValidityChangedHandler(t) {
|
|
492
|
-
this.isDuplicateInput && (t.detail.valid ? (this.originalValid = !0, this.isValid = this.setValidity()) : (this.originalValid = !1, this.isValid = !1, this.value !== "" && (this.errorMessage = this.setErrorMessage())));
|
|
493
|
-
}
|
|
494
|
-
valueChangedHandler(t) {
|
|
495
|
-
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());
|
|
496
|
-
}
|
|
497
|
-
handleClickOutside(t) {
|
|
498
|
-
t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
|
|
499
|
-
}
|
|
500
|
-
componentDidRender() {
|
|
501
|
-
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
|
|
502
|
-
}
|
|
503
|
-
componentDidLoad() {
|
|
504
|
-
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) => {
|
|
505
|
-
this.handleRevealField(t);
|
|
506
|
-
}), 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();
|
|
507
|
-
}
|
|
508
|
-
disconnectedCallback() {
|
|
509
|
-
this.passwordButton.removeEventListener("click", this.handleRevealField);
|
|
510
|
-
}
|
|
511
|
-
calculateComplexity(t) {
|
|
512
|
-
this.passwordComplexity = this.validation.custom.filter((i) => i.rule === "regex").map((i) => {
|
|
513
|
-
const s = new RegExp(i.pattern).test(t);
|
|
514
|
-
return { rule: i.displayName, ruleKey: i.errorKey, passed: s };
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
setValidity() {
|
|
518
|
-
var t, i;
|
|
519
|
-
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;
|
|
520
|
-
}
|
|
521
|
-
setPattern() {
|
|
522
|
-
var t, i;
|
|
523
|
-
if (((t = this.validation.custom) === null || t === void 0 ? void 0 : t.length) > 0)
|
|
524
|
-
return (i = this.validation.custom.find((e) => e.rule === "regex")) === null || i === void 0 ? void 0 : i.pattern;
|
|
525
|
-
}
|
|
526
|
-
setErrorMessage() {
|
|
527
|
-
var t, i, e, s;
|
|
528
|
-
if (this.isDuplicateInput && !this.originalValid)
|
|
529
|
-
return o("invalidOriginalPasswordError", this.language);
|
|
530
|
-
if (this.inputReference.validity.patternMismatch) {
|
|
531
|
-
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;
|
|
532
|
-
return o(`${r}`, this.language) ? o(`${r}`, this.language) : n;
|
|
533
|
-
}
|
|
534
|
-
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
|
|
535
|
-
return o("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
536
|
-
if (this.inputReference.validity.valueMissing)
|
|
537
|
-
return o("requiredError", this.language);
|
|
538
|
-
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
539
|
-
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;
|
|
540
|
-
return o(`${r}`, this.language) ? o(`${r}`, this.language) : n;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
renderTooltip() {
|
|
544
|
-
return this.showTooltip ? a("div", { class: `password__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
|
|
545
|
-
}
|
|
546
|
-
renderComplexityPopup() {
|
|
547
|
-
const t = this.passwordComplexity.length, e = this.passwordComplexity.filter((r) => r.passed).length / t, s = this.passwordComplexity.every((r) => r.passed);
|
|
548
|
-
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)))));
|
|
549
|
-
}
|
|
550
|
-
render() {
|
|
551
|
-
let t = "";
|
|
552
|
-
return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), a("div", { key: "c704b51efdf53817beb1541b4794e0b11b490a24", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (i) => this.stylingContainer = i }, a("div", { key: "e590afa403084ff95a8735ade400ab81ad16937f", class: "password__wrapper--flex" }, a("label", { key: "9d8db00b59c4b9594538aeacee3ef5a0e678c0e9", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), a("div", { key: "bb39f6018cf688fafcd0b5bef91ba079edf09daf", class: "password__wrapper--relative" }, this.tooltip && a("img", { key: "d8dbd086da34a8c7db9b5826654530bdb888c927", class: "password__tooltip-icon", src: A, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), a("vaadin-password-field", { key: "ae1c212d663fe379561b1c514087629409196ac3", 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: "2fa1e25239a7314399c16b2f897873b7a31e9f77", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
|
|
553
|
-
}
|
|
554
|
-
get element() {
|
|
555
|
-
return b(this);
|
|
556
|
-
}
|
|
557
|
-
static get watchers() {
|
|
558
|
-
return {
|
|
559
|
-
isValid: ["validityChanged"],
|
|
560
|
-
value: ["valueChanged"],
|
|
561
|
-
emitValue: ["emitValueHandler"]
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
W.style = J;
|
|
566
|
-
export {
|
|
567
|
-
W as password_input,
|
|
568
|
-
ae as player_change_password_gm2
|
|
569
|
-
};
|