@everymatrix/player-account-controller 1.88.13 → 1.88.15
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-DohdTvnB.js → GeneralLogout-CbpSYjc4.js} +1 -1
- package/components/{GeneralLogout-B22hYfkm.cjs → GeneralLogout-DLhgTJlp.cjs} +1 -1
- package/components/{GeneralLogout--AsEuYTN.js → GeneralLogout-DYk7zg5E.js} +1 -1
- package/components/{PlayerAccountBettingHistory-Dv2g1yEF.js → PlayerAccountBettingHistory-BCPCo2J1.js} +1 -1
- package/components/{PlayerAccountBettingHistory-kFtr-0qw.js → PlayerAccountBettingHistory-ClgE2kZP.js} +1 -1
- package/components/{PlayerAccountBettingHistory-ColdLmi9.cjs → PlayerAccountBettingHistory-oyMmu5B-.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DSX1OO2x.js → PlayerAccountBiometrics-3ozR2su6.js} +2 -2
- package/components/{PlayerAccountBiometrics-BqG6I_De.js → PlayerAccountBiometrics-BrFKp3nU.js} +2 -2
- package/components/{PlayerAccountBiometrics-CZRX6A31.cjs → PlayerAccountBiometrics-ON-VvjjF.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-BC50P4qd.js → PlayerAccountBiometricsAction-4LcbhJFB.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-DKiSBVrw.js → PlayerAccountBiometricsAction-BMkPzBdS.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-BjphsoZB.cjs → PlayerAccountBiometricsAction-pLwdDB00.cjs} +1 -1
- package/components/{PlayerAccountClosure-BmAK29Ad.js → PlayerAccountClosure-BHUpz3WZ.js} +1 -1
- package/components/{PlayerAccountClosure-BNbNkqGO.js → PlayerAccountClosure-BXMgg1Uj.js} +1 -1
- package/components/{PlayerAccountClosure-B10I-u66.cjs → PlayerAccountClosure-CsPg8qzV.cjs} +1 -1
- package/components/{PlayerAccountController-BG1Iaz1o.js → PlayerAccountController-BFN0kyo8.js} +24 -24
- package/components/{PlayerAccountController-B8ZGkfNT.js → PlayerAccountController-BksazbG4.js} +24 -24
- package/components/{PlayerAccountController-Db8LzVzu.cjs → PlayerAccountController-CVKhXL9-.cjs} +2 -2
- package/components/{PlayerAccountGamingLimits-CQLp3OIS.js → PlayerAccountGamingLimits-B2yKlI5D.js} +2 -2
- package/components/{PlayerAccountGamingLimits-_cVdGK1I.js → PlayerAccountGamingLimits-COAixXSx.js} +2 -2
- package/components/{PlayerAccountGamingLimits-Br6E09Yw.cjs → PlayerAccountGamingLimits-DOAkdsVa.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-B1tkNNLh.cjs → PlayerAccountGamingLimitsConfirmationModal-BowXKUtp.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DOuBtWYo.js → PlayerAccountGamingLimitsConfirmationModal-CmEIIMz6.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-C49nhwH2.js → PlayerAccountGamingLimitsConfirmationModal-Xzhw8yOQ.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BB103lWP.js → PlayerAccountGamingLimitsGroupEdit-DhDjt5zM.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-B_NdfHks.js → PlayerAccountGamingLimitsGroupEdit-Httzqk1a.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-DwQCentc.cjs → PlayerAccountGamingLimitsGroupEdit-fKmbPZhi.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-BfwEjPrl.js → PlayerAccountGamingLimitsHistory2-CVzKujO5.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-CVrBwrym.js → PlayerAccountGamingLimitsHistory2-CbcEg95T.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-DrTolBWj.cjs → PlayerAccountGamingLimitsHistory2-DoETcErZ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BrbxlUTD.cjs → PlayerAccountGamingLimitsInfoCard-De-8L4_F.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-rvMDc2P0.js → PlayerAccountGamingLimitsInfoCard-DwMMe7h1.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-DaDdAppF.js → PlayerAccountGamingLimitsInfoCard-ju6bQWwS.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-RYPUQ8_y.js → PlayerAccountGamingLimitsPage2Gm16-DVbWI-DZ.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Chz1QH1U.js → PlayerAccountGamingLimitsPage2Gm16-DZd-mzr8.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Dmux5Voq.cjs → PlayerAccountGamingLimitsPage2Gm16-D_Oy_k9p.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-C6z39Gaw.js → PlayerAccountGamingLimitsPopup-CofiPTxO.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BVQTEfRk.js → PlayerAccountGamingLimitsPopup-a1QRvil9.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-DE2CE-7n.cjs → PlayerAccountGamingLimitsPopup-faLC9TR7.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-pDoDhETn.js → PlayerAccountGamingLimitsWrapper2-B2ucztOT.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-CJxIxKex.cjs → PlayerAccountGamingLimitsWrapper2-BXreTyp7.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-CLTckJkA.js → PlayerAccountGamingLimitsWrapper2-Df6vsR-t.js} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-CDvogjRn.cjs → PlayerAccountGeneralConfirmationModal-BSN55_yV.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-CRMLpKr_.js → PlayerAccountGeneralConfirmationModal-Bvj9WTg8.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-dlFpykpk.js → PlayerAccountGeneralConfirmationModal-CyZwdqhH.js} +1 -1
- package/components/{PlayerAccountMenu-C7WVCv57.cjs → PlayerAccountMenu-BJkiTAWE.cjs} +1 -1
- package/components/{PlayerAccountMenu-XyqNOLqq.js → PlayerAccountMenu-CjhNpxm1.js} +2 -2
- package/components/{PlayerAccountMenu-Cp9atAIS.js → PlayerAccountMenu-D94HnFsv.js} +2 -2
- package/components/{PlayerAccountModal-DWF5oIi6.js → PlayerAccountModal-BhYxs0J_.js} +1 -1
- package/components/{PlayerAccountModal-CaRN_fC1.cjs → PlayerAccountModal-D5FzkEAN.cjs} +1 -1
- package/components/{PlayerAccountModal-vsVV7nLv.js → PlayerAccountModal-WeulhqYg.js} +1 -1
- package/components/{PlayerAccountNotifications-BpL2TwI7.js → PlayerAccountNotifications-B_EgSCxT.js} +1 -1
- package/components/{PlayerAccountNotifications-CWMVve3C.cjs → PlayerAccountNotifications-Bi9zwnaY.cjs} +1 -1
- package/components/{PlayerAccountNotifications-LchexivI.js → PlayerAccountNotifications-LiX8IjFT.js} +1 -1
- package/components/{PlayerAccountProductRestriction-DlF4xrtx.cjs → PlayerAccountProductRestriction-BCMZCDZU.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-B6zc1ji3.js → PlayerAccountProductRestriction-CFUBOq9g.js} +3 -3
- package/components/{PlayerAccountProductRestriction-Ce32dP-B.js → PlayerAccountProductRestriction-H_C8A6Tm.js} +3 -3
- package/components/{PlayerAccountReviewFrequency-Cqhzsz9_.cjs → PlayerAccountReviewFrequency-C4jMJeCs.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-SDMdG3LF.js → PlayerAccountReviewFrequency-C7sIafuV.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-CUjwONdK.js → PlayerAccountReviewFrequency-_cGXXJRN.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-C9YHmEeS.js → PlayerAccountSelfExclusion-C2fXa5KA.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-Bio_Jj_w.js → PlayerAccountSelfExclusion-CK8-IH6m.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-DADfB-fj.cjs → PlayerAccountSelfExclusion-COQXAVoD.cjs} +1 -1
- package/components/{PlayerAccountTimeout-Dzi7SXyx.cjs → PlayerAccountTimeout-6JGF2kMG.cjs} +2 -2
- package/components/{PlayerAccountTimeout-CdJcWPoY.js → PlayerAccountTimeout-BaS8VvW5.js} +3 -3
- package/components/{PlayerAccountTimeout-D0k-yAzk.js → PlayerAccountTimeout-CQevTzMy.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-BwgJsAj9.js → PlayerAccountTransactionsHistory-B_7OoCXV.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-_CTZLOnQ.js → PlayerAccountTransactionsHistory-CENqTl6O.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-BnKz1BjO.cjs → PlayerAccountTransactionsHistory-CJ93EkXk.cjs} +1 -1
- package/components/{PlayerActiveBonuses-CDv2Y2LE.js → PlayerActiveBonuses-BgK6GQpf.js} +2 -2
- package/components/{PlayerActiveBonuses-KHRTFJdZ.cjs → PlayerActiveBonuses-CSHcsHhB.cjs} +1 -1
- package/components/{PlayerActiveBonuses-DLlpYcDM.js → PlayerActiveBonuses-DVwOLZTI.js} +2 -2
- package/components/{PlayerBonusCard-Dq1Plngo.js → PlayerBonusCard-0ek7gT4e.js} +2 -2
- package/components/{PlayerBonusCard-zLbw-zMe.js → PlayerBonusCard-B7NJ3uHS.js} +2 -2
- package/components/{PlayerBonusCard-B4QYqh9i.cjs → PlayerBonusCard-CwoSa__a.cjs} +1 -1
- package/components/{PlayerBonusHistory-DF9L-vis.js → PlayerBonusHistory-B6PxcL63.js} +2 -2
- package/components/{PlayerBonusHistory-B_I-7bsl.cjs → PlayerBonusHistory-CU-ycC8z.cjs} +1 -1
- package/components/{PlayerBonusHistory-HXot3N-c.js → PlayerBonusHistory-DREgq4BV.js} +2 -2
- package/components/{PlayerChangePassword-1N4a6fl6.cjs → PlayerChangePassword-B7mQZpA8.cjs} +1 -1
- package/components/{PlayerChangePassword-COGiHToa.js → PlayerChangePassword-DgPVCgkv.js} +1 -1
- package/components/{PlayerChangePassword-DrSwPT7Q.js → PlayerChangePassword-Dqxj7126.js} +1 -1
- package/components/{PlayerDeposit-BM7_MPKA.js → PlayerDeposit-BUBUM7Vx.js} +1 -1
- package/components/{PlayerDeposit-B0hpMUQZ.cjs → PlayerDeposit-BrMHhDuQ.cjs} +1 -1
- package/components/{PlayerDeposit-DjzJUD74.js → PlayerDeposit-D1OkH9OC.js} +1 -1
- package/components/{PlayerGamingHistory-gQit4MNT.js → PlayerGamingHistory-BRhUZZ0E.js} +3 -3
- package/components/{PlayerGamingHistory-BOLTtbud.js → PlayerGamingHistory-DV6NKwNx.js} +3 -3
- package/components/{PlayerGamingHistory-DdVZ6L4J.cjs → PlayerGamingHistory-FHiEvnjD.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-LkE0SA9R.cjs → PlayerPendingWithdrawals-BpOdaer2.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-DrhU9QS9.js → PlayerPendingWithdrawals-BvvwlNFQ.js} +1 -1
- package/components/{PlayerPendingWithdrawals-C-Q14tr9.js → PlayerPendingWithdrawals-CtLpKbx-.js} +1 -1
- package/components/{PlayerProfileInfo-CYKqe3YQ.js → PlayerProfileInfo-D2HnLjM2.js} +2 -2
- package/components/{PlayerProfileInfo-yEn6gwAE.js → PlayerProfileInfo-D7wSvmQ3.js} +2 -2
- package/components/{PlayerProfileInfo-D6-lFO8R.cjs → PlayerProfileInfo-IlDil_rA.cjs} +2 -2
- package/components/{PlayerRealityCheck-DkqG3WZx.cjs → PlayerRealityCheck-D2rYBKYn.cjs} +1 -1
- package/components/{PlayerRealityCheck-IWcnNnUV.js → PlayerRealityCheck-D_HoLb3t.js} +1 -1
- package/components/{PlayerRealityCheck-DeZnELVa.js → PlayerRealityCheck-Dy8HGS9C.js} +1 -1
- package/components/{PlayerTransactionHistory-DbiCqA7B.js → PlayerTransactionHistory-BnwWFzJg.js} +1 -1
- package/components/{PlayerTransactionHistory-ChOF7V_m.cjs → PlayerTransactionHistory-CMWixeh4.cjs} +1 -1
- package/components/{PlayerTransactionHistory-Bnm2QFlP.js → PlayerTransactionHistory-Cdc8BjRK.js} +1 -1
- package/components/{PlayerWithdrawal-QfO2NMT3.js → PlayerWithdrawal-DEnEOaYn.js} +1 -1
- package/components/{PlayerWithdrawal-DROc3Y6I.js → PlayerWithdrawal-HJm-RvPt.js} +1 -1
- package/components/{PlayerWithdrawal-6Bo9llYK.cjs → PlayerWithdrawal-lnhZEyVc.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 +1 -1
- package/stencil/{checkbox-group-input_16-Cr-8Deok.js → checkbox-group-input_16-BRWhf2kd.js} +444 -417
- package/stencil/{checkbox-group-input_16-B5krEBar.cjs → checkbox-group-input_16-CVisNOsA.cjs} +65 -65
- package/stencil/{checkbox-group-input_16-DYsXmYiw.js → checkbox-group-input_16-DERCYTuD.js} +444 -417
- package/stencil/{index-9c0f6c58-CGnN9UdB.js → index-9c0f6c58-D7TwZQBD.js} +1 -1
- package/stencil/{index-9c0f6c58-CWbWCRYV.js → index-9c0f6c58-DLtRG1IG.js} +1 -1
- package/stencil/{index-9c0f6c58-DmNyK26v.cjs → index-9c0f6c58-OZ3FNbU1.cjs} +1 -1
- package/stencil/{index-c666b6e6-TJNoh3po.js → index-c666b6e6-0o4yiNRv.js} +1 -1
- package/stencil/{index-c666b6e6-BcuDjnrv.cjs → index-c666b6e6-70EcL6Jm.cjs} +1 -1
- package/stencil/{index-c666b6e6-BTlMMlQk.js → index-c666b6e6-ACBx6wFh.js} +1 -1
- package/stencil/{pam-change-password-121f4e26-CYSMgND6.js → pam-change-password-121f4e26-Cb4GZR5d.js} +1 -1
- package/stencil/{pam-change-password-121f4e26-BjrDTiWY.js → pam-change-password-121f4e26-CtSw3Qan.js} +1 -1
- package/stencil/{pam-change-password-121f4e26-Dfjmvzbv.cjs → pam-change-password-121f4e26-Dot95D3Z.cjs} +1 -1
- package/stencil/{pam-change-password-Bj2I29y7.js → pam-change-password-9sqObKZ8.js} +1 -1
- package/stencil/{pam-change-password-D6zP6teo.cjs → pam-change-password-CN_oqF9U.cjs} +1 -1
- package/stencil/{pam-change-password-DceySfCL.js → pam-change-password-CwxYjnD7.js} +1 -1
- package/stencil/{player-kyc-verification-CgfRuE57.cjs → player-kyc-verification-DV7KHNHP.cjs} +2 -2
- package/stencil/{player-kyc-verification-BPMSQ7ct.js → player-kyc-verification-Dzul5VDy.js} +91 -27
- package/stencil/{player-kyc-verification-DQ9aChj3.js → player-kyc-verification-Jx0eG0Dz.js} +100 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ee, c as P, h as u, g as Mt, H as Ao } from "./index-c666b6e6-
|
|
2
|
-
import { P as dv } from "./pam-change-password-121f4e26-
|
|
3
|
-
const Ns = "en",
|
|
1
|
+
import { r as ee, c as P, h as u, g as Mt, H as Ao } from "./index-c666b6e6-0o4yiNRv.js";
|
|
2
|
+
import { P as dv } from "./pam-change-password-121f4e26-Cb4GZR5d.js";
|
|
3
|
+
const Ns = "en", Ee = {
|
|
4
4
|
en: {
|
|
5
5
|
dateError: "The selected date should be between {min} and {max}",
|
|
6
6
|
dateError2: "The selected date is not within the accepted range",
|
|
@@ -35,7 +35,9 @@ const Ns = "en", ke = {
|
|
|
35
35
|
SAIdInvalidError: "Invalid SA ID",
|
|
36
36
|
PassportLengthError: "Passport number must be 8 or 9 digits.",
|
|
37
37
|
PasswordMustContain: "Password must contain:",
|
|
38
|
-
AlphanumericalOnly: "Only alphanumerical characters are allowed"
|
|
38
|
+
AlphanumericalOnly: "Only alphanumerical characters are allowed",
|
|
39
|
+
InvalidFirstName: "Only alphabetic characters are allowed.",
|
|
40
|
+
InvalidLastName: "Only alphabetic characters are allowed."
|
|
39
41
|
},
|
|
40
42
|
hu: {
|
|
41
43
|
dateError: "A választott dátumnak {min} és {max} között kell lennie",
|
|
@@ -68,7 +70,9 @@ const Ns = "en", ke = {
|
|
|
68
70
|
SAIdLengthError: "A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",
|
|
69
71
|
SAIdInvalidError: "Érvénytelen dél-afrikai személyi szám",
|
|
70
72
|
PasswordMustContain: "A jelszónak tartalmaznia kell:",
|
|
71
|
-
AlphanumericalOnly: "Csak alfanumerikus karakterek engedélyezettek"
|
|
73
|
+
AlphanumericalOnly: "Csak alfanumerikus karakterek engedélyezettek",
|
|
74
|
+
InvalidFirstName: "Csak betűk engedélyezettek.",
|
|
75
|
+
InvalidLastName: "Csak betűk engedélyezettek."
|
|
72
76
|
},
|
|
73
77
|
hr: {
|
|
74
78
|
dateError: "Odabrani datum treba biti između {min} i {max}",
|
|
@@ -101,7 +105,9 @@ const Ns = "en", ke = {
|
|
|
101
105
|
SAIdLengthError: "Južnoafrički osobni broj mora imati 13 znamenki",
|
|
102
106
|
SAIdInvalidError: "Nevažeći južnoafrički osobni broj",
|
|
103
107
|
PasswordMustContain: "Lozinka mora sadržavati:",
|
|
104
|
-
AlphanumericalOnly: "Dopušteni su samo alfanumerički znakovi"
|
|
108
|
+
AlphanumericalOnly: "Dopušteni su samo alfanumerički znakovi",
|
|
109
|
+
InvalidFirstName: "Dozvoljena su samo slova.",
|
|
110
|
+
InvalidLastName: "Dozvoljena su samo slova."
|
|
105
111
|
},
|
|
106
112
|
tr: {
|
|
107
113
|
dateError: "Seçilen tarih {min} ve {max} arasında olmalıdır",
|
|
@@ -134,7 +140,9 @@ const Ns = "en", ke = {
|
|
|
134
140
|
SAIdLengthError: "Güney Afrika kimlik numarası 13 haneli olmalıdır",
|
|
135
141
|
SAIdInvalidError: "Geçersiz Güney Afrika kimlik numarası",
|
|
136
142
|
PasswordMustContain: "Şifre şunları içermelidir:",
|
|
137
|
-
AlphanumericalOnly: "Yalnızca alfanümerik karakterlere izin verilir"
|
|
143
|
+
AlphanumericalOnly: "Yalnızca alfanümerik karakterlere izin verilir",
|
|
144
|
+
InvalidFirstName: "Yalnızca alfabetik karakterlere izin verilir.",
|
|
145
|
+
InvalidLastName: "Yalnızca alfabetik karakterlere izin verilir."
|
|
138
146
|
},
|
|
139
147
|
"pt-br": {
|
|
140
148
|
dateError: "A data selecionada deve estar entre {min} e {max}",
|
|
@@ -167,7 +175,9 @@ const Ns = "en", ke = {
|
|
|
167
175
|
SAIdLengthError: "O número de identificação da África do Sul deve ter 13 dígitos",
|
|
168
176
|
SAIdInvalidError: "Número de identificação da África do Sul inválido",
|
|
169
177
|
PasswordMustContain: "A senha deve conter:",
|
|
170
|
-
AlphanumericalOnly: "Apenas caracteres alfanuméricos são permitidos"
|
|
178
|
+
AlphanumericalOnly: "Apenas caracteres alfanuméricos são permitidos",
|
|
179
|
+
InvalidFirstName: "Apenas caracteres alfabéticos são permitidos.",
|
|
180
|
+
InvalidLastName: "Apenas caracteres alfabéticos são permitidos."
|
|
171
181
|
},
|
|
172
182
|
pt: {
|
|
173
183
|
dateError: "A data selecionada deve estar entre {min} e {max}",
|
|
@@ -202,7 +212,9 @@ const Ns = "en", ke = {
|
|
|
202
212
|
SAIdInvalidError: "ID da África do Sul inválido",
|
|
203
213
|
PassportLengthError: "O número de passaporte deve ter 8 ou 9 dígitos.",
|
|
204
214
|
PasswordMustContain: "A palavra-passe deve conter:",
|
|
205
|
-
AlphanumericalOnly: "Apenas caracteres alfanuméricos são permitidos"
|
|
215
|
+
AlphanumericalOnly: "Apenas caracteres alfanuméricos são permitidos",
|
|
216
|
+
InvalidFirstName: "Apenas caracteres alfabéticos são permitidos.",
|
|
217
|
+
InvalidLastName: "Apenas caracteres alfabéticos são permitidos."
|
|
206
218
|
},
|
|
207
219
|
"es-mx": {
|
|
208
220
|
dateError: "La fecha seleccionada debe ser entre {min} y {max}",
|
|
@@ -235,7 +247,9 @@ const Ns = "en", ke = {
|
|
|
235
247
|
SAIdLengthError: "El número de identificación de Sudáfrica debe tener 13 dígitos",
|
|
236
248
|
SAIdInvalidError: "Número de identificación de Sudáfrica inválido",
|
|
237
249
|
PasswordMustContain: "La contraseña debe contener:",
|
|
238
|
-
AlphanumericalOnly: "Solo se permiten caracteres alfanuméricos"
|
|
250
|
+
AlphanumericalOnly: "Solo se permiten caracteres alfanuméricos",
|
|
251
|
+
InvalidFirstName: "Solo se permiten caracteres alfabéticos.",
|
|
252
|
+
InvalidLastName: "Solo se permiten caracteres alfabéticos."
|
|
239
253
|
},
|
|
240
254
|
fr: {
|
|
241
255
|
dateError: "La date sélectionnée doit être comprise entre {min} et {max}",
|
|
@@ -271,7 +285,9 @@ const Ns = "en", ke = {
|
|
|
271
285
|
SAIdInvalidError: "Identifiant sud-africain invalide",
|
|
272
286
|
PassportLengthError: "Le numéro de passeport doit comporter 8 ou 9 chiffres.",
|
|
273
287
|
PasswordMustContain: "Le mot de passe doit contenir :",
|
|
274
|
-
AlphanumericalOnly: "Seuls les caractères alphanumériques sont autorisés"
|
|
288
|
+
AlphanumericalOnly: "Seuls les caractères alphanumériques sont autorisés",
|
|
289
|
+
InvalidFirstName: "Seuls les caractères alphabétiques sont autorisés.",
|
|
290
|
+
InvalidLastName: "Seuls les caractères alphabétiques sont autorisés."
|
|
275
291
|
}
|
|
276
292
|
}, Q = {
|
|
277
293
|
DOCUMENT_NUMBER: "DocumentNumber",
|
|
@@ -287,7 +303,7 @@ const Ns = "en", ke = {
|
|
|
287
303
|
DATE_FORMAT: "yyyy-MM-dd",
|
|
288
304
|
PASSWORD_COMPLEXITY_PASSED: "passed",
|
|
289
305
|
PASSWORD_COMPLEXITY_FAILED: "failed"
|
|
290
|
-
},
|
|
306
|
+
}, de = {
|
|
291
307
|
PASSPORT_INVALID: "PassportLengthError",
|
|
292
308
|
SA_ID_LENGTH: "SAIdLengthError",
|
|
293
309
|
SA_ID_INVALID: "SAIdInvalidError",
|
|
@@ -299,7 +315,7 @@ const Ns = "en", ke = {
|
|
|
299
315
|
FAILED: "✕"
|
|
300
316
|
}, b = (i, e, t) => {
|
|
301
317
|
const r = e;
|
|
302
|
-
let a =
|
|
318
|
+
let a = Ee[r] ? Ee[r][i] : Ee[Ns][i];
|
|
303
319
|
if (t !== void 0)
|
|
304
320
|
for (const [o, n] of Object.entries(t.values)) {
|
|
305
321
|
const s = new RegExp(`{${o}}`, "g");
|
|
@@ -309,9 +325,9 @@ const Ns = "en", ke = {
|
|
|
309
325
|
}, Ls = (i) => new Promise((e) => {
|
|
310
326
|
fetch(i).then((t) => t.json()).then((t) => {
|
|
311
327
|
Object.keys(t).forEach((r) => {
|
|
312
|
-
|
|
328
|
+
Ee[r] = Ee[r] || {};
|
|
313
329
|
for (let a in t[r])
|
|
314
|
-
typeof t[r][a] == "string" && (
|
|
330
|
+
typeof t[r][a] == "string" && (Ee[r] = Ee[r] || {}, Ee[r][a] = t[r][a]);
|
|
315
331
|
}), e(!0);
|
|
316
332
|
});
|
|
317
333
|
}), zs = (i) => {
|
|
@@ -326,7 +342,7 @@ const Ns = "en", ke = {
|
|
|
326
342
|
r += e[l];
|
|
327
343
|
const o = (parseInt(r, 10) * 2).toString().split("").reduce((l, d) => l + parseInt(d, 10), 0);
|
|
328
344
|
return (10 - (t + o) % 10) % 10 === e[12];
|
|
329
|
-
},
|
|
345
|
+
}, he = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==", Rs = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}', Fs = Rs, $s = class {
|
|
330
346
|
constructor(i) {
|
|
331
347
|
ee(this, i), this.sendValidityState = P(this, "sendValidityState"), this.sendInputValue = P(this, "sendInputValue"), this.value = null, this.setClientStyling = () => {
|
|
332
348
|
let e = document.createElement("style");
|
|
@@ -379,7 +395,7 @@ const Ns = "en", ke = {
|
|
|
379
395
|
return u("label", { class: "checkbox__label", htmlFor: `${this.name}__input`, slot: "label" }, u("div", { class: "checkbox__label-text", innerHTML: `${this.displayName} ${this.validation.mandatory ? "*" : ""}` }));
|
|
380
396
|
}
|
|
381
397
|
render() {
|
|
382
|
-
return u("div", { key: "9985f4050655bc2233090f63abb0e22f2fe0b556", class: `checkboxgroup__wrapper ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("div", { key: "9922e45ae7ee74b137ffc8552b3d714b7e3b1f59", class: "checkboxgroup__wrapper--flex" }, u("vaadin-checkbox", { key: "f18bae7c3ee6df76edcde75924eb1ad51a227443", class: "checkbox__input", checked: this.selectedValues.length === this.options.length || this.defaultValue === "true", indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, onChange: (i) => this.handleParentCheckbox(i) }, this.renderLabel()), this.tooltip && u("img", { key: "3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b", class: "checkboxgroup__tooltip-icon", src:
|
|
398
|
+
return u("div", { key: "9985f4050655bc2233090f63abb0e22f2fe0b556", class: `checkboxgroup__wrapper ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("div", { key: "9922e45ae7ee74b137ffc8552b3d714b7e3b1f59", class: "checkboxgroup__wrapper--flex" }, u("vaadin-checkbox", { key: "f18bae7c3ee6df76edcde75924eb1ad51a227443", class: "checkbox__input", checked: this.selectedValues.length === this.options.length || this.defaultValue === "true", indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, onChange: (i) => this.handleParentCheckbox(i) }, this.renderLabel()), this.tooltip && u("img", { key: "3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b", class: "checkboxgroup__tooltip-icon", src: he, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), u("small", { key: "d55f25f75aa20007ff58cf45b6632517f49b6c00", class: "checkboxgroup__error-message" }, this.errorMessage), this.showCheckboxes && u("vaadin-checkbox-group", { key: "210c3cc2868a07a403494e04336c4f3091eea0e4", theme: "vertical", value: this.selectedValues, "on-value-changed": (i) => {
|
|
383
399
|
this.selectedValues = i.detail.value;
|
|
384
400
|
} }, this.options.map((i) => u("vaadin-checkbox", { class: "checkbox__input", name: i.name, value: i.name, label: i.displayName }))));
|
|
385
401
|
}
|
|
@@ -449,7 +465,7 @@ const Hs = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.check
|
|
|
449
465
|
return this.showTooltip ? u("div", { class: `checkbox__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (i) => this.tooltipReference = i, innerHTML: this.tooltip }) : null;
|
|
450
466
|
}
|
|
451
467
|
render() {
|
|
452
|
-
return u("div", { key: "80ed581cec5bb009ea5ea009f11c6453fe24ef7b", class: `checkbox__wrapper ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("vaadin-checkbox", { key: "42d793f607af77435f629218f9bdac7736522bc3", class: "checkbox__input", required: this.validation.mandatory, checked: this.defaultValue === "true", onChange: (i) => this.handleCheckbox(i), "error-message": !this.isValid && this.errorMessage, ref: (i) => this.vaadinCheckbox = i }, this.renderLabel()), this.tooltip && u("img", { key: "ce3870810ede8f3905fd8c07c0892ab0d909bab5", class: "checkboxgroup__tooltip-icon", src:
|
|
468
|
+
return u("div", { key: "80ed581cec5bb009ea5ea009f11c6453fe24ef7b", class: `checkbox__wrapper ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("vaadin-checkbox", { key: "42d793f607af77435f629218f9bdac7736522bc3", class: "checkbox__input", required: this.validation.mandatory, checked: this.defaultValue === "true", onChange: (i) => this.handleCheckbox(i), "error-message": !this.isValid && this.errorMessage, ref: (i) => this.vaadinCheckbox = i }, this.renderLabel()), this.tooltip && u("img", { key: "ce3870810ede8f3905fd8c07c0892ab0d909bab5", class: "checkboxgroup__tooltip-icon", src: he, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
453
469
|
}
|
|
454
470
|
static get watchers() {
|
|
455
471
|
return {
|
|
@@ -460,25 +476,25 @@ const Hs = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.check
|
|
|
460
476
|
}
|
|
461
477
|
};
|
|
462
478
|
Us.style = Bs;
|
|
463
|
-
function
|
|
479
|
+
function we(i) {
|
|
464
480
|
"@babel/helpers - typeof";
|
|
465
|
-
return
|
|
481
|
+
return we = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
466
482
|
return typeof e;
|
|
467
483
|
} : function(e) {
|
|
468
484
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
469
|
-
},
|
|
485
|
+
}, we(i);
|
|
470
486
|
}
|
|
471
487
|
function F(i, e) {
|
|
472
488
|
if (e.length < i)
|
|
473
489
|
throw new TypeError(i + " argument" + (i > 1 ? "s" : "") + " required, but only " + e.length + " present");
|
|
474
490
|
}
|
|
475
491
|
function qs(i) {
|
|
476
|
-
return F(1, arguments), i instanceof Date ||
|
|
492
|
+
return F(1, arguments), i instanceof Date || we(i) === "object" && Object.prototype.toString.call(i) === "[object Date]";
|
|
477
493
|
}
|
|
478
494
|
function q(i) {
|
|
479
495
|
F(1, arguments);
|
|
480
496
|
var e = Object.prototype.toString.call(i);
|
|
481
|
-
return i instanceof Date ||
|
|
497
|
+
return i instanceof Date || we(i) === "object" && e === "[object Date]" ? new Date(i.getTime()) : typeof i == "number" || e === "[object Number]" ? new Date(i) : ((typeof i == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
482
498
|
}
|
|
483
499
|
function To(i) {
|
|
484
500
|
if (F(1, arguments), !qs(i) && typeof i != "number")
|
|
@@ -541,7 +557,7 @@ var Xs = {};
|
|
|
541
557
|
function it() {
|
|
542
558
|
return Xs;
|
|
543
559
|
}
|
|
544
|
-
function
|
|
560
|
+
function ze(i, e) {
|
|
545
561
|
var t, r, a, o, n, s, l, d;
|
|
546
562
|
F(1, arguments);
|
|
547
563
|
var h = it(), c = ie((t = (r = (a = (o = e?.weekStartsOn) !== null && o !== void 0 ? o : e == null || (n = e.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && a !== void 0 ? a : h.weekStartsOn) !== null && r !== void 0 ? r : (l = h.locale) === null || l === void 0 || (d = l.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
@@ -558,9 +574,9 @@ function kr(i, e) {
|
|
|
558
574
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
559
575
|
var y = /* @__PURE__ */ new Date(0);
|
|
560
576
|
y.setUTCFullYear(c + 1, 0, m), y.setUTCHours(0, 0, 0, 0);
|
|
561
|
-
var L =
|
|
577
|
+
var L = ze(y, e), O = /* @__PURE__ */ new Date(0);
|
|
562
578
|
O.setUTCFullYear(c, 0, m), O.setUTCHours(0, 0, 0, 0);
|
|
563
|
-
var V =
|
|
579
|
+
var V = ze(O, e);
|
|
564
580
|
return h.getTime() >= L.getTime() ? c + 1 : h.getTime() >= V.getTime() ? c : c - 1;
|
|
565
581
|
}
|
|
566
582
|
function Qs(i, e) {
|
|
@@ -568,13 +584,13 @@ function Qs(i, e) {
|
|
|
568
584
|
F(1, arguments);
|
|
569
585
|
var h = it(), c = ie((t = (r = (a = (o = e?.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (n = e.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && a !== void 0 ? a : h.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = h.locale) === null || l === void 0 || (d = l.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = kr(i, e), m = /* @__PURE__ */ new Date(0);
|
|
570
586
|
m.setUTCFullYear(p, 0, c), m.setUTCHours(0, 0, 0, 0);
|
|
571
|
-
var y =
|
|
587
|
+
var y = ze(m, e);
|
|
572
588
|
return y;
|
|
573
589
|
}
|
|
574
590
|
var Js = 6048e5;
|
|
575
591
|
function Vo(i, e) {
|
|
576
592
|
F(1, arguments);
|
|
577
|
-
var t = q(i), r =
|
|
593
|
+
var t = q(i), r = ze(t, e).getTime() - Qs(t, e).getTime();
|
|
578
594
|
return Math.round(r / Js) + 1;
|
|
579
595
|
}
|
|
580
596
|
function M(i, e) {
|
|
@@ -635,7 +651,7 @@ var Zs = {
|
|
|
635
651
|
return M(o, t.length);
|
|
636
652
|
}
|
|
637
653
|
};
|
|
638
|
-
const
|
|
654
|
+
const ke = Zs;
|
|
639
655
|
var Ue = {
|
|
640
656
|
midnight: "midnight",
|
|
641
657
|
noon: "noon",
|
|
@@ -673,7 +689,7 @@ var Ue = {
|
|
|
673
689
|
unit: "year"
|
|
674
690
|
});
|
|
675
691
|
}
|
|
676
|
-
return
|
|
692
|
+
return ke.y(e, t);
|
|
677
693
|
},
|
|
678
694
|
// Local week-numbering year
|
|
679
695
|
Y: function(e, t, r, a) {
|
|
@@ -770,7 +786,7 @@ var Ue = {
|
|
|
770
786
|
switch (t) {
|
|
771
787
|
case "M":
|
|
772
788
|
case "MM":
|
|
773
|
-
return
|
|
789
|
+
return ke.M(e, t);
|
|
774
790
|
case "Mo":
|
|
775
791
|
return r.ordinalNumber(a + 1, {
|
|
776
792
|
unit: "month"
|
|
@@ -841,7 +857,7 @@ var Ue = {
|
|
|
841
857
|
d: function(e, t, r) {
|
|
842
858
|
return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
|
|
843
859
|
unit: "date"
|
|
844
|
-
}) :
|
|
860
|
+
}) : ke.d(e, t);
|
|
845
861
|
},
|
|
846
862
|
// Day of year
|
|
847
863
|
D: function(e, t, r) {
|
|
@@ -1072,13 +1088,13 @@ var Ue = {
|
|
|
1072
1088
|
unit: "hour"
|
|
1073
1089
|
});
|
|
1074
1090
|
}
|
|
1075
|
-
return
|
|
1091
|
+
return ke.h(e, t);
|
|
1076
1092
|
},
|
|
1077
1093
|
// Hour [0-23]
|
|
1078
1094
|
H: function(e, t, r) {
|
|
1079
1095
|
return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
|
|
1080
1096
|
unit: "hour"
|
|
1081
|
-
}) :
|
|
1097
|
+
}) : ke.H(e, t);
|
|
1082
1098
|
},
|
|
1083
1099
|
// Hour [0-11]
|
|
1084
1100
|
K: function(e, t, r) {
|
|
@@ -1098,17 +1114,17 @@ var Ue = {
|
|
|
1098
1114
|
m: function(e, t, r) {
|
|
1099
1115
|
return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
|
|
1100
1116
|
unit: "minute"
|
|
1101
|
-
}) :
|
|
1117
|
+
}) : ke.m(e, t);
|
|
1102
1118
|
},
|
|
1103
1119
|
// Second
|
|
1104
1120
|
s: function(e, t, r) {
|
|
1105
1121
|
return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
|
|
1106
1122
|
unit: "second"
|
|
1107
|
-
}) :
|
|
1123
|
+
}) : ke.s(e, t);
|
|
1108
1124
|
},
|
|
1109
1125
|
// Fraction of second
|
|
1110
1126
|
S: function(e, t) {
|
|
1111
|
-
return
|
|
1127
|
+
return ke.S(e, t);
|
|
1112
1128
|
},
|
|
1113
1129
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1114
1130
|
X: function(e, t, r, a) {
|
|
@@ -1120,11 +1136,11 @@ var Ue = {
|
|
|
1120
1136
|
return ya(n);
|
|
1121
1137
|
case "XXXX":
|
|
1122
1138
|
case "XX":
|
|
1123
|
-
return
|
|
1139
|
+
return Oe(n);
|
|
1124
1140
|
case "XXXXX":
|
|
1125
1141
|
case "XXX":
|
|
1126
1142
|
default:
|
|
1127
|
-
return
|
|
1143
|
+
return Oe(n, ":");
|
|
1128
1144
|
}
|
|
1129
1145
|
},
|
|
1130
1146
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1135,11 +1151,11 @@ var Ue = {
|
|
|
1135
1151
|
return ya(n);
|
|
1136
1152
|
case "xxxx":
|
|
1137
1153
|
case "xx":
|
|
1138
|
-
return
|
|
1154
|
+
return Oe(n);
|
|
1139
1155
|
case "xxxxx":
|
|
1140
1156
|
case "xxx":
|
|
1141
1157
|
default:
|
|
1142
|
-
return
|
|
1158
|
+
return Oe(n, ":");
|
|
1143
1159
|
}
|
|
1144
1160
|
},
|
|
1145
1161
|
// Timezone (GMT)
|
|
@@ -1152,7 +1168,7 @@ var Ue = {
|
|
|
1152
1168
|
return "GMT" + ba(n, ":");
|
|
1153
1169
|
case "OOOO":
|
|
1154
1170
|
default:
|
|
1155
|
-
return "GMT" +
|
|
1171
|
+
return "GMT" + Oe(n, ":");
|
|
1156
1172
|
}
|
|
1157
1173
|
},
|
|
1158
1174
|
// Timezone (specific non-location)
|
|
@@ -1165,7 +1181,7 @@ var Ue = {
|
|
|
1165
1181
|
return "GMT" + ba(n, ":");
|
|
1166
1182
|
case "zzzz":
|
|
1167
1183
|
default:
|
|
1168
|
-
return "GMT" +
|
|
1184
|
+
return "GMT" + Oe(n, ":");
|
|
1169
1185
|
}
|
|
1170
1186
|
},
|
|
1171
1187
|
// Seconds timestamp
|
|
@@ -1191,9 +1207,9 @@ function ya(i, e) {
|
|
|
1191
1207
|
var t = i > 0 ? "-" : "+";
|
|
1192
1208
|
return t + M(Math.abs(i) / 60, 2);
|
|
1193
1209
|
}
|
|
1194
|
-
return
|
|
1210
|
+
return Oe(i, e);
|
|
1195
1211
|
}
|
|
1196
|
-
function
|
|
1212
|
+
function Oe(i, e) {
|
|
1197
1213
|
var t = e || "", r = i > 0 ? "-" : "+", a = Math.abs(i), o = M(Math.floor(a / 60), 2), n = M(a % 60, 2);
|
|
1198
1214
|
return r + o + t + n;
|
|
1199
1215
|
}
|
|
@@ -1546,9 +1562,9 @@ function ct(i) {
|
|
|
1546
1562
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, a = r && i.matchPatterns[r] || i.matchPatterns[i.defaultMatchWidth], o = e.match(a);
|
|
1547
1563
|
if (!o)
|
|
1548
1564
|
return null;
|
|
1549
|
-
var n = o[0], s = r && i.parsePatterns[r] || i.parsePatterns[i.defaultParseWidth], l = Array.isArray(s) ?
|
|
1565
|
+
var n = o[0], s = r && i.parsePatterns[r] || i.parsePatterns[i.defaultParseWidth], l = Array.isArray(s) ? Sl(s, function(c) {
|
|
1550
1566
|
return c.test(n);
|
|
1551
|
-
}) :
|
|
1567
|
+
}) : Il(s, function(c) {
|
|
1552
1568
|
return c.test(n);
|
|
1553
1569
|
}), d;
|
|
1554
1570
|
d = i.valueCallback ? i.valueCallback(l) : l, d = t.valueCallback ? t.valueCallback(d) : d;
|
|
@@ -1559,12 +1575,12 @@ function ct(i) {
|
|
|
1559
1575
|
};
|
|
1560
1576
|
};
|
|
1561
1577
|
}
|
|
1562
|
-
function
|
|
1578
|
+
function Il(i, e) {
|
|
1563
1579
|
for (var t in i)
|
|
1564
1580
|
if (i.hasOwnProperty(t) && e(i[t]))
|
|
1565
1581
|
return t;
|
|
1566
1582
|
}
|
|
1567
|
-
function
|
|
1583
|
+
function Sl(i, e) {
|
|
1568
1584
|
for (var t = 0; t < i.length; t++)
|
|
1569
1585
|
if (e(i[t]))
|
|
1570
1586
|
return t;
|
|
@@ -1690,26 +1706,26 @@ function xa(i, e, t) {
|
|
|
1690
1706
|
var V = String(e), A = it(), j = (r = (a = void 0) !== null && a !== void 0 ? a : A.locale) !== null && r !== void 0 ? r : Ro, W = ie((o = (n = (s = (l = void 0) !== null && l !== void 0 ? l : void 0) !== null && s !== void 0 ? s : A.firstWeekContainsDate) !== null && n !== void 0 ? n : (d = A.locale) === null || d === void 0 || (h = d.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
1691
1707
|
if (!(W >= 1 && W <= 7))
|
|
1692
1708
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1693
|
-
var
|
|
1694
|
-
if (!(
|
|
1709
|
+
var ce = ie((c = (p = (m = (y = void 0) !== null && y !== void 0 ? y : void 0) !== null && m !== void 0 ? m : A.weekStartsOn) !== null && p !== void 0 ? p : (L = A.locale) === null || L === void 0 || (O = L.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && c !== void 0 ? c : 0);
|
|
1710
|
+
if (!(ce >= 0 && ce <= 6))
|
|
1695
1711
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1696
1712
|
if (!j.localize)
|
|
1697
1713
|
throw new RangeError("locale must contain localize property");
|
|
1698
1714
|
if (!j.formatLong)
|
|
1699
1715
|
throw new RangeError("locale must contain formatLong property");
|
|
1700
|
-
var
|
|
1701
|
-
if (!To(
|
|
1716
|
+
var Ce = q(i);
|
|
1717
|
+
if (!To(Ce))
|
|
1702
1718
|
throw new RangeError("Invalid time value");
|
|
1703
|
-
var nt = No(
|
|
1719
|
+
var nt = No(Ce), st = Po(Ce, nt), lt = {
|
|
1704
1720
|
firstWeekContainsDate: W,
|
|
1705
|
-
weekStartsOn:
|
|
1721
|
+
weekStartsOn: ce,
|
|
1706
1722
|
locale: j,
|
|
1707
|
-
_originalDate:
|
|
1723
|
+
_originalDate: Ce
|
|
1708
1724
|
}, Oi = V.match(jl).map(function(K) {
|
|
1709
1725
|
var re = K[0];
|
|
1710
1726
|
if (re === "p" || re === "P") {
|
|
1711
|
-
var
|
|
1712
|
-
return
|
|
1727
|
+
var Pe = Qi[re];
|
|
1728
|
+
return Pe(K, j.formatLong);
|
|
1713
1729
|
}
|
|
1714
1730
|
return K;
|
|
1715
1731
|
}).join("").match(ql).map(function(K) {
|
|
@@ -1718,9 +1734,9 @@ function xa(i, e, t) {
|
|
|
1718
1734
|
var re = K[0];
|
|
1719
1735
|
if (re === "'")
|
|
1720
1736
|
return Kl(K);
|
|
1721
|
-
var
|
|
1722
|
-
if (
|
|
1723
|
-
return zo(K) && ri(K, e, String(i)), Lo(K) && ri(K, e, String(i)),
|
|
1737
|
+
var Pe = tl[re];
|
|
1738
|
+
if (Pe)
|
|
1739
|
+
return zo(K) && ri(K, e, String(i)), Lo(K) && ri(K, e, String(i)), Pe(st, K, j.localize, lt);
|
|
1724
1740
|
if (re.match(Gl))
|
|
1725
1741
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + re + "`");
|
|
1726
1742
|
return K;
|
|
@@ -1810,7 +1826,7 @@ function Ji(i, e) {
|
|
|
1810
1826
|
return t.__proto__ = r, t;
|
|
1811
1827
|
}, Ji(i, e);
|
|
1812
1828
|
}
|
|
1813
|
-
function
|
|
1829
|
+
function I(i, e) {
|
|
1814
1830
|
if (typeof e != "function" && e !== null)
|
|
1815
1831
|
throw new TypeError("Super expression must either be null or a function");
|
|
1816
1832
|
i.prototype = Object.create(e && e.prototype, {
|
|
@@ -1839,13 +1855,13 @@ function Fo() {
|
|
|
1839
1855
|
})();
|
|
1840
1856
|
}
|
|
1841
1857
|
function Jl(i, e) {
|
|
1842
|
-
if (e && (
|
|
1858
|
+
if (e && (we(e) == "object" || typeof e == "function"))
|
|
1843
1859
|
return e;
|
|
1844
1860
|
if (e !== void 0)
|
|
1845
1861
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1846
1862
|
return _(i);
|
|
1847
1863
|
}
|
|
1848
|
-
function
|
|
1864
|
+
function S(i) {
|
|
1849
1865
|
var e = Fo();
|
|
1850
1866
|
return function() {
|
|
1851
1867
|
var t, r = ai(i);
|
|
@@ -1862,12 +1878,12 @@ function x(i, e) {
|
|
|
1862
1878
|
throw new TypeError("Cannot call a class as a function");
|
|
1863
1879
|
}
|
|
1864
1880
|
function Zl(i, e) {
|
|
1865
|
-
if (
|
|
1881
|
+
if (we(i) != "object" || !i)
|
|
1866
1882
|
return i;
|
|
1867
1883
|
var t = i[Symbol.toPrimitive];
|
|
1868
1884
|
if (t !== void 0) {
|
|
1869
1885
|
var r = t.call(i, e);
|
|
1870
|
-
if (
|
|
1886
|
+
if (we(r) != "object")
|
|
1871
1887
|
return r;
|
|
1872
1888
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1873
1889
|
}
|
|
@@ -1875,7 +1891,7 @@ function Zl(i, e) {
|
|
|
1875
1891
|
}
|
|
1876
1892
|
function $o(i) {
|
|
1877
1893
|
var e = Zl(i, "string");
|
|
1878
|
-
return
|
|
1894
|
+
return we(e) == "symbol" ? e : e + "";
|
|
1879
1895
|
}
|
|
1880
1896
|
function ed(i, e) {
|
|
1881
1897
|
for (var t = 0; t < e.length; t++) {
|
|
@@ -1907,8 +1923,8 @@ var td = 10, Ho = /* @__PURE__ */ function() {
|
|
|
1907
1923
|
}
|
|
1908
1924
|
}]), i;
|
|
1909
1925
|
}(), id = /* @__PURE__ */ function(i) {
|
|
1910
|
-
|
|
1911
|
-
var e =
|
|
1926
|
+
I(t, i);
|
|
1927
|
+
var e = S(t);
|
|
1912
1928
|
function t(r, a, o, n, s) {
|
|
1913
1929
|
var l;
|
|
1914
1930
|
return x(this, t), l = e.call(this), l.value = r, l.validateValue = a, l.setValue = o, l.priority = n, s && (l.subPriority = s), l;
|
|
@@ -1925,8 +1941,8 @@ var td = 10, Ho = /* @__PURE__ */ function() {
|
|
|
1925
1941
|
}
|
|
1926
1942
|
}]), t;
|
|
1927
1943
|
}(Ho), rd = /* @__PURE__ */ function(i) {
|
|
1928
|
-
|
|
1929
|
-
var e =
|
|
1944
|
+
I(t, i);
|
|
1945
|
+
var e = S(t);
|
|
1930
1946
|
function t() {
|
|
1931
1947
|
var r;
|
|
1932
1948
|
x(this, t);
|
|
@@ -1963,8 +1979,8 @@ var td = 10, Ho = /* @__PURE__ */ function() {
|
|
|
1963
1979
|
}
|
|
1964
1980
|
}]), i;
|
|
1965
1981
|
}(), ad = /* @__PURE__ */ function(i) {
|
|
1966
|
-
|
|
1967
|
-
var e =
|
|
1982
|
+
I(t, i);
|
|
1983
|
+
var e = S(t);
|
|
1968
1984
|
function t() {
|
|
1969
1985
|
var r;
|
|
1970
1986
|
x(this, t);
|
|
@@ -2043,7 +2059,7 @@ var td = 10, Ho = /* @__PURE__ */ function() {
|
|
|
2043
2059
|
// 0 to 999, -0 to -999
|
|
2044
2060
|
fourDigitsSigned: /^-?\d{1,4}/
|
|
2045
2061
|
// 0 to 9999, -0 to -9999
|
|
2046
|
-
},
|
|
2062
|
+
}, me = {
|
|
2047
2063
|
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
2048
2064
|
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
2049
2065
|
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
@@ -2063,7 +2079,7 @@ function R(i, e) {
|
|
|
2063
2079
|
rest: e.slice(t[0].length)
|
|
2064
2080
|
} : null;
|
|
2065
2081
|
}
|
|
2066
|
-
function
|
|
2082
|
+
function fe(i, e) {
|
|
2067
2083
|
var t = e.match(i);
|
|
2068
2084
|
if (!t)
|
|
2069
2085
|
return null;
|
|
@@ -2140,8 +2156,8 @@ function qo(i) {
|
|
|
2140
2156
|
return i % 400 === 0 || i % 4 === 0 && i % 100 !== 0;
|
|
2141
2157
|
}
|
|
2142
2158
|
var ld = /* @__PURE__ */ function(i) {
|
|
2143
|
-
|
|
2144
|
-
var e =
|
|
2159
|
+
I(t, i);
|
|
2160
|
+
var e = S(t);
|
|
2145
2161
|
function t() {
|
|
2146
2162
|
var r;
|
|
2147
2163
|
x(this, t);
|
|
@@ -2187,8 +2203,8 @@ var ld = /* @__PURE__ */ function(i) {
|
|
|
2187
2203
|
}
|
|
2188
2204
|
}]), t;
|
|
2189
2205
|
}(D), dd = /* @__PURE__ */ function(i) {
|
|
2190
|
-
|
|
2191
|
-
var e =
|
|
2206
|
+
I(t, i);
|
|
2207
|
+
var e = S(t);
|
|
2192
2208
|
function t() {
|
|
2193
2209
|
var r;
|
|
2194
2210
|
x(this, t);
|
|
@@ -2227,15 +2243,15 @@ var ld = /* @__PURE__ */ function(i) {
|
|
|
2227
2243
|
var l = kr(a, s);
|
|
2228
2244
|
if (n.isTwoDigitYear) {
|
|
2229
2245
|
var d = Uo(n.year, l);
|
|
2230
|
-
return a.setUTCFullYear(d, 0, s.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0),
|
|
2246
|
+
return a.setUTCFullYear(d, 0, s.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), ze(a, s);
|
|
2231
2247
|
}
|
|
2232
2248
|
var h = !("era" in o) || o.era === 1 ? n.year : 1 - n.year;
|
|
2233
|
-
return a.setUTCFullYear(h, 0, s.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0),
|
|
2249
|
+
return a.setUTCFullYear(h, 0, s.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), ze(a, s);
|
|
2234
2250
|
}
|
|
2235
2251
|
}]), t;
|
|
2236
2252
|
}(D), hd = /* @__PURE__ */ function(i) {
|
|
2237
|
-
|
|
2238
|
-
var e =
|
|
2253
|
+
I(t, i);
|
|
2254
|
+
var e = S(t);
|
|
2239
2255
|
function t() {
|
|
2240
2256
|
var r;
|
|
2241
2257
|
x(this, t);
|
|
@@ -2256,8 +2272,8 @@ var ld = /* @__PURE__ */ function(i) {
|
|
|
2256
2272
|
}
|
|
2257
2273
|
}]), t;
|
|
2258
2274
|
}(D), cd = /* @__PURE__ */ function(i) {
|
|
2259
|
-
|
|
2260
|
-
var e =
|
|
2275
|
+
I(t, i);
|
|
2276
|
+
var e = S(t);
|
|
2261
2277
|
function t() {
|
|
2262
2278
|
var r;
|
|
2263
2279
|
x(this, t);
|
|
@@ -2277,8 +2293,8 @@ var ld = /* @__PURE__ */ function(i) {
|
|
|
2277
2293
|
}
|
|
2278
2294
|
}]), t;
|
|
2279
2295
|
}(D), ud = /* @__PURE__ */ function(i) {
|
|
2280
|
-
|
|
2281
|
-
var e =
|
|
2296
|
+
I(t, i);
|
|
2297
|
+
var e = S(t);
|
|
2282
2298
|
function t() {
|
|
2283
2299
|
var r;
|
|
2284
2300
|
x(this, t);
|
|
@@ -2336,8 +2352,8 @@ var ld = /* @__PURE__ */ function(i) {
|
|
|
2336
2352
|
}
|
|
2337
2353
|
}]), t;
|
|
2338
2354
|
}(D), pd = /* @__PURE__ */ function(i) {
|
|
2339
|
-
|
|
2340
|
-
var e =
|
|
2355
|
+
I(t, i);
|
|
2356
|
+
var e = S(t);
|
|
2341
2357
|
function t() {
|
|
2342
2358
|
var r;
|
|
2343
2359
|
x(this, t);
|
|
@@ -2395,8 +2411,8 @@ var ld = /* @__PURE__ */ function(i) {
|
|
|
2395
2411
|
}
|
|
2396
2412
|
}]), t;
|
|
2397
2413
|
}(D), md = /* @__PURE__ */ function(i) {
|
|
2398
|
-
|
|
2399
|
-
var e =
|
|
2414
|
+
I(t, i);
|
|
2415
|
+
var e = S(t);
|
|
2400
2416
|
function t() {
|
|
2401
2417
|
var r;
|
|
2402
2418
|
x(this, t);
|
|
@@ -2458,8 +2474,8 @@ var ld = /* @__PURE__ */ function(i) {
|
|
|
2458
2474
|
}
|
|
2459
2475
|
}]), t;
|
|
2460
2476
|
}(D), fd = /* @__PURE__ */ function(i) {
|
|
2461
|
-
|
|
2462
|
-
var e =
|
|
2477
|
+
I(t, i);
|
|
2478
|
+
var e = S(t);
|
|
2463
2479
|
function t() {
|
|
2464
2480
|
var r;
|
|
2465
2481
|
x(this, t);
|
|
@@ -2527,8 +2543,8 @@ function vd(i, e, t) {
|
|
|
2527
2543
|
return r.setUTCDate(r.getUTCDate() - o * 7), r;
|
|
2528
2544
|
}
|
|
2529
2545
|
var _d = /* @__PURE__ */ function(i) {
|
|
2530
|
-
|
|
2531
|
-
var e =
|
|
2546
|
+
I(t, i);
|
|
2547
|
+
var e = S(t);
|
|
2532
2548
|
function t() {
|
|
2533
2549
|
var r;
|
|
2534
2550
|
x(this, t);
|
|
@@ -2558,7 +2574,7 @@ var _d = /* @__PURE__ */ function(i) {
|
|
|
2558
2574
|
}, {
|
|
2559
2575
|
key: "set",
|
|
2560
2576
|
value: function(a, o, n, s) {
|
|
2561
|
-
return
|
|
2577
|
+
return ze(vd(a, n, s), s);
|
|
2562
2578
|
}
|
|
2563
2579
|
}]), t;
|
|
2564
2580
|
}(D);
|
|
@@ -2568,8 +2584,8 @@ function gd(i, e) {
|
|
|
2568
2584
|
return t.setUTCDate(t.getUTCDate() - a * 7), t;
|
|
2569
2585
|
}
|
|
2570
2586
|
var bd = /* @__PURE__ */ function(i) {
|
|
2571
|
-
|
|
2572
|
-
var e =
|
|
2587
|
+
I(t, i);
|
|
2588
|
+
var e = S(t);
|
|
2573
2589
|
function t() {
|
|
2574
2590
|
var r;
|
|
2575
2591
|
x(this, t);
|
|
@@ -2603,8 +2619,8 @@ var bd = /* @__PURE__ */ function(i) {
|
|
|
2603
2619
|
}
|
|
2604
2620
|
}]), t;
|
|
2605
2621
|
}(D), yd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], wd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], xd = /* @__PURE__ */ function(i) {
|
|
2606
|
-
|
|
2607
|
-
var e =
|
|
2622
|
+
I(t, i);
|
|
2623
|
+
var e = S(t);
|
|
2608
2624
|
function t() {
|
|
2609
2625
|
var r;
|
|
2610
2626
|
x(this, t);
|
|
@@ -2639,8 +2655,8 @@ var bd = /* @__PURE__ */ function(i) {
|
|
|
2639
2655
|
}
|
|
2640
2656
|
}]), t;
|
|
2641
2657
|
}(D), Cd = /* @__PURE__ */ function(i) {
|
|
2642
|
-
|
|
2643
|
-
var e =
|
|
2658
|
+
I(t, i);
|
|
2659
|
+
var e = S(t);
|
|
2644
2660
|
function t() {
|
|
2645
2661
|
var r;
|
|
2646
2662
|
x(this, t);
|
|
@@ -2676,7 +2692,7 @@ var bd = /* @__PURE__ */ function(i) {
|
|
|
2676
2692
|
}
|
|
2677
2693
|
}]), t;
|
|
2678
2694
|
}(D);
|
|
2679
|
-
function
|
|
2695
|
+
function Ir(i, e, t) {
|
|
2680
2696
|
var r, a, o, n, s, l, d, h;
|
|
2681
2697
|
F(2, arguments);
|
|
2682
2698
|
var c = it(), p = ie((r = (a = (o = (n = t?.weekStartsOn) !== null && n !== void 0 ? n : t == null || (s = t.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && o !== void 0 ? o : c.weekStartsOn) !== null && a !== void 0 ? a : (d = c.locale) === null || d === void 0 || (h = d.options) === null || h === void 0 ? void 0 : h.weekStartsOn) !== null && r !== void 0 ? r : 0);
|
|
@@ -2686,8 +2702,8 @@ function Sr(i, e, t) {
|
|
|
2686
2702
|
return m.setUTCDate(m.getUTCDate() + A), m;
|
|
2687
2703
|
}
|
|
2688
2704
|
var kd = /* @__PURE__ */ function(i) {
|
|
2689
|
-
|
|
2690
|
-
var e =
|
|
2705
|
+
I(t, i);
|
|
2706
|
+
var e = S(t);
|
|
2691
2707
|
function t() {
|
|
2692
2708
|
var r;
|
|
2693
2709
|
x(this, t);
|
|
@@ -2750,12 +2766,12 @@ var kd = /* @__PURE__ */ function(i) {
|
|
|
2750
2766
|
}, {
|
|
2751
2767
|
key: "set",
|
|
2752
2768
|
value: function(a, o, n, s) {
|
|
2753
|
-
return a =
|
|
2769
|
+
return a = Ir(a, n, s), a.setUTCHours(0, 0, 0, 0), a;
|
|
2754
2770
|
}
|
|
2755
2771
|
}]), t;
|
|
2756
2772
|
}(D), Ed = /* @__PURE__ */ function(i) {
|
|
2757
|
-
|
|
2758
|
-
var e =
|
|
2773
|
+
I(t, i);
|
|
2774
|
+
var e = S(t);
|
|
2759
2775
|
function t() {
|
|
2760
2776
|
var r;
|
|
2761
2777
|
x(this, t);
|
|
@@ -2827,12 +2843,12 @@ var kd = /* @__PURE__ */ function(i) {
|
|
|
2827
2843
|
}, {
|
|
2828
2844
|
key: "set",
|
|
2829
2845
|
value: function(a, o, n, s) {
|
|
2830
|
-
return a =
|
|
2846
|
+
return a = Ir(a, n, s), a.setUTCHours(0, 0, 0, 0), a;
|
|
2831
2847
|
}
|
|
2832
2848
|
}]), t;
|
|
2833
|
-
}(D),
|
|
2834
|
-
|
|
2835
|
-
var e =
|
|
2849
|
+
}(D), Id = /* @__PURE__ */ function(i) {
|
|
2850
|
+
I(t, i);
|
|
2851
|
+
var e = S(t);
|
|
2836
2852
|
function t() {
|
|
2837
2853
|
var r;
|
|
2838
2854
|
x(this, t);
|
|
@@ -2904,11 +2920,11 @@ var kd = /* @__PURE__ */ function(i) {
|
|
|
2904
2920
|
}, {
|
|
2905
2921
|
key: "set",
|
|
2906
2922
|
value: function(a, o, n, s) {
|
|
2907
|
-
return a =
|
|
2923
|
+
return a = Ir(a, n, s), a.setUTCHours(0, 0, 0, 0), a;
|
|
2908
2924
|
}
|
|
2909
2925
|
}]), t;
|
|
2910
2926
|
}(D);
|
|
2911
|
-
function
|
|
2927
|
+
function Sd(i, e) {
|
|
2912
2928
|
F(2, arguments);
|
|
2913
2929
|
var t = ie(e);
|
|
2914
2930
|
t % 7 === 0 && (t = t - 7);
|
|
@@ -2916,8 +2932,8 @@ function Id(i, e) {
|
|
|
2916
2932
|
return a.setUTCDate(a.getUTCDate() + l), a;
|
|
2917
2933
|
}
|
|
2918
2934
|
var Ad = /* @__PURE__ */ function(i) {
|
|
2919
|
-
|
|
2920
|
-
var e =
|
|
2935
|
+
I(t, i);
|
|
2936
|
+
var e = S(t);
|
|
2921
2937
|
function t() {
|
|
2922
2938
|
var r;
|
|
2923
2939
|
x(this, t);
|
|
@@ -2988,12 +3004,12 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
2988
3004
|
}, {
|
|
2989
3005
|
key: "set",
|
|
2990
3006
|
value: function(a, o, n) {
|
|
2991
|
-
return a =
|
|
3007
|
+
return a = Sd(a, n), a.setUTCHours(0, 0, 0, 0), a;
|
|
2992
3008
|
}
|
|
2993
3009
|
}]), t;
|
|
2994
3010
|
}(D), Td = /* @__PURE__ */ function(i) {
|
|
2995
|
-
|
|
2996
|
-
var e =
|
|
3011
|
+
I(t, i);
|
|
3012
|
+
var e = S(t);
|
|
2997
3013
|
function t() {
|
|
2998
3014
|
var r;
|
|
2999
3015
|
x(this, t);
|
|
@@ -3041,8 +3057,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3041
3057
|
}
|
|
3042
3058
|
}]), t;
|
|
3043
3059
|
}(D), Pd = /* @__PURE__ */ function(i) {
|
|
3044
|
-
|
|
3045
|
-
var e =
|
|
3060
|
+
I(t, i);
|
|
3061
|
+
var e = S(t);
|
|
3046
3062
|
function t() {
|
|
3047
3063
|
var r;
|
|
3048
3064
|
x(this, t);
|
|
@@ -3090,8 +3106,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3090
3106
|
}
|
|
3091
3107
|
}]), t;
|
|
3092
3108
|
}(D), Dd = /* @__PURE__ */ function(i) {
|
|
3093
|
-
|
|
3094
|
-
var e =
|
|
3109
|
+
I(t, i);
|
|
3110
|
+
var e = S(t);
|
|
3095
3111
|
function t() {
|
|
3096
3112
|
var r;
|
|
3097
3113
|
x(this, t);
|
|
@@ -3139,8 +3155,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3139
3155
|
}
|
|
3140
3156
|
}]), t;
|
|
3141
3157
|
}(D), Od = /* @__PURE__ */ function(i) {
|
|
3142
|
-
|
|
3143
|
-
var e =
|
|
3158
|
+
I(t, i);
|
|
3159
|
+
var e = S(t);
|
|
3144
3160
|
function t() {
|
|
3145
3161
|
var r;
|
|
3146
3162
|
x(this, t);
|
|
@@ -3175,8 +3191,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3175
3191
|
}
|
|
3176
3192
|
}]), t;
|
|
3177
3193
|
}(D), Vd = /* @__PURE__ */ function(i) {
|
|
3178
|
-
|
|
3179
|
-
var e =
|
|
3194
|
+
I(t, i);
|
|
3195
|
+
var e = S(t);
|
|
3180
3196
|
function t() {
|
|
3181
3197
|
var r;
|
|
3182
3198
|
x(this, t);
|
|
@@ -3210,8 +3226,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3210
3226
|
}
|
|
3211
3227
|
}]), t;
|
|
3212
3228
|
}(D), Md = /* @__PURE__ */ function(i) {
|
|
3213
|
-
|
|
3214
|
-
var e =
|
|
3229
|
+
I(t, i);
|
|
3230
|
+
var e = S(t);
|
|
3215
3231
|
function t() {
|
|
3216
3232
|
var r;
|
|
3217
3233
|
x(this, t);
|
|
@@ -3246,8 +3262,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3246
3262
|
}
|
|
3247
3263
|
}]), t;
|
|
3248
3264
|
}(D), Nd = /* @__PURE__ */ function(i) {
|
|
3249
|
-
|
|
3250
|
-
var e =
|
|
3265
|
+
I(t, i);
|
|
3266
|
+
var e = S(t);
|
|
3251
3267
|
function t() {
|
|
3252
3268
|
var r;
|
|
3253
3269
|
x(this, t);
|
|
@@ -3282,8 +3298,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3282
3298
|
}
|
|
3283
3299
|
}]), t;
|
|
3284
3300
|
}(D), Ld = /* @__PURE__ */ function(i) {
|
|
3285
|
-
|
|
3286
|
-
var e =
|
|
3301
|
+
I(t, i);
|
|
3302
|
+
var e = S(t);
|
|
3287
3303
|
function t() {
|
|
3288
3304
|
var r;
|
|
3289
3305
|
x(this, t);
|
|
@@ -3317,8 +3333,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3317
3333
|
}
|
|
3318
3334
|
}]), t;
|
|
3319
3335
|
}(D), zd = /* @__PURE__ */ function(i) {
|
|
3320
|
-
|
|
3321
|
-
var e =
|
|
3336
|
+
I(t, i);
|
|
3337
|
+
var e = S(t);
|
|
3322
3338
|
function t() {
|
|
3323
3339
|
var r;
|
|
3324
3340
|
x(this, t);
|
|
@@ -3352,8 +3368,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3352
3368
|
}
|
|
3353
3369
|
}]), t;
|
|
3354
3370
|
}(D), Rd = /* @__PURE__ */ function(i) {
|
|
3355
|
-
|
|
3356
|
-
var e =
|
|
3371
|
+
I(t, i);
|
|
3372
|
+
var e = S(t);
|
|
3357
3373
|
function t() {
|
|
3358
3374
|
var r;
|
|
3359
3375
|
x(this, t);
|
|
@@ -3376,8 +3392,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3376
3392
|
}
|
|
3377
3393
|
}]), t;
|
|
3378
3394
|
}(D), Fd = /* @__PURE__ */ function(i) {
|
|
3379
|
-
|
|
3380
|
-
var e =
|
|
3395
|
+
I(t, i);
|
|
3396
|
+
var e = S(t);
|
|
3381
3397
|
function t() {
|
|
3382
3398
|
var r;
|
|
3383
3399
|
x(this, t);
|
|
@@ -3390,16 +3406,16 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3390
3406
|
value: function(a, o) {
|
|
3391
3407
|
switch (o) {
|
|
3392
3408
|
case "X":
|
|
3393
|
-
return me
|
|
3409
|
+
return fe(me.basicOptionalMinutes, a);
|
|
3394
3410
|
case "XX":
|
|
3395
|
-
return me
|
|
3411
|
+
return fe(me.basic, a);
|
|
3396
3412
|
case "XXXX":
|
|
3397
|
-
return me
|
|
3413
|
+
return fe(me.basicOptionalSeconds, a);
|
|
3398
3414
|
case "XXXXX":
|
|
3399
|
-
return me
|
|
3415
|
+
return fe(me.extendedOptionalSeconds, a);
|
|
3400
3416
|
case "XXX":
|
|
3401
3417
|
default:
|
|
3402
|
-
return me
|
|
3418
|
+
return fe(me.extended, a);
|
|
3403
3419
|
}
|
|
3404
3420
|
}
|
|
3405
3421
|
}, {
|
|
@@ -3409,8 +3425,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3409
3425
|
}
|
|
3410
3426
|
}]), t;
|
|
3411
3427
|
}(D), $d = /* @__PURE__ */ function(i) {
|
|
3412
|
-
|
|
3413
|
-
var e =
|
|
3428
|
+
I(t, i);
|
|
3429
|
+
var e = S(t);
|
|
3414
3430
|
function t() {
|
|
3415
3431
|
var r;
|
|
3416
3432
|
x(this, t);
|
|
@@ -3423,16 +3439,16 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3423
3439
|
value: function(a, o) {
|
|
3424
3440
|
switch (o) {
|
|
3425
3441
|
case "x":
|
|
3426
|
-
return me
|
|
3442
|
+
return fe(me.basicOptionalMinutes, a);
|
|
3427
3443
|
case "xx":
|
|
3428
|
-
return me
|
|
3444
|
+
return fe(me.basic, a);
|
|
3429
3445
|
case "xxxx":
|
|
3430
|
-
return me
|
|
3446
|
+
return fe(me.basicOptionalSeconds, a);
|
|
3431
3447
|
case "xxxxx":
|
|
3432
|
-
return me
|
|
3448
|
+
return fe(me.extendedOptionalSeconds, a);
|
|
3433
3449
|
case "xxx":
|
|
3434
3450
|
default:
|
|
3435
|
-
return me
|
|
3451
|
+
return fe(me.extended, a);
|
|
3436
3452
|
}
|
|
3437
3453
|
}
|
|
3438
3454
|
}, {
|
|
@@ -3442,8 +3458,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3442
3458
|
}
|
|
3443
3459
|
}]), t;
|
|
3444
3460
|
}(D), Hd = /* @__PURE__ */ function(i) {
|
|
3445
|
-
|
|
3446
|
-
var e =
|
|
3461
|
+
I(t, i);
|
|
3462
|
+
var e = S(t);
|
|
3447
3463
|
function t() {
|
|
3448
3464
|
var r;
|
|
3449
3465
|
x(this, t);
|
|
@@ -3465,8 +3481,8 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3465
3481
|
}
|
|
3466
3482
|
}]), t;
|
|
3467
3483
|
}(D), Bd = /* @__PURE__ */ function(i) {
|
|
3468
|
-
|
|
3469
|
-
var e =
|
|
3484
|
+
I(t, i);
|
|
3485
|
+
var e = S(t);
|
|
3470
3486
|
function t() {
|
|
3471
3487
|
var r;
|
|
3472
3488
|
x(this, t);
|
|
@@ -3503,7 +3519,7 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3503
3519
|
D: new Cd(),
|
|
3504
3520
|
E: new kd(),
|
|
3505
3521
|
e: new Ed(),
|
|
3506
|
-
c: new
|
|
3522
|
+
c: new Id(),
|
|
3507
3523
|
i: new Ad(),
|
|
3508
3524
|
a: new Td(),
|
|
3509
3525
|
b: new Pd(),
|
|
@@ -3520,14 +3536,14 @@ var Ad = /* @__PURE__ */ function(i) {
|
|
|
3520
3536
|
t: new Hd(),
|
|
3521
3537
|
T: new Bd()
|
|
3522
3538
|
}, qd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, jd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Wd = /^'([^]*?)'?$/, Yd = /''/g, Gd = /\S/, Kd = /[a-zA-Z]/;
|
|
3523
|
-
function
|
|
3539
|
+
function Ve(i, e, t, r) {
|
|
3524
3540
|
var a, o, n, s, l, d, h, c, p, m, y, L, O, V;
|
|
3525
3541
|
F(3, arguments);
|
|
3526
|
-
var A = String(i), j = String(e), W = it(),
|
|
3527
|
-
if (!
|
|
3542
|
+
var A = String(i), j = String(e), W = it(), ce = (a = (o = void 0) !== null && o !== void 0 ? o : W.locale) !== null && a !== void 0 ? a : Ro;
|
|
3543
|
+
if (!ce.match)
|
|
3528
3544
|
throw new RangeError("locale must contain match property");
|
|
3529
|
-
var
|
|
3530
|
-
if (!(
|
|
3545
|
+
var Ce = ie((n = (s = (l = (d = void 0) !== null && d !== void 0 ? d : void 0) !== null && l !== void 0 ? l : W.firstWeekContainsDate) !== null && s !== void 0 ? s : (h = W.locale) === null || h === void 0 || (c = h.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
|
|
3546
|
+
if (!(Ce >= 1 && Ce <= 7))
|
|
3531
3547
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
3532
3548
|
var nt = ie((p = (m = (y = (L = void 0) !== null && L !== void 0 ? L : void 0) !== null && y !== void 0 ? y : W.weekStartsOn) !== null && m !== void 0 ? m : (O = W.locale) === null || O === void 0 || (V = O.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && p !== void 0 ? p : 0);
|
|
3533
3549
|
if (!(nt >= 0 && nt <= 6))
|
|
@@ -3535,20 +3551,20 @@ function Oe(i, e, t, r) {
|
|
|
3535
3551
|
if (j === "")
|
|
3536
3552
|
return A === "" ? q(t) : /* @__PURE__ */ new Date(NaN);
|
|
3537
3553
|
var st = {
|
|
3538
|
-
firstWeekContainsDate:
|
|
3554
|
+
firstWeekContainsDate: Ce,
|
|
3539
3555
|
weekStartsOn: nt,
|
|
3540
|
-
locale:
|
|
3556
|
+
locale: ce
|
|
3541
3557
|
}, lt = [new rd()], Oi = j.match(jd).map(function(Y) {
|
|
3542
3558
|
var z = Y[0];
|
|
3543
3559
|
if (z in Qi) {
|
|
3544
3560
|
var le = Qi[z];
|
|
3545
|
-
return le(Y,
|
|
3561
|
+
return le(Y, ce.formatLong);
|
|
3546
3562
|
}
|
|
3547
3563
|
return Y;
|
|
3548
|
-
}).join("").match(qd), K = [], re = ka(Oi),
|
|
3564
|
+
}).join("").match(qd), K = [], re = ka(Oi), Pe;
|
|
3549
3565
|
try {
|
|
3550
3566
|
var Vs = function() {
|
|
3551
|
-
var z =
|
|
3567
|
+
var z = Pe.value;
|
|
3552
3568
|
!(r != null && r.useAdditionalWeekYearTokens) && zo(z) && ri(z, j, i), !(r != null && r.useAdditionalDayOfYearTokens) && Lo(z) && ri(z, j, i);
|
|
3553
3569
|
var le = z[0], jt = Ud[le];
|
|
3554
3570
|
if (jt) {
|
|
@@ -3565,7 +3581,7 @@ function Oe(i, e, t, r) {
|
|
|
3565
3581
|
token: le,
|
|
3566
3582
|
fullToken: z
|
|
3567
3583
|
});
|
|
3568
|
-
var Mi = jt.run(A, z,
|
|
3584
|
+
var Mi = jt.run(A, z, ce.match, st);
|
|
3569
3585
|
if (!Mi)
|
|
3570
3586
|
return {
|
|
3571
3587
|
v: /* @__PURE__ */ new Date(NaN)
|
|
@@ -3582,9 +3598,9 @@ function Oe(i, e, t, r) {
|
|
|
3582
3598
|
};
|
|
3583
3599
|
}
|
|
3584
3600
|
};
|
|
3585
|
-
for (re.s(); !(
|
|
3601
|
+
for (re.s(); !(Pe = re.n()).done; ) {
|
|
3586
3602
|
var ca = Vs();
|
|
3587
|
-
if (
|
|
3603
|
+
if (we(ca) === "object")
|
|
3588
3604
|
return ca.v;
|
|
3589
3605
|
}
|
|
3590
3606
|
} catch (Y) {
|
|
@@ -3635,13 +3651,13 @@ function Ea(i, e) {
|
|
|
3635
3651
|
var t = q(i), r = q(e);
|
|
3636
3652
|
return t.getTime() > r.getTime();
|
|
3637
3653
|
}
|
|
3638
|
-
function
|
|
3654
|
+
function Ia(i, e) {
|
|
3639
3655
|
F(2, arguments);
|
|
3640
3656
|
var t = q(i), r = q(e);
|
|
3641
3657
|
return t.getTime() < r.getTime();
|
|
3642
3658
|
}
|
|
3643
|
-
function
|
|
3644
|
-
return F(2, arguments), To(
|
|
3659
|
+
function Sa(i, e, t) {
|
|
3660
|
+
return F(2, arguments), To(Ve(i, e, /* @__PURE__ */ new Date(), t));
|
|
3645
3661
|
}
|
|
3646
3662
|
const Qd = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__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))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__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--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}', Jd = Qd, Zd = class {
|
|
3647
3663
|
constructor(i) {
|
|
@@ -3649,7 +3665,7 @@ const Qd = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{
|
|
|
3649
3665
|
const { year: t, month: r, day: a } = e, o = new Date(t, r, a);
|
|
3650
3666
|
return xa(o, this.dateFormat);
|
|
3651
3667
|
}, this.parseDate = (e) => {
|
|
3652
|
-
const t =
|
|
3668
|
+
const t = Ve(e, this.dateFormat, /* @__PURE__ */ new Date());
|
|
3653
3669
|
return { year: t.getFullYear(), month: t.getMonth(), day: t.getDate() };
|
|
3654
3670
|
}, this.setClientStyling = () => {
|
|
3655
3671
|
let e = document.createElement("style");
|
|
@@ -3658,13 +3674,13 @@ const Qd = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{
|
|
|
3658
3674
|
if (this.name !== Q.BIRTHDATE)
|
|
3659
3675
|
return;
|
|
3660
3676
|
const t = e.detail;
|
|
3661
|
-
this.value = t, this.valueAsDate =
|
|
3677
|
+
this.value = t, this.valueAsDate = Ve(this.value || "", Q.DATE_FORMAT, /* @__PURE__ */ new Date()), this.touched = !0, this.datePicker && (this.datePicker.value = this.value), this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.valueHandler({ name: this.name, value: this.value });
|
|
3662
3678
|
}, this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.validation = void 0, this.defaultValue = void 0, this.autofilled = void 0, this.tooltip = void 0, this.language = void 0, this.emitValue = void 0, this.clientStyling = "", this.dateFormat = "yyyy-MM-dd", this.emitOnClick = !1, this.enableSouthAfricanMode = void 0, this.enableManualDateInput = !1, this.errorMessage = void 0, this.isValid = void 0, this.limitStylingAppends = !1, this.showTooltip = !1;
|
|
3663
3679
|
}
|
|
3664
3680
|
get formattedValue() {
|
|
3665
3681
|
if (!this.value)
|
|
3666
3682
|
return "";
|
|
3667
|
-
const i =
|
|
3683
|
+
const i = Ve(this.value, "yyyy-MM-dd", /* @__PURE__ */ new Date());
|
|
3668
3684
|
return xa(i, this.dateFormat);
|
|
3669
3685
|
}
|
|
3670
3686
|
handleStylingChange(i, e) {
|
|
@@ -3691,7 +3707,7 @@ const Qd = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{
|
|
|
3691
3707
|
}
|
|
3692
3708
|
connectedCallback() {
|
|
3693
3709
|
var i, e;
|
|
3694
|
-
this.minDate =
|
|
3710
|
+
this.minDate = Ve(((i = this.validation.min) === null || i === void 0 ? void 0 : i.toString()) || "", "yyyy-MM-dd", /* @__PURE__ */ new Date()), this.maxDate = Ve(((e = this.validation.max) === null || e === void 0 ? void 0 : e.toString()) || "", "yyyy-MM-dd", /* @__PURE__ */ new Date());
|
|
3695
3711
|
}
|
|
3696
3712
|
componentDidRender() {
|
|
3697
3713
|
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
|
|
@@ -3712,7 +3728,7 @@ const Qd = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{
|
|
|
3712
3728
|
this.datePicker.opened && this.emitOnClick && window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
|
|
3713
3729
|
}
|
|
3714
3730
|
handleInput(i) {
|
|
3715
|
-
this.value = i.target.value, this.touched = !0, this.valueAsDate =
|
|
3731
|
+
this.value = i.target.value, this.touched = !0, this.valueAsDate = Ve(this.value || "", "yyyy-MM-dd", /* @__PURE__ */ new Date()), this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0), this.enableSouthAfricanMode && window.dispatchEvent(new CustomEvent("birthDateUpdated", {
|
|
3716
3732
|
detail: { birthDate: this.value }
|
|
3717
3733
|
}));
|
|
3718
3734
|
}
|
|
@@ -3720,16 +3736,16 @@ const Qd = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{
|
|
|
3720
3736
|
this.touched = !0, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage();
|
|
3721
3737
|
}
|
|
3722
3738
|
setValidity() {
|
|
3723
|
-
return
|
|
3739
|
+
return Ia(this.valueAsDate, this.minDate) || Ea(this.valueAsDate, this.maxDate) || !Sa(this.formattedValue, this.dateFormat) ? !1 : this.inputReference.validity.valid;
|
|
3724
3740
|
}
|
|
3725
3741
|
setErrorMessage() {
|
|
3726
3742
|
if (this.inputReference.validity.valueMissing)
|
|
3727
3743
|
return b("requiredError", this.language);
|
|
3728
3744
|
if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow)
|
|
3729
3745
|
return b("dateError", this.language, { values: { min: this.validation.min, max: this.validation.max } });
|
|
3730
|
-
if (
|
|
3746
|
+
if (Ia(this.valueAsDate, this.minDate) || Ea(this.valueAsDate, this.maxDate))
|
|
3731
3747
|
return b("dateError2", this.language);
|
|
3732
|
-
if (!
|
|
3748
|
+
if (!Sa(this.formattedValue, this.dateFormat))
|
|
3733
3749
|
return b("dateFormatError", this.language);
|
|
3734
3750
|
}
|
|
3735
3751
|
renderTooltip() {
|
|
@@ -3737,7 +3753,7 @@ const Qd = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{
|
|
|
3737
3753
|
}
|
|
3738
3754
|
render() {
|
|
3739
3755
|
let i = "";
|
|
3740
|
-
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "b8f91a203d028d6effe0cb976465756841453300", class: `date__wrapper ${this.autofilled ? "date__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("label", { key: "e5d9bda31742bec5c4e24e390941688fd4eeb239", class: `date__label ${this.validation.mandatory ? "date__label--required" : ""}}`, htmlFor: `${this.name}__input` }, this.displayName, u("span", { key: "8055cfcb8ed54eea9f7b4f7c3719267aa258fc78", class: this.validation.mandatory ? "date__label--required" : "" })), u("vaadin-date-picker", { key: "a2bd1e51e96308d02ee0462ff681a818d008399f", id: `${this.name}__input`, type: "date", class: `date__input ${i} ${this.enableManualDateInput && "date__manual-mode"}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e), onValidated: () => this.handleValidated(), autoOpenDisabled: this.enableManualDateInput }), u("small", { key: "6f7e5bead37a71932d678be3dc9ff36170871289", class: "date__error-message" }, this.errorMessage), this.tooltip && u("img", { key: "c67702d9aa5ee40666c772bc9612007fdd69af80", class: "date__tooltip-icon", src:
|
|
3756
|
+
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "b8f91a203d028d6effe0cb976465756841453300", class: `date__wrapper ${this.autofilled ? "date__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("label", { key: "e5d9bda31742bec5c4e24e390941688fd4eeb239", class: `date__label ${this.validation.mandatory ? "date__label--required" : ""}}`, htmlFor: `${this.name}__input` }, this.displayName, u("span", { key: "8055cfcb8ed54eea9f7b4f7c3719267aa258fc78", class: this.validation.mandatory ? "date__label--required" : "" })), u("vaadin-date-picker", { key: "a2bd1e51e96308d02ee0462ff681a818d008399f", id: `${this.name}__input`, type: "date", class: `date__input ${i} ${this.enableManualDateInput && "date__manual-mode"}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e), onValidated: () => this.handleValidated(), autoOpenDisabled: this.enableManualDateInput }), u("small", { key: "6f7e5bead37a71932d678be3dc9ff36170871289", class: "date__error-message" }, this.errorMessage), this.tooltip && u("img", { key: "c67702d9aa5ee40666c772bc9612007fdd69af80", class: "date__tooltip-icon", src: he, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
3741
3757
|
}
|
|
3742
3758
|
get element() {
|
|
3743
3759
|
return Mt(this);
|
|
@@ -3824,7 +3840,7 @@ const eh = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email
|
|
|
3824
3840
|
}
|
|
3825
3841
|
render() {
|
|
3826
3842
|
let i = "";
|
|
3827
|
-
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "723df8f3a6e8c57fe19082400971daf50f5c981d", class: `email__wrapper ${this.autofilled ? "number__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("div", { key: "581d6e02b63d1c659ae44424518f64db450d5365", class: "email__wrapper--flex" }, u("label", { key: "11e6a848f6f04903989b3ab2075865f6e279c087", class: `email__label ${this.validation.mandatory ? "email__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "73e11520cffbddda1a2aeb4b560e7f4cf456e2fb", class: "email__wrapper--relative" }, this.tooltip && u("img", { key: "e8571ce14b9b98311daf1712ebde7d6da9b5a6a6", class: "email__tooltip-icon", src:
|
|
3843
|
+
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "723df8f3a6e8c57fe19082400971daf50f5c981d", class: `email__wrapper ${this.autofilled ? "number__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("div", { key: "581d6e02b63d1c659ae44424518f64db450d5365", class: "email__wrapper--flex" }, u("label", { key: "11e6a848f6f04903989b3ab2075865f6e279c087", class: `email__label ${this.validation.mandatory ? "email__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "73e11520cffbddda1a2aeb4b560e7f4cf456e2fb", class: "email__wrapper--relative" }, this.tooltip && u("img", { key: "e8571ce14b9b98311daf1712ebde7d6da9b5a6a6", class: "email__tooltip-icon", src: he, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), u("input", { key: "dd05ef0b4d906598c6d5775a78ccbdc9ea81cb8c", id: `${this.name}__input`, type: "email", class: `email__input ${i}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, ref: (e) => this.inputReference = e, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), u("small", { key: "0d2d41207f8274d8c6f69143131265ef5b458689", class: "email__error-message" }, this.errorMessage));
|
|
3828
3844
|
}
|
|
3829
3845
|
static get watchers() {
|
|
3830
3846
|
return {
|
|
@@ -3891,7 +3907,7 @@ w(lh);
|
|
|
3891
3907
|
* Copyright 2019 Google LLC
|
|
3892
3908
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3893
3909
|
*/
|
|
3894
|
-
const ei = globalThis,
|
|
3910
|
+
const ei = globalThis, Sr = ei.ShadowRoot && (ei.ShadyCSS === void 0 || ei.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ar = Symbol(), Ta = /* @__PURE__ */ new WeakMap();
|
|
3895
3911
|
let Tr = class {
|
|
3896
3912
|
constructor(i, e, t) {
|
|
3897
3913
|
if (this._$cssResult$ = !0, t !== Ar)
|
|
@@ -3901,7 +3917,7 @@ let Tr = class {
|
|
|
3901
3917
|
get styleSheet() {
|
|
3902
3918
|
let i = this.o;
|
|
3903
3919
|
const e = this.t;
|
|
3904
|
-
if (
|
|
3920
|
+
if (Sr && i === void 0) {
|
|
3905
3921
|
const t = e !== void 0 && e.length === 1;
|
|
3906
3922
|
t && (i = Ta.get(e)), i === void 0 && ((this.o = i = new CSSStyleSheet()).replaceSync(this.cssText), t && Ta.set(e, i));
|
|
3907
3923
|
}
|
|
@@ -3921,14 +3937,14 @@ const dh = (i) => new Tr(typeof i == "string" ? i : i + "", void 0, Ar), f = (i,
|
|
|
3921
3937
|
})(a) + i[o + 1], i[0]);
|
|
3922
3938
|
return new Tr(t, i, Ar);
|
|
3923
3939
|
}, Wo = (i, e) => {
|
|
3924
|
-
if (
|
|
3940
|
+
if (Sr)
|
|
3925
3941
|
i.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
3926
3942
|
else
|
|
3927
3943
|
for (const t of e) {
|
|
3928
3944
|
const r = document.createElement("style"), a = ei.litNonce;
|
|
3929
3945
|
a !== void 0 && r.setAttribute("nonce", a), r.textContent = t.cssText, i.appendChild(r);
|
|
3930
3946
|
}
|
|
3931
|
-
}, Pa =
|
|
3947
|
+
}, Pa = Sr ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((e) => {
|
|
3932
3948
|
let t = "";
|
|
3933
3949
|
for (const r of e.cssRules)
|
|
3934
3950
|
t += r.cssText;
|
|
@@ -4198,9 +4214,9 @@ je.elementStyles = [], je.shadowRootOptions = { mode: "open" }, je[yt("elementPr
|
|
|
4198
4214
|
* Copyright 2017 Google LLC
|
|
4199
4215
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4200
4216
|
*/
|
|
4201
|
-
const li = globalThis, Na = (i) => i, di = li.trustedTypes, La = di ? di.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Go = "$lit$",
|
|
4202
|
-
\f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, za = /-->/g, Ra = />/g,
|
|
4203
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Fa = /'/g, $a = /"/g, Xo = /^(?:script|style|textarea|title)$/i, Ze = Symbol.for("lit-noChange"), G = Symbol.for("lit-nothing"), Ha = /* @__PURE__ */ new WeakMap(),
|
|
4217
|
+
const li = globalThis, Na = (i) => i, di = li.trustedTypes, La = di ? di.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Go = "$lit$", Ie = `lit$${Math.random().toFixed(9).slice(2)}$`, Ko = "?" + Ie, _h = `<${Ko}>`, Re = document, xt = () => Re.createComment(""), Ct = (i) => i === null || typeof i != "object" && typeof i != "function", Pr = Array.isArray, gh = (i) => Pr(i) || typeof i?.[Symbol.iterator] == "function", Li = `[
|
|
4218
|
+
\f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, za = /-->/g, Ra = />/g, De = RegExp(`>|${Li}(?:([^\\s"'>=/]+)(${Li}*=${Li}*(?:[^
|
|
4219
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Fa = /'/g, $a = /"/g, Xo = /^(?:script|style|textarea|title)$/i, Ze = Symbol.for("lit-noChange"), G = Symbol.for("lit-nothing"), Ha = /* @__PURE__ */ new WeakMap(), Me = Re.createTreeWalker(Re, 129);
|
|
4204
4220
|
function Qo(i, e) {
|
|
4205
4221
|
if (!Pr(i) || !i.hasOwnProperty("raw"))
|
|
4206
4222
|
throw Error("invalid template strings array");
|
|
@@ -4213,9 +4229,9 @@ const bh = (i, e) => {
|
|
|
4213
4229
|
const l = i[s];
|
|
4214
4230
|
let d, h, c = -1, p = 0;
|
|
4215
4231
|
for (; p < l.length && (n.lastIndex = p, h = n.exec(l), h !== null); )
|
|
4216
|
-
p = n.lastIndex, n === ut ? h[1] === "!--" ? n = za : h[1] !== void 0 ? n = Ra : h[2] !== void 0 ? (Xo.test(h[2]) && (a = RegExp("</" + h[2], "g")), n =
|
|
4217
|
-
const m = n ===
|
|
4218
|
-
o += n === ut ? l + _h : c >= 0 ? (r.push(d), l.slice(0, c) + Go + l.slice(c) +
|
|
4232
|
+
p = n.lastIndex, n === ut ? h[1] === "!--" ? n = za : h[1] !== void 0 ? n = Ra : h[2] !== void 0 ? (Xo.test(h[2]) && (a = RegExp("</" + h[2], "g")), n = De) : h[3] !== void 0 && (n = De) : n === De ? h[0] === ">" ? (n = a ?? ut, c = -1) : h[1] === void 0 ? c = -2 : (c = n.lastIndex - h[2].length, d = h[1], n = h[3] === void 0 ? De : h[3] === '"' ? $a : Fa) : n === $a || n === Fa ? n = De : n === za || n === Ra ? n = ut : (n = De, a = void 0);
|
|
4233
|
+
const m = n === De && i[s + 1].startsWith("/>") ? " " : "";
|
|
4234
|
+
o += n === ut ? l + _h : c >= 0 ? (r.push(d), l.slice(0, c) + Go + l.slice(c) + Ie + m) : l + Ie + (c === -2 ? s : m);
|
|
4219
4235
|
}
|
|
4220
4236
|
return [Qo(i, o + (i[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), r];
|
|
4221
4237
|
};
|
|
@@ -4225,25 +4241,25 @@ class kt {
|
|
|
4225
4241
|
this.parts = [];
|
|
4226
4242
|
let o = 0, n = 0;
|
|
4227
4243
|
const s = e.length - 1, l = this.parts, [d, h] = bh(e, t);
|
|
4228
|
-
if (this.el = kt.createElement(d, r),
|
|
4244
|
+
if (this.el = kt.createElement(d, r), Me.currentNode = this.el.content, t === 2 || t === 3) {
|
|
4229
4245
|
const c = this.el.content.firstChild;
|
|
4230
4246
|
c.replaceWith(...c.childNodes);
|
|
4231
4247
|
}
|
|
4232
|
-
for (; (a =
|
|
4248
|
+
for (; (a = Me.nextNode()) !== null && l.length < s; ) {
|
|
4233
4249
|
if (a.nodeType === 1) {
|
|
4234
4250
|
if (a.hasAttributes())
|
|
4235
4251
|
for (const c of a.getAttributeNames())
|
|
4236
4252
|
if (c.endsWith(Go)) {
|
|
4237
|
-
const p = h[n++], m = a.getAttribute(c).split(
|
|
4253
|
+
const p = h[n++], m = a.getAttribute(c).split(Ie), y = /([.?@])?(.*)/.exec(p);
|
|
4238
4254
|
l.push({ type: 1, index: o, name: y[2], strings: m, ctor: y[1] === "." ? wh : y[1] === "?" ? xh : y[1] === "@" ? Ch : bi }), a.removeAttribute(c);
|
|
4239
4255
|
} else
|
|
4240
|
-
c.startsWith(
|
|
4256
|
+
c.startsWith(Ie) && (l.push({ type: 6, index: o }), a.removeAttribute(c));
|
|
4241
4257
|
if (Xo.test(a.tagName)) {
|
|
4242
|
-
const c = a.textContent.split(
|
|
4258
|
+
const c = a.textContent.split(Ie), p = c.length - 1;
|
|
4243
4259
|
if (p > 0) {
|
|
4244
4260
|
a.textContent = di ? di.emptyScript : "";
|
|
4245
4261
|
for (let m = 0; m < p; m++)
|
|
4246
|
-
a.append(c[m], xt()),
|
|
4262
|
+
a.append(c[m], xt()), Me.nextNode(), l.push({ type: 2, index: ++o });
|
|
4247
4263
|
a.append(c[p], xt());
|
|
4248
4264
|
}
|
|
4249
4265
|
}
|
|
@@ -4252,14 +4268,14 @@ class kt {
|
|
|
4252
4268
|
l.push({ type: 2, index: o });
|
|
4253
4269
|
else {
|
|
4254
4270
|
let c = -1;
|
|
4255
|
-
for (; (c = a.data.indexOf(
|
|
4256
|
-
l.push({ type: 7, index: o }), c +=
|
|
4271
|
+
for (; (c = a.data.indexOf(Ie, c + 1)) !== -1; )
|
|
4272
|
+
l.push({ type: 7, index: o }), c += Ie.length - 1;
|
|
4257
4273
|
}
|
|
4258
4274
|
o++;
|
|
4259
4275
|
}
|
|
4260
4276
|
}
|
|
4261
4277
|
static createElement(e, t) {
|
|
4262
|
-
const r =
|
|
4278
|
+
const r = Re.createElement("template");
|
|
4263
4279
|
return r.innerHTML = e, r;
|
|
4264
4280
|
}
|
|
4265
4281
|
}
|
|
@@ -4283,17 +4299,17 @@ class yh {
|
|
|
4283
4299
|
}
|
|
4284
4300
|
u(e) {
|
|
4285
4301
|
var t;
|
|
4286
|
-
const { el: { content: r }, parts: a } = this._$AD, o = ((t = e?.creationScope) != null ? t :
|
|
4287
|
-
|
|
4288
|
-
let n =
|
|
4302
|
+
const { el: { content: r }, parts: a } = this._$AD, o = ((t = e?.creationScope) != null ? t : Re).importNode(r, !0);
|
|
4303
|
+
Me.currentNode = o;
|
|
4304
|
+
let n = Me.nextNode(), s = 0, l = 0, d = a[0];
|
|
4289
4305
|
for (; d !== void 0; ) {
|
|
4290
4306
|
if (s === d.index) {
|
|
4291
4307
|
let h;
|
|
4292
4308
|
d.type === 2 ? h = new Nt(n, n.nextSibling, this, e) : d.type === 1 ? h = new d.ctor(n, d.name, d.strings, this, e) : d.type === 6 && (h = new kh(n, this, e)), this._$AV.push(h), d = a[++l];
|
|
4293
4309
|
}
|
|
4294
|
-
s !== d?.index && (n =
|
|
4310
|
+
s !== d?.index && (n = Me.nextNode(), s++);
|
|
4295
4311
|
}
|
|
4296
|
-
return
|
|
4312
|
+
return Me.currentNode = Re, o;
|
|
4297
4313
|
}
|
|
4298
4314
|
p(e) {
|
|
4299
4315
|
let t = 0;
|
|
@@ -4331,7 +4347,7 @@ class Nt {
|
|
|
4331
4347
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
4332
4348
|
}
|
|
4333
4349
|
_(e) {
|
|
4334
|
-
this._$AH !== G && Ct(this._$AH) ? this._$AA.nextSibling.data = e : this.T(
|
|
4350
|
+
this._$AH !== G && Ct(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Re.createTextNode(e)), this._$AH = e;
|
|
4335
4351
|
}
|
|
4336
4352
|
$(e) {
|
|
4337
4353
|
var t;
|
|
@@ -4515,7 +4531,7 @@ function en(i) {
|
|
|
4515
4531
|
function Eh(i) {
|
|
4516
4532
|
return en(customElements.get(i));
|
|
4517
4533
|
}
|
|
4518
|
-
function
|
|
4534
|
+
function Ih(i = []) {
|
|
4519
4535
|
return [i].flat(1 / 0).filter((e) => e instanceof Tr ? !0 : (console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."), !1));
|
|
4520
4536
|
}
|
|
4521
4537
|
function tn(i, e) {
|
|
@@ -4526,7 +4542,7 @@ function rn(i) {
|
|
|
4526
4542
|
`);
|
|
4527
4543
|
}
|
|
4528
4544
|
const hi = "vaadin-themable-mixin-style";
|
|
4529
|
-
function
|
|
4545
|
+
function Sh(i, e) {
|
|
4530
4546
|
const t = document.createElement("style");
|
|
4531
4547
|
t.id = hi, t.textContent = rn(i), e.content.appendChild(t);
|
|
4532
4548
|
}
|
|
@@ -4564,7 +4580,7 @@ function Ph(i, e) {
|
|
|
4564
4580
|
return !t || !e ? !1 : t.some((r) => r.styles.some((a) => e.some((o) => o.cssText === a.cssText)));
|
|
4565
4581
|
}
|
|
4566
4582
|
function g(i, e, t = {}) {
|
|
4567
|
-
e =
|
|
4583
|
+
e = Ih(e), window.Vaadin && window.Vaadin.styleModules ? window.Vaadin.styleModules.registerStyles(i, e, t) : Zo.push({ themeFor: i, styles: e, include: t.include, moduleId: t.moduleId }), i && Dr.forEach((r) => {
|
|
4568
4584
|
if (tn(i, r) && Eh(r)) {
|
|
4569
4585
|
const a = customElements.get(r);
|
|
4570
4586
|
Ph(a, e) ? console.warn(`Registering styles that already exist for ${r}`) : (!window.Vaadin || !window.Vaadin.suppressPostFinalizeStylesWarning) && console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`), an(a), Th(a);
|
|
@@ -4597,7 +4613,7 @@ const N = (i) => class extends yi(i) {
|
|
|
4597
4613
|
if (super.finalize(), this.is && Dr.add(this.is), this.elementStyles)
|
|
4598
4614
|
return;
|
|
4599
4615
|
const e = this.prototype._template;
|
|
4600
|
-
!e || en(this) ||
|
|
4616
|
+
!e || en(this) || Sh(this.getStylesForThis(), e);
|
|
4601
4617
|
}
|
|
4602
4618
|
static finalizeStyles(e) {
|
|
4603
4619
|
const t = this.getStylesForThis();
|
|
@@ -5595,7 +5611,7 @@ function Xa(i) {
|
|
|
5595
5611
|
function Jh(i) {
|
|
5596
5612
|
i.querySelector("style") && console.warn("dom-module %s has style outside template", i.id);
|
|
5597
5613
|
}
|
|
5598
|
-
class
|
|
5614
|
+
class It extends HTMLElement {
|
|
5599
5615
|
static get observedAttributes() {
|
|
5600
5616
|
return ["id"];
|
|
5601
5617
|
}
|
|
@@ -5624,8 +5640,8 @@ class St extends HTMLElement {
|
|
|
5624
5640
|
}
|
|
5625
5641
|
}
|
|
5626
5642
|
}
|
|
5627
|
-
|
|
5628
|
-
customElements.define("dom-module",
|
|
5643
|
+
It.prototype.modules = Mr;
|
|
5644
|
+
customElements.define("dom-module", It);
|
|
5629
5645
|
/**
|
|
5630
5646
|
@license
|
|
5631
5647
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -5637,7 +5653,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5637
5653
|
*/
|
|
5638
5654
|
const Zh = "link[rel=import][type~=css]", ec = "include", Qa = "shady-unscoped";
|
|
5639
5655
|
function hn(i) {
|
|
5640
|
-
return
|
|
5656
|
+
return It.import(i);
|
|
5641
5657
|
}
|
|
5642
5658
|
function Ja(i) {
|
|
5643
5659
|
let e = i.body ? i.body : i;
|
|
@@ -5717,21 +5733,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5717
5733
|
function ar(i) {
|
|
5718
5734
|
return i.indexOf(".") >= 0;
|
|
5719
5735
|
}
|
|
5720
|
-
function
|
|
5736
|
+
function Fe(i) {
|
|
5721
5737
|
let e = i.indexOf(".");
|
|
5722
5738
|
return e === -1 ? i : i.slice(0, e);
|
|
5723
5739
|
}
|
|
5724
5740
|
function pn(i, e) {
|
|
5725
5741
|
return i.indexOf(e + ".") === 0;
|
|
5726
5742
|
}
|
|
5727
|
-
function
|
|
5743
|
+
function St(i, e) {
|
|
5728
5744
|
return e.indexOf(i + ".") === 0;
|
|
5729
5745
|
}
|
|
5730
5746
|
function At(i, e, t) {
|
|
5731
5747
|
return e + t.slice(i.length);
|
|
5732
5748
|
}
|
|
5733
5749
|
function ac(i, e) {
|
|
5734
|
-
return i === e || pn(i, e) ||
|
|
5750
|
+
return i === e || pn(i, e) || St(i, e);
|
|
5735
5751
|
}
|
|
5736
5752
|
function _t(i) {
|
|
5737
5753
|
if (Array.isArray(i)) {
|
|
@@ -6231,7 +6247,7 @@ function gt(i, e, t, r, a, o) {
|
|
|
6231
6247
|
let n = !1;
|
|
6232
6248
|
const s = Tt++;
|
|
6233
6249
|
for (let l in t) {
|
|
6234
|
-
let d = a ?
|
|
6250
|
+
let d = a ? Fe(l) : l, h = e[d];
|
|
6235
6251
|
if (h)
|
|
6236
6252
|
for (let c = 0, p = h.length, m; c < p && (m = h[c]); c++)
|
|
6237
6253
|
(!m.info || m.info.lastRun !== s) && (!a || Nr(l, m.trigger)) && (m.info && (m.info.lastRun = s), m.fn(i, l, t, r, m.info, a, o), n = !0);
|
|
@@ -6240,8 +6256,8 @@ function gt(i, e, t, r, a, o) {
|
|
|
6240
6256
|
}
|
|
6241
6257
|
return !1;
|
|
6242
6258
|
}
|
|
6243
|
-
function
|
|
6244
|
-
let l = !1, d = n ?
|
|
6259
|
+
function Ic(i, e, t, r, a, o, n, s) {
|
|
6260
|
+
let l = !1, d = n ? Fe(r) : r, h = e[d];
|
|
6245
6261
|
if (h)
|
|
6246
6262
|
for (let c = 0, p = h.length, m; c < p && (m = h[c]); c++)
|
|
6247
6263
|
(!m.info || m.info.lastRun !== t) && (!n || Nr(r, m.trigger)) && (m.info && (m.info.lastRun = t), m.fn(i, r, a, o, m.info, n, s), l = !0);
|
|
@@ -6250,7 +6266,7 @@ function Sc(i, e, t, r, a, o, n, s) {
|
|
|
6250
6266
|
function Nr(i, e) {
|
|
6251
6267
|
if (e) {
|
|
6252
6268
|
let t = e.name;
|
|
6253
|
-
return t == i || !!(e.structured && pn(t, i)) || !!(e.wildcard &&
|
|
6269
|
+
return t == i || !!(e.structured && pn(t, i)) || !!(e.wildcard && St(t, i));
|
|
6254
6270
|
} else
|
|
6255
6271
|
return !0;
|
|
6256
6272
|
}
|
|
@@ -6258,15 +6274,15 @@ function io(i, e, t, r, a) {
|
|
|
6258
6274
|
let o = typeof a.method == "string" ? i[a.method] : a.method, n = a.property;
|
|
6259
6275
|
o ? o.call(i, i.__data[n], r[n]) : a.dynamicFn || console.warn("observer method `" + a.method + "` not defined");
|
|
6260
6276
|
}
|
|
6261
|
-
function
|
|
6277
|
+
function Sc(i, e, t, r, a) {
|
|
6262
6278
|
let o = i[T.NOTIFY], n, s = Tt++;
|
|
6263
6279
|
for (let d in e)
|
|
6264
|
-
e[d] && (o &&
|
|
6280
|
+
e[d] && (o && Ic(i, o, s, d, t, r, a) || a && Ac(i, d, t)) && (n = !0);
|
|
6265
6281
|
let l;
|
|
6266
6282
|
n && (l = i.__dataHost) && l._invalidateProperties && l._invalidateProperties();
|
|
6267
6283
|
}
|
|
6268
6284
|
function Ac(i, e, t) {
|
|
6269
|
-
let r =
|
|
6285
|
+
let r = Fe(e);
|
|
6270
6286
|
if (r !== e) {
|
|
6271
6287
|
let a = wi(r) + "-changed";
|
|
6272
6288
|
return Cn(i, a, t[e], e), !0;
|
|
@@ -6278,7 +6294,7 @@ function Cn(i, e, t, r) {
|
|
|
6278
6294
|
r && (a.path = r), X(i).dispatchEvent(new CustomEvent(e, { detail: a }));
|
|
6279
6295
|
}
|
|
6280
6296
|
function Tc(i, e, t, r, a, o) {
|
|
6281
|
-
let n = (o ?
|
|
6297
|
+
let n = (o ? Fe(e) : e) != e ? e : null, s = n ? te(i, n) : i.__data[e];
|
|
6282
6298
|
n && s === void 0 && (s = t[e]), Cn(i, a.eventName, s, n);
|
|
6283
6299
|
}
|
|
6284
6300
|
function Pc(i, e, t, r, a) {
|
|
@@ -6322,7 +6338,7 @@ const Vc = (i, e, t) => {
|
|
|
6322
6338
|
}
|
|
6323
6339
|
o < 0 && (o = a + 1), e.splice(o, 0, i);
|
|
6324
6340
|
}, ro = (i, e, t, r, a) => {
|
|
6325
|
-
const o = a ?
|
|
6341
|
+
const o = a ? Fe(i) : i, n = e[o];
|
|
6326
6342
|
if (n)
|
|
6327
6343
|
for (let s = 0; s < n.length; s++) {
|
|
6328
6344
|
const l = n[s];
|
|
@@ -6371,7 +6387,7 @@ function Lc(i, e, t) {
|
|
|
6371
6387
|
let a;
|
|
6372
6388
|
for (let o in r) {
|
|
6373
6389
|
let n = r[o];
|
|
6374
|
-
|
|
6390
|
+
St(o, e) ? (a = At(o, n, e), i._setPendingPropertyOrPath(a, t, !0, !0)) : St(n, e) && (a = At(n, o, e), i._setPendingPropertyOrPath(a, t, !0, !0));
|
|
6375
6391
|
}
|
|
6376
6392
|
}
|
|
6377
6393
|
}
|
|
@@ -6396,7 +6412,7 @@ function zc(i, e, t, r, a) {
|
|
|
6396
6412
|
let o = r.dependencies, n = { index: a, binding: t, part: r, evaluator: i };
|
|
6397
6413
|
for (let s = 0; s < o.length; s++) {
|
|
6398
6414
|
let l = o[s];
|
|
6399
|
-
typeof l == "string" && (l =
|
|
6415
|
+
typeof l == "string" && (l = In(l), l.wildcard = !0), i._addTemplatePropertyEffect(e, l.rootProperty, { fn: Rc, info: n, trigger: l });
|
|
6400
6416
|
}
|
|
6401
6417
|
}
|
|
6402
6418
|
}
|
|
@@ -6496,11 +6512,11 @@ function Fi(i) {
|
|
|
6496
6512
|
}
|
|
6497
6513
|
function ru(i, e) {
|
|
6498
6514
|
return e.args = i.map(function(t) {
|
|
6499
|
-
let r =
|
|
6515
|
+
let r = In(t);
|
|
6500
6516
|
return r.literal || (e.static = !1), r;
|
|
6501
6517
|
}, this), e;
|
|
6502
6518
|
}
|
|
6503
|
-
function
|
|
6519
|
+
function In(i) {
|
|
6504
6520
|
let e = i.trim().replace(/,/g, ",").replace(/\\(.)/g, "$1"), t = { name: e, value: "", literal: !1 }, r = e[0];
|
|
6505
6521
|
switch (r === "-" && (r = e[1]), r >= "0" && r <= "9" && (r = "#"), r) {
|
|
6506
6522
|
case "'":
|
|
@@ -6511,18 +6527,18 @@ function Sn(i) {
|
|
|
6511
6527
|
t.value = Number(e), t.literal = !0;
|
|
6512
6528
|
break;
|
|
6513
6529
|
}
|
|
6514
|
-
return t.literal || (t.rootProperty =
|
|
6530
|
+
return t.literal || (t.rootProperty = Fe(e), t.structured = ar(e), t.structured && (t.wildcard = e.slice(-2) == ".*", t.wildcard && (t.name = e.slice(0, -2)))), t;
|
|
6515
6531
|
}
|
|
6516
6532
|
function lo(i, e, t) {
|
|
6517
6533
|
let r = te(i, t);
|
|
6518
6534
|
return r === void 0 && (r = e[t]), r;
|
|
6519
6535
|
}
|
|
6520
|
-
function
|
|
6536
|
+
function Sn(i, e, t, r) {
|
|
6521
6537
|
const a = { indexSplices: r };
|
|
6522
6538
|
rr && !i._overrideLegacyUndefined && (e.splices = a), i.notifyPath(t + ".splices", a), i.notifyPath(t + ".length", e.length), rr && !i._overrideLegacyUndefined && (a.indexSplices = []);
|
|
6523
6539
|
}
|
|
6524
6540
|
function pt(i, e, t, r, a, o) {
|
|
6525
|
-
|
|
6541
|
+
Sn(i, e, t, [{ index: r, addedCount: a, removed: o, object: e, type: "splice" }]);
|
|
6526
6542
|
}
|
|
6527
6543
|
function au(i) {
|
|
6528
6544
|
return i[0].toUpperCase() + i.substring(1);
|
|
@@ -6579,7 +6595,7 @@ const Lr = U((i) => {
|
|
|
6579
6595
|
return this._hasPropertyEffect(a, T.COMPUTE);
|
|
6580
6596
|
}
|
|
6581
6597
|
_setPendingPropertyOrPath(a, o, n, s) {
|
|
6582
|
-
if (s ||
|
|
6598
|
+
if (s || Fe(Array.isArray(a) ? a[0] : a) !== a) {
|
|
6583
6599
|
if (!s) {
|
|
6584
6600
|
let l = te(this, a);
|
|
6585
6601
|
if (a = Za(this, a, o), !a || !super._shouldPropertyChange(a, o, l))
|
|
@@ -6638,7 +6654,7 @@ const Lr = U((i) => {
|
|
|
6638
6654
|
let s = this.__dataHasPaths;
|
|
6639
6655
|
this.__dataHasPaths = !1;
|
|
6640
6656
|
let l;
|
|
6641
|
-
Oc(this, o, n, s), l = this.__dataToNotify, this.__dataToNotify = null, this._propagatePropertyChanges(o, n, s), this._flushClients(), gt(this, this[T.REFLECT], o, n, s), gt(this, this[T.OBSERVE], o, n, s), l &&
|
|
6657
|
+
Oc(this, o, n, s), l = this.__dataToNotify, this.__dataToNotify = null, this._propagatePropertyChanges(o, n, s), this._flushClients(), gt(this, this[T.REFLECT], o, n, s), gt(this, this[T.OBSERVE], o, n, s), l && Sc(this, l, o, n, s), this.__dataCounter == 1 && (this.__dataTemp = {});
|
|
6642
6658
|
}
|
|
6643
6659
|
_propagatePropertyChanges(a, o, n) {
|
|
6644
6660
|
this[T.PROPAGATE] && gt(this, this[T.PROPAGATE], a, o, n), this.__templateInfo && this._runEffectsForTemplate(this.__templateInfo, a, o, n);
|
|
@@ -6659,7 +6675,7 @@ const Lr = U((i) => {
|
|
|
6659
6675
|
}
|
|
6660
6676
|
notifySplices(a, o) {
|
|
6661
6677
|
let n = { path: "" }, s = te(this, a, n);
|
|
6662
|
-
|
|
6678
|
+
Sn(this, s, n.path, o);
|
|
6663
6679
|
}
|
|
6664
6680
|
get(a, o) {
|
|
6665
6681
|
return te(o || this, a);
|
|
@@ -6733,7 +6749,7 @@ const Lr = U((i) => {
|
|
|
6733
6749
|
let { name: c, structured: p, wildcard: m, value: y, literal: L } = a[d];
|
|
6734
6750
|
if (!L)
|
|
6735
6751
|
if (m) {
|
|
6736
|
-
const O =
|
|
6752
|
+
const O = St(c, o), V = lo(s, n, O ? o : c);
|
|
6737
6753
|
y = { path: O ? o : c, value: V, base: O ? te(s, c) : V };
|
|
6738
6754
|
} else
|
|
6739
6755
|
y = p ? lo(s, n, c) : s[c];
|
|
@@ -6852,8 +6868,8 @@ const Lr = U((i) => {
|
|
|
6852
6868
|
if (L) {
|
|
6853
6869
|
let { args: V, methodName: A } = L;
|
|
6854
6870
|
for (let W = 0; W < V.length; W++) {
|
|
6855
|
-
let
|
|
6856
|
-
|
|
6871
|
+
let ce = V[W];
|
|
6872
|
+
ce.literal || O.push(ce);
|
|
6857
6873
|
}
|
|
6858
6874
|
let j = o.dynamicFns;
|
|
6859
6875
|
(j && j[A] || L.static) && (O.push(A), L.dynamicFn = !0);
|
|
@@ -7013,7 +7029,7 @@ const su = "3.5.2", ho = window.ShadyCSS && window.ShadyCSS.cssBuild, lu = U((i)
|
|
|
7013
7029
|
}
|
|
7014
7030
|
function n(l) {
|
|
7015
7031
|
let d = null;
|
|
7016
|
-
if (l && (!ui || Wh) && (d =
|
|
7032
|
+
if (l && (!ui || Wh) && (d = It.import(l, "template"), ui && !d))
|
|
7017
7033
|
throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);
|
|
7018
7034
|
return d;
|
|
7019
7035
|
}
|
|
@@ -7055,7 +7071,7 @@ const su = "3.5.2", ho = window.ShadyCSS && window.ShadyCSS.cssBuild, lu = U((i)
|
|
|
7055
7071
|
if (d)
|
|
7056
7072
|
this._importPath = Vr(d.url);
|
|
7057
7073
|
else {
|
|
7058
|
-
const h =
|
|
7074
|
+
const h = It.import(this.is);
|
|
7059
7075
|
this._importPath = h && h.assetpath || Object.getPrototypeOf(this.prototype).constructor.importPath;
|
|
7060
7076
|
}
|
|
7061
7077
|
}
|
|
@@ -7815,7 +7831,7 @@ const bt = () => {
|
|
|
7815
7831
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7816
7832
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7817
7833
|
*/
|
|
7818
|
-
const
|
|
7834
|
+
const _e = [];
|
|
7819
7835
|
function dr(i, e, t = i.getAttribute("dir")) {
|
|
7820
7836
|
e ? i.setAttribute("dir", e) : t != null && i.removeAttribute("dir");
|
|
7821
7837
|
}
|
|
@@ -7824,7 +7840,7 @@ function hr() {
|
|
|
7824
7840
|
}
|
|
7825
7841
|
function yu() {
|
|
7826
7842
|
const i = hr();
|
|
7827
|
-
|
|
7843
|
+
_e.forEach((e) => {
|
|
7828
7844
|
dr(e, i);
|
|
7829
7845
|
});
|
|
7830
7846
|
}
|
|
@@ -7843,11 +7859,11 @@ const ne = (i) => class extends i {
|
|
|
7843
7859
|
attributeChangedCallback(e, t, r) {
|
|
7844
7860
|
if (super.attributeChangedCallback(e, t, r), e !== "dir")
|
|
7845
7861
|
return;
|
|
7846
|
-
const a = hr(), o = r === a &&
|
|
7862
|
+
const a = hr(), o = r === a && _e.indexOf(this) === -1, n = !r && t && _e.indexOf(this) === -1;
|
|
7847
7863
|
o || n ? (this.__subscribe(), dr(this, a, r)) : r !== a && t === a && this.__unsubscribe();
|
|
7848
7864
|
}
|
|
7849
7865
|
disconnectedCallback() {
|
|
7850
|
-
super.disconnectedCallback(), this.__restoreSubscription =
|
|
7866
|
+
super.disconnectedCallback(), this.__restoreSubscription = _e.includes(this), this.__unsubscribe();
|
|
7851
7867
|
}
|
|
7852
7868
|
_valueToNodeAttribute(e, t, r) {
|
|
7853
7869
|
r === "dir" && t === "" && !e.hasAttribute("dir") || super._valueToNodeAttribute(e, t, r);
|
|
@@ -7856,10 +7872,10 @@ const ne = (i) => class extends i {
|
|
|
7856
7872
|
e === "dir" && !t ? this.dir = "" : super._attributeToProperty(e, t, r);
|
|
7857
7873
|
}
|
|
7858
7874
|
__subscribe() {
|
|
7859
|
-
|
|
7875
|
+
_e.includes(this) || _e.push(this);
|
|
7860
7876
|
}
|
|
7861
7877
|
__unsubscribe() {
|
|
7862
|
-
|
|
7878
|
+
_e.includes(this) && _e.splice(_e.indexOf(this), 1);
|
|
7863
7879
|
}
|
|
7864
7880
|
};
|
|
7865
7881
|
/**
|
|
@@ -8051,7 +8067,7 @@ class Z extends EventTarget {
|
|
|
8051
8067
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
8052
8068
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8053
8069
|
*/
|
|
8054
|
-
class
|
|
8070
|
+
class xe extends Z {
|
|
8055
8071
|
constructor(e) {
|
|
8056
8072
|
super(e, "tooltip"), this.setTarget(e);
|
|
8057
8073
|
}
|
|
@@ -8109,7 +8125,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
8109
8125
|
Code distributed by Google as part of the polymer project is also
|
|
8110
8126
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
8111
8127
|
*/
|
|
8112
|
-
const
|
|
8128
|
+
const Iu = (i) => i, zn = typeof document.head.style.touchAction == "string", cr = "__polymerGestures", Hi = "__polymerGesturesHandled", ur = "__polymerGesturesTouchAction", fo = 25, vo = 5, Su = 2, Au = ["mousedown", "mousemove", "mouseup", "click"], Tu = [0, 1, 4, 2], Pu = function() {
|
|
8113
8129
|
try {
|
|
8114
8130
|
return new MouseEvent("test", { buttons: 1 }).buttons === 1;
|
|
8115
8131
|
} catch {
|
|
@@ -8128,7 +8144,7 @@ function Rn(i) {
|
|
|
8128
8144
|
}
|
|
8129
8145
|
})();
|
|
8130
8146
|
const Du = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u), Ou = { button: !0, command: !0, fieldset: !0, input: !0, keygen: !0, optgroup: !0, option: !0, select: !0, textarea: !0 };
|
|
8131
|
-
function
|
|
8147
|
+
function Le(i) {
|
|
8132
8148
|
const e = i.type;
|
|
8133
8149
|
if (!Rn(e))
|
|
8134
8150
|
return !1;
|
|
@@ -8142,7 +8158,7 @@ function Vu(i) {
|
|
|
8142
8158
|
if (i.type === "click") {
|
|
8143
8159
|
if (i.detail === 0)
|
|
8144
8160
|
return !0;
|
|
8145
|
-
const e =
|
|
8161
|
+
const e = Ae(i);
|
|
8146
8162
|
if (!e.nodeType || e.nodeType !== Node.ELEMENT_NODE)
|
|
8147
8163
|
return !0;
|
|
8148
8164
|
const t = e.getBoundingClientRect(), r = i.pageX, a = i.pageY;
|
|
@@ -8150,7 +8166,7 @@ function Vu(i) {
|
|
|
8150
8166
|
}
|
|
8151
8167
|
return !1;
|
|
8152
8168
|
}
|
|
8153
|
-
const
|
|
8169
|
+
const ge = { touch: { x: 0, y: 0, id: -1, scrollDecided: !1 } };
|
|
8154
8170
|
function Mu(i) {
|
|
8155
8171
|
let e = "auto";
|
|
8156
8172
|
const t = $n(i);
|
|
@@ -8167,7 +8183,7 @@ function Fn(i, e, t) {
|
|
|
8167
8183
|
function Ke(i) {
|
|
8168
8184
|
document.removeEventListener("mousemove", i.movefn), document.removeEventListener("mouseup", i.upfn), i.movefn = null, i.upfn = null;
|
|
8169
8185
|
}
|
|
8170
|
-
const $n = window.ShadyDOM && window.ShadyDOM.noPatch ? window.ShadyDOM.composedPath : (i) => i.composedPath && i.composedPath() || [], Fr = {},
|
|
8186
|
+
const $n = window.ShadyDOM && window.ShadyDOM.noPatch ? window.ShadyDOM.composedPath : (i) => i.composedPath && i.composedPath() || [], Fr = {}, Ne = [];
|
|
8171
8187
|
function Nu(i, e) {
|
|
8172
8188
|
let t = document.elementFromPoint(i, e), r = t;
|
|
8173
8189
|
for (; r && r.shadowRoot && !window.ShadyDOM; ) {
|
|
@@ -8178,7 +8194,7 @@ function Nu(i, e) {
|
|
|
8178
8194
|
}
|
|
8179
8195
|
return t;
|
|
8180
8196
|
}
|
|
8181
|
-
function
|
|
8197
|
+
function Ae(i) {
|
|
8182
8198
|
const e = $n(i);
|
|
8183
8199
|
return e.length > 0 ? e[0] : i.target;
|
|
8184
8200
|
}
|
|
@@ -8191,33 +8207,33 @@ function Lu(i) {
|
|
|
8191
8207
|
return;
|
|
8192
8208
|
if (!i[Hi] && (i[Hi] = {}, e.startsWith("touch"))) {
|
|
8193
8209
|
const o = i.changedTouches[0];
|
|
8194
|
-
if (e === "touchstart" && i.touches.length === 1 && (
|
|
8210
|
+
if (e === "touchstart" && i.touches.length === 1 && (ge.touch.id = o.identifier), ge.touch.id !== o.identifier)
|
|
8195
8211
|
return;
|
|
8196
8212
|
zn || (e === "touchstart" || e === "touchmove") && zu(i);
|
|
8197
8213
|
}
|
|
8198
8214
|
const a = i[Hi];
|
|
8199
8215
|
if (!a.skip) {
|
|
8200
|
-
for (let o = 0, n; o <
|
|
8201
|
-
n =
|
|
8202
|
-
for (let o = 0, n; o <
|
|
8203
|
-
n =
|
|
8216
|
+
for (let o = 0, n; o < Ne.length; o++)
|
|
8217
|
+
n = Ne[o], r[n.name] && !a[n.name] && n.flow && n.flow.start.indexOf(i.type) > -1 && n.reset && n.reset();
|
|
8218
|
+
for (let o = 0, n; o < Ne.length; o++)
|
|
8219
|
+
n = Ne[o], r[n.name] && !a[n.name] && (a[n.name] = !0, n[e](i));
|
|
8204
8220
|
}
|
|
8205
8221
|
}
|
|
8206
8222
|
function zu(i) {
|
|
8207
8223
|
const e = i.changedTouches[0], t = i.type;
|
|
8208
8224
|
if (t === "touchstart")
|
|
8209
|
-
|
|
8225
|
+
ge.touch.x = e.clientX, ge.touch.y = e.clientY, ge.touch.scrollDecided = !1;
|
|
8210
8226
|
else if (t === "touchmove") {
|
|
8211
|
-
if (
|
|
8227
|
+
if (ge.touch.scrollDecided)
|
|
8212
8228
|
return;
|
|
8213
|
-
|
|
8229
|
+
ge.touch.scrollDecided = !0;
|
|
8214
8230
|
const r = Mu(i);
|
|
8215
8231
|
let a = !1;
|
|
8216
|
-
const o = Math.abs(
|
|
8232
|
+
const o = Math.abs(ge.touch.x - e.clientX), n = Math.abs(ge.touch.y - e.clientY);
|
|
8217
8233
|
i.cancelable && (r === "none" ? a = !0 : r === "pan-x" ? a = n > o : r === "pan-y" && (a = o > n)), a ? i.preventDefault() : fi("track");
|
|
8218
8234
|
}
|
|
8219
8235
|
}
|
|
8220
|
-
function
|
|
8236
|
+
function pe(i, e, t) {
|
|
8221
8237
|
return Fr[e] ? (Ru(i, e, t), !0) : !1;
|
|
8222
8238
|
}
|
|
8223
8239
|
function Ru(i, e, t) {
|
|
@@ -8229,13 +8245,13 @@ function Ru(i, e, t) {
|
|
|
8229
8245
|
i.addEventListener(e, t), r.touchAction && Hn(i, r.touchAction);
|
|
8230
8246
|
}
|
|
8231
8247
|
function $r(i) {
|
|
8232
|
-
|
|
8248
|
+
Ne.push(i), i.emits.forEach((e) => {
|
|
8233
8249
|
Fr[e] = i;
|
|
8234
8250
|
});
|
|
8235
8251
|
}
|
|
8236
8252
|
function Fu(i) {
|
|
8237
|
-
for (let e = 0, t; e <
|
|
8238
|
-
t =
|
|
8253
|
+
for (let e = 0, t; e < Ne.length; e++) {
|
|
8254
|
+
t = Ne[e];
|
|
8239
8255
|
for (let r = 0, a; r < t.emits.length; r++)
|
|
8240
8256
|
if (a = t.emits[r], a === i)
|
|
8241
8257
|
return t;
|
|
@@ -8249,7 +8265,7 @@ function Hn(i, e) {
|
|
|
8249
8265
|
}
|
|
8250
8266
|
function Hr(i, e, t) {
|
|
8251
8267
|
const r = new Event(e, { bubbles: !0, cancelable: !0, composed: !0 });
|
|
8252
|
-
if (r.detail = t,
|
|
8268
|
+
if (r.detail = t, Iu(i).dispatchEvent(r), r.defaultPrevented) {
|
|
8253
8269
|
const a = t.preventer || t.sourceEvent;
|
|
8254
8270
|
a && a.preventDefault && a.preventDefault();
|
|
8255
8271
|
}
|
|
@@ -8261,18 +8277,18 @@ function fi(i) {
|
|
|
8261
8277
|
$r({ name: "downup", deps: ["mousedown", "touchstart", "touchend"], flow: { start: ["mousedown", "touchstart"], end: ["mouseup", "touchend"] }, emits: ["down", "up"], info: { movefn: null, upfn: null }, reset() {
|
|
8262
8278
|
Ke(this.info);
|
|
8263
8279
|
}, mousedown(i) {
|
|
8264
|
-
if (!
|
|
8280
|
+
if (!Le(i))
|
|
8265
8281
|
return;
|
|
8266
|
-
const e =
|
|
8267
|
-
|
|
8282
|
+
const e = Ae(i), t = this, r = (o) => {
|
|
8283
|
+
Le(o) || (ft("up", e, o), Ke(t.info));
|
|
8268
8284
|
}, a = (o) => {
|
|
8269
|
-
|
|
8285
|
+
Le(o) && ft("up", e, o), Ke(t.info);
|
|
8270
8286
|
};
|
|
8271
8287
|
Fn(this.info, r, a), ft("down", e, i);
|
|
8272
8288
|
}, touchstart(i) {
|
|
8273
|
-
ft("down",
|
|
8289
|
+
ft("down", Ae(i), i.changedTouches[0], i);
|
|
8274
8290
|
}, touchend(i) {
|
|
8275
|
-
ft("up",
|
|
8291
|
+
ft("up", Ae(i), i.changedTouches[0], i);
|
|
8276
8292
|
} });
|
|
8277
8293
|
function ft(i, e, t, r) {
|
|
8278
8294
|
e && Hr(e, i, { x: t.clientX, y: t.clientY, sourceEvent: t, preventer: r, prevent(a) {
|
|
@@ -8280,15 +8296,15 @@ function ft(i, e, t, r) {
|
|
|
8280
8296
|
} });
|
|
8281
8297
|
}
|
|
8282
8298
|
$r({ name: "track", touchAction: "none", deps: ["mousedown", "touchstart", "touchmove", "touchend"], flow: { start: ["mousedown", "touchstart"], end: ["mouseup", "touchend"] }, emits: ["track"], info: { x: 0, y: 0, state: "start", started: !1, moves: [], addMove(i) {
|
|
8283
|
-
this.moves.length >
|
|
8299
|
+
this.moves.length > Su && this.moves.shift(), this.moves.push(i);
|
|
8284
8300
|
}, movefn: null, upfn: null, prevent: !1 }, reset() {
|
|
8285
8301
|
this.info.state = "start", this.info.started = !1, this.info.moves = [], this.info.x = 0, this.info.y = 0, this.info.prevent = !1, Ke(this.info);
|
|
8286
8302
|
}, mousedown(i) {
|
|
8287
|
-
if (!
|
|
8303
|
+
if (!Le(i))
|
|
8288
8304
|
return;
|
|
8289
|
-
const e =
|
|
8305
|
+
const e = Ae(i), t = this, r = (o) => {
|
|
8290
8306
|
const n = o.clientX, s = o.clientY;
|
|
8291
|
-
_o(t.info, n, s) && (t.info.state = t.info.started ? o.type === "mouseup" ? "end" : "track" : "start", t.info.state === "start" && fi("tap"), t.info.addMove({ x: n, y: s }),
|
|
8307
|
+
_o(t.info, n, s) && (t.info.state = t.info.started ? o.type === "mouseup" ? "end" : "track" : "start", t.info.state === "start" && fi("tap"), t.info.addMove({ x: n, y: s }), Le(o) || (t.info.state = "end", Ke(t.info)), e && Bi(t.info, e, o), t.info.started = !0);
|
|
8292
8308
|
}, a = (o) => {
|
|
8293
8309
|
t.info.started && r(o), Ke(t.info);
|
|
8294
8310
|
};
|
|
@@ -8297,10 +8313,10 @@ $r({ name: "track", touchAction: "none", deps: ["mousedown", "touchstart", "touc
|
|
|
8297
8313
|
const e = i.changedTouches[0];
|
|
8298
8314
|
this.info.x = e.clientX, this.info.y = e.clientY;
|
|
8299
8315
|
}, touchmove(i) {
|
|
8300
|
-
const e =
|
|
8316
|
+
const e = Ae(i), t = i.changedTouches[0], r = t.clientX, a = t.clientY;
|
|
8301
8317
|
_o(this.info, r, a) && (this.info.state === "start" && fi("tap"), this.info.addMove({ x: r, y: a }), Bi(this.info, e, t), this.info.state = "track", this.info.started = !0);
|
|
8302
8318
|
}, touchend(i) {
|
|
8303
|
-
const e =
|
|
8319
|
+
const e = Ae(i), t = i.changedTouches[0];
|
|
8304
8320
|
this.info.started && (this.info.state = "end", this.info.addMove({ x: t.clientX, y: t.clientY }), Bi(this.info, e, t));
|
|
8305
8321
|
} });
|
|
8306
8322
|
function _o(i, e, t) {
|
|
@@ -8323,9 +8339,9 @@ function Bi(i, e, t) {
|
|
|
8323
8339
|
$r({ name: "tap", deps: ["mousedown", "click", "touchstart", "touchend"], flow: { start: ["mousedown", "touchstart"], end: ["click", "touchend"] }, emits: ["tap"], info: { x: NaN, y: NaN, prevent: !1 }, reset() {
|
|
8324
8340
|
this.info.x = NaN, this.info.y = NaN, this.info.prevent = !1;
|
|
8325
8341
|
}, mousedown(i) {
|
|
8326
|
-
|
|
8342
|
+
Le(i) && (this.info.x = i.clientX, this.info.y = i.clientY);
|
|
8327
8343
|
}, click(i) {
|
|
8328
|
-
|
|
8344
|
+
Le(i) && go(this.info, i);
|
|
8329
8345
|
}, touchstart(i) {
|
|
8330
8346
|
const e = i.changedTouches[0];
|
|
8331
8347
|
this.info.x = e.clientX, this.info.y = e.clientY;
|
|
@@ -8333,7 +8349,7 @@ $r({ name: "tap", deps: ["mousedown", "click", "touchstart", "touchend"], flow:
|
|
|
8333
8349
|
go(this.info, i.changedTouches[0], i);
|
|
8334
8350
|
} });
|
|
8335
8351
|
function go(i, e, t) {
|
|
8336
|
-
const r = Math.abs(e.clientX - i.x), a = Math.abs(e.clientY - i.y), o =
|
|
8352
|
+
const r = Math.abs(e.clientX - i.x), a = Math.abs(e.clientY - i.y), o = Ae(t || e);
|
|
8337
8353
|
!o || Ou[o.localName] && o.hasAttribute("disabled") || (isNaN(r) || isNaN(a) || r <= fo && a <= fo || Vu(e)) && (i.prevent || Hr(o, "tap", { x: e.clientX, y: e.clientY, sourceEvent: e, preventer: t }));
|
|
8338
8354
|
}
|
|
8339
8355
|
/**
|
|
@@ -8360,7 +8376,7 @@ const at = U((i) => class extends i {
|
|
|
8360
8376
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
8361
8377
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8362
8378
|
*/
|
|
8363
|
-
const
|
|
8379
|
+
const $e = U((i) => class extends i {
|
|
8364
8380
|
ready() {
|
|
8365
8381
|
super.ready(), this.addEventListener("keydown", (e) => {
|
|
8366
8382
|
this._onKeyDown(e);
|
|
@@ -8390,14 +8406,14 @@ const Fe = U((i) => class extends i {
|
|
|
8390
8406
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
8391
8407
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8392
8408
|
*/
|
|
8393
|
-
const Br = (i) => class extends at(
|
|
8409
|
+
const Br = (i) => class extends at($e(i)) {
|
|
8394
8410
|
get _activeKeys() {
|
|
8395
8411
|
return [" "];
|
|
8396
8412
|
}
|
|
8397
8413
|
ready() {
|
|
8398
|
-
super.ready(),
|
|
8414
|
+
super.ready(), pe(this, "down", (e) => {
|
|
8399
8415
|
this._shouldSetActive(e) && this._setActive(!0);
|
|
8400
|
-
}),
|
|
8416
|
+
}), pe(this, "up", () => {
|
|
8401
8417
|
this._setActive(!1);
|
|
8402
8418
|
});
|
|
8403
8419
|
}
|
|
@@ -8496,7 +8512,7 @@ function Uu(i) {
|
|
|
8496
8512
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
8497
8513
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8498
8514
|
*/
|
|
8499
|
-
const
|
|
8515
|
+
const He = U((i) => class extends i {
|
|
8500
8516
|
get _keyboardActive() {
|
|
8501
8517
|
return Ci();
|
|
8502
8518
|
}
|
|
@@ -8541,7 +8557,7 @@ const qn = (i) => class extends at(i) {
|
|
|
8541
8557
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
8542
8558
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8543
8559
|
*/
|
|
8544
|
-
const ki = U((i) => class extends
|
|
8560
|
+
const ki = U((i) => class extends He(qn(i)) {
|
|
8545
8561
|
static get properties() {
|
|
8546
8562
|
return { autofocus: { type: Boolean }, focusElement: { type: Object, readOnly: !0, observer: "_focusElementChanged" }, _lastTabIndex: { value: 0 } };
|
|
8547
8563
|
}
|
|
@@ -8820,7 +8836,7 @@ class Yu {
|
|
|
8820
8836
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
8821
8837
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8822
8838
|
*/
|
|
8823
|
-
const
|
|
8839
|
+
const ve = U((i) => typeof i.prototype.addController == "function" ? i : class extends i {
|
|
8824
8840
|
constructor() {
|
|
8825
8841
|
super(), this.__controllers = /* @__PURE__ */ new Set();
|
|
8826
8842
|
}
|
|
@@ -8846,18 +8862,18 @@ const fe = U((i) => typeof i.prototype.addController == "function" ? i : class e
|
|
|
8846
8862
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
8847
8863
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8848
8864
|
*/
|
|
8849
|
-
const
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
document.body.appendChild(
|
|
8865
|
+
const ue = document.createElement("div");
|
|
8866
|
+
ue.style.position = "fixed";
|
|
8867
|
+
ue.style.clip = "rect(0px, 0px, 0px, 0px)";
|
|
8868
|
+
ue.setAttribute("aria-live", "polite");
|
|
8869
|
+
document.body.appendChild(ue);
|
|
8854
8870
|
let Gt;
|
|
8855
8871
|
function ii(i, e = {}) {
|
|
8856
8872
|
const t = e.mode || "polite", r = e.timeout === void 0 ? 150 : e.timeout;
|
|
8857
|
-
t === "alert" ? (
|
|
8858
|
-
|
|
8859
|
-
})) : (Gt && Gt.cancel(),
|
|
8860
|
-
|
|
8873
|
+
t === "alert" ? (ue.removeAttribute("aria-live"), ue.removeAttribute("role"), Gt = oe.debounce(Gt, Dt, () => {
|
|
8874
|
+
ue.setAttribute("role", "alert");
|
|
8875
|
+
})) : (Gt && Gt.cancel(), ue.removeAttribute("role"), ue.setAttribute("aria-live", t)), ue.textContent = "", setTimeout(() => {
|
|
8876
|
+
ue.textContent = i;
|
|
8861
8877
|
}, r);
|
|
8862
8878
|
}
|
|
8863
8879
|
/**
|
|
@@ -8994,7 +9010,7 @@ class Yn extends Gr {
|
|
|
8994
9010
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
8995
9011
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8996
9012
|
*/
|
|
8997
|
-
const Xu = U((i) => class extends
|
|
9013
|
+
const Xu = U((i) => class extends ve(i) {
|
|
8998
9014
|
static get properties() {
|
|
8999
9015
|
return { label: { type: String, observer: "_labelChanged" } };
|
|
9000
9016
|
}
|
|
@@ -9045,7 +9061,7 @@ const Kr = U((i) => class extends i {
|
|
|
9045
9061
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9046
9062
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9047
9063
|
*/
|
|
9048
|
-
const Ei = (i) => class extends Kr(Xu(
|
|
9064
|
+
const Ei = (i) => class extends Kr(Xu(ve(i))) {
|
|
9049
9065
|
static get properties() {
|
|
9050
9066
|
return { ariaTarget: { type: Object, observer: "_ariaTargetChanged" }, errorMessage: { type: String, observer: "_errorMessageChanged" }, helperText: { type: String, observer: "_helperTextChanged" }, accessibleName: { type: String, observer: "_accessibleNameChanged" }, accessibleNameRef: { type: String, observer: "_accessibleNameRefChanged" } };
|
|
9051
9067
|
}
|
|
@@ -9324,7 +9340,7 @@ class Zu extends Qu(se(N(E))) {
|
|
|
9324
9340
|
`;
|
|
9325
9341
|
}
|
|
9326
9342
|
ready() {
|
|
9327
|
-
super.ready(), this._tooltipController = new
|
|
9343
|
+
super.ready(), this._tooltipController = new xe(this), this._tooltipController.setAriaTarget(this.inputElement), this.addController(this._tooltipController);
|
|
9328
9344
|
}
|
|
9329
9345
|
}
|
|
9330
9346
|
w(Zu);
|
|
@@ -9559,12 +9575,12 @@ g("vaadin-checkbox-group", [Xr, Gn, ep], { moduleId: "lumo-checkbox-group" });
|
|
|
9559
9575
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
9560
9576
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9561
9577
|
*/
|
|
9562
|
-
const tp = (i) => class extends Ei(
|
|
9578
|
+
const tp = (i) => class extends Ei(He(at(i))) {
|
|
9563
9579
|
static get properties() {
|
|
9564
9580
|
return { value: { type: Array, value: () => [], notify: !0, sync: !0, observer: "__valueChanged" }, readonly: { type: Boolean, value: !1, reflectToAttribute: !0, observer: "__readonlyChanged" } };
|
|
9565
9581
|
}
|
|
9566
9582
|
constructor() {
|
|
9567
|
-
super(), this.__registerCheckbox = this.__registerCheckbox.bind(this), this.__unregisterCheckbox = this.__unregisterCheckbox.bind(this), this.__onCheckboxCheckedChanged = this.__onCheckboxCheckedChanged.bind(this), this._tooltipController = new
|
|
9583
|
+
super(), this.__registerCheckbox = this.__registerCheckbox.bind(this), this.__unregisterCheckbox = this.__unregisterCheckbox.bind(this), this.__onCheckboxCheckedChanged = this.__onCheckboxCheckedChanged.bind(this), this._tooltipController = new xe(this), this._tooltipController.addEventListener("tooltip-changed", (e) => {
|
|
9568
9584
|
const t = e.detail.node;
|
|
9569
9585
|
if (t && t.isConnected) {
|
|
9570
9586
|
const r = this.__checkboxes.map((a) => a.inputElement);
|
|
@@ -9784,7 +9800,7 @@ g("", ot, { moduleId: "lumo-overlay" });
|
|
|
9784
9800
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9785
9801
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9786
9802
|
*/
|
|
9787
|
-
const
|
|
9803
|
+
const Ii = f`
|
|
9788
9804
|
:host([opening]),
|
|
9789
9805
|
:host([closing]) {
|
|
9790
9806
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -9815,7 +9831,7 @@ const Si = f`
|
|
|
9815
9831
|
}
|
|
9816
9832
|
}
|
|
9817
9833
|
`;
|
|
9818
|
-
g("",
|
|
9834
|
+
g("", Ii, { moduleId: "lumo-menu-overlay-core" });
|
|
9819
9835
|
const ap = f`
|
|
9820
9836
|
/* Small viewport (bottom sheet) styles */
|
|
9821
9837
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
@@ -9878,7 +9894,7 @@ const ap = f`
|
|
|
9878
9894
|
transform: translateY(150%);
|
|
9879
9895
|
}
|
|
9880
9896
|
}
|
|
9881
|
-
`, Qr = [ot,
|
|
9897
|
+
`, Qr = [ot, Ii, ap];
|
|
9882
9898
|
g("", Qr, { moduleId: "lumo-menu-overlay" });
|
|
9883
9899
|
const op = f`
|
|
9884
9900
|
[part='overlay'] {
|
|
@@ -10878,8 +10894,8 @@ const np = f`
|
|
|
10878
10894
|
[part='clear-button']::before {
|
|
10879
10895
|
content: var(--lumo-icons-cross);
|
|
10880
10896
|
}
|
|
10881
|
-
`,
|
|
10882
|
-
g("",
|
|
10897
|
+
`, Be = [Xr, Jr, Gn, np];
|
|
10898
|
+
g("", Be, { moduleId: "lumo-input-field-shared-styles" });
|
|
10883
10899
|
const sp = f`
|
|
10884
10900
|
[part='toggle-button']::before {
|
|
10885
10901
|
content: var(--lumo-icons-calendar);
|
|
@@ -10903,7 +10919,7 @@ const sp = f`
|
|
|
10903
10919
|
--_lumo-text-field-overflow-mask-image: none;
|
|
10904
10920
|
}
|
|
10905
10921
|
`;
|
|
10906
|
-
g("vaadin-date-picker", [
|
|
10922
|
+
g("vaadin-date-picker", [Be, sp], { moduleId: "lumo-date-picker" });
|
|
10907
10923
|
/**
|
|
10908
10924
|
* @license
|
|
10909
10925
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -11119,11 +11135,11 @@ function Zr(i, e, t) {
|
|
|
11119
11135
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11120
11136
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11121
11137
|
*/
|
|
11122
|
-
const
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
const fp = _r(/^iPad/u) || _r(/^Mac/u) && navigator.maxTouchPoints > 1, vp = _r(/^iPhone/u), ea = vp || fp, _p =
|
|
11138
|
+
const Si = (i) => i.test(navigator.userAgent), _r = (i) => i.test(navigator.platform), mp = (i) => i.test(navigator.vendor);
|
|
11139
|
+
Si(/Android/u);
|
|
11140
|
+
Si(/Chrome/u) && mp(/Google Inc/u);
|
|
11141
|
+
Si(/Firefox/u);
|
|
11142
|
+
const fp = _r(/^iPad/u) || _r(/^Mac/u) && navigator.maxTouchPoints > 1, vp = _r(/^iPhone/u), ea = vp || fp, _p = Si(/^((?!chrome|android).)*safari/iu), gr = (() => {
|
|
11127
11143
|
try {
|
|
11128
11144
|
return document.createEvent("TouchEvent"), !0;
|
|
11129
11145
|
} catch {
|
|
@@ -11265,7 +11281,7 @@ class xp {
|
|
|
11265
11281
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11266
11282
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11267
11283
|
*/
|
|
11268
|
-
const Cp = (i) => class extends
|
|
11284
|
+
const Cp = (i) => class extends ve(i) {
|
|
11269
11285
|
static get properties() {
|
|
11270
11286
|
return { focusTrap: { type: Boolean, value: !1 }, restoreFocusOnClose: { type: Boolean, value: !1 }, restoreFocusNode: { type: HTMLElement } };
|
|
11271
11287
|
}
|
|
@@ -11608,7 +11624,7 @@ const Yi = { start: "top", end: "bottom" }, Gi = { start: "left", end: "right" }
|
|
|
11608
11624
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
11609
11625
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11610
11626
|
*/
|
|
11611
|
-
const
|
|
11627
|
+
const Ip = (i) => class extends ta(Ht(i)) {
|
|
11612
11628
|
_shouldCloseOnOutsideClick(e) {
|
|
11613
11629
|
return !e.composedPath().includes(this.positionTarget);
|
|
11614
11630
|
}
|
|
@@ -11621,7 +11637,7 @@ const Sp = (i) => class extends ta(Ht(i)) {
|
|
|
11621
11637
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11622
11638
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11623
11639
|
*/
|
|
11624
|
-
const
|
|
11640
|
+
const Sp = f`
|
|
11625
11641
|
[part='overlay'] {
|
|
11626
11642
|
display: flex;
|
|
11627
11643
|
flex: auto;
|
|
@@ -11642,8 +11658,8 @@ const Ip = f`
|
|
|
11642
11658
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11643
11659
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11644
11660
|
*/
|
|
11645
|
-
g("vaadin-date-picker-overlay", [$t,
|
|
11646
|
-
class Ap extends
|
|
11661
|
+
g("vaadin-date-picker-overlay", [$t, Sp], { moduleId: "vaadin-date-picker-overlay-styles" });
|
|
11662
|
+
class Ap extends Ip(ne(N(E))) {
|
|
11647
11663
|
static get is() {
|
|
11648
11664
|
return "vaadin-date-picker-overlay";
|
|
11649
11665
|
}
|
|
@@ -11743,7 +11759,7 @@ const is = f`
|
|
|
11743
11759
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11744
11760
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11745
11761
|
*/
|
|
11746
|
-
const ia = (i) => class extends Br(qn(
|
|
11762
|
+
const ia = (i) => class extends Br(qn(He(i))) {
|
|
11747
11763
|
static get properties() {
|
|
11748
11764
|
return { tabindex: { type: Number, value: 0, reflectToAttribute: !0 } };
|
|
11749
11765
|
}
|
|
@@ -11763,7 +11779,7 @@ const ia = (i) => class extends Br(qn($e(i))) {
|
|
|
11763
11779
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11764
11780
|
*/
|
|
11765
11781
|
g("vaadin-button", is, { moduleId: "vaadin-button-styles" });
|
|
11766
|
-
class Pp extends ia(se(N(
|
|
11782
|
+
class Pp extends ia(se(N(ve(E)))) {
|
|
11767
11783
|
static get is() {
|
|
11768
11784
|
return "vaadin-button";
|
|
11769
11785
|
}
|
|
@@ -11771,7 +11787,7 @@ class Pp extends ia(se(N(fe(E)))) {
|
|
|
11771
11787
|
return Tp(k);
|
|
11772
11788
|
}
|
|
11773
11789
|
ready() {
|
|
11774
|
-
super.ready(), this._tooltipController = new
|
|
11790
|
+
super.ready(), this._tooltipController = new xe(this), this.addController(this._tooltipController);
|
|
11775
11791
|
}
|
|
11776
11792
|
}
|
|
11777
11793
|
w(Pp);
|
|
@@ -11792,7 +11808,7 @@ function yr(i) {
|
|
|
11792
11808
|
const e = new Date(i);
|
|
11793
11809
|
return e.setHours(0, 0, 0, 0), e;
|
|
11794
11810
|
}
|
|
11795
|
-
function
|
|
11811
|
+
function ye(i, e, t = yr) {
|
|
11796
11812
|
return i instanceof Date && e instanceof Date && t(i).getTime() === t(e).getTime();
|
|
11797
11813
|
}
|
|
11798
11814
|
function ra(i) {
|
|
@@ -12686,7 +12702,7 @@ customElements.define(Co.is, Co);
|
|
|
12686
12702
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
12687
12703
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12688
12704
|
*/
|
|
12689
|
-
const rm = (i) => class extends
|
|
12705
|
+
const rm = (i) => class extends He(i) {
|
|
12690
12706
|
static get properties() {
|
|
12691
12707
|
return { month: { type: Object, value: /* @__PURE__ */ new Date(), sync: !0 }, selectedDate: { type: Object, notify: !0, sync: !0 }, focusedDate: { type: Object }, showWeekNumbers: { type: Boolean, value: !1 }, i18n: { type: Object }, ignoreTaps: { type: Boolean }, minDate: { type: Date, value: null, sync: !0 }, maxDate: { type: Date, value: null, sync: !0 }, isDateDisabled: { type: Function, value: () => !1 }, disabled: { type: Boolean, reflectToAttribute: !0 }, _days: { type: Array }, _weeks: { type: Array }, _notTapping: { type: Boolean } };
|
|
12692
12708
|
}
|
|
@@ -12694,10 +12710,10 @@ const rm = (i) => class extends $e(i) {
|
|
|
12694
12710
|
return ["__focusedDateChanged(focusedDate, _days)"];
|
|
12695
12711
|
}
|
|
12696
12712
|
get focusableDateElement() {
|
|
12697
|
-
return [...this.shadowRoot.querySelectorAll("[part~=date]")].find((e) =>
|
|
12713
|
+
return [...this.shadowRoot.querySelectorAll("[part~=date]")].find((e) => ye(e.date, this.focusedDate));
|
|
12698
12714
|
}
|
|
12699
12715
|
ready() {
|
|
12700
|
-
super.ready(),
|
|
12716
|
+
super.ready(), pe(this.$.monthGrid, "tap", this._handleTap.bind(this));
|
|
12701
12717
|
}
|
|
12702
12718
|
_isDisabled(e, t, r) {
|
|
12703
12719
|
const a = new Date(0, 0);
|
|
@@ -12728,7 +12744,7 @@ const rm = (i) => class extends $e(i) {
|
|
|
12728
12744
|
return this._applyFirstDayOfWeek(r, o).map((s, l) => ({ weekDay: s, weekDayShort: n[l] })).slice(0, 7);
|
|
12729
12745
|
}
|
|
12730
12746
|
__focusedDateChanged(e, t) {
|
|
12731
|
-
Array.isArray(t) && t.some((r) =>
|
|
12747
|
+
Array.isArray(t) && t.some((r) => ye(r, e)) ? this.removeAttribute("aria-hidden") : this.setAttribute("aria-hidden", "true");
|
|
12732
12748
|
}
|
|
12733
12749
|
_getDate(e) {
|
|
12734
12750
|
return e ? e.getDate() : "";
|
|
@@ -12737,7 +12753,7 @@ const rm = (i) => class extends $e(i) {
|
|
|
12737
12753
|
return e && t && t.firstDayOfWeek === 1;
|
|
12738
12754
|
}
|
|
12739
12755
|
_isToday(e) {
|
|
12740
|
-
return
|
|
12756
|
+
return ye(/* @__PURE__ */ new Date(), e);
|
|
12741
12757
|
}
|
|
12742
12758
|
_getDays(e, t) {
|
|
12743
12759
|
if (e === void 0 || t === void 0)
|
|
@@ -12901,10 +12917,10 @@ class om extends rm(N(E)) {
|
|
|
12901
12917
|
return this.__isDayDisabled(e, a, o, n) && s.push("disabled"), this.__isDayFocused(e, t) && s.push("focused"), this.__isDaySelected(e, r) && s.push("selected"), this._isToday(e) && s.push("today"), d && s.push("past"), l && s.push("future"), s.join(" ");
|
|
12902
12918
|
}
|
|
12903
12919
|
__isDayFocused(e, t) {
|
|
12904
|
-
return
|
|
12920
|
+
return ye(e, t);
|
|
12905
12921
|
}
|
|
12906
12922
|
__isDaySelected(e, t) {
|
|
12907
|
-
return
|
|
12923
|
+
return ye(e, t);
|
|
12908
12924
|
}
|
|
12909
12925
|
__getDayAriaSelected(e, t) {
|
|
12910
12926
|
if (this.__isDaySelected(e, t))
|
|
@@ -12966,15 +12982,15 @@ const nm = (i) => class extends i {
|
|
|
12966
12982
|
return this.calendars.map((e) => e.focusableDateElement).find(Boolean);
|
|
12967
12983
|
}
|
|
12968
12984
|
_addListeners() {
|
|
12969
|
-
Hn(this.$.scrollers, "pan-y"),
|
|
12985
|
+
Hn(this.$.scrollers, "pan-y"), pe(this.$.scrollers, "track", this._track.bind(this)), pe(this.shadowRoot.querySelector('[part="clear-button"]'), "tap", this._clear.bind(this)), pe(this.shadowRoot.querySelector('[part="toggle-button"]'), "tap", this._cancel.bind(this)), pe(this.shadowRoot.querySelector('[part="years-toggle-button"]'), "tap", this._toggleYearScroller.bind(this));
|
|
12970
12986
|
}
|
|
12971
12987
|
_initControllers() {
|
|
12972
12988
|
this.addController(new la(this._desktopMediaQuery, (e) => {
|
|
12973
12989
|
this._desktopMode = e;
|
|
12974
12990
|
})), this.addController(new Z(this, "today-button", "vaadin-button", { observe: !1, initializer: (e) => {
|
|
12975
|
-
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (t) => this.__onTodayButtonKeyDown(t)),
|
|
12991
|
+
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (t) => this.__onTodayButtonKeyDown(t)), pe(e, "tap", this._onTodayTap.bind(this)), this._todayButton = e;
|
|
12976
12992
|
} })), this.addController(new Z(this, "cancel-button", "vaadin-button", { observe: !1, initializer: (e) => {
|
|
12977
|
-
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (t) => this.__onCancelButtonKeyDown(t)),
|
|
12993
|
+
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (t) => this.__onCancelButtonKeyDown(t)), pe(e, "tap", this._cancel.bind(this)), this._cancelButton = e;
|
|
12978
12994
|
} })), this.__initMonthScroller(), this.__initYearScroller();
|
|
12979
12995
|
}
|
|
12980
12996
|
reset() {
|
|
@@ -13007,7 +13023,7 @@ const nm = (i) => class extends i {
|
|
|
13007
13023
|
}
|
|
13008
13024
|
__initYearScroller() {
|
|
13009
13025
|
this.addController(new Z(this, "years", "vaadin-date-picker-year-scroller", { observe: !1, initializer: (e) => {
|
|
13010
|
-
e.setAttribute("aria-hidden", "true"),
|
|
13026
|
+
e.setAttribute("aria-hidden", "true"), pe(e, "tap", (t) => {
|
|
13011
13027
|
this._onYearTap(t);
|
|
13012
13028
|
}), e.addEventListener("custom-scroll", () => {
|
|
13013
13029
|
this._onYearScroll();
|
|
@@ -13197,7 +13213,7 @@ const nm = (i) => class extends i {
|
|
|
13197
13213
|
e.preventDefault();
|
|
13198
13214
|
}
|
|
13199
13215
|
__toggleDate(e) {
|
|
13200
|
-
|
|
13216
|
+
ye(e, this.selectedDate) ? (this._clear(), this.focusedDate = e) : this._selectDate(e);
|
|
13201
13217
|
}
|
|
13202
13218
|
__onMonthCalendarKeyDown(e) {
|
|
13203
13219
|
let t = !1;
|
|
@@ -13263,7 +13279,7 @@ const nm = (i) => class extends i {
|
|
|
13263
13279
|
__tryFocusDate() {
|
|
13264
13280
|
if (this.__pendingDateFocus) {
|
|
13265
13281
|
const e = this.focusableDateElement;
|
|
13266
|
-
e &&
|
|
13282
|
+
e && ye(e.date, this.__pendingDateFocus) && (delete this.__pendingDateFocus, e.focus());
|
|
13267
13283
|
}
|
|
13268
13284
|
}
|
|
13269
13285
|
focusDate(e, t) {
|
|
@@ -13386,7 +13402,7 @@ const sm = f`
|
|
|
13386
13402
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13387
13403
|
*/
|
|
13388
13404
|
g("vaadin-date-picker-overlay-content", sm, { moduleId: "vaadin-date-picker-overlay-content-styles" });
|
|
13389
|
-
class lm extends nm(
|
|
13405
|
+
class lm extends nm(ve(N(ne(E)))) {
|
|
13390
13406
|
static get template() {
|
|
13391
13407
|
return k`
|
|
13392
13408
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
@@ -13450,7 +13466,7 @@ const hs = U((i) => class extends i {
|
|
|
13450
13466
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13451
13467
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13452
13468
|
*/
|
|
13453
|
-
const cm = (i) => class extends zt(
|
|
13469
|
+
const cm = (i) => class extends zt($e(i)) {
|
|
13454
13470
|
static get properties() {
|
|
13455
13471
|
return { clearButtonVisible: { type: Boolean, reflectToAttribute: !0, value: !1 } };
|
|
13456
13472
|
}
|
|
@@ -13515,7 +13531,7 @@ const da = U((i) => class extends Wr(Kr(zt(i))) {
|
|
|
13515
13531
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13516
13532
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13517
13533
|
*/
|
|
13518
|
-
const Ai = (i) => class extends hs(ki(da(Ei(cm(
|
|
13534
|
+
const Ai = (i) => class extends hs(ki(da(Ei(cm($e(i)))))) {
|
|
13519
13535
|
static get properties() {
|
|
13520
13536
|
return { allowedCharPattern: { type: String, observer: "_allowedCharPatternChanged" }, autoselect: { type: Boolean, value: !1 }, name: { type: String, reflectToAttribute: !0 }, placeholder: { type: String, reflectToAttribute: !0 }, readonly: { type: Boolean, value: !1, reflectToAttribute: !0 }, title: { type: String, reflectToAttribute: !0 } };
|
|
13521
13537
|
}
|
|
@@ -13703,7 +13719,7 @@ class ps {
|
|
|
13703
13719
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
13704
13720
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13705
13721
|
*/
|
|
13706
|
-
const pm = (i) => class extends Bt(
|
|
13722
|
+
const pm = (i) => class extends Bt(ve(ki(da($e(i))))) {
|
|
13707
13723
|
static get properties() {
|
|
13708
13724
|
return { _selectedDate: { type: Object, sync: !0 }, _focusedDate: { type: Object, sync: !0 }, value: { type: String, notify: !0, value: "", sync: !0 }, initialPosition: String, opened: { type: Boolean, reflectToAttribute: !0, notify: !0, observer: "_openedChanged", sync: !0 }, autoOpenDisabled: Boolean, showWeekNumbers: { type: Boolean, value: !1, sync: !0 }, _fullscreen: { type: Boolean, value: !1, sync: !0 }, _fullscreenMediaQuery: { value: "(max-width: 450px), (max-height: 450px)" }, i18n: { type: Object, sync: !0, value: () => ({ monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], weekdays: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], weekdaysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], firstDayOfWeek: 0, today: "Today", cancel: "Cancel", referenceDate: "", formatDate(e) {
|
|
13709
13725
|
const t = String(e.year).replace(/\d+/u, (r) => "0000".substr(r.length) + r);
|
|
@@ -13851,7 +13867,7 @@ const pm = (i) => class extends Bt(fe(ki(da(Fe(i))))) {
|
|
|
13851
13867
|
this.value = t;
|
|
13852
13868
|
return;
|
|
13853
13869
|
}
|
|
13854
|
-
e ?
|
|
13870
|
+
e ? ye(this._selectedDate, r) || (this._selectedDate = r, t !== void 0 && this.validate()) : this._selectedDate = null, this.__keepCommittedValue || (this.__committedValue = this.value, this.__committedUnparsableValue = ""), this._toggleHasValue(this._hasValue);
|
|
13855
13871
|
}
|
|
13856
13872
|
__updateOverlayContent(e, t, r, a, o, n, s, l, d) {
|
|
13857
13873
|
e && (e.i18n = t, e.label = r, e.minDate = a, e.maxDate = o, e.focusedDate = n, e.selectedDate = s, e.showWeekNumbers = l, e.isDateDisabled = d);
|
|
@@ -13948,7 +13964,7 @@ const pm = (i) => class extends Bt(fe(ki(da(Fe(i))))) {
|
|
|
13948
13964
|
_onInput() {
|
|
13949
13965
|
if (!this.opened && this._inputElementValue && !this.autoOpenDisabled && this.open(), this._inputElementValue) {
|
|
13950
13966
|
const e = this.__parseDate(this._inputElementValue);
|
|
13951
|
-
e && (this._ignoreFocusedDateChange = !0,
|
|
13967
|
+
e && (this._ignoreFocusedDateChange = !0, ye(e, this._focusedDate) || (this._focusedDate = e), this._ignoreFocusedDateChange = !1);
|
|
13952
13968
|
}
|
|
13953
13969
|
}
|
|
13954
13970
|
__computeMinOrMaxDate(e) {
|
|
@@ -14035,7 +14051,7 @@ class fm extends pm(Ai(N(se(E)))) {
|
|
|
14035
14051
|
ready() {
|
|
14036
14052
|
super.ready(), this.addController(new Rt(this, (e) => {
|
|
14037
14053
|
this._setInputElement(e), this._setFocusElement(e), this.stateTarget = e, this.ariaTarget = e;
|
|
14038
|
-
}, { uniqueIdPrefix: "search-input" })), this.addController(new Ft(this.inputElement, this._labelController)), this._tooltipController = new
|
|
14054
|
+
}, { uniqueIdPrefix: "search-input" })), this.addController(new Ft(this.inputElement, this._labelController)), this._tooltipController = new xe(this), this.addController(this._tooltipController), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.inputElement), this._tooltipController.setShouldShow((e) => !e.opened), this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown", (e) => e.preventDefault()), this.$.overlay.addEventListener("vaadin-overlay-close", this._onVaadinOverlayClose.bind(this));
|
|
14039
14055
|
}
|
|
14040
14056
|
_onVaadinOverlayClose(e) {
|
|
14041
14057
|
e.detail.sourceEvent && e.detail.sourceEvent.composedPath().includes(this) && e.preventDefault();
|
|
@@ -14053,7 +14069,7 @@ w(fm);
|
|
|
14053
14069
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
14054
14070
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14055
14071
|
*/
|
|
14056
|
-
g("vaadin-text-field",
|
|
14072
|
+
g("vaadin-text-field", Be, { moduleId: "lumo-text-field-styles" });
|
|
14057
14073
|
/**
|
|
14058
14074
|
* @license
|
|
14059
14075
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -14158,7 +14174,7 @@ class ms extends _m(N(se(E))) {
|
|
|
14158
14174
|
return { maxlength: { type: Number }, minlength: { type: Number } };
|
|
14159
14175
|
}
|
|
14160
14176
|
ready() {
|
|
14161
|
-
super.ready(), this._tooltipController = new
|
|
14177
|
+
super.ready(), this._tooltipController = new xe(this), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.inputElement), this.addController(this._tooltipController);
|
|
14162
14178
|
}
|
|
14163
14179
|
}
|
|
14164
14180
|
w(ms);
|
|
@@ -14206,7 +14222,7 @@ const bm = f`
|
|
|
14206
14222
|
display: none !important;
|
|
14207
14223
|
}
|
|
14208
14224
|
`;
|
|
14209
|
-
g("vaadin-password-field", [
|
|
14225
|
+
g("vaadin-password-field", [Be, bm], { moduleId: "lumo-password-field" });
|
|
14210
14226
|
/**
|
|
14211
14227
|
* @license
|
|
14212
14228
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -14227,7 +14243,7 @@ w(ym);
|
|
|
14227
14243
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14228
14244
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14229
14245
|
*/
|
|
14230
|
-
const wm = (i) => class extends hs(at(
|
|
14246
|
+
const wm = (i) => class extends hs(at(He(zt(i)))) {
|
|
14231
14247
|
static get properties() {
|
|
14232
14248
|
return { revealButtonHidden: { type: Boolean, observer: "_revealButtonHiddenChanged", value: !1 }, passwordVisible: { type: Boolean, value: !1, reflectToAttribute: !0, observer: "_passwordVisibleChanged", readOnly: !0 }, i18n: { type: Object, value: () => ({ reveal: "Show password" }) } };
|
|
14233
14249
|
}
|
|
@@ -14503,7 +14519,7 @@ const vs = f`
|
|
|
14503
14519
|
margin-inline: auto 0;
|
|
14504
14520
|
}
|
|
14505
14521
|
`;
|
|
14506
|
-
g("vaadin-combo-box-overlay", [ot,
|
|
14522
|
+
g("vaadin-combo-box-overlay", [ot, Ii, _s, vs, gs, f`
|
|
14507
14523
|
:host {
|
|
14508
14524
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
14509
14525
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
@@ -14514,7 +14530,7 @@ const km = f`
|
|
|
14514
14530
|
content: var(--lumo-icons-dropdown);
|
|
14515
14531
|
}
|
|
14516
14532
|
`;
|
|
14517
|
-
g("vaadin-combo-box", [
|
|
14533
|
+
g("vaadin-combo-box", [Be, km], { moduleId: "lumo-combo-box" });
|
|
14518
14534
|
/**
|
|
14519
14535
|
* @license
|
|
14520
14536
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
@@ -14618,7 +14634,7 @@ const ys = (i) => class extends ta(i) {
|
|
|
14618
14634
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
14619
14635
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14620
14636
|
*/
|
|
14621
|
-
const
|
|
14637
|
+
const Im = f`
|
|
14622
14638
|
#overlay {
|
|
14623
14639
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
14624
14640
|
}
|
|
@@ -14629,8 +14645,8 @@ const Sm = f`
|
|
|
14629
14645
|
height: 100%;
|
|
14630
14646
|
}
|
|
14631
14647
|
`;
|
|
14632
|
-
g("vaadin-combo-box-overlay", [$t,
|
|
14633
|
-
class
|
|
14648
|
+
g("vaadin-combo-box-overlay", [$t, Im], { moduleId: "vaadin-combo-box-overlay-styles" });
|
|
14649
|
+
class Sm extends ys(Ht(ne(N(E)))) {
|
|
14634
14650
|
static get is() {
|
|
14635
14651
|
return "vaadin-combo-box-overlay";
|
|
14636
14652
|
}
|
|
@@ -14644,7 +14660,7 @@ class Im extends ys(Ht(ne(N(E)))) {
|
|
|
14644
14660
|
`;
|
|
14645
14661
|
}
|
|
14646
14662
|
}
|
|
14647
|
-
w(
|
|
14663
|
+
w(Sm);
|
|
14648
14664
|
/**
|
|
14649
14665
|
* @license
|
|
14650
14666
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
@@ -15142,7 +15158,7 @@ class Dm {
|
|
|
15142
15158
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
15143
15159
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15144
15160
|
*/
|
|
15145
|
-
const
|
|
15161
|
+
const Te = class {
|
|
15146
15162
|
toString() {
|
|
15147
15163
|
return "";
|
|
15148
15164
|
}
|
|
@@ -15185,7 +15201,7 @@ const xs = (i) => class extends i {
|
|
|
15185
15201
|
s > 0 && (this.scrollTop += s);
|
|
15186
15202
|
}
|
|
15187
15203
|
_isItemSelected(e, t, r) {
|
|
15188
|
-
return e instanceof
|
|
15204
|
+
return e instanceof Te ? !1 : r && e !== void 0 && t !== void 0 ? _i(r, e) === _i(r, t) : e === t;
|
|
15189
15205
|
}
|
|
15190
15206
|
__initVirtualizer() {
|
|
15191
15207
|
this.__virtualizer = new Dm({ createElements: this.__createElements.bind(this), updateElement: this._updateElement.bind(this), elementsContainer: this, scrollTarget: this, scrollContainer: this.$.selector, reorderElements: !0 });
|
|
@@ -15219,7 +15235,7 @@ const xs = (i) => class extends i {
|
|
|
15219
15235
|
}
|
|
15220
15236
|
_updateElement(e, t) {
|
|
15221
15237
|
const r = this.items[t], a = this.focusedIndex, o = this._isItemSelected(r, this.selectedItem, this.itemIdPath);
|
|
15222
|
-
e.setProperties({ item: r, index: t, label: this.getItemLabel(r), selected: o, renderer: this.renderer, focused: !this.loading && a === t }), typeof this.itemClassNameGenerator == "function" ? e.className = this.itemClassNameGenerator(r) : e.className !== "" && (e.className = ""), e.performUpdate && !e.hasUpdated && e.performUpdate(), e.id = `${this.__hostTagName}-item-${t}`, e.setAttribute("role", t !== void 0 ? "option" : !1), e.setAttribute("aria-selected", o.toString()), e.setAttribute("aria-posinset", t + 1), e.setAttribute("aria-setsize", this.items.length), this.theme ? e.setAttribute("theme", this.theme) : e.removeAttribute("theme"), r instanceof
|
|
15238
|
+
e.setProperties({ item: r, index: t, label: this.getItemLabel(r), selected: o, renderer: this.renderer, focused: !this.loading && a === t }), typeof this.itemClassNameGenerator == "function" ? e.className = this.itemClassNameGenerator(r) : e.className !== "" && (e.className = ""), e.performUpdate && !e.hasUpdated && e.performUpdate(), e.id = `${this.__hostTagName}-item-${t}`, e.setAttribute("role", t !== void 0 ? "option" : !1), e.setAttribute("aria-selected", o.toString()), e.setAttribute("aria-posinset", t + 1), e.setAttribute("aria-setsize", this.items.length), this.theme ? e.setAttribute("theme", this.theme) : e.removeAttribute("theme"), r instanceof Te && this.__requestItemByIndex(t);
|
|
15223
15239
|
}
|
|
15224
15240
|
__onItemClick(e) {
|
|
15225
15241
|
this.dispatchEvent(new CustomEvent("selection-changed", { detail: { item: e.currentTarget.item } }));
|
|
@@ -15509,7 +15525,7 @@ const Es = (i) => class extends i {
|
|
|
15509
15525
|
return ["_dataProviderFilterChanged(filter)", "_warnDataProviderValue(dataProvider, value)", "_ensureFirstPage(opened)"];
|
|
15510
15526
|
}
|
|
15511
15527
|
constructor() {
|
|
15512
|
-
super(), this.__dataProviderController = new Mm(this, { placeholder: new
|
|
15528
|
+
super(), this.__dataProviderController = new Mm(this, { placeholder: new Te(), isPlaceholder: (e) => e instanceof Te, dataProviderParams: () => ({ filter: this.filter }) }), this.__dataProviderController.addEventListener("page-requested", this.__onDataProviderPageRequested.bind(this)), this.__dataProviderController.addEventListener("page-loaded", this.__onDataProviderPageLoaded.bind(this));
|
|
15513
15529
|
}
|
|
15514
15530
|
ready() {
|
|
15515
15531
|
super.ready(), this._scroller.addEventListener("index-requested", (e) => {
|
|
@@ -15596,13 +15612,13 @@ function Di(i) {
|
|
|
15596
15612
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
15597
15613
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15598
15614
|
*/
|
|
15599
|
-
function
|
|
15615
|
+
function Io(i) {
|
|
15600
15616
|
return i != null;
|
|
15601
15617
|
}
|
|
15602
|
-
function
|
|
15603
|
-
return i.findIndex((t) => t instanceof
|
|
15618
|
+
function So(i, e) {
|
|
15619
|
+
return i.findIndex((t) => t instanceof Te ? !1 : e(t));
|
|
15604
15620
|
}
|
|
15605
|
-
const
|
|
15621
|
+
const Is = (i) => class extends Bt(ve(Kr(He($e(zt(at(i))))))) {
|
|
15606
15622
|
static get properties() {
|
|
15607
15623
|
return { opened: { type: Boolean, notify: !0, value: !1, reflectToAttribute: !0, sync: !0, observer: "_openedChanged" }, autoOpenDisabled: { type: Boolean, sync: !0 }, readonly: { type: Boolean, value: !1, reflectToAttribute: !0 }, renderer: { type: Object, sync: !0 }, items: { type: Array, sync: !0, observer: "_itemsChanged" }, allowCustomValue: { type: Boolean, value: !1 }, filteredItems: { type: Array, observer: "_filteredItemsChanged", sync: !0 }, _lastCommittedValue: String, loading: { type: Boolean, value: !1, reflectToAttribute: !0, sync: !0 }, _focusedIndex: { type: Number, observer: "_focusedIndexChanged", value: -1, sync: !0 }, filter: { type: String, value: "", notify: !0, sync: !0 }, selectedItem: { type: Object, notify: !0, sync: !0 }, itemClassNameGenerator: { type: Object }, itemLabelPath: { type: String, value: "label", observer: "_itemLabelPathChanged", sync: !0 }, itemValuePath: { type: String, value: "value", sync: !0 }, itemIdPath: { type: String, sync: !0 }, _toggleElement: { type: Object, observer: "_toggleElementChanged" }, _dropdownItems: { type: Array, sync: !0 }, _closeOnBlurIsPrevented: Boolean, _scroller: { type: Object, sync: !0 }, _overlayOpened: { type: Boolean, sync: !0, observer: "_overlayOpenedChanged" }, __keepOverlayOpened: { type: Boolean, sync: !0 } };
|
|
15608
15624
|
}
|
|
@@ -15853,7 +15869,7 @@ const Ss = (i) => class extends Bt(fe(Kr($e(Fe(zt(at(i))))))) {
|
|
|
15853
15869
|
}
|
|
15854
15870
|
}
|
|
15855
15871
|
_valueChanged(e, t) {
|
|
15856
|
-
e === "" && t === void 0 || (
|
|
15872
|
+
e === "" && t === void 0 || (Io(e) ? (this._getItemValue(this.selectedItem) !== e && this._selectItemForValue(e), !this.selectedItem && this.allowCustomValue && (this._inputElementValue = e), this._toggleHasValue(this._hasValue)) : this.selectedItem = null, this._clearFilter(), this._lastCommittedValue = void 0);
|
|
15857
15873
|
}
|
|
15858
15874
|
_detectAndDispatchChange() {
|
|
15859
15875
|
document.hasFocus() && this.validate(), this.value !== this._lastCommittedValue && (this.dispatchEvent(new CustomEvent("change", { bubbles: !0 })), this._lastCommittedValue = this.value);
|
|
@@ -15888,13 +15904,13 @@ const Ss = (i) => class extends Bt(fe(Kr($e(Fe(zt(at(i))))))) {
|
|
|
15888
15904
|
this._scroller && this._scroller.scrollIntoView(e);
|
|
15889
15905
|
}
|
|
15890
15906
|
__getItemIndexByValue(e, t) {
|
|
15891
|
-
return !e || !
|
|
15907
|
+
return !e || !Io(t) ? -1 : So(e, (r) => this._getItemValue(r) === t);
|
|
15892
15908
|
}
|
|
15893
15909
|
__getItemIndexByLabel(e, t) {
|
|
15894
|
-
return !e || !t ? -1 :
|
|
15910
|
+
return !e || !t ? -1 : So(e, (r) => this._getItemLabel(r).toString().toLowerCase() === t.toString().toLowerCase());
|
|
15895
15911
|
}
|
|
15896
15912
|
_overlaySelectedItemChanged(e) {
|
|
15897
|
-
e.stopPropagation(), !(e.detail.item instanceof
|
|
15913
|
+
e.stopPropagation(), !(e.detail.item instanceof Te) && this.opened && (this._focusedIndex = this.filteredItems.indexOf(e.detail.item), this.close());
|
|
15898
15914
|
}
|
|
15899
15915
|
_setFocused(e) {
|
|
15900
15916
|
if (super._setFocused(e), !e && !this.readonly && !this._closeOnBlurIsPrevented) {
|
|
@@ -15922,7 +15938,7 @@ const Ss = (i) => class extends Bt(fe(Kr($e(Fe(zt(at(i))))))) {
|
|
|
15922
15938
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15923
15939
|
*/
|
|
15924
15940
|
g("vaadin-combo-box", Ti, { moduleId: "vaadin-combo-box-styles" });
|
|
15925
|
-
class Nm extends Es(
|
|
15941
|
+
class Nm extends Es(Is(Vm(Ai(N(se(E)))))) {
|
|
15926
15942
|
static get is() {
|
|
15927
15943
|
return "vaadin-combo-box";
|
|
15928
15944
|
}
|
|
@@ -15983,7 +15999,7 @@ class Nm extends Es(Ss(Vm(Ai(N(se(E)))))) {
|
|
|
15983
15999
|
ready() {
|
|
15984
16000
|
super.ready(), this.addController(new Rt(this, (e) => {
|
|
15985
16001
|
this._setInputElement(e), this._setFocusElement(e), this.stateTarget = e, this.ariaTarget = e;
|
|
15986
|
-
})), this.addController(new Ft(this.inputElement, this._labelController)), this._tooltipController = new
|
|
16002
|
+
})), this.addController(new Ft(this.inputElement, this._labelController)), this._tooltipController = new xe(this), this.addController(this._tooltipController), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.inputElement), this._tooltipController.setShouldShow((e) => !e.opened), this._positionTarget = this.shadowRoot.querySelector('[part="input-field"]'), this._toggleElement = this.$.toggleButton;
|
|
15987
16003
|
}
|
|
15988
16004
|
_onClearButtonClick(e) {
|
|
15989
16005
|
e.stopPropagation(), super._onClearButtonClick(e);
|
|
@@ -16104,7 +16120,7 @@ const zm = f`
|
|
|
16104
16120
|
}
|
|
16105
16121
|
`;
|
|
16106
16122
|
g("vaadin-multi-select-combo-box-item", [Pi, fs, zm], { moduleId: "lumo-multi-select-combo-box-item" });
|
|
16107
|
-
g("vaadin-multi-select-combo-box-overlay", [ot,
|
|
16123
|
+
g("vaadin-multi-select-combo-box-overlay", [ot, Ii, _s, vs, gs, f`
|
|
16108
16124
|
:host {
|
|
16109
16125
|
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
16110
16126
|
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
@@ -16169,7 +16185,7 @@ const Rm = f`
|
|
|
16169
16185
|
cursor: var(--lumo-clickable-cursor);
|
|
16170
16186
|
}
|
|
16171
16187
|
`;
|
|
16172
|
-
g("vaadin-multi-select-combo-box", [
|
|
16188
|
+
g("vaadin-multi-select-combo-box", [Be, Rm], { moduleId: "lumo-multi-select-combo-box" });
|
|
16173
16189
|
/**
|
|
16174
16190
|
* @license
|
|
16175
16191
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -16359,7 +16375,7 @@ class qm extends xs(E) {
|
|
|
16359
16375
|
super.ready(), this.setAttribute("aria-multiselectable", "true");
|
|
16360
16376
|
}
|
|
16361
16377
|
_isItemSelected(e, t, r) {
|
|
16362
|
-
return e instanceof
|
|
16378
|
+
return e instanceof Te || this.owner.readonly ? !1 : this.owner._findIndex(e, this.owner.selectedItems, r) > -1;
|
|
16363
16379
|
}
|
|
16364
16380
|
_updateElement(e, t) {
|
|
16365
16381
|
super._updateElement(e, t), e.toggleAttribute("readonly", this.owner.readonly);
|
|
@@ -16371,7 +16387,7 @@ w(qm);
|
|
|
16371
16387
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
16372
16388
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16373
16389
|
*/
|
|
16374
|
-
class jm extends Es(
|
|
16390
|
+
class jm extends Es(Is(N(E))) {
|
|
16375
16391
|
static get is() {
|
|
16376
16392
|
return "vaadin-multi-select-combo-box-internal";
|
|
16377
16393
|
}
|
|
@@ -16491,7 +16507,7 @@ class jm extends Es(Ss(N(E))) {
|
|
|
16491
16507
|
super._detectAndDispatchChange();
|
|
16492
16508
|
}
|
|
16493
16509
|
_overlaySelectedItemChanged(e) {
|
|
16494
|
-
e.stopPropagation(), !this.readonly && (e.detail.item instanceof
|
|
16510
|
+
e.stopPropagation(), !this.readonly && (e.detail.item instanceof Te || this.opened && (this.lastFilter = this.filter, this.dispatchEvent(new CustomEvent("combo-box-item-selected", { detail: { item: e.detail.item } }))));
|
|
16495
16511
|
}
|
|
16496
16512
|
_shouldFetchData() {
|
|
16497
16513
|
return this.readonly ? !1 : super._shouldFetchData();
|
|
@@ -16517,7 +16533,7 @@ const Zt = new ResizeObserver((i) => {
|
|
|
16517
16533
|
}) : e.target._onResize(e.contentRect);
|
|
16518
16534
|
});
|
|
16519
16535
|
});
|
|
16520
|
-
}),
|
|
16536
|
+
}), Ss = U((i) => class extends i {
|
|
16521
16537
|
get _observeParent() {
|
|
16522
16538
|
return !1;
|
|
16523
16539
|
}
|
|
@@ -16583,7 +16599,7 @@ const Wm = f`
|
|
|
16583
16599
|
}
|
|
16584
16600
|
`;
|
|
16585
16601
|
g("vaadin-multi-select-combo-box", [Ti, Wm], { moduleId: "vaadin-multi-select-combo-box-styles" });
|
|
16586
|
-
class Ym extends
|
|
16602
|
+
class Ym extends Ss(Ai(N(se(E)))) {
|
|
16587
16603
|
static get is() {
|
|
16588
16604
|
return "vaadin-multi-select-combo-box";
|
|
16589
16605
|
}
|
|
@@ -16688,7 +16704,7 @@ class Ym extends Is(Ai(N(se(E)))) {
|
|
|
16688
16704
|
ready() {
|
|
16689
16705
|
super.ready(), this.addController(new Rt(this, (e) => {
|
|
16690
16706
|
this._setInputElement(e), this._setFocusElement(e), this.stateTarget = e, this.ariaTarget = e;
|
|
16691
|
-
})), this.addController(new Ft(this.inputElement, this._labelController)), this._tooltipController = new
|
|
16707
|
+
})), this.addController(new Ft(this.inputElement, this._labelController)), this._tooltipController = new xe(this), this.addController(this._tooltipController), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.inputElement), this._tooltipController.setShouldShow((e) => !e.opened), this._inputField = this.shadowRoot.querySelector('[part="input-field"]'), this._overflowController = new Z(this, "overflow", "vaadin-multi-select-combo-box-chip", { initializer: (e) => {
|
|
16692
16708
|
e.addEventListener("mousedown", (t) => this._preventBlur(t)), this._overflow = e;
|
|
16693
16709
|
} }), this.addController(this._overflowController), this.__updateChips(), Di(this);
|
|
16694
16710
|
}
|
|
@@ -17302,7 +17318,7 @@ class Xm extends N(E) {
|
|
|
17302
17318
|
super.ready(), this.setAttribute("role", "alert"), this.setAttribute("aria-live", "polite");
|
|
17303
17319
|
}
|
|
17304
17320
|
}
|
|
17305
|
-
class
|
|
17321
|
+
class be extends Bt(yi(se(E))) {
|
|
17306
17322
|
static get template() {
|
|
17307
17323
|
return k`
|
|
17308
17324
|
<style>
|
|
@@ -17323,20 +17339,20 @@ class ge extends Bt(yi(se(E))) {
|
|
|
17323
17339
|
return ["_durationChanged(duration, opened)", "_rendererChanged(renderer, opened, _overlayElement)"];
|
|
17324
17340
|
}
|
|
17325
17341
|
static show(e, t) {
|
|
17326
|
-
return Gm(e) ?
|
|
17342
|
+
return Gm(e) ? be._createAndShowNotification((r) => {
|
|
17327
17343
|
Jo(e, r);
|
|
17328
|
-
}, t) :
|
|
17344
|
+
}, t) : be._createAndShowNotification((r) => {
|
|
17329
17345
|
r.innerText = e;
|
|
17330
17346
|
}, t);
|
|
17331
17347
|
}
|
|
17332
17348
|
static _createAndShowNotification(e, t) {
|
|
17333
|
-
const r = document.createElement(
|
|
17349
|
+
const r = document.createElement(be.is);
|
|
17334
17350
|
return t && Number.isFinite(t.duration) && (r.duration = t.duration), t && t.position && (r.position = t.position), t && t.theme && r.setAttribute("theme", t.theme), r.renderer = e, document.body.appendChild(r), r.opened = !0, r.addEventListener("opened-changed", (a) => {
|
|
17335
17351
|
a.detail.value || r.remove();
|
|
17336
17352
|
}), r;
|
|
17337
17353
|
}
|
|
17338
17354
|
get _container() {
|
|
17339
|
-
return
|
|
17355
|
+
return be._container || (be._container = document.createElement("vaadin-notification-container"), document.body.appendChild(be._container)), be._container;
|
|
17340
17356
|
}
|
|
17341
17357
|
get _card() {
|
|
17342
17358
|
return this._overlayElement;
|
|
@@ -17404,7 +17420,7 @@ class ge extends Bt(yi(se(E))) {
|
|
|
17404
17420
|
}
|
|
17405
17421
|
w(Km);
|
|
17406
17422
|
w(Xm);
|
|
17407
|
-
w(
|
|
17423
|
+
w(be);
|
|
17408
17424
|
const As = f`
|
|
17409
17425
|
:host {
|
|
17410
17426
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -17472,7 +17488,7 @@ const Qm = f`
|
|
|
17472
17488
|
--_lumo-selected-item-padding: 0;
|
|
17473
17489
|
}
|
|
17474
17490
|
`;
|
|
17475
|
-
g("vaadin-select", [
|
|
17491
|
+
g("vaadin-select", [Be, Qm], { moduleId: "lumo-select" });
|
|
17476
17492
|
g("vaadin-select-value-button", f`
|
|
17477
17493
|
:host {
|
|
17478
17494
|
font-family: var(--lumo-font-family);
|
|
@@ -17536,7 +17552,7 @@ g("vaadin-select-overlay", [Qr, Jm], { moduleId: "lumo-select-overlay" });
|
|
|
17536
17552
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
17537
17553
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17538
17554
|
*/
|
|
17539
|
-
const Ts = (i) => class extends Br(
|
|
17555
|
+
const Ts = (i) => class extends Br(He(i)) {
|
|
17540
17556
|
static get properties() {
|
|
17541
17557
|
return { _hasVaadinItemMixin: { value: !0 }, selected: { type: Boolean, value: !1, reflectToAttribute: !0, observer: "_selectedChanged" }, _value: String };
|
|
17542
17558
|
}
|
|
@@ -17618,7 +17634,7 @@ function ef(i, e, t) {
|
|
|
17618
17634
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
17619
17635
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17620
17636
|
*/
|
|
17621
|
-
const tf = (i) => class extends
|
|
17637
|
+
const tf = (i) => class extends $e(i) {
|
|
17622
17638
|
get focused() {
|
|
17623
17639
|
return (this._getItems() || []).find(jr);
|
|
17624
17640
|
}
|
|
@@ -17786,7 +17802,7 @@ const Ds = (i) => class extends tf(i) {
|
|
|
17786
17802
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
17787
17803
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17788
17804
|
*/
|
|
17789
|
-
class rf extends Ds(N(ne(
|
|
17805
|
+
class rf extends Ds(N(ne(ve(E)))) {
|
|
17790
17806
|
static get is() {
|
|
17791
17807
|
return "vaadin-select-list-box";
|
|
17792
17808
|
}
|
|
@@ -17999,7 +18015,7 @@ class hf extends Z {
|
|
|
17999
18015
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
18000
18016
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18001
18017
|
*/
|
|
18002
|
-
const cf = (i) => class extends Bt(ki(Wr(
|
|
18018
|
+
const cf = (i) => class extends Bt(ki(Wr($e(Ei(i))))) {
|
|
18003
18019
|
static get properties() {
|
|
18004
18020
|
return { items: { type: Array, observer: "__itemsChanged" }, opened: { type: Boolean, value: !1, notify: !0, reflectToAttribute: !0, sync: !0 }, renderer: { type: Object }, value: { type: String, value: "", notify: !0, observer: "_valueChanged" }, name: { type: String }, placeholder: { type: String }, readonly: { type: Boolean, value: !1, reflectToAttribute: !0 }, noVerticalOverlap: { type: Boolean, value: !1 }, _phone: Boolean, _phoneMediaQuery: { value: "(max-width: 450px), (max-height: 450px)" }, _inputContainer: Object, _items: Object };
|
|
18005
18021
|
}
|
|
@@ -18018,7 +18034,7 @@ const cf = (i) => class extends Bt(ki(Wr(Fe(Ei(i))))) {
|
|
|
18018
18034
|
ready() {
|
|
18019
18035
|
super.ready(), this._inputContainer = this.shadowRoot.querySelector('[part~="input-field"]'), this._valueButtonController = new hf(this), this.addController(this._valueButtonController), this.addController(this._srLabelController), this.addController(new la(this._phoneMediaQuery, (e) => {
|
|
18020
18036
|
this._phone = e;
|
|
18021
|
-
})), this._tooltipController = new
|
|
18037
|
+
})), this._tooltipController = new xe(this), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.focusElement), this.addController(this._tooltipController);
|
|
18022
18038
|
}
|
|
18023
18039
|
requestContentUpdate() {
|
|
18024
18040
|
this._overlayElement && (this._overlayElement.requestContentUpdate(), this._menuElement && this._menuElement.items && this._updateSelectedItem(this.value, this._menuElement.items));
|
|
@@ -18811,7 +18827,7 @@ const bf = (i) => class extends i {
|
|
|
18811
18827
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
18812
18828
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18813
18829
|
*/
|
|
18814
|
-
class yf extends bf(se(yi(
|
|
18830
|
+
class yf extends bf(se(yi(ve(E)))) {
|
|
18815
18831
|
static get template() {
|
|
18816
18832
|
return k`
|
|
18817
18833
|
<style>
|
|
@@ -19132,7 +19148,7 @@ const xf = f`
|
|
|
19132
19148
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
19133
19149
|
*/
|
|
19134
19150
|
g("vaadin-tab", xf, { moduleId: "vaadin-tab-styles" });
|
|
19135
|
-
class Cf extends se(N(wf(
|
|
19151
|
+
class Cf extends se(N(wf(ve(E)))) {
|
|
19136
19152
|
static get template() {
|
|
19137
19153
|
return k`
|
|
19138
19154
|
<slot></slot>
|
|
@@ -19143,7 +19159,7 @@ class Cf extends se(N(wf(fe(E)))) {
|
|
|
19143
19159
|
return "vaadin-tab";
|
|
19144
19160
|
}
|
|
19145
19161
|
ready() {
|
|
19146
|
-
super.ready(), this._tooltipController = new
|
|
19162
|
+
super.ready(), this._tooltipController = new xe(this), this.addController(this._tooltipController);
|
|
19147
19163
|
}
|
|
19148
19164
|
}
|
|
19149
19165
|
w(Cf);
|
|
@@ -19391,7 +19407,7 @@ g("vaadin-tabs", f`
|
|
|
19391
19407
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
19392
19408
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
19393
19409
|
*/
|
|
19394
|
-
const kf = (i) => class extends
|
|
19410
|
+
const kf = (i) => class extends Ss(Ds(i)) {
|
|
19395
19411
|
static get properties() {
|
|
19396
19412
|
return { orientation: { value: "horizontal", type: String, reflectToAttribute: !0, sync: !0 }, selected: { value: 0, type: Number } };
|
|
19397
19413
|
}
|
|
@@ -19553,7 +19569,7 @@ const Ef = f`
|
|
|
19553
19569
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
19554
19570
|
*/
|
|
19555
19571
|
g("vaadin-tabs", Ef, { moduleId: "vaadin-tabs-styles" });
|
|
19556
|
-
class
|
|
19572
|
+
class If extends kf(se(N(E))) {
|
|
19557
19573
|
static get template() {
|
|
19558
19574
|
return k`
|
|
19559
19575
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
@@ -19569,8 +19585,8 @@ class Sf extends kf(se(N(E))) {
|
|
|
19569
19585
|
return "vaadin-tabs";
|
|
19570
19586
|
}
|
|
19571
19587
|
}
|
|
19572
|
-
w(
|
|
19573
|
-
const
|
|
19588
|
+
w(If);
|
|
19589
|
+
const Sf = ":host{display:block;height:100%}", Af = Sf, Tf = class {
|
|
19574
19590
|
constructor(i) {
|
|
19575
19591
|
ee(this, i), this.registrationWidgetLoaded = P(this, "registrationWidgetLoaded"), this.setClientStyling = () => {
|
|
19576
19592
|
let e = document.createElement("style");
|
|
@@ -19722,7 +19738,7 @@ const Pf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.numbe
|
|
|
19722
19738
|
}
|
|
19723
19739
|
render() {
|
|
19724
19740
|
let i = "";
|
|
19725
|
-
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "aea370172d0e55d32dc665a1c340c734334e1caf", class: `number__wrapper ${this.autofilled ? "number__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("div", { key: "10e16d10b956c5a647bc68ecffbc2eb0b06fa92a", class: "number__wrapper--flex" }, u("label", { key: "0827d47c7278c6fdf8ebdd1dff03b91c39be6812", class: `number__label ${this.validation.mandatory ? "number__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "cb868d01e8555f5e3333240f54d86f0a56641d0f", class: "number__wrapper--relative" }, this.tooltip && u("img", { key: "1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf", class: "number__tooltip-icon", src:
|
|
19741
|
+
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "aea370172d0e55d32dc665a1c340c734334e1caf", class: `number__wrapper ${this.autofilled ? "number__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("div", { key: "10e16d10b956c5a647bc68ecffbc2eb0b06fa92a", class: "number__wrapper--flex" }, u("label", { key: "0827d47c7278c6fdf8ebdd1dff03b91c39be6812", class: `number__label ${this.validation.mandatory ? "number__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "cb868d01e8555f5e3333240f54d86f0a56641d0f", class: "number__wrapper--relative" }, this.tooltip && u("img", { key: "1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf", class: "number__tooltip-icon", src: he, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), u("input", { key: "365b70a2eb333878d367d1d414ee0e296c91b3ec", ref: (e) => this.inputReference = e, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${i}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }), u("small", { key: "a8639df7ef1e98807a7daffc9da4afd347b1c292", class: "number__error-message" }, this.errorMessage));
|
|
19726
19742
|
}
|
|
19727
19743
|
static get watchers() {
|
|
19728
19744
|
return {
|
|
@@ -20084,7 +20100,7 @@ const Vf = `*,
|
|
|
20084
20100
|
}
|
|
20085
20101
|
render() {
|
|
20086
20102
|
let i = "";
|
|
20087
|
-
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "fe895585dd908f75eee4ba797dc9c02b237bed7f", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("div", { key: "844bdb3dab98e62cc5d92a761b85adcdc44831d0", class: "password__wrapper--flex" }, u("label", { key: "28041267a6df666e7df3660a907f995eff092ae1", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "79c300643134802f04d8f909fe7bb3895911c88a", class: "password__wrapper--relative" }, this.tooltip && u("img", { key: "43ae58549e42ba59054162c25887ec36eb826aaa", class: "password__tooltip-icon", src:
|
|
20103
|
+
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "fe895585dd908f75eee4ba797dc9c02b237bed7f", class: `password__wrapper ${this.autofilled ? "password__wrapper--autofilled" : ""} ${this.name}__input`, ref: (e) => this.stylingContainer = e }, u("div", { key: "844bdb3dab98e62cc5d92a761b85adcdc44831d0", class: "password__wrapper--flex" }, u("label", { key: "28041267a6df666e7df3660a907f995eff092ae1", class: `password__label ${this.validation.mandatory ? "password__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "79c300643134802f04d8f909fe7bb3895911c88a", class: "password__wrapper--relative" }, this.tooltip && u("img", { key: "43ae58549e42ba59054162c25887ec36eb826aaa", class: "password__tooltip-icon", src: he, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), u("vaadin-password-field", { key: "0edcfed0ea65666537240f531e5239bd5b11181e", type: "password", id: `${this.name}__input`, class: `password__input ${i}`, 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 }), !this.noValidation && u("small", { key: "c8aeba074e66b771d745194fec535aa0b82de6d8", class: "password__error-message" }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.hidePasswordComplexity && !this.isDuplicateInput && (this.enableSouthAfricanMode ? this.renderCustomComplexityPopup() : this.renderComplexityPopup()));
|
|
20088
20104
|
}
|
|
20089
20105
|
get element() {
|
|
20090
20106
|
return Mt(this);
|
|
@@ -20222,9 +20238,15 @@ const Lf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{
|
|
|
20222
20238
|
if (!this.touched)
|
|
20223
20239
|
return "";
|
|
20224
20240
|
if (this.inputReference.validity.valueMissing)
|
|
20225
|
-
return b(
|
|
20226
|
-
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
|
|
20227
|
-
|
|
20241
|
+
return b(de.REQUIRED, this.language);
|
|
20242
|
+
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
20243
|
+
const { minLength: t, maxLength: r } = this.validation;
|
|
20244
|
+
return t === r ? b(de.FIXED_LENGTH, this.language, {
|
|
20245
|
+
values: { length: t }
|
|
20246
|
+
}) : b(de.LENGTH, this.language, {
|
|
20247
|
+
values: { minLength: t, maxLength: r }
|
|
20248
|
+
});
|
|
20249
|
+
}
|
|
20228
20250
|
if (this.inputReference.value.match(this.validationPattern) == null) {
|
|
20229
20251
|
const t = (i = this.validation.custom.find((a) => a.rule === "regex")) === null || i === void 0 ? void 0 : i.errorKey, r = (e = this.validation.custom.find((a) => a.rule === "regex")) === null || e === void 0 ? void 0 : e.errorMessage;
|
|
20230
20252
|
return b(`${t}`, this.language) || r;
|
|
@@ -20245,7 +20267,7 @@ const Lf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{
|
|
|
20245
20267
|
let t = "";
|
|
20246
20268
|
this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid");
|
|
20247
20269
|
let r = this.selectedCountryCode === "UK" || this.selectedCountryCode === "GB" || this.ignoreCountry, a = ((i = this.addresses) === null || i === void 0 ? void 0 : i.length) > 0 && this.openAddressDropdown && r, o = this.showNoResultsMessage && this.currentPostalCode && this.currentPostalCode.length >= this.postalcodelength && ((e = this.addresses) === null || e === void 0 ? void 0 : e.length) === 0 && r, n = this.isFetchingAddresses && this.currentPostalCode.length >= this.postalcodelength;
|
|
20248
|
-
return u("div", { key: "
|
|
20270
|
+
return u("div", { key: "e358dddfc4b20b0847d03e3f12ff637922470105", class: `text__wrapper ${this.name}__input ${this.autofilled ? "text__wrapper--autofilled" : ""}`, ref: (s) => this.stylingContainer = s }, u("div", { key: "b806cac9ad62480a1be6bf802528c60c79804e94", class: "text__wrapper--flex" }, u("label", { key: "4fb327989e8b828559c01601eea47bdd58da4bd3", class: `text__label ${this.validation.mandatory ? "text__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "6c293495a8935db477cbcac2eb9102bffeb85ddb", class: "text__wrapper--relative" }, this.tooltip && u("img", { key: "848bb5b44d834c4f0e4a78cfebef0ecf1b88fd2e", class: "text__tooltip-icon", src: he, alt: "", ref: (s) => this.tooltipIconReference = s, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), u("div", { key: "7f6195e5cfc5bfabc9854ec6acc19c1e52e70f1b", class: "input__text-wrapper" }, u("input", { key: "4369b4a99016a7aebbb396bdda35c31d92e4d557", name: this.name, id: `${this.name}__input`, value: this.determineInputValue(), type: "text", class: `text__input ${t}`, placeholder: `${this.placeholder}`, ref: (s) => this.inputReference = s, readOnly: this.autofilled, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.maxPostalCodeLength, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !r && u("p", { key: "0e3c0fcb974d2f3dae76f9afdbf173fcc25d258f", class: "address__manual-input-msg", onClick: () => this.enterAddressManually() }, b("enterIEAddressManually", this.language)), a && u("div", { key: "1c644f87f2617180e6356c724d72b6d3fc8e472e", class: "input__addresses-container", ref: (s) => this.addressesDropdownRef = s }, u("div", { key: "f2a7b8133908441a3cf67eb48928a2d61d17e32f", class: "options" }, this.addresses.map((s, l) => u("div", { key: l, class: "option", onClick: (d) => this.handlePostalCode(d, s) }, s.number, " ", s.street, " ", s.city)))), n && u("div", { key: "c0cb29f7d174ca8981c8b9dfd2ee9b972b0fd1ea", class: "postalcode__loading-spinner" }, u("div", { key: "76f17cb0a440f7ed9cc8de3620b55136549586e6", class: "loading-spinner" }), u("span", { key: "e10c4177fb0f21f142fd3120177e450413687cf3" }, b("searchingForAddresses", this.language))), o && u("div", { key: "f729f6206cc900a2c94e3df0e8b08cc3dc5b751f", class: "postalcode__no-results-message" }, b("postalLookUpNoAddressFound", this.language))), u("small", { key: "c8a79e601f22444b34dc7d037c94f92875f51aad", class: "text__error-message" }, this.errorMessage));
|
|
20249
20271
|
}
|
|
20250
20272
|
static get watchers() {
|
|
20251
20273
|
return {
|
|
@@ -20300,7 +20322,7 @@ const Ff = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio
|
|
|
20300
20322
|
return this.showTooltip ? u("div", { class: `radio__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (i) => this.tooltipReference = i, innerHTML: this.tooltip }) : null;
|
|
20301
20323
|
}
|
|
20302
20324
|
render() {
|
|
20303
|
-
return u("fieldset", { key: "33493de460303a32a37d253a0fd5f9da59676542", class: `radio__fieldset ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("legend", { key: "8aef7aa84a119742e05d72d976c936a560154b3f", class: "radio__legend" }, this.displayName, ":"), this.optionsGroup.map((i) => u("div", { class: "radio__wrapper" }, u("input", { type: "radio", class: "radio__input", id: `${i.label}__input`, ref: (e) => this.inputReference = e, value: i.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), u("label", { htmlFor: `${i.label}__input` }, i.label))), u("small", { key: "bec44ed4007e408ddeb0b0293b82e034c8e165f2", class: "radio__error-message" }, this.errorMessage), this.tooltip && u("img", { key: "a3b0a041beabe3f14661c0af8cd970040d060435", class: "radio__tooltip-icon", src:
|
|
20325
|
+
return u("fieldset", { key: "33493de460303a32a37d253a0fd5f9da59676542", class: `radio__fieldset ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("legend", { key: "8aef7aa84a119742e05d72d976c936a560154b3f", class: "radio__legend" }, this.displayName, ":"), this.optionsGroup.map((i) => u("div", { class: "radio__wrapper" }, u("input", { type: "radio", class: "radio__input", id: `${i.label}__input`, ref: (e) => this.inputReference = e, value: i.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), u("label", { htmlFor: `${i.label}__input` }, i.label))), u("small", { key: "bec44ed4007e408ddeb0b0293b82e034c8e165f2", class: "radio__error-message" }, this.errorMessage), this.tooltip && u("img", { key: "a3b0a041beabe3f14661c0af8cd970040d060435", class: "radio__tooltip-icon", src: he, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
20304
20326
|
}
|
|
20305
20327
|
static get watchers() {
|
|
20306
20328
|
return {
|
|
@@ -20401,7 +20423,7 @@ const Bf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{
|
|
|
20401
20423
|
render() {
|
|
20402
20424
|
var i, e;
|
|
20403
20425
|
let t = "";
|
|
20404
|
-
return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "b0ed504667761e5fd77e0ac13382b467448a1944", class: `select__wrapper ${this.autofilled ? "select__wrapper--autofilled" : ""} ${this.name}__input`, ref: (r) => this.stylingContainer = r }, u("div", { key: "b48d38dc4c2cb3442ff6773a1b1d13191ec4d0e6", class: "select__wrapper--flex" }, u("label", { key: "ad592c8c98ecbec1961d22cdfeb8cec910291ea8", class: "select__label", htmlFor: `${this.name}__input` }, this.displayName, u("span", { key: "b3c0f2fe9a2d26ade1626878ed9bc1f0b86a23ad", class: this.validation.mandatory ? "select__label--required" : "" })), u("div", { key: "29d0f504d0f51175818dffffb882ac4e6e9c3bde", class: "select__wrapper--relative" }, this.tooltip && u("img", { key: "66e524ffebc43f9418e90b3bd2d7ae62eba47da3", class: "select__tooltip-icon", src:
|
|
20426
|
+
return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "b0ed504667761e5fd77e0ac13382b467448a1944", class: `select__wrapper ${this.autofilled ? "select__wrapper--autofilled" : ""} ${this.name}__input`, ref: (r) => this.stylingContainer = r }, u("div", { key: "b48d38dc4c2cb3442ff6773a1b1d13191ec4d0e6", class: "select__wrapper--flex" }, u("label", { key: "ad592c8c98ecbec1961d22cdfeb8cec910291ea8", class: "select__label", htmlFor: `${this.name}__input` }, this.displayName, u("span", { key: "b3c0f2fe9a2d26ade1626878ed9bc1f0b86a23ad", class: this.validation.mandatory ? "select__label--required" : "" })), u("div", { key: "29d0f504d0f51175818dffffb882ac4e6e9c3bde", class: "select__wrapper--relative" }, this.tooltip && u("img", { key: "66e524ffebc43f9418e90b3bd2d7ae62eba47da3", class: "select__tooltip-icon", src: he, alt: "", ref: (r) => this.tooltipIconReference = r, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), this.isComboBox ? u("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${t} ${this.autofilled ? "select__input--autofilled" : ""}`, "item-label-path": "label", "item-value-path": "value", ref: (r) => this.vaadinCombo = r, readOnly: this.autofilled, required: (i = this.validation) === null || i === void 0 ? void 0 : i.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleComboChange, onBlur: this.handleBlur }) : u("vaadin-select", { name: this.name, popover: !1, id: `${this.name}__input`, class: `select__input ${t} ${this.autofilled ? "select__input--autofilled" : ""}`, "item-label-path": "label", "item-value-path": "value", ref: (r) => this.vaadinCombo = r, readOnly: this.autofilled, required: (e = this.validation) === null || e === void 0 ? void 0 : e.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleSelectChange, "no-vertical-overlap": !0, noVerticalOverlap: !0 }), u("small", { key: "0143b538740c3a8e9bfcab6bbb44660355c40cf7", class: "select__error-message" }, this.errorMessage));
|
|
20405
20427
|
}
|
|
20406
20428
|
static get watchers() {
|
|
20407
20429
|
return {
|
|
@@ -20492,13 +20514,18 @@ const jf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{f
|
|
|
20492
20514
|
setErrorMessage() {
|
|
20493
20515
|
var i, e;
|
|
20494
20516
|
if (this.inputReference.validity.patternMismatch) {
|
|
20495
|
-
const
|
|
20496
|
-
return b(`${
|
|
20517
|
+
const a = (i = this.validation.custom.find((n) => n.rule === "regex")) === null || i === void 0 ? void 0 : i.errorKey, o = (e = this.validation.custom.find((n) => n.rule === "regex")) === null || e === void 0 ? void 0 : e.errorMessage;
|
|
20518
|
+
return b(`${a}`, this.language) ? b(`${a}`, this.language) : o;
|
|
20497
20519
|
}
|
|
20498
|
-
|
|
20499
|
-
|
|
20520
|
+
const { minLength: t, maxLength: r } = this.validation;
|
|
20521
|
+
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong || t && this.phoneValue && this.phoneValue.length < t || r && this.phoneValue && this.phoneValue.length > r)
|
|
20522
|
+
return t === r ? b(de.FIXED_LENGTH, this.language, {
|
|
20523
|
+
values: { length: t }
|
|
20524
|
+
}) : b(de.LENGTH, this.language, {
|
|
20525
|
+
values: { minLength: t, maxLength: r }
|
|
20526
|
+
});
|
|
20500
20527
|
if (this.inputReference.validity.valueMissing)
|
|
20501
|
-
return b(
|
|
20528
|
+
return b(de.REQUIRED, this.language);
|
|
20502
20529
|
}
|
|
20503
20530
|
renderTooltip() {
|
|
20504
20531
|
return this.showTooltip ? u("div", { class: `tel__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (i) => this.tooltipReference = i, innerHTML: this.tooltip }) : null;
|
|
@@ -20506,7 +20533,7 @@ const jf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{f
|
|
|
20506
20533
|
render() {
|
|
20507
20534
|
var i;
|
|
20508
20535
|
let e = "";
|
|
20509
|
-
return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "
|
|
20536
|
+
return this.touched && (e = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "bf824bf310bec50746fb6b82cd8f7decbcfc284b", class: `tel__wrapper ${this.autofilled ? "tel__wrapper--autofilled" : ""} ${this.name}__input`, ref: (t) => this.stylingContainer = t }, u("div", { key: "0b6c42e7aca5686f310ffdcecb96cf909e83521f", class: "tel__wrapper--flex-label" }, u("label", { key: "ddf2fa885ac53e7f337525357a7dce52f911213d", class: `tel__label ${this.validation.mandatory ? "tel__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "e21a84509b32f379bb3ce92137255caf99a86dc5", class: "tel__wrapper--relative" }, this.tooltip && u("img", { key: "9ff0a8c19aa067c1e7799227617405e373b344e4", class: "tel__tooltip-icon", src: he, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), u("div", { key: "5db13af7e421480b89253970a5f2470f999c922d", class: `tel__wrapper--flex ${e}` }, u("vaadin-combo-box", { key: "164fe2bd2940bd5a251fda48b28f1af1bc3e78be", class: "tel__prefix", items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.disablePhonePrefix, onChange: (t) => this.handlePrefixInput(t) }), u("input", { key: "90ae038a383645d6579fb68bc5adbe8a2b1d676c", type: "tel", ref: (t) => this.inputReference = t, id: `${this.name}__input`, readOnly: this.autofilled, class: "tel__input", value: (i = this.phoneValue) !== null && i !== void 0 ? i : "", placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), u("small", { key: "a68f95384965384a67d042b89264dbda03f25b7a", class: "tel__error-message" }, this.errorMessage));
|
|
20510
20537
|
}
|
|
20511
20538
|
static get watchers() {
|
|
20512
20539
|
return {
|
|
@@ -20590,7 +20617,7 @@ const Gf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{
|
|
|
20590
20617
|
}
|
|
20591
20618
|
validateDocument(i, e) {
|
|
20592
20619
|
const t = i.trim();
|
|
20593
|
-
return e === Q.PASSPORT ? Q.PASSPORT_NUMERIC_REGEX.test(t) ? { valid: !0 } : { valid: !1, errorKey:
|
|
20620
|
+
return e === Q.PASSPORT ? Q.PASSPORT_NUMERIC_REGEX.test(t) ? { valid: !0 } : { valid: !1, errorKey: de.PASSPORT_INVALID } : e === Q.SOUTH_AFRICAN_ID ? t.length !== Q.SOUTH_AFRICAN_ID_LENGTH ? { valid: !1, errorKey: de.SA_ID_LENGTH } : zs(t) ? { valid: !0 } : { valid: !1, errorKey: de.SA_ID_INVALID } : { valid: !0 };
|
|
20594
20621
|
}
|
|
20595
20622
|
updateValidationState() {
|
|
20596
20623
|
const i = this.isValidValue();
|
|
@@ -20624,12 +20651,12 @@ const Gf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{
|
|
|
20624
20651
|
if (a === "" && !this.validation.mandatory)
|
|
20625
20652
|
return "";
|
|
20626
20653
|
if (this.inputReference.validity.valueMissing)
|
|
20627
|
-
return b(
|
|
20654
|
+
return b(de.REQUIRED, this.language);
|
|
20628
20655
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
20629
|
-
const
|
|
20630
|
-
return o === n ? b(
|
|
20656
|
+
const { minLength: o, maxLength: n } = this.validation;
|
|
20657
|
+
return o === n ? b(de.FIXED_LENGTH, this.language, {
|
|
20631
20658
|
values: { length: o }
|
|
20632
|
-
}) : b(
|
|
20659
|
+
}) : b(de.LENGTH, this.language, {
|
|
20633
20660
|
values: { minLength: o, maxLength: n }
|
|
20634
20661
|
});
|
|
20635
20662
|
}
|
|
@@ -20648,7 +20675,7 @@ const Gf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{
|
|
|
20648
20675
|
}
|
|
20649
20676
|
render() {
|
|
20650
20677
|
let i = "";
|
|
20651
|
-
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "
|
|
20678
|
+
return this.touched && (i = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), u("div", { key: "aacb35e1808720cfdb24708254c01cb5be0fe6b6", class: `text__wrapper ${this.name}__input ${this.autofilled ? "text__wrapper--autofilled" : ""}`, ref: (e) => this.stylingContainer = e }, u("div", { key: "14a292cc7661d663698384d989d57d21786210b9", class: "text__wrapper--flex" }, u("label", { key: "c04b29364c4b54e9aad3036264044177e4a2dc51", class: `text__label ${this.validation.mandatory ? "text__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), u("div", { key: "eb8aee30e47241b533c7ca8fcb354c782b4e2be1", class: "text__wrapper--relative" }, this.tooltip && u("img", { key: "23d4b70d93910f43ce0ea54c1bcffd81dfc54ebc", class: "text__tooltip-icon", src: he, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), u("input", { key: "3f901d85111256370811f4abe51bcd5b2971b60c", name: this.name, id: `${this.name}__input`, value: this.value, type: "text", class: `text__input ${i}`, placeholder: `${this.placeholder}`, ref: (e) => this.inputReference = e, readOnly: this.autofilled, required: this.validation.mandatory, minlength: this.enableSouthAfricanMode ? "" : this.validation.minLength, maxlength: this.enableSouthAfricanMode ? "" : this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), u("small", { key: "1661215687f1eecd622b2610c3e056f45944fee3", class: "text__error-message" }, this.errorMessage));
|
|
20652
20679
|
}
|
|
20653
20680
|
static get watchers() {
|
|
20654
20681
|
return {
|
|
@@ -20713,7 +20740,7 @@ const Qf = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.toggl
|
|
|
20713
20740
|
return this.showTooltip ? u("div", { class: `togglecheckbox__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (i) => this.tooltipReference = i, innerHTML: this.tooltip }) : null;
|
|
20714
20741
|
}
|
|
20715
20742
|
render() {
|
|
20716
|
-
return u("div", { key: "828751327e59e9649afc04c6c9f7a02ef7dcae8d", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("div", { key: "d02a2a6ef595aaf7142cbc6e9681394ee4db8fee", class: "togglecheckbox__wrapper--flex" }, u("input", { key: "fca6401ef6eb178f53471362444d54ed69086429", class: "togglecheckbox__input", type: "checkbox", id: `${this.name}__input`, ref: (i) => this.checkboxReference = i, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), u("small", { key: "3781a8fdfeb719422693bcd541a4a3fe708e705a", class: "togglecheckbox__error-message" }, this.errorMessage), u("div", { key: "27a4c6b047cd332407ee40c82cf7be1914ed34c9", class: "togglecheckbox__wrapper--relative" }, this.tooltip && u("img", { key: "f1367d7e061d20ad68c24dfbe3147e6b67df746f", class: "togglecheckbox__tooltip-icon", src:
|
|
20743
|
+
return u("div", { key: "828751327e59e9649afc04c6c9f7a02ef7dcae8d", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (i) => this.stylingContainer = i }, u("div", { key: "d02a2a6ef595aaf7142cbc6e9681394ee4db8fee", class: "togglecheckbox__wrapper--flex" }, u("input", { key: "fca6401ef6eb178f53471362444d54ed69086429", class: "togglecheckbox__input", type: "checkbox", id: `${this.name}__input`, ref: (i) => this.checkboxReference = i, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), u("small", { key: "3781a8fdfeb719422693bcd541a4a3fe708e705a", class: "togglecheckbox__error-message" }, this.errorMessage), u("div", { key: "27a4c6b047cd332407ee40c82cf7be1914ed34c9", class: "togglecheckbox__wrapper--relative" }, this.tooltip && u("img", { key: "f1367d7e061d20ad68c24dfbe3147e6b67df746f", class: "togglecheckbox__tooltip-icon", src: he, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), u("div", { key: "98d42103554de4d14a65eafd1722bf9d587a27f1", class: `togglecheckbox__fields-wrapper ${this.showFields ? "" : "hidden"}` }, this.options.map((i) => u("general-input", { type: i.inputType, name: i.name, displayName: i.displayName, validation: i.validate, action: i.action || null, defaultValue: i.defaultValue, autofilled: i.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: i.tooltip, placeholder: i.placeholder == null ? "" : i.placeholder, ref: (e) => this.subFieldsObject[i.name] = e }))));
|
|
20717
20744
|
}
|
|
20718
20745
|
static get watchers() {
|
|
20719
20746
|
return {
|