@webority/ui-elements 0.11.0 → 0.11.1
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/dist/ui-elements.global.js +33 -33
- package/dist/ui-elements.js +503 -87
- package/package.json +1 -1
package/dist/ui-elements.js
CHANGED
|
@@ -1864,7 +1864,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
1864
1864
|
disconnectedCallback() {
|
|
1865
1865
|
this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange);
|
|
1866
1866
|
}
|
|
1867
|
-
},
|
|
1867
|
+
}, L = [
|
|
1868
1868
|
[
|
|
1869
1869
|
"AF",
|
|
1870
1870
|
"Afghanistan",
|
|
@@ -3090,65 +3090,481 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3090
3090
|
"Zimbabwe",
|
|
3091
3091
|
"263"
|
|
3092
3092
|
]
|
|
3093
|
-
],
|
|
3093
|
+
], R = (e) => (L.find((t) => t[0] === e) || [
|
|
3094
3094
|
"",
|
|
3095
3095
|
"",
|
|
3096
3096
|
""
|
|
3097
|
-
])[2],
|
|
3098
|
-
|
|
3099
|
-
|
|
3097
|
+
])[2], we = {
|
|
3098
|
+
AD: ["Europe/Andorra"],
|
|
3099
|
+
AE: ["Asia/Dubai"],
|
|
3100
|
+
AF: ["Asia/Kabul"],
|
|
3101
|
+
AG: ["America/Antigua"],
|
|
3102
|
+
AI: ["America/Anguilla"],
|
|
3103
|
+
AL: ["Europe/Tirane"],
|
|
3104
|
+
AM: ["Asia/Yerevan"],
|
|
3105
|
+
AO: ["Africa/Luanda"],
|
|
3106
|
+
AR: [
|
|
3107
|
+
"America/Argentina/Buenos_Aires",
|
|
3108
|
+
"America/Argentina/Catamarca",
|
|
3109
|
+
"America/Argentina/Cordoba",
|
|
3110
|
+
"America/Argentina/Jujuy",
|
|
3111
|
+
"America/Argentina/La_Rioja",
|
|
3112
|
+
"America/Argentina/Mendoza",
|
|
3113
|
+
"America/Argentina/Rio_Gallegos",
|
|
3114
|
+
"America/Argentina/Salta",
|
|
3115
|
+
"America/Argentina/San_Juan",
|
|
3116
|
+
"America/Argentina/San_Luis",
|
|
3117
|
+
"America/Argentina/Tucuman",
|
|
3118
|
+
"America/Argentina/Ushuaia",
|
|
3119
|
+
"America/Buenos_Aires",
|
|
3120
|
+
"America/Catamarca",
|
|
3121
|
+
"America/Cordoba",
|
|
3122
|
+
"America/Jujuy",
|
|
3123
|
+
"America/Mendoza"
|
|
3124
|
+
],
|
|
3125
|
+
AS: [
|
|
3126
|
+
"Pacific/Pago_Pago",
|
|
3127
|
+
"Pacific/Samoa",
|
|
3128
|
+
"US/Samoa"
|
|
3129
|
+
],
|
|
3130
|
+
AT: ["Europe/Vienna"],
|
|
3131
|
+
AU: [
|
|
3132
|
+
"Antarctica/Macquarie",
|
|
3133
|
+
"Australia/Adelaide",
|
|
3134
|
+
"Australia/Brisbane",
|
|
3135
|
+
"Australia/Broken_Hill",
|
|
3136
|
+
"Australia/Darwin",
|
|
3137
|
+
"Australia/Eucla",
|
|
3138
|
+
"Australia/Hobart",
|
|
3139
|
+
"Australia/LHI",
|
|
3140
|
+
"Australia/Lindeman",
|
|
3141
|
+
"Australia/Lord_Howe",
|
|
3142
|
+
"Australia/Melbourne",
|
|
3143
|
+
"Australia/NSW",
|
|
3144
|
+
"Australia/North",
|
|
3145
|
+
"Australia/Perth",
|
|
3146
|
+
"Australia/Queensland",
|
|
3147
|
+
"Australia/South",
|
|
3148
|
+
"Australia/Sydney",
|
|
3149
|
+
"Australia/Tasmania",
|
|
3150
|
+
"Australia/Victoria",
|
|
3151
|
+
"Australia/West",
|
|
3152
|
+
"Australia/Yancowinna"
|
|
3153
|
+
],
|
|
3154
|
+
AW: ["America/Aruba"],
|
|
3155
|
+
AX: ["Europe/Mariehamn"],
|
|
3156
|
+
AZ: ["Asia/Baku"],
|
|
3157
|
+
BA: ["Europe/Sarajevo"],
|
|
3158
|
+
BB: ["America/Barbados"],
|
|
3159
|
+
BD: ["Asia/Dacca", "Asia/Dhaka"],
|
|
3160
|
+
BE: ["Europe/Brussels"],
|
|
3161
|
+
BF: ["Africa/Ouagadougou"],
|
|
3162
|
+
BG: ["Europe/Sofia"],
|
|
3163
|
+
BH: ["Asia/Bahrain"],
|
|
3164
|
+
BI: ["Africa/Bujumbura"],
|
|
3165
|
+
BJ: ["Africa/Porto-Novo"],
|
|
3166
|
+
BL: ["America/St_Barthelemy"],
|
|
3167
|
+
BM: ["Atlantic/Bermuda"],
|
|
3168
|
+
BN: ["Asia/Brunei"],
|
|
3169
|
+
BO: ["America/La_Paz"],
|
|
3170
|
+
BQ: ["America/Kralendijk"],
|
|
3171
|
+
BR: [
|
|
3172
|
+
"America/Araguaina",
|
|
3173
|
+
"America/Bahia",
|
|
3174
|
+
"America/Belem",
|
|
3175
|
+
"America/Boa_Vista",
|
|
3176
|
+
"America/Campo_Grande",
|
|
3177
|
+
"America/Cuiaba",
|
|
3178
|
+
"America/Eirunepe",
|
|
3179
|
+
"America/Fortaleza",
|
|
3180
|
+
"America/Maceio",
|
|
3181
|
+
"America/Manaus",
|
|
3182
|
+
"America/Noronha",
|
|
3183
|
+
"America/Porto_Velho",
|
|
3184
|
+
"America/Recife",
|
|
3185
|
+
"America/Rio_Branco",
|
|
3186
|
+
"America/Santarem",
|
|
3187
|
+
"America/Sao_Paulo",
|
|
3188
|
+
"Brazil/DeNoronha",
|
|
3189
|
+
"Brazil/East",
|
|
3190
|
+
"Brazil/West"
|
|
3191
|
+
],
|
|
3192
|
+
BS: ["America/Nassau"],
|
|
3193
|
+
BT: ["Asia/Thimbu", "Asia/Thimphu"],
|
|
3194
|
+
BW: ["Africa/Gaborone"],
|
|
3195
|
+
BY: ["Europe/Minsk"],
|
|
3196
|
+
BZ: ["America/Belize"],
|
|
3197
|
+
CA: /* @__PURE__ */ "America/Atikokan.America/Blanc-Sablon.America/Cambridge_Bay.America/Creston.America/Dawson.America/Dawson_Creek.America/Edmonton.America/Fort_Nelson.America/Glace_Bay.America/Goose_Bay.America/Halifax.America/Inuvik.America/Iqaluit.America/Moncton.America/Rankin_Inlet.America/Regina.America/Resolute.America/St_Johns.America/Swift_Current.America/Toronto.America/Vancouver.America/Whitehorse.America/Winnipeg.Canada/Atlantic.Canada/Central.Canada/Eastern.Canada/Mountain.Canada/Newfoundland.Canada/Pacific.Canada/Saskatchewan.Canada/Yukon".split("."),
|
|
3198
|
+
CC: ["Indian/Cocos"],
|
|
3199
|
+
CD: ["Africa/Kinshasa", "Africa/Lubumbashi"],
|
|
3200
|
+
CF: ["Africa/Bangui"],
|
|
3201
|
+
CG: ["Africa/Brazzaville"],
|
|
3202
|
+
CH: ["Europe/Zurich"],
|
|
3203
|
+
CI: ["Africa/Abidjan"],
|
|
3204
|
+
CK: ["Pacific/Rarotonga"],
|
|
3205
|
+
CL: [
|
|
3206
|
+
"America/Coyhaique",
|
|
3207
|
+
"America/Punta_Arenas",
|
|
3208
|
+
"America/Santiago",
|
|
3209
|
+
"Chile/Continental",
|
|
3210
|
+
"Chile/EasterIsland",
|
|
3211
|
+
"Pacific/Easter"
|
|
3212
|
+
],
|
|
3213
|
+
CM: ["Africa/Douala"],
|
|
3214
|
+
CN: ["Asia/Shanghai", "Asia/Urumqi"],
|
|
3215
|
+
CO: ["America/Bogota"],
|
|
3216
|
+
CR: ["America/Costa_Rica"],
|
|
3217
|
+
CU: ["America/Havana"],
|
|
3218
|
+
CV: ["Atlantic/Cape_Verde"],
|
|
3219
|
+
CW: ["America/Curacao"],
|
|
3220
|
+
CX: ["Indian/Christmas"],
|
|
3221
|
+
CY: [
|
|
3222
|
+
"Asia/Famagusta",
|
|
3223
|
+
"Asia/Nicosia",
|
|
3224
|
+
"Europe/Nicosia"
|
|
3225
|
+
],
|
|
3226
|
+
CZ: ["Europe/Prague"],
|
|
3227
|
+
DE: ["Europe/Berlin", "Europe/Busingen"],
|
|
3228
|
+
DJ: ["Africa/Djibouti"],
|
|
3229
|
+
DK: ["Europe/Copenhagen"],
|
|
3230
|
+
DM: ["America/Dominica"],
|
|
3231
|
+
DO: ["America/Santo_Domingo"],
|
|
3232
|
+
DZ: ["Africa/Algiers"],
|
|
3233
|
+
EC: ["America/Guayaquil", "Pacific/Galapagos"],
|
|
3234
|
+
EE: ["Europe/Tallinn"],
|
|
3235
|
+
EG: ["Africa/Cairo"],
|
|
3236
|
+
EH: ["Africa/El_Aaiun"],
|
|
3237
|
+
ER: ["Africa/Asmara", "Africa/Asmera"],
|
|
3238
|
+
ES: [
|
|
3239
|
+
"Africa/Ceuta",
|
|
3240
|
+
"Atlantic/Canary",
|
|
3241
|
+
"Europe/Madrid"
|
|
3242
|
+
],
|
|
3243
|
+
ET: ["Africa/Addis_Ababa"],
|
|
3244
|
+
FI: ["Europe/Helsinki"],
|
|
3245
|
+
FJ: ["Pacific/Fiji"],
|
|
3246
|
+
FK: ["Atlantic/Stanley"],
|
|
3247
|
+
FM: [
|
|
3248
|
+
"Pacific/Chuuk",
|
|
3249
|
+
"Pacific/Kosrae",
|
|
3250
|
+
"Pacific/Pohnpei",
|
|
3251
|
+
"Pacific/Ponape",
|
|
3252
|
+
"Pacific/Truk"
|
|
3253
|
+
],
|
|
3254
|
+
FO: ["Atlantic/Faeroe", "Atlantic/Faroe"],
|
|
3255
|
+
FR: ["Europe/Paris"],
|
|
3256
|
+
GA: ["Africa/Libreville"],
|
|
3257
|
+
GB: ["Europe/London"],
|
|
3258
|
+
GD: ["America/Grenada"],
|
|
3259
|
+
GE: ["Asia/Tbilisi"],
|
|
3260
|
+
GF: ["America/Cayenne"],
|
|
3261
|
+
GG: ["Europe/Guernsey"],
|
|
3262
|
+
GH: ["Africa/Accra"],
|
|
3263
|
+
GI: ["Europe/Gibraltar"],
|
|
3264
|
+
GL: [
|
|
3265
|
+
"America/Danmarkshavn",
|
|
3266
|
+
"America/Godthab",
|
|
3267
|
+
"America/Nuuk",
|
|
3268
|
+
"America/Scoresbysund",
|
|
3269
|
+
"America/Thule"
|
|
3270
|
+
],
|
|
3271
|
+
GM: ["Africa/Banjul"],
|
|
3272
|
+
GN: ["Africa/Conakry"],
|
|
3273
|
+
GP: ["America/Guadeloupe"],
|
|
3274
|
+
GQ: ["Africa/Malabo"],
|
|
3275
|
+
GR: ["Europe/Athens"],
|
|
3276
|
+
GT: ["America/Guatemala"],
|
|
3277
|
+
GU: ["Pacific/Guam"],
|
|
3278
|
+
GW: ["Africa/Bissau"],
|
|
3279
|
+
GY: ["America/Guyana"],
|
|
3280
|
+
HK: ["Asia/Hong_Kong"],
|
|
3281
|
+
HN: ["America/Tegucigalpa"],
|
|
3282
|
+
HR: ["Europe/Zagreb"],
|
|
3283
|
+
HT: ["America/Port-au-Prince"],
|
|
3284
|
+
HU: ["Europe/Budapest"],
|
|
3285
|
+
ID: [
|
|
3286
|
+
"Asia/Jakarta",
|
|
3287
|
+
"Asia/Jayapura",
|
|
3288
|
+
"Asia/Makassar",
|
|
3289
|
+
"Asia/Pontianak",
|
|
3290
|
+
"Asia/Ujung_Pandang"
|
|
3291
|
+
],
|
|
3292
|
+
IE: ["Europe/Dublin"],
|
|
3293
|
+
IL: ["Asia/Jerusalem"],
|
|
3294
|
+
IM: ["Europe/Isle_of_Man"],
|
|
3295
|
+
IN: ["Asia/Calcutta", "Asia/Kolkata"],
|
|
3296
|
+
IO: ["Indian/Chagos"],
|
|
3297
|
+
IQ: ["Asia/Baghdad"],
|
|
3298
|
+
IR: ["Asia/Tehran"],
|
|
3299
|
+
IS: ["Atlantic/Reykjavik"],
|
|
3300
|
+
IT: ["Europe/Rome"],
|
|
3301
|
+
JE: ["Europe/Jersey"],
|
|
3302
|
+
JM: ["America/Jamaica"],
|
|
3303
|
+
JO: ["Asia/Amman"],
|
|
3304
|
+
JP: ["Asia/Tokyo"],
|
|
3305
|
+
KE: ["Africa/Nairobi"],
|
|
3306
|
+
KG: ["Asia/Bishkek"],
|
|
3307
|
+
KH: ["Asia/Phnom_Penh"],
|
|
3308
|
+
KI: [
|
|
3309
|
+
"Pacific/Kanton",
|
|
3310
|
+
"Pacific/Kiritimati",
|
|
3311
|
+
"Pacific/Tarawa"
|
|
3312
|
+
],
|
|
3313
|
+
KM: ["Indian/Comoro"],
|
|
3314
|
+
KN: ["America/St_Kitts"],
|
|
3315
|
+
KP: ["Asia/Pyongyang"],
|
|
3316
|
+
KR: ["Asia/Seoul"],
|
|
3317
|
+
KW: ["Asia/Kuwait"],
|
|
3318
|
+
KY: ["America/Cayman"],
|
|
3319
|
+
KZ: [
|
|
3320
|
+
"Asia/Almaty",
|
|
3321
|
+
"Asia/Aqtau",
|
|
3322
|
+
"Asia/Aqtobe",
|
|
3323
|
+
"Asia/Atyrau",
|
|
3324
|
+
"Asia/Oral",
|
|
3325
|
+
"Asia/Qostanay",
|
|
3326
|
+
"Asia/Qyzylorda"
|
|
3327
|
+
],
|
|
3328
|
+
LA: ["Asia/Vientiane"],
|
|
3329
|
+
LB: ["Asia/Beirut"],
|
|
3330
|
+
LC: ["America/St_Lucia"],
|
|
3331
|
+
LI: ["Europe/Vaduz"],
|
|
3332
|
+
LK: ["Asia/Colombo"],
|
|
3333
|
+
LR: ["Africa/Monrovia"],
|
|
3334
|
+
LS: ["Africa/Maseru"],
|
|
3335
|
+
LT: ["Europe/Vilnius"],
|
|
3336
|
+
LU: ["Europe/Luxembourg"],
|
|
3337
|
+
LV: ["Europe/Riga"],
|
|
3338
|
+
LY: ["Africa/Tripoli"],
|
|
3339
|
+
MA: ["Africa/Casablanca"],
|
|
3340
|
+
MC: ["Europe/Monaco"],
|
|
3341
|
+
MD: ["Europe/Chisinau"],
|
|
3342
|
+
ME: ["Europe/Podgorica"],
|
|
3343
|
+
MF: ["America/Marigot"],
|
|
3344
|
+
MG: ["Indian/Antananarivo"],
|
|
3345
|
+
MH: ["Pacific/Kwajalein", "Pacific/Majuro"],
|
|
3346
|
+
MK: ["Europe/Skopje"],
|
|
3347
|
+
ML: ["Africa/Bamako"],
|
|
3348
|
+
MM: ["Asia/Rangoon", "Asia/Yangon"],
|
|
3349
|
+
MN: [
|
|
3350
|
+
"Asia/Hovd",
|
|
3351
|
+
"Asia/Ulaanbaatar",
|
|
3352
|
+
"Asia/Ulan_Bator"
|
|
3353
|
+
],
|
|
3354
|
+
MO: ["Asia/Macao", "Asia/Macau"],
|
|
3355
|
+
MP: ["Pacific/Saipan"],
|
|
3356
|
+
MQ: ["America/Martinique"],
|
|
3357
|
+
MR: ["Africa/Nouakchott"],
|
|
3358
|
+
MS: ["America/Montserrat"],
|
|
3359
|
+
MT: ["Europe/Malta"],
|
|
3360
|
+
MU: ["Indian/Mauritius"],
|
|
3361
|
+
MV: ["Indian/Maldives"],
|
|
3362
|
+
MW: ["Africa/Blantyre"],
|
|
3363
|
+
MX: [
|
|
3364
|
+
"America/Bahia_Banderas",
|
|
3365
|
+
"America/Cancun",
|
|
3366
|
+
"America/Chihuahua",
|
|
3367
|
+
"America/Ciudad_Juarez",
|
|
3368
|
+
"America/Hermosillo",
|
|
3369
|
+
"America/Matamoros",
|
|
3370
|
+
"America/Mazatlan",
|
|
3371
|
+
"America/Merida",
|
|
3372
|
+
"America/Mexico_City",
|
|
3373
|
+
"America/Monterrey",
|
|
3374
|
+
"America/Ojinaga",
|
|
3375
|
+
"America/Tijuana",
|
|
3376
|
+
"Mexico/BajaNorte",
|
|
3377
|
+
"Mexico/BajaSur",
|
|
3378
|
+
"Mexico/General"
|
|
3379
|
+
],
|
|
3380
|
+
MY: ["Asia/Kuala_Lumpur", "Asia/Kuching"],
|
|
3381
|
+
MZ: ["Africa/Maputo"],
|
|
3382
|
+
NA: ["Africa/Windhoek"],
|
|
3383
|
+
NC: ["Pacific/Noumea"],
|
|
3384
|
+
NE: ["Africa/Niamey"],
|
|
3385
|
+
NF: ["Pacific/Norfolk"],
|
|
3386
|
+
NG: ["Africa/Lagos"],
|
|
3387
|
+
NI: ["America/Managua"],
|
|
3388
|
+
NL: ["Europe/Amsterdam"],
|
|
3389
|
+
NO: ["Europe/Oslo"],
|
|
3390
|
+
NP: ["Asia/Kathmandu", "Asia/Katmandu"],
|
|
3391
|
+
NR: ["Pacific/Nauru"],
|
|
3392
|
+
NU: ["Pacific/Niue"],
|
|
3393
|
+
NZ: ["Pacific/Auckland", "Pacific/Chatham"],
|
|
3394
|
+
OM: ["Asia/Muscat"],
|
|
3395
|
+
PA: ["America/Panama"],
|
|
3396
|
+
PE: ["America/Lima"],
|
|
3397
|
+
PF: [
|
|
3398
|
+
"Pacific/Gambier",
|
|
3399
|
+
"Pacific/Marquesas",
|
|
3400
|
+
"Pacific/Tahiti"
|
|
3401
|
+
],
|
|
3402
|
+
PG: ["Pacific/Bougainville", "Pacific/Port_Moresby"],
|
|
3403
|
+
PH: ["Asia/Manila"],
|
|
3404
|
+
PK: ["Asia/Karachi"],
|
|
3405
|
+
PL: ["Europe/Warsaw"],
|
|
3406
|
+
PM: ["America/Miquelon"],
|
|
3407
|
+
PR: ["America/Puerto_Rico"],
|
|
3408
|
+
PS: ["Asia/Gaza", "Asia/Hebron"],
|
|
3409
|
+
PT: [
|
|
3410
|
+
"Atlantic/Azores",
|
|
3411
|
+
"Atlantic/Madeira",
|
|
3412
|
+
"Europe/Lisbon"
|
|
3413
|
+
],
|
|
3414
|
+
PW: ["Pacific/Palau"],
|
|
3415
|
+
PY: ["America/Asuncion"],
|
|
3416
|
+
QA: ["Asia/Qatar"],
|
|
3417
|
+
RE: ["Indian/Reunion"],
|
|
3418
|
+
RO: ["Europe/Bucharest"],
|
|
3419
|
+
RS: ["Europe/Belgrade"],
|
|
3420
|
+
RU: /* @__PURE__ */ "Asia/Anadyr.Asia/Barnaul.Asia/Chita.Asia/Irkutsk.Asia/Kamchatka.Asia/Khandyga.Asia/Krasnoyarsk.Asia/Magadan.Asia/Novokuznetsk.Asia/Novosibirsk.Asia/Omsk.Asia/Sakhalin.Asia/Srednekolymsk.Asia/Tomsk.Asia/Ust-Nera.Asia/Vladivostok.Asia/Yakutsk.Asia/Yekaterinburg.Europe/Astrakhan.Europe/Kaliningrad.Europe/Kirov.Europe/Moscow.Europe/Samara.Europe/Saratov.Europe/Ulyanovsk.Europe/Volgograd".split("."),
|
|
3421
|
+
RW: ["Africa/Kigali"],
|
|
3422
|
+
SA: ["Asia/Riyadh"],
|
|
3423
|
+
SB: ["Pacific/Guadalcanal"],
|
|
3424
|
+
SC: ["Indian/Mahe"],
|
|
3425
|
+
SD: ["Africa/Khartoum"],
|
|
3426
|
+
SE: ["Europe/Stockholm"],
|
|
3427
|
+
SG: ["Asia/Singapore"],
|
|
3428
|
+
SH: ["Atlantic/St_Helena"],
|
|
3429
|
+
SI: ["Europe/Ljubljana"],
|
|
3430
|
+
SJ: ["Arctic/Longyearbyen"],
|
|
3431
|
+
SK: ["Europe/Bratislava"],
|
|
3432
|
+
SL: ["Africa/Freetown"],
|
|
3433
|
+
SM: ["Europe/San_Marino"],
|
|
3434
|
+
SN: ["Africa/Dakar"],
|
|
3435
|
+
SO: ["Africa/Mogadishu"],
|
|
3436
|
+
SR: ["America/Paramaribo"],
|
|
3437
|
+
SS: ["Africa/Juba"],
|
|
3438
|
+
ST: ["Africa/Sao_Tome"],
|
|
3439
|
+
SV: ["America/El_Salvador"],
|
|
3440
|
+
SX: ["America/Lower_Princes"],
|
|
3441
|
+
SY: ["Asia/Damascus"],
|
|
3442
|
+
SZ: ["Africa/Mbabane"],
|
|
3443
|
+
TC: ["America/Grand_Turk"],
|
|
3444
|
+
TD: ["Africa/Ndjamena"],
|
|
3445
|
+
TG: ["Africa/Lome"],
|
|
3446
|
+
TH: ["Asia/Bangkok"],
|
|
3447
|
+
TJ: ["Asia/Dushanbe"],
|
|
3448
|
+
TK: ["Pacific/Fakaofo"],
|
|
3449
|
+
TL: ["Asia/Dili"],
|
|
3450
|
+
TM: ["Asia/Ashgabat", "Asia/Ashkhabad"],
|
|
3451
|
+
TN: ["Africa/Tunis"],
|
|
3452
|
+
TO: ["Pacific/Tongatapu"],
|
|
3453
|
+
TR: ["Asia/Istanbul", "Europe/Istanbul"],
|
|
3454
|
+
TT: ["America/Port_of_Spain"],
|
|
3455
|
+
TV: ["Pacific/Funafuti"],
|
|
3456
|
+
TW: ["Asia/Taipei"],
|
|
3457
|
+
TZ: ["Africa/Dar_es_Salaam"],
|
|
3458
|
+
UA: [
|
|
3459
|
+
"Europe/Kiev",
|
|
3460
|
+
"Europe/Kyiv",
|
|
3461
|
+
"Europe/Simferopol"
|
|
3462
|
+
],
|
|
3463
|
+
UG: ["Africa/Kampala"],
|
|
3464
|
+
US: /* @__PURE__ */ "America/Adak.America/Anchorage.America/Boise.America/Chicago.America/Denver.America/Detroit.America/Indiana/Indianapolis.America/Indiana/Knox.America/Indiana/Marengo.America/Indiana/Petersburg.America/Indiana/Tell_City.America/Indiana/Vevay.America/Indiana/Vincennes.America/Indiana/Winamac.America/Indianapolis.America/Juneau.America/Kentucky/Louisville.America/Kentucky/Monticello.America/Knox_IN.America/Los_Angeles.America/Louisville.America/Menominee.America/Metlakatla.America/New_York.America/Nome.America/North_Dakota/Beulah.America/North_Dakota/Center.America/North_Dakota/New_Salem.America/Phoenix.America/Sitka.America/Yakutat.Pacific/Honolulu.US/Alaska.US/Aleutian.US/Arizona.US/Central.US/East-Indiana.US/Eastern.US/Hawaii.US/Indiana-Starke.US/Michigan.US/Mountain.US/Pacific".split("."),
|
|
3465
|
+
UY: ["America/Montevideo"],
|
|
3466
|
+
UZ: ["Asia/Samarkand", "Asia/Tashkent"],
|
|
3467
|
+
VA: ["Europe/Vatican"],
|
|
3468
|
+
VC: ["America/St_Vincent"],
|
|
3469
|
+
VE: ["America/Caracas"],
|
|
3470
|
+
VG: ["America/Tortola"],
|
|
3471
|
+
VI: ["America/St_Thomas", "America/Virgin"],
|
|
3472
|
+
VN: ["Asia/Ho_Chi_Minh", "Asia/Saigon"],
|
|
3473
|
+
VU: ["Pacific/Efate"],
|
|
3474
|
+
WF: ["Pacific/Wallis"],
|
|
3475
|
+
WS: ["Pacific/Apia"],
|
|
3476
|
+
YE: ["Asia/Aden"],
|
|
3477
|
+
YT: ["Indian/Mayotte"],
|
|
3478
|
+
ZA: ["Africa/Johannesburg"],
|
|
3479
|
+
ZM: ["Africa/Lusaka"],
|
|
3480
|
+
ZW: ["Africa/Harare"]
|
|
3481
|
+
}, Te = new Set(L.map(([e]) => e)), Ee = /* @__PURE__ */ new Map();
|
|
3482
|
+
for (let [e, t] of Object.entries(we)) for (let n of t) Ee.set(n, e);
|
|
3483
|
+
function De(e) {
|
|
3484
|
+
let t = Ee.get(e);
|
|
3485
|
+
return t && Te.has(t) ? t : null;
|
|
3486
|
+
}
|
|
3487
|
+
function Oe(e) {
|
|
3488
|
+
if (!e) return null;
|
|
3489
|
+
let t;
|
|
3490
|
+
try {
|
|
3491
|
+
t = new Intl.Locale(e).region;
|
|
3492
|
+
} catch {
|
|
3493
|
+
return null;
|
|
3494
|
+
}
|
|
3495
|
+
return t && Te.has(t) ? t : null;
|
|
3496
|
+
}
|
|
3497
|
+
function ke() {
|
|
3498
|
+
let e;
|
|
3499
|
+
try {
|
|
3500
|
+
e = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3501
|
+
} catch {
|
|
3502
|
+
e = void 0;
|
|
3503
|
+
}
|
|
3504
|
+
let t = typeof navigator > "u" ? void 0 : navigator.language;
|
|
3505
|
+
return De(e) || Oe(t) || "IN";
|
|
3506
|
+
}
|
|
3507
|
+
//#endregion
|
|
3508
|
+
//#region src/WuiPhone.js
|
|
3509
|
+
var z = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, B = null, Ae = null;
|
|
3510
|
+
function je() {
|
|
3511
|
+
return B ? Promise.resolve(B) : (Ae ||= Promise.all([import("./max-BDKx469G.js"), import("./examples.mobile.json-BMXTGiGC.js")]).then(([e, t]) => (B = {
|
|
3100
3512
|
AsYouType: e.AsYouType,
|
|
3101
3513
|
getExampleNumber: e.getExampleNumber,
|
|
3102
3514
|
isValidPhoneNumber: e.isValidPhoneNumber,
|
|
3103
3515
|
parsePhoneNumber: e.parsePhoneNumber,
|
|
3104
3516
|
examples: t.default || t
|
|
3105
|
-
},
|
|
3517
|
+
}, B)).catch(() => null), Ae);
|
|
3106
3518
|
}
|
|
3107
|
-
function
|
|
3108
|
-
|
|
3519
|
+
function Me(e, t) {
|
|
3520
|
+
let n = `+${R(e)}`;
|
|
3521
|
+
return t?.startsWith(n) ? t.slice(n.length).trimStart() : null;
|
|
3522
|
+
}
|
|
3523
|
+
function V(e, t) {
|
|
3524
|
+
if (!B || !t) return t;
|
|
3109
3525
|
try {
|
|
3110
|
-
return new
|
|
3526
|
+
return Me(e, new B.AsYouType(e).input(`+${R(e)}${t}`)) || t;
|
|
3111
3527
|
} catch {
|
|
3112
3528
|
return t;
|
|
3113
3529
|
}
|
|
3114
3530
|
}
|
|
3115
|
-
function
|
|
3531
|
+
function Ne(e, t) {
|
|
3116
3532
|
if (t <= 0) return 0;
|
|
3117
3533
|
let n = 0;
|
|
3118
3534
|
for (let r = 0; r < e.length; r++) if (/[0-9]/.test(e[r]) && (n += 1, n === t)) return r + 1;
|
|
3119
3535
|
return e.length;
|
|
3120
3536
|
}
|
|
3121
|
-
function
|
|
3122
|
-
if (!
|
|
3537
|
+
function H(e) {
|
|
3538
|
+
if (!B) return null;
|
|
3123
3539
|
try {
|
|
3124
|
-
return
|
|
3540
|
+
return Me(e, B.getExampleNumber(e, B.examples)?.formatInternational()) || null;
|
|
3125
3541
|
} catch {
|
|
3126
3542
|
return null;
|
|
3127
3543
|
}
|
|
3128
3544
|
}
|
|
3129
|
-
function
|
|
3130
|
-
if (!
|
|
3545
|
+
function Pe(e) {
|
|
3546
|
+
if (!B || !e) return null;
|
|
3131
3547
|
try {
|
|
3132
|
-
if (!
|
|
3133
|
-
let t =
|
|
3548
|
+
if (!B.isValidPhoneNumber(e)) return !1;
|
|
3549
|
+
let t = B.parsePhoneNumber(e)?.getType?.();
|
|
3134
3550
|
return t === void 0 || t === "MOBILE" || t === "FIXED_LINE_OR_MOBILE";
|
|
3135
3551
|
} catch {
|
|
3136
3552
|
return null;
|
|
3137
3553
|
}
|
|
3138
3554
|
}
|
|
3139
|
-
function
|
|
3140
|
-
if (!
|
|
3555
|
+
function Fe(e) {
|
|
3556
|
+
if (!B) return null;
|
|
3141
3557
|
try {
|
|
3142
|
-
let t =
|
|
3558
|
+
let t = B.getExampleNumber(e, B.examples);
|
|
3143
3559
|
return t?.nationalNumber ? t.nationalNumber.length : null;
|
|
3144
3560
|
} catch {
|
|
3145
3561
|
return null;
|
|
3146
3562
|
}
|
|
3147
3563
|
}
|
|
3148
|
-
function
|
|
3149
|
-
if (!
|
|
3564
|
+
function Ie(e) {
|
|
3565
|
+
if (!B || !e?.trim().startsWith("+")) return null;
|
|
3150
3566
|
try {
|
|
3151
|
-
let t = new
|
|
3567
|
+
let t = new B.AsYouType();
|
|
3152
3568
|
t.input(e.trim());
|
|
3153
3569
|
let n = t.getCountry();
|
|
3154
3570
|
return n ? {
|
|
@@ -3159,7 +3575,7 @@ function H(e) {
|
|
|
3159
3575
|
return null;
|
|
3160
3576
|
}
|
|
3161
3577
|
}
|
|
3162
|
-
var
|
|
3578
|
+
var Le = class extends e {
|
|
3163
3579
|
static formAssociated = !0;
|
|
3164
3580
|
static get observedAttributes() {
|
|
3165
3581
|
return [
|
|
@@ -3179,7 +3595,7 @@ var Ae = class extends e {
|
|
|
3179
3595
|
} catch {
|
|
3180
3596
|
this._internals = null;
|
|
3181
3597
|
}
|
|
3182
|
-
this._country =
|
|
3598
|
+
this._defaultCountry = ke(), this._country = this._defaultCountry, this._national = "", this._active = -1, this._committedValue = "";
|
|
3183
3599
|
}
|
|
3184
3600
|
connectedCallback() {
|
|
3185
3601
|
if (!this._rendered) {
|
|
@@ -3199,20 +3615,20 @@ var Ae = class extends e {
|
|
|
3199
3615
|
t && (n == null ? t.removeAttribute(e) : t.setAttribute(e, n));
|
|
3200
3616
|
return;
|
|
3201
3617
|
}
|
|
3202
|
-
e === "country" && (this._country = n ||
|
|
3618
|
+
e === "country" && (this._country = n || this._defaultCountry, this._suppressCountryRender) || this.render();
|
|
3203
3619
|
}
|
|
3204
3620
|
}
|
|
3205
3621
|
formResetCallback() {
|
|
3206
3622
|
this.value = this._defaultValue || "";
|
|
3207
3623
|
}
|
|
3208
3624
|
get value() {
|
|
3209
|
-
return this._national ? `+${
|
|
3625
|
+
return this._national ? `+${R(this._country)}${this._national}` : "";
|
|
3210
3626
|
}
|
|
3211
3627
|
set value(e) {
|
|
3212
|
-
let t = String(e ?? "").trim(), n =
|
|
3628
|
+
let t = String(e ?? "").trim(), n = Ie(t);
|
|
3213
3629
|
if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
|
|
3214
3630
|
else if (t.startsWith("+")) {
|
|
3215
|
-
let e = t.replace(/[^0-9]/g, ""), n = String(
|
|
3631
|
+
let e = t.replace(/[^0-9]/g, ""), n = String(R(this._country));
|
|
3216
3632
|
n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
|
|
3217
3633
|
} else this._national = t.replace(/[^0-9]/g, "");
|
|
3218
3634
|
n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
|
|
@@ -3228,25 +3644,25 @@ var Ae = class extends e {
|
|
|
3228
3644
|
}
|
|
3229
3645
|
render() {
|
|
3230
3646
|
this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
|
|
3231
|
-
let e = this.getAttribute("placeholder") ||
|
|
3647
|
+
let e = this.getAttribute("placeholder") || H(this._country) || "Enter phone number";
|
|
3232
3648
|
this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
|
|
3233
3649
|
let t = `${this.id}-listbox`;
|
|
3234
3650
|
this._listboxId = t;
|
|
3235
|
-
let n =
|
|
3651
|
+
let n = L.map(([e, n, r], i) => `<button type="button" role="option" id="${U(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${z(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
|
|
3236
3652
|
this.innerHTML = `
|
|
3237
3653
|
<div class="phone-input-wrap">
|
|
3238
3654
|
<div class="phone-country-adornment">
|
|
3239
3655
|
<button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${U(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
3240
|
-
<span class="${
|
|
3656
|
+
<span class="${z(this._country)}" data-flag aria-hidden="true"></span>
|
|
3241
3657
|
${p("chevron-down", { className: "phone-chevron" })}
|
|
3242
|
-
<span class="phone-dial" data-dial>+${
|
|
3658
|
+
<span class="phone-dial" data-dial>+${R(this._country)}</span>
|
|
3243
3659
|
</button>
|
|
3244
3660
|
<div class="country-dropdown-menu" role="listbox" id="${U(t)}" tabindex="-1" hidden>
|
|
3245
3661
|
<div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${p("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${U(t)}" aria-autocomplete="list" /></div>
|
|
3246
3662
|
<div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
|
|
3247
3663
|
</div>
|
|
3248
3664
|
</div>
|
|
3249
|
-
<input type="tel" class="input" placeholder="${U(e)}" value="${U(
|
|
3665
|
+
<input type="tel" class="input" placeholder="${U(e)}" value="${U(V(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${U(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${U(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
3250
3666
|
</div>
|
|
3251
3667
|
<div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, d(this, this.value), this._wire();
|
|
3252
3668
|
}
|
|
@@ -3277,12 +3693,12 @@ var Ae = class extends e {
|
|
|
3277
3693
|
}
|
|
3278
3694
|
a && (a.hidden = n > 0);
|
|
3279
3695
|
}, v = (e) => {
|
|
3280
|
-
this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), u && (u.className =
|
|
3696
|
+
this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), u && (u.className = z(e)), d && (d.textContent = `+${R(e)}`);
|
|
3281
3697
|
for (let t of this._itemEls()) {
|
|
3282
3698
|
let n = t.dataset.iso === e;
|
|
3283
3699
|
t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
|
|
3284
3700
|
}
|
|
3285
|
-
!this.getAttribute("placeholder") && o && (o.placeholder =
|
|
3701
|
+
!this.getAttribute("placeholder") && o && (o.placeholder = H(e) || "Enter phone number"), o && this._national && (o.value = V(e, this._national)), g(), this._syncMirror(), this._emitChange(), o?.focus();
|
|
3286
3702
|
}, y = (t) => {
|
|
3287
3703
|
let n = this._visibleItems();
|
|
3288
3704
|
if (t.key === "ArrowDown") {
|
|
@@ -3316,7 +3732,7 @@ var Ae = class extends e {
|
|
|
3316
3732
|
let b = this.querySelector("[data-phone-error]"), x = (e) => {
|
|
3317
3733
|
if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), b) {
|
|
3318
3734
|
if (e) {
|
|
3319
|
-
let e =
|
|
3735
|
+
let e = H(this._country);
|
|
3320
3736
|
b.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
|
|
3321
3737
|
}
|
|
3322
3738
|
b.hidden = !e;
|
|
@@ -3324,20 +3740,20 @@ var Ae = class extends e {
|
|
|
3324
3740
|
};
|
|
3325
3741
|
o.addEventListener("input", (e) => {
|
|
3326
3742
|
e.stopPropagation();
|
|
3327
|
-
let t = o.selectionStart ?? o.value.length, n = o.value.slice(0, t).replace(/[^0-9]/g, "").length, r = o.value.replace(/[^0-9]/g, ""), i =
|
|
3743
|
+
let t = o.selectionStart ?? o.value.length, n = o.value.slice(0, t).replace(/[^0-9]/g, "").length, r = o.value.replace(/[^0-9]/g, ""), i = Fe(this._country);
|
|
3328
3744
|
i && r.length > i && (r = r.slice(0, i)), this._national = r;
|
|
3329
|
-
let a =
|
|
3745
|
+
let a = V(this._country, this._national);
|
|
3330
3746
|
if (o.value !== a) {
|
|
3331
3747
|
o.value = a;
|
|
3332
|
-
let e =
|
|
3748
|
+
let e = Ne(a, Math.min(n, r.length));
|
|
3333
3749
|
o.setSelectionRange(e, e);
|
|
3334
3750
|
}
|
|
3335
|
-
this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national ||
|
|
3751
|
+
this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || Pe(this.value) === !0) && x(!1);
|
|
3336
3752
|
}), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
|
|
3337
|
-
x(this._national.length > 0 &&
|
|
3753
|
+
x(this._national.length > 0 && Pe(this.value) === !1), this.value !== this._committedValue && this._emitChange();
|
|
3338
3754
|
}), o.addEventListener("paste", (e) => {
|
|
3339
|
-
let t =
|
|
3340
|
-
t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value =
|
|
3755
|
+
let t = Ie(e.clipboardData?.getData("text"));
|
|
3756
|
+
t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = V(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
|
|
3341
3757
|
}), this._bindGlobal = () => {
|
|
3342
3758
|
this._teardownGlobals?.(), this._onDocClick = (e) => {
|
|
3343
3759
|
f() && !this.contains(e.target) && g();
|
|
@@ -3346,9 +3762,9 @@ var Ae = class extends e {
|
|
|
3346
3762
|
});
|
|
3347
3763
|
}, this._teardownGlobals = () => {
|
|
3348
3764
|
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), l(this);
|
|
3349
|
-
}, this._bindGlobal(),
|
|
3350
|
-
if (!(!e || !o.isConnected) && (this._national && (o.value =
|
|
3351
|
-
let e =
|
|
3765
|
+
}, this._bindGlobal(), je().then((e) => {
|
|
3766
|
+
if (!(!e || !o.isConnected) && (this._national && (o.value = V(this._country, this._national)), !this.getAttribute("placeholder"))) {
|
|
3767
|
+
let e = H(this._country);
|
|
3352
3768
|
e && (o.placeholder = e);
|
|
3353
3769
|
}
|
|
3354
3770
|
}), this._syncMirror();
|
|
@@ -3359,7 +3775,7 @@ var Ae = class extends e {
|
|
|
3359
3775
|
disconnectedCallback() {
|
|
3360
3776
|
this._teardown();
|
|
3361
3777
|
}
|
|
3362
|
-
}, U = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"),
|
|
3778
|
+
}, U = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), Re = class extends e {
|
|
3363
3779
|
static formAssociated = !0;
|
|
3364
3780
|
static get observedAttributes() {
|
|
3365
3781
|
return [
|
|
@@ -3565,7 +3981,7 @@ var Ae = class extends e {
|
|
|
3565
3981
|
disconnectedCallback() {
|
|
3566
3982
|
this._teardown();
|
|
3567
3983
|
}
|
|
3568
|
-
}, W = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"),
|
|
3984
|
+
}, W = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), ze = class extends e {
|
|
3569
3985
|
static formAssociated = !0;
|
|
3570
3986
|
static get observedAttributes() {
|
|
3571
3987
|
return [
|
|
@@ -3707,7 +4123,7 @@ var Ae = class extends e {
|
|
|
3707
4123
|
aria-valuenow="${this._value}"
|
|
3708
4124
|
aria-valuetext="${this._formatValue(this._value)}"
|
|
3709
4125
|
${a ? "disabled" : ""}
|
|
3710
|
-
aria-label="${
|
|
4126
|
+
aria-label="${Be(this.getAttribute("aria-label") || "Value")}"
|
|
3711
4127
|
></button>
|
|
3712
4128
|
`}
|
|
3713
4129
|
${this.hasAttribute("show-value") ? n ? `<span class="slider-value">${this._formatValue(this._start)} – ${this._formatValue(this._end)}</span>` : `<span class="slider-value">${this._formatValue(this._value)}</span>` : ""}
|
|
@@ -3810,7 +4226,7 @@ var Ae = class extends e {
|
|
|
3810
4226
|
}, G = (e, t) => {
|
|
3811
4227
|
let n = Number.parseFloat(e);
|
|
3812
4228
|
return Number.isFinite(n) ? n : t;
|
|
3813
|
-
},
|
|
4229
|
+
}, Be = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), Ve = class extends e {
|
|
3814
4230
|
static formAssociated = !0;
|
|
3815
4231
|
_accessibleName() {
|
|
3816
4232
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
|
|
@@ -3895,7 +4311,7 @@ var Ae = class extends e {
|
|
|
3895
4311
|
e.innerHTML = "";
|
|
3896
4312
|
return;
|
|
3897
4313
|
}
|
|
3898
|
-
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${
|
|
4314
|
+
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${He(e)}</span><button type="button" class="chip-remove" data-remove="${K(e)}" aria-label="Remove ${K(e)}">${p("x")}</button></span>`).join("");
|
|
3899
4315
|
}
|
|
3900
4316
|
}
|
|
3901
4317
|
_wire() {
|
|
@@ -3964,7 +4380,7 @@ var Ae = class extends e {
|
|
|
3964
4380
|
disconnectedCallback() {
|
|
3965
4381
|
this._teardown();
|
|
3966
4382
|
}
|
|
3967
|
-
},
|
|
4383
|
+
}, He = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), K = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), q = (e) => String(e).padStart(2, "0"), Ue = (e, t) => `${q(e)}:${q(t)}`, J = (e) => {
|
|
3968
4384
|
let t = /^(\d{2}):(\d{2})$/.exec(e || "");
|
|
3969
4385
|
return t ? {
|
|
3970
4386
|
h: +t[1],
|
|
@@ -3972,10 +4388,10 @@ var Ae = class extends e {
|
|
|
3972
4388
|
} : null;
|
|
3973
4389
|
}, Y = (e, t = "24") => {
|
|
3974
4390
|
if (!e) return "";
|
|
3975
|
-
if (t === "24") return
|
|
4391
|
+
if (t === "24") return Ue(e.h, e.m);
|
|
3976
4392
|
let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
|
|
3977
4393
|
return `${n}:${q(e.m)} ${r}`;
|
|
3978
|
-
},
|
|
4394
|
+
}, We = class extends e {
|
|
3979
4395
|
static formAssociated = !0;
|
|
3980
4396
|
static get observedAttributes() {
|
|
3981
4397
|
return [
|
|
@@ -4060,7 +4476,7 @@ var Ae = class extends e {
|
|
|
4060
4476
|
if (!e) return;
|
|
4061
4477
|
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = J(this._value), i = this._focus, a = "";
|
|
4062
4478
|
for (let e = 0; e < n.length; e++) {
|
|
4063
|
-
let o = n[e], s =
|
|
4479
|
+
let o = n[e], s = Ue(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
|
|
4064
4480
|
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${Y(o, t)}</button>`;
|
|
4065
4481
|
}
|
|
4066
4482
|
e.innerHTML = a, this._focusActive();
|
|
@@ -4159,7 +4575,7 @@ var Ae = class extends e {
|
|
|
4159
4575
|
disconnectedCallback() {
|
|
4160
4576
|
this._teardown();
|
|
4161
4577
|
}
|
|
4162
|
-
},
|
|
4578
|
+
}, Ge = "wui-wizard-step", Ke = class extends e {
|
|
4163
4579
|
static get observedAttributes() {
|
|
4164
4580
|
return [
|
|
4165
4581
|
"active",
|
|
@@ -4193,7 +4609,7 @@ var Ae = class extends e {
|
|
|
4193
4609
|
this._beforeNext = typeof e == "function" ? e : null;
|
|
4194
4610
|
}
|
|
4195
4611
|
get _steps() {
|
|
4196
|
-
return [...this.querySelectorAll(`:scope > ${
|
|
4612
|
+
return [...this.querySelectorAll(`:scope > ${Ge}`)];
|
|
4197
4613
|
}
|
|
4198
4614
|
refresh() {
|
|
4199
4615
|
this._rendered && this._renderChrome();
|
|
@@ -4326,7 +4742,7 @@ var Ae = class extends e {
|
|
|
4326
4742
|
_reflectActive(e) {
|
|
4327
4743
|
this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
|
|
4328
4744
|
}
|
|
4329
|
-
}, X = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
4745
|
+
}, X = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), qe = class extends e {
|
|
4330
4746
|
static get observedAttributes() {
|
|
4331
4747
|
return [
|
|
4332
4748
|
"label",
|
|
@@ -4340,8 +4756,8 @@ var Ae = class extends e {
|
|
|
4340
4756
|
let e = this.closest("wui-wizard");
|
|
4341
4757
|
e && typeof e.refresh == "function" && e.refresh();
|
|
4342
4758
|
}
|
|
4343
|
-
},
|
|
4344
|
-
async function
|
|
4759
|
+
}, Je = 2e3;
|
|
4760
|
+
async function Ye(e) {
|
|
4345
4761
|
try {
|
|
4346
4762
|
if (navigator.clipboard?.writeText) return await navigator.clipboard.writeText(e), !0;
|
|
4347
4763
|
} catch {}
|
|
@@ -4356,14 +4772,14 @@ async function He(e) {
|
|
|
4356
4772
|
}
|
|
4357
4773
|
//#endregion
|
|
4358
4774
|
//#region src/fileValidation.js
|
|
4359
|
-
var
|
|
4775
|
+
var Xe = "image/png,image/jpeg,image/webp", Ze = 5, Qe = {
|
|
4360
4776
|
"image/png": [".png"],
|
|
4361
4777
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
4362
4778
|
"image/webp": [".webp"],
|
|
4363
4779
|
"image/gif": [".gif"],
|
|
4364
4780
|
"image/svg+xml": [".svg"],
|
|
4365
4781
|
"application/pdf": [".pdf"]
|
|
4366
|
-
},
|
|
4782
|
+
}, $e = {
|
|
4367
4783
|
"image/png": "PNG",
|
|
4368
4784
|
"image/jpeg": "JPG",
|
|
4369
4785
|
"image/webp": "WEBP",
|
|
@@ -4377,7 +4793,7 @@ var Ue = "image/png,image/jpeg,image/webp", We = 5, Ge = {
|
|
|
4377
4793
|
".gif": "GIF",
|
|
4378
4794
|
".svg": "SVG",
|
|
4379
4795
|
".pdf": "PDF"
|
|
4380
|
-
}, Z = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean),
|
|
4796
|
+
}, Z = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), et = [
|
|
4381
4797
|
".png",
|
|
4382
4798
|
".jpg",
|
|
4383
4799
|
".jpeg",
|
|
@@ -4388,35 +4804,35 @@ var Ue = "image/png,image/jpeg,image/webp", We = 5, Ge = {
|
|
|
4388
4804
|
".avif",
|
|
4389
4805
|
".heic"
|
|
4390
4806
|
];
|
|
4391
|
-
function
|
|
4807
|
+
function tt(e) {
|
|
4392
4808
|
if (!e) return !1;
|
|
4393
4809
|
let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
|
|
4394
4810
|
if (t) return t.startsWith("image/");
|
|
4395
4811
|
let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
|
|
4396
|
-
return
|
|
4812
|
+
return et.some((e) => r.endsWith(e));
|
|
4397
4813
|
}
|
|
4398
|
-
function
|
|
4814
|
+
function nt(e) {
|
|
4399
4815
|
let t = Z(e);
|
|
4400
|
-
return t.length ? t.every((e) => e.startsWith(".") ?
|
|
4816
|
+
return t.length ? t.every((e) => e.startsWith(".") ? et.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
|
|
4401
4817
|
}
|
|
4402
|
-
function
|
|
4818
|
+
function rt(e) {
|
|
4403
4819
|
let t = [];
|
|
4404
4820
|
for (let n of Z(e)) {
|
|
4405
|
-
let e =
|
|
4821
|
+
let e = $e[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
4406
4822
|
t.includes(e) || t.push(e);
|
|
4407
4823
|
}
|
|
4408
4824
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
4409
4825
|
}
|
|
4410
|
-
function
|
|
4826
|
+
function it(e, t) {
|
|
4411
4827
|
let n = Z(t);
|
|
4412
4828
|
if (!n.length) return !0;
|
|
4413
4829
|
let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
|
|
4414
|
-
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (
|
|
4830
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (Qe[e] || []).some((e) => i.endsWith(e)));
|
|
4415
4831
|
}
|
|
4416
|
-
function
|
|
4832
|
+
function at(e, t = {}) {
|
|
4417
4833
|
if (!e) return null;
|
|
4418
|
-
let n = t.accept === void 0 ?
|
|
4419
|
-
return
|
|
4834
|
+
let n = t.accept === void 0 ? Xe : t.accept, r = t.maxSizeMb || 5;
|
|
4835
|
+
return it(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${rt(n)} file.`;
|
|
4420
4836
|
}
|
|
4421
4837
|
//#endregion
|
|
4422
4838
|
//#region src/passwordRules.js
|
|
@@ -4427,15 +4843,15 @@ var Q = {
|
|
|
4427
4843
|
digit: !0,
|
|
4428
4844
|
special: !0,
|
|
4429
4845
|
uniqueChars: 0
|
|
4430
|
-
},
|
|
4431
|
-
function
|
|
4846
|
+
}, ot = "Password Requirements";
|
|
4847
|
+
function st(e) {
|
|
4432
4848
|
return e === !0 || e == null ? { ...Q } : {
|
|
4433
4849
|
...Q,
|
|
4434
4850
|
...e
|
|
4435
4851
|
};
|
|
4436
4852
|
}
|
|
4437
|
-
function
|
|
4438
|
-
let t =
|
|
4853
|
+
function ct(e) {
|
|
4854
|
+
let t = st(e), n = [];
|
|
4439
4855
|
if (t.minLength > 0 && n.push({
|
|
4440
4856
|
key: "length",
|
|
4441
4857
|
label: `At least ${t.minLength} characters long`,
|
|
@@ -4466,25 +4882,25 @@ function tt(e) {
|
|
|
4466
4882
|
}
|
|
4467
4883
|
return n;
|
|
4468
4884
|
}
|
|
4469
|
-
function
|
|
4885
|
+
function lt(e, t) {
|
|
4470
4886
|
let n = e == null ? "" : String(e);
|
|
4471
|
-
return
|
|
4887
|
+
return ct(t).map((e) => ({
|
|
4472
4888
|
key: e.key,
|
|
4473
4889
|
label: e.label,
|
|
4474
4890
|
met: e.test(n)
|
|
4475
4891
|
}));
|
|
4476
4892
|
}
|
|
4477
|
-
function
|
|
4478
|
-
return
|
|
4893
|
+
function ut(e, t) {
|
|
4894
|
+
return lt(e, t).every((e) => e.met);
|
|
4479
4895
|
}
|
|
4480
4896
|
//#endregion
|
|
4481
4897
|
//#region src/index.js
|
|
4482
4898
|
var $ = (e, t) => {
|
|
4483
4899
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
4484
4900
|
};
|
|
4485
|
-
function
|
|
4486
|
-
$("wui-select",
|
|
4901
|
+
function dt() {
|
|
4902
|
+
$("wui-select", Re), $("wui-phone", Le), $("wui-datepicker", ee), $("wui-date-range", te), $("wui-dock", ne), $("wui-feedback", oe), $("wui-slider", ze), $("wui-timepicker", We), $("wui-autocomplete", y), $("wui-multiselect", me), $("wui-taginput", Ve), $("wui-otp", Ce), $("wui-status-icon", r), $("wui-wizard-step", qe), $("wui-wizard", Ke);
|
|
4487
4903
|
}
|
|
4488
|
-
|
|
4904
|
+
dt();
|
|
4489
4905
|
//#endregion
|
|
4490
|
-
export {
|
|
4906
|
+
export { Je as COPY_FEEDBACK_MS, Xe as DEFAULT_IMAGE_ACCEPT, Ze as DEFAULT_MAX_SIZE_MB, Q as DEFAULT_PASSWORD_RULES, ot as DEFAULT_REQUIREMENTS_TITLE, n as STATUS_TONES, y as WuiAutocomplete, ee as WuiDatePicker, te as WuiDateRange, ne as WuiDock, oe as WuiFeedback, me as WuiMultiSelect, Ce as WuiOtp, Le as WuiPhone, Re as WuiSelect, ze as WuiSlider, r as WuiStatusIcon, Ve as WuiTagInput, We as WuiTimePicker, Ke as WuiWizard, qe as WuiWizardStep, rt as acceptLabel, ct as buildPasswordRules, Ye as copyTextToClipboard, dt as defineWeborityElements, lt as evaluatePassword, p as glyphSvg, tt as isImageFile, nt as isImageOnlyAccept, it as matchesAccept, ut as passwordSatisfies, at as validateFile };
|