@wise/dynamic-flow-client-internal 4.36.2 → 4.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/i18n/cs.json +1 -0
- package/build/i18n/de.json +1 -0
- package/build/i18n/en.json +1 -0
- package/build/i18n/es.json +1 -0
- package/build/i18n/fr.json +1 -0
- package/build/i18n/hu.json +1 -0
- package/build/i18n/id.json +1 -0
- package/build/i18n/it.json +1 -0
- package/build/i18n/ja.json +1 -0
- package/build/i18n/nl.json +1 -0
- package/build/i18n/pl.json +1 -0
- package/build/i18n/pt.json +1 -0
- package/build/i18n/ro.json +1 -0
- package/build/i18n/ru.json +1 -0
- package/build/i18n/th.json +1 -0
- package/build/i18n/tr.json +1 -0
- package/build/i18n/uk.json +1 -0
- package/build/i18n/zh_CN.json +1 -0
- package/build/i18n/zh_HK.json +1 -0
- package/build/main.js +606 -430
- package/build/main.mjs +495 -319
- package/package.json +4 -4
package/build/main.mjs
CHANGED
|
@@ -319,7 +319,7 @@ var mapStatusToSentiment = (validation) => {
|
|
|
319
319
|
var FieldInput_default = FieldInput;
|
|
320
320
|
|
|
321
321
|
// ../renderers/src/CheckboxInputRenderer.tsx
|
|
322
|
-
import { Checkbox, ListItem } from "@transferwise/components";
|
|
322
|
+
import { Checkbox, ListItem as ListItem3 } from "@transferwise/components";
|
|
323
323
|
|
|
324
324
|
// ../renderers/src/utils/UrnFlag.tsx
|
|
325
325
|
import { Flag } from "@wise/art";
|
|
@@ -452,7 +452,10 @@ var AvatarMedia = ({
|
|
|
452
452
|
}) => {
|
|
453
453
|
const getRenderableAvatar = (avatar) => {
|
|
454
454
|
if (avatar.type === "text") {
|
|
455
|
-
return {
|
|
455
|
+
return {
|
|
456
|
+
asset: avatar.text,
|
|
457
|
+
badge: avatar.badgeUri ? resolveMediaFromUri(avatar.badgeUri, 16) : void 0
|
|
458
|
+
};
|
|
456
459
|
}
|
|
457
460
|
return __spreadProps(__spreadValues({}, resolveMediaFromUri(avatar.uri, size)), {
|
|
458
461
|
badge: avatar.badgeUri ? resolveMediaFromUri(avatar.badgeUri, 16) : void 0
|
|
@@ -609,11 +612,41 @@ var getInlineMedia = (media) => media ? /* @__PURE__ */ jsx18(Media, { media, pr
|
|
|
609
612
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
610
613
|
var getMedia = (media, preferAvatar) => media ? /* @__PURE__ */ jsx19(OptionMedia, { media, preferAvatar }) : void 0;
|
|
611
614
|
|
|
612
|
-
// ../renderers/src/
|
|
615
|
+
// ../renderers/src/NewListItem/getAdditionalText.tsx
|
|
616
|
+
import { ListItem } from "@transferwise/components";
|
|
613
617
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
618
|
+
var getAdditionalText = (additionalText) => {
|
|
619
|
+
if (!additionalText) {
|
|
620
|
+
return void 0;
|
|
621
|
+
}
|
|
622
|
+
return /* @__PURE__ */ jsx20(ListItem.AdditionalInfo, { children: additionalText });
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
// ../renderers/src/NewListItem/getSupportingValues.ts
|
|
626
|
+
var getSupportingValues = (supportingValues) => {
|
|
627
|
+
return __spreadValues(__spreadValues({}, (supportingValues == null ? void 0 : supportingValues.value) ? { valueTitle: supportingValues.value } : {}), (supportingValues == null ? void 0 : supportingValues.subvalue) ? { valueSubtitle: supportingValues.subvalue } : {});
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
// ../renderers/src/NewListItem/getInlineAlert.tsx
|
|
631
|
+
import { ListItem as ListItem2 } from "@transferwise/components";
|
|
632
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
633
|
+
var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ jsx21(ListItem2.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
|
|
634
|
+
|
|
635
|
+
// ../renderers/src/CheckboxInputRenderer.tsx
|
|
636
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
614
637
|
var CheckboxInputRenderer = {
|
|
615
638
|
canRenderType: "input-checkbox",
|
|
616
|
-
render: (props) =>
|
|
639
|
+
render: (props) => {
|
|
640
|
+
switch (props.control) {
|
|
641
|
+
case "switch-item":
|
|
642
|
+
return /* @__PURE__ */ jsx22(SwitchItemComponent, __spreadValues({}, props));
|
|
643
|
+
case "checkbox-item":
|
|
644
|
+
return /* @__PURE__ */ jsx22(CheckboxItemComponent, __spreadValues({}, props));
|
|
645
|
+
case "checkbox":
|
|
646
|
+
default:
|
|
647
|
+
return /* @__PURE__ */ jsx22(CheckboxComponent, __spreadValues({}, props));
|
|
648
|
+
}
|
|
649
|
+
}
|
|
617
650
|
};
|
|
618
651
|
var CheckboxComponent = (props) => {
|
|
619
652
|
const _a = props, {
|
|
@@ -636,27 +669,71 @@ var CheckboxComponent = (props) => {
|
|
|
636
669
|
"value"
|
|
637
670
|
]);
|
|
638
671
|
const checkboxProps = __spreadProps(__spreadValues({}, rest), { label: title, secondary: description, checked: value });
|
|
639
|
-
return /* @__PURE__ */
|
|
672
|
+
return /* @__PURE__ */ jsx22(FieldInput_default, { id, label: "", description: "", validation: validationState, help, children: /* @__PURE__ */ jsx22(Checkbox, __spreadValues({ id }, checkboxProps)) });
|
|
640
673
|
};
|
|
641
|
-
var
|
|
642
|
-
const {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
674
|
+
var CheckboxItemComponent = (props) => {
|
|
675
|
+
const {
|
|
676
|
+
additionalText,
|
|
677
|
+
description,
|
|
678
|
+
disabled,
|
|
679
|
+
inlineAlert,
|
|
680
|
+
media,
|
|
681
|
+
supportingValues,
|
|
682
|
+
title,
|
|
683
|
+
validationState,
|
|
684
|
+
value,
|
|
685
|
+
onChange
|
|
686
|
+
} = props;
|
|
687
|
+
return /* @__PURE__ */ jsx22(
|
|
688
|
+
ListItem3,
|
|
689
|
+
__spreadValues({
|
|
646
690
|
title,
|
|
647
691
|
subtitle: description,
|
|
692
|
+
additionalInfo: getAdditionalText(additionalText),
|
|
648
693
|
media: getMedia(media, false),
|
|
649
694
|
disabled,
|
|
650
|
-
prompt: validationState
|
|
651
|
-
control: /* @__PURE__ */
|
|
652
|
-
}
|
|
695
|
+
prompt: getInlineAlertOrValidation(validationState, inlineAlert),
|
|
696
|
+
control: /* @__PURE__ */ jsx22(ListItem3.Checkbox, { checked: value, onChange: () => onChange(!value) })
|
|
697
|
+
}, getSupportingValues(supportingValues))
|
|
653
698
|
);
|
|
654
699
|
};
|
|
700
|
+
var SwitchItemComponent = (props) => {
|
|
701
|
+
const {
|
|
702
|
+
additionalText,
|
|
703
|
+
description,
|
|
704
|
+
disabled,
|
|
705
|
+
inlineAlert,
|
|
706
|
+
media,
|
|
707
|
+
supportingValues,
|
|
708
|
+
title,
|
|
709
|
+
validationState,
|
|
710
|
+
value,
|
|
711
|
+
onChange
|
|
712
|
+
} = props;
|
|
713
|
+
return /* @__PURE__ */ jsx22(
|
|
714
|
+
ListItem3,
|
|
715
|
+
__spreadValues({
|
|
716
|
+
title,
|
|
717
|
+
subtitle: description,
|
|
718
|
+
additionalInfo: getAdditionalText(additionalText),
|
|
719
|
+
media: getMedia(media, false),
|
|
720
|
+
disabled,
|
|
721
|
+
prompt: getInlineAlertOrValidation(validationState, inlineAlert),
|
|
722
|
+
control: /* @__PURE__ */ jsx22(ListItem3.Switch, { checked: value, onClick: () => onChange(!value) })
|
|
723
|
+
}, getSupportingValues(supportingValues))
|
|
724
|
+
);
|
|
725
|
+
};
|
|
726
|
+
var getInlineAlertOrValidation = (validationState, inlineAlert) => {
|
|
727
|
+
if (validationState && validationState.status === "invalid") {
|
|
728
|
+
return /* @__PURE__ */ jsx22(ListItem3.Prompt, { sentiment: "negative", children: validationState.message });
|
|
729
|
+
}
|
|
730
|
+
return getInlineAlert(inlineAlert);
|
|
731
|
+
};
|
|
655
732
|
var CheckboxInputRenderer_default = CheckboxInputRenderer;
|
|
656
733
|
|
|
657
734
|
// ../renderers/src/ColumnsRenderer.tsx
|
|
658
735
|
import classNames2 from "classnames";
|
|
659
|
-
import { jsx as
|
|
736
|
+
import { jsx as jsx23, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
660
737
|
var ColumnsRenderer = {
|
|
661
738
|
canRenderType: "columns",
|
|
662
739
|
render: ({ bias, margin, startChildren, endChildren }) => /* @__PURE__ */ jsxs3(
|
|
@@ -667,8 +744,8 @@ var ColumnsRenderer = {
|
|
|
667
744
|
"df-columns-renderer-bias-end": bias === "end"
|
|
668
745
|
}),
|
|
669
746
|
children: [
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
/* @__PURE__ */
|
|
747
|
+
/* @__PURE__ */ jsx23("div", { className: "df-columns-renderer-column", children: startChildren }),
|
|
748
|
+
/* @__PURE__ */ jsx23("div", { className: "df-columns-renderer-column", children: endChildren })
|
|
672
749
|
]
|
|
673
750
|
}
|
|
674
751
|
)
|
|
@@ -703,7 +780,7 @@ var dateToDateString = (date) => {
|
|
|
703
780
|
};
|
|
704
781
|
|
|
705
782
|
// ../renderers/src/components/VariableDateInput.tsx
|
|
706
|
-
import { jsx as
|
|
783
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
707
784
|
function VariableDateInput({
|
|
708
785
|
control,
|
|
709
786
|
inputProps
|
|
@@ -719,7 +796,7 @@ function VariableDateInput({
|
|
|
719
796
|
onFocus
|
|
720
797
|
} = inputProps;
|
|
721
798
|
if (control === "date-lookup") {
|
|
722
|
-
return /* @__PURE__ */
|
|
799
|
+
return /* @__PURE__ */ jsx24(
|
|
723
800
|
DateLookup,
|
|
724
801
|
{
|
|
725
802
|
value: dateStringToDateOrNull(inputProps.value),
|
|
@@ -735,7 +812,7 @@ function VariableDateInput({
|
|
|
735
812
|
}
|
|
736
813
|
);
|
|
737
814
|
}
|
|
738
|
-
return /* @__PURE__ */
|
|
815
|
+
return /* @__PURE__ */ jsx24(
|
|
739
816
|
DateInput,
|
|
740
817
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
741
818
|
dayAutoComplete: getAutocompleteString(autoComplete, "day"),
|
|
@@ -752,7 +829,7 @@ var getAutocompleteString = (value, suffix) => {
|
|
|
752
829
|
var VariableDateInput_default = VariableDateInput;
|
|
753
830
|
|
|
754
831
|
// ../renderers/src/DateInputRenderer.tsx
|
|
755
|
-
import { jsx as
|
|
832
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
756
833
|
var DateInputRenderer = {
|
|
757
834
|
canRenderType: "input-date",
|
|
758
835
|
render: (props) => {
|
|
@@ -777,7 +854,7 @@ var DateInputRenderer = {
|
|
|
777
854
|
]);
|
|
778
855
|
const value = initialValue != null ? initialValue : "";
|
|
779
856
|
const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
|
|
780
|
-
return /* @__PURE__ */
|
|
857
|
+
return /* @__PURE__ */ jsx25(
|
|
781
858
|
FieldInput_default,
|
|
782
859
|
{
|
|
783
860
|
id,
|
|
@@ -785,7 +862,7 @@ var DateInputRenderer = {
|
|
|
785
862
|
description,
|
|
786
863
|
validation: validationState,
|
|
787
864
|
help,
|
|
788
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ jsx25(VariableDateInput_default, { control, inputProps })
|
|
789
866
|
}
|
|
790
867
|
);
|
|
791
868
|
}
|
|
@@ -907,7 +984,7 @@ var getGroupsFromTags = (knownTags, items) => {
|
|
|
907
984
|
};
|
|
908
985
|
|
|
909
986
|
// ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
|
|
910
|
-
import { Fragment, jsx as
|
|
987
|
+
import { Fragment, jsx as jsx26, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
911
988
|
var groupingTags = Object.keys(group_messages_default).filter((key) => key !== "all");
|
|
912
989
|
var isGroupedDecision = (options) => {
|
|
913
990
|
return getGroupsFromTags(groupingTags, options).length > 0;
|
|
@@ -917,8 +994,8 @@ var GroupedDecisionList = (_a) => {
|
|
|
917
994
|
const { formatMessage } = useIntl3();
|
|
918
995
|
const { options } = rest;
|
|
919
996
|
const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
|
|
920
|
-
return /* @__PURE__ */
|
|
921
|
-
/* @__PURE__ */
|
|
997
|
+
return /* @__PURE__ */ jsx26(Fragment, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ jsxs4(Section, { children: [
|
|
998
|
+
/* @__PURE__ */ jsx26(
|
|
922
999
|
Header,
|
|
923
1000
|
{
|
|
924
1001
|
as: "h2",
|
|
@@ -930,16 +1007,16 @@ var GroupedDecisionList = (_a) => {
|
|
|
930
1007
|
};
|
|
931
1008
|
|
|
932
1009
|
// ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
|
|
933
|
-
import { Fragment as Fragment2, jsx as
|
|
1010
|
+
import { Fragment as Fragment2, jsx as jsx27, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
934
1011
|
var DecisionWrapper = (props) => {
|
|
935
1012
|
return /* @__PURE__ */ jsxs5("div", { className: getMargin(props.margin), children: [
|
|
936
|
-
props.title && /* @__PURE__ */
|
|
937
|
-
props.control === "filtered" ? /* @__PURE__ */
|
|
1013
|
+
props.title && /* @__PURE__ */ jsx27(Header2, { as: "h2", title: props.title }),
|
|
1014
|
+
props.control === "filtered" ? /* @__PURE__ */ jsx27(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx27(UnfilteredDecisionList, __spreadValues({}, props))
|
|
938
1015
|
] });
|
|
939
1016
|
};
|
|
940
1017
|
var UnfilteredDecisionList = (_a) => {
|
|
941
1018
|
var _b = _a, { renderDecisionList: renderDecisionList3 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
|
|
942
|
-
return isGroupedDecision(rest.options) ? /* @__PURE__ */
|
|
1019
|
+
return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx27(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList3 })) : renderDecisionList3(rest);
|
|
943
1020
|
};
|
|
944
1021
|
var FilteredDecisionList = (props) => {
|
|
945
1022
|
const { formatMessage } = useIntl4();
|
|
@@ -948,7 +1025,7 @@ var FilteredDecisionList = (props) => {
|
|
|
948
1025
|
const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortDecisionOptions(options, query) : options;
|
|
949
1026
|
const isGrouped = isGroupedDecision(options);
|
|
950
1027
|
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
951
|
-
/* @__PURE__ */
|
|
1028
|
+
/* @__PURE__ */ jsx27(
|
|
952
1029
|
SearchInput,
|
|
953
1030
|
{
|
|
954
1031
|
placeholder: formatMessage(filter_messages_default.placeholder),
|
|
@@ -960,35 +1037,35 @@ var FilteredDecisionList = (props) => {
|
|
|
960
1037
|
}
|
|
961
1038
|
}
|
|
962
1039
|
),
|
|
963
|
-
isGrouped && query.length === 0 ? /* @__PURE__ */
|
|
964
|
-
query.length > 0 && /* @__PURE__ */
|
|
1040
|
+
isGrouped && query.length === 0 ? /* @__PURE__ */ jsx27(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1041
|
+
query.length > 0 && /* @__PURE__ */ jsx27(Header2, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
|
|
965
1042
|
filteredOptions.length > 0 ? renderDecisionList3({
|
|
966
1043
|
control,
|
|
967
1044
|
className: query.length === 0 ? "m-t-3" : "",
|
|
968
1045
|
options: filteredOptions
|
|
969
|
-
}) : /* @__PURE__ */
|
|
1046
|
+
}) : /* @__PURE__ */ jsx27("p", { children: formatMessage(filter_messages_default.noResults) })
|
|
970
1047
|
] })
|
|
971
1048
|
] });
|
|
972
1049
|
};
|
|
973
1050
|
|
|
974
1051
|
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
975
|
-
import { jsx as
|
|
1052
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
976
1053
|
var DecisionRenderer = {
|
|
977
1054
|
canRenderType: "decision",
|
|
978
1055
|
render: (props) => {
|
|
979
|
-
return /* @__PURE__ */
|
|
1056
|
+
return /* @__PURE__ */ jsx28(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }));
|
|
980
1057
|
}
|
|
981
1058
|
};
|
|
982
1059
|
var renderDecisionList = ({ options, className, control }) => {
|
|
983
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ jsx28("div", { className, children: /* @__PURE__ */ jsx28(NavigationOptionsList, { children: options.map((option) => {
|
|
984
1061
|
const { description, disabled, media, title: itemTitle, tag, onClick } = option;
|
|
985
|
-
return /* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ jsx28(
|
|
986
1063
|
NavigationOption,
|
|
987
1064
|
{
|
|
988
1065
|
title: itemTitle,
|
|
989
1066
|
content: description,
|
|
990
1067
|
disabled,
|
|
991
|
-
media: media ? /* @__PURE__ */
|
|
1068
|
+
media: media ? /* @__PURE__ */ jsx28(
|
|
992
1069
|
OptionMedia,
|
|
993
1070
|
{
|
|
994
1071
|
media,
|
|
@@ -1007,7 +1084,7 @@ var DecisionRenderer_default = DecisionRenderer;
|
|
|
1007
1084
|
|
|
1008
1085
|
// ../renderers/src/DividerRenderer.tsx
|
|
1009
1086
|
import { Divider } from "@transferwise/components";
|
|
1010
|
-
import { jsx as
|
|
1087
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1011
1088
|
var mapControlToLevel = (control) => {
|
|
1012
1089
|
switch (control) {
|
|
1013
1090
|
case "section":
|
|
@@ -1020,7 +1097,7 @@ var mapControlToLevel = (control) => {
|
|
|
1020
1097
|
};
|
|
1021
1098
|
var DividerRenderer = {
|
|
1022
1099
|
canRenderType: "divider",
|
|
1023
|
-
render: ({ margin, control }) => /* @__PURE__ */
|
|
1100
|
+
render: ({ margin, control }) => /* @__PURE__ */ jsx29(Divider, { className: `m-t-0 d-block ${getMargin(margin)}`, level: mapControlToLevel(control) })
|
|
1024
1101
|
};
|
|
1025
1102
|
var DividerRenderer_default = DividerRenderer;
|
|
1026
1103
|
|
|
@@ -1055,7 +1132,7 @@ var external_confirmation_messages_default = defineMessages5({
|
|
|
1055
1132
|
// ../renderers/src/ExternalConfirmationRenderer.tsx
|
|
1056
1133
|
import { useIntl as useIntl5 } from "react-intl";
|
|
1057
1134
|
import { useEffect as useEffect3 } from "react";
|
|
1058
|
-
import { Fragment as Fragment3, jsx as
|
|
1135
|
+
import { Fragment as Fragment3, jsx as jsx30, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1059
1136
|
var ExternalConfirmationRenderer = {
|
|
1060
1137
|
canRenderType: "external-confirmation",
|
|
1061
1138
|
render: ExternalConfirmationRendererComponent
|
|
@@ -1078,15 +1155,15 @@ function ExternalConfirmationRendererComponent({
|
|
|
1078
1155
|
}
|
|
1079
1156
|
}
|
|
1080
1157
|
}, []);
|
|
1081
|
-
return /* @__PURE__ */
|
|
1158
|
+
return /* @__PURE__ */ jsx30(
|
|
1082
1159
|
Modal,
|
|
1083
1160
|
{
|
|
1084
1161
|
open: status === "failure",
|
|
1085
1162
|
title: formatMessage(external_confirmation_messages_default.title),
|
|
1086
1163
|
body: /* @__PURE__ */ jsxs6(Fragment3, { children: [
|
|
1087
|
-
/* @__PURE__ */
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ jsx30(Markdown2, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(url) }) }),
|
|
1165
|
+
/* @__PURE__ */ jsx30("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs6("div", { className: "df-box-renderer-width-lg", children: [
|
|
1166
|
+
/* @__PURE__ */ jsx30(
|
|
1090
1167
|
Button3,
|
|
1091
1168
|
{
|
|
1092
1169
|
v2: true,
|
|
@@ -1101,7 +1178,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1101
1178
|
children: formatMessage(external_confirmation_messages_default.open)
|
|
1102
1179
|
}
|
|
1103
1180
|
),
|
|
1104
|
-
/* @__PURE__ */
|
|
1181
|
+
/* @__PURE__ */ jsx30(Button3, { v2: true, block: true, className: "m-b-2", priority: "tertiary", size: "md", onClick: onCancel, children: formatMessage(external_confirmation_messages_default.cancel) })
|
|
1105
1182
|
] }) })
|
|
1106
1183
|
] }),
|
|
1107
1184
|
onClose: onCancel
|
|
@@ -1118,27 +1195,27 @@ function getOrigin(url) {
|
|
|
1118
1195
|
var ExternalConfirmationRenderer_default = ExternalConfirmationRenderer;
|
|
1119
1196
|
|
|
1120
1197
|
// ../renderers/src/FormRenderer.tsx
|
|
1121
|
-
import { jsx as
|
|
1198
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1122
1199
|
var FormRenderer = {
|
|
1123
1200
|
canRenderType: "form",
|
|
1124
|
-
render: ({ children, margin }) => /* @__PURE__ */
|
|
1201
|
+
render: ({ children, margin }) => /* @__PURE__ */ jsx31("div", { className: getMargin(margin), children })
|
|
1125
1202
|
};
|
|
1126
1203
|
var FormRenderer_default = FormRenderer;
|
|
1127
1204
|
|
|
1128
1205
|
// ../renderers/src/FormSectionRenderer.tsx
|
|
1129
1206
|
import { Header as Header3 } from "@transferwise/components";
|
|
1130
|
-
import { jsx as
|
|
1207
|
+
import { jsx as jsx32, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1131
1208
|
var FormSectionRenderer = {
|
|
1132
1209
|
canRenderType: "form-section",
|
|
1133
1210
|
render: ({ title, description, children }) => /* @__PURE__ */ jsxs7("fieldset", { children: [
|
|
1134
|
-
title && /* @__PURE__ */
|
|
1211
|
+
title && /* @__PURE__ */ jsx32(
|
|
1135
1212
|
Header3,
|
|
1136
1213
|
{
|
|
1137
1214
|
as: "h2",
|
|
1138
1215
|
title
|
|
1139
1216
|
}
|
|
1140
1217
|
),
|
|
1141
|
-
description && /* @__PURE__ */
|
|
1218
|
+
description && /* @__PURE__ */ jsx32("p", { children: description }),
|
|
1142
1219
|
children
|
|
1143
1220
|
] })
|
|
1144
1221
|
};
|
|
@@ -1146,18 +1223,18 @@ var FormSectionRenderer_default = FormSectionRenderer;
|
|
|
1146
1223
|
|
|
1147
1224
|
// ../renderers/src/HeadingRenderer.tsx
|
|
1148
1225
|
import { Display, Title } from "@transferwise/components";
|
|
1149
|
-
import { jsx as
|
|
1226
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1150
1227
|
var HeadingRenderer = {
|
|
1151
1228
|
canRenderType: "heading",
|
|
1152
|
-
render: (props) => /* @__PURE__ */
|
|
1229
|
+
render: (props) => /* @__PURE__ */ jsx33(Heading, __spreadValues({}, props))
|
|
1153
1230
|
};
|
|
1154
1231
|
function Heading(props) {
|
|
1155
1232
|
const { text, size, align, margin, control } = props;
|
|
1156
1233
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
1157
|
-
return control === "display" ? /* @__PURE__ */
|
|
1234
|
+
return control === "display" ? /* @__PURE__ */ jsx33(DisplayHeading, { size, text, className }) : /* @__PURE__ */ jsx33(StandardHeading, { size, text, className });
|
|
1158
1235
|
}
|
|
1159
1236
|
function DisplayHeading({ size, text, className }) {
|
|
1160
|
-
return /* @__PURE__ */
|
|
1237
|
+
return /* @__PURE__ */ jsx33(Display, { type: getDisplayType(size), className, children: text });
|
|
1161
1238
|
}
|
|
1162
1239
|
var getDisplayType = (size) => {
|
|
1163
1240
|
switch (size) {
|
|
@@ -1173,7 +1250,7 @@ var getDisplayType = (size) => {
|
|
|
1173
1250
|
}
|
|
1174
1251
|
};
|
|
1175
1252
|
function StandardHeading({ size, text, className }) {
|
|
1176
|
-
return /* @__PURE__ */
|
|
1253
|
+
return /* @__PURE__ */ jsx33(Title, { type: getTitleTypeBySize(size), className, children: text });
|
|
1177
1254
|
}
|
|
1178
1255
|
var getTitleTypeBySize = (size) => {
|
|
1179
1256
|
var _a;
|
|
@@ -1200,7 +1277,7 @@ function isRelativePath(url = "") {
|
|
|
1200
1277
|
}
|
|
1201
1278
|
|
|
1202
1279
|
// ../renderers/src/ImageRenderer/UrlImage.tsx
|
|
1203
|
-
import { jsx as
|
|
1280
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1204
1281
|
function UrlImage({
|
|
1205
1282
|
accessibilityDescription,
|
|
1206
1283
|
align,
|
|
@@ -1215,7 +1292,7 @@ function UrlImage({
|
|
|
1215
1292
|
void getImageSource(httpClient, uri).then(setImageSource);
|
|
1216
1293
|
}
|
|
1217
1294
|
}, [uri, httpClient]);
|
|
1218
|
-
return /* @__PURE__ */
|
|
1295
|
+
return /* @__PURE__ */ jsx34("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ jsx34(
|
|
1219
1296
|
Image,
|
|
1220
1297
|
{
|
|
1221
1298
|
className: `img-responsive ${getMargin(margin)}`,
|
|
@@ -1259,7 +1336,7 @@ var getImageSource = async (httpClient, imageUrl) => {
|
|
|
1259
1336
|
};
|
|
1260
1337
|
|
|
1261
1338
|
// ../renderers/src/ImageRenderer/UrnFlagImage.tsx
|
|
1262
|
-
import { jsx as
|
|
1339
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1263
1340
|
var maxFlagSize = 600;
|
|
1264
1341
|
function UrnFlagImage({
|
|
1265
1342
|
accessibilityDescription,
|
|
@@ -1268,7 +1345,7 @@ function UrnFlagImage({
|
|
|
1268
1345
|
size,
|
|
1269
1346
|
uri
|
|
1270
1347
|
}) {
|
|
1271
|
-
return /* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ jsx35("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx35(UrnFlag, { size: maxFlagSize, urn: uri, accessibilityDescription }) });
|
|
1272
1349
|
}
|
|
1273
1350
|
|
|
1274
1351
|
// ../renderers/src/ImageRenderer/UrnIllustration.tsx
|
|
@@ -1287,7 +1364,7 @@ var isAnimated = (uri) => {
|
|
|
1287
1364
|
// ../renderers/src/ImageRenderer/SafeIllustration3D.tsx
|
|
1288
1365
|
import { Illustration3D } from "@wise/art";
|
|
1289
1366
|
import { Component } from "react";
|
|
1290
|
-
import { jsx as
|
|
1367
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1291
1368
|
var Illustration3DErrorBoundary = class extends Component {
|
|
1292
1369
|
constructor(props) {
|
|
1293
1370
|
super(props);
|
|
@@ -1311,12 +1388,12 @@ var SafeIllustration3D = ({
|
|
|
1311
1388
|
size,
|
|
1312
1389
|
onError
|
|
1313
1390
|
}) => {
|
|
1314
|
-
return /* @__PURE__ */
|
|
1391
|
+
return /* @__PURE__ */ jsx36(Illustration3DErrorBoundary, { onError, children: /* @__PURE__ */ jsx36(Illustration3D, { name, size }) });
|
|
1315
1392
|
};
|
|
1316
1393
|
var SafeIllustration3D_default = SafeIllustration3D;
|
|
1317
1394
|
|
|
1318
1395
|
// ../renderers/src/ImageRenderer/UrnIllustration.tsx
|
|
1319
|
-
import { jsx as
|
|
1396
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1320
1397
|
var urnPrefix = "urn:wise:illustrations:";
|
|
1321
1398
|
var isUrnIllustration = (uri) => uri.startsWith(urnPrefix);
|
|
1322
1399
|
function UrnIllustration({
|
|
@@ -1331,7 +1408,7 @@ function UrnIllustration({
|
|
|
1331
1408
|
const illustrationName = getIllustrationName(uri);
|
|
1332
1409
|
const illustration3DName = getIllustration3DName(uri);
|
|
1333
1410
|
if (illustration3DName && isAnimated(uri) && !has3DFailed) {
|
|
1334
|
-
return /* @__PURE__ */
|
|
1411
|
+
return /* @__PURE__ */ jsx37("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx37(
|
|
1335
1412
|
SafeIllustration3D_default,
|
|
1336
1413
|
{
|
|
1337
1414
|
name: illustration3DName,
|
|
@@ -1340,7 +1417,7 @@ function UrnIllustration({
|
|
|
1340
1417
|
}
|
|
1341
1418
|
) });
|
|
1342
1419
|
}
|
|
1343
|
-
return /* @__PURE__ */
|
|
1420
|
+
return /* @__PURE__ */ jsx37("div", { className: `df-image ${align} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx37(
|
|
1344
1421
|
Illustration,
|
|
1345
1422
|
{
|
|
1346
1423
|
className: "df-illustration",
|
|
@@ -1360,24 +1437,24 @@ var getIllustration3DName = (uri) => {
|
|
|
1360
1437
|
};
|
|
1361
1438
|
|
|
1362
1439
|
// ../renderers/src/ImageRenderer/UrnImage.tsx
|
|
1363
|
-
import { jsx as
|
|
1440
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1364
1441
|
var isUrnImage = (uri) => uri.startsWith("urn:");
|
|
1365
1442
|
function UrnImage(props) {
|
|
1366
1443
|
const { uri } = props;
|
|
1367
1444
|
if (isUrnIllustration(uri)) {
|
|
1368
|
-
return /* @__PURE__ */
|
|
1445
|
+
return /* @__PURE__ */ jsx38(UrnIllustration, __spreadValues({}, props));
|
|
1369
1446
|
}
|
|
1370
1447
|
if (isUrnFlag(uri)) {
|
|
1371
|
-
return /* @__PURE__ */
|
|
1448
|
+
return /* @__PURE__ */ jsx38(UrnFlagImage, __spreadValues({}, props));
|
|
1372
1449
|
}
|
|
1373
1450
|
return null;
|
|
1374
1451
|
}
|
|
1375
1452
|
|
|
1376
1453
|
// ../renderers/src/ImageRenderer/ImageRenderer.tsx
|
|
1377
|
-
import { jsx as
|
|
1454
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
1378
1455
|
var ImageRenderer = {
|
|
1379
1456
|
canRenderType: "image",
|
|
1380
|
-
render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */
|
|
1457
|
+
render: (props) => isUrnImage(props.uri) ? /* @__PURE__ */ jsx39(UrnImage, __spreadValues({}, props)) : /* @__PURE__ */ jsx39(UrlImage, __spreadValues({}, props))
|
|
1381
1458
|
};
|
|
1382
1459
|
|
|
1383
1460
|
// ../renderers/src/ImageRenderer/index.tsx
|
|
@@ -1385,7 +1462,7 @@ var ImageRenderer_default = ImageRenderer;
|
|
|
1385
1462
|
|
|
1386
1463
|
// ../renderers/src/InstructionsRenderer.tsx
|
|
1387
1464
|
import { Header as Header4, InstructionsList } from "@transferwise/components";
|
|
1388
|
-
import { jsx as
|
|
1465
|
+
import { jsx as jsx40, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1389
1466
|
var doContext = ["positive", "neutral"];
|
|
1390
1467
|
var dontContext = ["warning", "negative"];
|
|
1391
1468
|
var InstructionsRenderer = {
|
|
@@ -1394,8 +1471,8 @@ var InstructionsRenderer = {
|
|
|
1394
1471
|
const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
|
|
1395
1472
|
const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
|
|
1396
1473
|
return /* @__PURE__ */ jsxs8("div", { className: getMargin(margin), children: [
|
|
1397
|
-
title ? /* @__PURE__ */
|
|
1398
|
-
/* @__PURE__ */
|
|
1474
|
+
title ? /* @__PURE__ */ jsx40(Header4, { title }) : null,
|
|
1475
|
+
/* @__PURE__ */ jsx40(InstructionsList, { dos, donts })
|
|
1399
1476
|
] });
|
|
1400
1477
|
}
|
|
1401
1478
|
};
|
|
@@ -1427,7 +1504,7 @@ function pick(obj, ...keys) {
|
|
|
1427
1504
|
}
|
|
1428
1505
|
|
|
1429
1506
|
// ../renderers/src/IntegerInputRenderer.tsx
|
|
1430
|
-
import { jsx as
|
|
1507
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
1431
1508
|
var IntegerInputRenderer = {
|
|
1432
1509
|
canRenderType: "input-integer",
|
|
1433
1510
|
render: (props) => {
|
|
@@ -1442,7 +1519,7 @@ var IntegerInputRenderer = {
|
|
|
1442
1519
|
"maximum",
|
|
1443
1520
|
"minimum"
|
|
1444
1521
|
);
|
|
1445
|
-
return /* @__PURE__ */
|
|
1522
|
+
return /* @__PURE__ */ jsx41(
|
|
1446
1523
|
FieldInput_default,
|
|
1447
1524
|
{
|
|
1448
1525
|
id,
|
|
@@ -1450,7 +1527,7 @@ var IntegerInputRenderer = {
|
|
|
1450
1527
|
description,
|
|
1451
1528
|
validation: validationState,
|
|
1452
1529
|
help,
|
|
1453
|
-
children: /* @__PURE__ */
|
|
1530
|
+
children: /* @__PURE__ */ jsx41(InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx41(
|
|
1454
1531
|
Input,
|
|
1455
1532
|
__spreadValues({
|
|
1456
1533
|
id,
|
|
@@ -1475,12 +1552,12 @@ var IntegerInputRenderer_default = IntegerInputRenderer;
|
|
|
1475
1552
|
// ../renderers/src/ListRenderer.tsx
|
|
1476
1553
|
import { Body, Header as Header5 } from "@transferwise/components";
|
|
1477
1554
|
import classNames3 from "classnames";
|
|
1478
|
-
import { jsx as
|
|
1555
|
+
import { jsx as jsx42, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1479
1556
|
var ListRenderer = {
|
|
1480
1557
|
canRenderType: "list",
|
|
1481
1558
|
render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ jsxs9("div", { className: getMargin(margin), children: [
|
|
1482
|
-
(title || callToAction) && /* @__PURE__ */
|
|
1483
|
-
items.map((props) => /* @__PURE__ */
|
|
1559
|
+
(title || callToAction) && /* @__PURE__ */ jsx42(Header5, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
|
|
1560
|
+
items.map((props) => /* @__PURE__ */ jsx42(DesignSystemListItem, __spreadProps(__spreadValues({}, props), { control }), props.title))
|
|
1484
1561
|
] })
|
|
1485
1562
|
};
|
|
1486
1563
|
var DesignSystemListItem = ({
|
|
@@ -1492,7 +1569,7 @@ var DesignSystemListItem = ({
|
|
|
1492
1569
|
media,
|
|
1493
1570
|
control,
|
|
1494
1571
|
tag
|
|
1495
|
-
}) => /* @__PURE__ */
|
|
1572
|
+
}) => /* @__PURE__ */ jsx42(
|
|
1496
1573
|
"label",
|
|
1497
1574
|
{
|
|
1498
1575
|
className: classNames3("np-option p-a-2", {
|
|
@@ -1500,7 +1577,7 @@ var DesignSystemListItem = ({
|
|
|
1500
1577
|
"np-option__container-aligned": true
|
|
1501
1578
|
}),
|
|
1502
1579
|
children: /* @__PURE__ */ jsxs9("div", { className: "media", children: [
|
|
1503
|
-
icon || image || media ? /* @__PURE__ */
|
|
1580
|
+
icon || image || media ? /* @__PURE__ */ jsx42("div", { className: "media-left", children: /* @__PURE__ */ jsx42(
|
|
1504
1581
|
ListItemMedia,
|
|
1505
1582
|
{
|
|
1506
1583
|
icon,
|
|
@@ -1510,12 +1587,12 @@ var DesignSystemListItem = ({
|
|
|
1510
1587
|
) }) : null,
|
|
1511
1588
|
/* @__PURE__ */ jsxs9("div", { className: "media-body", children: [
|
|
1512
1589
|
/* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
|
|
1513
|
-
/* @__PURE__ */
|
|
1514
|
-
/* @__PURE__ */
|
|
1590
|
+
/* @__PURE__ */ jsx42("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: title }),
|
|
1591
|
+
/* @__PURE__ */ jsx42("h4", { className: "np-text-body-large-bold text-primary np-option__title", children: supportingValues == null ? void 0 : supportingValues.value })
|
|
1515
1592
|
] }),
|
|
1516
1593
|
/* @__PURE__ */ jsxs9("div", { className: "d-flex justify-content-between", children: [
|
|
1517
|
-
/* @__PURE__ */
|
|
1518
|
-
/* @__PURE__ */
|
|
1594
|
+
/* @__PURE__ */ jsx42(Body, { className: "d-block np-option__body", children: description }),
|
|
1595
|
+
/* @__PURE__ */ jsx42(Body, { className: "d-block np-option__body", children: supportingValues == null ? void 0 : supportingValues.subvalue })
|
|
1519
1596
|
] })
|
|
1520
1597
|
] })
|
|
1521
1598
|
] })
|
|
@@ -1528,9 +1605,9 @@ var ListItemMedia = ({
|
|
|
1528
1605
|
preferAvatar
|
|
1529
1606
|
}) => {
|
|
1530
1607
|
if (icon) {
|
|
1531
|
-
return /* @__PURE__ */
|
|
1608
|
+
return /* @__PURE__ */ jsx42("div", { className: "circle circle-sm text-primary circle-inverse", children: /* @__PURE__ */ jsx42(OptionMedia, { media, preferAvatar }) });
|
|
1532
1609
|
}
|
|
1533
|
-
return /* @__PURE__ */
|
|
1610
|
+
return /* @__PURE__ */ jsx42("div", { className: "np-option__no-media-circle", children: /* @__PURE__ */ jsx42(OptionMedia, { media, preferAvatar }) });
|
|
1534
1611
|
};
|
|
1535
1612
|
var getListAction = (callToAction) => {
|
|
1536
1613
|
if (callToAction) {
|
|
@@ -1546,10 +1623,10 @@ var ListRenderer_default = ListRenderer;
|
|
|
1546
1623
|
|
|
1547
1624
|
// ../renderers/src/LoadingIndicatorRenderer.tsx
|
|
1548
1625
|
import { Loader } from "@transferwise/components";
|
|
1549
|
-
import { jsx as
|
|
1626
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
1550
1627
|
var LoadingIndicatorRenderer = {
|
|
1551
1628
|
canRenderType: "loading-indicator",
|
|
1552
|
-
render: ({ margin, size }) => /* @__PURE__ */
|
|
1629
|
+
render: ({ margin, size }) => /* @__PURE__ */ jsx43(
|
|
1553
1630
|
Loader,
|
|
1554
1631
|
{
|
|
1555
1632
|
size,
|
|
@@ -1562,10 +1639,10 @@ var LoadingIndicatorRenderer_default = LoadingIndicatorRenderer;
|
|
|
1562
1639
|
|
|
1563
1640
|
// ../renderers/src/MarkdownRenderer.tsx
|
|
1564
1641
|
import { Markdown as Markdown3 } from "@transferwise/components";
|
|
1565
|
-
import { jsx as
|
|
1642
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
1566
1643
|
var MarkdownRenderer = {
|
|
1567
1644
|
canRenderType: "markdown",
|
|
1568
|
-
render: ({ content, align, margin, size }) => /* @__PURE__ */
|
|
1645
|
+
render: ({ content, align, margin, size }) => /* @__PURE__ */ jsx44("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx44(
|
|
1569
1646
|
Markdown3,
|
|
1570
1647
|
{
|
|
1571
1648
|
className: ["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large",
|
|
@@ -1579,18 +1656,18 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
1579
1656
|
// ../renderers/src/ModalLayoutRenderer.tsx
|
|
1580
1657
|
import { Button as Button4, Modal as Modal2 } from "@transferwise/components";
|
|
1581
1658
|
import { useState as useState6 } from "react";
|
|
1582
|
-
import { jsx as
|
|
1659
|
+
import { jsx as jsx45, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1583
1660
|
var ModalLayoutRenderer = {
|
|
1584
1661
|
canRenderType: "modal-layout",
|
|
1585
|
-
render: (props) => /* @__PURE__ */
|
|
1662
|
+
render: (props) => /* @__PURE__ */ jsx45(DFModal, __spreadValues({}, props))
|
|
1586
1663
|
};
|
|
1587
1664
|
var ModalLayoutRenderer_default = ModalLayoutRenderer;
|
|
1588
1665
|
function DFModal({ content, margin, trigger }) {
|
|
1589
1666
|
const [visible, setVisible] = useState6(false);
|
|
1590
1667
|
const { children, title } = content;
|
|
1591
1668
|
return /* @__PURE__ */ jsxs10("div", { className: getMargin(margin), children: [
|
|
1592
|
-
/* @__PURE__ */
|
|
1593
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ jsx45(Button4, { v2: true, priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
|
|
1670
|
+
/* @__PURE__ */ jsx45(
|
|
1594
1671
|
Modal2,
|
|
1595
1672
|
{
|
|
1596
1673
|
scroll: "content",
|
|
@@ -1606,11 +1683,11 @@ function DFModal({ content, margin, trigger }) {
|
|
|
1606
1683
|
|
|
1607
1684
|
// ../renderers/src/ModalRenderer.tsx
|
|
1608
1685
|
import { Modal as Modal3 } from "@transferwise/components";
|
|
1609
|
-
import { jsx as
|
|
1686
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
1610
1687
|
var ModalRenderer = {
|
|
1611
1688
|
canRenderType: "modal",
|
|
1612
1689
|
render: ({ title, children, open, onClose }) => {
|
|
1613
|
-
return /* @__PURE__ */
|
|
1690
|
+
return /* @__PURE__ */ jsx46(Modal3, { open, title, body: children, onClose });
|
|
1614
1691
|
}
|
|
1615
1692
|
};
|
|
1616
1693
|
|
|
@@ -1618,7 +1695,7 @@ var ModalRenderer = {
|
|
|
1618
1695
|
import { MoneyInput } from "@transferwise/components";
|
|
1619
1696
|
import { useEffect as useEffect5 } from "react";
|
|
1620
1697
|
import { useIntl as useIntl6 } from "react-intl";
|
|
1621
|
-
import { jsx as
|
|
1698
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
1622
1699
|
var groupingTags2 = Object.keys(group_messages_default).filter((key) => key !== "all");
|
|
1623
1700
|
var MoneyInputRenderer = {
|
|
1624
1701
|
canRenderType: "money-input",
|
|
@@ -1645,7 +1722,7 @@ function MoneyInputRendererComponent(props) {
|
|
|
1645
1722
|
}
|
|
1646
1723
|
}, [selectedCurrencyIndex, onCurrencyChange, currencies.length]);
|
|
1647
1724
|
const { formatMessage } = useIntl6();
|
|
1648
|
-
return /* @__PURE__ */
|
|
1725
|
+
return /* @__PURE__ */ jsx47(
|
|
1649
1726
|
FieldInput_default,
|
|
1650
1727
|
{
|
|
1651
1728
|
id: uid,
|
|
@@ -1653,7 +1730,7 @@ function MoneyInputRendererComponent(props) {
|
|
|
1653
1730
|
description,
|
|
1654
1731
|
validation: validationState,
|
|
1655
1732
|
help,
|
|
1656
|
-
children: /* @__PURE__ */
|
|
1733
|
+
children: /* @__PURE__ */ jsx47(
|
|
1657
1734
|
MoneyInput,
|
|
1658
1735
|
{
|
|
1659
1736
|
amount: parseFloatOrNull(amountValue),
|
|
@@ -1730,10 +1807,10 @@ var multi_select_messages_default = defineMessages6({
|
|
|
1730
1807
|
});
|
|
1731
1808
|
|
|
1732
1809
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
1733
|
-
import { jsx as
|
|
1810
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
1734
1811
|
var MultiSelectInputRenderer = {
|
|
1735
1812
|
canRenderType: "input-multi-select",
|
|
1736
|
-
render: (props) => /* @__PURE__ */
|
|
1813
|
+
render: (props) => /* @__PURE__ */ jsx48(MultiSelectInputRendererComponent, __spreadValues({}, props))
|
|
1737
1814
|
};
|
|
1738
1815
|
function MultiSelectInputRendererComponent(props) {
|
|
1739
1816
|
const { formatMessage } = useIntl7();
|
|
@@ -1775,12 +1852,12 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
1775
1852
|
const contentProps = {
|
|
1776
1853
|
title: option.title,
|
|
1777
1854
|
description: option.description,
|
|
1778
|
-
icon: /* @__PURE__ */
|
|
1855
|
+
icon: /* @__PURE__ */ jsx48(OptionMedia, { media: option.media, preferAvatar: false })
|
|
1779
1856
|
};
|
|
1780
|
-
return /* @__PURE__ */
|
|
1857
|
+
return /* @__PURE__ */ jsx48(SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
1781
1858
|
};
|
|
1782
1859
|
const extraProps = { autoComplete };
|
|
1783
|
-
return /* @__PURE__ */
|
|
1860
|
+
return /* @__PURE__ */ jsx48(
|
|
1784
1861
|
FieldInput_default,
|
|
1785
1862
|
{
|
|
1786
1863
|
id,
|
|
@@ -1788,7 +1865,7 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
1788
1865
|
help,
|
|
1789
1866
|
description,
|
|
1790
1867
|
validation: validationState,
|
|
1791
|
-
children: /* @__PURE__ */
|
|
1868
|
+
children: /* @__PURE__ */ jsx48(
|
|
1792
1869
|
SelectInput,
|
|
1793
1870
|
__spreadValues({
|
|
1794
1871
|
id,
|
|
@@ -1828,12 +1905,12 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
1828
1905
|
var MultiSelectInputRenderer_default = MultiSelectInputRenderer;
|
|
1829
1906
|
|
|
1830
1907
|
// ../renderers/src/MultiUploadInputRenderer.tsx
|
|
1831
|
-
import { UploadInput } from "@transferwise/components";
|
|
1908
|
+
import { Status, UploadInput } from "@transferwise/components";
|
|
1832
1909
|
|
|
1833
1910
|
// ../renderers/src/components/UploadFieldInput.tsx
|
|
1834
1911
|
import { InlineAlert as InlineAlert2 } from "@transferwise/components";
|
|
1835
1912
|
import classNames4 from "classnames";
|
|
1836
|
-
import { jsx as
|
|
1913
|
+
import { jsx as jsx49, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1837
1914
|
function UploadFieldInput({
|
|
1838
1915
|
id,
|
|
1839
1916
|
children,
|
|
@@ -1842,7 +1919,7 @@ function UploadFieldInput({
|
|
|
1842
1919
|
help,
|
|
1843
1920
|
validation
|
|
1844
1921
|
}) {
|
|
1845
|
-
const labelContent = label && help ? /* @__PURE__ */
|
|
1922
|
+
const labelContent = label && help ? /* @__PURE__ */ jsx49(LabelContentWithHelp, { text: label, help }) : label;
|
|
1846
1923
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
1847
1924
|
return /* @__PURE__ */ jsxs11(
|
|
1848
1925
|
"div",
|
|
@@ -1851,9 +1928,9 @@ function UploadFieldInput({
|
|
|
1851
1928
|
"has-error": (validation == null ? void 0 : validation.status) === "invalid"
|
|
1852
1929
|
}),
|
|
1853
1930
|
children: [
|
|
1854
|
-
/* @__PURE__ */
|
|
1931
|
+
/* @__PURE__ */ jsx49("label", { htmlFor: id, className: "control-label", children: labelContent }),
|
|
1855
1932
|
children,
|
|
1856
|
-
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */
|
|
1933
|
+
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ jsx49(InlineAlert2, { type: "negative", id: descriptionId, children: validation.message })
|
|
1857
1934
|
]
|
|
1858
1935
|
}
|
|
1859
1936
|
);
|
|
@@ -1888,7 +1965,7 @@ var getSizeLimit = (maxSize) => {
|
|
|
1888
1965
|
};
|
|
1889
1966
|
|
|
1890
1967
|
// ../renderers/src/MultiUploadInputRenderer.tsx
|
|
1891
|
-
import { jsx as
|
|
1968
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
1892
1969
|
var MultiUploadInputRenderer = {
|
|
1893
1970
|
canRenderType: "input-upload-multi",
|
|
1894
1971
|
render: (props) => {
|
|
@@ -1913,7 +1990,7 @@ var MultiUploadInputRenderer = {
|
|
|
1913
1990
|
};
|
|
1914
1991
|
const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
|
|
1915
1992
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
1916
|
-
return /* @__PURE__ */
|
|
1993
|
+
return /* @__PURE__ */ jsx50(
|
|
1917
1994
|
UploadFieldInput_default,
|
|
1918
1995
|
{
|
|
1919
1996
|
id,
|
|
@@ -1921,13 +1998,18 @@ var MultiUploadInputRenderer = {
|
|
|
1921
1998
|
description,
|
|
1922
1999
|
validation: validationState,
|
|
1923
2000
|
help,
|
|
1924
|
-
children: /* @__PURE__ */
|
|
2001
|
+
children: /* @__PURE__ */ jsx50(
|
|
1925
2002
|
UploadInput,
|
|
1926
2003
|
{
|
|
1927
2004
|
id,
|
|
1928
2005
|
"aria-describedby": descriptionId,
|
|
1929
2006
|
description,
|
|
1930
2007
|
disabled,
|
|
2008
|
+
files: value.map(({ id: id2, file, validationState: validationState2 }) => ({
|
|
2009
|
+
id: id2,
|
|
2010
|
+
filename: file.name,
|
|
2011
|
+
status: (validationState2 == null ? void 0 : validationState2.status) === "invalid" ? Status.FAILED : Status.SUCCEEDED
|
|
2012
|
+
})),
|
|
1931
2013
|
fileTypes: acceptsToFileTypes(accepts),
|
|
1932
2014
|
maxFiles: maxItems,
|
|
1933
2015
|
multiple: true,
|
|
@@ -1945,7 +2027,7 @@ var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
|
|
|
1945
2027
|
|
|
1946
2028
|
// ../renderers/src/NumberInputRenderer.tsx
|
|
1947
2029
|
import { Input as Input2, InputGroup as InputGroup2 } from "@transferwise/components";
|
|
1948
|
-
import { jsx as
|
|
2030
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
1949
2031
|
var NumberInputRenderer = {
|
|
1950
2032
|
canRenderType: "input-number",
|
|
1951
2033
|
render: (props) => {
|
|
@@ -1959,7 +2041,7 @@ var NumberInputRenderer = {
|
|
|
1959
2041
|
"maximum",
|
|
1960
2042
|
"minimum"
|
|
1961
2043
|
);
|
|
1962
|
-
return /* @__PURE__ */
|
|
2044
|
+
return /* @__PURE__ */ jsx51(
|
|
1963
2045
|
FieldInput_default,
|
|
1964
2046
|
{
|
|
1965
2047
|
id,
|
|
@@ -1967,7 +2049,7 @@ var NumberInputRenderer = {
|
|
|
1967
2049
|
description,
|
|
1968
2050
|
validation: validationState,
|
|
1969
2051
|
help,
|
|
1970
|
-
children: /* @__PURE__ */
|
|
2052
|
+
children: /* @__PURE__ */ jsx51(InputGroup2, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx51(
|
|
1971
2053
|
Input2,
|
|
1972
2054
|
__spreadValues({
|
|
1973
2055
|
id,
|
|
@@ -2019,14 +2101,14 @@ var paragraph_messages_default = defineMessages7({
|
|
|
2019
2101
|
});
|
|
2020
2102
|
|
|
2021
2103
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
2022
|
-
import { jsx as
|
|
2104
|
+
import { jsx as jsx52, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2023
2105
|
var ParagraphRenderer = {
|
|
2024
2106
|
canRenderType: "paragraph",
|
|
2025
|
-
render: (props) => /* @__PURE__ */
|
|
2107
|
+
render: (props) => /* @__PURE__ */ jsx52(Paragraph, __spreadValues({}, props))
|
|
2026
2108
|
};
|
|
2027
2109
|
function Paragraph({ align, control, margin, size, text }) {
|
|
2028
2110
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
2029
|
-
return control === "copyable" ? /* @__PURE__ */
|
|
2111
|
+
return control === "copyable" ? /* @__PURE__ */ jsx52(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ jsx52(
|
|
2030
2112
|
"p",
|
|
2031
2113
|
{
|
|
2032
2114
|
className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
|
|
@@ -2047,7 +2129,7 @@ function CopyableParagraph({
|
|
|
2047
2129
|
};
|
|
2048
2130
|
const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
|
|
2049
2131
|
return /* @__PURE__ */ jsxs12("div", { className, children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ jsx52(
|
|
2051
2133
|
Input3,
|
|
2052
2134
|
{
|
|
2053
2135
|
type: "text",
|
|
@@ -2056,7 +2138,7 @@ function CopyableParagraph({
|
|
|
2056
2138
|
className: classNames5("text-ellipsis", inputAlignmentClasses)
|
|
2057
2139
|
}
|
|
2058
2140
|
),
|
|
2059
|
-
/* @__PURE__ */
|
|
2141
|
+
/* @__PURE__ */ jsx52(Button5, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
|
|
2060
2142
|
] });
|
|
2061
2143
|
}
|
|
2062
2144
|
var ParagraphRenderer_default = ParagraphRenderer;
|
|
@@ -2094,10 +2176,10 @@ var repeatable_messages_default = defineMessages8({
|
|
|
2094
2176
|
});
|
|
2095
2177
|
|
|
2096
2178
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2097
|
-
import { Fragment as Fragment4, jsx as
|
|
2179
|
+
import { Fragment as Fragment4, jsx as jsx53, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2098
2180
|
var RepeatableRenderer = {
|
|
2099
2181
|
canRenderType: "repeatable",
|
|
2100
|
-
render: (props) => /* @__PURE__ */
|
|
2182
|
+
render: (props) => /* @__PURE__ */ jsx53(Repeatable, __spreadValues({}, props))
|
|
2101
2183
|
};
|
|
2102
2184
|
function Repeatable(props) {
|
|
2103
2185
|
const {
|
|
@@ -2137,8 +2219,8 @@ function Repeatable(props) {
|
|
|
2137
2219
|
setOpenModalType(null);
|
|
2138
2220
|
};
|
|
2139
2221
|
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
2140
|
-
title && /* @__PURE__ */
|
|
2141
|
-
description && /* @__PURE__ */
|
|
2222
|
+
title && /* @__PURE__ */ jsx53(Header6, { title }),
|
|
2223
|
+
description && /* @__PURE__ */ jsx53("p", { children: description }),
|
|
2142
2224
|
/* @__PURE__ */ jsxs13(
|
|
2143
2225
|
"div",
|
|
2144
2226
|
{
|
|
@@ -2146,30 +2228,30 @@ function Repeatable(props) {
|
|
|
2146
2228
|
"has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
|
|
2147
2229
|
}),
|
|
2148
2230
|
children: [
|
|
2149
|
-
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */
|
|
2150
|
-
/* @__PURE__ */
|
|
2231
|
+
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx53(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
|
|
2232
|
+
/* @__PURE__ */ jsx53(
|
|
2151
2233
|
NavigationOption2,
|
|
2152
2234
|
{
|
|
2153
|
-
media: /* @__PURE__ */
|
|
2235
|
+
media: /* @__PURE__ */ jsx53(Plus, {}),
|
|
2154
2236
|
title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2155
2237
|
showMediaAtAllSizes: true,
|
|
2156
2238
|
onClick: () => onAddItem()
|
|
2157
2239
|
}
|
|
2158
2240
|
),
|
|
2159
|
-
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */
|
|
2241
|
+
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx53(InlineAlert3, { type: "negative", children: validationState.message })
|
|
2160
2242
|
]
|
|
2161
2243
|
}
|
|
2162
2244
|
),
|
|
2163
|
-
/* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ jsx53(
|
|
2164
2246
|
Modal4,
|
|
2165
2247
|
{
|
|
2166
2248
|
open: openModalType !== null,
|
|
2167
2249
|
title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2168
2250
|
body: /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
2169
|
-
/* @__PURE__ */
|
|
2251
|
+
/* @__PURE__ */ jsx53("div", { className: "m-b-2", children: editableItem }),
|
|
2170
2252
|
/* @__PURE__ */ jsxs13("div", { children: [
|
|
2171
|
-
/* @__PURE__ */
|
|
2172
|
-
/* @__PURE__ */
|
|
2253
|
+
/* @__PURE__ */ jsx53(Button6, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
|
|
2254
|
+
/* @__PURE__ */ jsx53(
|
|
2173
2255
|
Button6,
|
|
2174
2256
|
{
|
|
2175
2257
|
v2: true,
|
|
@@ -2191,10 +2273,10 @@ function ItemSummaryOption({
|
|
|
2191
2273
|
item,
|
|
2192
2274
|
onClick
|
|
2193
2275
|
}) {
|
|
2194
|
-
return /* @__PURE__ */
|
|
2276
|
+
return /* @__PURE__ */ jsx53(
|
|
2195
2277
|
NavigationOption2,
|
|
2196
2278
|
{
|
|
2197
|
-
media: /* @__PURE__ */
|
|
2279
|
+
media: /* @__PURE__ */ jsx53(OptionMedia, { media: item.media, preferAvatar: false }),
|
|
2198
2280
|
title: item.title,
|
|
2199
2281
|
content: item.description,
|
|
2200
2282
|
showMediaAtAllSizes: true,
|
|
@@ -2210,8 +2292,8 @@ import { DefinitionList } from "@transferwise/components";
|
|
|
2210
2292
|
|
|
2211
2293
|
// ../renderers/src/components/Header.tsx
|
|
2212
2294
|
import { Header as DSHeader } from "@transferwise/components";
|
|
2213
|
-
import { jsx as
|
|
2214
|
-
var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */
|
|
2295
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
2296
|
+
var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ jsx54(DSHeader, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
|
|
2215
2297
|
var getHeaderAction = (callToAction) => {
|
|
2216
2298
|
if (!callToAction) {
|
|
2217
2299
|
return void 0;
|
|
@@ -2233,14 +2315,14 @@ var getHeaderAction = (callToAction) => {
|
|
|
2233
2315
|
};
|
|
2234
2316
|
|
|
2235
2317
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2236
|
-
import { Fragment as Fragment5, jsx as
|
|
2318
|
+
import { Fragment as Fragment5, jsx as jsx55, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2237
2319
|
var ReviewRenderer = {
|
|
2238
2320
|
canRenderType: "review",
|
|
2239
2321
|
render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
|
|
2240
2322
|
const orientation = mapControlToDefinitionListLayout(control);
|
|
2241
2323
|
return /* @__PURE__ */ jsxs14("div", { className: getMargin(margin), children: [
|
|
2242
|
-
/* @__PURE__ */
|
|
2243
|
-
/* @__PURE__ */
|
|
2324
|
+
/* @__PURE__ */ jsx55(Header7, { title, callToAction }),
|
|
2325
|
+
/* @__PURE__ */ jsx55("div", { className: margin, children: /* @__PURE__ */ jsx55(
|
|
2244
2326
|
DefinitionList,
|
|
2245
2327
|
{
|
|
2246
2328
|
layout: orientation,
|
|
@@ -2281,7 +2363,7 @@ var getFieldLabel = (label, help, onClick) => {
|
|
|
2281
2363
|
return /* @__PURE__ */ jsxs14(Fragment5, { children: [
|
|
2282
2364
|
label,
|
|
2283
2365
|
" ",
|
|
2284
|
-
/* @__PURE__ */
|
|
2366
|
+
/* @__PURE__ */ jsx55(Help_default, { help, onClick })
|
|
2285
2367
|
] });
|
|
2286
2368
|
}
|
|
2287
2369
|
return label;
|
|
@@ -2327,18 +2409,18 @@ var generic_error_messages_default = defineMessages10({
|
|
|
2327
2409
|
|
|
2328
2410
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2329
2411
|
import { Link } from "@transferwise/components";
|
|
2330
|
-
import { jsx as
|
|
2412
|
+
import { jsx as jsx56, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2331
2413
|
function ErrorResult({ state }) {
|
|
2332
2414
|
const intl = useIntl10();
|
|
2333
2415
|
return /* @__PURE__ */ jsxs15("p", { className: "m-t-2", children: [
|
|
2334
2416
|
intl.formatMessage(generic_error_messages_default.genericError),
|
|
2335
2417
|
"\xA0",
|
|
2336
|
-
/* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ jsx56(Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
|
|
2337
2419
|
] });
|
|
2338
2420
|
}
|
|
2339
2421
|
|
|
2340
2422
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2341
|
-
import { jsx as
|
|
2423
|
+
import { jsx as jsx57, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2342
2424
|
function BlockSearchRendererComponent({
|
|
2343
2425
|
id,
|
|
2344
2426
|
isLoading,
|
|
@@ -2352,7 +2434,7 @@ function BlockSearchRendererComponent({
|
|
|
2352
2434
|
const [hasSearched, setHasSearched] = useState9(false);
|
|
2353
2435
|
const { formatMessage } = useIntl11();
|
|
2354
2436
|
return /* @__PURE__ */ jsxs16("div", { className: getMargin(margin), children: [
|
|
2355
|
-
/* @__PURE__ */
|
|
2437
|
+
/* @__PURE__ */ jsx57(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx57(
|
|
2356
2438
|
Input4,
|
|
2357
2439
|
{
|
|
2358
2440
|
id,
|
|
@@ -2369,7 +2451,7 @@ function BlockSearchRendererComponent({
|
|
|
2369
2451
|
}
|
|
2370
2452
|
}
|
|
2371
2453
|
) }),
|
|
2372
|
-
isLoading ? /* @__PURE__ */
|
|
2454
|
+
isLoading ? /* @__PURE__ */ jsx57("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ jsx57(SearchResultContent, { state, trackEvent })
|
|
2373
2455
|
] });
|
|
2374
2456
|
}
|
|
2375
2457
|
function SearchResultContent({
|
|
@@ -2378,31 +2460,31 @@ function SearchResultContent({
|
|
|
2378
2460
|
}) {
|
|
2379
2461
|
switch (state.type) {
|
|
2380
2462
|
case "error":
|
|
2381
|
-
return /* @__PURE__ */
|
|
2463
|
+
return /* @__PURE__ */ jsx57(ErrorResult, { state });
|
|
2382
2464
|
case "results":
|
|
2383
|
-
return /* @__PURE__ */
|
|
2465
|
+
return /* @__PURE__ */ jsx57(SearchResults, { state, trackEvent });
|
|
2384
2466
|
case "noResults":
|
|
2385
|
-
return /* @__PURE__ */
|
|
2467
|
+
return /* @__PURE__ */ jsx57(EmptySearchResult, { state });
|
|
2386
2468
|
case "pending":
|
|
2387
2469
|
default:
|
|
2388
2470
|
return null;
|
|
2389
2471
|
}
|
|
2390
2472
|
}
|
|
2391
2473
|
function EmptySearchResult({ state }) {
|
|
2392
|
-
return /* @__PURE__ */
|
|
2474
|
+
return /* @__PURE__ */ jsx57(Markdown4, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2393
2475
|
}
|
|
2394
2476
|
function SearchResults({
|
|
2395
2477
|
state,
|
|
2396
2478
|
trackEvent
|
|
2397
2479
|
}) {
|
|
2398
|
-
return /* @__PURE__ */
|
|
2480
|
+
return /* @__PURE__ */ jsx57(NavigationOptionsList2, { children: state.results.map((result) => {
|
|
2399
2481
|
const { media } = result;
|
|
2400
|
-
return /* @__PURE__ */
|
|
2482
|
+
return /* @__PURE__ */ jsx57(
|
|
2401
2483
|
NavigationOption3,
|
|
2402
2484
|
{
|
|
2403
2485
|
title: result.title,
|
|
2404
2486
|
content: result.description,
|
|
2405
|
-
media: media ? /* @__PURE__ */
|
|
2487
|
+
media: media ? /* @__PURE__ */ jsx57(OptionMedia, { media, preferAvatar: false }) : void 0,
|
|
2406
2488
|
showMediaCircle: false,
|
|
2407
2489
|
showMediaAtAllSizes: true,
|
|
2408
2490
|
onClick: () => {
|
|
@@ -2423,7 +2505,7 @@ import { Markdown as Markdown5, Typeahead } from "@transferwise/components";
|
|
|
2423
2505
|
import { Search } from "@transferwise/icons";
|
|
2424
2506
|
import { useState as useState10 } from "react";
|
|
2425
2507
|
import { useIntl as useIntl12 } from "react-intl";
|
|
2426
|
-
import { jsx as
|
|
2508
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2427
2509
|
function InlineSearchRenderer({
|
|
2428
2510
|
id,
|
|
2429
2511
|
isLoading,
|
|
@@ -2435,7 +2517,7 @@ function InlineSearchRenderer({
|
|
|
2435
2517
|
}) {
|
|
2436
2518
|
const [hasSearched, setHasSearched] = useState10(false);
|
|
2437
2519
|
const intl = useIntl12();
|
|
2438
|
-
return /* @__PURE__ */
|
|
2520
|
+
return /* @__PURE__ */ jsx58("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx58(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx58(
|
|
2439
2521
|
Typeahead,
|
|
2440
2522
|
{
|
|
2441
2523
|
id: "typeahead-input-id",
|
|
@@ -2443,10 +2525,10 @@ function InlineSearchRenderer({
|
|
|
2443
2525
|
name: "typeahead-input-name",
|
|
2444
2526
|
size: "md",
|
|
2445
2527
|
maxHeight: 100,
|
|
2446
|
-
footer: /* @__PURE__ */
|
|
2528
|
+
footer: /* @__PURE__ */ jsx58(TypeaheadFooter, { state, isLoading }),
|
|
2447
2529
|
multiple: false,
|
|
2448
2530
|
clearable: false,
|
|
2449
|
-
addon: /* @__PURE__ */
|
|
2531
|
+
addon: /* @__PURE__ */ jsx58(Search, { size: 24 }),
|
|
2450
2532
|
options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
|
|
2451
2533
|
minQueryLength: 1,
|
|
2452
2534
|
onChange: (values) => {
|
|
@@ -2483,23 +2565,23 @@ function mapResultToTypeaheadOption(result) {
|
|
|
2483
2565
|
function TypeaheadFooter({ state, isLoading }) {
|
|
2484
2566
|
const { formatMessage } = useIntl12();
|
|
2485
2567
|
if (state.type === "noResults") {
|
|
2486
|
-
return /* @__PURE__ */
|
|
2568
|
+
return /* @__PURE__ */ jsx58(Markdown5, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2487
2569
|
}
|
|
2488
2570
|
if (state.type === "error") {
|
|
2489
|
-
return /* @__PURE__ */
|
|
2571
|
+
return /* @__PURE__ */ jsx58("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx58(ErrorResult, { state }) });
|
|
2490
2572
|
}
|
|
2491
2573
|
if (state.type === "pending" || isLoading) {
|
|
2492
|
-
return /* @__PURE__ */
|
|
2574
|
+
return /* @__PURE__ */ jsx58("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
|
|
2493
2575
|
}
|
|
2494
2576
|
return null;
|
|
2495
2577
|
}
|
|
2496
2578
|
var InlineSearchRendererComponent_default = InlineSearchRenderer;
|
|
2497
2579
|
|
|
2498
2580
|
// ../renderers/src/SearchRenderer/SearchRenderer.tsx
|
|
2499
|
-
import { jsx as
|
|
2581
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
2500
2582
|
var SearchRenderer = {
|
|
2501
2583
|
canRenderType: "search",
|
|
2502
|
-
render: (props) => props.control === "inline" ? /* @__PURE__ */
|
|
2584
|
+
render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx59(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx59(BlockSearchRendererComponent_default, __spreadValues({}, props))
|
|
2503
2585
|
};
|
|
2504
2586
|
var SearchRenderer_default = SearchRenderer;
|
|
2505
2587
|
|
|
@@ -2528,12 +2610,12 @@ var getHeaderAction2 = (callToAction) => {
|
|
|
2528
2610
|
};
|
|
2529
2611
|
|
|
2530
2612
|
// ../renderers/src/SectionRenderer.tsx
|
|
2531
|
-
import { jsx as
|
|
2613
|
+
import { jsx as jsx60, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2532
2614
|
var SectionRenderer = {
|
|
2533
2615
|
canRenderType: "section",
|
|
2534
2616
|
render: ({ children, callToAction, margin, title }) => {
|
|
2535
2617
|
return /* @__PURE__ */ jsxs17("section", { className: getMargin(margin), children: [
|
|
2536
|
-
(title || callToAction) && /* @__PURE__ */
|
|
2618
|
+
(title || callToAction) && /* @__PURE__ */ jsx60(Header8, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
|
|
2537
2619
|
children
|
|
2538
2620
|
] });
|
|
2539
2621
|
}
|
|
@@ -2542,7 +2624,7 @@ var SectionRenderer_default = SectionRenderer;
|
|
|
2542
2624
|
|
|
2543
2625
|
// ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
|
|
2544
2626
|
import { RadioGroup } from "@transferwise/components";
|
|
2545
|
-
import { Fragment as Fragment6, jsx as
|
|
2627
|
+
import { Fragment as Fragment6, jsx as jsx61, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2546
2628
|
function RadioInputRendererComponent(props) {
|
|
2547
2629
|
const {
|
|
2548
2630
|
id,
|
|
@@ -2557,7 +2639,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2557
2639
|
onSelect
|
|
2558
2640
|
} = props;
|
|
2559
2641
|
return /* @__PURE__ */ jsxs18(Fragment6, { children: [
|
|
2560
|
-
/* @__PURE__ */
|
|
2642
|
+
/* @__PURE__ */ jsx61(
|
|
2561
2643
|
FieldInput_default,
|
|
2562
2644
|
{
|
|
2563
2645
|
id,
|
|
@@ -2565,7 +2647,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2565
2647
|
help,
|
|
2566
2648
|
description,
|
|
2567
2649
|
validation: validationState,
|
|
2568
|
-
children: /* @__PURE__ */
|
|
2650
|
+
children: /* @__PURE__ */ jsx61("span", { children: /* @__PURE__ */ jsx61(
|
|
2569
2651
|
RadioGroup,
|
|
2570
2652
|
{
|
|
2571
2653
|
name: id,
|
|
@@ -2574,7 +2656,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2574
2656
|
value: index,
|
|
2575
2657
|
secondary: option.description,
|
|
2576
2658
|
disabled: option.disabled || disabled,
|
|
2577
|
-
avatar: /* @__PURE__ */
|
|
2659
|
+
avatar: /* @__PURE__ */ jsx61(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2578
2660
|
})),
|
|
2579
2661
|
selectedValue: selectedIndex != null ? selectedIndex : void 0,
|
|
2580
2662
|
onChange: onSelect
|
|
@@ -2590,7 +2672,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2590
2672
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
2591
2673
|
import { Tabs } from "@transferwise/components";
|
|
2592
2674
|
import { useEffect as useEffect6 } from "react";
|
|
2593
|
-
import { Fragment as Fragment7, jsx as
|
|
2675
|
+
import { Fragment as Fragment7, jsx as jsx62, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2594
2676
|
function TabInputRendererComponent(props) {
|
|
2595
2677
|
const {
|
|
2596
2678
|
id,
|
|
@@ -2610,7 +2692,7 @@ function TabInputRendererComponent(props) {
|
|
|
2610
2692
|
}
|
|
2611
2693
|
}, [selectedIndex, onSelect, options.length]);
|
|
2612
2694
|
return /* @__PURE__ */ jsxs19(Fragment7, { children: [
|
|
2613
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ jsx62(
|
|
2614
2696
|
FieldInput_default,
|
|
2615
2697
|
{
|
|
2616
2698
|
id,
|
|
@@ -2618,7 +2700,7 @@ function TabInputRendererComponent(props) {
|
|
|
2618
2700
|
help,
|
|
2619
2701
|
description,
|
|
2620
2702
|
validation: validationState,
|
|
2621
|
-
children: /* @__PURE__ */
|
|
2703
|
+
children: /* @__PURE__ */ jsx62(
|
|
2622
2704
|
Tabs,
|
|
2623
2705
|
{
|
|
2624
2706
|
name: id,
|
|
@@ -2627,7 +2709,7 @@ function TabInputRendererComponent(props) {
|
|
|
2627
2709
|
title: option.title,
|
|
2628
2710
|
// if we pass null, we get some props-types console errors
|
|
2629
2711
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
2630
|
-
content: /* @__PURE__ */
|
|
2712
|
+
content: /* @__PURE__ */ jsx62(Fragment7, {}),
|
|
2631
2713
|
disabled: option.disabled || disabled
|
|
2632
2714
|
})),
|
|
2633
2715
|
onTabSelect: onSelect
|
|
@@ -2642,7 +2724,7 @@ var isValidIndex2 = (index, options) => index !== null && index >= 0 && index <
|
|
|
2642
2724
|
|
|
2643
2725
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
2644
2726
|
import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
|
|
2645
|
-
import { Fragment as Fragment8, jsx as
|
|
2727
|
+
import { Fragment as Fragment8, jsx as jsx63, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2646
2728
|
function SelectInputRendererComponent(props) {
|
|
2647
2729
|
const {
|
|
2648
2730
|
id,
|
|
@@ -2682,13 +2764,13 @@ function SelectInputRendererComponent(props) {
|
|
|
2682
2764
|
} : {
|
|
2683
2765
|
title: option.title,
|
|
2684
2766
|
description: option.description,
|
|
2685
|
-
icon: /* @__PURE__ */
|
|
2767
|
+
icon: /* @__PURE__ */ jsx63(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2686
2768
|
};
|
|
2687
|
-
return /* @__PURE__ */
|
|
2769
|
+
return /* @__PURE__ */ jsx63(SelectInputOptionContent2, __spreadValues({}, contentProps));
|
|
2688
2770
|
};
|
|
2689
2771
|
const extraProps = { autoComplete };
|
|
2690
2772
|
return /* @__PURE__ */ jsxs20(Fragment8, { children: [
|
|
2691
|
-
/* @__PURE__ */
|
|
2773
|
+
/* @__PURE__ */ jsx63(
|
|
2692
2774
|
FieldInput_default,
|
|
2693
2775
|
{
|
|
2694
2776
|
id,
|
|
@@ -2696,7 +2778,7 @@ function SelectInputRendererComponent(props) {
|
|
|
2696
2778
|
help,
|
|
2697
2779
|
description,
|
|
2698
2780
|
validation: validationState,
|
|
2699
|
-
children: /* @__PURE__ */
|
|
2781
|
+
children: /* @__PURE__ */ jsx63(
|
|
2700
2782
|
SelectInput2,
|
|
2701
2783
|
__spreadValues({
|
|
2702
2784
|
name: id,
|
|
@@ -2719,7 +2801,7 @@ function SelectInputRendererComponent(props) {
|
|
|
2719
2801
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
2720
2802
|
import { useEffect as useEffect7 } from "react";
|
|
2721
2803
|
import { SegmentedControl } from "@transferwise/components";
|
|
2722
|
-
import { Fragment as Fragment9, jsx as
|
|
2804
|
+
import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2723
2805
|
function SegmentedInputRendererComponent(props) {
|
|
2724
2806
|
const {
|
|
2725
2807
|
id,
|
|
@@ -2738,7 +2820,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2738
2820
|
}
|
|
2739
2821
|
}, [selectedIndex, onSelect, options.length]);
|
|
2740
2822
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
2741
|
-
/* @__PURE__ */
|
|
2823
|
+
/* @__PURE__ */ jsx64(
|
|
2742
2824
|
FieldInput_default,
|
|
2743
2825
|
{
|
|
2744
2826
|
id,
|
|
@@ -2746,7 +2828,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2746
2828
|
help,
|
|
2747
2829
|
description,
|
|
2748
2830
|
validation: validationState,
|
|
2749
|
-
children: /* @__PURE__ */
|
|
2831
|
+
children: /* @__PURE__ */ jsx64(
|
|
2750
2832
|
SegmentedControl,
|
|
2751
2833
|
{
|
|
2752
2834
|
name: `${id}-segmented-control`,
|
|
@@ -2763,44 +2845,98 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2763
2845
|
)
|
|
2764
2846
|
}
|
|
2765
2847
|
),
|
|
2766
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ jsx64("div", { id: `${id}-children`, children })
|
|
2767
2849
|
] });
|
|
2768
2850
|
}
|
|
2769
2851
|
var isValidIndex3 = (index, options) => index !== null && index >= 0 && index < options;
|
|
2770
2852
|
|
|
2853
|
+
// ../renderers/src/SelectInputRenderer/RadioItemRendererComponent.tsx
|
|
2854
|
+
import { Header as Header9, InlineAlert as InlineAlert4, List, ListItem as ListItem4 } from "@transferwise/components";
|
|
2855
|
+
import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2856
|
+
function RadioItemRendererComponent(props) {
|
|
2857
|
+
const {
|
|
2858
|
+
id,
|
|
2859
|
+
children,
|
|
2860
|
+
description: rootDescription,
|
|
2861
|
+
disabled: rootDisabled,
|
|
2862
|
+
help,
|
|
2863
|
+
title: rootTitle,
|
|
2864
|
+
options,
|
|
2865
|
+
selectedIndex,
|
|
2866
|
+
validationState,
|
|
2867
|
+
onSelect
|
|
2868
|
+
} = props;
|
|
2869
|
+
return /* @__PURE__ */ jsxs22(Fragment10, { children: [
|
|
2870
|
+
rootTitle && /* @__PURE__ */ jsx65(
|
|
2871
|
+
Header9,
|
|
2872
|
+
{
|
|
2873
|
+
as: "h2",
|
|
2874
|
+
title: help ? /* @__PURE__ */ jsx65(LabelContentWithHelp, { text: rootTitle, help }) : rootTitle
|
|
2875
|
+
}
|
|
2876
|
+
),
|
|
2877
|
+
rootDescription && /* @__PURE__ */ jsx65("p", { children: rootDescription }),
|
|
2878
|
+
/* @__PURE__ */ jsx65(List, { children: options.map(
|
|
2879
|
+
({ title, description, additionalText, inlineAlert, disabled, media, supportingValues }, index) => /* @__PURE__ */ jsx65(
|
|
2880
|
+
ListItem4,
|
|
2881
|
+
__spreadValues({
|
|
2882
|
+
title,
|
|
2883
|
+
subtitle: description,
|
|
2884
|
+
control: /* @__PURE__ */ jsx65(
|
|
2885
|
+
ListItem4.Radio,
|
|
2886
|
+
{
|
|
2887
|
+
name: title,
|
|
2888
|
+
checked: selectedIndex === index,
|
|
2889
|
+
onChange: () => onSelect(index)
|
|
2890
|
+
}
|
|
2891
|
+
),
|
|
2892
|
+
additionalInfo: getAdditionalText(additionalText),
|
|
2893
|
+
disabled: disabled || rootDisabled,
|
|
2894
|
+
prompt: getInlineAlert(inlineAlert),
|
|
2895
|
+
media: getMedia(media, false)
|
|
2896
|
+
}, getSupportingValues(supportingValues)),
|
|
2897
|
+
title
|
|
2898
|
+
)
|
|
2899
|
+
) }, `${id}-${selectedIndex}`),
|
|
2900
|
+
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ jsx65(InlineAlert4, { type: "negative", children: validationState.message }),
|
|
2901
|
+
children
|
|
2902
|
+
] });
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2771
2905
|
// ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
|
|
2772
|
-
import { jsx as
|
|
2906
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
2773
2907
|
var SelectInputRenderer = {
|
|
2774
2908
|
canRenderType: "input-select",
|
|
2775
2909
|
render: (props) => {
|
|
2776
2910
|
switch (props.control) {
|
|
2777
2911
|
case "radio":
|
|
2778
|
-
return /* @__PURE__ */
|
|
2912
|
+
return /* @__PURE__ */ jsx66(RadioInputRendererComponent, __spreadValues({}, props));
|
|
2913
|
+
case "radio-item":
|
|
2914
|
+
return /* @__PURE__ */ jsx66(RadioItemRendererComponent, __spreadValues({}, props));
|
|
2779
2915
|
case "tab":
|
|
2780
|
-
return props.options.length > 3 ? /* @__PURE__ */
|
|
2916
|
+
return props.options.length > 3 ? /* @__PURE__ */ jsx66(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx66(TabInputRendererComponent, __spreadValues({}, props));
|
|
2781
2917
|
case "segmented":
|
|
2782
|
-
return props.options.length > 3 ? /* @__PURE__ */
|
|
2918
|
+
return props.options.length > 3 ? /* @__PURE__ */ jsx66(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx66(SegmentedInputRendererComponent, __spreadValues({}, props));
|
|
2783
2919
|
case "select":
|
|
2784
2920
|
default:
|
|
2785
|
-
return /* @__PURE__ */
|
|
2921
|
+
return /* @__PURE__ */ jsx66(SelectInputRendererComponent, __spreadValues({}, props));
|
|
2786
2922
|
}
|
|
2787
2923
|
}
|
|
2788
2924
|
};
|
|
2789
2925
|
var SelectInputRenderer_default = SelectInputRenderer;
|
|
2790
2926
|
|
|
2791
2927
|
// ../renderers/src/StatusListRenderer.tsx
|
|
2792
|
-
import { Header as
|
|
2793
|
-
import { jsx as
|
|
2928
|
+
import { Header as Header10, Summary } from "@transferwise/components";
|
|
2929
|
+
import { jsx as jsx67, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2794
2930
|
var StatusListRenderer = {
|
|
2795
2931
|
canRenderType: "status-list",
|
|
2796
|
-
render: ({ margin, items, title }) => /* @__PURE__ */
|
|
2797
|
-
title ? /* @__PURE__ */
|
|
2798
|
-
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */
|
|
2932
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs23("div", { className: getMargin(margin), children: [
|
|
2933
|
+
title ? /* @__PURE__ */ jsx67(Header10, { title, className: "m-b-2" }) : null,
|
|
2934
|
+
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx67(
|
|
2799
2935
|
Summary,
|
|
2800
2936
|
{
|
|
2801
2937
|
title: itemTitle,
|
|
2802
2938
|
description,
|
|
2803
|
-
icon: icon && "name" in icon ? /* @__PURE__ */
|
|
2939
|
+
icon: icon && "name" in icon ? /* @__PURE__ */ jsx67(DynamicIcon_default, { name: icon.name }) : null,
|
|
2804
2940
|
status: mapStatus(status),
|
|
2805
2941
|
action: getSummaryAction(callToAction)
|
|
2806
2942
|
},
|
|
@@ -2854,29 +2990,43 @@ var useCustomTheme = (theme, trackEvent) => {
|
|
|
2854
2990
|
// ../renderers/src/step/topbar/BackButton.tsx
|
|
2855
2991
|
import { IconButton } from "@transferwise/components";
|
|
2856
2992
|
import { ArrowLeft } from "@transferwise/icons";
|
|
2857
|
-
import {
|
|
2993
|
+
import { useIntl as useIntl13 } from "react-intl";
|
|
2994
|
+
|
|
2995
|
+
// ../renderers/src/messages/back.messages.ts
|
|
2996
|
+
import { defineMessages as defineMessages11 } from "react-intl";
|
|
2997
|
+
var back_messages_default = defineMessages11({
|
|
2998
|
+
back: {
|
|
2999
|
+
id: "df.wise.back.label",
|
|
3000
|
+
defaultMessage: "Back",
|
|
3001
|
+
description: "Label for back button, used for screen readers"
|
|
3002
|
+
}
|
|
3003
|
+
});
|
|
3004
|
+
|
|
3005
|
+
// ../renderers/src/step/topbar/BackButton.tsx
|
|
3006
|
+
import { jsx as jsx68, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2858
3007
|
function BackButton({ title, onClick }) {
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
/* @__PURE__ */
|
|
3008
|
+
const { formatMessage } = useIntl13();
|
|
3009
|
+
return /* @__PURE__ */ jsxs24(IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
|
|
3010
|
+
/* @__PURE__ */ jsx68("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
|
|
3011
|
+
/* @__PURE__ */ jsx68(ArrowLeft, {})
|
|
2862
3012
|
] });
|
|
2863
3013
|
}
|
|
2864
3014
|
|
|
2865
3015
|
// ../renderers/src/step/topbar/Toolbar.tsx
|
|
2866
3016
|
import { Button as Button7, IconButton as IconButton2 } from "@transferwise/components";
|
|
2867
|
-
import { jsx as
|
|
3017
|
+
import { jsx as jsx69, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2868
3018
|
var Toolbar = ({ items }) => {
|
|
2869
|
-
return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */
|
|
3019
|
+
return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx69("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx69(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
|
|
2870
3020
|
};
|
|
2871
3021
|
function ToolbarButton(props) {
|
|
2872
|
-
return prefersMedia(props.control) ? /* @__PURE__ */
|
|
3022
|
+
return prefersMedia(props.control) ? /* @__PURE__ */ jsx69(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ jsx69(TextToolbarButton, __spreadValues({}, props));
|
|
2873
3023
|
}
|
|
2874
3024
|
function MediaToolbarButton(props) {
|
|
2875
3025
|
var _a;
|
|
2876
3026
|
const { context, control, media, accessibilityDescription, disabled, onClick } = props;
|
|
2877
3027
|
const priority = getIconButtonPriority(control);
|
|
2878
3028
|
const type = getSentiment(context);
|
|
2879
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ jsxs25(
|
|
2880
3030
|
IconButton2,
|
|
2881
3031
|
{
|
|
2882
3032
|
className: "df-toolbar-button",
|
|
@@ -2886,7 +3036,7 @@ function MediaToolbarButton(props) {
|
|
|
2886
3036
|
type,
|
|
2887
3037
|
onClick,
|
|
2888
3038
|
children: [
|
|
2889
|
-
accessibilityDescription ? /* @__PURE__ */
|
|
3039
|
+
accessibilityDescription ? /* @__PURE__ */ jsx69("span", { className: "sr-only", children: accessibilityDescription }) : null,
|
|
2890
3040
|
media ? (_a = getAddonStart(media)) == null ? void 0 : _a.value : null
|
|
2891
3041
|
]
|
|
2892
3042
|
}
|
|
@@ -2897,7 +3047,7 @@ function TextToolbarButton(props) {
|
|
|
2897
3047
|
const addonStart = media ? getAddonStart(media) : void 0;
|
|
2898
3048
|
const priority = getPriority2(control);
|
|
2899
3049
|
const sentiment = getSentiment(context);
|
|
2900
|
-
return /* @__PURE__ */
|
|
3050
|
+
return /* @__PURE__ */ jsx69(
|
|
2901
3051
|
Button7,
|
|
2902
3052
|
{
|
|
2903
3053
|
v2: true,
|
|
@@ -2942,16 +3092,16 @@ var getIconButtonPriority = (control) => {
|
|
|
2942
3092
|
};
|
|
2943
3093
|
|
|
2944
3094
|
// ../renderers/src/step/topbar/TopBar.tsx
|
|
2945
|
-
import { jsx as
|
|
3095
|
+
import { jsx as jsx70, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2946
3096
|
function TopBar({ back, toolbar }) {
|
|
2947
|
-
return back || toolbar ? /* @__PURE__ */
|
|
2948
|
-
back ? /* @__PURE__ */
|
|
2949
|
-
toolbar ? /* @__PURE__ */
|
|
3097
|
+
return back || toolbar ? /* @__PURE__ */ jsxs26("div", { className: "d-flex m-b-2", children: [
|
|
3098
|
+
back ? /* @__PURE__ */ jsx70(BackButton, __spreadValues({}, back)) : null,
|
|
3099
|
+
toolbar ? /* @__PURE__ */ jsx70(Toolbar, __spreadValues({}, toolbar)) : null
|
|
2950
3100
|
] }) : null;
|
|
2951
3101
|
}
|
|
2952
3102
|
|
|
2953
3103
|
// ../renderers/src/step/SplashCelebrationStepRenderer.tsx
|
|
2954
|
-
import { jsx as
|
|
3104
|
+
import { jsx as jsx71, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2955
3105
|
var SplashCelebrationStepRenderer = {
|
|
2956
3106
|
canRenderType: "step",
|
|
2957
3107
|
canRender: ({ control }) => control === "splash-celebration",
|
|
@@ -2961,15 +3111,15 @@ function SplashCelebrationStepRendererComponent(props) {
|
|
|
2961
3111
|
const { back, toolbar, children, footer, trackEvent } = props;
|
|
2962
3112
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2963
3113
|
useCustomTheme("forest-green", trackEvent);
|
|
2964
|
-
return /* @__PURE__ */
|
|
2965
|
-
/* @__PURE__ */
|
|
3114
|
+
return /* @__PURE__ */ jsxs27("div", { className: "splash-screen m-t-5", children: [
|
|
3115
|
+
/* @__PURE__ */ jsx71(TopBar, { back, toolbar }),
|
|
2966
3116
|
children,
|
|
2967
|
-
hasFooter ? /* @__PURE__ */
|
|
3117
|
+
hasFooter ? /* @__PURE__ */ jsx71("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2968
3118
|
] });
|
|
2969
3119
|
}
|
|
2970
3120
|
|
|
2971
3121
|
// ../renderers/src/step/SplashStepRenderer.tsx
|
|
2972
|
-
import { jsx as
|
|
3122
|
+
import { jsx as jsx72, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2973
3123
|
var SplashStepRenderer = {
|
|
2974
3124
|
canRenderType: "step",
|
|
2975
3125
|
canRender: ({ control }) => control === "splash",
|
|
@@ -2978,16 +3128,16 @@ var SplashStepRenderer = {
|
|
|
2978
3128
|
function SplashStepRendererComponent(props) {
|
|
2979
3129
|
const { back, toolbar, children, footer } = props;
|
|
2980
3130
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2981
|
-
return /* @__PURE__ */
|
|
2982
|
-
/* @__PURE__ */
|
|
3131
|
+
return /* @__PURE__ */ jsxs28("div", { className: "splash-screen m-t-5", children: [
|
|
3132
|
+
/* @__PURE__ */ jsx72(TopBar, { back, toolbar }),
|
|
2983
3133
|
children,
|
|
2984
|
-
hasFooter ? /* @__PURE__ */
|
|
3134
|
+
hasFooter ? /* @__PURE__ */ jsx72("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2985
3135
|
] });
|
|
2986
3136
|
}
|
|
2987
3137
|
|
|
2988
3138
|
// ../renderers/src/step/StepRenderer.tsx
|
|
2989
3139
|
import { Alert as Alert2, Title as Title2 } from "@transferwise/components";
|
|
2990
|
-
import { Fragment as
|
|
3140
|
+
import { Fragment as Fragment11, jsx as jsx73, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2991
3141
|
var StepRenderer = {
|
|
2992
3142
|
canRenderType: "step",
|
|
2993
3143
|
render: StepRendererComponent
|
|
@@ -2995,45 +3145,51 @@ var StepRenderer = {
|
|
|
2995
3145
|
function StepRendererComponent(props) {
|
|
2996
3146
|
const { back, description, error, title, children, toolbar, footer, tags } = props;
|
|
2997
3147
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2998
|
-
return /* @__PURE__ */
|
|
2999
|
-
/* @__PURE__ */
|
|
3000
|
-
title || description ? /* @__PURE__ */
|
|
3001
|
-
error ? /* @__PURE__ */
|
|
3148
|
+
return /* @__PURE__ */ jsxs29("div", { children: [
|
|
3149
|
+
/* @__PURE__ */ jsx73(TopBar, { back, toolbar }),
|
|
3150
|
+
title || description ? /* @__PURE__ */ jsx73("div", { className: "m-b-4", children: /* @__PURE__ */ jsx73(Header11, { title, description, tags }) }) : void 0,
|
|
3151
|
+
error ? /* @__PURE__ */ jsx73(Alert2, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
3002
3152
|
children,
|
|
3003
|
-
hasFooter ? /* @__PURE__ */
|
|
3153
|
+
hasFooter ? /* @__PURE__ */ jsx73("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
3004
3154
|
] });
|
|
3005
3155
|
}
|
|
3006
|
-
var
|
|
3007
|
-
const
|
|
3008
|
-
return /* @__PURE__ */
|
|
3009
|
-
title ? /* @__PURE__ */
|
|
3010
|
-
description ? /* @__PURE__ */
|
|
3156
|
+
var Header11 = ({ title, description, tags }) => {
|
|
3157
|
+
const { titleType, alignmentClassName } = getHeaderStyle(tags);
|
|
3158
|
+
return /* @__PURE__ */ jsxs29(Fragment11, { children: [
|
|
3159
|
+
title ? /* @__PURE__ */ jsx73(Title2, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
|
|
3160
|
+
description ? /* @__PURE__ */ jsx73("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
|
|
3011
3161
|
] });
|
|
3012
3162
|
};
|
|
3163
|
+
var getHeaderStyle = (tags) => {
|
|
3164
|
+
if (tags == null ? void 0 : tags.includes("root-screen")) {
|
|
3165
|
+
return { titleType: "title-screen", alignmentClassName: "text-xs-left" };
|
|
3166
|
+
}
|
|
3167
|
+
return { titleType: "title-section", alignmentClassName: "text-xs-center" };
|
|
3168
|
+
};
|
|
3013
3169
|
|
|
3014
3170
|
// ../renderers/src/TabsRenderer.tsx
|
|
3015
3171
|
import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
|
|
3016
3172
|
import { useState as useState11 } from "react";
|
|
3017
|
-
import { jsx as
|
|
3173
|
+
import { jsx as jsx74, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3018
3174
|
var TabsRenderer = {
|
|
3019
3175
|
canRenderType: "tabs",
|
|
3020
3176
|
render: (props) => {
|
|
3021
3177
|
switch (props.control) {
|
|
3022
3178
|
case "segmented":
|
|
3023
3179
|
if (props.tabs.length > 3) {
|
|
3024
|
-
return /* @__PURE__ */
|
|
3180
|
+
return /* @__PURE__ */ jsx74(TabsRendererComponent, __spreadValues({}, props));
|
|
3025
3181
|
}
|
|
3026
|
-
return /* @__PURE__ */
|
|
3182
|
+
return /* @__PURE__ */ jsx74(SegmentedTabsRendererComponent, __spreadValues({}, props));
|
|
3027
3183
|
case "chips":
|
|
3028
|
-
return /* @__PURE__ */
|
|
3184
|
+
return /* @__PURE__ */ jsx74(ChipsTabsRendererComponent, __spreadValues({}, props));
|
|
3029
3185
|
default:
|
|
3030
|
-
return /* @__PURE__ */
|
|
3186
|
+
return /* @__PURE__ */ jsx74(TabsRendererComponent, __spreadValues({}, props));
|
|
3031
3187
|
}
|
|
3032
3188
|
}
|
|
3033
3189
|
};
|
|
3034
3190
|
function TabsRendererComponent({ uid, margin, tabs }) {
|
|
3035
3191
|
const [selectedIndex, setSelectedIndex] = useState11(0);
|
|
3036
|
-
return /* @__PURE__ */
|
|
3192
|
+
return /* @__PURE__ */ jsx74("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx74(
|
|
3037
3193
|
Tabs2,
|
|
3038
3194
|
{
|
|
3039
3195
|
name: uid,
|
|
@@ -3041,7 +3197,7 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3041
3197
|
tabs: tabs.map((option) => ({
|
|
3042
3198
|
title: option.title,
|
|
3043
3199
|
disabled: false,
|
|
3044
|
-
content: /* @__PURE__ */
|
|
3200
|
+
content: /* @__PURE__ */ jsxs30("div", { className: "m-t-2", children: [
|
|
3045
3201
|
" ",
|
|
3046
3202
|
option.children,
|
|
3047
3203
|
" "
|
|
@@ -3054,8 +3210,8 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3054
3210
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
3055
3211
|
var _a;
|
|
3056
3212
|
const [selectedIndex, setSelectedIndex] = useState11(0);
|
|
3057
|
-
return /* @__PURE__ */
|
|
3058
|
-
/* @__PURE__ */
|
|
3213
|
+
return /* @__PURE__ */ jsxs30("div", { className: getMargin(margin), children: [
|
|
3214
|
+
/* @__PURE__ */ jsx74(
|
|
3059
3215
|
SegmentedControl2,
|
|
3060
3216
|
{
|
|
3061
3217
|
name: uid,
|
|
@@ -3070,14 +3226,14 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3070
3226
|
onChange: (value) => setSelectedIndex(Number(value))
|
|
3071
3227
|
}
|
|
3072
3228
|
),
|
|
3073
|
-
/* @__PURE__ */
|
|
3229
|
+
/* @__PURE__ */ jsx74("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3074
3230
|
] });
|
|
3075
3231
|
}
|
|
3076
3232
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
3077
3233
|
var _a;
|
|
3078
3234
|
const [selectedIndex, setSelectedIndex] = useState11(0);
|
|
3079
|
-
return /* @__PURE__ */
|
|
3080
|
-
/* @__PURE__ */
|
|
3235
|
+
return /* @__PURE__ */ jsxs30("div", { className: getMargin(margin), children: [
|
|
3236
|
+
/* @__PURE__ */ jsx74("div", { className: "chips-container", children: /* @__PURE__ */ jsx74(
|
|
3081
3237
|
Chips,
|
|
3082
3238
|
{
|
|
3083
3239
|
chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
|
|
@@ -3085,7 +3241,7 @@ function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
|
3085
3241
|
onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
|
|
3086
3242
|
}
|
|
3087
3243
|
) }),
|
|
3088
|
-
/* @__PURE__ */
|
|
3244
|
+
/* @__PURE__ */ jsx74("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3089
3245
|
] });
|
|
3090
3246
|
}
|
|
3091
3247
|
|
|
@@ -3100,7 +3256,7 @@ import {
|
|
|
3100
3256
|
TextArea,
|
|
3101
3257
|
TextareaWithDisplayFormat
|
|
3102
3258
|
} from "@transferwise/components";
|
|
3103
|
-
import { jsx as
|
|
3259
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
3104
3260
|
var commonKeys = [
|
|
3105
3261
|
"autoComplete",
|
|
3106
3262
|
"autoCapitalize",
|
|
@@ -3119,12 +3275,12 @@ function VariableTextInput(inputProps) {
|
|
|
3119
3275
|
const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
|
|
3120
3276
|
switch (control) {
|
|
3121
3277
|
case "email":
|
|
3122
|
-
return /* @__PURE__ */
|
|
3278
|
+
return /* @__PURE__ */ jsx75(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
|
|
3123
3279
|
case "password":
|
|
3124
|
-
return /* @__PURE__ */
|
|
3280
|
+
return /* @__PURE__ */ jsx75(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
|
|
3125
3281
|
case "numeric": {
|
|
3126
3282
|
const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
|
|
3127
|
-
return /* @__PURE__ */
|
|
3283
|
+
return /* @__PURE__ */ jsx75(
|
|
3128
3284
|
TextInput,
|
|
3129
3285
|
__spreadProps(__spreadValues({}, numericProps), {
|
|
3130
3286
|
onChange: (newValue) => {
|
|
@@ -3135,9 +3291,9 @@ function VariableTextInput(inputProps) {
|
|
|
3135
3291
|
);
|
|
3136
3292
|
}
|
|
3137
3293
|
case "phone-number":
|
|
3138
|
-
return /* @__PURE__ */
|
|
3294
|
+
return /* @__PURE__ */ jsx75(PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
|
|
3139
3295
|
default: {
|
|
3140
|
-
return /* @__PURE__ */
|
|
3296
|
+
return /* @__PURE__ */ jsx75(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
|
|
3141
3297
|
}
|
|
3142
3298
|
}
|
|
3143
3299
|
}
|
|
@@ -3145,11 +3301,11 @@ function TextInput(props) {
|
|
|
3145
3301
|
const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
|
|
3146
3302
|
const InputWithPattern = control === "textarea" ? TextareaWithDisplayFormat : InputWithDisplayFormat;
|
|
3147
3303
|
const InputWithoutPattern = control === "textarea" ? TextArea : Input5;
|
|
3148
|
-
return displayFormat ? /* @__PURE__ */
|
|
3304
|
+
return displayFormat ? /* @__PURE__ */ jsx75(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ jsx75(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
|
|
3149
3305
|
}
|
|
3150
3306
|
|
|
3151
3307
|
// ../renderers/src/TextInputRenderer.tsx
|
|
3152
|
-
import { jsx as
|
|
3308
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
3153
3309
|
var TextInputRenderer = {
|
|
3154
3310
|
canRenderType: "input-text",
|
|
3155
3311
|
render: (props) => {
|
|
@@ -3182,7 +3338,7 @@ var TextInputRenderer = {
|
|
|
3182
3338
|
}
|
|
3183
3339
|
}
|
|
3184
3340
|
});
|
|
3185
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ jsx76(
|
|
3186
3342
|
FieldInput_default,
|
|
3187
3343
|
{
|
|
3188
3344
|
id,
|
|
@@ -3190,7 +3346,7 @@ var TextInputRenderer = {
|
|
|
3190
3346
|
description,
|
|
3191
3347
|
validation: validationState,
|
|
3192
3348
|
help,
|
|
3193
|
-
children: /* @__PURE__ */
|
|
3349
|
+
children: /* @__PURE__ */ jsx76(InputGroup3, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ jsx76(VariableTextInput, __spreadValues({}, inputProps)) })
|
|
3194
3350
|
}
|
|
3195
3351
|
);
|
|
3196
3352
|
}
|
|
@@ -3198,17 +3354,17 @@ var TextInputRenderer = {
|
|
|
3198
3354
|
var TextInputRenderer_default = TextInputRenderer;
|
|
3199
3355
|
|
|
3200
3356
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3201
|
-
import { Upload, UploadInput as UploadInput2 } from "@transferwise/components";
|
|
3357
|
+
import { Status as Status2, Upload, UploadInput as UploadInput2 } from "@transferwise/components";
|
|
3202
3358
|
|
|
3203
3359
|
// ../renderers/src/utils/getRandomId.ts
|
|
3204
3360
|
var getRandomId = () => Math.random().toString(36).substring(2);
|
|
3205
3361
|
|
|
3206
3362
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3207
|
-
import { jsx as
|
|
3363
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3208
3364
|
var UploadInputRenderer = {
|
|
3209
3365
|
canRenderType: "input-upload",
|
|
3210
3366
|
render: (props) => {
|
|
3211
|
-
const { id, accepts, title, description, disabled, maxSize, validationState, onUpload } = props;
|
|
3367
|
+
const { id, accepts, title, description, disabled, maxSize, validationState, value, onUpload } = props;
|
|
3212
3368
|
const onUploadFile = async (formData) => {
|
|
3213
3369
|
const file = formData.get("file");
|
|
3214
3370
|
return onUpload(file).then(() => ({
|
|
@@ -3220,20 +3376,27 @@ var UploadInputRenderer = {
|
|
|
3220
3376
|
};
|
|
3221
3377
|
return (
|
|
3222
3378
|
// We don't pass help here as there is no sensible place to display it
|
|
3223
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ jsx77(
|
|
3224
3380
|
UploadFieldInput_default,
|
|
3225
3381
|
{
|
|
3226
3382
|
id,
|
|
3227
3383
|
label: void 0,
|
|
3228
3384
|
description: void 0,
|
|
3229
3385
|
validation: validationState,
|
|
3230
|
-
children: /* @__PURE__ */
|
|
3386
|
+
children: /* @__PURE__ */ jsx77(
|
|
3231
3387
|
UploadInput2,
|
|
3232
3388
|
{
|
|
3233
3389
|
id,
|
|
3234
3390
|
description,
|
|
3235
3391
|
disabled,
|
|
3236
3392
|
sizeLimit: getSizeLimit(maxSize),
|
|
3393
|
+
files: value ? [
|
|
3394
|
+
{
|
|
3395
|
+
id: "my-file",
|
|
3396
|
+
filename: value.name,
|
|
3397
|
+
status: (validationState == null ? void 0 : validationState.status) === "invalid" ? Status2.FAILED : Status2.SUCCEEDED
|
|
3398
|
+
}
|
|
3399
|
+
] : void 0,
|
|
3237
3400
|
fileTypes: acceptsToFileTypes(accepts),
|
|
3238
3401
|
uploadButtonTitle: title,
|
|
3239
3402
|
onDeleteFile,
|
|
@@ -3286,7 +3449,7 @@ var LargeUploadRenderer = {
|
|
|
3286
3449
|
};
|
|
3287
3450
|
const filetypes = acceptsToFileTypes(accepts);
|
|
3288
3451
|
const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
|
|
3289
|
-
return /* @__PURE__ */
|
|
3452
|
+
return /* @__PURE__ */ jsx77(
|
|
3290
3453
|
FieldInput_default,
|
|
3291
3454
|
{
|
|
3292
3455
|
id,
|
|
@@ -3294,7 +3457,7 @@ var LargeUploadRenderer = {
|
|
|
3294
3457
|
description,
|
|
3295
3458
|
validation: validationState,
|
|
3296
3459
|
help,
|
|
3297
|
-
children: /* @__PURE__ */
|
|
3460
|
+
children: /* @__PURE__ */ jsx77(
|
|
3298
3461
|
Upload,
|
|
3299
3462
|
__spreadProps(__spreadValues({}, uploadProps), {
|
|
3300
3463
|
usAccept,
|
|
@@ -3310,24 +3473,19 @@ var LargeUploadRenderer = {
|
|
|
3310
3473
|
};
|
|
3311
3474
|
|
|
3312
3475
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3313
|
-
import { ListItem as
|
|
3314
|
-
|
|
3315
|
-
// ../renderers/src/NewListItem/getInlineAlert.tsx
|
|
3316
|
-
import { ListItem as ListItem2 } from "@transferwise/components";
|
|
3317
|
-
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
3318
|
-
var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ jsx75(ListItem2.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
|
|
3476
|
+
import { ListItem as ListItem6 } from "@transferwise/components";
|
|
3319
3477
|
|
|
3320
3478
|
// ../renderers/src/NewListItem/getAdditionalInfo.tsx
|
|
3321
|
-
import { ListItem as
|
|
3322
|
-
import { jsx as
|
|
3479
|
+
import { ListItem as ListItem5 } from "@transferwise/components";
|
|
3480
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
3323
3481
|
var getAdditionalInfo = (additionalInfo) => {
|
|
3324
3482
|
if (!additionalInfo) {
|
|
3325
3483
|
return void 0;
|
|
3326
3484
|
}
|
|
3327
3485
|
const { href, text, onClick } = additionalInfo;
|
|
3328
3486
|
if (href || onClick) {
|
|
3329
|
-
return /* @__PURE__ */
|
|
3330
|
-
|
|
3487
|
+
return /* @__PURE__ */ jsx78(
|
|
3488
|
+
ListItem5.AdditionalInfo,
|
|
3331
3489
|
{
|
|
3332
3490
|
action: {
|
|
3333
3491
|
label: text,
|
|
@@ -3338,7 +3496,7 @@ var getAdditionalInfo = (additionalInfo) => {
|
|
|
3338
3496
|
}
|
|
3339
3497
|
);
|
|
3340
3498
|
}
|
|
3341
|
-
return /* @__PURE__ */
|
|
3499
|
+
return /* @__PURE__ */ jsx78(ListItem5.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
|
|
3342
3500
|
};
|
|
3343
3501
|
|
|
3344
3502
|
// ../renderers/src/NewListItem/shouldUseAvatar.ts
|
|
@@ -3348,13 +3506,13 @@ var shouldUseAvatar = (control, tags) => {
|
|
|
3348
3506
|
};
|
|
3349
3507
|
|
|
3350
3508
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3351
|
-
import { Fragment as
|
|
3509
|
+
import { Fragment as Fragment12, jsx as jsx79 } from "react/jsx-runtime";
|
|
3352
3510
|
var DecisionRenderer2 = {
|
|
3353
3511
|
canRenderType: "decision",
|
|
3354
|
-
render: (props) => /* @__PURE__ */
|
|
3512
|
+
render: (props) => /* @__PURE__ */ jsx79(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList: renderDecisionList2 }))
|
|
3355
3513
|
};
|
|
3356
3514
|
var renderDecisionList2 = ({ options, control }) => {
|
|
3357
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ jsx79(Fragment12, { children: options.map((_a) => {
|
|
3358
3516
|
var _b = _a, { disabled, onClick } = _b, rest = __objRest(_b, ["disabled", "onClick"]);
|
|
3359
3517
|
const {
|
|
3360
3518
|
description,
|
|
@@ -3366,8 +3524,8 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3366
3524
|
supportingValues,
|
|
3367
3525
|
tags
|
|
3368
3526
|
} = rest;
|
|
3369
|
-
return /* @__PURE__ */
|
|
3370
|
-
|
|
3527
|
+
return /* @__PURE__ */ jsx79(
|
|
3528
|
+
ListItem6,
|
|
3371
3529
|
{
|
|
3372
3530
|
title: itemTitle,
|
|
3373
3531
|
subtitle: description,
|
|
@@ -3378,7 +3536,7 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3378
3536
|
media: getMedia(media, shouldUseAvatar(control, tags)),
|
|
3379
3537
|
prompt: getInlineAlert(inlineAlert),
|
|
3380
3538
|
additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
|
|
3381
|
-
control: href ? /* @__PURE__ */
|
|
3539
|
+
control: href ? /* @__PURE__ */ jsx79(ListItem6.Navigation, { href, target: "_blank" }) : /* @__PURE__ */ jsx79(ListItem6.Navigation, { onClick })
|
|
3382
3540
|
},
|
|
3383
3541
|
JSON.stringify(rest)
|
|
3384
3542
|
);
|
|
@@ -3387,11 +3545,11 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3387
3545
|
var NewDecisionRenderer_default = DecisionRenderer2;
|
|
3388
3546
|
|
|
3389
3547
|
// ../renderers/src/NewListItem/NewListRenderer.tsx
|
|
3390
|
-
import { ListItem as
|
|
3548
|
+
import { ListItem as ListItem8 } from "@transferwise/components";
|
|
3391
3549
|
|
|
3392
3550
|
// ../renderers/src/NewListItem/getCTAControl.tsx
|
|
3393
|
-
import { ListItem as
|
|
3394
|
-
import { jsx as
|
|
3551
|
+
import { ListItem as ListItem7 } from "@transferwise/components";
|
|
3552
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
3395
3553
|
var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
3396
3554
|
if (!callToAction) {
|
|
3397
3555
|
return void 0;
|
|
@@ -3399,8 +3557,8 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
3399
3557
|
const { accessibilityDescription, href, title, onClick } = callToAction;
|
|
3400
3558
|
const priority = ctaSecondary ? "secondary" : "secondary-neutral";
|
|
3401
3559
|
if (href) {
|
|
3402
|
-
return /* @__PURE__ */
|
|
3403
|
-
|
|
3560
|
+
return /* @__PURE__ */ jsx80(
|
|
3561
|
+
ListItem7.Button,
|
|
3404
3562
|
{
|
|
3405
3563
|
href,
|
|
3406
3564
|
partiallyInteractive: !fullyInteractive,
|
|
@@ -3410,8 +3568,8 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
3410
3568
|
}
|
|
3411
3569
|
);
|
|
3412
3570
|
}
|
|
3413
|
-
return /* @__PURE__ */
|
|
3414
|
-
|
|
3571
|
+
return /* @__PURE__ */ jsx80(
|
|
3572
|
+
ListItem7.Button,
|
|
3415
3573
|
{
|
|
3416
3574
|
"aria-description": accessibilityDescription,
|
|
3417
3575
|
partiallyInteractive: !fullyInteractive,
|
|
@@ -3423,11 +3581,11 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
3423
3581
|
};
|
|
3424
3582
|
|
|
3425
3583
|
// ../renderers/src/NewListItem/NewListRenderer.tsx
|
|
3426
|
-
import { jsx as
|
|
3584
|
+
import { jsx as jsx81, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3427
3585
|
var ListRenderer2 = {
|
|
3428
3586
|
canRenderType: "list",
|
|
3429
|
-
render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */
|
|
3430
|
-
/* @__PURE__ */
|
|
3587
|
+
render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ jsxs31("div", { className: getMargin(margin), children: [
|
|
3588
|
+
/* @__PURE__ */ jsx81(Header7, { title, callToAction }),
|
|
3431
3589
|
items.map((item) => {
|
|
3432
3590
|
var _a, _b;
|
|
3433
3591
|
const {
|
|
@@ -3444,8 +3602,8 @@ var ListRenderer2 = {
|
|
|
3444
3602
|
ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
|
|
3445
3603
|
fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
|
|
3446
3604
|
};
|
|
3447
|
-
return /* @__PURE__ */
|
|
3448
|
-
|
|
3605
|
+
return /* @__PURE__ */ jsx81(
|
|
3606
|
+
ListItem8,
|
|
3449
3607
|
{
|
|
3450
3608
|
title: itemTitle,
|
|
3451
3609
|
subtitle: description,
|
|
@@ -3464,9 +3622,9 @@ var ListRenderer2 = {
|
|
|
3464
3622
|
var NewListRenderer_default = ListRenderer2;
|
|
3465
3623
|
|
|
3466
3624
|
// ../renderers/src/NewListItem/NewReviewRenderer.tsx
|
|
3467
|
-
import { ListItem as
|
|
3625
|
+
import { ListItem as ListItem9, Markdown as Markdown6, Popover } from "@transferwise/components";
|
|
3468
3626
|
import { QuestionMarkCircle } from "@transferwise/icons";
|
|
3469
|
-
import { jsx as
|
|
3627
|
+
import { jsx as jsx82, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3470
3628
|
var IGNORED_CONTROLS = [
|
|
3471
3629
|
"horizontal",
|
|
3472
3630
|
"horizontal-end-aligned",
|
|
@@ -3476,8 +3634,8 @@ var IGNORED_CONTROLS = [
|
|
|
3476
3634
|
var ReviewRenderer2 = {
|
|
3477
3635
|
canRenderType: "review",
|
|
3478
3636
|
canRender: ({ control }) => control ? !IGNORED_CONTROLS.includes(control) : true,
|
|
3479
|
-
render: ({ callToAction, control, margin, fields, tags, title }) => /* @__PURE__ */
|
|
3480
|
-
/* @__PURE__ */
|
|
3637
|
+
render: ({ callToAction, control, margin, fields, tags, title }) => /* @__PURE__ */ jsxs32("div", { className: getMargin(margin), children: [
|
|
3638
|
+
/* @__PURE__ */ jsx82(Header7, { title, callToAction }),
|
|
3481
3639
|
fields.map((field) => {
|
|
3482
3640
|
var _a, _b, _c;
|
|
3483
3641
|
const {
|
|
@@ -3494,8 +3652,8 @@ var ReviewRenderer2 = {
|
|
|
3494
3652
|
ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
|
|
3495
3653
|
fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
|
|
3496
3654
|
};
|
|
3497
|
-
return /* @__PURE__ */
|
|
3498
|
-
|
|
3655
|
+
return /* @__PURE__ */ jsx82(
|
|
3656
|
+
ListItem9,
|
|
3499
3657
|
{
|
|
3500
3658
|
title: value,
|
|
3501
3659
|
subtitle: label,
|
|
@@ -3514,27 +3672,27 @@ var getHelpControl = (help) => {
|
|
|
3514
3672
|
if (!help) {
|
|
3515
3673
|
return void 0;
|
|
3516
3674
|
}
|
|
3517
|
-
return /* @__PURE__ */
|
|
3675
|
+
return /* @__PURE__ */ jsx82(Popover, { content: /* @__PURE__ */ jsx82(Markdown6, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ jsx82(ListItem9.IconButton, { partiallyInteractive: true, children: /* @__PURE__ */ jsx82(QuestionMarkCircle, {}) }) });
|
|
3518
3676
|
};
|
|
3519
3677
|
var NewReviewRenderer_default = ReviewRenderer2;
|
|
3520
3678
|
|
|
3521
3679
|
// ../renderers/src/NewListItem/NewStatusListRenderer.tsx
|
|
3522
|
-
import { AvatarView as AvatarView4, Header as
|
|
3523
|
-
import { jsx as
|
|
3680
|
+
import { AvatarView as AvatarView4, Header as Header12, ListItem as ListItem10 } from "@transferwise/components";
|
|
3681
|
+
import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3524
3682
|
var NewStatusListRenderer = {
|
|
3525
3683
|
canRenderType: "status-list",
|
|
3526
|
-
render: ({ margin, items, title }) => /* @__PURE__ */
|
|
3527
|
-
title ? /* @__PURE__ */
|
|
3684
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ jsxs33("div", { className: getMargin(margin), children: [
|
|
3685
|
+
title ? /* @__PURE__ */ jsx83(Header12, { title }) : null,
|
|
3528
3686
|
items.map((item) => {
|
|
3529
3687
|
const { callToAction, description, icon, status, title: itemTitle } = item;
|
|
3530
|
-
return /* @__PURE__ */
|
|
3531
|
-
|
|
3688
|
+
return /* @__PURE__ */ jsx83(
|
|
3689
|
+
ListItem10,
|
|
3532
3690
|
{
|
|
3533
3691
|
title: itemTitle,
|
|
3534
3692
|
subtitle: description,
|
|
3535
|
-
media: icon && "name" in icon ? /* @__PURE__ */
|
|
3536
|
-
additionalInfo: callToAction ? /* @__PURE__ */
|
|
3537
|
-
|
|
3693
|
+
media: icon && "name" in icon ? /* @__PURE__ */ jsx83(AvatarView4, { badge: { status: mapStatus2(status) }, children: /* @__PURE__ */ jsx83(DynamicIcon_default, { name: icon.name }) }) : void 0,
|
|
3694
|
+
additionalInfo: callToAction ? /* @__PURE__ */ jsx83(
|
|
3695
|
+
ListItem10.AdditionalInfo,
|
|
3538
3696
|
{
|
|
3539
3697
|
action: {
|
|
3540
3698
|
href: callToAction.href,
|
|
@@ -3571,7 +3729,7 @@ var isButtonPriority = (control) => validPriorities.includes(control);
|
|
|
3571
3729
|
|
|
3572
3730
|
// ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
|
|
3573
3731
|
import { useEffect as useEffect9, useState as useState12 } from "react";
|
|
3574
|
-
import { jsx as
|
|
3732
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
3575
3733
|
var ButtonRendererV2 = {
|
|
3576
3734
|
canRenderType: "button",
|
|
3577
3735
|
render: ButtonComponent2
|
|
@@ -3585,7 +3743,7 @@ function ButtonComponent2(props) {
|
|
|
3585
3743
|
}
|
|
3586
3744
|
}, [stepLoadingState]);
|
|
3587
3745
|
const loading = spinny && stepLoadingState !== "idle";
|
|
3588
|
-
return /* @__PURE__ */
|
|
3746
|
+
return /* @__PURE__ */ jsx84(
|
|
3589
3747
|
Button8,
|
|
3590
3748
|
{
|
|
3591
3749
|
v2: true,
|
|
@@ -3609,16 +3767,16 @@ var getPriority3 = (control) => control && isButtonPriority(control) ? control :
|
|
|
3609
3767
|
|
|
3610
3768
|
// ../renderers/src/ProgressRenderer.tsx
|
|
3611
3769
|
import { ProgressBar } from "@transferwise/components";
|
|
3612
|
-
import { jsx as
|
|
3770
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
3613
3771
|
var ProgressRenderer = {
|
|
3614
3772
|
canRenderType: "progress",
|
|
3615
3773
|
render: ({ uid, title, help, progress, progressText, margin, description }) => {
|
|
3616
|
-
return /* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ jsx85(
|
|
3617
3775
|
ProgressBar,
|
|
3618
3776
|
{
|
|
3619
3777
|
id: uid,
|
|
3620
3778
|
className: getMargin(margin),
|
|
3621
|
-
title: title && help ? /* @__PURE__ */
|
|
3779
|
+
title: title && help ? /* @__PURE__ */ jsx85(LabelContentWithHelp, { text: title, help }) : title,
|
|
3622
3780
|
description,
|
|
3623
3781
|
progress: {
|
|
3624
3782
|
max: 1,
|
|
@@ -3682,7 +3840,7 @@ var getWiseRenderers = () => [
|
|
|
3682
3840
|
];
|
|
3683
3841
|
|
|
3684
3842
|
// src/dynamicFlow/renderers.ts
|
|
3685
|
-
var
|
|
3843
|
+
var Header13 = Header7;
|
|
3686
3844
|
var Media2 = Media;
|
|
3687
3845
|
var getMargin2 = getMargin;
|
|
3688
3846
|
var getListItemRenderers2 = getListItemRenderers;
|
|
@@ -3727,6 +3885,7 @@ var cs_default = {
|
|
|
3727
3885
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Nahrajte pros\xEDm alespo\u0148 n\xE1sleduj\xEDc\xED po\u010Det soubor\u016F: {minItems}.",
|
|
3728
3886
|
"df.wise.PersistAsyncSchema.genericError": "N\u011Bco se pokazilo. Zkuste to pros\xEDm znovu.",
|
|
3729
3887
|
"df.wise.SearchLayout.loading": "Na\u010D\xEDt\xE1n\xED...",
|
|
3888
|
+
"df.wise.back.label": "Zp\u011Bt",
|
|
3730
3889
|
"df.wise.filter.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
|
|
3731
3890
|
"df.wise.filter.placeholder": "Pro vyhled\xE1v\xE1n\xED za\u010Dn\u011Bte ps\xE1t",
|
|
3732
3891
|
"df.wise.filter.results": "V\xFDsledky vyhled\xE1v\xE1n\xED",
|
|
@@ -3772,6 +3931,7 @@ var de_default = {
|
|
|
3772
3931
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.",
|
|
3773
3932
|
"df.wise.PersistAsyncSchema.genericError": "Da ist etwas schiefgegangen. Versuche es bitte nochmal.",
|
|
3774
3933
|
"df.wise.SearchLayout.loading": "L\xE4dt...",
|
|
3934
|
+
"df.wise.back.label": "Zur\xFCck",
|
|
3775
3935
|
"df.wise.filter.noResults": "Keine Ergebnisse",
|
|
3776
3936
|
"df.wise.filter.placeholder": "Gib etwas ein, um die Suche zu beginnen",
|
|
3777
3937
|
"df.wise.filter.results": "Suchergebnisse",
|
|
@@ -3817,6 +3977,7 @@ var en_default = {
|
|
|
3817
3977
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).",
|
|
3818
3978
|
"df.wise.PersistAsyncSchema.genericError": "Something went wrong, please try again.",
|
|
3819
3979
|
"df.wise.SearchLayout.loading": "Loading...",
|
|
3980
|
+
"df.wise.back.label": "Back",
|
|
3820
3981
|
"df.wise.filter.noResults": "No results",
|
|
3821
3982
|
"df.wise.filter.placeholder": "Start typing to search",
|
|
3822
3983
|
"df.wise.filter.results": "Search results",
|
|
@@ -3862,6 +4023,7 @@ var es_default = {
|
|
|
3862
4023
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).",
|
|
3863
4024
|
"df.wise.PersistAsyncSchema.genericError": "Ha habido un error. Int\xE9ntalo de nuevo.",
|
|
3864
4025
|
"df.wise.SearchLayout.loading": "Cargando...",
|
|
4026
|
+
"df.wise.back.label": "Volver",
|
|
3865
4027
|
"df.wise.filter.noResults": "No hay resultados",
|
|
3866
4028
|
"df.wise.filter.placeholder": "Empieza a escribir para buscar",
|
|
3867
4029
|
"df.wise.filter.results": "Resultados de b\xFAsqueda",
|
|
@@ -3907,6 +4069,7 @@ var fr_default = {
|
|
|
3907
4069
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).",
|
|
3908
4070
|
"df.wise.PersistAsyncSchema.genericError": "Une erreur s'est produite, veuillez r\xE9essayer.",
|
|
3909
4071
|
"df.wise.SearchLayout.loading": "Chargement...",
|
|
4072
|
+
"df.wise.back.label": "Retour",
|
|
3910
4073
|
"df.wise.filter.noResults": "Aucun r\xE9sultat",
|
|
3911
4074
|
"df.wise.filter.placeholder": "Commencez \xE0 \xE9crire pour effectuer une recherche",
|
|
3912
4075
|
"df.wise.filter.results": "R\xE9sultats de recherche",
|
|
@@ -3952,6 +4115,7 @@ var hu_default = {
|
|
|
3952
4115
|
"df.wise.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.",
|
|
3953
4116
|
"df.wise.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra.",
|
|
3954
4117
|
"df.wise.SearchLayout.loading": "Bet\xF6lt\xE9s...",
|
|
4118
|
+
"df.wise.back.label": "Vissza",
|
|
3955
4119
|
"df.wise.filter.noResults": "Nincs tal\xE1lat",
|
|
3956
4120
|
"df.wise.filter.placeholder": "Kezdj el g\xE9pelni a keres\xE9shez",
|
|
3957
4121
|
"df.wise.filter.results": "Keres\xE9si eredm\xE9nyek",
|
|
@@ -3997,6 +4161,7 @@ var id_default = {
|
|
|
3997
4161
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.",
|
|
3998
4162
|
"df.wise.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi.",
|
|
3999
4163
|
"df.wise.SearchLayout.loading": "Memuat ...",
|
|
4164
|
+
"df.wise.back.label": "Kembali",
|
|
4000
4165
|
"df.wise.filter.noResults": "Tidak ada hasil",
|
|
4001
4166
|
"df.wise.filter.placeholder": "Mulai mengetik untuk mencari",
|
|
4002
4167
|
"df.wise.filter.results": "Hasil pencarian",
|
|
@@ -4042,6 +4207,7 @@ var it_default = {
|
|
|
4042
4207
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.",
|
|
4043
4208
|
"df.wise.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova.",
|
|
4044
4209
|
"df.wise.SearchLayout.loading": "Caricamento...",
|
|
4210
|
+
"df.wise.back.label": "Indietro",
|
|
4045
4211
|
"df.wise.filter.noResults": "Nessun risultato",
|
|
4046
4212
|
"df.wise.filter.placeholder": "Inizia a digitare per cercare",
|
|
4047
4213
|
"df.wise.filter.results": "Risultati della ricerca",
|
|
@@ -4087,6 +4253,7 @@ var ja_default = {
|
|
|
4087
4253
|
"df.wise.MultipleFileUploadSchema.minItemsError": "{minItems}\u500B\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
4088
4254
|
"df.wise.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
4089
4255
|
"df.wise.SearchLayout.loading": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
4256
|
+
"df.wise.back.label": "\u623B\u308B",
|
|
4090
4257
|
"df.wise.filter.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
4091
4258
|
"df.wise.filter.placeholder": "\u691C\u7D22\u8A9E\u53E5\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
4092
4259
|
"df.wise.filter.results": "\u691C\u7D22\u7D50\u679C",
|
|
@@ -4132,6 +4299,7 @@ var nl_default = {
|
|
|
4132
4299
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Upload minimaal {minItems} bestand(en).",
|
|
4133
4300
|
"df.wise.PersistAsyncSchema.genericError": "Er is iets misgegaan, probeer het opnieuw.",
|
|
4134
4301
|
"df.wise.SearchLayout.loading": "Laden...",
|
|
4302
|
+
"df.wise.back.label": "Terug",
|
|
4135
4303
|
"df.wise.filter.noResults": "Geen resultaten",
|
|
4136
4304
|
"df.wise.filter.placeholder": "Begin met typen om te zoeken",
|
|
4137
4305
|
"df.wise.filter.results": "Zoekresultaten",
|
|
@@ -4177,6 +4345,7 @@ var pl_default = {
|
|
|
4177
4345
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.",
|
|
4178
4346
|
"df.wise.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, prosimy spr\xF3bowa\u0107 ponownie.",
|
|
4179
4347
|
"df.wise.SearchLayout.loading": "\u0141adowanie...",
|
|
4348
|
+
"df.wise.back.label": "Wr\xF3\u0107",
|
|
4180
4349
|
"df.wise.filter.noResults": "Brak wynik\xF3w",
|
|
4181
4350
|
"df.wise.filter.placeholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
|
|
4182
4351
|
"df.wise.filter.results": "Wyniki wyszukiwania",
|
|
@@ -4222,6 +4391,7 @@ var pt_default = {
|
|
|
4222
4391
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).",
|
|
4223
4392
|
"df.wise.PersistAsyncSchema.genericError": "Ocorreu um erro. Por favor, tente novamente.",
|
|
4224
4393
|
"df.wise.SearchLayout.loading": "Carregando...",
|
|
4394
|
+
"df.wise.back.label": "Voltar",
|
|
4225
4395
|
"df.wise.filter.noResults": "Nenhum resultado",
|
|
4226
4396
|
"df.wise.filter.placeholder": "Comece a digitar para pesquisar",
|
|
4227
4397
|
"df.wise.filter.results": "Resultados da busca",
|
|
@@ -4267,6 +4437,7 @@ var ro_default = {
|
|
|
4267
4437
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).",
|
|
4268
4438
|
"df.wise.PersistAsyncSchema.genericError": "Ceva nu a mers bine, te rug\u0103m s\u0103 \xEEncerci din nou.",
|
|
4269
4439
|
"df.wise.SearchLayout.loading": "Se \xEEncarc\u0103...",
|
|
4440
|
+
"df.wise.back.label": "\xCEnapoi",
|
|
4270
4441
|
"df.wise.filter.noResults": "Niciun rezultat",
|
|
4271
4442
|
"df.wise.filter.placeholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
|
|
4272
4443
|
"df.wise.filter.results": "Rezultatele c\u0103ut\u0103rii",
|
|
@@ -4312,6 +4483,7 @@ var ru_default = {
|
|
|
4312
4483
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems} \u0444\u0430\u0439\u043B(-\u0430/\u043E\u0432).",
|
|
4313
4484
|
"df.wise.PersistAsyncSchema.genericError": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.",
|
|
4314
4485
|
"df.wise.SearchLayout.loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...",
|
|
4486
|
+
"df.wise.back.label": "\u041D\u0430\u0437\u0430\u0434",
|
|
4315
4487
|
"df.wise.filter.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
|
|
4316
4488
|
"df.wise.filter.placeholder": "\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",
|
|
4317
4489
|
"df.wise.filter.results": "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",
|
|
@@ -4357,6 +4529,7 @@ var th_default = {
|
|
|
4357
4529
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems} \u0E44\u0E1F\u0E25\u0E4C",
|
|
4358
4530
|
"df.wise.PersistAsyncSchema.genericError": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",
|
|
4359
4531
|
"df.wise.SearchLayout.loading": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14...",
|
|
4532
|
+
"df.wise.back.label": "\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A",
|
|
4360
4533
|
"df.wise.filter.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
4361
4534
|
"df.wise.filter.placeholder": "\u0E40\u0E23\u0E34\u0E48\u0E21\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E40\u0E25\u0E22",
|
|
4362
4535
|
"df.wise.filter.results": "\u0E1C\u0E25\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
@@ -4402,6 +4575,7 @@ var tr_default = {
|
|
|
4402
4575
|
"df.wise.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.",
|
|
4403
4576
|
"df.wise.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin.",
|
|
4404
4577
|
"df.wise.SearchLayout.loading": "Y\xFCkleniyor...",
|
|
4578
|
+
"df.wise.back.label": "Geri",
|
|
4405
4579
|
"df.wise.filter.noResults": "Sonu\xE7 yok",
|
|
4406
4580
|
"df.wise.filter.placeholder": "Aramak i\xE7in yazmaya ba\u015Flay\u0131n",
|
|
4407
4581
|
"df.wise.filter.results": "Arama sonu\xE7lar\u0131",
|
|
@@ -4447,6 +4621,7 @@ var zh_CN_default = {
|
|
|
4447
4621
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002",
|
|
4448
4622
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5\u3002",
|
|
4449
4623
|
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026",
|
|
4624
|
+
"df.wise.back.label": "\u8FD4\u56DE",
|
|
4450
4625
|
"df.wise.filter.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
4451
4626
|
"df.wise.filter.placeholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
|
|
4452
4627
|
"df.wise.filter.results": "\u641C\u7D22\u7ED3\u679C",
|
|
@@ -4492,6 +4667,7 @@ var zh_HK_default = {
|
|
|
4492
4667
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002",
|
|
4493
4668
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u73FE\u4E86\u554F\u984C\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002",
|
|
4494
4669
|
"df.wise.SearchLayout.loading": "\u8F09\u5165\u4E2D\u2026",
|
|
4670
|
+
"df.wise.back.label": "\u8FD4\u56DE",
|
|
4495
4671
|
"df.wise.filter.noResults": "\u6C92\u6709\u7D50\u679C",
|
|
4496
4672
|
"df.wise.filter.placeholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
|
|
4497
4673
|
"df.wise.filter.results": "\u641C\u5C0B\u7D50\u679C",
|
|
@@ -4534,7 +4710,7 @@ var i18n_default = translations;
|
|
|
4534
4710
|
|
|
4535
4711
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4536
4712
|
import { forwardRef, useCallback, useMemo as useMemo2 } from "react";
|
|
4537
|
-
import { useIntl as
|
|
4713
|
+
import { useIntl as useIntl14 } from "react-intl";
|
|
4538
4714
|
import {
|
|
4539
4715
|
DynamicFlow as DynamicFlowCoreLegacy,
|
|
4540
4716
|
DynamicFlowCoreRevamp,
|
|
@@ -4544,7 +4720,7 @@ import {
|
|
|
4544
4720
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4545
4721
|
var appVersion = (
|
|
4546
4722
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4547
|
-
typeof process !== "undefined" ? "4.
|
|
4723
|
+
typeof process !== "undefined" ? "4.38.0" : "0.0.0"
|
|
4548
4724
|
);
|
|
4549
4725
|
|
|
4550
4726
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -4584,8 +4760,8 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
|
|
|
4584
4760
|
};
|
|
4585
4761
|
|
|
4586
4762
|
// src/dynamicFlow/messages.ts
|
|
4587
|
-
import { defineMessages as
|
|
4588
|
-
var messages_default =
|
|
4763
|
+
import { defineMessages as defineMessages12 } from "react-intl";
|
|
4764
|
+
var messages_default = defineMessages12({
|
|
4589
4765
|
copied: {
|
|
4590
4766
|
id: "df.wise.CopyFeedback.copy",
|
|
4591
4767
|
defaultMessage: "Copied to clipboard",
|
|
@@ -4599,12 +4775,12 @@ var messages_default = defineMessages11({
|
|
|
4599
4775
|
});
|
|
4600
4776
|
|
|
4601
4777
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4602
|
-
import { jsx as
|
|
4778
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
4603
4779
|
var wiseRenderers = getWiseRenderers();
|
|
4604
4780
|
function DynamicFlowLegacy(props) {
|
|
4605
4781
|
const { customFetch = globalThis.fetch } = props;
|
|
4606
4782
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
4607
|
-
return /* @__PURE__ */
|
|
4783
|
+
return /* @__PURE__ */ jsx86(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
|
|
4608
4784
|
}
|
|
4609
4785
|
function DynamicFlowRevamp(props) {
|
|
4610
4786
|
const {
|
|
@@ -4617,7 +4793,7 @@ function DynamicFlowRevamp(props) {
|
|
|
4617
4793
|
onLink = openLinkInNewTab,
|
|
4618
4794
|
onThemeChange
|
|
4619
4795
|
} = props;
|
|
4620
|
-
const { formatMessage } =
|
|
4796
|
+
const { formatMessage } = useIntl14();
|
|
4621
4797
|
const createSnackBar = useSnackBarIfAvailable();
|
|
4622
4798
|
const httpClient = useWiseHttpClient(customFetch);
|
|
4623
4799
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
@@ -4641,7 +4817,7 @@ function DynamicFlowRevamp(props) {
|
|
|
4641
4817
|
onLink,
|
|
4642
4818
|
onCopy
|
|
4643
4819
|
});
|
|
4644
|
-
return /* @__PURE__ */
|
|
4820
|
+
return /* @__PURE__ */ jsx86("div", { className, children: /* @__PURE__ */ jsx86(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
|
|
4645
4821
|
}
|
|
4646
4822
|
var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
4647
4823
|
const {
|
|
@@ -4654,7 +4830,7 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
4654
4830
|
onLink = openLinkInNewTab,
|
|
4655
4831
|
onThemeChange
|
|
4656
4832
|
} = props;
|
|
4657
|
-
const { formatMessage } =
|
|
4833
|
+
const { formatMessage } = useIntl14();
|
|
4658
4834
|
const createSnackBar = useSnackBarIfAvailable();
|
|
4659
4835
|
const httpClient = useWiseHttpClient(customFetch);
|
|
4660
4836
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
@@ -4678,10 +4854,10 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
4678
4854
|
onLink,
|
|
4679
4855
|
onCopy
|
|
4680
4856
|
});
|
|
4681
|
-
return /* @__PURE__ */
|
|
4857
|
+
return /* @__PURE__ */ jsx86("div", { className, children: /* @__PURE__ */ jsx86(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
|
|
4682
4858
|
});
|
|
4683
4859
|
var useWiseHttpClient = (httpClient) => {
|
|
4684
|
-
const { locale } =
|
|
4860
|
+
const { locale } = useIntl14();
|
|
4685
4861
|
return useCallback(
|
|
4686
4862
|
async (input, init = {}) => {
|
|
4687
4863
|
const headers = new Headers(init.headers);
|
|
@@ -4715,7 +4891,7 @@ export {
|
|
|
4715
4891
|
DynamicFlowLegacy,
|
|
4716
4892
|
DynamicFlowRevamp,
|
|
4717
4893
|
DynamicForm,
|
|
4718
|
-
|
|
4894
|
+
Header13 as Header,
|
|
4719
4895
|
JsonSchemaForm,
|
|
4720
4896
|
Media2 as Media,
|
|
4721
4897
|
findRendererPropsByType,
|