@wise/dynamic-flow-client 3.25.1 → 3.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.js CHANGED
@@ -144,10 +144,10 @@ var init_clsx = __esm({
144
144
  }
145
145
  });
146
146
 
147
- // ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js
147
+ // ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js
148
148
  var import_react7, import_jsx_runtime17, unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
149
149
  var init_index_a91e5689_esm = __esm({
150
- "../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js"() {
150
+ "../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js"() {
151
151
  "use strict";
152
152
  init_clsx();
153
153
  import_react7 = require("react");
@@ -517,6 +517,8 @@ var de_default = {
517
517
  "dynamicFlows.ExternalConfirmation.description": "Bitte best\xE4tige, dass du **{origin}** in einem neuen Browser-Tab \xF6ffnen m\xF6chtest.",
518
518
  "dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen",
519
519
  "dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen",
520
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.",
521
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
520
522
  "dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.",
521
523
  "dynamicFlows.MultiSelect.summary": "{first} und {count} weitere",
522
524
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.",
@@ -568,6 +570,8 @@ var en_default = {
568
570
  "dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.",
569
571
  "dynamicFlows.ExternalConfirmation.open": "Open in new tab",
570
572
  "dynamicFlows.ExternalConfirmation.title": "Please confirm",
573
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.",
574
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
571
575
  "dynamicFlows.Help.ariaLabel": "Click here for more info.",
572
576
  "dynamicFlows.MultiSelect.summary": "{first} and {count} more",
573
577
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.",
@@ -619,6 +623,8 @@ var es_default = {
619
623
  "dynamicFlows.ExternalConfirmation.description": "Confirma que quieres abrir **{origin}** en una nueva pesta\xF1a del navegador.",
620
624
  "dynamicFlows.ExternalConfirmation.open": "Abrir en nueva pesta\xF1a",
621
625
  "dynamicFlows.ExternalConfirmation.title": "Por favor, confirma",
626
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.",
627
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
622
628
  "dynamicFlows.Help.ariaLabel": "Haz clic aqu\xED para obtener m\xE1s informaci\xF3n.",
623
629
  "dynamicFlows.MultiSelect.summary": "{first} y {count} m\xE1s",
624
630
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.",
@@ -670,6 +676,8 @@ var fr_default = {
670
676
  "dynamicFlows.ExternalConfirmation.description": "Veuillez confirmer que vous souhaitez ouvrir **{origin}** dans un nouvel onglet.",
671
677
  "dynamicFlows.ExternalConfirmation.open": "Ouvrir dans un nouvel onglet",
672
678
  "dynamicFlows.ExternalConfirmation.title": "Veuillez confirmer",
679
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.",
680
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
673
681
  "dynamicFlows.Help.ariaLabel": "Cliquez ici pour plus d'informations.",
674
682
  "dynamicFlows.MultiSelect.summary": "{first} et {count} de plus",
675
683
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.",
@@ -721,6 +729,8 @@ var hu_default = {
721
729
  "dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.",
722
730
  "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon",
723
731
  "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s",
732
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.",
733
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
724
734
  "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.",
725
735
  "dynamicFlows.MultiSelect.summary": "{first} \xE9s tov\xE1bbi {count}",
726
736
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.",
@@ -772,6 +782,8 @@ var id_default = {
772
782
  "dynamicFlows.ExternalConfirmation.description": "Harap konfirmasikan bahwa Anda ingin membuka **{origin}** di tab browser baru.",
773
783
  "dynamicFlows.ExternalConfirmation.open": "Buka di tab baru",
774
784
  "dynamicFlows.ExternalConfirmation.title": "Harap konfirmasi",
785
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.",
786
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
775
787
  "dynamicFlows.Help.ariaLabel": "Klik di sini untuk info selengkapnya.",
776
788
  "dynamicFlows.MultiSelect.summary": "{first} dan {count} lagi",
777
789
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.",
@@ -823,6 +835,8 @@ var it_default = {
823
835
  "dynamicFlows.ExternalConfirmation.description": "Conferma di voler aprire **{origin}** in una nuova scheda del browser.",
824
836
  "dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda",
825
837
  "dynamicFlows.ExternalConfirmation.title": "Conferma",
838
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.",
839
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
826
840
  "dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.",
827
841
  "dynamicFlows.MultiSelect.summary": "{first} e altri {count}",
828
842
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.",
@@ -874,6 +888,8 @@ var ja_default = {
874
888
  "dynamicFlows.ExternalConfirmation.description": "\u65B0\u3057\u3044\u30D6\u30E9\u30A6\u30B6\u30BF\u30D6\u3067**{origin}**\u3092\u958B\u304F\u3053\u3068\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
875
889
  "dynamicFlows.ExternalConfirmation.open": "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F",
876
890
  "dynamicFlows.ExternalConfirmation.title": "\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
891
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
892
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
877
893
  "dynamicFlows.Help.ariaLabel": "\u8A73\u7D30\u306F\u3053\u3061\u3089\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
878
894
  "dynamicFlows.MultiSelect.summary": "{first}\u3068\u305D\u306E\u4ED6{count}",
879
895
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
@@ -925,6 +941,8 @@ var pl_default = {
925
941
  "dynamicFlows.ExternalConfirmation.description": "Prosimy potwierdzi\u0107, \u017Ce chcesz otworzy\u0107 **{origin}** w nowej zak\u0142adce przegl\u0105darki.",
926
942
  "dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce",
927
943
  "dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A",
944
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.",
945
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
928
946
  "dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.",
929
947
  "dynamicFlows.MultiSelect.summary": "{first} oraz {count} wi\u0119cej",
930
948
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.",
@@ -976,6 +994,8 @@ var pt_default = {
976
994
  "dynamicFlows.ExternalConfirmation.description": "Por favor, confirme que deseja abrir * *{origin}* * em uma nova aba do navegador.",
977
995
  "dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba",
978
996
  "dynamicFlows.ExternalConfirmation.title": "Por favor, confirme",
997
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.",
998
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
979
999
  "dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.",
980
1000
  "dynamicFlows.MultiSelect.summary": "{first} e mais {count} ",
981
1001
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.",
@@ -1027,6 +1047,8 @@ var ro_default = {
1027
1047
  "dynamicFlows.ExternalConfirmation.description": "Te rug\u0103m s\u0103 confirmi c\u0103 vrei s\u0103 deschizi **{origin}** \xEEntr-o nou\u0103 fil\u0103 a browserului.",
1028
1048
  "dynamicFlows.ExternalConfirmation.open": "Deschide \xEEntr-o fil\u0103 nou\u0103",
1029
1049
  "dynamicFlows.ExternalConfirmation.title": "Te rug\u0103m s\u0103 confirmi",
1050
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.",
1051
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
1030
1052
  "dynamicFlows.Help.ariaLabel": "D\u0103 click aici pentru mai multe informa\u021Bii.",
1031
1053
  "dynamicFlows.MultiSelect.summary": "{first} \u0219i \xEEnc\u0103 {count}",
1032
1054
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.",
@@ -1078,6 +1100,8 @@ var ru_default = {
1078
1100
  "dynamicFlows.ExternalConfirmation.description": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C **{origin}** \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.",
1079
1101
  "dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435",
1080
1102
  "dynamicFlows.ExternalConfirmation.title": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435",
1103
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.",
1104
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
1081
1105
  "dynamicFlows.Help.ariaLabel": "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438.",
1082
1106
  "dynamicFlows.MultiSelect.summary": "{first} \u0438 \u0435\u0449\u0435 {count} \u0434\u0440\u0443\u0433\u0438\u0445",
1083
1107
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.",
@@ -1129,6 +1153,8 @@ var th_default = {
1129
1153
  "dynamicFlows.ExternalConfirmation.description": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E34\u0E14 **{origin}** \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C",
1130
1154
  "dynamicFlows.ExternalConfirmation.open": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48",
1131
1155
  "dynamicFlows.ExternalConfirmation.title": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",
1156
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07",
1157
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
1132
1158
  "dynamicFlows.Help.ariaLabel": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
1133
1159
  "dynamicFlows.MultiSelect.summary": "{first} \u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01 {count}",
1134
1160
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07",
@@ -1180,6 +1206,8 @@ var tr_default = {
1180
1206
  "dynamicFlows.ExternalConfirmation.description": "L\xFCtfen yeni bir taray\u0131c\u0131 sekmesinde **{origin}** a\xE7mak istedi\u011Finizi onaylay\u0131n.",
1181
1207
  "dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7",
1182
1208
  "dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n",
1209
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.",
1210
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
1183
1211
  "dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.",
1184
1212
  "dynamicFlows.MultiSelect.summary": "{first} ve {count} daha",
1185
1213
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.",
@@ -1231,6 +1259,8 @@ var zh_CN_default = {
1231
1259
  "dynamicFlows.ExternalConfirmation.description": "\u8BF7\u786E\u8BA4\u60A8\u662F\u5426\u8981\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00**{origin}**\u3002",
1232
1260
  "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00",
1233
1261
  "dynamicFlows.ExternalConfirmation.title": "\u8BF7\u786E\u8BA4",
1262
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8BE5\u6587\u4EF6\u592A\u5927\u3002\u8BF7\u4E0A\u4F20\u4E00\u4E2A\u66F4\u5C0F\u7684\u6587\u4EF6\u3002",
1263
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
1234
1264
  "dynamicFlows.Help.ariaLabel": "\u70B9\u51FB\u6B64\u5904\u83B7\u53D6\u66F4\u591A\u4FE1\u606F\u3002",
1235
1265
  "dynamicFlows.MultiSelect.summary": "{first} \u548C\u5176\u4ED6 {count} \u4E2A",
1236
1266
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8BE5\u6587\u4EF6\u592A\u5927\u3002\u8BF7\u4E0A\u4F20\u4E00\u4E2A\u66F4\u5C0F\u7684\u6587\u4EF6\u3002",
@@ -1282,6 +1312,8 @@ var zh_HK_default = {
1282
1312
  "dynamicFlows.ExternalConfirmation.description": "\u8ACB\u78BA\u8A8D\u4F60\u662F\u5426\u8981\u5728\u700F\u89BD\u5668\u7684\u65B0\u5206\u9801\u6253\u958B**{origin}**\u3002",
1283
1313
  "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u5206\u9801\u4E2D\u958B\u555F",
1284
1314
  "dynamicFlows.ExternalConfirmation.title": "\u8ACB\u78BA\u8A8D",
1315
+ "dynamicFlows.FileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002",
1316
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
1285
1317
  "dynamicFlows.Help.ariaLabel": "\u6309\u6B64\u67E5\u770B\u8A73\u60C5\u3002",
1286
1318
  "dynamicFlows.MultiSelect.summary": "{first}\u548C\u5176\u4ED6{count}\u9805",
1287
1319
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002",
@@ -6763,7 +6795,7 @@ var flattenZodErrors = (zodError) => zodError.flatMap((e) => {
6763
6795
 
6764
6796
  // src/revamp/useDynamicFlowCore.tsx
6765
6797
  var import_react3 = require("react");
6766
- var import_react_intl6 = require("react-intl");
6798
+ var import_react_intl7 = require("react-intl");
6767
6799
 
6768
6800
  // src/revamp/utils/component-utils.ts
6769
6801
  var getSubmittableData = async (components) => Promise.all(components.map(async (component) => component.getSubmittableValue())).then(
@@ -7623,6 +7655,20 @@ var getAboveMaxFilesCheck = ({ maxItems }, messageFunctions) => (value) => {
7623
7655
  }
7624
7656
  return null;
7625
7657
  };
7658
+ var getFileSizeCheck = (schema, messageFunctions) => (value) => {
7659
+ const maxSize = "persistAsync" in schema ? schema.persistAsync.schema.maxSize : schema.maxSize;
7660
+ if (maxSize && value && value.size > maxSize) {
7661
+ return messageFunctions.maxSize();
7662
+ }
7663
+ return null;
7664
+ };
7665
+ var getFileTypeCheck = (schema, messageFunctions) => (value) => {
7666
+ const accepts = "persistAsync" in schema ? schema.persistAsync.schema.accepts : schema.accepts;
7667
+ if (accepts && value && !accepts.includes(value.type)) {
7668
+ return messageFunctions.accepts();
7669
+ }
7670
+ return null;
7671
+ };
7626
7672
  var getBelowMinItemsCheck = ({ minItems }, messageFunctions) => (value) => {
7627
7673
  if (isNumber(minItems) && isArray(value) && value.length > 0 && value.length < minItems) {
7628
7674
  return messageFunctions.minItems(minItems);
@@ -8819,18 +8865,23 @@ var createUploadInputComponent = (uploadInputProps, updateComponent) => {
8819
8865
  var stringSchemaToUploadInputComponent = (schemaMapperProps, mapperProps) => {
8820
8866
  var _a;
8821
8867
  const { schema, localValue, model, required = false } = schemaMapperProps;
8822
- const { accepts, autocompleteHint, maxSize, validationMessages } = schema;
8868
+ const { accepts, autocompleteHint, hidden, maxSize, validationMessages } = schema;
8823
8869
  const { getErrorMessageFunctions, updateComponent, onRefresh, onValueChange } = mapperProps;
8824
8870
  const errorMessageFunctions = getErrorMessageFunctions(validationMessages);
8825
8871
  const { performPersistAsync } = getPersistAsyncInitialState(schemaMapperProps, mapperProps);
8826
8872
  const persistedState = performPersistAsync ? getInitialPersistedState(null, model) : getInitialPersistedState();
8827
8873
  const validLocalValue = isFile(localValue) ? localValue : null;
8828
8874
  const value = (_a = getFileFromModel(model)) != null ? _a : validLocalValue;
8875
+ const checks = hidden ? [] : [
8876
+ getRequiredCheck(required, errorMessageFunctions),
8877
+ getFileSizeCheck(schema, errorMessageFunctions),
8878
+ getFileTypeCheck(schema, errorMessageFunctions)
8879
+ ];
8829
8880
  return createUploadInputComponent(
8830
8881
  __spreadProps(__spreadValues({}, mapCommonSchemaProps(schemaMapperProps)), {
8831
8882
  accepts,
8832
8883
  autoComplete: getAutocompleteString(autocompleteHint),
8833
- checks: schema.hidden ? [] : [getRequiredCheck(required, errorMessageFunctions)],
8884
+ checks,
8834
8885
  format: "base64",
8835
8886
  maxSize,
8836
8887
  value,
@@ -9011,15 +9062,19 @@ var getControlForLegacyFormat = (format) => {
9011
9062
  // src/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.ts
9012
9063
  var stringSchemaToComponent = (schemaMapperProps, mapperProps) => {
9013
9064
  const { schema } = schemaMapperProps;
9065
+ if (isStringSchemaWithBase64(schema)) {
9066
+ return stringSchemaToUploadInputComponent(__spreadProps(__spreadValues({}, schemaMapperProps), { schema }), mapperProps);
9067
+ }
9014
9068
  switch (schema.format) {
9015
9069
  case "date":
9016
9070
  return stringSchemaToDateInputComponent(schemaMapperProps, mapperProps);
9017
- case "base64url":
9018
- return stringSchemaToUploadInputComponent(schemaMapperProps, mapperProps);
9019
9071
  default:
9020
9072
  return stringSchemaToTextInputComponent(schemaMapperProps, mapperProps);
9021
9073
  }
9022
9074
  };
9075
+ var isStringSchemaWithBase64 = (schema) => {
9076
+ return schema.format === "base64url" && !("persistAsync" in schema);
9077
+ };
9023
9078
 
9024
9079
  // src/revamp/domain/components/ContainerComponent.ts
9025
9080
  var createContainerComponent = (containerProps) => __spreadProps(__spreadValues({}, containerProps), {
@@ -9353,11 +9408,16 @@ var arraySchemaToMultiUploadComponent = (schemaMapperProps, mapperProps) => {
9353
9408
  const uploadSchema = getUploadSchema(schema.items);
9354
9409
  const { accepts, maxSize } = uploadSchema;
9355
9410
  const { minItems, maxItems, title, validationMessages } = schema;
9356
- const errorMessageFunctions = getErrorMessageFunctions(validationMessages);
9411
+ const arrayErrorMessageFunctions = getErrorMessageFunctions(validationMessages);
9412
+ const fileErrorMessageFunctions = getErrorMessageFunctions(uploadSchema.validationMessages);
9357
9413
  const checks = [
9358
- getRequiredCheck(required, errorMessageFunctions),
9359
- getAboveMaxFilesCheck(schema, errorMessageFunctions),
9360
- getBelowMinFilesCheck(schema, errorMessageFunctions)
9414
+ getRequiredCheck(required, arrayErrorMessageFunctions),
9415
+ getAboveMaxFilesCheck(schema, arrayErrorMessageFunctions),
9416
+ getBelowMinFilesCheck(schema, arrayErrorMessageFunctions)
9417
+ ];
9418
+ const fileChecks = [
9419
+ getFileSizeCheck(schema.items, fileErrorMessageFunctions),
9420
+ getFileTypeCheck(schema.items, fileErrorMessageFunctions)
9361
9421
  ];
9362
9422
  const persistAsyncConfig = getPersistAsyncConfig(schema.items);
9363
9423
  const format = getFormat(schema.items);
@@ -9376,7 +9436,7 @@ var arraySchemaToMultiUploadComponent = (schemaMapperProps, mapperProps) => {
9376
9436
  accepts,
9377
9437
  autoComplete: "off",
9378
9438
  checks: schema.hidden ? [] : checks,
9379
- fileChecks: [],
9439
+ fileChecks: schema.hidden ? [] : fileChecks,
9380
9440
  format,
9381
9441
  maxSize,
9382
9442
  minItems,
@@ -10164,23 +10224,30 @@ var getReviewAction = ({ onAction, onLink, callToAction, action }) => {
10164
10224
  return void 0;
10165
10225
  }
10166
10226
  const { accessibilityDescription, action: behaviorAction, link } = behavior;
10167
- const onClick = () => {
10168
- if (behaviorAction) {
10169
- return () => {
10227
+ if (behaviorAction) {
10228
+ return {
10229
+ accessibilityDescription,
10230
+ title,
10231
+ onClick: () => {
10170
10232
  void onAction(behaviorAction);
10171
- };
10172
- }
10173
- if (link) {
10174
- return () => {
10233
+ }
10234
+ };
10235
+ }
10236
+ if (link) {
10237
+ return {
10238
+ accessibilityDescription,
10239
+ href: link.url,
10240
+ title,
10241
+ onClick: () => {
10175
10242
  onLink(link.url);
10176
- };
10177
- }
10178
- };
10243
+ }
10244
+ };
10245
+ }
10179
10246
  return {
10180
10247
  accessibilityDescription,
10181
- href: link == null ? void 0 : link.url,
10182
10248
  title,
10183
- onClick
10249
+ onClick: () => {
10250
+ }
10184
10251
  };
10185
10252
  }
10186
10253
  if (ctaAction) {
@@ -10393,28 +10460,33 @@ var getItemCallToAction = (callToAction, onAction, onLink) => {
10393
10460
  if ("type" in behavior) {
10394
10461
  return void 0;
10395
10462
  }
10396
- if (behavior.link) {
10397
- const { url } = behavior.link;
10463
+ if (behavior.action) {
10464
+ const { action } = behavior;
10398
10465
  return {
10399
10466
  accessibilityDescription,
10400
- href: url,
10401
10467
  title,
10402
10468
  onClick: () => {
10403
- void onLink(url);
10469
+ void onAction(action);
10404
10470
  }
10405
10471
  };
10406
10472
  }
10407
- if (behavior.action) {
10408
- const { action } = behavior;
10473
+ if (behavior.link) {
10474
+ const { url } = behavior.link;
10409
10475
  return {
10410
10476
  accessibilityDescription,
10477
+ href: url,
10411
10478
  title,
10412
10479
  onClick: () => {
10413
- void onAction(action);
10480
+ void onLink(url);
10414
10481
  }
10415
10482
  };
10416
10483
  }
10417
- return void 0;
10484
+ return {
10485
+ accessibilityDescription,
10486
+ title,
10487
+ onClick: () => {
10488
+ }
10489
+ };
10418
10490
  };
10419
10491
 
10420
10492
  // src/revamp/domain/mappers/layout/listLayoutToComponent.ts
@@ -10805,9 +10877,39 @@ var validation_messages_default = (0, import_react_intl3.defineMessages)({
10805
10877
  }
10806
10878
  });
10807
10879
 
10808
- // src/common/messages/multi-file-upload.messages.ts
10880
+ // src/common/messages/validation.array.messages.ts
10809
10881
  var import_react_intl4 = require("react-intl");
10810
- var multi_file_upload_messages_default = (0, import_react_intl4.defineMessages)({
10882
+ var validation_array_messages_default = (0, import_react_intl4.defineMessages)({
10883
+ minItemsError: {
10884
+ id: "dynamicFlows.ArraySchema.minItemsError",
10885
+ defaultMessage: "Please add at least {minItems}.",
10886
+ description: "Customer inputs less than the expected number of values"
10887
+ },
10888
+ maxItemsError: {
10889
+ id: "dynamicFlows.ArraySchema.maxItemsError",
10890
+ defaultMessage: "Please add {maxItems} or fewer.",
10891
+ description: "Customer inputs more than the allowed number of values"
10892
+ }
10893
+ });
10894
+
10895
+ // src/common/messages/file-upload.messages.ts
10896
+ var import_react_intl5 = require("react-intl");
10897
+ var file_upload_messages_default = (0, import_react_intl5.defineMessages)({
10898
+ maxFileSizeError: {
10899
+ id: "dynamicFlows.FileUploadSchema.maxFileSizeError",
10900
+ defaultMessage: "Sorry, that file is too big. Please upload a smaller file.",
10901
+ description: "Customer has uploaded a file that's too big. To fix: upload a smaller file."
10902
+ },
10903
+ wrongFileTypeError: {
10904
+ id: "dynamicFlows.FileUploadSchema.wrongFileTypeError",
10905
+ defaultMessage: "Sorry, that file format is not supported. Please upload a different file.",
10906
+ description: "Customer has uploaded a file that is the wrong type. To fix: upload a file of the correct type."
10907
+ }
10908
+ });
10909
+
10910
+ // src/common/messages/multi-file-upload.messages.ts
10911
+ var import_react_intl6 = require("react-intl");
10912
+ var multi_file_upload_messages_default = (0, import_react_intl6.defineMessages)({
10811
10913
  minItemsError: {
10812
10914
  id: "dynamicFlows.MultipleFileUploadSchema.minItemsError",
10813
10915
  defaultMessage: "Please upload at least {minItems} file(s).",
@@ -10825,21 +10927,6 @@ var multi_file_upload_messages_default = (0, import_react_intl4.defineMessages)(
10825
10927
  }
10826
10928
  });
10827
10929
 
10828
- // src/common/messages/validation.array.messages.ts
10829
- var import_react_intl5 = require("react-intl");
10830
- var validation_array_messages_default = (0, import_react_intl5.defineMessages)({
10831
- minItemsError: {
10832
- id: "dynamicFlows.ArraySchema.minItemsError",
10833
- defaultMessage: "Please add at least {minItems}.",
10834
- description: "Customer inputs less than the expected number of values"
10835
- },
10836
- maxItemsError: {
10837
- id: "dynamicFlows.ArraySchema.maxItemsError",
10838
- defaultMessage: "Please add {maxItems} or fewer.",
10839
- description: "Customer inputs more than the allowed number of values"
10840
- }
10841
- });
10842
-
10843
10930
  // src/revamp/renderers/getSchemaErrorMessageFunction.ts
10844
10931
  function getSchemaErrorMessageFunction(formatMessage, locale) {
10845
10932
  return (validationMessages) => createErrorMessageFunctions(validationMessages != null ? validationMessages : {}, formatMessage, locale);
@@ -10905,6 +10992,14 @@ var createErrorMessageFunctions = (validationMessages, formatMessage, locale) =>
10905
10992
  maxItems
10906
10993
  });
10907
10994
  },
10995
+ maxSize() {
10996
+ var _a;
10997
+ return (_a = validationMessages.maxSize) != null ? _a : formatMessage(file_upload_messages_default.maxFileSizeError);
10998
+ },
10999
+ accepts() {
11000
+ var _a;
11001
+ return (_a = validationMessages.accepts) != null ? _a : formatMessage(file_upload_messages_default.wrongFileTypeError);
11002
+ },
10908
11003
  pattern() {
10909
11004
  var _a;
10910
11005
  return (_a = validationMessages.pattern) != null ? _a : formatMessage(validation_messages_default.pattern);
@@ -11006,7 +11101,7 @@ function useDynamicFlowCore(props) {
11006
11101
  const onError = useStableCallback(rest.onError);
11007
11102
  const onEvent = useStableCallback(rest.onEvent);
11008
11103
  const onLog = useStableCallback(rest.onLog);
11009
- const { formatMessage, locale } = (0, import_react_intl6.useIntl)();
11104
+ const { formatMessage, locale } = (0, import_react_intl7.useIntl)();
11010
11105
  const getErrorMessageFunctions = (0, import_react3.useMemo)(
11011
11106
  () => getSchemaErrorMessageFunction(formatMessage, locale),
11012
11107
  [formatMessage, locale]
@@ -11343,11 +11438,11 @@ var import_components4 = require("@transferwise/components");
11343
11438
 
11344
11439
  // ../renderers/src/components/Help.tsx
11345
11440
  var import_components3 = require("@transferwise/components");
11346
- var import_react_intl8 = require("react-intl");
11441
+ var import_react_intl9 = require("react-intl");
11347
11442
 
11348
11443
  // ../renderers/src/messages/help.messages.ts
11349
- var import_react_intl7 = require("react-intl");
11350
- var help_messages_default = (0, import_react_intl7.defineMessages)({
11444
+ var import_react_intl8 = require("react-intl");
11445
+ var help_messages_default = (0, import_react_intl8.defineMessages)({
11351
11446
  helpAria: {
11352
11447
  id: "df.wise.Help.ariaLabel",
11353
11448
  defaultMessage: "Click here for more info.",
@@ -11358,7 +11453,7 @@ var help_messages_default = (0, import_react_intl7.defineMessages)({
11358
11453
  // ../renderers/src/components/Help.tsx
11359
11454
  var import_jsx_runtime8 = require("react/jsx-runtime");
11360
11455
  function Help({ help }) {
11361
- const intl = (0, import_react_intl8.useIntl)();
11456
+ const intl = (0, import_react_intl9.useIntl)();
11362
11457
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
11363
11458
  import_components3.Info,
11364
11459
  {
@@ -11693,7 +11788,7 @@ var DateInputRenderer_default = DateInputRenderer;
11693
11788
  // ../renderers/src/DecisionRenderer.tsx
11694
11789
  var import_components9 = require("@transferwise/components");
11695
11790
 
11696
- // ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
11791
+ // ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
11697
11792
  init_index_a91e5689_esm();
11698
11793
  init_clsx();
11699
11794
  var import_react8 = require("react");
@@ -12077,11 +12172,11 @@ function OptionMedia({ icon, image }) {
12077
12172
  }
12078
12173
 
12079
12174
  // ../renderers/src/MultiSelectInputRenderer.tsx
12080
- var import_react_intl10 = require("react-intl");
12175
+ var import_react_intl11 = require("react-intl");
12081
12176
 
12082
12177
  // ../renderers/src/messages/multi-select.messages.ts
12083
- var import_react_intl9 = require("react-intl");
12084
- var multi_select_messages_default = (0, import_react_intl9.defineMessages)({
12178
+ var import_react_intl10 = require("react-intl");
12179
+ var multi_select_messages_default = (0, import_react_intl10.defineMessages)({
12085
12180
  summary: {
12086
12181
  id: "df.wise.MultiSelect.summary",
12087
12182
  defaultMessage: "{first} and {count} more",
@@ -12097,7 +12192,7 @@ var MultiSelectInputRenderer = {
12097
12192
  render: (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
12098
12193
  };
12099
12194
  function MultiSelectInputRendererComponent(props) {
12100
- const { formatMessage } = (0, import_react_intl10.useIntl)();
12195
+ const { formatMessage } = (0, import_react_intl11.useIntl)();
12101
12196
  const [stagedIndices, setStagedIndices] = (0, import_react11.useState)();
12102
12197
  const {
12103
12198
  id,
@@ -12336,7 +12431,7 @@ var NumberInputRenderer = {
12336
12431
  var NumberInputRenderer_default = NumberInputRenderer;
12337
12432
 
12338
12433
  // ../renderers/src/ParagraphRenderer.tsx
12339
- var import_react_intl12 = require("react-intl");
12434
+ var import_react_intl13 = require("react-intl");
12340
12435
 
12341
12436
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
12342
12437
  var import_components23 = require("@transferwise/components");
@@ -12352,8 +12447,8 @@ var import_components24 = require("@transferwise/components");
12352
12447
  var import_classnames4 = __toESM(require_classnames());
12353
12448
 
12354
12449
  // ../renderers/src/messages/paragraph.messages.ts
12355
- var import_react_intl11 = require("react-intl");
12356
- var paragraph_messages_default = (0, import_react_intl11.defineMessages)({
12450
+ var import_react_intl12 = require("react-intl");
12451
+ var paragraph_messages_default = (0, import_react_intl12.defineMessages)({
12357
12452
  copy: {
12358
12453
  id: "df.wise.DynamicParagraph.copy",
12359
12454
  defaultMessage: "Copy",
@@ -12384,7 +12479,7 @@ function CopyableParagraph({
12384
12479
  align,
12385
12480
  className
12386
12481
  }) {
12387
- const { formatMessage } = (0, import_react_intl12.useIntl)();
12482
+ const { formatMessage } = (0, import_react_intl13.useIntl)();
12388
12483
  const createSnackbar = useSnackBarIfAvailable();
12389
12484
  const copy = () => {
12390
12485
  navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
@@ -12410,11 +12505,11 @@ var ParagraphRenderer_default = ParagraphRenderer;
12410
12505
  var import_components25 = require("@transferwise/components");
12411
12506
  var import_react13 = require("react");
12412
12507
  var import_icons = require("@transferwise/icons");
12413
- var import_react_intl14 = require("react-intl");
12508
+ var import_react_intl15 = require("react-intl");
12414
12509
 
12415
12510
  // ../renderers/src/messages/repeatable.messages.ts
12416
- var import_react_intl13 = require("react-intl");
12417
- var repeatable_messages_default = (0, import_react_intl13.defineMessages)({
12511
+ var import_react_intl14 = require("react-intl");
12512
+ var repeatable_messages_default = (0, import_react_intl14.defineMessages)({
12418
12513
  addItemTitle: {
12419
12514
  id: "df.wise.ArraySchema.addItemTitle",
12420
12515
  defaultMessage: "Add Item",
@@ -12458,7 +12553,7 @@ function Repeatable(props) {
12458
12553
  onSave,
12459
12554
  onRemove
12460
12555
  } = props;
12461
- const { formatMessage } = (0, import_react_intl14.useIntl)();
12556
+ const { formatMessage } = (0, import_react_intl15.useIntl)();
12462
12557
  const [openModalType, setOpenModalType] = (0, import_react13.useState)(null);
12463
12558
  const onAddItem = () => {
12464
12559
  onAdd();
@@ -12543,11 +12638,11 @@ var RepeatableRenderer_default = RepeatableRenderer;
12543
12638
  var import_components27 = require("@transferwise/components");
12544
12639
 
12545
12640
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
12546
- var import_react_intl16 = require("react-intl");
12641
+ var import_react_intl17 = require("react-intl");
12547
12642
 
12548
12643
  // ../renderers/src/messages/generic-error.messages.ts
12549
- var import_react_intl15 = require("react-intl");
12550
- var generic_error_messages_default2 = (0, import_react_intl15.defineMessages)({
12644
+ var import_react_intl16 = require("react-intl");
12645
+ var generic_error_messages_default2 = (0, import_react_intl16.defineMessages)({
12551
12646
  genericErrorRetryHint: {
12552
12647
  id: "df.wise.PersistAsyncSchema.genericError",
12553
12648
  defaultMessage: "Something went wrong, please try again.",
@@ -12569,7 +12664,7 @@ var generic_error_messages_default2 = (0, import_react_intl15.defineMessages)({
12569
12664
  var import_components26 = require("@transferwise/components");
12570
12665
  var import_jsx_runtime41 = require("react/jsx-runtime");
12571
12666
  function ErrorResult({ state }) {
12572
- const intl = (0, import_react_intl16.useIntl)();
12667
+ const intl = (0, import_react_intl17.useIntl)();
12573
12668
  const buttonVisualProps = {
12574
12669
  priority: "tertiary",
12575
12670
  size: "sm",
@@ -12594,8 +12689,8 @@ function ErrorResult({ state }) {
12594
12689
  var import_react14 = require("react");
12595
12690
 
12596
12691
  // ../renderers/src/messages/search.messages.ts
12597
- var import_react_intl17 = require("react-intl");
12598
- var search_messages_default = (0, import_react_intl17.defineMessages)({
12692
+ var import_react_intl18 = require("react-intl");
12693
+ var search_messages_default = (0, import_react_intl18.defineMessages)({
12599
12694
  loading: {
12600
12695
  id: "df.wise.SearchLayout.loading",
12601
12696
  defaultMessage: "Loading...",
@@ -12604,7 +12699,7 @@ var search_messages_default = (0, import_react_intl17.defineMessages)({
12604
12699
  });
12605
12700
 
12606
12701
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
12607
- var import_react_intl18 = require("react-intl");
12702
+ var import_react_intl19 = require("react-intl");
12608
12703
  var import_jsx_runtime42 = require("react/jsx-runtime");
12609
12704
  function BlockSearchRendererComponent({
12610
12705
  id,
@@ -12617,7 +12712,7 @@ function BlockSearchRendererComponent({
12617
12712
  }) {
12618
12713
  const [hasSearched, setHasSearched] = (0, import_react14.useState)(false);
12619
12714
  const trackEvent = useTrackEvent();
12620
- const { formatMessage } = (0, import_react_intl18.useIntl)();
12715
+ const { formatMessage } = (0, import_react_intl19.useIntl)();
12621
12716
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getMargin(margin), children: [
12622
12717
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12623
12718
  import_components27.Input,
@@ -12689,7 +12784,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
12689
12784
  var import_components28 = require("@transferwise/components");
12690
12785
  var import_icons2 = require("@transferwise/icons");
12691
12786
  var import_react15 = require("react");
12692
- var import_react_intl19 = require("react-intl");
12787
+ var import_react_intl20 = require("react-intl");
12693
12788
  var import_jsx_runtime43 = require("react/jsx-runtime");
12694
12789
  function InlineSearchRenderer({
12695
12790
  id,
@@ -12701,7 +12796,7 @@ function InlineSearchRenderer({
12701
12796
  }) {
12702
12797
  const [hasSearched, setHasSearched] = (0, import_react15.useState)(false);
12703
12798
  const trackEvent = useTrackEvent();
12704
- const intl = (0, import_react_intl19.useIntl)();
12799
+ const intl = (0, import_react_intl20.useIntl)();
12705
12800
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
12706
12801
  import_components28.Typeahead,
12707
12802
  {
@@ -12748,7 +12843,7 @@ function mapResultToTypeaheadOption(result) {
12748
12843
  };
12749
12844
  }
12750
12845
  function TypeaheadFooter({ state, isLoading }) {
12751
- const { formatMessage } = (0, import_react_intl19.useIntl)();
12846
+ const { formatMessage } = (0, import_react_intl20.useIntl)();
12752
12847
  if (state.type === "noResults") {
12753
12848
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components28.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
12754
12849
  }
@@ -13048,19 +13143,32 @@ var StatusListRenderer = {
13048
13143
  description,
13049
13144
  icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DynamicIcon_default, { name: icon.name }) : null,
13050
13145
  status: mapStatus(status),
13051
- action: callToAction ? {
13052
- "aria-label": callToAction.accessibilityDescription,
13053
- href: callToAction.href,
13054
- text: callToAction.title,
13055
- target: callToAction.href ? "_blank" : void 0,
13056
- onClick: callToAction.href ? void 0 : callToAction.onClick
13057
- } : void 0
13146
+ action: getSummaryAction(callToAction)
13058
13147
  },
13059
13148
  `${itemTitle}/${description || ""}`
13060
13149
  ))
13061
13150
  ] })
13062
13151
  };
13063
13152
  var StatusListRenderer_default = StatusListRenderer;
13153
+ var getSummaryAction = (callToAction) => {
13154
+ if (!callToAction) {
13155
+ return void 0;
13156
+ }
13157
+ const { accessibilityDescription, href, title, onClick } = callToAction;
13158
+ if (!href) {
13159
+ return {
13160
+ "aria-label": accessibilityDescription,
13161
+ text: title,
13162
+ onClick
13163
+ };
13164
+ }
13165
+ return {
13166
+ "aria-label": accessibilityDescription,
13167
+ href,
13168
+ target: "_blank",
13169
+ text: title
13170
+ };
13171
+ };
13064
13172
  var mapStatus = (status) => {
13065
13173
  if (status === "not-done") {
13066
13174
  return "notDone";
@@ -13347,20 +13455,21 @@ var getReviewAction2 = (callToAction) => {
13347
13455
  return void 0;
13348
13456
  }
13349
13457
  const { accessibilityDescription, href, title, onClick } = callToAction;
13350
- if (href) {
13458
+ if (!href) {
13351
13459
  return {
13352
13460
  "aria-label": accessibilityDescription,
13353
- href,
13354
- text: title
13461
+ text: title,
13462
+ onClick: (event) => {
13463
+ event.preventDefault();
13464
+ onClick();
13465
+ }
13355
13466
  };
13356
13467
  }
13357
13468
  return {
13358
13469
  "aria-label": accessibilityDescription,
13359
- text: title,
13360
- onClick: (event) => {
13361
- event.preventDefault();
13362
- onClick();
13363
- }
13470
+ href,
13471
+ target: "_blank",
13472
+ text: title
13364
13473
  };
13365
13474
  };
13366
13475
 
@@ -13368,11 +13477,11 @@ var getReviewAction2 = (callToAction) => {
13368
13477
  var import_react19 = require("react");
13369
13478
 
13370
13479
  // ../renderers/src/step/ExternalConfirmationDialog.tsx
13371
- var import_react_intl21 = require("react-intl");
13480
+ var import_react_intl22 = require("react-intl");
13372
13481
 
13373
13482
  // ../renderers/src/messages/external-confirmation.messages.ts
13374
- var import_react_intl20 = require("react-intl");
13375
- var external_confirmation_messages_default = (0, import_react_intl20.defineMessages)({
13483
+ var import_react_intl21 = require("react-intl");
13484
+ var external_confirmation_messages_default = (0, import_react_intl21.defineMessages)({
13376
13485
  title: {
13377
13486
  id: "df.wise.ExternalConfirmation.title",
13378
13487
  defaultMessage: "Please confirm",
@@ -13402,7 +13511,7 @@ function ExternalConfirmationDialog({
13402
13511
  external,
13403
13512
  onClose
13404
13513
  }) {
13405
- const { formatMessage } = (0, import_react_intl21.useIntl)();
13514
+ const { formatMessage } = (0, import_react_intl22.useIntl)();
13406
13515
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
13407
13516
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h2", { className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.title) }),
13408
13517
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_components38.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(external.url) }) }),
@@ -13965,7 +14074,7 @@ function isReference(block) {
13965
14074
 
13966
14075
  // src/legacy/dynamicFlow/DynamicFlow.tsx
13967
14076
  var import_react67 = require("react");
13968
- var import_react_intl53 = require("react-intl");
14077
+ var import_react_intl54 = require("react-intl");
13969
14078
 
13970
14079
  // src/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.tsx
13971
14080
  var import_react25 = require("react");
@@ -14887,11 +14996,11 @@ function useExternalStepPolling(polling, onAction) {
14887
14996
 
14888
14997
  // src/legacy/common/hooks/usePersistAsync/usePersistAsync.ts
14889
14998
  var import_react55 = require("react");
14890
- var import_react_intl44 = require("react-intl");
14999
+ var import_react_intl45 = require("react-intl");
14891
15000
 
14892
15001
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.tsx
14893
15002
  var import_react54 = require("react");
14894
- var import_react_intl43 = require("react-intl");
15003
+ var import_react_intl44 = require("react-intl");
14895
15004
 
14896
15005
  // src/legacy/common/constants/DateMode.ts
14897
15006
  var DateMode = {
@@ -15363,11 +15472,11 @@ var DynamicDivider_default = DynamicDivider;
15363
15472
  // src/legacy/layout/external/DynamicExternal.tsx
15364
15473
  var import_components45 = require("@transferwise/components");
15365
15474
  var import_react32 = require("react");
15366
- var import_react_intl23 = require("react-intl");
15475
+ var import_react_intl24 = require("react-intl");
15367
15476
 
15368
15477
  // src/legacy/layout/external/DynamicExternal.messages.ts
15369
- var import_react_intl22 = require("react-intl");
15370
- var DynamicExternal_messages_default = (0, import_react_intl22.defineMessages)({
15478
+ var import_react_intl23 = require("react-intl");
15479
+ var DynamicExternal_messages_default = (0, import_react_intl23.defineMessages)({
15371
15480
  retryTitle: {
15372
15481
  id: "dynamicFlows.DynamicExternal.retryTitle",
15373
15482
  defaultMessage: "Reopen window",
@@ -15379,7 +15488,7 @@ var DynamicExternal_messages_default = (0, import_react_intl22.defineMessages)({
15379
15488
  var import_jsx_runtime77 = require("react/jsx-runtime");
15380
15489
  var DynamicExternal = ({ component, onAction }) => {
15381
15490
  const { requestUrl, responseHandlers, polling, retryTitle } = component;
15382
- const intl = (0, import_react_intl23.useIntl)();
15491
+ const intl = (0, import_react_intl24.useIntl)();
15383
15492
  const openExternalUrl = (0, import_react32.useCallback)(
15384
15493
  () => window.open(requestUrl, "df-external-window"),
15385
15494
  [requestUrl]
@@ -15458,7 +15567,7 @@ var import_react34 = require("react");
15458
15567
  // src/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.tsx
15459
15568
  var import_components47 = require("@transferwise/components");
15460
15569
  var import_formatting2 = require("@transferwise/formatting");
15461
- var import_react_intl24 = require("react-intl");
15570
+ var import_react_intl25 = require("react-intl");
15462
15571
  var import_jsx_runtime79 = require("react/jsx-runtime");
15463
15572
  function ControlFeedback(props) {
15464
15573
  const { errors = "", validations = [], validationMessages = {} } = props;
@@ -15478,7 +15587,7 @@ function ControlFeedback(props) {
15478
15587
  ] });
15479
15588
  }
15480
15589
  function useDefaultValidationMessages(schema) {
15481
- const { formatMessage, locale } = (0, import_react_intl24.useIntl)();
15590
+ const { formatMessage, locale } = (0, import_react_intl25.useIntl)();
15482
15591
  const formattedMessages = {
15483
15592
  type: formatMessage(validation_messages_default.type),
15484
15593
  minimum: formatMessage(validation_messages_default.minimum, {
@@ -15565,11 +15674,11 @@ function constructUploadError(response) {
15565
15674
  }
15566
15675
 
15567
15676
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.tsx
15568
- var import_react_intl26 = require("react-intl");
15677
+ var import_react_intl27 = require("react-intl");
15569
15678
 
15570
15679
  // src/legacy/common/messages.ts
15571
- var import_react_intl25 = require("react-intl");
15572
- var messages_default = (0, import_react_intl25.defineMessages)({
15680
+ var import_react_intl26 = require("react-intl");
15681
+ var messages_default = (0, import_react_intl26.defineMessages)({
15573
15682
  required: {
15574
15683
  id: "dynamicFlows.DefaultErrorMessages.required",
15575
15684
  defaultMessage: "Please fill out this field.",
@@ -15582,7 +15691,7 @@ function useFormattedDefaultErrorMessages({
15582
15691
  maxItems,
15583
15692
  minItems
15584
15693
  }) {
15585
- const { formatMessage } = (0, import_react_intl26.useIntl)();
15694
+ const { formatMessage } = (0, import_react_intl27.useIntl)();
15586
15695
  const { maxFileSizeError, maxItemsError, minItemsError } = multi_file_upload_messages_default;
15587
15696
  return {
15588
15697
  maxFileSizeErrorMessage: formatMessage(maxFileSizeError),
@@ -15693,7 +15802,7 @@ function getValidationMessages(schema, required, defaultErrorMessages) {
15693
15802
  var import_components50 = require("@transferwise/components");
15694
15803
  var import_classnames8 = __toESM(require_classnames());
15695
15804
  var import_react35 = require("react");
15696
- var import_react_intl28 = require("react-intl");
15805
+ var import_react_intl29 = require("react-intl");
15697
15806
 
15698
15807
  // src/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.tsx
15699
15808
  var import_components49 = require("@transferwise/components");
@@ -15787,8 +15896,8 @@ var getDisabled = (disabled) => {
15787
15896
  };
15788
15897
 
15789
15898
  // src/common/messages/multi-select.messages.ts
15790
- var import_react_intl27 = require("react-intl");
15791
- var multi_select_messages_default2 = (0, import_react_intl27.defineMessages)({
15899
+ var import_react_intl28 = require("react-intl");
15900
+ var multi_select_messages_default2 = (0, import_react_intl28.defineMessages)({
15792
15901
  summary: {
15793
15902
  id: "dynamicFlows.MultiSelect.summary",
15794
15903
  defaultMessage: "{first} and {count} more",
@@ -15806,7 +15915,7 @@ function MultiSelectSchema({
15806
15915
  errors,
15807
15916
  onChange
15808
15917
  }) {
15809
- const { formatMessage, locale } = (0, import_react_intl28.useIntl)();
15918
+ const { formatMessage, locale } = (0, import_react_intl29.useIntl)();
15810
15919
  const { disabled, items, validationMessages, placeholder } = schema;
15811
15920
  const options = items.oneOf.map((item) => mapConstSchemaToOption(item, "select"));
15812
15921
  const id = (0, import_react35.useMemo)(() => schema.$id || generateRandomId(), [schema.$id]);
@@ -15910,7 +16019,7 @@ var getInitialModelIndices2 = (model, options) => {
15910
16019
  var import_components52 = require("@transferwise/components");
15911
16020
  var import_icons4 = require("@transferwise/icons");
15912
16021
  var import_react37 = require("react");
15913
- var import_react_intl31 = require("react-intl");
16022
+ var import_react_intl32 = require("react-intl");
15914
16023
 
15915
16024
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.tsx
15916
16025
  var import_components51 = require("@transferwise/components");
@@ -15929,8 +16038,8 @@ function ItemSummaryOption2({ item, onClick }) {
15929
16038
  }
15930
16039
 
15931
16040
  // src/common/messages/repeatable.messages.ts
15932
- var import_react_intl29 = require("react-intl");
15933
- var repeatable_messages_default2 = (0, import_react_intl29.defineMessages)({
16041
+ var import_react_intl30 = require("react-intl");
16042
+ var repeatable_messages_default2 = (0, import_react_intl30.defineMessages)({
15934
16043
  addItemTitle: {
15935
16044
  id: "dynamicFlows.ArraySchema.addItemTitle",
15936
16045
  defaultMessage: "Add Item",
@@ -15955,7 +16064,7 @@ var repeatable_messages_default2 = (0, import_react_intl29.defineMessages)({
15955
16064
 
15956
16065
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.tsx
15957
16066
  var import_react36 = require("react");
15958
- var import_react_intl30 = require("react-intl");
16067
+ var import_react_intl31 = require("react-intl");
15959
16068
  var import_jsx_runtime84 = require("react/jsx-runtime");
15960
16069
  function RepeatableSchemaStep({
15961
16070
  type,
@@ -15966,7 +16075,7 @@ function RepeatableSchemaStep({
15966
16075
  onModelChange,
15967
16076
  onAction
15968
16077
  }) {
15969
- const { formatMessage } = (0, import_react_intl30.useIntl)();
16078
+ const { formatMessage } = (0, import_react_intl31.useIntl)();
15970
16079
  const [filename, setFilename] = (0, import_react36.useState)(void 0);
15971
16080
  const step = {
15972
16081
  layout: [
@@ -16273,7 +16382,7 @@ function RepeatableSchema({
16273
16382
  setEditableItem({ item: null, model: null });
16274
16383
  setOpenModalType(null);
16275
16384
  };
16276
- const { formatMessage } = (0, import_react_intl31.useIntl)();
16385
+ const { formatMessage } = (0, import_react_intl32.useIntl)();
16277
16386
  const validations = getValidationFailures(model, schema, required);
16278
16387
  const base64ValidationMessages = useFormattedDefaultErrorMessages({
16279
16388
  minItems: schema.minItems,
@@ -16479,11 +16588,11 @@ var import_react41 = require("react");
16479
16588
 
16480
16589
  // src/legacy/jsonSchemaForm/help/Help.tsx
16481
16590
  var import_components54 = require("@transferwise/components");
16482
- var import_react_intl33 = require("react-intl");
16591
+ var import_react_intl34 = require("react-intl");
16483
16592
 
16484
16593
  // src/common/messages/help.messages.ts
16485
- var import_react_intl32 = require("react-intl");
16486
- var help_messages_default2 = (0, import_react_intl32.defineMessages)({
16594
+ var import_react_intl33 = require("react-intl");
16595
+ var help_messages_default2 = (0, import_react_intl33.defineMessages)({
16487
16596
  helpAria: {
16488
16597
  id: "dynamicFlows.Help.ariaLabel",
16489
16598
  defaultMessage: "Click here for more info.",
@@ -16494,7 +16603,7 @@ var help_messages_default2 = (0, import_react_intl32.defineMessages)({
16494
16603
  // src/legacy/jsonSchemaForm/help/Help.tsx
16495
16604
  var import_jsx_runtime89 = require("react/jsx-runtime");
16496
16605
  function Help2(props) {
16497
- const intl = (0, import_react_intl33.useIntl)();
16606
+ const intl = (0, import_react_intl34.useIntl)();
16498
16607
  return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16499
16608
  import_components54.Info,
16500
16609
  {
@@ -16510,7 +16619,7 @@ var Help_default2 = Help2;
16510
16619
 
16511
16620
  // src/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.tsx
16512
16621
  var import_react40 = require("react");
16513
- var import_react_intl34 = require("react-intl");
16622
+ var import_react_intl35 = require("react-intl");
16514
16623
 
16515
16624
  // src/legacy/formControl/FormControl.tsx
16516
16625
  var import_components55 = require("@transferwise/components");
@@ -17216,7 +17325,7 @@ function SchemaFormControl(props) {
17216
17325
  labelledBy
17217
17326
  } = props;
17218
17327
  const log = useLogger();
17219
- const intl = (0, import_react_intl34.useIntl)();
17328
+ const intl = (0, import_react_intl35.useIntl)();
17220
17329
  const getSanitisedValue = (value2) => isNativeInput(schema.type) && (isNull3(value2) || isUndefined3(value2)) ? "" : value2;
17221
17330
  const onModelChange = (value2, type, metadata) => {
17222
17331
  onChange(getValidBasicModelOrNull(value2, schema), type, metadata);
@@ -17453,7 +17562,7 @@ var OneOfSchema_default = OneOfSchema;
17453
17562
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.tsx
17454
17563
  var import_classnames12 = __toESM(require_classnames());
17455
17564
  var import_react43 = require("react");
17456
- var import_react_intl35 = require("react-intl");
17565
+ var import_react_intl36 = require("react-intl");
17457
17566
 
17458
17567
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.tsx
17459
17568
  var import_components57 = require("@transferwise/components");
@@ -17520,7 +17629,7 @@ function PersistAsyncBlobSchema(props) {
17520
17629
  const [persistAsyncValidations, setPersistAsyncValidations] = (0, import_react43.useState)(null);
17521
17630
  const [validations, setValidations] = (0, import_react43.useState)([]);
17522
17631
  const [changed, setChanged] = (0, import_react43.useState)(false);
17523
- const intl = (0, import_react_intl35.useIntl)();
17632
+ const intl = (0, import_react_intl36.useIntl)();
17524
17633
  const httpClient = useHttpClient();
17525
17634
  const onEvent = useEventDispatcher();
17526
17635
  (0, import_react43.useEffect)(() => {
@@ -17759,11 +17868,11 @@ var PromotedOneOfSchema_default = PromotedOneOfSchema;
17759
17868
 
17760
17869
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.tsx
17761
17870
  var import_components60 = require("@transferwise/components");
17762
- var import_react_intl37 = require("react-intl");
17871
+ var import_react_intl38 = require("react-intl");
17763
17872
 
17764
17873
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.ts
17765
- var import_react_intl36 = require("react-intl");
17766
- var ReadOnlySchema_messages_default = (0, import_react_intl36.defineMessages)({
17874
+ var import_react_intl37 = require("react-intl");
17875
+ var ReadOnlySchema_messages_default = (0, import_react_intl37.defineMessages)({
17767
17876
  yes: {
17768
17877
  id: "dynamicFlows.ReadOnlySchema.yes",
17769
17878
  defaultMessage: "Yes",
@@ -17780,7 +17889,7 @@ var ReadOnlySchema_messages_default = (0, import_react_intl36.defineMessages)({
17780
17889
  var import_jsx_runtime100 = require("react/jsx-runtime");
17781
17890
  function ReadOnlySchema({ schema, model }) {
17782
17891
  const { title = "" } = schema;
17783
- const { formatMessage } = (0, import_react_intl37.useIntl)();
17892
+ const { formatMessage } = (0, import_react_intl38.useIntl)();
17784
17893
  const value = getValueForSchema({ schema, model, formatMessage });
17785
17894
  return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_components60.DefinitionList, { layout: import_components60.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
17786
17895
  }
@@ -18242,12 +18351,11 @@ var DynamicStatusList = ({ component, onAction }) => {
18242
18351
  var mapListItemToSummary = (props, onAction) => {
18243
18352
  const { title, description, icon, status } = props;
18244
18353
  const summaryProps = __spreadValues(__spreadValues({
18245
- key: `${title}/${description || ""}`,
18246
18354
  title,
18247
18355
  description,
18248
18356
  action: "callToAction" in props ? callToActionToSummaryAction(props == null ? void 0 : props.callToAction, onAction) : void 0
18249
18357
  }, (icon == null ? void 0 : icon.name) ? { icon: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(DynamicIcon_default2, { type: icon.name }) } : {}), status ? { status: statusMap[status] } : {});
18250
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components65.Summary, __spreadValues({}, summaryProps));
18358
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components65.Summary, __spreadValues({}, summaryProps), `${title}/${description || ""}`);
18251
18359
  };
18252
18360
  var callToActionToSummaryAction = (callToAction, onAction) => {
18253
18361
  if (!callToAction) {
@@ -18273,7 +18381,12 @@ var callToActionToSummaryAction = (callToAction, onAction) => {
18273
18381
  }
18274
18382
  };
18275
18383
  }
18276
- return void 0;
18384
+ return {
18385
+ text: "title",
18386
+ "aria-label": accessibilityDescription,
18387
+ onClick: () => {
18388
+ }
18389
+ };
18277
18390
  };
18278
18391
  var statusListMap = {
18279
18392
  done: "done",
@@ -18308,11 +18421,11 @@ var DynamicLoadingIndicator_default = DynamicLoadingIndicator;
18308
18421
 
18309
18422
  // src/legacy/layout/paragraph/DynamicParagraph.tsx
18310
18423
  var import_components68 = require("@transferwise/components");
18311
- var import_react_intl39 = require("react-intl");
18424
+ var import_react_intl40 = require("react-intl");
18312
18425
 
18313
18426
  // src/common/messages/paragraph.messages.ts
18314
- var import_react_intl38 = require("react-intl");
18315
- var paragraph_messages_default2 = (0, import_react_intl38.defineMessages)({
18427
+ var import_react_intl39 = require("react-intl");
18428
+ var paragraph_messages_default2 = (0, import_react_intl39.defineMessages)({
18316
18429
  copy: {
18317
18430
  id: "dynamicFlows.DynamicParagraph.copy",
18318
18431
  defaultMessage: "Copy",
@@ -18344,7 +18457,7 @@ function BasicDynamicParagraph({ component }) {
18344
18457
  return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: `np-text-body-large ${getTextAlignmentAndMargin2(component)}`, children: component.text });
18345
18458
  }
18346
18459
  function CopyableDynamicParagraph({ component }) {
18347
- const { formatMessage } = (0, import_react_intl39.useIntl)();
18460
+ const { formatMessage } = (0, import_react_intl40.useIntl)();
18348
18461
  const createSnackbar = useSnackBarIfAvailable2();
18349
18462
  const { text } = component;
18350
18463
  const copy = () => {
@@ -18419,16 +18532,16 @@ function DynamicReview(props) {
18419
18532
  const { title, action, behavior } = callToAction2;
18420
18533
  if (behavior) {
18421
18534
  const { action: behaviorAction, link } = behavior;
18422
- if (link) {
18535
+ if (behaviorAction) {
18423
18536
  return {
18424
18537
  text: title != null ? title : "",
18425
- href: link == null ? void 0 : link.url
18538
+ onClick: behaviorAction ? getOnClick(behaviorAction) : void 0
18426
18539
  };
18427
18540
  }
18428
- if (behaviorAction) {
18541
+ if (link) {
18429
18542
  return {
18430
18543
  text: title != null ? title : "",
18431
- onClick: behaviorAction ? getOnClick(behaviorAction) : void 0
18544
+ href: link == null ? void 0 : link.url
18432
18545
  };
18433
18546
  }
18434
18547
  }
@@ -18480,7 +18593,7 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
18480
18593
 
18481
18594
  // src/legacy/layout/search/SearchResults.tsx
18482
18595
  var import_components71 = require("@transferwise/components");
18483
- var import_react_intl40 = require("react-intl");
18596
+ var import_react_intl41 = require("react-intl");
18484
18597
  var import_jsx_runtime114 = require("react/jsx-runtime");
18485
18598
  function SearchResults2({ results, emptyMessage, onSelect }) {
18486
18599
  if (results.length === 0) {
@@ -18500,7 +18613,7 @@ function SearchResults2({ results, emptyMessage, onSelect }) {
18500
18613
  )) });
18501
18614
  }
18502
18615
  function ErrorResult2({ onRetrySearch }) {
18503
- const intl = (0, import_react_intl40.useIntl)();
18616
+ const intl = (0, import_react_intl41.useIntl)();
18504
18617
  return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("p", { className: "m-t-2", children: [
18505
18618
  intl.formatMessage(generic_error_messages_default.genericError),
18506
18619
  "\xA0",
@@ -18590,11 +18703,11 @@ var addQueryParameter2 = (url, key, value) => {
18590
18703
  // src/legacy/layout/search/DynamicSearch.tsx
18591
18704
  var import_components72 = require("@transferwise/components");
18592
18705
  var import_classnames14 = __toESM(require_classnames());
18593
- var import_react_intl42 = require("react-intl");
18706
+ var import_react_intl43 = require("react-intl");
18594
18707
 
18595
18708
  // src/common/messages/search.messages.ts
18596
- var import_react_intl41 = require("react-intl");
18597
- var search_messages_default2 = (0, import_react_intl41.defineMessages)({
18709
+ var import_react_intl42 = require("react-intl");
18710
+ var search_messages_default2 = (0, import_react_intl42.defineMessages)({
18598
18711
  loading: {
18599
18712
  id: "dynamicFlows.SearchLayout.loading",
18600
18713
  defaultMessage: "Loading...",
@@ -18607,7 +18720,7 @@ var import_jsx_runtime115 = require("react/jsx-runtime");
18607
18720
  var DEBOUNCE_TIME2 = 400;
18608
18721
  function DynamicSearch({ component, onAction }) {
18609
18722
  const [query, setQuery] = (0, import_react51.useState)("");
18610
- const intl = (0, import_react_intl42.useIntl)();
18723
+ const intl = (0, import_react_intl43.useIntl)();
18611
18724
  const { control, title, margin, url, method, param, emptyMessage } = component;
18612
18725
  const { status, results, search } = useSearch({ url, method, param });
18613
18726
  const onEvent = useEventDispatcher();
@@ -18884,7 +18997,7 @@ var controlTypesWithPersistOnChange = /* @__PURE__ */ new Set([
18884
18997
  ]);
18885
18998
  function PersistAsyncBasicSchema(props) {
18886
18999
  const { schema, required = false, submitted, errors, onChange, onPersistAsync } = props;
18887
- const intl = (0, import_react_intl43.useIntl)();
19000
+ const intl = (0, import_react_intl44.useIntl)();
18888
19001
  const httpClient = useHttpClient();
18889
19002
  const onEvent = useEventDispatcher();
18890
19003
  const [persistAsyncModel, setPersistAsyncModel] = (0, import_react54.useState)(null);
@@ -18979,7 +19092,7 @@ var PersistAsyncBasicSchema_default = PersistAsyncBasicSchema;
18979
19092
  var usePersistAsync = (persistAsync) => {
18980
19093
  const [abortController, setAbortController] = (0, import_react55.useState)(null);
18981
19094
  const httpClient = useHttpClient();
18982
- const intl = (0, import_react_intl44.useIntl)();
19095
+ const intl = (0, import_react_intl45.useIntl)();
18983
19096
  const { schema } = persistAsync;
18984
19097
  async function handlePersistAsync(model) {
18985
19098
  const isInvalidSchema = model instanceof Blob ? !isBlobSchema2(schema) : !isValidSchema(model, schema);
@@ -19212,12 +19325,12 @@ var import_react63 = require("react");
19212
19325
 
19213
19326
  // src/common/cameraCapture/CameraCapture.tsx
19214
19327
  var import_react62 = require("react");
19215
- var import_react_intl49 = require("react-intl");
19328
+ var import_react_intl50 = require("react-intl");
19216
19329
  var import_react_webcam = __toESM(require("react-webcam"));
19217
19330
 
19218
19331
  // src/common/cameraCapture/CameraCapture.messages.ts
19219
- var import_react_intl45 = require("react-intl");
19220
- var CameraCapture_messages_default = (0, import_react_intl45.defineMessages)({
19332
+ var import_react_intl46 = require("react-intl");
19333
+ var CameraCapture_messages_default = (0, import_react_intl46.defineMessages)({
19221
19334
  reviewSubmit: {
19222
19335
  id: "dynamicFlows.CameraCapture.reviewSubmit",
19223
19336
  defaultMessage: "Yes, submit",
@@ -19277,14 +19390,14 @@ var CameraCapture_messages_default = (0, import_react_intl45.defineMessages)({
19277
19390
 
19278
19391
  // src/common/cameraCapture/components/bottomBar/BottomBar.tsx
19279
19392
  var import_components74 = require("@transferwise/components");
19280
- var import_react_intl46 = require("react-intl");
19393
+ var import_react_intl47 = require("react-intl");
19281
19394
  var import_jsx_runtime120 = require("react/jsx-runtime");
19282
19395
  var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "bottom-bar", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(CaptureButton, { onClick: onCapture }) });
19283
19396
  var ReviewBottomBar = ({
19284
19397
  onSubmit,
19285
19398
  onRetry
19286
19399
  }) => {
19287
- const intl = (0, import_react_intl46.useIntl)();
19400
+ const intl = (0, import_react_intl47.useIntl)();
19288
19401
  return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "bottom-bar p-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "row", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [
19289
19402
  /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
19290
19403
  import_components74.Button,
@@ -19323,11 +19436,11 @@ var CaptureButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime120.j
19323
19436
  );
19324
19437
 
19325
19438
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
19326
- var import_react_intl48 = require("react-intl");
19439
+ var import_react_intl49 = require("react-intl");
19327
19440
 
19328
19441
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.ts
19329
- var import_react_intl47 = require("react-intl");
19330
- var OrientationLockOverlay_messages_default = (0, import_react_intl47.defineMessages)({
19442
+ var import_react_intl48 = require("react-intl");
19443
+ var OrientationLockOverlay_messages_default = (0, import_react_intl48.defineMessages)({
19331
19444
  text: {
19332
19445
  id: "dynamicFlows.CameraCapture.rotatePhone.text",
19333
19446
  defaultMessage: "Rotate your phone to portrait view to take a photo",
@@ -19338,7 +19451,7 @@ var OrientationLockOverlay_messages_default = (0, import_react_intl47.defineMess
19338
19451
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
19339
19452
  var import_jsx_runtime121 = require("react/jsx-runtime");
19340
19453
  function OrientationLockOverlay() {
19341
- const intl = (0, import_react_intl48.useIntl)();
19454
+ const intl = (0, import_react_intl49.useIntl)();
19342
19455
  return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "orientation-lock-overlay", children: [
19343
19456
  /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
19344
19457
  "img",
@@ -19628,7 +19741,7 @@ function CameraCapture({
19628
19741
  shouldLockOrientation,
19629
19742
  onEvent
19630
19743
  );
19631
- const intl = (0, import_react_intl49.useIntl)();
19744
+ const intl = (0, import_react_intl50.useIntl)();
19632
19745
  const handleCapture = (0, import_react62.useCallback)(async () => {
19633
19746
  var _a, _b, _c, _d, _e, _f;
19634
19747
  if (((_a = webcamReference == null ? void 0 : webcamReference.current) == null ? void 0 : _a.video) && ((_c = (_b = webcamReference == null ? void 0 : webcamReference.current) == null ? void 0 : _b.video) == null ? void 0 : _c.readyState) >= 3) {
@@ -19851,11 +19964,11 @@ function getFirstAction(step) {
19851
19964
  }
19852
19965
 
19853
19966
  // src/legacy/step/externalConfirmationStep/ExternalConfirmationStep.tsx
19854
- var import_react_intl51 = require("react-intl");
19967
+ var import_react_intl52 = require("react-intl");
19855
19968
 
19856
19969
  // src/common/messages/external-confirmation.messages.ts
19857
- var import_react_intl50 = require("react-intl");
19858
- var external_confirmation_messages_default2 = (0, import_react_intl50.defineMessages)({
19970
+ var import_react_intl51 = require("react-intl");
19971
+ var external_confirmation_messages_default2 = (0, import_react_intl51.defineMessages)({
19859
19972
  title: {
19860
19973
  id: "dynamicFlows.ExternalConfirmation.title",
19861
19974
  defaultMessage: "Please confirm",
@@ -19883,7 +19996,7 @@ var import_jsx_runtime126 = require("react/jsx-runtime");
19883
19996
  var noop6 = () => {
19884
19997
  };
19885
19998
  function ExternalConfirmationStep({ url, onClose }) {
19886
- const { formatMessage } = (0, import_react_intl51.useIntl)();
19999
+ const { formatMessage } = (0, import_react_intl52.useIntl)();
19887
20000
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
19888
20001
  DynamicLayout_default,
19889
20002
  {
@@ -20256,9 +20369,9 @@ var assertResponseIsValid2 = (response) => {
20256
20369
  var isResponse2 = (response) => typeof response === "object" && response !== null && "clone" in response && "bodyUsed" in response;
20257
20370
 
20258
20371
  // src/legacy/dynamicFlow/utils/useErrorResponse.tsx
20259
- var import_react_intl52 = require("react-intl");
20372
+ var import_react_intl53 = require("react-intl");
20260
20373
  var useErrorResponse = () => {
20261
- const { formatMessage } = (0, import_react_intl52.useIntl)();
20374
+ const { formatMessage } = (0, import_react_intl53.useIntl)();
20262
20375
  return async (response, fetchType, isInitialRequest) => {
20263
20376
  try {
20264
20377
  const errorResponse = await parseErrorResponse(response);
@@ -20302,7 +20415,7 @@ var DynamicFlowComponent = ({
20302
20415
  setSchemaModel
20303
20416
  } = useDynamicFlowState(initialStep);
20304
20417
  const [submitted, setSubmitted] = (0, import_react67.useState)(false);
20305
- const { locale } = (0, import_react_intl53.useIntl)();
20418
+ const { locale } = (0, import_react_intl54.useIntl)();
20306
20419
  const { isLoading, loader, setLoadingState } = useLoader(
20307
20420
  loaderConfig,
20308
20421
  initialStep ? "idle" : "initial"