@wise/dynamic-flow-client-internal 4.21.0 → 4.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/i18n/cs.json +7 -1
- package/build/i18n/de.json +6 -0
- package/build/i18n/en.json +6 -0
- package/build/i18n/es.json +6 -0
- package/build/i18n/fr.json +6 -0
- package/build/i18n/hu.json +6 -0
- package/build/i18n/id.json +6 -0
- package/build/i18n/it.json +6 -0
- package/build/i18n/ja.json +6 -0
- package/build/i18n/nl.json +6 -0
- package/build/i18n/pl.json +6 -0
- package/build/i18n/pt.json +6 -0
- package/build/i18n/ro.json +6 -0
- package/build/i18n/ru.json +6 -0
- package/build/i18n/th.json +7 -1
- package/build/i18n/tr.json +6 -0
- package/build/i18n/uk.json +6 -0
- package/build/i18n/zh_CN.json +6 -0
- package/build/i18n/zh_HK.json +6 -0
- package/build/main.css +7 -9
- package/build/main.js +860 -466
- package/build/main.mjs +781 -388
- package/package.json +10 -10
package/build/main.mjs
CHANGED
|
@@ -45,7 +45,7 @@ var cs_default = {
|
|
|
45
45
|
"df.wise.ArraySchema.maxItemsError": "P\u0159idejte {maxItems} nebo m\xE9n\u011B.",
|
|
46
46
|
"df.wise.ArraySchema.minItemsError": "P\u0159idejte alespo\u0148 {minItems}.",
|
|
47
47
|
"df.wise.ArraySchema.removeItem": "Odebrat",
|
|
48
|
-
"df.wise.ButtonLayout.buttonLoadingMessage": "
|
|
48
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "M\u016F\u017Ee to trvat p\xE1r sekund",
|
|
49
49
|
"df.wise.ControlFeedback.maxLength": "Zadejte {maxLength} nebo m\xE9n\u011B znak\u016F.",
|
|
50
50
|
"df.wise.ControlFeedback.maximum": "Zadejte \u010D\xEDslo, kter\xE9 je {maximum} nebo men\u0161\xED.",
|
|
51
51
|
"df.wise.ControlFeedback.maximumDate": "Zadejte datum, kter\xE9 je {maximum} nebo p\u0159edt\xEDm.",
|
|
@@ -58,6 +58,12 @@ var cs_default = {
|
|
|
58
58
|
"df.wise.ControlFeedback.type": "Nespr\xE1vn\xFD typ",
|
|
59
59
|
"df.wise.CopyFeedback.copy": "Zkop\xEDrov\xE1no do schr\xE1nky",
|
|
60
60
|
"df.wise.CopyFeedback.copyFailed": "Kop\xEDrov\xE1n\xED do schr\xE1nky se nezda\u0159ilo",
|
|
61
|
+
"df.wise.Decision.all": "V\u0161e",
|
|
62
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
63
|
+
"df.wise.Decision.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
|
|
64
|
+
"df.wise.Decision.popular": "Popul\xE1rn\xED",
|
|
65
|
+
"df.wise.Decision.recent": "Ned\xE1vn\xE9",
|
|
66
|
+
"df.wise.Decision.results": "V\xFDsledky hled\xE1n\xED",
|
|
61
67
|
"df.wise.DynamicParagraph.copied": "Zkop\xEDrov\xE1no do schr\xE1nky",
|
|
62
68
|
"df.wise.DynamicParagraph.copy": "Kop\xEDrovat",
|
|
63
69
|
"df.wise.ErrorBoundary.errorAlert": "N\u011Bco se pokazilo.",
|
|
@@ -96,6 +102,12 @@ var de_default = {
|
|
|
96
102
|
"df.wise.ControlFeedback.type": "Falscher Typ",
|
|
97
103
|
"df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
|
|
98
104
|
"df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
|
|
105
|
+
"df.wise.Decision.all": "Alle",
|
|
106
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
107
|
+
"df.wise.Decision.noResults": "Keine Ergebnisse",
|
|
108
|
+
"df.wise.Decision.popular": "Beliebt",
|
|
109
|
+
"df.wise.Decision.recent": "Neu",
|
|
110
|
+
"df.wise.Decision.results": "Suchergebnisse",
|
|
99
111
|
"df.wise.DynamicParagraph.copied": "In Zwischenablage kopiert",
|
|
100
112
|
"df.wise.DynamicParagraph.copy": "Kopieren",
|
|
101
113
|
"df.wise.ErrorBoundary.errorAlert": "Da ist etwas schiefgegangen.",
|
|
@@ -134,6 +146,12 @@ var en_default = {
|
|
|
134
146
|
"df.wise.ControlFeedback.type": "Incorrect type",
|
|
135
147
|
"df.wise.CopyFeedback.copy": "Copied to clipboard",
|
|
136
148
|
"df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
|
|
149
|
+
"df.wise.Decision.all": "All",
|
|
150
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
151
|
+
"df.wise.Decision.noResults": "No results",
|
|
152
|
+
"df.wise.Decision.popular": "Popular",
|
|
153
|
+
"df.wise.Decision.recent": "Recent",
|
|
154
|
+
"df.wise.Decision.results": "Search results",
|
|
137
155
|
"df.wise.DynamicParagraph.copied": "Copied to clipboard",
|
|
138
156
|
"df.wise.DynamicParagraph.copy": "Copy",
|
|
139
157
|
"df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
|
|
@@ -172,6 +190,12 @@ var es_default = {
|
|
|
172
190
|
"df.wise.ControlFeedback.type": "Tipo incorrecto",
|
|
173
191
|
"df.wise.CopyFeedback.copy": "Copiado al portapapeles",
|
|
174
192
|
"df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
|
|
193
|
+
"df.wise.Decision.all": "Todas",
|
|
194
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
195
|
+
"df.wise.Decision.noResults": "No hay resultados",
|
|
196
|
+
"df.wise.Decision.popular": "Populares",
|
|
197
|
+
"df.wise.Decision.recent": "Recientes",
|
|
198
|
+
"df.wise.Decision.results": "Resultados de b\xFAsqueda",
|
|
175
199
|
"df.wise.DynamicParagraph.copied": "Copiado al portapapeles",
|
|
176
200
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
177
201
|
"df.wise.ErrorBoundary.errorAlert": "Ha habido un error.",
|
|
@@ -210,6 +234,12 @@ var fr_default = {
|
|
|
210
234
|
"df.wise.ControlFeedback.type": "Type incorrect",
|
|
211
235
|
"df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
|
|
212
236
|
"df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
|
|
237
|
+
"df.wise.Decision.all": "Toutes",
|
|
238
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
239
|
+
"df.wise.Decision.noResults": "Aucun r\xE9sultat",
|
|
240
|
+
"df.wise.Decision.popular": "Populaires",
|
|
241
|
+
"df.wise.Decision.recent": "R\xE9cents",
|
|
242
|
+
"df.wise.Decision.results": "R\xE9sultats de recherche",
|
|
213
243
|
"df.wise.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier",
|
|
214
244
|
"df.wise.DynamicParagraph.copy": "Copier",
|
|
215
245
|
"df.wise.ErrorBoundary.errorAlert": "Une erreur s'est produite.",
|
|
@@ -248,6 +278,12 @@ var hu_default = {
|
|
|
248
278
|
"df.wise.ControlFeedback.type": "Helytelen t\xEDpus",
|
|
249
279
|
"df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
|
|
250
280
|
"df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
|
|
281
|
+
"df.wise.Decision.all": "\xD6sszes",
|
|
282
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
283
|
+
"df.wise.Decision.noResults": "Nincs tal\xE1lat",
|
|
284
|
+
"df.wise.Decision.popular": "N\xE9pszer\u0171",
|
|
285
|
+
"df.wise.Decision.recent": "Legut\xF3bbi",
|
|
286
|
+
"df.wise.Decision.results": "Keres\xE9si eredm\xE9nyek",
|
|
251
287
|
"df.wise.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva",
|
|
252
288
|
"df.wise.DynamicParagraph.copy": "M\xE1sol\xE1s",
|
|
253
289
|
"df.wise.ErrorBoundary.errorAlert": "Valami hiba t\xF6rt\xE9nt.",
|
|
@@ -286,6 +322,12 @@ var id_default = {
|
|
|
286
322
|
"df.wise.ControlFeedback.type": "Tipe salah",
|
|
287
323
|
"df.wise.CopyFeedback.copy": "Disalin ke clipboard",
|
|
288
324
|
"df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
|
|
325
|
+
"df.wise.Decision.all": "Semua",
|
|
326
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
327
|
+
"df.wise.Decision.noResults": "Tidak ada hasil",
|
|
328
|
+
"df.wise.Decision.popular": "Populer",
|
|
329
|
+
"df.wise.Decision.recent": "Terbaru",
|
|
330
|
+
"df.wise.Decision.results": "Hasil pencarian",
|
|
289
331
|
"df.wise.DynamicParagraph.copied": "Disalin ke clipboard",
|
|
290
332
|
"df.wise.DynamicParagraph.copy": "Salin",
|
|
291
333
|
"df.wise.ErrorBoundary.errorAlert": "Terjadi kesalahan.",
|
|
@@ -324,6 +366,12 @@ var it_default = {
|
|
|
324
366
|
"df.wise.ControlFeedback.type": "Tipo errato",
|
|
325
367
|
"df.wise.CopyFeedback.copy": "Copiato negli appunti",
|
|
326
368
|
"df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
|
|
369
|
+
"df.wise.Decision.all": "Tutte",
|
|
370
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
371
|
+
"df.wise.Decision.noResults": "Nessun risultato",
|
|
372
|
+
"df.wise.Decision.popular": "Popolari",
|
|
373
|
+
"df.wise.Decision.recent": "Recenti",
|
|
374
|
+
"df.wise.Decision.results": "Risultati della ricerca",
|
|
327
375
|
"df.wise.DynamicParagraph.copied": "Copiato negli appunti",
|
|
328
376
|
"df.wise.DynamicParagraph.copy": "Copia",
|
|
329
377
|
"df.wise.ErrorBoundary.errorAlert": "Qualcosa non ha funzionato.",
|
|
@@ -362,6 +410,12 @@ var ja_default = {
|
|
|
362
410
|
"df.wise.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7",
|
|
363
411
|
"df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
364
412
|
"df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
413
|
+
"df.wise.Decision.all": "\u3059\u3079\u3066",
|
|
414
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
415
|
+
"df.wise.Decision.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
416
|
+
"df.wise.Decision.popular": "\u4EBA\u6C17",
|
|
417
|
+
"df.wise.Decision.recent": "\u6700\u8FD1",
|
|
418
|
+
"df.wise.Decision.results": "\u691C\u7D22\u7D50\u679C",
|
|
365
419
|
"df.wise.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
366
420
|
"df.wise.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B",
|
|
367
421
|
"df.wise.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",
|
|
@@ -400,6 +454,12 @@ var nl_default = {
|
|
|
400
454
|
"df.wise.ControlFeedback.type": "Onjuist type",
|
|
401
455
|
"df.wise.CopyFeedback.copy": "Naar klembord gekopieerd",
|
|
402
456
|
"df.wise.CopyFeedback.copyFailed": "Naar klembord kopi\xEBren mislukt",
|
|
457
|
+
"df.wise.Decision.all": "Alles",
|
|
458
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
459
|
+
"df.wise.Decision.noResults": "Niks gevonden",
|
|
460
|
+
"df.wise.Decision.popular": "Populair",
|
|
461
|
+
"df.wise.Decision.recent": "Recent",
|
|
462
|
+
"df.wise.Decision.results": "Zoekresultaten",
|
|
403
463
|
"df.wise.DynamicParagraph.copied": "Naar klembord gekopieerd",
|
|
404
464
|
"df.wise.DynamicParagraph.copy": "Kopi\xEBren",
|
|
405
465
|
"df.wise.ErrorBoundary.errorAlert": "Er is iets misgegaan.",
|
|
@@ -438,6 +498,12 @@ var pl_default = {
|
|
|
438
498
|
"df.wise.ControlFeedback.type": "Nieprawid\u0142owy typ",
|
|
439
499
|
"df.wise.CopyFeedback.copy": "Skopiowano do schowka",
|
|
440
500
|
"df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
|
|
501
|
+
"df.wise.Decision.all": "Wszystkie",
|
|
502
|
+
"df.wise.Decision.filterPlaceholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
|
|
503
|
+
"df.wise.Decision.noResults": "Brak wynik\xF3w",
|
|
504
|
+
"df.wise.Decision.popular": "Popularne",
|
|
505
|
+
"df.wise.Decision.recent": "Ostatnie",
|
|
506
|
+
"df.wise.Decision.results": "Wyniki wyszukiwania",
|
|
441
507
|
"df.wise.DynamicParagraph.copied": "Skopiowano do schowka",
|
|
442
508
|
"df.wise.DynamicParagraph.copy": "Kopiuj",
|
|
443
509
|
"df.wise.ErrorBoundary.errorAlert": "Co\u015B posz\u0142o nie tak.",
|
|
@@ -476,6 +542,12 @@ var pt_default = {
|
|
|
476
542
|
"df.wise.ControlFeedback.type": "Tipo incorreto",
|
|
477
543
|
"df.wise.CopyFeedback.copy": "Copiado",
|
|
478
544
|
"df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
|
|
545
|
+
"df.wise.Decision.all": "Todos",
|
|
546
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
547
|
+
"df.wise.Decision.noResults": "Nenhum resultado",
|
|
548
|
+
"df.wise.Decision.popular": "Populares",
|
|
549
|
+
"df.wise.Decision.recent": "Recente",
|
|
550
|
+
"df.wise.Decision.results": "Resultados da busca",
|
|
479
551
|
"df.wise.DynamicParagraph.copied": "Copiado",
|
|
480
552
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
481
553
|
"df.wise.ErrorBoundary.errorAlert": "Algo deu errado.",
|
|
@@ -514,6 +586,12 @@ var ro_default = {
|
|
|
514
586
|
"df.wise.ControlFeedback.type": "Tip incorect",
|
|
515
587
|
"df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
|
|
516
588
|
"df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
|
|
589
|
+
"df.wise.Decision.all": "Toate",
|
|
590
|
+
"df.wise.Decision.filterPlaceholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
|
|
591
|
+
"df.wise.Decision.noResults": "Niciun rezultat",
|
|
592
|
+
"df.wise.Decision.popular": "Populare",
|
|
593
|
+
"df.wise.Decision.recent": "Recente",
|
|
594
|
+
"df.wise.Decision.results": "Rezultatele c\u0103ut\u0103rii",
|
|
517
595
|
"df.wise.DynamicParagraph.copied": "Copiat \xEEn clipboard",
|
|
518
596
|
"df.wise.DynamicParagraph.copy": "Copiaz\u0103",
|
|
519
597
|
"df.wise.ErrorBoundary.errorAlert": "Ceva nu a mers bine.",
|
|
@@ -552,6 +630,12 @@ var ru_default = {
|
|
|
552
630
|
"df.wise.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F",
|
|
553
631
|
"df.wise.CopyFeedback.copy": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
554
632
|
"df.wise.CopyFeedback.copyFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
633
|
+
"df.wise.Decision.all": "\u0412\u0441\u0435",
|
|
634
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
635
|
+
"df.wise.Decision.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
|
|
636
|
+
"df.wise.Decision.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
|
|
637
|
+
"df.wise.Decision.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435",
|
|
638
|
+
"df.wise.Decision.results": "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",
|
|
555
639
|
"df.wise.DynamicParagraph.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
556
640
|
"df.wise.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
557
641
|
"df.wise.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",
|
|
@@ -577,7 +661,7 @@ var th_default = {
|
|
|
577
661
|
"df.wise.ArraySchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21 {maxItems} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
|
|
578
662
|
"df.wise.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}",
|
|
579
663
|
"df.wise.ArraySchema.removeItem": "\u0E25\u0E1A",
|
|
580
|
-
"df.wise.ButtonLayout.buttonLoadingMessage": "
|
|
664
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "\u0E2D\u0E32\u0E08\u0E43\u0E0A\u0E49\u0E40\u0E27\u0E25\u0E32\u0E2A\u0E31\u0E01\u0E2A\u0E2D\u0E07\u0E2A\u0E32\u0E21\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",
|
|
581
665
|
"df.wise.ControlFeedback.maxLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19 {maxLength} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19",
|
|
582
666
|
"df.wise.ControlFeedback.maximum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
|
|
583
667
|
"df.wise.ControlFeedback.maximumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E31\u0E49\u0E19",
|
|
@@ -590,6 +674,12 @@ var th_default = {
|
|
|
590
674
|
"df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
|
|
591
675
|
"df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
592
676
|
"df.wise.CopyFeedback.copyFailed": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
|
|
677
|
+
"df.wise.Decision.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
678
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
679
|
+
"df.wise.Decision.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
680
|
+
"df.wise.Decision.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
|
|
681
|
+
"df.wise.Decision.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14",
|
|
682
|
+
"df.wise.Decision.results": "\u0E1C\u0E25\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
593
683
|
"df.wise.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
594
684
|
"df.wise.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
595
685
|
"df.wise.ErrorBoundary.errorAlert": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E02\u0E36\u0E49\u0E19",
|
|
@@ -628,6 +718,12 @@ var tr_default = {
|
|
|
628
718
|
"df.wise.ControlFeedback.type": "Ge\xE7ersiz se\xE7im",
|
|
629
719
|
"df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
|
|
630
720
|
"df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
|
|
721
|
+
"df.wise.Decision.all": "T\xFCm\xFC",
|
|
722
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
723
|
+
"df.wise.Decision.noResults": "Sonu\xE7 yok",
|
|
724
|
+
"df.wise.Decision.popular": "Pop\xFCler",
|
|
725
|
+
"df.wise.Decision.recent": "Yak\u0131n zamanl\u0131",
|
|
726
|
+
"df.wise.Decision.results": "Arama sonu\xE7lar\u0131",
|
|
631
727
|
"df.wise.DynamicParagraph.copied": "Panoya kopyaland\u0131",
|
|
632
728
|
"df.wise.DynamicParagraph.copy": "Kopyala",
|
|
633
729
|
"df.wise.ErrorBoundary.errorAlert": "Bir sorun olu\u015Ftu.",
|
|
@@ -666,6 +762,12 @@ var zh_CN_default = {
|
|
|
666
762
|
"df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
|
|
667
763
|
"df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
668
764
|
"df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
|
|
765
|
+
"df.wise.Decision.all": "\u5168\u90E8",
|
|
766
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
767
|
+
"df.wise.Decision.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
768
|
+
"df.wise.Decision.popular": "\u70ED\u95E8",
|
|
769
|
+
"df.wise.Decision.recent": "\u6700\u8FD1",
|
|
770
|
+
"df.wise.Decision.results": "\u641C\u7D22\u7ED3\u679C",
|
|
669
771
|
"df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
670
772
|
"df.wise.DynamicParagraph.copy": "\u590D\u5236",
|
|
671
773
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
|
|
@@ -704,6 +806,12 @@ var zh_HK_default = {
|
|
|
704
806
|
"df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
|
|
705
807
|
"df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
706
808
|
"df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
809
|
+
"df.wise.Decision.all": "\u5168\u90E8",
|
|
810
|
+
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
811
|
+
"df.wise.Decision.noResults": "\u6C92\u6709\u7D50\u679C",
|
|
812
|
+
"df.wise.Decision.popular": "\u71B1\u9580",
|
|
813
|
+
"df.wise.Decision.recent": "\u6700\u8FD1\u7684",
|
|
814
|
+
"df.wise.Decision.results": "\u641C\u5C0B\u7D50\u679C",
|
|
707
815
|
"df.wise.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
708
816
|
"df.wise.DynamicParagraph.copy": "\u8907\u88FD",
|
|
709
817
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u4E86\u4E9B\u554F\u984C\u3002",
|
|
@@ -754,16 +862,15 @@ var i18n_default = translations;
|
|
|
754
862
|
|
|
755
863
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
756
864
|
import { forwardRef, useCallback, useMemo as useMemo2 } from "react";
|
|
757
|
-
import { useIntl as
|
|
865
|
+
import { useIntl as useIntl12 } from "react-intl";
|
|
758
866
|
import {
|
|
759
867
|
DynamicFlow as DynamicFlowCoreLegacy,
|
|
760
868
|
DynamicFlowCoreRevamp,
|
|
761
869
|
DynamicFormCore
|
|
762
870
|
} from "@wise/dynamic-flow-client";
|
|
763
871
|
|
|
764
|
-
// ../renderers/src/
|
|
765
|
-
import {
|
|
766
|
-
import { useIntl } from "react-intl";
|
|
872
|
+
// ../renderers/src/AlertRenderer.tsx
|
|
873
|
+
import { Alert } from "@transferwise/components";
|
|
767
874
|
|
|
768
875
|
// ../renderers/src/utils/layout-utils.ts
|
|
769
876
|
var getMargin = (size) => {
|
|
@@ -795,6 +902,59 @@ var getTextAlignment = (align) => {
|
|
|
795
902
|
};
|
|
796
903
|
var getTextAlignmentAndMargin = (component) => `${getTextAlignment(component.align)} ${getMargin(component.margin)}`;
|
|
797
904
|
|
|
905
|
+
// ../renderers/src/AlertRenderer.tsx
|
|
906
|
+
import { jsx } from "react/jsx-runtime";
|
|
907
|
+
var AlertRenderer = {
|
|
908
|
+
canRenderType: "alert",
|
|
909
|
+
render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ jsx(
|
|
910
|
+
Alert,
|
|
911
|
+
{
|
|
912
|
+
type: context,
|
|
913
|
+
className: getMargin(margin),
|
|
914
|
+
message: markdown,
|
|
915
|
+
action: mapCtaToAlertAction(callToAction)
|
|
916
|
+
}
|
|
917
|
+
)
|
|
918
|
+
};
|
|
919
|
+
var mapCtaToAlertAction = (callToAction) => {
|
|
920
|
+
if (callToAction) {
|
|
921
|
+
return __spreadValues(__spreadValues({
|
|
922
|
+
text: callToAction.title,
|
|
923
|
+
"aria-label": callToAction.accessibilityDescription
|
|
924
|
+
}, "onClick" in callToAction ? { onClick: callToAction.onClick } : {}), callToAction.type === "link" ? { href: callToAction.href, target: "_blank" } : {});
|
|
925
|
+
}
|
|
926
|
+
return void 0;
|
|
927
|
+
};
|
|
928
|
+
var AlertRenderer_default = AlertRenderer;
|
|
929
|
+
|
|
930
|
+
// ../renderers/src/BoxRenderer.tsx
|
|
931
|
+
import classNames from "classnames";
|
|
932
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
933
|
+
var BoxRenderer = {
|
|
934
|
+
canRenderType: "box",
|
|
935
|
+
render: ({ children, control, margin, width }) => {
|
|
936
|
+
const hasFixedWidth = width !== "xl";
|
|
937
|
+
const hasBorder = control === "bordered" || control === "bordered-web";
|
|
938
|
+
const contents = /* @__PURE__ */ jsx2(
|
|
939
|
+
"div",
|
|
940
|
+
{
|
|
941
|
+
className: classNames({
|
|
942
|
+
"df-box-renderer-border": hasBorder,
|
|
943
|
+
[`df-box-renderer-width-${width}`]: hasFixedWidth,
|
|
944
|
+
[getMargin(margin)]: !hasFixedWidth
|
|
945
|
+
}),
|
|
946
|
+
children
|
|
947
|
+
}
|
|
948
|
+
);
|
|
949
|
+
return hasFixedWidth ? /* @__PURE__ */ jsx2("div", { className: classNames("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
var BoxRenderer_default = BoxRenderer;
|
|
953
|
+
|
|
954
|
+
// ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
|
|
955
|
+
import { Button, InlineAlert } from "@transferwise/components";
|
|
956
|
+
import { useIntl } from "react-intl";
|
|
957
|
+
|
|
798
958
|
// ../renderers/src/messages/loading-button.messages.ts
|
|
799
959
|
import { defineMessages } from "react-intl";
|
|
800
960
|
var loading_button_messages_default = defineMessages({
|
|
@@ -807,7 +967,7 @@ var loading_button_messages_default = defineMessages({
|
|
|
807
967
|
|
|
808
968
|
// ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
|
|
809
969
|
import { useEffect, useState } from "react";
|
|
810
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
970
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
811
971
|
var AddressValidationButtonRenderer = {
|
|
812
972
|
canRenderType: "button",
|
|
813
973
|
canRender: ({ control }) => control === "address-validation",
|
|
@@ -823,7 +983,7 @@ function AddressValidationButtonComponent(props) {
|
|
|
823
983
|
}
|
|
824
984
|
}, [stepLoadingState]);
|
|
825
985
|
return /* @__PURE__ */ jsxs("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
|
|
826
|
-
/* @__PURE__ */
|
|
986
|
+
/* @__PURE__ */ jsx3(
|
|
827
987
|
Button,
|
|
828
988
|
{
|
|
829
989
|
v2: true,
|
|
@@ -839,61 +999,11 @@ function AddressValidationButtonComponent(props) {
|
|
|
839
999
|
children: title
|
|
840
1000
|
}
|
|
841
1001
|
),
|
|
842
|
-
spinny && /* @__PURE__ */
|
|
1002
|
+
spinny && /* @__PURE__ */ jsx3(InlineAlert, { type: "warning", className: "m-x-auto", children: formatMessage(loading_button_messages_default.buttonLoadingMessage) })
|
|
843
1003
|
] });
|
|
844
1004
|
}
|
|
845
1005
|
var AddressValidationButtonRenderer_default = AddressValidationButtonRenderer;
|
|
846
1006
|
|
|
847
|
-
// ../renderers/src/AlertRenderer.tsx
|
|
848
|
-
import { Alert } from "@transferwise/components";
|
|
849
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
850
|
-
var AlertRenderer = {
|
|
851
|
-
canRenderType: "alert",
|
|
852
|
-
render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ jsx2(
|
|
853
|
-
Alert,
|
|
854
|
-
{
|
|
855
|
-
type: context,
|
|
856
|
-
className: getMargin(margin),
|
|
857
|
-
message: markdown,
|
|
858
|
-
action: mapCtaToAlertAction(callToAction)
|
|
859
|
-
}
|
|
860
|
-
)
|
|
861
|
-
};
|
|
862
|
-
var mapCtaToAlertAction = (callToAction) => {
|
|
863
|
-
if (callToAction) {
|
|
864
|
-
return __spreadValues(__spreadValues({
|
|
865
|
-
text: callToAction.title,
|
|
866
|
-
"aria-label": callToAction.accessibilityDescription
|
|
867
|
-
}, "onClick" in callToAction ? { onClick: callToAction.onClick } : {}), callToAction.type === "link" ? { href: callToAction.href, target: "_blank" } : {});
|
|
868
|
-
}
|
|
869
|
-
return void 0;
|
|
870
|
-
};
|
|
871
|
-
var AlertRenderer_default = AlertRenderer;
|
|
872
|
-
|
|
873
|
-
// ../renderers/src/BoxRenderer.tsx
|
|
874
|
-
import classNames from "classnames";
|
|
875
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
876
|
-
var BoxRenderer = {
|
|
877
|
-
canRenderType: "box",
|
|
878
|
-
render: ({ children, control, margin, width }) => {
|
|
879
|
-
const hasFixedWidth = width !== "xl";
|
|
880
|
-
const hasBorder = control === "bordered" || control === "bordered-web";
|
|
881
|
-
const contents = /* @__PURE__ */ jsx3(
|
|
882
|
-
"div",
|
|
883
|
-
{
|
|
884
|
-
className: classNames({
|
|
885
|
-
"df-box-renderer-border": hasBorder,
|
|
886
|
-
[`df-box-renderer-width-${width}`]: hasFixedWidth,
|
|
887
|
-
[getMargin(margin)]: !hasFixedWidth
|
|
888
|
-
}),
|
|
889
|
-
children
|
|
890
|
-
}
|
|
891
|
-
);
|
|
892
|
-
return hasFixedWidth ? /* @__PURE__ */ jsx3("div", { className: classNames("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
var BoxRenderer_default = BoxRenderer;
|
|
896
|
-
|
|
897
1007
|
// ../renderers/src/ButtonRenderer/ButtonRenderer.tsx
|
|
898
1008
|
import { Button as Button2 } from "@transferwise/components";
|
|
899
1009
|
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
@@ -1206,8 +1316,88 @@ var DateInputRenderer = {
|
|
|
1206
1316
|
};
|
|
1207
1317
|
var DateInputRenderer_default = DateInputRenderer;
|
|
1208
1318
|
|
|
1209
|
-
// ../renderers/src/DecisionRenderer.tsx
|
|
1210
|
-
import { Header
|
|
1319
|
+
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
1320
|
+
import { Header as Header2, SearchInput } from "@transferwise/components";
|
|
1321
|
+
import { useIntl as useIntl4 } from "react-intl";
|
|
1322
|
+
|
|
1323
|
+
// ../renderers/src/messages/decision.messages.ts
|
|
1324
|
+
import { defineMessages as defineMessages3 } from "react-intl";
|
|
1325
|
+
var decision_messages_default = defineMessages3({
|
|
1326
|
+
all: {
|
|
1327
|
+
id: "df.wise.Decision.all",
|
|
1328
|
+
defaultMessage: "All",
|
|
1329
|
+
description: "Label for the group of options that encompasses all options"
|
|
1330
|
+
},
|
|
1331
|
+
popular: {
|
|
1332
|
+
id: "df.wise.Decision.popular",
|
|
1333
|
+
defaultMessage: "Popular",
|
|
1334
|
+
description: "Label for the group of options that are tagged as popular"
|
|
1335
|
+
},
|
|
1336
|
+
recent: {
|
|
1337
|
+
id: "df.wise.Decision.recent",
|
|
1338
|
+
defaultMessage: "Recent",
|
|
1339
|
+
description: "Label for the group of options that are tagged as recent"
|
|
1340
|
+
},
|
|
1341
|
+
filterPlaceholder: {
|
|
1342
|
+
id: "df.wise.Decision.filterPlaceholder",
|
|
1343
|
+
defaultMessage: "Start typing to search",
|
|
1344
|
+
description: "Placeholder for the filter input"
|
|
1345
|
+
},
|
|
1346
|
+
results: {
|
|
1347
|
+
id: "df.wise.Decision.results",
|
|
1348
|
+
defaultMessage: "Search results",
|
|
1349
|
+
description: "Label for the results section"
|
|
1350
|
+
},
|
|
1351
|
+
noResults: {
|
|
1352
|
+
id: "df.wise.Decision.noResults",
|
|
1353
|
+
defaultMessage: "No results",
|
|
1354
|
+
description: "Message for if there are no results"
|
|
1355
|
+
}
|
|
1356
|
+
});
|
|
1357
|
+
|
|
1358
|
+
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
1359
|
+
import { useState as useState3 } from "react";
|
|
1360
|
+
|
|
1361
|
+
// ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
|
|
1362
|
+
function filterAndSortDecisionOptions(selectOptions, query) {
|
|
1363
|
+
const upperQuery = query.toUpperCase().trim();
|
|
1364
|
+
const filteredItems = selectOptions.filter((option) => {
|
|
1365
|
+
var _a, _b, _c, _d;
|
|
1366
|
+
const searchableWords = [
|
|
1367
|
+
option.title,
|
|
1368
|
+
option.description,
|
|
1369
|
+
option.additionalText,
|
|
1370
|
+
(_a = option.supportingValues) == null ? void 0 : _a.value,
|
|
1371
|
+
(_b = option.supportingValues) == null ? void 0 : _b.subvalue,
|
|
1372
|
+
...(_c = option.keywords) != null ? _c : []
|
|
1373
|
+
];
|
|
1374
|
+
return (_d = searchableWords.some((word) => word == null ? void 0 : word.toUpperCase().includes(upperQuery))) != null ? _d : false;
|
|
1375
|
+
});
|
|
1376
|
+
return [...filteredItems].sort((a, b) => {
|
|
1377
|
+
const aTitleUpper = a.title.toUpperCase();
|
|
1378
|
+
const bTitleUpper = b.title.toUpperCase();
|
|
1379
|
+
const aTitleStarts = aTitleUpper.startsWith(upperQuery);
|
|
1380
|
+
const bTitleStarts = bTitleUpper.startsWith(upperQuery);
|
|
1381
|
+
if (aTitleStarts && !bTitleStarts) {
|
|
1382
|
+
return -1;
|
|
1383
|
+
}
|
|
1384
|
+
if (!aTitleStarts && bTitleStarts) {
|
|
1385
|
+
return 1;
|
|
1386
|
+
}
|
|
1387
|
+
const aWordStarts = aTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
|
|
1388
|
+
const bWordStarts = bTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
|
|
1389
|
+
if (aWordStarts && !bWordStarts) {
|
|
1390
|
+
return -1;
|
|
1391
|
+
}
|
|
1392
|
+
if (!aWordStarts && bWordStarts) {
|
|
1393
|
+
return 1;
|
|
1394
|
+
}
|
|
1395
|
+
return a.title.localeCompare(b.title);
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
// ../renderers/src/DecisionRenderer/DecisionList.tsx
|
|
1400
|
+
import { NavigationOption, NavigationOptionsList } from "@transferwise/components";
|
|
1211
1401
|
|
|
1212
1402
|
// ../renderers/src/utils/UrnFlag.tsx
|
|
1213
1403
|
import { Flag } from "@wise/art";
|
|
@@ -1295,9 +1485,10 @@ var resolveUri = (uri, size) => {
|
|
|
1295
1485
|
var _a, _b;
|
|
1296
1486
|
const { name, qComponents = [] } = stringToURN(uri);
|
|
1297
1487
|
if (isValidIconUrn(name)) {
|
|
1488
|
+
const icon = /* @__PURE__ */ jsx16(DynamicIcon_default, { name: name.replace("urn:wise:icons:", "") });
|
|
1298
1489
|
return {
|
|
1299
|
-
|
|
1300
|
-
backgroundColor: (_a = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _a[1]
|
|
1490
|
+
icon,
|
|
1491
|
+
backgroundColor: formatColor((_a = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _a[1])
|
|
1301
1492
|
};
|
|
1302
1493
|
}
|
|
1303
1494
|
if (isUrnFlag(name)) {
|
|
@@ -1309,7 +1500,7 @@ var resolveUri = (uri, size) => {
|
|
|
1309
1500
|
const text = decodeURI(name.replace("data:text/plain,", ""));
|
|
1310
1501
|
return {
|
|
1311
1502
|
asset: text,
|
|
1312
|
-
backgroundColor: (_b = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _b[1]
|
|
1503
|
+
backgroundColor: formatColor((_b = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _b[1])
|
|
1313
1504
|
};
|
|
1314
1505
|
}
|
|
1315
1506
|
if (!uri.startsWith("urn:")) {
|
|
@@ -1317,6 +1508,15 @@ var resolveUri = (uri, size) => {
|
|
|
1317
1508
|
}
|
|
1318
1509
|
return { asset: void 0 };
|
|
1319
1510
|
};
|
|
1511
|
+
var formatColor = (color) => {
|
|
1512
|
+
if (!color) {
|
|
1513
|
+
return void 0;
|
|
1514
|
+
}
|
|
1515
|
+
if (color.startsWith("#")) {
|
|
1516
|
+
return color;
|
|
1517
|
+
}
|
|
1518
|
+
return `var(--color-${color.replace(/^base-|brand-/, "")})`;
|
|
1519
|
+
};
|
|
1320
1520
|
|
|
1321
1521
|
// ../renderers/src/components/Media/AvatarMedia.tsx
|
|
1322
1522
|
import { AvatarLayout, AvatarView } from "@transferwise/components";
|
|
@@ -1331,24 +1531,29 @@ var AvatarMedia = ({
|
|
|
1331
1531
|
return { asset: avatar.text };
|
|
1332
1532
|
}
|
|
1333
1533
|
return __spreadProps(__spreadValues({}, resolveUri(avatar.uri, size)), {
|
|
1334
|
-
badge: avatar.badgeUri ? resolveUri(avatar.badgeUri, 16)
|
|
1534
|
+
badge: avatar.badgeUri ? resolveUri(avatar.badgeUri, 16) : void 0
|
|
1335
1535
|
});
|
|
1336
1536
|
};
|
|
1337
1537
|
const avatars = content.map(getRenderableAvatar);
|
|
1338
1538
|
if (avatars.length === 1) {
|
|
1339
|
-
const { badge, backgroundColor, asset } = avatars[0];
|
|
1539
|
+
const { badge, backgroundColor, asset, icon } = avatars[0];
|
|
1540
|
+
if (!asset && !icon) {
|
|
1541
|
+
return null;
|
|
1542
|
+
}
|
|
1340
1543
|
return /* @__PURE__ */ jsx17(
|
|
1341
1544
|
AvatarView,
|
|
1342
1545
|
{
|
|
1343
1546
|
"aria-label": accessibilityDescription,
|
|
1344
1547
|
size,
|
|
1345
|
-
badge: {
|
|
1548
|
+
badge: badge ? __spreadProps(__spreadValues({}, badge), {
|
|
1549
|
+
type: "reference"
|
|
1550
|
+
}) : void 0,
|
|
1346
1551
|
style: { backgroundColor },
|
|
1347
|
-
children: asset
|
|
1552
|
+
children: icon != null ? icon : asset
|
|
1348
1553
|
}
|
|
1349
1554
|
);
|
|
1350
1555
|
}
|
|
1351
|
-
const avatarsWithoutBadges = avatars.map((_a) => {
|
|
1556
|
+
const avatarsWithoutBadges = avatars.filter(({ asset }) => asset).slice(0, 2).map((_a) => {
|
|
1352
1557
|
var _b = _a, { badge } = _b, rest = __objRest(_b, ["badge"]);
|
|
1353
1558
|
return __spreadValues({}, rest);
|
|
1354
1559
|
});
|
|
@@ -1369,7 +1574,7 @@ import { jsx as jsx18 } from "react/jsx-runtime";
|
|
|
1369
1574
|
var getBadgedMedia = (iconNode, imageNode, size) => {
|
|
1370
1575
|
if (iconNode && imageNode) {
|
|
1371
1576
|
if (imageNode && iconNode) {
|
|
1372
|
-
return /* @__PURE__ */ jsx18(AvatarView2, { size, badge: { asset: iconNode }, children: imageNode });
|
|
1577
|
+
return /* @__PURE__ */ jsx18(AvatarView2, { size, badge: { asset: iconNode, type: "reference" }, children: imageNode });
|
|
1373
1578
|
}
|
|
1374
1579
|
}
|
|
1375
1580
|
return null;
|
|
@@ -1456,43 +1661,122 @@ function OptionMedia(props) {
|
|
|
1456
1661
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1457
1662
|
var getInlineMedia = (media) => media ? /* @__PURE__ */ jsx22(Media, { media, preferAvatar: false, size: 24 }) : null;
|
|
1458
1663
|
|
|
1459
|
-
// ../renderers/src/DecisionRenderer.tsx
|
|
1460
|
-
import { jsx as jsx23
|
|
1664
|
+
// ../renderers/src/DecisionRenderer/DecisionList.tsx
|
|
1665
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1666
|
+
var DecisionList = ({
|
|
1667
|
+
options,
|
|
1668
|
+
control,
|
|
1669
|
+
className
|
|
1670
|
+
}) => {
|
|
1671
|
+
return /* @__PURE__ */ jsx23("div", { className, children: /* @__PURE__ */ jsx23(NavigationOptionsList, { children: options.map((option) => {
|
|
1672
|
+
const { description, disabled, media, title: itemTitle, tag, onClick } = option;
|
|
1673
|
+
return /* @__PURE__ */ jsx23(
|
|
1674
|
+
NavigationOption,
|
|
1675
|
+
{
|
|
1676
|
+
title: itemTitle,
|
|
1677
|
+
content: description,
|
|
1678
|
+
disabled,
|
|
1679
|
+
media: media ? /* @__PURE__ */ jsx23(
|
|
1680
|
+
OptionMedia,
|
|
1681
|
+
{
|
|
1682
|
+
media,
|
|
1683
|
+
preferAvatar: control === "with-avatar" || tag === "with-avatar"
|
|
1684
|
+
}
|
|
1685
|
+
) : null,
|
|
1686
|
+
showMediaCircle: false,
|
|
1687
|
+
showMediaAtAllSizes: true,
|
|
1688
|
+
onClick
|
|
1689
|
+
},
|
|
1690
|
+
JSON.stringify(option)
|
|
1691
|
+
);
|
|
1692
|
+
}) }) });
|
|
1693
|
+
};
|
|
1694
|
+
var DecisionList_default = DecisionList;
|
|
1695
|
+
|
|
1696
|
+
// ../renderers/src/DecisionRenderer/GroupedList.tsx
|
|
1697
|
+
import { Header, Section } from "@transferwise/components";
|
|
1698
|
+
import { useIntl as useIntl3 } from "react-intl";
|
|
1699
|
+
import { Fragment, jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1700
|
+
var OPTION_GROUPS = {
|
|
1701
|
+
popular: "popular",
|
|
1702
|
+
recent: "recent"
|
|
1703
|
+
};
|
|
1704
|
+
var GroupedList = ({
|
|
1705
|
+
options,
|
|
1706
|
+
control
|
|
1707
|
+
}) => {
|
|
1708
|
+
const { formatMessage } = useIntl3();
|
|
1709
|
+
const popularOptions = options.filter((option) => option.tag === OPTION_GROUPS.popular);
|
|
1710
|
+
const recentOptions = options.filter((option) => option.tag === OPTION_GROUPS.recent);
|
|
1711
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
1712
|
+
popularOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
|
|
1713
|
+
/* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
|
|
1714
|
+
/* @__PURE__ */ jsx24(DecisionList_default, { options: popularOptions, control })
|
|
1715
|
+
] }) : null,
|
|
1716
|
+
recentOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
|
|
1717
|
+
/* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
|
|
1718
|
+
/* @__PURE__ */ jsx24(DecisionList_default, { options: recentOptions, control })
|
|
1719
|
+
] }) : null,
|
|
1720
|
+
/* @__PURE__ */ jsxs4(Section, { children: [
|
|
1721
|
+
/* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
|
|
1722
|
+
/* @__PURE__ */ jsx24(DecisionList_default, { options, control })
|
|
1723
|
+
] })
|
|
1724
|
+
] });
|
|
1725
|
+
};
|
|
1726
|
+
var isGroupedDecision = (options) => {
|
|
1727
|
+
const possibleGroups = Object.values(OPTION_GROUPS);
|
|
1728
|
+
return options.some(({ tag }) => tag && possibleGroups.includes(tag));
|
|
1729
|
+
};
|
|
1730
|
+
|
|
1731
|
+
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
1732
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1461
1733
|
var DecisionRenderer = {
|
|
1462
1734
|
canRenderType: "decision",
|
|
1463
|
-
render: (
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1735
|
+
render: (props) => {
|
|
1736
|
+
return /* @__PURE__ */ jsxs5("div", { className: getMargin(props.margin), children: [
|
|
1737
|
+
props.title && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: props.title }),
|
|
1738
|
+
props.control === "filtered" ? /* @__PURE__ */ jsx25(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx25(UnfilteredDecisionList, __spreadValues({}, props))
|
|
1739
|
+
] });
|
|
1740
|
+
}
|
|
1741
|
+
};
|
|
1742
|
+
var UnfilteredDecisionList = ({ control, options }) => isGroupedDecision(options) ? /* @__PURE__ */ jsx25(GroupedList, { options, control }) : /* @__PURE__ */ jsx25(DecisionList_default, { options, control });
|
|
1743
|
+
var FilteredDecisionList = ({ options, control }) => {
|
|
1744
|
+
const { formatMessage } = useIntl4();
|
|
1745
|
+
const [query, setQuery] = useState3("");
|
|
1746
|
+
const filteredOptions = filterAndSortDecisionOptions(options, query);
|
|
1747
|
+
const isGrouped = isGroupedDecision(options);
|
|
1748
|
+
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1749
|
+
/* @__PURE__ */ jsx25(
|
|
1750
|
+
SearchInput,
|
|
1751
|
+
{
|
|
1752
|
+
placeholder: formatMessage(decision_messages_default.filterPlaceholder),
|
|
1753
|
+
value: query,
|
|
1754
|
+
onChange: (e) => {
|
|
1755
|
+
var _a;
|
|
1756
|
+
return setQuery((_a = e.target.value) != null ? _a : "");
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
),
|
|
1760
|
+
isGrouped && query.length === 0 ? /* @__PURE__ */ jsx25(GroupedList, { options, control }) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1761
|
+
query.length > 0 && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
|
|
1762
|
+
filteredOptions.length > 0 ? /* @__PURE__ */ jsx25(
|
|
1763
|
+
DecisionList_default,
|
|
1469
1764
|
{
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
preferAvatar: control === "with-avatar" || tag === "with-avatar"
|
|
1478
|
-
}
|
|
1479
|
-
) : null,
|
|
1480
|
-
showMediaCircle: false,
|
|
1481
|
-
showMediaAtAllSizes: true,
|
|
1482
|
-
onClick
|
|
1483
|
-
},
|
|
1484
|
-
JSON.stringify(option)
|
|
1485
|
-
);
|
|
1486
|
-
}) })
|
|
1487
|
-
] })
|
|
1765
|
+
options: filteredOptions,
|
|
1766
|
+
control,
|
|
1767
|
+
className: query.length === 0 ? "m-t-3" : ""
|
|
1768
|
+
}
|
|
1769
|
+
) : /* @__PURE__ */ jsx25("p", { children: formatMessage(decision_messages_default.noResults) })
|
|
1770
|
+
] })
|
|
1771
|
+
] });
|
|
1488
1772
|
};
|
|
1489
1773
|
var DecisionRenderer_default = DecisionRenderer;
|
|
1490
1774
|
|
|
1491
1775
|
// ../renderers/src/DividerRenderer.tsx
|
|
1492
|
-
import { jsx as
|
|
1776
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1493
1777
|
var DividerRenderer = {
|
|
1494
1778
|
canRenderType: "divider",
|
|
1495
|
-
render: ({ margin }) => /* @__PURE__ */
|
|
1779
|
+
render: ({ margin }) => /* @__PURE__ */ jsx26("hr", { className: `m-t-0 ${getMargin(margin)}` })
|
|
1496
1780
|
};
|
|
1497
1781
|
var DividerRenderer_default = DividerRenderer;
|
|
1498
1782
|
|
|
@@ -1500,8 +1784,8 @@ var DividerRenderer_default = DividerRenderer;
|
|
|
1500
1784
|
import { Button as Button3, Markdown as Markdown2, Modal } from "@transferwise/components";
|
|
1501
1785
|
|
|
1502
1786
|
// ../renderers/src/messages/external-confirmation.messages.ts
|
|
1503
|
-
import { defineMessages as
|
|
1504
|
-
var external_confirmation_messages_default =
|
|
1787
|
+
import { defineMessages as defineMessages4 } from "react-intl";
|
|
1788
|
+
var external_confirmation_messages_default = defineMessages4({
|
|
1505
1789
|
title: {
|
|
1506
1790
|
id: "df.wise.ExternalConfirmation.title",
|
|
1507
1791
|
defaultMessage: "Please confirm",
|
|
@@ -1525,9 +1809,9 @@ var external_confirmation_messages_default = defineMessages3({
|
|
|
1525
1809
|
});
|
|
1526
1810
|
|
|
1527
1811
|
// ../renderers/src/ExternalConfirmationRenderer.tsx
|
|
1528
|
-
import { useIntl as
|
|
1812
|
+
import { useIntl as useIntl5 } from "react-intl";
|
|
1529
1813
|
import { useEffect as useEffect3 } from "react";
|
|
1530
|
-
import { Fragment, jsx as
|
|
1814
|
+
import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1531
1815
|
var ExternalConfirmationRenderer = {
|
|
1532
1816
|
canRenderType: "external-confirmation",
|
|
1533
1817
|
render: ExternalConfirmationRendererComponent
|
|
@@ -1539,7 +1823,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1539
1823
|
onFailure,
|
|
1540
1824
|
onCancel
|
|
1541
1825
|
}) {
|
|
1542
|
-
const { formatMessage } =
|
|
1826
|
+
const { formatMessage } = useIntl5();
|
|
1543
1827
|
useEffect3(() => {
|
|
1544
1828
|
if (url) {
|
|
1545
1829
|
const w = window.open(url, "_blank");
|
|
@@ -1550,15 +1834,15 @@ function ExternalConfirmationRendererComponent({
|
|
|
1550
1834
|
}
|
|
1551
1835
|
}
|
|
1552
1836
|
}, []);
|
|
1553
|
-
return /* @__PURE__ */
|
|
1837
|
+
return /* @__PURE__ */ jsx27(
|
|
1554
1838
|
Modal,
|
|
1555
1839
|
{
|
|
1556
1840
|
open: status === "failure",
|
|
1557
1841
|
title: formatMessage(external_confirmation_messages_default.title),
|
|
1558
|
-
body: /* @__PURE__ */
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
/* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */
|
|
1842
|
+
body: /* @__PURE__ */ jsxs6(Fragment3, { children: [
|
|
1843
|
+
/* @__PURE__ */ jsx27(Markdown2, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
|
|
1844
|
+
/* @__PURE__ */ jsx27("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs6("div", { className: "df-box-renderer-width-lg", children: [
|
|
1845
|
+
/* @__PURE__ */ jsx27(
|
|
1562
1846
|
Button3,
|
|
1563
1847
|
{
|
|
1564
1848
|
block: true,
|
|
@@ -1572,7 +1856,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1572
1856
|
children: formatMessage(external_confirmation_messages_default.open)
|
|
1573
1857
|
}
|
|
1574
1858
|
),
|
|
1575
|
-
/* @__PURE__ */
|
|
1859
|
+
/* @__PURE__ */ jsx27(Button3, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
|
|
1576
1860
|
] }) })
|
|
1577
1861
|
] }),
|
|
1578
1862
|
onClose: onCancel
|
|
@@ -1589,27 +1873,27 @@ function getOrigin(url) {
|
|
|
1589
1873
|
var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
|
|
1590
1874
|
|
|
1591
1875
|
// ../renderers/src/FormRenderer.tsx
|
|
1592
|
-
import { jsx as
|
|
1876
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1593
1877
|
var FormRenderer = {
|
|
1594
1878
|
canRenderType: "form",
|
|
1595
|
-
render: ({ children, margin }) => /* @__PURE__ */
|
|
1879
|
+
render: ({ children, margin }) => /* @__PURE__ */ jsx28("div", { className: getMargin(margin), children })
|
|
1596
1880
|
};
|
|
1597
1881
|
var FormRenderer_default = FormRenderer;
|
|
1598
1882
|
|
|
1599
1883
|
// ../renderers/src/FormSectionRenderer.tsx
|
|
1600
|
-
import { Header as
|
|
1601
|
-
import { jsx as
|
|
1884
|
+
import { Header as Header3 } from "@transferwise/components";
|
|
1885
|
+
import { jsx as jsx29, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1602
1886
|
var FormSectionRenderer = {
|
|
1603
1887
|
canRenderType: "form-section",
|
|
1604
|
-
render: ({ title, description, children }) => /* @__PURE__ */
|
|
1605
|
-
title && /* @__PURE__ */
|
|
1606
|
-
|
|
1888
|
+
render: ({ title, description, children }) => /* @__PURE__ */ jsxs7("fieldset", { children: [
|
|
1889
|
+
title && /* @__PURE__ */ jsx29(
|
|
1890
|
+
Header3,
|
|
1607
1891
|
{
|
|
1608
1892
|
as: "h2",
|
|
1609
1893
|
title
|
|
1610
1894
|
}
|
|
1611
1895
|
),
|
|
1612
|
-
description && /* @__PURE__ */
|
|
1896
|
+
description && /* @__PURE__ */ jsx29("p", { children: description }),
|
|
1613
1897
|
children
|
|
1614
1898
|
] })
|
|
1615
1899
|
};
|
|
@@ -1617,18 +1901,18 @@ var FormSectionRenderer_default = FormSectionRenderer;
|
|
|
1617
1901
|
|
|
1618
1902
|
// ../renderers/src/HeadingRenderer.tsx
|
|
1619
1903
|
import { Display, Title } from "@transferwise/components";
|
|
1620
|
-
import { jsx as
|
|
1904
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1621
1905
|
var HeadingRenderer = {
|
|
1622
1906
|
canRenderType: "heading",
|
|
1623
|
-
render: (props) => /* @__PURE__ */
|
|
1907
|
+
render: (props) => /* @__PURE__ */ jsx30(Heading, __spreadValues({}, props))
|
|
1624
1908
|
};
|
|
1625
1909
|
function Heading(props) {
|
|
1626
1910
|
const { text, size, align, margin, control } = props;
|
|
1627
1911
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
1628
|
-
return control === "display" ? /* @__PURE__ */
|
|
1912
|
+
return control === "display" ? /* @__PURE__ */ jsx30(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx30(StandardHeading, { size, text, className });
|
|
1629
1913
|
}
|
|
1630
1914
|
function DisplayHeading({ size, text, className }) {
|
|
1631
|
-
return /* @__PURE__ */
|
|
1915
|
+
return /* @__PURE__ */ jsx30(Display, { type: getDisplayType(size), className, children: text });
|
|
1632
1916
|
}
|
|
1633
1917
|
var getDisplayType = (size) => {
|
|
1634
1918
|
switch (size) {
|
|
@@ -1644,7 +1928,7 @@ var getDisplayType = (size) => {
|
|
|
1644
1928
|
}
|
|
1645
1929
|
};
|
|
1646
1930
|
function StandardHeading({ size, text, className }) {
|
|
1647
|
-
return /* @__PURE__ */
|
|
1931
|
+
return /* @__PURE__ */ jsx30(Title, { type: getTitleTypeBySize(size), className, children: text });
|
|
1648
1932
|
}
|
|
1649
1933
|
var getTitleTypeBySize = (size) => {
|
|
1650
1934
|
var _a;
|
|
@@ -1661,7 +1945,7 @@ var HeadingRenderer_default = HeadingRenderer;
|
|
|
1661
1945
|
|
|
1662
1946
|
// ../renderers/src/ImageRenderer/UrlImage.tsx
|
|
1663
1947
|
import { Image } from "@transferwise/components";
|
|
1664
|
-
import { useEffect as useEffect4, useState as
|
|
1948
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
1665
1949
|
|
|
1666
1950
|
// ../renderers/src/utils/api-utils.ts
|
|
1667
1951
|
function isRelativePath(url = "") {
|
|
@@ -1671,7 +1955,7 @@ function isRelativePath(url = "") {
|
|
|
1671
1955
|
}
|
|
1672
1956
|
|
|
1673
1957
|
// ../renderers/src/ImageRenderer/UrlImage.tsx
|
|
1674
|
-
import { jsx as
|
|
1958
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1675
1959
|
function UrlImage({
|
|
1676
1960
|
accessibilityDescription,
|
|
1677
1961
|
align,
|
|
@@ -1680,13 +1964,13 @@ function UrlImage({
|
|
|
1680
1964
|
uri,
|
|
1681
1965
|
httpClient
|
|
1682
1966
|
}) {
|
|
1683
|
-
const [imageSource, setImageSource] =
|
|
1967
|
+
const [imageSource, setImageSource] = useState4("");
|
|
1684
1968
|
useEffect4(() => {
|
|
1685
1969
|
if (!uri.startsWith("urn:")) {
|
|
1686
1970
|
void getImageSource(httpClient, uri).then(setImageSource);
|
|
1687
1971
|
}
|
|
1688
1972
|
}, [uri, httpClient]);
|
|
1689
|
-
return /* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ jsx31("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ jsx31(
|
|
1690
1974
|
Image,
|
|
1691
1975
|
{
|
|
1692
1976
|
className: `img-responsive ${getMargin(margin)}`,
|
|
@@ -1730,7 +2014,7 @@ var getImageSource = async (httpClient, imageUrl) => {
|
|
|
1730
2014
|
};
|
|
1731
2015
|
|
|
1732
2016
|
// ../renderers/src/ImageRenderer/UrnFlagImage.tsx
|
|
1733
|
-
import { jsx as
|
|
2017
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1734
2018
|
var maxFlagSize = 600;
|
|
1735
2019
|
function UrnFlagImage({
|
|
1736
2020
|
accessibilityDescription,
|
|
@@ -1739,15 +2023,15 @@ function UrnFlagImage({
|
|
|
1739
2023
|
size,
|
|
1740
2024
|
uri
|
|
1741
2025
|
}) {
|
|
1742
|
-
return /* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ jsx32("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx32(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
|
|
1743
2027
|
}
|
|
1744
2028
|
|
|
1745
2029
|
// ../renderers/src/ImageRenderer/UrnIllustration.tsx
|
|
1746
2030
|
import {
|
|
1747
2031
|
Illustration,
|
|
1748
|
-
Illustration3D,
|
|
1749
2032
|
isIllustrationSupport3D
|
|
1750
2033
|
} from "@wise/art";
|
|
2034
|
+
import { useState as useState5 } from "react";
|
|
1751
2035
|
|
|
1752
2036
|
// ../renderers/src/ImageRenderer/isAnimated.ts
|
|
1753
2037
|
var isAnimated = (uri) => {
|
|
@@ -1756,8 +2040,39 @@ var isAnimated = (uri) => {
|
|
|
1756
2040
|
return (_a = rComponents == null ? void 0 : rComponents.some(([key, value]) => key === "type" && value === "animated")) != null ? _a : false;
|
|
1757
2041
|
};
|
|
1758
2042
|
|
|
2043
|
+
// ../renderers/src/ImageRenderer/SafeIllustration3D.tsx
|
|
2044
|
+
import { Illustration3D } from "@wise/art";
|
|
2045
|
+
import { Component } from "react";
|
|
2046
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2047
|
+
var Illustration3DErrorBoundary = class extends Component {
|
|
2048
|
+
constructor(props) {
|
|
2049
|
+
super(props);
|
|
2050
|
+
this.state = { hasError: false };
|
|
2051
|
+
}
|
|
2052
|
+
static getDerivedStateFromError() {
|
|
2053
|
+
return { hasError: true };
|
|
2054
|
+
}
|
|
2055
|
+
componentDidCatch() {
|
|
2056
|
+
this.props.onError();
|
|
2057
|
+
}
|
|
2058
|
+
render() {
|
|
2059
|
+
if (this.state.hasError) {
|
|
2060
|
+
return null;
|
|
2061
|
+
}
|
|
2062
|
+
return this.props.children;
|
|
2063
|
+
}
|
|
2064
|
+
};
|
|
2065
|
+
var SafeIllustration3D = ({
|
|
2066
|
+
name,
|
|
2067
|
+
size,
|
|
2068
|
+
onError
|
|
2069
|
+
}) => {
|
|
2070
|
+
return /* @__PURE__ */ jsx33(Illustration3DErrorBoundary, { onError, children: /* @__PURE__ */ jsx33(Illustration3D, { name, size }) });
|
|
2071
|
+
};
|
|
2072
|
+
var SafeIllustration3D_default = SafeIllustration3D;
|
|
2073
|
+
|
|
1759
2074
|
// ../renderers/src/ImageRenderer/UrnIllustration.tsx
|
|
1760
|
-
import { jsx as
|
|
2075
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1761
2076
|
var urnPrefix = "urn:wise:illustrations:";
|
|
1762
2077
|
var isUrnIllustration = (uri) => uri.startsWith(urnPrefix);
|
|
1763
2078
|
function UrnIllustration({
|
|
@@ -1767,13 +2082,21 @@ function UrnIllustration({
|
|
|
1767
2082
|
size,
|
|
1768
2083
|
uri
|
|
1769
2084
|
}) {
|
|
2085
|
+
const [has3DFailed, setHas3DFailed] = useState5(false);
|
|
1770
2086
|
const illustrationSize = getIllustrationSize(size);
|
|
1771
2087
|
const illustrationName = getIllustrationName(uri);
|
|
1772
2088
|
const illustration3DName = getIllustration3DName(uri);
|
|
1773
|
-
if (illustration3DName && isAnimated(uri)) {
|
|
1774
|
-
return /* @__PURE__ */
|
|
2089
|
+
if (illustration3DName && isAnimated(uri) && !has3DFailed) {
|
|
2090
|
+
return /* @__PURE__ */ jsx34("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx34(
|
|
2091
|
+
SafeIllustration3D_default,
|
|
2092
|
+
{
|
|
2093
|
+
name: illustration3DName,
|
|
2094
|
+
size: illustrationSize,
|
|
2095
|
+
onError: () => setHas3DFailed(true)
|
|
2096
|
+
}
|
|
2097
|
+
) });
|
|
1775
2098
|
}
|
|
1776
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ jsx34("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx34(
|
|
1777
2100
|
Illustration,
|
|
1778
2101
|
{
|
|
1779
2102
|
className: "df-illustration",
|
|
@@ -1793,32 +2116,32 @@ var getIllustration3DName = (uri) => {
|
|
|
1793
2116
|
};
|
|
1794
2117
|
|
|
1795
2118
|
// ../renderers/src/ImageRenderer/UrnImage.tsx
|
|
1796
|
-
import { jsx as
|
|
2119
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1797
2120
|
var isUrnImage = (uri) => uri.startsWith("urn:");
|
|
1798
2121
|
function UrnImage(props) {
|
|
1799
2122
|
const { uri } = props;
|
|
1800
2123
|
if (isUrnIllustration(uri)) {
|
|
1801
|
-
return /* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ jsx35(UrnIllustration, __spreadValues({}, props));
|
|
1802
2125
|
}
|
|
1803
2126
|
if (isUrnFlag(uri)) {
|
|
1804
|
-
return /* @__PURE__ */
|
|
2127
|
+
return /* @__PURE__ */ jsx35(UrnFlagImage, __spreadValues({}, props));
|
|
1805
2128
|
}
|
|
1806
2129
|
return null;
|
|
1807
2130
|
}
|
|
1808
2131
|
|
|
1809
2132
|
// ../renderers/src/ImageRenderer/ImageRenderer.tsx
|
|
1810
|
-
import { jsx as
|
|
2133
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1811
2134
|
var ImageRenderer = {
|
|
1812
2135
|
canRenderType: "image",
|
|
1813
|
-
render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */
|
|
2136
|
+
render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx36(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx36(UrlImage, __spreadValues({}, props))
|
|
1814
2137
|
};
|
|
1815
2138
|
|
|
1816
2139
|
// ../renderers/src/ImageRenderer/index.tsx
|
|
1817
2140
|
var ImageRenderer_default = ImageRenderer;
|
|
1818
2141
|
|
|
1819
2142
|
// ../renderers/src/InstructionsRenderer.tsx
|
|
1820
|
-
import { Header as
|
|
1821
|
-
import { jsx as
|
|
2143
|
+
import { Header as Header4, InstructionsList } from "@transferwise/components";
|
|
2144
|
+
import { jsx as jsx37, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1822
2145
|
var doContext = ["positive", "neutral"];
|
|
1823
2146
|
var dontContext = ["warning", "negative"];
|
|
1824
2147
|
var InstructionsRenderer = {
|
|
@@ -1826,9 +2149,9 @@ var InstructionsRenderer = {
|
|
|
1826
2149
|
render: ({ items, margin, title }) => {
|
|
1827
2150
|
const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
|
|
1828
2151
|
const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
|
|
1829
|
-
return /* @__PURE__ */
|
|
1830
|
-
title ? /* @__PURE__ */
|
|
1831
|
-
/* @__PURE__ */
|
|
2152
|
+
return /* @__PURE__ */ jsxs8("div", { className: getMargin(margin), children: [
|
|
2153
|
+
title ? /* @__PURE__ */ jsx37(Header4, { title }) : null,
|
|
2154
|
+
/* @__PURE__ */ jsx37(InstructionsList, { dos, donts })
|
|
1832
2155
|
] });
|
|
1833
2156
|
}
|
|
1834
2157
|
};
|
|
@@ -1860,7 +2183,7 @@ function pick(obj, ...keys) {
|
|
|
1860
2183
|
}
|
|
1861
2184
|
|
|
1862
2185
|
// ../renderers/src/IntegerInputRenderer.tsx
|
|
1863
|
-
import { jsx as
|
|
2186
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1864
2187
|
var IntegerInputRenderer = {
|
|
1865
2188
|
canRenderType: "input-integer",
|
|
1866
2189
|
render: (props) => {
|
|
@@ -1875,7 +2198,7 @@ var IntegerInputRenderer = {
|
|
|
1875
2198
|
"maximum",
|
|
1876
2199
|
"minimum"
|
|
1877
2200
|
);
|
|
1878
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ jsx38(
|
|
1879
2202
|
FieldInput_default,
|
|
1880
2203
|
{
|
|
1881
2204
|
id,
|
|
@@ -1883,7 +2206,7 @@ var IntegerInputRenderer = {
|
|
|
1883
2206
|
description,
|
|
1884
2207
|
validation: validationState,
|
|
1885
2208
|
help,
|
|
1886
|
-
children: /* @__PURE__ */
|
|
2209
|
+
children: /* @__PURE__ */ jsx38(InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx38(
|
|
1887
2210
|
Input,
|
|
1888
2211
|
__spreadValues({
|
|
1889
2212
|
id,
|
|
@@ -1906,14 +2229,14 @@ var IntegerInputRenderer = {
|
|
|
1906
2229
|
var IntegerInputRenderer_default = IntegerInputRenderer;
|
|
1907
2230
|
|
|
1908
2231
|
// ../renderers/src/ListRenderer.tsx
|
|
1909
|
-
import { Body, Header as
|
|
2232
|
+
import { Body, Header as Header5 } from "@transferwise/components";
|
|
1910
2233
|
import classNames3 from "classnames";
|
|
1911
|
-
import { jsx as
|
|
2234
|
+
import { jsx as jsx39, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1912
2235
|
var ListRenderer = {
|
|
1913
2236
|
canRenderType: "list",
|
|
1914
|
-
render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */
|
|
1915
|
-
(title || callToAction) && /* @__PURE__ */
|
|
1916
|
-
items.map((props) => /* @__PURE__ */
|
|
2237
|
+
render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ jsxs9("div", { className: getMargin(margin), children: [
|
|
2238
|
+
(title || callToAction) && /* @__PURE__ */ jsx39(Header5, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
|
|
2239
|
+
items.map((props) => /* @__PURE__ */ jsx39(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
|
|
1917
2240
|
] })
|
|
1918
2241
|
};
|
|
1919
2242
|
var DesignSystemListItem = ({
|
|
@@ -1925,15 +2248,15 @@ var DesignSystemListItem = ({
|
|
|
1925
2248
|
media,
|
|
1926
2249
|
control,
|
|
1927
2250
|
tag
|
|
1928
|
-
}) => /* @__PURE__ */
|
|
2251
|
+
}) => /* @__PURE__ */ jsx39(
|
|
1929
2252
|
"label",
|
|
1930
2253
|
{
|
|
1931
2254
|
className: classNames3("np-option p-a-2", {
|
|
1932
2255
|
"np-option__sm-media": true,
|
|
1933
2256
|
"np-option__container-aligned": true
|
|
1934
2257
|
}),
|
|
1935
|
-
children: /* @__PURE__ */
|
|
1936
|
-
icon || image || media ? /* @__PURE__ */
|
|
2258
|
+
children: /* @__PURE__ */ jsxs9("div", { className: "media", children: [
|
|
2259
|
+
icon || image || media ? /* @__PURE__ */ jsx39("div", { className: "media-left", children: /* @__PURE__ */ jsx39(
|
|
1937
2260
|
ListItemMedia,
|
|
1938
2261
|
{
|
|
1939
2262
|
icon,
|
|
@@ -1941,14 +2264,14 @@ var DesignSystemListItem = ({
|
|
|
1941
2264
|
preferAvatar: control === "with-avatar" || tag === "with-avatar"
|
|
1942
2265
|
}
|
|
1943
2266
|
) }) : null,
|
|
1944
|
-
/* @__PURE__ */
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
2267
|
+
/* @__PURE__ */ jsxs9("div", { className: "media-body", children: [
|
|
2268
|
+
/* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
|
|
2269
|
+
/* @__PURE__ */ jsx39("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
|
|
2270
|
+
/* @__PURE__ */ jsx39("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
|
|
1948
2271
|
] }),
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
|
|
2273
|
+
/* @__PURE__ */ jsx39(Body, { className: "d-block np-option__body", children: description }),
|
|
2274
|
+
/* @__PURE__ */ jsx39(Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
|
|
1952
2275
|
] })
|
|
1953
2276
|
] })
|
|
1954
2277
|
] })
|
|
@@ -1961,9 +2284,9 @@ var ListItemMedia = ({
|
|
|
1961
2284
|
preferAvatar
|
|
1962
2285
|
}) => {
|
|
1963
2286
|
if (icon) {
|
|
1964
|
-
return /* @__PURE__ */
|
|
2287
|
+
return /* @__PURE__ */ jsx39("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ jsx39(OptionMedia, { media, preferAvatar }) });
|
|
1965
2288
|
}
|
|
1966
|
-
return /* @__PURE__ */
|
|
2289
|
+
return /* @__PURE__ */ jsx39("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ jsx39(OptionMedia, { media, preferAvatar }) });
|
|
1967
2290
|
};
|
|
1968
2291
|
var getListAction = (callToAction) => {
|
|
1969
2292
|
if (callToAction) {
|
|
@@ -1979,10 +2302,10 @@ var ListRenderer_default = ListRenderer;
|
|
|
1979
2302
|
|
|
1980
2303
|
// ../renderers/src/LoadingIndicatorRenderer.tsx
|
|
1981
2304
|
import { Loader } from "@transferwise/components";
|
|
1982
|
-
import { jsx as
|
|
2305
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
1983
2306
|
var LoadingIndicatorRenderer = {
|
|
1984
2307
|
canRenderType: "loading-indicator",
|
|
1985
|
-
render: ({ margin, size }) => /* @__PURE__ */
|
|
2308
|
+
render: ({ margin, size }) => /* @__PURE__ */ jsx40(
|
|
1986
2309
|
Loader,
|
|
1987
2310
|
{
|
|
1988
2311
|
size,
|
|
@@ -1995,28 +2318,28 @@ var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
|
|
|
1995
2318
|
|
|
1996
2319
|
// ../renderers/src/MarkdownRenderer.tsx
|
|
1997
2320
|
import { Markdown as Markdown3 } from "@transferwise/components";
|
|
1998
|
-
import { jsx as
|
|
2321
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
1999
2322
|
var MarkdownRenderer = {
|
|
2000
2323
|
canRenderType: "markdown",
|
|
2001
|
-
render: ({ content, align, margin }) => /* @__PURE__ */
|
|
2324
|
+
render: ({ content, align, margin }) => /* @__PURE__ */ jsx41("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx41(Markdown3, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
|
|
2002
2325
|
};
|
|
2003
2326
|
var MarkdownRenderer_default = MarkdownRenderer;
|
|
2004
2327
|
|
|
2005
2328
|
// ../renderers/src/ModalLayoutRenderer.tsx
|
|
2006
2329
|
import { Button as Button4, Modal as Modal2 } from "@transferwise/components";
|
|
2007
|
-
import { useState as
|
|
2008
|
-
import { jsx as
|
|
2330
|
+
import { useState as useState6 } from "react";
|
|
2331
|
+
import { jsx as jsx42, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2009
2332
|
var ModalLayoutRenderer = {
|
|
2010
2333
|
canRenderType: "modal-layout",
|
|
2011
|
-
render: (props) => /* @__PURE__ */
|
|
2334
|
+
render: (props) => /* @__PURE__ */ jsx42(DFModal, __spreadValues({}, props))
|
|
2012
2335
|
};
|
|
2013
2336
|
var ModalLayoutRenderer_default = ModalLayoutRenderer;
|
|
2014
2337
|
function DFModal({ content, margin, trigger }) {
|
|
2015
|
-
const [visible, setVisible] =
|
|
2338
|
+
const [visible, setVisible] = useState6(false);
|
|
2016
2339
|
const { children, title } = content;
|
|
2017
|
-
return /* @__PURE__ */
|
|
2018
|
-
/* @__PURE__ */
|
|
2019
|
-
/* @__PURE__ */
|
|
2340
|
+
return /* @__PURE__ */ jsxs10("div", { className: getMargin(margin), children: [
|
|
2341
|
+
/* @__PURE__ */ jsx42(Button4, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
|
|
2342
|
+
/* @__PURE__ */ jsx42(
|
|
2020
2343
|
Modal2,
|
|
2021
2344
|
{
|
|
2022
2345
|
scroll: "content",
|
|
@@ -2032,22 +2355,22 @@ function DFModal({ content, margin, trigger }) {
|
|
|
2032
2355
|
|
|
2033
2356
|
// ../renderers/src/ModalRenderer.tsx
|
|
2034
2357
|
import { Modal as Modal3 } from "@transferwise/components";
|
|
2035
|
-
import { jsx as
|
|
2358
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2036
2359
|
var ModalRenderer = {
|
|
2037
2360
|
canRenderType: "modal",
|
|
2038
2361
|
render: ({ title, children, open, onClose }) => {
|
|
2039
|
-
return /* @__PURE__ */
|
|
2362
|
+
return /* @__PURE__ */ jsx43(Modal3, { open, title, body: children, onClose });
|
|
2040
2363
|
}
|
|
2041
2364
|
};
|
|
2042
2365
|
|
|
2043
2366
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
2044
2367
|
import { SelectInput, SelectInputOptionContent } from "@transferwise/components";
|
|
2045
|
-
import { useState as
|
|
2046
|
-
import { useIntl as
|
|
2368
|
+
import { useState as useState7 } from "react";
|
|
2369
|
+
import { useIntl as useIntl6 } from "react-intl";
|
|
2047
2370
|
|
|
2048
2371
|
// ../renderers/src/messages/multi-select.messages.ts
|
|
2049
|
-
import { defineMessages as
|
|
2050
|
-
var multi_select_messages_default =
|
|
2372
|
+
import { defineMessages as defineMessages5 } from "react-intl";
|
|
2373
|
+
var multi_select_messages_default = defineMessages5({
|
|
2051
2374
|
summary: {
|
|
2052
2375
|
id: "df.wise.MultiSelect.summary",
|
|
2053
2376
|
defaultMessage: "{first} and {count} more",
|
|
@@ -2056,14 +2379,14 @@ var multi_select_messages_default = defineMessages4({
|
|
|
2056
2379
|
});
|
|
2057
2380
|
|
|
2058
2381
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
2059
|
-
import { jsx as
|
|
2382
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2060
2383
|
var MultiSelectInputRenderer = {
|
|
2061
2384
|
canRenderType: "input-multi-select",
|
|
2062
|
-
render: (props) => /* @__PURE__ */
|
|
2385
|
+
render: (props) => /* @__PURE__ */ jsx44(MultiSelectInputRendererComponent, __spreadValues({}, props))
|
|
2063
2386
|
};
|
|
2064
2387
|
function MultiSelectInputRendererComponent(props) {
|
|
2065
|
-
const { formatMessage } =
|
|
2066
|
-
const [stagedIndices, setStagedIndices] =
|
|
2388
|
+
const { formatMessage } = useIntl6();
|
|
2389
|
+
const [stagedIndices, setStagedIndices] = useState7();
|
|
2067
2390
|
const {
|
|
2068
2391
|
id,
|
|
2069
2392
|
autoComplete,
|
|
@@ -2101,12 +2424,12 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
2101
2424
|
const contentProps = {
|
|
2102
2425
|
title: option.title,
|
|
2103
2426
|
description: option.description,
|
|
2104
|
-
icon: /* @__PURE__ */
|
|
2427
|
+
icon: /* @__PURE__ */ jsx44(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2105
2428
|
};
|
|
2106
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx44(SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
2107
2430
|
};
|
|
2108
2431
|
const extraProps = { autoComplete };
|
|
2109
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ jsx44(
|
|
2110
2433
|
FieldInput_default,
|
|
2111
2434
|
{
|
|
2112
2435
|
id,
|
|
@@ -2114,7 +2437,7 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
2114
2437
|
help,
|
|
2115
2438
|
description,
|
|
2116
2439
|
validation: validationState,
|
|
2117
|
-
children: /* @__PURE__ */
|
|
2440
|
+
children: /* @__PURE__ */ jsx44(
|
|
2118
2441
|
SelectInput,
|
|
2119
2442
|
__spreadValues({
|
|
2120
2443
|
id,
|
|
@@ -2159,7 +2482,7 @@ import { UploadInput } from "@transferwise/components";
|
|
|
2159
2482
|
// ../renderers/src/components/UploadFieldInput.tsx
|
|
2160
2483
|
import { InlineAlert as InlineAlert2 } from "@transferwise/components";
|
|
2161
2484
|
import classNames4 from "classnames";
|
|
2162
|
-
import { jsx as
|
|
2485
|
+
import { jsx as jsx45, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2163
2486
|
function UploadFieldInput({
|
|
2164
2487
|
id,
|
|
2165
2488
|
children,
|
|
@@ -2168,18 +2491,18 @@ function UploadFieldInput({
|
|
|
2168
2491
|
help,
|
|
2169
2492
|
validation
|
|
2170
2493
|
}) {
|
|
2171
|
-
const labelContent = label && help ? /* @__PURE__ */
|
|
2494
|
+
const labelContent = label && help ? /* @__PURE__ */ jsx45(LabelContentWithHelp, { text: label, help }) : label;
|
|
2172
2495
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
2173
|
-
return /* @__PURE__ */
|
|
2496
|
+
return /* @__PURE__ */ jsxs11(
|
|
2174
2497
|
"div",
|
|
2175
2498
|
{
|
|
2176
2499
|
className: classNames4("form-group d-block", {
|
|
2177
2500
|
"has-error": (validation == null ? void 0 : validation.status) === "invalid"
|
|
2178
2501
|
}),
|
|
2179
2502
|
children: [
|
|
2180
|
-
/* @__PURE__ */
|
|
2503
|
+
/* @__PURE__ */ jsx45("label", { htmlFor: id, className: "control-label", children: labelContent }),
|
|
2181
2504
|
children,
|
|
2182
|
-
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */
|
|
2505
|
+
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx45(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
|
|
2183
2506
|
]
|
|
2184
2507
|
}
|
|
2185
2508
|
);
|
|
@@ -2214,7 +2537,7 @@ var getSizeLimit = (maxSize) => {
|
|
|
2214
2537
|
};
|
|
2215
2538
|
|
|
2216
2539
|
// ../renderers/src/MultiUploadInputRenderer.tsx
|
|
2217
|
-
import { jsx as
|
|
2540
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2218
2541
|
var MultiUploadInputRenderer = {
|
|
2219
2542
|
canRenderType: "input-upload-multi",
|
|
2220
2543
|
render: (props) => {
|
|
@@ -2239,7 +2562,7 @@ var MultiUploadInputRenderer = {
|
|
|
2239
2562
|
};
|
|
2240
2563
|
const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
|
|
2241
2564
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
2242
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ jsx46(
|
|
2243
2566
|
UploadFieldInput_default,
|
|
2244
2567
|
{
|
|
2245
2568
|
id,
|
|
@@ -2247,7 +2570,7 @@ var MultiUploadInputRenderer = {
|
|
|
2247
2570
|
description,
|
|
2248
2571
|
validation: validationState,
|
|
2249
2572
|
help,
|
|
2250
|
-
children: /* @__PURE__ */
|
|
2573
|
+
children: /* @__PURE__ */ jsx46(
|
|
2251
2574
|
UploadInput,
|
|
2252
2575
|
{
|
|
2253
2576
|
id,
|
|
@@ -2271,7 +2594,7 @@ var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
|
|
|
2271
2594
|
|
|
2272
2595
|
// ../renderers/src/NumberInputRenderer.tsx
|
|
2273
2596
|
import { Input as Input2, InputGroup as InputGroup2 } from "@transferwise/components";
|
|
2274
|
-
import { jsx as
|
|
2597
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2275
2598
|
var NumberInputRenderer = {
|
|
2276
2599
|
canRenderType: "input-number",
|
|
2277
2600
|
render: (props) => {
|
|
@@ -2285,7 +2608,7 @@ var NumberInputRenderer = {
|
|
|
2285
2608
|
"maximum",
|
|
2286
2609
|
"minimum"
|
|
2287
2610
|
);
|
|
2288
|
-
return /* @__PURE__ */
|
|
2611
|
+
return /* @__PURE__ */ jsx47(
|
|
2289
2612
|
FieldInput_default,
|
|
2290
2613
|
{
|
|
2291
2614
|
id,
|
|
@@ -2293,7 +2616,7 @@ var NumberInputRenderer = {
|
|
|
2293
2616
|
description,
|
|
2294
2617
|
validation: validationState,
|
|
2295
2618
|
help,
|
|
2296
|
-
children: /* @__PURE__ */
|
|
2619
|
+
children: /* @__PURE__ */ jsx47(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx47(
|
|
2297
2620
|
Input2,
|
|
2298
2621
|
__spreadValues({
|
|
2299
2622
|
id,
|
|
@@ -2314,7 +2637,7 @@ var NumberInputRenderer = {
|
|
|
2314
2637
|
var NumberInputRenderer_default = NumberInputRenderer;
|
|
2315
2638
|
|
|
2316
2639
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
2317
|
-
import { useIntl as
|
|
2640
|
+
import { useIntl as useIntl7 } from "react-intl";
|
|
2318
2641
|
|
|
2319
2642
|
// ../renderers/src/hooks/useSnackBarIfAvailable.ts
|
|
2320
2643
|
import { SnackbarContext } from "@transferwise/components";
|
|
@@ -2330,8 +2653,8 @@ import { Button as Button5, Input as Input3 } from "@transferwise/components";
|
|
|
2330
2653
|
import classNames5 from "classnames";
|
|
2331
2654
|
|
|
2332
2655
|
// ../renderers/src/messages/paragraph.messages.ts
|
|
2333
|
-
import { defineMessages as
|
|
2334
|
-
var paragraph_messages_default =
|
|
2656
|
+
import { defineMessages as defineMessages6 } from "react-intl";
|
|
2657
|
+
var paragraph_messages_default = defineMessages6({
|
|
2335
2658
|
copy: {
|
|
2336
2659
|
id: "df.wise.DynamicParagraph.copy",
|
|
2337
2660
|
defaultMessage: "Copy",
|
|
@@ -2345,32 +2668,32 @@ var paragraph_messages_default = defineMessages5({
|
|
|
2345
2668
|
});
|
|
2346
2669
|
|
|
2347
2670
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
2348
|
-
import { jsx as
|
|
2671
|
+
import { jsx as jsx48, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2349
2672
|
var ParagraphRenderer = {
|
|
2350
2673
|
canRenderType: "paragraph",
|
|
2351
|
-
render: (props) => /* @__PURE__ */
|
|
2674
|
+
render: (props) => /* @__PURE__ */ jsx48(Paragraph, __spreadValues({}, props))
|
|
2352
2675
|
};
|
|
2353
2676
|
function Paragraph({ align, control, margin, text }) {
|
|
2354
2677
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
2355
|
-
return control === "copyable" ? /* @__PURE__ */
|
|
2678
|
+
return control === "copyable" ? /* @__PURE__ */ jsx48(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx48(StandardParagraph, { className, text });
|
|
2356
2679
|
}
|
|
2357
2680
|
function StandardParagraph({ text, className }) {
|
|
2358
|
-
return /* @__PURE__ */
|
|
2681
|
+
return /* @__PURE__ */ jsx48("p", { className: `np-text-body-large ${className}`, children: text });
|
|
2359
2682
|
}
|
|
2360
2683
|
function CopyableParagraph({
|
|
2361
2684
|
text,
|
|
2362
2685
|
align,
|
|
2363
2686
|
className
|
|
2364
2687
|
}) {
|
|
2365
|
-
const { formatMessage } =
|
|
2688
|
+
const { formatMessage } = useIntl7();
|
|
2366
2689
|
const createSnackbar = useSnackBarIfAvailable();
|
|
2367
2690
|
const copy = () => {
|
|
2368
2691
|
navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
|
|
2369
2692
|
});
|
|
2370
2693
|
};
|
|
2371
2694
|
const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
|
|
2372
|
-
return /* @__PURE__ */
|
|
2373
|
-
/* @__PURE__ */
|
|
2695
|
+
return /* @__PURE__ */ jsxs12("div", { className, children: [
|
|
2696
|
+
/* @__PURE__ */ jsx48(
|
|
2374
2697
|
Input3,
|
|
2375
2698
|
{
|
|
2376
2699
|
type: "text",
|
|
@@ -2379,21 +2702,21 @@ function CopyableParagraph({
|
|
|
2379
2702
|
className: classNames5("text-ellipsis", inputAlignmentClasses)
|
|
2380
2703
|
}
|
|
2381
2704
|
),
|
|
2382
|
-
/* @__PURE__ */
|
|
2705
|
+
/* @__PURE__ */ jsx48(Button5, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
|
|
2383
2706
|
] });
|
|
2384
2707
|
}
|
|
2385
2708
|
var ParagraphRenderer_default = ParagraphRenderer;
|
|
2386
2709
|
|
|
2387
2710
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2388
|
-
import { Button as Button6, Header as
|
|
2711
|
+
import { Button as Button6, Header as Header6, InlineAlert as InlineAlert3, Modal as Modal4, NavigationOption as NavigationOption2 } from "@transferwise/components";
|
|
2389
2712
|
import { Plus } from "@transferwise/icons";
|
|
2390
2713
|
import classNames6 from "classnames";
|
|
2391
|
-
import { useState as
|
|
2392
|
-
import { useIntl as
|
|
2714
|
+
import { useState as useState8 } from "react";
|
|
2715
|
+
import { useIntl as useIntl8 } from "react-intl";
|
|
2393
2716
|
|
|
2394
2717
|
// ../renderers/src/messages/repeatable.messages.ts
|
|
2395
|
-
import { defineMessages as
|
|
2396
|
-
var repeatable_messages_default =
|
|
2718
|
+
import { defineMessages as defineMessages7 } from "react-intl";
|
|
2719
|
+
var repeatable_messages_default = defineMessages7({
|
|
2397
2720
|
addItemTitle: {
|
|
2398
2721
|
id: "df.wise.ArraySchema.addItemTitle",
|
|
2399
2722
|
defaultMessage: "Add Item",
|
|
@@ -2417,10 +2740,10 @@ var repeatable_messages_default = defineMessages6({
|
|
|
2417
2740
|
});
|
|
2418
2741
|
|
|
2419
2742
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2420
|
-
import { Fragment as
|
|
2743
|
+
import { Fragment as Fragment4, jsx as jsx49, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2421
2744
|
var RepeatableRenderer = {
|
|
2422
2745
|
canRenderType: "repeatable",
|
|
2423
|
-
render: (props) => /* @__PURE__ */
|
|
2746
|
+
render: (props) => /* @__PURE__ */ jsx49(Repeatable, __spreadValues({}, props))
|
|
2424
2747
|
};
|
|
2425
2748
|
function Repeatable(props) {
|
|
2426
2749
|
const {
|
|
@@ -2436,8 +2759,8 @@ function Repeatable(props) {
|
|
|
2436
2759
|
onSave,
|
|
2437
2760
|
onRemove
|
|
2438
2761
|
} = props;
|
|
2439
|
-
const { formatMessage } =
|
|
2440
|
-
const [openModalType, setOpenModalType] =
|
|
2762
|
+
const { formatMessage } = useIntl8();
|
|
2763
|
+
const [openModalType, setOpenModalType] = useState8(null);
|
|
2441
2764
|
const onAddItem = () => {
|
|
2442
2765
|
onAdd();
|
|
2443
2766
|
setOpenModalType("add");
|
|
@@ -2459,40 +2782,40 @@ function Repeatable(props) {
|
|
|
2459
2782
|
const onCancelEdit = () => {
|
|
2460
2783
|
setOpenModalType(null);
|
|
2461
2784
|
};
|
|
2462
|
-
return /* @__PURE__ */
|
|
2463
|
-
title && /* @__PURE__ */
|
|
2464
|
-
description && /* @__PURE__ */
|
|
2465
|
-
/* @__PURE__ */
|
|
2785
|
+
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
2786
|
+
title && /* @__PURE__ */ jsx49(Header6, { title }),
|
|
2787
|
+
description && /* @__PURE__ */ jsx49("p", { children: description }),
|
|
2788
|
+
/* @__PURE__ */ jsxs13(
|
|
2466
2789
|
"div",
|
|
2467
2790
|
{
|
|
2468
2791
|
className: classNames6("form-group", {
|
|
2469
2792
|
"has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
|
|
2470
2793
|
}),
|
|
2471
2794
|
children: [
|
|
2472
|
-
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */
|
|
2473
|
-
/* @__PURE__ */
|
|
2795
|
+
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx49(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
|
|
2796
|
+
/* @__PURE__ */ jsx49(
|
|
2474
2797
|
NavigationOption2,
|
|
2475
2798
|
{
|
|
2476
|
-
media: /* @__PURE__ */
|
|
2799
|
+
media: /* @__PURE__ */ jsx49(Plus, {}),
|
|
2477
2800
|
title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2478
2801
|
showMediaAtAllSizes: true,
|
|
2479
2802
|
onClick: () => onAddItem()
|
|
2480
2803
|
}
|
|
2481
2804
|
),
|
|
2482
|
-
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */
|
|
2805
|
+
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx49(InlineAlert3, { type: "negative", children: validationState.message })
|
|
2483
2806
|
]
|
|
2484
2807
|
}
|
|
2485
2808
|
),
|
|
2486
|
-
/* @__PURE__ */
|
|
2809
|
+
/* @__PURE__ */ jsx49(
|
|
2487
2810
|
Modal4,
|
|
2488
2811
|
{
|
|
2489
2812
|
open: openModalType !== null,
|
|
2490
2813
|
title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2491
|
-
body: /* @__PURE__ */
|
|
2492
|
-
/* @__PURE__ */
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
/* @__PURE__ */
|
|
2495
|
-
/* @__PURE__ */
|
|
2814
|
+
body: /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
2815
|
+
/* @__PURE__ */ jsx49("div", { className: "m-b-2", children: editableItem }),
|
|
2816
|
+
/* @__PURE__ */ jsxs13("div", { children: [
|
|
2817
|
+
/* @__PURE__ */ jsx49(Button6, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
|
|
2818
|
+
/* @__PURE__ */ jsx49(Button6, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
|
|
2496
2819
|
] })
|
|
2497
2820
|
] }),
|
|
2498
2821
|
onClose: () => onCancelEdit()
|
|
@@ -2504,10 +2827,10 @@ function ItemSummaryOption({
|
|
|
2504
2827
|
item,
|
|
2505
2828
|
onClick
|
|
2506
2829
|
}) {
|
|
2507
|
-
return /* @__PURE__ */
|
|
2830
|
+
return /* @__PURE__ */ jsx49(
|
|
2508
2831
|
NavigationOption2,
|
|
2509
2832
|
{
|
|
2510
|
-
media: /* @__PURE__ */
|
|
2833
|
+
media: /* @__PURE__ */ jsx49(OptionMedia, { media: item.media, preferAvatar: false }),
|
|
2511
2834
|
title: item.title,
|
|
2512
2835
|
content: item.description,
|
|
2513
2836
|
showMediaAtAllSizes: true,
|
|
@@ -2518,7 +2841,7 @@ function ItemSummaryOption({
|
|
|
2518
2841
|
var RepeatableRenderer_default = RepeatableRenderer;
|
|
2519
2842
|
|
|
2520
2843
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2521
|
-
import { DefinitionList, Header as
|
|
2844
|
+
import { DefinitionList, Header as Header7 } from "@transferwise/components";
|
|
2522
2845
|
|
|
2523
2846
|
// ../renderers/src/utils/getHeaderAction.tsx
|
|
2524
2847
|
var getHeaderAction = (callToAction) => {
|
|
@@ -2542,14 +2865,14 @@ var getHeaderAction = (callToAction) => {
|
|
|
2542
2865
|
};
|
|
2543
2866
|
|
|
2544
2867
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2545
|
-
import { Fragment as
|
|
2868
|
+
import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2546
2869
|
var ReviewRenderer = {
|
|
2547
2870
|
canRenderType: "review",
|
|
2548
2871
|
render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
|
|
2549
2872
|
const orientation = mapControlToDefinitionListLayout(control);
|
|
2550
|
-
return /* @__PURE__ */
|
|
2551
|
-
(title || callToAction) && /* @__PURE__ */
|
|
2552
|
-
/* @__PURE__ */
|
|
2873
|
+
return /* @__PURE__ */ jsxs14("div", { className: getMargin(margin), children: [
|
|
2874
|
+
(title || callToAction) && /* @__PURE__ */ jsx50(Header7, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
|
|
2875
|
+
/* @__PURE__ */ jsx50("div", { className: margin, children: /* @__PURE__ */ jsx50(
|
|
2553
2876
|
DefinitionList,
|
|
2554
2877
|
{
|
|
2555
2878
|
layout: orientation,
|
|
@@ -2588,14 +2911,14 @@ var mapControlToDefinitionListLayout = (control) => {
|
|
|
2588
2911
|
};
|
|
2589
2912
|
var getFieldValue = (value, help, orientation, onClick) => {
|
|
2590
2913
|
if (help) {
|
|
2591
|
-
return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */
|
|
2592
|
-
/* @__PURE__ */
|
|
2914
|
+
return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs14(Fragment5, { children: [
|
|
2915
|
+
/* @__PURE__ */ jsx50(Help_default, { help, onClick }),
|
|
2593
2916
|
" ",
|
|
2594
2917
|
value
|
|
2595
|
-
] }) : /* @__PURE__ */
|
|
2918
|
+
] }) : /* @__PURE__ */ jsxs14(Fragment5, { children: [
|
|
2596
2919
|
value,
|
|
2597
2920
|
" ",
|
|
2598
|
-
/* @__PURE__ */
|
|
2921
|
+
/* @__PURE__ */ jsx50(Help_default, { help, onClick })
|
|
2599
2922
|
] });
|
|
2600
2923
|
}
|
|
2601
2924
|
return value;
|
|
@@ -2603,12 +2926,12 @@ var getFieldValue = (value, help, orientation, onClick) => {
|
|
|
2603
2926
|
|
|
2604
2927
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2605
2928
|
import { Input as Input4, Markdown as Markdown4, NavigationOption as NavigationOption3, NavigationOptionsList as NavigationOptionsList2 } from "@transferwise/components";
|
|
2606
|
-
import { useState as
|
|
2607
|
-
import { useIntl as
|
|
2929
|
+
import { useState as useState9 } from "react";
|
|
2930
|
+
import { useIntl as useIntl10 } from "react-intl";
|
|
2608
2931
|
|
|
2609
2932
|
// ../renderers/src/messages/search.messages.ts
|
|
2610
|
-
import { defineMessages as
|
|
2611
|
-
var search_messages_default =
|
|
2933
|
+
import { defineMessages as defineMessages8 } from "react-intl";
|
|
2934
|
+
var search_messages_default = defineMessages8({
|
|
2612
2935
|
loading: {
|
|
2613
2936
|
id: "df.wise.SearchLayout.loading",
|
|
2614
2937
|
defaultMessage: "Loading...",
|
|
@@ -2617,11 +2940,11 @@ var search_messages_default = defineMessages7({
|
|
|
2617
2940
|
});
|
|
2618
2941
|
|
|
2619
2942
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2620
|
-
import { useIntl as
|
|
2943
|
+
import { useIntl as useIntl9 } from "react-intl";
|
|
2621
2944
|
|
|
2622
2945
|
// ../renderers/src/messages/generic-error.messages.ts
|
|
2623
|
-
import { defineMessages as
|
|
2624
|
-
var generic_error_messages_default =
|
|
2946
|
+
import { defineMessages as defineMessages9 } from "react-intl";
|
|
2947
|
+
var generic_error_messages_default = defineMessages9({
|
|
2625
2948
|
genericErrorRetryHint: {
|
|
2626
2949
|
id: "df.wise.PersistAsyncSchema.genericError",
|
|
2627
2950
|
defaultMessage: "Something went wrong, please try again.",
|
|
@@ -2641,18 +2964,18 @@ var generic_error_messages_default = defineMessages8({
|
|
|
2641
2964
|
|
|
2642
2965
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2643
2966
|
import { Button as Button7 } from "@transferwise/components";
|
|
2644
|
-
import { jsx as
|
|
2967
|
+
import { jsx as jsx51, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2645
2968
|
function ErrorResult({ state }) {
|
|
2646
|
-
const intl =
|
|
2969
|
+
const intl = useIntl9();
|
|
2647
2970
|
const buttonVisualProps = {
|
|
2648
2971
|
priority: "tertiary",
|
|
2649
2972
|
size: "sm",
|
|
2650
2973
|
style: { marginTop: "-2px", padding: "0", width: "auto", display: "inline" }
|
|
2651
2974
|
};
|
|
2652
|
-
return /* @__PURE__ */
|
|
2975
|
+
return /* @__PURE__ */ jsxs15("p", { className: "m-t-2", children: [
|
|
2653
2976
|
intl.formatMessage(generic_error_messages_default.genericError),
|
|
2654
2977
|
"\xA0",
|
|
2655
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ jsx51(
|
|
2656
2979
|
Button7,
|
|
2657
2980
|
__spreadProps(__spreadValues({}, buttonVisualProps), {
|
|
2658
2981
|
onClick: () => {
|
|
@@ -2665,7 +2988,7 @@ function ErrorResult({ state }) {
|
|
|
2665
2988
|
}
|
|
2666
2989
|
|
|
2667
2990
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2668
|
-
import { Fragment as
|
|
2991
|
+
import { Fragment as Fragment6, jsx as jsx52, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2669
2992
|
function BlockSearchRendererComponent({
|
|
2670
2993
|
id,
|
|
2671
2994
|
isLoading,
|
|
@@ -2676,10 +2999,10 @@ function BlockSearchRendererComponent({
|
|
|
2676
2999
|
trackEvent,
|
|
2677
3000
|
onChange
|
|
2678
3001
|
}) {
|
|
2679
|
-
const [hasSearched, setHasSearched] =
|
|
2680
|
-
const { formatMessage } =
|
|
2681
|
-
return /* @__PURE__ */
|
|
2682
|
-
/* @__PURE__ */
|
|
3002
|
+
const [hasSearched, setHasSearched] = useState9(false);
|
|
3003
|
+
const { formatMessage } = useIntl10();
|
|
3004
|
+
return /* @__PURE__ */ jsxs16("div", { className: getMargin(margin), children: [
|
|
3005
|
+
/* @__PURE__ */ jsx52(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx52(
|
|
2683
3006
|
Input4,
|
|
2684
3007
|
{
|
|
2685
3008
|
id,
|
|
@@ -2696,7 +3019,7 @@ function BlockSearchRendererComponent({
|
|
|
2696
3019
|
}
|
|
2697
3020
|
}
|
|
2698
3021
|
) }),
|
|
2699
|
-
isLoading ? /* @__PURE__ */
|
|
3022
|
+
isLoading ? /* @__PURE__ */ jsx52(Fragment6, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx52(SearchResultContent, { state, trackEvent })
|
|
2700
3023
|
] });
|
|
2701
3024
|
}
|
|
2702
3025
|
function SearchResultContent({
|
|
@@ -2705,26 +3028,26 @@ function SearchResultContent({
|
|
|
2705
3028
|
}) {
|
|
2706
3029
|
switch (state.type) {
|
|
2707
3030
|
case "error":
|
|
2708
|
-
return /* @__PURE__ */
|
|
3031
|
+
return /* @__PURE__ */ jsx52(ErrorResult, { state });
|
|
2709
3032
|
case "results":
|
|
2710
|
-
return /* @__PURE__ */
|
|
3033
|
+
return /* @__PURE__ */ jsx52(SearchResults, { state, trackEvent });
|
|
2711
3034
|
case "noResults":
|
|
2712
|
-
return /* @__PURE__ */
|
|
3035
|
+
return /* @__PURE__ */ jsx52(EmptySearchResult, { state });
|
|
2713
3036
|
case "pending":
|
|
2714
3037
|
default:
|
|
2715
3038
|
return null;
|
|
2716
3039
|
}
|
|
2717
3040
|
}
|
|
2718
3041
|
function EmptySearchResult({ state }) {
|
|
2719
|
-
return /* @__PURE__ */
|
|
3042
|
+
return /* @__PURE__ */ jsx52(Markdown4, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2720
3043
|
}
|
|
2721
3044
|
function SearchResults({
|
|
2722
3045
|
state,
|
|
2723
3046
|
trackEvent
|
|
2724
3047
|
}) {
|
|
2725
|
-
return /* @__PURE__ */
|
|
3048
|
+
return /* @__PURE__ */ jsx52(NavigationOptionsList2, { children: state.results.map((result) => {
|
|
2726
3049
|
const { media } = result;
|
|
2727
|
-
return /* @__PURE__ */
|
|
3050
|
+
return /* @__PURE__ */ jsx52(
|
|
2728
3051
|
NavigationOption3,
|
|
2729
3052
|
{
|
|
2730
3053
|
title: result.title,
|
|
@@ -2748,9 +3071,9 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
|
|
|
2748
3071
|
// ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
|
|
2749
3072
|
import { Markdown as Markdown5, Typeahead } from "@transferwise/components";
|
|
2750
3073
|
import { Search } from "@transferwise/icons";
|
|
2751
|
-
import { useState as
|
|
2752
|
-
import { useIntl as
|
|
2753
|
-
import { jsx as
|
|
3074
|
+
import { useState as useState10 } from "react";
|
|
3075
|
+
import { useIntl as useIntl11 } from "react-intl";
|
|
3076
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
2754
3077
|
function InlineSearchRenderer({
|
|
2755
3078
|
id,
|
|
2756
3079
|
isLoading,
|
|
@@ -2760,9 +3083,9 @@ function InlineSearchRenderer({
|
|
|
2760
3083
|
title,
|
|
2761
3084
|
trackEvent
|
|
2762
3085
|
}) {
|
|
2763
|
-
const [hasSearched, setHasSearched] =
|
|
2764
|
-
const intl =
|
|
2765
|
-
return /* @__PURE__ */
|
|
3086
|
+
const [hasSearched, setHasSearched] = useState10(false);
|
|
3087
|
+
const intl = useIntl11();
|
|
3088
|
+
return /* @__PURE__ */ jsx53("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx53(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx53(
|
|
2766
3089
|
Typeahead,
|
|
2767
3090
|
{
|
|
2768
3091
|
id: "typeahead-input-id",
|
|
@@ -2770,10 +3093,10 @@ function InlineSearchRenderer({
|
|
|
2770
3093
|
name: "typeahead-input-name",
|
|
2771
3094
|
size: "md",
|
|
2772
3095
|
maxHeight: 100,
|
|
2773
|
-
footer: /* @__PURE__ */
|
|
3096
|
+
footer: /* @__PURE__ */ jsx53(TypeaheadFooter, { state, isLoading }),
|
|
2774
3097
|
multiple: false,
|
|
2775
3098
|
clearable: false,
|
|
2776
|
-
addon: /* @__PURE__ */
|
|
3099
|
+
addon: /* @__PURE__ */ jsx53(Search, { size: 24 }),
|
|
2777
3100
|
options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
|
|
2778
3101
|
minQueryLength: 1,
|
|
2779
3102
|
onChange: (values) => {
|
|
@@ -2808,36 +3131,36 @@ function mapResultToTypeaheadOption(result) {
|
|
|
2808
3131
|
};
|
|
2809
3132
|
}
|
|
2810
3133
|
function TypeaheadFooter({ state, isLoading }) {
|
|
2811
|
-
const { formatMessage } =
|
|
3134
|
+
const { formatMessage } = useIntl11();
|
|
2812
3135
|
if (state.type === "noResults") {
|
|
2813
|
-
return /* @__PURE__ */
|
|
3136
|
+
return /* @__PURE__ */ jsx53(Markdown5, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2814
3137
|
}
|
|
2815
3138
|
if (state.type === "error") {
|
|
2816
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ jsx53("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx53(ErrorResult, { state }) });
|
|
2817
3140
|
}
|
|
2818
3141
|
if (state.type === "pending" || isLoading) {
|
|
2819
|
-
return /* @__PURE__ */
|
|
3142
|
+
return /* @__PURE__ */ jsx53("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
|
|
2820
3143
|
}
|
|
2821
3144
|
return null;
|
|
2822
3145
|
}
|
|
2823
3146
|
var InlineSearchRendererComponent_default = InlineSearchRenderer;
|
|
2824
3147
|
|
|
2825
3148
|
// ../renderers/src/SearchRenderer/SearchRenderer.tsx
|
|
2826
|
-
import { jsx as
|
|
3149
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
2827
3150
|
var SearchRenderer = {
|
|
2828
3151
|
canRenderType: "search",
|
|
2829
|
-
render: (props) => props.control === "inline" ? /* @__PURE__ */
|
|
3152
|
+
render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx54(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx54(BlockSearchRendererComponent_default, __spreadValues({}, props))
|
|
2830
3153
|
};
|
|
2831
3154
|
var SearchRenderer_default = SearchRenderer;
|
|
2832
3155
|
|
|
2833
3156
|
// ../renderers/src/SectionRenderer.tsx
|
|
2834
|
-
import { Header as
|
|
2835
|
-
import { jsx as
|
|
3157
|
+
import { Header as Header8 } from "@transferwise/components";
|
|
3158
|
+
import { jsx as jsx55, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2836
3159
|
var SectionRenderer = {
|
|
2837
3160
|
canRenderType: "section",
|
|
2838
3161
|
render: ({ children, callToAction, margin, title }) => {
|
|
2839
|
-
return /* @__PURE__ */
|
|
2840
|
-
(title || callToAction) && /* @__PURE__ */
|
|
3162
|
+
return /* @__PURE__ */ jsxs17("section", { className: getMargin(margin), children: [
|
|
3163
|
+
(title || callToAction) && /* @__PURE__ */ jsx55(Header8, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
|
|
2841
3164
|
children
|
|
2842
3165
|
] });
|
|
2843
3166
|
}
|
|
@@ -2846,7 +3169,7 @@ var SectionRenderer_default = SectionRenderer;
|
|
|
2846
3169
|
|
|
2847
3170
|
// ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
|
|
2848
3171
|
import { RadioGroup } from "@transferwise/components";
|
|
2849
|
-
import { Fragment as
|
|
3172
|
+
import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2850
3173
|
function RadioInputRendererComponent(props) {
|
|
2851
3174
|
const {
|
|
2852
3175
|
id,
|
|
@@ -2860,8 +3183,8 @@ function RadioInputRendererComponent(props) {
|
|
|
2860
3183
|
validationState,
|
|
2861
3184
|
onSelect
|
|
2862
3185
|
} = props;
|
|
2863
|
-
return /* @__PURE__ */
|
|
2864
|
-
/* @__PURE__ */
|
|
3186
|
+
return /* @__PURE__ */ jsxs18(Fragment7, { children: [
|
|
3187
|
+
/* @__PURE__ */ jsx56(
|
|
2865
3188
|
FieldInput_default,
|
|
2866
3189
|
{
|
|
2867
3190
|
id,
|
|
@@ -2869,7 +3192,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2869
3192
|
help,
|
|
2870
3193
|
description,
|
|
2871
3194
|
validation: validationState,
|
|
2872
|
-
children: /* @__PURE__ */
|
|
3195
|
+
children: /* @__PURE__ */ jsx56("span", { children: /* @__PURE__ */ jsx56(
|
|
2873
3196
|
RadioGroup,
|
|
2874
3197
|
{
|
|
2875
3198
|
name: id,
|
|
@@ -2878,7 +3201,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2878
3201
|
value: index,
|
|
2879
3202
|
secondary: option.description,
|
|
2880
3203
|
disabled: option.disabled || disabled,
|
|
2881
|
-
avatar: /* @__PURE__ */
|
|
3204
|
+
avatar: /* @__PURE__ */ jsx56(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2882
3205
|
})),
|
|
2883
3206
|
selectedValue: selectedIndex != null ? selectedIndex : void 0,
|
|
2884
3207
|
onChange: onSelect
|
|
@@ -2894,7 +3217,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2894
3217
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
2895
3218
|
import { Tabs } from "@transferwise/components";
|
|
2896
3219
|
import { useEffect as useEffect5 } from "react";
|
|
2897
|
-
import { Fragment as
|
|
3220
|
+
import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2898
3221
|
function TabInputRendererComponent(props) {
|
|
2899
3222
|
const {
|
|
2900
3223
|
id,
|
|
@@ -2913,8 +3236,8 @@ function TabInputRendererComponent(props) {
|
|
|
2913
3236
|
onSelect(0);
|
|
2914
3237
|
}
|
|
2915
3238
|
}, [selectedIndex, onSelect, options.length]);
|
|
2916
|
-
return /* @__PURE__ */
|
|
2917
|
-
/* @__PURE__ */
|
|
3239
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
3240
|
+
/* @__PURE__ */ jsx57(
|
|
2918
3241
|
FieldInput_default,
|
|
2919
3242
|
{
|
|
2920
3243
|
id,
|
|
@@ -2922,7 +3245,7 @@ function TabInputRendererComponent(props) {
|
|
|
2922
3245
|
help,
|
|
2923
3246
|
description,
|
|
2924
3247
|
validation: validationState,
|
|
2925
|
-
children: /* @__PURE__ */
|
|
3248
|
+
children: /* @__PURE__ */ jsx57(
|
|
2926
3249
|
Tabs,
|
|
2927
3250
|
{
|
|
2928
3251
|
name: id,
|
|
@@ -2931,7 +3254,7 @@ function TabInputRendererComponent(props) {
|
|
|
2931
3254
|
title: option.title,
|
|
2932
3255
|
// if we pass null, we get some props-types console errors
|
|
2933
3256
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
2934
|
-
content: /* @__PURE__ */
|
|
3257
|
+
content: /* @__PURE__ */ jsx57(Fragment8, {}),
|
|
2935
3258
|
disabled: option.disabled || disabled
|
|
2936
3259
|
})),
|
|
2937
3260
|
onTabSelect: onSelect
|
|
@@ -2946,7 +3269,7 @@ var isValidIndex = (index, options) => index !== null && index >= 0 && index < o
|
|
|
2946
3269
|
|
|
2947
3270
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
2948
3271
|
import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
|
|
2949
|
-
import { Fragment as
|
|
3272
|
+
import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2950
3273
|
function SelectInputRendererComponent(props) {
|
|
2951
3274
|
const {
|
|
2952
3275
|
id,
|
|
@@ -2986,13 +3309,13 @@ function SelectInputRendererComponent(props) {
|
|
|
2986
3309
|
} : {
|
|
2987
3310
|
title: option.title,
|
|
2988
3311
|
description: option.description,
|
|
2989
|
-
icon: /* @__PURE__ */
|
|
3312
|
+
icon: /* @__PURE__ */ jsx58(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2990
3313
|
};
|
|
2991
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ jsx58(SelectInputOptionContent2, __spreadValues({}, contentProps));
|
|
2992
3315
|
};
|
|
2993
3316
|
const extraProps = { autoComplete };
|
|
2994
|
-
return /* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
3317
|
+
return /* @__PURE__ */ jsxs20(Fragment9, { children: [
|
|
3318
|
+
/* @__PURE__ */ jsx58(
|
|
2996
3319
|
FieldInput_default,
|
|
2997
3320
|
{
|
|
2998
3321
|
id,
|
|
@@ -3000,7 +3323,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3000
3323
|
help,
|
|
3001
3324
|
description,
|
|
3002
3325
|
validation: validationState,
|
|
3003
|
-
children: /* @__PURE__ */
|
|
3326
|
+
children: /* @__PURE__ */ jsx58(
|
|
3004
3327
|
SelectInput2,
|
|
3005
3328
|
__spreadValues({
|
|
3006
3329
|
name: id,
|
|
@@ -3023,7 +3346,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3023
3346
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
3024
3347
|
import { useEffect as useEffect6 } from "react";
|
|
3025
3348
|
import { SegmentedControl } from "@transferwise/components";
|
|
3026
|
-
import { Fragment as
|
|
3349
|
+
import { Fragment as Fragment10, jsx as jsx59, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3027
3350
|
function SegmentedInputRendererComponent(props) {
|
|
3028
3351
|
const {
|
|
3029
3352
|
id,
|
|
@@ -3041,8 +3364,8 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3041
3364
|
onSelect(0);
|
|
3042
3365
|
}
|
|
3043
3366
|
}, [selectedIndex, onSelect, options.length]);
|
|
3044
|
-
return /* @__PURE__ */
|
|
3045
|
-
/* @__PURE__ */
|
|
3367
|
+
return /* @__PURE__ */ jsxs21(Fragment10, { children: [
|
|
3368
|
+
/* @__PURE__ */ jsx59(
|
|
3046
3369
|
FieldInput_default,
|
|
3047
3370
|
{
|
|
3048
3371
|
id,
|
|
@@ -3050,7 +3373,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3050
3373
|
help,
|
|
3051
3374
|
description,
|
|
3052
3375
|
validation: validationState,
|
|
3053
|
-
children: /* @__PURE__ */
|
|
3376
|
+
children: /* @__PURE__ */ jsx59(
|
|
3054
3377
|
SegmentedControl,
|
|
3055
3378
|
{
|
|
3056
3379
|
name: `${id}-segmented-control`,
|
|
@@ -3067,44 +3390,44 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3067
3390
|
)
|
|
3068
3391
|
}
|
|
3069
3392
|
),
|
|
3070
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ jsx59("div", { id: `${id}-children`, children })
|
|
3071
3394
|
] });
|
|
3072
3395
|
}
|
|
3073
3396
|
var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
|
|
3074
3397
|
|
|
3075
3398
|
// ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
|
|
3076
|
-
import { jsx as
|
|
3399
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
3077
3400
|
var SelectInputRenderer = {
|
|
3078
3401
|
canRenderType: "input-select",
|
|
3079
3402
|
render: (props) => {
|
|
3080
3403
|
switch (props.control) {
|
|
3081
3404
|
case "radio":
|
|
3082
|
-
return /* @__PURE__ */
|
|
3405
|
+
return /* @__PURE__ */ jsx60(RadioInputRendererComponent, __spreadValues({}, props));
|
|
3083
3406
|
case "tab":
|
|
3084
|
-
return props.options.length > 3 ? /* @__PURE__ */
|
|
3407
|
+
return props.options.length > 3 ? /* @__PURE__ */ jsx60(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx60(TabInputRendererComponent, __spreadValues({}, props));
|
|
3085
3408
|
case "segmented":
|
|
3086
|
-
return props.options.length > 3 ? /* @__PURE__ */
|
|
3409
|
+
return props.options.length > 3 ? /* @__PURE__ */ jsx60(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx60(SegmentedInputRendererComponent, __spreadValues({}, props));
|
|
3087
3410
|
case "select":
|
|
3088
3411
|
default:
|
|
3089
|
-
return /* @__PURE__ */
|
|
3412
|
+
return /* @__PURE__ */ jsx60(SelectInputRendererComponent, __spreadValues({}, props));
|
|
3090
3413
|
}
|
|
3091
3414
|
}
|
|
3092
3415
|
};
|
|
3093
3416
|
var SelectInputRenderer_default = SelectInputRenderer;
|
|
3094
3417
|
|
|
3095
3418
|
// ../renderers/src/StatusListRenderer.tsx
|
|
3096
|
-
import { Header as
|
|
3097
|
-
import { jsx as
|
|
3419
|
+
import { Header as Header9, Summary } from "@transferwise/components";
|
|
3420
|
+
import { jsx as jsx61, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3098
3421
|
var StatusListRenderer = {
|
|
3099
3422
|
canRenderType: "status-list",
|
|
3100
|
-
render: ({ margin, items, title }) => /* @__PURE__ */
|
|
3101
|
-
title ? /* @__PURE__ */
|
|
3102
|
-
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */
|
|
3423
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs22("div", { className: getMargin(margin), children: [
|
|
3424
|
+
title ? /* @__PURE__ */ jsx61(Header9, { title, className: "m-b-2" }) : null,
|
|
3425
|
+
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx61(
|
|
3103
3426
|
Summary,
|
|
3104
3427
|
{
|
|
3105
3428
|
title: itemTitle,
|
|
3106
3429
|
description,
|
|
3107
|
-
icon: icon && "name" in icon ? /* @__PURE__ */
|
|
3430
|
+
icon: icon && "name" in icon ? /* @__PURE__ */ jsx61(DynamicIcon_default, { name: icon.name }) : null,
|
|
3108
3431
|
status: mapStatus(status),
|
|
3109
3432
|
action: getSummaryAction(callToAction)
|
|
3110
3433
|
},
|
|
@@ -3155,102 +3478,172 @@ var useCustomTheme = (theme, trackEvent) => {
|
|
|
3155
3478
|
}, []);
|
|
3156
3479
|
};
|
|
3157
3480
|
|
|
3158
|
-
// ../renderers/src/step/BackButton.tsx
|
|
3159
|
-
import {
|
|
3481
|
+
// ../renderers/src/step/topbar/BackButton.tsx
|
|
3482
|
+
import { IconButton } from "@transferwise/components";
|
|
3160
3483
|
import { ArrowLeft } from "@transferwise/icons";
|
|
3161
|
-
import { jsx as
|
|
3484
|
+
import { jsx as jsx62, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3162
3485
|
function BackButton({ title, onClick }) {
|
|
3163
|
-
return /* @__PURE__ */
|
|
3164
|
-
"
|
|
3486
|
+
return /* @__PURE__ */ jsxs23(IconButton, { priority: "tertiary", onClick, children: [
|
|
3487
|
+
/* @__PURE__ */ jsx62("span", { className: "sr-only", children: title }),
|
|
3488
|
+
/* @__PURE__ */ jsx62(ArrowLeft, {})
|
|
3489
|
+
] });
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
// ../renderers/src/step/topbar/Toolbar.tsx
|
|
3493
|
+
import { Button as Button8, IconButton as IconButton2 } from "@transferwise/components";
|
|
3494
|
+
import { jsx as jsx63, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3495
|
+
var Toolbar = ({ items }) => {
|
|
3496
|
+
return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx63("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx63(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
|
|
3497
|
+
};
|
|
3498
|
+
function ToolbarButton(props) {
|
|
3499
|
+
return prefersMedia(props.control) ? /* @__PURE__ */ jsx63(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx63(TextToolbarButton, __spreadValues({}, props));
|
|
3500
|
+
}
|
|
3501
|
+
function MediaToolbarButton(props) {
|
|
3502
|
+
var _a;
|
|
3503
|
+
const { context, control, media, accessibilityDescription, disabled, onClick } = props;
|
|
3504
|
+
const priority = getPriority(control);
|
|
3505
|
+
const type = getSentiment(context);
|
|
3506
|
+
return /* @__PURE__ */ jsxs24(
|
|
3507
|
+
IconButton2,
|
|
3165
3508
|
{
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3509
|
+
className: "df-toolbar-button",
|
|
3510
|
+
disabled,
|
|
3511
|
+
priority,
|
|
3512
|
+
size: 32,
|
|
3513
|
+
type,
|
|
3170
3514
|
onClick,
|
|
3171
3515
|
children: [
|
|
3172
|
-
/* @__PURE__ */
|
|
3173
|
-
|
|
3516
|
+
accessibilityDescription ? /* @__PURE__ */ jsx63("span", { className: "sr-only", children: accessibilityDescription }) : null,
|
|
3517
|
+
media ? (_a = getAddonStart(media)) == null ? void 0 : _a.value : null
|
|
3174
3518
|
]
|
|
3175
3519
|
}
|
|
3176
|
-
)
|
|
3520
|
+
);
|
|
3521
|
+
}
|
|
3522
|
+
function TextToolbarButton(props) {
|
|
3523
|
+
const { context, control, title, media, disabled, onClick } = props;
|
|
3524
|
+
const addonStart = media ? getAddonStart(media) : void 0;
|
|
3525
|
+
const priority = getPriority(control);
|
|
3526
|
+
const sentiment = getSentiment(context);
|
|
3527
|
+
return /* @__PURE__ */ jsx63(
|
|
3528
|
+
Button8,
|
|
3529
|
+
{
|
|
3530
|
+
v2: true,
|
|
3531
|
+
size: "sm",
|
|
3532
|
+
className: "df-toolbar-button",
|
|
3533
|
+
disabled,
|
|
3534
|
+
priority,
|
|
3535
|
+
addonStart,
|
|
3536
|
+
sentiment,
|
|
3537
|
+
onClick,
|
|
3538
|
+
children: title
|
|
3539
|
+
}
|
|
3540
|
+
);
|
|
3541
|
+
}
|
|
3542
|
+
var getAddonStart = (media) => {
|
|
3543
|
+
if (media.type === "avatar") {
|
|
3544
|
+
if (media.content.length === 1) {
|
|
3545
|
+
if (media.content[0].type === "text") {
|
|
3546
|
+
return { type: "icon", value: media.content[0].text };
|
|
3547
|
+
}
|
|
3548
|
+
if (media.content[0].type === "uri" && isValidIconUrn(media.content[0].uri)) {
|
|
3549
|
+
const { asset, icon } = resolveUri(media.content[0].uri, 24);
|
|
3550
|
+
return { type: "icon", value: icon != null ? icon : asset };
|
|
3551
|
+
}
|
|
3552
|
+
}
|
|
3553
|
+
return void 0;
|
|
3554
|
+
}
|
|
3555
|
+
};
|
|
3556
|
+
var getPriority = (control) => isKnownControl(control) && control.startsWith("primary") ? "primary" : "secondary";
|
|
3557
|
+
var prefersMedia = (control) => isKnownControl(control) && control.endsWith("-prefers-media");
|
|
3558
|
+
var knownControls = ["primary", "primary-prefers-media", "secondary", "secondary-prefers-media"];
|
|
3559
|
+
var isKnownControl = (control) => control !== void 0 && knownControls.includes(control);
|
|
3560
|
+
var getSentiment = (context) => {
|
|
3561
|
+
return "default";
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3564
|
+
// ../renderers/src/step/topbar/TopBar.tsx
|
|
3565
|
+
import { jsx as jsx64, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3566
|
+
function TopBar({ back, toolbar }) {
|
|
3567
|
+
return back || toolbar ? /* @__PURE__ */ jsxs25("div", { className: "d-flex m-b-2", children: [
|
|
3568
|
+
back ? /* @__PURE__ */ jsx64(BackButton, __spreadValues({}, back)) : null,
|
|
3569
|
+
toolbar ? /* @__PURE__ */ jsx64(Toolbar, __spreadValues({}, toolbar)) : null
|
|
3570
|
+
] }) : null;
|
|
3177
3571
|
}
|
|
3178
|
-
var BackButton_default = BackButton;
|
|
3179
3572
|
|
|
3180
3573
|
// ../renderers/src/step/SplashCelebrationStepRenderer.tsx
|
|
3181
|
-
import { jsx as
|
|
3574
|
+
import { jsx as jsx65, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3182
3575
|
var SplashCelebrationStepRenderer = {
|
|
3183
3576
|
canRenderType: "step",
|
|
3184
3577
|
canRender: ({ control }) => control === "splash-celebration",
|
|
3185
3578
|
render: SplashCelebrationStepRendererComponent
|
|
3186
3579
|
};
|
|
3187
3580
|
function SplashCelebrationStepRendererComponent(props) {
|
|
3188
|
-
const { back, children, trackEvent } = props;
|
|
3581
|
+
const { back, toolbar, children, trackEvent } = props;
|
|
3189
3582
|
useCustomTheme("forest-green", trackEvent);
|
|
3190
|
-
return /* @__PURE__ */
|
|
3191
|
-
|
|
3583
|
+
return /* @__PURE__ */ jsxs26("div", { className: "splash-screen m-t-5", children: [
|
|
3584
|
+
/* @__PURE__ */ jsx65(TopBar, { back, toolbar }),
|
|
3192
3585
|
children
|
|
3193
3586
|
] });
|
|
3194
3587
|
}
|
|
3195
3588
|
|
|
3196
3589
|
// ../renderers/src/step/SplashStepRenderer.tsx
|
|
3197
|
-
import { jsx as
|
|
3590
|
+
import { jsx as jsx66, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3198
3591
|
var SplashStepRenderer = {
|
|
3199
3592
|
canRenderType: "step",
|
|
3200
3593
|
canRender: ({ control }) => control === "splash",
|
|
3201
3594
|
render: SplashStepRendererComponent
|
|
3202
3595
|
};
|
|
3203
3596
|
function SplashStepRendererComponent(props) {
|
|
3204
|
-
const { back, children } = props;
|
|
3205
|
-
return /* @__PURE__ */
|
|
3206
|
-
|
|
3597
|
+
const { back, toolbar, children } = props;
|
|
3598
|
+
return /* @__PURE__ */ jsxs27("div", { className: "splash-screen m-t-5", children: [
|
|
3599
|
+
/* @__PURE__ */ jsx66(TopBar, { back, toolbar }),
|
|
3207
3600
|
children
|
|
3208
3601
|
] });
|
|
3209
3602
|
}
|
|
3210
3603
|
|
|
3211
3604
|
// ../renderers/src/step/StepRenderer.tsx
|
|
3212
3605
|
import { Alert as Alert2, Title as Title2 } from "@transferwise/components";
|
|
3213
|
-
import { Fragment as
|
|
3606
|
+
import { Fragment as Fragment11, jsx as jsx67, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3214
3607
|
var StepRenderer = {
|
|
3215
3608
|
canRenderType: "step",
|
|
3216
3609
|
render: StepRendererComponent
|
|
3217
3610
|
};
|
|
3218
3611
|
function StepRendererComponent(props) {
|
|
3219
|
-
const { back, description, error, title, children } = props;
|
|
3220
|
-
return /* @__PURE__ */
|
|
3221
|
-
|
|
3222
|
-
title || description ? /* @__PURE__ */
|
|
3223
|
-
title ? /* @__PURE__ */
|
|
3224
|
-
description ? /* @__PURE__ */
|
|
3612
|
+
const { back, description, error, title, children, toolbar } = props;
|
|
3613
|
+
return /* @__PURE__ */ jsxs28(Fragment11, { children: [
|
|
3614
|
+
/* @__PURE__ */ jsx67(TopBar, { back, toolbar }),
|
|
3615
|
+
title || description ? /* @__PURE__ */ jsxs28("div", { className: "m-b-4", children: [
|
|
3616
|
+
title ? /* @__PURE__ */ jsx67(Title2, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
|
|
3617
|
+
description ? /* @__PURE__ */ jsx67("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
3225
3618
|
] }) : void 0,
|
|
3226
|
-
error ? /* @__PURE__ */
|
|
3619
|
+
error ? /* @__PURE__ */ jsx67(Alert2, { type: "negative", className: "m-b-2", message: error }) : void 0,
|
|
3227
3620
|
children
|
|
3228
3621
|
] });
|
|
3229
3622
|
}
|
|
3230
3623
|
|
|
3231
3624
|
// ../renderers/src/TabsRenderer.tsx
|
|
3232
3625
|
import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
|
|
3233
|
-
import { useState as
|
|
3234
|
-
import { jsx as
|
|
3626
|
+
import { useState as useState11 } from "react";
|
|
3627
|
+
import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3235
3628
|
var TabsRenderer = {
|
|
3236
3629
|
canRenderType: "tabs",
|
|
3237
3630
|
render: (props) => {
|
|
3238
3631
|
switch (props.control) {
|
|
3239
3632
|
case "segmented":
|
|
3240
3633
|
if (props.tabs.length > 3) {
|
|
3241
|
-
return /* @__PURE__ */
|
|
3634
|
+
return /* @__PURE__ */ jsx68(TabsRendererComponent, __spreadValues({}, props));
|
|
3242
3635
|
}
|
|
3243
|
-
return /* @__PURE__ */
|
|
3636
|
+
return /* @__PURE__ */ jsx68(SegmentedTabsRendererComponent, __spreadValues({}, props));
|
|
3244
3637
|
case "chips":
|
|
3245
|
-
return /* @__PURE__ */
|
|
3638
|
+
return /* @__PURE__ */ jsx68(ChipsTabsRendererComponent, __spreadValues({}, props));
|
|
3246
3639
|
default:
|
|
3247
|
-
return /* @__PURE__ */
|
|
3640
|
+
return /* @__PURE__ */ jsx68(TabsRendererComponent, __spreadValues({}, props));
|
|
3248
3641
|
}
|
|
3249
3642
|
}
|
|
3250
3643
|
};
|
|
3251
3644
|
function TabsRendererComponent({ uid, margin, tabs }) {
|
|
3252
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3253
|
-
return /* @__PURE__ */
|
|
3645
|
+
const [selectedIndex, setSelectedIndex] = useState11(0);
|
|
3646
|
+
return /* @__PURE__ */ jsx68("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx68(
|
|
3254
3647
|
Tabs2,
|
|
3255
3648
|
{
|
|
3256
3649
|
name: uid,
|
|
@@ -3258,7 +3651,7 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3258
3651
|
tabs: tabs.map((option) => ({
|
|
3259
3652
|
title: option.title,
|
|
3260
3653
|
disabled: false,
|
|
3261
|
-
content: /* @__PURE__ */
|
|
3654
|
+
content: /* @__PURE__ */ jsxs29("div", { className: "m-t-2", children: [
|
|
3262
3655
|
" ",
|
|
3263
3656
|
option.children,
|
|
3264
3657
|
" "
|
|
@@ -3270,9 +3663,9 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3270
3663
|
}
|
|
3271
3664
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
3272
3665
|
var _a;
|
|
3273
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3274
|
-
return /* @__PURE__ */
|
|
3275
|
-
/* @__PURE__ */
|
|
3666
|
+
const [selectedIndex, setSelectedIndex] = useState11(0);
|
|
3667
|
+
return /* @__PURE__ */ jsxs29("div", { className: getMargin(margin), children: [
|
|
3668
|
+
/* @__PURE__ */ jsx68(
|
|
3276
3669
|
SegmentedControl2,
|
|
3277
3670
|
{
|
|
3278
3671
|
name: uid,
|
|
@@ -3287,14 +3680,14 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3287
3680
|
onChange: (value) => setSelectedIndex(Number(value))
|
|
3288
3681
|
}
|
|
3289
3682
|
),
|
|
3290
|
-
/* @__PURE__ */
|
|
3683
|
+
/* @__PURE__ */ jsx68("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3291
3684
|
] });
|
|
3292
3685
|
}
|
|
3293
3686
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
3294
3687
|
var _a;
|
|
3295
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3296
|
-
return /* @__PURE__ */
|
|
3297
|
-
/* @__PURE__ */
|
|
3688
|
+
const [selectedIndex, setSelectedIndex] = useState11(0);
|
|
3689
|
+
return /* @__PURE__ */ jsxs29("div", { className: getMargin(margin), children: [
|
|
3690
|
+
/* @__PURE__ */ jsx68("div", { className: "chips-container", children: /* @__PURE__ */ jsx68(
|
|
3298
3691
|
Chips,
|
|
3299
3692
|
{
|
|
3300
3693
|
chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
|
|
@@ -3302,7 +3695,7 @@ function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
|
3302
3695
|
onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
|
|
3303
3696
|
}
|
|
3304
3697
|
) }),
|
|
3305
|
-
/* @__PURE__ */
|
|
3698
|
+
/* @__PURE__ */ jsx68("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3306
3699
|
] });
|
|
3307
3700
|
}
|
|
3308
3701
|
|
|
@@ -3317,7 +3710,7 @@ import {
|
|
|
3317
3710
|
TextArea,
|
|
3318
3711
|
TextareaWithDisplayFormat
|
|
3319
3712
|
} from "@transferwise/components";
|
|
3320
|
-
import { jsx as
|
|
3713
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
3321
3714
|
var commonKeys = [
|
|
3322
3715
|
"autoComplete",
|
|
3323
3716
|
"autoCapitalize",
|
|
@@ -3336,12 +3729,12 @@ function VariableTextInput(inputProps) {
|
|
|
3336
3729
|
const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
|
|
3337
3730
|
switch (control) {
|
|
3338
3731
|
case "email":
|
|
3339
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ jsx69(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
|
|
3340
3733
|
case "password":
|
|
3341
|
-
return /* @__PURE__ */
|
|
3734
|
+
return /* @__PURE__ */ jsx69(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
|
|
3342
3735
|
case "numeric": {
|
|
3343
3736
|
const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
|
|
3344
|
-
return /* @__PURE__ */
|
|
3737
|
+
return /* @__PURE__ */ jsx69(
|
|
3345
3738
|
TextInput,
|
|
3346
3739
|
__spreadProps(__spreadValues({}, numericProps), {
|
|
3347
3740
|
onChange: (newValue) => {
|
|
@@ -3352,9 +3745,9 @@ function VariableTextInput(inputProps) {
|
|
|
3352
3745
|
);
|
|
3353
3746
|
}
|
|
3354
3747
|
case "phone-number":
|
|
3355
|
-
return /* @__PURE__ */
|
|
3748
|
+
return /* @__PURE__ */ jsx69(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
|
|
3356
3749
|
default: {
|
|
3357
|
-
return /* @__PURE__ */
|
|
3750
|
+
return /* @__PURE__ */ jsx69(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
|
|
3358
3751
|
}
|
|
3359
3752
|
}
|
|
3360
3753
|
}
|
|
@@ -3362,11 +3755,11 @@ function TextInput(props) {
|
|
|
3362
3755
|
const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
|
|
3363
3756
|
const InputWithPattern = control === "textarea" ? TextareaWithDisplayFormat : InputWithDisplayFormat;
|
|
3364
3757
|
const InputWithoutPattern = control === "textarea" ? TextArea : Input5;
|
|
3365
|
-
return displayFormat ? /* @__PURE__ */
|
|
3758
|
+
return displayFormat ? /* @__PURE__ */ jsx69(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx69(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
|
|
3366
3759
|
}
|
|
3367
3760
|
|
|
3368
3761
|
// ../renderers/src/TextInputRenderer.tsx
|
|
3369
|
-
import { jsx as
|
|
3762
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
3370
3763
|
var TextInputRenderer = {
|
|
3371
3764
|
canRenderType: "input-text",
|
|
3372
3765
|
render: (props) => {
|
|
@@ -3399,7 +3792,7 @@ var TextInputRenderer = {
|
|
|
3399
3792
|
}
|
|
3400
3793
|
}
|
|
3401
3794
|
});
|
|
3402
|
-
return /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ jsx70(
|
|
3403
3796
|
FieldInput_default,
|
|
3404
3797
|
{
|
|
3405
3798
|
id,
|
|
@@ -3407,7 +3800,7 @@ var TextInputRenderer = {
|
|
|
3407
3800
|
description,
|
|
3408
3801
|
validation: validationState,
|
|
3409
3802
|
help,
|
|
3410
|
-
children: /* @__PURE__ */
|
|
3803
|
+
children: /* @__PURE__ */ jsx70(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx70(VariableTextInput, __spreadValues({}, inputProps)) })
|
|
3411
3804
|
}
|
|
3412
3805
|
);
|
|
3413
3806
|
}
|
|
@@ -3421,7 +3814,7 @@ import { Upload, UploadInput as UploadInput2 } from "@transferwise/components";
|
|
|
3421
3814
|
var getRandomId = () => Math.random().toString(36).substring(2);
|
|
3422
3815
|
|
|
3423
3816
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3424
|
-
import { jsx as
|
|
3817
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
3425
3818
|
var UploadInputRenderer = {
|
|
3426
3819
|
canRenderType: "input-upload",
|
|
3427
3820
|
render: (props) => {
|
|
@@ -3437,14 +3830,14 @@ var UploadInputRenderer = {
|
|
|
3437
3830
|
};
|
|
3438
3831
|
return (
|
|
3439
3832
|
// We don't pass help here as there is no sensible place to display it
|
|
3440
|
-
/* @__PURE__ */
|
|
3833
|
+
/* @__PURE__ */ jsx71(
|
|
3441
3834
|
UploadFieldInput_default,
|
|
3442
3835
|
{
|
|
3443
3836
|
id,
|
|
3444
3837
|
label: void 0,
|
|
3445
3838
|
description: void 0,
|
|
3446
3839
|
validation: validationState,
|
|
3447
|
-
children: /* @__PURE__ */
|
|
3840
|
+
children: /* @__PURE__ */ jsx71(
|
|
3448
3841
|
UploadInput2,
|
|
3449
3842
|
{
|
|
3450
3843
|
id,
|
|
@@ -3503,7 +3896,7 @@ var LargeUploadRenderer = {
|
|
|
3503
3896
|
};
|
|
3504
3897
|
const filetypes = acceptsToFileTypes(accepts);
|
|
3505
3898
|
const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
|
|
3506
|
-
return /* @__PURE__ */
|
|
3899
|
+
return /* @__PURE__ */ jsx71(
|
|
3507
3900
|
FieldInput_default,
|
|
3508
3901
|
{
|
|
3509
3902
|
id,
|
|
@@ -3511,7 +3904,7 @@ var LargeUploadRenderer = {
|
|
|
3511
3904
|
description,
|
|
3512
3905
|
validation: validationState,
|
|
3513
3906
|
help,
|
|
3514
|
-
children: /* @__PURE__ */
|
|
3907
|
+
children: /* @__PURE__ */ jsx71(
|
|
3515
3908
|
Upload,
|
|
3516
3909
|
__spreadProps(__spreadValues({}, uploadProps), {
|
|
3517
3910
|
usAccept,
|
|
@@ -3571,7 +3964,7 @@ var getWiseRenderers = () => [
|
|
|
3571
3964
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
3572
3965
|
var appVersion = (
|
|
3573
3966
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
3574
|
-
typeof process !== "undefined" ? "4.
|
|
3967
|
+
typeof process !== "undefined" ? "4.23.0" : "0.0.0"
|
|
3575
3968
|
);
|
|
3576
3969
|
|
|
3577
3970
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -3611,8 +4004,8 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
|
|
|
3611
4004
|
};
|
|
3612
4005
|
|
|
3613
4006
|
// src/dynamicFlow/messages.ts
|
|
3614
|
-
import { defineMessages as
|
|
3615
|
-
var messages_default =
|
|
4007
|
+
import { defineMessages as defineMessages10 } from "react-intl";
|
|
4008
|
+
var messages_default = defineMessages10({
|
|
3616
4009
|
copied: {
|
|
3617
4010
|
id: "df.wise.CopyFeedback.copy",
|
|
3618
4011
|
defaultMessage: "Copied to clipboard",
|
|
@@ -3626,12 +4019,12 @@ var messages_default = defineMessages9({
|
|
|
3626
4019
|
});
|
|
3627
4020
|
|
|
3628
4021
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
3629
|
-
import { jsx as
|
|
4022
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
3630
4023
|
var wiseRenderers = getWiseRenderers();
|
|
3631
4024
|
function DynamicFlowLegacy(props) {
|
|
3632
4025
|
const { customFetch = globalThis.fetch } = props;
|
|
3633
4026
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
3634
|
-
return /* @__PURE__ */
|
|
4027
|
+
return /* @__PURE__ */ jsx72(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
|
|
3635
4028
|
}
|
|
3636
4029
|
function DynamicFlowRevamp(props) {
|
|
3637
4030
|
const {
|
|
@@ -3644,7 +4037,7 @@ function DynamicFlowRevamp(props) {
|
|
|
3644
4037
|
onLink = openLinkInNewTab,
|
|
3645
4038
|
onThemeChange
|
|
3646
4039
|
} = props;
|
|
3647
|
-
const { formatMessage } =
|
|
4040
|
+
const { formatMessage } = useIntl12();
|
|
3648
4041
|
const createSnackBar = useSnackBarIfAvailable();
|
|
3649
4042
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3650
4043
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
@@ -3668,7 +4061,7 @@ function DynamicFlowRevamp(props) {
|
|
|
3668
4061
|
onLink,
|
|
3669
4062
|
onCopy
|
|
3670
4063
|
});
|
|
3671
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsx72("div", { className, children: /* @__PURE__ */ jsx72(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
|
|
3672
4065
|
}
|
|
3673
4066
|
var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
3674
4067
|
const {
|
|
@@ -3681,7 +4074,7 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
3681
4074
|
onLink = openLinkInNewTab,
|
|
3682
4075
|
onThemeChange
|
|
3683
4076
|
} = props;
|
|
3684
|
-
const { formatMessage } =
|
|
4077
|
+
const { formatMessage } = useIntl12();
|
|
3685
4078
|
const createSnackBar = useSnackBarIfAvailable();
|
|
3686
4079
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3687
4080
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
@@ -3705,10 +4098,10 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
3705
4098
|
onLink,
|
|
3706
4099
|
onCopy
|
|
3707
4100
|
});
|
|
3708
|
-
return /* @__PURE__ */
|
|
4101
|
+
return /* @__PURE__ */ jsx72("div", { className, children: /* @__PURE__ */ jsx72(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
|
|
3709
4102
|
});
|
|
3710
4103
|
var useWiseHttpClient = (httpClient) => {
|
|
3711
|
-
const { locale } =
|
|
4104
|
+
const { locale } = useIntl12();
|
|
3712
4105
|
return useCallback(
|
|
3713
4106
|
async (input, init = {}) => {
|
|
3714
4107
|
const headers = new Headers(init.headers);
|