@wise/dynamic-flow-client 3.25.2 → 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,
@@ -10817,9 +10877,39 @@ var validation_messages_default = (0, import_react_intl3.defineMessages)({
10817
10877
  }
10818
10878
  });
10819
10879
 
10820
- // src/common/messages/multi-file-upload.messages.ts
10880
+ // src/common/messages/validation.array.messages.ts
10821
10881
  var import_react_intl4 = require("react-intl");
10822
- 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)({
10823
10913
  minItemsError: {
10824
10914
  id: "dynamicFlows.MultipleFileUploadSchema.minItemsError",
10825
10915
  defaultMessage: "Please upload at least {minItems} file(s).",
@@ -10837,21 +10927,6 @@ var multi_file_upload_messages_default = (0, import_react_intl4.defineMessages)(
10837
10927
  }
10838
10928
  });
10839
10929
 
10840
- // src/common/messages/validation.array.messages.ts
10841
- var import_react_intl5 = require("react-intl");
10842
- var validation_array_messages_default = (0, import_react_intl5.defineMessages)({
10843
- minItemsError: {
10844
- id: "dynamicFlows.ArraySchema.minItemsError",
10845
- defaultMessage: "Please add at least {minItems}.",
10846
- description: "Customer inputs less than the expected number of values"
10847
- },
10848
- maxItemsError: {
10849
- id: "dynamicFlows.ArraySchema.maxItemsError",
10850
- defaultMessage: "Please add {maxItems} or fewer.",
10851
- description: "Customer inputs more than the allowed number of values"
10852
- }
10853
- });
10854
-
10855
10930
  // src/revamp/renderers/getSchemaErrorMessageFunction.ts
10856
10931
  function getSchemaErrorMessageFunction(formatMessage, locale) {
10857
10932
  return (validationMessages) => createErrorMessageFunctions(validationMessages != null ? validationMessages : {}, formatMessage, locale);
@@ -10917,6 +10992,14 @@ var createErrorMessageFunctions = (validationMessages, formatMessage, locale) =>
10917
10992
  maxItems
10918
10993
  });
10919
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
+ },
10920
11003
  pattern() {
10921
11004
  var _a;
10922
11005
  return (_a = validationMessages.pattern) != null ? _a : formatMessage(validation_messages_default.pattern);
@@ -11018,7 +11101,7 @@ function useDynamicFlowCore(props) {
11018
11101
  const onError = useStableCallback(rest.onError);
11019
11102
  const onEvent = useStableCallback(rest.onEvent);
11020
11103
  const onLog = useStableCallback(rest.onLog);
11021
- const { formatMessage, locale } = (0, import_react_intl6.useIntl)();
11104
+ const { formatMessage, locale } = (0, import_react_intl7.useIntl)();
11022
11105
  const getErrorMessageFunctions = (0, import_react3.useMemo)(
11023
11106
  () => getSchemaErrorMessageFunction(formatMessage, locale),
11024
11107
  [formatMessage, locale]
@@ -11355,11 +11438,11 @@ var import_components4 = require("@transferwise/components");
11355
11438
 
11356
11439
  // ../renderers/src/components/Help.tsx
11357
11440
  var import_components3 = require("@transferwise/components");
11358
- var import_react_intl8 = require("react-intl");
11441
+ var import_react_intl9 = require("react-intl");
11359
11442
 
11360
11443
  // ../renderers/src/messages/help.messages.ts
11361
- var import_react_intl7 = require("react-intl");
11362
- 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)({
11363
11446
  helpAria: {
11364
11447
  id: "df.wise.Help.ariaLabel",
11365
11448
  defaultMessage: "Click here for more info.",
@@ -11370,7 +11453,7 @@ var help_messages_default = (0, import_react_intl7.defineMessages)({
11370
11453
  // ../renderers/src/components/Help.tsx
11371
11454
  var import_jsx_runtime8 = require("react/jsx-runtime");
11372
11455
  function Help({ help }) {
11373
- const intl = (0, import_react_intl8.useIntl)();
11456
+ const intl = (0, import_react_intl9.useIntl)();
11374
11457
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
11375
11458
  import_components3.Info,
11376
11459
  {
@@ -11705,7 +11788,7 @@ var DateInputRenderer_default = DateInputRenderer;
11705
11788
  // ../renderers/src/DecisionRenderer.tsx
11706
11789
  var import_components9 = require("@transferwise/components");
11707
11790
 
11708
- // ../../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
11709
11792
  init_index_a91e5689_esm();
11710
11793
  init_clsx();
11711
11794
  var import_react8 = require("react");
@@ -12089,11 +12172,11 @@ function OptionMedia({ icon, image }) {
12089
12172
  }
12090
12173
 
12091
12174
  // ../renderers/src/MultiSelectInputRenderer.tsx
12092
- var import_react_intl10 = require("react-intl");
12175
+ var import_react_intl11 = require("react-intl");
12093
12176
 
12094
12177
  // ../renderers/src/messages/multi-select.messages.ts
12095
- var import_react_intl9 = require("react-intl");
12096
- 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)({
12097
12180
  summary: {
12098
12181
  id: "df.wise.MultiSelect.summary",
12099
12182
  defaultMessage: "{first} and {count} more",
@@ -12109,7 +12192,7 @@ var MultiSelectInputRenderer = {
12109
12192
  render: (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
12110
12193
  };
12111
12194
  function MultiSelectInputRendererComponent(props) {
12112
- const { formatMessage } = (0, import_react_intl10.useIntl)();
12195
+ const { formatMessage } = (0, import_react_intl11.useIntl)();
12113
12196
  const [stagedIndices, setStagedIndices] = (0, import_react11.useState)();
12114
12197
  const {
12115
12198
  id,
@@ -12348,7 +12431,7 @@ var NumberInputRenderer = {
12348
12431
  var NumberInputRenderer_default = NumberInputRenderer;
12349
12432
 
12350
12433
  // ../renderers/src/ParagraphRenderer.tsx
12351
- var import_react_intl12 = require("react-intl");
12434
+ var import_react_intl13 = require("react-intl");
12352
12435
 
12353
12436
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
12354
12437
  var import_components23 = require("@transferwise/components");
@@ -12364,8 +12447,8 @@ var import_components24 = require("@transferwise/components");
12364
12447
  var import_classnames4 = __toESM(require_classnames());
12365
12448
 
12366
12449
  // ../renderers/src/messages/paragraph.messages.ts
12367
- var import_react_intl11 = require("react-intl");
12368
- 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)({
12369
12452
  copy: {
12370
12453
  id: "df.wise.DynamicParagraph.copy",
12371
12454
  defaultMessage: "Copy",
@@ -12396,7 +12479,7 @@ function CopyableParagraph({
12396
12479
  align,
12397
12480
  className
12398
12481
  }) {
12399
- const { formatMessage } = (0, import_react_intl12.useIntl)();
12482
+ const { formatMessage } = (0, import_react_intl13.useIntl)();
12400
12483
  const createSnackbar = useSnackBarIfAvailable();
12401
12484
  const copy = () => {
12402
12485
  navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
@@ -12422,11 +12505,11 @@ var ParagraphRenderer_default = ParagraphRenderer;
12422
12505
  var import_components25 = require("@transferwise/components");
12423
12506
  var import_react13 = require("react");
12424
12507
  var import_icons = require("@transferwise/icons");
12425
- var import_react_intl14 = require("react-intl");
12508
+ var import_react_intl15 = require("react-intl");
12426
12509
 
12427
12510
  // ../renderers/src/messages/repeatable.messages.ts
12428
- var import_react_intl13 = require("react-intl");
12429
- 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)({
12430
12513
  addItemTitle: {
12431
12514
  id: "df.wise.ArraySchema.addItemTitle",
12432
12515
  defaultMessage: "Add Item",
@@ -12470,7 +12553,7 @@ function Repeatable(props) {
12470
12553
  onSave,
12471
12554
  onRemove
12472
12555
  } = props;
12473
- const { formatMessage } = (0, import_react_intl14.useIntl)();
12556
+ const { formatMessage } = (0, import_react_intl15.useIntl)();
12474
12557
  const [openModalType, setOpenModalType] = (0, import_react13.useState)(null);
12475
12558
  const onAddItem = () => {
12476
12559
  onAdd();
@@ -12555,11 +12638,11 @@ var RepeatableRenderer_default = RepeatableRenderer;
12555
12638
  var import_components27 = require("@transferwise/components");
12556
12639
 
12557
12640
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
12558
- var import_react_intl16 = require("react-intl");
12641
+ var import_react_intl17 = require("react-intl");
12559
12642
 
12560
12643
  // ../renderers/src/messages/generic-error.messages.ts
12561
- var import_react_intl15 = require("react-intl");
12562
- 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)({
12563
12646
  genericErrorRetryHint: {
12564
12647
  id: "df.wise.PersistAsyncSchema.genericError",
12565
12648
  defaultMessage: "Something went wrong, please try again.",
@@ -12581,7 +12664,7 @@ var generic_error_messages_default2 = (0, import_react_intl15.defineMessages)({
12581
12664
  var import_components26 = require("@transferwise/components");
12582
12665
  var import_jsx_runtime41 = require("react/jsx-runtime");
12583
12666
  function ErrorResult({ state }) {
12584
- const intl = (0, import_react_intl16.useIntl)();
12667
+ const intl = (0, import_react_intl17.useIntl)();
12585
12668
  const buttonVisualProps = {
12586
12669
  priority: "tertiary",
12587
12670
  size: "sm",
@@ -12606,8 +12689,8 @@ function ErrorResult({ state }) {
12606
12689
  var import_react14 = require("react");
12607
12690
 
12608
12691
  // ../renderers/src/messages/search.messages.ts
12609
- var import_react_intl17 = require("react-intl");
12610
- 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)({
12611
12694
  loading: {
12612
12695
  id: "df.wise.SearchLayout.loading",
12613
12696
  defaultMessage: "Loading...",
@@ -12616,7 +12699,7 @@ var search_messages_default = (0, import_react_intl17.defineMessages)({
12616
12699
  });
12617
12700
 
12618
12701
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
12619
- var import_react_intl18 = require("react-intl");
12702
+ var import_react_intl19 = require("react-intl");
12620
12703
  var import_jsx_runtime42 = require("react/jsx-runtime");
12621
12704
  function BlockSearchRendererComponent({
12622
12705
  id,
@@ -12629,7 +12712,7 @@ function BlockSearchRendererComponent({
12629
12712
  }) {
12630
12713
  const [hasSearched, setHasSearched] = (0, import_react14.useState)(false);
12631
12714
  const trackEvent = useTrackEvent();
12632
- const { formatMessage } = (0, import_react_intl18.useIntl)();
12715
+ const { formatMessage } = (0, import_react_intl19.useIntl)();
12633
12716
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getMargin(margin), children: [
12634
12717
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12635
12718
  import_components27.Input,
@@ -12701,7 +12784,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
12701
12784
  var import_components28 = require("@transferwise/components");
12702
12785
  var import_icons2 = require("@transferwise/icons");
12703
12786
  var import_react15 = require("react");
12704
- var import_react_intl19 = require("react-intl");
12787
+ var import_react_intl20 = require("react-intl");
12705
12788
  var import_jsx_runtime43 = require("react/jsx-runtime");
12706
12789
  function InlineSearchRenderer({
12707
12790
  id,
@@ -12713,7 +12796,7 @@ function InlineSearchRenderer({
12713
12796
  }) {
12714
12797
  const [hasSearched, setHasSearched] = (0, import_react15.useState)(false);
12715
12798
  const trackEvent = useTrackEvent();
12716
- const intl = (0, import_react_intl19.useIntl)();
12799
+ const intl = (0, import_react_intl20.useIntl)();
12717
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)(
12718
12801
  import_components28.Typeahead,
12719
12802
  {
@@ -12760,7 +12843,7 @@ function mapResultToTypeaheadOption(result) {
12760
12843
  };
12761
12844
  }
12762
12845
  function TypeaheadFooter({ state, isLoading }) {
12763
- const { formatMessage } = (0, import_react_intl19.useIntl)();
12846
+ const { formatMessage } = (0, import_react_intl20.useIntl)();
12764
12847
  if (state.type === "noResults") {
12765
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 });
12766
12849
  }
@@ -13394,11 +13477,11 @@ var getReviewAction2 = (callToAction) => {
13394
13477
  var import_react19 = require("react");
13395
13478
 
13396
13479
  // ../renderers/src/step/ExternalConfirmationDialog.tsx
13397
- var import_react_intl21 = require("react-intl");
13480
+ var import_react_intl22 = require("react-intl");
13398
13481
 
13399
13482
  // ../renderers/src/messages/external-confirmation.messages.ts
13400
- var import_react_intl20 = require("react-intl");
13401
- 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)({
13402
13485
  title: {
13403
13486
  id: "df.wise.ExternalConfirmation.title",
13404
13487
  defaultMessage: "Please confirm",
@@ -13428,7 +13511,7 @@ function ExternalConfirmationDialog({
13428
13511
  external,
13429
13512
  onClose
13430
13513
  }) {
13431
- const { formatMessage } = (0, import_react_intl21.useIntl)();
13514
+ const { formatMessage } = (0, import_react_intl22.useIntl)();
13432
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: [
13433
13516
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h2", { className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.title) }),
13434
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) }) }),
@@ -13991,7 +14074,7 @@ function isReference(block) {
13991
14074
 
13992
14075
  // src/legacy/dynamicFlow/DynamicFlow.tsx
13993
14076
  var import_react67 = require("react");
13994
- var import_react_intl53 = require("react-intl");
14077
+ var import_react_intl54 = require("react-intl");
13995
14078
 
13996
14079
  // src/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.tsx
13997
14080
  var import_react25 = require("react");
@@ -14913,11 +14996,11 @@ function useExternalStepPolling(polling, onAction) {
14913
14996
 
14914
14997
  // src/legacy/common/hooks/usePersistAsync/usePersistAsync.ts
14915
14998
  var import_react55 = require("react");
14916
- var import_react_intl44 = require("react-intl");
14999
+ var import_react_intl45 = require("react-intl");
14917
15000
 
14918
15001
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.tsx
14919
15002
  var import_react54 = require("react");
14920
- var import_react_intl43 = require("react-intl");
15003
+ var import_react_intl44 = require("react-intl");
14921
15004
 
14922
15005
  // src/legacy/common/constants/DateMode.ts
14923
15006
  var DateMode = {
@@ -15389,11 +15472,11 @@ var DynamicDivider_default = DynamicDivider;
15389
15472
  // src/legacy/layout/external/DynamicExternal.tsx
15390
15473
  var import_components45 = require("@transferwise/components");
15391
15474
  var import_react32 = require("react");
15392
- var import_react_intl23 = require("react-intl");
15475
+ var import_react_intl24 = require("react-intl");
15393
15476
 
15394
15477
  // src/legacy/layout/external/DynamicExternal.messages.ts
15395
- var import_react_intl22 = require("react-intl");
15396
- 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)({
15397
15480
  retryTitle: {
15398
15481
  id: "dynamicFlows.DynamicExternal.retryTitle",
15399
15482
  defaultMessage: "Reopen window",
@@ -15405,7 +15488,7 @@ var DynamicExternal_messages_default = (0, import_react_intl22.defineMessages)({
15405
15488
  var import_jsx_runtime77 = require("react/jsx-runtime");
15406
15489
  var DynamicExternal = ({ component, onAction }) => {
15407
15490
  const { requestUrl, responseHandlers, polling, retryTitle } = component;
15408
- const intl = (0, import_react_intl23.useIntl)();
15491
+ const intl = (0, import_react_intl24.useIntl)();
15409
15492
  const openExternalUrl = (0, import_react32.useCallback)(
15410
15493
  () => window.open(requestUrl, "df-external-window"),
15411
15494
  [requestUrl]
@@ -15484,7 +15567,7 @@ var import_react34 = require("react");
15484
15567
  // src/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.tsx
15485
15568
  var import_components47 = require("@transferwise/components");
15486
15569
  var import_formatting2 = require("@transferwise/formatting");
15487
- var import_react_intl24 = require("react-intl");
15570
+ var import_react_intl25 = require("react-intl");
15488
15571
  var import_jsx_runtime79 = require("react/jsx-runtime");
15489
15572
  function ControlFeedback(props) {
15490
15573
  const { errors = "", validations = [], validationMessages = {} } = props;
@@ -15504,7 +15587,7 @@ function ControlFeedback(props) {
15504
15587
  ] });
15505
15588
  }
15506
15589
  function useDefaultValidationMessages(schema) {
15507
- const { formatMessage, locale } = (0, import_react_intl24.useIntl)();
15590
+ const { formatMessage, locale } = (0, import_react_intl25.useIntl)();
15508
15591
  const formattedMessages = {
15509
15592
  type: formatMessage(validation_messages_default.type),
15510
15593
  minimum: formatMessage(validation_messages_default.minimum, {
@@ -15591,11 +15674,11 @@ function constructUploadError(response) {
15591
15674
  }
15592
15675
 
15593
15676
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.tsx
15594
- var import_react_intl26 = require("react-intl");
15677
+ var import_react_intl27 = require("react-intl");
15595
15678
 
15596
15679
  // src/legacy/common/messages.ts
15597
- var import_react_intl25 = require("react-intl");
15598
- 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)({
15599
15682
  required: {
15600
15683
  id: "dynamicFlows.DefaultErrorMessages.required",
15601
15684
  defaultMessage: "Please fill out this field.",
@@ -15608,7 +15691,7 @@ function useFormattedDefaultErrorMessages({
15608
15691
  maxItems,
15609
15692
  minItems
15610
15693
  }) {
15611
- const { formatMessage } = (0, import_react_intl26.useIntl)();
15694
+ const { formatMessage } = (0, import_react_intl27.useIntl)();
15612
15695
  const { maxFileSizeError, maxItemsError, minItemsError } = multi_file_upload_messages_default;
15613
15696
  return {
15614
15697
  maxFileSizeErrorMessage: formatMessage(maxFileSizeError),
@@ -15719,7 +15802,7 @@ function getValidationMessages(schema, required, defaultErrorMessages) {
15719
15802
  var import_components50 = require("@transferwise/components");
15720
15803
  var import_classnames8 = __toESM(require_classnames());
15721
15804
  var import_react35 = require("react");
15722
- var import_react_intl28 = require("react-intl");
15805
+ var import_react_intl29 = require("react-intl");
15723
15806
 
15724
15807
  // src/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.tsx
15725
15808
  var import_components49 = require("@transferwise/components");
@@ -15813,8 +15896,8 @@ var getDisabled = (disabled) => {
15813
15896
  };
15814
15897
 
15815
15898
  // src/common/messages/multi-select.messages.ts
15816
- var import_react_intl27 = require("react-intl");
15817
- 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)({
15818
15901
  summary: {
15819
15902
  id: "dynamicFlows.MultiSelect.summary",
15820
15903
  defaultMessage: "{first} and {count} more",
@@ -15832,7 +15915,7 @@ function MultiSelectSchema({
15832
15915
  errors,
15833
15916
  onChange
15834
15917
  }) {
15835
- const { formatMessage, locale } = (0, import_react_intl28.useIntl)();
15918
+ const { formatMessage, locale } = (0, import_react_intl29.useIntl)();
15836
15919
  const { disabled, items, validationMessages, placeholder } = schema;
15837
15920
  const options = items.oneOf.map((item) => mapConstSchemaToOption(item, "select"));
15838
15921
  const id = (0, import_react35.useMemo)(() => schema.$id || generateRandomId(), [schema.$id]);
@@ -15936,7 +16019,7 @@ var getInitialModelIndices2 = (model, options) => {
15936
16019
  var import_components52 = require("@transferwise/components");
15937
16020
  var import_icons4 = require("@transferwise/icons");
15938
16021
  var import_react37 = require("react");
15939
- var import_react_intl31 = require("react-intl");
16022
+ var import_react_intl32 = require("react-intl");
15940
16023
 
15941
16024
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.tsx
15942
16025
  var import_components51 = require("@transferwise/components");
@@ -15955,8 +16038,8 @@ function ItemSummaryOption2({ item, onClick }) {
15955
16038
  }
15956
16039
 
15957
16040
  // src/common/messages/repeatable.messages.ts
15958
- var import_react_intl29 = require("react-intl");
15959
- 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)({
15960
16043
  addItemTitle: {
15961
16044
  id: "dynamicFlows.ArraySchema.addItemTitle",
15962
16045
  defaultMessage: "Add Item",
@@ -15981,7 +16064,7 @@ var repeatable_messages_default2 = (0, import_react_intl29.defineMessages)({
15981
16064
 
15982
16065
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.tsx
15983
16066
  var import_react36 = require("react");
15984
- var import_react_intl30 = require("react-intl");
16067
+ var import_react_intl31 = require("react-intl");
15985
16068
  var import_jsx_runtime84 = require("react/jsx-runtime");
15986
16069
  function RepeatableSchemaStep({
15987
16070
  type,
@@ -15992,7 +16075,7 @@ function RepeatableSchemaStep({
15992
16075
  onModelChange,
15993
16076
  onAction
15994
16077
  }) {
15995
- const { formatMessage } = (0, import_react_intl30.useIntl)();
16078
+ const { formatMessage } = (0, import_react_intl31.useIntl)();
15996
16079
  const [filename, setFilename] = (0, import_react36.useState)(void 0);
15997
16080
  const step = {
15998
16081
  layout: [
@@ -16299,7 +16382,7 @@ function RepeatableSchema({
16299
16382
  setEditableItem({ item: null, model: null });
16300
16383
  setOpenModalType(null);
16301
16384
  };
16302
- const { formatMessage } = (0, import_react_intl31.useIntl)();
16385
+ const { formatMessage } = (0, import_react_intl32.useIntl)();
16303
16386
  const validations = getValidationFailures(model, schema, required);
16304
16387
  const base64ValidationMessages = useFormattedDefaultErrorMessages({
16305
16388
  minItems: schema.minItems,
@@ -16505,11 +16588,11 @@ var import_react41 = require("react");
16505
16588
 
16506
16589
  // src/legacy/jsonSchemaForm/help/Help.tsx
16507
16590
  var import_components54 = require("@transferwise/components");
16508
- var import_react_intl33 = require("react-intl");
16591
+ var import_react_intl34 = require("react-intl");
16509
16592
 
16510
16593
  // src/common/messages/help.messages.ts
16511
- var import_react_intl32 = require("react-intl");
16512
- 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)({
16513
16596
  helpAria: {
16514
16597
  id: "dynamicFlows.Help.ariaLabel",
16515
16598
  defaultMessage: "Click here for more info.",
@@ -16520,7 +16603,7 @@ var help_messages_default2 = (0, import_react_intl32.defineMessages)({
16520
16603
  // src/legacy/jsonSchemaForm/help/Help.tsx
16521
16604
  var import_jsx_runtime89 = require("react/jsx-runtime");
16522
16605
  function Help2(props) {
16523
- const intl = (0, import_react_intl33.useIntl)();
16606
+ const intl = (0, import_react_intl34.useIntl)();
16524
16607
  return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16525
16608
  import_components54.Info,
16526
16609
  {
@@ -16536,7 +16619,7 @@ var Help_default2 = Help2;
16536
16619
 
16537
16620
  // src/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.tsx
16538
16621
  var import_react40 = require("react");
16539
- var import_react_intl34 = require("react-intl");
16622
+ var import_react_intl35 = require("react-intl");
16540
16623
 
16541
16624
  // src/legacy/formControl/FormControl.tsx
16542
16625
  var import_components55 = require("@transferwise/components");
@@ -17242,7 +17325,7 @@ function SchemaFormControl(props) {
17242
17325
  labelledBy
17243
17326
  } = props;
17244
17327
  const log = useLogger();
17245
- const intl = (0, import_react_intl34.useIntl)();
17328
+ const intl = (0, import_react_intl35.useIntl)();
17246
17329
  const getSanitisedValue = (value2) => isNativeInput(schema.type) && (isNull3(value2) || isUndefined3(value2)) ? "" : value2;
17247
17330
  const onModelChange = (value2, type, metadata) => {
17248
17331
  onChange(getValidBasicModelOrNull(value2, schema), type, metadata);
@@ -17479,7 +17562,7 @@ var OneOfSchema_default = OneOfSchema;
17479
17562
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.tsx
17480
17563
  var import_classnames12 = __toESM(require_classnames());
17481
17564
  var import_react43 = require("react");
17482
- var import_react_intl35 = require("react-intl");
17565
+ var import_react_intl36 = require("react-intl");
17483
17566
 
17484
17567
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.tsx
17485
17568
  var import_components57 = require("@transferwise/components");
@@ -17546,7 +17629,7 @@ function PersistAsyncBlobSchema(props) {
17546
17629
  const [persistAsyncValidations, setPersistAsyncValidations] = (0, import_react43.useState)(null);
17547
17630
  const [validations, setValidations] = (0, import_react43.useState)([]);
17548
17631
  const [changed, setChanged] = (0, import_react43.useState)(false);
17549
- const intl = (0, import_react_intl35.useIntl)();
17632
+ const intl = (0, import_react_intl36.useIntl)();
17550
17633
  const httpClient = useHttpClient();
17551
17634
  const onEvent = useEventDispatcher();
17552
17635
  (0, import_react43.useEffect)(() => {
@@ -17785,11 +17868,11 @@ var PromotedOneOfSchema_default = PromotedOneOfSchema;
17785
17868
 
17786
17869
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.tsx
17787
17870
  var import_components60 = require("@transferwise/components");
17788
- var import_react_intl37 = require("react-intl");
17871
+ var import_react_intl38 = require("react-intl");
17789
17872
 
17790
17873
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.ts
17791
- var import_react_intl36 = require("react-intl");
17792
- 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)({
17793
17876
  yes: {
17794
17877
  id: "dynamicFlows.ReadOnlySchema.yes",
17795
17878
  defaultMessage: "Yes",
@@ -17806,7 +17889,7 @@ var ReadOnlySchema_messages_default = (0, import_react_intl36.defineMessages)({
17806
17889
  var import_jsx_runtime100 = require("react/jsx-runtime");
17807
17890
  function ReadOnlySchema({ schema, model }) {
17808
17891
  const { title = "" } = schema;
17809
- const { formatMessage } = (0, import_react_intl37.useIntl)();
17892
+ const { formatMessage } = (0, import_react_intl38.useIntl)();
17810
17893
  const value = getValueForSchema({ schema, model, formatMessage });
17811
17894
  return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_components60.DefinitionList, { layout: import_components60.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
17812
17895
  }
@@ -18338,11 +18421,11 @@ var DynamicLoadingIndicator_default = DynamicLoadingIndicator;
18338
18421
 
18339
18422
  // src/legacy/layout/paragraph/DynamicParagraph.tsx
18340
18423
  var import_components68 = require("@transferwise/components");
18341
- var import_react_intl39 = require("react-intl");
18424
+ var import_react_intl40 = require("react-intl");
18342
18425
 
18343
18426
  // src/common/messages/paragraph.messages.ts
18344
- var import_react_intl38 = require("react-intl");
18345
- 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)({
18346
18429
  copy: {
18347
18430
  id: "dynamicFlows.DynamicParagraph.copy",
18348
18431
  defaultMessage: "Copy",
@@ -18374,7 +18457,7 @@ function BasicDynamicParagraph({ component }) {
18374
18457
  return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: `np-text-body-large ${getTextAlignmentAndMargin2(component)}`, children: component.text });
18375
18458
  }
18376
18459
  function CopyableDynamicParagraph({ component }) {
18377
- const { formatMessage } = (0, import_react_intl39.useIntl)();
18460
+ const { formatMessage } = (0, import_react_intl40.useIntl)();
18378
18461
  const createSnackbar = useSnackBarIfAvailable2();
18379
18462
  const { text } = component;
18380
18463
  const copy = () => {
@@ -18510,7 +18593,7 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
18510
18593
 
18511
18594
  // src/legacy/layout/search/SearchResults.tsx
18512
18595
  var import_components71 = require("@transferwise/components");
18513
- var import_react_intl40 = require("react-intl");
18596
+ var import_react_intl41 = require("react-intl");
18514
18597
  var import_jsx_runtime114 = require("react/jsx-runtime");
18515
18598
  function SearchResults2({ results, emptyMessage, onSelect }) {
18516
18599
  if (results.length === 0) {
@@ -18530,7 +18613,7 @@ function SearchResults2({ results, emptyMessage, onSelect }) {
18530
18613
  )) });
18531
18614
  }
18532
18615
  function ErrorResult2({ onRetrySearch }) {
18533
- const intl = (0, import_react_intl40.useIntl)();
18616
+ const intl = (0, import_react_intl41.useIntl)();
18534
18617
  return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("p", { className: "m-t-2", children: [
18535
18618
  intl.formatMessage(generic_error_messages_default.genericError),
18536
18619
  "\xA0",
@@ -18620,11 +18703,11 @@ var addQueryParameter2 = (url, key, value) => {
18620
18703
  // src/legacy/layout/search/DynamicSearch.tsx
18621
18704
  var import_components72 = require("@transferwise/components");
18622
18705
  var import_classnames14 = __toESM(require_classnames());
18623
- var import_react_intl42 = require("react-intl");
18706
+ var import_react_intl43 = require("react-intl");
18624
18707
 
18625
18708
  // src/common/messages/search.messages.ts
18626
- var import_react_intl41 = require("react-intl");
18627
- 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)({
18628
18711
  loading: {
18629
18712
  id: "dynamicFlows.SearchLayout.loading",
18630
18713
  defaultMessage: "Loading...",
@@ -18637,7 +18720,7 @@ var import_jsx_runtime115 = require("react/jsx-runtime");
18637
18720
  var DEBOUNCE_TIME2 = 400;
18638
18721
  function DynamicSearch({ component, onAction }) {
18639
18722
  const [query, setQuery] = (0, import_react51.useState)("");
18640
- const intl = (0, import_react_intl42.useIntl)();
18723
+ const intl = (0, import_react_intl43.useIntl)();
18641
18724
  const { control, title, margin, url, method, param, emptyMessage } = component;
18642
18725
  const { status, results, search } = useSearch({ url, method, param });
18643
18726
  const onEvent = useEventDispatcher();
@@ -18914,7 +18997,7 @@ var controlTypesWithPersistOnChange = /* @__PURE__ */ new Set([
18914
18997
  ]);
18915
18998
  function PersistAsyncBasicSchema(props) {
18916
18999
  const { schema, required = false, submitted, errors, onChange, onPersistAsync } = props;
18917
- const intl = (0, import_react_intl43.useIntl)();
19000
+ const intl = (0, import_react_intl44.useIntl)();
18918
19001
  const httpClient = useHttpClient();
18919
19002
  const onEvent = useEventDispatcher();
18920
19003
  const [persistAsyncModel, setPersistAsyncModel] = (0, import_react54.useState)(null);
@@ -19009,7 +19092,7 @@ var PersistAsyncBasicSchema_default = PersistAsyncBasicSchema;
19009
19092
  var usePersistAsync = (persistAsync) => {
19010
19093
  const [abortController, setAbortController] = (0, import_react55.useState)(null);
19011
19094
  const httpClient = useHttpClient();
19012
- const intl = (0, import_react_intl44.useIntl)();
19095
+ const intl = (0, import_react_intl45.useIntl)();
19013
19096
  const { schema } = persistAsync;
19014
19097
  async function handlePersistAsync(model) {
19015
19098
  const isInvalidSchema = model instanceof Blob ? !isBlobSchema2(schema) : !isValidSchema(model, schema);
@@ -19242,12 +19325,12 @@ var import_react63 = require("react");
19242
19325
 
19243
19326
  // src/common/cameraCapture/CameraCapture.tsx
19244
19327
  var import_react62 = require("react");
19245
- var import_react_intl49 = require("react-intl");
19328
+ var import_react_intl50 = require("react-intl");
19246
19329
  var import_react_webcam = __toESM(require("react-webcam"));
19247
19330
 
19248
19331
  // src/common/cameraCapture/CameraCapture.messages.ts
19249
- var import_react_intl45 = require("react-intl");
19250
- 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)({
19251
19334
  reviewSubmit: {
19252
19335
  id: "dynamicFlows.CameraCapture.reviewSubmit",
19253
19336
  defaultMessage: "Yes, submit",
@@ -19307,14 +19390,14 @@ var CameraCapture_messages_default = (0, import_react_intl45.defineMessages)({
19307
19390
 
19308
19391
  // src/common/cameraCapture/components/bottomBar/BottomBar.tsx
19309
19392
  var import_components74 = require("@transferwise/components");
19310
- var import_react_intl46 = require("react-intl");
19393
+ var import_react_intl47 = require("react-intl");
19311
19394
  var import_jsx_runtime120 = require("react/jsx-runtime");
19312
19395
  var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "bottom-bar", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(CaptureButton, { onClick: onCapture }) });
19313
19396
  var ReviewBottomBar = ({
19314
19397
  onSubmit,
19315
19398
  onRetry
19316
19399
  }) => {
19317
- const intl = (0, import_react_intl46.useIntl)();
19400
+ const intl = (0, import_react_intl47.useIntl)();
19318
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: [
19319
19402
  /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
19320
19403
  import_components74.Button,
@@ -19353,11 +19436,11 @@ var CaptureButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime120.j
19353
19436
  );
19354
19437
 
19355
19438
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
19356
- var import_react_intl48 = require("react-intl");
19439
+ var import_react_intl49 = require("react-intl");
19357
19440
 
19358
19441
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.ts
19359
- var import_react_intl47 = require("react-intl");
19360
- 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)({
19361
19444
  text: {
19362
19445
  id: "dynamicFlows.CameraCapture.rotatePhone.text",
19363
19446
  defaultMessage: "Rotate your phone to portrait view to take a photo",
@@ -19368,7 +19451,7 @@ var OrientationLockOverlay_messages_default = (0, import_react_intl47.defineMess
19368
19451
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
19369
19452
  var import_jsx_runtime121 = require("react/jsx-runtime");
19370
19453
  function OrientationLockOverlay() {
19371
- const intl = (0, import_react_intl48.useIntl)();
19454
+ const intl = (0, import_react_intl49.useIntl)();
19372
19455
  return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "orientation-lock-overlay", children: [
19373
19456
  /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
19374
19457
  "img",
@@ -19658,7 +19741,7 @@ function CameraCapture({
19658
19741
  shouldLockOrientation,
19659
19742
  onEvent
19660
19743
  );
19661
- const intl = (0, import_react_intl49.useIntl)();
19744
+ const intl = (0, import_react_intl50.useIntl)();
19662
19745
  const handleCapture = (0, import_react62.useCallback)(async () => {
19663
19746
  var _a, _b, _c, _d, _e, _f;
19664
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) {
@@ -19881,11 +19964,11 @@ function getFirstAction(step) {
19881
19964
  }
19882
19965
 
19883
19966
  // src/legacy/step/externalConfirmationStep/ExternalConfirmationStep.tsx
19884
- var import_react_intl51 = require("react-intl");
19967
+ var import_react_intl52 = require("react-intl");
19885
19968
 
19886
19969
  // src/common/messages/external-confirmation.messages.ts
19887
- var import_react_intl50 = require("react-intl");
19888
- 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)({
19889
19972
  title: {
19890
19973
  id: "dynamicFlows.ExternalConfirmation.title",
19891
19974
  defaultMessage: "Please confirm",
@@ -19913,7 +19996,7 @@ var import_jsx_runtime126 = require("react/jsx-runtime");
19913
19996
  var noop6 = () => {
19914
19997
  };
19915
19998
  function ExternalConfirmationStep({ url, onClose }) {
19916
- const { formatMessage } = (0, import_react_intl51.useIntl)();
19999
+ const { formatMessage } = (0, import_react_intl52.useIntl)();
19917
20000
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
19918
20001
  DynamicLayout_default,
19919
20002
  {
@@ -20286,9 +20369,9 @@ var assertResponseIsValid2 = (response) => {
20286
20369
  var isResponse2 = (response) => typeof response === "object" && response !== null && "clone" in response && "bodyUsed" in response;
20287
20370
 
20288
20371
  // src/legacy/dynamicFlow/utils/useErrorResponse.tsx
20289
- var import_react_intl52 = require("react-intl");
20372
+ var import_react_intl53 = require("react-intl");
20290
20373
  var useErrorResponse = () => {
20291
- const { formatMessage } = (0, import_react_intl52.useIntl)();
20374
+ const { formatMessage } = (0, import_react_intl53.useIntl)();
20292
20375
  return async (response, fetchType, isInitialRequest) => {
20293
20376
  try {
20294
20377
  const errorResponse = await parseErrorResponse(response);
@@ -20332,7 +20415,7 @@ var DynamicFlowComponent = ({
20332
20415
  setSchemaModel
20333
20416
  } = useDynamicFlowState(initialStep);
20334
20417
  const [submitted, setSubmitted] = (0, import_react67.useState)(false);
20335
- const { locale } = (0, import_react_intl53.useIntl)();
20418
+ const { locale } = (0, import_react_intl54.useIntl)();
20336
20419
  const { isLoading, loader, setLoadingState } = useLoader(
20337
20420
  loaderConfig,
20338
20421
  initialStep ? "idle" : "initial"