@wise/dynamic-flow-client-internal 2.8.7 → 2.8.8
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 +237 -235
- package/build/main.min.js +1 -1
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -84,7 +84,7 @@ var require_main_min = __commonJS({
|
|
|
84
84
|
};
|
|
85
85
|
var Ee = (e, t, r) => (r = e != null ? zm(qm(e)) : {}, nn(t || !e || !e.__esModule ? Zt(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
86
|
var $m = (e) => nn(Zt({}, "__esModule", { value: true }), e);
|
|
87
|
-
var Xe = Aa((
|
|
87
|
+
var Xe = Aa((cf, Ur) => {
|
|
88
88
|
"use strict";
|
|
89
89
|
(function() {
|
|
90
90
|
"use strict";
|
|
@@ -314,7 +314,7 @@ var require_main_min = __commonJS({
|
|
|
314
314
|
} }).default;
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
|
-
var Mc = Aa((
|
|
317
|
+
var Mc = Aa((VF, wr) => {
|
|
318
318
|
"use strict";
|
|
319
319
|
(function() {
|
|
320
320
|
"use strict";
|
|
@@ -374,9 +374,9 @@ var require_main_min = __commonJS({
|
|
|
374
374
|
} } }), t ? wr.exports = o : window.screenfull = o;
|
|
375
375
|
})();
|
|
376
376
|
});
|
|
377
|
-
var
|
|
378
|
-
Wm(
|
|
379
|
-
module2.exports = $m(
|
|
377
|
+
var Rp = {};
|
|
378
|
+
Wm(Rp, { DynamicFlow: () => Qo, JsonSchemaForm: () => en, Layout: () => ne, convertStepToLayout: () => Qt, inlineReferences: () => ze, isValidSchema: () => G, makeHttpClient: () => kr, translations: () => Nm });
|
|
379
|
+
module2.exports = $m(Rp);
|
|
380
380
|
function Qt(e, { displayStepTitle: t = true } = {}) {
|
|
381
381
|
if (e.layout)
|
|
382
382
|
return il(e, t);
|
|
@@ -1185,11 +1185,13 @@ var require_main_min = __commonJS({
|
|
|
1185
1185
|
let t = e.action.type;
|
|
1186
1186
|
return (r = e.control) != null ? r : t ? td[t] : "secondary";
|
|
1187
1187
|
};
|
|
1188
|
-
var rd = {
|
|
1188
|
+
var rd = { positive: "positive", negative: "negative", neutral: "accent", warning: "accent" };
|
|
1189
|
+
var ad = { primary: "accent", secondary: "accent", link: "accent", positive: "positive", negative: "negative" };
|
|
1189
1190
|
var hi = (e) => {
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1191
|
+
if (e.context)
|
|
1192
|
+
return rd[e.context];
|
|
1193
|
+
let t = e.action.type;
|
|
1194
|
+
return t ? ad[t] : "accent";
|
|
1193
1195
|
};
|
|
1194
1196
|
var gi = (e) => {
|
|
1195
1197
|
switch (e) {
|
|
@@ -1205,42 +1207,42 @@ var require_main_min = __commonJS({
|
|
|
1205
1207
|
}
|
|
1206
1208
|
};
|
|
1207
1209
|
var Ci = require("react/jsx-runtime");
|
|
1208
|
-
var
|
|
1210
|
+
var od = (e) => {
|
|
1209
1211
|
var l;
|
|
1210
1212
|
let { component: t, onAction: r } = e, a = t.action, o = hi(t), n = fi(t), { loading: i } = At(), c = V(t.margin || "md");
|
|
1211
1213
|
return (0, Ci.jsx)(wi.Button, { size: gi(t.size), type: n === "tertiary" ? void 0 : o, priority: n, block: true, className: c, disabled: t.disabled || a.disabled || i, onClick: () => r(a), children: (l = t.title) != null ? l : a.title });
|
|
1212
1214
|
};
|
|
1213
|
-
var Ka =
|
|
1215
|
+
var Ka = od;
|
|
1214
1216
|
var yt = require("react/jsx-runtime");
|
|
1215
|
-
var
|
|
1216
|
-
let t = e.component, { leftWidth: r, rightWidth: a } =
|
|
1217
|
+
var nd = (e) => {
|
|
1218
|
+
let t = e.component, { leftWidth: r, rightWidth: a } = id(t.bias);
|
|
1217
1219
|
return (0, yt.jsxs)("div", { className: `${V(t.margin || "xs")} row`, children: [(0, yt.jsx)("div", { className: `${r} m-b-0`, children: (0, yt.jsx)(ne, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, yt.jsx)("div", { className: `${a} m-b-0`, children: (0, yt.jsx)(ne, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
|
|
1218
1220
|
};
|
|
1219
|
-
var
|
|
1220
|
-
var Ja =
|
|
1221
|
+
var id = (e) => e === "left" ? { leftWidth: "col-md-8", rightWidth: "col-md-4" } : e === "right" ? { leftWidth: "col-md-4", rightWidth: "col-md-8" } : { leftWidth: "col-md-6", rightWidth: "col-md-6" };
|
|
1222
|
+
var Ja = nd;
|
|
1221
1223
|
var Gr = require("@transferwise/components");
|
|
1222
1224
|
var qr = require("react/jsx-runtime");
|
|
1223
|
-
function
|
|
1225
|
+
function sd({ component: e, onAction: t }) {
|
|
1224
1226
|
let { loading: r } = At();
|
|
1225
1227
|
return (0, qr.jsx)("div", { className: V(e.margin), children: (0, qr.jsx)(Gr.NavigationOptionsList, { children: e.options.map((a) => {
|
|
1226
1228
|
var o;
|
|
1227
1229
|
return (0, qr.jsx)(Gr.NavigationOption, { title: a.title, content: a.description, disabled: (o = a.disabled) != null ? o : r, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(a.action) }, JSON.stringify(a));
|
|
1228
1230
|
}) }) });
|
|
1229
1231
|
}
|
|
1230
|
-
var Xa =
|
|
1232
|
+
var Xa = sd;
|
|
1231
1233
|
var Si = require("react/jsx-runtime");
|
|
1232
|
-
var
|
|
1234
|
+
var cd = ({ component: e }) => {
|
|
1233
1235
|
let r = `m-t-0 ${V(e.margin)}`;
|
|
1234
1236
|
return (0, Si.jsx)("hr", { className: r });
|
|
1235
1237
|
};
|
|
1236
|
-
var Ya =
|
|
1238
|
+
var Ya = cd;
|
|
1237
1239
|
var Rt = require("@transferwise/components");
|
|
1238
1240
|
var Wr = require("react");
|
|
1239
1241
|
var xi = require("react-intl");
|
|
1240
1242
|
var Fi = require("react-intl");
|
|
1241
1243
|
var bi = (0, Fi.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1242
1244
|
var Ze = require("react/jsx-runtime");
|
|
1243
|
-
var
|
|
1245
|
+
var md = ({ component: e, onAction: t }) => {
|
|
1244
1246
|
let { requestUrl: r, responseHandlers: a, polling: o, retryTitle: n } = e, i = (0, xi.useIntl)(), c = (0, Wr.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1245
1247
|
(0, Wr.useEffect)(() => {
|
|
1246
1248
|
c();
|
|
@@ -1248,21 +1250,21 @@ var require_main_min = __commonJS({
|
|
|
1248
1250
|
let l = o && a ? C(s({}, o), { responseHandlers: a }) : void 0;
|
|
1249
1251
|
return ti(l, t), (0, Ze.jsxs)(Ze.Fragment, { children: [(0, Ze.jsx)(Rt.Loader, { size: Rt.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Ze.jsx)("br", {}), (0, Ze.jsx)(Rt.Button, { priority: "tertiary", block: true, onClick: c, children: n || i.formatMessage(bi.retryTitle) })] });
|
|
1250
1252
|
};
|
|
1251
|
-
var Za =
|
|
1253
|
+
var Za = md;
|
|
1252
1254
|
var qs = require("react");
|
|
1253
1255
|
var vi = require("@transferwise/components");
|
|
1254
1256
|
var Ai = Ee(Xe());
|
|
1255
1257
|
var Oi = require("react");
|
|
1256
1258
|
var Re = require("react/jsx-runtime");
|
|
1257
|
-
var
|
|
1258
|
-
var
|
|
1259
|
-
var
|
|
1259
|
+
var ld = (e, t) => t.map((r) => ce(e, r) || {});
|
|
1260
|
+
var dd = (e) => e.reduce((t, r) => s(s({}, r), t), {});
|
|
1261
|
+
var ud = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1260
1262
|
function Pi(e) {
|
|
1261
1263
|
let t = (o, n) => {
|
|
1262
1264
|
let i = e.schema.allOf[o];
|
|
1263
|
-
r[o] = ce(n.model, i) || {}, a(r), e.onChange(C(s({}, n), { model:
|
|
1264
|
-
}, [r, a] = (0, Oi.useState)(
|
|
1265
|
-
return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(vi.Header, { title: e.schema.title }), e.schema.description && (0, Re.jsx)("p", { children: e.schema.description }), (0, Re.jsx)("div", { className: "row", children: e.schema.allOf.map((o, n) => (0, Re.jsx)("div", { className: (0, Ai.default)(
|
|
1265
|
+
r[o] = ce(n.model, i) || {}, a(r), e.onChange(C(s({}, n), { model: dd(r) }));
|
|
1266
|
+
}, [r, a] = (0, Oi.useState)(ld(e.model, e.schema.allOf));
|
|
1267
|
+
return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(vi.Header, { title: e.schema.title }), e.schema.description && (0, Re.jsx)("p", { children: e.schema.description }), (0, Re.jsx)("div", { className: "row", children: e.schema.allOf.map((o, n) => (0, Re.jsx)("div", { className: (0, Ai.default)(ud(o.width)), children: (0, Re.jsx)(me, { schema: o, model: r[n], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (i) => t(n, C(s({}, i), { model: i.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
|
|
1266
1268
|
}
|
|
1267
1269
|
Pi.defaultProps = { disabled: false };
|
|
1268
1270
|
var Qa = Pi;
|
|
@@ -1277,11 +1279,11 @@ var require_main_min = __commonJS({
|
|
|
1277
1279
|
var Ue = require("react/jsx-runtime");
|
|
1278
1280
|
function Ei(e) {
|
|
1279
1281
|
var c;
|
|
1280
|
-
let t =
|
|
1282
|
+
let t = pd(e.schema), r = s(s(s({}, t), e.validationMessages), e.schema.validationMessages), a = (e.submitted || !e.changed) && !!e.errors, o = !a && (e.submitted || e.changed && e.blurred) && !!((c = e.validations) != null && c.length), n = e.schema.description && !a && !o, i = !!e.infoMessage;
|
|
1281
1283
|
return (0, Ue.jsxs)("div", { id: e.id, children: [a ? (0, Ue.jsx)($r.InlineAlert, { type: "error", children: e.errors }) : null, o ? (0, Ue.jsx)($r.InlineAlert, { type: "error", children: e.validations.map((l) => (0, Ue.jsx)("div", { children: r[l] }, l)) }) : null, (n || i) && (0, Ue.jsxs)($r.InlineAlert, { type: "info", children: [n && (0, Ue.jsx)("div", { children: e.schema.description }), i && (0, Ue.jsx)("div", { children: e.infoMessage })] })] });
|
|
1282
1284
|
}
|
|
1283
1285
|
Ei.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1284
|
-
function
|
|
1286
|
+
function pd(e) {
|
|
1285
1287
|
let { formatMessage: t, locale: r } = (0, ki.useIntl)(), a = { type: t(Se.type), minimum: t(Se.minimum, { minimum: e.minimum }), maximum: t(Se.maximum, { maximum: e.maximum }), minLength: t(Se.minLength, { minLength: e.minLength }), maxLength: t(Se.maxLength, { maxLength: e.maxLength }), pattern: t(Se.pattern), required: t(Se.required) };
|
|
1286
1288
|
if (e.format === "date") {
|
|
1287
1289
|
let o = { pattern: t(Se.patternDate), minimum: e.minimum ? t(Se.minimumDate, { minimum: (0, eo.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(Se.maximumDate, { maximum: (0, eo.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
@@ -1323,7 +1325,7 @@ var require_main_min = __commonJS({
|
|
|
1323
1325
|
var ft = require("react/jsx-runtime");
|
|
1324
1326
|
function Hi(e) {
|
|
1325
1327
|
var M, E;
|
|
1326
|
-
let { onChange: t, schema: r } = e, a = re(), o = ji(r), n = (0, sr.useMemo)(() => r.$id || Te(), [r.$id]), [i, c] = (0, sr.useState)(false), [l, m] = (0, sr.useState)(() =>
|
|
1328
|
+
let { onChange: t, schema: r } = e, a = re(), o = ji(r), n = (0, sr.useMemo)(() => r.$id || Te(), [r.$id]), [i, c] = (0, sr.useState)(false), [l, m] = (0, sr.useState)(() => yd(e.model || [])), p = qi(r.items.persistAsync), h = r.items.persistAsync.schema, y = Dt(h), u = async (P) => {
|
|
1327
1329
|
c(true);
|
|
1328
1330
|
try {
|
|
1329
1331
|
let D = await Ii(P, y);
|
|
@@ -1342,20 +1344,20 @@ var require_main_min = __commonJS({
|
|
|
1342
1344
|
t({ model: U, triggerSchema: r, triggerModel: U });
|
|
1343
1345
|
}
|
|
1344
1346
|
let w = Vi(l).map((P) => P.id), S = It(w, r, e.required), F = !!e.errors || (i || e.submitted) && !!S.length, g = "accepts" in h && h.accepts, v = "maxSize" in h && h.maxSize, O = C(s(s({ multiple: true, className: "form-control", files: l, fileInputName: n, id: n }, g ? { fileTypes: g } : void 0), v ? { sizeLimit: Nr(v) } : void 0), { sizeLimitErrorMessage: ((M = h.validationMessages) == null ? void 0 : M.maxSize) || o.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((E = e.schema.validationMessages) == null ? void 0 : E.maxItems) || o.maxItemsErrorMessage, uploadButtonTitle: h.title, description: h.description, disabled: e.disabled, onUploadFile: (P) => u(P.get(n)), onFilesChange: d, onDeleteFile: () => Promise.resolve() }), x = `${n}-feedback`;
|
|
1345
|
-
return (0, ft.jsxs)("div", { className: (0, Ui.default)("form-group", { "has-error": F }), children: [(0, ft.jsx)("label", { className: "d-block control-label", htmlFor: n, children: e.schema.title }), (0, ft.jsx)("div", { "aria-describedby": x, children: (0, ft.jsx)(_r.UploadInput, s({}, O)) }), (0, ft.jsx)(He, { id: x, changed: i, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages:
|
|
1347
|
+
return (0, ft.jsxs)("div", { className: (0, Ui.default)("form-group", { "has-error": F }), children: [(0, ft.jsx)("label", { className: "d-block control-label", htmlFor: n, children: e.schema.title }), (0, ft.jsx)("div", { "aria-describedby": x, children: (0, ft.jsx)(_r.UploadInput, s({}, O)) }), (0, ft.jsx)(He, { id: x, changed: i, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages: hd(r, !!e.required, o), infoMessage: null, focused: false, blurred: true })] });
|
|
1346
1348
|
}
|
|
1347
1349
|
Hi.defaultProps = { errors: null, required: false };
|
|
1348
1350
|
var to = Hi;
|
|
1349
1351
|
function Vi(e) {
|
|
1350
1352
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1351
1353
|
}
|
|
1352
|
-
function pd(e) {
|
|
1353
|
-
return e.map((t) => yd(t) ? { id: t, status: _r.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1354
|
-
}
|
|
1355
1354
|
function yd(e) {
|
|
1355
|
+
return e.map((t) => fd(t) ? { id: t, status: _r.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1356
|
+
}
|
|
1357
|
+
function fd(e) {
|
|
1356
1358
|
return z(e) || L(e);
|
|
1357
1359
|
}
|
|
1358
|
-
function
|
|
1360
|
+
function hd(e, t, r) {
|
|
1359
1361
|
let { minItems: a, maxItems: o } = e;
|
|
1360
1362
|
return s(s(s({}, t && { required: r.requiredMessage }), a && { minItems: r.minItemsErrorMessage }), o && { maxItems: r.maxItemsErrorMessage });
|
|
1361
1363
|
}
|
|
@@ -1370,13 +1372,13 @@ var require_main_min = __commonJS({
|
|
|
1370
1372
|
var ht = (0, _i.defineMessages)({ addItemTitle: { id: "dynamicFlows.ArraySchema.addItemTitle", defaultMessage: "Add Item", description: "Label on the button used to open a form to add an item" }, addItem: { id: "dynamicFlows.ArraySchema.addItem", defaultMessage: "Save", description: "Label on the add button used to submit a form that adds an item" }, editItem: { id: "dynamicFlows.ArraySchema.editItem", defaultMessage: "Save", description: "Label on the edit button used to submit a form that edits an item" }, removeItem: { id: "dynamicFlows.ArraySchema.removeItem", defaultMessage: "Remove", description: "Label on the remove button used to confirm deletion of an item" } });
|
|
1371
1373
|
var Ki = require("react-intl");
|
|
1372
1374
|
var Xi = require("react/jsx-runtime");
|
|
1373
|
-
function
|
|
1375
|
+
function gd({ type: e, schema: t, model: r, errors: a, submitted: o, onModelChange: n, onAction: i }) {
|
|
1374
1376
|
let { formatMessage: c } = (0, Ki.useIntl)(), l = { layout: [{ type: "form", schema: t.items }, { type: "button", control: "primary", action: { url: e, title: c(e === "add" ? ht.addItem : ht.editItem) } }, ...e === "edit" ? [{ type: "button", context: "negative", action: { url: "remove", title: c(ht.removeItem) } }] : []], title: "", actions: [], schemas: [] };
|
|
1375
1377
|
return (0, Xi.jsx)(Kr, { step: l, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: o, formErrors: a, globalError: null, onAction: (m) => {
|
|
1376
1378
|
i(m.url);
|
|
1377
1379
|
}, onModelChange: n });
|
|
1378
1380
|
}
|
|
1379
|
-
var Ji =
|
|
1381
|
+
var Ji = gd;
|
|
1380
1382
|
var Jr = (e, t) => {
|
|
1381
1383
|
let r = cr(e, t);
|
|
1382
1384
|
if (r >= 0)
|
|
@@ -1397,10 +1399,10 @@ var require_main_min = __commonJS({
|
|
|
1397
1399
|
function Nt(e, t) {
|
|
1398
1400
|
if (t == null)
|
|
1399
1401
|
return null;
|
|
1400
|
-
let r = e.oneOf.map((a) =>
|
|
1402
|
+
let r = e.oneOf.map((a) => wd(a).reduce((o, [n, i]) => we(i) && i.const === t[n] ? o + 2 : tr(i) && typeof t[n] != "undefined" ? o + 1 : o, 0));
|
|
1401
1403
|
return r.every((a) => a === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1402
1404
|
}
|
|
1403
|
-
function
|
|
1405
|
+
function wd(e) {
|
|
1404
1406
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1405
1407
|
}
|
|
1406
1408
|
var ro = (e, t, r = {}) => {
|
|
@@ -1415,20 +1417,20 @@ var require_main_min = __commonJS({
|
|
|
1415
1417
|
};
|
|
1416
1418
|
var Qe = (e) => {
|
|
1417
1419
|
let { schema: t, model: r, providesProp: a, getValueFromSchema: o } = e;
|
|
1418
|
-
if (
|
|
1420
|
+
if (bd(t.summary, a))
|
|
1419
1421
|
return o(t, r);
|
|
1420
1422
|
switch (dt(t)) {
|
|
1421
1423
|
case "object":
|
|
1422
|
-
return wd(e);
|
|
1423
|
-
case "oneOf":
|
|
1424
1424
|
return Cd(e);
|
|
1425
|
-
case "
|
|
1425
|
+
case "oneOf":
|
|
1426
1426
|
return Sd(e);
|
|
1427
|
+
case "allOf":
|
|
1428
|
+
return Fd(e);
|
|
1427
1429
|
default:
|
|
1428
1430
|
return null;
|
|
1429
1431
|
}
|
|
1430
1432
|
};
|
|
1431
|
-
var
|
|
1433
|
+
var Cd = (e) => {
|
|
1432
1434
|
let { schema: t, model: r } = e, a = t;
|
|
1433
1435
|
for (let o in a.properties) {
|
|
1434
1436
|
let n = a.properties[o], i = $(r) && o in r ? r[o] : null, c = Qe(C(s({}, e), { schema: n, model: i }));
|
|
@@ -1437,7 +1439,7 @@ var require_main_min = __commonJS({
|
|
|
1437
1439
|
}
|
|
1438
1440
|
return null;
|
|
1439
1441
|
};
|
|
1440
|
-
var
|
|
1442
|
+
var Sd = (e) => {
|
|
1441
1443
|
let { schema: t, model: r } = e;
|
|
1442
1444
|
if (lt(t)) {
|
|
1443
1445
|
if (!$(r))
|
|
@@ -1451,7 +1453,7 @@ var require_main_min = __commonJS({
|
|
|
1451
1453
|
let a = t, o = Jr(a, r);
|
|
1452
1454
|
return o === null || o < 0 ? null : Qe(C(s({}, e), { schema: a.oneOf[o] }));
|
|
1453
1455
|
};
|
|
1454
|
-
var
|
|
1456
|
+
var Fd = (e) => {
|
|
1455
1457
|
let { schema: t } = e, r = t;
|
|
1456
1458
|
for (let a of r.allOf) {
|
|
1457
1459
|
let o = Qe(C(s({}, e), { schema: a }));
|
|
@@ -1461,9 +1463,9 @@ var require_main_min = __commonJS({
|
|
|
1461
1463
|
return null;
|
|
1462
1464
|
};
|
|
1463
1465
|
var Yi = (e, t) => we(e) ? e.title ? e.title : L(e.const) ? e.const : null : jr(t) ? t : null;
|
|
1464
|
-
var
|
|
1466
|
+
var bd = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1465
1467
|
var Fe = require("react/jsx-runtime");
|
|
1466
|
-
var
|
|
1468
|
+
var xd = ({ schema: e, model: t, errors: r, submitted: a, onChange: o }) => {
|
|
1467
1469
|
let [n, i] = (0, Xr.useState)(null), [c, l] = (0, Xr.useState)(() => {
|
|
1468
1470
|
if (R(t) && !j(t))
|
|
1469
1471
|
throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
|
|
@@ -1480,14 +1482,14 @@ var require_main_min = __commonJS({
|
|
|
1480
1482
|
let F = S === "remove" ? null : ro(e.items, m.model, e == null ? void 0 : e.summary);
|
|
1481
1483
|
if (S !== "remove" && !G((v = F == null ? void 0 : F.value) != null ? v : null, e.items))
|
|
1482
1484
|
return;
|
|
1483
|
-
let g =
|
|
1485
|
+
let g = vd(S, { originalItem: m.item, updatedItem: F, itemSummaries: c });
|
|
1484
1486
|
l(g), h(g), p({ item: null, model: null }), i(null);
|
|
1485
1487
|
}, f = () => {
|
|
1486
1488
|
p({ item: null, model: null }), i(null);
|
|
1487
1489
|
}, { formatMessage: w } = (0, Qi.useIntl)();
|
|
1488
1490
|
return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((S) => (0, Fe.jsx)(Wi, { item: S, onClick: () => u(S) }, JSON.stringify(S))), (0, Fe.jsx)(Bt.NavigationOption, { onClick: y, media: (0, Fe.jsx)(Zi.Plus, {}), title: e.addItemTitle || w(ht.addItemTitle), showMediaAtAllSizes: true }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, onClose: f, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || w(ht.addItemTitle), body: (0, Fe.jsx)(Ji, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction: d, onModelChange: ({ model: S }) => p(C(s({}, m), { model: S })) }) })] });
|
|
1489
1491
|
};
|
|
1490
|
-
var
|
|
1492
|
+
var vd = (e, { originalItem: t, updatedItem: r, itemSummaries: a }) => {
|
|
1491
1493
|
if (e === "remove")
|
|
1492
1494
|
return (a || []).filter((o) => o !== t);
|
|
1493
1495
|
if (!r)
|
|
@@ -1501,7 +1503,7 @@ var require_main_min = __commonJS({
|
|
|
1501
1503
|
return null;
|
|
1502
1504
|
}
|
|
1503
1505
|
};
|
|
1504
|
-
var es =
|
|
1506
|
+
var es = xd;
|
|
1505
1507
|
var ao = require("react/jsx-runtime");
|
|
1506
1508
|
var ts = (e) => {
|
|
1507
1509
|
let { schema: t } = e;
|
|
@@ -1525,7 +1527,7 @@ var require_main_min = __commonJS({
|
|
|
1525
1527
|
var ns = Ee(Xe());
|
|
1526
1528
|
var Yr = require("react");
|
|
1527
1529
|
var fe = require("react/jsx-runtime");
|
|
1528
|
-
var
|
|
1530
|
+
var Ad = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1529
1531
|
function is(e) {
|
|
1530
1532
|
let [t, r] = (0, Yr.useState)(() => s({}, ce(e.model, e.schema))), a = (m, p) => {
|
|
1531
1533
|
p.model !== null ? t[m] = p.model : delete t[m], r(t), e.onChange(C(s({}, p), { model: t }));
|
|
@@ -1535,7 +1537,7 @@ var require_main_min = __commonJS({
|
|
|
1535
1537
|
r(m), Je(m, t) || e.onChange({ model: m, triggerSchema: e.schema, triggerModel: m });
|
|
1536
1538
|
}, [e.schema]);
|
|
1537
1539
|
let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), i = (m) => typeof e.schema.properties[m] != "undefined", c = Array.from(n).filter(i), l = e.errors;
|
|
1538
|
-
return (0, fe.jsxs)(fe.Fragment, { children: [e.schema.alert && (0, fe.jsx)(se, { component: e.schema.alert }), (0, fe.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, fe.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, fe.jsxs)("p", { children: [" ", e.schema.description, " "] }), (0, fe.jsx)("div", { className: "row", children: c.map((m) => (0, fe.jsx)("div", { className: (0, ns.default)(
|
|
1540
|
+
return (0, fe.jsxs)(fe.Fragment, { children: [e.schema.alert && (0, fe.jsx)(se, { component: e.schema.alert }), (0, fe.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, fe.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, fe.jsxs)("p", { children: [" ", e.schema.description, " "] }), (0, fe.jsx)("div", { className: "row", children: c.map((m) => (0, fe.jsx)("div", { className: (0, ns.default)(Ad(e.schema.properties[m].width)), children: (0, fe.jsx)(me, { schema: e.schema.properties[m], model: e.model && e.model[m], errors: l == null ? void 0 : l[m], submitted: e.submitted, required: o(m), disabled: e.disabled, onChange: (p) => a(m, p), onPersistAsync: e.onPersistAsync }) }, m)) })] })] });
|
|
1539
1541
|
}
|
|
1540
1542
|
is.defaultProps = { hideTitle: false, disabled: false };
|
|
1541
1543
|
var mr = is;
|
|
@@ -1547,11 +1549,11 @@ var require_main_min = __commonJS({
|
|
|
1547
1549
|
var ss = require("react-intl");
|
|
1548
1550
|
var cs = (0, ss.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
|
|
1549
1551
|
var no = require("react/jsx-runtime");
|
|
1550
|
-
function
|
|
1552
|
+
function Od(e) {
|
|
1551
1553
|
let t = (0, ms.useIntl)();
|
|
1552
1554
|
return (0, no.jsx)(Zr.Info, { className: "m-l-1", content: (0, no.jsx)(Zr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(cs.helpAria) });
|
|
1553
1555
|
}
|
|
1554
|
-
var qe =
|
|
1556
|
+
var qe = Od;
|
|
1555
1557
|
var gs = require("react");
|
|
1556
1558
|
var _ = require("@transferwise/components");
|
|
1557
1559
|
var ys = require("react");
|
|
@@ -1736,24 +1738,24 @@ var require_main_min = __commonJS({
|
|
|
1736
1738
|
var fs = (e, t) => {
|
|
1737
1739
|
switch (t) {
|
|
1738
1740
|
case "select":
|
|
1739
|
-
return
|
|
1741
|
+
return Md(e);
|
|
1740
1742
|
case "radio":
|
|
1741
1743
|
default:
|
|
1742
|
-
return
|
|
1744
|
+
return Pd(e);
|
|
1743
1745
|
}
|
|
1744
1746
|
};
|
|
1745
|
-
var
|
|
1746
|
-
var
|
|
1747
|
-
var
|
|
1748
|
-
var
|
|
1749
|
-
var
|
|
1747
|
+
var Pd = (e) => s(s(s({ label: e.title, value: e.const }, Ld(e.title, e.description)), Vt(e)), hs(e.disabled));
|
|
1748
|
+
var Md = (e) => s(s(s(s(s({ label: e.title, value: e.const }, Dd(e.title, e.description)), Id(e.icon)), Ed(e.image)), hs(e.disabled)), kd(e.keywords));
|
|
1749
|
+
var kd = (e) => j(e) ? { searchStrings: e } : {};
|
|
1750
|
+
var Ed = (e) => e != null && e.url ? { icon: (0, xe.jsx)("div", { className: "media", children: (0, xe.jsx)("div", { className: "np-option__no-media-circle", children: (0, xe.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
|
|
1751
|
+
var Id = (e) => e != null && e.name && Lt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && $a(e.name) ? { icon: (0, xe.jsx)(Ye, { type: e.name }) } : e != null && e.text ? { icon: (0, xe.jsx)("span", { children: e.text }) } : null;
|
|
1750
1752
|
var Vt = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, xe.jsx)(et.Avatar, { type: et.AvatarType.THUMBNAIL, children: (0, xe.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && $a(t.name) ? { avatar: (0, xe.jsx)(et.Avatar, { type: et.AvatarType.ICON, children: (0, xe.jsx)(Ye, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, xe.jsx)(et.Avatar, { type: et.AvatarType.INITIALS, children: t.text }) } : null;
|
|
1751
1753
|
var Qr = ({ accepts: e }) => s({}, j(e) && { usAccept: e.join(",") });
|
|
1752
|
-
var
|
|
1754
|
+
var Dd = (e, t) => {
|
|
1753
1755
|
if (e && t)
|
|
1754
1756
|
return { [(e + t).length > 50 ? "secondary" : "note"]: t };
|
|
1755
1757
|
};
|
|
1756
|
-
var
|
|
1758
|
+
var Ld = (e, t) => {
|
|
1757
1759
|
if (e && t)
|
|
1758
1760
|
return { note: t };
|
|
1759
1761
|
};
|
|
@@ -1762,30 +1764,30 @@ var require_main_min = __commonJS({
|
|
|
1762
1764
|
return { disabled: e };
|
|
1763
1765
|
};
|
|
1764
1766
|
var mo = require("react/jsx-runtime");
|
|
1765
|
-
var
|
|
1766
|
-
var lo = (e) => ge(e) ? e.control === N.TAB && e.oneOf.length > 3 ? N.SELECT : e.oneOf.length === 2 && !e.control ? N.RADIO : e.control || N.SELECT : Rr(e) ?
|
|
1767
|
-
var
|
|
1768
|
-
var
|
|
1769
|
-
var
|
|
1770
|
-
var
|
|
1767
|
+
var Td = (e) => e === "string" || e === "number";
|
|
1768
|
+
var lo = (e) => ge(e) ? e.control === N.TAB && e.oneOf.length > 3 ? N.SELECT : e.oneOf.length === 2 && !e.control ? N.RADIO : e.control || N.SELECT : Rr(e) ? Rd(e) : "control" in e && e.control ? e.control : e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1769
|
+
var Rd = ({ format: e, control: t }) => t ? Nd[t] || t : e && Bd[e] || "text";
|
|
1770
|
+
var Nd = { "date-lookup": "date-lookup", password: "password", textarea: "textarea", email: "email", numeric: "numeric", "phone-number": "tel" };
|
|
1771
|
+
var Bd = { date: "date", email: "email", base64url: "file", password: "password", "phone-number": "tel" };
|
|
1772
|
+
var zd = (e, t) => e.oneOf ? e.oneOf.map((r) => fs(r, t)) : null;
|
|
1771
1773
|
function ws(e) {
|
|
1772
|
-
let { id: t, schema: r, value: a, disabled: o, onChange: n, onFocus: i, onBlur: c, onSearchChange: l, describedBy: m } = e, p = Mt(), h = (F) =>
|
|
1774
|
+
let { id: t, schema: r, value: a, disabled: o, onChange: n, onFocus: i, onBlur: c, onSearchChange: l, describedBy: m } = e, p = Mt(), h = (F) => Td(r.type) && (I(F) || Y(F)) ? "" : F, y = (F, g) => {
|
|
1773
1775
|
n($e(F, r), g);
|
|
1774
1776
|
}, u = lo(r);
|
|
1775
1777
|
(0, gs.useEffect)(() => {
|
|
1776
|
-
|
|
1778
|
+
jd(r, p, u);
|
|
1777
1779
|
}, [JSON.stringify(r), p, u]);
|
|
1778
|
-
let d = r.values ||
|
|
1780
|
+
let d = r.values || zd(r, u), f = { onFocus: i, onBlur: c, onSearchChange: l, onChange: y }, w = h(a), S = { id: t, name: t, label: r.title, options: d || [], placeholder: r.placeholder, autoComplete: !r.help, autocompleteHint: r.autocompleteHint, disabled: o || r.disabled, displayPattern: r.displayFormat, uploadProps: Qr(r), describedBy: m };
|
|
1779
1781
|
return (0, mo.jsx)("div", { "aria-describedby": m, children: (0, mo.jsx)(jt, s(s({ type: u, value: w }, f), S)) });
|
|
1780
1782
|
}
|
|
1781
1783
|
ws.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1782
|
-
var
|
|
1784
|
+
var jd = (e, t, r) => {
|
|
1783
1785
|
ge(e) && e.oneOf.length === 2 && !e.control && t.warning("Deprecation warning", 'A oneOf schema with 2 options and no control type currently renders as a "radio" but will be changed to render as a "select". Please specify control radio to retain the existing behaviour.'), r === "file" && t.warning("Deprecation warning", "Please use a persist-async blob schema instead of string with base64url for file uploads. The base64url does not perform well on low end devices. Support for this schema will be removed in a later release."), e.values && t.warning("Deprecated schema", "Schema.values is a legacy approach. Please use oneOf.");
|
|
1784
1786
|
};
|
|
1785
1787
|
var lr = ws;
|
|
1786
1788
|
var Q = require("react/jsx-runtime");
|
|
1787
1789
|
function Fs(e) {
|
|
1788
|
-
let t = re(), [r, a] = (0, Ne.useState)(false), [o, n] = (0, Ne.useState)(false), [i, c] = (0, Ne.useState)(false), l = (0, Ne.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), [m, p] = (0, Ne.useState)(Jr(e.schema, e.model)), [h, y] = (0, Ne.useState)(
|
|
1790
|
+
let t = re(), [r, a] = (0, Ne.useState)(false), [o, n] = (0, Ne.useState)(false), [i, c] = (0, Ne.useState)(false), l = (0, Ne.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), [m, p] = (0, Ne.useState)(Jr(e.schema, e.model)), [h, y] = (0, Ne.useState)(qd(e.model, e.schema.oneOf)), u = Qn(t, 200), d = (M) => {
|
|
1789
1791
|
u("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: M.length });
|
|
1790
1792
|
};
|
|
1791
1793
|
if ((0, Ne.useEffect)(() => {
|
|
@@ -1808,28 +1810,28 @@ var require_main_min = __commonJS({
|
|
|
1808
1810
|
} else
|
|
1809
1811
|
e.onChange({ model: h[M], triggerSchema: P, triggerModel: h[M], type: E });
|
|
1810
1812
|
E !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: P == null ? void 0 : P.analyticsId });
|
|
1811
|
-
}, g =
|
|
1812
|
-
return (0, Q.jsxs)(Q.Fragment, { children: [(e.schema.oneOf.length > 1 || we(e.schema.oneOf[0])) && (0, Q.jsxs)(Q.Fragment, { children: [e.schema.alert && (0, Q.jsx)(se, { component: e.schema.alert }), (0, Q.jsxs)("div", { className: (0, Ss.default)(O), children: [
|
|
1813
|
+
}, g = Gd(e.schema), v = Ud(e, m), O = { "form-group": true, "has-error": !r && e.errors && !kt(e.errors) || (e.submitted || r && i) && v.length }, x = `${l}-feedback`;
|
|
1814
|
+
return (0, Q.jsxs)(Q.Fragment, { children: [(e.schema.oneOf.length > 1 || we(e.schema.oneOf[0])) && (0, Q.jsxs)(Q.Fragment, { children: [e.schema.alert && (0, Q.jsx)(se, { component: e.schema.alert }), (0, Q.jsxs)("div", { className: (0, Ss.default)(O), children: [Vd(e.schema, l), (0, Q.jsx)(lr, { id: l, schema: g, value: m, disabled: e.disabled, describedBy: x, onChange: F, onFocus: w, onBlur: S, onSearchChange: d }), (0, Q.jsx)(He, { id: x, changed: r, focused: o, blurred: i, submitted: e.submitted, errors: Hd(e.errors), schema: e.schema, validations: v, infoMessage: null })] })] }), tr(e.schema.oneOf[m]) && (0, Q.jsx)(me, { schema: e.schema.oneOf[m], model: h[m], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (M) => f(m, M), onPersistAsync: e.onPersistAsync })] });
|
|
1813
1815
|
}
|
|
1814
|
-
function
|
|
1816
|
+
function Vd(e, t) {
|
|
1815
1817
|
var o;
|
|
1816
1818
|
let r = e.help ? (0, Q.jsx)(qe, { help: e.help }) : null, a = we(e.oneOf[0]) ? (0, Q.jsx)("div", { className: "m-b-1", children: (0, Q.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) }) : (0, Q.jsx)(Q.Fragment, { children: r ? (0, Q.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] }) : (0, Q.jsx)(Cs.Header, { title: (o = e.title) != null ? o : "" }) });
|
|
1817
1819
|
return e.title ? a : r;
|
|
1818
1820
|
}
|
|
1819
|
-
function
|
|
1821
|
+
function Ud(e, t) {
|
|
1820
1822
|
let r = e.schema.oneOf[t != null ? t : -1];
|
|
1821
1823
|
return we(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
|
|
1822
1824
|
}
|
|
1823
|
-
function
|
|
1825
|
+
function Hd(e) {
|
|
1824
1826
|
return typeof e == "string" ? e : null;
|
|
1825
1827
|
}
|
|
1826
|
-
function
|
|
1828
|
+
function qd(e, t) {
|
|
1827
1829
|
return t.map((r) => Et(e, r));
|
|
1828
1830
|
}
|
|
1829
|
-
function
|
|
1830
|
-
return C(s({}, e), { oneOf: e.oneOf.map(
|
|
1831
|
+
function Gd(e) {
|
|
1832
|
+
return C(s({}, e), { oneOf: e.oneOf.map(Wd) });
|
|
1831
1833
|
}
|
|
1832
|
-
function
|
|
1834
|
+
function Wd(e, t) {
|
|
1833
1835
|
let { title: r, description: a, disabled: o = false, icon: n, image: i, keywords: c } = e;
|
|
1834
1836
|
return { title: r, description: a, disabled: o, icon: n, image: i, const: t, keywords: c };
|
|
1835
1837
|
}
|
|
@@ -1912,41 +1914,41 @@ var require_main_min = __commonJS({
|
|
|
1912
1914
|
var Ns = Rs;
|
|
1913
1915
|
var Ge = require("react/jsx-runtime");
|
|
1914
1916
|
var zs = (e) => e.promoted === true;
|
|
1915
|
-
var
|
|
1917
|
+
var $d = (e) => {
|
|
1916
1918
|
var c;
|
|
1917
|
-
let [t, r] = (0, Bs.useState)(Ms(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), a = e.schema.alert, o = e.schema.oneOf.find(zs), n =
|
|
1919
|
+
let [t, r] = (0, Bs.useState)(Ms(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), a = e.schema.alert, o = e.schema.oneOf.find(zs), n = _d(o), i = Kd(e.schema);
|
|
1918
1920
|
return (0, Ge.jsxs)(Ge.Fragment, { children: [a && (0, Ge.jsx)(se, { component: a }), (0, Ge.jsx)(Ns, { id: e.schema.$id, title: e.schema.title, promotedOneOf: o, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ge.jsx)(mr, C(s({}, e), { schema: n })), t === "other" && (0, Ge.jsx)(me, C(s({}, e), { schema: i }))] });
|
|
1919
1921
|
};
|
|
1920
|
-
function
|
|
1922
|
+
function _d(e) {
|
|
1921
1923
|
return C(s({}, e), { title: void 0, description: void 0 });
|
|
1922
1924
|
}
|
|
1923
|
-
function
|
|
1925
|
+
function Kd(e) {
|
|
1924
1926
|
var a, o, n;
|
|
1925
1927
|
let t = (a = e.promotion) != null && a.displayTwice ? [...e.oneOf] : e.oneOf.filter((i) => !zs(i)), r = (n = (o = e.promotion) == null ? void 0 : o.other.heading) == null ? void 0 : n.text;
|
|
1926
1928
|
return t.length === 1 ? C(s({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
|
|
1927
1929
|
}
|
|
1928
|
-
var Co =
|
|
1930
|
+
var Co = $d;
|
|
1929
1931
|
var ta = require("@transferwise/components");
|
|
1930
1932
|
var Vs = require("react-intl");
|
|
1931
1933
|
var js = require("react-intl");
|
|
1932
1934
|
var So = (0, js.defineMessages)({ yes: { id: "dynamicFlows.ReadOnlySchema.yes", defaultMessage: "Yes", description: "Yes, used for boolean schemas with a value of true." }, no: { id: "dynamicFlows.ReadOnlySchema.no", defaultMessage: "No", description: "No: used for boolean schemas with a value of false." } });
|
|
1933
1935
|
var qt = require("react/jsx-runtime");
|
|
1934
|
-
function
|
|
1935
|
-
let { title: r = "" } = e, { formatMessage: a } = (0, Vs.useIntl)(), o =
|
|
1936
|
+
function Jd({ schema: e, model: t }) {
|
|
1937
|
+
let { title: r = "" } = e, { formatMessage: a } = (0, Vs.useIntl)(), o = Xd({ schema: e, model: t, formatMessage: a });
|
|
1936
1938
|
return (0, qt.jsx)(ta.DefinitionList, { layout: ta.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: o, key: "" }] });
|
|
1937
1939
|
}
|
|
1938
|
-
var Fo =
|
|
1939
|
-
function
|
|
1940
|
-
return Ve(e) ? ge(e) ?
|
|
1941
|
-
}
|
|
1942
|
-
function Xd(e, t) {
|
|
1943
|
-
let r = Yd(e, t);
|
|
1944
|
-
return r ? Zd(r) : t;
|
|
1940
|
+
var Fo = Jd;
|
|
1941
|
+
function Xd({ schema: e, model: t, formatMessage: r }) {
|
|
1942
|
+
return Ve(e) ? ge(e) ? Yd(e, t) : e.type === "boolean" && Ie(t) ? r(t ? So.yes : So.no) : t && t.toString() || "" : "";
|
|
1945
1943
|
}
|
|
1946
1944
|
function Yd(e, t) {
|
|
1945
|
+
let r = Zd(e, t);
|
|
1946
|
+
return r ? Qd(r) : t;
|
|
1947
|
+
}
|
|
1948
|
+
function Zd(e, t) {
|
|
1947
1949
|
return e.oneOf.find((r) => "const" in r ? t === r.const : false);
|
|
1948
1950
|
}
|
|
1949
|
-
function
|
|
1951
|
+
function Qd(e) {
|
|
1950
1952
|
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Vt({ icon: e.icon });
|
|
1951
1953
|
return r != null && r.avatar ? (0, qt.jsxs)(qt.Fragment, { children: [r.avatar, " ", t] }) : t;
|
|
1952
1954
|
}
|
|
@@ -1984,10 +1986,10 @@ var require_main_min = __commonJS({
|
|
|
1984
1986
|
var bo = Us;
|
|
1985
1987
|
var he = require("react/jsx-runtime");
|
|
1986
1988
|
var Gs = require("react");
|
|
1987
|
-
function
|
|
1989
|
+
function eu(e) {
|
|
1988
1990
|
let { schema: t, model: r = null, errors: a = null, hideTitle: o = false, disabled: n = false } = e, i = C(s({}, e), { model: r, errors: a, hideTitle: o, disabled: n }), c = dt(t), l = Mt();
|
|
1989
1991
|
switch ((0, qs.useEffect)(() => {
|
|
1990
|
-
|
|
1992
|
+
tu(t, r, a) || l.error("Invalid schema or model", `Schema of type ${c || "undefined"} requested, but schema did not pass validation.`);
|
|
1991
1993
|
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(a), c, l]), c) {
|
|
1992
1994
|
case "readOnly":
|
|
1993
1995
|
return (0, he.jsx)(Fo, s({}, i));
|
|
@@ -2012,8 +2014,8 @@ var require_main_min = __commonJS({
|
|
|
2012
2014
|
}
|
|
2013
2015
|
return (0, he.jsx)(he.Fragment, {});
|
|
2014
2016
|
}
|
|
2015
|
-
var me =
|
|
2016
|
-
var
|
|
2017
|
+
var me = eu;
|
|
2018
|
+
var tu = (e, t, r) => {
|
|
2017
2019
|
switch (dt(e)) {
|
|
2018
2020
|
case "persistAsync":
|
|
2019
2021
|
return Br(e) && jr(t) && rr(r);
|
|
@@ -2035,21 +2037,21 @@ var require_main_min = __commonJS({
|
|
|
2035
2037
|
return false;
|
|
2036
2038
|
};
|
|
2037
2039
|
var xo = require("react/jsx-runtime");
|
|
2038
|
-
function
|
|
2040
|
+
function ru({ component: e, model: t = null, errors: r = null, submitted: a, onModelChange: o, onPersistAsync: n }) {
|
|
2039
2041
|
let i = e.schema;
|
|
2040
2042
|
return (0, xo.jsx)("div", { className: V(e.margin || "md"), children: (0, xo.jsx)(me, { schema: i, model: t, errors: r, submitted: a, onChange: (c) => {
|
|
2041
2043
|
o(s({ formSchema: i }, c));
|
|
2042
2044
|
}, onPersistAsync: n }) });
|
|
2043
2045
|
}
|
|
2044
|
-
var vo =
|
|
2046
|
+
var vo = ru;
|
|
2045
2047
|
var ra = require("@transferwise/components");
|
|
2046
2048
|
var Ws = Ee(Xe());
|
|
2047
2049
|
var ve = require("react/jsx-runtime");
|
|
2048
|
-
var
|
|
2050
|
+
var au = (e) => {
|
|
2049
2051
|
let { text: t, size: r = "md", align: a = "left", margin: o = "md", control: n } = e.component, i = (0, Ws.default)(Ce({ align: a, margin: o }));
|
|
2050
|
-
return n === "display" ? (0, ve.jsx)(
|
|
2052
|
+
return n === "display" ? (0, ve.jsx)(nu, { size: r, text: t, classes: i }) : (0, ve.jsx)(ou, { size: r, text: t, classes: i });
|
|
2051
2053
|
};
|
|
2052
|
-
var
|
|
2054
|
+
var ou = ({ size: e, text: t, classes: r }) => {
|
|
2053
2055
|
switch (e) {
|
|
2054
2056
|
case "xs":
|
|
2055
2057
|
return (0, ve.jsx)("h5", { className: r, children: t });
|
|
@@ -2064,7 +2066,7 @@ var require_main_min = __commonJS({
|
|
|
2064
2066
|
return (0, ve.jsx)("h3", { className: r, children: t });
|
|
2065
2067
|
}
|
|
2066
2068
|
};
|
|
2067
|
-
var
|
|
2069
|
+
var nu = ({ size: e, text: t, classes: r }) => {
|
|
2068
2070
|
switch (e) {
|
|
2069
2071
|
case "xs":
|
|
2070
2072
|
case "sm":
|
|
@@ -2077,7 +2079,7 @@ var require_main_min = __commonJS({
|
|
|
2077
2079
|
return (0, ve.jsx)(ra.Display, { type: "display-medium", className: r, children: t });
|
|
2078
2080
|
}
|
|
2079
2081
|
};
|
|
2080
|
-
var Ao =
|
|
2082
|
+
var Ao = au;
|
|
2081
2083
|
var Oo = require("@transferwise/components");
|
|
2082
2084
|
var ur = require("react/jsx-runtime");
|
|
2083
2085
|
var Po = ({ component: e }) => {
|
|
@@ -2088,43 +2090,43 @@ var require_main_min = __commonJS({
|
|
|
2088
2090
|
var $s = require("@transferwise/components");
|
|
2089
2091
|
var aa = require("react");
|
|
2090
2092
|
var ko = require("react/jsx-runtime");
|
|
2091
|
-
function
|
|
2093
|
+
function iu({ component: e }) {
|
|
2092
2094
|
let { url: t, size: r, text: a, margin: o, accessibilityDescription: n } = e, i = ae(), [c, l] = (0, aa.useState)("");
|
|
2093
2095
|
(0, aa.useEffect)(() => {
|
|
2094
|
-
|
|
2096
|
+
cu(i, t).then(l);
|
|
2095
2097
|
}, [t, i]);
|
|
2096
2098
|
let m = { alt: n || a || "", src: c, stretch: true, shrink: true };
|
|
2097
2099
|
return c ? (0, ko.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, ko.jsx)($s.Image, s({ className: `img-responsive ${V(o || "md")}` }, m)) }) : null;
|
|
2098
2100
|
}
|
|
2099
|
-
var
|
|
2101
|
+
var su = (e) => new Promise((t, r) => {
|
|
2100
2102
|
let a = new FileReader();
|
|
2101
2103
|
a.addEventListener("loadend", () => t(a.result)), a.addEventListener("error", (o) => r(o)), a.readAsDataURL(e);
|
|
2102
2104
|
});
|
|
2103
|
-
var
|
|
2105
|
+
var cu = async (e, t) => {
|
|
2104
2106
|
var r;
|
|
2105
2107
|
try {
|
|
2106
2108
|
return vn(t) || t != null && t.startsWith(`${(r = window == null ? void 0 : window.location) == null ? void 0 : r.origin}/`) ? e(t, { method: "GET", headers: { "Content-Type": "image/image" }, credentials: "same-origin" }).then((a) => {
|
|
2107
2109
|
if (a.ok)
|
|
2108
2110
|
return a.blob();
|
|
2109
2111
|
throw new Error("Image fetching failed");
|
|
2110
|
-
}).then(
|
|
2112
|
+
}).then(su).catch(() => t) : t;
|
|
2111
2113
|
} catch (a) {
|
|
2112
2114
|
return t;
|
|
2113
2115
|
}
|
|
2114
2116
|
};
|
|
2115
|
-
var Eo =
|
|
2117
|
+
var Eo = iu;
|
|
2116
2118
|
var oa = require("@transferwise/components");
|
|
2117
2119
|
var pr = require("react/jsx-runtime");
|
|
2118
|
-
var
|
|
2119
|
-
var
|
|
2120
|
-
var
|
|
2121
|
-
let { items: t } = e, r = t.filter((o) =>
|
|
2120
|
+
var mu = ["positive", "neutral"];
|
|
2121
|
+
var lu = ["warning", "negative"];
|
|
2122
|
+
var du = ({ component: e }) => {
|
|
2123
|
+
let { items: t } = e, r = t.filter((o) => mu.includes(o.context)).map(({ text: o }) => o), a = t.filter((o) => lu.includes(o.context)).map(({ text: o }) => o);
|
|
2122
2124
|
return (0, pr.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, pr.jsx)(oa.Header, { title: e.title }) : null, (0, pr.jsx)(oa.InstructionsList, { dos: r, donts: a })] });
|
|
2123
2125
|
};
|
|
2124
|
-
var Io =
|
|
2126
|
+
var Io = du;
|
|
2125
2127
|
var H = require("react/jsx-runtime");
|
|
2126
2128
|
var K = (e) => JSON.stringify(e);
|
|
2127
|
-
function
|
|
2129
|
+
function uu(e) {
|
|
2128
2130
|
let { components: t, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c, baseUrl: l } = e, m = (p) => {
|
|
2129
2131
|
switch (p.type) {
|
|
2130
2132
|
case "heading":
|
|
@@ -2172,25 +2174,25 @@ var require_main_min = __commonJS({
|
|
|
2172
2174
|
};
|
|
2173
2175
|
return wn() || l == null ? (0, H.jsx)(H.Fragment, { children: t.map(m) }) : (0, H.jsx)(Ir, { baseUrl: l, children: t.map(m) });
|
|
2174
2176
|
}
|
|
2175
|
-
var ne =
|
|
2177
|
+
var ne = uu;
|
|
2176
2178
|
var na = require("@transferwise/components");
|
|
2177
2179
|
var Gt = require("react/jsx-runtime");
|
|
2178
|
-
var
|
|
2179
|
-
var
|
|
2180
|
-
let o = s(s({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Gt.jsx)(Ye, { type: r.name }) } : {}), a ? { status:
|
|
2180
|
+
var pu = ({ component: e }) => (0, Gt.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, Gt.jsx)(na.Header, { title: e.title }) : null, e.items.map(yu)] });
|
|
2181
|
+
var yu = ({ title: e, description: t, icon: r, status: a }) => {
|
|
2182
|
+
let o = s(s({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Gt.jsx)(Ye, { type: r.name }) } : {}), a ? { status: gu[a] } : {});
|
|
2181
2183
|
return (0, Gt.jsx)(na.Summary, s({}, o));
|
|
2182
2184
|
};
|
|
2183
|
-
var
|
|
2184
|
-
var
|
|
2185
|
-
var
|
|
2186
|
-
var Do =
|
|
2185
|
+
var fu = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2186
|
+
var hu = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2187
|
+
var gu = s(s({}, fu), hu);
|
|
2188
|
+
var Do = pu;
|
|
2187
2189
|
var _s = require("@transferwise/components");
|
|
2188
2190
|
var Ks = require("react/jsx-runtime");
|
|
2189
|
-
var
|
|
2191
|
+
var wu = ({ component: e }) => {
|
|
2190
2192
|
let { margin: t = "md", size: r = "md" } = e;
|
|
2191
2193
|
return (0, Ks.jsx)(_s.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${V(t)}` }, "data-testid": "loading-indicator" });
|
|
2192
2194
|
};
|
|
2193
|
-
var yr =
|
|
2195
|
+
var yr = wu;
|
|
2194
2196
|
var Qs = require("@transferwise/components");
|
|
2195
2197
|
var ec = require("react-intl");
|
|
2196
2198
|
var Js = require("react-intl");
|
|
@@ -2199,39 +2201,39 @@ var require_main_min = __commonJS({
|
|
|
2199
2201
|
var Ys = require("react");
|
|
2200
2202
|
function Zs() {
|
|
2201
2203
|
let e = (0, Ys.useContext)(Xs.SnackbarContext);
|
|
2202
|
-
return e ? e.createSnackbar :
|
|
2204
|
+
return e ? e.createSnackbar : Cu;
|
|
2203
2205
|
}
|
|
2204
|
-
function
|
|
2206
|
+
function Cu() {
|
|
2205
2207
|
}
|
|
2206
2208
|
var tt = require("react/jsx-runtime");
|
|
2207
|
-
function Cu({ component: e }) {
|
|
2208
|
-
return e.control === "copyable" ? (0, tt.jsx)(Fu, { component: e }) : (0, tt.jsx)(Su, { component: e });
|
|
2209
|
-
}
|
|
2210
2209
|
function Su({ component: e }) {
|
|
2211
|
-
return (0, tt.
|
|
2210
|
+
return e.control === "copyable" ? (0, tt.jsx)(bu, { component: e }) : (0, tt.jsx)(Fu, { component: e });
|
|
2212
2211
|
}
|
|
2213
2212
|
function Fu({ component: e }) {
|
|
2213
|
+
return (0, tt.jsxs)("p", { className: Ce(e), children: [" ", e.text, " "] });
|
|
2214
|
+
}
|
|
2215
|
+
function bu({ component: e }) {
|
|
2214
2216
|
let { formatMessage: t } = (0, ec.useIntl)(), r = Zs(), { text: a } = e, o = () => {
|
|
2215
2217
|
var i;
|
|
2216
|
-
(i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(Bo.copied) })).catch(
|
|
2218
|
+
(i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(Bo.copied) })).catch(xu);
|
|
2217
2219
|
}, n = `${Ce({ align: e.align, margin: "sm" })} form-control`;
|
|
2218
2220
|
return (0, tt.jsxs)("div", { className: Ce(e), children: [(0, tt.jsx)("input", { type: "text", className: n, value: a, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, tt.jsx)(Qs.Button, { block: true, onClick: o, children: t(Bo.copy) })] });
|
|
2219
2221
|
}
|
|
2220
|
-
function
|
|
2222
|
+
function xu() {
|
|
2221
2223
|
}
|
|
2222
|
-
var Lo =
|
|
2224
|
+
var Lo = Su;
|
|
2223
2225
|
var ia = require("@transferwise/components");
|
|
2224
2226
|
var le = require("react/jsx-runtime");
|
|
2225
|
-
var
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2228
|
-
function
|
|
2227
|
+
var vu = (e, t) => t.fields.map(({ label: r, value: a, help: o }, n) => ({ key: String(n), title: r, value: Au(a, o, e) }));
|
|
2228
|
+
var Au = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, le.jsxs)(le.Fragment, { children: [(0, le.jsx)(qe, { help: t }), " ", e] }) : (0, le.jsxs)(le.Fragment, { children: [e, " ", (0, le.jsx)(qe, { help: t })] }) : e;
|
|
2229
|
+
var Ou = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
|
|
2230
|
+
function Pu(e) {
|
|
2229
2231
|
let t = e.component, r = V(t.margin || "xs"), a = (c, l) => ({ text: c != null ? c : "", href: l.url, onClick: (m) => {
|
|
2230
2232
|
m.preventDefault(), l && e.onAction(l);
|
|
2231
|
-
} }), o =
|
|
2232
|
-
return (0, le.jsxs)("div", { className: r, children: [t.title && (0, le.jsx)(ia.Header, { title: t.title, action: n || i || void 0 }), (0, le.jsx)("div", { className: r, children: (0, le.jsx)(ia.DefinitionList, { layout: o, definitions:
|
|
2233
|
+
} }), o = Ou(t), n = t.callToAction ? a(t.callToAction.title, t.callToAction.action) : null, i = !n && t.action ? a(t.action.title || "", t.action) : null;
|
|
2234
|
+
return (0, le.jsxs)("div", { className: r, children: [t.title && (0, le.jsx)(ia.Header, { title: t.title, action: n || i || void 0 }), (0, le.jsx)("div", { className: r, children: (0, le.jsx)(ia.DefinitionList, { layout: o, definitions: vu(o, t) }) })] });
|
|
2233
2235
|
}
|
|
2234
|
-
var To =
|
|
2236
|
+
var To = Pu;
|
|
2235
2237
|
var ma = require("react");
|
|
2236
2238
|
var tc = require("@transferwise/components");
|
|
2237
2239
|
var sa = require("react/jsx-runtime");
|
|
@@ -2261,7 +2263,7 @@ var require_main_min = __commonJS({
|
|
|
2261
2263
|
let { signal: u } = a.current;
|
|
2262
2264
|
r({ status: "loading" });
|
|
2263
2265
|
try {
|
|
2264
|
-
let w = await (h === "GET" ? o(
|
|
2266
|
+
let w = await (h === "GET" ? o(Eu(p, y, m), { method: h, signal: u, headers: sc }) : o(p, { method: h, signal: u, headers: sc, body: JSON.stringify({ [y]: m }) }));
|
|
2265
2267
|
i(w, m);
|
|
2266
2268
|
} catch (f) {
|
|
2267
2269
|
c(f, m);
|
|
@@ -2269,27 +2271,27 @@ var require_main_min = __commonJS({
|
|
|
2269
2271
|
}, [o, JSON.stringify(e)]), i = async (m, p) => {
|
|
2270
2272
|
if (m.ok) {
|
|
2271
2273
|
let h = await m.json().catch(() => null);
|
|
2272
|
-
if (
|
|
2274
|
+
if (Mu(h)) {
|
|
2273
2275
|
r({ status: "success", results: h.results });
|
|
2274
2276
|
return;
|
|
2275
2277
|
}
|
|
2276
2278
|
}
|
|
2277
2279
|
r({ status: "error" });
|
|
2278
2280
|
}, c = (m, p) => {
|
|
2279
|
-
|
|
2281
|
+
ku(m) || r({ status: "error" });
|
|
2280
2282
|
}, l = t.status === "success" ? t.results : [];
|
|
2281
2283
|
return { status: t.status, results: l, search: n };
|
|
2282
2284
|
};
|
|
2283
|
-
var
|
|
2284
|
-
var
|
|
2285
|
-
var
|
|
2285
|
+
var Mu = (e) => R(e) && "results" in e && j(e.results) && e.results.every((t) => R(t) && "title" in t && "type" in t && "value" in t);
|
|
2286
|
+
var ku = (e) => e instanceof DOMException && e.name === "AbortError";
|
|
2287
|
+
var Eu = (e, t, r) => {
|
|
2286
2288
|
let [a, o] = e.split("?"), n = new URLSearchParams(o);
|
|
2287
2289
|
return n.set(t, r), `${a}?${n.toString()}`;
|
|
2288
2290
|
};
|
|
2289
2291
|
var Ft = require("react/jsx-runtime");
|
|
2290
|
-
var
|
|
2291
|
-
function
|
|
2292
|
-
let [r, a] = (0, ma.useState)(""), { title: o, margin: n, url: i, method: c, param: l, emptyMessage: m } = e, { status: p, results: h, search: y } = cc({ url: i, method: c, param: l }), u = re(), d = (0, ma.useMemo)(() => Ke(y,
|
|
2292
|
+
var Iu = 400;
|
|
2293
|
+
function Du({ component: e, onAction: t }) {
|
|
2294
|
+
let [r, a] = (0, ma.useState)(""), { title: o, margin: n, url: i, method: c, param: l, emptyMessage: m } = e, { status: p, results: h, search: y } = cc({ url: i, method: c, param: l }), u = re(), d = (0, ma.useMemo)(() => Ke(y, Iu), [y]), f = () => {
|
|
2293
2295
|
u("Dynamic Flow - Search Started", {});
|
|
2294
2296
|
}, w = (g) => {
|
|
2295
2297
|
a(g), d(g);
|
|
@@ -2304,18 +2306,18 @@ var require_main_min = __commonJS({
|
|
|
2304
2306
|
};
|
|
2305
2307
|
return (0, Ft.jsxs)("div", { className: V(n || "md"), children: [(0, Ft.jsx)(rc, { title: o, value: r, onChange: w, onFocus: f }), p === "loading" && (0, Ft.jsx)(yr, { component: { type: "loading-indicator", size: "sm" } }), p === "error" && (0, Ft.jsx)(ic, { onRetrySearch: F }), p === "success" && (0, Ft.jsx)(nc, { results: h, emptyMessage: m, onSelect: S })] });
|
|
2306
2308
|
}
|
|
2307
|
-
var Ro =
|
|
2309
|
+
var Ro = Du;
|
|
2308
2310
|
var la = require("@transferwise/components");
|
|
2309
2311
|
var mc = require("react");
|
|
2310
2312
|
var _t = require("react/jsx-runtime");
|
|
2311
|
-
var
|
|
2313
|
+
var Lu = (e) => {
|
|
2312
2314
|
let [t, r] = (0, mc.useState)(false), { component: a, onAction: o } = e, { margin: n = "md" } = a;
|
|
2313
2315
|
return (0, _t.jsxs)("div", { className: Ce({ margin: n }), children: [(0, _t.jsx)(la.Button, { priority: "tertiary", block: true, onClick: () => r(true), children: a.trigger.title }), (0, _t.jsx)(la.Modal, { scroll: "content", onClose: () => r(false), open: t, size: "lg", body: (0, _t.jsx)(ne, C(s({}, e), { components: a.content.components, onAction: o })) })] });
|
|
2314
2316
|
};
|
|
2315
|
-
var No =
|
|
2317
|
+
var No = Lu;
|
|
2316
2318
|
var ue = require("react/jsx-runtime");
|
|
2317
2319
|
var zo = (e) => I(e) || Y(e);
|
|
2318
|
-
var
|
|
2320
|
+
var Tu = (e) => e.type === "boolean" && zo(e.default) ? false : e.default;
|
|
2319
2321
|
var dc = (e) => {
|
|
2320
2322
|
var ee, A, B;
|
|
2321
2323
|
let t = (k) => {
|
|
@@ -2329,7 +2331,7 @@ var require_main_min = __commonJS({
|
|
|
2329
2331
|
}, o = (k) => $e(k, e.schema), n = () => d(true), i = () => {
|
|
2330
2332
|
d(false), w(true), e.onBlur && e.onBlur();
|
|
2331
2333
|
}, [c, l] = (0, de.useState)((ee = e.model) != null ? ee : null), [m, p] = (0, de.useState)((A = e.model) != null ? A : null), [h, y] = (0, de.useState)(false), [u, d] = (0, de.useState)(false), [f, w] = (0, de.useState)(false), [S, F] = (0, de.useState)([]), g = (0, de.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), v = () => {
|
|
2332
|
-
let k =
|
|
2334
|
+
let k = Tu(e.schema);
|
|
2333
2335
|
zo(c) && !zo(k) && a(k, "init"), e.schema.const && a(e.schema.const, "init");
|
|
2334
2336
|
}, O = () => {
|
|
2335
2337
|
F(r(c));
|
|
@@ -2350,11 +2352,11 @@ var require_main_min = __commonJS({
|
|
|
2350
2352
|
var r;
|
|
2351
2353
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2352
2354
|
};
|
|
2353
|
-
var
|
|
2355
|
+
var Ru = /* @__PURE__ */ new Set([N.RADIO, N.SELECT, N.DATELOOKUP, N.FILE, N.UPLOAD]);
|
|
2354
2356
|
function yc(e) {
|
|
2355
2357
|
let { schema: t, required: r, submitted: a, errors: o, onChange: n, onPersistAsync: i } = e, c = (0, uc.useIntl)(), l = ae(), m = re(), [p, h] = (0, bt.useState)(null), y = hc(p), [u, d] = (0, bt.useState)(null), [f, w] = (0, bt.useState)(false), [S, F] = (0, bt.useState)(null);
|
|
2356
2358
|
(0, bt.useEffect)(() => {
|
|
2357
|
-
|
|
2359
|
+
Ru.has(lo(t.persistAsync.schema)) && x();
|
|
2358
2360
|
}, [p]);
|
|
2359
2361
|
let g = () => d(c.formatMessage(nr.genericError)), v = async (P, D) => {
|
|
2360
2362
|
let U = O(), ee = { [D.param]: P };
|
|
@@ -2406,7 +2408,7 @@ var require_main_min = __commonJS({
|
|
|
2406
2408
|
return r(y), y.signal;
|
|
2407
2409
|
};
|
|
2408
2410
|
function l(y) {
|
|
2409
|
-
let u = Dt(n), d = c(), f = e.param, w = u ?
|
|
2411
|
+
let u = Dt(n), d = c(), f = e.param, w = u ? Nu(f, y) : JSON.stringify({ [f]: y });
|
|
2410
2412
|
return { method: e.method, headers: s({}, !u && { "Content-Type": "application/json" }), body: w, signal: d };
|
|
2411
2413
|
}
|
|
2412
2414
|
async function m(y) {
|
|
@@ -2437,21 +2439,21 @@ var require_main_min = __commonJS({
|
|
|
2437
2439
|
throw new Error(o.formatMessage(nr.genericError));
|
|
2438
2440
|
}
|
|
2439
2441
|
let h = (y) => {
|
|
2440
|
-
let u =
|
|
2442
|
+
let u = Bu(y) ? y.message : o.formatMessage(nr.genericError);
|
|
2441
2443
|
throw new Error(u);
|
|
2442
2444
|
};
|
|
2443
2445
|
return i;
|
|
2444
2446
|
};
|
|
2445
|
-
function
|
|
2447
|
+
function Nu(e, t) {
|
|
2446
2448
|
let r = new FormData();
|
|
2447
2449
|
return t !== null && r.append(e, t), r;
|
|
2448
2450
|
}
|
|
2449
|
-
function
|
|
2451
|
+
function Bu(e) {
|
|
2450
2452
|
return R(e) && "message" in e && typeof e.message == "string";
|
|
2451
2453
|
}
|
|
2452
2454
|
var rt = require("react");
|
|
2453
2455
|
function Vr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: a, onPollingResponse: o, onFailure: n }) {
|
|
2454
|
-
let i = (0, rt.useRef)(o), c = (0, rt.useRef)(n), l = (0, rt.useMemo)(() =>
|
|
2456
|
+
let i = (0, rt.useRef)(o), c = (0, rt.useRef)(n), l = (0, rt.useMemo)(() => zu(e, r, a, (m) => i.current(m), () => c.current()), [e, r, a]);
|
|
2455
2457
|
(0, rt.useEffect)(() => {
|
|
2456
2458
|
if (t > 0) {
|
|
2457
2459
|
let m = setInterval(() => {
|
|
@@ -2463,7 +2465,7 @@ var require_main_min = __commonJS({
|
|
|
2463
2465
|
i.current = o, c.current = n;
|
|
2464
2466
|
}, [o, n]);
|
|
2465
2467
|
}
|
|
2466
|
-
function
|
|
2468
|
+
function zu(e, t, r, a, o) {
|
|
2467
2469
|
let n = true, i = 0, c = 0;
|
|
2468
2470
|
return e ? () => {
|
|
2469
2471
|
n && (c++, e().then((l) => {
|
|
@@ -2500,20 +2502,20 @@ var require_main_min = __commonJS({
|
|
|
2500
2502
|
}, [t, e]) });
|
|
2501
2503
|
}
|
|
2502
2504
|
var Sc = require("react/jsx-runtime");
|
|
2503
|
-
var
|
|
2505
|
+
var ju = (e, t) => {
|
|
2504
2506
|
var a;
|
|
2505
2507
|
if (kt(e))
|
|
2506
2508
|
return [];
|
|
2507
2509
|
let r = Qt(e, t);
|
|
2508
2510
|
return ze({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (a = e.model) != null ? a : null });
|
|
2509
2511
|
};
|
|
2510
|
-
var
|
|
2511
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: a, model: o, formErrors: n, onModelChange: i } = e, c =
|
|
2512
|
+
var Vu = (e) => {
|
|
2513
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: a, model: o, formErrors: n, onModelChange: i } = e, c = ju(t, r), { loading: l, registerPersistAsyncPromise: m } = At(), p = re(), h = l ? () => {
|
|
2512
2514
|
p("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2513
2515
|
} : e.onAction;
|
|
2514
2516
|
return Cc(t.polling, h), (0, Sc.jsx)(ne, { components: c, submitted: a, model: o, errors: n, onAction: h, onModelChange: i, onPersistAsync: m });
|
|
2515
2517
|
};
|
|
2516
|
-
var ua =
|
|
2518
|
+
var ua = Vu;
|
|
2517
2519
|
var ga = require("react");
|
|
2518
2520
|
var oe = require("react");
|
|
2519
2521
|
var Hc = require("react-intl");
|
|
@@ -2523,27 +2525,27 @@ var require_main_min = __commonJS({
|
|
|
2523
2525
|
var Oe = require("@transferwise/components");
|
|
2524
2526
|
var xc = require("react-intl");
|
|
2525
2527
|
var Ae = require("react/jsx-runtime");
|
|
2526
|
-
var Vo = ({ onCapture: e }) => (0, Ae.jsx)("div", { className: "bottom-bar", children: (0, Ae.jsx)(
|
|
2528
|
+
var Vo = ({ onCapture: e }) => (0, Ae.jsx)("div", { className: "bottom-bar", children: (0, Ae.jsx)(Uu, { onClick: e }) });
|
|
2527
2529
|
var Uo = ({ onSubmit: e, onRetry: t }) => {
|
|
2528
2530
|
let r = (0, xc.useIntl)();
|
|
2529
2531
|
return (0, Ae.jsx)("div", { className: "bottom-bar p-x-2", children: (0, Ae.jsx)("div", { className: "row", children: (0, Ae.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, Ae.jsx)(Oe.Button, { className: "m-b-1", block: true, size: Oe.Size.MEDIUM, type: Oe.ControlType.ACCENT, onClick: e, children: r.formatMessage(pe.reviewSubmit) }), (0, Ae.jsx)(Oe.Button, { className: "m-b-2", block: true, size: Oe.Size.MEDIUM, type: Oe.ControlType.ACCENT, priority: Oe.Priority.SECONDARY, onClick: t, children: r.formatMessage(pe.reviewRetry) })] }) }) });
|
|
2530
2532
|
};
|
|
2531
|
-
var
|
|
2533
|
+
var Uu = ({ onClick: e }) => (0, Ae.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, Ae.jsx)("span", { className: "camera-capture-btn-inner" }) });
|
|
2532
2534
|
var Oc = require("react-intl");
|
|
2533
2535
|
var vc = require("react-intl");
|
|
2534
2536
|
var Ac = (0, vc.defineMessages)({ text: { id: "dynamicFlows.CameraCapture.rotatePhone.text", defaultMessage: "Rotate your phone to portrait view to take a photo", description: "Prompt the user to rotate their phone from landscape to portrait mode when attempting to take a photo" } });
|
|
2535
2537
|
var gr = require("react/jsx-runtime");
|
|
2536
|
-
function
|
|
2538
|
+
function Hu() {
|
|
2537
2539
|
let e = (0, Oc.useIntl)();
|
|
2538
2540
|
return (0, gr.jsxs)("div", { className: "orientation-lock-overlay", children: [(0, gr.jsx)("img", { className: "m-b-3", src: "https://wise.com/public-resources/assets/camera-guidelines/icon-rotate-phone.svg", width: "96", height: "96", alt: "" }), (0, gr.jsx)("p", { className: "text-center m-b-0", children: e.formatMessage(Ac.text) })] });
|
|
2539
2541
|
}
|
|
2540
|
-
var Ho =
|
|
2542
|
+
var Ho = Hu;
|
|
2541
2543
|
var Pc = require("@transferwise/components");
|
|
2542
2544
|
var at = require("react/jsx-runtime");
|
|
2543
|
-
function
|
|
2545
|
+
function qu({ title: e, description: t, actionButton: r, onAction: a }) {
|
|
2544
2546
|
return (0, at.jsx)("div", { className: "container p-t-5", children: (0, at.jsx)("div", { className: "row", children: (0, at.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, at.jsx)("h2", { className: "text-xs-center m-b-3", children: e }), (0, at.jsx)("p", { className: "text-xs-center m-b-5", children: t }), a && r && (0, at.jsx)(Pc.Button, { block: true, onClick: a, children: r })] }) }) });
|
|
2545
2547
|
}
|
|
2546
|
-
var qo =
|
|
2548
|
+
var qo = qu;
|
|
2547
2549
|
var ot = require("react");
|
|
2548
2550
|
var Kt = Ee(Mc());
|
|
2549
2551
|
var kc = (e) => {
|
|
@@ -2584,10 +2586,10 @@ var require_main_min = __commonJS({
|
|
|
2584
2586
|
var t, r;
|
|
2585
2587
|
return (r = (t = pa(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2586
2588
|
};
|
|
2587
|
-
var ya = (e, t, r) => t == null ? void 0 : t(e, { Error:
|
|
2588
|
-
var
|
|
2589
|
-
var Rc = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await
|
|
2590
|
-
var
|
|
2589
|
+
var ya = (e, t, r) => t == null ? void 0 : t(e, { Error: Gu(r) });
|
|
2590
|
+
var Gu = (e) => e instanceof DOMException ? JSON.stringify({ name: e == null ? void 0 : e.name, message: e == null ? void 0 : e.message }) : e;
|
|
2591
|
+
var Rc = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await Wu(t, r));
|
|
2592
|
+
var Wu = async (e, t) => {
|
|
2591
2593
|
var n;
|
|
2592
2594
|
let r = pa(t), a = Go(t), o = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
|
|
2593
2595
|
return C(s({}, r && { "Available Video Devices (by label)": await Lc(), "Active Video Device (by label)": await Tc(t), "Camera Capabilities": a, "Camera Settings": o }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
@@ -2644,14 +2646,14 @@ var require_main_min = __commonJS({
|
|
|
2644
2646
|
};
|
|
2645
2647
|
var ha = require("react");
|
|
2646
2648
|
var J = require("react/jsx-runtime");
|
|
2647
|
-
var
|
|
2649
|
+
var $u = 92;
|
|
2648
2650
|
var Vc = 120;
|
|
2649
|
-
var
|
|
2650
|
-
var
|
|
2651
|
-
var
|
|
2652
|
-
var
|
|
2651
|
+
var _u = 40;
|
|
2652
|
+
var Ku = 32;
|
|
2653
|
+
var Ju = 48;
|
|
2654
|
+
var Xu = 40;
|
|
2653
2655
|
var Uc = 800;
|
|
2654
|
-
function
|
|
2656
|
+
function Yu({ overlay: e, outline: t, imageUrl: r, title: a, instructions: o, reviewInstructions: n }) {
|
|
2655
2657
|
let i = (0, ha.useRef)(null);
|
|
2656
2658
|
(0, ha.useEffect)(() => {
|
|
2657
2659
|
let y = Ke(() => {
|
|
@@ -2663,18 +2665,18 @@ var require_main_min = __commonJS({
|
|
|
2663
2665
|
}, 100);
|
|
2664
2666
|
return window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
2665
2667
|
});
|
|
2666
|
-
let c = (r ?
|
|
2668
|
+
let c = (r ? _u : 0) + (a ? Ku : 0) + (o ? Ju : 0), l = (0, J.jsxs)(J.Fragment, { children: [r && (0, J.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), a && (0, J.jsx)("h4", { className: "camera-capture-title", children: a }), o && (0, J.jsx)("small", { className: "camera-capture-instructions", children: o })] }), m = $u + c;
|
|
2667
2669
|
if (n) {
|
|
2668
2670
|
c = m - Vc, l = (0, J.jsx)("small", { className: "camera-capture-instructions", children: n });
|
|
2669
|
-
let y = Vc +
|
|
2671
|
+
let y = Vc + Xu;
|
|
2670
2672
|
m < y && (l = (0, J.jsx)(J.Fragment, {}));
|
|
2671
2673
|
}
|
|
2672
2674
|
let p = { x: "50%", y: "5%", width: `min(90%, ${Uc}px)`, height: `calc(90% - ${m}px)`, style: { transform: `translateX(max(-45%, -${Uc / 2}px))` } }, h = { style: { left: "5%", top: `calc(100% - ${m}px - 5%)`, height: `calc(${c}px + 5%)`, width: "90%" } };
|
|
2673
2675
|
return (0, J.jsxs)("svg", { ref: i, xmlns: "http://www.w3.org/2000/svg", children: [(0, J.jsx)("defs", { children: (0, J.jsxs)("mask", { id: "mask", children: [(0, J.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, J.jsx)("image", s({ href: e }, p))] }) }), e && (0, J.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, J.jsx)("image", s({ href: t }, p)), (0, J.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, J.jsx)("div", C(s({ className: "camera-capture-text-and-image-container" }, h), { children: l })) })] });
|
|
2674
2676
|
}
|
|
2675
|
-
var $o =
|
|
2677
|
+
var $o = Yu;
|
|
2676
2678
|
var ye = require("react/jsx-runtime");
|
|
2677
|
-
function
|
|
2679
|
+
function Zu({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: a = "", title: o = "", instructions: n = "", showReview: i = false, onCapture: c, onEvent: l }) {
|
|
2678
2680
|
let [m, p] = (0, oe.useState)("CAPTURE"), [h, y] = (0, oe.useState)(), [u, d] = (0, oe.useState)(false), [f, w] = (0, oe.useState)(false), [S, F] = (0, oe.useState)(), g = (0, oe.useRef)(null), { videoConstraints: v } = jc(e), O = (0, oe.useMemo)(() => !!(Yn() && m === "CAPTURE"), [m]), { enterFullScreen: x, exitFullScreen: M } = zc(O, l), E = (0, Hc.useIntl)(), P = (0, oe.useCallback)(async () => {
|
|
2679
2681
|
var W, X, ke, nt, br, xr;
|
|
2680
2682
|
if ((W = g == null ? void 0 : g.current) != null && W.video && ((ke = (X = g == null ? void 0 : g.current) == null ? void 0 : X.video) == null ? void 0 : ke.readyState) >= 3) {
|
|
@@ -2718,23 +2720,23 @@ var require_main_min = __commonJS({
|
|
|
2718
2720
|
} })] }), ie = (0, ye.jsxs)("div", { className: "camera-capture", children: [(0, ye.jsx)("img", { className: "review-image", src: S == null ? void 0 : S.source, alt: "" }), (0, ye.jsx)($o, { overlay: t, imageUrl: a, title: o, instructions: n, reviewInstructions: E.formatMessage(pe.reviewInstructions) }), (0, ye.jsx)(Uo, { onSubmit: ee, onRetry: A })] });
|
|
2719
2721
|
return (0, ye.jsxs)("section", { children: [m === "CAPTURE" && k, m === "REVIEW" && ie, m === "ERROR" && h && (0, ye.jsx)(qo, s({}, h))] });
|
|
2720
2722
|
}
|
|
2721
|
-
var _o =
|
|
2723
|
+
var _o = Zu;
|
|
2722
2724
|
var Wc = require("react/jsx-runtime");
|
|
2723
|
-
function
|
|
2725
|
+
function Qu(e) {
|
|
2724
2726
|
return new Promise((t, r) => {
|
|
2725
2727
|
let a = new FileReader();
|
|
2726
2728
|
a.onloadend = () => t(a.result), a.readAsDataURL(e);
|
|
2727
2729
|
});
|
|
2728
2730
|
}
|
|
2729
|
-
function
|
|
2730
|
-
let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i = Gc(t), c =
|
|
2731
|
+
function ep(e) {
|
|
2732
|
+
let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i = Gc(t), c = tp(t), l = rp(t), { title: m, image: p, cameraConfig: h } = c, { assets: y, direction: u, instructions: d } = h || {}, { overlay: f, outline: w } = y || {}, { url: S } = p || {}, [F, g] = (0, ga.useState)(false);
|
|
2731
2733
|
(0, ga.useEffect)(() => {
|
|
2732
2734
|
F && o(l);
|
|
2733
2735
|
}, [r]);
|
|
2734
2736
|
let v = async (O) => {
|
|
2735
2737
|
let { $id: x } = c;
|
|
2736
2738
|
if (O) {
|
|
2737
|
-
let M = await
|
|
2739
|
+
let M = await Qu(O), E = { [x || ""]: M };
|
|
2738
2740
|
g(true), a({ model: E, formSchema: i, triggerModel: M, triggerSchema: c });
|
|
2739
2741
|
}
|
|
2740
2742
|
};
|
|
@@ -2742,20 +2744,20 @@ var require_main_min = __commonJS({
|
|
|
2742
2744
|
v(O);
|
|
2743
2745
|
} });
|
|
2744
2746
|
}
|
|
2745
|
-
var wa =
|
|
2747
|
+
var wa = ep;
|
|
2746
2748
|
function Gc(e) {
|
|
2747
2749
|
let r = zr(e.schemas || [])[0];
|
|
2748
2750
|
if (!r || !Le(r))
|
|
2749
2751
|
throw new Error("The first schema in a camera step is expected to be of type object and have at least one property with a schema...");
|
|
2750
2752
|
return r;
|
|
2751
2753
|
}
|
|
2752
|
-
function
|
|
2754
|
+
function tp(e) {
|
|
2753
2755
|
let t = Gc(e), r = Object.values(t.properties)[0];
|
|
2754
2756
|
if (!r)
|
|
2755
2757
|
throw new Error("The first schema in a camera step is expected to be of type object and have at least one property with a schema...");
|
|
2756
2758
|
return r;
|
|
2757
2759
|
}
|
|
2758
|
-
function
|
|
2760
|
+
function rp(e) {
|
|
2759
2761
|
var t, r;
|
|
2760
2762
|
if (!e.schemas || ((t = zr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2761
2763
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
@@ -2769,14 +2771,14 @@ var require_main_min = __commonJS({
|
|
|
2769
2771
|
var Jc = require("react/jsx-runtime");
|
|
2770
2772
|
var _c = () => {
|
|
2771
2773
|
};
|
|
2772
|
-
var
|
|
2774
|
+
var ap = ({ url: e, onClose: t }) => {
|
|
2773
2775
|
let { formatMessage: r } = (0, Kc.useIntl)();
|
|
2774
|
-
return (0, Jc.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(Cr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(Cr.description, { origin:
|
|
2776
|
+
return (0, Jc.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(Cr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(Cr.description, { origin: op(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(Cr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(Cr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (a) => {
|
|
2775
2777
|
a.url && window.open(a.url, "_blank"), t();
|
|
2776
2778
|
}, onModelChange: _c, onPersistAsync: _c });
|
|
2777
2779
|
};
|
|
2778
|
-
var Ca =
|
|
2779
|
-
function
|
|
2780
|
+
var Ca = ap;
|
|
2781
|
+
function op(e) {
|
|
2780
2782
|
try {
|
|
2781
2783
|
return new URL(e).origin;
|
|
2782
2784
|
} catch (t) {
|
|
@@ -2786,12 +2788,12 @@ var require_main_min = __commonJS({
|
|
|
2786
2788
|
var Xc = require("@transferwise/components");
|
|
2787
2789
|
var Yc = require("@transferwise/icons");
|
|
2788
2790
|
var Jt = require("react/jsx-runtime");
|
|
2789
|
-
function
|
|
2791
|
+
function np({ title: e, action: t, onAction: r }) {
|
|
2790
2792
|
return (0, Jt.jsxs)("a", { href: "/", className: "df-back-btn", "aria-label": e, onClick: (a) => {
|
|
2791
2793
|
a.preventDefault(), r(C(s({}, t), { skipValidation: true }));
|
|
2792
2794
|
}, children: [(0, Jt.jsx)("span", { className: "sr-only", children: e }), (0, Jt.jsx)(Xc.Avatar, { type: "icon", children: (0, Jt.jsx)(Yc.ArrowLeft, { size: "24" }) })] });
|
|
2793
2795
|
}
|
|
2794
|
-
var Zc =
|
|
2796
|
+
var Zc = np;
|
|
2795
2797
|
var Pe = require("react/jsx-runtime");
|
|
2796
2798
|
function Kr(e) {
|
|
2797
2799
|
var l, m, p;
|
|
@@ -2799,20 +2801,20 @@ var require_main_min = __commonJS({
|
|
|
2799
2801
|
return t === void 0 ? r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null : o && i ? (0, Pe.jsx)(Ca, { url: o, onClose: c }) : Jn(t) ? (0, Pe.jsx)(wa, C(s({}, e), { step: t })) : (0, Pe.jsxs)(Pe.Fragment, { children: [n && (0, Pe.jsx)(Zc, C(s({}, n), { onAction: a })), r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, Pe.jsx)(ua, C(s({}, e), { stepSpecification: t }))] });
|
|
2800
2802
|
}
|
|
2801
2803
|
var Qc = require("react");
|
|
2802
|
-
var
|
|
2804
|
+
var ip = 1e3;
|
|
2803
2805
|
function em(e) {
|
|
2804
2806
|
let t = (0, Qc.useRef)(/* @__PURE__ */ new Map()), r = (a) => {
|
|
2805
2807
|
if (t.current.has(a))
|
|
2806
2808
|
return t.current.get(a);
|
|
2807
|
-
let o = Ke((n, i, c) => e(n, i, c),
|
|
2809
|
+
let o = Ke((n, i, c) => e(n, i, c), ip);
|
|
2808
2810
|
return t.current.set(a, o), o;
|
|
2809
2811
|
};
|
|
2810
2812
|
return function(a, o, n, i) {
|
|
2811
2813
|
let c = r(a);
|
|
2812
|
-
c(a, o, n), (!i || !
|
|
2814
|
+
c(a, o, n), (!i || !sp(i)) && c.flush();
|
|
2813
2815
|
};
|
|
2814
2816
|
}
|
|
2815
|
-
var
|
|
2817
|
+
var sp = (e) => dt(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2816
2818
|
var Xt = require("react");
|
|
2817
2819
|
var am = (e) => {
|
|
2818
2820
|
var u, d;
|
|
@@ -2824,7 +2826,7 @@ var require_main_min = __commonJS({
|
|
|
2824
2826
|
let g = C(s({}, F.models), { [f]: w }), v = { step: F.step, models: g, etag: F.etag };
|
|
2825
2827
|
return S(g), v;
|
|
2826
2828
|
});
|
|
2827
|
-
}, y = (0, Xt.useMemo)(() =>
|
|
2829
|
+
}, y = (0, Xt.useMemo)(() => mp(l, cp(c)), [l, c]);
|
|
2828
2830
|
return { formErrors: t, globalError: a, step: c, models: l, etag: m, modelIsValid: y, setFormErrors: r, setGlobalError: o, setStepAndEtag: p, setSchemaModel: h };
|
|
2829
2831
|
};
|
|
2830
2832
|
var tm = (e, t = []) => t.reduce((r, a) => (a.$id || console.warn("Schema without $id property found."), C(s({}, r), { [a.$id || ""]: ce(e, a) || {} })), {});
|
|
@@ -2841,7 +2843,7 @@ var require_main_min = __commonJS({
|
|
|
2841
2843
|
return [];
|
|
2842
2844
|
}
|
|
2843
2845
|
});
|
|
2844
|
-
var
|
|
2846
|
+
var cp = (e) => [...Ko((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...Sa((e == null ? void 0 : e.layout) || [])];
|
|
2845
2847
|
var Ko = (e) => e.flatMap((t) => {
|
|
2846
2848
|
switch (t.type) {
|
|
2847
2849
|
case "columns":
|
|
@@ -2849,13 +2851,13 @@ var require_main_min = __commonJS({
|
|
|
2849
2851
|
case "box":
|
|
2850
2852
|
return Ko(t.components);
|
|
2851
2853
|
case "form":
|
|
2852
|
-
return [
|
|
2854
|
+
return [lp(t)];
|
|
2853
2855
|
default:
|
|
2854
2856
|
return [];
|
|
2855
2857
|
}
|
|
2856
2858
|
}).filter(Boolean);
|
|
2857
|
-
var
|
|
2858
|
-
var
|
|
2859
|
+
var mp = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !G(e[r.$id || ""] || {}, r))));
|
|
2860
|
+
var lp = (e) => e.schema && !om(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2859
2861
|
var om = (e) => e !== void 0 && typeof e == "object" && !Object.hasOwnProperty.call(e, "$ref");
|
|
2860
2862
|
var Fa = require("@transferwise/components");
|
|
2861
2863
|
var nm = require("react");
|
|
@@ -2873,7 +2875,7 @@ var require_main_min = __commonJS({
|
|
|
2873
2875
|
return (0, lm.jsx)(ba.Alert, { action: { text: t(Wt.retry), href: window.location.href }, message: t(Wt.errorAlert), type: ba.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2874
2876
|
}
|
|
2875
2877
|
var Yt = require("react/jsx-runtime");
|
|
2876
|
-
var
|
|
2878
|
+
var dp = () => {
|
|
2877
2879
|
};
|
|
2878
2880
|
var Jo = class extends dm.Component {
|
|
2879
2881
|
constructor(r) {
|
|
@@ -2887,7 +2889,7 @@ var require_main_min = __commonJS({
|
|
|
2887
2889
|
return { hasError: true, isFatalError: true };
|
|
2888
2890
|
}
|
|
2889
2891
|
componentDidCatch(r) {
|
|
2890
|
-
let { onError: a =
|
|
2892
|
+
let { onError: a = dp } = this.props;
|
|
2891
2893
|
a(r);
|
|
2892
2894
|
}
|
|
2893
2895
|
render() {
|
|
@@ -2962,16 +2964,16 @@ var require_main_min = __commonJS({
|
|
|
2962
2964
|
}
|
|
2963
2965
|
};
|
|
2964
2966
|
var Zo = (e) => {
|
|
2965
|
-
if (!
|
|
2967
|
+
if (!up(e))
|
|
2966
2968
|
throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
|
|
2967
2969
|
if (e.bodyUsed)
|
|
2968
2970
|
throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
|
|
2969
2971
|
};
|
|
2970
|
-
var
|
|
2972
|
+
var up = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2971
2973
|
var We = require("react/jsx-runtime");
|
|
2972
2974
|
var wm = () => {
|
|
2973
2975
|
};
|
|
2974
|
-
var
|
|
2976
|
+
var pp = ({ flowId: e, httpClient: t, initialAction: r, initialStep: a, loaderConfig: o, displayStepTitle: n = true, features: i, onCompletion: c, onError: l, onEvent: m = wm, onLog: p = wm }) => {
|
|
2975
2977
|
let { locale: h } = (0, Cm.useIntl)(), { formErrors: y, globalError: u, step: d, models: f, etag: w, modelIsValid: S, setFormErrors: F, setGlobalError: g, setStepAndEtag: v, setSchemaModel: O } = am(a), [x, M] = (0, Me.useState)(false), { isLoading: E, loader: P, setLoadingState: D } = im(o, a ? "idle" : "initial"), U = mt("critical", p, e, (d == null ? void 0 : d.id) || (d == null ? void 0 : d.key)), ee = (0, Me.useMemo)(() => {
|
|
2976
2978
|
var b;
|
|
2977
2979
|
return s({ flowId: e, stepId: (d == null ? void 0 : d.id) || (d == null ? void 0 : d.key) }, (b = d == null ? void 0 : d.analytics) != null ? b : {});
|
|
@@ -3042,7 +3044,7 @@ var require_main_min = __commonJS({
|
|
|
3042
3044
|
});
|
|
3043
3045
|
}, va = (b, q) => {
|
|
3044
3046
|
let { triggerSchema: T } = b;
|
|
3045
|
-
if (
|
|
3047
|
+
if (hp(b)) {
|
|
3046
3048
|
let te = T.refreshUrl || T.refreshFormUrl, st = (d == null ? void 0 : d.refreshUrl) || (d == null ? void 0 : d.refreshFormUrl), vr = te || st;
|
|
3047
3049
|
vr && X(vr, xa(q), w, T);
|
|
3048
3050
|
}
|
|
@@ -3054,28 +3056,28 @@ var require_main_min = __commonJS({
|
|
|
3054
3056
|
return;
|
|
3055
3057
|
}
|
|
3056
3058
|
let { data: q, method: T, skipValidation: te } = b, st = s(s({}, xa(f)), q);
|
|
3057
|
-
|
|
3059
|
+
fp(T) ? (F(null), te || M(true), (S || te) && await k(b, st)) : await k(b);
|
|
3058
3060
|
};
|
|
3059
3061
|
return (0, We.jsx)(Dr, { flowId: e, stepId: (d == null ? void 0 : d.id) || (d == null ? void 0 : d.key), onLog: p, children: (0, We.jsx)(Mr, { metadata: ee, onEvent: m, children: (0, We.jsx)(pn, { loading: E, children: (0, We.jsx)(gn, { httpClient: t, children: (0, We.jsx)(Fn, { features: i, children: P !== null ? P : (0, We.jsx)(Kr, { step: d, model: xa(f), submitted: x, globalError: u, formErrors: y, stepLayoutOptions: { displayStepTitle: n }, onAction: (b) => {
|
|
3060
3062
|
Bm(b);
|
|
3061
3063
|
}, onModelChange: xt }) }) }) }) }) });
|
|
3062
3064
|
};
|
|
3063
|
-
function
|
|
3064
|
-
return (0, We.jsx)(Xo, { onError: e.onError, children: (0, We.jsx)(
|
|
3065
|
+
function yp(e) {
|
|
3066
|
+
return (0, We.jsx)(Xo, { onError: e.onError, children: (0, We.jsx)(pp, s({}, e)) });
|
|
3065
3067
|
}
|
|
3066
|
-
var Qo =
|
|
3068
|
+
var Qo = yp;
|
|
3067
3069
|
var xa = (e) => Object.values(e).reduce((t, r) => s(s({}, t), r), {});
|
|
3068
|
-
var
|
|
3069
|
-
var
|
|
3070
|
+
var fp = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
3071
|
+
var hp = (e) => {
|
|
3070
3072
|
let { type: t, triggerSchema: r, triggerModel: a, lastTriggerModel: o = null } = e, n = () => G(a, r), i = () => G(o, r), c = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
3071
3073
|
return t !== "init" && c && (n() || i());
|
|
3072
3074
|
};
|
|
3073
3075
|
var Fr = require("react/jsx-runtime");
|
|
3074
|
-
function
|
|
3076
|
+
function gp(e) {
|
|
3075
3077
|
let t = s({ model: null, errors: null }, e), { baseUrl: r = "", onEvent: a = Sm, onLog: o = Sm } = e;
|
|
3076
3078
|
return (0, Fr.jsx)(Dr, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: o, children: (0, Fr.jsx)(Mr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: a, children: (0, Fr.jsx)(Ir, { baseUrl: r, children: (0, Fr.jsx)(me, s({}, t)) }) }) });
|
|
3077
3079
|
}
|
|
3078
|
-
var en =
|
|
3080
|
+
var en = gp;
|
|
3079
3081
|
var Sm = () => {
|
|
3080
3082
|
};
|
|
3081
3083
|
var Fm = { "dynamicFlows.ArraySchema.addItem": "Speichern", "dynamicFlows.ArraySchema.addItemTitle": "Artikel hinzuf\xFCgen", "dynamicFlows.ArraySchema.editItem": "Speichern", "dynamicFlows.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.", "dynamicFlows.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.", "dynamicFlows.ArraySchema.removeItem": "Entfernen", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Erneut versuchen", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Bitte pr\xFCfe, ob deine Kamera verbunden ist, und versuche es dann erneut.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Wir k\xF6nnen nicht auf deine Kamera zugreifen", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Der von dir verwendete Browser unterst\xFCtzt keine Kameras. Bitte verwende einen anderen Browser oder ein anderes Ger\xE4t, oder lade unsere App herunter", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera wird nicht unterst\xFCtzt", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamerazugriff genehmigen", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Aktiviere den Kamerazugriff in den Einstellungen deines Browsers, um weitermachen zu k\xF6nnen.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Wir k\xF6nnen nicht auf deine Kamera zugreifen", "dynamicFlows.CameraCapture.reviewInstructions": "Ist das aufgenommene Bild deutlich erkennbar und vollst\xE4ndig?", "dynamicFlows.CameraCapture.reviewRetry": "Nein, erneut versuchen", "dynamicFlows.CameraCapture.reviewSubmit": "Ja, senden", "dynamicFlows.CameraCapture.rotatePhone.text": "Drehe dein Ger\xE4t in die Hochformatansicht, um ein Foto aufzunehmen", "dynamicFlows.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.", "dynamicFlows.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.", "dynamicFlows.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.", "dynamicFlows.ControlFeedback.minLength": "Bitte gib mindestens {minLength} Zeichen ein.", "dynamicFlows.ControlFeedback.minimum": "Bitte gib eine Zahl ein, die {minimum} oder mehr betr\xE4gt.", "dynamicFlows.ControlFeedback.minimumDate": "Bitte gib ein Datum ein, das am oder nach dem {minimum} liegt.", "dynamicFlows.ControlFeedback.pattern": "Bitte gib die Angabe im richtigen Format ein.", "dynamicFlows.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.", "dynamicFlows.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.", "dynamicFlows.ControlFeedback.type": "Falscher Typ", "dynamicFlows.DefaultErrorMessages.required": "Bitte f\xFClle dieses Feld aus.", "dynamicFlows.DynamicExternal.retryTitle": "Fenster erneut \xF6ffnen", "dynamicFlows.DynamicParagraph.copied": "In Zwischenablage kopiert", "dynamicFlows.DynamicParagraph.copy": "Kopieren", "dynamicFlows.ErrorBoundary.errorAlert": "Hoppla \u2013 da ist was schiefgelaufen...", "dynamicFlows.ErrorBoundary.retry": "Erneut versuchen", "dynamicFlows.ExternalConfirmation.cancel": "Abbrechen", "dynamicFlows.ExternalConfirmation.description": "Bitte best\xE4tige, dass du **{origin}** in einem neuen Browser-Tab \xF6ffnen m\xF6chtest.", "dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen", "dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen", "dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Bitte lade {maxItems} oder weniger Dateien hoch.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.", "dynamicFlows.PersistAsyncSchema.genericError": "Da ist etwas schiefgelaufen. Probiere es bitte sp\xE4ter noch einmal.", "dynamicFlows.ReadOnlySchema.no": "Nein", "dynamicFlows.ReadOnlySchema.yes": "Ja" };
|
|
@@ -3092,10 +3094,10 @@ var require_main_min = __commonJS({
|
|
|
3092
3094
|
var Dm = { "dynamicFlows.ArraySchema.addItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.addItemTitle": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0443\u043D\u043A\u0442", "dynamicFlows.ArraySchema.editItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.", "dynamicFlows.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435, \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0430 \u043B\u0438 \u043A\u0430\u043C\u0435\u0440\u0430, \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u041C\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0432\u0430\u0448\u0435\u0439 \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u044B\u0439 \u0432\u0430\u043C\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043A\u0430\u043C\u0435\u0440\u0443. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043B\u0438 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0438\u043B\u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043D\u0430\u0448\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435 \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u041C\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0432\u0430\u0448\u0435\u0439 \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.reviewInstructions": "\u0412\u0430\u0448\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F \u0447\u0435\u0442\u043A\u0430\u044F, \u043B\u0435\u0433\u043A\u043E \u0447\u0438\u0442\u0430\u0435\u043C\u0430\u044F \u0438 \u043D\u0435 \u043E\u0431\u0440\u0435\u0437\u0430\u043D\u0430?", "dynamicFlows.CameraCapture.reviewRetry": "\u041D\u0435\u0442, \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0435 \u0440\u0430\u0437", "dynamicFlows.CameraCapture.reviewSubmit": "\u0414\u0430, \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C", "dynamicFlows.CameraCapture.rotatePhone.text": "\u041F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u0432 \u043F\u043E\u0440\u0442\u0440\u0435\u0442\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044E", "dynamicFlows.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {maximum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.minLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minLength} \u0441\u0438\u043C\u0432\u043E\u043B\u0430(-\u043E\u0432).", "dynamicFlows.ControlFeedback.minimum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.minimumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u043F\u043E\u0437\u0434\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.pattern": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u044D\u0442\u043E \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.patternDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443 \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.", "dynamicFlows.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F", "dynamicFlows.DefaultErrorMessages.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.", "dynamicFlows.DynamicExternal.retryTitle": "\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E", "dynamicFlows.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", "dynamicFlows.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C", "dynamicFlows.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A...", "dynamicFlows.ErrorBoundary.retry": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443", "dynamicFlows.ExternalConfirmation.cancel": "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C", "dynamicFlows.ExternalConfirmation.description": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C **{origin}** \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", "dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435", "dynamicFlows.ExternalConfirmation.title": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435", "dynamicFlows.Help.ariaLabel": "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.", "dynamicFlows.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.", "dynamicFlows.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).", "dynamicFlows.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\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435!", "dynamicFlows.ReadOnlySchema.no": "\u041D\u0435\u0442", "dynamicFlows.ReadOnlySchema.yes": "\u0414\u0430" };
|
|
3093
3095
|
var Lm = { "dynamicFlows.ArraySchema.addItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21 {maxItems} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}", "dynamicFlows.ArraySchema.removeItem": "\u0E25\u0E1A", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Please check if it is connected and try again.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E43\u0E0A\u0E49\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07 \u0E43\u0E2B\u0E49\u0E25\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E14\u0E32\u0E27\u0E19\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E2D\u0E1B\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D\u0E02\u0E2D\u0E07\u0E40\u0E23\u0E32\u0E14\u0E39", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", "dynamicFlows.CameraCapture.reviewInstructions": "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19 \u0E2D\u0E48\u0E32\u0E19\u0E44\u0E14\u0E49 \u0E41\u0E25\u0E30\u0E04\u0E23\u0E1A\u0E16\u0E49\u0E27\u0E19\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", "dynamicFlows.CameraCapture.reviewRetry": "\u0E44\u0E21\u0E48 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E17\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.reviewSubmit": "\u0E43\u0E0A\u0E48 \u0E2A\u0E48\u0E07\u0E40\u0E25\u0E22", "dynamicFlows.CameraCapture.rotatePhone.text": "Rotate your phone to portrait view to take a photo", "dynamicFlows.ControlFeedback.maxLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19 {maxLength} \u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E48\u0E2D\u0E19 {maximum}", "dynamicFlows.ControlFeedback.minLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minLength} \u0E15\u0E31\u0E27", "dynamicFlows.ControlFeedback.minimum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {minimum} \u0E2B\u0E23\u0E37\u0E2D\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.minimumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E31\u0E07 {minimum}", "dynamicFlows.ControlFeedback.pattern": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49", "dynamicFlows.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.DefaultErrorMessages.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49", "dynamicFlows.DynamicExternal.retryTitle": "\u0E40\u0E1B\u0E34\u0E14\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14", "dynamicFlows.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01", "dynamicFlows.ErrorBoundary.errorAlert": "\u0E2D\u0E4A\u0E30 \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07...", "dynamicFlows.ErrorBoundary.retry": "\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.ExternalConfirmation.cancel": "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", "dynamicFlows.ExternalConfirmation.description": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E34\u0E14 **{origin}** \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C", "dynamicFlows.ExternalConfirmation.open": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48", "dynamicFlows.ExternalConfirmation.title": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19", "dynamicFlows.Help.ariaLabel": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07", "dynamicFlows.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", "dynamicFlows.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", "dynamicFlows.PersistAsyncSchema.genericError": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07!", "dynamicFlows.ReadOnlySchema.no": "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48", "dynamicFlows.ReadOnlySchema.yes": "\u0E43\u0E0A\u0E48" };
|
|
3094
3096
|
var Tm = { "dynamicFlows.ArraySchema.addItem": "Kaydet", "dynamicFlows.ArraySchema.addItemTitle": "\xD6\u011Fe ekle", "dynamicFlows.ArraySchema.editItem": "Kaydet", "dynamicFlows.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n", "dynamicFlows.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.", "dynamicFlows.ArraySchema.removeItem": "Kald\u0131r", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Tekrar deneyin", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "L\xFCtfen ba\u011Fl\u0131 olup olmad\u0131\u011F\u0131n\u0131 kontrol edip tekrar deneyin.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Kameran\u0131za eri\u015Femiyoruz", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Kulland\u0131\u011F\u0131n\u0131z taray\u0131c\u0131da kamera deste\u011Fi yok. Farkl\u0131 bir taray\u0131c\u0131 / cihaz deneyin veya mobil uygulamam\u0131z\u0131 indirin.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera desteklenmiyor", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamera eri\u015Fimi verin", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Tekrar ba\u015Flamak i\xE7in taray\u0131c\u0131n\u0131z\u0131n ayarlar\u0131nda kamera eri\u015Fimini etkinle\u015Ftirin.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kameran\u0131za eri\u015Femiyoruz", "dynamicFlows.CameraCapture.reviewInstructions": "Foto\u011Fraf\u0131n\u0131z net, okunakl\u0131 ve eksiksiz mi?", "dynamicFlows.CameraCapture.reviewRetry": "Hay\u0131r, tekrar dene", "dynamicFlows.CameraCapture.reviewSubmit": "Evet, g\xF6nder", "dynamicFlows.CameraCapture.rotatePhone.text": "Foto\u011Fraf \xE7ekmek i\xE7in telefonunuzu dik pozisyonda tutun", "dynamicFlows.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.", "dynamicFlows.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.", "dynamicFlows.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.", "dynamicFlows.ControlFeedback.minLength": "En az {minLength} karakter girebilirsiniz.", "dynamicFlows.ControlFeedback.minimum": "L\xFCtfen {minimum} veya daha y\xFCksek bir say\u0131 girin.", "dynamicFlows.ControlFeedback.minimumDate": "L\xFCtfen {minimum} veya daha ge\xE7 bir tarih girin.", "dynamicFlows.ControlFeedback.pattern": "Yanl\u0131\u015F bi\xE7im", "dynamicFlows.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.", "dynamicFlows.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.", "dynamicFlows.ControlFeedback.type": "Ge\xE7ersiz se\xE7im", "dynamicFlows.DefaultErrorMessages.required": "L\xFCtfen bu alan\u0131 doldurun.", "dynamicFlows.DynamicExternal.retryTitle": "Pencereyi yeniden a\xE7", "dynamicFlows.DynamicParagraph.copied": "Panoya kopyaland\u0131", "dynamicFlows.DynamicParagraph.copy": "Kopyala", "dynamicFlows.ErrorBoundary.errorAlert": "Aman\u0131n! Bir \u015Feyler ters gitti...", "dynamicFlows.ErrorBoundary.retry": "Tekrar dene", "dynamicFlows.ExternalConfirmation.cancel": "\u0130ptal edin", "dynamicFlows.ExternalConfirmation.description": "L\xFCtfen yeni bir taray\u0131c\u0131 sekmesinde **{origin}** a\xE7mak istedi\u011Finizi onaylay\u0131n.", "dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7", "dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n", "dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.", "dynamicFlows.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin", "dynamicFlows.ReadOnlySchema.no": "Hay\u0131r", "dynamicFlows.ReadOnlySchema.yes": "Evet" };
|
|
3095
|
-
var tn = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9879\u76EE", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0\u4E0D\u8D85\u8FC7 {maxItems} \u9879\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u91CD\u8BD5", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
3096
|
-
var Rm = { "dynamicFlows.ArraySchema.addItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9805\u76EE", "dynamicFlows.ArraySchema.editItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
3097
|
-
var
|
|
3098
|
-
var Nm =
|
|
3097
|
+
var tn = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9879\u76EE", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0\u4E0D\u8D85\u8FC7 {maxItems} \u9879\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u91CD\u8BD5", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u8BF7\u68C0\u67E5\u662F\u5426\u8FDE\u63A5\uFF0C\u7136\u540E\u91CD\u8BD5\u3002", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u6211\u4EEC\u65E0\u6CD5\u8BBF\u95EE\u60A8\u7684\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u6444\u50CF\u5934\u3002\u8BF7\u5C1D\u8BD5\u5176\u4ED6\u6D4F\u89C8\u5668\u3001\u8BBE\u5907\u6216\u4E0B\u8F7D\u6211\u4EEC\u7684\u5E94\u7528\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u5141\u8BB8\u8BBF\u95EE\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u5728\u6D4F\u89C8\u5668\u8BBE\u7F6E\u4E2D\u542F\u7528\u76F8\u673A\u8BBF\u95EE\u6743\u9650\uFF0C\u518D\u91CD\u65B0\u5C1D\u8BD5\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u6211\u4EEC\u65E0\u6CD5\u8BBF\u95EE\u60A8\u7684\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.reviewInstructions": "\u60A8\u7684\u56FE\u7247\u662F\u5426\u6E05\u6670\u3001\u53EF\u8BFB\u548C\u5B8C\u6574\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u518D\u8BD5\u4E00\u6B21", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.CameraCapture.rotatePhone.text": "\u5C06\u624B\u673A\u65CB\u8F6C\u5230\u7EB5\u5411\u89C6\u56FE\u4EE5\u62CD\u7167", "dynamicFlows.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC7 {maxLength} \u4E2A\u5B57\u7B26\u3002", "dynamicFlows.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57\u3002", "dynamicFlows.ControlFeedback.maximumDate": "\u8BF7\u8F93\u5165 {maximum} \u6216\u4E4B\u524D\u7684\u65E5\u671F", "dynamicFlows.ControlFeedback.minLength": "\u8BF7\u81F3\u5C11\u8F93\u5165 {minLength} \u4E2A\u5B57\u7B26", "dynamicFlows.ControlFeedback.minimum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5927\u4E8E\u6216\u7B49\u4E8E {minimum} \u7684\u6570\u5B57", "dynamicFlows.ControlFeedback.minimumDate": "\u8BF7\u8F93\u5165 {minimum} \u6216\u4E4B\u540E\u7684\u65E5\u671F", "dynamicFlows.ControlFeedback.pattern": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165", "dynamicFlows.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F", "dynamicFlows.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002", "dynamicFlows.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF", "dynamicFlows.DefaultErrorMessages.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002", "dynamicFlows.DynamicExternal.retryTitle": "\u91CD\u65B0\u6253\u5F00\u7A97\u53E3", "dynamicFlows.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F", "dynamicFlows.DynamicParagraph.copy": "\u590D\u5236", "dynamicFlows.ErrorBoundary.errorAlert": "\u7CDF\u7CD5\u3002\u51FA\u9519\u4E86\u2026", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8BD5", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "dynamicFlows.ExternalConfirmation.description": "\u8BF7\u786E\u8BA4\u60A8\u662F\u5426\u8981\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00**{origin}**\u3002", "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00", "dynamicFlows.ExternalConfirmation.title": "\u8BF7\u786E\u8BA4", "dynamicFlows.Help.ariaLabel": "\u70B9\u51FB\u6B64\u5904\u83B7\u53D6\u66F4\u591A\u4FE1\u606F\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8BE5\u6587\u4EF6\u592A\u5927\u3002\u8BF7\u4E0A\u4F20\u4E00\u4E2A\u66F4\u5C0F\u7684\u6587\u4EF6\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20\u4E0D\u8D85\u8FC7 {maxItems} \u4E2A\u6587\u4EF6\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
|
|
3098
|
+
var Rm = { "dynamicFlows.ArraySchema.addItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9805\u76EE", "dynamicFlows.ArraySchema.editItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u8ACB\u6AA2\u67E5\u9023\u7DDA\u72C0\u614B\uFF0C\u7136\u5F8C\u518D\u8A66\u4E00\u6B21\u3002", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u6211\u5011\u7121\u6CD5\u53D6\u7528\u4F60\u7684\u76F8\u6A5F", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u4F60\u76EE\u524D\u4F7F\u7528\u7684\u700F\u89BD\u5668\u4E0D\u652F\u6301\u76F8\u6A5F\u3002\u8ACB\u5617\u8A66\u4F7F\u7528\u5176\u4ED6\u700F\u89BD\u5668\u6216\u5176\u4ED6\u88DD\u7F6E\uFF0C\u6216\u8005\u4F60\u53EF\u4EE5\u4E0B\u8F09\u6211\u5011\u7684\u61C9\u7528\u7A0B\u5F0F\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u5141\u8A31\u53D6\u7528\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u4F60\u53EF\u4EE5\u5728\u700F\u89BD\u5668\u7684\u8A2D\u5B9A\u4E2D\u958B\u555F\u76F8\u6A5F\u5B58\u53D6\u6B0A\u9650\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u6211\u5011\u7121\u6CD5\u53D6\u7528\u4F60\u7684\u76F8\u6A5F", "dynamicFlows.CameraCapture.reviewInstructions": "\u4F60\u7684\u7167\u7247\u662F\u5426\u5B8C\u6574\u3001\u6E05\u6670\u53CA\u53EF\u8B80\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.CameraCapture.rotatePhone.text": "\u5C07\u624B\u6A5F\u65CB\u8F49\u81F3\u5782\u76F4\u756B\u9762\u4EE5\u62CD\u7167", "dynamicFlows.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.maximumDate": "\u8ACB\u8F38\u5165{maximum}\u6216\u4E4B\u524D\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.minLength": "\u8ACB\u8F38\u5165\u81F3\u5C11{minLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.minimum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5927\u65BC\u6216\u7B49\u65BC{minimum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.minimumDate": "\u8ACB\u8F38\u5165{minimum}\u6216\u4E4B\u5F8C\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.pattern": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u5185\u5BB9\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002", "dynamicFlows.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B", "dynamicFlows.DefaultErrorMessages.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002", "dynamicFlows.DynamicExternal.retryTitle": "\u91CD\u65B0\u6253\u958B\u8996\u7A97", "dynamicFlows.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F", "dynamicFlows.DynamicParagraph.copy": "\u8907\u88FD", "dynamicFlows.ErrorBoundary.errorAlert": "\u5662\uFF01\u51FA\u4E86\u4E9B\u554F\u984C...", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8A66", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "dynamicFlows.ExternalConfirmation.description": "\u8ACB\u78BA\u8A8D\u4F60\u662F\u5426\u8981\u5728\u700F\u89BD\u5668\u7684\u65B0\u5206\u9801\u6253\u958B**{origin}**\u3002", "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u5206\u9801\u4E2D\u958B\u555F", "dynamicFlows.ExternalConfirmation.title": "\u8ACB\u78BA\u8A8D", "dynamicFlows.Help.ariaLabel": "\u6309\u6B64\u67E5\u770B\u8A73\u60C5\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u8ACB\u4E0D\u8981\u4E0A\u8F09\u8D85\u904E{maxItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u4E86\u4E9B\u554F\u984C\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
|
|
3099
|
+
var Tp = { en: bm, de: Fm, es: xm, fr: vm, hu: Am, id: Om, it: Pm, ja: Mm, pl: km, pt: Em, ro: Im, ru: Dm, th: Lm, tr: Tm, zh: tn, "zh-CN": tn, "zh-HK": Rm };
|
|
3100
|
+
var Nm = Tp;
|
|
3099
3101
|
}
|
|
3100
3102
|
});
|
|
3101
3103
|
|