@wise/dynamic-flow-client 4.0.0-exp-next-min-fb61ff2 → 4.0.0-experimental-8a78888

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 (54) hide show
  1. package/build/main.js +535 -527
  2. package/build/main.min.js +1 -1
  3. package/build/main.mjs +338 -330
  4. package/build/types/legacy/common/contexts/featureContext/FeatureContext.d.ts +9 -0
  5. package/build/types/legacy/common/utils/schema-utils.d.ts +1 -1
  6. package/build/types/legacy/dynamic-flow-types.d.ts +15 -0
  7. package/build/types/legacy/dynamicFlow/utils/useLoader.d.ts +1 -1
  8. package/build/types/legacy/layout/button/utils.d.ts +2 -2
  9. package/build/types/legacy/layout/search/useSearch.d.ts +1 -1
  10. package/build/types/legacy/layout/utils/index.d.ts +1 -1
  11. package/build/types/revamp/{test-utils/DynamicFlowWise.d.ts → DynamicFlowWise.d.ts} +1 -1
  12. package/build/types/revamp/{test-utils/DynamicFragmentWise.d.ts → DynamicFragmentWise.d.ts} +1 -1
  13. package/build/types/revamp/domain/components/TextInputComponent.d.ts +2 -3
  14. package/build/types/revamp/domain/types.d.ts +0 -1
  15. package/build/types/revamp/renderers/CoreContainerRenderer.d.ts +1 -1
  16. package/build/types/revamp/renderers/getRenderFunction.d.ts +1 -1
  17. package/build/types/revamp/renderers/mappers/alertComponentToProps.d.ts +1 -1
  18. package/build/types/revamp/renderers/mappers/allOfComponentToProps.d.ts +1 -1
  19. package/build/types/revamp/renderers/mappers/booleanInputComponentToProps.d.ts +1 -1
  20. package/build/types/revamp/renderers/mappers/boxComponentToProps.d.ts +1 -1
  21. package/build/types/revamp/renderers/mappers/buttonComponentToProps.d.ts +1 -1
  22. package/build/types/revamp/renderers/mappers/columnsComponentToProps.d.ts +1 -1
  23. package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +1 -1
  24. package/build/types/revamp/renderers/mappers/dateInputComponentToProps.d.ts +1 -1
  25. package/build/types/revamp/renderers/mappers/decisionComponentToProps.d.ts +1 -1
  26. package/build/types/revamp/renderers/mappers/dividerComponentToProps.d.ts +1 -1
  27. package/build/types/revamp/renderers/mappers/formComponentToProps.d.ts +1 -1
  28. package/build/types/revamp/renderers/mappers/headingComponentToProps.d.ts +1 -1
  29. package/build/types/revamp/renderers/mappers/hiddenComponentToProps.d.ts +1 -1
  30. package/build/types/revamp/renderers/mappers/imageComponentToProps.d.ts +1 -1
  31. package/build/types/revamp/renderers/mappers/instructionsComponentToProps.d.ts +1 -1
  32. package/build/types/revamp/renderers/mappers/integerInputComponentToProps.d.ts +1 -1
  33. package/build/types/revamp/renderers/mappers/listComponentToProps.d.ts +1 -1
  34. package/build/types/revamp/renderers/mappers/loadingIndicatorComponentToProps.d.ts +1 -1
  35. package/build/types/revamp/renderers/mappers/markdownComponentToProps.d.ts +1 -1
  36. package/build/types/revamp/renderers/mappers/modalComponentToProps.d.ts +1 -1
  37. package/build/types/revamp/renderers/mappers/multiSelectComponentToProps.d.ts +1 -1
  38. package/build/types/revamp/renderers/mappers/multiUploadInputComponentToProps.d.ts +1 -1
  39. package/build/types/revamp/renderers/mappers/numberInputComponentToProps.d.ts +1 -1
  40. package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +1 -1
  41. package/build/types/revamp/renderers/mappers/paragraphComponentToProps.d.ts +1 -1
  42. package/build/types/revamp/renderers/mappers/repeatableComponentToProps.d.ts +1 -1
  43. package/build/types/revamp/renderers/mappers/reviewComponentToProps.d.ts +1 -1
  44. package/build/types/revamp/renderers/mappers/searchComponentToProps.d.ts +1 -1
  45. package/build/types/revamp/renderers/mappers/selectInputComponentToProps.d.ts +1 -1
  46. package/build/types/revamp/renderers/mappers/statusListComponentToProps.d.ts +1 -1
  47. package/build/types/revamp/renderers/mappers/textInputComponentToProps.d.ts +1 -1
  48. package/build/types/revamp/renderers/mappers/tupleComponentToProps.d.ts +1 -1
  49. package/build/types/revamp/renderers/mappers/uploadInputComponentToProps.d.ts +1 -1
  50. package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +3 -3
  51. package/build/types/revamp/renderers/mappers/utils/mapErrorsToValidationState.d.ts +1 -1
  52. package/build/types/revamp/renderers/stepComponentToProps.d.ts +1 -1
  53. package/build/types/revamp/types.d.ts +7 -2
  54. package/package.json +3 -3
package/build/main.mjs CHANGED
@@ -139,7 +139,7 @@ var init_clsx = __esm({
139
139
 
140
140
  // ../../node_modules/.pnpm/@wise+art@2.19.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.18_react-dom@18.3.1_reac_mzw7cg6j4wc7ddwlhxck7linn4/node_modules/@wise/art/dist/index-8Fxev6OI.esm.js
141
141
  import { useState as useState4, useEffect as useEffect3, forwardRef as forwardRef2, Suspense, lazy } from "react";
142
- import { jsx as jsx11, jsxs as jsxs2, Fragment as Fragment3 } from "react/jsx-runtime";
142
+ import { jsx as jsx12, jsxs as jsxs2, Fragment as Fragment3 } from "react/jsx-runtime";
143
143
  var unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
144
144
  var init_index_8Fxev6OI_esm = __esm({
145
145
  "../../node_modules/.pnpm/@wise+art@2.19.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.18_react-dom@18.3.1_reac_mzw7cg6j4wc7ddwlhxck7linn4/node_modules/@wise/art/dist/index-8Fxev6OI.esm.js"() {
@@ -158,7 +158,7 @@ var init_index_8Fxev6OI_esm = __esm({
158
158
  }, [code]);
159
159
  const detailed = intrinsicSize >= 150;
160
160
  const name = fallback !== "unknown" ? `${code.toLowerCase()}${fallback == null && detailed ? "-detailed" : ""}` : unknownFlagName;
161
- return /* @__PURE__ */ jsx11("img", {
161
+ return /* @__PURE__ */ jsx12("img", {
162
162
  className: clsx(`wds-flag wds-flag-${name}`, className),
163
163
  src: false ? `${name}.svg` : `https://wise.com/web-art/assets/flags/${name}.svg`,
164
164
  loading,
@@ -1526,9 +1526,9 @@ var inputComponentToProps = (component, type) => {
1526
1526
  uri: image.uri,
1527
1527
  url: (_d = (_c = image.uri) != null ? _c : image.url) != null ? _d : ""
1528
1528
  } : void 0,
1529
+ title,
1529
1530
  placeholder,
1530
1531
  required,
1531
- title,
1532
1532
  validationState: getValidationState(errors, validationAsyncState),
1533
1533
  value: component.getLocalValue(),
1534
1534
  onBlur: onBlur.bind(component),
@@ -1849,7 +1849,6 @@ var statusListComponentToProps = (component) => pick(component, "type", "control
1849
1849
  // src/revamp/renderers/mappers/textInputComponentToProps.ts
1850
1850
  var textInputComponentToProps = (component) => __spreadProps(__spreadValues({}, inputComponentToProps(component, "input-text")), {
1851
1851
  autoComplete: component.autoComplete,
1852
- autoCapitalize: component == null ? void 0 : component.autocapitalization,
1853
1852
  displayFormat: component.displayFormat,
1854
1853
  maxLength: component.maxLength,
1855
1854
  minLength: component.minLength,
@@ -9187,7 +9186,6 @@ var createTextInputComponent = (textInputProps, updateComponent) => {
9187
9186
  var stringSchemaToTextInputComponent = (schemaMapperProps, mapperProps) => {
9188
9187
  const { schema, localValue, model, required = false } = schemaMapperProps;
9189
9188
  const {
9190
- autocapitalization,
9191
9189
  autocompleteHint,
9192
9190
  control,
9193
9191
  default: defaultValue,
@@ -9213,7 +9211,6 @@ var stringSchemaToTextInputComponent = (schemaMapperProps, mapperProps) => {
9213
9211
  const value = performPersistAsync ? validLocalValue : validModel;
9214
9212
  return createTextInputComponent(
9215
9213
  __spreadProps(__spreadValues({}, mapCommonSchemaProps(schemaMapperProps)), {
9216
- autocapitalization,
9217
9214
  autoComplete: getAutocompleteString(autocompleteHint),
9218
9215
  checks: schema.hidden ? [] : [
9219
9216
  getRequiredCheck(required, errorMessageFunctions),
@@ -12125,6 +12122,14 @@ var useLogger = () => {
12125
12122
  return logging;
12126
12123
  };
12127
12124
 
12125
+ // src/legacy/common/contexts/featureContext/FeatureContext.tsx
12126
+ import { createContext as createContext4, useContext as useContext4 } from "react";
12127
+ import { jsx as jsx10 } from "react/jsx-runtime";
12128
+ var FeatureContext = createContext4([]);
12129
+ function FeatureContextProvider({ features, children }) {
12130
+ return /* @__PURE__ */ jsx10(FeatureContext.Provider, { value: features, children });
12131
+ }
12132
+
12128
12133
  // src/common/cameraCapture/utils/mobile-utils.ts
12129
12134
  var isMobile = () => isMobileScreenSize() && (isTouchScreen() || isMobileUA());
12130
12135
  var isMobileUA = (userAgent = window.navigator.userAgent) => (
@@ -12848,26 +12853,6 @@ var filterHiddenSchemas = (schemas) => schemas.filter((schema) => {
12848
12853
  return (schema == null ? void 0 : schema.hidden) !== true;
12849
12854
  });
12850
12855
 
12851
- // src/common/httpClientContext/HttpClientContext.tsx
12852
- import { createContext as createContext4, useContext as useContext4, useMemo as useMemo7 } from "react";
12853
- import { jsx as jsx10 } from "react/jsx-runtime";
12854
- var HttpClientContext = createContext4(void 0);
12855
- function HttpClientProvider({ httpClient, children }) {
12856
- return /* @__PURE__ */ jsx10(HttpClientContext.Provider, { value: httpClient, children });
12857
- }
12858
- function HttpClientProviderFromBaseUrl({ baseUrl, children }) {
12859
- const httpClient = useMemo7(() => makeHttpClient(baseUrl), [baseUrl]);
12860
- return /* @__PURE__ */ jsx10(HttpClientContext.Provider, { value: httpClient, children });
12861
- }
12862
- var useHttpClient = () => {
12863
- const contextFetch = useContext4(HttpClientContext);
12864
- return contextFetch != null ? contextFetch : fetch;
12865
- };
12866
- var useHasHttpClientProvider = () => {
12867
- const context = useContext4(HttpClientContext);
12868
- return Boolean(context);
12869
- };
12870
-
12871
12856
  // src/legacy/common/hooks/useDebouncedFunction/useDebouncedFunction.tsx
12872
12857
  import { useCallback as useCallback4 } from "react";
12873
12858
  function useDebouncedFunction(callback, waitMs) {
@@ -12892,6 +12877,28 @@ function useExternal(url) {
12892
12877
 
12893
12878
  // src/legacy/common/hooks/useExternalStepPolling/useExternalStepPolling.tsx
12894
12879
  import { useCallback as useCallback5, useMemo as useMemo8 } from "react";
12880
+
12881
+ // src/common/httpClientContext/HttpClientContext.tsx
12882
+ import { createContext as createContext5, useContext as useContext5, useMemo as useMemo7 } from "react";
12883
+ import { jsx as jsx11 } from "react/jsx-runtime";
12884
+ var HttpClientContext = createContext5(void 0);
12885
+ function HttpClientProvider({ httpClient, children }) {
12886
+ return /* @__PURE__ */ jsx11(HttpClientContext.Provider, { value: httpClient, children });
12887
+ }
12888
+ function HttpClientProviderFromBaseUrl({ baseUrl, children }) {
12889
+ const httpClient = useMemo7(() => makeHttpClient(baseUrl), [baseUrl]);
12890
+ return /* @__PURE__ */ jsx11(HttpClientContext.Provider, { value: httpClient, children });
12891
+ }
12892
+ var useHttpClient = () => {
12893
+ const contextFetch = useContext5(HttpClientContext);
12894
+ return contextFetch != null ? contextFetch : fetch;
12895
+ };
12896
+ var useHasHttpClientProvider = () => {
12897
+ const context = useContext5(HttpClientContext);
12898
+ return Boolean(context);
12899
+ };
12900
+
12901
+ // src/legacy/common/hooks/useExternalStepPolling/useExternalStepPolling.tsx
12895
12902
  function useExternalStepPolling(polling, onAction) {
12896
12903
  var _a, _b;
12897
12904
  const httpClient = useHttpClient();
@@ -13017,19 +13024,19 @@ import "react";
13017
13024
  import "react/jsx-runtime";
13018
13025
 
13019
13026
  // src/legacy/layout/icon/FlagIcon.tsx
13020
- import { jsx as jsx12 } from "react/jsx-runtime";
13027
+ import { jsx as jsx13 } from "react/jsx-runtime";
13021
13028
  var isFlagIcon = (name) => name.startsWith("flag-");
13022
13029
  function FlagIcon({ name }) {
13023
13030
  if (!isFlagIcon(name)) {
13024
13031
  return null;
13025
13032
  }
13026
13033
  const code = name.substring(5);
13027
- return /* @__PURE__ */ jsx12(Flag, { intrinsicSize: 24, code });
13034
+ return /* @__PURE__ */ jsx13(Flag, { intrinsicSize: 24, code });
13028
13035
  }
13029
13036
 
13030
13037
  // src/legacy/layout/icon/NamedIcon.tsx
13031
13038
  import * as icons from "@transferwise/icons";
13032
- import { jsx as jsx13 } from "react/jsx-runtime";
13039
+ import { jsx as jsx14 } from "react/jsx-runtime";
13033
13040
  var isNamedIcon = (name) => {
13034
13041
  const iconName = toCapitalisedCamelCase(name);
13035
13042
  return Object.keys(icons).includes(iconName);
@@ -13040,19 +13047,19 @@ function NamedIcon({ name }) {
13040
13047
  }
13041
13048
  const iconName = toCapitalisedCamelCase(name);
13042
13049
  const Icon = icons[iconName];
13043
- return /* @__PURE__ */ jsx13(Icon, { size: 24 });
13050
+ return /* @__PURE__ */ jsx14(Icon, { size: 24 });
13044
13051
  }
13045
13052
  var toCapitalisedCamelCase = (value) => value.split("-").map(capitaliseFirstChar).join("");
13046
13053
  var capitaliseFirstChar = (value) => `${value[0].toUpperCase()}${value.slice(1)}`;
13047
13054
 
13048
13055
  // src/legacy/layout/icon/DynamicIcon.tsx
13049
- import { jsx as jsx14 } from "react/jsx-runtime";
13056
+ import { jsx as jsx15 } from "react/jsx-runtime";
13050
13057
  function DynamicIcon({ type }) {
13051
13058
  if (isFlagIcon(type)) {
13052
- return /* @__PURE__ */ jsx14(FlagIcon, { name: type });
13059
+ return /* @__PURE__ */ jsx15(FlagIcon, { name: type });
13053
13060
  }
13054
13061
  if (isNamedIcon(type)) {
13055
- return /* @__PURE__ */ jsx14(NamedIcon, { name: type });
13062
+ return /* @__PURE__ */ jsx15(NamedIcon, { name: type });
13056
13063
  }
13057
13064
  return null;
13058
13065
  }
@@ -13062,17 +13069,17 @@ function isValidIconName(name) {
13062
13069
  var DynamicIcon_default = DynamicIcon;
13063
13070
 
13064
13071
  // src/legacy/layout/utils/getNavigationOptionMedia.tsx
13065
- import { jsx as jsx15 } from "react/jsx-runtime";
13072
+ import { jsx as jsx16 } from "react/jsx-runtime";
13066
13073
  var getNavigationOptionMedia = ({ icon, image }) => {
13067
13074
  if (icon == null ? void 0 : icon.name) {
13068
- return /* @__PURE__ */ jsx15(Avatar, { type: AvatarType.ICON, children: /* @__PURE__ */ jsx15(DynamicIcon_default, { type: icon.name }) });
13075
+ return /* @__PURE__ */ jsx16(Avatar, { type: AvatarType.ICON, children: /* @__PURE__ */ jsx16(DynamicIcon_default, { type: icon.name }) });
13069
13076
  }
13070
13077
  if (icon == null ? void 0 : icon.text) {
13071
- return /* @__PURE__ */ jsx15(Avatar, { type: AvatarType.INITIALS, children: icon.text });
13078
+ return /* @__PURE__ */ jsx16(Avatar, { type: AvatarType.INITIALS, children: icon.text });
13072
13079
  }
13073
13080
  if (image == null ? void 0 : image.url) {
13074
13081
  const { url, text } = image;
13075
- return /* @__PURE__ */ jsx15("img", { src: url, alt: text });
13082
+ return /* @__PURE__ */ jsx16("img", { src: url, alt: text });
13076
13083
  }
13077
13084
  return null;
13078
13085
  };
@@ -13108,10 +13115,10 @@ var getTextAlignment = (align) => {
13108
13115
  var getTextAlignmentAndMargin = (component) => `${getTextAlignment(component.align)} ${getMargin(component.margin)}`;
13109
13116
 
13110
13117
  // src/legacy/layout/alert/DynamicAlert.tsx
13111
- import { jsx as jsx16 } from "react/jsx-runtime";
13118
+ import { jsx as jsx17 } from "react/jsx-runtime";
13112
13119
  var DynamicAlert = ({ component: alert, onAction }) => {
13113
13120
  const { context, markdown, margin } = alert;
13114
- return /* @__PURE__ */ jsx16(
13121
+ return /* @__PURE__ */ jsx17(
13115
13122
  Alert2,
13116
13123
  {
13117
13124
  type: mapContextToAlertType(legacy_mapContext(context)),
@@ -13195,12 +13202,12 @@ var mapContextToAlertType = (context) => {
13195
13202
  var DynamicAlert_default = DynamicAlert;
13196
13203
 
13197
13204
  // src/legacy/layout/box/DynamicBox.tsx
13198
- import { jsx as jsx17 } from "react/jsx-runtime";
13205
+ import { jsx as jsx18 } from "react/jsx-runtime";
13199
13206
  var DynamicBox = (props) => {
13200
13207
  const box = props.component;
13201
13208
  const margin = getMargin(box.margin || box.border ? "lg" : "xs");
13202
13209
  if (!box.width || box.width === "xl") {
13203
- return /* @__PURE__ */ jsx17("div", { className: margin + getBorderClass(box.border), children: /* @__PURE__ */ jsx17(
13210
+ return /* @__PURE__ */ jsx18("div", { className: margin + getBorderClass(box.border), children: /* @__PURE__ */ jsx18(
13204
13211
  DynamicLayout_default,
13205
13212
  {
13206
13213
  components: box.components,
@@ -13213,7 +13220,7 @@ var DynamicBox = (props) => {
13213
13220
  }
13214
13221
  ) });
13215
13222
  }
13216
- return /* @__PURE__ */ jsx17("div", { className: "row", children: /* @__PURE__ */ jsx17("div", { className: margin + getBoxWidthClasses(box), children: /* @__PURE__ */ jsx17("div", { className: getBorderClass(box.border), children: /* @__PURE__ */ jsx17(
13223
+ return /* @__PURE__ */ jsx18("div", { className: "row", children: /* @__PURE__ */ jsx18("div", { className: margin + getBoxWidthClasses(box), children: /* @__PURE__ */ jsx18("div", { className: getBorderClass(box.border), children: /* @__PURE__ */ jsx18(
13217
13224
  DynamicLayout_default,
13218
13225
  {
13219
13226
  components: box.components,
@@ -13299,9 +13306,9 @@ var getButtonSize = (size) => {
13299
13306
  };
13300
13307
 
13301
13308
  // src/legacy/layout/button/DynamicButton.tsx
13302
- import { jsx as jsx18 } from "react/jsx-runtime";
13309
+ import { jsx as jsx19 } from "react/jsx-runtime";
13303
13310
  function DynamicButton(props) {
13304
- return props.component.behavior ? /* @__PURE__ */ jsx18(DynamicButtonWithBehavior, __spreadValues({}, props)) : /* @__PURE__ */ jsx18(DynamicButtonWithoutBehavior, __spreadValues({}, props));
13311
+ return props.component.behavior ? /* @__PURE__ */ jsx19(DynamicButtonWithBehavior, __spreadValues({}, props)) : /* @__PURE__ */ jsx19(DynamicButtonWithoutBehavior, __spreadValues({}, props));
13305
13312
  }
13306
13313
  function DynamicButtonWithoutBehavior(props) {
13307
13314
  var _a, _b;
@@ -13318,7 +13325,7 @@ function DynamicButtonWithoutBehavior(props) {
13318
13325
  onAction(componentAction);
13319
13326
  }
13320
13327
  };
13321
- return /* @__PURE__ */ jsx18(
13328
+ return /* @__PURE__ */ jsx19(
13322
13329
  Button,
13323
13330
  {
13324
13331
  size: getButtonSize(component.size),
@@ -13370,7 +13377,7 @@ function DynamicButtonWithBehavior(props) {
13370
13377
  }
13371
13378
  }
13372
13379
  };
13373
- return /* @__PURE__ */ jsx18(
13380
+ return /* @__PURE__ */ jsx19(
13374
13381
  Button,
13375
13382
  {
13376
13383
  size: getButtonSize(component.size),
@@ -13387,12 +13394,12 @@ function DynamicButtonWithBehavior(props) {
13387
13394
  var DynamicButton_default = DynamicButton;
13388
13395
 
13389
13396
  // src/legacy/layout/columns/DynamicColumns.tsx
13390
- import { jsx as jsx19, jsxs as jsxs3 } from "react/jsx-runtime";
13397
+ import { jsx as jsx20, jsxs as jsxs3 } from "react/jsx-runtime";
13391
13398
  var DynamicColumns = (props) => {
13392
13399
  const columns = props.component;
13393
13400
  const { leftWidth, rightWidth } = getWidth(columns.bias);
13394
13401
  return /* @__PURE__ */ jsxs3("div", { className: `${getMargin(columns.margin || "xs")} row`, children: [
13395
- /* @__PURE__ */ jsx19("div", { className: `${leftWidth} m-b-0`, children: /* @__PURE__ */ jsx19(
13402
+ /* @__PURE__ */ jsx20("div", { className: `${leftWidth} m-b-0`, children: /* @__PURE__ */ jsx20(
13396
13403
  DynamicLayout_default,
13397
13404
  {
13398
13405
  components: columns.left,
@@ -13404,7 +13411,7 @@ var DynamicColumns = (props) => {
13404
13411
  onPersistAsync: props.onPersistAsync
13405
13412
  }
13406
13413
  ) }),
13407
- /* @__PURE__ */ jsx19("div", { className: `${rightWidth} m-b-0`, children: /* @__PURE__ */ jsx19(
13414
+ /* @__PURE__ */ jsx20("div", { className: `${rightWidth} m-b-0`, children: /* @__PURE__ */ jsx20(
13408
13415
  DynamicLayout_default,
13409
13416
  {
13410
13417
  components: columns.right,
@@ -13440,13 +13447,13 @@ var DynamicColumns_default = DynamicColumns;
13440
13447
 
13441
13448
  // src/legacy/layout/decision/DynamicDecision.tsx
13442
13449
  import { Header, NavigationOption, NavigationOptionsList } from "@transferwise/components";
13443
- import { jsx as jsx20, jsxs as jsxs4 } from "react/jsx-runtime";
13450
+ import { jsx as jsx21, jsxs as jsxs4 } from "react/jsx-runtime";
13444
13451
  function DynamicDecision({ component, onAction }) {
13445
13452
  const { loading } = useDynamicFlow();
13446
13453
  const { margin, options, title } = component;
13447
13454
  return /* @__PURE__ */ jsxs4("div", { className: getMargin(margin), children: [
13448
- title && /* @__PURE__ */ jsx20(Header, { as: "h2", title }),
13449
- /* @__PURE__ */ jsx20(NavigationOptionsList, { children: options.map((option) => /* @__PURE__ */ jsx20(
13455
+ title && /* @__PURE__ */ jsx21(Header, { as: "h2", title }),
13456
+ /* @__PURE__ */ jsx21(NavigationOptionsList, { children: options.map((option) => /* @__PURE__ */ jsx21(
13450
13457
  NavigationOption,
13451
13458
  {
13452
13459
  title: option.title,
@@ -13464,11 +13471,11 @@ function DynamicDecision({ component, onAction }) {
13464
13471
  var DynamicDecision_default = DynamicDecision;
13465
13472
 
13466
13473
  // src/legacy/layout/divider/DynamicDivider.tsx
13467
- import { jsx as jsx21 } from "react/jsx-runtime";
13474
+ import { jsx as jsx22 } from "react/jsx-runtime";
13468
13475
  var DynamicDivider = ({ component }) => {
13469
13476
  const margin = getMargin(component.margin);
13470
13477
  const className = `m-t-0 ${margin}`;
13471
- return /* @__PURE__ */ jsx21("hr", { className });
13478
+ return /* @__PURE__ */ jsx22("hr", { className });
13472
13479
  };
13473
13480
  var DynamicDivider_default = DynamicDivider;
13474
13481
 
@@ -13488,7 +13495,7 @@ var DynamicExternal_messages_default = defineMessages6({
13488
13495
  });
13489
13496
 
13490
13497
  // src/legacy/layout/external/DynamicExternal.tsx
13491
- import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs5 } from "react/jsx-runtime";
13498
+ import { Fragment as Fragment4, jsx as jsx23, jsxs as jsxs5 } from "react/jsx-runtime";
13492
13499
  var DynamicExternal = ({ component, onAction }) => {
13493
13500
  const { requestUrl, responseHandlers, polling, retryTitle } = component;
13494
13501
  const intl = useIntl3();
@@ -13506,9 +13513,9 @@ var DynamicExternal = ({ component, onAction }) => {
13506
13513
  }, [polling, responseHandlers]);
13507
13514
  useExternalStepPolling(pollingConfiguration, onAction);
13508
13515
  return /* @__PURE__ */ jsxs5(Fragment4, { children: [
13509
- /* @__PURE__ */ jsx22(Loader, { size: Size2.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }),
13510
- /* @__PURE__ */ jsx22("br", {}),
13511
- /* @__PURE__ */ jsx22(Button2, { priority: "tertiary", block: true, onClick: openExternalUrl, children: retryTitle || intl.formatMessage(DynamicExternal_messages_default.retryTitle) })
13516
+ /* @__PURE__ */ jsx23(Loader, { size: Size2.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }),
13517
+ /* @__PURE__ */ jsx23("br", {}),
13518
+ /* @__PURE__ */ jsx23(Button2, { priority: "tertiary", block: true, onClick: openExternalUrl, children: retryTitle || intl.formatMessage(DynamicExternal_messages_default.retryTitle) })
13512
13519
  ] });
13513
13520
  };
13514
13521
  var DynamicExternal_default = DynamicExternal;
@@ -13520,7 +13527,7 @@ import { useEffect as useEffect11 } from "react";
13520
13527
  var import_classnames = __toESM(require_classnames());
13521
13528
  import { Header as Header2 } from "@transferwise/components";
13522
13529
  import { useState as useState5 } from "react";
13523
- import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs6 } from "react/jsx-runtime";
13530
+ import { Fragment as Fragment5, jsx as jsx24, jsxs as jsxs6 } from "react/jsx-runtime";
13524
13531
  var splitModel = (model, schemas) => schemas.map((schema) => getValidObjectModelParts(model, schema) || {});
13525
13532
  var combineModels = (models) => models.reduce((current, combined) => __spreadValues(__spreadValues({}, combined), current), {});
13526
13533
  var getSchemaColumnClasses = (width) => ({
@@ -13538,11 +13545,11 @@ function AllOfSchema(props) {
13538
13545
  };
13539
13546
  const [models, setModels] = useState5(splitModel(props.model, props.schema.allOf));
13540
13547
  return /* @__PURE__ */ jsxs6(Fragment5, { children: [
13541
- props.schema.title && !hideTitle && /* @__PURE__ */ jsx23(Header2, { title: props.schema.title }),
13542
- props.schema.description && /* @__PURE__ */ jsx23("p", { children: props.schema.description }),
13543
- /* @__PURE__ */ jsx23("div", { className: "row", children: props.schema.allOf.map((schema, index) => (
13548
+ props.schema.title && !hideTitle && /* @__PURE__ */ jsx24(Header2, { title: props.schema.title }),
13549
+ props.schema.description && /* @__PURE__ */ jsx24("p", { children: props.schema.description }),
13550
+ /* @__PURE__ */ jsx24("div", { className: "row", children: props.schema.allOf.map((schema, index) => (
13544
13551
  // eslint-disable-next-line react/no-array-index-key
13545
- /* @__PURE__ */ jsx23("div", { className: (0, import_classnames.default)(getSchemaColumnClasses(schema.width)), children: /* @__PURE__ */ jsx23(
13552
+ /* @__PURE__ */ jsx24("div", { className: (0, import_classnames.default)(getSchemaColumnClasses(schema.width)), children: /* @__PURE__ */ jsx24(
13546
13553
  GenericSchema_default,
13547
13554
  {
13548
13555
  schema,
@@ -13574,7 +13581,7 @@ import { useMemo as useMemo10, useState as useState6 } from "react";
13574
13581
  import { InlineAlert } from "@transferwise/components";
13575
13582
  import { formatDate as formatDate3 } from "@transferwise/formatting";
13576
13583
  import { useIntl as useIntl4 } from "react-intl";
13577
- import { jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
13584
+ import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
13578
13585
  function ControlFeedback(props) {
13579
13586
  const { errors = "", validations = [], validationMessages = {} } = props;
13580
13587
  const defaultValidationMessages = useDefaultValidationMessages(props.schema);
@@ -13584,11 +13591,11 @@ function ControlFeedback(props) {
13584
13591
  const isDescriptionVisible = props.schema.type !== "boolean" && props.schema.description && !isErrorVisible && !isValidationVisible;
13585
13592
  const hasInfoMessage = Boolean(props.infoMessage);
13586
13593
  return /* @__PURE__ */ jsxs7("div", { id: props.id, children: [
13587
- isErrorVisible ? /* @__PURE__ */ jsx24(InlineAlert, { type: "error", children: errors }) : null,
13588
- isValidationVisible ? /* @__PURE__ */ jsx24(InlineAlert, { type: "error", children: validations.map((validation) => /* @__PURE__ */ jsx24("div", { children: mergedValidationMessages[validation] }, validation)) }) : null,
13594
+ isErrorVisible ? /* @__PURE__ */ jsx25(InlineAlert, { type: "error", children: errors }) : null,
13595
+ isValidationVisible ? /* @__PURE__ */ jsx25(InlineAlert, { type: "error", children: validations.map((validation) => /* @__PURE__ */ jsx25("div", { children: mergedValidationMessages[validation] }, validation)) }) : null,
13589
13596
  (isDescriptionVisible || hasInfoMessage) && /* @__PURE__ */ jsxs7(InlineAlert, { type: "info", children: [
13590
- isDescriptionVisible && /* @__PURE__ */ jsx24("div", { children: props.schema.description }),
13591
- hasInfoMessage && /* @__PURE__ */ jsx24("div", { children: props.infoMessage })
13597
+ isDescriptionVisible && /* @__PURE__ */ jsx25("div", { children: props.schema.description }),
13598
+ hasInfoMessage && /* @__PURE__ */ jsx25("div", { children: props.infoMessage })
13592
13599
  ] })
13593
13600
  ] });
13594
13601
  }
@@ -13708,7 +13715,7 @@ function useFormattedDefaultErrorMessages({
13708
13715
  }
13709
13716
 
13710
13717
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.tsx
13711
- import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
13718
+ import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
13712
13719
  function MultipleFileUploadSchema(props) {
13713
13720
  var _a, _b;
13714
13721
  const { onChange, errors = null, schema, required = false } = props;
@@ -13770,9 +13777,9 @@ function MultipleFileUploadSchema(props) {
13770
13777
  });
13771
13778
  const feedbackId = `${uid}-feedback`;
13772
13779
  return /* @__PURE__ */ jsxs8("div", { className: (0, import_classnames2.default)("form-group", { "has-error": showError }), children: [
13773
- /* @__PURE__ */ jsx25("label", { className: "d-block control-label", htmlFor: uid, children: props.schema.title }),
13774
- /* @__PURE__ */ jsx25("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ jsx25(UploadInput, __spreadValues({}, uploadInputProps)) }),
13775
- /* @__PURE__ */ jsx25(
13780
+ /* @__PURE__ */ jsx26("label", { className: "d-block control-label", htmlFor: uid, children: props.schema.title }),
13781
+ /* @__PURE__ */ jsx26("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ jsx26(UploadInput, __spreadValues({}, uploadInputProps)) }),
13782
+ /* @__PURE__ */ jsx26(
13776
13783
  ControlFeedback_default,
13777
13784
  {
13778
13785
  id: feedbackId,
@@ -13812,7 +13819,7 @@ import { useIntl as useIntl6 } from "react-intl";
13812
13819
 
13813
13820
  // src/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.tsx
13814
13821
  import { Avatar as Avatar2, AvatarType as AvatarType2 } from "@transferwise/components";
13815
- import { jsx as jsx26 } from "react/jsx-runtime";
13822
+ import { jsx as jsx27 } from "react/jsx-runtime";
13816
13823
  var mapConstSchemaToOption = (schema, controlType) => {
13817
13824
  switch (controlType) {
13818
13825
  case "select":
@@ -13836,7 +13843,7 @@ var mapKeywordsToSearchStrings = (searchStrings) => isArray2(searchStrings) ? {
13836
13843
  var mapImage = (image) => {
13837
13844
  if (image == null ? void 0 : image.url) {
13838
13845
  return {
13839
- icon: /* @__PURE__ */ jsx26("div", { className: "media", children: /* @__PURE__ */ jsx26("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ jsx26("img", { src: image.url, alt: image.name || "" }) }) }),
13846
+ icon: /* @__PURE__ */ jsx27("div", { className: "media", children: /* @__PURE__ */ jsx27("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ jsx27("img", { src: image.url, alt: image.name || "" }) }) }),
13840
13847
  hideIconInTrigger: true
13841
13848
  };
13842
13849
  }
@@ -13845,17 +13852,17 @@ var mapImage = (image) => {
13845
13852
  var getIconPropertyForSelectOption = (icon) => {
13846
13853
  if ((icon == null ? void 0 : icon.name) && isFlagIcon(icon.name)) {
13847
13854
  return {
13848
- icon: /* @__PURE__ */ jsx26(Flag, { code: icon.name.substring(5), intrinsicSize: 24 })
13855
+ icon: /* @__PURE__ */ jsx27(Flag, { code: icon.name.substring(5), intrinsicSize: 24 })
13849
13856
  };
13850
13857
  }
13851
13858
  if ((icon == null ? void 0 : icon.name) && isValidIconName(icon.name)) {
13852
13859
  return {
13853
- icon: /* @__PURE__ */ jsx26(DynamicIcon_default, { type: icon.name })
13860
+ icon: /* @__PURE__ */ jsx27(DynamicIcon_default, { type: icon.name })
13854
13861
  };
13855
13862
  }
13856
13863
  if (icon == null ? void 0 : icon.text) {
13857
13864
  return {
13858
- icon: /* @__PURE__ */ jsx26("span", { children: icon.text })
13865
+ icon: /* @__PURE__ */ jsx27("span", { children: icon.text })
13859
13866
  };
13860
13867
  }
13861
13868
  return null;
@@ -13863,17 +13870,17 @@ var getIconPropertyForSelectOption = (icon) => {
13863
13870
  var getAvatarPropertyForRadioOption = ({ image, icon }) => {
13864
13871
  if (image == null ? void 0 : image.url) {
13865
13872
  return {
13866
- avatar: /* @__PURE__ */ jsx26(Avatar2, { type: AvatarType2.THUMBNAIL, children: /* @__PURE__ */ jsx26("img", { src: image.url, alt: "" }) })
13873
+ avatar: /* @__PURE__ */ jsx27(Avatar2, { type: AvatarType2.THUMBNAIL, children: /* @__PURE__ */ jsx27("img", { src: image.url, alt: "" }) })
13867
13874
  };
13868
13875
  }
13869
13876
  if ((icon == null ? void 0 : icon.name) && isValidIconName(icon.name)) {
13870
13877
  return {
13871
- avatar: /* @__PURE__ */ jsx26(Avatar2, { type: AvatarType2.ICON, children: /* @__PURE__ */ jsx26(DynamicIcon_default, { type: icon.name }) })
13878
+ avatar: /* @__PURE__ */ jsx27(Avatar2, { type: AvatarType2.ICON, children: /* @__PURE__ */ jsx27(DynamicIcon_default, { type: icon.name }) })
13872
13879
  };
13873
13880
  }
13874
13881
  if (icon == null ? void 0 : icon.text) {
13875
13882
  return {
13876
- avatar: /* @__PURE__ */ jsx26(Avatar2, { type: AvatarType2.INITIALS, children: icon.text })
13883
+ avatar: /* @__PURE__ */ jsx27(Avatar2, { type: AvatarType2.INITIALS, children: icon.text })
13877
13884
  };
13878
13885
  }
13879
13886
  return null;
@@ -13912,7 +13919,7 @@ var multi_select_messages_default = defineMessages8({
13912
13919
  });
13913
13920
 
13914
13921
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.tsx
13915
- import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
13922
+ import { jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
13916
13923
  function MultiSelectSchema({
13917
13924
  schema,
13918
13925
  model,
@@ -13967,8 +13974,8 @@ function MultiSelectSchema({
13967
13974
  "has-info": !!schema.description
13968
13975
  };
13969
13976
  return /* @__PURE__ */ jsxs9("div", { className: (0, import_classnames3.default)("d-flex flex-column", formGroupClasses), children: [
13970
- schema.title ? /* @__PURE__ */ jsx27("label", { className: "control-label d-inline m-b-1", htmlFor: id, children: schema.title }) : void 0,
13971
- /* @__PURE__ */ jsx27(
13977
+ schema.title ? /* @__PURE__ */ jsx28("label", { className: "control-label d-inline m-b-1", htmlFor: id, children: schema.title }) : void 0,
13978
+ /* @__PURE__ */ jsx28(
13972
13979
  SelectInput,
13973
13980
  {
13974
13981
  id,
@@ -13994,12 +14001,12 @@ function MultiSelectSchema({
13994
14001
  if (withinTrigger) {
13995
14002
  return selected && index === selected[0] ? getFormattedMessage() : void 0;
13996
14003
  }
13997
- return /* @__PURE__ */ jsx27(SelectInputOptionContent, { title: label, note: note != null ? note : secondary, icon });
14004
+ return /* @__PURE__ */ jsx28(SelectInputOptionContent, { title: label, note: note != null ? note : secondary, icon });
13998
14005
  },
13999
14006
  onChange: broadcastModelChange
14000
14007
  }
14001
14008
  ),
14002
- /* @__PURE__ */ jsx27(
14009
+ /* @__PURE__ */ jsx28(
14003
14010
  ControlFeedback_default,
14004
14011
  {
14005
14012
  id: `${id}-feedback`,
@@ -14031,9 +14038,9 @@ import { useIntl as useIntl8 } from "react-intl";
14031
14038
 
14032
14039
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.tsx
14033
14040
  import { NavigationOption as NavigationOption2 } from "@transferwise/components";
14034
- import { jsx as jsx28 } from "react/jsx-runtime";
14041
+ import { jsx as jsx29 } from "react/jsx-runtime";
14035
14042
  function ItemSummaryOption({ item, onClick }) {
14036
- return /* @__PURE__ */ jsx28(
14043
+ return /* @__PURE__ */ jsx29(
14037
14044
  NavigationOption2,
14038
14045
  {
14039
14046
  media: getNavigationOptionMedia(item),
@@ -14073,7 +14080,7 @@ var repeatable_messages_default = defineMessages9({
14073
14080
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.tsx
14074
14081
  import { useState as useState8 } from "react";
14075
14082
  import { useIntl as useIntl7 } from "react-intl";
14076
- import { jsx as jsx29 } from "react/jsx-runtime";
14083
+ import { jsx as jsx30 } from "react/jsx-runtime";
14077
14084
  function RepeatableSchemaStep({
14078
14085
  type,
14079
14086
  schema,
@@ -14121,7 +14128,7 @@ function RepeatableSchemaStep({
14121
14128
  }
14122
14129
  onModelChange(__spreadProps(__spreadValues({}, modelChangeProps), { model: model2 }));
14123
14130
  };
14124
- return /* @__PURE__ */ jsx29(
14131
+ return /* @__PURE__ */ jsx30(
14125
14132
  DynamicFlowStep,
14126
14133
  {
14127
14134
  step,
@@ -14327,7 +14334,7 @@ var schemaSummaryProvides = (summary, providesProp) => (
14327
14334
 
14328
14335
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.tsx
14329
14336
  var import_classnames4 = __toESM(require_classnames());
14330
- import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
14337
+ import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
14331
14338
  function RepeatableSchema({
14332
14339
  schema,
14333
14340
  model,
@@ -14405,8 +14412,8 @@ function RepeatableSchema({
14405
14412
  "has-error": (_a = errors && !isEmpty(errors)) != null ? _a : submitted && validations.length
14406
14413
  };
14407
14414
  return /* @__PURE__ */ jsxs10("div", { id, className: (0, import_classnames4.default)(formGroupClasses), children: [
14408
- schema.title && /* @__PURE__ */ jsx30(Header3, { title: schema.title }),
14409
- itemSummaries == null ? void 0 : itemSummaries.map((itemSummary) => /* @__PURE__ */ jsx30(
14415
+ schema.title && /* @__PURE__ */ jsx31(Header3, { title: schema.title }),
14416
+ itemSummaries == null ? void 0 : itemSummaries.map((itemSummary) => /* @__PURE__ */ jsx31(
14410
14417
  ItemSummaryOption,
14411
14418
  {
14412
14419
  item: itemSummary,
@@ -14414,21 +14421,21 @@ function RepeatableSchema({
14414
14421
  },
14415
14422
  JSON.stringify(itemSummary)
14416
14423
  )),
14417
- /* @__PURE__ */ jsx30(
14424
+ /* @__PURE__ */ jsx31(
14418
14425
  NavigationOption3,
14419
14426
  {
14420
- media: /* @__PURE__ */ jsx30(Plus, {}),
14427
+ media: /* @__PURE__ */ jsx31(Plus, {}),
14421
14428
  title: schema.addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
14422
14429
  showMediaAtAllSizes: true,
14423
14430
  onClick: onAddItem
14424
14431
  }
14425
14432
  ),
14426
- /* @__PURE__ */ jsx30(
14433
+ /* @__PURE__ */ jsx31(
14427
14434
  Modal,
14428
14435
  {
14429
14436
  open: openModalType !== null,
14430
14437
  title: (openModalType === "add" ? schema.addItemTitle : schema.editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
14431
- body: /* @__PURE__ */ jsx30(
14438
+ body: /* @__PURE__ */ jsx31(
14432
14439
  RepeatableSchemaStep_default,
14433
14440
  {
14434
14441
  type: openModalType != null ? openModalType : "add",
@@ -14443,7 +14450,7 @@ function RepeatableSchema({
14443
14450
  onClose: onCancelEdit
14444
14451
  }
14445
14452
  ),
14446
- /* @__PURE__ */ jsx30(
14453
+ /* @__PURE__ */ jsx31(
14447
14454
  ControlFeedback_default,
14448
14455
  {
14449
14456
  id: `${id}-feedback`,
@@ -14485,28 +14492,28 @@ var getUpdatedItemSummaries = (action, {
14485
14492
  var RepeatableSchema_default = RepeatableSchema;
14486
14493
 
14487
14494
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.tsx
14488
- import { jsx as jsx31 } from "react/jsx-runtime";
14495
+ import { jsx as jsx32 } from "react/jsx-runtime";
14489
14496
  function ArrayListSchema(props) {
14490
14497
  const { errors = null, schema } = props;
14491
14498
  if (isMultipleFileUploadSchema(schema)) {
14492
- return /* @__PURE__ */ jsx31(MultipleFileUploadSchema_default, __spreadProps(__spreadValues({}, props), { errors, schema }));
14499
+ return /* @__PURE__ */ jsx32(MultipleFileUploadSchema_default, __spreadProps(__spreadValues({}, props), { errors, schema }));
14493
14500
  }
14494
14501
  if (isMultiSelectConstSchema(schema)) {
14495
- return /* @__PURE__ */ jsx31(MultiSelectSchema, __spreadProps(__spreadValues({}, props), { errors, schema }));
14502
+ return /* @__PURE__ */ jsx32(MultiSelectSchema, __spreadProps(__spreadValues({}, props), { errors, schema }));
14496
14503
  }
14497
14504
  if (isListArraySchema(schema)) {
14498
- return /* @__PURE__ */ jsx31(RepeatableSchema_default, __spreadProps(__spreadValues({}, props), { errors, schema }));
14505
+ return /* @__PURE__ */ jsx32(RepeatableSchema_default, __spreadProps(__spreadValues({}, props), { errors, schema }));
14499
14506
  }
14500
14507
  throw new Error("Invalid array list schema");
14501
14508
  }
14502
14509
  var ArrayListSchema_default = ArrayListSchema;
14503
14510
 
14504
14511
  // src/legacy/jsonSchemaForm/arrayTypeSchema/ArraySchema.tsx
14505
- import { jsx as jsx32 } from "react/jsx-runtime";
14512
+ import { jsx as jsx33 } from "react/jsx-runtime";
14506
14513
  var ArraySchema = (props) => {
14507
14514
  const { schema } = props;
14508
14515
  if (isListArraySchema(schema)) {
14509
- return /* @__PURE__ */ jsx32(ArrayListSchema_default, __spreadValues({}, props));
14516
+ return /* @__PURE__ */ jsx33(ArrayListSchema_default, __spreadValues({}, props));
14510
14517
  }
14511
14518
  throw new Error("Not implemented");
14512
14519
  };
@@ -14516,7 +14523,7 @@ var ArraySchema_default = ArraySchema;
14516
14523
  var import_classnames5 = __toESM(require_classnames());
14517
14524
  import { Header as Header4 } from "@transferwise/components";
14518
14525
  import { useState as useState10, useEffect as useEffect6 } from "react";
14519
- import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
14526
+ import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
14520
14527
  var getSchemaColumnClasses2 = (width) => ({
14521
14528
  "col-xs-12": true,
14522
14529
  "col-sm-6": width === "md",
@@ -14554,21 +14561,21 @@ function ObjectSchema(props) {
14554
14561
  const orderedPropertyNames = Array.from(allorderedPropertiesSet).filter(isPropertyDefined);
14555
14562
  const propsErrors = props.errors;
14556
14563
  return /* @__PURE__ */ jsxs11(Fragment6, { children: [
14557
- props.schema.alert && /* @__PURE__ */ jsx33(DynamicAlert_default, { component: props.schema.alert }),
14564
+ props.schema.alert && /* @__PURE__ */ jsx34(DynamicAlert_default, { component: props.schema.alert }),
14558
14565
  /* @__PURE__ */ jsxs11("fieldset", { children: [
14559
- props.schema.title && !hideTitle && /* @__PURE__ */ jsx33(Header4, { title: props.schema.title, as: "legend" }),
14566
+ props.schema.title && !hideTitle && /* @__PURE__ */ jsx34(Header4, { title: props.schema.title, as: "legend" }),
14560
14567
  props.schema.description && !hideTitle && /* @__PURE__ */ jsxs11("p", { children: [
14561
14568
  " ",
14562
14569
  props.schema.description,
14563
14570
  " "
14564
14571
  ] }),
14565
- /* @__PURE__ */ jsx33("div", { className: "row", children: orderedPropertyNames.map((propertyName) => /* @__PURE__ */ jsx33(
14572
+ /* @__PURE__ */ jsx34("div", { className: "row", children: orderedPropertyNames.map((propertyName) => /* @__PURE__ */ jsx34(
14566
14573
  "div",
14567
14574
  {
14568
14575
  className: (0, import_classnames5.default)(
14569
14576
  getSchemaColumnClasses2(props.schema.properties[propertyName].width)
14570
14577
  ),
14571
- children: /* @__PURE__ */ jsx33(
14578
+ children: /* @__PURE__ */ jsx34(
14572
14579
  GenericSchema_default,
14573
14580
  {
14574
14581
  schema: props.schema.properties[propertyName],
@@ -14609,14 +14616,14 @@ var help_messages_default = defineMessages10({
14609
14616
  });
14610
14617
 
14611
14618
  // src/legacy/jsonSchemaForm/help/Help.tsx
14612
- import { jsx as jsx34 } from "react/jsx-runtime";
14619
+ import { jsx as jsx35 } from "react/jsx-runtime";
14613
14620
  function Help(props) {
14614
14621
  const intl = useIntl9();
14615
- return /* @__PURE__ */ jsx34(
14622
+ return /* @__PURE__ */ jsx35(
14616
14623
  Info,
14617
14624
  {
14618
14625
  className: "m-l-1",
14619
- content: /* @__PURE__ */ jsx34(Markdown, { config: { link: { target: "_blank" } }, children: props.help.markdown }),
14626
+ content: /* @__PURE__ */ jsx35(Markdown, { config: { link: { target: "_blank" } }, children: props.help.markdown }),
14620
14627
  presentation: "POPOVER",
14621
14628
  size: "sm",
14622
14629
  "aria-label": intl.formatMessage(help_messages_default.helpAria)
@@ -14829,7 +14836,7 @@ var autocompleteTokenMap2 = {
14829
14836
  };
14830
14837
 
14831
14838
  // src/legacy/formControl/FormControl.tsx
14832
- import { Fragment as Fragment7, jsx as jsx35 } from "react/jsx-runtime";
14839
+ import { Fragment as Fragment7, jsx as jsx36 } from "react/jsx-runtime";
14833
14840
  var _FormControl = class _FormControl extends PureComponent {
14834
14841
  constructor(props) {
14835
14842
  super(props);
@@ -14919,7 +14926,7 @@ var _FormControl = class _FormControl extends PureComponent {
14919
14926
  } = this.props;
14920
14927
  switch (type) {
14921
14928
  case FormControlType.RADIO:
14922
- return /* @__PURE__ */ jsx35(
14929
+ return /* @__PURE__ */ jsx36(
14923
14930
  RadioGroup,
14924
14931
  {
14925
14932
  radios: options.map(this.mapOption),
@@ -14935,7 +14942,7 @@ var _FormControl = class _FormControl extends PureComponent {
14935
14942
  }
14936
14943
  );
14937
14944
  case FormControlType.CHECKBOX:
14938
- return /* @__PURE__ */ jsx35(
14945
+ return /* @__PURE__ */ jsx36(
14939
14946
  Checkbox,
14940
14947
  {
14941
14948
  checked: getSafeBooleanValue(value, { coerceValue: true }),
@@ -14953,7 +14960,7 @@ var _FormControl = class _FormControl extends PureComponent {
14953
14960
  const search = options.length >= 8;
14954
14961
  const items = options;
14955
14962
  const selected = this.getSelectedOption(options);
14956
- return /* @__PURE__ */ jsx35("div", { className: "d-flex flex-column", children: /* @__PURE__ */ jsx35(
14963
+ return /* @__PURE__ */ jsx36("div", { className: "d-flex flex-column", children: /* @__PURE__ */ jsx36(
14957
14964
  SelectInput2,
14958
14965
  {
14959
14966
  id,
@@ -14969,7 +14976,7 @@ var _FormControl = class _FormControl extends PureComponent {
14969
14976
  disabled: value2.disabled
14970
14977
  })),
14971
14978
  value: selected != null ? selected : null,
14972
- renderValue: ({ hideIconInTrigger, icon, label: label2, note, secondary }, withinTrigger) => /* @__PURE__ */ jsx35(
14979
+ renderValue: ({ hideIconInTrigger, icon, label: label2, note, secondary }, withinTrigger) => /* @__PURE__ */ jsx36(
14973
14980
  SelectInputOptionContent2,
14974
14981
  {
14975
14982
  title: label2,
@@ -14998,13 +15005,13 @@ var _FormControl = class _FormControl extends PureComponent {
14998
15005
  ) });
14999
15006
  }
15000
15007
  case FormControlType.TAB:
15001
- return /* @__PURE__ */ jsx35(
15008
+ return /* @__PURE__ */ jsx36(
15002
15009
  Tabs,
15003
15010
  {
15004
15011
  selected: ((_a = this.getSelectedOption(options)) == null ? void 0 : _a.value) || 0,
15005
15012
  tabs: options.map((option) => ({
15006
15013
  title: option.label,
15007
- content: /* @__PURE__ */ jsx35(Fragment7, {}),
15014
+ content: /* @__PURE__ */ jsx36(Fragment7, {}),
15008
15015
  disabled: option.disabled || false
15009
15016
  })),
15010
15017
  name: id,
@@ -15019,7 +15026,7 @@ var _FormControl = class _FormControl extends PureComponent {
15019
15026
  );
15020
15027
  case FormControlType.NUMERIC:
15021
15028
  case FormControlType.NUMBER: {
15022
- return /* @__PURE__ */ jsx35(
15029
+ return /* @__PURE__ */ jsx36(
15023
15030
  "input",
15024
15031
  {
15025
15032
  autoComplete: this.getAutocompleteValue(),
@@ -15053,7 +15060,7 @@ var _FormControl = class _FormControl extends PureComponent {
15053
15060
  );
15054
15061
  }
15055
15062
  case FormControlType.HIDDEN:
15056
- return /* @__PURE__ */ jsx35(
15063
+ return /* @__PURE__ */ jsx36(
15057
15064
  "input",
15058
15065
  {
15059
15066
  type: "hidden",
@@ -15063,7 +15070,7 @@ var _FormControl = class _FormControl extends PureComponent {
15063
15070
  }
15064
15071
  );
15065
15072
  case FormControlType.PASSWORD:
15066
- return /* @__PURE__ */ jsx35(
15073
+ return /* @__PURE__ */ jsx36(
15067
15074
  "input",
15068
15075
  {
15069
15076
  autoComplete: this.getAutocompleteValue(),
@@ -15083,7 +15090,7 @@ var _FormControl = class _FormControl extends PureComponent {
15083
15090
  );
15084
15091
  case FormControlType.DATE:
15085
15092
  case FormControlType.DATETIME:
15086
- return /* @__PURE__ */ jsx35(
15093
+ return /* @__PURE__ */ jsx36(
15087
15094
  DateInput,
15088
15095
  {
15089
15096
  "aria-labelledby": labelledBy,
@@ -15100,7 +15107,7 @@ var _FormControl = class _FormControl extends PureComponent {
15100
15107
  }
15101
15108
  );
15102
15109
  case FormControlType.DATELOOKUP: {
15103
- return /* @__PURE__ */ jsx35(
15110
+ return /* @__PURE__ */ jsx36(
15104
15111
  DateLookup,
15105
15112
  {
15106
15113
  value: getSafeDateStringValue(value),
@@ -15118,7 +15125,7 @@ var _FormControl = class _FormControl extends PureComponent {
15118
15125
  );
15119
15126
  }
15120
15127
  case FormControlType.TEL:
15121
- return /* @__PURE__ */ jsx35(
15128
+ return /* @__PURE__ */ jsx36(
15122
15129
  PhoneNumberInput,
15123
15130
  {
15124
15131
  disabled,
@@ -15150,7 +15157,7 @@ var _FormControl = class _FormControl extends PureComponent {
15150
15157
  autoComplete: this.getAutocompleteValue()
15151
15158
  };
15152
15159
  if (this.props.displayPattern) {
15153
- return /* @__PURE__ */ jsx35(
15160
+ return /* @__PURE__ */ jsx36(
15154
15161
  TextareaWithDisplayFormat,
15155
15162
  __spreadProps(__spreadValues({
15156
15163
  displayPattern: this.props.displayPattern
@@ -15159,7 +15166,7 @@ var _FormControl = class _FormControl extends PureComponent {
15159
15166
  })
15160
15167
  );
15161
15168
  }
15162
- return /* @__PURE__ */ jsx35(
15169
+ return /* @__PURE__ */ jsx36(
15163
15170
  "textarea",
15164
15171
  __spreadProps(__spreadValues({}, textareaProps), {
15165
15172
  "aria-describedby": describedBy,
@@ -15169,7 +15176,7 @@ var _FormControl = class _FormControl extends PureComponent {
15169
15176
  }
15170
15177
  case FormControlType.FILE:
15171
15178
  case FormControlType.UPLOAD: {
15172
- return /* @__PURE__ */ jsx35(
15179
+ return /* @__PURE__ */ jsx36(
15173
15180
  Upload,
15174
15181
  __spreadProps(__spreadValues({}, uploadProps), {
15175
15182
  usAccept: uploadProps.usAccept || "*",
@@ -15206,7 +15213,7 @@ var _FormControl = class _FormControl extends PureComponent {
15206
15213
  autoComplete: this.getAutocompleteValue()
15207
15214
  };
15208
15215
  if (this.props.displayPattern) {
15209
- return /* @__PURE__ */ jsx35(
15216
+ return /* @__PURE__ */ jsx36(
15210
15217
  InputWithDisplayFormat,
15211
15218
  __spreadProps(__spreadValues({
15212
15219
  displayPattern: this.props.displayPattern
@@ -15215,7 +15222,7 @@ var _FormControl = class _FormControl extends PureComponent {
15215
15222
  })
15216
15223
  );
15217
15224
  }
15218
- return /* @__PURE__ */ jsx35(
15225
+ return /* @__PURE__ */ jsx36(
15219
15226
  "input",
15220
15227
  __spreadProps(__spreadValues({}, inputProps), {
15221
15228
  "aria-describedby": describedBy,
@@ -15265,7 +15272,7 @@ _FormControl.defaultProps = {
15265
15272
  var FormControl = _FormControl;
15266
15273
 
15267
15274
  // src/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.tsx
15268
- import { jsx as jsx36 } from "react/jsx-runtime";
15275
+ import { jsx as jsx37 } from "react/jsx-runtime";
15269
15276
  var isNativeInput = (propsSchemaType) => propsSchemaType === "string" || propsSchemaType === "number";
15270
15277
  var getControlType = (schema) => {
15271
15278
  if (isOneOfSchema2(schema)) {
@@ -15382,7 +15389,7 @@ function SchemaFormControl(props) {
15382
15389
  labelledBy,
15383
15390
  required
15384
15391
  };
15385
- return /* @__PURE__ */ jsx36("div", { "aria-describedby": describedBy, children: /* @__PURE__ */ jsx36(FormControl, __spreadValues(__spreadValues({ type: controlType, value: safeValue }, events), controlProps)) });
15392
+ return /* @__PURE__ */ jsx37("div", { "aria-describedby": describedBy, children: /* @__PURE__ */ jsx37(FormControl, __spreadValues(__spreadValues({ type: controlType, value: safeValue }, events), controlProps)) });
15386
15393
  }
15387
15394
  var warnIfInvalidSchema = (schema, log, controlType) => {
15388
15395
  if (isOneOfSchema2(schema) && schema.oneOf.length === 2 && !schema.control) {
@@ -15404,7 +15411,7 @@ var warnIfInvalidSchema = (schema, log, controlType) => {
15404
15411
  var SchemaFormControl_default = SchemaFormControl;
15405
15412
 
15406
15413
  // src/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.tsx
15407
- import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs12 } from "react/jsx-runtime";
15414
+ import { Fragment as Fragment8, jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
15408
15415
  function OneOfSchema(props) {
15409
15416
  const onEvent = useEventDispatcher();
15410
15417
  const [changed, setChanged] = useState11(false);
@@ -15485,10 +15492,10 @@ function OneOfSchema(props) {
15485
15492
  const labelId = `${id}-label`;
15486
15493
  return !isHidden ? /* @__PURE__ */ jsxs12(Fragment8, { children: [
15487
15494
  (props.schema.oneOf.length > 1 || isConstSchema2(props.schema.oneOf[0])) && /* @__PURE__ */ jsxs12(Fragment8, { children: [
15488
- props.schema.alert && /* @__PURE__ */ jsx37(DynamicAlert_default, { component: props.schema.alert }),
15495
+ props.schema.alert && /* @__PURE__ */ jsx38(DynamicAlert_default, { component: props.schema.alert }),
15489
15496
  /* @__PURE__ */ jsxs12("div", { className: (0, import_classnames6.default)(formGroupClasses), children: [
15490
15497
  getTitleAndHelp(props.schema, id, labelId),
15491
- /* @__PURE__ */ jsx37(
15498
+ /* @__PURE__ */ jsx38(
15492
15499
  SchemaFormControl_default,
15493
15500
  {
15494
15501
  id,
@@ -15505,7 +15512,7 @@ function OneOfSchema(props) {
15505
15512
  onSearchChange
15506
15513
  }
15507
15514
  ),
15508
- /* @__PURE__ */ jsx37(
15515
+ /* @__PURE__ */ jsx38(
15509
15516
  ControlFeedback_default,
15510
15517
  {
15511
15518
  id: feedbackId,
@@ -15521,7 +15528,7 @@ function OneOfSchema(props) {
15521
15528
  )
15522
15529
  ] })
15523
15530
  ] }),
15524
- isNoNConstSchema(props.schema.oneOf[schemaIndex]) && /* @__PURE__ */ jsx37(
15531
+ isNoNConstSchema(props.schema.oneOf[schemaIndex]) && /* @__PURE__ */ jsx38(
15525
15532
  GenericSchema_default,
15526
15533
  {
15527
15534
  schema: props.schema.oneOf[schemaIndex],
@@ -15538,16 +15545,16 @@ function OneOfSchema(props) {
15538
15545
  }
15539
15546
  function getTitleAndHelp(schema, forId, labelId) {
15540
15547
  var _a;
15541
- const helpElement = schema.help ? /* @__PURE__ */ jsx37(Help_default, { help: schema.help }) : null;
15542
- const titleElement = isConstSchema2(schema.oneOf[0]) ? /* @__PURE__ */ jsx37("div", { className: "m-b-1", children: /* @__PURE__ */ jsxs12("label", { className: "control-label d-inline", id: labelId, htmlFor: forId, children: [
15548
+ const helpElement = schema.help ? /* @__PURE__ */ jsx38(Help_default, { help: schema.help }) : null;
15549
+ const titleElement = isConstSchema2(schema.oneOf[0]) ? /* @__PURE__ */ jsx38("div", { className: "m-b-1", children: /* @__PURE__ */ jsxs12("label", { className: "control-label d-inline", id: labelId, htmlFor: forId, children: [
15543
15550
  schema.title,
15544
15551
  " ",
15545
15552
  helpElement
15546
- ] }) }) : /* @__PURE__ */ jsx37(Fragment8, { children: helpElement ? /* @__PURE__ */ jsxs12("h4", { className: "m-b-2", children: [
15553
+ ] }) }) : /* @__PURE__ */ jsx38(Fragment8, { children: helpElement ? /* @__PURE__ */ jsxs12("h4", { className: "m-b-2", children: [
15547
15554
  schema.title,
15548
15555
  " ",
15549
15556
  helpElement
15550
- ] }) : /* @__PURE__ */ jsx37(Header5, { title: (_a = schema.title) != null ? _a : "" }) });
15557
+ ] }) : /* @__PURE__ */ jsx38(Header5, { title: (_a = schema.title) != null ? _a : "" }) });
15551
15558
  return schema.title ? titleElement : helpElement;
15552
15559
  }
15553
15560
  function getValidations(props, schemaIndex) {
@@ -15587,7 +15594,7 @@ import { useIntl as useIntl11 } from "react-intl";
15587
15594
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.tsx
15588
15595
  import { Status as Status2, UploadInput as UploadInput2 } from "@transferwise/components";
15589
15596
  import { useMemo as useMemo14 } from "react";
15590
- import { jsx as jsx38 } from "react/jsx-runtime";
15597
+ import { jsx as jsx39 } from "react/jsx-runtime";
15591
15598
  function UploadInputAdapter(props) {
15592
15599
  const {
15593
15600
  id,
@@ -15622,7 +15629,7 @@ function UploadInputAdapter(props) {
15622
15629
  return Promise.reject();
15623
15630
  });
15624
15631
  };
15625
- return /* @__PURE__ */ jsx38(
15632
+ return /* @__PURE__ */ jsx39(
15626
15633
  UploadInput2,
15627
15634
  {
15628
15635
  id,
@@ -15642,7 +15649,7 @@ function UploadInputAdapter(props) {
15642
15649
  }
15643
15650
 
15644
15651
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.tsx
15645
- import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
15652
+ import { jsx as jsx40, jsxs as jsxs13 } from "react/jsx-runtime";
15646
15653
  function PersistAsyncBlobSchema(props) {
15647
15654
  const { model, schema, submitted, required = false, errors, onChange } = props;
15648
15655
  const [persistAsyncValidationMessages, setPersistAsyncValidationMessages] = useState12({});
@@ -15691,7 +15698,7 @@ function PersistAsyncBlobSchema(props) {
15691
15698
  const id = schema.$id || schema.persistAsync.schema.$id || schema.persistAsync.idProperty;
15692
15699
  const feedbackId = `${id}-feedback`;
15693
15700
  return /* @__PURE__ */ jsxs13("div", { className: (0, import_classnames7.default)(formGroupClasses), children: [
15694
- /* @__PURE__ */ jsx39("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ jsx39(
15701
+ /* @__PURE__ */ jsx40("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ jsx40(
15695
15702
  UploadInputAdapter,
15696
15703
  __spreadValues({
15697
15704
  id,
@@ -15709,7 +15716,7 @@ function PersistAsyncBlobSchema(props) {
15709
15716
  onCancel
15710
15717
  }, mapSchemaToUploadOptions(schema.persistAsync.schema))
15711
15718
  ) }),
15712
- /* @__PURE__ */ jsx39(
15719
+ /* @__PURE__ */ jsx40(
15713
15720
  ControlFeedback_default,
15714
15721
  {
15715
15722
  id: feedbackId,
@@ -15735,17 +15742,17 @@ var getResponseJsonObject = async (response) => {
15735
15742
  var PersistAsyncBlobSchema_default = PersistAsyncBlobSchema;
15736
15743
 
15737
15744
  // src/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.tsx
15738
- import { jsx as jsx40 } from "react/jsx-runtime";
15745
+ import { jsx as jsx41 } from "react/jsx-runtime";
15739
15746
  function PersistAsyncSchema(props) {
15740
15747
  const { schema } = props;
15741
15748
  const persistAsyncSchemaType = schema.persistAsync.schema.type;
15742
15749
  if (persistAsyncSchemaType === "blob") {
15743
- return /* @__PURE__ */ jsx40(
15750
+ return /* @__PURE__ */ jsx41(
15744
15751
  PersistAsyncBlobSchema_default,
15745
15752
  __spreadValues({}, props)
15746
15753
  );
15747
15754
  }
15748
- return /* @__PURE__ */ jsx40(PersistAsyncBasicSchema_default, __spreadValues({}, props));
15755
+ return /* @__PURE__ */ jsx41(PersistAsyncBasicSchema_default, __spreadValues({}, props));
15749
15756
  }
15750
15757
  var PersistAsyncSchema_default = PersistAsyncSchema;
15751
15758
 
@@ -15763,7 +15770,7 @@ var getSelectionFromModel = (schema, model) => {
15763
15770
 
15764
15771
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.tsx
15765
15772
  import { Checkbox as Checkbox2 } from "@transferwise/components";
15766
- import { jsx as jsx41 } from "react/jsx-runtime";
15773
+ import { jsx as jsx42 } from "react/jsx-runtime";
15767
15774
  var PromotedOneOfCheckboxControl = (props) => {
15768
15775
  const { id, selection, setSelection } = props;
15769
15776
  const { promoted, other, checkedMeans } = props.promotion;
@@ -15774,13 +15781,13 @@ var PromotedOneOfCheckboxControl = (props) => {
15774
15781
  const toggleSelection = () => {
15775
15782
  setSelection(checked ? selectionWhenUnchecked : selectionWhenChecked);
15776
15783
  };
15777
- return /* @__PURE__ */ jsx41("div", { className: "form-group", children: /* @__PURE__ */ jsx41(Checkbox2, { id, label: title, checked, onChange: toggleSelection }) });
15784
+ return /* @__PURE__ */ jsx42("div", { className: "form-group", children: /* @__PURE__ */ jsx42(Checkbox2, { id, label: title, checked, onChange: toggleSelection }) });
15778
15785
  };
15779
15786
  var PromotedOneOfCheckboxControl_default = PromotedOneOfCheckboxControl;
15780
15787
 
15781
15788
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.tsx
15782
15789
  import { RadioGroup as RadioGroup2 } from "@transferwise/components";
15783
- import { jsx as jsx42, jsxs as jsxs14 } from "react/jsx-runtime";
15790
+ import { jsx as jsx43, jsxs as jsxs14 } from "react/jsx-runtime";
15784
15791
  function PromotedOneOfRadioControl(props) {
15785
15792
  var _a, _b;
15786
15793
  const { id, selection, setSelection, promotion, promotedOneOf, title } = props;
@@ -15798,8 +15805,8 @@ function PromotedOneOfRadioControl(props) {
15798
15805
  }, getAvatarPropertyForRadioOption(promotion.other))
15799
15806
  ];
15800
15807
  return /* @__PURE__ */ jsxs14("div", { className: "form-group", children: [
15801
- title && /* @__PURE__ */ jsx42("label", { className: "control-label", htmlFor: id, children: title }),
15802
- /* @__PURE__ */ jsx42(
15808
+ title && /* @__PURE__ */ jsx43("label", { className: "control-label", htmlFor: id, children: title }),
15809
+ /* @__PURE__ */ jsx43(
15803
15810
  RadioGroup2,
15804
15811
  {
15805
15812
  name: "promoted-selection",
@@ -15817,16 +15824,16 @@ PromotedOneOfRadioControl.defaultProps = {
15817
15824
  var PromotedOneOfRadioControl_default = PromotedOneOfRadioControl;
15818
15825
 
15819
15826
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.tsx
15820
- import { Fragment as Fragment9, jsx as jsx43 } from "react/jsx-runtime";
15827
+ import { Fragment as Fragment9, jsx as jsx44 } from "react/jsx-runtime";
15821
15828
  function PromotedOneOfControl(props) {
15822
15829
  const controlType = props.promotion.control || "radio";
15823
15830
  switch (controlType) {
15824
15831
  case "radio":
15825
- return /* @__PURE__ */ jsx43(PromotedOneOfRadioControl_default, __spreadValues({}, props));
15832
+ return /* @__PURE__ */ jsx44(PromotedOneOfRadioControl_default, __spreadValues({}, props));
15826
15833
  case "checkbox":
15827
- return /* @__PURE__ */ jsx43(PromotedOneOfCheckboxControl_default, __spreadValues({}, props));
15834
+ return /* @__PURE__ */ jsx44(PromotedOneOfCheckboxControl_default, __spreadValues({}, props));
15828
15835
  default:
15829
- return /* @__PURE__ */ jsx43(Fragment9, {});
15836
+ return /* @__PURE__ */ jsx44(Fragment9, {});
15830
15837
  }
15831
15838
  }
15832
15839
  PromotedOneOfControl.defaultProps = {
@@ -15836,7 +15843,7 @@ PromotedOneOfControl.defaultProps = {
15836
15843
  var PromotedOneOfControl_default = PromotedOneOfControl;
15837
15844
 
15838
15845
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.tsx
15839
- import { Fragment as Fragment10, jsx as jsx44, jsxs as jsxs15 } from "react/jsx-runtime";
15846
+ import { Fragment as Fragment10, jsx as jsx45, jsxs as jsxs15 } from "react/jsx-runtime";
15840
15847
  var isPromoted = (schema) => schema.promoted === true;
15841
15848
  var PromotedOneOfSchema = (props) => {
15842
15849
  var _a;
@@ -15848,8 +15855,8 @@ var PromotedOneOfSchema = (props) => {
15848
15855
  const promotedObjectSchema = getPromotedObjectSchema(promotedOneOf);
15849
15856
  const otherOneOf = getOtherOneOf(props.schema);
15850
15857
  return /* @__PURE__ */ jsxs15(Fragment10, { children: [
15851
- promotedAlert && /* @__PURE__ */ jsx44(DynamicAlert_default, { component: promotedAlert }),
15852
- /* @__PURE__ */ jsx44(
15858
+ promotedAlert && /* @__PURE__ */ jsx45(DynamicAlert_default, { component: promotedAlert }),
15859
+ /* @__PURE__ */ jsx45(
15853
15860
  PromotedOneOfControl_default,
15854
15861
  {
15855
15862
  id: props.schema.$id,
@@ -15860,8 +15867,8 @@ var PromotedOneOfSchema = (props) => {
15860
15867
  setSelection
15861
15868
  }
15862
15869
  ),
15863
- selection === "promoted" && /* @__PURE__ */ jsx44(ObjectSchema_default, __spreadProps(__spreadValues({}, props), { schema: promotedObjectSchema })),
15864
- selection === "other" && /* @__PURE__ */ jsx44(GenericSchema_default, __spreadProps(__spreadValues({}, props), { schema: otherOneOf }))
15870
+ selection === "promoted" && /* @__PURE__ */ jsx45(ObjectSchema_default, __spreadProps(__spreadValues({}, props), { schema: promotedObjectSchema })),
15871
+ selection === "other" && /* @__PURE__ */ jsx45(GenericSchema_default, __spreadProps(__spreadValues({}, props), { schema: otherOneOf }))
15865
15872
  ] });
15866
15873
  };
15867
15874
  function getPromotedObjectSchema(promotedSchema) {
@@ -15910,12 +15917,12 @@ var ReadOnlySchema_messages_default = defineMessages11({
15910
15917
  });
15911
15918
 
15912
15919
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.tsx
15913
- import { Fragment as Fragment11, jsx as jsx45, jsxs as jsxs16 } from "react/jsx-runtime";
15920
+ import { Fragment as Fragment11, jsx as jsx46, jsxs as jsxs16 } from "react/jsx-runtime";
15914
15921
  function ReadOnlySchema({ schema, model }) {
15915
15922
  const { title = "" } = schema;
15916
15923
  const { formatMessage } = useIntl12();
15917
15924
  const value = getValueForSchema({ schema, model, formatMessage });
15918
- return /* @__PURE__ */ jsx45(DefinitionList, { layout: Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
15925
+ return /* @__PURE__ */ jsx46(DefinitionList, { layout: Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
15919
15926
  }
15920
15927
  var ReadOnlySchema_default = ReadOnlySchema;
15921
15928
  function getValueForSchema({
@@ -15957,7 +15964,7 @@ function getValueFromOption(option) {
15957
15964
 
15958
15965
  // src/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.tsx
15959
15966
  import { useEffect as useEffect10, useRef as useRef3, useState as useState14 } from "react";
15960
- import { jsx as jsx46 } from "react/jsx-runtime";
15967
+ import { jsx as jsx47 } from "react/jsx-runtime";
15961
15968
  function ValidationAsyncSchema(props) {
15962
15969
  const { schema, model, required = false, submitted, errors, onChange } = props;
15963
15970
  const [validationAsyncModel, setValidationAsyncModel] = useState14(model);
@@ -16041,12 +16048,12 @@ function ValidationAsyncSchema(props) {
16041
16048
  required,
16042
16049
  schema
16043
16050
  };
16044
- return /* @__PURE__ */ jsx46(BasicTypeSchema_default, __spreadValues({}, basicTypeSchemaProps));
16051
+ return /* @__PURE__ */ jsx47(BasicTypeSchema_default, __spreadValues({}, basicTypeSchemaProps));
16045
16052
  }
16046
16053
  var ValidationAsyncSchema_default = ValidationAsyncSchema;
16047
16054
 
16048
16055
  // src/legacy/jsonSchemaForm/genericSchema/GenericSchema.tsx
16049
- import { Fragment as Fragment12, jsx as jsx47 } from "react/jsx-runtime";
16056
+ import { Fragment as Fragment12, jsx as jsx48 } from "react/jsx-runtime";
16050
16057
  import { createElement } from "react";
16051
16058
  function GenericSchemaForm(props) {
16052
16059
  const { schema, model = null, errors = null, hideTitle = false, disabled = false } = props;
@@ -16063,29 +16070,29 @@ function GenericSchemaForm(props) {
16063
16070
  }, [JSON.stringify(schema), JSON.stringify(model), JSON.stringify(errors), type, log]);
16064
16071
  switch (type) {
16065
16072
  case "readOnly":
16066
- return /* @__PURE__ */ jsx47(ReadOnlySchema_default, __spreadValues({}, schemaProps));
16073
+ return /* @__PURE__ */ jsx48(ReadOnlySchema_default, __spreadValues({}, schemaProps));
16067
16074
  case "persistAsync":
16068
- return /* @__PURE__ */ jsx47(PersistAsyncSchema_default, __spreadValues({}, schemaProps));
16075
+ return /* @__PURE__ */ jsx48(PersistAsyncSchema_default, __spreadValues({}, schemaProps));
16069
16076
  case "validationAsync":
16070
- return /* @__PURE__ */ jsx47(ValidationAsyncSchema_default, __spreadValues({}, schemaProps));
16077
+ return /* @__PURE__ */ jsx48(ValidationAsyncSchema_default, __spreadValues({}, schemaProps));
16071
16078
  case "basic": {
16072
16079
  const basicTypeProps = __spreadValues({
16073
16080
  infoMessage: null
16074
16081
  }, schemaProps);
16075
- return /* @__PURE__ */ jsx47(BasicTypeSchema_default, __spreadValues({}, basicTypeProps));
16082
+ return /* @__PURE__ */ jsx48(BasicTypeSchema_default, __spreadValues({}, basicTypeProps));
16076
16083
  }
16077
16084
  case "object":
16078
16085
  return /* @__PURE__ */ createElement(ObjectSchema_default, __spreadProps(__spreadValues({}, schemaProps), { key: JSON.stringify(schema) }));
16079
16086
  case "array":
16080
- return /* @__PURE__ */ jsx47(ArraySchema_default, __spreadValues({}, schemaProps));
16087
+ return /* @__PURE__ */ jsx48(ArraySchema_default, __spreadValues({}, schemaProps));
16081
16088
  case "promotedOneOf":
16082
- return /* @__PURE__ */ jsx47(PromotedOneOfSchema_default, __spreadValues({}, schemaProps));
16089
+ return /* @__PURE__ */ jsx48(PromotedOneOfSchema_default, __spreadValues({}, schemaProps));
16083
16090
  case "oneOf":
16084
- return /* @__PURE__ */ jsx47(OneOfSchema_default, __spreadValues({}, schemaProps));
16091
+ return /* @__PURE__ */ jsx48(OneOfSchema_default, __spreadValues({}, schemaProps));
16085
16092
  case "allOf":
16086
- return /* @__PURE__ */ jsx47(AllOfSchema_default, __spreadValues({}, schemaProps));
16093
+ return /* @__PURE__ */ jsx48(AllOfSchema_default, __spreadValues({}, schemaProps));
16087
16094
  }
16088
- return /* @__PURE__ */ jsx47(Fragment12, {});
16095
+ return /* @__PURE__ */ jsx48(Fragment12, {});
16089
16096
  }
16090
16097
  var GenericSchema_default = GenericSchemaForm;
16091
16098
  var isValidGenericSchema = (schema, model, errors) => {
@@ -16112,7 +16119,7 @@ var isValidGenericSchema = (schema, model, errors) => {
16112
16119
  };
16113
16120
 
16114
16121
  // src/legacy/layout/form/DynamicForm.tsx
16115
- import { jsx as jsx48 } from "react/jsx-runtime";
16122
+ import { jsx as jsx49 } from "react/jsx-runtime";
16116
16123
  function DynamicForm({
16117
16124
  component,
16118
16125
  model = null,
@@ -16122,7 +16129,7 @@ function DynamicForm({
16122
16129
  onPersistAsync
16123
16130
  }) {
16124
16131
  const formSchema = component.schema;
16125
- return /* @__PURE__ */ jsx48("div", { className: getMargin(component.margin || "md"), children: /* @__PURE__ */ jsx48(
16132
+ return /* @__PURE__ */ jsx49("div", { className: getMargin(component.margin || "md"), children: /* @__PURE__ */ jsx49(
16126
16133
  GenericSchema_default,
16127
16134
  {
16128
16135
  schema: formSchema,
@@ -16141,57 +16148,57 @@ var DynamicForm_default = DynamicForm;
16141
16148
  // src/legacy/layout/heading/DynamicHeading.tsx
16142
16149
  var import_classnames8 = __toESM(require_classnames());
16143
16150
  import { Display } from "@transferwise/components";
16144
- import { jsx as jsx49 } from "react/jsx-runtime";
16151
+ import { jsx as jsx50 } from "react/jsx-runtime";
16145
16152
  var DynamicHeading = (props) => {
16146
16153
  const { text, size = "md", align = "left", margin = "md", control } = props.component;
16147
16154
  const classes = (0, import_classnames8.default)(getTextAlignmentAndMargin({ align, margin }));
16148
- return control === "display" ? /* @__PURE__ */ jsx49(DisplayHeading, { size, text, classes }) : /* @__PURE__ */ jsx49(StandardHeading, { size, text, classes });
16155
+ return control === "display" ? /* @__PURE__ */ jsx50(DisplayHeading, { size, text, classes }) : /* @__PURE__ */ jsx50(StandardHeading, { size, text, classes });
16149
16156
  };
16150
16157
  var StandardHeading = ({ size, text, classes }) => {
16151
16158
  switch (size) {
16152
16159
  case "xs":
16153
- return /* @__PURE__ */ jsx49("h5", { className: classes, children: text });
16160
+ return /* @__PURE__ */ jsx50("h5", { className: classes, children: text });
16154
16161
  case "sm":
16155
- return /* @__PURE__ */ jsx49("h4", { className: classes, children: text });
16162
+ return /* @__PURE__ */ jsx50("h4", { className: classes, children: text });
16156
16163
  case "lg":
16157
- return /* @__PURE__ */ jsx49("h2", { className: classes, children: text });
16164
+ return /* @__PURE__ */ jsx50("h2", { className: classes, children: text });
16158
16165
  case "xl":
16159
- return /* @__PURE__ */ jsx49("h1", { className: classes, children: text });
16166
+ return /* @__PURE__ */ jsx50("h1", { className: classes, children: text });
16160
16167
  case "md":
16161
16168
  default:
16162
- return /* @__PURE__ */ jsx49("h3", { className: classes, children: text });
16169
+ return /* @__PURE__ */ jsx50("h3", { className: classes, children: text });
16163
16170
  }
16164
16171
  };
16165
16172
  var DisplayHeading = ({ size, text, classes }) => {
16166
16173
  switch (size) {
16167
16174
  case "xs":
16168
16175
  case "sm":
16169
- return /* @__PURE__ */ jsx49(Display, { type: "display-small", className: classes, children: text });
16176
+ return /* @__PURE__ */ jsx50(Display, { type: "display-small", className: classes, children: text });
16170
16177
  case "xl":
16171
16178
  case "lg":
16172
- return /* @__PURE__ */ jsx49(Display, { type: "display-large", className: classes, children: text });
16179
+ return /* @__PURE__ */ jsx50(Display, { type: "display-large", className: classes, children: text });
16173
16180
  case "md":
16174
16181
  default:
16175
- return /* @__PURE__ */ jsx49(Display, { type: "display-medium", className: classes, children: text });
16182
+ return /* @__PURE__ */ jsx50(Display, { type: "display-medium", className: classes, children: text });
16176
16183
  }
16177
16184
  };
16178
16185
  var DynamicHeading_default = DynamicHeading;
16179
16186
 
16180
16187
  // src/legacy/layout/markdown/DynamicMarkdown.tsx
16181
16188
  import { Markdown as Markdown2 } from "@transferwise/components";
16182
- import { jsx as jsx50 } from "react/jsx-runtime";
16189
+ import { jsx as jsx51 } from "react/jsx-runtime";
16183
16190
  var DynamicMarkdown = ({ component }) => {
16184
16191
  const { content, align, margin } = component;
16185
- return /* @__PURE__ */ jsx50("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx50(Markdown2, { config: { link: { target: "_blank" } }, children: content }) });
16192
+ return /* @__PURE__ */ jsx51("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx51(Markdown2, { config: { link: { target: "_blank" } }, children: content }) });
16186
16193
  };
16187
16194
  var DynamicInfo = ({ component }) => {
16188
- return /* @__PURE__ */ jsx50("div", { className: getTextAlignmentAndMargin(component), children: /* @__PURE__ */ jsx50(Markdown2, { config: { link: { target: "_blank" } }, children: component.markdown }) });
16195
+ return /* @__PURE__ */ jsx51("div", { className: getTextAlignmentAndMargin(component), children: /* @__PURE__ */ jsx51(Markdown2, { config: { link: { target: "_blank" } }, children: component.markdown }) });
16189
16196
  };
16190
16197
 
16191
16198
  // src/legacy/layout/image/DynamicImage.tsx
16192
16199
  import { Image } from "@transferwise/components";
16193
16200
  import { useEffect as useEffect12, useState as useState15 } from "react";
16194
- import { jsx as jsx51 } from "react/jsx-runtime";
16201
+ import { jsx as jsx52 } from "react/jsx-runtime";
16195
16202
  function DynamicImage({ component: image }) {
16196
16203
  var _a, _b, _c;
16197
16204
  const { content, url, size, text, margin, accessibilityDescription } = image;
@@ -16222,7 +16229,7 @@ function DynamicImage({ component: image }) {
16222
16229
  if (!imageSource) {
16223
16230
  return null;
16224
16231
  }
16225
- return /* @__PURE__ */ jsx51("div", { className: `df-image ${size || "md"}`, children: /* @__PURE__ */ jsx51(Image, __spreadValues({ className: `img-responsive ${getMargin(margin || "md")}` }, imageProps)) });
16232
+ return /* @__PURE__ */ jsx52("div", { className: `df-image ${size || "md"}`, children: /* @__PURE__ */ jsx52(Image, __spreadValues({ className: `img-responsive ${getMargin(margin || "md")}` }, imageProps)) });
16226
16233
  }
16227
16234
  var readImageBlobAsDataURL = (imageBlob) => (
16228
16235
  // we can safely assume the type of reader.result is string
@@ -16259,7 +16266,7 @@ var DynamicImage_default = DynamicImage;
16259
16266
 
16260
16267
  // src/legacy/layout/instructions/DynamicInstructions.tsx
16261
16268
  import { Header as Header6, InstructionsList } from "@transferwise/components";
16262
- import { jsx as jsx52, jsxs as jsxs17 } from "react/jsx-runtime";
16269
+ import { jsx as jsx53, jsxs as jsxs17 } from "react/jsx-runtime";
16263
16270
  var doContext = ["positive", "neutral"];
16264
16271
  var dontContext = ["warning", "negative"];
16265
16272
  var DynamicInstructions = ({ component }) => {
@@ -16267,39 +16274,39 @@ var DynamicInstructions = ({ component }) => {
16267
16274
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
16268
16275
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
16269
16276
  return /* @__PURE__ */ jsxs17("div", { className: getMargin(component.margin || "md"), children: [
16270
- component.title ? /* @__PURE__ */ jsx52(Header6, { title: component.title }) : null,
16271
- /* @__PURE__ */ jsx52(InstructionsList, { dos, donts })
16277
+ component.title ? /* @__PURE__ */ jsx53(Header6, { title: component.title }) : null,
16278
+ /* @__PURE__ */ jsx53(InstructionsList, { dos, donts })
16272
16279
  ] });
16273
16280
  };
16274
16281
  var DynamicInstructions_default = DynamicInstructions;
16275
16282
 
16276
16283
  // src/legacy/layout/DynamicLayout.tsx
16277
- import { Fragment as Fragment13, jsx as jsx53 } from "react/jsx-runtime";
16284
+ import { Fragment as Fragment13, jsx as jsx54 } from "react/jsx-runtime";
16278
16285
  var getKey = (component) => JSON.stringify(component);
16279
16286
  function DynamicLayout(props) {
16280
16287
  const { components, model, submitted, errors, onModelChange, onAction, onPersistAsync, baseUrl } = props;
16281
16288
  const renderComponent = (component) => {
16282
16289
  switch (component.type) {
16283
16290
  case "heading":
16284
- return /* @__PURE__ */ jsx53(DynamicHeading_default, { component }, getKey(component));
16291
+ return /* @__PURE__ */ jsx54(DynamicHeading_default, { component }, getKey(component));
16285
16292
  case "paragraph":
16286
- return /* @__PURE__ */ jsx53(DynamicParagraph_default, { component }, getKey(component));
16293
+ return /* @__PURE__ */ jsx54(DynamicParagraph_default, { component }, getKey(component));
16287
16294
  case "image":
16288
- return /* @__PURE__ */ jsx53(DynamicImage_default, { component }, getKey(component));
16295
+ return /* @__PURE__ */ jsx54(DynamicImage_default, { component }, getKey(component));
16289
16296
  case "alert":
16290
- return /* @__PURE__ */ jsx53(DynamicAlert_default, { component, onAction }, getKey(component));
16297
+ return /* @__PURE__ */ jsx54(DynamicAlert_default, { component, onAction }, getKey(component));
16291
16298
  case "review":
16292
- return /* @__PURE__ */ jsx53(DynamicReview_default, { component, onAction }, getKey(component));
16299
+ return /* @__PURE__ */ jsx54(DynamicReview_default, { component, onAction }, getKey(component));
16293
16300
  case "divider":
16294
- return /* @__PURE__ */ jsx53(DynamicDivider_default, { component }, getKey(component));
16301
+ return /* @__PURE__ */ jsx54(DynamicDivider_default, { component }, getKey(component));
16295
16302
  case "info":
16296
- return /* @__PURE__ */ jsx53(DynamicInfo, { component }, getKey(component));
16303
+ return /* @__PURE__ */ jsx54(DynamicInfo, { component }, getKey(component));
16297
16304
  case "instructions":
16298
- return /* @__PURE__ */ jsx53(DynamicInstructions_default, { component }, getKey(component));
16305
+ return /* @__PURE__ */ jsx54(DynamicInstructions_default, { component }, getKey(component));
16299
16306
  case "markdown":
16300
- return /* @__PURE__ */ jsx53(DynamicMarkdown, { component }, getKey(component));
16307
+ return /* @__PURE__ */ jsx54(DynamicMarkdown, { component }, getKey(component));
16301
16308
  case "columns":
16302
- return /* @__PURE__ */ jsx53(
16309
+ return /* @__PURE__ */ jsx54(
16303
16310
  DynamicColumns_default,
16304
16311
  {
16305
16312
  component,
@@ -16313,7 +16320,7 @@ function DynamicLayout(props) {
16313
16320
  getKey(component)
16314
16321
  );
16315
16322
  case "form":
16316
- return /* @__PURE__ */ jsx53(
16323
+ return /* @__PURE__ */ jsx54(
16317
16324
  DynamicForm_default,
16318
16325
  {
16319
16326
  component,
@@ -16326,9 +16333,9 @@ function DynamicLayout(props) {
16326
16333
  getKey(__spreadProps(__spreadValues({}, component), { errors: errors != null ? errors : null }))
16327
16334
  );
16328
16335
  case "button":
16329
- return /* @__PURE__ */ jsx53(DynamicButton_default, { component, onAction }, getKey(component));
16336
+ return /* @__PURE__ */ jsx54(DynamicButton_default, { component, onAction }, getKey(component));
16330
16337
  case "box":
16331
- return /* @__PURE__ */ jsx53(
16338
+ return /* @__PURE__ */ jsx54(
16332
16339
  DynamicBox_default,
16333
16340
  {
16334
16341
  component,
@@ -16342,18 +16349,18 @@ function DynamicLayout(props) {
16342
16349
  getKey(component)
16343
16350
  );
16344
16351
  case "decision":
16345
- return /* @__PURE__ */ jsx53(DynamicDecision_default, { component, onAction }, getKey(component));
16352
+ return /* @__PURE__ */ jsx54(DynamicDecision_default, { component, onAction }, getKey(component));
16346
16353
  case "external":
16347
- return /* @__PURE__ */ jsx53(DynamicExternal_default, { component, onAction }, getKey(component));
16354
+ return /* @__PURE__ */ jsx54(DynamicExternal_default, { component, onAction }, getKey(component));
16348
16355
  case "list":
16349
16356
  case "status-list":
16350
- return /* @__PURE__ */ jsx53(DynamicStatusList_default, { component, onAction }, getKey(component));
16357
+ return /* @__PURE__ */ jsx54(DynamicStatusList_default, { component, onAction }, getKey(component));
16351
16358
  case "loading-indicator":
16352
- return /* @__PURE__ */ jsx53(DynamicLoadingIndicator_default, { component }, getKey(component));
16359
+ return /* @__PURE__ */ jsx54(DynamicLoadingIndicator_default, { component }, getKey(component));
16353
16360
  case "search":
16354
- return /* @__PURE__ */ jsx53(DynamicSearch_default, { component, onAction }, getKey(component));
16361
+ return /* @__PURE__ */ jsx54(DynamicSearch_default, { component, onAction }, getKey(component));
16355
16362
  case "modal":
16356
- return /* @__PURE__ */ jsx53(
16363
+ return /* @__PURE__ */ jsx54(
16357
16364
  DynamicModal_default,
16358
16365
  {
16359
16366
  component,
@@ -16367,22 +16374,22 @@ function DynamicLayout(props) {
16367
16374
  getKey(component)
16368
16375
  );
16369
16376
  default:
16370
- return /* @__PURE__ */ jsx53("div", {}, getKey(component));
16377
+ return /* @__PURE__ */ jsx54("div", {}, getKey(component));
16371
16378
  }
16372
16379
  };
16373
16380
  if (useHasHttpClientProvider() || baseUrl == null) {
16374
- return /* @__PURE__ */ jsx53(Fragment13, { children: components.map(renderComponent) });
16381
+ return /* @__PURE__ */ jsx54(Fragment13, { children: components.map(renderComponent) });
16375
16382
  }
16376
- return /* @__PURE__ */ jsx53(HttpClientProviderFromBaseUrl, { baseUrl, children: components.map(renderComponent) });
16383
+ return /* @__PURE__ */ jsx54(HttpClientProviderFromBaseUrl, { baseUrl, children: components.map(renderComponent) });
16377
16384
  }
16378
16385
  var DynamicLayout_default = DynamicLayout;
16379
16386
 
16380
16387
  // src/legacy/layout/list/DynamicStatusList.tsx
16381
16388
  import { Header as Header7, Summary } from "@transferwise/components";
16382
- import { jsx as jsx54, jsxs as jsxs18 } from "react/jsx-runtime";
16389
+ import { jsx as jsx55, jsxs as jsxs18 } from "react/jsx-runtime";
16383
16390
  var DynamicStatusList = ({ component, onAction }) => {
16384
16391
  return /* @__PURE__ */ jsxs18("div", { className: getMargin(component.margin || "md"), children: [
16385
- component.title ? /* @__PURE__ */ jsx54(Header7, { title: component.title, className: "m-b-2" }) : null,
16392
+ component.title ? /* @__PURE__ */ jsx55(Header7, { title: component.title, className: "m-b-2" }) : null,
16386
16393
  component.items.map((item) => mapListItemToSummary(item, onAction))
16387
16394
  ] });
16388
16395
  };
@@ -16392,8 +16399,8 @@ var mapListItemToSummary = (props, onAction) => {
16392
16399
  title,
16393
16400
  description,
16394
16401
  action: "callToAction" in props ? callToActionToSummaryAction(props == null ? void 0 : props.callToAction, onAction) : void 0
16395
- }, (icon == null ? void 0 : icon.name) ? { icon: /* @__PURE__ */ jsx54(DynamicIcon_default, { type: icon.name }) } : {}), status ? { status: statusMap[status] } : {});
16396
- return /* @__PURE__ */ jsx54(Summary, __spreadValues({}, summaryProps), `${title}/${description || ""}`);
16402
+ }, (icon == null ? void 0 : icon.name) ? { icon: /* @__PURE__ */ jsx55(DynamicIcon_default, { type: icon.name }) } : {}), status ? { status: statusMap[status] } : {});
16403
+ return /* @__PURE__ */ jsx55(Summary, __spreadValues({}, summaryProps), `${title}/${description || ""}`);
16397
16404
  };
16398
16405
  var callToActionToSummaryAction = (callToAction, onAction) => {
16399
16406
  if (!callToAction) {
@@ -16463,10 +16470,10 @@ var DynamicStatusList_default = DynamicStatusList;
16463
16470
 
16464
16471
  // src/legacy/layout/loadingIndicator/DynamicLoadingIndicator.tsx
16465
16472
  import { Loader as Loader2 } from "@transferwise/components";
16466
- import { jsx as jsx55 } from "react/jsx-runtime";
16473
+ import { jsx as jsx56 } from "react/jsx-runtime";
16467
16474
  var DynamicLoadingIndicator = ({ component }) => {
16468
16475
  const { margin = "md", size = "md" } = component;
16469
- return /* @__PURE__ */ jsx55(
16476
+ return /* @__PURE__ */ jsx56(
16470
16477
  Loader2,
16471
16478
  {
16472
16479
  size,
@@ -16500,21 +16507,21 @@ var paragraph_messages_default = defineMessages12({
16500
16507
 
16501
16508
  // src/legacy/layout/paragraph/useSnackBarIfAvailable.ts
16502
16509
  import { SnackbarContext } from "@transferwise/components";
16503
- import { useContext as useContext5 } from "react";
16510
+ import { useContext as useContext6 } from "react";
16504
16511
  function useSnackBarIfAvailable() {
16505
- const context = useContext5(SnackbarContext);
16512
+ const context = useContext6(SnackbarContext);
16506
16513
  return context ? context.createSnackbar : noop3;
16507
16514
  }
16508
16515
  function noop3() {
16509
16516
  }
16510
16517
 
16511
16518
  // src/legacy/layout/paragraph/DynamicParagraph.tsx
16512
- import { jsx as jsx56, jsxs as jsxs19 } from "react/jsx-runtime";
16519
+ import { jsx as jsx57, jsxs as jsxs19 } from "react/jsx-runtime";
16513
16520
  function DynamicParagraph({ component }) {
16514
- return component.control === "copyable" ? /* @__PURE__ */ jsx56(CopyableDynamicParagraph, { component }) : /* @__PURE__ */ jsx56(BasicDynamicParagraph, { component });
16521
+ return component.control === "copyable" ? /* @__PURE__ */ jsx57(CopyableDynamicParagraph, { component }) : /* @__PURE__ */ jsx57(BasicDynamicParagraph, { component });
16515
16522
  }
16516
16523
  function BasicDynamicParagraph({ component }) {
16517
- return /* @__PURE__ */ jsx56("p", { className: `np-text-body-large ${getTextAlignmentAndMargin(component)}`, children: component.text });
16524
+ return /* @__PURE__ */ jsx57("p", { className: `np-text-body-large ${getTextAlignmentAndMargin(component)}`, children: component.text });
16518
16525
  }
16519
16526
  function CopyableDynamicParagraph({ component }) {
16520
16527
  const { formatMessage } = useIntl13();
@@ -16529,7 +16536,7 @@ function CopyableDynamicParagraph({ component }) {
16529
16536
  margin: "sm"
16530
16537
  })} form-control`;
16531
16538
  return /* @__PURE__ */ jsxs19("div", { className: getTextAlignmentAndMargin(component), children: [
16532
- /* @__PURE__ */ jsx56(
16539
+ /* @__PURE__ */ jsx57(
16533
16540
  "input",
16534
16541
  {
16535
16542
  type: "text",
@@ -16539,7 +16546,7 @@ function CopyableDynamicParagraph({ component }) {
16539
16546
  style: { textOverflow: "ellipsis" }
16540
16547
  }
16541
16548
  ),
16542
- /* @__PURE__ */ jsx56(Button3, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
16549
+ /* @__PURE__ */ jsx57(Button3, { block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
16543
16550
  ] });
16544
16551
  }
16545
16552
  function noop4() {
@@ -16548,7 +16555,7 @@ var DynamicParagraph_default = DynamicParagraph;
16548
16555
 
16549
16556
  // src/legacy/layout/review/DynamicReview.tsx
16550
16557
  import { DefinitionList as DefinitionList2, Header as Header8 } from "@transferwise/components";
16551
- import { Fragment as Fragment14, jsx as jsx57, jsxs as jsxs20 } from "react/jsx-runtime";
16558
+ import { Fragment as Fragment14, jsx as jsx58, jsxs as jsxs20 } from "react/jsx-runtime";
16552
16559
  var getDefinitions = (orientation, review) => review.fields.map(({ label, value, help }, index) => ({
16553
16560
  key: String(index),
16554
16561
  title: label,
@@ -16557,13 +16564,13 @@ var getDefinitions = (orientation, review) => review.fields.map(({ label, value,
16557
16564
  var getFieldValue = (value, help, orientation) => {
16558
16565
  if (help) {
16559
16566
  return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs20(Fragment14, { children: [
16560
- /* @__PURE__ */ jsx57(Help_default, { help }),
16567
+ /* @__PURE__ */ jsx58(Help_default, { help }),
16561
16568
  " ",
16562
16569
  value
16563
16570
  ] }) : /* @__PURE__ */ jsxs20(Fragment14, { children: [
16564
16571
  value,
16565
16572
  " ",
16566
- /* @__PURE__ */ jsx57(Help_default, { help })
16573
+ /* @__PURE__ */ jsx58(Help_default, { help })
16567
16574
  ] });
16568
16575
  }
16569
16576
  return value;
@@ -16638,8 +16645,8 @@ function DynamicReview({ component: review, onAction }) {
16638
16645
  const callToAction = review.callToAction ? getReviewAction2(review.callToAction) : null;
16639
16646
  const legacyCallToAction = !callToAction && review.action ? { text: (_a = review.action.title) != null ? _a : "", onClick: getOnClick2(review.action) } : null;
16640
16647
  return /* @__PURE__ */ jsxs20("div", { className: margin, children: [
16641
- review.title && /* @__PURE__ */ jsx57(Header8, { title: review.title, action: (_b = callToAction != null ? callToAction : legacyCallToAction) != null ? _b : void 0 }),
16642
- /* @__PURE__ */ jsx57("div", { className: margin, children: /* @__PURE__ */ jsx57(DefinitionList2, { layout: orientation, definitions: getDefinitions(orientation, review) }) })
16648
+ review.title && /* @__PURE__ */ jsx58(Header8, { title: review.title, action: (_b = callToAction != null ? callToAction : legacyCallToAction) != null ? _b : void 0 }),
16649
+ /* @__PURE__ */ jsx58("div", { className: margin, children: /* @__PURE__ */ jsx58(DefinitionList2, { layout: orientation, definitions: getDefinitions(orientation, review) }) })
16643
16650
  ] });
16644
16651
  }
16645
16652
  var DynamicReview_default = DynamicReview;
@@ -16650,11 +16657,11 @@ import { Search } from "@transferwise/icons";
16650
16657
 
16651
16658
  // src/legacy/layout/search/SearchInput.tsx
16652
16659
  import { Input } from "@transferwise/components";
16653
- import { jsx as jsx58, jsxs as jsxs21 } from "react/jsx-runtime";
16660
+ import { jsx as jsx59, jsxs as jsxs21 } from "react/jsx-runtime";
16654
16661
  var SearchInput = ({ title, value, onFocus, onChange }) => {
16655
16662
  return /* @__PURE__ */ jsxs21("label", { className: "control-label d-inline", children: [
16656
16663
  title,
16657
- /* @__PURE__ */ jsx58(
16664
+ /* @__PURE__ */ jsx59(
16658
16665
  Input,
16659
16666
  {
16660
16667
  type: "text",
@@ -16670,12 +16677,12 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
16670
16677
  // src/legacy/layout/search/SearchResults.tsx
16671
16678
  import { NavigationOption as NavigationOption4, NavigationOptionsList as NavigationOptionsList2 } from "@transferwise/components";
16672
16679
  import { useIntl as useIntl14 } from "react-intl";
16673
- import { jsx as jsx59, jsxs as jsxs22 } from "react/jsx-runtime";
16680
+ import { jsx as jsx60, jsxs as jsxs22 } from "react/jsx-runtime";
16674
16681
  function SearchResults({ results, emptyMessage, onSelect }) {
16675
16682
  if (results.length === 0) {
16676
- return /* @__PURE__ */ jsx59("p", { className: "m-t-2", children: emptyMessage });
16683
+ return /* @__PURE__ */ jsx60("p", { className: "m-t-2", children: emptyMessage });
16677
16684
  }
16678
- return /* @__PURE__ */ jsx59(NavigationOptionsList2, { children: results.map((result) => /* @__PURE__ */ jsx59(
16685
+ return /* @__PURE__ */ jsx60(NavigationOptionsList2, { children: results.map((result) => /* @__PURE__ */ jsx60(
16679
16686
  NavigationOption4,
16680
16687
  {
16681
16688
  title: result.title,
@@ -16693,7 +16700,7 @@ function ErrorResult({ onRetrySearch }) {
16693
16700
  return /* @__PURE__ */ jsxs22("p", { className: "m-t-2", children: [
16694
16701
  intl.formatMessage(generic_error_messages_default.genericError),
16695
16702
  "\xA0",
16696
- /* @__PURE__ */ jsx59(
16703
+ /* @__PURE__ */ jsx60(
16697
16704
  "a",
16698
16705
  {
16699
16706
  href: "/",
@@ -16792,7 +16799,7 @@ var search_messages_default = defineMessages13({
16792
16799
  });
16793
16800
 
16794
16801
  // src/legacy/layout/search/DynamicSearch.tsx
16795
- import { jsx as jsx60, jsxs as jsxs23 } from "react/jsx-runtime";
16802
+ import { jsx as jsx61, jsxs as jsxs23 } from "react/jsx-runtime";
16796
16803
  var DEBOUNCE_TIME2 = 400;
16797
16804
  function DynamicSearch({ component, onAction }) {
16798
16805
  const [query, setQuery] = useState17("");
@@ -16830,9 +16837,9 @@ function DynamicSearch({ component, onAction }) {
16830
16837
  };
16831
16838
  const loadingMessage = intl.formatMessage(search_messages_default.loading);
16832
16839
  if (control === "inline") {
16833
- return /* @__PURE__ */ jsx60("div", { className: (0, import_classnames9.default)(getMargin(margin != null ? margin : "md"), "df-search-typeahead"), children: /* @__PURE__ */ jsxs23("label", { className: "control-label d-inline", children: [
16840
+ return /* @__PURE__ */ jsx61("div", { className: (0, import_classnames9.default)(getMargin(margin != null ? margin : "md"), "df-search-typeahead"), children: /* @__PURE__ */ jsxs23("label", { className: "control-label d-inline", children: [
16834
16841
  title,
16835
- /* @__PURE__ */ jsx60("div", { className: "m-t-1", children: /* @__PURE__ */ jsx60(
16842
+ /* @__PURE__ */ jsx61("div", { className: "m-t-1", children: /* @__PURE__ */ jsx61(
16836
16843
  Typeahead,
16837
16844
  {
16838
16845
  id: "typeahead-input-id",
@@ -16840,7 +16847,7 @@ function DynamicSearch({ component, onAction }) {
16840
16847
  name: "typeahead-input-name",
16841
16848
  size: "md",
16842
16849
  maxHeight: 100,
16843
- footer: /* @__PURE__ */ jsx60(
16850
+ footer: /* @__PURE__ */ jsx61(
16844
16851
  TypeaheadFooter,
16845
16852
  {
16846
16853
  state: status,
@@ -16852,7 +16859,7 @@ function DynamicSearch({ component, onAction }) {
16852
16859
  ),
16853
16860
  multiple: false,
16854
16861
  clearable: false,
16855
- addon: /* @__PURE__ */ jsx60(Search, { size: 24 }),
16862
+ addon: /* @__PURE__ */ jsx61(Search, { size: 24 }),
16856
16863
  options: results.map(mapResultToTypeaheadOption),
16857
16864
  onChange: (values) => {
16858
16865
  if (values.length > 0) {
@@ -16868,10 +16875,10 @@ function DynamicSearch({ component, onAction }) {
16868
16875
  ] }) });
16869
16876
  }
16870
16877
  return /* @__PURE__ */ jsxs23("div", { className: getMargin(margin != null ? margin : "md"), children: [
16871
- /* @__PURE__ */ jsx60(SearchInput, { title, value: query, onChange, onFocus: onSearchStart }),
16872
- status === "loading" && /* @__PURE__ */ jsx60(DynamicLoadingIndicator_default, { component: { type: "loading-indicator", size: "sm" } }),
16873
- status === "error" && /* @__PURE__ */ jsx60(ErrorResult, { onRetrySearch }),
16874
- status === "success" && /* @__PURE__ */ jsx60(SearchResults, { results, emptyMessage, onSelect: onResultSelected })
16878
+ /* @__PURE__ */ jsx61(SearchInput, { title, value: query, onChange, onFocus: onSearchStart }),
16879
+ status === "loading" && /* @__PURE__ */ jsx61(DynamicLoadingIndicator_default, { component: { type: "loading-indicator", size: "sm" } }),
16880
+ status === "error" && /* @__PURE__ */ jsx61(ErrorResult, { onRetrySearch }),
16881
+ status === "success" && /* @__PURE__ */ jsx61(SearchResults, { results, emptyMessage, onSelect: onResultSelected })
16875
16882
  ] });
16876
16883
  }
16877
16884
  function mapResultToTypeaheadOption(result) {
@@ -16891,13 +16898,13 @@ function TypeaheadFooter({
16891
16898
  onRetrySearch
16892
16899
  }) {
16893
16900
  if (state === "success" && results.length === 0) {
16894
- return /* @__PURE__ */ jsx60(Markdown3, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: emptyMessage });
16901
+ return /* @__PURE__ */ jsx61(Markdown3, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: emptyMessage });
16895
16902
  }
16896
16903
  if (state === "error" && results.length === 0) {
16897
- return /* @__PURE__ */ jsx60("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx60(ErrorResult, { onRetrySearch }) });
16904
+ return /* @__PURE__ */ jsx61("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx61(ErrorResult, { onRetrySearch }) });
16898
16905
  }
16899
16906
  if (state === "loading" || results.length === 0) {
16900
- return /* @__PURE__ */ jsx60("p", { className: "m-t-2 m-x-2", children: loadingMessage });
16907
+ return /* @__PURE__ */ jsx61("p", { className: "m-t-2 m-x-2", children: loadingMessage });
16901
16908
  }
16902
16909
  return null;
16903
16910
  }
@@ -16906,21 +16913,21 @@ var DynamicSearch_default = DynamicSearch;
16906
16913
  // src/legacy/layout/modal/DynamicModal.tsx
16907
16914
  import { Button as Button4, Modal as Modal2 } from "@transferwise/components";
16908
16915
  import { useState as useState18 } from "react";
16909
- import { jsx as jsx61, jsxs as jsxs24 } from "react/jsx-runtime";
16916
+ import { jsx as jsx62, jsxs as jsxs24 } from "react/jsx-runtime";
16910
16917
  function DynamicModal(props) {
16911
16918
  const [visible, isVisible] = useState18(false);
16912
16919
  const { component, onAction } = props;
16913
16920
  const { margin = "md" } = component;
16914
16921
  return /* @__PURE__ */ jsxs24("div", { className: getTextAlignmentAndMargin({ margin }), children: [
16915
- /* @__PURE__ */ jsx61(Button4, { priority: "tertiary", block: true, onClick: () => isVisible(true), children: component.trigger.title }),
16916
- /* @__PURE__ */ jsx61(
16922
+ /* @__PURE__ */ jsx62(Button4, { priority: "tertiary", block: true, onClick: () => isVisible(true), children: component.trigger.title }),
16923
+ /* @__PURE__ */ jsx62(
16917
16924
  Modal2,
16918
16925
  {
16919
16926
  scroll: "content",
16920
16927
  open: visible,
16921
16928
  size: "lg",
16922
16929
  title: component.content.title,
16923
- body: /* @__PURE__ */ jsx61(
16930
+ body: /* @__PURE__ */ jsx62(
16924
16931
  DynamicLayout_default,
16925
16932
  __spreadProps(__spreadValues({}, props), {
16926
16933
  components: component.content.components,
@@ -16938,7 +16945,7 @@ function DynamicModal(props) {
16938
16945
  var DynamicModal_default = DynamicModal;
16939
16946
 
16940
16947
  // src/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.tsx
16941
- import { Fragment as Fragment15, jsx as jsx62, jsxs as jsxs25 } from "react/jsx-runtime";
16948
+ import { Fragment as Fragment15, jsx as jsx63, jsxs as jsxs25 } from "react/jsx-runtime";
16942
16949
  var isNullish2 = (value) => isNull2(value) || isUndefined2(value);
16943
16950
  var getDefaultValue = (schema) => {
16944
16951
  return schema.type === "boolean" && isNullish2(schema.default) ? false : schema.default;
@@ -17017,14 +17024,14 @@ var BasicTypeSchema = (props) => {
17017
17024
  const feedbackId = `${id}-feedback`;
17018
17025
  const labelId = `${id}-label`;
17019
17026
  return !isHidden ? /* @__PURE__ */ jsxs25(Fragment15, { children: [
17020
- props.schema.alert && /* @__PURE__ */ jsx62(DynamicAlert_default, { component: props.schema.alert }),
17027
+ props.schema.alert && /* @__PURE__ */ jsx63(DynamicAlert_default, { component: props.schema.alert }),
17021
17028
  /* @__PURE__ */ jsxs25("div", { className: (0, import_classnames10.default)(formGroupClasses), children: [
17022
17029
  showLabel && /* @__PURE__ */ jsxs25("div", { className: "d-inline-block m-b-1", children: [
17023
- /* @__PURE__ */ jsx62("label", { className: "control-label d-inline", htmlFor: id, id: labelId, children: props.schema.title }),
17024
- !!schemaHelp && /* @__PURE__ */ jsx62(Help_default, { help: schemaHelp })
17030
+ /* @__PURE__ */ jsx63("label", { className: "control-label d-inline", htmlFor: id, id: labelId, children: props.schema.title }),
17031
+ !!schemaHelp && /* @__PURE__ */ jsx63(Help_default, { help: schemaHelp })
17025
17032
  ] }),
17026
- !showLabel && !!schemaHelp && /* @__PURE__ */ jsx62(Help_default, { help: schemaHelp }),
17027
- /* @__PURE__ */ jsx62(
17033
+ !showLabel && !!schemaHelp && /* @__PURE__ */ jsx63(Help_default, { help: schemaHelp }),
17034
+ /* @__PURE__ */ jsx63(
17028
17035
  SchemaFormControl_default,
17029
17036
  {
17030
17037
  id,
@@ -17038,7 +17045,7 @@ var BasicTypeSchema = (props) => {
17038
17045
  labelledBy: labelId
17039
17046
  }
17040
17047
  ),
17041
- /* @__PURE__ */ jsx62(
17048
+ /* @__PURE__ */ jsx63(
17042
17049
  ControlFeedback_default,
17043
17050
  {
17044
17051
  id: feedbackId,
@@ -17058,7 +17065,7 @@ var BasicTypeSchema = (props) => {
17058
17065
  var BasicTypeSchema_default = BasicTypeSchema;
17059
17066
 
17060
17067
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.tsx
17061
- import { jsx as jsx63 } from "react/jsx-runtime";
17068
+ import { jsx as jsx64 } from "react/jsx-runtime";
17062
17069
  var getIdFromResponse = (idProperty, response) => response[idProperty];
17063
17070
  var getErrorFromResponse = (errorProperty, response) => {
17064
17071
  var _a;
@@ -17148,7 +17155,7 @@ function PersistAsyncBasicSchema(props) {
17148
17155
  setPersistAsyncModel(newPersistAsyncModel);
17149
17156
  }
17150
17157
  };
17151
- return /* @__PURE__ */ jsx63(
17158
+ return /* @__PURE__ */ jsx64(
17152
17159
  BasicTypeSchema_default,
17153
17160
  {
17154
17161
  required,
@@ -17362,7 +17369,7 @@ function useStepPolling(polling, onAction) {
17362
17369
  }
17363
17370
 
17364
17371
  // src/legacy/step/layoutStep/LayoutStep.tsx
17365
- import { jsx as jsx64 } from "react/jsx-runtime";
17372
+ import { jsx as jsx65 } from "react/jsx-runtime";
17366
17373
  var getComponents = (step, options) => {
17367
17374
  var _a;
17368
17375
  if (isEmpty(step)) {
@@ -17385,7 +17392,7 @@ var LayoutStep = (props) => {
17385
17392
  onEvent("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
17386
17393
  };
17387
17394
  useStepPolling(stepSpecification.polling, onAction);
17388
- return /* @__PURE__ */ jsx64(
17395
+ return /* @__PURE__ */ jsx65(
17389
17396
  DynamicLayout_default,
17390
17397
  {
17391
17398
  components,
@@ -17471,15 +17478,15 @@ var CameraCapture_messages_default = defineMessages14({
17471
17478
  // src/common/cameraCapture/components/bottomBar/BottomBar.tsx
17472
17479
  import { Button as Button5, ControlType, Priority, Size as Size3 } from "@transferwise/components";
17473
17480
  import { useIntl as useIntl18 } from "react-intl";
17474
- import { jsx as jsx65, jsxs as jsxs26 } from "react/jsx-runtime";
17475
- var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ jsx65("div", { className: "bottom-bar", children: /* @__PURE__ */ jsx65(CaptureButton, { onClick: onCapture }) });
17481
+ import { jsx as jsx66, jsxs as jsxs26 } from "react/jsx-runtime";
17482
+ var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ jsx66("div", { className: "bottom-bar", children: /* @__PURE__ */ jsx66(CaptureButton, { onClick: onCapture }) });
17476
17483
  var ReviewBottomBar = ({
17477
17484
  onSubmit,
17478
17485
  onRetry
17479
17486
  }) => {
17480
17487
  const intl = useIntl18();
17481
- return /* @__PURE__ */ jsx65("div", { className: "bottom-bar p-x-2", children: /* @__PURE__ */ jsx65("div", { className: "row", children: /* @__PURE__ */ jsxs26("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [
17482
- /* @__PURE__ */ jsx65(
17488
+ return /* @__PURE__ */ jsx66("div", { className: "bottom-bar p-x-2", children: /* @__PURE__ */ jsx66("div", { className: "row", children: /* @__PURE__ */ jsxs26("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [
17489
+ /* @__PURE__ */ jsx66(
17483
17490
  Button5,
17484
17491
  {
17485
17492
  className: "m-b-1",
@@ -17490,7 +17497,7 @@ var ReviewBottomBar = ({
17490
17497
  children: intl.formatMessage(CameraCapture_messages_default.reviewSubmit)
17491
17498
  }
17492
17499
  ),
17493
- /* @__PURE__ */ jsx65(
17500
+ /* @__PURE__ */ jsx66(
17494
17501
  Button5,
17495
17502
  {
17496
17503
  className: "m-b-2",
@@ -17504,14 +17511,14 @@ var ReviewBottomBar = ({
17504
17511
  )
17505
17512
  ] }) }) });
17506
17513
  };
17507
- var CaptureButton = ({ onClick }) => /* @__PURE__ */ jsx65(
17514
+ var CaptureButton = ({ onClick }) => /* @__PURE__ */ jsx66(
17508
17515
  "button",
17509
17516
  {
17510
17517
  type: "button",
17511
17518
  className: "camera-capture-btn m-b-2",
17512
17519
  "data-testid": "camera-capture-button",
17513
17520
  onClick,
17514
- children: /* @__PURE__ */ jsx65("span", { className: "camera-capture-btn-inner" })
17521
+ children: /* @__PURE__ */ jsx66("span", { className: "camera-capture-btn-inner" })
17515
17522
  }
17516
17523
  );
17517
17524
 
@@ -17529,11 +17536,11 @@ var OrientationLockOverlay_messages_default = defineMessages15({
17529
17536
  });
17530
17537
 
17531
17538
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
17532
- import { jsx as jsx66, jsxs as jsxs27 } from "react/jsx-runtime";
17539
+ import { jsx as jsx67, jsxs as jsxs27 } from "react/jsx-runtime";
17533
17540
  function OrientationLockOverlay() {
17534
17541
  const intl = useIntl19();
17535
17542
  return /* @__PURE__ */ jsxs27("div", { className: "orientation-lock-overlay", children: [
17536
- /* @__PURE__ */ jsx66(
17543
+ /* @__PURE__ */ jsx67(
17537
17544
  "img",
17538
17545
  {
17539
17546
  className: "m-b-3",
@@ -17543,7 +17550,7 @@ function OrientationLockOverlay() {
17543
17550
  alt: ""
17544
17551
  }
17545
17552
  ),
17546
- /* @__PURE__ */ jsx66("p", { className: "text-center m-b-0", children: intl.formatMessage(OrientationLockOverlay_messages_default.text) })
17553
+ /* @__PURE__ */ jsx67("p", { className: "text-center m-b-0", children: intl.formatMessage(OrientationLockOverlay_messages_default.text) })
17547
17554
  ] });
17548
17555
  }
17549
17556
  var OrientationLockOverlay_default = OrientationLockOverlay;
@@ -17718,7 +17725,7 @@ var getVideoConstraints = async (dir) => {
17718
17725
 
17719
17726
  // src/common/cameraCapture/overlay/Overlay.tsx
17720
17727
  import { useEffect as useEffect19, useRef as useRef7 } from "react";
17721
- import { Fragment as Fragment16, jsx as jsx67, jsxs as jsxs28 } from "react/jsx-runtime";
17728
+ import { Fragment as Fragment16, jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
17722
17729
  var captureButtonHeight = 92;
17723
17730
  var reviewButtonsHeight = 120;
17724
17731
  var imageHeight = 40;
@@ -17741,17 +17748,17 @@ function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstru
17741
17748
  });
17742
17749
  let helperBoxHeight = (imageUrl ? imageHeight : 0) + (title ? titleHeight : 0) + (instructions ? instructionsHeight : 0);
17743
17750
  let helperBox = /* @__PURE__ */ jsxs28(Fragment16, { children: [
17744
- imageUrl && /* @__PURE__ */ jsx67("img", { className: "camera-capture-img", src: imageUrl, alt: "" }),
17745
- title && /* @__PURE__ */ jsx67("h4", { className: "camera-capture-title", children: title }),
17746
- instructions && /* @__PURE__ */ jsx67("small", { className: "camera-capture-instructions", children: instructions })
17751
+ imageUrl && /* @__PURE__ */ jsx68("img", { className: "camera-capture-img", src: imageUrl, alt: "" }),
17752
+ title && /* @__PURE__ */ jsx68("h4", { className: "camera-capture-title", children: title }),
17753
+ instructions && /* @__PURE__ */ jsx68("small", { className: "camera-capture-instructions", children: instructions })
17747
17754
  ] });
17748
17755
  const frameBottomMargin = captureButtonHeight + helperBoxHeight;
17749
17756
  if (reviewInstructions) {
17750
17757
  helperBoxHeight = frameBottomMargin - reviewButtonsHeight;
17751
- helperBox = /* @__PURE__ */ jsx67("small", { className: "camera-capture-instructions", children: reviewInstructions });
17758
+ helperBox = /* @__PURE__ */ jsx68("small", { className: "camera-capture-instructions", children: reviewInstructions });
17752
17759
  const frameWithReviewInstructionsMinBottomMargin = reviewButtonsHeight + reviewInstructionsHeight;
17753
17760
  if (frameBottomMargin < frameWithReviewInstructionsMinBottomMargin) {
17754
- helperBox = /* @__PURE__ */ jsx67(Fragment16, {});
17761
+ helperBox = /* @__PURE__ */ jsx68(Fragment16, {});
17755
17762
  }
17756
17763
  }
17757
17764
  const framePosition = {
@@ -17770,31 +17777,31 @@ function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstru
17770
17777
  }
17771
17778
  };
17772
17779
  return /* @__PURE__ */ jsxs28("svg", { ref: svgReference, xmlns: "http://www.w3.org/2000/svg", children: [
17773
- /* @__PURE__ */ jsx67("defs", { children: /* @__PURE__ */ jsxs28("mask", { id: "mask", children: [
17774
- /* @__PURE__ */ jsx67("rect", { width: "100%", height: "100%", fill: "#fff" }),
17775
- /* @__PURE__ */ jsx67("image", __spreadValues({ href: overlay }, framePosition))
17780
+ /* @__PURE__ */ jsx68("defs", { children: /* @__PURE__ */ jsxs28("mask", { id: "mask", children: [
17781
+ /* @__PURE__ */ jsx68("rect", { width: "100%", height: "100%", fill: "#fff" }),
17782
+ /* @__PURE__ */ jsx68("image", __spreadValues({ href: overlay }, framePosition))
17776
17783
  ] }) }),
17777
- overlay && /* @__PURE__ */ jsx67("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }),
17778
- outline && /* @__PURE__ */ jsx67("image", __spreadValues({ href: outline }, framePosition)),
17779
- /* @__PURE__ */ jsx67("foreignObject", { width: "100%", height: "100%", children: /* @__PURE__ */ jsx67("div", __spreadProps(__spreadValues({ className: "camera-capture-text-and-image-container" }, helperBoxPosition), { children: helperBox })) })
17784
+ overlay && /* @__PURE__ */ jsx68("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }),
17785
+ outline && /* @__PURE__ */ jsx68("image", __spreadValues({ href: outline }, framePosition)),
17786
+ /* @__PURE__ */ jsx68("foreignObject", { width: "100%", height: "100%", children: /* @__PURE__ */ jsx68("div", __spreadProps(__spreadValues({ className: "camera-capture-text-and-image-container" }, helperBoxPosition), { children: helperBox })) })
17780
17787
  ] });
17781
17788
  }
17782
17789
  var Overlay_default = Overlay;
17783
17790
 
17784
17791
  // src/common/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.tsx
17785
17792
  import { Button as Button6 } from "@transferwise/components";
17786
- import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
17793
+ import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
17787
17794
  function CameraErrorScreen({ title, description, actionButton, onAction }) {
17788
- return /* @__PURE__ */ jsx68("div", { className: "container p-t-5", children: /* @__PURE__ */ jsx68("div", { className: "row", children: /* @__PURE__ */ jsxs29("div", { className: "col-md-6 col-md-offset-3", children: [
17789
- /* @__PURE__ */ jsx68("h2", { className: "text-xs-center m-b-3", children: title }),
17790
- /* @__PURE__ */ jsx68("p", { className: "text-xs-center m-b-5", children: description }),
17791
- onAction && actionButton && /* @__PURE__ */ jsx68(Button6, { block: true, onClick: onAction, children: actionButton })
17795
+ return /* @__PURE__ */ jsx69("div", { className: "container p-t-5", children: /* @__PURE__ */ jsx69("div", { className: "row", children: /* @__PURE__ */ jsxs29("div", { className: "col-md-6 col-md-offset-3", children: [
17796
+ /* @__PURE__ */ jsx69("h2", { className: "text-xs-center m-b-3", children: title }),
17797
+ /* @__PURE__ */ jsx69("p", { className: "text-xs-center m-b-5", children: description }),
17798
+ onAction && actionButton && /* @__PURE__ */ jsx69(Button6, { block: true, onClick: onAction, children: actionButton })
17792
17799
  ] }) }) });
17793
17800
  }
17794
17801
  var CameraErrorScreen_default = CameraErrorScreen;
17795
17802
 
17796
17803
  // src/common/cameraCapture/CameraCapture.tsx
17797
- import { jsx as jsx69, jsxs as jsxs30 } from "react/jsx-runtime";
17804
+ import { jsx as jsx70, jsxs as jsxs30 } from "react/jsx-runtime";
17798
17805
  function CameraCapture({
17799
17806
  direction = "back",
17800
17807
  overlay = "",
@@ -17903,7 +17910,7 @@ function CameraCapture({
17903
17910
  }
17904
17911
  }, [mode, exitFullScreen]);
17905
17912
  const captureScreen = /* @__PURE__ */ jsxs30("div", { className: "camera-capture", children: [
17906
- videoConstraints && /* @__PURE__ */ jsx69(
17913
+ videoConstraints && /* @__PURE__ */ jsx70(
17907
17914
  Webcam,
17908
17915
  {
17909
17916
  ref: webcamReference,
@@ -17914,7 +17921,7 @@ function CameraCapture({
17914
17921
  onUserMedia: handleUserMedia
17915
17922
  }
17916
17923
  ),
17917
- /* @__PURE__ */ jsx69(
17924
+ /* @__PURE__ */ jsx70(
17918
17925
  Overlay_default,
17919
17926
  {
17920
17927
  overlay,
@@ -17924,8 +17931,8 @@ function CameraCapture({
17924
17931
  instructions
17925
17932
  }
17926
17933
  ),
17927
- shouldLockOrientation && /* @__PURE__ */ jsx69(OrientationLockOverlay_default, {}),
17928
- ready && /* @__PURE__ */ jsx69(
17934
+ shouldLockOrientation && /* @__PURE__ */ jsx70(OrientationLockOverlay_default, {}),
17935
+ ready && /* @__PURE__ */ jsx70(
17929
17936
  CaptureBottomBar,
17930
17937
  {
17931
17938
  onCapture: () => {
@@ -17935,8 +17942,8 @@ function CameraCapture({
17935
17942
  )
17936
17943
  ] });
17937
17944
  const reviewScreen = /* @__PURE__ */ jsxs30("div", { className: "camera-capture", children: [
17938
- /* @__PURE__ */ jsx69("img", { className: "review-image", src: reviewImage == null ? void 0 : reviewImage.source, alt: "" }),
17939
- /* @__PURE__ */ jsx69(
17945
+ /* @__PURE__ */ jsx70("img", { className: "review-image", src: reviewImage == null ? void 0 : reviewImage.source, alt: "" }),
17946
+ /* @__PURE__ */ jsx70(
17940
17947
  Overlay_default,
17941
17948
  {
17942
17949
  overlay,
@@ -17946,18 +17953,18 @@ function CameraCapture({
17946
17953
  reviewInstructions: intl.formatMessage(CameraCapture_messages_default.reviewInstructions)
17947
17954
  }
17948
17955
  ),
17949
- /* @__PURE__ */ jsx69(ReviewBottomBar, { onSubmit: handleReviewSubmit, onRetry: handleReviewRetry })
17956
+ /* @__PURE__ */ jsx70(ReviewBottomBar, { onSubmit: handleReviewSubmit, onRetry: handleReviewRetry })
17950
17957
  ] });
17951
17958
  return /* @__PURE__ */ jsxs30("section", { children: [
17952
17959
  mode === "CAPTURE" /* CAPTURE */ && captureScreen,
17953
17960
  mode === "REVIEW" /* REVIEW */ && reviewScreen,
17954
- mode === "ERROR" /* ERROR */ && cameraError && /* @__PURE__ */ jsx69(CameraErrorScreen_default, __spreadValues({}, cameraError))
17961
+ mode === "ERROR" /* ERROR */ && cameraError && /* @__PURE__ */ jsx70(CameraErrorScreen_default, __spreadValues({}, cameraError))
17955
17962
  ] });
17956
17963
  }
17957
17964
  var CameraCapture_default = CameraCapture;
17958
17965
 
17959
17966
  // src/legacy/step/cameraStep/CameraStep.tsx
17960
- import { jsx as jsx70 } from "react/jsx-runtime";
17967
+ import { jsx as jsx71 } from "react/jsx-runtime";
17961
17968
  function blobToBase64(blob) {
17962
17969
  return new Promise((resolve, _) => {
17963
17970
  const reader = new FileReader();
@@ -17995,7 +18002,7 @@ function CameraStep(props) {
17995
18002
  });
17996
18003
  }
17997
18004
  };
17998
- return /* @__PURE__ */ jsx70(
18005
+ return /* @__PURE__ */ jsx71(
17999
18006
  CameraCapture_default,
18000
18007
  {
18001
18008
  overlay,
@@ -18072,12 +18079,12 @@ var external_confirmation_messages_default = defineMessages16({
18072
18079
  });
18073
18080
 
18074
18081
  // src/legacy/step/externalConfirmationStep/ExternalConfirmationStep.tsx
18075
- import { jsx as jsx71 } from "react/jsx-runtime";
18082
+ import { jsx as jsx72 } from "react/jsx-runtime";
18076
18083
  var noop6 = () => {
18077
18084
  };
18078
18085
  function ExternalConfirmationStep({ url, onClose }) {
18079
18086
  const { formatMessage } = useIntl21();
18080
- return /* @__PURE__ */ jsx71(
18087
+ return /* @__PURE__ */ jsx72(
18081
18088
  DynamicLayout_default,
18082
18089
  {
18083
18090
  components: [
@@ -18144,9 +18151,9 @@ function getOrigin(url) {
18144
18151
  // src/legacy/dynamicFlow/BackButton.tsx
18145
18152
  import { Avatar as Avatar3 } from "@transferwise/components";
18146
18153
  import { ArrowLeft } from "@transferwise/icons";
18147
- import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
18154
+ import { jsx as jsx73, jsxs as jsxs31 } from "react/jsx-runtime";
18148
18155
  function BackButton({ title, action, onAction }) {
18149
- return /* @__PURE__ */ jsx72("div", { className: "m-b-2", children: /* @__PURE__ */ jsxs31(
18156
+ return /* @__PURE__ */ jsx73("div", { className: "m-b-2", children: /* @__PURE__ */ jsxs31(
18150
18157
  "a",
18151
18158
  {
18152
18159
  href: "/",
@@ -18157,8 +18164,8 @@ function BackButton({ title, action, onAction }) {
18157
18164
  onAction(__spreadProps(__spreadValues({}, action), { skipValidation: true }));
18158
18165
  },
18159
18166
  children: [
18160
- /* @__PURE__ */ jsx72("span", { className: "sr-only", children: title }),
18161
- /* @__PURE__ */ jsx72(Avatar3, { type: "icon", children: /* @__PURE__ */ jsx72(ArrowLeft, { size: "24" }) })
18167
+ /* @__PURE__ */ jsx73("span", { className: "sr-only", children: title }),
18168
+ /* @__PURE__ */ jsx73(Avatar3, { type: "icon", children: /* @__PURE__ */ jsx73(ArrowLeft, { size: "24" }) })
18162
18169
  ]
18163
18170
  }
18164
18171
  ) });
@@ -18166,7 +18173,7 @@ function BackButton({ title, action, onAction }) {
18166
18173
  var BackButton_default = BackButton;
18167
18174
 
18168
18175
  // src/legacy/dynamicFlow/DynamicFlowStep.tsx
18169
- import { Fragment as Fragment17, jsx as jsx73, jsxs as jsxs32 } from "react/jsx-runtime";
18176
+ import { Fragment as Fragment17, jsx as jsx74, jsxs as jsxs32 } from "react/jsx-runtime";
18170
18177
  function DynamicFlowStep(props) {
18171
18178
  var _a, _b, _c;
18172
18179
  const { step, globalError, onAction } = props;
@@ -18175,20 +18182,20 @@ function DynamicFlowStep(props) {
18175
18182
  const { requiresManualTrigger, dismissConfirmation } = useExternal(externalUrl);
18176
18183
  if (step === void 0) {
18177
18184
  if (globalError) {
18178
- return /* @__PURE__ */ jsx73(DynamicAlert_default, { component: { context: "negative", markdown: globalError, margin: "lg" } });
18185
+ return /* @__PURE__ */ jsx74(DynamicAlert_default, { component: { context: "negative", markdown: globalError, margin: "lg" } });
18179
18186
  }
18180
18187
  return null;
18181
18188
  }
18182
18189
  if (externalUrl && requiresManualTrigger) {
18183
- return /* @__PURE__ */ jsx73(ExternalConfirmationStep_default, { url: externalUrl, onClose: dismissConfirmation });
18190
+ return /* @__PURE__ */ jsx74(ExternalConfirmationStep_default, { url: externalUrl, onClose: dismissConfirmation });
18184
18191
  }
18185
18192
  if (isCameraStep(step)) {
18186
- return /* @__PURE__ */ jsx73(CameraStep_default, __spreadProps(__spreadValues({}, props), { step }));
18193
+ return /* @__PURE__ */ jsx74(CameraStep_default, __spreadProps(__spreadValues({}, props), { step }));
18187
18194
  }
18188
18195
  return /* @__PURE__ */ jsxs32(Fragment17, { children: [
18189
- backButton && /* @__PURE__ */ jsx73(BackButton_default, __spreadProps(__spreadValues({}, backButton), { onAction })),
18190
- globalError ? /* @__PURE__ */ jsx73(DynamicAlert_default, { component: { context: "negative", markdown: globalError, margin: "lg" } }) : null,
18191
- /* @__PURE__ */ jsx73(LayoutStep_default, __spreadProps(__spreadValues({}, props), { stepSpecification: step }))
18196
+ backButton && /* @__PURE__ */ jsx74(BackButton_default, __spreadProps(__spreadValues({}, backButton), { onAction })),
18197
+ globalError ? /* @__PURE__ */ jsx74(DynamicAlert_default, { component: { context: "negative", markdown: globalError, margin: "lg" } }) : null,
18198
+ /* @__PURE__ */ jsx74(LayoutStep_default, __spreadProps(__spreadValues({}, props), { stepSpecification: step }))
18192
18199
  ] });
18193
18200
  }
18194
18201
 
@@ -18337,7 +18344,7 @@ var isInlineSchema = (schema) => schema !== void 0 && typeof schema === "object"
18337
18344
  // src/legacy/dynamicFlow/utils/useLoader.tsx
18338
18345
  import { Loader as Loader3, Size as Size4 } from "@transferwise/components";
18339
18346
  import { useState as useState26 } from "react";
18340
- import { jsx as jsx74 } from "react/jsx-runtime";
18347
+ import { jsx as jsx75 } from "react/jsx-runtime";
18341
18348
  function useLoader(loaderConfig, initialState) {
18342
18349
  const config = __spreadValues({
18343
18350
  size: Size4.EXTRA_LARGE,
@@ -18346,7 +18353,7 @@ function useLoader(loaderConfig, initialState) {
18346
18353
  }, loaderConfig);
18347
18354
  const [loadingState, setLoadingState] = useState26(initialState);
18348
18355
  const shouldDisplayLoader = config.initial && loadingState === "initial" || config.submission && loadingState === "submission";
18349
- const loader = shouldDisplayLoader ? /* @__PURE__ */ jsx74(
18356
+ const loader = shouldDisplayLoader ? /* @__PURE__ */ jsx75(
18350
18357
  Loader3,
18351
18358
  {
18352
18359
  size: config.size,
@@ -18466,7 +18473,7 @@ var useErrorResponse = () => {
18466
18473
  };
18467
18474
 
18468
18475
  // src/legacy/dynamicFlow/DynamicFlow.tsx
18469
- import { jsx as jsx75 } from "react/jsx-runtime";
18476
+ import { jsx as jsx76 } from "react/jsx-runtime";
18470
18477
  var noop7 = () => {
18471
18478
  };
18472
18479
  var DynamicFlowComponent = ({
@@ -18476,6 +18483,7 @@ var DynamicFlowComponent = ({
18476
18483
  initialStep,
18477
18484
  loaderConfig,
18478
18485
  displayStepTitle = true,
18486
+ features,
18479
18487
  onCompletion,
18480
18488
  onError,
18481
18489
  onEvent = noop7,
@@ -18708,7 +18716,7 @@ var DynamicFlowComponent = ({
18708
18716
  await performAction(action);
18709
18717
  }
18710
18718
  };
18711
- return /* @__PURE__ */ jsx75(LogProvider, { flowId, stepId: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), onLog, children: /* @__PURE__ */ jsx75(EventsContextProvider, { metadata: analyticsMetadata, onEvent, children: /* @__PURE__ */ jsx75(DynamicFlowProvider, { loading: isLoading || isDebouncing, children: /* @__PURE__ */ jsx75(HttpClientProvider, { httpClient, children: loader !== null ? loader : /* @__PURE__ */ jsx75("div", { id: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), className: "dynamic-flow-legacy", children: /* @__PURE__ */ jsx75(
18719
+ return /* @__PURE__ */ jsx76(LogProvider, { flowId, stepId: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), onLog, children: /* @__PURE__ */ jsx76(EventsContextProvider, { metadata: analyticsMetadata, onEvent, children: /* @__PURE__ */ jsx76(DynamicFlowProvider, { loading: isLoading || isDebouncing, children: /* @__PURE__ */ jsx76(HttpClientProvider, { httpClient, children: /* @__PURE__ */ jsx76(FeatureContextProvider, { features, children: loader !== null ? loader : /* @__PURE__ */ jsx76("div", { id: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), className: "dynamic-flow-legacy", children: /* @__PURE__ */ jsx76(
18712
18720
  DynamicFlowStep,
18713
18721
  {
18714
18722
  step,
@@ -18722,10 +18730,10 @@ var DynamicFlowComponent = ({
18722
18730
  },
18723
18731
  onModelChange
18724
18732
  }
18725
- ) }) }) }) }) });
18733
+ ) }) }) }) }) }) });
18726
18734
  };
18727
18735
  function DynamicFlow(props) {
18728
- return /* @__PURE__ */ jsx75(ErrorBoundary_default, { onError: props.onError, children: /* @__PURE__ */ jsx75(DynamicFlowComponent, __spreadValues({}, props)) });
18736
+ return /* @__PURE__ */ jsx76(ErrorBoundary_default, { onError: props.onError, children: /* @__PURE__ */ jsx76(DynamicFlowComponent, __spreadValues({}, props)) });
18729
18737
  }
18730
18738
  var DynamicFlow_default = DynamicFlow;
18731
18739
  var combineModels2 = (formModels) => Object.values(formModels).reduce((previous, model) => __spreadValues(__spreadValues({}, previous), model), {});
@@ -18742,19 +18750,19 @@ var shouldTriggerRefresh = (props) => {
18742
18750
  };
18743
18751
 
18744
18752
  // src/legacy/jsonSchemaForm/JsonSchemaForm.tsx
18745
- import { jsx as jsx76 } from "react/jsx-runtime";
18753
+ import { jsx as jsx77 } from "react/jsx-runtime";
18746
18754
  function JsonSchemaForm(props) {
18747
18755
  const schemaProps = __spreadValues({
18748
18756
  model: null,
18749
18757
  errors: null
18750
18758
  }, props);
18751
18759
  const { baseUrl = "", onEvent = noop8, onLog = noop8 } = props;
18752
- return /* @__PURE__ */ jsx76(LogProvider, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog, children: /* @__PURE__ */ jsx76(
18760
+ return /* @__PURE__ */ jsx77(LogProvider, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog, children: /* @__PURE__ */ jsx77(
18753
18761
  EventsContextProvider,
18754
18762
  {
18755
18763
  metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" },
18756
18764
  onEvent,
18757
- children: /* @__PURE__ */ jsx76(HttpClientProviderFromBaseUrl, { baseUrl, children: /* @__PURE__ */ jsx76(GenericSchema_default, __spreadValues({}, schemaProps)) })
18765
+ children: /* @__PURE__ */ jsx77(HttpClientProviderFromBaseUrl, { baseUrl, children: /* @__PURE__ */ jsx77(GenericSchema_default, __spreadValues({}, schemaProps)) })
18758
18766
  }
18759
18767
  ) });
18760
18768
  }