@wise/dynamic-flow-client-internal 5.32.0 → 5.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/build/dynamicFlow/DynamicFlow.js +11 -0
  2. package/build/dynamicFlow/DynamicFlowModal.js +21 -0
  3. package/build/dynamicFlow/DynamicFlowWiseProps.js +1 -0
  4. package/build/dynamicFlow/DynamicFlowWithRef.js +19 -0
  5. package/build/dynamicFlow/context-menu/useContextMenu.js +33 -0
  6. package/build/dynamicFlow/context-menu/useDFContextMenu.js +135 -0
  7. package/build/dynamicFlow/context-menu/useDFContextMenu.test.js +101 -0
  8. package/build/dynamicFlow/getMergedRenderers.js +36 -0
  9. package/build/dynamicFlow/messages.js +13 -0
  10. package/build/dynamicFlow/renderers.js +10 -0
  11. package/build/dynamicFlow/telemetry/app-version.js +4 -0
  12. package/build/dynamicFlow/telemetry/dispatchAnalyticsEvent.js +8 -0
  13. package/build/dynamicFlow/telemetry/getLogEvent.js +22 -0
  14. package/build/dynamicFlow/telemetry/getTrackEvent.js +39 -0
  15. package/build/dynamicFlow/telemetry/index.js +2 -0
  16. package/build/dynamicFlow/useCreateSnackBar.js +9 -0
  17. package/build/dynamicFlow/useOnCopy.js +16 -0
  18. package/build/dynamicFlow/useWiseHttpClient.js +24 -0
  19. package/build/dynamicFlow/useWiseToCoreProps.js +42 -0
  20. package/build/i18n/cs.json +2 -2
  21. package/build/i18n/hu.json +2 -2
  22. package/build/i18n/index.js +43 -0
  23. package/build/i18n/it.json +2 -2
  24. package/build/i18n/ja.json +2 -2
  25. package/build/i18n/nl.json +2 -2
  26. package/build/i18n/pl.json +2 -2
  27. package/build/i18n/pt.json +2 -2
  28. package/build/i18n/ro.json +2 -2
  29. package/build/i18n/ru.json +2 -2
  30. package/build/i18n/zh_HK.json +2 -2
  31. package/build/index.js +6 -0
  32. package/build/main.js +568 -499
  33. package/build/main.mjs +418 -349
  34. package/build/stories/ButtonLoader.story.js +109 -0
  35. package/build/stories/ContainerQueries.story.js +74 -0
  36. package/build/stories/DynamicFlow.story.js +37 -0
  37. package/build/stories/DynamicFlowWithRef.story.js +72 -0
  38. package/build/stories/Editable.story.js +58 -0
  39. package/build/stories/Initialisation.story.js +33 -0
  40. package/build/stories/PinnedButtons.story.js +94 -0
  41. package/build/stories/SCAIntegration.story.js +67 -0
  42. package/build/stories/utils/fixtureHttpClient.js +59 -0
  43. package/build/test-utils/NeptuneProviders.js +11 -0
  44. package/build/test-utils/index.js +4 -0
  45. package/build/test-utils/respond-with.js +6 -0
  46. package/build/test-utils/rtl-utils.js +7 -0
  47. package/build/test-utils/wait.js +3 -0
  48. package/build/tests/DynamicFlow.test.js +177 -0
  49. package/build/tests/HideStepTitle.test.js +58 -0
  50. package/build/tests/RequestCache.test.js +34 -0
  51. package/build/tests/SCARejectionHandling.test.js +71 -0
  52. package/build/tests/Subflow.Wise.test.js +650 -0
  53. package/build/tests/events.test.js +124 -0
  54. package/build/tests/logging.test.js +12 -0
  55. package/build/tests/onNotification.test.js +96 -0
  56. package/build/tests/renderers/ControlAndTags.test.js +225 -0
  57. package/build/tests/renderers/ImageRenderer.test.js +129 -0
  58. package/build/tests/renderers/RadioInputRendererComponent.test.js +89 -0
  59. package/build/tests/renderers/ReviewRenderer.test.js +41 -0
  60. package/build/tests/renderers/TextInputRenderer.test.js +245 -0
  61. package/build/tests/renderers/TimeZoneHeader.test.js +19 -0
  62. package/build/tests/renderers/UploadInputRenderer.maxSize.test.js +22 -0
  63. package/build/tests/renderers/value-utils.test.js +24 -0
  64. package/build/tsconfig.types.tsbuildinfo +1 -1
  65. package/package.json +6 -5
package/build/main.js CHANGED
@@ -146,7 +146,7 @@ var import_dynamic_flow_client4 = require("@wise/dynamic-flow-client");
146
146
  // src/dynamicFlow/telemetry/app-version.ts
147
147
  var appVersion = (
148
148
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
149
- typeof process !== "undefined" ? "5.32.0" : "0.0.0"
149
+ typeof process !== "undefined" ? "5.33.0" : "0.0.0"
150
150
  );
151
151
 
152
152
  // src/dynamicFlow/context-menu/useContextMenu.tsx
@@ -3811,23 +3811,6 @@ function ColumnsRendererComponent(props) {
3811
3811
  }
3812
3812
  var ColumnsRenderer_default = ColumnsRenderer;
3813
3813
 
3814
- // ../renderers/src/components/VariableDateInput.tsx
3815
- var import_components23 = require("@transferwise/components");
3816
-
3817
- // ../renderers/src/hooks/useAvailabilityRules.ts
3818
- var import_react11 = require("react");
3819
- var import_react_intl13 = require("react-intl");
3820
-
3821
- // ../renderers/src/messages/date-input.messages.ts
3822
- var import_react_intl12 = require("react-intl");
3823
- var date_input_messages_default = (0, import_react_intl12.defineMessages)({
3824
- unavailableDates: {
3825
- id: "df.wise.DateInput.unavailableDates",
3826
- defaultMessage: "Some dates are unavailable.",
3827
- description: "General explanation shown below a calendar containing unavailable dates"
3828
- }
3829
- });
3830
-
3831
3814
  // ../renderers/src/validators/type-validators.ts
3832
3815
  var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
3833
3816
 
@@ -3856,6 +3839,23 @@ var dateToDateString = (date) => {
3856
3839
  return [year, formattedMonth, formattedDay].join("-");
3857
3840
  };
3858
3841
 
3842
+ // ../renderers/src/DateInputRenderer/DateLookupControl.tsx
3843
+ var import_components23 = require("@transferwise/components");
3844
+
3845
+ // ../renderers/src/hooks/useAvailabilityRules.ts
3846
+ var import_react11 = require("react");
3847
+ var import_react_intl13 = require("react-intl");
3848
+
3849
+ // ../renderers/src/messages/date-input.messages.ts
3850
+ var import_react_intl12 = require("react-intl");
3851
+ var date_input_messages_default = (0, import_react_intl12.defineMessages)({
3852
+ unavailableDates: {
3853
+ id: "df.wise.DateInput.unavailableDates",
3854
+ defaultMessage: "Some dates are unavailable.",
3855
+ description: "General explanation shown below a calendar containing unavailable dates"
3856
+ }
3857
+ });
3858
+
3859
3859
  // ../renderers/src/hooks/useAvailabilityRules.ts
3860
3860
  var useAvailabilityRules = (availability) => {
3861
3861
  var _a, _b;
@@ -3863,7 +3863,7 @@ var useAvailabilityRules = (availability) => {
3863
3863
  const [focusedDate, setFocusedDate] = (0, import_react11.useState)(null);
3864
3864
  const unavailableMessage = (_b = (_a = focusedDate ? getUnavailableDateReason(focusedDate, availability) : null) != null ? _a : availability == null ? void 0 : availability.message) != null ? _b : formatMessage(date_input_messages_default.unavailableDates);
3865
3865
  const onDateSelect = ({ date }) => {
3866
- setFocusedDate(date);
3866
+ setFocusedDate((current) => (current == null ? void 0 : current.getTime()) === date.getTime() ? current : date);
3867
3867
  };
3868
3868
  return {
3869
3869
  disabledRules: mapAvailabilityToDisabledRules(availability, unavailableMessage),
@@ -3911,64 +3911,124 @@ var matchesDateRule = (date, weekday, rule) => {
3911
3911
  };
3912
3912
  var isDate = (date) => date !== null;
3913
3913
 
3914
- // ../renderers/src/components/VariableDateInput.tsx
3914
+ // ../renderers/src/DateInputRenderer/DateLookupControl.tsx
3915
3915
  var import_jsx_runtime46 = require("react/jsx-runtime");
3916
- function VariableDateInput({
3917
- control,
3918
- inputProps
3919
- }) {
3920
- const {
3921
- autoComplete,
3922
- availability,
3923
- minimumDate,
3924
- maximumDate,
3925
- placeholder,
3926
- disabled,
3927
- onBlur,
3928
- onChange,
3929
- onFocus
3930
- } = inputProps;
3916
+ var DateLookupControl = ({
3917
+ value,
3918
+ minimumDate,
3919
+ maximumDate,
3920
+ placeholder,
3921
+ disabled,
3922
+ availability,
3923
+ onChange,
3924
+ onBlur,
3925
+ onFocus
3926
+ }) => {
3931
3927
  const { disabledRules, onDateSelect, resetFocusedDate } = useAvailabilityRules(availability);
3932
- if (control === "date-lookup") {
3933
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3934
- import_components23.DateLookup,
3928
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3929
+ import_components23.DateLookup,
3930
+ {
3931
+ value: dateStringToDateOrNull(value),
3932
+ min: dateStringToDateOrNull(minimumDate),
3933
+ max: dateStringToDateOrNull(maximumDate),
3934
+ placeholder,
3935
+ disabled,
3936
+ disabledRules,
3937
+ onChange: (date) => {
3938
+ onChange(date !== null ? dateToDateString(date) : null);
3939
+ },
3940
+ onDateSelect,
3941
+ onBlur,
3942
+ onFocus: () => {
3943
+ resetFocusedDate();
3944
+ onFocus();
3945
+ }
3946
+ }
3947
+ );
3948
+ };
3949
+
3950
+ // ../renderers/src/DateInputRenderer/CalendarControl.tsx
3951
+ var import_components24 = require("@transferwise/components");
3952
+ var import_jsx_runtime47 = require("react/jsx-runtime");
3953
+ var CalendarControl = ({
3954
+ id,
3955
+ title,
3956
+ value,
3957
+ minimumDate,
3958
+ maximumDate,
3959
+ validationState,
3960
+ availability,
3961
+ onChange,
3962
+ onFocus,
3963
+ onBlur
3964
+ }) => {
3965
+ const { disabledRules, onDateSelect, resetFocusedDate } = useAvailabilityRules(availability);
3966
+ const handleDateFocus = (date, { isEnabled }) => {
3967
+ if (date === null) {
3968
+ resetFocusedDate();
3969
+ return;
3970
+ }
3971
+ onDateSelect({ date, isEnabled });
3972
+ };
3973
+ return (
3974
+ // Wrapping in a <fieldset> to address some a11y gaps in the current inline Calendar component
3975
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3976
+ "fieldset",
3935
3977
  {
3936
- value: dateStringToDateOrNull(inputProps.value),
3937
- min: dateStringToDateOrNull(minimumDate),
3938
- max: dateStringToDateOrNull(maximumDate),
3939
- placeholder,
3940
- disabled,
3941
- disabledRules,
3942
- onChange: (date) => {
3943
- onChange(date !== null ? dateToDateString(date) : null);
3978
+ id,
3979
+ "aria-label": title,
3980
+ "aria-invalid": (validationState == null ? void 0 : validationState.status) === "invalid",
3981
+ onFocus: (event) => {
3982
+ if (!event.currentTarget.contains(event.relatedTarget)) {
3983
+ resetFocusedDate();
3984
+ onFocus();
3985
+ }
3944
3986
  },
3945
- onDateSelect,
3946
- onBlur,
3947
- onFocus: () => {
3948
- resetFocusedDate();
3949
- onFocus();
3950
- }
3987
+ onBlur: (event) => {
3988
+ if (!event.currentTarget.contains(event.relatedTarget)) {
3989
+ onBlur();
3990
+ }
3991
+ },
3992
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3993
+ import_components24.Calendar,
3994
+ {
3995
+ value: dateStringToDateOrNull(value),
3996
+ min: dateStringToDateOrNull(minimumDate),
3997
+ max: dateStringToDateOrNull(maximumDate),
3998
+ disabledRules,
3999
+ onChange: (date) => {
4000
+ onChange(date !== null ? dateToDateString(date) : null);
4001
+ },
4002
+ onDateFocus: handleDateFocus
4003
+ }
4004
+ )
3951
4005
  }
3952
- );
3953
- }
3954
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3955
- import_components23.DateInput,
3956
- __spreadProps(__spreadValues({}, inputProps), {
4006
+ )
4007
+ );
4008
+ };
4009
+
4010
+ // ../renderers/src/DateInputRenderer/DateInputControl.tsx
4011
+ var import_components25 = require("@transferwise/components");
4012
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4013
+ var DateInputControl = (_a) => {
4014
+ var _b = _a, { autoComplete } = _b, props = __objRest(_b, ["autoComplete"]);
4015
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4016
+ import_components25.DateInput,
4017
+ __spreadProps(__spreadValues({}, props), {
3957
4018
  dayAutoComplete: getAutocompleteString(autoComplete, "day"),
3958
4019
  yearAutoComplete: getAutocompleteString(autoComplete, "year")
3959
4020
  })
3960
4021
  );
3961
- }
4022
+ };
3962
4023
  var getAutocompleteString = (value, suffix) => {
3963
4024
  if (value === "bday") {
3964
4025
  return `${value}-${suffix}`;
3965
4026
  }
3966
4027
  return void 0;
3967
4028
  };
3968
- var VariableDateInput_default = VariableDateInput;
3969
4029
 
3970
- // ../renderers/src/DateInputRenderer.tsx
3971
- var import_jsx_runtime47 = require("react/jsx-runtime");
4030
+ // ../renderers/src/DateInputRenderer/DateInputRenderer.tsx
4031
+ var import_jsx_runtime49 = require("react/jsx-runtime");
3972
4032
  var DateInputRenderer = {
3973
4033
  canRenderType: "input-date",
3974
4034
  render: (props) => {
@@ -3992,8 +4052,17 @@ var DateInputRenderer = {
3992
4052
  "value"
3993
4053
  ]);
3994
4054
  const value = initialValue != null ? initialValue : "";
3995
- const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
3996
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4055
+ const inputProps = __spreadProps(__spreadValues({}, rest), { value, id, title, validationState });
4056
+ const UIComponent = (() => {
4057
+ if (control === "calendar") {
4058
+ return !props.disabled ? CalendarControl : DateLookupControl;
4059
+ }
4060
+ if (control === "date-lookup") {
4061
+ return DateLookupControl;
4062
+ }
4063
+ return DateInputControl;
4064
+ })();
4065
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3997
4066
  FieldInput_default,
3998
4067
  {
3999
4068
  id,
@@ -4006,7 +4075,7 @@ var DateInputRenderer = {
4006
4075
  features: props.features,
4007
4076
  control,
4008
4077
  tags: props.tags,
4009
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(VariableDateInput_default, { control, inputProps })
4078
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(UIComponent, __spreadValues({}, inputProps))
4010
4079
  }
4011
4080
  );
4012
4081
  }
@@ -4014,10 +4083,10 @@ var DateInputRenderer = {
4014
4083
  var DateInputRenderer_default = DateInputRenderer;
4015
4084
 
4016
4085
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
4017
- var import_components26 = require("@transferwise/components");
4086
+ var import_components28 = require("@transferwise/components");
4018
4087
 
4019
4088
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
4020
- var import_components25 = require("@transferwise/components");
4089
+ var import_components27 = require("@transferwise/components");
4021
4090
  var import_react12 = require("react");
4022
4091
  var import_react_intl17 = require("react-intl");
4023
4092
 
@@ -4089,7 +4158,7 @@ function filterAndSortItems(options, query) {
4089
4158
  var normalizeAndRemoveAccents = (text) => text.trim().toLowerCase().normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "");
4090
4159
 
4091
4160
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
4092
- var import_components24 = require("@transferwise/components");
4161
+ var import_components26 = require("@transferwise/components");
4093
4162
  var import_react_intl16 = require("react-intl");
4094
4163
 
4095
4164
  // ../renderers/src/messages/group.messages.ts
@@ -4128,7 +4197,7 @@ var getGroupsFromTags = (knownTags, items) => {
4128
4197
  };
4129
4198
 
4130
4199
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
4131
- var import_jsx_runtime48 = require("react/jsx-runtime");
4200
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4132
4201
  var groupingTags = Object.keys(group_messages_default).filter((key) => key !== "all");
4133
4202
  var isGroupedDecision = (options) => {
4134
4203
  return getGroupsFromTags(groupingTags, options).length > 0;
@@ -4138,9 +4207,9 @@ var GroupedDecisionList = (_a) => {
4138
4207
  const { formatMessage } = (0, import_react_intl16.useIntl)();
4139
4208
  const { options } = rest;
4140
4209
  const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
4141
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_components24.Section, { children: [
4142
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4143
- import_components24.Header,
4210
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_components26.Section, { children: [
4211
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4212
+ import_components26.Header,
4144
4213
  {
4145
4214
  as: "h2",
4146
4215
  title: tag in group_messages_default ? formatMessage(group_messages_default[tag]) : tag
@@ -4152,17 +4221,17 @@ var GroupedDecisionList = (_a) => {
4152
4221
 
4153
4222
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
4154
4223
  var import_classnames13 = __toESM(require_classnames());
4155
- var import_jsx_runtime49 = require("react/jsx-runtime");
4224
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4156
4225
  var DecisionWrapper = (props) => {
4157
4226
  const { margin, control, title, tags } = props;
4158
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: (0, import_classnames13.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4159
- title && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components25.Header, { as: "h2", title }),
4160
- control === "filtered" ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(UnfilteredDecisionList, __spreadValues({}, props))
4227
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: (0, import_classnames13.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4228
+ title && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components27.Header, { as: "h2", title }),
4229
+ control === "filtered" ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(UnfilteredDecisionList, __spreadValues({}, props))
4161
4230
  ] });
4162
4231
  };
4163
4232
  var UnfilteredDecisionList = (_a) => {
4164
4233
  var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
4165
- return isGroupedDecision(rest.options) ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
4234
+ return isGroupedDecision(rest.options) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
4166
4235
  };
4167
4236
  var FilteredDecisionList = (props) => {
4168
4237
  const { formatMessage } = (0, import_react_intl17.useIntl)();
@@ -4170,9 +4239,9 @@ var FilteredDecisionList = (props) => {
4170
4239
  const { control, options, renderDecisionList: renderDecisionList2 } = props;
4171
4240
  const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortItems(options, query) : options;
4172
4241
  const isGrouped = isGroupedDecision(options);
4173
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
4174
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4175
- import_components25.SearchInput,
4242
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
4243
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4244
+ import_components27.SearchInput,
4176
4245
  {
4177
4246
  placeholder: formatMessage(filter_messages_default.placeholder),
4178
4247
  value: query,
@@ -4183,25 +4252,25 @@ var FilteredDecisionList = (props) => {
4183
4252
  }
4184
4253
  }
4185
4254
  ),
4186
- isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
4187
- query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components25.Header, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
4255
+ isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
4256
+ query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components27.Header, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
4188
4257
  filteredOptions.length > 0 ? renderDecisionList2({
4189
4258
  control,
4190
4259
  className: query.length === 0 ? "m-t-3" : "",
4191
4260
  options: filteredOptions
4192
- }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { children: formatMessage(filter_messages_default.noResults) })
4261
+ }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: formatMessage(filter_messages_default.noResults) })
4193
4262
  ] })
4194
4263
  ] });
4195
4264
  };
4196
4265
 
4197
4266
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
4198
- var import_jsx_runtime50 = require("react/jsx-runtime");
4267
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4199
4268
  var DecisionRenderer = {
4200
4269
  canRenderType: "decision",
4201
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }))
4270
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }))
4202
4271
  };
4203
4272
  var renderDecisionList = ({ options, control }) => {
4204
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: options.map((_a) => {
4273
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: options.map((_a) => {
4205
4274
  var _b = _a, { onClick } = _b, rest = __objRest(_b, ["onClick"]);
4206
4275
  const {
4207
4276
  description,
@@ -4214,8 +4283,8 @@ var renderDecisionList = ({ options, control }) => {
4214
4283
  supportingValues,
4215
4284
  tags
4216
4285
  } = rest;
4217
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4218
- import_components26.ListItem,
4286
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4287
+ import_components28.ListItem,
4219
4288
  {
4220
4289
  title: itemTitle,
4221
4290
  subtitle: description,
@@ -4226,7 +4295,7 @@ var renderDecisionList = ({ options, control }) => {
4226
4295
  media: getMedia(media, shouldUseAvatar(control, tags)),
4227
4296
  prompt: getInlineAlert(inlineAlert),
4228
4297
  additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
4229
- control: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components26.ListItem.Navigation, __spreadValues({}, getAnchorProps()))
4298
+ control: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components28.ListItem.Navigation, __spreadValues({}, getAnchorProps()))
4230
4299
  },
4231
4300
  JSON.stringify(rest)
4232
4301
  );
@@ -4235,9 +4304,9 @@ var renderDecisionList = ({ options, control }) => {
4235
4304
  var DecisionRenderer_default = DecisionRenderer;
4236
4305
 
4237
4306
  // ../renderers/src/DividerRenderer.tsx
4238
- var import_components27 = require("@transferwise/components");
4307
+ var import_components29 = require("@transferwise/components");
4239
4308
  var import_classnames14 = __toESM(require_classnames());
4240
- var import_jsx_runtime51 = require("react/jsx-runtime");
4309
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4241
4310
  var mapControlToLevel = (control) => {
4242
4311
  switch (control) {
4243
4312
  case "section":
@@ -4250,8 +4319,8 @@ var mapControlToLevel = (control) => {
4250
4319
  };
4251
4320
  var DividerRenderer = {
4252
4321
  canRenderType: "divider",
4253
- render: ({ margin, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4254
- import_components27.Divider,
4322
+ render: ({ margin, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4323
+ import_components29.Divider,
4255
4324
  {
4256
4325
  className: (0, import_classnames14.default)(
4257
4326
  "m-t-0",
@@ -4266,7 +4335,7 @@ var DividerRenderer = {
4266
4335
  var DividerRenderer_default = DividerRenderer;
4267
4336
 
4268
4337
  // ../renderers/src/ExternalConfirmationRenderer.tsx
4269
- var import_components28 = require("@transferwise/components");
4338
+ var import_components30 = require("@transferwise/components");
4270
4339
 
4271
4340
  // ../renderers/src/messages/external-confirmation.messages.ts
4272
4341
  var import_react_intl18 = require("react-intl");
@@ -4296,7 +4365,7 @@ var external_confirmation_messages_default = (0, import_react_intl18.defineMessa
4296
4365
  // ../renderers/src/ExternalConfirmationRenderer.tsx
4297
4366
  var import_react_intl19 = require("react-intl");
4298
4367
  var import_react13 = require("react");
4299
- var import_jsx_runtime52 = require("react/jsx-runtime");
4368
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4300
4369
  var ExternalConfirmationRenderer = {
4301
4370
  canRenderType: "external-confirmation",
4302
4371
  render: ExternalConfirmationRendererComponent
@@ -4313,16 +4382,16 @@ function ExternalConfirmationRendererComponent({
4313
4382
  (0, import_react13.useEffect)(() => {
4314
4383
  open();
4315
4384
  }, []);
4316
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4317
- import_components28.Modal,
4385
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4386
+ import_components30.Modal,
4318
4387
  {
4319
4388
  open: visible,
4320
4389
  title: formatMessage(external_confirmation_messages_default.title),
4321
- body: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
4322
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components28.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
4323
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
4324
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4325
- import_components28.Button,
4390
+ body: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
4391
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components30.Markdown, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
4392
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "df-box-renderer-width-lg", children: [
4393
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4394
+ import_components30.Button,
4326
4395
  {
4327
4396
  v2: true,
4328
4397
  block: true,
@@ -4335,7 +4404,7 @@ function ExternalConfirmationRendererComponent({
4335
4404
  children: formatMessage(external_confirmation_messages_default.open)
4336
4405
  }
4337
4406
  ),
4338
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components28.Button, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
4407
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components30.Button, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
4339
4408
  ] }) })
4340
4409
  ] }),
4341
4410
  className: controlAndTagsToCSSClass({ control, tags }),
@@ -4354,36 +4423,36 @@ var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
4354
4423
 
4355
4424
  // ../renderers/src/FormRenderer.tsx
4356
4425
  var import_classnames15 = __toESM(require_classnames());
4357
- var import_jsx_runtime53 = require("react/jsx-runtime");
4426
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4358
4427
  var FormRenderer = {
4359
4428
  canRenderType: "form",
4360
- render: ({ children, margin, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_classnames15.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children })
4429
+ render: ({ children, margin, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: (0, import_classnames15.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children })
4361
4430
  };
4362
4431
  var FormRenderer_default = FormRenderer;
4363
4432
 
4364
4433
  // ../renderers/src/FormSectionRenderer.tsx
4365
- var import_components29 = require("@transferwise/components");
4366
- var import_jsx_runtime54 = require("react/jsx-runtime");
4434
+ var import_components31 = require("@transferwise/components");
4435
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4367
4436
  var FormSectionRenderer = {
4368
4437
  canRenderType: "form-section",
4369
- render: ({ title, description, children, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("fieldset", { className: controlAndTagsToCSSClass({ control, tags }), children: [
4370
- title && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4371
- import_components29.Header,
4438
+ render: ({ title, description, children, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("fieldset", { className: controlAndTagsToCSSClass({ control, tags }), children: [
4439
+ title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4440
+ import_components31.Header,
4372
4441
  {
4373
4442
  as: "h2",
4374
4443
  title
4375
4444
  }
4376
4445
  ),
4377
- description && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { children: description }),
4446
+ description && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { children: description }),
4378
4447
  children
4379
4448
  ] })
4380
4449
  };
4381
4450
  var FormSectionRenderer_default = FormSectionRenderer;
4382
4451
 
4383
4452
  // ../renderers/src/HeadingRenderer.tsx
4384
- var import_components30 = require("@transferwise/components");
4453
+ var import_components32 = require("@transferwise/components");
4385
4454
  var import_classnames16 = __toESM(require_classnames());
4386
- var import_jsx_runtime55 = require("react/jsx-runtime");
4455
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4387
4456
  var HeadingRenderer = {
4388
4457
  canRenderType: "heading",
4389
4458
  render: Heading
@@ -4394,10 +4463,10 @@ function Heading(props) {
4394
4463
  getTextAlignmentAndMargin({ align, margin }),
4395
4464
  controlAndTagsToCSSClass(props)
4396
4465
  );
4397
- return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(StandardHeading, { size, text, className });
4466
+ return control === "display" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DisplayHeading, { size, text, className }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(StandardHeading, { size, text, className });
4398
4467
  }
4399
4468
  function DisplayHeading({ size, text, className }) {
4400
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components30.Display, { type: getDisplayType(size), className, children: text });
4469
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components32.Display, { type: getDisplayType(size), className, children: text });
4401
4470
  }
4402
4471
  var getDisplayType = (size) => {
4403
4472
  switch (size) {
@@ -4413,7 +4482,7 @@ var getDisplayType = (size) => {
4413
4482
  }
4414
4483
  };
4415
4484
  function StandardHeading({ size, text, className }) {
4416
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components30.Title, { type: getTitleTypeBySize(size), className, children: text });
4485
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_components32.Title, { type: getTitleTypeBySize(size), className, children: text });
4417
4486
  }
4418
4487
  var getTitleTypeBySize = (size) => {
4419
4488
  var _a;
@@ -4429,7 +4498,7 @@ var getTitleTypeBySize = (size) => {
4429
4498
  var HeadingRenderer_default = HeadingRenderer;
4430
4499
 
4431
4500
  // ../renderers/src/ImageRenderer/UrlImage.tsx
4432
- var import_components31 = require("@transferwise/components");
4501
+ var import_components33 = require("@transferwise/components");
4433
4502
  var import_classnames17 = __toESM(require_classnames());
4434
4503
  var import_react14 = require("react");
4435
4504
 
@@ -4441,7 +4510,7 @@ function isRelativePath(url = "") {
4441
4510
  }
4442
4511
 
4443
4512
  // ../renderers/src/ImageRenderer/UrlImage.tsx
4444
- var import_jsx_runtime56 = require("react/jsx-runtime");
4513
+ var import_jsx_runtime58 = require("react/jsx-runtime");
4445
4514
  function UrlImage({
4446
4515
  accessibilityDescription,
4447
4516
  align,
@@ -4458,7 +4527,7 @@ function UrlImage({
4458
4527
  void getImageSource(httpClient, uri).then(setImageSource);
4459
4528
  }
4460
4529
  }, [uri, httpClient]);
4461
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4530
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4462
4531
  "div",
4463
4532
  {
4464
4533
  className: (0, import_classnames17.default)(
@@ -4468,8 +4537,8 @@ function UrlImage({
4468
4537
  getMargin(margin),
4469
4538
  controlAndTagsToCSSClass({ control, tags })
4470
4539
  ),
4471
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4472
- import_components31.Image,
4540
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4541
+ import_components33.Image,
4473
4542
  {
4474
4543
  className: "df-reserve-space",
4475
4544
  alt: accessibilityDescription != null ? accessibilityDescription : "",
@@ -4514,19 +4583,19 @@ var getImageSource = async (httpClient, imageUrl) => {
4514
4583
  };
4515
4584
 
4516
4585
  // ../renderers/src/ImageRenderer/ImageRenderer.tsx
4517
- var import_jsx_runtime57 = require("react/jsx-runtime");
4586
+ var import_jsx_runtime59 = require("react/jsx-runtime");
4518
4587
  var ImageRenderer = {
4519
4588
  canRenderType: "image",
4520
- render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(UrlImage, __spreadValues({}, props))
4589
+ render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(UrlImage, __spreadValues({}, props))
4521
4590
  };
4522
4591
 
4523
4592
  // ../renderers/src/ImageRenderer/index.tsx
4524
4593
  var ImageRenderer_default = ImageRenderer;
4525
4594
 
4526
4595
  // ../renderers/src/InstructionsRenderer.tsx
4527
- var import_components32 = require("@transferwise/components");
4596
+ var import_components34 = require("@transferwise/components");
4528
4597
  var import_classnames18 = __toESM(require_classnames());
4529
- var import_jsx_runtime58 = require("react/jsx-runtime");
4598
+ var import_jsx_runtime60 = require("react/jsx-runtime");
4530
4599
  var doContext = ["positive", "neutral", "proposition"];
4531
4600
  var dontContext = ["warning", "negative"];
4532
4601
  var InstructionsRenderer = {
@@ -4534,16 +4603,16 @@ var InstructionsRenderer = {
4534
4603
  render: ({ items, margin, title, control, tags }) => {
4535
4604
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
4536
4605
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
4537
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: (0, import_classnames18.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4538
- title ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components32.Header, { title }) : null,
4539
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components32.InstructionsList, { dos, donts })
4606
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: (0, import_classnames18.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4607
+ title ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_components34.Header, { title }) : null,
4608
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_components34.InstructionsList, { dos, donts })
4540
4609
  ] });
4541
4610
  }
4542
4611
  };
4543
4612
  var InstructionsRenderer_default = InstructionsRenderer;
4544
4613
 
4545
4614
  // ../renderers/src/IntegerInputRenderer.tsx
4546
- var import_components33 = require("@transferwise/components");
4615
+ var import_components35 = require("@transferwise/components");
4547
4616
 
4548
4617
  // ../renderers/src/utils/input-utils.ts
4549
4618
  var onWheel = (event) => {
@@ -4568,7 +4637,7 @@ function pick(obj, ...keys) {
4568
4637
  }
4569
4638
 
4570
4639
  // ../renderers/src/IntegerInputRenderer.tsx
4571
- var import_jsx_runtime59 = require("react/jsx-runtime");
4640
+ var import_jsx_runtime61 = require("react/jsx-runtime");
4572
4641
  var IntegerInputRenderer = {
4573
4642
  canRenderType: "input-integer",
4574
4643
  render: (props) => {
@@ -4583,7 +4652,7 @@ var IntegerInputRenderer = {
4583
4652
  "maximum",
4584
4653
  "minimum"
4585
4654
  );
4586
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4655
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4587
4656
  FieldInput_default,
4588
4657
  {
4589
4658
  id,
@@ -4596,8 +4665,8 @@ var IntegerInputRenderer = {
4596
4665
  features: props.features,
4597
4666
  control: props.control,
4598
4667
  tags: props.tags,
4599
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_components33.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4600
- import_components33.Input,
4668
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_components35.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4669
+ import_components35.Input,
4601
4670
  __spreadValues({
4602
4671
  id,
4603
4672
  name: id,
@@ -4619,13 +4688,13 @@ var IntegerInputRenderer = {
4619
4688
  var IntegerInputRenderer_default = IntegerInputRenderer;
4620
4689
 
4621
4690
  // ../renderers/src/ListRenderer.tsx
4622
- var import_components35 = require("@transferwise/components");
4691
+ var import_components37 = require("@transferwise/components");
4623
4692
  var import_classnames19 = __toESM(require_classnames());
4624
4693
 
4625
4694
  // ../renderers/src/components/Header.tsx
4626
- var import_components34 = require("@transferwise/components");
4627
- var import_jsx_runtime60 = require("react/jsx-runtime");
4628
- var Header = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_components34.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
4695
+ var import_components36 = require("@transferwise/components");
4696
+ var import_jsx_runtime62 = require("react/jsx-runtime");
4697
+ var Header = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_components36.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
4629
4698
  var getHeaderAction = (callToAction) => {
4630
4699
  if (!callToAction) {
4631
4700
  return void 0;
@@ -4637,11 +4706,11 @@ var getHeaderAction = (callToAction) => {
4637
4706
  };
4638
4707
 
4639
4708
  // ../renderers/src/ListRenderer.tsx
4640
- var import_jsx_runtime61 = require("react/jsx-runtime");
4709
+ var import_jsx_runtime63 = require("react/jsx-runtime");
4641
4710
  var ListRenderer = {
4642
4711
  canRenderType: "list",
4643
- render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: (0, import_classnames19.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4644
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Header, { title, callToAction }),
4712
+ render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: (0, import_classnames19.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4713
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Header, { title, callToAction }),
4645
4714
  items.map((item) => {
4646
4715
  var _a, _b;
4647
4716
  const {
@@ -4658,8 +4727,8 @@ var ListRenderer = {
4658
4727
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
4659
4728
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
4660
4729
  };
4661
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
4662
- import_components35.ListItem,
4730
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4731
+ import_components37.ListItem,
4663
4732
  {
4664
4733
  title: itemTitle,
4665
4734
  subtitle: description,
@@ -4678,13 +4747,13 @@ var ListRenderer = {
4678
4747
  var ListRenderer_default = ListRenderer;
4679
4748
 
4680
4749
  // ../renderers/src/LoadingIndicatorRenderer.tsx
4681
- var import_components36 = require("@transferwise/components");
4750
+ var import_components38 = require("@transferwise/components");
4682
4751
  var import_classnames20 = __toESM(require_classnames());
4683
- var import_jsx_runtime62 = require("react/jsx-runtime");
4752
+ var import_jsx_runtime64 = require("react/jsx-runtime");
4684
4753
  var LoadingIndicatorRenderer = {
4685
4754
  canRenderType: "loading-indicator",
4686
- render: ({ size, margin, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
4687
- import_components36.Loader,
4755
+ render: ({ size, margin, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4756
+ import_components38.Loader,
4688
4757
  {
4689
4758
  size,
4690
4759
  classNames: {
@@ -4702,22 +4771,22 @@ var LoadingIndicatorRenderer = {
4702
4771
  var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
4703
4772
 
4704
4773
  // ../renderers/src/MarkdownRenderer.tsx
4705
- var import_components37 = require("@transferwise/components");
4774
+ var import_components39 = require("@transferwise/components");
4706
4775
  var import_classnames21 = __toESM(require_classnames());
4707
- var import_jsx_runtime63 = require("react/jsx-runtime");
4776
+ var import_jsx_runtime65 = require("react/jsx-runtime");
4708
4777
  var MarkdownRenderer = {
4709
4778
  canRenderType: "markdown",
4710
4779
  render: ({ content, align, margin, size, control, tags }) => {
4711
4780
  const isLarge = !["xs", "sm"].includes(size);
4712
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4781
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4713
4782
  "div",
4714
4783
  {
4715
4784
  className: (0, import_classnames21.default)(
4716
4785
  getTextAlignmentAndMargin({ align, margin }),
4717
4786
  controlAndTagsToCSSClass({ control, tags })
4718
4787
  ),
4719
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4720
- import_components37.Markdown,
4788
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4789
+ import_components39.Markdown,
4721
4790
  {
4722
4791
  className: (0, import_classnames21.default)("df-markdown", {
4723
4792
  "np-text-body-large": isLarge,
@@ -4735,16 +4804,16 @@ var MarkdownRenderer_default = MarkdownRenderer;
4735
4804
 
4736
4805
  // ../renderers/src/MediaRenderer.tsx
4737
4806
  var import_classnames22 = __toESM(require_classnames());
4738
- var import_jsx_runtime64 = require("react/jsx-runtime");
4807
+ var import_jsx_runtime66 = require("react/jsx-runtime");
4739
4808
  var MediaRenderer = {
4740
4809
  canRenderType: "media",
4741
4810
  render: (_a) => {
4742
4811
  var _b = _a, { media } = _b, rest = __objRest(_b, ["media"]);
4743
4812
  switch (media.type) {
4744
4813
  case "avatar":
4745
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(AvatarMediaRendererComponent, __spreadValues({ media }, rest));
4814
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(AvatarMediaRendererComponent, __spreadValues({ media }, rest));
4746
4815
  case "image":
4747
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ImageMediaRendererComponent, __spreadValues({ media }, rest));
4816
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ImageMediaRendererComponent, __spreadValues({ media }, rest));
4748
4817
  case "legacy":
4749
4818
  return null;
4750
4819
  }
@@ -4758,7 +4827,7 @@ var AvatarMediaRendererComponent = ({
4758
4827
  control,
4759
4828
  tags
4760
4829
  }) => {
4761
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4830
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4762
4831
  "div",
4763
4832
  {
4764
4833
  className: (0, import_classnames22.default)(
@@ -4767,7 +4836,7 @@ var AvatarMediaRendererComponent = ({
4767
4836
  getMargin(margin),
4768
4837
  controlAndTagsToCSSClass({ control, tags })
4769
4838
  ),
4770
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Media, { media, size: mapAvatarMediaSize(size) })
4839
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Media, { media, size: mapAvatarMediaSize(size) })
4771
4840
  }
4772
4841
  );
4773
4842
  };
@@ -4780,14 +4849,14 @@ var ImageMediaRendererComponent = (_a) => {
4780
4849
  "size"
4781
4850
  ]);
4782
4851
  var _a2, _b2;
4783
- return isUrnImage(media.uri) ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4852
+ return isUrnImage(media.uri) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4784
4853
  UrnImage,
4785
4854
  __spreadValues({
4786
4855
  uri: media.uri,
4787
4856
  size: (_a2 = media.size) != null ? _a2 : size,
4788
4857
  accessibilityDescription: media.accessibilityDescription
4789
4858
  }, rest)
4790
- ) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4859
+ ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4791
4860
  UrlImage,
4792
4861
  __spreadValues({
4793
4862
  uri: media.uri,
@@ -4812,22 +4881,22 @@ var mapAvatarMediaSize = (size) => {
4812
4881
  };
4813
4882
 
4814
4883
  // ../renderers/src/ModalLayoutRenderer.tsx
4815
- var import_components38 = require("@transferwise/components");
4884
+ var import_components40 = require("@transferwise/components");
4816
4885
  var import_classnames23 = __toESM(require_classnames());
4817
4886
  var import_react15 = require("react");
4818
- var import_jsx_runtime65 = require("react/jsx-runtime");
4887
+ var import_jsx_runtime67 = require("react/jsx-runtime");
4819
4888
  var ModalLayoutRenderer = {
4820
4889
  canRenderType: "modal-layout",
4821
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DFModal, __spreadValues({}, props))
4890
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DFModal, __spreadValues({}, props))
4822
4891
  };
4823
4892
  var ModalLayoutRenderer_default = ModalLayoutRenderer;
4824
4893
  function DFModal({ content, margin, trigger, control, tags }) {
4825
4894
  const [visible, setVisible] = (0, import_react15.useState)(false);
4826
4895
  const { children, title } = content;
4827
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: (0, import_classnames23.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4828
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_components38.Button, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
4829
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4830
- import_components38.Modal,
4896
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: (0, import_classnames23.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4897
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_components40.Button, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
4898
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4899
+ import_components40.Modal,
4831
4900
  {
4832
4901
  scroll: "content",
4833
4902
  open: visible,
@@ -4841,13 +4910,13 @@ function DFModal({ content, margin, trigger, control, tags }) {
4841
4910
  }
4842
4911
 
4843
4912
  // ../renderers/src/ModalRenderer.tsx
4844
- var import_components39 = require("@transferwise/components");
4845
- var import_jsx_runtime66 = require("react/jsx-runtime");
4913
+ var import_components41 = require("@transferwise/components");
4914
+ var import_jsx_runtime68 = require("react/jsx-runtime");
4846
4915
  var ModalRenderer = {
4847
4916
  canRenderType: "modal",
4848
4917
  render: ({ title, children, open, onClose, control, tags }) => {
4849
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4850
- import_components39.Modal,
4918
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4919
+ import_components41.Modal,
4851
4920
  {
4852
4921
  open,
4853
4922
  title,
@@ -4860,10 +4929,10 @@ var ModalRenderer = {
4860
4929
  };
4861
4930
 
4862
4931
  // ../renderers/src/MoneyInputRenderer.tsx
4863
- var import_components40 = require("@transferwise/components");
4932
+ var import_components42 = require("@transferwise/components");
4864
4933
  var import_react16 = require("react");
4865
4934
  var import_react_intl20 = require("react-intl");
4866
- var import_jsx_runtime67 = require("react/jsx-runtime");
4935
+ var import_jsx_runtime69 = require("react/jsx-runtime");
4867
4936
  var groupingTags2 = Object.keys(group_messages_default).filter((key) => key !== "all");
4868
4937
  var MoneyInputRenderer = {
4869
4938
  canRenderType: "money-input",
@@ -4893,7 +4962,7 @@ function MoneyInputRendererComponent(props) {
4893
4962
  }
4894
4963
  }, [selectedCurrencyIndex, onCurrencyChange, currencies.length]);
4895
4964
  const { formatMessage } = (0, import_react_intl20.useIntl)();
4896
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4965
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4897
4966
  FieldInput_default,
4898
4967
  {
4899
4968
  id: uid,
@@ -4904,8 +4973,8 @@ function MoneyInputRendererComponent(props) {
4904
4973
  features,
4905
4974
  control,
4906
4975
  tags,
4907
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4908
- import_components40.MoneyInput,
4976
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4977
+ import_components42.MoneyInput,
4909
4978
  {
4910
4979
  amount: parseFloatOrNull(amountValue),
4911
4980
  searchPlaceholder: "",
@@ -4966,7 +5035,7 @@ function assertCurrencyCodeIsString(currencyCode) {
4966
5035
  }
4967
5036
 
4968
5037
  // ../renderers/src/MultiSelectInputRenderer/InlineComponent.tsx
4969
- var import_components41 = require("@transferwise/components");
5038
+ var import_components43 = require("@transferwise/components");
4970
5039
  var import_react17 = require("react");
4971
5040
  var import_react_intl21 = require("react-intl");
4972
5041
 
@@ -4976,7 +5045,7 @@ var zipWithIndex = (items) => items.map((item, index) => __spreadProps(__spreadV
4976
5045
  }));
4977
5046
 
4978
5047
  // ../renderers/src/MultiSelectInputRenderer/InlineComponent.tsx
4979
- var import_jsx_runtime68 = require("react/jsx-runtime");
5048
+ var import_jsx_runtime70 = require("react/jsx-runtime");
4980
5049
  function InlineComponent(props) {
4981
5050
  const {
4982
5051
  id,
@@ -4997,9 +5066,9 @@ function InlineComponent(props) {
4997
5066
  const { formatMessage } = (0, import_react_intl21.useIntl)();
4998
5067
  const filtered = tags == null ? void 0 : tags.includes("filtered");
4999
5068
  const filteredOptions = query ? filterAndSortItems(optionsWithIndex, filtered ? query : "") : optionsWithIndex;
5000
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
5001
- filtered && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5002
- import_components41.SearchInput,
5069
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
5070
+ filtered && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5071
+ import_components43.SearchInput,
5003
5072
  {
5004
5073
  placeholder: formatMessage(filter_messages_default.placeholder),
5005
5074
  disabled,
@@ -5011,7 +5080,7 @@ function InlineComponent(props) {
5011
5080
  }
5012
5081
  }
5013
5082
  ),
5014
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5083
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5015
5084
  FieldInput_default,
5016
5085
  {
5017
5086
  id,
@@ -5036,8 +5105,8 @@ function InlineComponent(props) {
5036
5105
  childrenProps
5037
5106
  } = option;
5038
5107
  const key = (_a = childrenProps == null ? void 0 : childrenProps.uid) != null ? _a : index;
5039
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5040
- import_components41.ListItem,
5108
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5109
+ import_components43.ListItem,
5041
5110
  {
5042
5111
  title: itemTitle,
5043
5112
  subtitle,
@@ -5045,10 +5114,10 @@ function InlineComponent(props) {
5045
5114
  valueSubtitle: supportingValues == null ? void 0 : supportingValues.subvalue,
5046
5115
  media: getMedia(media, false),
5047
5116
  prompt: getInlineAlert(inlineAlert),
5048
- additionalInfo: additionalText ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_components41.ListItem.AdditionalInfo, { children: additionalText }) : void 0,
5117
+ additionalInfo: additionalText ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components43.ListItem.AdditionalInfo, { children: additionalText }) : void 0,
5049
5118
  disabled: disabled || optionDisabled,
5050
- control: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5051
- import_components41.ListItem.Checkbox,
5119
+ control: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5120
+ import_components43.ListItem.Checkbox,
5052
5121
  {
5053
5122
  checked: selectedIndices.includes(index),
5054
5123
  onChange: (e) => {
@@ -5067,7 +5136,7 @@ function InlineComponent(props) {
5067
5136
  }
5068
5137
 
5069
5138
  // ../renderers/src/MultiSelectInputRenderer/DefaultComponent.tsx
5070
- var import_components42 = require("@transferwise/components");
5139
+ var import_components44 = require("@transferwise/components");
5071
5140
  var import_react18 = require("react");
5072
5141
  var import_react_intl23 = require("react-intl");
5073
5142
 
@@ -5082,7 +5151,7 @@ var multi_select_messages_default = (0, import_react_intl22.defineMessages)({
5082
5151
  });
5083
5152
 
5084
5153
  // ../renderers/src/MultiSelectInputRenderer/DefaultComponent.tsx
5085
- var import_jsx_runtime69 = require("react/jsx-runtime");
5154
+ var import_jsx_runtime71 = require("react/jsx-runtime");
5086
5155
  function DefaultComponent(props) {
5087
5156
  const { formatMessage } = (0, import_react_intl23.useIntl)();
5088
5157
  const [stagedIndices, setStagedIndices] = (0, import_react18.useState)();
@@ -5126,12 +5195,12 @@ function DefaultComponent(props) {
5126
5195
  const contentProps = {
5127
5196
  title: option.title,
5128
5197
  description: option.description,
5129
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
5198
+ icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
5130
5199
  };
5131
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_components42.SelectInputOptionContent, __spreadValues({}, contentProps));
5200
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_components44.SelectInputOptionContent, __spreadValues({}, contentProps));
5132
5201
  };
5133
5202
  const extraProps = { autoComplete };
5134
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5203
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5135
5204
  FieldInput_default,
5136
5205
  {
5137
5206
  id,
@@ -5142,8 +5211,8 @@ function DefaultComponent(props) {
5142
5211
  features,
5143
5212
  control,
5144
5213
  tags,
5145
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
5146
- import_components42.SelectInput,
5214
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5215
+ import_components44.SelectInput,
5147
5216
  __spreadValues({
5148
5217
  id,
5149
5218
  items: options.map((option, index) => {
@@ -5181,8 +5250,8 @@ function DefaultComponent(props) {
5181
5250
  }
5182
5251
 
5183
5252
  // ../renderers/src/MultiSelectInputRenderer/InlineCheckboxComponent.tsx
5184
- var import_components43 = require("@transferwise/components");
5185
- var import_jsx_runtime70 = require("react/jsx-runtime");
5253
+ var import_components45 = require("@transferwise/components");
5254
+ var import_jsx_runtime72 = require("react/jsx-runtime");
5186
5255
  function InlineCheckboxComponent(props) {
5187
5256
  const {
5188
5257
  id,
@@ -5198,7 +5267,7 @@ function InlineCheckboxComponent(props) {
5198
5267
  tags,
5199
5268
  onSelect
5200
5269
  } = props;
5201
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5270
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5202
5271
  FieldInput_default,
5203
5272
  {
5204
5273
  id,
@@ -5229,35 +5298,35 @@ function InlineCheckboxComponent(props) {
5229
5298
  onSelect(newSelectedIndices);
5230
5299
  }
5231
5300
  };
5232
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components43.Checkbox, __spreadProps(__spreadValues({}, checkboxProps), { className: "m-t-1" }), key);
5301
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_components45.Checkbox, __spreadProps(__spreadValues({}, checkboxProps), { className: "m-t-1" }), key);
5233
5302
  })
5234
5303
  }
5235
5304
  );
5236
5305
  }
5237
5306
 
5238
5307
  // ../renderers/src/MultiSelectInputRenderer/MultiSelectInputRenderer.tsx
5239
- var import_jsx_runtime71 = require("react/jsx-runtime");
5308
+ var import_jsx_runtime73 = require("react/jsx-runtime");
5240
5309
  var MultiSelectInputRenderer = {
5241
5310
  canRenderType: "input-multi-select",
5242
5311
  render: (props) => {
5243
5312
  switch (props.control) {
5244
5313
  case "inline":
5245
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(InlineComponent, __spreadValues({}, props));
5314
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(InlineComponent, __spreadValues({}, props));
5246
5315
  case "inline-checkbox-group":
5247
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(InlineCheckboxComponent, __spreadValues({}, props));
5316
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(InlineCheckboxComponent, __spreadValues({}, props));
5248
5317
  default:
5249
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DefaultComponent, __spreadValues({}, props));
5318
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DefaultComponent, __spreadValues({}, props));
5250
5319
  }
5251
5320
  }
5252
5321
  };
5253
5322
 
5254
5323
  // ../renderers/src/MultiUploadInputRenderer.tsx
5255
- var import_components45 = require("@transferwise/components");
5324
+ var import_components47 = require("@transferwise/components");
5256
5325
 
5257
5326
  // ../renderers/src/components/UploadFieldInput.tsx
5258
- var import_components44 = require("@transferwise/components");
5327
+ var import_components46 = require("@transferwise/components");
5259
5328
  var import_classnames24 = __toESM(require_classnames());
5260
- var import_jsx_runtime72 = require("react/jsx-runtime");
5329
+ var import_jsx_runtime74 = require("react/jsx-runtime");
5261
5330
  function UploadFieldInput({
5262
5331
  id,
5263
5332
  children,
@@ -5269,10 +5338,10 @@ function UploadFieldInput({
5269
5338
  control,
5270
5339
  tags
5271
5340
  }) {
5272
- const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(LabelContentWithHelp, { text: label, help }) : label;
5341
+ const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(LabelContentWithHelp, { text: label, help }) : label;
5273
5342
  const descriptionId = description ? `${id}-description` : void 0;
5274
5343
  const { ref } = useScrollToError(validation, features);
5275
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
5344
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
5276
5345
  "div",
5277
5346
  {
5278
5347
  ref,
@@ -5284,9 +5353,9 @@ function UploadFieldInput({
5284
5353
  controlAndTagsToCSSClass({ control, tags })
5285
5354
  ),
5286
5355
  children: [
5287
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
5356
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
5288
5357
  children,
5289
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_components44.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
5358
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_components46.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
5290
5359
  ]
5291
5360
  }
5292
5361
  );
@@ -5321,7 +5390,7 @@ var getSizeLimit = (maxSize) => {
5321
5390
  };
5322
5391
 
5323
5392
  // ../renderers/src/MultiUploadInputRenderer.tsx
5324
- var import_jsx_runtime73 = require("react/jsx-runtime");
5393
+ var import_jsx_runtime75 = require("react/jsx-runtime");
5325
5394
  var MultiUploadInputRenderer = {
5326
5395
  canRenderType: "input-upload-multi",
5327
5396
  render: (props) => {
@@ -5349,7 +5418,7 @@ var MultiUploadInputRenderer = {
5349
5418
  };
5350
5419
  const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
5351
5420
  const descriptionId = description ? `${id}-description` : void 0;
5352
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5421
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5353
5422
  UploadFieldInput_default,
5354
5423
  {
5355
5424
  id,
@@ -5360,8 +5429,8 @@ var MultiUploadInputRenderer = {
5360
5429
  features,
5361
5430
  control,
5362
5431
  tags,
5363
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5364
- import_components45.UploadInput,
5432
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5433
+ import_components47.UploadInput,
5365
5434
  {
5366
5435
  id,
5367
5436
  "aria-describedby": descriptionId,
@@ -5370,7 +5439,7 @@ var MultiUploadInputRenderer = {
5370
5439
  files: value.map(({ id: fileId, file, validationState: fileValidationState }) => ({
5371
5440
  id: fileId,
5372
5441
  filename: file.name,
5373
- status: (fileValidationState == null ? void 0 : fileValidationState.status) === "invalid" ? import_components45.Status.FAILED : import_components45.Status.SUCCEEDED
5442
+ status: (fileValidationState == null ? void 0 : fileValidationState.status) === "invalid" ? import_components47.Status.FAILED : import_components47.Status.SUCCEEDED
5374
5443
  })),
5375
5444
  fileTypes: acceptsToFileTypes(accepts),
5376
5445
  maxFiles: maxItems,
@@ -5388,8 +5457,8 @@ var MultiUploadInputRenderer = {
5388
5457
  var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
5389
5458
 
5390
5459
  // ../renderers/src/NumberInputRenderer.tsx
5391
- var import_components46 = require("@transferwise/components");
5392
- var import_jsx_runtime74 = require("react/jsx-runtime");
5460
+ var import_components48 = require("@transferwise/components");
5461
+ var import_jsx_runtime76 = require("react/jsx-runtime");
5393
5462
  var NumberInputRenderer = {
5394
5463
  canRenderType: "input-number",
5395
5464
  render: (props) => {
@@ -5403,7 +5472,7 @@ var NumberInputRenderer = {
5403
5472
  "maximum",
5404
5473
  "minimum"
5405
5474
  );
5406
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
5475
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5407
5476
  FieldInput_default,
5408
5477
  {
5409
5478
  id,
@@ -5416,8 +5485,8 @@ var NumberInputRenderer = {
5416
5485
  features: props.features,
5417
5486
  control: props.control,
5418
5487
  tags: props.tags,
5419
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_components46.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
5420
- import_components46.Input,
5488
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components48.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5489
+ import_components48.Input,
5421
5490
  __spreadValues({
5422
5491
  id,
5423
5492
  name: id,
@@ -5437,15 +5506,15 @@ var NumberInputRenderer = {
5437
5506
  var NumberInputRenderer_default = NumberInputRenderer;
5438
5507
 
5439
5508
  // ../renderers/src/ParagraphRenderer.tsx
5440
- var import_components48 = require("@transferwise/components");
5509
+ var import_components50 = require("@transferwise/components");
5441
5510
  var import_classnames25 = __toESM(require_classnames());
5442
5511
  var import_react_intl25 = require("react-intl");
5443
5512
 
5444
5513
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
5445
- var import_components47 = require("@transferwise/components");
5514
+ var import_components49 = require("@transferwise/components");
5446
5515
  var import_react19 = require("react");
5447
5516
  function useSnackBarIfAvailable() {
5448
- const context = (0, import_react19.useContext)(import_components47.SnackbarContext);
5517
+ const context = (0, import_react19.useContext)(import_components49.SnackbarContext);
5449
5518
  return context ? context.createSnackbar : () => {
5450
5519
  };
5451
5520
  }
@@ -5466,10 +5535,10 @@ var paragraph_messages_default = (0, import_react_intl24.defineMessages)({
5466
5535
  });
5467
5536
 
5468
5537
  // ../renderers/src/ParagraphRenderer.tsx
5469
- var import_jsx_runtime75 = require("react/jsx-runtime");
5538
+ var import_jsx_runtime77 = require("react/jsx-runtime");
5470
5539
  var ParagraphRenderer = {
5471
5540
  canRenderType: "paragraph",
5472
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Paragraph, __spreadValues({}, props))
5541
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Paragraph, __spreadValues({}, props))
5473
5542
  };
5474
5543
  function Paragraph(props) {
5475
5544
  const { align, control, margin, size, text } = props;
@@ -5477,7 +5546,7 @@ function Paragraph(props) {
5477
5546
  getTextAlignmentAndMargin({ align, margin }),
5478
5547
  controlAndTagsToCSSClass(props)
5479
5548
  );
5480
- return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5549
+ return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5481
5550
  "p",
5482
5551
  {
5483
5552
  className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
@@ -5497,9 +5566,9 @@ function CopyableParagraph({
5497
5566
  });
5498
5567
  };
5499
5568
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
5500
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className, children: [
5501
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
5502
- import_components48.Input,
5569
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className, children: [
5570
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5571
+ import_components50.Input,
5503
5572
  {
5504
5573
  type: "text",
5505
5574
  value: text,
@@ -5507,24 +5576,24 @@ function CopyableParagraph({
5507
5576
  className: (0, import_classnames25.default)("text-ellipsis", inputAlignmentClasses)
5508
5577
  }
5509
5578
  ),
5510
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components48.Button, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
5579
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components50.Button, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
5511
5580
  ] });
5512
5581
  }
5513
5582
  var ParagraphRenderer_default = ParagraphRenderer;
5514
5583
 
5515
5584
  // ../renderers/src/ProgressRenderer.tsx
5516
- var import_components49 = require("@transferwise/components");
5585
+ var import_components51 = require("@transferwise/components");
5517
5586
  var import_classnames26 = __toESM(require_classnames());
5518
- var import_jsx_runtime76 = require("react/jsx-runtime");
5587
+ var import_jsx_runtime78 = require("react/jsx-runtime");
5519
5588
  var ProgressRenderer = {
5520
5589
  canRenderType: "progress",
5521
5590
  render: ({ uid, title, help, progress, progressText, margin, description, control, tags }) => {
5522
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5523
- import_components49.ProgressBar,
5591
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5592
+ import_components51.ProgressBar,
5524
5593
  {
5525
5594
  id: uid,
5526
5595
  className: (0, import_classnames26.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
5527
- title: title && help ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(LabelContentWithHelp, { text: title, help }) : title,
5596
+ title: title && help ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(LabelContentWithHelp, { text: title, help }) : title,
5528
5597
  description,
5529
5598
  progress: {
5530
5599
  max: 1,
@@ -5537,7 +5606,7 @@ var ProgressRenderer = {
5537
5606
  };
5538
5607
 
5539
5608
  // ../renderers/src/RepeatableRenderer.tsx
5540
- var import_components50 = require("@transferwise/components");
5609
+ var import_components52 = require("@transferwise/components");
5541
5610
  var import_icons2 = require("@transferwise/icons");
5542
5611
  var import_classnames27 = __toESM(require_classnames());
5543
5612
  var import_react20 = require("react");
@@ -5569,10 +5638,10 @@ var repeatable_messages_default = (0, import_react_intl26.defineMessages)({
5569
5638
  });
5570
5639
 
5571
5640
  // ../renderers/src/RepeatableRenderer.tsx
5572
- var import_jsx_runtime77 = require("react/jsx-runtime");
5641
+ var import_jsx_runtime79 = require("react/jsx-runtime");
5573
5642
  var RepeatableRenderer = {
5574
5643
  canRenderType: "repeatable",
5575
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Repeatable, __spreadValues({}, props))
5644
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Repeatable, __spreadValues({}, props))
5576
5645
  };
5577
5646
  function Repeatable(props) {
5578
5647
  const {
@@ -5613,43 +5682,43 @@ function Repeatable(props) {
5613
5682
  const onCancelEdit = () => {
5614
5683
  setOpenModalType(null);
5615
5684
  };
5616
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
5617
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { ref, className: controlAndTagsToCSSClass(props), children: [
5618
- title && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components50.Header, { title }),
5619
- description && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { children: description }),
5620
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
5685
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
5686
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { ref, className: controlAndTagsToCSSClass(props), children: [
5687
+ title && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components52.Header, { title }),
5688
+ description && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { children: description }),
5689
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
5621
5690
  "div",
5622
5691
  {
5623
5692
  className: (0, import_classnames27.default)("form-group", {
5624
5693
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
5625
5694
  }),
5626
5695
  children: [
5627
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
5628
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5629
- import_components50.NavigationOption,
5696
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
5697
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5698
+ import_components52.NavigationOption,
5630
5699
  {
5631
- media: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_icons2.Plus, {}),
5700
+ media: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_icons2.Plus, {}),
5632
5701
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
5633
5702
  showMediaAtAllSizes: true,
5634
5703
  onClick: () => onAddItem()
5635
5704
  }
5636
5705
  ),
5637
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components50.InlineAlert, { type: "negative", children: validationState.message })
5706
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components52.InlineAlert, { type: "negative", children: validationState.message })
5638
5707
  ]
5639
5708
  }
5640
5709
  )
5641
5710
  ] }),
5642
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5643
- import_components50.Modal,
5711
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5712
+ import_components52.Modal,
5644
5713
  {
5645
5714
  open: openModalType !== null,
5646
5715
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
5647
- body: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
5648
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "m-b-2", children: editableItem }),
5649
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
5650
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components50.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
5651
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5652
- import_components50.Button,
5716
+ body: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
5717
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "m-b-2", children: editableItem }),
5718
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
5719
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components52.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
5720
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5721
+ import_components52.Button,
5653
5722
  {
5654
5723
  v2: true,
5655
5724
  priority: "secondary",
@@ -5670,10 +5739,10 @@ function ItemSummaryOption({
5670
5739
  item,
5671
5740
  onClick
5672
5741
  }) {
5673
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5674
- import_components50.NavigationOption,
5742
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5743
+ import_components52.NavigationOption,
5675
5744
  {
5676
- media: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
5745
+ media: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
5677
5746
  title: item.title,
5678
5747
  content: item.description,
5679
5748
  showMediaAtAllSizes: true,
@@ -5685,17 +5754,17 @@ function ItemSummaryOption({
5685
5754
  var RepeatableRenderer_default = RepeatableRenderer;
5686
5755
 
5687
5756
  // ../renderers/src/ReviewLegacyRenderer.tsx
5688
- var import_components51 = require("@transferwise/components");
5757
+ var import_components53 = require("@transferwise/components");
5689
5758
  var import_classnames28 = __toESM(require_classnames());
5690
- var import_jsx_runtime78 = require("react/jsx-runtime");
5759
+ var import_jsx_runtime80 = require("react/jsx-runtime");
5691
5760
  var ReviewRenderer = {
5692
5761
  canRenderType: "review",
5693
5762
  render: ({ callToAction, control, fields, margin, title, trackEvent, tags }) => {
5694
5763
  const orientation = mapControlToDefinitionListLayout(control);
5695
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: (0, import_classnames28.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5696
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Header, { title, callToAction }),
5697
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5698
- import_components51.DefinitionList,
5764
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: (0, import_classnames28.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5765
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Header, { title, callToAction }),
5766
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5767
+ import_components53.DefinitionList,
5699
5768
  {
5700
5769
  layout: orientation,
5701
5770
  definitions: fields.map(
@@ -5732,21 +5801,21 @@ var mapControlToDefinitionListLayout = (control) => {
5732
5801
  };
5733
5802
  var getFieldLabel = (label, help, onClick) => {
5734
5803
  if (help) {
5735
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
5804
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
5736
5805
  label,
5737
5806
  " ",
5738
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Help_default, { help, onClick })
5807
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Help_default, { help, onClick })
5739
5808
  ] });
5740
5809
  }
5741
5810
  return label;
5742
5811
  };
5743
5812
 
5744
5813
  // ../renderers/src/ReviewRenderer.tsx
5745
- var import_components52 = require("@transferwise/components");
5814
+ var import_components54 = require("@transferwise/components");
5746
5815
  var import_icons3 = require("@transferwise/icons");
5747
5816
  var import_classnames29 = __toESM(require_classnames());
5748
5817
  var import_react_intl28 = require("react-intl");
5749
- var import_jsx_runtime79 = require("react/jsx-runtime");
5818
+ var import_jsx_runtime81 = require("react/jsx-runtime");
5750
5819
  var IGNORED_CONTROLS = [
5751
5820
  "horizontal",
5752
5821
  "horizontal-end-aligned",
@@ -5756,7 +5825,7 @@ var IGNORED_CONTROLS = [
5756
5825
  var ReviewRenderer2 = {
5757
5826
  canRenderType: "review",
5758
5827
  canRender: ({ control }) => control ? !IGNORED_CONTROLS.includes(control) : true,
5759
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Review, __spreadValues({}, props))
5828
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Review, __spreadValues({}, props))
5760
5829
  };
5761
5830
  var Review = ({
5762
5831
  callToAction,
@@ -5768,8 +5837,8 @@ var Review = ({
5768
5837
  trackEvent
5769
5838
  }) => {
5770
5839
  const intl = (0, import_react_intl28.useIntl)();
5771
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: (0, import_classnames29.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5772
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Header, { title, callToAction }),
5840
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: (0, import_classnames29.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5841
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Header, { title, callToAction }),
5773
5842
  fields.map((field) => {
5774
5843
  var _a, _b, _c;
5775
5844
  const {
@@ -5787,8 +5856,8 @@ var Review = ({
5787
5856
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
5788
5857
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
5789
5858
  };
5790
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5791
- import_components52.ListItem,
5859
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5860
+ import_components54.ListItem,
5792
5861
  {
5793
5862
  title: value,
5794
5863
  subtitle: label,
@@ -5808,12 +5877,12 @@ var Review = ({
5808
5877
  ] });
5809
5878
  };
5810
5879
  var getHelpControl = (help, ariaLabel, onClick) => {
5811
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components52.Popover, { content: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components52.Markdown, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_components52.ListItem.IconButton, { partiallyInteractive: true, "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_icons3.QuestionMarkCircle, {}) }) });
5880
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components54.Popover, { content: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components54.Markdown, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components54.ListItem.IconButton, { partiallyInteractive: true, "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_icons3.QuestionMarkCircle, {}) }) });
5812
5881
  };
5813
5882
  var ReviewRenderer_default = ReviewRenderer2;
5814
5883
 
5815
5884
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
5816
- var import_components54 = require("@transferwise/components");
5885
+ var import_components56 = require("@transferwise/components");
5817
5886
  var import_react21 = require("react");
5818
5887
  var import_react_intl31 = require("react-intl");
5819
5888
 
@@ -5829,20 +5898,20 @@ var search_messages_default = (0, import_react_intl29.defineMessages)({
5829
5898
 
5830
5899
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
5831
5900
  var import_react_intl30 = require("react-intl");
5832
- var import_components53 = require("@transferwise/components");
5833
- var import_jsx_runtime80 = require("react/jsx-runtime");
5901
+ var import_components55 = require("@transferwise/components");
5902
+ var import_jsx_runtime82 = require("react/jsx-runtime");
5834
5903
  function ErrorResult({ state }) {
5835
5904
  const intl = (0, import_react_intl30.useIntl)();
5836
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("p", { className: "m-t-2", children: [
5905
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("p", { className: "m-t-2", children: [
5837
5906
  intl.formatMessage(generic_error_messages_default.genericError),
5838
5907
  "\xA0",
5839
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components53.Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
5908
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_components55.Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
5840
5909
  ] });
5841
5910
  }
5842
5911
 
5843
5912
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
5844
5913
  var import_icons4 = require("@transferwise/icons");
5845
- var import_jsx_runtime81 = require("react/jsx-runtime");
5914
+ var import_jsx_runtime83 = require("react/jsx-runtime");
5846
5915
  function BlockSearchRendererComponent({
5847
5916
  id,
5848
5917
  hint,
@@ -5859,8 +5928,8 @@ function BlockSearchRendererComponent({
5859
5928
  }) {
5860
5929
  const [hasSearched, setHasSearched] = (0, import_react21.useState)(false);
5861
5930
  const { formatMessage } = (0, import_react_intl31.useIntl)();
5862
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: getMargin(margin), children: [
5863
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5931
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: getMargin(margin), children: [
5932
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5864
5933
  FieldInput_default,
5865
5934
  {
5866
5935
  id,
@@ -5871,8 +5940,8 @@ function BlockSearchRendererComponent({
5871
5940
  features,
5872
5941
  control,
5873
5942
  tags,
5874
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components54.InputGroup, { addonStart: { content: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_icons4.Search, { size: 24 }) }, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5875
- import_components54.Input,
5943
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_components56.InputGroup, { addonStart: { content: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_icons4.Search, { size: 24 }) }, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5944
+ import_components56.Input,
5876
5945
  {
5877
5946
  id,
5878
5947
  name: id,
@@ -5891,7 +5960,7 @@ function BlockSearchRendererComponent({
5891
5960
  ) })
5892
5961
  }
5893
5962
  ),
5894
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(SearchResultContent, { state, trackEvent })
5963
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(SearchResultContent, { state, trackEvent })
5895
5964
  ] });
5896
5965
  }
5897
5966
  function SearchResultContent({
@@ -5900,39 +5969,39 @@ function SearchResultContent({
5900
5969
  }) {
5901
5970
  switch (state.type) {
5902
5971
  case "error":
5903
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ErrorResult, { state });
5972
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ErrorResult, { state });
5904
5973
  case "results":
5905
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(SearchResults, { state, trackEvent });
5974
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(SearchResults, { state, trackEvent });
5906
5975
  case "layout":
5907
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
5976
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
5908
5977
  " ",
5909
5978
  state.layout,
5910
5979
  " "
5911
5980
  ] });
5912
5981
  case "noResults":
5913
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(EmptySearchResult, { state });
5982
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(EmptySearchResult, { state });
5914
5983
  case "pending":
5915
5984
  default:
5916
5985
  return null;
5917
5986
  }
5918
5987
  }
5919
5988
  function EmptySearchResult({ state }) {
5920
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components54.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
5989
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_components56.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
5921
5990
  }
5922
5991
  function SearchResults({
5923
5992
  state,
5924
5993
  trackEvent
5925
5994
  }) {
5926
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components54.List, { children: state.results.map((result) => {
5995
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_components56.List, { children: state.results.map((result) => {
5927
5996
  const { media } = result;
5928
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5929
- import_components54.ListItem,
5997
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5998
+ import_components56.ListItem,
5930
5999
  {
5931
6000
  title: result.title,
5932
6001
  subtitle: result.description,
5933
- media: media ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(OptionMedia, { media, preferAvatar: false }) : void 0,
5934
- control: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5935
- import_components54.ListItem.Navigation,
6002
+ media: media ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(OptionMedia, { media, preferAvatar: false }) : void 0,
6003
+ control: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
6004
+ import_components56.ListItem.Navigation,
5936
6005
  {
5937
6006
  onClick: () => {
5938
6007
  trackEvent("Search Result Selected", __spreadValues({
@@ -5950,11 +6019,11 @@ function SearchResults({
5950
6019
  var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
5951
6020
 
5952
6021
  // ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
5953
- var import_components55 = require("@transferwise/components");
6022
+ var import_components57 = require("@transferwise/components");
5954
6023
  var import_icons5 = require("@transferwise/icons");
5955
6024
  var import_react22 = require("react");
5956
6025
  var import_react_intl32 = require("react-intl");
5957
- var import_jsx_runtime82 = require("react/jsx-runtime");
6026
+ var import_jsx_runtime84 = require("react/jsx-runtime");
5958
6027
  function InlineSearchRenderer({
5959
6028
  id,
5960
6029
  hint,
@@ -5970,7 +6039,7 @@ function InlineSearchRenderer({
5970
6039
  }) {
5971
6040
  const [hasSearched, setHasSearched] = (0, import_react22.useState)(false);
5972
6041
  const intl = (0, import_react_intl32.useIntl)();
5973
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
6042
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
5974
6043
  FieldInput_default,
5975
6044
  {
5976
6045
  id,
@@ -5981,8 +6050,8 @@ function InlineSearchRenderer({
5981
6050
  features,
5982
6051
  control,
5983
6052
  tags,
5984
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5985
- import_components55.Typeahead,
6053
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
6054
+ import_components57.Typeahead,
5986
6055
  {
5987
6056
  id: "typeahead-input-id",
5988
6057
  intl,
@@ -5990,10 +6059,10 @@ function InlineSearchRenderer({
5990
6059
  size: "md",
5991
6060
  placeholder: hint,
5992
6061
  maxHeight: 100,
5993
- footer: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TypeaheadFooter, { state, isLoading }),
6062
+ footer: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(TypeaheadFooter, { state, isLoading }),
5994
6063
  multiple: false,
5995
6064
  clearable: false,
5996
- addon: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_icons5.Search, { size: 24 }),
6065
+ addon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons5.Search, { size: 24 }),
5997
6066
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
5998
6067
  minQueryLength: 1,
5999
6068
  onChange: (values) => {
@@ -6032,31 +6101,31 @@ function mapResultToTypeaheadOption(result) {
6032
6101
  function TypeaheadFooter({ state, isLoading }) {
6033
6102
  const { formatMessage } = (0, import_react_intl32.useIntl)();
6034
6103
  if (state.type === "layout") {
6035
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "m-x-1 m-y-1", children: state.layout });
6104
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "m-x-1 m-y-1", children: state.layout });
6036
6105
  }
6037
6106
  if (state.type === "noResults") {
6038
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_components55.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
6107
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_components57.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
6039
6108
  }
6040
6109
  if (state.type === "error") {
6041
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ErrorResult, { state }) });
6110
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ErrorResult, { state }) });
6042
6111
  }
6043
6112
  if (state.type === "pending" || isLoading) {
6044
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
6113
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
6045
6114
  }
6046
6115
  return null;
6047
6116
  }
6048
6117
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
6049
6118
 
6050
6119
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
6051
- var import_jsx_runtime83 = require("react/jsx-runtime");
6120
+ var import_jsx_runtime85 = require("react/jsx-runtime");
6052
6121
  var SearchRenderer = {
6053
6122
  canRenderType: "search",
6054
- render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
6123
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
6055
6124
  };
6056
6125
  var SearchRenderer_default = SearchRenderer;
6057
6126
 
6058
6127
  // ../renderers/src/SectionRenderer.tsx
6059
- var import_components56 = require("@transferwise/components");
6128
+ var import_components58 = require("@transferwise/components");
6060
6129
  var import_classnames30 = __toESM(require_classnames());
6061
6130
 
6062
6131
  // ../renderers/src/utils/getHeaderAction.tsx
@@ -6081,16 +6150,16 @@ var getHeaderAction2 = (callToAction) => {
6081
6150
  };
6082
6151
 
6083
6152
  // ../renderers/src/SectionRenderer.tsx
6084
- var import_jsx_runtime84 = require("react/jsx-runtime");
6153
+ var import_jsx_runtime86 = require("react/jsx-runtime");
6085
6154
  var SectionRenderer = {
6086
6155
  canRenderType: "section",
6087
6156
  render: ({ children, callToAction, margin, title, control, tags }) => {
6088
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
6157
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
6089
6158
  "section",
6090
6159
  {
6091
6160
  className: (0, import_classnames30.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
6092
6161
  children: [
6093
- (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_components56.Header, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
6162
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_components58.Header, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
6094
6163
  children
6095
6164
  ]
6096
6165
  }
@@ -6100,8 +6169,8 @@ var SectionRenderer = {
6100
6169
  var SectionRenderer_default = SectionRenderer;
6101
6170
 
6102
6171
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
6103
- var import_components57 = require("@transferwise/components");
6104
- var import_jsx_runtime85 = require("react/jsx-runtime");
6172
+ var import_components59 = require("@transferwise/components");
6173
+ var import_jsx_runtime87 = require("react/jsx-runtime");
6105
6174
  function RadioInputRendererComponent(props) {
6106
6175
  const {
6107
6176
  id,
@@ -6118,8 +6187,8 @@ function RadioInputRendererComponent(props) {
6118
6187
  tags,
6119
6188
  onSelect
6120
6189
  } = props;
6121
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
6122
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6190
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
6191
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6123
6192
  FieldInput_default,
6124
6193
  {
6125
6194
  id,
@@ -6130,8 +6199,8 @@ function RadioInputRendererComponent(props) {
6130
6199
  features,
6131
6200
  control,
6132
6201
  tags,
6133
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6134
- import_components57.RadioGroup,
6202
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6203
+ import_components59.RadioGroup,
6135
6204
  {
6136
6205
  name: id,
6137
6206
  radios: options.map((option, index) => ({
@@ -6139,7 +6208,7 @@ function RadioInputRendererComponent(props) {
6139
6208
  value: index,
6140
6209
  secondary: option.description,
6141
6210
  disabled: option.disabled || disabled,
6142
- avatar: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
6211
+ avatar: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
6143
6212
  })),
6144
6213
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
6145
6214
  onChange: onSelect
@@ -6153,9 +6222,9 @@ function RadioInputRendererComponent(props) {
6153
6222
  }
6154
6223
 
6155
6224
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
6156
- var import_components58 = require("@transferwise/components");
6225
+ var import_components60 = require("@transferwise/components");
6157
6226
  var import_react23 = require("react");
6158
- var import_jsx_runtime86 = require("react/jsx-runtime");
6227
+ var import_jsx_runtime88 = require("react/jsx-runtime");
6159
6228
  function TabInputRendererComponent(props) {
6160
6229
  const {
6161
6230
  id,
@@ -6177,8 +6246,8 @@ function TabInputRendererComponent(props) {
6177
6246
  onSelect(0);
6178
6247
  }
6179
6248
  }, [selectedIndex, onSelect, options.length]);
6180
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
6181
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6249
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
6250
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
6182
6251
  FieldInput_default,
6183
6252
  {
6184
6253
  id,
@@ -6189,8 +6258,8 @@ function TabInputRendererComponent(props) {
6189
6258
  features,
6190
6259
  control,
6191
6260
  tags,
6192
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6193
- import_components58.Tabs,
6261
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
6262
+ import_components60.Tabs,
6194
6263
  {
6195
6264
  name: id,
6196
6265
  selected: selectedIndex != null ? selectedIndex : 0,
@@ -6198,7 +6267,7 @@ function TabInputRendererComponent(props) {
6198
6267
  title: option.title,
6199
6268
  // if we pass null, we get some props-types console errors
6200
6269
  // eslint-disable-next-line react/jsx-no-useless-fragment
6201
- content: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_jsx_runtime86.Fragment, {}),
6270
+ content: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_jsx_runtime88.Fragment, {}),
6202
6271
  disabled: option.disabled || disabled
6203
6272
  })),
6204
6273
  onTabSelect: onSelect
@@ -6212,8 +6281,8 @@ function TabInputRendererComponent(props) {
6212
6281
  var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
6213
6282
 
6214
6283
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
6215
- var import_components59 = require("@transferwise/components");
6216
- var import_jsx_runtime87 = require("react/jsx-runtime");
6284
+ var import_components61 = require("@transferwise/components");
6285
+ var import_jsx_runtime89 = require("react/jsx-runtime");
6217
6286
  function SelectInputRendererComponent(props) {
6218
6287
  const {
6219
6288
  id,
@@ -6256,13 +6325,13 @@ function SelectInputRendererComponent(props) {
6256
6325
  } : {
6257
6326
  title: option.title,
6258
6327
  description: option.description,
6259
- icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
6328
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
6260
6329
  };
6261
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_components59.SelectInputOptionContent, __spreadValues({}, contentProps));
6330
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_components61.SelectInputOptionContent, __spreadValues({}, contentProps));
6262
6331
  };
6263
6332
  const extraProps = { autoComplete };
6264
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
6265
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6333
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
6334
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
6266
6335
  FieldInput_default,
6267
6336
  {
6268
6337
  id,
@@ -6273,8 +6342,8 @@ function SelectInputRendererComponent(props) {
6273
6342
  features,
6274
6343
  control,
6275
6344
  tags,
6276
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6277
- import_components59.SelectInput,
6345
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
6346
+ import_components61.SelectInput,
6278
6347
  __spreadValues({
6279
6348
  name: id,
6280
6349
  placeholder,
@@ -6295,8 +6364,8 @@ function SelectInputRendererComponent(props) {
6295
6364
 
6296
6365
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
6297
6366
  var import_react24 = require("react");
6298
- var import_components60 = require("@transferwise/components");
6299
- var import_jsx_runtime88 = require("react/jsx-runtime");
6367
+ var import_components62 = require("@transferwise/components");
6368
+ var import_jsx_runtime90 = require("react/jsx-runtime");
6300
6369
  function SegmentedInputRendererComponent(props) {
6301
6370
  const {
6302
6371
  id,
@@ -6317,8 +6386,8 @@ function SegmentedInputRendererComponent(props) {
6317
6386
  onSelect(0);
6318
6387
  }
6319
6388
  }, [selectedIndex, onSelect, options.length]);
6320
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
6321
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
6389
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
6390
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6322
6391
  FieldInput_default,
6323
6392
  {
6324
6393
  id,
@@ -6329,8 +6398,8 @@ function SegmentedInputRendererComponent(props) {
6329
6398
  features,
6330
6399
  control,
6331
6400
  tags,
6332
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
6333
- import_components60.SegmentedControl,
6401
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6402
+ import_components62.SegmentedControl,
6334
6403
  {
6335
6404
  name: `${id}-segmented-control`,
6336
6405
  value: String(selectedIndex),
@@ -6346,14 +6415,14 @@ function SegmentedInputRendererComponent(props) {
6346
6415
  )
6347
6416
  }
6348
6417
  ),
6349
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { id: `${id}-children`, children })
6418
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { id: `${id}-children`, children })
6350
6419
  ] });
6351
6420
  }
6352
6421
  var isValidIndex3 = (index, options) => index !== null && index >= 0 && index < options;
6353
6422
 
6354
6423
  // ../renderers/src/SelectInputRenderer/RadioItemRendererComponent.tsx
6355
- var import_components61 = require("@transferwise/components");
6356
- var import_jsx_runtime89 = require("react/jsx-runtime");
6424
+ var import_components63 = require("@transferwise/components");
6425
+ var import_jsx_runtime91 = require("react/jsx-runtime");
6357
6426
  function RadioItemRendererComponent(props) {
6358
6427
  const {
6359
6428
  id,
@@ -6369,23 +6438,23 @@ function RadioItemRendererComponent(props) {
6369
6438
  onSelect
6370
6439
  } = props;
6371
6440
  const { ref } = useScrollToError(validationState, features);
6372
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { ref, className: controlAndTagsToCSSClass(props), children: [
6373
- rootTitle && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
6374
- import_components61.Header,
6441
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { ref, className: controlAndTagsToCSSClass(props), children: [
6442
+ rootTitle && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6443
+ import_components63.Header,
6375
6444
  {
6376
6445
  as: "h2",
6377
- title: help ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
6446
+ title: help ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
6378
6447
  }
6379
6448
  ),
6380
- rootDescription && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { children: rootDescription }),
6381
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_components61.List, { children: options.map(
6382
- ({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
6383
- import_components61.ListItem,
6449
+ rootDescription && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: rootDescription }),
6450
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_components63.List, { children: options.map(
6451
+ ({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6452
+ import_components63.ListItem,
6384
6453
  __spreadValues({
6385
6454
  title,
6386
6455
  subtitle: description,
6387
- control: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
6388
- import_components61.ListItem.Radio,
6456
+ control: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6457
+ import_components63.ListItem.Radio,
6389
6458
  {
6390
6459
  name: title,
6391
6460
  checked: selectedIndex === index,
@@ -6400,51 +6469,51 @@ function RadioItemRendererComponent(props) {
6400
6469
  title
6401
6470
  )
6402
6471
  ) }, `${id}-${selectedIndex}`),
6403
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_components61.InlineAlert, { type: "negative", children: validationState.message }),
6472
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_components63.InlineAlert, { type: "negative", children: validationState.message }),
6404
6473
  children
6405
6474
  ] });
6406
6475
  }
6407
6476
 
6408
6477
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
6409
- var import_jsx_runtime90 = require("react/jsx-runtime");
6478
+ var import_jsx_runtime92 = require("react/jsx-runtime");
6410
6479
  var SelectInputRenderer = {
6411
6480
  canRenderType: "input-select",
6412
6481
  render: (props) => {
6413
6482
  switch (props.control) {
6414
6483
  case "radio":
6415
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
6484
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
6416
6485
  case "radio-item":
6417
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItemRendererComponent, __spreadValues({}, props));
6486
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(RadioItemRendererComponent, __spreadValues({}, props));
6418
6487
  case "tab":
6419
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(TabInputRendererComponent, __spreadValues({}, props));
6488
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(TabInputRendererComponent, __spreadValues({}, props));
6420
6489
  case "segmented":
6421
- return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
6490
+ return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
6422
6491
  case "select":
6423
6492
  default:
6424
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
6493
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
6425
6494
  }
6426
6495
  }
6427
6496
  };
6428
6497
  var SelectInputRenderer_default = SelectInputRenderer;
6429
6498
 
6430
6499
  // ../renderers/src/StatusListRenderer.tsx
6431
- var import_components62 = require("@transferwise/components");
6500
+ var import_components64 = require("@transferwise/components");
6432
6501
  var import_classnames31 = __toESM(require_classnames());
6433
- var import_jsx_runtime91 = require("react/jsx-runtime");
6502
+ var import_jsx_runtime93 = require("react/jsx-runtime");
6434
6503
  var StatusListRenderer = {
6435
6504
  canRenderType: "status-list",
6436
- render: ({ margin, items, title, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: (0, import_classnames31.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6437
- title ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_components62.Header, { title }) : null,
6505
+ render: ({ margin, items, title, control, tags }) => /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: (0, import_classnames31.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6506
+ title ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_components64.Header, { title }) : null,
6438
6507
  items.map((item) => {
6439
6508
  const { callToAction, description, title: itemTitle } = item;
6440
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6441
- import_components62.ListItem,
6509
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
6510
+ import_components64.ListItem,
6442
6511
  {
6443
6512
  title: itemTitle,
6444
6513
  subtitle: description,
6445
- media: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusListItemMedia, __spreadValues({}, item)),
6446
- additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6447
- import_components62.ListItem.AdditionalInfo,
6514
+ media: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(StatusListItemMedia, __spreadValues({}, item)),
6515
+ additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
6516
+ import_components64.ListItem.AdditionalInfo,
6448
6517
  {
6449
6518
  action: __spreadValues({
6450
6519
  label: callToAction.title
@@ -6462,10 +6531,10 @@ var StatusListItemMedia = ({ icon, status }) => {
6462
6531
  return void 0;
6463
6532
  }
6464
6533
  if ("name" in icon) {
6465
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_components62.AvatarView, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(DynamicIcon_default, { name: icon.name }) });
6534
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_components64.AvatarView, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DynamicIcon_default, { name: icon.name }) });
6466
6535
  }
6467
6536
  if ("text" in icon) {
6468
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_components62.AvatarView, { badge: { status: mapStatus(status) }, children: icon.text });
6537
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_components64.AvatarView, { badge: { status: mapStatus(status) }, children: icon.text });
6469
6538
  }
6470
6539
  return void 0;
6471
6540
  };
@@ -6503,13 +6572,13 @@ var useCustomTheme = (theme, trackEvent) => {
6503
6572
  };
6504
6573
 
6505
6574
  // ../renderers/src/step/StepHeader.tsx
6506
- var import_components63 = require("@transferwise/components");
6507
- var import_jsx_runtime92 = require("react/jsx-runtime");
6575
+ var import_components65 = require("@transferwise/components");
6576
+ var import_jsx_runtime94 = require("react/jsx-runtime");
6508
6577
  var StepHeader = ({ title, description, tags }) => {
6509
6578
  const { titleType, alignmentClassName } = getHeaderStyle(tags);
6510
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
6511
- title ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_components63.Title, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
6512
- description ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
6579
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
6580
+ title ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_components65.Title, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
6581
+ description ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
6513
6582
  ] });
6514
6583
  };
6515
6584
  var getHeaderStyle = (tags) => {
@@ -6520,7 +6589,7 @@ var getHeaderStyle = (tags) => {
6520
6589
  };
6521
6590
 
6522
6591
  // ../renderers/src/step/topbar/BackButton.tsx
6523
- var import_components64 = require("@transferwise/components");
6592
+ var import_components66 = require("@transferwise/components");
6524
6593
  var import_icons6 = require("@transferwise/icons");
6525
6594
  var import_react_intl34 = require("react-intl");
6526
6595
 
@@ -6535,31 +6604,31 @@ var back_messages_default = (0, import_react_intl33.defineMessages)({
6535
6604
  });
6536
6605
 
6537
6606
  // ../renderers/src/step/topbar/BackButton.tsx
6538
- var import_jsx_runtime93 = require("react/jsx-runtime");
6607
+ var import_jsx_runtime95 = require("react/jsx-runtime");
6539
6608
  function BackButton({ title, onClick }) {
6540
6609
  const { formatMessage } = (0, import_react_intl34.useIntl)();
6541
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_components64.IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
6542
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
6543
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_icons6.ArrowLeft, {})
6610
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_components66.IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
6611
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
6612
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_icons6.ArrowLeft, {})
6544
6613
  ] });
6545
6614
  }
6546
6615
 
6547
6616
  // ../renderers/src/step/topbar/Toolbar.tsx
6548
- var import_components65 = require("@transferwise/components");
6549
- var import_jsx_runtime94 = require("react/jsx-runtime");
6617
+ var import_components67 = require("@transferwise/components");
6618
+ var import_jsx_runtime96 = require("react/jsx-runtime");
6550
6619
  var Toolbar = ({ items }) => {
6551
- return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
6620
+ return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
6552
6621
  };
6553
6622
  function ToolbarButton(props) {
6554
- return prefersMedia(props.control) ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(TextToolbarButton, __spreadValues({}, props));
6623
+ return prefersMedia(props.control) ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(TextToolbarButton, __spreadValues({}, props));
6555
6624
  }
6556
6625
  function MediaToolbarButton(props) {
6557
6626
  var _a;
6558
6627
  const { context, control, media, accessibilityDescription, disabled, onClick } = props;
6559
6628
  const priority = getIconButtonPriority(control);
6560
6629
  const type = getSentiment2(context);
6561
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
6562
- import_components65.IconButton,
6630
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
6631
+ import_components67.IconButton,
6563
6632
  {
6564
6633
  className: "df-toolbar-button",
6565
6634
  disabled,
@@ -6568,7 +6637,7 @@ function MediaToolbarButton(props) {
6568
6637
  type,
6569
6638
  onClick,
6570
6639
  children: [
6571
- accessibilityDescription ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "sr-only", children: accessibilityDescription }) : null,
6640
+ accessibilityDescription ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "sr-only", children: accessibilityDescription }) : null,
6572
6641
  media ? (_a = getAddonStartMedia(media)) == null ? void 0 : _a.value : null
6573
6642
  ]
6574
6643
  }
@@ -6579,8 +6648,8 @@ function TextToolbarButton(props) {
6579
6648
  const addonStart = media ? getAddonStartMedia(media) : void 0;
6580
6649
  const priority = getPriority2(control);
6581
6650
  const sentiment = getSentiment2(context);
6582
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
6583
- import_components65.Button,
6651
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
6652
+ import_components67.Button,
6584
6653
  {
6585
6654
  v2: true,
6586
6655
  size: "sm",
@@ -6609,18 +6678,18 @@ var getIconButtonPriority = (control) => {
6609
6678
  };
6610
6679
 
6611
6680
  // ../renderers/src/step/topbar/TopBar.tsx
6612
- var import_jsx_runtime95 = require("react/jsx-runtime");
6681
+ var import_jsx_runtime97 = require("react/jsx-runtime");
6613
6682
  function TopBar({ back, toolbar, tags }) {
6614
6683
  const isBackAllowed = !(tags == null ? void 0 : tags.includes("non-dismissible"));
6615
6684
  const backCTA = isBackAllowed ? back : void 0;
6616
- return backCTA || toolbar ? /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "d-flex m-b-2", children: [
6617
- backCTA ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(BackButton, __spreadValues({}, backCTA)) : null,
6618
- toolbar ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Toolbar, __spreadValues({}, toolbar)) : null
6685
+ return backCTA || toolbar ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "d-flex m-b-2", children: [
6686
+ backCTA ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(BackButton, __spreadValues({}, backCTA)) : null,
6687
+ toolbar ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Toolbar, __spreadValues({}, toolbar)) : null
6619
6688
  ] }) : null;
6620
6689
  }
6621
6690
 
6622
6691
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
6623
- var import_jsx_runtime96 = require("react/jsx-runtime");
6692
+ var import_jsx_runtime98 = require("react/jsx-runtime");
6624
6693
  var SplashCelebrationStepRenderer = {
6625
6694
  canRenderType: "step",
6626
6695
  canRender: ({ control }) => control === "splash-celebration",
@@ -6629,15 +6698,15 @@ var SplashCelebrationStepRenderer = {
6629
6698
  function SplashCelebrationStepRendererComponent(props) {
6630
6699
  const { back, title, description, toolbar, children, footer, control, tags, trackEvent } = props;
6631
6700
  useCustomTheme("forest-green", trackEvent);
6632
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
6701
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
6633
6702
  "div",
6634
6703
  {
6635
6704
  className: (0, import_classnames32.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
6636
6705
  children: [
6637
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(TopBar, { back, toolbar, tags }),
6638
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(StepHeader, { title, description, tags }) }) : void 0,
6706
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(TopBar, { back, toolbar, tags }),
6707
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(StepHeader, { title, description, tags }) }) : void 0,
6639
6708
  children,
6640
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(StepFooter, { footer, tags })
6709
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(StepFooter, { footer, tags })
6641
6710
  ]
6642
6711
  }
6643
6712
  );
@@ -6645,7 +6714,7 @@ function SplashCelebrationStepRendererComponent(props) {
6645
6714
 
6646
6715
  // ../renderers/src/step/SplashStepRenderer.tsx
6647
6716
  var import_classnames33 = __toESM(require_classnames());
6648
- var import_jsx_runtime97 = require("react/jsx-runtime");
6717
+ var import_jsx_runtime99 = require("react/jsx-runtime");
6649
6718
  var SplashStepRenderer = {
6650
6719
  canRenderType: "step",
6651
6720
  canRender: ({ control }) => control === "splash",
@@ -6653,70 +6722,70 @@ var SplashStepRenderer = {
6653
6722
  };
6654
6723
  function SplashStepRendererComponent(props) {
6655
6724
  const { back, title, description, toolbar, children, footer, control, tags } = props;
6656
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
6725
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
6657
6726
  "div",
6658
6727
  {
6659
6728
  className: (0, import_classnames33.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
6660
6729
  children: [
6661
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TopBar, { back, toolbar, tags }),
6662
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(StepHeader, { title, description, tags }) }) : void 0,
6730
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TopBar, { back, toolbar, tags }),
6731
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(StepHeader, { title, description, tags }) }) : void 0,
6663
6732
  children,
6664
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(StepFooter, { footer, tags })
6733
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(StepFooter, { footer, tags })
6665
6734
  ]
6666
6735
  }
6667
6736
  );
6668
6737
  }
6669
6738
 
6670
6739
  // ../renderers/src/step/StepRenderer.tsx
6671
- var import_components66 = require("@transferwise/components");
6672
- var import_jsx_runtime98 = require("react/jsx-runtime");
6740
+ var import_components68 = require("@transferwise/components");
6741
+ var import_jsx_runtime100 = require("react/jsx-runtime");
6673
6742
  var StepRenderer = {
6674
6743
  canRenderType: "step",
6675
6744
  render: StepRendererComponent
6676
6745
  };
6677
6746
  function StepRendererComponent(props) {
6678
6747
  const { back, description, error, title, children, toolbar, footer, control, tags } = props;
6679
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: controlAndTagsToCSSClass({ control, tags }), children: [
6680
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(TopBar, { back, toolbar, tags }),
6681
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(StepHeader, { title, description, tags }) }) : void 0,
6682
- error ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_components66.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
6748
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: controlAndTagsToCSSClass({ control, tags }), children: [
6749
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TopBar, { back, toolbar, tags }),
6750
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "m-b-4", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(StepHeader, { title, description, tags }) }) : void 0,
6751
+ error ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_components68.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
6683
6752
  children,
6684
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(StepFooter, { footer, tags })
6753
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(StepFooter, { footer, tags })
6685
6754
  ] });
6686
6755
  }
6687
6756
 
6688
6757
  // ../renderers/src/TabsRenderer.tsx
6689
- var import_components67 = require("@transferwise/components");
6758
+ var import_components69 = require("@transferwise/components");
6690
6759
  var import_classnames34 = __toESM(require_classnames());
6691
6760
  var import_react26 = require("react");
6692
- var import_jsx_runtime99 = require("react/jsx-runtime");
6761
+ var import_jsx_runtime101 = require("react/jsx-runtime");
6693
6762
  var TabsRenderer = {
6694
6763
  canRenderType: "tabs",
6695
6764
  render: (props) => {
6696
6765
  switch (props.control) {
6697
6766
  case "segmented":
6698
6767
  if (props.tabs.length > 3) {
6699
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TabsRendererComponent, __spreadValues({}, props));
6768
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TabsRendererComponent, __spreadValues({}, props));
6700
6769
  }
6701
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
6770
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
6702
6771
  case "chips":
6703
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
6772
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
6704
6773
  default:
6705
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TabsRendererComponent, __spreadValues({}, props));
6774
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TabsRendererComponent, __spreadValues({}, props));
6706
6775
  }
6707
6776
  }
6708
6777
  };
6709
6778
  function TabsRendererComponent({ uid, margin, tabs, control, tags }) {
6710
6779
  const [selectedIndex, setSelectedIndex] = (0, import_react26.useState)(0);
6711
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6712
- import_components67.Tabs,
6780
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6781
+ import_components69.Tabs,
6713
6782
  {
6714
6783
  name: uid,
6715
6784
  selected: selectedIndex != null ? selectedIndex : 0,
6716
6785
  tabs: tabs.map((option) => ({
6717
6786
  title: option.title,
6718
6787
  disabled: false,
6719
- content: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "m-t-2", children: [
6788
+ content: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "m-t-2", children: [
6720
6789
  " ",
6721
6790
  option.children,
6722
6791
  " "
@@ -6729,9 +6798,9 @@ function TabsRendererComponent({ uid, margin, tabs, control, tags }) {
6729
6798
  function SegmentedTabsRendererComponent({ uid, margin, tabs, control, tags }) {
6730
6799
  var _a;
6731
6800
  const [selectedIndex, setSelectedIndex] = (0, import_react26.useState)(0);
6732
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6733
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6734
- import_components67.SegmentedControl,
6801
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6802
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6803
+ import_components69.SegmentedControl,
6735
6804
  {
6736
6805
  name: uid,
6737
6806
  value: String(selectedIndex),
@@ -6745,31 +6814,31 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs, control, tags }) {
6745
6814
  onChange: (value) => setSelectedIndex(Number(value))
6746
6815
  }
6747
6816
  ),
6748
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6817
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6749
6818
  ] });
6750
6819
  }
6751
6820
  function ChipsTabsRendererComponent({ margin, tabs, control, tags }) {
6752
6821
  var _a;
6753
6822
  const [selectedIndex, setSelectedIndex] = (0, import_react26.useState)(0);
6754
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6755
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6756
- import_components67.Chips,
6823
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6824
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6825
+ import_components69.Chips,
6757
6826
  {
6758
6827
  chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
6759
6828
  selected: selectedIndex,
6760
6829
  onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
6761
6830
  }
6762
6831
  ) }),
6763
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6832
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6764
6833
  ] });
6765
6834
  }
6766
6835
 
6767
6836
  // ../renderers/src/TextInputRenderer.tsx
6768
- var import_components69 = require("@transferwise/components");
6837
+ var import_components71 = require("@transferwise/components");
6769
6838
  var import_react28 = require("react");
6770
6839
 
6771
6840
  // ../renderers/src/components/VariableTextInput.tsx
6772
- var import_components68 = require("@transferwise/components");
6841
+ var import_components70 = require("@transferwise/components");
6773
6842
  var import_icons7 = require("@transferwise/icons");
6774
6843
  var import_react_intl36 = require("react-intl");
6775
6844
  var import_react27 = require("react");
@@ -6861,7 +6930,7 @@ function getDisplayOffset(displayValue, rawOffset) {
6861
6930
  }
6862
6931
 
6863
6932
  // ../renderers/src/components/VariableTextInput.tsx
6864
- var import_jsx_runtime100 = require("react/jsx-runtime");
6933
+ var import_jsx_runtime102 = require("react/jsx-runtime");
6865
6934
  var commonKeys = [
6866
6935
  "autoComplete",
6867
6936
  "autoCapitalize",
@@ -6880,14 +6949,14 @@ function VariableTextInput(inputProps) {
6880
6949
  const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
6881
6950
  switch (control) {
6882
6951
  case "email":
6883
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
6952
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
6884
6953
  case "password":
6885
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
6954
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
6886
6955
  case "ssn-input":
6887
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SsnInput, __spreadProps(__spreadValues({}, commonProps), { isVisible: isSsnVisible, onChange }));
6956
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(SsnInput, __spreadProps(__spreadValues({}, commonProps), { isVisible: isSsnVisible, onChange }));
6888
6957
  case "numeric": {
6889
6958
  const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
6890
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
6959
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6891
6960
  TextInput,
6892
6961
  __spreadProps(__spreadValues({}, numericProps), {
6893
6962
  onChange: (newValue) => {
@@ -6898,9 +6967,9 @@ function VariableTextInput(inputProps) {
6898
6967
  );
6899
6968
  }
6900
6969
  case "phone-number":
6901
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_components68.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
6970
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_components70.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
6902
6971
  default: {
6903
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
6972
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
6904
6973
  }
6905
6974
  }
6906
6975
  }
@@ -6909,23 +6978,23 @@ function SsnInputToggle({
6909
6978
  onClick
6910
6979
  }) {
6911
6980
  const { formatMessage } = (0, import_react_intl36.useIntl)();
6912
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
6913
- import_components68.IconButton,
6981
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6982
+ import_components70.IconButton,
6914
6983
  {
6915
6984
  priority: "minimal",
6916
6985
  size: 24,
6917
6986
  "aria-label": formatMessage(isVisible ? ssn_input_messages_default.hideValue : ssn_input_messages_default.showValue),
6918
6987
  "aria-pressed": isVisible,
6919
6988
  onClick,
6920
- children: isVisible ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_icons7.EyeShut, { size: 24 }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_icons7.Eye, { size: 24 })
6989
+ children: isVisible ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_icons7.EyeShut, { size: 24 }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_icons7.Eye, { size: 24 })
6921
6990
  }
6922
6991
  );
6923
6992
  }
6924
6993
  function TextInput(props) {
6925
6994
  const _a = props, { control, displayFormat, onChange, type } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange", "type"]);
6926
- const InputWithPattern = control === "textarea" ? import_components68.TextareaWithDisplayFormat : import_components68.InputWithDisplayFormat;
6927
- const InputWithoutPattern = control === "textarea" ? import_components68.TextArea : import_components68.Input;
6928
- return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { type, onChange: (e) => onChange(e.target.value) }));
6995
+ const InputWithPattern = control === "textarea" ? import_components70.TextareaWithDisplayFormat : import_components70.InputWithDisplayFormat;
6996
+ const InputWithoutPattern = control === "textarea" ? import_components70.TextArea : import_components70.Input;
6997
+ return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { type, onChange: (e) => onChange(e.target.value) }));
6929
6998
  }
6930
6999
  function SsnInput(props) {
6931
7000
  const _a = props, { displayFormat = "", isVisible = false, onChange, value = "" } = _a, commonProps = __objRest(_a, ["displayFormat", "isVisible", "onChange", "value"]);
@@ -6962,7 +7031,7 @@ function SsnInput(props) {
6962
7031
  );
6963
7032
  pendingCaret.current = null;
6964
7033
  }, [editVersion, formattedValue, rawValue]);
6965
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
7034
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6966
7035
  "input",
6967
7036
  __spreadProps(__spreadValues({
6968
7037
  ref: inputRef
@@ -7025,10 +7094,10 @@ function SsnInput(props) {
7025
7094
  }
7026
7095
 
7027
7096
  // ../renderers/src/TextInputRenderer.tsx
7028
- var import_jsx_runtime101 = require("react/jsx-runtime");
7097
+ var import_jsx_runtime103 = require("react/jsx-runtime");
7029
7098
  var TextInputRenderer = {
7030
7099
  canRenderType: "input-text",
7031
- render: (props) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TextInputRendererComponent, __spreadValues({}, props))
7100
+ render: (props) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(TextInputRendererComponent, __spreadValues({}, props))
7032
7101
  };
7033
7102
  function TextInputRendererComponent(props) {
7034
7103
  const [isSsnVisible, setIsSsnVisible] = (0, import_react28.useState)(false);
@@ -7063,7 +7132,7 @@ function TextInputRendererComponent(props) {
7063
7132
  }
7064
7133
  }
7065
7134
  });
7066
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
7135
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
7067
7136
  FieldInput_default,
7068
7137
  {
7069
7138
  id,
@@ -7076,13 +7145,13 @@ function TextInputRendererComponent(props) {
7076
7145
  features: props.features,
7077
7146
  control: props.control,
7078
7147
  tags: props.tags,
7079
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
7080
- import_components69.InputGroup,
7148
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
7149
+ import_components71.InputGroup,
7081
7150
  {
7082
7151
  addonStart: getInputGroupAddonStart(media),
7083
7152
  addonEnd: isSsnInput ? {
7084
7153
  interactive: true,
7085
- content: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
7154
+ content: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
7086
7155
  SsnInputToggle,
7087
7156
  {
7088
7157
  isVisible: isSsnVisible,
@@ -7090,7 +7159,7 @@ function TextInputRendererComponent(props) {
7090
7159
  }
7091
7160
  )
7092
7161
  } : void 0,
7093
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(VariableTextInput, __spreadValues({}, inputProps))
7162
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(VariableTextInput, __spreadValues({}, inputProps))
7094
7163
  }
7095
7164
  )
7096
7165
  }
@@ -7100,22 +7169,22 @@ var TextInputRenderer_default = TextInputRenderer;
7100
7169
 
7101
7170
  // ../renderers/src/UpdatableRenderer.tsx
7102
7171
  var import_classnames35 = __toESM(require_classnames());
7103
- var import_jsx_runtime102 = require("react/jsx-runtime");
7172
+ var import_jsx_runtime104 = require("react/jsx-runtime");
7104
7173
  var UpdatableRenderer = {
7105
7174
  canRenderType: "updatable",
7106
7175
  render: ({ children, control, margin, tags }) => {
7107
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children });
7176
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children });
7108
7177
  }
7109
7178
  };
7110
7179
 
7111
7180
  // ../renderers/src/UploadInputRenderer.tsx
7112
- var import_components70 = require("@transferwise/components");
7181
+ var import_components72 = require("@transferwise/components");
7113
7182
 
7114
7183
  // ../renderers/src/utils/getRandomId.ts
7115
7184
  var getRandomId = () => Math.random().toString(36).substring(2);
7116
7185
 
7117
7186
  // ../renderers/src/UploadInputRenderer.tsx
7118
- var import_jsx_runtime103 = require("react/jsx-runtime");
7187
+ var import_jsx_runtime105 = require("react/jsx-runtime");
7119
7188
  var UploadInputRenderer = {
7120
7189
  canRenderType: "input-upload",
7121
7190
  render: (props) => {
@@ -7144,7 +7213,7 @@ var UploadInputRenderer = {
7144
7213
  };
7145
7214
  return (
7146
7215
  // We don't pass help here as there is no sensible place to display it
7147
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
7216
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
7148
7217
  UploadFieldInput_default,
7149
7218
  {
7150
7219
  id,
@@ -7154,8 +7223,8 @@ var UploadInputRenderer = {
7154
7223
  features,
7155
7224
  control,
7156
7225
  tags,
7157
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
7158
- import_components70.UploadInput,
7226
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
7227
+ import_components72.UploadInput,
7159
7228
  {
7160
7229
  id,
7161
7230
  description,
@@ -7165,7 +7234,7 @@ var UploadInputRenderer = {
7165
7234
  {
7166
7235
  id: "my-file",
7167
7236
  filename: value.name,
7168
- status: (validationState == null ? void 0 : validationState.status) === "invalid" ? import_components70.Status.FAILED : import_components70.Status.SUCCEEDED
7237
+ status: (validationState == null ? void 0 : validationState.status) === "invalid" ? import_components72.Status.FAILED : import_components72.Status.SUCCEEDED
7169
7238
  }
7170
7239
  ] : void 0,
7171
7240
  fileTypes: acceptsToFileTypes(accepts),
@@ -7224,7 +7293,7 @@ var LargeUploadRenderer = {
7224
7293
  };
7225
7294
  const filetypes = acceptsToFileTypes(accepts);
7226
7295
  const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
7227
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
7296
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
7228
7297
  FieldInput_default,
7229
7298
  {
7230
7299
  id,
@@ -7235,8 +7304,8 @@ var LargeUploadRenderer = {
7235
7304
  features,
7236
7305
  control,
7237
7306
  tags,
7238
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
7239
- import_components70.Upload,
7307
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
7308
+ import_components72.Upload,
7240
7309
  __spreadProps(__spreadValues({}, uploadProps), {
7241
7310
  usAccept,
7242
7311
  usDisabled: disabled,
@@ -7251,10 +7320,10 @@ var LargeUploadRenderer = {
7251
7320
  };
7252
7321
 
7253
7322
  // ../renderers/src/UpsellRenderer.tsx
7254
- var import_components71 = require("@transferwise/components");
7323
+ var import_components73 = require("@transferwise/components");
7255
7324
  var import_classnames36 = __toESM(require_classnames());
7256
7325
  var import_react29 = require("react");
7257
- var import_jsx_runtime104 = require("react/jsx-runtime");
7326
+ var import_jsx_runtime106 = require("react/jsx-runtime");
7258
7327
  var UpsellRenderer = {
7259
7328
  canRenderType: "upsell",
7260
7329
  render: UpsellRendererComponent
@@ -7262,8 +7331,8 @@ var UpsellRenderer = {
7262
7331
  function UpsellRendererComponent(props) {
7263
7332
  const { text, callToAction, media, margin, onDismiss, control, tags } = props;
7264
7333
  const [isVisible, setIsVisible] = (0, import_react29.useState)(true);
7265
- return isVisible ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
7266
- import_components71.Nudge,
7334
+ return isVisible ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
7335
+ import_components73.Nudge,
7267
7336
  {
7268
7337
  className: (0, import_classnames36.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
7269
7338
  mediaName: getMediaName(media),
@@ -7362,13 +7431,13 @@ var getWiseRenderers = () => [
7362
7431
  ];
7363
7432
 
7364
7433
  // ../renderers/src/InitialLoadingStateRenderer.tsx
7365
- var import_components72 = require("@transferwise/components");
7366
- var import_jsx_runtime105 = require("react/jsx-runtime");
7434
+ var import_components74 = require("@transferwise/components");
7435
+ var import_jsx_runtime107 = require("react/jsx-runtime");
7367
7436
  var InitialLoadingStateRenderer = {
7368
7437
  canRenderType: "loading-state",
7369
7438
  canRender: ({ stepLoadingState }) => stepLoadingState === "initial",
7370
- render: () => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
7371
- import_components72.Loader,
7439
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
7440
+ import_components74.Loader,
7372
7441
  {
7373
7442
  size: "md",
7374
7443
  classNames: { "tw-loader": `tw-loader m-x-auto ${getMargin("md")}` },
@@ -7379,25 +7448,25 @@ var InitialLoadingStateRenderer = {
7379
7448
 
7380
7449
  // src/dynamicFlow/DynamicFlowModal.tsx
7381
7450
  var import_dynamic_flow_client = require("@wise/dynamic-flow-client");
7382
- var import_components73 = require("@transferwise/components");
7383
- var import_jsx_runtime106 = require("react/jsx-runtime");
7451
+ var import_components75 = require("@transferwise/components");
7452
+ var import_jsx_runtime108 = require("react/jsx-runtime");
7384
7453
  function DynamicFlowModal(props) {
7385
7454
  const _a = props, { className = "" } = _a, rest = __objRest(_a, ["className"]);
7386
7455
  const dfProps = useWiseToCoreProps(rest);
7387
7456
  const df = (0, import_dynamic_flow_client.useDynamicFlowModal)(dfProps);
7388
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
7389
- import_components73.Modal,
7457
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7458
+ import_components75.Modal,
7390
7459
  __spreadProps(__spreadValues({
7391
7460
  className: `dynamic-flow-modal ${className}`,
7392
7461
  disableDimmerClickToClose: true
7393
7462
  }, df.modal), {
7394
- body: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "dynamic-flow-modal", children: df.modal.body })
7463
+ body: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: "dynamic-flow-modal", children: df.modal.body })
7395
7464
  })
7396
7465
  );
7397
7466
  }
7398
7467
 
7399
7468
  // src/dynamicFlow/getMergedRenderers.tsx
7400
- var import_jsx_runtime107 = require("react/jsx-runtime");
7469
+ var import_jsx_runtime109 = require("react/jsx-runtime");
7401
7470
  var wiseRenderers = getWiseRenderers();
7402
7471
  var getMergedRenderers = (props) => {
7403
7472
  var _d, _e;
@@ -7411,7 +7480,7 @@ var getMergedRenderers = (props) => {
7411
7480
  method: initialRequest.method,
7412
7481
  data: initialRequest.body
7413
7482
  };
7414
- return presentation.type === "push" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
7483
+ return presentation.type === "push" ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
7415
7484
  DynamicFlowModal,
7416
7485
  __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), {
7417
7486
  features: subflowFeatures,
@@ -7608,13 +7677,13 @@ var openLinkInNewTab = (url) => {
7608
7677
  };
7609
7678
 
7610
7679
  // src/dynamicFlow/DynamicFlow.tsx
7611
- var import_jsx_runtime108 = require("react/jsx-runtime");
7680
+ var import_jsx_runtime110 = require("react/jsx-runtime");
7612
7681
  function DynamicFlow(props) {
7613
7682
  const { className = "" } = props;
7614
7683
  const dfProps = useWiseToCoreProps(props);
7615
7684
  const df = (0, import_dynamic_flow_client4.useDynamicFlow)(dfProps);
7616
7685
  const { onContextMenu, contextMenu } = useDFContextMenu(df.controller);
7617
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className, onContextMenu, children: [
7686
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className, onContextMenu, children: [
7618
7687
  df.view,
7619
7688
  contextMenu
7620
7689
  ] });
@@ -7623,7 +7692,7 @@ function DynamicFlow(props) {
7623
7692
  // src/dynamicFlow/DynamicFlowWithRef.tsx
7624
7693
  var import_react33 = require("react");
7625
7694
  var import_dynamic_flow_client5 = require("@wise/dynamic-flow-client");
7626
- var import_jsx_runtime109 = require("react/jsx-runtime");
7695
+ var import_jsx_runtime111 = require("react/jsx-runtime");
7627
7696
  var DynamicFlowWithRef = (0, import_react33.forwardRef)(function DynamicFlowWithRef2(props, ref) {
7628
7697
  const { className = "" } = props;
7629
7698
  const dfProps = useWiseToCoreProps(props);
@@ -7639,7 +7708,7 @@ var DynamicFlowWithRef = (0, import_react33.forwardRef)(function DynamicFlowWith
7639
7708
  }),
7640
7709
  [df]
7641
7710
  );
7642
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className, children: df.view });
7711
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className, children: df.view });
7643
7712
  });
7644
7713
 
7645
7714
  // src/index.ts
@@ -7701,8 +7770,8 @@ var cs_default = {
7701
7770
  "df.wise.group.currencies-with-account-details": "M\u011Bny s detaily \xFA\u010Dtu",
7702
7771
  "df.wise.group.popular": "Popul\xE1rn\xED",
7703
7772
  "df.wise.group.recent": "Ned\xE1vn\xE9",
7704
- "df.wise.ssnInput.hideValue": "Hide value",
7705
- "df.wise.ssnInput.showValue": "Show value",
7773
+ "df.wise.ssnInput.hideValue": "Skr\xFDt hodnotu",
7774
+ "df.wise.ssnInput.showValue": "Zobrazit hodnotu",
7706
7775
  "df.wise.step.scrollToBottom": "P\u0159ej\xEDt na konec"
7707
7776
  };
7708
7777
 
@@ -7961,8 +8030,8 @@ var hu_default = {
7961
8030
  "df.wise.group.currencies-with-account-details": "P\xE9nznemek sz\xE1mlaadatokkal",
7962
8031
  "df.wise.group.popular": "N\xE9pszer\u0171",
7963
8032
  "df.wise.group.recent": "Legut\xF3bbi",
7964
- "df.wise.ssnInput.hideValue": "Hide value",
7965
- "df.wise.ssnInput.showValue": "Show value",
8033
+ "df.wise.ssnInput.hideValue": "\xC9rt\xE9k elrejt\xE9se",
8034
+ "df.wise.ssnInput.showValue": "\xC9rt\xE9k megjelen\xEDt\xE9se",
7966
8035
  "df.wise.step.scrollToBottom": "G\xF6rgess legalulra"
7967
8036
  };
7968
8037
 
@@ -8065,8 +8134,8 @@ var it_default = {
8065
8134
  "df.wise.group.currencies-with-account-details": "Valute con estremi del conto",
8066
8135
  "df.wise.group.popular": "Popolari",
8067
8136
  "df.wise.group.recent": "Recenti",
8068
- "df.wise.ssnInput.hideValue": "Hide value",
8069
- "df.wise.ssnInput.showValue": "Show value",
8137
+ "df.wise.ssnInput.hideValue": "Nascondi valore",
8138
+ "df.wise.ssnInput.showValue": "Mostra valore",
8070
8139
  "df.wise.step.scrollToBottom": "Scorri fino in fondo"
8071
8140
  };
8072
8141
 
@@ -8117,8 +8186,8 @@ var ja_default = {
8117
8186
  "df.wise.group.currencies-with-account-details": "\u53E3\u5EA7\u60C5\u5831\u3092\u53D6\u5F97\u3067\u304D\u308B\u901A\u8CA8",
8118
8187
  "df.wise.group.popular": "\u4EBA\u6C17",
8119
8188
  "df.wise.group.recent": "\u6700\u8FD1",
8120
- "df.wise.ssnInput.hideValue": "Hide value",
8121
- "df.wise.ssnInput.showValue": "Show value",
8189
+ "df.wise.ssnInput.hideValue": "\u756A\u53F7\u3092\u975E\u8868\u793A",
8190
+ "df.wise.ssnInput.showValue": "\u756A\u53F7\u3092\u8868\u793A",
8122
8191
  "df.wise.step.scrollToBottom": "\u4E0B\u307E\u3067\u30B9\u30AF\u30ED\u30FC\u30EB\u3059\u308B"
8123
8192
  };
8124
8193
 
@@ -8169,8 +8238,8 @@ var nl_default = {
8169
8238
  "df.wise.group.currencies-with-account-details": "Valuta's met rekeninggegevens",
8170
8239
  "df.wise.group.popular": "Populair",
8171
8240
  "df.wise.group.recent": "Recent",
8172
- "df.wise.ssnInput.hideValue": "Hide value",
8173
- "df.wise.ssnInput.showValue": "Show value",
8241
+ "df.wise.ssnInput.hideValue": "Waarde verbergen",
8242
+ "df.wise.ssnInput.showValue": "Waarde weergeven",
8174
8243
  "df.wise.step.scrollToBottom": "Scrol omlaag"
8175
8244
  };
8176
8245
 
@@ -8221,8 +8290,8 @@ var pl_default = {
8221
8290
  "df.wise.group.currencies-with-account-details": "Waluty z danymi bankowymi",
8222
8291
  "df.wise.group.popular": "Popularne",
8223
8292
  "df.wise.group.recent": "Ostatnie",
8224
- "df.wise.ssnInput.hideValue": "Hide value",
8225
- "df.wise.ssnInput.showValue": "Show value",
8293
+ "df.wise.ssnInput.hideValue": "Ukryj warto\u015B\u0107",
8294
+ "df.wise.ssnInput.showValue": "Poka\u017C warto\u015B\u0107",
8226
8295
  "df.wise.step.scrollToBottom": "Przewi\u0144 w d\xF3\u0142"
8227
8296
  };
8228
8297
 
@@ -8273,8 +8342,8 @@ var pt_default = {
8273
8342
  "df.wise.group.currencies-with-account-details": "Moedas com dados de conta",
8274
8343
  "df.wise.group.popular": "Popular",
8275
8344
  "df.wise.group.recent": "Recente",
8276
- "df.wise.ssnInput.hideValue": "Hide value",
8277
- "df.wise.ssnInput.showValue": "Show value",
8345
+ "df.wise.ssnInput.hideValue": "Ocultar valor",
8346
+ "df.wise.ssnInput.showValue": "Exibir valor",
8278
8347
  "df.wise.step.scrollToBottom": "Descer at\xE9 o final da p\xE1gina"
8279
8348
  };
8280
8349
 
@@ -8325,8 +8394,8 @@ var ro_default = {
8325
8394
  "df.wise.group.currencies-with-account-details": "Monede cu detalii de cont",
8326
8395
  "df.wise.group.popular": "Populare",
8327
8396
  "df.wise.group.recent": "Recente",
8328
- "df.wise.ssnInput.hideValue": "Hide value",
8329
- "df.wise.ssnInput.showValue": "Show value",
8397
+ "df.wise.ssnInput.hideValue": "Ascunde valoarea",
8398
+ "df.wise.ssnInput.showValue": "Arat\u0103 valoarea",
8330
8399
  "df.wise.step.scrollToBottom": "Deruleaz\u0103 \xEEn jos"
8331
8400
  };
8332
8401
 
@@ -8377,8 +8446,8 @@ var ru_default = {
8377
8446
  "df.wise.group.currencies-with-account-details": "\u0412\u0430\u043B\u044E\u0442\u044B \u0441 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u0430\u043C\u0438 \u0441\u0447\u0435\u0442\u0430",
8378
8447
  "df.wise.group.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
8379
8448
  "df.wise.group.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435",
8380
- "df.wise.ssnInput.hideValue": "Hide value",
8381
- "df.wise.ssnInput.showValue": "Show value",
8449
+ "df.wise.ssnInput.hideValue": "\u0421\u043A\u0440\u044B\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",
8450
+ "df.wise.ssnInput.showValue": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",
8382
8451
  "df.wise.step.scrollToBottom": "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0439\u0442\u0435 \u0432\u043D\u0438\u0437"
8383
8452
  };
8384
8453
 
@@ -8585,8 +8654,8 @@ var zh_HK_default = {
8585
8654
  "df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\u5E33\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
8586
8655
  "df.wise.group.popular": "\u71B1\u9580",
8587
8656
  "df.wise.group.recent": "\u6700\u8FD1\u7684",
8588
- "df.wise.ssnInput.hideValue": "Hide value",
8589
- "df.wise.ssnInput.showValue": "Show value",
8657
+ "df.wise.ssnInput.hideValue": "\u96B1\u85CF\u503C",
8658
+ "df.wise.ssnInput.showValue": "\u986F\u793A\u503C",
8590
8659
  "df.wise.step.scrollToBottom": "\u6ED1\u52D5\u5230\u6700\u5E95\u90E8"
8591
8660
  };
8592
8661