@wise/dynamic-flow-client-internal 5.33.0-experimental-f7c2300 → 5.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/build/dynamicFlow/DynamicFlow.js +11 -0
  2. package/build/dynamicFlow/DynamicFlowModal.js +21 -0
  3. package/build/dynamicFlow/DynamicFlowWiseProps.js +1 -0
  4. package/build/dynamicFlow/DynamicFlowWithRef.js +19 -0
  5. package/build/dynamicFlow/context-menu/useContextMenu.js +33 -0
  6. package/build/dynamicFlow/context-menu/useDFContextMenu.js +135 -0
  7. package/build/dynamicFlow/context-menu/useDFContextMenu.test.js +101 -0
  8. package/build/dynamicFlow/getMergedRenderers.js +36 -0
  9. package/build/dynamicFlow/messages.js +13 -0
  10. package/build/dynamicFlow/renderers.js +10 -0
  11. package/build/dynamicFlow/telemetry/app-version.js +4 -0
  12. package/build/dynamicFlow/telemetry/dispatchAnalyticsEvent.js +8 -0
  13. package/build/dynamicFlow/telemetry/getLogEvent.js +22 -0
  14. package/build/dynamicFlow/telemetry/getTrackEvent.js +39 -0
  15. package/build/dynamicFlow/telemetry/index.js +2 -0
  16. package/build/dynamicFlow/useCreateSnackBar.js +9 -0
  17. package/build/dynamicFlow/useOnCopy.js +16 -0
  18. package/build/dynamicFlow/useWiseHttpClient.js +24 -0
  19. package/build/dynamicFlow/useWiseToCoreProps.js +42 -0
  20. package/build/i18n/en.json +0 -2
  21. package/build/i18n/index.js +43 -0
  22. package/build/index.js +6 -0
  23. package/build/main.css +0 -24
  24. package/build/main.js +802 -1111
  25. package/build/main.mjs +586 -900
  26. package/build/stories/ButtonLoader.story.js +109 -0
  27. package/build/stories/ContainerQueries.story.js +74 -0
  28. package/build/stories/DynamicFlow.story.js +37 -0
  29. package/build/stories/DynamicFlowWithRef.story.js +72 -0
  30. package/build/stories/Editable.story.js +58 -0
  31. package/build/stories/Initialisation.story.js +33 -0
  32. package/build/stories/PinnedButtons.story.js +94 -0
  33. package/build/stories/SCAIntegration.story.js +67 -0
  34. package/build/stories/utils/fixtureHttpClient.js +59 -0
  35. package/build/test-utils/NeptuneProviders.js +11 -0
  36. package/build/test-utils/index.js +4 -0
  37. package/build/test-utils/respond-with.js +6 -0
  38. package/build/test-utils/rtl-utils.js +7 -0
  39. package/build/test-utils/wait.js +3 -0
  40. package/build/tests/DynamicFlow.test.js +177 -0
  41. package/build/tests/HideStepTitle.test.js +58 -0
  42. package/build/tests/RequestCache.test.js +34 -0
  43. package/build/tests/SCARejectionHandling.test.js +71 -0
  44. package/build/tests/Subflow.Wise.test.js +650 -0
  45. package/build/tests/events.test.js +124 -0
  46. package/build/tests/logging.test.js +12 -0
  47. package/build/tests/onNotification.test.js +96 -0
  48. package/build/tests/renderers/ControlAndTags.test.js +225 -0
  49. package/build/tests/renderers/ImageRenderer.test.js +129 -0
  50. package/build/tests/renderers/RadioInputRendererComponent.test.js +89 -0
  51. package/build/tests/renderers/ReviewRenderer.test.js +41 -0
  52. package/build/tests/renderers/TextInputRenderer.test.js +245 -0
  53. package/build/tests/renderers/TimeZoneHeader.test.js +19 -0
  54. package/build/tests/renderers/UploadInputRenderer.maxSize.test.js +22 -0
  55. package/build/tests/renderers/value-utils.test.js +24 -0
  56. package/build/tsconfig.types.tsbuildinfo +1 -1
  57. package/package.json +5 -5
package/build/main.mjs CHANGED
@@ -64,7 +64,7 @@ var require_classnames = __commonJS({
64
64
  (function() {
65
65
  "use strict";
66
66
  var hasOwn = {}.hasOwnProperty;
67
- function classNames38() {
67
+ function classNames37() {
68
68
  var classes = "";
69
69
  for (var i = 0; i < arguments.length; i++) {
70
70
  var arg = arguments[i];
@@ -82,7 +82,7 @@ var require_classnames = __commonJS({
82
82
  return "";
83
83
  }
84
84
  if (Array.isArray(arg)) {
85
- return classNames38.apply(null, arg);
85
+ return classNames37.apply(null, arg);
86
86
  }
87
87
  if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
88
88
  return arg.toString();
@@ -105,14 +105,14 @@ var require_classnames = __commonJS({
105
105
  return value + newClass;
106
106
  }
107
107
  if (typeof module !== "undefined" && module.exports) {
108
- classNames38.default = classNames38;
109
- module.exports = classNames38;
108
+ classNames37.default = classNames37;
109
+ module.exports = classNames37;
110
110
  } else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
111
111
  define("classnames", [], function() {
112
- return classNames38;
112
+ return classNames37;
113
113
  });
114
114
  } else {
115
- window.classNames = classNames38;
115
+ window.classNames = classNames37;
116
116
  }
117
117
  })();
118
118
  }
@@ -127,7 +127,7 @@ import { useDynamicFlow } from "@wise/dynamic-flow-client";
127
127
  // src/dynamicFlow/telemetry/app-version.ts
128
128
  var appVersion = (
129
129
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
130
- typeof process !== "undefined" ? "5.32.0" : "0.0.0"
130
+ typeof process !== "undefined" ? "5.33.0" : "0.0.0"
131
131
  );
132
132
 
133
133
  // src/dynamicFlow/context-menu/useContextMenu.tsx
@@ -1643,9 +1643,8 @@ var getInlineAlertOrValidation = (validationState, inlineAlert) => {
1643
1643
  };
1644
1644
  var CheckboxInputRenderer_default = CheckboxInputRenderer;
1645
1645
 
1646
- // ../renderers/src/CollectionRenderer/CollectionRendererComponent.tsx
1646
+ // ../renderers/src/CollectionRenderer/CollectionRenderer.tsx
1647
1647
  import { InlinePrompt, Link as DSLink } from "@transferwise/components";
1648
- import { AnimatePresence, motion, MotionConfig } from "motion/react";
1649
1648
 
1650
1649
  // ../renderers/src/messages/generic-error.messages.ts
1651
1650
  import { defineMessages as defineMessages3 } from "react-intl";
@@ -1667,58 +1666,6 @@ var generic_error_messages_default = defineMessages3({
1667
1666
  }
1668
1667
  });
1669
1668
 
1670
- // ../renderers/src/CollectionRenderer/CollectionRendererComponent.tsx
1671
- import { useIntl as useIntl3 } from "react-intl";
1672
- import { jsx as jsx35, jsxs as jsxs6 } from "react/jsx-runtime";
1673
- var CollectionRendererComponent = (props) => {
1674
- const { state, depth, pop, Search: Search5, Filters, Results, FocusedResults } = props;
1675
- const { status, search } = state;
1676
- const isForked = depth > 0;
1677
- const isError = status.type === "error" && (status.reason === "search" || status.reason === "filter");
1678
- return /* @__PURE__ */ jsx35(
1679
- "div",
1680
- {
1681
- role: "presentation",
1682
- onBlur: (event) => {
1683
- const { target, relatedTarget, currentTarget } = event;
1684
- const lostFocus = relatedTarget === null && (!target.isConnected || target.matches(":disabled"));
1685
- if (isForked && !(search == null ? void 0 : search.query) && !lostFocus && !currentTarget.contains(relatedTarget)) {
1686
- pop();
1687
- }
1688
- },
1689
- children: /* @__PURE__ */ jsxs6(MotionConfig, { reducedMotion: "user", children: [
1690
- /* @__PURE__ */ jsx35(Search5, __spreadValues({}, props)),
1691
- /* @__PURE__ */ jsx35(Filters, __spreadValues({}, props)),
1692
- /* @__PURE__ */ jsx35(AnimatePresence, { mode: "wait", initial: false, children: /* @__PURE__ */ jsx35(
1693
- motion.div,
1694
- {
1695
- variants: contentVariants,
1696
- initial: "enter",
1697
- animate: "visible",
1698
- exit: "exit",
1699
- transition: { duration: 0.15, ease: "easeOut" },
1700
- children: isError ? /* @__PURE__ */ jsx35(SearchError, { retry: status.retry }) : isForked ? /* @__PURE__ */ jsx35(FocusedResults, __spreadValues({}, props)) : /* @__PURE__ */ jsx35(Results, __spreadValues({}, props))
1701
- },
1702
- isForked ? "forked" : "root"
1703
- ) })
1704
- ] })
1705
- }
1706
- );
1707
- };
1708
- var contentVariants = {
1709
- enter: () => ({ opacity: 0, y: 12 }),
1710
- visible: { opacity: 1, y: 0 },
1711
- exit: () => ({ opacity: 0, y: -12 })
1712
- };
1713
- var SearchError = ({ retry }) => {
1714
- const { formatMessage } = useIntl3();
1715
- return /* @__PURE__ */ jsxs6(InlinePrompt, { width: "full", sentiment: "negative", children: [
1716
- formatMessage(generic_error_messages_default.genericError),
1717
- "\xA0",
1718
- /* @__PURE__ */ jsx35(DSLink, { onClick: retry, children: formatMessage(generic_error_messages_default.retry) })
1719
- ] });
1720
- };
1721
-
1722
1669
  // ../../node_modules/.pnpm/@tanstack+react-virtual@3.14.10_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-virtual/dist/esm/index.js
1723
1670
  import * as React from "react";
1724
1671
  import { flushSync } from "react-dom";
@@ -3255,14 +3202,14 @@ function useWindowVirtualizer(options) {
3255
3202
  }, options));
3256
3203
  }
3257
3204
 
3258
- // ../renderers/src/CollectionRenderer/components/VirtualisedContentComponent.tsx
3205
+ // ../renderers/src/CollectionRenderer/components/ContentComponent.tsx
3259
3206
  import { ProcessIndicator, Button as Button4 } from "@transferwise/components";
3260
3207
  import { useRef as useRef4, useEffect as useEffect7, useLayoutEffect as useLayoutEffect2, useState as useState8 } from "react";
3261
3208
 
3262
3209
  // ../renderers/src/step/StepFooter.tsx
3263
3210
  import { Button as Button3 } from "@transferwise/components";
3264
3211
  import { useEffect as useEffect6, useRef as useRef3, useState as useState7 } from "react";
3265
- import { useIntl as useIntl4 } from "react-intl";
3212
+ import { useIntl as useIntl3 } from "react-intl";
3266
3213
 
3267
3214
  // ../renderers/src/messages/step.messages.ts
3268
3215
  import { defineMessages as defineMessages4 } from "react-intl";
@@ -3275,23 +3222,23 @@ var step_messages_default = defineMessages4({
3275
3222
  });
3276
3223
 
3277
3224
  // ../renderers/src/step/StepFooter.tsx
3278
- import { Fragment as Fragment2, jsx as jsx36, jsxs as jsxs7 } from "react/jsx-runtime";
3225
+ import { Fragment as Fragment2, jsx as jsx35, jsxs as jsxs6 } from "react/jsx-runtime";
3279
3226
  var SCROLL_TO_BOTTOM = "scroll-to-bottom";
3280
3227
  var StepFooter = ({ footer, tags }) => {
3281
3228
  if (tags == null ? void 0 : tags.includes(SCROLL_TO_BOTTOM)) {
3282
- return /* @__PURE__ */ jsx36(FooterWithScrollButton, { footer });
3229
+ return /* @__PURE__ */ jsx35(FooterWithScrollButton, { footer });
3283
3230
  }
3284
- return /* @__PURE__ */ jsx36(DefaultFooter, { footer });
3231
+ return /* @__PURE__ */ jsx35(DefaultFooter, { footer });
3285
3232
  };
3286
3233
  var DefaultFooter = ({ footer }) => {
3287
3234
  const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
3288
- return hasFooter ? /* @__PURE__ */ jsx36("div", { className: "df-step-fixed__footer", children: footer }) : void 0;
3235
+ return hasFooter ? /* @__PURE__ */ jsx35("div", { className: "df-step-fixed__footer", children: footer }) : void 0;
3289
3236
  };
3290
3237
  var FooterWithScrollButton = ({ footer }) => {
3291
- const { formatMessage } = useIntl4();
3238
+ const { formatMessage } = useIntl3();
3292
3239
  const endOfLayoutRef = useRef3(null);
3293
3240
  const isElementVisible = useIsElementVisible(endOfLayoutRef);
3294
- const scrollButton = /* @__PURE__ */ jsx36(
3241
+ const scrollButton = /* @__PURE__ */ jsx35(
3295
3242
  Button3,
3296
3243
  {
3297
3244
  className: "m-b-1",
@@ -3307,11 +3254,11 @@ var FooterWithScrollButton = ({ footer }) => {
3307
3254
  );
3308
3255
  const hasStepFooterContent = footer && Array.isArray(footer) && footer.length > 0;
3309
3256
  if (isElementVisible && !hasStepFooterContent) {
3310
- return /* @__PURE__ */ jsx36("div", { ref: endOfLayoutRef, "aria-hidden": "true" });
3257
+ return /* @__PURE__ */ jsx35("div", { ref: endOfLayoutRef, "aria-hidden": "true" });
3311
3258
  }
3312
- return /* @__PURE__ */ jsxs7(Fragment2, { children: [
3313
- /* @__PURE__ */ jsx36("div", { ref: endOfLayoutRef, "aria-hidden": "true" }),
3314
- /* @__PURE__ */ jsxs7("div", { className: "df-step-fixed__footer", children: [
3259
+ return /* @__PURE__ */ jsxs6(Fragment2, { children: [
3260
+ /* @__PURE__ */ jsx35("div", { ref: endOfLayoutRef, "aria-hidden": "true" }),
3261
+ /* @__PURE__ */ jsxs6("div", { className: "df-step-fixed__footer", children: [
3315
3262
  !isElementVisible && scrollButton,
3316
3263
  footer
3317
3264
  ] })
@@ -3334,8 +3281,8 @@ var useIsElementVisible = (elementRef, root = null) => {
3334
3281
  return isVisible;
3335
3282
  };
3336
3283
 
3337
- // ../renderers/src/CollectionRenderer/components/VirtualisedContentComponent.tsx
3338
- import { useIntl as useIntl5 } from "react-intl";
3284
+ // ../renderers/src/CollectionRenderer/components/ContentComponent.tsx
3285
+ import { useIntl as useIntl4 } from "react-intl";
3339
3286
 
3340
3287
  // ../renderers/src/messages/collection.messages.ts
3341
3288
  import { defineMessages as defineMessages5 } from "react-intl";
@@ -3349,16 +3296,6 @@ var collection_messages_default = defineMessages5({
3349
3296
  id: "df.wise.Collection.clearText",
3350
3297
  defaultMessage: "Clear text",
3351
3298
  description: "A message shown at the edge of the search bar to clear the users query"
3352
- },
3353
- showMoreResultsButton: {
3354
- id: "df.wise.Collection.showMoreResultsButton",
3355
- defaultMessage: "Show all {count} results",
3356
- description: "A message shown at the bottom of a truncated list of items, clicking will expand to show more"
3357
- },
3358
- showLessResultsButton: {
3359
- id: "df.wise.Collection.showLessResultsButton",
3360
- defaultMessage: "Show less results",
3361
- description: "A message shown at the bottom of an expanded list of items, clicking will truncate to show only a few"
3362
3299
  }
3363
3300
  });
3364
3301
 
@@ -3382,48 +3319,10 @@ var getScrollableAncestor = (element) => {
3382
3319
  return null;
3383
3320
  };
3384
3321
 
3385
- // ../renderers/src/CollectionRenderer/components/flattenCollectionItems.ts
3386
- var flattenCollectionItems = (sections) => {
3387
- return sections.flatMap((section) => {
3388
- if (section.type === "items") {
3389
- return flattenItemsBody(section);
3390
- }
3391
- if (section.type === "layout") {
3392
- return flattenLayoutBody(section);
3393
- }
3394
- return [];
3395
- });
3396
- };
3397
- var flattenItemsBody = (section) => {
3398
- return [
3399
- ...flattenSectionHeader(section),
3400
- ...section.items.map((item) => ({
3401
- item,
3402
- type: "item"
3403
- }))
3404
- ];
3405
- };
3406
- var flattenLayoutBody = (section) => [
3407
- ...flattenSectionHeader(section),
3408
- __spreadProps(__spreadValues({}, section), {
3409
- type: "layout"
3410
- })
3411
- ];
3412
- var flattenSectionHeader = (section) => section.title ? [
3413
- {
3414
- type: "header",
3415
- title: section.title,
3416
- items: section.type === "items" ? section.items : void 0,
3417
- id: section.id,
3418
- callToAction: section.callToAction
3419
- }
3420
- ] : [];
3421
-
3422
- // ../renderers/src/CollectionRenderer/components/VirtualisedContentComponent.tsx
3423
- import { jsx as jsx37, jsxs as jsxs8 } from "react/jsx-runtime";
3424
- var VirtualisedContentComponent = (props) => {
3425
- const { state, SectionHeader, Item } = props;
3426
- const { status } = state;
3322
+ // ../renderers/src/CollectionRenderer/components/ContentComponent.tsx
3323
+ import { jsx as jsx36, jsxs as jsxs7 } from "react/jsx-runtime";
3324
+ var ContentComponent = (props) => {
3325
+ const { state, status, SectionHeader, Item } = props;
3427
3326
  const contentRef = useRef4(null);
3428
3327
  const [scrollElement, setScrollElement] = useState8(null);
3429
3328
  useLayoutEffect2(() => {
@@ -3440,20 +3339,34 @@ var VirtualisedContentComponent = (props) => {
3440
3339
  status.loadMore();
3441
3340
  }
3442
3341
  }, [isBottomVisible, state.afterSectionsProps.length, status]);
3443
- const stateCount = state.sections.reduce((total, section) => {
3444
- const count = section.type === "items" ? section.items.length : 1;
3445
- return count + total + (section.title ? 1 : 0);
3446
- }, 0);
3447
- const items = flattenCollectionItems(state.sections);
3342
+ const stateCount = state.sections.reduce(
3343
+ (total, section) => section.items.length + total + (section.title ? 1 : 0),
3344
+ 0
3345
+ );
3346
+ const items = state.sections.flatMap((section) => [
3347
+ ...section.title ? [
3348
+ {
3349
+ type: "header",
3350
+ title: section.title,
3351
+ items: section.items,
3352
+ id: section.id,
3353
+ callToAction: section.callToAction
3354
+ }
3355
+ ] : [],
3356
+ ...section.items.map((item) => ({
3357
+ item,
3358
+ type: "item"
3359
+ }))
3360
+ ]);
3448
3361
  const listRef = useRef4(null);
3449
3362
  const listOffsetRef = useRef4(0);
3450
3363
  useLayoutEffect2(() => {
3451
3364
  var _a, _b;
3452
3365
  listOffsetRef.current = (_b = (_a = listRef.current) == null ? void 0 : _a.offsetTop) != null ? _b : 0;
3453
3366
  });
3454
- return /* @__PURE__ */ jsxs8("div", { ref: contentRef, children: [
3367
+ return /* @__PURE__ */ jsxs7("div", { ref: contentRef, children: [
3455
3368
  state.beforeSections,
3456
- scrollElement ? /* @__PURE__ */ jsx37(
3369
+ scrollElement ? /* @__PURE__ */ jsx36(
3457
3370
  ElementVirtualizedItems,
3458
3371
  {
3459
3372
  Item,
@@ -3462,7 +3375,7 @@ var VirtualisedContentComponent = (props) => {
3462
3375
  scrollElement,
3463
3376
  stateCount
3464
3377
  }
3465
- ) : /* @__PURE__ */ jsx37(
3378
+ ) : /* @__PURE__ */ jsx36(
3466
3379
  WindowVirtualizedItems,
3467
3380
  {
3468
3381
  Item,
@@ -3471,7 +3384,7 @@ var VirtualisedContentComponent = (props) => {
3471
3384
  stateCount
3472
3385
  }
3473
3386
  ),
3474
- /* @__PURE__ */ jsx37("div", { ref: endOfContentRef, className: "d-flex m-x-auto m-y-2", children: /* @__PURE__ */ jsx37(PaginationComponent, { state }) }),
3387
+ /* @__PURE__ */ jsx36("div", { ref: endOfContentRef, className: "d-flex m-x-auto m-y-2", children: /* @__PURE__ */ jsx36(PaginationComponent, { status, state }) }),
3475
3388
  state.afterSections
3476
3389
  ] });
3477
3390
  };
@@ -3483,7 +3396,7 @@ var WindowVirtualizedItems = (props) => {
3483
3396
  estimateSize: () => 120,
3484
3397
  overscan: 10
3485
3398
  });
3486
- return /* @__PURE__ */ jsx37(VirtualizedItems, __spreadProps(__spreadValues({}, props), { virtualItemsRef, virtualizer }));
3399
+ return /* @__PURE__ */ jsx36(VirtualizedItems, __spreadProps(__spreadValues({}, props), { virtualItemsRef, virtualizer }));
3487
3400
  };
3488
3401
  var ElementVirtualizedItems = (props) => {
3489
3402
  const { scrollElement, stateCount } = props;
@@ -3494,7 +3407,7 @@ var ElementVirtualizedItems = (props) => {
3494
3407
  estimateSize: () => 120,
3495
3408
  overscan: 10
3496
3409
  });
3497
- return /* @__PURE__ */ jsx37(VirtualizedItems, __spreadProps(__spreadValues({}, props), { virtualItemsRef, virtualizer }));
3410
+ return /* @__PURE__ */ jsx36(VirtualizedItems, __spreadProps(__spreadValues({}, props), { virtualItemsRef, virtualizer }));
3498
3411
  };
3499
3412
  var VirtualizedItems = ({
3500
3413
  Item,
@@ -3502,7 +3415,7 @@ var VirtualizedItems = ({
3502
3415
  items,
3503
3416
  virtualItemsRef,
3504
3417
  virtualizer
3505
- }) => /* @__PURE__ */ jsx37(
3418
+ }) => /* @__PURE__ */ jsx36(
3506
3419
  "div",
3507
3420
  {
3508
3421
  ref: virtualItemsRef,
@@ -3516,7 +3429,7 @@ var VirtualizedItems = ({
3516
3429
  if (!i) {
3517
3430
  return null;
3518
3431
  }
3519
- return /* @__PURE__ */ jsxs8(
3432
+ return /* @__PURE__ */ jsx36(
3520
3433
  "div",
3521
3434
  {
3522
3435
  ref: virtualizer.measureElement,
@@ -3528,19 +3441,17 @@ var VirtualizedItems = ({
3528
3441
  width: "100%",
3529
3442
  transform: `translateY(${item.start - virtualizer.options.scrollMargin}px)`
3530
3443
  },
3531
- children: [
3532
- i.type === "header" && /* @__PURE__ */ jsx37(SectionHeader, __spreadValues({}, i)),
3533
- i.type === "item" && /* @__PURE__ */ jsx37(Item, __spreadValues({}, i.item)),
3534
- i.type === "layout" && i.children
3535
- ]
3444
+ children: i.type === "header" ? /* @__PURE__ */ jsx36(SectionHeader, __spreadValues({}, i)) : /* @__PURE__ */ jsx36(Item, __spreadValues({}, i.item))
3536
3445
  },
3537
3446
  item.key
3538
3447
  );
3539
3448
  })
3540
3449
  }
3541
3450
  );
3542
- var PaginationComponent = ({ state }) => {
3543
- const { status } = state;
3451
+ var PaginationComponent = ({
3452
+ status,
3453
+ state
3454
+ }) => {
3544
3455
  const isPaginationError = status.type === "error" && status.reason === "pagination";
3545
3456
  const isPaginationLoading = status.type === "loading" && status.reason === "pagination";
3546
3457
  const loadMore = status.type === "idle" ? status.loadMore : void 0;
@@ -3548,41 +3459,34 @@ var PaginationComponent = ({ state }) => {
3548
3459
  return null;
3549
3460
  }
3550
3461
  if (isPaginationError) {
3551
- return /* @__PURE__ */ jsx37(LoadMoreButton, { onClick: status.retry });
3462
+ return /* @__PURE__ */ jsx36(LoadMoreButton, { onClick: status.retry });
3552
3463
  }
3553
3464
  if (state.afterSectionsProps.length > 0 && loadMore) {
3554
- return /* @__PURE__ */ jsx37(LoadMoreButton, { onClick: loadMore });
3465
+ return /* @__PURE__ */ jsx36(LoadMoreButton, { onClick: loadMore });
3555
3466
  }
3556
- return /* @__PURE__ */ jsx37(ProcessIndicator, { size: "xs", "data-testid": "collection-pagination-loader" });
3467
+ return /* @__PURE__ */ jsx36(ProcessIndicator, { size: "xs", "data-testid": "collection-pagination-loader" });
3557
3468
  };
3558
3469
  var LoadMoreButton = ({ onClick }) => {
3559
- const { formatMessage } = useIntl5();
3560
- return /* @__PURE__ */ jsx37("div", { className: "d-flex m-x-auto", children: /* @__PURE__ */ jsx37(Button4, { v2: true, size: "sm", priority: "secondary-neutral", onClick, children: formatMessage(collection_messages_default.loadMoreButton) }) });
3470
+ const { formatMessage } = useIntl4();
3471
+ return /* @__PURE__ */ jsx36("div", { className: "d-flex m-x-auto", children: /* @__PURE__ */ jsx36(Button4, { v2: true, size: "sm", priority: "secondary-neutral", onClick, children: formatMessage(collection_messages_default.loadMoreButton) }) });
3561
3472
  };
3562
3473
 
3563
- // ../renderers/src/CollectionRenderer/v1/FilterComponent.tsx
3474
+ // ../renderers/src/CollectionRenderer/components/FilterComponent.tsx
3564
3475
  import { Chips } from "@transferwise/components";
3565
- import { jsx as jsx38 } from "react/jsx-runtime";
3566
- var FiltersComponent = (props) => {
3567
- const _a = props, { Filter } = _a, collectionProps = __objRest(_a, ["Filter"]);
3568
- const { filters } = collectionProps.state;
3569
- return /* @__PURE__ */ jsx38("div", { className: "df-filters-container", children: filters.map((filter) => {
3570
- var _a2;
3571
- return /* @__PURE__ */ jsx38(
3572
- Filter,
3573
- __spreadProps(__spreadValues({}, collectionProps), {
3574
- filter
3575
- }),
3576
- JSON.stringify((_a2 = filter.options) == null ? void 0 : _a2.map((o) => o.value))
3577
- );
3476
+ import { jsx as jsx37 } from "react/jsx-runtime";
3477
+ var FiltersComponent = ({ state }) => {
3478
+ const { filters } = state;
3479
+ return /* @__PURE__ */ jsx37("div", { className: "df-filters-container", children: filters.map((filter) => {
3480
+ var _a;
3481
+ return /* @__PURE__ */ jsx37(FilterComponent, __spreadValues({}, filter), JSON.stringify((_a = filter.options) == null ? void 0 : _a.map((o) => o.value)));
3578
3482
  }) });
3579
3483
  };
3580
- var FilterComponent = ({ filter }) => {
3484
+ var FilterComponent = (filter) => {
3581
3485
  const { multiSelect, options } = filter;
3582
3486
  if (!options) {
3583
3487
  return null;
3584
3488
  }
3585
- return /* @__PURE__ */ jsx38(
3489
+ return /* @__PURE__ */ jsx37(
3586
3490
  Chips,
3587
3491
  {
3588
3492
  className: "m-b-1",
@@ -3612,7 +3516,7 @@ import { ListItem as ListItem6 } from "@transferwise/components";
3612
3516
 
3613
3517
  // ../renderers/src/utils/listItem/getAdditionalInfo.tsx
3614
3518
  import { ListItem as ListItem4 } from "@transferwise/components";
3615
- import { jsx as jsx39 } from "react/jsx-runtime";
3519
+ import { jsx as jsx38 } from "react/jsx-runtime";
3616
3520
  var getAdditionalInfo = (additionalInfo) => {
3617
3521
  var _a, _b;
3618
3522
  if (!additionalInfo) {
@@ -3620,7 +3524,7 @@ var getAdditionalInfo = (additionalInfo) => {
3620
3524
  }
3621
3525
  const { href, text, onClick } = additionalInfo;
3622
3526
  if (href || onClick) {
3623
- return /* @__PURE__ */ jsx39(
3527
+ return /* @__PURE__ */ jsx38(
3624
3528
  ListItem4.AdditionalInfo,
3625
3529
  {
3626
3530
  action: __spreadValues({
@@ -3629,19 +3533,19 @@ var getAdditionalInfo = (additionalInfo) => {
3629
3533
  }
3630
3534
  );
3631
3535
  }
3632
- return /* @__PURE__ */ jsx39(ListItem4.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
3536
+ return /* @__PURE__ */ jsx38(ListItem4.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
3633
3537
  };
3634
3538
 
3635
3539
  // ../renderers/src/utils/listItem/getCTAControl.tsx
3636
3540
  import { ListItem as ListItem5 } from "@transferwise/components";
3637
- import { jsx as jsx40 } from "react/jsx-runtime";
3541
+ import { jsx as jsx39 } from "react/jsx-runtime";
3638
3542
  var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
3639
3543
  if (!callToAction) {
3640
3544
  return void 0;
3641
3545
  }
3642
3546
  const { accessibilityDescription, title, context } = callToAction;
3643
3547
  const { priority, sentiment } = getPriorityAndSentiment(ctaSecondary, context);
3644
- return /* @__PURE__ */ jsx40(
3548
+ return /* @__PURE__ */ jsx39(
3645
3549
  ListItem5.Button,
3646
3550
  __spreadProps(__spreadValues({}, callToAction.getAnchorProps()), {
3647
3551
  partiallyInteractive: !fullyInteractive,
@@ -3666,7 +3570,7 @@ var shouldUseAvatar = (control, tags) => {
3666
3570
  };
3667
3571
 
3668
3572
  // ../renderers/src/CollectionRenderer/components/ItemComponent.tsx
3669
- import { jsx as jsx41 } from "react/jsx-runtime";
3573
+ import { jsx as jsx40 } from "react/jsx-runtime";
3670
3574
  var ItemComponent = (props) => {
3671
3575
  var _a, _b;
3672
3576
  const {
@@ -3688,7 +3592,7 @@ var ItemComponent = (props) => {
3688
3592
  ctaSecondary: (_a = tags == null ? void 0 : tags.includes("cta-secondary")) != null ? _a : false,
3689
3593
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
3690
3594
  };
3691
- return /* @__PURE__ */ jsx41(
3595
+ return /* @__PURE__ */ jsx40(
3692
3596
  ListItem6,
3693
3597
  {
3694
3598
  title,
@@ -3705,15 +3609,15 @@ var ItemComponent = (props) => {
3705
3609
  };
3706
3610
  var getNavigationControl = (onClick, href) => {
3707
3611
  if (href) {
3708
- return /* @__PURE__ */ jsx41(ListItem6.Navigation, { href });
3612
+ return /* @__PURE__ */ jsx40(ListItem6.Navigation, { href });
3709
3613
  }
3710
3614
  if (onClick) {
3711
- return /* @__PURE__ */ jsx41(ListItem6.Navigation, { onClick });
3615
+ return /* @__PURE__ */ jsx40(ListItem6.Navigation, { onClick });
3712
3616
  }
3713
3617
  return null;
3714
3618
  };
3715
3619
 
3716
- // ../renderers/src/CollectionRenderer/v1/SearchComponent.tsx
3620
+ // ../renderers/src/CollectionRenderer/components/SearchComponent.tsx
3717
3621
  import {
3718
3622
  InputGroup,
3719
3623
  Input,
@@ -3721,41 +3625,46 @@ import {
3721
3625
  IconButton
3722
3626
  } from "@transferwise/components";
3723
3627
  import { CrossCircleFill, Search } from "@transferwise/icons";
3724
- import { useIntl as useIntl6 } from "react-intl";
3725
- import { jsx as jsx42 } from "react/jsx-runtime";
3726
- var SearchComponent = ({ state, features, control, tags }) => {
3727
- var _a;
3628
+ import { useIntl as useIntl5 } from "react-intl";
3629
+ import { jsx as jsx41 } from "react/jsx-runtime";
3630
+ var SearchComponent = ({
3631
+ state,
3632
+ status,
3633
+ features,
3634
+ control,
3635
+ tags
3636
+ }) => {
3728
3637
  const { search } = state;
3729
- const { formatMessage } = useIntl6();
3638
+ const { formatMessage } = useIntl5();
3730
3639
  if (!search) {
3731
3640
  return;
3732
3641
  }
3733
3642
  const getAddon = () => {
3734
- var _a2;
3735
- if (state.status.type === "loading") {
3736
- return { content: /* @__PURE__ */ jsx42(ProcessIndicator2, { size: "xs", "data-testid": "collection-search-loader" }) };
3643
+ var _a;
3644
+ if (status.type === "loading") {
3645
+ return { content: /* @__PURE__ */ jsx41(ProcessIndicator2, { size: "xs", "data-testid": "collection-search-loader" }) };
3737
3646
  }
3738
- if ((_a2 = state.search) == null ? void 0 : _a2.query) {
3647
+ if ((_a = state.search) == null ? void 0 : _a.query) {
3739
3648
  return {
3740
3649
  interactive: true,
3741
- content: /* @__PURE__ */ jsx42(
3650
+ content: /* @__PURE__ */ jsx41(
3742
3651
  IconButton,
3743
3652
  {
3744
3653
  priority: "minimal",
3745
3654
  size: 24,
3746
3655
  "aria-label": formatMessage(collection_messages_default.clearTextLabel),
3747
3656
  onClick: () => {
3748
- var _a3;
3749
- return (_a3 = state.search) == null ? void 0 : _a3.onChange("");
3657
+ var _a2;
3658
+ return (_a2 = state.search) == null ? void 0 : _a2.onChange("");
3750
3659
  },
3751
- children: /* @__PURE__ */ jsx42(CrossCircleFill, {})
3660
+ children: /* @__PURE__ */ jsx41(CrossCircleFill, {})
3752
3661
  }
3753
3662
  )
3754
3663
  };
3755
3664
  }
3756
3665
  return void 0;
3757
3666
  };
3758
- return /* @__PURE__ */ jsx42(
3667
+ return /* @__PURE__ */ jsx41(
3759
3668
  FieldInput_default,
3760
3669
  {
3761
3670
  id: "search",
@@ -3766,13 +3675,13 @@ var SearchComponent = ({ state, features, control, tags }) => {
3766
3675
  features,
3767
3676
  control,
3768
3677
  tags,
3769
- children: /* @__PURE__ */ jsx42(InputGroup, { addonStart: { content: /* @__PURE__ */ jsx42(Search, { size: 24 }) }, addonEnd: getAddon(), children: /* @__PURE__ */ jsx42(
3678
+ children: /* @__PURE__ */ jsx41(InputGroup, { addonStart: { content: /* @__PURE__ */ jsx41(Search, { size: 24 }) }, addonEnd: getAddon(), children: /* @__PURE__ */ jsx41(
3770
3679
  Input,
3771
3680
  {
3772
3681
  id: "search",
3773
3682
  name: "search",
3774
3683
  shape: "pill",
3775
- placeholder: (_a = search.hints) == null ? void 0 : _a[0],
3684
+ placeholder: search.hint,
3776
3685
  type: "text",
3777
3686
  value: search.query,
3778
3687
  onChange: ({ currentTarget: { value } }) => {
@@ -3785,74 +3694,14 @@ var SearchComponent = ({ state, features, control, tags }) => {
3785
3694
  };
3786
3695
 
3787
3696
  // ../renderers/src/CollectionRenderer/components/SectionHeaderComponent.tsx
3788
- import { jsx as jsx43 } from "react/jsx-runtime";
3697
+ import { jsx as jsx42 } from "react/jsx-runtime";
3789
3698
  var SectionHeaderComponent = ({
3790
3699
  title,
3791
3700
  callToAction
3792
- }) => /* @__PURE__ */ jsx43(Header, { title, callToAction });
3793
-
3794
- // ../renderers/src/CollectionRenderer/components/CollapsibleContentComponent.tsx
3795
- import { useState as useState9 } from "react";
3796
- import { Button as Button5 } from "@transferwise/components";
3797
- import { useIntl as useIntl7 } from "react-intl";
3798
- import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs9 } from "react/jsx-runtime";
3799
- var CollapsibleContentComponent = (props) => {
3800
- var _a;
3801
- const { state, SectionHeader, Item } = props;
3802
- const { search, status } = state;
3803
- const [isShowingInitialState, setIsShowingInitialState] = useState9(true);
3804
- const isSearchRunning = status.type === "loading" && status.reason === "search";
3805
- const shouldShowInitialState = !(search == null ? void 0 : search.query) || isSearchRunning && isShowingInitialState;
3806
- if (shouldShowInitialState !== isShowingInitialState) {
3807
- setIsShowingInitialState(shouldShowInitialState);
3808
- }
3809
- const sections = shouldShowInitialState ? (_a = search == null ? void 0 : search.initialSections) != null ? _a : state.sections : state.sections;
3810
- return (
3811
- // keep focus in the search input when clicking the results, so clicking doesn't blur it and
3812
- // pop the collection before the click is handled
3813
- /* @__PURE__ */ jsx44("div", { role: "presentation", onMouseDown: (event) => event.preventDefault(), children: sections.map((section) => {
3814
- return /* @__PURE__ */ jsx44(Section, { section, SectionHeader, Item }, section.id);
3815
- }) })
3816
- );
3817
- };
3818
- var Section = ({ section, SectionHeader, Item }) => {
3819
- const { formatMessage } = useIntl7();
3820
- const [expanded, setExpanded] = useState9(false);
3821
- const itemIds = section.type === "items" ? section.items.map(({ id }) => id).join("") : section.id;
3822
- const [prevItemIds, setPrevItemIds] = useState9(itemIds);
3823
- if (itemIds !== prevItemIds) {
3824
- setExpanded(false);
3825
- setPrevItemIds(itemIds);
3826
- }
3827
- const showLoadMore = section.type === "items" && section.items.some((item) => {
3828
- var _a;
3829
- return (_a = item.tags) == null ? void 0 : _a.includes("hidden");
3830
- });
3831
- return /* @__PURE__ */ jsxs9(Fragment3, { children: [
3832
- /* @__PURE__ */ jsx44(SectionHeader, __spreadValues({}, section)),
3833
- section.type === "items" && section.items.filter((item) => {
3834
- var _a;
3835
- return expanded || !((_a = item.tags) == null ? void 0 : _a.includes("hidden"));
3836
- }).map((item) => /* @__PURE__ */ jsx44(Item, __spreadValues({}, item), item.id)),
3837
- section.type === "layout" && section.children,
3838
- showLoadMore ? /* @__PURE__ */ jsx44(
3839
- Button5,
3840
- {
3841
- priority: "tertiary",
3842
- onClick: () => {
3843
- setExpanded(!expanded);
3844
- },
3845
- children: expanded ? /* @__PURE__ */ jsxs9("span", { children: [
3846
- formatMessage(collection_messages_default.showLessResultsButton),
3847
- " "
3848
- ] }) : /* @__PURE__ */ jsx44("span", { children: formatMessage(collection_messages_default.showMoreResultsButton, { count: section.items.length }) })
3849
- }
3850
- ) : void 0
3851
- ] });
3852
- };
3701
+ }) => /* @__PURE__ */ jsx42(Header, { title, callToAction });
3853
3702
 
3854
3703
  // ../renderers/src/CollectionRenderer/createCollectionRenderer.tsx
3855
- import { jsx as jsx45 } from "react/jsx-runtime";
3704
+ import { jsx as jsx43 } from "react/jsx-runtime";
3856
3705
  var createCollectionRenderer = (canRender, components) => {
3857
3706
  const componentsWithDefaults = __spreadValues({
3858
3707
  Search: SearchComponent,
@@ -3860,208 +3709,48 @@ var createCollectionRenderer = (canRender, components) => {
3860
3709
  Filter: FilterComponent,
3861
3710
  Item: ItemComponent,
3862
3711
  SectionHeader: SectionHeaderComponent,
3863
- Results: VirtualisedContentComponent,
3864
- FocusedResults: CollapsibleContentComponent
3712
+ Results: ContentComponent
3865
3713
  }, components);
3866
3714
  return {
3867
3715
  canRenderType: "collection",
3868
3716
  canRender,
3869
3717
  render: (props) => {
3870
- return /* @__PURE__ */ jsx45(CollectionRendererComponent, __spreadValues(__spreadValues({}, props), componentsWithDefaults));
3718
+ return /* @__PURE__ */ jsx43(CollectionRendererComponent, __spreadValues(__spreadValues({}, props), componentsWithDefaults));
3871
3719
  }
3872
3720
  };
3873
3721
  };
3874
3722
 
3875
- // ../renderers/src/CollectionRenderer/v1/CollectionRendererV1.tsx
3876
- var CollectionRendererV1 = createCollectionRenderer(
3877
- () => true
3878
- );
3879
- var CollectionRendererV1_default = CollectionRendererV1;
3880
-
3881
- // ../renderers/src/CollectionRenderer/v2/FilterComponent.tsx
3882
- var import_classnames12 = __toESM(require_classnames());
3883
- import { Chips as Chips2 } from "@transferwise/components";
3884
- import { AnimatePresence as AnimatePresence2, motion as motion2 } from "motion/react";
3885
- import { jsx as jsx46 } from "react/jsx-runtime";
3886
- var FiltersComponent2 = (props) => {
3887
- var _b;
3888
- const _a = props, { Filter } = _a, collectionProps = __objRest(_a, ["Filter"]);
3889
- const { state, depth } = collectionProps;
3890
- const { filters, status } = state;
3891
- const isHidden = depth > 0 && !((_b = state.search) == null ? void 0 : _b.query);
3892
- return /* @__PURE__ */ jsx46(AnimatePresence2, { initial: false, children: !isHidden && /* @__PURE__ */ jsx46(
3893
- motion2.div,
3894
- {
3895
- variants: filtersVariants,
3896
- initial: "collapsed",
3897
- animate: "expanded",
3898
- exit: "collapsed",
3899
- transition: { duration: 0.15, ease: "easeOut" },
3900
- children: /* @__PURE__ */ jsx46(
3901
- "div",
3902
- {
3903
- className: (0, import_classnames12.default)("df-filters-container", {
3904
- "df-filter-loader": status.type === "loading" && status.reason === "search"
3905
- }),
3906
- children: filters.map((filter) => {
3907
- var _a2;
3908
- return /* @__PURE__ */ jsx46(
3909
- Filter,
3910
- __spreadProps(__spreadValues({}, collectionProps), {
3911
- filter
3912
- }),
3913
- JSON.stringify((_a2 = filter.options) == null ? void 0 : _a2.map((o) => o.value))
3914
- );
3915
- })
3916
- }
3917
- )
3918
- },
3919
- "filters"
3920
- ) });
3921
- };
3922
- var filtersVariants = {
3923
- collapsed: { height: 0, opacity: 0, overflow: "hidden" },
3924
- expanded: { height: "auto", opacity: 1, transitionEnd: { overflow: "visible" } }
3925
- };
3926
- var FilterComponent2 = ({
3927
- filter,
3928
- state
3929
- }) => {
3930
- const { multiSelect, options } = filter;
3931
- const { status } = state;
3932
- const disabled = status.type === "loading" && status.reason === "search";
3933
- if (!options) {
3934
- return null;
3935
- }
3936
- return /* @__PURE__ */ jsx46(
3937
- Chips2,
3938
- {
3939
- className: "m-b-1",
3940
- multiple: multiSelect,
3941
- selected: options.some((option) => option.selected) ? options.filter((option) => option.selected).map((option) => option.value) : multiSelect ? [] : "",
3942
- chips: [
3943
- ...options.map((option) => ({
3944
- value: option.value,
3945
- label: option.title
3946
- }))
3947
- ],
3948
- onChange: (value) => {
3949
- var _a;
3950
- if (disabled) {
3951
- return;
3952
- }
3953
- if (value.selectedValue === "") {
3954
- options == null ? void 0 : options.filter((option) => option.selected).map((option) => option == null ? void 0 : option.onSelect());
3955
- return;
3956
- }
3957
- (_a = options == null ? void 0 : options.find((option) => value.selectedValue === option.value)) == null ? void 0 : _a.onSelect();
3958
- }
3959
- },
3960
- JSON.stringify(options)
3961
- );
3723
+ // ../renderers/src/CollectionRenderer/CollectionRenderer.tsx
3724
+ import { useIntl as useIntl6 } from "react-intl";
3725
+ import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs8 } from "react/jsx-runtime";
3726
+ var CollectionRendererComponent = (props) => {
3727
+ const { status, Search: Search4, Filters, Results } = props;
3728
+ return /* @__PURE__ */ jsxs8(Fragment3, { children: [
3729
+ /* @__PURE__ */ jsx44(Search4, __spreadValues({}, props)),
3730
+ /* @__PURE__ */ jsx44(Filters, __spreadValues({}, props)),
3731
+ status.type === "error" && status.reason === "search" ? /* @__PURE__ */ jsx44(SearchError, { retry: status.retry }) : /* @__PURE__ */ jsx44(Results, __spreadValues({}, props))
3732
+ ] });
3962
3733
  };
3963
-
3964
- // ../renderers/src/CollectionRenderer/v2/SearchComponent.tsx
3965
- import {
3966
- InputGroup as InputGroup2,
3967
- Input as Input2,
3968
- ProcessIndicator as ProcessIndicator3,
3969
- IconButton as IconButton2
3970
- } from "@transferwise/components";
3971
- import { CrossCircleFill as CrossCircleFill2, Search as Search2 } from "@transferwise/icons";
3972
- import { useRef as useRef5 } from "react";
3973
- import { useIntl as useIntl8 } from "react-intl";
3974
- import { jsx as jsx47 } from "react/jsx-runtime";
3975
- var SearchComponent2 = ({
3976
- state,
3977
- depth,
3978
- fork,
3979
- features,
3980
- control,
3981
- tags
3982
- }) => {
3983
- var _a;
3984
- const { search } = state;
3985
- const { formatMessage } = useIntl8();
3986
- const inputRef = useRef5(null);
3987
- if (!search) {
3988
- return;
3989
- }
3990
- const isForked = depth > 0;
3991
- const getAddon = () => {
3992
- if (state.status.type === "loading") {
3993
- return { content: /* @__PURE__ */ jsx47(ProcessIndicator3, { size: "xs", "data-testid": "collection-search-loader" }) };
3994
- }
3995
- if (search.query) {
3996
- return {
3997
- interactive: true,
3998
- content: /* @__PURE__ */ jsx47(
3999
- IconButton2,
4000
- {
4001
- priority: "minimal",
4002
- size: 24,
4003
- "aria-label": formatMessage(collection_messages_default.clearTextLabel),
4004
- onClick: () => {
4005
- var _a2;
4006
- search.onChange("");
4007
- (_a2 = inputRef.current) == null ? void 0 : _a2.focus();
4008
- },
4009
- children: /* @__PURE__ */ jsx47(CrossCircleFill2, {})
4010
- }
4011
- )
4012
- };
4013
- }
4014
- return void 0;
4015
- };
4016
- return /* @__PURE__ */ jsx47(
4017
- FieldInput_default,
4018
- {
4019
- id: "search",
4020
- description: "",
4021
- validation: void 0,
4022
- help: "",
4023
- label: search.title,
4024
- features,
4025
- control,
4026
- tags,
4027
- children: /* @__PURE__ */ jsx47(InputGroup2, { addonStart: { content: /* @__PURE__ */ jsx47(Search2, { size: 24 }) }, addonEnd: getAddon(), children: /* @__PURE__ */ jsx47(
4028
- Input2,
4029
- {
4030
- ref: inputRef,
4031
- id: "search",
4032
- name: "search",
4033
- shape: "pill",
4034
- placeholder: (_a = search.hints) == null ? void 0 : _a[0],
4035
- type: "text",
4036
- value: search.query,
4037
- onFocus: () => {
4038
- if (!isForked) {
4039
- fork();
4040
- }
4041
- },
4042
- onChange: ({ currentTarget: { value } }) => search.onChange(value)
4043
- }
4044
- ) })
4045
- }
4046
- );
3734
+ var SearchError = ({ retry }) => {
3735
+ const { formatMessage } = useIntl6();
3736
+ return /* @__PURE__ */ jsxs8(InlinePrompt, { width: "full", sentiment: "negative", children: [
3737
+ formatMessage(generic_error_messages_default.genericError),
3738
+ "\xA0",
3739
+ /* @__PURE__ */ jsx44(DSLink, { onClick: retry, children: formatMessage(generic_error_messages_default.retry) })
3740
+ ] });
4047
3741
  };
4048
-
4049
- // ../renderers/src/CollectionRenderer/v2/CollectionRendererV2.tsx
4050
- var CollectionRendererV2 = createCollectionRenderer(
4051
- ({ control }) => control === "contacts-collection-v2",
4052
- { Search: SearchComponent2, Filters: FiltersComponent2, Filter: FilterComponent2 }
4053
- );
4054
- var CollectionRendererV2_default = CollectionRendererV2;
3742
+ var CollectionRenderer = createCollectionRenderer(() => true);
3743
+ var CollectionRenderer_default = CollectionRenderer;
4055
3744
 
4056
3745
  // ../renderers/src/ColumnsRenderer.tsx
4057
- var import_classnames13 = __toESM(require_classnames());
3746
+ var import_classnames12 = __toESM(require_classnames());
4058
3747
 
4059
3748
  // ../renderers/src/utils/useIsCollapsed.ts
4060
- import { useEffect as useEffect8, useState as useState10 } from "react";
3749
+ import { useEffect as useEffect8, useState as useState9 } from "react";
4061
3750
  var COLLAPSE_QUERY = "(max-width: 767.98px)";
4062
3751
  var supportsMatchMedia = () => typeof window !== "undefined" && !!window.matchMedia;
4063
3752
  var useIsCollapsed = () => {
4064
- const [collapsed, setCollapsed] = useState10(
3753
+ const [collapsed, setCollapsed] = useState9(
4065
3754
  () => supportsMatchMedia() && window.matchMedia(COLLAPSE_QUERY).matches
4066
3755
  );
4067
3756
  useEffect8(() => {
@@ -4077,7 +3766,7 @@ var useIsCollapsed = () => {
4077
3766
  };
4078
3767
 
4079
3768
  // ../renderers/src/ColumnsRenderer.tsx
4080
- import { jsx as jsx48, jsxs as jsxs10 } from "react/jsx-runtime";
3769
+ import { jsx as jsx45, jsxs as jsxs9 } from "react/jsx-runtime";
4081
3770
  var RIGHT_FIRST_STACKING = "right-first-stacking";
4082
3771
  var ColumnsRenderer = {
4083
3772
  canRenderType: "columns",
@@ -4088,12 +3777,12 @@ function ColumnsRendererComponent(props) {
4088
3777
  const { bias, margin, startChildren, endChildren, tags } = props;
4089
3778
  const isCollapsed = useIsCollapsed();
4090
3779
  const reverse = isCollapsed && ((_a = tags == null ? void 0 : tags.includes(RIGHT_FIRST_STACKING)) != null ? _a : false);
4091
- const startColumn = /* @__PURE__ */ jsx48("div", { className: "df-columns-renderer-column", children: startChildren });
4092
- const endColumn = /* @__PURE__ */ jsx48("div", { className: "df-columns-renderer-column", children: endChildren });
4093
- return /* @__PURE__ */ jsxs10(
3780
+ const startColumn = /* @__PURE__ */ jsx45("div", { className: "df-columns-renderer-column", children: startChildren });
3781
+ const endColumn = /* @__PURE__ */ jsx45("div", { className: "df-columns-renderer-column", children: endChildren });
3782
+ return /* @__PURE__ */ jsxs9(
4094
3783
  "div",
4095
3784
  {
4096
- className: (0, import_classnames13.default)(
3785
+ className: (0, import_classnames12.default)(
4097
3786
  "df-columns-renderer-container",
4098
3787
  getMargin(margin),
4099
3788
  {
@@ -4143,8 +3832,8 @@ var dateToDateString = (date) => {
4143
3832
  import { DateLookup } from "@transferwise/components";
4144
3833
 
4145
3834
  // ../renderers/src/hooks/useAvailabilityRules.ts
4146
- import { useState as useState11 } from "react";
4147
- import { useIntl as useIntl9 } from "react-intl";
3835
+ import { useState as useState10 } from "react";
3836
+ import { useIntl as useIntl7 } from "react-intl";
4148
3837
 
4149
3838
  // ../renderers/src/messages/date-input.messages.ts
4150
3839
  import { defineMessages as defineMessages6 } from "react-intl";
@@ -4159,8 +3848,8 @@ var date_input_messages_default = defineMessages6({
4159
3848
  // ../renderers/src/hooks/useAvailabilityRules.ts
4160
3849
  var useAvailabilityRules = (availability) => {
4161
3850
  var _a, _b;
4162
- const { formatMessage } = useIntl9();
4163
- const [focusedDate, setFocusedDate] = useState11(null);
3851
+ const { formatMessage } = useIntl7();
3852
+ const [focusedDate, setFocusedDate] = useState10(null);
4164
3853
  const unavailableMessage = (_b = (_a = focusedDate ? getUnavailableDateReason(focusedDate, availability) : null) != null ? _a : availability == null ? void 0 : availability.message) != null ? _b : formatMessage(date_input_messages_default.unavailableDates);
4165
3854
  const onDateSelect = ({ date }) => {
4166
3855
  setFocusedDate((current) => (current == null ? void 0 : current.getTime()) === date.getTime() ? current : date);
@@ -4212,7 +3901,7 @@ var matchesDateRule = (date, weekday, rule) => {
4212
3901
  var isDate = (date) => date !== null;
4213
3902
 
4214
3903
  // ../renderers/src/DateInputRenderer/DateLookupControl.tsx
4215
- import { jsx as jsx49 } from "react/jsx-runtime";
3904
+ import { jsx as jsx46 } from "react/jsx-runtime";
4216
3905
  var DateLookupControl = ({
4217
3906
  value,
4218
3907
  minimumDate,
@@ -4225,7 +3914,7 @@ var DateLookupControl = ({
4225
3914
  onFocus
4226
3915
  }) => {
4227
3916
  const { disabledRules, onDateSelect, resetFocusedDate } = useAvailabilityRules(availability);
4228
- return /* @__PURE__ */ jsx49(
3917
+ return /* @__PURE__ */ jsx46(
4229
3918
  DateLookup,
4230
3919
  {
4231
3920
  value: dateStringToDateOrNull(value),
@@ -4249,7 +3938,7 @@ var DateLookupControl = ({
4249
3938
 
4250
3939
  // ../renderers/src/DateInputRenderer/CalendarControl.tsx
4251
3940
  import { Calendar } from "@transferwise/components";
4252
- import { jsx as jsx50 } from "react/jsx-runtime";
3941
+ import { jsx as jsx47 } from "react/jsx-runtime";
4253
3942
  var CalendarControl = ({
4254
3943
  id,
4255
3944
  title,
@@ -4272,7 +3961,7 @@ var CalendarControl = ({
4272
3961
  };
4273
3962
  return (
4274
3963
  // Wrapping in a <fieldset> to address some a11y gaps in the current inline Calendar component
4275
- /* @__PURE__ */ jsx50(
3964
+ /* @__PURE__ */ jsx47(
4276
3965
  "fieldset",
4277
3966
  {
4278
3967
  id,
@@ -4289,7 +3978,7 @@ var CalendarControl = ({
4289
3978
  onBlur();
4290
3979
  }
4291
3980
  },
4292
- children: /* @__PURE__ */ jsx50(
3981
+ children: /* @__PURE__ */ jsx47(
4293
3982
  Calendar,
4294
3983
  {
4295
3984
  value: dateStringToDateOrNull(value),
@@ -4309,10 +3998,10 @@ var CalendarControl = ({
4309
3998
 
4310
3999
  // ../renderers/src/DateInputRenderer/DateInputControl.tsx
4311
4000
  import { DateInput } from "@transferwise/components";
4312
- import { jsx as jsx51 } from "react/jsx-runtime";
4001
+ import { jsx as jsx48 } from "react/jsx-runtime";
4313
4002
  var DateInputControl = (_a) => {
4314
4003
  var _b = _a, { autoComplete } = _b, props = __objRest(_b, ["autoComplete"]);
4315
- return /* @__PURE__ */ jsx51(
4004
+ return /* @__PURE__ */ jsx48(
4316
4005
  DateInput,
4317
4006
  __spreadProps(__spreadValues({}, props), {
4318
4007
  dayAutoComplete: getAutocompleteString(autoComplete, "day"),
@@ -4328,7 +4017,7 @@ var getAutocompleteString = (value, suffix) => {
4328
4017
  };
4329
4018
 
4330
4019
  // ../renderers/src/DateInputRenderer/DateInputRenderer.tsx
4331
- import { jsx as jsx52 } from "react/jsx-runtime";
4020
+ import { jsx as jsx49 } from "react/jsx-runtime";
4332
4021
  var DateInputRenderer = {
4333
4022
  canRenderType: "input-date",
4334
4023
  render: (props) => {
@@ -4362,7 +4051,7 @@ var DateInputRenderer = {
4362
4051
  }
4363
4052
  return DateInputControl;
4364
4053
  })();
4365
- return /* @__PURE__ */ jsx52(
4054
+ return /* @__PURE__ */ jsx49(
4366
4055
  FieldInput_default,
4367
4056
  {
4368
4057
  id,
@@ -4375,7 +4064,7 @@ var DateInputRenderer = {
4375
4064
  features: props.features,
4376
4065
  control,
4377
4066
  tags: props.tags,
4378
- children: /* @__PURE__ */ jsx52(UIComponent, __spreadValues({}, inputProps))
4067
+ children: /* @__PURE__ */ jsx49(UIComponent, __spreadValues({}, inputProps))
4379
4068
  }
4380
4069
  );
4381
4070
  }
@@ -4387,8 +4076,8 @@ import { ListItem as ListItem7 } from "@transferwise/components";
4387
4076
 
4388
4077
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
4389
4078
  import { Header as Header3, SearchInput } from "@transferwise/components";
4390
- import { useState as useState12 } from "react";
4391
- import { useIntl as useIntl11 } from "react-intl";
4079
+ import { useState as useState11 } from "react";
4080
+ import { useIntl as useIntl9 } from "react-intl";
4392
4081
 
4393
4082
  // ../renderers/src/messages/filter.messages.ts
4394
4083
  import { defineMessages as defineMessages7 } from "react-intl";
@@ -4458,8 +4147,8 @@ function filterAndSortItems(options, query) {
4458
4147
  var normalizeAndRemoveAccents = (text) => text.trim().toLowerCase().normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "");
4459
4148
 
4460
4149
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
4461
- import { Header as Header2, Section as Section2 } from "@transferwise/components";
4462
- import { useIntl as useIntl10 } from "react-intl";
4150
+ import { Header as Header2, Section } from "@transferwise/components";
4151
+ import { useIntl as useIntl8 } from "react-intl";
4463
4152
 
4464
4153
  // ../renderers/src/messages/group.messages.ts
4465
4154
  import { defineMessages as defineMessages8 } from "react-intl";
@@ -4497,18 +4186,18 @@ var getGroupsFromTags = (knownTags, items) => {
4497
4186
  };
4498
4187
 
4499
4188
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
4500
- import { Fragment as Fragment4, jsx as jsx53, jsxs as jsxs11 } from "react/jsx-runtime";
4189
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs10 } from "react/jsx-runtime";
4501
4190
  var groupingTags = Object.keys(group_messages_default).filter((key) => key !== "all");
4502
4191
  var isGroupedDecision = (options) => {
4503
4192
  return getGroupsFromTags(groupingTags, options).length > 0;
4504
4193
  };
4505
4194
  var GroupedDecisionList = (_a) => {
4506
4195
  var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
4507
- const { formatMessage } = useIntl10();
4196
+ const { formatMessage } = useIntl8();
4508
4197
  const { options } = rest;
4509
4198
  const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
4510
- return /* @__PURE__ */ jsx53(Fragment4, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ jsxs11(Section2, { children: [
4511
- /* @__PURE__ */ jsx53(
4199
+ return /* @__PURE__ */ jsx50(Fragment4, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ jsxs10(Section, { children: [
4200
+ /* @__PURE__ */ jsx50(
4512
4201
  Header2,
4513
4202
  {
4514
4203
  as: "h2",
@@ -4520,27 +4209,27 @@ var GroupedDecisionList = (_a) => {
4520
4209
  };
4521
4210
 
4522
4211
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
4523
- var import_classnames14 = __toESM(require_classnames());
4524
- import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs12 } from "react/jsx-runtime";
4212
+ var import_classnames13 = __toESM(require_classnames());
4213
+ import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs11 } from "react/jsx-runtime";
4525
4214
  var DecisionWrapper = (props) => {
4526
4215
  const { margin, control, title, tags } = props;
4527
- return /* @__PURE__ */ jsxs12("div", { className: (0, import_classnames14.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4528
- title && /* @__PURE__ */ jsx54(Header3, { as: "h2", title }),
4529
- control === "filtered" ? /* @__PURE__ */ jsx54(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx54(UnfilteredDecisionList, __spreadValues({}, props))
4216
+ return /* @__PURE__ */ jsxs11("div", { className: (0, import_classnames13.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4217
+ title && /* @__PURE__ */ jsx51(Header3, { as: "h2", title }),
4218
+ control === "filtered" ? /* @__PURE__ */ jsx51(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx51(UnfilteredDecisionList, __spreadValues({}, props))
4530
4219
  ] });
4531
4220
  };
4532
4221
  var UnfilteredDecisionList = (_a) => {
4533
4222
  var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
4534
- return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx54(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
4223
+ return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx51(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
4535
4224
  };
4536
4225
  var FilteredDecisionList = (props) => {
4537
- const { formatMessage } = useIntl11();
4538
- const [query, setQuery] = useState12("");
4226
+ const { formatMessage } = useIntl9();
4227
+ const [query, setQuery] = useState11("");
4539
4228
  const { control, options, renderDecisionList: renderDecisionList2 } = props;
4540
4229
  const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortItems(options, query) : options;
4541
4230
  const isGrouped = isGroupedDecision(options);
4542
- return /* @__PURE__ */ jsxs12(Fragment5, { children: [
4543
- /* @__PURE__ */ jsx54(
4231
+ return /* @__PURE__ */ jsxs11(Fragment5, { children: [
4232
+ /* @__PURE__ */ jsx51(
4544
4233
  SearchInput,
4545
4234
  {
4546
4235
  placeholder: formatMessage(filter_messages_default.placeholder),
@@ -4552,25 +4241,25 @@ var FilteredDecisionList = (props) => {
4552
4241
  }
4553
4242
  }
4554
4243
  ),
4555
- isGrouped && query.length === 0 ? /* @__PURE__ */ jsx54(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs12(Fragment5, { children: [
4556
- query.length > 0 && /* @__PURE__ */ jsx54(Header3, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
4244
+ isGrouped && query.length === 0 ? /* @__PURE__ */ jsx51(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs11(Fragment5, { children: [
4245
+ query.length > 0 && /* @__PURE__ */ jsx51(Header3, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
4557
4246
  filteredOptions.length > 0 ? renderDecisionList2({
4558
4247
  control,
4559
4248
  className: query.length === 0 ? "m-t-3" : "",
4560
4249
  options: filteredOptions
4561
- }) : /* @__PURE__ */ jsx54("p", { children: formatMessage(filter_messages_default.noResults) })
4250
+ }) : /* @__PURE__ */ jsx51("p", { children: formatMessage(filter_messages_default.noResults) })
4562
4251
  ] })
4563
4252
  ] });
4564
4253
  };
4565
4254
 
4566
4255
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
4567
- import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
4256
+ import { Fragment as Fragment6, jsx as jsx52 } from "react/jsx-runtime";
4568
4257
  var DecisionRenderer = {
4569
4258
  canRenderType: "decision",
4570
- render: (props) => /* @__PURE__ */ jsx55(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }))
4259
+ render: (props) => /* @__PURE__ */ jsx52(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }))
4571
4260
  };
4572
4261
  var renderDecisionList = ({ options, control }) => {
4573
- return /* @__PURE__ */ jsx55(Fragment6, { children: options.map((_a) => {
4262
+ return /* @__PURE__ */ jsx52(Fragment6, { children: options.map((_a) => {
4574
4263
  var _b = _a, { onClick } = _b, rest = __objRest(_b, ["onClick"]);
4575
4264
  const {
4576
4265
  description,
@@ -4583,7 +4272,7 @@ var renderDecisionList = ({ options, control }) => {
4583
4272
  supportingValues,
4584
4273
  tags
4585
4274
  } = rest;
4586
- return /* @__PURE__ */ jsx55(
4275
+ return /* @__PURE__ */ jsx52(
4587
4276
  ListItem7,
4588
4277
  {
4589
4278
  title: itemTitle,
@@ -4595,7 +4284,7 @@ var renderDecisionList = ({ options, control }) => {
4595
4284
  media: getMedia(media, shouldUseAvatar(control, tags)),
4596
4285
  prompt: getInlineAlert(inlineAlert),
4597
4286
  additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
4598
- control: /* @__PURE__ */ jsx55(ListItem7.Navigation, __spreadValues({}, getAnchorProps()))
4287
+ control: /* @__PURE__ */ jsx52(ListItem7.Navigation, __spreadValues({}, getAnchorProps()))
4599
4288
  },
4600
4289
  JSON.stringify(rest)
4601
4290
  );
@@ -4604,9 +4293,9 @@ var renderDecisionList = ({ options, control }) => {
4604
4293
  var DecisionRenderer_default = DecisionRenderer;
4605
4294
 
4606
4295
  // ../renderers/src/DividerRenderer.tsx
4607
- var import_classnames15 = __toESM(require_classnames());
4296
+ var import_classnames14 = __toESM(require_classnames());
4608
4297
  import { Divider } from "@transferwise/components";
4609
- import { jsx as jsx56 } from "react/jsx-runtime";
4298
+ import { jsx as jsx53 } from "react/jsx-runtime";
4610
4299
  var mapControlToLevel = (control) => {
4611
4300
  switch (control) {
4612
4301
  case "section":
@@ -4619,10 +4308,10 @@ var mapControlToLevel = (control) => {
4619
4308
  };
4620
4309
  var DividerRenderer = {
4621
4310
  canRenderType: "divider",
4622
- render: ({ margin, control, tags }) => /* @__PURE__ */ jsx56(
4311
+ render: ({ margin, control, tags }) => /* @__PURE__ */ jsx53(
4623
4312
  Divider,
4624
4313
  {
4625
- className: (0, import_classnames15.default)(
4314
+ className: (0, import_classnames14.default)(
4626
4315
  "m-t-0",
4627
4316
  "d-block",
4628
4317
  getMargin(margin),
@@ -4635,7 +4324,7 @@ var DividerRenderer = {
4635
4324
  var DividerRenderer_default = DividerRenderer;
4636
4325
 
4637
4326
  // ../renderers/src/ExternalConfirmationRenderer.tsx
4638
- import { Button as Button6, Markdown as Markdown3, Modal } from "@transferwise/components";
4327
+ import { Button as Button5, Markdown as Markdown3, Modal } from "@transferwise/components";
4639
4328
 
4640
4329
  // ../renderers/src/messages/external-confirmation.messages.ts
4641
4330
  import { defineMessages as defineMessages9 } from "react-intl";
@@ -4663,9 +4352,9 @@ var external_confirmation_messages_default = defineMessages9({
4663
4352
  });
4664
4353
 
4665
4354
  // ../renderers/src/ExternalConfirmationRenderer.tsx
4666
- import { useIntl as useIntl12 } from "react-intl";
4355
+ import { useIntl as useIntl10 } from "react-intl";
4667
4356
  import { useEffect as useEffect9 } from "react";
4668
- import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs13 } from "react/jsx-runtime";
4357
+ import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs12 } from "react/jsx-runtime";
4669
4358
  var ExternalConfirmationRenderer = {
4670
4359
  canRenderType: "external-confirmation",
4671
4360
  render: ExternalConfirmationRendererComponent
@@ -4678,20 +4367,20 @@ function ExternalConfirmationRendererComponent({
4678
4367
  control,
4679
4368
  tags
4680
4369
  }) {
4681
- const { formatMessage } = useIntl12();
4370
+ const { formatMessage } = useIntl10();
4682
4371
  useEffect9(() => {
4683
4372
  open();
4684
4373
  }, []);
4685
- return /* @__PURE__ */ jsx57(
4374
+ return /* @__PURE__ */ jsx54(
4686
4375
  Modal,
4687
4376
  {
4688
4377
  open: visible,
4689
4378
  title: formatMessage(external_confirmation_messages_default.title),
4690
- body: /* @__PURE__ */ jsxs13(Fragment7, { children: [
4691
- /* @__PURE__ */ jsx57(Markdown3, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
4692
- /* @__PURE__ */ jsx57("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs13("div", { className: "df-box-renderer-width-lg", children: [
4693
- /* @__PURE__ */ jsx57(
4694
- Button6,
4379
+ body: /* @__PURE__ */ jsxs12(Fragment7, { children: [
4380
+ /* @__PURE__ */ jsx54(Markdown3, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
4381
+ /* @__PURE__ */ jsx54("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs12("div", { className: "df-box-renderer-width-lg", children: [
4382
+ /* @__PURE__ */ jsx54(
4383
+ Button5,
4695
4384
  {
4696
4385
  v2: true,
4697
4386
  block: true,
@@ -4704,7 +4393,7 @@ function ExternalConfirmationRendererComponent({
4704
4393
  children: formatMessage(external_confirmation_messages_default.open)
4705
4394
  }
4706
4395
  ),
4707
- /* @__PURE__ */ jsx57(Button6, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
4396
+ /* @__PURE__ */ jsx54(Button5, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
4708
4397
  ] }) })
4709
4398
  ] }),
4710
4399
  className: controlAndTagsToCSSClass({ control, tags }),
@@ -4722,51 +4411,51 @@ function getOrigin(url) {
4722
4411
  var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
4723
4412
 
4724
4413
  // ../renderers/src/FormRenderer.tsx
4725
- var import_classnames16 = __toESM(require_classnames());
4726
- import { jsx as jsx58 } from "react/jsx-runtime";
4414
+ var import_classnames15 = __toESM(require_classnames());
4415
+ import { jsx as jsx55 } from "react/jsx-runtime";
4727
4416
  var FormRenderer = {
4728
4417
  canRenderType: "form",
4729
- render: ({ children, margin, control, tags }) => /* @__PURE__ */ jsx58("div", { className: (0, import_classnames16.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children })
4418
+ render: ({ children, margin, control, tags }) => /* @__PURE__ */ jsx55("div", { className: (0, import_classnames15.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children })
4730
4419
  };
4731
4420
  var FormRenderer_default = FormRenderer;
4732
4421
 
4733
4422
  // ../renderers/src/FormSectionRenderer.tsx
4734
4423
  import { Header as Header4 } from "@transferwise/components";
4735
- import { jsx as jsx59, jsxs as jsxs14 } from "react/jsx-runtime";
4424
+ import { jsx as jsx56, jsxs as jsxs13 } from "react/jsx-runtime";
4736
4425
  var FormSectionRenderer = {
4737
4426
  canRenderType: "form-section",
4738
- render: ({ title, description, children, control, tags }) => /* @__PURE__ */ jsxs14("fieldset", { className: controlAndTagsToCSSClass({ control, tags }), children: [
4739
- title && /* @__PURE__ */ jsx59(
4427
+ render: ({ title, description, children, control, tags }) => /* @__PURE__ */ jsxs13("fieldset", { className: controlAndTagsToCSSClass({ control, tags }), children: [
4428
+ title && /* @__PURE__ */ jsx56(
4740
4429
  Header4,
4741
4430
  {
4742
4431
  as: "h2",
4743
4432
  title
4744
4433
  }
4745
4434
  ),
4746
- description && /* @__PURE__ */ jsx59("p", { children: description }),
4435
+ description && /* @__PURE__ */ jsx56("p", { children: description }),
4747
4436
  children
4748
4437
  ] })
4749
4438
  };
4750
4439
  var FormSectionRenderer_default = FormSectionRenderer;
4751
4440
 
4752
4441
  // ../renderers/src/HeadingRenderer.tsx
4753
- var import_classnames17 = __toESM(require_classnames());
4442
+ var import_classnames16 = __toESM(require_classnames());
4754
4443
  import { Display, Title } from "@transferwise/components";
4755
- import { jsx as jsx60 } from "react/jsx-runtime";
4444
+ import { jsx as jsx57 } from "react/jsx-runtime";
4756
4445
  var HeadingRenderer = {
4757
4446
  canRenderType: "heading",
4758
4447
  render: Heading
4759
4448
  };
4760
4449
  function Heading(props) {
4761
4450
  const { text, size, align, margin, control } = props;
4762
- const className = (0, import_classnames17.default)(
4451
+ const className = (0, import_classnames16.default)(
4763
4452
  getTextAlignmentAndMargin({ align, margin }),
4764
4453
  controlAndTagsToCSSClass(props)
4765
4454
  );
4766
- return control === "display" ? /* @__PURE__ */ jsx60(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx60(StandardHeading, { size, text, className });
4455
+ return control === "display" ? /* @__PURE__ */ jsx57(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx57(StandardHeading, { size, text, className });
4767
4456
  }
4768
4457
  function DisplayHeading({ size, text, className }) {
4769
- return /* @__PURE__ */ jsx60(Display, { type: getDisplayType(size), className, children: text });
4458
+ return /* @__PURE__ */ jsx57(Display, { type: getDisplayType(size), className, children: text });
4770
4459
  }
4771
4460
  var getDisplayType = (size) => {
4772
4461
  switch (size) {
@@ -4782,7 +4471,7 @@ var getDisplayType = (size) => {
4782
4471
  }
4783
4472
  };
4784
4473
  function StandardHeading({ size, text, className }) {
4785
- return /* @__PURE__ */ jsx60(Title, { type: getTitleTypeBySize(size), className, children: text });
4474
+ return /* @__PURE__ */ jsx57(Title, { type: getTitleTypeBySize(size), className, children: text });
4786
4475
  }
4787
4476
  var getTitleTypeBySize = (size) => {
4788
4477
  var _a;
@@ -4798,9 +4487,9 @@ var getTitleTypeBySize = (size) => {
4798
4487
  var HeadingRenderer_default = HeadingRenderer;
4799
4488
 
4800
4489
  // ../renderers/src/ImageRenderer/UrlImage.tsx
4801
- var import_classnames18 = __toESM(require_classnames());
4490
+ var import_classnames17 = __toESM(require_classnames());
4802
4491
  import { Image } from "@transferwise/components";
4803
- import { useEffect as useEffect10, useState as useState13 } from "react";
4492
+ import { useEffect as useEffect10, useState as useState12 } from "react";
4804
4493
 
4805
4494
  // ../renderers/src/utils/api-utils.ts
4806
4495
  function isRelativePath(url = "") {
@@ -4810,7 +4499,7 @@ function isRelativePath(url = "") {
4810
4499
  }
4811
4500
 
4812
4501
  // ../renderers/src/ImageRenderer/UrlImage.tsx
4813
- import { jsx as jsx61 } from "react/jsx-runtime";
4502
+ import { jsx as jsx58 } from "react/jsx-runtime";
4814
4503
  function UrlImage({
4815
4504
  accessibilityDescription,
4816
4505
  align,
@@ -4821,23 +4510,23 @@ function UrlImage({
4821
4510
  uri,
4822
4511
  httpClient
4823
4512
  }) {
4824
- const [imageSource, setImageSource] = useState13("");
4513
+ const [imageSource, setImageSource] = useState12("");
4825
4514
  useEffect10(() => {
4826
4515
  if (!uri.startsWith("urn:")) {
4827
4516
  void getImageSource(httpClient, uri).then(setImageSource);
4828
4517
  }
4829
4518
  }, [uri, httpClient]);
4830
- return /* @__PURE__ */ jsx61(
4519
+ return /* @__PURE__ */ jsx58(
4831
4520
  "div",
4832
4521
  {
4833
- className: (0, import_classnames18.default)(
4522
+ className: (0, import_classnames17.default)(
4834
4523
  "df-image",
4835
4524
  align,
4836
4525
  size || "md",
4837
4526
  getMargin(margin),
4838
4527
  controlAndTagsToCSSClass({ control, tags })
4839
4528
  ),
4840
- children: /* @__PURE__ */ jsx61(
4529
+ children: /* @__PURE__ */ jsx58(
4841
4530
  Image,
4842
4531
  {
4843
4532
  className: "df-reserve-space",
@@ -4883,19 +4572,19 @@ var getImageSource = async (httpClient, imageUrl) => {
4883
4572
  };
4884
4573
 
4885
4574
  // ../renderers/src/ImageRenderer/ImageRenderer.tsx
4886
- import { jsx as jsx62 } from "react/jsx-runtime";
4575
+ import { jsx as jsx59 } from "react/jsx-runtime";
4887
4576
  var ImageRenderer = {
4888
4577
  canRenderType: "image",
4889
- render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx62(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx62(UrlImage, __spreadValues({}, props))
4578
+ render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx59(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx59(UrlImage, __spreadValues({}, props))
4890
4579
  };
4891
4580
 
4892
4581
  // ../renderers/src/ImageRenderer/index.tsx
4893
4582
  var ImageRenderer_default = ImageRenderer;
4894
4583
 
4895
4584
  // ../renderers/src/InstructionsRenderer.tsx
4896
- var import_classnames19 = __toESM(require_classnames());
4585
+ var import_classnames18 = __toESM(require_classnames());
4897
4586
  import { Header as Header5, InstructionsList } from "@transferwise/components";
4898
- import { jsx as jsx63, jsxs as jsxs15 } from "react/jsx-runtime";
4587
+ import { jsx as jsx60, jsxs as jsxs14 } from "react/jsx-runtime";
4899
4588
  var doContext = ["positive", "neutral", "proposition"];
4900
4589
  var dontContext = ["warning", "negative"];
4901
4590
  var InstructionsRenderer = {
@@ -4903,16 +4592,16 @@ var InstructionsRenderer = {
4903
4592
  render: ({ items, margin, title, control, tags }) => {
4904
4593
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
4905
4594
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
4906
- return /* @__PURE__ */ jsxs15("div", { className: (0, import_classnames19.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4907
- title ? /* @__PURE__ */ jsx63(Header5, { title }) : null,
4908
- /* @__PURE__ */ jsx63(InstructionsList, { dos, donts })
4595
+ return /* @__PURE__ */ jsxs14("div", { className: (0, import_classnames18.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4596
+ title ? /* @__PURE__ */ jsx60(Header5, { title }) : null,
4597
+ /* @__PURE__ */ jsx60(InstructionsList, { dos, donts })
4909
4598
  ] });
4910
4599
  }
4911
4600
  };
4912
4601
  var InstructionsRenderer_default = InstructionsRenderer;
4913
4602
 
4914
4603
  // ../renderers/src/IntegerInputRenderer.tsx
4915
- import { Input as Input3, InputGroup as InputGroup3 } from "@transferwise/components";
4604
+ import { Input as Input2, InputGroup as InputGroup2 } from "@transferwise/components";
4916
4605
 
4917
4606
  // ../renderers/src/utils/input-utils.ts
4918
4607
  var onWheel = (event) => {
@@ -4937,7 +4626,7 @@ function pick(obj, ...keys) {
4937
4626
  }
4938
4627
 
4939
4628
  // ../renderers/src/IntegerInputRenderer.tsx
4940
- import { jsx as jsx64 } from "react/jsx-runtime";
4629
+ import { jsx as jsx61 } from "react/jsx-runtime";
4941
4630
  var IntegerInputRenderer = {
4942
4631
  canRenderType: "input-integer",
4943
4632
  render: (props) => {
@@ -4952,7 +4641,7 @@ var IntegerInputRenderer = {
4952
4641
  "maximum",
4953
4642
  "minimum"
4954
4643
  );
4955
- return /* @__PURE__ */ jsx64(
4644
+ return /* @__PURE__ */ jsx61(
4956
4645
  FieldInput_default,
4957
4646
  {
4958
4647
  id,
@@ -4965,8 +4654,8 @@ var IntegerInputRenderer = {
4965
4654
  features: props.features,
4966
4655
  control: props.control,
4967
4656
  tags: props.tags,
4968
- children: /* @__PURE__ */ jsx64(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx64(
4969
- Input3,
4657
+ children: /* @__PURE__ */ jsx61(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx61(
4658
+ Input2,
4970
4659
  __spreadValues({
4971
4660
  id,
4972
4661
  name: id,
@@ -4988,13 +4677,13 @@ var IntegerInputRenderer = {
4988
4677
  var IntegerInputRenderer_default = IntegerInputRenderer;
4989
4678
 
4990
4679
  // ../renderers/src/ListRenderer.tsx
4991
- var import_classnames20 = __toESM(require_classnames());
4680
+ var import_classnames19 = __toESM(require_classnames());
4992
4681
  import { ListItem as ListItem8 } from "@transferwise/components";
4993
4682
 
4994
4683
  // ../renderers/src/components/Header.tsx
4995
4684
  import { Header as DSHeader } from "@transferwise/components";
4996
- import { jsx as jsx65 } from "react/jsx-runtime";
4997
- var Header = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ jsx65(DSHeader, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
4685
+ import { jsx as jsx62 } from "react/jsx-runtime";
4686
+ var Header = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ jsx62(DSHeader, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
4998
4687
  var getHeaderAction = (callToAction) => {
4999
4688
  if (!callToAction) {
5000
4689
  return void 0;
@@ -5006,11 +4695,11 @@ var getHeaderAction = (callToAction) => {
5006
4695
  };
5007
4696
 
5008
4697
  // ../renderers/src/ListRenderer.tsx
5009
- import { jsx as jsx66, jsxs as jsxs16 } from "react/jsx-runtime";
4698
+ import { jsx as jsx63, jsxs as jsxs15 } from "react/jsx-runtime";
5010
4699
  var ListRenderer = {
5011
4700
  canRenderType: "list",
5012
- render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ jsxs16("div", { className: (0, import_classnames20.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5013
- /* @__PURE__ */ jsx66(Header, { title, callToAction }),
4701
+ render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ jsxs15("div", { className: (0, import_classnames19.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4702
+ /* @__PURE__ */ jsx63(Header, { title, callToAction }),
5014
4703
  items.map((item) => {
5015
4704
  var _a, _b;
5016
4705
  const {
@@ -5027,7 +4716,7 @@ var ListRenderer = {
5027
4716
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
5028
4717
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
5029
4718
  };
5030
- return /* @__PURE__ */ jsx66(
4719
+ return /* @__PURE__ */ jsx63(
5031
4720
  ListItem8,
5032
4721
  {
5033
4722
  title: itemTitle,
@@ -5047,17 +4736,17 @@ var ListRenderer = {
5047
4736
  var ListRenderer_default = ListRenderer;
5048
4737
 
5049
4738
  // ../renderers/src/LoadingIndicatorRenderer.tsx
5050
- var import_classnames21 = __toESM(require_classnames());
4739
+ var import_classnames20 = __toESM(require_classnames());
5051
4740
  import { Loader } from "@transferwise/components";
5052
- import { jsx as jsx67 } from "react/jsx-runtime";
4741
+ import { jsx as jsx64 } from "react/jsx-runtime";
5053
4742
  var LoadingIndicatorRenderer = {
5054
4743
  canRenderType: "loading-indicator",
5055
- render: ({ size, margin, control, tags }) => /* @__PURE__ */ jsx67(
4744
+ render: ({ size, margin, control, tags }) => /* @__PURE__ */ jsx64(
5056
4745
  Loader,
5057
4746
  {
5058
4747
  size,
5059
4748
  classNames: {
5060
- "tw-loader": (0, import_classnames21.default)(
4749
+ "tw-loader": (0, import_classnames20.default)(
5061
4750
  "tw-loader",
5062
4751
  "m-x-auto",
5063
4752
  getMargin(margin),
@@ -5071,24 +4760,24 @@ var LoadingIndicatorRenderer = {
5071
4760
  var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
5072
4761
 
5073
4762
  // ../renderers/src/MarkdownRenderer.tsx
5074
- var import_classnames22 = __toESM(require_classnames());
4763
+ var import_classnames21 = __toESM(require_classnames());
5075
4764
  import { Markdown as Markdown4 } from "@transferwise/components";
5076
- import { jsx as jsx68 } from "react/jsx-runtime";
4765
+ import { jsx as jsx65 } from "react/jsx-runtime";
5077
4766
  var MarkdownRenderer = {
5078
4767
  canRenderType: "markdown",
5079
4768
  render: ({ content, align, margin, size, control, tags }) => {
5080
4769
  const isLarge = !["xs", "sm"].includes(size);
5081
- return /* @__PURE__ */ jsx68(
4770
+ return /* @__PURE__ */ jsx65(
5082
4771
  "div",
5083
4772
  {
5084
- className: (0, import_classnames22.default)(
4773
+ className: (0, import_classnames21.default)(
5085
4774
  getTextAlignmentAndMargin({ align, margin }),
5086
4775
  controlAndTagsToCSSClass({ control, tags })
5087
4776
  ),
5088
- children: /* @__PURE__ */ jsx68(
4777
+ children: /* @__PURE__ */ jsx65(
5089
4778
  Markdown4,
5090
4779
  {
5091
- className: (0, import_classnames22.default)("df-markdown", {
4780
+ className: (0, import_classnames21.default)("df-markdown", {
5092
4781
  "np-text-body-large": isLarge,
5093
4782
  "np-text-body-default": !isLarge
5094
4783
  }),
@@ -5103,17 +4792,17 @@ var MarkdownRenderer = {
5103
4792
  var MarkdownRenderer_default = MarkdownRenderer;
5104
4793
 
5105
4794
  // ../renderers/src/MediaRenderer.tsx
5106
- var import_classnames23 = __toESM(require_classnames());
5107
- import { jsx as jsx69 } from "react/jsx-runtime";
4795
+ var import_classnames22 = __toESM(require_classnames());
4796
+ import { jsx as jsx66 } from "react/jsx-runtime";
5108
4797
  var MediaRenderer = {
5109
4798
  canRenderType: "media",
5110
4799
  render: (_a) => {
5111
4800
  var _b = _a, { media } = _b, rest = __objRest(_b, ["media"]);
5112
4801
  switch (media.type) {
5113
4802
  case "avatar":
5114
- return /* @__PURE__ */ jsx69(AvatarMediaRendererComponent, __spreadValues({ media }, rest));
4803
+ return /* @__PURE__ */ jsx66(AvatarMediaRendererComponent, __spreadValues({ media }, rest));
5115
4804
  case "image":
5116
- return /* @__PURE__ */ jsx69(ImageMediaRendererComponent, __spreadValues({ media }, rest));
4805
+ return /* @__PURE__ */ jsx66(ImageMediaRendererComponent, __spreadValues({ media }, rest));
5117
4806
  case "legacy":
5118
4807
  return null;
5119
4808
  }
@@ -5127,16 +4816,16 @@ var AvatarMediaRendererComponent = ({
5127
4816
  control,
5128
4817
  tags
5129
4818
  }) => {
5130
- return /* @__PURE__ */ jsx69(
4819
+ return /* @__PURE__ */ jsx66(
5131
4820
  "div",
5132
4821
  {
5133
- className: (0, import_classnames23.default)(
4822
+ className: (0, import_classnames22.default)(
5134
4823
  "df-media-layout-avatar",
5135
4824
  align,
5136
4825
  getMargin(margin),
5137
4826
  controlAndTagsToCSSClass({ control, tags })
5138
4827
  ),
5139
- children: /* @__PURE__ */ jsx69(Media, { media, size: mapAvatarMediaSize(size) })
4828
+ children: /* @__PURE__ */ jsx66(Media, { media, size: mapAvatarMediaSize(size) })
5140
4829
  }
5141
4830
  );
5142
4831
  };
@@ -5149,14 +4838,14 @@ var ImageMediaRendererComponent = (_a) => {
5149
4838
  "size"
5150
4839
  ]);
5151
4840
  var _a2, _b2;
5152
- return isUrnImage(media.uri) ? /* @__PURE__ */ jsx69(
4841
+ return isUrnImage(media.uri) ? /* @__PURE__ */ jsx66(
5153
4842
  UrnImage,
5154
4843
  __spreadValues({
5155
4844
  uri: media.uri,
5156
4845
  size: (_a2 = media.size) != null ? _a2 : size,
5157
4846
  accessibilityDescription: media.accessibilityDescription
5158
4847
  }, rest)
5159
- ) : /* @__PURE__ */ jsx69(
4848
+ ) : /* @__PURE__ */ jsx66(
5160
4849
  UrlImage,
5161
4850
  __spreadValues({
5162
4851
  uri: media.uri,
@@ -5181,21 +4870,21 @@ var mapAvatarMediaSize = (size) => {
5181
4870
  };
5182
4871
 
5183
4872
  // ../renderers/src/ModalLayoutRenderer.tsx
5184
- var import_classnames24 = __toESM(require_classnames());
5185
- import { Button as Button7, Modal as Modal2 } from "@transferwise/components";
5186
- import { useState as useState14 } from "react";
5187
- import { jsx as jsx70, jsxs as jsxs17 } from "react/jsx-runtime";
4873
+ var import_classnames23 = __toESM(require_classnames());
4874
+ import { Button as Button6, Modal as Modal2 } from "@transferwise/components";
4875
+ import { useState as useState13 } from "react";
4876
+ import { jsx as jsx67, jsxs as jsxs16 } from "react/jsx-runtime";
5188
4877
  var ModalLayoutRenderer = {
5189
4878
  canRenderType: "modal-layout",
5190
- render: (props) => /* @__PURE__ */ jsx70(DFModal, __spreadValues({}, props))
4879
+ render: (props) => /* @__PURE__ */ jsx67(DFModal, __spreadValues({}, props))
5191
4880
  };
5192
4881
  var ModalLayoutRenderer_default = ModalLayoutRenderer;
5193
4882
  function DFModal({ content, margin, trigger, control, tags }) {
5194
- const [visible, setVisible] = useState14(false);
4883
+ const [visible, setVisible] = useState13(false);
5195
4884
  const { children, title } = content;
5196
- return /* @__PURE__ */ jsxs17("div", { className: (0, import_classnames24.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5197
- /* @__PURE__ */ jsx70(Button7, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
5198
- /* @__PURE__ */ jsx70(
4885
+ return /* @__PURE__ */ jsxs16("div", { className: (0, import_classnames23.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
4886
+ /* @__PURE__ */ jsx67(Button6, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
4887
+ /* @__PURE__ */ jsx67(
5199
4888
  Modal2,
5200
4889
  {
5201
4890
  scroll: "content",
@@ -5211,11 +4900,11 @@ function DFModal({ content, margin, trigger, control, tags }) {
5211
4900
 
5212
4901
  // ../renderers/src/ModalRenderer.tsx
5213
4902
  import { Modal as Modal3 } from "@transferwise/components";
5214
- import { jsx as jsx71 } from "react/jsx-runtime";
4903
+ import { jsx as jsx68 } from "react/jsx-runtime";
5215
4904
  var ModalRenderer = {
5216
4905
  canRenderType: "modal",
5217
4906
  render: ({ title, children, open, onClose, control, tags }) => {
5218
- return /* @__PURE__ */ jsx71(
4907
+ return /* @__PURE__ */ jsx68(
5219
4908
  Modal3,
5220
4909
  {
5221
4910
  open,
@@ -5231,8 +4920,8 @@ var ModalRenderer = {
5231
4920
  // ../renderers/src/MoneyInputRenderer.tsx
5232
4921
  import { MoneyInput } from "@transferwise/components";
5233
4922
  import { useEffect as useEffect11 } from "react";
5234
- import { useIntl as useIntl13 } from "react-intl";
5235
- import { jsx as jsx72 } from "react/jsx-runtime";
4923
+ import { useIntl as useIntl11 } from "react-intl";
4924
+ import { jsx as jsx69 } from "react/jsx-runtime";
5236
4925
  var groupingTags2 = Object.keys(group_messages_default).filter((key) => key !== "all");
5237
4926
  var MoneyInputRenderer = {
5238
4927
  canRenderType: "money-input",
@@ -5261,8 +4950,8 @@ function MoneyInputRendererComponent(props) {
5261
4950
  onCurrencyChange(0);
5262
4951
  }
5263
4952
  }, [selectedCurrencyIndex, onCurrencyChange, currencies.length]);
5264
- const { formatMessage } = useIntl13();
5265
- return /* @__PURE__ */ jsx72(
4953
+ const { formatMessage } = useIntl11();
4954
+ return /* @__PURE__ */ jsx69(
5266
4955
  FieldInput_default,
5267
4956
  {
5268
4957
  id: uid,
@@ -5273,7 +4962,7 @@ function MoneyInputRendererComponent(props) {
5273
4962
  features,
5274
4963
  control,
5275
4964
  tags,
5276
- children: /* @__PURE__ */ jsx72(
4965
+ children: /* @__PURE__ */ jsx69(
5277
4966
  MoneyInput,
5278
4967
  {
5279
4968
  amount: parseFloatOrNull(amountValue),
@@ -5336,8 +5025,8 @@ function assertCurrencyCodeIsString(currencyCode) {
5336
5025
 
5337
5026
  // ../renderers/src/MultiSelectInputRenderer/InlineComponent.tsx
5338
5027
  import { ListItem as ListItem9, SearchInput as SearchInput2 } from "@transferwise/components";
5339
- import { useState as useState15 } from "react";
5340
- import { useIntl as useIntl14 } from "react-intl";
5028
+ import { useState as useState14 } from "react";
5029
+ import { useIntl as useIntl12 } from "react-intl";
5341
5030
 
5342
5031
  // ../renderers/src/utils/items-with-index.ts
5343
5032
  var zipWithIndex = (items) => items.map((item, index) => __spreadProps(__spreadValues({}, item), {
@@ -5345,7 +5034,7 @@ var zipWithIndex = (items) => items.map((item, index) => __spreadProps(__spreadV
5345
5034
  }));
5346
5035
 
5347
5036
  // ../renderers/src/MultiSelectInputRenderer/InlineComponent.tsx
5348
- import { Fragment as Fragment8, jsx as jsx73, jsxs as jsxs18 } from "react/jsx-runtime";
5037
+ import { Fragment as Fragment8, jsx as jsx70, jsxs as jsxs17 } from "react/jsx-runtime";
5349
5038
  function InlineComponent(props) {
5350
5039
  const {
5351
5040
  id,
@@ -5362,12 +5051,12 @@ function InlineComponent(props) {
5362
5051
  onSelect
5363
5052
  } = props;
5364
5053
  const optionsWithIndex = zipWithIndex(options);
5365
- const [query, setQuery] = useState15("");
5366
- const { formatMessage } = useIntl14();
5054
+ const [query, setQuery] = useState14("");
5055
+ const { formatMessage } = useIntl12();
5367
5056
  const filtered = tags == null ? void 0 : tags.includes("filtered");
5368
5057
  const filteredOptions = query ? filterAndSortItems(optionsWithIndex, filtered ? query : "") : optionsWithIndex;
5369
- return /* @__PURE__ */ jsxs18(Fragment8, { children: [
5370
- filtered && /* @__PURE__ */ jsx73(
5058
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
5059
+ filtered && /* @__PURE__ */ jsx70(
5371
5060
  SearchInput2,
5372
5061
  {
5373
5062
  placeholder: formatMessage(filter_messages_default.placeholder),
@@ -5380,7 +5069,7 @@ function InlineComponent(props) {
5380
5069
  }
5381
5070
  }
5382
5071
  ),
5383
- /* @__PURE__ */ jsx73(
5072
+ /* @__PURE__ */ jsx70(
5384
5073
  FieldInput_default,
5385
5074
  {
5386
5075
  id,
@@ -5405,7 +5094,7 @@ function InlineComponent(props) {
5405
5094
  childrenProps
5406
5095
  } = option;
5407
5096
  const key = (_a = childrenProps == null ? void 0 : childrenProps.uid) != null ? _a : index;
5408
- return /* @__PURE__ */ jsx73(
5097
+ return /* @__PURE__ */ jsx70(
5409
5098
  ListItem9,
5410
5099
  {
5411
5100
  title: itemTitle,
@@ -5414,9 +5103,9 @@ function InlineComponent(props) {
5414
5103
  valueSubtitle: supportingValues == null ? void 0 : supportingValues.subvalue,
5415
5104
  media: getMedia(media, false),
5416
5105
  prompt: getInlineAlert(inlineAlert),
5417
- additionalInfo: additionalText ? /* @__PURE__ */ jsx73(ListItem9.AdditionalInfo, { children: additionalText }) : void 0,
5106
+ additionalInfo: additionalText ? /* @__PURE__ */ jsx70(ListItem9.AdditionalInfo, { children: additionalText }) : void 0,
5418
5107
  disabled: disabled || optionDisabled,
5419
- control: /* @__PURE__ */ jsx73(
5108
+ control: /* @__PURE__ */ jsx70(
5420
5109
  ListItem9.Checkbox,
5421
5110
  {
5422
5111
  checked: selectedIndices.includes(index),
@@ -5437,8 +5126,8 @@ function InlineComponent(props) {
5437
5126
 
5438
5127
  // ../renderers/src/MultiSelectInputRenderer/DefaultComponent.tsx
5439
5128
  import { SelectInput, SelectInputOptionContent } from "@transferwise/components";
5440
- import { useState as useState16 } from "react";
5441
- import { useIntl as useIntl15 } from "react-intl";
5129
+ import { useState as useState15 } from "react";
5130
+ import { useIntl as useIntl13 } from "react-intl";
5442
5131
 
5443
5132
  // ../renderers/src/messages/multi-select.messages.ts
5444
5133
  import { defineMessages as defineMessages10 } from "react-intl";
@@ -5451,10 +5140,10 @@ var multi_select_messages_default = defineMessages10({
5451
5140
  });
5452
5141
 
5453
5142
  // ../renderers/src/MultiSelectInputRenderer/DefaultComponent.tsx
5454
- import { jsx as jsx74 } from "react/jsx-runtime";
5143
+ import { jsx as jsx71 } from "react/jsx-runtime";
5455
5144
  function DefaultComponent(props) {
5456
- const { formatMessage } = useIntl15();
5457
- const [stagedIndices, setStagedIndices] = useState16();
5145
+ const { formatMessage } = useIntl13();
5146
+ const [stagedIndices, setStagedIndices] = useState15();
5458
5147
  const {
5459
5148
  id,
5460
5149
  autoComplete,
@@ -5495,12 +5184,12 @@ function DefaultComponent(props) {
5495
5184
  const contentProps = {
5496
5185
  title: option.title,
5497
5186
  description: option.description,
5498
- icon: /* @__PURE__ */ jsx74(OptionMedia, { media: option.media, preferAvatar: false })
5187
+ icon: /* @__PURE__ */ jsx71(OptionMedia, { media: option.media, preferAvatar: false })
5499
5188
  };
5500
- return /* @__PURE__ */ jsx74(SelectInputOptionContent, __spreadValues({}, contentProps));
5189
+ return /* @__PURE__ */ jsx71(SelectInputOptionContent, __spreadValues({}, contentProps));
5501
5190
  };
5502
5191
  const extraProps = { autoComplete };
5503
- return /* @__PURE__ */ jsx74(
5192
+ return /* @__PURE__ */ jsx71(
5504
5193
  FieldInput_default,
5505
5194
  {
5506
5195
  id,
@@ -5511,7 +5200,7 @@ function DefaultComponent(props) {
5511
5200
  features,
5512
5201
  control,
5513
5202
  tags,
5514
- children: /* @__PURE__ */ jsx74(
5203
+ children: /* @__PURE__ */ jsx71(
5515
5204
  SelectInput,
5516
5205
  __spreadValues({
5517
5206
  id,
@@ -5551,7 +5240,7 @@ function DefaultComponent(props) {
5551
5240
 
5552
5241
  // ../renderers/src/MultiSelectInputRenderer/InlineCheckboxComponent.tsx
5553
5242
  import { Checkbox as Checkbox2 } from "@transferwise/components";
5554
- import { jsx as jsx75 } from "react/jsx-runtime";
5243
+ import { jsx as jsx72 } from "react/jsx-runtime";
5555
5244
  function InlineCheckboxComponent(props) {
5556
5245
  const {
5557
5246
  id,
@@ -5567,7 +5256,7 @@ function InlineCheckboxComponent(props) {
5567
5256
  tags,
5568
5257
  onSelect
5569
5258
  } = props;
5570
- return /* @__PURE__ */ jsx75(
5259
+ return /* @__PURE__ */ jsx72(
5571
5260
  FieldInput_default,
5572
5261
  {
5573
5262
  id,
@@ -5598,24 +5287,24 @@ function InlineCheckboxComponent(props) {
5598
5287
  onSelect(newSelectedIndices);
5599
5288
  }
5600
5289
  };
5601
- return /* @__PURE__ */ jsx75(Checkbox2, __spreadProps(__spreadValues({}, checkboxProps), { className: "m-t-1" }), key);
5290
+ return /* @__PURE__ */ jsx72(Checkbox2, __spreadProps(__spreadValues({}, checkboxProps), { className: "m-t-1" }), key);
5602
5291
  })
5603
5292
  }
5604
5293
  );
5605
5294
  }
5606
5295
 
5607
5296
  // ../renderers/src/MultiSelectInputRenderer/MultiSelectInputRenderer.tsx
5608
- import { jsx as jsx76 } from "react/jsx-runtime";
5297
+ import { jsx as jsx73 } from "react/jsx-runtime";
5609
5298
  var MultiSelectInputRenderer = {
5610
5299
  canRenderType: "input-multi-select",
5611
5300
  render: (props) => {
5612
5301
  switch (props.control) {
5613
5302
  case "inline":
5614
- return /* @__PURE__ */ jsx76(InlineComponent, __spreadValues({}, props));
5303
+ return /* @__PURE__ */ jsx73(InlineComponent, __spreadValues({}, props));
5615
5304
  case "inline-checkbox-group":
5616
- return /* @__PURE__ */ jsx76(InlineCheckboxComponent, __spreadValues({}, props));
5305
+ return /* @__PURE__ */ jsx73(InlineCheckboxComponent, __spreadValues({}, props));
5617
5306
  default:
5618
- return /* @__PURE__ */ jsx76(DefaultComponent, __spreadValues({}, props));
5307
+ return /* @__PURE__ */ jsx73(DefaultComponent, __spreadValues({}, props));
5619
5308
  }
5620
5309
  }
5621
5310
  };
@@ -5625,8 +5314,8 @@ import { Status, UploadInput } from "@transferwise/components";
5625
5314
 
5626
5315
  // ../renderers/src/components/UploadFieldInput.tsx
5627
5316
  import { InlineAlert as InlineAlert2 } from "@transferwise/components";
5628
- var import_classnames25 = __toESM(require_classnames());
5629
- import { jsx as jsx77, jsxs as jsxs19 } from "react/jsx-runtime";
5317
+ var import_classnames24 = __toESM(require_classnames());
5318
+ import { jsx as jsx74, jsxs as jsxs18 } from "react/jsx-runtime";
5630
5319
  function UploadFieldInput({
5631
5320
  id,
5632
5321
  children,
@@ -5638,14 +5327,14 @@ function UploadFieldInput({
5638
5327
  control,
5639
5328
  tags
5640
5329
  }) {
5641
- const labelContent = label && help ? /* @__PURE__ */ jsx77(LabelContentWithHelp, { text: label, help }) : label;
5330
+ const labelContent = label && help ? /* @__PURE__ */ jsx74(LabelContentWithHelp, { text: label, help }) : label;
5642
5331
  const descriptionId = description ? `${id}-description` : void 0;
5643
5332
  const { ref } = useScrollToError(validation, features);
5644
- return /* @__PURE__ */ jsxs19(
5333
+ return /* @__PURE__ */ jsxs18(
5645
5334
  "div",
5646
5335
  {
5647
5336
  ref,
5648
- className: (0, import_classnames25.default)(
5337
+ className: (0, import_classnames24.default)(
5649
5338
  "form-group d-block",
5650
5339
  {
5651
5340
  "has-error": (validation == null ? void 0 : validation.status) === "invalid"
@@ -5653,9 +5342,9 @@ function UploadFieldInput({
5653
5342
  controlAndTagsToCSSClass({ control, tags })
5654
5343
  ),
5655
5344
  children: [
5656
- /* @__PURE__ */ jsx77("label", { htmlFor: id, className: "control-label", children: labelContent }),
5345
+ /* @__PURE__ */ jsx74("label", { htmlFor: id, className: "control-label", children: labelContent }),
5657
5346
  children,
5658
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx77(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
5347
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx74(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
5659
5348
  ]
5660
5349
  }
5661
5350
  );
@@ -5690,7 +5379,7 @@ var getSizeLimit = (maxSize) => {
5690
5379
  };
5691
5380
 
5692
5381
  // ../renderers/src/MultiUploadInputRenderer.tsx
5693
- import { jsx as jsx78 } from "react/jsx-runtime";
5382
+ import { jsx as jsx75 } from "react/jsx-runtime";
5694
5383
  var MultiUploadInputRenderer = {
5695
5384
  canRenderType: "input-upload-multi",
5696
5385
  render: (props) => {
@@ -5718,7 +5407,7 @@ var MultiUploadInputRenderer = {
5718
5407
  };
5719
5408
  const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
5720
5409
  const descriptionId = description ? `${id}-description` : void 0;
5721
- return /* @__PURE__ */ jsx78(
5410
+ return /* @__PURE__ */ jsx75(
5722
5411
  UploadFieldInput_default,
5723
5412
  {
5724
5413
  id,
@@ -5729,7 +5418,7 @@ var MultiUploadInputRenderer = {
5729
5418
  features,
5730
5419
  control,
5731
5420
  tags,
5732
- children: /* @__PURE__ */ jsx78(
5421
+ children: /* @__PURE__ */ jsx75(
5733
5422
  UploadInput,
5734
5423
  {
5735
5424
  id,
@@ -5757,8 +5446,8 @@ var MultiUploadInputRenderer = {
5757
5446
  var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
5758
5447
 
5759
5448
  // ../renderers/src/NumberInputRenderer.tsx
5760
- import { Input as Input4, InputGroup as InputGroup4 } from "@transferwise/components";
5761
- import { jsx as jsx79 } from "react/jsx-runtime";
5449
+ import { Input as Input3, InputGroup as InputGroup3 } from "@transferwise/components";
5450
+ import { jsx as jsx76 } from "react/jsx-runtime";
5762
5451
  var NumberInputRenderer = {
5763
5452
  canRenderType: "input-number",
5764
5453
  render: (props) => {
@@ -5772,7 +5461,7 @@ var NumberInputRenderer = {
5772
5461
  "maximum",
5773
5462
  "minimum"
5774
5463
  );
5775
- return /* @__PURE__ */ jsx79(
5464
+ return /* @__PURE__ */ jsx76(
5776
5465
  FieldInput_default,
5777
5466
  {
5778
5467
  id,
@@ -5785,8 +5474,8 @@ var NumberInputRenderer = {
5785
5474
  features: props.features,
5786
5475
  control: props.control,
5787
5476
  tags: props.tags,
5788
- children: /* @__PURE__ */ jsx79(InputGroup4, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx79(
5789
- Input4,
5477
+ children: /* @__PURE__ */ jsx76(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx76(
5478
+ Input3,
5790
5479
  __spreadValues({
5791
5480
  id,
5792
5481
  name: id,
@@ -5806,9 +5495,9 @@ var NumberInputRenderer = {
5806
5495
  var NumberInputRenderer_default = NumberInputRenderer;
5807
5496
 
5808
5497
  // ../renderers/src/ParagraphRenderer.tsx
5809
- var import_classnames26 = __toESM(require_classnames());
5810
- import { Button as Button8, Input as Input5 } from "@transferwise/components";
5811
- import { useIntl as useIntl16 } from "react-intl";
5498
+ var import_classnames25 = __toESM(require_classnames());
5499
+ import { Button as Button7, Input as Input4 } from "@transferwise/components";
5500
+ import { useIntl as useIntl14 } from "react-intl";
5812
5501
 
5813
5502
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
5814
5503
  import { SnackbarContext } from "@transferwise/components";
@@ -5835,18 +5524,18 @@ var paragraph_messages_default = defineMessages11({
5835
5524
  });
5836
5525
 
5837
5526
  // ../renderers/src/ParagraphRenderer.tsx
5838
- import { jsx as jsx80, jsxs as jsxs20 } from "react/jsx-runtime";
5527
+ import { jsx as jsx77, jsxs as jsxs19 } from "react/jsx-runtime";
5839
5528
  var ParagraphRenderer = {
5840
5529
  canRenderType: "paragraph",
5841
- render: (props) => /* @__PURE__ */ jsx80(Paragraph, __spreadValues({}, props))
5530
+ render: (props) => /* @__PURE__ */ jsx77(Paragraph, __spreadValues({}, props))
5842
5531
  };
5843
5532
  function Paragraph(props) {
5844
5533
  const { align, control, margin, size, text } = props;
5845
- const className = (0, import_classnames26.default)(
5534
+ const className = (0, import_classnames25.default)(
5846
5535
  getTextAlignmentAndMargin({ align, margin }),
5847
5536
  controlAndTagsToCSSClass(props)
5848
5537
  );
5849
- return control === "copyable" ? /* @__PURE__ */ jsx80(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx80(
5538
+ return control === "copyable" ? /* @__PURE__ */ jsx77(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx77(
5850
5539
  "p",
5851
5540
  {
5852
5541
  className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
@@ -5859,41 +5548,41 @@ function CopyableParagraph({
5859
5548
  align,
5860
5549
  className
5861
5550
  }) {
5862
- const { formatMessage } = useIntl16();
5551
+ const { formatMessage } = useIntl14();
5863
5552
  const createSnackbar = useSnackBarIfAvailable();
5864
5553
  const copy = () => {
5865
5554
  navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
5866
5555
  });
5867
5556
  };
5868
5557
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
5869
- return /* @__PURE__ */ jsxs20("div", { className, children: [
5870
- /* @__PURE__ */ jsx80(
5871
- Input5,
5558
+ return /* @__PURE__ */ jsxs19("div", { className, children: [
5559
+ /* @__PURE__ */ jsx77(
5560
+ Input4,
5872
5561
  {
5873
5562
  type: "text",
5874
5563
  value: text,
5875
5564
  readOnly: true,
5876
- className: (0, import_classnames26.default)("text-ellipsis", inputAlignmentClasses)
5565
+ className: (0, import_classnames25.default)("text-ellipsis", inputAlignmentClasses)
5877
5566
  }
5878
5567
  ),
5879
- /* @__PURE__ */ jsx80(Button8, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
5568
+ /* @__PURE__ */ jsx77(Button7, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
5880
5569
  ] });
5881
5570
  }
5882
5571
  var ParagraphRenderer_default = ParagraphRenderer;
5883
5572
 
5884
5573
  // ../renderers/src/ProgressRenderer.tsx
5885
- var import_classnames27 = __toESM(require_classnames());
5574
+ var import_classnames26 = __toESM(require_classnames());
5886
5575
  import { ProgressBar } from "@transferwise/components";
5887
- import { jsx as jsx81 } from "react/jsx-runtime";
5576
+ import { jsx as jsx78 } from "react/jsx-runtime";
5888
5577
  var ProgressRenderer = {
5889
5578
  canRenderType: "progress",
5890
5579
  render: ({ uid, title, help, progress, progressText, margin, description, control, tags }) => {
5891
- return /* @__PURE__ */ jsx81(
5580
+ return /* @__PURE__ */ jsx78(
5892
5581
  ProgressBar,
5893
5582
  {
5894
5583
  id: uid,
5895
- className: (0, import_classnames27.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
5896
- title: title && help ? /* @__PURE__ */ jsx81(LabelContentWithHelp, { text: title, help }) : title,
5584
+ className: (0, import_classnames26.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
5585
+ title: title && help ? /* @__PURE__ */ jsx78(LabelContentWithHelp, { text: title, help }) : title,
5897
5586
  description,
5898
5587
  progress: {
5899
5588
  max: 1,
@@ -5906,11 +5595,11 @@ var ProgressRenderer = {
5906
5595
  };
5907
5596
 
5908
5597
  // ../renderers/src/RepeatableRenderer.tsx
5909
- var import_classnames28 = __toESM(require_classnames());
5910
- import { Button as Button9, Header as Header6, InlineAlert as InlineAlert3, Modal as Modal4, NavigationOption } from "@transferwise/components";
5598
+ var import_classnames27 = __toESM(require_classnames());
5599
+ import { Button as Button8, Header as Header6, InlineAlert as InlineAlert3, Modal as Modal4, NavigationOption } from "@transferwise/components";
5911
5600
  import { Plus } from "@transferwise/icons";
5912
- import { useState as useState17 } from "react";
5913
- import { useIntl as useIntl17 } from "react-intl";
5601
+ import { useState as useState16 } from "react";
5602
+ import { useIntl as useIntl15 } from "react-intl";
5914
5603
 
5915
5604
  // ../renderers/src/messages/repeatable.messages.ts
5916
5605
  import { defineMessages as defineMessages12 } from "react-intl";
@@ -5938,10 +5627,10 @@ var repeatable_messages_default = defineMessages12({
5938
5627
  });
5939
5628
 
5940
5629
  // ../renderers/src/RepeatableRenderer.tsx
5941
- import { Fragment as Fragment9, jsx as jsx82, jsxs as jsxs21 } from "react/jsx-runtime";
5630
+ import { Fragment as Fragment9, jsx as jsx79, jsxs as jsxs20 } from "react/jsx-runtime";
5942
5631
  var RepeatableRenderer = {
5943
5632
  canRenderType: "repeatable",
5944
- render: (props) => /* @__PURE__ */ jsx82(Repeatable, __spreadValues({}, props))
5633
+ render: (props) => /* @__PURE__ */ jsx79(Repeatable, __spreadValues({}, props))
5945
5634
  };
5946
5635
  function Repeatable(props) {
5947
5636
  const {
@@ -5958,8 +5647,8 @@ function Repeatable(props) {
5958
5647
  onSave,
5959
5648
  onRemove
5960
5649
  } = props;
5961
- const { formatMessage } = useIntl17();
5962
- const [openModalType, setOpenModalType] = useState17(null);
5650
+ const { formatMessage } = useIntl15();
5651
+ const [openModalType, setOpenModalType] = useState16(null);
5963
5652
  const { ref } = useScrollToError(validationState, features);
5964
5653
  const onAddItem = () => {
5965
5654
  onAdd();
@@ -5982,43 +5671,43 @@ function Repeatable(props) {
5982
5671
  const onCancelEdit = () => {
5983
5672
  setOpenModalType(null);
5984
5673
  };
5985
- return /* @__PURE__ */ jsxs21(Fragment9, { children: [
5986
- /* @__PURE__ */ jsxs21("div", { ref, className: controlAndTagsToCSSClass(props), children: [
5987
- title && /* @__PURE__ */ jsx82(Header6, { title }),
5988
- description && /* @__PURE__ */ jsx82("p", { children: description }),
5989
- /* @__PURE__ */ jsxs21(
5674
+ return /* @__PURE__ */ jsxs20(Fragment9, { children: [
5675
+ /* @__PURE__ */ jsxs20("div", { ref, className: controlAndTagsToCSSClass(props), children: [
5676
+ title && /* @__PURE__ */ jsx79(Header6, { title }),
5677
+ description && /* @__PURE__ */ jsx79("p", { children: description }),
5678
+ /* @__PURE__ */ jsxs20(
5990
5679
  "div",
5991
5680
  {
5992
- className: (0, import_classnames28.default)("form-group", {
5681
+ className: (0, import_classnames27.default)("form-group", {
5993
5682
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
5994
5683
  }),
5995
5684
  children: [
5996
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx82(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
5997
- /* @__PURE__ */ jsx82(
5685
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx79(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
5686
+ /* @__PURE__ */ jsx79(
5998
5687
  NavigationOption,
5999
5688
  {
6000
- media: /* @__PURE__ */ jsx82(Plus, {}),
5689
+ media: /* @__PURE__ */ jsx79(Plus, {}),
6001
5690
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
6002
5691
  showMediaAtAllSizes: true,
6003
5692
  onClick: () => onAddItem()
6004
5693
  }
6005
5694
  ),
6006
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx82(InlineAlert3, { type: "negative", children: validationState.message })
5695
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx79(InlineAlert3, { type: "negative", children: validationState.message })
6007
5696
  ]
6008
5697
  }
6009
5698
  )
6010
5699
  ] }),
6011
- /* @__PURE__ */ jsx82(
5700
+ /* @__PURE__ */ jsx79(
6012
5701
  Modal4,
6013
5702
  {
6014
5703
  open: openModalType !== null,
6015
5704
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
6016
- body: /* @__PURE__ */ jsxs21(Fragment9, { children: [
6017
- /* @__PURE__ */ jsx82("div", { className: "m-b-2", children: editableItem }),
6018
- /* @__PURE__ */ jsxs21("div", { children: [
6019
- /* @__PURE__ */ jsx82(Button9, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
6020
- /* @__PURE__ */ jsx82(
6021
- Button9,
5705
+ body: /* @__PURE__ */ jsxs20(Fragment9, { children: [
5706
+ /* @__PURE__ */ jsx79("div", { className: "m-b-2", children: editableItem }),
5707
+ /* @__PURE__ */ jsxs20("div", { children: [
5708
+ /* @__PURE__ */ jsx79(Button8, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
5709
+ /* @__PURE__ */ jsx79(
5710
+ Button8,
6022
5711
  {
6023
5712
  v2: true,
6024
5713
  priority: "secondary",
@@ -6039,10 +5728,10 @@ function ItemSummaryOption({
6039
5728
  item,
6040
5729
  onClick
6041
5730
  }) {
6042
- return /* @__PURE__ */ jsx82(
5731
+ return /* @__PURE__ */ jsx79(
6043
5732
  NavigationOption,
6044
5733
  {
6045
- media: /* @__PURE__ */ jsx82(OptionMedia, { media: item.media, preferAvatar: false }),
5734
+ media: /* @__PURE__ */ jsx79(OptionMedia, { media: item.media, preferAvatar: false }),
6046
5735
  title: item.title,
6047
5736
  content: item.description,
6048
5737
  showMediaAtAllSizes: true,
@@ -6054,16 +5743,16 @@ function ItemSummaryOption({
6054
5743
  var RepeatableRenderer_default = RepeatableRenderer;
6055
5744
 
6056
5745
  // ../renderers/src/ReviewLegacyRenderer.tsx
6057
- var import_classnames29 = __toESM(require_classnames());
5746
+ var import_classnames28 = __toESM(require_classnames());
6058
5747
  import { DefinitionList } from "@transferwise/components";
6059
- import { Fragment as Fragment10, jsx as jsx83, jsxs as jsxs22 } from "react/jsx-runtime";
5748
+ import { Fragment as Fragment10, jsx as jsx80, jsxs as jsxs21 } from "react/jsx-runtime";
6060
5749
  var ReviewRenderer = {
6061
5750
  canRenderType: "review",
6062
5751
  render: ({ callToAction, control, fields, margin, title, trackEvent, tags }) => {
6063
5752
  const orientation = mapControlToDefinitionListLayout(control);
6064
- return /* @__PURE__ */ jsxs22("div", { className: (0, import_classnames29.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6065
- /* @__PURE__ */ jsx83(Header, { title, callToAction }),
6066
- /* @__PURE__ */ jsx83("div", { className: margin, children: /* @__PURE__ */ jsx83(
5753
+ return /* @__PURE__ */ jsxs21("div", { className: (0, import_classnames28.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5754
+ /* @__PURE__ */ jsx80(Header, { title, callToAction }),
5755
+ /* @__PURE__ */ jsx80("div", { className: margin, children: /* @__PURE__ */ jsx80(
6067
5756
  DefinitionList,
6068
5757
  {
6069
5758
  layout: orientation,
@@ -6101,21 +5790,21 @@ var mapControlToDefinitionListLayout = (control) => {
6101
5790
  };
6102
5791
  var getFieldLabel = (label, help, onClick) => {
6103
5792
  if (help) {
6104
- return /* @__PURE__ */ jsxs22(Fragment10, { children: [
5793
+ return /* @__PURE__ */ jsxs21(Fragment10, { children: [
6105
5794
  label,
6106
5795
  " ",
6107
- /* @__PURE__ */ jsx83(Help_default, { help, onClick })
5796
+ /* @__PURE__ */ jsx80(Help_default, { help, onClick })
6108
5797
  ] });
6109
5798
  }
6110
5799
  return label;
6111
5800
  };
6112
5801
 
6113
5802
  // ../renderers/src/ReviewRenderer.tsx
6114
- var import_classnames30 = __toESM(require_classnames());
5803
+ var import_classnames29 = __toESM(require_classnames());
6115
5804
  import { ListItem as ListItem10, Markdown as Markdown5, Popover } from "@transferwise/components";
6116
5805
  import { QuestionMarkCircle } from "@transferwise/icons";
6117
- import { useIntl as useIntl18 } from "react-intl";
6118
- import { jsx as jsx84, jsxs as jsxs23 } from "react/jsx-runtime";
5806
+ import { useIntl as useIntl16 } from "react-intl";
5807
+ import { jsx as jsx81, jsxs as jsxs22 } from "react/jsx-runtime";
6119
5808
  var IGNORED_CONTROLS = [
6120
5809
  "horizontal",
6121
5810
  "horizontal-end-aligned",
@@ -6125,7 +5814,7 @@ var IGNORED_CONTROLS = [
6125
5814
  var ReviewRenderer2 = {
6126
5815
  canRenderType: "review",
6127
5816
  canRender: ({ control }) => control ? !IGNORED_CONTROLS.includes(control) : true,
6128
- render: (props) => /* @__PURE__ */ jsx84(Review, __spreadValues({}, props))
5817
+ render: (props) => /* @__PURE__ */ jsx81(Review, __spreadValues({}, props))
6129
5818
  };
6130
5819
  var Review = ({
6131
5820
  callToAction,
@@ -6136,9 +5825,9 @@ var Review = ({
6136
5825
  title,
6137
5826
  trackEvent
6138
5827
  }) => {
6139
- const intl = useIntl18();
6140
- return /* @__PURE__ */ jsxs23("div", { className: (0, import_classnames30.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6141
- /* @__PURE__ */ jsx84(Header, { title, callToAction }),
5828
+ const intl = useIntl16();
5829
+ return /* @__PURE__ */ jsxs22("div", { className: (0, import_classnames29.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
5830
+ /* @__PURE__ */ jsx81(Header, { title, callToAction }),
6142
5831
  fields.map((field) => {
6143
5832
  var _a, _b, _c;
6144
5833
  const {
@@ -6156,7 +5845,7 @@ var Review = ({
6156
5845
  ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
6157
5846
  fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
6158
5847
  };
6159
- return /* @__PURE__ */ jsx84(
5848
+ return /* @__PURE__ */ jsx81(
6160
5849
  ListItem10,
6161
5850
  {
6162
5851
  title: value,
@@ -6177,14 +5866,14 @@ var Review = ({
6177
5866
  ] });
6178
5867
  };
6179
5868
  var getHelpControl = (help, ariaLabel, onClick) => {
6180
- return /* @__PURE__ */ jsx84(Popover, { content: /* @__PURE__ */ jsx84(Markdown5, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ jsx84(ListItem10.IconButton, { partiallyInteractive: true, "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ jsx84(QuestionMarkCircle, {}) }) });
5869
+ return /* @__PURE__ */ jsx81(Popover, { content: /* @__PURE__ */ jsx81(Markdown5, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ jsx81(ListItem10.IconButton, { partiallyInteractive: true, "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ jsx81(QuestionMarkCircle, {}) }) });
6181
5870
  };
6182
5871
  var ReviewRenderer_default = ReviewRenderer2;
6183
5872
 
6184
5873
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
6185
- import { Input as Input6, InputGroup as InputGroup5, List, ListItem as ListItem11, Markdown as Markdown6 } from "@transferwise/components";
6186
- import { useState as useState18 } from "react";
6187
- import { useIntl as useIntl20 } from "react-intl";
5874
+ import { Input as Input5, InputGroup as InputGroup4, List, ListItem as ListItem11, Markdown as Markdown6 } from "@transferwise/components";
5875
+ import { useState as useState17 } from "react";
5876
+ import { useIntl as useIntl18 } from "react-intl";
6188
5877
 
6189
5878
  // ../renderers/src/messages/search.messages.ts
6190
5879
  import { defineMessages as defineMessages13 } from "react-intl";
@@ -6197,21 +5886,21 @@ var search_messages_default = defineMessages13({
6197
5886
  });
6198
5887
 
6199
5888
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
6200
- import { useIntl as useIntl19 } from "react-intl";
5889
+ import { useIntl as useIntl17 } from "react-intl";
6201
5890
  import { Link as DSLink2 } from "@transferwise/components";
6202
- import { jsx as jsx85, jsxs as jsxs24 } from "react/jsx-runtime";
5891
+ import { jsx as jsx82, jsxs as jsxs23 } from "react/jsx-runtime";
6203
5892
  function ErrorResult({ state }) {
6204
- const intl = useIntl19();
6205
- return /* @__PURE__ */ jsxs24("p", { className: "m-t-2", children: [
5893
+ const intl = useIntl17();
5894
+ return /* @__PURE__ */ jsxs23("p", { className: "m-t-2", children: [
6206
5895
  intl.formatMessage(generic_error_messages_default.genericError),
6207
5896
  "\xA0",
6208
- /* @__PURE__ */ jsx85(DSLink2, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
5897
+ /* @__PURE__ */ jsx82(DSLink2, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
6209
5898
  ] });
6210
5899
  }
6211
5900
 
6212
5901
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
6213
- import { Search as Search3 } from "@transferwise/icons";
6214
- import { Fragment as Fragment11, jsx as jsx86, jsxs as jsxs25 } from "react/jsx-runtime";
5902
+ import { Search as Search2 } from "@transferwise/icons";
5903
+ import { Fragment as Fragment11, jsx as jsx83, jsxs as jsxs24 } from "react/jsx-runtime";
6215
5904
  function BlockSearchRendererComponent({
6216
5905
  id,
6217
5906
  hint,
@@ -6226,10 +5915,10 @@ function BlockSearchRendererComponent({
6226
5915
  trackEvent,
6227
5916
  onChange
6228
5917
  }) {
6229
- const [hasSearched, setHasSearched] = useState18(false);
6230
- const { formatMessage } = useIntl20();
6231
- return /* @__PURE__ */ jsxs25("div", { className: getMargin(margin), children: [
6232
- /* @__PURE__ */ jsx86(
5918
+ const [hasSearched, setHasSearched] = useState17(false);
5919
+ const { formatMessage } = useIntl18();
5920
+ return /* @__PURE__ */ jsxs24("div", { className: getMargin(margin), children: [
5921
+ /* @__PURE__ */ jsx83(
6233
5922
  FieldInput_default,
6234
5923
  {
6235
5924
  id,
@@ -6240,8 +5929,8 @@ function BlockSearchRendererComponent({
6240
5929
  features,
6241
5930
  control,
6242
5931
  tags,
6243
- children: /* @__PURE__ */ jsx86(InputGroup5, { addonStart: { content: /* @__PURE__ */ jsx86(Search3, { size: 24 }) }, children: /* @__PURE__ */ jsx86(
6244
- Input6,
5932
+ children: /* @__PURE__ */ jsx83(InputGroup4, { addonStart: { content: /* @__PURE__ */ jsx83(Search2, { size: 24 }) }, children: /* @__PURE__ */ jsx83(
5933
+ Input5,
6245
5934
  {
6246
5935
  id,
6247
5936
  name: id,
@@ -6260,7 +5949,7 @@ function BlockSearchRendererComponent({
6260
5949
  ) })
6261
5950
  }
6262
5951
  ),
6263
- isLoading ? /* @__PURE__ */ jsx86("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx86(SearchResultContent, { state, trackEvent })
5952
+ isLoading ? /* @__PURE__ */ jsx83("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx83(SearchResultContent, { state, trackEvent })
6264
5953
  ] });
6265
5954
  }
6266
5955
  function SearchResultContent({
@@ -6269,38 +5958,38 @@ function SearchResultContent({
6269
5958
  }) {
6270
5959
  switch (state.type) {
6271
5960
  case "error":
6272
- return /* @__PURE__ */ jsx86(ErrorResult, { state });
5961
+ return /* @__PURE__ */ jsx83(ErrorResult, { state });
6273
5962
  case "results":
6274
- return /* @__PURE__ */ jsx86(SearchResults, { state, trackEvent });
5963
+ return /* @__PURE__ */ jsx83(SearchResults, { state, trackEvent });
6275
5964
  case "layout":
6276
- return /* @__PURE__ */ jsxs25(Fragment11, { children: [
5965
+ return /* @__PURE__ */ jsxs24(Fragment11, { children: [
6277
5966
  " ",
6278
5967
  state.layout,
6279
5968
  " "
6280
5969
  ] });
6281
5970
  case "noResults":
6282
- return /* @__PURE__ */ jsx86(EmptySearchResult, { state });
5971
+ return /* @__PURE__ */ jsx83(EmptySearchResult, { state });
6283
5972
  case "pending":
6284
5973
  default:
6285
5974
  return null;
6286
5975
  }
6287
5976
  }
6288
5977
  function EmptySearchResult({ state }) {
6289
- return /* @__PURE__ */ jsx86(Markdown6, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
5978
+ return /* @__PURE__ */ jsx83(Markdown6, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
6290
5979
  }
6291
5980
  function SearchResults({
6292
5981
  state,
6293
5982
  trackEvent
6294
5983
  }) {
6295
- return /* @__PURE__ */ jsx86(List, { children: state.results.map((result) => {
5984
+ return /* @__PURE__ */ jsx83(List, { children: state.results.map((result) => {
6296
5985
  const { media } = result;
6297
- return /* @__PURE__ */ jsx86(
5986
+ return /* @__PURE__ */ jsx83(
6298
5987
  ListItem11,
6299
5988
  {
6300
5989
  title: result.title,
6301
5990
  subtitle: result.description,
6302
- media: media ? /* @__PURE__ */ jsx86(OptionMedia, { media, preferAvatar: false }) : void 0,
6303
- control: /* @__PURE__ */ jsx86(
5991
+ media: media ? /* @__PURE__ */ jsx83(OptionMedia, { media, preferAvatar: false }) : void 0,
5992
+ control: /* @__PURE__ */ jsx83(
6304
5993
  ListItem11.Navigation,
6305
5994
  {
6306
5995
  onClick: () => {
@@ -6320,10 +6009,10 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
6320
6009
 
6321
6010
  // ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
6322
6011
  import { Markdown as Markdown7, Typeahead } from "@transferwise/components";
6323
- import { Search as Search4 } from "@transferwise/icons";
6324
- import { useState as useState19 } from "react";
6325
- import { useIntl as useIntl21 } from "react-intl";
6326
- import { jsx as jsx87 } from "react/jsx-runtime";
6012
+ import { Search as Search3 } from "@transferwise/icons";
6013
+ import { useState as useState18 } from "react";
6014
+ import { useIntl as useIntl19 } from "react-intl";
6015
+ import { jsx as jsx84 } from "react/jsx-runtime";
6327
6016
  function InlineSearchRenderer({
6328
6017
  id,
6329
6018
  hint,
@@ -6337,9 +6026,9 @@ function InlineSearchRenderer({
6337
6026
  onChange,
6338
6027
  trackEvent
6339
6028
  }) {
6340
- const [hasSearched, setHasSearched] = useState19(false);
6341
- const intl = useIntl21();
6342
- return /* @__PURE__ */ jsx87("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx87(
6029
+ const [hasSearched, setHasSearched] = useState18(false);
6030
+ const intl = useIntl19();
6031
+ return /* @__PURE__ */ jsx84("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx84(
6343
6032
  FieldInput_default,
6344
6033
  {
6345
6034
  id,
@@ -6350,7 +6039,7 @@ function InlineSearchRenderer({
6350
6039
  features,
6351
6040
  control,
6352
6041
  tags,
6353
- children: /* @__PURE__ */ jsx87(
6042
+ children: /* @__PURE__ */ jsx84(
6354
6043
  Typeahead,
6355
6044
  {
6356
6045
  id: "typeahead-input-id",
@@ -6359,10 +6048,10 @@ function InlineSearchRenderer({
6359
6048
  size: "md",
6360
6049
  placeholder: hint,
6361
6050
  maxHeight: 100,
6362
- footer: /* @__PURE__ */ jsx87(TypeaheadFooter, { state, isLoading }),
6051
+ footer: /* @__PURE__ */ jsx84(TypeaheadFooter, { state, isLoading }),
6363
6052
  multiple: false,
6364
6053
  clearable: false,
6365
- addon: /* @__PURE__ */ jsx87(Search4, { size: 24 }),
6054
+ addon: /* @__PURE__ */ jsx84(Search3, { size: 24 }),
6366
6055
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
6367
6056
  minQueryLength: 1,
6368
6057
  onChange: (values) => {
@@ -6399,33 +6088,33 @@ function mapResultToTypeaheadOption(result) {
6399
6088
  };
6400
6089
  }
6401
6090
  function TypeaheadFooter({ state, isLoading }) {
6402
- const { formatMessage } = useIntl21();
6091
+ const { formatMessage } = useIntl19();
6403
6092
  if (state.type === "layout") {
6404
- return /* @__PURE__ */ jsx87("div", { className: "m-x-1 m-y-1", children: state.layout });
6093
+ return /* @__PURE__ */ jsx84("div", { className: "m-x-1 m-y-1", children: state.layout });
6405
6094
  }
6406
6095
  if (state.type === "noResults") {
6407
- return /* @__PURE__ */ jsx87(Markdown7, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
6096
+ return /* @__PURE__ */ jsx84(Markdown7, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
6408
6097
  }
6409
6098
  if (state.type === "error") {
6410
- return /* @__PURE__ */ jsx87("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx87(ErrorResult, { state }) });
6099
+ return /* @__PURE__ */ jsx84("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx84(ErrorResult, { state }) });
6411
6100
  }
6412
6101
  if (state.type === "pending" || isLoading) {
6413
- return /* @__PURE__ */ jsx87("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
6102
+ return /* @__PURE__ */ jsx84("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
6414
6103
  }
6415
6104
  return null;
6416
6105
  }
6417
6106
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
6418
6107
 
6419
6108
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
6420
- import { jsx as jsx88 } from "react/jsx-runtime";
6109
+ import { jsx as jsx85 } from "react/jsx-runtime";
6421
6110
  var SearchRenderer = {
6422
6111
  canRenderType: "search",
6423
- render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx88(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx88(BlockSearchRendererComponent_default, __spreadValues({}, props))
6112
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx85(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx85(BlockSearchRendererComponent_default, __spreadValues({}, props))
6424
6113
  };
6425
6114
  var SearchRenderer_default = SearchRenderer;
6426
6115
 
6427
6116
  // ../renderers/src/SectionRenderer.tsx
6428
- var import_classnames31 = __toESM(require_classnames());
6117
+ var import_classnames30 = __toESM(require_classnames());
6429
6118
  import { Header as Header7 } from "@transferwise/components";
6430
6119
 
6431
6120
  // ../renderers/src/utils/getHeaderAction.tsx
@@ -6450,16 +6139,16 @@ var getHeaderAction2 = (callToAction) => {
6450
6139
  };
6451
6140
 
6452
6141
  // ../renderers/src/SectionRenderer.tsx
6453
- import { jsx as jsx89, jsxs as jsxs26 } from "react/jsx-runtime";
6142
+ import { jsx as jsx86, jsxs as jsxs25 } from "react/jsx-runtime";
6454
6143
  var SectionRenderer = {
6455
6144
  canRenderType: "section",
6456
6145
  render: ({ children, callToAction, margin, title, control, tags }) => {
6457
- return /* @__PURE__ */ jsxs26(
6146
+ return /* @__PURE__ */ jsxs25(
6458
6147
  "section",
6459
6148
  {
6460
- className: (0, import_classnames31.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
6149
+ className: (0, import_classnames30.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
6461
6150
  children: [
6462
- (title || callToAction) && /* @__PURE__ */ jsx89(Header7, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
6151
+ (title || callToAction) && /* @__PURE__ */ jsx86(Header7, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
6463
6152
  children
6464
6153
  ]
6465
6154
  }
@@ -6470,7 +6159,7 @@ var SectionRenderer_default = SectionRenderer;
6470
6159
 
6471
6160
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
6472
6161
  import { RadioGroup } from "@transferwise/components";
6473
- import { Fragment as Fragment12, jsx as jsx90, jsxs as jsxs27 } from "react/jsx-runtime";
6162
+ import { Fragment as Fragment12, jsx as jsx87, jsxs as jsxs26 } from "react/jsx-runtime";
6474
6163
  function RadioInputRendererComponent(props) {
6475
6164
  const {
6476
6165
  id,
@@ -6487,8 +6176,8 @@ function RadioInputRendererComponent(props) {
6487
6176
  tags,
6488
6177
  onSelect
6489
6178
  } = props;
6490
- return /* @__PURE__ */ jsxs27(Fragment12, { children: [
6491
- /* @__PURE__ */ jsx90(
6179
+ return /* @__PURE__ */ jsxs26(Fragment12, { children: [
6180
+ /* @__PURE__ */ jsx87(
6492
6181
  FieldInput_default,
6493
6182
  {
6494
6183
  id,
@@ -6499,7 +6188,7 @@ function RadioInputRendererComponent(props) {
6499
6188
  features,
6500
6189
  control,
6501
6190
  tags,
6502
- children: /* @__PURE__ */ jsx90("span", { children: /* @__PURE__ */ jsx90(
6191
+ children: /* @__PURE__ */ jsx87("span", { children: /* @__PURE__ */ jsx87(
6503
6192
  RadioGroup,
6504
6193
  {
6505
6194
  name: id,
@@ -6508,7 +6197,7 @@ function RadioInputRendererComponent(props) {
6508
6197
  value: index,
6509
6198
  secondary: option.description,
6510
6199
  disabled: option.disabled || disabled,
6511
- avatar: /* @__PURE__ */ jsx90(OptionMedia, { media: option.media, preferAvatar: false })
6200
+ avatar: /* @__PURE__ */ jsx87(OptionMedia, { media: option.media, preferAvatar: false })
6512
6201
  })),
6513
6202
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
6514
6203
  onChange: onSelect
@@ -6524,7 +6213,7 @@ function RadioInputRendererComponent(props) {
6524
6213
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
6525
6214
  import { Tabs } from "@transferwise/components";
6526
6215
  import { useEffect as useEffect12 } from "react";
6527
- import { Fragment as Fragment13, jsx as jsx91, jsxs as jsxs28 } from "react/jsx-runtime";
6216
+ import { Fragment as Fragment13, jsx as jsx88, jsxs as jsxs27 } from "react/jsx-runtime";
6528
6217
  function TabInputRendererComponent(props) {
6529
6218
  const {
6530
6219
  id,
@@ -6546,8 +6235,8 @@ function TabInputRendererComponent(props) {
6546
6235
  onSelect(0);
6547
6236
  }
6548
6237
  }, [selectedIndex, onSelect, options.length]);
6549
- return /* @__PURE__ */ jsxs28(Fragment13, { children: [
6550
- /* @__PURE__ */ jsx91(
6238
+ return /* @__PURE__ */ jsxs27(Fragment13, { children: [
6239
+ /* @__PURE__ */ jsx88(
6551
6240
  FieldInput_default,
6552
6241
  {
6553
6242
  id,
@@ -6558,7 +6247,7 @@ function TabInputRendererComponent(props) {
6558
6247
  features,
6559
6248
  control,
6560
6249
  tags,
6561
- children: /* @__PURE__ */ jsx91(
6250
+ children: /* @__PURE__ */ jsx88(
6562
6251
  Tabs,
6563
6252
  {
6564
6253
  name: id,
@@ -6567,7 +6256,7 @@ function TabInputRendererComponent(props) {
6567
6256
  title: option.title,
6568
6257
  // if we pass null, we get some props-types console errors
6569
6258
  // eslint-disable-next-line react/jsx-no-useless-fragment
6570
- content: /* @__PURE__ */ jsx91(Fragment13, {}),
6259
+ content: /* @__PURE__ */ jsx88(Fragment13, {}),
6571
6260
  disabled: option.disabled || disabled
6572
6261
  })),
6573
6262
  onTabSelect: onSelect
@@ -6582,7 +6271,7 @@ var isValidIndex2 = (index, options) => index !== null && index >= 0 && index <
6582
6271
 
6583
6272
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
6584
6273
  import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
6585
- import { Fragment as Fragment14, jsx as jsx92, jsxs as jsxs29 } from "react/jsx-runtime";
6274
+ import { Fragment as Fragment14, jsx as jsx89, jsxs as jsxs28 } from "react/jsx-runtime";
6586
6275
  function SelectInputRendererComponent(props) {
6587
6276
  const {
6588
6277
  id,
@@ -6625,13 +6314,13 @@ function SelectInputRendererComponent(props) {
6625
6314
  } : {
6626
6315
  title: option.title,
6627
6316
  description: option.description,
6628
- icon: /* @__PURE__ */ jsx92(OptionMedia, { media: option.media, preferAvatar: false })
6317
+ icon: /* @__PURE__ */ jsx89(OptionMedia, { media: option.media, preferAvatar: false })
6629
6318
  };
6630
- return /* @__PURE__ */ jsx92(SelectInputOptionContent2, __spreadValues({}, contentProps));
6319
+ return /* @__PURE__ */ jsx89(SelectInputOptionContent2, __spreadValues({}, contentProps));
6631
6320
  };
6632
6321
  const extraProps = { autoComplete };
6633
- return /* @__PURE__ */ jsxs29(Fragment14, { children: [
6634
- /* @__PURE__ */ jsx92(
6322
+ return /* @__PURE__ */ jsxs28(Fragment14, { children: [
6323
+ /* @__PURE__ */ jsx89(
6635
6324
  FieldInput_default,
6636
6325
  {
6637
6326
  id,
@@ -6642,7 +6331,7 @@ function SelectInputRendererComponent(props) {
6642
6331
  features,
6643
6332
  control,
6644
6333
  tags,
6645
- children: /* @__PURE__ */ jsx92(
6334
+ children: /* @__PURE__ */ jsx89(
6646
6335
  SelectInput2,
6647
6336
  __spreadValues({
6648
6337
  name: id,
@@ -6665,7 +6354,7 @@ function SelectInputRendererComponent(props) {
6665
6354
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
6666
6355
  import { useEffect as useEffect13 } from "react";
6667
6356
  import { SegmentedControl } from "@transferwise/components";
6668
- import { Fragment as Fragment15, jsx as jsx93, jsxs as jsxs30 } from "react/jsx-runtime";
6357
+ import { Fragment as Fragment15, jsx as jsx90, jsxs as jsxs29 } from "react/jsx-runtime";
6669
6358
  function SegmentedInputRendererComponent(props) {
6670
6359
  const {
6671
6360
  id,
@@ -6686,8 +6375,8 @@ function SegmentedInputRendererComponent(props) {
6686
6375
  onSelect(0);
6687
6376
  }
6688
6377
  }, [selectedIndex, onSelect, options.length]);
6689
- return /* @__PURE__ */ jsxs30(Fragment15, { children: [
6690
- /* @__PURE__ */ jsx93(
6378
+ return /* @__PURE__ */ jsxs29(Fragment15, { children: [
6379
+ /* @__PURE__ */ jsx90(
6691
6380
  FieldInput_default,
6692
6381
  {
6693
6382
  id,
@@ -6698,7 +6387,7 @@ function SegmentedInputRendererComponent(props) {
6698
6387
  features,
6699
6388
  control,
6700
6389
  tags,
6701
- children: /* @__PURE__ */ jsx93(
6390
+ children: /* @__PURE__ */ jsx90(
6702
6391
  SegmentedControl,
6703
6392
  {
6704
6393
  name: `${id}-segmented-control`,
@@ -6715,14 +6404,14 @@ function SegmentedInputRendererComponent(props) {
6715
6404
  )
6716
6405
  }
6717
6406
  ),
6718
- /* @__PURE__ */ jsx93("div", { id: `${id}-children`, children })
6407
+ /* @__PURE__ */ jsx90("div", { id: `${id}-children`, children })
6719
6408
  ] });
6720
6409
  }
6721
6410
  var isValidIndex3 = (index, options) => index !== null && index >= 0 && index < options;
6722
6411
 
6723
6412
  // ../renderers/src/SelectInputRenderer/RadioItemRendererComponent.tsx
6724
6413
  import { Header as Header8, InlineAlert as InlineAlert4, List as List2, ListItem as ListItem12 } from "@transferwise/components";
6725
- import { jsx as jsx94, jsxs as jsxs31 } from "react/jsx-runtime";
6414
+ import { jsx as jsx91, jsxs as jsxs30 } from "react/jsx-runtime";
6726
6415
  function RadioItemRendererComponent(props) {
6727
6416
  const {
6728
6417
  id,
@@ -6738,22 +6427,22 @@ function RadioItemRendererComponent(props) {
6738
6427
  onSelect
6739
6428
  } = props;
6740
6429
  const { ref } = useScrollToError(validationState, features);
6741
- return /* @__PURE__ */ jsxs31("div", { ref, className: controlAndTagsToCSSClass(props), children: [
6742
- rootTitle && /* @__PURE__ */ jsx94(
6430
+ return /* @__PURE__ */ jsxs30("div", { ref, className: controlAndTagsToCSSClass(props), children: [
6431
+ rootTitle && /* @__PURE__ */ jsx91(
6743
6432
  Header8,
6744
6433
  {
6745
6434
  as: "h2",
6746
- title: help ? /* @__PURE__ */ jsx94(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
6435
+ title: help ? /* @__PURE__ */ jsx91(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
6747
6436
  }
6748
6437
  ),
6749
- rootDescription && /* @__PURE__ */ jsx94("p", { children: rootDescription }),
6750
- /* @__PURE__ */ jsx94(List2, { children: options.map(
6751
- ({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ jsx94(
6438
+ rootDescription && /* @__PURE__ */ jsx91("p", { children: rootDescription }),
6439
+ /* @__PURE__ */ jsx91(List2, { children: options.map(
6440
+ ({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ jsx91(
6752
6441
  ListItem12,
6753
6442
  __spreadValues({
6754
6443
  title,
6755
6444
  subtitle: description,
6756
- control: /* @__PURE__ */ jsx94(
6445
+ control: /* @__PURE__ */ jsx91(
6757
6446
  ListItem12.Radio,
6758
6447
  {
6759
6448
  name: title,
@@ -6769,50 +6458,50 @@ function RadioItemRendererComponent(props) {
6769
6458
  title
6770
6459
  )
6771
6460
  ) }, `${id}-${selectedIndex}`),
6772
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx94(InlineAlert4, { type: "negative", children: validationState.message }),
6461
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx91(InlineAlert4, { type: "negative", children: validationState.message }),
6773
6462
  children
6774
6463
  ] });
6775
6464
  }
6776
6465
 
6777
6466
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
6778
- import { jsx as jsx95 } from "react/jsx-runtime";
6467
+ import { jsx as jsx92 } from "react/jsx-runtime";
6779
6468
  var SelectInputRenderer = {
6780
6469
  canRenderType: "input-select",
6781
6470
  render: (props) => {
6782
6471
  switch (props.control) {
6783
6472
  case "radio":
6784
- return /* @__PURE__ */ jsx95(RadioInputRendererComponent, __spreadValues({}, props));
6473
+ return /* @__PURE__ */ jsx92(RadioInputRendererComponent, __spreadValues({}, props));
6785
6474
  case "radio-item":
6786
- return /* @__PURE__ */ jsx95(RadioItemRendererComponent, __spreadValues({}, props));
6475
+ return /* @__PURE__ */ jsx92(RadioItemRendererComponent, __spreadValues({}, props));
6787
6476
  case "tab":
6788
- return props.options.length > 3 ? /* @__PURE__ */ jsx95(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx95(TabInputRendererComponent, __spreadValues({}, props));
6477
+ return props.options.length > 3 ? /* @__PURE__ */ jsx92(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx92(TabInputRendererComponent, __spreadValues({}, props));
6789
6478
  case "segmented":
6790
- return props.options.length > 3 ? /* @__PURE__ */ jsx95(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx95(SegmentedInputRendererComponent, __spreadValues({}, props));
6479
+ return props.options.length > 3 ? /* @__PURE__ */ jsx92(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx92(SegmentedInputRendererComponent, __spreadValues({}, props));
6791
6480
  case "select":
6792
6481
  default:
6793
- return /* @__PURE__ */ jsx95(SelectInputRendererComponent, __spreadValues({}, props));
6482
+ return /* @__PURE__ */ jsx92(SelectInputRendererComponent, __spreadValues({}, props));
6794
6483
  }
6795
6484
  }
6796
6485
  };
6797
6486
  var SelectInputRenderer_default = SelectInputRenderer;
6798
6487
 
6799
6488
  // ../renderers/src/StatusListRenderer.tsx
6800
- var import_classnames32 = __toESM(require_classnames());
6489
+ var import_classnames31 = __toESM(require_classnames());
6801
6490
  import { AvatarView as AvatarView4, Header as Header9, ListItem as ListItem13 } from "@transferwise/components";
6802
- import { jsx as jsx96, jsxs as jsxs32 } from "react/jsx-runtime";
6491
+ import { jsx as jsx93, jsxs as jsxs31 } from "react/jsx-runtime";
6803
6492
  var StatusListRenderer = {
6804
6493
  canRenderType: "status-list",
6805
- render: ({ margin, items, title, control, tags }) => /* @__PURE__ */ jsxs32("div", { className: (0, import_classnames32.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6806
- title ? /* @__PURE__ */ jsx96(Header9, { title }) : null,
6494
+ render: ({ margin, items, title, control, tags }) => /* @__PURE__ */ jsxs31("div", { className: (0, import_classnames31.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6495
+ title ? /* @__PURE__ */ jsx93(Header9, { title }) : null,
6807
6496
  items.map((item) => {
6808
6497
  const { callToAction, description, title: itemTitle } = item;
6809
- return /* @__PURE__ */ jsx96(
6498
+ return /* @__PURE__ */ jsx93(
6810
6499
  ListItem13,
6811
6500
  {
6812
6501
  title: itemTitle,
6813
6502
  subtitle: description,
6814
- media: /* @__PURE__ */ jsx96(StatusListItemMedia, __spreadValues({}, item)),
6815
- additionalInfo: callToAction ? /* @__PURE__ */ jsx96(
6503
+ media: /* @__PURE__ */ jsx93(StatusListItemMedia, __spreadValues({}, item)),
6504
+ additionalInfo: callToAction ? /* @__PURE__ */ jsx93(
6816
6505
  ListItem13.AdditionalInfo,
6817
6506
  {
6818
6507
  action: __spreadValues({
@@ -6831,10 +6520,10 @@ var StatusListItemMedia = ({ icon, status }) => {
6831
6520
  return void 0;
6832
6521
  }
6833
6522
  if ("name" in icon) {
6834
- return /* @__PURE__ */ jsx96(AvatarView4, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ jsx96(DynamicIcon_default, { name: icon.name }) });
6523
+ return /* @__PURE__ */ jsx93(AvatarView4, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ jsx93(DynamicIcon_default, { name: icon.name }) });
6835
6524
  }
6836
6525
  if ("text" in icon) {
6837
- return /* @__PURE__ */ jsx96(AvatarView4, { badge: { status: mapStatus(status) }, children: icon.text });
6526
+ return /* @__PURE__ */ jsx93(AvatarView4, { badge: { status: mapStatus(status) }, children: icon.text });
6838
6527
  }
6839
6528
  return void 0;
6840
6529
  };
@@ -6851,7 +6540,7 @@ var mapStatus = (status) => {
6851
6540
  var StatusListRenderer_default = StatusListRenderer;
6852
6541
 
6853
6542
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
6854
- var import_classnames33 = __toESM(require_classnames());
6543
+ var import_classnames32 = __toESM(require_classnames());
6855
6544
 
6856
6545
  // ../renderers/src/utils/useCustomTheme.ts
6857
6546
  import { useTheme } from "@wise/components-theming";
@@ -6873,12 +6562,12 @@ var useCustomTheme = (theme, trackEvent) => {
6873
6562
 
6874
6563
  // ../renderers/src/step/StepHeader.tsx
6875
6564
  import { Title as Title2 } from "@transferwise/components";
6876
- import { Fragment as Fragment16, jsx as jsx97, jsxs as jsxs33 } from "react/jsx-runtime";
6565
+ import { Fragment as Fragment16, jsx as jsx94, jsxs as jsxs32 } from "react/jsx-runtime";
6877
6566
  var StepHeader = ({ title, description, tags }) => {
6878
6567
  const { titleType, alignmentClassName } = getHeaderStyle(tags);
6879
- return /* @__PURE__ */ jsxs33(Fragment16, { children: [
6880
- title ? /* @__PURE__ */ jsx97(Title2, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
6881
- description ? /* @__PURE__ */ jsx97("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
6568
+ return /* @__PURE__ */ jsxs32(Fragment16, { children: [
6569
+ title ? /* @__PURE__ */ jsx94(Title2, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
6570
+ description ? /* @__PURE__ */ jsx94("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
6882
6571
  ] });
6883
6572
  };
6884
6573
  var getHeaderStyle = (tags) => {
@@ -6889,9 +6578,9 @@ var getHeaderStyle = (tags) => {
6889
6578
  };
6890
6579
 
6891
6580
  // ../renderers/src/step/topbar/BackButton.tsx
6892
- import { IconButton as IconButton3 } from "@transferwise/components";
6581
+ import { IconButton as IconButton2 } from "@transferwise/components";
6893
6582
  import { ArrowLeft } from "@transferwise/icons";
6894
- import { useIntl as useIntl22 } from "react-intl";
6583
+ import { useIntl as useIntl20 } from "react-intl";
6895
6584
 
6896
6585
  // ../renderers/src/messages/back.messages.ts
6897
6586
  import { defineMessages as defineMessages14 } from "react-intl";
@@ -6904,31 +6593,31 @@ var back_messages_default = defineMessages14({
6904
6593
  });
6905
6594
 
6906
6595
  // ../renderers/src/step/topbar/BackButton.tsx
6907
- import { jsx as jsx98, jsxs as jsxs34 } from "react/jsx-runtime";
6596
+ import { jsx as jsx95, jsxs as jsxs33 } from "react/jsx-runtime";
6908
6597
  function BackButton({ title, onClick }) {
6909
- const { formatMessage } = useIntl22();
6910
- return /* @__PURE__ */ jsxs34(IconButton3, { className: "df-back-button", priority: "tertiary", onClick, children: [
6911
- /* @__PURE__ */ jsx98("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
6912
- /* @__PURE__ */ jsx98(ArrowLeft, {})
6598
+ const { formatMessage } = useIntl20();
6599
+ return /* @__PURE__ */ jsxs33(IconButton2, { className: "df-back-button", priority: "tertiary", onClick, children: [
6600
+ /* @__PURE__ */ jsx95("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
6601
+ /* @__PURE__ */ jsx95(ArrowLeft, {})
6913
6602
  ] });
6914
6603
  }
6915
6604
 
6916
6605
  // ../renderers/src/step/topbar/Toolbar.tsx
6917
- import { Button as Button10, IconButton as IconButton4 } from "@transferwise/components";
6918
- import { jsx as jsx99, jsxs as jsxs35 } from "react/jsx-runtime";
6606
+ import { Button as Button9, IconButton as IconButton3 } from "@transferwise/components";
6607
+ import { jsx as jsx96, jsxs as jsxs34 } from "react/jsx-runtime";
6919
6608
  var Toolbar = ({ items }) => {
6920
- return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx99("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx99(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
6609
+ return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx96("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx96(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
6921
6610
  };
6922
6611
  function ToolbarButton(props) {
6923
- return prefersMedia(props.control) ? /* @__PURE__ */ jsx99(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx99(TextToolbarButton, __spreadValues({}, props));
6612
+ return prefersMedia(props.control) ? /* @__PURE__ */ jsx96(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx96(TextToolbarButton, __spreadValues({}, props));
6924
6613
  }
6925
6614
  function MediaToolbarButton(props) {
6926
6615
  var _a;
6927
6616
  const { context, control, media, accessibilityDescription, disabled, onClick } = props;
6928
6617
  const priority = getIconButtonPriority(control);
6929
6618
  const type = getSentiment2(context);
6930
- return /* @__PURE__ */ jsxs35(
6931
- IconButton4,
6619
+ return /* @__PURE__ */ jsxs34(
6620
+ IconButton3,
6932
6621
  {
6933
6622
  className: "df-toolbar-button",
6934
6623
  disabled,
@@ -6937,7 +6626,7 @@ function MediaToolbarButton(props) {
6937
6626
  type,
6938
6627
  onClick,
6939
6628
  children: [
6940
- accessibilityDescription ? /* @__PURE__ */ jsx99("span", { className: "sr-only", children: accessibilityDescription }) : null,
6629
+ accessibilityDescription ? /* @__PURE__ */ jsx96("span", { className: "sr-only", children: accessibilityDescription }) : null,
6941
6630
  media ? (_a = getAddonStartMedia(media)) == null ? void 0 : _a.value : null
6942
6631
  ]
6943
6632
  }
@@ -6948,8 +6637,8 @@ function TextToolbarButton(props) {
6948
6637
  const addonStart = media ? getAddonStartMedia(media) : void 0;
6949
6638
  const priority = getPriority2(control);
6950
6639
  const sentiment = getSentiment2(context);
6951
- return /* @__PURE__ */ jsx99(
6952
- Button10,
6640
+ return /* @__PURE__ */ jsx96(
6641
+ Button9,
6953
6642
  {
6954
6643
  v2: true,
6955
6644
  size: "sm",
@@ -6978,18 +6667,18 @@ var getIconButtonPriority = (control) => {
6978
6667
  };
6979
6668
 
6980
6669
  // ../renderers/src/step/topbar/TopBar.tsx
6981
- import { jsx as jsx100, jsxs as jsxs36 } from "react/jsx-runtime";
6670
+ import { jsx as jsx97, jsxs as jsxs35 } from "react/jsx-runtime";
6982
6671
  function TopBar({ back, toolbar, tags }) {
6983
6672
  const isBackAllowed = !(tags == null ? void 0 : tags.includes("non-dismissible"));
6984
6673
  const backCTA = isBackAllowed ? back : void 0;
6985
- return backCTA || toolbar ? /* @__PURE__ */ jsxs36("div", { className: "d-flex m-b-2", children: [
6986
- backCTA ? /* @__PURE__ */ jsx100(BackButton, __spreadValues({}, backCTA)) : null,
6987
- toolbar ? /* @__PURE__ */ jsx100(Toolbar, __spreadValues({}, toolbar)) : null
6674
+ return backCTA || toolbar ? /* @__PURE__ */ jsxs35("div", { className: "d-flex m-b-2", children: [
6675
+ backCTA ? /* @__PURE__ */ jsx97(BackButton, __spreadValues({}, backCTA)) : null,
6676
+ toolbar ? /* @__PURE__ */ jsx97(Toolbar, __spreadValues({}, toolbar)) : null
6988
6677
  ] }) : null;
6989
6678
  }
6990
6679
 
6991
6680
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
6992
- import { jsx as jsx101, jsxs as jsxs37 } from "react/jsx-runtime";
6681
+ import { jsx as jsx98, jsxs as jsxs36 } from "react/jsx-runtime";
6993
6682
  var SplashCelebrationStepRenderer = {
6994
6683
  canRenderType: "step",
6995
6684
  canRender: ({ control }) => control === "splash-celebration",
@@ -6998,23 +6687,23 @@ var SplashCelebrationStepRenderer = {
6998
6687
  function SplashCelebrationStepRendererComponent(props) {
6999
6688
  const { back, title, description, toolbar, children, footer, control, tags, trackEvent } = props;
7000
6689
  useCustomTheme("forest-green", trackEvent);
7001
- return /* @__PURE__ */ jsxs37(
6690
+ return /* @__PURE__ */ jsxs36(
7002
6691
  "div",
7003
6692
  {
7004
- className: (0, import_classnames33.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
6693
+ className: (0, import_classnames32.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
7005
6694
  children: [
7006
- /* @__PURE__ */ jsx101(TopBar, { back, toolbar, tags }),
7007
- title || description ? /* @__PURE__ */ jsx101("div", { className: "m-b-4", children: /* @__PURE__ */ jsx101(StepHeader, { title, description, tags }) }) : void 0,
6695
+ /* @__PURE__ */ jsx98(TopBar, { back, toolbar, tags }),
6696
+ title || description ? /* @__PURE__ */ jsx98("div", { className: "m-b-4", children: /* @__PURE__ */ jsx98(StepHeader, { title, description, tags }) }) : void 0,
7008
6697
  children,
7009
- /* @__PURE__ */ jsx101(StepFooter, { footer, tags })
6698
+ /* @__PURE__ */ jsx98(StepFooter, { footer, tags })
7010
6699
  ]
7011
6700
  }
7012
6701
  );
7013
6702
  }
7014
6703
 
7015
6704
  // ../renderers/src/step/SplashStepRenderer.tsx
7016
- var import_classnames34 = __toESM(require_classnames());
7017
- import { jsx as jsx102, jsxs as jsxs38 } from "react/jsx-runtime";
6705
+ var import_classnames33 = __toESM(require_classnames());
6706
+ import { jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
7018
6707
  var SplashStepRenderer = {
7019
6708
  canRenderType: "step",
7020
6709
  canRender: ({ control }) => control === "splash",
@@ -7022,15 +6711,15 @@ var SplashStepRenderer = {
7022
6711
  };
7023
6712
  function SplashStepRendererComponent(props) {
7024
6713
  const { back, title, description, toolbar, children, footer, control, tags } = props;
7025
- return /* @__PURE__ */ jsxs38(
6714
+ return /* @__PURE__ */ jsxs37(
7026
6715
  "div",
7027
6716
  {
7028
- className: (0, import_classnames34.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
6717
+ className: (0, import_classnames33.default)("splash-screen", "m-t-5", controlAndTagsToCSSClass({ control, tags })),
7029
6718
  children: [
7030
- /* @__PURE__ */ jsx102(TopBar, { back, toolbar, tags }),
7031
- title || description ? /* @__PURE__ */ jsx102("div", { className: "m-b-4", children: /* @__PURE__ */ jsx102(StepHeader, { title, description, tags }) }) : void 0,
6719
+ /* @__PURE__ */ jsx99(TopBar, { back, toolbar, tags }),
6720
+ title || description ? /* @__PURE__ */ jsx99("div", { className: "m-b-4", children: /* @__PURE__ */ jsx99(StepHeader, { title, description, tags }) }) : void 0,
7032
6721
  children,
7033
- /* @__PURE__ */ jsx102(StepFooter, { footer, tags })
6722
+ /* @__PURE__ */ jsx99(StepFooter, { footer, tags })
7034
6723
  ]
7035
6724
  }
7036
6725
  );
@@ -7038,46 +6727,46 @@ function SplashStepRendererComponent(props) {
7038
6727
 
7039
6728
  // ../renderers/src/step/StepRenderer.tsx
7040
6729
  import { Alert } from "@transferwise/components";
7041
- import { jsx as jsx103, jsxs as jsxs39 } from "react/jsx-runtime";
6730
+ import { jsx as jsx100, jsxs as jsxs38 } from "react/jsx-runtime";
7042
6731
  var StepRenderer = {
7043
6732
  canRenderType: "step",
7044
6733
  render: StepRendererComponent
7045
6734
  };
7046
6735
  function StepRendererComponent(props) {
7047
6736
  const { back, description, error, title, children, toolbar, footer, control, tags } = props;
7048
- return /* @__PURE__ */ jsxs39("div", { className: controlAndTagsToCSSClass({ control, tags }), children: [
7049
- /* @__PURE__ */ jsx103(TopBar, { back, toolbar, tags }),
7050
- title || description ? /* @__PURE__ */ jsx103("div", { className: "m-b-4", children: /* @__PURE__ */ jsx103(StepHeader, { title, description, tags }) }) : void 0,
7051
- error ? /* @__PURE__ */ jsx103(Alert, { type: "negative", className: "m-b-2", message: error }) : null,
6737
+ return /* @__PURE__ */ jsxs38("div", { className: controlAndTagsToCSSClass({ control, tags }), children: [
6738
+ /* @__PURE__ */ jsx100(TopBar, { back, toolbar, tags }),
6739
+ title || description ? /* @__PURE__ */ jsx100("div", { className: "m-b-4", children: /* @__PURE__ */ jsx100(StepHeader, { title, description, tags }) }) : void 0,
6740
+ error ? /* @__PURE__ */ jsx100(Alert, { type: "negative", className: "m-b-2", message: error }) : null,
7052
6741
  children,
7053
- /* @__PURE__ */ jsx103(StepFooter, { footer, tags })
6742
+ /* @__PURE__ */ jsx100(StepFooter, { footer, tags })
7054
6743
  ] });
7055
6744
  }
7056
6745
 
7057
6746
  // ../renderers/src/TabsRenderer.tsx
7058
- var import_classnames35 = __toESM(require_classnames());
7059
- import { Chips as Chips3, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
7060
- import { useState as useState20 } from "react";
7061
- import { jsx as jsx104, jsxs as jsxs40 } from "react/jsx-runtime";
6747
+ var import_classnames34 = __toESM(require_classnames());
6748
+ import { Chips as Chips2, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
6749
+ import { useState as useState19 } from "react";
6750
+ import { jsx as jsx101, jsxs as jsxs39 } from "react/jsx-runtime";
7062
6751
  var TabsRenderer = {
7063
6752
  canRenderType: "tabs",
7064
6753
  render: (props) => {
7065
6754
  switch (props.control) {
7066
6755
  case "segmented":
7067
6756
  if (props.tabs.length > 3) {
7068
- return /* @__PURE__ */ jsx104(TabsRendererComponent, __spreadValues({}, props));
6757
+ return /* @__PURE__ */ jsx101(TabsRendererComponent, __spreadValues({}, props));
7069
6758
  }
7070
- return /* @__PURE__ */ jsx104(SegmentedTabsRendererComponent, __spreadValues({}, props));
6759
+ return /* @__PURE__ */ jsx101(SegmentedTabsRendererComponent, __spreadValues({}, props));
7071
6760
  case "chips":
7072
- return /* @__PURE__ */ jsx104(ChipsTabsRendererComponent, __spreadValues({}, props));
6761
+ return /* @__PURE__ */ jsx101(ChipsTabsRendererComponent, __spreadValues({}, props));
7073
6762
  default:
7074
- return /* @__PURE__ */ jsx104(TabsRendererComponent, __spreadValues({}, props));
6763
+ return /* @__PURE__ */ jsx101(TabsRendererComponent, __spreadValues({}, props));
7075
6764
  }
7076
6765
  }
7077
6766
  };
7078
6767
  function TabsRendererComponent({ uid, margin, tabs, control, tags }) {
7079
- const [selectedIndex, setSelectedIndex] = useState20(0);
7080
- return /* @__PURE__ */ jsx104("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: /* @__PURE__ */ jsx104(
6768
+ const [selectedIndex, setSelectedIndex] = useState19(0);
6769
+ return /* @__PURE__ */ jsx101("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: /* @__PURE__ */ jsx101(
7081
6770
  Tabs2,
7082
6771
  {
7083
6772
  name: uid,
@@ -7085,7 +6774,7 @@ function TabsRendererComponent({ uid, margin, tabs, control, tags }) {
7085
6774
  tabs: tabs.map((option) => ({
7086
6775
  title: option.title,
7087
6776
  disabled: false,
7088
- content: /* @__PURE__ */ jsxs40("div", { className: "m-t-2", children: [
6777
+ content: /* @__PURE__ */ jsxs39("div", { className: "m-t-2", children: [
7089
6778
  " ",
7090
6779
  option.children,
7091
6780
  " "
@@ -7097,9 +6786,9 @@ function TabsRendererComponent({ uid, margin, tabs, control, tags }) {
7097
6786
  }
7098
6787
  function SegmentedTabsRendererComponent({ uid, margin, tabs, control, tags }) {
7099
6788
  var _a;
7100
- const [selectedIndex, setSelectedIndex] = useState20(0);
7101
- return /* @__PURE__ */ jsxs40("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
7102
- /* @__PURE__ */ jsx104(
6789
+ const [selectedIndex, setSelectedIndex] = useState19(0);
6790
+ return /* @__PURE__ */ jsxs39("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6791
+ /* @__PURE__ */ jsx101(
7103
6792
  SegmentedControl2,
7104
6793
  {
7105
6794
  name: uid,
@@ -7114,41 +6803,41 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs, control, tags }) {
7114
6803
  onChange: (value) => setSelectedIndex(Number(value))
7115
6804
  }
7116
6805
  ),
7117
- /* @__PURE__ */ jsx104("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6806
+ /* @__PURE__ */ jsx101("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
7118
6807
  ] });
7119
6808
  }
7120
6809
  function ChipsTabsRendererComponent({ margin, tabs, control, tags }) {
7121
6810
  var _a;
7122
- const [selectedIndex, setSelectedIndex] = useState20(0);
7123
- return /* @__PURE__ */ jsxs40("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
7124
- /* @__PURE__ */ jsx104("div", { className: "chips-container", children: /* @__PURE__ */ jsx104(
7125
- Chips3,
6811
+ const [selectedIndex, setSelectedIndex] = useState19(0);
6812
+ return /* @__PURE__ */ jsxs39("div", { className: (0, import_classnames34.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children: [
6813
+ /* @__PURE__ */ jsx101("div", { className: "chips-container", children: /* @__PURE__ */ jsx101(
6814
+ Chips2,
7126
6815
  {
7127
6816
  chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
7128
6817
  selected: selectedIndex,
7129
6818
  onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
7130
6819
  }
7131
6820
  ) }),
7132
- /* @__PURE__ */ jsx104("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
6821
+ /* @__PURE__ */ jsx101("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
7133
6822
  ] });
7134
6823
  }
7135
6824
 
7136
6825
  // ../renderers/src/TextInputRenderer.tsx
7137
- import { InputGroup as InputGroup6 } from "@transferwise/components";
7138
- import { useState as useState22 } from "react";
6826
+ import { InputGroup as InputGroup5 } from "@transferwise/components";
6827
+ import { useState as useState21 } from "react";
7139
6828
 
7140
6829
  // ../renderers/src/components/VariableTextInput.tsx
7141
6830
  import {
7142
- IconButton as IconButton5,
7143
- Input as Input7,
6831
+ IconButton as IconButton4,
6832
+ Input as Input6,
7144
6833
  InputWithDisplayFormat,
7145
6834
  PhoneNumberInput,
7146
6835
  TextArea,
7147
6836
  TextareaWithDisplayFormat
7148
6837
  } from "@transferwise/components";
7149
6838
  import { Eye, EyeShut } from "@transferwise/icons";
7150
- import { useIntl as useIntl23 } from "react-intl";
7151
- import { useLayoutEffect as useLayoutEffect3, useRef as useRef6, useState as useState21 } from "react";
6839
+ import { useIntl as useIntl21 } from "react-intl";
6840
+ import { useLayoutEffect as useLayoutEffect3, useRef as useRef5, useState as useState20 } from "react";
7152
6841
 
7153
6842
  // ../renderers/src/messages/ssn-input.messages.ts
7154
6843
  import { defineMessages as defineMessages15 } from "react-intl";
@@ -7237,7 +6926,7 @@ function getDisplayOffset(displayValue, rawOffset) {
7237
6926
  }
7238
6927
 
7239
6928
  // ../renderers/src/components/VariableTextInput.tsx
7240
- import { jsx as jsx105 } from "react/jsx-runtime";
6929
+ import { jsx as jsx102 } from "react/jsx-runtime";
7241
6930
  var commonKeys = [
7242
6931
  "autoComplete",
7243
6932
  "autoCapitalize",
@@ -7256,14 +6945,14 @@ function VariableTextInput(inputProps) {
7256
6945
  const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
7257
6946
  switch (control) {
7258
6947
  case "email":
7259
- return /* @__PURE__ */ jsx105(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
6948
+ return /* @__PURE__ */ jsx102(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
7260
6949
  case "password":
7261
- return /* @__PURE__ */ jsx105(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
6950
+ return /* @__PURE__ */ jsx102(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
7262
6951
  case "ssn-input":
7263
- return /* @__PURE__ */ jsx105(SsnInput, __spreadProps(__spreadValues({}, commonProps), { isVisible: isSsnVisible, onChange }));
6952
+ return /* @__PURE__ */ jsx102(SsnInput, __spreadProps(__spreadValues({}, commonProps), { isVisible: isSsnVisible, onChange }));
7264
6953
  case "numeric": {
7265
6954
  const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
7266
- return /* @__PURE__ */ jsx105(
6955
+ return /* @__PURE__ */ jsx102(
7267
6956
  TextInput,
7268
6957
  __spreadProps(__spreadValues({}, numericProps), {
7269
6958
  onChange: (newValue) => {
@@ -7274,9 +6963,9 @@ function VariableTextInput(inputProps) {
7274
6963
  );
7275
6964
  }
7276
6965
  case "phone-number":
7277
- return /* @__PURE__ */ jsx105(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
6966
+ return /* @__PURE__ */ jsx102(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
7278
6967
  default: {
7279
- return /* @__PURE__ */ jsx105(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
6968
+ return /* @__PURE__ */ jsx102(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
7280
6969
  }
7281
6970
  }
7282
6971
  }
@@ -7284,31 +6973,31 @@ function SsnInputToggle({
7284
6973
  isVisible,
7285
6974
  onClick
7286
6975
  }) {
7287
- const { formatMessage } = useIntl23();
7288
- return /* @__PURE__ */ jsx105(
7289
- IconButton5,
6976
+ const { formatMessage } = useIntl21();
6977
+ return /* @__PURE__ */ jsx102(
6978
+ IconButton4,
7290
6979
  {
7291
6980
  priority: "minimal",
7292
6981
  size: 24,
7293
6982
  "aria-label": formatMessage(isVisible ? ssn_input_messages_default.hideValue : ssn_input_messages_default.showValue),
7294
6983
  "aria-pressed": isVisible,
7295
6984
  onClick,
7296
- children: isVisible ? /* @__PURE__ */ jsx105(EyeShut, { size: 24 }) : /* @__PURE__ */ jsx105(Eye, { size: 24 })
6985
+ children: isVisible ? /* @__PURE__ */ jsx102(EyeShut, { size: 24 }) : /* @__PURE__ */ jsx102(Eye, { size: 24 })
7297
6986
  }
7298
6987
  );
7299
6988
  }
7300
6989
  function TextInput(props) {
7301
6990
  const _a = props, { control, displayFormat, onChange, type } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange", "type"]);
7302
6991
  const InputWithPattern = control === "textarea" ? TextareaWithDisplayFormat : InputWithDisplayFormat;
7303
- const InputWithoutPattern = control === "textarea" ? TextArea : Input7;
7304
- return displayFormat ? /* @__PURE__ */ jsx105(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx105(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { type, onChange: (e) => onChange(e.target.value) }));
6992
+ const InputWithoutPattern = control === "textarea" ? TextArea : Input6;
6993
+ return displayFormat ? /* @__PURE__ */ jsx102(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx102(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { type, onChange: (e) => onChange(e.target.value) }));
7305
6994
  }
7306
6995
  function SsnInput(props) {
7307
6996
  const _a = props, { displayFormat = "", isVisible = false, onChange, value = "" } = _a, commonProps = __objRest(_a, ["displayFormat", "isVisible", "onChange", "value"]);
7308
- const [editVersion, setEditVersion] = useState21(0);
7309
- const inputRef = useRef6(null);
7310
- const selection = useRef6({ start: 0, end: 0 });
7311
- const pendingCaret = useRef6(null);
6997
+ const [editVersion, setEditVersion] = useState20(0);
6998
+ const inputRef = useRef5(null);
6999
+ const selection = useRef5({ start: 0, end: 0 });
7000
+ const pendingCaret = useRef5(null);
7312
7001
  const rawValue = value.replace(/\D/g, "");
7313
7002
  const formattedValue = formatSsnValue(rawValue, displayFormat, isVisible);
7314
7003
  const scheduleCaret = (rawOffset) => {
@@ -7338,7 +7027,7 @@ function SsnInput(props) {
7338
7027
  );
7339
7028
  pendingCaret.current = null;
7340
7029
  }, [editVersion, formattedValue, rawValue]);
7341
- return /* @__PURE__ */ jsx105(
7030
+ return /* @__PURE__ */ jsx102(
7342
7031
  "input",
7343
7032
  __spreadProps(__spreadValues({
7344
7033
  ref: inputRef
@@ -7401,13 +7090,13 @@ function SsnInput(props) {
7401
7090
  }
7402
7091
 
7403
7092
  // ../renderers/src/TextInputRenderer.tsx
7404
- import { jsx as jsx106 } from "react/jsx-runtime";
7093
+ import { jsx as jsx103 } from "react/jsx-runtime";
7405
7094
  var TextInputRenderer = {
7406
7095
  canRenderType: "input-text",
7407
- render: (props) => /* @__PURE__ */ jsx106(TextInputRendererComponent, __spreadValues({}, props))
7096
+ render: (props) => /* @__PURE__ */ jsx103(TextInputRendererComponent, __spreadValues({}, props))
7408
7097
  };
7409
7098
  function TextInputRendererComponent(props) {
7410
- const [isSsnVisible, setIsSsnVisible] = useState22(false);
7099
+ const [isSsnVisible, setIsSsnVisible] = useState21(false);
7411
7100
  const _a = props, {
7412
7101
  id,
7413
7102
  title,
@@ -7439,7 +7128,7 @@ function TextInputRendererComponent(props) {
7439
7128
  }
7440
7129
  }
7441
7130
  });
7442
- return /* @__PURE__ */ jsx106(
7131
+ return /* @__PURE__ */ jsx103(
7443
7132
  FieldInput_default,
7444
7133
  {
7445
7134
  id,
@@ -7452,13 +7141,13 @@ function TextInputRendererComponent(props) {
7452
7141
  features: props.features,
7453
7142
  control: props.control,
7454
7143
  tags: props.tags,
7455
- children: /* @__PURE__ */ jsx106(
7456
- InputGroup6,
7144
+ children: /* @__PURE__ */ jsx103(
7145
+ InputGroup5,
7457
7146
  {
7458
7147
  addonStart: getInputGroupAddonStart(media),
7459
7148
  addonEnd: isSsnInput ? {
7460
7149
  interactive: true,
7461
- content: /* @__PURE__ */ jsx106(
7150
+ content: /* @__PURE__ */ jsx103(
7462
7151
  SsnInputToggle,
7463
7152
  {
7464
7153
  isVisible: isSsnVisible,
@@ -7466,7 +7155,7 @@ function TextInputRendererComponent(props) {
7466
7155
  }
7467
7156
  )
7468
7157
  } : void 0,
7469
- children: /* @__PURE__ */ jsx106(VariableTextInput, __spreadValues({}, inputProps))
7158
+ children: /* @__PURE__ */ jsx103(VariableTextInput, __spreadValues({}, inputProps))
7470
7159
  }
7471
7160
  )
7472
7161
  }
@@ -7475,12 +7164,12 @@ function TextInputRendererComponent(props) {
7475
7164
  var TextInputRenderer_default = TextInputRenderer;
7476
7165
 
7477
7166
  // ../renderers/src/UpdatableRenderer.tsx
7478
- var import_classnames36 = __toESM(require_classnames());
7479
- import { jsx as jsx107 } from "react/jsx-runtime";
7167
+ var import_classnames35 = __toESM(require_classnames());
7168
+ import { jsx as jsx104 } from "react/jsx-runtime";
7480
7169
  var UpdatableRenderer = {
7481
7170
  canRenderType: "updatable",
7482
7171
  render: ({ children, control, margin, tags }) => {
7483
- return /* @__PURE__ */ jsx107("div", { className: (0, import_classnames36.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children });
7172
+ return /* @__PURE__ */ jsx104("div", { className: (0, import_classnames35.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })), children });
7484
7173
  }
7485
7174
  };
7486
7175
 
@@ -7491,7 +7180,7 @@ import { Status as Status2, Upload, UploadInput as UploadInput2 } from "@transfe
7491
7180
  var getRandomId = () => Math.random().toString(36).substring(2);
7492
7181
 
7493
7182
  // ../renderers/src/UploadInputRenderer.tsx
7494
- import { jsx as jsx108 } from "react/jsx-runtime";
7183
+ import { jsx as jsx105 } from "react/jsx-runtime";
7495
7184
  var UploadInputRenderer = {
7496
7185
  canRenderType: "input-upload",
7497
7186
  render: (props) => {
@@ -7520,7 +7209,7 @@ var UploadInputRenderer = {
7520
7209
  };
7521
7210
  return (
7522
7211
  // We don't pass help here as there is no sensible place to display it
7523
- /* @__PURE__ */ jsx108(
7212
+ /* @__PURE__ */ jsx105(
7524
7213
  UploadFieldInput_default,
7525
7214
  {
7526
7215
  id,
@@ -7530,7 +7219,7 @@ var UploadInputRenderer = {
7530
7219
  features,
7531
7220
  control,
7532
7221
  tags,
7533
- children: /* @__PURE__ */ jsx108(
7222
+ children: /* @__PURE__ */ jsx105(
7534
7223
  UploadInput2,
7535
7224
  {
7536
7225
  id,
@@ -7600,7 +7289,7 @@ var LargeUploadRenderer = {
7600
7289
  };
7601
7290
  const filetypes = acceptsToFileTypes(accepts);
7602
7291
  const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
7603
- return /* @__PURE__ */ jsx108(
7292
+ return /* @__PURE__ */ jsx105(
7604
7293
  FieldInput_default,
7605
7294
  {
7606
7295
  id,
@@ -7611,7 +7300,7 @@ var LargeUploadRenderer = {
7611
7300
  features,
7612
7301
  control,
7613
7302
  tags,
7614
- children: /* @__PURE__ */ jsx108(
7303
+ children: /* @__PURE__ */ jsx105(
7615
7304
  Upload,
7616
7305
  __spreadProps(__spreadValues({}, uploadProps), {
7617
7306
  usAccept,
@@ -7627,21 +7316,21 @@ var LargeUploadRenderer = {
7627
7316
  };
7628
7317
 
7629
7318
  // ../renderers/src/UpsellRenderer.tsx
7630
- var import_classnames37 = __toESM(require_classnames());
7319
+ var import_classnames36 = __toESM(require_classnames());
7631
7320
  import { Nudge } from "@transferwise/components";
7632
- import { useState as useState23 } from "react";
7633
- import { jsx as jsx109 } from "react/jsx-runtime";
7321
+ import { useState as useState22 } from "react";
7322
+ import { jsx as jsx106 } from "react/jsx-runtime";
7634
7323
  var UpsellRenderer = {
7635
7324
  canRenderType: "upsell",
7636
7325
  render: UpsellRendererComponent
7637
7326
  };
7638
7327
  function UpsellRendererComponent(props) {
7639
7328
  const { text, callToAction, media, margin, onDismiss, control, tags } = props;
7640
- const [isVisible, setIsVisible] = useState23(true);
7641
- return isVisible ? /* @__PURE__ */ jsx109(
7329
+ const [isVisible, setIsVisible] = useState22(true);
7330
+ return isVisible ? /* @__PURE__ */ jsx106(
7642
7331
  Nudge,
7643
7332
  {
7644
- className: (0, import_classnames37.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
7333
+ className: (0, import_classnames36.default)(getMargin(margin), controlAndTagsToCSSClass({ control, tags })),
7645
7334
  mediaName: getMediaName(media),
7646
7335
  title: text,
7647
7336
  action: __spreadValues({
@@ -7692,8 +7381,7 @@ var getWiseRenderers = () => [
7692
7381
  CircularButtonRenderer,
7693
7382
  BorderedBackgroundColoredBoxRenderer,
7694
7383
  BoxRenderer_default,
7695
- CollectionRendererV2_default,
7696
- CollectionRendererV1_default,
7384
+ CollectionRenderer_default,
7697
7385
  ButtonRenderer,
7698
7386
  ColumnsRenderer_default,
7699
7387
  DateInputRenderer_default,
@@ -7740,11 +7428,11 @@ var getWiseRenderers = () => [
7740
7428
 
7741
7429
  // ../renderers/src/InitialLoadingStateRenderer.tsx
7742
7430
  import { Loader as Loader2 } from "@transferwise/components";
7743
- import { jsx as jsx110 } from "react/jsx-runtime";
7431
+ import { jsx as jsx107 } from "react/jsx-runtime";
7744
7432
  var InitialLoadingStateRenderer = {
7745
7433
  canRenderType: "loading-state",
7746
7434
  canRender: ({ stepLoadingState }) => stepLoadingState === "initial",
7747
- render: () => /* @__PURE__ */ jsx110(
7435
+ render: () => /* @__PURE__ */ jsx107(
7748
7436
  Loader2,
7749
7437
  {
7750
7438
  size: "md",
@@ -7757,24 +7445,24 @@ var InitialLoadingStateRenderer = {
7757
7445
  // src/dynamicFlow/DynamicFlowModal.tsx
7758
7446
  import { useDynamicFlowModal } from "@wise/dynamic-flow-client";
7759
7447
  import { Modal as Modal5 } from "@transferwise/components";
7760
- import { jsx as jsx111 } from "react/jsx-runtime";
7448
+ import { jsx as jsx108 } from "react/jsx-runtime";
7761
7449
  function DynamicFlowModal(props) {
7762
7450
  const _a = props, { className = "" } = _a, rest = __objRest(_a, ["className"]);
7763
7451
  const dfProps = useWiseToCoreProps(rest);
7764
7452
  const df = useDynamicFlowModal(dfProps);
7765
- return /* @__PURE__ */ jsx111(
7453
+ return /* @__PURE__ */ jsx108(
7766
7454
  Modal5,
7767
7455
  __spreadProps(__spreadValues({
7768
7456
  className: `dynamic-flow-modal ${className}`,
7769
7457
  disableDimmerClickToClose: true
7770
7458
  }, df.modal), {
7771
- body: /* @__PURE__ */ jsx111("div", { className: "dynamic-flow-modal", children: df.modal.body })
7459
+ body: /* @__PURE__ */ jsx108("div", { className: "dynamic-flow-modal", children: df.modal.body })
7772
7460
  })
7773
7461
  );
7774
7462
  }
7775
7463
 
7776
7464
  // src/dynamicFlow/getMergedRenderers.tsx
7777
- import { jsx as jsx112 } from "react/jsx-runtime";
7465
+ import { jsx as jsx109 } from "react/jsx-runtime";
7778
7466
  var wiseRenderers = getWiseRenderers();
7779
7467
  var getMergedRenderers = (props) => {
7780
7468
  var _d, _e;
@@ -7788,7 +7476,7 @@ var getMergedRenderers = (props) => {
7788
7476
  method: initialRequest.method,
7789
7477
  data: initialRequest.body
7790
7478
  };
7791
- return presentation.type === "push" ? /* @__PURE__ */ jsx112(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ jsx112(
7479
+ return presentation.type === "push" ? /* @__PURE__ */ jsx109(DynamicFlow, __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), { features: subflowFeatures, initialAction: action })) : /* @__PURE__ */ jsx109(
7792
7480
  DynamicFlowModal,
7793
7481
  __spreadProps(__spreadValues(__spreadValues({}, restProps), rest), {
7794
7482
  features: subflowFeatures,
@@ -7868,7 +7556,7 @@ var customEventsToAnalytics = {
7868
7556
 
7869
7557
  // src/dynamicFlow/useOnCopy.tsx
7870
7558
  import { useCallback as useCallback2 } from "react";
7871
- import { useIntl as useIntl24 } from "react-intl";
7559
+ import { useIntl as useIntl22 } from "react-intl";
7872
7560
 
7873
7561
  // src/dynamicFlow/messages.ts
7874
7562
  import { defineMessages as defineMessages16 } from "react-intl";
@@ -7887,7 +7575,7 @@ var messages_default = defineMessages16({
7887
7575
 
7888
7576
  // src/dynamicFlow/useOnCopy.tsx
7889
7577
  var useOnCopy = () => {
7890
- const { formatMessage } = useIntl24();
7578
+ const { formatMessage } = useIntl22();
7891
7579
  const createSnackBar = useSnackBarIfAvailable();
7892
7580
  return useCallback2(
7893
7581
  (copiedContent) => {
@@ -7903,9 +7591,9 @@ var useOnCopy = () => {
7903
7591
 
7904
7592
  // src/dynamicFlow/useWiseHttpClient.tsx
7905
7593
  import { useCallback as useCallback3 } from "react";
7906
- import { useIntl as useIntl25 } from "react-intl";
7594
+ import { useIntl as useIntl23 } from "react-intl";
7907
7595
  var useWiseHttpClient = (httpClient) => {
7908
- const { locale } = useIntl25();
7596
+ const { locale } = useIntl23();
7909
7597
  return useCallback3(
7910
7598
  async (input, init = {}) => {
7911
7599
  const headers = new Headers(init.headers);
@@ -7985,13 +7673,13 @@ var openLinkInNewTab = (url) => {
7985
7673
  };
7986
7674
 
7987
7675
  // src/dynamicFlow/DynamicFlow.tsx
7988
- import { jsxs as jsxs41 } from "react/jsx-runtime";
7676
+ import { jsxs as jsxs40 } from "react/jsx-runtime";
7989
7677
  function DynamicFlow(props) {
7990
7678
  const { className = "" } = props;
7991
7679
  const dfProps = useWiseToCoreProps(props);
7992
7680
  const df = useDynamicFlow(dfProps);
7993
7681
  const { onContextMenu, contextMenu } = useDFContextMenu(df.controller);
7994
- return /* @__PURE__ */ jsxs41("div", { className, onContextMenu, children: [
7682
+ return /* @__PURE__ */ jsxs40("div", { className, onContextMenu, children: [
7995
7683
  df.view,
7996
7684
  contextMenu
7997
7685
  ] });
@@ -8003,7 +7691,7 @@ import {
8003
7691
  useImperativeHandle
8004
7692
  } from "react";
8005
7693
  import { useDynamicFlow as useDynamicFlow2 } from "@wise/dynamic-flow-client";
8006
- import { jsx as jsx113 } from "react/jsx-runtime";
7694
+ import { jsx as jsx110 } from "react/jsx-runtime";
8007
7695
  var DynamicFlowWithRef = forwardRef(function DynamicFlowWithRef2(props, ref) {
8008
7696
  const { className = "" } = props;
8009
7697
  const dfProps = useWiseToCoreProps(props);
@@ -8019,7 +7707,7 @@ var DynamicFlowWithRef = forwardRef(function DynamicFlowWithRef2(props, ref) {
8019
7707
  }),
8020
7708
  [df]
8021
7709
  );
8022
- return /* @__PURE__ */ jsx113("div", { className, children: df.view });
7710
+ return /* @__PURE__ */ jsx110("div", { className, children: df.view });
8023
7711
  });
8024
7712
 
8025
7713
  // src/index.ts
@@ -8149,8 +7837,6 @@ var en_default = {
8149
7837
  "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
8150
7838
  "df.wise.Collection.clearText": "Clear text",
8151
7839
  "df.wise.Collection.loadMoreMessage": "Load more",
8152
- "df.wise.Collection.showLessResultsButton": "Show less results",
8153
- "df.wise.Collection.showMoreResultsButton": "Show all {count} results",
8154
7840
  "df.wise.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.",
8155
7841
  "df.wise.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.",
8156
7842
  "df.wise.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.",