@wise/dynamic-flow-client 3.22.0 → 3.22.1

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
@@ -524,7 +524,8 @@ var de_default = {
524
524
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.",
525
525
  "dynamicFlows.PersistAsyncSchema.genericError": "Da ist etwas schiefgegangen. Versuche es bitte nochmal.",
526
526
  "dynamicFlows.ReadOnlySchema.no": "Nein",
527
- "dynamicFlows.ReadOnlySchema.yes": "Ja"
527
+ "dynamicFlows.ReadOnlySchema.yes": "Ja",
528
+ "dynamicFlows.SearchLayout.loading": "L\xE4dt..."
528
529
  };
529
530
 
530
531
  // src/i18n/en.json
@@ -574,7 +575,8 @@ var en_default = {
574
575
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).",
575
576
  "dynamicFlows.PersistAsyncSchema.genericError": "Something went wrong, please try again.",
576
577
  "dynamicFlows.ReadOnlySchema.no": "No",
577
- "dynamicFlows.ReadOnlySchema.yes": "Yes"
578
+ "dynamicFlows.ReadOnlySchema.yes": "Yes",
579
+ "dynamicFlows.SearchLayout.loading": "Loading..."
578
580
  };
579
581
 
580
582
  // src/i18n/es.json
@@ -624,7 +626,8 @@ var es_default = {
624
626
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).",
625
627
  "dynamicFlows.PersistAsyncSchema.genericError": "Ha habido un error. Int\xE9ntalo de nuevo.",
626
628
  "dynamicFlows.ReadOnlySchema.no": "No",
627
- "dynamicFlows.ReadOnlySchema.yes": "S\xED"
629
+ "dynamicFlows.ReadOnlySchema.yes": "S\xED",
630
+ "dynamicFlows.SearchLayout.loading": "Cargando..."
628
631
  };
629
632
 
630
633
  // src/i18n/fr.json
@@ -674,7 +677,8 @@ var fr_default = {
674
677
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).",
675
678
  "dynamicFlows.PersistAsyncSchema.genericError": "Une erreur s'est produite, veuillez r\xE9essayer.",
676
679
  "dynamicFlows.ReadOnlySchema.no": "Non",
677
- "dynamicFlows.ReadOnlySchema.yes": "Oui"
680
+ "dynamicFlows.ReadOnlySchema.yes": "Oui",
681
+ "dynamicFlows.SearchLayout.loading": "Chargement..."
678
682
  };
679
683
 
680
684
  // src/i18n/hu.json
@@ -724,7 +728,8 @@ var hu_default = {
724
728
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.",
725
729
  "dynamicFlows.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra.",
726
730
  "dynamicFlows.ReadOnlySchema.no": "Nem",
727
- "dynamicFlows.ReadOnlySchema.yes": "Igen"
731
+ "dynamicFlows.ReadOnlySchema.yes": "Igen",
732
+ "dynamicFlows.SearchLayout.loading": "Bet\xF6lt\xE9s..."
728
733
  };
729
734
 
730
735
  // src/i18n/id.json
@@ -774,7 +779,8 @@ var id_default = {
774
779
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.",
775
780
  "dynamicFlows.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi.",
776
781
  "dynamicFlows.ReadOnlySchema.no": "Tidak",
777
- "dynamicFlows.ReadOnlySchema.yes": "Ya"
782
+ "dynamicFlows.ReadOnlySchema.yes": "Ya",
783
+ "dynamicFlows.SearchLayout.loading": "Memuat..."
778
784
  };
779
785
 
780
786
  // src/i18n/it.json
@@ -824,7 +830,8 @@ var it_default = {
824
830
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.",
825
831
  "dynamicFlows.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova.",
826
832
  "dynamicFlows.ReadOnlySchema.no": "No",
827
- "dynamicFlows.ReadOnlySchema.yes": "S\xEC"
833
+ "dynamicFlows.ReadOnlySchema.yes": "S\xEC",
834
+ "dynamicFlows.SearchLayout.loading": "Caricamento..."
828
835
  };
829
836
 
830
837
  // src/i18n/ja.json
@@ -874,7 +881,8 @@ var ja_default = {
874
881
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "{minItems}\u500B\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
875
882
  "dynamicFlows.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
876
883
  "dynamicFlows.ReadOnlySchema.no": "\u3044\u3044\u3048",
877
- "dynamicFlows.ReadOnlySchema.yes": "\u306F\u3044"
884
+ "dynamicFlows.ReadOnlySchema.yes": "\u306F\u3044",
885
+ "dynamicFlows.SearchLayout.loading": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"
878
886
  };
879
887
 
880
888
  // src/i18n/pl.json
@@ -924,7 +932,8 @@ var pl_default = {
924
932
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.",
925
933
  "dynamicFlows.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, prosimy spr\xF3bowa\u0107 ponownie.",
926
934
  "dynamicFlows.ReadOnlySchema.no": "Nie",
927
- "dynamicFlows.ReadOnlySchema.yes": "Tak"
935
+ "dynamicFlows.ReadOnlySchema.yes": "Tak",
936
+ "dynamicFlows.SearchLayout.loading": "Trwa \u0142adowanie..."
928
937
  };
929
938
 
930
939
  // src/i18n/pt.json
@@ -974,7 +983,8 @@ var pt_default = {
974
983
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).",
975
984
  "dynamicFlows.PersistAsyncSchema.genericError": "Ocorreu um erro. Por favor, tente novamente.",
976
985
  "dynamicFlows.ReadOnlySchema.no": "N\xE3o",
977
- "dynamicFlows.ReadOnlySchema.yes": "Sim"
986
+ "dynamicFlows.ReadOnlySchema.yes": "Sim",
987
+ "dynamicFlows.SearchLayout.loading": "Carregando..."
978
988
  };
979
989
 
980
990
  // src/i18n/ro.json
@@ -1024,7 +1034,8 @@ var ro_default = {
1024
1034
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).",
1025
1035
  "dynamicFlows.PersistAsyncSchema.genericError": "Ceva nu a mers bine, te rug\u0103m s\u0103 \xEEncerci din nou.",
1026
1036
  "dynamicFlows.ReadOnlySchema.no": "Nu",
1027
- "dynamicFlows.ReadOnlySchema.yes": "Da"
1037
+ "dynamicFlows.ReadOnlySchema.yes": "Da",
1038
+ "dynamicFlows.SearchLayout.loading": "Se \xEEncarc\u0103..."
1028
1039
  };
1029
1040
 
1030
1041
  // src/i18n/ru.json
@@ -1074,7 +1085,8 @@ var ru_default = {
1074
1085
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems} \u0444\u0430\u0439\u043B(-\u0430/\u043E\u0432).",
1075
1086
  "dynamicFlows.PersistAsyncSchema.genericError": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.",
1076
1087
  "dynamicFlows.ReadOnlySchema.no": "\u041D\u0435\u0442",
1077
- "dynamicFlows.ReadOnlySchema.yes": "\u0414\u0430"
1088
+ "dynamicFlows.ReadOnlySchema.yes": "\u0414\u0430",
1089
+ "dynamicFlows.SearchLayout.loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430..."
1078
1090
  };
1079
1091
 
1080
1092
  // src/i18n/th.json
@@ -1124,7 +1136,8 @@ var th_default = {
1124
1136
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems} \u0E44\u0E1F\u0E25\u0E4C",
1125
1137
  "dynamicFlows.PersistAsyncSchema.genericError": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",
1126
1138
  "dynamicFlows.ReadOnlySchema.no": "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48",
1127
- "dynamicFlows.ReadOnlySchema.yes": "\u0E43\u0E0A\u0E48"
1139
+ "dynamicFlows.ReadOnlySchema.yes": "\u0E43\u0E0A\u0E48",
1140
+ "dynamicFlows.SearchLayout.loading": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14..."
1128
1141
  };
1129
1142
 
1130
1143
  // src/i18n/tr.json
@@ -1174,7 +1187,8 @@ var tr_default = {
1174
1187
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.",
1175
1188
  "dynamicFlows.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin.",
1176
1189
  "dynamicFlows.ReadOnlySchema.no": "Hay\u0131r",
1177
- "dynamicFlows.ReadOnlySchema.yes": "Evet"
1190
+ "dynamicFlows.ReadOnlySchema.yes": "Evet",
1191
+ "dynamicFlows.SearchLayout.loading": "Y\xFCkleniyor..."
1178
1192
  };
1179
1193
 
1180
1194
  // src/i18n/zh_CN.json
@@ -1224,7 +1238,8 @@ var zh_CN_default = {
1224
1238
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002",
1225
1239
  "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5\u3002",
1226
1240
  "dynamicFlows.ReadOnlySchema.no": "\u5426",
1227
- "dynamicFlows.ReadOnlySchema.yes": "\u662F"
1241
+ "dynamicFlows.ReadOnlySchema.yes": "\u662F",
1242
+ "dynamicFlows.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026"
1228
1243
  };
1229
1244
 
1230
1245
  // src/i18n/zh_HK.json
@@ -1274,7 +1289,8 @@ var zh_HK_default = {
1274
1289
  "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002",
1275
1290
  "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u73FE\u4E86\u554F\u984C\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002",
1276
1291
  "dynamicFlows.ReadOnlySchema.no": "\u5426",
1277
- "dynamicFlows.ReadOnlySchema.yes": "\u662F"
1292
+ "dynamicFlows.ReadOnlySchema.yes": "\u662F",
1293
+ "dynamicFlows.SearchLayout.loading": "\u8F09\u5165\u4E2D\u2026"
1278
1294
  };
1279
1295
 
1280
1296
  // src/i18n/index.ts
@@ -1472,6 +1488,17 @@ var allOfComponentToProps = ({ control, description, help, title }, children) =>
1472
1488
  title
1473
1489
  });
1474
1490
 
1491
+ // src/revamp/renderers/mappers/utils/mapErrorsToValidationState.ts
1492
+ var mapErrorsToValidationState = (errors) => {
1493
+ if (errors) {
1494
+ if (errors.length > 0) {
1495
+ return { status: "invalid", message: errors[0] };
1496
+ }
1497
+ return { status: "valid" };
1498
+ }
1499
+ return void 0;
1500
+ };
1501
+
1475
1502
  // src/revamp/renderers/mappers/utils/inputComponentToProps.ts
1476
1503
  var inputComponentToProps = (component, type) => {
1477
1504
  var _a;
@@ -1518,13 +1545,7 @@ var getValidationState = (errors, validationAsyncState) => {
1518
1545
  return { status: "valid", message: validationAsyncState == null ? void 0 : validationAsyncState.messages.success };
1519
1546
  }
1520
1547
  }
1521
- if (errors) {
1522
- if (errors.length > 0) {
1523
- return { status: "invalid", message: errors[0] };
1524
- }
1525
- return { status: "valid" };
1526
- }
1527
- return void 0;
1548
+ return mapErrorsToValidationState(errors);
1528
1549
  };
1529
1550
 
1530
1551
  // src/revamp/renderers/mappers/booleanInputComponentToProps.ts
@@ -1683,15 +1704,14 @@ var modalComponentToProps = ({ content, control, margin, trigger }, components)
1683
1704
 
1684
1705
  // src/revamp/renderers/mappers/multiUploadInputComponentToProps.ts
1685
1706
  var multiUploadInputComponentToProps = (component) => {
1686
- const { accepts, fileMap, maxSize, minItems, maxItems, uploadLabel } = component;
1687
- const findIdByValue = (file) => Object.keys(fileMap).find((id) => fileMap[id] === file);
1688
- const fileList = Object.values(fileMap).map((file) => {
1689
- var _a;
1690
- return {
1691
- id: (_a = findIdByValue(file)) != null ? _a : "",
1692
- file
1693
- };
1694
- });
1707
+ const { accepts, errorsMap, fileMap, maxSize, minItems, maxItems, uploadLabel } = component;
1708
+ const fileList = Object.entries(fileMap).map(
1709
+ ([id, file]) => ({
1710
+ id,
1711
+ file,
1712
+ validationState: mapErrorsToValidationState(errorsMap[id])
1713
+ })
1714
+ );
1695
1715
  return __spreadProps(__spreadValues({}, inputComponentToProps(component, "input-upload-multi")), {
1696
1716
  accepts,
1697
1717
  maxSize,
@@ -1778,22 +1798,13 @@ var repeatableComponentToProps = (component, children, editableItemChildren) =>
1778
1798
  maxItems,
1779
1799
  minItems,
1780
1800
  title,
1781
- validationState: getValidationState2(errors),
1801
+ validationState: mapErrorsToValidationState(errors),
1782
1802
  onAdd: onAdd.bind(component),
1783
1803
  onEdit: onEdit.bind(component),
1784
1804
  onSave: onSave.bind(component),
1785
1805
  onRemove: onRemove.bind(component)
1786
1806
  };
1787
1807
  };
1788
- var getValidationState2 = (errors) => {
1789
- if (errors) {
1790
- if (errors.length > 0) {
1791
- return { status: "invalid", message: errors[0] };
1792
- }
1793
- return { status: "valid" };
1794
- }
1795
- return void 0;
1796
- };
1797
1808
 
1798
1809
  // src/revamp/renderers/mappers/reviewComponentToProps.ts
1799
1810
  var reviewComponentToProps = ({
@@ -9189,9 +9200,28 @@ var getRandomInt = () => Math.floor(Math.random() * 1e8);
9189
9200
 
9190
9201
  // src/revamp/domain/components/MultiUploadInputComponent.ts
9191
9202
  var createMultiUploadInputComponent = (uploadInputProps, updateComponent) => {
9192
- const _a = uploadInputProps, { uid, id, checks, format, performPersistAsync, onValueChange, summariser } = _a, rest = __objRest(_a, ["uid", "id", "checks", "format", "performPersistAsync", "onValueChange", "summariser"]);
9203
+ const _a = uploadInputProps, {
9204
+ uid,
9205
+ id,
9206
+ checks,
9207
+ fileChecks,
9208
+ format,
9209
+ performPersistAsync,
9210
+ onValueChange,
9211
+ summariser
9212
+ } = _a, rest = __objRest(_a, [
9213
+ "uid",
9214
+ "id",
9215
+ "checks",
9216
+ "fileChecks",
9217
+ "format",
9218
+ "performPersistAsync",
9219
+ "onValueChange",
9220
+ "summariser"
9221
+ ]);
9193
9222
  const update = getInputUpdateFunction(uid, updateComponent);
9194
9223
  const getValidationErrors = getLocalValueValidator(checks);
9224
+ const getFileValidationErrors = getLocalValueValidator(fileChecks);
9195
9225
  const getAndSetValidationErrors = (currentValue) => {
9196
9226
  const messages = getValidationErrors(currentValue);
9197
9227
  update((draft) => {
@@ -9204,6 +9234,7 @@ var createMultiUploadInputComponent = (uploadInputProps, updateComponent) => {
9204
9234
  uid,
9205
9235
  id,
9206
9236
  format: "base64",
9237
+ errorsMap: {},
9207
9238
  fileMap: {},
9208
9239
  onBlur() {
9209
9240
  getAndSetValidationErrors(this.getLocalValue());
@@ -9218,13 +9249,17 @@ var createMultiUploadInputComponent = (uploadInputProps, updateComponent) => {
9218
9249
  update((draft) => {
9219
9250
  draft.value.splice(fileIndex, 1);
9220
9251
  const _a2 = draft.fileMap, { [fileId]: _ } = _a2, files = __objRest(_a2, [__restKey(fileId)]);
9252
+ const _b = draft.errorsMap, { [fileId]: removedErrors } = _b, fileErrors = __objRest(_b, [__restKey(fileId)]);
9221
9253
  draft.fileMap = files;
9254
+ draft.errorsMap = fileErrors;
9222
9255
  });
9223
9256
  }
9224
9257
  },
9225
9258
  async onUpload(file, fileId) {
9259
+ const fileErrors = getFileValidationErrors(file);
9226
9260
  update((draft) => {
9227
9261
  draft.fileMap[fileId] = file;
9262
+ draft.errorsMap[fileId] = fileErrors;
9228
9263
  draft.value = [...this.value, file];
9229
9264
  draft.errors = [];
9230
9265
  });
@@ -9245,7 +9280,7 @@ var createMultiUploadInputComponent = (uploadInputProps, updateComponent) => {
9245
9280
  },
9246
9281
  validate() {
9247
9282
  const messages = getAndSetValidationErrors(this.getLocalValue());
9248
- return messages.length === 0;
9283
+ return messages.length === 0 && Object.values(this.errorsMap).every((errors) => errors.length === 0);
9249
9284
  }
9250
9285
  }, rest);
9251
9286
  if (!performPersistAsync) {
@@ -9304,6 +9339,7 @@ var arraySchemaToMultiUploadComponent = (schemaMapperProps, mapperProps) => {
9304
9339
  accepts,
9305
9340
  autoComplete: "off",
9306
9341
  checks: schema.hidden ? [] : checks,
9342
+ fileChecks: [],
9307
9343
  format,
9308
9344
  maxSize,
9309
9345
  minItems,
@@ -12433,6 +12469,19 @@ function ErrorResult({ state }) {
12433
12469
 
12434
12470
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
12435
12471
  var import_react14 = require("react");
12472
+
12473
+ // ../renderers/src/messages/search.messages.ts
12474
+ var import_react_intl17 = require("react-intl");
12475
+ var search_messages_default = (0, import_react_intl17.defineMessages)({
12476
+ loading: {
12477
+ id: "df.wise.SearchLayout.loading",
12478
+ defaultMessage: "Loading...",
12479
+ description: "A message shown to the user while their search is being processed, before results appear."
12480
+ }
12481
+ });
12482
+
12483
+ // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
12484
+ var import_react_intl18 = require("react-intl");
12436
12485
  var import_jsx_runtime42 = require("react/jsx-runtime");
12437
12486
  function BlockSearchRendererComponent({
12438
12487
  id,
@@ -12445,6 +12494,7 @@ function BlockSearchRendererComponent({
12445
12494
  }) {
12446
12495
  const [hasSearched, setHasSearched] = (0, import_react14.useState)(false);
12447
12496
  const trackEvent = useTrackEvent();
12497
+ const { formatMessage } = (0, import_react_intl18.useIntl)();
12448
12498
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getMargin(margin), children: [
12449
12499
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12450
12500
  import_components27.Input,
@@ -12463,7 +12513,7 @@ function BlockSearchRendererComponent({
12463
12513
  }
12464
12514
  }
12465
12515
  ) }),
12466
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: "Loading..." }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SearchResultContent, { state, onChange })
12516
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SearchResultContent, { state, onChange })
12467
12517
  ] });
12468
12518
  }
12469
12519
  function SearchResultContent({
@@ -12516,7 +12566,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
12516
12566
  var import_components28 = require("@transferwise/components");
12517
12567
  var import_icons2 = require("@transferwise/icons");
12518
12568
  var import_react15 = require("react");
12519
- var import_react_intl17 = require("react-intl");
12569
+ var import_react_intl19 = require("react-intl");
12520
12570
  var import_jsx_runtime43 = require("react/jsx-runtime");
12521
12571
  function InlineSearchRenderer({
12522
12572
  id,
@@ -12528,7 +12578,7 @@ function InlineSearchRenderer({
12528
12578
  }) {
12529
12579
  const [hasSearched, setHasSearched] = (0, import_react15.useState)(false);
12530
12580
  const trackEvent = useTrackEvent();
12531
- const intl = (0, import_react_intl17.useIntl)();
12581
+ const intl = (0, import_react_intl19.useIntl)();
12532
12582
  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)(
12533
12583
  import_components28.Typeahead,
12534
12584
  {
@@ -12575,6 +12625,7 @@ function mapResultToTypeaheadOption(result) {
12575
12625
  };
12576
12626
  }
12577
12627
  function TypeaheadFooter({ state, isLoading }) {
12628
+ const { formatMessage } = (0, import_react_intl19.useIntl)();
12578
12629
  if (state.type === "noResults") {
12579
12630
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components28.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
12580
12631
  }
@@ -12582,7 +12633,7 @@ function TypeaheadFooter({ state, isLoading }) {
12582
12633
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ErrorResult, { state }) });
12583
12634
  }
12584
12635
  if (state.type === "pending" || isLoading) {
12585
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "m-t-2 m-x-2", children: "Loading..." });
12636
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
12586
12637
  }
12587
12638
  return null;
12588
12639
  }
@@ -13180,11 +13231,11 @@ var getFieldValue = (value, help, orientation) => {
13180
13231
  var import_react19 = require("react");
13181
13232
 
13182
13233
  // ../renderers/src/step/ExternalConfirmationDialog.tsx
13183
- var import_react_intl19 = require("react-intl");
13234
+ var import_react_intl21 = require("react-intl");
13184
13235
 
13185
13236
  // ../renderers/src/messages/external-confirmation.messages.ts
13186
- var import_react_intl18 = require("react-intl");
13187
- var external_confirmation_messages_default = (0, import_react_intl18.defineMessages)({
13237
+ var import_react_intl20 = require("react-intl");
13238
+ var external_confirmation_messages_default = (0, import_react_intl20.defineMessages)({
13188
13239
  title: {
13189
13240
  id: "df.wise.ExternalConfirmation.title",
13190
13241
  defaultMessage: "Please confirm",
@@ -13214,7 +13265,7 @@ function ExternalConfirmationDialog({
13214
13265
  external,
13215
13266
  onClose
13216
13267
  }) {
13217
- const { formatMessage } = (0, import_react_intl19.useIntl)();
13268
+ const { formatMessage } = (0, import_react_intl21.useIntl)();
13218
13269
  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: [
13219
13270
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h2", { className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.title) }),
13220
13271
  /* @__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) }) }),
@@ -13777,7 +13828,7 @@ function isReference(block) {
13777
13828
 
13778
13829
  // src/legacy/dynamicFlow/DynamicFlow.tsx
13779
13830
  var import_react67 = require("react");
13780
- var import_react_intl50 = require("react-intl");
13831
+ var import_react_intl53 = require("react-intl");
13781
13832
 
13782
13833
  // src/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.tsx
13783
13834
  var import_react25 = require("react");
@@ -14699,11 +14750,11 @@ function useExternalStepPolling(polling, onAction) {
14699
14750
 
14700
14751
  // src/legacy/common/hooks/usePersistAsync/usePersistAsync.ts
14701
14752
  var import_react55 = require("react");
14702
- var import_react_intl41 = require("react-intl");
14753
+ var import_react_intl44 = require("react-intl");
14703
14754
 
14704
14755
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.tsx
14705
14756
  var import_react54 = require("react");
14706
- var import_react_intl40 = require("react-intl");
14757
+ var import_react_intl43 = require("react-intl");
14707
14758
 
14708
14759
  // src/legacy/common/constants/DateMode.ts
14709
14760
  var DateMode = {
@@ -15166,11 +15217,11 @@ var DynamicDivider_default = DynamicDivider;
15166
15217
  // src/legacy/layout/external/DynamicExternal.tsx
15167
15218
  var import_components45 = require("@transferwise/components");
15168
15219
  var import_react32 = require("react");
15169
- var import_react_intl21 = require("react-intl");
15220
+ var import_react_intl23 = require("react-intl");
15170
15221
 
15171
15222
  // src/legacy/layout/external/DynamicExternal.messages.ts
15172
- var import_react_intl20 = require("react-intl");
15173
- var DynamicExternal_messages_default = (0, import_react_intl20.defineMessages)({
15223
+ var import_react_intl22 = require("react-intl");
15224
+ var DynamicExternal_messages_default = (0, import_react_intl22.defineMessages)({
15174
15225
  retryTitle: {
15175
15226
  id: "dynamicFlows.DynamicExternal.retryTitle",
15176
15227
  defaultMessage: "Reopen window",
@@ -15182,7 +15233,7 @@ var DynamicExternal_messages_default = (0, import_react_intl20.defineMessages)({
15182
15233
  var import_jsx_runtime77 = require("react/jsx-runtime");
15183
15234
  var DynamicExternal = ({ component, onAction }) => {
15184
15235
  const { requestUrl, responseHandlers, polling, retryTitle } = component;
15185
- const intl = (0, import_react_intl21.useIntl)();
15236
+ const intl = (0, import_react_intl23.useIntl)();
15186
15237
  const openExternalUrl = (0, import_react32.useCallback)(
15187
15238
  () => window.open(requestUrl, "df-external-window"),
15188
15239
  [requestUrl]
@@ -15259,7 +15310,7 @@ var import_react34 = require("react");
15259
15310
  // src/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.tsx
15260
15311
  var import_components47 = require("@transferwise/components");
15261
15312
  var import_formatting2 = require("@transferwise/formatting");
15262
- var import_react_intl22 = require("react-intl");
15313
+ var import_react_intl24 = require("react-intl");
15263
15314
  var import_jsx_runtime79 = require("react/jsx-runtime");
15264
15315
  function ControlFeedback(props) {
15265
15316
  const { errors = "", validations = [], validationMessages = {} } = props;
@@ -15279,7 +15330,7 @@ function ControlFeedback(props) {
15279
15330
  ] });
15280
15331
  }
15281
15332
  function useDefaultValidationMessages(schema) {
15282
- const { formatMessage, locale } = (0, import_react_intl22.useIntl)();
15333
+ const { formatMessage, locale } = (0, import_react_intl24.useIntl)();
15283
15334
  const formattedMessages = {
15284
15335
  type: formatMessage(validation_messages_default.type),
15285
15336
  minimum: formatMessage(validation_messages_default.minimum, {
@@ -15366,11 +15417,11 @@ function constructUploadError(response) {
15366
15417
  }
15367
15418
 
15368
15419
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.tsx
15369
- var import_react_intl24 = require("react-intl");
15420
+ var import_react_intl26 = require("react-intl");
15370
15421
 
15371
15422
  // src/legacy/common/messages.ts
15372
- var import_react_intl23 = require("react-intl");
15373
- var messages_default = (0, import_react_intl23.defineMessages)({
15423
+ var import_react_intl25 = require("react-intl");
15424
+ var messages_default = (0, import_react_intl25.defineMessages)({
15374
15425
  required: {
15375
15426
  id: "dynamicFlows.DefaultErrorMessages.required",
15376
15427
  defaultMessage: "Please fill out this field.",
@@ -15383,7 +15434,7 @@ function useFormattedDefaultErrorMessages({
15383
15434
  maxItems,
15384
15435
  minItems
15385
15436
  }) {
15386
- const { formatMessage } = (0, import_react_intl24.useIntl)();
15437
+ const { formatMessage } = (0, import_react_intl26.useIntl)();
15387
15438
  const { maxFileSizeError, maxItemsError, minItemsError } = multi_file_upload_messages_default;
15388
15439
  return {
15389
15440
  maxFileSizeErrorMessage: formatMessage(maxFileSizeError),
@@ -15494,7 +15545,7 @@ function getValidationMessages(schema, required, defaultErrorMessages) {
15494
15545
  var import_components50 = require("@transferwise/components");
15495
15546
  var import_classnames8 = __toESM(require_classnames());
15496
15547
  var import_react35 = require("react");
15497
- var import_react_intl26 = require("react-intl");
15548
+ var import_react_intl28 = require("react-intl");
15498
15549
 
15499
15550
  // src/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.tsx
15500
15551
  var import_components49 = require("@transferwise/components");
@@ -15588,8 +15639,8 @@ var getDisabled = (disabled) => {
15588
15639
  };
15589
15640
 
15590
15641
  // src/common/messages/multi-select.messages.ts
15591
- var import_react_intl25 = require("react-intl");
15592
- var multi_select_messages_default2 = (0, import_react_intl25.defineMessages)({
15642
+ var import_react_intl27 = require("react-intl");
15643
+ var multi_select_messages_default2 = (0, import_react_intl27.defineMessages)({
15593
15644
  summary: {
15594
15645
  id: "dynamicFlows.MultiSelect.summary",
15595
15646
  defaultMessage: "{first} and {count} more",
@@ -15607,7 +15658,7 @@ function MultiSelectSchema({
15607
15658
  errors,
15608
15659
  onChange
15609
15660
  }) {
15610
- const { formatMessage, locale } = (0, import_react_intl26.useIntl)();
15661
+ const { formatMessage, locale } = (0, import_react_intl28.useIntl)();
15611
15662
  const { disabled, items, validationMessages, placeholder } = schema;
15612
15663
  const options = items.oneOf.map((item) => mapConstSchemaToOption(item, "select"));
15613
15664
  const id = (0, import_react35.useMemo)(() => schema.$id || generateRandomId(), [schema.$id]);
@@ -15711,7 +15762,7 @@ var getInitialModelIndices2 = (model, options) => {
15711
15762
  var import_components52 = require("@transferwise/components");
15712
15763
  var import_icons4 = require("@transferwise/icons");
15713
15764
  var import_react37 = require("react");
15714
- var import_react_intl29 = require("react-intl");
15765
+ var import_react_intl31 = require("react-intl");
15715
15766
 
15716
15767
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.tsx
15717
15768
  var import_components51 = require("@transferwise/components");
@@ -15730,8 +15781,8 @@ function ItemSummaryOption2({ item, onClick }) {
15730
15781
  }
15731
15782
 
15732
15783
  // src/common/messages/repeatable.messages.ts
15733
- var import_react_intl27 = require("react-intl");
15734
- var repeatable_messages_default2 = (0, import_react_intl27.defineMessages)({
15784
+ var import_react_intl29 = require("react-intl");
15785
+ var repeatable_messages_default2 = (0, import_react_intl29.defineMessages)({
15735
15786
  addItemTitle: {
15736
15787
  id: "dynamicFlows.ArraySchema.addItemTitle",
15737
15788
  defaultMessage: "Add Item",
@@ -15756,7 +15807,7 @@ var repeatable_messages_default2 = (0, import_react_intl27.defineMessages)({
15756
15807
 
15757
15808
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.tsx
15758
15809
  var import_react36 = require("react");
15759
- var import_react_intl28 = require("react-intl");
15810
+ var import_react_intl30 = require("react-intl");
15760
15811
  var import_jsx_runtime84 = require("react/jsx-runtime");
15761
15812
  function RepeatableSchemaStep({
15762
15813
  type,
@@ -15767,7 +15818,7 @@ function RepeatableSchemaStep({
15767
15818
  onModelChange,
15768
15819
  onAction
15769
15820
  }) {
15770
- const { formatMessage } = (0, import_react_intl28.useIntl)();
15821
+ const { formatMessage } = (0, import_react_intl30.useIntl)();
15771
15822
  const [filename, setFilename] = (0, import_react36.useState)(void 0);
15772
15823
  const step = {
15773
15824
  layout: [
@@ -16074,7 +16125,7 @@ function RepeatableSchema({
16074
16125
  setEditableItem({ item: null, model: null });
16075
16126
  setOpenModalType(null);
16076
16127
  };
16077
- const { formatMessage } = (0, import_react_intl29.useIntl)();
16128
+ const { formatMessage } = (0, import_react_intl31.useIntl)();
16078
16129
  const validations = getValidationFailures(model, schema, required);
16079
16130
  const base64ValidationMessages = useFormattedDefaultErrorMessages({
16080
16131
  minItems: schema.minItems,
@@ -16280,11 +16331,11 @@ var import_react41 = require("react");
16280
16331
 
16281
16332
  // src/legacy/jsonSchemaForm/help/Help.tsx
16282
16333
  var import_components54 = require("@transferwise/components");
16283
- var import_react_intl31 = require("react-intl");
16334
+ var import_react_intl33 = require("react-intl");
16284
16335
 
16285
16336
  // src/common/messages/help.messages.ts
16286
- var import_react_intl30 = require("react-intl");
16287
- var help_messages_default2 = (0, import_react_intl30.defineMessages)({
16337
+ var import_react_intl32 = require("react-intl");
16338
+ var help_messages_default2 = (0, import_react_intl32.defineMessages)({
16288
16339
  helpAria: {
16289
16340
  id: "dynamicFlows.Help.ariaLabel",
16290
16341
  defaultMessage: "Click here for more info.",
@@ -16295,7 +16346,7 @@ var help_messages_default2 = (0, import_react_intl30.defineMessages)({
16295
16346
  // src/legacy/jsonSchemaForm/help/Help.tsx
16296
16347
  var import_jsx_runtime89 = require("react/jsx-runtime");
16297
16348
  function Help2(props) {
16298
- const intl = (0, import_react_intl31.useIntl)();
16349
+ const intl = (0, import_react_intl33.useIntl)();
16299
16350
  return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16300
16351
  import_components54.Info,
16301
16352
  {
@@ -16311,7 +16362,7 @@ var Help_default2 = Help2;
16311
16362
 
16312
16363
  // src/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.tsx
16313
16364
  var import_react40 = require("react");
16314
- var import_react_intl32 = require("react-intl");
16365
+ var import_react_intl34 = require("react-intl");
16315
16366
 
16316
16367
  // src/legacy/formControl/FormControl.tsx
16317
16368
  var import_components55 = require("@transferwise/components");
@@ -17017,7 +17068,7 @@ function SchemaFormControl(props) {
17017
17068
  labelledBy
17018
17069
  } = props;
17019
17070
  const log = useLogger();
17020
- const intl = (0, import_react_intl32.useIntl)();
17071
+ const intl = (0, import_react_intl34.useIntl)();
17021
17072
  const getSanitisedValue = (value2) => isNativeInput(schema.type) && (isNull3(value2) || isUndefined3(value2)) ? "" : value2;
17022
17073
  const onModelChange = (value2, type, metadata) => {
17023
17074
  onChange(getValidBasicModelOrNull(value2, schema), type, metadata);
@@ -17254,7 +17305,7 @@ var OneOfSchema_default = OneOfSchema;
17254
17305
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.tsx
17255
17306
  var import_classnames12 = __toESM(require_classnames());
17256
17307
  var import_react43 = require("react");
17257
- var import_react_intl33 = require("react-intl");
17308
+ var import_react_intl35 = require("react-intl");
17258
17309
 
17259
17310
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.tsx
17260
17311
  var import_components57 = require("@transferwise/components");
@@ -17321,7 +17372,7 @@ function PersistAsyncBlobSchema(props) {
17321
17372
  const [persistAsyncValidations, setPersistAsyncValidations] = (0, import_react43.useState)(null);
17322
17373
  const [validations, setValidations] = (0, import_react43.useState)([]);
17323
17374
  const [changed, setChanged] = (0, import_react43.useState)(false);
17324
- const intl = (0, import_react_intl33.useIntl)();
17375
+ const intl = (0, import_react_intl35.useIntl)();
17325
17376
  const httpClient = useHttpClient();
17326
17377
  const onEvent = useEventDispatcher();
17327
17378
  (0, import_react43.useEffect)(() => {
@@ -17560,11 +17611,11 @@ var PromotedOneOfSchema_default = PromotedOneOfSchema;
17560
17611
 
17561
17612
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.tsx
17562
17613
  var import_components60 = require("@transferwise/components");
17563
- var import_react_intl35 = require("react-intl");
17614
+ var import_react_intl37 = require("react-intl");
17564
17615
 
17565
17616
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.ts
17566
- var import_react_intl34 = require("react-intl");
17567
- var ReadOnlySchema_messages_default = (0, import_react_intl34.defineMessages)({
17617
+ var import_react_intl36 = require("react-intl");
17618
+ var ReadOnlySchema_messages_default = (0, import_react_intl36.defineMessages)({
17568
17619
  yes: {
17569
17620
  id: "dynamicFlows.ReadOnlySchema.yes",
17570
17621
  defaultMessage: "Yes",
@@ -17581,7 +17632,7 @@ var ReadOnlySchema_messages_default = (0, import_react_intl34.defineMessages)({
17581
17632
  var import_jsx_runtime100 = require("react/jsx-runtime");
17582
17633
  function ReadOnlySchema({ schema, model }) {
17583
17634
  const { title = "" } = schema;
17584
- const { formatMessage } = (0, import_react_intl35.useIntl)();
17635
+ const { formatMessage } = (0, import_react_intl37.useIntl)();
17585
17636
  const value = getValueForSchema({ schema, model, formatMessage });
17586
17637
  return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_components60.DefinitionList, { layout: import_components60.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
17587
17638
  }
@@ -18109,11 +18160,11 @@ var DynamicLoadingIndicator_default = DynamicLoadingIndicator;
18109
18160
 
18110
18161
  // src/legacy/layout/paragraph/DynamicParagraph.tsx
18111
18162
  var import_components68 = require("@transferwise/components");
18112
- var import_react_intl37 = require("react-intl");
18163
+ var import_react_intl39 = require("react-intl");
18113
18164
 
18114
18165
  // src/common/messages/paragraph.messages.ts
18115
- var import_react_intl36 = require("react-intl");
18116
- var paragraph_messages_default2 = (0, import_react_intl36.defineMessages)({
18166
+ var import_react_intl38 = require("react-intl");
18167
+ var paragraph_messages_default2 = (0, import_react_intl38.defineMessages)({
18117
18168
  copy: {
18118
18169
  id: "dynamicFlows.DynamicParagraph.copy",
18119
18170
  defaultMessage: "Copy",
@@ -18145,7 +18196,7 @@ function BasicDynamicParagraph({ component }) {
18145
18196
  return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: `np-text-body-large ${getTextAlignmentAndMargin2(component)}`, children: component.text });
18146
18197
  }
18147
18198
  function CopyableDynamicParagraph({ component }) {
18148
- const { formatMessage } = (0, import_react_intl37.useIntl)();
18199
+ const { formatMessage } = (0, import_react_intl39.useIntl)();
18149
18200
  const createSnackbar = useSnackBarIfAvailable2();
18150
18201
  const { text } = component;
18151
18202
  const copy = () => {
@@ -18260,7 +18311,7 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
18260
18311
 
18261
18312
  // src/legacy/layout/search/SearchResults.tsx
18262
18313
  var import_components71 = require("@transferwise/components");
18263
- var import_react_intl38 = require("react-intl");
18314
+ var import_react_intl40 = require("react-intl");
18264
18315
  var import_jsx_runtime114 = require("react/jsx-runtime");
18265
18316
  function SearchResults2({ results, emptyMessage, onSelect }) {
18266
18317
  if (results.length === 0) {
@@ -18280,7 +18331,7 @@ function SearchResults2({ results, emptyMessage, onSelect }) {
18280
18331
  )) });
18281
18332
  }
18282
18333
  function ErrorResult2({ onRetrySearch }) {
18283
- const intl = (0, import_react_intl38.useIntl)();
18334
+ const intl = (0, import_react_intl40.useIntl)();
18284
18335
  return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("p", { className: "m-t-2", children: [
18285
18336
  intl.formatMessage(generic_error_messages_default.genericError),
18286
18337
  "\xA0",
@@ -18370,12 +18421,24 @@ var addQueryParameter2 = (url, key, value) => {
18370
18421
  // src/legacy/layout/search/DynamicSearch.tsx
18371
18422
  var import_components72 = require("@transferwise/components");
18372
18423
  var import_classnames14 = __toESM(require_classnames());
18373
- var import_react_intl39 = require("react-intl");
18424
+ var import_react_intl42 = require("react-intl");
18425
+
18426
+ // src/common/messages/search.messages.ts
18427
+ var import_react_intl41 = require("react-intl");
18428
+ var search_messages_default2 = (0, import_react_intl41.defineMessages)({
18429
+ loading: {
18430
+ id: "dynamicFlows.SearchLayout.loading",
18431
+ defaultMessage: "Loading...",
18432
+ description: "A message shown to the user while their search is being processed, before results appear."
18433
+ }
18434
+ });
18435
+
18436
+ // src/legacy/layout/search/DynamicSearch.tsx
18374
18437
  var import_jsx_runtime115 = require("react/jsx-runtime");
18375
18438
  var DEBOUNCE_TIME2 = 400;
18376
18439
  function DynamicSearch({ component, onAction }) {
18377
18440
  const [query, setQuery] = (0, import_react51.useState)("");
18378
- const intl = (0, import_react_intl39.useIntl)();
18441
+ const intl = (0, import_react_intl42.useIntl)();
18379
18442
  const { control, title, margin, url, method, param, emptyMessage } = component;
18380
18443
  const { status, results, search } = useSearch({ url, method, param });
18381
18444
  const onEvent = useEventDispatcher();
@@ -18407,6 +18470,7 @@ function DynamicSearch({ component, onAction }) {
18407
18470
  setQuery(query);
18408
18471
  void search(query);
18409
18472
  };
18473
+ const loadingMessage = intl.formatMessage(search_messages_default2.loading);
18410
18474
  if (control === "inline") {
18411
18475
  return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: (0, import_classnames14.default)(getMargin2(margin != null ? margin : "md"), "df-search-typeahead"), children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("label", { className: "control-label d-inline", children: [
18412
18476
  title,
@@ -18424,6 +18488,7 @@ function DynamicSearch({ component, onAction }) {
18424
18488
  state: status,
18425
18489
  results,
18426
18490
  emptyMessage,
18491
+ loadingMessage,
18427
18492
  onRetrySearch
18428
18493
  }
18429
18494
  ),
@@ -18461,10 +18526,11 @@ function mapResultToTypeaheadOption2(result) {
18461
18526
  };
18462
18527
  }
18463
18528
  function TypeaheadFooter2({
18529
+ emptyMessage,
18530
+ loadingMessage,
18464
18531
  results,
18465
18532
  state,
18466
- onRetrySearch,
18467
- emptyMessage
18533
+ onRetrySearch
18468
18534
  }) {
18469
18535
  if (state === "success" && results.length === 0) {
18470
18536
  return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_components72.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: emptyMessage });
@@ -18473,7 +18539,7 @@ function TypeaheadFooter2({
18473
18539
  return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ErrorResult2, { onRetrySearch }) });
18474
18540
  }
18475
18541
  if (state === "loading" || results.length === 0) {
18476
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "m-t-2 m-x-2", children: "Loading..." });
18542
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "m-t-2 m-x-2", children: loadingMessage });
18477
18543
  }
18478
18544
  return null;
18479
18545
  }
@@ -18649,7 +18715,7 @@ var controlTypesWithPersistOnChange = /* @__PURE__ */ new Set([
18649
18715
  ]);
18650
18716
  function PersistAsyncBasicSchema(props) {
18651
18717
  const { schema, required = false, submitted, errors, onChange, onPersistAsync } = props;
18652
- const intl = (0, import_react_intl40.useIntl)();
18718
+ const intl = (0, import_react_intl43.useIntl)();
18653
18719
  const httpClient = useHttpClient();
18654
18720
  const onEvent = useEventDispatcher();
18655
18721
  const [persistAsyncModel, setPersistAsyncModel] = (0, import_react54.useState)(null);
@@ -18744,7 +18810,7 @@ var PersistAsyncBasicSchema_default = PersistAsyncBasicSchema;
18744
18810
  var usePersistAsync = (persistAsync) => {
18745
18811
  const [abortController, setAbortController] = (0, import_react55.useState)(null);
18746
18812
  const httpClient = useHttpClient();
18747
- const intl = (0, import_react_intl41.useIntl)();
18813
+ const intl = (0, import_react_intl44.useIntl)();
18748
18814
  const { schema } = persistAsync;
18749
18815
  async function handlePersistAsync(model) {
18750
18816
  const isInvalidSchema = model instanceof Blob ? !isBlobSchema2(schema) : !isValidSchema(model, schema);
@@ -18977,12 +19043,12 @@ var import_react63 = require("react");
18977
19043
 
18978
19044
  // src/common/cameraCapture/CameraCapture.tsx
18979
19045
  var import_react62 = require("react");
18980
- var import_react_intl46 = require("react-intl");
19046
+ var import_react_intl49 = require("react-intl");
18981
19047
  var import_react_webcam = __toESM(require("react-webcam"));
18982
19048
 
18983
19049
  // src/common/cameraCapture/CameraCapture.messages.ts
18984
- var import_react_intl42 = require("react-intl");
18985
- var CameraCapture_messages_default = (0, import_react_intl42.defineMessages)({
19050
+ var import_react_intl45 = require("react-intl");
19051
+ var CameraCapture_messages_default = (0, import_react_intl45.defineMessages)({
18986
19052
  reviewSubmit: {
18987
19053
  id: "dynamicFlows.CameraCapture.reviewSubmit",
18988
19054
  defaultMessage: "Yes, submit",
@@ -19042,14 +19108,14 @@ var CameraCapture_messages_default = (0, import_react_intl42.defineMessages)({
19042
19108
 
19043
19109
  // src/common/cameraCapture/components/bottomBar/BottomBar.tsx
19044
19110
  var import_components74 = require("@transferwise/components");
19045
- var import_react_intl43 = require("react-intl");
19111
+ var import_react_intl46 = require("react-intl");
19046
19112
  var import_jsx_runtime120 = require("react/jsx-runtime");
19047
19113
  var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "bottom-bar", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(CaptureButton, { onClick: onCapture }) });
19048
19114
  var ReviewBottomBar = ({
19049
19115
  onSubmit,
19050
19116
  onRetry
19051
19117
  }) => {
19052
- const intl = (0, import_react_intl43.useIntl)();
19118
+ const intl = (0, import_react_intl46.useIntl)();
19053
19119
  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: [
19054
19120
  /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
19055
19121
  import_components74.Button,
@@ -19088,11 +19154,11 @@ var CaptureButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime120.j
19088
19154
  );
19089
19155
 
19090
19156
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
19091
- var import_react_intl45 = require("react-intl");
19157
+ var import_react_intl48 = require("react-intl");
19092
19158
 
19093
19159
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.ts
19094
- var import_react_intl44 = require("react-intl");
19095
- var OrientationLockOverlay_messages_default = (0, import_react_intl44.defineMessages)({
19160
+ var import_react_intl47 = require("react-intl");
19161
+ var OrientationLockOverlay_messages_default = (0, import_react_intl47.defineMessages)({
19096
19162
  text: {
19097
19163
  id: "dynamicFlows.CameraCapture.rotatePhone.text",
19098
19164
  defaultMessage: "Rotate your phone to portrait view to take a photo",
@@ -19103,7 +19169,7 @@ var OrientationLockOverlay_messages_default = (0, import_react_intl44.defineMess
19103
19169
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
19104
19170
  var import_jsx_runtime121 = require("react/jsx-runtime");
19105
19171
  function OrientationLockOverlay() {
19106
- const intl = (0, import_react_intl45.useIntl)();
19172
+ const intl = (0, import_react_intl48.useIntl)();
19107
19173
  return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "orientation-lock-overlay", children: [
19108
19174
  /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
19109
19175
  "img",
@@ -19393,7 +19459,7 @@ function CameraCapture({
19393
19459
  shouldLockOrientation,
19394
19460
  onEvent
19395
19461
  );
19396
- const intl = (0, import_react_intl46.useIntl)();
19462
+ const intl = (0, import_react_intl49.useIntl)();
19397
19463
  const handleCapture = (0, import_react62.useCallback)(async () => {
19398
19464
  var _a, _b, _c, _d, _e, _f;
19399
19465
  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) {
@@ -19616,11 +19682,11 @@ function getFirstAction(step) {
19616
19682
  }
19617
19683
 
19618
19684
  // src/legacy/step/externalConfirmationStep/ExternalConfirmationStep.tsx
19619
- var import_react_intl48 = require("react-intl");
19685
+ var import_react_intl51 = require("react-intl");
19620
19686
 
19621
19687
  // src/common/messages/external-confirmation.messages.ts
19622
- var import_react_intl47 = require("react-intl");
19623
- var external_confirmation_messages_default2 = (0, import_react_intl47.defineMessages)({
19688
+ var import_react_intl50 = require("react-intl");
19689
+ var external_confirmation_messages_default2 = (0, import_react_intl50.defineMessages)({
19624
19690
  title: {
19625
19691
  id: "dynamicFlows.ExternalConfirmation.title",
19626
19692
  defaultMessage: "Please confirm",
@@ -19648,7 +19714,7 @@ var import_jsx_runtime126 = require("react/jsx-runtime");
19648
19714
  var noop6 = () => {
19649
19715
  };
19650
19716
  function ExternalConfirmationStep({ url, onClose }) {
19651
- const { formatMessage } = (0, import_react_intl48.useIntl)();
19717
+ const { formatMessage } = (0, import_react_intl51.useIntl)();
19652
19718
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
19653
19719
  DynamicLayout_default,
19654
19720
  {
@@ -20021,9 +20087,9 @@ var assertResponseIsValid2 = (response) => {
20021
20087
  var isResponse2 = (response) => typeof response === "object" && response !== null && "clone" in response && "bodyUsed" in response;
20022
20088
 
20023
20089
  // src/legacy/dynamicFlow/utils/useErrorResponse.tsx
20024
- var import_react_intl49 = require("react-intl");
20090
+ var import_react_intl52 = require("react-intl");
20025
20091
  var useErrorResponse = () => {
20026
- const { formatMessage } = (0, import_react_intl49.useIntl)();
20092
+ const { formatMessage } = (0, import_react_intl52.useIntl)();
20027
20093
  return async (response, fetchType, isInitialRequest) => {
20028
20094
  try {
20029
20095
  const errorResponse = await parseErrorResponse(response);
@@ -20067,7 +20133,7 @@ var DynamicFlowComponent = ({
20067
20133
  setSchemaModel
20068
20134
  } = useDynamicFlowState(initialStep);
20069
20135
  const [submitted, setSubmitted] = (0, import_react67.useState)(false);
20070
- const { locale } = (0, import_react_intl50.useIntl)();
20136
+ const { locale } = (0, import_react_intl53.useIntl)();
20071
20137
  const { isLoading, loader, setLoadingState } = useLoader(
20072
20138
  loaderConfig,
20073
20139
  initialStep ? "idle" : "initial"