@wise/dynamic-flow-client-internal 3.27.6 → 3.27.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.js CHANGED
@@ -144,13 +144,13 @@ var init_clsx = __esm({
144
144
  });
145
145
 
146
146
  // ../../node_modules/.pnpm/@wise+art@2.17.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.16_react-dom@18.3.1_reac_4hsljgguo7de2wpoipdhgf4kzi/node_modules/@wise/art/dist/index-213daaa3.esm.js
147
- var import_react3, import_jsx_runtime12, unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
147
+ var import_react2, import_jsx_runtime11, unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
148
148
  var init_index_213daaa3_esm = __esm({
149
149
  "../../node_modules/.pnpm/@wise+art@2.17.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.16_react-dom@18.3.1_reac_4hsljgguo7de2wpoipdhgf4kzi/node_modules/@wise/art/dist/index-213daaa3.esm.js"() {
150
150
  "use strict";
151
151
  init_clsx();
152
- import_react3 = require("react");
153
- import_jsx_runtime12 = require("react/jsx-runtime");
152
+ import_react2 = require("react");
153
+ import_jsx_runtime11 = require("react/jsx-runtime");
154
154
  unknownFlagName = "wise";
155
155
  Flag = ({
156
156
  code,
@@ -158,13 +158,13 @@ var init_index_213daaa3_esm = __esm({
158
158
  className = void 0,
159
159
  loading = "lazy"
160
160
  }) => {
161
- const [fallback, setFallback] = (0, import_react3.useState)(null);
162
- (0, import_react3.useEffect)(() => {
161
+ const [fallback, setFallback] = (0, import_react2.useState)(null);
162
+ (0, import_react2.useEffect)(() => {
163
163
  setFallback(null);
164
164
  }, [code]);
165
165
  const detailed = intrinsicSize >= 150;
166
166
  const name = fallback !== "unknown" ? `${code.toLowerCase()}${fallback == null && detailed ? "-detailed" : ""}` : unknownFlagName;
167
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("img", {
167
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("img", {
168
168
  className: clsx(`wds-flag wds-flag-${name}`, className),
169
169
  src: false ? `${name}.svg` : `https://wise.com/web-art/assets/flags/${name}.svg`,
170
170
  loading,
@@ -880,20 +880,26 @@ var translations = languages.reduce(
880
880
  var i18n_default = translations;
881
881
 
882
882
  // src/dynamicFlow/DynamicFlow.tsx
883
- var import_react16 = require("react");
883
+ var import_react14 = require("react");
884
884
  var import_react_intl16 = require("react-intl");
885
885
  var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
886
886
 
887
- // ../renderers/src/contexts/RendererHttpClientContext.tsx
887
+ // ../renderers/src/contexts/RendererContext.tsx
888
888
  var import_react = require("react");
889
- var import_jsx_runtime = require("react/jsx-runtime");
890
- var HttpClientContext = (0, import_react.createContext)(void 0);
891
- function RendererHttpClientProvider({ httpClient, children }) {
892
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HttpClientContext.Provider, { value: httpClient, children });
893
- }
889
+ var RendererContext = (0, import_react.createContext)({ loadingState: "idle", httpClient: fetch, trackEvent: () => {
890
+ } });
891
+ var RendererContextProvider = RendererContext.Provider;
892
+ var useLoadingContext = () => {
893
+ const { loadingState } = (0, import_react.useContext)(RendererContext);
894
+ return { loadingState, isLoading: loadingState !== "idle" };
895
+ };
896
+ var useTrackEvent = () => {
897
+ const { trackEvent } = (0, import_react.useContext)(RendererContext);
898
+ return trackEvent;
899
+ };
894
900
  var useRendererHttpClient = () => {
895
- const contextFetch = (0, import_react.useContext)(HttpClientContext);
896
- return contextFetch != null ? contextFetch : fetch;
901
+ const { httpClient } = (0, import_react.useContext)(RendererContext);
902
+ return httpClient;
897
903
  };
898
904
 
899
905
  // ../renderers/src/AlertRenderer.tsx
@@ -930,10 +936,10 @@ var getTextAlignment = (align) => {
930
936
  var getTextAlignmentAndMargin = (component) => `${getTextAlignment(component.align)} ${getMargin(component.margin)}`;
931
937
 
932
938
  // ../renderers/src/AlertRenderer.tsx
933
- var import_jsx_runtime2 = require("react/jsx-runtime");
939
+ var import_jsx_runtime = require("react/jsx-runtime");
934
940
  var AlertRenderer = {
935
941
  canRenderType: "alert",
936
- render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
942
+ render: ({ context, markdown, margin, callToAction }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
937
943
  import_components.Alert,
938
944
  {
939
945
  type: context,
@@ -987,14 +993,14 @@ var help_messages_default = (0, import_react_intl.defineMessages)({
987
993
  });
988
994
 
989
995
  // ../renderers/src/components/Help.tsx
990
- var import_jsx_runtime3 = require("react/jsx-runtime");
996
+ var import_jsx_runtime2 = require("react/jsx-runtime");
991
997
  function Help({ help }) {
992
998
  const intl = (0, import_react_intl2.useIntl)();
993
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
999
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
994
1000
  import_components2.Info,
995
1001
  {
996
1002
  className: "m-l-1",
997
- content: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_components2.Markdown, { config: { link: { target: "_blank" } }, children: help }),
1003
+ content: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_components2.Markdown, { config: { link: { target: "_blank" } }, children: help }),
998
1004
  presentation: "POPOVER",
999
1005
  size: "sm",
1000
1006
  "aria-label": intl.formatMessage(help_messages_default.helpAria)
@@ -1004,19 +1010,19 @@ function Help({ help }) {
1004
1010
  var Help_default = Help;
1005
1011
 
1006
1012
  // ../renderers/src/components/LabelContentWithHelp.tsx
1007
- var import_jsx_runtime4 = require("react/jsx-runtime");
1013
+ var import_jsx_runtime3 = require("react/jsx-runtime");
1008
1014
  function LabelContentWithHelp({ text, help }) {
1009
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
1015
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
1010
1016
  text,
1011
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Help_default, { help })
1017
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Help_default, { help })
1012
1018
  ] });
1013
1019
  }
1014
1020
 
1015
1021
  // ../renderers/src/components/FieldInput.tsx
1016
- var import_jsx_runtime5 = require("react/jsx-runtime");
1022
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1017
1023
  function FieldInput({ id, children, label, validation, description, help }) {
1018
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LabelContentWithHelp, { text: label, help }) : label;
1019
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1024
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LabelContentWithHelp, { text: label, help }) : label;
1025
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1020
1026
  import_components3.Field,
1021
1027
  {
1022
1028
  id,
@@ -1041,7 +1047,7 @@ var FieldInput_default = FieldInput;
1041
1047
 
1042
1048
  // ../renderers/src/BooleanInputRenderer.tsx
1043
1049
  var import_components4 = require("@transferwise/components");
1044
- var import_jsx_runtime6 = require("react/jsx-runtime");
1050
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1045
1051
  var BooleanInputRenderer = {
1046
1052
  canRenderType: "input-boolean",
1047
1053
  render: (props) => {
@@ -1065,20 +1071,20 @@ var BooleanInputRenderer = {
1065
1071
  "value"
1066
1072
  ]);
1067
1073
  const checkboxProps = __spreadProps(__spreadValues({}, rest), { label, secondary: description, checked: value });
1068
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_components4.Checkbox, __spreadValues({ id }, checkboxProps)) });
1074
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_components4.Checkbox, __spreadValues({ id }, checkboxProps)) });
1069
1075
  }
1070
1076
  };
1071
1077
  var BooleanInputRenderer_default = BooleanInputRenderer;
1072
1078
 
1073
1079
  // ../renderers/src/BoxRenderer.tsx
1074
1080
  var import_classnames = __toESM(require_classnames());
1075
- var import_jsx_runtime7 = require("react/jsx-runtime");
1081
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1076
1082
  var BoxRenderer = {
1077
1083
  canRenderType: "box",
1078
1084
  render: ({ border, children, control, margin, width }) => {
1079
1085
  const hasFixedWidth = width !== "xl";
1080
1086
  const hasBorder = control === "bordered" || control === "bordered-web" || border;
1081
- const contents = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1087
+ const contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1082
1088
  "div",
1083
1089
  {
1084
1090
  className: (0, import_classnames.default)({
@@ -1089,30 +1095,14 @@ var BoxRenderer = {
1089
1095
  children
1090
1096
  }
1091
1097
  );
1092
- return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
1098
+ return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
1093
1099
  }
1094
1100
  };
1095
1101
  var BoxRenderer_default = BoxRenderer;
1096
1102
 
1097
1103
  // ../renderers/src/ButtonRenderer.tsx
1098
1104
  var import_components5 = require("@transferwise/components");
1099
-
1100
- // ../renderers/src/step/StepRendererContext.tsx
1101
- var import_react2 = require("react");
1102
- var StepRendererContext = (0, import_react2.createContext)({ loadingState: "idle", trackEvent: () => {
1103
- } });
1104
- var StepRendererContextProvider = StepRendererContext.Provider;
1105
- var useLoadingContext = () => {
1106
- const { loadingState } = (0, import_react2.useContext)(StepRendererContext);
1107
- return { loadingState, isLoading: loadingState !== "idle" };
1108
- };
1109
- var useTrackEvent = () => {
1110
- const { trackEvent } = (0, import_react2.useContext)(StepRendererContext);
1111
- return trackEvent;
1112
- };
1113
-
1114
- // ../renderers/src/ButtonRenderer.tsx
1115
- var import_jsx_runtime8 = require("react/jsx-runtime");
1105
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1116
1106
  var ButtonRenderer = {
1117
1107
  canRenderType: "button",
1118
1108
  render: ButtonRendererComponent
@@ -1130,7 +1120,7 @@ function ButtonRendererComponent({
1130
1120
  const priority = mapControl(control);
1131
1121
  const type = priority === "tertiary" ? void 0 : mapContext(context);
1132
1122
  const { isLoading } = useLoadingContext();
1133
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1123
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1134
1124
  import_components5.Button,
1135
1125
  {
1136
1126
  block: true,
@@ -1158,8 +1148,6 @@ var mapControl = (control) => {
1158
1148
  case "primary":
1159
1149
  case "tertiary":
1160
1150
  return control;
1161
- case "minimal":
1162
- return "tertiary";
1163
1151
  default:
1164
1152
  return "secondary";
1165
1153
  }
@@ -1184,10 +1172,10 @@ var ButtonRenderer_default = ButtonRenderer;
1184
1172
 
1185
1173
  // ../renderers/src/ColumnsRenderer.tsx
1186
1174
  var import_classnames2 = __toESM(require_classnames());
1187
- var import_jsx_runtime9 = require("react/jsx-runtime");
1175
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1188
1176
  var ColumnsRenderer = {
1189
1177
  canRenderType: "columns",
1190
- render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1178
+ render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1191
1179
  "div",
1192
1180
  {
1193
1181
  className: (0, import_classnames2.default)("df-columns-renderer-container", getMargin(margin), {
@@ -1195,8 +1183,8 @@ var ColumnsRenderer = {
1195
1183
  "df-columns-renderer-bias-end": bias === "end"
1196
1184
  }),
1197
1185
  children: [
1198
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "df-columns-renderer-column", children: startChildren }),
1199
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "df-columns-renderer-column", children: endChildren })
1186
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "df-columns-renderer-column", children: startChildren }),
1187
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "df-columns-renderer-column", children: endChildren })
1200
1188
  ]
1201
1189
  }
1202
1190
  )
@@ -1235,7 +1223,7 @@ var dateToDateString = (date) => {
1235
1223
  };
1236
1224
 
1237
1225
  // ../renderers/src/components/VariableDateInput.tsx
1238
- var import_jsx_runtime10 = require("react/jsx-runtime");
1226
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1239
1227
  function VariableDateInput({
1240
1228
  control,
1241
1229
  inputProps
@@ -1251,7 +1239,7 @@ function VariableDateInput({
1251
1239
  onFocus
1252
1240
  } = inputProps;
1253
1241
  if (control === "date-lookup") {
1254
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1242
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1255
1243
  import_components6.DateLookup,
1256
1244
  {
1257
1245
  value: dateStringToDateOrNull(inputProps.value),
@@ -1267,7 +1255,7 @@ function VariableDateInput({
1267
1255
  }
1268
1256
  );
1269
1257
  }
1270
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1258
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1271
1259
  import_components6.DateInput,
1272
1260
  __spreadProps(__spreadValues({}, inputProps), {
1273
1261
  dayAutoComplete: getAutocompleteString(autoComplete, "day"),
@@ -1284,7 +1272,7 @@ var getAutocompleteString = (value, suffix) => {
1284
1272
  var VariableDateInput_default = VariableDateInput;
1285
1273
 
1286
1274
  // ../renderers/src/DateInputRenderer.tsx
1287
- var import_jsx_runtime11 = require("react/jsx-runtime");
1275
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1288
1276
  var DateInputRenderer = {
1289
1277
  canRenderType: "input-date",
1290
1278
  render: (props) => {
@@ -1309,7 +1297,7 @@ var DateInputRenderer = {
1309
1297
  ]);
1310
1298
  const value = initialValue != null ? initialValue : "";
1311
1299
  const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
1312
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1300
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1313
1301
  FieldInput_default,
1314
1302
  {
1315
1303
  id,
@@ -1317,7 +1305,7 @@ var DateInputRenderer = {
1317
1305
  description,
1318
1306
  validation: validationState,
1319
1307
  help,
1320
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(VariableDateInput_default, { control, inputProps })
1308
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(VariableDateInput_default, { control, inputProps })
1321
1309
  }
1322
1310
  );
1323
1311
  }
@@ -1330,23 +1318,23 @@ var import_components8 = require("@transferwise/components");
1330
1318
  // ../../node_modules/.pnpm/@wise+art@2.17.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.16_react-dom@18.3.1_reac_4hsljgguo7de2wpoipdhgf4kzi/node_modules/@wise/art/dist/index.esm.js
1331
1319
  init_index_213daaa3_esm();
1332
1320
  init_clsx();
1333
- var import_react4 = require("react");
1334
- var import_jsx_runtime13 = require("react/jsx-runtime");
1321
+ var import_react3 = require("react");
1322
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1335
1323
 
1336
1324
  // ../renderers/src/components/icon/FlagIcon.tsx
1337
- var import_jsx_runtime14 = require("react/jsx-runtime");
1325
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1338
1326
  var isFlagIcon = (name) => name.startsWith("flag-");
1339
1327
  function FlagIcon({ name }) {
1340
1328
  if (!isFlagIcon(name)) {
1341
1329
  return null;
1342
1330
  }
1343
1331
  const code = name.substring(5);
1344
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Flag, { code });
1332
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Flag, { code });
1345
1333
  }
1346
1334
 
1347
1335
  // ../renderers/src/components/icon/NamedIcon.tsx
1348
1336
  var icons = __toESM(require("@transferwise/icons"));
1349
- var import_jsx_runtime15 = require("react/jsx-runtime");
1337
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1350
1338
  var isNamedIcon = (name) => {
1351
1339
  const iconName = toCapitalisedCamelCase(name);
1352
1340
  return Object.keys(icons).includes(iconName);
@@ -1357,19 +1345,19 @@ function NamedIcon({ name }) {
1357
1345
  }
1358
1346
  const iconName = toCapitalisedCamelCase(name);
1359
1347
  const Icon = icons[iconName];
1360
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { size: 24 });
1348
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { size: 24 });
1361
1349
  }
1362
1350
  var toCapitalisedCamelCase = (value) => value.split("-").map(capitaliseFirstChar).join("");
1363
1351
  var capitaliseFirstChar = (value) => `${value[0].toUpperCase()}${value.slice(1)}`;
1364
1352
 
1365
1353
  // ../renderers/src/components/icon/DynamicIcon.tsx
1366
- var import_jsx_runtime16 = require("react/jsx-runtime");
1354
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1367
1355
  function DynamicIcon({ name }) {
1368
1356
  if (isFlagIcon(name)) {
1369
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FlagIcon, { name });
1357
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FlagIcon, { name });
1370
1358
  }
1371
1359
  if (isNamedIcon(name)) {
1372
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(NamedIcon, { name });
1360
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(NamedIcon, { name });
1373
1361
  }
1374
1362
  return null;
1375
1363
  }
@@ -1377,25 +1365,25 @@ var DynamicIcon_default = DynamicIcon;
1377
1365
 
1378
1366
  // ../renderers/src/components/icon/NavigationOptionMedia.tsx
1379
1367
  var import_components7 = require("@transferwise/components");
1380
- var import_jsx_runtime17 = require("react/jsx-runtime");
1368
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1381
1369
  function NavigationOptionMedia({ icon, image }) {
1382
1370
  if (!isNullish(icon)) {
1383
1371
  if ("name" in icon) {
1384
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components7.Avatar, { type: import_components7.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DynamicIcon_default, { name: icon.name }) });
1372
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components7.Avatar, { type: import_components7.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DynamicIcon_default, { name: icon.name }) });
1385
1373
  }
1386
1374
  if (icon.text) {
1387
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components7.Avatar, { type: import_components7.AvatarType.INITIALS, children: icon.text });
1375
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_components7.Avatar, { type: import_components7.AvatarType.INITIALS, children: icon.text });
1388
1376
  }
1389
1377
  }
1390
1378
  if (image == null ? void 0 : image.url) {
1391
1379
  const { url, accessibilityDescription } = image;
1392
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("img", { src: url, alt: accessibilityDescription });
1380
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("img", { src: url, alt: accessibilityDescription });
1393
1381
  }
1394
1382
  return null;
1395
1383
  }
1396
1384
 
1397
1385
  // ../renderers/src/DecisionRenderer.tsx
1398
- var import_jsx_runtime18 = require("react/jsx-runtime");
1386
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1399
1387
  var DecisionRenderer = {
1400
1388
  canRenderType: "decision",
1401
1389
  render: DecisionRendererComponent
@@ -1403,15 +1391,15 @@ var DecisionRenderer = {
1403
1391
  var DecisionRenderer_default = DecisionRenderer;
1404
1392
  function DecisionRendererComponent({ margin, options, title }) {
1405
1393
  const { isLoading } = useLoadingContext();
1406
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: getMargin(margin), children: [
1407
- title && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components8.Header, { as: "h2", title }),
1408
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_components8.NavigationOptionsList, { children: options.map(({ description, disabled, icon, image, title: title2, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1394
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: getMargin(margin), children: [
1395
+ title && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components8.Header, { as: "h2", title }),
1396
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components8.NavigationOptionsList, { children: options.map(({ description, disabled, icon, image, title: title2, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1409
1397
  import_components8.NavigationOption,
1410
1398
  {
1411
1399
  title: title2,
1412
1400
  content: description,
1413
1401
  disabled: isLoading || disabled,
1414
- media: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(NavigationOptionMedia, { icon, image }),
1402
+ media: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(NavigationOptionMedia, { icon, image }),
1415
1403
  showMediaCircle: false,
1416
1404
  showMediaAtAllSizes: true,
1417
1405
  onClick
@@ -1422,36 +1410,36 @@ function DecisionRendererComponent({ margin, options, title }) {
1422
1410
  }
1423
1411
 
1424
1412
  // ../renderers/src/DividerRenderer.tsx
1425
- var import_jsx_runtime19 = require("react/jsx-runtime");
1413
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1426
1414
  var DividerRenderer = {
1427
1415
  canRenderType: "divider",
1428
- render: ({ margin }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("hr", { className: `m-t-0 ${getMargin(margin)}` })
1416
+ render: ({ margin }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("hr", { className: `m-t-0 ${getMargin(margin)}` })
1429
1417
  };
1430
1418
  var DividerRenderer_default = DividerRenderer;
1431
1419
 
1432
1420
  // ../renderers/src/FormRenderer.tsx
1433
- var import_jsx_runtime20 = require("react/jsx-runtime");
1421
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1434
1422
  var FormRenderer = {
1435
1423
  canRenderType: "form",
1436
- render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getMargin(margin), children })
1424
+ render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getMargin(margin), children })
1437
1425
  };
1438
1426
  var FormRenderer_default = FormRenderer;
1439
1427
 
1440
1428
  // ../renderers/src/FormSectionRenderer.tsx
1441
1429
  var import_components9 = require("@transferwise/components");
1442
- var import_jsx_runtime21 = require("react/jsx-runtime");
1430
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1443
1431
  var FormSectionRenderer = {
1444
1432
  canRenderType: "form-section",
1445
- render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("fieldset", { children: [
1433
+ render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("fieldset", { children: [
1446
1434
  title && // TODO - once section headers support help, we could show help in here
1447
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1435
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1448
1436
  import_components9.Header,
1449
1437
  {
1450
1438
  as: "h2",
1451
1439
  title
1452
1440
  }
1453
1441
  ),
1454
- description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { children: description }),
1442
+ description && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: description }),
1455
1443
  children
1456
1444
  ] })
1457
1445
  };
@@ -1459,32 +1447,32 @@ var FormSectionRenderer_default = FormSectionRenderer;
1459
1447
 
1460
1448
  // ../renderers/src/HeadingRenderer.tsx
1461
1449
  var import_components10 = require("@transferwise/components");
1462
- var import_jsx_runtime22 = require("react/jsx-runtime");
1450
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1463
1451
  var HeadingRenderer = {
1464
1452
  canRenderType: "heading",
1465
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Heading, __spreadValues({}, props))
1453
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Heading, __spreadValues({}, props))
1466
1454
  };
1467
1455
  function Heading(props) {
1468
1456
  const { text, size: size2, align, margin, control } = props;
1469
1457
  const className = getTextAlignmentAndMargin({ align, margin });
1470
- return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DisplayHeading, { size: size2, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StandardHeading, { size: size2, text, className });
1458
+ return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DisplayHeading, { size: size2, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StandardHeading, { size: size2, text, className });
1471
1459
  }
1472
1460
  function DisplayHeading({ size: size2, text, className }) {
1473
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components10.Display, { type: getDisplayType(size2), className, children: text });
1461
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components10.Display, { type: getDisplayType(size2), className, children: text });
1474
1462
  }
1475
1463
  function StandardHeading({ size: size2, text, className }) {
1476
1464
  switch (size2) {
1477
1465
  case "xs":
1478
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h5", { className, children: text });
1466
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h5", { className, children: text });
1479
1467
  case "sm":
1480
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h4", { className, children: text });
1468
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h4", { className, children: text });
1481
1469
  case "lg":
1482
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className, children: text });
1470
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h2", { className, children: text });
1483
1471
  case "xl":
1484
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h1", { className, children: text });
1472
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h1", { className, children: text });
1485
1473
  case "md":
1486
1474
  default:
1487
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h3", { className, children: text });
1475
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h3", { className, children: text });
1488
1476
  }
1489
1477
  }
1490
1478
  var getDisplayType = (size2) => {
@@ -1504,7 +1492,7 @@ var HeadingRenderer_default = HeadingRenderer;
1504
1492
 
1505
1493
  // ../renderers/src/ImageRenderer.tsx
1506
1494
  var import_components11 = require("@transferwise/components");
1507
- var import_react5 = require("react");
1495
+ var import_react4 = require("react");
1508
1496
 
1509
1497
  // ../renderers/src/utils/api-utils.ts
1510
1498
  function isRelativePath(url = "") {
@@ -1514,10 +1502,10 @@ function isRelativePath(url = "") {
1514
1502
  }
1515
1503
 
1516
1504
  // ../renderers/src/ImageRenderer.tsx
1517
- var import_jsx_runtime23 = require("react/jsx-runtime");
1505
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1518
1506
  var ImageRenderer = {
1519
1507
  canRenderType: "image",
1520
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ImageRendererComponent, __spreadValues({}, props))
1508
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ImageRendererComponent, __spreadValues({}, props))
1521
1509
  };
1522
1510
  var ImageRenderer_default = ImageRenderer;
1523
1511
  function ImageRendererComponent({
@@ -1526,12 +1514,12 @@ function ImageRendererComponent({
1526
1514
  size: size2,
1527
1515
  url
1528
1516
  }) {
1529
- const [imageSource, setImageSource] = (0, import_react5.useState)("");
1517
+ const [imageSource, setImageSource] = (0, import_react4.useState)("");
1530
1518
  const httpClient = useRendererHttpClient();
1531
- (0, import_react5.useEffect)(() => {
1519
+ (0, import_react4.useEffect)(() => {
1532
1520
  void getImageSource(httpClient, url).then(setImageSource);
1533
1521
  }, [url, httpClient]);
1534
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: `df-image ${size2 || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1522
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: `df-image ${size2 || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1535
1523
  import_components11.Image,
1536
1524
  {
1537
1525
  className: `img-responsive ${getMargin(margin)}`,
@@ -1576,7 +1564,7 @@ var getImageSource = async (httpClient, imageUrl) => {
1576
1564
 
1577
1565
  // ../renderers/src/InstructionsRenderer.tsx
1578
1566
  var import_components12 = require("@transferwise/components");
1579
- var import_jsx_runtime24 = require("react/jsx-runtime");
1567
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1580
1568
  var doContext = ["positive", "neutral"];
1581
1569
  var dontContext = ["warning", "negative"];
1582
1570
  var InstructionsRenderer = {
@@ -1584,9 +1572,9 @@ var InstructionsRenderer = {
1584
1572
  render: ({ items, margin, title }) => {
1585
1573
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
1586
1574
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
1587
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: getMargin(margin), children: [
1588
- title ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components12.Header, { title }) : null,
1589
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components12.InstructionsList, { dos, donts })
1575
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getMargin(margin), children: [
1576
+ title ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.Header, { title }) : null,
1577
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.InstructionsList, { dos, donts })
1590
1578
  ] });
1591
1579
  }
1592
1580
  };
@@ -1604,11 +1592,11 @@ var onWheel = (event) => {
1604
1592
 
1605
1593
  // ../renderers/src/utils/getIconAvatar.tsx
1606
1594
  var import_components13 = require("@transferwise/components");
1607
- var import_jsx_runtime25 = require("react/jsx-runtime");
1595
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1608
1596
  var size = 24;
1609
1597
  function getIconAvatar({ icon, image }) {
1610
1598
  if (image == null ? void 0 : image.url) {
1611
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1599
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1612
1600
  "img",
1613
1601
  {
1614
1602
  src: image.url,
@@ -1619,13 +1607,13 @@ function getIconAvatar({ icon, image }) {
1619
1607
  );
1620
1608
  }
1621
1609
  if (isFlagIcon2(icon)) {
1622
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components13.Avatar, { type: import_components13.AvatarType.ICON, size, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DynamicIcon_default, { name: icon.name }) });
1610
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Avatar, { type: import_components13.AvatarType.ICON, size, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DynamicIcon_default, { name: icon.name }) });
1623
1611
  }
1624
1612
  if (isNamedIcon2(icon)) {
1625
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DynamicIcon_default, { name: icon.name });
1613
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DynamicIcon_default, { name: icon.name });
1626
1614
  }
1627
1615
  if (icon && "text" in icon) {
1628
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components13.Avatar, { type: import_components13.AvatarType.ICON, size, children: icon.text });
1616
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Avatar, { type: import_components13.AvatarType.ICON, size, children: icon.text });
1629
1617
  }
1630
1618
  return null;
1631
1619
  }
@@ -1639,7 +1627,7 @@ var getInputGroupAddonStart = ({ icon, image }) => {
1639
1627
  };
1640
1628
 
1641
1629
  // ../renderers/src/IntegerInputRenderer.tsx
1642
- var import_jsx_runtime26 = require("react/jsx-runtime");
1630
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1643
1631
  var IntegerInputRenderer = {
1644
1632
  canRenderType: "input-integer",
1645
1633
  render: (props) => {
@@ -1666,7 +1654,7 @@ var IntegerInputRenderer = {
1666
1654
  "value",
1667
1655
  "onChange"
1668
1656
  ]);
1669
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1657
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1670
1658
  FieldInput_default,
1671
1659
  {
1672
1660
  id,
@@ -1674,7 +1662,7 @@ var IntegerInputRenderer = {
1674
1662
  description,
1675
1663
  validation: validationState,
1676
1664
  help,
1677
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_components14.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1665
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components14.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1678
1666
  import_components14.Input,
1679
1667
  __spreadValues({
1680
1668
  id,
@@ -1698,10 +1686,10 @@ var IntegerInputRenderer_default = IntegerInputRenderer;
1698
1686
 
1699
1687
  // ../renderers/src/LoadingIndicatorRenderer.tsx
1700
1688
  var import_components15 = require("@transferwise/components");
1701
- var import_jsx_runtime27 = require("react/jsx-runtime");
1689
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1702
1690
  var LoadingIndicatorRenderer = {
1703
1691
  canRenderType: "loading-indicator",
1704
- render: ({ margin, size: size2 }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1692
+ render: ({ margin, size: size2 }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1705
1693
  import_components15.Loader,
1706
1694
  {
1707
1695
  size: size2,
@@ -1714,28 +1702,28 @@ var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
1714
1702
 
1715
1703
  // ../renderers/src/MarkdownRenderer.tsx
1716
1704
  var import_components16 = require("@transferwise/components");
1717
- var import_jsx_runtime28 = require("react/jsx-runtime");
1705
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1718
1706
  var MarkdownRenderer = {
1719
1707
  canRenderType: "markdown",
1720
- render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components16.Markdown, { config: { link: { target: "_blank" } }, children: content }) })
1708
+ render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components16.Markdown, { config: { link: { target: "_blank" } }, children: content }) })
1721
1709
  };
1722
1710
  var MarkdownRenderer_default = MarkdownRenderer;
1723
1711
 
1724
1712
  // ../renderers/src/ModalRenderer.tsx
1725
1713
  var import_components17 = require("@transferwise/components");
1726
- var import_react6 = require("react");
1727
- var import_jsx_runtime29 = require("react/jsx-runtime");
1714
+ var import_react5 = require("react");
1715
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1728
1716
  var ModalRenderer = {
1729
1717
  canRenderType: "modal",
1730
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DFModal, __spreadValues({}, props))
1718
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DFModal, __spreadValues({}, props))
1731
1719
  };
1732
1720
  var ModalRenderer_default = ModalRenderer;
1733
1721
  function DFModal({ content, margin, trigger }) {
1734
- const [visible, setVisible] = (0, import_react6.useState)(false);
1722
+ const [visible, setVisible] = (0, import_react5.useState)(false);
1735
1723
  const { components, title } = content;
1736
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: getMargin(margin), children: [
1737
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components17.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1738
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1724
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: getMargin(margin), children: [
1725
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components17.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1726
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1739
1727
  import_components17.Modal,
1740
1728
  {
1741
1729
  scroll: "content",
@@ -1754,16 +1742,16 @@ var import_components19 = require("@transferwise/components");
1754
1742
 
1755
1743
  // ../renderers/src/SelectInputRenderer/OptionMedia.tsx
1756
1744
  var import_components18 = require("@transferwise/components");
1757
- var import_jsx_runtime30 = require("react/jsx-runtime");
1745
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1758
1746
  function OptionMedia({ icon, image }) {
1759
1747
  if (image == null ? void 0 : image.url) {
1760
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("img", { src: image.url, alt: image.accessibilityDescription || "", width: "64px" });
1748
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("img", { src: image.url, alt: image.accessibilityDescription || "", width: "64px" });
1761
1749
  }
1762
1750
  if (icon && "name" in icon) {
1763
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components18.Avatar, { type: import_components18.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DynamicIcon_default, { name: icon.name }) });
1751
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components18.Avatar, { type: import_components18.AvatarType.ICON, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DynamicIcon_default, { name: icon.name }) });
1764
1752
  }
1765
1753
  if (icon && "text" in icon) {
1766
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components18.Avatar, { type: import_components18.AvatarType.INITIALS, children: icon.text });
1754
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components18.Avatar, { type: import_components18.AvatarType.INITIALS, children: icon.text });
1767
1755
  }
1768
1756
  return null;
1769
1757
  }
@@ -1782,15 +1770,15 @@ var multi_select_messages_default = (0, import_react_intl3.defineMessages)({
1782
1770
  });
1783
1771
 
1784
1772
  // ../renderers/src/MultiSelectInputRenderer.tsx
1785
- var import_react7 = require("react");
1786
- var import_jsx_runtime31 = require("react/jsx-runtime");
1773
+ var import_react6 = require("react");
1774
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1787
1775
  var MultiSelectInputRenderer = {
1788
1776
  canRenderType: "input-multi-select",
1789
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
1777
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
1790
1778
  };
1791
1779
  function MultiSelectInputRendererComponent(props) {
1792
1780
  const { formatMessage } = (0, import_react_intl4.useIntl)();
1793
- const [stagedIndices, setStagedIndices] = (0, import_react7.useState)();
1781
+ const [stagedIndices, setStagedIndices] = (0, import_react6.useState)();
1794
1782
  const {
1795
1783
  id,
1796
1784
  autoComplete,
@@ -1828,12 +1816,12 @@ function MultiSelectInputRendererComponent(props) {
1828
1816
  const contentProps = {
1829
1817
  title: option.title,
1830
1818
  description: option.description,
1831
- icon: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(OptionMedia, { icon: option.icon, image: option.image })
1819
+ icon: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(OptionMedia, { icon: option.icon, image: option.image })
1832
1820
  };
1833
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components19.SelectInputOptionContent, __spreadValues({}, contentProps));
1821
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components19.SelectInputOptionContent, __spreadValues({}, contentProps));
1834
1822
  };
1835
1823
  const extraProps = { autoComplete };
1836
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1824
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1837
1825
  FieldInput_default,
1838
1826
  {
1839
1827
  id,
@@ -1841,7 +1829,7 @@ function MultiSelectInputRendererComponent(props) {
1841
1829
  help,
1842
1830
  description,
1843
1831
  validation: validationState,
1844
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1832
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1845
1833
  import_components19.SelectInput,
1846
1834
  __spreadValues({
1847
1835
  id,
@@ -1885,7 +1873,7 @@ var import_components21 = require("@transferwise/components");
1885
1873
  // ../renderers/src/components/UploadFieldInput.tsx
1886
1874
  var import_components20 = require("@transferwise/components");
1887
1875
  var import_classnames3 = __toESM(require_classnames());
1888
- var import_jsx_runtime32 = require("react/jsx-runtime");
1876
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1889
1877
  function UploadFieldInput({
1890
1878
  id,
1891
1879
  children,
@@ -1894,18 +1882,18 @@ function UploadFieldInput({
1894
1882
  help,
1895
1883
  validation
1896
1884
  }) {
1897
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(LabelContentWithHelp, { text: label, help }) : label;
1885
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(LabelContentWithHelp, { text: label, help }) : label;
1898
1886
  const descriptionId = description ? `${id}-description` : void 0;
1899
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1887
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1900
1888
  "div",
1901
1889
  {
1902
1890
  className: (0, import_classnames3.default)("form-group d-block", {
1903
1891
  "has-error": (validation == null ? void 0 : validation.status) === "invalid"
1904
1892
  }),
1905
1893
  children: [
1906
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
1894
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
1907
1895
  children,
1908
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_components20.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
1896
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components20.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
1909
1897
  ]
1910
1898
  }
1911
1899
  );
@@ -1937,7 +1925,7 @@ var getFileType = (base64Url) => {
1937
1925
  var getRandomId = () => Math.random().toString(36).substring(2);
1938
1926
 
1939
1927
  // ../renderers/src/MultiUploadInputRenderer.tsx
1940
- var import_jsx_runtime33 = require("react/jsx-runtime");
1928
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1941
1929
  var MultiUploadInputRenderer = {
1942
1930
  canRenderType: "input-upload-multi",
1943
1931
  render: (props) => {
@@ -1964,7 +1952,7 @@ var MultiUploadInputRenderer = {
1964
1952
  };
1965
1953
  const onDeleteFile = async (fileId) => onDelete(String(fileId));
1966
1954
  const descriptionId = description ? `${id}-description` : void 0;
1967
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1955
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1968
1956
  UploadFieldInput_default,
1969
1957
  {
1970
1958
  id,
@@ -1972,7 +1960,7 @@ var MultiUploadInputRenderer = {
1972
1960
  description,
1973
1961
  validation: validationState,
1974
1962
  help,
1975
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1963
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1976
1964
  import_components21.UploadInput,
1977
1965
  {
1978
1966
  id,
@@ -1996,7 +1984,7 @@ var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
1996
1984
 
1997
1985
  // ../renderers/src/NumberInputRenderer.tsx
1998
1986
  var import_components22 = require("@transferwise/components");
1999
- var import_jsx_runtime34 = require("react/jsx-runtime");
1987
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2000
1988
  var NumberInputRenderer = {
2001
1989
  canRenderType: "input-number",
2002
1990
  render: (props) => {
@@ -2023,7 +2011,7 @@ var NumberInputRenderer = {
2023
2011
  "value",
2024
2012
  "onChange"
2025
2013
  ]);
2026
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2014
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2027
2015
  FieldInput_default,
2028
2016
  {
2029
2017
  id,
@@ -2031,7 +2019,7 @@ var NumberInputRenderer = {
2031
2019
  description,
2032
2020
  validation: validationState,
2033
2021
  help,
2034
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components22.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2022
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_components22.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2035
2023
  import_components22.Input,
2036
2024
  __spreadValues({
2037
2025
  id,
@@ -2056,9 +2044,9 @@ var import_react_intl6 = require("react-intl");
2056
2044
 
2057
2045
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
2058
2046
  var import_components23 = require("@transferwise/components");
2059
- var import_react8 = require("react");
2047
+ var import_react7 = require("react");
2060
2048
  function useSnackBarIfAvailable() {
2061
- const context = (0, import_react8.useContext)(import_components23.SnackbarContext);
2049
+ const context = (0, import_react7.useContext)(import_components23.SnackbarContext);
2062
2050
  return context ? context.createSnackbar : () => {
2063
2051
  };
2064
2052
  }
@@ -2083,17 +2071,17 @@ var paragraph_messages_default = (0, import_react_intl5.defineMessages)({
2083
2071
  });
2084
2072
 
2085
2073
  // ../renderers/src/ParagraphRenderer.tsx
2086
- var import_jsx_runtime35 = require("react/jsx-runtime");
2074
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2087
2075
  var ParagraphRenderer = {
2088
2076
  canRenderType: "paragraph",
2089
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Paragraph, __spreadValues({}, props))
2077
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Paragraph, __spreadValues({}, props))
2090
2078
  };
2091
2079
  function Paragraph({ align, control, margin, text }) {
2092
2080
  const className = getTextAlignmentAndMargin({ align, margin });
2093
- return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StandardParagraph, { className, text });
2081
+ return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StandardParagraph, { className, text });
2094
2082
  }
2095
2083
  function StandardParagraph({ text, className }) {
2096
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
2084
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
2097
2085
  }
2098
2086
  function CopyableParagraph({
2099
2087
  text,
@@ -2107,8 +2095,8 @@ function CopyableParagraph({
2107
2095
  });
2108
2096
  };
2109
2097
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
2110
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className, children: [
2111
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2098
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className, children: [
2099
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2112
2100
  import_components24.Input,
2113
2101
  {
2114
2102
  type: "text",
@@ -2117,14 +2105,14 @@ function CopyableParagraph({
2117
2105
  className: (0, import_classnames4.default)("text-ellipsis", inputAlignmentClasses)
2118
2106
  }
2119
2107
  ),
2120
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components24.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2108
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components24.Button, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2121
2109
  ] });
2122
2110
  }
2123
2111
  var ParagraphRenderer_default = ParagraphRenderer;
2124
2112
 
2125
2113
  // ../renderers/src/RepeatableRenderer.tsx
2126
2114
  var import_components25 = require("@transferwise/components");
2127
- var import_react9 = require("react");
2115
+ var import_react8 = require("react");
2128
2116
  var import_icons = require("@transferwise/icons");
2129
2117
  var import_react_intl8 = require("react-intl");
2130
2118
 
@@ -2155,10 +2143,10 @@ var repeatable_messages_default = (0, import_react_intl7.defineMessages)({
2155
2143
 
2156
2144
  // ../renderers/src/RepeatableRenderer.tsx
2157
2145
  var import_classnames5 = __toESM(require_classnames());
2158
- var import_jsx_runtime36 = require("react/jsx-runtime");
2146
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2159
2147
  var RepeatableRenderer = {
2160
2148
  canRenderType: "repeatable",
2161
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Repeatable, __spreadValues({}, props))
2149
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Repeatable, __spreadValues({}, props))
2162
2150
  };
2163
2151
  function Repeatable(props) {
2164
2152
  const {
@@ -2175,7 +2163,7 @@ function Repeatable(props) {
2175
2163
  onRemove
2176
2164
  } = props;
2177
2165
  const { formatMessage } = (0, import_react_intl8.useIntl)();
2178
- const [openModalType, setOpenModalType] = (0, import_react9.useState)(null);
2166
+ const [openModalType, setOpenModalType] = (0, import_react8.useState)(null);
2179
2167
  const onAddItem = () => {
2180
2168
  onAdd();
2181
2169
  setOpenModalType("add");
@@ -2197,40 +2185,40 @@ function Repeatable(props) {
2197
2185
  const onCancelEdit = () => {
2198
2186
  setOpenModalType(null);
2199
2187
  };
2200
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
2201
- title && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components25.Header, { title }),
2202
- description && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { children: description }),
2203
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2188
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
2189
+ title && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components25.Header, { title }),
2190
+ description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { children: description }),
2191
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2204
2192
  "div",
2205
2193
  {
2206
2194
  className: (0, import_classnames5.default)("form-group", {
2207
2195
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
2208
2196
  }),
2209
2197
  children: [
2210
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2211
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2198
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2199
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2212
2200
  import_components25.NavigationOption,
2213
2201
  {
2214
- media: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons.Plus, {}),
2202
+ media: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_icons.Plus, {}),
2215
2203
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
2216
2204
  showMediaAtAllSizes: true,
2217
2205
  onClick: () => onAddItem()
2218
2206
  }
2219
2207
  ),
2220
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components25.InlineAlert, { type: "negative", children: validationState.message })
2208
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components25.InlineAlert, { type: "negative", children: validationState.message })
2221
2209
  ]
2222
2210
  }
2223
2211
  ),
2224
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2212
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2225
2213
  import_components25.Modal,
2226
2214
  {
2227
2215
  open: openModalType !== null,
2228
2216
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
2229
- body: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
2230
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "m-b-2", children: editableItem }),
2231
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
2232
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components25.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2233
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components25.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
2217
+ body: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
2218
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "m-b-2", children: editableItem }),
2219
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
2220
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components25.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2221
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components25.Button, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
2234
2222
  ] })
2235
2223
  ] }),
2236
2224
  onClose: () => onCancelEdit()
@@ -2242,10 +2230,10 @@ function ItemSummaryOption({
2242
2230
  item,
2243
2231
  onClick
2244
2232
  }) {
2245
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2233
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2246
2234
  import_components25.NavigationOption,
2247
2235
  {
2248
- media: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NavigationOptionMedia, __spreadValues({}, item)),
2236
+ media: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(NavigationOptionMedia, __spreadValues({}, item)),
2249
2237
  title: item.title,
2250
2238
  content: item.description,
2251
2239
  showMediaAtAllSizes: true,
@@ -2283,7 +2271,7 @@ var generic_error_messages_default = (0, import_react_intl9.defineMessages)({
2283
2271
 
2284
2272
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
2285
2273
  var import_components26 = require("@transferwise/components");
2286
- var import_jsx_runtime37 = require("react/jsx-runtime");
2274
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2287
2275
  function ErrorResult({ state }) {
2288
2276
  const intl = (0, import_react_intl10.useIntl)();
2289
2277
  const buttonVisualProps = {
@@ -2291,10 +2279,10 @@ function ErrorResult({ state }) {
2291
2279
  size: "sm",
2292
2280
  style: { marginTop: "-2px", padding: "0", width: "auto", display: "inline" }
2293
2281
  };
2294
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("p", { className: "m-t-2", children: [
2282
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "m-t-2", children: [
2295
2283
  intl.formatMessage(generic_error_messages_default.genericError),
2296
2284
  "\xA0",
2297
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2285
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2298
2286
  import_components26.Button,
2299
2287
  __spreadProps(__spreadValues({}, buttonVisualProps), {
2300
2288
  onClick: () => {
@@ -2307,7 +2295,7 @@ function ErrorResult({ state }) {
2307
2295
  }
2308
2296
 
2309
2297
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2310
- var import_react10 = require("react");
2298
+ var import_react9 = require("react");
2311
2299
 
2312
2300
  // ../renderers/src/messages/search.messages.ts
2313
2301
  var import_react_intl11 = require("react-intl");
@@ -2321,7 +2309,7 @@ var search_messages_default = (0, import_react_intl11.defineMessages)({
2321
2309
 
2322
2310
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2323
2311
  var import_react_intl12 = require("react-intl");
2324
- var import_jsx_runtime38 = require("react/jsx-runtime");
2312
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2325
2313
  function BlockSearchRendererComponent({
2326
2314
  id,
2327
2315
  isLoading,
@@ -2331,11 +2319,11 @@ function BlockSearchRendererComponent({
2331
2319
  state,
2332
2320
  title
2333
2321
  }) {
2334
- const [hasSearched, setHasSearched] = (0, import_react10.useState)(false);
2322
+ const [hasSearched, setHasSearched] = (0, import_react9.useState)(false);
2335
2323
  const trackEvent = useTrackEvent();
2336
2324
  const { formatMessage } = (0, import_react_intl12.useIntl)();
2337
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: getMargin(margin), children: [
2338
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2325
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: getMargin(margin), children: [
2326
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2339
2327
  import_components27.Input,
2340
2328
  {
2341
2329
  id,
@@ -2352,7 +2340,7 @@ function BlockSearchRendererComponent({
2352
2340
  }
2353
2341
  }
2354
2342
  ) }),
2355
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SearchResultContent, { state, onChange })
2343
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_jsx_runtime37.Fragment, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SearchResultContent, { state, onChange })
2356
2344
  ] });
2357
2345
  }
2358
2346
  function SearchResultContent({
@@ -2361,26 +2349,26 @@ function SearchResultContent({
2361
2349
  }) {
2362
2350
  switch (state.type) {
2363
2351
  case "error":
2364
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ErrorResult, { state });
2352
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ErrorResult, { state });
2365
2353
  case "results":
2366
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SearchResults, { state, onChange });
2354
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SearchResults, { state, onChange });
2367
2355
  case "noResults":
2368
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(EmptySearchResult, { state });
2356
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(EmptySearchResult, { state });
2369
2357
  case "pending":
2370
2358
  default:
2371
2359
  return null;
2372
2360
  }
2373
2361
  }
2374
2362
  function EmptySearchResult({ state }) {
2375
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components27.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2363
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components27.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2376
2364
  }
2377
2365
  function SearchResults({
2378
2366
  state
2379
2367
  }) {
2380
2368
  const trackEvent = useTrackEvent();
2381
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components27.NavigationOptionsList, { children: state.results.map((result) => {
2369
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components27.NavigationOptionsList, { children: state.results.map((result) => {
2382
2370
  const { icon, image } = result;
2383
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2371
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2384
2372
  import_components27.NavigationOption,
2385
2373
  {
2386
2374
  title: result.title,
@@ -2404,9 +2392,9 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
2404
2392
  // ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
2405
2393
  var import_components28 = require("@transferwise/components");
2406
2394
  var import_icons2 = require("@transferwise/icons");
2407
- var import_react11 = require("react");
2395
+ var import_react10 = require("react");
2408
2396
  var import_react_intl13 = require("react-intl");
2409
- var import_jsx_runtime39 = require("react/jsx-runtime");
2397
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2410
2398
  function InlineSearchRenderer({
2411
2399
  id,
2412
2400
  isLoading,
@@ -2415,10 +2403,10 @@ function InlineSearchRenderer({
2415
2403
  state,
2416
2404
  title
2417
2405
  }) {
2418
- const [hasSearched, setHasSearched] = (0, import_react11.useState)(false);
2406
+ const [hasSearched, setHasSearched] = (0, import_react10.useState)(false);
2419
2407
  const trackEvent = useTrackEvent();
2420
2408
  const intl = (0, import_react_intl13.useIntl)();
2421
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2409
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2422
2410
  import_components28.Typeahead,
2423
2411
  {
2424
2412
  id: "typeahead-input-id",
@@ -2426,10 +2414,10 @@ function InlineSearchRenderer({
2426
2414
  name: "typeahead-input-name",
2427
2415
  size: "md",
2428
2416
  maxHeight: 100,
2429
- footer: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TypeaheadFooter, { state, isLoading }),
2417
+ footer: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TypeaheadFooter, { state, isLoading }),
2430
2418
  multiple: false,
2431
2419
  clearable: false,
2432
- addon: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons2.Search, { size: 24 }),
2420
+ addon: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons2.Search, { size: 24 }),
2433
2421
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
2434
2422
  minQueryLength: 1,
2435
2423
  onChange: (values) => {
@@ -2466,29 +2454,29 @@ function mapResultToTypeaheadOption(result) {
2466
2454
  function TypeaheadFooter({ state, isLoading }) {
2467
2455
  const { formatMessage } = (0, import_react_intl13.useIntl)();
2468
2456
  if (state.type === "noResults") {
2469
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components28.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2457
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components28.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2470
2458
  }
2471
2459
  if (state.type === "error") {
2472
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ErrorResult, { state }) });
2460
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ErrorResult, { state }) });
2473
2461
  }
2474
2462
  if (state.type === "pending" || isLoading) {
2475
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2463
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2476
2464
  }
2477
2465
  return null;
2478
2466
  }
2479
2467
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
2480
2468
 
2481
2469
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
2482
- var import_jsx_runtime40 = require("react/jsx-runtime");
2470
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2483
2471
  var SearchRenderer = {
2484
2472
  canRenderType: "search",
2485
- render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
2473
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
2486
2474
  };
2487
2475
  var SearchRenderer_default = SearchRenderer;
2488
2476
 
2489
2477
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
2490
2478
  var import_components29 = require("@transferwise/components");
2491
- var import_jsx_runtime41 = require("react/jsx-runtime");
2479
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2492
2480
  function RadioInputRendererComponent(props) {
2493
2481
  const {
2494
2482
  id,
@@ -2502,8 +2490,8 @@ function RadioInputRendererComponent(props) {
2502
2490
  validationState,
2503
2491
  onSelect
2504
2492
  } = props;
2505
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
2506
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2493
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
2494
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2507
2495
  FieldInput_default,
2508
2496
  {
2509
2497
  id,
@@ -2511,7 +2499,7 @@ function RadioInputRendererComponent(props) {
2511
2499
  help,
2512
2500
  description,
2513
2501
  validation: validationState,
2514
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2502
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2515
2503
  import_components29.RadioGroup,
2516
2504
  {
2517
2505
  name: id,
@@ -2520,7 +2508,7 @@ function RadioInputRendererComponent(props) {
2520
2508
  value: index,
2521
2509
  secondary: option.description,
2522
2510
  disabled: option.disabled || disabled,
2523
- avatar: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(OptionMedia, { icon: option.icon, image: option.image })
2511
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OptionMedia, { icon: option.icon, image: option.image })
2524
2512
  })),
2525
2513
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
2526
2514
  onChange: onSelect
@@ -2535,8 +2523,8 @@ function RadioInputRendererComponent(props) {
2535
2523
 
2536
2524
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
2537
2525
  var import_components30 = require("@transferwise/components");
2538
- var import_react12 = require("react");
2539
- var import_jsx_runtime42 = require("react/jsx-runtime");
2526
+ var import_react11 = require("react");
2527
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2540
2528
  function TabInputRendererComponent(props) {
2541
2529
  const {
2542
2530
  id,
@@ -2550,13 +2538,13 @@ function TabInputRendererComponent(props) {
2550
2538
  validationState,
2551
2539
  onSelect
2552
2540
  } = props;
2553
- (0, import_react12.useEffect)(() => {
2541
+ (0, import_react11.useEffect)(() => {
2554
2542
  if (!isValidIndex(selectedIndex, options.length)) {
2555
2543
  onSelect(0);
2556
2544
  }
2557
2545
  }, [selectedIndex, onSelect, options.length]);
2558
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
2559
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2546
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
2547
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2560
2548
  FieldInput_default,
2561
2549
  {
2562
2550
  id,
@@ -2564,7 +2552,7 @@ function TabInputRendererComponent(props) {
2564
2552
  help,
2565
2553
  description,
2566
2554
  validation: validationState,
2567
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2555
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2568
2556
  import_components30.Tabs,
2569
2557
  {
2570
2558
  name: id,
@@ -2573,7 +2561,7 @@ function TabInputRendererComponent(props) {
2573
2561
  title: option.title,
2574
2562
  // if we pass null, we get some props-types console errors
2575
2563
  // eslint-disable-next-line react/jsx-no-useless-fragment
2576
- content: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, {}),
2564
+ content: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, {}),
2577
2565
  disabled: option.disabled || disabled
2578
2566
  })),
2579
2567
  onTabSelect: onSelect
@@ -2588,7 +2576,7 @@ var isValidIndex = (index, options) => index !== null && index >= 0 && index < o
2588
2576
 
2589
2577
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
2590
2578
  var import_components31 = require("@transferwise/components");
2591
- var import_jsx_runtime43 = require("react/jsx-runtime");
2579
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2592
2580
  function SelectInputRendererComponent(props) {
2593
2581
  const {
2594
2582
  id,
@@ -2628,13 +2616,13 @@ function SelectInputRendererComponent(props) {
2628
2616
  } : {
2629
2617
  title: option.title,
2630
2618
  description: option.description,
2631
- icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(OptionMedia, { icon: option.icon, image: option.image })
2619
+ icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(OptionMedia, { icon: option.icon, image: option.image })
2632
2620
  };
2633
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components31.SelectInputOptionContent, __spreadValues({}, contentProps));
2621
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components31.SelectInputOptionContent, __spreadValues({}, contentProps));
2634
2622
  };
2635
2623
  const extraProps = { autoComplete };
2636
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
2637
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2624
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
2625
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2638
2626
  FieldInput_default,
2639
2627
  {
2640
2628
  id,
@@ -2642,7 +2630,7 @@ function SelectInputRendererComponent(props) {
2642
2630
  help,
2643
2631
  description,
2644
2632
  validation: validationState,
2645
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2633
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2646
2634
  import_components31.SelectInput,
2647
2635
  __spreadValues({
2648
2636
  name: id,
@@ -2663,9 +2651,9 @@ function SelectInputRendererComponent(props) {
2663
2651
  }
2664
2652
 
2665
2653
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
2666
- var import_react13 = require("react");
2654
+ var import_react12 = require("react");
2667
2655
  var import_components32 = require("@transferwise/components");
2668
- var import_jsx_runtime44 = require("react/jsx-runtime");
2656
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2669
2657
  function SegmentedInputRendererComponent(props) {
2670
2658
  const {
2671
2659
  id,
@@ -2678,13 +2666,13 @@ function SegmentedInputRendererComponent(props) {
2678
2666
  validationState,
2679
2667
  onSelect
2680
2668
  } = props;
2681
- (0, import_react13.useEffect)(() => {
2669
+ (0, import_react12.useEffect)(() => {
2682
2670
  if (!isValidIndex2(selectedIndex, options.length)) {
2683
2671
  onSelect(0);
2684
2672
  }
2685
2673
  }, [selectedIndex, onSelect, options.length]);
2686
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
2687
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2674
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
2675
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2688
2676
  FieldInput_default,
2689
2677
  {
2690
2678
  id,
@@ -2692,7 +2680,7 @@ function SegmentedInputRendererComponent(props) {
2692
2680
  help,
2693
2681
  description,
2694
2682
  validation: validationState,
2695
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2683
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2696
2684
  import_components32.SegmentedControl,
2697
2685
  {
2698
2686
  name: `${id}-segmented-control`,
@@ -2709,26 +2697,26 @@ function SegmentedInputRendererComponent(props) {
2709
2697
  )
2710
2698
  }
2711
2699
  ),
2712
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { id: `${id}-children`, children })
2700
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { id: `${id}-children`, children })
2713
2701
  ] });
2714
2702
  }
2715
2703
  var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
2716
2704
 
2717
2705
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
2718
- var import_jsx_runtime45 = require("react/jsx-runtime");
2706
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2719
2707
  var SelectInputRenderer = {
2720
2708
  canRenderType: "input-select",
2721
2709
  render: (props) => {
2722
2710
  switch (props.control) {
2723
2711
  case "radio":
2724
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
2712
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
2725
2713
  case "tab":
2726
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TabInputRendererComponent, __spreadValues({}, props));
2714
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TabInputRendererComponent, __spreadValues({}, props));
2727
2715
  case "segmented":
2728
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
2716
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
2729
2717
  case "select":
2730
2718
  default:
2731
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
2719
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
2732
2720
  }
2733
2721
  }
2734
2722
  };
@@ -2736,17 +2724,17 @@ var SelectInputRenderer_default = SelectInputRenderer;
2736
2724
 
2737
2725
  // ../renderers/src/StatusListRenderer.tsx
2738
2726
  var import_components33 = require("@transferwise/components");
2739
- var import_jsx_runtime46 = require("react/jsx-runtime");
2727
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2740
2728
  var StatusListRenderer = {
2741
2729
  canRenderType: "status-list",
2742
- render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: getMargin(margin), children: [
2743
- title ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components33.Header, { title }) : null,
2744
- items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2730
+ render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: getMargin(margin), children: [
2731
+ title ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_components33.Header, { title, className: "m-b-2" }) : null,
2732
+ items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2745
2733
  import_components33.Summary,
2746
2734
  {
2747
2735
  title: itemTitle,
2748
2736
  description,
2749
- icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DynamicIcon_default, { name: icon.name }) : null,
2737
+ icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicIcon_default, { name: icon.name }) : null,
2750
2738
  status: mapStatus(status),
2751
2739
  action: getSummaryAction(callToAction)
2752
2740
  },
@@ -2786,31 +2774,31 @@ var import_components35 = require("@transferwise/components");
2786
2774
 
2787
2775
  // ../renderers/src/components/VariableTextInput.tsx
2788
2776
  var import_components34 = require("@transferwise/components");
2789
- var import_jsx_runtime47 = require("react/jsx-runtime");
2777
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2790
2778
  function VariableTextInput({
2791
2779
  control,
2792
2780
  inputProps
2793
2781
  }) {
2794
2782
  switch (control) {
2795
2783
  case "password":
2796
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextInput, __spreadValues({ type: "password" }, inputProps));
2784
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TextInput, __spreadValues({ type: "password" }, inputProps));
2797
2785
  case "email":
2798
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextInput, __spreadValues({ type: "email" }, inputProps));
2786
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TextInput, __spreadValues({ type: "email" }, inputProps));
2799
2787
  case "textarea":
2800
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextAreaInput, __spreadValues({}, inputProps));
2788
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TextAreaInput, __spreadValues({}, inputProps));
2801
2789
  case "numeric":
2802
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(NumericInput, __spreadValues({ type: "number" }, inputProps));
2790
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NumericInput, __spreadValues({ type: "number" }, inputProps));
2803
2791
  case "phone-number":
2804
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PhoneNumberInput, __spreadValues({}, inputProps));
2792
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(PhoneNumberInput, __spreadValues({}, inputProps));
2805
2793
  default:
2806
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextInput, __spreadValues({ type: "text" }, inputProps));
2794
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TextInput, __spreadValues({ type: "text" }, inputProps));
2807
2795
  }
2808
2796
  }
2809
2797
  function TextInput(_a) {
2810
2798
  var _b = _a, { id, displayFormat, onChange } = _b, rest = __objRest(_b, ["id", "displayFormat", "onChange"]);
2811
2799
  if (typeof displayFormat === "string") {
2812
2800
  const inputProps = __spreadValues({ id, name: id, className: "form-control" }, rest);
2813
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2801
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2814
2802
  import_components34.InputWithDisplayFormat,
2815
2803
  __spreadValues({
2816
2804
  displayPattern: displayFormat,
@@ -2818,29 +2806,29 @@ function TextInput(_a) {
2818
2806
  }, inputProps)
2819
2807
  );
2820
2808
  }
2821
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components34.Input, __spreadValues({ id, name: id, onChange: (e) => onChange(e.target.value) }, rest));
2809
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components34.Input, __spreadValues({ id, name: id, onChange: (e) => onChange(e.target.value) }, rest));
2822
2810
  }
2823
2811
  function TextAreaInput(_a) {
2824
2812
  var _b = _a, { id, displayFormat, onChange } = _b, rest = __objRest(_b, ["id", "displayFormat", "onChange"]);
2825
2813
  const textAreaProps = __spreadValues({ id, name: id }, rest);
2826
- return typeof displayFormat === "string" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2814
+ return typeof displayFormat === "string" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2827
2815
  import_components34.TextareaWithDisplayFormat,
2828
2816
  __spreadValues({
2829
2817
  displayPattern: displayFormat,
2830
2818
  onChange: (newValue) => onChange(newValue)
2831
2819
  }, textAreaProps)
2832
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components34.TextArea, __spreadValues({ onChange: (e) => onChange(e.target.value) }, textAreaProps));
2820
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components34.TextArea, __spreadValues({ onChange: (e) => onChange(e.target.value) }, textAreaProps));
2833
2821
  }
2834
2822
  function NumericInput(_a) {
2835
2823
  var _b = _a, { id, displayFormat, onChange } = _b, rest = __objRest(_b, ["id", "displayFormat", "onChange"]);
2836
2824
  const numericProps = __spreadValues({ id, name: id, onWheel }, rest);
2837
- return typeof displayFormat === "string" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2825
+ return typeof displayFormat === "string" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2838
2826
  import_components34.InputWithDisplayFormat,
2839
2827
  __spreadValues({
2840
2828
  displayPattern: displayFormat,
2841
2829
  onChange: (newValue) => onChange(numericValueOrNull(newValue))
2842
2830
  }, numericProps)
2843
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2831
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2844
2832
  import_components34.Input,
2845
2833
  __spreadValues({
2846
2834
  onChange: ({ target: { value: newValue } }) => onChange(numericValueOrNull(newValue))
@@ -2849,12 +2837,12 @@ function NumericInput(_a) {
2849
2837
  }
2850
2838
  function PhoneNumberInput(_a) {
2851
2839
  var _b = _a, { value } = _b, rest = __objRest(_b, ["value"]);
2852
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components34.PhoneNumberInput, __spreadValues({ initialValue: value }, rest));
2840
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components34.PhoneNumberInput, __spreadValues({ initialValue: value }, rest));
2853
2841
  }
2854
2842
  var VariableTextInput_default = VariableTextInput;
2855
2843
 
2856
2844
  // ../renderers/src/TextInputRenderer.tsx
2857
- var import_jsx_runtime48 = require("react/jsx-runtime");
2845
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2858
2846
  var TextInputRenderer = {
2859
2847
  canRenderType: "input-text",
2860
2848
  render: (props) => {
@@ -2889,7 +2877,7 @@ var TextInputRenderer = {
2889
2877
  ]);
2890
2878
  const value = initialValue != null ? initialValue : "";
2891
2879
  const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
2892
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2880
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2893
2881
  FieldInput_default,
2894
2882
  {
2895
2883
  id,
@@ -2897,7 +2885,7 @@ var TextInputRenderer = {
2897
2885
  description,
2898
2886
  validation: validationState,
2899
2887
  help,
2900
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_components35.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(VariableTextInput_default, { control, inputProps }) })
2888
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components35.InputGroup, { addonStart: getInputGroupAddonStart({ icon, image }), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(VariableTextInput_default, { control, inputProps }) })
2901
2889
  }
2902
2890
  );
2903
2891
  }
@@ -2906,7 +2894,7 @@ var TextInputRenderer_default = TextInputRenderer;
2906
2894
 
2907
2895
  // ../renderers/src/UploadInputRenderer.tsx
2908
2896
  var import_components36 = require("@transferwise/components");
2909
- var import_jsx_runtime49 = require("react/jsx-runtime");
2897
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2910
2898
  var UploadInputRenderer = {
2911
2899
  canRenderType: "input-upload",
2912
2900
  render: (props) => {
@@ -2922,14 +2910,14 @@ var UploadInputRenderer = {
2922
2910
  };
2923
2911
  return (
2924
2912
  // We don't pass help here as there is no sensible place to display it
2925
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2913
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2926
2914
  UploadFieldInput_default,
2927
2915
  {
2928
2916
  id,
2929
2917
  label: void 0,
2930
2918
  description: void 0,
2931
2919
  validation: validationState,
2932
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2920
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2933
2921
  import_components36.UploadInput,
2934
2922
  {
2935
2923
  id,
@@ -2986,7 +2974,7 @@ var LargeUploadRenderer = {
2986
2974
  throw e;
2987
2975
  }
2988
2976
  };
2989
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2977
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2990
2978
  FieldInput_default,
2991
2979
  {
2992
2980
  id,
@@ -2994,7 +2982,7 @@ var LargeUploadRenderer = {
2994
2982
  description,
2995
2983
  validation: validationState,
2996
2984
  help,
2997
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2985
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2998
2986
  import_components36.Upload,
2999
2987
  __spreadProps(__spreadValues({}, uploadProps), {
3000
2988
  usAccept: getAcceptsString(accepts),
@@ -3011,14 +2999,14 @@ var LargeUploadRenderer = {
3011
2999
 
3012
3000
  // ../renderers/src/ReviewRenderer.tsx
3013
3001
  var import_components37 = require("@transferwise/components");
3014
- var import_jsx_runtime50 = require("react/jsx-runtime");
3002
+ var import_jsx_runtime49 = require("react/jsx-runtime");
3015
3003
  var ReviewRenderer = {
3016
3004
  canRenderType: "review",
3017
3005
  render: ({ callToAction, control, fields, margin, title }) => {
3018
3006
  const orientation = mapControlToDefinitionListLayout(control);
3019
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: getMargin(margin), children: [
3020
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components37.Header, { title: title != null ? title : "", action: getReviewAction(callToAction) }),
3021
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3007
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: getMargin(margin), children: [
3008
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components37.Header, { title: title != null ? title : "", action: getReviewAction(callToAction) }),
3009
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3022
3010
  import_components37.DefinitionList,
3023
3011
  {
3024
3012
  layout: orientation,
@@ -3050,14 +3038,14 @@ var mapControlToDefinitionListLayout = (control) => {
3050
3038
  };
3051
3039
  var getFieldValue = (value, help, orientation) => {
3052
3040
  if (help) {
3053
- return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
3054
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Help_default, { help }),
3041
+ return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
3042
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Help_default, { help }),
3055
3043
  " ",
3056
3044
  value
3057
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
3045
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
3058
3046
  value,
3059
3047
  " ",
3060
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Help_default, { help })
3048
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Help_default, { help })
3061
3049
  ] });
3062
3050
  }
3063
3051
  return value;
@@ -3086,7 +3074,29 @@ var getReviewAction = (callToAction) => {
3086
3074
  };
3087
3075
 
3088
3076
  // ../renderers/src/step/StepRenderer.tsx
3089
- var import_react15 = require("react");
3077
+ var import_components40 = require("@transferwise/components");
3078
+
3079
+ // ../renderers/src/step/BackButton.tsx
3080
+ var import_components38 = require("@transferwise/components");
3081
+ var import_icons3 = require("@transferwise/icons");
3082
+ var import_jsx_runtime50 = require("react/jsx-runtime");
3083
+ function BackButton({ title, onClick }) {
3084
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "m-b-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
3085
+ "button",
3086
+ {
3087
+ type: "button",
3088
+ className: "df-back-btn",
3089
+ title,
3090
+ "aria-label": title,
3091
+ onClick,
3092
+ children: [
3093
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "sr-only", children: title }),
3094
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components38.Avatar, { type: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons3.ArrowLeft, { size: "24" }) })
3095
+ ]
3096
+ }
3097
+ ) });
3098
+ }
3099
+ var BackButton_default = BackButton;
3090
3100
 
3091
3101
  // ../renderers/src/step/ExternalConfirmationDialog.tsx
3092
3102
  var import_react_intl15 = require("react-intl");
@@ -3117,7 +3127,7 @@ var external_confirmation_messages_default = (0, import_react_intl14.defineMessa
3117
3127
  });
3118
3128
 
3119
3129
  // ../renderers/src/step/ExternalConfirmationDialog.tsx
3120
- var import_components38 = require("@transferwise/components");
3130
+ var import_components39 = require("@transferwise/components");
3121
3131
  var import_jsx_runtime51 = require("react/jsx-runtime");
3122
3132
  function ExternalConfirmationDialog({
3123
3133
  external,
@@ -3126,10 +3136,10 @@ function ExternalConfirmationDialog({
3126
3136
  const { formatMessage } = (0, import_react_intl15.useIntl)();
3127
3137
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
3128
3138
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("h2", { className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.title) }),
3129
- /* @__PURE__ */ (0, import_jsx_runtime51.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) }) }),
3139
+ /* @__PURE__ */ (0, import_jsx_runtime51.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) }) }),
3130
3140
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
3131
3141
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3132
- import_components38.Button,
3142
+ import_components39.Button,
3133
3143
  {
3134
3144
  block: true,
3135
3145
  className: "m-b-2",
@@ -3142,7 +3152,7 @@ function ExternalConfirmationDialog({
3142
3152
  children: formatMessage(external_confirmation_messages_default.open)
3143
3153
  }
3144
3154
  ),
3145
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components38.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onClose, children: formatMessage(external_confirmation_messages_default.cancel) })
3155
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components39.Button, { block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onClose, children: formatMessage(external_confirmation_messages_default.cancel) })
3146
3156
  ] }) })
3147
3157
  ] }) });
3148
3158
  }
@@ -3155,12 +3165,12 @@ function getOrigin(url) {
3155
3165
  }
3156
3166
 
3157
3167
  // ../renderers/src/step/useExternal.tsx
3158
- var import_react14 = require("react");
3168
+ var import_react13 = require("react");
3159
3169
  function useExternal(url) {
3160
- const [externalWindow, setExternalWindow] = (0, import_react14.useState)(null);
3161
- const [hasDismissed, setHasDismissed] = (0, import_react14.useState)(false);
3170
+ const [externalWindow, setExternalWindow] = (0, import_react13.useState)(null);
3171
+ const [hasDismissed, setHasDismissed] = (0, import_react13.useState)(false);
3162
3172
  const dismissConfirmation = () => setHasDismissed(true);
3163
- (0, import_react14.useEffect)(() => {
3173
+ (0, import_react13.useEffect)(() => {
3164
3174
  if (url) {
3165
3175
  setHasDismissed(false);
3166
3176
  setExternalWindow(window.open(url, "_blank"));
@@ -3170,49 +3180,25 @@ function useExternal(url) {
3170
3180
  return { requiresUserConfirmation, dismissConfirmation };
3171
3181
  }
3172
3182
 
3173
- // ../renderers/src/step/BackButton.tsx
3174
- var import_components39 = require("@transferwise/components");
3175
- var import_icons3 = require("@transferwise/icons");
3176
- var import_jsx_runtime52 = require("react/jsx-runtime");
3177
- function BackButton({ title, onClick }) {
3178
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "m-b-2", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
3179
- "button",
3180
- {
3181
- type: "button",
3182
- className: "df-back-btn",
3183
- title,
3184
- "aria-label": title,
3185
- onClick,
3186
- children: [
3187
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "sr-only", children: title }),
3188
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components39.Avatar, { type: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_icons3.ArrowLeft, { size: "24" }) })
3189
- ]
3190
- }
3191
- ) });
3192
- }
3193
- var BackButton_default = BackButton;
3194
-
3195
3183
  // ../renderers/src/step/StepRenderer.tsx
3196
- var import_components40 = require("@transferwise/components");
3197
- var import_jsx_runtime53 = require("react/jsx-runtime");
3184
+ var import_jsx_runtime52 = require("react/jsx-runtime");
3198
3185
  var StepRenderer = {
3199
3186
  canRenderType: "step",
3200
3187
  render: StepRendererComponent
3201
3188
  };
3202
3189
  function StepRendererComponent(props) {
3203
- const { back, description, error, external, loadingState, title, trackEvent, children } = props;
3204
- const value = (0, import_react15.useMemo)(() => ({ loadingState, trackEvent }), [loadingState, trackEvent]);
3190
+ const { back, description, error, external, title, children } = props;
3205
3191
  const { requiresUserConfirmation, dismissConfirmation } = useExternal(external == null ? void 0 : external.url);
3206
3192
  if ((external == null ? void 0 : external.url) && requiresUserConfirmation) {
3207
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ExternalConfirmationDialog, { external, onClose: dismissConfirmation });
3193
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ExternalConfirmationDialog, { external, onClose: dismissConfirmation });
3208
3194
  }
3209
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(StepRendererContextProvider, { value, children: [
3210
- back ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3211
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "m-b-4", children: [
3212
- title ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components40.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
3213
- description ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
3195
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
3196
+ back ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(BackButton_default, __spreadValues({}, back)) : null,
3197
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "m-b-4", children: [
3198
+ title ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components40.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
3199
+ description ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
3214
3200
  ] }) : void 0,
3215
- error ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components40.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
3201
+ error ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components40.Alert, { type: "negative", className: "m-b-2", message: error }) : void 0,
3216
3202
  children
3217
3203
  ] });
3218
3204
  }
@@ -3252,30 +3238,30 @@ var getWiseRenderers = () => [
3252
3238
  ];
3253
3239
 
3254
3240
  // src/dynamicFlow/DynamicFlow.tsx
3255
- var import_jsx_runtime54 = require("react/jsx-runtime");
3241
+ var import_jsx_runtime53 = require("react/jsx-runtime");
3256
3242
  var wiseRenderers = getWiseRenderers();
3257
3243
  function DynamicFlowLegacy(props) {
3258
3244
  const { customFetch = globalThis.fetch } = props;
3259
3245
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
3260
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
3246
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
3261
3247
  }
3262
3248
  function DynamicFlowRevamp(props) {
3263
3249
  const { customFetch = globalThis.fetch, renderers, onLink = openLinkInNewTab } = props;
3264
3250
  const httpClient = useWiseHttpClient(customFetch);
3265
- const mergedRenderers = (0, import_react16.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3251
+ const mergedRenderers = (0, import_react14.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3266
3252
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient, renderers: mergedRenderers, onLink });
3267
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(RendererHttpClientProvider, { httpClient, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
3253
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps));
3268
3254
  }
3269
- var DynamicFragment = (0, import_react16.forwardRef)(function DynamicFragment2(props, ref) {
3255
+ var DynamicFragment = (0, import_react14.forwardRef)(function DynamicFragment2(props, ref) {
3270
3256
  const { customFetch = globalThis.fetch, renderers, onLink = openLinkInNewTab } = props;
3271
3257
  const httpClient = useWiseHttpClient(customFetch);
3272
- const mergedRenderers = (0, import_react16.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3258
+ const mergedRenderers = (0, import_react14.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
3273
3259
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient, renderers: mergedRenderers, onLink });
3274
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(RendererHttpClientProvider, { httpClient, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_dynamic_flow_client2.DynamicFragmentCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
3260
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_dynamic_flow_client2.DynamicFragmentCore, __spreadProps(__spreadValues({}, coreProps), { ref }));
3275
3261
  });
3276
3262
  var useWiseHttpClient = (httpClient) => {
3277
3263
  const { locale } = (0, import_react_intl16.useIntl)();
3278
- return (0, import_react16.useCallback)(
3264
+ return (0, import_react14.useCallback)(
3279
3265
  async (input, init = {}) => {
3280
3266
  const headers = new Headers(init.headers);
3281
3267
  headers.set("accept-language", locale);