@wise/dynamic-flow-client-internal 4.34.0 → 4.35.1
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.css +3 -2
- package/build/main.js +686 -575
- package/build/main.mjs +561 -450
- package/package.json +16 -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: ["xs", "sm"].includes(size) ? "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,36 @@ 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
|
-
|
|
1963
|
-
|
|
2063
|
+
return control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CopyableParagraph, { className, align, text }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2064
|
+
"p",
|
|
2065
|
+
{
|
|
2066
|
+
className: `${["xs", "sm"].includes(size) ? "np-text-body-default" : "np-text-body-large"} ${className}`,
|
|
2067
|
+
children: text
|
|
2068
|
+
}
|
|
2069
|
+
);
|
|
1964
2070
|
}
|
|
1965
2071
|
function CopyableParagraph({
|
|
1966
2072
|
text,
|
|
1967
2073
|
align,
|
|
1968
2074
|
className
|
|
1969
2075
|
}) {
|
|
1970
|
-
const { formatMessage } = (0,
|
|
2076
|
+
const { formatMessage } = (0, import_react_intl15.useIntl)();
|
|
1971
2077
|
const createSnackbar = useSnackBarIfAvailable();
|
|
1972
2078
|
const copy = () => {
|
|
1973
2079
|
navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
|
|
1974
2080
|
});
|
|
1975
2081
|
};
|
|
1976
2082
|
const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
|
|
1977
|
-
return /* @__PURE__ */ (0,
|
|
1978
|
-
/* @__PURE__ */ (0,
|
|
1979
|
-
|
|
2083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className, children: [
|
|
2084
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2085
|
+
import_components32.Input,
|
|
1980
2086
|
{
|
|
1981
2087
|
type: "text",
|
|
1982
2088
|
value: text,
|
|
@@ -1984,21 +2090,21 @@ function CopyableParagraph({
|
|
|
1984
2090
|
className: (0, import_classnames5.default)("text-ellipsis", inputAlignmentClasses)
|
|
1985
2091
|
}
|
|
1986
2092
|
),
|
|
1987
|
-
/* @__PURE__ */ (0,
|
|
2093
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components32.Button, { v2: true, block: true, onClick: copy, children: formatMessage(paragraph_messages_default.copy) })
|
|
1988
2094
|
] });
|
|
1989
2095
|
}
|
|
1990
2096
|
var ParagraphRenderer_default = ParagraphRenderer;
|
|
1991
2097
|
|
|
1992
2098
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
1993
|
-
var
|
|
2099
|
+
var import_components33 = require("@transferwise/components");
|
|
1994
2100
|
var import_icons = require("@transferwise/icons");
|
|
1995
2101
|
var import_classnames6 = __toESM(require("classnames"));
|
|
1996
|
-
var
|
|
1997
|
-
var
|
|
2102
|
+
var import_react12 = require("react");
|
|
2103
|
+
var import_react_intl17 = require("react-intl");
|
|
1998
2104
|
|
|
1999
2105
|
// ../renderers/src/messages/repeatable.messages.ts
|
|
2000
|
-
var
|
|
2001
|
-
var repeatable_messages_default = (0,
|
|
2106
|
+
var import_react_intl16 = require("react-intl");
|
|
2107
|
+
var repeatable_messages_default = (0, import_react_intl16.defineMessages)({
|
|
2002
2108
|
addItemTitle: {
|
|
2003
2109
|
id: "df.wise.ArraySchema.addItemTitle",
|
|
2004
2110
|
defaultMessage: "Add Item",
|
|
@@ -2022,10 +2128,10 @@ var repeatable_messages_default = (0, import_react_intl14.defineMessages)({
|
|
|
2022
2128
|
});
|
|
2023
2129
|
|
|
2024
2130
|
// ../renderers/src/RepeatableRenderer.tsx
|
|
2025
|
-
var
|
|
2131
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2026
2132
|
var RepeatableRenderer = {
|
|
2027
2133
|
canRenderType: "repeatable",
|
|
2028
|
-
render: (props) => /* @__PURE__ */ (0,
|
|
2134
|
+
render: (props) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Repeatable, __spreadValues({}, props))
|
|
2029
2135
|
};
|
|
2030
2136
|
function Repeatable(props) {
|
|
2031
2137
|
const {
|
|
@@ -2041,8 +2147,8 @@ function Repeatable(props) {
|
|
|
2041
2147
|
onSave,
|
|
2042
2148
|
onRemove
|
|
2043
2149
|
} = props;
|
|
2044
|
-
const { formatMessage } = (0,
|
|
2045
|
-
const [openModalType, setOpenModalType] = (0,
|
|
2150
|
+
const { formatMessage } = (0, import_react_intl17.useIntl)();
|
|
2151
|
+
const [openModalType, setOpenModalType] = (0, import_react12.useState)(null);
|
|
2046
2152
|
const onAddItem = () => {
|
|
2047
2153
|
onAdd();
|
|
2048
2154
|
setOpenModalType("add");
|
|
@@ -2064,41 +2170,41 @@ function Repeatable(props) {
|
|
|
2064
2170
|
const onCancelEdit = () => {
|
|
2065
2171
|
setOpenModalType(null);
|
|
2066
2172
|
};
|
|
2067
|
-
return /* @__PURE__ */ (0,
|
|
2068
|
-
title && /* @__PURE__ */ (0,
|
|
2069
|
-
description && /* @__PURE__ */ (0,
|
|
2070
|
-
/* @__PURE__ */ (0,
|
|
2173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
2174
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.Header, { title }),
|
|
2175
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: description }),
|
|
2176
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
2071
2177
|
"div",
|
|
2072
2178
|
{
|
|
2073
2179
|
className: (0, import_classnames6.default)("form-group", {
|
|
2074
2180
|
"has-error": (validationState == null ? void 0 : validationState.status) === "invalid"
|
|
2075
2181
|
}),
|
|
2076
2182
|
children: [
|
|
2077
|
-
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0,
|
|
2078
|
-
/* @__PURE__ */ (0,
|
|
2079
|
-
|
|
2183
|
+
items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ItemSummaryOption, { item, onClick: () => onEditItem(index) }, item.id)),
|
|
2184
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2185
|
+
import_components33.NavigationOption,
|
|
2080
2186
|
{
|
|
2081
|
-
media: /* @__PURE__ */ (0,
|
|
2187
|
+
media: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_icons.Plus, {}),
|
|
2082
2188
|
title: addItemTitle || formatMessage(repeatable_messages_default.addItemTitle),
|
|
2083
2189
|
showMediaAtAllSizes: true,
|
|
2084
2190
|
onClick: () => onAddItem()
|
|
2085
2191
|
}
|
|
2086
2192
|
),
|
|
2087
|
-
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0,
|
|
2193
|
+
(validationState == null ? void 0 : validationState.status) === "invalid" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.InlineAlert, { type: "negative", children: validationState.message })
|
|
2088
2194
|
]
|
|
2089
2195
|
}
|
|
2090
2196
|
),
|
|
2091
|
-
/* @__PURE__ */ (0,
|
|
2092
|
-
|
|
2197
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2198
|
+
import_components33.Modal,
|
|
2093
2199
|
{
|
|
2094
2200
|
open: openModalType !== null,
|
|
2095
2201
|
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
|
-
|
|
2202
|
+
body: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
2203
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "m-b-2", children: editableItem }),
|
|
2204
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
|
|
2205
|
+
/* @__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) }),
|
|
2206
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2207
|
+
import_components33.Button,
|
|
2102
2208
|
{
|
|
2103
2209
|
v2: true,
|
|
2104
2210
|
priority: "secondary",
|
|
@@ -2119,10 +2225,10 @@ function ItemSummaryOption({
|
|
|
2119
2225
|
item,
|
|
2120
2226
|
onClick
|
|
2121
2227
|
}) {
|
|
2122
|
-
return /* @__PURE__ */ (0,
|
|
2123
|
-
|
|
2228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2229
|
+
import_components33.NavigationOption,
|
|
2124
2230
|
{
|
|
2125
|
-
media: /* @__PURE__ */ (0,
|
|
2231
|
+
media: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(OptionMedia, { media: item.media, preferAvatar: false }),
|
|
2126
2232
|
title: item.title,
|
|
2127
2233
|
content: item.description,
|
|
2128
2234
|
showMediaAtAllSizes: true,
|
|
@@ -2134,12 +2240,12 @@ function ItemSummaryOption({
|
|
|
2134
2240
|
var RepeatableRenderer_default = RepeatableRenderer;
|
|
2135
2241
|
|
|
2136
2242
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2137
|
-
var
|
|
2243
|
+
var import_components35 = require("@transferwise/components");
|
|
2138
2244
|
|
|
2139
2245
|
// ../renderers/src/components/Header.tsx
|
|
2140
|
-
var
|
|
2141
|
-
var
|
|
2142
|
-
var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0,
|
|
2246
|
+
var import_components34 = require("@transferwise/components");
|
|
2247
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2248
|
+
var Header7 = ({ title, callToAction }) => (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components34.Header, { title: title != null ? title : "", action: getHeaderAction(callToAction) });
|
|
2143
2249
|
var getHeaderAction = (callToAction) => {
|
|
2144
2250
|
if (!callToAction) {
|
|
2145
2251
|
return void 0;
|
|
@@ -2161,15 +2267,15 @@ var getHeaderAction = (callToAction) => {
|
|
|
2161
2267
|
};
|
|
2162
2268
|
|
|
2163
2269
|
// ../renderers/src/ReviewRenderer.tsx
|
|
2164
|
-
var
|
|
2270
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2165
2271
|
var ReviewRenderer = {
|
|
2166
2272
|
canRenderType: "review",
|
|
2167
2273
|
render: ({ callToAction, control, fields, margin, title, trackEvent }) => {
|
|
2168
2274
|
const orientation = mapControlToDefinitionListLayout(control);
|
|
2169
|
-
return /* @__PURE__ */ (0,
|
|
2170
|
-
/* @__PURE__ */ (0,
|
|
2171
|
-
/* @__PURE__ */ (0,
|
|
2172
|
-
|
|
2275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: getMargin(margin), children: [
|
|
2276
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Header7, { title, callToAction }),
|
|
2277
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2278
|
+
import_components35.DefinitionList,
|
|
2173
2279
|
{
|
|
2174
2280
|
layout: orientation,
|
|
2175
2281
|
definitions: fields.map(
|
|
@@ -2206,23 +2312,23 @@ var mapControlToDefinitionListLayout = (control) => {
|
|
|
2206
2312
|
};
|
|
2207
2313
|
var getFieldLabel = (label, help, onClick) => {
|
|
2208
2314
|
if (help) {
|
|
2209
|
-
return /* @__PURE__ */ (0,
|
|
2315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
2210
2316
|
label,
|
|
2211
2317
|
" ",
|
|
2212
|
-
/* @__PURE__ */ (0,
|
|
2318
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Help_default, { help, onClick })
|
|
2213
2319
|
] });
|
|
2214
2320
|
}
|
|
2215
2321
|
return label;
|
|
2216
2322
|
};
|
|
2217
2323
|
|
|
2218
2324
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2219
|
-
var
|
|
2220
|
-
var
|
|
2221
|
-
var
|
|
2325
|
+
var import_components37 = require("@transferwise/components");
|
|
2326
|
+
var import_react13 = require("react");
|
|
2327
|
+
var import_react_intl21 = require("react-intl");
|
|
2222
2328
|
|
|
2223
2329
|
// ../renderers/src/messages/search.messages.ts
|
|
2224
|
-
var
|
|
2225
|
-
var search_messages_default = (0,
|
|
2330
|
+
var import_react_intl18 = require("react-intl");
|
|
2331
|
+
var search_messages_default = (0, import_react_intl18.defineMessages)({
|
|
2226
2332
|
loading: {
|
|
2227
2333
|
id: "df.wise.SearchLayout.loading",
|
|
2228
2334
|
defaultMessage: "Loading...",
|
|
@@ -2231,11 +2337,11 @@ var search_messages_default = (0, import_react_intl16.defineMessages)({
|
|
|
2231
2337
|
});
|
|
2232
2338
|
|
|
2233
2339
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2234
|
-
var
|
|
2340
|
+
var import_react_intl20 = require("react-intl");
|
|
2235
2341
|
|
|
2236
2342
|
// ../renderers/src/messages/generic-error.messages.ts
|
|
2237
|
-
var
|
|
2238
|
-
var generic_error_messages_default = (0,
|
|
2343
|
+
var import_react_intl19 = require("react-intl");
|
|
2344
|
+
var generic_error_messages_default = (0, import_react_intl19.defineMessages)({
|
|
2239
2345
|
genericErrorRetryHint: {
|
|
2240
2346
|
id: "df.wise.PersistAsyncSchema.genericError",
|
|
2241
2347
|
defaultMessage: "Something went wrong, please try again.",
|
|
@@ -2254,19 +2360,19 @@ var generic_error_messages_default = (0, import_react_intl17.defineMessages)({
|
|
|
2254
2360
|
});
|
|
2255
2361
|
|
|
2256
2362
|
// ../renderers/src/SearchRenderer/ErrorResult.tsx
|
|
2257
|
-
var
|
|
2258
|
-
var
|
|
2363
|
+
var import_components36 = require("@transferwise/components");
|
|
2364
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2259
2365
|
function ErrorResult({ state }) {
|
|
2260
|
-
const intl = (0,
|
|
2261
|
-
return /* @__PURE__ */ (0,
|
|
2366
|
+
const intl = (0, import_react_intl20.useIntl)();
|
|
2367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "m-t-2", children: [
|
|
2262
2368
|
intl.formatMessage(generic_error_messages_default.genericError),
|
|
2263
2369
|
"\xA0",
|
|
2264
|
-
/* @__PURE__ */ (0,
|
|
2370
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components36.Link, { onClick: () => state.onRetry(), children: intl.formatMessage(generic_error_messages_default.retry) })
|
|
2265
2371
|
] });
|
|
2266
2372
|
}
|
|
2267
2373
|
|
|
2268
2374
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2269
|
-
var
|
|
2375
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2270
2376
|
function BlockSearchRendererComponent({
|
|
2271
2377
|
id,
|
|
2272
2378
|
isLoading,
|
|
@@ -2277,11 +2383,11 @@ function BlockSearchRendererComponent({
|
|
|
2277
2383
|
trackEvent,
|
|
2278
2384
|
onChange
|
|
2279
2385
|
}) {
|
|
2280
|
-
const [hasSearched, setHasSearched] = (0,
|
|
2281
|
-
const { formatMessage } = (0,
|
|
2282
|
-
return /* @__PURE__ */ (0,
|
|
2283
|
-
/* @__PURE__ */ (0,
|
|
2284
|
-
|
|
2386
|
+
const [hasSearched, setHasSearched] = (0, import_react13.useState)(false);
|
|
2387
|
+
const { formatMessage } = (0, import_react_intl21.useIntl)();
|
|
2388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: getMargin(margin), children: [
|
|
2389
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2390
|
+
import_components37.Input,
|
|
2285
2391
|
{
|
|
2286
2392
|
id,
|
|
2287
2393
|
name: id,
|
|
@@ -2297,7 +2403,7 @@ function BlockSearchRendererComponent({
|
|
|
2297
2403
|
}
|
|
2298
2404
|
}
|
|
2299
2405
|
) }),
|
|
2300
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
2406
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: formatMessage(search_messages_default.loading) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SearchResultContent, { state, trackEvent })
|
|
2301
2407
|
] });
|
|
2302
2408
|
}
|
|
2303
2409
|
function SearchResultContent({
|
|
@@ -2306,31 +2412,31 @@ function SearchResultContent({
|
|
|
2306
2412
|
}) {
|
|
2307
2413
|
switch (state.type) {
|
|
2308
2414
|
case "error":
|
|
2309
|
-
return /* @__PURE__ */ (0,
|
|
2415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorResult, { state });
|
|
2310
2416
|
case "results":
|
|
2311
|
-
return /* @__PURE__ */ (0,
|
|
2417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SearchResults, { state, trackEvent });
|
|
2312
2418
|
case "noResults":
|
|
2313
|
-
return /* @__PURE__ */ (0,
|
|
2419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EmptySearchResult, { state });
|
|
2314
2420
|
case "pending":
|
|
2315
2421
|
default:
|
|
2316
2422
|
return null;
|
|
2317
2423
|
}
|
|
2318
2424
|
}
|
|
2319
2425
|
function EmptySearchResult({ state }) {
|
|
2320
|
-
return /* @__PURE__ */ (0,
|
|
2426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.Markdown, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
2321
2427
|
}
|
|
2322
2428
|
function SearchResults({
|
|
2323
2429
|
state,
|
|
2324
2430
|
trackEvent
|
|
2325
2431
|
}) {
|
|
2326
|
-
return /* @__PURE__ */ (0,
|
|
2432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components37.NavigationOptionsList, { children: state.results.map((result) => {
|
|
2327
2433
|
const { media } = result;
|
|
2328
|
-
return /* @__PURE__ */ (0,
|
|
2329
|
-
|
|
2434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2435
|
+
import_components37.NavigationOption,
|
|
2330
2436
|
{
|
|
2331
2437
|
title: result.title,
|
|
2332
2438
|
content: result.description,
|
|
2333
|
-
media: media ? /* @__PURE__ */ (0,
|
|
2439
|
+
media: media ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(OptionMedia, { media, preferAvatar: false }) : void 0,
|
|
2334
2440
|
showMediaCircle: false,
|
|
2335
2441
|
showMediaAtAllSizes: true,
|
|
2336
2442
|
onClick: () => {
|
|
@@ -2347,11 +2453,11 @@ function SearchResults({
|
|
|
2347
2453
|
var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
|
|
2348
2454
|
|
|
2349
2455
|
// ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
|
|
2350
|
-
var
|
|
2456
|
+
var import_components38 = require("@transferwise/components");
|
|
2351
2457
|
var import_icons2 = require("@transferwise/icons");
|
|
2352
|
-
var
|
|
2353
|
-
var
|
|
2354
|
-
var
|
|
2458
|
+
var import_react14 = require("react");
|
|
2459
|
+
var import_react_intl22 = require("react-intl");
|
|
2460
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2355
2461
|
function InlineSearchRenderer({
|
|
2356
2462
|
id,
|
|
2357
2463
|
isLoading,
|
|
@@ -2361,20 +2467,20 @@ function InlineSearchRenderer({
|
|
|
2361
2467
|
title,
|
|
2362
2468
|
trackEvent
|
|
2363
2469
|
}) {
|
|
2364
|
-
const [hasSearched, setHasSearched] = (0,
|
|
2365
|
-
const intl = (0,
|
|
2366
|
-
return /* @__PURE__ */ (0,
|
|
2367
|
-
|
|
2470
|
+
const [hasSearched, setHasSearched] = (0, import_react14.useState)(false);
|
|
2471
|
+
const intl = (0, import_react_intl22.useIntl)();
|
|
2472
|
+
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)(
|
|
2473
|
+
import_components38.Typeahead,
|
|
2368
2474
|
{
|
|
2369
2475
|
id: "typeahead-input-id",
|
|
2370
2476
|
intl,
|
|
2371
2477
|
name: "typeahead-input-name",
|
|
2372
2478
|
size: "md",
|
|
2373
2479
|
maxHeight: 100,
|
|
2374
|
-
footer: /* @__PURE__ */ (0,
|
|
2480
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TypeaheadFooter, { state, isLoading }),
|
|
2375
2481
|
multiple: false,
|
|
2376
2482
|
clearable: false,
|
|
2377
|
-
addon: /* @__PURE__ */ (0,
|
|
2483
|
+
addon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons2.Search, { size: 24 }),
|
|
2378
2484
|
options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
|
|
2379
2485
|
minQueryLength: 1,
|
|
2380
2486
|
onChange: (values) => {
|
|
@@ -2409,30 +2515,30 @@ function mapResultToTypeaheadOption(result) {
|
|
|
2409
2515
|
};
|
|
2410
2516
|
}
|
|
2411
2517
|
function TypeaheadFooter({ state, isLoading }) {
|
|
2412
|
-
const { formatMessage } = (0,
|
|
2518
|
+
const { formatMessage } = (0, import_react_intl22.useIntl)();
|
|
2413
2519
|
if (state.type === "noResults") {
|
|
2414
|
-
return /* @__PURE__ */ (0,
|
|
2520
|
+
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
2521
|
}
|
|
2416
2522
|
if (state.type === "error") {
|
|
2417
|
-
return /* @__PURE__ */ (0,
|
|
2523
|
+
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
2524
|
}
|
|
2419
2525
|
if (state.type === "pending" || isLoading) {
|
|
2420
|
-
return /* @__PURE__ */ (0,
|
|
2526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "m-t-2 m-x-2", children: formatMessage(search_messages_default.loading) });
|
|
2421
2527
|
}
|
|
2422
2528
|
return null;
|
|
2423
2529
|
}
|
|
2424
2530
|
var InlineSearchRendererComponent_default = InlineSearchRenderer;
|
|
2425
2531
|
|
|
2426
2532
|
// ../renderers/src/SearchRenderer/SearchRenderer.tsx
|
|
2427
|
-
var
|
|
2533
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2428
2534
|
var SearchRenderer = {
|
|
2429
2535
|
canRenderType: "search",
|
|
2430
|
-
render: (props) => props.control === "inline" ? /* @__PURE__ */ (0,
|
|
2536
|
+
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
2537
|
};
|
|
2432
2538
|
var SearchRenderer_default = SearchRenderer;
|
|
2433
2539
|
|
|
2434
2540
|
// ../renderers/src/SectionRenderer.tsx
|
|
2435
|
-
var
|
|
2541
|
+
var import_components39 = require("@transferwise/components");
|
|
2436
2542
|
|
|
2437
2543
|
// ../renderers/src/utils/getHeaderAction.tsx
|
|
2438
2544
|
var getHeaderAction2 = (callToAction) => {
|
|
@@ -2456,12 +2562,12 @@ var getHeaderAction2 = (callToAction) => {
|
|
|
2456
2562
|
};
|
|
2457
2563
|
|
|
2458
2564
|
// ../renderers/src/SectionRenderer.tsx
|
|
2459
|
-
var
|
|
2565
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2460
2566
|
var SectionRenderer = {
|
|
2461
2567
|
canRenderType: "section",
|
|
2462
2568
|
render: ({ children, callToAction, margin, title }) => {
|
|
2463
|
-
return /* @__PURE__ */ (0,
|
|
2464
|
-
(title || callToAction) && /* @__PURE__ */ (0,
|
|
2569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("section", { className: getMargin(margin), children: [
|
|
2570
|
+
(title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components39.Header, { title: title != null ? title : "", action: getHeaderAction2(callToAction) }),
|
|
2465
2571
|
children
|
|
2466
2572
|
] });
|
|
2467
2573
|
}
|
|
@@ -2469,8 +2575,8 @@ var SectionRenderer = {
|
|
|
2469
2575
|
var SectionRenderer_default = SectionRenderer;
|
|
2470
2576
|
|
|
2471
2577
|
// ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
|
|
2472
|
-
var
|
|
2473
|
-
var
|
|
2578
|
+
var import_components40 = require("@transferwise/components");
|
|
2579
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2474
2580
|
function RadioInputRendererComponent(props) {
|
|
2475
2581
|
const {
|
|
2476
2582
|
id,
|
|
@@ -2484,8 +2590,8 @@ function RadioInputRendererComponent(props) {
|
|
|
2484
2590
|
validationState,
|
|
2485
2591
|
onSelect
|
|
2486
2592
|
} = props;
|
|
2487
|
-
return /* @__PURE__ */ (0,
|
|
2488
|
-
/* @__PURE__ */ (0,
|
|
2593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
2594
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2489
2595
|
FieldInput_default,
|
|
2490
2596
|
{
|
|
2491
2597
|
id,
|
|
@@ -2493,8 +2599,8 @@ function RadioInputRendererComponent(props) {
|
|
|
2493
2599
|
help,
|
|
2494
2600
|
description,
|
|
2495
2601
|
validation: validationState,
|
|
2496
|
-
children: /* @__PURE__ */ (0,
|
|
2497
|
-
|
|
2602
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2603
|
+
import_components40.RadioGroup,
|
|
2498
2604
|
{
|
|
2499
2605
|
name: id,
|
|
2500
2606
|
radios: options.map((option, index) => ({
|
|
@@ -2502,7 +2608,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2502
2608
|
value: index,
|
|
2503
2609
|
secondary: option.description,
|
|
2504
2610
|
disabled: option.disabled || disabled,
|
|
2505
|
-
avatar: /* @__PURE__ */ (0,
|
|
2611
|
+
avatar: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2506
2612
|
})),
|
|
2507
2613
|
selectedValue: selectedIndex != null ? selectedIndex : void 0,
|
|
2508
2614
|
onChange: onSelect
|
|
@@ -2516,9 +2622,9 @@ function RadioInputRendererComponent(props) {
|
|
|
2516
2622
|
}
|
|
2517
2623
|
|
|
2518
2624
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
2519
|
-
var
|
|
2520
|
-
var
|
|
2521
|
-
var
|
|
2625
|
+
var import_components41 = require("@transferwise/components");
|
|
2626
|
+
var import_react15 = require("react");
|
|
2627
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2522
2628
|
function TabInputRendererComponent(props) {
|
|
2523
2629
|
const {
|
|
2524
2630
|
id,
|
|
@@ -2532,13 +2638,13 @@ function TabInputRendererComponent(props) {
|
|
|
2532
2638
|
validationState,
|
|
2533
2639
|
onSelect
|
|
2534
2640
|
} = props;
|
|
2535
|
-
(0,
|
|
2536
|
-
if (!
|
|
2641
|
+
(0, import_react15.useEffect)(() => {
|
|
2642
|
+
if (!isValidIndex2(selectedIndex, options.length)) {
|
|
2537
2643
|
onSelect(0);
|
|
2538
2644
|
}
|
|
2539
2645
|
}, [selectedIndex, onSelect, options.length]);
|
|
2540
|
-
return /* @__PURE__ */ (0,
|
|
2541
|
-
/* @__PURE__ */ (0,
|
|
2646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
2647
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2542
2648
|
FieldInput_default,
|
|
2543
2649
|
{
|
|
2544
2650
|
id,
|
|
@@ -2546,8 +2652,8 @@ function TabInputRendererComponent(props) {
|
|
|
2546
2652
|
help,
|
|
2547
2653
|
description,
|
|
2548
2654
|
validation: validationState,
|
|
2549
|
-
children: /* @__PURE__ */ (0,
|
|
2550
|
-
|
|
2655
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2656
|
+
import_components41.Tabs,
|
|
2551
2657
|
{
|
|
2552
2658
|
name: id,
|
|
2553
2659
|
selected: selectedIndex != null ? selectedIndex : 0,
|
|
@@ -2555,7 +2661,7 @@ function TabInputRendererComponent(props) {
|
|
|
2555
2661
|
title: option.title,
|
|
2556
2662
|
// if we pass null, we get some props-types console errors
|
|
2557
2663
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
2558
|
-
content: /* @__PURE__ */ (0,
|
|
2664
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, {}),
|
|
2559
2665
|
disabled: option.disabled || disabled
|
|
2560
2666
|
})),
|
|
2561
2667
|
onTabSelect: onSelect
|
|
@@ -2566,11 +2672,11 @@ function TabInputRendererComponent(props) {
|
|
|
2566
2672
|
children
|
|
2567
2673
|
] });
|
|
2568
2674
|
}
|
|
2569
|
-
var
|
|
2675
|
+
var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
|
|
2570
2676
|
|
|
2571
2677
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
2572
|
-
var
|
|
2573
|
-
var
|
|
2678
|
+
var import_components42 = require("@transferwise/components");
|
|
2679
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2574
2680
|
function SelectInputRendererComponent(props) {
|
|
2575
2681
|
const {
|
|
2576
2682
|
id,
|
|
@@ -2610,13 +2716,13 @@ function SelectInputRendererComponent(props) {
|
|
|
2610
2716
|
} : {
|
|
2611
2717
|
title: option.title,
|
|
2612
2718
|
description: option.description,
|
|
2613
|
-
icon: /* @__PURE__ */ (0,
|
|
2719
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(OptionMedia, { media: option.media, preferAvatar: false })
|
|
2614
2720
|
};
|
|
2615
|
-
return /* @__PURE__ */ (0,
|
|
2721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_components42.SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
2616
2722
|
};
|
|
2617
2723
|
const extraProps = { autoComplete };
|
|
2618
|
-
return /* @__PURE__ */ (0,
|
|
2619
|
-
/* @__PURE__ */ (0,
|
|
2724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
2725
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2620
2726
|
FieldInput_default,
|
|
2621
2727
|
{
|
|
2622
2728
|
id,
|
|
@@ -2624,8 +2730,8 @@ function SelectInputRendererComponent(props) {
|
|
|
2624
2730
|
help,
|
|
2625
2731
|
description,
|
|
2626
2732
|
validation: validationState,
|
|
2627
|
-
children: /* @__PURE__ */ (0,
|
|
2628
|
-
|
|
2733
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2734
|
+
import_components42.SelectInput,
|
|
2629
2735
|
__spreadValues({
|
|
2630
2736
|
name: id,
|
|
2631
2737
|
placeholder,
|
|
@@ -2645,9 +2751,9 @@ function SelectInputRendererComponent(props) {
|
|
|
2645
2751
|
}
|
|
2646
2752
|
|
|
2647
2753
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
2648
|
-
var
|
|
2649
|
-
var
|
|
2650
|
-
var
|
|
2754
|
+
var import_react16 = require("react");
|
|
2755
|
+
var import_components43 = require("@transferwise/components");
|
|
2756
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2651
2757
|
function SegmentedInputRendererComponent(props) {
|
|
2652
2758
|
const {
|
|
2653
2759
|
id,
|
|
@@ -2660,13 +2766,13 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2660
2766
|
validationState,
|
|
2661
2767
|
onSelect
|
|
2662
2768
|
} = props;
|
|
2663
|
-
(0,
|
|
2664
|
-
if (!
|
|
2769
|
+
(0, import_react16.useEffect)(() => {
|
|
2770
|
+
if (!isValidIndex3(selectedIndex, options.length)) {
|
|
2665
2771
|
onSelect(0);
|
|
2666
2772
|
}
|
|
2667
2773
|
}, [selectedIndex, onSelect, options.length]);
|
|
2668
|
-
return /* @__PURE__ */ (0,
|
|
2669
|
-
/* @__PURE__ */ (0,
|
|
2774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
2775
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2670
2776
|
FieldInput_default,
|
|
2671
2777
|
{
|
|
2672
2778
|
id,
|
|
@@ -2674,8 +2780,8 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2674
2780
|
help,
|
|
2675
2781
|
description,
|
|
2676
2782
|
validation: validationState,
|
|
2677
|
-
children: /* @__PURE__ */ (0,
|
|
2678
|
-
|
|
2783
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2784
|
+
import_components43.SegmentedControl,
|
|
2679
2785
|
{
|
|
2680
2786
|
name: `${id}-segmented-control`,
|
|
2681
2787
|
value: String(selectedIndex),
|
|
@@ -2691,44 +2797,44 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2691
2797
|
)
|
|
2692
2798
|
}
|
|
2693
2799
|
),
|
|
2694
|
-
/* @__PURE__ */ (0,
|
|
2800
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { id: `${id}-children`, children })
|
|
2695
2801
|
] });
|
|
2696
2802
|
}
|
|
2697
|
-
var
|
|
2803
|
+
var isValidIndex3 = (index, options) => index !== null && index >= 0 && index < options;
|
|
2698
2804
|
|
|
2699
2805
|
// ../renderers/src/SelectInputRenderer/SelectInputRenderer.tsx
|
|
2700
|
-
var
|
|
2806
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2701
2807
|
var SelectInputRenderer = {
|
|
2702
2808
|
canRenderType: "input-select",
|
|
2703
2809
|
render: (props) => {
|
|
2704
2810
|
switch (props.control) {
|
|
2705
2811
|
case "radio":
|
|
2706
|
-
return /* @__PURE__ */ (0,
|
|
2812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RadioInputRendererComponent, __spreadValues({}, props));
|
|
2707
2813
|
case "tab":
|
|
2708
|
-
return props.options.length > 3 ? /* @__PURE__ */ (0,
|
|
2814
|
+
return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TabInputRendererComponent, __spreadValues({}, props));
|
|
2709
2815
|
case "segmented":
|
|
2710
|
-
return props.options.length > 3 ? /* @__PURE__ */ (0,
|
|
2816
|
+
return props.options.length > 3 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SegmentedInputRendererComponent, __spreadValues({}, props));
|
|
2711
2817
|
case "select":
|
|
2712
2818
|
default:
|
|
2713
|
-
return /* @__PURE__ */ (0,
|
|
2819
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectInputRendererComponent, __spreadValues({}, props));
|
|
2714
2820
|
}
|
|
2715
2821
|
}
|
|
2716
2822
|
};
|
|
2717
2823
|
var SelectInputRenderer_default = SelectInputRenderer;
|
|
2718
2824
|
|
|
2719
2825
|
// ../renderers/src/StatusListRenderer.tsx
|
|
2720
|
-
var
|
|
2721
|
-
var
|
|
2826
|
+
var import_components44 = require("@transferwise/components");
|
|
2827
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2722
2828
|
var StatusListRenderer = {
|
|
2723
2829
|
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
|
-
|
|
2830
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: getMargin(margin), children: [
|
|
2831
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_components44.Header, { title, className: "m-b-2" }) : null,
|
|
2832
|
+
items.map(({ callToAction, description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2833
|
+
import_components44.Summary,
|
|
2728
2834
|
{
|
|
2729
2835
|
title: itemTitle,
|
|
2730
2836
|
description,
|
|
2731
|
-
icon: icon && "name" in icon ? /* @__PURE__ */ (0,
|
|
2837
|
+
icon: icon && "name" in icon ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DynamicIcon_default, { name: icon.name }) : null,
|
|
2732
2838
|
status: mapStatus(status),
|
|
2733
2839
|
action: getSummaryAction(callToAction)
|
|
2734
2840
|
},
|
|
@@ -2765,12 +2871,12 @@ var mapStatus = (status) => {
|
|
|
2765
2871
|
|
|
2766
2872
|
// ../renderers/src/utils/useCustomTheme.ts
|
|
2767
2873
|
var import_components_theming = require("@wise/components-theming");
|
|
2768
|
-
var
|
|
2874
|
+
var import_react17 = require("react");
|
|
2769
2875
|
var ThemeRequiredEventName = "Theme Required";
|
|
2770
2876
|
var useCustomTheme = (theme, trackEvent) => {
|
|
2771
2877
|
const previousThemeHookValue = (0, import_components_theming.useTheme)();
|
|
2772
|
-
const previousTheme = (0,
|
|
2773
|
-
(0,
|
|
2878
|
+
const previousTheme = (0, import_react17.useMemo)(() => previousThemeHookValue.theme, []);
|
|
2879
|
+
(0, import_react17.useEffect)(() => {
|
|
2774
2880
|
trackEvent(ThemeRequiredEventName, { theme });
|
|
2775
2881
|
return theme !== previousTheme ? () => {
|
|
2776
2882
|
trackEvent(ThemeRequiredEventName, { theme: previousTheme });
|
|
@@ -2780,32 +2886,32 @@ var useCustomTheme = (theme, trackEvent) => {
|
|
|
2780
2886
|
};
|
|
2781
2887
|
|
|
2782
2888
|
// ../renderers/src/step/topbar/BackButton.tsx
|
|
2783
|
-
var
|
|
2889
|
+
var import_components45 = require("@transferwise/components");
|
|
2784
2890
|
var import_icons3 = require("@transferwise/icons");
|
|
2785
|
-
var
|
|
2891
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2786
2892
|
function BackButton({ title, onClick }) {
|
|
2787
|
-
return /* @__PURE__ */ (0,
|
|
2788
|
-
/* @__PURE__ */ (0,
|
|
2789
|
-
/* @__PURE__ */ (0,
|
|
2893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_components45.IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
|
|
2894
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "sr-only", children: title }),
|
|
2895
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_icons3.ArrowLeft, {})
|
|
2790
2896
|
] });
|
|
2791
2897
|
}
|
|
2792
2898
|
|
|
2793
2899
|
// ../renderers/src/step/topbar/Toolbar.tsx
|
|
2794
|
-
var
|
|
2795
|
-
var
|
|
2900
|
+
var import_components46 = require("@transferwise/components");
|
|
2901
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2796
2902
|
var Toolbar = ({ items }) => {
|
|
2797
|
-
return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0,
|
|
2903
|
+
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
2904
|
};
|
|
2799
2905
|
function ToolbarButton(props) {
|
|
2800
|
-
return prefersMedia(props.control) ? /* @__PURE__ */ (0,
|
|
2906
|
+
return prefersMedia(props.control) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(MediaToolbarButton, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TextToolbarButton, __spreadValues({}, props));
|
|
2801
2907
|
}
|
|
2802
2908
|
function MediaToolbarButton(props) {
|
|
2803
2909
|
var _a;
|
|
2804
2910
|
const { context, control, media, accessibilityDescription, disabled, onClick } = props;
|
|
2805
2911
|
const priority = getIconButtonPriority(control);
|
|
2806
2912
|
const type = getSentiment(context);
|
|
2807
|
-
return /* @__PURE__ */ (0,
|
|
2808
|
-
|
|
2913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
2914
|
+
import_components46.IconButton,
|
|
2809
2915
|
{
|
|
2810
2916
|
className: "df-toolbar-button",
|
|
2811
2917
|
disabled,
|
|
@@ -2814,7 +2920,7 @@ function MediaToolbarButton(props) {
|
|
|
2814
2920
|
type,
|
|
2815
2921
|
onClick,
|
|
2816
2922
|
children: [
|
|
2817
|
-
accessibilityDescription ? /* @__PURE__ */ (0,
|
|
2923
|
+
accessibilityDescription ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "sr-only", children: accessibilityDescription }) : null,
|
|
2818
2924
|
media ? (_a = getAddonStart(media)) == null ? void 0 : _a.value : null
|
|
2819
2925
|
]
|
|
2820
2926
|
}
|
|
@@ -2825,8 +2931,8 @@ function TextToolbarButton(props) {
|
|
|
2825
2931
|
const addonStart = media ? getAddonStart(media) : void 0;
|
|
2826
2932
|
const priority = getPriority2(control);
|
|
2827
2933
|
const sentiment = getSentiment(context);
|
|
2828
|
-
return /* @__PURE__ */ (0,
|
|
2829
|
-
|
|
2934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2935
|
+
import_components46.Button,
|
|
2830
2936
|
{
|
|
2831
2937
|
v2: true,
|
|
2832
2938
|
size: "sm",
|
|
@@ -2870,48 +2976,52 @@ var getIconButtonPriority = (control) => {
|
|
|
2870
2976
|
};
|
|
2871
2977
|
|
|
2872
2978
|
// ../renderers/src/step/topbar/TopBar.tsx
|
|
2873
|
-
var
|
|
2979
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
2874
2980
|
function TopBar({ back, toolbar }) {
|
|
2875
|
-
return back || toolbar ? /* @__PURE__ */ (0,
|
|
2876
|
-
back ? /* @__PURE__ */ (0,
|
|
2877
|
-
toolbar ? /* @__PURE__ */ (0,
|
|
2981
|
+
return back || toolbar ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "d-flex m-b-2", children: [
|
|
2982
|
+
back ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BackButton, __spreadValues({}, back)) : null,
|
|
2983
|
+
toolbar ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Toolbar, __spreadValues({}, toolbar)) : null
|
|
2878
2984
|
] }) : null;
|
|
2879
2985
|
}
|
|
2880
2986
|
|
|
2881
2987
|
// ../renderers/src/step/SplashCelebrationStepRenderer.tsx
|
|
2882
|
-
var
|
|
2988
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
2883
2989
|
var SplashCelebrationStepRenderer = {
|
|
2884
2990
|
canRenderType: "step",
|
|
2885
2991
|
canRender: ({ control }) => control === "splash-celebration",
|
|
2886
2992
|
render: SplashCelebrationStepRendererComponent
|
|
2887
2993
|
};
|
|
2888
2994
|
function SplashCelebrationStepRendererComponent(props) {
|
|
2889
|
-
const { back, toolbar, children, trackEvent } = props;
|
|
2995
|
+
const { back, toolbar, children, footer, trackEvent } = props;
|
|
2996
|
+
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
2890
2997
|
useCustomTheme("forest-green", trackEvent);
|
|
2891
|
-
return /* @__PURE__ */ (0,
|
|
2892
|
-
/* @__PURE__ */ (0,
|
|
2893
|
-
children
|
|
2998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "splash-screen m-t-5", children: [
|
|
2999
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TopBar, { back, toolbar }),
|
|
3000
|
+
children,
|
|
3001
|
+
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2894
3002
|
] });
|
|
2895
3003
|
}
|
|
2896
3004
|
|
|
2897
3005
|
// ../renderers/src/step/SplashStepRenderer.tsx
|
|
2898
|
-
var
|
|
3006
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
2899
3007
|
var SplashStepRenderer = {
|
|
2900
3008
|
canRenderType: "step",
|
|
2901
3009
|
canRender: ({ control }) => control === "splash",
|
|
2902
3010
|
render: SplashStepRendererComponent
|
|
2903
3011
|
};
|
|
2904
3012
|
function SplashStepRendererComponent(props) {
|
|
2905
|
-
const { back, toolbar, children } = props;
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
3013
|
+
const { back, toolbar, children, footer } = props;
|
|
3014
|
+
const hasFooter = footer && Array.isArray(footer) && footer.length > 0;
|
|
3015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "splash-screen m-t-5", children: [
|
|
3016
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TopBar, { back, toolbar }),
|
|
3017
|
+
children,
|
|
3018
|
+
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2909
3019
|
] });
|
|
2910
3020
|
}
|
|
2911
3021
|
|
|
2912
3022
|
// ../renderers/src/step/StepRenderer.tsx
|
|
2913
|
-
var
|
|
2914
|
-
var
|
|
3023
|
+
var import_components47 = require("@transferwise/components");
|
|
3024
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
2915
3025
|
var StepRenderer = {
|
|
2916
3026
|
canRenderType: "step",
|
|
2917
3027
|
render: StepRendererComponent
|
|
@@ -2919,49 +3029,49 @@ var StepRenderer = {
|
|
|
2919
3029
|
function StepRendererComponent(props) {
|
|
2920
3030
|
const { back, description, error, title, children, toolbar, footer } = props;
|
|
2921
3031
|
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,
|
|
3032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
|
|
3033
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TopBar, { back, toolbar }),
|
|
3034
|
+
title || description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "m-b-4", children: [
|
|
3035
|
+
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,
|
|
3036
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xs-center np-text-body-large", children: description }) : void 0
|
|
2927
3037
|
] }) : void 0,
|
|
2928
|
-
error ? /* @__PURE__ */ (0,
|
|
3038
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_components47.Alert, { type: "negative", className: "m-b-2", message: error }) : null,
|
|
2929
3039
|
children,
|
|
2930
|
-
hasFooter ? /* @__PURE__ */ (0,
|
|
3040
|
+
hasFooter ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "df-step-fixed__footer", children: footer }) : void 0
|
|
2931
3041
|
] });
|
|
2932
3042
|
}
|
|
2933
3043
|
|
|
2934
3044
|
// ../renderers/src/TabsRenderer.tsx
|
|
2935
|
-
var
|
|
2936
|
-
var
|
|
2937
|
-
var
|
|
3045
|
+
var import_components48 = require("@transferwise/components");
|
|
3046
|
+
var import_react18 = require("react");
|
|
3047
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
2938
3048
|
var TabsRenderer = {
|
|
2939
3049
|
canRenderType: "tabs",
|
|
2940
3050
|
render: (props) => {
|
|
2941
3051
|
switch (props.control) {
|
|
2942
3052
|
case "segmented":
|
|
2943
3053
|
if (props.tabs.length > 3) {
|
|
2944
|
-
return /* @__PURE__ */ (0,
|
|
3054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TabsRendererComponent, __spreadValues({}, props));
|
|
2945
3055
|
}
|
|
2946
|
-
return /* @__PURE__ */ (0,
|
|
3056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SegmentedTabsRendererComponent, __spreadValues({}, props));
|
|
2947
3057
|
case "chips":
|
|
2948
|
-
return /* @__PURE__ */ (0,
|
|
3058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ChipsTabsRendererComponent, __spreadValues({}, props));
|
|
2949
3059
|
default:
|
|
2950
|
-
return /* @__PURE__ */ (0,
|
|
3060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TabsRendererComponent, __spreadValues({}, props));
|
|
2951
3061
|
}
|
|
2952
3062
|
}
|
|
2953
3063
|
};
|
|
2954
3064
|
function TabsRendererComponent({ uid, margin, tabs }) {
|
|
2955
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
2956
|
-
return /* @__PURE__ */ (0,
|
|
2957
|
-
|
|
3065
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
|
|
3066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3067
|
+
import_components48.Tabs,
|
|
2958
3068
|
{
|
|
2959
3069
|
name: uid,
|
|
2960
3070
|
selected: selectedIndex != null ? selectedIndex : 0,
|
|
2961
3071
|
tabs: tabs.map((option) => ({
|
|
2962
3072
|
title: option.title,
|
|
2963
3073
|
disabled: false,
|
|
2964
|
-
content: /* @__PURE__ */ (0,
|
|
3074
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "m-t-2", children: [
|
|
2965
3075
|
" ",
|
|
2966
3076
|
option.children,
|
|
2967
3077
|
" "
|
|
@@ -2973,10 +3083,10 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
2973
3083
|
}
|
|
2974
3084
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
2975
3085
|
var _a;
|
|
2976
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
2977
|
-
return /* @__PURE__ */ (0,
|
|
2978
|
-
/* @__PURE__ */ (0,
|
|
2979
|
-
|
|
3086
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
|
|
3087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: getMargin(margin), children: [
|
|
3088
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3089
|
+
import_components48.SegmentedControl,
|
|
2980
3090
|
{
|
|
2981
3091
|
name: uid,
|
|
2982
3092
|
value: String(selectedIndex),
|
|
@@ -2990,31 +3100,31 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
2990
3100
|
onChange: (value) => setSelectedIndex(Number(value))
|
|
2991
3101
|
}
|
|
2992
3102
|
),
|
|
2993
|
-
/* @__PURE__ */ (0,
|
|
3103
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { id: `${uid}-children`, className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
2994
3104
|
] });
|
|
2995
3105
|
}
|
|
2996
3106
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
2997
3107
|
var _a;
|
|
2998
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
2999
|
-
return /* @__PURE__ */ (0,
|
|
3000
|
-
/* @__PURE__ */ (0,
|
|
3001
|
-
|
|
3108
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react18.useState)(0);
|
|
3109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: getMargin(margin), children: [
|
|
3110
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3111
|
+
import_components48.Chips,
|
|
3002
3112
|
{
|
|
3003
3113
|
chips: tabs.map((tab, index) => ({ label: tab.title, value: index })),
|
|
3004
3114
|
selected: selectedIndex,
|
|
3005
3115
|
onChange: ({ selectedValue }) => setSelectedIndex(Number(selectedValue))
|
|
3006
3116
|
}
|
|
3007
3117
|
) }),
|
|
3008
|
-
/* @__PURE__ */ (0,
|
|
3118
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "m-t-2", children: (_a = tabs[selectedIndex]) == null ? void 0 : _a.children })
|
|
3009
3119
|
] });
|
|
3010
3120
|
}
|
|
3011
3121
|
|
|
3012
3122
|
// ../renderers/src/TextInputRenderer.tsx
|
|
3013
|
-
var
|
|
3123
|
+
var import_components50 = require("@transferwise/components");
|
|
3014
3124
|
|
|
3015
3125
|
// ../renderers/src/components/VariableTextInput.tsx
|
|
3016
|
-
var
|
|
3017
|
-
var
|
|
3126
|
+
var import_components49 = require("@transferwise/components");
|
|
3127
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3018
3128
|
var commonKeys = [
|
|
3019
3129
|
"autoComplete",
|
|
3020
3130
|
"autoCapitalize",
|
|
@@ -3033,12 +3143,12 @@ function VariableTextInput(inputProps) {
|
|
|
3033
3143
|
const commonProps = __spreadProps(__spreadValues({}, pick(inputProps, ...commonKeys)), { name: id });
|
|
3034
3144
|
switch (control) {
|
|
3035
3145
|
case "email":
|
|
3036
|
-
return /* @__PURE__ */ (0,
|
|
3146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "email", onChange }));
|
|
3037
3147
|
case "password":
|
|
3038
|
-
return /* @__PURE__ */ (0,
|
|
3148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "password", onChange }));
|
|
3039
3149
|
case "numeric": {
|
|
3040
3150
|
const numericProps = __spreadProps(__spreadValues({}, commonProps), { type: "number", onWheel });
|
|
3041
|
-
return /* @__PURE__ */ (0,
|
|
3151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3042
3152
|
TextInput,
|
|
3043
3153
|
__spreadProps(__spreadValues({}, numericProps), {
|
|
3044
3154
|
onChange: (newValue) => {
|
|
@@ -3049,21 +3159,21 @@ function VariableTextInput(inputProps) {
|
|
|
3049
3159
|
);
|
|
3050
3160
|
}
|
|
3051
3161
|
case "phone-number":
|
|
3052
|
-
return /* @__PURE__ */ (0,
|
|
3162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_components49.PhoneNumberInput, __spreadProps(__spreadValues({ initialValue: value }, commonProps), { onChange }));
|
|
3053
3163
|
default: {
|
|
3054
|
-
return /* @__PURE__ */ (0,
|
|
3164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextInput, __spreadProps(__spreadValues({}, commonProps), { type: "text", onChange }));
|
|
3055
3165
|
}
|
|
3056
3166
|
}
|
|
3057
3167
|
}
|
|
3058
3168
|
function TextInput(props) {
|
|
3059
3169
|
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,
|
|
3170
|
+
const InputWithPattern = control === "textarea" ? import_components49.TextareaWithDisplayFormat : import_components49.InputWithDisplayFormat;
|
|
3171
|
+
const InputWithoutPattern = control === "textarea" ? import_components49.TextArea : import_components49.Input;
|
|
3172
|
+
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
3173
|
}
|
|
3064
3174
|
|
|
3065
3175
|
// ../renderers/src/TextInputRenderer.tsx
|
|
3066
|
-
var
|
|
3176
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3067
3177
|
var TextInputRenderer = {
|
|
3068
3178
|
canRenderType: "input-text",
|
|
3069
3179
|
render: (props) => {
|
|
@@ -3096,7 +3206,7 @@ var TextInputRenderer = {
|
|
|
3096
3206
|
}
|
|
3097
3207
|
}
|
|
3098
3208
|
});
|
|
3099
|
-
return /* @__PURE__ */ (0,
|
|
3209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3100
3210
|
FieldInput_default,
|
|
3101
3211
|
{
|
|
3102
3212
|
id,
|
|
@@ -3104,7 +3214,7 @@ var TextInputRenderer = {
|
|
|
3104
3214
|
description,
|
|
3105
3215
|
validation: validationState,
|
|
3106
3216
|
help,
|
|
3107
|
-
children: /* @__PURE__ */ (0,
|
|
3217
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_components50.InputGroup, { addonStart: getInputGroupAddonStart(media), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(VariableTextInput, __spreadValues({}, inputProps)) })
|
|
3108
3218
|
}
|
|
3109
3219
|
);
|
|
3110
3220
|
}
|
|
@@ -3112,13 +3222,13 @@ var TextInputRenderer = {
|
|
|
3112
3222
|
var TextInputRenderer_default = TextInputRenderer;
|
|
3113
3223
|
|
|
3114
3224
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3115
|
-
var
|
|
3225
|
+
var import_components51 = require("@transferwise/components");
|
|
3116
3226
|
|
|
3117
3227
|
// ../renderers/src/utils/getRandomId.ts
|
|
3118
3228
|
var getRandomId = () => Math.random().toString(36).substring(2);
|
|
3119
3229
|
|
|
3120
3230
|
// ../renderers/src/UploadInputRenderer.tsx
|
|
3121
|
-
var
|
|
3231
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3122
3232
|
var UploadInputRenderer = {
|
|
3123
3233
|
canRenderType: "input-upload",
|
|
3124
3234
|
render: (props) => {
|
|
@@ -3134,15 +3244,15 @@ var UploadInputRenderer = {
|
|
|
3134
3244
|
};
|
|
3135
3245
|
return (
|
|
3136
3246
|
// We don't pass help here as there is no sensible place to display it
|
|
3137
|
-
/* @__PURE__ */ (0,
|
|
3247
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3138
3248
|
UploadFieldInput_default,
|
|
3139
3249
|
{
|
|
3140
3250
|
id,
|
|
3141
3251
|
label: void 0,
|
|
3142
3252
|
description: void 0,
|
|
3143
3253
|
validation: validationState,
|
|
3144
|
-
children: /* @__PURE__ */ (0,
|
|
3145
|
-
|
|
3254
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3255
|
+
import_components51.UploadInput,
|
|
3146
3256
|
{
|
|
3147
3257
|
id,
|
|
3148
3258
|
description,
|
|
@@ -3200,7 +3310,7 @@ var LargeUploadRenderer = {
|
|
|
3200
3310
|
};
|
|
3201
3311
|
const filetypes = acceptsToFileTypes(accepts);
|
|
3202
3312
|
const usAccept = filetypes === "*" ? "*" : filetypes.join(",");
|
|
3203
|
-
return /* @__PURE__ */ (0,
|
|
3313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3204
3314
|
FieldInput_default,
|
|
3205
3315
|
{
|
|
3206
3316
|
id,
|
|
@@ -3208,8 +3318,8 @@ var LargeUploadRenderer = {
|
|
|
3208
3318
|
description,
|
|
3209
3319
|
validation: validationState,
|
|
3210
3320
|
help,
|
|
3211
|
-
children: /* @__PURE__ */ (0,
|
|
3212
|
-
|
|
3321
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3322
|
+
import_components51.Upload,
|
|
3213
3323
|
__spreadProps(__spreadValues({}, uploadProps), {
|
|
3214
3324
|
usAccept,
|
|
3215
3325
|
usDisabled: disabled,
|
|
@@ -3224,24 +3334,24 @@ var LargeUploadRenderer = {
|
|
|
3224
3334
|
};
|
|
3225
3335
|
|
|
3226
3336
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3227
|
-
var
|
|
3337
|
+
var import_components54 = require("@transferwise/components");
|
|
3228
3338
|
|
|
3229
3339
|
// ../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
3340
|
var import_components52 = require("@transferwise/components");
|
|
3236
3341
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3342
|
+
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;
|
|
3343
|
+
|
|
3344
|
+
// ../renderers/src/NewListItem/getAdditionalInfo.tsx
|
|
3345
|
+
var import_components53 = require("@transferwise/components");
|
|
3346
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3237
3347
|
var getAdditionalInfo = (additionalInfo) => {
|
|
3238
3348
|
if (!additionalInfo) {
|
|
3239
3349
|
return void 0;
|
|
3240
3350
|
}
|
|
3241
3351
|
const { href, text, onClick } = additionalInfo;
|
|
3242
3352
|
if (href || onClick) {
|
|
3243
|
-
return /* @__PURE__ */ (0,
|
|
3244
|
-
|
|
3353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3354
|
+
import_components53.ListItem.AdditionalInfo,
|
|
3245
3355
|
{
|
|
3246
3356
|
action: {
|
|
3247
3357
|
label: text,
|
|
@@ -3252,7 +3362,7 @@ var getAdditionalInfo = (additionalInfo) => {
|
|
|
3252
3362
|
}
|
|
3253
3363
|
);
|
|
3254
3364
|
}
|
|
3255
|
-
return /* @__PURE__ */ (0,
|
|
3365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.ListItem.AdditionalInfo, { children: additionalInfo == null ? void 0 : additionalInfo.text });
|
|
3256
3366
|
};
|
|
3257
3367
|
|
|
3258
3368
|
// ../renderers/src/NewListItem/shouldUseAvatar.ts
|
|
@@ -3262,13 +3372,13 @@ var shouldUseAvatar = (control, tags) => {
|
|
|
3262
3372
|
};
|
|
3263
3373
|
|
|
3264
3374
|
// ../renderers/src/NewListItem/NewDecisionRenderer.tsx
|
|
3265
|
-
var
|
|
3375
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3266
3376
|
var DecisionRenderer2 = {
|
|
3267
3377
|
canRenderType: "decision",
|
|
3268
|
-
render: (props) => /* @__PURE__ */ (0,
|
|
3378
|
+
render: (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList: renderDecisionList2 }))
|
|
3269
3379
|
};
|
|
3270
3380
|
var renderDecisionList2 = ({ options, control }) => {
|
|
3271
|
-
return /* @__PURE__ */ (0,
|
|
3381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: options.map((_a) => {
|
|
3272
3382
|
var _b = _a, { disabled, onClick } = _b, rest = __objRest(_b, ["disabled", "onClick"]);
|
|
3273
3383
|
const {
|
|
3274
3384
|
description,
|
|
@@ -3280,8 +3390,8 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3280
3390
|
supportingValues,
|
|
3281
3391
|
tags
|
|
3282
3392
|
} = rest;
|
|
3283
|
-
return /* @__PURE__ */ (0,
|
|
3284
|
-
|
|
3393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3394
|
+
import_components54.ListItem,
|
|
3285
3395
|
{
|
|
3286
3396
|
title: itemTitle,
|
|
3287
3397
|
subtitle: description,
|
|
@@ -3292,7 +3402,7 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3292
3402
|
media: getMedia(media, shouldUseAvatar(control, tags)),
|
|
3293
3403
|
prompt: getInlineAlert(inlineAlert),
|
|
3294
3404
|
additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
|
|
3295
|
-
control: href ? /* @__PURE__ */ (0,
|
|
3405
|
+
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
3406
|
},
|
|
3297
3407
|
JSON.stringify(rest)
|
|
3298
3408
|
);
|
|
@@ -3301,11 +3411,11 @@ var renderDecisionList2 = ({ options, control }) => {
|
|
|
3301
3411
|
var NewDecisionRenderer_default = DecisionRenderer2;
|
|
3302
3412
|
|
|
3303
3413
|
// ../renderers/src/NewListItem/NewListRenderer.tsx
|
|
3304
|
-
var
|
|
3414
|
+
var import_components56 = require("@transferwise/components");
|
|
3305
3415
|
|
|
3306
3416
|
// ../renderers/src/NewListItem/getCTAControl.tsx
|
|
3307
|
-
var
|
|
3308
|
-
var
|
|
3417
|
+
var import_components55 = require("@transferwise/components");
|
|
3418
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
3309
3419
|
var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
3310
3420
|
if (!callToAction) {
|
|
3311
3421
|
return void 0;
|
|
@@ -3313,8 +3423,8 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
3313
3423
|
const { accessibilityDescription, href, title, onClick } = callToAction;
|
|
3314
3424
|
const priority = ctaSecondary ? "secondary" : "secondary-neutral";
|
|
3315
3425
|
if (href) {
|
|
3316
|
-
return /* @__PURE__ */ (0,
|
|
3317
|
-
|
|
3426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3427
|
+
import_components55.ListItem.Button,
|
|
3318
3428
|
{
|
|
3319
3429
|
href,
|
|
3320
3430
|
partiallyInteractive: !fullyInteractive,
|
|
@@ -3324,8 +3434,8 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
3324
3434
|
}
|
|
3325
3435
|
);
|
|
3326
3436
|
}
|
|
3327
|
-
return /* @__PURE__ */ (0,
|
|
3328
|
-
|
|
3437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3438
|
+
import_components55.ListItem.Button,
|
|
3329
3439
|
{
|
|
3330
3440
|
"aria-description": accessibilityDescription,
|
|
3331
3441
|
partiallyInteractive: !fullyInteractive,
|
|
@@ -3337,11 +3447,11 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
|
|
|
3337
3447
|
};
|
|
3338
3448
|
|
|
3339
3449
|
// ../renderers/src/NewListItem/NewListRenderer.tsx
|
|
3340
|
-
var
|
|
3450
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
3341
3451
|
var ListRenderer2 = {
|
|
3342
3452
|
canRenderType: "list",
|
|
3343
|
-
render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ (0,
|
|
3344
|
-
/* @__PURE__ */ (0,
|
|
3453
|
+
render: ({ callToAction, control, margin, items, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: getMargin(margin), children: [
|
|
3454
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Header7, { title, callToAction }),
|
|
3345
3455
|
items.map((item) => {
|
|
3346
3456
|
var _a, _b;
|
|
3347
3457
|
const {
|
|
@@ -3358,8 +3468,8 @@ var ListRenderer2 = {
|
|
|
3358
3468
|
ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
|
|
3359
3469
|
fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
|
|
3360
3470
|
};
|
|
3361
|
-
return /* @__PURE__ */ (0,
|
|
3362
|
-
|
|
3471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
3472
|
+
import_components56.ListItem,
|
|
3363
3473
|
{
|
|
3364
3474
|
title: itemTitle,
|
|
3365
3475
|
subtitle: description,
|
|
@@ -3378,9 +3488,9 @@ var ListRenderer2 = {
|
|
|
3378
3488
|
var NewListRenderer_default = ListRenderer2;
|
|
3379
3489
|
|
|
3380
3490
|
// ../renderers/src/NewListItem/NewReviewRenderer.tsx
|
|
3381
|
-
var
|
|
3491
|
+
var import_components57 = require("@transferwise/components");
|
|
3382
3492
|
var import_icons4 = require("@transferwise/icons");
|
|
3383
|
-
var
|
|
3493
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
3384
3494
|
var IGNORED_CONTROLS = [
|
|
3385
3495
|
"horizontal",
|
|
3386
3496
|
"horizontal-end-aligned",
|
|
@@ -3390,8 +3500,8 @@ var IGNORED_CONTROLS = [
|
|
|
3390
3500
|
var ReviewRenderer2 = {
|
|
3391
3501
|
canRenderType: "review",
|
|
3392
3502
|
canRender: ({ control }) => control ? !IGNORED_CONTROLS.includes(control) : true,
|
|
3393
|
-
render: ({ callToAction, control, margin, fields, tags, title }) => /* @__PURE__ */ (0,
|
|
3394
|
-
/* @__PURE__ */ (0,
|
|
3503
|
+
render: ({ callToAction, control, margin, fields, tags, title }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: getMargin(margin), children: [
|
|
3504
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Header7, { title, callToAction }),
|
|
3395
3505
|
fields.map((field) => {
|
|
3396
3506
|
var _a, _b, _c;
|
|
3397
3507
|
const {
|
|
@@ -3408,8 +3518,8 @@ var ReviewRenderer2 = {
|
|
|
3408
3518
|
ctaSecondary: (_a = itemTags == null ? void 0 : itemTags.includes("cta-secondary")) != null ? _a : false,
|
|
3409
3519
|
fullyInteractive: (_b = (tags == null ? void 0 : tags.includes("fully-interactive")) && (additionalInfo == null ? void 0 : additionalInfo.onClick) == null) != null ? _b : false
|
|
3410
3520
|
};
|
|
3411
|
-
return /* @__PURE__ */ (0,
|
|
3412
|
-
|
|
3521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
3522
|
+
import_components57.ListItem,
|
|
3413
3523
|
{
|
|
3414
3524
|
title: value,
|
|
3415
3525
|
subtitle: label,
|
|
@@ -3428,27 +3538,27 @@ var getHelpControl = (help) => {
|
|
|
3428
3538
|
if (!help) {
|
|
3429
3539
|
return void 0;
|
|
3430
3540
|
}
|
|
3431
|
-
return /* @__PURE__ */ (0,
|
|
3541
|
+
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, {}) }) });
|
|
3432
3542
|
};
|
|
3433
3543
|
var NewReviewRenderer_default = ReviewRenderer2;
|
|
3434
3544
|
|
|
3435
3545
|
// ../renderers/src/NewListItem/NewStatusListRenderer.tsx
|
|
3436
|
-
var
|
|
3437
|
-
var
|
|
3546
|
+
var import_components58 = require("@transferwise/components");
|
|
3547
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
3438
3548
|
var NewStatusListRenderer = {
|
|
3439
3549
|
canRenderType: "status-list",
|
|
3440
|
-
render: ({ margin, items, title }) => /* @__PURE__ */ (0,
|
|
3441
|
-
title ? /* @__PURE__ */ (0,
|
|
3550
|
+
render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: getMargin(margin), children: [
|
|
3551
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_components58.Header, { title }) : null,
|
|
3442
3552
|
items.map((item) => {
|
|
3443
3553
|
const { callToAction, description, icon, status, title: itemTitle } = item;
|
|
3444
|
-
return /* @__PURE__ */ (0,
|
|
3445
|
-
|
|
3554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3555
|
+
import_components58.ListItem,
|
|
3446
3556
|
{
|
|
3447
3557
|
title: itemTitle,
|
|
3448
3558
|
subtitle: description,
|
|
3449
|
-
media: icon && "name" in icon ? /* @__PURE__ */ (0,
|
|
3450
|
-
additionalInfo: callToAction ? /* @__PURE__ */ (0,
|
|
3451
|
-
|
|
3559
|
+
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,
|
|
3560
|
+
additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3561
|
+
import_components58.ListItem.AdditionalInfo,
|
|
3452
3562
|
{
|
|
3453
3563
|
action: {
|
|
3454
3564
|
href: callToAction.href,
|
|
@@ -3477,30 +3587,30 @@ var mapStatus2 = (status) => {
|
|
|
3477
3587
|
var NewStatusListRenderer_default = NewStatusListRenderer;
|
|
3478
3588
|
|
|
3479
3589
|
// ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
|
|
3480
|
-
var
|
|
3590
|
+
var import_components59 = require("@transferwise/components");
|
|
3481
3591
|
|
|
3482
3592
|
// ../renderers/src/utils/isButtonPriority.ts
|
|
3483
3593
|
var validPriorities = ["primary", "secondary", "secondary-neutral", "tertiary"];
|
|
3484
3594
|
var isButtonPriority = (control) => validPriorities.includes(control);
|
|
3485
3595
|
|
|
3486
3596
|
// ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
|
|
3487
|
-
var
|
|
3488
|
-
var
|
|
3597
|
+
var import_react19 = require("react");
|
|
3598
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
3489
3599
|
var ButtonRendererV2 = {
|
|
3490
3600
|
canRenderType: "button",
|
|
3491
3601
|
render: ButtonComponent2
|
|
3492
3602
|
};
|
|
3493
3603
|
function ButtonComponent2(props) {
|
|
3494
3604
|
const { control, context, disabled, margin, title, size, stepLoadingState, onClick } = props;
|
|
3495
|
-
const [spinny, setSpinny] = (0,
|
|
3496
|
-
(0,
|
|
3605
|
+
const [spinny, setSpinny] = (0, import_react19.useState)(false);
|
|
3606
|
+
(0, import_react19.useEffect)(() => {
|
|
3497
3607
|
if (stepLoadingState === "idle") {
|
|
3498
3608
|
setSpinny(false);
|
|
3499
3609
|
}
|
|
3500
3610
|
}, [stepLoadingState]);
|
|
3501
3611
|
const loading = spinny && stepLoadingState !== "idle";
|
|
3502
|
-
return /* @__PURE__ */ (0,
|
|
3503
|
-
|
|
3612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
3613
|
+
import_components59.Button,
|
|
3504
3614
|
{
|
|
3505
3615
|
v2: true,
|
|
3506
3616
|
block: true,
|
|
@@ -3522,17 +3632,17 @@ var getSentiment2 = (context) => context === "negative" ? "negative" : "default"
|
|
|
3522
3632
|
var getPriority3 = (control) => control && isButtonPriority(control) ? control : "secondary";
|
|
3523
3633
|
|
|
3524
3634
|
// ../renderers/src/ProgressRenderer.tsx
|
|
3525
|
-
var
|
|
3526
|
-
var
|
|
3635
|
+
var import_components60 = require("@transferwise/components");
|
|
3636
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3527
3637
|
var ProgressRenderer = {
|
|
3528
3638
|
canRenderType: "progress",
|
|
3529
3639
|
render: ({ uid, title, help, progress, progressText, margin, description }) => {
|
|
3530
|
-
return /* @__PURE__ */ (0,
|
|
3531
|
-
|
|
3640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3641
|
+
import_components60.ProgressBar,
|
|
3532
3642
|
{
|
|
3533
3643
|
id: uid,
|
|
3534
3644
|
className: getMargin(margin),
|
|
3535
|
-
title: title && help ? /* @__PURE__ */ (0,
|
|
3645
|
+
title: title && help ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(LabelContentWithHelp, { text: title, help }) : title,
|
|
3536
3646
|
description,
|
|
3537
3647
|
progress: {
|
|
3538
3648
|
max: 1,
|
|
@@ -3575,6 +3685,7 @@ var getWiseRenderers = () => [
|
|
|
3575
3685
|
MarkdownRenderer_default,
|
|
3576
3686
|
ModalRenderer,
|
|
3577
3687
|
ModalLayoutRenderer_default,
|
|
3688
|
+
MoneyInputRenderer,
|
|
3578
3689
|
MultiSelectInputRenderer_default,
|
|
3579
3690
|
MultiUploadInputRenderer_default,
|
|
3580
3691
|
NumberInputRenderer_default,
|
|
@@ -3625,13 +3736,6 @@ var cs_default = {
|
|
|
3625
3736
|
"df.wise.ControlFeedback.type": "Nespr\xE1vn\xFD typ",
|
|
3626
3737
|
"df.wise.CopyFeedback.copy": "Zkop\xEDrov\xE1no do schr\xE1nky",
|
|
3627
3738
|
"df.wise.CopyFeedback.copyFailed": "Kop\xEDrov\xE1n\xED do schr\xE1nky se nezda\u0159ilo",
|
|
3628
|
-
"df.wise.Decision.all": "V\u0161e",
|
|
3629
|
-
"df.wise.Decision.currenciesWithAccountDetails": "M\u011Bny s detaily \xFA\u010Dtu",
|
|
3630
|
-
"df.wise.Decision.filterPlaceholder": "Pro vyhled\xE1v\xE1n\xED za\u010Dn\u011Bte ps\xE1t",
|
|
3631
|
-
"df.wise.Decision.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
|
|
3632
|
-
"df.wise.Decision.popular": "Popul\xE1rn\xED",
|
|
3633
|
-
"df.wise.Decision.recent": "Ned\xE1vn\xE9",
|
|
3634
|
-
"df.wise.Decision.results": "V\xFDsledky hled\xE1n\xED",
|
|
3635
3739
|
"df.wise.DynamicParagraph.copied": "Zkop\xEDrov\xE1no do schr\xE1nky",
|
|
3636
3740
|
"df.wise.DynamicParagraph.copy": "Kop\xEDrovat",
|
|
3637
3741
|
"df.wise.ErrorBoundary.errorAlert": "N\u011Bco se pokazilo.",
|
|
@@ -3646,7 +3750,14 @@ var cs_default = {
|
|
|
3646
3750
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Nahrajte {maxItems} nebo m\xE9n\u011B soubor\u016F.",
|
|
3647
3751
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Nahrajte pros\xEDm alespo\u0148 n\xE1sleduj\xEDc\xED po\u010Det soubor\u016F: {minItems}.",
|
|
3648
3752
|
"df.wise.PersistAsyncSchema.genericError": "N\u011Bco se pokazilo. Zkuste to pros\xEDm znovu.",
|
|
3649
|
-
"df.wise.SearchLayout.loading": "Na\u010D\xEDt\xE1n\xED..."
|
|
3753
|
+
"df.wise.SearchLayout.loading": "Na\u010D\xEDt\xE1n\xED...",
|
|
3754
|
+
"df.wise.filter.noResults": "\u017D\xE1dn\xE9 v\xFDsledky",
|
|
3755
|
+
"df.wise.filter.placeholder": "Pro vyhled\xE1v\xE1n\xED za\u010Dn\u011Bte ps\xE1t",
|
|
3756
|
+
"df.wise.filter.results": "V\xFDsledky vyhled\xE1v\xE1n\xED",
|
|
3757
|
+
"df.wise.group.all": "V\u0161e",
|
|
3758
|
+
"df.wise.group.currencies-with-account-details": "M\u011Bny s detaily \xFA\u010Dtu",
|
|
3759
|
+
"df.wise.group.popular": "Popul\xE1rn\xED",
|
|
3760
|
+
"df.wise.group.recent": "Ned\xE1vn\xE9"
|
|
3650
3761
|
};
|
|
3651
3762
|
|
|
3652
3763
|
// src/i18n/de.json
|
|
@@ -3670,13 +3781,6 @@ var de_default = {
|
|
|
3670
3781
|
"df.wise.ControlFeedback.type": "Falscher Typ",
|
|
3671
3782
|
"df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
|
|
3672
3783
|
"df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
|
|
3673
|
-
"df.wise.Decision.all": "Alle",
|
|
3674
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Guthaben mit Bankverbindung",
|
|
3675
|
-
"df.wise.Decision.filterPlaceholder": "Gib etwas ein, um die Suche zu beginnen",
|
|
3676
|
-
"df.wise.Decision.noResults": "Keine Ergebnisse",
|
|
3677
|
-
"df.wise.Decision.popular": "Beliebt",
|
|
3678
|
-
"df.wise.Decision.recent": "Neu",
|
|
3679
|
-
"df.wise.Decision.results": "Suchergebnisse",
|
|
3680
3784
|
"df.wise.DynamicParagraph.copied": "In Zwischenablage kopiert",
|
|
3681
3785
|
"df.wise.DynamicParagraph.copy": "Kopieren",
|
|
3682
3786
|
"df.wise.ErrorBoundary.errorAlert": "Da ist etwas schiefgegangen.",
|
|
@@ -3691,7 +3795,14 @@ var de_default = {
|
|
|
3691
3795
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Bitte lade {maxItems} oder weniger Dateien hoch.",
|
|
3692
3796
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.",
|
|
3693
3797
|
"df.wise.PersistAsyncSchema.genericError": "Da ist etwas schiefgegangen. Versuche es bitte nochmal.",
|
|
3694
|
-
"df.wise.SearchLayout.loading": "L\xE4dt..."
|
|
3798
|
+
"df.wise.SearchLayout.loading": "L\xE4dt...",
|
|
3799
|
+
"df.wise.filter.noResults": "Keine Ergebnisse",
|
|
3800
|
+
"df.wise.filter.placeholder": "Gib etwas ein, um die Suche zu beginnen",
|
|
3801
|
+
"df.wise.filter.results": "Suchergebnisse",
|
|
3802
|
+
"df.wise.group.all": "Alle",
|
|
3803
|
+
"df.wise.group.currencies-with-account-details": "Guthaben mit Bankverbindung",
|
|
3804
|
+
"df.wise.group.popular": "Beliebt",
|
|
3805
|
+
"df.wise.group.recent": "Neu"
|
|
3695
3806
|
};
|
|
3696
3807
|
|
|
3697
3808
|
// src/i18n/en.json
|
|
@@ -3715,13 +3826,6 @@ var en_default = {
|
|
|
3715
3826
|
"df.wise.ControlFeedback.type": "Incorrect type",
|
|
3716
3827
|
"df.wise.CopyFeedback.copy": "Copied to clipboard",
|
|
3717
3828
|
"df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
|
|
3718
|
-
"df.wise.Decision.all": "All",
|
|
3719
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Currencies with account details",
|
|
3720
|
-
"df.wise.Decision.filterPlaceholder": "Start typing to search",
|
|
3721
|
-
"df.wise.Decision.noResults": "No results",
|
|
3722
|
-
"df.wise.Decision.popular": "Popular",
|
|
3723
|
-
"df.wise.Decision.recent": "Recent",
|
|
3724
|
-
"df.wise.Decision.results": "Search results",
|
|
3725
3829
|
"df.wise.DynamicParagraph.copied": "Copied to clipboard",
|
|
3726
3830
|
"df.wise.DynamicParagraph.copy": "Copy",
|
|
3727
3831
|
"df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
|
|
@@ -3736,7 +3840,14 @@ var en_default = {
|
|
|
3736
3840
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.",
|
|
3737
3841
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).",
|
|
3738
3842
|
"df.wise.PersistAsyncSchema.genericError": "Something went wrong, please try again.",
|
|
3739
|
-
"df.wise.SearchLayout.loading": "Loading..."
|
|
3843
|
+
"df.wise.SearchLayout.loading": "Loading...",
|
|
3844
|
+
"df.wise.filter.noResults": "No results",
|
|
3845
|
+
"df.wise.filter.placeholder": "Start typing to search",
|
|
3846
|
+
"df.wise.filter.results": "Search results",
|
|
3847
|
+
"df.wise.group.all": "All",
|
|
3848
|
+
"df.wise.group.currencies-with-account-details": "Currencies with account details",
|
|
3849
|
+
"df.wise.group.popular": "Popular",
|
|
3850
|
+
"df.wise.group.recent": "Recent"
|
|
3740
3851
|
};
|
|
3741
3852
|
|
|
3742
3853
|
// src/i18n/es.json
|
|
@@ -3760,13 +3871,6 @@ var es_default = {
|
|
|
3760
3871
|
"df.wise.ControlFeedback.type": "Tipo incorrecto",
|
|
3761
3872
|
"df.wise.CopyFeedback.copy": "Copiado al portapapeles",
|
|
3762
3873
|
"df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
|
|
3763
|
-
"df.wise.Decision.all": "Todas",
|
|
3764
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Divisas con datos de cuenta",
|
|
3765
|
-
"df.wise.Decision.filterPlaceholder": "Empieza a escribir para buscar",
|
|
3766
|
-
"df.wise.Decision.noResults": "No hay resultados",
|
|
3767
|
-
"df.wise.Decision.popular": "Populares",
|
|
3768
|
-
"df.wise.Decision.recent": "Recientes",
|
|
3769
|
-
"df.wise.Decision.results": "Resultados de b\xFAsqueda",
|
|
3770
3874
|
"df.wise.DynamicParagraph.copied": "Copiado al portapapeles",
|
|
3771
3875
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
3772
3876
|
"df.wise.ErrorBoundary.errorAlert": "Ha habido un error.",
|
|
@@ -3781,7 +3885,14 @@ var es_default = {
|
|
|
3781
3885
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Sube {maxItems} o menos archivos.",
|
|
3782
3886
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).",
|
|
3783
3887
|
"df.wise.PersistAsyncSchema.genericError": "Ha habido un error. Int\xE9ntalo de nuevo.",
|
|
3784
|
-
"df.wise.SearchLayout.loading": "Cargando..."
|
|
3888
|
+
"df.wise.SearchLayout.loading": "Cargando...",
|
|
3889
|
+
"df.wise.filter.noResults": "No hay resultados",
|
|
3890
|
+
"df.wise.filter.placeholder": "Empieza a escribir para buscar",
|
|
3891
|
+
"df.wise.filter.results": "Resultados de b\xFAsqueda",
|
|
3892
|
+
"df.wise.group.all": "Todas",
|
|
3893
|
+
"df.wise.group.currencies-with-account-details": "Divisas con datos de cuenta",
|
|
3894
|
+
"df.wise.group.popular": "Populares",
|
|
3895
|
+
"df.wise.group.recent": "Recientes"
|
|
3785
3896
|
};
|
|
3786
3897
|
|
|
3787
3898
|
// src/i18n/fr.json
|
|
@@ -3805,13 +3916,6 @@ var fr_default = {
|
|
|
3805
3916
|
"df.wise.ControlFeedback.type": "Type incorrect",
|
|
3806
3917
|
"df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
|
|
3807
3918
|
"df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
|
|
3808
|
-
"df.wise.Decision.all": "Toutes",
|
|
3809
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Devises avec num\xE9ros de compte",
|
|
3810
|
-
"df.wise.Decision.filterPlaceholder": "Commencez \xE0 \xE9crire pour effectuer une recherche",
|
|
3811
|
-
"df.wise.Decision.noResults": "Aucun r\xE9sultat",
|
|
3812
|
-
"df.wise.Decision.popular": "Populaires",
|
|
3813
|
-
"df.wise.Decision.recent": "R\xE9cents",
|
|
3814
|
-
"df.wise.Decision.results": "R\xE9sultats de recherche",
|
|
3815
3919
|
"df.wise.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier",
|
|
3816
3920
|
"df.wise.DynamicParagraph.copy": "Copier",
|
|
3817
3921
|
"df.wise.ErrorBoundary.errorAlert": "Une erreur s'est produite.",
|
|
@@ -3826,7 +3930,14 @@ var fr_default = {
|
|
|
3826
3930
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Veuillez t\xE9l\xE9charger {maxItems} fichiers ou moins.",
|
|
3827
3931
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).",
|
|
3828
3932
|
"df.wise.PersistAsyncSchema.genericError": "Une erreur s'est produite, veuillez r\xE9essayer.",
|
|
3829
|
-
"df.wise.SearchLayout.loading": "Chargement..."
|
|
3933
|
+
"df.wise.SearchLayout.loading": "Chargement...",
|
|
3934
|
+
"df.wise.filter.noResults": "Aucun r\xE9sultat",
|
|
3935
|
+
"df.wise.filter.placeholder": "Commencez \xE0 \xE9crire pour effectuer une recherche",
|
|
3936
|
+
"df.wise.filter.results": "R\xE9sultats de recherche",
|
|
3937
|
+
"df.wise.group.all": "Toutes",
|
|
3938
|
+
"df.wise.group.currencies-with-account-details": "Devises avec num\xE9ros de compte",
|
|
3939
|
+
"df.wise.group.popular": "Populaires",
|
|
3940
|
+
"df.wise.group.recent": "R\xE9cents"
|
|
3830
3941
|
};
|
|
3831
3942
|
|
|
3832
3943
|
// src/i18n/hu.json
|
|
@@ -3850,13 +3961,6 @@ var hu_default = {
|
|
|
3850
3961
|
"df.wise.ControlFeedback.type": "Helytelen t\xEDpus",
|
|
3851
3962
|
"df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
|
|
3852
3963
|
"df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
|
|
3853
|
-
"df.wise.Decision.all": "\xD6sszes",
|
|
3854
|
-
"df.wise.Decision.currenciesWithAccountDetails": "P\xE9nznemek sz\xE1mlaadatokkal",
|
|
3855
|
-
"df.wise.Decision.filterPlaceholder": "Kezdj el g\xE9pelni a keres\xE9shez",
|
|
3856
|
-
"df.wise.Decision.noResults": "Nincs tal\xE1lat",
|
|
3857
|
-
"df.wise.Decision.popular": "N\xE9pszer\u0171",
|
|
3858
|
-
"df.wise.Decision.recent": "Legut\xF3bbi",
|
|
3859
|
-
"df.wise.Decision.results": "Keres\xE9si eredm\xE9nyek",
|
|
3860
3964
|
"df.wise.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva",
|
|
3861
3965
|
"df.wise.DynamicParagraph.copy": "M\xE1sol\xE1s",
|
|
3862
3966
|
"df.wise.ErrorBoundary.errorAlert": "Valami hiba t\xF6rt\xE9nt.",
|
|
@@ -3871,7 +3975,14 @@ var hu_default = {
|
|
|
3871
3975
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.",
|
|
3872
3976
|
"df.wise.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.",
|
|
3873
3977
|
"df.wise.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra.",
|
|
3874
|
-
"df.wise.SearchLayout.loading": "Bet\xF6lt\xE9s..."
|
|
3978
|
+
"df.wise.SearchLayout.loading": "Bet\xF6lt\xE9s...",
|
|
3979
|
+
"df.wise.filter.noResults": "Nincs tal\xE1lat",
|
|
3980
|
+
"df.wise.filter.placeholder": "Kezdj el g\xE9pelni a keres\xE9shez",
|
|
3981
|
+
"df.wise.filter.results": "Keres\xE9si eredm\xE9nyek",
|
|
3982
|
+
"df.wise.group.all": "\xD6sszes",
|
|
3983
|
+
"df.wise.group.currencies-with-account-details": "P\xE9nznemek sz\xE1mlaadatokkal",
|
|
3984
|
+
"df.wise.group.popular": "N\xE9pszer\u0171",
|
|
3985
|
+
"df.wise.group.recent": "Legut\xF3bbi"
|
|
3875
3986
|
};
|
|
3876
3987
|
|
|
3877
3988
|
// src/i18n/id.json
|
|
@@ -3895,13 +4006,6 @@ var id_default = {
|
|
|
3895
4006
|
"df.wise.ControlFeedback.type": "Tipe salah",
|
|
3896
4007
|
"df.wise.CopyFeedback.copy": "Disalin ke clipboard",
|
|
3897
4008
|
"df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
|
|
3898
|
-
"df.wise.Decision.all": "Semua",
|
|
3899
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Mata uang dengan detail rekening",
|
|
3900
|
-
"df.wise.Decision.filterPlaceholder": "Mulai mengetik untuk mencari",
|
|
3901
|
-
"df.wise.Decision.noResults": "Tidak ada hasil",
|
|
3902
|
-
"df.wise.Decision.popular": "Populer",
|
|
3903
|
-
"df.wise.Decision.recent": "Terbaru",
|
|
3904
|
-
"df.wise.Decision.results": "Hasil pencarian",
|
|
3905
4009
|
"df.wise.DynamicParagraph.copied": "Disalin ke clipboard",
|
|
3906
4010
|
"df.wise.DynamicParagraph.copy": "Salin",
|
|
3907
4011
|
"df.wise.ErrorBoundary.errorAlert": "Terjadi kesalahan.",
|
|
@@ -3916,7 +4020,14 @@ var id_default = {
|
|
|
3916
4020
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Harap unggah {maxItems} file atau kurang.",
|
|
3917
4021
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.",
|
|
3918
4022
|
"df.wise.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi.",
|
|
3919
|
-
"df.wise.SearchLayout.loading": "Memuat ..."
|
|
4023
|
+
"df.wise.SearchLayout.loading": "Memuat ...",
|
|
4024
|
+
"df.wise.filter.noResults": "Tidak ada hasil",
|
|
4025
|
+
"df.wise.filter.placeholder": "Mulai mengetik untuk mencari",
|
|
4026
|
+
"df.wise.filter.results": "Hasil pencarian",
|
|
4027
|
+
"df.wise.group.all": "Semua",
|
|
4028
|
+
"df.wise.group.currencies-with-account-details": "Mata uang dengan detail rekening",
|
|
4029
|
+
"df.wise.group.popular": "Populer",
|
|
4030
|
+
"df.wise.group.recent": "Terbaru"
|
|
3920
4031
|
};
|
|
3921
4032
|
|
|
3922
4033
|
// src/i18n/it.json
|
|
@@ -3940,13 +4051,6 @@ var it_default = {
|
|
|
3940
4051
|
"df.wise.ControlFeedback.type": "Tipo errato",
|
|
3941
4052
|
"df.wise.CopyFeedback.copy": "Copiato negli appunti",
|
|
3942
4053
|
"df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
|
|
3943
|
-
"df.wise.Decision.all": "Tutte",
|
|
3944
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Valute con estremi del conto",
|
|
3945
|
-
"df.wise.Decision.filterPlaceholder": "Inizia a digitare per cercare",
|
|
3946
|
-
"df.wise.Decision.noResults": "Nessun risultato",
|
|
3947
|
-
"df.wise.Decision.popular": "Popolari",
|
|
3948
|
-
"df.wise.Decision.recent": "Recenti",
|
|
3949
|
-
"df.wise.Decision.results": "Risultati della ricerca",
|
|
3950
4054
|
"df.wise.DynamicParagraph.copied": "Copiato negli appunti",
|
|
3951
4055
|
"df.wise.DynamicParagraph.copy": "Copia",
|
|
3952
4056
|
"df.wise.ErrorBoundary.errorAlert": "Qualcosa non ha funzionato.",
|
|
@@ -3961,7 +4065,14 @@ var it_default = {
|
|
|
3961
4065
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Carica al massimo {maxItems} file.",
|
|
3962
4066
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.",
|
|
3963
4067
|
"df.wise.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova.",
|
|
3964
|
-
"df.wise.SearchLayout.loading": "Caricamento..."
|
|
4068
|
+
"df.wise.SearchLayout.loading": "Caricamento...",
|
|
4069
|
+
"df.wise.filter.noResults": "Nessun risultato",
|
|
4070
|
+
"df.wise.filter.placeholder": "Inizia a digitare per cercare",
|
|
4071
|
+
"df.wise.filter.results": "Risultati della ricerca",
|
|
4072
|
+
"df.wise.group.all": "Tutti",
|
|
4073
|
+
"df.wise.group.currencies-with-account-details": "Valute con estremi del conto",
|
|
4074
|
+
"df.wise.group.popular": "Popolari",
|
|
4075
|
+
"df.wise.group.recent": "Recenti"
|
|
3965
4076
|
};
|
|
3966
4077
|
|
|
3967
4078
|
// src/i18n/ja.json
|
|
@@ -3985,13 +4096,6 @@ var ja_default = {
|
|
|
3985
4096
|
"df.wise.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7",
|
|
3986
4097
|
"df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
3987
4098
|
"df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
3988
|
-
"df.wise.Decision.all": "\u3059\u3079\u3066",
|
|
3989
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u53E3\u5EA7\u60C5\u5831\u3092\u53D6\u5F97\u3067\u304D\u308B\u901A\u8CA8",
|
|
3990
|
-
"df.wise.Decision.filterPlaceholder": "\u691C\u7D22\u8A9E\u53E5\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
3991
|
-
"df.wise.Decision.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
3992
|
-
"df.wise.Decision.popular": "\u4EBA\u6C17",
|
|
3993
|
-
"df.wise.Decision.recent": "\u6700\u8FD1",
|
|
3994
|
-
"df.wise.Decision.results": "\u691C\u7D22\u7D50\u679C",
|
|
3995
4099
|
"df.wise.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
3996
4100
|
"df.wise.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B",
|
|
3997
4101
|
"df.wise.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",
|
|
@@ -4006,7 +4110,14 @@ var ja_default = {
|
|
|
4006
4110
|
"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",
|
|
4007
4111
|
"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",
|
|
4008
4112
|
"df.wise.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
4009
|
-
"df.wise.SearchLayout.loading": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"
|
|
4113
|
+
"df.wise.SearchLayout.loading": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
4114
|
+
"df.wise.filter.noResults": "\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
4115
|
+
"df.wise.filter.placeholder": "\u691C\u7D22\u8A9E\u53E5\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
4116
|
+
"df.wise.filter.results": "\u691C\u7D22\u7D50\u679C",
|
|
4117
|
+
"df.wise.group.all": "\u3059\u3079\u3066",
|
|
4118
|
+
"df.wise.group.currencies-with-account-details": "\u53E3\u5EA7\u60C5\u5831\u3092\u53D6\u5F97\u3067\u304D\u308B\u901A\u8CA8",
|
|
4119
|
+
"df.wise.group.popular": "\u4EBA\u6C17",
|
|
4120
|
+
"df.wise.group.recent": "\u6700\u8FD1"
|
|
4010
4121
|
};
|
|
4011
4122
|
|
|
4012
4123
|
// src/i18n/nl.json
|
|
@@ -4030,13 +4141,6 @@ var nl_default = {
|
|
|
4030
4141
|
"df.wise.ControlFeedback.type": "Onjuist type",
|
|
4031
4142
|
"df.wise.CopyFeedback.copy": "Naar klembord gekopieerd",
|
|
4032
4143
|
"df.wise.CopyFeedback.copyFailed": "Naar klembord kopi\xEBren mislukt",
|
|
4033
|
-
"df.wise.Decision.all": "Alles",
|
|
4034
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Valuta met rekeninggegevens",
|
|
4035
|
-
"df.wise.Decision.filterPlaceholder": "Begin met typen om te zoeken",
|
|
4036
|
-
"df.wise.Decision.noResults": "Geen resultaten",
|
|
4037
|
-
"df.wise.Decision.popular": "Populair",
|
|
4038
|
-
"df.wise.Decision.recent": "Recent",
|
|
4039
|
-
"df.wise.Decision.results": "Zoekresultaten",
|
|
4040
4144
|
"df.wise.DynamicParagraph.copied": "Naar klembord gekopieerd",
|
|
4041
4145
|
"df.wise.DynamicParagraph.copy": "Kopi\xEBren",
|
|
4042
4146
|
"df.wise.ErrorBoundary.errorAlert": "Er is iets misgegaan.",
|
|
@@ -4051,7 +4155,14 @@ var nl_default = {
|
|
|
4051
4155
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Upload {maxItems} of minder bestanden.",
|
|
4052
4156
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Upload minimaal {minItems} bestand(en).",
|
|
4053
4157
|
"df.wise.PersistAsyncSchema.genericError": "Er is iets misgegaan, probeer het opnieuw.",
|
|
4054
|
-
"df.wise.SearchLayout.loading": "Laden..."
|
|
4158
|
+
"df.wise.SearchLayout.loading": "Laden...",
|
|
4159
|
+
"df.wise.filter.noResults": "Geen resultaten",
|
|
4160
|
+
"df.wise.filter.placeholder": "Begin met typen om te zoeken",
|
|
4161
|
+
"df.wise.filter.results": "Zoekresultaten",
|
|
4162
|
+
"df.wise.group.all": "Alles",
|
|
4163
|
+
"df.wise.group.currencies-with-account-details": "Valuta's met rekeninggegevens",
|
|
4164
|
+
"df.wise.group.popular": "Populair",
|
|
4165
|
+
"df.wise.group.recent": "Recent"
|
|
4055
4166
|
};
|
|
4056
4167
|
|
|
4057
4168
|
// src/i18n/pl.json
|
|
@@ -4075,13 +4186,6 @@ var pl_default = {
|
|
|
4075
4186
|
"df.wise.ControlFeedback.type": "Nieprawid\u0142owy typ",
|
|
4076
4187
|
"df.wise.CopyFeedback.copy": "Skopiowano do schowka",
|
|
4077
4188
|
"df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
|
|
4078
|
-
"df.wise.Decision.all": "Wszystkie",
|
|
4079
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Waluty z danymi bankowymi",
|
|
4080
|
-
"df.wise.Decision.filterPlaceholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
|
|
4081
|
-
"df.wise.Decision.noResults": "Brak wynik\xF3w",
|
|
4082
|
-
"df.wise.Decision.popular": "Popularne",
|
|
4083
|
-
"df.wise.Decision.recent": "Ostatnie",
|
|
4084
|
-
"df.wise.Decision.results": "Wyniki wyszukiwania",
|
|
4085
4189
|
"df.wise.DynamicParagraph.copied": "Skopiowano do schowka",
|
|
4086
4190
|
"df.wise.DynamicParagraph.copy": "Kopiuj",
|
|
4087
4191
|
"df.wise.ErrorBoundary.errorAlert": "Co\u015B posz\u0142o nie tak.",
|
|
@@ -4096,7 +4200,14 @@ var pl_default = {
|
|
|
4096
4200
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Prze\u015Blij do {maxItems} plik\xF3w.",
|
|
4097
4201
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.",
|
|
4098
4202
|
"df.wise.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, prosimy spr\xF3bowa\u0107 ponownie.",
|
|
4099
|
-
"df.wise.SearchLayout.loading": "\u0141adowanie..."
|
|
4203
|
+
"df.wise.SearchLayout.loading": "\u0141adowanie...",
|
|
4204
|
+
"df.wise.filter.noResults": "Brak wynik\xF3w",
|
|
4205
|
+
"df.wise.filter.placeholder": "Zacznij pisa\u0107, \u017Ceby wyszuka\u0107",
|
|
4206
|
+
"df.wise.filter.results": "Wyniki wyszukiwania",
|
|
4207
|
+
"df.wise.group.all": "Wszystkie",
|
|
4208
|
+
"df.wise.group.currencies-with-account-details": "Waluty z danymi bankowymi",
|
|
4209
|
+
"df.wise.group.popular": "Popularne",
|
|
4210
|
+
"df.wise.group.recent": "Ostatnie"
|
|
4100
4211
|
};
|
|
4101
4212
|
|
|
4102
4213
|
// src/i18n/pt.json
|
|
@@ -4120,13 +4231,6 @@ var pt_default = {
|
|
|
4120
4231
|
"df.wise.ControlFeedback.type": "Tipo incorreto",
|
|
4121
4232
|
"df.wise.CopyFeedback.copy": "Copiado",
|
|
4122
4233
|
"df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
|
|
4123
|
-
"df.wise.Decision.all": "Todos",
|
|
4124
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Moedas com dados de conta",
|
|
4125
|
-
"df.wise.Decision.filterPlaceholder": "Comece a digitar para pesquisar",
|
|
4126
|
-
"df.wise.Decision.noResults": "Nenhum resultado",
|
|
4127
|
-
"df.wise.Decision.popular": "Populares",
|
|
4128
|
-
"df.wise.Decision.recent": "Recente",
|
|
4129
|
-
"df.wise.Decision.results": "Resultados da busca",
|
|
4130
4234
|
"df.wise.DynamicParagraph.copied": "Copiado",
|
|
4131
4235
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
4132
4236
|
"df.wise.ErrorBoundary.errorAlert": "Algo deu errado.",
|
|
@@ -4141,7 +4245,14 @@ var pt_default = {
|
|
|
4141
4245
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Por favor, envie {maxItems} ou menos arquivos.",
|
|
4142
4246
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).",
|
|
4143
4247
|
"df.wise.PersistAsyncSchema.genericError": "Ocorreu um erro. Por favor, tente novamente.",
|
|
4144
|
-
"df.wise.SearchLayout.loading": "Carregando..."
|
|
4248
|
+
"df.wise.SearchLayout.loading": "Carregando...",
|
|
4249
|
+
"df.wise.filter.noResults": "Nenhum resultado",
|
|
4250
|
+
"df.wise.filter.placeholder": "Comece a digitar para pesquisar",
|
|
4251
|
+
"df.wise.filter.results": "Resultados da busca",
|
|
4252
|
+
"df.wise.group.all": "Todos",
|
|
4253
|
+
"df.wise.group.currencies-with-account-details": "Moedas com dados de conta",
|
|
4254
|
+
"df.wise.group.popular": "Populares",
|
|
4255
|
+
"df.wise.group.recent": "Recente"
|
|
4145
4256
|
};
|
|
4146
4257
|
|
|
4147
4258
|
// src/i18n/ro.json
|
|
@@ -4165,13 +4276,6 @@ var ro_default = {
|
|
|
4165
4276
|
"df.wise.ControlFeedback.type": "Tip incorect",
|
|
4166
4277
|
"df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
|
|
4167
4278
|
"df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
|
|
4168
|
-
"df.wise.Decision.all": "Toate",
|
|
4169
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Monede cu detalii de cont",
|
|
4170
|
-
"df.wise.Decision.filterPlaceholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
|
|
4171
|
-
"df.wise.Decision.noResults": "Niciun rezultat",
|
|
4172
|
-
"df.wise.Decision.popular": "Populare",
|
|
4173
|
-
"df.wise.Decision.recent": "Recente",
|
|
4174
|
-
"df.wise.Decision.results": "Rezultatele c\u0103ut\u0103rii",
|
|
4175
4279
|
"df.wise.DynamicParagraph.copied": "Copiat \xEEn clipboard",
|
|
4176
4280
|
"df.wise.DynamicParagraph.copy": "Copiaz\u0103",
|
|
4177
4281
|
"df.wise.ErrorBoundary.errorAlert": "Ceva nu a mers bine.",
|
|
@@ -4186,7 +4290,14 @@ var ro_default = {
|
|
|
4186
4290
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "Te rug\u0103m s\u0103 \xEEncarci {maxItems} fi\u0219iere sau mai pu\u021Bine.",
|
|
4187
4291
|
"df.wise.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).",
|
|
4188
4292
|
"df.wise.PersistAsyncSchema.genericError": "Ceva nu a mers bine, te rug\u0103m s\u0103 \xEEncerci din nou.",
|
|
4189
|
-
"df.wise.SearchLayout.loading": "Se \xEEncarc\u0103..."
|
|
4293
|
+
"df.wise.SearchLayout.loading": "Se \xEEncarc\u0103...",
|
|
4294
|
+
"df.wise.filter.noResults": "Niciun rezultat",
|
|
4295
|
+
"df.wise.filter.placeholder": "\xCEncepe s\u0103 tastezi pentru a c\u0103uta",
|
|
4296
|
+
"df.wise.filter.results": "Rezultatele c\u0103ut\u0103rii",
|
|
4297
|
+
"df.wise.group.all": "Toate",
|
|
4298
|
+
"df.wise.group.currencies-with-account-details": "Monede cu detalii de cont",
|
|
4299
|
+
"df.wise.group.popular": "Populare",
|
|
4300
|
+
"df.wise.group.recent": "Recente"
|
|
4190
4301
|
};
|
|
4191
4302
|
|
|
4192
4303
|
// src/i18n/ru.json
|
|
@@ -4210,13 +4321,6 @@ var ru_default = {
|
|
|
4210
4321
|
"df.wise.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F",
|
|
4211
4322
|
"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",
|
|
4212
4323
|
"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",
|
|
4213
|
-
"df.wise.Decision.all": "\u0412\u0441\u0435",
|
|
4214
|
-
"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",
|
|
4215
|
-
"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",
|
|
4216
|
-
"df.wise.Decision.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
|
|
4217
|
-
"df.wise.Decision.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
|
|
4218
|
-
"df.wise.Decision.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435",
|
|
4219
|
-
"df.wise.Decision.results": "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",
|
|
4220
4324
|
"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",
|
|
4221
4325
|
"df.wise.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
4222
4326
|
"df.wise.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",
|
|
@@ -4231,7 +4335,14 @@ var ru_default = {
|
|
|
4231
4335
|
"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.",
|
|
4232
4336
|
"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).",
|
|
4233
4337
|
"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.",
|
|
4234
|
-
"df.wise.SearchLayout.loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430..."
|
|
4338
|
+
"df.wise.SearchLayout.loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...",
|
|
4339
|
+
"df.wise.filter.noResults": "\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432",
|
|
4340
|
+
"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",
|
|
4341
|
+
"df.wise.filter.results": "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",
|
|
4342
|
+
"df.wise.group.all": "\u0412\u0441\u0435",
|
|
4343
|
+
"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",
|
|
4344
|
+
"df.wise.group.popular": "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
|
|
4345
|
+
"df.wise.group.recent": "\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435"
|
|
4235
4346
|
};
|
|
4236
4347
|
|
|
4237
4348
|
// src/i18n/th.json
|
|
@@ -4255,13 +4366,6 @@ var th_default = {
|
|
|
4255
4366
|
"df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
|
|
4256
4367
|
"df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
4257
4368
|
"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",
|
|
4258
|
-
"df.wise.Decision.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
4259
|
-
"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",
|
|
4260
|
-
"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",
|
|
4261
|
-
"df.wise.Decision.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
4262
|
-
"df.wise.Decision.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
|
|
4263
|
-
"df.wise.Decision.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14",
|
|
4264
|
-
"df.wise.Decision.results": "\u0E1C\u0E25\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
4265
4369
|
"df.wise.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
4266
4370
|
"df.wise.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
4267
4371
|
"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",
|
|
@@ -4276,7 +4380,14 @@ var th_default = {
|
|
|
4276
4380
|
"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",
|
|
4277
4381
|
"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",
|
|
4278
4382
|
"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",
|
|
4279
|
-
"df.wise.SearchLayout.loading": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14..."
|
|
4383
|
+
"df.wise.SearchLayout.loading": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14...",
|
|
4384
|
+
"df.wise.filter.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
4385
|
+
"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",
|
|
4386
|
+
"df.wise.filter.results": "\u0E1C\u0E25\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
4387
|
+
"df.wise.group.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
4388
|
+
"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",
|
|
4389
|
+
"df.wise.group.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
|
|
4390
|
+
"df.wise.group.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14"
|
|
4280
4391
|
};
|
|
4281
4392
|
|
|
4282
4393
|
// src/i18n/tr.json
|
|
@@ -4300,13 +4411,6 @@ var tr_default = {
|
|
|
4300
4411
|
"df.wise.ControlFeedback.type": "Ge\xE7ersiz se\xE7im",
|
|
4301
4412
|
"df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
|
|
4302
4413
|
"df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
|
|
4303
|
-
"df.wise.Decision.all": "T\xFCm\xFC",
|
|
4304
|
-
"df.wise.Decision.currenciesWithAccountDetails": "Hesap bilgileri olan bakiyeler",
|
|
4305
|
-
"df.wise.Decision.filterPlaceholder": "Aramak i\xE7in yazmaya ba\u015Flay\u0131n",
|
|
4306
|
-
"df.wise.Decision.noResults": "Sonu\xE7 yok",
|
|
4307
|
-
"df.wise.Decision.popular": "Pop\xFCler",
|
|
4308
|
-
"df.wise.Decision.recent": "Yak\u0131n zamanl\u0131",
|
|
4309
|
-
"df.wise.Decision.results": "Arama sonu\xE7lar\u0131",
|
|
4310
4414
|
"df.wise.DynamicParagraph.copied": "Panoya kopyaland\u0131",
|
|
4311
4415
|
"df.wise.DynamicParagraph.copy": "Kopyala",
|
|
4312
4416
|
"df.wise.ErrorBoundary.errorAlert": "Bir sorun olu\u015Ftu.",
|
|
@@ -4321,7 +4425,14 @@ var tr_default = {
|
|
|
4321
4425
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az dosya y\xFCkleyin.",
|
|
4322
4426
|
"df.wise.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.",
|
|
4323
4427
|
"df.wise.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin.",
|
|
4324
|
-
"df.wise.SearchLayout.loading": "Y\xFCkleniyor..."
|
|
4428
|
+
"df.wise.SearchLayout.loading": "Y\xFCkleniyor...",
|
|
4429
|
+
"df.wise.filter.noResults": "Sonu\xE7 yok",
|
|
4430
|
+
"df.wise.filter.placeholder": "Aramak i\xE7in yazmaya ba\u015Flay\u0131n",
|
|
4431
|
+
"df.wise.filter.results": "Arama sonu\xE7lar\u0131",
|
|
4432
|
+
"df.wise.group.all": "T\xFCm\xFC",
|
|
4433
|
+
"df.wise.group.currencies-with-account-details": "Hesap bilgileri olan bakiyeler",
|
|
4434
|
+
"df.wise.group.popular": "Pop\xFCler",
|
|
4435
|
+
"df.wise.group.recent": "Yak\u0131n zamanl\u0131"
|
|
4325
4436
|
};
|
|
4326
4437
|
|
|
4327
4438
|
// src/i18n/zh_CN.json
|
|
@@ -4345,13 +4456,6 @@ var zh_CN_default = {
|
|
|
4345
4456
|
"df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
|
|
4346
4457
|
"df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
4347
4458
|
"df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
|
|
4348
|
-
"df.wise.Decision.all": "\u5168\u90E8",
|
|
4349
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u5E26\u6709\u8D26\u6237\u8BE6\u7EC6\u4FE1\u606F\u7684\u8D27\u5E01",
|
|
4350
|
-
"df.wise.Decision.filterPlaceholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
|
|
4351
|
-
"df.wise.Decision.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
4352
|
-
"df.wise.Decision.popular": "\u70ED\u95E8",
|
|
4353
|
-
"df.wise.Decision.recent": "\u6700\u8FD1",
|
|
4354
|
-
"df.wise.Decision.results": "\u641C\u7D22\u7ED3\u679C",
|
|
4355
4459
|
"df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
4356
4460
|
"df.wise.DynamicParagraph.copy": "\u590D\u5236",
|
|
4357
4461
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
|
|
@@ -4366,7 +4470,14 @@ var zh_CN_default = {
|
|
|
4366
4470
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20\u4E0D\u8D85\u8FC7 {maxItems} \u4E2A\u6587\u4EF6\u3002",
|
|
4367
4471
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002",
|
|
4368
4472
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5\u3002",
|
|
4369
|
-
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026"
|
|
4473
|
+
"df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026",
|
|
4474
|
+
"df.wise.filter.noResults": "\u6682\u65E0\u7ED3\u679C",
|
|
4475
|
+
"df.wise.filter.placeholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
|
|
4476
|
+
"df.wise.filter.results": "\u641C\u7D22\u7ED3\u679C",
|
|
4477
|
+
"df.wise.group.all": "\u5168\u90E8",
|
|
4478
|
+
"df.wise.group.currencies-with-account-details": "\u5E26\u6709\u8D26\u6237\u8BE6\u7EC6\u4FE1\u606F\u7684\u8D27\u5E01",
|
|
4479
|
+
"df.wise.group.popular": "\u70ED\u95E8",
|
|
4480
|
+
"df.wise.group.recent": "\u6700\u8FD1"
|
|
4370
4481
|
};
|
|
4371
4482
|
|
|
4372
4483
|
// src/i18n/zh_HK.json
|
|
@@ -4390,13 +4501,6 @@ var zh_HK_default = {
|
|
|
4390
4501
|
"df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
|
|
4391
4502
|
"df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
4392
4503
|
"df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
4393
|
-
"df.wise.Decision.all": "\u5168\u90E8",
|
|
4394
|
-
"df.wise.Decision.currenciesWithAccountDetails": "\u63D0\u4F9B\u8CEC\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
|
|
4395
|
-
"df.wise.Decision.filterPlaceholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
|
|
4396
|
-
"df.wise.Decision.noResults": "\u6C92\u6709\u7D50\u679C",
|
|
4397
|
-
"df.wise.Decision.popular": "\u71B1\u9580",
|
|
4398
|
-
"df.wise.Decision.recent": "\u6700\u8FD1\u7684",
|
|
4399
|
-
"df.wise.Decision.results": "\u641C\u5C0B\u7D50\u679C",
|
|
4400
4504
|
"df.wise.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
4401
4505
|
"df.wise.DynamicParagraph.copy": "\u8907\u88FD",
|
|
4402
4506
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u4E86\u4E9B\u554F\u984C\u3002",
|
|
@@ -4411,7 +4515,14 @@ var zh_HK_default = {
|
|
|
4411
4515
|
"df.wise.MultipleFileUploadSchema.maxItemsError": "\u8ACB\u4E0D\u8981\u4E0A\u8F09\u8D85\u904E{maxItems}\u500B\u6A94\u6848\u3002",
|
|
4412
4516
|
"df.wise.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002",
|
|
4413
4517
|
"df.wise.PersistAsyncSchema.genericError": "\u51FA\u73FE\u4E86\u554F\u984C\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002",
|
|
4414
|
-
"df.wise.SearchLayout.loading": "\u8F09\u5165\u4E2D\u2026"
|
|
4518
|
+
"df.wise.SearchLayout.loading": "\u8F09\u5165\u4E2D\u2026",
|
|
4519
|
+
"df.wise.filter.noResults": "\u6C92\u6709\u7D50\u679C",
|
|
4520
|
+
"df.wise.filter.placeholder": "\u958B\u59CB\u8F38\u5165\u4EE5\u641C\u5C0B",
|
|
4521
|
+
"df.wise.filter.results": "\u641C\u5C0B\u7D50\u679C",
|
|
4522
|
+
"df.wise.group.all": "\u5168\u90E8",
|
|
4523
|
+
"df.wise.group.currencies-with-account-details": "\u63D0\u4F9B\u8CEC\u6236\u8CC7\u6599\u7684\u8CA8\u5E63",
|
|
4524
|
+
"df.wise.group.popular": "\u71B1\u9580",
|
|
4525
|
+
"df.wise.group.recent": "\u6700\u8FD1\u7684"
|
|
4415
4526
|
};
|
|
4416
4527
|
|
|
4417
4528
|
// src/i18n/index.ts
|
|
@@ -4446,14 +4557,14 @@ var translations = languages.reduce(
|
|
|
4446
4557
|
var i18n_default = translations;
|
|
4447
4558
|
|
|
4448
4559
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4449
|
-
var
|
|
4450
|
-
var
|
|
4560
|
+
var import_react20 = require("react");
|
|
4561
|
+
var import_react_intl24 = require("react-intl");
|
|
4451
4562
|
var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
4452
4563
|
|
|
4453
4564
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4454
4565
|
var appVersion = (
|
|
4455
4566
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4456
|
-
typeof process !== "undefined" ? "4.
|
|
4567
|
+
typeof process !== "undefined" ? "4.35.1" : "0.0.0"
|
|
4457
4568
|
);
|
|
4458
4569
|
|
|
4459
4570
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -4493,8 +4604,8 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
|
|
|
4493
4604
|
};
|
|
4494
4605
|
|
|
4495
4606
|
// src/dynamicFlow/messages.ts
|
|
4496
|
-
var
|
|
4497
|
-
var messages_default = (0,
|
|
4607
|
+
var import_react_intl23 = require("react-intl");
|
|
4608
|
+
var messages_default = (0, import_react_intl23.defineMessages)({
|
|
4498
4609
|
copied: {
|
|
4499
4610
|
id: "df.wise.CopyFeedback.copy",
|
|
4500
4611
|
defaultMessage: "Copied to clipboard",
|
|
@@ -4508,12 +4619,12 @@ var messages_default = (0, import_react_intl21.defineMessages)({
|
|
|
4508
4619
|
});
|
|
4509
4620
|
|
|
4510
4621
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
4511
|
-
var
|
|
4622
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
4512
4623
|
var wiseRenderers = getWiseRenderers();
|
|
4513
4624
|
function DynamicFlowLegacy(props) {
|
|
4514
4625
|
const { customFetch = globalThis.fetch } = props;
|
|
4515
4626
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
4516
|
-
return /* @__PURE__ */ (0,
|
|
4627
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
|
|
4517
4628
|
}
|
|
4518
4629
|
function DynamicFlowRevamp(props) {
|
|
4519
4630
|
const {
|
|
@@ -4526,12 +4637,12 @@ function DynamicFlowRevamp(props) {
|
|
|
4526
4637
|
onLink = openLinkInNewTab,
|
|
4527
4638
|
onThemeChange
|
|
4528
4639
|
} = props;
|
|
4529
|
-
const { formatMessage } = (0,
|
|
4640
|
+
const { formatMessage } = (0, import_react_intl24.useIntl)();
|
|
4530
4641
|
const createSnackBar = useSnackBarIfAvailable();
|
|
4531
4642
|
const httpClient = useWiseHttpClient(customFetch);
|
|
4532
|
-
const mergedRenderers = (0,
|
|
4533
|
-
const logEvent = (0,
|
|
4534
|
-
const trackEvent = (0,
|
|
4643
|
+
const mergedRenderers = (0, import_react20.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
4644
|
+
const logEvent = (0, import_react20.useMemo)(() => getLogEvent(onLog), [onLog]);
|
|
4645
|
+
const trackEvent = (0, import_react20.useMemo)(
|
|
4535
4646
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
4536
4647
|
[onEvent, onAnalytics, onThemeChange]
|
|
4537
4648
|
);
|
|
@@ -4550,9 +4661,9 @@ function DynamicFlowRevamp(props) {
|
|
|
4550
4661
|
onLink,
|
|
4551
4662
|
onCopy
|
|
4552
4663
|
});
|
|
4553
|
-
return /* @__PURE__ */ (0,
|
|
4664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
|
|
4554
4665
|
}
|
|
4555
|
-
var DynamicForm = (0,
|
|
4666
|
+
var DynamicForm = (0, import_react20.forwardRef)(function DynamicForm2(props, ref) {
|
|
4556
4667
|
const {
|
|
4557
4668
|
className = "",
|
|
4558
4669
|
customFetch = globalThis.fetch,
|
|
@@ -4563,12 +4674,12 @@ var DynamicForm = (0, import_react19.forwardRef)(function DynamicForm2(props, re
|
|
|
4563
4674
|
onLink = openLinkInNewTab,
|
|
4564
4675
|
onThemeChange
|
|
4565
4676
|
} = props;
|
|
4566
|
-
const { formatMessage } = (0,
|
|
4677
|
+
const { formatMessage } = (0, import_react_intl24.useIntl)();
|
|
4567
4678
|
const createSnackBar = useSnackBarIfAvailable();
|
|
4568
4679
|
const httpClient = useWiseHttpClient(customFetch);
|
|
4569
|
-
const mergedRenderers = (0,
|
|
4570
|
-
const logEvent = (0,
|
|
4571
|
-
const trackEvent = (0,
|
|
4680
|
+
const mergedRenderers = (0, import_react20.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
4681
|
+
const logEvent = (0, import_react20.useMemo)(() => getLogEvent(onLog), [onLog]);
|
|
4682
|
+
const trackEvent = (0, import_react20.useMemo)(
|
|
4572
4683
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
4573
4684
|
[onEvent, onAnalytics, onThemeChange]
|
|
4574
4685
|
);
|
|
@@ -4587,11 +4698,11 @@ var DynamicForm = (0, import_react19.forwardRef)(function DynamicForm2(props, re
|
|
|
4587
4698
|
onLink,
|
|
4588
4699
|
onCopy
|
|
4589
4700
|
});
|
|
4590
|
-
return /* @__PURE__ */ (0,
|
|
4701
|
+
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 })) });
|
|
4591
4702
|
});
|
|
4592
4703
|
var useWiseHttpClient = (httpClient) => {
|
|
4593
|
-
const { locale } = (0,
|
|
4594
|
-
return (0,
|
|
4704
|
+
const { locale } = (0, import_react_intl24.useIntl)();
|
|
4705
|
+
return (0, import_react20.useCallback)(
|
|
4595
4706
|
async (input, init = {}) => {
|
|
4596
4707
|
const headers = new Headers(init.headers);
|
|
4597
4708
|
headers.set("accept-language", locale);
|