@wise/dynamic-flow-client-internal 4.37.0 → 4.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/build/main.js +546 -423
  2. package/build/main.mjs +431 -308
  3. package/package.json +4 -4
package/build/main.js CHANGED
@@ -62,7 +62,7 @@ __export(index_exports, {
62
62
  DynamicFlowLegacy: () => DynamicFlowLegacy,
63
63
  DynamicFlowRevamp: () => DynamicFlowRevamp,
64
64
  DynamicForm: () => DynamicForm,
65
- Header: () => Header12,
65
+ Header: () => Header13,
66
66
  JsonSchemaForm: () => import_dynamic_flow_client4.JsonSchemaForm,
67
67
  Media: () => Media2,
68
68
  findRendererPropsByType: () => import_dynamic_flow_client4.findRendererPropsByType,
@@ -362,7 +362,7 @@ var mapStatusToSentiment = (validation) => {
362
362
  var FieldInput_default = FieldInput;
363
363
 
364
364
  // ../renderers/src/CheckboxInputRenderer.tsx
365
- var import_components9 = require("@transferwise/components");
365
+ var import_components11 = require("@transferwise/components");
366
366
 
367
367
  // ../renderers/src/utils/UrnFlag.tsx
368
368
  var import_art = require("@wise/art");
@@ -655,11 +655,41 @@ var getInlineMedia = (media) => media ? /* @__PURE__ */ (0, import_jsx_runtime18
655
655
  var import_jsx_runtime19 = require("react/jsx-runtime");
656
656
  var getMedia = (media, preferAvatar) => media ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(OptionMedia, { media, preferAvatar }) : void 0;
657
657
 
658
- // ../renderers/src/CheckboxInputRenderer.tsx
658
+ // ../renderers/src/NewListItem/getAdditionalText.tsx
659
+ var import_components9 = require("@transferwise/components");
659
660
  var import_jsx_runtime20 = require("react/jsx-runtime");
661
+ var getAdditionalText = (additionalText) => {
662
+ if (!additionalText) {
663
+ return void 0;
664
+ }
665
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components9.ListItem.AdditionalInfo, { children: additionalText });
666
+ };
667
+
668
+ // ../renderers/src/NewListItem/getSupportingValues.ts
669
+ var getSupportingValues = (supportingValues) => {
670
+ return __spreadValues(__spreadValues({}, (supportingValues == null ? void 0 : supportingValues.value) ? { valueTitle: supportingValues.value } : {}), (supportingValues == null ? void 0 : supportingValues.subvalue) ? { valueSubtitle: supportingValues.subvalue } : {});
671
+ };
672
+
673
+ // ../renderers/src/NewListItem/getInlineAlert.tsx
674
+ var import_components10 = require("@transferwise/components");
675
+ var import_jsx_runtime21 = require("react/jsx-runtime");
676
+ var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_components10.ListItem.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
677
+
678
+ // ../renderers/src/CheckboxInputRenderer.tsx
679
+ var import_jsx_runtime22 = require("react/jsx-runtime");
660
680
  var CheckboxInputRenderer = {
661
681
  canRenderType: "input-checkbox",
662
- render: (props) => props.control === "switch-item" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SwitchComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CheckboxComponent, __spreadValues({}, props))
682
+ render: (props) => {
683
+ switch (props.control) {
684
+ case "switch-item":
685
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SwitchItemComponent, __spreadValues({}, props));
686
+ case "checkbox-item":
687
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CheckboxItemComponent, __spreadValues({}, props));
688
+ case "checkbox":
689
+ default:
690
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CheckboxComponent, __spreadValues({}, props));
691
+ }
692
+ }
663
693
  };
664
694
  var CheckboxComponent = (props) => {
665
695
  const _a = props, {
@@ -682,30 +712,74 @@ var CheckboxComponent = (props) => {
682
712
  "value"
683
713
  ]);
684
714
  const checkboxProps = __spreadProps(__spreadValues({}, rest), { label: title, secondary: description, checked: value });
685
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components9.Checkbox, __spreadValues({ id }, checkboxProps)) });
715
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components11.Checkbox, __spreadValues({ id }, checkboxProps)) });
686
716
  };
687
- var SwitchComponent = (props) => {
688
- const { title, description, disabled, media, validationState, value, onChange } = props;
689
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
690
- import_components9.ListItem,
691
- {
717
+ var CheckboxItemComponent = (props) => {
718
+ const {
719
+ additionalText,
720
+ description,
721
+ disabled,
722
+ inlineAlert,
723
+ media,
724
+ supportingValues,
725
+ title,
726
+ validationState,
727
+ value,
728
+ onChange
729
+ } = props;
730
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
731
+ import_components11.ListItem,
732
+ __spreadValues({
692
733
  title,
693
734
  subtitle: description,
735
+ additionalInfo: getAdditionalText(additionalText),
694
736
  media: getMedia(media, false),
695
737
  disabled,
696
- prompt: validationState && validationState.status === "invalid" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components9.ListItem.Prompt, { sentiment: "negative", children: validationState.message }) : void 0,
697
- control: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_components9.ListItem.Switch, { checked: value, onClick: () => onChange(!value) })
698
- }
738
+ prompt: getInlineAlertOrValidation(validationState, inlineAlert),
739
+ control: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components11.ListItem.Checkbox, { checked: value, onChange: () => onChange(!value) })
740
+ }, getSupportingValues(supportingValues))
741
+ );
742
+ };
743
+ var SwitchItemComponent = (props) => {
744
+ const {
745
+ additionalText,
746
+ description,
747
+ disabled,
748
+ inlineAlert,
749
+ media,
750
+ supportingValues,
751
+ title,
752
+ validationState,
753
+ value,
754
+ onChange
755
+ } = props;
756
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
757
+ import_components11.ListItem,
758
+ __spreadValues({
759
+ title,
760
+ subtitle: description,
761
+ additionalInfo: getAdditionalText(additionalText),
762
+ media: getMedia(media, false),
763
+ disabled,
764
+ prompt: getInlineAlertOrValidation(validationState, inlineAlert),
765
+ control: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components11.ListItem.Switch, { checked: value, onClick: () => onChange(!value) })
766
+ }, getSupportingValues(supportingValues))
699
767
  );
700
768
  };
769
+ var getInlineAlertOrValidation = (validationState, inlineAlert) => {
770
+ if (validationState && validationState.status === "invalid") {
771
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_components11.ListItem.Prompt, { sentiment: "negative", children: validationState.message });
772
+ }
773
+ return getInlineAlert(inlineAlert);
774
+ };
701
775
  var CheckboxInputRenderer_default = CheckboxInputRenderer;
702
776
 
703
777
  // ../renderers/src/ColumnsRenderer.tsx
704
778
  var import_classnames2 = __toESM(require("classnames"));
705
- var import_jsx_runtime21 = require("react/jsx-runtime");
779
+ var import_jsx_runtime23 = require("react/jsx-runtime");
706
780
  var ColumnsRenderer = {
707
781
  canRenderType: "columns",
708
- render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
782
+ render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
709
783
  "div",
710
784
  {
711
785
  className: (0, import_classnames2.default)("df-columns-renderer-container", getMargin(margin), {
@@ -713,8 +787,8 @@ var ColumnsRenderer = {
713
787
  "df-columns-renderer-bias-end": bias === "end"
714
788
  }),
715
789
  children: [
716
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "df-columns-renderer-column", children: startChildren }),
717
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "df-columns-renderer-column", children: endChildren })
790
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "df-columns-renderer-column", children: startChildren }),
791
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "df-columns-renderer-column", children: endChildren })
718
792
  ]
719
793
  }
720
794
  )
@@ -722,7 +796,7 @@ var ColumnsRenderer = {
722
796
  var ColumnsRenderer_default = ColumnsRenderer;
723
797
 
724
798
  // ../renderers/src/components/VariableDateInput.tsx
725
- var import_components10 = require("@transferwise/components");
799
+ var import_components12 = require("@transferwise/components");
726
800
 
727
801
  // ../renderers/src/validators/type-validators.ts
728
802
  var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
@@ -749,7 +823,7 @@ var dateToDateString = (date) => {
749
823
  };
750
824
 
751
825
  // ../renderers/src/components/VariableDateInput.tsx
752
- var import_jsx_runtime22 = require("react/jsx-runtime");
826
+ var import_jsx_runtime24 = require("react/jsx-runtime");
753
827
  function VariableDateInput({
754
828
  control,
755
829
  inputProps
@@ -765,8 +839,8 @@ function VariableDateInput({
765
839
  onFocus
766
840
  } = inputProps;
767
841
  if (control === "date-lookup") {
768
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
769
- import_components10.DateLookup,
842
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
843
+ import_components12.DateLookup,
770
844
  {
771
845
  value: dateStringToDateOrNull(inputProps.value),
772
846
  min: dateStringToDateOrNull(minimumDate),
@@ -781,8 +855,8 @@ function VariableDateInput({
781
855
  }
782
856
  );
783
857
  }
784
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
785
- import_components10.DateInput,
858
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
859
+ import_components12.DateInput,
786
860
  __spreadProps(__spreadValues({}, inputProps), {
787
861
  dayAutoComplete: getAutocompleteString(autoComplete, "day"),
788
862
  yearAutoComplete: getAutocompleteString(autoComplete, "year")
@@ -798,7 +872,7 @@ var getAutocompleteString = (value, suffix) => {
798
872
  var VariableDateInput_default = VariableDateInput;
799
873
 
800
874
  // ../renderers/src/DateInputRenderer.tsx
801
- var import_jsx_runtime23 = require("react/jsx-runtime");
875
+ var import_jsx_runtime25 = require("react/jsx-runtime");
802
876
  var DateInputRenderer = {
803
877
  canRenderType: "input-date",
804
878
  render: (props) => {
@@ -823,7 +897,7 @@ var DateInputRenderer = {
823
897
  ]);
824
898
  const value = initialValue != null ? initialValue : "";
825
899
  const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
826
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
900
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
827
901
  FieldInput_default,
828
902
  {
829
903
  id,
@@ -831,7 +905,7 @@ var DateInputRenderer = {
831
905
  description,
832
906
  validation: validationState,
833
907
  help,
834
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(VariableDateInput_default, { control, inputProps })
908
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(VariableDateInput_default, { control, inputProps })
835
909
  }
836
910
  );
837
911
  }
@@ -839,10 +913,10 @@ var DateInputRenderer = {
839
913
  var DateInputRenderer_default = DateInputRenderer;
840
914
 
841
915
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
842
- var import_components13 = require("@transferwise/components");
916
+ var import_components15 = require("@transferwise/components");
843
917
 
844
918
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
845
- var import_components12 = require("@transferwise/components");
919
+ var import_components14 = require("@transferwise/components");
846
920
  var import_react3 = require("react");
847
921
  var import_react_intl8 = require("react-intl");
848
922
 
@@ -914,7 +988,7 @@ function filterAndSortDecisionOptions(selectOptions, query) {
914
988
  var normalizeAndRemoveAccents = (text) => text.trim().toLowerCase().normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "");
915
989
 
916
990
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
917
- var import_components11 = require("@transferwise/components");
991
+ var import_components13 = require("@transferwise/components");
918
992
  var import_react_intl7 = require("react-intl");
919
993
 
920
994
  // ../renderers/src/messages/group.messages.ts
@@ -953,7 +1027,7 @@ var getGroupsFromTags = (knownTags, items) => {
953
1027
  };
954
1028
 
955
1029
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
956
- var import_jsx_runtime24 = require("react/jsx-runtime");
1030
+ var import_jsx_runtime26 = require("react/jsx-runtime");
957
1031
  var groupingTags = Object.keys(group_messages_default).filter((key) => key !== "all");
958
1032
  var isGroupedDecision = (options) => {
959
1033
  return getGroupsFromTags(groupingTags, options).length > 0;
@@ -963,9 +1037,9 @@ var GroupedDecisionList = (_a) => {
963
1037
  const { formatMessage } = (0, import_react_intl7.useIntl)();
964
1038
  const { options } = rest;
965
1039
  const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
966
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components11.Section, { children: [
967
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
968
- import_components11.Header,
1040
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_components13.Section, { children: [
1041
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1042
+ import_components13.Header,
969
1043
  {
970
1044
  as: "h2",
971
1045
  title: tag in group_messages_default ? formatMessage(group_messages_default[tag]) : tag
@@ -976,16 +1050,16 @@ var GroupedDecisionList = (_a) => {
976
1050
  };
977
1051
 
978
1052
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
979
- var import_jsx_runtime25 = require("react/jsx-runtime");
1053
+ var import_jsx_runtime27 = require("react/jsx-runtime");
980
1054
  var DecisionWrapper = (props) => {
981
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getMargin(props.margin), children: [
982
- props.title && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components12.Header, { as: "h2", title: props.title }),
983
- props.control === "filtered" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UnfilteredDecisionList, __spreadValues({}, props))
1055
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: getMargin(props.margin), children: [
1056
+ props.title && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components14.Header, { as: "h2", title: props.title }),
1057
+ props.control === "filtered" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(UnfilteredDecisionList, __spreadValues({}, props))
984
1058
  ] });
985
1059
  };
986
1060
  var UnfilteredDecisionList = (_a) => {
987
1061
  var _b = _a, { renderDecisionList: renderDecisionList3 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
988
- return isGroupedDecision(rest.options) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList3 })) : renderDecisionList3(rest);
1062
+ return isGroupedDecision(rest.options) ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList3 })) : renderDecisionList3(rest);
989
1063
  };
990
1064
  var FilteredDecisionList = (props) => {
991
1065
  const { formatMessage } = (0, import_react_intl8.useIntl)();
@@ -993,9 +1067,9 @@ var FilteredDecisionList = (props) => {
993
1067
  const { control, options, renderDecisionList: renderDecisionList3 } = props;
994
1068
  const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortDecisionOptions(options, query) : options;
995
1069
  const isGrouped = isGroupedDecision(options);
996
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
997
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
998
- import_components12.SearchInput,
1070
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1071
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1072
+ import_components14.SearchInput,
999
1073
  {
1000
1074
  placeholder: formatMessage(filter_messages_default.placeholder),
1001
1075
  value: query,
@@ -1006,35 +1080,35 @@ var FilteredDecisionList = (props) => {
1006
1080
  }
1007
1081
  }
1008
1082
  ),
1009
- isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1010
- query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components12.Header, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
1083
+ isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1084
+ query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components14.Header, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
1011
1085
  filteredOptions.length > 0 ? renderDecisionList3({
1012
1086
  control,
1013
1087
  className: query.length === 0 ? "m-t-3" : "",
1014
1088
  options: filteredOptions
1015
- }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { children: formatMessage(filter_messages_default.noResults) })
1089
+ }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { children: formatMessage(filter_messages_default.noResults) })
1016
1090
  ] })
1017
1091
  ] });
1018
1092
  };
1019
1093
 
1020
1094
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
1021
- var import_jsx_runtime26 = require("react/jsx-runtime");
1095
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1022
1096
  var DecisionRenderer = {
1023
1097
  canRenderType: "decision",
1024
1098
  render: (props) => {
1025
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }));
1099
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }));
1026
1100
  }
1027
1101
  };
1028
1102
  var renderDecisionList = ({ options, className, control }) => {
1029
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_components13.NavigationOptionsList, { children: options.map((option) => {
1103
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components15.NavigationOptionsList, { children: options.map((option) => {
1030
1104
  const { description, disabled, media, title: itemTitle, tag, onClick } = option;
1031
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1032
- import_components13.NavigationOption,
1105
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1106
+ import_components15.NavigationOption,
1033
1107
  {
1034
1108
  title: itemTitle,
1035
1109
  content: description,
1036
1110
  disabled,
1037
- media: media ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1111
+ media: media ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1038
1112
  OptionMedia,
1039
1113
  {
1040
1114
  media,
@@ -1052,8 +1126,8 @@ var renderDecisionList = ({ options, className, control }) => {
1052
1126
  var DecisionRenderer_default = DecisionRenderer;
1053
1127
 
1054
1128
  // ../renderers/src/DividerRenderer.tsx
1055
- var import_components14 = require("@transferwise/components");
1056
- var import_jsx_runtime27 = require("react/jsx-runtime");
1129
+ var import_components16 = require("@transferwise/components");
1130
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1057
1131
  var mapControlToLevel = (control) => {
1058
1132
  switch (control) {
1059
1133
  case "section":
@@ -1066,12 +1140,12 @@ var mapControlToLevel = (control) => {
1066
1140
  };
1067
1141
  var DividerRenderer = {
1068
1142
  canRenderType: "divider",
1069
- render: ({ margin, control }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components14.Divider, { className: `m-t-0 d-block ${getMargin(margin)}`, level: mapControlToLevel(control) })
1143
+ render: ({ margin, control }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components16.Divider, { className: `m-t-0 d-block ${getMargin(margin)}`, level: mapControlToLevel(control) })
1070
1144
  };
1071
1145
  var DividerRenderer_default = DividerRenderer;
1072
1146
 
1073
1147
  // ../renderers/src/ExternalConfirmationRenderer.tsx
1074
- var import_components15 = require("@transferwise/components");
1148
+ var import_components17 = require("@transferwise/components");
1075
1149
 
1076
1150
  // ../renderers/src/messages/external-confirmation.messages.ts
1077
1151
  var import_react_intl9 = require("react-intl");
@@ -1101,7 +1175,7 @@ var external_confirmation_messages_default = (0, import_react_intl9.defineMessag
1101
1175
  // ../renderers/src/ExternalConfirmationRenderer.tsx
1102
1176
  var import_react_intl10 = require("react-intl");
1103
1177
  var import_react4 = require("react");
1104
- var import_jsx_runtime28 = require("react/jsx-runtime");
1178
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1105
1179
  var ExternalConfirmationRenderer = {
1106
1180
  canRenderType: "external-confirmation",
1107
1181
  render: ExternalConfirmationRendererComponent
@@ -1124,16 +1198,16 @@ function ExternalConfirmationRendererComponent({
1124
1198
  }
1125
1199
  }
1126
1200
  }, []);
1127
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1128
- import_components15.Modal,
1201
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1202
+ import_components17.Modal,
1129
1203
  {
1130
1204
  open: status === "failure",
1131
1205
  title: formatMessage(external_confirmation_messages_default.title),
1132
- body: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1133
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components15.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1134
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
1135
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1136
- import_components15.Button,
1206
+ body: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1207
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components17.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1208
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
1209
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1210
+ import_components17.Button,
1137
1211
  {
1138
1212
  v2: true,
1139
1213
  block: true,
@@ -1147,7 +1221,7 @@ function ExternalConfirmationRendererComponent({
1147
1221
  children: formatMessage(external_confirmation_messages_default.open)
1148
1222
  }
1149
1223
  ),
1150
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components15.Button, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1224
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components17.Button, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1151
1225
  ] }) })
1152
1226
  ] }),
1153
1227
  onClose: onCancel
@@ -1164,46 +1238,46 @@ function getOrigin(url) {
1164
1238
  var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
1165
1239
 
1166
1240
  // ../renderers/src/FormRenderer.tsx
1167
- var import_jsx_runtime29 = require("react/jsx-runtime");
1241
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1168
1242
  var FormRenderer = {
1169
1243
  canRenderType: "form",
1170
- render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: getMargin(margin), children })
1244
+ render: ({ children, margin }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getMargin(margin), children })
1171
1245
  };
1172
1246
  var FormRenderer_default = FormRenderer;
1173
1247
 
1174
1248
  // ../renderers/src/FormSectionRenderer.tsx
1175
- var import_components16 = require("@transferwise/components");
1176
- var import_jsx_runtime30 = require("react/jsx-runtime");
1249
+ var import_components18 = require("@transferwise/components");
1250
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1177
1251
  var FormSectionRenderer = {
1178
1252
  canRenderType: "form-section",
1179
- render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("fieldset", { children: [
1180
- title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1181
- import_components16.Header,
1253
+ render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("fieldset", { children: [
1254
+ title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1255
+ import_components18.Header,
1182
1256
  {
1183
1257
  as: "h2",
1184
1258
  title
1185
1259
  }
1186
1260
  ),
1187
- description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { children: description }),
1261
+ description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { children: description }),
1188
1262
  children
1189
1263
  ] })
1190
1264
  };
1191
1265
  var FormSectionRenderer_default = FormSectionRenderer;
1192
1266
 
1193
1267
  // ../renderers/src/HeadingRenderer.tsx
1194
- var import_components17 = require("@transferwise/components");
1195
- var import_jsx_runtime31 = require("react/jsx-runtime");
1268
+ var import_components19 = require("@transferwise/components");
1269
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1196
1270
  var HeadingRenderer = {
1197
1271
  canRenderType: "heading",
1198
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Heading, __spreadValues({}, props))
1272
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Heading, __spreadValues({}, props))
1199
1273
  };
1200
1274
  function Heading(props) {
1201
1275
  const { text, size, align, margin, control } = props;
1202
1276
  const className = getTextAlignmentAndMargin({ align, margin });
1203
- return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StandardHeading, { size, text, className });
1277
+ return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(StandardHeading, { size, text, className });
1204
1278
  }
1205
1279
  function DisplayHeading({ size, text, className }) {
1206
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.Display, { type: getDisplayType(size), className, children: text });
1280
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_components19.Display, { type: getDisplayType(size), className, children: text });
1207
1281
  }
1208
1282
  var getDisplayType = (size) => {
1209
1283
  switch (size) {
@@ -1219,7 +1293,7 @@ var getDisplayType = (size) => {
1219
1293
  }
1220
1294
  };
1221
1295
  function StandardHeading({ size, text, className }) {
1222
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.Title, { type: getTitleTypeBySize(size), className, children: text });
1296
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_components19.Title, { type: getTitleTypeBySize(size), className, children: text });
1223
1297
  }
1224
1298
  var getTitleTypeBySize = (size) => {
1225
1299
  var _a;
@@ -1235,7 +1309,7 @@ var getTitleTypeBySize = (size) => {
1235
1309
  var HeadingRenderer_default = HeadingRenderer;
1236
1310
 
1237
1311
  // ../renderers/src/ImageRenderer/UrlImage.tsx
1238
- var import_components18 = require("@transferwise/components");
1312
+ var import_components20 = require("@transferwise/components");
1239
1313
  var import_react5 = require("react");
1240
1314
 
1241
1315
  // ../renderers/src/utils/api-utils.ts
@@ -1246,7 +1320,7 @@ function isRelativePath(url = "") {
1246
1320
  }
1247
1321
 
1248
1322
  // ../renderers/src/ImageRenderer/UrlImage.tsx
1249
- var import_jsx_runtime32 = require("react/jsx-runtime");
1323
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1250
1324
  function UrlImage({
1251
1325
  accessibilityDescription,
1252
1326
  align,
@@ -1261,8 +1335,8 @@ function UrlImage({
1261
1335
  void getImageSource(httpClient, uri).then(setImageSource);
1262
1336
  }
1263
1337
  }, [uri, httpClient]);
1264
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1265
- import_components18.Image,
1338
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1339
+ import_components20.Image,
1266
1340
  {
1267
1341
  className: `img-responsive ${getMargin(margin)}`,
1268
1342
  alt: accessibilityDescription != null ? accessibilityDescription : "",
@@ -1305,7 +1379,7 @@ var getImageSource = async (httpClient, imageUrl) => {
1305
1379
  };
1306
1380
 
1307
1381
  // ../renderers/src/ImageRenderer/UrnFlagImage.tsx
1308
- var import_jsx_runtime33 = require("react/jsx-runtime");
1382
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1309
1383
  var maxFlagSize = 600;
1310
1384
  function UrnFlagImage({
1311
1385
  accessibilityDescription,
@@ -1314,7 +1388,7 @@ function UrnFlagImage({
1314
1388
  size,
1315
1389
  uri
1316
1390
  }) {
1317
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
1391
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
1318
1392
  }
1319
1393
 
1320
1394
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
@@ -1330,7 +1404,7 @@ var isAnimated = (uri) => {
1330
1404
  // ../renderers/src/ImageRenderer/SafeIllustration3D.tsx
1331
1405
  var import_art3 = require("@wise/art");
1332
1406
  var import_react6 = require("react");
1333
- var import_jsx_runtime34 = require("react/jsx-runtime");
1407
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1334
1408
  var Illustration3DErrorBoundary = class extends import_react6.Component {
1335
1409
  constructor(props) {
1336
1410
  super(props);
@@ -1354,12 +1428,12 @@ var SafeIllustration3D = ({
1354
1428
  size,
1355
1429
  onError
1356
1430
  }) => {
1357
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Illustration3DErrorBoundary, { onError, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_art3.Illustration3D, { name, size }) });
1431
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Illustration3DErrorBoundary, { onError, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_art3.Illustration3D, { name, size }) });
1358
1432
  };
1359
1433
  var SafeIllustration3D_default = SafeIllustration3D;
1360
1434
 
1361
1435
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
1362
- var import_jsx_runtime35 = require("react/jsx-runtime");
1436
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1363
1437
  var urnPrefix = "urn:wise:illustrations:";
1364
1438
  var isUrnIllustration = (uri) => uri.startsWith(urnPrefix);
1365
1439
  function UrnIllustration({
@@ -1374,7 +1448,7 @@ function UrnIllustration({
1374
1448
  const illustrationName = getIllustrationName(uri);
1375
1449
  const illustration3DName = getIllustration3DName(uri);
1376
1450
  if (illustration3DName && isAnimated(uri) && !has3DFailed) {
1377
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1451
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1378
1452
  SafeIllustration3D_default,
1379
1453
  {
1380
1454
  name: illustration3DName,
@@ -1383,7 +1457,7 @@ function UrnIllustration({
1383
1457
  }
1384
1458
  ) });
1385
1459
  }
1386
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1460
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1387
1461
  import_art4.Illustration,
1388
1462
  {
1389
1463
  className: "df-illustration",
@@ -1403,32 +1477,32 @@ var getIllustration3DName = (uri) => {
1403
1477
  };
1404
1478
 
1405
1479
  // ../renderers/src/ImageRenderer/UrnImage.tsx
1406
- var import_jsx_runtime36 = require("react/jsx-runtime");
1480
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1407
1481
  var isUrnImage = (uri) => uri.startsWith("urn:");
1408
1482
  function UrnImage(props) {
1409
1483
  const { uri } = props;
1410
1484
  if (isUrnIllustration(uri)) {
1411
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(UrnIllustration, __spreadValues({}, props));
1485
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(UrnIllustration, __spreadValues({}, props));
1412
1486
  }
1413
1487
  if (isUrnFlag(uri)) {
1414
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(UrnFlagImage, __spreadValues({}, props));
1488
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(UrnFlagImage, __spreadValues({}, props));
1415
1489
  }
1416
1490
  return null;
1417
1491
  }
1418
1492
 
1419
1493
  // ../renderers/src/ImageRenderer/ImageRenderer.tsx
1420
- var import_jsx_runtime37 = require("react/jsx-runtime");
1494
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1421
1495
  var ImageRenderer = {
1422
1496
  canRenderType: "image",
1423
- render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(UrlImage, __spreadValues({}, props))
1497
+ render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(UrlImage, __spreadValues({}, props))
1424
1498
  };
1425
1499
 
1426
1500
  // ../renderers/src/ImageRenderer/index.tsx
1427
1501
  var ImageRenderer_default = ImageRenderer;
1428
1502
 
1429
1503
  // ../renderers/src/InstructionsRenderer.tsx
1430
- var import_components19 = require("@transferwise/components");
1431
- var import_jsx_runtime38 = require("react/jsx-runtime");
1504
+ var import_components21 = require("@transferwise/components");
1505
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1432
1506
  var doContext = ["positive", "neutral"];
1433
1507
  var dontContext = ["warning", "negative"];
1434
1508
  var InstructionsRenderer = {
@@ -1436,16 +1510,16 @@ var InstructionsRenderer = {
1436
1510
  render: ({ items, margin, title }) => {
1437
1511
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
1438
1512
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
1439
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: getMargin(margin), children: [
1440
- title ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components19.Header, { title }) : null,
1441
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components19.InstructionsList, { dos, donts })
1513
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: getMargin(margin), children: [
1514
+ title ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components21.Header, { title }) : null,
1515
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components21.InstructionsList, { dos, donts })
1442
1516
  ] });
1443
1517
  }
1444
1518
  };
1445
1519
  var InstructionsRenderer_default = InstructionsRenderer;
1446
1520
 
1447
1521
  // ../renderers/src/IntegerInputRenderer.tsx
1448
- var import_components20 = require("@transferwise/components");
1522
+ var import_components22 = require("@transferwise/components");
1449
1523
 
1450
1524
  // ../renderers/src/utils/input-utils.ts
1451
1525
  var onWheel = (event) => {
@@ -1470,7 +1544,7 @@ function pick(obj, ...keys) {
1470
1544
  }
1471
1545
 
1472
1546
  // ../renderers/src/IntegerInputRenderer.tsx
1473
- var import_jsx_runtime39 = require("react/jsx-runtime");
1547
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1474
1548
  var IntegerInputRenderer = {
1475
1549
  canRenderType: "input-integer",
1476
1550
  render: (props) => {
@@ -1485,7 +1559,7 @@ var IntegerInputRenderer = {
1485
1559
  "maximum",
1486
1560
  "minimum"
1487
1561
  );
1488
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1562
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1489
1563
  FieldInput_default,
1490
1564
  {
1491
1565
  id,
@@ -1493,8 +1567,8 @@ var IntegerInputRenderer = {
1493
1567
  description,
1494
1568
  validation: validationState,
1495
1569
  help,
1496
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_components20.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1497
- import_components20.Input,
1570
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_components22.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1571
+ import_components22.Input,
1498
1572
  __spreadValues({
1499
1573
  id,
1500
1574
  name: id,
@@ -1516,14 +1590,14 @@ var IntegerInputRenderer = {
1516
1590
  var IntegerInputRenderer_default = IntegerInputRenderer;
1517
1591
 
1518
1592
  // ../renderers/src/ListRenderer.tsx
1519
- var import_components21 = require("@transferwise/components");
1593
+ var import_components23 = require("@transferwise/components");
1520
1594
  var import_classnames3 = __toESM(require("classnames"));
1521
- var import_jsx_runtime40 = require("react/jsx-runtime");
1595
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1522
1596
  var ListRenderer = {
1523
1597
  canRenderType: "list",
1524
- render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: getMargin(margin), children: [
1525
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components21.Header, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
1526
- items.map((props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
1598
+ render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getMargin(margin), children: [
1599
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components23.Header, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
1600
+ items.map((props) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
1527
1601
  ] })
1528
1602
  };
1529
1603
  var DesignSystemListItem = ({
@@ -1535,15 +1609,15 @@ var DesignSystemListItem = ({
1535
1609
  media,
1536
1610
  control,
1537
1611
  tag
1538
- }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1612
+ }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1539
1613
  "label",
1540
1614
  {
1541
1615
  className: (0, import_classnames3.default)("np-option p-a-2", {
1542
1616
  "np-option__sm-media": true,
1543
1617
  "np-option__container-aligned": true
1544
1618
  }),
1545
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "media", children: [
1546
- icon || image || media ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "media-left", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1619
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "media", children: [
1620
+ icon || image || media ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "media-left", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1547
1621
  ListItemMedia,
1548
1622
  {
1549
1623
  icon,
@@ -1551,14 +1625,14 @@ var DesignSystemListItem = ({
1551
1625
  preferAvatar: control === "with-avatar" || tag === "with-avatar"
1552
1626
  }
1553
1627
  ) }) : null,
1554
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "media-body", children: [
1555
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "d-flex justify-content-between", children: [
1556
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
1557
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
1628
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "media-body", children: [
1629
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "d-flex justify-content-between", children: [
1630
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
1631
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
1558
1632
  ] }),
1559
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "d-flex justify-content-between", children: [
1560
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components21.Body, { className: "d-block np-option__body", children: description }),
1561
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components21.Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
1633
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "d-flex justify-content-between", children: [
1634
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components23.Body, { className: "d-block np-option__body", children: description }),
1635
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components23.Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
1562
1636
  ] })
1563
1637
  ] })
1564
1638
  ] })
@@ -1571,9 +1645,9 @@ var ListItemMedia = ({
1571
1645
  preferAvatar
1572
1646
  }) => {
1573
1647
  if (icon) {
1574
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OptionMedia, { media, preferAvatar }) });
1648
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(OptionMedia, { media, preferAvatar }) });
1575
1649
  }
1576
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OptionMedia, { media, preferAvatar }) });
1650
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(OptionMedia, { media, preferAvatar }) });
1577
1651
  };
1578
1652
  var getListAction = (callToAction) => {
1579
1653
  if (callToAction) {
@@ -1588,12 +1662,12 @@ var getListAction = (callToAction) => {
1588
1662
  var ListRenderer_default = ListRenderer;
1589
1663
 
1590
1664
  // ../renderers/src/LoadingIndicatorRenderer.tsx
1591
- var import_components22 = require("@transferwise/components");
1592
- var import_jsx_runtime41 = require("react/jsx-runtime");
1665
+ var import_components24 = require("@transferwise/components");
1666
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1593
1667
  var LoadingIndicatorRenderer = {
1594
1668
  canRenderType: "loading-indicator",
1595
- render: ({ margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1596
- import_components22.Loader,
1669
+ render: ({ margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1670
+ import_components24.Loader,
1597
1671
  {
1598
1672
  size,
1599
1673
  classNames: { "tw-loader": `tw-loader m-x-auto ${getMargin(margin)}` },
@@ -1604,12 +1678,12 @@ var LoadingIndicatorRenderer = {
1604
1678
  var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
1605
1679
 
1606
1680
  // ../renderers/src/MarkdownRenderer.tsx
1607
- var import_components23 = require("@transferwise/components");
1608
- var import_jsx_runtime42 = require("react/jsx-runtime");
1681
+ var import_components25 = require("@transferwise/components");
1682
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1609
1683
  var MarkdownRenderer = {
1610
1684
  canRenderType: "markdown",
1611
- render: ({ content, align, margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1612
- import_components23.Markdown,
1685
+ render: ({ content, align, margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1686
+ import_components25.Markdown,
1613
1687
  {
1614
1688
  className: ["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large",
1615
1689
  config: { link: { target: "_blank" } },
@@ -1620,21 +1694,21 @@ var MarkdownRenderer = {
1620
1694
  var MarkdownRenderer_default = MarkdownRenderer;
1621
1695
 
1622
1696
  // ../renderers/src/ModalLayoutRenderer.tsx
1623
- var import_components24 = require("@transferwise/components");
1697
+ var import_components26 = require("@transferwise/components");
1624
1698
  var import_react8 = require("react");
1625
- var import_jsx_runtime43 = require("react/jsx-runtime");
1699
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1626
1700
  var ModalLayoutRenderer = {
1627
1701
  canRenderType: "modal-layout",
1628
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DFModal, __spreadValues({}, props))
1702
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DFModal, __spreadValues({}, props))
1629
1703
  };
1630
1704
  var ModalLayoutRenderer_default = ModalLayoutRenderer;
1631
1705
  function DFModal({ content, margin, trigger }) {
1632
1706
  const [visible, setVisible] = (0, import_react8.useState)(false);
1633
1707
  const { children, title } = content;
1634
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: getMargin(margin), children: [
1635
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components24.Button, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1636
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1637
- import_components24.Modal,
1708
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: getMargin(margin), children: [
1709
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_components26.Button, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1710
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1711
+ import_components26.Modal,
1638
1712
  {
1639
1713
  scroll: "content",
1640
1714
  open: visible,
@@ -1648,20 +1722,20 @@ function DFModal({ content, margin, trigger }) {
1648
1722
  }
1649
1723
 
1650
1724
  // ../renderers/src/ModalRenderer.tsx
1651
- var import_components25 = require("@transferwise/components");
1652
- var import_jsx_runtime44 = require("react/jsx-runtime");
1725
+ var import_components27 = require("@transferwise/components");
1726
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1653
1727
  var ModalRenderer = {
1654
1728
  canRenderType: "modal",
1655
1729
  render: ({ title, children, open, onClose }) => {
1656
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components25.Modal, { open, title, body: children, onClose });
1730
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components27.Modal, { open, title, body: children, onClose });
1657
1731
  }
1658
1732
  };
1659
1733
 
1660
1734
  // ../renderers/src/MoneyInputRenderer.tsx
1661
- var import_components26 = require("@transferwise/components");
1735
+ var import_components28 = require("@transferwise/components");
1662
1736
  var import_react9 = require("react");
1663
1737
  var import_react_intl11 = require("react-intl");
1664
- var import_jsx_runtime45 = require("react/jsx-runtime");
1738
+ var import_jsx_runtime47 = require("react/jsx-runtime");
1665
1739
  var groupingTags2 = Object.keys(group_messages_default).filter((key) => key !== "all");
1666
1740
  var MoneyInputRenderer = {
1667
1741
  canRenderType: "money-input",
@@ -1688,7 +1762,7 @@ function MoneyInputRendererComponent(props) {
1688
1762
  }
1689
1763
  }, [selectedCurrencyIndex, onCurrencyChange, currencies.length]);
1690
1764
  const { formatMessage } = (0, import_react_intl11.useIntl)();
1691
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1765
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1692
1766
  FieldInput_default,
1693
1767
  {
1694
1768
  id: uid,
@@ -1696,8 +1770,8 @@ function MoneyInputRendererComponent(props) {
1696
1770
  description,
1697
1771
  validation: validationState,
1698
1772
  help,
1699
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1700
- import_components26.MoneyInput,
1773
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1774
+ import_components28.MoneyInput,
1701
1775
  {
1702
1776
  amount: parseFloatOrNull(amountValue),
1703
1777
  searchPlaceholder: "",
@@ -1758,7 +1832,7 @@ function assertCurrencyCodeIsString(currencyCode) {
1758
1832
  }
1759
1833
 
1760
1834
  // ../renderers/src/MultiSelectInputRenderer.tsx
1761
- var import_components27 = require("@transferwise/components");
1835
+ var import_components29 = require("@transferwise/components");
1762
1836
  var import_react10 = require("react");
1763
1837
  var import_react_intl13 = require("react-intl");
1764
1838
 
@@ -1773,10 +1847,10 @@ var multi_select_messages_default = (0, import_react_intl12.defineMessages)({
1773
1847
  });
1774
1848
 
1775
1849
  // ../renderers/src/MultiSelectInputRenderer.tsx
1776
- var import_jsx_runtime46 = require("react/jsx-runtime");
1850
+ var import_jsx_runtime48 = require("react/jsx-runtime");
1777
1851
  var MultiSelectInputRenderer = {
1778
1852
  canRenderType: "input-multi-select",
1779
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
1853
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
1780
1854
  };
1781
1855
  function MultiSelectInputRendererComponent(props) {
1782
1856
  const { formatMessage } = (0, import_react_intl13.useIntl)();
@@ -1818,12 +1892,12 @@ function MultiSelectInputRendererComponent(props) {
1818
1892
  const contentProps = {
1819
1893
  title: option.title,
1820
1894
  description: option.description,
1821
- icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
1895
+ icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
1822
1896
  };
1823
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components27.SelectInputOptionContent, __spreadValues({}, contentProps));
1897
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_components29.SelectInputOptionContent, __spreadValues({}, contentProps));
1824
1898
  };
1825
1899
  const extraProps = { autoComplete };
1826
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1900
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1827
1901
  FieldInput_default,
1828
1902
  {
1829
1903
  id,
@@ -1831,8 +1905,8 @@ function MultiSelectInputRendererComponent(props) {
1831
1905
  help,
1832
1906
  description,
1833
1907
  validation: validationState,
1834
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1835
- import_components27.SelectInput,
1908
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1909
+ import_components29.SelectInput,
1836
1910
  __spreadValues({
1837
1911
  id,
1838
1912
  items: options.map((option, index) => {
@@ -1871,12 +1945,12 @@ function MultiSelectInputRendererComponent(props) {
1871
1945
  var MultiSelectInputRenderer_default = MultiSelectInputRenderer;
1872
1946
 
1873
1947
  // ../renderers/src/MultiUploadInputRenderer.tsx
1874
- var import_components29 = require("@transferwise/components");
1948
+ var import_components31 = require("@transferwise/components");
1875
1949
 
1876
1950
  // ../renderers/src/components/UploadFieldInput.tsx
1877
- var import_components28 = require("@transferwise/components");
1951
+ var import_components30 = require("@transferwise/components");
1878
1952
  var import_classnames4 = __toESM(require("classnames"));
1879
- var import_jsx_runtime47 = require("react/jsx-runtime");
1953
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1880
1954
  function UploadFieldInput({
1881
1955
  id,
1882
1956
  children,
@@ -1885,18 +1959,18 @@ function UploadFieldInput({
1885
1959
  help,
1886
1960
  validation
1887
1961
  }) {
1888
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LabelContentWithHelp, { text: label, help }) : label;
1962
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(LabelContentWithHelp, { text: label, help }) : label;
1889
1963
  const descriptionId = description ? `${id}-description` : void 0;
1890
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
1964
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1891
1965
  "div",
1892
1966
  {
1893
1967
  className: (0, import_classnames4.default)("form-group d-block", {
1894
1968
  "has-error": (validation == null ? void 0 : validation.status) === "invalid"
1895
1969
  }),
1896
1970
  children: [
1897
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
1971
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
1898
1972
  children,
1899
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components28.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
1973
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components30.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
1900
1974
  ]
1901
1975
  }
1902
1976
  );
@@ -1931,7 +2005,7 @@ var getSizeLimit = (maxSize) => {
1931
2005
  };
1932
2006
 
1933
2007
  // ../renderers/src/MultiUploadInputRenderer.tsx
1934
- var import_jsx_runtime48 = require("react/jsx-runtime");
2008
+ var import_jsx_runtime50 = require("react/jsx-runtime");
1935
2009
  var MultiUploadInputRenderer = {
1936
2010
  canRenderType: "input-upload-multi",
1937
2011
  render: (props) => {
@@ -1956,7 +2030,7 @@ var MultiUploadInputRenderer = {
1956
2030
  };
1957
2031
  const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
1958
2032
  const descriptionId = description ? `${id}-description` : void 0;
1959
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2033
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1960
2034
  UploadFieldInput_default,
1961
2035
  {
1962
2036
  id,
@@ -1964,8 +2038,8 @@ var MultiUploadInputRenderer = {
1964
2038
  description,
1965
2039
  validation: validationState,
1966
2040
  help,
1967
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1968
- import_components29.UploadInput,
2041
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2042
+ import_components31.UploadInput,
1969
2043
  {
1970
2044
  id,
1971
2045
  "aria-describedby": descriptionId,
@@ -1974,7 +2048,7 @@ var MultiUploadInputRenderer = {
1974
2048
  files: value.map(({ id: id2, file, validationState: validationState2 }) => ({
1975
2049
  id: id2,
1976
2050
  filename: file.name,
1977
- status: (validationState2 == null ? void 0 : validationState2.status) === "invalid" ? import_components29.Status.FAILED : import_components29.Status.SUCCEEDED
2051
+ status: (validationState2 == null ? void 0 : validationState2.status) === "invalid" ? import_components31.Status.FAILED : import_components31.Status.SUCCEEDED
1978
2052
  })),
1979
2053
  fileTypes: acceptsToFileTypes(accepts),
1980
2054
  maxFiles: maxItems,
@@ -1992,8 +2066,8 @@ var MultiUploadInputRenderer = {
1992
2066
  var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
1993
2067
 
1994
2068
  // ../renderers/src/NumberInputRenderer.tsx
1995
- var import_components30 = require("@transferwise/components");
1996
- var import_jsx_runtime49 = require("react/jsx-runtime");
2069
+ var import_components32 = require("@transferwise/components");
2070
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1997
2071
  var NumberInputRenderer = {
1998
2072
  canRenderType: "input-number",
1999
2073
  render: (props) => {
@@ -2007,7 +2081,7 @@ var NumberInputRenderer = {
2007
2081
  "maximum",
2008
2082
  "minimum"
2009
2083
  );
2010
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2084
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2011
2085
  FieldInput_default,
2012
2086
  {
2013
2087
  id,
@@ -2015,8 +2089,8 @@ var NumberInputRenderer = {
2015
2089
  description,
2016
2090
  validation: validationState,
2017
2091
  help,
2018
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components30.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2019
- import_components30.Input,
2092
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components32.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2093
+ import_components32.Input,
2020
2094
  __spreadValues({
2021
2095
  id,
2022
2096
  name: id,
@@ -2039,16 +2113,16 @@ var NumberInputRenderer_default = NumberInputRenderer;
2039
2113
  var import_react_intl15 = require("react-intl");
2040
2114
 
2041
2115
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
2042
- var import_components31 = require("@transferwise/components");
2116
+ var import_components33 = require("@transferwise/components");
2043
2117
  var import_react11 = require("react");
2044
2118
  function useSnackBarIfAvailable() {
2045
- const context = (0, import_react11.useContext)(import_components31.SnackbarContext);
2119
+ const context = (0, import_react11.useContext)(import_components33.SnackbarContext);
2046
2120
  return context ? context.createSnackbar : () => {
2047
2121
  };
2048
2122
  }
2049
2123
 
2050
2124
  // ../renderers/src/ParagraphRenderer.tsx
2051
- var import_components32 = require("@transferwise/components");
2125
+ var import_components34 = require("@transferwise/components");
2052
2126
  var import_classnames5 = __toESM(require("classnames"));
2053
2127
 
2054
2128
  // ../renderers/src/messages/paragraph.messages.ts
@@ -2067,14 +2141,14 @@ var paragraph_messages_default = (0, import_react_intl14.defineMessages)({
2067
2141
  });
2068
2142
 
2069
2143
  // ../renderers/src/ParagraphRenderer.tsx
2070
- var import_jsx_runtime50 = require("react/jsx-runtime");
2144
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2071
2145
  var ParagraphRenderer = {
2072
2146
  canRenderType: "paragraph",
2073
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Paragraph, __spreadValues({}, props))
2147
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Paragraph, __spreadValues({}, props))
2074
2148
  };
2075
2149
  function Paragraph({ align, control, margin, size, text }) {
2076
2150
  const className = getTextAlignmentAndMargin({ align, margin });
2077
- return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2151
+ return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2078
2152
  "p",
2079
2153
  {
2080
2154
  className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
@@ -2094,9 +2168,9 @@ function CopyableParagraph({
2094
2168
  });
2095
2169
  };
2096
2170
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
2097
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className, children: [
2098
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2099
- import_components32.Input,
2171
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className, children: [
2172
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2173
+ import_components34.Input,
2100
2174
  {
2101
2175
  type: "text",
2102
2176
  value: text,
@@ -2104,13 +2178,13 @@ function CopyableParagraph({
2104
2178
  className: (0, import_classnames5.default)("text-ellipsis", inputAlignmentClasses)
2105
2179
  }
2106
2180
  ),
2107
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components32.Button, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2181
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components34.Button, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
2108
2182
  ] });
2109
2183
  }
2110
2184
  var ParagraphRenderer_default = ParagraphRenderer;
2111
2185
 
2112
2186
  // ../renderers/src/RepeatableRenderer.tsx
2113
- var import_components33 = require("@transferwise/components");
2187
+ var import_components35 = require("@transferwise/components");
2114
2188
  var import_icons = require("@transferwise/icons");
2115
2189
  var import_classnames6 = __toESM(require("classnames"));
2116
2190
  var import_react12 = require("react");
@@ -2142,10 +2216,10 @@ var repeatable_messages_default = (0, import_react_intl16.defineMessages)({
2142
2216
  });
2143
2217
 
2144
2218
  // ../renderers/src/RepeatableRenderer.tsx
2145
- var import_jsx_runtime51 = require("react/jsx-runtime");
2219
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2146
2220
  var RepeatableRenderer = {
2147
2221
  canRenderType: "repeatable",
2148
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Repeatable, __spreadValues({}, props))
2222
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Repeatable, __spreadValues({}, props))
2149
2223
  };
2150
2224
  function Repeatable(props) {
2151
2225
  const {
@@ -2184,41 +2258,41 @@ function Repeatable(props) {
2184
2258
  const onCancelEdit = () => {
2185
2259
  setOpenModalType(null);
2186
2260
  };
2187
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2188
- title && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.Header, { title }),
2189
- description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: description }),
2190
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2261
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
2262
+ title && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components35.Header, { title }),
2263
+ description && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { children: description }),
2264
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2191
2265
  "div",
2192
2266
  {
2193
2267
  className: (0, import_classnames6.default)("form-group", {
2194
2268
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
2195
2269
  }),
2196
2270
  children: [
2197
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2198
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2199
- import_components33.NavigationOption,
2271
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2272
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2273
+ import_components35.NavigationOption,
2200
2274
  {
2201
- media: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_icons.Plus, {}),
2275
+ media: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_icons.Plus, {}),
2202
2276
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
2203
2277
  showMediaAtAllSizes: true,
2204
2278
  onClick: () => onAddItem()
2205
2279
  }
2206
2280
  ),
2207
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.InlineAlert, { type: "negative", children: validationState.message })
2281
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components35.InlineAlert, { type: "negative", children: validationState.message })
2208
2282
  ]
2209
2283
  }
2210
2284
  ),
2211
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2212
- import_components33.Modal,
2285
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2286
+ import_components35.Modal,
2213
2287
  {
2214
2288
  open: openModalType !== null,
2215
2289
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
2216
- body: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2217
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "m-b-2", children: editableItem }),
2218
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
2219
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2220
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2221
- import_components33.Button,
2290
+ body: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
2291
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "m-b-2", children: editableItem }),
2292
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { children: [
2293
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components35.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2294
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2295
+ import_components35.Button,
2222
2296
  {
2223
2297
  v2: true,
2224
2298
  priority: "secondary",
@@ -2239,10 +2313,10 @@ function ItemSummaryOption({
2239
2313
  item,
2240
2314
  onClick
2241
2315
  }) {
2242
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2243
- import_components33.NavigationOption,
2316
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2317
+ import_components35.NavigationOption,
2244
2318
  {
2245
- media: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
2319
+ media: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
2246
2320
  title: item.title,
2247
2321
  content: item.description,
2248
2322
  showMediaAtAllSizes: true,
@@ -2254,12 +2328,12 @@ function ItemSummaryOption({
2254
2328
  var RepeatableRenderer_default = RepeatableRenderer;
2255
2329
 
2256
2330
  // ../renderers/src/ReviewRenderer.tsx
2257
- var import_components35 = require("@transferwise/components");
2331
+ var import_components37 = require("@transferwise/components");
2258
2332
 
2259
2333
  // ../renderers/src/components/Header.tsx
2260
- var import_components34 = require("@transferwise/components");
2261
- var import_jsx_runtime52 = require("react/jsx-runtime");
2262
- var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components34.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
2334
+ var import_components36 = require("@transferwise/components");
2335
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2336
+ var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components36.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
2263
2337
  var getHeaderAction = (callToAction) => {
2264
2338
  if (!callToAction) {
2265
2339
  return void 0;
@@ -2281,15 +2355,15 @@ var getHeaderAction = (callToAction) => {
2281
2355
  };
2282
2356
 
2283
2357
  // ../renderers/src/ReviewRenderer.tsx
2284
- var import_jsx_runtime53 = require("react/jsx-runtime");
2358
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2285
2359
  var ReviewRenderer = {
2286
2360
  canRenderType: "review",
2287
2361
  render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
2288
2362
  const orientation = mapControlToDefinitionListLayout(control);
2289
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: getMargin(margin), children: [
2290
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Header7, { title, callToAction }),
2291
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2292
- import_components35.DefinitionList,
2363
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: getMargin(margin), children: [
2364
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Header7, { title, callToAction }),
2365
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2366
+ import_components37.DefinitionList,
2293
2367
  {
2294
2368
  layout: orientation,
2295
2369
  definitions: fields.map(
@@ -2326,17 +2400,17 @@ var mapControlToDefinitionListLayout = (control) => {
2326
2400
  };
2327
2401
  var getFieldLabel = (label, help, onClick) => {
2328
2402
  if (help) {
2329
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
2403
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
2330
2404
  label,
2331
2405
  " ",
2332
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Help_default, { help, onClick })
2406
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Help_default, { help, onClick })
2333
2407
  ] });
2334
2408
  }
2335
2409
  return label;
2336
2410
  };
2337
2411
 
2338
2412
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2339
- var import_components37 = require("@transferwise/components");
2413
+ var import_components39 = require("@transferwise/components");
2340
2414
  var import_react13 = require("react");
2341
2415
  var import_react_intl21 = require("react-intl");
2342
2416
 
@@ -2374,19 +2448,19 @@ var generic_error_messages_default = (0, import_react_intl19.defineMessages)({
2374
2448
  });
2375
2449
 
2376
2450
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
2377
- var import_components36 = require("@transferwise/components");
2378
- var import_jsx_runtime54 = require("react/jsx-runtime");
2451
+ var import_components38 = require("@transferwise/components");
2452
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2379
2453
  function ErrorResult({ state }) {
2380
2454
  const intl = (0, import_react_intl20.useIntl)();
2381
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "m-t-2", children: [
2455
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("p", { className: "m-t-2", children: [
2382
2456
  intl.formatMessage(generic_error_messages_default.genericError),
2383
2457
  "\xA0",
2384
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components36.Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
2458
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_components38.Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
2385
2459
  ] });
2386
2460
  }
2387
2461
 
2388
2462
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2389
- var import_jsx_runtime55 = require("react/jsx-runtime");
2463
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2390
2464
  function BlockSearchRendererComponent({
2391
2465
  id,
2392
2466
  isLoading,
@@ -2399,9 +2473,9 @@ function BlockSearchRendererComponent({
2399
2473
  }) {
2400
2474
  const [hasSearched, setHasSearched] = (0, import_react13.useState)(false);
2401
2475
  const { formatMessage } = (0, import_react_intl21.useIntl)();
2402
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: getMargin(margin), children: [
2403
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2404
- import_components37.Input,
2476
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: getMargin(margin), children: [
2477
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2478
+ import_components39.Input,
2405
2479
  {
2406
2480
  id,
2407
2481
  name: id,
@@ -2417,7 +2491,7 @@ function BlockSearchRendererComponent({
2417
2491
  }
2418
2492
  }
2419
2493
  ) }),
2420
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SearchResultContent, { state, trackEvent })
2494
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SearchResultContent, { state, trackEvent })
2421
2495
  ] });
2422
2496
  }
2423
2497
  function SearchResultContent({
@@ -2426,31 +2500,31 @@ function SearchResultContent({
2426
2500
  }) {
2427
2501
  switch (state.type) {
2428
2502
  case "error":
2429
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorResult, { state });
2503
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ErrorResult, { state });
2430
2504
  case "results":
2431
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SearchResults, { state, trackEvent });
2505
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SearchResults, { state, trackEvent });
2432
2506
  case "noResults":
2433
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EmptySearchResult, { state });
2507
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(EmptySearchResult, { state });
2434
2508
  case "pending":
2435
2509
  default:
2436
2510
  return null;
2437
2511
  }
2438
2512
  }
2439
2513
  function EmptySearchResult({ state }) {
2440
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2514
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components39.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2441
2515
  }
2442
2516
  function SearchResults({
2443
2517
  state,
2444
2518
  trackEvent
2445
2519
  }) {
2446
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.NavigationOptionsList, { children: state.results.map((result) => {
2520
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components39.NavigationOptionsList, { children: state.results.map((result) => {
2447
2521
  const { media } = result;
2448
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2449
- import_components37.NavigationOption,
2522
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2523
+ import_components39.NavigationOption,
2450
2524
  {
2451
2525
  title: result.title,
2452
2526
  content: result.description,
2453
- media: media ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(OptionMedia, { media, preferAvatar: false }) : void 0,
2527
+ media: media ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(OptionMedia, { media, preferAvatar: false }) : void 0,
2454
2528
  showMediaCircle: false,
2455
2529
  showMediaAtAllSizes: true,
2456
2530
  onClick: () => {
@@ -2467,11 +2541,11 @@ function SearchResults({
2467
2541
  var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
2468
2542
 
2469
2543
  // ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
2470
- var import_components38 = require("@transferwise/components");
2544
+ var import_components40 = require("@transferwise/components");
2471
2545
  var import_icons2 = require("@transferwise/icons");
2472
2546
  var import_react14 = require("react");
2473
2547
  var import_react_intl22 = require("react-intl");
2474
- var import_jsx_runtime56 = require("react/jsx-runtime");
2548
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2475
2549
  function InlineSearchRenderer({
2476
2550
  id,
2477
2551
  isLoading,
@@ -2483,18 +2557,18 @@ function InlineSearchRenderer({
2483
2557
  }) {
2484
2558
  const [hasSearched, setHasSearched] = (0, import_react14.useState)(false);
2485
2559
  const intl = (0, import_react_intl22.useIntl)();
2486
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2487
- import_components38.Typeahead,
2560
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2561
+ import_components40.Typeahead,
2488
2562
  {
2489
2563
  id: "typeahead-input-id",
2490
2564
  intl,
2491
2565
  name: "typeahead-input-name",
2492
2566
  size: "md",
2493
2567
  maxHeight: 100,
2494
- footer: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TypeaheadFooter, { state, isLoading }),
2568
+ footer: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TypeaheadFooter, { state, isLoading }),
2495
2569
  multiple: false,
2496
2570
  clearable: false,
2497
- addon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons2.Search, { size: 24 }),
2571
+ addon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons2.Search, { size: 24 }),
2498
2572
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
2499
2573
  minQueryLength: 1,
2500
2574
  onChange: (values) => {
@@ -2531,28 +2605,28 @@ function mapResultToTypeaheadOption(result) {
2531
2605
  function TypeaheadFooter({ state, isLoading }) {
2532
2606
  const { formatMessage } = (0, import_react_intl22.useIntl)();
2533
2607
  if (state.type === "noResults") {
2534
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_components38.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2608
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components40.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2535
2609
  }
2536
2610
  if (state.type === "error") {
2537
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorResult, { state }) });
2611
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ErrorResult, { state }) });
2538
2612
  }
2539
2613
  if (state.type === "pending" || isLoading) {
2540
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2614
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2541
2615
  }
2542
2616
  return null;
2543
2617
  }
2544
2618
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
2545
2619
 
2546
2620
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
2547
- var import_jsx_runtime57 = require("react/jsx-runtime");
2621
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2548
2622
  var SearchRenderer = {
2549
2623
  canRenderType: "search",
2550
- render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
2624
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
2551
2625
  };
2552
2626
  var SearchRenderer_default = SearchRenderer;
2553
2627
 
2554
2628
  // ../renderers/src/SectionRenderer.tsx
2555
- var import_components39 = require("@transferwise/components");
2629
+ var import_components41 = require("@transferwise/components");
2556
2630
 
2557
2631
  // ../renderers/src/utils/getHeaderAction.tsx
2558
2632
  var getHeaderAction2 = (callToAction) => {
@@ -2576,12 +2650,12 @@ var getHeaderAction2 = (callToAction) => {
2576
2650
  };
2577
2651
 
2578
2652
  // ../renderers/src/SectionRenderer.tsx
2579
- var import_jsx_runtime58 = require("react/jsx-runtime");
2653
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2580
2654
  var SectionRenderer = {
2581
2655
  canRenderType: "section",
2582
2656
  render: ({ children, callToAction, margin, title }) => {
2583
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("section", { className: getMargin(margin), children: [
2584
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components39.Header, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
2657
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("section", { className: getMargin(margin), children: [
2658
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_components41.Header, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
2585
2659
  children
2586
2660
  ] });
2587
2661
  }
@@ -2589,8 +2663,8 @@ var SectionRenderer = {
2589
2663
  var SectionRenderer_default = SectionRenderer;
2590
2664
 
2591
2665
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
2592
- var import_components40 = require("@transferwise/components");
2593
- var import_jsx_runtime59 = require("react/jsx-runtime");
2666
+ var import_components42 = require("@transferwise/components");
2667
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2594
2668
  function RadioInputRendererComponent(props) {
2595
2669
  const {
2596
2670
  id,
@@ -2604,8 +2678,8 @@ function RadioInputRendererComponent(props) {
2604
2678
  validationState,
2605
2679
  onSelect
2606
2680
  } = props;
2607
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
2608
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2681
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
2682
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2609
2683
  FieldInput_default,
2610
2684
  {
2611
2685
  id,
@@ -2613,8 +2687,8 @@ function RadioInputRendererComponent(props) {
2613
2687
  help,
2614
2688
  description,
2615
2689
  validation: validationState,
2616
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2617
- import_components40.RadioGroup,
2690
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2691
+ import_components42.RadioGroup,
2618
2692
  {
2619
2693
  name: id,
2620
2694
  radios: options.map((option, index) => ({
@@ -2622,7 +2696,7 @@ function RadioInputRendererComponent(props) {
2622
2696
  value: index,
2623
2697
  secondary: option.description,
2624
2698
  disabled: option.disabled || disabled,
2625
- avatar: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
2699
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
2626
2700
  })),
2627
2701
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
2628
2702
  onChange: onSelect
@@ -2636,9 +2710,9 @@ function RadioInputRendererComponent(props) {
2636
2710
  }
2637
2711
 
2638
2712
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
2639
- var import_components41 = require("@transferwise/components");
2713
+ var import_components43 = require("@transferwise/components");
2640
2714
  var import_react15 = require("react");
2641
- var import_jsx_runtime60 = require("react/jsx-runtime");
2715
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2642
2716
  function TabInputRendererComponent(props) {
2643
2717
  const {
2644
2718
  id,
@@ -2657,8 +2731,8 @@ function TabInputRendererComponent(props) {
2657
2731
  onSelect(0);
2658
2732
  }
2659
2733
  }, [selectedIndex, onSelect, options.length]);
2660
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
2661
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2734
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
2735
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2662
2736
  FieldInput_default,
2663
2737
  {
2664
2738
  id,
@@ -2666,8 +2740,8 @@ function TabInputRendererComponent(props) {
2666
2740
  help,
2667
2741
  description,
2668
2742
  validation: validationState,
2669
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2670
- import_components41.Tabs,
2743
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2744
+ import_components43.Tabs,
2671
2745
  {
2672
2746
  name: id,
2673
2747
  selected: selectedIndex != null ? selectedIndex : 0,
@@ -2675,7 +2749,7 @@ function TabInputRendererComponent(props) {
2675
2749
  title: option.title,
2676
2750
  // if we pass null, we get some props-types console errors
2677
2751
  // eslint-disable-next-line react/jsx-no-useless-fragment
2678
- content: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, {}),
2752
+ content: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_jsx_runtime62.Fragment, {}),
2679
2753
  disabled: option.disabled || disabled
2680
2754
  })),
2681
2755
  onTabSelect: onSelect
@@ -2689,8 +2763,8 @@ function TabInputRendererComponent(props) {
2689
2763
  var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
2690
2764
 
2691
2765
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
2692
- var import_components42 = require("@transferwise/components");
2693
- var import_jsx_runtime61 = require("react/jsx-runtime");
2766
+ var import_components44 = require("@transferwise/components");
2767
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2694
2768
  function SelectInputRendererComponent(props) {
2695
2769
  const {
2696
2770
  id,
@@ -2730,13 +2804,13 @@ function SelectInputRendererComponent(props) {
2730
2804
  } : {
2731
2805
  title: option.title,
2732
2806
  description: option.description,
2733
- icon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
2807
+ icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
2734
2808
  };
2735
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_components42.SelectInputOptionContent, __spreadValues({}, contentProps));
2809
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_components44.SelectInputOptionContent, __spreadValues({}, contentProps));
2736
2810
  };
2737
2811
  const extraProps = { autoComplete };
2738
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
2739
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2812
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
2813
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2740
2814
  FieldInput_default,
2741
2815
  {
2742
2816
  id,
@@ -2744,8 +2818,8 @@ function SelectInputRendererComponent(props) {
2744
2818
  help,
2745
2819
  description,
2746
2820
  validation: validationState,
2747
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2748
- import_components42.SelectInput,
2821
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2822
+ import_components44.SelectInput,
2749
2823
  __spreadValues({
2750
2824
  name: id,
2751
2825
  placeholder,
@@ -2766,8 +2840,8 @@ function SelectInputRendererComponent(props) {
2766
2840
 
2767
2841
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
2768
2842
  var import_react16 = require("react");
2769
- var import_components43 = require("@transferwise/components");
2770
- var import_jsx_runtime62 = require("react/jsx-runtime");
2843
+ var import_components45 = require("@transferwise/components");
2844
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2771
2845
  function SegmentedInputRendererComponent(props) {
2772
2846
  const {
2773
2847
  id,
@@ -2785,8 +2859,8 @@ function SegmentedInputRendererComponent(props) {
2785
2859
  onSelect(0);
2786
2860
  }
2787
2861
  }, [selectedIndex, onSelect, options.length]);
2788
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
2789
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2862
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
2863
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2790
2864
  FieldInput_default,
2791
2865
  {
2792
2866
  id,
@@ -2794,8 +2868,8 @@ function SegmentedInputRendererComponent(props) {
2794
2868
  help,
2795
2869
  description,
2796
2870
  validation: validationState,
2797
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2798
- import_components43.SegmentedControl,
2871
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2872
+ import_components45.SegmentedControl,
2799
2873
  {
2800
2874
  name: `${id}-segmented-control`,
2801
2875
  value: String(selectedIndex),
@@ -2811,44 +2885,98 @@ function SegmentedInputRendererComponent(props) {
2811
2885
  )
2812
2886
  }
2813
2887
  ),
2814
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { id: `${id}-children`, children })
2888
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { id: `${id}-children`, children })
2815
2889
  ] });
2816
2890
  }
2817
2891
  var isValidIndex3 = (index, options) => index !== null && index >= 0 && index < options;
2818
2892
 
2893
+ // ../renderers/src/SelectInputRenderer/RadioItemRendererComponent.tsx
2894
+ var import_components46 = require("@transferwise/components");
2895
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2896
+ function RadioItemRendererComponent(props) {
2897
+ const {
2898
+ id,
2899
+ children,
2900
+ description: rootDescription,
2901
+ disabled: rootDisabled,
2902
+ help,
2903
+ title: rootTitle,
2904
+ options,
2905
+ selectedIndex,
2906
+ validationState,
2907
+ onSelect
2908
+ } = props;
2909
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
2910
+ rootTitle && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2911
+ import_components46.Header,
2912
+ {
2913
+ as: "h2",
2914
+ title: help ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
2915
+ }
2916
+ ),
2917
+ rootDescription && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { children: rootDescription }),
2918
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_components46.List, { children: options.map(
2919
+ ({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2920
+ import_components46.ListItem,
2921
+ __spreadValues({
2922
+ title,
2923
+ subtitle: description,
2924
+ control: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2925
+ import_components46.ListItem.Radio,
2926
+ {
2927
+ name: title,
2928
+ checked: selectedIndex === index,
2929
+ onChange: () => onSelect(index)
2930
+ }
2931
+ ),
2932
+ additionalInfo: getAdditionalText(additionalText),
2933
+ disabled: disabled || rootDisabled,
2934
+ prompt: getInlineAlert(inlineAlert),
2935
+ media: getMedia(media, false)
2936
+ }, getSupportingValues(supportingValues)),
2937
+ title
2938
+ )
2939
+ ) }, `${id}-${selectedIndex}`),
2940
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_components46.InlineAlert, { type: "negative", children: validationState.message }),
2941
+ children
2942
+ ] });
2943
+ }
2944
+
2819
2945
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
2820
- var import_jsx_runtime63 = require("react/jsx-runtime");
2946
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2821
2947
  var SelectInputRenderer = {
2822
2948
  canRenderType: "input-select",
2823
2949
  render: (props) => {
2824
2950
  switch (props.control) {
2825
2951
  case "radio":
2826
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
2952
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
2953
+ case "radio-item":
2954
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RadioItemRendererComponent, __spreadValues({}, props));
2827
2955
  case "tab":
2828
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TabInputRendererComponent, __spreadValues({}, props));
2956
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TabInputRendererComponent, __spreadValues({}, props));
2829
2957
  case "segmented":
2830
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
2958
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
2831
2959
  case "select":
2832
2960
  default:
2833
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
2961
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
2834
2962
  }
2835
2963
  }
2836
2964
  };
2837
2965
  var SelectInputRenderer_default = SelectInputRenderer;
2838
2966
 
2839
2967
  // ../renderers/src/StatusListRenderer.tsx
2840
- var import_components44 = require("@transferwise/components");
2841
- var import_jsx_runtime64 = require("react/jsx-runtime");
2968
+ var import_components47 = require("@transferwise/components");
2969
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2842
2970
  var StatusListRenderer = {
2843
2971
  canRenderType: "status-list",
2844
- render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: getMargin(margin), children: [
2845
- title ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_components44.Header, { title, className: "m-b-2" }) : null,
2846
- items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2847
- import_components44.Summary,
2972
+ render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: getMargin(margin), children: [
2973
+ title ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_components47.Header, { title, className: "m-b-2" }) : null,
2974
+ items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2975
+ import_components47.Summary,
2848
2976
  {
2849
2977
  title: itemTitle,
2850
2978
  description,
2851
- icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DynamicIcon_default, { name: icon.name }) : null,
2979
+ icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DynamicIcon_default, { name: icon.name }) : null,
2852
2980
  status: mapStatus(status),
2853
2981
  action: getSummaryAction(callToAction)
2854
2982
  },
@@ -2900,7 +3028,7 @@ var useCustomTheme = (theme, trackEvent) => {
2900
3028
  };
2901
3029
 
2902
3030
  // ../renderers/src/step/topbar/BackButton.tsx
2903
- var import_components45 = require("@transferwise/components");
3031
+ var import_components48 = require("@transferwise/components");
2904
3032
  var import_icons3 = require("@transferwise/icons");
2905
3033
  var import_react_intl24 = require("react-intl");
2906
3034
 
@@ -2915,31 +3043,31 @@ var back_messages_default = (0, import_react_intl23.defineMessages)({
2915
3043
  });
2916
3044
 
2917
3045
  // ../renderers/src/step/topbar/BackButton.tsx
2918
- var import_jsx_runtime65 = require("react/jsx-runtime");
3046
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2919
3047
  function BackButton({ title, onClick }) {
2920
3048
  const { formatMessage } = (0, import_react_intl24.useIntl)();
2921
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_components45.IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
2922
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
2923
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_icons3.ArrowLeft, {})
3049
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_components48.IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
3050
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
3051
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_icons3.ArrowLeft, {})
2924
3052
  ] });
2925
3053
  }
2926
3054
 
2927
3055
  // ../renderers/src/step/topbar/Toolbar.tsx
2928
- var import_components46 = require("@transferwise/components");
2929
- var import_jsx_runtime66 = require("react/jsx-runtime");
3056
+ var import_components49 = require("@transferwise/components");
3057
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2930
3058
  var Toolbar = ({ items }) => {
2931
- return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
3059
+ return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
2932
3060
  };
2933
3061
  function ToolbarButton(props) {
2934
- return prefersMedia(props.control) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TextToolbarButton, __spreadValues({}, props));
3062
+ return prefersMedia(props.control) ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TextToolbarButton, __spreadValues({}, props));
2935
3063
  }
2936
3064
  function MediaToolbarButton(props) {
2937
3065
  var _a;
2938
3066
  const { context, control, media, accessibilityDescription, disabled, onClick } = props;
2939
3067
  const priority = getIconButtonPriority(control);
2940
3068
  const type = getSentiment(context);
2941
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
2942
- import_components46.IconButton,
3069
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3070
+ import_components49.IconButton,
2943
3071
  {
2944
3072
  className: "df-toolbar-button",
2945
3073
  disabled,
@@ -2948,7 +3076,7 @@ function MediaToolbarButton(props) {
2948
3076
  type,
2949
3077
  onClick,
2950
3078
  children: [
2951
- accessibilityDescription ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "sr-only", children: accessibilityDescription }) : null,
3079
+ accessibilityDescription ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "sr-only", children: accessibilityDescription }) : null,
2952
3080
  media ? (_a = getAddonStart(media)) == null ? void 0 : _a.value : null
2953
3081
  ]
2954
3082
  }
@@ -2959,8 +3087,8 @@ function TextToolbarButton(props) {
2959
3087
  const addonStart = media ? getAddonStart(media) : void 0;
2960
3088
  const priority = getPriority2(control);
2961
3089
  const sentiment = getSentiment(context);
2962
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2963
- import_components46.Button,
3090
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3091
+ import_components49.Button,
2964
3092
  {
2965
3093
  v2: true,
2966
3094
  size: "sm",
@@ -3004,16 +3132,16 @@ var getIconButtonPriority = (control) => {
3004
3132
  };
3005
3133
 
3006
3134
  // ../renderers/src/step/topbar/TopBar.tsx
3007
- var import_jsx_runtime67 = require("react/jsx-runtime");
3135
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3008
3136
  function TopBar({ back, toolbar }) {
3009
- return back || toolbar ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "d-flex m-b-2", children: [
3010
- back ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BackButton, __spreadValues({}, back)) : null,
3011
- toolbar ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Toolbar, __spreadValues({}, toolbar)) : null
3137
+ return back || toolbar ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "d-flex m-b-2", children: [
3138
+ back ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(BackButton, __spreadValues({}, back)) : null,
3139
+ toolbar ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Toolbar, __spreadValues({}, toolbar)) : null
3012
3140
  ] }) : null;
3013
3141
  }
3014
3142
 
3015
3143
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
3016
- var import_jsx_runtime68 = require("react/jsx-runtime");
3144
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3017
3145
  var SplashCelebrationStepRenderer = {
3018
3146
  canRenderType: "step",
3019
3147
  canRender: ({ control }) => control === "splash-celebration",
@@ -3023,15 +3151,15 @@ function SplashCelebrationStepRendererComponent(props) {
3023
3151
  const { back, toolbar, children, footer, trackEvent } = props;
3024
3152
  const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
3025
3153
  useCustomTheme("forest-green", trackEvent);
3026
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "splash-screen m-t-5", children: [
3027
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TopBar, { back, toolbar }),
3154
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "splash-screen m-t-5", children: [
3155
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TopBar, { back, toolbar }),
3028
3156
  children,
3029
- hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
3157
+ hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
3030
3158
  ] });
3031
3159
  }
3032
3160
 
3033
3161
  // ../renderers/src/step/SplashStepRenderer.tsx
3034
- var import_jsx_runtime69 = require("react/jsx-runtime");
3162
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3035
3163
  var SplashStepRenderer = {
3036
3164
  canRenderType: "step",
3037
3165
  canRender: ({ control }) => control === "splash",
@@ -3040,16 +3168,16 @@ var SplashStepRenderer = {
3040
3168
  function SplashStepRendererComponent(props) {
3041
3169
  const { back, toolbar, children, footer } = props;
3042
3170
  const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
3043
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "splash-screen m-t-5", children: [
3044
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TopBar, { back, toolbar }),
3171
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "splash-screen m-t-5", children: [
3172
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TopBar, { back, toolbar }),
3045
3173
  children,
3046
- hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
3174
+ hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
3047
3175
  ] });
3048
3176
  }
3049
3177
 
3050
3178
  // ../renderers/src/step/StepRenderer.tsx
3051
- var import_components47 = require("@transferwise/components");
3052
- var import_jsx_runtime70 = require("react/jsx-runtime");
3179
+ var import_components50 = require("@transferwise/components");
3180
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3053
3181
  var StepRenderer = {
3054
3182
  canRenderType: "step",
3055
3183
  render: StepRendererComponent
@@ -3057,19 +3185,19 @@ var StepRenderer = {
3057
3185
  function StepRendererComponent(props) {
3058
3186
  const { back, description, error, title, children, toolbar, footer, tags } = props;
3059
3187
  const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
3060
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
3061
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TopBar, { back, toolbar }),
3062
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Header10, { title, description, tags }) }) : void 0,
3063
- error ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
3188
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { children: [
3189
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TopBar, { back, toolbar }),
3190
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Header11, { title, description, tags }) }) : void 0,
3191
+ error ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_components50.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
3064
3192
  children,
3065
- hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
3193
+ hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
3066
3194
  ] });
3067
3195
  }
3068
- var Header10 = ({ title, description, tags }) => {
3196
+ var Header11 = ({ title, description, tags }) => {
3069
3197
  const { titleType, alignmentClassName } = getHeaderStyle(tags);
3070
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
3071
- title ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Title, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
3072
- description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
3199
+ title ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_components50.Title, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
3200
+ description ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
3073
3201
  ] });
3074
3202
  };
3075
3203
  var getHeaderStyle = (tags) => {
@@ -3080,36 +3208,36 @@ var getHeaderStyle = (tags) => {
3080
3208
  };
3081
3209
 
3082
3210
  // ../renderers/src/TabsRenderer.tsx
3083
- var import_components48 = require("@transferwise/components");
3211
+ var import_components51 = require("@transferwise/components");
3084
3212
  var import_react18 = require("react");
3085
- var import_jsx_runtime71 = require("react/jsx-runtime");
3213
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3086
3214
  var TabsRenderer = {
3087
3215
  canRenderType: "tabs",
3088
3216
  render: (props) => {
3089
3217
  switch (props.control) {
3090
3218
  case "segmented":
3091
3219
  if (props.tabs.length > 3) {
3092
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TabsRendererComponent, __spreadValues({}, props));
3220
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(TabsRendererComponent, __spreadValues({}, props));
3093
3221
  }
3094
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
3222
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
3095
3223
  case "chips":
3096
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
3224
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
3097
3225
  default:
3098
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TabsRendererComponent, __spreadValues({}, props));
3226
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(TabsRendererComponent, __spreadValues({}, props));
3099
3227
  }
3100
3228
  }
3101
3229
  };
3102
3230
  function TabsRendererComponent({ uid, margin, tabs }) {
3103
3231
  const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
3104
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3105
- import_components48.Tabs,
3232
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3233
+ import_components51.Tabs,
3106
3234
  {
3107
3235
  name: uid,
3108
3236
  selected: selectedIndex != null ? selectedIndex : 0,
3109
3237
  tabs: tabs.map((option) => ({
3110
3238
  title: option.title,
3111
3239
  disabled: false,
3112
- content: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "m-t-2", children: [
3240
+ content: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "m-t-2", children: [
3113
3241
  " ",
3114
3242
  option.children,
3115
3243
  " "
@@ -3122,9 +3250,9 @@ function TabsRendererComponent({ uid, margin, tabs }) {
3122
3250
  function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
3123
3251
  var _a;
3124
3252
  const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
3125
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: getMargin(margin), children: [
3126
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3127
- import_components48.SegmentedControl,
3253
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: getMargin(margin), children: [
3254
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3255
+ import_components51.SegmentedControl,
3128
3256
  {
3129
3257
  name: uid,
3130
3258
  value: String(selectedIndex),
@@ -3138,31 +3266,31 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
3138
3266
  onChange: (value) => setSelectedIndex(Number(value))
3139
3267
  }
3140
3268
  ),
3141
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3269
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3142
3270
  ] });
3143
3271
  }
3144
3272
  function ChipsTabsRendererComponent({ margin, tabs }) {
3145
3273
  var _a;
3146
3274
  const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
3147
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: getMargin(margin), children: [
3148
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3149
- import_components48.Chips,
3275
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: getMargin(margin), children: [
3276
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3277
+ import_components51.Chips,
3150
3278
  {
3151
3279
  chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
3152
3280
  selected: selectedIndex,
3153
3281
  onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
3154
3282
  }
3155
3283
  ) }),
3156
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3284
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
3157
3285
  ] });
3158
3286
  }
3159
3287
 
3160
3288
  // ../renderers/src/TextInputRenderer.tsx
3161
- var import_components50 = require("@transferwise/components");
3289
+ var import_components53 = require("@transferwise/components");
3162
3290
 
3163
3291
  // ../renderers/src/components/VariableTextInput.tsx
3164
- var import_components49 = require("@transferwise/components");
3165
- var import_jsx_runtime72 = require("react/jsx-runtime");
3292
+ var import_components52 = require("@transferwise/components");
3293
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3166
3294
  var commonKeys = [
3167
3295
  "autoComplete",
3168
3296
  "autoCapitalize",
@@ -3181,12 +3309,12 @@ function VariableTextInput(inputProps) {
3181
3309
  const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
3182
3310
  switch (control) {
3183
3311
  case "email":
3184
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
3312
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
3185
3313
  case "password":
3186
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
3314
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
3187
3315
  case "numeric": {
3188
3316
  const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
3189
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3317
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3190
3318
  TextInput,
3191
3319
  __spreadProps(__spreadValues({}, numericProps), {
3192
3320
  onChange: (newValue) => {
@@ -3197,21 +3325,21 @@ function VariableTextInput(inputProps) {
3197
3325
  );
3198
3326
  }
3199
3327
  case "phone-number":
3200
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_components49.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
3328
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components52.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
3201
3329
  default: {
3202
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
3330
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
3203
3331
  }
3204
3332
  }
3205
3333
  }
3206
3334
  function TextInput(props) {
3207
3335
  const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
3208
- const InputWithPattern = control === "textarea" ? import_components49.TextareaWithDisplayFormat : import_components49.InputWithDisplayFormat;
3209
- const InputWithoutPattern = control === "textarea" ? import_components49.TextArea : import_components49.Input;
3210
- return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
3336
+ const InputWithPattern = control === "textarea" ? import_components52.TextareaWithDisplayFormat : import_components52.InputWithDisplayFormat;
3337
+ const InputWithoutPattern = control === "textarea" ? import_components52.TextArea : import_components52.Input;
3338
+ return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
3211
3339
  }
3212
3340
 
3213
3341
  // ../renderers/src/TextInputRenderer.tsx
3214
- var import_jsx_runtime73 = require("react/jsx-runtime");
3342
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3215
3343
  var TextInputRenderer = {
3216
3344
  canRenderType: "input-text",
3217
3345
  render: (props) => {
@@ -3244,7 +3372,7 @@ var TextInputRenderer = {
3244
3372
  }
3245
3373
  }
3246
3374
  });
3247
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3375
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3248
3376
  FieldInput_default,
3249
3377
  {
3250
3378
  id,
@@ -3252,7 +3380,7 @@ var TextInputRenderer = {
3252
3380
  description,
3253
3381
  validation: validationState,
3254
3382
  help,
3255
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_components50.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
3383
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
3256
3384
  }
3257
3385
  );
3258
3386
  }
@@ -3260,13 +3388,13 @@ var TextInputRenderer = {
3260
3388
  var TextInputRenderer_default = TextInputRenderer;
3261
3389
 
3262
3390
  // ../renderers/src/UploadInputRenderer.tsx
3263
- var import_components51 = require("@transferwise/components");
3391
+ var import_components54 = require("@transferwise/components");
3264
3392
 
3265
3393
  // ../renderers/src/utils/getRandomId.ts
3266
3394
  var getRandomId = () => Math.random().toString(36).substring(2);
3267
3395
 
3268
3396
  // ../renderers/src/UploadInputRenderer.tsx
3269
- var import_jsx_runtime74 = require("react/jsx-runtime");
3397
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3270
3398
  var UploadInputRenderer = {
3271
3399
  canRenderType: "input-upload",
3272
3400
  render: (props) => {
@@ -3282,15 +3410,15 @@ var UploadInputRenderer = {
3282
3410
  };
3283
3411
  return (
3284
3412
  // We don't pass help here as there is no sensible place to display it
3285
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3413
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3286
3414
  UploadFieldInput_default,
3287
3415
  {
3288
3416
  id,
3289
3417
  label: void 0,
3290
3418
  description: void 0,
3291
3419
  validation: validationState,
3292
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3293
- import_components51.UploadInput,
3420
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3421
+ import_components54.UploadInput,
3294
3422
  {
3295
3423
  id,
3296
3424
  description,
@@ -3300,7 +3428,7 @@ var UploadInputRenderer = {
3300
3428
  {
3301
3429
  id: "my-file",
3302
3430
  filename: value.name,
3303
- status: (validationState == null ? void 0 : validationState.status) === "invalid" ? import_components51.Status.FAILED : import_components51.Status.SUCCEEDED
3431
+ status: (validationState == null ? void 0 : validationState.status) === "invalid" ? import_components54.Status.FAILED : import_components54.Status.SUCCEEDED
3304
3432
  }
3305
3433
  ] : void 0,
3306
3434
  fileTypes: acceptsToFileTypes(accepts),
@@ -3355,7 +3483,7 @@ var LargeUploadRenderer = {
3355
3483
  };
3356
3484
  const filetypes = acceptsToFileTypes(accepts);
3357
3485
  const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
3358
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3486
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3359
3487
  FieldInput_default,
3360
3488
  {
3361
3489
  id,
@@ -3363,8 +3491,8 @@ var LargeUploadRenderer = {
3363
3491
  description,
3364
3492
  validation: validationState,
3365
3493
  help,
3366
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3367
- import_components51.Upload,
3494
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3495
+ import_components54.Upload,
3368
3496
  __spreadProps(__spreadValues({}, uploadProps), {
3369
3497
  usAccept,
3370
3498
  usDisabled: disabled,
@@ -3379,24 +3507,19 @@ var LargeUploadRenderer = {
3379
3507
  };
3380
3508
 
3381
3509
  // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
3382
- var import_components54 = require("@transferwise/components");
3383
-
3384
- // ../renderers/src/NewListItem/getInlineAlert.tsx
3385
- var import_components52 = require("@transferwise/components");
3386
- var import_jsx_runtime75 = require("react/jsx-runtime");
3387
- var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components52.ListItem.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
3510
+ var import_components56 = require("@transferwise/components");
3388
3511
 
3389
3512
  // ../renderers/src/NewListItem/getAdditionalInfo.tsx
3390
- var import_components53 = require("@transferwise/components");
3391
- var import_jsx_runtime76 = require("react/jsx-runtime");
3513
+ var import_components55 = require("@transferwise/components");
3514
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3392
3515
  var getAdditionalInfo = (additionalInfo) => {
3393
3516
  if (!additionalInfo) {
3394
3517
  return void 0;
3395
3518
  }
3396
3519
  const { href, text, onClick } = additionalInfo;
3397
3520
  if (href || onClick) {
3398
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3399
- import_components53.ListItem.AdditionalInfo,
3521
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3522
+ import_components55.ListItem.AdditionalInfo,
3400
3523
  {
3401
3524
  action: {
3402
3525
  label: text,
@@ -3407,7 +3530,7 @@ var getAdditionalInfo = (additionalInfo) => {
3407
3530
  }
3408
3531
  );
3409
3532
  }
3410
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.ListItem.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
3533
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_components55.ListItem.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
3411
3534
  };
3412
3535
 
3413
3536
  // ../renderers/src/NewListItem/shouldUseAvatar.ts
@@ -3417,13 +3540,13 @@ var shouldUseAvatar = (control, tags) => {
3417
3540
  };
3418
3541
 
3419
3542
  // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
3420
- var import_jsx_runtime77 = require("react/jsx-runtime");
3543
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3421
3544
  var DecisionRenderer2 = {
3422
3545
  canRenderType: "decision",
3423
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList: renderDecisionList2 }))
3546
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList: renderDecisionList2 }))
3424
3547
  };
3425
3548
  var renderDecisionList2 = ({ options, control }) => {
3426
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: options.map((_a) => {
3549
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, { children: options.map((_a) => {
3427
3550
  var _b = _a, { disabled, onClick } = _b, rest = __objRest(_b, ["disabled", "onClick"]);
3428
3551
  const {
3429
3552
  description,
@@ -3435,8 +3558,8 @@ var renderDecisionList2 = ({ options, control }) => {
3435
3558
  supportingValues,
3436
3559
  tags
3437
3560
  } = rest;
3438
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3439
- import_components54.ListItem,
3561
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3562
+ import_components56.ListItem,
3440
3563
  {
3441
3564
  title: itemTitle,
3442
3565
  subtitle: description,
@@ -3447,7 +3570,7 @@ var renderDecisionList2 = ({ options, control }) => {
3447
3570
  media: getMedia(media, shouldUseAvatar(control, tags)),
3448
3571
  prompt: getInlineAlert(inlineAlert),
3449
3572
  additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
3450
- control: href ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components54.ListItem.Navigation, { href, target: "_blank" }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components54.ListItem.Navigation, { onClick })
3573
+ control: href ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components56.ListItem.Navigation, { href, target: "_blank" }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components56.ListItem.Navigation, { onClick })
3451
3574
  },
3452
3575
  JSON.stringify(rest)
3453
3576
  );
@@ -3456,11 +3579,11 @@ var renderDecisionList2 = ({ options, control }) => {
3456
3579
  var NewDecisionRenderer_default = DecisionRenderer2;
3457
3580
 
3458
3581
  // ../renderers/src/NewListItem/NewListRenderer.tsx
3459
- var import_components56 = require("@transferwise/components");
3582
+ var import_components58 = require("@transferwise/components");
3460
3583
 
3461
3584
  // ../renderers/src/NewListItem/getCTAControl.tsx
3462
- var import_components55 = require("@transferwise/components");
3463
- var import_jsx_runtime78 = require("react/jsx-runtime");
3585
+ var import_components57 = require("@transferwise/components");
3586
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3464
3587
  var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
3465
3588
  if (!callToAction) {
3466
3589
  return void 0;
@@ -3468,8 +3591,8 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
3468
3591
  const { accessibilityDescription, href, title, onClick } = callToAction;
3469
3592
  const priority = ctaSecondary ? "secondary" : "secondary-neutral";
3470
3593
  if (href) {
3471
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3472
- import_components55.ListItem.Button,
3594
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3595
+ import_components57.ListItem.Button,
3473
3596
  {
3474
3597
  href,
3475
3598
  partiallyInteractive: !fullyInteractive,
@@ -3479,8 +3602,8 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
3479
3602
  }
3480
3603
  );
3481
3604
  }
3482
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3483
- import_components55.ListItem.Button,
3605
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3606
+ import_components57.ListItem.Button,
3484
3607
  {
3485
3608
  "aria-description": accessibilityDescription,
3486
3609
  partiallyInteractive: !fullyInteractive,
@@ -3492,11 +3615,11 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
3492
3615
  };
3493
3616
 
3494
3617
  // ../renderers/src/NewListItem/NewListRenderer.tsx
3495
- var import_jsx_runtime79 = require("react/jsx-runtime");
3618
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3496
3619
  var ListRenderer2 = {
3497
3620
  canRenderType: "list",
3498
- render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: getMargin(margin), children: [
3499
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Header7, { title, callToAction }),
3621
+ render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: getMargin(margin), children: [
3622
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Header7, { title, callToAction }),
3500
3623
  items.map((item) => {
3501
3624
  var _a, _b;
3502
3625
  const {
@@ -3513,8 +3636,8 @@ var ListRenderer2 = {
3513
3636
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
3514
3637
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
3515
3638
  };
3516
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3517
- import_components56.ListItem,
3639
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3640
+ import_components58.ListItem,
3518
3641
  {
3519
3642
  title: itemTitle,
3520
3643
  subtitle: description,
@@ -3533,9 +3656,9 @@ var ListRenderer2 = {
3533
3656
  var NewListRenderer_default = ListRenderer2;
3534
3657
 
3535
3658
  // ../renderers/src/NewListItem/NewReviewRenderer.tsx
3536
- var import_components57 = require("@transferwise/components");
3659
+ var import_components59 = require("@transferwise/components");
3537
3660
  var import_icons4 = require("@transferwise/icons");
3538
- var import_jsx_runtime80 = require("react/jsx-runtime");
3661
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3539
3662
  var IGNORED_CONTROLS = [
3540
3663
  "horizontal",
3541
3664
  "horizontal-end-aligned",
@@ -3545,8 +3668,8 @@ var IGNORED_CONTROLS = [
3545
3668
  var ReviewRenderer2 = {
3546
3669
  canRenderType: "review",
3547
3670
  canRender: ({ control }) => control ? !IGNORED_CONTROLS.includes(control) : true,
3548
- render: ({ callToAction, control, margin, fields, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: getMargin(margin), children: [
3549
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Header7, { title, callToAction }),
3671
+ render: ({ callToAction, control, margin, fields, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: getMargin(margin), children: [
3672
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Header7, { title, callToAction }),
3550
3673
  fields.map((field) => {
3551
3674
  var _a, _b, _c;
3552
3675
  const {
@@ -3563,8 +3686,8 @@ var ReviewRenderer2 = {
3563
3686
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
3564
3687
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
3565
3688
  };
3566
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3567
- import_components57.ListItem,
3689
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3690
+ import_components59.ListItem,
3568
3691
  {
3569
3692
  title: value,
3570
3693
  subtitle: label,
@@ -3583,27 +3706,27 @@ var getHelpControl = (help) => {
3583
3706
  if (!help) {
3584
3707
  return void 0;
3585
3708
  }
3586
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components57.Popover, { content: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components57.Markdown, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components57.ListItem.IconButton, { partiallyInteractive: true, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_icons4.QuestionMarkCircle, {}) }) });
3709
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_components59.Popover, { content: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_components59.Markdown, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_components59.ListItem.IconButton, { partiallyInteractive: true, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_icons4.QuestionMarkCircle, {}) }) });
3587
3710
  };
3588
3711
  var NewReviewRenderer_default = ReviewRenderer2;
3589
3712
 
3590
3713
  // ../renderers/src/NewListItem/NewStatusListRenderer.tsx
3591
- var import_components58 = require("@transferwise/components");
3592
- var import_jsx_runtime81 = require("react/jsx-runtime");
3714
+ var import_components60 = require("@transferwise/components");
3715
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3593
3716
  var NewStatusListRenderer = {
3594
3717
  canRenderType: "status-list",
3595
- render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: getMargin(margin), children: [
3596
- title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components58.Header, { title }) : null,
3718
+ render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: getMargin(margin), children: [
3719
+ title ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_components60.Header, { title }) : null,
3597
3720
  items.map((item) => {
3598
3721
  const { callToAction, description, icon, status, title: itemTitle } = item;
3599
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3600
- import_components58.ListItem,
3722
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3723
+ import_components60.ListItem,
3601
3724
  {
3602
3725
  title: itemTitle,
3603
3726
  subtitle: description,
3604
- media: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components58.AvatarView, { badge: { status: mapStatus2(status) }, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DynamicIcon_default, { name: icon.name }) }) : void 0,
3605
- additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3606
- import_components58.ListItem.AdditionalInfo,
3727
+ media: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_components60.AvatarView, { badge: { status: mapStatus2(status) }, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DynamicIcon_default, { name: icon.name }) }) : void 0,
3728
+ additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3729
+ import_components60.ListItem.AdditionalInfo,
3607
3730
  {
3608
3731
  action: {
3609
3732
  href: callToAction.href,
@@ -3632,7 +3755,7 @@ var mapStatus2 = (status) => {
3632
3755
  var NewStatusListRenderer_default = NewStatusListRenderer;
3633
3756
 
3634
3757
  // ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
3635
- var import_components59 = require("@transferwise/components");
3758
+ var import_components61 = require("@transferwise/components");
3636
3759
 
3637
3760
  // ../renderers/src/utils/isButtonPriority.ts
3638
3761
  var validPriorities = ["primary", "secondary", "secondary-neutral", "tertiary"];
@@ -3640,7 +3763,7 @@ var isButtonPriority = (control) => validPriorities.includes(control);
3640
3763
 
3641
3764
  // ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
3642
3765
  var import_react19 = require("react");
3643
- var import_jsx_runtime82 = require("react/jsx-runtime");
3766
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3644
3767
  var ButtonRendererV2 = {
3645
3768
  canRenderType: "button",
3646
3769
  render: ButtonComponent2
@@ -3654,8 +3777,8 @@ function ButtonComponent2(props) {
3654
3777
  }
3655
3778
  }, [stepLoadingState]);
3656
3779
  const loading = spinny && stepLoadingState !== "idle";
3657
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3658
- import_components59.Button,
3780
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3781
+ import_components61.Button,
3659
3782
  {
3660
3783
  v2: true,
3661
3784
  block: true,
@@ -3677,17 +3800,17 @@ var getSentiment2 = (context) => context === "negative" ? "negative" : "default"
3677
3800
  var getPriority3 = (control) => control && isButtonPriority(control) ? control : "secondary";
3678
3801
 
3679
3802
  // ../renderers/src/ProgressRenderer.tsx
3680
- var import_components60 = require("@transferwise/components");
3681
- var import_jsx_runtime83 = require("react/jsx-runtime");
3803
+ var import_components62 = require("@transferwise/components");
3804
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3682
3805
  var ProgressRenderer = {
3683
3806
  canRenderType: "progress",
3684
3807
  render: ({ uid, title, help, progress, progressText, margin, description }) => {
3685
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3686
- import_components60.ProgressBar,
3808
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3809
+ import_components62.ProgressBar,
3687
3810
  {
3688
3811
  id: uid,
3689
3812
  className: getMargin(margin),
3690
- title: title && help ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(LabelContentWithHelp, { text: title, help }) : title,
3813
+ title: title && help ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(LabelContentWithHelp, { text: title, help }) : title,
3691
3814
  description,
3692
3815
  progress: {
3693
3816
  max: 1,
@@ -3751,7 +3874,7 @@ var getWiseRenderers = () => [
3751
3874
  ];
3752
3875
 
3753
3876
  // src/dynamicFlow/renderers.ts
3754
- var Header12 = Header7;
3877
+ var Header13 = Header7;
3755
3878
  var Media2 = Media;
3756
3879
  var getMargin2 = getMargin;
3757
3880
  var getListItemRenderers2 = getListItemRenderers;
@@ -4627,7 +4750,7 @@ var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
4627
4750
  // src/dynamicFlow/telemetry/app-version.ts
4628
4751
  var appVersion = (
4629
4752
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
4630
- typeof process !== "undefined" ? "4.37.0" : "0.0.0"
4753
+ typeof process !== "undefined" ? "4.38.1" : "0.0.0"
4631
4754
  );
4632
4755
 
4633
4756
  // src/dynamicFlow/telemetry/getLogEvent.ts
@@ -4682,12 +4805,12 @@ var messages_default = (0, import_react_intl25.defineMessages)({
4682
4805
  });
4683
4806
 
4684
4807
  // src/dynamicFlow/DynamicFlow.tsx
4685
- var import_jsx_runtime84 = require("react/jsx-runtime");
4808
+ var import_jsx_runtime86 = require("react/jsx-runtime");
4686
4809
  var wiseRenderers = getWiseRenderers();
4687
4810
  function DynamicFlowLegacy(props) {
4688
4811
  const { customFetch = globalThis.fetch } = props;
4689
4812
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
4690
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
4813
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
4691
4814
  }
4692
4815
  function DynamicFlowRevamp(props) {
4693
4816
  const {
@@ -4724,7 +4847,7 @@ function DynamicFlowRevamp(props) {
4724
4847
  onLink,
4725
4848
  onCopy
4726
4849
  });
4727
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4850
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4728
4851
  }
4729
4852
  var DynamicForm = (0, import_react20.forwardRef)(function DynamicForm2(props, ref) {
4730
4853
  const {
@@ -4761,7 +4884,7 @@ var DynamicForm = (0, import_react20.forwardRef)(function DynamicForm2(props, re
4761
4884
  onLink,
4762
4885
  onCopy
4763
4886
  });
4764
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4887
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4765
4888
  });
4766
4889
  var useWiseHttpClient = (httpClient) => {
4767
4890
  const { locale } = (0, import_react_intl26.useIntl)();