@webority/ui-elements 0.37.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/WuiAutocomplete-Comrnbmf.js +13 -0
  2. package/dist/WuiCommandPalette-CKna1GlO.js +2 -0
  3. package/dist/WuiConsentBanner-CFll7vxN.js +201 -0
  4. package/dist/WuiContextMenu-CBy0O4HT.js +1 -0
  5. package/dist/WuiCountrySelect-oLBUHvMM.js +1 -0
  6. package/dist/WuiDatePicker-nB1B3eWW.js +31 -0
  7. package/dist/WuiDateRange-Di5YE9mg.js +25 -0
  8. package/dist/WuiDock-BD2HgMmP.js +1 -0
  9. package/dist/WuiImageCrop-Cr3D2iPo.js +17 -0
  10. package/dist/WuiMultiSelect-BUw-7apM.js +25 -0
  11. package/dist/WuiOtp-BbO_75RB.js +14 -0
  12. package/dist/WuiPhone-GJglNelp.js +15 -0
  13. package/dist/WuiSelect-DvtN4qC2.js +14 -0
  14. package/dist/WuiSlider-Br6V2amU.js +49 -0
  15. package/dist/WuiSortable-Bd7Fz5Ox.js +1 -0
  16. package/dist/WuiTagInput-DzEZooIn.js +6 -0
  17. package/dist/WuiTimePicker-Bolpp93P.js +9 -0
  18. package/dist/WuiTour-DiKZEWeb.js +15 -0
  19. package/dist/WuiTree-SA0QU9AF.js +1 -0
  20. package/dist/WuiWizardStep-DIHxrXn9.js +1 -0
  21. package/dist/anchorOverlay-WcDeH46q.js +1 -0
  22. package/dist/calendarMath-BC2wGCD-.js +1 -0
  23. package/dist/countries-CvmZ2xpG.js +1 -0
  24. package/dist/elementBase-BlsR4tqa.js +1 -0
  25. package/dist/elements/autocomplete.js +1 -6
  26. package/dist/elements/command-palette.js +1 -6
  27. package/dist/elements/consent-banner.js +1 -6
  28. package/dist/elements/context-menu.js +1 -6
  29. package/dist/elements/country-select.js +1 -6
  30. package/dist/elements/date-range.js +1 -6
  31. package/dist/elements/datepicker.js +1 -6
  32. package/dist/elements/dock.js +1 -6
  33. package/dist/elements/image-crop.js +1 -6
  34. package/dist/elements/kanban.js +1 -6
  35. package/dist/elements/multiselect.js +1 -6
  36. package/dist/elements/otp.js +1 -6
  37. package/dist/elements/phone.js +1 -6
  38. package/dist/elements/select.js +1 -6
  39. package/dist/elements/slider.js +1 -6
  40. package/dist/elements/sortable.js +1 -6
  41. package/dist/elements/status-icon.js +1 -6
  42. package/dist/elements/taginput.js +1 -6
  43. package/dist/elements/timepicker.js +1 -6
  44. package/dist/elements/tour.js +1 -6
  45. package/dist/elements/tree.js +1 -6
  46. package/dist/elements/wizard.js +1 -5
  47. package/dist/examples.mobile.json-GS1_MGh9.js +1 -0
  48. package/dist/fileViewerImage-Y9QBn2Rj.js +6 -0
  49. package/dist/fileViewerMedia-CaJaVnjE.js +1 -0
  50. package/dist/fileViewerPdf-BN0zuehw.js +19 -0
  51. package/dist/fileViewerUi-DasgDsU-.js +1 -0
  52. package/dist/focusOrigin-2imUSs-u.js +1 -0
  53. package/dist/formMirror-BgY7zkC3.js +1 -0
  54. package/dist/formatters-BAE__8ye.js +1 -0
  55. package/dist/helpers.js +1 -5
  56. package/dist/iconGlyphs.g-CUm_mfze.js +1 -0
  57. package/dist/kanban-CdELdS3U.js +1 -0
  58. package/dist/listboxKeyNav-DMIvs9d6.js +1 -0
  59. package/dist/max-CNrKnpEj.js +17 -0
  60. package/dist/optionLabel-DsX2fhWs.js +1 -0
  61. package/dist/statusIcons-2X4iGkKL.js +10 -0
  62. package/dist/textMatch-wdY7XLIc.js +1 -0
  63. package/dist/themeTransition-lkmQm8FR.js +1 -0
  64. package/dist/tokenCommit-BKckxgtg.js +2 -0
  65. package/dist/ui-calendar.global.js +1 -1
  66. package/dist/ui-calendar.js +1 -9905
  67. package/dist/ui-chart.js +21 -34563
  68. package/dist/ui-chat-core.js +10 -347
  69. package/dist/ui-chat.js +10 -1066
  70. package/dist/ui-elements.global.js +52 -53
  71. package/dist/ui-elements.js +1 -692
  72. package/dist/ui-file-viewer.js +1 -311
  73. package/dist/ui-rich-text.js +193 -16887
  74. package/dist/wuiHttp-BC8co934.js +1 -0
  75. package/package.json +5 -7
  76. package/dist/WuiAutocomplete-ByxnwJNQ.js +0 -283
  77. package/dist/WuiCommandPalette-CtZ04JxZ.js +0 -130
  78. package/dist/WuiConsentBanner-oVe-jxCO.js +0 -399
  79. package/dist/WuiContextMenu-Bx_U2X3t.js +0 -211
  80. package/dist/WuiCountrySelect-CUAwKnL9.js +0 -28
  81. package/dist/WuiDatePicker-DkNbc-z7.js +0 -325
  82. package/dist/WuiDateRange-BocnVO6L.js +0 -233
  83. package/dist/WuiDock-BSDY9g8Q.js +0 -57
  84. package/dist/WuiImageCrop-1yaAONTk.js +0 -462
  85. package/dist/WuiMultiSelect-BrCGRNCt.js +0 -416
  86. package/dist/WuiOtp-D8-4Pqil.js +0 -128
  87. package/dist/WuiPhone-BvbhiP2r.js +0 -731
  88. package/dist/WuiSelect-BXrpiuXG.js +0 -214
  89. package/dist/WuiSlider-BcU0psYf.js +0 -256
  90. package/dist/WuiSortable-JjJqstSU.js +0 -280
  91. package/dist/WuiTagInput-D1ay3OcL.js +0 -158
  92. package/dist/WuiTimePicker-C7n-VFGt.js +0 -370
  93. package/dist/WuiTour-R5O9l--J.js +0 -205
  94. package/dist/WuiTree-DXP7pGeI.js +0 -393
  95. package/dist/WuiWizardStep-BU5w9_Ds.js +0 -221
  96. package/dist/anchorOverlay-DluGZ8ef.js +0 -23
  97. package/dist/calendarMath-BAF2Jkg_.js +0 -42
  98. package/dist/countries-B-M_LTgS.js +0 -1234
  99. package/dist/elementBase-Bg1xpvup.js +0 -9
  100. package/dist/examples.mobile.json-BMXTGiGC.js +0 -250
  101. package/dist/fileViewerImage-Dky4nQZS.js +0 -185
  102. package/dist/fileViewerMedia-DPk_YcvC.js +0 -133
  103. package/dist/fileViewerPdf-BnIsj-J-.js +0 -15799
  104. package/dist/fileViewerUi-R6hlcShk.js +0 -272
  105. package/dist/formMirror-jGf5M4gk.js +0 -29
  106. package/dist/formatters-DusKbTyV.js +0 -138
  107. package/dist/iconGlyphs.g-Cpg1BUHm.js +0 -215
  108. package/dist/kanban-BIiEMkTK.js +0 -985
  109. package/dist/listboxKeyNav-zts_8d5e.js +0 -36
  110. package/dist/max-BDKx469G.js +0 -14478
  111. package/dist/optionLabel-Dn-I7zyp.js +0 -16
  112. package/dist/statusIcons-C3zjycpa.js +0 -37
  113. package/dist/textMatch-DEUjlkdy.js +0 -27
  114. package/dist/themeTransition-BpCuMnjk.js +0 -589
  115. package/dist/tokenCommit-VWz-2jEf.js +0 -20
  116. package/dist/wuiHttp-oeHs7X_c.js +0 -118
@@ -1,731 +0,0 @@
1
- import { t as e } from "./elementBase-Bg1xpvup.js";
2
- import { n as t, r as n, t as r } from "./anchorOverlay-DluGZ8ef.js";
3
- import { t as i } from "./formMirror-jGf5M4gk.js";
4
- import { t as a } from "./iconGlyphs.g-Cpg1BUHm.js";
5
- import { n as o } from "./listboxKeyNav-zts_8d5e.js";
6
- import { n as s, t as c } from "./countries-B-M_LTgS.js";
7
- //#region src/zoneCountries.g.js
8
- var l = {
9
- AD: ["Europe/Andorra"],
10
- AE: ["Asia/Dubai"],
11
- AF: ["Asia/Kabul"],
12
- AG: ["America/Antigua"],
13
- AI: ["America/Anguilla"],
14
- AL: ["Europe/Tirane"],
15
- AM: ["Asia/Yerevan"],
16
- AO: ["Africa/Luanda"],
17
- AR: [
18
- "America/Argentina/Buenos_Aires",
19
- "America/Argentina/Catamarca",
20
- "America/Argentina/ComodRivadavia",
21
- "America/Argentina/Cordoba",
22
- "America/Argentina/Jujuy",
23
- "America/Argentina/La_Rioja",
24
- "America/Argentina/Mendoza",
25
- "America/Argentina/Rio_Gallegos",
26
- "America/Argentina/Salta",
27
- "America/Argentina/San_Juan",
28
- "America/Argentina/San_Luis",
29
- "America/Argentina/Tucuman",
30
- "America/Argentina/Ushuaia",
31
- "America/Buenos_Aires",
32
- "America/Catamarca",
33
- "America/Cordoba",
34
- "America/Jujuy",
35
- "America/Mendoza",
36
- "America/Rosario"
37
- ],
38
- AS: [
39
- "Pacific/Pago_Pago",
40
- "Pacific/Samoa",
41
- "US/Samoa"
42
- ],
43
- AT: ["Europe/Vienna"],
44
- AU: [
45
- "Antarctica/Macquarie",
46
- "Australia/Adelaide",
47
- "Australia/Brisbane",
48
- "Australia/Broken_Hill",
49
- "Australia/Canberra",
50
- "Australia/Currie",
51
- "Australia/Darwin",
52
- "Australia/Eucla",
53
- "Australia/Hobart",
54
- "Australia/LHI",
55
- "Australia/Lindeman",
56
- "Australia/Lord_Howe",
57
- "Australia/Melbourne",
58
- "Australia/NSW",
59
- "Australia/North",
60
- "Australia/Perth",
61
- "Australia/Queensland",
62
- "Australia/South",
63
- "Australia/Sydney",
64
- "Australia/Tasmania",
65
- "Australia/Victoria",
66
- "Australia/West",
67
- "Australia/Yancowinna"
68
- ],
69
- AW: ["America/Aruba"],
70
- AX: ["Europe/Mariehamn"],
71
- AZ: ["Asia/Baku"],
72
- BA: ["Europe/Sarajevo"],
73
- BB: ["America/Barbados"],
74
- BD: ["Asia/Dacca", "Asia/Dhaka"],
75
- BE: ["Europe/Brussels"],
76
- BF: ["Africa/Ouagadougou"],
77
- BG: ["Europe/Sofia"],
78
- BH: ["Asia/Bahrain"],
79
- BI: ["Africa/Bujumbura"],
80
- BJ: ["Africa/Porto-Novo"],
81
- BL: ["America/St_Barthelemy"],
82
- BM: ["Atlantic/Bermuda"],
83
- BN: ["Asia/Brunei"],
84
- BO: ["America/La_Paz"],
85
- BQ: ["America/Kralendijk"],
86
- BR: [
87
- "America/Araguaina",
88
- "America/Bahia",
89
- "America/Belem",
90
- "America/Boa_Vista",
91
- "America/Campo_Grande",
92
- "America/Cuiaba",
93
- "America/Eirunepe",
94
- "America/Fortaleza",
95
- "America/Maceio",
96
- "America/Manaus",
97
- "America/Noronha",
98
- "America/Porto_Acre",
99
- "America/Porto_Velho",
100
- "America/Recife",
101
- "America/Rio_Branco",
102
- "America/Santarem",
103
- "America/Sao_Paulo",
104
- "Brazil/DeNoronha",
105
- "Brazil/East",
106
- "Brazil/West"
107
- ],
108
- BS: ["America/Nassau"],
109
- BT: ["Asia/Thimbu", "Asia/Thimphu"],
110
- BW: ["Africa/Gaborone"],
111
- BY: ["Europe/Minsk"],
112
- BZ: ["America/Belize"],
113
- 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("."),
114
- CC: ["Indian/Cocos"],
115
- CD: ["Africa/Kinshasa", "Africa/Lubumbashi"],
116
- CF: ["Africa/Bangui"],
117
- CG: ["Africa/Brazzaville"],
118
- CH: ["Europe/Zurich"],
119
- CI: ["Africa/Abidjan"],
120
- CK: ["Pacific/Rarotonga"],
121
- CL: [
122
- "America/Coyhaique",
123
- "America/Punta_Arenas",
124
- "America/Santiago",
125
- "Chile/Continental",
126
- "Chile/EasterIsland",
127
- "Pacific/Easter"
128
- ],
129
- CM: ["Africa/Douala"],
130
- CN: [
131
- "Asia/Chongqing",
132
- "Asia/Harbin",
133
- "Asia/Kashgar",
134
- "Asia/Shanghai",
135
- "Asia/Urumqi"
136
- ],
137
- CO: ["America/Bogota"],
138
- CR: ["America/Costa_Rica"],
139
- CU: ["America/Havana"],
140
- CV: ["Atlantic/Cape_Verde"],
141
- CW: ["America/Curacao"],
142
- CX: ["Indian/Christmas"],
143
- CY: [
144
- "Asia/Famagusta",
145
- "Asia/Nicosia",
146
- "Europe/Nicosia"
147
- ],
148
- CZ: ["Europe/Prague"],
149
- DE: ["Europe/Berlin", "Europe/Busingen"],
150
- DJ: ["Africa/Djibouti"],
151
- DK: ["Europe/Copenhagen"],
152
- DM: ["America/Dominica"],
153
- DO: ["America/Santo_Domingo"],
154
- DZ: ["Africa/Algiers"],
155
- EC: ["America/Guayaquil", "Pacific/Galapagos"],
156
- EE: ["Europe/Tallinn"],
157
- EG: ["Africa/Cairo"],
158
- EH: ["Africa/El_Aaiun"],
159
- ER: ["Africa/Asmara", "Africa/Asmera"],
160
- ES: [
161
- "Africa/Ceuta",
162
- "Atlantic/Canary",
163
- "Europe/Madrid"
164
- ],
165
- ET: ["Africa/Addis_Ababa"],
166
- FI: ["Europe/Helsinki"],
167
- FJ: ["Pacific/Fiji"],
168
- FK: ["Atlantic/Stanley"],
169
- FM: [
170
- "Pacific/Chuuk",
171
- "Pacific/Kosrae",
172
- "Pacific/Pohnpei",
173
- "Pacific/Ponape",
174
- "Pacific/Truk",
175
- "Pacific/Yap"
176
- ],
177
- FO: ["Atlantic/Faeroe", "Atlantic/Faroe"],
178
- FR: ["Europe/Paris"],
179
- GA: ["Africa/Libreville"],
180
- GB: ["Europe/Belfast", "Europe/London"],
181
- GD: ["America/Grenada"],
182
- GE: ["Asia/Tbilisi"],
183
- GF: ["America/Cayenne"],
184
- GG: ["Europe/Guernsey"],
185
- GH: ["Africa/Accra"],
186
- GI: ["Europe/Gibraltar"],
187
- GL: [
188
- "America/Danmarkshavn",
189
- "America/Godthab",
190
- "America/Nuuk",
191
- "America/Scoresbysund",
192
- "America/Thule"
193
- ],
194
- GM: ["Africa/Banjul"],
195
- GN: ["Africa/Conakry"],
196
- GP: ["America/Guadeloupe"],
197
- GQ: ["Africa/Malabo"],
198
- GR: ["Europe/Athens"],
199
- GT: ["America/Guatemala"],
200
- GU: ["Pacific/Guam"],
201
- GW: ["Africa/Bissau"],
202
- GY: ["America/Guyana"],
203
- HK: ["Asia/Hong_Kong"],
204
- HN: ["America/Tegucigalpa"],
205
- HR: ["Europe/Zagreb"],
206
- HT: ["America/Port-au-Prince"],
207
- HU: ["Europe/Budapest"],
208
- ID: [
209
- "Asia/Jakarta",
210
- "Asia/Jayapura",
211
- "Asia/Makassar",
212
- "Asia/Pontianak",
213
- "Asia/Ujung_Pandang"
214
- ],
215
- IE: ["Europe/Dublin"],
216
- IL: ["Asia/Jerusalem", "Asia/Tel_Aviv"],
217
- IM: ["Europe/Isle_of_Man"],
218
- IN: ["Asia/Calcutta", "Asia/Kolkata"],
219
- IO: ["Indian/Chagos"],
220
- IQ: ["Asia/Baghdad"],
221
- IR: ["Asia/Tehran"],
222
- IS: ["Atlantic/Reykjavik"],
223
- IT: ["Europe/Rome"],
224
- JE: ["Europe/Jersey"],
225
- JM: ["America/Jamaica"],
226
- JO: ["Asia/Amman"],
227
- JP: ["Asia/Tokyo"],
228
- KE: ["Africa/Nairobi"],
229
- KG: ["Asia/Bishkek"],
230
- KH: ["Asia/Phnom_Penh"],
231
- KI: [
232
- "Pacific/Enderbury",
233
- "Pacific/Kanton",
234
- "Pacific/Kiritimati",
235
- "Pacific/Tarawa"
236
- ],
237
- KM: ["Indian/Comoro"],
238
- KN: ["America/St_Kitts"],
239
- KP: ["Asia/Pyongyang"],
240
- KR: ["Asia/Seoul"],
241
- KW: ["Asia/Kuwait"],
242
- KY: ["America/Cayman"],
243
- KZ: [
244
- "Asia/Almaty",
245
- "Asia/Aqtau",
246
- "Asia/Aqtobe",
247
- "Asia/Atyrau",
248
- "Asia/Oral",
249
- "Asia/Qostanay",
250
- "Asia/Qyzylorda"
251
- ],
252
- LA: ["Asia/Vientiane"],
253
- LB: ["Asia/Beirut"],
254
- LC: ["America/St_Lucia"],
255
- LI: ["Europe/Vaduz"],
256
- LK: ["Asia/Colombo"],
257
- LR: ["Africa/Monrovia"],
258
- LS: ["Africa/Maseru"],
259
- LT: ["Europe/Vilnius"],
260
- LU: ["Europe/Luxembourg"],
261
- LV: ["Europe/Riga"],
262
- LY: ["Africa/Tripoli"],
263
- MA: ["Africa/Casablanca"],
264
- MC: ["Europe/Monaco"],
265
- MD: ["Europe/Chisinau", "Europe/Tiraspol"],
266
- ME: ["Europe/Podgorica"],
267
- MF: ["America/Marigot"],
268
- MG: ["Indian/Antananarivo"],
269
- MH: ["Pacific/Kwajalein", "Pacific/Majuro"],
270
- MK: ["Europe/Skopje"],
271
- ML: ["Africa/Bamako", "Africa/Timbuktu"],
272
- MM: ["Asia/Rangoon", "Asia/Yangon"],
273
- MN: [
274
- "Asia/Choibalsan",
275
- "Asia/Hovd",
276
- "Asia/Ulaanbaatar",
277
- "Asia/Ulan_Bator"
278
- ],
279
- MO: ["Asia/Macao", "Asia/Macau"],
280
- MP: ["Pacific/Saipan"],
281
- MQ: ["America/Martinique"],
282
- MR: ["Africa/Nouakchott"],
283
- MS: ["America/Montserrat"],
284
- MT: ["Europe/Malta"],
285
- MU: ["Indian/Mauritius"],
286
- MV: ["Indian/Maldives"],
287
- MW: ["Africa/Blantyre"],
288
- MX: [
289
- "America/Bahia_Banderas",
290
- "America/Cancun",
291
- "America/Chihuahua",
292
- "America/Ciudad_Juarez",
293
- "America/Ensenada",
294
- "America/Hermosillo",
295
- "America/Matamoros",
296
- "America/Mazatlan",
297
- "America/Merida",
298
- "America/Mexico_City",
299
- "America/Monterrey",
300
- "America/Ojinaga",
301
- "America/Santa_Isabel",
302
- "America/Tijuana",
303
- "Mexico/BajaNorte",
304
- "Mexico/BajaSur",
305
- "Mexico/General"
306
- ],
307
- MY: ["Asia/Kuala_Lumpur", "Asia/Kuching"],
308
- MZ: ["Africa/Maputo"],
309
- NA: ["Africa/Windhoek"],
310
- NC: ["Pacific/Noumea"],
311
- NE: ["Africa/Niamey"],
312
- NF: ["Pacific/Norfolk"],
313
- NG: ["Africa/Lagos"],
314
- NI: ["America/Managua"],
315
- NL: ["Europe/Amsterdam"],
316
- NO: ["Europe/Oslo"],
317
- NP: ["Asia/Kathmandu", "Asia/Katmandu"],
318
- NR: ["Pacific/Nauru"],
319
- NU: ["Pacific/Niue"],
320
- NZ: ["Pacific/Auckland", "Pacific/Chatham"],
321
- OM: ["Asia/Muscat"],
322
- PA: ["America/Panama"],
323
- PE: ["America/Lima"],
324
- PF: [
325
- "Pacific/Gambier",
326
- "Pacific/Marquesas",
327
- "Pacific/Tahiti"
328
- ],
329
- PG: ["Pacific/Bougainville", "Pacific/Port_Moresby"],
330
- PH: ["Asia/Manila"],
331
- PK: ["Asia/Karachi"],
332
- PL: ["Europe/Warsaw"],
333
- PM: ["America/Miquelon"],
334
- PR: ["America/Puerto_Rico"],
335
- PS: ["Asia/Gaza", "Asia/Hebron"],
336
- PT: [
337
- "Atlantic/Azores",
338
- "Atlantic/Madeira",
339
- "Europe/Lisbon"
340
- ],
341
- PW: ["Pacific/Palau"],
342
- PY: ["America/Asuncion"],
343
- QA: ["Asia/Qatar"],
344
- RE: ["Indian/Reunion"],
345
- RO: ["Europe/Bucharest"],
346
- RS: ["Europe/Belgrade"],
347
- 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("."),
348
- RW: ["Africa/Kigali"],
349
- SA: ["Asia/Riyadh"],
350
- SB: ["Pacific/Guadalcanal"],
351
- SC: ["Indian/Mahe"],
352
- SD: ["Africa/Khartoum"],
353
- SE: ["Europe/Stockholm"],
354
- SG: ["Asia/Singapore"],
355
- SH: ["Atlantic/St_Helena"],
356
- SI: ["Europe/Ljubljana"],
357
- SJ: ["Arctic/Longyearbyen", "Atlantic/Jan_Mayen"],
358
- SK: ["Europe/Bratislava"],
359
- SL: ["Africa/Freetown"],
360
- SM: ["Europe/San_Marino"],
361
- SN: ["Africa/Dakar"],
362
- SO: ["Africa/Mogadishu"],
363
- SR: ["America/Paramaribo"],
364
- SS: ["Africa/Juba"],
365
- ST: ["Africa/Sao_Tome"],
366
- SV: ["America/El_Salvador"],
367
- SX: ["America/Lower_Princes"],
368
- SY: ["Asia/Damascus"],
369
- SZ: ["Africa/Mbabane"],
370
- TC: ["America/Grand_Turk"],
371
- TD: ["Africa/Ndjamena"],
372
- TG: ["Africa/Lome"],
373
- TH: ["Asia/Bangkok"],
374
- TJ: ["Asia/Dushanbe"],
375
- TK: ["Pacific/Fakaofo"],
376
- TL: ["Asia/Dili"],
377
- TM: ["Asia/Ashgabat", "Asia/Ashkhabad"],
378
- TN: ["Africa/Tunis"],
379
- TO: ["Pacific/Tongatapu"],
380
- TR: ["Asia/Istanbul", "Europe/Istanbul"],
381
- TT: ["America/Port_of_Spain"],
382
- TV: ["Pacific/Funafuti"],
383
- TW: ["Asia/Taipei"],
384
- TZ: ["Africa/Dar_es_Salaam"],
385
- UA: [
386
- "Europe/Kiev",
387
- "Europe/Kyiv",
388
- "Europe/Simferopol",
389
- "Europe/Uzhgorod",
390
- "Europe/Zaporozhye"
391
- ],
392
- UG: ["Africa/Kampala"],
393
- 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("."),
394
- UY: ["America/Montevideo"],
395
- UZ: ["Asia/Samarkand", "Asia/Tashkent"],
396
- VA: ["Europe/Vatican"],
397
- VC: ["America/St_Vincent"],
398
- VE: ["America/Caracas"],
399
- VG: ["America/Tortola"],
400
- VI: ["America/St_Thomas", "America/Virgin"],
401
- VN: ["Asia/Ho_Chi_Minh", "Asia/Saigon"],
402
- VU: ["Pacific/Efate"],
403
- WF: ["Pacific/Wallis"],
404
- WS: ["Pacific/Apia"],
405
- YE: ["Asia/Aden"],
406
- YT: ["Indian/Mayotte"],
407
- ZA: ["Africa/Johannesburg"],
408
- ZM: ["Africa/Lusaka"],
409
- ZW: ["Africa/Harare"]
410
- }, u = new Set(c.map(([e]) => e)), d = /* @__PURE__ */ new Map();
411
- for (let [e, t] of Object.entries(l)) for (let n of t) d.set(n, e);
412
- function f(e) {
413
- let t = d.get(e);
414
- return t && u.has(t) ? t : null;
415
- }
416
- function p(e) {
417
- if (!e) return null;
418
- let t;
419
- try {
420
- t = new Intl.Locale(e).region;
421
- } catch {
422
- return null;
423
- }
424
- return t && u.has(t) ? t : null;
425
- }
426
- function m() {
427
- let e;
428
- try {
429
- e = Intl.DateTimeFormat().resolvedOptions().timeZone;
430
- } catch {
431
- e = void 0;
432
- }
433
- let t = typeof navigator > "u" ? void 0 : navigator.language;
434
- return f(e) || p(t) || "IN";
435
- }
436
- //#endregion
437
- //#region src/phoneLib.js
438
- function h() {
439
- return Promise.all([import("./max-BDKx469G.js"), import("./examples.mobile.json-BMXTGiGC.js")]).then(([e, t]) => g(e, t.default || t));
440
- }
441
- function g(e, t) {
442
- return {
443
- AsYouType: e.AsYouType,
444
- getExampleNumber: e.getExampleNumber,
445
- isValidPhoneNumber: e.isValidPhoneNumber,
446
- parsePhoneNumber: e.parsePhoneNumber,
447
- examples: t
448
- };
449
- }
450
- //#endregion
451
- //#region src/WuiPhone.js
452
- var _ = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, v = null, y = null;
453
- function b() {
454
- return v ? Promise.resolve(v) : (y ||= h().then((e) => (v = e, v)).catch(() => null), y);
455
- }
456
- function x(e, t) {
457
- let n = `+${s(e)}`;
458
- return t?.startsWith(n) ? t.slice(n.length).trimStart() : null;
459
- }
460
- function S(e, t) {
461
- if (!v || !t) return t;
462
- try {
463
- return x(e, new v.AsYouType(e).input(`+${s(e)}${t}`)) || t;
464
- } catch {
465
- return t;
466
- }
467
- }
468
- function C(e, t) {
469
- if (t <= 0) return 0;
470
- let n = 0;
471
- for (let r = 0; r < e.length; r++) if (/[0-9]/.test(e[r]) && (n += 1, n === t)) return r + 1;
472
- return e.length;
473
- }
474
- function w(e) {
475
- if (!v) return null;
476
- try {
477
- return x(e, v.getExampleNumber(e, v.examples)?.formatInternational()) || null;
478
- } catch {
479
- return null;
480
- }
481
- }
482
- function T(e) {
483
- if (!v || !e) return null;
484
- try {
485
- if (!v.isValidPhoneNumber(e)) return !1;
486
- let t = v.parsePhoneNumber(e)?.getType?.();
487
- return t === void 0 || t === "MOBILE" || t === "FIXED_LINE_OR_MOBILE";
488
- } catch {
489
- return null;
490
- }
491
- }
492
- function E(e) {
493
- if (!v) return null;
494
- try {
495
- let t = v.getExampleNumber(e, v.examples);
496
- return t?.nationalNumber ? t.nationalNumber.length : null;
497
- } catch {
498
- return null;
499
- }
500
- }
501
- function D(e, t, n) {
502
- try {
503
- let r = v.parsePhoneNumber(t, e), i = r?.nationalNumber;
504
- return !i || r.country !== e || i.length > n || !t.endsWith(i) ? null : i;
505
- } catch {
506
- return null;
507
- }
508
- }
509
- function O(e) {
510
- if (!v || !e?.trim().startsWith("+")) return null;
511
- try {
512
- let t = new v.AsYouType();
513
- t.input(e.trim());
514
- let n = t.getCountry();
515
- return n ? {
516
- country: n,
517
- national: t.getNationalNumber() || ""
518
- } : null;
519
- } catch {
520
- return null;
521
- }
522
- }
523
- var k = class extends e {
524
- static formAssociated = !0;
525
- static get observedAttributes() {
526
- return [
527
- "value",
528
- "country",
529
- "placeholder",
530
- "disabled",
531
- "required",
532
- "aria-label",
533
- "aria-describedby"
534
- ];
535
- }
536
- constructor() {
537
- super();
538
- try {
539
- this._internals = this.attachInternals();
540
- } catch {
541
- this._internals = null;
542
- }
543
- this._defaultCountry = m(), this._country = this._defaultCountry, this._national = "", this._active = -1, this._committedValue = "";
544
- }
545
- connectedCallback() {
546
- if (!this._rendered) {
547
- this.render();
548
- return;
549
- }
550
- this._bindGlobal?.();
551
- }
552
- attributeChangedCallback(e, t, n) {
553
- if (e === "value") {
554
- this.value = n;
555
- return;
556
- }
557
- if (this._rendered) {
558
- if (e === "aria-label" || e === "aria-describedby") {
559
- let t = this.querySelector("input[type=tel]");
560
- t && (n == null ? t.removeAttribute(e) : t.setAttribute(e, n));
561
- return;
562
- }
563
- e === "country" && (this._country = n || this._defaultCountry, this._suppressCountryRender) || this.render();
564
- }
565
- }
566
- formResetCallback() {
567
- this.value = this._defaultValue || "";
568
- }
569
- get value() {
570
- return this._national ? `+${s(this._country)}${this._national}` : "";
571
- }
572
- set value(e) {
573
- let t = String(e ?? "").trim(), n = O(t);
574
- if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
575
- else if (t.startsWith("+")) {
576
- let e = t.replace(/[^0-9]/g, ""), n = String(s(this._country));
577
- n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
578
- } else this._national = t.replace(/[^0-9]/g, "");
579
- n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
580
- }
581
- _syncMirror() {
582
- i(this, this.value);
583
- }
584
- _emitInput() {
585
- this.dispatchEvent(new Event("input", { bubbles: !0 }));
586
- }
587
- _emitChange() {
588
- this._committedValue = this.value, this.dispatchEvent(new Event("change", { bubbles: !0 }));
589
- }
590
- render() {
591
- this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
592
- let e = this.getAttribute("placeholder") || w(this._country) || "Enter phone number";
593
- this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
594
- let t = `${this.id}-listbox`;
595
- this._listboxId = t, this.innerHTML = `
596
- <div class="phone-input-wrap">
597
- <div class="phone-country-adornment">
598
- <button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${A(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
599
- <span class="${_(this._country)}" data-flag aria-hidden="true"></span>
600
- ${a("chevron-down", { className: "phone-chevron" })}
601
- <span class="phone-dial" data-dial>+${s(this._country)}</span>
602
- </button>
603
- <div class="country-dropdown-menu" role="listbox" id="${A(t)}" tabindex="-1" hidden>
604
- <div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${a("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${A(t)}" aria-autocomplete="list" /></div>
605
- <div class="country-list-scroll"><div class="country-empty" hidden>No countries found</div></div>
606
- </div>
607
- </div>
608
- <input type="tel" class="input" placeholder="${A(e)}" value="${A(S(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${A(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${A(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
609
- </div>
610
- <div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, i(this, this.value), this._wire();
611
- }
612
- _ensureItems() {
613
- let e = this.querySelector(".country-list-scroll");
614
- if (!e || e.querySelector(".country-dropdown-item")) return;
615
- let t = this._listboxId, n = c.map(([e, n, r], i) => `<button type="button" role="option" id="${A(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${_(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
616
- e.insertAdjacentHTML("afterbegin", n);
617
- }
618
- _itemEls() {
619
- return [...this.querySelectorAll(".country-dropdown-item")];
620
- }
621
- _visibleItems() {
622
- return this._itemEls().filter((e) => !e.hidden);
623
- }
624
- _wire() {
625
- this._teardown();
626
- let e = this.querySelector(".country-toggle"), i = this.querySelector(".phone-input-wrap"), a = this.querySelector(".country-dropdown-menu"), c = this.querySelector(".dropdown-search-input"), l = this.querySelector(".country-list-scroll"), u = this.querySelector(".country-empty"), d = this.querySelector("input[type=tel]"), f = this.querySelector("[data-flag]"), p = this.querySelector("[data-dial]");
627
- if (!e || !a) return;
628
- let m = () => !a.hidden, h = () => r(i || e, a), g = (e, { reveal: t = !0 } = {}) => {
629
- let n = this._visibleItems();
630
- this._active = e, o(l, e >= 0 && n[e] || null), e >= 0 && n[e] ? (t && n[e].scrollIntoView({ block: "nearest" }), c?.setAttribute("aria-activedescendant", n[e].id)) : c?.removeAttribute("aria-activedescendant");
631
- }, v = () => {
632
- m() && h();
633
- }, y = () => {
634
- this._ensureItems(), a.hidden = !1, e.setAttribute("aria-expanded", "true"), c.value = "", k(""), h(), t(this, v), c.focus(), g(this._visibleItems().findIndex((e) => e.classList.contains("selected")));
635
- }, x = () => {
636
- a.hidden = !0, e.setAttribute("aria-expanded", "false"), g(-1), n(this);
637
- }, k = (e) => {
638
- let t = e.trim().toLowerCase(), n = 0;
639
- for (let e of this._itemEls()) {
640
- let r = !t || e.textContent.toLowerCase().includes(t);
641
- e.hidden = !r, r && (n += 1);
642
- }
643
- u && (u.hidden = n > 0);
644
- }, A = (e) => {
645
- this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), f && (f.className = _(e)), p && (p.textContent = `+${s(e)}`);
646
- for (let t of this._itemEls()) {
647
- let n = t.dataset.iso === e;
648
- t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
649
- }
650
- !this.getAttribute("placeholder") && d && (d.placeholder = w(e) || "Enter phone number"), d && this._national && (d.value = S(e, this._national)), x(), this._syncMirror(), this._emitChange(), d?.focus();
651
- }, j = (t) => {
652
- let n = this._visibleItems();
653
- if (t.key === "ArrowDown") {
654
- if (t.preventDefault(), !m()) {
655
- y();
656
- return;
657
- }
658
- g(Math.min(this._active + 1, n.length - 1));
659
- } else if (t.key === "ArrowUp") {
660
- if (t.preventDefault(), !m()) return;
661
- g(Math.max(this._active - 1, 0));
662
- } else t.key === "Enter" ? (t.preventDefault(), m() && n[this._active] && A(n[this._active].dataset.iso)) : t.key === "Escape" && m() && (t.preventDefault(), x(), e.focus());
663
- };
664
- e.addEventListener("click", () => m() ? x() : y()), e.addEventListener("keydown", (e) => {
665
- if (m()) {
666
- j(e);
667
- return;
668
- }
669
- (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), y());
670
- }), c.addEventListener("input", () => {
671
- k(c.value);
672
- let e = this._visibleItems();
673
- g(e.length ? 0 : -1);
674
- }), l.addEventListener("click", (e) => {
675
- let t = e.target.closest(".country-dropdown-item");
676
- t && A(t.dataset.iso);
677
- }), l.addEventListener("mousemove", (e) => {
678
- let t = e.target.closest(".country-dropdown-item");
679
- t && !t.classList.contains("is-active") && g(this._visibleItems().indexOf(t), { reveal: !1 });
680
- }), l.addEventListener("mouseleave", () => g(-1)), a.addEventListener("keydown", j);
681
- let M = this.querySelector("[data-phone-error]"), N = (e) => {
682
- if (d.classList.toggle("is-invalid", e), e ? d.setAttribute("aria-invalid", "true") : d.removeAttribute("aria-invalid"), M) {
683
- if (e) {
684
- let e = w(this._country);
685
- M.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
686
- }
687
- M.hidden = !e;
688
- }
689
- };
690
- d.addEventListener("input", (e) => {
691
- e.stopPropagation();
692
- let t = d.selectionStart ?? d.value.length, n = d.value.slice(0, t).replace(/[^0-9]/g, "").length, r = d.value.replace(/[^0-9]/g, ""), i = E(this._country);
693
- if (i && r.length > i) {
694
- let e = D(this._country, r, i);
695
- e ? (n = Math.max(0, n - (r.length - e.length)), r = e) : r = r.slice(0, i);
696
- }
697
- this._national = r;
698
- let a = S(this._country, this._national);
699
- if (d.value !== a) {
700
- d.value = a;
701
- let e = C(a, Math.min(n, r.length));
702
- d.setSelectionRange(e, e);
703
- }
704
- this._syncMirror(), this._emitInput(), d.classList.contains("is-invalid") && (!this._national || T(this.value) === !0) && N(!1);
705
- }), d.addEventListener("change", (e) => e.stopPropagation()), d.addEventListener("blur", () => {
706
- N(this._national.length > 0 && T(this.value) === !1), this.value !== this._committedValue && this._emitChange();
707
- }), d.addEventListener("paste", (e) => {
708
- let t = O(e.clipboardData?.getData("text"));
709
- t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? d.value = S(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
710
- }), this._bindGlobal = () => {
711
- this._teardownGlobals?.(), this._onDocClick = (e) => {
712
- m() && !this.contains(e.target) && x();
713
- }, document.addEventListener("click", this._onDocClick), m() && t(this, v);
714
- }, this._teardownGlobals = () => {
715
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), n(this);
716
- }, this._bindGlobal(), b().then((e) => {
717
- if (!(!e || !d.isConnected) && (this._national && (d.value = S(this._country, this._national)), !this.getAttribute("placeholder"))) {
718
- let e = w(this._country);
719
- e && (d.placeholder = e);
720
- }
721
- }), this._syncMirror();
722
- }
723
- _teardown() {
724
- this._teardownGlobals?.();
725
- }
726
- disconnectedCallback() {
727
- this._teardown();
728
- }
729
- }, A = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;");
730
- //#endregion
731
- export { k as t };