@wise/dynamic-flow-client-internal 4.18.0 → 4.20.0-experimental-1c8f72d

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,6 +83,7 @@ var de_default = {
83
83
  "df.wise.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.",
84
84
  "df.wise.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.",
85
85
  "df.wise.ArraySchema.removeItem": "Entfernen",
86
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
86
87
  "df.wise.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.",
87
88
  "df.wise.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.",
88
89
  "df.wise.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.",
@@ -93,6 +94,8 @@ var de_default = {
93
94
  "df.wise.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.",
94
95
  "df.wise.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.",
95
96
  "df.wise.ControlFeedback.type": "Falscher Typ",
97
+ "df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
98
+ "df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
96
99
  "df.wise.DynamicParagraph.copied": "In Zwischenablage kopiert",
97
100
  "df.wise.DynamicParagraph.copy": "Kopieren",
98
101
  "df.wise.ErrorBoundary.errorAlert": "Da ist etwas schiefgegangen.",
@@ -118,6 +121,7 @@ var en_default = {
118
121
  "df.wise.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.",
119
122
  "df.wise.ArraySchema.minItemsError": "Please add at least {minItems}.",
120
123
  "df.wise.ArraySchema.removeItem": "Remove",
124
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
121
125
  "df.wise.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.",
122
126
  "df.wise.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.",
123
127
  "df.wise.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.",
@@ -128,6 +132,8 @@ var en_default = {
128
132
  "df.wise.ControlFeedback.patternDate": "Please enter a date in the corrrect format.",
129
133
  "df.wise.ControlFeedback.required": "Please fill out this field.",
130
134
  "df.wise.ControlFeedback.type": "Incorrect type",
135
+ "df.wise.CopyFeedback.copy": "Copied to clipboard",
136
+ "df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
131
137
  "df.wise.DynamicParagraph.copied": "Copied to clipboard",
132
138
  "df.wise.DynamicParagraph.copy": "Copy",
133
139
  "df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
@@ -153,6 +159,7 @@ var es_default = {
153
159
  "df.wise.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.",
154
160
  "df.wise.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.",
155
161
  "df.wise.ArraySchema.removeItem": "Eliminar",
162
+ "df.wise.ButtonLayout.buttonLoadingMessage": "Esto puede tardar unos segundos",
156
163
  "df.wise.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.",
157
164
  "df.wise.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.",
158
165
  "df.wise.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.",
@@ -163,6 +170,8 @@ var es_default = {
163
170
  "df.wise.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.",
164
171
  "df.wise.ControlFeedback.required": "Completa este campo.",
165
172
  "df.wise.ControlFeedback.type": "Tipo incorrecto",
173
+ "df.wise.CopyFeedback.copy": "Copiado al portapapeles",
174
+ "df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
166
175
  "df.wise.DynamicParagraph.copied": "Copiado al portapapeles",
167
176
  "df.wise.DynamicParagraph.copy": "Copiar",
168
177
  "df.wise.ErrorBoundary.errorAlert": "Ha habido un error.",
@@ -188,6 +197,7 @@ var fr_default = {
188
197
  "df.wise.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.",
189
198
  "df.wise.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.",
190
199
  "df.wise.ArraySchema.removeItem": "Supprimer",
200
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
191
201
  "df.wise.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.",
192
202
  "df.wise.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.",
193
203
  "df.wise.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.",
@@ -198,6 +208,8 @@ var fr_default = {
198
208
  "df.wise.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.",
199
209
  "df.wise.ControlFeedback.required": "Champ obligatoire.",
200
210
  "df.wise.ControlFeedback.type": "Type incorrect",
211
+ "df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
212
+ "df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
201
213
  "df.wise.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier",
202
214
  "df.wise.DynamicParagraph.copy": "Copier",
203
215
  "df.wise.ErrorBoundary.errorAlert": "Une erreur s'est produite.",
@@ -223,6 +235,7 @@ var hu_default = {
223
235
  "df.wise.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.",
224
236
  "df.wise.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.",
225
237
  "df.wise.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1s",
238
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
226
239
  "df.wise.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.",
227
240
  "df.wise.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.",
228
241
  "df.wise.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.",
@@ -233,6 +246,8 @@ var hu_default = {
233
246
  "df.wise.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.",
234
247
  "df.wise.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.",
235
248
  "df.wise.ControlFeedback.type": "Helytelen t\xEDpus",
249
+ "df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
250
+ "df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
236
251
  "df.wise.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva",
237
252
  "df.wise.DynamicParagraph.copy": "M\xE1sol\xE1s",
238
253
  "df.wise.ErrorBoundary.errorAlert": "Valami hiba t\xF6rt\xE9nt.",
@@ -258,6 +273,7 @@ var id_default = {
258
273
  "df.wise.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.",
259
274
  "df.wise.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.",
260
275
  "df.wise.ArraySchema.removeItem": "Hapus",
276
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
261
277
  "df.wise.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.",
262
278
  "df.wise.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.",
263
279
  "df.wise.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.",
@@ -268,6 +284,8 @@ var id_default = {
268
284
  "df.wise.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.",
269
285
  "df.wise.ControlFeedback.required": "Harap isi kolom ini.",
270
286
  "df.wise.ControlFeedback.type": "Tipe salah",
287
+ "df.wise.CopyFeedback.copy": "Disalin ke clipboard",
288
+ "df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
271
289
  "df.wise.DynamicParagraph.copied": "Disalin ke clipboard",
272
290
  "df.wise.DynamicParagraph.copy": "Salin",
273
291
  "df.wise.ErrorBoundary.errorAlert": "Terjadi kesalahan.",
@@ -293,6 +311,7 @@ var it_default = {
293
311
  "df.wise.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.",
294
312
  "df.wise.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.",
295
313
  "df.wise.ArraySchema.removeItem": "Rimuovi",
314
+ "df.wise.ButtonLayout.buttonLoadingMessage": "Potrebbero volerci un paio di secondi",
296
315
  "df.wise.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.",
297
316
  "df.wise.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.",
298
317
  "df.wise.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.",
@@ -303,6 +322,8 @@ var it_default = {
303
322
  "df.wise.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.",
304
323
  "df.wise.ControlFeedback.required": "Compila questo campo.",
305
324
  "df.wise.ControlFeedback.type": "Tipo errato",
325
+ "df.wise.CopyFeedback.copy": "Copiato negli appunti",
326
+ "df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
306
327
  "df.wise.DynamicParagraph.copied": "Copiato negli appunti",
307
328
  "df.wise.DynamicParagraph.copy": "Copia",
308
329
  "df.wise.ErrorBoundary.errorAlert": "Qualcosa non ha funzionato.",
@@ -328,6 +349,7 @@ var ja_default = {
328
349
  "df.wise.ArraySchema.maxItemsError": "{maxItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0B\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
329
350
  "df.wise.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
330
351
  "df.wise.ArraySchema.removeItem": "\u524A\u9664\u3059\u308B",
352
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
331
353
  "df.wise.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
332
354
  "df.wise.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
333
355
  "df.wise.ControlFeedback.maximumDate": "{maximum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u524D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
@@ -338,6 +360,8 @@ var ja_default = {
338
360
  "df.wise.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
339
361
  "df.wise.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002",
340
362
  "df.wise.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7",
363
+ "df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
364
+ "df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
341
365
  "df.wise.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
342
366
  "df.wise.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B",
343
367
  "df.wise.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",
@@ -363,6 +387,7 @@ var pl_default = {
363
387
  "df.wise.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.",
364
388
  "df.wise.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.",
365
389
  "df.wise.ArraySchema.removeItem": "Usu\u0144",
390
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
366
391
  "df.wise.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.",
367
392
  "df.wise.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.",
368
393
  "df.wise.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.",
@@ -373,6 +398,8 @@ var pl_default = {
373
398
  "df.wise.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.",
374
399
  "df.wise.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.",
375
400
  "df.wise.ControlFeedback.type": "Nieprawid\u0142owy typ",
401
+ "df.wise.CopyFeedback.copy": "Skopiowano do schowka",
402
+ "df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
376
403
  "df.wise.DynamicParagraph.copied": "Skopiowano do schowka",
377
404
  "df.wise.DynamicParagraph.copy": "Kopiuj",
378
405
  "df.wise.ErrorBoundary.errorAlert": "Co\u015B posz\u0142o nie tak.",
@@ -398,6 +425,7 @@ var pt_default = {
398
425
  "df.wise.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.",
399
426
  "df.wise.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.",
400
427
  "df.wise.ArraySchema.removeItem": "Remover",
428
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
401
429
  "df.wise.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.",
402
430
  "df.wise.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.",
403
431
  "df.wise.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.",
@@ -408,6 +436,8 @@ var pt_default = {
408
436
  "df.wise.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.",
409
437
  "df.wise.ControlFeedback.required": "Por favor, preencha o campo.",
410
438
  "df.wise.ControlFeedback.type": "Tipo incorreto",
439
+ "df.wise.CopyFeedback.copy": "Copiado",
440
+ "df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
411
441
  "df.wise.DynamicParagraph.copied": "Copiado",
412
442
  "df.wise.DynamicParagraph.copy": "Copiar",
413
443
  "df.wise.ErrorBoundary.errorAlert": "Algo deu errado.",
@@ -433,6 +463,7 @@ var ro_default = {
433
463
  "df.wise.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.",
434
464
  "df.wise.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.",
435
465
  "df.wise.ArraySchema.removeItem": "Elimin\u0103",
466
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
436
467
  "df.wise.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.",
437
468
  "df.wise.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.",
438
469
  "df.wise.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.",
@@ -443,6 +474,8 @@ var ro_default = {
443
474
  "df.wise.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.",
444
475
  "df.wise.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.",
445
476
  "df.wise.ControlFeedback.type": "Tip incorect",
477
+ "df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
478
+ "df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
446
479
  "df.wise.DynamicParagraph.copied": "Copiat \xEEn clipboard",
447
480
  "df.wise.DynamicParagraph.copy": "Copiaz\u0103",
448
481
  "df.wise.ErrorBoundary.errorAlert": "Ceva nu a mers bine.",
@@ -468,6 +501,7 @@ var ru_default = {
468
501
  "df.wise.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
469
502
  "df.wise.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.",
470
503
  "df.wise.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
504
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
471
505
  "df.wise.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
472
506
  "df.wise.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
473
507
  "df.wise.ControlFeedback.maximumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {maximum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u044E\u044E.",
@@ -478,6 +512,8 @@ var ru_default = {
478
512
  "df.wise.ControlFeedback.patternDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443 \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.",
479
513
  "df.wise.ControlFeedback.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.",
480
514
  "df.wise.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F",
515
+ "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",
516
+ "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",
481
517
  "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",
482
518
  "df.wise.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
483
519
  "df.wise.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",
@@ -503,6 +539,7 @@ var th_default = {
503
539
  "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",
504
540
  "df.wise.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}",
505
541
  "df.wise.ArraySchema.removeItem": "\u0E25\u0E1A",
542
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
506
543
  "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",
507
544
  "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",
508
545
  "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",
@@ -513,6 +550,8 @@ var th_default = {
513
550
  "df.wise.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
514
551
  "df.wise.ControlFeedback.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",
515
552
  "df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
553
+ "df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
554
+ "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",
516
555
  "df.wise.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
517
556
  "df.wise.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
518
557
  "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",
@@ -538,6 +577,7 @@ var tr_default = {
538
577
  "df.wise.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n",
539
578
  "df.wise.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.",
540
579
  "df.wise.ArraySchema.removeItem": "Kald\u0131r",
580
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
541
581
  "df.wise.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.",
542
582
  "df.wise.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.",
543
583
  "df.wise.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.",
@@ -548,6 +588,8 @@ var tr_default = {
548
588
  "df.wise.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.",
549
589
  "df.wise.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.",
550
590
  "df.wise.ControlFeedback.type": "Ge\xE7ersiz se\xE7im",
591
+ "df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
592
+ "df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
551
593
  "df.wise.DynamicParagraph.copied": "Panoya kopyaland\u0131",
552
594
  "df.wise.DynamicParagraph.copy": "Kopyala",
553
595
  "df.wise.ErrorBoundary.errorAlert": "Bir sorun olu\u015Ftu.",
@@ -573,6 +615,7 @@ var zh_CN_default = {
573
615
  "df.wise.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0\u4E0D\u8D85\u8FC7 {maxItems} \u9879\u3002",
574
616
  "df.wise.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002",
575
617
  "df.wise.ArraySchema.removeItem": "\u79FB\u9664",
618
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
576
619
  "df.wise.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC7 {maxLength} \u4E2A\u5B57\u7B26\u3002",
577
620
  "df.wise.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57\u3002",
578
621
  "df.wise.ControlFeedback.maximumDate": "\u8BF7\u8F93\u5165 {maximum} \u6216\u4E4B\u524D\u7684\u65E5\u671F",
@@ -583,6 +626,8 @@ var zh_CN_default = {
583
626
  "df.wise.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F",
584
627
  "df.wise.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002",
585
628
  "df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
629
+ "df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
630
+ "df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
586
631
  "df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
587
632
  "df.wise.DynamicParagraph.copy": "\u590D\u5236",
588
633
  "df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
@@ -608,6 +653,7 @@ var zh_HK_default = {
608
653
  "df.wise.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002",
609
654
  "df.wise.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002",
610
655
  "df.wise.ArraySchema.removeItem": "\u79FB\u9664",
656
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
611
657
  "df.wise.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002",
612
658
  "df.wise.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002",
613
659
  "df.wise.ControlFeedback.maximumDate": "\u8ACB\u8F38\u5165{maximum}\u6216\u4E4B\u524D\u7684\u65E5\u671F\u3002",
@@ -618,6 +664,8 @@ var zh_HK_default = {
618
664
  "df.wise.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002",
619
665
  "df.wise.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002",
620
666
  "df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
667
+ "df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
668
+ "df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
621
669
  "df.wise.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
622
670
  "df.wise.DynamicParagraph.copy": "\u8907\u88FD",
623
671
  "df.wise.ErrorBoundary.errorAlert": "\u51FA\u4E86\u4E9B\u554F\u984C\u3002",
@@ -665,12 +713,13 @@ var translations = languages.reduce(
665
713
  var i18n_default = translations;
666
714
 
667
715
  // src/dynamicFlow/DynamicFlow.tsx
668
- var import_react14 = require("react");
669
- var import_react_intl16 = require("react-intl");
716
+ var import_react15 = require("react");
717
+ var import_react_intl19 = require("react-intl");
670
718
  var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
671
719
 
672
- // ../renderers/src/AlertRenderer.tsx
720
+ // ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
673
721
  var import_components = require("@transferwise/components");
722
+ var import_react_intl2 = require("react-intl");
674
723
 
675
724
  // ../renderers/src/utils/layout-utils.ts
676
725
  var getMargin = (size) => {
@@ -702,12 +751,59 @@ var getTextAlignment = (align) => {
702
751
  };
703
752
  var getTextAlignmentAndMargin = (component) => `${getTextAlignment(component.align)} ${getMargin(component.margin)}`;
704
753
 
705
- // ../renderers/src/AlertRenderer.tsx
754
+ // ../renderers/src/messages/loading-button.messages.ts
755
+ var import_react_intl = require("react-intl");
756
+ var loading_button_messages_default = (0, import_react_intl.defineMessages)({
757
+ buttonLoadingMessage: {
758
+ id: "df.wise.ButtonLayout.buttonLoadingMessage",
759
+ defaultMessage: "This might take a few seconds",
760
+ description: "Message displayed below a button when it is in a loading state."
761
+ }
762
+ });
763
+
764
+ // ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
765
+ var import_react = require("react");
706
766
  var import_jsx_runtime = require("react/jsx-runtime");
767
+ var AddressValidationButtonRenderer = {
768
+ canRenderType: "button",
769
+ canRender: ({ control }) => control === "address-validation",
770
+ render: AddressValidationButtonComponent
771
+ };
772
+ function AddressValidationButtonComponent(props) {
773
+ const { disabled, margin, title, stepLoadingState, onClick } = props;
774
+ const { formatMessage } = (0, import_react_intl2.useIntl)();
775
+ const [spinny, setSpinny] = (0, import_react.useState)(false);
776
+ (0, import_react.useEffect)(() => {
777
+ if (stepLoadingState === "idle") {
778
+ setSpinny(false);
779
+ }
780
+ }, [stepLoadingState]);
781
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
782
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
783
+ import_components.Button,
784
+ {
785
+ v2: true,
786
+ block: true,
787
+ disabled: stepLoadingState !== "idle" || disabled,
788
+ priority: "primary",
789
+ size: "md",
790
+ loading: spinny,
791
+ onClick,
792
+ children: title
793
+ }
794
+ ),
795
+ spinny && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.InlineAlert, { type: "warning", className: "m-x-auto", children: formatMessage(loading_button_messages_default.buttonLoadingMessage) })
796
+ ] });
797
+ }
798
+ var AddressValidationButtonRenderer_default = AddressValidationButtonRenderer;
799
+
800
+ // ../renderers/src/AlertRenderer.tsx
801
+ var import_components2 = require("@transferwise/components");
802
+ var import_jsx_runtime2 = require("react/jsx-runtime");
707
803
  var AlertRenderer = {
708
804
  canRenderType: "alert",
709
- render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
710
- import_components.Alert,
805
+ render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
806
+ import_components2.Alert,
711
807
  {
712
808
  type: context,
713
809
  className: getMargin(margin),
@@ -729,13 +825,13 @@ var AlertRenderer_default = AlertRenderer;
729
825
 
730
826
  // ../renderers/src/BoxRenderer.tsx
731
827
  var import_classnames = __toESM(require("classnames"));
732
- var import_jsx_runtime2 = require("react/jsx-runtime");
828
+ var import_jsx_runtime3 = require("react/jsx-runtime");
733
829
  var BoxRenderer = {
734
830
  canRenderType: "box",
735
831
  render: ({ children, control, margin, width }) => {
736
832
  const hasFixedWidth = width !== "xl";
737
833
  const hasBorder = control === "bordered" || control === "bordered-web";
738
- const contents = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
834
+ const contents = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
739
835
  "div",
740
836
  {
741
837
  className: (0, import_classnames.default)({
@@ -746,42 +842,43 @@ var BoxRenderer = {
746
842
  children
747
843
  }
748
844
  );
749
- return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
845
+ return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
750
846
  }
751
847
  };
752
848
  var BoxRenderer_default = BoxRenderer;
753
849
 
754
- // ../renderers/src/ButtonRenderer.tsx
755
- var import_components2 = require("@transferwise/components");
756
- var import_react = require("react");
757
- var import_jsx_runtime3 = require("react/jsx-runtime");
850
+ // ../renderers/src/ButtonRenderer/ButtonRenderer.tsx
851
+ var import_components3 = require("@transferwise/components");
852
+ var import_react2 = require("react");
853
+ var import_jsx_runtime4 = require("react/jsx-runtime");
758
854
  var ButtonRenderer = {
759
855
  canRenderType: "button",
760
856
  render: ButtonComponent
761
857
  };
762
858
  function ButtonComponent(props) {
763
859
  const { control, context, disabled, margin, title, size, stepLoadingState, onClick } = props;
764
- const [isActive, setActive] = (0, import_react.useState)(false);
765
- const isLoading = isActive && stepLoadingState !== "idle";
860
+ const [spinny, setSpinny] = (0, import_react2.useState)(false);
861
+ (0, import_react2.useEffect)(() => {
862
+ if (stepLoadingState === "idle") {
863
+ setSpinny(false);
864
+ }
865
+ }, [stepLoadingState]);
766
866
  const priority = mapControl(control);
767
867
  const type = priority === "tertiary" ? void 0 : mapContext(context);
768
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
769
- import_components2.Button,
868
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
869
+ import_components3.Button,
770
870
  {
771
871
  block: true,
772
872
  className: getMargin(margin),
773
- disabled: isLoading ? false : disabled,
873
+ disabled: stepLoadingState !== "idle" || disabled,
774
874
  priority,
775
875
  size: mapSize(size),
776
- loading: isLoading,
876
+ loading: spinny,
777
877
  type,
778
878
  onClick: () => {
779
- setActive(true);
879
+ setSpinny(true);
780
880
  onClick();
781
881
  },
782
- onBlur: () => {
783
- setActive(false);
784
- },
785
882
  children: title
786
883
  }
787
884
  );
@@ -823,15 +920,15 @@ var mapSize = (size) => {
823
920
  var ButtonRenderer_default = ButtonRenderer;
824
921
 
825
922
  // ../renderers/src/components/FieldInput.tsx
826
- var import_components4 = require("@transferwise/components");
923
+ var import_components5 = require("@transferwise/components");
827
924
 
828
925
  // ../renderers/src/components/Help.tsx
829
- var import_components3 = require("@transferwise/components");
830
- var import_react_intl2 = require("react-intl");
926
+ var import_components4 = require("@transferwise/components");
927
+ var import_react_intl4 = require("react-intl");
831
928
 
832
929
  // ../renderers/src/messages/help.messages.ts
833
- var import_react_intl = require("react-intl");
834
- var help_messages_default = (0, import_react_intl.defineMessages)({
930
+ var import_react_intl3 = require("react-intl");
931
+ var help_messages_default = (0, import_react_intl3.defineMessages)({
835
932
  helpAria: {
836
933
  id: "df.wise.Help.ariaLabel",
837
934
  defaultMessage: "Click here for more info.",
@@ -840,14 +937,14 @@ var help_messages_default = (0, import_react_intl.defineMessages)({
840
937
  });
841
938
 
842
939
  // ../renderers/src/components/Help.tsx
843
- var import_jsx_runtime4 = require("react/jsx-runtime");
940
+ var import_jsx_runtime5 = require("react/jsx-runtime");
844
941
  function Help({ help, onClick }) {
845
- const intl = (0, import_react_intl2.useIntl)();
846
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
847
- import_components3.Info,
942
+ const intl = (0, import_react_intl4.useIntl)();
943
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
944
+ import_components4.Info,
848
945
  {
849
946
  className: "m-l-1",
850
- content: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_components3.Markdown, { config: { link: { target: "_blank" } }, children: help }),
947
+ content: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_components4.Markdown, { config: { link: { target: "_blank" } }, children: help }),
851
948
  presentation: "POPOVER",
852
949
  size: "sm",
853
950
  "aria-label": intl.formatMessage(help_messages_default.helpAria),
@@ -858,20 +955,20 @@ function Help({ help, onClick }) {
858
955
  var Help_default = Help;
859
956
 
860
957
  // ../renderers/src/components/LabelContentWithHelp.tsx
861
- var import_jsx_runtime5 = require("react/jsx-runtime");
958
+ var import_jsx_runtime6 = require("react/jsx-runtime");
862
959
  function LabelContentWithHelp({ text, help }) {
863
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
960
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
864
961
  text,
865
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Help_default, { help })
962
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Help_default, { help })
866
963
  ] });
867
964
  }
868
965
 
869
966
  // ../renderers/src/components/FieldInput.tsx
870
- var import_jsx_runtime6 = require("react/jsx-runtime");
967
+ var import_jsx_runtime7 = require("react/jsx-runtime");
871
968
  function FieldInput({ id, children, label, validation, description, help }) {
872
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LabelContentWithHelp, { text: label, help }) : label;
873
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
874
- import_components4.Field,
969
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(LabelContentWithHelp, { text: label, help }) : label;
970
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
971
+ import_components5.Field,
875
972
  {
876
973
  id,
877
974
  label: labelContent,
@@ -894,8 +991,8 @@ var mapStatusToSentiment = (validation) => {
894
991
  var FieldInput_default = FieldInput;
895
992
 
896
993
  // ../renderers/src/CheckboxInputRenderer.tsx
897
- var import_components5 = require("@transferwise/components");
898
- var import_jsx_runtime7 = require("react/jsx-runtime");
994
+ var import_components6 = require("@transferwise/components");
995
+ var import_jsx_runtime8 = require("react/jsx-runtime");
899
996
  var CheckboxInputRenderer = {
900
997
  canRenderType: "input-checkbox",
901
998
  render: (props) => {
@@ -919,17 +1016,17 @@ var CheckboxInputRenderer = {
919
1016
  "value"
920
1017
  ]);
921
1018
  const checkboxProps = __spreadProps(__spreadValues({}, rest), { label: title, secondary: description, checked: value });
922
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_components5.Checkbox, __spreadValues({ id }, checkboxProps)) });
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_components6.Checkbox, __spreadValues({ id }, checkboxProps)) });
923
1020
  }
924
1021
  };
925
1022
  var CheckboxInputRenderer_default = CheckboxInputRenderer;
926
1023
 
927
1024
  // ../renderers/src/ColumnsRenderer.tsx
928
1025
  var import_classnames2 = __toESM(require("classnames"));
929
- var import_jsx_runtime8 = require("react/jsx-runtime");
1026
+ var import_jsx_runtime9 = require("react/jsx-runtime");
930
1027
  var ColumnsRenderer = {
931
1028
  canRenderType: "columns",
932
- render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1029
+ render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
933
1030
  "div",
934
1031
  {
935
1032
  className: (0, import_classnames2.default)("df-columns-renderer-container", getMargin(margin), {
@@ -937,8 +1034,8 @@ var ColumnsRenderer = {
937
1034
  "df-columns-renderer-bias-end": bias === "end"
938
1035
  }),
939
1036
  children: [
940
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "df-columns-renderer-column", children: startChildren }),
941
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "df-columns-renderer-column", children: endChildren })
1037
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "df-columns-renderer-column", children: startChildren }),
1038
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "df-columns-renderer-column", children: endChildren })
942
1039
  ]
943
1040
  }
944
1041
  )
@@ -946,7 +1043,7 @@ var ColumnsRenderer = {
946
1043
  var ColumnsRenderer_default = ColumnsRenderer;
947
1044
 
948
1045
  // ../renderers/src/components/VariableDateInput.tsx
949
- var import_components6 = require("@transferwise/components");
1046
+ var import_components7 = require("@transferwise/components");
950
1047
 
951
1048
  // ../renderers/src/validators/type-validators.ts
952
1049
  var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
@@ -973,7 +1070,7 @@ var dateToDateString = (date) => {
973
1070
  };
974
1071
 
975
1072
  // ../renderers/src/components/VariableDateInput.tsx
976
- var import_jsx_runtime9 = require("react/jsx-runtime");
1073
+ var import_jsx_runtime10 = require("react/jsx-runtime");
977
1074
  function VariableDateInput({
978
1075
  control,
979
1076
  inputProps
@@ -989,8 +1086,8 @@ function VariableDateInput({
989
1086
  onFocus
990
1087
  } = inputProps;
991
1088
  if (control === "date-lookup") {
992
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
993
- import_components6.DateLookup,
1089
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1090
+ import_components7.DateLookup,
994
1091
  {
995
1092
  value: dateStringToDateOrNull(inputProps.value),
996
1093
  min: dateStringToDateOrNull(minimumDate),
@@ -1005,8 +1102,8 @@ function VariableDateInput({
1005
1102
  }
1006
1103
  );
1007
1104
  }
1008
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1009
- import_components6.DateInput,
1105
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1106
+ import_components7.DateInput,
1010
1107
  __spreadProps(__spreadValues({}, inputProps), {
1011
1108
  dayAutoComplete: getAutocompleteString(autoComplete, "day"),
1012
1109
  yearAutoComplete: getAutocompleteString(autoComplete, "year")
@@ -1022,7 +1119,7 @@ var getAutocompleteString = (value, suffix) => {
1022
1119
  var VariableDateInput_default = VariableDateInput;
1023
1120
 
1024
1121
  // ../renderers/src/DateInputRenderer.tsx
1025
- var import_jsx_runtime10 = require("react/jsx-runtime");
1122
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1026
1123
  var DateInputRenderer = {
1027
1124
  canRenderType: "input-date",
1028
1125
  render: (props) => {
@@ -1047,7 +1144,7 @@ var DateInputRenderer = {
1047
1144
  ]);
1048
1145
  const value = initialValue != null ? initialValue : "";
1049
1146
  const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
1050
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1051
1148
  FieldInput_default,
1052
1149
  {
1053
1150
  id,
@@ -1055,7 +1152,7 @@ var DateInputRenderer = {
1055
1152
  description,
1056
1153
  validation: validationState,
1057
1154
  help,
1058
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(VariableDateInput_default, { control, inputProps })
1155
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(VariableDateInput_default, { control, inputProps })
1059
1156
  }
1060
1157
  );
1061
1158
  }
@@ -1063,29 +1160,29 @@ var DateInputRenderer = {
1063
1160
  var DateInputRenderer_default = DateInputRenderer;
1064
1161
 
1065
1162
  // ../renderers/src/DecisionRenderer.tsx
1066
- var import_components9 = require("@transferwise/components");
1163
+ var import_components10 = require("@transferwise/components");
1067
1164
 
1068
1165
  // ../renderers/src/components/OptionMedia.tsx
1069
- var import_components8 = require("@transferwise/components");
1166
+ var import_components9 = require("@transferwise/components");
1070
1167
 
1071
1168
  // ../renderers/src/utils/image-utils.tsx
1072
- var import_components7 = require("@transferwise/components");
1169
+ var import_components8 = require("@transferwise/components");
1073
1170
 
1074
1171
  // ../renderers/src/components/icon/FlagIcon.tsx
1075
1172
  var import_art = require("@wise/art");
1076
- var import_jsx_runtime11 = require("react/jsx-runtime");
1173
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1077
1174
  var isFlagIcon = (name) => name.startsWith("flag-");
1078
1175
  function FlagIcon({ name }) {
1079
1176
  if (!isFlagIcon(name)) {
1080
1177
  return null;
1081
1178
  }
1082
1179
  const code = name.substring(5);
1083
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_art.Flag, { code, intrinsicSize: 24 });
1180
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_art.Flag, { code, intrinsicSize: 24 });
1084
1181
  }
1085
1182
 
1086
1183
  // ../renderers/src/components/icon/NamedIcon.tsx
1087
1184
  var icons = __toESM(require("@transferwise/icons"));
1088
- var import_jsx_runtime12 = require("react/jsx-runtime");
1185
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1089
1186
  var isNamedIcon = (name) => {
1090
1187
  const iconName = toCapitalisedCamelCase(name);
1091
1188
  return Object.keys(icons).includes(iconName);
@@ -1096,19 +1193,19 @@ function NamedIcon({ name }) {
1096
1193
  }
1097
1194
  const iconName = toCapitalisedCamelCase(name);
1098
1195
  const Icon = icons[iconName];
1099
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { size: 24 });
1196
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { size: 24 });
1100
1197
  }
1101
1198
  var toCapitalisedCamelCase = (value) => value.split("-").map(capitaliseFirstChar).join("");
1102
1199
  var capitaliseFirstChar = (value) => `${value[0].toUpperCase()}${value.slice(1)}`;
1103
1200
 
1104
1201
  // ../renderers/src/components/icon/DynamicIcon.tsx
1105
- var import_jsx_runtime13 = require("react/jsx-runtime");
1202
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1106
1203
  function DynamicIcon({ name }) {
1107
1204
  if (isFlagIcon(name)) {
1108
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FlagIcon, { name });
1205
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FlagIcon, { name });
1109
1206
  }
1110
1207
  if (isNamedIcon(name)) {
1111
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(NamedIcon, { name });
1208
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(NamedIcon, { name });
1112
1209
  }
1113
1210
  return null;
1114
1211
  }
@@ -1116,23 +1213,23 @@ var DynamicIcon_default = DynamicIcon;
1116
1213
 
1117
1214
  // ../renderers/src/utils/UrnFlag.tsx
1118
1215
  var import_art2 = require("@wise/art");
1119
- var import_jsx_runtime14 = require("react/jsx-runtime");
1216
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1120
1217
  var countryUrnPrefix = "urn:wise:countries:";
1121
1218
  var currencyUrnPrefix = "urn:wise:currencies:";
1122
1219
  var isUrnFlag = (uri) => uri.startsWith(countryUrnPrefix) || uri.startsWith(currencyUrnPrefix);
1123
1220
  function UrnFlag({ size, urn }) {
1124
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_art2.Flag, { code: getCode(urn), intrinsicSize: size });
1221
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_art2.Flag, { code: getCode(urn), intrinsicSize: size });
1125
1222
  }
1126
1223
  var getCode = (urn) => {
1127
1224
  return urn.replace(countryUrnPrefix, "").replace(currencyUrnPrefix, "").replace(":image", "").split("?")[0];
1128
1225
  };
1129
1226
 
1130
1227
  // ../renderers/src/utils/image-utils.tsx
1131
- var import_jsx_runtime15 = require("react/jsx-runtime");
1228
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1132
1229
  var getBadgedMedia = (iconNode, imageNode, size) => {
1133
1230
  if (iconNode && imageNode) {
1134
1231
  if (imageNode && iconNode) {
1135
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_components7.AvatarView, { size, badge: { asset: iconNode }, children: imageNode });
1232
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components8.AvatarView, { size, badge: { asset: iconNode }, children: imageNode });
1136
1233
  }
1137
1234
  }
1138
1235
  return null;
@@ -1140,7 +1237,7 @@ var getBadgedMedia = (iconNode, imageNode, size) => {
1140
1237
  var getIconNode = (icon) => {
1141
1238
  if (icon) {
1142
1239
  if ("name" in icon) {
1143
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DynamicIcon_default, { name: icon.name });
1240
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DynamicIcon_default, { name: icon.name });
1144
1241
  }
1145
1242
  if (icon.text) {
1146
1243
  return icon.text;
@@ -1152,17 +1249,17 @@ var getImageNode = (image, size) => {
1152
1249
  if (image) {
1153
1250
  const { accessibilityDescription, uri } = image;
1154
1251
  if (!uri.startsWith("urn:")) {
1155
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("img", { src: uri, alt: accessibilityDescription, width: `${size}px` });
1252
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("img", { src: uri, alt: accessibilityDescription, width: `${size}px` });
1156
1253
  }
1157
1254
  if (isUrnFlag(uri)) {
1158
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(UrnFlag, { urn: uri, accessibilityDescription, size });
1255
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(UrnFlag, { urn: uri, accessibilityDescription, size });
1159
1256
  }
1160
1257
  }
1161
1258
  return null;
1162
1259
  };
1163
1260
 
1164
1261
  // ../renderers/src/components/OptionMedia.tsx
1165
- var import_jsx_runtime16 = require("react/jsx-runtime");
1262
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1166
1263
  var mediaSize = 48;
1167
1264
  function OptionMedia({
1168
1265
  icon,
@@ -1176,28 +1273,28 @@ function OptionMedia({
1176
1273
  return badge;
1177
1274
  }
1178
1275
  if (imageNode) {
1179
- return preferAvatar ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components8.AvatarView, { children: imageNode }) : imageNode;
1276
+ return preferAvatar ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components9.AvatarView, { children: imageNode }) : imageNode;
1180
1277
  }
1181
1278
  if (iconNode) {
1182
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components8.AvatarView, { children: iconNode });
1279
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components9.AvatarView, { children: iconNode });
1183
1280
  }
1184
1281
  }
1185
1282
 
1186
1283
  // ../renderers/src/DecisionRenderer.tsx
1187
- var import_jsx_runtime17 = require("react/jsx-runtime");
1284
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1188
1285
  var DecisionRenderer = {
1189
1286
  canRenderType: "decision",
1190
- render: ({ control, margin, options, title }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: getMargin(margin), children: [
1191
- title && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components9.Header, { as: "h2", title }),
1192
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components9.NavigationOptionsList, { children: options.map((option) => {
1287
+ render: ({ control, margin, options, title }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: getMargin(margin), children: [
1288
+ title && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components10.Header, { as: "h2", title }),
1289
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components10.NavigationOptionsList, { children: options.map((option) => {
1193
1290
  const { description, disabled, icon, image, title: itemTitle, tag, onClick } = option;
1194
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1195
- import_components9.NavigationOption,
1291
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1292
+ import_components10.NavigationOption,
1196
1293
  {
1197
1294
  title: itemTitle,
1198
1295
  content: description,
1199
1296
  disabled,
1200
- media: icon || image ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1297
+ media: icon || image ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1201
1298
  OptionMedia,
1202
1299
  {
1203
1300
  icon,
@@ -1217,19 +1314,19 @@ var DecisionRenderer = {
1217
1314
  var DecisionRenderer_default = DecisionRenderer;
1218
1315
 
1219
1316
  // ../renderers/src/DividerRenderer.tsx
1220
- var import_jsx_runtime18 = require("react/jsx-runtime");
1317
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1221
1318
  var DividerRenderer = {
1222
1319
  canRenderType: "divider",
1223
- render: ({ margin }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("hr", { className: `m-t-0 ${getMargin(margin)}` })
1320
+ render: ({ margin }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("hr", { className: `m-t-0 ${getMargin(margin)}` })
1224
1321
  };
1225
1322
  var DividerRenderer_default = DividerRenderer;
1226
1323
 
1227
1324
  // ../renderers/src/ExternalConfirmationRenderer.tsx
1228
- var import_components10 = require("@transferwise/components");
1325
+ var import_components11 = require("@transferwise/components");
1229
1326
 
1230
1327
  // ../renderers/src/messages/external-confirmation.messages.ts
1231
- var import_react_intl3 = require("react-intl");
1232
- var external_confirmation_messages_default = (0, import_react_intl3.defineMessages)({
1328
+ var import_react_intl5 = require("react-intl");
1329
+ var external_confirmation_messages_default = (0, import_react_intl5.defineMessages)({
1233
1330
  title: {
1234
1331
  id: "df.wise.ExternalConfirmation.title",
1235
1332
  defaultMessage: "Please confirm",
@@ -1253,9 +1350,9 @@ var external_confirmation_messages_default = (0, import_react_intl3.defineMessag
1253
1350
  });
1254
1351
 
1255
1352
  // ../renderers/src/ExternalConfirmationRenderer.tsx
1256
- var import_react_intl4 = require("react-intl");
1257
- var import_react2 = require("react");
1258
- var import_jsx_runtime19 = require("react/jsx-runtime");
1353
+ var import_react_intl6 = require("react-intl");
1354
+ var import_react3 = require("react");
1355
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1259
1356
  var ExternalConfirmationRenderer = {
1260
1357
  canRenderType: "external-confirmation",
1261
1358
  render: ExternalConfirmationRendererComponent
@@ -1267,8 +1364,8 @@ function ExternalConfirmationRendererComponent({
1267
1364
  onFailure,
1268
1365
  onCancel
1269
1366
  }) {
1270
- const { formatMessage } = (0, import_react_intl4.useIntl)();
1271
- (0, import_react2.useEffect)(() => {
1367
+ const { formatMessage } = (0, import_react_intl6.useIntl)();
1368
+ (0, import_react3.useEffect)(() => {
1272
1369
  if (url) {
1273
1370
  const w = window.open(url, "_blank");
1274
1371
  if (w) {
@@ -1278,16 +1375,16 @@ function ExternalConfirmationRendererComponent({
1278
1375
  }
1279
1376
  }
1280
1377
  }, []);
1281
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1282
- import_components10.Modal,
1378
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1379
+ import_components11.Modal,
1283
1380
  {
1284
1381
  open: status === "failure",
1285
1382
  title: formatMessage(external_confirmation_messages_default.title),
1286
- body: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1287
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components10.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1288
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
1289
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1290
- import_components10.Button,
1383
+ body: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
1384
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components11.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1385
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
1386
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1387
+ import_components11.Button,
1291
1388
  {
1292
1389
  block: true,
1293
1390
  className: "m-b-2",
@@ -1300,7 +1397,7 @@ function ExternalConfirmationRendererComponent({
1300
1397
  children: formatMessage(external_confirmation_messages_default.open)
1301
1398
  }
1302
1399
  ),
1303
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_components10.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1400
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components11.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1304
1401
  ] }) })
1305
1402
  ] }),
1306
1403
  onClose: onCancel
@@ -1317,46 +1414,46 @@ function getOrigin(url) {
1317
1414
  var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
1318
1415
 
1319
1416
  // ../renderers/src/FormRenderer.tsx
1320
- var import_jsx_runtime20 = require("react/jsx-runtime");
1417
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1321
1418
  var FormRenderer = {
1322
1419
  canRenderType: "form",
1323
- render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getMargin(margin), children })
1420
+ render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getMargin(margin), children })
1324
1421
  };
1325
1422
  var FormRenderer_default = FormRenderer;
1326
1423
 
1327
1424
  // ../renderers/src/FormSectionRenderer.tsx
1328
- var import_components11 = require("@transferwise/components");
1329
- var import_jsx_runtime21 = require("react/jsx-runtime");
1425
+ var import_components12 = require("@transferwise/components");
1426
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1330
1427
  var FormSectionRenderer = {
1331
1428
  canRenderType: "form-section",
1332
- render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("fieldset", { children: [
1333
- title && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1334
- import_components11.Header,
1429
+ render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("fieldset", { children: [
1430
+ title && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1431
+ import_components12.Header,
1335
1432
  {
1336
1433
  as: "h2",
1337
1434
  title
1338
1435
  }
1339
1436
  ),
1340
- description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { children: description }),
1437
+ description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { children: description }),
1341
1438
  children
1342
1439
  ] })
1343
1440
  };
1344
1441
  var FormSectionRenderer_default = FormSectionRenderer;
1345
1442
 
1346
1443
  // ../renderers/src/HeadingRenderer.tsx
1347
- var import_components12 = require("@transferwise/components");
1348
- var import_jsx_runtime22 = require("react/jsx-runtime");
1444
+ var import_components13 = require("@transferwise/components");
1445
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1349
1446
  var HeadingRenderer = {
1350
1447
  canRenderType: "heading",
1351
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Heading, __spreadValues({}, props))
1448
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Heading, __spreadValues({}, props))
1352
1449
  };
1353
1450
  function Heading(props) {
1354
1451
  const { text, size, align, margin, control } = props;
1355
1452
  const className = getTextAlignmentAndMargin({ align, margin });
1356
- return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StandardHeading, { size, text, className });
1453
+ return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StandardHeading, { size, text, className });
1357
1454
  }
1358
1455
  function DisplayHeading({ size, text, className }) {
1359
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components12.Display, { type: getDisplayType(size), className, children: text });
1456
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components13.Display, { type: getDisplayType(size), className, children: text });
1360
1457
  }
1361
1458
  var getDisplayType = (size) => {
1362
1459
  switch (size) {
@@ -1372,7 +1469,7 @@ var getDisplayType = (size) => {
1372
1469
  }
1373
1470
  };
1374
1471
  function StandardHeading({ size, text, className }) {
1375
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components12.Title, { type: getTitleTypeBySize(size), className, children: text });
1472
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components13.Title, { type: getTitleTypeBySize(size), className, children: text });
1376
1473
  }
1377
1474
  var getTitleTypeBySize = (size) => {
1378
1475
  var _a;
@@ -1388,8 +1485,8 @@ var getTitleTypeBySize = (size) => {
1388
1485
  var HeadingRenderer_default = HeadingRenderer;
1389
1486
 
1390
1487
  // ../renderers/src/ImageRenderer/UrlImage.tsx
1391
- var import_components13 = require("@transferwise/components");
1392
- var import_react3 = require("react");
1488
+ var import_components14 = require("@transferwise/components");
1489
+ var import_react4 = require("react");
1393
1490
 
1394
1491
  // ../renderers/src/utils/api-utils.ts
1395
1492
  function isRelativePath(url = "") {
@@ -1399,7 +1496,7 @@ function isRelativePath(url = "") {
1399
1496
  }
1400
1497
 
1401
1498
  // ../renderers/src/ImageRenderer/UrlImage.tsx
1402
- var import_jsx_runtime23 = require("react/jsx-runtime");
1499
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1403
1500
  function UrlImage({
1404
1501
  accessibilityDescription,
1405
1502
  align,
@@ -1408,14 +1505,14 @@ function UrlImage({
1408
1505
  uri,
1409
1506
  httpClient
1410
1507
  }) {
1411
- const [imageSource, setImageSource] = (0, import_react3.useState)("");
1412
- (0, import_react3.useEffect)(() => {
1508
+ const [imageSource, setImageSource] = (0, import_react4.useState)("");
1509
+ (0, import_react4.useEffect)(() => {
1413
1510
  if (!uri.startsWith("urn:")) {
1414
1511
  void getImageSource(httpClient, uri).then(setImageSource);
1415
1512
  }
1416
1513
  }, [uri, httpClient]);
1417
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1418
- import_components13.Image,
1514
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1515
+ import_components14.Image,
1419
1516
  {
1420
1517
  className: `img-responsive ${getMargin(margin)}`,
1421
1518
  alt: accessibilityDescription != null ? accessibilityDescription : "",
@@ -1458,7 +1555,7 @@ var getImageSource = async (httpClient, imageUrl) => {
1458
1555
  };
1459
1556
 
1460
1557
  // ../renderers/src/ImageRenderer/UrnFlagImage.tsx
1461
- var import_jsx_runtime24 = require("react/jsx-runtime");
1558
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1462
1559
  var maxFlagSize = 600;
1463
1560
  function UrnFlagImage({
1464
1561
  accessibilityDescription,
@@ -1467,7 +1564,7 @@ function UrnFlagImage({
1467
1564
  size,
1468
1565
  uri
1469
1566
  }) {
1470
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
1567
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
1471
1568
  }
1472
1569
 
1473
1570
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
@@ -1487,7 +1584,7 @@ var isAnimated = (uri) => {
1487
1584
  };
1488
1585
 
1489
1586
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
1490
- var import_jsx_runtime25 = require("react/jsx-runtime");
1587
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1491
1588
  var urnPrefix = "urn:wise:illustrations:";
1492
1589
  var isUrnIllustration = (uri) => uri.startsWith(urnPrefix);
1493
1590
  function UrnIllustration({
@@ -1501,9 +1598,9 @@ function UrnIllustration({
1501
1598
  const illustrationName = getIllustrationName(uri);
1502
1599
  const illustration3DName = getIllustration3DName(uri);
1503
1600
  if (illustration3DName && isAnimated(uri)) {
1504
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_art3.Illustration3D, { name: illustration3DName, size: illustrationSize }) });
1601
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_art3.Illustration3D, { name: illustration3DName, size: illustrationSize }) });
1505
1602
  }
1506
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1603
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1507
1604
  import_art3.Illustration,
1508
1605
  {
1509
1606
  className: "df-illustration",
@@ -1523,32 +1620,32 @@ var getIllustration3DName = (uri) => {
1523
1620
  };
1524
1621
 
1525
1622
  // ../renderers/src/ImageRenderer/UrnImage.tsx
1526
- var import_jsx_runtime26 = require("react/jsx-runtime");
1623
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1527
1624
  var isUrnImage = (uri) => uri.startsWith("urn:");
1528
1625
  function UrnImage(props) {
1529
1626
  const { uri } = props;
1530
1627
  if (isUrnIllustration(uri)) {
1531
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UrnIllustration, __spreadValues({}, props));
1628
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UrnIllustration, __spreadValues({}, props));
1532
1629
  }
1533
1630
  if (isUrnFlag(uri)) {
1534
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UrnFlagImage, __spreadValues({}, props));
1631
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UrnFlagImage, __spreadValues({}, props));
1535
1632
  }
1536
1633
  return null;
1537
1634
  }
1538
1635
 
1539
1636
  // ../renderers/src/ImageRenderer/ImageRenderer.tsx
1540
- var import_jsx_runtime27 = require("react/jsx-runtime");
1637
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1541
1638
  var ImageRenderer = {
1542
1639
  canRenderType: "image",
1543
- render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UrlImage, __spreadValues({}, props))
1640
+ render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(UrlImage, __spreadValues({}, props))
1544
1641
  };
1545
1642
 
1546
1643
  // ../renderers/src/ImageRenderer/index.tsx
1547
1644
  var ImageRenderer_default = ImageRenderer;
1548
1645
 
1549
1646
  // ../renderers/src/InstructionsRenderer.tsx
1550
- var import_components14 = require("@transferwise/components");
1551
- var import_jsx_runtime28 = require("react/jsx-runtime");
1647
+ var import_components15 = require("@transferwise/components");
1648
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1552
1649
  var doContext = ["positive", "neutral"];
1553
1650
  var dontContext = ["warning", "negative"];
1554
1651
  var InstructionsRenderer = {
@@ -1556,16 +1653,16 @@ var InstructionsRenderer = {
1556
1653
  render: ({ items, margin, title }) => {
1557
1654
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
1558
1655
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
1559
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: getMargin(margin), children: [
1560
- title ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components14.Header, { title }) : null,
1561
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components14.InstructionsList, { dos, donts })
1656
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: getMargin(margin), children: [
1657
+ title ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components15.Header, { title }) : null,
1658
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components15.InstructionsList, { dos, donts })
1562
1659
  ] });
1563
1660
  }
1564
1661
  };
1565
1662
  var InstructionsRenderer_default = InstructionsRenderer;
1566
1663
 
1567
1664
  // ../renderers/src/IntegerInputRenderer.tsx
1568
- var import_components16 = require("@transferwise/components");
1665
+ var import_components17 = require("@transferwise/components");
1569
1666
 
1570
1667
  // ../renderers/src/utils/input-utils.ts
1571
1668
  var onWheel = (event) => {
@@ -1575,8 +1672,8 @@ var onWheel = (event) => {
1575
1672
  };
1576
1673
 
1577
1674
  // ../renderers/src/utils/getInlineAvatar.tsx
1578
- var import_components15 = require("@transferwise/components");
1579
- var import_jsx_runtime29 = require("react/jsx-runtime");
1675
+ var import_components16 = require("@transferwise/components");
1676
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1580
1677
  var mediaSize2 = 24;
1581
1678
  function getInlineAvatar({ icon, image }) {
1582
1679
  const imageNode = getImageNode(image, mediaSize2);
@@ -1592,7 +1689,7 @@ function getInlineAvatar({ icon, image }) {
1592
1689
  return iconNode;
1593
1690
  }
1594
1691
  if (iconNode) {
1595
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components15.AvatarView, { size: mediaSize2, children: iconNode });
1692
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components16.AvatarView, { size: mediaSize2, children: iconNode });
1596
1693
  }
1597
1694
  return null;
1598
1695
  }
@@ -1615,7 +1712,7 @@ function pick(obj, ...keys) {
1615
1712
  }
1616
1713
 
1617
1714
  // ../renderers/src/IntegerInputRenderer.tsx
1618
- var import_jsx_runtime30 = require("react/jsx-runtime");
1715
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1619
1716
  var IntegerInputRenderer = {
1620
1717
  canRenderType: "input-integer",
1621
1718
  render: (props) => {
@@ -1630,7 +1727,7 @@ var IntegerInputRenderer = {
1630
1727
  "maximum",
1631
1728
  "minimum"
1632
1729
  );
1633
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1730
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1634
1731
  FieldInput_default,
1635
1732
  {
1636
1733
  id,
@@ -1638,8 +1735,8 @@ var IntegerInputRenderer = {
1638
1735
  description,
1639
1736
  validation: validationState,
1640
1737
  help,
1641
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components16.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1642
- import_components16.Input,
1738
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1739
+ import_components17.Input,
1643
1740
  __spreadValues({
1644
1741
  id,
1645
1742
  name: id,
@@ -1661,14 +1758,14 @@ var IntegerInputRenderer = {
1661
1758
  var IntegerInputRenderer_default = IntegerInputRenderer;
1662
1759
 
1663
1760
  // ../renderers/src/ListRenderer.tsx
1664
- var import_components17 = require("@transferwise/components");
1761
+ var import_components18 = require("@transferwise/components");
1665
1762
  var import_classnames3 = __toESM(require("classnames"));
1666
- var import_jsx_runtime31 = require("react/jsx-runtime");
1763
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1667
1764
  var ListRenderer = {
1668
1765
  canRenderType: "list",
1669
- render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: getMargin(margin), children: [
1670
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.Header, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
1671
- items.map((props) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
1766
+ render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: getMargin(margin), children: [
1767
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_components18.Header, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
1768
+ items.map((props) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
1672
1769
  ] })
1673
1770
  };
1674
1771
  var DesignSystemListItem = ({
@@ -1679,15 +1776,15 @@ var DesignSystemListItem = ({
1679
1776
  image,
1680
1777
  control,
1681
1778
  tag
1682
- }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1779
+ }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1683
1780
  "label",
1684
1781
  {
1685
1782
  className: (0, import_classnames3.default)("np-option p-a-2", {
1686
1783
  "np-option__sm-media": true,
1687
1784
  "np-option__container-aligned": true
1688
1785
  }),
1689
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "media", children: [
1690
- icon || image ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "media-left", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1786
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "media", children: [
1787
+ icon || image ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "media-left", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1691
1788
  ListItemMedia,
1692
1789
  {
1693
1790
  image,
@@ -1695,14 +1792,14 @@ var DesignSystemListItem = ({
1695
1792
  preferAvatar: control === "with-avatar" || tag === "with-avatar"
1696
1793
  }
1697
1794
  ) }) : null,
1698
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "media-body", children: [
1699
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "d-flex justify-content-between", children: [
1700
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
1701
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
1795
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "media-body", children: [
1796
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "d-flex justify-content-between", children: [
1797
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
1798
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
1702
1799
  ] }),
1703
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "d-flex justify-content-between", children: [
1704
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.Body, { className: "d-block np-option__body", children: description }),
1705
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
1800
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "d-flex justify-content-between", children: [
1801
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_components18.Body, { className: "d-block np-option__body", children: description }),
1802
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_components18.Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
1706
1803
  ] })
1707
1804
  ] })
1708
1805
  ] })
@@ -1715,10 +1812,10 @@ var ListItemMedia = ({
1715
1812
  preferAvatar
1716
1813
  }) => {
1717
1814
  if (icon) {
1718
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(OptionMedia, { icon, image, preferAvatar }) });
1815
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(OptionMedia, { icon, image, preferAvatar }) });
1719
1816
  }
1720
1817
  if (image) {
1721
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(OptionMedia, { icon, image, preferAvatar }) });
1818
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(OptionMedia, { icon, image, preferAvatar }) });
1722
1819
  }
1723
1820
  };
1724
1821
  var getListAction = (callToAction) => {
@@ -1734,12 +1831,12 @@ var getListAction = (callToAction) => {
1734
1831
  var ListRenderer_default = ListRenderer;
1735
1832
 
1736
1833
  // ../renderers/src/LoadingIndicatorRenderer.tsx
1737
- var import_components18 = require("@transferwise/components");
1738
- var import_jsx_runtime32 = require("react/jsx-runtime");
1834
+ var import_components19 = require("@transferwise/components");
1835
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1739
1836
  var LoadingIndicatorRenderer = {
1740
1837
  canRenderType: "loading-indicator",
1741
- render: ({ margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1742
- import_components18.Loader,
1838
+ render: ({ margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1839
+ import_components19.Loader,
1743
1840
  {
1744
1841
  size,
1745
1842
  classNames: { "tw-loader": `tw-loader m-x-auto ${getMargin(margin)}` },
@@ -1750,30 +1847,30 @@ var LoadingIndicatorRenderer = {
1750
1847
  var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
1751
1848
 
1752
1849
  // ../renderers/src/MarkdownRenderer.tsx
1753
- var import_components19 = require("@transferwise/components");
1754
- var import_jsx_runtime33 = require("react/jsx-runtime");
1850
+ var import_components20 = require("@transferwise/components");
1851
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1755
1852
  var MarkdownRenderer = {
1756
1853
  canRenderType: "markdown",
1757
- render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_components19.Markdown, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
1854
+ render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components20.Markdown, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
1758
1855
  };
1759
1856
  var MarkdownRenderer_default = MarkdownRenderer;
1760
1857
 
1761
1858
  // ../renderers/src/ModalLayoutRenderer.tsx
1762
- var import_components20 = require("@transferwise/components");
1763
- var import_react4 = require("react");
1764
- var import_jsx_runtime34 = require("react/jsx-runtime");
1859
+ var import_components21 = require("@transferwise/components");
1860
+ var import_react5 = require("react");
1861
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1765
1862
  var ModalLayoutRenderer = {
1766
1863
  canRenderType: "modal-layout",
1767
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DFModal, __spreadValues({}, props))
1864
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DFModal, __spreadValues({}, props))
1768
1865
  };
1769
1866
  var ModalLayoutRenderer_default = ModalLayoutRenderer;
1770
1867
  function DFModal({ content, margin, trigger }) {
1771
- const [visible, setVisible] = (0, import_react4.useState)(false);
1868
+ const [visible, setVisible] = (0, import_react5.useState)(false);
1772
1869
  const { children, title } = content;
1773
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getMargin(margin), children: [
1774
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components20.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1775
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1776
- import_components20.Modal,
1870
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: getMargin(margin), children: [
1871
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components21.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1872
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1873
+ import_components21.Modal,
1777
1874
  {
1778
1875
  scroll: "content",
1779
1876
  open: visible,
@@ -1787,23 +1884,23 @@ function DFModal({ content, margin, trigger }) {
1787
1884
  }
1788
1885
 
1789
1886
  // ../renderers/src/ModalRenderer.tsx
1790
- var import_components21 = require("@transferwise/components");
1791
- var import_jsx_runtime35 = require("react/jsx-runtime");
1887
+ var import_components22 = require("@transferwise/components");
1888
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1792
1889
  var ModalRenderer = {
1793
1890
  canRenderType: "modal",
1794
1891
  render: ({ title, children, open, onClose }) => {
1795
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components21.Modal, { open, title, body: children, onClose });
1892
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components22.Modal, { open, title, body: children, onClose });
1796
1893
  }
1797
1894
  };
1798
1895
 
1799
1896
  // ../renderers/src/MultiSelectInputRenderer.tsx
1800
- var import_components22 = require("@transferwise/components");
1801
- var import_react5 = require("react");
1802
- var import_react_intl6 = require("react-intl");
1897
+ var import_components23 = require("@transferwise/components");
1898
+ var import_react6 = require("react");
1899
+ var import_react_intl8 = require("react-intl");
1803
1900
 
1804
1901
  // ../renderers/src/messages/multi-select.messages.ts
1805
- var import_react_intl5 = require("react-intl");
1806
- var multi_select_messages_default = (0, import_react_intl5.defineMessages)({
1902
+ var import_react_intl7 = require("react-intl");
1903
+ var multi_select_messages_default = (0, import_react_intl7.defineMessages)({
1807
1904
  summary: {
1808
1905
  id: "df.wise.MultiSelect.summary",
1809
1906
  defaultMessage: "{first} and {count} more",
@@ -1812,14 +1909,14 @@ var multi_select_messages_default = (0, import_react_intl5.defineMessages)({
1812
1909
  });
1813
1910
 
1814
1911
  // ../renderers/src/MultiSelectInputRenderer.tsx
1815
- var import_jsx_runtime36 = require("react/jsx-runtime");
1912
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1816
1913
  var MultiSelectInputRenderer = {
1817
1914
  canRenderType: "input-multi-select",
1818
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
1915
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
1819
1916
  };
1820
1917
  function MultiSelectInputRendererComponent(props) {
1821
- const { formatMessage } = (0, import_react_intl6.useIntl)();
1822
- const [stagedIndices, setStagedIndices] = (0, import_react5.useState)();
1918
+ const { formatMessage } = (0, import_react_intl8.useIntl)();
1919
+ const [stagedIndices, setStagedIndices] = (0, import_react6.useState)();
1823
1920
  const {
1824
1921
  id,
1825
1922
  autoComplete,
@@ -1857,12 +1954,12 @@ function MultiSelectInputRendererComponent(props) {
1857
1954
  const contentProps = {
1858
1955
  title: option.title,
1859
1956
  description: option.description,
1860
- icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(OptionMedia, { icon: option.icon, image: option.image, preferAvatar: false })
1957
+ icon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(OptionMedia, { icon: option.icon, image: option.image, preferAvatar: false })
1861
1958
  };
1862
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components22.SelectInputOptionContent, __spreadValues({}, contentProps));
1959
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components23.SelectInputOptionContent, __spreadValues({}, contentProps));
1863
1960
  };
1864
1961
  const extraProps = { autoComplete };
1865
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1962
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1866
1963
  FieldInput_default,
1867
1964
  {
1868
1965
  id,
@@ -1870,8 +1967,8 @@ function MultiSelectInputRendererComponent(props) {
1870
1967
  help,
1871
1968
  description,
1872
1969
  validation: validationState,
1873
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1874
- import_components22.SelectInput,
1970
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1971
+ import_components23.SelectInput,
1875
1972
  __spreadValues({
1876
1973
  id,
1877
1974
  items: options.map((option, index) => {
@@ -1910,12 +2007,12 @@ function MultiSelectInputRendererComponent(props) {
1910
2007
  var MultiSelectInputRenderer_default = MultiSelectInputRenderer;
1911
2008
 
1912
2009
  // ../renderers/src/MultiUploadInputRenderer.tsx
1913
- var import_components24 = require("@transferwise/components");
2010
+ var import_components25 = require("@transferwise/components");
1914
2011
 
1915
2012
  // ../renderers/src/components/UploadFieldInput.tsx
1916
- var import_components23 = require("@transferwise/components");
2013
+ var import_components24 = require("@transferwise/components");
1917
2014
  var import_classnames4 = __toESM(require("classnames"));
1918
- var import_jsx_runtime37 = require("react/jsx-runtime");
2015
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1919
2016
  function UploadFieldInput({
1920
2017
  id,
1921
2018
  children,
@@ -1924,18 +2021,18 @@ function UploadFieldInput({
1924
2021
  help,
1925
2022
  validation
1926
2023
  }) {
1927
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(LabelContentWithHelp, { text: label, help }) : label;
2024
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LabelContentWithHelp, { text: label, help }) : label;
1928
2025
  const descriptionId = description ? `${id}-description` : void 0;
1929
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2026
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1930
2027
  "div",
1931
2028
  {
1932
2029
  className: (0, import_classnames4.default)("form-group d-block", {
1933
2030
  "has-error": (validation == null ? void 0 : validation.status) === "invalid"
1934
2031
  }),
1935
2032
  children: [
1936
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
2033
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
1937
2034
  children,
1938
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components23.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
2035
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components24.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
1939
2036
  ]
1940
2037
  }
1941
2038
  );
@@ -1964,7 +2061,7 @@ var getFileType = (base64Url) => {
1964
2061
  };
1965
2062
 
1966
2063
  // ../renderers/src/MultiUploadInputRenderer.tsx
1967
- var import_jsx_runtime38 = require("react/jsx-runtime");
2064
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1968
2065
  var MultiUploadInputRenderer = {
1969
2066
  canRenderType: "input-upload-multi",
1970
2067
  render: (props) => {
@@ -1989,7 +2086,7 @@ var MultiUploadInputRenderer = {
1989
2086
  };
1990
2087
  const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
1991
2088
  const descriptionId = description ? `${id}-description` : void 0;
1992
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2089
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1993
2090
  UploadFieldInput_default,
1994
2091
  {
1995
2092
  id,
@@ -1997,8 +2094,8 @@ var MultiUploadInputRenderer = {
1997
2094
  description,
1998
2095
  validation: validationState,
1999
2096
  help,
2000
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2001
- import_components24.UploadInput,
2097
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2098
+ import_components25.UploadInput,
2002
2099
  {
2003
2100
  id,
2004
2101
  "aria-describedby": descriptionId,
@@ -2020,8 +2117,8 @@ var MultiUploadInputRenderer = {
2020
2117
  var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
2021
2118
 
2022
2119
  // ../renderers/src/NumberInputRenderer.tsx
2023
- var import_components25 = require("@transferwise/components");
2024
- var import_jsx_runtime39 = require("react/jsx-runtime");
2120
+ var import_components26 = require("@transferwise/components");
2121
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2025
2122
  var NumberInputRenderer = {
2026
2123
  canRenderType: "input-number",
2027
2124
  render: (props) => {
@@ -2035,7 +2132,7 @@ var NumberInputRenderer = {
2035
2132
  "maximum",
2036
2133
  "minimum"
2037
2134
  );
2038
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2135
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2039
2136
  FieldInput_default,
2040
2137
  {
2041
2138
  id,
@@ -2043,8 +2140,8 @@ var NumberInputRenderer = {
2043
2140
  description,
2044
2141
  validation: validationState,
2045
2142
  help,
2046
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components25.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2047
- import_components25.Input,
2143
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components26.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2144
+ import_components26.Input,
2048
2145
  __spreadValues({
2049
2146
  id,
2050
2147
  name: id,
@@ -2064,24 +2161,24 @@ var NumberInputRenderer = {
2064
2161
  var NumberInputRenderer_default = NumberInputRenderer;
2065
2162
 
2066
2163
  // ../renderers/src/ParagraphRenderer.tsx
2067
- var import_react_intl8 = require("react-intl");
2164
+ var import_react_intl10 = require("react-intl");
2068
2165
 
2069
2166
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
2070
- var import_components26 = require("@transferwise/components");
2071
- var import_react6 = require("react");
2167
+ var import_components27 = require("@transferwise/components");
2168
+ var import_react7 = require("react");
2072
2169
  function useSnackBarIfAvailable() {
2073
- const context = (0, import_react6.useContext)(import_components26.SnackbarContext);
2170
+ const context = (0, import_react7.useContext)(import_components27.SnackbarContext);
2074
2171
  return context ? context.createSnackbar : () => {
2075
2172
  };
2076
2173
  }
2077
2174
 
2078
2175
  // ../renderers/src/ParagraphRenderer.tsx
2079
- var import_components27 = require("@transferwise/components");
2176
+ var import_components28 = require("@transferwise/components");
2080
2177
  var import_classnames5 = __toESM(require("classnames"));
2081
2178
 
2082
2179
  // ../renderers/src/messages/paragraph.messages.ts
2083
- var import_react_intl7 = require("react-intl");
2084
- var paragraph_messages_default = (0, import_react_intl7.defineMessages)({
2180
+ var import_react_intl9 = require("react-intl");
2181
+ var paragraph_messages_default = (0, import_react_intl9.defineMessages)({
2085
2182
  copy: {
2086
2183
  id: "df.wise.DynamicParagraph.copy",
2087
2184
  defaultMessage: "Copy",
@@ -2095,33 +2192,33 @@ var paragraph_messages_default = (0, import_react_intl7.defineMessages)({
2095
2192
  });
2096
2193
 
2097
2194
  // ../renderers/src/ParagraphRenderer.tsx
2098
- var import_jsx_runtime40 = require("react/jsx-runtime");
2195
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2099
2196
  var ParagraphRenderer = {
2100
2197
  canRenderType: "paragraph",
2101
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Paragraph, __spreadValues({}, props))
2198
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Paragraph, __spreadValues({}, props))
2102
2199
  };
2103
2200
  function Paragraph({ align, control, margin, text }) {
2104
2201
  const className = getTextAlignmentAndMargin({ align, margin });
2105
- return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(StandardParagraph, { className, text });
2202
+ return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StandardParagraph, { className, text });
2106
2203
  }
2107
2204
  function StandardParagraph({ text, className }) {
2108
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
2205
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
2109
2206
  }
2110
2207
  function CopyableParagraph({
2111
2208
  text,
2112
2209
  align,
2113
2210
  className
2114
2211
  }) {
2115
- const { formatMessage } = (0, import_react_intl8.useIntl)();
2212
+ const { formatMessage } = (0, import_react_intl10.useIntl)();
2116
2213
  const createSnackbar = useSnackBarIfAvailable();
2117
2214
  const copy = () => {
2118
2215
  navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
2119
2216
  });
2120
2217
  };
2121
2218
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
2122
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className, children: [
2123
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2124
- import_components27.Input,
2219
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className, children: [
2220
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2221
+ import_components28.Input,
2125
2222
  {
2126
2223
  type: "text",
2127
2224
  value: text,
@@ -2129,21 +2226,21 @@ function CopyableParagraph({
2129
2226
  className: (0, import_classnames5.default)("text-ellipsis", inputAlignmentClasses)
2130
2227
  }
2131
2228
  ),
2132
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components27.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2229
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components28.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2133
2230
  ] });
2134
2231
  }
2135
2232
  var ParagraphRenderer_default = ParagraphRenderer;
2136
2233
 
2137
2234
  // ../renderers/src/RepeatableRenderer.tsx
2138
- var import_components28 = require("@transferwise/components");
2235
+ var import_components29 = require("@transferwise/components");
2139
2236
  var import_icons = require("@transferwise/icons");
2140
2237
  var import_classnames6 = __toESM(require("classnames"));
2141
- var import_react7 = require("react");
2142
- var import_react_intl10 = require("react-intl");
2238
+ var import_react8 = require("react");
2239
+ var import_react_intl12 = require("react-intl");
2143
2240
 
2144
2241
  // ../renderers/src/messages/repeatable.messages.ts
2145
- var import_react_intl9 = require("react-intl");
2146
- var repeatable_messages_default = (0, import_react_intl9.defineMessages)({
2242
+ var import_react_intl11 = require("react-intl");
2243
+ var repeatable_messages_default = (0, import_react_intl11.defineMessages)({
2147
2244
  addItemTitle: {
2148
2245
  id: "df.wise.ArraySchema.addItemTitle",
2149
2246
  defaultMessage: "Add Item",
@@ -2167,10 +2264,10 @@ var repeatable_messages_default = (0, import_react_intl9.defineMessages)({
2167
2264
  });
2168
2265
 
2169
2266
  // ../renderers/src/RepeatableRenderer.tsx
2170
- var import_jsx_runtime41 = require("react/jsx-runtime");
2267
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2171
2268
  var RepeatableRenderer = {
2172
2269
  canRenderType: "repeatable",
2173
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Repeatable, __spreadValues({}, props))
2270
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Repeatable, __spreadValues({}, props))
2174
2271
  };
2175
2272
  function Repeatable(props) {
2176
2273
  const {
@@ -2186,8 +2283,8 @@ function Repeatable(props) {
2186
2283
  onSave,
2187
2284
  onRemove
2188
2285
  } = props;
2189
- const { formatMessage } = (0, import_react_intl10.useIntl)();
2190
- const [openModalType, setOpenModalType] = (0, import_react7.useState)(null);
2286
+ const { formatMessage } = (0, import_react_intl12.useIntl)();
2287
+ const [openModalType, setOpenModalType] = (0, import_react8.useState)(null);
2191
2288
  const onAddItem = () => {
2192
2289
  onAdd();
2193
2290
  setOpenModalType("add");
@@ -2209,40 +2306,40 @@ function Repeatable(props) {
2209
2306
  const onCancelEdit = () => {
2210
2307
  setOpenModalType(null);
2211
2308
  };
2212
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
2213
- title && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components28.Header, { title }),
2214
- description && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { children: description }),
2215
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2309
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
2310
+ title && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components29.Header, { title }),
2311
+ description && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { children: description }),
2312
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2216
2313
  "div",
2217
2314
  {
2218
2315
  className: (0, import_classnames6.default)("form-group", {
2219
2316
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
2220
2317
  }),
2221
2318
  children: [
2222
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2223
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2224
- import_components28.NavigationOption,
2319
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2320
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2321
+ import_components29.NavigationOption,
2225
2322
  {
2226
- media: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons.Plus, {}),
2323
+ media: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons.Plus, {}),
2227
2324
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
2228
2325
  showMediaAtAllSizes: true,
2229
2326
  onClick: () => onAddItem()
2230
2327
  }
2231
2328
  ),
2232
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components28.InlineAlert, { type: "negative", children: validationState.message })
2329
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components29.InlineAlert, { type: "negative", children: validationState.message })
2233
2330
  ]
2234
2331
  }
2235
2332
  ),
2236
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2237
- import_components28.Modal,
2333
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2334
+ import_components29.Modal,
2238
2335
  {
2239
2336
  open: openModalType !== null,
2240
2337
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
2241
- body: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
2242
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "m-b-2", children: editableItem }),
2243
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
2244
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components28.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2245
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components28.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
2338
+ body: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
2339
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "m-b-2", children: editableItem }),
2340
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
2341
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components29.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2342
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components29.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
2246
2343
  ] })
2247
2344
  ] }),
2248
2345
  onClose: () => onCancelEdit()
@@ -2254,10 +2351,10 @@ function ItemSummaryOption({
2254
2351
  item,
2255
2352
  onClick
2256
2353
  }) {
2257
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2258
- import_components28.NavigationOption,
2354
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2355
+ import_components29.NavigationOption,
2259
2356
  {
2260
- media: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(OptionMedia, __spreadProps(__spreadValues({}, item), { preferAvatar: false })),
2357
+ media: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(OptionMedia, __spreadProps(__spreadValues({}, item), { preferAvatar: false })),
2261
2358
  title: item.title,
2262
2359
  content: item.description,
2263
2360
  showMediaAtAllSizes: true,
@@ -2268,7 +2365,7 @@ function ItemSummaryOption({
2268
2365
  var RepeatableRenderer_default = RepeatableRenderer;
2269
2366
 
2270
2367
  // ../renderers/src/ReviewRenderer.tsx
2271
- var import_components29 = require("@transferwise/components");
2368
+ var import_components30 = require("@transferwise/components");
2272
2369
 
2273
2370
  // ../renderers/src/utils/getHeaderAction.tsx
2274
2371
  var getHeaderAction = (callToAction) => {
@@ -2292,15 +2389,15 @@ var getHeaderAction = (callToAction) => {
2292
2389
  };
2293
2390
 
2294
2391
  // ../renderers/src/ReviewRenderer.tsx
2295
- var import_jsx_runtime42 = require("react/jsx-runtime");
2392
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2296
2393
  var ReviewRenderer = {
2297
2394
  canRenderType: "review",
2298
2395
  render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
2299
2396
  const orientation = mapControlToDefinitionListLayout(control);
2300
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getMargin(margin), children: [
2301
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components29.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
2302
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2303
- import_components29.DefinitionList,
2397
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: getMargin(margin), children: [
2398
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components30.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
2399
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2400
+ import_components30.DefinitionList,
2304
2401
  {
2305
2402
  layout: orientation,
2306
2403
  definitions: fields.map(
@@ -2338,27 +2435,27 @@ var mapControlToDefinitionListLayout = (control) => {
2338
2435
  };
2339
2436
  var getFieldValue = (value, help, orientation, onClick) => {
2340
2437
  if (help) {
2341
- return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
2342
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Help_default, { help, onClick }),
2438
+ return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
2439
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Help_default, { help, onClick }),
2343
2440
  " ",
2344
2441
  value
2345
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
2442
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
2346
2443
  value,
2347
2444
  " ",
2348
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Help_default, { help, onClick })
2445
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Help_default, { help, onClick })
2349
2446
  ] });
2350
2447
  }
2351
2448
  return value;
2352
2449
  };
2353
2450
 
2354
2451
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2355
- var import_components31 = require("@transferwise/components");
2356
- var import_react8 = require("react");
2357
- var import_react_intl14 = require("react-intl");
2452
+ var import_components32 = require("@transferwise/components");
2453
+ var import_react9 = require("react");
2454
+ var import_react_intl16 = require("react-intl");
2358
2455
 
2359
2456
  // ../renderers/src/messages/search.messages.ts
2360
- var import_react_intl11 = require("react-intl");
2361
- var search_messages_default = (0, import_react_intl11.defineMessages)({
2457
+ var import_react_intl13 = require("react-intl");
2458
+ var search_messages_default = (0, import_react_intl13.defineMessages)({
2362
2459
  loading: {
2363
2460
  id: "df.wise.SearchLayout.loading",
2364
2461
  defaultMessage: "Loading...",
@@ -2367,11 +2464,11 @@ var search_messages_default = (0, import_react_intl11.defineMessages)({
2367
2464
  });
2368
2465
 
2369
2466
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
2370
- var import_react_intl13 = require("react-intl");
2467
+ var import_react_intl15 = require("react-intl");
2371
2468
 
2372
2469
  // ../renderers/src/messages/generic-error.messages.ts
2373
- var import_react_intl12 = require("react-intl");
2374
- var generic_error_messages_default = (0, import_react_intl12.defineMessages)({
2470
+ var import_react_intl14 = require("react-intl");
2471
+ var generic_error_messages_default = (0, import_react_intl14.defineMessages)({
2375
2472
  genericErrorRetryHint: {
2376
2473
  id: "df.wise.PersistAsyncSchema.genericError",
2377
2474
  defaultMessage: "Something went wrong, please try again.",
@@ -2390,20 +2487,20 @@ var generic_error_messages_default = (0, import_react_intl12.defineMessages)({
2390
2487
  });
2391
2488
 
2392
2489
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
2393
- var import_components30 = require("@transferwise/components");
2394
- var import_jsx_runtime43 = require("react/jsx-runtime");
2490
+ var import_components31 = require("@transferwise/components");
2491
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2395
2492
  function ErrorResult({ state }) {
2396
- const intl = (0, import_react_intl13.useIntl)();
2493
+ const intl = (0, import_react_intl15.useIntl)();
2397
2494
  const buttonVisualProps = {
2398
2495
  priority: "tertiary",
2399
2496
  size: "sm",
2400
2497
  style: { marginTop: "-2px", padding: "0", width: "auto", display: "inline" }
2401
2498
  };
2402
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("p", { className: "m-t-2", children: [
2499
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("p", { className: "m-t-2", children: [
2403
2500
  intl.formatMessage(generic_error_messages_default.genericError),
2404
2501
  "\xA0",
2405
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2406
- import_components30.Button,
2502
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2503
+ import_components31.Button,
2407
2504
  __spreadProps(__spreadValues({}, buttonVisualProps), {
2408
2505
  onClick: () => {
2409
2506
  state.onRetry();
@@ -2415,7 +2512,7 @@ function ErrorResult({ state }) {
2415
2512
  }
2416
2513
 
2417
2514
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2418
- var import_jsx_runtime44 = require("react/jsx-runtime");
2515
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2419
2516
  function BlockSearchRendererComponent({
2420
2517
  id,
2421
2518
  isLoading,
@@ -2426,11 +2523,11 @@ function BlockSearchRendererComponent({
2426
2523
  trackEvent,
2427
2524
  onChange
2428
2525
  }) {
2429
- const [hasSearched, setHasSearched] = (0, import_react8.useState)(false);
2430
- const { formatMessage } = (0, import_react_intl14.useIntl)();
2431
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: getMargin(margin), children: [
2432
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2433
- import_components31.Input,
2526
+ const [hasSearched, setHasSearched] = (0, import_react9.useState)(false);
2527
+ const { formatMessage } = (0, import_react_intl16.useIntl)();
2528
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: getMargin(margin), children: [
2529
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2530
+ import_components32.Input,
2434
2531
  {
2435
2532
  id,
2436
2533
  name: id,
@@ -2446,7 +2543,7 @@ function BlockSearchRendererComponent({
2446
2543
  }
2447
2544
  }
2448
2545
  ) }),
2449
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SearchResultContent, { state, trackEvent })
2546
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SearchResultContent, { state, trackEvent })
2450
2547
  ] });
2451
2548
  }
2452
2549
  function SearchResultContent({
@@ -2455,27 +2552,27 @@ function SearchResultContent({
2455
2552
  }) {
2456
2553
  switch (state.type) {
2457
2554
  case "error":
2458
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ErrorResult, { state });
2555
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ErrorResult, { state });
2459
2556
  case "results":
2460
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SearchResults, { state, trackEvent });
2557
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SearchResults, { state, trackEvent });
2461
2558
  case "noResults":
2462
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(EmptySearchResult, { state });
2559
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(EmptySearchResult, { state });
2463
2560
  case "pending":
2464
2561
  default:
2465
2562
  return null;
2466
2563
  }
2467
2564
  }
2468
2565
  function EmptySearchResult({ state }) {
2469
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components31.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2566
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_components32.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2470
2567
  }
2471
2568
  function SearchResults({
2472
2569
  state,
2473
2570
  trackEvent
2474
2571
  }) {
2475
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components31.NavigationOptionsList, { children: state.results.map((result) => {
2572
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_components32.NavigationOptionsList, { children: state.results.map((result) => {
2476
2573
  const { icon, image } = result;
2477
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2478
- import_components31.NavigationOption,
2574
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2575
+ import_components32.NavigationOption,
2479
2576
  {
2480
2577
  title: result.title,
2481
2578
  content: result.description,
@@ -2496,11 +2593,11 @@ function SearchResults({
2496
2593
  var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
2497
2594
 
2498
2595
  // ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
2499
- var import_components32 = require("@transferwise/components");
2596
+ var import_components33 = require("@transferwise/components");
2500
2597
  var import_icons2 = require("@transferwise/icons");
2501
- var import_react9 = require("react");
2502
- var import_react_intl15 = require("react-intl");
2503
- var import_jsx_runtime45 = require("react/jsx-runtime");
2598
+ var import_react10 = require("react");
2599
+ var import_react_intl17 = require("react-intl");
2600
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2504
2601
  function InlineSearchRenderer({
2505
2602
  id,
2506
2603
  isLoading,
@@ -2510,20 +2607,20 @@ function InlineSearchRenderer({
2510
2607
  title,
2511
2608
  trackEvent
2512
2609
  }) {
2513
- const [hasSearched, setHasSearched] = (0, import_react9.useState)(false);
2514
- const intl = (0, import_react_intl15.useIntl)();
2515
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2516
- import_components32.Typeahead,
2610
+ const [hasSearched, setHasSearched] = (0, import_react10.useState)(false);
2611
+ const intl = (0, import_react_intl17.useIntl)();
2612
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2613
+ import_components33.Typeahead,
2517
2614
  {
2518
2615
  id: "typeahead-input-id",
2519
2616
  intl,
2520
2617
  name: "typeahead-input-name",
2521
2618
  size: "md",
2522
2619
  maxHeight: 100,
2523
- footer: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TypeaheadFooter, { state, isLoading }),
2620
+ footer: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TypeaheadFooter, { state, isLoading }),
2524
2621
  multiple: false,
2525
2622
  clearable: false,
2526
- addon: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons2.Search, { size: 24 }),
2623
+ addon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons2.Search, { size: 24 }),
2527
2624
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
2528
2625
  minQueryLength: 1,
2529
2626
  onChange: (values) => {
@@ -2558,36 +2655,36 @@ function mapResultToTypeaheadOption(result) {
2558
2655
  };
2559
2656
  }
2560
2657
  function TypeaheadFooter({ state, isLoading }) {
2561
- const { formatMessage } = (0, import_react_intl15.useIntl)();
2658
+ const { formatMessage } = (0, import_react_intl17.useIntl)();
2562
2659
  if (state.type === "noResults") {
2563
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_components32.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2660
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components33.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2564
2661
  }
2565
2662
  if (state.type === "error") {
2566
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ErrorResult, { state }) });
2663
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ErrorResult, { state }) });
2567
2664
  }
2568
2665
  if (state.type === "pending" || isLoading) {
2569
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2666
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2570
2667
  }
2571
2668
  return null;
2572
2669
  }
2573
2670
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
2574
2671
 
2575
2672
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
2576
- var import_jsx_runtime46 = require("react/jsx-runtime");
2673
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2577
2674
  var SearchRenderer = {
2578
2675
  canRenderType: "search",
2579
- render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
2676
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
2580
2677
  };
2581
2678
  var SearchRenderer_default = SearchRenderer;
2582
2679
 
2583
2680
  // ../renderers/src/SectionRenderer.tsx
2584
- var import_components33 = require("@transferwise/components");
2585
- var import_jsx_runtime47 = require("react/jsx-runtime");
2681
+ var import_components34 = require("@transferwise/components");
2682
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2586
2683
  var SectionRenderer = {
2587
2684
  canRenderType: "section",
2588
2685
  render: ({ children, callToAction, margin, title }) => {
2589
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("section", { className: getMargin(margin), children: [
2590
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components33.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
2686
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("section", { className: getMargin(margin), children: [
2687
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_components34.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) }),
2591
2688
  children
2592
2689
  ] });
2593
2690
  }
@@ -2595,8 +2692,8 @@ var SectionRenderer = {
2595
2692
  var SectionRenderer_default = SectionRenderer;
2596
2693
 
2597
2694
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
2598
- var import_components34 = require("@transferwise/components");
2599
- var import_jsx_runtime48 = require("react/jsx-runtime");
2695
+ var import_components35 = require("@transferwise/components");
2696
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2600
2697
  function RadioInputRendererComponent(props) {
2601
2698
  const {
2602
2699
  id,
@@ -2610,8 +2707,8 @@ function RadioInputRendererComponent(props) {
2610
2707
  validationState,
2611
2708
  onSelect
2612
2709
  } = props;
2613
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
2614
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2710
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
2711
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2615
2712
  FieldInput_default,
2616
2713
  {
2617
2714
  id,
@@ -2619,8 +2716,8 @@ function RadioInputRendererComponent(props) {
2619
2716
  help,
2620
2717
  description,
2621
2718
  validation: validationState,
2622
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2623
- import_components34.RadioGroup,
2719
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2720
+ import_components35.RadioGroup,
2624
2721
  {
2625
2722
  name: id,
2626
2723
  radios: options.map((option, index) => ({
@@ -2628,7 +2725,7 @@ function RadioInputRendererComponent(props) {
2628
2725
  value: index,
2629
2726
  secondary: option.description,
2630
2727
  disabled: option.disabled || disabled,
2631
- avatar: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(OptionMedia, { icon: option.icon, image: option.image, preferAvatar: false })
2728
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(OptionMedia, { icon: option.icon, image: option.image, preferAvatar: false })
2632
2729
  })),
2633
2730
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
2634
2731
  onChange: onSelect
@@ -2642,9 +2739,9 @@ function RadioInputRendererComponent(props) {
2642
2739
  }
2643
2740
 
2644
2741
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
2645
- var import_components35 = require("@transferwise/components");
2646
- var import_react10 = require("react");
2647
- var import_jsx_runtime49 = require("react/jsx-runtime");
2742
+ var import_components36 = require("@transferwise/components");
2743
+ var import_react11 = require("react");
2744
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2648
2745
  function TabInputRendererComponent(props) {
2649
2746
  const {
2650
2747
  id,
@@ -2658,13 +2755,13 @@ function TabInputRendererComponent(props) {
2658
2755
  validationState,
2659
2756
  onSelect
2660
2757
  } = props;
2661
- (0, import_react10.useEffect)(() => {
2758
+ (0, import_react11.useEffect)(() => {
2662
2759
  if (!isValidIndex(selectedIndex, options.length)) {
2663
2760
  onSelect(0);
2664
2761
  }
2665
2762
  }, [selectedIndex, onSelect, options.length]);
2666
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
2667
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2763
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
2764
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2668
2765
  FieldInput_default,
2669
2766
  {
2670
2767
  id,
@@ -2672,8 +2769,8 @@ function TabInputRendererComponent(props) {
2672
2769
  help,
2673
2770
  description,
2674
2771
  validation: validationState,
2675
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2676
- import_components35.Tabs,
2772
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2773
+ import_components36.Tabs,
2677
2774
  {
2678
2775
  name: id,
2679
2776
  selected: selectedIndex != null ? selectedIndex : 0,
@@ -2681,7 +2778,7 @@ function TabInputRendererComponent(props) {
2681
2778
  title: option.title,
2682
2779
  // if we pass null, we get some props-types console errors
2683
2780
  // eslint-disable-next-line react/jsx-no-useless-fragment
2684
- content: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, {}),
2781
+ content: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, {}),
2685
2782
  disabled: option.disabled || disabled
2686
2783
  })),
2687
2784
  onTabSelect: onSelect
@@ -2695,8 +2792,8 @@ function TabInputRendererComponent(props) {
2695
2792
  var isValidIndex = (index, options) => index !== null && index >= 0 && index < options;
2696
2793
 
2697
2794
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
2698
- var import_components36 = require("@transferwise/components");
2699
- var import_jsx_runtime50 = require("react/jsx-runtime");
2795
+ var import_components37 = require("@transferwise/components");
2796
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2700
2797
  function SelectInputRendererComponent(props) {
2701
2798
  const {
2702
2799
  id,
@@ -2736,13 +2833,13 @@ function SelectInputRendererComponent(props) {
2736
2833
  } : {
2737
2834
  title: option.title,
2738
2835
  description: option.description,
2739
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(OptionMedia, { icon: option.icon, image: option.image, preferAvatar: false })
2836
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(OptionMedia, { icon: option.icon, image: option.image, preferAvatar: false })
2740
2837
  };
2741
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components36.SelectInputOptionContent, __spreadValues({}, contentProps));
2838
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components37.SelectInputOptionContent, __spreadValues({}, contentProps));
2742
2839
  };
2743
2840
  const extraProps = { autoComplete };
2744
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
2745
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2841
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2842
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2746
2843
  FieldInput_default,
2747
2844
  {
2748
2845
  id,
@@ -2750,8 +2847,8 @@ function SelectInputRendererComponent(props) {
2750
2847
  help,
2751
2848
  description,
2752
2849
  validation: validationState,
2753
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2754
- import_components36.SelectInput,
2850
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2851
+ import_components37.SelectInput,
2755
2852
  __spreadValues({
2756
2853
  name: id,
2757
2854
  placeholder,
@@ -2771,9 +2868,9 @@ function SelectInputRendererComponent(props) {
2771
2868
  }
2772
2869
 
2773
2870
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
2774
- var import_react11 = require("react");
2775
- var import_components37 = require("@transferwise/components");
2776
- var import_jsx_runtime51 = require("react/jsx-runtime");
2871
+ var import_react12 = require("react");
2872
+ var import_components38 = require("@transferwise/components");
2873
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2777
2874
  function SegmentedInputRendererComponent(props) {
2778
2875
  const {
2779
2876
  id,
@@ -2786,13 +2883,13 @@ function SegmentedInputRendererComponent(props) {
2786
2883
  validationState,
2787
2884
  onSelect
2788
2885
  } = props;
2789
- (0, import_react11.useEffect)(() => {
2886
+ (0, import_react12.useEffect)(() => {
2790
2887
  if (!isValidIndex2(selectedIndex, options.length)) {
2791
2888
  onSelect(0);
2792
2889
  }
2793
2890
  }, [selectedIndex, onSelect, options.length]);
2794
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2795
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2891
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
2892
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2796
2893
  FieldInput_default,
2797
2894
  {
2798
2895
  id,
@@ -2800,8 +2897,8 @@ function SegmentedInputRendererComponent(props) {
2800
2897
  help,
2801
2898
  description,
2802
2899
  validation: validationState,
2803
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2804
- import_components37.SegmentedControl,
2900
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2901
+ import_components38.SegmentedControl,
2805
2902
  {
2806
2903
  name: `${id}-segmented-control`,
2807
2904
  value: String(selectedIndex),
@@ -2817,44 +2914,44 @@ function SegmentedInputRendererComponent(props) {
2817
2914
  )
2818
2915
  }
2819
2916
  ),
2820
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { id: `${id}-children`, children })
2917
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { id: `${id}-children`, children })
2821
2918
  ] });
2822
2919
  }
2823
2920
  var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
2824
2921
 
2825
2922
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
2826
- var import_jsx_runtime52 = require("react/jsx-runtime");
2923
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2827
2924
  var SelectInputRenderer = {
2828
2925
  canRenderType: "input-select",
2829
2926
  render: (props) => {
2830
2927
  switch (props.control) {
2831
2928
  case "radio":
2832
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
2929
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
2833
2930
  case "tab":
2834
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabInputRendererComponent, __spreadValues({}, props));
2931
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TabInputRendererComponent, __spreadValues({}, props));
2835
2932
  case "segmented":
2836
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
2933
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
2837
2934
  case "select":
2838
2935
  default:
2839
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
2936
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
2840
2937
  }
2841
2938
  }
2842
2939
  };
2843
2940
  var SelectInputRenderer_default = SelectInputRenderer;
2844
2941
 
2845
2942
  // ../renderers/src/StatusListRenderer.tsx
2846
- var import_components38 = require("@transferwise/components");
2847
- var import_jsx_runtime53 = require("react/jsx-runtime");
2943
+ var import_components39 = require("@transferwise/components");
2944
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2848
2945
  var StatusListRenderer = {
2849
2946
  canRenderType: "status-list",
2850
- render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: getMargin(margin), children: [
2851
- title ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components38.Header, { title, className: "m-b-2" }) : null,
2852
- items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2853
- import_components38.Summary,
2947
+ render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: getMargin(margin), children: [
2948
+ title ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components39.Header, { title, className: "m-b-2" }) : null,
2949
+ items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2950
+ import_components39.Summary,
2854
2951
  {
2855
2952
  title: itemTitle,
2856
2953
  description,
2857
- icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DynamicIcon_default, { name: icon.name }) : null,
2954
+ icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(DynamicIcon_default, { name: icon.name }) : null,
2858
2955
  status: mapStatus(status),
2859
2956
  action: getSummaryAction(callToAction)
2860
2957
  },
@@ -2891,12 +2988,12 @@ var mapStatus = (status) => {
2891
2988
 
2892
2989
  // ../renderers/src/utils/useCustomTheme.ts
2893
2990
  var import_components_theming = require("@wise/components-theming");
2894
- var import_react12 = require("react");
2991
+ var import_react13 = require("react");
2895
2992
  var ThemeRequiredEventName = "Theme Required";
2896
2993
  var useCustomTheme = (theme, trackEvent) => {
2897
2994
  const previousThemeHookValue = (0, import_components_theming.useTheme)();
2898
- const previousTheme = (0, import_react12.useMemo)(() => previousThemeHookValue.theme, []);
2899
- (0, import_react12.useEffect)(() => {
2995
+ const previousTheme = (0, import_react13.useMemo)(() => previousThemeHookValue.theme, []);
2996
+ (0, import_react13.useEffect)(() => {
2900
2997
  trackEvent(ThemeRequiredEventName, { theme });
2901
2998
  return theme !== previousTheme ? () => {
2902
2999
  trackEvent(ThemeRequiredEventName, { theme: previousTheme });
@@ -2906,11 +3003,11 @@ var useCustomTheme = (theme, trackEvent) => {
2906
3003
  };
2907
3004
 
2908
3005
  // ../renderers/src/step/BackButton.tsx
2909
- var import_components39 = require("@transferwise/components");
3006
+ var import_components40 = require("@transferwise/components");
2910
3007
  var import_icons3 = require("@transferwise/icons");
2911
- var import_jsx_runtime54 = require("react/jsx-runtime");
3008
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2912
3009
  function BackButton({ title, onClick }) {
2913
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "m-b-2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
3010
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "m-b-2", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
2914
3011
  "button",
2915
3012
  {
2916
3013
  type: "button",
@@ -2919,8 +3016,8 @@ function BackButton({ title, onClick }) {
2919
3016
  "aria-label": title,
2920
3017
  onClick,
2921
3018
  children: [
2922
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "sr-only", children: title }),
2923
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components39.AvatarView, { interactive: true, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_icons3.ArrowLeft, { size: "24" }) })
3019
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "sr-only", children: title }),
3020
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components40.AvatarView, { interactive: true, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_icons3.ArrowLeft, { size: "24" }) })
2924
3021
  ]
2925
3022
  }
2926
3023
  ) });
@@ -2928,7 +3025,7 @@ function BackButton({ title, onClick }) {
2928
3025
  var BackButton_default = BackButton;
2929
3026
 
2930
3027
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
2931
- var import_jsx_runtime55 = require("react/jsx-runtime");
3028
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2932
3029
  var SplashCelebrationStepRenderer = {
2933
3030
  canRenderType: "step",
2934
3031
  canRender: ({ control }) => control === "splash-celebration",
@@ -2937,14 +3034,14 @@ var SplashCelebrationStepRenderer = {
2937
3034
  function SplashCelebrationStepRendererComponent(props) {
2938
3035
  const { back, children, trackEvent } = props;
2939
3036
  useCustomTheme("forest-green", trackEvent);
2940
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "splash-screen m-t-5", children: [
2941
- back ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3037
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "splash-screen m-t-5", children: [
3038
+ back ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BackButton_default, __spreadValues({}, back)) : null,
2942
3039
  children
2943
3040
  ] });
2944
3041
  }
2945
3042
 
2946
3043
  // ../renderers/src/step/SplashStepRenderer.tsx
2947
- var import_jsx_runtime56 = require("react/jsx-runtime");
3044
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2948
3045
  var SplashStepRenderer = {
2949
3046
  canRenderType: "step",
2950
3047
  canRender: ({ control }) => control === "splash",
@@ -2952,63 +3049,63 @@ var SplashStepRenderer = {
2952
3049
  };
2953
3050
  function SplashStepRendererComponent(props) {
2954
3051
  const { back, children } = props;
2955
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "splash-screen m-t-5", children: [
2956
- back ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3052
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "splash-screen m-t-5", children: [
3053
+ back ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BackButton_default, __spreadValues({}, back)) : null,
2957
3054
  children
2958
3055
  ] });
2959
3056
  }
2960
3057
 
2961
3058
  // ../renderers/src/step/StepRenderer.tsx
2962
- var import_components40 = require("@transferwise/components");
2963
- var import_jsx_runtime57 = require("react/jsx-runtime");
3059
+ var import_components41 = require("@transferwise/components");
3060
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2964
3061
  var StepRenderer = {
2965
3062
  canRenderType: "step",
2966
3063
  render: StepRendererComponent
2967
3064
  };
2968
3065
  function StepRendererComponent(props) {
2969
3066
  const { back, description, error, title, children } = props;
2970
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
2971
- back ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BackButton_default, __spreadValues({}, back)) : null,
2972
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "m-b-4", children: [
2973
- title ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components40.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
2974
- description ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
3067
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
3068
+ back ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3069
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "m-b-4", children: [
3070
+ title ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components41.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
3071
+ description ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
2975
3072
  ] }) : void 0,
2976
- error ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components40.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
3073
+ error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components41.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
2977
3074
  children
2978
3075
  ] });
2979
3076
  }
2980
3077
 
2981
3078
  // ../renderers/src/TabsRenderer.tsx
2982
- var import_components41 = require("@transferwise/components");
2983
- var import_react13 = require("react");
2984
- var import_jsx_runtime58 = require("react/jsx-runtime");
3079
+ var import_components42 = require("@transferwise/components");
3080
+ var import_react14 = require("react");
3081
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2985
3082
  var TabsRenderer = {
2986
3083
  canRenderType: "tabs",
2987
3084
  render: (props) => {
2988
3085
  switch (props.control) {
2989
3086
  case "segmented":
2990
3087
  if (props.tabs.length > 3) {
2991
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TabsRendererComponent, __spreadValues({}, props));
3088
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TabsRendererComponent, __spreadValues({}, props));
2992
3089
  }
2993
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
3090
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
2994
3091
  case "chips":
2995
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
3092
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
2996
3093
  default:
2997
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TabsRendererComponent, __spreadValues({}, props));
3094
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TabsRendererComponent, __spreadValues({}, props));
2998
3095
  }
2999
3096
  }
3000
3097
  };
3001
3098
  function TabsRendererComponent({ uid, margin, tabs }) {
3002
- const [selectedIndex, setSelectedIndex] = (0, import_react13.useState)(0);
3003
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3004
- import_components41.Tabs,
3099
+ const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
3100
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3101
+ import_components42.Tabs,
3005
3102
  {
3006
3103
  name: uid,
3007
3104
  selected: selectedIndex != null ? selectedIndex : 0,
3008
3105
  tabs: tabs.map((option) => ({
3009
3106
  title: option.title,
3010
3107
  disabled: false,
3011
- content: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "m-t-2", children: [
3108
+ content: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "m-t-2", children: [
3012
3109
  " ",
3013
3110
  option.children,
3014
3111
  " "
@@ -3020,10 +3117,10 @@ function TabsRendererComponent({ uid, margin, tabs }) {
3020
3117
  }
3021
3118
  function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
3022
3119
  var _a;
3023
- const [selectedIndex, setSelectedIndex] = (0, import_react13.useState)(0);
3024
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: getMargin(margin), children: [
3025
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3026
- import_components41.SegmentedControl,
3120
+ const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
3121
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: getMargin(margin), children: [
3122
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3123
+ import_components42.SegmentedControl,
3027
3124
  {
3028
3125
  name: uid,
3029
3126
  value: String(selectedIndex),
@@ -3037,31 +3134,31 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
3037
3134
  onChange: (value) => setSelectedIndex(Number(value))
3038
3135
  }
3039
3136
  ),
3040
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3137
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3041
3138
  ] });
3042
3139
  }
3043
3140
  function ChipsTabsRendererComponent({ margin, tabs }) {
3044
3141
  var _a;
3045
- const [selectedIndex, setSelectedIndex] = (0, import_react13.useState)(0);
3046
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: getMargin(margin), children: [
3047
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3048
- import_components41.Chips,
3142
+ const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
3143
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: getMargin(margin), children: [
3144
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3145
+ import_components42.Chips,
3049
3146
  {
3050
3147
  chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
3051
3148
  selected: selectedIndex,
3052
3149
  onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
3053
3150
  }
3054
3151
  ) }),
3055
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3152
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3056
3153
  ] });
3057
3154
  }
3058
3155
 
3059
3156
  // ../renderers/src/TextInputRenderer.tsx
3060
- var import_components43 = require("@transferwise/components");
3157
+ var import_components44 = require("@transferwise/components");
3061
3158
 
3062
3159
  // ../renderers/src/components/VariableTextInput.tsx
3063
- var import_components42 = require("@transferwise/components");
3064
- var import_jsx_runtime59 = require("react/jsx-runtime");
3160
+ var import_components43 = require("@transferwise/components");
3161
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3065
3162
  var commonKeys = [
3066
3163
  "autoComplete",
3067
3164
  "autoCapitalize",
@@ -3080,12 +3177,12 @@ function VariableTextInput(inputProps) {
3080
3177
  const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
3081
3178
  switch (control) {
3082
3179
  case "email":
3083
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
3180
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
3084
3181
  case "password":
3085
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
3182
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
3086
3183
  case "numeric": {
3087
3184
  const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
3088
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3185
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3089
3186
  TextInput,
3090
3187
  __spreadProps(__spreadValues({}, numericProps), {
3091
3188
  onChange: (newValue) => {
@@ -3096,21 +3193,21 @@ function VariableTextInput(inputProps) {
3096
3193
  );
3097
3194
  }
3098
3195
  case "phone-number":
3099
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_components42.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
3196
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_components43.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
3100
3197
  default: {
3101
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
3102
3199
  }
3103
3200
  }
3104
3201
  }
3105
3202
  function TextInput(props) {
3106
3203
  const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
3107
- const InputWithPattern = control === "textarea" ? import_components42.TextareaWithDisplayFormat : import_components42.InputWithDisplayFormat;
3108
- const InputWithoutPattern = control === "textarea" ? import_components42.TextArea : import_components42.Input;
3109
- return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
3204
+ const InputWithPattern = control === "textarea" ? import_components43.TextareaWithDisplayFormat : import_components43.InputWithDisplayFormat;
3205
+ const InputWithoutPattern = control === "textarea" ? import_components43.TextArea : import_components43.Input;
3206
+ return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
3110
3207
  }
3111
3208
 
3112
3209
  // ../renderers/src/TextInputRenderer.tsx
3113
- var import_jsx_runtime60 = require("react/jsx-runtime");
3210
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3114
3211
  var TextInputRenderer = {
3115
3212
  canRenderType: "input-text",
3116
3213
  render: (props) => {
@@ -3145,7 +3242,7 @@ var TextInputRenderer = {
3145
3242
  }
3146
3243
  }
3147
3244
  });
3148
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3245
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3149
3246
  FieldInput_default,
3150
3247
  {
3151
3248
  id,
@@ -3153,7 +3250,7 @@ var TextInputRenderer = {
3153
3250
  description,
3154
3251
  validation: validationState,
3155
3252
  help,
3156
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_components43.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
3253
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_components44.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
3157
3254
  }
3158
3255
  );
3159
3256
  }
@@ -3161,13 +3258,13 @@ var TextInputRenderer = {
3161
3258
  var TextInputRenderer_default = TextInputRenderer;
3162
3259
 
3163
3260
  // ../renderers/src/UploadInputRenderer.tsx
3164
- var import_components44 = require("@transferwise/components");
3261
+ var import_components45 = require("@transferwise/components");
3165
3262
 
3166
3263
  // ../renderers/src/utils/getRandomId.ts
3167
3264
  var getRandomId = () => Math.random().toString(36).substring(2);
3168
3265
 
3169
3266
  // ../renderers/src/UploadInputRenderer.tsx
3170
- var import_jsx_runtime61 = require("react/jsx-runtime");
3267
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3171
3268
  var UploadInputRenderer = {
3172
3269
  canRenderType: "input-upload",
3173
3270
  render: (props) => {
@@ -3183,15 +3280,15 @@ var UploadInputRenderer = {
3183
3280
  };
3184
3281
  return (
3185
3282
  // We don't pass help here as there is no sensible place to display it
3186
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3283
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3187
3284
  UploadFieldInput_default,
3188
3285
  {
3189
3286
  id,
3190
3287
  label: void 0,
3191
3288
  description: void 0,
3192
3289
  validation: validationState,
3193
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3194
- import_components44.UploadInput,
3290
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3291
+ import_components45.UploadInput,
3195
3292
  {
3196
3293
  id,
3197
3294
  description,
@@ -3247,7 +3344,7 @@ var LargeUploadRenderer = {
3247
3344
  };
3248
3345
  const filetypes = acceptsToFileTypes(accepts);
3249
3346
  const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
3250
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3347
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3251
3348
  FieldInput_default,
3252
3349
  {
3253
3350
  id,
@@ -3255,8 +3352,8 @@ var LargeUploadRenderer = {
3255
3352
  description,
3256
3353
  validation: validationState,
3257
3354
  help,
3258
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3259
- import_components44.Upload,
3355
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3356
+ import_components45.Upload,
3260
3357
  __spreadProps(__spreadValues({}, uploadProps), {
3261
3358
  usAccept,
3262
3359
  usDisabled: disabled,
@@ -3272,6 +3369,7 @@ var LargeUploadRenderer = {
3272
3369
 
3273
3370
  // ../renderers/src/getWiseRenderers.ts
3274
3371
  var getWiseRenderers = () => [
3372
+ AddressValidationButtonRenderer_default,
3275
3373
  AlertRenderer_default,
3276
3374
  CheckboxInputRenderer_default,
3277
3375
  BoxRenderer_default,
@@ -3314,7 +3412,7 @@ var getWiseRenderers = () => [
3314
3412
  // src/dynamicFlow/telemetry/app-version.ts
3315
3413
  var appVersion = (
3316
3414
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
3317
- typeof process !== "undefined" ? "4.18.0" : "0.0.0"
3415
+ typeof process !== "undefined" ? "4.19.0" : "0.0.0"
3318
3416
  );
3319
3417
 
3320
3418
  // src/dynamicFlow/telemetry/getLogEvent.ts
@@ -3353,13 +3451,28 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
3353
3451
  }
3354
3452
  };
3355
3453
 
3454
+ // src/dynamicFlow/messages.ts
3455
+ var import_react_intl18 = require("react-intl");
3456
+ var messages_default = (0, import_react_intl18.defineMessages)({
3457
+ copied: {
3458
+ id: "df.wise.CopyFeedback.copy",
3459
+ defaultMessage: "Copied to clipboard",
3460
+ description: "Appears in a snackbar when the copy operation succeeds."
3461
+ },
3462
+ copyFailed: {
3463
+ id: "df.wise.CopyFeedback.copyFailed",
3464
+ defaultMessage: "Failed to copy to clipboard",
3465
+ description: "Appears in a snackbar when the copy operation fails."
3466
+ }
3467
+ });
3468
+
3356
3469
  // src/dynamicFlow/DynamicFlow.tsx
3357
- var import_jsx_runtime62 = require("react/jsx-runtime");
3470
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3358
3471
  var wiseRenderers = getWiseRenderers();
3359
3472
  function DynamicFlowLegacy(props) {
3360
3473
  const { customFetch = globalThis.fetch } = props;
3361
3474
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
3362
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
3475
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
3363
3476
  }
3364
3477
  function DynamicFlowRevamp(props) {
3365
3478
  const {
@@ -3372,23 +3485,33 @@ function DynamicFlowRevamp(props) {
3372
3485
  onLink = openLinkInNewTab,
3373
3486
  onThemeChange
3374
3487
  } = props;
3488
+ const { formatMessage } = (0, import_react_intl19.useIntl)();
3489
+ const createSnackBar = useSnackBarIfAvailable();
3375
3490
  const httpClient = useWiseHttpClient(customFetch);
3376
- const mergedRenderers = (0, import_react14.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3377
- const logEvent = (0, import_react14.useMemo)(() => getLogEvent(onLog), [onLog]);
3378
- const trackEvent = (0, import_react14.useMemo)(
3491
+ const mergedRenderers = (0, import_react15.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3492
+ const logEvent = (0, import_react15.useMemo)(() => getLogEvent(onLog), [onLog]);
3493
+ const trackEvent = (0, import_react15.useMemo)(
3379
3494
  () => getTrackEvent(onEvent, onAnalytics, onThemeChange),
3380
3495
  [onEvent, onAnalytics, onThemeChange]
3381
3496
  );
3497
+ const onCopy = (copiedContent) => {
3498
+ if (copiedContent) {
3499
+ createSnackBar({ text: formatMessage(messages_default.copied) });
3500
+ } else {
3501
+ createSnackBar({ text: formatMessage(messages_default.copyFailed) });
3502
+ }
3503
+ };
3382
3504
  const coreProps = __spreadProps(__spreadValues({}, props), {
3383
3505
  httpClient,
3384
3506
  renderers: mergedRenderers,
3385
3507
  onEvent: trackEvent,
3386
3508
  onLog: logEvent,
3387
- onLink
3509
+ onLink,
3510
+ onCopy
3388
3511
  });
3389
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
3512
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
3390
3513
  }
3391
- var DynamicForm = (0, import_react14.forwardRef)(function DynamicForm2(props, ref) {
3514
+ var DynamicForm = (0, import_react15.forwardRef)(function DynamicForm2(props, ref) {
3392
3515
  const {
3393
3516
  className = "",
3394
3517
  customFetch = globalThis.fetch,
@@ -3399,25 +3522,35 @@ var DynamicForm = (0, import_react14.forwardRef)(function DynamicForm2(props, re
3399
3522
  onLink = openLinkInNewTab,
3400
3523
  onThemeChange
3401
3524
  } = props;
3525
+ const { formatMessage } = (0, import_react_intl19.useIntl)();
3526
+ const createSnackBar = useSnackBarIfAvailable();
3402
3527
  const httpClient = useWiseHttpClient(customFetch);
3403
- const mergedRenderers = (0, import_react14.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3404
- const logEvent = (0, import_react14.useMemo)(() => getLogEvent(onLog), [onLog]);
3405
- const trackEvent = (0, import_react14.useMemo)(
3528
+ const mergedRenderers = (0, import_react15.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3529
+ const logEvent = (0, import_react15.useMemo)(() => getLogEvent(onLog), [onLog]);
3530
+ const trackEvent = (0, import_react15.useMemo)(
3406
3531
  () => getTrackEvent(onEvent, onAnalytics, onThemeChange),
3407
3532
  [onEvent, onAnalytics, onThemeChange]
3408
3533
  );
3534
+ const onCopy = (copiedContent) => {
3535
+ if (copiedContent) {
3536
+ createSnackBar({ text: formatMessage(messages_default.copied) });
3537
+ } else {
3538
+ createSnackBar({ text: formatMessage(messages_default.copyFailed) });
3539
+ }
3540
+ };
3409
3541
  const coreProps = __spreadProps(__spreadValues({}, props), {
3410
3542
  httpClient,
3411
3543
  renderers: mergedRenderers,
3412
3544
  onEvent: trackEvent,
3413
3545
  onLog: logEvent,
3414
- onLink
3546
+ onLink,
3547
+ onCopy
3415
3548
  });
3416
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
3549
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
3417
3550
  });
3418
3551
  var useWiseHttpClient = (httpClient) => {
3419
- const { locale } = (0, import_react_intl16.useIntl)();
3420
- return (0, import_react14.useCallback)(
3552
+ const { locale } = (0, import_react_intl19.useIntl)();
3553
+ return (0, import_react15.useCallback)(
3421
3554
  async (input, init = {}) => {
3422
3555
  const headers = new Headers(init.headers);
3423
3556
  headers.set("accept-language", locale);