@wise/dynamic-flow-client 3.26.1 → 3.28.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
@@ -518,7 +518,7 @@ var de_default = {
518
518
  "dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen",
519
519
  "dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen",
520
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.",
521
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Das Dateiformat wird leider nicht unterst\xFCtzt. Bitte lade eine andere Datei hoch.",
522
522
  "dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.",
523
523
  "dynamicFlows.MultiSelect.summary": "{first} und {count} weitere",
524
524
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.",
@@ -730,7 +730,7 @@ var hu_default = {
730
730
  "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon",
731
731
  "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s",
732
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.",
733
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sajnos ez a f\xE1jlform\xE1tum nem t\xE1mogatott. K\xE9r\xFCnk, t\xF6lts fel egy m\xE1sik f\xE1jlt.",
734
734
  "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.",
735
735
  "dynamicFlows.MultiSelect.summary": "{first} \xE9s tov\xE1bbi {count}",
736
736
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.",
@@ -836,7 +836,7 @@ var it_default = {
836
836
  "dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda",
837
837
  "dynamicFlows.ExternalConfirmation.title": "Conferma",
838
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.",
839
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Siamo spiacenti, questo formato di file non \xE8 supportato. Carica un file diverso.",
840
840
  "dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.",
841
841
  "dynamicFlows.MultiSelect.summary": "{first} e altri {count}",
842
842
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.",
@@ -942,7 +942,7 @@ var pl_default = {
942
942
  "dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce",
943
943
  "dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A",
944
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.",
945
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Przepraszamy, ten format pliku nie jest obs\u0142ugiwany. Prosimy przes\u0142a\u0107 inny plik.",
946
946
  "dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.",
947
947
  "dynamicFlows.MultiSelect.summary": "{first} oraz {count} wi\u0119cej",
948
948
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.",
@@ -995,7 +995,7 @@ var pt_default = {
995
995
  "dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba",
996
996
  "dynamicFlows.ExternalConfirmation.title": "Por favor, confirme",
997
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.",
998
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "Lamentamos, mas este formato de arquivo n\xE3o \xE9 aceito. Envie um arquivo diferente.",
999
999
  "dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.",
1000
1000
  "dynamicFlows.MultiSelect.summary": "{first} e mais {count} ",
1001
1001
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.",
@@ -1101,7 +1101,7 @@ var ru_default = {
1101
1101
  "dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435",
1102
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
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.",
1104
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "\u042D\u0442\u043E\u0442 \u0444\u043E\u0440\u043C\u0430\u0442 \u0444\u0430\u0439\u043B\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F. \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0444\u0430\u0439\u043B.",
1105
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.",
1106
1106
  "dynamicFlows.MultiSelect.summary": "{first} \u0438 \u0435\u0449\u0435 {count} \u0434\u0440\u0443\u0433\u0438\u0445",
1107
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.",
@@ -1154,7 +1154,7 @@ var th_default = {
1154
1154
  "dynamicFlows.ExternalConfirmation.open": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48",
1155
1155
  "dynamicFlows.ExternalConfirmation.title": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",
1156
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.",
1157
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E1F\u0E25\u0E4C\u0E14\u0E31\u0E07\u0E01\u0E25\u0E48\u0E32\u0E27 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E2D\u0E37\u0E48\u0E19",
1158
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",
1159
1159
  "dynamicFlows.MultiSelect.summary": "{first} \u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01 {count}",
1160
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",
@@ -1207,7 +1207,7 @@ var tr_default = {
1207
1207
  "dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7",
1208
1208
  "dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n",
1209
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.",
1210
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "\xDCzg\xFCn\xFCz, bu dosya bi\xE7imi desteklenmiyor. L\xFCtfen farkl\u0131 bir dosya y\xFCkleyin.",
1211
1211
  "dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.",
1212
1212
  "dynamicFlows.MultiSelect.summary": "{first} ve {count} daha",
1213
1213
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.",
@@ -1313,7 +1313,7 @@ var zh_HK_default = {
1313
1313
  "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u5206\u9801\u4E2D\u958B\u555F",
1314
1314
  "dynamicFlows.ExternalConfirmation.title": "\u8ACB\u78BA\u8A8D",
1315
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.",
1316
+ "dynamicFlows.FileUploadSchema.wrongFileTypeError": "\u62B1\u6B49\uFF0C\u7CFB\u7D71\u4E0D\u652F\u63F4\u8A72\u6A94\u6848\u3002\u8ACB\u4E0A\u8F09\u5176\u4ED6\u6A94\u6848\u3002",
1317
1317
  "dynamicFlows.Help.ariaLabel": "\u6309\u6B64\u67E5\u770B\u8A73\u60C5\u3002",
1318
1318
  "dynamicFlows.MultiSelect.summary": "{first}\u548C\u5176\u4ED6{count}\u9805",
1319
1319
  "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002",
@@ -1600,7 +1600,7 @@ var boxComponentToProps = ({ border, control, width, margin }, children) => ({ t
1600
1600
 
1601
1601
  // src/revamp/renderers/mappers/buttonComponentToProps.ts
1602
1602
  var buttonComponentToProps = (component) => {
1603
- const { title, control, context, disabled, margin, pinOrder, size, onClick } = component;
1603
+ const { title, control, context, disabled, margin, pinOrder, size: size2, onClick } = component;
1604
1604
  return {
1605
1605
  type: "button",
1606
1606
  title,
@@ -1609,7 +1609,7 @@ var buttonComponentToProps = (component) => {
1609
1609
  disabled,
1610
1610
  margin,
1611
1611
  pinOrder,
1612
- size,
1612
+ size: size2,
1613
1613
  onClick
1614
1614
  };
1615
1615
  };
@@ -1652,14 +1652,14 @@ var headingComponentToProps = ({
1652
1652
  align,
1653
1653
  control,
1654
1654
  margin,
1655
- size,
1655
+ size: size2,
1656
1656
  text
1657
1657
  }) => ({
1658
1658
  type: "heading",
1659
1659
  align,
1660
1660
  control,
1661
1661
  margin,
1662
- size,
1662
+ size: size2,
1663
1663
  text
1664
1664
  });
1665
1665
 
@@ -1673,14 +1673,14 @@ var imageComponentToProps = ({
1673
1673
  accessibilityDescription,
1674
1674
  control,
1675
1675
  margin,
1676
- size,
1676
+ size: size2,
1677
1677
  url
1678
1678
  }) => ({
1679
1679
  type: "image",
1680
1680
  accessibilityDescription,
1681
1681
  control,
1682
1682
  margin,
1683
- size,
1683
+ size: size2,
1684
1684
  url
1685
1685
  });
1686
1686
 
@@ -1709,12 +1709,12 @@ var integerInputComponentToProps = (component) => __spreadProps(__spreadValues({
1709
1709
  var loadingIndicatorComponentToProps = ({
1710
1710
  control,
1711
1711
  margin,
1712
- size
1712
+ size: size2
1713
1713
  }) => ({
1714
1714
  type: "loading-indicator",
1715
1715
  control,
1716
1716
  margin,
1717
- size
1717
+ size: size2
1718
1718
  });
1719
1719
 
1720
1720
  // src/revamp/renderers/mappers/markdownComponentToProps.ts
@@ -5056,8 +5056,8 @@ var ZodSet = class _ZodSet extends ZodType {
5056
5056
  maxSize: { value: maxSize, message: errorUtil.toString(message) }
5057
5057
  }));
5058
5058
  }
5059
- size(size, message) {
5060
- return this.min(size, message).max(size, message);
5059
+ size(size2, message) {
5060
+ return this.min(size2, message).max(size2, message);
5061
5061
  }
5062
5062
  nonempty(message) {
5063
5063
  return this.min(1, message);
@@ -7031,7 +7031,29 @@ var getComponentCallToAction = (callToAction, onAction) => {
7031
7031
  }
7032
7032
  const { accessibilityDescription, behavior, title } = callToAction;
7033
7033
  if ("type" in behavior) {
7034
- return void 0;
7034
+ switch (behavior.type) {
7035
+ case "action": {
7036
+ const { action } = behavior;
7037
+ return {
7038
+ type: "action",
7039
+ accessibilityDescription,
7040
+ title,
7041
+ onClick: () => {
7042
+ void onAction(action);
7043
+ }
7044
+ };
7045
+ }
7046
+ case "link": {
7047
+ return {
7048
+ type: "link",
7049
+ accessibilityDescription,
7050
+ href: behavior.url,
7051
+ title
7052
+ };
7053
+ }
7054
+ default:
7055
+ return void 0;
7056
+ }
7035
7057
  }
7036
7058
  if (behavior.link) {
7037
7059
  const { url } = behavior.link;
@@ -7132,11 +7154,26 @@ var buttonLayoutToComponent = (uid, button, mapperProps) => {
7132
7154
  };
7133
7155
  var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
7134
7156
  const { onAction, onLink, step } = mapperProps;
7135
- const { context, control, disabled, margin = "md", pinOrder, size, title, behavior } = button;
7157
+ const { context, control, disabled, margin = "md", pinOrder, size: size2, title, behavior } = button;
7136
7158
  const getOnClick = () => {
7137
7159
  if ("type" in behavior) {
7138
- return () => {
7139
- };
7160
+ switch (behavior.type) {
7161
+ case "action": {
7162
+ const action2 = inlineAction(behavior.action, step == null ? void 0 : step.actions);
7163
+ return () => {
7164
+ void onAction(action2);
7165
+ };
7166
+ }
7167
+ case "link": {
7168
+ const { url } = behavior;
7169
+ return () => {
7170
+ onLink(url);
7171
+ };
7172
+ }
7173
+ default:
7174
+ return () => {
7175
+ };
7176
+ }
7140
7177
  }
7141
7178
  const { action, link } = behavior;
7142
7179
  const inlinedAction = action ? inlineAction(action, step == null ? void 0 : step.actions) : null;
@@ -7160,14 +7197,14 @@ var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
7160
7197
  disabled: disabled != null ? disabled : false,
7161
7198
  margin,
7162
7199
  pinOrder,
7163
- size,
7200
+ size: size2,
7164
7201
  title: title != null ? title : "",
7165
7202
  onClick: getOnClick()
7166
7203
  });
7167
7204
  };
7168
7205
  var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
7169
7206
  const { onAction, step } = mapperProps;
7170
- const { context, control, disabled, margin = "md", pinOrder, size, title } = button;
7207
+ const { context, control, disabled, margin = "md", pinOrder, size: size2, title } = button;
7171
7208
  const { action } = button;
7172
7209
  const inlinedAction = action ? inlineAction(action, step == null ? void 0 : step.actions) : {};
7173
7210
  const onClick = () => {
@@ -7180,13 +7217,13 @@ var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
7180
7217
  disabled: getButtonDisabled({ disabled, action: inlinedAction }),
7181
7218
  margin,
7182
7219
  pinOrder,
7183
- size,
7220
+ size: size2,
7184
7221
  title: getButtonTitle({ title, action: inlinedAction }),
7185
7222
  onClick
7186
7223
  });
7187
7224
  };
7188
7225
  var buttonLayoutToComponentWithNoop = (uid, button) => {
7189
- const { context, control, disabled, margin = "md", pinOrder, size, title } = button;
7226
+ const { context, control, disabled, margin = "md", pinOrder, size: size2, title } = button;
7190
7227
  return createButtonComponent({
7191
7228
  uid,
7192
7229
  context: mapLegacyContext(context != null ? context : "neutral"),
@@ -7194,7 +7231,7 @@ var buttonLayoutToComponentWithNoop = (uid, button) => {
7194
7231
  disabled: disabled != null ? disabled : false,
7195
7232
  margin,
7196
7233
  pinOrder,
7197
- size,
7234
+ size: size2,
7198
7235
  title: title != null ? title : "",
7199
7236
  onClick: () => {
7200
7237
  }
@@ -10029,12 +10066,12 @@ var createHeadingComponent = (headingProps) => __spreadProps(__spreadValues({
10029
10066
  });
10030
10067
 
10031
10068
  // src/revamp/domain/mappers/layout/headingLayoutToComponent.ts
10032
- var headingLayoutToComponent = (uid, { align = "left", margin = "md", size = "md", control, text }) => createHeadingComponent({
10069
+ var headingLayoutToComponent = (uid, { align = "left", margin = "md", size: size2 = "md", control, text }) => createHeadingComponent({
10033
10070
  uid,
10034
10071
  align: mapLegacyAlign(align),
10035
10072
  control,
10036
10073
  margin,
10037
- size,
10074
+ size: size2,
10038
10075
  text
10039
10076
  });
10040
10077
 
@@ -10051,12 +10088,12 @@ var createImageComponent = (imageProps) => __spreadProps(__spreadValues({
10051
10088
  });
10052
10089
 
10053
10090
  // src/revamp/domain/mappers/layout/imageLayoutToComponent.ts
10054
- var imageLayoutToComponent = (uid, { accessibilityDescription, control, margin = "md", size = "md", text, url }) => createImageComponent({
10091
+ var imageLayoutToComponent = (uid, { accessibilityDescription, control, margin = "md", size: size2 = "md", text, url }) => createImageComponent({
10055
10092
  uid,
10056
10093
  accessibilityDescription: accessibilityDescription != null ? accessibilityDescription : text,
10057
10094
  control,
10058
10095
  margin,
10059
- size,
10096
+ size: size2,
10060
10097
  url
10061
10098
  });
10062
10099
 
@@ -10117,7 +10154,7 @@ var createLoadingIndicatorComponent = (loadingIndicatorProps) => __spreadProps(_
10117
10154
  });
10118
10155
 
10119
10156
  // src/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.ts
10120
- var loadingIndicatorLayoutToComponent = (uid, { size = "md", margin = "md", control }) => createLoadingIndicatorComponent({ uid, size, control, margin });
10157
+ var loadingIndicatorLayoutToComponent = (uid, { size: size2 = "md", margin = "md", control }) => createLoadingIndicatorComponent({ uid, size: size2, control, margin });
10121
10158
 
10122
10159
  // src/revamp/domain/mappers/layout/markdownLayoutToComponent.ts
10123
10160
  var markdownLayoutToComponent = (uid, { align = "left", margin = "md", control, content }) => createMarkdownComponent({
@@ -10218,12 +10255,36 @@ var reviewLayoutToComponent = (uid, { fields, title, callToAction, control, marg
10218
10255
  });
10219
10256
  var getReviewAction = ({ onAction, onLink, callToAction, action }) => {
10220
10257
  if (callToAction) {
10221
- const { action: ctaAction, behavior, title } = callToAction;
10258
+ const { accessibilityDescription, action: ctaAction, behavior, title } = callToAction;
10222
10259
  if (behavior) {
10223
10260
  if ("type" in behavior) {
10224
- return void 0;
10261
+ switch (behavior.type) {
10262
+ case "action": {
10263
+ const { action: behaviorAction2 } = behavior;
10264
+ return {
10265
+ accessibilityDescription,
10266
+ title,
10267
+ onClick: () => {
10268
+ void onAction(behaviorAction2);
10269
+ }
10270
+ };
10271
+ }
10272
+ case "link": {
10273
+ const { url } = behavior;
10274
+ return {
10275
+ accessibilityDescription,
10276
+ href: url,
10277
+ title,
10278
+ onClick: () => {
10279
+ onLink(url);
10280
+ }
10281
+ };
10282
+ }
10283
+ default:
10284
+ return void 0;
10285
+ }
10225
10286
  }
10226
- const { accessibilityDescription, action: behaviorAction, link } = behavior;
10287
+ const { action: behaviorAction, link } = behavior;
10227
10288
  if (behaviorAction) {
10228
10289
  return {
10229
10290
  accessibilityDescription,
@@ -10458,7 +10519,31 @@ var getItemCallToAction = (callToAction, onAction, onLink) => {
10458
10519
  }
10459
10520
  const { accessibilityDescription, behavior, title } = callToAction;
10460
10521
  if ("type" in behavior) {
10461
- return void 0;
10522
+ switch (behavior.type) {
10523
+ case "action": {
10524
+ const { action } = behavior;
10525
+ return {
10526
+ accessibilityDescription,
10527
+ title,
10528
+ onClick: () => {
10529
+ void onAction(action);
10530
+ }
10531
+ };
10532
+ }
10533
+ case "link": {
10534
+ const { url } = behavior;
10535
+ return {
10536
+ accessibilityDescription,
10537
+ href: url,
10538
+ title,
10539
+ onClick: () => {
10540
+ void onLink(url);
10541
+ }
10542
+ };
10543
+ }
10544
+ default:
10545
+ return void 0;
10546
+ }
10462
10547
  }
10463
10548
  if (behavior.action) {
10464
10549
  const { action } = behavior;
@@ -11364,8 +11449,8 @@ var useRendererHttpClient = () => {
11364
11449
  var import_components2 = require("@transferwise/components");
11365
11450
 
11366
11451
  // ../renderers/src/utils/layout-utils.ts
11367
- var getMargin = (size) => {
11368
- switch (size) {
11452
+ var getMargin = (size2) => {
11453
+ switch (size2) {
11369
11454
  case "xs":
11370
11455
  return "m-b-0";
11371
11456
  case "sm":
@@ -11586,7 +11671,7 @@ function ButtonRendererComponent({
11586
11671
  disabled,
11587
11672
  margin,
11588
11673
  title,
11589
- size,
11674
+ size: size2,
11590
11675
  onClick
11591
11676
  }) {
11592
11677
  const className = getMargin(margin);
@@ -11600,7 +11685,7 @@ function ButtonRendererComponent({
11600
11685
  className,
11601
11686
  disabled: isLoading || disabled,
11602
11687
  priority: mapControl(control),
11603
- size: mapSize(size),
11688
+ size: mapSize(size2),
11604
11689
  type,
11605
11690
  onClick,
11606
11691
  children: title
@@ -11625,11 +11710,11 @@ var mapControl = (control) => {
11625
11710
  return "secondary";
11626
11711
  }
11627
11712
  };
11628
- var mapSize = (size) => {
11629
- if (!size) {
11713
+ var mapSize = (size2) => {
11714
+ if (!size2) {
11630
11715
  return void 0;
11631
11716
  }
11632
- switch (size) {
11717
+ switch (size2) {
11633
11718
  case "xs":
11634
11719
  case "sm":
11635
11720
  return "sm";
@@ -11926,15 +12011,15 @@ var HeadingRenderer = {
11926
12011
  render: (props) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading, __spreadValues({}, props))
11927
12012
  };
11928
12013
  function Heading(props) {
11929
- const { text, size, align, margin, control } = props;
12014
+ const { text, size: size2, align, margin, control } = props;
11930
12015
  const className = getTextAlignmentAndMargin({ align, margin });
11931
- return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StandardHeading, { size, text, className });
12016
+ return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DisplayHeading, { size: size2, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StandardHeading, { size: size2, text, className });
11932
12017
  }
11933
- function DisplayHeading({ size, text, className }) {
11934
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components11.Display, { type: getDisplayType(size), className, children: text });
12018
+ function DisplayHeading({ size: size2, text, className }) {
12019
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components11.Display, { type: getDisplayType(size2), className, children: text });
11935
12020
  }
11936
- function StandardHeading({ size, text, className }) {
11937
- switch (size) {
12021
+ function StandardHeading({ size: size2, text, className }) {
12022
+ switch (size2) {
11938
12023
  case "xs":
11939
12024
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h5", { className, children: text });
11940
12025
  case "sm":
@@ -11948,8 +12033,8 @@ function StandardHeading({ size, text, className }) {
11948
12033
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h3", { className, children: text });
11949
12034
  }
11950
12035
  }
11951
- var getDisplayType = (size) => {
11952
- switch (size) {
12036
+ var getDisplayType = (size2) => {
12037
+ switch (size2) {
11953
12038
  case "xs":
11954
12039
  case "sm":
11955
12040
  return "display-small";
@@ -11984,7 +12069,7 @@ var ImageRenderer_default = ImageRenderer;
11984
12069
  function ImageRendererComponent({
11985
12070
  accessibilityDescription,
11986
12071
  margin,
11987
- size,
12072
+ size: size2,
11988
12073
  url
11989
12074
  }) {
11990
12075
  const [imageSource, setImageSource] = (0, import_react9.useState)("");
@@ -11992,7 +12077,7 @@ function ImageRendererComponent({
11992
12077
  (0, import_react9.useEffect)(() => {
11993
12078
  void getImageSource(httpClient, url).then(setImageSource);
11994
12079
  }, [url, httpClient]);
11995
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: `df-image ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
12080
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: `df-image ${size2 || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
11996
12081
  import_components12.Image,
11997
12082
  {
11998
12083
  className: `img-responsive ${getMargin(margin)}`,
@@ -12054,7 +12139,7 @@ var InstructionsRenderer = {
12054
12139
  var InstructionsRenderer_default = InstructionsRenderer;
12055
12140
 
12056
12141
  // ../renderers/src/IntegerInputRenderer.tsx
12057
- var import_components14 = require("@transferwise/components");
12142
+ var import_components15 = require("@transferwise/components");
12058
12143
 
12059
12144
  // ../renderers/src/utils/input-utils.ts
12060
12145
  var onWheel = (event) => {
@@ -12063,13 +12148,71 @@ var onWheel = (event) => {
12063
12148
  }
12064
12149
  };
12065
12150
 
12066
- // ../renderers/src/IntegerInputRenderer.tsx
12151
+ // ../renderers/src/utils/getIconAvatar.tsx
12152
+ var import_components14 = require("@transferwise/components");
12067
12153
  var import_jsx_runtime30 = require("react/jsx-runtime");
12154
+ var size = 24;
12155
+ function getIconAvatar({ icon, image }) {
12156
+ if (image == null ? void 0 : image.url) {
12157
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12158
+ "img",
12159
+ {
12160
+ src: image.url,
12161
+ alt: image.accessibilityDescription,
12162
+ width: `${size}px`,
12163
+ height: `${size}px`
12164
+ }
12165
+ );
12166
+ }
12167
+ if (isFlagIcon2(icon)) {
12168
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components14.Avatar, { type: import_components14.AvatarType.ICON, size, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DynamicIcon_default, { name: icon.name }) });
12169
+ }
12170
+ if (isNamedIcon2(icon)) {
12171
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DynamicIcon_default, { name: icon.name });
12172
+ }
12173
+ if (icon && "text" in icon) {
12174
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components14.Avatar, { type: import_components14.AvatarType.ICON, size, children: icon.text });
12175
+ }
12176
+ return null;
12177
+ }
12178
+ var isNamedIcon2 = (icon) => icon ? "name" in icon : false;
12179
+ var isFlagIcon2 = (icon) => isNamedIcon2(icon) && icon.name.startsWith("flag-");
12180
+
12181
+ // ../renderers/src/utils/getInputGroupAddonStart.tsx
12182
+ var getInputGroupAddonStart = ({ icon, image }) => {
12183
+ const content = getIconAvatar({ icon, image });
12184
+ return content ? { content } : void 0;
12185
+ };
12186
+
12187
+ // ../renderers/src/IntegerInputRenderer.tsx
12188
+ var import_jsx_runtime31 = require("react/jsx-runtime");
12068
12189
  var IntegerInputRenderer = {
12069
12190
  canRenderType: "input-integer",
12070
12191
  render: (props) => {
12071
- const _a = props, { id, label, description, help, type, validationState, value, onChange } = _a, rest = __objRest(_a, ["id", "label", "description", "help", "type", "validationState", "value", "onChange"]);
12072
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12192
+ const _a = props, {
12193
+ id,
12194
+ label,
12195
+ description,
12196
+ help,
12197
+ icon,
12198
+ image,
12199
+ type,
12200
+ validationState,
12201
+ value,
12202
+ onChange
12203
+ } = _a, rest = __objRest(_a, [
12204
+ "id",
12205
+ "label",
12206
+ "description",
12207
+ "help",
12208
+ "icon",
12209
+ "image",
12210
+ "type",
12211
+ "validationState",
12212
+ "value",
12213
+ "onChange"
12214
+ ]);
12215
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12073
12216
  FieldInput_default,
12074
12217
  {
12075
12218
  id,
@@ -12077,8 +12220,8 @@ var IntegerInputRenderer = {
12077
12220
  description,
12078
12221
  validation: validationState,
12079
12222
  help,
12080
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12081
- import_components14.Input,
12223
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components15.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12224
+ import_components15.Input,
12082
12225
  __spreadValues({
12083
12226
  id,
12084
12227
  name: id,
@@ -12092,7 +12235,7 @@ var IntegerInputRenderer = {
12092
12235
  },
12093
12236
  onWheel
12094
12237
  }, rest)
12095
- )
12238
+ ) })
12096
12239
  }
12097
12240
  );
12098
12241
  }
@@ -12100,14 +12243,14 @@ var IntegerInputRenderer = {
12100
12243
  var IntegerInputRenderer_default = IntegerInputRenderer;
12101
12244
 
12102
12245
  // ../renderers/src/LoadingIndicatorRenderer.tsx
12103
- var import_components15 = require("@transferwise/components");
12104
- var import_jsx_runtime31 = require("react/jsx-runtime");
12246
+ var import_components16 = require("@transferwise/components");
12247
+ var import_jsx_runtime32 = require("react/jsx-runtime");
12105
12248
  var LoadingIndicatorRenderer = {
12106
12249
  canRenderType: "loading-indicator",
12107
- render: ({ margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12108
- import_components15.Loader,
12250
+ render: ({ margin, size: size2 }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
12251
+ import_components16.Loader,
12109
12252
  {
12110
- size,
12253
+ size: size2,
12111
12254
  classNames: { "tw-loader": `tw-loader m-x-auto ${getMargin(margin)}` },
12112
12255
  "data-testid": "loading-indicator"
12113
12256
  }
@@ -12116,30 +12259,30 @@ var LoadingIndicatorRenderer = {
12116
12259
  var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
12117
12260
 
12118
12261
  // ../renderers/src/MarkdownRenderer.tsx
12119
- var import_components16 = require("@transferwise/components");
12120
- var import_jsx_runtime32 = require("react/jsx-runtime");
12262
+ var import_components17 = require("@transferwise/components");
12263
+ var import_jsx_runtime33 = require("react/jsx-runtime");
12121
12264
  var MarkdownRenderer = {
12122
12265
  canRenderType: "markdown",
12123
- render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_components16.Markdown, { config: { link: { target: "_blank" } }, children: content }) })
12266
+ render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_components17.Markdown, { config: { link: { target: "_blank" } }, children: content }) })
12124
12267
  };
12125
12268
  var MarkdownRenderer_default = MarkdownRenderer;
12126
12269
 
12127
12270
  // ../renderers/src/ModalRenderer.tsx
12128
- var import_components17 = require("@transferwise/components");
12271
+ var import_components18 = require("@transferwise/components");
12129
12272
  var import_react10 = require("react");
12130
- var import_jsx_runtime33 = require("react/jsx-runtime");
12273
+ var import_jsx_runtime34 = require("react/jsx-runtime");
12131
12274
  var ModalRenderer = {
12132
12275
  canRenderType: "modal",
12133
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DFModal, __spreadValues({}, props))
12276
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DFModal, __spreadValues({}, props))
12134
12277
  };
12135
12278
  var ModalRenderer_default = ModalRenderer;
12136
12279
  function DFModal({ content, margin, trigger }) {
12137
12280
  const [visible, setVisible] = (0, import_react10.useState)(false);
12138
12281
  const { components, title } = content;
12139
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: getMargin(margin), children: [
12140
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_components17.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
12141
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
12142
- import_components17.Modal,
12282
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getMargin(margin), children: [
12283
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components18.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
12284
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
12285
+ import_components18.Modal,
12143
12286
  {
12144
12287
  scroll: "content",
12145
12288
  open: visible,
@@ -12153,20 +12296,20 @@ function DFModal({ content, margin, trigger }) {
12153
12296
  }
12154
12297
 
12155
12298
  // ../renderers/src/MultiSelectInputRenderer.tsx
12156
- var import_components19 = require("@transferwise/components");
12299
+ var import_components20 = require("@transferwise/components");
12157
12300
 
12158
12301
  // ../renderers/src/SelectInputRenderer/OptionMedia.tsx
12159
- var import_components18 = require("@transferwise/components");
12160
- var import_jsx_runtime34 = require("react/jsx-runtime");
12302
+ var import_components19 = require("@transferwise/components");
12303
+ var import_jsx_runtime35 = require("react/jsx-runtime");
12161
12304
  function OptionMedia({ icon, image }) {
12162
12305
  if (image == null ? void 0 : image.url) {
12163
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: image.url, alt: image.accessibilityDescription || "", width: "64px" });
12306
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("img", { src: image.url, alt: image.accessibilityDescription || "", width: "64px" });
12164
12307
  }
12165
12308
  if (icon && "name" in icon) {
12166
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components18.Avatar, { type: import_components18.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DynamicIcon_default, { name: icon.name }) });
12309
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components19.Avatar, { type: import_components19.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DynamicIcon_default, { name: icon.name }) });
12167
12310
  }
12168
12311
  if (icon && "text" in icon) {
12169
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components18.Avatar, { type: import_components18.AvatarType.INITIALS, children: icon.text });
12312
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components19.Avatar, { type: import_components19.AvatarType.INITIALS, children: icon.text });
12170
12313
  }
12171
12314
  return null;
12172
12315
  }
@@ -12186,16 +12329,17 @@ var multi_select_messages_default = (0, import_react_intl10.defineMessages)({
12186
12329
 
12187
12330
  // ../renderers/src/MultiSelectInputRenderer.tsx
12188
12331
  var import_react11 = require("react");
12189
- var import_jsx_runtime35 = require("react/jsx-runtime");
12332
+ var import_jsx_runtime36 = require("react/jsx-runtime");
12190
12333
  var MultiSelectInputRenderer = {
12191
12334
  canRenderType: "input-multi-select",
12192
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
12335
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
12193
12336
  };
12194
12337
  function MultiSelectInputRendererComponent(props) {
12195
12338
  const { formatMessage } = (0, import_react_intl11.useIntl)();
12196
12339
  const [stagedIndices, setStagedIndices] = (0, import_react11.useState)();
12197
12340
  const {
12198
12341
  id,
12342
+ autoComplete,
12199
12343
  description,
12200
12344
  disabled,
12201
12345
  label,
@@ -12230,11 +12374,12 @@ function MultiSelectInputRendererComponent(props) {
12230
12374
  const contentProps = {
12231
12375
  title: option.title,
12232
12376
  description: option.description,
12233
- icon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(OptionMedia, { icon: option.icon, image: option.image })
12377
+ icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(OptionMedia, { icon: option.icon, image: option.image })
12234
12378
  };
12235
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components19.SelectInputOptionContent, __spreadValues({}, contentProps));
12379
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components20.SelectInputOptionContent, __spreadValues({}, contentProps));
12236
12380
  };
12237
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
12381
+ const extraProps = { autoComplete };
12382
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
12238
12383
  FieldInput_default,
12239
12384
  {
12240
12385
  id,
@@ -12242,9 +12387,9 @@ function MultiSelectInputRendererComponent(props) {
12242
12387
  help,
12243
12388
  description,
12244
12389
  validation: validationState,
12245
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
12246
- import_components19.SelectInput,
12247
- {
12390
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
12391
+ import_components20.SelectInput,
12392
+ __spreadValues({
12248
12393
  id,
12249
12394
  items: options.map((option, index) => {
12250
12395
  var _a, _b, _c;
@@ -12273,7 +12418,7 @@ function MultiSelectInputRendererComponent(props) {
12273
12418
  setStagedIndices(void 0);
12274
12419
  }
12275
12420
  }
12276
- }
12421
+ }, extraProps)
12277
12422
  )
12278
12423
  }
12279
12424
  );
@@ -12281,12 +12426,12 @@ function MultiSelectInputRendererComponent(props) {
12281
12426
  var MultiSelectInputRenderer_default = MultiSelectInputRenderer;
12282
12427
 
12283
12428
  // ../renderers/src/MultiUploadInputRenderer.tsx
12284
- var import_components21 = require("@transferwise/components");
12429
+ var import_components22 = require("@transferwise/components");
12285
12430
 
12286
12431
  // ../renderers/src/components/UploadFieldInput.tsx
12287
- var import_components20 = require("@transferwise/components");
12432
+ var import_components21 = require("@transferwise/components");
12288
12433
  var import_classnames3 = __toESM(require_classnames());
12289
- var import_jsx_runtime36 = require("react/jsx-runtime");
12434
+ var import_jsx_runtime37 = require("react/jsx-runtime");
12290
12435
  function UploadFieldInput({
12291
12436
  id,
12292
12437
  children,
@@ -12295,18 +12440,18 @@ function UploadFieldInput({
12295
12440
  help,
12296
12441
  validation
12297
12442
  }) {
12298
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(LabelContentWithHelp, { text: label, help }) : label;
12443
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(LabelContentWithHelp, { text: label, help }) : label;
12299
12444
  const descriptionId = description ? `${id}-description` : void 0;
12300
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
12445
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
12301
12446
  "div",
12302
12447
  {
12303
12448
  className: (0, import_classnames3.default)("form-group d-block", {
12304
12449
  "has-error": (validation == null ? void 0 : validation.status) === "invalid"
12305
12450
  }),
12306
12451
  children: [
12307
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
12452
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
12308
12453
  children,
12309
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components20.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
12454
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components21.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
12310
12455
  ]
12311
12456
  }
12312
12457
  );
@@ -12338,7 +12483,7 @@ var getFileType = (base64Url) => {
12338
12483
  var getRandomId = () => Math.random().toString(36).substring(2);
12339
12484
 
12340
12485
  // ../renderers/src/MultiUploadInputRenderer.tsx
12341
- var import_jsx_runtime37 = require("react/jsx-runtime");
12486
+ var import_jsx_runtime38 = require("react/jsx-runtime");
12342
12487
  var MultiUploadInputRenderer = {
12343
12488
  canRenderType: "input-upload-multi",
12344
12489
  render: (props) => {
@@ -12365,7 +12510,7 @@ var MultiUploadInputRenderer = {
12365
12510
  };
12366
12511
  const onDeleteFile = async (fileId) => onDelete(String(fileId));
12367
12512
  const descriptionId = description ? `${id}-description` : void 0;
12368
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
12513
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
12369
12514
  UploadFieldInput_default,
12370
12515
  {
12371
12516
  id,
@@ -12373,8 +12518,8 @@ var MultiUploadInputRenderer = {
12373
12518
  description,
12374
12519
  validation: validationState,
12375
12520
  help,
12376
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
12377
- import_components21.UploadInput,
12521
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
12522
+ import_components22.UploadInput,
12378
12523
  {
12379
12524
  id,
12380
12525
  "aria-describedby": descriptionId,
@@ -12396,13 +12541,35 @@ var MultiUploadInputRenderer = {
12396
12541
  var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
12397
12542
 
12398
12543
  // ../renderers/src/NumberInputRenderer.tsx
12399
- var import_components22 = require("@transferwise/components");
12400
- var import_jsx_runtime38 = require("react/jsx-runtime");
12544
+ var import_components23 = require("@transferwise/components");
12545
+ var import_jsx_runtime39 = require("react/jsx-runtime");
12401
12546
  var NumberInputRenderer = {
12402
12547
  canRenderType: "input-number",
12403
12548
  render: (props) => {
12404
- const _a = props, { id, label, description, help, type, validationState, value, onChange } = _a, rest = __objRest(_a, ["id", "label", "description", "help", "type", "validationState", "value", "onChange"]);
12405
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
12549
+ const _a = props, {
12550
+ id,
12551
+ label,
12552
+ description,
12553
+ help,
12554
+ icon,
12555
+ image,
12556
+ type,
12557
+ validationState,
12558
+ value,
12559
+ onChange
12560
+ } = _a, rest = __objRest(_a, [
12561
+ "id",
12562
+ "label",
12563
+ "description",
12564
+ "help",
12565
+ "icon",
12566
+ "image",
12567
+ "type",
12568
+ "validationState",
12569
+ "value",
12570
+ "onChange"
12571
+ ]);
12572
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
12406
12573
  FieldInput_default,
12407
12574
  {
12408
12575
  id,
@@ -12410,8 +12577,8 @@ var NumberInputRenderer = {
12410
12577
  description,
12411
12578
  validation: validationState,
12412
12579
  help,
12413
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
12414
- import_components22.Input,
12580
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components23.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
12581
+ import_components23.Input,
12415
12582
  __spreadValues({
12416
12583
  id,
12417
12584
  name: id,
@@ -12423,7 +12590,7 @@ var NumberInputRenderer = {
12423
12590
  },
12424
12591
  onWheel
12425
12592
  }, rest)
12426
- )
12593
+ ) })
12427
12594
  }
12428
12595
  );
12429
12596
  }
@@ -12434,16 +12601,16 @@ var NumberInputRenderer_default = NumberInputRenderer;
12434
12601
  var import_react_intl13 = require("react-intl");
12435
12602
 
12436
12603
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
12437
- var import_components23 = require("@transferwise/components");
12604
+ var import_components24 = require("@transferwise/components");
12438
12605
  var import_react12 = require("react");
12439
12606
  function useSnackBarIfAvailable() {
12440
- const context = (0, import_react12.useContext)(import_components23.SnackbarContext);
12607
+ const context = (0, import_react12.useContext)(import_components24.SnackbarContext);
12441
12608
  return context ? context.createSnackbar : () => {
12442
12609
  };
12443
12610
  }
12444
12611
 
12445
12612
  // ../renderers/src/ParagraphRenderer.tsx
12446
- var import_components24 = require("@transferwise/components");
12613
+ var import_components25 = require("@transferwise/components");
12447
12614
  var import_classnames4 = __toESM(require_classnames());
12448
12615
 
12449
12616
  // ../renderers/src/messages/paragraph.messages.ts
@@ -12462,17 +12629,17 @@ var paragraph_messages_default = (0, import_react_intl12.defineMessages)({
12462
12629
  });
12463
12630
 
12464
12631
  // ../renderers/src/ParagraphRenderer.tsx
12465
- var import_jsx_runtime39 = require("react/jsx-runtime");
12632
+ var import_jsx_runtime40 = require("react/jsx-runtime");
12466
12633
  var ParagraphRenderer = {
12467
12634
  canRenderType: "paragraph",
12468
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Paragraph, __spreadValues({}, props))
12635
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Paragraph, __spreadValues({}, props))
12469
12636
  };
12470
12637
  function Paragraph({ align, control, margin, text }) {
12471
12638
  const className = getTextAlignmentAndMargin({ align, margin });
12472
- return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(StandardParagraph, { className, text });
12639
+ return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(StandardParagraph, { className, text });
12473
12640
  }
12474
12641
  function StandardParagraph({ text, className }) {
12475
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
12642
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
12476
12643
  }
12477
12644
  function CopyableParagraph({
12478
12645
  text,
@@ -12486,9 +12653,9 @@ function CopyableParagraph({
12486
12653
  });
12487
12654
  };
12488
12655
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
12489
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className, children: [
12490
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
12491
- import_components24.Input,
12656
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className, children: [
12657
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12658
+ import_components25.Input,
12492
12659
  {
12493
12660
  type: "text",
12494
12661
  value: text,
@@ -12496,13 +12663,13 @@ function CopyableParagraph({
12496
12663
  className: (0, import_classnames4.default)("text-ellipsis", inputAlignmentClasses)
12497
12664
  }
12498
12665
  ),
12499
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components24.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
12666
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components25.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
12500
12667
  ] });
12501
12668
  }
12502
12669
  var ParagraphRenderer_default = ParagraphRenderer;
12503
12670
 
12504
12671
  // ../renderers/src/RepeatableRenderer.tsx
12505
- var import_components25 = require("@transferwise/components");
12672
+ var import_components26 = require("@transferwise/components");
12506
12673
  var import_react13 = require("react");
12507
12674
  var import_icons = require("@transferwise/icons");
12508
12675
  var import_react_intl15 = require("react-intl");
@@ -12534,10 +12701,10 @@ var repeatable_messages_default = (0, import_react_intl14.defineMessages)({
12534
12701
 
12535
12702
  // ../renderers/src/RepeatableRenderer.tsx
12536
12703
  var import_classnames5 = __toESM(require_classnames());
12537
- var import_jsx_runtime40 = require("react/jsx-runtime");
12704
+ var import_jsx_runtime41 = require("react/jsx-runtime");
12538
12705
  var RepeatableRenderer = {
12539
12706
  canRenderType: "repeatable",
12540
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Repeatable, __spreadValues({}, props))
12707
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Repeatable, __spreadValues({}, props))
12541
12708
  };
12542
12709
  function Repeatable(props) {
12543
12710
  const {
@@ -12576,40 +12743,40 @@ function Repeatable(props) {
12576
12743
  const onCancelEdit = () => {
12577
12744
  setOpenModalType(null);
12578
12745
  };
12579
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
12580
- title && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components25.Header, { title }),
12581
- description && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: description }),
12582
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
12746
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
12747
+ title && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components26.Header, { title }),
12748
+ description && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { children: description }),
12749
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
12583
12750
  "div",
12584
12751
  {
12585
12752
  className: (0, import_classnames5.default)("form-group", {
12586
12753
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
12587
12754
  }),
12588
12755
  children: [
12589
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
12590
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12591
- import_components25.NavigationOption,
12756
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
12757
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
12758
+ import_components26.NavigationOption,
12592
12759
  {
12593
- media: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_icons.Plus, {}),
12760
+ media: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons.Plus, {}),
12594
12761
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
12595
12762
  showMediaAtAllSizes: true,
12596
12763
  onClick: () => onAddItem()
12597
12764
  }
12598
12765
  ),
12599
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components25.InlineAlert, { type: "negative", children: validationState.message })
12766
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components26.InlineAlert, { type: "negative", children: validationState.message })
12600
12767
  ]
12601
12768
  }
12602
12769
  ),
12603
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12604
- import_components25.Modal,
12770
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
12771
+ import_components26.Modal,
12605
12772
  {
12606
12773
  open: openModalType !== null,
12607
12774
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
12608
- body: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
12609
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "m-b-2", children: editableItem }),
12610
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { children: [
12611
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components25.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
12612
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components25.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
12775
+ body: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
12776
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "m-b-2", children: editableItem }),
12777
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
12778
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components26.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
12779
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components26.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
12613
12780
  ] })
12614
12781
  ] }),
12615
12782
  onClose: () => onCancelEdit()
@@ -12621,10 +12788,10 @@ function ItemSummaryOption({
12621
12788
  item,
12622
12789
  onClick
12623
12790
  }) {
12624
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12625
- import_components25.NavigationOption,
12791
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
12792
+ import_components26.NavigationOption,
12626
12793
  {
12627
- media: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(NavigationOptionMedia, __spreadValues({}, item)),
12794
+ media: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(NavigationOptionMedia, __spreadValues({}, item)),
12628
12795
  title: item.title,
12629
12796
  content: item.description,
12630
12797
  showMediaAtAllSizes: true,
@@ -12635,7 +12802,7 @@ function ItemSummaryOption({
12635
12802
  var RepeatableRenderer_default = RepeatableRenderer;
12636
12803
 
12637
12804
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
12638
- var import_components27 = require("@transferwise/components");
12805
+ var import_components28 = require("@transferwise/components");
12639
12806
 
12640
12807
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
12641
12808
  var import_react_intl17 = require("react-intl");
@@ -12661,8 +12828,8 @@ var generic_error_messages_default2 = (0, import_react_intl16.defineMessages)({
12661
12828
  });
12662
12829
 
12663
12830
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
12664
- var import_components26 = require("@transferwise/components");
12665
- var import_jsx_runtime41 = require("react/jsx-runtime");
12831
+ var import_components27 = require("@transferwise/components");
12832
+ var import_jsx_runtime42 = require("react/jsx-runtime");
12666
12833
  function ErrorResult({ state }) {
12667
12834
  const intl = (0, import_react_intl17.useIntl)();
12668
12835
  const buttonVisualProps = {
@@ -12670,11 +12837,11 @@ function ErrorResult({ state }) {
12670
12837
  size: "sm",
12671
12838
  style: { marginTop: "-2px", padding: "0", width: "auto", display: "inline" }
12672
12839
  };
12673
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("p", { className: "m-t-2", children: [
12840
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("p", { className: "m-t-2", children: [
12674
12841
  intl.formatMessage(generic_error_messages_default2.genericError),
12675
12842
  "\xA0",
12676
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
12677
- import_components26.Button,
12843
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12844
+ import_components27.Button,
12678
12845
  __spreadProps(__spreadValues({}, buttonVisualProps), {
12679
12846
  onClick: () => {
12680
12847
  state.onRetry();
@@ -12700,7 +12867,7 @@ var search_messages_default = (0, import_react_intl18.defineMessages)({
12700
12867
 
12701
12868
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
12702
12869
  var import_react_intl19 = require("react-intl");
12703
- var import_jsx_runtime42 = require("react/jsx-runtime");
12870
+ var import_jsx_runtime43 = require("react/jsx-runtime");
12704
12871
  function BlockSearchRendererComponent({
12705
12872
  id,
12706
12873
  isLoading,
@@ -12713,9 +12880,9 @@ function BlockSearchRendererComponent({
12713
12880
  const [hasSearched, setHasSearched] = (0, import_react14.useState)(false);
12714
12881
  const trackEvent = useTrackEvent();
12715
12882
  const { formatMessage } = (0, import_react_intl19.useIntl)();
12716
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getMargin(margin), children: [
12717
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12718
- import_components27.Input,
12883
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: getMargin(margin), children: [
12884
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
12885
+ import_components28.Input,
12719
12886
  {
12720
12887
  id,
12721
12888
  name: id,
@@ -12731,7 +12898,7 @@ function BlockSearchRendererComponent({
12731
12898
  }
12732
12899
  }
12733
12900
  ) }),
12734
- 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 })
12901
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SearchResultContent, { state, onChange })
12735
12902
  ] });
12736
12903
  }
12737
12904
  function SearchResultContent({
@@ -12740,27 +12907,27 @@ function SearchResultContent({
12740
12907
  }) {
12741
12908
  switch (state.type) {
12742
12909
  case "error":
12743
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ErrorResult, { state });
12910
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ErrorResult, { state });
12744
12911
  case "results":
12745
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SearchResults, { state, onChange });
12912
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SearchResults, { state, onChange });
12746
12913
  case "noResults":
12747
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(EmptySearchResult, { state });
12914
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(EmptySearchResult, { state });
12748
12915
  case "pending":
12749
12916
  default:
12750
12917
  return null;
12751
12918
  }
12752
12919
  }
12753
12920
  function EmptySearchResult({ state }) {
12754
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components27.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
12921
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components28.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
12755
12922
  }
12756
12923
  function SearchResults({
12757
12924
  state
12758
12925
  }) {
12759
12926
  const trackEvent = useTrackEvent();
12760
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components27.NavigationOptionsList, { children: state.results.map((result) => {
12927
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components28.NavigationOptionsList, { children: state.results.map((result) => {
12761
12928
  const { icon, image } = result;
12762
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12763
- import_components27.NavigationOption,
12929
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
12930
+ import_components28.NavigationOption,
12764
12931
  {
12765
12932
  title: result.title,
12766
12933
  content: result.description,
@@ -12781,11 +12948,11 @@ function SearchResults({
12781
12948
  var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
12782
12949
 
12783
12950
  // ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
12784
- var import_components28 = require("@transferwise/components");
12951
+ var import_components29 = require("@transferwise/components");
12785
12952
  var import_icons2 = require("@transferwise/icons");
12786
12953
  var import_react15 = require("react");
12787
12954
  var import_react_intl20 = require("react-intl");
12788
- var import_jsx_runtime43 = require("react/jsx-runtime");
12955
+ var import_jsx_runtime44 = require("react/jsx-runtime");
12789
12956
  function InlineSearchRenderer({
12790
12957
  id,
12791
12958
  isLoading,
@@ -12797,18 +12964,18 @@ function InlineSearchRenderer({
12797
12964
  const [hasSearched, setHasSearched] = (0, import_react15.useState)(false);
12798
12965
  const trackEvent = useTrackEvent();
12799
12966
  const intl = (0, import_react_intl20.useIntl)();
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)(
12801
- import_components28.Typeahead,
12967
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
12968
+ import_components29.Typeahead,
12802
12969
  {
12803
12970
  id: "typeahead-input-id",
12804
12971
  intl,
12805
12972
  name: "typeahead-input-name",
12806
12973
  size: "md",
12807
12974
  maxHeight: 100,
12808
- footer: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TypeaheadFooter, { state, isLoading }),
12975
+ footer: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TypeaheadFooter, { state, isLoading }),
12809
12976
  multiple: false,
12810
12977
  clearable: false,
12811
- addon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_icons2.Search, { size: 24 }),
12978
+ addon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons2.Search, { size: 24 }),
12812
12979
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
12813
12980
  minQueryLength: 1,
12814
12981
  onChange: (values) => {
@@ -12845,29 +13012,29 @@ function mapResultToTypeaheadOption(result) {
12845
13012
  function TypeaheadFooter({ state, isLoading }) {
12846
13013
  const { formatMessage } = (0, import_react_intl20.useIntl)();
12847
13014
  if (state.type === "noResults") {
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 });
13015
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components29.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
12849
13016
  }
12850
13017
  if (state.type === "error") {
12851
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ErrorResult, { state }) });
13018
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ErrorResult, { state }) });
12852
13019
  }
12853
13020
  if (state.type === "pending" || isLoading) {
12854
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
13021
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
12855
13022
  }
12856
13023
  return null;
12857
13024
  }
12858
13025
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
12859
13026
 
12860
13027
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
12861
- var import_jsx_runtime44 = require("react/jsx-runtime");
13028
+ var import_jsx_runtime45 = require("react/jsx-runtime");
12862
13029
  var SearchRenderer = {
12863
13030
  canRenderType: "search",
12864
- render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
13031
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
12865
13032
  };
12866
13033
  var SearchRenderer_default = SearchRenderer;
12867
13034
 
12868
13035
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
12869
- var import_components29 = require("@transferwise/components");
12870
- var import_jsx_runtime45 = require("react/jsx-runtime");
13036
+ var import_components30 = require("@transferwise/components");
13037
+ var import_jsx_runtime46 = require("react/jsx-runtime");
12871
13038
  function RadioInputRendererComponent(props) {
12872
13039
  const {
12873
13040
  id,
@@ -12881,8 +13048,8 @@ function RadioInputRendererComponent(props) {
12881
13048
  validationState,
12882
13049
  onSelect
12883
13050
  } = props;
12884
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
12885
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
13051
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
13052
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12886
13053
  FieldInput_default,
12887
13054
  {
12888
13055
  id,
@@ -12890,8 +13057,8 @@ function RadioInputRendererComponent(props) {
12890
13057
  help,
12891
13058
  description,
12892
13059
  validation: validationState,
12893
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
12894
- import_components29.RadioGroup,
13060
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13061
+ import_components30.RadioGroup,
12895
13062
  {
12896
13063
  name: id,
12897
13064
  radios: options.map((option, index) => ({
@@ -12899,7 +13066,7 @@ function RadioInputRendererComponent(props) {
12899
13066
  value: index,
12900
13067
  secondary: option.description,
12901
13068
  disabled: option.disabled || disabled,
12902
- avatar: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(OptionMedia, { icon: option.icon, image: option.image })
13069
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(OptionMedia, { icon: option.icon, image: option.image })
12903
13070
  })),
12904
13071
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
12905
13072
  onChange: onSelect
@@ -12913,9 +13080,9 @@ function RadioInputRendererComponent(props) {
12913
13080
  }
12914
13081
 
12915
13082
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
12916
- var import_components30 = require("@transferwise/components");
13083
+ var import_components31 = require("@transferwise/components");
12917
13084
  var import_react16 = require("react");
12918
- var import_jsx_runtime46 = require("react/jsx-runtime");
13085
+ var import_jsx_runtime47 = require("react/jsx-runtime");
12919
13086
  function TabInputRendererComponent(props) {
12920
13087
  const {
12921
13088
  id,
@@ -12934,8 +13101,8 @@ function TabInputRendererComponent(props) {
12934
13101
  onSelect(0);
12935
13102
  }
12936
13103
  }, [selectedIndex, onSelect, options.length]);
12937
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
12938
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13104
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
13105
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12939
13106
  FieldInput_default,
12940
13107
  {
12941
13108
  id,
@@ -12943,8 +13110,8 @@ function TabInputRendererComponent(props) {
12943
13110
  help,
12944
13111
  description,
12945
13112
  validation: validationState,
12946
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12947
- import_components30.Tabs,
13113
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13114
+ import_components31.Tabs,
12948
13115
  {
12949
13116
  name: id,
12950
13117
  selected: selectedIndex != null ? selectedIndex : 0,
@@ -12952,7 +13119,7 @@ function TabInputRendererComponent(props) {
12952
13119
  title: option.title,
12953
13120
  // if we pass null, we get some props-types console errors
12954
13121
  // eslint-disable-next-line react/jsx-no-useless-fragment
12955
- content: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, {}),
13122
+ content: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, {}),
12956
13123
  disabled: option.disabled || disabled
12957
13124
  })),
12958
13125
  onTabSelect: onSelect
@@ -12967,28 +13134,11 @@ var isValidIndex = (index, options) => index !== null && index >= 0 && index < o
12967
13134
 
12968
13135
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
12969
13136
  var import_components32 = require("@transferwise/components");
12970
-
12971
- // ../renderers/src/SelectInputRenderer/SelectTriggerMedia.tsx
12972
- var import_components31 = require("@transferwise/components");
12973
- var import_jsx_runtime47 = require("react/jsx-runtime");
12974
- function SelectTriggerMedia({ icon, image }) {
12975
- if (image == null ? void 0 : image.url) {
12976
- return null;
12977
- }
12978
- if (icon && "name" in icon) {
12979
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components31.Avatar, { type: import_components31.AvatarType.ICON, size: 24, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DynamicIcon_default, { name: icon.name }) });
12980
- }
12981
- if (icon && "text" in icon) {
12982
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components31.Avatar, { type: import_components31.AvatarType.ICON, size: 24, children: icon.text });
12983
- }
12984
- return null;
12985
- }
12986
-
12987
- // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
12988
13137
  var import_jsx_runtime48 = require("react/jsx-runtime");
12989
13138
  function SelectInputRendererComponent(props) {
12990
13139
  const {
12991
13140
  id,
13141
+ autoComplete,
12992
13142
  children,
12993
13143
  description,
12994
13144
  disabled,
@@ -13020,7 +13170,7 @@ function SelectInputRendererComponent(props) {
13020
13170
  const contentProps = withinTrigger ? {
13021
13171
  title: option.title,
13022
13172
  note: option.description,
13023
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectTriggerMedia, { icon: option.icon, image: option.image })
13173
+ icon: getIconAvatar(option)
13024
13174
  } : {
13025
13175
  title: option.title,
13026
13176
  description: option.description,
@@ -13028,6 +13178,7 @@ function SelectInputRendererComponent(props) {
13028
13178
  };
13029
13179
  return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_components32.SelectInputOptionContent, __spreadValues({}, contentProps));
13030
13180
  };
13181
+ const extraProps = { autoComplete };
13031
13182
  return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
13032
13183
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13033
13184
  FieldInput_default,
@@ -13039,7 +13190,7 @@ function SelectInputRendererComponent(props) {
13039
13190
  validation: validationState,
13040
13191
  children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13041
13192
  import_components32.SelectInput,
13042
- {
13193
+ __spreadValues({
13043
13194
  name: id,
13044
13195
  placeholder,
13045
13196
  items,
@@ -13049,7 +13200,7 @@ function SelectInputRendererComponent(props) {
13049
13200
  filterable: items.length >= 8,
13050
13201
  onChange: onSelect,
13051
13202
  onClear: required ? void 0 : () => onSelect(null)
13052
- }
13203
+ }, extraProps)
13053
13204
  )
13054
13205
  }
13055
13206
  ),
@@ -13176,6 +13327,9 @@ var mapStatus = (status) => {
13176
13327
  return status;
13177
13328
  };
13178
13329
 
13330
+ // ../renderers/src/TextInputRenderer.tsx
13331
+ var import_components36 = require("@transferwise/components");
13332
+
13179
13333
  // ../renderers/src/components/VariableTextInput.tsx
13180
13334
  var import_components35 = require("@transferwise/components");
13181
13335
  var import_jsx_runtime52 = require("react/jsx-runtime");
@@ -13257,6 +13411,8 @@ var TextInputRenderer = {
13257
13411
  description,
13258
13412
  help,
13259
13413
  error,
13414
+ icon,
13415
+ image,
13260
13416
  maxLength,
13261
13417
  minLength,
13262
13418
  type,
@@ -13269,6 +13425,8 @@ var TextInputRenderer = {
13269
13425
  "description",
13270
13426
  "help",
13271
13427
  "error",
13428
+ "icon",
13429
+ "image",
13272
13430
  "maxLength",
13273
13431
  "minLength",
13274
13432
  "type",
@@ -13285,7 +13443,7 @@ var TextInputRenderer = {
13285
13443
  description,
13286
13444
  validation: validationState,
13287
13445
  help,
13288
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(VariableTextInput_default, { control, inputProps })
13446
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components36.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(VariableTextInput_default, { control, inputProps }) })
13289
13447
  }
13290
13448
  );
13291
13449
  }
@@ -13293,7 +13451,7 @@ var TextInputRenderer = {
13293
13451
  var TextInputRenderer_default = TextInputRenderer;
13294
13452
 
13295
13453
  // ../renderers/src/UploadInputRenderer.tsx
13296
- var import_components36 = require("@transferwise/components");
13454
+ var import_components37 = require("@transferwise/components");
13297
13455
  var import_jsx_runtime54 = require("react/jsx-runtime");
13298
13456
  var UploadInputRenderer = {
13299
13457
  canRenderType: "input-upload",
@@ -13318,7 +13476,7 @@ var UploadInputRenderer = {
13318
13476
  description: void 0,
13319
13477
  validation: validationState,
13320
13478
  children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
13321
- import_components36.UploadInput,
13479
+ import_components37.UploadInput,
13322
13480
  {
13323
13481
  id,
13324
13482
  description,
@@ -13383,7 +13541,7 @@ var LargeUploadRenderer = {
13383
13541
  validation: validationState,
13384
13542
  help,
13385
13543
  children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
13386
- import_components36.Upload,
13544
+ import_components37.Upload,
13387
13545
  __spreadProps(__spreadValues({}, uploadProps), {
13388
13546
  usAccept: getAcceptsString(accepts),
13389
13547
  usDisabled: disabled,
@@ -13398,16 +13556,16 @@ var LargeUploadRenderer = {
13398
13556
  };
13399
13557
 
13400
13558
  // ../renderers/src/ReviewRenderer.tsx
13401
- var import_components37 = require("@transferwise/components");
13559
+ var import_components38 = require("@transferwise/components");
13402
13560
  var import_jsx_runtime55 = require("react/jsx-runtime");
13403
13561
  var ReviewRenderer = {
13404
13562
  canRenderType: "review",
13405
13563
  render: ({ callToAction, control, fields, margin, title }) => {
13406
13564
  const orientation = mapControlToDefinitionListLayout(control);
13407
13565
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: getMargin(margin), children: [
13408
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.Header, { title: title != null ? title : "", action: getReviewAction2(callToAction) }),
13566
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components38.Header, { title: title != null ? title : "", action: getReviewAction2(callToAction) }),
13409
13567
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13410
- import_components37.DefinitionList,
13568
+ import_components38.DefinitionList,
13411
13569
  {
13412
13570
  layout: orientation,
13413
13571
  definitions: fields.map(({ label, value, help }, index) => ({
@@ -13505,7 +13663,7 @@ var external_confirmation_messages_default = (0, import_react_intl21.defineMessa
13505
13663
  });
13506
13664
 
13507
13665
  // ../renderers/src/step/ExternalConfirmationDialog.tsx
13508
- var import_components38 = require("@transferwise/components");
13666
+ var import_components39 = require("@transferwise/components");
13509
13667
  var import_jsx_runtime56 = require("react/jsx-runtime");
13510
13668
  function ExternalConfirmationDialog({
13511
13669
  external,
@@ -13514,10 +13672,10 @@ function ExternalConfirmationDialog({
13514
13672
  const { formatMessage } = (0, import_react_intl22.useIntl)();
13515
13673
  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: [
13516
13674
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h2", { className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.title) }),
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) }) }),
13675
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_components39.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(external.url) }) }),
13518
13676
  /* @__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: [
13519
13677
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13520
- import_components38.Button,
13678
+ import_components39.Button,
13521
13679
  {
13522
13680
  block: true,
13523
13681
  className: "m-b-2",
@@ -13530,7 +13688,7 @@ function ExternalConfirmationDialog({
13530
13688
  children: formatMessage(external_confirmation_messages_default.open)
13531
13689
  }
13532
13690
  ),
13533
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_components38.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onClose, children: formatMessage(external_confirmation_messages_default.cancel) })
13691
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_components39.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onClose, children: formatMessage(external_confirmation_messages_default.cancel) })
13534
13692
  ] }) })
13535
13693
  ] }) });
13536
13694
  }
@@ -13559,7 +13717,7 @@ function useExternal(url) {
13559
13717
  }
13560
13718
 
13561
13719
  // ../renderers/src/step/BackButton.tsx
13562
- var import_components39 = require("@transferwise/components");
13720
+ var import_components40 = require("@transferwise/components");
13563
13721
  var import_icons3 = require("@transferwise/icons");
13564
13722
  var import_jsx_runtime57 = require("react/jsx-runtime");
13565
13723
  function BackButton({ title, onClick }) {
@@ -13573,7 +13731,7 @@ function BackButton({ title, onClick }) {
13573
13731
  onClick,
13574
13732
  children: [
13575
13733
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "sr-only", children: title }),
13576
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components39.Avatar, { type: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons3.ArrowLeft, { size: "24" }) })
13734
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components40.Avatar, { type: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons3.ArrowLeft, { size: "24" }) })
13577
13735
  ]
13578
13736
  }
13579
13737
  ) });
@@ -13581,7 +13739,7 @@ function BackButton({ title, onClick }) {
13581
13739
  var BackButton_default = BackButton;
13582
13740
 
13583
13741
  // ../renderers/src/step/StepRenderer.tsx
13584
- var import_components40 = require("@transferwise/components");
13742
+ var import_components41 = require("@transferwise/components");
13585
13743
  var import_jsx_runtime58 = require("react/jsx-runtime");
13586
13744
  var StepRenderer = {
13587
13745
  canRenderType: "step",
@@ -13597,10 +13755,10 @@ function StepRendererComponent(props) {
13597
13755
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(StepRendererContextProvider, { value, children: [
13598
13756
  back ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BackButton_default, __spreadValues({}, back)) : null,
13599
13757
  title || description ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "m-b-4", children: [
13600
- title ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components40.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
13758
+ title ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components41.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
13601
13759
  description ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
13602
13760
  ] }) : void 0,
13603
- error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components40.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
13761
+ error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components41.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
13604
13762
  children
13605
13763
  ] });
13606
13764
  }
@@ -13853,10 +14011,10 @@ function convertDecisionStepToDynamicLayout(step) {
13853
14011
  }
13854
14012
  return layout;
13855
14013
  }
13856
- function dynamicBox(components, size) {
14014
+ function dynamicBox(components, size2) {
13857
14015
  return {
13858
14016
  type: "box",
13859
- width: size || "md",
14017
+ width: size2 || "md",
13860
14018
  components
13861
14019
  };
13862
14020
  }
@@ -15051,16 +15209,16 @@ var import_classnames15 = __toESM(require_classnames());
15051
15209
  var import_react53 = require("react");
15052
15210
 
15053
15211
  // src/legacy/layout/alert/DynamicAlert.tsx
15054
- var import_components42 = require("@transferwise/components");
15212
+ var import_components43 = require("@transferwise/components");
15055
15213
 
15056
15214
  // src/legacy/layout/utils/getNavigationOptionMedia.tsx
15057
- var import_components41 = require("@transferwise/components");
15215
+ var import_components42 = require("@transferwise/components");
15058
15216
 
15059
15217
  // src/legacy/layout/icon/FlagIcon.tsx
15060
15218
  var import_jsx_runtime67 = require("react/jsx-runtime");
15061
- var isFlagIcon2 = (name) => name.startsWith("flag-");
15219
+ var isFlagIcon3 = (name) => name.startsWith("flag-");
15062
15220
  function FlagIcon2({ name }) {
15063
- if (!isFlagIcon2(name)) {
15221
+ if (!isFlagIcon3(name)) {
15064
15222
  return null;
15065
15223
  }
15066
15224
  const code = name.substring(5);
@@ -15070,12 +15228,12 @@ function FlagIcon2({ name }) {
15070
15228
  // src/legacy/layout/icon/NamedIcon.tsx
15071
15229
  var icons2 = __toESM(require("@transferwise/icons"));
15072
15230
  var import_jsx_runtime68 = require("react/jsx-runtime");
15073
- var isNamedIcon2 = (name) => {
15231
+ var isNamedIcon3 = (name) => {
15074
15232
  const iconName = toCapitalisedCamelCase2(name);
15075
15233
  return Object.keys(icons2).includes(iconName);
15076
15234
  };
15077
15235
  function NamedIcon2({ name }) {
15078
- if (!isNamedIcon2(name)) {
15236
+ if (!isNamedIcon3(name)) {
15079
15237
  return null;
15080
15238
  }
15081
15239
  const iconName = toCapitalisedCamelCase2(name);
@@ -15088,16 +15246,16 @@ var capitaliseFirstChar2 = (value) => `${value[0].toUpperCase()}${value.slice(1)
15088
15246
  // src/legacy/layout/icon/DynamicIcon.tsx
15089
15247
  var import_jsx_runtime69 = require("react/jsx-runtime");
15090
15248
  function DynamicIcon2({ type }) {
15091
- if (isFlagIcon2(type)) {
15249
+ if (isFlagIcon3(type)) {
15092
15250
  return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FlagIcon2, { name: type });
15093
15251
  }
15094
- if (isNamedIcon2(type)) {
15252
+ if (isNamedIcon3(type)) {
15095
15253
  return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NamedIcon2, { name: type });
15096
15254
  }
15097
15255
  return null;
15098
15256
  }
15099
15257
  function isValidIconName(name) {
15100
- return isNamedIcon2(name) || isFlagIcon2(name);
15258
+ return isNamedIcon3(name) || isFlagIcon3(name);
15101
15259
  }
15102
15260
  var DynamicIcon_default2 = DynamicIcon2;
15103
15261
 
@@ -15105,10 +15263,10 @@ var DynamicIcon_default2 = DynamicIcon2;
15105
15263
  var import_jsx_runtime70 = require("react/jsx-runtime");
15106
15264
  var getNavigationOptionMedia = ({ icon, image }) => {
15107
15265
  if (icon == null ? void 0 : icon.name) {
15108
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components41.Avatar, { type: import_components41.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(DynamicIcon_default2, { type: icon.name }) });
15266
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components42.Avatar, { type: import_components42.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(DynamicIcon_default2, { type: icon.name }) });
15109
15267
  }
15110
15268
  if (icon == null ? void 0 : icon.text) {
15111
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components41.Avatar, { type: import_components41.AvatarType.INITIALS, children: icon.text });
15269
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components42.Avatar, { type: import_components42.AvatarType.INITIALS, children: icon.text });
15112
15270
  }
15113
15271
  if (image == null ? void 0 : image.url) {
15114
15272
  const { url, text } = image;
@@ -15118,8 +15276,8 @@ var getNavigationOptionMedia = ({ icon, image }) => {
15118
15276
  };
15119
15277
 
15120
15278
  // src/legacy/layout/utils/index.ts
15121
- var getMargin2 = (size) => {
15122
- switch (size) {
15279
+ var getMargin2 = (size2) => {
15280
+ switch (size2) {
15123
15281
  case "xs":
15124
15282
  return "m-b-0";
15125
15283
  case "sm":
@@ -15152,7 +15310,7 @@ var import_jsx_runtime71 = require("react/jsx-runtime");
15152
15310
  var DynamicAlert = ({ component: alert, onAction }) => {
15153
15311
  const { context, markdown, margin } = alert;
15154
15312
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
15155
- import_components42.Alert,
15313
+ import_components43.Alert,
15156
15314
  {
15157
15315
  type: mapContextToAlertType(legacy_mapContext(context)),
15158
15316
  className: getMargin2(margin),
@@ -15169,6 +15327,29 @@ var getAlertAction = (component, onAction) => {
15169
15327
  return void 0;
15170
15328
  }
15171
15329
  const { title, accessibilityDescription, behavior } = component.callToAction;
15330
+ if ("type" in behavior) {
15331
+ switch (behavior.type) {
15332
+ case "action": {
15333
+ const { action: action2 } = behavior;
15334
+ return {
15335
+ text: title,
15336
+ "aria-label": accessibilityDescription,
15337
+ onClick: onAction && action2 ? () => {
15338
+ onAction(action2);
15339
+ } : () => {
15340
+ }
15341
+ };
15342
+ }
15343
+ case "link": {
15344
+ return {
15345
+ text: title,
15346
+ "aria-label": accessibilityDescription,
15347
+ href: behavior.url,
15348
+ target: "_blank"
15349
+ };
15350
+ }
15351
+ }
15352
+ }
15172
15353
  const { action, link } = behavior;
15173
15354
  if (link) {
15174
15355
  return {
@@ -15264,7 +15445,7 @@ var getBoxWidthClasses = (component) => {
15264
15445
  var DynamicBox_default = DynamicBox;
15265
15446
 
15266
15447
  // src/legacy/layout/button/DynamicButton.tsx
15267
- var import_components43 = require("@transferwise/components");
15448
+ var import_components44 = require("@transferwise/components");
15268
15449
 
15269
15450
  // src/legacy/layout/button/utils.ts
15270
15451
  var priorities = {
@@ -15301,8 +15482,8 @@ var getButtonType = (context, action) => {
15301
15482
  var getButtonTypeFromContext = (context) => {
15302
15483
  return context ? contextToType[context] : "accent";
15303
15484
  };
15304
- var getButtonSize = (size) => {
15305
- switch (size) {
15485
+ var getButtonSize = (size2) => {
15486
+ switch (size2) {
15306
15487
  case "xs":
15307
15488
  case "sm":
15308
15489
  return "sm";
@@ -15336,7 +15517,7 @@ function DynamicButtonWithoutBehavior(props) {
15336
15517
  }
15337
15518
  };
15338
15519
  return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
15339
- import_components43.Button,
15520
+ import_components44.Button,
15340
15521
  {
15341
15522
  size: getButtonSize(component.size),
15342
15523
  type: priority === "tertiary" ? void 0 : type,
@@ -15351,7 +15532,7 @@ function DynamicButtonWithoutBehavior(props) {
15351
15532
  }
15352
15533
  function DynamicButtonWithBehavior(props) {
15353
15534
  var _a, _b;
15354
- const { component } = props;
15535
+ const { component, onAction } = props;
15355
15536
  const type = getButtonTypeFromContext(component.context);
15356
15537
  const priority = (_a = component.control) != null ? _a : "secondary";
15357
15538
  const { loading } = useDynamicFlow();
@@ -15360,15 +15541,35 @@ function DynamicButtonWithBehavior(props) {
15360
15541
  const title = (_b = component.title) != null ? _b : "";
15361
15542
  const onClick = () => {
15362
15543
  const { behavior } = component;
15363
- if (behavior == null ? void 0 : behavior.action) {
15364
- props.onAction(behavior.action);
15544
+ if (!behavior) {
15545
+ return;
15365
15546
  }
15366
- if (behavior == null ? void 0 : behavior.link) {
15367
- window.open(behavior.link.url, "_blank");
15547
+ if ("type" in behavior) {
15548
+ switch (behavior.type) {
15549
+ case "action": {
15550
+ if (behavior.action) {
15551
+ onAction(behavior.action);
15552
+ }
15553
+ break;
15554
+ }
15555
+ case "link": {
15556
+ if (behavior.url) {
15557
+ window.open(behavior.url, "_blank");
15558
+ }
15559
+ break;
15560
+ }
15561
+ }
15562
+ } else {
15563
+ if (behavior == null ? void 0 : behavior.action) {
15564
+ onAction(behavior.action);
15565
+ }
15566
+ if (behavior == null ? void 0 : behavior.link) {
15567
+ window.open(behavior.link.url, "_blank");
15568
+ }
15368
15569
  }
15369
15570
  };
15370
15571
  return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
15371
- import_components43.Button,
15572
+ import_components44.Button,
15372
15573
  {
15373
15574
  size: getButtonSize(component.size),
15374
15575
  type: priority === "tertiary" ? void 0 : type,
@@ -15436,15 +15637,15 @@ var getWidth = (bias) => {
15436
15637
  var DynamicColumns_default = DynamicColumns;
15437
15638
 
15438
15639
  // src/legacy/layout/decision/DynamicDecision.tsx
15439
- var import_components44 = require("@transferwise/components");
15640
+ var import_components45 = require("@transferwise/components");
15440
15641
  var import_jsx_runtime75 = require("react/jsx-runtime");
15441
15642
  function DynamicDecision({ component, onAction }) {
15442
15643
  const { loading } = useDynamicFlow();
15443
15644
  const { margin, options, title } = component;
15444
15645
  return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: getMargin2(margin), children: [
15445
- title && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components44.Header, { as: "h2", title }),
15446
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components44.NavigationOptionsList, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
15447
- import_components44.NavigationOption,
15646
+ title && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components45.Header, { as: "h2", title }),
15647
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components45.NavigationOptionsList, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
15648
+ import_components45.NavigationOption,
15448
15649
  {
15449
15650
  title: option.title,
15450
15651
  content: option.description,
@@ -15470,7 +15671,7 @@ var DynamicDivider = ({ component }) => {
15470
15671
  var DynamicDivider_default = DynamicDivider;
15471
15672
 
15472
15673
  // src/legacy/layout/external/DynamicExternal.tsx
15473
- var import_components45 = require("@transferwise/components");
15674
+ var import_components46 = require("@transferwise/components");
15474
15675
  var import_react32 = require("react");
15475
15676
  var import_react_intl24 = require("react-intl");
15476
15677
 
@@ -15503,9 +15704,9 @@ var DynamicExternal = ({ component, onAction }) => {
15503
15704
  }, [polling, responseHandlers]);
15504
15705
  useExternalStepPolling(pollingConfiguration, onAction);
15505
15706
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
15506
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components45.Loader, { size: import_components45.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }),
15707
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components46.Loader, { size: import_components46.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }),
15507
15708
  /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("br", {}),
15508
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components45.Button, { priority: "tertiary", block: true, onClick: openExternalUrl, children: retryTitle || intl.formatMessage(DynamicExternal_messages_default.retryTitle) })
15709
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components46.Button, { priority: "tertiary", block: true, onClick: openExternalUrl, children: retryTitle || intl.formatMessage(DynamicExternal_messages_default.retryTitle) })
15509
15710
  ] });
15510
15711
  };
15511
15712
  var DynamicExternal_default = DynamicExternal;
@@ -15514,7 +15715,7 @@ var DynamicExternal_default = DynamicExternal;
15514
15715
  var import_react46 = require("react");
15515
15716
 
15516
15717
  // src/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.tsx
15517
- var import_components46 = require("@transferwise/components");
15718
+ var import_components47 = require("@transferwise/components");
15518
15719
  var import_classnames6 = __toESM(require_classnames());
15519
15720
  var import_react33 = require("react");
15520
15721
  var import_jsx_runtime78 = require("react/jsx-runtime");
@@ -15535,7 +15736,7 @@ function AllOfSchema(props) {
15535
15736
  };
15536
15737
  const [models, setModels] = (0, import_react33.useState)(splitModel(props.model, props.schema.allOf));
15537
15738
  return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
15538
- props.schema.title && !hideTitle && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_components46.Header, { title: props.schema.title }),
15739
+ props.schema.title && !hideTitle && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_components47.Header, { title: props.schema.title }),
15539
15740
  props.schema.description && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { children: props.schema.description }),
15540
15741
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "row", children: props.schema.allOf.map((schema, index) => (
15541
15742
  // eslint-disable-next-line react/no-array-index-key
@@ -15560,12 +15761,12 @@ function AllOfSchema(props) {
15560
15761
  var AllOfSchema_default = AllOfSchema;
15561
15762
 
15562
15763
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.tsx
15563
- var import_components48 = require("@transferwise/components");
15764
+ var import_components49 = require("@transferwise/components");
15564
15765
  var import_classnames7 = __toESM(require_classnames());
15565
15766
  var import_react34 = require("react");
15566
15767
 
15567
15768
  // src/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.tsx
15568
- var import_components47 = require("@transferwise/components");
15769
+ var import_components48 = require("@transferwise/components");
15569
15770
  var import_formatting2 = require("@transferwise/formatting");
15570
15771
  var import_react_intl25 = require("react-intl");
15571
15772
  var import_jsx_runtime79 = require("react/jsx-runtime");
@@ -15578,9 +15779,9 @@ function ControlFeedback(props) {
15578
15779
  const isDescriptionVisible = props.schema.type !== "boolean" && props.schema.description && !isErrorVisible && !isValidationVisible;
15579
15780
  const hasInfoMessage = Boolean(props.infoMessage);
15580
15781
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { id: props.id, children: [
15581
- isErrorVisible ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components47.InlineAlert, { type: "error", children: errors }) : null,
15582
- isValidationVisible ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components47.InlineAlert, { type: "error", children: validations.map((validation) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: mergedValidationMessages[validation] }, validation)) }) : null,
15583
- (isDescriptionVisible || hasInfoMessage) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_components47.InlineAlert, { type: "info", children: [
15782
+ isErrorVisible ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components48.InlineAlert, { type: "error", children: errors }) : null,
15783
+ isValidationVisible ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components48.InlineAlert, { type: "error", children: validations.map((validation) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: mergedValidationMessages[validation] }, validation)) }) : null,
15784
+ (isDescriptionVisible || hasInfoMessage) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_components48.InlineAlert, { type: "info", children: [
15584
15785
  isDescriptionVisible && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: props.schema.description }),
15585
15786
  hasInfoMessage && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { children: props.infoMessage })
15586
15787
  ] })
@@ -15765,7 +15966,7 @@ function MultipleFileUploadSchema(props) {
15765
15966
  const feedbackId = `${uid}-feedback`;
15766
15967
  return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: (0, import_classnames7.default)("form-group", { "has-error": showError }), children: [
15767
15968
  /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { className: "d-block control-label", htmlFor: uid, children: props.schema.title }),
15768
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components48.UploadInput, __spreadValues({}, uploadInputProps)) }),
15969
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components49.UploadInput, __spreadValues({}, uploadInputProps)) }),
15769
15970
  /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
15770
15971
  ControlFeedback_default,
15771
15972
  {
@@ -15788,7 +15989,7 @@ function getSuccessfullyProcessedFiles(allFiles) {
15788
15989
  return allFiles.filter((file) => !file.error && file.status === "succeeded");
15789
15990
  }
15790
15991
  function convertFileIdsToComponentFileObjects(fileIds) {
15791
- return fileIds.map((id) => isValidId(id) ? { id, status: import_components48.Status.SUCCEEDED } : null).filter((item) => item !== null);
15992
+ return fileIds.map((id) => isValidId(id) ? { id, status: import_components49.Status.SUCCEEDED } : null).filter((item) => item !== null);
15792
15993
  }
15793
15994
  function isValidId(id) {
15794
15995
  return isNumber3(id) || isString2(id);
@@ -15799,13 +16000,13 @@ function getValidationMessages(schema, required, defaultErrorMessages) {
15799
16000
  }
15800
16001
 
15801
16002
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.tsx
15802
- var import_components50 = require("@transferwise/components");
16003
+ var import_components51 = require("@transferwise/components");
15803
16004
  var import_classnames8 = __toESM(require_classnames());
15804
16005
  var import_react35 = require("react");
15805
16006
  var import_react_intl29 = require("react-intl");
15806
16007
 
15807
16008
  // src/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.tsx
15808
- var import_components49 = require("@transferwise/components");
16009
+ var import_components50 = require("@transferwise/components");
15809
16010
  var import_jsx_runtime81 = require("react/jsx-runtime");
15810
16011
  var mapConstSchemaToOption = (schema, controlType) => {
15811
16012
  switch (controlType) {
@@ -15837,7 +16038,7 @@ var mapImage = (image) => {
15837
16038
  return null;
15838
16039
  };
15839
16040
  var getIconPropertyForSelectOption = (icon) => {
15840
- if ((icon == null ? void 0 : icon.name) && isFlagIcon2(icon.name)) {
16041
+ if ((icon == null ? void 0 : icon.name) && isFlagIcon3(icon.name)) {
15841
16042
  return {
15842
16043
  icon: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Flag, { code: icon.name.substring(5), intrinsicSize: 24 })
15843
16044
  };
@@ -15857,17 +16058,17 @@ var getIconPropertyForSelectOption = (icon) => {
15857
16058
  var getAvatarPropertyForRadioOption = ({ image, icon }) => {
15858
16059
  if (image == null ? void 0 : image.url) {
15859
16060
  return {
15860
- avatar: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components49.Avatar, { type: import_components49.AvatarType.THUMBNAIL, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("img", { src: image.url, alt: "" }) })
16061
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components50.Avatar, { type: import_components50.AvatarType.THUMBNAIL, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("img", { src: image.url, alt: "" }) })
15861
16062
  };
15862
16063
  }
15863
16064
  if ((icon == null ? void 0 : icon.name) && isValidIconName(icon.name)) {
15864
16065
  return {
15865
- avatar: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components49.Avatar, { type: import_components49.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DynamicIcon_default2, { type: icon.name }) })
16066
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components50.Avatar, { type: import_components50.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DynamicIcon_default2, { type: icon.name }) })
15866
16067
  };
15867
16068
  }
15868
16069
  if (icon == null ? void 0 : icon.text) {
15869
16070
  return {
15870
- avatar: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components49.Avatar, { type: import_components49.AvatarType.INITIALS, children: icon.text })
16071
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components50.Avatar, { type: import_components50.AvatarType.INITIALS, children: icon.text })
15871
16072
  };
15872
16073
  }
15873
16074
  return null;
@@ -15961,7 +16162,7 @@ function MultiSelectSchema({
15961
16162
  return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_classnames8.default)("d-flex flex-column", formGroupClasses), children: [
15962
16163
  schema.title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { htmlFor: id, children: schema.title }) : void 0,
15963
16164
  /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
15964
- import_components50.SelectInput,
16165
+ import_components51.SelectInput,
15965
16166
  {
15966
16167
  id,
15967
16168
  multiple: true,
@@ -15986,7 +16187,7 @@ function MultiSelectSchema({
15986
16187
  if (withinTrigger) {
15987
16188
  return selected && index === selected[0] ? getFormattedMessage() : void 0;
15988
16189
  }
15989
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_components50.SelectInputOptionContent, { title: label, note: note != null ? note : secondary, icon });
16190
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_components51.SelectInputOptionContent, { title: label, note: note != null ? note : secondary, icon });
15990
16191
  },
15991
16192
  onChange: broadcastModelChange
15992
16193
  }
@@ -16016,17 +16217,17 @@ var getInitialModelIndices2 = (model, options) => {
16016
16217
  };
16017
16218
 
16018
16219
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.tsx
16019
- var import_components52 = require("@transferwise/components");
16220
+ var import_components53 = require("@transferwise/components");
16020
16221
  var import_icons4 = require("@transferwise/icons");
16021
16222
  var import_react37 = require("react");
16022
16223
  var import_react_intl32 = require("react-intl");
16023
16224
 
16024
16225
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.tsx
16025
- var import_components51 = require("@transferwise/components");
16226
+ var import_components52 = require("@transferwise/components");
16026
16227
  var import_jsx_runtime83 = require("react/jsx-runtime");
16027
16228
  function ItemSummaryOption2({ item, onClick }) {
16028
16229
  return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
16029
- import_components51.NavigationOption,
16230
+ import_components52.NavigationOption,
16030
16231
  {
16031
16232
  media: getNavigationOptionMedia(item),
16032
16233
  title: item.title,
@@ -16397,7 +16598,7 @@ function RepeatableSchema({
16397
16598
  "has-error": (_a = errors && !isEmpty(errors)) != null ? _a : submitted && validations.length
16398
16599
  };
16399
16600
  return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { id, className: (0, import_classnames9.default)(formGroupClasses), children: [
16400
- schema.title && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_components52.Header, { title: schema.title }),
16601
+ schema.title && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_components53.Header, { title: schema.title }),
16401
16602
  itemSummaries == null ? void 0 : itemSummaries.map((itemSummary) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
16402
16603
  ItemSummaryOption2,
16403
16604
  {
@@ -16407,7 +16608,7 @@ function RepeatableSchema({
16407
16608
  JSON.stringify(itemSummary)
16408
16609
  )),
16409
16610
  /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
16410
- import_components52.NavigationOption,
16611
+ import_components53.NavigationOption,
16411
16612
  {
16412
16613
  media: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_icons4.Plus, {}),
16413
16614
  title: schema.addItemTitle || formatMessage(repeatable_messages_default2.addItemTitle),
@@ -16416,7 +16617,7 @@ function RepeatableSchema({
16416
16617
  }
16417
16618
  ),
16418
16619
  /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
16419
- import_components52.Modal,
16620
+ import_components53.Modal,
16420
16621
  {
16421
16622
  open: openModalType !== null,
16422
16623
  title: (openModalType === "add" ? schema.addItemTitle : schema.editItemTitle) || formatMessage(repeatable_messages_default2.addItemTitle),
@@ -16505,7 +16706,7 @@ var ArraySchema = (props) => {
16505
16706
  var ArraySchema_default = ArraySchema;
16506
16707
 
16507
16708
  // src/legacy/jsonSchemaForm/objectSchema/ObjectSchema.tsx
16508
- var import_components53 = require("@transferwise/components");
16709
+ var import_components54 = require("@transferwise/components");
16509
16710
  var import_classnames10 = __toESM(require_classnames());
16510
16711
  var import_react38 = require("react");
16511
16712
  var import_jsx_runtime88 = require("react/jsx-runtime");
@@ -16548,7 +16749,7 @@ function ObjectSchema(props) {
16548
16749
  return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
16549
16750
  props.schema.alert && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DynamicAlert_default, { component: props.schema.alert }),
16550
16751
  /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("fieldset", { children: [
16551
- props.schema.title && !hideTitle && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_components53.Header, { title: props.schema.title, as: "legend" }),
16752
+ props.schema.title && !hideTitle && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_components54.Header, { title: props.schema.title, as: "legend" }),
16552
16753
  props.schema.description && !hideTitle && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("p", { children: [
16553
16754
  " ",
16554
16755
  props.schema.description,
@@ -16582,12 +16783,12 @@ function ObjectSchema(props) {
16582
16783
  var ObjectSchema_default = ObjectSchema;
16583
16784
 
16584
16785
  // src/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.tsx
16585
- var import_components56 = require("@transferwise/components");
16786
+ var import_components57 = require("@transferwise/components");
16586
16787
  var import_classnames11 = __toESM(require_classnames());
16587
16788
  var import_react41 = require("react");
16588
16789
 
16589
16790
  // src/legacy/jsonSchemaForm/help/Help.tsx
16590
- var import_components54 = require("@transferwise/components");
16791
+ var import_components55 = require("@transferwise/components");
16591
16792
  var import_react_intl34 = require("react-intl");
16592
16793
 
16593
16794
  // src/common/messages/help.messages.ts
@@ -16605,10 +16806,10 @@ var import_jsx_runtime89 = require("react/jsx-runtime");
16605
16806
  function Help2(props) {
16606
16807
  const intl = (0, import_react_intl34.useIntl)();
16607
16808
  return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16608
- import_components54.Info,
16809
+ import_components55.Info,
16609
16810
  {
16610
16811
  className: "m-l-1",
16611
- content: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_components54.Markdown, { config: { link: { target: "_blank" } }, children: props.help.markdown }),
16812
+ content: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_components55.Markdown, { config: { link: { target: "_blank" } }, children: props.help.markdown }),
16612
16813
  presentation: "POPOVER",
16613
16814
  size: "sm",
16614
16815
  "aria-label": intl.formatMessage(help_messages_default2.helpAria)
@@ -16622,7 +16823,7 @@ var import_react40 = require("react");
16622
16823
  var import_react_intl35 = require("react-intl");
16623
16824
 
16624
16825
  // src/legacy/formControl/FormControl.tsx
16625
- var import_components55 = require("@transferwise/components");
16826
+ var import_components56 = require("@transferwise/components");
16626
16827
  var import_react39 = require("react");
16627
16828
 
16628
16829
  // src/legacy/formControl/utils/value-utils.ts
@@ -16882,7 +17083,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
16882
17083
  max,
16883
17084
  searchPlaceholder,
16884
17085
  onSearchChange,
16885
- size,
17086
+ size: size2,
16886
17087
  uploadProps,
16887
17088
  label,
16888
17089
  description,
@@ -16900,7 +17101,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
16900
17101
  switch (type) {
16901
17102
  case FormControlType.RADIO:
16902
17103
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16903
- import_components55.RadioGroup,
17104
+ import_components56.RadioGroup,
16904
17105
  {
16905
17106
  radios: options.map(this.mapOption),
16906
17107
  name,
@@ -16916,7 +17117,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
16916
17117
  );
16917
17118
  case FormControlType.CHECKBOX:
16918
17119
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16919
- import_components55.Checkbox,
17120
+ import_components56.Checkbox,
16920
17121
  {
16921
17122
  checked: getSafeBooleanValue(value, { coerceValue: true }),
16922
17123
  disabled,
@@ -16934,7 +17135,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
16934
17135
  const items = options;
16935
17136
  const selected = this.getSelectedOption(options);
16936
17137
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "d-flex flex-column", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16937
- import_components55.SelectInput,
17138
+ import_components56.SelectInput,
16938
17139
  {
16939
17140
  id,
16940
17141
  UNSAFE_triggerButtonProps: {
@@ -16950,7 +17151,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
16950
17151
  })),
16951
17152
  value: selected != null ? selected : null,
16952
17153
  renderValue: ({ hideIconInTrigger, icon, label: label2, note, secondary }, withinTrigger) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16953
- import_components55.SelectInputOptionContent,
17154
+ import_components56.SelectInputOptionContent,
16954
17155
  {
16955
17156
  title: label2,
16956
17157
  note: withinTrigger ? note != null ? note : secondary : note,
@@ -16979,7 +17180,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
16979
17180
  }
16980
17181
  case FormControlType.TAB:
16981
17182
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16982
- import_components55.Tabs,
17183
+ import_components56.Tabs,
16983
17184
  {
16984
17185
  selected: ((_a = this.getSelectedOption(options)) == null ? void 0 : _a.value) || 0,
16985
17186
  tabs: options.map((option) => ({
@@ -17064,13 +17265,13 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
17064
17265
  case FormControlType.DATE:
17065
17266
  case FormControlType.DATETIME:
17066
17267
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
17067
- import_components55.DateInput,
17268
+ import_components56.DateInput,
17068
17269
  {
17069
17270
  "aria-labelledby": labelledBy,
17070
17271
  dayAutoComplete: this.getAutocompleteValue({ suffix: "-day" }),
17071
17272
  yearAutoComplete: this.getAutocompleteValue({ suffix: "-year" }),
17072
17273
  disabled,
17073
- size,
17274
+ size: size2,
17074
17275
  value: getSafeDateOrStringValue(value),
17075
17276
  mode,
17076
17277
  monthFormat,
@@ -17081,7 +17282,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
17081
17282
  );
17082
17283
  case FormControlType.DATELOOKUP: {
17083
17284
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
17084
- import_components55.DateLookup,
17285
+ import_components56.DateLookup,
17085
17286
  {
17086
17287
  value: getSafeDateStringValue(value),
17087
17288
  min: minDate,
@@ -17099,14 +17300,14 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
17099
17300
  }
17100
17301
  case FormControlType.TEL:
17101
17302
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
17102
- import_components55.PhoneNumberInput,
17303
+ import_components56.PhoneNumberInput,
17103
17304
  {
17104
17305
  disabled,
17105
17306
  countryCode,
17106
17307
  placeholder,
17107
17308
  required,
17108
17309
  searchPlaceholder,
17109
- size,
17310
+ size: size2,
17110
17311
  initialValue: getSafeStringValue(value),
17111
17312
  onBlur: this.handleOnBlur,
17112
17313
  onChange: (value2) => this.handleOnChange(value2),
@@ -17131,7 +17332,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
17131
17332
  };
17132
17333
  if (this.props.displayPattern) {
17133
17334
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
17134
- import_components55.TextareaWithDisplayFormat,
17335
+ import_components56.TextareaWithDisplayFormat,
17135
17336
  __spreadProps(__spreadValues({
17136
17337
  displayPattern: this.props.displayPattern
17137
17338
  }, textareaProps), {
@@ -17150,7 +17351,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
17150
17351
  case FormControlType.FILE:
17151
17352
  case FormControlType.UPLOAD: {
17152
17353
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
17153
- import_components55.Upload,
17354
+ import_components56.Upload,
17154
17355
  __spreadProps(__spreadValues({}, uploadProps), {
17155
17356
  usAccept: uploadProps.usAccept || "*",
17156
17357
  usDisabled: uploadProps.usDisabled || disabled,
@@ -17187,7 +17388,7 @@ var _FormControl = class _FormControl extends import_react39.PureComponent {
17187
17388
  };
17188
17389
  if (this.props.displayPattern) {
17189
17390
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
17190
- import_components55.InputWithDisplayFormat,
17391
+ import_components56.InputWithDisplayFormat,
17191
17392
  __spreadProps(__spreadValues({
17192
17393
  displayPattern: this.props.displayPattern
17193
17394
  }, inputProps), {
@@ -17527,7 +17728,7 @@ function getTitleAndHelp(schema, forId, labelId) {
17527
17728
  schema.title,
17528
17729
  " ",
17529
17730
  helpElement
17530
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_components56.Header, { title: (_a = schema.title) != null ? _a : "" }) });
17731
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_components57.Header, { title: (_a = schema.title) != null ? _a : "" }) });
17531
17732
  return schema.title ? titleElement : helpElement;
17532
17733
  }
17533
17734
  function getValidations(props, schemaIndex) {
@@ -17565,7 +17766,7 @@ var import_react43 = require("react");
17565
17766
  var import_react_intl36 = require("react-intl");
17566
17767
 
17567
17768
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.tsx
17568
- var import_components57 = require("@transferwise/components");
17769
+ var import_components58 = require("@transferwise/components");
17569
17770
  var import_react42 = require("react");
17570
17771
  var import_jsx_runtime93 = require("react/jsx-runtime");
17571
17772
  function UploadInputAdapter(props) {
@@ -17583,7 +17784,7 @@ function UploadInputAdapter(props) {
17583
17784
  onCancel
17584
17785
  } = props;
17585
17786
  const onEvent = useEventDispatcher();
17586
- const files = (0, import_react42.useMemo)(() => fileId ? [{ id: fileId, status: import_components57.Status.SUCCEEDED }] : [], [fileId]);
17787
+ const files = (0, import_react42.useMemo)(() => fileId ? [{ id: fileId, status: import_components58.Status.SUCCEEDED }] : [], [fileId]);
17587
17788
  const uploadFile = (formData) => {
17588
17789
  onEvent("Dynamic Flow - PersistAsync", { status: "pending", schemaId: id });
17589
17790
  return httpClient(String(httpOptions.url), {
@@ -17603,7 +17804,7 @@ function UploadInputAdapter(props) {
17603
17804
  });
17604
17805
  };
17605
17806
  return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
17606
- import_components57.UploadInput,
17807
+ import_components58.UploadInput,
17607
17808
  {
17608
17809
  id,
17609
17810
  fileInputName: httpOptions.fileInputName,
@@ -17738,7 +17939,7 @@ var getSelectionFromModel = (schema, model) => {
17738
17939
  };
17739
17940
 
17740
17941
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.tsx
17741
- var import_components58 = require("@transferwise/components");
17942
+ var import_components59 = require("@transferwise/components");
17742
17943
  var import_jsx_runtime96 = require("react/jsx-runtime");
17743
17944
  var PromotedOneOfCheckboxControl = (props) => {
17744
17945
  const { id, selection, setSelection } = props;
@@ -17750,12 +17951,12 @@ var PromotedOneOfCheckboxControl = (props) => {
17750
17951
  const toggleSelection = () => {
17751
17952
  setSelection(checked ? selectionWhenUnchecked : selectionWhenChecked);
17752
17953
  };
17753
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "form-group", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_components58.Checkbox, { id, label: title, checked, onChange: toggleSelection }) });
17954
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "form-group", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_components59.Checkbox, { id, label: title, checked, onChange: toggleSelection }) });
17754
17955
  };
17755
17956
  var PromotedOneOfCheckboxControl_default = PromotedOneOfCheckboxControl;
17756
17957
 
17757
17958
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.tsx
17758
- var import_components59 = require("@transferwise/components");
17959
+ var import_components60 = require("@transferwise/components");
17759
17960
  var import_jsx_runtime97 = require("react/jsx-runtime");
17760
17961
  function PromotedOneOfRadioControl(props) {
17761
17962
  var _a, _b;
@@ -17776,7 +17977,7 @@ function PromotedOneOfRadioControl(props) {
17776
17977
  return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "form-group", children: [
17777
17978
  title && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("label", { className: "control-label", htmlFor: id, children: title }),
17778
17979
  /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
17779
- import_components59.RadioGroup,
17980
+ import_components60.RadioGroup,
17780
17981
  {
17781
17982
  name: "promoted-selection",
17782
17983
  selectedValue: selection,
@@ -17867,7 +18068,7 @@ function getOtherOneOf(schema) {
17867
18068
  var PromotedOneOfSchema_default = PromotedOneOfSchema;
17868
18069
 
17869
18070
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.tsx
17870
- var import_components60 = require("@transferwise/components");
18071
+ var import_components61 = require("@transferwise/components");
17871
18072
  var import_react_intl38 = require("react-intl");
17872
18073
 
17873
18074
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.ts
@@ -17891,7 +18092,7 @@ function ReadOnlySchema({ schema, model }) {
17891
18092
  const { title = "" } = schema;
17892
18093
  const { formatMessage } = (0, import_react_intl38.useIntl)();
17893
18094
  const value = getValueForSchema({ schema, model, formatMessage });
17894
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_components60.DefinitionList, { layout: import_components60.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
18095
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_components61.DefinitionList, { layout: import_components61.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
17895
18096
  }
17896
18097
  var ReadOnlySchema_default = ReadOnlySchema;
17897
18098
  function getValueForSchema({
@@ -18115,16 +18316,16 @@ function DynamicForm({
18115
18316
  var DynamicForm_default = DynamicForm;
18116
18317
 
18117
18318
  // src/legacy/layout/heading/DynamicHeading.tsx
18118
- var import_components61 = require("@transferwise/components");
18319
+ var import_components62 = require("@transferwise/components");
18119
18320
  var import_classnames13 = __toESM(require_classnames());
18120
18321
  var import_jsx_runtime104 = require("react/jsx-runtime");
18121
18322
  var DynamicHeading = (props) => {
18122
- const { text, size = "md", align = "left", margin = "md", control } = props.component;
18323
+ const { text, size: size2 = "md", align = "left", margin = "md", control } = props.component;
18123
18324
  const classes = (0, import_classnames13.default)(getTextAlignmentAndMargin2({ align, margin }));
18124
- return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(DisplayHeading2, { size, text, classes }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(StandardHeading2, { size, text, classes });
18325
+ return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(DisplayHeading2, { size: size2, text, classes }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(StandardHeading2, { size: size2, text, classes });
18125
18326
  };
18126
- var StandardHeading2 = ({ size, text, classes }) => {
18127
- switch (size) {
18327
+ var StandardHeading2 = ({ size: size2, text, classes }) => {
18328
+ switch (size2) {
18128
18329
  case "xs":
18129
18330
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h5", { className: classes, children: text });
18130
18331
  case "sm":
@@ -18138,38 +18339,38 @@ var StandardHeading2 = ({ size, text, classes }) => {
18138
18339
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h3", { className: classes, children: text });
18139
18340
  }
18140
18341
  };
18141
- var DisplayHeading2 = ({ size, text, classes }) => {
18142
- switch (size) {
18342
+ var DisplayHeading2 = ({ size: size2, text, classes }) => {
18343
+ switch (size2) {
18143
18344
  case "xs":
18144
18345
  case "sm":
18145
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_components61.Display, { type: "display-small", className: classes, children: text });
18346
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_components62.Display, { type: "display-small", className: classes, children: text });
18146
18347
  case "xl":
18147
18348
  case "lg":
18148
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_components61.Display, { type: "display-large", className: classes, children: text });
18349
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_components62.Display, { type: "display-large", className: classes, children: text });
18149
18350
  case "md":
18150
18351
  default:
18151
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_components61.Display, { type: "display-medium", className: classes, children: text });
18352
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_components62.Display, { type: "display-medium", className: classes, children: text });
18152
18353
  }
18153
18354
  };
18154
18355
  var DynamicHeading_default = DynamicHeading;
18155
18356
 
18156
18357
  // src/legacy/layout/markdown/DynamicMarkdown.tsx
18157
- var import_components62 = require("@transferwise/components");
18358
+ var import_components63 = require("@transferwise/components");
18158
18359
  var import_jsx_runtime105 = require("react/jsx-runtime");
18159
18360
  var DynamicMarkdown = ({ component }) => {
18160
18361
  const { content, align, margin } = component;
18161
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: getTextAlignmentAndMargin2({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_components62.Markdown, { config: { link: { target: "_blank" } }, children: content }) });
18362
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: getTextAlignmentAndMargin2({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_components63.Markdown, { config: { link: { target: "_blank" } }, children: content }) });
18162
18363
  };
18163
18364
  var DynamicInfo = ({ component }) => {
18164
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: getTextAlignmentAndMargin2(component), children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_components62.Markdown, { config: { link: { target: "_blank" } }, children: component.markdown }) });
18365
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: getTextAlignmentAndMargin2(component), children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_components63.Markdown, { config: { link: { target: "_blank" } }, children: component.markdown }) });
18165
18366
  };
18166
18367
 
18167
18368
  // src/legacy/layout/image/DynamicImage.tsx
18168
- var import_components63 = require("@transferwise/components");
18369
+ var import_components64 = require("@transferwise/components");
18169
18370
  var import_react48 = require("react");
18170
18371
  var import_jsx_runtime106 = require("react/jsx-runtime");
18171
18372
  function DynamicImage({ component: image }) {
18172
- const { url, size, text, margin, accessibilityDescription } = image;
18373
+ const { url, size: size2, text, margin, accessibilityDescription } = image;
18173
18374
  const httpClient = useHttpClient();
18174
18375
  const [imageSource, setImageSource] = (0, import_react48.useState)("");
18175
18376
  (0, import_react48.useEffect)(() => {
@@ -18184,7 +18385,7 @@ function DynamicImage({ component: image }) {
18184
18385
  if (!imageSource) {
18185
18386
  return null;
18186
18387
  }
18187
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: `df-image ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_components63.Image, __spreadValues({ className: `img-responsive ${getMargin2(margin || "md")}` }, imageProps)) });
18388
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: `df-image ${size2 || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_components64.Image, __spreadValues({ className: `img-responsive ${getMargin2(margin || "md")}` }, imageProps)) });
18188
18389
  }
18189
18390
  var readImageBlobAsDataURL2 = (imageBlob) => (
18190
18391
  // we can safely assume the type of reader.result is string
@@ -18220,7 +18421,7 @@ var getImageSource2 = async (httpClient, imageUrl) => {
18220
18421
  var DynamicImage_default = DynamicImage;
18221
18422
 
18222
18423
  // src/legacy/layout/instructions/DynamicInstructions.tsx
18223
- var import_components64 = require("@transferwise/components");
18424
+ var import_components65 = require("@transferwise/components");
18224
18425
  var import_jsx_runtime107 = require("react/jsx-runtime");
18225
18426
  var doContext2 = ["positive", "neutral"];
18226
18427
  var dontContext2 = ["warning", "negative"];
@@ -18229,8 +18430,8 @@ var DynamicInstructions = ({ component }) => {
18229
18430
  const dos = items.filter((item) => doContext2.includes(item.context)).map(({ text }) => text);
18230
18431
  const donts = items.filter((item) => dontContext2.includes(item.context)).map(({ text }) => text);
18231
18432
  return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: getMargin2(component.margin || "md"), children: [
18232
- component.title ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_components64.Header, { title: component.title }) : null,
18233
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_components64.InstructionsList, { dos, donts })
18433
+ component.title ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_components65.Header, { title: component.title }) : null,
18434
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_components65.InstructionsList, { dos, donts })
18234
18435
  ] });
18235
18436
  };
18236
18437
  var DynamicInstructions_default = DynamicInstructions;
@@ -18340,11 +18541,11 @@ function DynamicLayout(props) {
18340
18541
  var DynamicLayout_default = DynamicLayout;
18341
18542
 
18342
18543
  // src/legacy/layout/list/DynamicStatusList.tsx
18343
- var import_components65 = require("@transferwise/components");
18544
+ var import_components66 = require("@transferwise/components");
18344
18545
  var import_jsx_runtime109 = require("react/jsx-runtime");
18345
18546
  var DynamicStatusList = ({ component, onAction }) => {
18346
18547
  return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: getMargin2(component.margin || "md"), children: [
18347
- component.title ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components65.Header, { title: component.title }) : null,
18548
+ component.title ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components66.Header, { title: component.title }) : null,
18348
18549
  component.items.map((item) => mapListItemToSummary(item, onAction))
18349
18550
  ] });
18350
18551
  };
@@ -18355,13 +18556,35 @@ var mapListItemToSummary = (props, onAction) => {
18355
18556
  description,
18356
18557
  action: "callToAction" in props ? callToActionToSummaryAction(props == null ? void 0 : props.callToAction, onAction) : void 0
18357
18558
  }, (icon == null ? void 0 : icon.name) ? { icon: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(DynamicIcon_default2, { type: icon.name }) } : {}), status ? { status: statusMap[status] } : {});
18358
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components65.Summary, __spreadValues({}, summaryProps), `${title}/${description || ""}`);
18559
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components66.Summary, __spreadValues({}, summaryProps), `${title}/${description || ""}`);
18359
18560
  };
18360
18561
  var callToActionToSummaryAction = (callToAction, onAction) => {
18361
18562
  if (!callToAction) {
18362
18563
  return void 0;
18363
18564
  }
18364
18565
  const { accessibilityDescription, behavior, title } = callToAction;
18566
+ if ("type" in behavior) {
18567
+ switch (behavior.type) {
18568
+ case "action": {
18569
+ const { action } = behavior;
18570
+ return {
18571
+ text: title,
18572
+ "aria-label": accessibilityDescription,
18573
+ onClick: () => {
18574
+ onAction(action);
18575
+ }
18576
+ };
18577
+ }
18578
+ case "link": {
18579
+ return {
18580
+ text: title,
18581
+ "aria-label": accessibilityDescription,
18582
+ href: behavior.url,
18583
+ target: "_blank"
18584
+ };
18585
+ }
18586
+ }
18587
+ }
18365
18588
  if (behavior.link) {
18366
18589
  const { link } = behavior;
18367
18590
  return {
@@ -18402,14 +18625,14 @@ var statusMap = __spreadValues(__spreadValues({}, statusListMap), legacyStatusMa
18402
18625
  var DynamicStatusList_default = DynamicStatusList;
18403
18626
 
18404
18627
  // src/legacy/layout/loadingIndicator/DynamicLoadingIndicator.tsx
18405
- var import_components66 = require("@transferwise/components");
18628
+ var import_components67 = require("@transferwise/components");
18406
18629
  var import_jsx_runtime110 = require("react/jsx-runtime");
18407
18630
  var DynamicLoadingIndicator = ({ component }) => {
18408
- const { margin = "md", size = "md" } = component;
18631
+ const { margin = "md", size: size2 = "md" } = component;
18409
18632
  return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
18410
- import_components66.Loader,
18633
+ import_components67.Loader,
18411
18634
  {
18412
- size,
18635
+ size: size2,
18413
18636
  classNames: {
18414
18637
  "tw-loader": `tw-loader m-x-auto ${getMargin2(margin)}`
18415
18638
  },
@@ -18420,7 +18643,7 @@ var DynamicLoadingIndicator = ({ component }) => {
18420
18643
  var DynamicLoadingIndicator_default = DynamicLoadingIndicator;
18421
18644
 
18422
18645
  // src/legacy/layout/paragraph/DynamicParagraph.tsx
18423
- var import_components68 = require("@transferwise/components");
18646
+ var import_components69 = require("@transferwise/components");
18424
18647
  var import_react_intl40 = require("react-intl");
18425
18648
 
18426
18649
  // src/common/messages/paragraph.messages.ts
@@ -18439,10 +18662,10 @@ var paragraph_messages_default2 = (0, import_react_intl39.defineMessages)({
18439
18662
  });
18440
18663
 
18441
18664
  // src/legacy/layout/paragraph/useSnackBarIfAvailable.ts
18442
- var import_components67 = require("@transferwise/components");
18665
+ var import_components68 = require("@transferwise/components");
18443
18666
  var import_react49 = require("react");
18444
18667
  function useSnackBarIfAvailable2() {
18445
- const context = (0, import_react49.useContext)(import_components67.SnackbarContext);
18668
+ const context = (0, import_react49.useContext)(import_components68.SnackbarContext);
18446
18669
  return context ? context.createSnackbar : noop3;
18447
18670
  }
18448
18671
  function noop3() {
@@ -18479,7 +18702,7 @@ function CopyableDynamicParagraph({ component }) {
18479
18702
  style: { textOverflow: "ellipsis" }
18480
18703
  }
18481
18704
  ),
18482
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_components68.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default2.copy) })
18705
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_components69.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default2.copy) })
18483
18706
  ] });
18484
18707
  }
18485
18708
  function noop4() {
@@ -18487,7 +18710,7 @@ function noop4() {
18487
18710
  var DynamicParagraph_default = DynamicParagraph;
18488
18711
 
18489
18712
  // src/legacy/layout/review/DynamicReview.tsx
18490
- var import_components69 = require("@transferwise/components");
18713
+ var import_components70 = require("@transferwise/components");
18491
18714
  var import_jsx_runtime112 = require("react/jsx-runtime");
18492
18715
  var getDefinitions = (orientation, review) => review.fields.map(({ label, value, help }, index) => ({
18493
18716
  key: String(index),
@@ -18524,13 +18747,29 @@ var getDefinitionListLayout = (review) => {
18524
18747
  return "VERTICAL_ONE_COLUMN";
18525
18748
  }
18526
18749
  };
18527
- function DynamicReview(props) {
18528
- var _a;
18529
- const review = props.component;
18750
+ function DynamicReview({ component: review, onAction }) {
18751
+ var _a, _b;
18530
18752
  const margin = getMargin2(review.margin || "xs");
18531
18753
  const getReviewAction3 = (callToAction2) => {
18532
18754
  const { title, action, behavior } = callToAction2;
18533
18755
  if (behavior) {
18756
+ if ("type" in behavior) {
18757
+ switch (behavior.type) {
18758
+ case "action": {
18759
+ const { action: behaviorAction2 } = behavior;
18760
+ return {
18761
+ text: title != null ? title : "",
18762
+ onClick: behaviorAction2 ? getOnClick(behaviorAction2) : void 0
18763
+ };
18764
+ }
18765
+ case "link": {
18766
+ return {
18767
+ text: title != null ? title : "",
18768
+ href: behavior.url
18769
+ };
18770
+ }
18771
+ }
18772
+ }
18534
18773
  const { action: behaviorAction, link } = behavior;
18535
18774
  if (behaviorAction) {
18536
18775
  return {
@@ -18554,7 +18793,7 @@ function DynamicReview(props) {
18554
18793
  return (event) => {
18555
18794
  event.preventDefault();
18556
18795
  if (action) {
18557
- props.onAction(action);
18796
+ onAction(action);
18558
18797
  }
18559
18798
  };
18560
18799
  };
@@ -18562,8 +18801,8 @@ function DynamicReview(props) {
18562
18801
  const callToAction = review.callToAction ? getReviewAction3(review.callToAction) : null;
18563
18802
  const legacyCallToAction = !callToAction && review.action ? { text: (_a = review.action.title) != null ? _a : "", onClick: getOnClick(review.action) } : null;
18564
18803
  return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: margin, children: [
18565
- review.title && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_components69.Header, { title: review.title, action: callToAction || legacyCallToAction || void 0 }),
18566
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_components69.DefinitionList, { layout: orientation, definitions: getDefinitions(orientation, review) }) })
18804
+ review.title && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_components70.Header, { title: review.title, action: (_b = callToAction != null ? callToAction : legacyCallToAction) != null ? _b : void 0 }),
18805
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_components70.DefinitionList, { layout: orientation, definitions: getDefinitions(orientation, review) }) })
18567
18806
  ] });
18568
18807
  }
18569
18808
  var DynamicReview_default = DynamicReview;
@@ -18573,13 +18812,13 @@ var import_react51 = require("react");
18573
18812
  var import_icons5 = require("@transferwise/icons");
18574
18813
 
18575
18814
  // src/legacy/layout/search/SearchInput.tsx
18576
- var import_components70 = require("@transferwise/components");
18815
+ var import_components71 = require("@transferwise/components");
18577
18816
  var import_jsx_runtime113 = require("react/jsx-runtime");
18578
18817
  var SearchInput = ({ title, value, onFocus, onChange }) => {
18579
18818
  return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("label", { className: "control-label d-inline", children: [
18580
18819
  title,
18581
18820
  /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
18582
- import_components70.Input,
18821
+ import_components71.Input,
18583
18822
  {
18584
18823
  type: "text",
18585
18824
  value,
@@ -18592,15 +18831,15 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
18592
18831
  };
18593
18832
 
18594
18833
  // src/legacy/layout/search/SearchResults.tsx
18595
- var import_components71 = require("@transferwise/components");
18834
+ var import_components72 = require("@transferwise/components");
18596
18835
  var import_react_intl41 = require("react-intl");
18597
18836
  var import_jsx_runtime114 = require("react/jsx-runtime");
18598
18837
  function SearchResults2({ results, emptyMessage, onSelect }) {
18599
18838
  if (results.length === 0) {
18600
18839
  return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "m-t-2", children: emptyMessage });
18601
18840
  }
18602
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_components71.NavigationOptionsList, { children: results.map((result) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
18603
- import_components71.NavigationOption,
18841
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_components72.NavigationOptionsList, { children: results.map((result) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
18842
+ import_components72.NavigationOption,
18604
18843
  {
18605
18844
  title: result.title,
18606
18845
  content: result.description,
@@ -18701,7 +18940,7 @@ var addQueryParameter2 = (url, key, value) => {
18701
18940
  };
18702
18941
 
18703
18942
  // src/legacy/layout/search/DynamicSearch.tsx
18704
- var import_components72 = require("@transferwise/components");
18943
+ var import_components73 = require("@transferwise/components");
18705
18944
  var import_classnames14 = __toESM(require_classnames());
18706
18945
  var import_react_intl43 = require("react-intl");
18707
18946
 
@@ -18757,7 +18996,7 @@ function DynamicSearch({ component, onAction }) {
18757
18996
  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: [
18758
18997
  title,
18759
18998
  /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "m-t-1", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
18760
- import_components72.Typeahead,
18999
+ import_components73.Typeahead,
18761
19000
  {
18762
19001
  id: "typeahead-input-id",
18763
19002
  intl,
@@ -18815,7 +19054,7 @@ function TypeaheadFooter2({
18815
19054
  onRetrySearch
18816
19055
  }) {
18817
19056
  if (state === "success" && results.length === 0) {
18818
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_components72.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: emptyMessage });
19057
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_components73.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: emptyMessage });
18819
19058
  }
18820
19059
  if (state === "error" && results.length === 0) {
18821
19060
  return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ErrorResult2, { onRetrySearch }) });
@@ -18828,7 +19067,7 @@ function TypeaheadFooter2({
18828
19067
  var DynamicSearch_default = DynamicSearch;
18829
19068
 
18830
19069
  // src/legacy/layout/modal/DynamicModal.tsx
18831
- var import_components73 = require("@transferwise/components");
19070
+ var import_components74 = require("@transferwise/components");
18832
19071
  var import_react52 = require("react");
18833
19072
  var import_jsx_runtime116 = require("react/jsx-runtime");
18834
19073
  function DynamicModal(props) {
@@ -18836,9 +19075,9 @@ function DynamicModal(props) {
18836
19075
  const { component, onAction } = props;
18837
19076
  const { margin = "md" } = component;
18838
19077
  return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: getTextAlignmentAndMargin2({ margin }), children: [
18839
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_components73.Button, { priority: "tertiary", block: true, onClick: () => isVisible(true), children: component.trigger.title }),
19078
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_components74.Button, { priority: "tertiary", block: true, onClick: () => isVisible(true), children: component.trigger.title }),
18840
19079
  /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
18841
- import_components73.Modal,
19080
+ import_components74.Modal,
18842
19081
  {
18843
19082
  scroll: "content",
18844
19083
  open: visible,
@@ -19389,7 +19628,7 @@ var CameraCapture_messages_default = (0, import_react_intl46.defineMessages)({
19389
19628
  });
19390
19629
 
19391
19630
  // src/common/cameraCapture/components/bottomBar/BottomBar.tsx
19392
- var import_components74 = require("@transferwise/components");
19631
+ var import_components75 = require("@transferwise/components");
19393
19632
  var import_react_intl47 = require("react-intl");
19394
19633
  var import_jsx_runtime120 = require("react/jsx-runtime");
19395
19634
  var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "bottom-bar", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(CaptureButton, { onClick: onCapture }) });
@@ -19400,24 +19639,24 @@ var ReviewBottomBar = ({
19400
19639
  const intl = (0, import_react_intl47.useIntl)();
19401
19640
  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: [
19402
19641
  /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
19403
- import_components74.Button,
19642
+ import_components75.Button,
19404
19643
  {
19405
19644
  className: "m-b-1",
19406
19645
  block: true,
19407
- size: import_components74.Size.MEDIUM,
19408
- type: import_components74.ControlType.ACCENT,
19646
+ size: import_components75.Size.MEDIUM,
19647
+ type: import_components75.ControlType.ACCENT,
19409
19648
  onClick: onSubmit,
19410
19649
  children: intl.formatMessage(CameraCapture_messages_default.reviewSubmit)
19411
19650
  }
19412
19651
  ),
19413
19652
  /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
19414
- import_components74.Button,
19653
+ import_components75.Button,
19415
19654
  {
19416
19655
  className: "m-b-2",
19417
19656
  block: true,
19418
- size: import_components74.Size.MEDIUM,
19419
- type: import_components74.ControlType.ACCENT,
19420
- priority: import_components74.Priority.SECONDARY,
19657
+ size: import_components75.Size.MEDIUM,
19658
+ type: import_components75.ControlType.ACCENT,
19659
+ priority: import_components75.Priority.SECONDARY,
19421
19660
  onClick: onRetry,
19422
19661
  children: intl.formatMessage(CameraCapture_messages_default.reviewRetry)
19423
19662
  }
@@ -19702,13 +19941,13 @@ function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstru
19702
19941
  var Overlay_default = Overlay;
19703
19942
 
19704
19943
  // src/common/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.tsx
19705
- var import_components75 = require("@transferwise/components");
19944
+ var import_components76 = require("@transferwise/components");
19706
19945
  var import_jsx_runtime123 = require("react/jsx-runtime");
19707
19946
  function CameraErrorScreen({ title, description, actionButton, onAction }) {
19708
19947
  return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "container p-t-5", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "row", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [
19709
19948
  /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("h2", { className: "text-xs-center m-b-3", children: title }),
19710
19949
  /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("p", { className: "text-xs-center m-b-5", children: description }),
19711
- onAction && actionButton && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_components75.Button, { block: true, onClick: onAction, children: actionButton })
19950
+ onAction && actionButton && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_components76.Button, { block: true, onClick: onAction, children: actionButton })
19712
19951
  ] }) }) });
19713
19952
  }
19714
19953
  var CameraErrorScreen_default = CameraErrorScreen;
@@ -20062,7 +20301,7 @@ function getOrigin2(url) {
20062
20301
  }
20063
20302
 
20064
20303
  // src/legacy/dynamicFlow/BackButton.tsx
20065
- var import_components77 = require("@transferwise/components");
20304
+ var import_components78 = require("@transferwise/components");
20066
20305
  var import_icons6 = require("@transferwise/icons");
20067
20306
  var import_jsx_runtime127 = require("react/jsx-runtime");
20068
20307
  function BackButton2({ title, action, onAction }) {
@@ -20078,7 +20317,7 @@ function BackButton2({ title, action, onAction }) {
20078
20317
  },
20079
20318
  children: [
20080
20319
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "sr-only", children: title }),
20081
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_components77.Avatar, { type: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_icons6.ArrowLeft, { size: "24" }) })
20320
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_components78.Avatar, { type: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_icons6.ArrowLeft, { size: "24" }) })
20082
20321
  ]
20083
20322
  }
20084
20323
  ) });
@@ -20255,19 +20494,19 @@ var getSchemaReference = (component) => {
20255
20494
  var isInlineSchema = (schema) => schema !== void 0 && typeof schema === "object" && !Object.hasOwnProperty.call(schema, "$ref");
20256
20495
 
20257
20496
  // src/legacy/dynamicFlow/utils/useLoader.tsx
20258
- var import_components78 = require("@transferwise/components");
20497
+ var import_components79 = require("@transferwise/components");
20259
20498
  var import_react66 = require("react");
20260
20499
  var import_jsx_runtime129 = require("react/jsx-runtime");
20261
20500
  function useLoader(loaderConfig, initialState) {
20262
20501
  const config = __spreadValues({
20263
- size: import_components78.Size.EXTRA_LARGE,
20502
+ size: import_components79.Size.EXTRA_LARGE,
20264
20503
  initial: true,
20265
20504
  submission: false
20266
20505
  }, loaderConfig);
20267
20506
  const [loadingState, setLoadingState] = (0, import_react66.useState)(initialState);
20268
20507
  const shouldDisplayLoader = config.initial && loadingState === "initial" || config.submission && loadingState === "submission";
20269
20508
  const loader = shouldDisplayLoader ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
20270
- import_components78.Loader,
20509
+ import_components79.Loader,
20271
20510
  {
20272
20511
  size: config.size,
20273
20512
  classNames: { "tw-loader": "tw-loader m-x-auto" },