@wise/dynamic-flow-client-internal 4.33.4 → 4.35.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 +8 -8
- package/build/i18n/de.json +8 -8
- package/build/i18n/en.json +8 -8
- package/build/i18n/es.json +8 -8
- package/build/i18n/fr.json +8 -8
- package/build/i18n/hu.json +8 -8
- package/build/i18n/id.json +8 -8
- package/build/i18n/it.json +8 -8
- package/build/i18n/ja.json +8 -8
- package/build/i18n/nl.json +8 -8
- package/build/i18n/pl.json +8 -8
- package/build/i18n/pt.json +8 -8
- package/build/i18n/ro.json +8 -8
- package/build/i18n/ru.json +8 -8
- package/build/i18n/th.json +8 -8
- package/build/i18n/tr.json +8 -8
- package/build/i18n/uk.json +8 -8
- package/build/i18n/zh_CN.json +8 -8
- package/build/i18n/zh_HK.json +8 -8
- package/build/main.js +700 -586
- package/build/main.mjs +577 -463
- package/package.json +15 -15
package/build/main.js
CHANGED
|
@@ -838,97 +838,31 @@ var DateInputRenderer_default = DateInputRenderer;
|
|
|
838
838
|
// ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
|
|
839
839
|
var import_components13 = require("@transferwise/components");
|
|
840
840
|
|
|
841
|
-
// ../renderers/src/DecisionRenderer/
|
|
841
|
+
// ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
|
|
842
842
|
var import_components12 = require("@transferwise/components");
|
|
843
|
+
var import_react3 = require("react");
|
|
844
|
+
var import_react_intl8 = require("react-intl");
|
|
843
845
|
|
|
844
|
-
// ../renderers/src/
|
|
845
|
-
var import_components11 = require("@transferwise/components");
|
|
846
|
-
var import_react_intl6 = require("react-intl");
|
|
847
|
-
|
|
848
|
-
// ../renderers/src/messages/decision.messages.ts
|
|
846
|
+
// ../renderers/src/messages/filter.messages.ts
|
|
849
847
|
var import_react_intl5 = require("react-intl");
|
|
850
|
-
var
|
|
851
|
-
|
|
852
|
-
id: "df.wise.
|
|
853
|
-
defaultMessage: "All",
|
|
854
|
-
description: "Label for the group of options that encompasses all options"
|
|
855
|
-
},
|
|
856
|
-
popular: {
|
|
857
|
-
id: "df.wise.Decision.popular",
|
|
858
|
-
defaultMessage: "Popular",
|
|
859
|
-
description: "Label for the group of options that are tagged as popular"
|
|
860
|
-
},
|
|
861
|
-
recent: {
|
|
862
|
-
id: "df.wise.Decision.recent",
|
|
863
|
-
defaultMessage: "Recent",
|
|
864
|
-
description: "Label for the group of options that are tagged as recent"
|
|
865
|
-
},
|
|
866
|
-
currenciesWithAccountDetails: {
|
|
867
|
-
id: "df.wise.Decision.currenciesWithAccountDetails",
|
|
868
|
-
defaultMessage: "Currencies with account details",
|
|
869
|
-
description: "Label for the group of options that are tagged as currencies with account details"
|
|
870
|
-
},
|
|
871
|
-
filterPlaceholder: {
|
|
872
|
-
id: "df.wise.Decision.filterPlaceholder",
|
|
848
|
+
var filter_messages_default = (0, import_react_intl5.defineMessages)({
|
|
849
|
+
placeholder: {
|
|
850
|
+
id: "df.wise.filter.placeholder",
|
|
873
851
|
defaultMessage: "Start typing to search",
|
|
874
852
|
description: "Placeholder for the filter input"
|
|
875
853
|
},
|
|
876
854
|
results: {
|
|
877
|
-
id: "df.wise.
|
|
855
|
+
id: "df.wise.filter.results",
|
|
878
856
|
defaultMessage: "Search results",
|
|
879
857
|
description: "Label for the results section"
|
|
880
858
|
},
|
|
881
859
|
noResults: {
|
|
882
|
-
id: "df.wise.
|
|
860
|
+
id: "df.wise.filter.noResults",
|
|
883
861
|
defaultMessage: "No results",
|
|
884
862
|
description: "Message for if there are no results"
|
|
885
863
|
}
|
|
886
864
|
});
|
|
887
865
|
|
|
888
|
-
// ../renderers/src/DecisionRenderer/GroupedList.tsx
|
|
889
|
-
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
890
|
-
var OPTION_GROUPS = {
|
|
891
|
-
popular: "popular",
|
|
892
|
-
recent: "recent",
|
|
893
|
-
currencyWithAccountDetails: "currencies-with-account-details"
|
|
894
|
-
};
|
|
895
|
-
var GroupedList = (_a) => {
|
|
896
|
-
var _b = _a, { renderDecisionList: renderDecisionList3 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
|
|
897
|
-
const { formatMessage } = (0, import_react_intl6.useIntl)();
|
|
898
|
-
const { options } = rest;
|
|
899
|
-
const popularOptions = options.filter((option) => option.tag === OPTION_GROUPS.popular);
|
|
900
|
-
const recentOptions = options.filter((option) => option.tag === OPTION_GROUPS.recent);
|
|
901
|
-
const currencyWithAccountDetailsOptions = options.filter(
|
|
902
|
-
(option) => option.tag === OPTION_GROUPS.currencyWithAccountDetails
|
|
903
|
-
);
|
|
904
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
905
|
-
popularOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components11.Section, { children: [
|
|
906
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components11.Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
|
|
907
|
-
renderDecisionList3(__spreadProps(__spreadValues({}, rest), { options: popularOptions }))
|
|
908
|
-
] }) : null,
|
|
909
|
-
recentOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components11.Section, { children: [
|
|
910
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components11.Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
|
|
911
|
-
renderDecisionList3(__spreadProps(__spreadValues({}, rest), { options: recentOptions }))
|
|
912
|
-
] }) : null,
|
|
913
|
-
currencyWithAccountDetailsOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components11.Section, { children: [
|
|
914
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components11.Header, { as: "h2", title: formatMessage(decision_messages_default.currenciesWithAccountDetails) }),
|
|
915
|
-
renderDecisionList3(__spreadProps(__spreadValues({}, rest), { options: currencyWithAccountDetailsOptions }))
|
|
916
|
-
] }) : null,
|
|
917
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components11.Section, { children: [
|
|
918
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components11.Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
|
|
919
|
-
renderDecisionList3(rest)
|
|
920
|
-
] })
|
|
921
|
-
] });
|
|
922
|
-
};
|
|
923
|
-
var isGroupedDecision = (options) => {
|
|
924
|
-
const possibleGroups = Object.values(OPTION_GROUPS);
|
|
925
|
-
return options.some(({ tag }) => tag && possibleGroups.includes(tag));
|
|
926
|
-
};
|
|
927
|
-
|
|
928
|
-
// ../renderers/src/DecisionRenderer/DecisionList.tsx
|
|
929
|
-
var import_react_intl7 = require("react-intl");
|
|
930
|
-
var import_react3 = require("react");
|
|
931
|
-
|
|
932
866
|
// ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
|
|
933
867
|
function filterAndSortDecisionOptions(selectOptions, query) {
|
|
934
868
|
const upperQuery = normalizeAndRemoveAccents(query);
|
|
@@ -970,7 +904,69 @@ function filterAndSortDecisionOptions(selectOptions, query) {
|
|
|
970
904
|
}
|
|
971
905
|
var normalizeAndRemoveAccents = (text) => text.trim().toLowerCase().normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "");
|
|
972
906
|
|
|
973
|
-
// ../renderers/src/DecisionRenderer/
|
|
907
|
+
// ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
|
|
908
|
+
var import_components11 = require("@transferwise/components");
|
|
909
|
+
var import_react_intl7 = require("react-intl");
|
|
910
|
+
|
|
911
|
+
// ../renderers/src/messages/group.messages.ts
|
|
912
|
+
var import_react_intl6 = require("react-intl");
|
|
913
|
+
var group_messages_default = (0, import_react_intl6.defineMessages)({
|
|
914
|
+
all: {
|
|
915
|
+
id: "df.wise.group.all",
|
|
916
|
+
defaultMessage: "All",
|
|
917
|
+
description: "Label for the group of options that encompasses all options"
|
|
918
|
+
},
|
|
919
|
+
popular: {
|
|
920
|
+
id: "df.wise.group.popular",
|
|
921
|
+
defaultMessage: "Popular",
|
|
922
|
+
description: "Label for the group of options that are tagged as popular"
|
|
923
|
+
},
|
|
924
|
+
recent: {
|
|
925
|
+
id: "df.wise.group.recent",
|
|
926
|
+
defaultMessage: "Recent",
|
|
927
|
+
description: "Label for the group of options that are tagged as recent"
|
|
928
|
+
},
|
|
929
|
+
"currencies-with-account-details": {
|
|
930
|
+
id: "df.wise.group.currencies-with-account-details",
|
|
931
|
+
defaultMessage: "Currencies with account details",
|
|
932
|
+
description: "Label for the group of options that are tagged as currencies with account details"
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
|
|
936
|
+
// ../renderers/src/utils/grouping-utils.ts
|
|
937
|
+
var getGroupsFromTags = (knownTags, items) => {
|
|
938
|
+
return knownTags.map((tag) => {
|
|
939
|
+
return { tag, items: items.filter((item) => {
|
|
940
|
+
var _a;
|
|
941
|
+
return (_a = item.tags) == null ? void 0 : _a.includes(tag);
|
|
942
|
+
}) };
|
|
943
|
+
}).filter((group) => group.items.length > 0);
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
// ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
|
|
947
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
948
|
+
var groupingTags = Object.keys(group_messages_default).filter((key) => key !== "all");
|
|
949
|
+
var isGroupedDecision = (options) => {
|
|
950
|
+
return getGroupsFromTags(groupingTags, options).length > 0;
|
|
951
|
+
};
|
|
952
|
+
var GroupedDecisionList = (_a) => {
|
|
953
|
+
var _b = _a, { renderDecisionList: renderDecisionList3 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
|
|
954
|
+
const { formatMessage } = (0, import_react_intl7.useIntl)();
|
|
955
|
+
const { options } = rest;
|
|
956
|
+
const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
|
|
957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components11.Section, { children: [
|
|
958
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
959
|
+
import_components11.Header,
|
|
960
|
+
{
|
|
961
|
+
as: "h2",
|
|
962
|
+
title: tag in group_messages_default ? formatMessage(group_messages_default[tag]) : tag
|
|
963
|
+
}
|
|
964
|
+
),
|
|
965
|
+
renderDecisionList3(__spreadProps(__spreadValues({}, rest), { options: items }))
|
|
966
|
+
] }, tag)) });
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
// ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
|
|
974
970
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
975
971
|
var DecisionWrapper = (props) => {
|
|
976
972
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getMargin(props.margin), children: [
|
|
@@ -980,10 +976,10 @@ var DecisionWrapper = (props) => {
|
|
|
980
976
|
};
|
|
981
977
|
var UnfilteredDecisionList = (_a) => {
|
|
982
978
|
var _b = _a, { renderDecisionList: renderDecisionList3 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
|
|
983
|
-
return isGroupedDecision(rest.options) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
979
|
+
return isGroupedDecision(rest.options) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList3 })) : renderDecisionList3(rest);
|
|
984
980
|
};
|
|
985
981
|
var FilteredDecisionList = (props) => {
|
|
986
|
-
const { formatMessage } = (0,
|
|
982
|
+
const { formatMessage } = (0, import_react_intl8.useIntl)();
|
|
987
983
|
const [query, setQuery] = (0, import_react3.useState)("");
|
|
988
984
|
const { control, options, renderDecisionList: renderDecisionList3 } = props;
|
|
989
985
|
const filteredOptions = filterAndSortDecisionOptions(options, query);
|
|
@@ -992,22 +988,22 @@ var FilteredDecisionList = (props) => {
|
|
|
992
988
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
993
989
|
import_components12.SearchInput,
|
|
994
990
|
{
|
|
995
|
-
placeholder: formatMessage(
|
|
991
|
+
placeholder: formatMessage(filter_messages_default.placeholder),
|
|
996
992
|
value: query,
|
|
993
|
+
className: "m-b-2",
|
|
997
994
|
onChange: (e) => {
|
|
998
995
|
var _a;
|
|
999
996
|
return setQuery((_a = e.target.value) != null ? _a : "");
|
|
1000
|
-
}
|
|
1001
|
-
className: "m-b-2"
|
|
997
|
+
}
|
|
1002
998
|
}
|
|
1003
999
|
),
|
|
1004
|
-
isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1005
|
-
query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components12.Header, { as: "h2", title: formatMessage(
|
|
1000
|
+
isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
1001
|
+
query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components12.Header, { as: "h2", title: formatMessage(filter_messages_default.results), className: "m-t-4" }),
|
|
1006
1002
|
filteredOptions.length > 0 ? renderDecisionList3({
|
|
1007
1003
|
control,
|
|
1008
1004
|
className: query.length === 0 ? "m-t-3" : "",
|
|
1009
1005
|
options: filteredOptions
|
|
1010
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { children: formatMessage(
|
|
1006
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { children: formatMessage(filter_messages_default.noResults) })
|
|
1011
1007
|
] })
|
|
1012
1008
|
] });
|
|
1013
1009
|
};
|
|
@@ -1069,8 +1065,8 @@ var DividerRenderer_default = DividerRenderer;
|
|
|
1069
1065
|
var import_components15 = require("@transferwise/components");
|
|
1070
1066
|
|
|
1071
1067
|
// ../renderers/src/messages/external-confirmation.messages.ts
|
|
1072
|
-
var
|
|
1073
|
-
var external_confirmation_messages_default = (0,
|
|
1068
|
+
var import_react_intl9 = require("react-intl");
|
|
1069
|
+
var external_confirmation_messages_default = (0, import_react_intl9.defineMessages)({
|
|
1074
1070
|
title: {
|
|
1075
1071
|
id: "df.wise.ExternalConfirmation.title",
|
|
1076
1072
|
defaultMessage: "Please confirm",
|
|
@@ -1094,7 +1090,7 @@ var external_confirmation_messages_default = (0, import_react_intl8.defineMessag
|
|
|
1094
1090
|
});
|
|
1095
1091
|
|
|
1096
1092
|
// ../renderers/src/ExternalConfirmationRenderer.tsx
|
|
1097
|
-
var
|
|
1093
|
+
var import_react_intl10 = require("react-intl");
|
|
1098
1094
|
var import_react4 = require("react");
|
|
1099
1095
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1100
1096
|
var ExternalConfirmationRenderer = {
|
|
@@ -1108,7 +1104,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1108
1104
|
onFailure,
|
|
1109
1105
|
onCancel
|
|
1110
1106
|
}) {
|
|
1111
|
-
const { formatMessage } = (0,
|
|
1107
|
+
const { formatMessage } = (0, import_react_intl10.useIntl)();
|
|
1112
1108
|
(0, import_react4.useEffect)(() => {
|
|
1113
1109
|
if (url) {
|
|
1114
1110
|
const w = window.open(url, "_blank");
|
|
@@ -1603,7 +1599,14 @@ var import_components23 = require("@transferwise/components");
|
|
|
1603
1599
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1604
1600
|
var MarkdownRenderer = {
|
|
1605
1601
|
canRenderType: "markdown",
|
|
1606
|
-
render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1602
|
+
render: ({ content, align, margin, size }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1603
|
+
import_components23.Markdown,
|
|
1604
|
+
{
|
|
1605
|
+
className: size === "sm" ? "np-text-body-default" : "np-text-body-large",
|
|
1606
|
+
config: { link: { target: "_blank" } },
|
|
1607
|
+
children: content
|
|
1608
|
+
}
|
|
1609
|
+
) })
|
|
1607
1610
|
};
|
|
1608
1611
|
var MarkdownRenderer_default = MarkdownRenderer;
|
|
1609
1612
|
|
|
@@ -1645,14 +1648,114 @@ var ModalRenderer = {
|
|
|
1645
1648
|
}
|
|
1646
1649
|
};
|
|
1647
1650
|
|
|
1648
|
-
// ../renderers/src/
|
|
1651
|
+
// ../renderers/src/MoneyInputRenderer.tsx
|
|
1649
1652
|
var import_components26 = require("@transferwise/components");
|
|
1650
1653
|
var import_react9 = require("react");
|
|
1651
1654
|
var import_react_intl11 = require("react-intl");
|
|
1655
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1656
|
+
var groupingTags2 = Object.keys(group_messages_default).filter((key) => key !== "all");
|
|
1657
|
+
var MoneyInputRenderer = {
|
|
1658
|
+
canRenderType: "money-input",
|
|
1659
|
+
render: MoneyInputRendererComponent
|
|
1660
|
+
};
|
|
1661
|
+
function MoneyInputRendererComponent(props) {
|
|
1662
|
+
var _a;
|
|
1663
|
+
const {
|
|
1664
|
+
uid,
|
|
1665
|
+
title,
|
|
1666
|
+
description,
|
|
1667
|
+
validationState,
|
|
1668
|
+
help,
|
|
1669
|
+
amountValue,
|
|
1670
|
+
selectedCurrencyIndex,
|
|
1671
|
+
placeholder,
|
|
1672
|
+
currencies,
|
|
1673
|
+
onAmountChange,
|
|
1674
|
+
onCurrencyChange
|
|
1675
|
+
} = props;
|
|
1676
|
+
(0, import_react9.useEffect)(() => {
|
|
1677
|
+
if (!isValidIndex(selectedCurrencyIndex, currencies.length)) {
|
|
1678
|
+
onCurrencyChange(0);
|
|
1679
|
+
}
|
|
1680
|
+
}, [selectedCurrencyIndex, onCurrencyChange, currencies.length]);
|
|
1681
|
+
const { formatMessage } = (0, import_react_intl11.useIntl)();
|
|
1682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1683
|
+
FieldInput_default,
|
|
1684
|
+
{
|
|
1685
|
+
id: uid,
|
|
1686
|
+
label: title,
|
|
1687
|
+
description,
|
|
1688
|
+
validation: validationState,
|
|
1689
|
+
help,
|
|
1690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1691
|
+
import_components26.MoneyInput,
|
|
1692
|
+
{
|
|
1693
|
+
amount: parseFloatOrNull(amountValue),
|
|
1694
|
+
searchPlaceholder: "",
|
|
1695
|
+
size: "md",
|
|
1696
|
+
currencies: mapCurrencies(currencies, formatMessage),
|
|
1697
|
+
selectedCurrency: getCurrencyOptionItem(
|
|
1698
|
+
currencies[selectedCurrencyIndex != null ? selectedCurrencyIndex : 0],
|
|
1699
|
+
String(selectedCurrencyIndex != null ? selectedCurrencyIndex : 0)
|
|
1700
|
+
),
|
|
1701
|
+
placeholder: (_a = parseFloatOrNull(placeholder)) != null ? _a : void 0,
|
|
1702
|
+
onAmountChange: (newAmount) => {
|
|
1703
|
+
onAmountChange(String(newAmount));
|
|
1704
|
+
},
|
|
1705
|
+
onCurrencyChange: (item) => {
|
|
1706
|
+
const selectedIndex = Number.parseInt(item.value, 10);
|
|
1707
|
+
onCurrencyChange(selectedIndex);
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
)
|
|
1711
|
+
}
|
|
1712
|
+
);
|
|
1713
|
+
}
|
|
1714
|
+
var parseFloatOrNull = (value) => {
|
|
1715
|
+
const parsed = Number.parseFloat(value != null ? value : "");
|
|
1716
|
+
return Number.isNaN(parsed) ? null : parsed;
|
|
1717
|
+
};
|
|
1718
|
+
var mapCurrencies = (options, formatMessage) => {
|
|
1719
|
+
const groupsFromTags = getGroupsFromTags(groupingTags2, options);
|
|
1720
|
+
if (groupsFromTags.length > 0) {
|
|
1721
|
+
return [...groupsFromTags, { tag: "all", items: options }].flatMap(({ tag, items }) => {
|
|
1722
|
+
return [
|
|
1723
|
+
{
|
|
1724
|
+
header: tag in group_messages_default ? formatMessage(group_messages_default[tag]) : tag
|
|
1725
|
+
},
|
|
1726
|
+
...items.map((item) => getCurrencyOptionItem(item, String(options.indexOf(item))))
|
|
1727
|
+
];
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
return options.map((item, index) => getCurrencyOptionItem(item, String(index)));
|
|
1731
|
+
};
|
|
1732
|
+
var getCurrencyOptionItem = ({ currencyCode, title, description, keywords }, indexValue) => {
|
|
1733
|
+
assertCurrencyCodeIsString(currencyCode);
|
|
1734
|
+
return {
|
|
1735
|
+
currency: currencyCode,
|
|
1736
|
+
label: title != null ? title : "",
|
|
1737
|
+
value: indexValue,
|
|
1738
|
+
note: description,
|
|
1739
|
+
searchable: (keywords != null ? keywords : []).join(", ")
|
|
1740
|
+
};
|
|
1741
|
+
};
|
|
1742
|
+
var isValidIndex = (index, options) => index !== null && index >= 0 && index < options;
|
|
1743
|
+
function assertCurrencyCodeIsString(currencyCode) {
|
|
1744
|
+
if (typeof currencyCode !== "string") {
|
|
1745
|
+
throw new Error(
|
|
1746
|
+
"This MoneyInputRenderer only supports string currency codes. This means the const values in the schema representing currencies must be strings."
|
|
1747
|
+
);
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
1752
|
+
var import_components27 = require("@transferwise/components");
|
|
1753
|
+
var import_react10 = require("react");
|
|
1754
|
+
var import_react_intl13 = require("react-intl");
|
|
1652
1755
|
|
|
1653
1756
|
// ../renderers/src/messages/multi-select.messages.ts
|
|
1654
|
-
var
|
|
1655
|
-
var multi_select_messages_default = (0,
|
|
1757
|
+
var import_react_intl12 = require("react-intl");
|
|
1758
|
+
var multi_select_messages_default = (0, import_react_intl12.defineMessages)({
|
|
1656
1759
|
summary: {
|
|
1657
1760
|
id: "df.wise.MultiSelect.summary",
|
|
1658
1761
|
defaultMessage: "{first} and {count} more",
|
|
@@ -1661,14 +1764,14 @@ var multi_select_messages_default = (0, import_react_intl10.defineMessages)({
|
|
|
1661
1764
|
});
|
|
1662
1765
|
|
|
1663
1766
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
1664
|
-
var
|
|
1767
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1665
1768
|
var MultiSelectInputRenderer = {
|
|
1666
1769
|
canRenderType: "input-multi-select",
|
|
1667
|
-
render: (props) => /* @__PURE__ */ (0,
|
|
1770
|
+
render: (props) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MultiSelectInputRendererComponent, __spreadValues({}, props))
|
|
1668
1771
|
};
|
|
1669
1772
|
function MultiSelectInputRendererComponent(props) {
|
|
1670
|
-
const { formatMessage } = (0,
|
|
1671
|
-
const [stagedIndices, setStagedIndices] = (0,
|
|
1773
|
+
const { formatMessage } = (0, import_react_intl13.useIntl)();
|
|
1774
|
+
const [stagedIndices, setStagedIndices] = (0, import_react10.useState)();
|
|
1672
1775
|
const {
|
|
1673
1776
|
id,
|
|
1674
1777
|
autoComplete,
|
|
@@ -1706,12 +1809,12 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
1706
1809
|
const contentProps = {
|
|
1707
1810
|
title: option.title,
|
|
1708
1811
|
description: option.description,
|
|
1709
|
-
icon: /* @__PURE__ */ (0,
|
|
1812
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
|
|
1710
1813
|
};
|
|
1711
|
-
return /* @__PURE__ */ (0,
|
|
1814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components27.SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
1712
1815
|
};
|
|
1713
1816
|
const extraProps = { autoComplete };
|
|
1714
|
-
return /* @__PURE__ */ (0,
|
|
1817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1715
1818
|
FieldInput_default,
|
|
1716
1819
|
{
|
|
1717
1820
|
id,
|
|
@@ -1719,8 +1822,8 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
1719
1822
|
help,
|
|
1720
1823
|
description,
|
|
1721
1824
|
validation: validationState,
|
|
1722
|
-
children: /* @__PURE__ */ (0,
|
|
1723
|
-
|
|
1825
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1826
|
+
import_components27.SelectInput,
|
|
1724
1827
|
__spreadValues({
|
|
1725
1828
|
id,
|
|
1726
1829
|
items: options.map((option, index) => {
|
|
@@ -1759,12 +1862,12 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
1759
1862
|
var MultiSelectInputRenderer_default = MultiSelectInputRenderer;
|
|
1760
1863
|
|
|
1761
1864
|
// ../renderers/src/MultiUploadInputRenderer.tsx
|
|
1762
|
-
var
|
|
1865
|
+
var import_components29 = require("@transferwise/components");
|
|
1763
1866
|
|
|
1764
1867
|
// ../renderers/src/components/UploadFieldInput.tsx
|
|
1765
|
-
var
|
|
1868
|
+
var import_components28 = require("@transferwise/components");
|
|
1766
1869
|
var import_classnames4 = __toESM(require("classnames"));
|
|
1767
|
-
var
|
|
1870
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1768
1871
|
function UploadFieldInput({
|
|
1769
1872
|
id,
|
|
1770
1873
|
children,
|
|
@@ -1773,18 +1876,18 @@ function UploadFieldInput({
|
|
|
1773
1876
|
help,
|
|
1774
1877
|
validation
|
|
1775
1878
|
}) {
|
|
1776
|
-
const labelContent = label && help ? /* @__PURE__ */ (0,
|
|
1879
|
+
const labelContent = label && help ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LabelContentWithHelp, { text: label, help }) : label;
|
|
1777
1880
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
1778
|
-
return /* @__PURE__ */ (0,
|
|
1881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
1779
1882
|
"div",
|
|
1780
1883
|
{
|
|
1781
1884
|
className: (0, import_classnames4.default)("form-group d-block", {
|
|
1782
1885
|
"has-error": (validation == null ? void 0 : validation.status) === "invalid"
|
|
1783
1886
|
}),
|
|
1784
1887
|
children: [
|
|
1785
|
-
/* @__PURE__ */ (0,
|
|
1888
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("label", { htmlFor: id, className: "control-label", children: labelContent }),
|
|
1786
1889
|
children,
|
|
1787
|
-
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0,
|
|
1890
|
+
(validation == null ? void 0 : validation.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components28.InlineAlert, { type: "negative", id: descriptionId, children: validation.message })
|
|
1788
1891
|
]
|
|
1789
1892
|
}
|
|
1790
1893
|
);
|
|
@@ -1819,7 +1922,7 @@ var getSizeLimit = (maxSize) => {
|
|
|
1819
1922
|
};
|
|
1820
1923
|
|
|
1821
1924
|
// ../renderers/src/MultiUploadInputRenderer.tsx
|
|
1822
|
-
var
|
|
1925
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1823
1926
|
var MultiUploadInputRenderer = {
|
|
1824
1927
|
canRenderType: "input-upload-multi",
|
|
1825
1928
|
render: (props) => {
|
|
@@ -1844,7 +1947,7 @@ var MultiUploadInputRenderer = {
|
|
|
1844
1947
|
};
|
|
1845
1948
|
const onDeleteFile = async (fileId) => onRemoveFile(value.findIndex((file) => file.id === fileId));
|
|
1846
1949
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
1847
|
-
return /* @__PURE__ */ (0,
|
|
1950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1848
1951
|
UploadFieldInput_default,
|
|
1849
1952
|
{
|
|
1850
1953
|
id,
|
|
@@ -1852,8 +1955,8 @@ var MultiUploadInputRenderer = {
|
|
|
1852
1955
|
description,
|
|
1853
1956
|
validation: validationState,
|
|
1854
1957
|
help,
|
|
1855
|
-
children: /* @__PURE__ */ (0,
|
|
1856
|
-
|
|
1958
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1959
|
+
import_components29.UploadInput,
|
|
1857
1960
|
{
|
|
1858
1961
|
id,
|
|
1859
1962
|
"aria-describedby": descriptionId,
|
|
@@ -1875,8 +1978,8 @@ var MultiUploadInputRenderer = {
|
|
|
1875
1978
|
var MultiUploadInputRenderer_default = MultiUploadInputRenderer;
|
|
1876
1979
|
|
|
1877
1980
|
// ../renderers/src/NumberInputRenderer.tsx
|
|
1878
|
-
var
|
|
1879
|
-
var
|
|
1981
|
+
var import_components30 = require("@transferwise/components");
|
|
1982
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1880
1983
|
var NumberInputRenderer = {
|
|
1881
1984
|
canRenderType: "input-number",
|
|
1882
1985
|
render: (props) => {
|
|
@@ -1890,7 +1993,7 @@ var NumberInputRenderer = {
|
|
|
1890
1993
|
"maximum",
|
|
1891
1994
|
"minimum"
|
|
1892
1995
|
);
|
|
1893
|
-
return /* @__PURE__ */ (0,
|
|
1996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
1894
1997
|
FieldInput_default,
|
|
1895
1998
|
{
|
|
1896
1999
|
id,
|
|
@@ -1898,8 +2001,8 @@ var NumberInputRenderer = {
|
|
|
1898
2001
|
description,
|
|
1899
2002
|
validation: validationState,
|
|
1900
2003
|
help,
|
|
1901
|
-
children: /* @__PURE__ */ (0,
|
|
1902
|
-
|
|
2004
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components30.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2005
|
+
import_components30.Input,
|
|
1903
2006
|
__spreadValues({
|
|
1904
2007
|
id,
|
|
1905
2008
|
name: id,
|
|
@@ -1919,24 +2022,24 @@ var NumberInputRenderer = {
|
|
|
1919
2022
|
var NumberInputRenderer_default = NumberInputRenderer;
|
|
1920
2023
|
|
|
1921
2024
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
1922
|
-
var
|
|
2025
|
+
var import_react_intl15 = require("react-intl");
|
|
1923
2026
|
|
|
1924
2027
|
// ../renderers/src/hooks/useSnackBarIfAvailable.ts
|
|
1925
|
-
var
|
|
1926
|
-
var
|
|
2028
|
+
var import_components31 = require("@transferwise/components");
|
|
2029
|
+
var import_react11 = require("react");
|
|
1927
2030
|
function useSnackBarIfAvailable() {
|
|
1928
|
-
const context = (0,
|
|
2031
|
+
const context = (0, import_react11.useContext)(import_components31.SnackbarContext);
|
|
1929
2032
|
return context ? context.createSnackbar : () => {
|
|
1930
2033
|
};
|
|
1931
2034
|
}
|
|
1932
2035
|
|
|
1933
2036
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
1934
|
-
var
|
|
2037
|
+
var import_components32 = require("@transferwise/components");
|
|
1935
2038
|
var import_classnames5 = __toESM(require("classnames"));
|
|
1936
2039
|
|
|
1937
2040
|
// ../renderers/src/messages/paragraph.messages.ts
|
|
1938
|
-
var
|
|
1939
|
-
var paragraph_messages_default = (0,
|
|
2041
|
+
var import_react_intl14 = require("react-intl");
|
|
2042
|
+
var paragraph_messages_default = (0, import_react_intl14.defineMessages)({
|
|
1940
2043
|
copy: {
|
|
1941
2044
|
id: "df.wise.DynamicParagraph.copy",
|
|
1942
2045
|
defaultMessage: "Copy",
|
|
@@ -1950,33 +2053,30 @@ var paragraph_messages_default = (0, import_react_intl12.defineMessages)({
|
|
|
1950
2053
|
});
|
|
1951
2054
|
|
|
1952
2055
|
// ../renderers/src/ParagraphRenderer.tsx
|
|
1953
|
-
var
|
|
2056
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1954
2057
|
var ParagraphRenderer = {
|
|
1955
2058
|
canRenderType: "paragraph",
|
|
1956
|
-
render: (props) => /* @__PURE__ */ (0,
|
|
2059
|
+
render: (props) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Paragraph, __spreadValues({}, props))
|
|
1957
2060
|
};
|
|
1958
|
-
function Paragraph({ align, control, margin, text }) {
|
|
2061
|
+
function Paragraph({ align, control, margin, size, text }) {
|
|
1959
2062
|
const className = getTextAlignmentAndMargin({ align, margin });
|
|
1960
|
-
return control === "copyable" ? /* @__PURE__ */ (0,
|
|
1961
|
-
}
|
|
1962
|
-
function StandardParagraph({ text, className }) {
|
|
1963
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: `np-text-body-large ${className}`, children: text });
|
|
2063
|
+
return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: `${size === "sm" ? "np-text-body-default" : "np-text-body-large"} ${className}`, children: text });
|
|
1964
2064
|
}
|
|
1965
2065
|
function CopyableParagraph({
|
|
1966
2066
|
text,
|
|
1967
2067
|
align,
|
|
1968
2068
|
className
|
|
1969
2069
|
}) {
|
|
1970
|
-
const { formatMessage } = (0,
|
|
2070
|
+
const { formatMessage } = (0, import_react_intl15.useIntl)();
|
|
1971
2071
|
const createSnackbar = useSnackBarIfAvailable();
|
|
1972
2072
|
const copy = () => {
|
|
1973
2073
|
navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
|
|
1974
2074
|
});
|
|
1975
2075
|
};
|
|
1976
2076
|
const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
|
|
1977
|
-
return /* @__PURE__ */ (0,
|
|
1978
|
-
/* @__PURE__ */ (0,
|
|
1979
|
-
|
|
2077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className, children: [
|
|
2078
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2079
|
+
import_components32.Input,
|
|
1980
2080
|
{
|
|
1981
2081
|
type: "text",
|
|
1982
2082
|
value: text,
|
|
@@ -1984,21 +2084,21 @@ function CopyableParagraph({
|
|
|
1984
2084
|
className: (0, import_classnames5.default)("text-ellipsis", inputAlignmentClasses)
|
|
1985
2085
|
}
|
|
1986
2086
|
),
|
|
1987
|
-
/* @__PURE__ */ (0,
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components32.Button, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
|
|
1988
2088
|
] });
|
|
1989
2089
|
}
|
|
1990
2090
|
var ParagraphRenderer_default = ParagraphRenderer;
|
|
1991
2091
|
|
|
1992
2092
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
1993
|
-
var
|
|
2093
|
+
var import_components33 = require("@transferwise/components");
|
|
1994
2094
|
var import_icons = require("@transferwise/icons");
|
|
1995
2095
|
var import_classnames6 = __toESM(require("classnames"));
|
|
1996
|
-
var
|
|
1997
|
-
var
|
|
2096
|
+
var import_react12 = require("react");
|
|
2097
|
+
var import_react_intl17 = require("react-intl");
|
|
1998
2098
|
|
|
1999
2099
|
// ../renderers/src/messages/repeatable.messages.ts
|
|
2000
|
-
var
|
|
2001
|
-
var repeatable_messages_default = (0,
|
|
2100
|
+
var import_react_intl16 = require("react-intl");
|
|
2101
|
+
var repeatable_messages_default = (0, import_react_intl16.defineMessages)({
|
|
2002
2102
|
addItemTitle: {
|
|
2003
2103
|
id: "df.wise.ArraySchema.addItemTitle",
|
|
2004
2104
|
defaultMessage: "Add Item",
|
|
@@ -2022,10 +2122,10 @@ var repeatable_messages_default = (0, import_react_intl14.defineMessages)({
|
|
|
2022
2122
|
});
|
|
2023
2123
|
|
|
2024
2124
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2025
|
-
var
|
|
2125
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2026
2126
|
var RepeatableRenderer = {
|
|
2027
2127
|
canRenderType: "repeatable",
|
|
2028
|
-
render: (props) => /* @__PURE__ */ (0,
|
|
2128
|
+
render: (props) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Repeatable, __spreadValues({}, props))
|
|
2029
2129
|
};
|
|
2030
2130
|
function Repeatable(props) {
|
|
2031
2131
|
const {
|
|
@@ -2041,8 +2141,8 @@ function Repeatable(props) {
|
|
|
2041
2141
|
onSave,
|
|
2042
2142
|
onRemove
|
|
2043
2143
|
} = props;
|
|
2044
|
-
const { formatMessage } = (0,
|
|
2045
|
-
const [openModalType, setOpenModalType] = (0,
|
|
2144
|
+
const { formatMessage } = (0, import_react_intl17.useIntl)();
|
|
2145
|
+
const [openModalType, setOpenModalType] = (0, import_react12.useState)(null);
|
|
2046
2146
|
const onAddItem = () => {
|
|
2047
2147
|
onAdd();
|
|
2048
2148
|
setOpenModalType("add");
|
|
@@ -2064,41 +2164,41 @@ function Repeatable(props) {
|
|
|
2064
2164
|
const onCancelEdit = () => {
|
|
2065
2165
|
setOpenModalType(null);
|
|
2066
2166
|
};
|
|
2067
|
-
return /* @__PURE__ */ (0,
|
|
2068
|
-
title && /* @__PURE__ */ (0,
|
|
2069
|
-
description && /* @__PURE__ */ (0,
|
|
2070
|
-
/* @__PURE__ */ (0,
|
|
2167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
2168
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.Header, { title }),
|
|
2169
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: description }),
|
|
2170
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
2071
2171
|
"div",
|
|
2072
2172
|
{
|
|
2073
2173
|
className: (0, import_classnames6.default)("form-group", {
|
|
2074
2174
|
"has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
|
|
2075
2175
|
}),
|
|
2076
2176
|
children: [
|
|
2077
|
-
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0,
|
|
2078
|
-
/* @__PURE__ */ (0,
|
|
2079
|
-
|
|
2177
|
+
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
|
|
2178
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2179
|
+
import_components33.NavigationOption,
|
|
2080
2180
|
{
|
|
2081
|
-
media: /* @__PURE__ */ (0,
|
|
2181
|
+
media: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_icons.Plus, {}),
|
|
2082
2182
|
title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2083
2183
|
showMediaAtAllSizes: true,
|
|
2084
2184
|
onClick: () => onAddItem()
|
|
2085
2185
|
}
|
|
2086
2186
|
),
|
|
2087
|
-
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0,
|
|
2187
|
+
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.InlineAlert, { type: "negative", children: validationState.message })
|
|
2088
2188
|
]
|
|
2089
2189
|
}
|
|
2090
2190
|
),
|
|
2091
|
-
/* @__PURE__ */ (0,
|
|
2092
|
-
|
|
2191
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2192
|
+
import_components33.Modal,
|
|
2093
2193
|
{
|
|
2094
2194
|
open: openModalType !== null,
|
|
2095
2195
|
title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2096
|
-
body: /* @__PURE__ */ (0,
|
|
2097
|
-
/* @__PURE__ */ (0,
|
|
2098
|
-
/* @__PURE__ */ (0,
|
|
2099
|
-
/* @__PURE__ */ (0,
|
|
2100
|
-
/* @__PURE__ */ (0,
|
|
2101
|
-
|
|
2196
|
+
body: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
2197
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "m-b-2", children: editableItem }),
|
|
2198
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
|
|
2199
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.Button, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
|
|
2200
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2201
|
+
import_components33.Button,
|
|
2102
2202
|
{
|
|
2103
2203
|
v2: true,
|
|
2104
2204
|
priority: "secondary",
|
|
@@ -2119,10 +2219,10 @@ function ItemSummaryOption({
|
|
|
2119
2219
|
item,
|
|
2120
2220
|
onClick
|
|
2121
2221
|
}) {
|
|
2122
|
-
return /* @__PURE__ */ (0,
|
|
2123
|
-
|
|
2222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2223
|
+
import_components33.NavigationOption,
|
|
2124
2224
|
{
|
|
2125
|
-
media: /* @__PURE__ */ (0,
|
|
2225
|
+
media: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
|
|
2126
2226
|
title: item.title,
|
|
2127
2227
|
content: item.description,
|
|
2128
2228
|
showMediaAtAllSizes: true,
|
|
@@ -2134,12 +2234,12 @@ function ItemSummaryOption({
|
|
|
2134
2234
|
var RepeatableRenderer_default = RepeatableRenderer;
|
|
2135
2235
|
|
|
2136
2236
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2137
|
-
var
|
|
2237
|
+
var import_components35 = require("@transferwise/components");
|
|
2138
2238
|
|
|
2139
2239
|
// ../renderers/src/components/Header.tsx
|
|
2140
|
-
var
|
|
2141
|
-
var
|
|
2142
|
-
var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0,
|
|
2240
|
+
var import_components34 = require("@transferwise/components");
|
|
2241
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2242
|
+
var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components34.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
|
|
2143
2243
|
var getHeaderAction = (callToAction) => {
|
|
2144
2244
|
if (!callToAction) {
|
|
2145
2245
|
return void 0;
|
|
@@ -2161,15 +2261,15 @@ var getHeaderAction = (callToAction) => {
|
|
|
2161
2261
|
};
|
|
2162
2262
|
|
|
2163
2263
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2164
|
-
var
|
|
2264
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2165
2265
|
var ReviewRenderer = {
|
|
2166
2266
|
canRenderType: "review",
|
|
2167
2267
|
render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
|
|
2168
2268
|
const orientation = mapControlToDefinitionListLayout(control);
|
|
2169
|
-
return /* @__PURE__ */ (0,
|
|
2170
|
-
/* @__PURE__ */ (0,
|
|
2171
|
-
/* @__PURE__ */ (0,
|
|
2172
|
-
|
|
2269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: getMargin(margin), children: [
|
|
2270
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Header7, { title, callToAction }),
|
|
2271
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2272
|
+
import_components35.DefinitionList,
|
|
2173
2273
|
{
|
|
2174
2274
|
layout: orientation,
|
|
2175
2275
|
definitions: fields.map(
|
|
@@ -2206,23 +2306,23 @@ var mapControlToDefinitionListLayout = (control) => {
|
|
|
2206
2306
|
};
|
|
2207
2307
|
var getFieldLabel = (label, help, onClick) => {
|
|
2208
2308
|
if (help) {
|
|
2209
|
-
return /* @__PURE__ */ (0,
|
|
2309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
2210
2310
|
label,
|
|
2211
2311
|
" ",
|
|
2212
|
-
/* @__PURE__ */ (0,
|
|
2312
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Help_default, { help, onClick })
|
|
2213
2313
|
] });
|
|
2214
2314
|
}
|
|
2215
2315
|
return label;
|
|
2216
2316
|
};
|
|
2217
2317
|
|
|
2218
2318
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2219
|
-
var
|
|
2220
|
-
var
|
|
2221
|
-
var
|
|
2319
|
+
var import_components37 = require("@transferwise/components");
|
|
2320
|
+
var import_react13 = require("react");
|
|
2321
|
+
var import_react_intl21 = require("react-intl");
|
|
2222
2322
|
|
|
2223
2323
|
// ../renderers/src/messages/search.messages.ts
|
|
2224
|
-
var
|
|
2225
|
-
var search_messages_default = (0,
|
|
2324
|
+
var import_react_intl18 = require("react-intl");
|
|
2325
|
+
var search_messages_default = (0, import_react_intl18.defineMessages)({
|
|
2226
2326
|
loading: {
|
|
2227
2327
|
id: "df.wise.SearchLayout.loading",
|
|
2228
2328
|
defaultMessage: "Loading...",
|
|
@@ -2231,11 +2331,11 @@ var search_messages_default = (0, import_react_intl16.defineMessages)({
|
|
|
2231
2331
|
});
|
|
2232
2332
|
|
|
2233
2333
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2234
|
-
var
|
|
2334
|
+
var import_react_intl20 = require("react-intl");
|
|
2235
2335
|
|
|
2236
2336
|
// ../renderers/src/messages/generic-error.messages.ts
|
|
2237
|
-
var
|
|
2238
|
-
var generic_error_messages_default = (0,
|
|
2337
|
+
var import_react_intl19 = require("react-intl");
|
|
2338
|
+
var generic_error_messages_default = (0, import_react_intl19.defineMessages)({
|
|
2239
2339
|
genericErrorRetryHint: {
|
|
2240
2340
|
id: "df.wise.PersistAsyncSchema.genericError",
|
|
2241
2341
|
defaultMessage: "Something went wrong, please try again.",
|
|
@@ -2254,19 +2354,19 @@ var generic_error_messages_default = (0, import_react_intl17.defineMessages)({
|
|
|
2254
2354
|
});
|
|
2255
2355
|
|
|
2256
2356
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2257
|
-
var
|
|
2258
|
-
var
|
|
2357
|
+
var import_components36 = require("@transferwise/components");
|
|
2358
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2259
2359
|
function ErrorResult({ state }) {
|
|
2260
|
-
const intl = (0,
|
|
2261
|
-
return /* @__PURE__ */ (0,
|
|
2360
|
+
const intl = (0, import_react_intl20.useIntl)();
|
|
2361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "m-t-2", children: [
|
|
2262
2362
|
intl.formatMessage(generic_error_messages_default.genericError),
|
|
2263
2363
|
"\xA0",
|
|
2264
|
-
/* @__PURE__ */ (0,
|
|
2364
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components36.Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
|
|
2265
2365
|
] });
|
|
2266
2366
|
}
|
|
2267
2367
|
|
|
2268
2368
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2269
|
-
var
|
|
2369
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2270
2370
|
function BlockSearchRendererComponent({
|
|
2271
2371
|
id,
|
|
2272
2372
|
isLoading,
|
|
@@ -2277,11 +2377,11 @@ function BlockSearchRendererComponent({
|
|
|
2277
2377
|
trackEvent,
|
|
2278
2378
|
onChange
|
|
2279
2379
|
}) {
|
|
2280
|
-
const [hasSearched, setHasSearched] = (0,
|
|
2281
|
-
const { formatMessage } = (0,
|
|
2282
|
-
return /* @__PURE__ */ (0,
|
|
2283
|
-
/* @__PURE__ */ (0,
|
|
2284
|
-
|
|
2380
|
+
const [hasSearched, setHasSearched] = (0, import_react13.useState)(false);
|
|
2381
|
+
const { formatMessage } = (0, import_react_intl21.useIntl)();
|
|
2382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: getMargin(margin), children: [
|
|
2383
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2384
|
+
import_components37.Input,
|
|
2285
2385
|
{
|
|
2286
2386
|
id,
|
|
2287
2387
|
name: id,
|
|
@@ -2297,7 +2397,7 @@ function BlockSearchRendererComponent({
|
|
|
2297
2397
|
}
|
|
2298
2398
|
}
|
|
2299
2399
|
) }),
|
|
2300
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
2400
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SearchResultContent, { state, trackEvent })
|
|
2301
2401
|
] });
|
|
2302
2402
|
}
|
|
2303
2403
|
function SearchResultContent({
|
|
@@ -2306,31 +2406,31 @@ function SearchResultContent({
|
|
|
2306
2406
|
}) {
|
|
2307
2407
|
switch (state.type) {
|
|
2308
2408
|
case "error":
|
|
2309
|
-
return /* @__PURE__ */ (0,
|
|
2409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorResult, { state });
|
|
2310
2410
|
case "results":
|
|
2311
|
-
return /* @__PURE__ */ (0,
|
|
2411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SearchResults, { state, trackEvent });
|
|
2312
2412
|
case "noResults":
|
|
2313
|
-
return /* @__PURE__ */ (0,
|
|
2413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EmptySearchResult, { state });
|
|
2314
2414
|
case "pending":
|
|
2315
2415
|
default:
|
|
2316
2416
|
return null;
|
|
2317
2417
|
}
|
|
2318
2418
|
}
|
|
2319
2419
|
function EmptySearchResult({ state }) {
|
|
2320
|
-
return /* @__PURE__ */ (0,
|
|
2420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2321
2421
|
}
|
|
2322
2422
|
function SearchResults({
|
|
2323
2423
|
state,
|
|
2324
2424
|
trackEvent
|
|
2325
2425
|
}) {
|
|
2326
|
-
return /* @__PURE__ */ (0,
|
|
2426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.NavigationOptionsList, { children: state.results.map((result) => {
|
|
2327
2427
|
const { media } = result;
|
|
2328
|
-
return /* @__PURE__ */ (0,
|
|
2329
|
-
|
|
2428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2429
|
+
import_components37.NavigationOption,
|
|
2330
2430
|
{
|
|
2331
2431
|
title: result.title,
|
|
2332
2432
|
content: result.description,
|
|
2333
|
-
media: media ? /* @__PURE__ */ (0,
|
|
2433
|
+
media: media ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(OptionMedia, { media, preferAvatar: false }) : void 0,
|
|
2334
2434
|
showMediaCircle: false,
|
|
2335
2435
|
showMediaAtAllSizes: true,
|
|
2336
2436
|
onClick: () => {
|
|
@@ -2347,11 +2447,11 @@ function SearchResults({
|
|
|
2347
2447
|
var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
|
|
2348
2448
|
|
|
2349
2449
|
// ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
|
|
2350
|
-
var
|
|
2450
|
+
var import_components38 = require("@transferwise/components");
|
|
2351
2451
|
var import_icons2 = require("@transferwise/icons");
|
|
2352
|
-
var
|
|
2353
|
-
var
|
|
2354
|
-
var
|
|
2452
|
+
var import_react14 = require("react");
|
|
2453
|
+
var import_react_intl22 = require("react-intl");
|
|
2454
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2355
2455
|
function InlineSearchRenderer({
|
|
2356
2456
|
id,
|
|
2357
2457
|
isLoading,
|
|
@@ -2361,20 +2461,20 @@ function InlineSearchRenderer({
|
|
|
2361
2461
|
title,
|
|
2362
2462
|
trackEvent
|
|
2363
2463
|
}) {
|
|
2364
|
-
const [hasSearched, setHasSearched] = (0,
|
|
2365
|
-
const intl = (0,
|
|
2366
|
-
return /* @__PURE__ */ (0,
|
|
2367
|
-
|
|
2464
|
+
const [hasSearched, setHasSearched] = (0, import_react14.useState)(false);
|
|
2465
|
+
const intl = (0, import_react_intl22.useIntl)();
|
|
2466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2467
|
+
import_components38.Typeahead,
|
|
2368
2468
|
{
|
|
2369
2469
|
id: "typeahead-input-id",
|
|
2370
2470
|
intl,
|
|
2371
2471
|
name: "typeahead-input-name",
|
|
2372
2472
|
size: "md",
|
|
2373
2473
|
maxHeight: 100,
|
|
2374
|
-
footer: /* @__PURE__ */ (0,
|
|
2474
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TypeaheadFooter, { state, isLoading }),
|
|
2375
2475
|
multiple: false,
|
|
2376
2476
|
clearable: false,
|
|
2377
|
-
addon: /* @__PURE__ */ (0,
|
|
2477
|
+
addon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons2.Search, { size: 24 }),
|
|
2378
2478
|
options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
|
|
2379
2479
|
minQueryLength: 1,
|
|
2380
2480
|
onChange: (values) => {
|
|
@@ -2409,30 +2509,30 @@ function mapResultToTypeaheadOption(result) {
|
|
|
2409
2509
|
};
|
|
2410
2510
|
}
|
|
2411
2511
|
function TypeaheadFooter({ state, isLoading }) {
|
|
2412
|
-
const { formatMessage } = (0,
|
|
2512
|
+
const { formatMessage } = (0, import_react_intl22.useIntl)();
|
|
2413
2513
|
if (state.type === "noResults") {
|
|
2414
|
-
return /* @__PURE__ */ (0,
|
|
2514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_components38.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2415
2515
|
}
|
|
2416
2516
|
if (state.type === "error") {
|
|
2417
|
-
return /* @__PURE__ */ (0,
|
|
2517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorResult, { state }) });
|
|
2418
2518
|
}
|
|
2419
2519
|
if (state.type === "pending" || isLoading) {
|
|
2420
|
-
return /* @__PURE__ */ (0,
|
|
2520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
|
|
2421
2521
|
}
|
|
2422
2522
|
return null;
|
|
2423
2523
|
}
|
|
2424
2524
|
var InlineSearchRendererComponent_default = InlineSearchRenderer;
|
|
2425
2525
|
|
|
2426
2526
|
// ../renderers/src/SearchRenderer/SearchRenderer.tsx
|
|
2427
|
-
var
|
|
2527
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2428
2528
|
var SearchRenderer = {
|
|
2429
2529
|
canRenderType: "search",
|
|
2430
|
-
render: (props) => props.control === "inline" ? /* @__PURE__ */ (0,
|
|
2530
|
+
render: (props) => props.control === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BlockSearchRendererComponent_default, __spreadValues({}, props))
|
|
2431
2531
|
};
|
|
2432
2532
|
var SearchRenderer_default = SearchRenderer;
|
|
2433
2533
|
|
|
2434
2534
|
// ../renderers/src/SectionRenderer.tsx
|
|
2435
|
-
var
|
|
2535
|
+
var import_components39 = require("@transferwise/components");
|
|
2436
2536
|
|
|
2437
2537
|
// ../renderers/src/utils/getHeaderAction.tsx
|
|
2438
2538
|
var getHeaderAction2 = (callToAction) => {
|
|
@@ -2456,12 +2556,12 @@ var getHeaderAction2 = (callToAction) => {
|
|
|
2456
2556
|
};
|
|
2457
2557
|
|
|
2458
2558
|
// ../renderers/src/SectionRenderer.tsx
|
|
2459
|
-
var
|
|
2559
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2460
2560
|
var SectionRenderer = {
|
|
2461
2561
|
canRenderType: "section",
|
|
2462
2562
|
render: ({ children, callToAction, margin, title }) => {
|
|
2463
|
-
return /* @__PURE__ */ (0,
|
|
2464
|
-
(title || callToAction) && /* @__PURE__ */ (0,
|
|
2563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("section", { className: getMargin(margin), children: [
|
|
2564
|
+
(title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components39.Header, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
|
|
2465
2565
|
children
|
|
2466
2566
|
] });
|
|
2467
2567
|
}
|
|
@@ -2469,8 +2569,8 @@ var SectionRenderer = {
|
|
|
2469
2569
|
var SectionRenderer_default = SectionRenderer;
|
|
2470
2570
|
|
|
2471
2571
|
// ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
|
|
2472
|
-
var
|
|
2473
|
-
var
|
|
2572
|
+
var import_components40 = require("@transferwise/components");
|
|
2573
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2474
2574
|
function RadioInputRendererComponent(props) {
|
|
2475
2575
|
const {
|
|
2476
2576
|
id,
|
|
@@ -2484,8 +2584,8 @@ function RadioInputRendererComponent(props) {
|
|
|
2484
2584
|
validationState,
|
|
2485
2585
|
onSelect
|
|
2486
2586
|
} = props;
|
|
2487
|
-
return /* @__PURE__ */ (0,
|
|
2488
|
-
/* @__PURE__ */ (0,
|
|
2587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
2588
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2489
2589
|
FieldInput_default,
|
|
2490
2590
|
{
|
|
2491
2591
|
id,
|
|
@@ -2493,8 +2593,8 @@ function RadioInputRendererComponent(props) {
|
|
|
2493
2593
|
help,
|
|
2494
2594
|
description,
|
|
2495
2595
|
validation: validationState,
|
|
2496
|
-
children: /* @__PURE__ */ (0,
|
|
2497
|
-
|
|
2596
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2597
|
+
import_components40.RadioGroup,
|
|
2498
2598
|
{
|
|
2499
2599
|
name: id,
|
|
2500
2600
|
radios: options.map((option, index) => ({
|
|
@@ -2502,7 +2602,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2502
2602
|
value: index,
|
|
2503
2603
|
secondary: option.description,
|
|
2504
2604
|
disabled: option.disabled || disabled,
|
|
2505
|
-
avatar: /* @__PURE__ */ (0,
|
|
2605
|
+
avatar: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2506
2606
|
})),
|
|
2507
2607
|
selectedValue: selectedIndex != null ? selectedIndex : void 0,
|
|
2508
2608
|
onChange: onSelect
|
|
@@ -2516,9 +2616,9 @@ function RadioInputRendererComponent(props) {
|
|
|
2516
2616
|
}
|
|
2517
2617
|
|
|
2518
2618
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
2519
|
-
var
|
|
2520
|
-
var
|
|
2521
|
-
var
|
|
2619
|
+
var import_components41 = require("@transferwise/components");
|
|
2620
|
+
var import_react15 = require("react");
|
|
2621
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2522
2622
|
function TabInputRendererComponent(props) {
|
|
2523
2623
|
const {
|
|
2524
2624
|
id,
|
|
@@ -2532,13 +2632,13 @@ function TabInputRendererComponent(props) {
|
|
|
2532
2632
|
validationState,
|
|
2533
2633
|
onSelect
|
|
2534
2634
|
} = props;
|
|
2535
|
-
(0,
|
|
2536
|
-
if (!
|
|
2635
|
+
(0, import_react15.useEffect)(() => {
|
|
2636
|
+
if (!isValidIndex2(selectedIndex, options.length)) {
|
|
2537
2637
|
onSelect(0);
|
|
2538
2638
|
}
|
|
2539
2639
|
}, [selectedIndex, onSelect, options.length]);
|
|
2540
|
-
return /* @__PURE__ */ (0,
|
|
2541
|
-
/* @__PURE__ */ (0,
|
|
2640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
2641
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2542
2642
|
FieldInput_default,
|
|
2543
2643
|
{
|
|
2544
2644
|
id,
|
|
@@ -2546,8 +2646,8 @@ function TabInputRendererComponent(props) {
|
|
|
2546
2646
|
help,
|
|
2547
2647
|
description,
|
|
2548
2648
|
validation: validationState,
|
|
2549
|
-
children: /* @__PURE__ */ (0,
|
|
2550
|
-
|
|
2649
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2650
|
+
import_components41.Tabs,
|
|
2551
2651
|
{
|
|
2552
2652
|
name: id,
|
|
2553
2653
|
selected: selectedIndex != null ? selectedIndex : 0,
|
|
@@ -2555,7 +2655,7 @@ function TabInputRendererComponent(props) {
|
|
|
2555
2655
|
title: option.title,
|
|
2556
2656
|
// if we pass null, we get some props-types console errors
|
|
2557
2657
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
2558
|
-
content: /* @__PURE__ */ (0,
|
|
2658
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, {}),
|
|
2559
2659
|
disabled: option.disabled || disabled
|
|
2560
2660
|
})),
|
|
2561
2661
|
onTabSelect: onSelect
|
|
@@ -2566,11 +2666,11 @@ function TabInputRendererComponent(props) {
|
|
|
2566
2666
|
children
|
|
2567
2667
|
] });
|
|
2568
2668
|
}
|
|
2569
|
-
var
|
|
2669
|
+
var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
|
|
2570
2670
|
|
|
2571
2671
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
2572
|
-
var
|
|
2573
|
-
var
|
|
2672
|
+
var import_components42 = require("@transferwise/components");
|
|
2673
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2574
2674
|
function SelectInputRendererComponent(props) {
|
|
2575
2675
|
const {
|
|
2576
2676
|
id,
|
|
@@ -2610,13 +2710,13 @@ function SelectInputRendererComponent(props) {
|
|
|
2610
2710
|
} : {
|
|
2611
2711
|
title: option.title,
|
|
2612
2712
|
description: option.description,
|
|
2613
|
-
icon: /* @__PURE__ */ (0,
|
|
2713
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2614
2714
|
};
|
|
2615
|
-
return /* @__PURE__ */ (0,
|
|
2715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_components42.SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
2616
2716
|
};
|
|
2617
2717
|
const extraProps = { autoComplete };
|
|
2618
|
-
return /* @__PURE__ */ (0,
|
|
2619
|
-
/* @__PURE__ */ (0,
|
|
2718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
2719
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2620
2720
|
FieldInput_default,
|
|
2621
2721
|
{
|
|
2622
2722
|
id,
|
|
@@ -2624,8 +2724,8 @@ function SelectInputRendererComponent(props) {
|
|
|
2624
2724
|
help,
|
|
2625
2725
|
description,
|
|
2626
2726
|
validation: validationState,
|
|
2627
|
-
children: /* @__PURE__ */ (0,
|
|
2628
|
-
|
|
2727
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2728
|
+
import_components42.SelectInput,
|
|
2629
2729
|
__spreadValues({
|
|
2630
2730
|
name: id,
|
|
2631
2731
|
placeholder,
|
|
@@ -2645,9 +2745,9 @@ function SelectInputRendererComponent(props) {
|
|
|
2645
2745
|
}
|
|
2646
2746
|
|
|
2647
2747
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
2648
|
-
var
|
|
2649
|
-
var
|
|
2650
|
-
var
|
|
2748
|
+
var import_react16 = require("react");
|
|
2749
|
+
var import_components43 = require("@transferwise/components");
|
|
2750
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2651
2751
|
function SegmentedInputRendererComponent(props) {
|
|
2652
2752
|
const {
|
|
2653
2753
|
id,
|
|
@@ -2660,13 +2760,13 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2660
2760
|
validationState,
|
|
2661
2761
|
onSelect
|
|
2662
2762
|
} = props;
|
|
2663
|
-
(0,
|
|
2664
|
-
if (!
|
|
2763
|
+
(0, import_react16.useEffect)(() => {
|
|
2764
|
+
if (!isValidIndex3(selectedIndex, options.length)) {
|
|
2665
2765
|
onSelect(0);
|
|
2666
2766
|
}
|
|
2667
2767
|
}, [selectedIndex, onSelect, options.length]);
|
|
2668
|
-
return /* @__PURE__ */ (0,
|
|
2669
|
-
/* @__PURE__ */ (0,
|
|
2768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
2769
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2670
2770
|
FieldInput_default,
|
|
2671
2771
|
{
|
|
2672
2772
|
id,
|
|
@@ -2674,8 +2774,8 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2674
2774
|
help,
|
|
2675
2775
|
description,
|
|
2676
2776
|
validation: validationState,
|
|
2677
|
-
children: /* @__PURE__ */ (0,
|
|
2678
|
-
|
|
2777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2778
|
+
import_components43.SegmentedControl,
|
|
2679
2779
|
{
|
|
2680
2780
|
name: `${id}-segmented-control`,
|
|
2681
2781
|
value: String(selectedIndex),
|
|
@@ -2691,44 +2791,44 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2691
2791
|
)
|
|
2692
2792
|
}
|
|
2693
2793
|
),
|
|
2694
|
-
/* @__PURE__ */ (0,
|
|
2794
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { id: `${id}-children`, children })
|
|
2695
2795
|
] });
|
|
2696
2796
|
}
|
|
2697
|
-
var
|
|
2797
|
+
var isValidIndex3 = (index, options) => index !== null && index >= 0 && index < options;
|
|
2698
2798
|
|
|
2699
2799
|
// ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
|
|
2700
|
-
var
|
|
2800
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2701
2801
|
var SelectInputRenderer = {
|
|
2702
2802
|
canRenderType: "input-select",
|
|
2703
2803
|
render: (props) => {
|
|
2704
2804
|
switch (props.control) {
|
|
2705
2805
|
case "radio":
|
|
2706
|
-
return /* @__PURE__ */ (0,
|
|
2806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
|
|
2707
2807
|
case "tab":
|
|
2708
|
-
return props.options.length > 3 ? /* @__PURE__ */ (0,
|
|
2808
|
+
return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TabInputRendererComponent, __spreadValues({}, props));
|
|
2709
2809
|
case "segmented":
|
|
2710
|
-
return props.options.length > 3 ? /* @__PURE__ */ (0,
|
|
2810
|
+
return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
|
|
2711
2811
|
case "select":
|
|
2712
2812
|
default:
|
|
2713
|
-
return /* @__PURE__ */ (0,
|
|
2813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
|
|
2714
2814
|
}
|
|
2715
2815
|
}
|
|
2716
2816
|
};
|
|
2717
2817
|
var SelectInputRenderer_default = SelectInputRenderer;
|
|
2718
2818
|
|
|
2719
2819
|
// ../renderers/src/StatusListRenderer.tsx
|
|
2720
|
-
var
|
|
2721
|
-
var
|
|
2820
|
+
var import_components44 = require("@transferwise/components");
|
|
2821
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2722
2822
|
var StatusListRenderer = {
|
|
2723
2823
|
canRenderType: "status-list",
|
|
2724
|
-
render: ({ margin, items, title }) => /* @__PURE__ */ (0,
|
|
2725
|
-
title ? /* @__PURE__ */ (0,
|
|
2726
|
-
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0,
|
|
2727
|
-
|
|
2824
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: getMargin(margin), children: [
|
|
2825
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_components44.Header, { title, className: "m-b-2" }) : null,
|
|
2826
|
+
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2827
|
+
import_components44.Summary,
|
|
2728
2828
|
{
|
|
2729
2829
|
title: itemTitle,
|
|
2730
2830
|
description,
|
|
2731
|
-
icon: icon && "name" in icon ? /* @__PURE__ */ (0,
|
|
2831
|
+
icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DynamicIcon_default, { name: icon.name }) : null,
|
|
2732
2832
|
status: mapStatus(status),
|
|
2733
2833
|
action: getSummaryAction(callToAction)
|
|
2734
2834
|
},
|
|
@@ -2765,12 +2865,12 @@ var mapStatus = (status) => {
|
|
|
2765
2865
|
|
|
2766
2866
|
// ../renderers/src/utils/useCustomTheme.ts
|
|
2767
2867
|
var import_components_theming = require("@wise/components-theming");
|
|
2768
|
-
var
|
|
2868
|
+
var import_react17 = require("react");
|
|
2769
2869
|
var ThemeRequiredEventName = "Theme Required";
|
|
2770
2870
|
var useCustomTheme = (theme, trackEvent) => {
|
|
2771
2871
|
const previousThemeHookValue = (0, import_components_theming.useTheme)();
|
|
2772
|
-
const previousTheme = (0,
|
|
2773
|
-
(0,
|
|
2872
|
+
const previousTheme = (0, import_react17.useMemo)(() => previousThemeHookValue.theme, []);
|
|
2873
|
+
(0, import_react17.useEffect)(() => {
|
|
2774
2874
|
trackEvent(ThemeRequiredEventName, { theme });
|
|
2775
2875
|
return theme !== previousTheme ? () => {
|
|
2776
2876
|
trackEvent(ThemeRequiredEventName, { theme: previousTheme });
|
|
@@ -2780,32 +2880,32 @@ var useCustomTheme = (theme, trackEvent) => {
|
|
|
2780
2880
|
};
|
|
2781
2881
|
|
|
2782
2882
|
// ../renderers/src/step/topbar/BackButton.tsx
|
|
2783
|
-
var
|
|
2883
|
+
var import_components45 = require("@transferwise/components");
|
|
2784
2884
|
var import_icons3 = require("@transferwise/icons");
|
|
2785
|
-
var
|
|
2885
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2786
2886
|
function BackButton({ title, onClick }) {
|
|
2787
|
-
return /* @__PURE__ */ (0,
|
|
2788
|
-
/* @__PURE__ */ (0,
|
|
2789
|
-
/* @__PURE__ */ (0,
|
|
2887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_components45.IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
|
|
2888
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "sr-only", children: title }),
|
|
2889
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_icons3.ArrowLeft, {})
|
|
2790
2890
|
] });
|
|
2791
2891
|
}
|
|
2792
2892
|
|
|
2793
2893
|
// ../renderers/src/step/topbar/Toolbar.tsx
|
|
2794
|
-
var
|
|
2795
|
-
var
|
|
2894
|
+
var import_components46 = require("@transferwise/components");
|
|
2895
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2796
2896
|
var Toolbar = ({ items }) => {
|
|
2797
|
-
return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0,
|
|
2897
|
+
return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
|
|
2798
2898
|
};
|
|
2799
2899
|
function ToolbarButton(props) {
|
|
2800
|
-
return prefersMedia(props.control) ? /* @__PURE__ */ (0,
|
|
2900
|
+
return prefersMedia(props.control) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TextToolbarButton, __spreadValues({}, props));
|
|
2801
2901
|
}
|
|
2802
2902
|
function MediaToolbarButton(props) {
|
|
2803
2903
|
var _a;
|
|
2804
2904
|
const { context, control, media, accessibilityDescription, disabled, onClick } = props;
|
|
2805
2905
|
const priority = getIconButtonPriority(control);
|
|
2806
2906
|
const type = getSentiment(context);
|
|
2807
|
-
return /* @__PURE__ */ (0,
|
|
2808
|
-
|
|
2907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
2908
|
+
import_components46.IconButton,
|
|
2809
2909
|
{
|
|
2810
2910
|
className: "df-toolbar-button",
|
|
2811
2911
|
disabled,
|
|
@@ -2814,7 +2914,7 @@ function MediaToolbarButton(props) {
|
|
|
2814
2914
|
type,
|
|
2815
2915
|
onClick,
|
|
2816
2916
|
children: [
|
|
2817
|
-
accessibilityDescription ? /* @__PURE__ */ (0,
|
|
2917
|
+
accessibilityDescription ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "sr-only", children: accessibilityDescription }) : null,
|
|
2818
2918
|
media ? (_a = getAddonStart(media)) == null ? void 0 : _a.value : null
|
|
2819
2919
|
]
|
|
2820
2920
|
}
|
|
@@ -2825,8 +2925,8 @@ function TextToolbarButton(props) {
|
|
|
2825
2925
|
const addonStart = media ? getAddonStart(media) : void 0;
|
|
2826
2926
|
const priority = getPriority2(control);
|
|
2827
2927
|
const sentiment = getSentiment(context);
|
|
2828
|
-
return /* @__PURE__ */ (0,
|
|
2829
|
-
|
|
2928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2929
|
+
import_components46.Button,
|
|
2830
2930
|
{
|
|
2831
2931
|
v2: true,
|
|
2832
2932
|
size: "sm",
|
|
@@ -2870,48 +2970,52 @@ var getIconButtonPriority = (control) => {
|
|
|
2870
2970
|
};
|
|
2871
2971
|
|
|
2872
2972
|
// ../renderers/src/step/topbar/TopBar.tsx
|
|
2873
|
-
var
|
|
2973
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
2874
2974
|
function TopBar({ back, toolbar }) {
|
|
2875
|
-
return back || toolbar ? /* @__PURE__ */ (0,
|
|
2876
|
-
back ? /* @__PURE__ */ (0,
|
|
2877
|
-
toolbar ? /* @__PURE__ */ (0,
|
|
2975
|
+
return back || toolbar ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "d-flex m-b-2", children: [
|
|
2976
|
+
back ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BackButton, __spreadValues({}, back)) : null,
|
|
2977
|
+
toolbar ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Toolbar, __spreadValues({}, toolbar)) : null
|
|
2878
2978
|
] }) : null;
|
|
2879
2979
|
}
|
|
2880
2980
|
|
|
2881
2981
|
// ../renderers/src/step/SplashCelebrationStepRenderer.tsx
|
|
2882
|
-
var
|
|
2982
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
2883
2983
|
var SplashCelebrationStepRenderer = {
|
|
2884
2984
|
canRenderType: "step",
|
|
2885
2985
|
canRender: ({ control }) => control === "splash-celebration",
|
|
2886
2986
|
render: SplashCelebrationStepRendererComponent
|
|
2887
2987
|
};
|
|
2888
2988
|
function SplashCelebrationStepRendererComponent(props) {
|
|
2889
|
-
const { back, toolbar, children, trackEvent } = props;
|
|
2989
|
+
const { back, toolbar, children, footer, trackEvent } = props;
|
|
2990
|
+
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2890
2991
|
useCustomTheme("forest-green", trackEvent);
|
|
2891
|
-
return /* @__PURE__ */ (0,
|
|
2892
|
-
/* @__PURE__ */ (0,
|
|
2893
|
-
children
|
|
2992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "splash-screen m-t-5", children: [
|
|
2993
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TopBar, { back, toolbar }),
|
|
2994
|
+
children,
|
|
2995
|
+
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2894
2996
|
] });
|
|
2895
2997
|
}
|
|
2896
2998
|
|
|
2897
2999
|
// ../renderers/src/step/SplashStepRenderer.tsx
|
|
2898
|
-
var
|
|
3000
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
2899
3001
|
var SplashStepRenderer = {
|
|
2900
3002
|
canRenderType: "step",
|
|
2901
3003
|
canRender: ({ control }) => control === "splash",
|
|
2902
3004
|
render: SplashStepRendererComponent
|
|
2903
3005
|
};
|
|
2904
3006
|
function SplashStepRendererComponent(props) {
|
|
2905
|
-
const { back, toolbar, children } = props;
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
3007
|
+
const { back, toolbar, children, footer } = props;
|
|
3008
|
+
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
3009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "splash-screen m-t-5", children: [
|
|
3010
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TopBar, { back, toolbar }),
|
|
3011
|
+
children,
|
|
3012
|
+
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2909
3013
|
] });
|
|
2910
3014
|
}
|
|
2911
3015
|
|
|
2912
3016
|
// ../renderers/src/step/StepRenderer.tsx
|
|
2913
|
-
var
|
|
2914
|
-
var
|
|
3017
|
+
var import_components47 = require("@transferwise/components");
|
|
3018
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
2915
3019
|
var StepRenderer = {
|
|
2916
3020
|
canRenderType: "step",
|
|
2917
3021
|
render: StepRendererComponent
|
|
@@ -2919,49 +3023,49 @@ var StepRenderer = {
|
|
|
2919
3023
|
function StepRendererComponent(props) {
|
|
2920
3024
|
const { back, description, error, title, children, toolbar, footer } = props;
|
|
2921
3025
|
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2922
|
-
return /* @__PURE__ */ (0,
|
|
2923
|
-
/* @__PURE__ */ (0,
|
|
2924
|
-
title || description ? /* @__PURE__ */ (0,
|
|
2925
|
-
title ? /* @__PURE__ */ (0,
|
|
2926
|
-
description ? /* @__PURE__ */ (0,
|
|
3026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
|
|
3027
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TopBar, { back, toolbar }),
|
|
3028
|
+
title || description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "m-b-4", children: [
|
|
3029
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
|
|
3030
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
2927
3031
|
] }) : void 0,
|
|
2928
|
-
error ? /* @__PURE__ */ (0,
|
|
3032
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
2929
3033
|
children,
|
|
2930
|
-
hasFooter ? /* @__PURE__ */ (0,
|
|
3034
|
+
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2931
3035
|
] });
|
|
2932
3036
|
}
|
|
2933
3037
|
|
|
2934
3038
|
// ../renderers/src/TabsRenderer.tsx
|
|
2935
|
-
var
|
|
2936
|
-
var
|
|
2937
|
-
var
|
|
3039
|
+
var import_components48 = require("@transferwise/components");
|
|
3040
|
+
var import_react18 = require("react");
|
|
3041
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
2938
3042
|
var TabsRenderer = {
|
|
2939
3043
|
canRenderType: "tabs",
|
|
2940
3044
|
render: (props) => {
|
|
2941
3045
|
switch (props.control) {
|
|
2942
3046
|
case "segmented":
|
|
2943
3047
|
if (props.tabs.length > 3) {
|
|
2944
|
-
return /* @__PURE__ */ (0,
|
|
3048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TabsRendererComponent, __spreadValues({}, props));
|
|
2945
3049
|
}
|
|
2946
|
-
return /* @__PURE__ */ (0,
|
|
3050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
|
|
2947
3051
|
case "chips":
|
|
2948
|
-
return /* @__PURE__ */ (0,
|
|
3052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
|
|
2949
3053
|
default:
|
|
2950
|
-
return /* @__PURE__ */ (0,
|
|
3054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TabsRendererComponent, __spreadValues({}, props));
|
|
2951
3055
|
}
|
|
2952
3056
|
}
|
|
2953
3057
|
};
|
|
2954
3058
|
function TabsRendererComponent({ uid, margin, tabs }) {
|
|
2955
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
2956
|
-
return /* @__PURE__ */ (0,
|
|
2957
|
-
|
|
3059
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
|
|
3060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3061
|
+
import_components48.Tabs,
|
|
2958
3062
|
{
|
|
2959
3063
|
name: uid,
|
|
2960
3064
|
selected: selectedIndex != null ? selectedIndex : 0,
|
|
2961
3065
|
tabs: tabs.map((option) => ({
|
|
2962
3066
|
title: option.title,
|
|
2963
3067
|
disabled: false,
|
|
2964
|
-
content: /* @__PURE__ */ (0,
|
|
3068
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "m-t-2", children: [
|
|
2965
3069
|
" ",
|
|
2966
3070
|
option.children,
|
|
2967
3071
|
" "
|
|
@@ -2973,10 +3077,10 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
2973
3077
|
}
|
|
2974
3078
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
2975
3079
|
var _a;
|
|
2976
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
2977
|
-
return /* @__PURE__ */ (0,
|
|
2978
|
-
/* @__PURE__ */ (0,
|
|
2979
|
-
|
|
3080
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
|
|
3081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: getMargin(margin), children: [
|
|
3082
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3083
|
+
import_components48.SegmentedControl,
|
|
2980
3084
|
{
|
|
2981
3085
|
name: uid,
|
|
2982
3086
|
value: String(selectedIndex),
|
|
@@ -2990,31 +3094,31 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
2990
3094
|
onChange: (value) => setSelectedIndex(Number(value))
|
|
2991
3095
|
}
|
|
2992
3096
|
),
|
|
2993
|
-
/* @__PURE__ */ (0,
|
|
3097
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
2994
3098
|
] });
|
|
2995
3099
|
}
|
|
2996
3100
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
2997
3101
|
var _a;
|
|
2998
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
2999
|
-
return /* @__PURE__ */ (0,
|
|
3000
|
-
/* @__PURE__ */ (0,
|
|
3001
|
-
|
|
3102
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
|
|
3103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: getMargin(margin), children: [
|
|
3104
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3105
|
+
import_components48.Chips,
|
|
3002
3106
|
{
|
|
3003
3107
|
chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
|
|
3004
3108
|
selected: selectedIndex,
|
|
3005
3109
|
onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
|
|
3006
3110
|
}
|
|
3007
3111
|
) }),
|
|
3008
|
-
/* @__PURE__ */ (0,
|
|
3112
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3009
3113
|
] });
|
|
3010
3114
|
}
|
|
3011
3115
|
|
|
3012
3116
|
// ../renderers/src/TextInputRenderer.tsx
|
|
3013
|
-
var
|
|
3117
|
+
var import_components50 = require("@transferwise/components");
|
|
3014
3118
|
|
|
3015
3119
|
// ../renderers/src/components/VariableTextInput.tsx
|
|
3016
|
-
var
|
|
3017
|
-
var
|
|
3120
|
+
var import_components49 = require("@transferwise/components");
|
|
3121
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3018
3122
|
var commonKeys = [
|
|
3019
3123
|
"autoComplete",
|
|
3020
3124
|
"autoCapitalize",
|
|
@@ -3033,12 +3137,12 @@ function VariableTextInput(inputProps) {
|
|
|
3033
3137
|
const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
|
|
3034
3138
|
switch (control) {
|
|
3035
3139
|
case "email":
|
|
3036
|
-
return /* @__PURE__ */ (0,
|
|
3140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
|
|
3037
3141
|
case "password":
|
|
3038
|
-
return /* @__PURE__ */ (0,
|
|
3142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
|
|
3039
3143
|
case "numeric": {
|
|
3040
3144
|
const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
|
|
3041
|
-
return /* @__PURE__ */ (0,
|
|
3145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3042
3146
|
TextInput,
|
|
3043
3147
|
__spreadProps(__spreadValues({}, numericProps), {
|
|
3044
3148
|
onChange: (newValue) => {
|
|
@@ -3049,21 +3153,21 @@ function VariableTextInput(inputProps) {
|
|
|
3049
3153
|
);
|
|
3050
3154
|
}
|
|
3051
3155
|
case "phone-number":
|
|
3052
|
-
return /* @__PURE__ */ (0,
|
|
3156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_components49.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
|
|
3053
3157
|
default: {
|
|
3054
|
-
return /* @__PURE__ */ (0,
|
|
3158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
|
|
3055
3159
|
}
|
|
3056
3160
|
}
|
|
3057
3161
|
}
|
|
3058
3162
|
function TextInput(props) {
|
|
3059
3163
|
const _a = props, { control, displayFormat, onChange } = _a, commonProps = __objRest(_a, ["control", "displayFormat", "onChange"]);
|
|
3060
|
-
const InputWithPattern = control === "textarea" ?
|
|
3061
|
-
const InputWithoutPattern = control === "textarea" ?
|
|
3062
|
-
return displayFormat ? /* @__PURE__ */ (0,
|
|
3164
|
+
const InputWithPattern = control === "textarea" ? import_components49.TextareaWithDisplayFormat : import_components49.InputWithDisplayFormat;
|
|
3165
|
+
const InputWithoutPattern = control === "textarea" ? import_components49.TextArea : import_components49.Input;
|
|
3166
|
+
return displayFormat ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(InputWithPattern, __spreadProps(__spreadValues({ displayPattern: displayFormat }, commonProps), { onChange })) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(InputWithoutPattern, __spreadProps(__spreadValues({}, commonProps), { onChange: (e) => onChange(e.target.value) }));
|
|
3063
3167
|
}
|
|
3064
3168
|
|
|
3065
3169
|
// ../renderers/src/TextInputRenderer.tsx
|
|
3066
|
-
var
|
|
3170
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3067
3171
|
var TextInputRenderer = {
|
|
3068
3172
|
canRenderType: "input-text",
|
|
3069
3173
|
render: (props) => {
|
|
@@ -3096,7 +3200,7 @@ var TextInputRenderer = {
|
|
|
3096
3200
|
}
|
|
3097
3201
|
}
|
|
3098
3202
|
});
|
|
3099
|
-
return /* @__PURE__ */ (0,
|
|
3203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3100
3204
|
FieldInput_default,
|
|
3101
3205
|
{
|
|
3102
3206
|
id,
|
|
@@ -3104,7 +3208,7 @@ var TextInputRenderer = {
|
|
|
3104
3208
|
description,
|
|
3105
3209
|
validation: validationState,
|
|
3106
3210
|
help,
|
|
3107
|
-
children: /* @__PURE__ */ (0,
|
|
3211
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_components50.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
|
|
3108
3212
|
}
|
|
3109
3213
|
);
|
|
3110
3214
|
}
|
|
@@ -3112,13 +3216,13 @@ var TextInputRenderer = {
|
|
|
3112
3216
|
var TextInputRenderer_default = TextInputRenderer;
|
|
3113
3217
|
|
|
3114
3218
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3115
|
-
var
|
|
3219
|
+
var import_components51 = require("@transferwise/components");
|
|
3116
3220
|
|
|
3117
3221
|
// ../renderers/src/utils/getRandomId.ts
|
|
3118
3222
|
var getRandomId = () => Math.random().toString(36).substring(2);
|
|
3119
3223
|
|
|
3120
3224
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3121
|
-
var
|
|
3225
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3122
3226
|
var UploadInputRenderer = {
|
|
3123
3227
|
canRenderType: "input-upload",
|
|
3124
3228
|
render: (props) => {
|
|
@@ -3134,15 +3238,15 @@ var UploadInputRenderer = {
|
|
|
3134
3238
|
};
|
|
3135
3239
|
return (
|
|
3136
3240
|
// We don't pass help here as there is no sensible place to display it
|
|
3137
|
-
/* @__PURE__ */ (0,
|
|
3241
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3138
3242
|
UploadFieldInput_default,
|
|
3139
3243
|
{
|
|
3140
3244
|
id,
|
|
3141
3245
|
label: void 0,
|
|
3142
3246
|
description: void 0,
|
|
3143
3247
|
validation: validationState,
|
|
3144
|
-
children: /* @__PURE__ */ (0,
|
|
3145
|
-
|
|
3248
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3249
|
+
import_components51.UploadInput,
|
|
3146
3250
|
{
|
|
3147
3251
|
id,
|
|
3148
3252
|
description,
|
|
@@ -3200,7 +3304,7 @@ var LargeUploadRenderer = {
|
|
|
3200
3304
|
};
|
|
3201
3305
|
const filetypes = acceptsToFileTypes(accepts);
|
|
3202
3306
|
const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
|
|
3203
|
-
return /* @__PURE__ */ (0,
|
|
3307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3204
3308
|
FieldInput_default,
|
|
3205
3309
|
{
|
|
3206
3310
|
id,
|
|
@@ -3208,8 +3312,8 @@ var LargeUploadRenderer = {
|
|
|
3208
3312
|
description,
|
|
3209
3313
|
validation: validationState,
|
|
3210
3314
|
help,
|
|
3211
|
-
children: /* @__PURE__ */ (0,
|
|
3212
|
-
|
|
3315
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3316
|
+
import_components51.Upload,
|
|
3213
3317
|
__spreadProps(__spreadValues({}, uploadProps), {
|
|
3214
3318
|
usAccept,
|
|
3215
3319
|
usDisabled: disabled,
|
|
@@ -3224,24 +3328,24 @@ var LargeUploadRenderer = {
|
|
|
3224
3328
|
};
|
|
3225
3329
|
|
|
3226
3330
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3227
|
-
var
|
|
3331
|
+
var import_components54 = require("@transferwise/components");
|
|
3228
3332
|
|
|
3229
3333
|
// ../renderers/src/NewListItem/getInlineAlert.tsx
|
|
3230
|
-
var import_components51 = require("@transferwise/components");
|
|
3231
|
-
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3232
|
-
var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_components51.ListItem.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
|
|
3233
|
-
|
|
3234
|
-
// ../renderers/src/NewListItem/getAdditionalInfo.tsx
|
|
3235
3334
|
var import_components52 = require("@transferwise/components");
|
|
3236
3335
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3336
|
+
var getInlineAlert = (inlineAlert) => inlineAlert ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components52.ListItem.Prompt, { sentiment: inlineAlert == null ? void 0 : inlineAlert.context, children: inlineAlert.content }) : void 0;
|
|
3337
|
+
|
|
3338
|
+
// ../renderers/src/NewListItem/getAdditionalInfo.tsx
|
|
3339
|
+
var import_components53 = require("@transferwise/components");
|
|
3340
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3237
3341
|
var getAdditionalInfo = (additionalInfo) => {
|
|
3238
3342
|
if (!additionalInfo) {
|
|
3239
3343
|
return void 0;
|
|
3240
3344
|
}
|
|
3241
3345
|
const { href, text, onClick } = additionalInfo;
|
|
3242
3346
|
if (href || onClick) {
|
|
3243
|
-
return /* @__PURE__ */ (0,
|
|
3244
|
-
|
|
3347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3348
|
+
import_components53.ListItem.AdditionalInfo,
|
|
3245
3349
|
{
|
|
3246
3350
|
action: {
|
|
3247
3351
|
label: text,
|
|
@@ -3252,7 +3356,7 @@ var getAdditionalInfo = (additionalInfo) => {
|
|
|
3252
3356
|
}
|
|
3253
3357
|
);
|
|
3254
3358
|
}
|
|
3255
|
-
return /* @__PURE__ */ (0,
|
|
3359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.ListItem.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
|
|
3256
3360
|
};
|
|
3257
3361
|
|
|
3258
3362
|
// ../renderers/src/NewListItem/shouldUseAvatar.ts
|
|
@@ -3262,13 +3366,13 @@ var shouldUseAvatar = (control, tags) => {
|
|
|
3262
3366
|
};
|
|
3263
3367
|
|
|
3264
3368
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3265
|
-
var
|
|
3369
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3266
3370
|
var DecisionRenderer2 = {
|
|
3267
3371
|
canRenderType: "decision",
|
|
3268
|
-
render: (props) => /* @__PURE__ */ (0,
|
|
3372
|
+
render: (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList: renderDecisionList2 }))
|
|
3269
3373
|
};
|
|
3270
3374
|
var renderDecisionList2 = ({ options, control }) => {
|
|
3271
|
-
return /* @__PURE__ */ (0,
|
|
3375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: options.map((_a) => {
|
|
3272
3376
|
var _b = _a, { disabled, onClick } = _b, rest = __objRest(_b, ["disabled", "onClick"]);
|
|
3273
3377
|
const {
|
|
3274
3378
|
description,
|
|
@@ -3280,8 +3384,8 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3280
3384
|
supportingValues,
|
|
3281
3385
|
tags
|
|
3282
3386
|
} = rest;
|
|
3283
|
-
return /* @__PURE__ */ (0,
|
|
3284
|
-
|
|
3387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3388
|
+
import_components54.ListItem,
|
|
3285
3389
|
{
|
|
3286
3390
|
title: itemTitle,
|
|
3287
3391
|
subtitle: description,
|
|
@@ -3292,7 +3396,7 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3292
3396
|
media: getMedia(media, shouldUseAvatar(control, tags)),
|
|
3293
3397
|
prompt: getInlineAlert(inlineAlert),
|
|
3294
3398
|
additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
|
|
3295
|
-
control: href ? /* @__PURE__ */ (0,
|
|
3399
|
+
control: href ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components54.ListItem.Navigation, { href, target: "_blank" }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_components54.ListItem.Navigation, { onClick })
|
|
3296
3400
|
},
|
|
3297
3401
|
JSON.stringify(rest)
|
|
3298
3402
|
);
|
|
@@ -3301,34 +3405,34 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3301
3405
|
var NewDecisionRenderer_default = DecisionRenderer2;
|
|
3302
3406
|
|
|
3303
3407
|
// ../renderers/src/NewListItem/NewListRenderer.tsx
|
|
3304
|
-
var
|
|
3408
|
+
var import_components56 = require("@transferwise/components");
|
|
3305
3409
|
|
|
3306
3410
|
// ../renderers/src/NewListItem/getCTAControl.tsx
|
|
3307
|
-
var
|
|
3308
|
-
var
|
|
3309
|
-
var getCTAControl = (callToAction,
|
|
3411
|
+
var import_components55 = require("@transferwise/components");
|
|
3412
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
3413
|
+
var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
3310
3414
|
if (!callToAction) {
|
|
3311
3415
|
return void 0;
|
|
3312
3416
|
}
|
|
3313
3417
|
const { accessibilityDescription, href, title, onClick } = callToAction;
|
|
3314
|
-
const priority =
|
|
3418
|
+
const priority = ctaSecondary ? "secondary" : "secondary-neutral";
|
|
3315
3419
|
if (href) {
|
|
3316
|
-
return /* @__PURE__ */ (0,
|
|
3317
|
-
|
|
3420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3421
|
+
import_components55.ListItem.Button,
|
|
3318
3422
|
{
|
|
3319
3423
|
href,
|
|
3320
|
-
partiallyInteractive:
|
|
3424
|
+
partiallyInteractive: !fullyInteractive,
|
|
3321
3425
|
priority,
|
|
3322
3426
|
"aria-description": accessibilityDescription,
|
|
3323
3427
|
children: title
|
|
3324
3428
|
}
|
|
3325
3429
|
);
|
|
3326
3430
|
}
|
|
3327
|
-
return /* @__PURE__ */ (0,
|
|
3328
|
-
|
|
3431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3432
|
+
import_components55.ListItem.Button,
|
|
3329
3433
|
{
|
|
3330
3434
|
"aria-description": accessibilityDescription,
|
|
3331
|
-
partiallyInteractive:
|
|
3435
|
+
partiallyInteractive: !fullyInteractive,
|
|
3332
3436
|
priority,
|
|
3333
3437
|
onClick,
|
|
3334
3438
|
children: title
|
|
@@ -3337,12 +3441,13 @@ var getCTAControl = (callToAction, tags) => {
|
|
|
3337
3441
|
};
|
|
3338
3442
|
|
|
3339
3443
|
// ../renderers/src/NewListItem/NewListRenderer.tsx
|
|
3340
|
-
var
|
|
3444
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
3341
3445
|
var ListRenderer2 = {
|
|
3342
3446
|
canRenderType: "list",
|
|
3343
|
-
render: ({ callToAction, control, margin, items, title }) => /* @__PURE__ */ (0,
|
|
3344
|
-
/* @__PURE__ */ (0,
|
|
3447
|
+
render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: getMargin(margin), children: [
|
|
3448
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Header7, { title, callToAction }),
|
|
3345
3449
|
items.map((item) => {
|
|
3450
|
+
var _a, _b;
|
|
3346
3451
|
const {
|
|
3347
3452
|
title: itemTitle,
|
|
3348
3453
|
description,
|
|
@@ -3351,19 +3456,23 @@ var ListRenderer2 = {
|
|
|
3351
3456
|
additionalInfo,
|
|
3352
3457
|
inlineAlert,
|
|
3353
3458
|
callToAction: itemCallToAction,
|
|
3354
|
-
tags
|
|
3459
|
+
tags: itemTags
|
|
3355
3460
|
} = item;
|
|
3356
|
-
|
|
3357
|
-
|
|
3461
|
+
const controlOptions = {
|
|
3462
|
+
ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
|
|
3463
|
+
fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
|
|
3464
|
+
};
|
|
3465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
3466
|
+
import_components56.ListItem,
|
|
3358
3467
|
{
|
|
3359
3468
|
title: itemTitle,
|
|
3360
3469
|
subtitle: description,
|
|
3361
3470
|
valueTitle: supportingValues == null ? void 0 : supportingValues.value,
|
|
3362
3471
|
valueSubtitle: supportingValues == null ? void 0 : supportingValues.subvalue,
|
|
3363
|
-
media: getMedia(media, shouldUseAvatar(control,
|
|
3472
|
+
media: getMedia(media, shouldUseAvatar(control, itemTags)),
|
|
3364
3473
|
prompt: getInlineAlert(inlineAlert),
|
|
3365
3474
|
additionalInfo: getAdditionalInfo(additionalInfo),
|
|
3366
|
-
control: getCTAControl(itemCallToAction,
|
|
3475
|
+
control: getCTAControl(itemCallToAction, controlOptions)
|
|
3367
3476
|
},
|
|
3368
3477
|
itemTitle
|
|
3369
3478
|
);
|
|
@@ -3373,9 +3482,9 @@ var ListRenderer2 = {
|
|
|
3373
3482
|
var NewListRenderer_default = ListRenderer2;
|
|
3374
3483
|
|
|
3375
3484
|
// ../renderers/src/NewListItem/NewReviewRenderer.tsx
|
|
3376
|
-
var
|
|
3485
|
+
var import_components57 = require("@transferwise/components");
|
|
3377
3486
|
var import_icons4 = require("@transferwise/icons");
|
|
3378
|
-
var
|
|
3487
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
3379
3488
|
var IGNORED_CONTROLS = [
|
|
3380
3489
|
"horizontal",
|
|
3381
3490
|
"horizontal-end-aligned",
|
|
@@ -3385,10 +3494,10 @@ var IGNORED_CONTROLS = [
|
|
|
3385
3494
|
var ReviewRenderer2 = {
|
|
3386
3495
|
canRenderType: "review",
|
|
3387
3496
|
canRender: ({ control }) => control ? !IGNORED_CONTROLS.includes(control) : true,
|
|
3388
|
-
render: ({ callToAction, control, margin, fields, title }) => /* @__PURE__ */ (0,
|
|
3389
|
-
/* @__PURE__ */ (0,
|
|
3497
|
+
render: ({ callToAction, control, margin, fields, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: getMargin(margin), children: [
|
|
3498
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Header7, { title, callToAction }),
|
|
3390
3499
|
fields.map((field) => {
|
|
3391
|
-
var _a;
|
|
3500
|
+
var _a, _b, _c;
|
|
3392
3501
|
const {
|
|
3393
3502
|
label,
|
|
3394
3503
|
value,
|
|
@@ -3397,16 +3506,20 @@ var ReviewRenderer2 = {
|
|
|
3397
3506
|
inlineAlert,
|
|
3398
3507
|
help,
|
|
3399
3508
|
callToAction: itemCallToAction,
|
|
3400
|
-
tags
|
|
3509
|
+
tags: itemTags
|
|
3401
3510
|
} = field;
|
|
3402
|
-
|
|
3403
|
-
|
|
3511
|
+
const controlOptions = {
|
|
3512
|
+
ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
|
|
3513
|
+
fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
|
|
3514
|
+
};
|
|
3515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
3516
|
+
import_components57.ListItem,
|
|
3404
3517
|
{
|
|
3405
3518
|
title: value,
|
|
3406
3519
|
subtitle: label,
|
|
3407
3520
|
inverted: true,
|
|
3408
|
-
media: getMedia(media, shouldUseAvatar(control,
|
|
3409
|
-
control: (
|
|
3521
|
+
media: getMedia(media, shouldUseAvatar(control, itemTags)),
|
|
3522
|
+
control: (_c = getCTAControl(itemCallToAction, controlOptions)) != null ? _c : getHelpControl(help),
|
|
3410
3523
|
prompt: getInlineAlert(inlineAlert),
|
|
3411
3524
|
additionalInfo: getAdditionalInfo(additionalInfo)
|
|
3412
3525
|
},
|
|
@@ -3419,27 +3532,27 @@ var getHelpControl = (help) => {
|
|
|
3419
3532
|
if (!help) {
|
|
3420
3533
|
return void 0;
|
|
3421
3534
|
}
|
|
3422
|
-
return /* @__PURE__ */ (0,
|
|
3535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components57.Popover, { content: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components57.Markdown, { config: { link: { target: "_blank" } }, children: help }), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_components57.ListItem.IconButton, { partiallyInteractive: true, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_icons4.QuestionMarkCircle, {}) }) });
|
|
3423
3536
|
};
|
|
3424
3537
|
var NewReviewRenderer_default = ReviewRenderer2;
|
|
3425
3538
|
|
|
3426
3539
|
// ../renderers/src/NewListItem/NewStatusListRenderer.tsx
|
|
3427
|
-
var
|
|
3428
|
-
var
|
|
3540
|
+
var import_components58 = require("@transferwise/components");
|
|
3541
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
3429
3542
|
var NewStatusListRenderer = {
|
|
3430
3543
|
canRenderType: "status-list",
|
|
3431
|
-
render: ({ margin, items, title }) => /* @__PURE__ */ (0,
|
|
3432
|
-
title ? /* @__PURE__ */ (0,
|
|
3544
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: getMargin(margin), children: [
|
|
3545
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components58.Header, { title }) : null,
|
|
3433
3546
|
items.map((item) => {
|
|
3434
3547
|
const { callToAction, description, icon, status, title: itemTitle } = item;
|
|
3435
|
-
return /* @__PURE__ */ (0,
|
|
3436
|
-
|
|
3548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3549
|
+
import_components58.ListItem,
|
|
3437
3550
|
{
|
|
3438
3551
|
title: itemTitle,
|
|
3439
3552
|
subtitle: description,
|
|
3440
|
-
media: icon && "name" in icon ? /* @__PURE__ */ (0,
|
|
3441
|
-
additionalInfo: callToAction ? /* @__PURE__ */ (0,
|
|
3442
|
-
|
|
3553
|
+
media: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components58.AvatarView, { badge: { status: mapStatus2(status) }, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DynamicIcon_default, { name: icon.name }) }) : void 0,
|
|
3554
|
+
additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3555
|
+
import_components58.ListItem.AdditionalInfo,
|
|
3443
3556
|
{
|
|
3444
3557
|
action: {
|
|
3445
3558
|
href: callToAction.href,
|
|
@@ -3468,30 +3581,30 @@ var mapStatus2 = (status) => {
|
|
|
3468
3581
|
var NewStatusListRenderer_default = NewStatusListRenderer;
|
|
3469
3582
|
|
|
3470
3583
|
// ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
|
|
3471
|
-
var
|
|
3584
|
+
var import_components59 = require("@transferwise/components");
|
|
3472
3585
|
|
|
3473
3586
|
// ../renderers/src/utils/isButtonPriority.ts
|
|
3474
3587
|
var validPriorities = ["primary", "secondary", "secondary-neutral", "tertiary"];
|
|
3475
3588
|
var isButtonPriority = (control) => validPriorities.includes(control);
|
|
3476
3589
|
|
|
3477
3590
|
// ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
|
|
3478
|
-
var
|
|
3479
|
-
var
|
|
3591
|
+
var import_react19 = require("react");
|
|
3592
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
3480
3593
|
var ButtonRendererV2 = {
|
|
3481
3594
|
canRenderType: "button",
|
|
3482
3595
|
render: ButtonComponent2
|
|
3483
3596
|
};
|
|
3484
3597
|
function ButtonComponent2(props) {
|
|
3485
3598
|
const { control, context, disabled, margin, title, size, stepLoadingState, onClick } = props;
|
|
3486
|
-
const [spinny, setSpinny] = (0,
|
|
3487
|
-
(0,
|
|
3599
|
+
const [spinny, setSpinny] = (0, import_react19.useState)(false);
|
|
3600
|
+
(0, import_react19.useEffect)(() => {
|
|
3488
3601
|
if (stepLoadingState === "idle") {
|
|
3489
3602
|
setSpinny(false);
|
|
3490
3603
|
}
|
|
3491
3604
|
}, [stepLoadingState]);
|
|
3492
3605
|
const loading = spinny && stepLoadingState !== "idle";
|
|
3493
|
-
return /* @__PURE__ */ (0,
|
|
3494
|
-
|
|
3606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
3607
|
+
import_components59.Button,
|
|
3495
3608
|
{
|
|
3496
3609
|
v2: true,
|
|
3497
3610
|
block: true,
|
|
@@ -3513,17 +3626,17 @@ var getSentiment2 = (context) => context === "negative" ? "negative" : "default"
|
|
|
3513
3626
|
var getPriority3 = (control) => control && isButtonPriority(control) ? control : "secondary";
|
|
3514
3627
|
|
|
3515
3628
|
// ../renderers/src/ProgressRenderer.tsx
|
|
3516
|
-
var
|
|
3517
|
-
var
|
|
3629
|
+
var import_components60 = require("@transferwise/components");
|
|
3630
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3518
3631
|
var ProgressRenderer = {
|
|
3519
3632
|
canRenderType: "progress",
|
|
3520
3633
|
render: ({ uid, title, help, progress, progressText, margin, description }) => {
|
|
3521
|
-
return /* @__PURE__ */ (0,
|
|
3522
|
-
|
|
3634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3635
|
+
import_components60.ProgressBar,
|
|
3523
3636
|
{
|
|
3524
3637
|
id: uid,
|
|
3525
3638
|
className: getMargin(margin),
|
|
3526
|
-
title: title && help ? /* @__PURE__ */ (0,
|
|
3639
|
+
title: title && help ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(LabelContentWithHelp, { text: title, help }) : title,
|
|
3527
3640
|
description,
|
|
3528
3641
|
progress: {
|
|
3529
3642
|
max: 1,
|
|
@@ -3566,6 +3679,7 @@ var getWiseRenderers = () => [
|
|
|
3566
3679
|
MarkdownRenderer_default,
|
|
3567
3680
|
ModalRenderer,
|
|
3568
3681
|
ModalLayoutRenderer_default,
|
|
3682
|
+
MoneyInputRenderer,
|
|
3569
3683
|
MultiSelectInputRenderer_default,
|
|
3570
3684
|
MultiUploadInputRenderer_default,
|
|
3571
3685
|
NumberInputRenderer_default,
|
|
@@ -3616,13 +3730,6 @@ var cs_default = {
|
|
|
3616
3730
|
"df.wise.ControlFeedback.type": "Nespr\xE1vn\xFD typ",
|
|
3617
3731
|
"df.wise.CopyFeedback.copy": "Zkop\xEDrov\xE1no do schr\xE1nky",
|
|
3618
3732
|
"df.wise.CopyFeedback.copyFailed": "Kop\xEDrov\xE1n\xED do schr\xE1nky se nezda\u0159ilo",
|
|
3619
|
-
"df.wise.Decision.all": "V\u0161e",
|
|
3620
|
-
"df.wise.Decision.currenciesWithAccountDetails": "M\u011Bny s detaily \xFA\u010Dtu",
|
|
3621
|
-
"df.wise.Decision.filterPlaceholder": "Pro vyhled\xE1v\xE1n\xED za\u010Dn\u011Bte ps\xE1t",
|
|
3622
|
-
"df.wise.Decision.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
|
|
3623
|
-
"df.wise.Decision.popular": "Popul\xE1rn\xED",
|
|
3624
|
-
"df.wise.Decision.recent": "Ned\xE1vn\xE9",
|
|
3625
|
-
"df.wise.Decision.results": "V\xFDsledky hled\xE1n\xED",
|
|
3626
3733
|
"df.wise.DynamicParagraph.copied": "Zkop\xEDrov\xE1no do schr\xE1nky",
|
|
3627
3734
|
"df.wise.DynamicParagraph.copy": "Kop\xEDrovat",
|
|
3628
3735
|
"df.wise.ErrorBoundary.errorAlert": "N\u011Bco se pokazilo.",
|
|
@@ -3637,7 +3744,14 @@ var cs_default = {
|
|
|
3637
3744
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Nahrajte {maxItems} nebo m\xE9n\u011B soubor\u016F.",
|
|
3638
3745
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Nahrajte pros\xEDm alespo\u0148 n\xE1sleduj\xEDc\xED po\u010Det soubor\u016F: {minItems}.",
|
|
3639
3746
|
"df.wise.PersistAsyncSchema.genericError": "N\u011Bco se pokazilo. Zkuste to pros\xEDm znovu.",
|
|
3640
|
-
"df.wise.SearchLayout.loading": "Na\u010D\xEDt\xE1n\xED..."
|
|
3747
|
+
"df.wise.SearchLayout.loading": "Na\u010D\xEDt\xE1n\xED...",
|
|
3748
|
+
"df.wise.filter.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
|
|
3749
|
+
"df.wise.filter.placeholder": "Pro vyhled\xE1v\xE1n\xED za\u010Dn\u011Bte ps\xE1t",
|
|
3750
|
+
"df.wise.filter.results": "V\xFDsledky vyhled\xE1v\xE1n\xED",
|
|
3751
|
+
"df.wise.group.all": "V\u0161e",
|
|
3752
|
+
"df.wise.group.currencies-with-account-details": "M\u011Bny s detaily \xFA\u010Dtu",
|
|
3753
|
+
"df.wise.group.popular": "Popul\xE1rn\xED",
|
|
3754
|
+
"df.wise.group.recent": "Ned\xE1vn\xE9"
|
|
3641
3755
|
};
|
|
3642
3756
|
|
|
3643
3757
|
// src/i18n/de.json
|
|
@@ -3661,13 +3775,6 @@ var de_default = {
|
|
|
3661
3775
|
"df.wise.ControlFeedback.type": "Falscher Typ",
|
|
3662
3776
|
"df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
|
|
3663
3777
|
"df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
|
|
3664
|
-
"df.wise.Decision.all": "Alle",
|
|
3665
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Guthaben mit Bankverbindung",
|
|
3666
|
-
"df.wise.Decision.filterPlaceholder": "Gib etwas ein, um die Suche zu beginnen",
|
|
3667
|
-
"df.wise.Decision.noResults": "Keine Ergebnisse",
|
|
3668
|
-
"df.wise.Decision.popular": "Beliebt",
|
|
3669
|
-
"df.wise.Decision.recent": "Neu",
|
|
3670
|
-
"df.wise.Decision.results": "Suchergebnisse",
|
|
3671
3778
|
"df.wise.DynamicParagraph.copied": "In Zwischenablage kopiert",
|
|
3672
3779
|
"df.wise.DynamicParagraph.copy": "Kopieren",
|
|
3673
3780
|
"df.wise.ErrorBoundary.errorAlert": "Da ist etwas schiefgegangen.",
|
|
@@ -3682,7 +3789,14 @@ var de_default = {
|
|
|
3682
3789
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Bitte lade {maxItems} oder weniger Dateien hoch.",
|
|
3683
3790
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.",
|
|
3684
3791
|
"df.wise.PersistAsyncSchema.genericError": "Da ist etwas schiefgegangen. Versuche es bitte nochmal.",
|
|
3685
|
-
"df.wise.SearchLayout.loading": "L\xE4dt..."
|
|
3792
|
+
"df.wise.SearchLayout.loading": "L\xE4dt...",
|
|
3793
|
+
"df.wise.filter.noResults": "Keine Ergebnisse",
|
|
3794
|
+
"df.wise.filter.placeholder": "Gib etwas ein, um die Suche zu beginnen",
|
|
3795
|
+
"df.wise.filter.results": "Suchergebnisse",
|
|
3796
|
+
"df.wise.group.all": "Alle",
|
|
3797
|
+
"df.wise.group.currencies-with-account-details": "Guthaben mit Bankverbindung",
|
|
3798
|
+
"df.wise.group.popular": "Beliebt",
|
|
3799
|
+
"df.wise.group.recent": "Neu"
|
|
3686
3800
|
};
|
|
3687
3801
|
|
|
3688
3802
|
// src/i18n/en.json
|
|
@@ -3706,13 +3820,6 @@ var en_default = {
|
|
|
3706
3820
|
"df.wise.ControlFeedback.type": "Incorrect type",
|
|
3707
3821
|
"df.wise.CopyFeedback.copy": "Copied to clipboard",
|
|
3708
3822
|
"df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
|
|
3709
|
-
"df.wise.Decision.all": "All",
|
|
3710
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Currencies with account details",
|
|
3711
|
-
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
3712
|
-
"df.wise.Decision.noResults": "No results",
|
|
3713
|
-
"df.wise.Decision.popular": "Popular",
|
|
3714
|
-
"df.wise.Decision.recent": "Recent",
|
|
3715
|
-
"df.wise.Decision.results": "Search results",
|
|
3716
3823
|
"df.wise.DynamicParagraph.copied": "Copied to clipboard",
|
|
3717
3824
|
"df.wise.DynamicParagraph.copy": "Copy",
|
|
3718
3825
|
"df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
|
|
@@ -3727,7 +3834,14 @@ var en_default = {
|
|
|
3727
3834
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.",
|
|
3728
3835
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).",
|
|
3729
3836
|
"df.wise.PersistAsyncSchema.genericError": "Something went wrong, please try again.",
|
|
3730
|
-
"df.wise.SearchLayout.loading": "Loading..."
|
|
3837
|
+
"df.wise.SearchLayout.loading": "Loading...",
|
|
3838
|
+
"df.wise.filter.noResults": "No results",
|
|
3839
|
+
"df.wise.filter.placeholder": "Start typing to search",
|
|
3840
|
+
"df.wise.filter.results": "Search results",
|
|
3841
|
+
"df.wise.group.all": "All",
|
|
3842
|
+
"df.wise.group.currencies-with-account-details": "Currencies with account details",
|
|
3843
|
+
"df.wise.group.popular": "Popular",
|
|
3844
|
+
"df.wise.group.recent": "Recent"
|
|
3731
3845
|
};
|
|
3732
3846
|
|
|
3733
3847
|
// src/i18n/es.json
|
|
@@ -3751,13 +3865,6 @@ var es_default = {
|
|
|
3751
3865
|
"df.wise.ControlFeedback.type": "Tipo incorrecto",
|
|
3752
3866
|
"df.wise.CopyFeedback.copy": "Copiado al portapapeles",
|
|
3753
3867
|
"df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
|
|
3754
|
-
"df.wise.Decision.all": "Todas",
|
|
3755
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Divisas con datos de cuenta",
|
|
3756
|
-
"df.wise.Decision.filterPlaceholder": "Empieza a escribir para buscar",
|
|
3757
|
-
"df.wise.Decision.noResults": "No hay resultados",
|
|
3758
|
-
"df.wise.Decision.popular": "Populares",
|
|
3759
|
-
"df.wise.Decision.recent": "Recientes",
|
|
3760
|
-
"df.wise.Decision.results": "Resultados de b\xFAsqueda",
|
|
3761
3868
|
"df.wise.DynamicParagraph.copied": "Copiado al portapapeles",
|
|
3762
3869
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
3763
3870
|
"df.wise.ErrorBoundary.errorAlert": "Ha habido un error.",
|
|
@@ -3772,7 +3879,14 @@ var es_default = {
|
|
|
3772
3879
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Sube {maxItems} o menos archivos.",
|
|
3773
3880
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).",
|
|
3774
3881
|
"df.wise.PersistAsyncSchema.genericError": "Ha habido un error. Int\xE9ntalo de nuevo.",
|
|
3775
|
-
"df.wise.SearchLayout.loading": "Cargando..."
|
|
3882
|
+
"df.wise.SearchLayout.loading": "Cargando...",
|
|
3883
|
+
"df.wise.filter.noResults": "No hay resultados",
|
|
3884
|
+
"df.wise.filter.placeholder": "Empieza a escribir para buscar",
|
|
3885
|
+
"df.wise.filter.results": "Resultados de b\xFAsqueda",
|
|
3886
|
+
"df.wise.group.all": "Todas",
|
|
3887
|
+
"df.wise.group.currencies-with-account-details": "Divisas con datos de cuenta",
|
|
3888
|
+
"df.wise.group.popular": "Populares",
|
|
3889
|
+
"df.wise.group.recent": "Recientes"
|
|
3776
3890
|
};
|
|
3777
3891
|
|
|
3778
3892
|
// src/i18n/fr.json
|
|
@@ -3796,13 +3910,6 @@ var fr_default = {
|
|
|
3796
3910
|
"df.wise.ControlFeedback.type": "Type incorrect",
|
|
3797
3911
|
"df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
|
|
3798
3912
|
"df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
|
|
3799
|
-
"df.wise.Decision.all": "Toutes",
|
|
3800
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Devises avec num\xE9ros de compte",
|
|
3801
|
-
"df.wise.Decision.filterPlaceholder": "Commencez \xE0 \xE9crire pour effectuer une recherche",
|
|
3802
|
-
"df.wise.Decision.noResults": "Aucun r\xE9sultat",
|
|
3803
|
-
"df.wise.Decision.popular": "Populaires",
|
|
3804
|
-
"df.wise.Decision.recent": "R\xE9cents",
|
|
3805
|
-
"df.wise.Decision.results": "R\xE9sultats de recherche",
|
|
3806
3913
|
"df.wise.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier",
|
|
3807
3914
|
"df.wise.DynamicParagraph.copy": "Copier",
|
|
3808
3915
|
"df.wise.ErrorBoundary.errorAlert": "Une erreur s'est produite.",
|
|
@@ -3817,7 +3924,14 @@ var fr_default = {
|
|
|
3817
3924
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Veuillez t\xE9l\xE9charger {maxItems} fichiers ou moins.",
|
|
3818
3925
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).",
|
|
3819
3926
|
"df.wise.PersistAsyncSchema.genericError": "Une erreur s'est produite, veuillez r\xE9essayer.",
|
|
3820
|
-
"df.wise.SearchLayout.loading": "Chargement..."
|
|
3927
|
+
"df.wise.SearchLayout.loading": "Chargement...",
|
|
3928
|
+
"df.wise.filter.noResults": "Aucun r\xE9sultat",
|
|
3929
|
+
"df.wise.filter.placeholder": "Commencez \xE0 \xE9crire pour effectuer une recherche",
|
|
3930
|
+
"df.wise.filter.results": "R\xE9sultats de recherche",
|
|
3931
|
+
"df.wise.group.all": "Toutes",
|
|
3932
|
+
"df.wise.group.currencies-with-account-details": "Devises avec num\xE9ros de compte",
|
|
3933
|
+
"df.wise.group.popular": "Populaires",
|
|
3934
|
+
"df.wise.group.recent": "R\xE9cents"
|
|
3821
3935
|
};
|
|
3822
3936
|
|
|
3823
3937
|
// src/i18n/hu.json
|
|
@@ -3841,13 +3955,6 @@ var hu_default = {
|
|
|
3841
3955
|
"df.wise.ControlFeedback.type": "Helytelen t\xEDpus",
|
|
3842
3956
|
"df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
|
|
3843
3957
|
"df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
|
|
3844
|
-
"df.wise.Decision.all": "\xD6sszes",
|
|
3845
|
-
"df.wise.Decision.currenciesWithAccountDetails": "P\xE9nznemek sz\xE1mlaadatokkal",
|
|
3846
|
-
"df.wise.Decision.filterPlaceholder": "Kezdj el g\xE9pelni a keres\xE9shez",
|
|
3847
|
-
"df.wise.Decision.noResults": "Nincs tal\xE1lat",
|
|
3848
|
-
"df.wise.Decision.popular": "N\xE9pszer\u0171",
|
|
3849
|
-
"df.wise.Decision.recent": "Legut\xF3bbi",
|
|
3850
|
-
"df.wise.Decision.results": "Keres\xE9si eredm\xE9nyek",
|
|
3851
3958
|
"df.wise.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva",
|
|
3852
3959
|
"df.wise.DynamicParagraph.copy": "M\xE1sol\xE1s",
|
|
3853
3960
|
"df.wise.ErrorBoundary.errorAlert": "Valami hiba t\xF6rt\xE9nt.",
|
|
@@ -3862,7 +3969,14 @@ var hu_default = {
|
|
|
3862
3969
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.",
|
|
3863
3970
|
"df.wise.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.",
|
|
3864
3971
|
"df.wise.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra.",
|
|
3865
|
-
"df.wise.SearchLayout.loading": "Bet\xF6lt\xE9s..."
|
|
3972
|
+
"df.wise.SearchLayout.loading": "Bet\xF6lt\xE9s...",
|
|
3973
|
+
"df.wise.filter.noResults": "Nincs tal\xE1lat",
|
|
3974
|
+
"df.wise.filter.placeholder": "Kezdj el g\xE9pelni a keres\xE9shez",
|
|
3975
|
+
"df.wise.filter.results": "Keres\xE9si eredm\xE9nyek",
|
|
3976
|
+
"df.wise.group.all": "\xD6sszes",
|
|
3977
|
+
"df.wise.group.currencies-with-account-details": "P\xE9nznemek sz\xE1mlaadatokkal",
|
|
3978
|
+
"df.wise.group.popular": "N\xE9pszer\u0171",
|
|
3979
|
+
"df.wise.group.recent": "Legut\xF3bbi"
|
|
3866
3980
|
};
|
|
3867
3981
|
|
|
3868
3982
|
// src/i18n/id.json
|
|
@@ -3886,13 +4000,6 @@ var id_default = {
|
|
|
3886
4000
|
"df.wise.ControlFeedback.type": "Tipe salah",
|
|
3887
4001
|
"df.wise.CopyFeedback.copy": "Disalin ke clipboard",
|
|
3888
4002
|
"df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
|
|
3889
|
-
"df.wise.Decision.all": "Semua",
|
|
3890
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Mata uang dengan detail rekening",
|
|
3891
|
-
"df.wise.Decision.filterPlaceholder": "Mulai mengetik untuk mencari",
|
|
3892
|
-
"df.wise.Decision.noResults": "Tidak ada hasil",
|
|
3893
|
-
"df.wise.Decision.popular": "Populer",
|
|
3894
|
-
"df.wise.Decision.recent": "Terbaru",
|
|
3895
|
-
"df.wise.Decision.results": "Hasil pencarian",
|
|
3896
4003
|
"df.wise.DynamicParagraph.copied": "Disalin ke clipboard",
|
|
3897
4004
|
"df.wise.DynamicParagraph.copy": "Salin",
|
|
3898
4005
|
"df.wise.ErrorBoundary.errorAlert": "Terjadi kesalahan.",
|
|
@@ -3907,7 +4014,14 @@ var id_default = {
|
|
|
3907
4014
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Harap unggah {maxItems} file atau kurang.",
|
|
3908
4015
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.",
|
|
3909
4016
|
"df.wise.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi.",
|
|
3910
|
-
"df.wise.SearchLayout.loading": "Memuat ..."
|
|
4017
|
+
"df.wise.SearchLayout.loading": "Memuat ...",
|
|
4018
|
+
"df.wise.filter.noResults": "Tidak ada hasil",
|
|
4019
|
+
"df.wise.filter.placeholder": "Mulai mengetik untuk mencari",
|
|
4020
|
+
"df.wise.filter.results": "Hasil pencarian",
|
|
4021
|
+
"df.wise.group.all": "Semua",
|
|
4022
|
+
"df.wise.group.currencies-with-account-details": "Mata uang dengan detail rekening",
|
|
4023
|
+
"df.wise.group.popular": "Populer",
|
|
4024
|
+
"df.wise.group.recent": "Terbaru"
|
|
3911
4025
|
};
|
|
3912
4026
|
|
|
3913
4027
|
// src/i18n/it.json
|
|
@@ -3931,13 +4045,6 @@ var it_default = {
|
|
|
3931
4045
|
"df.wise.ControlFeedback.type": "Tipo errato",
|
|
3932
4046
|
"df.wise.CopyFeedback.copy": "Copiato negli appunti",
|
|
3933
4047
|
"df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
|
|
3934
|
-
"df.wise.Decision.all": "Tutte",
|
|
3935
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Valute con estremi del conto",
|
|
3936
|
-
"df.wise.Decision.filterPlaceholder": "Inizia a digitare per cercare",
|
|
3937
|
-
"df.wise.Decision.noResults": "Nessun risultato",
|
|
3938
|
-
"df.wise.Decision.popular": "Popolari",
|
|
3939
|
-
"df.wise.Decision.recent": "Recenti",
|
|
3940
|
-
"df.wise.Decision.results": "Risultati della ricerca",
|
|
3941
4048
|
"df.wise.DynamicParagraph.copied": "Copiato negli appunti",
|
|
3942
4049
|
"df.wise.DynamicParagraph.copy": "Copia",
|
|
3943
4050
|
"df.wise.ErrorBoundary.errorAlert": "Qualcosa non ha funzionato.",
|
|
@@ -3952,7 +4059,14 @@ var it_default = {
|
|
|
3952
4059
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Carica al massimo {maxItems} file.",
|
|
3953
4060
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.",
|
|
3954
4061
|
"df.wise.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova.",
|
|
3955
|
-
"df.wise.SearchLayout.loading": "Caricamento..."
|
|
4062
|
+
"df.wise.SearchLayout.loading": "Caricamento...",
|
|
4063
|
+
"df.wise.filter.noResults": "Nessun risultato",
|
|
4064
|
+
"df.wise.filter.placeholder": "Inizia a digitare per cercare",
|
|
4065
|
+
"df.wise.filter.results": "Risultati della ricerca",
|
|
4066
|
+
"df.wise.group.all": "Tutte",
|
|
4067
|
+
"df.wise.group.currencies-with-account-details": "Valute con estremi del conto",
|
|
4068
|
+
"df.wise.group.popular": "Popolari",
|
|
4069
|
+
"df.wise.group.recent": "Recenti"
|
|
3956
4070
|
};
|
|
3957
4071
|
|
|
3958
4072
|
// src/i18n/ja.json
|
|
@@ -3976,13 +4090,6 @@ var ja_default = {
|
|
|
3976
4090
|
"df.wise.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7",
|
|
3977
4091
|
"df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
3978
4092
|
"df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
3979
|
-
"df.wise.Decision.all": "\u3059\u3079\u3066",
|
|
3980
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u53E3\u5EA7\u60C5\u5831\u3092\u53D6\u5F97\u3067\u304D\u308B\u901A\u8CA8",
|
|
3981
|
-
"df.wise.Decision.filterPlaceholder": "\u691C\u7D22\u8A9E\u53E5\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
3982
|
-
"df.wise.Decision.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
3983
|
-
"df.wise.Decision.popular": "\u4EBA\u6C17",
|
|
3984
|
-
"df.wise.Decision.recent": "\u6700\u8FD1",
|
|
3985
|
-
"df.wise.Decision.results": "\u691C\u7D22\u7D50\u679C",
|
|
3986
4093
|
"df.wise.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
3987
4094
|
"df.wise.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B",
|
|
3988
4095
|
"df.wise.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",
|
|
@@ -3997,7 +4104,14 @@ var ja_default = {
|
|
|
3997
4104
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "{maxItems}\u500B\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
3998
4105
|
"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",
|
|
3999
4106
|
"df.wise.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
4000
|
-
"df.wise.SearchLayout.loading": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"
|
|
4107
|
+
"df.wise.SearchLayout.loading": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
4108
|
+
"df.wise.filter.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
4109
|
+
"df.wise.filter.placeholder": "\u691C\u7D22\u8A9E\u53E5\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
4110
|
+
"df.wise.filter.results": "\u691C\u7D22\u7D50\u679C",
|
|
4111
|
+
"df.wise.group.all": "\u3059\u3079\u3066",
|
|
4112
|
+
"df.wise.group.currencies-with-account-details": "\u53E3\u5EA7\u60C5\u5831\u3092\u53D6\u5F97\u3067\u304D\u308B\u901A\u8CA8",
|
|
4113
|
+
"df.wise.group.popular": "\u4EBA\u6C17",
|
|
4114
|
+
"df.wise.group.recent": "\u6700\u8FD1"
|
|
4001
4115
|
};
|
|
4002
4116
|
|
|
4003
4117
|
// src/i18n/nl.json
|
|
@@ -4021,13 +4135,6 @@ var nl_default = {
|
|
|
4021
4135
|
"df.wise.ControlFeedback.type": "Onjuist type",
|
|
4022
4136
|
"df.wise.CopyFeedback.copy": "Naar klembord gekopieerd",
|
|
4023
4137
|
"df.wise.CopyFeedback.copyFailed": "Naar klembord kopi\xEBren mislukt",
|
|
4024
|
-
"df.wise.Decision.all": "Alles",
|
|
4025
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Valuta met rekeninggegevens",
|
|
4026
|
-
"df.wise.Decision.filterPlaceholder": "Begin met typen om te zoeken",
|
|
4027
|
-
"df.wise.Decision.noResults": "Geen resultaten",
|
|
4028
|
-
"df.wise.Decision.popular": "Populair",
|
|
4029
|
-
"df.wise.Decision.recent": "Recent",
|
|
4030
|
-
"df.wise.Decision.results": "Zoekresultaten",
|
|
4031
4138
|
"df.wise.DynamicParagraph.copied": "Naar klembord gekopieerd",
|
|
4032
4139
|
"df.wise.DynamicParagraph.copy": "Kopi\xEBren",
|
|
4033
4140
|
"df.wise.ErrorBoundary.errorAlert": "Er is iets misgegaan.",
|
|
@@ -4042,7 +4149,14 @@ var nl_default = {
|
|
|
4042
4149
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Upload {maxItems} of minder bestanden.",
|
|
4043
4150
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Upload minimaal {minItems} bestand(en).",
|
|
4044
4151
|
"df.wise.PersistAsyncSchema.genericError": "Er is iets misgegaan, probeer het opnieuw.",
|
|
4045
|
-
"df.wise.SearchLayout.loading": "Laden..."
|
|
4152
|
+
"df.wise.SearchLayout.loading": "Laden...",
|
|
4153
|
+
"df.wise.filter.noResults": "Geen resultaten",
|
|
4154
|
+
"df.wise.filter.placeholder": "Begin met typen om te zoeken",
|
|
4155
|
+
"df.wise.filter.results": "Zoekresultaten",
|
|
4156
|
+
"df.wise.group.all": "Alles",
|
|
4157
|
+
"df.wise.group.currencies-with-account-details": "Valuta's met rekeninggegevens",
|
|
4158
|
+
"df.wise.group.popular": "Populair",
|
|
4159
|
+
"df.wise.group.recent": "Recent"
|
|
4046
4160
|
};
|
|
4047
4161
|
|
|
4048
4162
|
// src/i18n/pl.json
|
|
@@ -4066,13 +4180,6 @@ var pl_default = {
|
|
|
4066
4180
|
"df.wise.ControlFeedback.type": "Nieprawid\u0142owy typ",
|
|
4067
4181
|
"df.wise.CopyFeedback.copy": "Skopiowano do schowka",
|
|
4068
4182
|
"df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
|
|
4069
|
-
"df.wise.Decision.all": "Wszystkie",
|
|
4070
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Waluty z danymi bankowymi",
|
|
4071
|
-
"df.wise.Decision.filterPlaceholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
|
|
4072
|
-
"df.wise.Decision.noResults": "Brak wynik\xF3w",
|
|
4073
|
-
"df.wise.Decision.popular": "Popularne",
|
|
4074
|
-
"df.wise.Decision.recent": "Ostatnie",
|
|
4075
|
-
"df.wise.Decision.results": "Wyniki wyszukiwania",
|
|
4076
4183
|
"df.wise.DynamicParagraph.copied": "Skopiowano do schowka",
|
|
4077
4184
|
"df.wise.DynamicParagraph.copy": "Kopiuj",
|
|
4078
4185
|
"df.wise.ErrorBoundary.errorAlert": "Co\u015B posz\u0142o nie tak.",
|
|
@@ -4087,7 +4194,14 @@ var pl_default = {
|
|
|
4087
4194
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Prze\u015Blij do {maxItems} plik\xF3w.",
|
|
4088
4195
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.",
|
|
4089
4196
|
"df.wise.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, prosimy spr\xF3bowa\u0107 ponownie.",
|
|
4090
|
-
"df.wise.SearchLayout.loading": "\u0141adowanie..."
|
|
4197
|
+
"df.wise.SearchLayout.loading": "\u0141adowanie...",
|
|
4198
|
+
"df.wise.filter.noResults": "Brak wynik\xF3w",
|
|
4199
|
+
"df.wise.filter.placeholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
|
|
4200
|
+
"df.wise.filter.results": "Wyniki wyszukiwania",
|
|
4201
|
+
"df.wise.group.all": "Wszystkie",
|
|
4202
|
+
"df.wise.group.currencies-with-account-details": "Waluty z danymi bankowymi",
|
|
4203
|
+
"df.wise.group.popular": "Popularne",
|
|
4204
|
+
"df.wise.group.recent": "Ostatnie"
|
|
4091
4205
|
};
|
|
4092
4206
|
|
|
4093
4207
|
// src/i18n/pt.json
|
|
@@ -4111,13 +4225,6 @@ var pt_default = {
|
|
|
4111
4225
|
"df.wise.ControlFeedback.type": "Tipo incorreto",
|
|
4112
4226
|
"df.wise.CopyFeedback.copy": "Copiado",
|
|
4113
4227
|
"df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
|
|
4114
|
-
"df.wise.Decision.all": "Todos",
|
|
4115
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Moedas com dados de conta",
|
|
4116
|
-
"df.wise.Decision.filterPlaceholder": "Comece a digitar para pesquisar",
|
|
4117
|
-
"df.wise.Decision.noResults": "Nenhum resultado",
|
|
4118
|
-
"df.wise.Decision.popular": "Populares",
|
|
4119
|
-
"df.wise.Decision.recent": "Recente",
|
|
4120
|
-
"df.wise.Decision.results": "Resultados da busca",
|
|
4121
4228
|
"df.wise.DynamicParagraph.copied": "Copiado",
|
|
4122
4229
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
4123
4230
|
"df.wise.ErrorBoundary.errorAlert": "Algo deu errado.",
|
|
@@ -4132,7 +4239,14 @@ var pt_default = {
|
|
|
4132
4239
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Por favor, envie {maxItems} ou menos arquivos.",
|
|
4133
4240
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).",
|
|
4134
4241
|
"df.wise.PersistAsyncSchema.genericError": "Ocorreu um erro. Por favor, tente novamente.",
|
|
4135
|
-
"df.wise.SearchLayout.loading": "Carregando..."
|
|
4242
|
+
"df.wise.SearchLayout.loading": "Carregando...",
|
|
4243
|
+
"df.wise.filter.noResults": "Nenhum resultado",
|
|
4244
|
+
"df.wise.filter.placeholder": "Comece a digitar para pesquisar",
|
|
4245
|
+
"df.wise.filter.results": "Resultados da busca",
|
|
4246
|
+
"df.wise.group.all": "Todos",
|
|
4247
|
+
"df.wise.group.currencies-with-account-details": "Moedas com dados de conta",
|
|
4248
|
+
"df.wise.group.popular": "Populares",
|
|
4249
|
+
"df.wise.group.recent": "Recente"
|
|
4136
4250
|
};
|
|
4137
4251
|
|
|
4138
4252
|
// src/i18n/ro.json
|
|
@@ -4156,13 +4270,6 @@ var ro_default = {
|
|
|
4156
4270
|
"df.wise.ControlFeedback.type": "Tip incorect",
|
|
4157
4271
|
"df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
|
|
4158
4272
|
"df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
|
|
4159
|
-
"df.wise.Decision.all": "Toate",
|
|
4160
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Monede cu detalii de cont",
|
|
4161
|
-
"df.wise.Decision.filterPlaceholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
|
|
4162
|
-
"df.wise.Decision.noResults": "Niciun rezultat",
|
|
4163
|
-
"df.wise.Decision.popular": "Populare",
|
|
4164
|
-
"df.wise.Decision.recent": "Recente",
|
|
4165
|
-
"df.wise.Decision.results": "Rezultatele c\u0103ut\u0103rii",
|
|
4166
4273
|
"df.wise.DynamicParagraph.copied": "Copiat \xEEn clipboard",
|
|
4167
4274
|
"df.wise.DynamicParagraph.copy": "Copiaz\u0103",
|
|
4168
4275
|
"df.wise.ErrorBoundary.errorAlert": "Ceva nu a mers bine.",
|
|
@@ -4177,7 +4284,14 @@ var ro_default = {
|
|
|
4177
4284
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Te rug\u0103m s\u0103 \xEEncarci {maxItems} fi\u0219iere sau mai pu\u021Bine.",
|
|
4178
4285
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).",
|
|
4179
4286
|
"df.wise.PersistAsyncSchema.genericError": "Ceva nu a mers bine, te rug\u0103m s\u0103 \xEEncerci din nou.",
|
|
4180
|
-
"df.wise.SearchLayout.loading": "Se \xEEncarc\u0103..."
|
|
4287
|
+
"df.wise.SearchLayout.loading": "Se \xEEncarc\u0103...",
|
|
4288
|
+
"df.wise.filter.noResults": "Niciun rezultat",
|
|
4289
|
+
"df.wise.filter.placeholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
|
|
4290
|
+
"df.wise.filter.results": "Rezultatele c\u0103ut\u0103rii",
|
|
4291
|
+
"df.wise.group.all": "Toate",
|
|
4292
|
+
"df.wise.group.currencies-with-account-details": "Monede cu detalii de cont",
|
|
4293
|
+
"df.wise.group.popular": "Populare",
|
|
4294
|
+
"df.wise.group.recent": "Recente"
|
|
4181
4295
|
};
|
|
4182
4296
|
|
|
4183
4297
|
// src/i18n/ru.json
|
|
@@ -4201,13 +4315,6 @@ var ru_default = {
|
|
|
4201
4315
|
"df.wise.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F",
|
|
4202
4316
|
"df.wise.CopyFeedback.copy": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
4203
4317
|
"df.wise.CopyFeedback.copyFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
4204
|
-
"df.wise.Decision.all": "\u0412\u0441\u0435",
|
|
4205
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u0412\u0430\u043B\u044E\u0442\u044B \u0441 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u0430\u043C\u0438 \u0441\u0447\u0435\u0442\u0430",
|
|
4206
|
-
"df.wise.Decision.filterPlaceholder": "\u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u043F\u043E\u0438\u0441\u043A\u0430",
|
|
4207
|
-
"df.wise.Decision.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
|
|
4208
|
-
"df.wise.Decision.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
|
|
4209
|
-
"df.wise.Decision.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435",
|
|
4210
|
-
"df.wise.Decision.results": "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",
|
|
4211
4318
|
"df.wise.DynamicParagraph.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
4212
4319
|
"df.wise.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
4213
4320
|
"df.wise.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",
|
|
@@ -4222,7 +4329,14 @@ var ru_default = {
|
|
|
4222
4329
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 {maxItems} \u0444\u0430\u0439\u043B\u043E\u0432.",
|
|
4223
4330
|
"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).",
|
|
4224
4331
|
"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.",
|
|
4225
|
-
"df.wise.SearchLayout.loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430..."
|
|
4332
|
+
"df.wise.SearchLayout.loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...",
|
|
4333
|
+
"df.wise.filter.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
|
|
4334
|
+
"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",
|
|
4335
|
+
"df.wise.filter.results": "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",
|
|
4336
|
+
"df.wise.group.all": "\u0412\u0441\u0435",
|
|
4337
|
+
"df.wise.group.currencies-with-account-details": "\u0412\u0430\u043B\u044E\u0442\u044B \u0441 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u0430\u043C\u0438 \u0441\u0447\u0435\u0442\u0430",
|
|
4338
|
+
"df.wise.group.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
|
|
4339
|
+
"df.wise.group.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435"
|
|
4226
4340
|
};
|
|
4227
4341
|
|
|
4228
4342
|
// src/i18n/th.json
|
|
@@ -4246,13 +4360,6 @@ var th_default = {
|
|
|
4246
4360
|
"df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
|
|
4247
4361
|
"df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
4248
4362
|
"df.wise.CopyFeedback.copyFailed": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
|
|
4249
|
-
"df.wise.Decision.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
4250
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19\u0E15\u0E48\u0E32\u0E07\u0E46 \u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E1A\u0E31\u0E0D\u0E0A\u0E35",
|
|
4251
|
-
"df.wise.Decision.filterPlaceholder": "\u0E40\u0E23\u0E34\u0E48\u0E21\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E40\u0E25\u0E22",
|
|
4252
|
-
"df.wise.Decision.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
4253
|
-
"df.wise.Decision.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
|
|
4254
|
-
"df.wise.Decision.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14",
|
|
4255
|
-
"df.wise.Decision.results": "\u0E1C\u0E25\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
4256
4363
|
"df.wise.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
4257
4364
|
"df.wise.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
4258
4365
|
"df.wise.ErrorBoundary.errorAlert": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E02\u0E36\u0E49\u0E19",
|
|
@@ -4267,7 +4374,14 @@ var th_default = {
|
|
|
4267
4374
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14 {maxItems} \u0E44\u0E1F\u0E25\u0E4C\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
|
|
4268
4375
|
"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",
|
|
4269
4376
|
"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",
|
|
4270
|
-
"df.wise.SearchLayout.loading": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14..."
|
|
4377
|
+
"df.wise.SearchLayout.loading": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14...",
|
|
4378
|
+
"df.wise.filter.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
4379
|
+
"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",
|
|
4380
|
+
"df.wise.filter.results": "\u0E1C\u0E25\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
4381
|
+
"df.wise.group.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
4382
|
+
"df.wise.group.currencies-with-account-details": "\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19\u0E15\u0E48\u0E32\u0E07\u0E46 \u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E1A\u0E31\u0E0D\u0E0A\u0E35",
|
|
4383
|
+
"df.wise.group.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
|
|
4384
|
+
"df.wise.group.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14"
|
|
4271
4385
|
};
|
|
4272
4386
|
|
|
4273
4387
|
// src/i18n/tr.json
|
|
@@ -4291,13 +4405,6 @@ var tr_default = {
|
|
|
4291
4405
|
"df.wise.ControlFeedback.type": "Ge\xE7ersiz se\xE7im",
|
|
4292
4406
|
"df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
|
|
4293
4407
|
"df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
|
|
4294
|
-
"df.wise.Decision.all": "T\xFCm\xFC",
|
|
4295
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Hesap bilgileri olan bakiyeler",
|
|
4296
|
-
"df.wise.Decision.filterPlaceholder": "Aramak i\xE7in yazmaya ba\u015Flay\u0131n",
|
|
4297
|
-
"df.wise.Decision.noResults": "Sonu\xE7 yok",
|
|
4298
|
-
"df.wise.Decision.popular": "Pop\xFCler",
|
|
4299
|
-
"df.wise.Decision.recent": "Yak\u0131n zamanl\u0131",
|
|
4300
|
-
"df.wise.Decision.results": "Arama sonu\xE7lar\u0131",
|
|
4301
4408
|
"df.wise.DynamicParagraph.copied": "Panoya kopyaland\u0131",
|
|
4302
4409
|
"df.wise.DynamicParagraph.copy": "Kopyala",
|
|
4303
4410
|
"df.wise.ErrorBoundary.errorAlert": "Bir sorun olu\u015Ftu.",
|
|
@@ -4312,7 +4419,14 @@ var tr_default = {
|
|
|
4312
4419
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az dosya y\xFCkleyin.",
|
|
4313
4420
|
"df.wise.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.",
|
|
4314
4421
|
"df.wise.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin.",
|
|
4315
|
-
"df.wise.SearchLayout.loading": "Y\xFCkleniyor..."
|
|
4422
|
+
"df.wise.SearchLayout.loading": "Y\xFCkleniyor...",
|
|
4423
|
+
"df.wise.filter.noResults": "Sonu\xE7 yok",
|
|
4424
|
+
"df.wise.filter.placeholder": "Aramak i\xE7in yazmaya ba\u015Flay\u0131n",
|
|
4425
|
+
"df.wise.filter.results": "Arama sonu\xE7lar\u0131",
|
|
4426
|
+
"df.wise.group.all": "T\xFCm\xFC",
|
|
4427
|
+
"df.wise.group.currencies-with-account-details": "Hesap bilgileri olan bakiyeler",
|
|
4428
|
+
"df.wise.group.popular": "Pop\xFCler",
|
|
4429
|
+
"df.wise.group.recent": "Yak\u0131n zamanl\u0131"
|
|
4316
4430
|
};
|
|
4317
4431
|
|
|
4318
4432
|
// src/i18n/zh_CN.json
|
|
@@ -4336,13 +4450,6 @@ var zh_CN_default = {
|
|
|
4336
4450
|
"df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
|
|
4337
4451
|
"df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
4338
4452
|
"df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
|
|
4339
|
-
"df.wise.Decision.all": "\u5168\u90E8",
|
|
4340
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u5E26\u6709\u8D26\u6237\u8BE6\u7EC6\u4FE1\u606F\u7684\u8D27\u5E01",
|
|
4341
|
-
"df.wise.Decision.filterPlaceholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
|
|
4342
|
-
"df.wise.Decision.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
4343
|
-
"df.wise.Decision.popular": "\u70ED\u95E8",
|
|
4344
|
-
"df.wise.Decision.recent": "\u6700\u8FD1",
|
|
4345
|
-
"df.wise.Decision.results": "\u641C\u7D22\u7ED3\u679C",
|
|
4346
4453
|
"df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
4347
4454
|
"df.wise.DynamicParagraph.copy": "\u590D\u5236",
|
|
4348
4455
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
|
|
@@ -4357,7 +4464,14 @@ var zh_CN_default = {
|
|
|
4357
4464
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20\u4E0D\u8D85\u8FC7 {maxItems} \u4E2A\u6587\u4EF6\u3002",
|
|
4358
4465
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002",
|
|
4359
4466
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5\u3002",
|
|
4360
|
-
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026"
|
|
4467
|
+
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026",
|
|
4468
|
+
"df.wise.filter.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
4469
|
+
"df.wise.filter.placeholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
|
|
4470
|
+
"df.wise.filter.results": "\u641C\u7D22\u7ED3\u679C",
|
|
4471
|
+
"df.wise.group.all": "\u5168\u90E8",
|
|
4472
|
+
"df.wise.group.currencies-with-account-details": "\u5E26\u6709\u8D26\u6237\u8BE6\u7EC6\u4FE1\u606F\u7684\u8D27\u5E01",
|
|
4473
|
+
"df.wise.group.popular": "\u70ED\u95E8",
|
|
4474
|
+
"df.wise.group.recent": "\u6700\u8FD1"
|
|
4361
4475
|
};
|
|
4362
4476
|
|
|
4363
4477
|
// src/i18n/zh_HK.json
|
|
@@ -4381,13 +4495,6 @@ var zh_HK_default = {
|
|
|
4381
4495
|
"df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
|
|
4382
4496
|
"df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
4383
4497
|
"df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
4384
|
-
"df.wise.Decision.all": "\u5168\u90E8",
|
|
4385
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u63D0\u4F9B\u8CEC\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
|
|
4386
|
-
"df.wise.Decision.filterPlaceholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
|
|
4387
|
-
"df.wise.Decision.noResults": "\u6C92\u6709\u7D50\u679C",
|
|
4388
|
-
"df.wise.Decision.popular": "\u71B1\u9580",
|
|
4389
|
-
"df.wise.Decision.recent": "\u6700\u8FD1\u7684",
|
|
4390
|
-
"df.wise.Decision.results": "\u641C\u5C0B\u7D50\u679C",
|
|
4391
4498
|
"df.wise.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
4392
4499
|
"df.wise.DynamicParagraph.copy": "\u8907\u88FD",
|
|
4393
4500
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u4E86\u4E9B\u554F\u984C\u3002",
|
|
@@ -4402,7 +4509,14 @@ var zh_HK_default = {
|
|
|
4402
4509
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u8ACB\u4E0D\u8981\u4E0A\u8F09\u8D85\u904E{maxItems}\u500B\u6A94\u6848\u3002",
|
|
4403
4510
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002",
|
|
4404
4511
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u73FE\u4E86\u554F\u984C\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002",
|
|
4405
|
-
"df.wise.SearchLayout.loading": "\u8F09\u5165\u4E2D\u2026"
|
|
4512
|
+
"df.wise.SearchLayout.loading": "\u8F09\u5165\u4E2D\u2026",
|
|
4513
|
+
"df.wise.filter.noResults": "\u6C92\u6709\u7D50\u679C",
|
|
4514
|
+
"df.wise.filter.placeholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
|
|
4515
|
+
"df.wise.filter.results": "\u641C\u5C0B\u7D50\u679C",
|
|
4516
|
+
"df.wise.group.all": "\u5168\u90E8",
|
|
4517
|
+
"df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\u8CEC\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
|
|
4518
|
+
"df.wise.group.popular": "\u71B1\u9580",
|
|
4519
|
+
"df.wise.group.recent": "\u6700\u8FD1\u7684"
|
|
4406
4520
|
};
|
|
4407
4521
|
|
|
4408
4522
|
// src/i18n/index.ts
|
|
@@ -4437,14 +4551,14 @@ var translations = languages.reduce(
|
|
|
4437
4551
|
var i18n_default = translations;
|
|
4438
4552
|
|
|
4439
4553
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4440
|
-
var
|
|
4441
|
-
var
|
|
4554
|
+
var import_react20 = require("react");
|
|
4555
|
+
var import_react_intl24 = require("react-intl");
|
|
4442
4556
|
var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
4443
4557
|
|
|
4444
4558
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4445
4559
|
var appVersion = (
|
|
4446
4560
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4447
|
-
typeof process !== "undefined" ? "4.
|
|
4561
|
+
typeof process !== "undefined" ? "4.35.0" : "0.0.0"
|
|
4448
4562
|
);
|
|
4449
4563
|
|
|
4450
4564
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -4484,8 +4598,8 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
|
|
|
4484
4598
|
};
|
|
4485
4599
|
|
|
4486
4600
|
// src/dynamicFlow/messages.ts
|
|
4487
|
-
var
|
|
4488
|
-
var messages_default = (0,
|
|
4601
|
+
var import_react_intl23 = require("react-intl");
|
|
4602
|
+
var messages_default = (0, import_react_intl23.defineMessages)({
|
|
4489
4603
|
copied: {
|
|
4490
4604
|
id: "df.wise.CopyFeedback.copy",
|
|
4491
4605
|
defaultMessage: "Copied to clipboard",
|
|
@@ -4499,12 +4613,12 @@ var messages_default = (0, import_react_intl21.defineMessages)({
|
|
|
4499
4613
|
});
|
|
4500
4614
|
|
|
4501
4615
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4502
|
-
var
|
|
4616
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
4503
4617
|
var wiseRenderers = getWiseRenderers();
|
|
4504
4618
|
function DynamicFlowLegacy(props) {
|
|
4505
4619
|
const { customFetch = globalThis.fetch } = props;
|
|
4506
4620
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
4507
|
-
return /* @__PURE__ */ (0,
|
|
4621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
|
|
4508
4622
|
}
|
|
4509
4623
|
function DynamicFlowRevamp(props) {
|
|
4510
4624
|
const {
|
|
@@ -4517,12 +4631,12 @@ function DynamicFlowRevamp(props) {
|
|
|
4517
4631
|
onLink = openLinkInNewTab,
|
|
4518
4632
|
onThemeChange
|
|
4519
4633
|
} = props;
|
|
4520
|
-
const { formatMessage } = (0,
|
|
4634
|
+
const { formatMessage } = (0, import_react_intl24.useIntl)();
|
|
4521
4635
|
const createSnackBar = useSnackBarIfAvailable();
|
|
4522
4636
|
const httpClient = useWiseHttpClient(customFetch);
|
|
4523
|
-
const mergedRenderers = (0,
|
|
4524
|
-
const logEvent = (0,
|
|
4525
|
-
const trackEvent = (0,
|
|
4637
|
+
const mergedRenderers = (0, import_react20.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
4638
|
+
const logEvent = (0, import_react20.useMemo)(() => getLogEvent(onLog), [onLog]);
|
|
4639
|
+
const trackEvent = (0, import_react20.useMemo)(
|
|
4526
4640
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
4527
4641
|
[onEvent, onAnalytics, onThemeChange]
|
|
4528
4642
|
);
|
|
@@ -4541,9 +4655,9 @@ function DynamicFlowRevamp(props) {
|
|
|
4541
4655
|
onLink,
|
|
4542
4656
|
onCopy
|
|
4543
4657
|
});
|
|
4544
|
-
return /* @__PURE__ */ (0,
|
|
4658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
|
|
4545
4659
|
}
|
|
4546
|
-
var DynamicForm = (0,
|
|
4660
|
+
var DynamicForm = (0, import_react20.forwardRef)(function DynamicForm2(props, ref) {
|
|
4547
4661
|
const {
|
|
4548
4662
|
className = "",
|
|
4549
4663
|
customFetch = globalThis.fetch,
|
|
@@ -4554,12 +4668,12 @@ var DynamicForm = (0, import_react19.forwardRef)(function DynamicForm2(props, re
|
|
|
4554
4668
|
onLink = openLinkInNewTab,
|
|
4555
4669
|
onThemeChange
|
|
4556
4670
|
} = props;
|
|
4557
|
-
const { formatMessage } = (0,
|
|
4671
|
+
const { formatMessage } = (0, import_react_intl24.useIntl)();
|
|
4558
4672
|
const createSnackBar = useSnackBarIfAvailable();
|
|
4559
4673
|
const httpClient = useWiseHttpClient(customFetch);
|
|
4560
|
-
const mergedRenderers = (0,
|
|
4561
|
-
const logEvent = (0,
|
|
4562
|
-
const trackEvent = (0,
|
|
4674
|
+
const mergedRenderers = (0, import_react20.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
4675
|
+
const logEvent = (0, import_react20.useMemo)(() => getLogEvent(onLog), [onLog]);
|
|
4676
|
+
const trackEvent = (0, import_react20.useMemo)(
|
|
4563
4677
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
4564
4678
|
[onEvent, onAnalytics, onThemeChange]
|
|
4565
4679
|
);
|
|
@@ -4578,11 +4692,11 @@ var DynamicForm = (0, import_react19.forwardRef)(function DynamicForm2(props, re
|
|
|
4578
4692
|
onLink,
|
|
4579
4693
|
onCopy
|
|
4580
4694
|
});
|
|
4581
|
-
return /* @__PURE__ */ (0,
|
|
4695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
|
|
4582
4696
|
});
|
|
4583
4697
|
var useWiseHttpClient = (httpClient) => {
|
|
4584
|
-
const { locale } = (0,
|
|
4585
|
-
return (0,
|
|
4698
|
+
const { locale } = (0, import_react_intl24.useIntl)();
|
|
4699
|
+
return (0, import_react20.useCallback)(
|
|
4586
4700
|
async (input, init = {}) => {
|
|
4587
4701
|
const headers = new Headers(init.headers);
|
|
4588
4702
|
headers.set("accept-language", locale);
|