@wise/dynamic-flow-client-internal 4.25.1 → 4.27.0-experimental-f13a826

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.
package/build/main.mjs CHANGED
@@ -319,185 +319,16 @@ var mapStatusToSentiment = (validation) => {
319
319
  var FieldInput_default = FieldInput;
320
320
 
321
321
  // ../renderers/src/CheckboxInputRenderer.tsx
322
- import { Checkbox } from "@transferwise/components";
323
- import { jsx as jsx8 } from "react/jsx-runtime";
324
- var CheckboxInputRenderer = {
325
- canRenderType: "input-checkbox",
326
- render: (props) => {
327
- const _a = props, {
328
- id,
329
- control,
330
- title = "",
331
- description,
332
- help,
333
- type,
334
- validationState,
335
- value
336
- } = _a, rest = __objRest(_a, [
337
- "id",
338
- "control",
339
- "title",
340
- "description",
341
- "help",
342
- "type",
343
- "validationState",
344
- "value"
345
- ]);
346
- const checkboxProps = __spreadProps(__spreadValues({}, rest), { label: title, secondary: description, checked: value });
347
- return /* @__PURE__ */ jsx8(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ jsx8(Checkbox, __spreadValues({ id }, checkboxProps)) });
348
- }
349
- };
350
- var CheckboxInputRenderer_default = CheckboxInputRenderer;
351
-
352
- // ../renderers/src/ColumnsRenderer.tsx
353
- import classNames2 from "classnames";
354
- import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
355
- var ColumnsRenderer = {
356
- canRenderType: "columns",
357
- render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ jsxs3(
358
- "div",
359
- {
360
- className: classNames2("df-columns-renderer-container", getMargin(margin), {
361
- "df-columns-renderer-bias-start": bias === "start",
362
- "df-columns-renderer-bias-end": bias === "end"
363
- }),
364
- children: [
365
- /* @__PURE__ */ jsx9("div", { className: "df-columns-renderer-column", children: startChildren }),
366
- /* @__PURE__ */ jsx9("div", { className: "df-columns-renderer-column", children: endChildren })
367
- ]
368
- }
369
- )
370
- };
371
- var ColumnsRenderer_default = ColumnsRenderer;
372
-
373
- // ../renderers/src/components/VariableDateInput.tsx
374
- import { DateInput, DateLookup } from "@transferwise/components";
375
-
376
- // ../renderers/src/validators/type-validators.ts
377
- var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
378
-
379
- // ../renderers/src/utils/value-utils.ts
380
- var dateStringToDateOrNull = (dateString) => {
381
- if (!dateString) {
382
- return null;
383
- }
384
- const [year, month, date] = dateString.split("-").map((number) => Number.parseInt(number, 10));
385
- if (!isNumber(year) || !isNumber(month) || !isNumber(date)) {
386
- return null;
387
- }
388
- return new Date(year, month - 1, date);
389
- };
390
- var dateToDateString = (date) => {
391
- const d = new Date(date);
392
- const month = String(d.getMonth() + 1);
393
- const day = String(d.getDate());
394
- const year = d.getFullYear();
395
- const formattedMonth = month.length < 2 ? `0${month}` : month;
396
- const formattedDay = day.length < 2 ? `0${day}` : day;
397
- return [year, formattedMonth, formattedDay].join("-");
398
- };
399
-
400
- // ../renderers/src/components/VariableDateInput.tsx
401
- import { jsx as jsx10 } from "react/jsx-runtime";
402
- function VariableDateInput({
403
- control,
404
- inputProps
405
- }) {
406
- const {
407
- autoComplete,
408
- minimumDate,
409
- maximumDate,
410
- placeholder,
411
- disabled,
412
- onBlur,
413
- onChange,
414
- onFocus
415
- } = inputProps;
416
- if (control === "date-lookup") {
417
- return /* @__PURE__ */ jsx10(
418
- DateLookup,
419
- {
420
- value: dateStringToDateOrNull(inputProps.value),
421
- min: dateStringToDateOrNull(minimumDate),
422
- max: dateStringToDateOrNull(maximumDate),
423
- placeholder,
424
- disabled,
425
- onChange: (date) => {
426
- onChange(date !== null ? dateToDateString(date) : null);
427
- },
428
- onBlur,
429
- onFocus
430
- }
431
- );
432
- }
433
- return /* @__PURE__ */ jsx10(
434
- DateInput,
435
- __spreadProps(__spreadValues({}, inputProps), {
436
- dayAutoComplete: getAutocompleteString(autoComplete, "day"),
437
- yearAutoComplete: getAutocompleteString(autoComplete, "year")
438
- })
439
- );
440
- }
441
- var getAutocompleteString = (value, suffix) => {
442
- if (value === "bday") {
443
- return `${value}-${suffix}`;
444
- }
445
- return void 0;
446
- };
447
- var VariableDateInput_default = VariableDateInput;
448
-
449
- // ../renderers/src/DateInputRenderer.tsx
450
- import { jsx as jsx11 } from "react/jsx-runtime";
451
- var DateInputRenderer = {
452
- canRenderType: "input-date",
453
- render: (props) => {
454
- const _a = props, {
455
- id,
456
- control,
457
- description,
458
- type,
459
- help,
460
- title,
461
- validationState,
462
- value: initialValue
463
- } = _a, rest = __objRest(_a, [
464
- "id",
465
- "control",
466
- "description",
467
- "type",
468
- "help",
469
- "title",
470
- "validationState",
471
- "value"
472
- ]);
473
- const value = initialValue != null ? initialValue : "";
474
- const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
475
- return /* @__PURE__ */ jsx11(
476
- FieldInput_default,
477
- {
478
- id,
479
- label: title,
480
- description,
481
- validation: validationState,
482
- help,
483
- children: /* @__PURE__ */ jsx11(VariableDateInput_default, { control, inputProps })
484
- }
485
- );
486
- }
487
- };
488
- var DateInputRenderer_default = DateInputRenderer;
489
-
490
- // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
491
- import { NavigationOption, NavigationOptionsList } from "@transferwise/components";
322
+ import { Checkbox, ListItem } from "@transferwise/components";
492
323
 
493
324
  // ../renderers/src/utils/UrnFlag.tsx
494
325
  import { Flag } from "@wise/art";
495
- import { jsx as jsx12 } from "react/jsx-runtime";
326
+ import { jsx as jsx8 } from "react/jsx-runtime";
496
327
  var countryUrnPrefix = "urn:wise:countries:";
497
328
  var currencyUrnPrefix = "urn:wise:currencies:";
498
329
  var isUrnFlag = (uri) => uri.startsWith(countryUrnPrefix) || uri.startsWith(currencyUrnPrefix);
499
330
  function UrnFlag({ size, urn }) {
500
- return /* @__PURE__ */ jsx12(Flag, { code: getCode(urn), intrinsicSize: size });
331
+ return /* @__PURE__ */ jsx8(Flag, { code: getCode(urn), intrinsicSize: size });
501
332
  }
502
333
  var getCode = (urn) => {
503
334
  return urn.replace(countryUrnPrefix, "").replace(currencyUrnPrefix, "").replace(":image", "").split("?")[0];
@@ -505,19 +336,19 @@ var getCode = (urn) => {
505
336
 
506
337
  // ../renderers/src/components/icon/FlagIcon.tsx
507
338
  import { Flag as Flag2 } from "@wise/art";
508
- import { jsx as jsx13 } from "react/jsx-runtime";
339
+ import { jsx as jsx9 } from "react/jsx-runtime";
509
340
  var isFlagIcon = (name) => name.startsWith("flag-");
510
341
  function FlagIcon({ name }) {
511
342
  if (!isFlagIcon(name)) {
512
343
  return null;
513
344
  }
514
345
  const code = name.substring(5);
515
- return /* @__PURE__ */ jsx13(Flag2, { code, intrinsicSize: 24 });
346
+ return /* @__PURE__ */ jsx9(Flag2, { code, intrinsicSize: 24 });
516
347
  }
517
348
 
518
349
  // ../renderers/src/components/icon/NamedIcon.tsx
519
350
  import * as icons from "@transferwise/icons";
520
- import { jsx as jsx14 } from "react/jsx-runtime";
351
+ import { jsx as jsx10 } from "react/jsx-runtime";
521
352
  var isNamedIcon = (name) => {
522
353
  const iconName = toCapitalisedCamelCase(name);
523
354
  return Object.keys(icons).includes(iconName);
@@ -528,19 +359,19 @@ function NamedIcon({ name }) {
528
359
  }
529
360
  const iconName = toCapitalisedCamelCase(name);
530
361
  const Icon = icons[iconName];
531
- return /* @__PURE__ */ jsx14(Icon, { size: 24 });
362
+ return /* @__PURE__ */ jsx10(Icon, { size: 24 });
532
363
  }
533
364
  var toCapitalisedCamelCase = (value) => value.split("-").map(capitaliseFirstChar).join("");
534
365
  var capitaliseFirstChar = (value) => `${value[0].toUpperCase()}${value.slice(1)}`;
535
366
 
536
367
  // ../renderers/src/components/icon/DynamicIcon.tsx
537
- import { jsx as jsx15 } from "react/jsx-runtime";
368
+ import { jsx as jsx11 } from "react/jsx-runtime";
538
369
  function DynamicIcon({ name }) {
539
370
  if (isFlagIcon(name)) {
540
- return /* @__PURE__ */ jsx15(FlagIcon, { name });
371
+ return /* @__PURE__ */ jsx11(FlagIcon, { name });
541
372
  }
542
373
  if (isNamedIcon(name)) {
543
- return /* @__PURE__ */ jsx15(NamedIcon, { name });
374
+ return /* @__PURE__ */ jsx11(NamedIcon, { name });
544
375
  }
545
376
  return null;
546
377
  }
@@ -558,11 +389,12 @@ var DynamicIcon_default = DynamicIcon;
558
389
 
559
390
  // ../renderers/src/components/Media/stringToURN.ts
560
391
  var stringToURN = (uri) => {
561
- var _a;
562
- const [nameWithRComponent, qComponent] = uri.split("?=");
392
+ var _a, _b, _c;
393
+ const [nameWithRQComponents, _] = uri.split("#");
394
+ const [nameWithRComponent, qComponent] = nameWithRQComponents.split("?=");
563
395
  const [name, rComponent] = (_a = nameWithRComponent == null ? void 0 : nameWithRComponent.split("?+")) != null ? _a : ["", ""];
564
- const rComponents = rComponent == null ? void 0 : rComponent.split("&").map((c) => c.split("=")).map(([a, b]) => [a, b]);
565
- const qComponents = qComponent == null ? void 0 : qComponent.split("&").map((c) => c.split("=")).map(([a, b]) => [a, b]);
396
+ const rComponents = rComponent ? (_b = decodeURIComponent(rComponent)) == null ? void 0 : _b.split("&").map((c) => c.split("=")).map(([a, b]) => [a, b]) : void 0;
397
+ const qComponents = qComponent ? (_c = decodeURIComponent(qComponent)) == null ? void 0 : _c.split("&").map((c) => c.split("=")).map(([a, b]) => [a, b]) : void 0;
566
398
  return {
567
399
  name,
568
400
  rComponents,
@@ -570,13 +402,13 @@ var stringToURN = (uri) => {
570
402
  };
571
403
  };
572
404
 
573
- // ../renderers/src/components/Media/resolveUri.tsx
574
- import { jsx as jsx16 } from "react/jsx-runtime";
575
- var resolveUri = (uri, size) => {
405
+ // ../renderers/src/components/Media/resolveMediaFromUri.tsx
406
+ import { jsx as jsx12 } from "react/jsx-runtime";
407
+ var resolveMediaFromUri = (uri, size) => {
576
408
  var _a, _b;
577
409
  const { name, qComponents = [] } = stringToURN(uri);
578
410
  if (isValidIconUrn(name)) {
579
- const icon = /* @__PURE__ */ jsx16(DynamicIcon_default, { name: name.replace("urn:wise:icons:", "") });
411
+ const icon = /* @__PURE__ */ jsx12(DynamicIcon_default, { name: name.replace("urn:wise:icons:", "") });
580
412
  return {
581
413
  icon,
582
414
  backgroundColor: formatColor((_a = qComponents.find(([key]) => key === "background-color")) == null ? void 0 : _a[1])
@@ -584,7 +416,7 @@ var resolveUri = (uri, size) => {
584
416
  }
585
417
  if (isUrnFlag(name)) {
586
418
  return {
587
- asset: /* @__PURE__ */ jsx16(UrnFlag, { urn: name, size })
419
+ asset: /* @__PURE__ */ jsx12(UrnFlag, { urn: name, size })
588
420
  };
589
421
  }
590
422
  if (name.startsWith("data:text/plain,")) {
@@ -595,7 +427,7 @@ var resolveUri = (uri, size) => {
595
427
  };
596
428
  }
597
429
  if (!uri.startsWith("urn:")) {
598
- return { asset: /* @__PURE__ */ jsx16("img", { src: uri, alt: "", width: `${size}px` }) };
430
+ return { asset: /* @__PURE__ */ jsx12("img", { src: uri, alt: "", width: `${size}px` }) };
599
431
  }
600
432
  return { asset: void 0 };
601
433
  };
@@ -611,7 +443,7 @@ var formatColor = (color) => {
611
443
 
612
444
  // ../renderers/src/components/Media/AvatarMedia.tsx
613
445
  import { AvatarLayout, AvatarView } from "@transferwise/components";
614
- import { jsx as jsx17 } from "react/jsx-runtime";
446
+ import { jsx as jsx13 } from "react/jsx-runtime";
615
447
  var AvatarMedia = ({
616
448
  accessibilityDescription,
617
449
  content,
@@ -621,8 +453,8 @@ var AvatarMedia = ({
621
453
  if (avatar.type === "text") {
622
454
  return { asset: avatar.text };
623
455
  }
624
- return __spreadProps(__spreadValues({}, resolveUri(avatar.uri, size)), {
625
- badge: avatar.badgeUri ? resolveUri(avatar.badgeUri, 16) : void 0
456
+ return __spreadProps(__spreadValues({}, resolveMediaFromUri(avatar.uri, size)), {
457
+ badge: avatar.badgeUri ? resolveMediaFromUri(avatar.badgeUri, 16) : void 0
626
458
  });
627
459
  };
628
460
  const avatars = content.map(getRenderableAvatar);
@@ -631,7 +463,7 @@ var AvatarMedia = ({
631
463
  if (!asset && !icon) {
632
464
  return null;
633
465
  }
634
- return /* @__PURE__ */ jsx17(
466
+ return /* @__PURE__ */ jsx13(
635
467
  AvatarView,
636
468
  {
637
469
  "aria-label": accessibilityDescription,
@@ -648,7 +480,7 @@ var AvatarMedia = ({
648
480
  var _b = _a, { badge } = _b, rest = __objRest(_b, ["badge"]);
649
481
  return __spreadValues({}, rest);
650
482
  });
651
- return /* @__PURE__ */ jsx17(
483
+ return /* @__PURE__ */ jsx13(
652
484
  AvatarLayout,
653
485
  {
654
486
  "aria-label": accessibilityDescription,
@@ -661,11 +493,11 @@ var AvatarMedia = ({
661
493
 
662
494
  // ../renderers/src/utils/image-utils.tsx
663
495
  import { AvatarView as AvatarView2 } from "@transferwise/components";
664
- import { jsx as jsx18 } from "react/jsx-runtime";
496
+ import { jsx as jsx14 } from "react/jsx-runtime";
665
497
  var getBadgedMedia = (iconNode, imageNode, size) => {
666
498
  if (iconNode && imageNode) {
667
499
  if (imageNode && iconNode) {
668
- return /* @__PURE__ */ jsx18(AvatarView2, { size, badge: { asset: iconNode, type: "reference" }, children: imageNode });
500
+ return /* @__PURE__ */ jsx14(AvatarView2, { size, badge: { asset: iconNode, type: "reference" }, children: imageNode });
669
501
  }
670
502
  }
671
503
  return null;
@@ -673,7 +505,7 @@ var getBadgedMedia = (iconNode, imageNode, size) => {
673
505
  var getIconNode = (icon) => {
674
506
  if (icon) {
675
507
  if ("name" in icon) {
676
- return /* @__PURE__ */ jsx18(DynamicIcon_default, { name: icon.name });
508
+ return /* @__PURE__ */ jsx14(DynamicIcon_default, { name: icon.name });
677
509
  }
678
510
  if (icon.text) {
679
511
  return icon.text;
@@ -685,21 +517,18 @@ var getImageNode = (image, size) => {
685
517
  if (image) {
686
518
  const { accessibilityDescription, uri } = image;
687
519
  if (!uri.startsWith("urn:")) {
688
- return /* @__PURE__ */ jsx18("img", { src: uri, alt: accessibilityDescription, width: `${size}px` });
520
+ return /* @__PURE__ */ jsx14("img", { src: uri, alt: accessibilityDescription, width: `${size}px` });
689
521
  }
690
522
  if (isUrnFlag(uri)) {
691
- return /* @__PURE__ */ jsx18(UrnFlag, { urn: uri, accessibilityDescription, size });
523
+ return /* @__PURE__ */ jsx14(UrnFlag, { urn: uri, accessibilityDescription, size });
692
524
  }
693
525
  }
694
526
  return null;
695
527
  };
696
528
 
697
- // ../renderers/src/components/Media/Media.tsx
698
- import { AvatarView as AvatarView4 } from "@transferwise/components";
699
-
700
529
  // ../renderers/src/components/Media/LegacyMedia.tsx
701
530
  import { AvatarView as AvatarView3 } from "@transferwise/components";
702
- import { jsx as jsx19 } from "react/jsx-runtime";
531
+ import { jsx as jsx15 } from "react/jsx-runtime";
703
532
  var LegacyMedia = ({ image, icon, preferAvatar, size }) => {
704
533
  const imageNode = getImageNode(image, size);
705
534
  const iconNode = getIconNode(icon);
@@ -708,11 +537,11 @@ var LegacyMedia = ({ image, icon, preferAvatar, size }) => {
708
537
  return badge;
709
538
  }
710
539
  if (imageNode) {
711
- return preferAvatar ? /* @__PURE__ */ jsx19(AvatarView3, { children: imageNode }) : imageNode;
540
+ return preferAvatar ? /* @__PURE__ */ jsx15(AvatarView3, { children: imageNode }) : imageNode;
712
541
  }
713
542
  if (iconNode && icon) {
714
543
  if ("text" in icon || size === 48) {
715
- return /* @__PURE__ */ jsx19(AvatarView3, { size, children: iconNode });
544
+ return /* @__PURE__ */ jsx15(AvatarView3, { size, children: iconNode });
716
545
  }
717
546
  return iconNode;
718
547
  }
@@ -720,7 +549,7 @@ var LegacyMedia = ({ image, icon, preferAvatar, size }) => {
720
549
  };
721
550
 
722
551
  // ../renderers/src/components/Media/Media.tsx
723
- import { jsx as jsx20 } from "react/jsx-runtime";
552
+ import { jsx as jsx16 } from "react/jsx-runtime";
724
553
  function Media({
725
554
  media,
726
555
  preferAvatar,
@@ -728,13 +557,13 @@ function Media({
728
557
  }) {
729
558
  switch (media == null ? void 0 : media.type) {
730
559
  case "avatar":
731
- return /* @__PURE__ */ jsx20(AvatarMedia, __spreadProps(__spreadValues({}, media), { size }));
560
+ return /* @__PURE__ */ jsx16(AvatarMedia, __spreadProps(__spreadValues({}, media), { size }));
732
561
  case "image": {
733
- const imageNode = getImageNode(media, size);
734
- return preferAvatar ? /* @__PURE__ */ jsx20(AvatarView4, { children: imageNode }) : imageNode;
562
+ const { asset, icon } = resolveMediaFromUri(media.uri, size);
563
+ return icon != null ? icon : asset;
735
564
  }
736
565
  case "legacy": {
737
- return /* @__PURE__ */ jsx20(LegacyMedia, __spreadProps(__spreadValues({}, media), { preferAvatar, size }));
566
+ return /* @__PURE__ */ jsx16(LegacyMedia, __spreadProps(__spreadValues({}, media), { preferAvatar, size }));
738
567
  }
739
568
  default:
740
569
  return null;
@@ -742,15 +571,205 @@ function Media({
742
571
  }
743
572
 
744
573
  // ../renderers/src/components/Media/OptionMedia.tsx
745
- import { jsx as jsx21 } from "react/jsx-runtime";
574
+ import { jsx as jsx17 } from "react/jsx-runtime";
746
575
  var mediaSize = 48;
747
576
  function OptionMedia(props) {
748
- return /* @__PURE__ */ jsx21(Media, __spreadProps(__spreadValues({}, props), { size: mediaSize }));
577
+ return /* @__PURE__ */ jsx17(Media, __spreadProps(__spreadValues({}, props), { size: mediaSize }));
749
578
  }
750
579
 
751
580
  // ../renderers/src/components/Media/getInlineMedia.tsx
581
+ import { jsx as jsx18 } from "react/jsx-runtime";
582
+ var getInlineMedia = (media) => media ? /* @__PURE__ */ jsx18(Media, { media, preferAvatar: false, size: 24 }) : null;
583
+
584
+ // ../renderers/src/NewListItem/getMedia.tsx
585
+ import { jsx as jsx19 } from "react/jsx-runtime";
586
+ var getMedia = (media, preferAvatar) => media ? /* @__PURE__ */ jsx19(OptionMedia, { media, preferAvatar }) : void 0;
587
+
588
+ // ../renderers/src/CheckboxInputRenderer.tsx
589
+ import { jsx as jsx20 } from "react/jsx-runtime";
590
+ var CheckboxInputRenderer = {
591
+ canRenderType: "input-checkbox",
592
+ render: (props) => props.control === "switch-item" ? /* @__PURE__ */ jsx20(SwitchComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx20(CheckboxComponent, __spreadValues({}, props))
593
+ };
594
+ var CheckboxComponent = (props) => {
595
+ const _a = props, {
596
+ id,
597
+ control,
598
+ title = "",
599
+ description,
600
+ help,
601
+ type,
602
+ validationState,
603
+ value
604
+ } = _a, rest = __objRest(_a, [
605
+ "id",
606
+ "control",
607
+ "title",
608
+ "description",
609
+ "help",
610
+ "type",
611
+ "validationState",
612
+ "value"
613
+ ]);
614
+ const checkboxProps = __spreadProps(__spreadValues({}, rest), { label: title, secondary: description, checked: value });
615
+ return /* @__PURE__ */ jsx20(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ jsx20(Checkbox, __spreadValues({ id }, checkboxProps)) });
616
+ };
617
+ var SwitchComponent = (props) => {
618
+ const { title, description, disabled, media, validationState, value, onChange } = props;
619
+ return /* @__PURE__ */ jsx20(
620
+ ListItem,
621
+ {
622
+ title,
623
+ subtitle: description,
624
+ media: getMedia(media, false),
625
+ disabled,
626
+ prompt: validationState && validationState.status === "invalid" ? /* @__PURE__ */ jsx20(ListItem.Prompt, { sentiment: "negative", children: validationState.message }) : void 0,
627
+ control: /* @__PURE__ */ jsx20(ListItem.Switch, { checked: value, onClick: () => onChange(!value) })
628
+ }
629
+ );
630
+ };
631
+ var CheckboxInputRenderer_default = CheckboxInputRenderer;
632
+
633
+ // ../renderers/src/ColumnsRenderer.tsx
634
+ import classNames2 from "classnames";
635
+ import { jsx as jsx21, jsxs as jsxs3 } from "react/jsx-runtime";
636
+ var ColumnsRenderer = {
637
+ canRenderType: "columns",
638
+ render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ jsxs3(
639
+ "div",
640
+ {
641
+ className: classNames2("df-columns-renderer-container", getMargin(margin), {
642
+ "df-columns-renderer-bias-start": bias === "start",
643
+ "df-columns-renderer-bias-end": bias === "end"
644
+ }),
645
+ children: [
646
+ /* @__PURE__ */ jsx21("div", { className: "df-columns-renderer-column", children: startChildren }),
647
+ /* @__PURE__ */ jsx21("div", { className: "df-columns-renderer-column", children: endChildren })
648
+ ]
649
+ }
650
+ )
651
+ };
652
+ var ColumnsRenderer_default = ColumnsRenderer;
653
+
654
+ // ../renderers/src/components/VariableDateInput.tsx
655
+ import { DateInput, DateLookup } from "@transferwise/components";
656
+
657
+ // ../renderers/src/validators/type-validators.ts
658
+ var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
659
+
660
+ // ../renderers/src/utils/value-utils.ts
661
+ var dateStringToDateOrNull = (dateString) => {
662
+ if (!dateString) {
663
+ return null;
664
+ }
665
+ const [year, month, date] = dateString.split("-").map((number) => Number.parseInt(number, 10));
666
+ if (!isNumber(year) || !isNumber(month) || !isNumber(date)) {
667
+ return null;
668
+ }
669
+ return new Date(year, month - 1, date);
670
+ };
671
+ var dateToDateString = (date) => {
672
+ const d = new Date(date);
673
+ const month = String(d.getMonth() + 1);
674
+ const day = String(d.getDate());
675
+ const year = d.getFullYear();
676
+ const formattedMonth = month.length < 2 ? `0${month}` : month;
677
+ const formattedDay = day.length < 2 ? `0${day}` : day;
678
+ return [year, formattedMonth, formattedDay].join("-");
679
+ };
680
+
681
+ // ../renderers/src/components/VariableDateInput.tsx
752
682
  import { jsx as jsx22 } from "react/jsx-runtime";
753
- var getInlineMedia = (media) => media ? /* @__PURE__ */ jsx22(Media, { media, preferAvatar: false, size: 24 }) : null;
683
+ function VariableDateInput({
684
+ control,
685
+ inputProps
686
+ }) {
687
+ const {
688
+ autoComplete,
689
+ minimumDate,
690
+ maximumDate,
691
+ placeholder,
692
+ disabled,
693
+ onBlur,
694
+ onChange,
695
+ onFocus
696
+ } = inputProps;
697
+ if (control === "date-lookup") {
698
+ return /* @__PURE__ */ jsx22(
699
+ DateLookup,
700
+ {
701
+ value: dateStringToDateOrNull(inputProps.value),
702
+ min: dateStringToDateOrNull(minimumDate),
703
+ max: dateStringToDateOrNull(maximumDate),
704
+ placeholder,
705
+ disabled,
706
+ onChange: (date) => {
707
+ onChange(date !== null ? dateToDateString(date) : null);
708
+ },
709
+ onBlur,
710
+ onFocus
711
+ }
712
+ );
713
+ }
714
+ return /* @__PURE__ */ jsx22(
715
+ DateInput,
716
+ __spreadProps(__spreadValues({}, inputProps), {
717
+ dayAutoComplete: getAutocompleteString(autoComplete, "day"),
718
+ yearAutoComplete: getAutocompleteString(autoComplete, "year")
719
+ })
720
+ );
721
+ }
722
+ var getAutocompleteString = (value, suffix) => {
723
+ if (value === "bday") {
724
+ return `${value}-${suffix}`;
725
+ }
726
+ return void 0;
727
+ };
728
+ var VariableDateInput_default = VariableDateInput;
729
+
730
+ // ../renderers/src/DateInputRenderer.tsx
731
+ import { jsx as jsx23 } from "react/jsx-runtime";
732
+ var DateInputRenderer = {
733
+ canRenderType: "input-date",
734
+ render: (props) => {
735
+ const _a = props, {
736
+ id,
737
+ control,
738
+ description,
739
+ type,
740
+ help,
741
+ title,
742
+ validationState,
743
+ value: initialValue
744
+ } = _a, rest = __objRest(_a, [
745
+ "id",
746
+ "control",
747
+ "description",
748
+ "type",
749
+ "help",
750
+ "title",
751
+ "validationState",
752
+ "value"
753
+ ]);
754
+ const value = initialValue != null ? initialValue : "";
755
+ const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
756
+ return /* @__PURE__ */ jsx23(
757
+ FieldInput_default,
758
+ {
759
+ id,
760
+ label: title,
761
+ description,
762
+ validation: validationState,
763
+ help,
764
+ children: /* @__PURE__ */ jsx23(VariableDateInput_default, { control, inputProps })
765
+ }
766
+ );
767
+ }
768
+ };
769
+ var DateInputRenderer_default = DateInputRenderer;
770
+
771
+ // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
772
+ import { NavigationOption, NavigationOptionsList } from "@transferwise/components";
754
773
 
755
774
  // ../renderers/src/DecisionRenderer/DecisionList.tsx
756
775
  import { Header as Header2, SearchInput } from "@transferwise/components";
@@ -777,6 +796,11 @@ var decision_messages_default = defineMessages3({
777
796
  defaultMessage: "Recent",
778
797
  description: "Label for the group of options that are tagged as recent"
779
798
  },
799
+ currenciesWithAccountDetails: {
800
+ id: "df.wise.Decision.currenciesWithAccountDetails",
801
+ defaultMessage: "Currencies with account details",
802
+ description: "Label for the group of options that are tagged as currencies with account details"
803
+ },
780
804
  filterPlaceholder: {
781
805
  id: "df.wise.Decision.filterPlaceholder",
782
806
  defaultMessage: "Start typing to search",
@@ -795,10 +819,11 @@ var decision_messages_default = defineMessages3({
795
819
  });
796
820
 
797
821
  // ../renderers/src/DecisionRenderer/GroupedList.tsx
798
- import { Fragment, jsx as jsx23, jsxs as jsxs4 } from "react/jsx-runtime";
822
+ import { Fragment, jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
799
823
  var OPTION_GROUPS = {
800
824
  popular: "popular",
801
- recent: "recent"
825
+ recent: "recent",
826
+ currencyWithAccountDetails: "currencies-with-account-details"
802
827
  };
803
828
  var GroupedList = (_a) => {
804
829
  var _b = _a, { renderDecisionList: renderDecisionList3 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
@@ -806,17 +831,24 @@ var GroupedList = (_a) => {
806
831
  const { options } = rest;
807
832
  const popularOptions = options.filter((option) => option.tag === OPTION_GROUPS.popular);
808
833
  const recentOptions = options.filter((option) => option.tag === OPTION_GROUPS.recent);
834
+ const currencyWithAccountDetailsOptions = options.filter(
835
+ (option) => option.tag === OPTION_GROUPS.currencyWithAccountDetails
836
+ );
809
837
  return /* @__PURE__ */ jsxs4(Fragment, { children: [
810
838
  popularOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
811
- /* @__PURE__ */ jsx23(Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
839
+ /* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
812
840
  renderDecisionList3(__spreadProps(__spreadValues({}, rest), { options: popularOptions }))
813
841
  ] }) : null,
814
842
  recentOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
815
- /* @__PURE__ */ jsx23(Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
843
+ /* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
816
844
  renderDecisionList3(__spreadProps(__spreadValues({}, rest), { options: recentOptions }))
817
845
  ] }) : null,
846
+ currencyWithAccountDetailsOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
847
+ /* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.currenciesWithAccountDetails) }),
848
+ renderDecisionList3(__spreadProps(__spreadValues({}, rest), { options: currencyWithAccountDetailsOptions }))
849
+ ] }) : null,
818
850
  /* @__PURE__ */ jsxs4(Section, { children: [
819
- /* @__PURE__ */ jsx23(Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
851
+ /* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
820
852
  renderDecisionList3(rest)
821
853
  ] })
822
854
  ] });
@@ -869,16 +901,16 @@ function filterAndSortDecisionOptions(selectOptions, query) {
869
901
  }
870
902
 
871
903
  // ../renderers/src/DecisionRenderer/DecisionList.tsx
872
- import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs5 } from "react/jsx-runtime";
904
+ import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
873
905
  var DecisionWrapper = (props) => {
874
906
  return /* @__PURE__ */ jsxs5("div", { className: getMargin(props.margin), children: [
875
- props.title && /* @__PURE__ */ jsx24(Header2, { as: "h2", title: props.title }),
876
- props.control === "filtered" ? /* @__PURE__ */ jsx24(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx24(UnfilteredDecisionList, __spreadValues({}, props))
907
+ props.title && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: props.title }),
908
+ props.control === "filtered" ? /* @__PURE__ */ jsx25(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx25(UnfilteredDecisionList, __spreadValues({}, props))
877
909
  ] });
878
910
  };
879
911
  var UnfilteredDecisionList = (_a) => {
880
912
  var _b = _a, { renderDecisionList: renderDecisionList3 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
881
- return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx24(GroupedList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList3 })) : renderDecisionList3(rest);
913
+ return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx25(GroupedList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList3 })) : renderDecisionList3(rest);
882
914
  };
883
915
  var FilteredDecisionList = (props) => {
884
916
  const { formatMessage } = useIntl4();
@@ -887,7 +919,7 @@ var FilteredDecisionList = (props) => {
887
919
  const filteredOptions = filterAndSortDecisionOptions(options, query);
888
920
  const isGrouped = isGroupedDecision(options);
889
921
  return /* @__PURE__ */ jsxs5(Fragment2, { children: [
890
- /* @__PURE__ */ jsx24(
922
+ /* @__PURE__ */ jsx25(
891
923
  SearchInput,
892
924
  {
893
925
  placeholder: formatMessage(decision_messages_default.filterPlaceholder),
@@ -898,35 +930,35 @@ var FilteredDecisionList = (props) => {
898
930
  }
899
931
  }
900
932
  ),
901
- isGrouped && query.length === 0 ? /* @__PURE__ */ jsx24(GroupedList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
902
- query.length > 0 && /* @__PURE__ */ jsx24(Header2, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
933
+ isGrouped && query.length === 0 ? /* @__PURE__ */ jsx25(GroupedList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
934
+ query.length > 0 && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
903
935
  filteredOptions.length > 0 ? renderDecisionList3({
904
936
  control,
905
937
  className: query.length === 0 ? "m-t-3" : "",
906
938
  options: filteredOptions
907
- }) : /* @__PURE__ */ jsx24("p", { children: formatMessage(decision_messages_default.noResults) })
939
+ }) : /* @__PURE__ */ jsx25("p", { children: formatMessage(decision_messages_default.noResults) })
908
940
  ] })
909
941
  ] });
910
942
  };
911
943
 
912
944
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
913
- import { jsx as jsx25 } from "react/jsx-runtime";
945
+ import { jsx as jsx26 } from "react/jsx-runtime";
914
946
  var DecisionRenderer = {
915
947
  canRenderType: "decision",
916
948
  render: (props) => {
917
- return /* @__PURE__ */ jsx25(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }));
949
+ return /* @__PURE__ */ jsx26(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }));
918
950
  }
919
951
  };
920
952
  var renderDecisionList = ({ options, className, control }) => {
921
- return /* @__PURE__ */ jsx25("div", { className, children: /* @__PURE__ */ jsx25(NavigationOptionsList, { children: options.map((option) => {
953
+ return /* @__PURE__ */ jsx26("div", { className, children: /* @__PURE__ */ jsx26(NavigationOptionsList, { children: options.map((option) => {
922
954
  const { description, disabled, media, title: itemTitle, tag, onClick } = option;
923
- return /* @__PURE__ */ jsx25(
955
+ return /* @__PURE__ */ jsx26(
924
956
  NavigationOption,
925
957
  {
926
958
  title: itemTitle,
927
959
  content: description,
928
960
  disabled,
929
- media: media ? /* @__PURE__ */ jsx25(
961
+ media: media ? /* @__PURE__ */ jsx26(
930
962
  OptionMedia,
931
963
  {
932
964
  media,
@@ -944,10 +976,21 @@ var renderDecisionList = ({ options, className, control }) => {
944
976
  var DecisionRenderer_default = DecisionRenderer;
945
977
 
946
978
  // ../renderers/src/DividerRenderer.tsx
947
- import { jsx as jsx26 } from "react/jsx-runtime";
979
+ import { Divider } from "@transferwise/components";
980
+ import { jsx as jsx27 } from "react/jsx-runtime";
981
+ var mapControlToLevel = (control) => {
982
+ switch (control) {
983
+ case "section":
984
+ return "section";
985
+ case "content":
986
+ return "content";
987
+ default:
988
+ return "subsection";
989
+ }
990
+ };
948
991
  var DividerRenderer = {
949
992
  canRenderType: "divider",
950
- render: ({ margin }) => /* @__PURE__ */ jsx26("hr", { className: `m-t-0 ${getMargin(margin)}` })
993
+ render: ({ margin, control }) => /* @__PURE__ */ jsx27(Divider, { className: `m-t-0 d-block ${getMargin(margin)}`, level: mapControlToLevel(control) })
951
994
  };
952
995
  var DividerRenderer_default = DividerRenderer;
953
996
 
@@ -982,7 +1025,7 @@ var external_confirmation_messages_default = defineMessages4({
982
1025
  // ../renderers/src/ExternalConfirmationRenderer.tsx
983
1026
  import { useIntl as useIntl5 } from "react-intl";
984
1027
  import { useEffect as useEffect3 } from "react";
985
- import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs6 } from "react/jsx-runtime";
1028
+ import { Fragment as Fragment3, jsx as jsx28, jsxs as jsxs6 } from "react/jsx-runtime";
986
1029
  var ExternalConfirmationRenderer = {
987
1030
  canRenderType: "external-confirmation",
988
1031
  render: ExternalConfirmationRendererComponent
@@ -1005,15 +1048,15 @@ function ExternalConfirmationRendererComponent({
1005
1048
  }
1006
1049
  }
1007
1050
  }, []);
1008
- return /* @__PURE__ */ jsx27(
1051
+ return /* @__PURE__ */ jsx28(
1009
1052
  Modal,
1010
1053
  {
1011
1054
  open: status === "failure",
1012
1055
  title: formatMessage(external_confirmation_messages_default.title),
1013
1056
  body: /* @__PURE__ */ jsxs6(Fragment3, { children: [
1014
- /* @__PURE__ */ jsx27(Markdown2, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1015
- /* @__PURE__ */ jsx27("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs6("div", { className: "df-box-renderer-width-lg", children: [
1016
- /* @__PURE__ */ jsx27(
1057
+ /* @__PURE__ */ jsx28(Markdown2, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
1058
+ /* @__PURE__ */ jsx28("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs6("div", { className: "df-box-renderer-width-lg", children: [
1059
+ /* @__PURE__ */ jsx28(
1017
1060
  Button3,
1018
1061
  {
1019
1062
  v2: true,
@@ -1028,7 +1071,7 @@ function ExternalConfirmationRendererComponent({
1028
1071
  children: formatMessage(external_confirmation_messages_default.open)
1029
1072
  }
1030
1073
  ),
1031
- /* @__PURE__ */ jsx27(Button3, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1074
+ /* @__PURE__ */ jsx28(Button3, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
1032
1075
  ] }) })
1033
1076
  ] }),
1034
1077
  onClose: onCancel
@@ -1045,27 +1088,27 @@ function getOrigin(url) {
1045
1088
  var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
1046
1089
 
1047
1090
  // ../renderers/src/FormRenderer.tsx
1048
- import { jsx as jsx28 } from "react/jsx-runtime";
1091
+ import { jsx as jsx29 } from "react/jsx-runtime";
1049
1092
  var FormRenderer = {
1050
1093
  canRenderType: "form",
1051
- render: ({ children, margin }) => /* @__PURE__ */ jsx28("div", { className: getMargin(margin), children })
1094
+ render: ({ children, margin }) => /* @__PURE__ */ jsx29("div", { className: getMargin(margin), children })
1052
1095
  };
1053
1096
  var FormRenderer_default = FormRenderer;
1054
1097
 
1055
1098
  // ../renderers/src/FormSectionRenderer.tsx
1056
1099
  import { Header as Header3 } from "@transferwise/components";
1057
- import { jsx as jsx29, jsxs as jsxs7 } from "react/jsx-runtime";
1100
+ import { jsx as jsx30, jsxs as jsxs7 } from "react/jsx-runtime";
1058
1101
  var FormSectionRenderer = {
1059
1102
  canRenderType: "form-section",
1060
1103
  render: ({ title, description, children }) => /* @__PURE__ */ jsxs7("fieldset", { children: [
1061
- title && /* @__PURE__ */ jsx29(
1104
+ title && /* @__PURE__ */ jsx30(
1062
1105
  Header3,
1063
1106
  {
1064
1107
  as: "h2",
1065
1108
  title
1066
1109
  }
1067
1110
  ),
1068
- description && /* @__PURE__ */ jsx29("p", { children: description }),
1111
+ description && /* @__PURE__ */ jsx30("p", { children: description }),
1069
1112
  children
1070
1113
  ] })
1071
1114
  };
@@ -1073,18 +1116,18 @@ var FormSectionRenderer_default = FormSectionRenderer;
1073
1116
 
1074
1117
  // ../renderers/src/HeadingRenderer.tsx
1075
1118
  import { Display, Title } from "@transferwise/components";
1076
- import { jsx as jsx30 } from "react/jsx-runtime";
1119
+ import { jsx as jsx31 } from "react/jsx-runtime";
1077
1120
  var HeadingRenderer = {
1078
1121
  canRenderType: "heading",
1079
- render: (props) => /* @__PURE__ */ jsx30(Heading, __spreadValues({}, props))
1122
+ render: (props) => /* @__PURE__ */ jsx31(Heading, __spreadValues({}, props))
1080
1123
  };
1081
1124
  function Heading(props) {
1082
1125
  const { text, size, align, margin, control } = props;
1083
1126
  const className = getTextAlignmentAndMargin({ align, margin });
1084
- return control === "display" ? /* @__PURE__ */ jsx30(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx30(StandardHeading, { size, text, className });
1127
+ return control === "display" ? /* @__PURE__ */ jsx31(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx31(StandardHeading, { size, text, className });
1085
1128
  }
1086
1129
  function DisplayHeading({ size, text, className }) {
1087
- return /* @__PURE__ */ jsx30(Display, { type: getDisplayType(size), className, children: text });
1130
+ return /* @__PURE__ */ jsx31(Display, { type: getDisplayType(size), className, children: text });
1088
1131
  }
1089
1132
  var getDisplayType = (size) => {
1090
1133
  switch (size) {
@@ -1100,7 +1143,7 @@ var getDisplayType = (size) => {
1100
1143
  }
1101
1144
  };
1102
1145
  function StandardHeading({ size, text, className }) {
1103
- return /* @__PURE__ */ jsx30(Title, { type: getTitleTypeBySize(size), className, children: text });
1146
+ return /* @__PURE__ */ jsx31(Title, { type: getTitleTypeBySize(size), className, children: text });
1104
1147
  }
1105
1148
  var getTitleTypeBySize = (size) => {
1106
1149
  var _a;
@@ -1127,7 +1170,7 @@ function isRelativePath(url = "") {
1127
1170
  }
1128
1171
 
1129
1172
  // ../renderers/src/ImageRenderer/UrlImage.tsx
1130
- import { jsx as jsx31 } from "react/jsx-runtime";
1173
+ import { jsx as jsx32 } from "react/jsx-runtime";
1131
1174
  function UrlImage({
1132
1175
  accessibilityDescription,
1133
1176
  align,
@@ -1142,7 +1185,7 @@ function UrlImage({
1142
1185
  void getImageSource(httpClient, uri).then(setImageSource);
1143
1186
  }
1144
1187
  }, [uri, httpClient]);
1145
- return /* @__PURE__ */ jsx31("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ jsx31(
1188
+ return /* @__PURE__ */ jsx32("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ jsx32(
1146
1189
  Image,
1147
1190
  {
1148
1191
  className: `img-responsive ${getMargin(margin)}`,
@@ -1186,7 +1229,7 @@ var getImageSource = async (httpClient, imageUrl) => {
1186
1229
  };
1187
1230
 
1188
1231
  // ../renderers/src/ImageRenderer/UrnFlagImage.tsx
1189
- import { jsx as jsx32 } from "react/jsx-runtime";
1232
+ import { jsx as jsx33 } from "react/jsx-runtime";
1190
1233
  var maxFlagSize = 600;
1191
1234
  function UrnFlagImage({
1192
1235
  accessibilityDescription,
@@ -1195,7 +1238,7 @@ function UrnFlagImage({
1195
1238
  size,
1196
1239
  uri
1197
1240
  }) {
1198
- return /* @__PURE__ */ jsx32("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx32(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
1241
+ return /* @__PURE__ */ jsx33("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx33(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
1199
1242
  }
1200
1243
 
1201
1244
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
@@ -1215,7 +1258,7 @@ var isAnimated = (uri) => {
1215
1258
  // ../renderers/src/ImageRenderer/SafeIllustration3D.tsx
1216
1259
  import { Illustration3D } from "@wise/art";
1217
1260
  import { Component } from "react";
1218
- import { jsx as jsx33 } from "react/jsx-runtime";
1261
+ import { jsx as jsx34 } from "react/jsx-runtime";
1219
1262
  var Illustration3DErrorBoundary = class extends Component {
1220
1263
  constructor(props) {
1221
1264
  super(props);
@@ -1239,12 +1282,12 @@ var SafeIllustration3D = ({
1239
1282
  size,
1240
1283
  onError
1241
1284
  }) => {
1242
- return /* @__PURE__ */ jsx33(Illustration3DErrorBoundary, { onError, children: /* @__PURE__ */ jsx33(Illustration3D, { name, size }) });
1285
+ return /* @__PURE__ */ jsx34(Illustration3DErrorBoundary, { onError, children: /* @__PURE__ */ jsx34(Illustration3D, { name, size }) });
1243
1286
  };
1244
1287
  var SafeIllustration3D_default = SafeIllustration3D;
1245
1288
 
1246
1289
  // ../renderers/src/ImageRenderer/UrnIllustration.tsx
1247
- import { jsx as jsx34 } from "react/jsx-runtime";
1290
+ import { jsx as jsx35 } from "react/jsx-runtime";
1248
1291
  var urnPrefix = "urn:wise:illustrations:";
1249
1292
  var isUrnIllustration = (uri) => uri.startsWith(urnPrefix);
1250
1293
  function UrnIllustration({
@@ -1259,7 +1302,7 @@ function UrnIllustration({
1259
1302
  const illustrationName = getIllustrationName(uri);
1260
1303
  const illustration3DName = getIllustration3DName(uri);
1261
1304
  if (illustration3DName && isAnimated(uri) && !has3DFailed) {
1262
- return /* @__PURE__ */ jsx34("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx34(
1305
+ return /* @__PURE__ */ jsx35("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx35(
1263
1306
  SafeIllustration3D_default,
1264
1307
  {
1265
1308
  name: illustration3DName,
@@ -1268,7 +1311,7 @@ function UrnIllustration({
1268
1311
  }
1269
1312
  ) });
1270
1313
  }
1271
- return /* @__PURE__ */ jsx34("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx34(
1314
+ return /* @__PURE__ */ jsx35("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx35(
1272
1315
  Illustration,
1273
1316
  {
1274
1317
  className: "df-illustration",
@@ -1288,24 +1331,24 @@ var getIllustration3DName = (uri) => {
1288
1331
  };
1289
1332
 
1290
1333
  // ../renderers/src/ImageRenderer/UrnImage.tsx
1291
- import { jsx as jsx35 } from "react/jsx-runtime";
1334
+ import { jsx as jsx36 } from "react/jsx-runtime";
1292
1335
  var isUrnImage = (uri) => uri.startsWith("urn:");
1293
1336
  function UrnImage(props) {
1294
1337
  const { uri } = props;
1295
1338
  if (isUrnIllustration(uri)) {
1296
- return /* @__PURE__ */ jsx35(UrnIllustration, __spreadValues({}, props));
1339
+ return /* @__PURE__ */ jsx36(UrnIllustration, __spreadValues({}, props));
1297
1340
  }
1298
1341
  if (isUrnFlag(uri)) {
1299
- return /* @__PURE__ */ jsx35(UrnFlagImage, __spreadValues({}, props));
1342
+ return /* @__PURE__ */ jsx36(UrnFlagImage, __spreadValues({}, props));
1300
1343
  }
1301
1344
  return null;
1302
1345
  }
1303
1346
 
1304
1347
  // ../renderers/src/ImageRenderer/ImageRenderer.tsx
1305
- import { jsx as jsx36 } from "react/jsx-runtime";
1348
+ import { jsx as jsx37 } from "react/jsx-runtime";
1306
1349
  var ImageRenderer = {
1307
1350
  canRenderType: "image",
1308
- render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx36(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx36(UrlImage, __spreadValues({}, props))
1351
+ render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx37(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx37(UrlImage, __spreadValues({}, props))
1309
1352
  };
1310
1353
 
1311
1354
  // ../renderers/src/ImageRenderer/index.tsx
@@ -1313,7 +1356,7 @@ var ImageRenderer_default = ImageRenderer;
1313
1356
 
1314
1357
  // ../renderers/src/InstructionsRenderer.tsx
1315
1358
  import { Header as Header4, InstructionsList } from "@transferwise/components";
1316
- import { jsx as jsx37, jsxs as jsxs8 } from "react/jsx-runtime";
1359
+ import { jsx as jsx38, jsxs as jsxs8 } from "react/jsx-runtime";
1317
1360
  var doContext = ["positive", "neutral"];
1318
1361
  var dontContext = ["warning", "negative"];
1319
1362
  var InstructionsRenderer = {
@@ -1322,8 +1365,8 @@ var InstructionsRenderer = {
1322
1365
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
1323
1366
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
1324
1367
  return /* @__PURE__ */ jsxs8("div", { className: getMargin(margin), children: [
1325
- title ? /* @__PURE__ */ jsx37(Header4, { title }) : null,
1326
- /* @__PURE__ */ jsx37(InstructionsList, { dos, donts })
1368
+ title ? /* @__PURE__ */ jsx38(Header4, { title }) : null,
1369
+ /* @__PURE__ */ jsx38(InstructionsList, { dos, donts })
1327
1370
  ] });
1328
1371
  }
1329
1372
  };
@@ -1355,7 +1398,7 @@ function pick(obj, ...keys) {
1355
1398
  }
1356
1399
 
1357
1400
  // ../renderers/src/IntegerInputRenderer.tsx
1358
- import { jsx as jsx38 } from "react/jsx-runtime";
1401
+ import { jsx as jsx39 } from "react/jsx-runtime";
1359
1402
  var IntegerInputRenderer = {
1360
1403
  canRenderType: "input-integer",
1361
1404
  render: (props) => {
@@ -1370,7 +1413,7 @@ var IntegerInputRenderer = {
1370
1413
  "maximum",
1371
1414
  "minimum"
1372
1415
  );
1373
- return /* @__PURE__ */ jsx38(
1416
+ return /* @__PURE__ */ jsx39(
1374
1417
  FieldInput_default,
1375
1418
  {
1376
1419
  id,
@@ -1378,7 +1421,7 @@ var IntegerInputRenderer = {
1378
1421
  description,
1379
1422
  validation: validationState,
1380
1423
  help,
1381
- children: /* @__PURE__ */ jsx38(InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx38(
1424
+ children: /* @__PURE__ */ jsx39(InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx39(
1382
1425
  Input,
1383
1426
  __spreadValues({
1384
1427
  id,
@@ -1403,12 +1446,12 @@ var IntegerInputRenderer_default = IntegerInputRenderer;
1403
1446
  // ../renderers/src/ListRenderer.tsx
1404
1447
  import { Body, Header as Header5 } from "@transferwise/components";
1405
1448
  import classNames3 from "classnames";
1406
- import { jsx as jsx39, jsxs as jsxs9 } from "react/jsx-runtime";
1449
+ import { jsx as jsx40, jsxs as jsxs9 } from "react/jsx-runtime";
1407
1450
  var ListRenderer = {
1408
1451
  canRenderType: "list",
1409
1452
  render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ jsxs9("div", { className: getMargin(margin), children: [
1410
- (title || callToAction) && /* @__PURE__ */ jsx39(Header5, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
1411
- items.map((props) => /* @__PURE__ */ jsx39(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
1453
+ (title || callToAction) && /* @__PURE__ */ jsx40(Header5, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
1454
+ items.map((props) => /* @__PURE__ */ jsx40(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
1412
1455
  ] })
1413
1456
  };
1414
1457
  var DesignSystemListItem = ({
@@ -1420,7 +1463,7 @@ var DesignSystemListItem = ({
1420
1463
  media,
1421
1464
  control,
1422
1465
  tag
1423
- }) => /* @__PURE__ */ jsx39(
1466
+ }) => /* @__PURE__ */ jsx40(
1424
1467
  "label",
1425
1468
  {
1426
1469
  className: classNames3("np-option p-a-2", {
@@ -1428,7 +1471,7 @@ var DesignSystemListItem = ({
1428
1471
  "np-option__container-aligned": true
1429
1472
  }),
1430
1473
  children: /* @__PURE__ */ jsxs9("div", { className: "media", children: [
1431
- icon || image || media ? /* @__PURE__ */ jsx39("div", { className: "media-left", children: /* @__PURE__ */ jsx39(
1474
+ icon || image || media ? /* @__PURE__ */ jsx40("div", { className: "media-left", children: /* @__PURE__ */ jsx40(
1432
1475
  ListItemMedia,
1433
1476
  {
1434
1477
  icon,
@@ -1438,12 +1481,12 @@ var DesignSystemListItem = ({
1438
1481
  ) }) : null,
1439
1482
  /* @__PURE__ */ jsxs9("div", { className: "media-body", children: [
1440
1483
  /* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
1441
- /* @__PURE__ */ jsx39("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
1442
- /* @__PURE__ */ jsx39("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
1484
+ /* @__PURE__ */ jsx40("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
1485
+ /* @__PURE__ */ jsx40("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
1443
1486
  ] }),
1444
1487
  /* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
1445
- /* @__PURE__ */ jsx39(Body, { className: "d-block np-option__body", children: description }),
1446
- /* @__PURE__ */ jsx39(Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
1488
+ /* @__PURE__ */ jsx40(Body, { className: "d-block np-option__body", children: description }),
1489
+ /* @__PURE__ */ jsx40(Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
1447
1490
  ] })
1448
1491
  ] })
1449
1492
  ] })
@@ -1456,9 +1499,9 @@ var ListItemMedia = ({
1456
1499
  preferAvatar
1457
1500
  }) => {
1458
1501
  if (icon) {
1459
- return /* @__PURE__ */ jsx39("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ jsx39(OptionMedia, { media, preferAvatar }) });
1502
+ return /* @__PURE__ */ jsx40("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ jsx40(OptionMedia, { media, preferAvatar }) });
1460
1503
  }
1461
- return /* @__PURE__ */ jsx39("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ jsx39(OptionMedia, { media, preferAvatar }) });
1504
+ return /* @__PURE__ */ jsx40("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ jsx40(OptionMedia, { media, preferAvatar }) });
1462
1505
  };
1463
1506
  var getListAction = (callToAction) => {
1464
1507
  if (callToAction) {
@@ -1474,10 +1517,10 @@ var ListRenderer_default = ListRenderer;
1474
1517
 
1475
1518
  // ../renderers/src/LoadingIndicatorRenderer.tsx
1476
1519
  import { Loader } from "@transferwise/components";
1477
- import { jsx as jsx40 } from "react/jsx-runtime";
1520
+ import { jsx as jsx41 } from "react/jsx-runtime";
1478
1521
  var LoadingIndicatorRenderer = {
1479
1522
  canRenderType: "loading-indicator",
1480
- render: ({ margin, size }) => /* @__PURE__ */ jsx40(
1523
+ render: ({ margin, size }) => /* @__PURE__ */ jsx41(
1481
1524
  Loader,
1482
1525
  {
1483
1526
  size,
@@ -1490,28 +1533,28 @@ var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
1490
1533
 
1491
1534
  // ../renderers/src/MarkdownRenderer.tsx
1492
1535
  import { Markdown as Markdown3 } from "@transferwise/components";
1493
- import { jsx as jsx41 } from "react/jsx-runtime";
1536
+ import { jsx as jsx42 } from "react/jsx-runtime";
1494
1537
  var MarkdownRenderer = {
1495
1538
  canRenderType: "markdown",
1496
- render: ({ content, align, margin }) => /* @__PURE__ */ jsx41("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx41(Markdown3, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
1539
+ render: ({ content, align, margin }) => /* @__PURE__ */ jsx42("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx42(Markdown3, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
1497
1540
  };
1498
1541
  var MarkdownRenderer_default = MarkdownRenderer;
1499
1542
 
1500
1543
  // ../renderers/src/ModalLayoutRenderer.tsx
1501
1544
  import { Button as Button4, Modal as Modal2 } from "@transferwise/components";
1502
1545
  import { useState as useState6 } from "react";
1503
- import { jsx as jsx42, jsxs as jsxs10 } from "react/jsx-runtime";
1546
+ import { jsx as jsx43, jsxs as jsxs10 } from "react/jsx-runtime";
1504
1547
  var ModalLayoutRenderer = {
1505
1548
  canRenderType: "modal-layout",
1506
- render: (props) => /* @__PURE__ */ jsx42(DFModal, __spreadValues({}, props))
1549
+ render: (props) => /* @__PURE__ */ jsx43(DFModal, __spreadValues({}, props))
1507
1550
  };
1508
1551
  var ModalLayoutRenderer_default = ModalLayoutRenderer;
1509
1552
  function DFModal({ content, margin, trigger }) {
1510
1553
  const [visible, setVisible] = useState6(false);
1511
1554
  const { children, title } = content;
1512
1555
  return /* @__PURE__ */ jsxs10("div", { className: getMargin(margin), children: [
1513
- /* @__PURE__ */ jsx42(Button4, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1514
- /* @__PURE__ */ jsx42(
1556
+ /* @__PURE__ */ jsx43(Button4, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
1557
+ /* @__PURE__ */ jsx43(
1515
1558
  Modal2,
1516
1559
  {
1517
1560
  scroll: "content",
@@ -1527,11 +1570,11 @@ function DFModal({ content, margin, trigger }) {
1527
1570
 
1528
1571
  // ../renderers/src/ModalRenderer.tsx
1529
1572
  import { Modal as Modal3 } from "@transferwise/components";
1530
- import { jsx as jsx43 } from "react/jsx-runtime";
1573
+ import { jsx as jsx44 } from "react/jsx-runtime";
1531
1574
  var ModalRenderer = {
1532
1575
  canRenderType: "modal",
1533
1576
  render: ({ title, children, open, onClose }) => {
1534
- return /* @__PURE__ */ jsx43(Modal3, { open, title, body: children, onClose });
1577
+ return /* @__PURE__ */ jsx44(Modal3, { open, title, body: children, onClose });
1535
1578
  }
1536
1579
  };
1537
1580
 
@@ -1551,10 +1594,10 @@ var multi_select_messages_default = defineMessages5({
1551
1594
  });
1552
1595
 
1553
1596
  // ../renderers/src/MultiSelectInputRenderer.tsx
1554
- import { jsx as jsx44 } from "react/jsx-runtime";
1597
+ import { jsx as jsx45 } from "react/jsx-runtime";
1555
1598
  var MultiSelectInputRenderer = {
1556
1599
  canRenderType: "input-multi-select",
1557
- render: (props) => /* @__PURE__ */ jsx44(MultiSelectInputRendererComponent, __spreadValues({}, props))
1600
+ render: (props) => /* @__PURE__ */ jsx45(MultiSelectInputRendererComponent, __spreadValues({}, props))
1558
1601
  };
1559
1602
  function MultiSelectInputRendererComponent(props) {
1560
1603
  const { formatMessage } = useIntl6();
@@ -1596,12 +1639,12 @@ function MultiSelectInputRendererComponent(props) {
1596
1639
  const contentProps = {
1597
1640
  title: option.title,
1598
1641
  description: option.description,
1599
- icon: /* @__PURE__ */ jsx44(OptionMedia, { media: option.media, preferAvatar: false })
1642
+ icon: /* @__PURE__ */ jsx45(OptionMedia, { media: option.media, preferAvatar: false })
1600
1643
  };
1601
- return /* @__PURE__ */ jsx44(SelectInputOptionContent, __spreadValues({}, contentProps));
1644
+ return /* @__PURE__ */ jsx45(SelectInputOptionContent, __spreadValues({}, contentProps));
1602
1645
  };
1603
1646
  const extraProps = { autoComplete };
1604
- return /* @__PURE__ */ jsx44(
1647
+ return /* @__PURE__ */ jsx45(
1605
1648
  FieldInput_default,
1606
1649
  {
1607
1650
  id,
@@ -1609,7 +1652,7 @@ function MultiSelectInputRendererComponent(props) {
1609
1652
  help,
1610
1653
  description,
1611
1654
  validation: validationState,
1612
- children: /* @__PURE__ */ jsx44(
1655
+ children: /* @__PURE__ */ jsx45(
1613
1656
  SelectInput,
1614
1657
  __spreadValues({
1615
1658
  id,
@@ -1654,7 +1697,7 @@ import { UploadInput } from "@transferwise/components";
1654
1697
  // ../renderers/src/components/UploadFieldInput.tsx
1655
1698
  import { InlineAlert as InlineAlert2 } from "@transferwise/components";
1656
1699
  import classNames4 from "classnames";
1657
- import { jsx as jsx45, jsxs as jsxs11 } from "react/jsx-runtime";
1700
+ import { jsx as jsx46, jsxs as jsxs11 } from "react/jsx-runtime";
1658
1701
  function UploadFieldInput({
1659
1702
  id,
1660
1703
  children,
@@ -1663,7 +1706,7 @@ function UploadFieldInput({
1663
1706
  help,
1664
1707
  validation
1665
1708
  }) {
1666
- const labelContent = label && help ? /* @__PURE__ */ jsx45(LabelContentWithHelp, { text: label, help }) : label;
1709
+ const labelContent = label && help ? /* @__PURE__ */ jsx46(LabelContentWithHelp, { text: label, help }) : label;
1667
1710
  const descriptionId = description ? `${id}-description` : void 0;
1668
1711
  return /* @__PURE__ */ jsxs11(
1669
1712
  "div",
@@ -1672,9 +1715,9 @@ function UploadFieldInput({
1672
1715
  "has-error": (validation == null ? void 0 : validation.status) === "invalid"
1673
1716
  }),
1674
1717
  children: [
1675
- /* @__PURE__ */ jsx45("label", { htmlFor: id, className: "control-label", children: labelContent }),
1718
+ /* @__PURE__ */ jsx46("label", { htmlFor: id, className: "control-label", children: labelContent }),
1676
1719
  children,
1677
- (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx45(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
1720
+ (validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx46(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
1678
1721
  ]
1679
1722
  }
1680
1723
  );
@@ -1709,7 +1752,7 @@ var getSizeLimit = (maxSize) => {
1709
1752
  };
1710
1753
 
1711
1754
  // ../renderers/src/MultiUploadInputRenderer.tsx
1712
- import { jsx as jsx46 } from "react/jsx-runtime";
1755
+ import { jsx as jsx47 } from "react/jsx-runtime";
1713
1756
  var MultiUploadInputRenderer = {
1714
1757
  canRenderType: "input-upload-multi",
1715
1758
  render: (props) => {
@@ -1734,7 +1777,7 @@ var MultiUploadInputRenderer = {
1734
1777
  };
1735
1778
  const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
1736
1779
  const descriptionId = description ? `${id}-description` : void 0;
1737
- return /* @__PURE__ */ jsx46(
1780
+ return /* @__PURE__ */ jsx47(
1738
1781
  UploadFieldInput_default,
1739
1782
  {
1740
1783
  id,
@@ -1742,7 +1785,7 @@ var MultiUploadInputRenderer = {
1742
1785
  description,
1743
1786
  validation: validationState,
1744
1787
  help,
1745
- children: /* @__PURE__ */ jsx46(
1788
+ children: /* @__PURE__ */ jsx47(
1746
1789
  UploadInput,
1747
1790
  {
1748
1791
  id,
@@ -1766,7 +1809,7 @@ var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
1766
1809
 
1767
1810
  // ../renderers/src/NumberInputRenderer.tsx
1768
1811
  import { Input as Input2, InputGroup as InputGroup2 } from "@transferwise/components";
1769
- import { jsx as jsx47 } from "react/jsx-runtime";
1812
+ import { jsx as jsx48 } from "react/jsx-runtime";
1770
1813
  var NumberInputRenderer = {
1771
1814
  canRenderType: "input-number",
1772
1815
  render: (props) => {
@@ -1780,7 +1823,7 @@ var NumberInputRenderer = {
1780
1823
  "maximum",
1781
1824
  "minimum"
1782
1825
  );
1783
- return /* @__PURE__ */ jsx47(
1826
+ return /* @__PURE__ */ jsx48(
1784
1827
  FieldInput_default,
1785
1828
  {
1786
1829
  id,
@@ -1788,7 +1831,7 @@ var NumberInputRenderer = {
1788
1831
  description,
1789
1832
  validation: validationState,
1790
1833
  help,
1791
- children: /* @__PURE__ */ jsx47(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx47(
1834
+ children: /* @__PURE__ */ jsx48(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx48(
1792
1835
  Input2,
1793
1836
  __spreadValues({
1794
1837
  id,
@@ -1840,17 +1883,17 @@ var paragraph_messages_default = defineMessages6({
1840
1883
  });
1841
1884
 
1842
1885
  // ../renderers/src/ParagraphRenderer.tsx
1843
- import { jsx as jsx48, jsxs as jsxs12 } from "react/jsx-runtime";
1886
+ import { jsx as jsx49, jsxs as jsxs12 } from "react/jsx-runtime";
1844
1887
  var ParagraphRenderer = {
1845
1888
  canRenderType: "paragraph",
1846
- render: (props) => /* @__PURE__ */ jsx48(Paragraph, __spreadValues({}, props))
1889
+ render: (props) => /* @__PURE__ */ jsx49(Paragraph, __spreadValues({}, props))
1847
1890
  };
1848
1891
  function Paragraph({ align, control, margin, text }) {
1849
1892
  const className = getTextAlignmentAndMargin({ align, margin });
1850
- return control === "copyable" ? /* @__PURE__ */ jsx48(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx48(StandardParagraph, { className, text });
1893
+ return control === "copyable" ? /* @__PURE__ */ jsx49(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx49(StandardParagraph, { className, text });
1851
1894
  }
1852
1895
  function StandardParagraph({ text, className }) {
1853
- return /* @__PURE__ */ jsx48("p", { className: `np-text-body-large ${className}`, children: text });
1896
+ return /* @__PURE__ */ jsx49("p", { className: `np-text-body-large ${className}`, children: text });
1854
1897
  }
1855
1898
  function CopyableParagraph({
1856
1899
  text,
@@ -1865,7 +1908,7 @@ function CopyableParagraph({
1865
1908
  };
1866
1909
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
1867
1910
  return /* @__PURE__ */ jsxs12("div", { className, children: [
1868
- /* @__PURE__ */ jsx48(
1911
+ /* @__PURE__ */ jsx49(
1869
1912
  Input3,
1870
1913
  {
1871
1914
  type: "text",
@@ -1874,7 +1917,7 @@ function CopyableParagraph({
1874
1917
  className: classNames5("text-ellipsis", inputAlignmentClasses)
1875
1918
  }
1876
1919
  ),
1877
- /* @__PURE__ */ jsx48(Button5, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
1920
+ /* @__PURE__ */ jsx49(Button5, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
1878
1921
  ] });
1879
1922
  }
1880
1923
  var ParagraphRenderer_default = ParagraphRenderer;
@@ -1912,10 +1955,10 @@ var repeatable_messages_default = defineMessages7({
1912
1955
  });
1913
1956
 
1914
1957
  // ../renderers/src/RepeatableRenderer.tsx
1915
- import { Fragment as Fragment4, jsx as jsx49, jsxs as jsxs13 } from "react/jsx-runtime";
1958
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs13 } from "react/jsx-runtime";
1916
1959
  var RepeatableRenderer = {
1917
1960
  canRenderType: "repeatable",
1918
- render: (props) => /* @__PURE__ */ jsx49(Repeatable, __spreadValues({}, props))
1961
+ render: (props) => /* @__PURE__ */ jsx50(Repeatable, __spreadValues({}, props))
1919
1962
  };
1920
1963
  function Repeatable(props) {
1921
1964
  const {
@@ -1955,8 +1998,8 @@ function Repeatable(props) {
1955
1998
  setOpenModalType(null);
1956
1999
  };
1957
2000
  return /* @__PURE__ */ jsxs13(Fragment4, { children: [
1958
- title && /* @__PURE__ */ jsx49(Header6, { title }),
1959
- description && /* @__PURE__ */ jsx49("p", { children: description }),
2001
+ title && /* @__PURE__ */ jsx50(Header6, { title }),
2002
+ description && /* @__PURE__ */ jsx50("p", { children: description }),
1960
2003
  /* @__PURE__ */ jsxs13(
1961
2004
  "div",
1962
2005
  {
@@ -1964,30 +2007,30 @@ function Repeatable(props) {
1964
2007
  "has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
1965
2008
  }),
1966
2009
  children: [
1967
- items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx49(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
1968
- /* @__PURE__ */ jsx49(
2010
+ items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx50(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
2011
+ /* @__PURE__ */ jsx50(
1969
2012
  NavigationOption2,
1970
2013
  {
1971
- media: /* @__PURE__ */ jsx49(Plus, {}),
2014
+ media: /* @__PURE__ */ jsx50(Plus, {}),
1972
2015
  title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
1973
2016
  showMediaAtAllSizes: true,
1974
2017
  onClick: () => onAddItem()
1975
2018
  }
1976
2019
  ),
1977
- (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx49(InlineAlert3, { type: "negative", children: validationState.message })
2020
+ (validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx50(InlineAlert3, { type: "negative", children: validationState.message })
1978
2021
  ]
1979
2022
  }
1980
2023
  ),
1981
- /* @__PURE__ */ jsx49(
2024
+ /* @__PURE__ */ jsx50(
1982
2025
  Modal4,
1983
2026
  {
1984
2027
  open: openModalType !== null,
1985
2028
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
1986
2029
  body: /* @__PURE__ */ jsxs13(Fragment4, { children: [
1987
- /* @__PURE__ */ jsx49("div", { className: "m-b-2", children: editableItem }),
2030
+ /* @__PURE__ */ jsx50("div", { className: "m-b-2", children: editableItem }),
1988
2031
  /* @__PURE__ */ jsxs13("div", { children: [
1989
- /* @__PURE__ */ jsx49(Button6, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
1990
- /* @__PURE__ */ jsx49(
2032
+ /* @__PURE__ */ jsx50(Button6, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
2033
+ /* @__PURE__ */ jsx50(
1991
2034
  Button6,
1992
2035
  {
1993
2036
  v2: true,
@@ -2009,10 +2052,10 @@ function ItemSummaryOption({
2009
2052
  item,
2010
2053
  onClick
2011
2054
  }) {
2012
- return /* @__PURE__ */ jsx49(
2055
+ return /* @__PURE__ */ jsx50(
2013
2056
  NavigationOption2,
2014
2057
  {
2015
- media: /* @__PURE__ */ jsx49(OptionMedia, { media: item.media, preferAvatar: false }),
2058
+ media: /* @__PURE__ */ jsx50(OptionMedia, { media: item.media, preferAvatar: false }),
2016
2059
  title: item.title,
2017
2060
  content: item.description,
2018
2061
  showMediaAtAllSizes: true,
@@ -2027,8 +2070,8 @@ import { DefinitionList } from "@transferwise/components";
2027
2070
 
2028
2071
  // ../renderers/src/components/Header.tsx
2029
2072
  import { Header as DSHeader } from "@transferwise/components";
2030
- import { jsx as jsx50 } from "react/jsx-runtime";
2031
- var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ jsx50(DSHeader, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
2073
+ import { jsx as jsx51 } from "react/jsx-runtime";
2074
+ var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ jsx51(DSHeader, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
2032
2075
  var getHeaderAction = (callToAction) => {
2033
2076
  if (!callToAction) {
2034
2077
  return void 0;
@@ -2050,14 +2093,14 @@ var getHeaderAction = (callToAction) => {
2050
2093
  };
2051
2094
 
2052
2095
  // ../renderers/src/ReviewRenderer.tsx
2053
- import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs14 } from "react/jsx-runtime";
2096
+ import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs14 } from "react/jsx-runtime";
2054
2097
  var ReviewRenderer = {
2055
2098
  canRenderType: "review",
2056
2099
  render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
2057
2100
  const orientation = mapControlToDefinitionListLayout(control);
2058
2101
  return /* @__PURE__ */ jsxs14("div", { className: getMargin(margin), children: [
2059
- /* @__PURE__ */ jsx51(Header7, { title, callToAction }),
2060
- /* @__PURE__ */ jsx51("div", { className: margin, children: /* @__PURE__ */ jsx51(
2102
+ /* @__PURE__ */ jsx52(Header7, { title, callToAction }),
2103
+ /* @__PURE__ */ jsx52("div", { className: margin, children: /* @__PURE__ */ jsx52(
2061
2104
  DefinitionList,
2062
2105
  {
2063
2106
  layout: orientation,
@@ -2098,7 +2141,7 @@ var getFieldLabel = (label, help, onClick) => {
2098
2141
  return /* @__PURE__ */ jsxs14(Fragment5, { children: [
2099
2142
  label,
2100
2143
  " ",
2101
- /* @__PURE__ */ jsx51(Help_default, { help, onClick })
2144
+ /* @__PURE__ */ jsx52(Help_default, { help, onClick })
2102
2145
  ] });
2103
2146
  }
2104
2147
  return label;
@@ -2144,18 +2187,18 @@ var generic_error_messages_default = defineMessages9({
2144
2187
 
2145
2188
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
2146
2189
  import { Link } from "@transferwise/components";
2147
- import { jsx as jsx52, jsxs as jsxs15 } from "react/jsx-runtime";
2190
+ import { jsx as jsx53, jsxs as jsxs15 } from "react/jsx-runtime";
2148
2191
  function ErrorResult({ state }) {
2149
2192
  const intl = useIntl9();
2150
2193
  return /* @__PURE__ */ jsxs15("p", { className: "m-t-2", children: [
2151
2194
  intl.formatMessage(generic_error_messages_default.genericError),
2152
2195
  "\xA0",
2153
- /* @__PURE__ */ jsx52(Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
2196
+ /* @__PURE__ */ jsx53(Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
2154
2197
  ] });
2155
2198
  }
2156
2199
 
2157
2200
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
2158
- import { Fragment as Fragment6, jsx as jsx53, jsxs as jsxs16 } from "react/jsx-runtime";
2201
+ import { Fragment as Fragment6, jsx as jsx54, jsxs as jsxs16 } from "react/jsx-runtime";
2159
2202
  function BlockSearchRendererComponent({
2160
2203
  id,
2161
2204
  isLoading,
@@ -2169,7 +2212,7 @@ function BlockSearchRendererComponent({
2169
2212
  const [hasSearched, setHasSearched] = useState9(false);
2170
2213
  const { formatMessage } = useIntl10();
2171
2214
  return /* @__PURE__ */ jsxs16("div", { className: getMargin(margin), children: [
2172
- /* @__PURE__ */ jsx53(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx53(
2215
+ /* @__PURE__ */ jsx54(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx54(
2173
2216
  Input4,
2174
2217
  {
2175
2218
  id,
@@ -2186,7 +2229,7 @@ function BlockSearchRendererComponent({
2186
2229
  }
2187
2230
  }
2188
2231
  ) }),
2189
- isLoading ? /* @__PURE__ */ jsx53(Fragment6, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx53(SearchResultContent, { state, trackEvent })
2232
+ isLoading ? /* @__PURE__ */ jsx54(Fragment6, { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx54(SearchResultContent, { state, trackEvent })
2190
2233
  ] });
2191
2234
  }
2192
2235
  function SearchResultContent({
@@ -2195,31 +2238,31 @@ function SearchResultContent({
2195
2238
  }) {
2196
2239
  switch (state.type) {
2197
2240
  case "error":
2198
- return /* @__PURE__ */ jsx53(ErrorResult, { state });
2241
+ return /* @__PURE__ */ jsx54(ErrorResult, { state });
2199
2242
  case "results":
2200
- return /* @__PURE__ */ jsx53(SearchResults, { state, trackEvent });
2243
+ return /* @__PURE__ */ jsx54(SearchResults, { state, trackEvent });
2201
2244
  case "noResults":
2202
- return /* @__PURE__ */ jsx53(EmptySearchResult, { state });
2245
+ return /* @__PURE__ */ jsx54(EmptySearchResult, { state });
2203
2246
  case "pending":
2204
2247
  default:
2205
2248
  return null;
2206
2249
  }
2207
2250
  }
2208
2251
  function EmptySearchResult({ state }) {
2209
- return /* @__PURE__ */ jsx53(Markdown4, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2252
+ return /* @__PURE__ */ jsx54(Markdown4, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
2210
2253
  }
2211
2254
  function SearchResults({
2212
2255
  state,
2213
2256
  trackEvent
2214
2257
  }) {
2215
- return /* @__PURE__ */ jsx53(NavigationOptionsList2, { children: state.results.map((result) => {
2258
+ return /* @__PURE__ */ jsx54(NavigationOptionsList2, { children: state.results.map((result) => {
2216
2259
  const { media } = result;
2217
- return /* @__PURE__ */ jsx53(
2260
+ return /* @__PURE__ */ jsx54(
2218
2261
  NavigationOption3,
2219
2262
  {
2220
2263
  title: result.title,
2221
2264
  content: result.description,
2222
- media: media ? /* @__PURE__ */ jsx53(OptionMedia, { media, preferAvatar: false }) : void 0,
2265
+ media: media ? /* @__PURE__ */ jsx54(OptionMedia, { media, preferAvatar: false }) : void 0,
2223
2266
  showMediaCircle: false,
2224
2267
  showMediaAtAllSizes: true,
2225
2268
  onClick: () => {
@@ -2240,7 +2283,7 @@ import { Markdown as Markdown5, Typeahead } from "@transferwise/components";
2240
2283
  import { Search } from "@transferwise/icons";
2241
2284
  import { useState as useState10 } from "react";
2242
2285
  import { useIntl as useIntl11 } from "react-intl";
2243
- import { jsx as jsx54 } from "react/jsx-runtime";
2286
+ import { jsx as jsx55 } from "react/jsx-runtime";
2244
2287
  function InlineSearchRenderer({
2245
2288
  id,
2246
2289
  isLoading,
@@ -2252,7 +2295,7 @@ function InlineSearchRenderer({
2252
2295
  }) {
2253
2296
  const [hasSearched, setHasSearched] = useState10(false);
2254
2297
  const intl = useIntl11();
2255
- return /* @__PURE__ */ jsx54("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx54(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx54(
2298
+ return /* @__PURE__ */ jsx55("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx55(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx55(
2256
2299
  Typeahead,
2257
2300
  {
2258
2301
  id: "typeahead-input-id",
@@ -2260,10 +2303,10 @@ function InlineSearchRenderer({
2260
2303
  name: "typeahead-input-name",
2261
2304
  size: "md",
2262
2305
  maxHeight: 100,
2263
- footer: /* @__PURE__ */ jsx54(TypeaheadFooter, { state, isLoading }),
2306
+ footer: /* @__PURE__ */ jsx55(TypeaheadFooter, { state, isLoading }),
2264
2307
  multiple: false,
2265
2308
  clearable: false,
2266
- addon: /* @__PURE__ */ jsx54(Search, { size: 24 }),
2309
+ addon: /* @__PURE__ */ jsx55(Search, { size: 24 }),
2267
2310
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
2268
2311
  minQueryLength: 1,
2269
2312
  onChange: (values) => {
@@ -2300,23 +2343,23 @@ function mapResultToTypeaheadOption(result) {
2300
2343
  function TypeaheadFooter({ state, isLoading }) {
2301
2344
  const { formatMessage } = useIntl11();
2302
2345
  if (state.type === "noResults") {
2303
- return /* @__PURE__ */ jsx54(Markdown5, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2346
+ return /* @__PURE__ */ jsx55(Markdown5, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
2304
2347
  }
2305
2348
  if (state.type === "error") {
2306
- return /* @__PURE__ */ jsx54("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx54(ErrorResult, { state }) });
2349
+ return /* @__PURE__ */ jsx55("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx55(ErrorResult, { state }) });
2307
2350
  }
2308
2351
  if (state.type === "pending" || isLoading) {
2309
- return /* @__PURE__ */ jsx54("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2352
+ return /* @__PURE__ */ jsx55("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
2310
2353
  }
2311
2354
  return null;
2312
2355
  }
2313
2356
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
2314
2357
 
2315
2358
  // ../renderers/src/SearchRenderer/SearchRenderer.tsx
2316
- import { jsx as jsx55 } from "react/jsx-runtime";
2359
+ import { jsx as jsx56 } from "react/jsx-runtime";
2317
2360
  var SearchRenderer = {
2318
2361
  canRenderType: "search",
2319
- render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx55(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx55(BlockSearchRendererComponent_default, __spreadValues({}, props))
2362
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx56(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx56(BlockSearchRendererComponent_default, __spreadValues({}, props))
2320
2363
  };
2321
2364
  var SearchRenderer_default = SearchRenderer;
2322
2365
 
@@ -2345,12 +2388,12 @@ var getHeaderAction2 = (callToAction) => {
2345
2388
  };
2346
2389
 
2347
2390
  // ../renderers/src/SectionRenderer.tsx
2348
- import { jsx as jsx56, jsxs as jsxs17 } from "react/jsx-runtime";
2391
+ import { jsx as jsx57, jsxs as jsxs17 } from "react/jsx-runtime";
2349
2392
  var SectionRenderer = {
2350
2393
  canRenderType: "section",
2351
2394
  render: ({ children, callToAction, margin, title }) => {
2352
2395
  return /* @__PURE__ */ jsxs17("section", { className: getMargin(margin), children: [
2353
- (title || callToAction) && /* @__PURE__ */ jsx56(Header8, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
2396
+ (title || callToAction) && /* @__PURE__ */ jsx57(Header8, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
2354
2397
  children
2355
2398
  ] });
2356
2399
  }
@@ -2359,7 +2402,7 @@ var SectionRenderer_default = SectionRenderer;
2359
2402
 
2360
2403
  // ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
2361
2404
  import { RadioGroup } from "@transferwise/components";
2362
- import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs18 } from "react/jsx-runtime";
2405
+ import { Fragment as Fragment7, jsx as jsx58, jsxs as jsxs18 } from "react/jsx-runtime";
2363
2406
  function RadioInputRendererComponent(props) {
2364
2407
  const {
2365
2408
  id,
@@ -2374,7 +2417,7 @@ function RadioInputRendererComponent(props) {
2374
2417
  onSelect
2375
2418
  } = props;
2376
2419
  return /* @__PURE__ */ jsxs18(Fragment7, { children: [
2377
- /* @__PURE__ */ jsx57(
2420
+ /* @__PURE__ */ jsx58(
2378
2421
  FieldInput_default,
2379
2422
  {
2380
2423
  id,
@@ -2382,7 +2425,7 @@ function RadioInputRendererComponent(props) {
2382
2425
  help,
2383
2426
  description,
2384
2427
  validation: validationState,
2385
- children: /* @__PURE__ */ jsx57("span", { children: /* @__PURE__ */ jsx57(
2428
+ children: /* @__PURE__ */ jsx58("span", { children: /* @__PURE__ */ jsx58(
2386
2429
  RadioGroup,
2387
2430
  {
2388
2431
  name: id,
@@ -2391,7 +2434,7 @@ function RadioInputRendererComponent(props) {
2391
2434
  value: index,
2392
2435
  secondary: option.description,
2393
2436
  disabled: option.disabled || disabled,
2394
- avatar: /* @__PURE__ */ jsx57(OptionMedia, { media: option.media, preferAvatar: false })
2437
+ avatar: /* @__PURE__ */ jsx58(OptionMedia, { media: option.media, preferAvatar: false })
2395
2438
  })),
2396
2439
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
2397
2440
  onChange: onSelect
@@ -2407,7 +2450,7 @@ function RadioInputRendererComponent(props) {
2407
2450
  // ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
2408
2451
  import { Tabs } from "@transferwise/components";
2409
2452
  import { useEffect as useEffect5 } from "react";
2410
- import { Fragment as Fragment8, jsx as jsx58, jsxs as jsxs19 } from "react/jsx-runtime";
2453
+ import { Fragment as Fragment8, jsx as jsx59, jsxs as jsxs19 } from "react/jsx-runtime";
2411
2454
  function TabInputRendererComponent(props) {
2412
2455
  const {
2413
2456
  id,
@@ -2427,7 +2470,7 @@ function TabInputRendererComponent(props) {
2427
2470
  }
2428
2471
  }, [selectedIndex, onSelect, options.length]);
2429
2472
  return /* @__PURE__ */ jsxs19(Fragment8, { children: [
2430
- /* @__PURE__ */ jsx58(
2473
+ /* @__PURE__ */ jsx59(
2431
2474
  FieldInput_default,
2432
2475
  {
2433
2476
  id,
@@ -2435,7 +2478,7 @@ function TabInputRendererComponent(props) {
2435
2478
  help,
2436
2479
  description,
2437
2480
  validation: validationState,
2438
- children: /* @__PURE__ */ jsx58(
2481
+ children: /* @__PURE__ */ jsx59(
2439
2482
  Tabs,
2440
2483
  {
2441
2484
  name: id,
@@ -2444,7 +2487,7 @@ function TabInputRendererComponent(props) {
2444
2487
  title: option.title,
2445
2488
  // if we pass null, we get some props-types console errors
2446
2489
  // eslint-disable-next-line react/jsx-no-useless-fragment
2447
- content: /* @__PURE__ */ jsx58(Fragment8, {}),
2490
+ content: /* @__PURE__ */ jsx59(Fragment8, {}),
2448
2491
  disabled: option.disabled || disabled
2449
2492
  })),
2450
2493
  onTabSelect: onSelect
@@ -2459,7 +2502,7 @@ var isValidIndex = (index, options) => index !== null && index >= 0 && index < o
2459
2502
 
2460
2503
  // ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
2461
2504
  import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
2462
- import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs20 } from "react/jsx-runtime";
2505
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs20 } from "react/jsx-runtime";
2463
2506
  function SelectInputRendererComponent(props) {
2464
2507
  const {
2465
2508
  id,
@@ -2499,13 +2542,13 @@ function SelectInputRendererComponent(props) {
2499
2542
  } : {
2500
2543
  title: option.title,
2501
2544
  description: option.description,
2502
- icon: /* @__PURE__ */ jsx59(OptionMedia, { media: option.media, preferAvatar: false })
2545
+ icon: /* @__PURE__ */ jsx60(OptionMedia, { media: option.media, preferAvatar: false })
2503
2546
  };
2504
- return /* @__PURE__ */ jsx59(SelectInputOptionContent2, __spreadValues({}, contentProps));
2547
+ return /* @__PURE__ */ jsx60(SelectInputOptionContent2, __spreadValues({}, contentProps));
2505
2548
  };
2506
2549
  const extraProps = { autoComplete };
2507
2550
  return /* @__PURE__ */ jsxs20(Fragment9, { children: [
2508
- /* @__PURE__ */ jsx59(
2551
+ /* @__PURE__ */ jsx60(
2509
2552
  FieldInput_default,
2510
2553
  {
2511
2554
  id,
@@ -2513,7 +2556,7 @@ function SelectInputRendererComponent(props) {
2513
2556
  help,
2514
2557
  description,
2515
2558
  validation: validationState,
2516
- children: /* @__PURE__ */ jsx59(
2559
+ children: /* @__PURE__ */ jsx60(
2517
2560
  SelectInput2,
2518
2561
  __spreadValues({
2519
2562
  name: id,
@@ -2536,7 +2579,7 @@ function SelectInputRendererComponent(props) {
2536
2579
  // ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
2537
2580
  import { useEffect as useEffect6 } from "react";
2538
2581
  import { SegmentedControl } from "@transferwise/components";
2539
- import { Fragment as Fragment10, jsx as jsx60, jsxs as jsxs21 } from "react/jsx-runtime";
2582
+ import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs21 } from "react/jsx-runtime";
2540
2583
  function SegmentedInputRendererComponent(props) {
2541
2584
  const {
2542
2585
  id,
@@ -2555,7 +2598,7 @@ function SegmentedInputRendererComponent(props) {
2555
2598
  }
2556
2599
  }, [selectedIndex, onSelect, options.length]);
2557
2600
  return /* @__PURE__ */ jsxs21(Fragment10, { children: [
2558
- /* @__PURE__ */ jsx60(
2601
+ /* @__PURE__ */ jsx61(
2559
2602
  FieldInput_default,
2560
2603
  {
2561
2604
  id,
@@ -2563,7 +2606,7 @@ function SegmentedInputRendererComponent(props) {
2563
2606
  help,
2564
2607
  description,
2565
2608
  validation: validationState,
2566
- children: /* @__PURE__ */ jsx60(
2609
+ children: /* @__PURE__ */ jsx61(
2567
2610
  SegmentedControl,
2568
2611
  {
2569
2612
  name: `${id}-segmented-control`,
@@ -2580,26 +2623,26 @@ function SegmentedInputRendererComponent(props) {
2580
2623
  )
2581
2624
  }
2582
2625
  ),
2583
- /* @__PURE__ */ jsx60("div", { id: `${id}-children`, children })
2626
+ /* @__PURE__ */ jsx61("div", { id: `${id}-children`, children })
2584
2627
  ] });
2585
2628
  }
2586
2629
  var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
2587
2630
 
2588
2631
  // ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
2589
- import { jsx as jsx61 } from "react/jsx-runtime";
2632
+ import { jsx as jsx62 } from "react/jsx-runtime";
2590
2633
  var SelectInputRenderer = {
2591
2634
  canRenderType: "input-select",
2592
2635
  render: (props) => {
2593
2636
  switch (props.control) {
2594
2637
  case "radio":
2595
- return /* @__PURE__ */ jsx61(RadioInputRendererComponent, __spreadValues({}, props));
2638
+ return /* @__PURE__ */ jsx62(RadioInputRendererComponent, __spreadValues({}, props));
2596
2639
  case "tab":
2597
- return props.options.length > 3 ? /* @__PURE__ */ jsx61(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx61(TabInputRendererComponent, __spreadValues({}, props));
2640
+ return props.options.length > 3 ? /* @__PURE__ */ jsx62(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx62(TabInputRendererComponent, __spreadValues({}, props));
2598
2641
  case "segmented":
2599
- return props.options.length > 3 ? /* @__PURE__ */ jsx61(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx61(SegmentedInputRendererComponent, __spreadValues({}, props));
2642
+ return props.options.length > 3 ? /* @__PURE__ */ jsx62(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx62(SegmentedInputRendererComponent, __spreadValues({}, props));
2600
2643
  case "select":
2601
2644
  default:
2602
- return /* @__PURE__ */ jsx61(SelectInputRendererComponent, __spreadValues({}, props));
2645
+ return /* @__PURE__ */ jsx62(SelectInputRendererComponent, __spreadValues({}, props));
2603
2646
  }
2604
2647
  }
2605
2648
  };
@@ -2607,17 +2650,17 @@ var SelectInputRenderer_default = SelectInputRenderer;
2607
2650
 
2608
2651
  // ../renderers/src/StatusListRenderer.tsx
2609
2652
  import { Header as Header9, Summary } from "@transferwise/components";
2610
- import { jsx as jsx62, jsxs as jsxs22 } from "react/jsx-runtime";
2653
+ import { jsx as jsx63, jsxs as jsxs22 } from "react/jsx-runtime";
2611
2654
  var StatusListRenderer = {
2612
2655
  canRenderType: "status-list",
2613
2656
  render: ({ margin, items, title }) => /* @__PURE__ */ jsxs22("div", { className: getMargin(margin), children: [
2614
- title ? /* @__PURE__ */ jsx62(Header9, { title, className: "m-b-2" }) : null,
2615
- items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx62(
2657
+ title ? /* @__PURE__ */ jsx63(Header9, { title, className: "m-b-2" }) : null,
2658
+ items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx63(
2616
2659
  Summary,
2617
2660
  {
2618
2661
  title: itemTitle,
2619
2662
  description,
2620
- icon: icon && "name" in icon ? /* @__PURE__ */ jsx62(DynamicIcon_default, { name: icon.name }) : null,
2663
+ icon: icon && "name" in icon ? /* @__PURE__ */ jsx63(DynamicIcon_default, { name: icon.name }) : null,
2621
2664
  status: mapStatus(status),
2622
2665
  action: getSummaryAction(callToAction)
2623
2666
  },
@@ -2671,22 +2714,22 @@ var useCustomTheme = (theme, trackEvent) => {
2671
2714
  // ../renderers/src/step/topbar/BackButton.tsx
2672
2715
  import { IconButton } from "@transferwise/components";
2673
2716
  import { ArrowLeft } from "@transferwise/icons";
2674
- import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
2717
+ import { jsx as jsx64, jsxs as jsxs23 } from "react/jsx-runtime";
2675
2718
  function BackButton({ title, onClick }) {
2676
2719
  return /* @__PURE__ */ jsxs23(IconButton, { priority: "tertiary", onClick, children: [
2677
- /* @__PURE__ */ jsx63("span", { className: "sr-only", children: title }),
2678
- /* @__PURE__ */ jsx63(ArrowLeft, {})
2720
+ /* @__PURE__ */ jsx64("span", { className: "sr-only", children: title }),
2721
+ /* @__PURE__ */ jsx64(ArrowLeft, {})
2679
2722
  ] });
2680
2723
  }
2681
2724
 
2682
2725
  // ../renderers/src/step/topbar/Toolbar.tsx
2683
2726
  import { Button as Button7, IconButton as IconButton2 } from "@transferwise/components";
2684
- import { jsx as jsx64, jsxs as jsxs24 } from "react/jsx-runtime";
2727
+ import { jsx as jsx65, jsxs as jsxs24 } from "react/jsx-runtime";
2685
2728
  var Toolbar = ({ items }) => {
2686
- return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx64("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx64(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
2729
+ return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx65("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx65(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
2687
2730
  };
2688
2731
  function ToolbarButton(props) {
2689
- return prefersMedia(props.control) ? /* @__PURE__ */ jsx64(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx64(TextToolbarButton, __spreadValues({}, props));
2732
+ return prefersMedia(props.control) ? /* @__PURE__ */ jsx65(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx65(TextToolbarButton, __spreadValues({}, props));
2690
2733
  }
2691
2734
  function MediaToolbarButton(props) {
2692
2735
  var _a;
@@ -2703,7 +2746,7 @@ function MediaToolbarButton(props) {
2703
2746
  type,
2704
2747
  onClick,
2705
2748
  children: [
2706
- accessibilityDescription ? /* @__PURE__ */ jsx64("span", { className: "sr-only", children: accessibilityDescription }) : null,
2749
+ accessibilityDescription ? /* @__PURE__ */ jsx65("span", { className: "sr-only", children: accessibilityDescription }) : null,
2707
2750
  media ? (_a = getAddonStart(media)) == null ? void 0 : _a.value : null
2708
2751
  ]
2709
2752
  }
@@ -2714,7 +2757,7 @@ function TextToolbarButton(props) {
2714
2757
  const addonStart = media ? getAddonStart(media) : void 0;
2715
2758
  const priority = getPriority2(control);
2716
2759
  const sentiment = getSentiment(context);
2717
- return /* @__PURE__ */ jsx64(
2760
+ return /* @__PURE__ */ jsx65(
2718
2761
  Button7,
2719
2762
  {
2720
2763
  v2: true,
@@ -2731,17 +2774,18 @@ function TextToolbarButton(props) {
2731
2774
  }
2732
2775
  var getAddonStart = (media) => {
2733
2776
  if (media.type === "avatar") {
2734
- if (media.content.length === 1) {
2735
- if (media.content[0].type === "text") {
2736
- return { type: "icon", value: media.content[0].text };
2737
- }
2738
- if (media.content[0].type === "uri" && isValidIconUrn(media.content[0].uri)) {
2739
- const { asset, icon } = resolveUri(media.content[0].uri, 24);
2740
- return { type: "icon", value: icon != null ? icon : asset };
2741
- }
2777
+ if (media.content.length > 0 && media.content[0].type === "uri" && isValidIconUrn(media.content[0].uri)) {
2778
+ return {
2779
+ type: "icon",
2780
+ value: getInlineMedia({
2781
+ type: "image",
2782
+ uri: media.content[0].uri
2783
+ })
2784
+ };
2742
2785
  }
2743
2786
  return void 0;
2744
2787
  }
2788
+ return { type: "icon", value: getInlineMedia(media) };
2745
2789
  };
2746
2790
  var getPriority2 = (control) => isKnownControl(control) ? control : "secondary";
2747
2791
  var prefersMedia = (control) => {
@@ -2758,16 +2802,16 @@ var getIconButtonPriority = (control) => {
2758
2802
  };
2759
2803
 
2760
2804
  // ../renderers/src/step/topbar/TopBar.tsx
2761
- import { jsx as jsx65, jsxs as jsxs25 } from "react/jsx-runtime";
2805
+ import { jsx as jsx66, jsxs as jsxs25 } from "react/jsx-runtime";
2762
2806
  function TopBar({ back, toolbar }) {
2763
2807
  return back || toolbar ? /* @__PURE__ */ jsxs25("div", { className: "d-flex m-b-2", children: [
2764
- back ? /* @__PURE__ */ jsx65(BackButton, __spreadValues({}, back)) : null,
2765
- toolbar ? /* @__PURE__ */ jsx65(Toolbar, __spreadValues({}, toolbar)) : null
2808
+ back ? /* @__PURE__ */ jsx66(BackButton, __spreadValues({}, back)) : null,
2809
+ toolbar ? /* @__PURE__ */ jsx66(Toolbar, __spreadValues({}, toolbar)) : null
2766
2810
  ] }) : null;
2767
2811
  }
2768
2812
 
2769
2813
  // ../renderers/src/step/SplashCelebrationStepRenderer.tsx
2770
- import { jsx as jsx66, jsxs as jsxs26 } from "react/jsx-runtime";
2814
+ import { jsx as jsx67, jsxs as jsxs26 } from "react/jsx-runtime";
2771
2815
  var SplashCelebrationStepRenderer = {
2772
2816
  canRenderType: "step",
2773
2817
  canRender: ({ control }) => control === "splash-celebration",
@@ -2777,13 +2821,13 @@ function SplashCelebrationStepRendererComponent(props) {
2777
2821
  const { back, toolbar, children, trackEvent } = props;
2778
2822
  useCustomTheme("forest-green", trackEvent);
2779
2823
  return /* @__PURE__ */ jsxs26("div", { className: "splash-screen m-t-5", children: [
2780
- /* @__PURE__ */ jsx66(TopBar, { back, toolbar }),
2824
+ /* @__PURE__ */ jsx67(TopBar, { back, toolbar }),
2781
2825
  children
2782
2826
  ] });
2783
2827
  }
2784
2828
 
2785
2829
  // ../renderers/src/step/SplashStepRenderer.tsx
2786
- import { jsx as jsx67, jsxs as jsxs27 } from "react/jsx-runtime";
2830
+ import { jsx as jsx68, jsxs as jsxs27 } from "react/jsx-runtime";
2787
2831
  var SplashStepRenderer = {
2788
2832
  canRenderType: "step",
2789
2833
  canRender: ({ control }) => control === "splash",
@@ -2792,14 +2836,14 @@ var SplashStepRenderer = {
2792
2836
  function SplashStepRendererComponent(props) {
2793
2837
  const { back, toolbar, children } = props;
2794
2838
  return /* @__PURE__ */ jsxs27("div", { className: "splash-screen m-t-5", children: [
2795
- /* @__PURE__ */ jsx67(TopBar, { back, toolbar }),
2839
+ /* @__PURE__ */ jsx68(TopBar, { back, toolbar }),
2796
2840
  children
2797
2841
  ] });
2798
2842
  }
2799
2843
 
2800
2844
  // ../renderers/src/step/StepRenderer.tsx
2801
2845
  import { Alert as Alert2, Title as Title2 } from "@transferwise/components";
2802
- import { Fragment as Fragment11, jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
2846
+ import { Fragment as Fragment11, jsx as jsx69, jsxs as jsxs28 } from "react/jsx-runtime";
2803
2847
  var StepRenderer = {
2804
2848
  canRenderType: "step",
2805
2849
  render: StepRendererComponent
@@ -2807,12 +2851,12 @@ var StepRenderer = {
2807
2851
  function StepRendererComponent(props) {
2808
2852
  const { back, description, error, title, children, toolbar } = props;
2809
2853
  return /* @__PURE__ */ jsxs28(Fragment11, { children: [
2810
- /* @__PURE__ */ jsx68(TopBar, { back, toolbar }),
2854
+ /* @__PURE__ */ jsx69(TopBar, { back, toolbar }),
2811
2855
  title || description ? /* @__PURE__ */ jsxs28("div", { className: "m-b-4", children: [
2812
- title ? /* @__PURE__ */ jsx68(Title2, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
2813
- description ? /* @__PURE__ */ jsx68("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
2856
+ title ? /* @__PURE__ */ jsx69(Title2, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
2857
+ description ? /* @__PURE__ */ jsx69("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
2814
2858
  ] }) : void 0,
2815
- error ? /* @__PURE__ */ jsx68(Alert2, { type: "negative", className: "m-b-2", message: error }) : void 0,
2859
+ error ? /* @__PURE__ */ jsx69(Alert2, { type: "negative", className: "m-b-2", message: error }) : void 0,
2816
2860
  children
2817
2861
  ] });
2818
2862
  }
@@ -2820,26 +2864,26 @@ function StepRendererComponent(props) {
2820
2864
  // ../renderers/src/TabsRenderer.tsx
2821
2865
  import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
2822
2866
  import { useState as useState11 } from "react";
2823
- import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
2867
+ import { jsx as jsx70, jsxs as jsxs29 } from "react/jsx-runtime";
2824
2868
  var TabsRenderer = {
2825
2869
  canRenderType: "tabs",
2826
2870
  render: (props) => {
2827
2871
  switch (props.control) {
2828
2872
  case "segmented":
2829
2873
  if (props.tabs.length > 3) {
2830
- return /* @__PURE__ */ jsx69(TabsRendererComponent, __spreadValues({}, props));
2874
+ return /* @__PURE__ */ jsx70(TabsRendererComponent, __spreadValues({}, props));
2831
2875
  }
2832
- return /* @__PURE__ */ jsx69(SegmentedTabsRendererComponent, __spreadValues({}, props));
2876
+ return /* @__PURE__ */ jsx70(SegmentedTabsRendererComponent, __spreadValues({}, props));
2833
2877
  case "chips":
2834
- return /* @__PURE__ */ jsx69(ChipsTabsRendererComponent, __spreadValues({}, props));
2878
+ return /* @__PURE__ */ jsx70(ChipsTabsRendererComponent, __spreadValues({}, props));
2835
2879
  default:
2836
- return /* @__PURE__ */ jsx69(TabsRendererComponent, __spreadValues({}, props));
2880
+ return /* @__PURE__ */ jsx70(TabsRendererComponent, __spreadValues({}, props));
2837
2881
  }
2838
2882
  }
2839
2883
  };
2840
2884
  function TabsRendererComponent({ uid, margin, tabs }) {
2841
2885
  const [selectedIndex, setSelectedIndex] = useState11(0);
2842
- return /* @__PURE__ */ jsx69("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx69(
2886
+ return /* @__PURE__ */ jsx70("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx70(
2843
2887
  Tabs2,
2844
2888
  {
2845
2889
  name: uid,
@@ -2861,7 +2905,7 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
2861
2905
  var _a;
2862
2906
  const [selectedIndex, setSelectedIndex] = useState11(0);
2863
2907
  return /* @__PURE__ */ jsxs29("div", { className: getMargin(margin), children: [
2864
- /* @__PURE__ */ jsx69(
2908
+ /* @__PURE__ */ jsx70(
2865
2909
  SegmentedControl2,
2866
2910
  {
2867
2911
  name: uid,
@@ -2876,14 +2920,14 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
2876
2920
  onChange: (value) => setSelectedIndex(Number(value))
2877
2921
  }
2878
2922
  ),
2879
- /* @__PURE__ */ jsx69("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
2923
+ /* @__PURE__ */ jsx70("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
2880
2924
  ] });
2881
2925
  }
2882
2926
  function ChipsTabsRendererComponent({ margin, tabs }) {
2883
2927
  var _a;
2884
2928
  const [selectedIndex, setSelectedIndex] = useState11(0);
2885
2929
  return /* @__PURE__ */ jsxs29("div", { className: getMargin(margin), children: [
2886
- /* @__PURE__ */ jsx69("div", { className: "chips-container", children: /* @__PURE__ */ jsx69(
2930
+ /* @__PURE__ */ jsx70("div", { className: "chips-container", children: /* @__PURE__ */ jsx70(
2887
2931
  Chips,
2888
2932
  {
2889
2933
  chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
@@ -2891,7 +2935,7 @@ function ChipsTabsRendererComponent({ margin, tabs }) {
2891
2935
  onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
2892
2936
  }
2893
2937
  ) }),
2894
- /* @__PURE__ */ jsx69("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
2938
+ /* @__PURE__ */ jsx70("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
2895
2939
  ] });
2896
2940
  }
2897
2941
 
@@ -2906,7 +2950,7 @@ import {
2906
2950
  TextArea,
2907
2951
  TextareaWithDisplayFormat
2908
2952
  } from "@transferwise/components";
2909
- import { jsx as jsx70 } from "react/jsx-runtime";
2953
+ import { jsx as jsx71 } from "react/jsx-runtime";
2910
2954
  var commonKeys = [
2911
2955
  "autoComplete",
2912
2956
  "autoCapitalize",
@@ -2925,12 +2969,12 @@ function VariableTextInput(inputProps) {
2925
2969
  const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
2926
2970
  switch (control) {
2927
2971
  case "email":
2928
- return /* @__PURE__ */ jsx70(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
2972
+ return /* @__PURE__ */ jsx71(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
2929
2973
  case "password":
2930
- return /* @__PURE__ */ jsx70(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
2974
+ return /* @__PURE__ */ jsx71(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
2931
2975
  case "numeric": {
2932
2976
  const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
2933
- return /* @__PURE__ */ jsx70(
2977
+ return /* @__PURE__ */ jsx71(
2934
2978
  TextInput,
2935
2979
  __spreadProps(__spreadValues({}, numericProps), {
2936
2980
  onChange: (newValue) => {
@@ -2941,9 +2985,9 @@ function VariableTextInput(inputProps) {
2941
2985
  );
2942
2986
  }
2943
2987
  case "phone-number":
2944
- return /* @__PURE__ */ jsx70(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
2988
+ return /* @__PURE__ */ jsx71(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
2945
2989
  default: {
2946
- return /* @__PURE__ */ jsx70(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
2990
+ return /* @__PURE__ */ jsx71(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
2947
2991
  }
2948
2992
  }
2949
2993
  }
@@ -2951,11 +2995,11 @@ function TextInput(props) {
2951
2995
  const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
2952
2996
  const InputWithPattern = control === "textarea" ? TextareaWithDisplayFormat : InputWithDisplayFormat;
2953
2997
  const InputWithoutPattern = control === "textarea" ? TextArea : Input5;
2954
- return displayFormat ? /* @__PURE__ */ jsx70(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx70(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
2998
+ return displayFormat ? /* @__PURE__ */ jsx71(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx71(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
2955
2999
  }
2956
3000
 
2957
3001
  // ../renderers/src/TextInputRenderer.tsx
2958
- import { jsx as jsx71 } from "react/jsx-runtime";
3002
+ import { jsx as jsx72 } from "react/jsx-runtime";
2959
3003
  var TextInputRenderer = {
2960
3004
  canRenderType: "input-text",
2961
3005
  render: (props) => {
@@ -2988,7 +3032,7 @@ var TextInputRenderer = {
2988
3032
  }
2989
3033
  }
2990
3034
  });
2991
- return /* @__PURE__ */ jsx71(
3035
+ return /* @__PURE__ */ jsx72(
2992
3036
  FieldInput_default,
2993
3037
  {
2994
3038
  id,
@@ -2996,7 +3040,7 @@ var TextInputRenderer = {
2996
3040
  description,
2997
3041
  validation: validationState,
2998
3042
  help,
2999
- children: /* @__PURE__ */ jsx71(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx71(VariableTextInput, __spreadValues({}, inputProps)) })
3043
+ children: /* @__PURE__ */ jsx72(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx72(VariableTextInput, __spreadValues({}, inputProps)) })
3000
3044
  }
3001
3045
  );
3002
3046
  }
@@ -3010,7 +3054,7 @@ import { Upload, UploadInput as UploadInput2 } from "@transferwise/components";
3010
3054
  var getRandomId = () => Math.random().toString(36).substring(2);
3011
3055
 
3012
3056
  // ../renderers/src/UploadInputRenderer.tsx
3013
- import { jsx as jsx72 } from "react/jsx-runtime";
3057
+ import { jsx as jsx73 } from "react/jsx-runtime";
3014
3058
  var UploadInputRenderer = {
3015
3059
  canRenderType: "input-upload",
3016
3060
  render: (props) => {
@@ -3026,14 +3070,14 @@ var UploadInputRenderer = {
3026
3070
  };
3027
3071
  return (
3028
3072
  // We don't pass help here as there is no sensible place to display it
3029
- /* @__PURE__ */ jsx72(
3073
+ /* @__PURE__ */ jsx73(
3030
3074
  UploadFieldInput_default,
3031
3075
  {
3032
3076
  id,
3033
3077
  label: void 0,
3034
3078
  description: void 0,
3035
3079
  validation: validationState,
3036
- children: /* @__PURE__ */ jsx72(
3080
+ children: /* @__PURE__ */ jsx73(
3037
3081
  UploadInput2,
3038
3082
  {
3039
3083
  id,
@@ -3092,7 +3136,7 @@ var LargeUploadRenderer = {
3092
3136
  };
3093
3137
  const filetypes = acceptsToFileTypes(accepts);
3094
3138
  const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
3095
- return /* @__PURE__ */ jsx72(
3139
+ return /* @__PURE__ */ jsx73(
3096
3140
  FieldInput_default,
3097
3141
  {
3098
3142
  id,
@@ -3100,7 +3144,7 @@ var LargeUploadRenderer = {
3100
3144
  description,
3101
3145
  validation: validationState,
3102
3146
  help,
3103
- children: /* @__PURE__ */ jsx72(
3147
+ children: /* @__PURE__ */ jsx73(
3104
3148
  Upload,
3105
3149
  __spreadProps(__spreadValues({}, uploadProps), {
3106
3150
  usAccept,
@@ -3116,19 +3160,15 @@ var LargeUploadRenderer = {
3116
3160
  };
3117
3161
 
3118
3162
  // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
3119
- import { ListItem as ListItem3 } from "@transferwise/components";
3163
+ import { ListItem as ListItem4 } from "@transferwise/components";
3120
3164
 
3121
3165
  // ../renderers/src/NewListItem/getInlineAlert.tsx
3122
- import { ListItem } from "@transferwise/components";
3123
- import { jsx as jsx73 } from "react/jsx-runtime";
3124
- var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ jsx73(ListItem.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
3125
-
3126
- // ../renderers/src/NewListItem/getMedia.tsx
3166
+ import { ListItem as ListItem2 } from "@transferwise/components";
3127
3167
  import { jsx as jsx74 } from "react/jsx-runtime";
3128
- var getMedia = (media, preferAvatar) => media ? /* @__PURE__ */ jsx74(OptionMedia, { media, preferAvatar }) : void 0;
3168
+ var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ jsx74(ListItem2.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
3129
3169
 
3130
3170
  // ../renderers/src/NewListItem/getAdditionalInfo.tsx
3131
- import { ListItem as ListItem2 } from "@transferwise/components";
3171
+ import { ListItem as ListItem3 } from "@transferwise/components";
3132
3172
  import { jsx as jsx75 } from "react/jsx-runtime";
3133
3173
  var getAdditionalInfo = (additionalInfo) => {
3134
3174
  if (!additionalInfo) {
@@ -3137,7 +3177,7 @@ var getAdditionalInfo = (additionalInfo) => {
3137
3177
  const { href, text, onClick } = additionalInfo;
3138
3178
  if (href || onClick) {
3139
3179
  return /* @__PURE__ */ jsx75(
3140
- ListItem2.AdditionalInfo,
3180
+ ListItem3.AdditionalInfo,
3141
3181
  {
3142
3182
  action: {
3143
3183
  label: text,
@@ -3148,7 +3188,7 @@ var getAdditionalInfo = (additionalInfo) => {
3148
3188
  }
3149
3189
  );
3150
3190
  }
3151
- return /* @__PURE__ */ jsx75(ListItem2.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
3191
+ return /* @__PURE__ */ jsx75(ListItem3.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
3152
3192
  };
3153
3193
 
3154
3194
  // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
@@ -3172,7 +3212,7 @@ var renderDecisionList2 = ({ options, control }) => {
3172
3212
  onClick
3173
3213
  } = option;
3174
3214
  return /* @__PURE__ */ jsx76(
3175
- ListItem3,
3215
+ ListItem4,
3176
3216
  {
3177
3217
  title: itemTitle,
3178
3218
  subtitle: description,
@@ -3183,7 +3223,7 @@ var renderDecisionList2 = ({ options, control }) => {
3183
3223
  media: getMedia(media, control === "with-avatar" || tag === "with-avatar"),
3184
3224
  prompt: getInlineAlert(inlineAlert),
3185
3225
  additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
3186
- control: href ? /* @__PURE__ */ jsx76(ListItem3.Navigation, { href, target: "_blank" }) : /* @__PURE__ */ jsx76(ListItem3.Navigation, { onClick })
3226
+ control: href ? /* @__PURE__ */ jsx76(ListItem4.Navigation, { href, target: "_blank" }) : /* @__PURE__ */ jsx76(ListItem4.Navigation, { onClick })
3187
3227
  },
3188
3228
  JSON.stringify(option)
3189
3229
  );
@@ -3192,7 +3232,7 @@ var renderDecisionList2 = ({ options, control }) => {
3192
3232
  var NewDecisionRenderer_default = DecisionRenderer2;
3193
3233
 
3194
3234
  // ../renderers/src/NewListItem/NewListRenderer.tsx
3195
- import { ListItem as ListItem4 } from "@transferwise/components";
3235
+ import { ListItem as ListItem5 } from "@transferwise/components";
3196
3236
  import { jsx as jsx77, jsxs as jsxs30 } from "react/jsx-runtime";
3197
3237
  var ListRenderer2 = {
3198
3238
  canRenderType: "list",
@@ -3209,7 +3249,7 @@ var ListRenderer2 = {
3209
3249
  inlineAlert
3210
3250
  } = item;
3211
3251
  return /* @__PURE__ */ jsx77(
3212
- ListItem4,
3252
+ ListItem5,
3213
3253
  {
3214
3254
  title: itemTitle,
3215
3255
  subtitle: description,
@@ -3227,7 +3267,7 @@ var ListRenderer2 = {
3227
3267
  var NewListRenderer_default = ListRenderer2;
3228
3268
 
3229
3269
  // ../renderers/src/NewListItem/NewReviewRenderer.tsx
3230
- import { ListItem as ListItem5, Popover } from "@transferwise/components";
3270
+ import { ListItem as ListItem6, Popover } from "@transferwise/components";
3231
3271
  import { QuestionMarkCircle } from "@transferwise/icons";
3232
3272
  import { jsx as jsx78, jsxs as jsxs31 } from "react/jsx-runtime";
3233
3273
  var IGNORED_CONTROLS = [
@@ -3254,7 +3294,7 @@ var ReviewRenderer2 = {
3254
3294
  callToAction: itemCallToAction
3255
3295
  } = field;
3256
3296
  return /* @__PURE__ */ jsx78(
3257
- ListItem5,
3297
+ ListItem6,
3258
3298
  {
3259
3299
  title: value,
3260
3300
  subtitle: label,
@@ -3275,10 +3315,10 @@ var getCTAControl = (callToAction) => {
3275
3315
  }
3276
3316
  const { accessibilityDescription, href, title, onClick } = callToAction;
3277
3317
  if (href) {
3278
- return /* @__PURE__ */ jsx78(ListItem5.Button, { href, partiallyInteractive: true, "aria-description": accessibilityDescription, children: title });
3318
+ return /* @__PURE__ */ jsx78(ListItem6.Button, { href, partiallyInteractive: true, "aria-description": accessibilityDescription, children: title });
3279
3319
  }
3280
3320
  return /* @__PURE__ */ jsx78(
3281
- ListItem5.Button,
3321
+ ListItem6.Button,
3282
3322
  {
3283
3323
  "aria-description": accessibilityDescription,
3284
3324
  partiallyInteractive: true,
@@ -3291,12 +3331,12 @@ var getHelpControl = (help) => {
3291
3331
  if (!help) {
3292
3332
  return void 0;
3293
3333
  }
3294
- return /* @__PURE__ */ jsx78(Popover, { content: help, children: /* @__PURE__ */ jsx78(ListItem5.IconButton, { partiallyInteractive: true, children: /* @__PURE__ */ jsx78(QuestionMarkCircle, {}) }) });
3334
+ return /* @__PURE__ */ jsx78(Popover, { content: help, children: /* @__PURE__ */ jsx78(ListItem6.IconButton, { partiallyInteractive: true, children: /* @__PURE__ */ jsx78(QuestionMarkCircle, {}) }) });
3295
3335
  };
3296
3336
  var NewReviewRenderer_default = ReviewRenderer2;
3297
3337
 
3298
3338
  // ../renderers/src/NewListItem/NewStatusListRenderer.tsx
3299
- import { AvatarView as AvatarView5, Header as Header10, ListItem as ListItem6 } from "@transferwise/components";
3339
+ import { AvatarView as AvatarView4, Header as Header10, ListItem as ListItem7 } from "@transferwise/components";
3300
3340
  import { jsx as jsx79, jsxs as jsxs32 } from "react/jsx-runtime";
3301
3341
  var NewStatusListRenderer = {
3302
3342
  canRenderType: "status-list",
@@ -3305,13 +3345,13 @@ var NewStatusListRenderer = {
3305
3345
  items.map((item) => {
3306
3346
  const { callToAction, description, icon, status, title: itemTitle } = item;
3307
3347
  return /* @__PURE__ */ jsx79(
3308
- ListItem6,
3348
+ ListItem7,
3309
3349
  {
3310
3350
  title: itemTitle,
3311
3351
  subtitle: description,
3312
- media: icon && "name" in icon ? /* @__PURE__ */ jsx79(AvatarView5, { badge: { status: mapStatus2(status) }, children: /* @__PURE__ */ jsx79(DynamicIcon_default, { name: icon.name }) }) : void 0,
3352
+ media: icon && "name" in icon ? /* @__PURE__ */ jsx79(AvatarView4, { badge: { status: mapStatus2(status) }, children: /* @__PURE__ */ jsx79(DynamicIcon_default, { name: icon.name }) }) : void 0,
3313
3353
  additionalInfo: callToAction ? /* @__PURE__ */ jsx79(
3314
- ListItem6.AdditionalInfo,
3354
+ ListItem7.AdditionalInfo,
3315
3355
  {
3316
3356
  action: {
3317
3357
  href: callToAction.href,
@@ -3384,6 +3424,29 @@ function ButtonComponent2(props) {
3384
3424
  var getSentiment2 = (context) => context === "negative" ? "negative" : "default";
3385
3425
  var getPriority3 = (control) => control && isButtonPriority(control) ? control : "secondary";
3386
3426
 
3427
+ // ../renderers/src/ProgressRenderer.tsx
3428
+ import { ProgressBar } from "@transferwise/components";
3429
+ import { jsx as jsx81 } from "react/jsx-runtime";
3430
+ var ProgressRenderer = {
3431
+ canRenderType: "progress",
3432
+ render: ({ uid, title, help, progress, progressText, margin, description }) => {
3433
+ return /* @__PURE__ */ jsx81(
3434
+ ProgressBar,
3435
+ {
3436
+ id: uid,
3437
+ className: getMargin(margin),
3438
+ title: title && help ? /* @__PURE__ */ jsx81(LabelContentWithHelp, { text: title, help }) : title,
3439
+ description,
3440
+ progress: {
3441
+ max: 1,
3442
+ value: progress
3443
+ },
3444
+ textEnd: progressText
3445
+ }
3446
+ );
3447
+ }
3448
+ };
3449
+
3387
3450
  // ../renderers/src/getWiseRenderers.ts
3388
3451
  var getListItemRenderers = () => [
3389
3452
  NewDecisionRenderer_default,
@@ -3419,6 +3482,7 @@ var getWiseRenderers = () => [
3419
3482
  MultiUploadInputRenderer_default,
3420
3483
  NumberInputRenderer_default,
3421
3484
  ParagraphRenderer_default,
3485
+ ProgressRenderer,
3422
3486
  RepeatableRenderer_default,
3423
3487
  ReviewRenderer_default,
3424
3488
  SearchRenderer_default,
@@ -3433,12 +3497,6 @@ var getWiseRenderers = () => [
3433
3497
  StepRenderer
3434
3498
  ];
3435
3499
 
3436
- // src/dynamicFlow/renderers.ts
3437
- var Header11 = Header7;
3438
- var getMargin2 = getMargin;
3439
- var getListItemRenderers2 = getListItemRenderers;
3440
- var getButtonV2Renderers2 = getButtonV2Renderers;
3441
-
3442
3500
  // src/i18n/index.ts
3443
3501
  import { translations as coreTranslations } from "@wise/dynamic-flow-client";
3444
3502
 
@@ -3464,6 +3522,7 @@ var cs_default = {
3464
3522
  "df.wise.CopyFeedback.copy": "Zkop\xEDrov\xE1no do schr\xE1nky",
3465
3523
  "df.wise.CopyFeedback.copyFailed": "Kop\xEDrov\xE1n\xED do schr\xE1nky se nezda\u0159ilo",
3466
3524
  "df.wise.Decision.all": "V\u0161e",
3525
+ "df.wise.Decision.currenciesWithAccountDetails": "M\u011Bny s detaily \xFA\u010Dtu",
3467
3526
  "df.wise.Decision.filterPlaceholder": "Pro vyhled\xE1v\xE1n\xED za\u010Dn\u011Bte ps\xE1t",
3468
3527
  "df.wise.Decision.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
3469
3528
  "df.wise.Decision.popular": "Popul\xE1rn\xED",
@@ -3508,7 +3567,8 @@ var de_default = {
3508
3567
  "df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
3509
3568
  "df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
3510
3569
  "df.wise.Decision.all": "Alle",
3511
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
3570
+ "df.wise.Decision.currenciesWithAccountDetails": "Guthaben mit Bankverbindung",
3571
+ "df.wise.Decision.filterPlaceholder": "Gib etwas ein, um die Suche zu beginnen",
3512
3572
  "df.wise.Decision.noResults": "Keine Ergebnisse",
3513
3573
  "df.wise.Decision.popular": "Beliebt",
3514
3574
  "df.wise.Decision.recent": "Neu",
@@ -3552,6 +3612,7 @@ var en_default = {
3552
3612
  "df.wise.CopyFeedback.copy": "Copied to clipboard",
3553
3613
  "df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
3554
3614
  "df.wise.Decision.all": "All",
3615
+ "df.wise.Decision.currenciesWithAccountDetails": "Currencies with account details",
3555
3616
  "df.wise.Decision.filterPlaceholder": "Start typing to search",
3556
3617
  "df.wise.Decision.noResults": "No results",
3557
3618
  "df.wise.Decision.popular": "Popular",
@@ -3596,6 +3657,7 @@ var es_default = {
3596
3657
  "df.wise.CopyFeedback.copy": "Copiado al portapapeles",
3597
3658
  "df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
3598
3659
  "df.wise.Decision.all": "Todas",
3660
+ "df.wise.Decision.currenciesWithAccountDetails": "Divisas con datos de cuenta",
3599
3661
  "df.wise.Decision.filterPlaceholder": "Empieza a escribir para buscar",
3600
3662
  "df.wise.Decision.noResults": "No hay resultados",
3601
3663
  "df.wise.Decision.popular": "Populares",
@@ -3640,6 +3702,7 @@ var fr_default = {
3640
3702
  "df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
3641
3703
  "df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
3642
3704
  "df.wise.Decision.all": "Toutes",
3705
+ "df.wise.Decision.currenciesWithAccountDetails": "Devises avec num\xE9ros de compte",
3643
3706
  "df.wise.Decision.filterPlaceholder": "Commencez \xE0 \xE9crire pour effectuer une recherche",
3644
3707
  "df.wise.Decision.noResults": "Aucun r\xE9sultat",
3645
3708
  "df.wise.Decision.popular": "Populaires",
@@ -3684,6 +3747,7 @@ var hu_default = {
3684
3747
  "df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
3685
3748
  "df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
3686
3749
  "df.wise.Decision.all": "\xD6sszes",
3750
+ "df.wise.Decision.currenciesWithAccountDetails": "P\xE9nznemek sz\xE1mlaadatokkal",
3687
3751
  "df.wise.Decision.filterPlaceholder": "Kezdj el g\xE9pelni a keres\xE9shez",
3688
3752
  "df.wise.Decision.noResults": "Nincs tal\xE1lat",
3689
3753
  "df.wise.Decision.popular": "N\xE9pszer\u0171",
@@ -3728,6 +3792,7 @@ var id_default = {
3728
3792
  "df.wise.CopyFeedback.copy": "Disalin ke clipboard",
3729
3793
  "df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
3730
3794
  "df.wise.Decision.all": "Semua",
3795
+ "df.wise.Decision.currenciesWithAccountDetails": "Saldo dengan detail rekening",
3731
3796
  "df.wise.Decision.filterPlaceholder": "Mulai mengetik untuk mencari",
3732
3797
  "df.wise.Decision.noResults": "Tidak ada hasil",
3733
3798
  "df.wise.Decision.popular": "Populer",
@@ -3772,6 +3837,7 @@ var it_default = {
3772
3837
  "df.wise.CopyFeedback.copy": "Copiato negli appunti",
3773
3838
  "df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
3774
3839
  "df.wise.Decision.all": "Tutte",
3840
+ "df.wise.Decision.currenciesWithAccountDetails": "Valute con estremi del conto",
3775
3841
  "df.wise.Decision.filterPlaceholder": "Inizia a digitare per cercare",
3776
3842
  "df.wise.Decision.noResults": "Nessun risultato",
3777
3843
  "df.wise.Decision.popular": "Popolari",
@@ -3816,7 +3882,8 @@ var ja_default = {
3816
3882
  "df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
3817
3883
  "df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
3818
3884
  "df.wise.Decision.all": "\u3059\u3079\u3066",
3819
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
3885
+ "df.wise.Decision.currenciesWithAccountDetails": "\u53E3\u5EA7\u60C5\u5831\u3092\u53D6\u5F97\u3067\u304D\u308B\u901A\u8CA8",
3886
+ "df.wise.Decision.filterPlaceholder": "\u691C\u7D22\u8A9E\u53E5\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
3820
3887
  "df.wise.Decision.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
3821
3888
  "df.wise.Decision.popular": "\u4EBA\u6C17",
3822
3889
  "df.wise.Decision.recent": "\u6700\u8FD1",
@@ -3860,8 +3927,9 @@ var nl_default = {
3860
3927
  "df.wise.CopyFeedback.copy": "Naar klembord gekopieerd",
3861
3928
  "df.wise.CopyFeedback.copyFailed": "Naar klembord kopi\xEBren mislukt",
3862
3929
  "df.wise.Decision.all": "Alles",
3930
+ "df.wise.Decision.currenciesWithAccountDetails": "Valuta met rekeninggegevens",
3863
3931
  "df.wise.Decision.filterPlaceholder": "Begin met typen om te zoeken",
3864
- "df.wise.Decision.noResults": "Niks gevonden",
3932
+ "df.wise.Decision.noResults": "Geen resultaten",
3865
3933
  "df.wise.Decision.popular": "Populair",
3866
3934
  "df.wise.Decision.recent": "Recent",
3867
3935
  "df.wise.Decision.results": "Zoekresultaten",
@@ -3904,6 +3972,7 @@ var pl_default = {
3904
3972
  "df.wise.CopyFeedback.copy": "Skopiowano do schowka",
3905
3973
  "df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
3906
3974
  "df.wise.Decision.all": "Wszystkie",
3975
+ "df.wise.Decision.currenciesWithAccountDetails": "Waluty z danymi bankowymi",
3907
3976
  "df.wise.Decision.filterPlaceholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
3908
3977
  "df.wise.Decision.noResults": "Brak wynik\xF3w",
3909
3978
  "df.wise.Decision.popular": "Popularne",
@@ -3948,7 +4017,8 @@ var pt_default = {
3948
4017
  "df.wise.CopyFeedback.copy": "Copiado",
3949
4018
  "df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
3950
4019
  "df.wise.Decision.all": "Todos",
3951
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
4020
+ "df.wise.Decision.currenciesWithAccountDetails": "Moedas com dados de conta",
4021
+ "df.wise.Decision.filterPlaceholder": "Comece a digitar para pesquisar",
3952
4022
  "df.wise.Decision.noResults": "Nenhum resultado",
3953
4023
  "df.wise.Decision.popular": "Populares",
3954
4024
  "df.wise.Decision.recent": "Recente",
@@ -3992,6 +4062,7 @@ var ro_default = {
3992
4062
  "df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
3993
4063
  "df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
3994
4064
  "df.wise.Decision.all": "Toate",
4065
+ "df.wise.Decision.currenciesWithAccountDetails": "Monede cu detalii de cont",
3995
4066
  "df.wise.Decision.filterPlaceholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
3996
4067
  "df.wise.Decision.noResults": "Niciun rezultat",
3997
4068
  "df.wise.Decision.popular": "Populare",
@@ -4036,7 +4107,8 @@ var ru_default = {
4036
4107
  "df.wise.CopyFeedback.copy": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
4037
4108
  "df.wise.CopyFeedback.copyFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
4038
4109
  "df.wise.Decision.all": "\u0412\u0441\u0435",
4039
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
4110
+ "df.wise.Decision.currenciesWithAccountDetails": "\u0412\u0430\u043B\u044E\u0442\u044B \u0441 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u0430\u043C\u0438 \u0441\u0447\u0435\u0442\u0430",
4111
+ "df.wise.Decision.filterPlaceholder": "\u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u043F\u043E\u0438\u0441\u043A\u0430",
4040
4112
  "df.wise.Decision.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
4041
4113
  "df.wise.Decision.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
4042
4114
  "df.wise.Decision.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435",
@@ -4080,6 +4152,7 @@ var th_default = {
4080
4152
  "df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
4081
4153
  "df.wise.CopyFeedback.copyFailed": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
4082
4154
  "df.wise.Decision.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
4155
+ "df.wise.Decision.currenciesWithAccountDetails": "\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19\u0E15\u0E48\u0E32\u0E07\u0E46 \u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E1A\u0E31\u0E0D\u0E0A\u0E35",
4083
4156
  "df.wise.Decision.filterPlaceholder": "Start typing to search",
4084
4157
  "df.wise.Decision.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
4085
4158
  "df.wise.Decision.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
@@ -4124,7 +4197,8 @@ var tr_default = {
4124
4197
  "df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
4125
4198
  "df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
4126
4199
  "df.wise.Decision.all": "T\xFCm\xFC",
4127
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
4200
+ "df.wise.Decision.currenciesWithAccountDetails": "Hesap bilgileri olan bakiyeler",
4201
+ "df.wise.Decision.filterPlaceholder": "Aramak i\xE7in yazmaya ba\u015Flay\u0131n",
4128
4202
  "df.wise.Decision.noResults": "Sonu\xE7 yok",
4129
4203
  "df.wise.Decision.popular": "Pop\xFCler",
4130
4204
  "df.wise.Decision.recent": "Yak\u0131n zamanl\u0131",
@@ -4168,7 +4242,8 @@ var zh_CN_default = {
4168
4242
  "df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
4169
4243
  "df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
4170
4244
  "df.wise.Decision.all": "\u5168\u90E8",
4171
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
4245
+ "df.wise.Decision.currenciesWithAccountDetails": "\u5E26\u6709\u8D26\u6237\u8BE6\u7EC6\u4FE1\u606F\u7684\u8D27\u5E01",
4246
+ "df.wise.Decision.filterPlaceholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
4172
4247
  "df.wise.Decision.noResults": "\u6682\u65E0\u7ED3\u679C",
4173
4248
  "df.wise.Decision.popular": "\u70ED\u95E8",
4174
4249
  "df.wise.Decision.recent": "\u6700\u8FD1",
@@ -4212,6 +4287,7 @@ var zh_HK_default = {
4212
4287
  "df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
4213
4288
  "df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
4214
4289
  "df.wise.Decision.all": "\u5168\u90E8",
4290
+ "df.wise.Decision.currenciesWithAccountDetails": "\u63D0\u4F9B\u8CEC\u6236\u8CC7\u6599\u7684\u9918\u984D",
4215
4291
  "df.wise.Decision.filterPlaceholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
4216
4292
  "df.wise.Decision.noResults": "\u6C92\u6709\u7D50\u679C",
4217
4293
  "df.wise.Decision.popular": "\u71B1\u9580",
@@ -4277,7 +4353,7 @@ import {
4277
4353
  // src/dynamicFlow/telemetry/app-version.ts
4278
4354
  var appVersion = (
4279
4355
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
4280
- typeof process !== "undefined" ? "4.25.1" : "0.0.0"
4356
+ typeof process !== "undefined" ? "4.26.0" : "0.0.0"
4281
4357
  );
4282
4358
 
4283
4359
  // src/dynamicFlow/telemetry/getLogEvent.ts
@@ -4332,12 +4408,12 @@ var messages_default = defineMessages10({
4332
4408
  });
4333
4409
 
4334
4410
  // src/dynamicFlow/DynamicFlow.tsx
4335
- import { jsx as jsx81 } from "react/jsx-runtime";
4411
+ import { jsx as jsx82 } from "react/jsx-runtime";
4336
4412
  var wiseRenderers = getWiseRenderers();
4337
4413
  function DynamicFlowLegacy(props) {
4338
4414
  const { customFetch = globalThis.fetch } = props;
4339
4415
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
4340
- return /* @__PURE__ */ jsx81(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
4416
+ return /* @__PURE__ */ jsx82(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
4341
4417
  }
4342
4418
  function DynamicFlowRevamp(props) {
4343
4419
  const {
@@ -4374,7 +4450,7 @@ function DynamicFlowRevamp(props) {
4374
4450
  onLink,
4375
4451
  onCopy
4376
4452
  });
4377
- return /* @__PURE__ */ jsx81("div", { className, children: /* @__PURE__ */ jsx81(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4453
+ return /* @__PURE__ */ jsx82("div", { className, children: /* @__PURE__ */ jsx82(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4378
4454
  }
4379
4455
  var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
4380
4456
  const {
@@ -4411,7 +4487,7 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
4411
4487
  onLink,
4412
4488
  onCopy
4413
4489
  });
4414
- return /* @__PURE__ */ jsx81("div", { className, children: /* @__PURE__ */ jsx81(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4490
+ return /* @__PURE__ */ jsx82("div", { className, children: /* @__PURE__ */ jsx82(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4415
4491
  });
4416
4492
  var useWiseHttpClient = (httpClient) => {
4417
4493
  const { locale } = useIntl12();
@@ -4442,12 +4518,13 @@ export {
4442
4518
  DynamicFlowLegacy,
4443
4519
  DynamicFlowRevamp,
4444
4520
  DynamicForm,
4445
- Header11 as Header,
4521
+ Header7 as Header,
4446
4522
  JsonSchemaForm,
4523
+ Media,
4447
4524
  findRendererPropsByType,
4448
- getButtonV2Renderers2 as getButtonV2Renderers,
4449
- getListItemRenderers2 as getListItemRenderers,
4450
- getMargin2 as getMargin,
4525
+ getButtonV2Renderers,
4526
+ getListItemRenderers,
4527
+ getMargin,
4451
4528
  isValidSchema,
4452
4529
  makeHttpClient as makeCustomFetch,
4453
4530
  i18n_default as translations