@wise/dynamic-flow-client-internal 2.8.9 → 2.8.11
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 +1040 -1043
- package/build/main.min.js +1 -1
- package/package.json +5 -4
package/build/main.js
CHANGED
|
@@ -51,40 +51,40 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
51
51
|
var require_main_min = __commonJS({
|
|
52
52
|
"../core/build/main.min.js"(exports, module2) {
|
|
53
53
|
"use strict";
|
|
54
|
-
var
|
|
54
|
+
var jm = Object.create;
|
|
55
55
|
var Zt = Object.defineProperty;
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
56
|
+
var Vm = Object.defineProperties;
|
|
57
|
+
var Um = Object.getOwnPropertyDescriptor;
|
|
58
|
+
var Hm = Object.getOwnPropertyDescriptors;
|
|
59
|
+
var qm = Object.getOwnPropertyNames;
|
|
60
|
+
var an = Object.getOwnPropertySymbols;
|
|
61
|
+
var Gm = Object.getPrototypeOf;
|
|
62
|
+
var nn = Object.prototype.hasOwnProperty;
|
|
63
|
+
var Wm = Object.prototype.propertyIsEnumerable;
|
|
64
|
+
var on = (e, t, r) => t in e ? Zt(e, t, { enumerable: true, configurable: true, writable: true, value: r }) : e[t] = r;
|
|
65
65
|
var s = (e, t) => {
|
|
66
66
|
for (var r in t || (t = {}))
|
|
67
|
-
|
|
68
|
-
if (
|
|
69
|
-
for (var r of
|
|
70
|
-
|
|
67
|
+
nn.call(t, r) && on(e, r, t[r]);
|
|
68
|
+
if (an)
|
|
69
|
+
for (var r of an(t))
|
|
70
|
+
Wm.call(t, r) && on(e, r, t[r]);
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
73
|
+
var S = (e, t) => Vm(e, Hm(t));
|
|
74
|
+
var Oa = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
75
|
+
var $m = (e, t) => {
|
|
76
76
|
for (var r in t)
|
|
77
77
|
Zt(e, r, { get: t[r], enumerable: true });
|
|
78
78
|
};
|
|
79
|
-
var
|
|
79
|
+
var sn = (e, t, r, a) => {
|
|
80
80
|
if (t && typeof t == "object" || typeof t == "function")
|
|
81
|
-
for (let o of
|
|
82
|
-
!
|
|
81
|
+
for (let o of qm(t))
|
|
82
|
+
!nn.call(e, o) && o !== r && Zt(e, o, { get: () => t[o], enumerable: !(a = Um(t, o)) || a.enumerable });
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
var Ee = (e, t, r) => (r = e != null ?
|
|
86
|
-
var
|
|
87
|
-
var Xe =
|
|
85
|
+
var Ee = (e, t, r) => (r = e != null ? jm(Gm(e)) : {}, sn(t || !e || !e.__esModule ? Zt(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
|
+
var _m = (e) => sn(Zt({}, "__esModule", { value: true }), e);
|
|
87
|
+
var Xe = Oa((mf, Ur) => {
|
|
88
88
|
"use strict";
|
|
89
89
|
(function() {
|
|
90
90
|
"use strict";
|
|
@@ -118,10 +118,10 @@ var require_main_min = __commonJS({
|
|
|
118
118
|
}) : window.classNames = t;
|
|
119
119
|
})();
|
|
120
120
|
});
|
|
121
|
-
var
|
|
121
|
+
var bc = Oa((hr, Vo) => {
|
|
122
122
|
"use strict";
|
|
123
123
|
(function(t, r) {
|
|
124
|
-
typeof hr == "object" && typeof
|
|
124
|
+
typeof hr == "object" && typeof Vo == "object" ? Vo.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof hr == "object" ? hr.Webcam = r(require("react")) : t.Webcam = r(t.React);
|
|
125
125
|
})(hr, function(e) {
|
|
126
126
|
return function(t) {
|
|
127
127
|
var r = {};
|
|
@@ -222,8 +222,8 @@ var require_main_min = __commonJS({
|
|
|
222
222
|
l.onUserMediaError("getUserMedia not supported");
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
var f = JSON.stringify(u.audioConstraints) !== JSON.stringify(l.audioConstraints), w = JSON.stringify(u.videoConstraints) !== JSON.stringify(l.videoConstraints),
|
|
226
|
-
(w ||
|
|
225
|
+
var f = JSON.stringify(u.audioConstraints) !== JSON.stringify(l.audioConstraints), w = JSON.stringify(u.videoConstraints) !== JSON.stringify(l.videoConstraints), C = u.minScreenshotWidth !== l.minScreenshotWidth, F = u.minScreenshotHeight !== l.minScreenshotHeight;
|
|
226
|
+
(w || C || F) && (this.canvas = null, this.ctx = null), (f || w) && (this.stopAndCleanup(), this.requestUserMedia());
|
|
227
227
|
}, y.prototype.componentWillUnmount = function() {
|
|
228
228
|
this.unmounted = true, this.stopAndCleanup();
|
|
229
229
|
}, y.stopMediaStream = function(u) {
|
|
@@ -239,19 +239,19 @@ var require_main_min = __commonJS({
|
|
|
239
239
|
var l = this, f = l.state, w = l.props;
|
|
240
240
|
if (!f.hasUserMedia)
|
|
241
241
|
return null;
|
|
242
|
-
var
|
|
243
|
-
return
|
|
242
|
+
var C = this.getCanvas(u);
|
|
243
|
+
return C && C.toDataURL(w.screenshotFormat, w.screenshotQuality);
|
|
244
244
|
}, y.prototype.getCanvas = function(u) {
|
|
245
245
|
var l = this, f = l.state, w = l.props;
|
|
246
246
|
if (!this.video || !f.hasUserMedia || !this.video.videoHeight)
|
|
247
247
|
return null;
|
|
248
248
|
if (!this.ctx) {
|
|
249
|
-
var
|
|
249
|
+
var C = this.video.videoWidth, F = this.video.videoHeight;
|
|
250
250
|
if (!this.props.forceScreenshotSourceSize) {
|
|
251
|
-
var g =
|
|
252
|
-
|
|
251
|
+
var g = C / F;
|
|
252
|
+
C = w.minScreenshotWidth || this.video.clientWidth, F = C / g, w.minScreenshotHeight && F < w.minScreenshotHeight && (F = w.minScreenshotHeight, C = F * g);
|
|
253
253
|
}
|
|
254
|
-
this.canvas = document.createElement("canvas"), this.canvas.width = (u == null ? void 0 : u.width) ||
|
|
254
|
+
this.canvas = document.createElement("canvas"), this.canvas.width = (u == null ? void 0 : u.width) || C, this.canvas.height = (u == null ? void 0 : u.height) || F, this.ctx = this.canvas.getContext("2d");
|
|
255
255
|
}
|
|
256
256
|
var v = this, O = v.ctx, x = v.canvas;
|
|
257
257
|
return O && x && (x.width = (u == null ? void 0 : u.width) || x.width, x.height = (u == null ? void 0 : u.height) || x.height, w.mirrored && (O.translate(x.width, 0), O.scale(-1, 1)), O.imageSmoothingEnabled = w.imageSmoothing, O.drawImage(this.video, 0, 0, (u == null ? void 0 : u.width) || x.width, (u == null ? void 0 : u.height) || x.height), w.mirrored && (O.scale(-1, 1), O.translate(-x.width, 0))), x;
|
|
@@ -271,7 +271,7 @@ var require_main_min = __commonJS({
|
|
|
271
271
|
else {
|
|
272
272
|
var w = function(F) {
|
|
273
273
|
return { optional: [{ sourceId: F }] };
|
|
274
|
-
},
|
|
274
|
+
}, C = function(F) {
|
|
275
275
|
var g = F.deviceId;
|
|
276
276
|
return typeof g == "string" ? g : Array.isArray(g) && g.length > 0 ? g[0] : typeof g == "object" && g.ideal ? g.ideal : null;
|
|
277
277
|
};
|
|
@@ -280,9 +280,9 @@ var require_main_min = __commonJS({
|
|
|
280
280
|
F.forEach(function(M) {
|
|
281
281
|
M.kind === "audio" ? g = M.id : M.kind === "video" && (v = M.id);
|
|
282
282
|
});
|
|
283
|
-
var O =
|
|
283
|
+
var O = C(l.audioConstraints);
|
|
284
284
|
O && (g = O);
|
|
285
|
-
var x =
|
|
285
|
+
var x = C(l.videoConstraints);
|
|
286
286
|
x && (v = x), f(w(g), w(v));
|
|
287
287
|
});
|
|
288
288
|
}
|
|
@@ -300,8 +300,8 @@ var require_main_min = __commonJS({
|
|
|
300
300
|
}
|
|
301
301
|
f.onUserMedia(l);
|
|
302
302
|
}, y.prototype.render = function() {
|
|
303
|
-
var u = this, l = this, f = l.state, w = l.props,
|
|
304
|
-
return o.createElement(o.Fragment, null, o.createElement("video", c({ autoPlay: true, disablePictureInPicture: g, src: f.src, muted: !
|
|
303
|
+
var u = this, l = this, f = l.state, w = l.props, C = w.audio, F = w.forceScreenshotSourceSize, g = w.disablePictureInPicture, v = w.onUserMedia, O = w.onUserMediaError, x = w.screenshotFormat, M = w.screenshotQuality, E = w.minScreenshotWidth, P = w.minScreenshotHeight, D = w.audioConstraints, U = w.videoConstraints, ee = w.imageSmoothing, A = w.mirrored, B = w.style, k = B === void 0 ? {} : B, ie = w.children, W = d(w, ["audio", "forceScreenshotSourceSize", "disablePictureInPicture", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), X = A ? c(c({}, k), { transform: (k.transform || "") + " scaleX(-1)" }) : k, ke = { getScreenshot: this.getScreenshot.bind(this) };
|
|
304
|
+
return o.createElement(o.Fragment, null, o.createElement("video", c({ autoPlay: true, disablePictureInPicture: g, src: f.src, muted: !C, playsInline: true, ref: function(nt) {
|
|
305
305
|
u.video = nt;
|
|
306
306
|
}, style: X }, W)), ie && ie(ke));
|
|
307
307
|
}, y.defaultProps = { audio: false, disablePictureInPicture: false, forceScreenshotSourceSize: false, imageSmoothing: true, mirrored: false, onUserMedia: function() {
|
|
@@ -314,7 +314,7 @@ var require_main_min = __commonJS({
|
|
|
314
314
|
} }).default;
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
|
-
var
|
|
317
|
+
var kc = Oa((jF, wr) => {
|
|
318
318
|
"use strict";
|
|
319
319
|
(function() {
|
|
320
320
|
"use strict";
|
|
@@ -374,143 +374,143 @@ var require_main_min = __commonJS({
|
|
|
374
374
|
} } }), t ? wr.exports = o : window.screenfull = o;
|
|
375
375
|
})();
|
|
376
376
|
});
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
module2.exports =
|
|
377
|
+
var Np = {};
|
|
378
|
+
$m(Np, { DynamicFlow: () => en, JsonSchemaForm: () => tn, Layout: () => ne, convertStepToLayout: () => Qt, inlineReferences: () => ze, isValidSchema: () => G, makeHttpClient: () => kr, translations: () => Bm });
|
|
379
|
+
module2.exports = _m(Np);
|
|
380
380
|
function Qt(e, { displayStepTitle: t = true } = {}) {
|
|
381
381
|
if (e.layout)
|
|
382
|
-
return
|
|
382
|
+
return sl(e, t);
|
|
383
383
|
switch (e.type) {
|
|
384
384
|
case "final":
|
|
385
|
-
return Xm(e);
|
|
386
|
-
case "decision":
|
|
387
385
|
return Ym(e);
|
|
386
|
+
case "decision":
|
|
387
|
+
return Zm(e);
|
|
388
388
|
case "external":
|
|
389
|
-
return
|
|
389
|
+
return Km(e);
|
|
390
390
|
default:
|
|
391
|
-
return
|
|
391
|
+
return Xm(e);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Pa(e) {
|
|
395
395
|
let t = [];
|
|
396
|
-
if (e.title && t.push(
|
|
397
|
-
let r =
|
|
396
|
+
if (e.title && t.push(ka(e.title)), e.image) {
|
|
397
|
+
let r = cn(e.image);
|
|
398
398
|
t.push(r);
|
|
399
399
|
}
|
|
400
|
-
return e.description && t.push(
|
|
401
|
-
}
|
|
402
|
-
function _m(e) {
|
|
403
|
-
return [...Oa(e), Km(e)];
|
|
400
|
+
return e.description && t.push(Ea(e.description)), t;
|
|
404
401
|
}
|
|
405
402
|
function Km(e) {
|
|
406
|
-
return
|
|
403
|
+
return [...Pa(e), Jm(e)];
|
|
407
404
|
}
|
|
408
405
|
function Jm(e) {
|
|
409
|
-
|
|
410
|
-
|
|
406
|
+
return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
|
|
407
|
+
}
|
|
408
|
+
function Xm(e) {
|
|
409
|
+
let t = Pa(e);
|
|
410
|
+
if (e.reviewFields && t.push(al(e.reviewFields)), e.schemas && t.push(...nl(e)), e.actions) {
|
|
411
411
|
let r = e.actions.map(Ar);
|
|
412
|
-
t.push(
|
|
412
|
+
t.push(Ma(r, "md"));
|
|
413
413
|
}
|
|
414
414
|
return t;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Ym(e) {
|
|
417
417
|
let t = [];
|
|
418
418
|
if (e.details) {
|
|
419
419
|
if (e.details.image) {
|
|
420
|
-
let r =
|
|
420
|
+
let r = rl(e.details.image);
|
|
421
421
|
t.push(r);
|
|
422
422
|
}
|
|
423
|
-
e.details.title && t.push(
|
|
423
|
+
e.details.title && t.push(ka(e.details.title)), e.details.description && t.push(Ea(e.details.description));
|
|
424
424
|
}
|
|
425
425
|
if (e.actions) {
|
|
426
|
-
let r = e.actions.map((a) => Ar(
|
|
427
|
-
t.push(
|
|
426
|
+
let r = e.actions.map((a) => Ar(S(s({}, a), { type: a.type || "primary" })));
|
|
427
|
+
t.push(Ma(r, "md"));
|
|
428
428
|
}
|
|
429
429
|
return t;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
let t =
|
|
433
|
-
return e.options && t.push(
|
|
431
|
+
function Zm(e) {
|
|
432
|
+
let t = Pa(e);
|
|
433
|
+
return e.options && t.push(el(e.options)), t;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Ma(e, t) {
|
|
436
436
|
return { type: "box", width: t || "md", components: e };
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function ka(e) {
|
|
439
439
|
return { type: "heading", text: e, size: "lg", margin: "lg", align: "center" };
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Ea(e) {
|
|
442
442
|
return { type: "paragraph", text: e, align: "center" };
|
|
443
443
|
}
|
|
444
|
-
function Zm(e) {
|
|
445
|
-
return { type: "form", schema: e };
|
|
446
|
-
}
|
|
447
444
|
function Qm(e) {
|
|
448
|
-
return { type: "
|
|
445
|
+
return { type: "form", schema: e };
|
|
449
446
|
}
|
|
450
447
|
function el(e) {
|
|
448
|
+
return { type: "decision", options: e.map(tl) };
|
|
449
|
+
}
|
|
450
|
+
function tl(e) {
|
|
451
451
|
return { title: e.title, description: e.description, action: { title: e.title, method: "GET", url: e.url, disabled: e.disabled } };
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function cn(e) {
|
|
454
454
|
return { type: "image", url: e.url, text: e.text, margin: e.margin || "lg", size: e.size || "md" };
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } :
|
|
456
|
+
function rl(e) {
|
|
457
|
+
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : cn(e);
|
|
458
458
|
}
|
|
459
459
|
function Ar(e) {
|
|
460
|
-
return { type: "button", action:
|
|
461
|
-
}
|
|
462
|
-
function rl(e) {
|
|
463
|
-
return { type: "review", title: e.title, fields: e.fields.map(al) };
|
|
460
|
+
return { type: "button", action: S(s({}, e), { title: e.title }) };
|
|
464
461
|
}
|
|
465
462
|
function al(e) {
|
|
466
|
-
return {
|
|
463
|
+
return { type: "review", title: e.title, fields: e.fields.map(ol) };
|
|
467
464
|
}
|
|
468
465
|
function ol(e) {
|
|
466
|
+
return { label: e.title, value: e.value };
|
|
467
|
+
}
|
|
468
|
+
function nl(e) {
|
|
469
469
|
let t = [];
|
|
470
470
|
if (e.schemas && e.schemas[0]) {
|
|
471
|
-
let r = e.schemas[0], a =
|
|
472
|
-
|
|
471
|
+
let r = e.schemas[0], a = Qm(r);
|
|
472
|
+
il() ? t.push(a) : t.push(Ma([a], "md"));
|
|
473
473
|
}
|
|
474
474
|
return t;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function il() {
|
|
477
477
|
return false;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return [...t && e.title ? [
|
|
479
|
+
function sl(e, t) {
|
|
480
|
+
return [...t && e.title ? [ka(e.title)] : [], ...e.description ? [Ea(e.description)] : [], ...e.layout || []];
|
|
481
481
|
}
|
|
482
482
|
function ze({ layout: e, schemas: t, actions: r, model: a }) {
|
|
483
|
-
return e ? t ? e.map((o) => o.type === "form" ?
|
|
483
|
+
return e ? t ? e.map((o) => o.type === "form" ? cl({ formComponent: o, schemas: t }) : o.type === "decision" ? ml({ decisionComponent: o, actions: r }) : o.type === "button" ? ll({ actionComponent: o, actions: r }) : o.type === "box" ? S(s({}, o), { components: ze({ layout: o.components, schemas: t, actions: r, model: a }) }) : o.type === "modal" ? S(s({}, o), { components: ze({ layout: o.content.components, schemas: t, actions: r, model: a }) }) : o.type === "columns" ? S(s({}, o), { left: ze({ layout: o.left, schemas: t, actions: r, model: a }), right: ze({ layout: o.right, schemas: t, actions: r, model: a }) }) : o) : e : [];
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function cl({ formComponent: e, schemas: t }) {
|
|
486
486
|
if (e.schemaId)
|
|
487
|
-
return { type: "form", margin: e.margin, schema:
|
|
487
|
+
return { type: "form", margin: e.margin, schema: mn(t, e.schemaId) };
|
|
488
488
|
if (e.schema && Or(e.schema) && e.schema.$ref)
|
|
489
|
-
return { type: "form", margin: e.margin, schema:
|
|
489
|
+
return { type: "form", margin: e.margin, schema: mn(t, e.schema.$ref) };
|
|
490
490
|
if (e.schema && !Or(e.schema))
|
|
491
491
|
return s({}, e);
|
|
492
492
|
throw new Error('Invalid form layout component. Missing "schema" or "schemaId" properties.');
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function ml({ decisionComponent: e, actions: t }) {
|
|
495
495
|
var a;
|
|
496
|
-
let r = (a = e == null ? void 0 : e.options) == null ? void 0 : a.map((o) => o.action && Or(o.action) ?
|
|
497
|
-
return
|
|
496
|
+
let r = (a = e == null ? void 0 : e.options) == null ? void 0 : a.map((o) => o.action && Or(o.action) ? S(s({}, o), { action: ln(t, o.action.$ref) }) : o);
|
|
497
|
+
return S(s({}, e), { options: r });
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function ll({ actionComponent: e, actions: t }) {
|
|
500
500
|
var r;
|
|
501
501
|
if (e.action && Or(e.action) && ((r = e.action) != null && r.$ref)) {
|
|
502
|
-
let a =
|
|
502
|
+
let a = ln(t, e.action.$ref);
|
|
503
503
|
return Ar(a);
|
|
504
504
|
}
|
|
505
505
|
return e;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function mn(e, t) {
|
|
508
508
|
let r = e.find((a) => a.$id === t);
|
|
509
509
|
if (!r)
|
|
510
510
|
throw new Error(`Fatal Error. Schema not found. $id ${t}`);
|
|
511
511
|
return r;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function ln(e, t) {
|
|
514
514
|
let r = e.find((a) => a.$id === t);
|
|
515
515
|
if (!r)
|
|
516
516
|
throw new Error(`Fatal Error. Action not found. $id ${t}`);
|
|
@@ -523,37 +523,37 @@ var require_main_min = __commonJS({
|
|
|
523
523
|
var Cm = require("react-intl");
|
|
524
524
|
var vt = require("react");
|
|
525
525
|
var Pr = require("react");
|
|
526
|
-
function
|
|
526
|
+
function dn() {
|
|
527
527
|
let [e, t] = (0, Pr.useState)(0);
|
|
528
528
|
return { addPendingPromise: (0, Pr.useCallback)((a) => {
|
|
529
|
-
t((o) => o + 1), a.catch(
|
|
529
|
+
t((o) => o + 1), a.catch(ul).finally(() => dl(() => t((o) => Math.max(0, o - 1))));
|
|
530
530
|
}, [t]), pendingPromises: e };
|
|
531
531
|
}
|
|
532
|
-
var
|
|
533
|
-
var
|
|
532
|
+
var dl = (e) => setTimeout(() => e(), 0);
|
|
533
|
+
var ul = () => {
|
|
534
534
|
};
|
|
535
|
-
var
|
|
536
|
-
var
|
|
535
|
+
var fn = require("react/jsx-runtime");
|
|
536
|
+
var un = { loading: false, registerPersistAsyncPromise: (e) => {
|
|
537
537
|
} };
|
|
538
|
-
var
|
|
539
|
-
var
|
|
540
|
-
let { pendingPromises: r, addPendingPromise: a } =
|
|
541
|
-
return (0,
|
|
538
|
+
var pn = (0, vt.createContext)(un);
|
|
539
|
+
var yn = ({ loading: e, children: t }) => {
|
|
540
|
+
let { pendingPromises: r, addPendingPromise: a } = dn(), o = (0, vt.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: a }), [e, r, a]);
|
|
541
|
+
return (0, fn.jsx)(pn.Provider, { value: o, children: t });
|
|
542
542
|
};
|
|
543
|
-
var At = () => (0, vt.useContext)(
|
|
543
|
+
var At = () => (0, vt.useContext)(pn) || un;
|
|
544
544
|
var Ot = require("react");
|
|
545
|
-
var
|
|
546
|
-
var
|
|
545
|
+
var gn = require("react/jsx-runtime");
|
|
546
|
+
var hn = (0, Ot.createContext)({ triggerEvent: () => {
|
|
547
547
|
} });
|
|
548
548
|
function Mr({ metadata: e, children: t, onEvent: r }) {
|
|
549
|
-
let a = (0, Ot.useMemo)(() => ({ triggerEvent:
|
|
550
|
-
return (0,
|
|
549
|
+
let a = (0, Ot.useMemo)(() => ({ triggerEvent: Ia(r, e) }), [r, e]);
|
|
550
|
+
return (0, gn.jsx)(hn.Provider, { value: a, children: t });
|
|
551
551
|
}
|
|
552
552
|
function re() {
|
|
553
|
-
let { triggerEvent: e } = (0, Ot.useContext)(
|
|
553
|
+
let { triggerEvent: e } = (0, Ot.useContext)(hn);
|
|
554
554
|
return e;
|
|
555
555
|
}
|
|
556
|
-
var
|
|
556
|
+
var Ia = (e, t) => (r, a = {}) => {
|
|
557
557
|
try {
|
|
558
558
|
e(r, s(s({}, t), a));
|
|
559
559
|
} catch (o) {
|
|
@@ -561,11 +561,11 @@ var require_main_min = __commonJS({
|
|
|
561
561
|
};
|
|
562
562
|
var ct = require("react");
|
|
563
563
|
var kr = (e, t) => (r, a) => {
|
|
564
|
-
let o =
|
|
565
|
-
return fetch(o,
|
|
564
|
+
let o = pl(r, e || ""), n = yl(a == null ? void 0 : a.headers, t);
|
|
565
|
+
return fetch(o, S(s({}, a != null ? a : {}), { headers: n }));
|
|
566
566
|
};
|
|
567
|
-
var
|
|
568
|
-
var
|
|
567
|
+
var pl = (e, t) => typeof e == "string" && fl(e) ? t + e : e;
|
|
568
|
+
var yl = (e, t) => {
|
|
569
569
|
if (!e && !t)
|
|
570
570
|
return {};
|
|
571
571
|
let r = new Headers(e);
|
|
@@ -573,25 +573,25 @@ var require_main_min = __commonJS({
|
|
|
573
573
|
r.set(a, o);
|
|
574
574
|
return r;
|
|
575
575
|
};
|
|
576
|
-
function
|
|
576
|
+
function fl(e = "") {
|
|
577
577
|
return !["https://", "http://", "data:"].some((t) => e.startsWith(t) && e.length > t.length);
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var Da = require("react/jsx-runtime");
|
|
580
580
|
var Er = (0, ct.createContext)(void 0);
|
|
581
|
-
function
|
|
582
|
-
return (0,
|
|
581
|
+
function wn({ httpClient: e, children: t }) {
|
|
582
|
+
return (0, Da.jsx)(Er.Provider, { value: e, children: t });
|
|
583
583
|
}
|
|
584
584
|
function Ir({ baseUrl: e, children: t }) {
|
|
585
585
|
let r = (0, ct.useMemo)(() => kr(e), [e]);
|
|
586
|
-
return (0,
|
|
586
|
+
return (0, Da.jsx)(Er.Provider, { value: r, children: t });
|
|
587
587
|
}
|
|
588
588
|
var ae = () => {
|
|
589
589
|
let e = (0, ct.useContext)(Er);
|
|
590
590
|
return e != null ? e : fetch;
|
|
591
591
|
};
|
|
592
|
-
var
|
|
592
|
+
var Sn = () => !!(0, ct.useContext)(Er);
|
|
593
593
|
var Pt = require("react");
|
|
594
|
-
var
|
|
594
|
+
var Fn = require("react/jsx-runtime");
|
|
595
595
|
var mt = (e, t, r = "UNKNOWN-FLOW-ID", a = "UNKNOWN-FLOW-ID") => (o, n, i) => {
|
|
596
596
|
try {
|
|
597
597
|
t(e, `Dynamic Flow ${e} - ${o} - ${n}`, s({ flowId: r, stepId: a }, i));
|
|
@@ -601,7 +601,7 @@ var require_main_min = __commonJS({
|
|
|
601
601
|
var Cn = (0, Pt.createContext)(null);
|
|
602
602
|
function Dr({ flowId: e, stepId: t, children: r, onLog: a }) {
|
|
603
603
|
let o = (0, Pt.useMemo)(() => ({ debug: mt("debug", a, e, t), info: mt("info", a, e, t), warning: mt("warning", a, e, t), error: mt("error", a, e, t), critical: mt("critical", a, e, t) }), [a, e, t]);
|
|
604
|
-
return (0,
|
|
604
|
+
return (0, Fn.jsx)(Cn.Provider, { value: o, children: r });
|
|
605
605
|
}
|
|
606
606
|
var Mt = () => {
|
|
607
607
|
let e = (0, Pt.useContext)(Cn);
|
|
@@ -609,51 +609,51 @@ var require_main_min = __commonJS({
|
|
|
609
609
|
throw new Error("Logging context not found. Did you forget to wrap your component in a <LogProvider />?");
|
|
610
610
|
return e;
|
|
611
611
|
};
|
|
612
|
-
var
|
|
613
|
-
var
|
|
614
|
-
var
|
|
615
|
-
function
|
|
616
|
-
return (0,
|
|
612
|
+
var La = require("react");
|
|
613
|
+
var xn = require("react/jsx-runtime");
|
|
614
|
+
var hl = (0, La.createContext)([]);
|
|
615
|
+
function bn({ features: e, children: t }) {
|
|
616
|
+
return (0, xn.jsx)(hl.Provider, { value: e, children: t });
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function vn(e) {
|
|
619
619
|
return e >= 200 && e < 300;
|
|
620
620
|
}
|
|
621
621
|
function Lr(e) {
|
|
622
622
|
return e === 422;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function An(e = "") {
|
|
625
625
|
return !["https://", "http://", "data:"].some((t) => e.startsWith(t) && e.length > t.length);
|
|
626
626
|
}
|
|
627
627
|
var L = (e) => typeof e == "string";
|
|
628
628
|
var z = (e) => typeof e == "number" && !Number.isNaN(e);
|
|
629
|
-
var
|
|
629
|
+
var On = (e) => z(e) && Math.floor(e) === e;
|
|
630
630
|
var Ie = (e) => typeof e == "boolean";
|
|
631
631
|
var R = (e) => !I(e) && !Y(e) && (e == null ? void 0 : e.constructor) === Object;
|
|
632
632
|
var j = (e) => Array.isArray(e);
|
|
633
633
|
var I = (e) => e === null;
|
|
634
634
|
var Y = (e) => typeof e == "undefined";
|
|
635
635
|
var kt = (e) => L(e) && e.length === 0 || (R(e) || j(e)) && Object.keys(e).length === 0;
|
|
636
|
-
function
|
|
636
|
+
function Pn(e, t) {
|
|
637
637
|
return t.oneOf.some((r) => $e(e, r) === e) ? e : null;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Mn(e, t) {
|
|
640
640
|
var a;
|
|
641
|
-
let r = t.oneOf.map((o) =>
|
|
641
|
+
let r = t.oneOf.map((o) => gl(e, o)).filter((o) => o !== null);
|
|
642
642
|
return r.length === 0 ? null : (a = r.find((o) => o.some((n) => n !== null))) != null ? a : r[0];
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return !je(t) || !De(t) ? null :
|
|
644
|
+
function gl(e, t) {
|
|
645
|
+
return !je(t) || !De(t) ? null : Ta(e, t);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function kn(e) {
|
|
648
648
|
return L(e) && !kt(e) ? e : null;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function En(e) {
|
|
651
651
|
return z(e) ? e : null;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function In(e) {
|
|
654
654
|
return Ie(e) ? e : null;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Ta(e, t) {
|
|
657
657
|
if (!j(e) || !De(t))
|
|
658
658
|
return null;
|
|
659
659
|
if (e.length > 0) {
|
|
@@ -663,156 +663,153 @@ var require_main_min = __commonJS({
|
|
|
663
663
|
}
|
|
664
664
|
return e.map((r) => Et(r, t.items));
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function Dn(e, t) {
|
|
667
667
|
return Object.keys(t.properties).reduce((r, a) => {
|
|
668
668
|
if (e && !Y(e[a])) {
|
|
669
669
|
let o = e[a], n = t.properties[a], i = Et(o, n);
|
|
670
670
|
if (!I(i))
|
|
671
|
-
return
|
|
671
|
+
return S(s({}, r), { [a]: i });
|
|
672
672
|
}
|
|
673
673
|
return r;
|
|
674
674
|
}, {});
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Ln(e, t) {
|
|
677
677
|
return t.allOf.reduce((r, a) => {
|
|
678
678
|
let o = ce(e, a);
|
|
679
679
|
return $(o) ? s(s({}, r), o) : r;
|
|
680
680
|
}, {});
|
|
681
681
|
}
|
|
682
|
-
function Ln(e, t) {
|
|
683
|
-
return t.oneOf.map((r) => ce(e, r)).reduce((r, a) => I(r) ? a : $(r) && $(a) ? Tn(r, a) : I(a) ? r : a, null);
|
|
684
|
-
}
|
|
685
682
|
function Tn(e, t) {
|
|
683
|
+
return t.oneOf.map((r) => ce(e, r)).reduce((r, a) => I(r) ? a : $(r) && $(a) ? Rn(r, a) : I(a) ? r : a, null);
|
|
684
|
+
}
|
|
685
|
+
function Rn(e, t) {
|
|
686
686
|
return Object.keys(t).reduce((r, a) => {
|
|
687
687
|
let o = e[a], n = t[a];
|
|
688
|
-
return $(o) && $(n) ?
|
|
688
|
+
return $(o) && $(n) ? S(s({}, r), { [a]: Rn(o, n) }) : S(s({}, r), { [a]: t[a] });
|
|
689
689
|
}, s({}, e));
|
|
690
690
|
}
|
|
691
|
-
var Et = (e, t) => $(e) ? ce(e, t) :
|
|
691
|
+
var Et = (e, t) => $(e) ? ce(e, t) : Ra(e) ? wl(e, t) : $e(e, t);
|
|
692
692
|
function $e(e, t) {
|
|
693
693
|
if (I(e))
|
|
694
694
|
return null;
|
|
695
695
|
if (t.oneOf)
|
|
696
|
-
return
|
|
696
|
+
return Pn(e, t);
|
|
697
697
|
if (!Y(t.const) && e === t.const)
|
|
698
698
|
return e;
|
|
699
699
|
if (t.type)
|
|
700
700
|
switch (t.type) {
|
|
701
701
|
case "string":
|
|
702
|
-
return
|
|
702
|
+
return kn(e);
|
|
703
703
|
case "number":
|
|
704
704
|
case "integer":
|
|
705
|
-
return kn(e);
|
|
706
|
-
case "boolean":
|
|
707
705
|
return En(e);
|
|
706
|
+
case "boolean":
|
|
707
|
+
return In(e);
|
|
708
708
|
default:
|
|
709
709
|
return null;
|
|
710
710
|
}
|
|
711
711
|
return null;
|
|
712
712
|
}
|
|
713
713
|
function ce(e, t) {
|
|
714
|
-
return Ve(t) || je(t) || I(e) ? null : t.allOf ?
|
|
714
|
+
return Ve(t) || je(t) || I(e) ? null : t.allOf ? Ln(e, t) : t.oneOf ? Tn(e, t) : !Y(t.const) && e === t.const ? e : Le(t) ? Dn(e, t) : null;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
717
|
-
return ge(t) ?
|
|
716
|
+
function wl(e, t) {
|
|
717
|
+
return ge(t) ? Mn(e, t) : je(t) ? Ta(e, t) : null;
|
|
718
718
|
}
|
|
719
719
|
function er(e, t = false) {
|
|
720
720
|
return !t || !Y(e);
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Nn(e, t = false) {
|
|
723
723
|
return !t || j(e);
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Bn(e, t) {
|
|
726
726
|
return !z(t) || L(e) && e.length >= t;
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function zn(e, t) {
|
|
729
729
|
return !z(t) || L(e) && e.length <= t;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function jn(e, t) {
|
|
732
732
|
return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Na(e, t) {
|
|
735
735
|
return !z(t) && !L(t) || (z(e) || L(e)) && e <= t;
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Ba(e, t) {
|
|
738
738
|
return !z(t) && !L(t) || (z(e) || L(e)) && e >= t;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function Vn(e, t) {
|
|
741
741
|
return !z(t) || j(e) && e.length >= t;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Un(e, t) {
|
|
744
744
|
return !z(t) || j(e) && e.length <= t;
|
|
745
745
|
}
|
|
746
746
|
function _e(e, t, r) {
|
|
747
747
|
if (t.const)
|
|
748
|
-
return
|
|
748
|
+
return Ua(e, t, r);
|
|
749
749
|
if (I(e))
|
|
750
750
|
return r ? ["required"] : [];
|
|
751
751
|
if (Rr(t))
|
|
752
|
-
return
|
|
752
|
+
return za(e, t, r);
|
|
753
753
|
switch (t.type) {
|
|
754
754
|
case "number":
|
|
755
755
|
return Tr(e, t, r);
|
|
756
756
|
case "integer":
|
|
757
|
-
return za(e, t, r);
|
|
758
|
-
case "boolean":
|
|
759
757
|
return ja(e, t, r);
|
|
758
|
+
case "boolean":
|
|
759
|
+
return Va(e, t, r);
|
|
760
760
|
case "array":
|
|
761
761
|
return It(e, t, r);
|
|
762
762
|
case "object":
|
|
763
|
-
return
|
|
763
|
+
return Sl(e, t);
|
|
764
764
|
default:
|
|
765
765
|
return [];
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function za(e, t, r) {
|
|
769
769
|
if (!L(e) && !I(e))
|
|
770
770
|
return ["type"];
|
|
771
771
|
if (e === "" && r)
|
|
772
772
|
return ["required"];
|
|
773
773
|
let a = [];
|
|
774
|
-
return er(e, r) || a.push("required"),
|
|
774
|
+
return er(e, r) || a.push("required"), Bn(e, t.minLength) || a.push("minLength"), zn(e, t.maxLength) || a.push("maxLength"), jn(e, t.pattern) || a.push("pattern"), Ba(e, t.minimum) || a.push("minimum"), Na(e, t.maximum) || a.push("maximum"), a;
|
|
775
775
|
}
|
|
776
776
|
function Tr(e, t, r) {
|
|
777
777
|
if (!z(e) && !I(e))
|
|
778
778
|
return ["type"];
|
|
779
779
|
let a = [];
|
|
780
|
-
return er(e, r) || a.push("required"),
|
|
781
|
-
}
|
|
782
|
-
function za(e, t, r) {
|
|
783
|
-
return An(e) ? Tr(e, t, r) : ["type"];
|
|
780
|
+
return er(e, r) || a.push("required"), Ba(e, t.minimum) || a.push("minimum"), Na(e, t.maximum) || a.push("maximum"), a;
|
|
784
781
|
}
|
|
785
782
|
function ja(e, t, r) {
|
|
783
|
+
return On(e) ? Tr(e, t, r) : ["type"];
|
|
784
|
+
}
|
|
785
|
+
function Va(e, t, r) {
|
|
786
786
|
if (!Ie(e) && !I(e))
|
|
787
787
|
return ["type"];
|
|
788
788
|
let a = [];
|
|
789
789
|
return er(e, r) || a.push("required"), a;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Ua(e, t, r) {
|
|
792
792
|
return er(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
|
|
793
793
|
}
|
|
794
794
|
function It(e, t, r) {
|
|
795
795
|
if (!j(e) && !I(e))
|
|
796
796
|
return ["type"];
|
|
797
|
-
if (!
|
|
797
|
+
if (!Nn(e, r))
|
|
798
798
|
return ["required"];
|
|
799
799
|
let a = [];
|
|
800
|
-
return
|
|
800
|
+
return Vn(e, t.minItems) || a.push("minItems"), Un(e, t.maxItems) || a.push("maxItems"), a;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Hn(e, t) {
|
|
803
803
|
return I(e) ? ["type"] : [];
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Sl(e, t) {
|
|
806
806
|
return $(e) ? j(t.required) ? t.required.map((a) => typeof e[a] != "undefined").reduce((a, o) => a && o, true) ? [] : ["required"] : [] : ["type"];
|
|
807
807
|
}
|
|
808
808
|
function Cl(e, t) {
|
|
809
|
-
return !
|
|
810
|
-
}
|
|
811
|
-
function Sl(e, t) {
|
|
812
|
-
return !Tr(e, t).length;
|
|
809
|
+
return !za(e, t).length;
|
|
813
810
|
}
|
|
814
811
|
function Fl(e, t) {
|
|
815
|
-
return !
|
|
812
|
+
return !Tr(e, t).length;
|
|
816
813
|
}
|
|
817
814
|
function bl(e, t) {
|
|
818
815
|
return !ja(e, t).length;
|
|
@@ -821,60 +818,63 @@ var require_main_min = __commonJS({
|
|
|
821
818
|
return !Va(e, t).length;
|
|
822
819
|
}
|
|
823
820
|
function vl(e, t) {
|
|
824
|
-
return !
|
|
821
|
+
return !Ua(e, t).length;
|
|
822
|
+
}
|
|
823
|
+
function Al(e, t) {
|
|
824
|
+
return !R(e) || t.type !== "object" || !R(t.properties) ? false : Object.keys(t.properties).map((r) => Ol(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Ol(e, t, r) {
|
|
827
827
|
return t.hidden ? true : typeof e == "undefined" ? !r : G(e, t);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function Pl(e, t) {
|
|
830
830
|
return t.type !== "array" || !R(t.items) || It(e, t).length > 0 ? false : Array.isArray(e) && De(t) && e.map((r) => G(r, t.items)).every((r) => r);
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Ml(e, t) {
|
|
833
833
|
return j(t.oneOf) ? t.oneOf.some((r) => G(e, r)) : false;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function kl(e, t) {
|
|
836
836
|
return j(t.allOf) ? t.allOf.map((r) => G(e, r)).every((r) => r) : false;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
839
|
-
return !
|
|
838
|
+
function El(e, t) {
|
|
839
|
+
return !Hn(e, t).length;
|
|
840
840
|
}
|
|
841
841
|
function G(e, t) {
|
|
842
842
|
if (t.oneOf)
|
|
843
|
-
return Pl(e, t);
|
|
844
|
-
if (t.allOf)
|
|
845
843
|
return Ml(e, t);
|
|
844
|
+
if (t.allOf)
|
|
845
|
+
return kl(e, t);
|
|
846
846
|
if (t.const)
|
|
847
|
-
return
|
|
847
|
+
return vl(e, t);
|
|
848
848
|
switch (t.type) {
|
|
849
849
|
case "string":
|
|
850
850
|
return Cl(e, t);
|
|
851
851
|
case "number":
|
|
852
|
-
return Sl(e, t);
|
|
853
|
-
case "integer":
|
|
854
852
|
return Fl(e, t);
|
|
855
|
-
case "
|
|
853
|
+
case "integer":
|
|
856
854
|
return bl(e, t);
|
|
855
|
+
case "boolean":
|
|
856
|
+
return xl(e, t);
|
|
857
857
|
case "array":
|
|
858
|
-
return
|
|
858
|
+
return Pl(e, t);
|
|
859
859
|
case "object":
|
|
860
|
-
return
|
|
860
|
+
return Al(e, t);
|
|
861
861
|
case "blob":
|
|
862
|
-
return
|
|
862
|
+
return El(e, t);
|
|
863
863
|
default:
|
|
864
864
|
return false;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Il(e) {
|
|
868
868
|
let t = new Date(e), r = String(t.getMonth() + 1), a = String(t.getDate()), o = t.getFullYear(), n = r.length < 2 ? `0${r}` : r, i = a.length < 2 ? `0${a}` : a;
|
|
869
869
|
return [o, n, i].join("-");
|
|
870
870
|
}
|
|
871
|
-
var
|
|
871
|
+
var qn = (e) => {
|
|
872
872
|
if (!e)
|
|
873
873
|
return null;
|
|
874
874
|
let [t, r, a] = e.split("-").map((o) => parseInt(o, 10));
|
|
875
875
|
return !z(t) || !z(r) || !z(a) ? null : new Date(t, r - 1, a);
|
|
876
876
|
};
|
|
877
|
-
var
|
|
877
|
+
var Gn = (e) => Il(e);
|
|
878
878
|
var Ke = (e, t) => {
|
|
879
879
|
let r, a, o = () => {
|
|
880
880
|
r && (clearTimeout(r), r = null), a = null;
|
|
@@ -889,21 +889,21 @@ var require_main_min = __commonJS({
|
|
|
889
889
|
r !== null && (e(...a), o());
|
|
890
890
|
}, n;
|
|
891
891
|
};
|
|
892
|
-
var Je = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, a) => Je(r, t[a])) : !!(
|
|
893
|
-
var
|
|
892
|
+
var Je = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, a) => Je(r, t[a])) : !!(Wn(e) && Wn(t) && Dl(e, t));
|
|
893
|
+
var Dl = (e, t) => {
|
|
894
894
|
let r = Object.keys(e), a = Object.keys(t);
|
|
895
895
|
return r.length === a.length && r.every((o) => Object.hasOwnProperty.call(t, o) && Je(e[o], t[o]));
|
|
896
896
|
};
|
|
897
|
-
var
|
|
897
|
+
var Wn = (e) => typeof e == "object" && e !== null;
|
|
898
898
|
function Nr(e) {
|
|
899
899
|
return Math.floor(e / 1024);
|
|
900
900
|
}
|
|
901
|
-
var
|
|
901
|
+
var $n = (e) => new Promise((t, r) => {
|
|
902
902
|
let a = new FileReader();
|
|
903
903
|
a.readAsDataURL(e), a.addEventListener("load", () => t(a.result)), a.addEventListener("error", (o) => r(o));
|
|
904
904
|
});
|
|
905
|
-
function
|
|
906
|
-
let r = t.reduce((a, o) =>
|
|
905
|
+
function _n(e, t) {
|
|
906
|
+
let r = t.reduce((a, o) => S(s({}, a), { [o.id]: o }), {});
|
|
907
907
|
for (let a of e) {
|
|
908
908
|
let o = r[a.id];
|
|
909
909
|
if (!o || o.status !== a.status)
|
|
@@ -918,11 +918,11 @@ var require_main_min = __commonJS({
|
|
|
918
918
|
function tr(e) {
|
|
919
919
|
return !!e && !we(e);
|
|
920
920
|
}
|
|
921
|
-
var
|
|
922
|
-
var
|
|
923
|
-
var
|
|
921
|
+
var Ll = (e) => !!e.readOnly && Ve(e);
|
|
922
|
+
var Tl = (e) => !!e.oneOf && !!e.promotion;
|
|
923
|
+
var Rl = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
|
|
924
924
|
function Ve(e) {
|
|
925
|
-
return
|
|
925
|
+
return Rl.has(e.type || "") || "const" in e && e.const !== void 0;
|
|
926
926
|
}
|
|
927
927
|
function Le(e) {
|
|
928
928
|
return e.type === "object";
|
|
@@ -933,7 +933,7 @@ var require_main_min = __commonJS({
|
|
|
933
933
|
function ge(e) {
|
|
934
934
|
return !!e.oneOf;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Ha(e) {
|
|
937
937
|
return !!e.allOf;
|
|
938
938
|
}
|
|
939
939
|
function Dt(e) {
|
|
@@ -952,25 +952,25 @@ var require_main_min = __commonJS({
|
|
|
952
952
|
function Br(e) {
|
|
953
953
|
return !!e.persistAsync;
|
|
954
954
|
}
|
|
955
|
-
function Rl(e) {
|
|
956
|
-
return Br(e) && (Dt(e.persistAsync.schema) || Nl(e.persistAsync.schema));
|
|
957
|
-
}
|
|
958
|
-
var Ha = (e) => Ve(e) && !!e.validationAsync;
|
|
959
955
|
function Nl(e) {
|
|
956
|
+
return Br(e) && (Dt(e.persistAsync.schema) || Bl(e.persistAsync.schema));
|
|
957
|
+
}
|
|
958
|
+
var qa = (e) => Ve(e) && !!e.validationAsync;
|
|
959
|
+
function Bl(e) {
|
|
960
960
|
return e.type === "string" && e.format === "base64url";
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Kn(e) {
|
|
963
963
|
return e.type === "string" && e.format === "base64url";
|
|
964
964
|
}
|
|
965
|
-
var
|
|
966
|
-
var dt = (e) =>
|
|
967
|
-
var
|
|
968
|
-
var
|
|
969
|
-
var
|
|
965
|
+
var Jn = (e) => je(e) && De(e) && Nl(e.items);
|
|
966
|
+
var dt = (e) => Ll(e) ? "readOnly" : Br(e) ? "persistAsync" : qa(e) ? "validationAsync" : Le(e) ? "object" : je(e) ? "array" : Tl(e) ? "promotedOneOf" : ge(e) ? "oneOf" : Ha(e) ? "allOf" : Ve(e) ? "basic" : null;
|
|
967
|
+
var Xn = (e) => zl(e) && jl(e) && Vl(e);
|
|
968
|
+
var zl = (e) => !e.type || e.type === "form";
|
|
969
|
+
var jl = (e) => {
|
|
970
970
|
var t;
|
|
971
971
|
return ((t = e == null ? void 0 : e.actions) == null ? void 0 : t.length) === 1;
|
|
972
972
|
};
|
|
973
|
-
var
|
|
973
|
+
var Vl = (e) => {
|
|
974
974
|
if (!e.schemas)
|
|
975
975
|
return false;
|
|
976
976
|
let t = zr(e.schemas);
|
|
@@ -980,38 +980,38 @@ var require_main_min = __commonJS({
|
|
|
980
980
|
if (!Le(r) || Object.values(r.properties).length !== 1)
|
|
981
981
|
return false;
|
|
982
982
|
let a = Object.values(r.properties)[0];
|
|
983
|
-
return
|
|
983
|
+
return Kn(a) ? a.source === "camera" : false;
|
|
984
984
|
};
|
|
985
985
|
var zr = (e) => e.filter((t) => Le(t) ? Object.values((t == null ? void 0 : t.properties) || {}).find((r) => (r == null ? void 0 : r.hidden) !== true) : (t == null ? void 0 : t.hidden) !== true);
|
|
986
986
|
var $ = (e) => typeof e == "object" && e !== null && e.constructor === Object;
|
|
987
|
-
var
|
|
988
|
-
var
|
|
987
|
+
var Ga = (e) => I(e) || $(e);
|
|
988
|
+
var Wa = (e) => Ie(e) || z(e) || L(e) || I(e);
|
|
989
989
|
var jr = (e) => L(e) || I(e);
|
|
990
|
-
var
|
|
991
|
-
var
|
|
990
|
+
var Ra = (e) => j(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object") : false;
|
|
991
|
+
var Yn = (e) => I(e) ? true : Ra(e);
|
|
992
992
|
var rr = (e) => L(e) || I(e);
|
|
993
|
-
var
|
|
994
|
-
var
|
|
995
|
-
var
|
|
996
|
-
var
|
|
993
|
+
var Zn = () => Hl() && (ql() || Ul());
|
|
994
|
+
var Ul = (e = window.navigator.userAgent) => /mobi|\b(iphone|android|blackberry|webos|windows phone)\b/i.test(e);
|
|
995
|
+
var Hl = (e = window.screen.width, t = window.screen.height) => e < 768 || t < 768;
|
|
996
|
+
var ql = (e = window.navigator, t = window.matchMedia) => {
|
|
997
997
|
if ("maxTouchPoints" in e)
|
|
998
998
|
return e.maxTouchPoints > 0;
|
|
999
999
|
let r = t == null ? void 0 : t("(pointer:coarse)");
|
|
1000
1000
|
return (r == null ? void 0 : r.media) === "(pointer:coarse)" ? !!r.matches : false;
|
|
1001
1001
|
};
|
|
1002
|
-
var
|
|
1003
|
-
function
|
|
1004
|
-
return (0,
|
|
1002
|
+
var Qn = require("react");
|
|
1003
|
+
function ei(e, t) {
|
|
1004
|
+
return (0, Qn.useCallback)(Ke(e, t), [e, t]);
|
|
1005
1005
|
}
|
|
1006
1006
|
var ar = require("react");
|
|
1007
|
-
function
|
|
1007
|
+
function ti(e) {
|
|
1008
1008
|
let [t, r] = (0, ar.useState)(null), [a, o] = (0, ar.useState)(false), n = () => o(true);
|
|
1009
1009
|
return (0, ar.useEffect)(() => {
|
|
1010
1010
|
e && (o(false), r(window.open(e, "_blank")));
|
|
1011
1011
|
}, [e]), { requiresManualTrigger: !!(e && !t && !a), dismissConfirmation: n };
|
|
1012
1012
|
}
|
|
1013
1013
|
var or = require("react");
|
|
1014
|
-
function
|
|
1014
|
+
function ri(e, t) {
|
|
1015
1015
|
let r = ae(), a = (0, or.useMemo)(() => {
|
|
1016
1016
|
if (e)
|
|
1017
1017
|
return () => r(e.url).then((n) => {
|
|
@@ -1032,10 +1032,10 @@ var require_main_min = __commonJS({
|
|
|
1032
1032
|
let { action: d } = c;
|
|
1033
1033
|
if (d.exit) {
|
|
1034
1034
|
let m = s(s({}, d.result || {}), n.data || {});
|
|
1035
|
-
t(
|
|
1035
|
+
t(S(s({}, d), { result: m }));
|
|
1036
1036
|
} else {
|
|
1037
1037
|
let m = s(s({}, d.data || {}), n.data || {});
|
|
1038
|
-
t(
|
|
1038
|
+
t(S(s({}, d), { data: m }));
|
|
1039
1039
|
}
|
|
1040
1040
|
return false;
|
|
1041
1041
|
}
|
|
@@ -1045,55 +1045,54 @@ var require_main_min = __commonJS({
|
|
|
1045
1045
|
e && t(e.onError.action);
|
|
1046
1046
|
}, [t, e]) });
|
|
1047
1047
|
}
|
|
1048
|
-
var
|
|
1049
|
-
var
|
|
1050
|
-
var
|
|
1051
|
-
var nr = (0,
|
|
1048
|
+
var wc = require("react");
|
|
1049
|
+
var Sc = require("react-intl");
|
|
1050
|
+
var ai = require("react-intl");
|
|
1051
|
+
var nr = (0, ai.defineMessages)({ genericError: { id: "dynamicFlows.PersistAsyncSchema.genericError", defaultMessage: "Something went wrong, please try again later!", description: "Generic error message for persist async schema" } });
|
|
1052
1052
|
var bt = require("react");
|
|
1053
|
-
var
|
|
1054
|
-
var
|
|
1053
|
+
var pc = require("react-intl");
|
|
1054
|
+
var oi = { DAY_MONTH_YEAR: "day-month-year", MONTH_YEAR: "month-year" };
|
|
1055
1055
|
var N = { RADIO: "radio", CHECKBOX: "checkbox", SELECT: "select", EMAIL: "email", FILE: "file", DATE: "date", DATETIME: "date-time", DATELOOKUP: "date-lookup", TEL: "tel", NUMERIC: "numeric", NUMBER: "number", HIDDEN: "hidden", PASSWORD: "password", TEXT: "text", TEXTAREA: "textarea", UPLOAD: "upload", TAB: "tab" };
|
|
1056
|
-
var
|
|
1057
|
-
var
|
|
1058
|
-
var
|
|
1059
|
-
var
|
|
1060
|
-
var
|
|
1056
|
+
var ni = { SHORT: "short", LONG: "long" };
|
|
1057
|
+
var ii = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
|
|
1058
|
+
var dc = Ee(Xe());
|
|
1059
|
+
var ue = require("react");
|
|
1060
|
+
var pi = require("@transferwise/components");
|
|
1061
1061
|
var Tt = require("@transferwise/components");
|
|
1062
|
-
var
|
|
1063
|
-
var Lt = (e) =>
|
|
1064
|
-
var ql = (e) => Wl.some((t) => e === `flag-${t}`);
|
|
1062
|
+
var ci = require("react/jsx-runtime");
|
|
1063
|
+
var Lt = (e) => Gl(e) || Wl(e);
|
|
1065
1064
|
var Gl = (e) => $l.some((t) => e === `flag-${t}`);
|
|
1066
|
-
var
|
|
1065
|
+
var Wl = (e) => _l.some((t) => e === `flag-${t}`);
|
|
1066
|
+
function si({ name: e }) {
|
|
1067
1067
|
if (!Lt(e))
|
|
1068
1068
|
return null;
|
|
1069
1069
|
let t = e.substring(5);
|
|
1070
|
-
return (0,
|
|
1071
|
-
}
|
|
1072
|
-
var
|
|
1073
|
-
var
|
|
1074
|
-
var
|
|
1075
|
-
var
|
|
1070
|
+
return (0, ci.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}`, width: "24px" });
|
|
1071
|
+
}
|
|
1072
|
+
var $l = ["aed", "ars", "aud", "bdt", "bgn", "bhd", "bnd", "brl", "bwp", "cad", "chf", "clp", "cny", "cop", "crc", "czk", "dkk", "egp", "eur", "fjd", "gbp", "gel", "ghs", "gtq", "hkd", "hrk", "huf", "idr", "ils", "imp", "inr", "isk", "jmd", "jpy", "kes", "krw", "kwd", "lak", "lkr", "lsl", "mad", "mur", "mxn", "myr", "mzn", "nad", "ngn", "nok", "npr", "nzd", "omr", "pab", "pen", "php", "pkr", "pln", "qar", "ron", "rub", "sar", "sek", "sgd", "thb", "tmt", "try", "twd", "tzs", "uah", "ugx", "usd", "uyu", "vnd", "xof", "zar", "zmw"];
|
|
1073
|
+
var _l = ["ad", "ae", "ar", "at", "au", "bd", "be", "bg", "bh", "bn", "br", "bw", "ca", "ch", "cl", "cn", "co", "cr", "cy", "cz", "de", "dk", "ee", "eg", "es", "eu", "fi", "fj", "fr", "gb", "ge", "gg", "gh", "gp", "gr", "gt", "hk", "hr", "hu", "id", "ie", "il", "im", "in", "is", "it", "je", "jm", "jp", "ke", "kr", "kw", "la", "li", "lk", "ls", "lt", "lu", "lv", "ma", "mc", "mt", "mu", "mx", "my", "mz", "na", "ng", "nl", "no", "np", "nz", "om", "pa", "pe", "ph", "pk", "pl", "pt", "qa", "ro", "ru", "sa", "se", "sg", "si", "sk", "sm", "th", "tm", "tr", "tw", "tz", "ua", "ug", "us", "uy", "va", "vn", "wi", "xo", "za", "zm"];
|
|
1074
|
+
var mi = Ee(require("@transferwise/icons"));
|
|
1075
|
+
var ui = require("react/jsx-runtime");
|
|
1076
1076
|
var Hr = (e) => {
|
|
1077
|
-
let t =
|
|
1078
|
-
return Object.keys(
|
|
1077
|
+
let t = di(e);
|
|
1078
|
+
return Object.keys(mi).includes(t);
|
|
1079
1079
|
};
|
|
1080
|
-
|
|
1080
|
+
function li({ name: e }) {
|
|
1081
1081
|
if (!Hr(e))
|
|
1082
1082
|
return null;
|
|
1083
|
-
let t =
|
|
1084
|
-
return (0,
|
|
1085
|
-
}
|
|
1086
|
-
var
|
|
1087
|
-
var
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
function $a(e) {
|
|
1083
|
+
let t = di(e), r = mi[t];
|
|
1084
|
+
return (0, ui.jsx)(r, { size: 24 });
|
|
1085
|
+
}
|
|
1086
|
+
var di = (e) => e.split("-").map(Kl).join("");
|
|
1087
|
+
var Kl = (e) => `${e[0].toUpperCase()}${e.slice(1)}`;
|
|
1088
|
+
var $a = require("react/jsx-runtime");
|
|
1089
|
+
function Jl({ type: e }) {
|
|
1090
|
+
return Lt(e) ? (0, $a.jsx)(si, { name: e }) : Hr(e) ? (0, $a.jsx)(li, { name: e }) : null;
|
|
1091
|
+
}
|
|
1092
|
+
function _a(e) {
|
|
1094
1093
|
return Hr(e) || Lt(e);
|
|
1095
1094
|
}
|
|
1096
|
-
var Ye =
|
|
1095
|
+
var Ye = Jl;
|
|
1097
1096
|
var ir = require("react/jsx-runtime");
|
|
1098
1097
|
var ut = ({ icon: e, image: t }) => {
|
|
1099
1098
|
if (e != null && e.name)
|
|
@@ -1122,7 +1121,7 @@ var require_main_min = __commonJS({
|
|
|
1122
1121
|
return "";
|
|
1123
1122
|
}
|
|
1124
1123
|
};
|
|
1125
|
-
var
|
|
1124
|
+
var Xl = (e) => {
|
|
1126
1125
|
switch (e) {
|
|
1127
1126
|
case "right":
|
|
1128
1127
|
return "text-xs-right";
|
|
@@ -1133,13 +1132,13 @@ var require_main_min = __commonJS({
|
|
|
1133
1132
|
return "";
|
|
1134
1133
|
}
|
|
1135
1134
|
};
|
|
1136
|
-
var
|
|
1137
|
-
var
|
|
1138
|
-
var
|
|
1135
|
+
var Se = (e) => `${Xl(e.align)} ${V(e.margin)}`;
|
|
1136
|
+
var yi = require("react/jsx-runtime");
|
|
1137
|
+
var Yl = (e) => {
|
|
1139
1138
|
let t = e.component;
|
|
1140
|
-
return (0,
|
|
1139
|
+
return (0, yi.jsx)(pi.Alert, { type: Ql(Zl(t.context)), className: V(t.margin), message: t.markdown });
|
|
1141
1140
|
};
|
|
1142
|
-
var
|
|
1141
|
+
var Zl = (e) => {
|
|
1143
1142
|
switch (e) {
|
|
1144
1143
|
case "success":
|
|
1145
1144
|
return "positive";
|
|
@@ -1154,15 +1153,15 @@ var require_main_min = __commonJS({
|
|
|
1154
1153
|
return e;
|
|
1155
1154
|
}
|
|
1156
1155
|
};
|
|
1157
|
-
var
|
|
1158
|
-
var se =
|
|
1156
|
+
var Ql = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
|
|
1157
|
+
var se = Yl;
|
|
1159
1158
|
var pt = require("react/jsx-runtime");
|
|
1160
|
-
var
|
|
1159
|
+
var ed = (e) => {
|
|
1161
1160
|
let t = e.component, r = V(t.margin || t.border ? "lg" : "xs");
|
|
1162
|
-
return !t.width || t.width === "xl" ? (0, pt.jsx)("div", { className: r +
|
|
1161
|
+
return !t.width || t.width === "xl" ? (0, pt.jsx)("div", { className: r + fi(t.border), children: (0, pt.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, pt.jsx)("div", { className: "row", children: (0, pt.jsx)("div", { className: r + td(t), children: (0, pt.jsx)("div", { className: fi(t.border), children: (0, pt.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
|
|
1163
1162
|
};
|
|
1164
|
-
var
|
|
1165
|
-
var
|
|
1163
|
+
var fi = (e) => e ? " well p-b-0" : "";
|
|
1164
|
+
var td = (e) => {
|
|
1166
1165
|
switch (e.width) {
|
|
1167
1166
|
case "xs":
|
|
1168
1167
|
return " col-md-4 col-md-offset-4";
|
|
@@ -1177,23 +1176,23 @@ var require_main_min = __commonJS({
|
|
|
1177
1176
|
return " col-xs-12";
|
|
1178
1177
|
}
|
|
1179
1178
|
};
|
|
1180
|
-
var
|
|
1181
|
-
var
|
|
1182
|
-
var
|
|
1183
|
-
var
|
|
1179
|
+
var Ka = ed;
|
|
1180
|
+
var Si = require("@transferwise/components");
|
|
1181
|
+
var rd = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
|
|
1182
|
+
var hi = (e) => {
|
|
1184
1183
|
var r;
|
|
1185
1184
|
let t = e.action.type;
|
|
1186
|
-
return (r = e.control) != null ? r : t ?
|
|
1185
|
+
return (r = e.control) != null ? r : t ? rd[t] : "secondary";
|
|
1187
1186
|
};
|
|
1188
|
-
var
|
|
1189
|
-
var
|
|
1190
|
-
var
|
|
1187
|
+
var ad = { positive: "positive", negative: "negative", neutral: "accent", warning: "accent" };
|
|
1188
|
+
var od = { primary: "accent", secondary: "accent", link: "accent", positive: "positive", negative: "negative" };
|
|
1189
|
+
var gi = (e) => {
|
|
1191
1190
|
if (e.context)
|
|
1192
|
-
return
|
|
1191
|
+
return ad[e.context];
|
|
1193
1192
|
let t = e.action.type;
|
|
1194
|
-
return t ?
|
|
1193
|
+
return t ? od[t] : "accent";
|
|
1195
1194
|
};
|
|
1196
|
-
var
|
|
1195
|
+
var wi = (e) => {
|
|
1197
1196
|
switch (e) {
|
|
1198
1197
|
case "xs":
|
|
1199
1198
|
case "sm":
|
|
@@ -1207,103 +1206,100 @@ var require_main_min = __commonJS({
|
|
|
1207
1206
|
}
|
|
1208
1207
|
};
|
|
1209
1208
|
var Ci = require("react/jsx-runtime");
|
|
1210
|
-
|
|
1209
|
+
function nd(e) {
|
|
1211
1210
|
var d;
|
|
1212
|
-
let { component: t, onAction: r } = e, a = t.action, o =
|
|
1213
|
-
return (0, Ci.jsx)(
|
|
1214
|
-
}
|
|
1215
|
-
var
|
|
1211
|
+
let { component: t, onAction: r } = e, a = t.action, o = gi(t), n = hi(t), { loading: i } = At(), c = V(t.margin || "md");
|
|
1212
|
+
return (0, Ci.jsx)(Si.Button, { size: wi(t.size), type: n === "tertiary" ? void 0 : o, priority: n, block: true, className: c, disabled: i || t.disabled || a.disabled, onClick: () => r(a), children: (d = t.title) != null ? d : a.title });
|
|
1213
|
+
}
|
|
1214
|
+
var Ja = nd;
|
|
1216
1215
|
var yt = require("react/jsx-runtime");
|
|
1217
|
-
var
|
|
1218
|
-
let t = e.component, { leftWidth: r, rightWidth: a } =
|
|
1216
|
+
var id = (e) => {
|
|
1217
|
+
let t = e.component, { leftWidth: r, rightWidth: a } = sd(t.bias);
|
|
1219
1218
|
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 }) })] });
|
|
1220
1219
|
};
|
|
1221
|
-
var
|
|
1222
|
-
var
|
|
1220
|
+
var sd = (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" };
|
|
1221
|
+
var Xa = id;
|
|
1223
1222
|
var Gr = require("@transferwise/components");
|
|
1224
1223
|
var qr = require("react/jsx-runtime");
|
|
1225
|
-
function
|
|
1224
|
+
function cd({ component: e, onAction: t }) {
|
|
1226
1225
|
let { loading: r } = At();
|
|
1227
|
-
return (0, qr.jsx)("div", { className: V(e.margin), children: (0, qr.jsx)(Gr.NavigationOptionsList, { children: e.options.map((a) => {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}
|
|
1232
|
-
var Xa = sd;
|
|
1233
|
-
var Si = require("react/jsx-runtime");
|
|
1234
|
-
var cd = ({ component: e }) => {
|
|
1226
|
+
return (0, qr.jsx)("div", { className: V(e.margin), children: (0, qr.jsx)(Gr.NavigationOptionsList, { children: e.options.map((a) => (0, qr.jsx)(Gr.NavigationOption, { title: a.title, content: a.description, disabled: r || a.disabled, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(a.action) }, JSON.stringify(a))) }) });
|
|
1227
|
+
}
|
|
1228
|
+
var Ya = cd;
|
|
1229
|
+
var Fi = require("react/jsx-runtime");
|
|
1230
|
+
var md = ({ component: e }) => {
|
|
1235
1231
|
let r = `m-t-0 ${V(e.margin)}`;
|
|
1236
|
-
return (0,
|
|
1232
|
+
return (0, Fi.jsx)("hr", { className: r });
|
|
1237
1233
|
};
|
|
1238
|
-
var
|
|
1234
|
+
var Za = md;
|
|
1239
1235
|
var Rt = require("@transferwise/components");
|
|
1240
1236
|
var Wr = require("react");
|
|
1241
|
-
var
|
|
1242
|
-
var
|
|
1243
|
-
var
|
|
1237
|
+
var vi = require("react-intl");
|
|
1238
|
+
var bi = require("react-intl");
|
|
1239
|
+
var xi = (0, bi.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1244
1240
|
var Ze = require("react/jsx-runtime");
|
|
1245
|
-
var
|
|
1246
|
-
let { requestUrl: r, responseHandlers: a, polling: o, retryTitle: n } = e, i = (0,
|
|
1241
|
+
var ld = ({ component: e, onAction: t }) => {
|
|
1242
|
+
let { requestUrl: r, responseHandlers: a, polling: o, retryTitle: n } = e, i = (0, vi.useIntl)(), c = (0, Wr.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1247
1243
|
(0, Wr.useEffect)(() => {
|
|
1248
1244
|
c();
|
|
1249
1245
|
}, [c]);
|
|
1250
|
-
let d = o && a ?
|
|
1251
|
-
return
|
|
1246
|
+
let d = o && a ? S(s({}, o), { responseHandlers: a }) : void 0;
|
|
1247
|
+
return ri(d, 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(xi.retryTitle) })] });
|
|
1252
1248
|
};
|
|
1253
|
-
var
|
|
1254
|
-
var
|
|
1255
|
-
var
|
|
1256
|
-
var
|
|
1257
|
-
var
|
|
1249
|
+
var Qa = ld;
|
|
1250
|
+
var Gs = require("react");
|
|
1251
|
+
var Ai = require("@transferwise/components");
|
|
1252
|
+
var Oi = Ee(Xe());
|
|
1253
|
+
var Pi = require("react");
|
|
1258
1254
|
var Re = require("react/jsx-runtime");
|
|
1259
|
-
var
|
|
1260
|
-
var
|
|
1261
|
-
var
|
|
1262
|
-
function
|
|
1255
|
+
var dd = (e, t) => t.map((r) => ce(e, r) || {});
|
|
1256
|
+
var ud = (e) => e.reduce((t, r) => s(s({}, r), t), {});
|
|
1257
|
+
var pd = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1258
|
+
function Mi(e) {
|
|
1263
1259
|
let t = (o, n) => {
|
|
1264
1260
|
let i = e.schema.allOf[o];
|
|
1265
|
-
r[o] = ce(n.model, i) || {}, a(r), e.onChange(
|
|
1266
|
-
}, [r, a] = (0,
|
|
1267
|
-
return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(
|
|
1261
|
+
r[o] = ce(n.model, i) || {}, a(r), e.onChange(S(s({}, n), { model: ud(r) }));
|
|
1262
|
+
}, [r, a] = (0, Pi.useState)(dd(e.model, e.schema.allOf));
|
|
1263
|
+
return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(Ai.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, Oi.default)(pd(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, S(s({}, i), { model: i.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
|
|
1268
1264
|
}
|
|
1269
|
-
|
|
1270
|
-
var
|
|
1265
|
+
Mi.defaultProps = { disabled: false };
|
|
1266
|
+
var eo = Mi;
|
|
1271
1267
|
var _r = require("@transferwise/components");
|
|
1272
|
-
var
|
|
1268
|
+
var Hi = Ee(Xe());
|
|
1273
1269
|
var sr = require("react");
|
|
1274
1270
|
var $r = require("@transferwise/components");
|
|
1275
|
-
var
|
|
1271
|
+
var to = require("@transferwise/formatting");
|
|
1272
|
+
var Ei = require("react-intl");
|
|
1276
1273
|
var ki = require("react-intl");
|
|
1277
|
-
var
|
|
1278
|
-
var Se = (0, Mi.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
|
|
1274
|
+
var Ce = (0, ki.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
|
|
1279
1275
|
var Ue = require("react/jsx-runtime");
|
|
1280
|
-
function
|
|
1276
|
+
function Ii(e) {
|
|
1281
1277
|
var c;
|
|
1282
|
-
let t =
|
|
1278
|
+
let t = yd(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;
|
|
1283
1279
|
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((d) => (0, Ue.jsx)("div", { children: r[d] }, d)) }) : 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 })] })] });
|
|
1284
1280
|
}
|
|
1285
|
-
|
|
1286
|
-
function
|
|
1287
|
-
let { formatMessage: t, locale: r } = (0,
|
|
1281
|
+
Ii.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1282
|
+
function yd(e) {
|
|
1283
|
+
let { formatMessage: t, locale: r } = (0, Ei.useIntl)(), a = { type: t(Ce.type), minimum: t(Ce.minimum, { minimum: e.minimum }), maximum: t(Ce.maximum, { maximum: e.maximum }), minLength: t(Ce.minLength, { minLength: e.minLength }), maxLength: t(Ce.maxLength, { maxLength: e.maxLength }), pattern: t(Ce.pattern), required: t(Ce.required) };
|
|
1288
1284
|
if (e.format === "date") {
|
|
1289
|
-
let o = { pattern: t(
|
|
1285
|
+
let o = { pattern: t(Ce.patternDate), minimum: e.minimum ? t(Ce.minimumDate, { minimum: (0, to.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(Ce.maximumDate, { maximum: (0, to.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
1290
1286
|
return s(s({}, a), o);
|
|
1291
1287
|
}
|
|
1292
1288
|
return a;
|
|
1293
1289
|
}
|
|
1294
|
-
var He =
|
|
1295
|
-
async function
|
|
1290
|
+
var He = Ii;
|
|
1291
|
+
async function Di(e, t) {
|
|
1296
1292
|
if (t)
|
|
1297
1293
|
return e;
|
|
1298
1294
|
if (e instanceof Blob)
|
|
1299
|
-
return
|
|
1295
|
+
return $n(e);
|
|
1300
1296
|
throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
|
|
1301
1297
|
}
|
|
1302
|
-
function
|
|
1298
|
+
function Li(e) {
|
|
1303
1299
|
let t = e.data;
|
|
1304
1300
|
return s({ id: t }, e);
|
|
1305
1301
|
}
|
|
1306
|
-
function
|
|
1302
|
+
function Ti(e) {
|
|
1307
1303
|
let t = e instanceof Error;
|
|
1308
1304
|
if (!(R(e) && "data" in e) && !t)
|
|
1309
1305
|
return L(e) ? e : void 0;
|
|
@@ -1313,72 +1309,72 @@ var require_main_min = __commonJS({
|
|
|
1313
1309
|
}
|
|
1314
1310
|
return s({ message: L(e.message) ? e.message : "" }, e);
|
|
1315
1311
|
}
|
|
1316
|
-
var
|
|
1317
|
-
var
|
|
1318
|
-
var
|
|
1319
|
-
var
|
|
1320
|
-
var
|
|
1321
|
-
function
|
|
1322
|
-
let { formatMessage: r } = (0,
|
|
1323
|
-
return { maxFileSizeErrorMessage: r(a), maxItemsErrorMessage: r(o, { maxItems: e }), minItemsErrorMessage: r(n, { minItems: t }), requiredMessage: r(
|
|
1312
|
+
var ji = require("react-intl");
|
|
1313
|
+
var Ri = require("react-intl");
|
|
1314
|
+
var Ni = (0, Ri.defineMessages)({ required: { id: "dynamicFlows.DefaultErrorMessages.required", defaultMessage: "Please fill out this field.", description: "Customer has left the required field empty" } });
|
|
1315
|
+
var Bi = require("react-intl");
|
|
1316
|
+
var zi = (0, Bi.defineMessages)({ minItemsError: { id: "dynamicFlows.MultipleFileUploadSchema.minItemsError", defaultMessage: "Please upload at least {minItems} file(s).", description: "Customer has uploaded not enough files. To fix: upload more files." }, maxItemsError: { id: "dynamicFlows.MultipleFileUploadSchema.maxItemsError", defaultMessage: "Please upload {maxItems} or fewer files.", description: "Customer has uploaded too many files. To fix: upload fewer files." }, maxFileSizeError: { id: "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError", defaultMessage: "Sorry, that file is too big. Please upload a smaller file.", description: "Customer has uploaded a file that's too big. To fix: upload a smaller file." } });
|
|
1317
|
+
function Vi({ maxItems: e, minItems: t }) {
|
|
1318
|
+
let { formatMessage: r } = (0, ji.useIntl)(), { maxFileSizeError: a, maxItemsError: o, minItemsError: n } = zi;
|
|
1319
|
+
return { maxFileSizeErrorMessage: r(a), maxItemsErrorMessage: r(o, { maxItems: e }), minItemsErrorMessage: r(n, { minItems: t }), requiredMessage: r(Ni.required) };
|
|
1324
1320
|
}
|
|
1325
1321
|
var ft = require("react/jsx-runtime");
|
|
1326
|
-
function
|
|
1322
|
+
function qi(e) {
|
|
1327
1323
|
var M, E;
|
|
1328
|
-
let { onChange: t, schema: r } = e, a = re(), o =
|
|
1324
|
+
let { onChange: t, schema: r } = e, a = re(), o = Vi(r), n = (0, sr.useMemo)(() => r.$id || Te(), [r.$id]), [i, c] = (0, sr.useState)(false), [d, m] = (0, sr.useState)(() => fd(e.model || [])), p = Gi(r.items.persistAsync), h = r.items.persistAsync.schema, y = Dt(h), u = async (P) => {
|
|
1329
1325
|
c(true);
|
|
1330
1326
|
try {
|
|
1331
|
-
let D = await
|
|
1327
|
+
let D = await Di(P, y);
|
|
1332
1328
|
a("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
|
|
1333
1329
|
let U = await p(D);
|
|
1334
|
-
return a("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }),
|
|
1330
|
+
return a("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), Li(U);
|
|
1335
1331
|
} catch (D) {
|
|
1336
|
-
return a("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(
|
|
1332
|
+
return a("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(Ti(D));
|
|
1337
1333
|
}
|
|
1338
1334
|
};
|
|
1339
1335
|
function l(P) {
|
|
1340
|
-
if (
|
|
1336
|
+
if (_n(P, d))
|
|
1341
1337
|
return;
|
|
1342
1338
|
m(P);
|
|
1343
|
-
let U =
|
|
1339
|
+
let U = Ui(P).map((ee) => ee.id);
|
|
1344
1340
|
t({ model: U, triggerSchema: r, triggerModel: U });
|
|
1345
1341
|
}
|
|
1346
|
-
let w =
|
|
1347
|
-
return (0, ft.jsxs)("div", { className: (0,
|
|
1342
|
+
let w = Ui(d).map((P) => P.id), C = It(w, r, e.required), F = !!e.errors || (i || e.submitted) && !!C.length, g = "accepts" in h && h.accepts, v = "maxSize" in h && h.maxSize, O = S(s(s({ multiple: true, className: "form-control", files: d, 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: l, onDeleteFile: () => Promise.resolve() }), x = `${n}-feedback`;
|
|
1343
|
+
return (0, ft.jsxs)("div", { className: (0, Hi.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: C, validationMessages: gd(r, !!e.required, o), infoMessage: null, focused: false, blurred: true })] });
|
|
1348
1344
|
}
|
|
1349
|
-
|
|
1350
|
-
var
|
|
1351
|
-
function
|
|
1345
|
+
qi.defaultProps = { errors: null, required: false };
|
|
1346
|
+
var ro = qi;
|
|
1347
|
+
function Ui(e) {
|
|
1352
1348
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1353
1349
|
}
|
|
1354
|
-
function yd(e) {
|
|
1355
|
-
return e.map((t) => fd(t) ? { id: t, status: _r.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1356
|
-
}
|
|
1357
1350
|
function fd(e) {
|
|
1351
|
+
return e.map((t) => hd(t) ? { id: t, status: _r.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1352
|
+
}
|
|
1353
|
+
function hd(e) {
|
|
1358
1354
|
return z(e) || L(e);
|
|
1359
1355
|
}
|
|
1360
|
-
function
|
|
1356
|
+
function gd(e, t, r) {
|
|
1361
1357
|
let { minItems: a, maxItems: o } = e;
|
|
1362
1358
|
return s(s(s({}, t && { required: r.requiredMessage }), a && { minItems: r.minItemsErrorMessage }), o && { maxItems: r.maxItemsErrorMessage });
|
|
1363
1359
|
}
|
|
1364
1360
|
var Bt = require("@transferwise/components");
|
|
1365
|
-
var
|
|
1361
|
+
var Qi = require("@transferwise/icons");
|
|
1366
1362
|
var Xr = require("react");
|
|
1367
|
-
var
|
|
1368
|
-
var
|
|
1369
|
-
var
|
|
1370
|
-
var
|
|
1371
|
-
var _i = require("react-intl");
|
|
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" } });
|
|
1363
|
+
var es = require("react-intl");
|
|
1364
|
+
var Wi = require("@transferwise/components");
|
|
1365
|
+
var _i = require("react/jsx-runtime");
|
|
1366
|
+
var $i = ({ item: e, onClick: t }) => (0, _i.jsx)(Wi.NavigationOption, { onClick: t, media: ut(e), title: e.title, content: e.description, showMediaAtAllSizes: true });
|
|
1373
1367
|
var Ki = require("react-intl");
|
|
1374
|
-
var
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1368
|
+
var ht = (0, Ki.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" } });
|
|
1369
|
+
var Ji = require("react-intl");
|
|
1370
|
+
var Yi = require("react/jsx-runtime");
|
|
1371
|
+
function wd({ type: e, schema: t, model: r, errors: a, submitted: o, onModelChange: n, onAction: i }) {
|
|
1372
|
+
let { formatMessage: c } = (0, Ji.useIntl)(), d = { 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: [] };
|
|
1373
|
+
return (0, Yi.jsx)(Kr, { step: d, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: o, formErrors: a, globalError: null, onAction: (m) => {
|
|
1378
1374
|
i(m.url);
|
|
1379
1375
|
}, onModelChange: n });
|
|
1380
1376
|
}
|
|
1381
|
-
var
|
|
1377
|
+
var Xi = wd;
|
|
1382
1378
|
var Jr = (e, t) => {
|
|
1383
1379
|
let r = cr(e, t);
|
|
1384
1380
|
if (r >= 0)
|
|
@@ -1399,14 +1395,14 @@ var require_main_min = __commonJS({
|
|
|
1399
1395
|
function Nt(e, t) {
|
|
1400
1396
|
if (t == null)
|
|
1401
1397
|
return null;
|
|
1402
|
-
let r = e.oneOf.map((a) =>
|
|
1398
|
+
let r = e.oneOf.map((a) => Sd(a).reduce((o, [n, i]) => we(i) && i.const === t[n] ? o + 2 : tr(i) && typeof t[n] != "undefined" ? o + 1 : o, 0));
|
|
1403
1399
|
return r.every((a) => a === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1404
1400
|
}
|
|
1405
|
-
function
|
|
1401
|
+
function Sd(e) {
|
|
1406
1402
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1407
1403
|
}
|
|
1408
|
-
var
|
|
1409
|
-
let { defaultTitle: a = "", defaultDescription: o = "", defaultIcon: n, defaultImage: i } = r, c = Qe({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema:
|
|
1404
|
+
var ao = (e, t, r = {}) => {
|
|
1405
|
+
let { defaultTitle: a = "", defaultDescription: o = "", defaultIcon: n, defaultImage: i } = r, c = Qe({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Zi }), d = Qe({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Zi }), m = Qe({ schema: e, model: t, providesProp: "providesIcon", getValueFromSchema: (h) => {
|
|
1410
1406
|
var y;
|
|
1411
1407
|
return (y = h.icon) != null ? y : null;
|
|
1412
1408
|
} }), p = Qe({ schema: e, model: t, providesProp: "providesImage", getValueFromSchema: (h) => {
|
|
@@ -1417,15 +1413,15 @@ var require_main_min = __commonJS({
|
|
|
1417
1413
|
};
|
|
1418
1414
|
var Qe = (e) => {
|
|
1419
1415
|
let { schema: t, model: r, providesProp: a, getValueFromSchema: o } = e;
|
|
1420
|
-
if (
|
|
1416
|
+
if (xd(t.summary, a))
|
|
1421
1417
|
return o(t, r);
|
|
1422
1418
|
switch (dt(t)) {
|
|
1423
1419
|
case "object":
|
|
1424
1420
|
return Cd(e);
|
|
1425
1421
|
case "oneOf":
|
|
1426
|
-
return Sd(e);
|
|
1427
|
-
case "allOf":
|
|
1428
1422
|
return Fd(e);
|
|
1423
|
+
case "allOf":
|
|
1424
|
+
return bd(e);
|
|
1429
1425
|
default:
|
|
1430
1426
|
return null;
|
|
1431
1427
|
}
|
|
@@ -1433,13 +1429,13 @@ var require_main_min = __commonJS({
|
|
|
1433
1429
|
var Cd = (e) => {
|
|
1434
1430
|
let { schema: t, model: r } = e, a = t;
|
|
1435
1431
|
for (let o in a.properties) {
|
|
1436
|
-
let n = a.properties[o], i = $(r) && o in r ? r[o] : null, c = Qe(
|
|
1432
|
+
let n = a.properties[o], i = $(r) && o in r ? r[o] : null, c = Qe(S(s({}, e), { schema: n, model: i }));
|
|
1437
1433
|
if (c)
|
|
1438
1434
|
return c;
|
|
1439
1435
|
}
|
|
1440
1436
|
return null;
|
|
1441
1437
|
};
|
|
1442
|
-
var
|
|
1438
|
+
var Fd = (e) => {
|
|
1443
1439
|
let { schema: t, model: r } = e;
|
|
1444
1440
|
if (lt(t)) {
|
|
1445
1441
|
if (!$(r))
|
|
@@ -1448,48 +1444,48 @@ var require_main_min = __commonJS({
|
|
|
1448
1444
|
if (n === null || n < 0)
|
|
1449
1445
|
return null;
|
|
1450
1446
|
let i = t.oneOf[n];
|
|
1451
|
-
return Qe(
|
|
1447
|
+
return Qe(S(s({}, e), { schema: i }));
|
|
1452
1448
|
}
|
|
1453
1449
|
let a = t, o = Jr(a, r);
|
|
1454
|
-
return o === null || o < 0 ? null : Qe(
|
|
1450
|
+
return o === null || o < 0 ? null : Qe(S(s({}, e), { schema: a.oneOf[o] }));
|
|
1455
1451
|
};
|
|
1456
|
-
var
|
|
1452
|
+
var bd = (e) => {
|
|
1457
1453
|
let { schema: t } = e, r = t;
|
|
1458
1454
|
for (let a of r.allOf) {
|
|
1459
|
-
let o = Qe(
|
|
1455
|
+
let o = Qe(S(s({}, e), { schema: a }));
|
|
1460
1456
|
if (o)
|
|
1461
1457
|
return o;
|
|
1462
1458
|
}
|
|
1463
1459
|
return null;
|
|
1464
1460
|
};
|
|
1465
|
-
var
|
|
1466
|
-
var
|
|
1461
|
+
var Zi = (e, t) => we(e) ? e.title ? e.title : L(e.const) ? e.const : null : jr(t) ? t : null;
|
|
1462
|
+
var xd = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1467
1463
|
var Fe = require("react/jsx-runtime");
|
|
1468
|
-
|
|
1464
|
+
function vd({ schema: e, model: t, errors: r, submitted: a, onChange: o }) {
|
|
1469
1465
|
let [n, i] = (0, Xr.useState)(null), [c, d] = (0, Xr.useState)(() => {
|
|
1470
1466
|
if (R(t) && !j(t))
|
|
1471
1467
|
throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
|
|
1472
|
-
return t ? t.map((
|
|
1473
|
-
}), [m, p] = (0, Xr.useState)({ item: null, model: null }), h = (
|
|
1474
|
-
let F =
|
|
1468
|
+
return t ? t.map((C) => ao(e.items, C, e == null ? void 0 : e.summary)) : null;
|
|
1469
|
+
}), [m, p] = (0, Xr.useState)({ item: null, model: null }), h = (C) => {
|
|
1470
|
+
let F = C ? C.map(({ value: g }) => g) : null;
|
|
1475
1471
|
o({ model: F, triggerSchema: e.items, triggerModel: F });
|
|
1476
1472
|
}, y = () => {
|
|
1477
1473
|
i("add");
|
|
1478
|
-
}, u = (
|
|
1479
|
-
p({ item:
|
|
1480
|
-
}, l = (
|
|
1474
|
+
}, u = (C) => {
|
|
1475
|
+
p({ item: C, model: C.value }), i("edit");
|
|
1476
|
+
}, l = (C) => {
|
|
1481
1477
|
var v;
|
|
1482
|
-
let F =
|
|
1483
|
-
if (
|
|
1478
|
+
let F = C === "remove" ? null : ao(e.items, m.model, e == null ? void 0 : e.summary);
|
|
1479
|
+
if (C !== "remove" && !G((v = F == null ? void 0 : F.value) != null ? v : null, e.items))
|
|
1484
1480
|
return;
|
|
1485
|
-
let g =
|
|
1481
|
+
let g = Ad(C, { originalItem: m.item, updatedItem: F, itemSummaries: c });
|
|
1486
1482
|
d(g), h(g), p({ item: null, model: null }), i(null);
|
|
1487
1483
|
}, f = () => {
|
|
1488
1484
|
p({ item: null, model: null }), i(null);
|
|
1489
|
-
}, { formatMessage: w } = (0,
|
|
1490
|
-
return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((
|
|
1491
|
-
}
|
|
1492
|
-
var
|
|
1485
|
+
}, { formatMessage: w } = (0, es.useIntl)();
|
|
1486
|
+
return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((C) => (0, Fe.jsx)($i, { item: C, onClick: () => u(C) }, JSON.stringify(C))), (0, Fe.jsx)(Bt.NavigationOption, { media: (0, Fe.jsx)(Qi.Plus, {}), title: e.addItemTitle || w(ht.addItemTitle), showMediaAtAllSizes: true, onClick: y }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || w(ht.addItemTitle), body: (0, Fe.jsx)(Xi, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction: l, onModelChange: ({ model: C }) => p(S(s({}, m), { model: C })) }), onClose: f })] });
|
|
1487
|
+
}
|
|
1488
|
+
var Ad = (e, { originalItem: t, updatedItem: r, itemSummaries: a }) => {
|
|
1493
1489
|
if (e === "remove")
|
|
1494
1490
|
return (a || []).filter((o) => o !== t);
|
|
1495
1491
|
if (!r)
|
|
@@ -1503,60 +1499,61 @@ var require_main_min = __commonJS({
|
|
|
1503
1499
|
return null;
|
|
1504
1500
|
}
|
|
1505
1501
|
};
|
|
1506
|
-
var
|
|
1507
|
-
var
|
|
1508
|
-
var
|
|
1502
|
+
var ts = vd;
|
|
1503
|
+
var oo = require("react/jsx-runtime");
|
|
1504
|
+
var rs = (e) => {
|
|
1509
1505
|
let { schema: t } = e;
|
|
1510
|
-
if (
|
|
1511
|
-
return (0,
|
|
1506
|
+
if (Jn(t))
|
|
1507
|
+
return (0, oo.jsx)(ro, S(s({}, e), { schema: t }));
|
|
1512
1508
|
if (De(t))
|
|
1513
|
-
return (0,
|
|
1509
|
+
return (0, oo.jsx)(ts, S(s({}, e), { schema: t }));
|
|
1514
1510
|
throw new Error("Invalid array list schema");
|
|
1515
1511
|
};
|
|
1516
|
-
|
|
1517
|
-
var
|
|
1518
|
-
var
|
|
1519
|
-
var
|
|
1512
|
+
rs.defaultProps = { errors: null, required: false };
|
|
1513
|
+
var as = rs;
|
|
1514
|
+
var ns = require("react/jsx-runtime");
|
|
1515
|
+
var os = (e) => {
|
|
1520
1516
|
let { schema: t } = e;
|
|
1521
1517
|
if (De(t))
|
|
1522
|
-
return (0,
|
|
1518
|
+
return (0, ns.jsx)(as, s({}, e));
|
|
1523
1519
|
throw new Error("Not implemented");
|
|
1524
1520
|
};
|
|
1525
|
-
|
|
1526
|
-
var
|
|
1527
|
-
var
|
|
1528
|
-
var
|
|
1529
|
-
var
|
|
1530
|
-
var
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1521
|
+
os.defaultProps = { required: false };
|
|
1522
|
+
var no = os;
|
|
1523
|
+
var Yr = require("@transferwise/components");
|
|
1524
|
+
var is = Ee(Xe());
|
|
1525
|
+
var Zr = require("react");
|
|
1526
|
+
var le = require("react/jsx-runtime");
|
|
1527
|
+
var Od = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1528
|
+
function ss(e) {
|
|
1529
|
+
let [t, r] = (0, Zr.useState)(() => s({}, ce(e.model, e.schema))), a = (m, p) => {
|
|
1530
|
+
p.model !== null ? t[m] = p.model : delete t[m], r(t), e.onChange(S(s({}, p), { model: t }));
|
|
1534
1531
|
}, o = (m) => e.schema.required && e.schema.required.includes(m);
|
|
1535
|
-
(0,
|
|
1532
|
+
(0, Zr.useEffect)(() => {
|
|
1536
1533
|
let m = ce(t, e.schema) || {};
|
|
1537
1534
|
r(m), Je(m, t) || e.onChange({ model: m, triggerSchema: e.schema, triggerModel: m });
|
|
1538
1535
|
}, [e.schema]);
|
|
1539
1536
|
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), d = e.errors;
|
|
1540
|
-
return (0,
|
|
1537
|
+
return (0, le.jsxs)(le.Fragment, { children: [e.schema.alert && (0, le.jsx)(se, { component: e.schema.alert }), (0, le.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, le.jsx)(Yr.Section, { children: (0, le.jsx)(Yr.Header, { title: e.schema.title }) }), e.schema.description && !e.hideTitle && (0, le.jsxs)("p", { children: [" ", e.schema.description, " "] }), (0, le.jsx)("div", { className: "row", children: c.map((m) => (0, le.jsx)("div", { className: (0, is.default)(Od(e.schema.properties[m].width)), children: (0, le.jsx)(me, { schema: e.schema.properties[m], model: e.model && e.model[m], errors: d == null ? void 0 : d[m], submitted: e.submitted, required: o(m), disabled: e.disabled, onChange: (p) => a(m, p), onPersistAsync: e.onPersistAsync }) }, m)) })] })] });
|
|
1541
1538
|
}
|
|
1542
|
-
|
|
1543
|
-
var mr =
|
|
1539
|
+
ss.defaultProps = { hideTitle: false, disabled: false };
|
|
1540
|
+
var mr = ss;
|
|
1544
1541
|
var Cs = require("@transferwise/components");
|
|
1545
|
-
var
|
|
1542
|
+
var Fs = Ee(Xe());
|
|
1546
1543
|
var Ne = require("react");
|
|
1547
|
-
var
|
|
1548
|
-
var
|
|
1549
|
-
var
|
|
1550
|
-
var
|
|
1551
|
-
var
|
|
1552
|
-
function
|
|
1553
|
-
let t = (0,
|
|
1554
|
-
return (0,
|
|
1555
|
-
}
|
|
1556
|
-
var qe =
|
|
1557
|
-
var
|
|
1544
|
+
var Qr = require("@transferwise/components");
|
|
1545
|
+
var ls = require("react-intl");
|
|
1546
|
+
var cs = require("react-intl");
|
|
1547
|
+
var ms = (0, cs.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
|
|
1548
|
+
var io = require("react/jsx-runtime");
|
|
1549
|
+
function Pd(e) {
|
|
1550
|
+
let t = (0, ls.useIntl)();
|
|
1551
|
+
return (0, io.jsx)(Qr.Info, { className: "m-l-1", content: (0, io.jsx)(Qr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(ms.helpAria) });
|
|
1552
|
+
}
|
|
1553
|
+
var qe = Pd;
|
|
1554
|
+
var ws = require("react");
|
|
1558
1555
|
var _ = require("@transferwise/components");
|
|
1559
|
-
var
|
|
1556
|
+
var fs = require("react");
|
|
1560
1557
|
var zt = (e, t = {}) => {
|
|
1561
1558
|
let { coerceValue: r = false } = t;
|
|
1562
1559
|
if (!I(e)) {
|
|
@@ -1566,14 +1563,14 @@ var require_main_min = __commonJS({
|
|
|
1566
1563
|
}
|
|
1567
1564
|
if (!L(e)) {
|
|
1568
1565
|
if (r)
|
|
1569
|
-
return
|
|
1566
|
+
return co({ received: typeof e, expected: "string" }), String(e);
|
|
1570
1567
|
gt({ received: typeof e, expected: "string" });
|
|
1571
1568
|
return;
|
|
1572
1569
|
}
|
|
1573
1570
|
return e;
|
|
1574
1571
|
}
|
|
1575
1572
|
};
|
|
1576
|
-
var
|
|
1573
|
+
var so = (e, t = {}) => {
|
|
1577
1574
|
let { coerceValue: r = false } = t;
|
|
1578
1575
|
if (I(e))
|
|
1579
1576
|
return;
|
|
@@ -1586,25 +1583,25 @@ var require_main_min = __commonJS({
|
|
|
1586
1583
|
}
|
|
1587
1584
|
if (!L(e)) {
|
|
1588
1585
|
if (r)
|
|
1589
|
-
return
|
|
1586
|
+
return co(a), String(e);
|
|
1590
1587
|
gt(a);
|
|
1591
1588
|
return;
|
|
1592
1589
|
}
|
|
1593
1590
|
return e;
|
|
1594
1591
|
};
|
|
1595
|
-
var
|
|
1592
|
+
var ds = (e, t = {}) => {
|
|
1596
1593
|
let { coerceValue: r = false } = t;
|
|
1597
1594
|
if (I(e))
|
|
1598
1595
|
return false;
|
|
1599
1596
|
if (!Ie(e)) {
|
|
1600
1597
|
if (r)
|
|
1601
|
-
return
|
|
1598
|
+
return co({ received: typeof e, expected: "boolean" }), !!e;
|
|
1602
1599
|
gt({ received: typeof e, expected: "boolean" });
|
|
1603
1600
|
return;
|
|
1604
1601
|
}
|
|
1605
1602
|
return e;
|
|
1606
1603
|
};
|
|
1607
|
-
var
|
|
1604
|
+
var us = (e) => {
|
|
1608
1605
|
if (!I(e)) {
|
|
1609
1606
|
if (!(e instanceof Date) && !L(e)) {
|
|
1610
1607
|
gt({ received: typeof e, expected: "string or Date" });
|
|
@@ -1613,32 +1610,32 @@ var require_main_min = __commonJS({
|
|
|
1613
1610
|
return e;
|
|
1614
1611
|
}
|
|
1615
1612
|
};
|
|
1616
|
-
var
|
|
1613
|
+
var ps = (e) => {
|
|
1617
1614
|
if (I(e))
|
|
1618
1615
|
return null;
|
|
1619
1616
|
if (!L(e))
|
|
1620
1617
|
return gt({ received: typeof e, expected: "string", fallback: "null" }), null;
|
|
1621
|
-
let t =
|
|
1618
|
+
let t = qn(e);
|
|
1622
1619
|
return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
|
|
1623
1620
|
};
|
|
1624
|
-
var
|
|
1621
|
+
var co = ({ received: e, expected: t }) => {
|
|
1625
1622
|
console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Type will be coerced, but this behaviour will change in the future, so please fix your code.`);
|
|
1626
1623
|
};
|
|
1627
1624
|
var gt = ({ received: e, expected: t, fallback: r = "undefined" }) => {
|
|
1628
1625
|
console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Falling back to ${r}`);
|
|
1629
1626
|
};
|
|
1630
|
-
var
|
|
1631
|
-
let t = e.filter((r) =>
|
|
1632
|
-
return t.length === 0 ? "off" : t.map((r) =>
|
|
1627
|
+
var mo = (e) => {
|
|
1628
|
+
let t = e.filter((r) => ys[r]);
|
|
1629
|
+
return t.length === 0 ? "off" : t.map((r) => ys[r]).join(" ");
|
|
1633
1630
|
};
|
|
1634
|
-
var
|
|
1631
|
+
var ys = { on: "on", name: "name", "name-prefix": "honorific-prefix", "given-name": "given-name", "additional-name": "additional-name", "family-name": "family-name", "name-suffix": "honorific-suffix", nickname: "nickname", email: "email", "new-username": "username", username: "username", "new-password": "new-password", password: "current-password", "one-time-code": "one-time-code", "job-title": "organization-title", "organization-name": "organization", "full-street-address": "street-address", "street-address-line-1": "address-line1", "street-address-line-2": "address-line2", "street-address-line-3": "address-line3", "address-level-1": "address-level1", "address-level-2": "address-level2", "address-level-3": "address-level3", "address-level-4": "address-level4", "country-code": "country", "country-name": "country-name", "postal-code": "postal-code", "credit-card-name": "cc-name", "credit-card-given-name": "cc-given-name", "credit-card-middle-name": "cc-additional-name", "credit-card-family-name": "cc-family-name", "credit-card-number": "cc-number", "credit-card-expiration": "cc-exp", "credit-card-expiration-month": "cc-exp-month", "credit-card-expiration-year": "cc-exp-year", "credit-card-security-code": "cc-csc", "credit-card-type": "cc-type", "transaction-currency": "transaction-currency", "transaction-amount": "transaction-amount", language: "language", birthdate: "bday", "birthdate-day": "bday-day", "birthdate-month": "bday-month", "birthdate-year": "bday-year", gender: "sex", "phone-number": "tel", "phone-country-code": "tel-country-code", "phone-national": "tel-national", "phone-area-code": "tel-area-code", "phone-local": "tel-local", "phone-local-prefix": "tel-local-prefix", "phone-local-suffix": "tel-local-suffix", "phone-extension": "tel-extension", url: "url", photo: "photo", impp: "impp", shipping: "shipping", billing: "billing", home: "home", work: "work", mobile: "mobile", fax: "fax", pager: "pager" };
|
|
1635
1632
|
var Z = require("react/jsx-runtime");
|
|
1636
|
-
var be = class be extends
|
|
1633
|
+
var be = class be extends fs.PureComponent {
|
|
1637
1634
|
constructor(r) {
|
|
1638
1635
|
super(r);
|
|
1639
1636
|
this.getAutocompleteValue = () => {
|
|
1640
1637
|
let { autoComplete: r2, autocompleteHint: a } = this.props;
|
|
1641
|
-
return j(a) ?
|
|
1638
|
+
return j(a) ? mo(a) : r2 === true ? "on" : "off";
|
|
1642
1639
|
};
|
|
1643
1640
|
this.handleOnChange = (r2) => {
|
|
1644
1641
|
this.props.onChange(r2);
|
|
@@ -1663,7 +1660,7 @@ var require_main_min = __commonJS({
|
|
|
1663
1660
|
if (this.props.value !== null && typeof this.props.value != "undefined")
|
|
1664
1661
|
return r2.find((a) => this.props.value === a.value);
|
|
1665
1662
|
};
|
|
1666
|
-
this.mapOption = (r2) =>
|
|
1663
|
+
this.mapOption = (r2) => S(s({}, r2), { value: z(r2.value) || L(r2.value) ? r2.value : void 0, secondary: r2.note, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
|
|
1667
1664
|
this.state = { selectedOption: r.selectedOption, touched: false, prevValue: r.value };
|
|
1668
1665
|
}
|
|
1669
1666
|
static getDerivedStateFromProps(r, a) {
|
|
@@ -1671,18 +1668,18 @@ var require_main_min = __commonJS({
|
|
|
1671
1668
|
}
|
|
1672
1669
|
render() {
|
|
1673
1670
|
var ee;
|
|
1674
|
-
let { name: r, placeholder: a, step: o, countryCode: n, type: i, options: c, disabled: d, readOnly: m, required: p, minLength: h, maxLength: y, min: u, max: l, searchPlaceholder: f, searchValue: w, onSearchChange:
|
|
1671
|
+
let { name: r, placeholder: a, step: o, countryCode: n, type: i, options: c, disabled: d, readOnly: m, required: p, minLength: h, maxLength: y, min: u, max: l, searchPlaceholder: f, searchValue: w, onSearchChange: C, size: F, uploadProps: g, label: v, monthFormat: O, id: x, minDate: M, maxDate: E, value: P, mode: D, describedBy: U } = this.props;
|
|
1675
1672
|
switch (i) {
|
|
1676
1673
|
case N.RADIO:
|
|
1677
|
-
return (0, Z.jsx)(_.RadioGroup, { radios: c.map(this.mapOption), name: r, selectedValue:
|
|
1674
|
+
return (0, Z.jsx)(_.RadioGroup, { radios: c.map(this.mapOption), name: r, selectedValue: so(P, { coerceValue: true }), onChange: this.handleOnChange });
|
|
1678
1675
|
case N.CHECKBOX:
|
|
1679
|
-
return (0, Z.jsx)(_.Checkbox, { checked:
|
|
1676
|
+
return (0, Z.jsx)(_.Checkbox, { checked: ds(P, { coerceValue: true }), disabled: d, label: v, required: p, readOnly: m, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1680
1677
|
case N.SELECT: {
|
|
1681
1678
|
let A = c.length >= 20;
|
|
1682
1679
|
return (0, Z.jsx)(_.Select, { id: x, selected: this.getSelectedOption(c), options: c, search: A, required: p, disabled: d, placeholder: a, searchPlaceholder: f, searchValue: w, onChange: (B) => {
|
|
1683
1680
|
var k;
|
|
1684
1681
|
this.setState({ selectedOption: B != null ? B : void 0 }), this.props.onChange((k = B == null ? void 0 : B.value) != null ? k : null);
|
|
1685
|
-
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: A ?
|
|
1682
|
+
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: A ? C : void 0 });
|
|
1686
1683
|
}
|
|
1687
1684
|
case N.TAB:
|
|
1688
1685
|
return (0, Z.jsx)(_.Tabs, { selected: ((ee = this.getSelectedOption(c)) == null ? void 0 : ee.value) || 0, tabs: c.map((A) => ({ title: A.label, content: (0, Z.jsx)(Z.Fragment, {}), disabled: A.disabled || false })), name: x, onTabSelect: (A) => {
|
|
@@ -1691,7 +1688,7 @@ var require_main_min = __commonJS({
|
|
|
1691
1688
|
} });
|
|
1692
1689
|
case N.NUMERIC:
|
|
1693
1690
|
case N.NUMBER:
|
|
1694
|
-
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled: d, id: x, max: l, min: u, placeholder: a, readOnly: m, required: p, step: o, type: "number", value:
|
|
1691
|
+
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled: d, id: x, max: l, min: u, placeholder: a, readOnly: m, required: p, step: o, type: "number", value: so(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (A) => {
|
|
1695
1692
|
i === N.NUMERIC ? this.props.onChange(A.target.value) : this.props.onChange(parseFloat(A.target.value));
|
|
1696
1693
|
}, onFocus: this.handleOnFocus, onWheel: (A) => {
|
|
1697
1694
|
A.target instanceof HTMLElement && A.target.blur();
|
|
@@ -1702,20 +1699,20 @@ var require_main_min = __commonJS({
|
|
|
1702
1699
|
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled: d, id: x, placeholder: a, readOnly: m, required: p, type: "password", value: zt(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus, "aria-describedby": U });
|
|
1703
1700
|
case N.DATE:
|
|
1704
1701
|
case N.DATETIME:
|
|
1705
|
-
return (0, Z.jsx)(_.DateInput, { disabled: d, size: F, value:
|
|
1702
|
+
return (0, Z.jsx)(_.DateInput, { disabled: d, size: F, value: us(P), mode: D, monthFormat: O, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1706
1703
|
case N.DATELOOKUP:
|
|
1707
|
-
return (0, Z.jsx)(_.DateLookup, { value:
|
|
1708
|
-
this.handleOnChange(
|
|
1704
|
+
return (0, Z.jsx)(_.DateLookup, { value: ps(P), min: M, max: E, placeholder: a, monthFormat: O, disabled: d, onChange: (A) => {
|
|
1705
|
+
this.handleOnChange(Gn(A));
|
|
1709
1706
|
}, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1710
1707
|
case N.TEL:
|
|
1711
1708
|
return (0, Z.jsx)(_.PhoneNumberInput, { disabled: d, countryCode: n, placeholder: a, required: p, searchPlaceholder: f, size: F, initialValue: zt(P), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1712
1709
|
case N.TEXTAREA: {
|
|
1713
1710
|
let A = { className: "form-control tw-form-control", id: x, name: r, placeholder: a, value: zt(P, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteValue() };
|
|
1714
|
-
return this.props.displayPattern ? (0, Z.jsx)(_.TextareaWithDisplayFormat,
|
|
1711
|
+
return this.props.displayPattern ? (0, Z.jsx)(_.TextareaWithDisplayFormat, S(s({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, Z.jsx)("textarea", S(s({}, A), { onChange: this.handleInputOnChange, "aria-describedby": U }));
|
|
1715
1712
|
}
|
|
1716
1713
|
case N.FILE:
|
|
1717
1714
|
case N.UPLOAD:
|
|
1718
|
-
return (0, Z.jsx)(_.Upload,
|
|
1715
|
+
return (0, Z.jsx)(_.Upload, S(s({}, g), { usAccept: g.usAccept || "*", usDisabled: g.usDisabled || d, onSuccess: (A) => {
|
|
1719
1716
|
this.handleOnChange(A);
|
|
1720
1717
|
}, onFailure: () => {
|
|
1721
1718
|
this.handleOnChange(null);
|
|
@@ -1726,68 +1723,68 @@ var require_main_min = __commonJS({
|
|
|
1726
1723
|
case N.EMAIL:
|
|
1727
1724
|
default: {
|
|
1728
1725
|
let A = { type: i === N.EMAIL ? "email" : "text", className: "form-control", id: x, name: r, placeholder: a, value: zt(P, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteValue() };
|
|
1729
|
-
return this.props.displayPattern ? (0, Z.jsx)(_.InputWithDisplayFormat,
|
|
1726
|
+
return this.props.displayPattern ? (0, Z.jsx)(_.InputWithDisplayFormat, S(s({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, Z.jsx)("input", S(s({}, A), { onChange: this.handleInputOnChange, "aria-describedby": U }));
|
|
1730
1727
|
}
|
|
1731
1728
|
}
|
|
1732
1729
|
}
|
|
1733
1730
|
};
|
|
1734
|
-
be.Type = N, be.Size =
|
|
1731
|
+
be.Type = N, be.Size = ii, be.MonthFormat = ni, be.DateMode = oi, be.defaultProps = { autoComplete: true, countryCode: null, disabled: false, displayPattern: null, id: null, label: "", max: null, maxDate: null, maxLength: null, min: null, minDate: null, minLength: null, mode: be.DateMode.DAY_MONTH_YEAR, monthFormat: be.MonthFormat.LONG, onBlur: null, onFocus: null, onSearchChange: null, options: [], placeholder: null, readOnly: false, required: false, searchPlaceholder: null, searchValue: "", selectedOption: null, size: be.Size.MEDIUM, step: 1, type: be.Type.TEXT, uploadProps: {}, value: null };
|
|
1735
1732
|
var jt = be;
|
|
1736
1733
|
var et = require("@transferwise/components");
|
|
1737
1734
|
var xe = require("react/jsx-runtime");
|
|
1738
|
-
var
|
|
1735
|
+
var hs = (e, t) => {
|
|
1739
1736
|
switch (t) {
|
|
1740
1737
|
case "select":
|
|
1741
|
-
return
|
|
1738
|
+
return kd(e);
|
|
1742
1739
|
case "radio":
|
|
1743
1740
|
default:
|
|
1744
|
-
return
|
|
1741
|
+
return Md(e);
|
|
1745
1742
|
}
|
|
1746
1743
|
};
|
|
1747
|
-
var
|
|
1748
|
-
var
|
|
1749
|
-
var
|
|
1750
|
-
var
|
|
1751
|
-
var
|
|
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 &&
|
|
1753
|
-
var
|
|
1754
|
-
var
|
|
1744
|
+
var Md = (e) => s(s(s({ label: e.title, value: e.const }, Td(e.title, e.description)), Vt(e)), gs(e.disabled));
|
|
1745
|
+
var kd = (e) => s(s(s(s(s({ label: e.title, value: e.const }, Ld(e.title, e.description)), Dd(e.icon)), Id(e.image)), gs(e.disabled)), Ed(e.keywords));
|
|
1746
|
+
var Ed = (e) => j(e) ? { searchStrings: e } : {};
|
|
1747
|
+
var Id = (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;
|
|
1748
|
+
var Dd = (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;
|
|
1749
|
+
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;
|
|
1750
|
+
var ea = ({ accepts: e }) => s({}, j(e) && { usAccept: e.join(",") });
|
|
1751
|
+
var Ld = (e, t) => {
|
|
1755
1752
|
if (e && t)
|
|
1756
1753
|
return { [(e + t).length > 50 ? "secondary" : "note"]: t };
|
|
1757
1754
|
};
|
|
1758
|
-
var
|
|
1755
|
+
var Td = (e, t) => {
|
|
1759
1756
|
if (e && t)
|
|
1760
1757
|
return { note: t };
|
|
1761
1758
|
};
|
|
1762
|
-
var
|
|
1759
|
+
var gs = (e) => {
|
|
1763
1760
|
if (!Y(e) && !I(e))
|
|
1764
1761
|
return { disabled: e };
|
|
1765
1762
|
};
|
|
1766
|
-
var
|
|
1767
|
-
var
|
|
1768
|
-
var
|
|
1769
|
-
var
|
|
1770
|
-
var
|
|
1771
|
-
var
|
|
1772
|
-
var
|
|
1773
|
-
function
|
|
1774
|
-
let { id: t, schema: r, value: a, disabled: o, onChange: n, onFocus: i, onBlur: c, onSearchChange: d, describedBy: m } = e, p = Mt(), h = (F) =>
|
|
1763
|
+
var lo = require("react/jsx-runtime");
|
|
1764
|
+
var Rd = (e) => e === "string" || e === "number";
|
|
1765
|
+
var uo = (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) ? Nd(e) : "control" in e && e.control ? e.control : e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1766
|
+
var Nd = ({ format: e, control: t }) => t ? Bd[t] || t : e && zd[e] || "text";
|
|
1767
|
+
var Bd = { "date-lookup": "date-lookup", password: "password", textarea: "textarea", email: "email", numeric: "numeric", "phone-number": "tel" };
|
|
1768
|
+
var zd = { date: "date", email: "email", base64url: "file", password: "password", "phone-number": "tel" };
|
|
1769
|
+
var jd = (e, t) => e.oneOf ? e.oneOf.map((r) => hs(r, t)) : null;
|
|
1770
|
+
function Ss(e) {
|
|
1771
|
+
let { id: t, schema: r, value: a, disabled: o, onChange: n, onFocus: i, onBlur: c, onSearchChange: d, describedBy: m } = e, p = Mt(), h = (F) => Rd(r.type) && (I(F) || Y(F)) ? "" : F, y = (F, g) => {
|
|
1775
1772
|
n($e(F, r), g);
|
|
1776
|
-
}, u =
|
|
1777
|
-
(0,
|
|
1778
|
-
|
|
1773
|
+
}, u = uo(r);
|
|
1774
|
+
(0, ws.useEffect)(() => {
|
|
1775
|
+
Vd(r, p, u);
|
|
1779
1776
|
}, [JSON.stringify(r), p, u]);
|
|
1780
|
-
let l = r.values ||
|
|
1781
|
-
return (0,
|
|
1777
|
+
let l = r.values || jd(r, u), f = { onFocus: i, onBlur: c, onSearchChange: d, onChange: y }, w = h(a), C = { id: t, name: t, label: r.title, options: l || [], placeholder: r.placeholder, autoComplete: !r.help, autocompleteHint: r.autocompleteHint, disabled: o || r.disabled, displayPattern: r.displayFormat, uploadProps: ea(r), describedBy: m };
|
|
1778
|
+
return (0, lo.jsx)("div", { "aria-describedby": m, children: (0, lo.jsx)(jt, s(s({ type: u, value: w }, f), C)) });
|
|
1782
1779
|
}
|
|
1783
|
-
|
|
1784
|
-
var
|
|
1780
|
+
Ss.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1781
|
+
var Vd = (e, t, r) => {
|
|
1785
1782
|
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.");
|
|
1786
1783
|
};
|
|
1787
|
-
var lr =
|
|
1784
|
+
var lr = Ss;
|
|
1788
1785
|
var Q = require("react/jsx-runtime");
|
|
1789
|
-
function
|
|
1790
|
-
let t = re(), [r, a] = (0, Ne.useState)(false), [o, n] = (0, Ne.useState)(false), [i, c] = (0, Ne.useState)(false), d = (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)(
|
|
1786
|
+
function bs(e) {
|
|
1787
|
+
let t = re(), [r, a] = (0, Ne.useState)(false), [o, n] = (0, Ne.useState)(false), [i, c] = (0, Ne.useState)(false), d = (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)(Gd(e.model, e.schema.oneOf)), u = ei(t, 200), l = (M) => {
|
|
1791
1788
|
u("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: M.length });
|
|
1792
1789
|
};
|
|
1793
1790
|
if ((0, Ne.useEffect)(() => {
|
|
@@ -1799,7 +1796,7 @@ var require_main_min = __commonJS({
|
|
|
1799
1796
|
y([...h.slice(0, M), E.model, ...h.slice(M + 1)]), a(true), e.onChange(E);
|
|
1800
1797
|
}, w = () => {
|
|
1801
1798
|
n(true);
|
|
1802
|
-
},
|
|
1799
|
+
}, C = () => {
|
|
1803
1800
|
n(false), c(true);
|
|
1804
1801
|
}, F = (M, E) => {
|
|
1805
1802
|
p(M);
|
|
@@ -1810,50 +1807,50 @@ var require_main_min = __commonJS({
|
|
|
1810
1807
|
} else
|
|
1811
1808
|
e.onChange({ model: h[M], triggerSchema: P, triggerModel: h[M], type: E });
|
|
1812
1809
|
E !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: P == null ? void 0 : P.analyticsId });
|
|
1813
|
-
}, g =
|
|
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,
|
|
1810
|
+
}, g = Wd(e.schema), v = Hd(e, m), O = { "form-group": true, "has-error": !r && e.errors && !kt(e.errors) || (e.submitted || r && i) && v.length }, x = `${d}-feedback`;
|
|
1811
|
+
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, Fs.default)(O), children: [Ud(e.schema, d), (0, Q.jsx)(lr, { id: d, schema: g, value: m, disabled: e.disabled, describedBy: x, onChange: F, onFocus: w, onBlur: C, onSearchChange: l }), (0, Q.jsx)(He, { id: x, changed: r, focused: o, blurred: i, submitted: e.submitted, errors: qd(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 })] });
|
|
1815
1812
|
}
|
|
1816
|
-
function
|
|
1813
|
+
function Ud(e, t) {
|
|
1817
1814
|
var o;
|
|
1818
1815
|
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 : "" }) });
|
|
1819
1816
|
return e.title ? a : r;
|
|
1820
1817
|
}
|
|
1821
|
-
function
|
|
1818
|
+
function Hd(e, t) {
|
|
1822
1819
|
let r = e.schema.oneOf[t != null ? t : -1];
|
|
1823
1820
|
return we(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
|
|
1824
1821
|
}
|
|
1825
|
-
function
|
|
1822
|
+
function qd(e) {
|
|
1826
1823
|
return typeof e == "string" ? e : null;
|
|
1827
1824
|
}
|
|
1828
|
-
function
|
|
1825
|
+
function Gd(e, t) {
|
|
1829
1826
|
return t.map((r) => Et(e, r));
|
|
1830
1827
|
}
|
|
1831
|
-
function
|
|
1832
|
-
return
|
|
1828
|
+
function Wd(e) {
|
|
1829
|
+
return S(s({}, e), { oneOf: e.oneOf.map($d) });
|
|
1833
1830
|
}
|
|
1834
|
-
function
|
|
1831
|
+
function $d(e, t) {
|
|
1835
1832
|
let { title: r, description: a, disabled: o = false, icon: n, image: i, keywords: c } = e;
|
|
1836
1833
|
return { title: r, description: a, disabled: o, icon: n, image: i, const: t, keywords: c };
|
|
1837
1834
|
}
|
|
1838
|
-
|
|
1839
|
-
var
|
|
1840
|
-
var
|
|
1835
|
+
bs.defaultProps = { required: false, disabled: false };
|
|
1836
|
+
var po = bs;
|
|
1837
|
+
var Os = Ee(Xe());
|
|
1841
1838
|
var wt = require("react");
|
|
1842
|
-
var
|
|
1843
|
-
var
|
|
1844
|
-
var
|
|
1845
|
-
function
|
|
1846
|
-
let { id: t, httpClient: r = fetch, httpOptions: a, fileId: o, idProperty: n, usAccept: i, maxSize: c, usPlaceholder: d, onSuccess: m, onFailure: p, onCancel: h } = e, y = re(), u = (0,
|
|
1847
|
-
return (0,
|
|
1839
|
+
var ta = require("@transferwise/components");
|
|
1840
|
+
var xs = require("react");
|
|
1841
|
+
var As = require("react/jsx-runtime");
|
|
1842
|
+
function vs(e) {
|
|
1843
|
+
let { id: t, httpClient: r = fetch, httpOptions: a, fileId: o, idProperty: n, usAccept: i, maxSize: c, usPlaceholder: d, onSuccess: m, onFailure: p, onCancel: h } = e, y = re(), u = (0, xs.useMemo)(() => o ? [{ id: o, status: ta.Status.SUCCEEDED }] : [], [o]), l = (f) => (y("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(String(a.url), { method: a.method || "POST", body: f }).then((w) => w.ok ? (m == null || m(w.clone()), w.json().then((C) => ({ id: C[n] }))) : (p == null || p({ response: w }), Promise.reject())));
|
|
1844
|
+
return (0, As.jsx)(ta.UploadInput, { id: t, fileInputName: a.fileInputName, files: u, uploadButtonTitle: e.usLabel, sizeLimit: c ? Nr(c) : void 0, fileTypes: i, description: d, onUploadFile: l, onDeleteFile: (f) => (h == null || h(), Promise.resolve()) });
|
|
1848
1845
|
}
|
|
1849
1846
|
var Ut = require("react/jsx-runtime");
|
|
1850
|
-
function
|
|
1847
|
+
function Ps(e) {
|
|
1851
1848
|
let [t, r] = (0, wt.useState)({}), [a, o] = (0, wt.useState)(null), [n, i] = (0, wt.useState)([]), [c, d] = (0, wt.useState)(false), m = ae(), p = re();
|
|
1852
1849
|
(0, wt.useEffect)(() => {
|
|
1853
1850
|
e.submitted && i(_e(e.model, e.schema, !!e.required));
|
|
1854
1851
|
}, [e.model, e.submitted]);
|
|
1855
1852
|
let y = async (O, x) => {
|
|
1856
|
-
let M = await O.json(), E =
|
|
1853
|
+
let M = await O.json(), E = ho(e.schema.persistAsync.idProperty, M);
|
|
1857
1854
|
e.onChange({ model: E, triggerSchema: e.schema, triggerModel: E }), d(true), p("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
|
|
1858
1855
|
}, u = async (O) => {
|
|
1859
1856
|
if (O.response && Lr(O.response.status)) {
|
|
@@ -1863,99 +1860,99 @@ var require_main_min = __commonJS({
|
|
|
1863
1860
|
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true), p("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
|
|
1864
1861
|
}, l = () => {
|
|
1865
1862
|
o(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true);
|
|
1866
|
-
}, { url: f, method: w } = e.schema.persistAsync,
|
|
1867
|
-
return (0, Ut.jsxs)("div", { className: (0,
|
|
1863
|
+
}, { url: f, method: w } = e.schema.persistAsync, C = a || n, F = { "form-group": true, "has-error": (e.submitted || c) && !!C.length }, g = e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, v = `${g}-feedback`;
|
|
1864
|
+
return (0, Ut.jsxs)("div", { className: (0, Os.default)(F), children: [(0, Ut.jsx)("div", { "aria-describedby": v, children: (0, Ut.jsx)(vs, s({ id: g, fileId: e.model, idProperty: e.schema.persistAsync.idProperty, animationDelay: 0, maxSize: e.schema.persistAsync.schema.maxSize, usLabel: e.schema.title || e.schema.persistAsync.schema.title, usPlaceholder: e.schema.description || e.schema.persistAsync.schema.description, httpOptions: { url: f, method: w, fileInputName: e.schema.persistAsync.param }, httpClient: m, onSuccess: y, onFailure: u, onCancel: l }, ea(e.schema.persistAsync.schema))) }), (0, Ut.jsx)(He, { id: v, blurred: true, focused: false, changed: c, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: C, validationMessages: s({ required: "Value is required..." }, t), infoMessage: null })] });
|
|
1868
1865
|
}
|
|
1869
|
-
|
|
1870
|
-
var
|
|
1871
|
-
var
|
|
1872
|
-
function
|
|
1866
|
+
Ps.defaultProps = { required: false };
|
|
1867
|
+
var fo = Ps;
|
|
1868
|
+
var go = require("react/jsx-runtime");
|
|
1869
|
+
function Ms(e) {
|
|
1873
1870
|
let { schema: t } = e;
|
|
1874
|
-
return t.persistAsync.schema.type === "blob" ? (0,
|
|
1871
|
+
return t.persistAsync.schema.type === "blob" ? (0, go.jsx)(fo, s({}, e)) : (0, go.jsx)(yo, s({}, e));
|
|
1875
1872
|
}
|
|
1876
|
-
|
|
1877
|
-
var
|
|
1878
|
-
var
|
|
1879
|
-
var
|
|
1873
|
+
Ms.defaultProps = { required: false };
|
|
1874
|
+
var wo = Ms;
|
|
1875
|
+
var zs = require("react");
|
|
1876
|
+
var ks = (e, t) => {
|
|
1880
1877
|
let r = Nt(e, t);
|
|
1881
1878
|
return r !== null ? e.oneOf[r].promoted ? "promoted" : "other" : null;
|
|
1882
1879
|
};
|
|
1883
|
-
var
|
|
1884
|
-
var
|
|
1885
|
-
var
|
|
1880
|
+
var Es = require("@transferwise/components");
|
|
1881
|
+
var So = require("react/jsx-runtime");
|
|
1882
|
+
var Is = (e) => {
|
|
1886
1883
|
let { id: t, selection: r, setSelection: a } = e, { promoted: o, other: n, checkedMeans: i } = e.promotion, c = i === "other" ? n.title : (o == null ? void 0 : o.title) || e.promotedOneOf.title, d = i === "other" ? "other" : "promoted", m = i === "other" ? "promoted" : "other", p = r === d;
|
|
1887
|
-
return (0,
|
|
1884
|
+
return (0, So.jsx)("div", { className: "form-group", children: (0, So.jsx)(Es.Checkbox, { id: t, label: c, checked: p, onChange: () => {
|
|
1888
1885
|
a(p ? m : d);
|
|
1889
1886
|
} }) });
|
|
1890
1887
|
};
|
|
1891
|
-
|
|
1892
|
-
var
|
|
1893
|
-
var
|
|
1888
|
+
Is.defaultProps = {};
|
|
1889
|
+
var Ds = Is;
|
|
1890
|
+
var Ls = require("@transferwise/components");
|
|
1894
1891
|
var dr = require("react/jsx-runtime");
|
|
1895
|
-
function
|
|
1892
|
+
function Ts(e) {
|
|
1896
1893
|
var d, m;
|
|
1897
1894
|
let { id: t, selection: r, setSelection: a, promotion: o, promotedOneOf: n, title: i } = e, c = [s({ value: "promoted", label: ((d = o.promoted) == null ? void 0 : d.title) || n.title, secondary: ((m = o.promoted) == null ? void 0 : m.description) || n.description }, Vt(n)), s({ value: "other", label: o.other.title, secondary: o.other.description }, Vt(o.other))];
|
|
1898
|
-
return (0, dr.jsxs)("div", { className: "form-group", children: [i && (0, dr.jsx)("label", { className: "control-label", htmlFor: t, children: i }), (0, dr.jsx)(
|
|
1895
|
+
return (0, dr.jsxs)("div", { className: "form-group", children: [i && (0, dr.jsx)("label", { className: "control-label", htmlFor: t, children: i }), (0, dr.jsx)(Ls.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: c, id: t, onChange: a })] });
|
|
1899
1896
|
}
|
|
1900
|
-
|
|
1901
|
-
var
|
|
1897
|
+
Ts.defaultProps = { title: void 0 };
|
|
1898
|
+
var Rs = Ts;
|
|
1902
1899
|
var Ht = require("react/jsx-runtime");
|
|
1903
|
-
function
|
|
1900
|
+
function Ns(e) {
|
|
1904
1901
|
switch (e.promotion.control || "radio") {
|
|
1905
1902
|
case "radio":
|
|
1906
|
-
return (0, Ht.jsx)(
|
|
1903
|
+
return (0, Ht.jsx)(Rs, s({}, e));
|
|
1907
1904
|
case "checkbox":
|
|
1908
|
-
return (0, Ht.jsx)(
|
|
1905
|
+
return (0, Ht.jsx)(Ds, s({}, e));
|
|
1909
1906
|
default:
|
|
1910
1907
|
return (0, Ht.jsx)(Ht.Fragment, {});
|
|
1911
1908
|
}
|
|
1912
1909
|
}
|
|
1913
|
-
|
|
1914
|
-
var
|
|
1910
|
+
Ns.defaultProps = { id: Te(), title: void 0 };
|
|
1911
|
+
var Bs = Ns;
|
|
1915
1912
|
var Ge = require("react/jsx-runtime");
|
|
1916
|
-
var
|
|
1917
|
-
var
|
|
1913
|
+
var js = (e) => e.promoted === true;
|
|
1914
|
+
var _d = (e) => {
|
|
1918
1915
|
var c;
|
|
1919
|
-
let [t, r] = (0,
|
|
1920
|
-
return (0, Ge.jsxs)(Ge.Fragment, { children: [a && (0, Ge.jsx)(se, { component: a }), (0, Ge.jsx)(
|
|
1916
|
+
let [t, r] = (0, zs.useState)(ks(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), a = e.schema.alert, o = e.schema.oneOf.find(js), n = Kd(o), i = Jd(e.schema);
|
|
1917
|
+
return (0, Ge.jsxs)(Ge.Fragment, { children: [a && (0, Ge.jsx)(se, { component: a }), (0, Ge.jsx)(Bs, { id: e.schema.$id, title: e.schema.title, promotedOneOf: o, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ge.jsx)(mr, S(s({}, e), { schema: n })), t === "other" && (0, Ge.jsx)(me, S(s({}, e), { schema: i }))] });
|
|
1921
1918
|
};
|
|
1922
|
-
function _d(e) {
|
|
1923
|
-
return C(s({}, e), { title: void 0, description: void 0 });
|
|
1924
|
-
}
|
|
1925
1919
|
function Kd(e) {
|
|
1920
|
+
return S(s({}, e), { title: void 0, description: void 0 });
|
|
1921
|
+
}
|
|
1922
|
+
function Jd(e) {
|
|
1926
1923
|
var a, o, n;
|
|
1927
|
-
let t = (a = e.promotion) != null && a.displayTwice ? [...e.oneOf] : e.oneOf.filter((i) => !
|
|
1928
|
-
return t.length === 1 ?
|
|
1924
|
+
let t = (a = e.promotion) != null && a.displayTwice ? [...e.oneOf] : e.oneOf.filter((i) => !js(i)), r = (n = (o = e.promotion) == null ? void 0 : o.other.heading) == null ? void 0 : n.text;
|
|
1925
|
+
return t.length === 1 ? S(s({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
|
|
1929
1926
|
}
|
|
1930
|
-
var Co =
|
|
1931
|
-
var
|
|
1927
|
+
var Co = _d;
|
|
1928
|
+
var ra = require("@transferwise/components");
|
|
1929
|
+
var Us = require("react-intl");
|
|
1932
1930
|
var Vs = require("react-intl");
|
|
1933
|
-
var
|
|
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." } });
|
|
1931
|
+
var Fo = (0, Vs.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." } });
|
|
1935
1932
|
var qt = require("react/jsx-runtime");
|
|
1936
|
-
function
|
|
1937
|
-
let { title: r = "" } = e, { formatMessage: a } = (0,
|
|
1938
|
-
return (0, qt.jsx)(
|
|
1933
|
+
function Xd({ schema: e, model: t }) {
|
|
1934
|
+
let { title: r = "" } = e, { formatMessage: a } = (0, Us.useIntl)(), o = Yd({ schema: e, model: t, formatMessage: a });
|
|
1935
|
+
return (0, qt.jsx)(ra.DefinitionList, { layout: ra.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: o, key: "" }] });
|
|
1939
1936
|
}
|
|
1940
|
-
var
|
|
1941
|
-
function
|
|
1942
|
-
return Ve(e) ? ge(e) ?
|
|
1943
|
-
}
|
|
1944
|
-
function Yd(e, t) {
|
|
1945
|
-
let r = Zd(e, t);
|
|
1946
|
-
return r ? Qd(r) : t;
|
|
1937
|
+
var bo = Xd;
|
|
1938
|
+
function Yd({ schema: e, model: t, formatMessage: r }) {
|
|
1939
|
+
return Ve(e) ? ge(e) ? Zd(e, t) : e.type === "boolean" && Ie(t) ? r(t ? Fo.yes : Fo.no) : t && t.toString() || "" : "";
|
|
1947
1940
|
}
|
|
1948
1941
|
function Zd(e, t) {
|
|
1942
|
+
let r = Qd(e, t);
|
|
1943
|
+
return r ? eu(r) : t;
|
|
1944
|
+
}
|
|
1945
|
+
function Qd(e, t) {
|
|
1949
1946
|
return e.oneOf.find((r) => "const" in r ? t === r.const : false);
|
|
1950
1947
|
}
|
|
1951
|
-
function
|
|
1948
|
+
function eu(e) {
|
|
1952
1949
|
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Vt({ icon: e.icon });
|
|
1953
1950
|
return r != null && r.avatar ? (0, qt.jsxs)(qt.Fragment, { children: [r.avatar, " ", t] }) : t;
|
|
1954
1951
|
}
|
|
1955
1952
|
var Be = require("react");
|
|
1956
|
-
var
|
|
1957
|
-
function
|
|
1958
|
-
let { schema: t, model: r, required: a, submitted: o, errors: n, onChange: i } = e, [c, d] = (0, Be.useState)(r), m = (0, Be.useRef)(null), [p, h] = (0, Be.useState)(null), [y, u] = (0, Be.useState)(null), [l, f] = (0, Be.useState)(false), [w,
|
|
1953
|
+
var qs = require("react/jsx-runtime");
|
|
1954
|
+
function Hs(e) {
|
|
1955
|
+
let { schema: t, model: r, required: a, submitted: o, errors: n, onChange: i } = e, [c, d] = (0, Be.useState)(r), m = (0, Be.useRef)(null), [p, h] = (0, Be.useState)(null), [y, u] = (0, Be.useState)(null), [l, f] = (0, Be.useState)(false), [w, C] = (0, Be.useState)(null), F = ae(), g = re(), v = Mt();
|
|
1959
1956
|
(0, Be.useEffect)(() => {
|
|
1960
1957
|
t.validationAsync.method || v.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {});
|
|
1961
1958
|
}, [v, t.validationAsync.method]);
|
|
@@ -1974,84 +1971,84 @@ var require_main_min = __commonJS({
|
|
|
1974
1971
|
}, x = () => {
|
|
1975
1972
|
w && w.abort();
|
|
1976
1973
|
let D = new AbortController();
|
|
1977
|
-
return
|
|
1974
|
+
return C(D), D.signal;
|
|
1978
1975
|
};
|
|
1979
|
-
return (0,
|
|
1980
|
-
i(
|
|
1976
|
+
return (0, qs.jsx)(St, s({}, { submitted: o || l, model: c, errors: y || n, infoMessage: p, onChange: (D) => {
|
|
1977
|
+
i(S(s({}, D), { triggerSchema: t, triggerModel: D.model })), u(null), h(null), d(D.model);
|
|
1981
1978
|
}, onBlur: () => {
|
|
1982
1979
|
!I(c) && !Je(c, m.current) && G(c, t) && O(c, t.validationAsync);
|
|
1983
1980
|
}, required: a, schema: t }));
|
|
1984
1981
|
}
|
|
1985
|
-
|
|
1986
|
-
var
|
|
1982
|
+
Hs.defaultProps = { required: false };
|
|
1983
|
+
var xo = Hs;
|
|
1987
1984
|
var he = require("react/jsx-runtime");
|
|
1988
|
-
var
|
|
1989
|
-
function
|
|
1990
|
-
let { schema: t, model: r = null, errors: a = null, hideTitle: o = false, disabled: n = false } = e, i =
|
|
1991
|
-
switch ((0,
|
|
1992
|
-
|
|
1985
|
+
var Ws = require("react");
|
|
1986
|
+
function tu(e) {
|
|
1987
|
+
let { schema: t, model: r = null, errors: a = null, hideTitle: o = false, disabled: n = false } = e, i = S(s({}, e), { model: r, errors: a, hideTitle: o, disabled: n }), c = dt(t), d = Mt();
|
|
1988
|
+
switch ((0, Gs.useEffect)(() => {
|
|
1989
|
+
ru(t, r, a) || d.error("Invalid schema or model", `Schema of type ${c || "undefined"} requested, but schema did not pass validation.`);
|
|
1993
1990
|
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(a), c, d]), c) {
|
|
1994
1991
|
case "readOnly":
|
|
1995
|
-
return (0, he.jsx)(
|
|
1992
|
+
return (0, he.jsx)(bo, s({}, i));
|
|
1996
1993
|
case "persistAsync":
|
|
1997
|
-
return (0, he.jsx)(
|
|
1994
|
+
return (0, he.jsx)(wo, s({}, i));
|
|
1998
1995
|
case "validationAsync":
|
|
1999
|
-
return (0, he.jsx)(
|
|
1996
|
+
return (0, he.jsx)(xo, s({}, i));
|
|
2000
1997
|
case "basic": {
|
|
2001
1998
|
let m = s({ infoMessage: null }, i);
|
|
2002
|
-
return (0, he.jsx)(
|
|
1999
|
+
return (0, he.jsx)(St, s({}, m));
|
|
2003
2000
|
}
|
|
2004
2001
|
case "object":
|
|
2005
|
-
return (0,
|
|
2002
|
+
return (0, Ws.createElement)(mr, S(s({}, i), { key: JSON.stringify(t) }));
|
|
2006
2003
|
case "array":
|
|
2007
|
-
return (0, he.jsx)(
|
|
2004
|
+
return (0, he.jsx)(no, s({}, i));
|
|
2008
2005
|
case "promotedOneOf":
|
|
2009
2006
|
return (0, he.jsx)(Co, s({}, i));
|
|
2010
2007
|
case "oneOf":
|
|
2011
|
-
return (0, he.jsx)(
|
|
2008
|
+
return (0, he.jsx)(po, s({}, i));
|
|
2012
2009
|
case "allOf":
|
|
2013
|
-
return (0, he.jsx)(
|
|
2010
|
+
return (0, he.jsx)(eo, s({}, i));
|
|
2014
2011
|
}
|
|
2015
2012
|
return (0, he.jsx)(he.Fragment, {});
|
|
2016
2013
|
}
|
|
2017
|
-
var me =
|
|
2018
|
-
var
|
|
2014
|
+
var me = tu;
|
|
2015
|
+
var ru = (e, t, r) => {
|
|
2019
2016
|
switch (dt(e)) {
|
|
2020
2017
|
case "persistAsync":
|
|
2021
2018
|
return Br(e) && jr(t) && rr(r);
|
|
2022
2019
|
case "validationAsync":
|
|
2023
|
-
return
|
|
2020
|
+
return qa(e) && Wa(t) && rr(r);
|
|
2024
2021
|
case "basic":
|
|
2025
|
-
return Ve(e) &&
|
|
2022
|
+
return Ve(e) && Wa(t) && rr(r);
|
|
2026
2023
|
case "object":
|
|
2027
|
-
return Le(e) &&
|
|
2024
|
+
return Le(e) && Ga(t);
|
|
2028
2025
|
case "array":
|
|
2029
|
-
return je(e) &&
|
|
2026
|
+
return je(e) && Yn(t) && rr(r);
|
|
2030
2027
|
case "promotedOneOf":
|
|
2031
|
-
return lt(e) &&
|
|
2028
|
+
return lt(e) && Ga(t);
|
|
2032
2029
|
case "oneOf":
|
|
2033
2030
|
return ge(e);
|
|
2034
2031
|
case "allOf":
|
|
2035
|
-
return
|
|
2032
|
+
return Ha(e) && $(t);
|
|
2036
2033
|
}
|
|
2037
2034
|
return false;
|
|
2038
2035
|
};
|
|
2039
|
-
var
|
|
2040
|
-
function
|
|
2036
|
+
var vo = require("react/jsx-runtime");
|
|
2037
|
+
function au({ component: e, model: t = null, errors: r = null, submitted: a, onModelChange: o, onPersistAsync: n }) {
|
|
2041
2038
|
let i = e.schema;
|
|
2042
|
-
return (0,
|
|
2039
|
+
return (0, vo.jsx)("div", { className: V(e.margin || "md"), children: (0, vo.jsx)(me, { schema: i, model: t, errors: r, submitted: a, onChange: (c) => {
|
|
2043
2040
|
o(s({ formSchema: i }, c));
|
|
2044
2041
|
}, onPersistAsync: n }) });
|
|
2045
2042
|
}
|
|
2046
|
-
var
|
|
2047
|
-
var
|
|
2048
|
-
var
|
|
2043
|
+
var Ao = au;
|
|
2044
|
+
var aa = require("@transferwise/components");
|
|
2045
|
+
var $s = Ee(Xe());
|
|
2049
2046
|
var ve = require("react/jsx-runtime");
|
|
2050
|
-
var
|
|
2051
|
-
let { text: t, size: r = "md", align: a = "left", margin: o = "md", control: n } = e.component, i = (0,
|
|
2052
|
-
return n === "display" ? (0, ve.jsx)(
|
|
2047
|
+
var ou = (e) => {
|
|
2048
|
+
let { text: t, size: r = "md", align: a = "left", margin: o = "md", control: n } = e.component, i = (0, $s.default)(Se({ align: a, margin: o }));
|
|
2049
|
+
return n === "display" ? (0, ve.jsx)(iu, { size: r, text: t, classes: i }) : (0, ve.jsx)(nu, { size: r, text: t, classes: i });
|
|
2053
2050
|
};
|
|
2054
|
-
var
|
|
2051
|
+
var nu = ({ size: e, text: t, classes: r }) => {
|
|
2055
2052
|
switch (e) {
|
|
2056
2053
|
case "xs":
|
|
2057
2054
|
return (0, ve.jsx)("h5", { className: r, children: t });
|
|
@@ -2066,193 +2063,193 @@ var require_main_min = __commonJS({
|
|
|
2066
2063
|
return (0, ve.jsx)("h3", { className: r, children: t });
|
|
2067
2064
|
}
|
|
2068
2065
|
};
|
|
2069
|
-
var
|
|
2066
|
+
var iu = ({ size: e, text: t, classes: r }) => {
|
|
2070
2067
|
switch (e) {
|
|
2071
2068
|
case "xs":
|
|
2072
2069
|
case "sm":
|
|
2073
|
-
return (0, ve.jsx)(
|
|
2070
|
+
return (0, ve.jsx)(aa.Display, { type: "display-small", className: r, children: t });
|
|
2074
2071
|
case "xl":
|
|
2075
2072
|
case "lg":
|
|
2076
|
-
return (0, ve.jsx)(
|
|
2073
|
+
return (0, ve.jsx)(aa.Display, { type: "display-large", className: r, children: t });
|
|
2077
2074
|
case "md":
|
|
2078
2075
|
default:
|
|
2079
|
-
return (0, ve.jsx)(
|
|
2076
|
+
return (0, ve.jsx)(aa.Display, { type: "display-medium", className: r, children: t });
|
|
2080
2077
|
}
|
|
2081
2078
|
};
|
|
2082
|
-
var
|
|
2083
|
-
var
|
|
2079
|
+
var Oo = ou;
|
|
2080
|
+
var Po = require("@transferwise/components");
|
|
2084
2081
|
var ur = require("react/jsx-runtime");
|
|
2085
|
-
var
|
|
2082
|
+
var Mo = ({ component: e }) => {
|
|
2086
2083
|
let { content: t, align: r, margin: a } = e;
|
|
2087
|
-
return (0, ur.jsx)("div", { className:
|
|
2088
|
-
};
|
|
2089
|
-
var
|
|
2090
|
-
var
|
|
2091
|
-
var
|
|
2092
|
-
var
|
|
2093
|
-
function
|
|
2094
|
-
let { url: t, size: r, text: a, margin: o, accessibilityDescription: n } = e, i = ae(), [c, d] = (0,
|
|
2095
|
-
(0,
|
|
2096
|
-
|
|
2084
|
+
return (0, ur.jsx)("div", { className: Se({ align: r, margin: a }), children: (0, ur.jsx)(Po.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
|
|
2085
|
+
};
|
|
2086
|
+
var ko = ({ component: e }) => (0, ur.jsx)("div", { className: Se(e), children: (0, ur.jsx)(Po.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
|
|
2087
|
+
var _s = require("@transferwise/components");
|
|
2088
|
+
var oa = require("react");
|
|
2089
|
+
var Eo = require("react/jsx-runtime");
|
|
2090
|
+
function su({ component: e }) {
|
|
2091
|
+
let { url: t, size: r, text: a, margin: o, accessibilityDescription: n } = e, i = ae(), [c, d] = (0, oa.useState)("");
|
|
2092
|
+
(0, oa.useEffect)(() => {
|
|
2093
|
+
mu(i, t).then(d);
|
|
2097
2094
|
}, [t, i]);
|
|
2098
2095
|
let m = { alt: n || a || "", src: c, stretch: true, shrink: true };
|
|
2099
|
-
return c ? (0,
|
|
2096
|
+
return c ? (0, Eo.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, Eo.jsx)(_s.Image, s({ className: `img-responsive ${V(o || "md")}` }, m)) }) : null;
|
|
2100
2097
|
}
|
|
2101
|
-
var
|
|
2098
|
+
var cu = (e) => new Promise((t, r) => {
|
|
2102
2099
|
let a = new FileReader();
|
|
2103
2100
|
a.addEventListener("loadend", () => t(a.result)), a.addEventListener("error", (o) => r(o)), a.readAsDataURL(e);
|
|
2104
2101
|
});
|
|
2105
|
-
var
|
|
2102
|
+
var mu = async (e, t) => {
|
|
2106
2103
|
var r;
|
|
2107
2104
|
try {
|
|
2108
|
-
return
|
|
2105
|
+
return An(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) => {
|
|
2109
2106
|
if (a.ok)
|
|
2110
2107
|
return a.blob();
|
|
2111
2108
|
throw new Error("Image fetching failed");
|
|
2112
|
-
}).then(
|
|
2109
|
+
}).then(cu).catch(() => t) : t;
|
|
2113
2110
|
} catch (a) {
|
|
2114
2111
|
return t;
|
|
2115
2112
|
}
|
|
2116
2113
|
};
|
|
2117
|
-
var
|
|
2118
|
-
var
|
|
2114
|
+
var Io = su;
|
|
2115
|
+
var na = require("@transferwise/components");
|
|
2119
2116
|
var pr = require("react/jsx-runtime");
|
|
2120
|
-
var
|
|
2121
|
-
var
|
|
2122
|
-
var
|
|
2123
|
-
let { items: t } = e, r = t.filter((o) =>
|
|
2124
|
-
return (0, pr.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, pr.jsx)(
|
|
2117
|
+
var lu = ["positive", "neutral"];
|
|
2118
|
+
var du = ["warning", "negative"];
|
|
2119
|
+
var uu = ({ component: e }) => {
|
|
2120
|
+
let { items: t } = e, r = t.filter((o) => lu.includes(o.context)).map(({ text: o }) => o), a = t.filter((o) => du.includes(o.context)).map(({ text: o }) => o);
|
|
2121
|
+
return (0, pr.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, pr.jsx)(na.Header, { title: e.title }) : null, (0, pr.jsx)(na.InstructionsList, { dos: r, donts: a })] });
|
|
2125
2122
|
};
|
|
2126
|
-
var
|
|
2123
|
+
var Do = uu;
|
|
2127
2124
|
var H = require("react/jsx-runtime");
|
|
2128
2125
|
var K = (e) => JSON.stringify(e);
|
|
2129
|
-
function
|
|
2126
|
+
function pu(e) {
|
|
2130
2127
|
let { components: t, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c, baseUrl: d } = e, m = (p) => {
|
|
2131
2128
|
switch (p.type) {
|
|
2132
2129
|
case "heading":
|
|
2133
|
-
return (0, H.jsx)(
|
|
2130
|
+
return (0, H.jsx)(Oo, { component: p }, K(p));
|
|
2134
2131
|
case "paragraph":
|
|
2135
|
-
return (0, H.jsx)(
|
|
2132
|
+
return (0, H.jsx)(To, { component: p }, K(p));
|
|
2136
2133
|
case "image":
|
|
2137
|
-
return (0, H.jsx)(
|
|
2134
|
+
return (0, H.jsx)(Io, { component: p }, K(p));
|
|
2138
2135
|
case "alert":
|
|
2139
2136
|
return (0, H.jsx)(se, { component: p }, K(p));
|
|
2140
2137
|
case "review":
|
|
2141
|
-
return (0, H.jsx)(
|
|
2138
|
+
return (0, H.jsx)(Ro, { component: p, onAction: i }, K(p));
|
|
2142
2139
|
case "divider":
|
|
2143
|
-
return (0, H.jsx)(
|
|
2140
|
+
return (0, H.jsx)(Za, { component: p }, K(p));
|
|
2144
2141
|
case "info":
|
|
2145
|
-
return (0, H.jsx)(
|
|
2142
|
+
return (0, H.jsx)(ko, { component: p }, K(p));
|
|
2146
2143
|
case "instructions":
|
|
2147
|
-
return (0, H.jsx)(
|
|
2144
|
+
return (0, H.jsx)(Do, { component: p }, K(p));
|
|
2148
2145
|
case "markdown":
|
|
2149
|
-
return (0, H.jsx)(
|
|
2146
|
+
return (0, H.jsx)(Mo, { component: p }, K(p));
|
|
2150
2147
|
case "columns":
|
|
2151
|
-
return (0, H.jsx)(
|
|
2148
|
+
return (0, H.jsx)(Xa, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, K(p));
|
|
2152
2149
|
case "form":
|
|
2153
|
-
return (0, H.jsx)(
|
|
2150
|
+
return (0, H.jsx)(Ao, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onPersistAsync: c }, K(S(s({}, p), { errors: o != null ? o : null })));
|
|
2154
2151
|
case "button":
|
|
2155
|
-
return (0, H.jsx)(
|
|
2152
|
+
return (0, H.jsx)(Ja, { component: p, onAction: i }, K(p));
|
|
2156
2153
|
case "box":
|
|
2157
|
-
return (0, H.jsx)(
|
|
2154
|
+
return (0, H.jsx)(Ka, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, K(p));
|
|
2158
2155
|
case "decision":
|
|
2159
|
-
return (0, H.jsx)(
|
|
2156
|
+
return (0, H.jsx)(Ya, { component: p, onAction: i }, K(p));
|
|
2160
2157
|
case "external":
|
|
2161
|
-
return (0, H.jsx)(
|
|
2158
|
+
return (0, H.jsx)(Qa, { component: p, onAction: i }, K(p));
|
|
2162
2159
|
case "list":
|
|
2163
2160
|
case "status-list":
|
|
2164
|
-
return (0, H.jsx)(
|
|
2161
|
+
return (0, H.jsx)(Lo, { component: p, onAction: i }, K(p));
|
|
2165
2162
|
case "loading-indicator":
|
|
2166
2163
|
return (0, H.jsx)(yr, { component: p }, K(p));
|
|
2167
2164
|
case "search":
|
|
2168
|
-
return (0, H.jsx)(
|
|
2165
|
+
return (0, H.jsx)(No, { component: p, onAction: i }, K(p));
|
|
2169
2166
|
case "modal":
|
|
2170
|
-
return (0, H.jsx)(
|
|
2167
|
+
return (0, H.jsx)(Bo, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, K(p));
|
|
2171
2168
|
default:
|
|
2172
2169
|
return (0, H.jsx)("div", {}, K(p));
|
|
2173
2170
|
}
|
|
2174
2171
|
};
|
|
2175
|
-
return
|
|
2172
|
+
return Sn() || d == null ? (0, H.jsx)(H.Fragment, { children: t.map(m) }) : (0, H.jsx)(Ir, { baseUrl: d, children: t.map(m) });
|
|
2176
2173
|
}
|
|
2177
|
-
var ne =
|
|
2178
|
-
var
|
|
2174
|
+
var ne = pu;
|
|
2175
|
+
var ia = require("@transferwise/components");
|
|
2179
2176
|
var Gt = require("react/jsx-runtime");
|
|
2180
|
-
var
|
|
2181
|
-
var
|
|
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:
|
|
2183
|
-
return (0, Gt.jsx)(
|
|
2184
|
-
};
|
|
2185
|
-
var
|
|
2186
|
-
var
|
|
2187
|
-
var
|
|
2188
|
-
var
|
|
2189
|
-
var
|
|
2190
|
-
var
|
|
2191
|
-
var
|
|
2177
|
+
var yu = ({ component: e }) => (0, Gt.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, Gt.jsx)(ia.Header, { title: e.title }) : null, e.items.map(fu)] });
|
|
2178
|
+
var fu = ({ title: e, description: t, icon: r, status: a }) => {
|
|
2179
|
+
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: wu[a] } : {});
|
|
2180
|
+
return (0, Gt.jsx)(ia.Summary, s({}, o));
|
|
2181
|
+
};
|
|
2182
|
+
var hu = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2183
|
+
var gu = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2184
|
+
var wu = s(s({}, hu), gu);
|
|
2185
|
+
var Lo = yu;
|
|
2186
|
+
var Ks = require("@transferwise/components");
|
|
2187
|
+
var Js = require("react/jsx-runtime");
|
|
2188
|
+
var Su = ({ component: e }) => {
|
|
2192
2189
|
let { margin: t = "md", size: r = "md" } = e;
|
|
2193
|
-
return (0,
|
|
2194
|
-
};
|
|
2195
|
-
var yr =
|
|
2196
|
-
var
|
|
2197
|
-
var
|
|
2198
|
-
var
|
|
2199
|
-
var
|
|
2200
|
-
var
|
|
2201
|
-
var
|
|
2202
|
-
function
|
|
2203
|
-
let e = (0,
|
|
2190
|
+
return (0, Js.jsx)(Ks.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${V(t)}` }, "data-testid": "loading-indicator" });
|
|
2191
|
+
};
|
|
2192
|
+
var yr = Su;
|
|
2193
|
+
var ec = require("@transferwise/components");
|
|
2194
|
+
var tc = require("react-intl");
|
|
2195
|
+
var Xs = require("react-intl");
|
|
2196
|
+
var zo = (0, Xs.defineMessages)({ copy: { id: "dynamicFlows.DynamicParagraph.copy", defaultMessage: "Copy", description: "Copy to clipboard button label." }, copied: { id: "dynamicFlows.DynamicParagraph.copied", defaultMessage: "Copied to clipboard", description: "Appears in a snackbar when the copy operation succeeds." } });
|
|
2197
|
+
var Ys = require("@transferwise/components");
|
|
2198
|
+
var Zs = require("react");
|
|
2199
|
+
function Qs() {
|
|
2200
|
+
let e = (0, Zs.useContext)(Ys.SnackbarContext);
|
|
2204
2201
|
return e ? e.createSnackbar : Cu;
|
|
2205
2202
|
}
|
|
2206
2203
|
function Cu() {
|
|
2207
2204
|
}
|
|
2208
2205
|
var tt = require("react/jsx-runtime");
|
|
2209
|
-
function Su({ component: e }) {
|
|
2210
|
-
return e.control === "copyable" ? (0, tt.jsx)(bu, { component: e }) : (0, tt.jsx)(Fu, { component: e });
|
|
2211
|
-
}
|
|
2212
2206
|
function Fu({ component: e }) {
|
|
2213
|
-
return (0, tt.
|
|
2207
|
+
return e.control === "copyable" ? (0, tt.jsx)(xu, { component: e }) : (0, tt.jsx)(bu, { component: e });
|
|
2214
2208
|
}
|
|
2215
2209
|
function bu({ component: e }) {
|
|
2216
|
-
|
|
2217
|
-
var i;
|
|
2218
|
-
(i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(Bo.copied) })).catch(xu);
|
|
2219
|
-
}, n = `${Ce({ align: e.align, margin: "sm" })} form-control`;
|
|
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) })] });
|
|
2221
|
-
}
|
|
2222
|
-
function xu() {
|
|
2210
|
+
return (0, tt.jsxs)("p", { className: Se(e), children: [" ", e.text, " "] });
|
|
2223
2211
|
}
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2212
|
+
function xu({ component: e }) {
|
|
2213
|
+
let { formatMessage: t } = (0, tc.useIntl)(), r = Qs(), { text: a } = e, o = () => {
|
|
2214
|
+
var i;
|
|
2215
|
+
(i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(zo.copied) })).catch(vu);
|
|
2216
|
+
}, n = `${Se({ align: e.align, margin: "sm" })} form-control`;
|
|
2217
|
+
return (0, tt.jsxs)("div", { className: Se(e), children: [(0, tt.jsx)("input", { type: "text", className: n, value: a, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, tt.jsx)(ec.Button, { block: true, onClick: o, children: t(zo.copy) })] });
|
|
2218
|
+
}
|
|
2219
|
+
function vu() {
|
|
2220
|
+
}
|
|
2221
|
+
var To = Fu;
|
|
2222
|
+
var sa = require("@transferwise/components");
|
|
2223
|
+
var de = require("react/jsx-runtime");
|
|
2224
|
+
var Au = (e, t) => t.fields.map(({ label: r, value: a, help: o }, n) => ({ key: String(n), title: r, value: Ou(a, o, e) }));
|
|
2225
|
+
var Ou = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, de.jsxs)(de.Fragment, { children: [(0, de.jsx)(qe, { help: t }), " ", e] }) : (0, de.jsxs)(de.Fragment, { children: [e, " ", (0, de.jsx)(qe, { help: t })] }) : e;
|
|
2226
|
+
var Pu = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
|
|
2227
|
+
function Mu(e) {
|
|
2231
2228
|
let t = e.component, r = V(t.margin || "xs"), a = (c, d) => ({ text: c != null ? c : "", href: d.url, onClick: (m) => {
|
|
2232
2229
|
m.preventDefault(), d && e.onAction(d);
|
|
2233
|
-
} }), o =
|
|
2234
|
-
return (0,
|
|
2235
|
-
}
|
|
2236
|
-
var
|
|
2237
|
-
var
|
|
2238
|
-
var
|
|
2239
|
-
var
|
|
2240
|
-
var
|
|
2241
|
-
var
|
|
2230
|
+
} }), o = Pu(t), n = t.callToAction ? a(t.callToAction.title, t.callToAction.action) : null, i = !n && t.action ? a(t.action.title || "", t.action) : null;
|
|
2231
|
+
return (0, de.jsxs)("div", { className: r, children: [t.title && (0, de.jsx)(sa.Header, { title: t.title, action: n || i || void 0 }), (0, de.jsx)("div", { className: r, children: (0, de.jsx)(sa.DefinitionList, { layout: o, definitions: Au(o, t) }) })] });
|
|
2232
|
+
}
|
|
2233
|
+
var Ro = Mu;
|
|
2234
|
+
var la = require("react");
|
|
2235
|
+
var rc = require("@transferwise/components");
|
|
2236
|
+
var ca = require("react/jsx-runtime");
|
|
2237
|
+
var ac = ({ title: e, value: t, onFocus: r, onChange: a }) => (0, ca.jsxs)("label", { className: "control-label d-inline", children: [e, (0, ca.jsx)(rc.Input, { type: "text", value: t, className: "m-t-1", onFocus: r, onChange: (o) => a(o.currentTarget.value) })] });
|
|
2238
|
+
var ma = require("@transferwise/components");
|
|
2239
|
+
var nc = require("react-intl");
|
|
2242
2240
|
var oc = require("react-intl");
|
|
2243
|
-
var
|
|
2244
|
-
var
|
|
2245
|
-
var
|
|
2246
|
-
var
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
return (0, St.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(Wt.errorAlert), "\xA0", (0, St.jsx)("a", { href: "/", onClick: (r) => {
|
|
2241
|
+
var Wt = (0, oc.defineMessages)({ errorAlert: { id: "dynamicFlows.ErrorBoundary.errorAlert", defaultMessage: "Oops. Something went wrong...", description: "Generic error message for when something has gone wrong." }, retry: { id: "dynamicFlows.ErrorBoundary.retry", defaultMessage: "Retry", description: "Usually this follows the generic error and contains a link." } });
|
|
2242
|
+
var Ct = require("react/jsx-runtime");
|
|
2243
|
+
var ic = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, Ct.jsx)("p", { className: "m-t-2", children: t }) : (0, Ct.jsx)(ma.NavigationOptionsList, { children: e.map((a) => (0, Ct.jsx)(ma.NavigationOption, { title: a.title, content: a.description, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(a) }, JSON.stringify(a))) });
|
|
2244
|
+
var sc = ({ onRetrySearch: e }) => {
|
|
2245
|
+
let t = (0, nc.useIntl)();
|
|
2246
|
+
return (0, Ct.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(Wt.errorAlert), "\xA0", (0, Ct.jsx)("a", { href: "/", onClick: (r) => {
|
|
2250
2247
|
r.preventDefault(), e();
|
|
2251
2248
|
}, children: t.formatMessage(Wt.retry) })] });
|
|
2252
2249
|
};
|
|
2253
2250
|
var $t = require("react");
|
|
2254
|
-
var
|
|
2255
|
-
var
|
|
2251
|
+
var cc = { "Content-Type": "application/json" };
|
|
2252
|
+
var mc = (e) => {
|
|
2256
2253
|
let [t, r] = (0, $t.useState)({ status: "idle" }), a = (0, $t.useRef)(null), o = ae(), n = (0, $t.useCallback)(async (m, { url: p, method: h, param: y } = e) => {
|
|
2257
2254
|
var l;
|
|
2258
2255
|
if ((l = a.current) == null || l.abort(), !m) {
|
|
@@ -2263,7 +2260,7 @@ var require_main_min = __commonJS({
|
|
|
2263
2260
|
let { signal: u } = a.current;
|
|
2264
2261
|
r({ status: "loading" });
|
|
2265
2262
|
try {
|
|
2266
|
-
let w = await (h === "GET" ? o(
|
|
2263
|
+
let w = await (h === "GET" ? o(Iu(p, y, m), { method: h, signal: u, headers: cc }) : o(p, { method: h, signal: u, headers: cc, body: JSON.stringify({ [y]: m }) }));
|
|
2267
2264
|
i(w, m);
|
|
2268
2265
|
} catch (f) {
|
|
2269
2266
|
c(f, m);
|
|
@@ -2271,31 +2268,31 @@ var require_main_min = __commonJS({
|
|
|
2271
2268
|
}, [o, JSON.stringify(e)]), i = async (m, p) => {
|
|
2272
2269
|
if (m.ok) {
|
|
2273
2270
|
let h = await m.json().catch(() => null);
|
|
2274
|
-
if (
|
|
2271
|
+
if (ku(h)) {
|
|
2275
2272
|
r({ status: "success", results: h.results });
|
|
2276
2273
|
return;
|
|
2277
2274
|
}
|
|
2278
2275
|
}
|
|
2279
2276
|
r({ status: "error" });
|
|
2280
2277
|
}, c = (m, p) => {
|
|
2281
|
-
|
|
2278
|
+
Eu(m) || r({ status: "error" });
|
|
2282
2279
|
}, d = t.status === "success" ? t.results : [];
|
|
2283
2280
|
return { status: t.status, results: d, search: n };
|
|
2284
2281
|
};
|
|
2285
|
-
var
|
|
2286
|
-
var
|
|
2287
|
-
var
|
|
2282
|
+
var ku = (e) => R(e) && "results" in e && j(e.results) && e.results.every((t) => R(t) && "title" in t && "type" in t && "value" in t);
|
|
2283
|
+
var Eu = (e) => e instanceof DOMException && e.name === "AbortError";
|
|
2284
|
+
var Iu = (e, t, r) => {
|
|
2288
2285
|
let [a, o] = e.split("?"), n = new URLSearchParams(o);
|
|
2289
2286
|
return n.set(t, r), `${a}?${n.toString()}`;
|
|
2290
2287
|
};
|
|
2291
2288
|
var Ft = require("react/jsx-runtime");
|
|
2292
|
-
var
|
|
2293
|
-
function
|
|
2294
|
-
let [r, a] = (0,
|
|
2289
|
+
var Du = 400;
|
|
2290
|
+
function Lu({ component: e, onAction: t }) {
|
|
2291
|
+
let [r, a] = (0, la.useState)(""), { title: o, margin: n, url: i, method: c, param: d, emptyMessage: m } = e, { status: p, results: h, search: y } = mc({ url: i, method: c, param: d }), u = re(), l = (0, la.useMemo)(() => Ke(y, Du), [y]), f = () => {
|
|
2295
2292
|
u("Dynamic Flow - Search Started", {});
|
|
2296
2293
|
}, w = (g) => {
|
|
2297
2294
|
a(g), l(g);
|
|
2298
|
-
},
|
|
2295
|
+
}, C = ({ type: g, value: v }) => {
|
|
2299
2296
|
if (g === "action" && (u("Dynamic Flow - Search Result Selected", { type: "action", actionId: v.id || v.$id }), t(v)), g === "search") {
|
|
2300
2297
|
a(v.query);
|
|
2301
2298
|
let { url: O, method: x, param: M, query: E } = v;
|
|
@@ -2304,21 +2301,21 @@ var require_main_min = __commonJS({
|
|
|
2304
2301
|
}, F = () => {
|
|
2305
2302
|
a(r), y(r);
|
|
2306
2303
|
};
|
|
2307
|
-
return (0, Ft.jsxs)("div", { className: V(n || "md"), children: [(0, Ft.jsx)(
|
|
2304
|
+
return (0, Ft.jsxs)("div", { className: V(n || "md"), children: [(0, Ft.jsx)(ac, { 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)(sc, { onRetrySearch: F }), p === "success" && (0, Ft.jsx)(ic, { results: h, emptyMessage: m, onSelect: C })] });
|
|
2308
2305
|
}
|
|
2309
|
-
var Ro = Du;
|
|
2310
|
-
var la = require("@transferwise/components");
|
|
2311
|
-
var mc = require("react");
|
|
2312
|
-
var _t = require("react/jsx-runtime");
|
|
2313
|
-
var Lu = (e) => {
|
|
2314
|
-
let [t, r] = (0, mc.useState)(false), { component: a, onAction: o } = e, { margin: n = "md" } = a;
|
|
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 })) })] });
|
|
2316
|
-
};
|
|
2317
2306
|
var No = Lu;
|
|
2318
|
-
var
|
|
2319
|
-
var
|
|
2320
|
-
var
|
|
2321
|
-
var
|
|
2307
|
+
var da = require("@transferwise/components");
|
|
2308
|
+
var lc = require("react");
|
|
2309
|
+
var _t = require("react/jsx-runtime");
|
|
2310
|
+
var Tu = (e) => {
|
|
2311
|
+
let [t, r] = (0, lc.useState)(false), { component: a, onAction: o } = e, { margin: n = "md" } = a;
|
|
2312
|
+
return (0, _t.jsxs)("div", { className: Se({ margin: n }), children: [(0, _t.jsx)(da.Button, { priority: "tertiary", block: true, onClick: () => r(true), children: a.trigger.title }), (0, _t.jsx)(da.Modal, { scroll: "content", onClose: () => r(false), open: t, size: "lg", body: (0, _t.jsx)(ne, S(s({}, e), { components: a.content.components, onAction: o })) })] });
|
|
2313
|
+
};
|
|
2314
|
+
var Bo = Tu;
|
|
2315
|
+
var pe = require("react/jsx-runtime");
|
|
2316
|
+
var jo = (e) => I(e) || Y(e);
|
|
2317
|
+
var Ru = (e) => e.type === "boolean" && jo(e.default) ? false : e.default;
|
|
2318
|
+
var uc = (e) => {
|
|
2322
2319
|
var ee, A, B;
|
|
2323
2320
|
let t = (k) => {
|
|
2324
2321
|
y(true), a(o(k), "user");
|
|
@@ -2330,33 +2327,33 @@ var require_main_min = __commonJS({
|
|
|
2330
2327
|
p(X), X !== m && e.onChange({ model: X, triggerSchema: e.schema, triggerModel: X, lastTriggerModel: m, type: ie });
|
|
2331
2328
|
}, o = (k) => $e(k, e.schema), n = () => l(true), i = () => {
|
|
2332
2329
|
l(false), w(true), e.onBlur && e.onBlur();
|
|
2333
|
-
}, [c, d] = (0,
|
|
2334
|
-
let k =
|
|
2335
|
-
|
|
2330
|
+
}, [c, d] = (0, ue.useState)((ee = e.model) != null ? ee : null), [m, p] = (0, ue.useState)((A = e.model) != null ? A : null), [h, y] = (0, ue.useState)(false), [u, l] = (0, ue.useState)(false), [f, w] = (0, ue.useState)(false), [C, F] = (0, ue.useState)([]), g = (0, ue.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), v = () => {
|
|
2331
|
+
let k = Ru(e.schema);
|
|
2332
|
+
jo(c) && !jo(k) && a(k, "init"), e.schema.const && a(e.schema.const, "init");
|
|
2336
2333
|
}, O = () => {
|
|
2337
2334
|
F(r(c));
|
|
2338
2335
|
}, x = e.schema.const, M = e.schema.hidden || x;
|
|
2339
|
-
(0,
|
|
2336
|
+
(0, ue.useEffect)(O, [e.model, e.submitted]), (0, ue.useEffect)(v, [e.schema]), (0, ue.useEffect)(() => {
|
|
2340
2337
|
var ie;
|
|
2341
2338
|
let k = (ie = e.model) != null ? ie : null;
|
|
2342
2339
|
k !== c && d(k);
|
|
2343
2340
|
}, [e.model]);
|
|
2344
|
-
let E = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && f) && !!
|
|
2345
|
-
return M ? null : (0,
|
|
2346
|
-
};
|
|
2347
|
-
|
|
2348
|
-
var
|
|
2349
|
-
var
|
|
2350
|
-
var
|
|
2351
|
-
var
|
|
2341
|
+
let E = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && f) && !!C.length, "has-info": !!e.schema.description || !!e.infoMessage }, P = e.schema.format !== "file" && e.schema.type !== "boolean", D = e.schema.help, U = `${g}-feedback`;
|
|
2342
|
+
return M ? null : (0, pe.jsxs)(pe.Fragment, { children: [e.schema.alert && (0, pe.jsx)(se, { component: e.schema.alert }), (0, pe.jsxs)("div", { className: (0, dc.default)(E), children: [P && (0, pe.jsxs)("div", { className: "d-inline-block m-b-1", children: [(0, pe.jsx)("label", { className: "control-label d-inline", htmlFor: g, children: e.schema.title }), !!D && (0, pe.jsx)(qe, { help: D })] }), !P && !!D && (0, pe.jsx)(qe, { help: D }), (0, pe.jsx)(lr, { id: g, schema: e.schema, value: c, disabled: !!e.disabled, onChange: t, onFocus: n, onBlur: i, describedBy: U }), (0, pe.jsx)(He, { id: U, changed: h, focused: u, blurred: f, submitted: e.submitted, errors: (B = e.errors) != null ? B : null, schema: e.schema, validations: C, infoMessage: e.infoMessage })] })] });
|
|
2343
|
+
};
|
|
2344
|
+
uc.defaultProps = { required: false, disabled: false, onBlur: null };
|
|
2345
|
+
var St = uc;
|
|
2346
|
+
var hc = require("react/jsx-runtime");
|
|
2347
|
+
var ho = (e, t) => t[e];
|
|
2348
|
+
var yc = (e, t) => {
|
|
2352
2349
|
var r;
|
|
2353
2350
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2354
2351
|
};
|
|
2355
|
-
var
|
|
2356
|
-
function
|
|
2357
|
-
let { schema: t, required: r, submitted: a, errors: o, onChange: n, onPersistAsync: i } = e, c = (0,
|
|
2352
|
+
var Nu = /* @__PURE__ */ new Set([N.RADIO, N.SELECT, N.DATELOOKUP, N.FILE, N.UPLOAD]);
|
|
2353
|
+
function fc(e) {
|
|
2354
|
+
let { schema: t, required: r, submitted: a, errors: o, onChange: n, onPersistAsync: i } = e, c = (0, pc.useIntl)(), d = ae(), m = re(), [p, h] = (0, bt.useState)(null), y = gc(p), [u, l] = (0, bt.useState)(null), [f, w] = (0, bt.useState)(false), [C, F] = (0, bt.useState)(null);
|
|
2358
2355
|
(0, bt.useEffect)(() => {
|
|
2359
|
-
|
|
2356
|
+
Nu.has(uo(t.persistAsync.schema)) && x();
|
|
2360
2357
|
}, [p]);
|
|
2361
2358
|
let g = () => l(c.formatMessage(nr.genericError)), v = async (P, D) => {
|
|
2362
2359
|
let U = O(), ee = { [D.param]: P };
|
|
@@ -2369,8 +2366,8 @@ var require_main_min = __commonJS({
|
|
|
2369
2366
|
if (!R(k))
|
|
2370
2367
|
throw new Error("Response is not an object");
|
|
2371
2368
|
let { idProperty: ie, param: W } = t.persistAsync;
|
|
2372
|
-
if (
|
|
2373
|
-
let X =
|
|
2369
|
+
if (vn(B.status)) {
|
|
2370
|
+
let X = ho(ie, k);
|
|
2374
2371
|
n({ model: X, triggerSchema: t, triggerModel: X });
|
|
2375
2372
|
} else if (Lr(B.status)) {
|
|
2376
2373
|
let { validation: X } = k, ke = R(X) && (X == null ? void 0 : X[W]) || null;
|
|
@@ -2382,7 +2379,7 @@ var require_main_min = __commonJS({
|
|
|
2382
2379
|
m("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), g();
|
|
2383
2380
|
}
|
|
2384
2381
|
}, O = () => {
|
|
2385
|
-
|
|
2382
|
+
C && C.abort();
|
|
2386
2383
|
let P = new AbortController();
|
|
2387
2384
|
return F(P), P.signal;
|
|
2388
2385
|
}, x = () => {
|
|
@@ -2392,12 +2389,12 @@ var require_main_min = __commonJS({
|
|
|
2392
2389
|
}, E = ({ model: P }) => {
|
|
2393
2390
|
l(null), G(P, t.persistAsync.schema) && h(P);
|
|
2394
2391
|
};
|
|
2395
|
-
return (0,
|
|
2392
|
+
return (0, hc.jsx)(St, { required: r, submitted: a || f, schema: t.persistAsync.schema, errors: u || o, model: null, infoMessage: null, onChange: E, onBlur: M });
|
|
2396
2393
|
}
|
|
2397
|
-
|
|
2398
|
-
var
|
|
2399
|
-
var
|
|
2400
|
-
let [t, r] = (0,
|
|
2394
|
+
fc.defaultProps = { required: false };
|
|
2395
|
+
var yo = fc;
|
|
2396
|
+
var Gi = (e) => {
|
|
2397
|
+
let [t, r] = (0, wc.useState)(null), a = ae(), o = (0, Sc.useIntl)(), { schema: n } = e;
|
|
2401
2398
|
async function i(y) {
|
|
2402
2399
|
let u = y instanceof Blob ? !Dt(n) : !G(y, n);
|
|
2403
2400
|
return (I(y) || u) && h(), await m(y);
|
|
@@ -2408,7 +2405,7 @@ var require_main_min = __commonJS({
|
|
|
2408
2405
|
return r(y), y.signal;
|
|
2409
2406
|
};
|
|
2410
2407
|
function d(y) {
|
|
2411
|
-
let u = Dt(n), l = c(), f = e.param, w = u ?
|
|
2408
|
+
let u = Dt(n), l = c(), f = e.param, w = u ? Bu(f, y) : JSON.stringify({ [f]: y });
|
|
2412
2409
|
return { method: e.method, headers: s({}, !u && { "Content-Type": "application/json" }), body: w, signal: l };
|
|
2413
2410
|
}
|
|
2414
2411
|
async function m(y) {
|
|
@@ -2431,7 +2428,7 @@ var require_main_min = __commonJS({
|
|
|
2431
2428
|
if (y.status === 422) {
|
|
2432
2429
|
let u = await y.json();
|
|
2433
2430
|
if (R(u)) {
|
|
2434
|
-
let l =
|
|
2431
|
+
let l = yc(e.param, u);
|
|
2435
2432
|
if (L(l))
|
|
2436
2433
|
throw new Error(l);
|
|
2437
2434
|
}
|
|
@@ -2439,21 +2436,21 @@ var require_main_min = __commonJS({
|
|
|
2439
2436
|
throw new Error(o.formatMessage(nr.genericError));
|
|
2440
2437
|
}
|
|
2441
2438
|
let h = (y) => {
|
|
2442
|
-
let u =
|
|
2439
|
+
let u = zu(y) ? y.message : o.formatMessage(nr.genericError);
|
|
2443
2440
|
throw new Error(u);
|
|
2444
2441
|
};
|
|
2445
2442
|
return i;
|
|
2446
2443
|
};
|
|
2447
|
-
function
|
|
2444
|
+
function Bu(e, t) {
|
|
2448
2445
|
let r = new FormData();
|
|
2449
2446
|
return t !== null && r.append(e, t), r;
|
|
2450
2447
|
}
|
|
2451
|
-
function
|
|
2448
|
+
function zu(e) {
|
|
2452
2449
|
return R(e) && "message" in e && typeof e.message == "string";
|
|
2453
2450
|
}
|
|
2454
2451
|
var rt = require("react");
|
|
2455
2452
|
function Vr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: a, onPollingResponse: o, onFailure: n }) {
|
|
2456
|
-
let i = (0, rt.useRef)(o), c = (0, rt.useRef)(n), d = (0, rt.useMemo)(() =>
|
|
2453
|
+
let i = (0, rt.useRef)(o), c = (0, rt.useRef)(n), d = (0, rt.useMemo)(() => ju(e, r, a, (m) => i.current(m), () => c.current()), [e, r, a]);
|
|
2457
2454
|
(0, rt.useEffect)(() => {
|
|
2458
2455
|
if (t > 0) {
|
|
2459
2456
|
let m = setInterval(() => {
|
|
@@ -2465,7 +2462,7 @@ var require_main_min = __commonJS({
|
|
|
2465
2462
|
i.current = o, c.current = n;
|
|
2466
2463
|
}, [o, n]);
|
|
2467
2464
|
}
|
|
2468
|
-
function
|
|
2465
|
+
function ju(e, t, r, a, o) {
|
|
2469
2466
|
let n = true, i = 0, c = 0;
|
|
2470
2467
|
return e ? () => {
|
|
2471
2468
|
n && (c++, e().then((d) => {
|
|
@@ -2478,10 +2475,10 @@ var require_main_min = __commonJS({
|
|
|
2478
2475
|
} : () => {
|
|
2479
2476
|
};
|
|
2480
2477
|
}
|
|
2481
|
-
var
|
|
2482
|
-
var
|
|
2483
|
-
let t = (0,
|
|
2484
|
-
return (0,
|
|
2478
|
+
var ua = require("react");
|
|
2479
|
+
var gc = (e) => {
|
|
2480
|
+
let t = (0, ua.useRef)();
|
|
2481
|
+
return (0, ua.useEffect)(() => {
|
|
2485
2482
|
t.current = e;
|
|
2486
2483
|
}, [e]), t.current;
|
|
2487
2484
|
};
|
|
@@ -2501,60 +2498,60 @@ var require_main_min = __commonJS({
|
|
|
2501
2498
|
e && t(e.onError.action);
|
|
2502
2499
|
}, [t, e]) });
|
|
2503
2500
|
}
|
|
2504
|
-
var
|
|
2505
|
-
var
|
|
2501
|
+
var Fc = require("react/jsx-runtime");
|
|
2502
|
+
var Vu = (e, t) => {
|
|
2506
2503
|
var a;
|
|
2507
2504
|
if (kt(e))
|
|
2508
2505
|
return [];
|
|
2509
2506
|
let r = Qt(e, t);
|
|
2510
2507
|
return ze({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (a = e.model) != null ? a : null });
|
|
2511
2508
|
};
|
|
2512
|
-
var
|
|
2513
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: a, model: o, formErrors: n, onModelChange: i } = e, c =
|
|
2509
|
+
var Uu = (e) => {
|
|
2510
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: a, model: o, formErrors: n, onModelChange: i } = e, c = Vu(t, r), { loading: d, registerPersistAsyncPromise: m } = At(), p = re(), h = d ? () => {
|
|
2514
2511
|
p("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2515
2512
|
} : e.onAction;
|
|
2516
|
-
return Cc(t.polling, h), (0,
|
|
2513
|
+
return Cc(t.polling, h), (0, Fc.jsx)(ne, { components: c, submitted: a, model: o, errors: n, onAction: h, onModelChange: i, onPersistAsync: m });
|
|
2517
2514
|
};
|
|
2518
|
-
var
|
|
2519
|
-
var
|
|
2515
|
+
var pa = Uu;
|
|
2516
|
+
var wa = require("react");
|
|
2520
2517
|
var oe = require("react");
|
|
2521
|
-
var
|
|
2522
|
-
var
|
|
2523
|
-
var bc = require("react-intl");
|
|
2524
|
-
var pe = (0, bc.defineMessages)({ reviewSubmit: { id: "dynamicFlows.CameraCapture.reviewSubmit", defaultMessage: "Yes, submit", description: "Accept and submit the image taken with the camera" }, reviewRetry: { id: "dynamicFlows.CameraCapture.reviewRetry", defaultMessage: "No, try again", description: "Image taken with camera is not good, don't submit, and retake the image" }, reviewInstructions: { id: "dynamicFlows.CameraCapture.reviewInstructions", defaultMessage: "Is your picture clear, readable and complete?", description: "After taking an image with the camera, prompt user to review the image" }, cameraNotSupportedTitle: { id: "dynamicFlows.CameraCapture.CameraNotSupported.title", defaultMessage: "Camera not supported", description: "Title of standalone page prompting that camera is not available on users browser" }, cameraNotSupportedParagraph: { id: "dynamicFlows.CameraCapture.CameraNotSupported.paragraph", defaultMessage: "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", description: "Further text of standalone page prompting that camera is not available on user's browser" }, noCameraAccessTitle: { id: "dynamicFlows.CameraCapture.NoCameraAccess.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting missing camera permissions" }, noCameraAccessParagraph: { id: "dynamicFlows.CameraCapture.NoCameraAccess.paragraph", defaultMessage: "Enable camera access in your browser's settings to get going again.", description: "Further text of standalone page prompting missing camera permissions" }, noCameraAccessAction: { id: "dynamicFlows.CameraCapture.NoCameraAccess.action", defaultMessage: "Enable camera access", description: "Action to ask for camera permissions again" }, cameraConnectionIssueTitle: { id: "dynamicFlows.CameraCapture.CameraConnectionIssue.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting that there was an issue connecting to a camera" }, cameraConnectionIssueParagraph: { id: "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph", defaultMessage: "Please check if it is connected and try again.", description: "Further text of standalone page prompting that there was an issue connecting to a camera" }, cameraConnectionIssueAction: { id: "dynamicFlows.CameraCapture.CameraConnectionIssue.action", defaultMessage: "Try again", description: "Action to try using camera again" } });
|
|
2525
|
-
var Oe = require("@transferwise/components");
|
|
2518
|
+
var qc = require("react-intl");
|
|
2519
|
+
var Gc = Ee(bc());
|
|
2526
2520
|
var xc = require("react-intl");
|
|
2527
|
-
var
|
|
2528
|
-
var
|
|
2529
|
-
var Uo = ({ onSubmit: e, onRetry: t }) => {
|
|
2530
|
-
let r = (0, xc.useIntl)();
|
|
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) })] }) }) });
|
|
2532
|
-
};
|
|
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" }) });
|
|
2534
|
-
var Oc = require("react-intl");
|
|
2521
|
+
var ye = (0, xc.defineMessages)({ reviewSubmit: { id: "dynamicFlows.CameraCapture.reviewSubmit", defaultMessage: "Yes, submit", description: "Accept and submit the image taken with the camera" }, reviewRetry: { id: "dynamicFlows.CameraCapture.reviewRetry", defaultMessage: "No, try again", description: "Image taken with camera is not good, don't submit, and retake the image" }, reviewInstructions: { id: "dynamicFlows.CameraCapture.reviewInstructions", defaultMessage: "Is your picture clear, readable and complete?", description: "After taking an image with the camera, prompt user to review the image" }, cameraNotSupportedTitle: { id: "dynamicFlows.CameraCapture.CameraNotSupported.title", defaultMessage: "Camera not supported", description: "Title of standalone page prompting that camera is not available on users browser" }, cameraNotSupportedParagraph: { id: "dynamicFlows.CameraCapture.CameraNotSupported.paragraph", defaultMessage: "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", description: "Further text of standalone page prompting that camera is not available on user's browser" }, noCameraAccessTitle: { id: "dynamicFlows.CameraCapture.NoCameraAccess.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting missing camera permissions" }, noCameraAccessParagraph: { id: "dynamicFlows.CameraCapture.NoCameraAccess.paragraph", defaultMessage: "Enable camera access in your browser's settings to get going again.", description: "Further text of standalone page prompting missing camera permissions" }, noCameraAccessAction: { id: "dynamicFlows.CameraCapture.NoCameraAccess.action", defaultMessage: "Enable camera access", description: "Action to ask for camera permissions again" }, cameraConnectionIssueTitle: { id: "dynamicFlows.CameraCapture.CameraConnectionIssue.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting that there was an issue connecting to a camera" }, cameraConnectionIssueParagraph: { id: "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph", defaultMessage: "Please check if it is connected and try again.", description: "Further text of standalone page prompting that there was an issue connecting to a camera" }, cameraConnectionIssueAction: { id: "dynamicFlows.CameraCapture.CameraConnectionIssue.action", defaultMessage: "Try again", description: "Action to try using camera again" } });
|
|
2522
|
+
var Oe = require("@transferwise/components");
|
|
2535
2523
|
var vc = require("react-intl");
|
|
2536
|
-
var
|
|
2524
|
+
var Ae = require("react/jsx-runtime");
|
|
2525
|
+
var Uo = ({ onCapture: e }) => (0, Ae.jsx)("div", { className: "bottom-bar", children: (0, Ae.jsx)(Hu, { onClick: e }) });
|
|
2526
|
+
var Ho = ({ onSubmit: e, onRetry: t }) => {
|
|
2527
|
+
let r = (0, vc.useIntl)();
|
|
2528
|
+
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(ye.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(ye.reviewRetry) })] }) }) });
|
|
2529
|
+
};
|
|
2530
|
+
var Hu = ({ 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" }) });
|
|
2531
|
+
var Pc = require("react-intl");
|
|
2532
|
+
var Ac = require("react-intl");
|
|
2533
|
+
var Oc = (0, Ac.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" } });
|
|
2537
2534
|
var gr = require("react/jsx-runtime");
|
|
2538
|
-
function
|
|
2539
|
-
let e = (0,
|
|
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(
|
|
2535
|
+
function qu() {
|
|
2536
|
+
let e = (0, Pc.useIntl)();
|
|
2537
|
+
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(Oc.text) })] });
|
|
2541
2538
|
}
|
|
2542
|
-
var
|
|
2543
|
-
var
|
|
2539
|
+
var qo = qu;
|
|
2540
|
+
var Mc = require("@transferwise/components");
|
|
2544
2541
|
var at = require("react/jsx-runtime");
|
|
2545
|
-
function
|
|
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)(
|
|
2542
|
+
function Gu({ title: e, description: t, actionButton: r, onAction: a }) {
|
|
2543
|
+
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)(Mc.Button, { block: true, onClick: a, children: r })] }) }) });
|
|
2547
2544
|
}
|
|
2548
|
-
var
|
|
2545
|
+
var Go = Gu;
|
|
2549
2546
|
var ot = require("react");
|
|
2550
|
-
var Kt = Ee(
|
|
2551
|
-
var
|
|
2547
|
+
var Kt = Ee(kc());
|
|
2548
|
+
var Ec = (e) => {
|
|
2552
2549
|
var r;
|
|
2553
|
-
let { facingMode: t } = ((r =
|
|
2550
|
+
let { facingMode: t } = ((r = ya(e)) == null ? void 0 : r.getSettings()) || {};
|
|
2554
2551
|
return t === "user" || t === void 0;
|
|
2555
2552
|
};
|
|
2556
|
-
var
|
|
2557
|
-
var
|
|
2553
|
+
var Ic = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
|
|
2554
|
+
var Dc = async (e) => {
|
|
2558
2555
|
let t = document.createElement("canvas");
|
|
2559
2556
|
if (e) {
|
|
2560
2557
|
t.setAttribute("height", `${e.videoHeight}`), t.setAttribute("width", `${e.videoWidth}`);
|
|
@@ -2565,44 +2562,44 @@ var require_main_min = __commonJS({
|
|
|
2565
2562
|
}
|
|
2566
2563
|
return t;
|
|
2567
2564
|
};
|
|
2568
|
-
var
|
|
2565
|
+
var Lc = async () => {
|
|
2569
2566
|
var e, t;
|
|
2570
2567
|
return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput");
|
|
2571
2568
|
};
|
|
2572
|
-
var
|
|
2569
|
+
var Tc = async () => {
|
|
2573
2570
|
var e, t;
|
|
2574
2571
|
return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput").map((r) => r.label);
|
|
2575
2572
|
};
|
|
2576
|
-
var
|
|
2573
|
+
var Rc = async (e) => {
|
|
2577
2574
|
var r, a, o;
|
|
2578
|
-
let t =
|
|
2575
|
+
let t = Wo(e);
|
|
2579
2576
|
return (o = (await ((a = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : a.call(r)) || []).filter((n) => n.kind === "videoinput").find((n) => n.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : o.label;
|
|
2580
2577
|
};
|
|
2581
|
-
var
|
|
2578
|
+
var ya = (e) => {
|
|
2582
2579
|
var t;
|
|
2583
2580
|
return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
|
|
2584
2581
|
};
|
|
2585
|
-
var
|
|
2582
|
+
var Wo = (e) => {
|
|
2586
2583
|
var t, r;
|
|
2587
|
-
return (r = (t =
|
|
2584
|
+
return (r = (t = ya(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2588
2585
|
};
|
|
2589
|
-
var
|
|
2590
|
-
var
|
|
2591
|
-
var
|
|
2592
|
-
var
|
|
2586
|
+
var fa = (e, t, r) => t == null ? void 0 : t(e, { Error: Wu(r) });
|
|
2587
|
+
var Wu = (e) => e instanceof DOMException ? JSON.stringify({ name: e == null ? void 0 : e.name, message: e == null ? void 0 : e.message }) : e;
|
|
2588
|
+
var Nc = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await $u(t, r));
|
|
2589
|
+
var $u = async (e, t) => {
|
|
2593
2590
|
var n;
|
|
2594
|
-
let r =
|
|
2595
|
-
return
|
|
2591
|
+
let r = ya(t), a = Wo(t), o = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
|
|
2592
|
+
return S(s({}, r && { "Available Video Devices (by label)": await Tc(), "Active Video Device (by label)": await Rc(t), "Camera Capabilities": a, "Camera Settings": o }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
2596
2593
|
};
|
|
2597
|
-
var
|
|
2594
|
+
var Bc = (e) => {
|
|
2598
2595
|
e == null || e("Dynamic Flow - Camera Orientation Lock Overlay Shown", {});
|
|
2599
2596
|
};
|
|
2600
|
-
var
|
|
2597
|
+
var zc = (e) => {
|
|
2601
2598
|
e == null || e("Dynamic Flow - Camera Orientation Locked", {});
|
|
2602
2599
|
};
|
|
2603
|
-
var
|
|
2600
|
+
var jc = (e, t) => {
|
|
2604
2601
|
let r = (0, ot.useCallback)(() => {
|
|
2605
|
-
window.screen.orientation && "lock" in window.screen.orientation && typeof window.screen.orientation.lock == "function" && window.screen.orientation.lock("portrait").then(() =>
|
|
2602
|
+
window.screen.orientation && "lock" in window.screen.orientation && typeof window.screen.orientation.lock == "function" && window.screen.orientation.lock("portrait").then(() => zc(t)).catch($o);
|
|
2606
2603
|
}, [t]), a = (0, ot.useCallback)(() => {
|
|
2607
2604
|
var c, d, m;
|
|
2608
2605
|
return (m = (d = (c = window == null ? void 0 : window.screen) == null ? void 0 : c.orientation) == null ? void 0 : d.unlock) == null ? void 0 : m.call(d);
|
|
@@ -2610,13 +2607,13 @@ var require_main_min = __commonJS({
|
|
|
2610
2607
|
setTimeout(() => {
|
|
2611
2608
|
e && !Kt.default.isFullscreen && Kt.default.isEnabled && Kt.default.request(document.documentElement, { navigationUI: "show" }).then(() => {
|
|
2612
2609
|
r();
|
|
2613
|
-
}).catch(
|
|
2610
|
+
}).catch($o);
|
|
2614
2611
|
}, 100);
|
|
2615
2612
|
}, [e, r]), n = (0, ot.useCallback)(() => {
|
|
2616
|
-
Kt.default.isFullscreen && Kt.default.exit().catch(
|
|
2613
|
+
Kt.default.isFullscreen && Kt.default.exit().catch($o), a();
|
|
2617
2614
|
}, [a]), i = (0, ot.useCallback)((c) => {
|
|
2618
2615
|
var d, m;
|
|
2619
|
-
(d = c == null ? void 0 : c.target) != null && d.type.includes("landscape") && (m = window.screen) != null && m.orientation &&
|
|
2616
|
+
(d = c == null ? void 0 : c.target) != null && d.type.includes("landscape") && (m = window.screen) != null && m.orientation && Bc(t);
|
|
2620
2617
|
}, [t]);
|
|
2621
2618
|
return (0, ot.useEffect)(() => {
|
|
2622
2619
|
var c, d;
|
|
@@ -2626,36 +2623,36 @@ var require_main_min = __commonJS({
|
|
|
2626
2623
|
};
|
|
2627
2624
|
}, [n, i, e]), { enterFullScreen: o, exitFullScreen: n };
|
|
2628
2625
|
};
|
|
2629
|
-
var
|
|
2626
|
+
var $o = () => {
|
|
2630
2627
|
};
|
|
2631
|
-
var
|
|
2632
|
-
var
|
|
2633
|
-
let [t, r] = (0,
|
|
2634
|
-
(0,
|
|
2628
|
+
var ha = require("react");
|
|
2629
|
+
var Vc = (e) => {
|
|
2630
|
+
let [t, r] = (0, ha.useState)(), a = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
|
|
2631
|
+
(0, ha.useEffect)(() => {
|
|
2635
2632
|
o(e).then(r);
|
|
2636
2633
|
}, [e]);
|
|
2637
2634
|
let o = async (n) => {
|
|
2638
2635
|
if (n === "back") {
|
|
2639
|
-
let i = (await
|
|
2636
|
+
let i = (await Lc()).find(Ic);
|
|
2640
2637
|
if (i != null && i.deviceId)
|
|
2641
|
-
return
|
|
2638
|
+
return S(s({}, a), { deviceId: { exact: i.deviceId } });
|
|
2642
2639
|
}
|
|
2643
2640
|
return a;
|
|
2644
2641
|
};
|
|
2645
2642
|
return { videoConstraints: t };
|
|
2646
2643
|
};
|
|
2647
|
-
var
|
|
2644
|
+
var ga = require("react");
|
|
2648
2645
|
var J = require("react/jsx-runtime");
|
|
2649
|
-
var
|
|
2650
|
-
var
|
|
2651
|
-
var
|
|
2652
|
-
var
|
|
2653
|
-
var
|
|
2654
|
-
var
|
|
2655
|
-
var
|
|
2656
|
-
function
|
|
2657
|
-
let i = (0,
|
|
2658
|
-
(0,
|
|
2646
|
+
var _u = 92;
|
|
2647
|
+
var Uc = 120;
|
|
2648
|
+
var Ku = 40;
|
|
2649
|
+
var Ju = 32;
|
|
2650
|
+
var Xu = 48;
|
|
2651
|
+
var Yu = 40;
|
|
2652
|
+
var Hc = 800;
|
|
2653
|
+
function Zu({ overlay: e, outline: t, imageUrl: r, title: a, instructions: o, reviewInstructions: n }) {
|
|
2654
|
+
let i = (0, ga.useRef)(null);
|
|
2655
|
+
(0, ga.useEffect)(() => {
|
|
2659
2656
|
let y = Ke(() => {
|
|
2660
2657
|
var u;
|
|
2661
2658
|
if ((u = i.current) != null && u.innerHTML) {
|
|
@@ -2665,28 +2662,28 @@ var require_main_min = __commonJS({
|
|
|
2665
2662
|
}, 100);
|
|
2666
2663
|
return window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
2667
2664
|
});
|
|
2668
|
-
let c = (r ?
|
|
2665
|
+
let c = (r ? Ku : 0) + (a ? Ju : 0) + (o ? Xu : 0), d = (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;
|
|
2669
2666
|
if (n) {
|
|
2670
|
-
c = m -
|
|
2671
|
-
let y =
|
|
2667
|
+
c = m - Uc, d = (0, J.jsx)("small", { className: "camera-capture-instructions", children: n });
|
|
2668
|
+
let y = Uc + Yu;
|
|
2672
2669
|
m < y && (d = (0, J.jsx)(J.Fragment, {}));
|
|
2673
2670
|
}
|
|
2674
|
-
let p = { x: "50%", y: "5%", width: `min(90%, ${
|
|
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",
|
|
2671
|
+
let p = { x: "50%", y: "5%", width: `min(90%, ${Hc}px)`, height: `calc(90% - ${m}px)`, style: { transform: `translateX(max(-45%, -${Hc / 2}px))` } }, h = { style: { left: "5%", top: `calc(100% - ${m}px - 5%)`, height: `calc(${c}px + 5%)`, width: "90%" } };
|
|
2672
|
+
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", S(s({ className: "camera-capture-text-and-image-container" }, h), { children: d })) })] });
|
|
2676
2673
|
}
|
|
2677
|
-
var
|
|
2678
|
-
var
|
|
2679
|
-
function
|
|
2680
|
-
let [m, p] = (0, oe.useState)("CAPTURE"), [h, y] = (0, oe.useState)(), [u, l] = (0, oe.useState)(false), [f, w] = (0, oe.useState)(false), [
|
|
2674
|
+
var _o = Zu;
|
|
2675
|
+
var fe = require("react/jsx-runtime");
|
|
2676
|
+
function Qu({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: a = "", title: o = "", instructions: n = "", showReview: i = false, onCapture: c, onEvent: d }) {
|
|
2677
|
+
let [m, p] = (0, oe.useState)("CAPTURE"), [h, y] = (0, oe.useState)(), [u, l] = (0, oe.useState)(false), [f, w] = (0, oe.useState)(false), [C, F] = (0, oe.useState)(), g = (0, oe.useRef)(null), { videoConstraints: v } = Vc(e), O = (0, oe.useMemo)(() => !!(Zn() && m === "CAPTURE"), [m]), { enterFullScreen: x, exitFullScreen: M } = jc(O, d), E = (0, qc.useIntl)(), P = (0, oe.useCallback)(async () => {
|
|
2681
2678
|
var W, X, ke, nt, br, xr;
|
|
2682
2679
|
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) {
|
|
2683
2680
|
(br = (nt = g == null ? void 0 : g.current) == null ? void 0 : nt.video) == null || br.pause();
|
|
2684
|
-
let it = await
|
|
2681
|
+
let it = await Dc((xr = g == null ? void 0 : g.current) == null ? void 0 : xr.video);
|
|
2685
2682
|
it == null || it.toBlob((xt) => {
|
|
2686
2683
|
if (xt)
|
|
2687
2684
|
if (i) {
|
|
2688
|
-
let
|
|
2689
|
-
F({ source:
|
|
2685
|
+
let Aa = window.URL.createObjectURL(xt);
|
|
2686
|
+
F({ source: Aa, blob: xt }), p("REVIEW");
|
|
2690
2687
|
} else
|
|
2691
2688
|
c(xt);
|
|
2692
2689
|
}, "image/jpeg", 0.92);
|
|
@@ -2695,69 +2692,69 @@ var require_main_min = __commonJS({
|
|
|
2695
2692
|
if (p("ERROR"), W instanceof DOMException)
|
|
2696
2693
|
switch (W == null ? void 0 : W.name) {
|
|
2697
2694
|
case "NotAllowedError":
|
|
2698
|
-
y({ title: E.formatMessage(
|
|
2695
|
+
y({ title: E.formatMessage(ye.noCameraAccessTitle), description: E.formatMessage(ye.noCameraAccessParagraph), actionButton: E.formatMessage(ye.noCameraAccessAction), onAction: B }), fa("Dynamic Flow - Camera Permission Denied", d, W);
|
|
2699
2696
|
return;
|
|
2700
2697
|
case "NotFoundError":
|
|
2701
2698
|
case "OverconstrainedError":
|
|
2702
2699
|
case "AbortError":
|
|
2703
2700
|
case "NotReadableError":
|
|
2704
|
-
y({ title: E.formatMessage(
|
|
2701
|
+
y({ title: E.formatMessage(ye.cameraConnectionIssueTitle), description: E.formatMessage(ye.cameraConnectionIssueParagraph), actionButton: E.formatMessage(ye.cameraConnectionIssueAction), onAction: B }), fa("Dynamic Flow - Camera Not Accessible", d, W);
|
|
2705
2702
|
return;
|
|
2706
2703
|
}
|
|
2707
|
-
y({ title: E.formatMessage(
|
|
2704
|
+
y({ title: E.formatMessage(ye.cameraNotSupportedTitle), description: E.formatMessage(ye.cameraNotSupportedParagraph) }), fa("Dynamic Flow - Camera Not Supported", d, W);
|
|
2708
2705
|
}, [E, d]), U = (0, oe.useCallback)((W) => {
|
|
2709
|
-
x(), w(true), l(
|
|
2706
|
+
x(), w(true), l(Ec(W)), Nc(d, { direction: e }, W);
|
|
2710
2707
|
}, [l, d, e, x]), ee = () => {
|
|
2711
|
-
c((
|
|
2708
|
+
c((C == null ? void 0 : C.blob) || null);
|
|
2712
2709
|
}, A = () => {
|
|
2713
2710
|
p("CAPTURE"), F(void 0);
|
|
2714
2711
|
}, B = () => p("CAPTURE");
|
|
2715
2712
|
(0, oe.useEffect)(() => {
|
|
2716
2713
|
m !== "CAPTURE" && M();
|
|
2717
2714
|
}, [m, M]);
|
|
2718
|
-
let k = (0,
|
|
2715
|
+
let k = (0, fe.jsxs)("div", { className: "camera-capture", children: [v && (0, fe.jsx)(Gc.default, { ref: g, audio: false, videoConstraints: v, mirrored: u, onUserMediaError: D, onUserMedia: U }), (0, fe.jsx)(_o, { overlay: t, outline: r, imageUrl: a, title: o, instructions: n }), O && (0, fe.jsx)(qo, {}), f && (0, fe.jsx)(Uo, { onCapture: () => {
|
|
2719
2716
|
P();
|
|
2720
|
-
} })] }), ie = (0,
|
|
2721
|
-
return (0,
|
|
2717
|
+
} })] }), ie = (0, fe.jsxs)("div", { className: "camera-capture", children: [(0, fe.jsx)("img", { className: "review-image", src: C == null ? void 0 : C.source, alt: "" }), (0, fe.jsx)(_o, { overlay: t, imageUrl: a, title: o, instructions: n, reviewInstructions: E.formatMessage(ye.reviewInstructions) }), (0, fe.jsx)(Ho, { onSubmit: ee, onRetry: A })] });
|
|
2718
|
+
return (0, fe.jsxs)("section", { children: [m === "CAPTURE" && k, m === "REVIEW" && ie, m === "ERROR" && h && (0, fe.jsx)(Go, s({}, h))] });
|
|
2722
2719
|
}
|
|
2723
|
-
var
|
|
2724
|
-
var
|
|
2725
|
-
function
|
|
2720
|
+
var Ko = Qu;
|
|
2721
|
+
var $c = require("react/jsx-runtime");
|
|
2722
|
+
function ep(e) {
|
|
2726
2723
|
return new Promise((t, r) => {
|
|
2727
2724
|
let a = new FileReader();
|
|
2728
2725
|
a.onloadend = () => t(a.result), a.readAsDataURL(e);
|
|
2729
2726
|
});
|
|
2730
2727
|
}
|
|
2731
|
-
function
|
|
2732
|
-
let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i =
|
|
2733
|
-
(0,
|
|
2728
|
+
function tp(e) {
|
|
2729
|
+
let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i = Wc(t), c = rp(t), d = ap(t), { title: m, image: p, cameraConfig: h } = c, { assets: y, direction: u, instructions: l } = h || {}, { overlay: f, outline: w } = y || {}, { url: C } = p || {}, [F, g] = (0, wa.useState)(false);
|
|
2730
|
+
(0, wa.useEffect)(() => {
|
|
2734
2731
|
F && o(d);
|
|
2735
2732
|
}, [r]);
|
|
2736
2733
|
let v = async (O) => {
|
|
2737
2734
|
let { $id: x } = c;
|
|
2738
2735
|
if (O) {
|
|
2739
|
-
let M = await
|
|
2736
|
+
let M = await ep(O), E = { [x || ""]: M };
|
|
2740
2737
|
g(true), a({ model: E, formSchema: i, triggerModel: M, triggerSchema: c });
|
|
2741
2738
|
}
|
|
2742
2739
|
};
|
|
2743
|
-
return (0,
|
|
2740
|
+
return (0, $c.jsx)(Ko, { overlay: f, outline: w, title: m, imageUrl: C, instructions: l, direction: u, onEvent: n, onCapture: (O) => {
|
|
2744
2741
|
v(O);
|
|
2745
2742
|
} });
|
|
2746
2743
|
}
|
|
2747
|
-
var
|
|
2748
|
-
function
|
|
2744
|
+
var Sa = tp;
|
|
2745
|
+
function Wc(e) {
|
|
2749
2746
|
let r = zr(e.schemas || [])[0];
|
|
2750
2747
|
if (!r || !Le(r))
|
|
2751
2748
|
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...");
|
|
2752
2749
|
return r;
|
|
2753
2750
|
}
|
|
2754
|
-
function
|
|
2755
|
-
let t =
|
|
2751
|
+
function rp(e) {
|
|
2752
|
+
let t = Wc(e), r = Object.values(t.properties)[0];
|
|
2756
2753
|
if (!r)
|
|
2757
2754
|
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...");
|
|
2758
2755
|
return r;
|
|
2759
2756
|
}
|
|
2760
|
-
function
|
|
2757
|
+
function ap(e) {
|
|
2761
2758
|
var t, r;
|
|
2762
2759
|
if (!e.schemas || ((t = zr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2763
2760
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
@@ -2765,119 +2762,119 @@ var require_main_min = __commonJS({
|
|
|
2765
2762
|
throw new Error("camera step expects 1 action");
|
|
2766
2763
|
return e.actions[0];
|
|
2767
2764
|
}
|
|
2768
|
-
var
|
|
2769
|
-
var
|
|
2770
|
-
var
|
|
2771
|
-
var
|
|
2772
|
-
var
|
|
2765
|
+
var Jc = require("react-intl");
|
|
2766
|
+
var _c = require("react-intl");
|
|
2767
|
+
var Sr = (0, _c.defineMessages)({ title: { id: "dynamicFlows.ExternalConfirmation.title", defaultMessage: "Please confirm", description: "Heading for the confirmation screen." }, description: { id: "dynamicFlows.ExternalConfirmation.description", defaultMessage: "Please confirm you want to open **{origin}** in a new browser tab.", description: "Description for the confirmation screen." }, open: { id: "dynamicFlows.ExternalConfirmation.open", defaultMessage: "Open in new tab", description: "Button text confirming opening a new browser tab." }, cancel: { id: "dynamicFlows.ExternalConfirmation.cancel", defaultMessage: "Cancel", description: "Button text rejecting opening a new browser tab." } });
|
|
2768
|
+
var Xc = require("react/jsx-runtime");
|
|
2769
|
+
var Kc = () => {
|
|
2773
2770
|
};
|
|
2774
|
-
var
|
|
2775
|
-
let { formatMessage: r } = (0,
|
|
2776
|
-
return (0,
|
|
2771
|
+
var op = ({ url: e, onClose: t }) => {
|
|
2772
|
+
let { formatMessage: r } = (0, Jc.useIntl)();
|
|
2773
|
+
return (0, Xc.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(Sr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(Sr.description, { origin: np(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(Sr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(Sr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (a) => {
|
|
2777
2774
|
a.url && window.open(a.url, "_blank"), t();
|
|
2778
|
-
}, onModelChange:
|
|
2775
|
+
}, onModelChange: Kc, onPersistAsync: Kc });
|
|
2779
2776
|
};
|
|
2780
|
-
var Ca =
|
|
2781
|
-
function
|
|
2777
|
+
var Ca = op;
|
|
2778
|
+
function np(e) {
|
|
2782
2779
|
try {
|
|
2783
2780
|
return new URL(e).origin;
|
|
2784
2781
|
} catch (t) {
|
|
2785
2782
|
return e;
|
|
2786
2783
|
}
|
|
2787
2784
|
}
|
|
2788
|
-
var
|
|
2789
|
-
var
|
|
2785
|
+
var Yc = require("@transferwise/components");
|
|
2786
|
+
var Zc = require("@transferwise/icons");
|
|
2790
2787
|
var Jt = require("react/jsx-runtime");
|
|
2791
|
-
function
|
|
2788
|
+
function ip({ title: e, action: t, onAction: r }) {
|
|
2792
2789
|
return (0, Jt.jsxs)("a", { href: "/", className: "df-back-btn", "aria-label": e, onClick: (a) => {
|
|
2793
|
-
a.preventDefault(), r(
|
|
2794
|
-
}, children: [(0, Jt.jsx)("span", { className: "sr-only", children: e }), (0, Jt.jsx)(
|
|
2790
|
+
a.preventDefault(), r(S(s({}, t), { skipValidation: true }));
|
|
2791
|
+
}, children: [(0, Jt.jsx)("span", { className: "sr-only", children: e }), (0, Jt.jsx)(Yc.Avatar, { type: "icon", children: (0, Jt.jsx)(Zc.ArrowLeft, { size: "24" }) })] });
|
|
2795
2792
|
}
|
|
2796
|
-
var
|
|
2793
|
+
var Qc = ip;
|
|
2797
2794
|
var Pe = require("react/jsx-runtime");
|
|
2798
2795
|
function Kr(e) {
|
|
2799
2796
|
var d, m, p;
|
|
2800
|
-
let { step: t, globalError: r, onAction: a } = e, o = (d = t == null ? void 0 : t.external) == null ? void 0 : d.url, n = ((m = t == null ? void 0 : t.navigation) == null ? void 0 : m.back) || ((p = t == null ? void 0 : t.navigation) == null ? void 0 : p.backButton), { requiresManualTrigger: i, dismissConfirmation: c } =
|
|
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 }) :
|
|
2797
|
+
let { step: t, globalError: r, onAction: a } = e, o = (d = t == null ? void 0 : t.external) == null ? void 0 : d.url, n = ((m = t == null ? void 0 : t.navigation) == null ? void 0 : m.back) || ((p = t == null ? void 0 : t.navigation) == null ? void 0 : p.backButton), { requiresManualTrigger: i, dismissConfirmation: c } = ti(o);
|
|
2798
|
+
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 }) : Xn(t) ? (0, Pe.jsx)(Sa, S(s({}, e), { step: t })) : (0, Pe.jsxs)(Pe.Fragment, { children: [n && (0, Pe.jsx)(Qc, S(s({}, n), { onAction: a })), r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, Pe.jsx)(pa, S(s({}, e), { stepSpecification: t }))] });
|
|
2802
2799
|
}
|
|
2803
|
-
var
|
|
2804
|
-
var
|
|
2805
|
-
function
|
|
2806
|
-
let t = (0,
|
|
2800
|
+
var em = require("react");
|
|
2801
|
+
var sp = 1e3;
|
|
2802
|
+
function tm(e) {
|
|
2803
|
+
let t = (0, em.useRef)(/* @__PURE__ */ new Map()), r = (a) => {
|
|
2807
2804
|
if (t.current.has(a))
|
|
2808
2805
|
return t.current.get(a);
|
|
2809
|
-
let o = Ke((n, i, c) => e(n, i, c),
|
|
2806
|
+
let o = Ke((n, i, c) => e(n, i, c), sp);
|
|
2810
2807
|
return t.current.set(a, o), o;
|
|
2811
2808
|
};
|
|
2812
2809
|
return function(a, o, n, i) {
|
|
2813
2810
|
let c = r(a);
|
|
2814
|
-
c(a, o, n), (!i || !
|
|
2811
|
+
c(a, o, n), (!i || !cp(i)) && c.flush();
|
|
2815
2812
|
};
|
|
2816
2813
|
}
|
|
2817
|
-
var
|
|
2814
|
+
var cp = (e) => dt(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2818
2815
|
var Xt = require("react");
|
|
2819
|
-
var
|
|
2816
|
+
var om = (e) => {
|
|
2820
2817
|
var u, l;
|
|
2821
|
-
let [t, r] = (0, Xt.useState)((u = e == null ? void 0 : e.errors) == null ? void 0 : u.validation), [a, o] = (0, Xt.useState)((l = e == null ? void 0 : e.errors) == null ? void 0 : l.error), [n, i] = (0, Xt.useState)({ step: e || void 0, models: e != null && e.model ?
|
|
2822
|
-
var
|
|
2823
|
-
i((O) => ({ step: f, models: f.model ?
|
|
2824
|
-
}, h = (f, w,
|
|
2818
|
+
let [t, r] = (0, Xt.useState)((u = e == null ? void 0 : e.errors) == null ? void 0 : u.validation), [a, o] = (0, Xt.useState)((l = e == null ? void 0 : e.errors) == null ? void 0 : l.error), [n, i] = (0, Xt.useState)({ step: e || void 0, models: e != null && e.model ? rm(e.model, am(e)) : {}, etag: void 0 }), { step: c, models: d, etag: m } = n, p = (f, w) => {
|
|
2819
|
+
var C, F, g, v;
|
|
2820
|
+
i((O) => ({ step: f, models: f.model ? rm(f.model, am(f)) : O.models, etag: w })), r((F = (C = f == null ? void 0 : f.errors) == null ? void 0 : C.validation) != null ? F : null), o((v = (g = f == null ? void 0 : f.errors) == null ? void 0 : g.error) != null ? v : null);
|
|
2821
|
+
}, h = (f, w, C) => {
|
|
2825
2822
|
i((F) => {
|
|
2826
|
-
let g =
|
|
2827
|
-
return
|
|
2823
|
+
let g = S(s({}, F.models), { [f]: w }), v = { step: F.step, models: g, etag: F.etag };
|
|
2824
|
+
return C(g), v;
|
|
2828
2825
|
});
|
|
2829
|
-
}, y = (0, Xt.useMemo)(() =>
|
|
2826
|
+
}, y = (0, Xt.useMemo)(() => lp(d, mp(c)), [d, c]);
|
|
2830
2827
|
return { formErrors: t, globalError: a, step: c, models: d, etag: m, modelIsValid: y, setFormErrors: r, setGlobalError: o, setStepAndEtag: p, setSchemaModel: h };
|
|
2831
2828
|
};
|
|
2832
|
-
var
|
|
2833
|
-
var
|
|
2834
|
-
var
|
|
2829
|
+
var rm = (e, t = []) => t.reduce((r, a) => (a.$id || console.warn("Schema without $id property found."), S(s({}, r), { [a.$id || ""]: ce(e, a) || {} })), {});
|
|
2830
|
+
var am = (e) => [...Fa((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
|
|
2831
|
+
var Fa = (e) => e.flatMap((t) => {
|
|
2835
2832
|
switch (t.type) {
|
|
2836
2833
|
case "columns":
|
|
2837
|
-
return [...
|
|
2834
|
+
return [...Fa([...t.left, ...t.right])];
|
|
2838
2835
|
case "box":
|
|
2839
|
-
return
|
|
2836
|
+
return Fa(t.components);
|
|
2840
2837
|
case "form":
|
|
2841
|
-
return
|
|
2838
|
+
return nm(t.schema) ? [t.schema] : [];
|
|
2842
2839
|
default:
|
|
2843
2840
|
return [];
|
|
2844
2841
|
}
|
|
2845
2842
|
});
|
|
2846
|
-
var
|
|
2847
|
-
var
|
|
2843
|
+
var mp = (e) => [...Jo((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...Fa((e == null ? void 0 : e.layout) || [])];
|
|
2844
|
+
var Jo = (e) => e.flatMap((t) => {
|
|
2848
2845
|
switch (t.type) {
|
|
2849
2846
|
case "columns":
|
|
2850
|
-
return [...
|
|
2847
|
+
return [...Jo([...t.left, ...t.right])];
|
|
2851
2848
|
case "box":
|
|
2852
|
-
return
|
|
2849
|
+
return Jo(t.components);
|
|
2853
2850
|
case "form":
|
|
2854
|
-
return [
|
|
2851
|
+
return [dp(t)];
|
|
2855
2852
|
default:
|
|
2856
2853
|
return [];
|
|
2857
2854
|
}
|
|
2858
2855
|
}).filter(Boolean);
|
|
2859
|
-
var
|
|
2860
|
-
var
|
|
2861
|
-
var
|
|
2862
|
-
var
|
|
2863
|
-
var
|
|
2864
|
-
var
|
|
2865
|
-
function
|
|
2866
|
-
let r = s({ size:
|
|
2856
|
+
var lp = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !G(e[r.$id || ""] || {}, r))));
|
|
2857
|
+
var dp = (e) => e.schema && !nm(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2858
|
+
var nm = (e) => e !== void 0 && typeof e == "object" && !Object.hasOwnProperty.call(e, "$ref");
|
|
2859
|
+
var ba = require("@transferwise/components");
|
|
2860
|
+
var im = require("react");
|
|
2861
|
+
var cm = require("react/jsx-runtime");
|
|
2862
|
+
function sm(e, t) {
|
|
2863
|
+
let r = s({ size: ba.Size.EXTRA_LARGE, initial: true, submission: false }, e), [a, o] = (0, im.useState)(t), i = r.initial && a === "initial" || r.submission && a === "submission" ? (0, cm.jsx)(ba.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
|
|
2867
2864
|
return { isLoading: a !== "idle", setLoadingState: o, loader: i };
|
|
2868
2865
|
}
|
|
2869
|
-
var
|
|
2870
|
-
var
|
|
2871
|
-
var
|
|
2872
|
-
var
|
|
2873
|
-
function
|
|
2874
|
-
let { formatMessage: t } = (0,
|
|
2875
|
-
return (0,
|
|
2866
|
+
var um = require("react");
|
|
2867
|
+
var xa = require("@transferwise/components");
|
|
2868
|
+
var mm = require("react-intl");
|
|
2869
|
+
var dm = require("react/jsx-runtime");
|
|
2870
|
+
function lm({ onDismiss: e }) {
|
|
2871
|
+
let { formatMessage: t } = (0, mm.useIntl)();
|
|
2872
|
+
return (0, dm.jsx)(xa.Alert, { action: { text: t(Wt.retry), href: window.location.href }, message: t(Wt.errorAlert), type: xa.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2876
2873
|
}
|
|
2877
2874
|
var Yt = require("react/jsx-runtime");
|
|
2878
|
-
var
|
|
2875
|
+
var up = () => {
|
|
2879
2876
|
};
|
|
2880
|
-
var
|
|
2877
|
+
var Xo = class extends um.Component {
|
|
2881
2878
|
constructor(r) {
|
|
2882
2879
|
super(r);
|
|
2883
2880
|
this.handleErrorReset = () => {
|
|
@@ -2889,36 +2886,36 @@ var require_main_min = __commonJS({
|
|
|
2889
2886
|
return { hasError: true, isFatalError: true };
|
|
2890
2887
|
}
|
|
2891
2888
|
componentDidCatch(r) {
|
|
2892
|
-
let { onError: a =
|
|
2889
|
+
let { onError: a = up } = this.props;
|
|
2893
2890
|
a(r);
|
|
2894
2891
|
}
|
|
2895
2892
|
render() {
|
|
2896
2893
|
let { children: r } = this.props, { hasError: a, isFatalError: o } = this.state;
|
|
2897
|
-
return (0, Yt.jsxs)(Yt.Fragment, { children: [a && (0, Yt.jsx)(
|
|
2894
|
+
return (0, Yt.jsxs)(Yt.Fragment, { children: [a && (0, Yt.jsx)(lm, { onDismiss: this.handleErrorReset }), !o && r] });
|
|
2898
2895
|
}
|
|
2899
2896
|
};
|
|
2900
|
-
var
|
|
2901
|
-
var
|
|
2897
|
+
var Yo = Xo;
|
|
2898
|
+
var pm = async (e, t) => {
|
|
2902
2899
|
switch (t) {
|
|
2903
2900
|
case "step":
|
|
2904
|
-
return
|
|
2901
|
+
return ym(e);
|
|
2905
2902
|
case "exit":
|
|
2906
|
-
return
|
|
2903
|
+
return hm(e);
|
|
2907
2904
|
case "action":
|
|
2908
|
-
return
|
|
2905
|
+
return fm(e);
|
|
2909
2906
|
default:
|
|
2910
2907
|
throw new Error("Unsupported X-Df-Response-Type. Allowed values are 'step', 'action', 'exit'.");
|
|
2911
2908
|
}
|
|
2912
2909
|
};
|
|
2913
|
-
var
|
|
2914
|
-
let t = await
|
|
2910
|
+
var ym = async (e) => {
|
|
2911
|
+
let t = await Cr(e);
|
|
2915
2912
|
if (!R(t))
|
|
2916
2913
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2917
2914
|
let r = e.headers.get("etag") || void 0;
|
|
2918
2915
|
return { type: "step", step: t, etag: r };
|
|
2919
2916
|
};
|
|
2920
|
-
var
|
|
2921
|
-
let t = await
|
|
2917
|
+
var fm = async (e) => {
|
|
2918
|
+
let t = await Cr(e);
|
|
2922
2919
|
if (!R(t))
|
|
2923
2920
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2924
2921
|
if (!R(t.action))
|
|
@@ -2926,58 +2923,58 @@ var require_main_min = __commonJS({
|
|
|
2926
2923
|
let r = t.action;
|
|
2927
2924
|
return r.exit === true && R(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
|
|
2928
2925
|
};
|
|
2929
|
-
var
|
|
2930
|
-
var
|
|
2926
|
+
var hm = async (e) => ({ type: "exit", result: await Zo(e) });
|
|
2927
|
+
var gm = async (e) => {
|
|
2931
2928
|
var r, a, o;
|
|
2932
|
-
if (
|
|
2929
|
+
if (Qo(e), (r = e.headers) != null && r.has("X-Df-Response-Type")) {
|
|
2933
2930
|
let n = e.headers.get("X-Df-Response-Type");
|
|
2934
|
-
return
|
|
2931
|
+
return pm(e, n);
|
|
2935
2932
|
}
|
|
2936
2933
|
if ((a = e.headers) != null && a.has("X-Df-ResponseType")) {
|
|
2937
2934
|
let n = e.headers.get("X-Df-ResponseType");
|
|
2938
|
-
return
|
|
2935
|
+
return pm(e, n);
|
|
2939
2936
|
}
|
|
2940
2937
|
if ((o = e.headers) != null && o.has("X-Df-Exit"))
|
|
2941
|
-
return
|
|
2942
|
-
let t = await
|
|
2943
|
-
return R(t) && t.action ?
|
|
2938
|
+
return hm(e);
|
|
2939
|
+
let t = await Cr(e.clone());
|
|
2940
|
+
return R(t) && t.action ? fm(e) : ym(e);
|
|
2944
2941
|
};
|
|
2945
|
-
var
|
|
2946
|
-
|
|
2947
|
-
let t = await
|
|
2942
|
+
var wm = async (e) => {
|
|
2943
|
+
Qo(e);
|
|
2944
|
+
let t = await Cr(e);
|
|
2948
2945
|
if (!R(t))
|
|
2949
2946
|
throw new Error("Incorrect response body in error response. Expected an object.");
|
|
2950
2947
|
if (!t.refreshFormUrl && !t.refreshUrl && !t.validation && !t.error)
|
|
2951
2948
|
throw t;
|
|
2952
2949
|
return t;
|
|
2953
2950
|
};
|
|
2954
|
-
var
|
|
2955
|
-
|
|
2956
|
-
let t = await
|
|
2951
|
+
var Zo = async (e) => {
|
|
2952
|
+
Qo(e);
|
|
2953
|
+
let t = await Cr(e);
|
|
2957
2954
|
return R(t) ? t : null;
|
|
2958
2955
|
};
|
|
2959
|
-
var
|
|
2956
|
+
var Cr = async (e) => {
|
|
2960
2957
|
try {
|
|
2961
2958
|
return await e.json();
|
|
2962
2959
|
} catch (t) {
|
|
2963
2960
|
return null;
|
|
2964
2961
|
}
|
|
2965
2962
|
};
|
|
2966
|
-
var
|
|
2967
|
-
if (!
|
|
2963
|
+
var Qo = (e) => {
|
|
2964
|
+
if (!pp(e))
|
|
2968
2965
|
throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
|
|
2969
2966
|
if (e.bodyUsed)
|
|
2970
2967
|
throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
|
|
2971
2968
|
};
|
|
2972
|
-
var
|
|
2969
|
+
var pp = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2973
2970
|
var We = require("react/jsx-runtime");
|
|
2974
|
-
var
|
|
2971
|
+
var Sm = () => {
|
|
2975
2972
|
};
|
|
2976
|
-
var
|
|
2977
|
-
let { locale: h } = (0, Cm.useIntl)(), { formErrors: y, globalError: u, step: l, models: f, etag: w, modelIsValid:
|
|
2973
|
+
var yp = ({ flowId: e, httpClient: t, initialAction: r, initialStep: a, loaderConfig: o, displayStepTitle: n = true, features: i, onCompletion: c, onError: d, onEvent: m = Sm, onLog: p = Sm }) => {
|
|
2974
|
+
let { locale: h } = (0, Cm.useIntl)(), { formErrors: y, globalError: u, step: l, models: f, etag: w, modelIsValid: C, setFormErrors: F, setGlobalError: g, setStepAndEtag: v, setSchemaModel: O } = om(a), [x, M] = (0, Me.useState)(false), { isLoading: E, loader: P, setLoadingState: D } = sm(o, a ? "idle" : "initial"), U = mt("critical", p, e, (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key)), ee = (0, Me.useMemo)(() => {
|
|
2978
2975
|
var b;
|
|
2979
2976
|
return s({ flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key) }, (b = l == null ? void 0 : l.analytics) != null ? b : {});
|
|
2980
|
-
}, [e, l]), A = (0, Me.useMemo)(() =>
|
|
2977
|
+
}, [e, l]), A = (0, Me.useMemo)(() => Ia(m, ee), [m, ee]), B = (0, Me.useCallback)(({ action: b, data: q, etag: T }) => {
|
|
2981
2978
|
let { url: te, method: st = "POST" } = b;
|
|
2982
2979
|
return t(te != null ? te : "", { method: st, headers: s({ "accept-language": h, "Content-Type": "application/json" }, T ? { "If-None-Match": T } : {}), credentials: "include", body: st === "GET" ? void 0 : JSON.stringify(q) });
|
|
2983
2980
|
}, [t, h]), k = async (b, q = {}) => {
|
|
@@ -3001,9 +2998,9 @@ var require_main_min = __commonJS({
|
|
|
3001
2998
|
it(te, "Error fetching refresh step");
|
|
3002
2999
|
}
|
|
3003
3000
|
}, W = async (b, q) => {
|
|
3004
|
-
let T = await
|
|
3001
|
+
let T = await Zo(b);
|
|
3005
3002
|
ke(s(s({}, T), q));
|
|
3006
|
-
}, X =
|
|
3003
|
+
}, X = tm(ie), ke = (0, Me.useCallback)((b) => {
|
|
3007
3004
|
A("Dynamic Flow - Flow Finished", { result: "success" }), c(b);
|
|
3008
3005
|
}, [c, A]);
|
|
3009
3006
|
(0, Me.useEffect)(() => {
|
|
@@ -3021,11 +3018,11 @@ var require_main_min = __commonJS({
|
|
|
3021
3018
|
return;
|
|
3022
3019
|
}
|
|
3023
3020
|
if (!b.ok) {
|
|
3024
|
-
let te = await
|
|
3021
|
+
let te = await wm(b);
|
|
3025
3022
|
xr(te);
|
|
3026
3023
|
return;
|
|
3027
3024
|
}
|
|
3028
|
-
let T = await
|
|
3025
|
+
let T = await gm(b);
|
|
3029
3026
|
T.type === "action" ? k(T.action, T.action.data) : T.type === "exit" ? ke(T.result) : br(T.step, T.etag, q);
|
|
3030
3027
|
} catch (T) {
|
|
3031
3028
|
it(T, "Error parsing fetch response", q, b.status);
|
|
@@ -3034,70 +3031,70 @@ var require_main_min = __commonJS({
|
|
|
3034
3031
|
v(b, q), D("idle"), T === "submission" ? (M(false), A("Dynamic Flow - Step Started", s({ stepId: b.id || b.key }, b == null ? void 0 : b.analytics))) : A("Dynamic Flow - Step Refreshed", { status: "success" });
|
|
3035
3032
|
}, xr = async (b) => {
|
|
3036
3033
|
let q = b.refreshUrl || b.refreshFormUrl;
|
|
3037
|
-
q && await ie(q,
|
|
3034
|
+
q && await ie(q, va(f), w), b.validation && F(b.validation), b.error && g(b.error), D("idle");
|
|
3038
3035
|
}, it = (b, q, T, te) => {
|
|
3039
3036
|
U("Error fetching", q), T === "refresh" && A("Dynamic Flow - Step Refreshed", { status: "failure" }), A("Dynamic Flow - Flow Finished", { status: "failure" }), d(b, te), D("idle");
|
|
3040
3037
|
}, xt = (b) => {
|
|
3041
3038
|
let { model: q, formSchema: T } = b, { $id: te = "" } = T;
|
|
3042
3039
|
g(null), $(q) || U("Invalid model on change", "onModelChange was called but the model argument is not an object"), O(te, q, (vr) => {
|
|
3043
|
-
|
|
3040
|
+
Aa(b, vr);
|
|
3044
3041
|
});
|
|
3045
|
-
},
|
|
3042
|
+
}, Aa = (b, q) => {
|
|
3046
3043
|
let { triggerSchema: T } = b;
|
|
3047
|
-
if (
|
|
3044
|
+
if (gp(b)) {
|
|
3048
3045
|
let te = T.refreshUrl || T.refreshFormUrl, st = (l == null ? void 0 : l.refreshUrl) || (l == null ? void 0 : l.refreshFormUrl), vr = te || st;
|
|
3049
|
-
vr && X(vr,
|
|
3046
|
+
vr && X(vr, va(q), w, T);
|
|
3050
3047
|
}
|
|
3051
|
-
},
|
|
3048
|
+
}, zm = async (b) => {
|
|
3052
3049
|
if (E || b.disabled)
|
|
3053
3050
|
return;
|
|
3054
3051
|
if (b.exit && !b.url) {
|
|
3055
3052
|
ke(b.result);
|
|
3056
3053
|
return;
|
|
3057
3054
|
}
|
|
3058
|
-
let { data: q, method: T, skipValidation: te } = b, st = s(s({},
|
|
3059
|
-
|
|
3055
|
+
let { data: q, method: T, skipValidation: te } = b, st = s(s({}, va(f)), q);
|
|
3056
|
+
hp(T) ? (F(null), te || M(true), (C || te) && await k(b, st)) : await k(b);
|
|
3060
3057
|
};
|
|
3061
|
-
return (0, We.jsx)(Dr, { flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key), onLog: p, children: (0, We.jsx)(Mr, { metadata: ee, onEvent: m, children: (0, We.jsx)(
|
|
3062
|
-
|
|
3058
|
+
return (0, We.jsx)(Dr, { flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key), onLog: p, children: (0, We.jsx)(Mr, { metadata: ee, onEvent: m, children: (0, We.jsx)(yn, { loading: E, children: (0, We.jsx)(wn, { httpClient: t, children: (0, We.jsx)(bn, { features: i, children: P !== null ? P : (0, We.jsx)(Kr, { step: l, model: va(f), submitted: x, globalError: u, formErrors: y, stepLayoutOptions: { displayStepTitle: n }, onAction: (b) => {
|
|
3059
|
+
zm(b);
|
|
3063
3060
|
}, onModelChange: xt }) }) }) }) }) });
|
|
3064
3061
|
};
|
|
3065
|
-
function
|
|
3066
|
-
return (0, We.jsx)(
|
|
3062
|
+
function fp(e) {
|
|
3063
|
+
return (0, We.jsx)(Yo, { onError: e.onError, children: (0, We.jsx)(yp, s({}, e)) });
|
|
3067
3064
|
}
|
|
3068
|
-
var
|
|
3069
|
-
var
|
|
3070
|
-
var
|
|
3071
|
-
var
|
|
3065
|
+
var en = fp;
|
|
3066
|
+
var va = (e) => Object.values(e).reduce((t, r) => s(s({}, t), r), {});
|
|
3067
|
+
var hp = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
3068
|
+
var gp = (e) => {
|
|
3072
3069
|
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);
|
|
3073
3070
|
return t !== "init" && c && (n() || i());
|
|
3074
3071
|
};
|
|
3075
3072
|
var Fr = require("react/jsx-runtime");
|
|
3076
|
-
function
|
|
3077
|
-
let t = s({ model: null, errors: null }, e), { baseUrl: r = "", onEvent: a =
|
|
3073
|
+
function wp(e) {
|
|
3074
|
+
let t = s({ model: null, errors: null }, e), { baseUrl: r = "", onEvent: a = Fm, onLog: o = Fm } = e;
|
|
3078
3075
|
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)) }) }) });
|
|
3079
3076
|
}
|
|
3080
|
-
var
|
|
3081
|
-
var
|
|
3082
|
-
};
|
|
3083
|
-
var
|
|
3084
|
-
var
|
|
3085
|
-
var
|
|
3086
|
-
var
|
|
3087
|
-
var
|
|
3088
|
-
var
|
|
3089
|
-
var
|
|
3090
|
-
var
|
|
3091
|
-
var
|
|
3092
|
-
var
|
|
3093
|
-
var
|
|
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" };
|
|
3095
|
-
var
|
|
3096
|
-
var
|
|
3097
|
-
var
|
|
3098
|
-
var
|
|
3099
|
-
var
|
|
3100
|
-
var
|
|
3077
|
+
var tn = wp;
|
|
3078
|
+
var Fm = () => {
|
|
3079
|
+
};
|
|
3080
|
+
var bm = { "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" };
|
|
3081
|
+
var xm = { "dynamicFlows.ArraySchema.addItem": "Save", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Save", "dynamicFlows.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.", "dynamicFlows.ArraySchema.minItemsError": "Please add at least {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Remove", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Try again", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Please check if it is connected and try again.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "We can't access your camera", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera not supported", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Enable camera access", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Enable camera access in your browser's settings to get going again.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "We can't access your camera", "dynamicFlows.CameraCapture.reviewInstructions": "Is your picture clear, readable and complete?", "dynamicFlows.CameraCapture.reviewRetry": "No, try again", "dynamicFlows.CameraCapture.reviewSubmit": "Yes, submit", "dynamicFlows.CameraCapture.rotatePhone.text": "Rotate your phone to portrait view to take a photo", "dynamicFlows.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.", "dynamicFlows.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.", "dynamicFlows.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Please enter at least {minLength} characters.", "dynamicFlows.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.", "dynamicFlows.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Please enter this in the correct format.", "dynamicFlows.ControlFeedback.patternDate": "Please enter a date in the corrrect format.", "dynamicFlows.ControlFeedback.required": "Please fill out this field.", "dynamicFlows.ControlFeedback.type": "Incorrect type", "dynamicFlows.DefaultErrorMessages.required": "Please fill out this field.", "dynamicFlows.DynamicExternal.retryTitle": "Reopen window", "dynamicFlows.DynamicParagraph.copied": "Copied to clipboard", "dynamicFlows.DynamicParagraph.copy": "Copy", "dynamicFlows.ErrorBoundary.errorAlert": "Oops. Something went wrong...", "dynamicFlows.ErrorBoundary.retry": "Retry", "dynamicFlows.ExternalConfirmation.cancel": "Cancel", "dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.", "dynamicFlows.ExternalConfirmation.open": "Open in new tab", "dynamicFlows.ExternalConfirmation.title": "Please confirm", "dynamicFlows.Help.ariaLabel": "Click here for more info.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Something went wrong, please try again later!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "Yes" };
|
|
3082
|
+
var vm = { "dynamicFlows.ArraySchema.addItem": "Guardar", "dynamicFlows.ArraySchema.addItemTitle": "A\xF1adir elemento", "dynamicFlows.ArraySchema.editItem": "Guardar", "dynamicFlows.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.", "dynamicFlows.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Eliminar", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Intentar de nuevo", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Comprueba si est\xE1 conectado e int\xE9ntalo de nuevo.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "No podemos acceder a tu c\xE1mara", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "El navegador que est\xE1s utilizando no es compatible con una c\xE1mara. Prueba con otro navegador, dispositivo o descarga nuestra app m\xF3vil.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE1mara no compatible", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Habilitar acceso a la c\xE1mara", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Habilita el acceso a la c\xE1mara en la configuraci\xF3n de tu navegador para volver a activarla.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "No podemos acceder a tu c\xE1mara", "dynamicFlows.CameraCapture.reviewInstructions": "\xBFTu foto es clara, legible y completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, intentar de nuevo", "dynamicFlows.CameraCapture.reviewSubmit": "S\xED, enviar", "dynamicFlows.CameraCapture.rotatePhone.text": "Gira el tel\xE9fono a la vista vertical para hacer una foto", "dynamicFlows.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.", "dynamicFlows.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Introduce al menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Introduce una cifra igual o inferior a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Introduce una fecha que sea igual o posterior al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Utiliza el formato correcto.", "dynamicFlows.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.", "dynamicFlows.ControlFeedback.required": "Completa este campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorrecto", "dynamicFlows.DefaultErrorMessages.required": "Completa este campo.", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir ventana", "dynamicFlows.DynamicParagraph.copied": "Copiado al portapapeles", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Vaya. Algo ha salido mal...", "dynamicFlows.ErrorBoundary.retry": "Reintentar", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Confirma que quieres abrir **{origin}** en una nueva pesta\xF1a del navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir en nueva pesta\xF1a", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirma", "dynamicFlows.Help.ariaLabel": "Haz clic aqu\xED para obtener m\xE1s informaci\xF3n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Sube {maxItems} o menos archivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo ha ido mal. Int\xE9ntalo de nuevo m\xE1s tarde.", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xED" };
|
|
3083
|
+
var Am = { "dynamicFlows.ArraySchema.addItem": "Enregistrer", "dynamicFlows.ArraySchema.addItemTitle": "Ajouter un \xE9l\xE9ment", "dynamicFlows.ArraySchema.editItem": "Enregistrer", "dynamicFlows.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.", "dynamicFlows.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Supprimer", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "R\xE9essayez", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "V\xE9rifiez s'il est connect\xE9 et r\xE9essayez.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Nous n'avons pas acc\xE8s \xE0 votre appareil photo", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Le navigateur que vous utilisez ne prend pas en charge l'appareil photo. Veuillez essayer un autre navigateur, un autre appareil ou t\xE9l\xE9charger notre appli.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Appareil photo non pris en charge", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Autoriser l'acc\xE8s \xE0 l'appareil photo", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Autorisez l'acc\xE8s \xE0 l'appareil photo depuis les param\xE8tres de votre navigateur.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nous n'avons pas acc\xE8s \xE0 votre appareil photo", "dynamicFlows.CameraCapture.reviewInstructions": "Votre image est-elle claire, lisible et dans son int\xE9gralit\xE9\xA0?", "dynamicFlows.CameraCapture.reviewRetry": "Non, r\xE9essayer", "dynamicFlows.CameraCapture.reviewSubmit": "Oui, confirmer", "dynamicFlows.CameraCapture.rotatePhone.text": "Faites pivoter votre t\xE9l\xE9phone vers la vue portrait pour prendre une photo", "dynamicFlows.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.", "dynamicFlows.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Veuillez saisir au moins {minLength} caract\xE8res.", "dynamicFlows.ControlFeedback.minimum": "Veuillez saisir un nombre sup\xE9rieur ou \xE9gal \xE0 {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Veuillez saisir une date \xE9gale ou post\xE9rieure au {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Veuillez saisir les informations dans le bon format.", "dynamicFlows.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.", "dynamicFlows.ControlFeedback.required": "Champ obligatoire.", "dynamicFlows.ControlFeedback.type": "Type incorrect", "dynamicFlows.DefaultErrorMessages.required": "Champ obligatoire.", "dynamicFlows.DynamicExternal.retryTitle": "Rouvrir la fen\xEAtre", "dynamicFlows.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier", "dynamicFlows.DynamicParagraph.copy": "Copier", "dynamicFlows.ErrorBoundary.errorAlert": "Oups\xA0! Une erreur s'est produite...", "dynamicFlows.ErrorBoundary.retry": "R\xE9essayer", "dynamicFlows.ExternalConfirmation.cancel": "Annuler", "dynamicFlows.ExternalConfirmation.description": "Veuillez confirmer que vous souhaitez ouvrir **{origin}** dans un nouvel onglet.", "dynamicFlows.ExternalConfirmation.open": "Ouvrir dans un nouvel onglet", "dynamicFlows.ExternalConfirmation.title": "Veuillez confirmer", "dynamicFlows.Help.ariaLabel": "Cliquez ici pour plus d'informations.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Veuillez t\xE9l\xE9charger {maxItems} fichiers ou moins.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Un probl\xE8me est survenu, veuillez r\xE9essayer plus tard !", "dynamicFlows.ReadOnlySchema.no": "Non", "dynamicFlows.ReadOnlySchema.yes": "Oui" };
|
|
3084
|
+
var Om = { "dynamicFlows.ArraySchema.addItem": "Ment\xE9s", "dynamicFlows.ArraySchema.addItemTitle": "Elem hozz\xE1ad\xE1sa", "dynamicFlows.ArraySchema.editItem": "Ment\xE9s", "dynamicFlows.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.", "dynamicFlows.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.", "dynamicFlows.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1s", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Pr\xF3b\xE1ld \xFAjra", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Ellen\u0151rizd, hogy csatlakoztatva van-e, \xE9s pr\xF3b\xE1ld \xFAjra.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Az \xE1ltalad haszn\xE1lt b\xF6ng\xE9sz\u0151 nem t\xE1mogatja a kamera haszn\xE1lat\xE1t. K\xE9r\xFCnk, pr\xF3b\xE1lkozz m\xE1s b\xF6ng\xE9sz\u0151vel, eszk\xF6zzel vagy t\xF6ltsd le az appot", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera nem t\xE1mogatott", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamer\xE1hoz val\xF3 hozz\xE1f\xE9r\xE9s enged\xE9lyez\xE9se", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz. Ezt a telefonod be\xE1ll\xEDt\xE1saiban enged\xE9lyezheted", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz", "dynamicFlows.CameraCapture.reviewInstructions": "Tiszta, olvashat\xF3, teljes k\xE9pet k\xE9sz\xEDtett\xE9l?", "dynamicFlows.CameraCapture.reviewRetry": "Nem, pr\xF3b\xE1ljuk \xFAjra", "dynamicFlows.CameraCapture.reviewSubmit": "Igen, elk\xFCld\xF6m", "dynamicFlows.CameraCapture.rotatePhone.text": "F\xE9nyk\xE9p k\xE9sz\xEDt\xE9s\xE9hez ford\xEDtsd a telefont \xE1ll\xF3 n\xE9zetbe", "dynamicFlows.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.", "dynamicFlows.ControlFeedback.minLength": "K\xE9r\xFCnk, legal\xE1bb {minLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.minimum": "K\xE9r\xFCnk add meg ezt vagy egy enn\xE9l nagyobb sz\xE1mot: {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {minimum} napj\xE1val, vagy egy enn\xE9l k\xE9s\u0151bbit.", "dynamicFlows.ControlFeedback.pattern": "Helytelen form\xE1tum", "dynamicFlows.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.", "dynamicFlows.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.", "dynamicFlows.ControlFeedback.type": "Helytelen t\xEDpus", "dynamicFlows.DefaultErrorMessages.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.", "dynamicFlows.DynamicExternal.retryTitle": "Ablak \xFAjranyit\xE1sa", "dynamicFlows.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva", "dynamicFlows.DynamicParagraph.copy": "M\xE1sol\xE1s", "dynamicFlows.ErrorBoundary.errorAlert": "Hopp\xE1! Valami hiba t\xF6rt\xE9nt...", "dynamicFlows.ErrorBoundary.retry": "\xDAjra", "dynamicFlows.ExternalConfirmation.cancel": "M\xE9gsem", "dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.", "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon", "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s", "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra k\xE9s\u0151bb!", "dynamicFlows.ReadOnlySchema.no": "Nem", "dynamicFlows.ReadOnlySchema.yes": "Igen" };
|
|
3085
|
+
var Pm = { "dynamicFlows.ArraySchema.addItem": "Simpan", "dynamicFlows.ArraySchema.addItemTitle": "Tambahkan Item", "dynamicFlows.ArraySchema.editItem": "Simpan", "dynamicFlows.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.", "dynamicFlows.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Hapus", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Coba lagi", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Periksa apakah sudah terhubung dan coba lagi.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Kami tidak dapat mengakses kamera Anda", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browser yang Anda gunakan tidak mendukung kamera. Silakan coba browser, perangkat yang lain, atau unduh aplikasi seluler kami.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera tidak didukung", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Izinkan akses kamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Untuk melanjutkan lagi, aktifkan akses kamera di pengaturan browser Anda.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kami tidak dapat mengakses kamera Anda", "dynamicFlows.CameraCapture.reviewInstructions": "Apakah gambar Anda jelas, dapat dibaca, dan lengkap?", "dynamicFlows.CameraCapture.reviewRetry": "Tidak, coba lagi", "dynamicFlows.CameraCapture.reviewSubmit": "Ya, kirim", "dynamicFlows.CameraCapture.rotatePhone.text": "Putar ponsel Anda ke tampilan potret untuk mengambil foto", "dynamicFlows.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.", "dynamicFlows.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.", "dynamicFlows.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Harap masukkan setidaknya {minLength} karakter.", "dynamicFlows.ControlFeedback.minimum": "Harap masukkan angka paling kecil {minimum} atau lebih dari itu.", "dynamicFlows.ControlFeedback.minimumDate": "Harap masukkan tanggal pada atau setelah {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Mohon masukkan ini dalam format yang benar.", "dynamicFlows.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.", "dynamicFlows.ControlFeedback.required": "Harap isi kolom ini.", "dynamicFlows.ControlFeedback.type": "Tipe salah", "dynamicFlows.DefaultErrorMessages.required": "Harap isi kolom ini.", "dynamicFlows.DynamicExternal.retryTitle": "Buka window kembali", "dynamicFlows.DynamicParagraph.copied": "Disalin ke clipboard", "dynamicFlows.DynamicParagraph.copy": "Salin", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Terjadi kesalahan...", "dynamicFlows.ErrorBoundary.retry": "Coba lagi", "dynamicFlows.ExternalConfirmation.cancel": "Batalkan", "dynamicFlows.ExternalConfirmation.description": "Harap konfirmasikan bahwa Anda ingin membuka **{origin}** di tab browser baru.", "dynamicFlows.ExternalConfirmation.open": "Buka di tab baru", "dynamicFlows.ExternalConfirmation.title": "Harap konfirmasi", "dynamicFlows.Help.ariaLabel": "Klik di sini untuk info selengkapnya.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Harap unggah {maxItems} file atau kurang.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi nanti!", "dynamicFlows.ReadOnlySchema.no": "Tidak", "dynamicFlows.ReadOnlySchema.yes": "Ya" };
|
|
3086
|
+
var Mm = { "dynamicFlows.ArraySchema.addItem": "Salva", "dynamicFlows.ArraySchema.addItemTitle": "Aggiungi elemento", "dynamicFlows.ArraySchema.editItem": "Salva", "dynamicFlows.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Rimuovi", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Riprova", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Controlla se la fotocamera \xE8 collegata e riprova.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Accesso alla fotocamera disabilitato", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Il browser che stai usando non supporta la videocamera. Prova con un altro browser o dispositivo, oppure scarica la nostra app", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Videocamera non supportata", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Consenti l'accesso alla fotocamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Non abbiamo accesso alla tua fotocamera. Puoi abilitare l'accesso nelle impostazioni del tuo browser", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Accesso alla fotocamera disabilitato", "dynamicFlows.CameraCapture.reviewInstructions": "La tua foto \xE8 chiara, ben leggibile e completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, riprova", "dynamicFlows.CameraCapture.reviewSubmit": "S\xEC, invia", "dynamicFlows.CameraCapture.rotatePhone.text": "Ruota il telefono in posizione verticale per scattare una foto", "dynamicFlows.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.", "dynamicFlows.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Inserisci almeno {minLength} caratteri.", "dynamicFlows.ControlFeedback.minimum": "Inserisci un numero uguale o superiore a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Inserisci una data corrispondente o successiva al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Inseriscilo in un formato corretto.", "dynamicFlows.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.", "dynamicFlows.ControlFeedback.required": "Compila questo campo.", "dynamicFlows.ControlFeedback.type": "Tipo errato", "dynamicFlows.DefaultErrorMessages.required": "Compila questo campo.", "dynamicFlows.DynamicExternal.retryTitle": "Riapri la finestra", "dynamicFlows.DynamicParagraph.copied": "Copiato negli appunti", "dynamicFlows.DynamicParagraph.copy": "Copia", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Qualcosa \xE8 andato storto...", "dynamicFlows.ErrorBoundary.retry": "Riprova", "dynamicFlows.ExternalConfirmation.cancel": "Annulla", "dynamicFlows.ExternalConfirmation.description": "Conferma di voler aprire **{origin}** in una nuova scheda del browser.", "dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda", "dynamicFlows.ExternalConfirmation.title": "Conferma", "dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Carica al massimo {maxItems} file.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova pi\xF9 tardi!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xEC" };
|
|
3087
|
+
var km = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58\u3059\u308B", "dynamicFlows.ArraySchema.addItemTitle": "\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58\u3059\u308B", "dynamicFlows.ArraySchema.maxItemsError": "{maxItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0B\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ArraySchema.removeItem": "\u524A\u9664\u3059\u308B", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u3084\u308A\u76F4\u3059", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u30A4\u30F3\u30BF\u30FC\u30CD\u30C3\u30C8\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u304A\u5BA2\u69D8\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u5225\u306E\u30D6\u30E9\u30A6\u30B6\u307E\u305F\u306F\u30C7\u30D0\u30A4\u30B9\u3092\u4F7F\u7528\u3059\u308B\u304B\u3001\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u8A31\u53EF\u3059\u308B", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u30D6\u30E9\u30A6\u30B6\u306E\u8A2D\u5B9A\u3067\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u6709\u52B9\u306B\u3057\u3066\u3001\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.reviewInstructions": "\u5199\u771F\u304C\u9BAE\u660E\u3067\u3001\u3059\u3079\u3066\u306E\u60C5\u5831\u304C\u8AAD\u307F\u53D6\u308C\u6B20\u3051\u3066\u3044\u308B\u90E8\u5206\u306A\u3069\u306F\u3042\u308A\u307E\u305B\u3093\u304B\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u3044\u3044\u3048\u3001\u64AE\u308A\u76F4\u3059", "dynamicFlows.CameraCapture.reviewSubmit": "\u306F\u3044\u3001\u9001\u4FE1\u3059\u308B", "dynamicFlows.CameraCapture.rotatePhone.text": "\u7E26\u9577\u306E\u5199\u771F\u3092\u64AE\u5F71\u3059\u308B\u306B\u306F\u30B9\u30DE\u30FC\u30C8\u30D5\u30A9\u30F3\u3092\u56DE\u8EE2\u3055\u305B\u3066\u304F\u3060\u3055\u3044", "dynamicFlows.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximumDate": "{maximum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u524D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minLength": "{minLength}\u6587\u5B57\u4EE5\u4E0A\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimum": "{minimum}\u4EE5\u4E0A\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimumDate": "{minimum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u964D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.pattern": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002", "dynamicFlows.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7", "dynamicFlows.DefaultErrorMessages.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002", "dynamicFlows.DynamicExternal.retryTitle": "\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u3082\u3046\u4E00\u5EA6\u958B\u304F", "dynamicFlows.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F", "dynamicFlows.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B", "dynamicFlows.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F...", "dynamicFlows.ErrorBoundary.retry": "\u3084\u308A\u76F4\u3059", "dynamicFlows.ExternalConfirmation.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB\u3059\u308B", "dynamicFlows.ExternalConfirmation.description": "\u65B0\u3057\u3044\u30D6\u30E9\u30A6\u30B6\u30BF\u30D6\u3067**{origin}**\u3092\u958B\u304F\u3053\u3068\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ExternalConfirmation.open": "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F", "dynamicFlows.ExternalConfirmation.title": "\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044", "dynamicFlows.Help.ariaLabel": "\u8A73\u7D30\u306F\u3053\u3061\u3089\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "{maxItems}\u500B\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "{minItems}\u500B\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ReadOnlySchema.no": "\u3044\u3044\u3048", "dynamicFlows.ReadOnlySchema.yes": "\u306F\u3044" };
|
|
3088
|
+
var Em = { "dynamicFlows.ArraySchema.addItem": "Zapisz", "dynamicFlows.ArraySchema.addItemTitle": "Dodaj pozycj\u0119", "dynamicFlows.ArraySchema.editItem": "Zapisz", "dynamicFlows.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Usu\u0144", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Spr\xF3buj ponownie", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Sprawd\u017A po\u0142\u0105czenie i spr\xF3buj ponownie.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Nie mo\u017Cemy uzyska\u0107 dost\u0119pu do Twojego aparatu", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Przegl\u0105darka, kt\xF3rej u\u017Cywasz, nie obs\u0142uguje aparatu. Wypr\xF3buj inn\u0105 przegl\u0105dark\u0119 lub urz\u0105dzenie albo pobierz nasz\u0105 aplikacj\u0119 mobiln\u0105.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Aparat nie jest obs\u0142ugiwany", "dynamicFlows.CameraCapture.NoCameraAccess.action": "W\u0142\u0105cz dost\u0119p do aparatu", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "W\u0142\u0105cz dost\u0119p do aparatu w ustawieniach przegl\u0105darki, \u017Ceby rozpocz\u0105\u0107 ponownie.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nie mo\u017Cemy uzyska\u0107 dost\u0119pu do Twojego aparatu", "dynamicFlows.CameraCapture.reviewInstructions": "Czy Twoje zdj\u0119cie jest wyra\u017Ane, czytelne i kompletne?", "dynamicFlows.CameraCapture.reviewRetry": "Nie, spr\xF3buj ponownie", "dynamicFlows.CameraCapture.reviewSubmit": "Tak, prze\u015Blij", "dynamicFlows.CameraCapture.rotatePhone.text": "Obr\xF3\u0107 sw\xF3j telefon do widoku pionowego, \u017Ceby zrobi\u0107 zdj\u0119cie", "dynamicFlows.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.", "dynamicFlows.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Prosz\u0119 wpisa\u0107 co najmniej {minLength} znak\xF3w.", "dynamicFlows.ControlFeedback.minimum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub wi\u0119ksz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Wprowad\u017A dat\u0119 nie wcze\u015Bniejsz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Wprowad\u017A t\u0119 warto\u015B\u0107 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.", "dynamicFlows.ControlFeedback.type": "Nieprawid\u0142owy typ", "dynamicFlows.DefaultErrorMessages.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.", "dynamicFlows.DynamicExternal.retryTitle": "Otw\xF3rz okno ponownie", "dynamicFlows.DynamicParagraph.copied": "Skopiowano do schowka", "dynamicFlows.DynamicParagraph.copy": "Kopiuj", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Wyst\u0105pi\u0142 b\u0142\u0105d...", "dynamicFlows.ErrorBoundary.retry": "Spr\xF3buj ponownie", "dynamicFlows.ExternalConfirmation.cancel": "Anuluj", "dynamicFlows.ExternalConfirmation.description": "Prosimy potwierdzi\u0107, \u017Ce chcesz otworzy\u0107 **{origin}** w nowej zak\u0142adce przegl\u0105darki.", "dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce", "dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A", "dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Prze\u015Blij do {maxItems} plik\xF3w.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.", "dynamicFlows.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, spr\xF3buj ponownie p\xF3\u017Aniej!", "dynamicFlows.ReadOnlySchema.no": "Nie", "dynamicFlows.ReadOnlySchema.yes": "Tak" };
|
|
3089
|
+
var Im = { "dynamicFlows.ArraySchema.addItem": "Salvar", "dynamicFlows.ArraySchema.addItemTitle": "Adicionar item", "dynamicFlows.ArraySchema.editItem": "Salvar", "dynamicFlows.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.", "dynamicFlows.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Remover", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Tentar novamente", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Verifique se ele est\xE1 conectado e tente novamente.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "N\xE3o temos acesso \xE0 sua c\xE2mera", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "O navegador que voc\xEA est\xE1 usando n\xE3o permite o uso da c\xE2mera. Por favor, tente com outro navegador ou computador, ou baixe o nosso aplicativo", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE2mera indispon\xEDvel", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permitir acesso \xE0 c\xE2mera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Ative o acesso \xE0 c\xE2mera nas configura\xE7\xF5es do navegador para continuar.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "N\xE3o temos acesso \xE0 sua c\xE2mera", "dynamicFlows.CameraCapture.reviewInstructions": "A sua foto est\xE1 clara, leg\xEDvel e aparece por inteiro?", "dynamicFlows.CameraCapture.reviewRetry": "N\xE3o, tentar novamente", "dynamicFlows.CameraCapture.reviewSubmit": "Sim, enviar", "dynamicFlows.CameraCapture.rotatePhone.text": "Gire o telefone para o modo retrato para tirar uma foto", "dynamicFlows.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.", "dynamicFlows.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.", "dynamicFlows.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Por favor, insira pelo menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Por favor, insira um n\xFAmero que seja {minimum} ou mais.", "dynamicFlows.ControlFeedback.minimumDate": "Por favor, insira uma data que seja em ou ap\xF3s {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Por favor, insira essa informa\xE7\xE3o no formato correto.", "dynamicFlows.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.", "dynamicFlows.ControlFeedback.required": "Por favor, preencha o campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorreto", "dynamicFlows.DefaultErrorMessages.required": "Por favor, preencha o campo.", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir janela", "dynamicFlows.DynamicParagraph.copied": "Copiado", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Algo deu errado...", "dynamicFlows.ErrorBoundary.retry": "Tentar novamente", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Por favor, confirme que deseja abrir * *{origin}* * em uma nova aba do navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirme", "dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Por favor, envie {maxItems} ou menos arquivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo deu errado. Por favor, tente novamente mais tarde!", "dynamicFlows.ReadOnlySchema.no": "N\xE3o", "dynamicFlows.ReadOnlySchema.yes": "Sim" };
|
|
3090
|
+
var Dm = { "dynamicFlows.ArraySchema.addItem": "Salvare", "dynamicFlows.ArraySchema.addItemTitle": "Adaug\u0103 produs", "dynamicFlows.ArraySchema.editItem": "Salvare", "dynamicFlows.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.", "dynamicFlows.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Elimin\u0103", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\xCEncearc\u0103 din nou", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Te rug\u0103m s\u0103 verifici dac\u0103 este conectat\u0103 \u0219i s\u0103 \xEEncerci din nou.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Nu \xEE\u021Bi putem accesa camera", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browserul pe care \xEEl folose\u0219ti nu poate folosi o camer\u0103 foto. Te rug\u0103m s\u0103 \xEEncerci alt browser, alt dispozitiv sau s\u0103 descarci aplica\u021Bia noastr\u0103.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera nu este acceptat\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permite acces la camer\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Permite accesul la camera foto \xEEn set\u0103rile browserului t\u0103u, pentru a re\xEEncepe.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nu \xEE\u021Bi putem accesa camera", "dynamicFlows.CameraCapture.reviewInstructions": "Imaginea ta este clar\u0103, lizibil\u0103 \u0219i complet\u0103?", "dynamicFlows.CameraCapture.reviewRetry": "Nu, \xEEncearc\u0103 din nou", "dynamicFlows.CameraCapture.reviewSubmit": "Da, trimite", "dynamicFlows.CameraCapture.rotatePhone.text": "Rote\u0219te-\u021Bi telefonul \xEEn modul portret pentru a face o fotografie", "dynamicFlows.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.", "dynamicFlows.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.", "dynamicFlows.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Te rug\u0103m s\u0103 introduci cel pu\u021Bin {minLength} caractere.", "dynamicFlows.ControlFeedback.minimum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {minimum} sau mai mare.", "dynamicFlows.ControlFeedback.minimumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de dup\u0103 sau egal\u0103 cu {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Te rug\u0103m s\u0103 introduci acest lucru \xEEn formatul corect.", "dynamicFlows.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.", "dynamicFlows.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.", "dynamicFlows.ControlFeedback.type": "Tip incorect", "dynamicFlows.DefaultErrorMessages.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.", "dynamicFlows.DynamicExternal.retryTitle": "Redeschide fereastra", "dynamicFlows.DynamicParagraph.copied": "Copiat \xEEn clipboard", "dynamicFlows.DynamicParagraph.copy": "Copiaz\u0103", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Ceva nu a mers bine...", "dynamicFlows.ErrorBoundary.retry": "\xCEncearc\u0103 din nou", "dynamicFlows.ExternalConfirmation.cancel": "Anuleaz\u0103", "dynamicFlows.ExternalConfirmation.description": "Te rug\u0103m s\u0103 confirmi c\u0103 vrei s\u0103 deschizi **{origin}** \xEEntr-o nou\u0103 fil\u0103 a browserului.", "dynamicFlows.ExternalConfirmation.open": "Deschide \xEEntr-o fil\u0103 nou\u0103", "dynamicFlows.ExternalConfirmation.title": "Te rug\u0103m s\u0103 confirmi", "dynamicFlows.Help.ariaLabel": "D\u0103 click aici pentru mai multe informa\u021Bii.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Te rug\u0103m s\u0103 \xEEncarci {maxItems} fi\u0219iere sau mai pu\u021Bine.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).", "dynamicFlows.PersistAsyncSchema.genericError": "Ceva nu a mers bine. Te rug\u0103m s\u0103 \xEEncerci din nou mai t\xE2rziu!", "dynamicFlows.ReadOnlySchema.no": "Nu", "dynamicFlows.ReadOnlySchema.yes": "Da" };
|
|
3091
|
+
var Lm = { "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" };
|
|
3092
|
+
var Tm = { "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" };
|
|
3093
|
+
var Rm = { "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" };
|
|
3094
|
+
var rn = { "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" };
|
|
3095
|
+
var Nm = { "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" };
|
|
3096
|
+
var Rp = { en: xm, de: bm, es: vm, fr: Am, hu: Om, id: Pm, it: Mm, ja: km, pl: Em, pt: Im, ro: Dm, ru: Lm, th: Tm, tr: Rm, zh: rn, "zh-CN": rn, "zh-HK": Nm };
|
|
3097
|
+
var Bm = Rp;
|
|
3101
3098
|
}
|
|
3102
3099
|
});
|
|
3103
3100
|
|