@wise/dynamic-flow-client-internal 4.21.0 → 4.22.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 +6 -0
- 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.js +651 -384
- package/build/main.mjs +575 -308
- package/package.json +5 -5
package/build/main.mjs
CHANGED
|
@@ -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": "Start typing to search",
|
|
503
|
+
"df.wise.Decision.noResults": "Brak wynik\xF3w",
|
|
504
|
+
"df.wise.Decision.popular": "Popularne",
|
|
505
|
+
"df.wise.Decision.recent": "Ostatni",
|
|
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": "Start typing to search",
|
|
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,7 +862,7 @@ 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,
|
|
@@ -1206,8 +1314,88 @@ var DateInputRenderer = {
|
|
|
1206
1314
|
};
|
|
1207
1315
|
var DateInputRenderer_default = DateInputRenderer;
|
|
1208
1316
|
|
|
1209
|
-
// ../renderers/src/DecisionRenderer.tsx
|
|
1210
|
-
import { Header
|
|
1317
|
+
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
1318
|
+
import { Header as Header2, SearchInput } from "@transferwise/components";
|
|
1319
|
+
import { useIntl as useIntl4 } from "react-intl";
|
|
1320
|
+
|
|
1321
|
+
// ../renderers/src/messages/decision.messages.ts
|
|
1322
|
+
import { defineMessages as defineMessages3 } from "react-intl";
|
|
1323
|
+
var decision_messages_default = defineMessages3({
|
|
1324
|
+
all: {
|
|
1325
|
+
id: "df.wise.Decision.all",
|
|
1326
|
+
defaultMessage: "All",
|
|
1327
|
+
description: "Label for the group of options that encompasses all options"
|
|
1328
|
+
},
|
|
1329
|
+
popular: {
|
|
1330
|
+
id: "df.wise.Decision.popular",
|
|
1331
|
+
defaultMessage: "Popular",
|
|
1332
|
+
description: "Label for the group of options that are tagged as popular"
|
|
1333
|
+
},
|
|
1334
|
+
recent: {
|
|
1335
|
+
id: "df.wise.Decision.recent",
|
|
1336
|
+
defaultMessage: "Recent",
|
|
1337
|
+
description: "Label for the group of options that are tagged as recent"
|
|
1338
|
+
},
|
|
1339
|
+
filterPlaceholder: {
|
|
1340
|
+
id: "df.wise.Decision.filterPlaceholder",
|
|
1341
|
+
defaultMessage: "Start typing to search",
|
|
1342
|
+
description: "Placeholder for the filter input"
|
|
1343
|
+
},
|
|
1344
|
+
results: {
|
|
1345
|
+
id: "df.wise.Decision.results",
|
|
1346
|
+
defaultMessage: "Search results",
|
|
1347
|
+
description: "Label for the results section"
|
|
1348
|
+
},
|
|
1349
|
+
noResults: {
|
|
1350
|
+
id: "df.wise.Decision.noResults",
|
|
1351
|
+
defaultMessage: "No results",
|
|
1352
|
+
description: "Message for if there are no results"
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
|
|
1356
|
+
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
1357
|
+
import { useState as useState3 } from "react";
|
|
1358
|
+
|
|
1359
|
+
// ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
|
|
1360
|
+
function filterAndSortDecisionOptions(selectOptions, query) {
|
|
1361
|
+
const upperQuery = query.toUpperCase().trim();
|
|
1362
|
+
const filteredItems = selectOptions.filter((option) => {
|
|
1363
|
+
var _a, _b, _c, _d;
|
|
1364
|
+
const searchableWords = [
|
|
1365
|
+
option.title,
|
|
1366
|
+
option.description,
|
|
1367
|
+
option.additionalText,
|
|
1368
|
+
(_a = option.supportingValues) == null ? void 0 : _a.value,
|
|
1369
|
+
(_b = option.supportingValues) == null ? void 0 : _b.subvalue,
|
|
1370
|
+
...(_c = option.keywords) != null ? _c : []
|
|
1371
|
+
];
|
|
1372
|
+
return (_d = searchableWords.some((word) => word == null ? void 0 : word.toUpperCase().includes(upperQuery))) != null ? _d : false;
|
|
1373
|
+
});
|
|
1374
|
+
return [...filteredItems].sort((a, b) => {
|
|
1375
|
+
const aTitleUpper = a.title.toUpperCase();
|
|
1376
|
+
const bTitleUpper = b.title.toUpperCase();
|
|
1377
|
+
const aTitleStarts = aTitleUpper.startsWith(upperQuery);
|
|
1378
|
+
const bTitleStarts = bTitleUpper.startsWith(upperQuery);
|
|
1379
|
+
if (aTitleStarts && !bTitleStarts) {
|
|
1380
|
+
return -1;
|
|
1381
|
+
}
|
|
1382
|
+
if (!aTitleStarts && bTitleStarts) {
|
|
1383
|
+
return 1;
|
|
1384
|
+
}
|
|
1385
|
+
const aWordStarts = aTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
|
|
1386
|
+
const bWordStarts = bTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
|
|
1387
|
+
if (aWordStarts && !bWordStarts) {
|
|
1388
|
+
return -1;
|
|
1389
|
+
}
|
|
1390
|
+
if (!aWordStarts && bWordStarts) {
|
|
1391
|
+
return 1;
|
|
1392
|
+
}
|
|
1393
|
+
return a.title.localeCompare(b.title);
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
// ../renderers/src/DecisionRenderer/DecisionList.tsx
|
|
1398
|
+
import { NavigationOption, NavigationOptionsList } from "@transferwise/components";
|
|
1211
1399
|
|
|
1212
1400
|
// ../renderers/src/utils/UrnFlag.tsx
|
|
1213
1401
|
import { Flag } from "@wise/art";
|
|
@@ -1456,43 +1644,122 @@ function OptionMedia(props) {
|
|
|
1456
1644
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1457
1645
|
var getInlineMedia = (media) => media ? /* @__PURE__ */ jsx22(Media, { media, preferAvatar: false, size: 24 }) : null;
|
|
1458
1646
|
|
|
1459
|
-
// ../renderers/src/DecisionRenderer.tsx
|
|
1460
|
-
import { jsx as jsx23
|
|
1647
|
+
// ../renderers/src/DecisionRenderer/DecisionList.tsx
|
|
1648
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1649
|
+
var DecisionList = ({
|
|
1650
|
+
options,
|
|
1651
|
+
control,
|
|
1652
|
+
className
|
|
1653
|
+
}) => {
|
|
1654
|
+
return /* @__PURE__ */ jsx23("div", { className, children: /* @__PURE__ */ jsx23(NavigationOptionsList, { children: options.map((option) => {
|
|
1655
|
+
const { description, disabled, media, title: itemTitle, tag, onClick } = option;
|
|
1656
|
+
return /* @__PURE__ */ jsx23(
|
|
1657
|
+
NavigationOption,
|
|
1658
|
+
{
|
|
1659
|
+
title: itemTitle,
|
|
1660
|
+
content: description,
|
|
1661
|
+
disabled,
|
|
1662
|
+
media: media ? /* @__PURE__ */ jsx23(
|
|
1663
|
+
OptionMedia,
|
|
1664
|
+
{
|
|
1665
|
+
media,
|
|
1666
|
+
preferAvatar: control === "with-avatar" || tag === "with-avatar"
|
|
1667
|
+
}
|
|
1668
|
+
) : null,
|
|
1669
|
+
showMediaCircle: false,
|
|
1670
|
+
showMediaAtAllSizes: true,
|
|
1671
|
+
onClick
|
|
1672
|
+
},
|
|
1673
|
+
JSON.stringify(option)
|
|
1674
|
+
);
|
|
1675
|
+
}) }) });
|
|
1676
|
+
};
|
|
1677
|
+
var DecisionList_default = DecisionList;
|
|
1678
|
+
|
|
1679
|
+
// ../renderers/src/DecisionRenderer/GroupedList.tsx
|
|
1680
|
+
import { Header, Section } from "@transferwise/components";
|
|
1681
|
+
import { useIntl as useIntl3 } from "react-intl";
|
|
1682
|
+
import { Fragment, jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1683
|
+
var OPTION_GROUPS = {
|
|
1684
|
+
popular: "popular",
|
|
1685
|
+
recent: "recent"
|
|
1686
|
+
};
|
|
1687
|
+
var GroupedList = ({
|
|
1688
|
+
options,
|
|
1689
|
+
control
|
|
1690
|
+
}) => {
|
|
1691
|
+
const { formatMessage } = useIntl3();
|
|
1692
|
+
const popularOptions = options.filter((option) => option.tag === OPTION_GROUPS.popular);
|
|
1693
|
+
const recentOptions = options.filter((option) => option.tag === OPTION_GROUPS.recent);
|
|
1694
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
1695
|
+
popularOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
|
|
1696
|
+
/* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
|
|
1697
|
+
/* @__PURE__ */ jsx24(DecisionList_default, { options: popularOptions, control })
|
|
1698
|
+
] }) : null,
|
|
1699
|
+
recentOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
|
|
1700
|
+
/* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
|
|
1701
|
+
/* @__PURE__ */ jsx24(DecisionList_default, { options: recentOptions, control })
|
|
1702
|
+
] }) : null,
|
|
1703
|
+
/* @__PURE__ */ jsxs4(Section, { children: [
|
|
1704
|
+
/* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
|
|
1705
|
+
/* @__PURE__ */ jsx24(DecisionList_default, { options, control })
|
|
1706
|
+
] })
|
|
1707
|
+
] });
|
|
1708
|
+
};
|
|
1709
|
+
var isGroupedDecision = (options) => {
|
|
1710
|
+
const possibleGroups = Object.values(OPTION_GROUPS);
|
|
1711
|
+
return options.some(({ tag }) => tag && possibleGroups.includes(tag));
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1714
|
+
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
1715
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1461
1716
|
var DecisionRenderer = {
|
|
1462
1717
|
canRenderType: "decision",
|
|
1463
|
-
render: (
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1718
|
+
render: (props) => {
|
|
1719
|
+
return /* @__PURE__ */ jsxs5("div", { className: getMargin(props.margin), children: [
|
|
1720
|
+
props.title && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: props.title }),
|
|
1721
|
+
props.control === "filtered" ? /* @__PURE__ */ jsx25(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx25(UnfilteredDecisionList, __spreadValues({}, props))
|
|
1722
|
+
] });
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
var UnfilteredDecisionList = ({ control, options }) => isGroupedDecision(options) ? /* @__PURE__ */ jsx25(GroupedList, { options, control }) : /* @__PURE__ */ jsx25(DecisionList_default, { options, control });
|
|
1726
|
+
var FilteredDecisionList = ({ options, control }) => {
|
|
1727
|
+
const { formatMessage } = useIntl4();
|
|
1728
|
+
const [query, setQuery] = useState3("");
|
|
1729
|
+
const filteredOptions = filterAndSortDecisionOptions(options, query);
|
|
1730
|
+
const isGrouped = isGroupedDecision(options);
|
|
1731
|
+
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1732
|
+
/* @__PURE__ */ jsx25(
|
|
1733
|
+
SearchInput,
|
|
1734
|
+
{
|
|
1735
|
+
placeholder: formatMessage(decision_messages_default.filterPlaceholder),
|
|
1736
|
+
value: query,
|
|
1737
|
+
onChange: (e) => {
|
|
1738
|
+
var _a;
|
|
1739
|
+
return setQuery((_a = e.target.value) != null ? _a : "");
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
),
|
|
1743
|
+
isGrouped && query.length === 0 ? /* @__PURE__ */ jsx25(GroupedList, { options, control }) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1744
|
+
query.length > 0 && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
|
|
1745
|
+
filteredOptions.length > 0 ? /* @__PURE__ */ jsx25(
|
|
1746
|
+
DecisionList_default,
|
|
1469
1747
|
{
|
|
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
|
-
] })
|
|
1748
|
+
options: filteredOptions,
|
|
1749
|
+
control,
|
|
1750
|
+
className: query.length === 0 ? "m-t-3" : ""
|
|
1751
|
+
}
|
|
1752
|
+
) : /* @__PURE__ */ jsx25("p", { children: formatMessage(decision_messages_default.noResults) })
|
|
1753
|
+
] })
|
|
1754
|
+
] });
|
|
1488
1755
|
};
|
|
1489
1756
|
var DecisionRenderer_default = DecisionRenderer;
|
|
1490
1757
|
|
|
1491
1758
|
// ../renderers/src/DividerRenderer.tsx
|
|
1492
|
-
import { jsx as
|
|
1759
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1493
1760
|
var DividerRenderer = {
|
|
1494
1761
|
canRenderType: "divider",
|
|
1495
|
-
render: ({ margin }) => /* @__PURE__ */
|
|
1762
|
+
render: ({ margin }) => /* @__PURE__ */ jsx26("hr", { className: `m-t-0 ${getMargin(margin)}` })
|
|
1496
1763
|
};
|
|
1497
1764
|
var DividerRenderer_default = DividerRenderer;
|
|
1498
1765
|
|
|
@@ -1500,8 +1767,8 @@ var DividerRenderer_default = DividerRenderer;
|
|
|
1500
1767
|
import { Button as Button3, Markdown as Markdown2, Modal } from "@transferwise/components";
|
|
1501
1768
|
|
|
1502
1769
|
// ../renderers/src/messages/external-confirmation.messages.ts
|
|
1503
|
-
import { defineMessages as
|
|
1504
|
-
var external_confirmation_messages_default =
|
|
1770
|
+
import { defineMessages as defineMessages4 } from "react-intl";
|
|
1771
|
+
var external_confirmation_messages_default = defineMessages4({
|
|
1505
1772
|
title: {
|
|
1506
1773
|
id: "df.wise.ExternalConfirmation.title",
|
|
1507
1774
|
defaultMessage: "Please confirm",
|
|
@@ -1525,9 +1792,9 @@ var external_confirmation_messages_default = defineMessages3({
|
|
|
1525
1792
|
});
|
|
1526
1793
|
|
|
1527
1794
|
// ../renderers/src/ExternalConfirmationRenderer.tsx
|
|
1528
|
-
import { useIntl as
|
|
1795
|
+
import { useIntl as useIntl5 } from "react-intl";
|
|
1529
1796
|
import { useEffect as useEffect3 } from "react";
|
|
1530
|
-
import { Fragment, jsx as
|
|
1797
|
+
import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1531
1798
|
var ExternalConfirmationRenderer = {
|
|
1532
1799
|
canRenderType: "external-confirmation",
|
|
1533
1800
|
render: ExternalConfirmationRendererComponent
|
|
@@ -1539,7 +1806,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1539
1806
|
onFailure,
|
|
1540
1807
|
onCancel
|
|
1541
1808
|
}) {
|
|
1542
|
-
const { formatMessage } =
|
|
1809
|
+
const { formatMessage } = useIntl5();
|
|
1543
1810
|
useEffect3(() => {
|
|
1544
1811
|
if (url) {
|
|
1545
1812
|
const w = window.open(url, "_blank");
|
|
@@ -1550,15 +1817,15 @@ function ExternalConfirmationRendererComponent({
|
|
|
1550
1817
|
}
|
|
1551
1818
|
}
|
|
1552
1819
|
}, []);
|
|
1553
|
-
return /* @__PURE__ */
|
|
1820
|
+
return /* @__PURE__ */ jsx27(
|
|
1554
1821
|
Modal,
|
|
1555
1822
|
{
|
|
1556
1823
|
open: status === "failure",
|
|
1557
1824
|
title: formatMessage(external_confirmation_messages_default.title),
|
|
1558
|
-
body: /* @__PURE__ */
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
/* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */
|
|
1825
|
+
body: /* @__PURE__ */ jsxs6(Fragment3, { children: [
|
|
1826
|
+
/* @__PURE__ */ jsx27(Markdown2, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
|
|
1827
|
+
/* @__PURE__ */ jsx27("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs6("div", { className: "df-box-renderer-width-lg", children: [
|
|
1828
|
+
/* @__PURE__ */ jsx27(
|
|
1562
1829
|
Button3,
|
|
1563
1830
|
{
|
|
1564
1831
|
block: true,
|
|
@@ -1572,7 +1839,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1572
1839
|
children: formatMessage(external_confirmation_messages_default.open)
|
|
1573
1840
|
}
|
|
1574
1841
|
),
|
|
1575
|
-
/* @__PURE__ */
|
|
1842
|
+
/* @__PURE__ */ jsx27(Button3, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
|
|
1576
1843
|
] }) })
|
|
1577
1844
|
] }),
|
|
1578
1845
|
onClose: onCancel
|
|
@@ -1589,27 +1856,27 @@ function getOrigin(url) {
|
|
|
1589
1856
|
var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
|
|
1590
1857
|
|
|
1591
1858
|
// ../renderers/src/FormRenderer.tsx
|
|
1592
|
-
import { jsx as
|
|
1859
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1593
1860
|
var FormRenderer = {
|
|
1594
1861
|
canRenderType: "form",
|
|
1595
|
-
render: ({ children, margin }) => /* @__PURE__ */
|
|
1862
|
+
render: ({ children, margin }) => /* @__PURE__ */ jsx28("div", { className: getMargin(margin), children })
|
|
1596
1863
|
};
|
|
1597
1864
|
var FormRenderer_default = FormRenderer;
|
|
1598
1865
|
|
|
1599
1866
|
// ../renderers/src/FormSectionRenderer.tsx
|
|
1600
|
-
import { Header as
|
|
1601
|
-
import { jsx as
|
|
1867
|
+
import { Header as Header3 } from "@transferwise/components";
|
|
1868
|
+
import { jsx as jsx29, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1602
1869
|
var FormSectionRenderer = {
|
|
1603
1870
|
canRenderType: "form-section",
|
|
1604
|
-
render: ({ title, description, children }) => /* @__PURE__ */
|
|
1605
|
-
title && /* @__PURE__ */
|
|
1606
|
-
|
|
1871
|
+
render: ({ title, description, children }) => /* @__PURE__ */ jsxs7("fieldset", { children: [
|
|
1872
|
+
title && /* @__PURE__ */ jsx29(
|
|
1873
|
+
Header3,
|
|
1607
1874
|
{
|
|
1608
1875
|
as: "h2",
|
|
1609
1876
|
title
|
|
1610
1877
|
}
|
|
1611
1878
|
),
|
|
1612
|
-
description && /* @__PURE__ */
|
|
1879
|
+
description && /* @__PURE__ */ jsx29("p", { children: description }),
|
|
1613
1880
|
children
|
|
1614
1881
|
] })
|
|
1615
1882
|
};
|
|
@@ -1617,18 +1884,18 @@ var FormSectionRenderer_default = FormSectionRenderer;
|
|
|
1617
1884
|
|
|
1618
1885
|
// ../renderers/src/HeadingRenderer.tsx
|
|
1619
1886
|
import { Display, Title } from "@transferwise/components";
|
|
1620
|
-
import { jsx as
|
|
1887
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1621
1888
|
var HeadingRenderer = {
|
|
1622
1889
|
canRenderType: "heading",
|
|
1623
|
-
render: (props) => /* @__PURE__ */
|
|
1890
|
+
render: (props) => /* @__PURE__ */ jsx30(Heading, __spreadValues({}, props))
|
|
1624
1891
|
};
|
|
1625
1892
|
function Heading(props) {
|
|
1626
1893
|
const { text, size, align, margin, control } = props;
|
|
1627
1894
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
1628
|
-
return control === "display" ? /* @__PURE__ */
|
|
1895
|
+
return control === "display" ? /* @__PURE__ */ jsx30(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx30(StandardHeading, { size, text, className });
|
|
1629
1896
|
}
|
|
1630
1897
|
function DisplayHeading({ size, text, className }) {
|
|
1631
|
-
return /* @__PURE__ */
|
|
1898
|
+
return /* @__PURE__ */ jsx30(Display, { type: getDisplayType(size), className, children: text });
|
|
1632
1899
|
}
|
|
1633
1900
|
var getDisplayType = (size) => {
|
|
1634
1901
|
switch (size) {
|
|
@@ -1644,7 +1911,7 @@ var getDisplayType = (size) => {
|
|
|
1644
1911
|
}
|
|
1645
1912
|
};
|
|
1646
1913
|
function StandardHeading({ size, text, className }) {
|
|
1647
|
-
return /* @__PURE__ */
|
|
1914
|
+
return /* @__PURE__ */ jsx30(Title, { type: getTitleTypeBySize(size), className, children: text });
|
|
1648
1915
|
}
|
|
1649
1916
|
var getTitleTypeBySize = (size) => {
|
|
1650
1917
|
var _a;
|
|
@@ -1661,7 +1928,7 @@ var HeadingRenderer_default = HeadingRenderer;
|
|
|
1661
1928
|
|
|
1662
1929
|
// ../renderers/src/ImageRenderer/UrlImage.tsx
|
|
1663
1930
|
import { Image } from "@transferwise/components";
|
|
1664
|
-
import { useEffect as useEffect4, useState as
|
|
1931
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
1665
1932
|
|
|
1666
1933
|
// ../renderers/src/utils/api-utils.ts
|
|
1667
1934
|
function isRelativePath(url = "") {
|
|
@@ -1671,7 +1938,7 @@ function isRelativePath(url = "") {
|
|
|
1671
1938
|
}
|
|
1672
1939
|
|
|
1673
1940
|
// ../renderers/src/ImageRenderer/UrlImage.tsx
|
|
1674
|
-
import { jsx as
|
|
1941
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1675
1942
|
function UrlImage({
|
|
1676
1943
|
accessibilityDescription,
|
|
1677
1944
|
align,
|
|
@@ -1680,13 +1947,13 @@ function UrlImage({
|
|
|
1680
1947
|
uri,
|
|
1681
1948
|
httpClient
|
|
1682
1949
|
}) {
|
|
1683
|
-
const [imageSource, setImageSource] =
|
|
1950
|
+
const [imageSource, setImageSource] = useState4("");
|
|
1684
1951
|
useEffect4(() => {
|
|
1685
1952
|
if (!uri.startsWith("urn:")) {
|
|
1686
1953
|
void getImageSource(httpClient, uri).then(setImageSource);
|
|
1687
1954
|
}
|
|
1688
1955
|
}, [uri, httpClient]);
|
|
1689
|
-
return /* @__PURE__ */
|
|
1956
|
+
return /* @__PURE__ */ jsx31("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ jsx31(
|
|
1690
1957
|
Image,
|
|
1691
1958
|
{
|
|
1692
1959
|
className: `img-responsive ${getMargin(margin)}`,
|
|
@@ -1730,7 +1997,7 @@ var getImageSource = async (httpClient, imageUrl) => {
|
|
|
1730
1997
|
};
|
|
1731
1998
|
|
|
1732
1999
|
// ../renderers/src/ImageRenderer/UrnFlagImage.tsx
|
|
1733
|
-
import { jsx as
|
|
2000
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1734
2001
|
var maxFlagSize = 600;
|
|
1735
2002
|
function UrnFlagImage({
|
|
1736
2003
|
accessibilityDescription,
|
|
@@ -1739,7 +2006,7 @@ function UrnFlagImage({
|
|
|
1739
2006
|
size,
|
|
1740
2007
|
uri
|
|
1741
2008
|
}) {
|
|
1742
|
-
return /* @__PURE__ */
|
|
2009
|
+
return /* @__PURE__ */ jsx32("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx32(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
|
|
1743
2010
|
}
|
|
1744
2011
|
|
|
1745
2012
|
// ../renderers/src/ImageRenderer/UrnIllustration.tsx
|
|
@@ -1757,7 +2024,7 @@ var isAnimated = (uri) => {
|
|
|
1757
2024
|
};
|
|
1758
2025
|
|
|
1759
2026
|
// ../renderers/src/ImageRenderer/UrnIllustration.tsx
|
|
1760
|
-
import { jsx as
|
|
2027
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1761
2028
|
var urnPrefix = "urn:wise:illustrations:";
|
|
1762
2029
|
var isUrnIllustration = (uri) => uri.startsWith(urnPrefix);
|
|
1763
2030
|
function UrnIllustration({
|
|
@@ -1771,9 +2038,9 @@ function UrnIllustration({
|
|
|
1771
2038
|
const illustrationName = getIllustrationName(uri);
|
|
1772
2039
|
const illustration3DName = getIllustration3DName(uri);
|
|
1773
2040
|
if (illustration3DName && isAnimated(uri)) {
|
|
1774
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ jsx33("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx33(Illustration3D, { name: illustration3DName, size: illustrationSize }) });
|
|
1775
2042
|
}
|
|
1776
|
-
return /* @__PURE__ */
|
|
2043
|
+
return /* @__PURE__ */ jsx33("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx33(
|
|
1777
2044
|
Illustration,
|
|
1778
2045
|
{
|
|
1779
2046
|
className: "df-illustration",
|
|
@@ -1793,32 +2060,32 @@ var getIllustration3DName = (uri) => {
|
|
|
1793
2060
|
};
|
|
1794
2061
|
|
|
1795
2062
|
// ../renderers/src/ImageRenderer/UrnImage.tsx
|
|
1796
|
-
import { jsx as
|
|
2063
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1797
2064
|
var isUrnImage = (uri) => uri.startsWith("urn:");
|
|
1798
2065
|
function UrnImage(props) {
|
|
1799
2066
|
const { uri } = props;
|
|
1800
2067
|
if (isUrnIllustration(uri)) {
|
|
1801
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsx34(UrnIllustration, __spreadValues({}, props));
|
|
1802
2069
|
}
|
|
1803
2070
|
if (isUrnFlag(uri)) {
|
|
1804
|
-
return /* @__PURE__ */
|
|
2071
|
+
return /* @__PURE__ */ jsx34(UrnFlagImage, __spreadValues({}, props));
|
|
1805
2072
|
}
|
|
1806
2073
|
return null;
|
|
1807
2074
|
}
|
|
1808
2075
|
|
|
1809
2076
|
// ../renderers/src/ImageRenderer/ImageRenderer.tsx
|
|
1810
|
-
import { jsx as
|
|
2077
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1811
2078
|
var ImageRenderer = {
|
|
1812
2079
|
canRenderType: "image",
|
|
1813
|
-
render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */
|
|
2080
|
+
render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx35(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx35(UrlImage, __spreadValues({}, props))
|
|
1814
2081
|
};
|
|
1815
2082
|
|
|
1816
2083
|
// ../renderers/src/ImageRenderer/index.tsx
|
|
1817
2084
|
var ImageRenderer_default = ImageRenderer;
|
|
1818
2085
|
|
|
1819
2086
|
// ../renderers/src/InstructionsRenderer.tsx
|
|
1820
|
-
import { Header as
|
|
1821
|
-
import { jsx as
|
|
2087
|
+
import { Header as Header4, InstructionsList } from "@transferwise/components";
|
|
2088
|
+
import { jsx as jsx36, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1822
2089
|
var doContext = ["positive", "neutral"];
|
|
1823
2090
|
var dontContext = ["warning", "negative"];
|
|
1824
2091
|
var InstructionsRenderer = {
|
|
@@ -1826,9 +2093,9 @@ var InstructionsRenderer = {
|
|
|
1826
2093
|
render: ({ items, margin, title }) => {
|
|
1827
2094
|
const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
|
|
1828
2095
|
const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
|
|
1829
|
-
return /* @__PURE__ */
|
|
1830
|
-
title ? /* @__PURE__ */
|
|
1831
|
-
/* @__PURE__ */
|
|
2096
|
+
return /* @__PURE__ */ jsxs8("div", { className: getMargin(margin), children: [
|
|
2097
|
+
title ? /* @__PURE__ */ jsx36(Header4, { title }) : null,
|
|
2098
|
+
/* @__PURE__ */ jsx36(InstructionsList, { dos, donts })
|
|
1832
2099
|
] });
|
|
1833
2100
|
}
|
|
1834
2101
|
};
|
|
@@ -1860,7 +2127,7 @@ function pick(obj, ...keys) {
|
|
|
1860
2127
|
}
|
|
1861
2128
|
|
|
1862
2129
|
// ../renderers/src/IntegerInputRenderer.tsx
|
|
1863
|
-
import { jsx as
|
|
2130
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1864
2131
|
var IntegerInputRenderer = {
|
|
1865
2132
|
canRenderType: "input-integer",
|
|
1866
2133
|
render: (props) => {
|
|
@@ -1875,7 +2142,7 @@ var IntegerInputRenderer = {
|
|
|
1875
2142
|
"maximum",
|
|
1876
2143
|
"minimum"
|
|
1877
2144
|
);
|
|
1878
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsx37(
|
|
1879
2146
|
FieldInput_default,
|
|
1880
2147
|
{
|
|
1881
2148
|
id,
|
|
@@ -1883,7 +2150,7 @@ var IntegerInputRenderer = {
|
|
|
1883
2150
|
description,
|
|
1884
2151
|
validation: validationState,
|
|
1885
2152
|
help,
|
|
1886
|
-
children: /* @__PURE__ */
|
|
2153
|
+
children: /* @__PURE__ */ jsx37(InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx37(
|
|
1887
2154
|
Input,
|
|
1888
2155
|
__spreadValues({
|
|
1889
2156
|
id,
|
|
@@ -1906,14 +2173,14 @@ var IntegerInputRenderer = {
|
|
|
1906
2173
|
var IntegerInputRenderer_default = IntegerInputRenderer;
|
|
1907
2174
|
|
|
1908
2175
|
// ../renderers/src/ListRenderer.tsx
|
|
1909
|
-
import { Body, Header as
|
|
2176
|
+
import { Body, Header as Header5 } from "@transferwise/components";
|
|
1910
2177
|
import classNames3 from "classnames";
|
|
1911
|
-
import { jsx as
|
|
2178
|
+
import { jsx as jsx38, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1912
2179
|
var ListRenderer = {
|
|
1913
2180
|
canRenderType: "list",
|
|
1914
|
-
render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */
|
|
1915
|
-
(title || callToAction) && /* @__PURE__ */
|
|
1916
|
-
items.map((props) => /* @__PURE__ */
|
|
2181
|
+
render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ jsxs9("div", { className: getMargin(margin), children: [
|
|
2182
|
+
(title || callToAction) && /* @__PURE__ */ jsx38(Header5, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
|
|
2183
|
+
items.map((props) => /* @__PURE__ */ jsx38(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
|
|
1917
2184
|
] })
|
|
1918
2185
|
};
|
|
1919
2186
|
var DesignSystemListItem = ({
|
|
@@ -1925,15 +2192,15 @@ var DesignSystemListItem = ({
|
|
|
1925
2192
|
media,
|
|
1926
2193
|
control,
|
|
1927
2194
|
tag
|
|
1928
|
-
}) => /* @__PURE__ */
|
|
2195
|
+
}) => /* @__PURE__ */ jsx38(
|
|
1929
2196
|
"label",
|
|
1930
2197
|
{
|
|
1931
2198
|
className: classNames3("np-option p-a-2", {
|
|
1932
2199
|
"np-option__sm-media": true,
|
|
1933
2200
|
"np-option__container-aligned": true
|
|
1934
2201
|
}),
|
|
1935
|
-
children: /* @__PURE__ */
|
|
1936
|
-
icon || image || media ? /* @__PURE__ */
|
|
2202
|
+
children: /* @__PURE__ */ jsxs9("div", { className: "media", children: [
|
|
2203
|
+
icon || image || media ? /* @__PURE__ */ jsx38("div", { className: "media-left", children: /* @__PURE__ */ jsx38(
|
|
1937
2204
|
ListItemMedia,
|
|
1938
2205
|
{
|
|
1939
2206
|
icon,
|
|
@@ -1941,14 +2208,14 @@ var DesignSystemListItem = ({
|
|
|
1941
2208
|
preferAvatar: control === "with-avatar" || tag === "with-avatar"
|
|
1942
2209
|
}
|
|
1943
2210
|
) }) : null,
|
|
1944
|
-
/* @__PURE__ */
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsxs9("div", { className: "media-body", children: [
|
|
2212
|
+
/* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
|
|
2213
|
+
/* @__PURE__ */ jsx38("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
|
|
2214
|
+
/* @__PURE__ */ jsx38("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
|
|
1948
2215
|
] }),
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
2216
|
+
/* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
|
|
2217
|
+
/* @__PURE__ */ jsx38(Body, { className: "d-block np-option__body", children: description }),
|
|
2218
|
+
/* @__PURE__ */ jsx38(Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
|
|
1952
2219
|
] })
|
|
1953
2220
|
] })
|
|
1954
2221
|
] })
|
|
@@ -1961,9 +2228,9 @@ var ListItemMedia = ({
|
|
|
1961
2228
|
preferAvatar
|
|
1962
2229
|
}) => {
|
|
1963
2230
|
if (icon) {
|
|
1964
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ jsx38("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ jsx38(OptionMedia, { media, preferAvatar }) });
|
|
1965
2232
|
}
|
|
1966
|
-
return /* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ jsx38("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ jsx38(OptionMedia, { media, preferAvatar }) });
|
|
1967
2234
|
};
|
|
1968
2235
|
var getListAction = (callToAction) => {
|
|
1969
2236
|
if (callToAction) {
|
|
@@ -1979,10 +2246,10 @@ var ListRenderer_default = ListRenderer;
|
|
|
1979
2246
|
|
|
1980
2247
|
// ../renderers/src/LoadingIndicatorRenderer.tsx
|
|
1981
2248
|
import { Loader } from "@transferwise/components";
|
|
1982
|
-
import { jsx as
|
|
2249
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
1983
2250
|
var LoadingIndicatorRenderer = {
|
|
1984
2251
|
canRenderType: "loading-indicator",
|
|
1985
|
-
render: ({ margin, size }) => /* @__PURE__ */
|
|
2252
|
+
render: ({ margin, size }) => /* @__PURE__ */ jsx39(
|
|
1986
2253
|
Loader,
|
|
1987
2254
|
{
|
|
1988
2255
|
size,
|
|
@@ -1995,28 +2262,28 @@ var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
|
|
|
1995
2262
|
|
|
1996
2263
|
// ../renderers/src/MarkdownRenderer.tsx
|
|
1997
2264
|
import { Markdown as Markdown3 } from "@transferwise/components";
|
|
1998
|
-
import { jsx as
|
|
2265
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
1999
2266
|
var MarkdownRenderer = {
|
|
2000
2267
|
canRenderType: "markdown",
|
|
2001
|
-
render: ({ content, align, margin }) => /* @__PURE__ */
|
|
2268
|
+
render: ({ content, align, margin }) => /* @__PURE__ */ jsx40("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx40(Markdown3, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
|
|
2002
2269
|
};
|
|
2003
2270
|
var MarkdownRenderer_default = MarkdownRenderer;
|
|
2004
2271
|
|
|
2005
2272
|
// ../renderers/src/ModalLayoutRenderer.tsx
|
|
2006
2273
|
import { Button as Button4, Modal as Modal2 } from "@transferwise/components";
|
|
2007
|
-
import { useState as
|
|
2008
|
-
import { jsx as
|
|
2274
|
+
import { useState as useState5 } from "react";
|
|
2275
|
+
import { jsx as jsx41, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2009
2276
|
var ModalLayoutRenderer = {
|
|
2010
2277
|
canRenderType: "modal-layout",
|
|
2011
|
-
render: (props) => /* @__PURE__ */
|
|
2278
|
+
render: (props) => /* @__PURE__ */ jsx41(DFModal, __spreadValues({}, props))
|
|
2012
2279
|
};
|
|
2013
2280
|
var ModalLayoutRenderer_default = ModalLayoutRenderer;
|
|
2014
2281
|
function DFModal({ content, margin, trigger }) {
|
|
2015
|
-
const [visible, setVisible] =
|
|
2282
|
+
const [visible, setVisible] = useState5(false);
|
|
2016
2283
|
const { children, title } = content;
|
|
2017
|
-
return /* @__PURE__ */
|
|
2018
|
-
/* @__PURE__ */
|
|
2019
|
-
/* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ jsxs10("div", { className: getMargin(margin), children: [
|
|
2285
|
+
/* @__PURE__ */ jsx41(Button4, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
|
|
2286
|
+
/* @__PURE__ */ jsx41(
|
|
2020
2287
|
Modal2,
|
|
2021
2288
|
{
|
|
2022
2289
|
scroll: "content",
|
|
@@ -2032,22 +2299,22 @@ function DFModal({ content, margin, trigger }) {
|
|
|
2032
2299
|
|
|
2033
2300
|
// ../renderers/src/ModalRenderer.tsx
|
|
2034
2301
|
import { Modal as Modal3 } from "@transferwise/components";
|
|
2035
|
-
import { jsx as
|
|
2302
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2036
2303
|
var ModalRenderer = {
|
|
2037
2304
|
canRenderType: "modal",
|
|
2038
2305
|
render: ({ title, children, open, onClose }) => {
|
|
2039
|
-
return /* @__PURE__ */
|
|
2306
|
+
return /* @__PURE__ */ jsx42(Modal3, { open, title, body: children, onClose });
|
|
2040
2307
|
}
|
|
2041
2308
|
};
|
|
2042
2309
|
|
|
2043
2310
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
2044
2311
|
import { SelectInput, SelectInputOptionContent } from "@transferwise/components";
|
|
2045
|
-
import { useState as
|
|
2046
|
-
import { useIntl as
|
|
2312
|
+
import { useState as useState6 } from "react";
|
|
2313
|
+
import { useIntl as useIntl6 } from "react-intl";
|
|
2047
2314
|
|
|
2048
2315
|
// ../renderers/src/messages/multi-select.messages.ts
|
|
2049
|
-
import { defineMessages as
|
|
2050
|
-
var multi_select_messages_default =
|
|
2316
|
+
import { defineMessages as defineMessages5 } from "react-intl";
|
|
2317
|
+
var multi_select_messages_default = defineMessages5({
|
|
2051
2318
|
summary: {
|
|
2052
2319
|
id: "df.wise.MultiSelect.summary",
|
|
2053
2320
|
defaultMessage: "{first} and {count} more",
|
|
@@ -2056,14 +2323,14 @@ var multi_select_messages_default = defineMessages4({
|
|
|
2056
2323
|
});
|
|
2057
2324
|
|
|
2058
2325
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
2059
|
-
import { jsx as
|
|
2326
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2060
2327
|
var MultiSelectInputRenderer = {
|
|
2061
2328
|
canRenderType: "input-multi-select",
|
|
2062
|
-
render: (props) => /* @__PURE__ */
|
|
2329
|
+
render: (props) => /* @__PURE__ */ jsx43(MultiSelectInputRendererComponent, __spreadValues({}, props))
|
|
2063
2330
|
};
|
|
2064
2331
|
function MultiSelectInputRendererComponent(props) {
|
|
2065
|
-
const { formatMessage } =
|
|
2066
|
-
const [stagedIndices, setStagedIndices] =
|
|
2332
|
+
const { formatMessage } = useIntl6();
|
|
2333
|
+
const [stagedIndices, setStagedIndices] = useState6();
|
|
2067
2334
|
const {
|
|
2068
2335
|
id,
|
|
2069
2336
|
autoComplete,
|
|
@@ -2101,12 +2368,12 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
2101
2368
|
const contentProps = {
|
|
2102
2369
|
title: option.title,
|
|
2103
2370
|
description: option.description,
|
|
2104
|
-
icon: /* @__PURE__ */
|
|
2371
|
+
icon: /* @__PURE__ */ jsx43(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2105
2372
|
};
|
|
2106
|
-
return /* @__PURE__ */
|
|
2373
|
+
return /* @__PURE__ */ jsx43(SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
2107
2374
|
};
|
|
2108
2375
|
const extraProps = { autoComplete };
|
|
2109
|
-
return /* @__PURE__ */
|
|
2376
|
+
return /* @__PURE__ */ jsx43(
|
|
2110
2377
|
FieldInput_default,
|
|
2111
2378
|
{
|
|
2112
2379
|
id,
|
|
@@ -2114,7 +2381,7 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
2114
2381
|
help,
|
|
2115
2382
|
description,
|
|
2116
2383
|
validation: validationState,
|
|
2117
|
-
children: /* @__PURE__ */
|
|
2384
|
+
children: /* @__PURE__ */ jsx43(
|
|
2118
2385
|
SelectInput,
|
|
2119
2386
|
__spreadValues({
|
|
2120
2387
|
id,
|
|
@@ -2159,7 +2426,7 @@ import { UploadInput } from "@transferwise/components";
|
|
|
2159
2426
|
// ../renderers/src/components/UploadFieldInput.tsx
|
|
2160
2427
|
import { InlineAlert as InlineAlert2 } from "@transferwise/components";
|
|
2161
2428
|
import classNames4 from "classnames";
|
|
2162
|
-
import { jsx as
|
|
2429
|
+
import { jsx as jsx44, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2163
2430
|
function UploadFieldInput({
|
|
2164
2431
|
id,
|
|
2165
2432
|
children,
|
|
@@ -2168,18 +2435,18 @@ function UploadFieldInput({
|
|
|
2168
2435
|
help,
|
|
2169
2436
|
validation
|
|
2170
2437
|
}) {
|
|
2171
|
-
const labelContent = label && help ? /* @__PURE__ */
|
|
2438
|
+
const labelContent = label && help ? /* @__PURE__ */ jsx44(LabelContentWithHelp, { text: label, help }) : label;
|
|
2172
2439
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
2173
|
-
return /* @__PURE__ */
|
|
2440
|
+
return /* @__PURE__ */ jsxs11(
|
|
2174
2441
|
"div",
|
|
2175
2442
|
{
|
|
2176
2443
|
className: classNames4("form-group d-block", {
|
|
2177
2444
|
"has-error": (validation == null ? void 0 : validation.status) === "invalid"
|
|
2178
2445
|
}),
|
|
2179
2446
|
children: [
|
|
2180
|
-
/* @__PURE__ */
|
|
2447
|
+
/* @__PURE__ */ jsx44("label", { htmlFor: id, className: "control-label", children: labelContent }),
|
|
2181
2448
|
children,
|
|
2182
|
-
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */
|
|
2449
|
+
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx44(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
|
|
2183
2450
|
]
|
|
2184
2451
|
}
|
|
2185
2452
|
);
|
|
@@ -2214,7 +2481,7 @@ var getSizeLimit = (maxSize) => {
|
|
|
2214
2481
|
};
|
|
2215
2482
|
|
|
2216
2483
|
// ../renderers/src/MultiUploadInputRenderer.tsx
|
|
2217
|
-
import { jsx as
|
|
2484
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2218
2485
|
var MultiUploadInputRenderer = {
|
|
2219
2486
|
canRenderType: "input-upload-multi",
|
|
2220
2487
|
render: (props) => {
|
|
@@ -2239,7 +2506,7 @@ var MultiUploadInputRenderer = {
|
|
|
2239
2506
|
};
|
|
2240
2507
|
const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
|
|
2241
2508
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
2242
|
-
return /* @__PURE__ */
|
|
2509
|
+
return /* @__PURE__ */ jsx45(
|
|
2243
2510
|
UploadFieldInput_default,
|
|
2244
2511
|
{
|
|
2245
2512
|
id,
|
|
@@ -2247,7 +2514,7 @@ var MultiUploadInputRenderer = {
|
|
|
2247
2514
|
description,
|
|
2248
2515
|
validation: validationState,
|
|
2249
2516
|
help,
|
|
2250
|
-
children: /* @__PURE__ */
|
|
2517
|
+
children: /* @__PURE__ */ jsx45(
|
|
2251
2518
|
UploadInput,
|
|
2252
2519
|
{
|
|
2253
2520
|
id,
|
|
@@ -2271,7 +2538,7 @@ var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
|
|
|
2271
2538
|
|
|
2272
2539
|
// ../renderers/src/NumberInputRenderer.tsx
|
|
2273
2540
|
import { Input as Input2, InputGroup as InputGroup2 } from "@transferwise/components";
|
|
2274
|
-
import { jsx as
|
|
2541
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2275
2542
|
var NumberInputRenderer = {
|
|
2276
2543
|
canRenderType: "input-number",
|
|
2277
2544
|
render: (props) => {
|
|
@@ -2285,7 +2552,7 @@ var NumberInputRenderer = {
|
|
|
2285
2552
|
"maximum",
|
|
2286
2553
|
"minimum"
|
|
2287
2554
|
);
|
|
2288
|
-
return /* @__PURE__ */
|
|
2555
|
+
return /* @__PURE__ */ jsx46(
|
|
2289
2556
|
FieldInput_default,
|
|
2290
2557
|
{
|
|
2291
2558
|
id,
|
|
@@ -2293,7 +2560,7 @@ var NumberInputRenderer = {
|
|
|
2293
2560
|
description,
|
|
2294
2561
|
validation: validationState,
|
|
2295
2562
|
help,
|
|
2296
|
-
children: /* @__PURE__ */
|
|
2563
|
+
children: /* @__PURE__ */ jsx46(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx46(
|
|
2297
2564
|
Input2,
|
|
2298
2565
|
__spreadValues({
|
|
2299
2566
|
id,
|
|
@@ -2314,7 +2581,7 @@ var NumberInputRenderer = {
|
|
|
2314
2581
|
var NumberInputRenderer_default = NumberInputRenderer;
|
|
2315
2582
|
|
|
2316
2583
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
2317
|
-
import { useIntl as
|
|
2584
|
+
import { useIntl as useIntl7 } from "react-intl";
|
|
2318
2585
|
|
|
2319
2586
|
// ../renderers/src/hooks/useSnackBarIfAvailable.ts
|
|
2320
2587
|
import { SnackbarContext } from "@transferwise/components";
|
|
@@ -2330,8 +2597,8 @@ import { Button as Button5, Input as Input3 } from "@transferwise/components";
|
|
|
2330
2597
|
import classNames5 from "classnames";
|
|
2331
2598
|
|
|
2332
2599
|
// ../renderers/src/messages/paragraph.messages.ts
|
|
2333
|
-
import { defineMessages as
|
|
2334
|
-
var paragraph_messages_default =
|
|
2600
|
+
import { defineMessages as defineMessages6 } from "react-intl";
|
|
2601
|
+
var paragraph_messages_default = defineMessages6({
|
|
2335
2602
|
copy: {
|
|
2336
2603
|
id: "df.wise.DynamicParagraph.copy",
|
|
2337
2604
|
defaultMessage: "Copy",
|
|
@@ -2345,32 +2612,32 @@ var paragraph_messages_default = defineMessages5({
|
|
|
2345
2612
|
});
|
|
2346
2613
|
|
|
2347
2614
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
2348
|
-
import { jsx as
|
|
2615
|
+
import { jsx as jsx47, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2349
2616
|
var ParagraphRenderer = {
|
|
2350
2617
|
canRenderType: "paragraph",
|
|
2351
|
-
render: (props) => /* @__PURE__ */
|
|
2618
|
+
render: (props) => /* @__PURE__ */ jsx47(Paragraph, __spreadValues({}, props))
|
|
2352
2619
|
};
|
|
2353
2620
|
function Paragraph({ align, control, margin, text }) {
|
|
2354
2621
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
2355
|
-
return control === "copyable" ? /* @__PURE__ */
|
|
2622
|
+
return control === "copyable" ? /* @__PURE__ */ jsx47(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx47(StandardParagraph, { className, text });
|
|
2356
2623
|
}
|
|
2357
2624
|
function StandardParagraph({ text, className }) {
|
|
2358
|
-
return /* @__PURE__ */
|
|
2625
|
+
return /* @__PURE__ */ jsx47("p", { className: `np-text-body-large ${className}`, children: text });
|
|
2359
2626
|
}
|
|
2360
2627
|
function CopyableParagraph({
|
|
2361
2628
|
text,
|
|
2362
2629
|
align,
|
|
2363
2630
|
className
|
|
2364
2631
|
}) {
|
|
2365
|
-
const { formatMessage } =
|
|
2632
|
+
const { formatMessage } = useIntl7();
|
|
2366
2633
|
const createSnackbar = useSnackBarIfAvailable();
|
|
2367
2634
|
const copy = () => {
|
|
2368
2635
|
navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
|
|
2369
2636
|
});
|
|
2370
2637
|
};
|
|
2371
2638
|
const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
|
|
2372
|
-
return /* @__PURE__ */
|
|
2373
|
-
/* @__PURE__ */
|
|
2639
|
+
return /* @__PURE__ */ jsxs12("div", { className, children: [
|
|
2640
|
+
/* @__PURE__ */ jsx47(
|
|
2374
2641
|
Input3,
|
|
2375
2642
|
{
|
|
2376
2643
|
type: "text",
|
|
@@ -2379,21 +2646,21 @@ function CopyableParagraph({
|
|
|
2379
2646
|
className: classNames5("text-ellipsis", inputAlignmentClasses)
|
|
2380
2647
|
}
|
|
2381
2648
|
),
|
|
2382
|
-
/* @__PURE__ */
|
|
2649
|
+
/* @__PURE__ */ jsx47(Button5, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
|
|
2383
2650
|
] });
|
|
2384
2651
|
}
|
|
2385
2652
|
var ParagraphRenderer_default = ParagraphRenderer;
|
|
2386
2653
|
|
|
2387
2654
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2388
|
-
import { Button as Button6, Header as
|
|
2655
|
+
import { Button as Button6, Header as Header6, InlineAlert as InlineAlert3, Modal as Modal4, NavigationOption as NavigationOption2 } from "@transferwise/components";
|
|
2389
2656
|
import { Plus } from "@transferwise/icons";
|
|
2390
2657
|
import classNames6 from "classnames";
|
|
2391
|
-
import { useState as
|
|
2392
|
-
import { useIntl as
|
|
2658
|
+
import { useState as useState7 } from "react";
|
|
2659
|
+
import { useIntl as useIntl8 } from "react-intl";
|
|
2393
2660
|
|
|
2394
2661
|
// ../renderers/src/messages/repeatable.messages.ts
|
|
2395
|
-
import { defineMessages as
|
|
2396
|
-
var repeatable_messages_default =
|
|
2662
|
+
import { defineMessages as defineMessages7 } from "react-intl";
|
|
2663
|
+
var repeatable_messages_default = defineMessages7({
|
|
2397
2664
|
addItemTitle: {
|
|
2398
2665
|
id: "df.wise.ArraySchema.addItemTitle",
|
|
2399
2666
|
defaultMessage: "Add Item",
|
|
@@ -2417,10 +2684,10 @@ var repeatable_messages_default = defineMessages6({
|
|
|
2417
2684
|
});
|
|
2418
2685
|
|
|
2419
2686
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2420
|
-
import { Fragment as
|
|
2687
|
+
import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2421
2688
|
var RepeatableRenderer = {
|
|
2422
2689
|
canRenderType: "repeatable",
|
|
2423
|
-
render: (props) => /* @__PURE__ */
|
|
2690
|
+
render: (props) => /* @__PURE__ */ jsx48(Repeatable, __spreadValues({}, props))
|
|
2424
2691
|
};
|
|
2425
2692
|
function Repeatable(props) {
|
|
2426
2693
|
const {
|
|
@@ -2436,8 +2703,8 @@ function Repeatable(props) {
|
|
|
2436
2703
|
onSave,
|
|
2437
2704
|
onRemove
|
|
2438
2705
|
} = props;
|
|
2439
|
-
const { formatMessage } =
|
|
2440
|
-
const [openModalType, setOpenModalType] =
|
|
2706
|
+
const { formatMessage } = useIntl8();
|
|
2707
|
+
const [openModalType, setOpenModalType] = useState7(null);
|
|
2441
2708
|
const onAddItem = () => {
|
|
2442
2709
|
onAdd();
|
|
2443
2710
|
setOpenModalType("add");
|
|
@@ -2459,40 +2726,40 @@ function Repeatable(props) {
|
|
|
2459
2726
|
const onCancelEdit = () => {
|
|
2460
2727
|
setOpenModalType(null);
|
|
2461
2728
|
};
|
|
2462
|
-
return /* @__PURE__ */
|
|
2463
|
-
title && /* @__PURE__ */
|
|
2464
|
-
description && /* @__PURE__ */
|
|
2465
|
-
/* @__PURE__ */
|
|
2729
|
+
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
2730
|
+
title && /* @__PURE__ */ jsx48(Header6, { title }),
|
|
2731
|
+
description && /* @__PURE__ */ jsx48("p", { children: description }),
|
|
2732
|
+
/* @__PURE__ */ jsxs13(
|
|
2466
2733
|
"div",
|
|
2467
2734
|
{
|
|
2468
2735
|
className: classNames6("form-group", {
|
|
2469
2736
|
"has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
|
|
2470
2737
|
}),
|
|
2471
2738
|
children: [
|
|
2472
|
-
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */
|
|
2473
|
-
/* @__PURE__ */
|
|
2739
|
+
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx48(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
|
|
2740
|
+
/* @__PURE__ */ jsx48(
|
|
2474
2741
|
NavigationOption2,
|
|
2475
2742
|
{
|
|
2476
|
-
media: /* @__PURE__ */
|
|
2743
|
+
media: /* @__PURE__ */ jsx48(Plus, {}),
|
|
2477
2744
|
title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2478
2745
|
showMediaAtAllSizes: true,
|
|
2479
2746
|
onClick: () => onAddItem()
|
|
2480
2747
|
}
|
|
2481
2748
|
),
|
|
2482
|
-
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */
|
|
2749
|
+
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx48(InlineAlert3, { type: "negative", children: validationState.message })
|
|
2483
2750
|
]
|
|
2484
2751
|
}
|
|
2485
2752
|
),
|
|
2486
|
-
/* @__PURE__ */
|
|
2753
|
+
/* @__PURE__ */ jsx48(
|
|
2487
2754
|
Modal4,
|
|
2488
2755
|
{
|
|
2489
2756
|
open: openModalType !== null,
|
|
2490
2757
|
title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2491
|
-
body: /* @__PURE__ */
|
|
2492
|
-
/* @__PURE__ */
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
/* @__PURE__ */
|
|
2495
|
-
/* @__PURE__ */
|
|
2758
|
+
body: /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
2759
|
+
/* @__PURE__ */ jsx48("div", { className: "m-b-2", children: editableItem }),
|
|
2760
|
+
/* @__PURE__ */ jsxs13("div", { children: [
|
|
2761
|
+
/* @__PURE__ */ jsx48(Button6, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
|
|
2762
|
+
/* @__PURE__ */ jsx48(Button6, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
|
|
2496
2763
|
] })
|
|
2497
2764
|
] }),
|
|
2498
2765
|
onClose: () => onCancelEdit()
|
|
@@ -2504,10 +2771,10 @@ function ItemSummaryOption({
|
|
|
2504
2771
|
item,
|
|
2505
2772
|
onClick
|
|
2506
2773
|
}) {
|
|
2507
|
-
return /* @__PURE__ */
|
|
2774
|
+
return /* @__PURE__ */ jsx48(
|
|
2508
2775
|
NavigationOption2,
|
|
2509
2776
|
{
|
|
2510
|
-
media: /* @__PURE__ */
|
|
2777
|
+
media: /* @__PURE__ */ jsx48(OptionMedia, { media: item.media, preferAvatar: false }),
|
|
2511
2778
|
title: item.title,
|
|
2512
2779
|
content: item.description,
|
|
2513
2780
|
showMediaAtAllSizes: true,
|
|
@@ -2518,7 +2785,7 @@ function ItemSummaryOption({
|
|
|
2518
2785
|
var RepeatableRenderer_default = RepeatableRenderer;
|
|
2519
2786
|
|
|
2520
2787
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2521
|
-
import { DefinitionList, Header as
|
|
2788
|
+
import { DefinitionList, Header as Header7 } from "@transferwise/components";
|
|
2522
2789
|
|
|
2523
2790
|
// ../renderers/src/utils/getHeaderAction.tsx
|
|
2524
2791
|
var getHeaderAction = (callToAction) => {
|
|
@@ -2542,14 +2809,14 @@ var getHeaderAction = (callToAction) => {
|
|
|
2542
2809
|
};
|
|
2543
2810
|
|
|
2544
2811
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2545
|
-
import { Fragment as
|
|
2812
|
+
import { Fragment as Fragment5, jsx as jsx49, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2546
2813
|
var ReviewRenderer = {
|
|
2547
2814
|
canRenderType: "review",
|
|
2548
2815
|
render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
|
|
2549
2816
|
const orientation = mapControlToDefinitionListLayout(control);
|
|
2550
|
-
return /* @__PURE__ */
|
|
2551
|
-
(title || callToAction) && /* @__PURE__ */
|
|
2552
|
-
/* @__PURE__ */
|
|
2817
|
+
return /* @__PURE__ */ jsxs14("div", { className: getMargin(margin), children: [
|
|
2818
|
+
(title || callToAction) && /* @__PURE__ */ jsx49(Header7, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
|
|
2819
|
+
/* @__PURE__ */ jsx49("div", { className: margin, children: /* @__PURE__ */ jsx49(
|
|
2553
2820
|
DefinitionList,
|
|
2554
2821
|
{
|
|
2555
2822
|
layout: orientation,
|
|
@@ -2588,14 +2855,14 @@ var mapControlToDefinitionListLayout = (control) => {
|
|
|
2588
2855
|
};
|
|
2589
2856
|
var getFieldValue = (value, help, orientation, onClick) => {
|
|
2590
2857
|
if (help) {
|
|
2591
|
-
return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */
|
|
2592
|
-
/* @__PURE__ */
|
|
2858
|
+
return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs14(Fragment5, { children: [
|
|
2859
|
+
/* @__PURE__ */ jsx49(Help_default, { help, onClick }),
|
|
2593
2860
|
" ",
|
|
2594
2861
|
value
|
|
2595
|
-
] }) : /* @__PURE__ */
|
|
2862
|
+
] }) : /* @__PURE__ */ jsxs14(Fragment5, { children: [
|
|
2596
2863
|
value,
|
|
2597
2864
|
" ",
|
|
2598
|
-
/* @__PURE__ */
|
|
2865
|
+
/* @__PURE__ */ jsx49(Help_default, { help, onClick })
|
|
2599
2866
|
] });
|
|
2600
2867
|
}
|
|
2601
2868
|
return value;
|
|
@@ -2603,12 +2870,12 @@ var getFieldValue = (value, help, orientation, onClick) => {
|
|
|
2603
2870
|
|
|
2604
2871
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2605
2872
|
import { Input as Input4, Markdown as Markdown4, NavigationOption as NavigationOption3, NavigationOptionsList as NavigationOptionsList2 } from "@transferwise/components";
|
|
2606
|
-
import { useState as
|
|
2607
|
-
import { useIntl as
|
|
2873
|
+
import { useState as useState8 } from "react";
|
|
2874
|
+
import { useIntl as useIntl10 } from "react-intl";
|
|
2608
2875
|
|
|
2609
2876
|
// ../renderers/src/messages/search.messages.ts
|
|
2610
|
-
import { defineMessages as
|
|
2611
|
-
var search_messages_default =
|
|
2877
|
+
import { defineMessages as defineMessages8 } from "react-intl";
|
|
2878
|
+
var search_messages_default = defineMessages8({
|
|
2612
2879
|
loading: {
|
|
2613
2880
|
id: "df.wise.SearchLayout.loading",
|
|
2614
2881
|
defaultMessage: "Loading...",
|
|
@@ -2617,11 +2884,11 @@ var search_messages_default = defineMessages7({
|
|
|
2617
2884
|
});
|
|
2618
2885
|
|
|
2619
2886
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2620
|
-
import { useIntl as
|
|
2887
|
+
import { useIntl as useIntl9 } from "react-intl";
|
|
2621
2888
|
|
|
2622
2889
|
// ../renderers/src/messages/generic-error.messages.ts
|
|
2623
|
-
import { defineMessages as
|
|
2624
|
-
var generic_error_messages_default =
|
|
2890
|
+
import { defineMessages as defineMessages9 } from "react-intl";
|
|
2891
|
+
var generic_error_messages_default = defineMessages9({
|
|
2625
2892
|
genericErrorRetryHint: {
|
|
2626
2893
|
id: "df.wise.PersistAsyncSchema.genericError",
|
|
2627
2894
|
defaultMessage: "Something went wrong, please try again.",
|
|
@@ -2641,18 +2908,18 @@ var generic_error_messages_default = defineMessages8({
|
|
|
2641
2908
|
|
|
2642
2909
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2643
2910
|
import { Button as Button7 } from "@transferwise/components";
|
|
2644
|
-
import { jsx as
|
|
2911
|
+
import { jsx as jsx50, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2645
2912
|
function ErrorResult({ state }) {
|
|
2646
|
-
const intl =
|
|
2913
|
+
const intl = useIntl9();
|
|
2647
2914
|
const buttonVisualProps = {
|
|
2648
2915
|
priority: "tertiary",
|
|
2649
2916
|
size: "sm",
|
|
2650
2917
|
style: { marginTop: "-2px", padding: "0", width: "auto", display: "inline" }
|
|
2651
2918
|
};
|
|
2652
|
-
return /* @__PURE__ */
|
|
2919
|
+
return /* @__PURE__ */ jsxs15("p", { className: "m-t-2", children: [
|
|
2653
2920
|
intl.formatMessage(generic_error_messages_default.genericError),
|
|
2654
2921
|
"\xA0",
|
|
2655
|
-
/* @__PURE__ */
|
|
2922
|
+
/* @__PURE__ */ jsx50(
|
|
2656
2923
|
Button7,
|
|
2657
2924
|
__spreadProps(__spreadValues({}, buttonVisualProps), {
|
|
2658
2925
|
onClick: () => {
|
|
@@ -2665,7 +2932,7 @@ function ErrorResult({ state }) {
|
|
|
2665
2932
|
}
|
|
2666
2933
|
|
|
2667
2934
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2668
|
-
import { Fragment as
|
|
2935
|
+
import { Fragment as Fragment6, jsx as jsx51, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2669
2936
|
function BlockSearchRendererComponent({
|
|
2670
2937
|
id,
|
|
2671
2938
|
isLoading,
|
|
@@ -2676,10 +2943,10 @@ function BlockSearchRendererComponent({
|
|
|
2676
2943
|
trackEvent,
|
|
2677
2944
|
onChange
|
|
2678
2945
|
}) {
|
|
2679
|
-
const [hasSearched, setHasSearched] =
|
|
2680
|
-
const { formatMessage } =
|
|
2681
|
-
return /* @__PURE__ */
|
|
2682
|
-
/* @__PURE__ */
|
|
2946
|
+
const [hasSearched, setHasSearched] = useState8(false);
|
|
2947
|
+
const { formatMessage } = useIntl10();
|
|
2948
|
+
return /* @__PURE__ */ jsxs16("div", { className: getMargin(margin), children: [
|
|
2949
|
+
/* @__PURE__ */ jsx51(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx51(
|
|
2683
2950
|
Input4,
|
|
2684
2951
|
{
|
|
2685
2952
|
id,
|
|
@@ -2696,7 +2963,7 @@ function BlockSearchRendererComponent({
|
|
|
2696
2963
|
}
|
|
2697
2964
|
}
|
|
2698
2965
|
) }),
|
|
2699
|
-
isLoading ? /* @__PURE__ */
|
|
2966
|
+
isLoading ? /* @__PURE__ */ jsx51(Fragment6, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx51(SearchResultContent, { state, trackEvent })
|
|
2700
2967
|
] });
|
|
2701
2968
|
}
|
|
2702
2969
|
function SearchResultContent({
|
|
@@ -2705,26 +2972,26 @@ function SearchResultContent({
|
|
|
2705
2972
|
}) {
|
|
2706
2973
|
switch (state.type) {
|
|
2707
2974
|
case "error":
|
|
2708
|
-
return /* @__PURE__ */
|
|
2975
|
+
return /* @__PURE__ */ jsx51(ErrorResult, { state });
|
|
2709
2976
|
case "results":
|
|
2710
|
-
return /* @__PURE__ */
|
|
2977
|
+
return /* @__PURE__ */ jsx51(SearchResults, { state, trackEvent });
|
|
2711
2978
|
case "noResults":
|
|
2712
|
-
return /* @__PURE__ */
|
|
2979
|
+
return /* @__PURE__ */ jsx51(EmptySearchResult, { state });
|
|
2713
2980
|
case "pending":
|
|
2714
2981
|
default:
|
|
2715
2982
|
return null;
|
|
2716
2983
|
}
|
|
2717
2984
|
}
|
|
2718
2985
|
function EmptySearchResult({ state }) {
|
|
2719
|
-
return /* @__PURE__ */
|
|
2986
|
+
return /* @__PURE__ */ jsx51(Markdown4, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2720
2987
|
}
|
|
2721
2988
|
function SearchResults({
|
|
2722
2989
|
state,
|
|
2723
2990
|
trackEvent
|
|
2724
2991
|
}) {
|
|
2725
|
-
return /* @__PURE__ */
|
|
2992
|
+
return /* @__PURE__ */ jsx51(NavigationOptionsList2, { children: state.results.map((result) => {
|
|
2726
2993
|
const { media } = result;
|
|
2727
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ jsx51(
|
|
2728
2995
|
NavigationOption3,
|
|
2729
2996
|
{
|
|
2730
2997
|
title: result.title,
|
|
@@ -2748,9 +3015,9 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
|
|
|
2748
3015
|
// ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
|
|
2749
3016
|
import { Markdown as Markdown5, Typeahead } from "@transferwise/components";
|
|
2750
3017
|
import { Search } from "@transferwise/icons";
|
|
2751
|
-
import { useState as
|
|
2752
|
-
import { useIntl as
|
|
2753
|
-
import { jsx as
|
|
3018
|
+
import { useState as useState9 } from "react";
|
|
3019
|
+
import { useIntl as useIntl11 } from "react-intl";
|
|
3020
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2754
3021
|
function InlineSearchRenderer({
|
|
2755
3022
|
id,
|
|
2756
3023
|
isLoading,
|
|
@@ -2760,9 +3027,9 @@ function InlineSearchRenderer({
|
|
|
2760
3027
|
title,
|
|
2761
3028
|
trackEvent
|
|
2762
3029
|
}) {
|
|
2763
|
-
const [hasSearched, setHasSearched] =
|
|
2764
|
-
const intl =
|
|
2765
|
-
return /* @__PURE__ */
|
|
3030
|
+
const [hasSearched, setHasSearched] = useState9(false);
|
|
3031
|
+
const intl = useIntl11();
|
|
3032
|
+
return /* @__PURE__ */ jsx52("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx52(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx52(
|
|
2766
3033
|
Typeahead,
|
|
2767
3034
|
{
|
|
2768
3035
|
id: "typeahead-input-id",
|
|
@@ -2770,10 +3037,10 @@ function InlineSearchRenderer({
|
|
|
2770
3037
|
name: "typeahead-input-name",
|
|
2771
3038
|
size: "md",
|
|
2772
3039
|
maxHeight: 100,
|
|
2773
|
-
footer: /* @__PURE__ */
|
|
3040
|
+
footer: /* @__PURE__ */ jsx52(TypeaheadFooter, { state, isLoading }),
|
|
2774
3041
|
multiple: false,
|
|
2775
3042
|
clearable: false,
|
|
2776
|
-
addon: /* @__PURE__ */
|
|
3043
|
+
addon: /* @__PURE__ */ jsx52(Search, { size: 24 }),
|
|
2777
3044
|
options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
|
|
2778
3045
|
minQueryLength: 1,
|
|
2779
3046
|
onChange: (values) => {
|
|
@@ -2808,36 +3075,36 @@ function mapResultToTypeaheadOption(result) {
|
|
|
2808
3075
|
};
|
|
2809
3076
|
}
|
|
2810
3077
|
function TypeaheadFooter({ state, isLoading }) {
|
|
2811
|
-
const { formatMessage } =
|
|
3078
|
+
const { formatMessage } = useIntl11();
|
|
2812
3079
|
if (state.type === "noResults") {
|
|
2813
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsx52(Markdown5, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2814
3081
|
}
|
|
2815
3082
|
if (state.type === "error") {
|
|
2816
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ jsx52("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx52(ErrorResult, { state }) });
|
|
2817
3084
|
}
|
|
2818
3085
|
if (state.type === "pending" || isLoading) {
|
|
2819
|
-
return /* @__PURE__ */
|
|
3086
|
+
return /* @__PURE__ */ jsx52("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
|
|
2820
3087
|
}
|
|
2821
3088
|
return null;
|
|
2822
3089
|
}
|
|
2823
3090
|
var InlineSearchRendererComponent_default = InlineSearchRenderer;
|
|
2824
3091
|
|
|
2825
3092
|
// ../renderers/src/SearchRenderer/SearchRenderer.tsx
|
|
2826
|
-
import { jsx as
|
|
3093
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
2827
3094
|
var SearchRenderer = {
|
|
2828
3095
|
canRenderType: "search",
|
|
2829
|
-
render: (props) => props.control === "inline" ? /* @__PURE__ */
|
|
3096
|
+
render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx53(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx53(BlockSearchRendererComponent_default, __spreadValues({}, props))
|
|
2830
3097
|
};
|
|
2831
3098
|
var SearchRenderer_default = SearchRenderer;
|
|
2832
3099
|
|
|
2833
3100
|
// ../renderers/src/SectionRenderer.tsx
|
|
2834
|
-
import { Header as
|
|
2835
|
-
import { jsx as
|
|
3101
|
+
import { Header as Header8 } from "@transferwise/components";
|
|
3102
|
+
import { jsx as jsx54, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2836
3103
|
var SectionRenderer = {
|
|
2837
3104
|
canRenderType: "section",
|
|
2838
3105
|
render: ({ children, callToAction, margin, title }) => {
|
|
2839
|
-
return /* @__PURE__ */
|
|
2840
|
-
(title || callToAction) && /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsxs17("section", { className: getMargin(margin), children: [
|
|
3107
|
+
(title || callToAction) && /* @__PURE__ */ jsx54(Header8, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
|
|
2841
3108
|
children
|
|
2842
3109
|
] });
|
|
2843
3110
|
}
|
|
@@ -2846,7 +3113,7 @@ var SectionRenderer_default = SectionRenderer;
|
|
|
2846
3113
|
|
|
2847
3114
|
// ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
|
|
2848
3115
|
import { RadioGroup } from "@transferwise/components";
|
|
2849
|
-
import { Fragment as
|
|
3116
|
+
import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2850
3117
|
function RadioInputRendererComponent(props) {
|
|
2851
3118
|
const {
|
|
2852
3119
|
id,
|
|
@@ -2860,8 +3127,8 @@ function RadioInputRendererComponent(props) {
|
|
|
2860
3127
|
validationState,
|
|
2861
3128
|
onSelect
|
|
2862
3129
|
} = props;
|
|
2863
|
-
return /* @__PURE__ */
|
|
2864
|
-
/* @__PURE__ */
|
|
3130
|
+
return /* @__PURE__ */ jsxs18(Fragment7, { children: [
|
|
3131
|
+
/* @__PURE__ */ jsx55(
|
|
2865
3132
|
FieldInput_default,
|
|
2866
3133
|
{
|
|
2867
3134
|
id,
|
|
@@ -2869,7 +3136,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2869
3136
|
help,
|
|
2870
3137
|
description,
|
|
2871
3138
|
validation: validationState,
|
|
2872
|
-
children: /* @__PURE__ */
|
|
3139
|
+
children: /* @__PURE__ */ jsx55("span", { children: /* @__PURE__ */ jsx55(
|
|
2873
3140
|
RadioGroup,
|
|
2874
3141
|
{
|
|
2875
3142
|
name: id,
|
|
@@ -2878,7 +3145,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2878
3145
|
value: index,
|
|
2879
3146
|
secondary: option.description,
|
|
2880
3147
|
disabled: option.disabled || disabled,
|
|
2881
|
-
avatar: /* @__PURE__ */
|
|
3148
|
+
avatar: /* @__PURE__ */ jsx55(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2882
3149
|
})),
|
|
2883
3150
|
selectedValue: selectedIndex != null ? selectedIndex : void 0,
|
|
2884
3151
|
onChange: onSelect
|
|
@@ -2894,7 +3161,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2894
3161
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
2895
3162
|
import { Tabs } from "@transferwise/components";
|
|
2896
3163
|
import { useEffect as useEffect5 } from "react";
|
|
2897
|
-
import { Fragment as
|
|
3164
|
+
import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2898
3165
|
function TabInputRendererComponent(props) {
|
|
2899
3166
|
const {
|
|
2900
3167
|
id,
|
|
@@ -2913,8 +3180,8 @@ function TabInputRendererComponent(props) {
|
|
|
2913
3180
|
onSelect(0);
|
|
2914
3181
|
}
|
|
2915
3182
|
}, [selectedIndex, onSelect, options.length]);
|
|
2916
|
-
return /* @__PURE__ */
|
|
2917
|
-
/* @__PURE__ */
|
|
3183
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
3184
|
+
/* @__PURE__ */ jsx56(
|
|
2918
3185
|
FieldInput_default,
|
|
2919
3186
|
{
|
|
2920
3187
|
id,
|
|
@@ -2922,7 +3189,7 @@ function TabInputRendererComponent(props) {
|
|
|
2922
3189
|
help,
|
|
2923
3190
|
description,
|
|
2924
3191
|
validation: validationState,
|
|
2925
|
-
children: /* @__PURE__ */
|
|
3192
|
+
children: /* @__PURE__ */ jsx56(
|
|
2926
3193
|
Tabs,
|
|
2927
3194
|
{
|
|
2928
3195
|
name: id,
|
|
@@ -2931,7 +3198,7 @@ function TabInputRendererComponent(props) {
|
|
|
2931
3198
|
title: option.title,
|
|
2932
3199
|
// if we pass null, we get some props-types console errors
|
|
2933
3200
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
2934
|
-
content: /* @__PURE__ */
|
|
3201
|
+
content: /* @__PURE__ */ jsx56(Fragment8, {}),
|
|
2935
3202
|
disabled: option.disabled || disabled
|
|
2936
3203
|
})),
|
|
2937
3204
|
onTabSelect: onSelect
|
|
@@ -2946,7 +3213,7 @@ var isValidIndex = (index, options) => index !== null && index >= 0 && index < o
|
|
|
2946
3213
|
|
|
2947
3214
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
2948
3215
|
import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
|
|
2949
|
-
import { Fragment as
|
|
3216
|
+
import { Fragment as Fragment9, jsx as jsx57, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2950
3217
|
function SelectInputRendererComponent(props) {
|
|
2951
3218
|
const {
|
|
2952
3219
|
id,
|
|
@@ -2986,13 +3253,13 @@ function SelectInputRendererComponent(props) {
|
|
|
2986
3253
|
} : {
|
|
2987
3254
|
title: option.title,
|
|
2988
3255
|
description: option.description,
|
|
2989
|
-
icon: /* @__PURE__ */
|
|
3256
|
+
icon: /* @__PURE__ */ jsx57(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2990
3257
|
};
|
|
2991
|
-
return /* @__PURE__ */
|
|
3258
|
+
return /* @__PURE__ */ jsx57(SelectInputOptionContent2, __spreadValues({}, contentProps));
|
|
2992
3259
|
};
|
|
2993
3260
|
const extraProps = { autoComplete };
|
|
2994
|
-
return /* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
3261
|
+
return /* @__PURE__ */ jsxs20(Fragment9, { children: [
|
|
3262
|
+
/* @__PURE__ */ jsx57(
|
|
2996
3263
|
FieldInput_default,
|
|
2997
3264
|
{
|
|
2998
3265
|
id,
|
|
@@ -3000,7 +3267,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3000
3267
|
help,
|
|
3001
3268
|
description,
|
|
3002
3269
|
validation: validationState,
|
|
3003
|
-
children: /* @__PURE__ */
|
|
3270
|
+
children: /* @__PURE__ */ jsx57(
|
|
3004
3271
|
SelectInput2,
|
|
3005
3272
|
__spreadValues({
|
|
3006
3273
|
name: id,
|
|
@@ -3023,7 +3290,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3023
3290
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
3024
3291
|
import { useEffect as useEffect6 } from "react";
|
|
3025
3292
|
import { SegmentedControl } from "@transferwise/components";
|
|
3026
|
-
import { Fragment as
|
|
3293
|
+
import { Fragment as Fragment10, jsx as jsx58, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3027
3294
|
function SegmentedInputRendererComponent(props) {
|
|
3028
3295
|
const {
|
|
3029
3296
|
id,
|
|
@@ -3041,8 +3308,8 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3041
3308
|
onSelect(0);
|
|
3042
3309
|
}
|
|
3043
3310
|
}, [selectedIndex, onSelect, options.length]);
|
|
3044
|
-
return /* @__PURE__ */
|
|
3045
|
-
/* @__PURE__ */
|
|
3311
|
+
return /* @__PURE__ */ jsxs21(Fragment10, { children: [
|
|
3312
|
+
/* @__PURE__ */ jsx58(
|
|
3046
3313
|
FieldInput_default,
|
|
3047
3314
|
{
|
|
3048
3315
|
id,
|
|
@@ -3050,7 +3317,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3050
3317
|
help,
|
|
3051
3318
|
description,
|
|
3052
3319
|
validation: validationState,
|
|
3053
|
-
children: /* @__PURE__ */
|
|
3320
|
+
children: /* @__PURE__ */ jsx58(
|
|
3054
3321
|
SegmentedControl,
|
|
3055
3322
|
{
|
|
3056
3323
|
name: `${id}-segmented-control`,
|
|
@@ -3067,44 +3334,44 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3067
3334
|
)
|
|
3068
3335
|
}
|
|
3069
3336
|
),
|
|
3070
|
-
/* @__PURE__ */
|
|
3337
|
+
/* @__PURE__ */ jsx58("div", { id: `${id}-children`, children })
|
|
3071
3338
|
] });
|
|
3072
3339
|
}
|
|
3073
3340
|
var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
|
|
3074
3341
|
|
|
3075
3342
|
// ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
|
|
3076
|
-
import { jsx as
|
|
3343
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
3077
3344
|
var SelectInputRenderer = {
|
|
3078
3345
|
canRenderType: "input-select",
|
|
3079
3346
|
render: (props) => {
|
|
3080
3347
|
switch (props.control) {
|
|
3081
3348
|
case "radio":
|
|
3082
|
-
return /* @__PURE__ */
|
|
3349
|
+
return /* @__PURE__ */ jsx59(RadioInputRendererComponent, __spreadValues({}, props));
|
|
3083
3350
|
case "tab":
|
|
3084
|
-
return props.options.length > 3 ? /* @__PURE__ */
|
|
3351
|
+
return props.options.length > 3 ? /* @__PURE__ */ jsx59(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx59(TabInputRendererComponent, __spreadValues({}, props));
|
|
3085
3352
|
case "segmented":
|
|
3086
|
-
return props.options.length > 3 ? /* @__PURE__ */
|
|
3353
|
+
return props.options.length > 3 ? /* @__PURE__ */ jsx59(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx59(SegmentedInputRendererComponent, __spreadValues({}, props));
|
|
3087
3354
|
case "select":
|
|
3088
3355
|
default:
|
|
3089
|
-
return /* @__PURE__ */
|
|
3356
|
+
return /* @__PURE__ */ jsx59(SelectInputRendererComponent, __spreadValues({}, props));
|
|
3090
3357
|
}
|
|
3091
3358
|
}
|
|
3092
3359
|
};
|
|
3093
3360
|
var SelectInputRenderer_default = SelectInputRenderer;
|
|
3094
3361
|
|
|
3095
3362
|
// ../renderers/src/StatusListRenderer.tsx
|
|
3096
|
-
import { Header as
|
|
3097
|
-
import { jsx as
|
|
3363
|
+
import { Header as Header9, Summary } from "@transferwise/components";
|
|
3364
|
+
import { jsx as jsx60, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3098
3365
|
var StatusListRenderer = {
|
|
3099
3366
|
canRenderType: "status-list",
|
|
3100
|
-
render: ({ margin, items, title }) => /* @__PURE__ */
|
|
3101
|
-
title ? /* @__PURE__ */
|
|
3102
|
-
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */
|
|
3367
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs22("div", { className: getMargin(margin), children: [
|
|
3368
|
+
title ? /* @__PURE__ */ jsx60(Header9, { title, className: "m-b-2" }) : null,
|
|
3369
|
+
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx60(
|
|
3103
3370
|
Summary,
|
|
3104
3371
|
{
|
|
3105
3372
|
title: itemTitle,
|
|
3106
3373
|
description,
|
|
3107
|
-
icon: icon && "name" in icon ? /* @__PURE__ */
|
|
3374
|
+
icon: icon && "name" in icon ? /* @__PURE__ */ jsx60(DynamicIcon_default, { name: icon.name }) : null,
|
|
3108
3375
|
status: mapStatus(status),
|
|
3109
3376
|
action: getSummaryAction(callToAction)
|
|
3110
3377
|
},
|
|
@@ -3158,9 +3425,9 @@ var useCustomTheme = (theme, trackEvent) => {
|
|
|
3158
3425
|
// ../renderers/src/step/BackButton.tsx
|
|
3159
3426
|
import { AvatarView as AvatarView5 } from "@transferwise/components";
|
|
3160
3427
|
import { ArrowLeft } from "@transferwise/icons";
|
|
3161
|
-
import { jsx as
|
|
3428
|
+
import { jsx as jsx61, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3162
3429
|
function BackButton({ title, onClick }) {
|
|
3163
|
-
return /* @__PURE__ */
|
|
3430
|
+
return /* @__PURE__ */ jsx61("div", { className: "m-b-2", children: /* @__PURE__ */ jsxs23(
|
|
3164
3431
|
"button",
|
|
3165
3432
|
{
|
|
3166
3433
|
type: "button",
|
|
@@ -3169,8 +3436,8 @@ function BackButton({ title, onClick }) {
|
|
|
3169
3436
|
"aria-label": title,
|
|
3170
3437
|
onClick,
|
|
3171
3438
|
children: [
|
|
3172
|
-
/* @__PURE__ */
|
|
3173
|
-
/* @__PURE__ */
|
|
3439
|
+
/* @__PURE__ */ jsx61("span", { className: "sr-only", children: title }),
|
|
3440
|
+
/* @__PURE__ */ jsx61(AvatarView5, { interactive: true, children: /* @__PURE__ */ jsx61(ArrowLeft, { size: "24" }) })
|
|
3174
3441
|
]
|
|
3175
3442
|
}
|
|
3176
3443
|
) });
|
|
@@ -3178,7 +3445,7 @@ function BackButton({ title, onClick }) {
|
|
|
3178
3445
|
var BackButton_default = BackButton;
|
|
3179
3446
|
|
|
3180
3447
|
// ../renderers/src/step/SplashCelebrationStepRenderer.tsx
|
|
3181
|
-
import { jsx as
|
|
3448
|
+
import { jsx as jsx62, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3182
3449
|
var SplashCelebrationStepRenderer = {
|
|
3183
3450
|
canRenderType: "step",
|
|
3184
3451
|
canRender: ({ control }) => control === "splash-celebration",
|
|
@@ -3187,14 +3454,14 @@ var SplashCelebrationStepRenderer = {
|
|
|
3187
3454
|
function SplashCelebrationStepRendererComponent(props) {
|
|
3188
3455
|
const { back, children, trackEvent } = props;
|
|
3189
3456
|
useCustomTheme("forest-green", trackEvent);
|
|
3190
|
-
return /* @__PURE__ */
|
|
3191
|
-
back ? /* @__PURE__ */
|
|
3457
|
+
return /* @__PURE__ */ jsxs24("div", { className: "splash-screen m-t-5", children: [
|
|
3458
|
+
back ? /* @__PURE__ */ jsx62(BackButton_default, __spreadValues({}, back)) : null,
|
|
3192
3459
|
children
|
|
3193
3460
|
] });
|
|
3194
3461
|
}
|
|
3195
3462
|
|
|
3196
3463
|
// ../renderers/src/step/SplashStepRenderer.tsx
|
|
3197
|
-
import { jsx as
|
|
3464
|
+
import { jsx as jsx63, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3198
3465
|
var SplashStepRenderer = {
|
|
3199
3466
|
canRenderType: "step",
|
|
3200
3467
|
canRender: ({ control }) => control === "splash",
|
|
@@ -3202,55 +3469,55 @@ var SplashStepRenderer = {
|
|
|
3202
3469
|
};
|
|
3203
3470
|
function SplashStepRendererComponent(props) {
|
|
3204
3471
|
const { back, children } = props;
|
|
3205
|
-
return /* @__PURE__ */
|
|
3206
|
-
back ? /* @__PURE__ */
|
|
3472
|
+
return /* @__PURE__ */ jsxs25("div", { className: "splash-screen m-t-5", children: [
|
|
3473
|
+
back ? /* @__PURE__ */ jsx63(BackButton_default, __spreadValues({}, back)) : null,
|
|
3207
3474
|
children
|
|
3208
3475
|
] });
|
|
3209
3476
|
}
|
|
3210
3477
|
|
|
3211
3478
|
// ../renderers/src/step/StepRenderer.tsx
|
|
3212
3479
|
import { Alert as Alert2, Title as Title2 } from "@transferwise/components";
|
|
3213
|
-
import { Fragment as
|
|
3480
|
+
import { Fragment as Fragment11, jsx as jsx64, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3214
3481
|
var StepRenderer = {
|
|
3215
3482
|
canRenderType: "step",
|
|
3216
3483
|
render: StepRendererComponent
|
|
3217
3484
|
};
|
|
3218
3485
|
function StepRendererComponent(props) {
|
|
3219
3486
|
const { back, description, error, title, children } = props;
|
|
3220
|
-
return /* @__PURE__ */
|
|
3221
|
-
back ? /* @__PURE__ */
|
|
3222
|
-
title || description ? /* @__PURE__ */
|
|
3223
|
-
title ? /* @__PURE__ */
|
|
3224
|
-
description ? /* @__PURE__ */
|
|
3487
|
+
return /* @__PURE__ */ jsxs26(Fragment11, { children: [
|
|
3488
|
+
back ? /* @__PURE__ */ jsx64(BackButton_default, __spreadValues({}, back)) : null,
|
|
3489
|
+
title || description ? /* @__PURE__ */ jsxs26("div", { className: "m-b-4", children: [
|
|
3490
|
+
title ? /* @__PURE__ */ jsx64(Title2, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
|
|
3491
|
+
description ? /* @__PURE__ */ jsx64("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
3225
3492
|
] }) : void 0,
|
|
3226
|
-
error ? /* @__PURE__ */
|
|
3493
|
+
error ? /* @__PURE__ */ jsx64(Alert2, { type: "negative", className: "m-b-2", message: error }) : void 0,
|
|
3227
3494
|
children
|
|
3228
3495
|
] });
|
|
3229
3496
|
}
|
|
3230
3497
|
|
|
3231
3498
|
// ../renderers/src/TabsRenderer.tsx
|
|
3232
3499
|
import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
|
|
3233
|
-
import { useState as
|
|
3234
|
-
import { jsx as
|
|
3500
|
+
import { useState as useState10 } from "react";
|
|
3501
|
+
import { jsx as jsx65, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3235
3502
|
var TabsRenderer = {
|
|
3236
3503
|
canRenderType: "tabs",
|
|
3237
3504
|
render: (props) => {
|
|
3238
3505
|
switch (props.control) {
|
|
3239
3506
|
case "segmented":
|
|
3240
3507
|
if (props.tabs.length > 3) {
|
|
3241
|
-
return /* @__PURE__ */
|
|
3508
|
+
return /* @__PURE__ */ jsx65(TabsRendererComponent, __spreadValues({}, props));
|
|
3242
3509
|
}
|
|
3243
|
-
return /* @__PURE__ */
|
|
3510
|
+
return /* @__PURE__ */ jsx65(SegmentedTabsRendererComponent, __spreadValues({}, props));
|
|
3244
3511
|
case "chips":
|
|
3245
|
-
return /* @__PURE__ */
|
|
3512
|
+
return /* @__PURE__ */ jsx65(ChipsTabsRendererComponent, __spreadValues({}, props));
|
|
3246
3513
|
default:
|
|
3247
|
-
return /* @__PURE__ */
|
|
3514
|
+
return /* @__PURE__ */ jsx65(TabsRendererComponent, __spreadValues({}, props));
|
|
3248
3515
|
}
|
|
3249
3516
|
}
|
|
3250
3517
|
};
|
|
3251
3518
|
function TabsRendererComponent({ uid, margin, tabs }) {
|
|
3252
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3253
|
-
return /* @__PURE__ */
|
|
3519
|
+
const [selectedIndex, setSelectedIndex] = useState10(0);
|
|
3520
|
+
return /* @__PURE__ */ jsx65("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx65(
|
|
3254
3521
|
Tabs2,
|
|
3255
3522
|
{
|
|
3256
3523
|
name: uid,
|
|
@@ -3258,7 +3525,7 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3258
3525
|
tabs: tabs.map((option) => ({
|
|
3259
3526
|
title: option.title,
|
|
3260
3527
|
disabled: false,
|
|
3261
|
-
content: /* @__PURE__ */
|
|
3528
|
+
content: /* @__PURE__ */ jsxs27("div", { className: "m-t-2", children: [
|
|
3262
3529
|
" ",
|
|
3263
3530
|
option.children,
|
|
3264
3531
|
" "
|
|
@@ -3270,9 +3537,9 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3270
3537
|
}
|
|
3271
3538
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
3272
3539
|
var _a;
|
|
3273
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3274
|
-
return /* @__PURE__ */
|
|
3275
|
-
/* @__PURE__ */
|
|
3540
|
+
const [selectedIndex, setSelectedIndex] = useState10(0);
|
|
3541
|
+
return /* @__PURE__ */ jsxs27("div", { className: getMargin(margin), children: [
|
|
3542
|
+
/* @__PURE__ */ jsx65(
|
|
3276
3543
|
SegmentedControl2,
|
|
3277
3544
|
{
|
|
3278
3545
|
name: uid,
|
|
@@ -3287,14 +3554,14 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3287
3554
|
onChange: (value) => setSelectedIndex(Number(value))
|
|
3288
3555
|
}
|
|
3289
3556
|
),
|
|
3290
|
-
/* @__PURE__ */
|
|
3557
|
+
/* @__PURE__ */ jsx65("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3291
3558
|
] });
|
|
3292
3559
|
}
|
|
3293
3560
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
3294
3561
|
var _a;
|
|
3295
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3296
|
-
return /* @__PURE__ */
|
|
3297
|
-
/* @__PURE__ */
|
|
3562
|
+
const [selectedIndex, setSelectedIndex] = useState10(0);
|
|
3563
|
+
return /* @__PURE__ */ jsxs27("div", { className: getMargin(margin), children: [
|
|
3564
|
+
/* @__PURE__ */ jsx65("div", { className: "chips-container", children: /* @__PURE__ */ jsx65(
|
|
3298
3565
|
Chips,
|
|
3299
3566
|
{
|
|
3300
3567
|
chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
|
|
@@ -3302,7 +3569,7 @@ function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
|
3302
3569
|
onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
|
|
3303
3570
|
}
|
|
3304
3571
|
) }),
|
|
3305
|
-
/* @__PURE__ */
|
|
3572
|
+
/* @__PURE__ */ jsx65("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3306
3573
|
] });
|
|
3307
3574
|
}
|
|
3308
3575
|
|
|
@@ -3317,7 +3584,7 @@ import {
|
|
|
3317
3584
|
TextArea,
|
|
3318
3585
|
TextareaWithDisplayFormat
|
|
3319
3586
|
} from "@transferwise/components";
|
|
3320
|
-
import { jsx as
|
|
3587
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
3321
3588
|
var commonKeys = [
|
|
3322
3589
|
"autoComplete",
|
|
3323
3590
|
"autoCapitalize",
|
|
@@ -3336,12 +3603,12 @@ function VariableTextInput(inputProps) {
|
|
|
3336
3603
|
const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
|
|
3337
3604
|
switch (control) {
|
|
3338
3605
|
case "email":
|
|
3339
|
-
return /* @__PURE__ */
|
|
3606
|
+
return /* @__PURE__ */ jsx66(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
|
|
3340
3607
|
case "password":
|
|
3341
|
-
return /* @__PURE__ */
|
|
3608
|
+
return /* @__PURE__ */ jsx66(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
|
|
3342
3609
|
case "numeric": {
|
|
3343
3610
|
const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
|
|
3344
|
-
return /* @__PURE__ */
|
|
3611
|
+
return /* @__PURE__ */ jsx66(
|
|
3345
3612
|
TextInput,
|
|
3346
3613
|
__spreadProps(__spreadValues({}, numericProps), {
|
|
3347
3614
|
onChange: (newValue) => {
|
|
@@ -3352,9 +3619,9 @@ function VariableTextInput(inputProps) {
|
|
|
3352
3619
|
);
|
|
3353
3620
|
}
|
|
3354
3621
|
case "phone-number":
|
|
3355
|
-
return /* @__PURE__ */
|
|
3622
|
+
return /* @__PURE__ */ jsx66(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
|
|
3356
3623
|
default: {
|
|
3357
|
-
return /* @__PURE__ */
|
|
3624
|
+
return /* @__PURE__ */ jsx66(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
|
|
3358
3625
|
}
|
|
3359
3626
|
}
|
|
3360
3627
|
}
|
|
@@ -3362,11 +3629,11 @@ function TextInput(props) {
|
|
|
3362
3629
|
const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
|
|
3363
3630
|
const InputWithPattern = control === "textarea" ? TextareaWithDisplayFormat : InputWithDisplayFormat;
|
|
3364
3631
|
const InputWithoutPattern = control === "textarea" ? TextArea : Input5;
|
|
3365
|
-
return displayFormat ? /* @__PURE__ */
|
|
3632
|
+
return displayFormat ? /* @__PURE__ */ jsx66(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx66(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
|
|
3366
3633
|
}
|
|
3367
3634
|
|
|
3368
3635
|
// ../renderers/src/TextInputRenderer.tsx
|
|
3369
|
-
import { jsx as
|
|
3636
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
3370
3637
|
var TextInputRenderer = {
|
|
3371
3638
|
canRenderType: "input-text",
|
|
3372
3639
|
render: (props) => {
|
|
@@ -3399,7 +3666,7 @@ var TextInputRenderer = {
|
|
|
3399
3666
|
}
|
|
3400
3667
|
}
|
|
3401
3668
|
});
|
|
3402
|
-
return /* @__PURE__ */
|
|
3669
|
+
return /* @__PURE__ */ jsx67(
|
|
3403
3670
|
FieldInput_default,
|
|
3404
3671
|
{
|
|
3405
3672
|
id,
|
|
@@ -3407,7 +3674,7 @@ var TextInputRenderer = {
|
|
|
3407
3674
|
description,
|
|
3408
3675
|
validation: validationState,
|
|
3409
3676
|
help,
|
|
3410
|
-
children: /* @__PURE__ */
|
|
3677
|
+
children: /* @__PURE__ */ jsx67(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx67(VariableTextInput, __spreadValues({}, inputProps)) })
|
|
3411
3678
|
}
|
|
3412
3679
|
);
|
|
3413
3680
|
}
|
|
@@ -3421,7 +3688,7 @@ import { Upload, UploadInput as UploadInput2 } from "@transferwise/components";
|
|
|
3421
3688
|
var getRandomId = () => Math.random().toString(36).substring(2);
|
|
3422
3689
|
|
|
3423
3690
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3424
|
-
import { jsx as
|
|
3691
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
3425
3692
|
var UploadInputRenderer = {
|
|
3426
3693
|
canRenderType: "input-upload",
|
|
3427
3694
|
render: (props) => {
|
|
@@ -3437,14 +3704,14 @@ var UploadInputRenderer = {
|
|
|
3437
3704
|
};
|
|
3438
3705
|
return (
|
|
3439
3706
|
// We don't pass help here as there is no sensible place to display it
|
|
3440
|
-
/* @__PURE__ */
|
|
3707
|
+
/* @__PURE__ */ jsx68(
|
|
3441
3708
|
UploadFieldInput_default,
|
|
3442
3709
|
{
|
|
3443
3710
|
id,
|
|
3444
3711
|
label: void 0,
|
|
3445
3712
|
description: void 0,
|
|
3446
3713
|
validation: validationState,
|
|
3447
|
-
children: /* @__PURE__ */
|
|
3714
|
+
children: /* @__PURE__ */ jsx68(
|
|
3448
3715
|
UploadInput2,
|
|
3449
3716
|
{
|
|
3450
3717
|
id,
|
|
@@ -3503,7 +3770,7 @@ var LargeUploadRenderer = {
|
|
|
3503
3770
|
};
|
|
3504
3771
|
const filetypes = acceptsToFileTypes(accepts);
|
|
3505
3772
|
const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
|
|
3506
|
-
return /* @__PURE__ */
|
|
3773
|
+
return /* @__PURE__ */ jsx68(
|
|
3507
3774
|
FieldInput_default,
|
|
3508
3775
|
{
|
|
3509
3776
|
id,
|
|
@@ -3511,7 +3778,7 @@ var LargeUploadRenderer = {
|
|
|
3511
3778
|
description,
|
|
3512
3779
|
validation: validationState,
|
|
3513
3780
|
help,
|
|
3514
|
-
children: /* @__PURE__ */
|
|
3781
|
+
children: /* @__PURE__ */ jsx68(
|
|
3515
3782
|
Upload,
|
|
3516
3783
|
__spreadProps(__spreadValues({}, uploadProps), {
|
|
3517
3784
|
usAccept,
|
|
@@ -3571,7 +3838,7 @@ var getWiseRenderers = () => [
|
|
|
3571
3838
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
3572
3839
|
var appVersion = (
|
|
3573
3840
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
3574
|
-
typeof process !== "undefined" ? "4.
|
|
3841
|
+
typeof process !== "undefined" ? "4.22.0" : "0.0.0"
|
|
3575
3842
|
);
|
|
3576
3843
|
|
|
3577
3844
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -3611,8 +3878,8 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
|
|
|
3611
3878
|
};
|
|
3612
3879
|
|
|
3613
3880
|
// src/dynamicFlow/messages.ts
|
|
3614
|
-
import { defineMessages as
|
|
3615
|
-
var messages_default =
|
|
3881
|
+
import { defineMessages as defineMessages10 } from "react-intl";
|
|
3882
|
+
var messages_default = defineMessages10({
|
|
3616
3883
|
copied: {
|
|
3617
3884
|
id: "df.wise.CopyFeedback.copy",
|
|
3618
3885
|
defaultMessage: "Copied to clipboard",
|
|
@@ -3626,12 +3893,12 @@ var messages_default = defineMessages9({
|
|
|
3626
3893
|
});
|
|
3627
3894
|
|
|
3628
3895
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
3629
|
-
import { jsx as
|
|
3896
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
3630
3897
|
var wiseRenderers = getWiseRenderers();
|
|
3631
3898
|
function DynamicFlowLegacy(props) {
|
|
3632
3899
|
const { customFetch = globalThis.fetch } = props;
|
|
3633
3900
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
3634
|
-
return /* @__PURE__ */
|
|
3901
|
+
return /* @__PURE__ */ jsx69(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
|
|
3635
3902
|
}
|
|
3636
3903
|
function DynamicFlowRevamp(props) {
|
|
3637
3904
|
const {
|
|
@@ -3644,7 +3911,7 @@ function DynamicFlowRevamp(props) {
|
|
|
3644
3911
|
onLink = openLinkInNewTab,
|
|
3645
3912
|
onThemeChange
|
|
3646
3913
|
} = props;
|
|
3647
|
-
const { formatMessage } =
|
|
3914
|
+
const { formatMessage } = useIntl12();
|
|
3648
3915
|
const createSnackBar = useSnackBarIfAvailable();
|
|
3649
3916
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3650
3917
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
@@ -3668,7 +3935,7 @@ function DynamicFlowRevamp(props) {
|
|
|
3668
3935
|
onLink,
|
|
3669
3936
|
onCopy
|
|
3670
3937
|
});
|
|
3671
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsx69("div", { className, children: /* @__PURE__ */ jsx69(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
|
|
3672
3939
|
}
|
|
3673
3940
|
var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
3674
3941
|
const {
|
|
@@ -3681,7 +3948,7 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
3681
3948
|
onLink = openLinkInNewTab,
|
|
3682
3949
|
onThemeChange
|
|
3683
3950
|
} = props;
|
|
3684
|
-
const { formatMessage } =
|
|
3951
|
+
const { formatMessage } = useIntl12();
|
|
3685
3952
|
const createSnackBar = useSnackBarIfAvailable();
|
|
3686
3953
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3687
3954
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
@@ -3705,10 +3972,10 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
3705
3972
|
onLink,
|
|
3706
3973
|
onCopy
|
|
3707
3974
|
});
|
|
3708
|
-
return /* @__PURE__ */
|
|
3975
|
+
return /* @__PURE__ */ jsx69("div", { className, children: /* @__PURE__ */ jsx69(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
|
|
3709
3976
|
});
|
|
3710
3977
|
var useWiseHttpClient = (httpClient) => {
|
|
3711
|
-
const { locale } =
|
|
3978
|
+
const { locale } = useIntl12();
|
|
3712
3979
|
return useCallback(
|
|
3713
3980
|
async (input, init = {}) => {
|
|
3714
3981
|
const headers = new Headers(init.headers);
|