@stndrds/constants 1.0.0-alpha.294 → 1.0.0-alpha.296

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/index.mjs CHANGED
@@ -1,2857 +1,2 @@
1
- // src/mimeTypes.ts
2
- var IMAGE_MIME_TYPES = {
3
- JPEG: "image/jpeg",
4
- PNG: "image/png",
5
- GIF: "image/gif",
6
- WEBP: "image/webp",
7
- SVG: "image/svg+xml",
8
- BMP: "image/bmp",
9
- TIFF: "image/tiff",
10
- ICO: "image/x-icon",
11
- HEIC: "image/heic",
12
- HEIF: "image/heif"
13
- };
14
- var IMAGE_MIME_TYPES_ARRAY = Object.values(IMAGE_MIME_TYPES);
15
- var DOCUMENT_MIME_TYPES = {
16
- PDF: "application/pdf",
17
- DOC: "application/msword",
18
- DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
19
- XLS: "application/vnd.ms-excel",
20
- XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
21
- PPT: "application/vnd.ms-powerpoint",
22
- PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
23
- ODT: "application/vnd.oasis.opendocument.text",
24
- ODS: "application/vnd.oasis.opendocument.spreadsheet",
25
- ODP: "application/vnd.oasis.opendocument.presentation",
26
- RTF: "application/rtf",
27
- TXT: "text/plain",
28
- CSV: "text/csv",
29
- MARKDOWN: "text/markdown"
30
- };
31
- var DOCUMENT_MIME_TYPES_ARRAY = Object.values(DOCUMENT_MIME_TYPES);
32
- var ARCHIVE_MIME_TYPES = {
33
- ZIP: "application/zip",
34
- RAR: "application/vnd.rar",
35
- TAR: "application/x-tar",
36
- GZIP: "application/gzip",
37
- "7Z": "application/x-7z-compressed",
38
- BZ2: "application/x-bzip2"
39
- };
40
- var ARCHIVE_MIME_TYPES_ARRAY = Object.values(ARCHIVE_MIME_TYPES);
41
- var AUDIO_MIME_TYPES = {
42
- MP3: "audio/mpeg",
43
- WAV: "audio/wav",
44
- OGG: "audio/ogg",
45
- AAC: "audio/aac",
46
- FLAC: "audio/flac",
47
- M4A: "audio/mp4",
48
- WEBM: "audio/webm"
49
- };
50
- var AUDIO_MIME_TYPES_ARRAY = Object.values(AUDIO_MIME_TYPES);
51
- var VIDEO_MIME_TYPES = {
52
- MP4: "video/mp4",
53
- WEBM: "video/webm",
54
- OGG: "video/ogg",
55
- AVI: "video/x-msvideo",
56
- MOV: "video/quicktime",
57
- MKV: "video/x-matroska",
58
- FLV: "video/x-flv",
59
- WMV: "video/x-ms-wmv",
60
- MPEG: "video/mpeg"
61
- };
62
- var VIDEO_MIME_TYPES_ARRAY = Object.values(VIDEO_MIME_TYPES);
63
- var CODE_MIME_TYPES = {
64
- JAVASCRIPT: "text/javascript",
65
- TYPESCRIPT: "text/typescript",
66
- JSON: "application/json",
67
- XML: "application/xml",
68
- HTML: "text/html",
69
- CSS: "text/css",
70
- PYTHON: "text/x-python",
71
- JAVA: "text/x-java-source",
72
- C: "text/x-c",
73
- CPP: "text/x-c++",
74
- YAML: "application/x-yaml",
75
- SQL: "application/sql"
76
- };
77
- var CODE_MIME_TYPES_ARRAY = Object.values(CODE_MIME_TYPES);
78
- var FONT_MIME_TYPES = {
79
- TTF: "font/ttf",
80
- OTF: "font/otf",
81
- WOFF: "font/woff",
82
- WOFF2: "font/woff2",
83
- EOT: "application/vnd.ms-fontobject"
84
- };
85
- var FONT_MIME_TYPES_ARRAY = Object.values(FONT_MIME_TYPES);
86
- var IMAGES = IMAGE_MIME_TYPES_ARRAY;
87
- var DOCUMENTS = DOCUMENT_MIME_TYPES_ARRAY;
88
- var ARCHIVES = ARCHIVE_MIME_TYPES_ARRAY;
89
- var AUDIO = AUDIO_MIME_TYPES_ARRAY;
90
- var VIDEO = VIDEO_MIME_TYPES_ARRAY;
91
- var CODE = CODE_MIME_TYPES_ARRAY;
92
- var FONTS = FONT_MIME_TYPES_ARRAY;
93
- var WEB_IMAGES = [
94
- IMAGE_MIME_TYPES.JPEG,
95
- IMAGE_MIME_TYPES.PNG,
96
- IMAGE_MIME_TYPES.GIF,
97
- IMAGE_MIME_TYPES.WEBP
98
- ];
99
- var OFFICE_DOCUMENTS = [
100
- DOCUMENT_MIME_TYPES.PDF,
101
- DOCUMENT_MIME_TYPES.DOC,
102
- DOCUMENT_MIME_TYPES.DOCX,
103
- DOCUMENT_MIME_TYPES.XLS,
104
- DOCUMENT_MIME_TYPES.XLSX,
105
- DOCUMENT_MIME_TYPES.PPT,
106
- DOCUMENT_MIME_TYPES.PPTX
107
- ];
108
- var MEDIA = [...IMAGES, ...AUDIO, ...VIDEO];
109
- var ALL_MIME_TYPES = [
110
- ...IMAGES,
111
- ...DOCUMENTS,
112
- ...ARCHIVES,
113
- ...AUDIO,
114
- ...VIDEO,
115
- ...CODE,
116
- ...FONTS
117
- ];
118
- var isImageMimeType = (mimeType) => {
119
- return IMAGES.includes(mimeType);
120
- };
121
- var isDocumentMimeType = (mimeType) => {
122
- return DOCUMENTS.includes(mimeType);
123
- };
124
- var isArchiveMimeType = (mimeType) => {
125
- return ARCHIVES.includes(mimeType);
126
- };
127
- var isAudioMimeType = (mimeType) => {
128
- return AUDIO.includes(mimeType);
129
- };
130
- var isVideoMimeType = (mimeType) => {
131
- return VIDEO.includes(mimeType);
132
- };
133
- var isCodeMimeType = (mimeType) => {
134
- return CODE.includes(mimeType);
135
- };
136
-
137
- // src/aiChat.ts
138
- var AI_CHAT_SUPPORTED_IMAGES = [
139
- IMAGE_MIME_TYPES.JPEG,
140
- IMAGE_MIME_TYPES.PNG,
141
- IMAGE_MIME_TYPES.WEBP,
142
- IMAGE_MIME_TYPES.GIF,
143
- IMAGE_MIME_TYPES.SVG
144
- ];
145
- var AI_CHAT_SUPPORTED_DOCUMENTS = [
146
- DOCUMENT_MIME_TYPES.PDF,
147
- DOCUMENT_MIME_TYPES.DOC,
148
- DOCUMENT_MIME_TYPES.DOCX,
149
- DOCUMENT_MIME_TYPES.TXT,
150
- DOCUMENT_MIME_TYPES.MARKDOWN,
151
- DOCUMENT_MIME_TYPES.CSV
152
- ];
153
- var AI_CHAT_SUPPORTED_MIME_TYPES = [
154
- ...AI_CHAT_SUPPORTED_IMAGES,
155
- ...AI_CHAT_SUPPORTED_DOCUMENTS
156
- ];
157
- var AI_CHAT_ACCEPTED_TYPES = AI_CHAT_SUPPORTED_MIME_TYPES.join(",");
158
- var AI_CHAT_MAX_FILE_SIZE = 50 * 1024 * 1024;
159
- var AI_CHAT_MAX_FILES = 5;
160
-
161
- // src/agentTools.ts
162
- var BUILT_IN_AGENT_TOOL_GROUPS = {
163
- bulk: ["bulk_create_records", "bulk_delete_records", "bulk_search", "bulk_update_records"],
164
- calendar: ["get_calendar_event", "get_meeting_transcript", "search_calendar_events"],
165
- core: [
166
- "archive_document",
167
- "ask_questions",
168
- "attach_file",
169
- "call_reflex",
170
- "create_folder",
171
- "create_record",
172
- "delete_record",
173
- "exec_command",
174
- "get_record",
175
- "get_schema",
176
- "get_skill",
177
- "global_search",
178
- "initialize_record_drive_structure",
179
- "list_record_drive",
180
- "list_workspace_users",
181
- "load_toolset",
182
- "publish_artifact",
183
- "read_document",
184
- "remove_file",
185
- "request_work_mode",
186
- "sandbox_get_file",
187
- "sandbox_upload_file",
188
- "sandbox_validate_payload",
189
- "search_records",
190
- "update_document",
191
- "update_record",
192
- "write_todos"
193
- ],
194
- email: ["download_email_attachments", "get_email", "get_email_thread", "search_emails"],
195
- memory: ["get_memory", "save_memory", "search_memories"],
196
- orchestration: ["message_agent", "spawn_agent"],
197
- schema: [
198
- "apply_architect_operation",
199
- "describe_architect_operation",
200
- "discard_architect_draft",
201
- "get_default_view",
202
- "get_schema_history",
203
- "request_design_review",
204
- "search_icons"
205
- ],
206
- web: ["read_webpage", "web_search"]
207
- };
208
- var BUILT_IN_AGENT_TOOL_NAMES = Object.values(BUILT_IN_AGENT_TOOL_GROUPS).flat();
209
-
210
- // src/attribute-icons.ts
211
- var DEFAULT_ATTRIBUTE_ICONS = {
212
- text: "text-align-left",
213
- textarea: "align-left",
214
- number: "hash",
215
- checkbox: "check-square",
216
- date: "calendar",
217
- phone: "telephone",
218
- currency: "dollar-circle",
219
- status: "activity",
220
- location: "location",
221
- timestamp: "clock-circle",
222
- select: "chevron-down-circle",
223
- multiselect: "list-check",
224
- file: "file",
225
- user: "user",
226
- relation: "link",
227
- rating: "star",
228
- formula: "math",
229
- rollup: "chart-bar-stacked"
230
- };
231
- function getDefaultAttributeIcon(type) {
232
- return DEFAULT_ATTRIBUTE_ICONS[type] ?? "circle";
233
- }
234
-
235
- // src/tab-icons.ts
236
- var DEFAULT_TAB_ICONS = {
237
- /** Arranged groups of fields. */
238
- form: "layout",
239
- /** Related records, in rows. */
240
- table: "table",
241
- /** A caller-supplied component slotted into the record. */
242
- custom: "puzzle",
243
- activity: "activity",
244
- richtext: "file-text",
245
- documents: "folder",
246
- /** Form submissions gathered on this record. */
247
- forms: "clipboard",
248
- emails: "envelope",
249
- meetings: "calendar"
250
- };
251
- function getDefaultTabIcon(type) {
252
- return DEFAULT_TAB_ICONS[type] ?? "circle";
253
- }
254
-
255
- // src/cn.ts
256
- import { clsx } from "clsx";
257
- import { extendTailwindMerge } from "tailwind-merge";
258
- var twMerge = extendTailwindMerge({
259
- extend: {
260
- classGroups: {
261
- /* Every text rung the design system ships, not a subset. The three
262
- `control` rungs below were registered when this fix was written; the
263
- six added since — `2xs` and `xs`, the whole `row` family, `metric` —
264
- were not, so 199 call sites were still silently losing either their
265
- size or their colour to the merge.
266
- It fails the way the comment above describes and no louder: the class
267
- is dropped, the element inherits the 16px root, and nothing warns.
268
- Measured live on the records grid, the column header rendered at 16px
269
- for exactly this reason. Any rung added to `theme.css` has to be added
270
- here in the same change, or it is not really a rung. */
271
- "font-size": [
272
- "text-control-2xs",
273
- "text-control-xs",
274
- "text-control-sm",
275
- "text-control-default",
276
- "text-control-lg",
277
- "text-row-sm",
278
- "text-row-default",
279
- "text-row-lg",
280
- "text-metric"
281
- ],
282
- h: [
283
- "h-control-sm",
284
- "h-control-default",
285
- "h-control-lg",
286
- "h-row-sm",
287
- "h-row-default",
288
- "h-row-lg"
289
- ],
290
- w: ["w-control-sm", "w-control-default", "w-control-lg", "w-query-popover"],
291
- size: ["size-control-sm", "size-control-default", "size-control-lg"],
292
- /* `@stndrds/ds`'s `SURFACE_PADDING` rungs (`packages/ds/src/variants/surface.ts`).
293
- `PopoverContent` bakes in `p-4`; a caller setting `p-surface-sm` on it
294
- (e.g. `relation-filter-popover.tsx`) needs tailwind-merge to drop the
295
- built-in `p-4` rather than keep both. All three rungs registered, not
296
- just the one in use today, so the next call site doesn't rediscover
297
- this. */
298
- p: ["p-surface-sm", "p-surface-default", "p-surface-lg"]
299
- }
300
- }
301
- });
302
- function cn(...inputs) {
303
- return twMerge(clsx(inputs));
304
- }
305
-
306
- // src/colors.ts
307
- var lightDark = (light, dark) => `light-dark(${light}, ${dark})`;
308
- function defineColor(vivid, textLight, textDark) {
309
- const r = Number.parseInt(vivid.slice(1, 3), 16);
310
- const g = Number.parseInt(vivid.slice(3, 5), 16);
311
- const b = Number.parseInt(vivid.slice(5, 7), 16);
312
- const alpha = (a) => `rgba(${r}, ${g}, ${b}, ${a})`;
313
- return {
314
- background: lightDark(alpha(0.15), alpha(0.22)),
315
- border: lightDark(alpha(0.3), alpha(0.42)),
316
- text: lightDark(textLight, textDark),
317
- icon: vivid
318
- };
319
- }
320
- var COLORS = {
321
- // Neutral & Gray tones
322
- gray: defineColor("#6B7280", "#374151", "#D1D5DB"),
323
- slate: defineColor("#64748B", "#334155", "#CBD5E1"),
324
- // Blue tones (Info, In Progress)
325
- blue: defineColor("#3B82F6", "#1D4ED8", "#93C5FD"),
326
- sky: defineColor("#0EA5E9", "#0369A1", "#7DD3FC"),
327
- indigo: defineColor("#6366F1", "#4338CA", "#A5B4FC"),
328
- // Green tones (Success, Done, Active)
329
- green: defineColor("#22C55E", "#15803D", "#86EFAC"),
330
- emerald: defineColor("#10B981", "#047857", "#6EE7B7"),
331
- teal: defineColor("#14B8A6", "#0F766E", "#5EEAD4"),
332
- // Red tones (Error, Danger, Cancelled)
333
- red: defineColor("#EF4444", "#B91C1C", "#FCA5A5"),
334
- rose: defineColor("#F43F5E", "#BE123C", "#FDA4AF"),
335
- // Yellow/Orange tones (Warning, Pending)
336
- yellow: defineColor("#EAB308", "#A16207", "#FDE047"),
337
- amber: defineColor("#F59E0B", "#B45309", "#FCD34D"),
338
- orange: defineColor("#F97316", "#C2410C", "#FDBA74"),
339
- // Purple tones (Special, Featured)
340
- purple: defineColor("#A855F7", "#7E22CE", "#D8B4FE"),
341
- violet: defineColor("#8B5CF6", "#6D28D9", "#C4B5FD"),
342
- fuchsia: defineColor("#D946EF", "#A21CAF", "#F0ABFC"),
343
- // Pink tones (Accent)
344
- pink: defineColor("#EC4899", "#BE185D", "#F9A8D4"),
345
- // Cyan (Alternative Info)
346
- cyan: defineColor("#06B6D4", "#0E7490", "#67E8F9"),
347
- // Lime (Alternative Success)
348
- lime: defineColor("#84CC16", "#4D7C0F", "#BEF264")
349
- };
350
- var getColor = (id) => {
351
- return COLORS[id];
352
- };
353
- var getAllColors = () => {
354
- return Object.values(COLORS);
355
- };
356
- var getColorIds = () => {
357
- return Object.keys(COLORS);
358
- };
359
- var isValidColorId = (id) => {
360
- return id in COLORS;
361
- };
362
- var COLOR_GROUPS = {
363
- neutral: ["gray", "slate"],
364
- primary: ["blue", "indigo", "sky"],
365
- success: ["green", "emerald", "teal", "lime"],
366
- danger: ["red", "rose"],
367
- warning: ["yellow", "amber", "orange"],
368
- info: ["blue", "cyan", "sky"],
369
- special: ["purple", "violet", "fuchsia"],
370
- accent: ["pink"]
371
- };
372
- var getColorsByGroup = (group) => {
373
- return [...COLOR_GROUPS[group]];
374
- };
375
- var STATUS_COLORS = {
376
- idle: ["gray", "slate"],
377
- in_progress: ["blue", "indigo", "sky", "cyan", "purple"],
378
- finished: ["green", "emerald", "teal"],
379
- cancelled: ["red", "rose"],
380
- warning: ["yellow", "amber", "orange"]
381
- };
382
-
383
- // src/countries.ts
384
- var COUNTRIES = {
385
- // Priority countries (most commonly used)
386
- FR: {
387
- name: "France",
388
- iso2: "FR",
389
- iso3: "FRA",
390
- numericCode: "250",
391
- phoneCode: "+33",
392
- phoneMaxDigits: 10,
393
- phoneTrunkPrefix: "0"
394
- },
395
- US: {
396
- name: "United States",
397
- iso2: "US",
398
- iso3: "USA",
399
- numericCode: "840",
400
- phoneCode: "+1",
401
- phoneMaxDigits: 10,
402
- phoneTrunkPrefix: ""
403
- },
404
- GB: {
405
- name: "United Kingdom",
406
- iso2: "GB",
407
- iso3: "GBR",
408
- numericCode: "826",
409
- phoneCode: "+44",
410
- phoneMaxDigits: 11,
411
- phoneTrunkPrefix: "0"
412
- },
413
- DE: {
414
- name: "Germany",
415
- iso2: "DE",
416
- iso3: "DEU",
417
- numericCode: "276",
418
- phoneCode: "+49",
419
- phoneMaxDigits: 11,
420
- phoneTrunkPrefix: "0"
421
- },
422
- ES: {
423
- name: "Spain",
424
- iso2: "ES",
425
- iso3: "ESP",
426
- numericCode: "724",
427
- phoneCode: "+34",
428
- phoneMaxDigits: 9,
429
- phoneTrunkPrefix: ""
430
- },
431
- IT: {
432
- name: "Italy",
433
- iso2: "IT",
434
- iso3: "ITA",
435
- numericCode: "380",
436
- phoneCode: "+39",
437
- phoneMaxDigits: 10,
438
- phoneTrunkPrefix: "0"
439
- },
440
- BE: {
441
- name: "Belgium",
442
- iso2: "BE",
443
- iso3: "BEL",
444
- numericCode: "056",
445
- phoneCode: "+32",
446
- phoneMaxDigits: 9,
447
- phoneTrunkPrefix: "0"
448
- },
449
- CH: {
450
- name: "Switzerland",
451
- iso2: "CH",
452
- iso3: "CHE",
453
- numericCode: "756",
454
- phoneCode: "+41",
455
- phoneMaxDigits: 10,
456
- phoneTrunkPrefix: "0"
457
- },
458
- NL: {
459
- name: "Netherlands",
460
- iso2: "NL",
461
- iso3: "NLD",
462
- numericCode: "528",
463
- phoneCode: "+31",
464
- phoneMaxDigits: 9,
465
- phoneTrunkPrefix: "0"
466
- },
467
- PT: {
468
- name: "Portugal",
469
- iso2: "PT",
470
- iso3: "PRT",
471
- numericCode: "620",
472
- phoneCode: "+351",
473
- phoneMaxDigits: 9,
474
- phoneTrunkPrefix: ""
475
- },
476
- CA: {
477
- name: "Canada",
478
- iso2: "CA",
479
- iso3: "CAN",
480
- numericCode: "124",
481
- phoneCode: "+1",
482
- phoneMaxDigits: 10,
483
- phoneTrunkPrefix: ""
484
- },
485
- AU: {
486
- name: "Australia",
487
- iso2: "AU",
488
- iso3: "AUS",
489
- numericCode: "036",
490
- phoneCode: "+61",
491
- phoneMaxDigits: 9,
492
- phoneTrunkPrefix: "0"
493
- },
494
- // Europe - Other
495
- AT: {
496
- name: "Austria",
497
- iso2: "AT",
498
- iso3: "AUT",
499
- numericCode: "040",
500
- phoneCode: "+43",
501
- phoneMaxDigits: 11,
502
- phoneTrunkPrefix: "0"
503
- },
504
- SE: {
505
- name: "Sweden",
506
- iso2: "SE",
507
- iso3: "SWE",
508
- numericCode: "752",
509
- phoneCode: "+46",
510
- phoneMaxDigits: 10,
511
- phoneTrunkPrefix: "0"
512
- },
513
- NO: {
514
- name: "Norway",
515
- iso2: "NO",
516
- iso3: "NOR",
517
- numericCode: "578",
518
- phoneCode: "+47",
519
- phoneMaxDigits: 8,
520
- phoneTrunkPrefix: ""
521
- },
522
- DK: {
523
- name: "Denmark",
524
- iso2: "DK",
525
- iso3: "DNK",
526
- numericCode: "208",
527
- phoneCode: "+45",
528
- phoneMaxDigits: 8,
529
- phoneTrunkPrefix: ""
530
- },
531
- FI: {
532
- name: "Finland",
533
- iso2: "FI",
534
- iso3: "FIN",
535
- numericCode: "246",
536
- phoneCode: "+358",
537
- phoneMaxDigits: 10,
538
- phoneTrunkPrefix: "0"
539
- },
540
- IE: {
541
- name: "Ireland",
542
- iso2: "IE",
543
- iso3: "IRL",
544
- numericCode: "372",
545
- phoneCode: "+353",
546
- phoneMaxDigits: 10,
547
- phoneTrunkPrefix: "0"
548
- },
549
- PL: {
550
- name: "Poland",
551
- iso2: "PL",
552
- iso3: "POL",
553
- numericCode: "616",
554
- phoneCode: "+48",
555
- phoneMaxDigits: 9,
556
- phoneTrunkPrefix: ""
557
- },
558
- CZ: {
559
- name: "Czech Republic",
560
- iso2: "CZ",
561
- iso3: "CZE",
562
- numericCode: "203",
563
- phoneCode: "+420",
564
- phoneMaxDigits: 9,
565
- phoneTrunkPrefix: ""
566
- },
567
- GR: {
568
- name: "Greece",
569
- iso2: "GR",
570
- iso3: "GRC",
571
- numericCode: "300",
572
- phoneCode: "+30",
573
- phoneMaxDigits: 10,
574
- phoneTrunkPrefix: ""
575
- },
576
- RO: {
577
- name: "Romania",
578
- iso2: "RO",
579
- iso3: "ROU",
580
- numericCode: "642",
581
- phoneCode: "+40",
582
- phoneMaxDigits: 10,
583
- phoneTrunkPrefix: "0"
584
- },
585
- HU: {
586
- name: "Hungary",
587
- iso2: "HU",
588
- iso3: "HUN",
589
- numericCode: "348",
590
- phoneCode: "+36",
591
- phoneMaxDigits: 9,
592
- phoneTrunkPrefix: "06"
593
- },
594
- LU: {
595
- name: "Luxembourg",
596
- iso2: "LU",
597
- iso3: "LUX",
598
- numericCode: "442",
599
- phoneCode: "+352",
600
- phoneMaxDigits: 9,
601
- phoneTrunkPrefix: ""
602
- },
603
- SK: {
604
- name: "Slovakia",
605
- iso2: "SK",
606
- iso3: "SVK",
607
- numericCode: "703",
608
- phoneCode: "+421",
609
- phoneMaxDigits: 9,
610
- phoneTrunkPrefix: "0"
611
- },
612
- BG: {
613
- name: "Bulgaria",
614
- iso2: "BG",
615
- iso3: "BGR",
616
- numericCode: "100",
617
- phoneCode: "+359",
618
- phoneMaxDigits: 9,
619
- phoneTrunkPrefix: "0"
620
- },
621
- HR: {
622
- name: "Croatia",
623
- iso2: "HR",
624
- iso3: "HRV",
625
- numericCode: "191",
626
- phoneCode: "+385",
627
- phoneMaxDigits: 9,
628
- phoneTrunkPrefix: "0"
629
- },
630
- SI: {
631
- name: "Slovenia",
632
- iso2: "SI",
633
- iso3: "SVN",
634
- numericCode: "705",
635
- phoneCode: "+386",
636
- phoneMaxDigits: 8,
637
- phoneTrunkPrefix: "0"
638
- },
639
- EE: {
640
- name: "Estonia",
641
- iso2: "EE",
642
- iso3: "EST",
643
- numericCode: "233",
644
- phoneCode: "+372",
645
- phoneMaxDigits: 8,
646
- phoneTrunkPrefix: ""
647
- },
648
- LV: {
649
- name: "Latvia",
650
- iso2: "LV",
651
- iso3: "LVA",
652
- numericCode: "428",
653
- phoneCode: "+371",
654
- phoneMaxDigits: 8,
655
- phoneTrunkPrefix: ""
656
- },
657
- LT: {
658
- name: "Lithuania",
659
- iso2: "LT",
660
- iso3: "LTU",
661
- numericCode: "440",
662
- phoneCode: "+370",
663
- phoneMaxDigits: 8,
664
- phoneTrunkPrefix: ""
665
- },
666
- IS: {
667
- name: "Iceland",
668
- iso2: "IS",
669
- iso3: "ISL",
670
- numericCode: "352",
671
- phoneCode: "+354",
672
- phoneMaxDigits: 7,
673
- phoneTrunkPrefix: ""
674
- },
675
- MT: {
676
- name: "Malta",
677
- iso2: "MT",
678
- iso3: "MLT",
679
- numericCode: "470",
680
- phoneCode: "+356",
681
- phoneMaxDigits: 8,
682
- phoneTrunkPrefix: ""
683
- },
684
- CY: {
685
- name: "Cyprus",
686
- iso2: "CY",
687
- iso3: "CYP",
688
- numericCode: "196",
689
- phoneCode: "+357",
690
- phoneMaxDigits: 8,
691
- phoneTrunkPrefix: ""
692
- },
693
- MC: {
694
- name: "Monaco",
695
- iso2: "MC",
696
- iso3: "MCO",
697
- numericCode: "492",
698
- phoneCode: "+377",
699
- phoneMaxDigits: 8,
700
- phoneTrunkPrefix: ""
701
- },
702
- // Americas - Other
703
- MX: {
704
- name: "Mexico",
705
- iso2: "MX",
706
- iso3: "MEX",
707
- numericCode: "484",
708
- phoneCode: "+52",
709
- phoneMaxDigits: 10,
710
- phoneTrunkPrefix: ""
711
- },
712
- BR: {
713
- name: "Brazil",
714
- iso2: "BR",
715
- iso3: "BRA",
716
- numericCode: "076",
717
- phoneCode: "+55",
718
- phoneMaxDigits: 11,
719
- phoneTrunkPrefix: ""
720
- },
721
- AR: {
722
- name: "Argentina",
723
- iso2: "AR",
724
- iso3: "ARG",
725
- numericCode: "032",
726
- phoneCode: "+54",
727
- phoneMaxDigits: 10,
728
- phoneTrunkPrefix: ""
729
- },
730
- CL: {
731
- name: "Chile",
732
- iso2: "CL",
733
- iso3: "CHL",
734
- numericCode: "152",
735
- phoneCode: "+56",
736
- phoneMaxDigits: 9,
737
- phoneTrunkPrefix: ""
738
- },
739
- CO: {
740
- name: "Colombia",
741
- iso2: "CO",
742
- iso3: "COL",
743
- numericCode: "170",
744
- phoneCode: "+57",
745
- phoneMaxDigits: 10,
746
- phoneTrunkPrefix: ""
747
- },
748
- PE: {
749
- name: "Peru",
750
- iso2: "PE",
751
- iso3: "PER",
752
- numericCode: "604",
753
- phoneCode: "+51",
754
- phoneMaxDigits: 9,
755
- phoneTrunkPrefix: ""
756
- },
757
- VE: {
758
- name: "Venezuela",
759
- iso2: "VE",
760
- iso3: "VEN",
761
- numericCode: "862",
762
- phoneCode: "+58",
763
- phoneMaxDigits: 10,
764
- phoneTrunkPrefix: ""
765
- },
766
- EC: {
767
- name: "Ecuador",
768
- iso2: "EC",
769
- iso3: "ECU",
770
- numericCode: "218",
771
- phoneCode: "+593",
772
- phoneMaxDigits: 9,
773
- phoneTrunkPrefix: ""
774
- },
775
- UY: {
776
- name: "Uruguay",
777
- iso2: "UY",
778
- iso3: "URY",
779
- numericCode: "858",
780
- phoneCode: "+598",
781
- phoneMaxDigits: 8,
782
- phoneTrunkPrefix: ""
783
- },
784
- PY: {
785
- name: "Paraguay",
786
- iso2: "PY",
787
- iso3: "PRY",
788
- numericCode: "600",
789
- phoneCode: "+595",
790
- phoneMaxDigits: 9,
791
- phoneTrunkPrefix: ""
792
- },
793
- BO: {
794
- name: "Bolivia",
795
- iso2: "BO",
796
- iso3: "BOL",
797
- numericCode: "068",
798
- phoneCode: "+591",
799
- phoneMaxDigits: 8,
800
- phoneTrunkPrefix: ""
801
- },
802
- CR: {
803
- name: "Costa Rica",
804
- iso2: "CR",
805
- iso3: "CRI",
806
- numericCode: "188",
807
- phoneCode: "+506",
808
- phoneMaxDigits: 8,
809
- phoneTrunkPrefix: ""
810
- },
811
- PA: {
812
- name: "Panama",
813
- iso2: "PA",
814
- iso3: "PAN",
815
- numericCode: "591",
816
- phoneCode: "+507",
817
- phoneMaxDigits: 8,
818
- phoneTrunkPrefix: ""
819
- },
820
- // Asia
821
- CN: {
822
- name: "China",
823
- iso2: "CN",
824
- iso3: "CHN",
825
- numericCode: "156",
826
- phoneCode: "+86",
827
- phoneMaxDigits: 11,
828
- phoneTrunkPrefix: ""
829
- },
830
- JP: {
831
- name: "Japan",
832
- iso2: "JP",
833
- iso3: "JPN",
834
- numericCode: "392",
835
- phoneCode: "+81",
836
- phoneMaxDigits: 11,
837
- phoneTrunkPrefix: "0"
838
- },
839
- IN: {
840
- name: "India",
841
- iso2: "IN",
842
- iso3: "IND",
843
- numericCode: "356",
844
- phoneCode: "+91",
845
- phoneMaxDigits: 10,
846
- phoneTrunkPrefix: ""
847
- },
848
- KR: {
849
- name: "South Korea",
850
- iso2: "KR",
851
- iso3: "KOR",
852
- numericCode: "410",
853
- phoneCode: "+82",
854
- phoneMaxDigits: 11,
855
- phoneTrunkPrefix: "0"
856
- },
857
- SG: {
858
- name: "Singapore",
859
- iso2: "SG",
860
- iso3: "SGP",
861
- numericCode: "702",
862
- phoneCode: "+65",
863
- phoneMaxDigits: 8,
864
- phoneTrunkPrefix: ""
865
- },
866
- HK: {
867
- name: "Hong Kong",
868
- iso2: "HK",
869
- iso3: "HKG",
870
- numericCode: "344",
871
- phoneCode: "+852",
872
- phoneMaxDigits: 8,
873
- phoneTrunkPrefix: ""
874
- },
875
- TW: {
876
- name: "Taiwan",
877
- iso2: "TW",
878
- iso3: "TWN",
879
- numericCode: "158",
880
- phoneCode: "+886",
881
- phoneMaxDigits: 10,
882
- phoneTrunkPrefix: "0"
883
- },
884
- TH: {
885
- name: "Thailand",
886
- iso2: "TH",
887
- iso3: "THA",
888
- numericCode: "764",
889
- phoneCode: "+66",
890
- phoneMaxDigits: 9,
891
- phoneTrunkPrefix: "0"
892
- },
893
- MY: {
894
- name: "Malaysia",
895
- iso2: "MY",
896
- iso3: "MYS",
897
- numericCode: "458",
898
- phoneCode: "+60",
899
- phoneMaxDigits: 10,
900
- phoneTrunkPrefix: "0"
901
- },
902
- ID: {
903
- name: "Indonesia",
904
- iso2: "ID",
905
- iso3: "IDN",
906
- numericCode: "360",
907
- phoneCode: "+62",
908
- phoneMaxDigits: 12,
909
- phoneTrunkPrefix: "0"
910
- },
911
- PH: {
912
- name: "Philippines",
913
- iso2: "PH",
914
- iso3: "PHL",
915
- numericCode: "608",
916
- phoneCode: "+63",
917
- phoneMaxDigits: 10,
918
- phoneTrunkPrefix: "0"
919
- },
920
- VN: {
921
- name: "Vietnam",
922
- iso2: "VN",
923
- iso3: "VNM",
924
- numericCode: "704",
925
- phoneCode: "+84",
926
- phoneMaxDigits: 10,
927
- phoneTrunkPrefix: "0"
928
- },
929
- PK: {
930
- name: "Pakistan",
931
- iso2: "PK",
932
- iso3: "PAK",
933
- numericCode: "586",
934
- phoneCode: "+92",
935
- phoneMaxDigits: 10,
936
- phoneTrunkPrefix: "0"
937
- },
938
- BD: {
939
- name: "Bangladesh",
940
- iso2: "BD",
941
- iso3: "BGD",
942
- numericCode: "050",
943
- phoneCode: "+880",
944
- phoneMaxDigits: 10,
945
- phoneTrunkPrefix: "0"
946
- },
947
- IL: {
948
- name: "Israel",
949
- iso2: "IL",
950
- iso3: "ISR",
951
- numericCode: "376",
952
- phoneCode: "+972",
953
- phoneMaxDigits: 10,
954
- phoneTrunkPrefix: "0"
955
- },
956
- AE: {
957
- name: "United Arab Emirates",
958
- iso2: "AE",
959
- iso3: "ARE",
960
- numericCode: "784",
961
- phoneCode: "+971",
962
- phoneMaxDigits: 9,
963
- phoneTrunkPrefix: ""
964
- },
965
- SA: {
966
- name: "Saudi Arabia",
967
- iso2: "SA",
968
- iso3: "SAU",
969
- numericCode: "682",
970
- phoneCode: "+966",
971
- phoneMaxDigits: 9,
972
- phoneTrunkPrefix: ""
973
- },
974
- TR: {
975
- name: "Turkey",
976
- iso2: "TR",
977
- iso3: "TUR",
978
- numericCode: "792",
979
- phoneCode: "+90",
980
- phoneMaxDigits: 10,
981
- phoneTrunkPrefix: "0"
982
- },
983
- // Oceania
984
- NZ: {
985
- name: "New Zealand",
986
- iso2: "NZ",
987
- iso3: "NZL",
988
- numericCode: "554",
989
- phoneCode: "+64",
990
- phoneMaxDigits: 10,
991
- phoneTrunkPrefix: "0"
992
- },
993
- // Africa
994
- ZA: {
995
- name: "South Africa",
996
- iso2: "ZA",
997
- iso3: "ZAF",
998
- numericCode: "710",
999
- phoneCode: "+27",
1000
- phoneMaxDigits: 9,
1001
- phoneTrunkPrefix: "0"
1002
- },
1003
- EG: {
1004
- name: "Egypt",
1005
- iso2: "EG",
1006
- iso3: "EGY",
1007
- numericCode: "818",
1008
- phoneCode: "+20",
1009
- phoneMaxDigits: 10,
1010
- phoneTrunkPrefix: "0"
1011
- },
1012
- NG: {
1013
- name: "Nigeria",
1014
- iso2: "NG",
1015
- iso3: "NGA",
1016
- numericCode: "566",
1017
- phoneCode: "+234",
1018
- phoneMaxDigits: 10,
1019
- phoneTrunkPrefix: "0"
1020
- },
1021
- KE: {
1022
- name: "Kenya",
1023
- iso2: "KE",
1024
- iso3: "KEN",
1025
- numericCode: "404",
1026
- phoneCode: "+254",
1027
- phoneMaxDigits: 9,
1028
- phoneTrunkPrefix: "0"
1029
- },
1030
- MA: {
1031
- name: "Morocco",
1032
- iso2: "MA",
1033
- iso3: "MAR",
1034
- numericCode: "504",
1035
- phoneCode: "+212",
1036
- phoneMaxDigits: 9,
1037
- phoneTrunkPrefix: "0"
1038
- },
1039
- TN: {
1040
- name: "Tunisia",
1041
- iso2: "TN",
1042
- iso3: "TUN",
1043
- numericCode: "788",
1044
- phoneCode: "+216",
1045
- phoneMaxDigits: 8,
1046
- phoneTrunkPrefix: ""
1047
- },
1048
- DZ: {
1049
- name: "Algeria",
1050
- iso2: "DZ",
1051
- iso3: "DZA",
1052
- numericCode: "012",
1053
- phoneCode: "+213",
1054
- phoneMaxDigits: 9,
1055
- phoneTrunkPrefix: "0"
1056
- },
1057
- // Middle East
1058
- QA: {
1059
- name: "Qatar",
1060
- iso2: "QA",
1061
- iso3: "QAT",
1062
- numericCode: "634",
1063
- phoneCode: "+974",
1064
- phoneMaxDigits: 8,
1065
- phoneTrunkPrefix: ""
1066
- },
1067
- KW: {
1068
- name: "Kuwait",
1069
- iso2: "KW",
1070
- iso3: "KWT",
1071
- numericCode: "414",
1072
- phoneCode: "+965",
1073
- phoneMaxDigits: 8,
1074
- phoneTrunkPrefix: ""
1075
- },
1076
- OM: {
1077
- name: "Oman",
1078
- iso2: "OM",
1079
- iso3: "OMN",
1080
- numericCode: "512",
1081
- phoneCode: "+968",
1082
- phoneMaxDigits: 8,
1083
- phoneTrunkPrefix: ""
1084
- },
1085
- BH: {
1086
- name: "Bahrain",
1087
- iso2: "BH",
1088
- iso3: "BHR",
1089
- numericCode: "048",
1090
- phoneCode: "+973",
1091
- phoneMaxDigits: 8,
1092
- phoneTrunkPrefix: ""
1093
- },
1094
- LB: {
1095
- name: "Lebanon",
1096
- iso2: "LB",
1097
- iso3: "LBN",
1098
- numericCode: "422",
1099
- phoneCode: "+961",
1100
- phoneMaxDigits: 8,
1101
- phoneTrunkPrefix: "0"
1102
- },
1103
- JO: {
1104
- name: "Jordan",
1105
- iso2: "JO",
1106
- iso3: "JOR",
1107
- numericCode: "400",
1108
- phoneCode: "+962",
1109
- phoneMaxDigits: 9,
1110
- phoneTrunkPrefix: "0"
1111
- },
1112
- // Eastern Europe & Central Asia
1113
- RU: {
1114
- name: "Russia",
1115
- iso2: "RU",
1116
- iso3: "RUS",
1117
- numericCode: "643",
1118
- phoneCode: "+7",
1119
- phoneMaxDigits: 10,
1120
- phoneTrunkPrefix: ""
1121
- },
1122
- UA: {
1123
- name: "Ukraine",
1124
- iso2: "UA",
1125
- iso3: "UKR",
1126
- numericCode: "804",
1127
- phoneCode: "+380",
1128
- phoneMaxDigits: 9,
1129
- phoneTrunkPrefix: "0"
1130
- },
1131
- BY: {
1132
- name: "Belarus",
1133
- iso2: "BY",
1134
- iso3: "BLR",
1135
- numericCode: "112",
1136
- phoneCode: "+375",
1137
- phoneMaxDigits: 9,
1138
- phoneTrunkPrefix: ""
1139
- },
1140
- KZ: {
1141
- name: "Kazakhstan",
1142
- iso2: "KZ",
1143
- iso3: "KAZ",
1144
- numericCode: "398",
1145
- phoneCode: "+7",
1146
- phoneMaxDigits: 10,
1147
- phoneTrunkPrefix: ""
1148
- }
1149
- };
1150
- var getCountryByIso2 = (iso2) => {
1151
- return COUNTRIES[iso2.toUpperCase()];
1152
- };
1153
- var getCountryByIso3 = (iso3) => {
1154
- return Object.values(COUNTRIES).find(
1155
- (country) => country.iso3.toUpperCase() === iso3.toUpperCase()
1156
- );
1157
- };
1158
- var getAllCountries = () => {
1159
- return Object.values(COUNTRIES);
1160
- };
1161
- var getPhoneMaxDigits = (iso2) => {
1162
- return COUNTRIES[iso2.toUpperCase()]?.phoneMaxDigits ?? 15;
1163
- };
1164
- var getPhoneTrunkPrefix = (iso2) => {
1165
- return COUNTRIES[iso2.toUpperCase()]?.phoneTrunkPrefix ?? "";
1166
- };
1167
- var isValidIso2 = (code) => {
1168
- return code.toUpperCase() in COUNTRIES;
1169
- };
1170
- var isValidIso3 = (code) => {
1171
- return Object.values(COUNTRIES).some(
1172
- (country) => country.iso3.toUpperCase() === code.toUpperCase()
1173
- );
1174
- };
1175
- var _displayNamesCache = /* @__PURE__ */ new Map();
1176
- function _getDisplayNames(locales) {
1177
- const key = locales.join("\0");
1178
- const cached = _displayNamesCache.get(key);
1179
- if (cached !== void 0) return cached;
1180
- try {
1181
- const dn = new Intl.DisplayNames(locales, { type: "region" });
1182
- _displayNamesCache.set(key, dn);
1183
- return dn;
1184
- } catch {
1185
- _displayNamesCache.set(key, null);
1186
- return null;
1187
- }
1188
- }
1189
- function getCountryDisplayName(iso2, locales = ["fr", "en"]) {
1190
- const code = iso2.toUpperCase();
1191
- const localeList = Array.isArray(locales) ? locales : [locales];
1192
- const displayNames = _getDisplayNames(localeList);
1193
- if (displayNames) {
1194
- try {
1195
- const name = displayNames.of(code);
1196
- if (name) return name;
1197
- } catch {
1198
- }
1199
- }
1200
- return COUNTRIES[code]?.name ?? code;
1201
- }
1202
- function getCountryDisplayNameByIso3(iso3, locales) {
1203
- const country = getCountryByIso3(iso3);
1204
- if (!country) return iso3;
1205
- return getCountryDisplayName(country.iso2, locales);
1206
- }
1207
- function getSortedCountries(locale = "fr") {
1208
- return getAllCountries().sort(
1209
- (a, b) => getCountryDisplayName(a.iso2, locale).localeCompare(
1210
- getCountryDisplayName(b.iso2, locale),
1211
- locale
1212
- )
1213
- );
1214
- }
1215
- function stripTrunkPrefix(phoneNumber, trunkPrefix) {
1216
- if (!trunkPrefix) return phoneNumber;
1217
- return phoneNumber.startsWith(trunkPrefix) ? phoneNumber.slice(trunkPrefix.length) : phoneNumber;
1218
- }
1219
-
1220
- // src/currencies.ts
1221
- var CURRENCIES = {
1222
- // Major World Currencies
1223
- USD: { code: "USD", name: "US Dollar", symbol: "$", decimals: 2 },
1224
- EUR: { code: "EUR", name: "Euro", symbol: "\u20AC", decimals: 2 },
1225
- GBP: { code: "GBP", name: "British Pound", symbol: "\xA3", decimals: 2 },
1226
- JPY: { code: "JPY", name: "Japanese Yen", symbol: "\xA5", decimals: 0 },
1227
- CNY: { code: "CNY", name: "Chinese Yuan", symbol: "\xA5", decimals: 2 },
1228
- // European Currencies
1229
- CHF: { code: "CHF", name: "Swiss Franc", symbol: "CHF", decimals: 2 },
1230
- SEK: { code: "SEK", name: "Swedish Krona", symbol: "kr", decimals: 2 },
1231
- NOK: { code: "NOK", name: "Norwegian Krone", symbol: "kr", decimals: 2 },
1232
- DKK: { code: "DKK", name: "Danish Krone", symbol: "kr", decimals: 2 },
1233
- PLN: { code: "PLN", name: "Polish Zloty", symbol: "z\u0142", decimals: 2 },
1234
- CZK: { code: "CZK", name: "Czech Koruna", symbol: "K\u010D", decimals: 2 },
1235
- HUF: { code: "HUF", name: "Hungarian Forint", symbol: "Ft", decimals: 0 },
1236
- RON: { code: "RON", name: "Romanian Leu", symbol: "lei", decimals: 2 },
1237
- BGN: { code: "BGN", name: "Bulgarian Lev", symbol: "\u043B\u0432", decimals: 2 },
1238
- HRK: { code: "HRK", name: "Croatian Kuna", symbol: "kn", decimals: 2 },
1239
- ISK: { code: "ISK", name: "Icelandic Krona", symbol: "kr", decimals: 0 },
1240
- RUB: { code: "RUB", name: "Russian Ruble", symbol: "\u20BD", decimals: 2 },
1241
- UAH: { code: "UAH", name: "Ukrainian Hryvnia", symbol: "\u20B4", decimals: 2 },
1242
- TRY: { code: "TRY", name: "Turkish Lira", symbol: "\u20BA", decimals: 2 },
1243
- // Americas
1244
- CAD: { code: "CAD", name: "Canadian Dollar", symbol: "CA$", decimals: 2 },
1245
- MXN: { code: "MXN", name: "Mexican Peso", symbol: "MX$", decimals: 2 },
1246
- BRL: { code: "BRL", name: "Brazilian Real", symbol: "R$", decimals: 2 },
1247
- ARS: { code: "ARS", name: "Argentine Peso", symbol: "AR$", decimals: 2 },
1248
- CLP: { code: "CLP", name: "Chilean Peso", symbol: "CL$", decimals: 0 },
1249
- COP: { code: "COP", name: "Colombian Peso", symbol: "COL$", decimals: 0 },
1250
- PEN: { code: "PEN", name: "Peruvian Sol", symbol: "S/", decimals: 2 },
1251
- UYU: { code: "UYU", name: "Uruguayan Peso", symbol: "UY$", decimals: 2 },
1252
- // Asia-Pacific
1253
- AUD: { code: "AUD", name: "Australian Dollar", symbol: "A$", decimals: 2 },
1254
- NZD: { code: "NZD", name: "New Zealand Dollar", symbol: "NZ$", decimals: 2 },
1255
- HKD: { code: "HKD", name: "Hong Kong Dollar", symbol: "HK$", decimals: 2 },
1256
- SGD: { code: "SGD", name: "Singapore Dollar", symbol: "S$", decimals: 2 },
1257
- KRW: { code: "KRW", name: "South Korean Won", symbol: "\u20A9", decimals: 0 },
1258
- INR: { code: "INR", name: "Indian Rupee", symbol: "\u20B9", decimals: 2 },
1259
- IDR: { code: "IDR", name: "Indonesian Rupiah", symbol: "Rp", decimals: 0 },
1260
- MYR: { code: "MYR", name: "Malaysian Ringgit", symbol: "RM", decimals: 2 },
1261
- PHP: { code: "PHP", name: "Philippine Peso", symbol: "\u20B1", decimals: 2 },
1262
- THB: { code: "THB", name: "Thai Baht", symbol: "\u0E3F", decimals: 2 },
1263
- VND: { code: "VND", name: "Vietnamese Dong", symbol: "\u20AB", decimals: 0 },
1264
- TWD: { code: "TWD", name: "Taiwan Dollar", symbol: "NT$", decimals: 0 },
1265
- PKR: { code: "PKR", name: "Pakistani Rupee", symbol: "\u20A8", decimals: 2 },
1266
- BDT: { code: "BDT", name: "Bangladeshi Taka", symbol: "\u09F3", decimals: 2 },
1267
- // Middle East
1268
- AED: { code: "AED", name: "UAE Dirham", symbol: "\u062F.\u0625", decimals: 2 },
1269
- SAR: { code: "SAR", name: "Saudi Riyal", symbol: "\uFDFC", decimals: 2 },
1270
- ILS: { code: "ILS", name: "Israeli Shekel", symbol: "\u20AA", decimals: 2 },
1271
- QAR: { code: "QAR", name: "Qatari Riyal", symbol: "\uFDFC", decimals: 2 },
1272
- KWD: { code: "KWD", name: "Kuwaiti Dinar", symbol: "\u062F.\u0643", decimals: 3 },
1273
- BHD: { code: "BHD", name: "Bahraini Dinar", symbol: "\u062F.\u0628", decimals: 3 },
1274
- OMR: { code: "OMR", name: "Omani Rial", symbol: "\uFDFC", decimals: 3 },
1275
- JOD: { code: "JOD", name: "Jordanian Dinar", symbol: "\u062F.\u0627", decimals: 3 },
1276
- LBP: { code: "LBP", name: "Lebanese Pound", symbol: "\u0644.\u0644", decimals: 0 },
1277
- // Africa
1278
- ZAR: { code: "ZAR", name: "South African Rand", symbol: "R", decimals: 2 },
1279
- EGP: { code: "EGP", name: "Egyptian Pound", symbol: "\xA3", decimals: 2 },
1280
- NGN: { code: "NGN", name: "Nigerian Naira", symbol: "\u20A6", decimals: 2 },
1281
- KES: { code: "KES", name: "Kenyan Shilling", symbol: "KSh", decimals: 2 },
1282
- MAD: { code: "MAD", name: "Moroccan Dirham", symbol: "\u062F.\u0645.", decimals: 2 },
1283
- TND: { code: "TND", name: "Tunisian Dinar", symbol: "\u062F.\u062A", decimals: 3 },
1284
- DZD: { code: "DZD", name: "Algerian Dinar", symbol: "\u062F.\u062C", decimals: 2 },
1285
- // Other Important
1286
- NIS: { code: "NIS", name: "Israeli New Shekel", symbol: "\u20AA", decimals: 2 }
1287
- };
1288
- var getCurrency = (code) => {
1289
- return CURRENCIES[code.toUpperCase()];
1290
- };
1291
- var getAllCurrencies = () => {
1292
- return Object.values(CURRENCIES);
1293
- };
1294
- var getCurrencySymbol = (code) => {
1295
- return CURRENCIES[code.toUpperCase()]?.symbol || code;
1296
- };
1297
- var isValidCurrencyCode = (code) => {
1298
- return code.toUpperCase() in CURRENCIES;
1299
- };
1300
-
1301
- // src/fileSizes.ts
1302
- var BYTES = {
1303
- /** 1 byte */
1304
- B_1: 1,
1305
- /** 10 bytes */
1306
- B_10: 10,
1307
- /** 100 bytes */
1308
- B_100: 100,
1309
- /** 512 bytes */
1310
- B_512: 512
1311
- };
1312
- var KILOBYTES = {
1313
- /** 1 KB (1,024 bytes) */
1314
- KB_1: 1024,
1315
- /** 2 KB (2,048 bytes) */
1316
- KB_2: 2 * 1024,
1317
- /** 5 KB (5,120 bytes) */
1318
- KB_5: 5 * 1024,
1319
- /** 10 KB (10,240 bytes) */
1320
- KB_10: 10 * 1024,
1321
- /** 50 KB (51,200 bytes) */
1322
- KB_50: 50 * 1024,
1323
- /** 100 KB (102,400 bytes) */
1324
- KB_100: 100 * 1024,
1325
- /** 500 KB (512,000 bytes) */
1326
- KB_500: 500 * 1024
1327
- };
1328
- var MEGABYTES = {
1329
- /** 1 MB (1,048,576 bytes) */
1330
- MB_1: 1024 * 1024,
1331
- /** 2 MB (2,097,152 bytes) */
1332
- MB_2: 2 * 1024 * 1024,
1333
- /** 5 MB (5,242,880 bytes) */
1334
- MB_5: 5 * 1024 * 1024,
1335
- /** 10 MB (10,485,760 bytes) */
1336
- MB_10: 10 * 1024 * 1024,
1337
- /** 20 MB (20,971,520 bytes) */
1338
- MB_20: 20 * 1024 * 1024,
1339
- /** 25 MB (26,214,400 bytes) */
1340
- MB_25: 25 * 1024 * 1024,
1341
- /** 50 MB (52,428,800 bytes) */
1342
- MB_50: 50 * 1024 * 1024,
1343
- /** 100 MB (104,857,600 bytes) */
1344
- MB_100: 100 * 1024 * 1024,
1345
- /** 200 MB (209,715,200 bytes) */
1346
- MB_200: 200 * 1024 * 1024,
1347
- /** 500 MB (524,288,000 bytes) */
1348
- MB_500: 500 * 1024 * 1024
1349
- };
1350
- var GIGABYTES = {
1351
- /** 1 GB (1,073,741,824 bytes) */
1352
- GB_1: 1024 * 1024 * 1024,
1353
- /** 2 GB (2,147,483,648 bytes) */
1354
- GB_2: 2 * 1024 * 1024 * 1024,
1355
- /** 5 GB (5,368,709,120 bytes) */
1356
- GB_5: 5 * 1024 * 1024 * 1024,
1357
- /** 10 GB (10,737,418,240 bytes) */
1358
- GB_10: 10 * 1024 * 1024 * 1024
1359
- };
1360
- var FILE_SIZE = {
1361
- ...BYTES,
1362
- ...KILOBYTES,
1363
- ...MEGABYTES,
1364
- ...GIGABYTES
1365
- };
1366
- var RECOMMENDED_MAX_SIZES = {
1367
- /** Avatar/Profile pictures: 2 MB */
1368
- AVATAR: FILE_SIZE.MB_2,
1369
- /** General images: 5 MB */
1370
- IMAGE: FILE_SIZE.MB_5,
1371
- /** Documents (PDF, Word, etc.): 10 MB */
1372
- DOCUMENT: FILE_SIZE.MB_10,
1373
- /** Presentations: 25 MB */
1374
- PRESENTATION: FILE_SIZE.MB_25,
1375
- /** Audio files: 50 MB */
1376
- AUDIO: FILE_SIZE.MB_50,
1377
- /** Video files: 500 MB */
1378
- VIDEO: FILE_SIZE.MB_500,
1379
- /** Large archives: 1 GB */
1380
- ARCHIVE: FILE_SIZE.GB_1
1381
- };
1382
- var mbToBytes = (mb) => {
1383
- return mb * 1024 * 1024;
1384
- };
1385
- var gbToBytes = (gb) => {
1386
- return gb * 1024 * 1024 * 1024;
1387
- };
1388
- var bytesToMb = (bytes) => {
1389
- return bytes / (1024 * 1024);
1390
- };
1391
- var bytesToGb = (bytes) => {
1392
- return bytes / (1024 * 1024 * 1024);
1393
- };
1394
- var isWithinSizeLimit = (bytes, maxBytes) => {
1395
- return bytes <= maxBytes;
1396
- };
1397
-
1398
- // src/icons.ts
1399
- var ICONS = [
1400
- "a-arrow-down",
1401
- "a-arrow-up",
1402
- "academic-hat",
1403
- "accessibility",
1404
- "activity-square",
1405
- "activity",
1406
- "add-queue",
1407
- "aeroplane",
1408
- "air-conditioner",
1409
- "airplay",
1410
- "airpods",
1411
- "alarm-check",
1412
- "alarm-minus",
1413
- "alarm-plus",
1414
- "alarm-smoke",
1415
- "alarm-snooze",
1416
- "alarm-x",
1417
- "alarm",
1418
- "album",
1419
- "align-bottom",
1420
- "align-horizontal",
1421
- "align-left",
1422
- "align-right",
1423
- "align-top",
1424
- "align-vertical",
1425
- "alt",
1426
- "ambulance",
1427
- "ampersand-square",
1428
- "ampersand",
1429
- "ampersands",
1430
- "anchor",
1431
- "angry-circle",
1432
- "angry-ghost",
1433
- "angry-square",
1434
- "annoyed-circle",
1435
- "annoyed-ghost",
1436
- "annoyed-square",
1437
- "aperture",
1438
- "api",
1439
- "ar",
1440
- "archive",
1441
- "arrow-diagonal-one",
1442
- "arrow-diagonal-two",
1443
- "arrow-down-circle",
1444
- "arrow-down-left-circle",
1445
- "arrow-down-left-square",
1446
- "arrow-down-left-waves",
1447
- "arrow-down-left",
1448
- "arrow-down-right-circle",
1449
- "arrow-down-right-square",
1450
- "arrow-down-right-waves",
1451
- "arrow-down-right",
1452
- "arrow-down-square",
1453
- "arrow-down-waves",
1454
- "arrow-down",
1455
- "arrow-left-circle",
1456
- "arrow-left-right",
1457
- "arrow-left-square",
1458
- "arrow-left-waves",
1459
- "arrow-left",
1460
- "arrow-long-down-left",
1461
- "arrow-long-down-right",
1462
- "arrow-long-down",
1463
- "arrow-long-left",
1464
- "arrow-long-right",
1465
- "arrow-long-up-left",
1466
- "arrow-long-up-right",
1467
- "arrow-long-up",
1468
- "arrow-right-circle",
1469
- "arrow-right-square",
1470
- "arrow-right-waves",
1471
- "arrow-right",
1472
- "arrow-up-circle",
1473
- "arrow-up-down",
1474
- "arrow-up-left-circle",
1475
- "arrow-up-left-square",
1476
- "arrow-up-left-waves",
1477
- "arrow-up-left",
1478
- "arrow-up-right-circle",
1479
- "arrow-up-right-square",
1480
- "arrow-up-right-waves",
1481
- "arrow-up-right",
1482
- "arrow-up-square",
1483
- "arrow-up-waves",
1484
- "arrow-up",
1485
- "asterisk-circle",
1486
- "asterisk-diamond",
1487
- "asterisk-hexagon",
1488
- "asterisk-octagon",
1489
- "asterisk-square",
1490
- "asterisk-waves",
1491
- "at",
1492
- "atom",
1493
- "baby",
1494
- "backpack",
1495
- "badge",
1496
- "baggage-claim",
1497
- "ban",
1498
- "bank",
1499
- "baseball",
1500
- "bath",
1501
- "battery-charging-four",
1502
- "battery-charging-one",
1503
- "battery-charging-three",
1504
- "battery-charging-two",
1505
- "battery-charging",
1506
- "battery-check",
1507
- "battery-empty",
1508
- "battery-full",
1509
- "battery-minus",
1510
- "battery-plus",
1511
- "battery-x",
1512
- "bell-check",
1513
- "bell-home",
1514
- "bell-minus",
1515
- "bell-on",
1516
- "bell-plus",
1517
- "bell-slash",
1518
- "bell-snooze",
1519
- "bell-user",
1520
- "bell-x",
1521
- "bell",
1522
- "binoculars",
1523
- "bitcoin-circle",
1524
- "bitcoin-diamond",
1525
- "bitcoin-hexagon",
1526
- "bitcoin-octagon",
1527
- "bitcoin-square",
1528
- "bitcoin-waves",
1529
- "bitcoin",
1530
- "bluetooth",
1531
- "boat",
1532
- "book-check",
1533
- "book-dot",
1534
- "book-home",
1535
- "book-image",
1536
- "book-minus",
1537
- "book-open",
1538
- "book-plus",
1539
- "book-slash",
1540
- "book-snooze",
1541
- "book-user",
1542
- "book-x",
1543
- "book",
1544
- "bookmark-check",
1545
- "bookmark-dot",
1546
- "bookmark-home",
1547
- "bookmark-minus",
1548
- "bookmark-plus",
1549
- "bookmark-slash",
1550
- "bookmark-snooze",
1551
- "bookmark-user",
1552
- "bookmark-x",
1553
- "bookmark",
1554
- "bounding-box",
1555
- "bowl",
1556
- "box",
1557
- "brand-chrome",
1558
- "brand-codepen",
1559
- "brand-codesandbox",
1560
- "brand-dribbble",
1561
- "brand-facebook",
1562
- "brand-figma",
1563
- "brand-framer",
1564
- "brand-github",
1565
- "brand-gitlab",
1566
- "brand-google",
1567
- "brand-instagram",
1568
- "brand-linkedin",
1569
- "brand-pinterest",
1570
- "brand-pocket",
1571
- "brand-slack",
1572
- "brand-spotify",
1573
- "brand-telegram",
1574
- "brand-threads",
1575
- "brand-trello",
1576
- "brand-twitch",
1577
- "brand-twitter",
1578
- "brand-x",
1579
- "brand-youtube",
1580
- "briefcase-conveyor-belt",
1581
- "briefcase",
1582
- "brightness-high",
1583
- "brightness-low",
1584
- "bubbles",
1585
- "building-one",
1586
- "building",
1587
- "cable-car",
1588
- "cake",
1589
- "calendar-check",
1590
- "calendar-down",
1591
- "calendar-minus",
1592
- "calendar-plus",
1593
- "calendar-slash",
1594
- "calendar-up",
1595
- "calendar-x",
1596
- "calendar",
1597
- "camera-slash",
1598
- "camera",
1599
- "campfire",
1600
- "cannabis",
1601
- "caravan",
1602
- "cart-check",
1603
- "cart-minus",
1604
- "cart-plus",
1605
- "cart-x",
1606
- "cart",
1607
- "cast-screen",
1608
- "center-focus",
1609
- "chart-area",
1610
- "chart-bar-big",
1611
- "chart-bar-decreasing",
1612
- "chart-bar-increasing",
1613
- "chart-bar-one",
1614
- "chart-bar-stacked",
1615
- "chart-bar",
1616
- "chart-bubble",
1617
- "chart-candlestick",
1618
- "chart-column-big",
1619
- "chart-column-decreasing",
1620
- "chart-column-increasing",
1621
- "chart-column-stacked",
1622
- "chart-column",
1623
- "chart-gantt",
1624
- "chart-graph",
1625
- "chart-line",
1626
- "chart-network",
1627
- "chart-no-axes-column-decreasing",
1628
- "chart-no-axes-column-increasing",
1629
- "chart-no-axes-column",
1630
- "chart-no-axes-combined",
1631
- "chart-no-axes-gantt",
1632
- "chart-pie-one",
1633
- "chart-pie-two",
1634
- "chart-pie",
1635
- "chart-scatter",
1636
- "chart-spline",
1637
- "chat-check",
1638
- "chat-dots",
1639
- "chat-messages",
1640
- "chat-minus",
1641
- "chat-plus",
1642
- "chat-x",
1643
- "chat",
1644
- "check-circle-one",
1645
- "check-circle",
1646
- "check-diamond",
1647
- "check-hexagon",
1648
- "check-octagon",
1649
- "check-square-one",
1650
- "check-square",
1651
- "check-waves",
1652
- "check",
1653
- "chevron-double-down-left",
1654
- "chevron-double-down-right",
1655
- "chevron-double-down",
1656
- "chevron-double-left",
1657
- "chevron-double-right",
1658
- "chevron-double-up-left",
1659
- "chevron-double-up-right",
1660
- "chevron-double-up",
1661
- "chevron-down-circle",
1662
- "chevron-down-left-circle",
1663
- "chevron-down-left-square",
1664
- "chevron-down-left-waves",
1665
- "chevron-down-left",
1666
- "chevron-down-right-circle",
1667
- "chevron-down-right-square",
1668
- "chevron-down-right-waves",
1669
- "chevron-down-right",
1670
- "chevron-down-square",
1671
- "chevron-down-waves",
1672
- "chevron-down",
1673
- "chevron-left-circle",
1674
- "chevron-left-square",
1675
- "chevron-left-waves",
1676
- "chevron-left",
1677
- "chevron-right-circle",
1678
- "chevron-right-square",
1679
- "chevron-right-waves",
1680
- "chevron-right",
1681
- "chevron-up-circle",
1682
- "chevron-up-down",
1683
- "chevron-up-left-circle",
1684
- "chevron-up-left-square",
1685
- "chevron-up-left-waves",
1686
- "chevron-up-left",
1687
- "chevron-up-right-circle",
1688
- "chevron-up-right-square",
1689
- "chevron-up-right-waves",
1690
- "chevron-up-right",
1691
- "chevron-up-square",
1692
- "chevron-up-waves",
1693
- "chevron-up",
1694
- "chip",
1695
- "cigarette-off",
1696
- "cigarette",
1697
- "circle-dashed",
1698
- "circle-half-circle",
1699
- "circle-half",
1700
- "circle-notch",
1701
- "circle",
1702
- "click",
1703
- "clipboard",
1704
- "clock-circle",
1705
- "clock-diamond",
1706
- "clock-eight",
1707
- "clock-eleven",
1708
- "clock-five",
1709
- "clock-four",
1710
- "clock-hand",
1711
- "clock-hexagon",
1712
- "clock-nine",
1713
- "clock-octagon",
1714
- "clock-one",
1715
- "clock-seven",
1716
- "clock-six",
1717
- "clock-square",
1718
- "clock-ten",
1719
- "clock-three",
1720
- "clock-twelve",
1721
- "clock-two",
1722
- "clock-waves",
1723
- "cloud-download",
1724
- "cloud-drizzle",
1725
- "cloud-fog",
1726
- "cloud-hail",
1727
- "cloud-lightning",
1728
- "cloud-moon-rain",
1729
- "cloud-moon",
1730
- "cloud-off",
1731
- "cloud-rain-wind",
1732
- "cloud-rain",
1733
- "cloud-snow",
1734
- "cloud-sun-rain",
1735
- "cloud-sun",
1736
- "cloud-upload",
1737
- "cloud",
1738
- "cloudy",
1739
- "cocktail",
1740
- "code-circle",
1741
- "code-diamond",
1742
- "code-hexagon",
1743
- "code-octagon",
1744
- "code-square",
1745
- "code-waves",
1746
- "code",
1747
- "coffee",
1748
- "cog-four",
1749
- "cog-one",
1750
- "cog-three",
1751
- "cog-two",
1752
- "cog",
1753
- "columns",
1754
- "command",
1755
- "compass",
1756
- "components",
1757
- "confetti",
1758
- "config-vertical",
1759
- "config",
1760
- "contactless-circle",
1761
- "contactless",
1762
- "controller",
1763
- "cookie",
1764
- "copy",
1765
- "copyleft",
1766
- "copyright-slash",
1767
- "copyright",
1768
- "corner-down-left",
1769
- "corner-down-right",
1770
- "corner-left-down",
1771
- "corner-left-up",
1772
- "corner-right-down",
1773
- "corner-right-up",
1774
- "corner-up-left",
1775
- "corner-up-right",
1776
- "credit-card-check",
1777
- "credit-card-minus",
1778
- "credit-card-plus",
1779
- "credit-card-x",
1780
- "credit-card",
1781
- "croissant",
1782
- "crop",
1783
- "crosshair",
1784
- "cupcake",
1785
- "danger-circle",
1786
- "danger-diamond",
1787
- "danger-hexagon",
1788
- "danger-octagon",
1789
- "danger-square",
1790
- "danger-triangle",
1791
- "danger-waves",
1792
- "danger",
1793
- "database",
1794
- "daze-circle",
1795
- "daze-ghost",
1796
- "daze-square",
1797
- "delete",
1798
- "desktop",
1799
- "diamond",
1800
- "dice-five",
1801
- "dice-four",
1802
- "dice-one",
1803
- "dice-six",
1804
- "dice-three",
1805
- "dice-two",
1806
- "dislike",
1807
- "divide",
1808
- "dollar-circle",
1809
- "dollar-diamond",
1810
- "dollar-hexagon",
1811
- "dollar-octagon",
1812
- "dollar-square",
1813
- "dollar-waves",
1814
- "dollar",
1815
- "door-closed-locked",
1816
- "door-closed",
1817
- "door-open",
1818
- "dots-circle",
1819
- "dots-diamond",
1820
- "dots-hexagon",
1821
- "dots-octagon",
1822
- "dots-square",
1823
- "dots-vertical-circle",
1824
- "dots-vertical-diamond",
1825
- "dots-vertical-hexagon",
1826
- "dots-vertical-octagon",
1827
- "dots-vertical-square",
1828
- "dots-vertical-waves",
1829
- "dots-vertical",
1830
- "dots-waves",
1831
- "dots",
1832
- "download",
1833
- "drop",
1834
- "droplet-off",
1835
- "droplet",
1836
- "droplets",
1837
- "ear-slash",
1838
- "ear",
1839
- "earth",
1840
- "eclipse",
1841
- "edit-one",
1842
- "edit",
1843
- "egg",
1844
- "eight-circle",
1845
- "eight-diamond",
1846
- "eight-hexagon",
1847
- "eight-octagon",
1848
- "eight-square",
1849
- "eight-waves",
1850
- "eight",
1851
- "elevator",
1852
- "envelope-open",
1853
- "envelope",
1854
- "euro-circle",
1855
- "euro-diamond",
1856
- "euro-hexagon",
1857
- "euro-octagon",
1858
- "euro-square",
1859
- "euro-waves",
1860
- "euro",
1861
- "exclude",
1862
- "external-link",
1863
- "eye-slash",
1864
- "eye",
1865
- "face-id",
1866
- "fat-arrow-down-left",
1867
- "fat-arrow-down-right",
1868
- "fat-arrow-down",
1869
- "fat-arrow-left",
1870
- "fat-arrow-right",
1871
- "fat-arrow-up-left",
1872
- "fat-arrow-up-right",
1873
- "fat-arrow-up",
1874
- "fat-corner-down-left",
1875
- "fat-corner-down-right",
1876
- "fat-corner-left-down",
1877
- "fat-corner-left-up",
1878
- "fat-corner-right-down",
1879
- "fat-corner-right-up",
1880
- "fat-corner-up-left",
1881
- "fat-corner-up-right",
1882
- "female",
1883
- "file-check",
1884
- "file-minus",
1885
- "file-plus",
1886
- "file-text",
1887
- "file-x",
1888
- "file",
1889
- "film",
1890
- "filter-one",
1891
- "filter",
1892
- "fine-tune",
1893
- "fire",
1894
- "five-circle",
1895
- "five-diamond",
1896
- "five-hexagon",
1897
- "five-octagon",
1898
- "five-square",
1899
- "five-waves",
1900
- "five",
1901
- "flag-one",
1902
- "flag",
1903
- "flame-kindling",
1904
- "flame",
1905
- "flask",
1906
- "flower-2",
1907
- "flower",
1908
- "folder-check",
1909
- "folder-heart",
1910
- "folder-kanban",
1911
- "folder-minus",
1912
- "folder-one",
1913
- "folder-plus",
1914
- "folder-slash",
1915
- "folder-two",
1916
- "folder-x",
1917
- "folder",
1918
- "forward-circle",
1919
- "forward-diamond",
1920
- "forward-hexagon",
1921
- "forward-octagon",
1922
- "forward-square",
1923
- "forward-waves",
1924
- "forward",
1925
- "four-circle",
1926
- "four-diamond",
1927
- "four-hexagon",
1928
- "four-octagon",
1929
- "four-square",
1930
- "four-waves",
1931
- "four",
1932
- "frame",
1933
- "funny-circle",
1934
- "funny-ghost",
1935
- "funny-square",
1936
- "gift",
1937
- "git-branch",
1938
- "git-circle",
1939
- "git-commit",
1940
- "git-diamond",
1941
- "git-diff",
1942
- "git-hexagon",
1943
- "git-merge",
1944
- "git-octagon",
1945
- "git-pull-request",
1946
- "git-square",
1947
- "git-waves",
1948
- "glasses",
1949
- "globe",
1950
- "grid-one",
1951
- "grid",
1952
- "hand",
1953
- "hard-drive",
1954
- "hash-circle",
1955
- "hash-diamond",
1956
- "hash-hexagon",
1957
- "hash-octagon",
1958
- "hash-square",
1959
- "hash-waves",
1960
- "hash",
1961
- "haze",
1962
- "heading-five",
1963
- "heading-four",
1964
- "heading-one",
1965
- "heading-six",
1966
- "heading-three",
1967
- "heading-two",
1968
- "heading",
1969
- "headphones",
1970
- "heart-broken",
1971
- "heart-check",
1972
- "heart-circle",
1973
- "heart-diamond",
1974
- "heart-dot",
1975
- "heart-hexagon",
1976
- "heart-home",
1977
- "heart-minus",
1978
- "heart-octagon",
1979
- "heart-plus",
1980
- "heart-slash",
1981
- "heart-snooze",
1982
- "heart-square",
1983
- "heart-user",
1984
- "heart-waves",
1985
- "heart-x",
1986
- "heart",
1987
- "hexagon",
1988
- "home-check",
1989
- "home-minus",
1990
- "home-plus",
1991
- "home-smile",
1992
- "home-x",
1993
- "home",
1994
- "image-circle",
1995
- "image-rectangle",
1996
- "image",
1997
- "inbox-archive",
1998
- "inbox-check",
1999
- "inbox-down",
2000
- "inbox-minus",
2001
- "inbox-plus",
2002
- "inbox-up",
2003
- "inbox-x",
2004
- "inbox",
2005
- "incognito",
2006
- "indifferent-circle",
2007
- "indifferent-ghost",
2008
- "indifferent-square",
2009
- "infinity",
2010
- "info-circle",
2011
- "info-diamond",
2012
- "info-hexagon",
2013
- "info-octagon",
2014
- "info-square",
2015
- "info-triangle",
2016
- "info-waves",
2017
- "info",
2018
- "intersect",
2019
- "kanban",
2020
- "key",
2021
- "keyboard-brightness-high",
2022
- "keyboard-brightness-low",
2023
- "keyboard",
2024
- "label",
2025
- "lamp",
2026
- "layers-one",
2027
- "layers-three",
2028
- "layers-two",
2029
- "layout",
2030
- "leaf",
2031
- "leaves",
2032
- "letter-a-circle",
2033
- "letter-a-diamond",
2034
- "letter-a-hexagon",
2035
- "letter-a-octagon",
2036
- "letter-a-square",
2037
- "letter-a-waves",
2038
- "letter-a",
2039
- "letter-b-circle",
2040
- "letter-b-diamond",
2041
- "letter-b-hexagon",
2042
- "letter-b-octagon",
2043
- "letter-b-square",
2044
- "letter-b-waves",
2045
- "letter-b",
2046
- "letter-c-circle",
2047
- "letter-c-diamond",
2048
- "letter-c-hexagon",
2049
- "letter-c-octagon",
2050
- "letter-c-square",
2051
- "letter-c-waves",
2052
- "letter-c",
2053
- "letter-d-circle",
2054
- "letter-d-diamond",
2055
- "letter-d-hexagon",
2056
- "letter-d-octagon",
2057
- "letter-d-square",
2058
- "letter-d-waves",
2059
- "letter-d",
2060
- "letter-e-circle",
2061
- "letter-e-diamond",
2062
- "letter-e-hexagon",
2063
- "letter-e-octagon",
2064
- "letter-e-square",
2065
- "letter-e-waves",
2066
- "letter-e",
2067
- "letter-f-circle",
2068
- "letter-f-diamond",
2069
- "letter-f-hexagon",
2070
- "letter-f-octagon",
2071
- "letter-f-square",
2072
- "letter-f-waves",
2073
- "letter-f",
2074
- "letter-g-circle",
2075
- "letter-g-diamond",
2076
- "letter-g-hexagon",
2077
- "letter-g-octagon",
2078
- "letter-g-square",
2079
- "letter-g-waves",
2080
- "letter-g",
2081
- "letter-h-circle",
2082
- "letter-h-diamond",
2083
- "letter-h-hexagon",
2084
- "letter-h-octagon",
2085
- "letter-h-square",
2086
- "letter-h-waves",
2087
- "letter-h",
2088
- "letter-i-circle",
2089
- "letter-i-diamond",
2090
- "letter-i-hexagon",
2091
- "letter-i-octagon",
2092
- "letter-i-square",
2093
- "letter-i-waves",
2094
- "letter-i",
2095
- "letter-j-circle",
2096
- "letter-j-diamond",
2097
- "letter-j-hexagon",
2098
- "letter-j-octagon",
2099
- "letter-j-square",
2100
- "letter-j-waves",
2101
- "letter-j",
2102
- "letter-k-circle",
2103
- "letter-k-diamond",
2104
- "letter-k-hexagon",
2105
- "letter-k-octagon",
2106
- "letter-k-square",
2107
- "letter-k-waves",
2108
- "letter-k",
2109
- "letter-l-circle",
2110
- "letter-l-diamond",
2111
- "letter-l-hexagon",
2112
- "letter-l-octagon",
2113
- "letter-l-square",
2114
- "letter-l-waves",
2115
- "letter-l",
2116
- "letter-m-circle",
2117
- "letter-m-diamond",
2118
- "letter-m-hexagon",
2119
- "letter-m-octagon",
2120
- "letter-m-square",
2121
- "letter-m-waves",
2122
- "letter-m",
2123
- "letter-n-circle",
2124
- "letter-n-diamond",
2125
- "letter-n-hexagon",
2126
- "letter-n-octagon",
2127
- "letter-n-square",
2128
- "letter-n-waves",
2129
- "letter-n",
2130
- "letter-o-circle",
2131
- "letter-o-diamond",
2132
- "letter-o-hexagon",
2133
- "letter-o-octagon",
2134
- "letter-o-square",
2135
- "letter-o-waves",
2136
- "letter-o",
2137
- "letter-p-circle",
2138
- "letter-p-diamond",
2139
- "letter-p-hexagon",
2140
- "letter-p-octagon",
2141
- "letter-p-square",
2142
- "letter-p-waves",
2143
- "letter-p",
2144
- "letter-q-circle",
2145
- "letter-q-diamond",
2146
- "letter-q-hexagon",
2147
- "letter-q-octagon",
2148
- "letter-q-square",
2149
- "letter-q-waves",
2150
- "letter-q",
2151
- "letter-r-circle",
2152
- "letter-r-diamond",
2153
- "letter-r-hexagon",
2154
- "letter-r-octagon",
2155
- "letter-r-square",
2156
- "letter-r-waves",
2157
- "letter-r",
2158
- "letter-s-circle",
2159
- "letter-s-diamond",
2160
- "letter-s-hexagon",
2161
- "letter-s-octagon",
2162
- "letter-s-square",
2163
- "letter-s-waves",
2164
- "letter-s",
2165
- "letter-t-circle",
2166
- "letter-t-diamond",
2167
- "letter-t-hexagon",
2168
- "letter-t-octagon",
2169
- "letter-t-square",
2170
- "letter-t-waves",
2171
- "letter-t",
2172
- "letter-u-circle",
2173
- "letter-u-diamond",
2174
- "letter-u-hexagon",
2175
- "letter-u-octagon",
2176
- "letter-u-square",
2177
- "letter-u-waves",
2178
- "letter-u",
2179
- "letter-v-circle",
2180
- "letter-v-diamond",
2181
- "letter-v-hexagon",
2182
- "letter-v-octagon",
2183
- "letter-v-square",
2184
- "letter-v-waves",
2185
- "letter-v",
2186
- "letter-w-circle",
2187
- "letter-w-diamond",
2188
- "letter-w-hexagon",
2189
- "letter-w-octagon",
2190
- "letter-w-square",
2191
- "letter-w-waves",
2192
- "letter-w",
2193
- "letter-x-circle",
2194
- "letter-x-diamond",
2195
- "letter-x-hexagon",
2196
- "letter-x-octagon",
2197
- "letter-x-square",
2198
- "letter-x-waves",
2199
- "letter-x",
2200
- "letter-y-circle",
2201
- "letter-y-diamond",
2202
- "letter-y-hexagon",
2203
- "letter-y-octagon",
2204
- "letter-y-square",
2205
- "letter-y-waves",
2206
- "letter-y",
2207
- "letter-z-circle",
2208
- "letter-z-diamond",
2209
- "letter-z-hexagon",
2210
- "letter-z-octagon",
2211
- "letter-z-square",
2212
- "letter-z-waves",
2213
- "letter-z",
2214
- "lightning-off",
2215
- "lightning",
2216
- "like",
2217
- "line-chart-circle",
2218
- "line-chart-diamond",
2219
- "line-chart-hexagon",
2220
- "line-chart-octagon",
2221
- "line-chart-square",
2222
- "line-chart-waves",
2223
- "link-one",
2224
- "link-two",
2225
- "link",
2226
- "list-check",
2227
- "list-number",
2228
- "list",
2229
- "location-check",
2230
- "location-home",
2231
- "location-minus",
2232
- "location-plus",
2233
- "location-selected",
2234
- "location-slash",
2235
- "location-snooze",
2236
- "location-user",
2237
- "location-x",
2238
- "location",
2239
- "lock-circle",
2240
- "lock-diamond",
2241
- "lock-hexagon",
2242
- "lock-keyhole",
2243
- "lock-octagon",
2244
- "lock-open-keyhole",
2245
- "lock-open-password",
2246
- "lock-open",
2247
- "lock-password",
2248
- "lock-square",
2249
- "lock-waves",
2250
- "lock",
2251
- "login",
2252
- "logout",
2253
- "magnet",
2254
- "male",
2255
- "map",
2256
- "mask",
2257
- "math-square",
2258
- "math",
2259
- "maximize-one",
2260
- "maximize",
2261
- "menu",
2262
- "message-check",
2263
- "message-dots",
2264
- "message-minus",
2265
- "message-plus",
2266
- "message-reply",
2267
- "message-x",
2268
- "message",
2269
- "microphone-slash",
2270
- "microphone",
2271
- "minimize-one",
2272
- "minimize",
2273
- "minus-circle",
2274
- "minus-diamond",
2275
- "minus-hexagon",
2276
- "minus-octagon",
2277
- "minus-square",
2278
- "minus-waves",
2279
- "minus",
2280
- "mobile-signal-five",
2281
- "mobile-signal-four",
2282
- "mobile-signal-one",
2283
- "mobile-signal-three",
2284
- "mobile-signal-two",
2285
- "mobile",
2286
- "moon-star",
2287
- "moon",
2288
- "mountain-snow",
2289
- "mountain",
2290
- "mouse-pointer",
2291
- "move-diagonal-one",
2292
- "move-diagonal",
2293
- "move-horizontal",
2294
- "move-vertical",
2295
- "move",
2296
- "music-circle",
2297
- "music-diamond",
2298
- "music-hexagon",
2299
- "music-octagon",
2300
- "music-square",
2301
- "music-waves",
2302
- "music",
2303
- "myna",
2304
- "navigation-one",
2305
- "navigation",
2306
- "nine-circle",
2307
- "nine-diamond",
2308
- "nine-hexagon",
2309
- "nine-octagon",
2310
- "nine-square",
2311
- "nine-waves",
2312
- "nine",
2313
- "notification",
2314
- "octagon",
2315
- "one-circle",
2316
- "one-diamond",
2317
- "one-hexagon",
2318
- "one-octagon",
2319
- "one-square",
2320
- "one-waves",
2321
- "one",
2322
- "option",
2323
- "package",
2324
- "paint",
2325
- "panel-bottom-close",
2326
- "panel-bottom-inactive",
2327
- "panel-bottom-open",
2328
- "panel-bottom",
2329
- "panel-left-close",
2330
- "panel-left-inactive",
2331
- "panel-left-open",
2332
- "panel-left",
2333
- "panel-right-close",
2334
- "panel-right-inactive",
2335
- "panel-right-open",
2336
- "panel-right",
2337
- "panel-top-close",
2338
- "panel-top-inactive",
2339
- "panel-top-open",
2340
- "panel-top",
2341
- "paperclip",
2342
- "parking",
2343
- "password",
2344
- "path",
2345
- "pause-circle",
2346
- "pause-diamond",
2347
- "pause-hexagon",
2348
- "pause-octagon",
2349
- "pause-square",
2350
- "pause-waves",
2351
- "pause",
2352
- "pen",
2353
- "pencil",
2354
- "percentage-circle",
2355
- "percentage-diamond",
2356
- "percentage-hexagon",
2357
- "percentage-octagon",
2358
- "percentage-square",
2359
- "percentage-waves",
2360
- "percentage",
2361
- "pin",
2362
- "pizza",
2363
- "planet",
2364
- "play-circle",
2365
- "play-diamond",
2366
- "play-hexagon",
2367
- "play-octagon",
2368
- "play-square",
2369
- "play-waves",
2370
- "play",
2371
- "plus-circle",
2372
- "plus-diamond",
2373
- "plus-hexagon",
2374
- "plus-octagon",
2375
- "plus-square",
2376
- "plus-waves",
2377
- "plus",
2378
- "pokeball",
2379
- "power",
2380
- "presentation",
2381
- "printer",
2382
- "puzzle",
2383
- "question-circle",
2384
- "question-diamond",
2385
- "question-hexagon",
2386
- "question-octagon",
2387
- "question-square",
2388
- "question-waves",
2389
- "question",
2390
- "radio",
2391
- "rainbow",
2392
- "reception-bell",
2393
- "record",
2394
- "rectangle-vertical",
2395
- "rectangle",
2396
- "redo",
2397
- "refresh-alt",
2398
- "refresh",
2399
- "repeat",
2400
- "rewind-circle",
2401
- "rewind-diamond",
2402
- "rewind-hexagon",
2403
- "rewind-octagon",
2404
- "rewind-square",
2405
- "rewind-waves",
2406
- "rewind",
2407
- "rhombus",
2408
- "ribbon",
2409
- "rocket",
2410
- "room-service",
2411
- "rows",
2412
- "rss",
2413
- "ruler",
2414
- "rupee-circle",
2415
- "rupee-diamond",
2416
- "rupee-hexagon",
2417
- "rupee-octagon",
2418
- "rupee-square",
2419
- "rupee-waves",
2420
- "rupee",
2421
- "sad-circle",
2422
- "sad-ghost",
2423
- "sad-square",
2424
- "save",
2425
- "scan",
2426
- "scissors",
2427
- "sea-waves",
2428
- "search-check",
2429
- "search-circle",
2430
- "search-diamond",
2431
- "search-dot",
2432
- "search-hexagon",
2433
- "search-home",
2434
- "search-minus",
2435
- "search-octagon",
2436
- "search-plus",
2437
- "search-slash",
2438
- "search-snooze",
2439
- "search-square",
2440
- "search-user",
2441
- "search-waves",
2442
- "search-x",
2443
- "search",
2444
- "select-multiple",
2445
- "send",
2446
- "servers",
2447
- "seven-circle",
2448
- "seven-diamond",
2449
- "seven-hexagon",
2450
- "seven-octagon",
2451
- "seven-square",
2452
- "seven-waves",
2453
- "seven",
2454
- "share",
2455
- "shell",
2456
- "shield-check",
2457
- "shield-crossed",
2458
- "shield-minus",
2459
- "shield-one",
2460
- "shield-plus",
2461
- "shield-slash",
2462
- "shield-two",
2463
- "shield-x",
2464
- "shield",
2465
- "shooting-star",
2466
- "shopping-bag",
2467
- "shovel",
2468
- "shrub",
2469
- "shuffle-alt",
2470
- "shuffle",
2471
- "sidebar-alt",
2472
- "sidebar",
2473
- "signal-circle",
2474
- "signal-diamond",
2475
- "signal-hexagon",
2476
- "signal-octagon",
2477
- "signal-square",
2478
- "signal-waves",
2479
- "signal",
2480
- "six-circle",
2481
- "six-diamond",
2482
- "six-hexagon",
2483
- "six-octagon",
2484
- "six-square",
2485
- "six-waves",
2486
- "six",
2487
- "skip-back",
2488
- "skip-forward",
2489
- "slash-circle",
2490
- "slash-diamond",
2491
- "slash-hexagon",
2492
- "slash-octagon",
2493
- "slash-square",
2494
- "slash-waves",
2495
- "smile-circle",
2496
- "smile-ghost",
2497
- "smile-square",
2498
- "snow",
2499
- "snowflake",
2500
- "sofa",
2501
- "sort",
2502
- "sparkles",
2503
- "speaker",
2504
- "spinner-one",
2505
- "spinner",
2506
- "sprout",
2507
- "square-chart-gantt",
2508
- "square-dashed-kanban",
2509
- "square-dashed",
2510
- "square-half",
2511
- "square-kanban",
2512
- "square",
2513
- "star",
2514
- "stop-circle",
2515
- "stop-diamond",
2516
- "stop-hexagon",
2517
- "stop-octagon",
2518
- "stop-square",
2519
- "stop-waves",
2520
- "stop",
2521
- "store",
2522
- "subtract",
2523
- "sun-dim",
2524
- "sun-medium",
2525
- "sun-snow",
2526
- "sun",
2527
- "sunrise",
2528
- "sunset",
2529
- "support",
2530
- "swatches",
2531
- "table",
2532
- "tablet",
2533
- "tag-plus",
2534
- "tag",
2535
- "tally-five",
2536
- "tally-four",
2537
- "tally-one",
2538
- "tally-three",
2539
- "tally-two",
2540
- "target",
2541
- "telephone-call",
2542
- "telephone-forward",
2543
- "telephone-in",
2544
- "telephone-missed",
2545
- "telephone-out",
2546
- "telephone-slash",
2547
- "telephone",
2548
- "tent-tree",
2549
- "tent",
2550
- "terminal",
2551
- "text-align-center",
2552
- "text-align-left",
2553
- "text-align-right",
2554
- "text-justify",
2555
- "thermometer-snowflake",
2556
- "thermometer-sun",
2557
- "thermometer",
2558
- "three-circle",
2559
- "three-diamond",
2560
- "three-hexagon",
2561
- "three-octagon",
2562
- "three-square",
2563
- "three-waves",
2564
- "three",
2565
- "ticket-slash",
2566
- "ticket",
2567
- "toggle-left",
2568
- "toggle-right",
2569
- "tool",
2570
- "tornado",
2571
- "train",
2572
- "trash-one",
2573
- "trash-two",
2574
- "trash",
2575
- "tree-deciduous",
2576
- "tree-palm",
2577
- "tree-pine",
2578
- "tree",
2579
- "trees",
2580
- "trending-down",
2581
- "trending-up-down",
2582
- "trending-up",
2583
- "triangle",
2584
- "truck",
2585
- "tv",
2586
- "two-circle",
2587
- "two-diamond",
2588
- "two-hexagon",
2589
- "two-octagon",
2590
- "two-square",
2591
- "two-waves",
2592
- "two",
2593
- "type-bold",
2594
- "type-italic",
2595
- "type-text",
2596
- "type-underline",
2597
- "umbrella-off",
2598
- "umbrella",
2599
- "undo",
2600
- "union",
2601
- "unlink",
2602
- "upload",
2603
- "user-check",
2604
- "user-circle",
2605
- "user-diamond",
2606
- "user-hexagon",
2607
- "user-minus",
2608
- "user-octagon",
2609
- "user-plus",
2610
- "user-settings",
2611
- "user-square",
2612
- "user-waves",
2613
- "user-x",
2614
- "user",
2615
- "users-group",
2616
- "users",
2617
- "video-slash",
2618
- "video",
2619
- "volume-check",
2620
- "volume-high",
2621
- "volume-low",
2622
- "volume-minus",
2623
- "volume-none",
2624
- "volume-plus",
2625
- "volume-slash",
2626
- "volume-x",
2627
- "watch",
2628
- "waves",
2629
- "webcam",
2630
- "wheel",
2631
- "wheelchair",
2632
- "wifi-check",
2633
- "wifi-low",
2634
- "wifi-medium",
2635
- "wifi-minus",
2636
- "wifi-plus",
2637
- "wifi-slash",
2638
- "wifi-x",
2639
- "wifi",
2640
- "wind-arrow-down",
2641
- "wind",
2642
- "winds",
2643
- "wine",
2644
- "wink-circle",
2645
- "wink-ghost",
2646
- "wink-square",
2647
- "wrench",
2648
- "x-circle",
2649
- "x-diamond",
2650
- "x-hexagon",
2651
- "x-octagon",
2652
- "x-square",
2653
- "x-triangle",
2654
- "x-waves",
2655
- "x",
2656
- "yen-circle",
2657
- "yen-diamond",
2658
- "yen-hexagon",
2659
- "yen-octagon",
2660
- "yen-square",
2661
- "yen-waves",
2662
- "yen",
2663
- "zap-off",
2664
- "zap",
2665
- "zero-circle",
2666
- "zero-diamond",
2667
- "zero-hexagon",
2668
- "zero-octagon",
2669
- "zero-square",
2670
- "zero-waves",
2671
- "zero"
2672
- ];
2673
-
2674
- // src/memories.ts
2675
- var MEMORY_NAME_MAX_LENGTH = 100;
2676
- var MEMORY_DESCRIPTION_MAX_LENGTH = 160;
2677
-
2678
- // src/skills.ts
2679
- var SKILL_NAME_MAX_LENGTH = 100;
2680
- var SKILL_DESCRIPTION_MAX_LENGTH = 160;
2681
-
2682
- // src/tenant.ts
2683
- var DEFAULT_TENANT_ID = "00000000-0000-0000-0000-000000000000";
2684
-
2685
- // src/text-format-presets.ts
2686
- var TEXT_FORMAT_PRESETS = [
2687
- // Communication
2688
- {
2689
- id: "email",
2690
- label: "Email",
2691
- icon: "envelope",
2692
- group: "communication",
2693
- storage: { kind: "format", value: "email" }
2694
- },
2695
- {
2696
- id: "url",
2697
- label: "URL",
2698
- icon: "link",
2699
- group: "communication",
2700
- storage: { kind: "format", value: "url" }
2701
- },
2702
- {
2703
- id: "phone_fr",
2704
- label: "T\xE9l\xE9phone (FR)",
2705
- icon: "telephone",
2706
- group: "communication",
2707
- storage: { kind: "pattern", regex: "^0[1-9]([-. ]?[0-9]{2}){4}$" }
2708
- },
2709
- // Identifiants
2710
- {
2711
- id: "slug",
2712
- label: "Slug (kebab-case)",
2713
- icon: "hash",
2714
- group: "identifiants",
2715
- storage: { kind: "format", value: "slug" }
2716
- },
2717
- {
2718
- id: "alphanumeric",
2719
- label: "Alphanum\xE9rique",
2720
- icon: "type-text",
2721
- group: "identifiants",
2722
- storage: { kind: "pattern", regex: "^[a-zA-Z0-9]+$" }
2723
- },
2724
- // Business (FR)
2725
- {
2726
- id: "siren",
2727
- label: "SIREN",
2728
- icon: "building",
2729
- group: "business_fr",
2730
- storage: { kind: "pattern", regex: "^[0-9]{9}$" }
2731
- },
2732
- {
2733
- id: "siret",
2734
- label: "SIRET",
2735
- icon: "building",
2736
- group: "business_fr",
2737
- storage: { kind: "pattern", regex: "^[0-9]{14}$" }
2738
- },
2739
- {
2740
- id: "postcode_fr",
2741
- label: "Code postal (FR)",
2742
- icon: "location",
2743
- group: "business_fr",
2744
- storage: { kind: "pattern", regex: "^[0-9]{5}$" }
2745
- },
2746
- {
2747
- id: "iban",
2748
- label: "IBAN",
2749
- icon: "credit-card",
2750
- group: "business_fr",
2751
- storage: { kind: "pattern", regex: "^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$" }
2752
- },
2753
- {
2754
- id: "vat_fr",
2755
- label: "TVA intracom",
2756
- icon: "credit-card",
2757
- group: "business_fr",
2758
- storage: { kind: "pattern", regex: "^[A-Z]{2}[0-9A-Z]{2,12}$" }
2759
- },
2760
- // Design
2761
- {
2762
- id: "hex_color",
2763
- label: "Code couleur hex",
2764
- icon: "paint",
2765
- group: "design",
2766
- storage: { kind: "pattern", regex: "^#[0-9A-Fa-f]{6}$" }
2767
- }
2768
- ];
2769
- export {
2770
- AI_CHAT_ACCEPTED_TYPES,
2771
- AI_CHAT_MAX_FILES,
2772
- AI_CHAT_MAX_FILE_SIZE,
2773
- AI_CHAT_SUPPORTED_DOCUMENTS,
2774
- AI_CHAT_SUPPORTED_IMAGES,
2775
- AI_CHAT_SUPPORTED_MIME_TYPES,
2776
- ALL_MIME_TYPES,
2777
- ARCHIVES,
2778
- ARCHIVE_MIME_TYPES,
2779
- ARCHIVE_MIME_TYPES_ARRAY,
2780
- AUDIO,
2781
- AUDIO_MIME_TYPES,
2782
- AUDIO_MIME_TYPES_ARRAY,
2783
- BUILT_IN_AGENT_TOOL_GROUPS,
2784
- BUILT_IN_AGENT_TOOL_NAMES,
2785
- BYTES,
2786
- CODE,
2787
- CODE_MIME_TYPES,
2788
- CODE_MIME_TYPES_ARRAY,
2789
- COLORS,
2790
- COLOR_GROUPS,
2791
- COUNTRIES,
2792
- CURRENCIES,
2793
- DEFAULT_ATTRIBUTE_ICONS,
2794
- DEFAULT_TAB_ICONS,
2795
- DEFAULT_TENANT_ID,
2796
- DOCUMENTS,
2797
- DOCUMENT_MIME_TYPES,
2798
- DOCUMENT_MIME_TYPES_ARRAY,
2799
- FILE_SIZE,
2800
- FONTS,
2801
- FONT_MIME_TYPES,
2802
- FONT_MIME_TYPES_ARRAY,
2803
- GIGABYTES,
2804
- ICONS,
2805
- IMAGES,
2806
- IMAGE_MIME_TYPES,
2807
- IMAGE_MIME_TYPES_ARRAY,
2808
- KILOBYTES,
2809
- MEDIA,
2810
- MEGABYTES,
2811
- MEMORY_DESCRIPTION_MAX_LENGTH,
2812
- MEMORY_NAME_MAX_LENGTH,
2813
- OFFICE_DOCUMENTS,
2814
- RECOMMENDED_MAX_SIZES,
2815
- SKILL_DESCRIPTION_MAX_LENGTH,
2816
- SKILL_NAME_MAX_LENGTH,
2817
- STATUS_COLORS,
2818
- TEXT_FORMAT_PRESETS,
2819
- VIDEO,
2820
- VIDEO_MIME_TYPES,
2821
- VIDEO_MIME_TYPES_ARRAY,
2822
- WEB_IMAGES,
2823
- bytesToGb,
2824
- bytesToMb,
2825
- cn,
2826
- gbToBytes,
2827
- getAllColors,
2828
- getAllCountries,
2829
- getAllCurrencies,
2830
- getColor,
2831
- getColorIds,
2832
- getColorsByGroup,
2833
- getCountryByIso2,
2834
- getCountryByIso3,
2835
- getCountryDisplayName,
2836
- getCountryDisplayNameByIso3,
2837
- getCurrency,
2838
- getCurrencySymbol,
2839
- getDefaultAttributeIcon,
2840
- getDefaultTabIcon,
2841
- getPhoneMaxDigits,
2842
- getPhoneTrunkPrefix,
2843
- getSortedCountries,
2844
- isArchiveMimeType,
2845
- isAudioMimeType,
2846
- isCodeMimeType,
2847
- isDocumentMimeType,
2848
- isImageMimeType,
2849
- isValidColorId,
2850
- isValidCurrencyCode,
2851
- isValidIso2,
2852
- isValidIso3,
2853
- isVideoMimeType,
2854
- isWithinSizeLimit,
2855
- mbToBytes,
2856
- stripTrunkPrefix
2857
- };
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ var E=Object.defineProperty;var o=(e,r)=>E(e,"name",{value:r,configurable:!0});var i={JPEG:"image/jpeg",PNG:"image/png",GIF:"image/gif",WEBP:"image/webp",SVG:"image/svg+xml",BMP:"image/bmp",TIFF:"image/tiff",ICO:"image/x-icon",HEIC:"image/heic",HEIF:"image/heif"},D=Object.values(i),a={PDF:"application/pdf",DOC:"application/msword",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",XLS:"application/vnd.ms-excel",XLSX:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PPT:"application/vnd.ms-powerpoint",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation",ODT:"application/vnd.oasis.opendocument.text",ODS:"application/vnd.oasis.opendocument.spreadsheet",ODP:"application/vnd.oasis.opendocument.presentation",RTF:"application/rtf",TXT:"text/plain",CSV:"text/csv",MARKDOWN:"text/markdown"},_=Object.values(a),P={ZIP:"application/zip",RAR:"application/vnd.rar",TAR:"application/x-tar",GZIP:"application/gzip","7Z":"application/x-7z-compressed",BZ2:"application/x-bzip2"},A=Object.values(P),I={MP3:"audio/mpeg",WAV:"audio/wav",OGG:"audio/ogg",AAC:"audio/aac",FLAC:"audio/flac",M4A:"audio/mp4",WEBM:"audio/webm"},R=Object.values(I),S={MP4:"video/mp4",WEBM:"video/webm",OGG:"video/ogg",AVI:"video/x-msvideo",MOV:"video/quicktime",MKV:"video/x-matroska",FLV:"video/x-flv",WMV:"video/x-ms-wmv",MPEG:"video/mpeg"},N=Object.values(S),m={JAVASCRIPT:"text/javascript",JAVASCRIPT_LEGACY:"application/javascript",TYPESCRIPT:"text/typescript",JSON:"application/json",XML:"application/xml",HTML:"text/html",CSS:"text/css",PYTHON:"text/x-python",JAVA:"text/x-java-source",C:"text/x-c",CPP:"text/x-c++",YAML:"application/x-yaml",SQL:"application/sql"},O=Object.values(m),B={TTF:"font/ttf",OTF:"font/otf",WOFF:"font/woff",WOFF2:"font/woff2",EOT:"application/vnd.ms-fontobject"},q=Object.values(B),x=D,k=_,T=A,f=R,C=N,v=O,U=q,ne=[i.JPEG,i.PNG,i.GIF,i.WEBP],ae=[a.PDF,a.DOC,a.DOCX,a.XLS,a.XLSX,a.PPT,a.PPTX],te=[...x,...f,...C],ie=[...x,...k,...T,...f,...C,...v,...U],se=o(e=>x.includes(e),"isImageMimeType"),ce=o(e=>k.includes(e),"isDocumentMimeType"),le=o(e=>T.includes(e),"isArchiveMimeType"),de=o(e=>f.includes(e),"isAudioMimeType"),pe=o(e=>C.includes(e),"isVideoMimeType"),ue=o(e=>v.includes(e),"isCodeMimeType");var L=[i.JPEG,i.PNG,i.WEBP,i.GIF,i.SVG],G=[a.PDF,a.DOC,a.DOCX,a.XLSX,a.TXT,a.MARKDOWN,a.CSV,m.JAVASCRIPT,m.JAVASCRIPT_LEGACY],F=[...L,...G],xe=F.join(","),fe=50*1024*1024,Ce=5;var K={bulk:["bulk_create_records","bulk_delete_records","bulk_search","bulk_update_records"],calendar:["get_calendar_event","get_meeting_transcript","search_calendar_events"],core:["archive_document","ask_questions","attach_file","call_reflex","create_folder","create_record","delete_record","exec_command","get_record","get_schema","get_skill","global_search","initialize_record_drive_structure","list_record_drive","list_workspace_users","load_toolset","publish_artifact","read_document","remove_file","request_work_mode","sandbox_get_file","sandbox_upload_file","sandbox_validate_payload","search_records","update_document","update_record","write_todos"],email:["download_email_attachments","get_email","get_email_thread","search_emails"],memory:["get_memory","save_memory","search_memories"],orchestration:["message_agent","spawn_agent"],schema:["apply_architect_operation","describe_architect_operation","discard_architect_draft","get_default_view","get_schema_history","request_design_review","search_icons"],web:["read_webpage","web_search"]},ye=Object.values(K).flat();var Y={text:"text-align-left",textarea:"align-left",number:"hash",checkbox:"check-square",date:"calendar",phone:"telephone",currency:"dollar-circle",status:"activity",location:"location",timestamp:"clock-circle",select:"chevron-down-circle",multiselect:"list-check",file:"file",user:"user",relation:"link",rating:"star",formula:"math",rollup:"chart-bar-stacked"};function ke(e){return Y[e]??"circle"}o(ke,"getDefaultAttributeIcon");var H={form:"layout",table:"table",custom:"puzzle",activity:"activity",richtext:"file-text",documents:"folder",forms:"clipboard",emails:"envelope",meetings:"calendar"};function Me(e){return H[e]??"circle"}o(Me,"getDefaultTabIcon");import{clsx as z}from"clsx";import{extendTailwindMerge as V}from"tailwind-merge";var Z=V({extend:{classGroups:{"font-size":["text-control-2xs","text-control-xs","text-control-sm","text-control-default","text-control-lg","text-row-sm","text-row-default","text-row-lg","text-metric"],h:["h-control-sm","h-control-default","h-control-lg","h-row-sm","h-row-default","h-row-lg"],w:["w-control-sm","w-control-default","w-control-lg","w-query-popover"],size:["size-control-sm","size-control-default","size-control-lg"],p:["p-surface-sm","p-surface-default","p-surface-lg"]}}});function Ae(...e){return Z(z(e))}o(Ae,"cn");var b=o((e,r)=>`light-dark(${e}, ${r})`,"lightDark");function n(e,r,t){let l=Number.parseInt(e.slice(1,3),16),d=Number.parseInt(e.slice(3,5),16),p=Number.parseInt(e.slice(5,7),16),u=o(M=>`rgba(${l}, ${d}, ${p}, ${M})`,"alpha");return{background:b(u(.15),u(.22)),border:b(u(.3),u(.42)),text:b(r,t),icon:e}}o(n,"defineColor");var h={gray:n("#6B7280","#374151","#D1D5DB"),slate:n("#64748B","#334155","#CBD5E1"),blue:n("#3B82F6","#1D4ED8","#93C5FD"),sky:n("#0EA5E9","#0369A1","#7DD3FC"),indigo:n("#6366F1","#4338CA","#A5B4FC"),green:n("#22C55E","#15803D","#86EFAC"),emerald:n("#10B981","#047857","#6EE7B7"),teal:n("#14B8A6","#0F766E","#5EEAD4"),red:n("#EF4444","#B91C1C","#FCA5A5"),rose:n("#F43F5E","#BE123C","#FDA4AF"),yellow:n("#EAB308","#A16207","#FDE047"),amber:n("#F59E0B","#B45309","#FCD34D"),orange:n("#F97316","#C2410C","#FDBA74"),purple:n("#A855F7","#7E22CE","#D8B4FE"),violet:n("#8B5CF6","#6D28D9","#C4B5FD"),fuchsia:n("#D946EF","#A21CAF","#F0ABFC"),pink:n("#EC4899","#BE185D","#F9A8D4"),cyan:n("#06B6D4","#0E7490","#67E8F9"),lime:n("#84CC16","#4D7C0F","#BEF264")},Se=o(e=>h[e],"getColor"),Ne=o(()=>Object.values(h),"getAllColors"),Oe=o(()=>Object.keys(h),"getColorIds"),Be=o(e=>e in h,"isValidColorId"),X={neutral:["gray","slate"],primary:["blue","indigo","sky"],success:["green","emerald","teal","lime"],danger:["red","rose"],warning:["yellow","amber","orange"],info:["blue","cyan","sky"],special:["purple","violet","fuchsia"],accent:["pink"]},qe=o(e=>[...X[e]],"getColorsByGroup"),Ue={idle:["gray","slate"],in_progress:["blue","indigo","sky","cyan","purple"],finished:["green","emerald","teal"],cancelled:["red","rose"],warning:["yellow","amber","orange"]};var s={FR:{name:"France",iso2:"FR",iso3:"FRA",numericCode:"250",phoneCode:"+33",phoneMaxDigits:10,phoneTrunkPrefix:"0"},US:{name:"United States",iso2:"US",iso3:"USA",numericCode:"840",phoneCode:"+1",phoneMaxDigits:10,phoneTrunkPrefix:""},GB:{name:"United Kingdom",iso2:"GB",iso3:"GBR",numericCode:"826",phoneCode:"+44",phoneMaxDigits:11,phoneTrunkPrefix:"0"},DE:{name:"Germany",iso2:"DE",iso3:"DEU",numericCode:"276",phoneCode:"+49",phoneMaxDigits:11,phoneTrunkPrefix:"0"},ES:{name:"Spain",iso2:"ES",iso3:"ESP",numericCode:"724",phoneCode:"+34",phoneMaxDigits:9,phoneTrunkPrefix:""},IT:{name:"Italy",iso2:"IT",iso3:"ITA",numericCode:"380",phoneCode:"+39",phoneMaxDigits:10,phoneTrunkPrefix:"0"},BE:{name:"Belgium",iso2:"BE",iso3:"BEL",numericCode:"056",phoneCode:"+32",phoneMaxDigits:9,phoneTrunkPrefix:"0"},CH:{name:"Switzerland",iso2:"CH",iso3:"CHE",numericCode:"756",phoneCode:"+41",phoneMaxDigits:10,phoneTrunkPrefix:"0"},NL:{name:"Netherlands",iso2:"NL",iso3:"NLD",numericCode:"528",phoneCode:"+31",phoneMaxDigits:9,phoneTrunkPrefix:"0"},PT:{name:"Portugal",iso2:"PT",iso3:"PRT",numericCode:"620",phoneCode:"+351",phoneMaxDigits:9,phoneTrunkPrefix:""},CA:{name:"Canada",iso2:"CA",iso3:"CAN",numericCode:"124",phoneCode:"+1",phoneMaxDigits:10,phoneTrunkPrefix:""},AU:{name:"Australia",iso2:"AU",iso3:"AUS",numericCode:"036",phoneCode:"+61",phoneMaxDigits:9,phoneTrunkPrefix:"0"},AT:{name:"Austria",iso2:"AT",iso3:"AUT",numericCode:"040",phoneCode:"+43",phoneMaxDigits:11,phoneTrunkPrefix:"0"},SE:{name:"Sweden",iso2:"SE",iso3:"SWE",numericCode:"752",phoneCode:"+46",phoneMaxDigits:10,phoneTrunkPrefix:"0"},NO:{name:"Norway",iso2:"NO",iso3:"NOR",numericCode:"578",phoneCode:"+47",phoneMaxDigits:8,phoneTrunkPrefix:""},DK:{name:"Denmark",iso2:"DK",iso3:"DNK",numericCode:"208",phoneCode:"+45",phoneMaxDigits:8,phoneTrunkPrefix:""},FI:{name:"Finland",iso2:"FI",iso3:"FIN",numericCode:"246",phoneCode:"+358",phoneMaxDigits:10,phoneTrunkPrefix:"0"},IE:{name:"Ireland",iso2:"IE",iso3:"IRL",numericCode:"372",phoneCode:"+353",phoneMaxDigits:10,phoneTrunkPrefix:"0"},PL:{name:"Poland",iso2:"PL",iso3:"POL",numericCode:"616",phoneCode:"+48",phoneMaxDigits:9,phoneTrunkPrefix:""},CZ:{name:"Czech Republic",iso2:"CZ",iso3:"CZE",numericCode:"203",phoneCode:"+420",phoneMaxDigits:9,phoneTrunkPrefix:""},GR:{name:"Greece",iso2:"GR",iso3:"GRC",numericCode:"300",phoneCode:"+30",phoneMaxDigits:10,phoneTrunkPrefix:""},RO:{name:"Romania",iso2:"RO",iso3:"ROU",numericCode:"642",phoneCode:"+40",phoneMaxDigits:10,phoneTrunkPrefix:"0"},HU:{name:"Hungary",iso2:"HU",iso3:"HUN",numericCode:"348",phoneCode:"+36",phoneMaxDigits:9,phoneTrunkPrefix:"06"},LU:{name:"Luxembourg",iso2:"LU",iso3:"LUX",numericCode:"442",phoneCode:"+352",phoneMaxDigits:9,phoneTrunkPrefix:""},SK:{name:"Slovakia",iso2:"SK",iso3:"SVK",numericCode:"703",phoneCode:"+421",phoneMaxDigits:9,phoneTrunkPrefix:"0"},BG:{name:"Bulgaria",iso2:"BG",iso3:"BGR",numericCode:"100",phoneCode:"+359",phoneMaxDigits:9,phoneTrunkPrefix:"0"},HR:{name:"Croatia",iso2:"HR",iso3:"HRV",numericCode:"191",phoneCode:"+385",phoneMaxDigits:9,phoneTrunkPrefix:"0"},SI:{name:"Slovenia",iso2:"SI",iso3:"SVN",numericCode:"705",phoneCode:"+386",phoneMaxDigits:8,phoneTrunkPrefix:"0"},EE:{name:"Estonia",iso2:"EE",iso3:"EST",numericCode:"233",phoneCode:"+372",phoneMaxDigits:8,phoneTrunkPrefix:""},LV:{name:"Latvia",iso2:"LV",iso3:"LVA",numericCode:"428",phoneCode:"+371",phoneMaxDigits:8,phoneTrunkPrefix:""},LT:{name:"Lithuania",iso2:"LT",iso3:"LTU",numericCode:"440",phoneCode:"+370",phoneMaxDigits:8,phoneTrunkPrefix:""},IS:{name:"Iceland",iso2:"IS",iso3:"ISL",numericCode:"352",phoneCode:"+354",phoneMaxDigits:7,phoneTrunkPrefix:""},MT:{name:"Malta",iso2:"MT",iso3:"MLT",numericCode:"470",phoneCode:"+356",phoneMaxDigits:8,phoneTrunkPrefix:""},CY:{name:"Cyprus",iso2:"CY",iso3:"CYP",numericCode:"196",phoneCode:"+357",phoneMaxDigits:8,phoneTrunkPrefix:""},MC:{name:"Monaco",iso2:"MC",iso3:"MCO",numericCode:"492",phoneCode:"+377",phoneMaxDigits:8,phoneTrunkPrefix:""},MX:{name:"Mexico",iso2:"MX",iso3:"MEX",numericCode:"484",phoneCode:"+52",phoneMaxDigits:10,phoneTrunkPrefix:""},BR:{name:"Brazil",iso2:"BR",iso3:"BRA",numericCode:"076",phoneCode:"+55",phoneMaxDigits:11,phoneTrunkPrefix:""},AR:{name:"Argentina",iso2:"AR",iso3:"ARG",numericCode:"032",phoneCode:"+54",phoneMaxDigits:10,phoneTrunkPrefix:""},CL:{name:"Chile",iso2:"CL",iso3:"CHL",numericCode:"152",phoneCode:"+56",phoneMaxDigits:9,phoneTrunkPrefix:""},CO:{name:"Colombia",iso2:"CO",iso3:"COL",numericCode:"170",phoneCode:"+57",phoneMaxDigits:10,phoneTrunkPrefix:""},PE:{name:"Peru",iso2:"PE",iso3:"PER",numericCode:"604",phoneCode:"+51",phoneMaxDigits:9,phoneTrunkPrefix:""},VE:{name:"Venezuela",iso2:"VE",iso3:"VEN",numericCode:"862",phoneCode:"+58",phoneMaxDigits:10,phoneTrunkPrefix:""},EC:{name:"Ecuador",iso2:"EC",iso3:"ECU",numericCode:"218",phoneCode:"+593",phoneMaxDigits:9,phoneTrunkPrefix:""},UY:{name:"Uruguay",iso2:"UY",iso3:"URY",numericCode:"858",phoneCode:"+598",phoneMaxDigits:8,phoneTrunkPrefix:""},PY:{name:"Paraguay",iso2:"PY",iso3:"PRY",numericCode:"600",phoneCode:"+595",phoneMaxDigits:9,phoneTrunkPrefix:""},BO:{name:"Bolivia",iso2:"BO",iso3:"BOL",numericCode:"068",phoneCode:"+591",phoneMaxDigits:8,phoneTrunkPrefix:""},CR:{name:"Costa Rica",iso2:"CR",iso3:"CRI",numericCode:"188",phoneCode:"+506",phoneMaxDigits:8,phoneTrunkPrefix:""},PA:{name:"Panama",iso2:"PA",iso3:"PAN",numericCode:"591",phoneCode:"+507",phoneMaxDigits:8,phoneTrunkPrefix:""},CN:{name:"China",iso2:"CN",iso3:"CHN",numericCode:"156",phoneCode:"+86",phoneMaxDigits:11,phoneTrunkPrefix:""},JP:{name:"Japan",iso2:"JP",iso3:"JPN",numericCode:"392",phoneCode:"+81",phoneMaxDigits:11,phoneTrunkPrefix:"0"},IN:{name:"India",iso2:"IN",iso3:"IND",numericCode:"356",phoneCode:"+91",phoneMaxDigits:10,phoneTrunkPrefix:""},KR:{name:"South Korea",iso2:"KR",iso3:"KOR",numericCode:"410",phoneCode:"+82",phoneMaxDigits:11,phoneTrunkPrefix:"0"},SG:{name:"Singapore",iso2:"SG",iso3:"SGP",numericCode:"702",phoneCode:"+65",phoneMaxDigits:8,phoneTrunkPrefix:""},HK:{name:"Hong Kong",iso2:"HK",iso3:"HKG",numericCode:"344",phoneCode:"+852",phoneMaxDigits:8,phoneTrunkPrefix:""},TW:{name:"Taiwan",iso2:"TW",iso3:"TWN",numericCode:"158",phoneCode:"+886",phoneMaxDigits:10,phoneTrunkPrefix:"0"},TH:{name:"Thailand",iso2:"TH",iso3:"THA",numericCode:"764",phoneCode:"+66",phoneMaxDigits:9,phoneTrunkPrefix:"0"},MY:{name:"Malaysia",iso2:"MY",iso3:"MYS",numericCode:"458",phoneCode:"+60",phoneMaxDigits:10,phoneTrunkPrefix:"0"},ID:{name:"Indonesia",iso2:"ID",iso3:"IDN",numericCode:"360",phoneCode:"+62",phoneMaxDigits:12,phoneTrunkPrefix:"0"},PH:{name:"Philippines",iso2:"PH",iso3:"PHL",numericCode:"608",phoneCode:"+63",phoneMaxDigits:10,phoneTrunkPrefix:"0"},VN:{name:"Vietnam",iso2:"VN",iso3:"VNM",numericCode:"704",phoneCode:"+84",phoneMaxDigits:10,phoneTrunkPrefix:"0"},PK:{name:"Pakistan",iso2:"PK",iso3:"PAK",numericCode:"586",phoneCode:"+92",phoneMaxDigits:10,phoneTrunkPrefix:"0"},BD:{name:"Bangladesh",iso2:"BD",iso3:"BGD",numericCode:"050",phoneCode:"+880",phoneMaxDigits:10,phoneTrunkPrefix:"0"},IL:{name:"Israel",iso2:"IL",iso3:"ISR",numericCode:"376",phoneCode:"+972",phoneMaxDigits:10,phoneTrunkPrefix:"0"},AE:{name:"United Arab Emirates",iso2:"AE",iso3:"ARE",numericCode:"784",phoneCode:"+971",phoneMaxDigits:9,phoneTrunkPrefix:""},SA:{name:"Saudi Arabia",iso2:"SA",iso3:"SAU",numericCode:"682",phoneCode:"+966",phoneMaxDigits:9,phoneTrunkPrefix:""},TR:{name:"Turkey",iso2:"TR",iso3:"TUR",numericCode:"792",phoneCode:"+90",phoneMaxDigits:10,phoneTrunkPrefix:"0"},NZ:{name:"New Zealand",iso2:"NZ",iso3:"NZL",numericCode:"554",phoneCode:"+64",phoneMaxDigits:10,phoneTrunkPrefix:"0"},ZA:{name:"South Africa",iso2:"ZA",iso3:"ZAF",numericCode:"710",phoneCode:"+27",phoneMaxDigits:9,phoneTrunkPrefix:"0"},EG:{name:"Egypt",iso2:"EG",iso3:"EGY",numericCode:"818",phoneCode:"+20",phoneMaxDigits:10,phoneTrunkPrefix:"0"},NG:{name:"Nigeria",iso2:"NG",iso3:"NGA",numericCode:"566",phoneCode:"+234",phoneMaxDigits:10,phoneTrunkPrefix:"0"},KE:{name:"Kenya",iso2:"KE",iso3:"KEN",numericCode:"404",phoneCode:"+254",phoneMaxDigits:9,phoneTrunkPrefix:"0"},MA:{name:"Morocco",iso2:"MA",iso3:"MAR",numericCode:"504",phoneCode:"+212",phoneMaxDigits:9,phoneTrunkPrefix:"0"},TN:{name:"Tunisia",iso2:"TN",iso3:"TUN",numericCode:"788",phoneCode:"+216",phoneMaxDigits:8,phoneTrunkPrefix:""},DZ:{name:"Algeria",iso2:"DZ",iso3:"DZA",numericCode:"012",phoneCode:"+213",phoneMaxDigits:9,phoneTrunkPrefix:"0"},QA:{name:"Qatar",iso2:"QA",iso3:"QAT",numericCode:"634",phoneCode:"+974",phoneMaxDigits:8,phoneTrunkPrefix:""},KW:{name:"Kuwait",iso2:"KW",iso3:"KWT",numericCode:"414",phoneCode:"+965",phoneMaxDigits:8,phoneTrunkPrefix:""},OM:{name:"Oman",iso2:"OM",iso3:"OMN",numericCode:"512",phoneCode:"+968",phoneMaxDigits:8,phoneTrunkPrefix:""},BH:{name:"Bahrain",iso2:"BH",iso3:"BHR",numericCode:"048",phoneCode:"+973",phoneMaxDigits:8,phoneTrunkPrefix:""},LB:{name:"Lebanon",iso2:"LB",iso3:"LBN",numericCode:"422",phoneCode:"+961",phoneMaxDigits:8,phoneTrunkPrefix:"0"},JO:{name:"Jordan",iso2:"JO",iso3:"JOR",numericCode:"400",phoneCode:"+962",phoneMaxDigits:9,phoneTrunkPrefix:"0"},RU:{name:"Russia",iso2:"RU",iso3:"RUS",numericCode:"643",phoneCode:"+7",phoneMaxDigits:10,phoneTrunkPrefix:""},UA:{name:"Ukraine",iso2:"UA",iso3:"UKR",numericCode:"804",phoneCode:"+380",phoneMaxDigits:9,phoneTrunkPrefix:"0"},BY:{name:"Belarus",iso2:"BY",iso3:"BLR",numericCode:"112",phoneCode:"+375",phoneMaxDigits:9,phoneTrunkPrefix:""},KZ:{name:"Kazakhstan",iso2:"KZ",iso3:"KAZ",numericCode:"398",phoneCode:"+7",phoneMaxDigits:10,phoneTrunkPrefix:""}},Fe=o(e=>s[e.toUpperCase()],"getCountryByIso2"),j=o(e=>Object.values(s).find(r=>r.iso3.toUpperCase()===e.toUpperCase()),"getCountryByIso3"),W=o(()=>Object.values(s),"getAllCountries"),Ke=o(e=>s[e.toUpperCase()]?.phoneMaxDigits??15,"getPhoneMaxDigits"),Ye=o(e=>s[e.toUpperCase()]?.phoneTrunkPrefix??"","getPhoneTrunkPrefix"),He=o(e=>e.toUpperCase()in s,"isValidIso2"),ze=o(e=>Object.values(s).some(r=>r.iso3.toUpperCase()===e.toUpperCase()),"isValidIso3"),y=new Map;function $(e){let r=e.join("\0"),t=y.get(r);if(t!==void 0)return t;try{let l=new Intl.DisplayNames(e,{type:"region"});return y.set(r,l),l}catch{return y.set(r,null),null}}o($,"_getDisplayNames");function w(e,r=["fr","en"]){let t=e.toUpperCase(),l=Array.isArray(r)?r:[r],d=$(l);if(d)try{let p=d.of(t);if(p)return p}catch{}return s[t]?.name??t}o(w,"getCountryDisplayName");function Ve(e,r){let t=j(e);return t?w(t.iso2,r):e}o(Ve,"getCountryDisplayNameByIso3");function Ze(e="fr"){return W().sort((r,t)=>w(r.iso2,e).localeCompare(w(t.iso2,e),e))}o(Ze,"getSortedCountries");function Xe(e,r){return r&&e.startsWith(r)?e.slice(r.length):e}o(Xe,"stripTrunkPrefix");var g={USD:{code:"USD",name:"US Dollar",symbol:"$",decimals:2},EUR:{code:"EUR",name:"Euro",symbol:"\u20AC",decimals:2},GBP:{code:"GBP",name:"British Pound",symbol:"\xA3",decimals:2},JPY:{code:"JPY",name:"Japanese Yen",symbol:"\xA5",decimals:0},CNY:{code:"CNY",name:"Chinese Yuan",symbol:"\xA5",decimals:2},CHF:{code:"CHF",name:"Swiss Franc",symbol:"CHF",decimals:2},SEK:{code:"SEK",name:"Swedish Krona",symbol:"kr",decimals:2},NOK:{code:"NOK",name:"Norwegian Krone",symbol:"kr",decimals:2},DKK:{code:"DKK",name:"Danish Krone",symbol:"kr",decimals:2},PLN:{code:"PLN",name:"Polish Zloty",symbol:"z\u0142",decimals:2},CZK:{code:"CZK",name:"Czech Koruna",symbol:"K\u010D",decimals:2},HUF:{code:"HUF",name:"Hungarian Forint",symbol:"Ft",decimals:0},RON:{code:"RON",name:"Romanian Leu",symbol:"lei",decimals:2},BGN:{code:"BGN",name:"Bulgarian Lev",symbol:"\u043B\u0432",decimals:2},HRK:{code:"HRK",name:"Croatian Kuna",symbol:"kn",decimals:2},ISK:{code:"ISK",name:"Icelandic Krona",symbol:"kr",decimals:0},RUB:{code:"RUB",name:"Russian Ruble",symbol:"\u20BD",decimals:2},UAH:{code:"UAH",name:"Ukrainian Hryvnia",symbol:"\u20B4",decimals:2},TRY:{code:"TRY",name:"Turkish Lira",symbol:"\u20BA",decimals:2},CAD:{code:"CAD",name:"Canadian Dollar",symbol:"CA$",decimals:2},MXN:{code:"MXN",name:"Mexican Peso",symbol:"MX$",decimals:2},BRL:{code:"BRL",name:"Brazilian Real",symbol:"R$",decimals:2},ARS:{code:"ARS",name:"Argentine Peso",symbol:"AR$",decimals:2},CLP:{code:"CLP",name:"Chilean Peso",symbol:"CL$",decimals:0},COP:{code:"COP",name:"Colombian Peso",symbol:"COL$",decimals:0},PEN:{code:"PEN",name:"Peruvian Sol",symbol:"S/",decimals:2},UYU:{code:"UYU",name:"Uruguayan Peso",symbol:"UY$",decimals:2},AUD:{code:"AUD",name:"Australian Dollar",symbol:"A$",decimals:2},NZD:{code:"NZD",name:"New Zealand Dollar",symbol:"NZ$",decimals:2},HKD:{code:"HKD",name:"Hong Kong Dollar",symbol:"HK$",decimals:2},SGD:{code:"SGD",name:"Singapore Dollar",symbol:"S$",decimals:2},KRW:{code:"KRW",name:"South Korean Won",symbol:"\u20A9",decimals:0},INR:{code:"INR",name:"Indian Rupee",symbol:"\u20B9",decimals:2},IDR:{code:"IDR",name:"Indonesian Rupiah",symbol:"Rp",decimals:0},MYR:{code:"MYR",name:"Malaysian Ringgit",symbol:"RM",decimals:2},PHP:{code:"PHP",name:"Philippine Peso",symbol:"\u20B1",decimals:2},THB:{code:"THB",name:"Thai Baht",symbol:"\u0E3F",decimals:2},VND:{code:"VND",name:"Vietnamese Dong",symbol:"\u20AB",decimals:0},TWD:{code:"TWD",name:"Taiwan Dollar",symbol:"NT$",decimals:0},PKR:{code:"PKR",name:"Pakistani Rupee",symbol:"\u20A8",decimals:2},BDT:{code:"BDT",name:"Bangladeshi Taka",symbol:"\u09F3",decimals:2},AED:{code:"AED",name:"UAE Dirham",symbol:"\u062F.\u0625",decimals:2},SAR:{code:"SAR",name:"Saudi Riyal",symbol:"\uFDFC",decimals:2},ILS:{code:"ILS",name:"Israeli Shekel",symbol:"\u20AA",decimals:2},QAR:{code:"QAR",name:"Qatari Riyal",symbol:"\uFDFC",decimals:2},KWD:{code:"KWD",name:"Kuwaiti Dinar",symbol:"\u062F.\u0643",decimals:3},BHD:{code:"BHD",name:"Bahraini Dinar",symbol:"\u062F.\u0628",decimals:3},OMR:{code:"OMR",name:"Omani Rial",symbol:"\uFDFC",decimals:3},JOD:{code:"JOD",name:"Jordanian Dinar",symbol:"\u062F.\u0627",decimals:3},LBP:{code:"LBP",name:"Lebanese Pound",symbol:"\u0644.\u0644",decimals:0},ZAR:{code:"ZAR",name:"South African Rand",symbol:"R",decimals:2},EGP:{code:"EGP",name:"Egyptian Pound",symbol:"\xA3",decimals:2},NGN:{code:"NGN",name:"Nigerian Naira",symbol:"\u20A6",decimals:2},KES:{code:"KES",name:"Kenyan Shilling",symbol:"KSh",decimals:2},MAD:{code:"MAD",name:"Moroccan Dirham",symbol:"\u062F.\u0645.",decimals:2},TND:{code:"TND",name:"Tunisian Dinar",symbol:"\u062F.\u062A",decimals:3},DZD:{code:"DZD",name:"Algerian Dinar",symbol:"\u062F.\u062C",decimals:2},NIS:{code:"NIS",name:"Israeli New Shekel",symbol:"\u20AA",decimals:2}},$e=o(e=>g[e.toUpperCase()],"getCurrency"),Je=o(()=>Object.values(g),"getAllCurrencies"),Qe=o(e=>g[e.toUpperCase()]?.symbol||e,"getCurrencySymbol"),eo=o(e=>e.toUpperCase()in g,"isValidCurrencyCode");var J={B_1:1,B_10:10,B_100:100,B_512:512},Q={KB_1:1024,KB_2:2*1024,KB_5:5*1024,KB_10:10*1024,KB_50:50*1024,KB_100:100*1024,KB_500:500*1024},ee={MB_1:1024*1024,MB_2:2*1024*1024,MB_5:5*1024*1024,MB_10:10*1024*1024,MB_20:20*1024*1024,MB_25:25*1024*1024,MB_50:50*1024*1024,MB_100:100*1024*1024,MB_200:200*1024*1024,MB_500:500*1024*1024},oe={GB_1:1024*1024*1024,GB_2:2*1024*1024*1024,GB_5:5*1024*1024*1024,GB_10:10*1024*1024*1024},c={...J,...Q,...ee,...oe},no={AVATAR:c.MB_2,IMAGE:c.MB_5,DOCUMENT:c.MB_10,PRESENTATION:c.MB_25,AUDIO:c.MB_50,VIDEO:c.MB_500,ARCHIVE:c.GB_1},ao=o(e=>e*1024*1024,"mbToBytes"),to=o(e=>e*1024*1024*1024,"gbToBytes"),io=o(e=>e/(1024*1024),"bytesToMb"),so=o(e=>e/(1024*1024*1024),"bytesToGb"),co=o((e,r)=>e<=r,"isWithinSizeLimit");var uo=["a-arrow-down","a-arrow-up","academic-hat","accessibility","activity-square","activity","add-queue","aeroplane","air-conditioner","airplay","airpods","alarm-check","alarm-minus","alarm-plus","alarm-smoke","alarm-snooze","alarm-x","alarm","album","align-bottom","align-horizontal","align-left","align-right","align-top","align-vertical","alt","ambulance","ampersand-square","ampersand","ampersands","anchor","angry-circle","angry-ghost","angry-square","annoyed-circle","annoyed-ghost","annoyed-square","aperture","api","ar","archive","arrow-diagonal-one","arrow-diagonal-two","arrow-down-circle","arrow-down-left-circle","arrow-down-left-square","arrow-down-left-waves","arrow-down-left","arrow-down-right-circle","arrow-down-right-square","arrow-down-right-waves","arrow-down-right","arrow-down-square","arrow-down-waves","arrow-down","arrow-left-circle","arrow-left-right","arrow-left-square","arrow-left-waves","arrow-left","arrow-long-down-left","arrow-long-down-right","arrow-long-down","arrow-long-left","arrow-long-right","arrow-long-up-left","arrow-long-up-right","arrow-long-up","arrow-right-circle","arrow-right-square","arrow-right-waves","arrow-right","arrow-up-circle","arrow-up-down","arrow-up-left-circle","arrow-up-left-square","arrow-up-left-waves","arrow-up-left","arrow-up-right-circle","arrow-up-right-square","arrow-up-right-waves","arrow-up-right","arrow-up-square","arrow-up-waves","arrow-up","asterisk-circle","asterisk-diamond","asterisk-hexagon","asterisk-octagon","asterisk-square","asterisk-waves","at","atom","baby","backpack","badge","baggage-claim","ban","bank","baseball","bath","battery-charging-four","battery-charging-one","battery-charging-three","battery-charging-two","battery-charging","battery-check","battery-empty","battery-full","battery-minus","battery-plus","battery-x","bell-check","bell-home","bell-minus","bell-on","bell-plus","bell-slash","bell-snooze","bell-user","bell-x","bell","binoculars","bitcoin-circle","bitcoin-diamond","bitcoin-hexagon","bitcoin-octagon","bitcoin-square","bitcoin-waves","bitcoin","bluetooth","boat","book-check","book-dot","book-home","book-image","book-minus","book-open","book-plus","book-slash","book-snooze","book-user","book-x","book","bookmark-check","bookmark-dot","bookmark-home","bookmark-minus","bookmark-plus","bookmark-slash","bookmark-snooze","bookmark-user","bookmark-x","bookmark","bounding-box","bowl","box","brand-chrome","brand-codepen","brand-codesandbox","brand-dribbble","brand-facebook","brand-figma","brand-framer","brand-github","brand-gitlab","brand-google","brand-instagram","brand-linkedin","brand-pinterest","brand-pocket","brand-slack","brand-spotify","brand-telegram","brand-threads","brand-trello","brand-twitch","brand-twitter","brand-x","brand-youtube","briefcase-conveyor-belt","briefcase","brightness-high","brightness-low","bubbles","building-one","building","cable-car","cake","calendar-check","calendar-down","calendar-minus","calendar-plus","calendar-slash","calendar-up","calendar-x","calendar","camera-slash","camera","campfire","cannabis","caravan","cart-check","cart-minus","cart-plus","cart-x","cart","cast-screen","center-focus","chart-area","chart-bar-big","chart-bar-decreasing","chart-bar-increasing","chart-bar-one","chart-bar-stacked","chart-bar","chart-bubble","chart-candlestick","chart-column-big","chart-column-decreasing","chart-column-increasing","chart-column-stacked","chart-column","chart-gantt","chart-graph","chart-line","chart-network","chart-no-axes-column-decreasing","chart-no-axes-column-increasing","chart-no-axes-column","chart-no-axes-combined","chart-no-axes-gantt","chart-pie-one","chart-pie-two","chart-pie","chart-scatter","chart-spline","chat-check","chat-dots","chat-messages","chat-minus","chat-plus","chat-x","chat","check-circle-one","check-circle","check-diamond","check-hexagon","check-octagon","check-square-one","check-square","check-waves","check","chevron-double-down-left","chevron-double-down-right","chevron-double-down","chevron-double-left","chevron-double-right","chevron-double-up-left","chevron-double-up-right","chevron-double-up","chevron-down-circle","chevron-down-left-circle","chevron-down-left-square","chevron-down-left-waves","chevron-down-left","chevron-down-right-circle","chevron-down-right-square","chevron-down-right-waves","chevron-down-right","chevron-down-square","chevron-down-waves","chevron-down","chevron-left-circle","chevron-left-square","chevron-left-waves","chevron-left","chevron-right-circle","chevron-right-square","chevron-right-waves","chevron-right","chevron-up-circle","chevron-up-down","chevron-up-left-circle","chevron-up-left-square","chevron-up-left-waves","chevron-up-left","chevron-up-right-circle","chevron-up-right-square","chevron-up-right-waves","chevron-up-right","chevron-up-square","chevron-up-waves","chevron-up","chip","cigarette-off","cigarette","circle-dashed","circle-half-circle","circle-half","circle-notch","circle","click","clipboard","clock-circle","clock-diamond","clock-eight","clock-eleven","clock-five","clock-four","clock-hand","clock-hexagon","clock-nine","clock-octagon","clock-one","clock-seven","clock-six","clock-square","clock-ten","clock-three","clock-twelve","clock-two","clock-waves","cloud-download","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon-rain","cloud-moon","cloud-off","cloud-rain-wind","cloud-rain","cloud-snow","cloud-sun-rain","cloud-sun","cloud-upload","cloud","cloudy","cocktail","code-circle","code-diamond","code-hexagon","code-octagon","code-square","code-waves","code","coffee","cog-four","cog-one","cog-three","cog-two","cog","columns","command","compass","components","confetti","config-vertical","config","contactless-circle","contactless","controller","cookie","copy","copyleft","copyright-slash","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","credit-card-check","credit-card-minus","credit-card-plus","credit-card-x","credit-card","croissant","crop","crosshair","cupcake","danger-circle","danger-diamond","danger-hexagon","danger-octagon","danger-square","danger-triangle","danger-waves","danger","database","daze-circle","daze-ghost","daze-square","delete","desktop","diamond","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","dislike","divide","dollar-circle","dollar-diamond","dollar-hexagon","dollar-octagon","dollar-square","dollar-waves","dollar","door-closed-locked","door-closed","door-open","dots-circle","dots-diamond","dots-hexagon","dots-octagon","dots-square","dots-vertical-circle","dots-vertical-diamond","dots-vertical-hexagon","dots-vertical-octagon","dots-vertical-square","dots-vertical-waves","dots-vertical","dots-waves","dots","download","drop","droplet-off","droplet","droplets","ear-slash","ear","earth","eclipse","edit-one","edit","egg","eight-circle","eight-diamond","eight-hexagon","eight-octagon","eight-square","eight-waves","eight","elevator","envelope-open","envelope","euro-circle","euro-diamond","euro-hexagon","euro-octagon","euro-square","euro-waves","euro","exclude","external-link","eye-slash","eye","face-id","fat-arrow-down-left","fat-arrow-down-right","fat-arrow-down","fat-arrow-left","fat-arrow-right","fat-arrow-up-left","fat-arrow-up-right","fat-arrow-up","fat-corner-down-left","fat-corner-down-right","fat-corner-left-down","fat-corner-left-up","fat-corner-right-down","fat-corner-right-up","fat-corner-up-left","fat-corner-up-right","female","file-check","file-minus","file-plus","file-text","file-x","file","film","filter-one","filter","fine-tune","fire","five-circle","five-diamond","five-hexagon","five-octagon","five-square","five-waves","five","flag-one","flag","flame-kindling","flame","flask","flower-2","flower","folder-check","folder-heart","folder-kanban","folder-minus","folder-one","folder-plus","folder-slash","folder-two","folder-x","folder","forward-circle","forward-diamond","forward-hexagon","forward-octagon","forward-square","forward-waves","forward","four-circle","four-diamond","four-hexagon","four-octagon","four-square","four-waves","four","frame","funny-circle","funny-ghost","funny-square","gift","git-branch","git-circle","git-commit","git-diamond","git-diff","git-hexagon","git-merge","git-octagon","git-pull-request","git-square","git-waves","glasses","globe","grid-one","grid","hand","hard-drive","hash-circle","hash-diamond","hash-hexagon","hash-octagon","hash-square","hash-waves","hash","haze","heading-five","heading-four","heading-one","heading-six","heading-three","heading-two","heading","headphones","heart-broken","heart-check","heart-circle","heart-diamond","heart-dot","heart-hexagon","heart-home","heart-minus","heart-octagon","heart-plus","heart-slash","heart-snooze","heart-square","heart-user","heart-waves","heart-x","heart","hexagon","home-check","home-minus","home-plus","home-smile","home-x","home","image-circle","image-rectangle","image","inbox-archive","inbox-check","inbox-down","inbox-minus","inbox-plus","inbox-up","inbox-x","inbox","incognito","indifferent-circle","indifferent-ghost","indifferent-square","infinity","info-circle","info-diamond","info-hexagon","info-octagon","info-square","info-triangle","info-waves","info","intersect","kanban","key","keyboard-brightness-high","keyboard-brightness-low","keyboard","label","lamp","layers-one","layers-three","layers-two","layout","leaf","leaves","letter-a-circle","letter-a-diamond","letter-a-hexagon","letter-a-octagon","letter-a-square","letter-a-waves","letter-a","letter-b-circle","letter-b-diamond","letter-b-hexagon","letter-b-octagon","letter-b-square","letter-b-waves","letter-b","letter-c-circle","letter-c-diamond","letter-c-hexagon","letter-c-octagon","letter-c-square","letter-c-waves","letter-c","letter-d-circle","letter-d-diamond","letter-d-hexagon","letter-d-octagon","letter-d-square","letter-d-waves","letter-d","letter-e-circle","letter-e-diamond","letter-e-hexagon","letter-e-octagon","letter-e-square","letter-e-waves","letter-e","letter-f-circle","letter-f-diamond","letter-f-hexagon","letter-f-octagon","letter-f-square","letter-f-waves","letter-f","letter-g-circle","letter-g-diamond","letter-g-hexagon","letter-g-octagon","letter-g-square","letter-g-waves","letter-g","letter-h-circle","letter-h-diamond","letter-h-hexagon","letter-h-octagon","letter-h-square","letter-h-waves","letter-h","letter-i-circle","letter-i-diamond","letter-i-hexagon","letter-i-octagon","letter-i-square","letter-i-waves","letter-i","letter-j-circle","letter-j-diamond","letter-j-hexagon","letter-j-octagon","letter-j-square","letter-j-waves","letter-j","letter-k-circle","letter-k-diamond","letter-k-hexagon","letter-k-octagon","letter-k-square","letter-k-waves","letter-k","letter-l-circle","letter-l-diamond","letter-l-hexagon","letter-l-octagon","letter-l-square","letter-l-waves","letter-l","letter-m-circle","letter-m-diamond","letter-m-hexagon","letter-m-octagon","letter-m-square","letter-m-waves","letter-m","letter-n-circle","letter-n-diamond","letter-n-hexagon","letter-n-octagon","letter-n-square","letter-n-waves","letter-n","letter-o-circle","letter-o-diamond","letter-o-hexagon","letter-o-octagon","letter-o-square","letter-o-waves","letter-o","letter-p-circle","letter-p-diamond","letter-p-hexagon","letter-p-octagon","letter-p-square","letter-p-waves","letter-p","letter-q-circle","letter-q-diamond","letter-q-hexagon","letter-q-octagon","letter-q-square","letter-q-waves","letter-q","letter-r-circle","letter-r-diamond","letter-r-hexagon","letter-r-octagon","letter-r-square","letter-r-waves","letter-r","letter-s-circle","letter-s-diamond","letter-s-hexagon","letter-s-octagon","letter-s-square","letter-s-waves","letter-s","letter-t-circle","letter-t-diamond","letter-t-hexagon","letter-t-octagon","letter-t-square","letter-t-waves","letter-t","letter-u-circle","letter-u-diamond","letter-u-hexagon","letter-u-octagon","letter-u-square","letter-u-waves","letter-u","letter-v-circle","letter-v-diamond","letter-v-hexagon","letter-v-octagon","letter-v-square","letter-v-waves","letter-v","letter-w-circle","letter-w-diamond","letter-w-hexagon","letter-w-octagon","letter-w-square","letter-w-waves","letter-w","letter-x-circle","letter-x-diamond","letter-x-hexagon","letter-x-octagon","letter-x-square","letter-x-waves","letter-x","letter-y-circle","letter-y-diamond","letter-y-hexagon","letter-y-octagon","letter-y-square","letter-y-waves","letter-y","letter-z-circle","letter-z-diamond","letter-z-hexagon","letter-z-octagon","letter-z-square","letter-z-waves","letter-z","lightning-off","lightning","like","line-chart-circle","line-chart-diamond","line-chart-hexagon","line-chart-octagon","line-chart-square","line-chart-waves","link-one","link-two","link","list-check","list-number","list","location-check","location-home","location-minus","location-plus","location-selected","location-slash","location-snooze","location-user","location-x","location","lock-circle","lock-diamond","lock-hexagon","lock-keyhole","lock-octagon","lock-open-keyhole","lock-open-password","lock-open","lock-password","lock-square","lock-waves","lock","login","logout","magnet","male","map","mask","math-square","math","maximize-one","maximize","menu","message-check","message-dots","message-minus","message-plus","message-reply","message-x","message","microphone-slash","microphone","minimize-one","minimize","minus-circle","minus-diamond","minus-hexagon","minus-octagon","minus-square","minus-waves","minus","mobile-signal-five","mobile-signal-four","mobile-signal-one","mobile-signal-three","mobile-signal-two","mobile","moon-star","moon","mountain-snow","mountain","mouse-pointer","move-diagonal-one","move-diagonal","move-horizontal","move-vertical","move","music-circle","music-diamond","music-hexagon","music-octagon","music-square","music-waves","music","myna","navigation-one","navigation","nine-circle","nine-diamond","nine-hexagon","nine-octagon","nine-square","nine-waves","nine","notification","octagon","one-circle","one-diamond","one-hexagon","one-octagon","one-square","one-waves","one","option","package","paint","panel-bottom-close","panel-bottom-inactive","panel-bottom-open","panel-bottom","panel-left-close","panel-left-inactive","panel-left-open","panel-left","panel-right-close","panel-right-inactive","panel-right-open","panel-right","panel-top-close","panel-top-inactive","panel-top-open","panel-top","paperclip","parking","password","path","pause-circle","pause-diamond","pause-hexagon","pause-octagon","pause-square","pause-waves","pause","pen","pencil","percentage-circle","percentage-diamond","percentage-hexagon","percentage-octagon","percentage-square","percentage-waves","percentage","pin","pizza","planet","play-circle","play-diamond","play-hexagon","play-octagon","play-square","play-waves","play","plus-circle","plus-diamond","plus-hexagon","plus-octagon","plus-square","plus-waves","plus","pokeball","power","presentation","printer","puzzle","question-circle","question-diamond","question-hexagon","question-octagon","question-square","question-waves","question","radio","rainbow","reception-bell","record","rectangle-vertical","rectangle","redo","refresh-alt","refresh","repeat","rewind-circle","rewind-diamond","rewind-hexagon","rewind-octagon","rewind-square","rewind-waves","rewind","rhombus","ribbon","rocket","room-service","rows","rss","ruler","rupee-circle","rupee-diamond","rupee-hexagon","rupee-octagon","rupee-square","rupee-waves","rupee","sad-circle","sad-ghost","sad-square","save","scan","scissors","sea-waves","search-check","search-circle","search-diamond","search-dot","search-hexagon","search-home","search-minus","search-octagon","search-plus","search-slash","search-snooze","search-square","search-user","search-waves","search-x","search","select-multiple","send","servers","seven-circle","seven-diamond","seven-hexagon","seven-octagon","seven-square","seven-waves","seven","share","shell","shield-check","shield-crossed","shield-minus","shield-one","shield-plus","shield-slash","shield-two","shield-x","shield","shooting-star","shopping-bag","shovel","shrub","shuffle-alt","shuffle","sidebar-alt","sidebar","signal-circle","signal-diamond","signal-hexagon","signal-octagon","signal-square","signal-waves","signal","six-circle","six-diamond","six-hexagon","six-octagon","six-square","six-waves","six","skip-back","skip-forward","slash-circle","slash-diamond","slash-hexagon","slash-octagon","slash-square","slash-waves","smile-circle","smile-ghost","smile-square","snow","snowflake","sofa","sort","sparkles","speaker","spinner-one","spinner","sprout","square-chart-gantt","square-dashed-kanban","square-dashed","square-half","square-kanban","square","star","stop-circle","stop-diamond","stop-hexagon","stop-octagon","stop-square","stop-waves","stop","store","subtract","sun-dim","sun-medium","sun-snow","sun","sunrise","sunset","support","swatches","table","tablet","tag-plus","tag","tally-five","tally-four","tally-one","tally-three","tally-two","target","telephone-call","telephone-forward","telephone-in","telephone-missed","telephone-out","telephone-slash","telephone","tent-tree","tent","terminal","text-align-center","text-align-left","text-align-right","text-justify","thermometer-snowflake","thermometer-sun","thermometer","three-circle","three-diamond","three-hexagon","three-octagon","three-square","three-waves","three","ticket-slash","ticket","toggle-left","toggle-right","tool","tornado","train","trash-one","trash-two","trash","tree-deciduous","tree-palm","tree-pine","tree","trees","trending-down","trending-up-down","trending-up","triangle","truck","tv","two-circle","two-diamond","two-hexagon","two-octagon","two-square","two-waves","two","type-bold","type-italic","type-text","type-underline","umbrella-off","umbrella","undo","union","unlink","upload","user-check","user-circle","user-diamond","user-hexagon","user-minus","user-octagon","user-plus","user-settings","user-square","user-waves","user-x","user","users-group","users","video-slash","video","volume-check","volume-high","volume-low","volume-minus","volume-none","volume-plus","volume-slash","volume-x","watch","waves","webcam","wheel","wheelchair","wifi-check","wifi-low","wifi-medium","wifi-minus","wifi-plus","wifi-slash","wifi-x","wifi","wind-arrow-down","wind","winds","wine","wink-circle","wink-ghost","wink-square","wrench","x-circle","x-diamond","x-hexagon","x-octagon","x-square","x-triangle","x-waves","x","yen-circle","yen-diamond","yen-hexagon","yen-octagon","yen-square","yen-waves","yen","zap-off","zap","zero-circle","zero-diamond","zero-hexagon","zero-octagon","zero-square","zero-waves","zero"];var ho=100,go=160;var fo=100,Co=160;var yo="00000000-0000-0000-0000-000000000000";var ko=[{id:"email",label:"Email",icon:"envelope",group:"communication",storage:{kind:"format",value:"email"}},{id:"url",label:"URL",icon:"link",group:"communication",storage:{kind:"format",value:"url"}},{id:"phone_fr",label:"T\xE9l\xE9phone (FR)",icon:"telephone",group:"communication",storage:{kind:"pattern",regex:"^0[1-9]([-. ]?[0-9]{2}){4}$"}},{id:"slug",label:"Slug (kebab-case)",icon:"hash",group:"identifiants",storage:{kind:"format",value:"slug"}},{id:"alphanumeric",label:"Alphanum\xE9rique",icon:"type-text",group:"identifiants",storage:{kind:"pattern",regex:"^[a-zA-Z0-9]+$"}},{id:"siren",label:"SIREN",icon:"building",group:"business_fr",storage:{kind:"pattern",regex:"^[0-9]{9}$"}},{id:"siret",label:"SIRET",icon:"building",group:"business_fr",storage:{kind:"pattern",regex:"^[0-9]{14}$"}},{id:"postcode_fr",label:"Code postal (FR)",icon:"location",group:"business_fr",storage:{kind:"pattern",regex:"^[0-9]{5}$"}},{id:"iban",label:"IBAN",icon:"credit-card",group:"business_fr",storage:{kind:"pattern",regex:"^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$"}},{id:"vat_fr",label:"TVA intracom",icon:"credit-card",group:"business_fr",storage:{kind:"pattern",regex:"^[A-Z]{2}[0-9A-Z]{2,12}$"}},{id:"hex_color",label:"Code couleur hex",icon:"paint",group:"design",storage:{kind:"pattern",regex:"^#[0-9A-Fa-f]{6}$"}}];export{xe as AI_CHAT_ACCEPTED_TYPES,Ce as AI_CHAT_MAX_FILES,fe as AI_CHAT_MAX_FILE_SIZE,G as AI_CHAT_SUPPORTED_DOCUMENTS,L as AI_CHAT_SUPPORTED_IMAGES,F as AI_CHAT_SUPPORTED_MIME_TYPES,ie as ALL_MIME_TYPES,T as ARCHIVES,P as ARCHIVE_MIME_TYPES,A as ARCHIVE_MIME_TYPES_ARRAY,f as AUDIO,I as AUDIO_MIME_TYPES,R as AUDIO_MIME_TYPES_ARRAY,K as BUILT_IN_AGENT_TOOL_GROUPS,ye as BUILT_IN_AGENT_TOOL_NAMES,J as BYTES,v as CODE,m as CODE_MIME_TYPES,O as CODE_MIME_TYPES_ARRAY,h as COLORS,X as COLOR_GROUPS,s as COUNTRIES,g as CURRENCIES,Y as DEFAULT_ATTRIBUTE_ICONS,H as DEFAULT_TAB_ICONS,yo as DEFAULT_TENANT_ID,k as DOCUMENTS,a as DOCUMENT_MIME_TYPES,_ as DOCUMENT_MIME_TYPES_ARRAY,c as FILE_SIZE,U as FONTS,B as FONT_MIME_TYPES,q as FONT_MIME_TYPES_ARRAY,oe as GIGABYTES,uo as ICONS,x as IMAGES,i as IMAGE_MIME_TYPES,D as IMAGE_MIME_TYPES_ARRAY,Q as KILOBYTES,te as MEDIA,ee as MEGABYTES,go as MEMORY_DESCRIPTION_MAX_LENGTH,ho as MEMORY_NAME_MAX_LENGTH,ae as OFFICE_DOCUMENTS,no as RECOMMENDED_MAX_SIZES,Co as SKILL_DESCRIPTION_MAX_LENGTH,fo as SKILL_NAME_MAX_LENGTH,Ue as STATUS_COLORS,ko as TEXT_FORMAT_PRESETS,C as VIDEO,S as VIDEO_MIME_TYPES,N as VIDEO_MIME_TYPES_ARRAY,ne as WEB_IMAGES,so as bytesToGb,io as bytesToMb,Ae as cn,to as gbToBytes,Ne as getAllColors,W as getAllCountries,Je as getAllCurrencies,Se as getColor,Oe as getColorIds,qe as getColorsByGroup,Fe as getCountryByIso2,j as getCountryByIso3,w as getCountryDisplayName,Ve as getCountryDisplayNameByIso3,$e as getCurrency,Qe as getCurrencySymbol,ke as getDefaultAttributeIcon,Me as getDefaultTabIcon,Ke as getPhoneMaxDigits,Ye as getPhoneTrunkPrefix,Ze as getSortedCountries,le as isArchiveMimeType,de as isAudioMimeType,ue as isCodeMimeType,ce as isDocumentMimeType,se as isImageMimeType,Be as isValidColorId,eo as isValidCurrencyCode,He as isValidIso2,ze as isValidIso3,pe as isVideoMimeType,co as isWithinSizeLimit,ao as mbToBytes,Xe as stripTrunkPrefix};