@webority/ui-elements 0.11.0 → 0.11.2
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 +534 -88
- package/package.json +3 -3
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,507 @@ 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/ComodRivadavia",
|
|
3110
|
+
"America/Argentina/Cordoba",
|
|
3111
|
+
"America/Argentina/Jujuy",
|
|
3112
|
+
"America/Argentina/La_Rioja",
|
|
3113
|
+
"America/Argentina/Mendoza",
|
|
3114
|
+
"America/Argentina/Rio_Gallegos",
|
|
3115
|
+
"America/Argentina/Salta",
|
|
3116
|
+
"America/Argentina/San_Juan",
|
|
3117
|
+
"America/Argentina/San_Luis",
|
|
3118
|
+
"America/Argentina/Tucuman",
|
|
3119
|
+
"America/Argentina/Ushuaia",
|
|
3120
|
+
"America/Buenos_Aires",
|
|
3121
|
+
"America/Catamarca",
|
|
3122
|
+
"America/Cordoba",
|
|
3123
|
+
"America/Jujuy",
|
|
3124
|
+
"America/Mendoza",
|
|
3125
|
+
"America/Rosario"
|
|
3126
|
+
],
|
|
3127
|
+
AS: [
|
|
3128
|
+
"Pacific/Pago_Pago",
|
|
3129
|
+
"Pacific/Samoa",
|
|
3130
|
+
"US/Samoa"
|
|
3131
|
+
],
|
|
3132
|
+
AT: ["Europe/Vienna"],
|
|
3133
|
+
AU: [
|
|
3134
|
+
"Antarctica/Macquarie",
|
|
3135
|
+
"Australia/Adelaide",
|
|
3136
|
+
"Australia/Brisbane",
|
|
3137
|
+
"Australia/Broken_Hill",
|
|
3138
|
+
"Australia/Canberra",
|
|
3139
|
+
"Australia/Currie",
|
|
3140
|
+
"Australia/Darwin",
|
|
3141
|
+
"Australia/Eucla",
|
|
3142
|
+
"Australia/Hobart",
|
|
3143
|
+
"Australia/LHI",
|
|
3144
|
+
"Australia/Lindeman",
|
|
3145
|
+
"Australia/Lord_Howe",
|
|
3146
|
+
"Australia/Melbourne",
|
|
3147
|
+
"Australia/NSW",
|
|
3148
|
+
"Australia/North",
|
|
3149
|
+
"Australia/Perth",
|
|
3150
|
+
"Australia/Queensland",
|
|
3151
|
+
"Australia/South",
|
|
3152
|
+
"Australia/Sydney",
|
|
3153
|
+
"Australia/Tasmania",
|
|
3154
|
+
"Australia/Victoria",
|
|
3155
|
+
"Australia/West",
|
|
3156
|
+
"Australia/Yancowinna"
|
|
3157
|
+
],
|
|
3158
|
+
AW: ["America/Aruba"],
|
|
3159
|
+
AX: ["Europe/Mariehamn"],
|
|
3160
|
+
AZ: ["Asia/Baku"],
|
|
3161
|
+
BA: ["Europe/Sarajevo"],
|
|
3162
|
+
BB: ["America/Barbados"],
|
|
3163
|
+
BD: ["Asia/Dacca", "Asia/Dhaka"],
|
|
3164
|
+
BE: ["Europe/Brussels"],
|
|
3165
|
+
BF: ["Africa/Ouagadougou"],
|
|
3166
|
+
BG: ["Europe/Sofia"],
|
|
3167
|
+
BH: ["Asia/Bahrain"],
|
|
3168
|
+
BI: ["Africa/Bujumbura"],
|
|
3169
|
+
BJ: ["Africa/Porto-Novo"],
|
|
3170
|
+
BL: ["America/St_Barthelemy"],
|
|
3171
|
+
BM: ["Atlantic/Bermuda"],
|
|
3172
|
+
BN: ["Asia/Brunei"],
|
|
3173
|
+
BO: ["America/La_Paz"],
|
|
3174
|
+
BQ: ["America/Kralendijk"],
|
|
3175
|
+
BR: [
|
|
3176
|
+
"America/Araguaina",
|
|
3177
|
+
"America/Bahia",
|
|
3178
|
+
"America/Belem",
|
|
3179
|
+
"America/Boa_Vista",
|
|
3180
|
+
"America/Campo_Grande",
|
|
3181
|
+
"America/Cuiaba",
|
|
3182
|
+
"America/Eirunepe",
|
|
3183
|
+
"America/Fortaleza",
|
|
3184
|
+
"America/Maceio",
|
|
3185
|
+
"America/Manaus",
|
|
3186
|
+
"America/Noronha",
|
|
3187
|
+
"America/Porto_Acre",
|
|
3188
|
+
"America/Porto_Velho",
|
|
3189
|
+
"America/Recife",
|
|
3190
|
+
"America/Rio_Branco",
|
|
3191
|
+
"America/Santarem",
|
|
3192
|
+
"America/Sao_Paulo",
|
|
3193
|
+
"Brazil/DeNoronha",
|
|
3194
|
+
"Brazil/East",
|
|
3195
|
+
"Brazil/West"
|
|
3196
|
+
],
|
|
3197
|
+
BS: ["America/Nassau"],
|
|
3198
|
+
BT: ["Asia/Thimbu", "Asia/Thimphu"],
|
|
3199
|
+
BW: ["Africa/Gaborone"],
|
|
3200
|
+
BY: ["Europe/Minsk"],
|
|
3201
|
+
BZ: ["America/Belize"],
|
|
3202
|
+
CA: /* @__PURE__ */ "America/Atikokan.America/Blanc-Sablon.America/Cambridge_Bay.America/Coral_Harbour.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/Montreal.America/Nipigon.America/Pangnirtung.America/Rainy_River.America/Rankin_Inlet.America/Regina.America/Resolute.America/St_Johns.America/Swift_Current.America/Thunder_Bay.America/Toronto.America/Vancouver.America/Whitehorse.America/Winnipeg.America/Yellowknife.Canada/Atlantic.Canada/Central.Canada/Eastern.Canada/Mountain.Canada/Newfoundland.Canada/Pacific.Canada/Saskatchewan.Canada/Yukon".split("."),
|
|
3203
|
+
CC: ["Indian/Cocos"],
|
|
3204
|
+
CD: ["Africa/Kinshasa", "Africa/Lubumbashi"],
|
|
3205
|
+
CF: ["Africa/Bangui"],
|
|
3206
|
+
CG: ["Africa/Brazzaville"],
|
|
3207
|
+
CH: ["Europe/Zurich"],
|
|
3208
|
+
CI: ["Africa/Abidjan"],
|
|
3209
|
+
CK: ["Pacific/Rarotonga"],
|
|
3210
|
+
CL: [
|
|
3211
|
+
"America/Coyhaique",
|
|
3212
|
+
"America/Punta_Arenas",
|
|
3213
|
+
"America/Santiago",
|
|
3214
|
+
"Chile/Continental",
|
|
3215
|
+
"Chile/EasterIsland",
|
|
3216
|
+
"Pacific/Easter"
|
|
3217
|
+
],
|
|
3218
|
+
CM: ["Africa/Douala"],
|
|
3219
|
+
CN: [
|
|
3220
|
+
"Asia/Chongqing",
|
|
3221
|
+
"Asia/Harbin",
|
|
3222
|
+
"Asia/Kashgar",
|
|
3223
|
+
"Asia/Shanghai",
|
|
3224
|
+
"Asia/Urumqi"
|
|
3225
|
+
],
|
|
3226
|
+
CO: ["America/Bogota"],
|
|
3227
|
+
CR: ["America/Costa_Rica"],
|
|
3228
|
+
CU: ["America/Havana"],
|
|
3229
|
+
CV: ["Atlantic/Cape_Verde"],
|
|
3230
|
+
CW: ["America/Curacao"],
|
|
3231
|
+
CX: ["Indian/Christmas"],
|
|
3232
|
+
CY: [
|
|
3233
|
+
"Asia/Famagusta",
|
|
3234
|
+
"Asia/Nicosia",
|
|
3235
|
+
"Europe/Nicosia"
|
|
3236
|
+
],
|
|
3237
|
+
CZ: ["Europe/Prague"],
|
|
3238
|
+
DE: ["Europe/Berlin", "Europe/Busingen"],
|
|
3239
|
+
DJ: ["Africa/Djibouti"],
|
|
3240
|
+
DK: ["Europe/Copenhagen"],
|
|
3241
|
+
DM: ["America/Dominica"],
|
|
3242
|
+
DO: ["America/Santo_Domingo"],
|
|
3243
|
+
DZ: ["Africa/Algiers"],
|
|
3244
|
+
EC: ["America/Guayaquil", "Pacific/Galapagos"],
|
|
3245
|
+
EE: ["Europe/Tallinn"],
|
|
3246
|
+
EG: ["Africa/Cairo"],
|
|
3247
|
+
EH: ["Africa/El_Aaiun"],
|
|
3248
|
+
ER: ["Africa/Asmara", "Africa/Asmera"],
|
|
3249
|
+
ES: [
|
|
3250
|
+
"Africa/Ceuta",
|
|
3251
|
+
"Atlantic/Canary",
|
|
3252
|
+
"Europe/Madrid"
|
|
3253
|
+
],
|
|
3254
|
+
ET: ["Africa/Addis_Ababa"],
|
|
3255
|
+
FI: ["Europe/Helsinki"],
|
|
3256
|
+
FJ: ["Pacific/Fiji"],
|
|
3257
|
+
FK: ["Atlantic/Stanley"],
|
|
3258
|
+
FM: [
|
|
3259
|
+
"Pacific/Chuuk",
|
|
3260
|
+
"Pacific/Kosrae",
|
|
3261
|
+
"Pacific/Pohnpei",
|
|
3262
|
+
"Pacific/Ponape",
|
|
3263
|
+
"Pacific/Truk",
|
|
3264
|
+
"Pacific/Yap"
|
|
3265
|
+
],
|
|
3266
|
+
FO: ["Atlantic/Faeroe", "Atlantic/Faroe"],
|
|
3267
|
+
FR: ["Europe/Paris"],
|
|
3268
|
+
GA: ["Africa/Libreville"],
|
|
3269
|
+
GB: ["Europe/Belfast", "Europe/London"],
|
|
3270
|
+
GD: ["America/Grenada"],
|
|
3271
|
+
GE: ["Asia/Tbilisi"],
|
|
3272
|
+
GF: ["America/Cayenne"],
|
|
3273
|
+
GG: ["Europe/Guernsey"],
|
|
3274
|
+
GH: ["Africa/Accra"],
|
|
3275
|
+
GI: ["Europe/Gibraltar"],
|
|
3276
|
+
GL: [
|
|
3277
|
+
"America/Danmarkshavn",
|
|
3278
|
+
"America/Godthab",
|
|
3279
|
+
"America/Nuuk",
|
|
3280
|
+
"America/Scoresbysund",
|
|
3281
|
+
"America/Thule"
|
|
3282
|
+
],
|
|
3283
|
+
GM: ["Africa/Banjul"],
|
|
3284
|
+
GN: ["Africa/Conakry"],
|
|
3285
|
+
GP: ["America/Guadeloupe"],
|
|
3286
|
+
GQ: ["Africa/Malabo"],
|
|
3287
|
+
GR: ["Europe/Athens"],
|
|
3288
|
+
GT: ["America/Guatemala"],
|
|
3289
|
+
GU: ["Pacific/Guam"],
|
|
3290
|
+
GW: ["Africa/Bissau"],
|
|
3291
|
+
GY: ["America/Guyana"],
|
|
3292
|
+
HK: ["Asia/Hong_Kong"],
|
|
3293
|
+
HN: ["America/Tegucigalpa"],
|
|
3294
|
+
HR: ["Europe/Zagreb"],
|
|
3295
|
+
HT: ["America/Port-au-Prince"],
|
|
3296
|
+
HU: ["Europe/Budapest"],
|
|
3297
|
+
ID: [
|
|
3298
|
+
"Asia/Jakarta",
|
|
3299
|
+
"Asia/Jayapura",
|
|
3300
|
+
"Asia/Makassar",
|
|
3301
|
+
"Asia/Pontianak",
|
|
3302
|
+
"Asia/Ujung_Pandang"
|
|
3303
|
+
],
|
|
3304
|
+
IE: ["Europe/Dublin"],
|
|
3305
|
+
IL: ["Asia/Jerusalem", "Asia/Tel_Aviv"],
|
|
3306
|
+
IM: ["Europe/Isle_of_Man"],
|
|
3307
|
+
IN: ["Asia/Calcutta", "Asia/Kolkata"],
|
|
3308
|
+
IO: ["Indian/Chagos"],
|
|
3309
|
+
IQ: ["Asia/Baghdad"],
|
|
3310
|
+
IR: ["Asia/Tehran"],
|
|
3311
|
+
IS: ["Atlantic/Reykjavik"],
|
|
3312
|
+
IT: ["Europe/Rome"],
|
|
3313
|
+
JE: ["Europe/Jersey"],
|
|
3314
|
+
JM: ["America/Jamaica"],
|
|
3315
|
+
JO: ["Asia/Amman"],
|
|
3316
|
+
JP: ["Asia/Tokyo"],
|
|
3317
|
+
KE: ["Africa/Nairobi"],
|
|
3318
|
+
KG: ["Asia/Bishkek"],
|
|
3319
|
+
KH: ["Asia/Phnom_Penh"],
|
|
3320
|
+
KI: [
|
|
3321
|
+
"Pacific/Enderbury",
|
|
3322
|
+
"Pacific/Kanton",
|
|
3323
|
+
"Pacific/Kiritimati",
|
|
3324
|
+
"Pacific/Tarawa"
|
|
3325
|
+
],
|
|
3326
|
+
KM: ["Indian/Comoro"],
|
|
3327
|
+
KN: ["America/St_Kitts"],
|
|
3328
|
+
KP: ["Asia/Pyongyang"],
|
|
3329
|
+
KR: ["Asia/Seoul"],
|
|
3330
|
+
KW: ["Asia/Kuwait"],
|
|
3331
|
+
KY: ["America/Cayman"],
|
|
3332
|
+
KZ: [
|
|
3333
|
+
"Asia/Almaty",
|
|
3334
|
+
"Asia/Aqtau",
|
|
3335
|
+
"Asia/Aqtobe",
|
|
3336
|
+
"Asia/Atyrau",
|
|
3337
|
+
"Asia/Oral",
|
|
3338
|
+
"Asia/Qostanay",
|
|
3339
|
+
"Asia/Qyzylorda"
|
|
3340
|
+
],
|
|
3341
|
+
LA: ["Asia/Vientiane"],
|
|
3342
|
+
LB: ["Asia/Beirut"],
|
|
3343
|
+
LC: ["America/St_Lucia"],
|
|
3344
|
+
LI: ["Europe/Vaduz"],
|
|
3345
|
+
LK: ["Asia/Colombo"],
|
|
3346
|
+
LR: ["Africa/Monrovia"],
|
|
3347
|
+
LS: ["Africa/Maseru"],
|
|
3348
|
+
LT: ["Europe/Vilnius"],
|
|
3349
|
+
LU: ["Europe/Luxembourg"],
|
|
3350
|
+
LV: ["Europe/Riga"],
|
|
3351
|
+
LY: ["Africa/Tripoli"],
|
|
3352
|
+
MA: ["Africa/Casablanca"],
|
|
3353
|
+
MC: ["Europe/Monaco"],
|
|
3354
|
+
MD: ["Europe/Chisinau", "Europe/Tiraspol"],
|
|
3355
|
+
ME: ["Europe/Podgorica"],
|
|
3356
|
+
MF: ["America/Marigot"],
|
|
3357
|
+
MG: ["Indian/Antananarivo"],
|
|
3358
|
+
MH: ["Pacific/Kwajalein", "Pacific/Majuro"],
|
|
3359
|
+
MK: ["Europe/Skopje"],
|
|
3360
|
+
ML: ["Africa/Bamako", "Africa/Timbuktu"],
|
|
3361
|
+
MM: ["Asia/Rangoon", "Asia/Yangon"],
|
|
3362
|
+
MN: [
|
|
3363
|
+
"Asia/Choibalsan",
|
|
3364
|
+
"Asia/Hovd",
|
|
3365
|
+
"Asia/Ulaanbaatar",
|
|
3366
|
+
"Asia/Ulan_Bator"
|
|
3367
|
+
],
|
|
3368
|
+
MO: ["Asia/Macao", "Asia/Macau"],
|
|
3369
|
+
MP: ["Pacific/Saipan"],
|
|
3370
|
+
MQ: ["America/Martinique"],
|
|
3371
|
+
MR: ["Africa/Nouakchott"],
|
|
3372
|
+
MS: ["America/Montserrat"],
|
|
3373
|
+
MT: ["Europe/Malta"],
|
|
3374
|
+
MU: ["Indian/Mauritius"],
|
|
3375
|
+
MV: ["Indian/Maldives"],
|
|
3376
|
+
MW: ["Africa/Blantyre"],
|
|
3377
|
+
MX: [
|
|
3378
|
+
"America/Bahia_Banderas",
|
|
3379
|
+
"America/Cancun",
|
|
3380
|
+
"America/Chihuahua",
|
|
3381
|
+
"America/Ciudad_Juarez",
|
|
3382
|
+
"America/Ensenada",
|
|
3383
|
+
"America/Hermosillo",
|
|
3384
|
+
"America/Matamoros",
|
|
3385
|
+
"America/Mazatlan",
|
|
3386
|
+
"America/Merida",
|
|
3387
|
+
"America/Mexico_City",
|
|
3388
|
+
"America/Monterrey",
|
|
3389
|
+
"America/Ojinaga",
|
|
3390
|
+
"America/Santa_Isabel",
|
|
3391
|
+
"America/Tijuana",
|
|
3392
|
+
"Mexico/BajaNorte",
|
|
3393
|
+
"Mexico/BajaSur",
|
|
3394
|
+
"Mexico/General"
|
|
3395
|
+
],
|
|
3396
|
+
MY: ["Asia/Kuala_Lumpur", "Asia/Kuching"],
|
|
3397
|
+
MZ: ["Africa/Maputo"],
|
|
3398
|
+
NA: ["Africa/Windhoek"],
|
|
3399
|
+
NC: ["Pacific/Noumea"],
|
|
3400
|
+
NE: ["Africa/Niamey"],
|
|
3401
|
+
NF: ["Pacific/Norfolk"],
|
|
3402
|
+
NG: ["Africa/Lagos"],
|
|
3403
|
+
NI: ["America/Managua"],
|
|
3404
|
+
NL: ["Europe/Amsterdam"],
|
|
3405
|
+
NO: ["Europe/Oslo"],
|
|
3406
|
+
NP: ["Asia/Kathmandu", "Asia/Katmandu"],
|
|
3407
|
+
NR: ["Pacific/Nauru"],
|
|
3408
|
+
NU: ["Pacific/Niue"],
|
|
3409
|
+
NZ: ["Pacific/Auckland", "Pacific/Chatham"],
|
|
3410
|
+
OM: ["Asia/Muscat"],
|
|
3411
|
+
PA: ["America/Panama"],
|
|
3412
|
+
PE: ["America/Lima"],
|
|
3413
|
+
PF: [
|
|
3414
|
+
"Pacific/Gambier",
|
|
3415
|
+
"Pacific/Marquesas",
|
|
3416
|
+
"Pacific/Tahiti"
|
|
3417
|
+
],
|
|
3418
|
+
PG: ["Pacific/Bougainville", "Pacific/Port_Moresby"],
|
|
3419
|
+
PH: ["Asia/Manila"],
|
|
3420
|
+
PK: ["Asia/Karachi"],
|
|
3421
|
+
PL: ["Europe/Warsaw"],
|
|
3422
|
+
PM: ["America/Miquelon"],
|
|
3423
|
+
PR: ["America/Puerto_Rico"],
|
|
3424
|
+
PS: ["Asia/Gaza", "Asia/Hebron"],
|
|
3425
|
+
PT: [
|
|
3426
|
+
"Atlantic/Azores",
|
|
3427
|
+
"Atlantic/Madeira",
|
|
3428
|
+
"Europe/Lisbon"
|
|
3429
|
+
],
|
|
3430
|
+
PW: ["Pacific/Palau"],
|
|
3431
|
+
PY: ["America/Asuncion"],
|
|
3432
|
+
QA: ["Asia/Qatar"],
|
|
3433
|
+
RE: ["Indian/Reunion"],
|
|
3434
|
+
RO: ["Europe/Bucharest"],
|
|
3435
|
+
RS: ["Europe/Belgrade"],
|
|
3436
|
+
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("."),
|
|
3437
|
+
RW: ["Africa/Kigali"],
|
|
3438
|
+
SA: ["Asia/Riyadh"],
|
|
3439
|
+
SB: ["Pacific/Guadalcanal"],
|
|
3440
|
+
SC: ["Indian/Mahe"],
|
|
3441
|
+
SD: ["Africa/Khartoum"],
|
|
3442
|
+
SE: ["Europe/Stockholm"],
|
|
3443
|
+
SG: ["Asia/Singapore"],
|
|
3444
|
+
SH: ["Atlantic/St_Helena"],
|
|
3445
|
+
SI: ["Europe/Ljubljana"],
|
|
3446
|
+
SJ: ["Arctic/Longyearbyen", "Atlantic/Jan_Mayen"],
|
|
3447
|
+
SK: ["Europe/Bratislava"],
|
|
3448
|
+
SL: ["Africa/Freetown"],
|
|
3449
|
+
SM: ["Europe/San_Marino"],
|
|
3450
|
+
SN: ["Africa/Dakar"],
|
|
3451
|
+
SO: ["Africa/Mogadishu"],
|
|
3452
|
+
SR: ["America/Paramaribo"],
|
|
3453
|
+
SS: ["Africa/Juba"],
|
|
3454
|
+
ST: ["Africa/Sao_Tome"],
|
|
3455
|
+
SV: ["America/El_Salvador"],
|
|
3456
|
+
SX: ["America/Lower_Princes"],
|
|
3457
|
+
SY: ["Asia/Damascus"],
|
|
3458
|
+
SZ: ["Africa/Mbabane"],
|
|
3459
|
+
TC: ["America/Grand_Turk"],
|
|
3460
|
+
TD: ["Africa/Ndjamena"],
|
|
3461
|
+
TG: ["Africa/Lome"],
|
|
3462
|
+
TH: ["Asia/Bangkok"],
|
|
3463
|
+
TJ: ["Asia/Dushanbe"],
|
|
3464
|
+
TK: ["Pacific/Fakaofo"],
|
|
3465
|
+
TL: ["Asia/Dili"],
|
|
3466
|
+
TM: ["Asia/Ashgabat", "Asia/Ashkhabad"],
|
|
3467
|
+
TN: ["Africa/Tunis"],
|
|
3468
|
+
TO: ["Pacific/Tongatapu"],
|
|
3469
|
+
TR: ["Asia/Istanbul", "Europe/Istanbul"],
|
|
3470
|
+
TT: ["America/Port_of_Spain"],
|
|
3471
|
+
TV: ["Pacific/Funafuti"],
|
|
3472
|
+
TW: ["Asia/Taipei"],
|
|
3473
|
+
TZ: ["Africa/Dar_es_Salaam"],
|
|
3474
|
+
UA: [
|
|
3475
|
+
"Europe/Kiev",
|
|
3476
|
+
"Europe/Kyiv",
|
|
3477
|
+
"Europe/Simferopol",
|
|
3478
|
+
"Europe/Uzhgorod",
|
|
3479
|
+
"Europe/Zaporozhye"
|
|
3480
|
+
],
|
|
3481
|
+
UG: ["Africa/Kampala"],
|
|
3482
|
+
US: /* @__PURE__ */ "America/Adak.America/Anchorage.America/Atka.America/Boise.America/Chicago.America/Denver.America/Detroit.America/Fort_Wayne.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/Shiprock.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("."),
|
|
3483
|
+
UY: ["America/Montevideo"],
|
|
3484
|
+
UZ: ["Asia/Samarkand", "Asia/Tashkent"],
|
|
3485
|
+
VA: ["Europe/Vatican"],
|
|
3486
|
+
VC: ["America/St_Vincent"],
|
|
3487
|
+
VE: ["America/Caracas"],
|
|
3488
|
+
VG: ["America/Tortola"],
|
|
3489
|
+
VI: ["America/St_Thomas", "America/Virgin"],
|
|
3490
|
+
VN: ["Asia/Ho_Chi_Minh", "Asia/Saigon"],
|
|
3491
|
+
VU: ["Pacific/Efate"],
|
|
3492
|
+
WF: ["Pacific/Wallis"],
|
|
3493
|
+
WS: ["Pacific/Apia"],
|
|
3494
|
+
YE: ["Asia/Aden"],
|
|
3495
|
+
YT: ["Indian/Mayotte"],
|
|
3496
|
+
ZA: ["Africa/Johannesburg"],
|
|
3497
|
+
ZM: ["Africa/Lusaka"],
|
|
3498
|
+
ZW: ["Africa/Harare"]
|
|
3499
|
+
}, Te = new Set(L.map(([e]) => e)), Ee = /* @__PURE__ */ new Map();
|
|
3500
|
+
for (let [e, t] of Object.entries(we)) for (let n of t) Ee.set(n, e);
|
|
3501
|
+
function De(e) {
|
|
3502
|
+
let t = Ee.get(e);
|
|
3503
|
+
return t && Te.has(t) ? t : null;
|
|
3504
|
+
}
|
|
3505
|
+
function Oe(e) {
|
|
3506
|
+
if (!e) return null;
|
|
3507
|
+
let t;
|
|
3508
|
+
try {
|
|
3509
|
+
t = new Intl.Locale(e).region;
|
|
3510
|
+
} catch {
|
|
3511
|
+
return null;
|
|
3512
|
+
}
|
|
3513
|
+
return t && Te.has(t) ? t : null;
|
|
3514
|
+
}
|
|
3515
|
+
function ke() {
|
|
3516
|
+
let e;
|
|
3517
|
+
try {
|
|
3518
|
+
e = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3519
|
+
} catch {
|
|
3520
|
+
e = void 0;
|
|
3521
|
+
}
|
|
3522
|
+
let t = typeof navigator > "u" ? void 0 : navigator.language;
|
|
3523
|
+
return De(e) || Oe(t) || "IN";
|
|
3524
|
+
}
|
|
3525
|
+
//#endregion
|
|
3526
|
+
//#region src/WuiPhone.js
|
|
3527
|
+
var z = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, B = null, Ae = null;
|
|
3528
|
+
function je() {
|
|
3529
|
+
return B ? Promise.resolve(B) : (Ae ||= Promise.all([import("./max-BDKx469G.js"), import("./examples.mobile.json-BMXTGiGC.js")]).then(([e, t]) => (B = {
|
|
3100
3530
|
AsYouType: e.AsYouType,
|
|
3101
3531
|
getExampleNumber: e.getExampleNumber,
|
|
3102
3532
|
isValidPhoneNumber: e.isValidPhoneNumber,
|
|
3103
3533
|
parsePhoneNumber: e.parsePhoneNumber,
|
|
3104
3534
|
examples: t.default || t
|
|
3105
|
-
},
|
|
3535
|
+
}, B)).catch(() => null), Ae);
|
|
3536
|
+
}
|
|
3537
|
+
function Me(e, t) {
|
|
3538
|
+
let n = `+${R(e)}`;
|
|
3539
|
+
return t?.startsWith(n) ? t.slice(n.length).trimStart() : null;
|
|
3106
3540
|
}
|
|
3107
|
-
function
|
|
3108
|
-
if (!
|
|
3541
|
+
function V(e, t) {
|
|
3542
|
+
if (!B || !t) return t;
|
|
3109
3543
|
try {
|
|
3110
|
-
return new
|
|
3544
|
+
return Me(e, new B.AsYouType(e).input(`+${R(e)}${t}`)) || t;
|
|
3111
3545
|
} catch {
|
|
3112
3546
|
return t;
|
|
3113
3547
|
}
|
|
3114
3548
|
}
|
|
3115
|
-
function
|
|
3549
|
+
function Ne(e, t) {
|
|
3116
3550
|
if (t <= 0) return 0;
|
|
3117
3551
|
let n = 0;
|
|
3118
3552
|
for (let r = 0; r < e.length; r++) if (/[0-9]/.test(e[r]) && (n += 1, n === t)) return r + 1;
|
|
3119
3553
|
return e.length;
|
|
3120
3554
|
}
|
|
3121
|
-
function
|
|
3122
|
-
if (!
|
|
3555
|
+
function H(e) {
|
|
3556
|
+
if (!B) return null;
|
|
3123
3557
|
try {
|
|
3124
|
-
return
|
|
3558
|
+
return Me(e, B.getExampleNumber(e, B.examples)?.formatInternational()) || null;
|
|
3125
3559
|
} catch {
|
|
3126
3560
|
return null;
|
|
3127
3561
|
}
|
|
3128
3562
|
}
|
|
3129
|
-
function
|
|
3130
|
-
if (!
|
|
3563
|
+
function Pe(e) {
|
|
3564
|
+
if (!B || !e) return null;
|
|
3131
3565
|
try {
|
|
3132
|
-
if (!
|
|
3133
|
-
let t =
|
|
3566
|
+
if (!B.isValidPhoneNumber(e)) return !1;
|
|
3567
|
+
let t = B.parsePhoneNumber(e)?.getType?.();
|
|
3134
3568
|
return t === void 0 || t === "MOBILE" || t === "FIXED_LINE_OR_MOBILE";
|
|
3135
3569
|
} catch {
|
|
3136
3570
|
return null;
|
|
3137
3571
|
}
|
|
3138
3572
|
}
|
|
3139
|
-
function
|
|
3140
|
-
if (!
|
|
3573
|
+
function Fe(e) {
|
|
3574
|
+
if (!B) return null;
|
|
3141
3575
|
try {
|
|
3142
|
-
let t =
|
|
3576
|
+
let t = B.getExampleNumber(e, B.examples);
|
|
3143
3577
|
return t?.nationalNumber ? t.nationalNumber.length : null;
|
|
3144
3578
|
} catch {
|
|
3145
3579
|
return null;
|
|
3146
3580
|
}
|
|
3147
3581
|
}
|
|
3148
|
-
function
|
|
3149
|
-
if (!z || !e?.trim().startsWith("+")) return null;
|
|
3582
|
+
function Ie(e, t, n) {
|
|
3150
3583
|
try {
|
|
3151
|
-
let
|
|
3584
|
+
let r = B.parsePhoneNumber(t, e), i = r?.nationalNumber;
|
|
3585
|
+
return !i || r.country !== e || i.length > n || !t.endsWith(i) ? null : i;
|
|
3586
|
+
} catch {
|
|
3587
|
+
return null;
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
function Le(e) {
|
|
3591
|
+
if (!B || !e?.trim().startsWith("+")) return null;
|
|
3592
|
+
try {
|
|
3593
|
+
let t = new B.AsYouType();
|
|
3152
3594
|
t.input(e.trim());
|
|
3153
3595
|
let n = t.getCountry();
|
|
3154
3596
|
return n ? {
|
|
@@ -3159,7 +3601,7 @@ function H(e) {
|
|
|
3159
3601
|
return null;
|
|
3160
3602
|
}
|
|
3161
3603
|
}
|
|
3162
|
-
var
|
|
3604
|
+
var Re = class extends e {
|
|
3163
3605
|
static formAssociated = !0;
|
|
3164
3606
|
static get observedAttributes() {
|
|
3165
3607
|
return [
|
|
@@ -3179,7 +3621,7 @@ var Ae = class extends e {
|
|
|
3179
3621
|
} catch {
|
|
3180
3622
|
this._internals = null;
|
|
3181
3623
|
}
|
|
3182
|
-
this._country =
|
|
3624
|
+
this._defaultCountry = ke(), this._country = this._defaultCountry, this._national = "", this._active = -1, this._committedValue = "";
|
|
3183
3625
|
}
|
|
3184
3626
|
connectedCallback() {
|
|
3185
3627
|
if (!this._rendered) {
|
|
@@ -3199,20 +3641,20 @@ var Ae = class extends e {
|
|
|
3199
3641
|
t && (n == null ? t.removeAttribute(e) : t.setAttribute(e, n));
|
|
3200
3642
|
return;
|
|
3201
3643
|
}
|
|
3202
|
-
e === "country" && (this._country = n ||
|
|
3644
|
+
e === "country" && (this._country = n || this._defaultCountry, this._suppressCountryRender) || this.render();
|
|
3203
3645
|
}
|
|
3204
3646
|
}
|
|
3205
3647
|
formResetCallback() {
|
|
3206
3648
|
this.value = this._defaultValue || "";
|
|
3207
3649
|
}
|
|
3208
3650
|
get value() {
|
|
3209
|
-
return this._national ? `+${
|
|
3651
|
+
return this._national ? `+${R(this._country)}${this._national}` : "";
|
|
3210
3652
|
}
|
|
3211
3653
|
set value(e) {
|
|
3212
|
-
let t = String(e ?? "").trim(), n =
|
|
3654
|
+
let t = String(e ?? "").trim(), n = Le(t);
|
|
3213
3655
|
if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
|
|
3214
3656
|
else if (t.startsWith("+")) {
|
|
3215
|
-
let e = t.replace(/[^0-9]/g, ""), n = String(
|
|
3657
|
+
let e = t.replace(/[^0-9]/g, ""), n = String(R(this._country));
|
|
3216
3658
|
n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
|
|
3217
3659
|
} else this._national = t.replace(/[^0-9]/g, "");
|
|
3218
3660
|
n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
|
|
@@ -3228,25 +3670,25 @@ var Ae = class extends e {
|
|
|
3228
3670
|
}
|
|
3229
3671
|
render() {
|
|
3230
3672
|
this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
|
|
3231
|
-
let e = this.getAttribute("placeholder") ||
|
|
3673
|
+
let e = this.getAttribute("placeholder") || H(this._country) || "Enter phone number";
|
|
3232
3674
|
this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
|
|
3233
3675
|
let t = `${this.id}-listbox`;
|
|
3234
3676
|
this._listboxId = t;
|
|
3235
|
-
let n =
|
|
3677
|
+
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
3678
|
this.innerHTML = `
|
|
3237
3679
|
<div class="phone-input-wrap">
|
|
3238
3680
|
<div class="phone-country-adornment">
|
|
3239
3681
|
<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="${
|
|
3682
|
+
<span class="${z(this._country)}" data-flag aria-hidden="true"></span>
|
|
3241
3683
|
${p("chevron-down", { className: "phone-chevron" })}
|
|
3242
|
-
<span class="phone-dial" data-dial>+${
|
|
3684
|
+
<span class="phone-dial" data-dial>+${R(this._country)}</span>
|
|
3243
3685
|
</button>
|
|
3244
3686
|
<div class="country-dropdown-menu" role="listbox" id="${U(t)}" tabindex="-1" hidden>
|
|
3245
3687
|
<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
3688
|
<div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
|
|
3247
3689
|
</div>
|
|
3248
3690
|
</div>
|
|
3249
|
-
<input type="tel" class="input" placeholder="${U(e)}" value="${U(
|
|
3691
|
+
<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
3692
|
</div>
|
|
3251
3693
|
<div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, d(this, this.value), this._wire();
|
|
3252
3694
|
}
|
|
@@ -3277,12 +3719,12 @@ var Ae = class extends e {
|
|
|
3277
3719
|
}
|
|
3278
3720
|
a && (a.hidden = n > 0);
|
|
3279
3721
|
}, v = (e) => {
|
|
3280
|
-
this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), u && (u.className =
|
|
3722
|
+
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
3723
|
for (let t of this._itemEls()) {
|
|
3282
3724
|
let n = t.dataset.iso === e;
|
|
3283
3725
|
t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
|
|
3284
3726
|
}
|
|
3285
|
-
!this.getAttribute("placeholder") && o && (o.placeholder =
|
|
3727
|
+
!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
3728
|
}, y = (t) => {
|
|
3287
3729
|
let n = this._visibleItems();
|
|
3288
3730
|
if (t.key === "ArrowDown") {
|
|
@@ -3316,7 +3758,7 @@ var Ae = class extends e {
|
|
|
3316
3758
|
let b = this.querySelector("[data-phone-error]"), x = (e) => {
|
|
3317
3759
|
if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), b) {
|
|
3318
3760
|
if (e) {
|
|
3319
|
-
let e =
|
|
3761
|
+
let e = H(this._country);
|
|
3320
3762
|
b.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
|
|
3321
3763
|
}
|
|
3322
3764
|
b.hidden = !e;
|
|
@@ -3324,20 +3766,24 @@ var Ae = class extends e {
|
|
|
3324
3766
|
};
|
|
3325
3767
|
o.addEventListener("input", (e) => {
|
|
3326
3768
|
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 =
|
|
3328
|
-
i && r.length > i
|
|
3329
|
-
|
|
3769
|
+
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);
|
|
3770
|
+
if (i && r.length > i) {
|
|
3771
|
+
let e = Ie(this._country, r, i);
|
|
3772
|
+
e ? (n = Math.max(0, n - (r.length - e.length)), r = e) : r = r.slice(0, i);
|
|
3773
|
+
}
|
|
3774
|
+
this._national = r;
|
|
3775
|
+
let a = V(this._country, this._national);
|
|
3330
3776
|
if (o.value !== a) {
|
|
3331
3777
|
o.value = a;
|
|
3332
|
-
let e =
|
|
3778
|
+
let e = Ne(a, Math.min(n, r.length));
|
|
3333
3779
|
o.setSelectionRange(e, e);
|
|
3334
3780
|
}
|
|
3335
|
-
this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national ||
|
|
3781
|
+
this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || Pe(this.value) === !0) && x(!1);
|
|
3336
3782
|
}), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
|
|
3337
|
-
x(this._national.length > 0 &&
|
|
3783
|
+
x(this._national.length > 0 && Pe(this.value) === !1), this.value !== this._committedValue && this._emitChange();
|
|
3338
3784
|
}), 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 =
|
|
3785
|
+
let t = Le(e.clipboardData?.getData("text"));
|
|
3786
|
+
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
3787
|
}), this._bindGlobal = () => {
|
|
3342
3788
|
this._teardownGlobals?.(), this._onDocClick = (e) => {
|
|
3343
3789
|
f() && !this.contains(e.target) && g();
|
|
@@ -3346,9 +3792,9 @@ var Ae = class extends e {
|
|
|
3346
3792
|
});
|
|
3347
3793
|
}, this._teardownGlobals = () => {
|
|
3348
3794
|
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 =
|
|
3795
|
+
}, this._bindGlobal(), je().then((e) => {
|
|
3796
|
+
if (!(!e || !o.isConnected) && (this._national && (o.value = V(this._country, this._national)), !this.getAttribute("placeholder"))) {
|
|
3797
|
+
let e = H(this._country);
|
|
3352
3798
|
e && (o.placeholder = e);
|
|
3353
3799
|
}
|
|
3354
3800
|
}), this._syncMirror();
|
|
@@ -3359,7 +3805,7 @@ var Ae = class extends e {
|
|
|
3359
3805
|
disconnectedCallback() {
|
|
3360
3806
|
this._teardown();
|
|
3361
3807
|
}
|
|
3362
|
-
}, U = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"),
|
|
3808
|
+
}, U = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), ze = class extends e {
|
|
3363
3809
|
static formAssociated = !0;
|
|
3364
3810
|
static get observedAttributes() {
|
|
3365
3811
|
return [
|
|
@@ -3565,7 +4011,7 @@ var Ae = class extends e {
|
|
|
3565
4011
|
disconnectedCallback() {
|
|
3566
4012
|
this._teardown();
|
|
3567
4013
|
}
|
|
3568
|
-
}, W = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"),
|
|
4014
|
+
}, W = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), Be = class extends e {
|
|
3569
4015
|
static formAssociated = !0;
|
|
3570
4016
|
static get observedAttributes() {
|
|
3571
4017
|
return [
|
|
@@ -3707,7 +4153,7 @@ var Ae = class extends e {
|
|
|
3707
4153
|
aria-valuenow="${this._value}"
|
|
3708
4154
|
aria-valuetext="${this._formatValue(this._value)}"
|
|
3709
4155
|
${a ? "disabled" : ""}
|
|
3710
|
-
aria-label="${
|
|
4156
|
+
aria-label="${Ve(this.getAttribute("aria-label") || "Value")}"
|
|
3711
4157
|
></button>
|
|
3712
4158
|
`}
|
|
3713
4159
|
${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 +4256,7 @@ var Ae = class extends e {
|
|
|
3810
4256
|
}, G = (e, t) => {
|
|
3811
4257
|
let n = Number.parseFloat(e);
|
|
3812
4258
|
return Number.isFinite(n) ? n : t;
|
|
3813
|
-
},
|
|
4259
|
+
}, Ve = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), He = class extends e {
|
|
3814
4260
|
static formAssociated = !0;
|
|
3815
4261
|
_accessibleName() {
|
|
3816
4262
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
|
|
@@ -3895,7 +4341,7 @@ var Ae = class extends e {
|
|
|
3895
4341
|
e.innerHTML = "";
|
|
3896
4342
|
return;
|
|
3897
4343
|
}
|
|
3898
|
-
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${
|
|
4344
|
+
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${Ue(e)}</span><button type="button" class="chip-remove" data-remove="${K(e)}" aria-label="Remove ${K(e)}">${p("x")}</button></span>`).join("");
|
|
3899
4345
|
}
|
|
3900
4346
|
}
|
|
3901
4347
|
_wire() {
|
|
@@ -3964,7 +4410,7 @@ var Ae = class extends e {
|
|
|
3964
4410
|
disconnectedCallback() {
|
|
3965
4411
|
this._teardown();
|
|
3966
4412
|
}
|
|
3967
|
-
},
|
|
4413
|
+
}, Ue = (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"), We = (e, t) => `${q(e)}:${q(t)}`, J = (e) => {
|
|
3968
4414
|
let t = /^(\d{2}):(\d{2})$/.exec(e || "");
|
|
3969
4415
|
return t ? {
|
|
3970
4416
|
h: +t[1],
|
|
@@ -3972,10 +4418,10 @@ var Ae = class extends e {
|
|
|
3972
4418
|
} : null;
|
|
3973
4419
|
}, Y = (e, t = "24") => {
|
|
3974
4420
|
if (!e) return "";
|
|
3975
|
-
if (t === "24") return
|
|
4421
|
+
if (t === "24") return We(e.h, e.m);
|
|
3976
4422
|
let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
|
|
3977
4423
|
return `${n}:${q(e.m)} ${r}`;
|
|
3978
|
-
},
|
|
4424
|
+
}, Ge = class extends e {
|
|
3979
4425
|
static formAssociated = !0;
|
|
3980
4426
|
static get observedAttributes() {
|
|
3981
4427
|
return [
|
|
@@ -4060,7 +4506,7 @@ var Ae = class extends e {
|
|
|
4060
4506
|
if (!e) return;
|
|
4061
4507
|
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = J(this._value), i = this._focus, a = "";
|
|
4062
4508
|
for (let e = 0; e < n.length; e++) {
|
|
4063
|
-
let o = n[e], s =
|
|
4509
|
+
let o = n[e], s = We(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
|
|
4064
4510
|
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
4511
|
}
|
|
4066
4512
|
e.innerHTML = a, this._focusActive();
|
|
@@ -4159,7 +4605,7 @@ var Ae = class extends e {
|
|
|
4159
4605
|
disconnectedCallback() {
|
|
4160
4606
|
this._teardown();
|
|
4161
4607
|
}
|
|
4162
|
-
},
|
|
4608
|
+
}, Ke = "wui-wizard-step", qe = class extends e {
|
|
4163
4609
|
static get observedAttributes() {
|
|
4164
4610
|
return [
|
|
4165
4611
|
"active",
|
|
@@ -4193,7 +4639,7 @@ var Ae = class extends e {
|
|
|
4193
4639
|
this._beforeNext = typeof e == "function" ? e : null;
|
|
4194
4640
|
}
|
|
4195
4641
|
get _steps() {
|
|
4196
|
-
return [...this.querySelectorAll(`:scope > ${
|
|
4642
|
+
return [...this.querySelectorAll(`:scope > ${Ke}`)];
|
|
4197
4643
|
}
|
|
4198
4644
|
refresh() {
|
|
4199
4645
|
this._rendered && this._renderChrome();
|
|
@@ -4326,7 +4772,7 @@ var Ae = class extends e {
|
|
|
4326
4772
|
_reflectActive(e) {
|
|
4327
4773
|
this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
|
|
4328
4774
|
}
|
|
4329
|
-
}, X = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
4775
|
+
}, X = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Je = class extends e {
|
|
4330
4776
|
static get observedAttributes() {
|
|
4331
4777
|
return [
|
|
4332
4778
|
"label",
|
|
@@ -4340,8 +4786,8 @@ var Ae = class extends e {
|
|
|
4340
4786
|
let e = this.closest("wui-wizard");
|
|
4341
4787
|
e && typeof e.refresh == "function" && e.refresh();
|
|
4342
4788
|
}
|
|
4343
|
-
},
|
|
4344
|
-
async function
|
|
4789
|
+
}, Ye = 2e3;
|
|
4790
|
+
async function Xe(e) {
|
|
4345
4791
|
try {
|
|
4346
4792
|
if (navigator.clipboard?.writeText) return await navigator.clipboard.writeText(e), !0;
|
|
4347
4793
|
} catch {}
|
|
@@ -4356,14 +4802,14 @@ async function He(e) {
|
|
|
4356
4802
|
}
|
|
4357
4803
|
//#endregion
|
|
4358
4804
|
//#region src/fileValidation.js
|
|
4359
|
-
var
|
|
4805
|
+
var Ze = "image/png,image/jpeg,image/webp", Qe = 5, $e = {
|
|
4360
4806
|
"image/png": [".png"],
|
|
4361
4807
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
4362
4808
|
"image/webp": [".webp"],
|
|
4363
4809
|
"image/gif": [".gif"],
|
|
4364
4810
|
"image/svg+xml": [".svg"],
|
|
4365
4811
|
"application/pdf": [".pdf"]
|
|
4366
|
-
},
|
|
4812
|
+
}, et = {
|
|
4367
4813
|
"image/png": "PNG",
|
|
4368
4814
|
"image/jpeg": "JPG",
|
|
4369
4815
|
"image/webp": "WEBP",
|
|
@@ -4377,7 +4823,7 @@ var Ue = "image/png,image/jpeg,image/webp", We = 5, Ge = {
|
|
|
4377
4823
|
".gif": "GIF",
|
|
4378
4824
|
".svg": "SVG",
|
|
4379
4825
|
".pdf": "PDF"
|
|
4380
|
-
}, Z = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean),
|
|
4826
|
+
}, Z = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), tt = [
|
|
4381
4827
|
".png",
|
|
4382
4828
|
".jpg",
|
|
4383
4829
|
".jpeg",
|
|
@@ -4388,35 +4834,35 @@ var Ue = "image/png,image/jpeg,image/webp", We = 5, Ge = {
|
|
|
4388
4834
|
".avif",
|
|
4389
4835
|
".heic"
|
|
4390
4836
|
];
|
|
4391
|
-
function
|
|
4837
|
+
function nt(e) {
|
|
4392
4838
|
if (!e) return !1;
|
|
4393
4839
|
let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
|
|
4394
4840
|
if (t) return t.startsWith("image/");
|
|
4395
4841
|
let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
|
|
4396
|
-
return
|
|
4842
|
+
return tt.some((e) => r.endsWith(e));
|
|
4397
4843
|
}
|
|
4398
|
-
function
|
|
4844
|
+
function rt(e) {
|
|
4399
4845
|
let t = Z(e);
|
|
4400
|
-
return t.length ? t.every((e) => e.startsWith(".") ?
|
|
4846
|
+
return t.length ? t.every((e) => e.startsWith(".") ? tt.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
|
|
4401
4847
|
}
|
|
4402
|
-
function
|
|
4848
|
+
function it(e) {
|
|
4403
4849
|
let t = [];
|
|
4404
4850
|
for (let n of Z(e)) {
|
|
4405
|
-
let e =
|
|
4851
|
+
let e = et[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
4406
4852
|
t.includes(e) || t.push(e);
|
|
4407
4853
|
}
|
|
4408
4854
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
4409
4855
|
}
|
|
4410
|
-
function
|
|
4856
|
+
function at(e, t) {
|
|
4411
4857
|
let n = Z(t);
|
|
4412
4858
|
if (!n.length) return !0;
|
|
4413
4859
|
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 && (
|
|
4860
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && ($e[e] || []).some((e) => i.endsWith(e)));
|
|
4415
4861
|
}
|
|
4416
|
-
function
|
|
4862
|
+
function ot(e, t = {}) {
|
|
4417
4863
|
if (!e) return null;
|
|
4418
|
-
let n = t.accept === void 0 ?
|
|
4419
|
-
return
|
|
4864
|
+
let n = t.accept === void 0 ? Ze : t.accept, r = t.maxSizeMb || 5;
|
|
4865
|
+
return at(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${it(n)} file.`;
|
|
4420
4866
|
}
|
|
4421
4867
|
//#endregion
|
|
4422
4868
|
//#region src/passwordRules.js
|
|
@@ -4427,15 +4873,15 @@ var Q = {
|
|
|
4427
4873
|
digit: !0,
|
|
4428
4874
|
special: !0,
|
|
4429
4875
|
uniqueChars: 0
|
|
4430
|
-
},
|
|
4431
|
-
function
|
|
4876
|
+
}, st = "Password Requirements";
|
|
4877
|
+
function ct(e) {
|
|
4432
4878
|
return e === !0 || e == null ? { ...Q } : {
|
|
4433
4879
|
...Q,
|
|
4434
4880
|
...e
|
|
4435
4881
|
};
|
|
4436
4882
|
}
|
|
4437
|
-
function
|
|
4438
|
-
let t =
|
|
4883
|
+
function lt(e) {
|
|
4884
|
+
let t = ct(e), n = [];
|
|
4439
4885
|
if (t.minLength > 0 && n.push({
|
|
4440
4886
|
key: "length",
|
|
4441
4887
|
label: `At least ${t.minLength} characters long`,
|
|
@@ -4466,25 +4912,25 @@ function tt(e) {
|
|
|
4466
4912
|
}
|
|
4467
4913
|
return n;
|
|
4468
4914
|
}
|
|
4469
|
-
function
|
|
4915
|
+
function ut(e, t) {
|
|
4470
4916
|
let n = e == null ? "" : String(e);
|
|
4471
|
-
return
|
|
4917
|
+
return lt(t).map((e) => ({
|
|
4472
4918
|
key: e.key,
|
|
4473
4919
|
label: e.label,
|
|
4474
4920
|
met: e.test(n)
|
|
4475
4921
|
}));
|
|
4476
4922
|
}
|
|
4477
|
-
function
|
|
4478
|
-
return
|
|
4923
|
+
function dt(e, t) {
|
|
4924
|
+
return ut(e, t).every((e) => e.met);
|
|
4479
4925
|
}
|
|
4480
4926
|
//#endregion
|
|
4481
4927
|
//#region src/index.js
|
|
4482
4928
|
var $ = (e, t) => {
|
|
4483
4929
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
4484
4930
|
};
|
|
4485
|
-
function
|
|
4486
|
-
$("wui-select",
|
|
4931
|
+
function ft() {
|
|
4932
|
+
$("wui-select", ze), $("wui-phone", Re), $("wui-datepicker", ee), $("wui-date-range", te), $("wui-dock", ne), $("wui-feedback", oe), $("wui-slider", Be), $("wui-timepicker", Ge), $("wui-autocomplete", y), $("wui-multiselect", me), $("wui-taginput", He), $("wui-otp", Ce), $("wui-status-icon", r), $("wui-wizard-step", Je), $("wui-wizard", qe);
|
|
4487
4933
|
}
|
|
4488
|
-
|
|
4934
|
+
ft();
|
|
4489
4935
|
//#endregion
|
|
4490
|
-
export {
|
|
4936
|
+
export { Ye as COPY_FEEDBACK_MS, Ze as DEFAULT_IMAGE_ACCEPT, Qe as DEFAULT_MAX_SIZE_MB, Q as DEFAULT_PASSWORD_RULES, st 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, Re as WuiPhone, ze as WuiSelect, Be as WuiSlider, r as WuiStatusIcon, He as WuiTagInput, Ge as WuiTimePicker, qe as WuiWizard, Je as WuiWizardStep, it as acceptLabel, lt as buildPasswordRules, Xe as copyTextToClipboard, ft as defineWeborityElements, ut as evaluatePassword, p as glyphSvg, nt as isImageFile, rt as isImageOnlyAccept, at as matchesAccept, dt as passwordSatisfies, ot as validateFile };
|