@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.mjs CHANGED
@@ -127,7 +127,7 @@ import { useDynamicFlow } from "@wise/dynamic-flow-client";
127
127
  // src/dynamicFlow/telemetry/app-version.ts
128
128
  var appVersion = (
129
129
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
130
- typeof process !== "undefined" ? "5.32.0" : "0.0.0"
130
+ typeof process !== "undefined" ? "5.33.0" : "0.0.0"
131
131
  );
132
132
 
133
133
  // src/dynamicFlow/context-menu/useContextMenu.tsx
@@ -3800,23 +3800,6 @@ function ColumnsRendererComponent(props) {
3800
3800
  }
3801
3801
  var ColumnsRenderer_default = ColumnsRenderer;
3802
3802
 
3803
- // ../renderers/src/components/VariableDateInput.tsx
3804
- import { DateInput, DateLookup } from "@transferwise/components";
3805
-
3806
- // ../renderers/src/hooks/useAvailabilityRules.ts
3807
- import { useState as useState10 } from "react";
3808
- import { useIntl as useIntl7 } from "react-intl";
3809
-
3810
- // ../renderers/src/messages/date-input.messages.ts
3811
- import { defineMessages as defineMessages6 } from "react-intl";
3812
- var date_input_messages_default = defineMessages6({
3813
- unavailableDates: {
3814
- id: "df.wise.DateInput.unavailableDates",
3815
- defaultMessage: "Some dates are unavailable.",
3816
- description: "General explanation shown below a calendar containing unavailable dates"
3817
- }
3818
- });
3819
-
3820
3803
  // ../renderers/src/validators/type-validators.ts
3821
3804
  var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
3822
3805
 
@@ -3845,6 +3828,23 @@ var dateToDateString = (date) => {
3845
3828
  return [year, formattedMonth, formattedDay].join("-");
3846
3829
  };
3847
3830
 
3831
+ // ../renderers/src/DateInputRenderer/DateLookupControl.tsx
3832
+ import { DateLookup } from "@transferwise/components";
3833
+
3834
+ // ../renderers/src/hooks/useAvailabilityRules.ts
3835
+ import { useState as useState10 } from "react";
3836
+ import { useIntl as useIntl7 } from "react-intl";
3837
+
3838
+ // ../renderers/src/messages/date-input.messages.ts
3839
+ import { defineMessages as defineMessages6 } from "react-intl";
3840
+ var date_input_messages_default = defineMessages6({
3841
+ unavailableDates: {
3842
+ id: "df.wise.DateInput.unavailableDates",
3843
+ defaultMessage: "Some dates are unavailable.",
3844
+ description: "General explanation shown below a calendar containing unavailable dates"
3845
+ }
3846
+ });
3847
+
3848
3848
  // ../renderers/src/hooks/useAvailabilityRules.ts
3849
3849
  var useAvailabilityRules = (availability) => {
3850
3850
  var _a, _b;
@@ -3852,7 +3852,7 @@ var useAvailabilityRules = (availability) => {
3852
3852
  const [focusedDate, setFocusedDate] = useState10(null);
3853
3853
  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);
3854
3854
  const onDateSelect = ({ date }) => {
3855
- setFocusedDate(date);
3855
+ setFocusedDate((current) => (current == null ? void 0 : current.getTime()) === date.getTime() ? current : date);
3856
3856
  };
3857
3857
  return {
3858
3858
  disabledRules: mapAvailabilityToDisabledRules(availability, unavailableMessage),
@@ -3900,64 +3900,124 @@ var matchesDateRule = (date, weekday, rule) => {
3900
3900
  };
3901
3901
  var isDate = (date) => date !== null;
3902
3902
 
3903
- // ../renderers/src/components/VariableDateInput.tsx
3903
+ // ../renderers/src/DateInputRenderer/DateLookupControl.tsx
3904
3904
  import { jsx as jsx46 } from "react/jsx-runtime";
3905
- function VariableDateInput({
3906
- control,
3907
- inputProps
3908
- }) {
3909
- const {
3910
- autoComplete,
3911
- availability,
3912
- minimumDate,
3913
- maximumDate,
3914
- placeholder,
3915
- disabled,
3916
- onBlur,
3917
- onChange,
3918
- onFocus
3919
- } = inputProps;
3905
+ var DateLookupControl = ({
3906
+ value,
3907
+ minimumDate,
3908
+ maximumDate,
3909
+ placeholder,
3910
+ disabled,
3911
+ availability,
3912
+ onChange,
3913
+ onBlur,
3914
+ onFocus
3915
+ }) => {
3920
3916
  const { disabledRules, onDateSelect, resetFocusedDate } = useAvailabilityRules(availability);
3921
- if (control === "date-lookup") {
3922
- return /* @__PURE__ */ jsx46(
3923
- DateLookup,
3917
+ return /* @__PURE__ */ jsx46(
3918
+ DateLookup,
3919
+ {
3920
+ value: dateStringToDateOrNull(value),
3921
+ min: dateStringToDateOrNull(minimumDate),
3922
+ max: dateStringToDateOrNull(maximumDate),
3923
+ placeholder,
3924
+ disabled,
3925
+ disabledRules,
3926
+ onChange: (date) => {
3927
+ onChange(date !== null ? dateToDateString(date) : null);
3928
+ },
3929
+ onDateSelect,
3930
+ onBlur,
3931
+ onFocus: () => {
3932
+ resetFocusedDate();
3933
+ onFocus();
3934
+ }
3935
+ }
3936
+ );
3937
+ };
3938
+
3939
+ // ../renderers/src/DateInputRenderer/CalendarControl.tsx
3940
+ import { Calendar } from "@transferwise/components";
3941
+ import { jsx as jsx47 } from "react/jsx-runtime";
3942
+ var CalendarControl = ({
3943
+ id,
3944
+ title,
3945
+ value,
3946
+ minimumDate,
3947
+ maximumDate,
3948
+ validationState,
3949
+ availability,
3950
+ onChange,
3951
+ onFocus,
3952
+ onBlur
3953
+ }) => {
3954
+ const { disabledRules, onDateSelect, resetFocusedDate } = useAvailabilityRules(availability);
3955
+ const handleDateFocus = (date, { isEnabled }) => {
3956
+ if (date === null) {
3957
+ resetFocusedDate();
3958
+ return;
3959
+ }
3960
+ onDateSelect({ date, isEnabled });
3961
+ };
3962
+ return (
3963
+ // Wrapping in a <fieldset> to address some a11y gaps in the current inline Calendar component
3964
+ /* @__PURE__ */ jsx47(
3965
+ "fieldset",
3924
3966
  {
3925
- value: dateStringToDateOrNull(inputProps.value),
3926
- min: dateStringToDateOrNull(minimumDate),
3927
- max: dateStringToDateOrNull(maximumDate),
3928
- placeholder,
3929
- disabled,
3930
- disabledRules,
3931
- onChange: (date) => {
3932
- onChange(date !== null ? dateToDateString(date) : null);
3967
+ id,
3968
+ "aria-label": title,
3969
+ "aria-invalid": (validationState == null ? void 0 : validationState.status) === "invalid",
3970
+ onFocus: (event) => {
3971
+ if (!event.currentTarget.contains(event.relatedTarget)) {
3972
+ resetFocusedDate();
3973
+ onFocus();
3974
+ }
3933
3975
  },
3934
- onDateSelect,
3935
- onBlur,
3936
- onFocus: () => {
3937
- resetFocusedDate();
3938
- onFocus();
3939
- }
3976
+ onBlur: (event) => {
3977
+ if (!event.currentTarget.contains(event.relatedTarget)) {
3978
+ onBlur();
3979
+ }
3980
+ },
3981
+ children: /* @__PURE__ */ jsx47(
3982
+ Calendar,
3983
+ {
3984
+ value: dateStringToDateOrNull(value),
3985
+ min: dateStringToDateOrNull(minimumDate),
3986
+ max: dateStringToDateOrNull(maximumDate),
3987
+ disabledRules,
3988
+ onChange: (date) => {
3989
+ onChange(date !== null ? dateToDateString(date) : null);
3990
+ },
3991
+ onDateFocus: handleDateFocus
3992
+ }
3993
+ )
3940
3994
  }
3941
- );
3942
- }
3943
- return /* @__PURE__ */ jsx46(
3995
+ )
3996
+ );
3997
+ };
3998
+
3999
+ // ../renderers/src/DateInputRenderer/DateInputControl.tsx
4000
+ import { DateInput } from "@transferwise/components";
4001
+ import { jsx as jsx48 } from "react/jsx-runtime";
4002
+ var DateInputControl = (_a) => {
4003
+ var _b = _a, { autoComplete } = _b, props = __objRest(_b, ["autoComplete"]);
4004
+ return /* @__PURE__ */ jsx48(
3944
4005
  DateInput,
3945
- __spreadProps(__spreadValues({}, inputProps), {
4006
+ __spreadProps(__spreadValues({}, props), {
3946
4007
  dayAutoComplete: getAutocompleteString(autoComplete, "day"),
3947
4008
  yearAutoComplete: getAutocompleteString(autoComplete, "year")
3948
4009
  })
3949
4010
  );
3950
- }
4011
+ };
3951
4012
  var getAutocompleteString = (value, suffix) => {
3952
4013
  if (value === "bday") {
3953
4014
  return `${value}-${suffix}`;
3954
4015
  }
3955
4016
  return void 0;
3956
4017
  };
3957
- var VariableDateInput_default = VariableDateInput;
3958
4018
 
3959
- // ../renderers/src/DateInputRenderer.tsx
3960
- import { jsx as jsx47 } from "react/jsx-runtime";
4019
+ // ../renderers/src/DateInputRenderer/DateInputRenderer.tsx
4020
+ import { jsx as jsx49 } from "react/jsx-runtime";
3961
4021
  var DateInputRenderer = {
3962
4022
  canRenderType: "input-date",
3963
4023
  render: (props) => {
@@ -3981,8 +4041,17 @@ var DateInputRenderer = {
3981
4041
  "value"
3982
4042
  ]);
3983
4043
  const value = initialValue != null ? initialValue : "";
3984
- const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
3985
- return /* @__PURE__ */ jsx47(
4044
+ const inputProps = __spreadProps(__spreadValues({}, rest), { value, id, title, validationState });
4045
+ const UIComponent = (() => {
4046
+ if (control === "calendar") {
4047
+ return !props.disabled ? CalendarControl : DateLookupControl;
4048
+ }
4049
+ if (control === "date-lookup") {
4050
+ return DateLookupControl;
4051
+ }
4052
+ return DateInputControl;
4053
+ })();
4054
+ return /* @__PURE__ */ jsx49(
3986
4055
  FieldInput_default,
3987
4056
  {
3988
4057
  id,
@@ -3995,7 +4064,7 @@ var DateInputRenderer = {
3995
4064
  features: props.features,
3996
4065
  control,
3997
4066
  tags: props.tags,
3998
- children: /* @__PURE__ */ jsx47(VariableDateInput_default, { control, inputProps })
4067
+ children: /* @__PURE__ */ jsx49(UIComponent, __spreadValues({}, inputProps))
3999
4068
  }
4000
4069
  );
4001
4070
  }
@@ -4117,7 +4186,7 @@ var getGroupsFromTags = (knownTags, items) => {
4117
4186
  };
4118
4187
 
4119
4188
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
4120
- import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs10 } from "react/jsx-runtime";
4189
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs10 } from "react/jsx-runtime";
4121
4190
  var groupingTags = Object.keys(group_messages_default).filter((key) => key !== "all");
4122
4191
  var isGroupedDecision = (options) => {
4123
4192
  return getGroupsFromTags(groupingTags, options).length > 0;
@@ -4127,8 +4196,8 @@ var GroupedDecisionList = (_a) => {
4127
4196
  const { formatMessage } = useIntl8();
4128
4197
  const { options } = rest;
4129
4198
  const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
4130
- return /* @__PURE__ */ jsx48(Fragment4, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ jsxs10(Section, { children: [
4131
- /* @__PURE__ */ jsx48(
4199
+ return /* @__PURE__ */ jsx50(Fragment4, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ jsxs10(Section, { children: [
4200
+ /* @__PURE__ */ jsx50(
4132
4201
  Header2,
4133
4202
  {
4134
4203
  as: "h2",
@@ -4141,17 +4210,17 @@ var GroupedDecisionList = (_a) => {
4141
4210
 
4142
4211
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
4143
4212
  var import_classnames13 = __toESM(require_classnames());
4144
- import { Fragment as Fragment5, jsx as jsx49, jsxs as jsxs11 } from "react/jsx-runtime";
4213
+ import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs11 } from "react/jsx-runtime";
4145
4214
  var DecisionWrapper = (props) => {
4146
4215
  const { margin, control, title, tags } = props;
4147
4216
  return /* @__PURE__ */ jsxs11("div", { className: (0, import_classnames13.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4148
- title && /* @__PURE__ */ jsx49(Header3, { as: "h2", title }),
4149
- control === "filtered" ? /* @__PURE__ */ jsx49(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx49(UnfilteredDecisionList, __spreadValues({}, props))
4217
+ title && /* @__PURE__ */ jsx51(Header3, { as: "h2", title }),
4218
+ control === "filtered" ? /* @__PURE__ */ jsx51(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx51(UnfilteredDecisionList, __spreadValues({}, props))
4150
4219
  ] });
4151
4220
  };
4152
4221
  var UnfilteredDecisionList = (_a) => {
4153
4222
  var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
4154
- return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx49(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
4223
+ return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx51(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
4155
4224
  };
4156
4225
  var FilteredDecisionList = (props) => {
4157
4226
  const { formatMessage } = useIntl9();
@@ -4160,7 +4229,7 @@ var FilteredDecisionList = (props) => {
4160
4229
  const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortItems(options, query) : options;
4161
4230
  const isGrouped = isGroupedDecision(options);
4162
4231
  return /* @__PURE__ */ jsxs11(Fragment5, { children: [
4163
- /* @__PURE__ */ jsx49(
4232
+ /* @__PURE__ */ jsx51(
4164
4233
  SearchInput,
4165
4234
  {
4166
4235
  placeholder: formatMessage(filter_messages_default.placeholder),
@@ -4172,25 +4241,25 @@ var FilteredDecisionList = (props) => {
4172
4241
  }
4173
4242
  }
4174
4243
  ),
4175
- isGrouped && query.length === 0 ? /* @__PURE__ */ jsx49(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs11(Fragment5, { children: [
4176
- query.length > 0 && /* @__PURE__ */ jsx49(Header3, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
4244
+ isGrouped && query.length === 0 ? /* @__PURE__ */ jsx51(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs11(Fragment5, { children: [
4245
+ query.length > 0 && /* @__PURE__ */ jsx51(Header3, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
4177
4246
  filteredOptions.length > 0 ? renderDecisionList2({
4178
4247
  control,
4179
4248
  className: query.length === 0 ? "m-t-3" : "",
4180
4249
  options: filteredOptions
4181
- }) : /* @__PURE__ */ jsx49("p", { children: formatMessage(filter_messages_default.noResults) })
4250
+ }) : /* @__PURE__ */ jsx51("p", { children: formatMessage(filter_messages_default.noResults) })
4182
4251
  ] })
4183
4252
  ] });
4184
4253
  };
4185
4254
 
4186
4255
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
4187
- import { Fragment as Fragment6, jsx as jsx50 } from "react/jsx-runtime";
4256
+ import { Fragment as Fragment6, jsx as jsx52 } from "react/jsx-runtime";
4188
4257
  var DecisionRenderer = {
4189
4258
  canRenderType: "decision",
4190
- render: (props) => /* @__PURE__ */ jsx50(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }))
4259
+ render: (props) => /* @__PURE__ */ jsx52(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }))
4191
4260
  };
4192
4261
  var renderDecisionList = ({ options, control }) => {
4193
- return /* @__PURE__ */ jsx50(Fragment6, { children: options.map((_a) => {
4262
+ return /* @__PURE__ */ jsx52(Fragment6, { children: options.map((_a) => {
4194
4263
  var _b = _a, { onClick } = _b, rest = __objRest(_b, ["onClick"]);
4195
4264
  const {
4196
4265
  description,
@@ -4203,7 +4272,7 @@ var renderDecisionList = ({ options, control }) => {
4203
4272
  supportingValues,
4204
4273
  tags
4205
4274
  } = rest;
4206
- return /* @__PURE__ */ jsx50(
4275
+ return /* @__PURE__ */ jsx52(
4207
4276
  ListItem7,
4208
4277
  {
4209
4278
  title: itemTitle,
@@ -4215,7 +4284,7 @@ var renderDecisionList = ({ options, control }) => {
4215
4284
  media: getMedia(media, shouldUseAvatar(control, tags)),
4216
4285
  prompt: getInlineAlert(inlineAlert),
4217
4286
  additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
4218
- control: /* @__PURE__ */ jsx50(ListItem7.Navigation, __spreadValues({}, getAnchorProps()))
4287
+ control: /* @__PURE__ */ jsx52(ListItem7.Navigation, __spreadValues({}, getAnchorProps()))
4219
4288
  },
4220
4289
  JSON.stringify(rest)
4221
4290
  );
@@ -4226,7 +4295,7 @@ var DecisionRenderer_default = DecisionRenderer;
4226
4295
  // ../renderers/src/DividerRenderer.tsx
4227
4296
  var import_classnames14 = __toESM(require_classnames());
4228
4297
  import { Divider } from "@transferwise/components";
4229
- import { jsx as jsx51 } from "react/jsx-runtime";
4298
+ import { jsx as jsx53 } from "react/jsx-runtime";
4230
4299
  var mapControlToLevel = (control) => {
4231
4300
  switch (control) {
4232
4301
  case "section":
@@ -4239,7 +4308,7 @@ var mapControlToLevel = (control) => {
4239
4308
  };
4240
4309
  var DividerRenderer = {
4241
4310
  canRenderType: "divider",
4242
- render: ({ margin, control, tags }) => /* @__PURE__ */ jsx51(
4311
+ render: ({ margin, control, tags }) => /* @__PURE__ */ jsx53(
4243
4312
  Divider,
4244
4313
  {
4245
4314
  className: (0, import_classnames14.default)(
@@ -4285,7 +4354,7 @@ var external_confirmation_messages_default = defineMessages9({
4285
4354
  // ../renderers/src/ExternalConfirmationRenderer.tsx
4286
4355
  import { useIntl as useIntl10 } from "react-intl";
4287
4356
  import { useEffect as useEffect9 } from "react";
4288
- import { Fragment as Fragment7, jsx as jsx52, jsxs as jsxs12 } from "react/jsx-runtime";
4357
+ import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs12 } from "react/jsx-runtime";
4289
4358
  var ExternalConfirmationRenderer = {
4290
4359
  canRenderType: "external-confirmation",
4291
4360
  render: ExternalConfirmationRendererComponent
@@ -4302,15 +4371,15 @@ function ExternalConfirmationRendererComponent({
4302
4371
  useEffect9(() => {
4303
4372
  open();
4304
4373
  }, []);
4305
- return /* @__PURE__ */ jsx52(
4374
+ return /* @__PURE__ */ jsx54(
4306
4375
  Modal,
4307
4376
  {
4308
4377
  open: visible,
4309
4378
  title: formatMessage(external_confirmation_messages_default.title),
4310
4379
  body: /* @__PURE__ */ jsxs12(Fragment7, { children: [
4311
- /* @__PURE__ */ jsx52(Markdown3, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
4312
- /* @__PURE__ */ jsx52("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs12("div", { className: "df-box-renderer-width-lg", children: [
4313
- /* @__PURE__ */ jsx52(
4380
+ /* @__PURE__ */ jsx54(Markdown3, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
4381
+ /* @__PURE__ */ jsx54("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs12("div", { className: "df-box-renderer-width-lg", children: [
4382
+ /* @__PURE__ */ jsx54(
4314
4383
  Button5,
4315
4384
  {
4316
4385
  v2: true,
@@ -4324,7 +4393,7 @@ function ExternalConfirmationRendererComponent({
4324
4393
  children: formatMessage(external_confirmation_messages_default.open)
4325
4394
  }
4326
4395
  ),
4327
- /* @__PURE__ */ jsx52(Button5, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
4396
+ /* @__PURE__ */ jsx54(Button5, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
4328
4397
  ] }) })
4329
4398
  ] }),
4330
4399
  className: controlAndTagsToCSSClass({ control, tags }),
@@ -4343,27 +4412,27 @@ var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
4343
4412
 
4344
4413
  // ../renderers/src/FormRenderer.tsx
4345
4414
  var import_classnames15 = __toESM(require_classnames());
4346
- import { jsx as jsx53 } from "react/jsx-runtime";
4415
+ import { jsx as jsx55 } from "react/jsx-runtime";
4347
4416
  var FormRenderer = {
4348
4417
  canRenderType: "form",
4349
- render: ({ children, margin, control, tags }) => /* @__PURE__ */ jsx53("div", { className: (0, import_classnames15.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children })
4418
+ render: ({ children, margin, control, tags }) => /* @__PURE__ */ jsx55("div", { className: (0, import_classnames15.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children })
4350
4419
  };
4351
4420
  var FormRenderer_default = FormRenderer;
4352
4421
 
4353
4422
  // ../renderers/src/FormSectionRenderer.tsx
4354
4423
  import { Header as Header4 } from "@transferwise/components";
4355
- import { jsx as jsx54, jsxs as jsxs13 } from "react/jsx-runtime";
4424
+ import { jsx as jsx56, jsxs as jsxs13 } from "react/jsx-runtime";
4356
4425
  var FormSectionRenderer = {
4357
4426
  canRenderType: "form-section",
4358
4427
  render: ({ title, description, children, control, tags }) => /* @__PURE__ */ jsxs13("fieldset", { className: controlAndTagsToCSSClass({ control, tags }), children: [
4359
- title && /* @__PURE__ */ jsx54(
4428
+ title && /* @__PURE__ */ jsx56(
4360
4429
  Header4,
4361
4430
  {
4362
4431
  as: "h2",
4363
4432
  title
4364
4433
  }
4365
4434
  ),
4366
- description && /* @__PURE__ */ jsx54("p", { children: description }),
4435
+ description && /* @__PURE__ */ jsx56("p", { children: description }),
4367
4436
  children
4368
4437
  ] })
4369
4438
  };
@@ -4372,7 +4441,7 @@ var FormSectionRenderer_default = FormSectionRenderer;
4372
4441
  // ../renderers/src/HeadingRenderer.tsx
4373
4442
  var import_classnames16 = __toESM(require_classnames());
4374
4443
  import { Display, Title } from "@transferwise/components";
4375
- import { jsx as jsx55 } from "react/jsx-runtime";
4444
+ import { jsx as jsx57 } from "react/jsx-runtime";
4376
4445
  var HeadingRenderer = {
4377
4446
  canRenderType: "heading",
4378
4447
  render: Heading
@@ -4383,10 +4452,10 @@ function Heading(props) {
4383
4452
  getTextAlignmentAndMargin({ align, margin }),
4384
4453
  controlAndTagsToCSSClass(props)
4385
4454
  );
4386
- return control === "display" ? /* @__PURE__ */ jsx55(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx55(StandardHeading, { size, text, className });
4455
+ return control === "display" ? /* @__PURE__ */ jsx57(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx57(StandardHeading, { size, text, className });
4387
4456
  }
4388
4457
  function DisplayHeading({ size, text, className }) {
4389
- return /* @__PURE__ */ jsx55(Display, { type: getDisplayType(size), className, children: text });
4458
+ return /* @__PURE__ */ jsx57(Display, { type: getDisplayType(size), className, children: text });
4390
4459
  }
4391
4460
  var getDisplayType = (size) => {
4392
4461
  switch (size) {
@@ -4402,7 +4471,7 @@ var getDisplayType = (size) => {
4402
4471
  }
4403
4472
  };
4404
4473
  function StandardHeading({ size, text, className }) {
4405
- return /* @__PURE__ */ jsx55(Title, { type: getTitleTypeBySize(size), className, children: text });
4474
+ return /* @__PURE__ */ jsx57(Title, { type: getTitleTypeBySize(size), className, children: text });
4406
4475
  }
4407
4476
  var getTitleTypeBySize = (size) => {
4408
4477
  var _a;
@@ -4430,7 +4499,7 @@ function isRelativePath(url = "") {
4430
4499
  }
4431
4500
 
4432
4501
  // ../renderers/src/ImageRenderer/UrlImage.tsx
4433
- import { jsx as jsx56 } from "react/jsx-runtime";
4502
+ import { jsx as jsx58 } from "react/jsx-runtime";
4434
4503
  function UrlImage({
4435
4504
  accessibilityDescription,
4436
4505
  align,
@@ -4447,7 +4516,7 @@ function UrlImage({
4447
4516
  void getImageSource(httpClient, uri).then(setImageSource);
4448
4517
  }
4449
4518
  }, [uri, httpClient]);
4450
- return /* @__PURE__ */ jsx56(
4519
+ return /* @__PURE__ */ jsx58(
4451
4520
  "div",
4452
4521
  {
4453
4522
  className: (0, import_classnames17.default)(
@@ -4457,7 +4526,7 @@ function UrlImage({
4457
4526
  getMargin(margin),
4458
4527
  controlAndTagsToCSSClass({ control, tags })
4459
4528
  ),
4460
- children: /* @__PURE__ */ jsx56(
4529
+ children: /* @__PURE__ */ jsx58(
4461
4530
  Image,
4462
4531
  {
4463
4532
  className: "df-reserve-space",
@@ -4503,10 +4572,10 @@ var getImageSource = async (httpClient, imageUrl) => {
4503
4572
  };
4504
4573
 
4505
4574
  // ../renderers/src/ImageRenderer/ImageRenderer.tsx
4506
- import { jsx as jsx57 } from "react/jsx-runtime";
4575
+ import { jsx as jsx59 } from "react/jsx-runtime";
4507
4576
  var ImageRenderer = {
4508
4577
  canRenderType: "image",
4509
- render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx57(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx57(UrlImage, __spreadValues({}, props))
4578
+ render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx59(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx59(UrlImage, __spreadValues({}, props))
4510
4579
  };
4511
4580
 
4512
4581
  // ../renderers/src/ImageRenderer/index.tsx
@@ -4515,7 +4584,7 @@ var ImageRenderer_default = ImageRenderer;
4515
4584
  // ../renderers/src/InstructionsRenderer.tsx
4516
4585
  var import_classnames18 = __toESM(require_classnames());
4517
4586
  import { Header as Header5, InstructionsList } from "@transferwise/components";
4518
- import { jsx as jsx58, jsxs as jsxs14 } from "react/jsx-runtime";
4587
+ import { jsx as jsx60, jsxs as jsxs14 } from "react/jsx-runtime";
4519
4588
  var doContext = ["positive", "neutral", "proposition"];
4520
4589
  var dontContext = ["warning", "negative"];
4521
4590
  var InstructionsRenderer = {
@@ -4524,8 +4593,8 @@ var InstructionsRenderer = {
4524
4593
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
4525
4594
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
4526
4595
  return /* @__PURE__ */ jsxs14("div", { className: (0, import_classnames18.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4527
- title ? /* @__PURE__ */ jsx58(Header5, { title }) : null,
4528
- /* @__PURE__ */ jsx58(InstructionsList, { dos, donts })
4596
+ title ? /* @__PURE__ */ jsx60(Header5, { title }) : null,
4597
+ /* @__PURE__ */ jsx60(InstructionsList, { dos, donts })
4529
4598
  ] });
4530
4599
  }
4531
4600
  };
@@ -4557,7 +4626,7 @@ function pick(obj, ...keys) {
4557
4626
  }
4558
4627
 
4559
4628
  // ../renderers/src/IntegerInputRenderer.tsx
4560
- import { jsx as jsx59 } from "react/jsx-runtime";
4629
+ import { jsx as jsx61 } from "react/jsx-runtime";
4561
4630
  var IntegerInputRenderer = {
4562
4631
  canRenderType: "input-integer",
4563
4632
  render: (props) => {
@@ -4572,7 +4641,7 @@ var IntegerInputRenderer = {
4572
4641
  "maximum",
4573
4642
  "minimum"
4574
4643
  );
4575
- return /* @__PURE__ */ jsx59(
4644
+ return /* @__PURE__ */ jsx61(
4576
4645
  FieldInput_default,
4577
4646
  {
4578
4647
  id,
@@ -4585,7 +4654,7 @@ var IntegerInputRenderer = {
4585
4654
  features: props.features,
4586
4655
  control: props.control,
4587
4656
  tags: props.tags,
4588
- children: /* @__PURE__ */ jsx59(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx59(
4657
+ children: /* @__PURE__ */ jsx61(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx61(
4589
4658
  Input2,
4590
4659
  __spreadValues({
4591
4660
  id,
@@ -4613,8 +4682,8 @@ import { ListItem as ListItem8 } from "@transferwise/components";
4613
4682
 
4614
4683
  // ../renderers/src/components/Header.tsx
4615
4684
  import { Header as DSHeader } from "@transferwise/components";
4616
- import { jsx as jsx60 } from "react/jsx-runtime";
4617
- var Header = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ jsx60(DSHeader, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
4685
+ import { jsx as jsx62 } from "react/jsx-runtime";
4686
+ var Header = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ jsx62(DSHeader, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
4618
4687
  var getHeaderAction = (callToAction) => {
4619
4688
  if (!callToAction) {
4620
4689
  return void 0;
@@ -4626,11 +4695,11 @@ var getHeaderAction = (callToAction) => {
4626
4695
  };
4627
4696
 
4628
4697
  // ../renderers/src/ListRenderer.tsx
4629
- import { jsx as jsx61, jsxs as jsxs15 } from "react/jsx-runtime";
4698
+ import { jsx as jsx63, jsxs as jsxs15 } from "react/jsx-runtime";
4630
4699
  var ListRenderer = {
4631
4700
  canRenderType: "list",
4632
4701
  render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ jsxs15("div", { className: (0, import_classnames19.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4633
- /* @__PURE__ */ jsx61(Header, { title, callToAction }),
4702
+ /* @__PURE__ */ jsx63(Header, { title, callToAction }),
4634
4703
  items.map((item) => {
4635
4704
  var _a, _b;
4636
4705
  const {
@@ -4647,7 +4716,7 @@ var ListRenderer = {
4647
4716
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
4648
4717
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
4649
4718
  };
4650
- return /* @__PURE__ */ jsx61(
4719
+ return /* @__PURE__ */ jsx63(
4651
4720
  ListItem8,
4652
4721
  {
4653
4722
  title: itemTitle,
@@ -4669,10 +4738,10 @@ var ListRenderer_default = ListRenderer;
4669
4738
  // ../renderers/src/LoadingIndicatorRenderer.tsx
4670
4739
  var import_classnames20 = __toESM(require_classnames());
4671
4740
  import { Loader } from "@transferwise/components";
4672
- import { jsx as jsx62 } from "react/jsx-runtime";
4741
+ import { jsx as jsx64 } from "react/jsx-runtime";
4673
4742
  var LoadingIndicatorRenderer = {
4674
4743
  canRenderType: "loading-indicator",
4675
- render: ({ size, margin, control, tags }) => /* @__PURE__ */ jsx62(
4744
+ render: ({ size, margin, control, tags }) => /* @__PURE__ */ jsx64(
4676
4745
  Loader,
4677
4746
  {
4678
4747
  size,
@@ -4693,19 +4762,19 @@ var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
4693
4762
  // ../renderers/src/MarkdownRenderer.tsx
4694
4763
  var import_classnames21 = __toESM(require_classnames());
4695
4764
  import { Markdown as Markdown4 } from "@transferwise/components";
4696
- import { jsx as jsx63 } from "react/jsx-runtime";
4765
+ import { jsx as jsx65 } from "react/jsx-runtime";
4697
4766
  var MarkdownRenderer = {
4698
4767
  canRenderType: "markdown",
4699
4768
  render: ({ content, align, margin, size, control, tags }) => {
4700
4769
  const isLarge = !["xs", "sm"].includes(size);
4701
- return /* @__PURE__ */ jsx63(
4770
+ return /* @__PURE__ */ jsx65(
4702
4771
  "div",
4703
4772
  {
4704
4773
  className: (0, import_classnames21.default)(
4705
4774
  getTextAlignmentAndMargin({ align, margin }),
4706
4775
  controlAndTagsToCSSClass({ control, tags })
4707
4776
  ),
4708
- children: /* @__PURE__ */ jsx63(
4777
+ children: /* @__PURE__ */ jsx65(
4709
4778
  Markdown4,
4710
4779
  {
4711
4780
  className: (0, import_classnames21.default)("df-markdown", {
@@ -4724,16 +4793,16 @@ var MarkdownRenderer_default = MarkdownRenderer;
4724
4793
 
4725
4794
  // ../renderers/src/MediaRenderer.tsx
4726
4795
  var import_classnames22 = __toESM(require_classnames());
4727
- import { jsx as jsx64 } from "react/jsx-runtime";
4796
+ import { jsx as jsx66 } from "react/jsx-runtime";
4728
4797
  var MediaRenderer = {
4729
4798
  canRenderType: "media",
4730
4799
  render: (_a) => {
4731
4800
  var _b = _a, { media } = _b, rest = __objRest(_b, ["media"]);
4732
4801
  switch (media.type) {
4733
4802
  case "avatar":
4734
- return /* @__PURE__ */ jsx64(AvatarMediaRendererComponent, __spreadValues({ media }, rest));
4803
+ return /* @__PURE__ */ jsx66(AvatarMediaRendererComponent, __spreadValues({ media }, rest));
4735
4804
  case "image":
4736
- return /* @__PURE__ */ jsx64(ImageMediaRendererComponent, __spreadValues({ media }, rest));
4805
+ return /* @__PURE__ */ jsx66(ImageMediaRendererComponent, __spreadValues({ media }, rest));
4737
4806
  case "legacy":
4738
4807
  return null;
4739
4808
  }
@@ -4747,7 +4816,7 @@ var AvatarMediaRendererComponent = ({
4747
4816
  control,
4748
4817
  tags
4749
4818
  }) => {
4750
- return /* @__PURE__ */ jsx64(
4819
+ return /* @__PURE__ */ jsx66(
4751
4820
  "div",
4752
4821
  {
4753
4822
  className: (0, import_classnames22.default)(
@@ -4756,7 +4825,7 @@ var AvatarMediaRendererComponent = ({
4756
4825
  getMargin(margin),
4757
4826
  controlAndTagsToCSSClass({ control, tags })
4758
4827
  ),
4759
- children: /* @__PURE__ */ jsx64(Media, { media, size: mapAvatarMediaSize(size) })
4828
+ children: /* @__PURE__ */ jsx66(Media, { media, size: mapAvatarMediaSize(size) })
4760
4829
  }
4761
4830
  );
4762
4831
  };
@@ -4769,14 +4838,14 @@ var ImageMediaRendererComponent = (_a) => {
4769
4838
  "size"
4770
4839
  ]);
4771
4840
  var _a2, _b2;
4772
- return isUrnImage(media.uri) ? /* @__PURE__ */ jsx64(
4841
+ return isUrnImage(media.uri) ? /* @__PURE__ */ jsx66(
4773
4842
  UrnImage,
4774
4843
  __spreadValues({
4775
4844
  uri: media.uri,
4776
4845
  size: (_a2 = media.size) != null ? _a2 : size,
4777
4846
  accessibilityDescription: media.accessibilityDescription
4778
4847
  }, rest)
4779
- ) : /* @__PURE__ */ jsx64(
4848
+ ) : /* @__PURE__ */ jsx66(
4780
4849
  UrlImage,
4781
4850
  __spreadValues({
4782
4851
  uri: media.uri,
@@ -4804,18 +4873,18 @@ var mapAvatarMediaSize = (size) => {
4804
4873
  var import_classnames23 = __toESM(require_classnames());
4805
4874
  import { Button as Button6, Modal as Modal2 } from "@transferwise/components";
4806
4875
  import { useState as useState13 } from "react";
4807
- import { jsx as jsx65, jsxs as jsxs16 } from "react/jsx-runtime";
4876
+ import { jsx as jsx67, jsxs as jsxs16 } from "react/jsx-runtime";
4808
4877
  var ModalLayoutRenderer = {
4809
4878
  canRenderType: "modal-layout",
4810
- render: (props) => /* @__PURE__ */ jsx65(DFModal, __spreadValues({}, props))
4879
+ render: (props) => /* @__PURE__ */ jsx67(DFModal, __spreadValues({}, props))
4811
4880
  };
4812
4881
  var ModalLayoutRenderer_default = ModalLayoutRenderer;
4813
4882
  function DFModal({ content, margin, trigger, control, tags }) {
4814
4883
  const [visible, setVisible] = useState13(false);
4815
4884
  const { children, title } = content;
4816
4885
  return /* @__PURE__ */ jsxs16("div", { className: (0, import_classnames23.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4817
- /* @__PURE__ */ jsx65(Button6, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
4818
- /* @__PURE__ */ jsx65(
4886
+ /* @__PURE__ */ jsx67(Button6, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
4887
+ /* @__PURE__ */ jsx67(
4819
4888
  Modal2,
4820
4889
  {
4821
4890
  scroll: "content",
@@ -4831,11 +4900,11 @@ function DFModal({ content, margin, trigger, control, tags }) {
4831
4900
 
4832
4901
  // ../renderers/src/ModalRenderer.tsx
4833
4902
  import { Modal as Modal3 } from "@transferwise/components";
4834
- import { jsx as jsx66 } from "react/jsx-runtime";
4903
+ import { jsx as jsx68 } from "react/jsx-runtime";
4835
4904
  var ModalRenderer = {
4836
4905
  canRenderType: "modal",
4837
4906
  render: ({ title, children, open, onClose, control, tags }) => {
4838
- return /* @__PURE__ */ jsx66(
4907
+ return /* @__PURE__ */ jsx68(
4839
4908
  Modal3,
4840
4909
  {
4841
4910
  open,
@@ -4852,7 +4921,7 @@ var ModalRenderer = {
4852
4921
  import { MoneyInput } from "@transferwise/components";
4853
4922
  import { useEffect as useEffect11 } from "react";
4854
4923
  import { useIntl as useIntl11 } from "react-intl";
4855
- import { jsx as jsx67 } from "react/jsx-runtime";
4924
+ import { jsx as jsx69 } from "react/jsx-runtime";
4856
4925
  var groupingTags2 = Object.keys(group_messages_default).filter((key) => key !== "all");
4857
4926
  var MoneyInputRenderer = {
4858
4927
  canRenderType: "money-input",
@@ -4882,7 +4951,7 @@ function MoneyInputRendererComponent(props) {
4882
4951
  }
4883
4952
  }, [selectedCurrencyIndex, onCurrencyChange, currencies.length]);
4884
4953
  const { formatMessage } = useIntl11();
4885
- return /* @__PURE__ */ jsx67(
4954
+ return /* @__PURE__ */ jsx69(
4886
4955
  FieldInput_default,
4887
4956
  {
4888
4957
  id: uid,
@@ -4893,7 +4962,7 @@ function MoneyInputRendererComponent(props) {
4893
4962
  features,
4894
4963
  control,
4895
4964
  tags,
4896
- children: /* @__PURE__ */ jsx67(
4965
+ children: /* @__PURE__ */ jsx69(
4897
4966
  MoneyInput,
4898
4967
  {
4899
4968
  amount: parseFloatOrNull(amountValue),
@@ -4965,7 +5034,7 @@ var zipWithIndex = (items) => items.map((item, index) => __spreadProps(__spreadV
4965
5034
  }));
4966
5035
 
4967
5036
  // ../renderers/src/MultiSelectInputRenderer/InlineComponent.tsx
4968
- import { Fragment as Fragment8, jsx as jsx68, jsxs as jsxs17 } from "react/jsx-runtime";
5037
+ import { Fragment as Fragment8, jsx as jsx70, jsxs as jsxs17 } from "react/jsx-runtime";
4969
5038
  function InlineComponent(props) {
4970
5039
  const {
4971
5040
  id,
@@ -4987,7 +5056,7 @@ function InlineComponent(props) {
4987
5056
  const filtered = tags == null ? void 0 : tags.includes("filtered");
4988
5057
  const filteredOptions = query ? filterAndSortItems(optionsWithIndex, filtered ? query : "") : optionsWithIndex;
4989
5058
  return /* @__PURE__ */ jsxs17(Fragment8, { children: [
4990
- filtered && /* @__PURE__ */ jsx68(
5059
+ filtered && /* @__PURE__ */ jsx70(
4991
5060
  SearchInput2,
4992
5061
  {
4993
5062
  placeholder: formatMessage(filter_messages_default.placeholder),
@@ -5000,7 +5069,7 @@ function InlineComponent(props) {
5000
5069
  }
5001
5070
  }
5002
5071
  ),
5003
- /* @__PURE__ */ jsx68(
5072
+ /* @__PURE__ */ jsx70(
5004
5073
  FieldInput_default,
5005
5074
  {
5006
5075
  id,
@@ -5025,7 +5094,7 @@ function InlineComponent(props) {
5025
5094
  childrenProps
5026
5095
  } = option;
5027
5096
  const key = (_a = childrenProps == null ? void 0 : childrenProps.uid) != null ? _a : index;
5028
- return /* @__PURE__ */ jsx68(
5097
+ return /* @__PURE__ */ jsx70(
5029
5098
  ListItem9,
5030
5099
  {
5031
5100
  title: itemTitle,
@@ -5034,9 +5103,9 @@ function InlineComponent(props) {
5034
5103
  valueSubtitle: supportingValues == null ? void 0 : supportingValues.subvalue,
5035
5104
  media: getMedia(media, false),
5036
5105
  prompt: getInlineAlert(inlineAlert),
5037
- additionalInfo: additionalText ? /* @__PURE__ */ jsx68(ListItem9.AdditionalInfo, { children: additionalText }) : void 0,
5106
+ additionalInfo: additionalText ? /* @__PURE__ */ jsx70(ListItem9.AdditionalInfo, { children: additionalText }) : void 0,
5038
5107
  disabled: disabled || optionDisabled,
5039
- control: /* @__PURE__ */ jsx68(
5108
+ control: /* @__PURE__ */ jsx70(
5040
5109
  ListItem9.Checkbox,
5041
5110
  {
5042
5111
  checked: selectedIndices.includes(index),
@@ -5071,7 +5140,7 @@ var multi_select_messages_default = defineMessages10({
5071
5140
  });
5072
5141
 
5073
5142
  // ../renderers/src/MultiSelectInputRenderer/DefaultComponent.tsx
5074
- import { jsx as jsx69 } from "react/jsx-runtime";
5143
+ import { jsx as jsx71 } from "react/jsx-runtime";
5075
5144
  function DefaultComponent(props) {
5076
5145
  const { formatMessage } = useIntl13();
5077
5146
  const [stagedIndices, setStagedIndices] = useState15();
@@ -5115,12 +5184,12 @@ function DefaultComponent(props) {
5115
5184
  const contentProps = {
5116
5185
  title: option.title,
5117
5186
  description: option.description,
5118
- icon: /* @__PURE__ */ jsx69(OptionMedia, { media: option.media, preferAvatar: false })
5187
+ icon: /* @__PURE__ */ jsx71(OptionMedia, { media: option.media, preferAvatar: false })
5119
5188
  };
5120
- return /* @__PURE__ */ jsx69(SelectInputOptionContent, __spreadValues({}, contentProps));
5189
+ return /* @__PURE__ */ jsx71(SelectInputOptionContent, __spreadValues({}, contentProps));
5121
5190
  };
5122
5191
  const extraProps = { autoComplete };
5123
- return /* @__PURE__ */ jsx69(
5192
+ return /* @__PURE__ */ jsx71(
5124
5193
  FieldInput_default,
5125
5194
  {
5126
5195
  id,
@@ -5131,7 +5200,7 @@ function DefaultComponent(props) {
5131
5200
  features,
5132
5201
  control,
5133
5202
  tags,
5134
- children: /* @__PURE__ */ jsx69(
5203
+ children: /* @__PURE__ */ jsx71(
5135
5204
  SelectInput,
5136
5205
  __spreadValues({
5137
5206
  id,
@@ -5171,7 +5240,7 @@ function DefaultComponent(props) {
5171
5240
 
5172
5241
  // ../renderers/src/MultiSelectInputRenderer/InlineCheckboxComponent.tsx
5173
5242
  import { Checkbox as Checkbox2 } from "@transferwise/components";
5174
- import { jsx as jsx70 } from "react/jsx-runtime";
5243
+ import { jsx as jsx72 } from "react/jsx-runtime";
5175
5244
  function InlineCheckboxComponent(props) {
5176
5245
  const {
5177
5246
  id,
@@ -5187,7 +5256,7 @@ function InlineCheckboxComponent(props) {
5187
5256
  tags,
5188
5257
  onSelect
5189
5258
  } = props;
5190
- return /* @__PURE__ */ jsx70(
5259
+ return /* @__PURE__ */ jsx72(
5191
5260
  FieldInput_default,
5192
5261
  {
5193
5262
  id,
@@ -5218,24 +5287,24 @@ function InlineCheckboxComponent(props) {
5218
5287
  onSelect(newSelectedIndices);
5219
5288
  }
5220
5289
  };
5221
- return /* @__PURE__ */ jsx70(Checkbox2, __spreadProps(__spreadValues({}, checkboxProps), { className: "m-t-1" }), key);
5290
+ return /* @__PURE__ */ jsx72(Checkbox2, __spreadProps(__spreadValues({}, checkboxProps), { className: "m-t-1" }), key);
5222
5291
  })
5223
5292
  }
5224
5293
  );
5225
5294
  }
5226
5295
 
5227
5296
  // ../renderers/src/MultiSelectInputRenderer/MultiSelectInputRenderer.tsx
5228
- import { jsx as jsx71 } from "react/jsx-runtime";
5297
+ import { jsx as jsx73 } from "react/jsx-runtime";
5229
5298
  var MultiSelectInputRenderer = {
5230
5299
  canRenderType: "input-multi-select",
5231
5300
  render: (props) => {
5232
5301
  switch (props.control) {
5233
5302
  case "inline":
5234
- return /* @__PURE__ */ jsx71(InlineComponent, __spreadValues({}, props));
5303
+ return /* @__PURE__ */ jsx73(InlineComponent, __spreadValues({}, props));
5235
5304
  case "inline-checkbox-group":
5236
- return /* @__PURE__ */ jsx71(InlineCheckboxComponent, __spreadValues({}, props));
5305
+ return /* @__PURE__ */ jsx73(InlineCheckboxComponent, __spreadValues({}, props));
5237
5306
  default:
5238
- return /* @__PURE__ */ jsx71(DefaultComponent, __spreadValues({}, props));
5307
+ return /* @__PURE__ */ jsx73(DefaultComponent, __spreadValues({}, props));
5239
5308
  }
5240
5309
  }
5241
5310
  };
@@ -5246,7 +5315,7 @@ import { Status, UploadInput } from "@transferwise/components";
5246
5315
  // ../renderers/src/components/UploadFieldInput.tsx
5247
5316
  import { InlineAlert as InlineAlert2 } from "@transferwise/components";
5248
5317
  var import_classnames24 = __toESM(require_classnames());
5249
- import { jsx as jsx72, jsxs as jsxs18 } from "react/jsx-runtime";
5318
+ import { jsx as jsx74, jsxs as jsxs18 } from "react/jsx-runtime";
5250
5319
  function UploadFieldInput({
5251
5320
  id,
5252
5321
  children,
@@ -5258,7 +5327,7 @@ function UploadFieldInput({
5258
5327
  control,
5259
5328
  tags
5260
5329
  }) {
5261
- const labelContent = label && help ? /* @__PURE__ */ jsx72(LabelContentWithHelp, { text: label, help }) : label;
5330
+ const labelContent = label && help ? /* @__PURE__ */ jsx74(LabelContentWithHelp, { text: label, help }) : label;
5262
5331
  const descriptionId = description ? `${id}-description` : void 0;
5263
5332
  const { ref } = useScrollToError(validation, features);
5264
5333
  return /* @__PURE__ */ jsxs18(
@@ -5273,9 +5342,9 @@ function UploadFieldInput({
5273
5342
  controlAndTagsToCSSClass({ control, tags })
5274
5343
  ),
5275
5344
  children: [
5276
- /* @__PURE__ */ jsx72("label", { htmlFor: id, className: "control-label", children: labelContent }),
5345
+ /* @__PURE__ */ jsx74("label", { htmlFor: id, className: "control-label", children: labelContent }),
5277
5346
  children,
5278
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx72(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
5347
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx74(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
5279
5348
  ]
5280
5349
  }
5281
5350
  );
@@ -5310,7 +5379,7 @@ var getSizeLimit = (maxSize) => {
5310
5379
  };
5311
5380
 
5312
5381
  // ../renderers/src/MultiUploadInputRenderer.tsx
5313
- import { jsx as jsx73 } from "react/jsx-runtime";
5382
+ import { jsx as jsx75 } from "react/jsx-runtime";
5314
5383
  var MultiUploadInputRenderer = {
5315
5384
  canRenderType: "input-upload-multi",
5316
5385
  render: (props) => {
@@ -5338,7 +5407,7 @@ var MultiUploadInputRenderer = {
5338
5407
  };
5339
5408
  const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
5340
5409
  const descriptionId = description ? `${id}-description` : void 0;
5341
- return /* @__PURE__ */ jsx73(
5410
+ return /* @__PURE__ */ jsx75(
5342
5411
  UploadFieldInput_default,
5343
5412
  {
5344
5413
  id,
@@ -5349,7 +5418,7 @@ var MultiUploadInputRenderer = {
5349
5418
  features,
5350
5419
  control,
5351
5420
  tags,
5352
- children: /* @__PURE__ */ jsx73(
5421
+ children: /* @__PURE__ */ jsx75(
5353
5422
  UploadInput,
5354
5423
  {
5355
5424
  id,
@@ -5378,7 +5447,7 @@ var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
5378
5447
 
5379
5448
  // ../renderers/src/NumberInputRenderer.tsx
5380
5449
  import { Input as Input3, InputGroup as InputGroup3 } from "@transferwise/components";
5381
- import { jsx as jsx74 } from "react/jsx-runtime";
5450
+ import { jsx as jsx76 } from "react/jsx-runtime";
5382
5451
  var NumberInputRenderer = {
5383
5452
  canRenderType: "input-number",
5384
5453
  render: (props) => {
@@ -5392,7 +5461,7 @@ var NumberInputRenderer = {
5392
5461
  "maximum",
5393
5462
  "minimum"
5394
5463
  );
5395
- return /* @__PURE__ */ jsx74(
5464
+ return /* @__PURE__ */ jsx76(
5396
5465
  FieldInput_default,
5397
5466
  {
5398
5467
  id,
@@ -5405,7 +5474,7 @@ var NumberInputRenderer = {
5405
5474
  features: props.features,
5406
5475
  control: props.control,
5407
5476
  tags: props.tags,
5408
- children: /* @__PURE__ */ jsx74(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx74(
5477
+ children: /* @__PURE__ */ jsx76(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx76(
5409
5478
  Input3,
5410
5479
  __spreadValues({
5411
5480
  id,
@@ -5455,10 +5524,10 @@ var paragraph_messages_default = defineMessages11({
5455
5524
  });
5456
5525
 
5457
5526
  // ../renderers/src/ParagraphRenderer.tsx
5458
- import { jsx as jsx75, jsxs as jsxs19 } from "react/jsx-runtime";
5527
+ import { jsx as jsx77, jsxs as jsxs19 } from "react/jsx-runtime";
5459
5528
  var ParagraphRenderer = {
5460
5529
  canRenderType: "paragraph",
5461
- render: (props) => /* @__PURE__ */ jsx75(Paragraph, __spreadValues({}, props))
5530
+ render: (props) => /* @__PURE__ */ jsx77(Paragraph, __spreadValues({}, props))
5462
5531
  };
5463
5532
  function Paragraph(props) {
5464
5533
  const { align, control, margin, size, text } = props;
@@ -5466,7 +5535,7 @@ function Paragraph(props) {
5466
5535
  getTextAlignmentAndMargin({ align, margin }),
5467
5536
  controlAndTagsToCSSClass(props)
5468
5537
  );
5469
- return control === "copyable" ? /* @__PURE__ */ jsx75(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx75(
5538
+ return control === "copyable" ? /* @__PURE__ */ jsx77(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx77(
5470
5539
  "p",
5471
5540
  {
5472
5541
  className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
@@ -5487,7 +5556,7 @@ function CopyableParagraph({
5487
5556
  };
5488
5557
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
5489
5558
  return /* @__PURE__ */ jsxs19("div", { className, children: [
5490
- /* @__PURE__ */ jsx75(
5559
+ /* @__PURE__ */ jsx77(
5491
5560
  Input4,
5492
5561
  {
5493
5562
  type: "text",
@@ -5496,7 +5565,7 @@ function CopyableParagraph({
5496
5565
  className: (0, import_classnames25.default)("text-ellipsis", inputAlignmentClasses)
5497
5566
  }
5498
5567
  ),
5499
- /* @__PURE__ */ jsx75(Button7, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
5568
+ /* @__PURE__ */ jsx77(Button7, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
5500
5569
  ] });
5501
5570
  }
5502
5571
  var ParagraphRenderer_default = ParagraphRenderer;
@@ -5504,16 +5573,16 @@ var ParagraphRenderer_default = ParagraphRenderer;
5504
5573
  // ../renderers/src/ProgressRenderer.tsx
5505
5574
  var import_classnames26 = __toESM(require_classnames());
5506
5575
  import { ProgressBar } from "@transferwise/components";
5507
- import { jsx as jsx76 } from "react/jsx-runtime";
5576
+ import { jsx as jsx78 } from "react/jsx-runtime";
5508
5577
  var ProgressRenderer = {
5509
5578
  canRenderType: "progress",
5510
5579
  render: ({ uid, title, help, progress, progressText, margin, description, control, tags }) => {
5511
- return /* @__PURE__ */ jsx76(
5580
+ return /* @__PURE__ */ jsx78(
5512
5581
  ProgressBar,
5513
5582
  {
5514
5583
  id: uid,
5515
5584
  className: (0, import_classnames26.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
5516
- title: title && help ? /* @__PURE__ */ jsx76(LabelContentWithHelp, { text: title, help }) : title,
5585
+ title: title && help ? /* @__PURE__ */ jsx78(LabelContentWithHelp, { text: title, help }) : title,
5517
5586
  description,
5518
5587
  progress: {
5519
5588
  max: 1,
@@ -5558,10 +5627,10 @@ var repeatable_messages_default = defineMessages12({
5558
5627
  });
5559
5628
 
5560
5629
  // ../renderers/src/RepeatableRenderer.tsx
5561
- import { Fragment as Fragment9, jsx as jsx77, jsxs as jsxs20 } from "react/jsx-runtime";
5630
+ import { Fragment as Fragment9, jsx as jsx79, jsxs as jsxs20 } from "react/jsx-runtime";
5562
5631
  var RepeatableRenderer = {
5563
5632
  canRenderType: "repeatable",
5564
- render: (props) => /* @__PURE__ */ jsx77(Repeatable, __spreadValues({}, props))
5633
+ render: (props) => /* @__PURE__ */ jsx79(Repeatable, __spreadValues({}, props))
5565
5634
  };
5566
5635
  function Repeatable(props) {
5567
5636
  const {
@@ -5604,8 +5673,8 @@ function Repeatable(props) {
5604
5673
  };
5605
5674
  return /* @__PURE__ */ jsxs20(Fragment9, { children: [
5606
5675
  /* @__PURE__ */ jsxs20("div", { ref, className: controlAndTagsToCSSClass(props), children: [
5607
- title && /* @__PURE__ */ jsx77(Header6, { title }),
5608
- description && /* @__PURE__ */ jsx77("p", { children: description }),
5676
+ title && /* @__PURE__ */ jsx79(Header6, { title }),
5677
+ description && /* @__PURE__ */ jsx79("p", { children: description }),
5609
5678
  /* @__PURE__ */ jsxs20(
5610
5679
  "div",
5611
5680
  {
@@ -5613,31 +5682,31 @@ function Repeatable(props) {
5613
5682
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
5614
5683
  }),
5615
5684
  children: [
5616
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx77(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
5617
- /* @__PURE__ */ jsx77(
5685
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx79(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
5686
+ /* @__PURE__ */ jsx79(
5618
5687
  NavigationOption,
5619
5688
  {
5620
- media: /* @__PURE__ */ jsx77(Plus, {}),
5689
+ media: /* @__PURE__ */ jsx79(Plus, {}),
5621
5690
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
5622
5691
  showMediaAtAllSizes: true,
5623
5692
  onClick: () => onAddItem()
5624
5693
  }
5625
5694
  ),
5626
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx77(InlineAlert3, { type: "negative", children: validationState.message })
5695
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx79(InlineAlert3, { type: "negative", children: validationState.message })
5627
5696
  ]
5628
5697
  }
5629
5698
  )
5630
5699
  ] }),
5631
- /* @__PURE__ */ jsx77(
5700
+ /* @__PURE__ */ jsx79(
5632
5701
  Modal4,
5633
5702
  {
5634
5703
  open: openModalType !== null,
5635
5704
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
5636
5705
  body: /* @__PURE__ */ jsxs20(Fragment9, { children: [
5637
- /* @__PURE__ */ jsx77("div", { className: "m-b-2", children: editableItem }),
5706
+ /* @__PURE__ */ jsx79("div", { className: "m-b-2", children: editableItem }),
5638
5707
  /* @__PURE__ */ jsxs20("div", { children: [
5639
- /* @__PURE__ */ jsx77(Button8, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
5640
- /* @__PURE__ */ jsx77(
5708
+ /* @__PURE__ */ jsx79(Button8, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
5709
+ /* @__PURE__ */ jsx79(
5641
5710
  Button8,
5642
5711
  {
5643
5712
  v2: true,
@@ -5659,10 +5728,10 @@ function ItemSummaryOption({
5659
5728
  item,
5660
5729
  onClick
5661
5730
  }) {
5662
- return /* @__PURE__ */ jsx77(
5731
+ return /* @__PURE__ */ jsx79(
5663
5732
  NavigationOption,
5664
5733
  {
5665
- media: /* @__PURE__ */ jsx77(OptionMedia, { media: item.media, preferAvatar: false }),
5734
+ media: /* @__PURE__ */ jsx79(OptionMedia, { media: item.media, preferAvatar: false }),
5666
5735
  title: item.title,
5667
5736
  content: item.description,
5668
5737
  showMediaAtAllSizes: true,
@@ -5676,14 +5745,14 @@ var RepeatableRenderer_default = RepeatableRenderer;
5676
5745
  // ../renderers/src/ReviewLegacyRenderer.tsx
5677
5746
  var import_classnames28 = __toESM(require_classnames());
5678
5747
  import { DefinitionList } from "@transferwise/components";
5679
- import { Fragment as Fragment10, jsx as jsx78, jsxs as jsxs21 } from "react/jsx-runtime";
5748
+ import { Fragment as Fragment10, jsx as jsx80, jsxs as jsxs21 } from "react/jsx-runtime";
5680
5749
  var ReviewRenderer = {
5681
5750
  canRenderType: "review",
5682
5751
  render: ({ callToAction, control, fields, margin, title, trackEvent, tags }) => {
5683
5752
  const orientation = mapControlToDefinitionListLayout(control);
5684
5753
  return /* @__PURE__ */ jsxs21("div", { className: (0, import_classnames28.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5685
- /* @__PURE__ */ jsx78(Header, { title, callToAction }),
5686
- /* @__PURE__ */ jsx78("div", { className: margin, children: /* @__PURE__ */ jsx78(
5754
+ /* @__PURE__ */ jsx80(Header, { title, callToAction }),
5755
+ /* @__PURE__ */ jsx80("div", { className: margin, children: /* @__PURE__ */ jsx80(
5687
5756
  DefinitionList,
5688
5757
  {
5689
5758
  layout: orientation,
@@ -5724,7 +5793,7 @@ var getFieldLabel = (label, help, onClick) => {
5724
5793
  return /* @__PURE__ */ jsxs21(Fragment10, { children: [
5725
5794
  label,
5726
5795
  " ",
5727
- /* @__PURE__ */ jsx78(Help_default, { help, onClick })
5796
+ /* @__PURE__ */ jsx80(Help_default, { help, onClick })
5728
5797
  ] });
5729
5798
  }
5730
5799
  return label;
@@ -5735,7 +5804,7 @@ var import_classnames29 = __toESM(require_classnames());
5735
5804
  import { ListItem as ListItem10, Markdown as Markdown5, Popover } from "@transferwise/components";
5736
5805
  import { QuestionMarkCircle } from "@transferwise/icons";
5737
5806
  import { useIntl as useIntl16 } from "react-intl";
5738
- import { jsx as jsx79, jsxs as jsxs22 } from "react/jsx-runtime";
5807
+ import { jsx as jsx81, jsxs as jsxs22 } from "react/jsx-runtime";
5739
5808
  var IGNORED_CONTROLS = [
5740
5809
  "horizontal",
5741
5810
  "horizontal-end-aligned",
@@ -5745,7 +5814,7 @@ var IGNORED_CONTROLS = [
5745
5814
  var ReviewRenderer2 = {
5746
5815
  canRenderType: "review",
5747
5816
  canRender: ({ control }) => control ? !IGNORED_CONTROLS.includes(control) : true,
5748
- render: (props) => /* @__PURE__ */ jsx79(Review, __spreadValues({}, props))
5817
+ render: (props) => /* @__PURE__ */ jsx81(Review, __spreadValues({}, props))
5749
5818
  };
5750
5819
  var Review = ({
5751
5820
  callToAction,
@@ -5758,7 +5827,7 @@ var Review = ({
5758
5827
  }) => {
5759
5828
  const intl = useIntl16();
5760
5829
  return /* @__PURE__ */ jsxs22("div", { className: (0, import_classnames29.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5761
- /* @__PURE__ */ jsx79(Header, { title, callToAction }),
5830
+ /* @__PURE__ */ jsx81(Header, { title, callToAction }),
5762
5831
  fields.map((field) => {
5763
5832
  var _a, _b, _c;
5764
5833
  const {
@@ -5776,7 +5845,7 @@ var Review = ({
5776
5845
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
5777
5846
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
5778
5847
  };
5779
- return /* @__PURE__ */ jsx79(
5848
+ return /* @__PURE__ */ jsx81(
5780
5849
  ListItem10,
5781
5850
  {
5782
5851
  title: value,
@@ -5797,7 +5866,7 @@ var Review = ({
5797
5866
  ] });
5798
5867
  };
5799
5868
  var getHelpControl = (help, ariaLabel, onClick) => {
5800
- return /* @__PURE__ */ jsx79(Popover, { content: /* @__PURE__ */ jsx79(Markdown5, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ jsx79(ListItem10.IconButton, { partiallyInteractive: true, "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ jsx79(QuestionMarkCircle, {}) }) });
5869
+ return /* @__PURE__ */ jsx81(Popover, { content: /* @__PURE__ */ jsx81(Markdown5, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ jsx81(ListItem10.IconButton, { partiallyInteractive: true, "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ jsx81(QuestionMarkCircle, {}) }) });
5801
5870
  };
5802
5871
  var ReviewRenderer_default = ReviewRenderer2;
5803
5872
 
@@ -5819,19 +5888,19 @@ var search_messages_default = defineMessages13({
5819
5888
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
5820
5889
  import { useIntl as useIntl17 } from "react-intl";
5821
5890
  import { Link as DSLink2 } from "@transferwise/components";
5822
- import { jsx as jsx80, jsxs as jsxs23 } from "react/jsx-runtime";
5891
+ import { jsx as jsx82, jsxs as jsxs23 } from "react/jsx-runtime";
5823
5892
  function ErrorResult({ state }) {
5824
5893
  const intl = useIntl17();
5825
5894
  return /* @__PURE__ */ jsxs23("p", { className: "m-t-2", children: [
5826
5895
  intl.formatMessage(generic_error_messages_default.genericError),
5827
5896
  "\xA0",
5828
- /* @__PURE__ */ jsx80(DSLink2, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
5897
+ /* @__PURE__ */ jsx82(DSLink2, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
5829
5898
  ] });
5830
5899
  }
5831
5900
 
5832
5901
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
5833
5902
  import { Search as Search2 } from "@transferwise/icons";
5834
- import { Fragment as Fragment11, jsx as jsx81, jsxs as jsxs24 } from "react/jsx-runtime";
5903
+ import { Fragment as Fragment11, jsx as jsx83, jsxs as jsxs24 } from "react/jsx-runtime";
5835
5904
  function BlockSearchRendererComponent({
5836
5905
  id,
5837
5906
  hint,
@@ -5849,7 +5918,7 @@ function BlockSearchRendererComponent({
5849
5918
  const [hasSearched, setHasSearched] = useState17(false);
5850
5919
  const { formatMessage } = useIntl18();
5851
5920
  return /* @__PURE__ */ jsxs24("div", { className: getMargin(margin), children: [
5852
- /* @__PURE__ */ jsx81(
5921
+ /* @__PURE__ */ jsx83(
5853
5922
  FieldInput_default,
5854
5923
  {
5855
5924
  id,
@@ -5860,7 +5929,7 @@ function BlockSearchRendererComponent({
5860
5929
  features,
5861
5930
  control,
5862
5931
  tags,
5863
- children: /* @__PURE__ */ jsx81(InputGroup4, { addonStart: { content: /* @__PURE__ */ jsx81(Search2, { size: 24 }) }, children: /* @__PURE__ */ jsx81(
5932
+ children: /* @__PURE__ */ jsx83(InputGroup4, { addonStart: { content: /* @__PURE__ */ jsx83(Search2, { size: 24 }) }, children: /* @__PURE__ */ jsx83(
5864
5933
  Input5,
5865
5934
  {
5866
5935
  id,
@@ -5880,7 +5949,7 @@ function BlockSearchRendererComponent({
5880
5949
  ) })
5881
5950
  }
5882
5951
  ),
5883
- isLoading ? /* @__PURE__ */ jsx81("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx81(SearchResultContent, { state, trackEvent })
5952
+ isLoading ? /* @__PURE__ */ jsx83("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx83(SearchResultContent, { state, trackEvent })
5884
5953
  ] });
5885
5954
  }
5886
5955
  function SearchResultContent({
@@ -5889,9 +5958,9 @@ function SearchResultContent({
5889
5958
  }) {
5890
5959
  switch (state.type) {
5891
5960
  case "error":
5892
- return /* @__PURE__ */ jsx81(ErrorResult, { state });
5961
+ return /* @__PURE__ */ jsx83(ErrorResult, { state });
5893
5962
  case "results":
5894
- return /* @__PURE__ */ jsx81(SearchResults, { state, trackEvent });
5963
+ return /* @__PURE__ */ jsx83(SearchResults, { state, trackEvent });
5895
5964
  case "layout":
5896
5965
  return /* @__PURE__ */ jsxs24(Fragment11, { children: [
5897
5966
  " ",
@@ -5899,28 +5968,28 @@ function SearchResultContent({
5899
5968
  " "
5900
5969
  ] });
5901
5970
  case "noResults":
5902
- return /* @__PURE__ */ jsx81(EmptySearchResult, { state });
5971
+ return /* @__PURE__ */ jsx83(EmptySearchResult, { state });
5903
5972
  case "pending":
5904
5973
  default:
5905
5974
  return null;
5906
5975
  }
5907
5976
  }
5908
5977
  function EmptySearchResult({ state }) {
5909
- return /* @__PURE__ */ jsx81(Markdown6, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
5978
+ return /* @__PURE__ */ jsx83(Markdown6, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
5910
5979
  }
5911
5980
  function SearchResults({
5912
5981
  state,
5913
5982
  trackEvent
5914
5983
  }) {
5915
- return /* @__PURE__ */ jsx81(List, { children: state.results.map((result) => {
5984
+ return /* @__PURE__ */ jsx83(List, { children: state.results.map((result) => {
5916
5985
  const { media } = result;
5917
- return /* @__PURE__ */ jsx81(
5986
+ return /* @__PURE__ */ jsx83(
5918
5987
  ListItem11,
5919
5988
  {
5920
5989
  title: result.title,
5921
5990
  subtitle: result.description,
5922
- media: media ? /* @__PURE__ */ jsx81(OptionMedia, { media, preferAvatar: false }) : void 0,
5923
- control: /* @__PURE__ */ jsx81(
5991
+ media: media ? /* @__PURE__ */ jsx83(OptionMedia, { media, preferAvatar: false }) : void 0,
5992
+ control: /* @__PURE__ */ jsx83(
5924
5993
  ListItem11.Navigation,
5925
5994
  {
5926
5995
  onClick: () => {
@@ -5943,7 +6012,7 @@ import { Markdown as Markdown7, Typeahead } from "@transferwise/components";
5943
6012
  import { Search as Search3 } from "@transferwise/icons";
5944
6013
  import { useState as useState18 } from "react";
5945
6014
  import { useIntl as useIntl19 } from "react-intl";
5946
- import { jsx as jsx82 } from "react/jsx-runtime";
6015
+ import { jsx as jsx84 } from "react/jsx-runtime";
5947
6016
  function InlineSearchRenderer({
5948
6017
  id,
5949
6018
  hint,
@@ -5959,7 +6028,7 @@ function InlineSearchRenderer({
5959
6028
  }) {
5960
6029
  const [hasSearched, setHasSearched] = useState18(false);
5961
6030
  const intl = useIntl19();
5962
- return /* @__PURE__ */ jsx82("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx82(
6031
+ return /* @__PURE__ */ jsx84("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx84(
5963
6032
  FieldInput_default,
5964
6033
  {
5965
6034
  id,
@@ -5970,7 +6039,7 @@ function InlineSearchRenderer({
5970
6039
  features,
5971
6040
  control,
5972
6041
  tags,
5973
- children: /* @__PURE__ */ jsx82(
6042
+ children: /* @__PURE__ */ jsx84(
5974
6043
  Typeahead,
5975
6044
  {
5976
6045
  id: "typeahead-input-id",
@@ -5979,10 +6048,10 @@ function InlineSearchRenderer({
5979
6048
  size: "md",
5980
6049
  placeholder: hint,
5981
6050
  maxHeight: 100,
5982
- footer: /* @__PURE__ */ jsx82(TypeaheadFooter, { state, isLoading }),
6051
+ footer: /* @__PURE__ */ jsx84(TypeaheadFooter, { state, isLoading }),
5983
6052
  multiple: false,
5984
6053
  clearable: false,
5985
- addon: /* @__PURE__ */ jsx82(Search3, { size: 24 }),
6054
+ addon: /* @__PURE__ */ jsx84(Search3, { size: 24 }),
5986
6055
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
5987
6056
  minQueryLength: 1,
5988
6057
  onChange: (values) => {
@@ -6021,26 +6090,26 @@ function mapResultToTypeaheadOption(result) {
6021
6090
  function TypeaheadFooter({ state, isLoading }) {
6022
6091
  const { formatMessage } = useIntl19();
6023
6092
  if (state.type === "layout") {
6024
- return /* @__PURE__ */ jsx82("div", { className: "m-x-1 m-y-1", children: state.layout });
6093
+ return /* @__PURE__ */ jsx84("div", { className: "m-x-1 m-y-1", children: state.layout });
6025
6094
  }
6026
6095
  if (state.type === "noResults") {
6027
- return /* @__PURE__ */ jsx82(Markdown7, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
6096
+ return /* @__PURE__ */ jsx84(Markdown7, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
6028
6097
  }
6029
6098
  if (state.type === "error") {
6030
- return /* @__PURE__ */ jsx82("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx82(ErrorResult, { state }) });
6099
+ return /* @__PURE__ */ jsx84("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx84(ErrorResult, { state }) });
6031
6100
  }
6032
6101
  if (state.type === "pending" || isLoading) {
6033
- return /* @__PURE__ */ jsx82("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
6102
+ return /* @__PURE__ */ jsx84("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
6034
6103
  }
6035
6104
  return null;
6036
6105
  }
6037
6106
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
6038
6107
 
6039
6108
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
6040
- import { jsx as jsx83 } from "react/jsx-runtime";
6109
+ import { jsx as jsx85 } from "react/jsx-runtime";
6041
6110
  var SearchRenderer = {
6042
6111
  canRenderType: "search",
6043
- render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx83(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx83(BlockSearchRendererComponent_default, __spreadValues({}, props))
6112
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx85(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx85(BlockSearchRendererComponent_default, __spreadValues({}, props))
6044
6113
  };
6045
6114
  var SearchRenderer_default = SearchRenderer;
6046
6115
 
@@ -6070,7 +6139,7 @@ var getHeaderAction2 = (callToAction) => {
6070
6139
  };
6071
6140
 
6072
6141
  // ../renderers/src/SectionRenderer.tsx
6073
- import { jsx as jsx84, jsxs as jsxs25 } from "react/jsx-runtime";
6142
+ import { jsx as jsx86, jsxs as jsxs25 } from "react/jsx-runtime";
6074
6143
  var SectionRenderer = {
6075
6144
  canRenderType: "section",
6076
6145
  render: ({ children, callToAction, margin, title, control, tags }) => {
@@ -6079,7 +6148,7 @@ var SectionRenderer = {
6079
6148
  {
6080
6149
  className: (0, import_classnames30.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
6081
6150
  children: [
6082
- (title || callToAction) && /* @__PURE__ */ jsx84(Header7, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
6151
+ (title || callToAction) && /* @__PURE__ */ jsx86(Header7, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
6083
6152
  children
6084
6153
  ]
6085
6154
  }
@@ -6090,7 +6159,7 @@ var SectionRenderer_default = SectionRenderer;
6090
6159
 
6091
6160
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
6092
6161
  import { RadioGroup } from "@transferwise/components";
6093
- import { Fragment as Fragment12, jsx as jsx85, jsxs as jsxs26 } from "react/jsx-runtime";
6162
+ import { Fragment as Fragment12, jsx as jsx87, jsxs as jsxs26 } from "react/jsx-runtime";
6094
6163
  function RadioInputRendererComponent(props) {
6095
6164
  const {
6096
6165
  id,
@@ -6108,7 +6177,7 @@ function RadioInputRendererComponent(props) {
6108
6177
  onSelect
6109
6178
  } = props;
6110
6179
  return /* @__PURE__ */ jsxs26(Fragment12, { children: [
6111
- /* @__PURE__ */ jsx85(
6180
+ /* @__PURE__ */ jsx87(
6112
6181
  FieldInput_default,
6113
6182
  {
6114
6183
  id,
@@ -6119,7 +6188,7 @@ function RadioInputRendererComponent(props) {
6119
6188
  features,
6120
6189
  control,
6121
6190
  tags,
6122
- children: /* @__PURE__ */ jsx85("span", { children: /* @__PURE__ */ jsx85(
6191
+ children: /* @__PURE__ */ jsx87("span", { children: /* @__PURE__ */ jsx87(
6123
6192
  RadioGroup,
6124
6193
  {
6125
6194
  name: id,
@@ -6128,7 +6197,7 @@ function RadioInputRendererComponent(props) {
6128
6197
  value: index,
6129
6198
  secondary: option.description,
6130
6199
  disabled: option.disabled || disabled,
6131
- avatar: /* @__PURE__ */ jsx85(OptionMedia, { media: option.media, preferAvatar: false })
6200
+ avatar: /* @__PURE__ */ jsx87(OptionMedia, { media: option.media, preferAvatar: false })
6132
6201
  })),
6133
6202
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
6134
6203
  onChange: onSelect
@@ -6144,7 +6213,7 @@ function RadioInputRendererComponent(props) {
6144
6213
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
6145
6214
  import { Tabs } from "@transferwise/components";
6146
6215
  import { useEffect as useEffect12 } from "react";
6147
- import { Fragment as Fragment13, jsx as jsx86, jsxs as jsxs27 } from "react/jsx-runtime";
6216
+ import { Fragment as Fragment13, jsx as jsx88, jsxs as jsxs27 } from "react/jsx-runtime";
6148
6217
  function TabInputRendererComponent(props) {
6149
6218
  const {
6150
6219
  id,
@@ -6167,7 +6236,7 @@ function TabInputRendererComponent(props) {
6167
6236
  }
6168
6237
  }, [selectedIndex, onSelect, options.length]);
6169
6238
  return /* @__PURE__ */ jsxs27(Fragment13, { children: [
6170
- /* @__PURE__ */ jsx86(
6239
+ /* @__PURE__ */ jsx88(
6171
6240
  FieldInput_default,
6172
6241
  {
6173
6242
  id,
@@ -6178,7 +6247,7 @@ function TabInputRendererComponent(props) {
6178
6247
  features,
6179
6248
  control,
6180
6249
  tags,
6181
- children: /* @__PURE__ */ jsx86(
6250
+ children: /* @__PURE__ */ jsx88(
6182
6251
  Tabs,
6183
6252
  {
6184
6253
  name: id,
@@ -6187,7 +6256,7 @@ function TabInputRendererComponent(props) {
6187
6256
  title: option.title,
6188
6257
  // if we pass null, we get some props-types console errors
6189
6258
  // eslint-disable-next-line react/jsx-no-useless-fragment
6190
- content: /* @__PURE__ */ jsx86(Fragment13, {}),
6259
+ content: /* @__PURE__ */ jsx88(Fragment13, {}),
6191
6260
  disabled: option.disabled || disabled
6192
6261
  })),
6193
6262
  onTabSelect: onSelect
@@ -6202,7 +6271,7 @@ var isValidIndex2 = (index, options) => index !== null && index >= 0 && index <
6202
6271
 
6203
6272
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
6204
6273
  import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
6205
- import { Fragment as Fragment14, jsx as jsx87, jsxs as jsxs28 } from "react/jsx-runtime";
6274
+ import { Fragment as Fragment14, jsx as jsx89, jsxs as jsxs28 } from "react/jsx-runtime";
6206
6275
  function SelectInputRendererComponent(props) {
6207
6276
  const {
6208
6277
  id,
@@ -6245,13 +6314,13 @@ function SelectInputRendererComponent(props) {
6245
6314
  } : {
6246
6315
  title: option.title,
6247
6316
  description: option.description,
6248
- icon: /* @__PURE__ */ jsx87(OptionMedia, { media: option.media, preferAvatar: false })
6317
+ icon: /* @__PURE__ */ jsx89(OptionMedia, { media: option.media, preferAvatar: false })
6249
6318
  };
6250
- return /* @__PURE__ */ jsx87(SelectInputOptionContent2, __spreadValues({}, contentProps));
6319
+ return /* @__PURE__ */ jsx89(SelectInputOptionContent2, __spreadValues({}, contentProps));
6251
6320
  };
6252
6321
  const extraProps = { autoComplete };
6253
6322
  return /* @__PURE__ */ jsxs28(Fragment14, { children: [
6254
- /* @__PURE__ */ jsx87(
6323
+ /* @__PURE__ */ jsx89(
6255
6324
  FieldInput_default,
6256
6325
  {
6257
6326
  id,
@@ -6262,7 +6331,7 @@ function SelectInputRendererComponent(props) {
6262
6331
  features,
6263
6332
  control,
6264
6333
  tags,
6265
- children: /* @__PURE__ */ jsx87(
6334
+ children: /* @__PURE__ */ jsx89(
6266
6335
  SelectInput2,
6267
6336
  __spreadValues({
6268
6337
  name: id,
@@ -6285,7 +6354,7 @@ function SelectInputRendererComponent(props) {
6285
6354
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
6286
6355
  import { useEffect as useEffect13 } from "react";
6287
6356
  import { SegmentedControl } from "@transferwise/components";
6288
- import { Fragment as Fragment15, jsx as jsx88, jsxs as jsxs29 } from "react/jsx-runtime";
6357
+ import { Fragment as Fragment15, jsx as jsx90, jsxs as jsxs29 } from "react/jsx-runtime";
6289
6358
  function SegmentedInputRendererComponent(props) {
6290
6359
  const {
6291
6360
  id,
@@ -6307,7 +6376,7 @@ function SegmentedInputRendererComponent(props) {
6307
6376
  }
6308
6377
  }, [selectedIndex, onSelect, options.length]);
6309
6378
  return /* @__PURE__ */ jsxs29(Fragment15, { children: [
6310
- /* @__PURE__ */ jsx88(
6379
+ /* @__PURE__ */ jsx90(
6311
6380
  FieldInput_default,
6312
6381
  {
6313
6382
  id,
@@ -6318,7 +6387,7 @@ function SegmentedInputRendererComponent(props) {
6318
6387
  features,
6319
6388
  control,
6320
6389
  tags,
6321
- children: /* @__PURE__ */ jsx88(
6390
+ children: /* @__PURE__ */ jsx90(
6322
6391
  SegmentedControl,
6323
6392
  {
6324
6393
  name: `${id}-segmented-control`,
@@ -6335,14 +6404,14 @@ function SegmentedInputRendererComponent(props) {
6335
6404
  )
6336
6405
  }
6337
6406
  ),
6338
- /* @__PURE__ */ jsx88("div", { id: `${id}-children`, children })
6407
+ /* @__PURE__ */ jsx90("div", { id: `${id}-children`, children })
6339
6408
  ] });
6340
6409
  }
6341
6410
  var isValidIndex3 = (index, options) => index !== null && index >= 0 && index < options;
6342
6411
 
6343
6412
  // ../renderers/src/SelectInputRenderer/RadioItemRendererComponent.tsx
6344
6413
  import { Header as Header8, InlineAlert as InlineAlert4, List as List2, ListItem as ListItem12 } from "@transferwise/components";
6345
- import { jsx as jsx89, jsxs as jsxs30 } from "react/jsx-runtime";
6414
+ import { jsx as jsx91, jsxs as jsxs30 } from "react/jsx-runtime";
6346
6415
  function RadioItemRendererComponent(props) {
6347
6416
  const {
6348
6417
  id,
@@ -6359,21 +6428,21 @@ function RadioItemRendererComponent(props) {
6359
6428
  } = props;
6360
6429
  const { ref } = useScrollToError(validationState, features);
6361
6430
  return /* @__PURE__ */ jsxs30("div", { ref, className: controlAndTagsToCSSClass(props), children: [
6362
- rootTitle && /* @__PURE__ */ jsx89(
6431
+ rootTitle && /* @__PURE__ */ jsx91(
6363
6432
  Header8,
6364
6433
  {
6365
6434
  as: "h2",
6366
- title: help ? /* @__PURE__ */ jsx89(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
6435
+ title: help ? /* @__PURE__ */ jsx91(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
6367
6436
  }
6368
6437
  ),
6369
- rootDescription && /* @__PURE__ */ jsx89("p", { children: rootDescription }),
6370
- /* @__PURE__ */ jsx89(List2, { children: options.map(
6371
- ({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ jsx89(
6438
+ rootDescription && /* @__PURE__ */ jsx91("p", { children: rootDescription }),
6439
+ /* @__PURE__ */ jsx91(List2, { children: options.map(
6440
+ ({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ jsx91(
6372
6441
  ListItem12,
6373
6442
  __spreadValues({
6374
6443
  title,
6375
6444
  subtitle: description,
6376
- control: /* @__PURE__ */ jsx89(
6445
+ control: /* @__PURE__ */ jsx91(
6377
6446
  ListItem12.Radio,
6378
6447
  {
6379
6448
  name: title,
@@ -6389,28 +6458,28 @@ function RadioItemRendererComponent(props) {
6389
6458
  title
6390
6459
  )
6391
6460
  ) }, `${id}-${selectedIndex}`),
6392
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx89(InlineAlert4, { type: "negative", children: validationState.message }),
6461
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx91(InlineAlert4, { type: "negative", children: validationState.message }),
6393
6462
  children
6394
6463
  ] });
6395
6464
  }
6396
6465
 
6397
6466
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
6398
- import { jsx as jsx90 } from "react/jsx-runtime";
6467
+ import { jsx as jsx92 } from "react/jsx-runtime";
6399
6468
  var SelectInputRenderer = {
6400
6469
  canRenderType: "input-select",
6401
6470
  render: (props) => {
6402
6471
  switch (props.control) {
6403
6472
  case "radio":
6404
- return /* @__PURE__ */ jsx90(RadioInputRendererComponent, __spreadValues({}, props));
6473
+ return /* @__PURE__ */ jsx92(RadioInputRendererComponent, __spreadValues({}, props));
6405
6474
  case "radio-item":
6406
- return /* @__PURE__ */ jsx90(RadioItemRendererComponent, __spreadValues({}, props));
6475
+ return /* @__PURE__ */ jsx92(RadioItemRendererComponent, __spreadValues({}, props));
6407
6476
  case "tab":
6408
- return props.options.length > 3 ? /* @__PURE__ */ jsx90(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx90(TabInputRendererComponent, __spreadValues({}, props));
6477
+ return props.options.length > 3 ? /* @__PURE__ */ jsx92(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx92(TabInputRendererComponent, __spreadValues({}, props));
6409
6478
  case "segmented":
6410
- return props.options.length > 3 ? /* @__PURE__ */ jsx90(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx90(SegmentedInputRendererComponent, __spreadValues({}, props));
6479
+ return props.options.length > 3 ? /* @__PURE__ */ jsx92(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx92(SegmentedInputRendererComponent, __spreadValues({}, props));
6411
6480
  case "select":
6412
6481
  default:
6413
- return /* @__PURE__ */ jsx90(SelectInputRendererComponent, __spreadValues({}, props));
6482
+ return /* @__PURE__ */ jsx92(SelectInputRendererComponent, __spreadValues({}, props));
6414
6483
  }
6415
6484
  }
6416
6485
  };
@@ -6419,20 +6488,20 @@ var SelectInputRenderer_default = SelectInputRenderer;
6419
6488
  // ../renderers/src/StatusListRenderer.tsx
6420
6489
  var import_classnames31 = __toESM(require_classnames());
6421
6490
  import { AvatarView as AvatarView4, Header as Header9, ListItem as ListItem13 } from "@transferwise/components";
6422
- import { jsx as jsx91, jsxs as jsxs31 } from "react/jsx-runtime";
6491
+ import { jsx as jsx93, jsxs as jsxs31 } from "react/jsx-runtime";
6423
6492
  var StatusListRenderer = {
6424
6493
  canRenderType: "status-list",
6425
6494
  render: ({ margin, items, title, control, tags }) => /* @__PURE__ */ jsxs31("div", { className: (0, import_classnames31.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6426
- title ? /* @__PURE__ */ jsx91(Header9, { title }) : null,
6495
+ title ? /* @__PURE__ */ jsx93(Header9, { title }) : null,
6427
6496
  items.map((item) => {
6428
6497
  const { callToAction, description, title: itemTitle } = item;
6429
- return /* @__PURE__ */ jsx91(
6498
+ return /* @__PURE__ */ jsx93(
6430
6499
  ListItem13,
6431
6500
  {
6432
6501
  title: itemTitle,
6433
6502
  subtitle: description,
6434
- media: /* @__PURE__ */ jsx91(StatusListItemMedia, __spreadValues({}, item)),
6435
- additionalInfo: callToAction ? /* @__PURE__ */ jsx91(
6503
+ media: /* @__PURE__ */ jsx93(StatusListItemMedia, __spreadValues({}, item)),
6504
+ additionalInfo: callToAction ? /* @__PURE__ */ jsx93(
6436
6505
  ListItem13.AdditionalInfo,
6437
6506
  {
6438
6507
  action: __spreadValues({
@@ -6451,10 +6520,10 @@ var StatusListItemMedia = ({ icon, status }) => {
6451
6520
  return void 0;
6452
6521
  }
6453
6522
  if ("name" in icon) {
6454
- return /* @__PURE__ */ jsx91(AvatarView4, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ jsx91(DynamicIcon_default, { name: icon.name }) });
6523
+ return /* @__PURE__ */ jsx93(AvatarView4, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ jsx93(DynamicIcon_default, { name: icon.name }) });
6455
6524
  }
6456
6525
  if ("text" in icon) {
6457
- return /* @__PURE__ */ jsx91(AvatarView4, { badge: { status: mapStatus(status) }, children: icon.text });
6526
+ return /* @__PURE__ */ jsx93(AvatarView4, { badge: { status: mapStatus(status) }, children: icon.text });
6458
6527
  }
6459
6528
  return void 0;
6460
6529
  };
@@ -6493,12 +6562,12 @@ var useCustomTheme = (theme, trackEvent) => {
6493
6562
 
6494
6563
  // ../renderers/src/step/StepHeader.tsx
6495
6564
  import { Title as Title2 } from "@transferwise/components";
6496
- import { Fragment as Fragment16, jsx as jsx92, jsxs as jsxs32 } from "react/jsx-runtime";
6565
+ import { Fragment as Fragment16, jsx as jsx94, jsxs as jsxs32 } from "react/jsx-runtime";
6497
6566
  var StepHeader = ({ title, description, tags }) => {
6498
6567
  const { titleType, alignmentClassName } = getHeaderStyle(tags);
6499
6568
  return /* @__PURE__ */ jsxs32(Fragment16, { children: [
6500
- title ? /* @__PURE__ */ jsx92(Title2, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
6501
- description ? /* @__PURE__ */ jsx92("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
6569
+ title ? /* @__PURE__ */ jsx94(Title2, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
6570
+ description ? /* @__PURE__ */ jsx94("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
6502
6571
  ] });
6503
6572
  };
6504
6573
  var getHeaderStyle = (tags) => {
@@ -6524,23 +6593,23 @@ var back_messages_default = defineMessages14({
6524
6593
  });
6525
6594
 
6526
6595
  // ../renderers/src/step/topbar/BackButton.tsx
6527
- import { jsx as jsx93, jsxs as jsxs33 } from "react/jsx-runtime";
6596
+ import { jsx as jsx95, jsxs as jsxs33 } from "react/jsx-runtime";
6528
6597
  function BackButton({ title, onClick }) {
6529
6598
  const { formatMessage } = useIntl20();
6530
6599
  return /* @__PURE__ */ jsxs33(IconButton2, { className: "df-back-button", priority: "tertiary", onClick, children: [
6531
- /* @__PURE__ */ jsx93("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
6532
- /* @__PURE__ */ jsx93(ArrowLeft, {})
6600
+ /* @__PURE__ */ jsx95("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
6601
+ /* @__PURE__ */ jsx95(ArrowLeft, {})
6533
6602
  ] });
6534
6603
  }
6535
6604
 
6536
6605
  // ../renderers/src/step/topbar/Toolbar.tsx
6537
6606
  import { Button as Button9, IconButton as IconButton3 } from "@transferwise/components";
6538
- import { jsx as jsx94, jsxs as jsxs34 } from "react/jsx-runtime";
6607
+ import { jsx as jsx96, jsxs as jsxs34 } from "react/jsx-runtime";
6539
6608
  var Toolbar = ({ items }) => {
6540
- return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx94("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx94(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
6609
+ return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx96("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx96(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
6541
6610
  };
6542
6611
  function ToolbarButton(props) {
6543
- return prefersMedia(props.control) ? /* @__PURE__ */ jsx94(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx94(TextToolbarButton, __spreadValues({}, props));
6612
+ return prefersMedia(props.control) ? /* @__PURE__ */ jsx96(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx96(TextToolbarButton, __spreadValues({}, props));
6544
6613
  }
6545
6614
  function MediaToolbarButton(props) {
6546
6615
  var _a;
@@ -6557,7 +6626,7 @@ function MediaToolbarButton(props) {
6557
6626
  type,
6558
6627
  onClick,
6559
6628
  children: [
6560
- accessibilityDescription ? /* @__PURE__ */ jsx94("span", { className: "sr-only", children: accessibilityDescription }) : null,
6629
+ accessibilityDescription ? /* @__PURE__ */ jsx96("span", { className: "sr-only", children: accessibilityDescription }) : null,
6561
6630
  media ? (_a = getAddonStartMedia(media)) == null ? void 0 : _a.value : null
6562
6631
  ]
6563
6632
  }
@@ -6568,7 +6637,7 @@ function TextToolbarButton(props) {
6568
6637
  const addonStart = media ? getAddonStartMedia(media) : void 0;
6569
6638
  const priority = getPriority2(control);
6570
6639
  const sentiment = getSentiment2(context);
6571
- return /* @__PURE__ */ jsx94(
6640
+ return /* @__PURE__ */ jsx96(
6572
6641
  Button9,
6573
6642
  {
6574
6643
  v2: true,
@@ -6598,18 +6667,18 @@ var getIconButtonPriority = (control) => {
6598
6667
  };
6599
6668
 
6600
6669
  // ../renderers/src/step/topbar/TopBar.tsx
6601
- import { jsx as jsx95, jsxs as jsxs35 } from "react/jsx-runtime";
6670
+ import { jsx as jsx97, jsxs as jsxs35 } from "react/jsx-runtime";
6602
6671
  function TopBar({ back, toolbar, tags }) {
6603
6672
  const isBackAllowed = !(tags == null ? void 0 : tags.includes("non-dismissible"));
6604
6673
  const backCTA = isBackAllowed ? back : void 0;
6605
6674
  return backCTA || toolbar ? /* @__PURE__ */ jsxs35("div", { className: "d-flex m-b-2", children: [
6606
- backCTA ? /* @__PURE__ */ jsx95(BackButton, __spreadValues({}, backCTA)) : null,
6607
- toolbar ? /* @__PURE__ */ jsx95(Toolbar, __spreadValues({}, toolbar)) : null
6675
+ backCTA ? /* @__PURE__ */ jsx97(BackButton, __spreadValues({}, backCTA)) : null,
6676
+ toolbar ? /* @__PURE__ */ jsx97(Toolbar, __spreadValues({}, toolbar)) : null
6608
6677
  ] }) : null;
6609
6678
  }
6610
6679
 
6611
6680
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
6612
- import { jsx as jsx96, jsxs as jsxs36 } from "react/jsx-runtime";
6681
+ import { jsx as jsx98, jsxs as jsxs36 } from "react/jsx-runtime";
6613
6682
  var SplashCelebrationStepRenderer = {
6614
6683
  canRenderType: "step",
6615
6684
  canRender: ({ control }) => control === "splash-celebration",
@@ -6623,10 +6692,10 @@ function SplashCelebrationStepRendererComponent(props) {
6623
6692
  {
6624
6693
  className: (0, import_classnames32.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
6625
6694
  children: [
6626
- /* @__PURE__ */ jsx96(TopBar, { back, toolbar, tags }),
6627
- title || description ? /* @__PURE__ */ jsx96("div", { className: "m-b-4", children: /* @__PURE__ */ jsx96(StepHeader, { title, description, tags }) }) : void 0,
6695
+ /* @__PURE__ */ jsx98(TopBar, { back, toolbar, tags }),
6696
+ title || description ? /* @__PURE__ */ jsx98("div", { className: "m-b-4", children: /* @__PURE__ */ jsx98(StepHeader, { title, description, tags }) }) : void 0,
6628
6697
  children,
6629
- /* @__PURE__ */ jsx96(StepFooter, { footer, tags })
6698
+ /* @__PURE__ */ jsx98(StepFooter, { footer, tags })
6630
6699
  ]
6631
6700
  }
6632
6701
  );
@@ -6634,7 +6703,7 @@ function SplashCelebrationStepRendererComponent(props) {
6634
6703
 
6635
6704
  // ../renderers/src/step/SplashStepRenderer.tsx
6636
6705
  var import_classnames33 = __toESM(require_classnames());
6637
- import { jsx as jsx97, jsxs as jsxs37 } from "react/jsx-runtime";
6706
+ import { jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
6638
6707
  var SplashStepRenderer = {
6639
6708
  canRenderType: "step",
6640
6709
  canRender: ({ control }) => control === "splash",
@@ -6647,10 +6716,10 @@ function SplashStepRendererComponent(props) {
6647
6716
  {
6648
6717
  className: (0, import_classnames33.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
6649
6718
  children: [
6650
- /* @__PURE__ */ jsx97(TopBar, { back, toolbar, tags }),
6651
- title || description ? /* @__PURE__ */ jsx97("div", { className: "m-b-4", children: /* @__PURE__ */ jsx97(StepHeader, { title, description, tags }) }) : void 0,
6719
+ /* @__PURE__ */ jsx99(TopBar, { back, toolbar, tags }),
6720
+ title || description ? /* @__PURE__ */ jsx99("div", { className: "m-b-4", children: /* @__PURE__ */ jsx99(StepHeader, { title, description, tags }) }) : void 0,
6652
6721
  children,
6653
- /* @__PURE__ */ jsx97(StepFooter, { footer, tags })
6722
+ /* @__PURE__ */ jsx99(StepFooter, { footer, tags })
6654
6723
  ]
6655
6724
  }
6656
6725
  );
@@ -6658,7 +6727,7 @@ function SplashStepRendererComponent(props) {
6658
6727
 
6659
6728
  // ../renderers/src/step/StepRenderer.tsx
6660
6729
  import { Alert } from "@transferwise/components";
6661
- import { jsx as jsx98, jsxs as jsxs38 } from "react/jsx-runtime";
6730
+ import { jsx as jsx100, jsxs as jsxs38 } from "react/jsx-runtime";
6662
6731
  var StepRenderer = {
6663
6732
  canRenderType: "step",
6664
6733
  render: StepRendererComponent
@@ -6666,11 +6735,11 @@ var StepRenderer = {
6666
6735
  function StepRendererComponent(props) {
6667
6736
  const { back, description, error, title, children, toolbar, footer, control, tags } = props;
6668
6737
  return /* @__PURE__ */ jsxs38("div", { className: controlAndTagsToCSSClass({ control, tags }), children: [
6669
- /* @__PURE__ */ jsx98(TopBar, { back, toolbar, tags }),
6670
- title || description ? /* @__PURE__ */ jsx98("div", { className: "m-b-4", children: /* @__PURE__ */ jsx98(StepHeader, { title, description, tags }) }) : void 0,
6671
- error ? /* @__PURE__ */ jsx98(Alert, { type: "negative", className: "m-b-2", message: error }) : null,
6738
+ /* @__PURE__ */ jsx100(TopBar, { back, toolbar, tags }),
6739
+ title || description ? /* @__PURE__ */ jsx100("div", { className: "m-b-4", children: /* @__PURE__ */ jsx100(StepHeader, { title, description, tags }) }) : void 0,
6740
+ error ? /* @__PURE__ */ jsx100(Alert, { type: "negative", className: "m-b-2", message: error }) : null,
6672
6741
  children,
6673
- /* @__PURE__ */ jsx98(StepFooter, { footer, tags })
6742
+ /* @__PURE__ */ jsx100(StepFooter, { footer, tags })
6674
6743
  ] });
6675
6744
  }
6676
6745
 
@@ -6678,26 +6747,26 @@ function StepRendererComponent(props) {
6678
6747
  var import_classnames34 = __toESM(require_classnames());
6679
6748
  import { Chips as Chips2, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
6680
6749
  import { useState as useState19 } from "react";
6681
- import { jsx as jsx99, jsxs as jsxs39 } from "react/jsx-runtime";
6750
+ import { jsx as jsx101, jsxs as jsxs39 } from "react/jsx-runtime";
6682
6751
  var TabsRenderer = {
6683
6752
  canRenderType: "tabs",
6684
6753
  render: (props) => {
6685
6754
  switch (props.control) {
6686
6755
  case "segmented":
6687
6756
  if (props.tabs.length > 3) {
6688
- return /* @__PURE__ */ jsx99(TabsRendererComponent, __spreadValues({}, props));
6757
+ return /* @__PURE__ */ jsx101(TabsRendererComponent, __spreadValues({}, props));
6689
6758
  }
6690
- return /* @__PURE__ */ jsx99(SegmentedTabsRendererComponent, __spreadValues({}, props));
6759
+ return /* @__PURE__ */ jsx101(SegmentedTabsRendererComponent, __spreadValues({}, props));
6691
6760
  case "chips":
6692
- return /* @__PURE__ */ jsx99(ChipsTabsRendererComponent, __spreadValues({}, props));
6761
+ return /* @__PURE__ */ jsx101(ChipsTabsRendererComponent, __spreadValues({}, props));
6693
6762
  default:
6694
- return /* @__PURE__ */ jsx99(TabsRendererComponent, __spreadValues({}, props));
6763
+ return /* @__PURE__ */ jsx101(TabsRendererComponent, __spreadValues({}, props));
6695
6764
  }
6696
6765
  }
6697
6766
  };
6698
6767
  function TabsRendererComponent({ uid, margin, tabs, control, tags }) {
6699
6768
  const [selectedIndex, setSelectedIndex] = useState19(0);
6700
- return /* @__PURE__ */ jsx99("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: /* @__PURE__ */ jsx99(
6769
+ return /* @__PURE__ */ jsx101("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: /* @__PURE__ */ jsx101(
6701
6770
  Tabs2,
6702
6771
  {
6703
6772
  name: uid,
@@ -6719,7 +6788,7 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs, control, tags }) {
6719
6788
  var _a;
6720
6789
  const [selectedIndex, setSelectedIndex] = useState19(0);
6721
6790
  return /* @__PURE__ */ jsxs39("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6722
- /* @__PURE__ */ jsx99(
6791
+ /* @__PURE__ */ jsx101(
6723
6792
  SegmentedControl2,
6724
6793
  {
6725
6794
  name: uid,
@@ -6734,14 +6803,14 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs, control, tags }) {
6734
6803
  onChange: (value) => setSelectedIndex(Number(value))
6735
6804
  }
6736
6805
  ),
6737
- /* @__PURE__ */ jsx99("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6806
+ /* @__PURE__ */ jsx101("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6738
6807
  ] });
6739
6808
  }
6740
6809
  function ChipsTabsRendererComponent({ margin, tabs, control, tags }) {
6741
6810
  var _a;
6742
6811
  const [selectedIndex, setSelectedIndex] = useState19(0);
6743
6812
  return /* @__PURE__ */ jsxs39("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6744
- /* @__PURE__ */ jsx99("div", { className: "chips-container", children: /* @__PURE__ */ jsx99(
6813
+ /* @__PURE__ */ jsx101("div", { className: "chips-container", children: /* @__PURE__ */ jsx101(
6745
6814
  Chips2,
6746
6815
  {
6747
6816
  chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
@@ -6749,7 +6818,7 @@ function ChipsTabsRendererComponent({ margin, tabs, control, tags }) {
6749
6818
  onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
6750
6819
  }
6751
6820
  ) }),
6752
- /* @__PURE__ */ jsx99("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6821
+ /* @__PURE__ */ jsx101("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6753
6822
  ] });
6754
6823
  }
6755
6824
 
@@ -6857,7 +6926,7 @@ function getDisplayOffset(displayValue, rawOffset) {
6857
6926
  }
6858
6927
 
6859
6928
  // ../renderers/src/components/VariableTextInput.tsx
6860
- import { jsx as jsx100 } from "react/jsx-runtime";
6929
+ import { jsx as jsx102 } from "react/jsx-runtime";
6861
6930
  var commonKeys = [
6862
6931
  "autoComplete",
6863
6932
  "autoCapitalize",
@@ -6876,14 +6945,14 @@ function VariableTextInput(inputProps) {
6876
6945
  const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
6877
6946
  switch (control) {
6878
6947
  case "email":
6879
- return /* @__PURE__ */ jsx100(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
6948
+ return /* @__PURE__ */ jsx102(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
6880
6949
  case "password":
6881
- return /* @__PURE__ */ jsx100(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
6950
+ return /* @__PURE__ */ jsx102(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
6882
6951
  case "ssn-input":
6883
- return /* @__PURE__ */ jsx100(SsnInput, __spreadProps(__spreadValues({}, commonProps), { isVisible: isSsnVisible, onChange }));
6952
+ return /* @__PURE__ */ jsx102(SsnInput, __spreadProps(__spreadValues({}, commonProps), { isVisible: isSsnVisible, onChange }));
6884
6953
  case "numeric": {
6885
6954
  const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
6886
- return /* @__PURE__ */ jsx100(
6955
+ return /* @__PURE__ */ jsx102(
6887
6956
  TextInput,
6888
6957
  __spreadProps(__spreadValues({}, numericProps), {
6889
6958
  onChange: (newValue) => {
@@ -6894,9 +6963,9 @@ function VariableTextInput(inputProps) {
6894
6963
  );
6895
6964
  }
6896
6965
  case "phone-number":
6897
- return /* @__PURE__ */ jsx100(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
6966
+ return /* @__PURE__ */ jsx102(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
6898
6967
  default: {
6899
- return /* @__PURE__ */ jsx100(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
6968
+ return /* @__PURE__ */ jsx102(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
6900
6969
  }
6901
6970
  }
6902
6971
  }
@@ -6905,7 +6974,7 @@ function SsnInputToggle({
6905
6974
  onClick
6906
6975
  }) {
6907
6976
  const { formatMessage } = useIntl21();
6908
- return /* @__PURE__ */ jsx100(
6977
+ return /* @__PURE__ */ jsx102(
6909
6978
  IconButton4,
6910
6979
  {
6911
6980
  priority: "minimal",
@@ -6913,7 +6982,7 @@ function SsnInputToggle({
6913
6982
  "aria-label": formatMessage(isVisible ? ssn_input_messages_default.hideValue : ssn_input_messages_default.showValue),
6914
6983
  "aria-pressed": isVisible,
6915
6984
  onClick,
6916
- children: isVisible ? /* @__PURE__ */ jsx100(EyeShut, { size: 24 }) : /* @__PURE__ */ jsx100(Eye, { size: 24 })
6985
+ children: isVisible ? /* @__PURE__ */ jsx102(EyeShut, { size: 24 }) : /* @__PURE__ */ jsx102(Eye, { size: 24 })
6917
6986
  }
6918
6987
  );
6919
6988
  }
@@ -6921,7 +6990,7 @@ function TextInput(props) {
6921
6990
  const _a = props, { control, displayFormat, onChange, type } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange", "type"]);
6922
6991
  const InputWithPattern = control === "textarea" ? TextareaWithDisplayFormat : InputWithDisplayFormat;
6923
6992
  const InputWithoutPattern = control === "textarea" ? TextArea : Input6;
6924
- return displayFormat ? /* @__PURE__ */ jsx100(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx100(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { type, onChange: (e) => onChange(e.target.value) }));
6993
+ return displayFormat ? /* @__PURE__ */ jsx102(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx102(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { type, onChange: (e) => onChange(e.target.value) }));
6925
6994
  }
6926
6995
  function SsnInput(props) {
6927
6996
  const _a = props, { displayFormat = "", isVisible = false, onChange, value = "" } = _a, commonProps = __objRest(_a, ["displayFormat", "isVisible", "onChange", "value"]);
@@ -6958,7 +7027,7 @@ function SsnInput(props) {
6958
7027
  );
6959
7028
  pendingCaret.current = null;
6960
7029
  }, [editVersion, formattedValue, rawValue]);
6961
- return /* @__PURE__ */ jsx100(
7030
+ return /* @__PURE__ */ jsx102(
6962
7031
  "input",
6963
7032
  __spreadProps(__spreadValues({
6964
7033
  ref: inputRef
@@ -7021,10 +7090,10 @@ function SsnInput(props) {
7021
7090
  }
7022
7091
 
7023
7092
  // ../renderers/src/TextInputRenderer.tsx
7024
- import { jsx as jsx101 } from "react/jsx-runtime";
7093
+ import { jsx as jsx103 } from "react/jsx-runtime";
7025
7094
  var TextInputRenderer = {
7026
7095
  canRenderType: "input-text",
7027
- render: (props) => /* @__PURE__ */ jsx101(TextInputRendererComponent, __spreadValues({}, props))
7096
+ render: (props) => /* @__PURE__ */ jsx103(TextInputRendererComponent, __spreadValues({}, props))
7028
7097
  };
7029
7098
  function TextInputRendererComponent(props) {
7030
7099
  const [isSsnVisible, setIsSsnVisible] = useState21(false);
@@ -7059,7 +7128,7 @@ function TextInputRendererComponent(props) {
7059
7128
  }
7060
7129
  }
7061
7130
  });
7062
- return /* @__PURE__ */ jsx101(
7131
+ return /* @__PURE__ */ jsx103(
7063
7132
  FieldInput_default,
7064
7133
  {
7065
7134
  id,
@@ -7072,13 +7141,13 @@ function TextInputRendererComponent(props) {
7072
7141
  features: props.features,
7073
7142
  control: props.control,
7074
7143
  tags: props.tags,
7075
- children: /* @__PURE__ */ jsx101(
7144
+ children: /* @__PURE__ */ jsx103(
7076
7145
  InputGroup5,
7077
7146
  {
7078
7147
  addonStart: getInputGroupAddonStart(media),
7079
7148
  addonEnd: isSsnInput ? {
7080
7149
  interactive: true,
7081
- content: /* @__PURE__ */ jsx101(
7150
+ content: /* @__PURE__ */ jsx103(
7082
7151
  SsnInputToggle,
7083
7152
  {
7084
7153
  isVisible: isSsnVisible,
@@ -7086,7 +7155,7 @@ function TextInputRendererComponent(props) {
7086
7155
  }
7087
7156
  )
7088
7157
  } : void 0,
7089
- children: /* @__PURE__ */ jsx101(VariableTextInput, __spreadValues({}, inputProps))
7158
+ children: /* @__PURE__ */ jsx103(VariableTextInput, __spreadValues({}, inputProps))
7090
7159
  }
7091
7160
  )
7092
7161
  }
@@ -7096,11 +7165,11 @@ var TextInputRenderer_default = TextInputRenderer;
7096
7165
 
7097
7166
  // ../renderers/src/UpdatableRenderer.tsx
7098
7167
  var import_classnames35 = __toESM(require_classnames());
7099
- import { jsx as jsx102 } from "react/jsx-runtime";
7168
+ import { jsx as jsx104 } from "react/jsx-runtime";
7100
7169
  var UpdatableRenderer = {
7101
7170
  canRenderType: "updatable",
7102
7171
  render: ({ children, control, margin, tags }) => {
7103
- return /* @__PURE__ */ jsx102("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children });
7172
+ return /* @__PURE__ */ jsx104("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children });
7104
7173
  }
7105
7174
  };
7106
7175
 
@@ -7111,7 +7180,7 @@ import { Status as Status2, Upload, UploadInput as UploadInput2 } from "@transfe
7111
7180
  var getRandomId = () => Math.random().toString(36).substring(2);
7112
7181
 
7113
7182
  // ../renderers/src/UploadInputRenderer.tsx
7114
- import { jsx as jsx103 } from "react/jsx-runtime";
7183
+ import { jsx as jsx105 } from "react/jsx-runtime";
7115
7184
  var UploadInputRenderer = {
7116
7185
  canRenderType: "input-upload",
7117
7186
  render: (props) => {
@@ -7140,7 +7209,7 @@ var UploadInputRenderer = {
7140
7209
  };
7141
7210
  return (
7142
7211
  // We don't pass help here as there is no sensible place to display it
7143
- /* @__PURE__ */ jsx103(
7212
+ /* @__PURE__ */ jsx105(
7144
7213
  UploadFieldInput_default,
7145
7214
  {
7146
7215
  id,
@@ -7150,7 +7219,7 @@ var UploadInputRenderer = {
7150
7219
  features,
7151
7220
  control,
7152
7221
  tags,
7153
- children: /* @__PURE__ */ jsx103(
7222
+ children: /* @__PURE__ */ jsx105(
7154
7223
  UploadInput2,
7155
7224
  {
7156
7225
  id,
@@ -7220,7 +7289,7 @@ var LargeUploadRenderer = {
7220
7289
  };
7221
7290
  const filetypes = acceptsToFileTypes(accepts);
7222
7291
  const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
7223
- return /* @__PURE__ */ jsx103(
7292
+ return /* @__PURE__ */ jsx105(
7224
7293
  FieldInput_default,
7225
7294
  {
7226
7295
  id,
@@ -7231,7 +7300,7 @@ var LargeUploadRenderer = {
7231
7300
  features,
7232
7301
  control,
7233
7302
  tags,
7234
- children: /* @__PURE__ */ jsx103(
7303
+ children: /* @__PURE__ */ jsx105(
7235
7304
  Upload,
7236
7305
  __spreadProps(__spreadValues({}, uploadProps), {
7237
7306
  usAccept,
@@ -7250,7 +7319,7 @@ var LargeUploadRenderer = {
7250
7319
  var import_classnames36 = __toESM(require_classnames());
7251
7320
  import { Nudge } from "@transferwise/components";
7252
7321
  import { useState as useState22 } from "react";
7253
- import { jsx as jsx104 } from "react/jsx-runtime";
7322
+ import { jsx as jsx106 } from "react/jsx-runtime";
7254
7323
  var UpsellRenderer = {
7255
7324
  canRenderType: "upsell",
7256
7325
  render: UpsellRendererComponent
@@ -7258,7 +7327,7 @@ var UpsellRenderer = {
7258
7327
  function UpsellRendererComponent(props) {
7259
7328
  const { text, callToAction, media, margin, onDismiss, control, tags } = props;
7260
7329
  const [isVisible, setIsVisible] = useState22(true);
7261
- return isVisible ? /* @__PURE__ */ jsx104(
7330
+ return isVisible ? /* @__PURE__ */ jsx106(
7262
7331
  Nudge,
7263
7332
  {
7264
7333
  className: (0, import_classnames36.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
@@ -7359,11 +7428,11 @@ var getWiseRenderers = () => [
7359
7428
 
7360
7429
  // ../renderers/src/InitialLoadingStateRenderer.tsx
7361
7430
  import { Loader as Loader2 } from "@transferwise/components";
7362
- import { jsx as jsx105 } from "react/jsx-runtime";
7431
+ import { jsx as jsx107 } from "react/jsx-runtime";
7363
7432
  var InitialLoadingStateRenderer = {
7364
7433
  canRenderType: "loading-state",
7365
7434
  canRender: ({ stepLoadingState }) => stepLoadingState === "initial",
7366
- render: () => /* @__PURE__ */ jsx105(
7435
+ render: () => /* @__PURE__ */ jsx107(
7367
7436
  Loader2,
7368
7437
  {
7369
7438
  size: "md",
@@ -7376,24 +7445,24 @@ var InitialLoadingStateRenderer = {
7376
7445
  // src/dynamicFlow/DynamicFlowModal.tsx
7377
7446
  import { useDynamicFlowModal } from "@wise/dynamic-flow-client";
7378
7447
  import { Modal as Modal5 } from "@transferwise/components";
7379
- import { jsx as jsx106 } from "react/jsx-runtime";
7448
+ import { jsx as jsx108 } from "react/jsx-runtime";
7380
7449
  function DynamicFlowModal(props) {
7381
7450
  const _a = props, { className = "" } = _a, rest = __objRest(_a, ["className"]);
7382
7451
  const dfProps = useWiseToCoreProps(rest);
7383
7452
  const df = useDynamicFlowModal(dfProps);
7384
- return /* @__PURE__ */ jsx106(
7453
+ return /* @__PURE__ */ jsx108(
7385
7454
  Modal5,
7386
7455
  __spreadProps(__spreadValues({
7387
7456
  className: `dynamic-flow-modal ${className}`,
7388
7457
  disableDimmerClickToClose: true
7389
7458
  }, df.modal), {
7390
- body: /* @__PURE__ */ jsx106("div", { className: "dynamic-flow-modal", children: df.modal.body })
7459
+ body: /* @__PURE__ */ jsx108("div", { className: "dynamic-flow-modal", children: df.modal.body })
7391
7460
  })
7392
7461
  );
7393
7462
  }
7394
7463
 
7395
7464
  // src/dynamicFlow/getMergedRenderers.tsx
7396
- import { jsx as jsx107 } from "react/jsx-runtime";
7465
+ import { jsx as jsx109 } from "react/jsx-runtime";
7397
7466
  var wiseRenderers = getWiseRenderers();
7398
7467
  var getMergedRenderers = (props) => {
7399
7468
  var _d, _e;
@@ -7407,7 +7476,7 @@ var getMergedRenderers = (props) => {
7407
7476
  method: initialRequest.method,
7408
7477
  data: initialRequest.body
7409
7478
  };
7410
- return presentation.type === "push" ? /* @__PURE__ */ jsx107(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ jsx107(
7479
+ return presentation.type === "push" ? /* @__PURE__ */ jsx109(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ jsx109(
7411
7480
  DynamicFlowModal,
7412
7481
  __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), {
7413
7482
  features: subflowFeatures,
@@ -7622,7 +7691,7 @@ import {
7622
7691
  useImperativeHandle
7623
7692
  } from "react";
7624
7693
  import { useDynamicFlow as useDynamicFlow2 } from "@wise/dynamic-flow-client";
7625
- import { jsx as jsx108 } from "react/jsx-runtime";
7694
+ import { jsx as jsx110 } from "react/jsx-runtime";
7626
7695
  var DynamicFlowWithRef = forwardRef(function DynamicFlowWithRef2(props, ref) {
7627
7696
  const { className = "" } = props;
7628
7697
  const dfProps = useWiseToCoreProps(props);
@@ -7638,7 +7707,7 @@ var DynamicFlowWithRef = forwardRef(function DynamicFlowWithRef2(props, ref) {
7638
7707
  }),
7639
7708
  [df]
7640
7709
  );
7641
- return /* @__PURE__ */ jsx108("div", { className, children: df.view });
7710
+ return /* @__PURE__ */ jsx110("div", { className, children: df.view });
7642
7711
  });
7643
7712
 
7644
7713
  // src/index.ts
@@ -7700,8 +7769,8 @@ var cs_default = {
7700
7769
  "df.wise.group.currencies-with-account-details": "M\u011Bny s detaily \xFA\u010Dtu",
7701
7770
  "df.wise.group.popular": "Popul\xE1rn\xED",
7702
7771
  "df.wise.group.recent": "Ned\xE1vn\xE9",
7703
- "df.wise.ssnInput.hideValue": "Hide value",
7704
- "df.wise.ssnInput.showValue": "Show value",
7772
+ "df.wise.ssnInput.hideValue": "Skr\xFDt hodnotu",
7773
+ "df.wise.ssnInput.showValue": "Zobrazit hodnotu",
7705
7774
  "df.wise.step.scrollToBottom": "P\u0159ej\xEDt na konec"
7706
7775
  };
7707
7776
 
@@ -7960,8 +8029,8 @@ var hu_default = {
7960
8029
  "df.wise.group.currencies-with-account-details": "P\xE9nznemek sz\xE1mlaadatokkal",
7961
8030
  "df.wise.group.popular": "N\xE9pszer\u0171",
7962
8031
  "df.wise.group.recent": "Legut\xF3bbi",
7963
- "df.wise.ssnInput.hideValue": "Hide value",
7964
- "df.wise.ssnInput.showValue": "Show value",
8032
+ "df.wise.ssnInput.hideValue": "\xC9rt\xE9k elrejt\xE9se",
8033
+ "df.wise.ssnInput.showValue": "\xC9rt\xE9k megjelen\xEDt\xE9se",
7965
8034
  "df.wise.step.scrollToBottom": "G\xF6rgess legalulra"
7966
8035
  };
7967
8036
 
@@ -8064,8 +8133,8 @@ var it_default = {
8064
8133
  "df.wise.group.currencies-with-account-details": "Valute con estremi del conto",
8065
8134
  "df.wise.group.popular": "Popolari",
8066
8135
  "df.wise.group.recent": "Recenti",
8067
- "df.wise.ssnInput.hideValue": "Hide value",
8068
- "df.wise.ssnInput.showValue": "Show value",
8136
+ "df.wise.ssnInput.hideValue": "Nascondi valore",
8137
+ "df.wise.ssnInput.showValue": "Mostra valore",
8069
8138
  "df.wise.step.scrollToBottom": "Scorri fino in fondo"
8070
8139
  };
8071
8140
 
@@ -8116,8 +8185,8 @@ var ja_default = {
8116
8185
  "df.wise.group.currencies-with-account-details": "\u53E3\u5EA7\u60C5\u5831\u3092\u53D6\u5F97\u3067\u304D\u308B\u901A\u8CA8",
8117
8186
  "df.wise.group.popular": "\u4EBA\u6C17",
8118
8187
  "df.wise.group.recent": "\u6700\u8FD1",
8119
- "df.wise.ssnInput.hideValue": "Hide value",
8120
- "df.wise.ssnInput.showValue": "Show value",
8188
+ "df.wise.ssnInput.hideValue": "\u756A\u53F7\u3092\u975E\u8868\u793A",
8189
+ "df.wise.ssnInput.showValue": "\u756A\u53F7\u3092\u8868\u793A",
8121
8190
  "df.wise.step.scrollToBottom": "\u4E0B\u307E\u3067\u30B9\u30AF\u30ED\u30FC\u30EB\u3059\u308B"
8122
8191
  };
8123
8192
 
@@ -8168,8 +8237,8 @@ var nl_default = {
8168
8237
  "df.wise.group.currencies-with-account-details": "Valuta's met rekeninggegevens",
8169
8238
  "df.wise.group.popular": "Populair",
8170
8239
  "df.wise.group.recent": "Recent",
8171
- "df.wise.ssnInput.hideValue": "Hide value",
8172
- "df.wise.ssnInput.showValue": "Show value",
8240
+ "df.wise.ssnInput.hideValue": "Waarde verbergen",
8241
+ "df.wise.ssnInput.showValue": "Waarde weergeven",
8173
8242
  "df.wise.step.scrollToBottom": "Scrol omlaag"
8174
8243
  };
8175
8244
 
@@ -8220,8 +8289,8 @@ var pl_default = {
8220
8289
  "df.wise.group.currencies-with-account-details": "Waluty z danymi bankowymi",
8221
8290
  "df.wise.group.popular": "Popularne",
8222
8291
  "df.wise.group.recent": "Ostatnie",
8223
- "df.wise.ssnInput.hideValue": "Hide value",
8224
- "df.wise.ssnInput.showValue": "Show value",
8292
+ "df.wise.ssnInput.hideValue": "Ukryj warto\u015B\u0107",
8293
+ "df.wise.ssnInput.showValue": "Poka\u017C warto\u015B\u0107",
8225
8294
  "df.wise.step.scrollToBottom": "Przewi\u0144 w d\xF3\u0142"
8226
8295
  };
8227
8296
 
@@ -8272,8 +8341,8 @@ var pt_default = {
8272
8341
  "df.wise.group.currencies-with-account-details": "Moedas com dados de conta",
8273
8342
  "df.wise.group.popular": "Popular",
8274
8343
  "df.wise.group.recent": "Recente",
8275
- "df.wise.ssnInput.hideValue": "Hide value",
8276
- "df.wise.ssnInput.showValue": "Show value",
8344
+ "df.wise.ssnInput.hideValue": "Ocultar valor",
8345
+ "df.wise.ssnInput.showValue": "Exibir valor",
8277
8346
  "df.wise.step.scrollToBottom": "Descer at\xE9 o final da p\xE1gina"
8278
8347
  };
8279
8348
 
@@ -8324,8 +8393,8 @@ var ro_default = {
8324
8393
  "df.wise.group.currencies-with-account-details": "Monede cu detalii de cont",
8325
8394
  "df.wise.group.popular": "Populare",
8326
8395
  "df.wise.group.recent": "Recente",
8327
- "df.wise.ssnInput.hideValue": "Hide value",
8328
- "df.wise.ssnInput.showValue": "Show value",
8396
+ "df.wise.ssnInput.hideValue": "Ascunde valoarea",
8397
+ "df.wise.ssnInput.showValue": "Arat\u0103 valoarea",
8329
8398
  "df.wise.step.scrollToBottom": "Deruleaz\u0103 \xEEn jos"
8330
8399
  };
8331
8400
 
@@ -8376,8 +8445,8 @@ var ru_default = {
8376
8445
  "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",
8377
8446
  "df.wise.group.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
8378
8447
  "df.wise.group.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435",
8379
- "df.wise.ssnInput.hideValue": "Hide value",
8380
- "df.wise.ssnInput.showValue": "Show value",
8448
+ "df.wise.ssnInput.hideValue": "\u0421\u043A\u0440\u044B\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",
8449
+ "df.wise.ssnInput.showValue": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",
8381
8450
  "df.wise.step.scrollToBottom": "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0439\u0442\u0435 \u0432\u043D\u0438\u0437"
8382
8451
  };
8383
8452
 
@@ -8584,8 +8653,8 @@ var zh_HK_default = {
8584
8653
  "df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\u5E33\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
8585
8654
  "df.wise.group.popular": "\u71B1\u9580",
8586
8655
  "df.wise.group.recent": "\u6700\u8FD1\u7684",
8587
- "df.wise.ssnInput.hideValue": "Hide value",
8588
- "df.wise.ssnInput.showValue": "Show value",
8656
+ "df.wise.ssnInput.hideValue": "\u96B1\u85CF\u503C",
8657
+ "df.wise.ssnInput.showValue": "\u986F\u793A\u503C",
8589
8658
  "df.wise.step.scrollToBottom": "\u6ED1\u52D5\u5230\u6700\u5E95\u90E8"
8590
8659
  };
8591
8660