@wise/dynamic-flow-client-internal 4.21.0 → 4.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.js CHANGED
@@ -83,7 +83,7 @@ var cs_default = {
83
83
  "df.wise.ArraySchema.maxItemsError": "P\u0159idejte {maxItems} nebo m\xE9n\u011B.",
84
84
  "df.wise.ArraySchema.minItemsError": "P\u0159idejte alespo\u0148 {minItems}.",
85
85
  "df.wise.ArraySchema.removeItem": "Odebrat",
86
- "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
86
+ "df.wise.ButtonLayout.buttonLoadingMessage": "M\u016F\u017Ee to trvat p\xE1r sekund",
87
87
  "df.wise.ControlFeedback.maxLength": "Zadejte {maxLength} nebo m\xE9n\u011B znak\u016F.",
88
88
  "df.wise.ControlFeedback.maximum": "Zadejte \u010D\xEDslo, kter\xE9 je {maximum} nebo men\u0161\xED.",
89
89
  "df.wise.ControlFeedback.maximumDate": "Zadejte datum, kter\xE9 je {maximum} nebo p\u0159edt\xEDm.",
@@ -96,6 +96,12 @@ var cs_default = {
96
96
  "df.wise.ControlFeedback.type": "Nespr\xE1vn\xFD typ",
97
97
  "df.wise.CopyFeedback.copy": "Zkop\xEDrov\xE1no do schr\xE1nky",
98
98
  "df.wise.CopyFeedback.copyFailed": "Kop\xEDrov\xE1n\xED do schr\xE1nky se nezda\u0159ilo",
99
+ "df.wise.Decision.all": "V\u0161e",
100
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
101
+ "df.wise.Decision.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
102
+ "df.wise.Decision.popular": "Popul\xE1rn\xED",
103
+ "df.wise.Decision.recent": "Ned\xE1vn\xE9",
104
+ "df.wise.Decision.results": "V\xFDsledky hled\xE1n\xED",
99
105
  "df.wise.DynamicParagraph.copied": "Zkop\xEDrov\xE1no do schr\xE1nky",
100
106
  "df.wise.DynamicParagraph.copy": "Kop\xEDrovat",
101
107
  "df.wise.ErrorBoundary.errorAlert": "N\u011Bco se pokazilo.",
@@ -134,6 +140,12 @@ var de_default = {
134
140
  "df.wise.ControlFeedback.type": "Falscher Typ",
135
141
  "df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
136
142
  "df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
143
+ "df.wise.Decision.all": "Alle",
144
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
145
+ "df.wise.Decision.noResults": "Keine Ergebnisse",
146
+ "df.wise.Decision.popular": "Beliebt",
147
+ "df.wise.Decision.recent": "Neu",
148
+ "df.wise.Decision.results": "Suchergebnisse",
137
149
  "df.wise.DynamicParagraph.copied": "In Zwischenablage kopiert",
138
150
  "df.wise.DynamicParagraph.copy": "Kopieren",
139
151
  "df.wise.ErrorBoundary.errorAlert": "Da ist etwas schiefgegangen.",
@@ -172,6 +184,12 @@ var en_default = {
172
184
  "df.wise.ControlFeedback.type": "Incorrect type",
173
185
  "df.wise.CopyFeedback.copy": "Copied to clipboard",
174
186
  "df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
187
+ "df.wise.Decision.all": "All",
188
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
189
+ "df.wise.Decision.noResults": "No results",
190
+ "df.wise.Decision.popular": "Popular",
191
+ "df.wise.Decision.recent": "Recent",
192
+ "df.wise.Decision.results": "Search results",
175
193
  "df.wise.DynamicParagraph.copied": "Copied to clipboard",
176
194
  "df.wise.DynamicParagraph.copy": "Copy",
177
195
  "df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
@@ -210,6 +228,12 @@ var es_default = {
210
228
  "df.wise.ControlFeedback.type": "Tipo incorrecto",
211
229
  "df.wise.CopyFeedback.copy": "Copiado al portapapeles",
212
230
  "df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
231
+ "df.wise.Decision.all": "Todas",
232
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
233
+ "df.wise.Decision.noResults": "No hay resultados",
234
+ "df.wise.Decision.popular": "Populares",
235
+ "df.wise.Decision.recent": "Recientes",
236
+ "df.wise.Decision.results": "Resultados de b\xFAsqueda",
213
237
  "df.wise.DynamicParagraph.copied": "Copiado al portapapeles",
214
238
  "df.wise.DynamicParagraph.copy": "Copiar",
215
239
  "df.wise.ErrorBoundary.errorAlert": "Ha habido un error.",
@@ -248,6 +272,12 @@ var fr_default = {
248
272
  "df.wise.ControlFeedback.type": "Type incorrect",
249
273
  "df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
250
274
  "df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
275
+ "df.wise.Decision.all": "Toutes",
276
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
277
+ "df.wise.Decision.noResults": "Aucun r\xE9sultat",
278
+ "df.wise.Decision.popular": "Populaires",
279
+ "df.wise.Decision.recent": "R\xE9cents",
280
+ "df.wise.Decision.results": "R\xE9sultats de recherche",
251
281
  "df.wise.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier",
252
282
  "df.wise.DynamicParagraph.copy": "Copier",
253
283
  "df.wise.ErrorBoundary.errorAlert": "Une erreur s'est produite.",
@@ -286,6 +316,12 @@ var hu_default = {
286
316
  "df.wise.ControlFeedback.type": "Helytelen t\xEDpus",
287
317
  "df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
288
318
  "df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
319
+ "df.wise.Decision.all": "\xD6sszes",
320
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
321
+ "df.wise.Decision.noResults": "Nincs tal\xE1lat",
322
+ "df.wise.Decision.popular": "N\xE9pszer\u0171",
323
+ "df.wise.Decision.recent": "Legut\xF3bbi",
324
+ "df.wise.Decision.results": "Keres\xE9si eredm\xE9nyek",
289
325
  "df.wise.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva",
290
326
  "df.wise.DynamicParagraph.copy": "M\xE1sol\xE1s",
291
327
  "df.wise.ErrorBoundary.errorAlert": "Valami hiba t\xF6rt\xE9nt.",
@@ -324,6 +360,12 @@ var id_default = {
324
360
  "df.wise.ControlFeedback.type": "Tipe salah",
325
361
  "df.wise.CopyFeedback.copy": "Disalin ke clipboard",
326
362
  "df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
363
+ "df.wise.Decision.all": "Semua",
364
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
365
+ "df.wise.Decision.noResults": "Tidak ada hasil",
366
+ "df.wise.Decision.popular": "Populer",
367
+ "df.wise.Decision.recent": "Terbaru",
368
+ "df.wise.Decision.results": "Hasil pencarian",
327
369
  "df.wise.DynamicParagraph.copied": "Disalin ke clipboard",
328
370
  "df.wise.DynamicParagraph.copy": "Salin",
329
371
  "df.wise.ErrorBoundary.errorAlert": "Terjadi kesalahan.",
@@ -362,6 +404,12 @@ var it_default = {
362
404
  "df.wise.ControlFeedback.type": "Tipo errato",
363
405
  "df.wise.CopyFeedback.copy": "Copiato negli appunti",
364
406
  "df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
407
+ "df.wise.Decision.all": "Tutte",
408
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
409
+ "df.wise.Decision.noResults": "Nessun risultato",
410
+ "df.wise.Decision.popular": "Popolari",
411
+ "df.wise.Decision.recent": "Recenti",
412
+ "df.wise.Decision.results": "Risultati della ricerca",
365
413
  "df.wise.DynamicParagraph.copied": "Copiato negli appunti",
366
414
  "df.wise.DynamicParagraph.copy": "Copia",
367
415
  "df.wise.ErrorBoundary.errorAlert": "Qualcosa non ha funzionato.",
@@ -400,6 +448,12 @@ var ja_default = {
400
448
  "df.wise.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7",
401
449
  "df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
402
450
  "df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
451
+ "df.wise.Decision.all": "\u3059\u3079\u3066",
452
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
453
+ "df.wise.Decision.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
454
+ "df.wise.Decision.popular": "\u4EBA\u6C17",
455
+ "df.wise.Decision.recent": "\u6700\u8FD1",
456
+ "df.wise.Decision.results": "\u691C\u7D22\u7D50\u679C",
403
457
  "df.wise.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
404
458
  "df.wise.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B",
405
459
  "df.wise.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",
@@ -438,6 +492,12 @@ var nl_default = {
438
492
  "df.wise.ControlFeedback.type": "Onjuist type",
439
493
  "df.wise.CopyFeedback.copy": "Naar klembord gekopieerd",
440
494
  "df.wise.CopyFeedback.copyFailed": "Naar klembord kopi\xEBren mislukt",
495
+ "df.wise.Decision.all": "Alles",
496
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
497
+ "df.wise.Decision.noResults": "Niks gevonden",
498
+ "df.wise.Decision.popular": "Populair",
499
+ "df.wise.Decision.recent": "Recent",
500
+ "df.wise.Decision.results": "Zoekresultaten",
441
501
  "df.wise.DynamicParagraph.copied": "Naar klembord gekopieerd",
442
502
  "df.wise.DynamicParagraph.copy": "Kopi\xEBren",
443
503
  "df.wise.ErrorBoundary.errorAlert": "Er is iets misgegaan.",
@@ -476,6 +536,12 @@ var pl_default = {
476
536
  "df.wise.ControlFeedback.type": "Nieprawid\u0142owy typ",
477
537
  "df.wise.CopyFeedback.copy": "Skopiowano do schowka",
478
538
  "df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
539
+ "df.wise.Decision.all": "Wszystkie",
540
+ "df.wise.Decision.filterPlaceholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
541
+ "df.wise.Decision.noResults": "Brak wynik\xF3w",
542
+ "df.wise.Decision.popular": "Popularne",
543
+ "df.wise.Decision.recent": "Ostatnie",
544
+ "df.wise.Decision.results": "Wyniki wyszukiwania",
479
545
  "df.wise.DynamicParagraph.copied": "Skopiowano do schowka",
480
546
  "df.wise.DynamicParagraph.copy": "Kopiuj",
481
547
  "df.wise.ErrorBoundary.errorAlert": "Co\u015B posz\u0142o nie tak.",
@@ -514,6 +580,12 @@ var pt_default = {
514
580
  "df.wise.ControlFeedback.type": "Tipo incorreto",
515
581
  "df.wise.CopyFeedback.copy": "Copiado",
516
582
  "df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
583
+ "df.wise.Decision.all": "Todos",
584
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
585
+ "df.wise.Decision.noResults": "Nenhum resultado",
586
+ "df.wise.Decision.popular": "Populares",
587
+ "df.wise.Decision.recent": "Recente",
588
+ "df.wise.Decision.results": "Resultados da busca",
517
589
  "df.wise.DynamicParagraph.copied": "Copiado",
518
590
  "df.wise.DynamicParagraph.copy": "Copiar",
519
591
  "df.wise.ErrorBoundary.errorAlert": "Algo deu errado.",
@@ -552,6 +624,12 @@ var ro_default = {
552
624
  "df.wise.ControlFeedback.type": "Tip incorect",
553
625
  "df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
554
626
  "df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
627
+ "df.wise.Decision.all": "Toate",
628
+ "df.wise.Decision.filterPlaceholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
629
+ "df.wise.Decision.noResults": "Niciun rezultat",
630
+ "df.wise.Decision.popular": "Populare",
631
+ "df.wise.Decision.recent": "Recente",
632
+ "df.wise.Decision.results": "Rezultatele c\u0103ut\u0103rii",
555
633
  "df.wise.DynamicParagraph.copied": "Copiat \xEEn clipboard",
556
634
  "df.wise.DynamicParagraph.copy": "Copiaz\u0103",
557
635
  "df.wise.ErrorBoundary.errorAlert": "Ceva nu a mers bine.",
@@ -590,6 +668,12 @@ var ru_default = {
590
668
  "df.wise.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F",
591
669
  "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",
592
670
  "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",
671
+ "df.wise.Decision.all": "\u0412\u0441\u0435",
672
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
673
+ "df.wise.Decision.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
674
+ "df.wise.Decision.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
675
+ "df.wise.Decision.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435",
676
+ "df.wise.Decision.results": "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",
593
677
  "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",
594
678
  "df.wise.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
595
679
  "df.wise.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",
@@ -615,7 +699,7 @@ var th_default = {
615
699
  "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",
616
700
  "df.wise.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}",
617
701
  "df.wise.ArraySchema.removeItem": "\u0E25\u0E1A",
618
- "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
702
+ "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",
619
703
  "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",
620
704
  "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",
621
705
  "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",
@@ -628,6 +712,12 @@ var th_default = {
628
712
  "df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
629
713
  "df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
630
714
  "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",
715
+ "df.wise.Decision.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
716
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
717
+ "df.wise.Decision.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
718
+ "df.wise.Decision.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
719
+ "df.wise.Decision.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14",
720
+ "df.wise.Decision.results": "\u0E1C\u0E25\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32",
631
721
  "df.wise.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
632
722
  "df.wise.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
633
723
  "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",
@@ -666,6 +756,12 @@ var tr_default = {
666
756
  "df.wise.ControlFeedback.type": "Ge\xE7ersiz se\xE7im",
667
757
  "df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
668
758
  "df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
759
+ "df.wise.Decision.all": "T\xFCm\xFC",
760
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
761
+ "df.wise.Decision.noResults": "Sonu\xE7 yok",
762
+ "df.wise.Decision.popular": "Pop\xFCler",
763
+ "df.wise.Decision.recent": "Yak\u0131n zamanl\u0131",
764
+ "df.wise.Decision.results": "Arama sonu\xE7lar\u0131",
669
765
  "df.wise.DynamicParagraph.copied": "Panoya kopyaland\u0131",
670
766
  "df.wise.DynamicParagraph.copy": "Kopyala",
671
767
  "df.wise.ErrorBoundary.errorAlert": "Bir sorun olu\u015Ftu.",
@@ -704,6 +800,12 @@ var zh_CN_default = {
704
800
  "df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
705
801
  "df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
706
802
  "df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
803
+ "df.wise.Decision.all": "\u5168\u90E8",
804
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
805
+ "df.wise.Decision.noResults": "\u6682\u65E0\u7ED3\u679C",
806
+ "df.wise.Decision.popular": "\u70ED\u95E8",
807
+ "df.wise.Decision.recent": "\u6700\u8FD1",
808
+ "df.wise.Decision.results": "\u641C\u7D22\u7ED3\u679C",
707
809
  "df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
708
810
  "df.wise.DynamicParagraph.copy": "\u590D\u5236",
709
811
  "df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
@@ -742,6 +844,12 @@ var zh_HK_default = {
742
844
  "df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
743
845
  "df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
744
846
  "df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
847
+ "df.wise.Decision.all": "\u5168\u90E8",
848
+ "df.wise.Decision.filterPlaceholder": "Start typing to search",
849
+ "df.wise.Decision.noResults": "\u6C92\u6709\u7D50\u679C",
850
+ "df.wise.Decision.popular": "\u71B1\u9580",
851
+ "df.wise.Decision.recent": "\u6700\u8FD1\u7684",
852
+ "df.wise.Decision.results": "\u641C\u5C0B\u7D50\u679C",
745
853
  "df.wise.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
746
854
  "df.wise.DynamicParagraph.copy": "\u8907\u88FD",
747
855
  "df.wise.ErrorBoundary.errorAlert": "\u51FA\u4E86\u4E9B\u554F\u984C\u3002",
@@ -791,13 +899,12 @@ var translations = languages.reduce(
791
899
  var i18n_default = translations;
792
900
 
793
901
  // src/dynamicFlow/DynamicFlow.tsx
794
- var import_react15 = require("react");
795
- var import_react_intl19 = require("react-intl");
902
+ var import_react18 = require("react");
903
+ var import_react_intl22 = require("react-intl");
796
904
  var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
797
905
 
798
- // ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
906
+ // ../renderers/src/AlertRenderer.tsx
799
907
  var import_components = require("@transferwise/components");
800
- var import_react_intl2 = require("react-intl");
801
908
 
802
909
  // ../renderers/src/utils/layout-utils.ts
803
910
  var getMargin = (size) => {
@@ -829,6 +936,59 @@ var getTextAlignment = (align) => {
829
936
  };
830
937
  var getTextAlignmentAndMargin = (component) => `${getTextAlignment(component.align)} ${getMargin(component.margin)}`;
831
938
 
939
+ // ../renderers/src/AlertRenderer.tsx
940
+ var import_jsx_runtime = require("react/jsx-runtime");
941
+ var AlertRenderer = {
942
+ canRenderType: "alert",
943
+ render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
944
+ import_components.Alert,
945
+ {
946
+ type: context,
947
+ className: getMargin(margin),
948
+ message: markdown,
949
+ action: mapCtaToAlertAction(callToAction)
950
+ }
951
+ )
952
+ };
953
+ var mapCtaToAlertAction = (callToAction) => {
954
+ if (callToAction) {
955
+ return __spreadValues(__spreadValues({
956
+ text: callToAction.title,
957
+ "aria-label": callToAction.accessibilityDescription
958
+ }, "onClick" in callToAction ? { onClick: callToAction.onClick } : {}), callToAction.type === "link" ? { href: callToAction.href, target: "_blank" } : {});
959
+ }
960
+ return void 0;
961
+ };
962
+ var AlertRenderer_default = AlertRenderer;
963
+
964
+ // ../renderers/src/BoxRenderer.tsx
965
+ var import_classnames = __toESM(require("classnames"));
966
+ var import_jsx_runtime2 = require("react/jsx-runtime");
967
+ var BoxRenderer = {
968
+ canRenderType: "box",
969
+ render: ({ children, control, margin, width }) => {
970
+ const hasFixedWidth = width !== "xl";
971
+ const hasBorder = control === "bordered" || control === "bordered-web";
972
+ const contents = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
973
+ "div",
974
+ {
975
+ className: (0, import_classnames.default)({
976
+ "df-box-renderer-border": hasBorder,
977
+ [`df-box-renderer-width-${width}`]: hasFixedWidth,
978
+ [getMargin(margin)]: !hasFixedWidth
979
+ }),
980
+ children
981
+ }
982
+ );
983
+ return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
984
+ }
985
+ };
986
+ var BoxRenderer_default = BoxRenderer;
987
+
988
+ // ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
989
+ var import_components2 = require("@transferwise/components");
990
+ var import_react_intl2 = require("react-intl");
991
+
832
992
  // ../renderers/src/messages/loading-button.messages.ts
833
993
  var import_react_intl = require("react-intl");
834
994
  var loading_button_messages_default = (0, import_react_intl.defineMessages)({
@@ -841,7 +1001,7 @@ var loading_button_messages_default = (0, import_react_intl.defineMessages)({
841
1001
 
842
1002
  // ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
843
1003
  var import_react = require("react");
844
- var import_jsx_runtime = require("react/jsx-runtime");
1004
+ var import_jsx_runtime3 = require("react/jsx-runtime");
845
1005
  var AddressValidationButtonRenderer = {
846
1006
  canRenderType: "button",
847
1007
  canRender: ({ control }) => control === "address-validation",
@@ -856,9 +1016,9 @@ function AddressValidationButtonComponent(props) {
856
1016
  setSpinny(false);
857
1017
  }
858
1018
  }, [stepLoadingState]);
859
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
860
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
861
- import_components.Button,
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
1020
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1021
+ import_components2.Button,
862
1022
  {
863
1023
  v2: true,
864
1024
  block: true,
@@ -873,61 +1033,11 @@ function AddressValidationButtonComponent(props) {
873
1033
  children: title
874
1034
  }
875
1035
  ),
876
- spinny && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.InlineAlert, { type: "warning", className: "m-x-auto", children: formatMessage(loading_button_messages_default.buttonLoadingMessage) })
1036
+ spinny && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_components2.InlineAlert, { type: "warning", className: "m-x-auto", children: formatMessage(loading_button_messages_default.buttonLoadingMessage) })
877
1037
  ] });
878
1038
  }
879
1039
  var AddressValidationButtonRenderer_default = AddressValidationButtonRenderer;
880
1040
 
881
- // ../renderers/src/AlertRenderer.tsx
882
- var import_components2 = require("@transferwise/components");
883
- var import_jsx_runtime2 = require("react/jsx-runtime");
884
- var AlertRenderer = {
885
- canRenderType: "alert",
886
- render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
887
- import_components2.Alert,
888
- {
889
- type: context,
890
- className: getMargin(margin),
891
- message: markdown,
892
- action: mapCtaToAlertAction(callToAction)
893
- }
894
- )
895
- };
896
- var mapCtaToAlertAction = (callToAction) => {
897
- if (callToAction) {
898
- return __spreadValues(__spreadValues({
899
- text: callToAction.title,
900
- "aria-label": callToAction.accessibilityDescription
901
- }, "onClick" in callToAction ? { onClick: callToAction.onClick } : {}), callToAction.type === "link" ? { href: callToAction.href, target: "_blank" } : {});
902
- }
903
- return void 0;
904
- };
905
- var AlertRenderer_default = AlertRenderer;
906
-
907
- // ../renderers/src/BoxRenderer.tsx
908
- var import_classnames = __toESM(require("classnames"));
909
- var import_jsx_runtime3 = require("react/jsx-runtime");
910
- var BoxRenderer = {
911
- canRenderType: "box",
912
- render: ({ children, control, margin, width }) => {
913
- const hasFixedWidth = width !== "xl";
914
- const hasBorder = control === "bordered" || control === "bordered-web";
915
- const contents = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
916
- "div",
917
- {
918
- className: (0, import_classnames.default)({
919
- "df-box-renderer-border": hasBorder,
920
- [`df-box-renderer-width-${width}`]: hasFixedWidth,
921
- [getMargin(margin)]: !hasFixedWidth
922
- }),
923
- children
924
- }
925
- );
926
- return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
927
- }
928
- };
929
- var BoxRenderer_default = BoxRenderer;
930
-
931
1041
  // ../renderers/src/ButtonRenderer/ButtonRenderer.tsx
932
1042
  var import_components3 = require("@transferwise/components");
933
1043
  var import_react2 = require("react");
@@ -1240,7 +1350,87 @@ var DateInputRenderer = {
1240
1350
  };
1241
1351
  var DateInputRenderer_default = DateInputRenderer;
1242
1352
 
1243
- // ../renderers/src/DecisionRenderer.tsx
1353
+ // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
1354
+ var import_components14 = require("@transferwise/components");
1355
+ var import_react_intl7 = require("react-intl");
1356
+
1357
+ // ../renderers/src/messages/decision.messages.ts
1358
+ var import_react_intl5 = require("react-intl");
1359
+ var decision_messages_default = (0, import_react_intl5.defineMessages)({
1360
+ all: {
1361
+ id: "df.wise.Decision.all",
1362
+ defaultMessage: "All",
1363
+ description: "Label for the group of options that encompasses all options"
1364
+ },
1365
+ popular: {
1366
+ id: "df.wise.Decision.popular",
1367
+ defaultMessage: "Popular",
1368
+ description: "Label for the group of options that are tagged as popular"
1369
+ },
1370
+ recent: {
1371
+ id: "df.wise.Decision.recent",
1372
+ defaultMessage: "Recent",
1373
+ description: "Label for the group of options that are tagged as recent"
1374
+ },
1375
+ filterPlaceholder: {
1376
+ id: "df.wise.Decision.filterPlaceholder",
1377
+ defaultMessage: "Start typing to search",
1378
+ description: "Placeholder for the filter input"
1379
+ },
1380
+ results: {
1381
+ id: "df.wise.Decision.results",
1382
+ defaultMessage: "Search results",
1383
+ description: "Label for the results section"
1384
+ },
1385
+ noResults: {
1386
+ id: "df.wise.Decision.noResults",
1387
+ defaultMessage: "No results",
1388
+ description: "Message for if there are no results"
1389
+ }
1390
+ });
1391
+
1392
+ // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
1393
+ var import_react3 = require("react");
1394
+
1395
+ // ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
1396
+ function filterAndSortDecisionOptions(selectOptions, query) {
1397
+ const upperQuery = query.toUpperCase().trim();
1398
+ const filteredItems = selectOptions.filter((option) => {
1399
+ var _a, _b, _c, _d;
1400
+ const searchableWords = [
1401
+ option.title,
1402
+ option.description,
1403
+ option.additionalText,
1404
+ (_a = option.supportingValues) == null ? void 0 : _a.value,
1405
+ (_b = option.supportingValues) == null ? void 0 : _b.subvalue,
1406
+ ...(_c = option.keywords) != null ? _c : []
1407
+ ];
1408
+ return (_d = searchableWords.some((word) => word == null ? void 0 : word.toUpperCase().includes(upperQuery))) != null ? _d : false;
1409
+ });
1410
+ return [...filteredItems].sort((a, b) => {
1411
+ const aTitleUpper = a.title.toUpperCase();
1412
+ const bTitleUpper = b.title.toUpperCase();
1413
+ const aTitleStarts = aTitleUpper.startsWith(upperQuery);
1414
+ const bTitleStarts = bTitleUpper.startsWith(upperQuery);
1415
+ if (aTitleStarts && !bTitleStarts) {
1416
+ return -1;
1417
+ }
1418
+ if (!aTitleStarts && bTitleStarts) {
1419
+ return 1;
1420
+ }
1421
+ const aWordStarts = aTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
1422
+ const bWordStarts = bTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
1423
+ if (aWordStarts && !bWordStarts) {
1424
+ return -1;
1425
+ }
1426
+ if (!aWordStarts && bWordStarts) {
1427
+ return 1;
1428
+ }
1429
+ return a.title.localeCompare(b.title);
1430
+ });
1431
+ }
1432
+
1433
+ // ../renderers/src/DecisionRenderer/DecisionList.tsx
1244
1434
  var import_components12 = require("@transferwise/components");
1245
1435
 
1246
1436
  // ../renderers/src/utils/UrnFlag.tsx
@@ -1329,9 +1519,10 @@ var resolveUri = (uri, size) => {
1329
1519
  var _a, _b;
1330
1520
  const { name, qComponents = [] } = stringToURN(uri);
1331
1521
  if (isValidIconUrn(name)) {
1522
+ const icon = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DynamicIcon_default, { name: name.replace("urn:wise:icons:", "") });
1332
1523
  return {
1333
- asset: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DynamicIcon_default, { name: name.replace("urn:wise:icons:", "") }),
1334
- backgroundColor: (_a = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _a[1]
1524
+ icon,
1525
+ backgroundColor: formatColor((_a = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _a[1])
1335
1526
  };
1336
1527
  }
1337
1528
  if (isUrnFlag(name)) {
@@ -1343,7 +1534,7 @@ var resolveUri = (uri, size) => {
1343
1534
  const text = decodeURI(name.replace("data:text/plain,", ""));
1344
1535
  return {
1345
1536
  asset: text,
1346
- backgroundColor: (_b = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _b[1]
1537
+ backgroundColor: formatColor((_b = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _b[1])
1347
1538
  };
1348
1539
  }
1349
1540
  if (!uri.startsWith("urn:")) {
@@ -1351,6 +1542,15 @@ var resolveUri = (uri, size) => {
1351
1542
  }
1352
1543
  return { asset: void 0 };
1353
1544
  };
1545
+ var formatColor = (color) => {
1546
+ if (!color) {
1547
+ return void 0;
1548
+ }
1549
+ if (color.startsWith("#")) {
1550
+ return color;
1551
+ }
1552
+ return `var(--color-${color.replace(/^base-|brand-/, "")})`;
1553
+ };
1354
1554
 
1355
1555
  // ../renderers/src/components/Media/AvatarMedia.tsx
1356
1556
  var import_components8 = require("@transferwise/components");
@@ -1365,24 +1565,29 @@ var AvatarMedia = ({
1365
1565
  return { asset: avatar.text };
1366
1566
  }
1367
1567
  return __spreadProps(__spreadValues({}, resolveUri(avatar.uri, size)), {
1368
- badge: avatar.badgeUri ? resolveUri(avatar.badgeUri, 16).asset : void 0
1568
+ badge: avatar.badgeUri ? resolveUri(avatar.badgeUri, 16) : void 0
1369
1569
  });
1370
1570
  };
1371
1571
  const avatars = content.map(getRenderableAvatar);
1372
1572
  if (avatars.length === 1) {
1373
- const { badge, backgroundColor, asset } = avatars[0];
1573
+ const { badge, backgroundColor, asset, icon } = avatars[0];
1574
+ if (!asset && !icon) {
1575
+ return null;
1576
+ }
1374
1577
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1375
1578
  import_components8.AvatarView,
1376
1579
  {
1377
1580
  "aria-label": accessibilityDescription,
1378
1581
  size,
1379
- badge: { asset: badge },
1582
+ badge: badge ? __spreadProps(__spreadValues({}, badge), {
1583
+ type: "reference"
1584
+ }) : void 0,
1380
1585
  style: { backgroundColor },
1381
- children: asset
1586
+ children: icon != null ? icon : asset
1382
1587
  }
1383
1588
  );
1384
1589
  }
1385
- const avatarsWithoutBadges = avatars.map((_a) => {
1590
+ const avatarsWithoutBadges = avatars.filter(({ asset }) => asset).slice(0, 2).map((_a) => {
1386
1591
  var _b = _a, { badge } = _b, rest = __objRest(_b, ["badge"]);
1387
1592
  return __spreadValues({}, rest);
1388
1593
  });
@@ -1403,7 +1608,7 @@ var import_jsx_runtime18 = require("react/jsx-runtime");
1403
1608
  var getBadgedMedia = (iconNode, imageNode, size) => {
1404
1609
  if (iconNode && imageNode) {
1405
1610
  if (imageNode && iconNode) {
1406
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components9.AvatarView, { size, badge: { asset: iconNode }, children: imageNode });
1611
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components9.AvatarView, { size, badge: { asset: iconNode, type: "reference" }, children: imageNode });
1407
1612
  }
1408
1613
  }
1409
1614
  return null;
@@ -1490,52 +1695,131 @@ function OptionMedia(props) {
1490
1695
  var import_jsx_runtime22 = require("react/jsx-runtime");
1491
1696
  var getInlineMedia = (media) => media ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Media, { media, preferAvatar: false, size: 24 }) : null;
1492
1697
 
1493
- // ../renderers/src/DecisionRenderer.tsx
1698
+ // ../renderers/src/DecisionRenderer/DecisionList.tsx
1494
1699
  var import_jsx_runtime23 = require("react/jsx-runtime");
1700
+ var DecisionList = ({
1701
+ options,
1702
+ control,
1703
+ className
1704
+ }) => {
1705
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.NavigationOptionsList, { children: options.map((option) => {
1706
+ const { description, disabled, media, title: itemTitle, tag, onClick } = option;
1707
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1708
+ import_components12.NavigationOption,
1709
+ {
1710
+ title: itemTitle,
1711
+ content: description,
1712
+ disabled,
1713
+ media: media ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1714
+ OptionMedia,
1715
+ {
1716
+ media,
1717
+ preferAvatar: control === "with-avatar" || tag === "with-avatar"
1718
+ }
1719
+ ) : null,
1720
+ showMediaCircle: false,
1721
+ showMediaAtAllSizes: true,
1722
+ onClick
1723
+ },
1724
+ JSON.stringify(option)
1725
+ );
1726
+ }) }) });
1727
+ };
1728
+ var DecisionList_default = DecisionList;
1729
+
1730
+ // ../renderers/src/DecisionRenderer/GroupedList.tsx
1731
+ var import_components13 = require("@transferwise/components");
1732
+ var import_react_intl6 = require("react-intl");
1733
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1734
+ var OPTION_GROUPS = {
1735
+ popular: "popular",
1736
+ recent: "recent"
1737
+ };
1738
+ var GroupedList = ({
1739
+ options,
1740
+ control
1741
+ }) => {
1742
+ const { formatMessage } = (0, import_react_intl6.useIntl)();
1743
+ const popularOptions = options.filter((option) => option.tag === OPTION_GROUPS.popular);
1744
+ const recentOptions = options.filter((option) => option.tag === OPTION_GROUPS.recent);
1745
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1746
+ popularOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components13.Section, { children: [
1747
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
1748
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DecisionList_default, { options: popularOptions, control })
1749
+ ] }) : null,
1750
+ recentOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components13.Section, { children: [
1751
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
1752
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DecisionList_default, { options: recentOptions, control })
1753
+ ] }) : null,
1754
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components13.Section, { children: [
1755
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
1756
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DecisionList_default, { options, control })
1757
+ ] })
1758
+ ] });
1759
+ };
1760
+ var isGroupedDecision = (options) => {
1761
+ const possibleGroups = Object.values(OPTION_GROUPS);
1762
+ return options.some(({ tag }) => tag && possibleGroups.includes(tag));
1763
+ };
1764
+
1765
+ // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
1766
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1495
1767
  var DecisionRenderer = {
1496
1768
  canRenderType: "decision",
1497
- render: ({ control, margin, options, title }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getMargin(margin), children: [
1498
- title && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.Header, { as: "h2", title }),
1499
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.NavigationOptionsList, { children: options.map((option) => {
1500
- const { description, disabled, media, title: itemTitle, tag, onClick } = option;
1501
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1502
- import_components12.NavigationOption,
1769
+ render: (props) => {
1770
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getMargin(props.margin), children: [
1771
+ props.title && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components14.Header, { as: "h2", title: props.title }),
1772
+ props.control === "filtered" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UnfilteredDecisionList, __spreadValues({}, props))
1773
+ ] });
1774
+ }
1775
+ };
1776
+ var UnfilteredDecisionList = ({ control, options }) => isGroupedDecision(options) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedList, { options, control }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DecisionList_default, { options, control });
1777
+ var FilteredDecisionList = ({ options, control }) => {
1778
+ const { formatMessage } = (0, import_react_intl7.useIntl)();
1779
+ const [query, setQuery] = (0, import_react3.useState)("");
1780
+ const filteredOptions = filterAndSortDecisionOptions(options, query);
1781
+ const isGrouped = isGroupedDecision(options);
1782
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1783
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1784
+ import_components14.SearchInput,
1785
+ {
1786
+ placeholder: formatMessage(decision_messages_default.filterPlaceholder),
1787
+ value: query,
1788
+ onChange: (e) => {
1789
+ var _a;
1790
+ return setQuery((_a = e.target.value) != null ? _a : "");
1791
+ }
1792
+ }
1793
+ ),
1794
+ isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedList, { options, control }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1795
+ query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components14.Header, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
1796
+ filteredOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1797
+ DecisionList_default,
1503
1798
  {
1504
- title: itemTitle,
1505
- content: description,
1506
- disabled,
1507
- media: media ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1508
- OptionMedia,
1509
- {
1510
- media,
1511
- preferAvatar: control === "with-avatar" || tag === "with-avatar"
1512
- }
1513
- ) : null,
1514
- showMediaCircle: false,
1515
- showMediaAtAllSizes: true,
1516
- onClick
1517
- },
1518
- JSON.stringify(option)
1519
- );
1520
- }) })
1521
- ] })
1799
+ options: filteredOptions,
1800
+ control,
1801
+ className: query.length === 0 ? "m-t-3" : ""
1802
+ }
1803
+ ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { children: formatMessage(decision_messages_default.noResults) })
1804
+ ] })
1805
+ ] });
1522
1806
  };
1523
1807
  var DecisionRenderer_default = DecisionRenderer;
1524
1808
 
1525
1809
  // ../renderers/src/DividerRenderer.tsx
1526
- var import_jsx_runtime24 = require("react/jsx-runtime");
1810
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1527
1811
  var DividerRenderer = {
1528
1812
  canRenderType: "divider",
1529
- render: ({ margin }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("hr", { className: `m-t-0 ${getMargin(margin)}` })
1813
+ render: ({ margin }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("hr", { className: `m-t-0 ${getMargin(margin)}` })
1530
1814
  };
1531
1815
  var DividerRenderer_default = DividerRenderer;
1532
1816
 
1533
1817
  // ../renderers/src/ExternalConfirmationRenderer.tsx
1534
- var import_components13 = require("@transferwise/components");
1818
+ var import_components15 = require("@transferwise/components");
1535
1819
 
1536
1820
  // ../renderers/src/messages/external-confirmation.messages.ts
1537
- var import_react_intl5 = require("react-intl");
1538
- var external_confirmation_messages_default = (0, import_react_intl5.defineMessages)({
1821
+ var import_react_intl8 = require("react-intl");
1822
+ var external_confirmation_messages_default = (0, import_react_intl8.defineMessages)({
1539
1823
  title: {
1540
1824
  id: "df.wise.ExternalConfirmation.title",
1541
1825
  defaultMessage: "Please confirm",
@@ -1559,9 +1843,9 @@ var external_confirmation_messages_default = (0, import_react_intl5.defineMessag
1559
1843
  });
1560
1844
 
1561
1845
  // ../renderers/src/ExternalConfirmationRenderer.tsx
1562
- var import_react_intl6 = require("react-intl");
1563
- var import_react3 = require("react");
1564
- var import_jsx_runtime25 = require("react/jsx-runtime");
1846
+ var import_react_intl9 = require("react-intl");
1847
+ var import_react4 = require("react");
1848
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1565
1849
  var ExternalConfirmationRenderer = {
1566
1850
  canRenderType: "external-confirmation",
1567
1851
  render: ExternalConfirmationRendererComponent
@@ -1573,8 +1857,8 @@ function ExternalConfirmationRendererComponent({
1573
1857
  onFailure,
1574
1858
  onCancel
1575
1859
  }) {
1576
- const { formatMessage } = (0, import_react_intl6.useIntl)();
1577
- (0, import_react3.useEffect)(() => {
1860
+ const { formatMessage } = (0, import_react_intl9.useIntl)();
1861
+ (0, import_react4.useEffect)(() => {
1578
1862
  if (url) {
1579
1863
  const w = window.open(url, "_blank");
1580
1864
  if (w) {
@@ -1584,16 +1868,16 @@ function ExternalConfirmationRendererComponent({
1584
1868
  }
1585
1869
  }
1586
1870
  }, []);
1587
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1588
- import_components13.Modal,
1871
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1872
+ import_components15.Modal,
1589
1873
  {
1590
1874
  open: status === "failure",
1591
1875
  title: formatMessage(external_confirmation_messages_default.title),
1592
- body: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1593
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components13.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1594
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
1595
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1596
- import_components13.Button,
1876
+ body: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1877
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components15.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1878
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
1879
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1880
+ import_components15.Button,
1597
1881
  {
1598
1882
  block: true,
1599
1883
  className: "m-b-2",
@@ -1606,7 +1890,7 @@ function ExternalConfirmationRendererComponent({
1606
1890
  children: formatMessage(external_confirmation_messages_default.open)
1607
1891
  }
1608
1892
  ),
1609
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components13.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1893
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components15.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1610
1894
  ] }) })
1611
1895
  ] }),
1612
1896
  onClose: onCancel
@@ -1623,46 +1907,46 @@ function getOrigin(url) {
1623
1907
  var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
1624
1908
 
1625
1909
  // ../renderers/src/FormRenderer.tsx
1626
- var import_jsx_runtime26 = require("react/jsx-runtime");
1910
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1627
1911
  var FormRenderer = {
1628
1912
  canRenderType: "form",
1629
- render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: getMargin(margin), children })
1913
+ render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: getMargin(margin), children })
1630
1914
  };
1631
1915
  var FormRenderer_default = FormRenderer;
1632
1916
 
1633
1917
  // ../renderers/src/FormSectionRenderer.tsx
1634
- var import_components14 = require("@transferwise/components");
1635
- var import_jsx_runtime27 = require("react/jsx-runtime");
1918
+ var import_components16 = require("@transferwise/components");
1919
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1636
1920
  var FormSectionRenderer = {
1637
1921
  canRenderType: "form-section",
1638
- render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("fieldset", { children: [
1639
- title && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1640
- import_components14.Header,
1922
+ render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("fieldset", { children: [
1923
+ title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1924
+ import_components16.Header,
1641
1925
  {
1642
1926
  as: "h2",
1643
1927
  title
1644
1928
  }
1645
1929
  ),
1646
- description && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { children: description }),
1930
+ description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { children: description }),
1647
1931
  children
1648
1932
  ] })
1649
1933
  };
1650
1934
  var FormSectionRenderer_default = FormSectionRenderer;
1651
1935
 
1652
1936
  // ../renderers/src/HeadingRenderer.tsx
1653
- var import_components15 = require("@transferwise/components");
1654
- var import_jsx_runtime28 = require("react/jsx-runtime");
1937
+ var import_components17 = require("@transferwise/components");
1938
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1655
1939
  var HeadingRenderer = {
1656
1940
  canRenderType: "heading",
1657
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, __spreadValues({}, props))
1941
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading, __spreadValues({}, props))
1658
1942
  };
1659
1943
  function Heading(props) {
1660
1944
  const { text, size, align, margin, control } = props;
1661
1945
  const className = getTextAlignmentAndMargin({ align, margin });
1662
- return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StandardHeading, { size, text, className });
1946
+ return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StandardHeading, { size, text, className });
1663
1947
  }
1664
1948
  function DisplayHeading({ size, text, className }) {
1665
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components15.Display, { type: getDisplayType(size), className, children: text });
1949
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components17.Display, { type: getDisplayType(size), className, children: text });
1666
1950
  }
1667
1951
  var getDisplayType = (size) => {
1668
1952
  switch (size) {
@@ -1678,7 +1962,7 @@ var getDisplayType = (size) => {
1678
1962
  }
1679
1963
  };
1680
1964
  function StandardHeading({ size, text, className }) {
1681
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components15.Title, { type: getTitleTypeBySize(size), className, children: text });
1965
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components17.Title, { type: getTitleTypeBySize(size), className, children: text });
1682
1966
  }
1683
1967
  var getTitleTypeBySize = (size) => {
1684
1968
  var _a;
@@ -1694,8 +1978,8 @@ var getTitleTypeBySize = (size) => {
1694
1978
  var HeadingRenderer_default = HeadingRenderer;
1695
1979
 
1696
1980
  // ../renderers/src/ImageRenderer/UrlImage.tsx
1697
- var import_components16 = require("@transferwise/components");
1698
- var import_react4 = require("react");
1981
+ var import_components18 = require("@transferwise/components");
1982
+ var import_react5 = require("react");
1699
1983
 
1700
1984
  // ../renderers/src/utils/api-utils.ts
1701
1985
  function isRelativePath(url = "") {
@@ -1705,7 +1989,7 @@ function isRelativePath(url = "") {
1705
1989
  }
1706
1990
 
1707
1991
  // ../renderers/src/ImageRenderer/UrlImage.tsx
1708
- var import_jsx_runtime29 = require("react/jsx-runtime");
1992
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1709
1993
  function UrlImage({
1710
1994
  accessibilityDescription,
1711
1995
  align,
@@ -1714,14 +1998,14 @@ function UrlImage({
1714
1998
  uri,
1715
1999
  httpClient
1716
2000
  }) {
1717
- const [imageSource, setImageSource] = (0, import_react4.useState)("");
1718
- (0, import_react4.useEffect)(() => {
2001
+ const [imageSource, setImageSource] = (0, import_react5.useState)("");
2002
+ (0, import_react5.useEffect)(() => {
1719
2003
  if (!uri.startsWith("urn:")) {
1720
2004
  void getImageSource(httpClient, uri).then(setImageSource);
1721
2005
  }
1722
2006
  }, [uri, httpClient]);
1723
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1724
- import_components16.Image,
2007
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2008
+ import_components18.Image,
1725
2009
  {
1726
2010
  className: `img-responsive ${getMargin(margin)}`,
1727
2011
  alt: accessibilityDescription != null ? accessibilityDescription : "",
@@ -1764,7 +2048,7 @@ var getImageSource = async (httpClient, imageUrl) => {
1764
2048
  };
1765
2049
 
1766
2050
  // ../renderers/src/ImageRenderer/UrnFlagImage.tsx
1767
- var import_jsx_runtime30 = require("react/jsx-runtime");
2051
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1768
2052
  var maxFlagSize = 600;
1769
2053
  function UrnFlagImage({
1770
2054
  accessibilityDescription,
@@ -1773,11 +2057,12 @@ function UrnFlagImage({
1773
2057
  size,
1774
2058
  uri
1775
2059
  }) {
1776
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
2060
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
1777
2061
  }
1778
2062
 
1779
2063
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
1780
- var import_art3 = require("@wise/art");
2064
+ var import_art4 = require("@wise/art");
2065
+ var import_react7 = require("react");
1781
2066
 
1782
2067
  // ../renderers/src/ImageRenderer/isAnimated.ts
1783
2068
  var isAnimated = (uri) => {
@@ -1786,8 +2071,39 @@ var isAnimated = (uri) => {
1786
2071
  return (_a = rComponents == null ? void 0 : rComponents.some(([key, value]) => key === "type" && value === "animated")) != null ? _a : false;
1787
2072
  };
1788
2073
 
2074
+ // ../renderers/src/ImageRenderer/SafeIllustration3D.tsx
2075
+ var import_art3 = require("@wise/art");
2076
+ var import_react6 = require("react");
2077
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2078
+ var Illustration3DErrorBoundary = class extends import_react6.Component {
2079
+ constructor(props) {
2080
+ super(props);
2081
+ this.state = { hasError: false };
2082
+ }
2083
+ static getDerivedStateFromError() {
2084
+ return { hasError: true };
2085
+ }
2086
+ componentDidCatch() {
2087
+ this.props.onError();
2088
+ }
2089
+ render() {
2090
+ if (this.state.hasError) {
2091
+ return null;
2092
+ }
2093
+ return this.props.children;
2094
+ }
2095
+ };
2096
+ var SafeIllustration3D = ({
2097
+ name,
2098
+ size,
2099
+ onError
2100
+ }) => {
2101
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Illustration3DErrorBoundary, { onError, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_art3.Illustration3D, { name, size }) });
2102
+ };
2103
+ var SafeIllustration3D_default = SafeIllustration3D;
2104
+
1789
2105
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
1790
- var import_jsx_runtime31 = require("react/jsx-runtime");
2106
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1791
2107
  var urnPrefix = "urn:wise:illustrations:";
1792
2108
  var isUrnIllustration = (uri) => uri.startsWith(urnPrefix);
1793
2109
  function UrnIllustration({
@@ -1797,14 +2113,22 @@ function UrnIllustration({
1797
2113
  size,
1798
2114
  uri
1799
2115
  }) {
2116
+ const [has3DFailed, setHas3DFailed] = (0, import_react7.useState)(false);
1800
2117
  const illustrationSize = getIllustrationSize(size);
1801
2118
  const illustrationName = getIllustrationName(uri);
1802
2119
  const illustration3DName = getIllustration3DName(uri);
1803
- if (illustration3DName && isAnimated(uri)) {
1804
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_art3.Illustration3D, { name: illustration3DName, size: illustrationSize }) });
2120
+ if (illustration3DName && isAnimated(uri) && !has3DFailed) {
2121
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2122
+ SafeIllustration3D_default,
2123
+ {
2124
+ name: illustration3DName,
2125
+ size: illustrationSize,
2126
+ onError: () => setHas3DFailed(true)
2127
+ }
2128
+ ) });
1805
2129
  }
1806
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1807
- import_art3.Illustration,
2130
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2131
+ import_art4.Illustration,
1808
2132
  {
1809
2133
  className: "df-illustration",
1810
2134
  name: illustrationName,
@@ -1819,36 +2143,36 @@ var getIllustrationName = (uri) => {
1819
2143
  };
1820
2144
  var getIllustration3DName = (uri) => {
1821
2145
  const illustrationName = getIllustrationName(uri);
1822
- return (0, import_art3.isIllustrationSupport3D)(illustrationName) ? illustrationName : null;
2146
+ return (0, import_art4.isIllustrationSupport3D)(illustrationName) ? illustrationName : null;
1823
2147
  };
1824
2148
 
1825
2149
  // ../renderers/src/ImageRenderer/UrnImage.tsx
1826
- var import_jsx_runtime32 = require("react/jsx-runtime");
2150
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1827
2151
  var isUrnImage = (uri) => uri.startsWith("urn:");
1828
2152
  function UrnImage(props) {
1829
2153
  const { uri } = props;
1830
2154
  if (isUrnIllustration(uri)) {
1831
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(UrnIllustration, __spreadValues({}, props));
2155
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(UrnIllustration, __spreadValues({}, props));
1832
2156
  }
1833
2157
  if (isUrnFlag(uri)) {
1834
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(UrnFlagImage, __spreadValues({}, props));
2158
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(UrnFlagImage, __spreadValues({}, props));
1835
2159
  }
1836
2160
  return null;
1837
2161
  }
1838
2162
 
1839
2163
  // ../renderers/src/ImageRenderer/ImageRenderer.tsx
1840
- var import_jsx_runtime33 = require("react/jsx-runtime");
2164
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1841
2165
  var ImageRenderer = {
1842
2166
  canRenderType: "image",
1843
- render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(UrlImage, __spreadValues({}, props))
2167
+ render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(UrlImage, __spreadValues({}, props))
1844
2168
  };
1845
2169
 
1846
2170
  // ../renderers/src/ImageRenderer/index.tsx
1847
2171
  var ImageRenderer_default = ImageRenderer;
1848
2172
 
1849
2173
  // ../renderers/src/InstructionsRenderer.tsx
1850
- var import_components17 = require("@transferwise/components");
1851
- var import_jsx_runtime34 = require("react/jsx-runtime");
2174
+ var import_components19 = require("@transferwise/components");
2175
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1852
2176
  var doContext = ["positive", "neutral"];
1853
2177
  var dontContext = ["warning", "negative"];
1854
2178
  var InstructionsRenderer = {
@@ -1856,16 +2180,16 @@ var InstructionsRenderer = {
1856
2180
  render: ({ items, margin, title }) => {
1857
2181
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
1858
2182
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
1859
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getMargin(margin), children: [
1860
- title ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components17.Header, { title }) : null,
1861
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components17.InstructionsList, { dos, donts })
2183
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: getMargin(margin), children: [
2184
+ title ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components19.Header, { title }) : null,
2185
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components19.InstructionsList, { dos, donts })
1862
2186
  ] });
1863
2187
  }
1864
2188
  };
1865
2189
  var InstructionsRenderer_default = InstructionsRenderer;
1866
2190
 
1867
2191
  // ../renderers/src/IntegerInputRenderer.tsx
1868
- var import_components18 = require("@transferwise/components");
2192
+ var import_components20 = require("@transferwise/components");
1869
2193
 
1870
2194
  // ../renderers/src/utils/input-utils.ts
1871
2195
  var onWheel = (event) => {
@@ -1890,7 +2214,7 @@ function pick(obj, ...keys) {
1890
2214
  }
1891
2215
 
1892
2216
  // ../renderers/src/IntegerInputRenderer.tsx
1893
- var import_jsx_runtime35 = require("react/jsx-runtime");
2217
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1894
2218
  var IntegerInputRenderer = {
1895
2219
  canRenderType: "input-integer",
1896
2220
  render: (props) => {
@@ -1905,7 +2229,7 @@ var IntegerInputRenderer = {
1905
2229
  "maximum",
1906
2230
  "minimum"
1907
2231
  );
1908
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2232
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1909
2233
  FieldInput_default,
1910
2234
  {
1911
2235
  id,
@@ -1913,8 +2237,8 @@ var IntegerInputRenderer = {
1913
2237
  description,
1914
2238
  validation: validationState,
1915
2239
  help,
1916
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components18.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1917
- import_components18.Input,
2240
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components20.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2241
+ import_components20.Input,
1918
2242
  __spreadValues({
1919
2243
  id,
1920
2244
  name: id,
@@ -1936,14 +2260,14 @@ var IntegerInputRenderer = {
1936
2260
  var IntegerInputRenderer_default = IntegerInputRenderer;
1937
2261
 
1938
2262
  // ../renderers/src/ListRenderer.tsx
1939
- var import_components19 = require("@transferwise/components");
2263
+ var import_components21 = require("@transferwise/components");
1940
2264
  var import_classnames3 = __toESM(require("classnames"));
1941
- var import_jsx_runtime36 = require("react/jsx-runtime");
2265
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1942
2266
  var ListRenderer = {
1943
2267
  canRenderType: "list",
1944
- render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: getMargin(margin), children: [
1945
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components19.Header, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
1946
- items.map((props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
2268
+ render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: getMargin(margin), children: [
2269
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components21.Header, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
2270
+ items.map((props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
1947
2271
  ] })
1948
2272
  };
1949
2273
  var DesignSystemListItem = ({
@@ -1955,15 +2279,15 @@ var DesignSystemListItem = ({
1955
2279
  media,
1956
2280
  control,
1957
2281
  tag
1958
- }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2282
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1959
2283
  "label",
1960
2284
  {
1961
2285
  className: (0, import_classnames3.default)("np-option p-a-2", {
1962
2286
  "np-option__sm-media": true,
1963
2287
  "np-option__container-aligned": true
1964
2288
  }),
1965
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "media", children: [
1966
- icon || image || media ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "media-left", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2289
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "media", children: [
2290
+ icon || image || media ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "media-left", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1967
2291
  ListItemMedia,
1968
2292
  {
1969
2293
  icon,
@@ -1971,14 +2295,14 @@ var DesignSystemListItem = ({
1971
2295
  preferAvatar: control === "with-avatar" || tag === "with-avatar"
1972
2296
  }
1973
2297
  ) }) : null,
1974
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "media-body", children: [
1975
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "d-flex justify-content-between", children: [
1976
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
1977
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
2298
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "media-body", children: [
2299
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "d-flex justify-content-between", children: [
2300
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
2301
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
1978
2302
  ] }),
1979
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "d-flex justify-content-between", children: [
1980
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components19.Body, { className: "d-block np-option__body", children: description }),
1981
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components19.Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
2303
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "d-flex justify-content-between", children: [
2304
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components21.Body, { className: "d-block np-option__body", children: description }),
2305
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components21.Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
1982
2306
  ] })
1983
2307
  ] })
1984
2308
  ] })
@@ -1991,9 +2315,9 @@ var ListItemMedia = ({
1991
2315
  preferAvatar
1992
2316
  }) => {
1993
2317
  if (icon) {
1994
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(OptionMedia, { media, preferAvatar }) });
2318
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(OptionMedia, { media, preferAvatar }) });
1995
2319
  }
1996
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(OptionMedia, { media, preferAvatar }) });
2320
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(OptionMedia, { media, preferAvatar }) });
1997
2321
  };
1998
2322
  var getListAction = (callToAction) => {
1999
2323
  if (callToAction) {
@@ -2008,12 +2332,12 @@ var getListAction = (callToAction) => {
2008
2332
  var ListRenderer_default = ListRenderer;
2009
2333
 
2010
2334
  // ../renderers/src/LoadingIndicatorRenderer.tsx
2011
- var import_components20 = require("@transferwise/components");
2012
- var import_jsx_runtime37 = require("react/jsx-runtime");
2335
+ var import_components22 = require("@transferwise/components");
2336
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2013
2337
  var LoadingIndicatorRenderer = {
2014
2338
  canRenderType: "loading-indicator",
2015
- render: ({ margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2016
- import_components20.Loader,
2339
+ render: ({ margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2340
+ import_components22.Loader,
2017
2341
  {
2018
2342
  size,
2019
2343
  classNames: { "tw-loader": `tw-loader m-x-auto ${getMargin(margin)}` },
@@ -2024,30 +2348,30 @@ var LoadingIndicatorRenderer = {
2024
2348
  var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
2025
2349
 
2026
2350
  // ../renderers/src/MarkdownRenderer.tsx
2027
- var import_components21 = require("@transferwise/components");
2028
- var import_jsx_runtime38 = require("react/jsx-runtime");
2351
+ var import_components23 = require("@transferwise/components");
2352
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2029
2353
  var MarkdownRenderer = {
2030
2354
  canRenderType: "markdown",
2031
- render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components21.Markdown, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
2355
+ render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components23.Markdown, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
2032
2356
  };
2033
2357
  var MarkdownRenderer_default = MarkdownRenderer;
2034
2358
 
2035
2359
  // ../renderers/src/ModalLayoutRenderer.tsx
2036
- var import_components22 = require("@transferwise/components");
2037
- var import_react5 = require("react");
2038
- var import_jsx_runtime39 = require("react/jsx-runtime");
2360
+ var import_components24 = require("@transferwise/components");
2361
+ var import_react8 = require("react");
2362
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2039
2363
  var ModalLayoutRenderer = {
2040
2364
  canRenderType: "modal-layout",
2041
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DFModal, __spreadValues({}, props))
2365
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DFModal, __spreadValues({}, props))
2042
2366
  };
2043
2367
  var ModalLayoutRenderer_default = ModalLayoutRenderer;
2044
2368
  function DFModal({ content, margin, trigger }) {
2045
- const [visible, setVisible] = (0, import_react5.useState)(false);
2369
+ const [visible, setVisible] = (0, import_react8.useState)(false);
2046
2370
  const { children, title } = content;
2047
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: getMargin(margin), children: [
2048
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components22.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
2049
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2050
- import_components22.Modal,
2371
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getMargin(margin), children: [
2372
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components24.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
2373
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2374
+ import_components24.Modal,
2051
2375
  {
2052
2376
  scroll: "content",
2053
2377
  open: visible,
@@ -2061,23 +2385,23 @@ function DFModal({ content, margin, trigger }) {
2061
2385
  }
2062
2386
 
2063
2387
  // ../renderers/src/ModalRenderer.tsx
2064
- var import_components23 = require("@transferwise/components");
2065
- var import_jsx_runtime40 = require("react/jsx-runtime");
2388
+ var import_components25 = require("@transferwise/components");
2389
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2066
2390
  var ModalRenderer = {
2067
2391
  canRenderType: "modal",
2068
2392
  render: ({ title, children, open, onClose }) => {
2069
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components23.Modal, { open, title, body: children, onClose });
2393
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components25.Modal, { open, title, body: children, onClose });
2070
2394
  }
2071
2395
  };
2072
2396
 
2073
2397
  // ../renderers/src/MultiSelectInputRenderer.tsx
2074
- var import_components24 = require("@transferwise/components");
2075
- var import_react6 = require("react");
2076
- var import_react_intl8 = require("react-intl");
2398
+ var import_components26 = require("@transferwise/components");
2399
+ var import_react9 = require("react");
2400
+ var import_react_intl11 = require("react-intl");
2077
2401
 
2078
2402
  // ../renderers/src/messages/multi-select.messages.ts
2079
- var import_react_intl7 = require("react-intl");
2080
- var multi_select_messages_default = (0, import_react_intl7.defineMessages)({
2403
+ var import_react_intl10 = require("react-intl");
2404
+ var multi_select_messages_default = (0, import_react_intl10.defineMessages)({
2081
2405
  summary: {
2082
2406
  id: "df.wise.MultiSelect.summary",
2083
2407
  defaultMessage: "{first} and {count} more",
@@ -2086,14 +2410,14 @@ var multi_select_messages_default = (0, import_react_intl7.defineMessages)({
2086
2410
  });
2087
2411
 
2088
2412
  // ../renderers/src/MultiSelectInputRenderer.tsx
2089
- var import_jsx_runtime41 = require("react/jsx-runtime");
2413
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2090
2414
  var MultiSelectInputRenderer = {
2091
2415
  canRenderType: "input-multi-select",
2092
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
2416
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
2093
2417
  };
2094
2418
  function MultiSelectInputRendererComponent(props) {
2095
- const { formatMessage } = (0, import_react_intl8.useIntl)();
2096
- const [stagedIndices, setStagedIndices] = (0, import_react6.useState)();
2419
+ const { formatMessage } = (0, import_react_intl11.useIntl)();
2420
+ const [stagedIndices, setStagedIndices] = (0, import_react9.useState)();
2097
2421
  const {
2098
2422
  id,
2099
2423
  autoComplete,
@@ -2131,12 +2455,12 @@ function MultiSelectInputRendererComponent(props) {
2131
2455
  const contentProps = {
2132
2456
  title: option.title,
2133
2457
  description: option.description,
2134
- icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
2458
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
2135
2459
  };
2136
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components24.SelectInputOptionContent, __spreadValues({}, contentProps));
2460
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components26.SelectInputOptionContent, __spreadValues({}, contentProps));
2137
2461
  };
2138
2462
  const extraProps = { autoComplete };
2139
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2463
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2140
2464
  FieldInput_default,
2141
2465
  {
2142
2466
  id,
@@ -2144,8 +2468,8 @@ function MultiSelectInputRendererComponent(props) {
2144
2468
  help,
2145
2469
  description,
2146
2470
  validation: validationState,
2147
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2148
- import_components24.SelectInput,
2471
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2472
+ import_components26.SelectInput,
2149
2473
  __spreadValues({
2150
2474
  id,
2151
2475
  items: options.map((option, index) => {
@@ -2184,12 +2508,12 @@ function MultiSelectInputRendererComponent(props) {
2184
2508
  var MultiSelectInputRenderer_default = MultiSelectInputRenderer;
2185
2509
 
2186
2510
  // ../renderers/src/MultiUploadInputRenderer.tsx
2187
- var import_components26 = require("@transferwise/components");
2511
+ var import_components28 = require("@transferwise/components");
2188
2512
 
2189
2513
  // ../renderers/src/components/UploadFieldInput.tsx
2190
- var import_components25 = require("@transferwise/components");
2514
+ var import_components27 = require("@transferwise/components");
2191
2515
  var import_classnames4 = __toESM(require("classnames"));
2192
- var import_jsx_runtime42 = require("react/jsx-runtime");
2516
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2193
2517
  function UploadFieldInput({
2194
2518
  id,
2195
2519
  children,
@@ -2198,18 +2522,18 @@ function UploadFieldInput({
2198
2522
  help,
2199
2523
  validation
2200
2524
  }) {
2201
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(LabelContentWithHelp, { text: label, help }) : label;
2525
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(LabelContentWithHelp, { text: label, help }) : label;
2202
2526
  const descriptionId = description ? `${id}-description` : void 0;
2203
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2527
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2204
2528
  "div",
2205
2529
  {
2206
2530
  className: (0, import_classnames4.default)("form-group d-block", {
2207
2531
  "has-error": (validation == null ? void 0 : validation.status) === "invalid"
2208
2532
  }),
2209
2533
  children: [
2210
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
2534
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
2211
2535
  children,
2212
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components25.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
2536
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_components27.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
2213
2537
  ]
2214
2538
  }
2215
2539
  );
@@ -2244,7 +2568,7 @@ var getSizeLimit = (maxSize) => {
2244
2568
  };
2245
2569
 
2246
2570
  // ../renderers/src/MultiUploadInputRenderer.tsx
2247
- var import_jsx_runtime43 = require("react/jsx-runtime");
2571
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2248
2572
  var MultiUploadInputRenderer = {
2249
2573
  canRenderType: "input-upload-multi",
2250
2574
  render: (props) => {
@@ -2269,7 +2593,7 @@ var MultiUploadInputRenderer = {
2269
2593
  };
2270
2594
  const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
2271
2595
  const descriptionId = description ? `${id}-description` : void 0;
2272
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2596
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2273
2597
  UploadFieldInput_default,
2274
2598
  {
2275
2599
  id,
@@ -2277,8 +2601,8 @@ var MultiUploadInputRenderer = {
2277
2601
  description,
2278
2602
  validation: validationState,
2279
2603
  help,
2280
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2281
- import_components26.UploadInput,
2604
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2605
+ import_components28.UploadInput,
2282
2606
  {
2283
2607
  id,
2284
2608
  "aria-describedby": descriptionId,
@@ -2300,8 +2624,8 @@ var MultiUploadInputRenderer = {
2300
2624
  var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
2301
2625
 
2302
2626
  // ../renderers/src/NumberInputRenderer.tsx
2303
- var import_components27 = require("@transferwise/components");
2304
- var import_jsx_runtime44 = require("react/jsx-runtime");
2627
+ var import_components29 = require("@transferwise/components");
2628
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2305
2629
  var NumberInputRenderer = {
2306
2630
  canRenderType: "input-number",
2307
2631
  render: (props) => {
@@ -2315,7 +2639,7 @@ var NumberInputRenderer = {
2315
2639
  "maximum",
2316
2640
  "minimum"
2317
2641
  );
2318
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2642
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2319
2643
  FieldInput_default,
2320
2644
  {
2321
2645
  id,
@@ -2323,8 +2647,8 @@ var NumberInputRenderer = {
2323
2647
  description,
2324
2648
  validation: validationState,
2325
2649
  help,
2326
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components27.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2327
- import_components27.Input,
2650
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components29.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2651
+ import_components29.Input,
2328
2652
  __spreadValues({
2329
2653
  id,
2330
2654
  name: id,
@@ -2344,24 +2668,24 @@ var NumberInputRenderer = {
2344
2668
  var NumberInputRenderer_default = NumberInputRenderer;
2345
2669
 
2346
2670
  // ../renderers/src/ParagraphRenderer.tsx
2347
- var import_react_intl10 = require("react-intl");
2671
+ var import_react_intl13 = require("react-intl");
2348
2672
 
2349
2673
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
2350
- var import_components28 = require("@transferwise/components");
2351
- var import_react7 = require("react");
2674
+ var import_components30 = require("@transferwise/components");
2675
+ var import_react10 = require("react");
2352
2676
  function useSnackBarIfAvailable() {
2353
- const context = (0, import_react7.useContext)(import_components28.SnackbarContext);
2677
+ const context = (0, import_react10.useContext)(import_components30.SnackbarContext);
2354
2678
  return context ? context.createSnackbar : () => {
2355
2679
  };
2356
2680
  }
2357
2681
 
2358
2682
  // ../renderers/src/ParagraphRenderer.tsx
2359
- var import_components29 = require("@transferwise/components");
2683
+ var import_components31 = require("@transferwise/components");
2360
2684
  var import_classnames5 = __toESM(require("classnames"));
2361
2685
 
2362
2686
  // ../renderers/src/messages/paragraph.messages.ts
2363
- var import_react_intl9 = require("react-intl");
2364
- var paragraph_messages_default = (0, import_react_intl9.defineMessages)({
2687
+ var import_react_intl12 = require("react-intl");
2688
+ var paragraph_messages_default = (0, import_react_intl12.defineMessages)({
2365
2689
  copy: {
2366
2690
  id: "df.wise.DynamicParagraph.copy",
2367
2691
  defaultMessage: "Copy",
@@ -2375,33 +2699,33 @@ var paragraph_messages_default = (0, import_react_intl9.defineMessages)({
2375
2699
  });
2376
2700
 
2377
2701
  // ../renderers/src/ParagraphRenderer.tsx
2378
- var import_jsx_runtime45 = require("react/jsx-runtime");
2702
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2379
2703
  var ParagraphRenderer = {
2380
2704
  canRenderType: "paragraph",
2381
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Paragraph, __spreadValues({}, props))
2705
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Paragraph, __spreadValues({}, props))
2382
2706
  };
2383
2707
  function Paragraph({ align, control, margin, text }) {
2384
2708
  const className = getTextAlignmentAndMargin({ align, margin });
2385
- return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(StandardParagraph, { className, text });
2709
+ return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(StandardParagraph, { className, text });
2386
2710
  }
2387
2711
  function StandardParagraph({ text, className }) {
2388
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
2712
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
2389
2713
  }
2390
2714
  function CopyableParagraph({
2391
2715
  text,
2392
2716
  align,
2393
2717
  className
2394
2718
  }) {
2395
- const { formatMessage } = (0, import_react_intl10.useIntl)();
2719
+ const { formatMessage } = (0, import_react_intl13.useIntl)();
2396
2720
  const createSnackbar = useSnackBarIfAvailable();
2397
2721
  const copy = () => {
2398
2722
  navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
2399
2723
  });
2400
2724
  };
2401
2725
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
2402
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className, children: [
2403
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2404
- import_components29.Input,
2726
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className, children: [
2727
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2728
+ import_components31.Input,
2405
2729
  {
2406
2730
  type: "text",
2407
2731
  value: text,
@@ -2409,21 +2733,21 @@ function CopyableParagraph({
2409
2733
  className: (0, import_classnames5.default)("text-ellipsis", inputAlignmentClasses)
2410
2734
  }
2411
2735
  ),
2412
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_components29.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2736
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_components31.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2413
2737
  ] });
2414
2738
  }
2415
2739
  var ParagraphRenderer_default = ParagraphRenderer;
2416
2740
 
2417
2741
  // ../renderers/src/RepeatableRenderer.tsx
2418
- var import_components30 = require("@transferwise/components");
2742
+ var import_components32 = require("@transferwise/components");
2419
2743
  var import_icons = require("@transferwise/icons");
2420
2744
  var import_classnames6 = __toESM(require("classnames"));
2421
- var import_react8 = require("react");
2422
- var import_react_intl12 = require("react-intl");
2745
+ var import_react11 = require("react");
2746
+ var import_react_intl15 = require("react-intl");
2423
2747
 
2424
2748
  // ../renderers/src/messages/repeatable.messages.ts
2425
- var import_react_intl11 = require("react-intl");
2426
- var repeatable_messages_default = (0, import_react_intl11.defineMessages)({
2749
+ var import_react_intl14 = require("react-intl");
2750
+ var repeatable_messages_default = (0, import_react_intl14.defineMessages)({
2427
2751
  addItemTitle: {
2428
2752
  id: "df.wise.ArraySchema.addItemTitle",
2429
2753
  defaultMessage: "Add Item",
@@ -2447,10 +2771,10 @@ var repeatable_messages_default = (0, import_react_intl11.defineMessages)({
2447
2771
  });
2448
2772
 
2449
2773
  // ../renderers/src/RepeatableRenderer.tsx
2450
- var import_jsx_runtime46 = require("react/jsx-runtime");
2774
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2451
2775
  var RepeatableRenderer = {
2452
2776
  canRenderType: "repeatable",
2453
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Repeatable, __spreadValues({}, props))
2777
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Repeatable, __spreadValues({}, props))
2454
2778
  };
2455
2779
  function Repeatable(props) {
2456
2780
  const {
@@ -2466,8 +2790,8 @@ function Repeatable(props) {
2466
2790
  onSave,
2467
2791
  onRemove
2468
2792
  } = props;
2469
- const { formatMessage } = (0, import_react_intl12.useIntl)();
2470
- const [openModalType, setOpenModalType] = (0, import_react8.useState)(null);
2793
+ const { formatMessage } = (0, import_react_intl15.useIntl)();
2794
+ const [openModalType, setOpenModalType] = (0, import_react11.useState)(null);
2471
2795
  const onAddItem = () => {
2472
2796
  onAdd();
2473
2797
  setOpenModalType("add");
@@ -2489,40 +2813,40 @@ function Repeatable(props) {
2489
2813
  const onCancelEdit = () => {
2490
2814
  setOpenModalType(null);
2491
2815
  };
2492
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2493
- title && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components30.Header, { title }),
2494
- description && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { children: description }),
2495
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2816
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
2817
+ title && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components32.Header, { title }),
2818
+ description && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { children: description }),
2819
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2496
2820
  "div",
2497
2821
  {
2498
2822
  className: (0, import_classnames6.default)("form-group", {
2499
2823
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
2500
2824
  }),
2501
2825
  children: [
2502
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2503
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2504
- import_components30.NavigationOption,
2826
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2827
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2828
+ import_components32.NavigationOption,
2505
2829
  {
2506
- media: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons.Plus, {}),
2830
+ media: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons.Plus, {}),
2507
2831
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
2508
2832
  showMediaAtAllSizes: true,
2509
2833
  onClick: () => onAddItem()
2510
2834
  }
2511
2835
  ),
2512
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components30.InlineAlert, { type: "negative", children: validationState.message })
2836
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components32.InlineAlert, { type: "negative", children: validationState.message })
2513
2837
  ]
2514
2838
  }
2515
2839
  ),
2516
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2517
- import_components30.Modal,
2840
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2841
+ import_components32.Modal,
2518
2842
  {
2519
2843
  open: openModalType !== null,
2520
2844
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
2521
- body: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2522
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "m-b-2", children: editableItem }),
2523
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { children: [
2524
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components30.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2525
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components30.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
2845
+ body: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
2846
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "m-b-2", children: editableItem }),
2847
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
2848
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components32.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2849
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components32.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
2526
2850
  ] })
2527
2851
  ] }),
2528
2852
  onClose: () => onCancelEdit()
@@ -2534,10 +2858,10 @@ function ItemSummaryOption({
2534
2858
  item,
2535
2859
  onClick
2536
2860
  }) {
2537
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2538
- import_components30.NavigationOption,
2861
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2862
+ import_components32.NavigationOption,
2539
2863
  {
2540
- media: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
2864
+ media: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
2541
2865
  title: item.title,
2542
2866
  content: item.description,
2543
2867
  showMediaAtAllSizes: true,
@@ -2548,7 +2872,7 @@ function ItemSummaryOption({
2548
2872
  var RepeatableRenderer_default = RepeatableRenderer;
2549
2873
 
2550
2874
  // ../renderers/src/ReviewRenderer.tsx
2551
- var import_components31 = require("@transferwise/components");
2875
+ var import_components33 = require("@transferwise/components");
2552
2876
 
2553
2877
  // ../renderers/src/utils/getHeaderAction.tsx
2554
2878
  var getHeaderAction = (callToAction) => {
@@ -2572,15 +2896,15 @@ var getHeaderAction = (callToAction) => {
2572
2896
  };
2573
2897
 
2574
2898
  // ../renderers/src/ReviewRenderer.tsx
2575
- var import_jsx_runtime47 = require("react/jsx-runtime");
2899
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2576
2900
  var ReviewRenderer = {
2577
2901
  canRenderType: "review",
2578
2902
  render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
2579
2903
  const orientation = mapControlToDefinitionListLayout(control);
2580
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: getMargin(margin), children: [
2581
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components31.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
2582
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2583
- import_components31.DefinitionList,
2904
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: getMargin(margin), children: [
2905
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components33.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
2906
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2907
+ import_components33.DefinitionList,
2584
2908
  {
2585
2909
  layout: orientation,
2586
2910
  definitions: fields.map(
@@ -2618,27 +2942,27 @@ var mapControlToDefinitionListLayout = (control) => {
2618
2942
  };
2619
2943
  var getFieldValue = (value, help, orientation, onClick) => {
2620
2944
  if (help) {
2621
- return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
2622
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Help_default, { help, onClick }),
2945
+ return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
2946
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Help_default, { help, onClick }),
2623
2947
  " ",
2624
2948
  value
2625
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
2949
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
2626
2950
  value,
2627
2951
  " ",
2628
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Help_default, { help, onClick })
2952
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Help_default, { help, onClick })
2629
2953
  ] });
2630
2954
  }
2631
2955
  return value;
2632
2956
  };
2633
2957
 
2634
2958
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2635
- var import_components33 = require("@transferwise/components");
2636
- var import_react9 = require("react");
2637
- var import_react_intl16 = require("react-intl");
2959
+ var import_components35 = require("@transferwise/components");
2960
+ var import_react12 = require("react");
2961
+ var import_react_intl19 = require("react-intl");
2638
2962
 
2639
2963
  // ../renderers/src/messages/search.messages.ts
2640
- var import_react_intl13 = require("react-intl");
2641
- var search_messages_default = (0, import_react_intl13.defineMessages)({
2964
+ var import_react_intl16 = require("react-intl");
2965
+ var search_messages_default = (0, import_react_intl16.defineMessages)({
2642
2966
  loading: {
2643
2967
  id: "df.wise.SearchLayout.loading",
2644
2968
  defaultMessage: "Loading...",
@@ -2647,11 +2971,11 @@ var search_messages_default = (0, import_react_intl13.defineMessages)({
2647
2971
  });
2648
2972
 
2649
2973
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
2650
- var import_react_intl15 = require("react-intl");
2974
+ var import_react_intl18 = require("react-intl");
2651
2975
 
2652
2976
  // ../renderers/src/messages/generic-error.messages.ts
2653
- var import_react_intl14 = require("react-intl");
2654
- var generic_error_messages_default = (0, import_react_intl14.defineMessages)({
2977
+ var import_react_intl17 = require("react-intl");
2978
+ var generic_error_messages_default = (0, import_react_intl17.defineMessages)({
2655
2979
  genericErrorRetryHint: {
2656
2980
  id: "df.wise.PersistAsyncSchema.genericError",
2657
2981
  defaultMessage: "Something went wrong, please try again.",
@@ -2670,20 +2994,20 @@ var generic_error_messages_default = (0, import_react_intl14.defineMessages)({
2670
2994
  });
2671
2995
 
2672
2996
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
2673
- var import_components32 = require("@transferwise/components");
2674
- var import_jsx_runtime48 = require("react/jsx-runtime");
2997
+ var import_components34 = require("@transferwise/components");
2998
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2675
2999
  function ErrorResult({ state }) {
2676
- const intl = (0, import_react_intl15.useIntl)();
3000
+ const intl = (0, import_react_intl18.useIntl)();
2677
3001
  const buttonVisualProps = {
2678
3002
  priority: "tertiary",
2679
3003
  size: "sm",
2680
3004
  style: { marginTop: "-2px", padding: "0", width: "auto", display: "inline" }
2681
3005
  };
2682
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: "m-t-2", children: [
3006
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: "m-t-2", children: [
2683
3007
  intl.formatMessage(generic_error_messages_default.genericError),
2684
3008
  "\xA0",
2685
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2686
- import_components32.Button,
3009
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3010
+ import_components34.Button,
2687
3011
  __spreadProps(__spreadValues({}, buttonVisualProps), {
2688
3012
  onClick: () => {
2689
3013
  state.onRetry();
@@ -2695,7 +3019,7 @@ function ErrorResult({ state }) {
2695
3019
  }
2696
3020
 
2697
3021
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2698
- var import_jsx_runtime49 = require("react/jsx-runtime");
3022
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2699
3023
  function BlockSearchRendererComponent({
2700
3024
  id,
2701
3025
  isLoading,
@@ -2706,11 +3030,11 @@ function BlockSearchRendererComponent({
2706
3030
  trackEvent,
2707
3031
  onChange
2708
3032
  }) {
2709
- const [hasSearched, setHasSearched] = (0, import_react9.useState)(false);
2710
- const { formatMessage } = (0, import_react_intl16.useIntl)();
2711
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: getMargin(margin), children: [
2712
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2713
- import_components33.Input,
3033
+ const [hasSearched, setHasSearched] = (0, import_react12.useState)(false);
3034
+ const { formatMessage } = (0, import_react_intl19.useIntl)();
3035
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: getMargin(margin), children: [
3036
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3037
+ import_components35.Input,
2714
3038
  {
2715
3039
  id,
2716
3040
  name: id,
@@ -2726,7 +3050,7 @@ function BlockSearchRendererComponent({
2726
3050
  }
2727
3051
  }
2728
3052
  ) }),
2729
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SearchResultContent, { state, trackEvent })
3053
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SearchResultContent, { state, trackEvent })
2730
3054
  ] });
2731
3055
  }
2732
3056
  function SearchResultContent({
@@ -2735,27 +3059,27 @@ function SearchResultContent({
2735
3059
  }) {
2736
3060
  switch (state.type) {
2737
3061
  case "error":
2738
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ErrorResult, { state });
3062
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ErrorResult, { state });
2739
3063
  case "results":
2740
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SearchResults, { state, trackEvent });
3064
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SearchResults, { state, trackEvent });
2741
3065
  case "noResults":
2742
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(EmptySearchResult, { state });
3066
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(EmptySearchResult, { state });
2743
3067
  case "pending":
2744
3068
  default:
2745
3069
  return null;
2746
3070
  }
2747
3071
  }
2748
3072
  function EmptySearchResult({ state }) {
2749
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components33.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
3073
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components35.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2750
3074
  }
2751
3075
  function SearchResults({
2752
3076
  state,
2753
3077
  trackEvent
2754
3078
  }) {
2755
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components33.NavigationOptionsList, { children: state.results.map((result) => {
3079
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components35.NavigationOptionsList, { children: state.results.map((result) => {
2756
3080
  const { media } = result;
2757
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2758
- import_components33.NavigationOption,
3081
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3082
+ import_components35.NavigationOption,
2759
3083
  {
2760
3084
  title: result.title,
2761
3085
  content: result.description,
@@ -2776,11 +3100,11 @@ function SearchResults({
2776
3100
  var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
2777
3101
 
2778
3102
  // ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
2779
- var import_components34 = require("@transferwise/components");
3103
+ var import_components36 = require("@transferwise/components");
2780
3104
  var import_icons2 = require("@transferwise/icons");
2781
- var import_react10 = require("react");
2782
- var import_react_intl17 = require("react-intl");
2783
- var import_jsx_runtime50 = require("react/jsx-runtime");
3105
+ var import_react13 = require("react");
3106
+ var import_react_intl20 = require("react-intl");
3107
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2784
3108
  function InlineSearchRenderer({
2785
3109
  id,
2786
3110
  isLoading,
@@ -2790,20 +3114,20 @@ function InlineSearchRenderer({
2790
3114
  title,
2791
3115
  trackEvent
2792
3116
  }) {
2793
- const [hasSearched, setHasSearched] = (0, import_react10.useState)(false);
2794
- const intl = (0, import_react_intl17.useIntl)();
2795
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2796
- import_components34.Typeahead,
3117
+ const [hasSearched, setHasSearched] = (0, import_react13.useState)(false);
3118
+ const intl = (0, import_react_intl20.useIntl)();
3119
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3120
+ import_components36.Typeahead,
2797
3121
  {
2798
3122
  id: "typeahead-input-id",
2799
3123
  intl,
2800
3124
  name: "typeahead-input-name",
2801
3125
  size: "md",
2802
3126
  maxHeight: 100,
2803
- footer: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TypeaheadFooter, { state, isLoading }),
3127
+ footer: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TypeaheadFooter, { state, isLoading }),
2804
3128
  multiple: false,
2805
3129
  clearable: false,
2806
- addon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons2.Search, { size: 24 }),
3130
+ addon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_icons2.Search, { size: 24 }),
2807
3131
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
2808
3132
  minQueryLength: 1,
2809
3133
  onChange: (values) => {
@@ -2838,36 +3162,36 @@ function mapResultToTypeaheadOption(result) {
2838
3162
  };
2839
3163
  }
2840
3164
  function TypeaheadFooter({ state, isLoading }) {
2841
- const { formatMessage } = (0, import_react_intl17.useIntl)();
3165
+ const { formatMessage } = (0, import_react_intl20.useIntl)();
2842
3166
  if (state.type === "noResults") {
2843
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components34.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
3167
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components36.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2844
3168
  }
2845
3169
  if (state.type === "error") {
2846
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ErrorResult, { state }) });
3170
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorResult, { state }) });
2847
3171
  }
2848
3172
  if (state.type === "pending" || isLoading) {
2849
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
3173
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2850
3174
  }
2851
3175
  return null;
2852
3176
  }
2853
3177
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
2854
3178
 
2855
3179
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
2856
- var import_jsx_runtime51 = require("react/jsx-runtime");
3180
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2857
3181
  var SearchRenderer = {
2858
3182
  canRenderType: "search",
2859
- render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
3183
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
2860
3184
  };
2861
3185
  var SearchRenderer_default = SearchRenderer;
2862
3186
 
2863
3187
  // ../renderers/src/SectionRenderer.tsx
2864
- var import_components35 = require("@transferwise/components");
2865
- var import_jsx_runtime52 = require("react/jsx-runtime");
3188
+ var import_components37 = require("@transferwise/components");
3189
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2866
3190
  var SectionRenderer = {
2867
3191
  canRenderType: "section",
2868
3192
  render: ({ children, callToAction, margin, title }) => {
2869
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("section", { className: getMargin(margin), children: [
2870
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components35.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
3193
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("section", { className: getMargin(margin), children: [
3194
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
2871
3195
  children
2872
3196
  ] });
2873
3197
  }
@@ -2875,8 +3199,8 @@ var SectionRenderer = {
2875
3199
  var SectionRenderer_default = SectionRenderer;
2876
3200
 
2877
3201
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
2878
- var import_components36 = require("@transferwise/components");
2879
- var import_jsx_runtime53 = require("react/jsx-runtime");
3202
+ var import_components38 = require("@transferwise/components");
3203
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2880
3204
  function RadioInputRendererComponent(props) {
2881
3205
  const {
2882
3206
  id,
@@ -2890,8 +3214,8 @@ function RadioInputRendererComponent(props) {
2890
3214
  validationState,
2891
3215
  onSelect
2892
3216
  } = props;
2893
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
2894
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3217
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
3218
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2895
3219
  FieldInput_default,
2896
3220
  {
2897
3221
  id,
@@ -2899,8 +3223,8 @@ function RadioInputRendererComponent(props) {
2899
3223
  help,
2900
3224
  description,
2901
3225
  validation: validationState,
2902
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2903
- import_components36.RadioGroup,
3226
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3227
+ import_components38.RadioGroup,
2904
3228
  {
2905
3229
  name: id,
2906
3230
  radios: options.map((option, index) => ({
@@ -2908,7 +3232,7 @@ function RadioInputRendererComponent(props) {
2908
3232
  value: index,
2909
3233
  secondary: option.description,
2910
3234
  disabled: option.disabled || disabled,
2911
- avatar: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
3235
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
2912
3236
  })),
2913
3237
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
2914
3238
  onChange: onSelect
@@ -2922,9 +3246,9 @@ function RadioInputRendererComponent(props) {
2922
3246
  }
2923
3247
 
2924
3248
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
2925
- var import_components37 = require("@transferwise/components");
2926
- var import_react11 = require("react");
2927
- var import_jsx_runtime54 = require("react/jsx-runtime");
3249
+ var import_components39 = require("@transferwise/components");
3250
+ var import_react14 = require("react");
3251
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2928
3252
  function TabInputRendererComponent(props) {
2929
3253
  const {
2930
3254
  id,
@@ -2938,13 +3262,13 @@ function TabInputRendererComponent(props) {
2938
3262
  validationState,
2939
3263
  onSelect
2940
3264
  } = props;
2941
- (0, import_react11.useEffect)(() => {
3265
+ (0, import_react14.useEffect)(() => {
2942
3266
  if (!isValidIndex(selectedIndex, options.length)) {
2943
3267
  onSelect(0);
2944
3268
  }
2945
3269
  }, [selectedIndex, onSelect, options.length]);
2946
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
2947
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3270
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
3271
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2948
3272
  FieldInput_default,
2949
3273
  {
2950
3274
  id,
@@ -2952,8 +3276,8 @@ function TabInputRendererComponent(props) {
2952
3276
  help,
2953
3277
  description,
2954
3278
  validation: validationState,
2955
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2956
- import_components37.Tabs,
3279
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3280
+ import_components39.Tabs,
2957
3281
  {
2958
3282
  name: id,
2959
3283
  selected: selectedIndex != null ? selectedIndex : 0,
@@ -2961,7 +3285,7 @@ function TabInputRendererComponent(props) {
2961
3285
  title: option.title,
2962
3286
  // if we pass null, we get some props-types console errors
2963
3287
  // eslint-disable-next-line react/jsx-no-useless-fragment
2964
- content: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, {}),
3288
+ content: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, {}),
2965
3289
  disabled: option.disabled || disabled
2966
3290
  })),
2967
3291
  onTabSelect: onSelect
@@ -2975,8 +3299,8 @@ function TabInputRendererComponent(props) {
2975
3299
  var isValidIndex = (index, options) => index !== null && index >= 0 && index < options;
2976
3300
 
2977
3301
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
2978
- var import_components38 = require("@transferwise/components");
2979
- var import_jsx_runtime55 = require("react/jsx-runtime");
3302
+ var import_components40 = require("@transferwise/components");
3303
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2980
3304
  function SelectInputRendererComponent(props) {
2981
3305
  const {
2982
3306
  id,
@@ -3016,13 +3340,13 @@ function SelectInputRendererComponent(props) {
3016
3340
  } : {
3017
3341
  title: option.title,
3018
3342
  description: option.description,
3019
- icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
3343
+ icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
3020
3344
  };
3021
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components38.SelectInputOptionContent, __spreadValues({}, contentProps));
3345
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components40.SelectInputOptionContent, __spreadValues({}, contentProps));
3022
3346
  };
3023
3347
  const extraProps = { autoComplete };
3024
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
3025
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3348
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
3349
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3026
3350
  FieldInput_default,
3027
3351
  {
3028
3352
  id,
@@ -3030,8 +3354,8 @@ function SelectInputRendererComponent(props) {
3030
3354
  help,
3031
3355
  description,
3032
3356
  validation: validationState,
3033
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3034
- import_components38.SelectInput,
3357
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3358
+ import_components40.SelectInput,
3035
3359
  __spreadValues({
3036
3360
  name: id,
3037
3361
  placeholder,
@@ -3051,9 +3375,9 @@ function SelectInputRendererComponent(props) {
3051
3375
  }
3052
3376
 
3053
3377
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
3054
- var import_react12 = require("react");
3055
- var import_components39 = require("@transferwise/components");
3056
- var import_jsx_runtime56 = require("react/jsx-runtime");
3378
+ var import_react15 = require("react");
3379
+ var import_components41 = require("@transferwise/components");
3380
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3057
3381
  function SegmentedInputRendererComponent(props) {
3058
3382
  const {
3059
3383
  id,
@@ -3066,13 +3390,13 @@ function SegmentedInputRendererComponent(props) {
3066
3390
  validationState,
3067
3391
  onSelect
3068
3392
  } = props;
3069
- (0, import_react12.useEffect)(() => {
3393
+ (0, import_react15.useEffect)(() => {
3070
3394
  if (!isValidIndex2(selectedIndex, options.length)) {
3071
3395
  onSelect(0);
3072
3396
  }
3073
3397
  }, [selectedIndex, onSelect, options.length]);
3074
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
3075
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3398
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
3399
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3076
3400
  FieldInput_default,
3077
3401
  {
3078
3402
  id,
@@ -3080,8 +3404,8 @@ function SegmentedInputRendererComponent(props) {
3080
3404
  help,
3081
3405
  description,
3082
3406
  validation: validationState,
3083
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3084
- import_components39.SegmentedControl,
3407
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3408
+ import_components41.SegmentedControl,
3085
3409
  {
3086
3410
  name: `${id}-segmented-control`,
3087
3411
  value: String(selectedIndex),
@@ -3097,44 +3421,44 @@ function SegmentedInputRendererComponent(props) {
3097
3421
  )
3098
3422
  }
3099
3423
  ),
3100
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { id: `${id}-children`, children })
3424
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { id: `${id}-children`, children })
3101
3425
  ] });
3102
3426
  }
3103
3427
  var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
3104
3428
 
3105
3429
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
3106
- var import_jsx_runtime57 = require("react/jsx-runtime");
3430
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3107
3431
  var SelectInputRenderer = {
3108
3432
  canRenderType: "input-select",
3109
3433
  render: (props) => {
3110
3434
  switch (props.control) {
3111
3435
  case "radio":
3112
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
3436
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
3113
3437
  case "tab":
3114
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TabInputRendererComponent, __spreadValues({}, props));
3438
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TabInputRendererComponent, __spreadValues({}, props));
3115
3439
  case "segmented":
3116
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
3440
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
3117
3441
  case "select":
3118
3442
  default:
3119
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
3443
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
3120
3444
  }
3121
3445
  }
3122
3446
  };
3123
3447
  var SelectInputRenderer_default = SelectInputRenderer;
3124
3448
 
3125
3449
  // ../renderers/src/StatusListRenderer.tsx
3126
- var import_components40 = require("@transferwise/components");
3127
- var import_jsx_runtime58 = require("react/jsx-runtime");
3450
+ var import_components42 = require("@transferwise/components");
3451
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3128
3452
  var StatusListRenderer = {
3129
3453
  canRenderType: "status-list",
3130
- render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: getMargin(margin), children: [
3131
- title ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components40.Header, { title, className: "m-b-2" }) : null,
3132
- items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3133
- import_components40.Summary,
3454
+ render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: getMargin(margin), children: [
3455
+ title ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_components42.Header, { title, className: "m-b-2" }) : null,
3456
+ items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3457
+ import_components42.Summary,
3134
3458
  {
3135
3459
  title: itemTitle,
3136
3460
  description,
3137
- icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DynamicIcon_default, { name: icon.name }) : null,
3461
+ icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DynamicIcon_default, { name: icon.name }) : null,
3138
3462
  status: mapStatus(status),
3139
3463
  action: getSummaryAction(callToAction)
3140
3464
  },
@@ -3171,12 +3495,12 @@ var mapStatus = (status) => {
3171
3495
 
3172
3496
  // ../renderers/src/utils/useCustomTheme.ts
3173
3497
  var import_components_theming = require("@wise/components-theming");
3174
- var import_react13 = require("react");
3498
+ var import_react16 = require("react");
3175
3499
  var ThemeRequiredEventName = "Theme Required";
3176
3500
  var useCustomTheme = (theme, trackEvent) => {
3177
3501
  const previousThemeHookValue = (0, import_components_theming.useTheme)();
3178
- const previousTheme = (0, import_react13.useMemo)(() => previousThemeHookValue.theme, []);
3179
- (0, import_react13.useEffect)(() => {
3502
+ const previousTheme = (0, import_react16.useMemo)(() => previousThemeHookValue.theme, []);
3503
+ (0, import_react16.useEffect)(() => {
3180
3504
  trackEvent(ThemeRequiredEventName, { theme });
3181
3505
  return theme !== previousTheme ? () => {
3182
3506
  trackEvent(ThemeRequiredEventName, { theme: previousTheme });
@@ -3185,110 +3509,180 @@ var useCustomTheme = (theme, trackEvent) => {
3185
3509
  }, []);
3186
3510
  };
3187
3511
 
3188
- // ../renderers/src/step/BackButton.tsx
3189
- var import_components41 = require("@transferwise/components");
3512
+ // ../renderers/src/step/topbar/BackButton.tsx
3513
+ var import_components43 = require("@transferwise/components");
3190
3514
  var import_icons3 = require("@transferwise/icons");
3191
- var import_jsx_runtime59 = require("react/jsx-runtime");
3515
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3192
3516
  function BackButton({ title, onClick }) {
3193
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "m-b-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
3194
- "button",
3517
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_components43.IconButton, { priority: "tertiary", onClick, children: [
3518
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "sr-only", children: title }),
3519
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_icons3.ArrowLeft, {})
3520
+ ] });
3521
+ }
3522
+
3523
+ // ../renderers/src/step/topbar/Toolbar.tsx
3524
+ var import_components44 = require("@transferwise/components");
3525
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3526
+ var Toolbar = ({ items }) => {
3527
+ return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
3528
+ };
3529
+ function ToolbarButton(props) {
3530
+ return prefersMedia(props.control) ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TextToolbarButton, __spreadValues({}, props));
3531
+ }
3532
+ function MediaToolbarButton(props) {
3533
+ var _a;
3534
+ const { context, control, media, accessibilityDescription, disabled, onClick } = props;
3535
+ const priority = getPriority(control);
3536
+ const type = getSentiment(context);
3537
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3538
+ import_components44.IconButton,
3195
3539
  {
3196
- type: "button",
3197
- className: "df-back-btn",
3198
- title,
3199
- "aria-label": title,
3540
+ className: "df-toolbar-button",
3541
+ disabled,
3542
+ priority,
3543
+ size: 32,
3544
+ type,
3200
3545
  onClick,
3201
3546
  children: [
3202
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "sr-only", children: title }),
3203
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_components41.AvatarView, { interactive: true, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons3.ArrowLeft, { size: "24" }) })
3547
+ accessibilityDescription ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "sr-only", children: accessibilityDescription }) : null,
3548
+ media ? (_a = getAddonStart(media)) == null ? void 0 : _a.value : null
3204
3549
  ]
3205
3550
  }
3206
- ) });
3551
+ );
3552
+ }
3553
+ function TextToolbarButton(props) {
3554
+ const { context, control, title, media, disabled, onClick } = props;
3555
+ const addonStart = media ? getAddonStart(media) : void 0;
3556
+ const priority = getPriority(control);
3557
+ const sentiment = getSentiment(context);
3558
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3559
+ import_components44.Button,
3560
+ {
3561
+ v2: true,
3562
+ size: "sm",
3563
+ className: "df-toolbar-button",
3564
+ disabled,
3565
+ priority,
3566
+ addonStart,
3567
+ sentiment,
3568
+ onClick,
3569
+ children: title
3570
+ }
3571
+ );
3572
+ }
3573
+ var getAddonStart = (media) => {
3574
+ if (media.type === "avatar") {
3575
+ if (media.content.length === 1) {
3576
+ if (media.content[0].type === "text") {
3577
+ return { type: "icon", value: media.content[0].text };
3578
+ }
3579
+ if (media.content[0].type === "uri" && isValidIconUrn(media.content[0].uri)) {
3580
+ const { asset, icon } = resolveUri(media.content[0].uri, 24);
3581
+ return { type: "icon", value: icon != null ? icon : asset };
3582
+ }
3583
+ }
3584
+ return void 0;
3585
+ }
3586
+ };
3587
+ var getPriority = (control) => isKnownControl(control) && control.startsWith("primary") ? "primary" : "secondary";
3588
+ var prefersMedia = (control) => isKnownControl(control) && control.endsWith("-prefers-media");
3589
+ var knownControls = ["primary", "primary-prefers-media", "secondary", "secondary-prefers-media"];
3590
+ var isKnownControl = (control) => control !== void 0 && knownControls.includes(control);
3591
+ var getSentiment = (context) => {
3592
+ return "default";
3593
+ };
3594
+
3595
+ // ../renderers/src/step/topbar/TopBar.tsx
3596
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3597
+ function TopBar({ back, toolbar }) {
3598
+ return back || toolbar ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "d-flex m-b-2", children: [
3599
+ back ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(BackButton, __spreadValues({}, back)) : null,
3600
+ toolbar ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Toolbar, __spreadValues({}, toolbar)) : null
3601
+ ] }) : null;
3207
3602
  }
3208
- var BackButton_default = BackButton;
3209
3603
 
3210
3604
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
3211
- var import_jsx_runtime60 = require("react/jsx-runtime");
3605
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3212
3606
  var SplashCelebrationStepRenderer = {
3213
3607
  canRenderType: "step",
3214
3608
  canRender: ({ control }) => control === "splash-celebration",
3215
3609
  render: SplashCelebrationStepRendererComponent
3216
3610
  };
3217
3611
  function SplashCelebrationStepRendererComponent(props) {
3218
- const { back, children, trackEvent } = props;
3612
+ const { back, toolbar, children, trackEvent } = props;
3219
3613
  useCustomTheme("forest-green", trackEvent);
3220
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "splash-screen m-t-5", children: [
3221
- back ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3614
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "splash-screen m-t-5", children: [
3615
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(TopBar, { back, toolbar }),
3222
3616
  children
3223
3617
  ] });
3224
3618
  }
3225
3619
 
3226
3620
  // ../renderers/src/step/SplashStepRenderer.tsx
3227
- var import_jsx_runtime61 = require("react/jsx-runtime");
3621
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3228
3622
  var SplashStepRenderer = {
3229
3623
  canRenderType: "step",
3230
3624
  canRender: ({ control }) => control === "splash",
3231
3625
  render: SplashStepRendererComponent
3232
3626
  };
3233
3627
  function SplashStepRendererComponent(props) {
3234
- const { back, children } = props;
3235
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "splash-screen m-t-5", children: [
3236
- back ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3628
+ const { back, toolbar, children } = props;
3629
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "splash-screen m-t-5", children: [
3630
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TopBar, { back, toolbar }),
3237
3631
  children
3238
3632
  ] });
3239
3633
  }
3240
3634
 
3241
3635
  // ../renderers/src/step/StepRenderer.tsx
3242
- var import_components42 = require("@transferwise/components");
3243
- var import_jsx_runtime62 = require("react/jsx-runtime");
3636
+ var import_components45 = require("@transferwise/components");
3637
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3244
3638
  var StepRenderer = {
3245
3639
  canRenderType: "step",
3246
3640
  render: StepRendererComponent
3247
3641
  };
3248
3642
  function StepRendererComponent(props) {
3249
- const { back, description, error, title, children } = props;
3250
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
3251
- back ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3252
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "m-b-4", children: [
3253
- title ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_components42.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
3254
- description ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
3643
+ const { back, description, error, title, children, toolbar } = props;
3644
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
3645
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(TopBar, { back, toolbar }),
3646
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "m-b-4", children: [
3647
+ title ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_components45.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
3648
+ description ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
3255
3649
  ] }) : void 0,
3256
- error ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_components42.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
3650
+ error ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_components45.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
3257
3651
  children
3258
3652
  ] });
3259
3653
  }
3260
3654
 
3261
3655
  // ../renderers/src/TabsRenderer.tsx
3262
- var import_components43 = require("@transferwise/components");
3263
- var import_react14 = require("react");
3264
- var import_jsx_runtime63 = require("react/jsx-runtime");
3656
+ var import_components46 = require("@transferwise/components");
3657
+ var import_react17 = require("react");
3658
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3265
3659
  var TabsRenderer = {
3266
3660
  canRenderType: "tabs",
3267
3661
  render: (props) => {
3268
3662
  switch (props.control) {
3269
3663
  case "segmented":
3270
3664
  if (props.tabs.length > 3) {
3271
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TabsRendererComponent, __spreadValues({}, props));
3665
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TabsRendererComponent, __spreadValues({}, props));
3272
3666
  }
3273
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
3667
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
3274
3668
  case "chips":
3275
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
3669
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
3276
3670
  default:
3277
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TabsRendererComponent, __spreadValues({}, props));
3671
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TabsRendererComponent, __spreadValues({}, props));
3278
3672
  }
3279
3673
  }
3280
3674
  };
3281
3675
  function TabsRendererComponent({ uid, margin, tabs }) {
3282
- const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
3283
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3284
- import_components43.Tabs,
3676
+ const [selectedIndex, setSelectedIndex] = (0, import_react17.useState)(0);
3677
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3678
+ import_components46.Tabs,
3285
3679
  {
3286
3680
  name: uid,
3287
3681
  selected: selectedIndex != null ? selectedIndex : 0,
3288
3682
  tabs: tabs.map((option) => ({
3289
3683
  title: option.title,
3290
3684
  disabled: false,
3291
- content: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "m-t-2", children: [
3685
+ content: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "m-t-2", children: [
3292
3686
  " ",
3293
3687
  option.children,
3294
3688
  " "
@@ -3300,10 +3694,10 @@ function TabsRendererComponent({ uid, margin, tabs }) {
3300
3694
  }
3301
3695
  function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
3302
3696
  var _a;
3303
- const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
3304
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: getMargin(margin), children: [
3305
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3306
- import_components43.SegmentedControl,
3697
+ const [selectedIndex, setSelectedIndex] = (0, import_react17.useState)(0);
3698
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: getMargin(margin), children: [
3699
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3700
+ import_components46.SegmentedControl,
3307
3701
  {
3308
3702
  name: uid,
3309
3703
  value: String(selectedIndex),
@@ -3317,31 +3711,31 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
3317
3711
  onChange: (value) => setSelectedIndex(Number(value))
3318
3712
  }
3319
3713
  ),
3320
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3714
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3321
3715
  ] });
3322
3716
  }
3323
3717
  function ChipsTabsRendererComponent({ margin, tabs }) {
3324
3718
  var _a;
3325
- const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
3326
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: getMargin(margin), children: [
3327
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3328
- import_components43.Chips,
3719
+ const [selectedIndex, setSelectedIndex] = (0, import_react17.useState)(0);
3720
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: getMargin(margin), children: [
3721
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3722
+ import_components46.Chips,
3329
3723
  {
3330
3724
  chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
3331
3725
  selected: selectedIndex,
3332
3726
  onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
3333
3727
  }
3334
3728
  ) }),
3335
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3729
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3336
3730
  ] });
3337
3731
  }
3338
3732
 
3339
3733
  // ../renderers/src/TextInputRenderer.tsx
3340
- var import_components45 = require("@transferwise/components");
3734
+ var import_components48 = require("@transferwise/components");
3341
3735
 
3342
3736
  // ../renderers/src/components/VariableTextInput.tsx
3343
- var import_components44 = require("@transferwise/components");
3344
- var import_jsx_runtime64 = require("react/jsx-runtime");
3737
+ var import_components47 = require("@transferwise/components");
3738
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3345
3739
  var commonKeys = [
3346
3740
  "autoComplete",
3347
3741
  "autoCapitalize",
@@ -3360,12 +3754,12 @@ function VariableTextInput(inputProps) {
3360
3754
  const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
3361
3755
  switch (control) {
3362
3756
  case "email":
3363
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
3757
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
3364
3758
  case "password":
3365
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
3759
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
3366
3760
  case "numeric": {
3367
3761
  const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
3368
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3762
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3369
3763
  TextInput,
3370
3764
  __spreadProps(__spreadValues({}, numericProps), {
3371
3765
  onChange: (newValue) => {
@@ -3376,21 +3770,21 @@ function VariableTextInput(inputProps) {
3376
3770
  );
3377
3771
  }
3378
3772
  case "phone-number":
3379
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_components44.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
3773
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_components47.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
3380
3774
  default: {
3381
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
3775
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
3382
3776
  }
3383
3777
  }
3384
3778
  }
3385
3779
  function TextInput(props) {
3386
3780
  const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
3387
- const InputWithPattern = control === "textarea" ? import_components44.TextareaWithDisplayFormat : import_components44.InputWithDisplayFormat;
3388
- const InputWithoutPattern = control === "textarea" ? import_components44.TextArea : import_components44.Input;
3389
- return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
3781
+ const InputWithPattern = control === "textarea" ? import_components47.TextareaWithDisplayFormat : import_components47.InputWithDisplayFormat;
3782
+ const InputWithoutPattern = control === "textarea" ? import_components47.TextArea : import_components47.Input;
3783
+ return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
3390
3784
  }
3391
3785
 
3392
3786
  // ../renderers/src/TextInputRenderer.tsx
3393
- var import_jsx_runtime65 = require("react/jsx-runtime");
3787
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3394
3788
  var TextInputRenderer = {
3395
3789
  canRenderType: "input-text",
3396
3790
  render: (props) => {
@@ -3423,7 +3817,7 @@ var TextInputRenderer = {
3423
3817
  }
3424
3818
  }
3425
3819
  });
3426
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3820
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3427
3821
  FieldInput_default,
3428
3822
  {
3429
3823
  id,
@@ -3431,7 +3825,7 @@ var TextInputRenderer = {
3431
3825
  description,
3432
3826
  validation: validationState,
3433
3827
  help,
3434
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_components45.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
3828
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components48.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
3435
3829
  }
3436
3830
  );
3437
3831
  }
@@ -3439,13 +3833,13 @@ var TextInputRenderer = {
3439
3833
  var TextInputRenderer_default = TextInputRenderer;
3440
3834
 
3441
3835
  // ../renderers/src/UploadInputRenderer.tsx
3442
- var import_components46 = require("@transferwise/components");
3836
+ var import_components49 = require("@transferwise/components");
3443
3837
 
3444
3838
  // ../renderers/src/utils/getRandomId.ts
3445
3839
  var getRandomId = () => Math.random().toString(36).substring(2);
3446
3840
 
3447
3841
  // ../renderers/src/UploadInputRenderer.tsx
3448
- var import_jsx_runtime66 = require("react/jsx-runtime");
3842
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3449
3843
  var UploadInputRenderer = {
3450
3844
  canRenderType: "input-upload",
3451
3845
  render: (props) => {
@@ -3461,15 +3855,15 @@ var UploadInputRenderer = {
3461
3855
  };
3462
3856
  return (
3463
3857
  // We don't pass help here as there is no sensible place to display it
3464
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3858
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3465
3859
  UploadFieldInput_default,
3466
3860
  {
3467
3861
  id,
3468
3862
  label: void 0,
3469
3863
  description: void 0,
3470
3864
  validation: validationState,
3471
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3472
- import_components46.UploadInput,
3865
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3866
+ import_components49.UploadInput,
3473
3867
  {
3474
3868
  id,
3475
3869
  description,
@@ -3527,7 +3921,7 @@ var LargeUploadRenderer = {
3527
3921
  };
3528
3922
  const filetypes = acceptsToFileTypes(accepts);
3529
3923
  const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
3530
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3924
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3531
3925
  FieldInput_default,
3532
3926
  {
3533
3927
  id,
@@ -3535,8 +3929,8 @@ var LargeUploadRenderer = {
3535
3929
  description,
3536
3930
  validation: validationState,
3537
3931
  help,
3538
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3539
- import_components46.Upload,
3932
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3933
+ import_components49.Upload,
3540
3934
  __spreadProps(__spreadValues({}, uploadProps), {
3541
3935
  usAccept,
3542
3936
  usDisabled: disabled,
@@ -3595,7 +3989,7 @@ var getWiseRenderers = () => [
3595
3989
  // src/dynamicFlow/telemetry/app-version.ts
3596
3990
  var appVersion = (
3597
3991
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
3598
- typeof process !== "undefined" ? "4.21.0" : "0.0.0"
3992
+ typeof process !== "undefined" ? "4.23.0" : "0.0.0"
3599
3993
  );
3600
3994
 
3601
3995
  // src/dynamicFlow/telemetry/getLogEvent.ts
@@ -3635,8 +4029,8 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
3635
4029
  };
3636
4030
 
3637
4031
  // src/dynamicFlow/messages.ts
3638
- var import_react_intl18 = require("react-intl");
3639
- var messages_default = (0, import_react_intl18.defineMessages)({
4032
+ var import_react_intl21 = require("react-intl");
4033
+ var messages_default = (0, import_react_intl21.defineMessages)({
3640
4034
  copied: {
3641
4035
  id: "df.wise.CopyFeedback.copy",
3642
4036
  defaultMessage: "Copied to clipboard",
@@ -3650,12 +4044,12 @@ var messages_default = (0, import_react_intl18.defineMessages)({
3650
4044
  });
3651
4045
 
3652
4046
  // src/dynamicFlow/DynamicFlow.tsx
3653
- var import_jsx_runtime67 = require("react/jsx-runtime");
4047
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3654
4048
  var wiseRenderers = getWiseRenderers();
3655
4049
  function DynamicFlowLegacy(props) {
3656
4050
  const { customFetch = globalThis.fetch } = props;
3657
4051
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
3658
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
4052
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
3659
4053
  }
3660
4054
  function DynamicFlowRevamp(props) {
3661
4055
  const {
@@ -3668,12 +4062,12 @@ function DynamicFlowRevamp(props) {
3668
4062
  onLink = openLinkInNewTab,
3669
4063
  onThemeChange
3670
4064
  } = props;
3671
- const { formatMessage } = (0, import_react_intl19.useIntl)();
4065
+ const { formatMessage } = (0, import_react_intl22.useIntl)();
3672
4066
  const createSnackBar = useSnackBarIfAvailable();
3673
4067
  const httpClient = useWiseHttpClient(customFetch);
3674
- const mergedRenderers = (0, import_react15.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3675
- const logEvent = (0, import_react15.useMemo)(() => getLogEvent(onLog), [onLog]);
3676
- const trackEvent = (0, import_react15.useMemo)(
4068
+ const mergedRenderers = (0, import_react18.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
4069
+ const logEvent = (0, import_react18.useMemo)(() => getLogEvent(onLog), [onLog]);
4070
+ const trackEvent = (0, import_react18.useMemo)(
3677
4071
  () => getTrackEvent(onEvent, onAnalytics, onThemeChange),
3678
4072
  [onEvent, onAnalytics, onThemeChange]
3679
4073
  );
@@ -3692,9 +4086,9 @@ function DynamicFlowRevamp(props) {
3692
4086
  onLink,
3693
4087
  onCopy
3694
4088
  });
3695
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4089
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
3696
4090
  }
3697
- var DynamicForm = (0, import_react15.forwardRef)(function DynamicForm2(props, ref) {
4091
+ var DynamicForm = (0, import_react18.forwardRef)(function DynamicForm2(props, ref) {
3698
4092
  const {
3699
4093
  className = "",
3700
4094
  customFetch = globalThis.fetch,
@@ -3705,12 +4099,12 @@ var DynamicForm = (0, import_react15.forwardRef)(function DynamicForm2(props, re
3705
4099
  onLink = openLinkInNewTab,
3706
4100
  onThemeChange
3707
4101
  } = props;
3708
- const { formatMessage } = (0, import_react_intl19.useIntl)();
4102
+ const { formatMessage } = (0, import_react_intl22.useIntl)();
3709
4103
  const createSnackBar = useSnackBarIfAvailable();
3710
4104
  const httpClient = useWiseHttpClient(customFetch);
3711
- const mergedRenderers = (0, import_react15.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3712
- const logEvent = (0, import_react15.useMemo)(() => getLogEvent(onLog), [onLog]);
3713
- const trackEvent = (0, import_react15.useMemo)(
4105
+ const mergedRenderers = (0, import_react18.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
4106
+ const logEvent = (0, import_react18.useMemo)(() => getLogEvent(onLog), [onLog]);
4107
+ const trackEvent = (0, import_react18.useMemo)(
3714
4108
  () => getTrackEvent(onEvent, onAnalytics, onThemeChange),
3715
4109
  [onEvent, onAnalytics, onThemeChange]
3716
4110
  );
@@ -3729,11 +4123,11 @@ var DynamicForm = (0, import_react15.forwardRef)(function DynamicForm2(props, re
3729
4123
  onLink,
3730
4124
  onCopy
3731
4125
  });
3732
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4126
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
3733
4127
  });
3734
4128
  var useWiseHttpClient = (httpClient) => {
3735
- const { locale } = (0, import_react_intl19.useIntl)();
3736
- return (0, import_react15.useCallback)(
4129
+ const { locale } = (0, import_react_intl22.useIntl)();
4130
+ return (0, import_react18.useCallback)(
3737
4131
  async (input, init = {}) => {
3738
4132
  const headers = new Headers(init.headers);
3739
4133
  headers.set("accept-language", locale);