@wise/dynamic-flow-client 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +205 -214
- package/build/main.min.js +1 -1
- package/build/types/layout/form/DynamicForm.d.ts +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -4758,99 +4758,69 @@ var isValidGenericSchema = (schema, model, errors) => {
|
|
|
4758
4758
|
return false;
|
|
4759
4759
|
};
|
|
4760
4760
|
|
|
4761
|
-
// src/jsonSchemaForm/JsonSchemaForm.tsx
|
|
4762
|
-
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4763
|
-
var JsonSchemaForm = (props) => {
|
|
4764
|
-
const schemaProps = __spreadValues({
|
|
4765
|
-
model: null,
|
|
4766
|
-
errors: null,
|
|
4767
|
-
disabled: false,
|
|
4768
|
-
baseUrl: ""
|
|
4769
|
-
}, props);
|
|
4770
|
-
if (useHasHttpClientProvider() || schemaProps.baseUrl == null) {
|
|
4771
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(GenericSchema_default, __spreadValues({}, schemaProps));
|
|
4772
|
-
}
|
|
4773
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4774
|
-
Providers,
|
|
4775
|
-
{
|
|
4776
|
-
baseUrl: schemaProps.baseUrl,
|
|
4777
|
-
onEvent: schemaProps.onEvent,
|
|
4778
|
-
onLog: schemaProps.onLog,
|
|
4779
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(GenericSchema_default, __spreadValues({}, schemaProps))
|
|
4780
|
-
}
|
|
4781
|
-
);
|
|
4782
|
-
};
|
|
4783
|
-
var JsonSchemaForm_default = JsonSchemaForm;
|
|
4784
|
-
var Providers = ({ baseUrl, onEvent, onLog, children }) => {
|
|
4785
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(LogProvider, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: onLog != null ? onLog : noop2, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4786
|
-
EventsContextProvider,
|
|
4787
|
-
{
|
|
4788
|
-
metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" },
|
|
4789
|
-
onEvent: onEvent != null ? onEvent : noop2,
|
|
4790
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HttpClientProviderFromBaseUrl, { baseUrl, children })
|
|
4791
|
-
}
|
|
4792
|
-
) });
|
|
4793
|
-
};
|
|
4794
|
-
var noop2 = () => {
|
|
4795
|
-
};
|
|
4796
|
-
|
|
4797
4761
|
// src/layout/form/DynamicForm.tsx
|
|
4798
|
-
var
|
|
4799
|
-
var DynamicForm = (
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4762
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4763
|
+
var DynamicForm = ({
|
|
4764
|
+
component,
|
|
4765
|
+
model = null,
|
|
4766
|
+
errors = null,
|
|
4767
|
+
submitted,
|
|
4768
|
+
onModelChange,
|
|
4769
|
+
onPersistAsync
|
|
4770
|
+
}) => {
|
|
4771
|
+
const formSchema = component.schema;
|
|
4772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: getMargin(component.margin || "md"), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4773
|
+
GenericSchema_default,
|
|
4804
4774
|
{
|
|
4805
4775
|
schema: formSchema,
|
|
4806
|
-
model
|
|
4807
|
-
|
|
4808
|
-
|
|
4776
|
+
model,
|
|
4777
|
+
errors,
|
|
4778
|
+
submitted,
|
|
4809
4779
|
onChange: (parameters) => {
|
|
4810
|
-
|
|
4780
|
+
onModelChange(__spreadValues({ formSchema }, parameters));
|
|
4811
4781
|
},
|
|
4812
|
-
onPersistAsync
|
|
4782
|
+
onPersistAsync
|
|
4813
4783
|
}
|
|
4814
4784
|
) });
|
|
4815
4785
|
};
|
|
4816
4786
|
var DynamicForm_default = DynamicForm;
|
|
4817
4787
|
|
|
4818
4788
|
// src/layout/heading/DynamicHeading.tsx
|
|
4819
|
-
var
|
|
4789
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4820
4790
|
var DynamicHeading = (props) => {
|
|
4821
4791
|
const { text, size = "md", align = "left", margin = "md" } = props.component;
|
|
4822
4792
|
const classes = getTextAlignmentAndMargin({ align, margin });
|
|
4823
4793
|
switch (size) {
|
|
4824
4794
|
case "xs":
|
|
4825
|
-
return /* @__PURE__ */ (0,
|
|
4795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h5", { className: classes, children: text });
|
|
4826
4796
|
case "sm":
|
|
4827
|
-
return /* @__PURE__ */ (0,
|
|
4797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h4", { className: classes, children: text });
|
|
4828
4798
|
case "lg":
|
|
4829
|
-
return /* @__PURE__ */ (0,
|
|
4799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h2", { className: classes, children: text });
|
|
4830
4800
|
case "xl":
|
|
4831
|
-
return /* @__PURE__ */ (0,
|
|
4801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h1", { className: classes, children: text });
|
|
4832
4802
|
case "md":
|
|
4833
4803
|
default:
|
|
4834
|
-
return /* @__PURE__ */ (0,
|
|
4804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h3", { className: classes, children: text });
|
|
4835
4805
|
}
|
|
4836
4806
|
};
|
|
4837
4807
|
var DynamicHeading_default = DynamicHeading;
|
|
4838
4808
|
|
|
4839
4809
|
// src/layout/markdown/DynamicMarkdown.tsx
|
|
4840
4810
|
var import_components17 = require("@transferwise/components");
|
|
4841
|
-
var
|
|
4811
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4842
4812
|
var DynamicMarkdown = ({ component }) => {
|
|
4843
4813
|
const { content, align, margin } = component;
|
|
4844
|
-
return /* @__PURE__ */ (0,
|
|
4814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components17.Markdown, { config: { link: { target: "_blank" } }, children: content }) });
|
|
4845
4815
|
};
|
|
4846
4816
|
var DynamicInfo = ({ component }) => {
|
|
4847
|
-
return /* @__PURE__ */ (0,
|
|
4817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getTextAlignmentAndMargin(component), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_components17.Markdown, { config: { link: { target: "_blank" } }, children: component.markdown }) });
|
|
4848
4818
|
};
|
|
4849
4819
|
|
|
4850
4820
|
// src/layout/image/DynamicImage.tsx
|
|
4851
4821
|
var import_components18 = require("@transferwise/components");
|
|
4852
4822
|
var import_react23 = require("react");
|
|
4853
|
-
var
|
|
4823
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4854
4824
|
var DynamicImage = ({ component: image }) => {
|
|
4855
4825
|
const { url, size, text, margin, accessibilityDescription } = image;
|
|
4856
4826
|
const httpClient = useHttpClient();
|
|
@@ -4867,7 +4837,7 @@ var DynamicImage = ({ component: image }) => {
|
|
|
4867
4837
|
if (!imageSource) {
|
|
4868
4838
|
return null;
|
|
4869
4839
|
}
|
|
4870
|
-
return /* @__PURE__ */ (0,
|
|
4840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: `df-image ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_components18.Image, __spreadValues({ className: `img-responsive ${getMargin(margin || "md")}` }, imageProps)) });
|
|
4871
4841
|
};
|
|
4872
4842
|
var readImageBlobAsDataURL = (imageBlob) => {
|
|
4873
4843
|
return new Promise((resolve, reject) => {
|
|
@@ -4901,47 +4871,47 @@ var DynamicImage_default = DynamicImage;
|
|
|
4901
4871
|
|
|
4902
4872
|
// src/layout/instructions/DynamicInstructions.tsx
|
|
4903
4873
|
var import_components19 = require("@transferwise/components");
|
|
4904
|
-
var
|
|
4874
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4905
4875
|
var doContext = ["positive", "neutral"];
|
|
4906
4876
|
var dontContext = ["warning", "negative"];
|
|
4907
4877
|
var DynamicInstructions = ({ component }) => {
|
|
4908
4878
|
const { items } = component;
|
|
4909
4879
|
const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
|
|
4910
4880
|
const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
|
|
4911
|
-
return /* @__PURE__ */ (0,
|
|
4912
|
-
component.title ? /* @__PURE__ */ (0,
|
|
4913
|
-
/* @__PURE__ */ (0,
|
|
4881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: getMargin(component.margin || "md"), children: [
|
|
4882
|
+
component.title ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components19.Header, { title: component.title }) : null,
|
|
4883
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_components19.InstructionsList, { dos, donts })
|
|
4914
4884
|
] });
|
|
4915
4885
|
};
|
|
4916
4886
|
var DynamicInstructions_default = DynamicInstructions;
|
|
4917
4887
|
|
|
4918
4888
|
// src/layout/DynamicLayout.tsx
|
|
4919
|
-
var
|
|
4889
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4920
4890
|
var getKey = (component) => JSON.stringify(component);
|
|
4921
4891
|
var DynamicLayout = (props) => {
|
|
4922
4892
|
const { components, model, submitted, errors, onModelChange, onAction, onPersistAsync, baseUrl } = props;
|
|
4923
4893
|
const renderComponent = (component) => {
|
|
4924
4894
|
switch (component.type) {
|
|
4925
4895
|
case "heading":
|
|
4926
|
-
return /* @__PURE__ */ (0,
|
|
4896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicHeading_default, { component }, getKey(component));
|
|
4927
4897
|
case "paragraph":
|
|
4928
|
-
return /* @__PURE__ */ (0,
|
|
4898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicParagraph_default, { component }, getKey(component));
|
|
4929
4899
|
case "image":
|
|
4930
|
-
return /* @__PURE__ */ (0,
|
|
4900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicImage_default, { component }, getKey(component));
|
|
4931
4901
|
case "alert":
|
|
4932
|
-
return /* @__PURE__ */ (0,
|
|
4902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicAlert_default, { component }, getKey(component));
|
|
4933
4903
|
case "review":
|
|
4934
|
-
return /* @__PURE__ */ (0,
|
|
4904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicReview_default, { component, onAction }, getKey(component));
|
|
4935
4905
|
case "divider":
|
|
4936
|
-
return /* @__PURE__ */ (0,
|
|
4906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicDivider_default, { component }, getKey(component));
|
|
4937
4907
|
case "info":
|
|
4938
|
-
return /* @__PURE__ */ (0,
|
|
4908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicInfo, { component }, getKey(component));
|
|
4939
4909
|
case "instructions":
|
|
4940
|
-
return /* @__PURE__ */ (0,
|
|
4910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicInstructions_default, { component }, getKey(component));
|
|
4941
4911
|
case "markdown":
|
|
4942
|
-
return /* @__PURE__ */ (0,
|
|
4912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicMarkdown, { component }, getKey(component));
|
|
4943
4913
|
case "columns":
|
|
4944
|
-
return /* @__PURE__ */ (0,
|
|
4914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4945
4915
|
DynamicColumns_default,
|
|
4946
4916
|
{
|
|
4947
4917
|
component,
|
|
@@ -4955,7 +4925,7 @@ var DynamicLayout = (props) => {
|
|
|
4955
4925
|
getKey(component)
|
|
4956
4926
|
);
|
|
4957
4927
|
case "form":
|
|
4958
|
-
return /* @__PURE__ */ (0,
|
|
4928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4959
4929
|
DynamicForm_default,
|
|
4960
4930
|
{
|
|
4961
4931
|
component,
|
|
@@ -4968,9 +4938,9 @@ var DynamicLayout = (props) => {
|
|
|
4968
4938
|
getKey(__spreadProps(__spreadValues({}, component), { errors: errors != null ? errors : null }))
|
|
4969
4939
|
);
|
|
4970
4940
|
case "button":
|
|
4971
|
-
return /* @__PURE__ */ (0,
|
|
4941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicButton_default, { component, onAction }, getKey(component));
|
|
4972
4942
|
case "box":
|
|
4973
|
-
return /* @__PURE__ */ (0,
|
|
4943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4974
4944
|
DynamicBox_default,
|
|
4975
4945
|
{
|
|
4976
4946
|
component,
|
|
@@ -4984,34 +4954,34 @@ var DynamicLayout = (props) => {
|
|
|
4984
4954
|
getKey(component)
|
|
4985
4955
|
);
|
|
4986
4956
|
case "decision":
|
|
4987
|
-
return /* @__PURE__ */ (0,
|
|
4957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicDecision_default, { component, onAction }, getKey(component));
|
|
4988
4958
|
case "external":
|
|
4989
|
-
return /* @__PURE__ */ (0,
|
|
4959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicExternal_default, { component, onAction }, getKey(component));
|
|
4990
4960
|
case "list":
|
|
4991
4961
|
case "status-list":
|
|
4992
|
-
return /* @__PURE__ */ (0,
|
|
4962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicStatusList_default, { component, onAction }, getKey(component));
|
|
4993
4963
|
case "loading-indicator":
|
|
4994
|
-
return /* @__PURE__ */ (0,
|
|
4964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicLoadingIndicator_default, { component }, getKey(component));
|
|
4995
4965
|
case "search":
|
|
4996
|
-
return /* @__PURE__ */ (0,
|
|
4966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicSearch_default, { component, onAction }, getKey(component));
|
|
4997
4967
|
default:
|
|
4998
|
-
return /* @__PURE__ */ (0,
|
|
4968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {}, getKey(component));
|
|
4999
4969
|
}
|
|
5000
4970
|
};
|
|
5001
4971
|
if (useHasHttpClientProvider() || baseUrl == null) {
|
|
5002
|
-
return /* @__PURE__ */ (0,
|
|
4972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: components.map(renderComponent) });
|
|
5003
4973
|
} else {
|
|
5004
|
-
return /* @__PURE__ */ (0,
|
|
4974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(HttpClientProviderFromBaseUrl, { baseUrl, children: components.map(renderComponent) });
|
|
5005
4975
|
}
|
|
5006
4976
|
};
|
|
5007
4977
|
var DynamicLayout_default = DynamicLayout;
|
|
5008
4978
|
|
|
5009
4979
|
// src/layout/list/DynamicStatusList.tsx
|
|
5010
4980
|
var import_components20 = require("@transferwise/components");
|
|
5011
|
-
var
|
|
4981
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5012
4982
|
var DynamicStatusList = ({ component }) => {
|
|
5013
|
-
return /* @__PURE__ */ (0,
|
|
5014
|
-
component.title ? /* @__PURE__ */ (0,
|
|
4983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: getMargin(component.margin || "md"), children: [
|
|
4984
|
+
component.title ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("h4", { className: "m-b-2", children: [
|
|
5015
4985
|
" ",
|
|
5016
4986
|
component.title,
|
|
5017
4987
|
" "
|
|
@@ -5024,8 +4994,8 @@ var mapListItemToSummary = ({ title, description, icon, status }) => {
|
|
|
5024
4994
|
key: `${title}/${description || ""}`,
|
|
5025
4995
|
title,
|
|
5026
4996
|
description
|
|
5027
|
-
}, (icon == null ? void 0 : icon.name) ? { icon: /* @__PURE__ */ (0,
|
|
5028
|
-
return /* @__PURE__ */ (0,
|
|
4997
|
+
}, (icon == null ? void 0 : icon.name) ? { icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DynamicIcon_default, { type: icon.name }) } : {}), status ? { status: statusMap[status] } : {});
|
|
4998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_components20.Summary, __spreadValues({}, props));
|
|
5029
4999
|
};
|
|
5030
5000
|
var statusListMap = {
|
|
5031
5001
|
done: "done",
|
|
@@ -5042,10 +5012,10 @@ var DynamicStatusList_default = DynamicStatusList;
|
|
|
5042
5012
|
|
|
5043
5013
|
// src/layout/loadingIndicator/DynamicLoadingIndicator.tsx
|
|
5044
5014
|
var import_components21 = require("@transferwise/components");
|
|
5045
|
-
var
|
|
5015
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5046
5016
|
var DynamicLoadingIndicator = ({ component }) => {
|
|
5047
5017
|
const { margin, size = "md" } = component;
|
|
5048
|
-
return /* @__PURE__ */ (0,
|
|
5018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5049
5019
|
import_components21.Loader,
|
|
5050
5020
|
{
|
|
5051
5021
|
size,
|
|
@@ -5082,15 +5052,15 @@ var import_components22 = require("@transferwise/components");
|
|
|
5082
5052
|
var import_react24 = require("react");
|
|
5083
5053
|
function useSnackBarIfAvailable() {
|
|
5084
5054
|
const context = (0, import_react24.useContext)(import_components22.SnackbarContext);
|
|
5085
|
-
return context ? context.createSnackbar :
|
|
5055
|
+
return context ? context.createSnackbar : noop2;
|
|
5086
5056
|
}
|
|
5087
|
-
function
|
|
5057
|
+
function noop2() {
|
|
5088
5058
|
}
|
|
5089
5059
|
|
|
5090
5060
|
// src/layout/paragraph/DynamicParagraph.tsx
|
|
5091
|
-
var
|
|
5092
|
-
var DynamicParagraph = ({ component }) => component.control === "copyable" ? /* @__PURE__ */ (0,
|
|
5093
|
-
var BasicDynamicParagraph = ({ component }) => /* @__PURE__ */ (0,
|
|
5061
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5062
|
+
var DynamicParagraph = ({ component }) => component.control === "copyable" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CopyableDynamicParagraph, { component }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BasicDynamicParagraph, { component });
|
|
5063
|
+
var BasicDynamicParagraph = ({ component }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: getTextAlignmentAndMargin(component), children: [
|
|
5094
5064
|
" ",
|
|
5095
5065
|
component.text,
|
|
5096
5066
|
" "
|
|
@@ -5101,11 +5071,11 @@ var CopyableDynamicParagraph = ({ component }) => {
|
|
|
5101
5071
|
const { text } = component;
|
|
5102
5072
|
const copy = () => {
|
|
5103
5073
|
var _a;
|
|
5104
|
-
(_a = navigator.clipboard) == null ? void 0 : _a.writeText(text).then(() => createSnackbar({ text: formatMessage(DynamicParagraph_messages_default.copied) })).catch(
|
|
5074
|
+
(_a = navigator.clipboard) == null ? void 0 : _a.writeText(text).then(() => createSnackbar({ text: formatMessage(DynamicParagraph_messages_default.copied) })).catch(noop3);
|
|
5105
5075
|
};
|
|
5106
5076
|
const classNames7 = getTextAlignmentAndMargin({ align: component.align }) + " form-control";
|
|
5107
|
-
return /* @__PURE__ */ (0,
|
|
5108
|
-
/* @__PURE__ */ (0,
|
|
5077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: getTextAlignmentAndMargin(component), children: [
|
|
5078
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5109
5079
|
"input",
|
|
5110
5080
|
{
|
|
5111
5081
|
type: "text",
|
|
@@ -5115,16 +5085,16 @@ var CopyableDynamicParagraph = ({ component }) => {
|
|
|
5115
5085
|
style: { textOverflow: "ellipsis" }
|
|
5116
5086
|
}
|
|
5117
5087
|
),
|
|
5118
|
-
/* @__PURE__ */ (0,
|
|
5088
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_components23.Button, { block: true, onClick: copy, className: getMargin("sm"), children: formatMessage(DynamicParagraph_messages_default.copy) })
|
|
5119
5089
|
] });
|
|
5120
5090
|
};
|
|
5121
|
-
function
|
|
5091
|
+
function noop3() {
|
|
5122
5092
|
}
|
|
5123
5093
|
var DynamicParagraph_default = DynamicParagraph;
|
|
5124
5094
|
|
|
5125
5095
|
// src/layout/review/DynamicReview.tsx
|
|
5126
5096
|
var import_components24 = require("@transferwise/components");
|
|
5127
|
-
var
|
|
5097
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5128
5098
|
var getDefinitions = (orientation, review) => {
|
|
5129
5099
|
return review.fields.map(
|
|
5130
5100
|
({ label, value, help }, index) => {
|
|
@@ -5138,14 +5108,14 @@ var getDefinitions = (orientation, review) => {
|
|
|
5138
5108
|
};
|
|
5139
5109
|
var getFieldValue = (value, help, orientation) => {
|
|
5140
5110
|
if (help) {
|
|
5141
|
-
return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0,
|
|
5142
|
-
/* @__PURE__ */ (0,
|
|
5111
|
+
return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
5112
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Help_default, { help }),
|
|
5143
5113
|
" ",
|
|
5144
5114
|
value
|
|
5145
|
-
] }) : /* @__PURE__ */ (0,
|
|
5115
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
5146
5116
|
value,
|
|
5147
5117
|
" ",
|
|
5148
|
-
/* @__PURE__ */ (0,
|
|
5118
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Help_default, { help })
|
|
5149
5119
|
] });
|
|
5150
5120
|
}
|
|
5151
5121
|
return value;
|
|
@@ -5158,7 +5128,7 @@ var DynamicReview = (props) => {
|
|
|
5158
5128
|
const review = props.component;
|
|
5159
5129
|
const margin = getMargin(review.margin || "xs");
|
|
5160
5130
|
const getReviewAction = (action) => {
|
|
5161
|
-
return /* @__PURE__ */ (0,
|
|
5131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5162
5132
|
"a",
|
|
5163
5133
|
{
|
|
5164
5134
|
href: action.url,
|
|
@@ -5173,12 +5143,12 @@ var DynamicReview = (props) => {
|
|
|
5173
5143
|
);
|
|
5174
5144
|
};
|
|
5175
5145
|
const orientation = getReviewLayout(review);
|
|
5176
|
-
return /* @__PURE__ */ (0,
|
|
5177
|
-
review.title && /* @__PURE__ */ (0,
|
|
5146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
5147
|
+
review.title && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("h6", { className: `m-b-2 ${margin}`, children: [
|
|
5178
5148
|
review.title,
|
|
5179
5149
|
review.action && getReviewAction(review.action)
|
|
5180
5150
|
] }),
|
|
5181
|
-
/* @__PURE__ */ (0,
|
|
5151
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: review.title ? "" : margin, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components24.DefinitionList, { layout: orientation, definitions: getDefinitions(orientation, review) }) })
|
|
5182
5152
|
] });
|
|
5183
5153
|
};
|
|
5184
5154
|
var DynamicReview_default = DynamicReview;
|
|
@@ -5188,11 +5158,11 @@ var import_react26 = require("react");
|
|
|
5188
5158
|
|
|
5189
5159
|
// src/layout/search/SearchInput.tsx
|
|
5190
5160
|
var import_components25 = require("@transferwise/components");
|
|
5191
|
-
var
|
|
5161
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5192
5162
|
var SearchInput = ({ title, value, onFocus, onChange }) => {
|
|
5193
|
-
return /* @__PURE__ */ (0,
|
|
5163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("label", { className: "control-label d-inline", children: [
|
|
5194
5164
|
title,
|
|
5195
|
-
/* @__PURE__ */ (0,
|
|
5165
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5196
5166
|
import_components25.Input,
|
|
5197
5167
|
{
|
|
5198
5168
|
type: "text",
|
|
@@ -5224,13 +5194,13 @@ var ErrorBoundary_messages_default = (0, import_react_intl18.defineMessages)({
|
|
|
5224
5194
|
});
|
|
5225
5195
|
|
|
5226
5196
|
// src/layout/search/SearchResults.tsx
|
|
5227
|
-
var
|
|
5197
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5228
5198
|
var SearchResults = ({ results, emptyMessage, onSelect }) => {
|
|
5229
5199
|
if (results.length === 0) {
|
|
5230
|
-
return /* @__PURE__ */ (0,
|
|
5200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "m-t-2", children: emptyMessage });
|
|
5231
5201
|
}
|
|
5232
|
-
return /* @__PURE__ */ (0,
|
|
5233
|
-
return /* @__PURE__ */ (0,
|
|
5202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components26.NavigationOptionsList, { children: results.map((result) => {
|
|
5203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5234
5204
|
import_components26.NavigationOption,
|
|
5235
5205
|
{
|
|
5236
5206
|
title: result.title,
|
|
@@ -5246,10 +5216,10 @@ var SearchResults = ({ results, emptyMessage, onSelect }) => {
|
|
|
5246
5216
|
};
|
|
5247
5217
|
var ErrorResult = ({ onRetrySearch }) => {
|
|
5248
5218
|
const intl = (0, import_react_intl19.useIntl)();
|
|
5249
|
-
return /* @__PURE__ */ (0,
|
|
5219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: "m-t-2", children: [
|
|
5250
5220
|
intl.formatMessage(ErrorBoundary_messages_default.errorAlert),
|
|
5251
5221
|
"\xA0",
|
|
5252
|
-
/* @__PURE__ */ (0,
|
|
5222
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5253
5223
|
"a",
|
|
5254
5224
|
{
|
|
5255
5225
|
href: "/",
|
|
@@ -5335,7 +5305,7 @@ var addQueryParameter = (url, key, value) => {
|
|
|
5335
5305
|
};
|
|
5336
5306
|
|
|
5337
5307
|
// src/layout/search/DynamicSearch.tsx
|
|
5338
|
-
var
|
|
5308
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5339
5309
|
var DEBOUNCE_TIME = 400;
|
|
5340
5310
|
var DynamicSearch = ({ component, onAction }) => {
|
|
5341
5311
|
const [query, setQuery] = (0, import_react26.useState)("");
|
|
@@ -5369,17 +5339,17 @@ var DynamicSearch = ({ component, onAction }) => {
|
|
|
5369
5339
|
setQuery(query);
|
|
5370
5340
|
void search(query);
|
|
5371
5341
|
};
|
|
5372
|
-
return /* @__PURE__ */ (0,
|
|
5373
|
-
/* @__PURE__ */ (0,
|
|
5374
|
-
status === "loading" && /* @__PURE__ */ (0,
|
|
5375
|
-
status === "error" && /* @__PURE__ */ (0,
|
|
5376
|
-
status === "success" && /* @__PURE__ */ (0,
|
|
5342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: getMargin(margin), children: [
|
|
5343
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SearchInput, { title, value: query, onChange, onFocus: onSearchStart }),
|
|
5344
|
+
status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DynamicLoadingIndicator_default, { component: { type: "loading-indicator", size: "sm" } }),
|
|
5345
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ErrorResult, { onRetrySearch }),
|
|
5346
|
+
status === "success" && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SearchResults, { results, emptyMessage, onSelect: onResultSelected })
|
|
5377
5347
|
] });
|
|
5378
5348
|
};
|
|
5379
5349
|
var DynamicSearch_default = DynamicSearch;
|
|
5380
5350
|
|
|
5381
5351
|
// src/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.tsx
|
|
5382
|
-
var
|
|
5352
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5383
5353
|
var isNullish = (value) => isNull(value) || isUndefined(value);
|
|
5384
5354
|
var getDefaultValue = (schema) => {
|
|
5385
5355
|
return schema.type === "boolean" && isNullish(schema.default) ? false : schema.default;
|
|
@@ -5454,15 +5424,15 @@ var BasicTypeSchema = (props) => {
|
|
|
5454
5424
|
const showLabel = props.schema.format !== "file" && props.schema.type !== "boolean";
|
|
5455
5425
|
const schemaHelp = props.schema.help;
|
|
5456
5426
|
const feedbackId = `${id}-feedback`;
|
|
5457
|
-
return !isHidden ? /* @__PURE__ */ (0,
|
|
5458
|
-
props.schema.alert && /* @__PURE__ */ (0,
|
|
5459
|
-
/* @__PURE__ */ (0,
|
|
5460
|
-
showLabel && /* @__PURE__ */ (0,
|
|
5461
|
-
/* @__PURE__ */ (0,
|
|
5462
|
-
!!schemaHelp && /* @__PURE__ */ (0,
|
|
5427
|
+
return !isHidden ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
5428
|
+
props.schema.alert && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DynamicAlert_default, { component: props.schema.alert }),
|
|
5429
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: (0, import_classnames6.default)(formGroupClasses), children: [
|
|
5430
|
+
showLabel && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "d-inline-block", children: [
|
|
5431
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("label", { className: "control-label d-inline", htmlFor: id, children: props.schema.title }),
|
|
5432
|
+
!!schemaHelp && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Help_default, { help: schemaHelp })
|
|
5463
5433
|
] }),
|
|
5464
|
-
!showLabel && !!schemaHelp && /* @__PURE__ */ (0,
|
|
5465
|
-
/* @__PURE__ */ (0,
|
|
5434
|
+
!showLabel && !!schemaHelp && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Help_default, { help: schemaHelp }),
|
|
5435
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5466
5436
|
SchemaFormControl_default,
|
|
5467
5437
|
{
|
|
5468
5438
|
id,
|
|
@@ -5475,7 +5445,7 @@ var BasicTypeSchema = (props) => {
|
|
|
5475
5445
|
describedBy: feedbackId
|
|
5476
5446
|
}
|
|
5477
5447
|
),
|
|
5478
|
-
/* @__PURE__ */ (0,
|
|
5448
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5479
5449
|
ControlFeedback_default,
|
|
5480
5450
|
{
|
|
5481
5451
|
id: feedbackId,
|
|
@@ -5500,7 +5470,7 @@ BasicTypeSchema.defaultProps = {
|
|
|
5500
5470
|
var BasicTypeSchema_default = BasicTypeSchema;
|
|
5501
5471
|
|
|
5502
5472
|
// src/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.tsx
|
|
5503
|
-
var
|
|
5473
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5504
5474
|
var getIdFromResponse = (idProperty, response) => {
|
|
5505
5475
|
return response[idProperty];
|
|
5506
5476
|
};
|
|
@@ -5592,7 +5562,7 @@ var PersistAsyncBasicSchema = (props) => {
|
|
|
5592
5562
|
setPersistAsyncModel(newPersistAsyncModel);
|
|
5593
5563
|
}
|
|
5594
5564
|
};
|
|
5595
|
-
return /* @__PURE__ */ (0,
|
|
5565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5596
5566
|
BasicTypeSchema_default,
|
|
5597
5567
|
{
|
|
5598
5568
|
required,
|
|
@@ -5803,7 +5773,7 @@ function useStepPolling(polling, onAction) {
|
|
|
5803
5773
|
}
|
|
5804
5774
|
|
|
5805
5775
|
// src/step/layoutStep/LayoutStep.tsx
|
|
5806
|
-
var
|
|
5776
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5807
5777
|
var getComponents = (step, options) => {
|
|
5808
5778
|
var _a;
|
|
5809
5779
|
if (isEmpty(step)) {
|
|
@@ -5826,7 +5796,7 @@ var LayoutStep = (props) => {
|
|
|
5826
5796
|
onEvent("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
5827
5797
|
};
|
|
5828
5798
|
useStepPolling(stepSpecification.polling, onAction);
|
|
5829
|
-
return /* @__PURE__ */ (0,
|
|
5799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5830
5800
|
DynamicLayout_default,
|
|
5831
5801
|
{
|
|
5832
5802
|
components,
|
|
@@ -5872,15 +5842,15 @@ var CameraCapture_messages_default = (0, import_react_intl22.defineMessages)({
|
|
|
5872
5842
|
// src/step/cameraStep/cameraCapture/components/index.tsx
|
|
5873
5843
|
var import_components27 = require("@transferwise/components");
|
|
5874
5844
|
var import_react_intl23 = require("react-intl");
|
|
5875
|
-
var
|
|
5876
|
-
var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ (0,
|
|
5845
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5846
|
+
var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "bottom-bar", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CaptureButton, { onClick: onCapture }) });
|
|
5877
5847
|
var ReviewBottomBar = ({
|
|
5878
5848
|
onSubmit,
|
|
5879
5849
|
onRetry
|
|
5880
5850
|
}) => {
|
|
5881
5851
|
const intl = (0, import_react_intl23.useIntl)();
|
|
5882
|
-
return /* @__PURE__ */ (0,
|
|
5883
|
-
/* @__PURE__ */ (0,
|
|
5852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "bottom-bar p-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "row", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [
|
|
5853
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5884
5854
|
import_components27.Button,
|
|
5885
5855
|
{
|
|
5886
5856
|
className: "m-b-1",
|
|
@@ -5891,7 +5861,7 @@ var ReviewBottomBar = ({
|
|
|
5891
5861
|
children: intl.formatMessage(CameraCapture_messages_default.reviewSubmit)
|
|
5892
5862
|
}
|
|
5893
5863
|
),
|
|
5894
|
-
/* @__PURE__ */ (0,
|
|
5864
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5895
5865
|
import_components27.Button,
|
|
5896
5866
|
{
|
|
5897
5867
|
className: "m-b-2",
|
|
@@ -5905,14 +5875,14 @@ var ReviewBottomBar = ({
|
|
|
5905
5875
|
)
|
|
5906
5876
|
] }) }) });
|
|
5907
5877
|
};
|
|
5908
|
-
var CaptureButton = ({ onClick }) => /* @__PURE__ */ (0,
|
|
5878
|
+
var CaptureButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5909
5879
|
"button",
|
|
5910
5880
|
{
|
|
5911
5881
|
type: "button",
|
|
5912
5882
|
className: "camera-capture-btn m-b-2",
|
|
5913
5883
|
"data-testid": "camera-capture-button",
|
|
5914
5884
|
onClick,
|
|
5915
|
-
children: /* @__PURE__ */ (0,
|
|
5885
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "camera-capture-btn-inner" })
|
|
5916
5886
|
}
|
|
5917
5887
|
);
|
|
5918
5888
|
|
|
@@ -5992,7 +5962,7 @@ var useVideoConstraints = (direction) => {
|
|
|
5992
5962
|
|
|
5993
5963
|
// src/step/cameraStep/cameraCapture/overlay/Overlay.tsx
|
|
5994
5964
|
var import_react34 = require("react");
|
|
5995
|
-
var
|
|
5965
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5996
5966
|
var captureButtonHeight = 92;
|
|
5997
5967
|
var reviewButtonsHeight = 120;
|
|
5998
5968
|
var imageHeight = 40;
|
|
@@ -6021,18 +5991,18 @@ var Overlay = ({
|
|
|
6021
5991
|
return () => window.removeEventListener("resize", listener);
|
|
6022
5992
|
});
|
|
6023
5993
|
let helperBoxHeight = (imageUrl ? imageHeight : 0) + (title ? titleHeight : 0) + (instructions ? instructionsHeight : 0);
|
|
6024
|
-
let helperBox = /* @__PURE__ */ (0,
|
|
6025
|
-
imageUrl && /* @__PURE__ */ (0,
|
|
6026
|
-
title && /* @__PURE__ */ (0,
|
|
6027
|
-
instructions && /* @__PURE__ */ (0,
|
|
5994
|
+
let helperBox = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
5995
|
+
imageUrl && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("img", { className: "camera-capture-img", src: imageUrl, alt: "" }),
|
|
5996
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h4", { className: "camera-capture-title", children: title }),
|
|
5997
|
+
instructions && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("small", { className: "camera-capture-instructions", children: instructions })
|
|
6028
5998
|
] });
|
|
6029
5999
|
const frameBottomMargin = captureButtonHeight + helperBoxHeight;
|
|
6030
6000
|
if (reviewInstructions) {
|
|
6031
6001
|
helperBoxHeight = frameBottomMargin - reviewButtonsHeight;
|
|
6032
|
-
helperBox = /* @__PURE__ */ (0,
|
|
6002
|
+
helperBox = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("small", { className: "camera-capture-instructions", children: reviewInstructions });
|
|
6033
6003
|
const frameWithReviewInstructionsMinBottomMargin = reviewButtonsHeight + reviewInstructionsHeight;
|
|
6034
6004
|
if (frameBottomMargin < frameWithReviewInstructionsMinBottomMargin) {
|
|
6035
|
-
helperBox = /* @__PURE__ */ (0,
|
|
6005
|
+
helperBox = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, {});
|
|
6036
6006
|
}
|
|
6037
6007
|
}
|
|
6038
6008
|
const framePosition = {
|
|
@@ -6050,14 +6020,14 @@ var Overlay = ({
|
|
|
6050
6020
|
width: "90%"
|
|
6051
6021
|
}
|
|
6052
6022
|
};
|
|
6053
|
-
return /* @__PURE__ */ (0,
|
|
6054
|
-
/* @__PURE__ */ (0,
|
|
6055
|
-
/* @__PURE__ */ (0,
|
|
6056
|
-
/* @__PURE__ */ (0,
|
|
6023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("svg", { ref: svgReference, xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6024
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("mask", { id: "mask", children: [
|
|
6025
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }),
|
|
6026
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("image", __spreadValues({ href: overlay }, framePosition))
|
|
6057
6027
|
] }) }),
|
|
6058
|
-
overlay && /* @__PURE__ */ (0,
|
|
6059
|
-
outline && /* @__PURE__ */ (0,
|
|
6060
|
-
/* @__PURE__ */ (0,
|
|
6028
|
+
overlay && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }),
|
|
6029
|
+
outline && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("image", __spreadValues({ href: outline }, framePosition)),
|
|
6030
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("foreignObject", { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", __spreadProps(__spreadValues({ className: "camera-capture-text-and-image-container" }, helperBoxPosition), { children: helperBox })) })
|
|
6061
6031
|
] });
|
|
6062
6032
|
};
|
|
6063
6033
|
var Overlay_default = Overlay;
|
|
@@ -6087,13 +6057,13 @@ var NoCameraAccess_messages_default = (0, import_react_intl24.defineMessages)({
|
|
|
6087
6057
|
});
|
|
6088
6058
|
|
|
6089
6059
|
// src/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.tsx
|
|
6090
|
-
var
|
|
6060
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6091
6061
|
var NoCameraAccess = ({ onAction }) => {
|
|
6092
6062
|
const intl = (0, import_react_intl25.useIntl)();
|
|
6093
|
-
return /* @__PURE__ */ (0,
|
|
6094
|
-
/* @__PURE__ */ (0,
|
|
6095
|
-
/* @__PURE__ */ (0,
|
|
6096
|
-
/* @__PURE__ */ (0,
|
|
6063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { id: "no-camera-access", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "container p-t-5", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "row", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [
|
|
6064
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("h2", { className: "text-xs-center m-b-3", children: intl.formatMessage(NoCameraAccess_messages_default.title) }),
|
|
6065
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs-center m-b-5", children: intl.formatMessage(NoCameraAccess_messages_default.paragraph) }),
|
|
6066
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_components28.Button, { block: true, onClick: onAction, children: intl.formatMessage(NoCameraAccess_messages_default.action) })
|
|
6097
6067
|
] }) }) }) });
|
|
6098
6068
|
};
|
|
6099
6069
|
var NoCameraAccess_default = NoCameraAccess;
|
|
@@ -6117,12 +6087,12 @@ var CameraNotSupported_messages_default = (0, import_react_intl26.defineMessages
|
|
|
6117
6087
|
});
|
|
6118
6088
|
|
|
6119
6089
|
// src/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.tsx
|
|
6120
|
-
var
|
|
6090
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
6121
6091
|
var CameraNotSupported = () => {
|
|
6122
6092
|
const intl = (0, import_react_intl27.useIntl)();
|
|
6123
|
-
return /* @__PURE__ */ (0,
|
|
6124
|
-
/* @__PURE__ */ (0,
|
|
6125
|
-
/* @__PURE__ */ (0,
|
|
6093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { id: "camera-not-supported", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "container p-t-5", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "row", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [
|
|
6094
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h2", { className: "text-xs-center m-b-3", children: intl.formatMessage(CameraNotSupported_messages_default.title) }),
|
|
6095
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-xs-center m-b-5", children: intl.formatMessage(CameraNotSupported_messages_default.paragraph) })
|
|
6126
6096
|
] }) }) }) });
|
|
6127
6097
|
};
|
|
6128
6098
|
var CameraNotSupported_default = CameraNotSupported;
|
|
@@ -6147,7 +6117,7 @@ var getCameraStartedProperties = async (props, videoStream) => {
|
|
|
6147
6117
|
};
|
|
6148
6118
|
|
|
6149
6119
|
// src/step/cameraStep/cameraCapture/CameraCapture.tsx
|
|
6150
|
-
var
|
|
6120
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
6151
6121
|
var CameraCapture = ({
|
|
6152
6122
|
direction = "back",
|
|
6153
6123
|
overlay = "",
|
|
@@ -6216,8 +6186,8 @@ var CameraCapture = ({
|
|
|
6216
6186
|
setReviewImage(void 0);
|
|
6217
6187
|
};
|
|
6218
6188
|
const handleRetryCameraAccess = () => setMode("CAPTURE");
|
|
6219
|
-
const captureScreen = /* @__PURE__ */ (0,
|
|
6220
|
-
videoConstraints && /* @__PURE__ */ (0,
|
|
6189
|
+
const captureScreen = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
6190
|
+
videoConstraints && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6221
6191
|
import_react_webcam.default,
|
|
6222
6192
|
{
|
|
6223
6193
|
ref: webcamReference,
|
|
@@ -6228,7 +6198,7 @@ var CameraCapture = ({
|
|
|
6228
6198
|
onUserMedia: handleUserMedia
|
|
6229
6199
|
}
|
|
6230
6200
|
),
|
|
6231
|
-
/* @__PURE__ */ (0,
|
|
6201
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6232
6202
|
Overlay_default,
|
|
6233
6203
|
{
|
|
6234
6204
|
overlay,
|
|
@@ -6238,11 +6208,11 @@ var CameraCapture = ({
|
|
|
6238
6208
|
instructions
|
|
6239
6209
|
}
|
|
6240
6210
|
),
|
|
6241
|
-
ready && /* @__PURE__ */ (0,
|
|
6211
|
+
ready && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CaptureBottomBar, { onCapture: () => void handleCapture() })
|
|
6242
6212
|
] });
|
|
6243
|
-
const reviewScreen = /* @__PURE__ */ (0,
|
|
6244
|
-
/* @__PURE__ */ (0,
|
|
6245
|
-
/* @__PURE__ */ (0,
|
|
6213
|
+
const reviewScreen = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
6214
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("img", { className: "review-image", src: reviewImage == null ? void 0 : reviewImage.source, alt: "" }),
|
|
6215
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6246
6216
|
Overlay_default,
|
|
6247
6217
|
{
|
|
6248
6218
|
overlay,
|
|
@@ -6252,19 +6222,19 @@ var CameraCapture = ({
|
|
|
6252
6222
|
reviewInstructions: intl.formatMessage(CameraCapture_messages_default.reviewInstructions)
|
|
6253
6223
|
}
|
|
6254
6224
|
),
|
|
6255
|
-
/* @__PURE__ */ (0,
|
|
6225
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ReviewBottomBar, { onSubmit: handleReviewSubmit, onRetry: handleReviewRetry })
|
|
6256
6226
|
] });
|
|
6257
|
-
return /* @__PURE__ */ (0,
|
|
6227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("section", { className: "camera-capture", children: [
|
|
6258
6228
|
mode === "CAPTURE" && captureScreen,
|
|
6259
6229
|
mode === "REVIEW" && reviewScreen,
|
|
6260
|
-
mode === "NO_CAMERA_ACCESS" && /* @__PURE__ */ (0,
|
|
6261
|
-
mode === "CAMERA_NOT_SUPPORTED" && /* @__PURE__ */ (0,
|
|
6230
|
+
mode === "NO_CAMERA_ACCESS" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NoCameraAccess_default, { onAction: handleRetryCameraAccess }),
|
|
6231
|
+
mode === "CAMERA_NOT_SUPPORTED" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CameraNotSupported_default, {})
|
|
6262
6232
|
] });
|
|
6263
6233
|
};
|
|
6264
6234
|
var CameraCapture_default = CameraCapture;
|
|
6265
6235
|
|
|
6266
6236
|
// src/step/cameraStep/CameraStep.tsx
|
|
6267
|
-
var
|
|
6237
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
6268
6238
|
function blobToBase64(blob) {
|
|
6269
6239
|
return new Promise((resolve, _) => {
|
|
6270
6240
|
const reader = new FileReader();
|
|
@@ -6302,7 +6272,7 @@ var CameraStep = (props) => {
|
|
|
6302
6272
|
});
|
|
6303
6273
|
}
|
|
6304
6274
|
};
|
|
6305
|
-
return /* @__PURE__ */ (0,
|
|
6275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
6306
6276
|
CameraCapture_default,
|
|
6307
6277
|
{
|
|
6308
6278
|
overlay,
|
|
@@ -6379,12 +6349,12 @@ var ExternalConfirmationStep_messages_default = (0, import_react_intl29.defineMe
|
|
|
6379
6349
|
});
|
|
6380
6350
|
|
|
6381
6351
|
// src/step/externalConfirmationStep/ExternalConfirmationStep.tsx
|
|
6382
|
-
var
|
|
6383
|
-
var
|
|
6352
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
6353
|
+
var noop4 = () => {
|
|
6384
6354
|
};
|
|
6385
6355
|
var ExternalConfirmationStep = ({ url, onClose }) => {
|
|
6386
6356
|
const { formatMessage } = (0, import_react_intl30.useIntl)();
|
|
6387
|
-
return /* @__PURE__ */ (0,
|
|
6357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
6388
6358
|
DynamicLayout_default,
|
|
6389
6359
|
{
|
|
6390
6360
|
components: [
|
|
@@ -6434,8 +6404,8 @@ var ExternalConfirmationStep = ({ url, onClose }) => {
|
|
|
6434
6404
|
}
|
|
6435
6405
|
onClose();
|
|
6436
6406
|
},
|
|
6437
|
-
onModelChange:
|
|
6438
|
-
onPersistAsync:
|
|
6407
|
+
onModelChange: noop4,
|
|
6408
|
+
onPersistAsync: noop4
|
|
6439
6409
|
}
|
|
6440
6410
|
);
|
|
6441
6411
|
};
|
|
@@ -6451,9 +6421,9 @@ function getOrigin(url) {
|
|
|
6451
6421
|
// src/dynamicFlow/BackButton.tsx
|
|
6452
6422
|
var import_components30 = require("@transferwise/components");
|
|
6453
6423
|
var import_icons2 = require("@transferwise/icons");
|
|
6454
|
-
var
|
|
6424
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
6455
6425
|
var BackButton = ({ title, action, onAction }) => {
|
|
6456
|
-
return /* @__PURE__ */ (0,
|
|
6426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
6457
6427
|
"a",
|
|
6458
6428
|
{
|
|
6459
6429
|
onClick: (event) => {
|
|
@@ -6464,8 +6434,8 @@ var BackButton = ({ title, action, onAction }) => {
|
|
|
6464
6434
|
className: "df-back-btn",
|
|
6465
6435
|
"aria-label": title,
|
|
6466
6436
|
children: [
|
|
6467
|
-
/* @__PURE__ */ (0,
|
|
6468
|
-
/* @__PURE__ */ (0,
|
|
6437
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "sr-only", children: title }),
|
|
6438
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_components30.Avatar, { type: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_icons2.ArrowLeft, { size: "24" }) })
|
|
6469
6439
|
]
|
|
6470
6440
|
}
|
|
6471
6441
|
);
|
|
@@ -6473,7 +6443,7 @@ var BackButton = ({ title, action, onAction }) => {
|
|
|
6473
6443
|
var BackButton_default = BackButton;
|
|
6474
6444
|
|
|
6475
6445
|
// src/dynamicFlow/DynamicFlowStep.tsx
|
|
6476
|
-
var
|
|
6446
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6477
6447
|
var DynamicFlowStep = (props) => {
|
|
6478
6448
|
var _a, _b, _c;
|
|
6479
6449
|
const { step, globalError, onAction } = props;
|
|
@@ -6484,15 +6454,15 @@ var DynamicFlowStep = (props) => {
|
|
|
6484
6454
|
return null;
|
|
6485
6455
|
}
|
|
6486
6456
|
if (externalUrl && requiresManualTrigger) {
|
|
6487
|
-
return /* @__PURE__ */ (0,
|
|
6457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ExternalConfirmationStep_default, { url: externalUrl, onClose: dismissConfirmation });
|
|
6488
6458
|
}
|
|
6489
6459
|
if (isCameraStep(step)) {
|
|
6490
|
-
return /* @__PURE__ */ (0,
|
|
6460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CameraStep_default, __spreadProps(__spreadValues({}, props), { step }));
|
|
6491
6461
|
}
|
|
6492
|
-
return /* @__PURE__ */ (0,
|
|
6493
|
-
backButton && /* @__PURE__ */ (0,
|
|
6494
|
-
globalError ? /* @__PURE__ */ (0,
|
|
6495
|
-
/* @__PURE__ */ (0,
|
|
6462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
6463
|
+
backButton && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(BackButton_default, __spreadProps(__spreadValues({}, backButton), { onAction })),
|
|
6464
|
+
globalError ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DynamicAlert_default, { component: { context: "negative", markdown: globalError, margin: "lg" } }) : null,
|
|
6465
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LayoutStep_default, __spreadProps(__spreadValues({}, props), { stepSpecification: step }))
|
|
6496
6466
|
] });
|
|
6497
6467
|
};
|
|
6498
6468
|
|
|
@@ -6638,7 +6608,7 @@ var isInlineSchema = (schema) => {
|
|
|
6638
6608
|
// src/dynamicFlow/utils/useLoader.tsx
|
|
6639
6609
|
var import_components31 = require("@transferwise/components");
|
|
6640
6610
|
var import_react39 = require("react");
|
|
6641
|
-
var
|
|
6611
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6642
6612
|
function useLoader(loaderConfig, initialState) {
|
|
6643
6613
|
const config = __spreadValues({
|
|
6644
6614
|
size: import_components31.Size.EXTRA_LARGE,
|
|
@@ -6647,7 +6617,7 @@ function useLoader(loaderConfig, initialState) {
|
|
|
6647
6617
|
}, loaderConfig);
|
|
6648
6618
|
const [loadingState, setLoadingState] = (0, import_react39.useState)(initialState);
|
|
6649
6619
|
const shouldDisplayLoader = config.initial && loadingState === "initial" || config.submission && loadingState === "submission";
|
|
6650
|
-
const loader = shouldDisplayLoader ? /* @__PURE__ */ (0,
|
|
6620
|
+
const loader = shouldDisplayLoader ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
6651
6621
|
import_components31.Loader,
|
|
6652
6622
|
{
|
|
6653
6623
|
size: config.size,
|
|
@@ -6664,10 +6634,10 @@ var import_react40 = require("react");
|
|
|
6664
6634
|
// src/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.tsx
|
|
6665
6635
|
var import_components32 = require("@transferwise/components");
|
|
6666
6636
|
var import_react_intl31 = require("react-intl");
|
|
6667
|
-
var
|
|
6637
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6668
6638
|
var ErrorBoundaryAlert = ({ onDismiss }) => {
|
|
6669
6639
|
const { formatMessage } = (0, import_react_intl31.useIntl)();
|
|
6670
|
-
return /* @__PURE__ */ (0,
|
|
6640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6671
6641
|
import_components32.Alert,
|
|
6672
6642
|
{
|
|
6673
6643
|
action: {
|
|
@@ -6683,8 +6653,8 @@ var ErrorBoundaryAlert = ({ onDismiss }) => {
|
|
|
6683
6653
|
};
|
|
6684
6654
|
|
|
6685
6655
|
// src/dynamicFlow/utils/errorBoundary/ErrorBoundary.tsx
|
|
6686
|
-
var
|
|
6687
|
-
var
|
|
6656
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6657
|
+
var noop5 = () => {
|
|
6688
6658
|
};
|
|
6689
6659
|
var ErrorBoundary = class extends import_react40.Component {
|
|
6690
6660
|
constructor(props) {
|
|
@@ -6698,14 +6668,14 @@ var ErrorBoundary = class extends import_react40.Component {
|
|
|
6698
6668
|
return { hasError: true, isFatalError: true };
|
|
6699
6669
|
}
|
|
6700
6670
|
componentDidCatch(error) {
|
|
6701
|
-
const { onError =
|
|
6671
|
+
const { onError = noop5 } = this.props;
|
|
6702
6672
|
onError(error);
|
|
6703
6673
|
}
|
|
6704
6674
|
render() {
|
|
6705
6675
|
const { children } = this.props;
|
|
6706
6676
|
const { hasError, isFatalError } = this.state;
|
|
6707
|
-
return /* @__PURE__ */ (0,
|
|
6708
|
-
hasError && /* @__PURE__ */ (0,
|
|
6677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
|
|
6678
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ErrorBoundaryAlert, { onDismiss: this.handleErrorReset }),
|
|
6709
6679
|
!isFatalError && children
|
|
6710
6680
|
] });
|
|
6711
6681
|
}
|
|
@@ -6810,8 +6780,8 @@ var assertResponseIsValid = (response) => {
|
|
|
6810
6780
|
var isResponse = (response) => typeof response === "object" && response !== null && "clone" in response && "bodyUsed" in response;
|
|
6811
6781
|
|
|
6812
6782
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
6813
|
-
var
|
|
6814
|
-
var
|
|
6783
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6784
|
+
var noop6 = () => {
|
|
6815
6785
|
};
|
|
6816
6786
|
var DynamicFlowComponent = ({
|
|
6817
6787
|
flowId,
|
|
@@ -6822,8 +6792,8 @@ var DynamicFlowComponent = ({
|
|
|
6822
6792
|
displayStepTitle = true,
|
|
6823
6793
|
onCompletion,
|
|
6824
6794
|
onError,
|
|
6825
|
-
onEvent =
|
|
6826
|
-
onLog =
|
|
6795
|
+
onEvent = noop6,
|
|
6796
|
+
onLog = noop6
|
|
6827
6797
|
}) => {
|
|
6828
6798
|
const { locale } = (0, import_react_intl32.useIntl)();
|
|
6829
6799
|
const {
|
|
@@ -7030,7 +7000,7 @@ var DynamicFlowComponent = ({
|
|
|
7030
7000
|
await actionHandler(action);
|
|
7031
7001
|
}
|
|
7032
7002
|
};
|
|
7033
|
-
return /* @__PURE__ */ (0,
|
|
7003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(LogProvider, { flowId, stepId: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), onLog, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(EventsContextProvider, { metadata: analyticsMetadata, onEvent, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DynamicFlowProvider, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(HttpClientProvider, { httpClient, children: loader !== null ? loader : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
7034
7004
|
DynamicFlowStep,
|
|
7035
7005
|
{
|
|
7036
7006
|
step,
|
|
@@ -7046,7 +7016,7 @@ var DynamicFlowComponent = ({
|
|
|
7046
7016
|
}
|
|
7047
7017
|
) }) }) }) });
|
|
7048
7018
|
};
|
|
7049
|
-
var DynamicFlow = (props) => /* @__PURE__ */ (0,
|
|
7019
|
+
var DynamicFlow = (props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ErrorBoundary_default, { onError: props.onError, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DynamicFlowComponent, __spreadValues({}, props)) });
|
|
7050
7020
|
var DynamicFlow_default = DynamicFlow;
|
|
7051
7021
|
var combineModels2 = (formModels) => {
|
|
7052
7022
|
return Object.values(formModels).reduce((previous, model) => __spreadValues(__spreadValues({}, previous), model), {});
|
|
@@ -7063,6 +7033,27 @@ var shouldTriggerRefresh = (props) => {
|
|
|
7063
7033
|
return type !== "init" && hasRefreshOnChange && (isValid() || wasValid());
|
|
7064
7034
|
};
|
|
7065
7035
|
|
|
7036
|
+
// src/jsonSchemaForm/JsonSchemaForm.tsx
|
|
7037
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7038
|
+
var JsonSchemaForm = (props) => {
|
|
7039
|
+
const schemaProps = __spreadValues({
|
|
7040
|
+
model: null,
|
|
7041
|
+
errors: null
|
|
7042
|
+
}, props);
|
|
7043
|
+
const { baseUrl = "", onEvent = noop7, onLog = noop7 } = props;
|
|
7044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(LogProvider, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7045
|
+
EventsContextProvider,
|
|
7046
|
+
{
|
|
7047
|
+
metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" },
|
|
7048
|
+
onEvent,
|
|
7049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(HttpClientProviderFromBaseUrl, { baseUrl, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(GenericSchema_default, __spreadValues({}, schemaProps)) })
|
|
7050
|
+
}
|
|
7051
|
+
) });
|
|
7052
|
+
};
|
|
7053
|
+
var JsonSchemaForm_default = JsonSchemaForm;
|
|
7054
|
+
var noop7 = () => {
|
|
7055
|
+
};
|
|
7056
|
+
|
|
7066
7057
|
// src/i18n/de.json
|
|
7067
7058
|
var de_default = {
|
|
7068
7059
|
"dynamicFlows.ArraySchema.addItem": "Speichern",
|