@wise/dynamic-flow-client-internal 2.2.0-beta-4f3927.12 → 2.2.0-beta-365401.15
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 +1123 -1115
- package/build/main.min.js +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -52,39 +52,39 @@ var require_main_min = __commonJS({
|
|
|
52
52
|
"../core/build/main.min.js"(exports, module2) {
|
|
53
53
|
"use strict";
|
|
54
54
|
var Em = Object.create;
|
|
55
|
-
var
|
|
55
|
+
var Xt = Object.defineProperty;
|
|
56
56
|
var Im = Object.defineProperties;
|
|
57
57
|
var Dm = Object.getOwnPropertyDescriptor;
|
|
58
58
|
var Lm = Object.getOwnPropertyDescriptors;
|
|
59
59
|
var Tm = Object.getOwnPropertyNames;
|
|
60
|
-
var
|
|
60
|
+
var Xn = Object.getOwnPropertySymbols;
|
|
61
61
|
var Nm = Object.getPrototypeOf;
|
|
62
|
-
var
|
|
62
|
+
var Zn = Object.prototype.hasOwnProperty;
|
|
63
63
|
var Rm = Object.prototype.propertyIsEnumerable;
|
|
64
|
-
var
|
|
64
|
+
var Yn = (e, t, r) => t in e ? Xt(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 ||= {})
|
|
67
|
-
|
|
68
|
-
if (
|
|
69
|
-
for (var r of
|
|
70
|
-
Rm.call(t, r) &&
|
|
67
|
+
Zn.call(t, r) && Yn(e, r, t[r]);
|
|
68
|
+
if (Xn)
|
|
69
|
+
for (var r of Xn(t))
|
|
70
|
+
Rm.call(t, r) && Yn(e, r, t[r]);
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
73
|
var w = (e, t) => Im(e, Lm(t));
|
|
74
|
-
var
|
|
74
|
+
var xo = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
75
75
|
var Bm = (e, t) => {
|
|
76
76
|
for (var r in t)
|
|
77
|
-
|
|
77
|
+
Xt(e, r, { get: t[r], enumerable: true });
|
|
78
78
|
};
|
|
79
|
-
var
|
|
79
|
+
var Qn = (e, t, r, o) => {
|
|
80
80
|
if (t && typeof t == "object" || typeof t == "function")
|
|
81
81
|
for (let n of Tm(t))
|
|
82
|
-
!
|
|
82
|
+
!Zn.call(e, n) && n !== r && Xt(e, n, { get: () => t[n], enumerable: !(o = Dm(t, n)) || o.enumerable });
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
var Le = (e, t, r) => (r = e != null ? Em(Nm(e)) : {},
|
|
86
|
-
var jm = (e) =>
|
|
87
|
-
var
|
|
85
|
+
var Le = (e, t, r) => (r = e != null ? Em(Nm(e)) : {}, Qn(t || !e || !e.__esModule ? Xt(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
|
+
var jm = (e) => Qn(Xt({}, "__esModule", { value: true }), e);
|
|
87
|
+
var lt = xo((Xf, Hr) => {
|
|
88
88
|
(function() {
|
|
89
89
|
"use strict";
|
|
90
90
|
var e = {}.hasOwnProperty, t = "[native code]";
|
|
@@ -112,15 +112,15 @@ var require_main_min = __commonJS({
|
|
|
112
112
|
}
|
|
113
113
|
return o.join(" ");
|
|
114
114
|
}
|
|
115
|
-
typeof
|
|
115
|
+
typeof Hr < "u" && Hr.exports ? (r.default = r, Hr.exports = r) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
|
|
116
116
|
return r;
|
|
117
117
|
}) : window.classNames = r;
|
|
118
118
|
})();
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var cl = xo((yr, Tn) => {
|
|
121
121
|
(function(t, r) {
|
|
122
|
-
typeof
|
|
123
|
-
})(
|
|
122
|
+
typeof yr == "object" && typeof Tn == "object" ? Tn.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof yr == "object" ? yr.Webcam = r(require("react")) : t.Webcam = r(t.React);
|
|
123
|
+
})(yr, function(e) {
|
|
124
124
|
return function(t) {
|
|
125
125
|
var r = {};
|
|
126
126
|
function o(n) {
|
|
@@ -251,17 +251,17 @@ var require_main_min = __commonJS({
|
|
|
251
251
|
}
|
|
252
252
|
this.canvas = document.createElement("canvas"), this.canvas.width = m?.width || b, this.canvas.height = m?.height || S, this.ctx = this.canvas.getContext("2d");
|
|
253
253
|
}
|
|
254
|
-
var
|
|
255
|
-
return
|
|
254
|
+
var O = this, A = O.ctx, v = O.canvas;
|
|
255
|
+
return A && v && (g.mirrored && (A.translate(v.width, 0), A.scale(-1, 1)), A.imageSmoothingEnabled = g.imageSmoothing, A.drawImage(this.video, 0, 0, m?.width || v.width, m?.height || v.height), g.mirrored && (A.scale(-1, 1), A.translate(-v.width, 0))), v;
|
|
256
256
|
}, f.prototype.requestUserMedia = function() {
|
|
257
257
|
var m = this, p = this.props, y = function(S, F) {
|
|
258
|
-
var
|
|
259
|
-
p.audio && (
|
|
260
|
-
var
|
|
261
|
-
navigator.mediaDevices.getUserMedia(
|
|
262
|
-
m.unmounted ||
|
|
263
|
-
}).catch(function(
|
|
264
|
-
m.handleUserMedia(
|
|
258
|
+
var O = { video: typeof F < "u" ? F : true };
|
|
259
|
+
p.audio && (O.audio = typeof S < "u" ? S : true), m.requestUserMediaId++;
|
|
260
|
+
var A = m.requestUserMediaId;
|
|
261
|
+
navigator.mediaDevices.getUserMedia(O).then(function(v) {
|
|
262
|
+
m.unmounted || A !== m.requestUserMediaId ? f.stopMediaStream(v) : m.handleUserMedia(null, v);
|
|
263
|
+
}).catch(function(v) {
|
|
264
|
+
m.handleUserMedia(v);
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
if ("mediaDevices" in navigator)
|
|
@@ -274,14 +274,14 @@ var require_main_min = __commonJS({
|
|
|
274
274
|
return typeof F == "string" ? F : Array.isArray(F) && F.length > 0 ? F[0] : typeof F == "object" && F.ideal ? F.ideal : null;
|
|
275
275
|
};
|
|
276
276
|
MediaStreamTrack.getSources(function(S) {
|
|
277
|
-
var F = null,
|
|
278
|
-
S.forEach(function(
|
|
279
|
-
|
|
277
|
+
var F = null, O = null;
|
|
278
|
+
S.forEach(function(M) {
|
|
279
|
+
M.kind === "audio" ? F = M.id : M.kind === "video" && (O = M.id);
|
|
280
280
|
});
|
|
281
|
-
var
|
|
282
|
-
|
|
283
|
-
var
|
|
284
|
-
|
|
281
|
+
var A = b(p.audioConstraints);
|
|
282
|
+
A && (F = A);
|
|
283
|
+
var v = b(p.videoConstraints);
|
|
284
|
+
v && (O = v), y(g(F), g(O));
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
}, f.prototype.handleUserMedia = function(m, p) {
|
|
@@ -298,10 +298,10 @@ var require_main_min = __commonJS({
|
|
|
298
298
|
}
|
|
299
299
|
y.onUserMedia(p);
|
|
300
300
|
}, f.prototype.render = function() {
|
|
301
|
-
var m = this, p = this, y = p.state, g = p.props, b = g.audio, S = g.forceScreenshotSourceSize, F = g.onUserMedia,
|
|
301
|
+
var m = this, p = this, y = p.state, g = p.props, b = g.audio, S = g.forceScreenshotSourceSize, F = g.onUserMedia, O = g.onUserMediaError, A = g.screenshotFormat, v = g.screenshotQuality, M = g.minScreenshotWidth, N = g.minScreenshotHeight, x = g.audioConstraints, L = g.videoConstraints, H = g.imageSmoothing, q = g.mirrored, P = g.style, R = P === void 0 ? {} : P, E = g.children, ue = u(g, ["audio", "forceScreenshotSourceSize", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), j = q ? l(l({}, R), { transform: (R.transform || "") + " scaleX(-1)" }) : R, W = { getScreenshot: this.getScreenshot.bind(this) };
|
|
302
302
|
return n.createElement(n.Fragment, null, n.createElement("video", l({ autoPlay: true, src: y.src, muted: !b, playsInline: true, ref: function(ve) {
|
|
303
303
|
m.video = ve;
|
|
304
|
-
}, style:
|
|
304
|
+
}, style: j }, ue)), E && E(W));
|
|
305
305
|
}, f.defaultProps = { audio: false, forceScreenshotSourceSize: false, imageSmoothing: true, mirrored: false, onUserMedia: function() {
|
|
306
306
|
}, onUserMediaError: function() {
|
|
307
307
|
}, screenshotFormat: "image/webp", screenshotQuality: 0.92 }, f;
|
|
@@ -312,10 +312,10 @@ var require_main_min = __commonJS({
|
|
|
312
312
|
} }).default;
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
|
-
var
|
|
315
|
+
var dl = xo((kF, hr) => {
|
|
316
316
|
(function() {
|
|
317
317
|
"use strict";
|
|
318
|
-
var e = typeof window < "u" && typeof window.document < "u" ? window.document : {}, t = typeof
|
|
318
|
+
var e = typeof window < "u" && typeof window.document < "u" ? window.document : {}, t = typeof hr < "u" && hr.exports, r = function() {
|
|
319
319
|
for (var a, i = [["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"], ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"], ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]], l = 0, u = i.length, c = {}; l < u; l++)
|
|
320
320
|
if (a = i[l], a && a[1] in e) {
|
|
321
321
|
for (l = 0; l < a.length; l++)
|
|
@@ -359,7 +359,7 @@ var require_main_min = __commonJS({
|
|
|
359
359
|
l && e.removeEventListener(l, i, false);
|
|
360
360
|
}, raw: r };
|
|
361
361
|
if (!r) {
|
|
362
|
-
t ?
|
|
362
|
+
t ? hr.exports = { isEnabled: false } : window.screenfull = { isEnabled: false };
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
365
|
Object.defineProperties(n, { isFullscreen: { get: function() {
|
|
@@ -368,13 +368,13 @@ var require_main_min = __commonJS({
|
|
|
368
368
|
return e[r.fullscreenElement];
|
|
369
369
|
} }, isEnabled: { enumerable: true, get: function() {
|
|
370
370
|
return !!e[r.fullscreenEnabled];
|
|
371
|
-
} } }), t ?
|
|
371
|
+
} } }), t ? hr.exports = n : window.screenfull = n;
|
|
372
372
|
})();
|
|
373
373
|
});
|
|
374
374
|
var bp = {};
|
|
375
|
-
Bm(bp, { DynamicFlow: () =>
|
|
375
|
+
Bm(bp, { DynamicFlow: () => Kn, JsonSchemaForm: () => cr, Layout: () => me, convertStepToLayout: () => Yt, inlineReferences: () => $e, isValidSchema: () => K, makeHttpClient: () => Ir, translations: () => Mm });
|
|
376
376
|
module2.exports = jm(bp);
|
|
377
|
-
function
|
|
377
|
+
function Yt(e, { displayStepTitle: t = true } = {}) {
|
|
378
378
|
if (e.layout)
|
|
379
379
|
return Zm(e, t);
|
|
380
380
|
switch (e.type) {
|
|
@@ -388,25 +388,25 @@ var require_main_min = __commonJS({
|
|
|
388
388
|
return zm(e);
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function vo(e) {
|
|
392
392
|
let t = [];
|
|
393
|
-
if (e.title && t.push(
|
|
394
|
-
let r =
|
|
393
|
+
if (e.title && t.push(Oo(e.title)), e.image) {
|
|
394
|
+
let r = ea(e.image);
|
|
395
395
|
t.push(r);
|
|
396
396
|
}
|
|
397
|
-
return e.description && t.push(
|
|
397
|
+
return e.description && t.push(Po(e.description)), t;
|
|
398
398
|
}
|
|
399
399
|
function Vm(e) {
|
|
400
|
-
return [...
|
|
400
|
+
return [...vo(e), Um(e)];
|
|
401
401
|
}
|
|
402
402
|
function Um(e) {
|
|
403
403
|
return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
|
|
404
404
|
}
|
|
405
405
|
function zm(e) {
|
|
406
|
-
let t =
|
|
406
|
+
let t = vo(e);
|
|
407
407
|
if (e.reviewFields && t.push(Km(e.reviewFields)), e.schemas && t.push(...Xm(e)), e.actions) {
|
|
408
|
-
let r = e.actions.map(
|
|
409
|
-
t.push(
|
|
408
|
+
let r = e.actions.map(vr);
|
|
409
|
+
t.push(Ao(r, "md"));
|
|
410
410
|
}
|
|
411
411
|
return t;
|
|
412
412
|
}
|
|
@@ -417,25 +417,25 @@ var require_main_min = __commonJS({
|
|
|
417
417
|
let r = _m(e.details.image);
|
|
418
418
|
t.push(r);
|
|
419
419
|
}
|
|
420
|
-
e.details.title && t.push(
|
|
420
|
+
e.details.title && t.push(Oo(e.details.title)), e.details.description && t.push(Po(e.details.description));
|
|
421
421
|
}
|
|
422
422
|
if (e.actions) {
|
|
423
|
-
let r = e.actions.map((o) =>
|
|
424
|
-
t.push(
|
|
423
|
+
let r = e.actions.map((o) => vr(w(s({}, o), { type: o.type || "primary" })));
|
|
424
|
+
t.push(Ao(r, "md"));
|
|
425
425
|
}
|
|
426
426
|
return t;
|
|
427
427
|
}
|
|
428
428
|
function qm(e) {
|
|
429
|
-
let t =
|
|
429
|
+
let t = vo(e);
|
|
430
430
|
return e.options && t.push($m(e.options)), t;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Ao(e, t) {
|
|
433
433
|
return { type: "box", width: t || "md", components: e };
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Oo(e) {
|
|
436
436
|
return { type: "heading", text: e, size: "lg", margin: "lg", align: "center" };
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Po(e) {
|
|
439
439
|
return { type: "paragraph", text: e, align: "center" };
|
|
440
440
|
}
|
|
441
441
|
function Gm(e) {
|
|
@@ -447,13 +447,13 @@ var require_main_min = __commonJS({
|
|
|
447
447
|
function Wm(e) {
|
|
448
448
|
return { title: e.title, description: e.description, action: { title: e.title, method: "GET", url: e.url, disabled: e.disabled } };
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function ea(e) {
|
|
451
451
|
return { type: "image", url: e.url, text: e.text, margin: e.margin || "lg", size: e.size || "md" };
|
|
452
452
|
}
|
|
453
453
|
function _m(e) {
|
|
454
|
-
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } :
|
|
454
|
+
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : ea(e);
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function vr(e) {
|
|
457
457
|
return { type: "button", action: w(s({}, e), { title: e.title }) };
|
|
458
458
|
}
|
|
459
459
|
function Km(e) {
|
|
@@ -466,7 +466,7 @@ var require_main_min = __commonJS({
|
|
|
466
466
|
let t = [];
|
|
467
467
|
if (e.schemas && e.schemas[0]) {
|
|
468
468
|
let r = e.schemas[0], o = Gm(r);
|
|
469
|
-
Ym() ? t.push(o) : t.push(
|
|
469
|
+
Ym() ? t.push(o) : t.push(Ao([o], "md"));
|
|
470
470
|
}
|
|
471
471
|
return t;
|
|
472
472
|
}
|
|
@@ -474,109 +474,109 @@ var require_main_min = __commonJS({
|
|
|
474
474
|
return false;
|
|
475
475
|
}
|
|
476
476
|
function Zm(e, t) {
|
|
477
|
-
return [...t && e.title ? [
|
|
477
|
+
return [...t && e.title ? [Oo(e.title)] : [], ...e.description ? [Po(e.description)] : [], ...e.layout || []];
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function $e({ layout: e, schemas: t, actions: r, model: o }) {
|
|
480
480
|
return e ? t ? e.map((n) => n.type === "form" ? Qm({ formComponent: n, schemas: t }) : n.type === "decision" ? ec({ decisionComponent: n, actions: r }) : n.type === "button" ? tc({ actionComponent: n, actions: r }) : n.type === "box" ? rc({ boxComponent: n, schemas: t, actions: r, model: o }) : n.type === "columns" ? oc({ columnsComponent: n, schemas: t, actions: r, model: o }) : n) : e : [];
|
|
481
481
|
}
|
|
482
482
|
function Qm({ formComponent: e, schemas: t }) {
|
|
483
483
|
if (e.schemaId)
|
|
484
|
-
return { type: "form", margin: e.margin, schema:
|
|
485
|
-
if (e.schema &&
|
|
486
|
-
return { type: "form", margin: e.margin, schema:
|
|
487
|
-
if (e.schema && !
|
|
484
|
+
return { type: "form", margin: e.margin, schema: ta(t, e.schemaId) };
|
|
485
|
+
if (e.schema && Ar(e.schema) && e.schema.$ref)
|
|
486
|
+
return { type: "form", margin: e.margin, schema: ta(t, e.schema.$ref) };
|
|
487
|
+
if (e.schema && !Ar(e.schema))
|
|
488
488
|
return s({}, e);
|
|
489
489
|
throw new Error('Invalid form layout component. Missing "schema" or "schemaId" properties.');
|
|
490
490
|
}
|
|
491
491
|
function ec({ decisionComponent: e, actions: t }) {
|
|
492
492
|
var o;
|
|
493
|
-
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((n) => n.action &&
|
|
493
|
+
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((n) => n.action && Ar(n.action) ? w(s({}, n), { action: ra(t, n.action.$ref) }) : n);
|
|
494
494
|
return w(s({}, e), { options: r });
|
|
495
495
|
}
|
|
496
496
|
function tc({ actionComponent: e, actions: t }) {
|
|
497
497
|
var r;
|
|
498
|
-
if (e.action &&
|
|
499
|
-
let o =
|
|
500
|
-
return
|
|
498
|
+
if (e.action && Ar(e.action) && ((r = e.action) != null && r.$ref)) {
|
|
499
|
+
let o = ra(t, e.action.$ref);
|
|
500
|
+
return vr(o);
|
|
501
501
|
}
|
|
502
502
|
return e;
|
|
503
503
|
}
|
|
504
504
|
function rc({ boxComponent: e, schemas: t, actions: r, model: o }) {
|
|
505
|
-
return w(s({}, e), { components:
|
|
505
|
+
return w(s({}, e), { components: $e({ layout: e.components, schemas: t, actions: r, model: o }) });
|
|
506
506
|
}
|
|
507
507
|
function oc({ columnsComponent: e, schemas: t, actions: r, model: o }) {
|
|
508
|
-
return w(s({}, e), { left:
|
|
508
|
+
return w(s({}, e), { left: $e({ layout: e.left, schemas: t, actions: r, model: o }), right: $e({ layout: e.right, schemas: t, actions: r, model: o }) });
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function ta(e, t) {
|
|
511
511
|
let r = e.find((o) => o.$id === t);
|
|
512
512
|
if (!r)
|
|
513
513
|
throw new Error(`Fatal Error. Schema not found. $id ${t}`);
|
|
514
514
|
return r;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function ra(e, t) {
|
|
517
517
|
let r = e.find((o) => o.$id === t);
|
|
518
518
|
if (!r)
|
|
519
519
|
throw new Error(`Fatal Error. Action not found. $id ${t}`);
|
|
520
520
|
return r;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Ar(e) {
|
|
523
523
|
return Object.prototype.hasOwnProperty.call(e, "$ref");
|
|
524
524
|
}
|
|
525
525
|
var xe = require("react");
|
|
526
|
-
var
|
|
526
|
+
var um = require("react-intl");
|
|
527
527
|
var xt = require("react");
|
|
528
|
-
var
|
|
529
|
-
function
|
|
530
|
-
let [e, t] = (0,
|
|
531
|
-
return { addPendingPromise: (0,
|
|
528
|
+
var Or = require("react");
|
|
529
|
+
function oa() {
|
|
530
|
+
let [e, t] = (0, Or.useState)(0);
|
|
531
|
+
return { addPendingPromise: (0, Or.useCallback)((o) => {
|
|
532
532
|
t((n) => n + 1), o.catch(ac).finally(() => nc(() => t((n) => Math.max(0, n - 1))));
|
|
533
533
|
}, [t]), pendingPromises: e };
|
|
534
534
|
}
|
|
535
535
|
var nc = (e) => setTimeout(() => e(), 0);
|
|
536
536
|
var ac = () => {
|
|
537
537
|
};
|
|
538
|
-
var
|
|
539
|
-
var
|
|
538
|
+
var sa = require("react/jsx-runtime");
|
|
539
|
+
var na = { loading: false, registerPersistAsyncPromise: (e) => {
|
|
540
540
|
} };
|
|
541
|
-
var
|
|
542
|
-
var
|
|
543
|
-
let { pendingPromises: r, addPendingPromise: o } =
|
|
544
|
-
return (0,
|
|
541
|
+
var aa = (0, xt.createContext)(na);
|
|
542
|
+
var ia = ({ loading: e, children: t }) => {
|
|
543
|
+
let { pendingPromises: r, addPendingPromise: o } = oa(), n = (0, xt.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: o }), [e, r, o]);
|
|
544
|
+
return (0, sa.jsx)(aa.Provider, { value: n, children: t });
|
|
545
545
|
};
|
|
546
|
-
var
|
|
546
|
+
var Pr = () => (0, xt.useContext)(aa) || na;
|
|
547
547
|
var vt = require("react");
|
|
548
|
-
var
|
|
549
|
-
var
|
|
548
|
+
var ma = require("react/jsx-runtime");
|
|
549
|
+
var la = (0, vt.createContext)({ triggerEvent: () => {
|
|
550
550
|
} });
|
|
551
|
-
var
|
|
552
|
-
let o = (0, vt.useMemo)(() => ({ triggerEvent:
|
|
553
|
-
return (0,
|
|
551
|
+
var Mr = ({ metadata: e, children: t, onEvent: r }) => {
|
|
552
|
+
let o = (0, vt.useMemo)(() => ({ triggerEvent: Mo(r, e) }), [r, e]);
|
|
553
|
+
return (0, ma.jsx)(la.Provider, { value: o, children: t });
|
|
554
554
|
};
|
|
555
555
|
function oe() {
|
|
556
|
-
let { triggerEvent: e } = (0, vt.useContext)(
|
|
556
|
+
let { triggerEvent: e } = (0, vt.useContext)(la);
|
|
557
557
|
return e;
|
|
558
558
|
}
|
|
559
|
-
var
|
|
559
|
+
var Mo = (e, t) => (r, o = {}) => {
|
|
560
560
|
try {
|
|
561
561
|
e(r, s(s({}, t), o));
|
|
562
562
|
} catch (n) {
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
|
-
var
|
|
566
|
-
function
|
|
565
|
+
var nt = require("react");
|
|
566
|
+
function ca(e) {
|
|
567
567
|
return e >= 200 && e < 300;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function kr(e) {
|
|
570
570
|
return e === 422;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Er(e = "") {
|
|
573
573
|
return ["https://", "http://", "data:"].some((t) => e.slice(0, t.length) === t && e.length > t.length) === false;
|
|
574
574
|
}
|
|
575
|
-
var
|
|
575
|
+
var Ir = (e, t) => (r, o) => {
|
|
576
576
|
let n = ic(r, e || ""), a = sc(o == null ? void 0 : o.headers, t);
|
|
577
577
|
return fetch(n, w(s({}, o || {}), { headers: a }));
|
|
578
578
|
};
|
|
579
|
-
var ic = (e, t) => typeof e == "string" &&
|
|
579
|
+
var ic = (e, t) => typeof e == "string" && Er(e) ? t + e : e;
|
|
580
580
|
var sc = (e, t) => {
|
|
581
581
|
if (!e && !t)
|
|
582
582
|
return {};
|
|
@@ -585,65 +585,65 @@ var require_main_min = __commonJS({
|
|
|
585
585
|
r.set(o, n);
|
|
586
586
|
return r;
|
|
587
587
|
};
|
|
588
|
-
var
|
|
589
|
-
var
|
|
590
|
-
var
|
|
591
|
-
var
|
|
592
|
-
let r = (0,
|
|
593
|
-
return (0,
|
|
588
|
+
var ko = require("react/jsx-runtime");
|
|
589
|
+
var Dr = (0, nt.createContext)(void 0);
|
|
590
|
+
var da = ({ httpClient: e, children: t }) => (0, ko.jsx)(Dr.Provider, { value: e, children: t });
|
|
591
|
+
var Lr = ({ baseUrl: e, children: t }) => {
|
|
592
|
+
let r = (0, nt.useMemo)(() => Ir(e), [e]);
|
|
593
|
+
return (0, ko.jsx)(Dr.Provider, { value: r, children: t });
|
|
594
594
|
};
|
|
595
|
-
var ne = () => (0,
|
|
596
|
-
var
|
|
595
|
+
var ne = () => (0, nt.useContext)(Dr) || fetch;
|
|
596
|
+
var Tr = () => !!(0, nt.useContext)(Dr);
|
|
597
597
|
var At = require("react");
|
|
598
|
-
var
|
|
599
|
-
var
|
|
598
|
+
var pa = require("react/jsx-runtime");
|
|
599
|
+
var at = (e, t, r = "UNKNOWN-FLOW-ID", o = "UNKNOWN-FLOW-ID") => (n, a, i) => {
|
|
600
600
|
try {
|
|
601
601
|
t(e, `Dynamic Flow ${e} - ${n} - ${a}`, s({ flowId: r, stepId: o }, i));
|
|
602
602
|
} catch (l) {
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
|
-
var
|
|
606
|
-
var
|
|
607
|
-
let n = (0, At.useMemo)(() => ({ debug:
|
|
608
|
-
return (0,
|
|
605
|
+
var ua = (0, At.createContext)(null);
|
|
606
|
+
var Nr = ({ flowId: e, stepId: t, children: r, onLog: o }) => {
|
|
607
|
+
let n = (0, At.useMemo)(() => ({ debug: at("debug", o, e, t), info: at("info", o, e, t), warning: at("warning", o, e, t), error: at("error", o, e, t), critical: at("critical", o, e, t) }), [o, e, t]);
|
|
608
|
+
return (0, pa.jsx)(ua.Provider, { value: n, children: r });
|
|
609
609
|
};
|
|
610
610
|
var Ot = () => {
|
|
611
|
-
let e = (0, At.useContext)(
|
|
611
|
+
let e = (0, At.useContext)(ua);
|
|
612
612
|
if (e == null)
|
|
613
613
|
throw new Error("Logging context not found. Did you forget to wrap your component in a <LogProvider />?");
|
|
614
614
|
return e;
|
|
615
615
|
};
|
|
616
616
|
var I = (e) => typeof e == "string";
|
|
617
|
-
var
|
|
618
|
-
var
|
|
617
|
+
var V = (e) => typeof e == "number" && !Number.isNaN(e);
|
|
618
|
+
var fa = (e) => V(e) && Math.floor(e) === e;
|
|
619
619
|
var Ae = (e) => typeof e == "boolean";
|
|
620
|
-
var T = (e) => !k(e) && !
|
|
621
|
-
var
|
|
620
|
+
var T = (e) => !k(e) && !Y(e) && (e == null ? void 0 : e.constructor) === Object;
|
|
621
|
+
var G = (e) => Array.isArray(e);
|
|
622
622
|
var k = (e) => e === null;
|
|
623
|
-
var
|
|
624
|
-
var Pt = (e) => I(e) && e.length === 0 || (T(e) ||
|
|
625
|
-
function
|
|
626
|
-
return t.oneOf.some((r) =>
|
|
623
|
+
var Y = (e) => typeof e == "undefined";
|
|
624
|
+
var Pt = (e) => I(e) && e.length === 0 || (T(e) || G(e)) && Object.keys(e).length === 0;
|
|
625
|
+
function ya(e, t) {
|
|
626
|
+
return t.oneOf.some((r) => We(e, r) === e) ? e : null;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function ha(e, t) {
|
|
629
629
|
var o;
|
|
630
630
|
let r = t.oneOf.map((n) => lc(e, n)).filter((n) => n !== null);
|
|
631
631
|
return r.length === 0 ? null : (o = r.find((n) => n.some((a) => a !== null))) != null ? o : r[0];
|
|
632
632
|
}
|
|
633
633
|
function lc(e, t) {
|
|
634
|
-
return !Te(t) || !Oe(t) ? null :
|
|
634
|
+
return !Te(t) || !Oe(t) ? null : Eo(e, t);
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function ga(e) {
|
|
637
637
|
return I(e) && !Pt(e) ? e : null;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
639
|
+
function Sa(e) {
|
|
640
|
+
return V(e) ? e : null;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function ba(e) {
|
|
643
643
|
return Ae(e) ? e : null;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
if (!
|
|
645
|
+
function Eo(e, t) {
|
|
646
|
+
if (!G(e) || !Oe(t))
|
|
647
647
|
return null;
|
|
648
648
|
if (e.length > 0) {
|
|
649
649
|
let r = typeof e[0];
|
|
@@ -652,9 +652,9 @@ var require_main_min = __commonJS({
|
|
|
652
652
|
}
|
|
653
653
|
return e.map((r) => Mt(r, t.items));
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function wa(e, t) {
|
|
656
656
|
return Object.keys(t.properties).reduce((r, o) => {
|
|
657
|
-
if (e && !
|
|
657
|
+
if (e && !Y(e[o])) {
|
|
658
658
|
let n = e[o], a = t.properties[o], i = Mt(n, a);
|
|
659
659
|
if (!k(i))
|
|
660
660
|
return w(s({}, r), { [o]: i });
|
|
@@ -662,90 +662,90 @@ var require_main_min = __commonJS({
|
|
|
662
662
|
return r;
|
|
663
663
|
}, {});
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Fa(e, t) {
|
|
666
666
|
return t.allOf.reduce((r, o) => {
|
|
667
667
|
let n = se(e, o);
|
|
668
|
-
return
|
|
668
|
+
return _(n) ? s(s({}, r), n) : r;
|
|
669
669
|
}, {});
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
return t.oneOf.map((r) => se(e, r)).reduce((r, o) => k(r) ? o :
|
|
671
|
+
function Ca(e, t) {
|
|
672
|
+
return t.oneOf.map((r) => se(e, r)).reduce((r, o) => k(r) ? o : _(r) && _(o) ? xa(r, o) : k(o) ? r : o, null);
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function xa(e, t) {
|
|
675
675
|
return Object.keys(t).reduce((r, o) => {
|
|
676
676
|
let n = e[o], a = t[o];
|
|
677
|
-
return
|
|
677
|
+
return _(n) && _(a) ? w(s({}, r), { [o]: xa(n, a) }) : w(s({}, r), { [o]: t[o] });
|
|
678
678
|
}, s({}, e));
|
|
679
679
|
}
|
|
680
|
-
var Mt = (e, t) =>
|
|
681
|
-
function
|
|
680
|
+
var Mt = (e, t) => _(e) ? se(e, t) : Io(e) ? mc(e, t) : We(e, t);
|
|
681
|
+
function We(e, t) {
|
|
682
682
|
if (k(e))
|
|
683
683
|
return null;
|
|
684
684
|
if (t.oneOf)
|
|
685
|
-
return
|
|
686
|
-
if (!
|
|
685
|
+
return ya(e, t);
|
|
686
|
+
if (!Y(t.const) && e === t.const)
|
|
687
687
|
return e;
|
|
688
688
|
if (t.type)
|
|
689
689
|
switch (t.type) {
|
|
690
690
|
case "string":
|
|
691
|
-
return
|
|
691
|
+
return ga(e);
|
|
692
692
|
case "number":
|
|
693
693
|
case "integer":
|
|
694
|
-
return
|
|
694
|
+
return Sa(e);
|
|
695
695
|
case "boolean":
|
|
696
|
-
return
|
|
696
|
+
return ba(e);
|
|
697
697
|
default:
|
|
698
698
|
return null;
|
|
699
699
|
}
|
|
700
700
|
return null;
|
|
701
701
|
}
|
|
702
702
|
function se(e, t) {
|
|
703
|
-
return Ne(t) || Te(t) || k(e) ? null : t.allOf ?
|
|
703
|
+
return Ne(t) || Te(t) || k(e) ? null : t.allOf ? Fa(e, t) : t.oneOf ? Ca(e, t) : !Y(t.const) && e === t.const ? e : Pe(t) ? wa(e, t) : null;
|
|
704
704
|
}
|
|
705
705
|
function mc(e, t) {
|
|
706
|
-
return ye(t) ?
|
|
706
|
+
return ye(t) ? ha(e, t) : Te(t) ? Eo(e, t) : null;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return !t || !
|
|
708
|
+
function Zt(e, t = false) {
|
|
709
|
+
return !t || !Y(e);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return !t ||
|
|
711
|
+
function va(e, t = false) {
|
|
712
|
+
return !t || G(e);
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return !
|
|
714
|
+
function Aa(e, t) {
|
|
715
|
+
return !V(t) || I(e) && e.length >= t;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
return !
|
|
717
|
+
function Oa(e, t) {
|
|
718
|
+
return !V(t) || I(e) && e.length <= t;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Pa(e, t) {
|
|
721
721
|
return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
return !
|
|
723
|
+
function Do(e, t) {
|
|
724
|
+
return !V(t) && !I(t) || (V(e) || I(e)) && e <= t;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
727
|
-
return !
|
|
726
|
+
function Lo(e, t) {
|
|
727
|
+
return !V(t) && !I(t) || (V(e) || I(e)) && e >= t;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
return !
|
|
729
|
+
function Ma(e, t) {
|
|
730
|
+
return !V(t) || G(e) && e.length >= t;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
return !
|
|
732
|
+
function ka(e, t) {
|
|
733
|
+
return !V(t) || G(e) && e.length <= t;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function _e(e, t, r) {
|
|
736
736
|
if (t.const)
|
|
737
|
-
return
|
|
737
|
+
return Bo(e, t, r);
|
|
738
738
|
if (k(e))
|
|
739
739
|
return r ? ["required"] : [];
|
|
740
|
-
if (
|
|
741
|
-
return
|
|
740
|
+
if (Ia(t))
|
|
741
|
+
return To(e, t, r);
|
|
742
742
|
switch (t.type) {
|
|
743
743
|
case "number":
|
|
744
|
-
return
|
|
744
|
+
return Rr(e, t, r);
|
|
745
745
|
case "integer":
|
|
746
|
-
return
|
|
746
|
+
return No(e, t, r);
|
|
747
747
|
case "boolean":
|
|
748
|
-
return
|
|
748
|
+
return Ro(e, t, r);
|
|
749
749
|
case "array":
|
|
750
750
|
return kt(e, t, r);
|
|
751
751
|
case "object":
|
|
@@ -754,80 +754,80 @@ var require_main_min = __commonJS({
|
|
|
754
754
|
return [];
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function To(e, t, r) {
|
|
758
758
|
if (!I(e) && !k(e))
|
|
759
759
|
return ["type"];
|
|
760
760
|
if (e === "" && r)
|
|
761
761
|
return ["required"];
|
|
762
762
|
let o = [];
|
|
763
|
-
return
|
|
763
|
+
return Zt(e, r) || o.push("required"), Aa(e, t.minLength) || o.push("minLength"), Oa(e, t.maxLength) || o.push("maxLength"), Pa(e, t.pattern) || o.push("pattern"), Lo(e, t.minimum) || o.push("minimum"), Do(e, t.maximum) || o.push("maximum"), o;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
if (!
|
|
765
|
+
function Rr(e, t, r) {
|
|
766
|
+
if (!V(e) && !k(e))
|
|
767
767
|
return ["type"];
|
|
768
768
|
let o = [];
|
|
769
|
-
return
|
|
769
|
+
return Zt(e, r) || o.push("required"), Lo(e, t.minimum) || o.push("minimum"), Do(e, t.maximum) || o.push("maximum"), o;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
return
|
|
771
|
+
function No(e, t, r) {
|
|
772
|
+
return fa(e) ? Rr(e, t, r) : ["type"];
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function Ro(e, t, r) {
|
|
775
775
|
if (!Ae(e) && !k(e))
|
|
776
776
|
return ["type"];
|
|
777
777
|
let o = [];
|
|
778
|
-
return
|
|
778
|
+
return Zt(e, r) || o.push("required"), o;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return
|
|
780
|
+
function Bo(e, t, r) {
|
|
781
|
+
return Zt(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
|
|
782
782
|
}
|
|
783
783
|
function kt(e, t, r) {
|
|
784
|
-
if (!
|
|
784
|
+
if (!G(e) && !k(e))
|
|
785
785
|
return ["type"];
|
|
786
|
-
if (!
|
|
786
|
+
if (!va(e, r))
|
|
787
787
|
return ["required"];
|
|
788
788
|
let o = [];
|
|
789
|
-
return
|
|
789
|
+
return Ma(e, t.minItems) || o.push("minItems"), ka(e, t.maxItems) || o.push("maxItems"), o;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Ea(e, t) {
|
|
792
792
|
return k(e) ? ["type"] : [];
|
|
793
793
|
}
|
|
794
794
|
function cc(e, t) {
|
|
795
|
-
return
|
|
795
|
+
return _(e) ? G(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, n) => o && n, true) ? [] : ["required"] : [] : ["type"];
|
|
796
796
|
}
|
|
797
797
|
function dc(e, t) {
|
|
798
|
-
return !
|
|
798
|
+
return !To(e, t).length;
|
|
799
799
|
}
|
|
800
800
|
function uc(e, t) {
|
|
801
|
-
return !
|
|
801
|
+
return !Rr(e, t).length;
|
|
802
802
|
}
|
|
803
803
|
function pc(e, t) {
|
|
804
|
-
return !
|
|
804
|
+
return !No(e, t).length;
|
|
805
805
|
}
|
|
806
806
|
function fc(e, t) {
|
|
807
|
-
return !
|
|
807
|
+
return !Ro(e, t).length;
|
|
808
808
|
}
|
|
809
809
|
function yc(e, t) {
|
|
810
|
-
return !
|
|
810
|
+
return !Bo(e, t).length;
|
|
811
811
|
}
|
|
812
812
|
function hc(e, t) {
|
|
813
813
|
return !T(e) || t.type !== "object" || !T(t.properties) ? false : Object.keys(t.properties).map((r) => gc(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
|
|
814
814
|
}
|
|
815
815
|
function gc(e, t, r) {
|
|
816
|
-
return t.hidden ? true : typeof e == "undefined" ? !r :
|
|
816
|
+
return t.hidden ? true : typeof e == "undefined" ? !r : K(e, t);
|
|
817
817
|
}
|
|
818
818
|
function Sc(e, t) {
|
|
819
|
-
return t.type !== "array" || !T(t.items) || kt(e, t).length > 0 ? false : Array.isArray(e) && Oe(t) && e.map((r) =>
|
|
819
|
+
return t.type !== "array" || !T(t.items) || kt(e, t).length > 0 ? false : Array.isArray(e) && Oe(t) && e.map((r) => K(r, t.items)).every((r) => r);
|
|
820
820
|
}
|
|
821
821
|
function bc(e, t) {
|
|
822
|
-
return
|
|
822
|
+
return G(t.oneOf) ? t.oneOf.some((r) => K(e, r)) : false;
|
|
823
823
|
}
|
|
824
824
|
function wc(e, t) {
|
|
825
|
-
return
|
|
825
|
+
return G(t.allOf) ? t.allOf.map((r) => K(e, r)).every((r) => r) : false;
|
|
826
826
|
}
|
|
827
827
|
function Fc(e, t) {
|
|
828
|
-
return !
|
|
828
|
+
return !Ea(e, t).length;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function K(e, t) {
|
|
831
831
|
if (t.oneOf)
|
|
832
832
|
return bc(e, t);
|
|
833
833
|
if (t.allOf)
|
|
@@ -857,14 +857,14 @@ var require_main_min = __commonJS({
|
|
|
857
857
|
let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`, n = t.getFullYear(), a = r.length < 2 ? `0${r}` : r, i = o.length < 2 ? `0${o}` : o;
|
|
858
858
|
return [n, a, i].join("-");
|
|
859
859
|
}
|
|
860
|
-
var
|
|
860
|
+
var Da = (e) => {
|
|
861
861
|
if (!e)
|
|
862
862
|
return null;
|
|
863
863
|
let [t, r, o] = e.split("-").map((n) => parseInt(n, 10));
|
|
864
|
-
return !
|
|
864
|
+
return !V(t) || !V(r) || !V(o) ? null : new Date(t, r - 1, o);
|
|
865
865
|
};
|
|
866
|
-
var
|
|
867
|
-
var
|
|
866
|
+
var La = (e) => Cc(e);
|
|
867
|
+
var Ke = (e, t) => {
|
|
868
868
|
let r, o, n = () => {
|
|
869
869
|
r && (clearTimeout(r), r = null), o = null;
|
|
870
870
|
}, a = (...i) => {
|
|
@@ -878,20 +878,20 @@ var require_main_min = __commonJS({
|
|
|
878
878
|
r !== null && (e(...o), n());
|
|
879
879
|
}, a;
|
|
880
880
|
};
|
|
881
|
-
var
|
|
881
|
+
var Je = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Je(r, t[o])) : !!(Ta(e) && Ta(t) && xc(e, t));
|
|
882
882
|
var xc = (e, t) => {
|
|
883
883
|
let r = Object.keys(e), o = Object.keys(t);
|
|
884
|
-
return r.length === o.length && r.every((n) => Object.prototype.hasOwnProperty.call(t, n) &&
|
|
884
|
+
return r.length === o.length && r.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Je(e[n], t[n]));
|
|
885
885
|
};
|
|
886
|
-
var
|
|
887
|
-
function
|
|
886
|
+
var Ta = (e) => typeof e == "object" && e !== null;
|
|
887
|
+
function Br(e) {
|
|
888
888
|
return Math.floor(e / 1024);
|
|
889
889
|
}
|
|
890
|
-
var
|
|
890
|
+
var Na = (e) => new Promise((t, r) => {
|
|
891
891
|
let o = new FileReader();
|
|
892
892
|
o.readAsDataURL(e), o.addEventListener("load", () => t(o.result)), o.addEventListener("error", (n) => r(n));
|
|
893
893
|
});
|
|
894
|
-
function
|
|
894
|
+
function Ra(e, t) {
|
|
895
895
|
let r = t.reduce((o, n) => w(s({}, o), { [n.id]: n }), {});
|
|
896
896
|
for (let o of e) {
|
|
897
897
|
let n = r[o.id];
|
|
@@ -902,9 +902,9 @@ var require_main_min = __commonJS({
|
|
|
902
902
|
}
|
|
903
903
|
var Me = (e = "") => `${e ? `${e}-` : ""}${Math.floor(1e8 * Math.random())}`;
|
|
904
904
|
function he(e) {
|
|
905
|
-
return !
|
|
905
|
+
return !Y(e == null ? void 0 : e.const);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Qt(e) {
|
|
908
908
|
return !!e && !he(e);
|
|
909
909
|
}
|
|
910
910
|
var vc = (e) => !!e.readOnly && Ne(e);
|
|
@@ -916,13 +916,13 @@ var require_main_min = __commonJS({
|
|
|
916
916
|
function Pe(e) {
|
|
917
917
|
return e.type === "object";
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function it(e) {
|
|
920
920
|
return ye(e) && e.oneOf.every((t) => t.type === "object");
|
|
921
921
|
}
|
|
922
922
|
function ye(e) {
|
|
923
923
|
return !!e.oneOf;
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function jo(e) {
|
|
926
926
|
return !!e.allOf;
|
|
927
927
|
}
|
|
928
928
|
function Et(e) {
|
|
@@ -935,25 +935,25 @@ var require_main_min = __commonJS({
|
|
|
935
935
|
let t = e.items;
|
|
936
936
|
return !Array.isArray(t);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Ia(e) {
|
|
939
939
|
return e.type === "string";
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function jr(e) {
|
|
942
942
|
return !!e.persistAsync;
|
|
943
943
|
}
|
|
944
944
|
function Pc(e) {
|
|
945
|
-
return
|
|
945
|
+
return jr(e) && (Et(e.persistAsync.schema) || Mc(e.persistAsync.schema));
|
|
946
946
|
}
|
|
947
|
-
var
|
|
947
|
+
var Vo = (e) => Ne(e) && !!e.validationAsync;
|
|
948
948
|
function Mc(e) {
|
|
949
949
|
return e.type === "string" && e.format === "base64url";
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Ba(e) {
|
|
952
952
|
return e.type === "string" && e.format === "base64url";
|
|
953
953
|
}
|
|
954
|
-
var
|
|
955
|
-
var
|
|
956
|
-
var
|
|
954
|
+
var ja = (e) => Te(e) && Oe(e) && Pc(e.items);
|
|
955
|
+
var st = (e) => vc(e) ? "readOnly" : jr(e) ? "persistAsync" : Vo(e) ? "validationAsync" : Pe(e) ? "object" : Te(e) ? "array" : Ac(e) ? "promotedOneOf" : ye(e) ? "oneOf" : jo(e) ? "allOf" : Ne(e) ? "basic" : null;
|
|
956
|
+
var Va = (e) => kc(e) && Ec(e) && Ic(e);
|
|
957
957
|
var kc = (e) => !e.type || e.type === "form";
|
|
958
958
|
var Ec = (e) => {
|
|
959
959
|
var t;
|
|
@@ -962,24 +962,24 @@ var require_main_min = __commonJS({
|
|
|
962
962
|
var Ic = (e) => {
|
|
963
963
|
if (!e.schemas)
|
|
964
964
|
return false;
|
|
965
|
-
let t =
|
|
965
|
+
let t = Vr(e.schemas);
|
|
966
966
|
if ((t == null ? void 0 : t.length) !== 1)
|
|
967
967
|
return false;
|
|
968
968
|
let r = t[0];
|
|
969
969
|
if (!Pe(r) || Object.values(r.properties).length !== 1)
|
|
970
970
|
return false;
|
|
971
971
|
let o = Object.values(r.properties)[0];
|
|
972
|
-
return
|
|
973
|
-
};
|
|
974
|
-
var
|
|
975
|
-
var
|
|
976
|
-
var
|
|
977
|
-
var
|
|
978
|
-
var
|
|
979
|
-
var
|
|
980
|
-
var
|
|
981
|
-
var
|
|
982
|
-
var
|
|
972
|
+
return Ba(o) ? o.source === "camera" : false;
|
|
973
|
+
};
|
|
974
|
+
var Vr = (e) => e.filter((t) => Pe(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);
|
|
975
|
+
var _ = (e) => typeof e == "object" && e !== null && e.constructor === Object;
|
|
976
|
+
var Uo = (e) => k(e) || _(e);
|
|
977
|
+
var zo = (e) => Ae(e) || V(e) || I(e) || k(e);
|
|
978
|
+
var Ur = (e) => I(e) || k(e);
|
|
979
|
+
var Io = (e) => G(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object") : false;
|
|
980
|
+
var Ua = (e) => k(e) ? true : Io(e);
|
|
981
|
+
var er = (e) => I(e) || k(e);
|
|
982
|
+
var za = () => Lc() && (Tc() || Dc());
|
|
983
983
|
var Dc = (e = window.navigator.userAgent) => /Mobi|\b(iPhone|Android|BlackBerry|webOS|Windows Phone)\b/i.test(e);
|
|
984
984
|
var Lc = (e = window.screen.width, t = window.screen.height) => e < 768 || t < 768;
|
|
985
985
|
var Tc = (e = window.navigator, t = window.matchMedia) => {
|
|
@@ -990,20 +990,20 @@ var require_main_min = __commonJS({
|
|
|
990
990
|
let r = t == null ? void 0 : t("(pointer:coarse)");
|
|
991
991
|
return (r == null ? void 0 : r.media) === "(pointer:coarse)" ? !!r.matches : false;
|
|
992
992
|
};
|
|
993
|
-
var
|
|
994
|
-
function
|
|
995
|
-
return (0,
|
|
993
|
+
var Ha = require("react");
|
|
994
|
+
function qa(e, t) {
|
|
995
|
+
return (0, Ha.useCallback)(Ke(e, t), [e, t]);
|
|
996
996
|
}
|
|
997
|
-
var
|
|
998
|
-
function
|
|
999
|
-
let [t, r] = (0,
|
|
1000
|
-
return (0,
|
|
997
|
+
var tr = require("react");
|
|
998
|
+
function Ga(e) {
|
|
999
|
+
let [t, r] = (0, tr.useState)(null), [o, n] = (0, tr.useState)(false), a = () => n(true);
|
|
1000
|
+
return (0, tr.useEffect)(() => {
|
|
1001
1001
|
e && (n(false), r(window.open(e, "_blank")));
|
|
1002
1002
|
}, [e]), { requiresManualTrigger: !!(e && !t && !o), dismissConfirmation: a };
|
|
1003
1003
|
}
|
|
1004
|
-
var
|
|
1005
|
-
function
|
|
1006
|
-
let r = ne(), o = (0,
|
|
1004
|
+
var rr = require("react");
|
|
1005
|
+
function $a(e, t) {
|
|
1006
|
+
let r = ne(), o = (0, rr.useMemo)(() => {
|
|
1007
1007
|
if (e)
|
|
1008
1008
|
return () => r(e.url).then((a) => {
|
|
1009
1009
|
if (a.ok)
|
|
@@ -1015,7 +1015,7 @@ var require_main_min = __commonJS({
|
|
|
1015
1015
|
else
|
|
1016
1016
|
throw new Error("failed");
|
|
1017
1017
|
});
|
|
1018
|
-
}, [e, r]), n = (0,
|
|
1018
|
+
}, [e, r]), n = (0, rr.useCallback)((a) => {
|
|
1019
1019
|
let l = ((e == null ? void 0 : e.responseHandlers) || []).find((u) => u.result === a.result);
|
|
1020
1020
|
if (l != null && l.action) {
|
|
1021
1021
|
let { action: u } = l;
|
|
@@ -1030,68 +1030,68 @@ var require_main_min = __commonJS({
|
|
|
1030
1030
|
}
|
|
1031
1031
|
return true;
|
|
1032
1032
|
}, [e == null ? void 0 : e.responseHandlers, t]);
|
|
1033
|
-
|
|
1033
|
+
zr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: n, onFailure: (0, rr.useCallback)(() => {
|
|
1034
1034
|
e && t(e.onError.action);
|
|
1035
1035
|
}, [t, e]) });
|
|
1036
1036
|
}
|
|
1037
|
-
var
|
|
1038
|
-
var
|
|
1039
|
-
var
|
|
1040
|
-
var
|
|
1041
|
-
var
|
|
1042
|
-
var
|
|
1043
|
-
var
|
|
1044
|
-
var
|
|
1045
|
-
var
|
|
1046
|
-
var
|
|
1047
|
-
var
|
|
1037
|
+
var il = require("react");
|
|
1038
|
+
var sl = require("react-intl");
|
|
1039
|
+
var Wa = require("react-intl");
|
|
1040
|
+
var or = (0, Wa.defineMessages)({ genericError: { id: "dynamicFlows.PersistAsyncSchema.genericError", defaultMessage: "Something went wrong, please try again later!", description: "Generic error message for persist async schema" } });
|
|
1041
|
+
var wt = require("react");
|
|
1042
|
+
var tl = require("react-intl");
|
|
1043
|
+
var _a = { DAY_MONTH_YEAR: "day-month-year", MONTH_YEAR: "month-year" };
|
|
1044
|
+
var U = { RADIO: "radio", CHECKBOX: "checkbox", SELECT: "select", FILE: "file", DATE: "date", DATETIME: "date-time", DATELOOKUP: "date-lookup", TEL: "tel", NUMBER: "number", HIDDEN: "hidden", PASSWORD: "password", TEXT: "text", TEXTAREA: "textarea", UPLOAD: "upload", TAB: "tab" };
|
|
1045
|
+
var Ka = { SHORT: "short", LONG: "long" };
|
|
1046
|
+
var Ja = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
|
|
1047
|
+
var Qs = Le(lt());
|
|
1048
1048
|
var ce = require("react");
|
|
1049
|
-
var
|
|
1049
|
+
var ri = require("@transferwise/components");
|
|
1050
1050
|
var Dt = require("@transferwise/components");
|
|
1051
|
-
var
|
|
1051
|
+
var Ya = require("react/jsx-runtime");
|
|
1052
1052
|
var It = (e) => Nc(e) || Rc(e);
|
|
1053
1053
|
var Nc = (e) => Bc.some((t) => e === `flag-${t}`);
|
|
1054
1054
|
var Rc = (e) => jc.some((t) => e === `flag-${t}`);
|
|
1055
|
-
var
|
|
1055
|
+
var Xa = ({ name: e }) => {
|
|
1056
1056
|
if (!It(e))
|
|
1057
1057
|
return null;
|
|
1058
1058
|
let t = e.substring(5);
|
|
1059
|
-
return (0,
|
|
1059
|
+
return (0, Ya.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}` });
|
|
1060
1060
|
};
|
|
1061
1061
|
var Bc = ["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"];
|
|
1062
1062
|
var jc = ["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"];
|
|
1063
|
-
var
|
|
1064
|
-
var
|
|
1065
|
-
var
|
|
1066
|
-
let t =
|
|
1067
|
-
return Object.keys(
|
|
1068
|
-
};
|
|
1069
|
-
var
|
|
1070
|
-
if (!
|
|
1063
|
+
var Za = Le(require("@transferwise/icons"));
|
|
1064
|
+
var ti = require("react/jsx-runtime");
|
|
1065
|
+
var qr = (e) => {
|
|
1066
|
+
let t = ei(e);
|
|
1067
|
+
return Object.keys(Za).includes(t);
|
|
1068
|
+
};
|
|
1069
|
+
var Qa = ({ name: e }) => {
|
|
1070
|
+
if (!qr(e))
|
|
1071
1071
|
return null;
|
|
1072
|
-
let t =
|
|
1073
|
-
return (0,
|
|
1072
|
+
let t = ei(e), r = Za[t];
|
|
1073
|
+
return (0, ti.jsx)(r, { size: 24 });
|
|
1074
1074
|
};
|
|
1075
|
-
var
|
|
1075
|
+
var ei = (e) => e.split("-").map(Vc).join("");
|
|
1076
1076
|
var Vc = (e) => {
|
|
1077
1077
|
var t;
|
|
1078
1078
|
return `${(t = e[0]) == null ? void 0 : t.toUpperCase()}${e.slice(1)}`;
|
|
1079
1079
|
};
|
|
1080
|
-
var
|
|
1081
|
-
var Uc = ({ type: e }) => It(e) ? (0,
|
|
1082
|
-
function
|
|
1083
|
-
return
|
|
1080
|
+
var Ho = require("react/jsx-runtime");
|
|
1081
|
+
var Uc = ({ type: e }) => It(e) ? (0, Ho.jsx)(Xa, { name: e }) : qr(e) ? (0, Ho.jsx)(Qa, { name: e }) : null;
|
|
1082
|
+
function qo(e) {
|
|
1083
|
+
return qr(e) || It(e);
|
|
1084
1084
|
}
|
|
1085
|
-
var
|
|
1086
|
-
var
|
|
1087
|
-
var
|
|
1085
|
+
var Xe = Uc;
|
|
1086
|
+
var nr = require("react/jsx-runtime");
|
|
1087
|
+
var mt = ({ icon: e, image: t }) => {
|
|
1088
1088
|
if (e != null && e.name)
|
|
1089
|
-
return (0,
|
|
1089
|
+
return (0, nr.jsx)(Dt.Avatar, { type: Dt.AvatarType.ICON, children: (0, nr.jsx)(Xe, { type: e.name }) });
|
|
1090
1090
|
if (e != null && e.text)
|
|
1091
|
-
return (0,
|
|
1091
|
+
return (0, nr.jsx)(Dt.Avatar, { type: Dt.AvatarType.INITIALS, children: e.text });
|
|
1092
1092
|
if (t != null && t.url) {
|
|
1093
1093
|
let { url: r, text: o } = t;
|
|
1094
|
-
return (0,
|
|
1094
|
+
return (0, nr.jsx)("img", { src: r, alt: o });
|
|
1095
1095
|
}
|
|
1096
1096
|
return null;
|
|
1097
1097
|
};
|
|
@@ -1123,10 +1123,10 @@ var require_main_min = __commonJS({
|
|
|
1123
1123
|
}
|
|
1124
1124
|
};
|
|
1125
1125
|
var Re = (e) => `${zc(e.align)} ${B(e.margin)}`;
|
|
1126
|
-
var
|
|
1126
|
+
var oi = require("react/jsx-runtime");
|
|
1127
1127
|
var Hc = (e) => {
|
|
1128
1128
|
let t = e.component;
|
|
1129
|
-
return (0,
|
|
1129
|
+
return (0, oi.jsx)(ri.Alert, { type: Gc(qc(t.context)), className: B(t.margin), message: t.markdown });
|
|
1130
1130
|
};
|
|
1131
1131
|
var qc = (e) => {
|
|
1132
1132
|
switch (e) {
|
|
@@ -1145,12 +1145,12 @@ var require_main_min = __commonJS({
|
|
|
1145
1145
|
};
|
|
1146
1146
|
var Gc = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
|
|
1147
1147
|
var le = Hc;
|
|
1148
|
-
var
|
|
1148
|
+
var ct = require("react/jsx-runtime");
|
|
1149
1149
|
var $c = (e) => {
|
|
1150
1150
|
let t = e.component, r = B(t.margin || t.border ? "lg" : "xs");
|
|
1151
|
-
return !t.width || t.width === "xl" ? (0,
|
|
1151
|
+
return !t.width || t.width === "xl" ? (0, ct.jsx)("div", { className: r + ni(t.border), children: (0, ct.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, ct.jsx)("div", { className: "row", children: (0, ct.jsx)("div", { className: r + Wc(t), children: (0, ct.jsx)("div", { className: ni(t.border), children: (0, ct.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
|
|
1152
1152
|
};
|
|
1153
|
-
var
|
|
1153
|
+
var ni = (e) => e ? " well p-b-0" : "";
|
|
1154
1154
|
var Wc = (e) => {
|
|
1155
1155
|
switch (e.width) {
|
|
1156
1156
|
case "xs":
|
|
@@ -1166,21 +1166,21 @@ var require_main_min = __commonJS({
|
|
|
1166
1166
|
return " col-xs-12";
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
|
-
var
|
|
1170
|
-
var
|
|
1169
|
+
var Go = $c;
|
|
1170
|
+
var li = require("@transferwise/components");
|
|
1171
1171
|
var _c = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
|
|
1172
|
-
var
|
|
1172
|
+
var ai = (e) => {
|
|
1173
1173
|
var r;
|
|
1174
1174
|
let t = e.action.type;
|
|
1175
1175
|
return (r = e.control) != null ? r : t ? _c[t] : "secondary";
|
|
1176
1176
|
};
|
|
1177
1177
|
var Kc = { primary: "neutral", secondary: "neutral", link: "neutral", positive: "positive", negative: "negative" };
|
|
1178
|
-
var
|
|
1178
|
+
var ii = (e) => {
|
|
1179
1179
|
var o;
|
|
1180
1180
|
let t = e.action.type, r = (o = e.context) != null ? o : t ? Kc[t] : "neutral";
|
|
1181
1181
|
return r === "neutral" ? "accent" : r;
|
|
1182
1182
|
};
|
|
1183
|
-
var
|
|
1183
|
+
var si = (e) => {
|
|
1184
1184
|
switch (e) {
|
|
1185
1185
|
case "xs":
|
|
1186
1186
|
case "sm":
|
|
@@ -1193,97 +1193,97 @@ var require_main_min = __commonJS({
|
|
|
1193
1193
|
return "md";
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
|
-
var
|
|
1196
|
+
var mi = require("react/jsx-runtime");
|
|
1197
1197
|
var Jc = (e) => {
|
|
1198
1198
|
var u;
|
|
1199
|
-
let { component: t, onAction: r } = e, o = t.action, n =
|
|
1200
|
-
return (0,
|
|
1199
|
+
let { component: t, onAction: r } = e, o = t.action, n = ii(t), a = ai(t), { loading: i } = Pr(), l = B(t.margin || "md");
|
|
1200
|
+
return (0, mi.jsx)(li.Button, { size: si(t.size), type: n, priority: a, block: true, className: l, disabled: t.disabled || o.disabled || i, onClick: () => r(o), children: (u = t.title) != null ? u : o.title });
|
|
1201
1201
|
};
|
|
1202
|
-
var
|
|
1203
|
-
var
|
|
1202
|
+
var $o = Jc;
|
|
1203
|
+
var dt = require("react/jsx-runtime");
|
|
1204
1204
|
var Xc = (e) => {
|
|
1205
1205
|
let t = e.component, { leftWidth: r, rightWidth: o } = Yc(t.bias);
|
|
1206
|
-
return (0,
|
|
1206
|
+
return (0, dt.jsxs)("div", { className: `${B(t.margin || "xs")} row`, children: [(0, dt.jsx)("div", { className: `${r} m-b-0`, children: (0, dt.jsx)(me, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, dt.jsx)("div", { className: `${o} m-b-0`, children: (0, dt.jsx)(me, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
|
|
1207
1207
|
};
|
|
1208
1208
|
var Yc = (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" };
|
|
1209
|
-
var
|
|
1210
|
-
var
|
|
1211
|
-
var
|
|
1212
|
-
var Zc = ({ component: e, onAction: t }) => (0,
|
|
1213
|
-
var
|
|
1214
|
-
var
|
|
1209
|
+
var Wo = Xc;
|
|
1210
|
+
var $r = require("@transferwise/components");
|
|
1211
|
+
var Gr = require("react/jsx-runtime");
|
|
1212
|
+
var Zc = ({ component: e, onAction: t }) => (0, Gr.jsx)("div", { className: B(e.margin), children: (0, Gr.jsx)($r.NavigationOptionsList, { children: e.options.map((r) => (0, Gr.jsx)($r.NavigationOption, { title: r.title, content: r.description, disabled: r.disabled, media: mt(r), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(r.action) }, JSON.stringify(r))) }) });
|
|
1213
|
+
var _o = Zc;
|
|
1214
|
+
var ci = require("react/jsx-runtime");
|
|
1215
1215
|
var Qc = ({ component: e }) => {
|
|
1216
1216
|
let r = `m-t-0 ${B(e.margin)}`;
|
|
1217
|
-
return (0,
|
|
1217
|
+
return (0, ci.jsx)("hr", { className: r });
|
|
1218
1218
|
};
|
|
1219
|
-
var
|
|
1219
|
+
var Ko = Qc;
|
|
1220
1220
|
var Lt = require("@transferwise/components");
|
|
1221
|
-
var
|
|
1221
|
+
var Wr = require("react");
|
|
1222
|
+
var pi = require("react-intl");
|
|
1222
1223
|
var di = require("react-intl");
|
|
1223
|
-
var
|
|
1224
|
-
var
|
|
1225
|
-
var Xe = require("react/jsx-runtime");
|
|
1224
|
+
var ui = (0, di.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1225
|
+
var Ye = require("react/jsx-runtime");
|
|
1226
1226
|
var ed = ({ component: e, onAction: t }) => {
|
|
1227
|
-
let { requestUrl: r, responseHandlers: o, polling: n, retryTitle: a } = e, i = (0,
|
|
1228
|
-
(0,
|
|
1227
|
+
let { requestUrl: r, responseHandlers: o, polling: n, retryTitle: a } = e, i = (0, pi.useIntl)(), l = (0, Wr.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1228
|
+
(0, Wr.useEffect)(() => {
|
|
1229
1229
|
l();
|
|
1230
1230
|
}, [l]);
|
|
1231
1231
|
let u = n && o ? w(s({}, n), { responseHandlers: o }) : void 0;
|
|
1232
|
-
return
|
|
1232
|
+
return $a(u, t), (0, Ye.jsxs)(Ye.Fragment, { children: [(0, Ye.jsx)(Lt.Loader, { size: Lt.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Ye.jsx)("br", {}), (0, Ye.jsx)(Lt.Button, { priority: "tertiary", block: true, onClick: l, children: a || i.formatMessage(ui.retryTitle) })] });
|
|
1233
1233
|
};
|
|
1234
|
-
var
|
|
1235
|
-
var
|
|
1236
|
-
var
|
|
1237
|
-
var
|
|
1234
|
+
var Jo = ed;
|
|
1235
|
+
var Is = require("react");
|
|
1236
|
+
var fi = Le(lt());
|
|
1237
|
+
var yi = require("react");
|
|
1238
1238
|
var ke = require("react/jsx-runtime");
|
|
1239
1239
|
var td = (e, t) => t.map((r) => se(e, r) || {});
|
|
1240
1240
|
var rd = (e) => e.reduce((t, r) => s(s({}, r), t), {});
|
|
1241
1241
|
var od = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1242
|
-
var
|
|
1242
|
+
var hi = (e) => {
|
|
1243
1243
|
let t = (n, a) => {
|
|
1244
1244
|
let i = e.schema.allOf[n];
|
|
1245
1245
|
r[n] = se(a.model, i) || {}, o(r), e.onChange(w(s({}, a), { model: rd(r) }));
|
|
1246
|
-
}, [r, o] = (0,
|
|
1247
|
-
return (0, ke.jsxs)(ke.Fragment, { children: [e.schema.title && (0, ke.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ke.jsx)("p", { children: e.schema.description }), (0, ke.jsx)("div", { className: "row", children: e.schema.allOf.map((n, a) => (0, ke.jsx)("div", { className: (0,
|
|
1248
|
-
};
|
|
1249
|
-
|
|
1250
|
-
var
|
|
1246
|
+
}, [r, o] = (0, yi.useState)(td(e.model, e.schema.allOf));
|
|
1247
|
+
return (0, ke.jsxs)(ke.Fragment, { children: [e.schema.title && (0, ke.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ke.jsx)("p", { children: e.schema.description }), (0, ke.jsx)("div", { className: "row", children: e.schema.allOf.map((n, a) => (0, ke.jsx)("div", { className: (0, fi.default)(od(n.width)), children: (0, ke.jsx)(pe, { schema: n, model: r[a], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (i) => t(a, w(s({}, i), { model: i.model })), onPersistAsync: e.onPersistAsync }) }, a)) })] });
|
|
1248
|
+
};
|
|
1249
|
+
hi.defaultProps = { disabled: false };
|
|
1250
|
+
var Xo = hi;
|
|
1251
|
+
var Kr = require("@transferwise/components");
|
|
1252
|
+
var Ei = Le(lt());
|
|
1253
|
+
var ar = require("react");
|
|
1251
1254
|
var _r = require("@transferwise/components");
|
|
1252
|
-
var
|
|
1253
|
-
var
|
|
1254
|
-
var
|
|
1255
|
-
var
|
|
1256
|
-
var hi = require("react-intl");
|
|
1257
|
-
var yi = require("react-intl");
|
|
1258
|
-
var ge = (0, yi.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: "" } });
|
|
1255
|
+
var Yo = require("@transferwise/formatting");
|
|
1256
|
+
var Si = require("react-intl");
|
|
1257
|
+
var gi = require("react-intl");
|
|
1258
|
+
var ge = (0, gi.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: "" } });
|
|
1259
1259
|
var Be = require("react/jsx-runtime");
|
|
1260
|
-
var
|
|
1260
|
+
var bi = (e) => {
|
|
1261
1261
|
var l;
|
|
1262
1262
|
let t = nd(e.schema), r = s(s(s({}, t), e.validationMessages), e.schema.validationMessages), o = (e.submitted || !e.changed) && !!e.errors, n = !o && (e.submitted || e.changed && e.blurred) && !!((l = e.validations) != null && l.length), a = e.focused && e.schema.description && !n, i = !!e.infoMessage;
|
|
1263
|
-
return (0, Be.jsxs)("div", { id: e.id, children: [o ? (0, Be.jsx)(
|
|
1263
|
+
return (0, Be.jsxs)("div", { id: e.id, children: [o ? (0, Be.jsx)(_r.InlineAlert, { type: "error", children: e.errors }) : null, n ? (0, Be.jsx)(_r.InlineAlert, { type: "error", children: e.validations.map((u) => (0, Be.jsx)("div", { children: r[u] }, u)) }) : null, (a || i) && (0, Be.jsxs)(_r.InlineAlert, { type: "info", children: [a && (0, Be.jsx)("div", { children: e.schema.description }), i && (0, Be.jsx)("div", { children: e.infoMessage })] })] });
|
|
1264
1264
|
};
|
|
1265
|
-
|
|
1265
|
+
bi.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1266
1266
|
function nd(e) {
|
|
1267
|
-
let { formatMessage: t, locale: r } = (0,
|
|
1267
|
+
let { formatMessage: t, locale: r } = (0, Si.useIntl)(), o = { type: t(ge.type), minimum: t(ge.minimum, { minimum: e.minimum }), maximum: t(ge.maximum, { maximum: e.maximum }), minLength: t(ge.minLength, { minLength: e.minLength }), maxLength: t(ge.maxLength, { maxLength: e.maxLength }), pattern: t(ge.pattern), required: t(ge.required) };
|
|
1268
1268
|
if (e.format === "date") {
|
|
1269
|
-
let n = { pattern: t(ge.patternDate), minimum: e.minimum ? t(ge.minimumDate, { minimum: (0,
|
|
1269
|
+
let n = { pattern: t(ge.patternDate), minimum: e.minimum ? t(ge.minimumDate, { minimum: (0, Yo.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(ge.maximumDate, { maximum: (0, Yo.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
1270
1270
|
return s(s({}, o), n);
|
|
1271
1271
|
}
|
|
1272
1272
|
return o;
|
|
1273
1273
|
}
|
|
1274
|
-
var je =
|
|
1275
|
-
async function
|
|
1274
|
+
var je = bi;
|
|
1275
|
+
async function wi(e, t) {
|
|
1276
1276
|
if (t)
|
|
1277
1277
|
return e;
|
|
1278
1278
|
if (e instanceof Blob)
|
|
1279
|
-
return
|
|
1279
|
+
return Na(e);
|
|
1280
1280
|
throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Fi(e) {
|
|
1283
1283
|
let t = e.data;
|
|
1284
1284
|
return s({ id: t }, e);
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function Ci(e) {
|
|
1287
1287
|
let t = e instanceof Error;
|
|
1288
1288
|
if (!(T(e) && "data" in e) && !t)
|
|
1289
1289
|
return I(e) ? e : void 0;
|
|
@@ -1293,110 +1293,110 @@ var require_main_min = __commonJS({
|
|
|
1293
1293
|
} else
|
|
1294
1294
|
return s({ message: I(e.message) ? e.message : "" }, e);
|
|
1295
1295
|
}
|
|
1296
|
-
var
|
|
1297
|
-
var Fi = require("react-intl");
|
|
1298
|
-
var Ci = (0, Fi.defineMessages)({ required: { id: "dynamicFlows.DefaultErrorMessages.required", defaultMessage: "Please fill out this field.", description: "Customer has left the required field empty" } });
|
|
1296
|
+
var Pi = require("react-intl");
|
|
1299
1297
|
var xi = require("react-intl");
|
|
1300
|
-
var vi = (0, xi.defineMessages)({
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1298
|
+
var vi = (0, xi.defineMessages)({ required: { id: "dynamicFlows.DefaultErrorMessages.required", defaultMessage: "Please fill out this field.", description: "Customer has left the required field empty" } });
|
|
1299
|
+
var Ai = require("react-intl");
|
|
1300
|
+
var Oi = (0, Ai.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." } });
|
|
1301
|
+
function Mi({ maxItems: e, minItems: t }) {
|
|
1302
|
+
let { formatMessage: r } = (0, Pi.useIntl)(), { maxFileSizeError: o, maxItemsError: n, minItemsError: a } = Oi;
|
|
1303
|
+
return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(n, { maxItems: e }), minItemsErrorMessage: r(a, { minItems: t }), requiredMessage: r(vi.required) };
|
|
1304
|
+
}
|
|
1305
|
+
var ut = require("react/jsx-runtime");
|
|
1306
|
+
var Ii = (e) => {
|
|
1307
|
+
var M, N;
|
|
1308
|
+
let { onChange: t, schema: r } = e, o = oe(), n = Mi(r), a = (0, ar.useMemo)(() => r.$id || Me(), [r.$id]), [i, l] = (0, ar.useState)(false), [u, c] = (0, ar.useState)(() => ad(e.model || [])), d = Di(r.items.persistAsync), h = r.items.persistAsync.schema, f = Et(h), m = async (x) => {
|
|
1309
1309
|
l(true);
|
|
1310
1310
|
try {
|
|
1311
|
-
let L = await
|
|
1311
|
+
let L = await wi(x, f);
|
|
1312
1312
|
o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
|
|
1313
|
-
let
|
|
1314
|
-
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }),
|
|
1313
|
+
let H = await d(L);
|
|
1314
|
+
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), Fi(H);
|
|
1315
1315
|
} catch (L) {
|
|
1316
|
-
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(
|
|
1316
|
+
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(Ci(L));
|
|
1317
1317
|
}
|
|
1318
1318
|
};
|
|
1319
|
-
function p(
|
|
1320
|
-
if (
|
|
1319
|
+
function p(x) {
|
|
1320
|
+
if (Ra(x, u))
|
|
1321
1321
|
return;
|
|
1322
|
-
c(
|
|
1323
|
-
let
|
|
1324
|
-
t({ model:
|
|
1322
|
+
c(x);
|
|
1323
|
+
let H = ki(x).map((q) => q.id);
|
|
1324
|
+
t({ model: H, triggerSchema: r, triggerModel: H });
|
|
1325
1325
|
}
|
|
1326
|
-
let g =
|
|
1327
|
-
return (0,
|
|
1326
|
+
let g = ki(u).map((x) => x.id), b = kt(g, r, e.required), S = !!e.errors || (i || e.submitted) && !!b.length, F = "accepts" in h && h.accepts, O = "maxSize" in h && h.maxSize, A = w(s(s({ multiple: true, className: "form-control", files: u, fileInputName: a, id: a }, F ? { fileTypes: F } : void 0), O ? { sizeLimit: Br(O) } : void 0), { sizeLimitErrorMessage: ((M = h.validationMessages) == null ? void 0 : M.maxSize) || n.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((N = e.schema.validationMessages) == null ? void 0 : N.maxItems) || n.maxItemsErrorMessage, uploadButtonTitle: h.title, description: h.description, disabled: e.disabled, onUploadFile: (x) => m(x.get(a)), onFilesChange: p, onDeleteFile: () => Promise.resolve() }), v = `${a}-feedback`;
|
|
1327
|
+
return (0, ut.jsxs)("div", { className: (0, Ei.default)("form-group", { "has-error": S }), children: [(0, ut.jsx)("label", { className: "d-block control-label", htmlFor: a, children: e.schema.title }), (0, ut.jsx)("div", { "aria-describedby": v, children: (0, ut.jsx)(Kr.UploadInput, s({}, A)) }), (0, ut.jsx)(je, { id: v, changed: i, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: b, validationMessages: sd(r, !!e.required, n), infoMessage: null, focused: false, blurred: true })] });
|
|
1328
1328
|
};
|
|
1329
|
-
|
|
1330
|
-
var
|
|
1331
|
-
function
|
|
1329
|
+
Ii.defaultProps = { errors: null, required: false };
|
|
1330
|
+
var Zo = Ii;
|
|
1331
|
+
function ki(e) {
|
|
1332
1332
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1333
1333
|
}
|
|
1334
1334
|
function ad(e) {
|
|
1335
|
-
return e.map((t) => id(t) ? { id: t, status:
|
|
1335
|
+
return e.map((t) => id(t) ? { id: t, status: Kr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1336
1336
|
}
|
|
1337
1337
|
function id(e) {
|
|
1338
|
-
return
|
|
1338
|
+
return V(e) || I(e);
|
|
1339
1339
|
}
|
|
1340
1340
|
function sd(e, t, r) {
|
|
1341
1341
|
let { minItems: o, maxItems: n } = e;
|
|
1342
1342
|
return s(s(s({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }), n && { maxItems: r.maxItemsErrorMessage });
|
|
1343
1343
|
}
|
|
1344
1344
|
var Nt = require("@transferwise/components");
|
|
1345
|
-
var
|
|
1346
|
-
var
|
|
1347
|
-
var
|
|
1348
|
-
var
|
|
1349
|
-
var
|
|
1350
|
-
var
|
|
1351
|
-
var
|
|
1352
|
-
var
|
|
1353
|
-
var
|
|
1354
|
-
var
|
|
1345
|
+
var zi = require("@transferwise/icons");
|
|
1346
|
+
var Yr = require("react");
|
|
1347
|
+
var Hi = require("react-intl");
|
|
1348
|
+
var Li = require("@transferwise/components");
|
|
1349
|
+
var Ni = require("react/jsx-runtime");
|
|
1350
|
+
var Ti = ({ item: e, onClick: t }) => (0, Ni.jsx)(Li.NavigationOption, { onClick: t, media: mt(e), title: e.title, content: e.description });
|
|
1351
|
+
var Ri = require("react-intl");
|
|
1352
|
+
var pt = (0, Ri.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" } });
|
|
1353
|
+
var Bi = require("react-intl");
|
|
1354
|
+
var Vi = require("react/jsx-runtime");
|
|
1355
1355
|
var ld = ({ type: e, schema: t, model: r, errors: o, submitted: n, onModelChange: a, onAction: i }) => {
|
|
1356
|
-
let { formatMessage: l } = (0,
|
|
1357
|
-
return (0,
|
|
1356
|
+
let { formatMessage: l } = (0, Bi.useIntl)(), u = { layout: [{ type: "form", schema: t.items }, { type: "button", control: "primary", action: { url: e, title: l(e === "add" ? pt.addItem : pt.editItem) } }, ...e === "edit" ? [{ type: "button", context: "negative", action: { url: "remove", title: l(pt.removeItem) } }] : []], title: "", actions: [], schemas: [] };
|
|
1357
|
+
return (0, Vi.jsx)(Jr, { step: u, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: n, formErrors: o, globalError: null, onAction: (c) => {
|
|
1358
1358
|
i(c.url);
|
|
1359
1359
|
}, onModelChange: a });
|
|
1360
1360
|
};
|
|
1361
|
-
var
|
|
1362
|
-
var
|
|
1363
|
-
let r =
|
|
1361
|
+
var ji = ld;
|
|
1362
|
+
var Xr = (e, t) => {
|
|
1363
|
+
let r = ir(e, t);
|
|
1364
1364
|
if (r >= 0)
|
|
1365
1365
|
return r;
|
|
1366
|
-
if (e.oneOf.length === 1 &&
|
|
1366
|
+
if (e.oneOf.length === 1 && Qt(e.oneOf[0]))
|
|
1367
1367
|
return 0;
|
|
1368
1368
|
if (he(e.oneOf[0])) {
|
|
1369
|
-
let o =
|
|
1369
|
+
let o = ir(e, e.default);
|
|
1370
1370
|
if (o >= 0)
|
|
1371
1371
|
return o;
|
|
1372
1372
|
}
|
|
1373
|
-
return
|
|
1373
|
+
return it(e) && _(t) && Object.keys(t).length >= 1 ? Tt(e, t) : it(e) && !Y(e.default) && _(e.default) && Object.keys(e.default).length >= 1 ? Tt(e, e.default) : null;
|
|
1374
1374
|
};
|
|
1375
|
-
var
|
|
1375
|
+
var ir = (e, t) => e.oneOf.findIndex((r) => !Y(t) && K(t, r));
|
|
1376
1376
|
function Tt(e, t) {
|
|
1377
1377
|
if (t == null)
|
|
1378
1378
|
return null;
|
|
1379
|
-
let r = e.oneOf.map((o) => md(o).reduce((n, [a, i]) => he(i) && i.const === t[a] ? n + 2 :
|
|
1379
|
+
let r = e.oneOf.map((o) => md(o).reduce((n, [a, i]) => he(i) && i.const === t[a] ? n + 2 : Qt(i) && typeof t[a] != "undefined" ? n + 1 : n, 0));
|
|
1380
1380
|
return r.every((o) => o === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1381
1381
|
}
|
|
1382
1382
|
function md(e) {
|
|
1383
1383
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1384
1384
|
}
|
|
1385
|
-
var
|
|
1386
|
-
let { defaultTitle: o = "", defaultDescription: n = "", defaultIcon: a, defaultImage: i } = r, l =
|
|
1385
|
+
var Qo = (e, t, r = {}) => {
|
|
1386
|
+
let { defaultTitle: o = "", defaultDescription: n = "", defaultIcon: a, defaultImage: i } = r, l = Ze({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Ui }), u = Ze({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Ui }), c = Ze({ schema: e, model: t, providesProp: "providesIcon", getValueFromSchema: (h) => {
|
|
1387
1387
|
var f;
|
|
1388
1388
|
return (f = h.icon) != null ? f : null;
|
|
1389
|
-
} }), d =
|
|
1389
|
+
} }), d = Ze({ schema: e, model: t, providesProp: "providesImage", getValueFromSchema: (h) => {
|
|
1390
1390
|
var f;
|
|
1391
1391
|
return (f = h.image) != null ? f : null;
|
|
1392
1392
|
} });
|
|
1393
1393
|
return { value: t, title: l || o, description: u || n, icon: c || a, image: d || i };
|
|
1394
1394
|
};
|
|
1395
|
-
var
|
|
1395
|
+
var Ze = (e) => {
|
|
1396
1396
|
let { schema: t, model: r, providesProp: o, getValueFromSchema: n } = e;
|
|
1397
1397
|
if (pd(t.summary, o))
|
|
1398
1398
|
return n(t, r);
|
|
1399
|
-
switch (
|
|
1399
|
+
switch (st(t)) {
|
|
1400
1400
|
case "object":
|
|
1401
1401
|
return cd(e);
|
|
1402
1402
|
case "oneOf":
|
|
@@ -1410,7 +1410,7 @@ var require_main_min = __commonJS({
|
|
|
1410
1410
|
var cd = (e) => {
|
|
1411
1411
|
let { schema: t, model: r } = e, o = t;
|
|
1412
1412
|
for (let n in o.properties) {
|
|
1413
|
-
let a = o.properties[n], i =
|
|
1413
|
+
let a = o.properties[n], i = _(r) && n in r ? r[n] : null, l = Ze(w(s({}, e), { schema: a, model: i }));
|
|
1414
1414
|
if (l)
|
|
1415
1415
|
return l;
|
|
1416
1416
|
}
|
|
@@ -1418,36 +1418,36 @@ var require_main_min = __commonJS({
|
|
|
1418
1418
|
};
|
|
1419
1419
|
var dd = (e) => {
|
|
1420
1420
|
let { schema: t, model: r } = e;
|
|
1421
|
-
if (
|
|
1422
|
-
if (
|
|
1421
|
+
if (it(t)) {
|
|
1422
|
+
if (!_(r))
|
|
1423
1423
|
return null;
|
|
1424
1424
|
let a = Tt(t, r);
|
|
1425
1425
|
if (a === null || a < 0)
|
|
1426
1426
|
return null;
|
|
1427
1427
|
let i = t.oneOf[a];
|
|
1428
|
-
return
|
|
1428
|
+
return Ze(w(s({}, e), { schema: i }));
|
|
1429
1429
|
}
|
|
1430
|
-
let o = t, n =
|
|
1431
|
-
return n === null || n < 0 ? null :
|
|
1430
|
+
let o = t, n = Xr(o, r);
|
|
1431
|
+
return n === null || n < 0 ? null : Ze(w(s({}, e), { schema: o.oneOf[n] }));
|
|
1432
1432
|
};
|
|
1433
1433
|
var ud = (e) => {
|
|
1434
1434
|
let { schema: t } = e, r = t;
|
|
1435
1435
|
for (let o of r.allOf) {
|
|
1436
|
-
let n =
|
|
1436
|
+
let n = Ze(w(s({}, e), { schema: o }));
|
|
1437
1437
|
if (n)
|
|
1438
1438
|
return n;
|
|
1439
1439
|
}
|
|
1440
1440
|
return null;
|
|
1441
1441
|
};
|
|
1442
|
-
var
|
|
1442
|
+
var Ui = (e, t) => he(e) ? e.title ? e.title : I(e.const) ? e.const : null : Ur(t) ? t : null;
|
|
1443
1443
|
var pd = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1444
1444
|
var Se = require("react/jsx-runtime");
|
|
1445
1445
|
var fd = ({ schema: e, model: t, errors: r, submitted: o, onChange: n }) => {
|
|
1446
|
-
let [a, i] = (0,
|
|
1447
|
-
if (T(t) && !
|
|
1446
|
+
let [a, i] = (0, Yr.useState)(null), [l, u] = (0, Yr.useState)(() => {
|
|
1447
|
+
if (T(t) && !G(t))
|
|
1448
1448
|
throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
|
|
1449
|
-
return t ? t.map((b) =>
|
|
1450
|
-
}), [c, d] = (0,
|
|
1449
|
+
return t ? t.map((b) => Qo(e.items, b, e == null ? void 0 : e.summary)) : null;
|
|
1450
|
+
}), [c, d] = (0, Yr.useState)({ item: null, model: null }), h = (b) => {
|
|
1451
1451
|
let S = b ? b.map(({ value: F }) => F) : null;
|
|
1452
1452
|
n({ model: S, triggerSchema: e.items, triggerModel: S });
|
|
1453
1453
|
}, f = () => {
|
|
@@ -1455,12 +1455,12 @@ var require_main_min = __commonJS({
|
|
|
1455
1455
|
}, m = (b) => {
|
|
1456
1456
|
d({ item: b, model: b.value }), i("edit");
|
|
1457
1457
|
}, p = (b) => {
|
|
1458
|
-
let S = b === "remove" ? null :
|
|
1458
|
+
let S = b === "remove" ? null : Qo(e.items, c.model, e == null ? void 0 : e.summary), F = yd(b, { originalItem: c.item, updatedItem: S, itemSummaries: l });
|
|
1459
1459
|
u(F), h(F), d({ item: null, model: null }), i(null);
|
|
1460
1460
|
}, y = () => {
|
|
1461
1461
|
d({ item: null, model: null }), i(null);
|
|
1462
|
-
}, { formatMessage: g } = (0,
|
|
1463
|
-
return (0, Se.jsxs)(Se.Fragment, { children: [e.title && (0, Se.jsx)(Nt.Header, { title: e.title }), l && l.map((b) => (0, Se.jsx)(
|
|
1462
|
+
}, { formatMessage: g } = (0, Hi.useIntl)();
|
|
1463
|
+
return (0, Se.jsxs)(Se.Fragment, { children: [e.title && (0, Se.jsx)(Nt.Header, { title: e.title }), l && l.map((b) => (0, Se.jsx)(Ti, { item: b, onClick: () => m(b) }, JSON.stringify(b))), (0, Se.jsx)(Nt.NavigationOption, { onClick: f, media: (0, Se.jsx)(zi.Plus, {}), title: e.addItemTitle || g(pt.addItemTitle) }), (0, Se.jsx)(Nt.Modal, { open: a !== null, onClose: y, title: (a === "add" ? e.addItemTitle : e.editItemTitle) || g(pt.addItemTitle), body: (0, Se.jsx)(ji, { type: a != null ? a : "add", schema: e, model: c.model, errors: r, submitted: o, onAction: p, onModelChange: ({ model: b }) => d(w(s({}, c), { model: b })) }) })] });
|
|
1464
1464
|
};
|
|
1465
1465
|
var yd = (e, { originalItem: t, updatedItem: r, itemSummaries: o }) => {
|
|
1466
1466
|
if (e === "remove")
|
|
@@ -1476,131 +1476,131 @@ var require_main_min = __commonJS({
|
|
|
1476
1476
|
return null;
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
var
|
|
1480
|
-
var
|
|
1481
|
-
var
|
|
1479
|
+
var qi = fd;
|
|
1480
|
+
var en = require("react/jsx-runtime");
|
|
1481
|
+
var Gi = (e) => {
|
|
1482
1482
|
let { schema: t } = e;
|
|
1483
|
-
if (
|
|
1484
|
-
return (0,
|
|
1483
|
+
if (ja(t))
|
|
1484
|
+
return (0, en.jsx)(Zo, w(s({}, e), { schema: t }));
|
|
1485
1485
|
if (Oe(t))
|
|
1486
|
-
return (0,
|
|
1486
|
+
return (0, en.jsx)(qi, w(s({}, e), { schema: t }));
|
|
1487
1487
|
throw new Error("Invalid array list schema");
|
|
1488
1488
|
};
|
|
1489
|
-
|
|
1490
|
-
var
|
|
1491
|
-
var
|
|
1492
|
-
var
|
|
1489
|
+
Gi.defaultProps = { errors: null, required: false };
|
|
1490
|
+
var $i = Gi;
|
|
1491
|
+
var _i = require("react/jsx-runtime");
|
|
1492
|
+
var Wi = (e) => {
|
|
1493
1493
|
let { schema: t } = e;
|
|
1494
1494
|
if (Oe(t))
|
|
1495
|
-
return (0,
|
|
1495
|
+
return (0, _i.jsx)($i, s({}, e));
|
|
1496
1496
|
throw new Error("Not implemented");
|
|
1497
1497
|
};
|
|
1498
|
-
|
|
1499
|
-
var
|
|
1500
|
-
var
|
|
1501
|
-
var
|
|
1498
|
+
Wi.defaultProps = { required: false };
|
|
1499
|
+
var tn = Wi;
|
|
1500
|
+
var Ki = Le(lt());
|
|
1501
|
+
var Zr = require("react");
|
|
1502
1502
|
var Ve = require("react/jsx-runtime");
|
|
1503
1503
|
var hd = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1504
|
-
var
|
|
1505
|
-
let [t, r] = (0,
|
|
1504
|
+
var Ji = (e) => {
|
|
1505
|
+
let [t, r] = (0, Zr.useState)(() => s({}, se(e.model, e.schema))), o = (c, d) => {
|
|
1506
1506
|
d.model !== null ? t[c] = d.model : delete t[c], r(t), e.onChange(w(s({}, d), { model: t }));
|
|
1507
1507
|
}, n = (c) => e.schema.required && e.schema.required.includes(c);
|
|
1508
|
-
(0,
|
|
1508
|
+
(0, Zr.useEffect)(() => {
|
|
1509
1509
|
let c = se(t, e.schema) || {};
|
|
1510
|
-
r(c),
|
|
1510
|
+
r(c), Je(c, t) || e.onChange({ model: c, triggerSchema: e.schema, triggerModel: c });
|
|
1511
1511
|
}, [e.schema]);
|
|
1512
1512
|
let a = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), i = (c) => typeof e.schema.properties[c] != "undefined", l = Array.from(a).filter(i), u = e.errors;
|
|
1513
|
-
return (0, Ve.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, Ve.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, Ve.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, Ve.jsx)(le, { component: e.schema.alert }), (0, Ve.jsx)("div", { className: "row", children: l.map((c) => (0, Ve.jsx)("div", { className: (0,
|
|
1513
|
+
return (0, Ve.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, Ve.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, Ve.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, Ve.jsx)(le, { component: e.schema.alert }), (0, Ve.jsx)("div", { className: "row", children: l.map((c) => (0, Ve.jsx)("div", { className: (0, Ki.default)(hd(e.schema.properties[c].width)), children: (0, Ve.jsx)(pe, { schema: e.schema.properties[c], model: e.model && e.model[c], errors: u && u[c], submitted: e.submitted, required: n(c), disabled: e.disabled, onChange: (d) => o(c, d), onPersistAsync: e.onPersistAsync }) }, c)) })] });
|
|
1514
1514
|
};
|
|
1515
|
-
|
|
1516
|
-
var
|
|
1517
|
-
var
|
|
1515
|
+
Ji.defaultProps = { hideTitle: false, disabled: false };
|
|
1516
|
+
var sr = Ji;
|
|
1517
|
+
var ls = Le(lt());
|
|
1518
1518
|
var Ee = require("react");
|
|
1519
|
-
var
|
|
1519
|
+
var Qr = require("@transferwise/components");
|
|
1520
|
+
var Zi = require("react-intl");
|
|
1520
1521
|
var Xi = require("react-intl");
|
|
1521
|
-
var
|
|
1522
|
-
var
|
|
1523
|
-
var en = require("react/jsx-runtime");
|
|
1522
|
+
var Yi = (0, Xi.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
|
|
1523
|
+
var rn = require("react/jsx-runtime");
|
|
1524
1524
|
var gd = (e) => {
|
|
1525
|
-
let t = (0,
|
|
1526
|
-
return (0,
|
|
1525
|
+
let t = (0, Zi.useIntl)();
|
|
1526
|
+
return (0, rn.jsx)(Qr.Info, { className: "m-l-1", content: (0, rn.jsx)(Qr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(Yi.helpAria) });
|
|
1527
1527
|
};
|
|
1528
1528
|
var Ue = gd;
|
|
1529
|
-
var
|
|
1530
|
-
var
|
|
1531
|
-
var
|
|
1529
|
+
var is = require("react");
|
|
1530
|
+
var J = require("@transferwise/components");
|
|
1531
|
+
var rs = require("react");
|
|
1532
1532
|
var Rt = (e, t = {}) => {
|
|
1533
1533
|
let { coerceValue: r = false } = t;
|
|
1534
1534
|
if (!k(e)) {
|
|
1535
1535
|
if (T(e)) {
|
|
1536
|
-
|
|
1536
|
+
ft({ received: "object", expected: "string" });
|
|
1537
1537
|
return;
|
|
1538
1538
|
}
|
|
1539
1539
|
if (!I(e)) {
|
|
1540
1540
|
if (r)
|
|
1541
|
-
return
|
|
1542
|
-
|
|
1541
|
+
return nn({ received: typeof e, expected: "string" }), String(e);
|
|
1542
|
+
ft({ received: typeof e, expected: "string" });
|
|
1543
1543
|
return;
|
|
1544
1544
|
}
|
|
1545
1545
|
return e;
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
|
-
var
|
|
1548
|
+
var on = (e, t = {}) => {
|
|
1549
1549
|
let { coerceValue: r = false } = t;
|
|
1550
1550
|
if (k(e))
|
|
1551
1551
|
return;
|
|
1552
|
-
if (
|
|
1552
|
+
if (V(e))
|
|
1553
1553
|
return e;
|
|
1554
1554
|
let o = { received: typeof e, expected: "string or number" };
|
|
1555
1555
|
if (T(e)) {
|
|
1556
|
-
|
|
1556
|
+
ft(o);
|
|
1557
1557
|
return;
|
|
1558
1558
|
}
|
|
1559
1559
|
if (!I(e)) {
|
|
1560
1560
|
if (r)
|
|
1561
|
-
return
|
|
1562
|
-
|
|
1561
|
+
return nn(o), String(e);
|
|
1562
|
+
ft(o);
|
|
1563
1563
|
return;
|
|
1564
1564
|
}
|
|
1565
1565
|
return e;
|
|
1566
1566
|
};
|
|
1567
|
-
var
|
|
1567
|
+
var Qi = (e, t = {}) => {
|
|
1568
1568
|
let { coerceValue: r = false } = t;
|
|
1569
1569
|
if (k(e))
|
|
1570
1570
|
return false;
|
|
1571
1571
|
if (!Ae(e)) {
|
|
1572
1572
|
if (r)
|
|
1573
|
-
return
|
|
1574
|
-
|
|
1573
|
+
return nn({ received: typeof e, expected: "boolean" }), !!e;
|
|
1574
|
+
ft({ received: typeof e, expected: "boolean" });
|
|
1575
1575
|
return;
|
|
1576
1576
|
}
|
|
1577
1577
|
return e;
|
|
1578
1578
|
};
|
|
1579
|
-
var
|
|
1579
|
+
var es = (e) => {
|
|
1580
1580
|
if (!k(e)) {
|
|
1581
1581
|
if (!(e instanceof Date) && !I(e)) {
|
|
1582
|
-
|
|
1582
|
+
ft({ received: typeof e, expected: "string or Date" });
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
1585
|
return e;
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
|
-
var
|
|
1588
|
+
var ts = (e) => {
|
|
1589
1589
|
if (k(e))
|
|
1590
1590
|
return null;
|
|
1591
1591
|
if (!I(e))
|
|
1592
|
-
return
|
|
1593
|
-
let t =
|
|
1592
|
+
return ft({ received: typeof e, expected: "string", fallback: "null" }), null;
|
|
1593
|
+
let t = Da(e);
|
|
1594
1594
|
return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
|
|
1595
1595
|
};
|
|
1596
|
-
var
|
|
1596
|
+
var nn = ({ received: e, expected: t }) => {
|
|
1597
1597
|
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.`);
|
|
1598
1598
|
};
|
|
1599
|
-
var
|
|
1599
|
+
var ft = ({ received: e, expected: t, fallback: r = "undefined" }) => {
|
|
1600
1600
|
console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Falling back to ${r}`);
|
|
1601
1601
|
};
|
|
1602
|
-
var
|
|
1603
|
-
var Bt = class extends
|
|
1602
|
+
var Z = require("react/jsx-runtime");
|
|
1603
|
+
var Bt = class extends rs.PureComponent {
|
|
1604
1604
|
constructor(r) {
|
|
1605
1605
|
super(r);
|
|
1606
1606
|
this.getAutocompleteStatus = () => this.props.autoComplete ? "on" : "disabled";
|
|
@@ -1627,77 +1627,77 @@ var require_main_min = __commonJS({
|
|
|
1627
1627
|
if (this.props.value !== null && typeof this.props.value != "undefined")
|
|
1628
1628
|
return r2.find((o) => this.props.value === o.value);
|
|
1629
1629
|
};
|
|
1630
|
-
this.mapOption = (r2) => w(s({}, r2), { value:
|
|
1630
|
+
this.mapOption = (r2) => w(s({}, r2), { value: V(r2.value) || I(r2.value) ? r2.value : void 0, secondary: r2.note, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
|
|
1631
1631
|
this.state = { selectedOption: r.selectedOption, touched: false, prevValue: r.value };
|
|
1632
1632
|
}
|
|
1633
1633
|
static getDerivedStateFromProps(r, o) {
|
|
1634
1634
|
return o.prevValue !== r.value ? { prevValue: r.value, value: r.value } : null;
|
|
1635
1635
|
}
|
|
1636
1636
|
render() {
|
|
1637
|
-
var
|
|
1638
|
-
let { name: r, placeholder: o, step: n, countryCode: a, type: i, options: l, disabled: u, readOnly: c, required: d, minLength: h, maxLength: f, min: m, max: p, searchPlaceholder: y, searchValue: g, onSearchChange: b, size: S, uploadProps: F, label:
|
|
1637
|
+
var q;
|
|
1638
|
+
let { name: r, placeholder: o, step: n, countryCode: a, type: i, options: l, disabled: u, readOnly: c, required: d, minLength: h, maxLength: f, min: m, max: p, searchPlaceholder: y, searchValue: g, onSearchChange: b, size: S, uploadProps: F, label: O, monthFormat: A, id: v, minDate: M, maxDate: N, value: x, mode: L, describedBy: H } = this.props;
|
|
1639
1639
|
switch (i) {
|
|
1640
|
-
case
|
|
1641
|
-
return (0,
|
|
1642
|
-
case
|
|
1643
|
-
return (0,
|
|
1644
|
-
case
|
|
1645
|
-
let
|
|
1646
|
-
return (0,
|
|
1647
|
-
var
|
|
1648
|
-
this.setState({ selectedOption: R != null ? R : void 0 }), this.props.onChange((
|
|
1649
|
-
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange:
|
|
1640
|
+
case U.RADIO:
|
|
1641
|
+
return (0, Z.jsx)(J.RadioGroup, { radios: l.map(this.mapOption), name: r, selectedValue: on(x, { coerceValue: true }), onChange: this.handleOnChange });
|
|
1642
|
+
case U.CHECKBOX:
|
|
1643
|
+
return (0, Z.jsx)(J.Checkbox, { checked: Qi(x, { coerceValue: true }), disabled: u, label: O, required: d, readOnly: c, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1644
|
+
case U.SELECT: {
|
|
1645
|
+
let P = l.length >= 20;
|
|
1646
|
+
return (0, Z.jsx)(J.Select, { id: v, selected: this.getSelectedOption(l), options: l, search: P, required: d, disabled: u, placeholder: o, searchPlaceholder: y, searchValue: g, onChange: (R) => {
|
|
1647
|
+
var E;
|
|
1648
|
+
this.setState({ selectedOption: R != null ? R : void 0 }), this.props.onChange((E = R == null ? void 0 : R.value) != null ? E : null);
|
|
1649
|
+
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: P ? b : void 0 });
|
|
1650
1650
|
}
|
|
1651
|
-
case
|
|
1652
|
-
return (0,
|
|
1651
|
+
case U.TAB:
|
|
1652
|
+
return (0, Z.jsx)(J.Tabs, { selected: ((q = this.getSelectedOption(l)) == null ? void 0 : q.value) || 0, tabs: l.map((P) => ({ title: P.label, content: (0, Z.jsx)(Z.Fragment, {}), disabled: P.disabled || false })), name: v, onTabSelect: (P) => {
|
|
1653
1653
|
let R = !!this.state.selectedOption;
|
|
1654
|
-
this.setState({ selectedOption: l.find((
|
|
1654
|
+
this.setState({ selectedOption: l.find((E) => E.value === P) }), this.props.onChange(P, R ? "user" : "init");
|
|
1655
1655
|
} });
|
|
1656
|
-
case
|
|
1657
|
-
return (0,
|
|
1658
|
-
this.props.onChange(parseFloat(
|
|
1659
|
-
}, onFocus: this.handleOnFocus, onWheel: (
|
|
1660
|
-
|
|
1661
|
-
}, "aria-describedby":
|
|
1662
|
-
case
|
|
1663
|
-
return (0,
|
|
1664
|
-
case
|
|
1665
|
-
return (0,
|
|
1666
|
-
case
|
|
1667
|
-
case
|
|
1668
|
-
return (0,
|
|
1669
|
-
case
|
|
1670
|
-
return (0,
|
|
1671
|
-
this.handleOnChange(
|
|
1656
|
+
case U.NUMBER:
|
|
1657
|
+
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: v, max: p, min: m, placeholder: o, readOnly: c, required: d, step: n, type: "number", value: on(x, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (P) => {
|
|
1658
|
+
this.props.onChange(parseFloat(P.target.value));
|
|
1659
|
+
}, onFocus: this.handleOnFocus, onWheel: (P) => {
|
|
1660
|
+
P.target instanceof HTMLElement && P.target.blur();
|
|
1661
|
+
}, "aria-describedby": H });
|
|
1662
|
+
case U.HIDDEN:
|
|
1663
|
+
return (0, Z.jsx)("input", { type: "hidden", name: r, value: Rt(x, { coerceValue: true }), id: v });
|
|
1664
|
+
case U.PASSWORD:
|
|
1665
|
+
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: v, placeholder: o, readOnly: c, required: d, type: "password", value: Rt(x, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus, "aria-describedby": H });
|
|
1666
|
+
case U.DATE:
|
|
1667
|
+
case U.DATETIME:
|
|
1668
|
+
return (0, Z.jsx)(J.DateInput, { disabled: u, size: S, value: es(x), mode: L, monthFormat: A, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1669
|
+
case U.DATELOOKUP:
|
|
1670
|
+
return (0, Z.jsx)(J.DateLookup, { value: ts(x), min: M, max: N, placeholder: o, monthFormat: A, disabled: u, onChange: (P) => {
|
|
1671
|
+
this.handleOnChange(La(P));
|
|
1672
1672
|
}, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1673
|
-
case
|
|
1674
|
-
return (0,
|
|
1675
|
-
case
|
|
1676
|
-
let
|
|
1677
|
-
return this.props.displayPattern ? (0,
|
|
1673
|
+
case U.TEL:
|
|
1674
|
+
return (0, Z.jsx)(J.PhoneNumberInput, { disabled: u, countryCode: a, placeholder: o, required: d, searchPlaceholder: y, size: S, initialValue: Rt(x), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1675
|
+
case U.TEXTAREA: {
|
|
1676
|
+
let P = { className: "form-control tw-form-control", id: v, name: r, placeholder: o, value: Rt(x, { coerceValue: true }), readOnly: c, required: d, minLength: h, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: u, autoComplete: this.getAutocompleteStatus() };
|
|
1677
|
+
return this.props.displayPattern ? (0, Z.jsx)(J.TextareaWithDisplayFormat, w(s({ displayPattern: this.props.displayPattern }, P), { onChange: this.handleOnChange })) : (0, Z.jsx)("textarea", w(s({}, P), { onChange: this.handleInputOnChange, "aria-describedby": H }));
|
|
1678
1678
|
}
|
|
1679
|
-
case
|
|
1680
|
-
case
|
|
1681
|
-
return (0,
|
|
1682
|
-
this.handleOnChange(
|
|
1679
|
+
case U.FILE:
|
|
1680
|
+
case U.UPLOAD:
|
|
1681
|
+
return (0, Z.jsx)(J.Upload, w(s({}, F), { usAccept: F.usAccept || "*", usDisabled: F.usDisabled || u, onSuccess: (P) => {
|
|
1682
|
+
this.handleOnChange(P);
|
|
1683
1683
|
}, onFailure: () => {
|
|
1684
1684
|
this.handleOnChange(null);
|
|
1685
1685
|
}, onCancel: () => {
|
|
1686
1686
|
this.handleOnChange(null);
|
|
1687
1687
|
} }));
|
|
1688
|
-
case
|
|
1688
|
+
case U.TEXT:
|
|
1689
1689
|
default: {
|
|
1690
|
-
let
|
|
1691
|
-
return this.props.displayPattern ? (0,
|
|
1690
|
+
let P = { type: "text", className: "form-control", id: v, name: r, placeholder: o, value: Rt(x, { coerceValue: true }), readOnly: c, required: d, minLength: h, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: u, autoComplete: this.getAutocompleteStatus() };
|
|
1691
|
+
return this.props.displayPattern ? (0, Z.jsx)(J.InputWithDisplayFormat, w(s({ displayPattern: this.props.displayPattern }, P), { onChange: this.handleOnChange })) : (0, Z.jsx)("input", w(s({}, P), { onChange: this.handleInputOnChange, "aria-describedby": H }));
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
1695
|
};
|
|
1696
1696
|
var be = Bt;
|
|
1697
|
-
be.Type =
|
|
1698
|
-
var
|
|
1697
|
+
be.Type = U, be.Size = Ja, be.MonthFormat = Ka, be.DateMode = _a, 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: Bt.DateMode.DAY_MONTH_YEAR, monthFormat: Bt.MonthFormat.LONG, onBlur: null, onFocus: null, onSearchChange: null, options: [], placeholder: null, readOnly: false, required: false, searchPlaceholder: null, searchValue: "", selectedOption: null, size: Bt.Size.MEDIUM, step: 1, type: Bt.Type.TEXT, uploadProps: {}, value: null };
|
|
1698
|
+
var Qe = require("@transferwise/components");
|
|
1699
1699
|
var we = require("react/jsx-runtime");
|
|
1700
|
-
var
|
|
1700
|
+
var os = (e, t) => {
|
|
1701
1701
|
switch (t) {
|
|
1702
1702
|
case "select":
|
|
1703
1703
|
return bd(e);
|
|
@@ -1706,26 +1706,26 @@ var require_main_min = __commonJS({
|
|
|
1706
1706
|
return Sd(e);
|
|
1707
1707
|
}
|
|
1708
1708
|
};
|
|
1709
|
-
var Sd = (e) => s(s(s({ label: e.title, value: e.const },
|
|
1710
|
-
var bd = (e) => s(s(s(s(s({ label: e.title, value: e.const },
|
|
1711
|
-
var wd = (e) =>
|
|
1709
|
+
var Sd = (e) => s(s(s({ label: e.title, value: e.const }, ns(e.title, e.description)), jt(e)), as(e.disabled));
|
|
1710
|
+
var bd = (e) => s(s(s(s(s({ label: e.title, value: e.const }, ns(e.title, e.description)), Cd(e.icon)), Fd(e.image)), as(e.disabled)), wd(e.keywords));
|
|
1711
|
+
var wd = (e) => G(e) ? { searchStrings: e } : {};
|
|
1712
1712
|
var Fd = (e) => e != null && e.url ? { icon: (0, we.jsx)("div", { className: "media", children: (0, we.jsx)("div", { className: "np-option__no-media-circle", children: (0, we.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
|
|
1713
|
-
var Cd = (e) => e != null && e.name && It(e.name) ? { currency: e.name.substring(5) } : e != null && e.name &&
|
|
1714
|
-
var jt = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, we.jsx)(
|
|
1715
|
-
var
|
|
1716
|
-
var
|
|
1713
|
+
var Cd = (e) => e != null && e.name && It(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && qo(e.name) ? { icon: (0, we.jsx)(Xe, { type: e.name }) } : e != null && e.text ? { icon: (0, we.jsx)("span", { children: e.text }) } : null;
|
|
1714
|
+
var jt = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, we.jsx)(Qe.Avatar, { type: Qe.AvatarType.THUMBNAIL, children: (0, we.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && qo(t.name) ? { avatar: (0, we.jsx)(Qe.Avatar, { type: Qe.AvatarType.ICON, children: (0, we.jsx)(Xe, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, we.jsx)(Qe.Avatar, { type: Qe.AvatarType.INITIALS, children: t.text }) } : null;
|
|
1715
|
+
var eo = ({ accepts: e }) => s({}, G(e) && { usAccept: e.join(",") });
|
|
1716
|
+
var ns = (e, t) => {
|
|
1717
1717
|
if (e && t)
|
|
1718
1718
|
return { [(e + t).length > 50 ? "secondary" : "note"]: t };
|
|
1719
1719
|
};
|
|
1720
|
-
var
|
|
1721
|
-
if (!
|
|
1720
|
+
var as = (e) => {
|
|
1721
|
+
if (!Y(e) && !k(e))
|
|
1722
1722
|
return { disabled: e };
|
|
1723
1723
|
};
|
|
1724
|
-
var
|
|
1724
|
+
var an = require("react/jsx-runtime");
|
|
1725
1725
|
var xd = (e) => e === "string" || e === "number";
|
|
1726
|
-
var
|
|
1726
|
+
var sn = (e) => {
|
|
1727
1727
|
if (ye(e))
|
|
1728
|
-
return e.control ===
|
|
1728
|
+
return e.control === U.TAB && e.oneOf.length > 3 ? U.SELECT : e.oneOf.length === 2 && !e.control ? U.RADIO : e.control || U.SELECT;
|
|
1729
1729
|
if ("control" in e && e.control)
|
|
1730
1730
|
return e.control;
|
|
1731
1731
|
if (e.type === "string")
|
|
@@ -1743,49 +1743,49 @@ var require_main_min = __commonJS({
|
|
|
1743
1743
|
}
|
|
1744
1744
|
return e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1745
1745
|
};
|
|
1746
|
-
var vd = (e, t) => e.oneOf ? e.oneOf.map((r) =>
|
|
1747
|
-
var
|
|
1748
|
-
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: i, onBlur: l, onSearchChange: u, describedBy: c } = e, d = Ot(), h = (S) => xd(r.type) && (k(S) ||
|
|
1749
|
-
a(
|
|
1750
|
-
}, m =
|
|
1751
|
-
(0,
|
|
1746
|
+
var vd = (e, t) => e.oneOf ? e.oneOf.map((r) => os(r, t)) : null;
|
|
1747
|
+
var ss = (e) => {
|
|
1748
|
+
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: i, onBlur: l, onSearchChange: u, describedBy: c } = e, d = Ot(), h = (S) => xd(r.type) && (k(S) || Y(S)) ? "" : S, f = (S, F) => {
|
|
1749
|
+
a(We(S, r), F);
|
|
1750
|
+
}, m = sn(r);
|
|
1751
|
+
(0, is.useEffect)(() => {
|
|
1752
1752
|
Ad(r, d, m);
|
|
1753
1753
|
}, [JSON.stringify(r), d, m]);
|
|
1754
|
-
let p = r.values || vd(r, m), y = { onFocus: i, onBlur: l, onSearchChange: u, onChange: f }, g = h(o), b = { id: t, name: t, label: r.title, options: p || [], placeholder: r.placeholder, autoComplete: !r.help, disabled: n || r.disabled, displayPattern: r.displayFormat, uploadProps:
|
|
1755
|
-
return (0,
|
|
1754
|
+
let p = r.values || vd(r, m), y = { onFocus: i, onBlur: l, onSearchChange: u, onChange: f }, g = h(o), b = { id: t, name: t, label: r.title, options: p || [], placeholder: r.placeholder, autoComplete: !r.help, disabled: n || r.disabled, displayPattern: r.displayFormat, uploadProps: eo(r), describedBy: c };
|
|
1755
|
+
return (0, an.jsx)("div", { "aria-describedby": c, children: (0, an.jsx)(be, s(s({ type: m, value: g }, y), b)) });
|
|
1756
1756
|
};
|
|
1757
|
-
|
|
1757
|
+
ss.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1758
1758
|
var Ad = (e, t, r) => {
|
|
1759
1759
|
ye(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.");
|
|
1760
1760
|
};
|
|
1761
|
-
var
|
|
1761
|
+
var lr = ss;
|
|
1762
1762
|
var ae = require("react/jsx-runtime");
|
|
1763
|
-
var
|
|
1764
|
-
let t = oe(), [r, o] = (0, Ee.useState)(false), [n, a] = (0, Ee.useState)(false), [i, l] = (0, Ee.useState)(false), u = (0, Ee.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), [c, d] = (0, Ee.useState)(
|
|
1765
|
-
m("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength:
|
|
1763
|
+
var ms = (e) => {
|
|
1764
|
+
let t = oe(), [r, o] = (0, Ee.useState)(false), [n, a] = (0, Ee.useState)(false), [i, l] = (0, Ee.useState)(false), u = (0, Ee.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), [c, d] = (0, Ee.useState)(Xr(e.schema, e.model)), [h, f] = (0, Ee.useState)(kd(e.model, e.schema.oneOf)), m = qa(t, 200), p = (M) => {
|
|
1765
|
+
m("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: M.length });
|
|
1766
1766
|
};
|
|
1767
1767
|
if ((0, Ee.useEffect)(() => {
|
|
1768
|
-
let
|
|
1769
|
-
|
|
1770
|
-
}, [e.schema]), !
|
|
1768
|
+
let M = ir(e.schema, e.model), N = ir(e.schema, e.schema.default);
|
|
1769
|
+
M === -1 && N >= 0 && S(N, "init");
|
|
1770
|
+
}, [e.schema]), !G(e.schema.oneOf))
|
|
1771
1771
|
return console.error("Incorrect format", e.schema), null;
|
|
1772
|
-
let y = (
|
|
1773
|
-
f([...h.slice(0,
|
|
1772
|
+
let y = (M, N) => {
|
|
1773
|
+
f([...h.slice(0, M), N.model, ...h.slice(M + 1)]), o(true), e.onChange(N);
|
|
1774
1774
|
}, g = () => {
|
|
1775
1775
|
a(true);
|
|
1776
1776
|
}, b = () => {
|
|
1777
1777
|
a(false), l(true);
|
|
1778
|
-
}, S = (
|
|
1779
|
-
d(
|
|
1780
|
-
let
|
|
1781
|
-
if (he(
|
|
1782
|
-
let L =
|
|
1778
|
+
}, S = (M, N) => {
|
|
1779
|
+
d(M);
|
|
1780
|
+
let x = e.schema.oneOf[M];
|
|
1781
|
+
if (he(x)) {
|
|
1782
|
+
let L = x.const;
|
|
1783
1783
|
e.onChange({ model: L, triggerSchema: e.schema, triggerModel: L, type: N });
|
|
1784
1784
|
} else
|
|
1785
|
-
e.onChange({ model: h[
|
|
1786
|
-
N !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId:
|
|
1787
|
-
}, F = Ed(e.schema),
|
|
1788
|
-
return (0, ae.jsxs)(ae.Fragment, { children: [(e.schema.oneOf.length > 1 || he(e.schema.oneOf[0])) && (0, ae.jsxs)(ae.Fragment, { children: [(0, ae.jsxs)("div", { className: (0,
|
|
1785
|
+
e.onChange({ model: h[M], triggerSchema: x, triggerModel: h[M], type: N });
|
|
1786
|
+
N !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: x == null ? void 0 : x.analyticsId });
|
|
1787
|
+
}, F = Ed(e.schema), O = Pd(e, c), A = { "form-group": true, "has-error": !r && e.errors && !Pt(e.errors) || (e.submitted || r && i) && O.length }, v = `${u}-feedback`;
|
|
1788
|
+
return (0, ae.jsxs)(ae.Fragment, { children: [(e.schema.oneOf.length > 1 || he(e.schema.oneOf[0])) && (0, ae.jsxs)(ae.Fragment, { children: [(0, ae.jsxs)("div", { className: (0, ls.default)(A), children: [Od(e.schema, u), (0, ae.jsx)(lr, { id: u, schema: F, value: c, disabled: e.disabled, onChange: S, onFocus: g, onBlur: b, onSearchChange: p, describedBy: v }), (0, ae.jsx)(je, { id: v, changed: r, focused: n, blurred: i, submitted: e.submitted, errors: Md(e.errors), schema: e.schema, validations: O, infoMessage: null })] }), e.schema.alert && (0, ae.jsx)(le, { component: e.schema.alert })] }), Qt(e.schema.oneOf[c]) && (0, ae.jsx)(pe, { schema: e.schema.oneOf[c], model: h[c], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (M) => y(c, M), onPersistAsync: e.onPersistAsync })] });
|
|
1789
1789
|
};
|
|
1790
1790
|
function Od(e, t) {
|
|
1791
1791
|
let r = e.help ? (0, ae.jsx)(Ue, { help: e.help }) : null, o = he(e.oneOf[0]) ? (0, ae.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) : (0, ae.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] });
|
|
@@ -1793,7 +1793,7 @@ var require_main_min = __commonJS({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
function Pd(e, t) {
|
|
1795
1795
|
let r = e.schema.oneOf[t != null ? t : -1];
|
|
1796
|
-
return he(r) ?
|
|
1796
|
+
return he(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
|
|
1797
1797
|
}
|
|
1798
1798
|
function Md(e) {
|
|
1799
1799
|
return typeof e == "string" ? e : null;
|
|
@@ -1808,111 +1808,111 @@ var require_main_min = __commonJS({
|
|
|
1808
1808
|
let { title: r, description: o, disabled: n = false, icon: a, image: i, keywords: l } = e;
|
|
1809
1809
|
return { title: r, description: o, disabled: n, icon: a, image: i, const: t, keywords: l };
|
|
1810
1810
|
}
|
|
1811
|
-
|
|
1812
|
-
var
|
|
1813
|
-
var
|
|
1814
|
-
var
|
|
1815
|
-
var
|
|
1816
|
-
var
|
|
1817
|
-
var
|
|
1818
|
-
var
|
|
1819
|
-
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: n, idProperty: a, usAccept: i, maxSize: l, usPlaceholder: u, onSuccess: c, onFailure: d, onCancel: h } = e, f = oe(), m = (0,
|
|
1820
|
-
return (0,
|
|
1811
|
+
ms.defaultProps = { required: false, disabled: false };
|
|
1812
|
+
var ln = ms;
|
|
1813
|
+
var ps = Le(lt());
|
|
1814
|
+
var yt = require("react");
|
|
1815
|
+
var to = require("@transferwise/components");
|
|
1816
|
+
var cs = require("react");
|
|
1817
|
+
var us = require("react/jsx-runtime");
|
|
1818
|
+
var ds = (e) => {
|
|
1819
|
+
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: n, idProperty: a, usAccept: i, maxSize: l, usPlaceholder: u, onSuccess: c, onFailure: d, onCancel: h } = e, f = oe(), m = (0, cs.useMemo)(() => n ? [{ id: n, status: to.Status.SUCCEEDED }] : [], [n]), p = (y) => (f("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(`${o.url}`, { method: o.method || "POST", body: y }).then((g) => g.ok ? (c && c(g.clone()), g.json().then((b) => ({ id: b[a] }))) : (d && d({ response: g }), Promise.reject())));
|
|
1820
|
+
return (0, us.jsx)(to.UploadInput, { id: t, fileInputName: o.fileInputName, files: m, uploadButtonTitle: e.usLabel, sizeLimit: l ? Br(l) : void 0, fileTypes: i, description: u, onUploadFile: p, onDeleteFile: (y) => (h && h(), Promise.resolve()) });
|
|
1821
1821
|
};
|
|
1822
1822
|
var Vt = require("react/jsx-runtime");
|
|
1823
|
-
var
|
|
1824
|
-
let [t, r] = (0,
|
|
1825
|
-
(0,
|
|
1826
|
-
e.submitted && i(
|
|
1823
|
+
var fs = (e) => {
|
|
1824
|
+
let [t, r] = (0, yt.useState)({}), [o, n] = (0, yt.useState)(null), [a, i] = (0, yt.useState)([]), [l, u] = (0, yt.useState)(false), c = ne(), d = oe();
|
|
1825
|
+
(0, yt.useEffect)(() => {
|
|
1826
|
+
e.submitted && i(_e(e.model, e.schema, !!e.required));
|
|
1827
1827
|
}, [e.model, e.submitted]);
|
|
1828
|
-
let f = async (
|
|
1829
|
-
let
|
|
1828
|
+
let f = async (A, v) => {
|
|
1829
|
+
let M = await A.json(), N = dn(e.schema.persistAsync.idProperty, M);
|
|
1830
1830
|
e.onChange({ model: N, triggerSchema: e.schema, triggerModel: N }), u(true), d("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
|
|
1831
|
-
}, m = async (
|
|
1832
|
-
if (
|
|
1833
|
-
let
|
|
1834
|
-
r(
|
|
1831
|
+
}, m = async (A) => {
|
|
1832
|
+
if (A.response && kr(A.response.status)) {
|
|
1833
|
+
let v = await A.response.json();
|
|
1834
|
+
r(v.validation || {}), n([e.schema.persistAsync.param]);
|
|
1835
1835
|
}
|
|
1836
1836
|
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true), d("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
|
|
1837
1837
|
}, p = () => {
|
|
1838
1838
|
n(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true);
|
|
1839
|
-
}, { url: y, method: g } = e.schema.persistAsync, b = o || a, S = { "form-group": true, "has-error": (e.submitted || l) && !!b.length }, F = e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty,
|
|
1840
|
-
return (0, Vt.jsxs)("div", { className: (0,
|
|
1839
|
+
}, { url: y, method: g } = e.schema.persistAsync, b = o || a, S = { "form-group": true, "has-error": (e.submitted || l) && !!b.length }, F = e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, O = `${F}-feedback`;
|
|
1840
|
+
return (0, Vt.jsxs)("div", { className: (0, ps.default)(S), children: [(0, Vt.jsx)("div", { "aria-describedby": O, children: (0, Vt.jsx)(ds, s({ id: F, 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: y, method: g, fileInputName: e.schema.persistAsync.param }, httpClient: c, onSuccess: f, onFailure: m, onCancel: p }, eo(e.schema.persistAsync.schema))) }), (0, Vt.jsx)(je, { id: O, blurred: true, focused: false, changed: l, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: b, validationMessages: s({ required: "Value is required..." }, t), infoMessage: null })] });
|
|
1841
1841
|
};
|
|
1842
|
-
|
|
1843
|
-
var
|
|
1844
|
-
var
|
|
1845
|
-
var
|
|
1842
|
+
fs.defaultProps = { required: false };
|
|
1843
|
+
var cn = fs;
|
|
1844
|
+
var un = require("react/jsx-runtime");
|
|
1845
|
+
var ys = (e) => {
|
|
1846
1846
|
let { schema: t } = e;
|
|
1847
|
-
return t.persistAsync.schema.type === "blob" ? (0,
|
|
1847
|
+
return t.persistAsync.schema.type === "blob" ? (0, un.jsx)(cn, s({}, e)) : (0, un.jsx)(mn, s({}, e));
|
|
1848
1848
|
};
|
|
1849
|
-
|
|
1850
|
-
var
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1849
|
+
ys.defaultProps = { required: false };
|
|
1850
|
+
var pn = ys;
|
|
1851
|
+
var As = require("react");
|
|
1852
|
+
var hs = (e, t) => {
|
|
1853
1853
|
let r = Tt(e, t);
|
|
1854
1854
|
return r !== null ? e.oneOf[r].promoted ? "promoted" : "other" : null;
|
|
1855
1855
|
};
|
|
1856
|
-
var
|
|
1857
|
-
var
|
|
1858
|
-
var
|
|
1856
|
+
var gs = require("@transferwise/components");
|
|
1857
|
+
var fn = require("react/jsx-runtime");
|
|
1858
|
+
var Ss = (e) => {
|
|
1859
1859
|
let { id: t, selection: r, setSelection: o } = e, { promoted: n, other: a, checkedMeans: i } = e.promotion, l = i === "other" ? a.title : (n == null ? void 0 : n.title) || e.promotedOneOf.title, u = i === "other" ? "other" : "promoted", c = i === "other" ? "promoted" : "other", d = r === u;
|
|
1860
|
-
return (0,
|
|
1860
|
+
return (0, fn.jsx)("div", { className: "form-group", children: (0, fn.jsx)(gs.Checkbox, { id: t, label: l, checked: d, onChange: () => {
|
|
1861
1861
|
o(d ? c : u);
|
|
1862
1862
|
} }) });
|
|
1863
1863
|
};
|
|
1864
|
-
|
|
1865
|
-
var
|
|
1866
|
-
var
|
|
1867
|
-
var
|
|
1868
|
-
var
|
|
1864
|
+
Ss.defaultProps = {};
|
|
1865
|
+
var bs = Ss;
|
|
1866
|
+
var ws = require("@transferwise/components");
|
|
1867
|
+
var mr = require("react/jsx-runtime");
|
|
1868
|
+
var Fs = (e) => {
|
|
1869
1869
|
var u, c;
|
|
1870
1870
|
let { id: t, selection: r, setSelection: o, promotion: n, promotedOneOf: a, title: i } = e, l = [s({ value: "promoted", label: ((u = n.promoted) == null ? void 0 : u.title) || a.title, secondary: ((c = n.promoted) == null ? void 0 : c.description) || a.description }, jt(a)), s({ value: "other", label: n.other.title, secondary: n.other.description }, jt(n.other))];
|
|
1871
|
-
return (0,
|
|
1871
|
+
return (0, mr.jsxs)("div", { className: "form-group", children: [i && (0, mr.jsx)("label", { className: "control-label", htmlFor: t, children: i }), (0, mr.jsx)(ws.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: l, id: t, onChange: o })] });
|
|
1872
1872
|
};
|
|
1873
|
-
|
|
1874
|
-
var
|
|
1873
|
+
Fs.defaultProps = { title: void 0 };
|
|
1874
|
+
var Cs = Fs;
|
|
1875
1875
|
var Ut = require("react/jsx-runtime");
|
|
1876
|
-
var
|
|
1876
|
+
var xs = (e) => {
|
|
1877
1877
|
switch (e.promotion.control || "radio") {
|
|
1878
1878
|
case "radio":
|
|
1879
|
-
return (0, Ut.jsx)(
|
|
1879
|
+
return (0, Ut.jsx)(Cs, s({}, e));
|
|
1880
1880
|
case "checkbox":
|
|
1881
|
-
return (0, Ut.jsx)(
|
|
1881
|
+
return (0, Ut.jsx)(bs, s({}, e));
|
|
1882
1882
|
default:
|
|
1883
1883
|
return (0, Ut.jsx)(Ut.Fragment, {});
|
|
1884
1884
|
}
|
|
1885
1885
|
};
|
|
1886
|
-
|
|
1887
|
-
var
|
|
1886
|
+
xs.defaultProps = { id: Me(), title: void 0 };
|
|
1887
|
+
var vs = xs;
|
|
1888
1888
|
var ze = require("react/jsx-runtime");
|
|
1889
|
-
var
|
|
1889
|
+
var Os = (e) => e.promoted === true;
|
|
1890
1890
|
var Dd = (e) => {
|
|
1891
1891
|
var l;
|
|
1892
|
-
let [t, r] = (0,
|
|
1893
|
-
return (0, ze.jsxs)(ze.Fragment, { children: [o && (0, ze.jsx)(le, { component: o }), (0, ze.jsx)(
|
|
1892
|
+
let [t, r] = (0, As.useState)(hs(e.schema, e.model) || ((l = e.schema.promotion) == null ? void 0 : l.default) || "promoted"), o = e.schema.alert, n = e.schema.oneOf.find(Os), a = Ld(n), i = Td(e.schema);
|
|
1893
|
+
return (0, ze.jsxs)(ze.Fragment, { children: [o && (0, ze.jsx)(le, { component: o }), (0, ze.jsx)(vs, { id: e.schema.$id, title: e.schema.title, promotedOneOf: n, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, ze.jsx)(sr, w(s({}, e), { schema: a })), t === "other" && (0, ze.jsx)(pe, w(s({}, e), { schema: i }))] });
|
|
1894
1894
|
};
|
|
1895
1895
|
function Ld(e) {
|
|
1896
1896
|
return w(s({}, e), { title: void 0, description: void 0 });
|
|
1897
1897
|
}
|
|
1898
1898
|
function Td(e) {
|
|
1899
1899
|
var o, n, a;
|
|
1900
|
-
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((i) => !
|
|
1900
|
+
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((i) => !Os(i)), r = (a = (n = e.promotion) == null ? void 0 : n.other.heading) == null ? void 0 : a.text;
|
|
1901
1901
|
return t.length === 1 ? w(s({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
|
|
1902
1902
|
}
|
|
1903
|
-
var
|
|
1904
|
-
var
|
|
1905
|
-
var
|
|
1906
|
-
var
|
|
1907
|
-
var
|
|
1903
|
+
var yn = Dd;
|
|
1904
|
+
var ro = require("@transferwise/components");
|
|
1905
|
+
var Ms = require("react-intl");
|
|
1906
|
+
var Ps = require("react-intl");
|
|
1907
|
+
var hn = (0, Ps.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." } });
|
|
1908
1908
|
var zt = require("react/jsx-runtime");
|
|
1909
1909
|
var Nd = ({ schema: e, model: t }) => {
|
|
1910
|
-
let { title: r = "" } = e, { formatMessage: o } = (0,
|
|
1911
|
-
return (0, zt.jsx)(
|
|
1910
|
+
let { title: r = "" } = e, { formatMessage: o } = (0, Ms.useIntl)(), n = Rd({ schema: e, model: t, formatMessage: o });
|
|
1911
|
+
return (0, zt.jsx)(ro.DefinitionList, { layout: ro.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: n, key: "" }] });
|
|
1912
1912
|
};
|
|
1913
|
-
var
|
|
1913
|
+
var gn = Nd;
|
|
1914
1914
|
function Rd({ schema: e, model: t, formatMessage: r }) {
|
|
1915
|
-
return Ne(e) ? ye(e) ? Bd(e, t) : e.type === "boolean" && Ae(t) ? r(t ?
|
|
1915
|
+
return Ne(e) ? ye(e) ? Bd(e, t) : e.type === "boolean" && Ae(t) ? r(t ? hn.yes : hn.no) : t && t.toString() || "" : "";
|
|
1916
1916
|
}
|
|
1917
1917
|
function Bd(e, t) {
|
|
1918
1918
|
let r = jd(e, t);
|
|
@@ -1926,106 +1926,106 @@ var require_main_min = __commonJS({
|
|
|
1926
1926
|
return r != null && r.avatar ? (0, zt.jsxs)(zt.Fragment, { children: [r.avatar, " ", t] }) : t;
|
|
1927
1927
|
}
|
|
1928
1928
|
var Ie = require("react");
|
|
1929
|
-
var
|
|
1930
|
-
var
|
|
1931
|
-
let { schema: t, model: r, required: o, submitted: n, errors: a, onChange: i } = e, [l, u] = (0, Ie.useState)(r), c = (0, Ie.useRef)(null), [d, h] = (0, Ie.useState)(null), [f, m] = (0, Ie.useState)(null), [p, y] = (0, Ie.useState)(false), [g, b] = (0, Ie.useState)(null), S = ne(), F = oe(),
|
|
1929
|
+
var Es = require("react/jsx-runtime");
|
|
1930
|
+
var ks = (e) => {
|
|
1931
|
+
let { schema: t, model: r, required: o, submitted: n, errors: a, onChange: i } = e, [l, u] = (0, Ie.useState)(r), c = (0, Ie.useRef)(null), [d, h] = (0, Ie.useState)(null), [f, m] = (0, Ie.useState)(null), [p, y] = (0, Ie.useState)(false), [g, b] = (0, Ie.useState)(null), S = ne(), F = oe(), O = Ot();
|
|
1932
1932
|
(0, Ie.useEffect)(() => {
|
|
1933
|
-
t.validationAsync.method ||
|
|
1934
|
-
}, [
|
|
1935
|
-
let
|
|
1936
|
-
let
|
|
1933
|
+
t.validationAsync.method || O.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {});
|
|
1934
|
+
}, [O, t.validationAsync.method]);
|
|
1935
|
+
let A = async (L, H) => {
|
|
1936
|
+
let q = v(), P = { [H.param]: L };
|
|
1937
1937
|
c.current = L, y(true), F("Dynamic Flow - ValidationAsync", { status: "pending" });
|
|
1938
|
-
let R = await S(
|
|
1938
|
+
let R = await S(H.url, { method: H.method || "POST", headers: { "Content-Type": "application/json" }, body: H.method === "GET" ? void 0 : JSON.stringify(P), signal: q });
|
|
1939
1939
|
try {
|
|
1940
|
-
let
|
|
1941
|
-
if (!T(
|
|
1940
|
+
let E = await R.json();
|
|
1941
|
+
if (!T(E))
|
|
1942
1942
|
throw new Error("Response body is not an object");
|
|
1943
|
-
F("Dynamic Flow - ValidationAsync", { status: "success" }), R.status === 200 ? h(I(
|
|
1944
|
-
} catch (
|
|
1943
|
+
F("Dynamic Flow - ValidationAsync", { status: "success" }), R.status === 200 ? h(I(E.message) ? E.message : null) : R.status === 422 && m(I(E.message) ? E.message : null);
|
|
1944
|
+
} catch (E) {
|
|
1945
1945
|
F("Dynamic Flow - ValidationAsync", { status: "failure" });
|
|
1946
1946
|
}
|
|
1947
|
-
},
|
|
1947
|
+
}, v = () => {
|
|
1948
1948
|
g && g.abort();
|
|
1949
1949
|
let L = new AbortController();
|
|
1950
1950
|
return b(L), L.signal;
|
|
1951
1951
|
};
|
|
1952
|
-
return (0,
|
|
1952
|
+
return (0, Es.jsx)(ht, s({}, { submitted: n || p, model: l, errors: f || a, infoMessage: d, onChange: (L) => {
|
|
1953
1953
|
i(w(s({}, L), { triggerSchema: t, triggerModel: L.model })), m(null), h(null), u(L.model);
|
|
1954
1954
|
}, onBlur: () => {
|
|
1955
|
-
!k(l) && !
|
|
1955
|
+
!k(l) && !Je(l, c.current) && K(l, t) && A(l, t.validationAsync);
|
|
1956
1956
|
}, required: o, schema: t }));
|
|
1957
1957
|
};
|
|
1958
|
-
|
|
1959
|
-
var
|
|
1958
|
+
ks.defaultProps = { required: false };
|
|
1959
|
+
var Sn = ks;
|
|
1960
1960
|
var fe = require("react/jsx-runtime");
|
|
1961
|
-
var
|
|
1961
|
+
var Ds = require("react");
|
|
1962
1962
|
var Ud = (e) => {
|
|
1963
|
-
let { schema: t, model: r = null, errors: o = null, hideTitle: n = false, disabled: a = false } = e, i = w(s({}, e), { model: r, errors: o, hideTitle: n, disabled: a }), l =
|
|
1964
|
-
switch ((0,
|
|
1963
|
+
let { schema: t, model: r = null, errors: o = null, hideTitle: n = false, disabled: a = false } = e, i = w(s({}, e), { model: r, errors: o, hideTitle: n, disabled: a }), l = st(t), u = Ot();
|
|
1964
|
+
switch ((0, Is.useEffect)(() => {
|
|
1965
1965
|
zd(t, r, o) || u.error("Invalid schema or model", `Schema of type ${l || "undefined"} requested, but schema did not pass validation.`);
|
|
1966
1966
|
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(o), l, u]), l) {
|
|
1967
1967
|
case "readOnly":
|
|
1968
|
-
return (0, fe.jsx)(
|
|
1968
|
+
return (0, fe.jsx)(gn, s({}, i));
|
|
1969
1969
|
case "persistAsync":
|
|
1970
|
-
return (0, fe.jsx)(
|
|
1970
|
+
return (0, fe.jsx)(pn, s({}, i));
|
|
1971
1971
|
case "validationAsync":
|
|
1972
|
-
return (0, fe.jsx)(
|
|
1972
|
+
return (0, fe.jsx)(Sn, s({}, i));
|
|
1973
1973
|
case "basic": {
|
|
1974
1974
|
let c = s({ infoMessage: null }, i);
|
|
1975
|
-
return (0, fe.jsx)(
|
|
1975
|
+
return (0, fe.jsx)(ht, s({}, c));
|
|
1976
1976
|
}
|
|
1977
1977
|
case "object":
|
|
1978
|
-
return (0,
|
|
1978
|
+
return (0, Ds.createElement)(sr, w(s({}, i), { key: JSON.stringify(t) }));
|
|
1979
1979
|
case "array":
|
|
1980
|
-
return (0, fe.jsx)(
|
|
1980
|
+
return (0, fe.jsx)(tn, s({}, i));
|
|
1981
1981
|
case "promotedOneOf":
|
|
1982
|
-
return (0, fe.jsx)(
|
|
1982
|
+
return (0, fe.jsx)(yn, s({}, i));
|
|
1983
1983
|
case "oneOf":
|
|
1984
|
-
return (0, fe.jsx)(
|
|
1984
|
+
return (0, fe.jsx)(ln, s({}, i));
|
|
1985
1985
|
case "allOf":
|
|
1986
|
-
return (0, fe.jsx)(
|
|
1986
|
+
return (0, fe.jsx)(Xo, s({}, i));
|
|
1987
1987
|
}
|
|
1988
1988
|
return (0, fe.jsx)(fe.Fragment, {});
|
|
1989
1989
|
};
|
|
1990
1990
|
var pe = Ud;
|
|
1991
1991
|
var zd = (e, t, r) => {
|
|
1992
|
-
switch (
|
|
1992
|
+
switch (st(e)) {
|
|
1993
1993
|
case "persistAsync":
|
|
1994
|
-
return
|
|
1994
|
+
return jr(e) && Ur(t) && er(r);
|
|
1995
1995
|
case "validationAsync":
|
|
1996
|
-
return
|
|
1996
|
+
return Vo(e) && zo(t) && er(r);
|
|
1997
1997
|
case "basic":
|
|
1998
|
-
return Ne(e) &&
|
|
1998
|
+
return Ne(e) && zo(t) && er(r);
|
|
1999
1999
|
case "object":
|
|
2000
|
-
return Pe(e) &&
|
|
2000
|
+
return Pe(e) && Uo(t);
|
|
2001
2001
|
case "array":
|
|
2002
|
-
return Te(e) &&
|
|
2002
|
+
return Te(e) && Ua(t) && er(r);
|
|
2003
2003
|
case "promotedOneOf":
|
|
2004
|
-
return
|
|
2004
|
+
return it(e) && Uo(t);
|
|
2005
2005
|
case "oneOf":
|
|
2006
2006
|
return ye(e);
|
|
2007
2007
|
case "allOf":
|
|
2008
|
-
return
|
|
2008
|
+
return jo(e) && _(t);
|
|
2009
2009
|
}
|
|
2010
2010
|
return false;
|
|
2011
2011
|
};
|
|
2012
|
-
var
|
|
2012
|
+
var gt = require("react/jsx-runtime");
|
|
2013
2013
|
var Hd = (e) => {
|
|
2014
2014
|
let t = s({ model: null, errors: null, disabled: false, baseUrl: "" }, e);
|
|
2015
|
-
return
|
|
2015
|
+
return Tr() || t.baseUrl == null ? (0, gt.jsx)(pe, s({}, t)) : (0, gt.jsx)(qd, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, gt.jsx)(pe, s({}, t)) });
|
|
2016
2016
|
};
|
|
2017
|
-
var
|
|
2018
|
-
var qd = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0,
|
|
2019
|
-
var
|
|
2017
|
+
var cr = Hd;
|
|
2018
|
+
var qd = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, gt.jsx)(Nr, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : Ls, children: (0, gt.jsx)(Mr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : Ls, children: (0, gt.jsx)(Lr, { baseUrl: e, children: o }) }) });
|
|
2019
|
+
var Ls = () => {
|
|
2020
2020
|
};
|
|
2021
|
-
var
|
|
2021
|
+
var bn = require("react/jsx-runtime");
|
|
2022
2022
|
var Gd = (e) => {
|
|
2023
2023
|
let t = e.component, r = t.schema;
|
|
2024
|
-
return (0,
|
|
2024
|
+
return (0, bn.jsx)("div", { className: B(t.margin || "md"), children: (0, bn.jsx)(cr, { schema: r, model: e.model, submitted: e.submitted, errors: e.errors, onChange: (o) => {
|
|
2025
2025
|
e.onModelChange(s({ formSchema: r }, o));
|
|
2026
2026
|
}, onPersistAsync: e.onPersistAsync }) });
|
|
2027
2027
|
};
|
|
2028
|
-
var
|
|
2028
|
+
var wn = Gd;
|
|
2029
2029
|
var Ht = require("react/jsx-runtime");
|
|
2030
2030
|
var $d = (e) => {
|
|
2031
2031
|
let { text: t, size: r = "md", align: o = "left", margin: n = "md" } = e.component, a = Re({ align: o, margin: n });
|
|
@@ -2043,24 +2043,24 @@ var require_main_min = __commonJS({
|
|
|
2043
2043
|
return (0, Ht.jsx)("h3", { className: a, children: t });
|
|
2044
2044
|
}
|
|
2045
2045
|
};
|
|
2046
|
-
var
|
|
2047
|
-
var
|
|
2048
|
-
var
|
|
2049
|
-
var
|
|
2046
|
+
var Fn = $d;
|
|
2047
|
+
var Cn = require("@transferwise/components");
|
|
2048
|
+
var dr = require("react/jsx-runtime");
|
|
2049
|
+
var xn = ({ component: e }) => {
|
|
2050
2050
|
let { content: t, align: r, margin: o } = e;
|
|
2051
|
-
return (0,
|
|
2051
|
+
return (0, dr.jsx)("div", { className: Re({ align: r, margin: o }), children: (0, dr.jsx)(Cn.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
|
|
2052
2052
|
};
|
|
2053
|
-
var
|
|
2054
|
-
var
|
|
2055
|
-
var
|
|
2056
|
-
var
|
|
2053
|
+
var vn = ({ component: e }) => (0, dr.jsx)("div", { className: Re(e), children: (0, dr.jsx)(Cn.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
|
|
2054
|
+
var Ts = require("@transferwise/components");
|
|
2055
|
+
var oo = require("react");
|
|
2056
|
+
var An = require("react/jsx-runtime");
|
|
2057
2057
|
var Wd = ({ component: e }) => {
|
|
2058
|
-
let { url: t, size: r, text: o, margin: n, accessibilityDescription: a } = e, i = ne(), [l, u] = (0,
|
|
2059
|
-
(0,
|
|
2058
|
+
let { url: t, size: r, text: o, margin: n, accessibilityDescription: a } = e, i = ne(), [l, u] = (0, oo.useState)("");
|
|
2059
|
+
(0, oo.useEffect)(() => {
|
|
2060
2060
|
Kd(i, t).then(u);
|
|
2061
2061
|
}, [t, i]);
|
|
2062
2062
|
let c = { alt: a || o || "", src: l, stretch: true, shrink: true };
|
|
2063
|
-
return l ? (0,
|
|
2063
|
+
return l ? (0, An.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, An.jsx)(Ts.Image, s({ className: `img-responsive ${B(n || "md")}` }, c)) }) : null;
|
|
2064
2064
|
};
|
|
2065
2065
|
var _d = (e) => new Promise((t, r) => {
|
|
2066
2066
|
let o = new FileReader();
|
|
@@ -2069,7 +2069,7 @@ var require_main_min = __commonJS({
|
|
|
2069
2069
|
var Kd = async (e, t) => {
|
|
2070
2070
|
var r;
|
|
2071
2071
|
try {
|
|
2072
|
-
return
|
|
2072
|
+
return Er(t) || (t == null ? void 0 : t.indexOf(`${(r = window == null ? void 0 : window.location) == null ? void 0 : r.origin}/`)) === 0 ? e(t, { method: "GET", headers: { "Content-Type": "image/image" }, credentials: "same-origin" }).then((o) => {
|
|
2073
2073
|
if (o.ok)
|
|
2074
2074
|
return o.blob();
|
|
2075
2075
|
throw new Error("Image fetching failed");
|
|
@@ -2078,109 +2078,109 @@ var require_main_min = __commonJS({
|
|
|
2078
2078
|
return t;
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
|
-
var
|
|
2082
|
-
var
|
|
2083
|
-
var
|
|
2081
|
+
var On = Wd;
|
|
2082
|
+
var no = require("@transferwise/components");
|
|
2083
|
+
var ur = require("react/jsx-runtime");
|
|
2084
2084
|
var Jd = ["positive", "neutral"];
|
|
2085
2085
|
var Xd = ["warning", "negative"];
|
|
2086
2086
|
var Yd = ({ component: e }) => {
|
|
2087
2087
|
let { items: t } = e, r = t.filter((n) => Jd.includes(n.context)).map(({ text: n }) => n), o = t.filter((n) => Xd.includes(n.context)).map(({ text: n }) => n);
|
|
2088
|
-
return (0,
|
|
2088
|
+
return (0, ur.jsxs)("div", { className: B(e.margin || "md"), children: [e.title ? (0, ur.jsx)(no.Header, { title: e.title }) : null, (0, ur.jsx)(no.InstructionsList, { dos: r, donts: o })] });
|
|
2089
2089
|
};
|
|
2090
|
-
var
|
|
2091
|
-
var
|
|
2092
|
-
var
|
|
2090
|
+
var Pn = Yd;
|
|
2091
|
+
var $ = require("react/jsx-runtime");
|
|
2092
|
+
var Q = (e) => JSON.stringify(e);
|
|
2093
2093
|
var Zd = (e) => {
|
|
2094
2094
|
let { components: t, model: r, submitted: o, errors: n, onModelChange: a, onAction: i, onPersistAsync: l, baseUrl: u } = e, c = (d) => {
|
|
2095
2095
|
switch (d.type) {
|
|
2096
2096
|
case "heading":
|
|
2097
|
-
return (0,
|
|
2097
|
+
return (0, $.jsx)(Fn, { component: d }, Q(d));
|
|
2098
2098
|
case "paragraph":
|
|
2099
|
-
return (0,
|
|
2099
|
+
return (0, $.jsx)(kn, { component: d }, Q(d));
|
|
2100
2100
|
case "image":
|
|
2101
|
-
return (0,
|
|
2101
|
+
return (0, $.jsx)(On, { component: d }, Q(d));
|
|
2102
2102
|
case "alert":
|
|
2103
|
-
return (0,
|
|
2103
|
+
return (0, $.jsx)(le, { component: d }, Q(d));
|
|
2104
2104
|
case "review":
|
|
2105
|
-
return (0,
|
|
2105
|
+
return (0, $.jsx)(En, { component: d, onAction: i }, Q(d));
|
|
2106
2106
|
case "divider":
|
|
2107
|
-
return (0,
|
|
2107
|
+
return (0, $.jsx)(Ko, { component: d }, Q(d));
|
|
2108
2108
|
case "info":
|
|
2109
|
-
return (0,
|
|
2109
|
+
return (0, $.jsx)(vn, { component: d }, Q(d));
|
|
2110
2110
|
case "instructions":
|
|
2111
|
-
return (0,
|
|
2111
|
+
return (0, $.jsx)(Pn, { component: d }, Q(d));
|
|
2112
2112
|
case "markdown":
|
|
2113
|
-
return (0,
|
|
2113
|
+
return (0, $.jsx)(xn, { component: d }, Q(d));
|
|
2114
2114
|
case "columns":
|
|
2115
|
-
return (0,
|
|
2115
|
+
return (0, $.jsx)(Wo, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: i, onPersistAsync: l }, Q(d));
|
|
2116
2116
|
case "form":
|
|
2117
|
-
return (0,
|
|
2117
|
+
return (0, $.jsx)(wn, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onPersistAsync: l }, Q(w(s({}, d), { errors: n != null ? n : null })));
|
|
2118
2118
|
case "button":
|
|
2119
|
-
return (0,
|
|
2119
|
+
return (0, $.jsx)($o, { component: d, onAction: i }, Q(d));
|
|
2120
2120
|
case "box":
|
|
2121
|
-
return (0,
|
|
2121
|
+
return (0, $.jsx)(Go, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: i, onPersistAsync: l }, Q(d));
|
|
2122
2122
|
case "decision":
|
|
2123
|
-
return (0,
|
|
2123
|
+
return (0, $.jsx)(_o, { component: d, onAction: i }, Q(d));
|
|
2124
2124
|
case "external":
|
|
2125
|
-
return (0,
|
|
2125
|
+
return (0, $.jsx)(Jo, { component: d, onAction: i }, Q(d));
|
|
2126
2126
|
case "list":
|
|
2127
2127
|
case "status-list":
|
|
2128
|
-
return (0,
|
|
2128
|
+
return (0, $.jsx)(Mn, { component: d, onAction: i }, Q(d));
|
|
2129
2129
|
case "loading-indicator":
|
|
2130
|
-
return (0,
|
|
2130
|
+
return (0, $.jsx)(pr, { component: d }, Q(d));
|
|
2131
2131
|
case "search":
|
|
2132
|
-
return (0,
|
|
2132
|
+
return (0, $.jsx)(In, { component: d, onAction: i }, Q(d));
|
|
2133
2133
|
default:
|
|
2134
|
-
return (0,
|
|
2134
|
+
return (0, $.jsx)("div", {}, Q(d));
|
|
2135
2135
|
}
|
|
2136
2136
|
};
|
|
2137
|
-
return
|
|
2137
|
+
return Tr() || u == null ? (0, $.jsx)($.Fragment, { children: t.map(c) }) : (0, $.jsx)(Lr, { baseUrl: u, children: t.map(c) });
|
|
2138
2138
|
};
|
|
2139
2139
|
var me = Zd;
|
|
2140
|
-
var
|
|
2140
|
+
var Ns = require("@transferwise/components");
|
|
2141
2141
|
var qt = require("react/jsx-runtime");
|
|
2142
2142
|
var Qd = ({ component: e }) => (0, qt.jsxs)("div", { className: B(e.margin || "md"), children: [e.title ? (0, qt.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(eu)] });
|
|
2143
2143
|
var eu = ({ title: e, description: t, icon: r, status: o }) => {
|
|
2144
|
-
let n = s(s({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, qt.jsx)(
|
|
2145
|
-
return (0, qt.jsx)(
|
|
2144
|
+
let n = s(s({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, qt.jsx)(Xe, { type: r.name }) } : {}), o ? { status: ou[o] } : {});
|
|
2145
|
+
return (0, qt.jsx)(Ns.Summary, s({}, n));
|
|
2146
2146
|
};
|
|
2147
2147
|
var tu = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2148
2148
|
var ru = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2149
2149
|
var ou = s(s({}, tu), ru);
|
|
2150
|
-
var
|
|
2151
|
-
var
|
|
2152
|
-
var
|
|
2150
|
+
var Mn = Qd;
|
|
2151
|
+
var Rs = require("@transferwise/components");
|
|
2152
|
+
var Bs = require("react/jsx-runtime");
|
|
2153
2153
|
var nu = ({ component: e }) => {
|
|
2154
2154
|
let { margin: t, size: r = "md" } = e;
|
|
2155
|
-
return (0,
|
|
2156
|
-
};
|
|
2157
|
-
var
|
|
2158
|
-
var
|
|
2159
|
-
var
|
|
2160
|
-
var
|
|
2161
|
-
var
|
|
2162
|
-
var
|
|
2163
|
-
var
|
|
2164
|
-
function
|
|
2165
|
-
let e = (0,
|
|
2155
|
+
return (0, Bs.jsx)(Rs.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${B(t)}` }, "data-testid": "loading-indicator" });
|
|
2156
|
+
};
|
|
2157
|
+
var pr = nu;
|
|
2158
|
+
var Hs = require("@transferwise/components");
|
|
2159
|
+
var qs = require("react-intl");
|
|
2160
|
+
var js = require("react-intl");
|
|
2161
|
+
var Dn = (0, js.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." } });
|
|
2162
|
+
var Vs = require("@transferwise/components");
|
|
2163
|
+
var Us = require("react");
|
|
2164
|
+
function zs() {
|
|
2165
|
+
let e = (0, Us.useContext)(Vs.SnackbarContext);
|
|
2166
2166
|
return e ? e.createSnackbar : au;
|
|
2167
2167
|
}
|
|
2168
2168
|
function au() {
|
|
2169
2169
|
}
|
|
2170
|
-
var
|
|
2171
|
-
var iu = ({ component: e }) => e.control === "copyable" ? (0,
|
|
2172
|
-
var su = ({ component: e }) => (0,
|
|
2170
|
+
var et = require("react/jsx-runtime");
|
|
2171
|
+
var iu = ({ component: e }) => e.control === "copyable" ? (0, et.jsx)(lu, { component: e }) : (0, et.jsx)(su, { component: e });
|
|
2172
|
+
var su = ({ component: e }) => (0, et.jsxs)("p", { className: Re(e), children: [" ", e.text, " "] });
|
|
2173
2173
|
var lu = ({ component: e }) => {
|
|
2174
|
-
let { formatMessage: t } = (0,
|
|
2174
|
+
let { formatMessage: t } = (0, qs.useIntl)(), r = zs(), { text: o } = e, n = () => {
|
|
2175
2175
|
var i;
|
|
2176
|
-
(i = navigator.clipboard) == null || i.writeText(o).then(() => r({ text: t(
|
|
2176
|
+
(i = navigator.clipboard) == null || i.writeText(o).then(() => r({ text: t(Dn.copied) })).catch(mu);
|
|
2177
2177
|
}, a = Re({ align: e.align }) + " form-control";
|
|
2178
|
-
return (0,
|
|
2178
|
+
return (0, et.jsxs)("div", { className: Re(e), children: [(0, et.jsx)("input", { type: "text", className: a, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, et.jsx)(Hs.Button, { block: true, onClick: n, className: B("sm"), children: t(Dn.copy) })] });
|
|
2179
2179
|
};
|
|
2180
2180
|
function mu() {
|
|
2181
2181
|
}
|
|
2182
|
-
var
|
|
2183
|
-
var
|
|
2182
|
+
var kn = iu;
|
|
2183
|
+
var Gs = require("@transferwise/components");
|
|
2184
2184
|
var ie = require("react/jsx-runtime");
|
|
2185
2185
|
var cu = (e, t) => t.fields.map(({ label: r, value: o, help: n }, a) => ({ key: String(a), title: r, value: du(o, n, e) }));
|
|
2186
2186
|
var du = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, ie.jsxs)(ie.Fragment, { children: [(0, ie.jsx)(Ue, { help: t }), " ", e] }) : (0, ie.jsxs)(ie.Fragment, { children: [e, " ", (0, ie.jsx)(Ue, { help: t })] }) : e;
|
|
@@ -2189,28 +2189,28 @@ var require_main_min = __commonJS({
|
|
|
2189
2189
|
let t = e.component, r = B(t.margin || "xs"), o = (a) => (0, ie.jsx)("a", { href: a.url, className: "pull-right", role: "button", onClick: (i) => {
|
|
2190
2190
|
i.preventDefault(), e.onAction(a);
|
|
2191
2191
|
}, children: a.title }), n = uu(t);
|
|
2192
|
-
return (0, ie.jsxs)(ie.Fragment, { children: [t.title && (0, ie.jsxs)("h6", { className: `m-b-2 ${r}`, children: [t.title, t.action && o(t.action)] }), (0, ie.jsx)("div", { className: t.title ? "" : r, children: (0, ie.jsx)(
|
|
2193
|
-
};
|
|
2194
|
-
var
|
|
2195
|
-
var
|
|
2196
|
-
var
|
|
2197
|
-
var
|
|
2198
|
-
var
|
|
2199
|
-
var
|
|
2200
|
-
var
|
|
2201
|
-
var
|
|
2202
|
-
var Gt = (0,
|
|
2203
|
-
var
|
|
2204
|
-
var
|
|
2205
|
-
var
|
|
2206
|
-
let t = (0,
|
|
2207
|
-
return (0,
|
|
2192
|
+
return (0, ie.jsxs)(ie.Fragment, { children: [t.title && (0, ie.jsxs)("h6", { className: `m-b-2 ${r}`, children: [t.title, t.action && o(t.action)] }), (0, ie.jsx)("div", { className: t.title ? "" : r, children: (0, ie.jsx)(Gs.DefinitionList, { layout: n, definitions: cu(n, t) }) })] });
|
|
2193
|
+
};
|
|
2194
|
+
var En = pu;
|
|
2195
|
+
var so = require("react");
|
|
2196
|
+
var $s = require("@transferwise/components");
|
|
2197
|
+
var ao = require("react/jsx-runtime");
|
|
2198
|
+
var Ws = ({ title: e, value: t, onChange: r }) => (0, ao.jsxs)("label", { className: "control-label d-inline", children: [e, (0, ao.jsx)($s.Input, { type: "text", value: t, onChange: (o) => r(o.currentTarget.value) })] });
|
|
2199
|
+
var io = require("@transferwise/components");
|
|
2200
|
+
var Ks = require("react-intl");
|
|
2201
|
+
var _s = require("react-intl");
|
|
2202
|
+
var Gt = (0, _s.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." } });
|
|
2203
|
+
var St = require("react/jsx-runtime");
|
|
2204
|
+
var Js = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, St.jsx)("p", { className: "m-t-2", children: t }) : (0, St.jsx)(io.NavigationOptionsList, { children: e.map((o) => (0, St.jsx)(io.NavigationOption, { title: o.title, content: o.description, media: mt(o), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(o) }, JSON.stringify(o))) });
|
|
2205
|
+
var Xs = ({ onRetrySearch: e }) => {
|
|
2206
|
+
let t = (0, Ks.useIntl)();
|
|
2207
|
+
return (0, St.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(Gt.errorAlert), "\xA0", (0, St.jsx)("a", { href: "/", onClick: (r) => {
|
|
2208
2208
|
r.preventDefault(), e();
|
|
2209
2209
|
}, children: t.formatMessage(Gt.retry) })] });
|
|
2210
2210
|
};
|
|
2211
2211
|
var $t = require("react");
|
|
2212
|
-
var
|
|
2213
|
-
var
|
|
2212
|
+
var Ys = { "Content-Type": "application/json" };
|
|
2213
|
+
var Zs = (e) => {
|
|
2214
2214
|
let [t, r] = (0, $t.useState)({ status: "idle" }), o = (0, $t.useRef)(null), n = ne(), a = (0, $t.useCallback)(async (c, { url: d, method: h, param: f } = e) => {
|
|
2215
2215
|
var p;
|
|
2216
2216
|
if ((p = o.current) == null || p.abort(), !c) {
|
|
@@ -2221,7 +2221,7 @@ var require_main_min = __commonJS({
|
|
|
2221
2221
|
let m = o.current.signal;
|
|
2222
2222
|
r({ status: "loading" });
|
|
2223
2223
|
try {
|
|
2224
|
-
let g = await (h === "GET" ? n(hu(d, f, c), { method: h, signal: m, headers:
|
|
2224
|
+
let g = await (h === "GET" ? n(hu(d, f, c), { method: h, signal: m, headers: Ys }) : n(d, { method: h, signal: m, headers: Ys, body: JSON.stringify({ [f]: c }) }));
|
|
2225
2225
|
i(g, c);
|
|
2226
2226
|
} catch (y) {
|
|
2227
2227
|
l(y, c);
|
|
@@ -2240,114 +2240,114 @@ var require_main_min = __commonJS({
|
|
|
2240
2240
|
}, u = t.status === "success" ? t.results : [];
|
|
2241
2241
|
return { status: t.status, results: u, search: a };
|
|
2242
2242
|
};
|
|
2243
|
-
var fu = (e) => T(e) && "results" in e &&
|
|
2243
|
+
var fu = (e) => T(e) && "results" in e && G(e.results) && e.results.every((t) => T(t) && "title" in t && "type" in t && "value" in t);
|
|
2244
2244
|
var yu = (e) => e instanceof DOMException && e.name === "AbortError";
|
|
2245
2245
|
var hu = (e, t, r) => {
|
|
2246
2246
|
let [o, n] = e.split("?"), a = new URLSearchParams(n);
|
|
2247
2247
|
return a.set(t, r), `${o}?${a.toString()}`;
|
|
2248
2248
|
};
|
|
2249
|
-
var
|
|
2249
|
+
var bt = require("react/jsx-runtime");
|
|
2250
2250
|
var gu = 400;
|
|
2251
2251
|
var Su = ({ component: e, onAction: t }) => {
|
|
2252
|
-
let [r, o] = (0,
|
|
2252
|
+
let [r, o] = (0, so.useState)(""), { title: n, margin: a, url: i, method: l, param: u, emptyMessage: c } = e, { status: d, results: h, search: f } = Zs({ url: i, method: l, param: u }), m = (0, so.useMemo)(() => Ke(f, gu), [f]), p = (b) => {
|
|
2253
2253
|
o(b), m(b);
|
|
2254
2254
|
}, y = ({ type: b, value: S }) => {
|
|
2255
2255
|
if (b === "action" && t(S), b === "search") {
|
|
2256
2256
|
o(S.query);
|
|
2257
|
-
let { url: F, method:
|
|
2258
|
-
f(
|
|
2257
|
+
let { url: F, method: O, param: A, query: v } = S;
|
|
2258
|
+
f(v, { url: F, method: O, param: A });
|
|
2259
2259
|
}
|
|
2260
2260
|
}, g = () => {
|
|
2261
2261
|
o(r), f(r);
|
|
2262
2262
|
};
|
|
2263
|
-
return (0,
|
|
2263
|
+
return (0, bt.jsxs)("div", { className: B(a), children: [(0, bt.jsx)(Ws, { title: n, value: r, onChange: p }), d === "loading" && (0, bt.jsx)(pr, { component: { type: "loading-indicator", size: "sm" } }), d === "error" && (0, bt.jsx)(Xs, { onRetrySearch: g }), d === "success" && (0, bt.jsx)(Js, { results: h, emptyMessage: c, onSelect: y })] });
|
|
2264
2264
|
};
|
|
2265
|
-
var
|
|
2265
|
+
var In = Su;
|
|
2266
2266
|
var de = require("react/jsx-runtime");
|
|
2267
|
-
var
|
|
2268
|
-
var bu = (e) => e.type === "boolean" &&
|
|
2269
|
-
var
|
|
2270
|
-
var
|
|
2271
|
-
let t = (
|
|
2272
|
-
f(true), o(n(
|
|
2273
|
-
}, r = (
|
|
2274
|
-
u(
|
|
2275
|
-
let
|
|
2276
|
-
S(
|
|
2277
|
-
let
|
|
2278
|
-
d(
|
|
2279
|
-
}, n = (
|
|
2267
|
+
var Ln = (e) => k(e) || Y(e);
|
|
2268
|
+
var bu = (e) => e.type === "boolean" && Ln(e.default) ? false : e.default;
|
|
2269
|
+
var el = (e) => {
|
|
2270
|
+
var q, P, R;
|
|
2271
|
+
let t = (E) => {
|
|
2272
|
+
f(true), o(n(E), "user");
|
|
2273
|
+
}, r = (E) => _e(E, e.schema, e.required), o = (E, ue) => {
|
|
2274
|
+
u(E);
|
|
2275
|
+
let j = r(E);
|
|
2276
|
+
S(j);
|
|
2277
|
+
let W = E;
|
|
2278
|
+
d(W), W !== c && e.onChange({ model: W, triggerSchema: e.schema, triggerModel: W, lastTriggerModel: c, type: ue });
|
|
2279
|
+
}, n = (E) => We(E, e.schema), a = () => p(true), i = () => {
|
|
2280
2280
|
p(false), g(true), e.onBlur && e.onBlur();
|
|
2281
|
-
}, [l, u] = (0, ce.useState)((
|
|
2282
|
-
let
|
|
2283
|
-
|
|
2284
|
-
},
|
|
2281
|
+
}, [l, u] = (0, ce.useState)((q = e.model) != null ? q : null), [c, d] = (0, ce.useState)((P = e.model) != null ? P : null), [h, f] = (0, ce.useState)(false), [m, p] = (0, ce.useState)(false), [y, g] = (0, ce.useState)(false), [b, S] = (0, ce.useState)([]), F = (0, ce.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), O = () => {
|
|
2282
|
+
let E = bu(e.schema);
|
|
2283
|
+
Ln(l) && !Ln(E) && o(E, "init"), e.schema.const && o(e.schema.const, "init");
|
|
2284
|
+
}, A = () => {
|
|
2285
2285
|
S(r(l));
|
|
2286
|
-
},
|
|
2287
|
-
(0, ce.useEffect)(
|
|
2288
|
-
var
|
|
2289
|
-
let
|
|
2290
|
-
|
|
2286
|
+
}, v = e.schema.const, M = e.schema.hidden || v;
|
|
2287
|
+
(0, ce.useEffect)(A, [e.model, e.submitted]), (0, ce.useEffect)(O, [e.schema]), (0, ce.useEffect)(() => {
|
|
2288
|
+
var ue;
|
|
2289
|
+
let E = (ue = e.model) != null ? ue : null;
|
|
2290
|
+
E !== l && u(E);
|
|
2291
2291
|
}, [e.model]);
|
|
2292
|
-
let N = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && y) && !!b.length, "has-info": m && !!e.schema.description || !!e.infoMessage },
|
|
2293
|
-
return
|
|
2294
|
-
};
|
|
2295
|
-
|
|
2296
|
-
var
|
|
2297
|
-
var
|
|
2298
|
-
var
|
|
2299
|
-
var
|
|
2292
|
+
let N = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && y) && !!b.length, "has-info": m && !!e.schema.description || !!e.infoMessage }, x = e.schema.format !== "file" && e.schema.type !== "boolean", L = e.schema.help, H = `${F}-feedback`;
|
|
2293
|
+
return M ? null : (0, de.jsxs)(de.Fragment, { children: [e.schema.alert && (0, de.jsx)(le, { component: e.schema.alert }), (0, de.jsxs)("div", { className: (0, Qs.default)(N), children: [x && (0, de.jsxs)("div", { className: "d-inline-block", children: [(0, de.jsx)("label", { className: "control-label d-inline", htmlFor: F, children: e.schema.title }), !!L && (0, de.jsx)(Ue, { help: L })] }), !x && !!L && (0, de.jsx)(Ue, { help: L }), (0, de.jsx)(lr, { id: F, schema: e.schema, value: l, disabled: !!e.disabled, onChange: t, onFocus: a, onBlur: i, describedBy: H }), (0, de.jsx)(je, { id: H, changed: h, focused: m, blurred: y, submitted: e.submitted, errors: (R = e.errors) != null ? R : null, schema: e.schema, validations: b, infoMessage: e.infoMessage })] })] });
|
|
2294
|
+
};
|
|
2295
|
+
el.defaultProps = { required: false, disabled: false, onBlur: null };
|
|
2296
|
+
var ht = el;
|
|
2297
|
+
var nl = require("react/jsx-runtime");
|
|
2298
|
+
var dn = (e, t) => t[e];
|
|
2299
|
+
var rl = (e, t) => {
|
|
2300
2300
|
var r;
|
|
2301
2301
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2302
2302
|
};
|
|
2303
|
-
var wu = /* @__PURE__ */ new Set([
|
|
2304
|
-
var
|
|
2305
|
-
let { schema: t, required: r, submitted: o, errors: n, onChange: a, onPersistAsync: i } = e, l = (0,
|
|
2306
|
-
(0,
|
|
2307
|
-
wu.has(
|
|
2303
|
+
var wu = /* @__PURE__ */ new Set([U.RADIO, U.SELECT, U.DATELOOKUP, U.FILE, U.UPLOAD]);
|
|
2304
|
+
var ol = (e) => {
|
|
2305
|
+
let { schema: t, required: r, submitted: o, errors: n, onChange: a, onPersistAsync: i } = e, l = (0, tl.useIntl)(), u = ne(), c = oe(), [d, h] = (0, wt.useState)(null), f = al(d), [m, p] = (0, wt.useState)(null), [y, g] = (0, wt.useState)(false), [b, S] = (0, wt.useState)(null);
|
|
2306
|
+
(0, wt.useEffect)(() => {
|
|
2307
|
+
wu.has(sn(t.persistAsync.schema)) && v();
|
|
2308
2308
|
}, [d]);
|
|
2309
|
-
let F = () => p(l.formatMessage(
|
|
2310
|
-
let
|
|
2309
|
+
let F = () => p(l.formatMessage(or.genericError)), O = async (x, L) => {
|
|
2310
|
+
let H = A(), q = { [L.param]: x };
|
|
2311
2311
|
g(true);
|
|
2312
2312
|
try {
|
|
2313
2313
|
c("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t.$id });
|
|
2314
|
-
let
|
|
2315
|
-
i(
|
|
2316
|
-
let R = await
|
|
2317
|
-
if (!T(
|
|
2314
|
+
let P = u(L.url, { method: L.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(q), signal: H });
|
|
2315
|
+
i(P);
|
|
2316
|
+
let R = await P, E = await R.json();
|
|
2317
|
+
if (!T(E))
|
|
2318
2318
|
throw new Error("Response is not an object");
|
|
2319
|
-
let { idProperty:
|
|
2320
|
-
if (
|
|
2321
|
-
let
|
|
2322
|
-
a({ model:
|
|
2323
|
-
} else if (
|
|
2324
|
-
let { validation:
|
|
2319
|
+
let { idProperty: ue, param: j } = t.persistAsync;
|
|
2320
|
+
if (ca(R.status)) {
|
|
2321
|
+
let W = dn(ue, E);
|
|
2322
|
+
a({ model: W, triggerSchema: t, triggerModel: W });
|
|
2323
|
+
} else if (kr(R.status)) {
|
|
2324
|
+
let { validation: W } = E, ve = T(W) && (W == null ? void 0 : W[j]) || null;
|
|
2325
2325
|
p(ve), a({ model: null, triggerSchema: t, triggerModel: null });
|
|
2326
2326
|
} else
|
|
2327
2327
|
F();
|
|
2328
2328
|
c("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
|
|
2329
|
-
} catch (
|
|
2329
|
+
} catch (P) {
|
|
2330
2330
|
c("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), F();
|
|
2331
2331
|
}
|
|
2332
|
-
}, O = () => {
|
|
2333
|
-
b && b.abort();
|
|
2334
|
-
let v = new AbortController();
|
|
2335
|
-
return S(v), v.signal;
|
|
2336
2332
|
}, A = () => {
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
},
|
|
2341
|
-
|
|
2333
|
+
b && b.abort();
|
|
2334
|
+
let x = new AbortController();
|
|
2335
|
+
return S(x), x.signal;
|
|
2336
|
+
}, v = () => {
|
|
2337
|
+
!k(d) && !Je(d, f) && O(d, t.persistAsync);
|
|
2338
|
+
}, M = () => {
|
|
2339
|
+
v();
|
|
2340
|
+
}, N = ({ model: x }) => {
|
|
2341
|
+
p(null), K(x, t.persistAsync.schema) && h(x);
|
|
2342
2342
|
};
|
|
2343
|
-
return (0,
|
|
2343
|
+
return (0, nl.jsx)(ht, { required: r, submitted: o || y, schema: t.persistAsync.schema, errors: m || n, model: null, infoMessage: null, onChange: N, onBlur: M });
|
|
2344
2344
|
};
|
|
2345
|
-
|
|
2346
|
-
var
|
|
2347
|
-
var
|
|
2348
|
-
let [t, r] = (0,
|
|
2345
|
+
ol.defaultProps = { required: false };
|
|
2346
|
+
var mn = ol;
|
|
2347
|
+
var Di = (e) => {
|
|
2348
|
+
let [t, r] = (0, il.useState)(null), o = ne(), n = (0, sl.useIntl)(), { schema: a } = e;
|
|
2349
2349
|
async function i(f) {
|
|
2350
|
-
let m = f instanceof Blob ? !Et(a) : !
|
|
2350
|
+
let m = f instanceof Blob ? !Et(a) : !K(f, a);
|
|
2351
2351
|
return (k(f) || m) && h(), await c(f);
|
|
2352
2352
|
}
|
|
2353
2353
|
let l = () => {
|
|
@@ -2367,7 +2367,7 @@ var require_main_min = __commonJS({
|
|
|
2367
2367
|
let p = await m.json();
|
|
2368
2368
|
if (T(p)) {
|
|
2369
2369
|
let y = p[e.idProperty];
|
|
2370
|
-
if (I(y) ||
|
|
2370
|
+
if (I(y) || V(y))
|
|
2371
2371
|
return { data: y };
|
|
2372
2372
|
}
|
|
2373
2373
|
return h();
|
|
@@ -2379,15 +2379,15 @@ var require_main_min = __commonJS({
|
|
|
2379
2379
|
if (f.status === 422) {
|
|
2380
2380
|
let m = await f.json();
|
|
2381
2381
|
if (T(m)) {
|
|
2382
|
-
let p =
|
|
2382
|
+
let p = rl(e.param, m);
|
|
2383
2383
|
if (I(p))
|
|
2384
2384
|
throw new Error(p);
|
|
2385
2385
|
}
|
|
2386
2386
|
}
|
|
2387
|
-
throw new Error(n.formatMessage(
|
|
2387
|
+
throw new Error(n.formatMessage(or.genericError));
|
|
2388
2388
|
}
|
|
2389
2389
|
let h = (f) => {
|
|
2390
|
-
let m = Cu(f) ? f.message : n.formatMessage(
|
|
2390
|
+
let m = Cu(f) ? f.message : n.formatMessage(or.genericError);
|
|
2391
2391
|
throw new Error(m);
|
|
2392
2392
|
};
|
|
2393
2393
|
return i;
|
|
@@ -2399,17 +2399,17 @@ var require_main_min = __commonJS({
|
|
|
2399
2399
|
function Cu(e) {
|
|
2400
2400
|
return T(e) && "message" in e && typeof e.message == "string";
|
|
2401
2401
|
}
|
|
2402
|
-
var
|
|
2403
|
-
function
|
|
2404
|
-
let i = (0,
|
|
2405
|
-
(0,
|
|
2402
|
+
var tt = require("react");
|
|
2403
|
+
function zr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: n, onFailure: a }) {
|
|
2404
|
+
let i = (0, tt.useRef)(n), l = (0, tt.useRef)(a), u = (0, tt.useMemo)(() => xu(e, r, o, (c) => i.current(c), () => l.current()), [e, r, o]);
|
|
2405
|
+
(0, tt.useEffect)(() => {
|
|
2406
2406
|
if (t > 0) {
|
|
2407
2407
|
let c = setInterval(() => {
|
|
2408
2408
|
u();
|
|
2409
2409
|
}, t);
|
|
2410
2410
|
return () => clearInterval(c);
|
|
2411
2411
|
}
|
|
2412
|
-
}, [u, t]), (0,
|
|
2412
|
+
}, [u, t]), (0, tt.useEffect)(() => {
|
|
2413
2413
|
i.current = n, l.current = a;
|
|
2414
2414
|
}, [n, a]);
|
|
2415
2415
|
}
|
|
@@ -2426,75 +2426,75 @@ var require_main_min = __commonJS({
|
|
|
2426
2426
|
} : () => {
|
|
2427
2427
|
};
|
|
2428
2428
|
}
|
|
2429
|
-
var
|
|
2430
|
-
var
|
|
2431
|
-
let t = (0,
|
|
2432
|
-
return (0,
|
|
2429
|
+
var lo = require("react");
|
|
2430
|
+
var al = (e) => {
|
|
2431
|
+
let t = (0, lo.useRef)();
|
|
2432
|
+
return (0, lo.useEffect)(() => {
|
|
2433
2433
|
t.current = e;
|
|
2434
2434
|
}, [e]), t.current;
|
|
2435
2435
|
};
|
|
2436
|
-
var
|
|
2437
|
-
function
|
|
2438
|
-
let r = ne(), o = (0,
|
|
2436
|
+
var fr = require("react");
|
|
2437
|
+
function ll(e, t) {
|
|
2438
|
+
let r = ne(), o = (0, fr.useMemo)(() => {
|
|
2439
2439
|
if (e)
|
|
2440
2440
|
return () => r(e.url).then((a) => {
|
|
2441
2441
|
if (a.ok)
|
|
2442
2442
|
return a.json().then((i) => i).catch((i) => null);
|
|
2443
2443
|
throw new Error("failed");
|
|
2444
2444
|
});
|
|
2445
|
-
}, [e, r]), n = (0,
|
|
2446
|
-
|
|
2445
|
+
}, [e, r]), n = (0, fr.useCallback)((a) => a != null && a.action ? (t(a.action), false) : true, [t]);
|
|
2446
|
+
zr({ asyncFn: o, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse: n, onFailure: (0, fr.useCallback)(() => {
|
|
2447
2447
|
e && t(e.onError.action);
|
|
2448
2448
|
}, [t, e]) });
|
|
2449
2449
|
}
|
|
2450
|
-
var
|
|
2450
|
+
var ml = require("react/jsx-runtime");
|
|
2451
2451
|
var vu = (e, t) => {
|
|
2452
2452
|
var o;
|
|
2453
2453
|
if (Pt(e))
|
|
2454
2454
|
return [];
|
|
2455
|
-
let r =
|
|
2456
|
-
return
|
|
2455
|
+
let r = Yt(e, t);
|
|
2456
|
+
return $e({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (o = e.model) != null ? o : null });
|
|
2457
2457
|
};
|
|
2458
2458
|
var Au = (e) => {
|
|
2459
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: i } = e, l = vu(t, r), { loading: u, registerPersistAsyncPromise: c } =
|
|
2459
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: i } = e, l = vu(t, r), { loading: u, registerPersistAsyncPromise: c } = Pr(), d = oe(), h = u ? () => {
|
|
2460
2460
|
d("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2461
2461
|
} : e.onAction;
|
|
2462
|
-
return
|
|
2463
|
-
};
|
|
2464
|
-
var
|
|
2465
|
-
var
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2468
|
-
var
|
|
2469
|
-
var
|
|
2470
|
-
var
|
|
2471
|
-
var
|
|
2462
|
+
return ll(t.polling, h), (0, ml.jsx)(me, { components: l, submitted: o, model: n, errors: a, onAction: h, onModelChange: i, onPersistAsync: c });
|
|
2463
|
+
};
|
|
2464
|
+
var mo = Au;
|
|
2465
|
+
var yo = require("react");
|
|
2466
|
+
var ee = require("react");
|
|
2467
|
+
var Nl = require("react-intl");
|
|
2468
|
+
var Rl = Le(cl());
|
|
2469
|
+
var br = Le(dl());
|
|
2470
|
+
var ul = require("react-intl");
|
|
2471
|
+
var gr = (0, ul.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" } });
|
|
2472
2472
|
var Ce = require("@transferwise/components");
|
|
2473
|
+
var yl = require("react-intl");
|
|
2474
|
+
var fl = require("react-intl");
|
|
2473
2475
|
var pl = require("react-intl");
|
|
2474
|
-
var
|
|
2475
|
-
var
|
|
2476
|
-
var Ln = (0, dl.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" }, imgAlt: { id: "dynamicFlows.CameraCapture.rotatePhone.imgAlt", defaultMessage: "Rotate your phone icon", description: "Rotate phone icon alt text" } });
|
|
2477
|
-
var wr = require("react/jsx-runtime");
|
|
2476
|
+
var Nn = (0, pl.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" }, imgAlt: { id: "dynamicFlows.CameraCapture.rotatePhone.imgAlt", defaultMessage: "Rotate your phone icon", description: "Rotate phone icon alt text" } });
|
|
2477
|
+
var Sr = require("react/jsx-runtime");
|
|
2478
2478
|
var Ou = () => {
|
|
2479
|
-
let e = (0,
|
|
2480
|
-
return (0,
|
|
2479
|
+
let e = (0, fl.useIntl)();
|
|
2480
|
+
return (0, Sr.jsxs)("div", { className: "orientation-lock-overlay p-x-3 p-y-3", "data-testid": "orientation-lock", children: [(0, Sr.jsx)("img", { className: "m-b-3", src: "https://wise.com/public-resources/assets/camera-guidelines/icon-rotate-phone.svg", width: "96", height: "96", alt: e.formatMessage(Nn.imgAlt) }), (0, Sr.jsx)("p", { className: "text-center m-b-0", children: e.formatMessage(Nn.text) })] });
|
|
2481
2481
|
};
|
|
2482
|
-
var
|
|
2482
|
+
var Rn = Ou;
|
|
2483
2483
|
var Fe = require("react/jsx-runtime");
|
|
2484
|
-
var
|
|
2485
|
-
var
|
|
2486
|
-
let r = (0,
|
|
2487
|
-
return (0, Fe.jsx)("div", { className: "bottom-bar p-x-2", children: (0, Fe.jsx)("div", { className: "row", children: (0, Fe.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, Fe.jsx)(Ce.Button, { className: "m-b-1", block: true, size: Ce.Size.MEDIUM, type: Ce.ControlType.ACCENT, onClick: e, children: r.formatMessage(
|
|
2484
|
+
var hl = ({ onCapture: e }) => (0, Fe.jsx)("div", { className: "bottom-bar", children: (0, Fe.jsx)(Pu, { onClick: e }) });
|
|
2485
|
+
var gl = ({ onSubmit: e, onRetry: t }) => {
|
|
2486
|
+
let r = (0, yl.useIntl)();
|
|
2487
|
+
return (0, Fe.jsx)("div", { className: "bottom-bar p-x-2", children: (0, Fe.jsx)("div", { className: "row", children: (0, Fe.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, Fe.jsx)(Ce.Button, { className: "m-b-1", block: true, size: Ce.Size.MEDIUM, type: Ce.ControlType.ACCENT, onClick: e, children: r.formatMessage(gr.reviewSubmit) }), (0, Fe.jsx)(Ce.Button, { className: "m-b-2", block: true, size: Ce.Size.MEDIUM, type: Ce.ControlType.ACCENT, priority: Ce.Priority.SECONDARY, onClick: t, children: r.formatMessage(gr.reviewRetry) })] }) }) });
|
|
2488
2488
|
};
|
|
2489
2489
|
var Pu = ({ onClick: e }) => (0, Fe.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, Fe.jsx)("span", { className: "camera-capture-btn-inner" }) });
|
|
2490
|
-
var
|
|
2491
|
-
var
|
|
2490
|
+
var uo = require("react");
|
|
2491
|
+
var Sl = (e) => {
|
|
2492
2492
|
var r;
|
|
2493
|
-
let { facingMode: t } = ((r =
|
|
2493
|
+
let { facingMode: t } = ((r = co(e)) == null ? void 0 : r.getSettings()) || {};
|
|
2494
2494
|
return t === "user" || t === void 0;
|
|
2495
2495
|
};
|
|
2496
|
-
var
|
|
2497
|
-
var
|
|
2496
|
+
var bl = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
|
|
2497
|
+
var wl = async (e) => {
|
|
2498
2498
|
let t = document.createElement("canvas");
|
|
2499
2499
|
if (e) {
|
|
2500
2500
|
t.setAttribute("height", `${e.videoHeight}`), t.setAttribute("width", `${e.videoWidth}`);
|
|
@@ -2503,35 +2503,35 @@ var require_main_min = __commonJS({
|
|
|
2503
2503
|
}
|
|
2504
2504
|
return t;
|
|
2505
2505
|
};
|
|
2506
|
-
var
|
|
2506
|
+
var Fl = async () => {
|
|
2507
2507
|
var e, t;
|
|
2508
2508
|
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");
|
|
2509
2509
|
};
|
|
2510
|
-
var
|
|
2510
|
+
var Cl = async () => {
|
|
2511
2511
|
var e, t;
|
|
2512
2512
|
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);
|
|
2513
2513
|
};
|
|
2514
|
-
var
|
|
2514
|
+
var xl = async (e) => {
|
|
2515
2515
|
var r, o, n;
|
|
2516
|
-
let t =
|
|
2516
|
+
let t = Bn(e);
|
|
2517
2517
|
return (n = (await ((o = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : o.call(r)) || []).filter((a) => a.kind === "videoinput").find((a) => a.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : n.label;
|
|
2518
2518
|
};
|
|
2519
|
-
var
|
|
2519
|
+
var co = (e) => {
|
|
2520
2520
|
var t;
|
|
2521
2521
|
return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
|
|
2522
2522
|
};
|
|
2523
|
-
var
|
|
2523
|
+
var Bn = (e) => {
|
|
2524
2524
|
var t, r;
|
|
2525
|
-
return (r = (t =
|
|
2525
|
+
return (r = (t = co(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2526
2526
|
};
|
|
2527
|
-
var
|
|
2528
|
-
let [t, r] = (0,
|
|
2529
|
-
(0,
|
|
2527
|
+
var vl = (e) => {
|
|
2528
|
+
let [t, r] = (0, uo.useState)(), o = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
|
|
2529
|
+
(0, uo.useEffect)(() => {
|
|
2530
2530
|
n(e).then(r);
|
|
2531
2531
|
}, [e]);
|
|
2532
2532
|
let n = async (a) => {
|
|
2533
2533
|
if (a === "back") {
|
|
2534
|
-
let i = (await
|
|
2534
|
+
let i = (await Fl()).find(bl);
|
|
2535
2535
|
if (i != null && i.deviceId)
|
|
2536
2536
|
return w(s({}, o), { deviceId: { exact: i.deviceId } });
|
|
2537
2537
|
}
|
|
@@ -2539,19 +2539,19 @@ var require_main_min = __commonJS({
|
|
|
2539
2539
|
};
|
|
2540
2540
|
return { videoConstraints: t };
|
|
2541
2541
|
};
|
|
2542
|
-
var
|
|
2543
|
-
var
|
|
2542
|
+
var po = require("react");
|
|
2543
|
+
var X = require("react/jsx-runtime");
|
|
2544
2544
|
var Mu = 92;
|
|
2545
|
-
var
|
|
2545
|
+
var Al = 120;
|
|
2546
2546
|
var ku = 40;
|
|
2547
2547
|
var Eu = 32;
|
|
2548
2548
|
var Iu = 48;
|
|
2549
2549
|
var Du = 40;
|
|
2550
|
-
var
|
|
2550
|
+
var Ol = 800;
|
|
2551
2551
|
var Lu = ({ overlay: e, outline: t, imageUrl: r, title: o, instructions: n, reviewInstructions: a }) => {
|
|
2552
|
-
let i = (0,
|
|
2553
|
-
(0,
|
|
2554
|
-
let f =
|
|
2552
|
+
let i = (0, po.useRef)(null);
|
|
2553
|
+
(0, po.useEffect)(() => {
|
|
2554
|
+
let f = Ke(() => {
|
|
2555
2555
|
var m;
|
|
2556
2556
|
if ((m = i.current) != null && m.innerHTML) {
|
|
2557
2557
|
let p = i.current;
|
|
@@ -2560,97 +2560,105 @@ var require_main_min = __commonJS({
|
|
|
2560
2560
|
}, 100);
|
|
2561
2561
|
return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
2562
2562
|
});
|
|
2563
|
-
let l = (r ? ku : 0) + (o ? Eu : 0) + (n ? Iu : 0), u = (0,
|
|
2563
|
+
let l = (r ? ku : 0) + (o ? Eu : 0) + (n ? Iu : 0), u = (0, X.jsxs)(X.Fragment, { children: [r && (0, X.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), o && (0, X.jsx)("h4", { className: "camera-capture-title", children: o }), n && (0, X.jsx)("small", { className: "camera-capture-instructions", children: n })] }), c = Mu + l;
|
|
2564
2564
|
if (a) {
|
|
2565
|
-
l = c -
|
|
2566
|
-
let f =
|
|
2567
|
-
c < f && (u = (0,
|
|
2565
|
+
l = c - Al, u = (0, X.jsx)("small", { className: "camera-capture-instructions", children: a });
|
|
2566
|
+
let f = Al + Du;
|
|
2567
|
+
c < f && (u = (0, X.jsx)(X.Fragment, {}));
|
|
2568
2568
|
}
|
|
2569
|
-
let d = { x: "50%", y: "5%", width: `min(90%, ${
|
|
2570
|
-
return (0,
|
|
2569
|
+
let d = { x: "50%", y: "5%", width: `min(90%, ${Ol}px)`, height: `calc(90% - ${c}px)`, style: { transform: `translateX(max(-45%, -${Ol / 2}px))` } }, h = { style: { left: "5%", top: `calc(100% - ${c}px - 5%)`, height: `calc(${l}px + 5%)`, width: "90%" } };
|
|
2570
|
+
return (0, X.jsxs)("svg", { ref: i, xmlns: "http://www.w3.org/2000/svg", children: [(0, X.jsx)("defs", { children: (0, X.jsxs)("mask", { id: "mask", children: [(0, X.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, X.jsx)("image", s({ href: e }, d))] }) }), e && (0, X.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, X.jsx)("image", s({ href: t }, d)), (0, X.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, X.jsx)("div", w(s({ className: "camera-capture-text-and-image-container" }, h), { children: u })) })] });
|
|
2571
2571
|
};
|
|
2572
|
-
var
|
|
2573
|
-
var
|
|
2572
|
+
var jn = Lu;
|
|
2573
|
+
var Ml = require("@transferwise/components");
|
|
2574
|
+
var kl = require("react-intl");
|
|
2574
2575
|
var Pl = require("react-intl");
|
|
2575
|
-
var
|
|
2576
|
-
var po = (0, Al.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.NoCameraAccess.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting missing camera permissions" }, paragraph: { 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" }, action: { id: "dynamicFlows.CameraCapture.NoCameraAccess.action", defaultMessage: "Enable camera access", description: "Action to ask for camera permissions again" } });
|
|
2576
|
+
var fo = (0, Pl.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.NoCameraAccess.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting missing camera permissions" }, paragraph: { 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" }, action: { id: "dynamicFlows.CameraCapture.NoCameraAccess.action", defaultMessage: "Enable camera access", description: "Action to ask for camera permissions again" } });
|
|
2577
2577
|
var He = require("react/jsx-runtime");
|
|
2578
2578
|
var Tu = ({ onAction: e }) => {
|
|
2579
|
-
let t = (0,
|
|
2580
|
-
return (0, He.jsx)("div", { id: "no-camera-access", children: (0, He.jsx)("div", { className: "container p-t-5", children: (0, He.jsx)("div", { className: "row", children: (0, He.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, He.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(
|
|
2579
|
+
let t = (0, kl.useIntl)();
|
|
2580
|
+
return (0, He.jsx)("div", { id: "no-camera-access", children: (0, He.jsx)("div", { className: "container p-t-5", children: (0, He.jsx)("div", { className: "row", children: (0, He.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, He.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(fo.title) }), (0, He.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(fo.paragraph) }), (0, He.jsx)(Ml.Button, { block: true, onClick: e, children: t.formatMessage(fo.action) })] }) }) }) });
|
|
2581
2581
|
};
|
|
2582
|
-
var
|
|
2583
|
-
var
|
|
2584
|
-
var
|
|
2585
|
-
var
|
|
2586
|
-
var
|
|
2582
|
+
var Vn = Tu;
|
|
2583
|
+
var Il = require("react-intl");
|
|
2584
|
+
var El = require("react-intl");
|
|
2585
|
+
var Un = (0, El.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.CameraNotSupported.title", defaultMessage: "Camera not supported", description: "Title of standalone page prompting that camera is not available on users browser" }, paragraph: { 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" } });
|
|
2586
|
+
var rt = require("react/jsx-runtime");
|
|
2587
2587
|
var Nu = () => {
|
|
2588
|
-
let e = (0,
|
|
2589
|
-
return (0,
|
|
2588
|
+
let e = (0, Il.useIntl)();
|
|
2589
|
+
return (0, rt.jsx)("div", { id: "camera-not-supported", children: (0, rt.jsx)("div", { className: "container p-t-5", children: (0, rt.jsx)("div", { className: "row", children: (0, rt.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, rt.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(Un.title) }), (0, rt.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(Un.paragraph) })] }) }) }) });
|
|
2590
2590
|
};
|
|
2591
|
-
var
|
|
2592
|
-
var
|
|
2593
|
-
var
|
|
2594
|
-
var
|
|
2591
|
+
var zn = Nu;
|
|
2592
|
+
var Dl = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
|
|
2593
|
+
var Ll = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await Ru(t, r));
|
|
2594
|
+
var Tl = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
|
|
2595
2595
|
var Ru = async (e, t) => {
|
|
2596
2596
|
var a;
|
|
2597
|
-
let r =
|
|
2598
|
-
return w(s({}, r && { "Available Video Devices (by label)": await
|
|
2597
|
+
let r = co(t), o = Bn(t), n = (a = r == null ? void 0 : r.getSettings) == null ? void 0 : a.call(r);
|
|
2598
|
+
return w(s({}, r && { "Available Video Devices (by label)": await Cl(), "Active Video Device (by label)": await xl(t), "Camera Capabilities": o, "Camera Settings": n }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
2599
2599
|
};
|
|
2600
|
-
var
|
|
2600
|
+
var re = require("react/jsx-runtime");
|
|
2601
2601
|
var Bu = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: n = "", instructions: a = "", showReview: i = false, onCapture: l, onEvent: u }) => {
|
|
2602
|
-
let [c, d] = (0,
|
|
2602
|
+
let [c, d] = (0, ee.useState)("CAPTURE"), [h, f] = (0, ee.useState)(false), [m, p] = (0, ee.useState)(false), [y, g] = (0, ee.useState)(), b = (0, ee.useMemo)(() => za(), []), S = (0, ee.useRef)(null), { videoConstraints: F } = vl(e), O = (0, Nl.useIntl)(), A = (0, ee.useCallback)(() => {
|
|
2603
2603
|
window.screen.orientation && "lock" in window.screen.orientation && typeof window.screen.orientation.lock == "function" && window.screen.orientation.lock("portrait").then(() => {
|
|
2604
2604
|
console.log("orientation locked");
|
|
2605
|
-
}).catch((
|
|
2606
|
-
console.log(
|
|
2605
|
+
}).catch((j) => {
|
|
2606
|
+
console.log(j);
|
|
2607
2607
|
});
|
|
2608
|
-
}, []),
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2608
|
+
}, []), v = () => {
|
|
2609
|
+
var j, W;
|
|
2610
|
+
(W = (j = window.screen) == null ? void 0 : j.orientation) != null && W.unlock && window.screen.orientation.unlock();
|
|
2611
|
+
}, M = (0, ee.useCallback)(() => {
|
|
2612
|
+
c === "CAPTURE" && b && !br.default.isFullscreen && br.default.isEnabled && br.default.request(document.documentElement, { navigationUI: "show" }).then(() => {
|
|
2613
|
+
A();
|
|
2614
|
+
}).catch((j) => {
|
|
2615
|
+
console.log(j);
|
|
2613
2616
|
});
|
|
2614
|
-
}, [c, b,
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2617
|
+
}, [c, b, A]), N = () => {
|
|
2618
|
+
br.default.exit().then(() => {
|
|
2619
|
+
console.log("Document Exited from Full screen mode");
|
|
2620
|
+
}).catch((j) => {
|
|
2621
|
+
console.error(j);
|
|
2622
|
+
});
|
|
2623
|
+
}, x = (0, ee.useCallback)(async () => {
|
|
2624
|
+
var j, W, ve, Jt, Cr, xr;
|
|
2625
|
+
if ((j = S == null ? void 0 : S.current) != null && j.video && ((ve = (W = S == null ? void 0 : S.current) == null ? void 0 : W.video) == null ? void 0 : ve.readyState) >= 3) {
|
|
2626
|
+
(Cr = (Jt = S == null ? void 0 : S.current) == null ? void 0 : Jt.video) == null || Cr.pause();
|
|
2627
|
+
let qe = await wl((xr = S == null ? void 0 : S.current) == null ? void 0 : xr.video);
|
|
2628
|
+
qe == null || qe.toBlob((Ft) => {
|
|
2629
|
+
if (Ft)
|
|
2621
2630
|
if (i) {
|
|
2622
|
-
let
|
|
2623
|
-
g({ source:
|
|
2631
|
+
let Co = window.URL.createObjectURL(Ft);
|
|
2632
|
+
g({ source: Co, blob: Ft }), d("REVIEW");
|
|
2624
2633
|
} else
|
|
2625
|
-
l(
|
|
2634
|
+
l(Ft);
|
|
2626
2635
|
}, "image/jpeg", 0.92);
|
|
2627
2636
|
}
|
|
2628
|
-
}, [S, i, g, d, l, h]),
|
|
2629
|
-
if (
|
|
2630
|
-
d("NO_CAMERA_ACCESS"),
|
|
2637
|
+
}, [S, i, g, d, l, h]), L = (0, ee.useCallback)((j) => {
|
|
2638
|
+
if (j instanceof DOMException && (j == null ? void 0 : j.name) === "NotAllowedError") {
|
|
2639
|
+
d("NO_CAMERA_ACCESS"), Dl(u);
|
|
2631
2640
|
return;
|
|
2632
2641
|
}
|
|
2633
|
-
d("CAMERA_NOT_SUPPORTED"),
|
|
2634
|
-
}, [d, u]),
|
|
2635
|
-
|
|
2636
|
-
|
|
2642
|
+
d("CAMERA_NOT_SUPPORTED"), Tl(u, j);
|
|
2643
|
+
}, [d, u]), H = (0, ee.useCallback)((j) => {
|
|
2644
|
+
setTimeout(() => {
|
|
2645
|
+
M();
|
|
2646
|
+
}, 100), p(true), f(Sl(j)), Ll(u, { direction: e }, j);
|
|
2647
|
+
}, [f, u, e, M]), q = () => {
|
|
2637
2648
|
l((y == null ? void 0 : y.blob) || null);
|
|
2638
|
-
},
|
|
2649
|
+
}, P = () => {
|
|
2639
2650
|
d("CAPTURE"), g(void 0);
|
|
2640
|
-
},
|
|
2641
|
-
(0,
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
};
|
|
2652
|
-
var Un = Bu;
|
|
2653
|
-
var Rl = require("react/jsx-runtime");
|
|
2651
|
+
}, R = () => d("CAPTURE");
|
|
2652
|
+
(0, ee.useEffect)(() => {
|
|
2653
|
+
(c !== "CAPTURE" || !b) && (N(), v());
|
|
2654
|
+
}, [c, b]), (0, ee.useEffect)(() => () => {
|
|
2655
|
+
N(), v();
|
|
2656
|
+
}, []);
|
|
2657
|
+
let E = (0, re.jsxs)(re.Fragment, { children: [F && (0, re.jsx)(Rl.default, { ref: S, audio: false, videoConstraints: F, mirrored: h, onUserMediaError: L, onUserMedia: H }), (0, re.jsx)(jn, { overlay: t, outline: r, imageUrl: o, title: n, instructions: a }), b && (0, re.jsx)(Rn, {}), m && (0, re.jsx)(hl, { onCapture: () => void x() })] }), ue = (0, re.jsxs)(re.Fragment, { children: [(0, re.jsx)("img", { className: "review-image", src: y == null ? void 0 : y.source, alt: "" }), (0, re.jsx)(jn, { overlay: t, imageUrl: o, title: n, instructions: a, reviewInstructions: O.formatMessage(gr.reviewInstructions) }), (0, re.jsx)(gl, { onSubmit: q, onRetry: P })] });
|
|
2658
|
+
return (0, re.jsxs)("section", { className: "camera-capture", children: [c === "CAPTURE" && E, c === "REVIEW" && ue, c === "NO_CAMERA_ACCESS" && (0, re.jsx)(Vn, { onAction: R }), c === "CAMERA_NOT_SUPPORTED" && (0, re.jsx)(zn, {})] });
|
|
2659
|
+
};
|
|
2660
|
+
var Hn = Bu;
|
|
2661
|
+
var jl = require("react/jsx-runtime");
|
|
2654
2662
|
function ju(e) {
|
|
2655
2663
|
return new Promise((t, r) => {
|
|
2656
2664
|
let o = new FileReader();
|
|
@@ -2658,55 +2666,55 @@ var require_main_min = __commonJS({
|
|
|
2658
2666
|
});
|
|
2659
2667
|
}
|
|
2660
2668
|
var Vu = (e) => {
|
|
2661
|
-
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = oe(), i =
|
|
2662
|
-
(0,
|
|
2669
|
+
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = oe(), i = Bl(t), l = Uu(t), u = zu(t), { title: c, image: d, cameraConfig: h } = l, { assets: f, direction: m, instructions: p } = h || {}, { overlay: y, outline: g } = f || {}, { url: b } = d || {}, [S, F] = (0, yo.useState)(false);
|
|
2670
|
+
(0, yo.useEffect)(() => {
|
|
2663
2671
|
S && n(u);
|
|
2664
2672
|
}, [r]);
|
|
2665
|
-
let
|
|
2666
|
-
let { $id:
|
|
2667
|
-
if (
|
|
2668
|
-
let
|
|
2669
|
-
F(true), o({ model: N, formSchema: i, triggerModel:
|
|
2673
|
+
let O = async (A) => {
|
|
2674
|
+
let { $id: v } = l;
|
|
2675
|
+
if (A) {
|
|
2676
|
+
let M = await ju(A), N = { [v || ""]: M };
|
|
2677
|
+
F(true), o({ model: N, formSchema: i, triggerModel: M, triggerSchema: l });
|
|
2670
2678
|
}
|
|
2671
2679
|
};
|
|
2672
|
-
return (0,
|
|
2673
|
-
|
|
2680
|
+
return (0, jl.jsx)(Hn, { overlay: y, outline: g, title: c, imageUrl: b, instructions: p, direction: m, onEvent: a, onCapture: (A) => {
|
|
2681
|
+
O(A);
|
|
2674
2682
|
} });
|
|
2675
2683
|
};
|
|
2676
|
-
var
|
|
2677
|
-
function
|
|
2678
|
-
let r =
|
|
2684
|
+
var ho = Vu;
|
|
2685
|
+
function Bl(e) {
|
|
2686
|
+
let r = Vr(e.schemas || [])[0];
|
|
2679
2687
|
if (!r || !Pe(r))
|
|
2680
2688
|
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...");
|
|
2681
2689
|
return r;
|
|
2682
2690
|
}
|
|
2683
2691
|
function Uu(e) {
|
|
2684
|
-
let t =
|
|
2692
|
+
let t = Bl(e), r = Object.values(t.properties)[0];
|
|
2685
2693
|
if (!r)
|
|
2686
2694
|
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...");
|
|
2687
2695
|
return r;
|
|
2688
2696
|
}
|
|
2689
2697
|
function zu(e) {
|
|
2690
2698
|
var t, r;
|
|
2691
|
-
if (!e.schemas || ((t =
|
|
2699
|
+
if (!e.schemas || ((t = Vr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2692
2700
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
2693
2701
|
if (((r = e == null ? void 0 : e.actions) == null ? void 0 : r.length) !== 1)
|
|
2694
2702
|
throw new Error("camera step expects 1 action");
|
|
2695
2703
|
return e.actions[0];
|
|
2696
2704
|
}
|
|
2705
|
+
var zl = require("react-intl");
|
|
2697
2706
|
var Vl = require("react-intl");
|
|
2698
|
-
var
|
|
2699
|
-
var
|
|
2700
|
-
var Ul =
|
|
2701
|
-
var jl = () => {
|
|
2707
|
+
var wr = (0, Vl.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." } });
|
|
2708
|
+
var Hl = require("react/jsx-runtime");
|
|
2709
|
+
var Ul = () => {
|
|
2702
2710
|
};
|
|
2703
2711
|
var Hu = ({ url: e, onClose: t }) => {
|
|
2704
|
-
let { formatMessage: r } = (0,
|
|
2705
|
-
return (0,
|
|
2712
|
+
let { formatMessage: r } = (0, zl.useIntl)();
|
|
2713
|
+
return (0, Hl.jsx)(me, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(wr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(wr.description, { origin: qu(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(wr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(wr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (o) => {
|
|
2706
2714
|
o.url && window.open(o.url, "_blank"), t();
|
|
2707
|
-
}, onModelChange:
|
|
2715
|
+
}, onModelChange: Ul, onPersistAsync: Ul });
|
|
2708
2716
|
};
|
|
2709
|
-
var
|
|
2717
|
+
var go = Hu;
|
|
2710
2718
|
function qu(e) {
|
|
2711
2719
|
try {
|
|
2712
2720
|
return new URL(e).origin;
|
|
@@ -2714,26 +2722,26 @@ var require_main_min = __commonJS({
|
|
|
2714
2722
|
return e;
|
|
2715
2723
|
}
|
|
2716
2724
|
}
|
|
2717
|
-
var
|
|
2718
|
-
var
|
|
2719
|
-
var
|
|
2720
|
-
var Gu = ({ title: e, action: t, onAction: r }) => (0,
|
|
2725
|
+
var ql = require("@transferwise/components");
|
|
2726
|
+
var Gl = require("@transferwise/icons");
|
|
2727
|
+
var Wt = require("react/jsx-runtime");
|
|
2728
|
+
var Gu = ({ title: e, action: t, onAction: r }) => (0, Wt.jsxs)("a", { onClick: (o) => {
|
|
2721
2729
|
o.preventDefault(), r(w(s({}, t), { skipValidation: true }));
|
|
2722
|
-
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0,
|
|
2723
|
-
var
|
|
2730
|
+
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, Wt.jsx)("span", { className: "sr-only", children: e }), (0, Wt.jsx)(ql.Avatar, { type: "icon", children: (0, Wt.jsx)(Gl.ArrowLeft, { size: "24" }) })] });
|
|
2731
|
+
var $l = Gu;
|
|
2724
2732
|
var De = require("react/jsx-runtime");
|
|
2725
|
-
var
|
|
2733
|
+
var Jr = (e) => {
|
|
2726
2734
|
var u, c, d;
|
|
2727
|
-
let { step: t, globalError: r, onAction: o } = e, n = (u = t == null ? void 0 : t.external) == null ? void 0 : u.url, a = ((c = t == null ? void 0 : t.navigation) == null ? void 0 : c.back) || ((d = t == null ? void 0 : t.navigation) == null ? void 0 : d.backButton), { requiresManualTrigger: i, dismissConfirmation: l } =
|
|
2728
|
-
return t === void 0 ? null : n && i ? (0, De.jsx)(
|
|
2735
|
+
let { step: t, globalError: r, onAction: o } = e, n = (u = t == null ? void 0 : t.external) == null ? void 0 : u.url, a = ((c = t == null ? void 0 : t.navigation) == null ? void 0 : c.back) || ((d = t == null ? void 0 : t.navigation) == null ? void 0 : d.backButton), { requiresManualTrigger: i, dismissConfirmation: l } = Ga(n);
|
|
2736
|
+
return t === void 0 ? null : n && i ? (0, De.jsx)(go, { url: n, onClose: l }) : Va(t) ? (0, De.jsx)(ho, w(s({}, e), { step: t })) : (0, De.jsxs)(De.Fragment, { children: [a && (0, De.jsx)($l, w(s({}, a), { onAction: o })), r ? (0, De.jsx)(le, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, De.jsx)(mo, w(s({}, e), { stepSpecification: t }))] });
|
|
2729
2737
|
};
|
|
2730
|
-
var
|
|
2738
|
+
var Wl = require("react");
|
|
2731
2739
|
var $u = 1e3;
|
|
2732
|
-
function
|
|
2733
|
-
let t = (0,
|
|
2740
|
+
function _l(e) {
|
|
2741
|
+
let t = (0, Wl.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
|
|
2734
2742
|
if (t.current.has(o))
|
|
2735
2743
|
return t.current.get(o);
|
|
2736
|
-
let n =
|
|
2744
|
+
let n = Ke((a, i, l) => e(a, i, l), $u);
|
|
2737
2745
|
return t.current.set(o, n), n;
|
|
2738
2746
|
};
|
|
2739
2747
|
return function(o, n, a, i) {
|
|
@@ -2741,70 +2749,70 @@ var require_main_min = __commonJS({
|
|
|
2741
2749
|
l(o, n, a), (!i || !Wu(i)) && l.flush();
|
|
2742
2750
|
};
|
|
2743
2751
|
}
|
|
2744
|
-
var Wu = (e) =>
|
|
2745
|
-
var
|
|
2746
|
-
var
|
|
2752
|
+
var Wu = (e) => st(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2753
|
+
var _t = require("react");
|
|
2754
|
+
var Xl = (e) => {
|
|
2747
2755
|
var m, p;
|
|
2748
|
-
let [t, r] = (0,
|
|
2749
|
-
var b, S, F,
|
|
2750
|
-
i((
|
|
2756
|
+
let [t, r] = (0, _t.useState)((m = e == null ? void 0 : e.errors) == null ? void 0 : m.validation), [o, n] = (0, _t.useState)((p = e == null ? void 0 : e.errors) == null ? void 0 : p.error), [a, i] = (0, _t.useState)({ step: e || void 0, models: e != null && e.model ? Kl(e.model, Jl(e)) : {}, etag: void 0 }), { step: l, models: u, etag: c } = a, d = (y, g) => {
|
|
2757
|
+
var b, S, F, O;
|
|
2758
|
+
i((A) => ({ step: y, models: y.model ? Kl(y.model, Jl(y)) : A.models, etag: g })), r((S = (b = y == null ? void 0 : y.errors) == null ? void 0 : b.validation) != null ? S : null), n((O = (F = y == null ? void 0 : y.errors) == null ? void 0 : F.error) != null ? O : null);
|
|
2751
2759
|
}, h = (y, g, b) => {
|
|
2752
2760
|
i((S) => {
|
|
2753
|
-
let F = w(s({}, S.models), { [y]: g }),
|
|
2754
|
-
return b(F),
|
|
2761
|
+
let F = w(s({}, S.models), { [y]: g }), O = { step: S.step, models: F, etag: S.etag };
|
|
2762
|
+
return b(F), O;
|
|
2755
2763
|
});
|
|
2756
|
-
}, f = (0,
|
|
2764
|
+
}, f = (0, _t.useMemo)(() => Ku(u, _u(l)), [u, l]);
|
|
2757
2765
|
return { formErrors: t, globalError: o, step: l, models: u, etag: c, modelIsValid: f, setFormErrors: r, setGlobalError: n, setStepAndEtag: d, setSchemaModel: h };
|
|
2758
2766
|
};
|
|
2759
|
-
var
|
|
2760
|
-
var
|
|
2761
|
-
var
|
|
2767
|
+
var Kl = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), w(s({}, r), { [o.$id || ""]: se(e, o) || {} })), {});
|
|
2768
|
+
var Jl = (e) => [...So((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
|
|
2769
|
+
var So = (e) => e.flatMap((t) => {
|
|
2762
2770
|
switch (t.type) {
|
|
2763
2771
|
case "columns":
|
|
2764
|
-
return [...
|
|
2772
|
+
return [...So([...t.left, ...t.right])];
|
|
2765
2773
|
case "box":
|
|
2766
|
-
return
|
|
2774
|
+
return So(t.components);
|
|
2767
2775
|
case "form":
|
|
2768
|
-
return
|
|
2776
|
+
return Yl(t.schema) ? [t.schema] : [];
|
|
2769
2777
|
default:
|
|
2770
2778
|
return [];
|
|
2771
2779
|
}
|
|
2772
2780
|
});
|
|
2773
|
-
var _u = (e) => [...
|
|
2774
|
-
var
|
|
2781
|
+
var _u = (e) => [...qn((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...So((e == null ? void 0 : e.layout) || [])];
|
|
2782
|
+
var qn = (e) => e.flatMap((t) => {
|
|
2775
2783
|
switch (t.type) {
|
|
2776
2784
|
case "columns":
|
|
2777
|
-
return [...
|
|
2785
|
+
return [...qn([...t.left, ...t.right])];
|
|
2778
2786
|
case "box":
|
|
2779
|
-
return
|
|
2787
|
+
return qn(t.components);
|
|
2780
2788
|
case "form":
|
|
2781
2789
|
return [Ju(t)];
|
|
2782
2790
|
default:
|
|
2783
2791
|
return [];
|
|
2784
2792
|
}
|
|
2785
2793
|
}).filter(Boolean);
|
|
2786
|
-
var Ku = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !
|
|
2787
|
-
var Ju = (e) => e.schema && !
|
|
2788
|
-
var
|
|
2789
|
-
var
|
|
2790
|
-
var
|
|
2791
|
-
var
|
|
2792
|
-
function
|
|
2793
|
-
let r = s({ size:
|
|
2794
|
+
var Ku = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !K(e[r.$id || ""] || {}, r))));
|
|
2795
|
+
var Ju = (e) => e.schema && !Yl(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2796
|
+
var Yl = (e) => e !== void 0 && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "$ref") === false;
|
|
2797
|
+
var bo = require("@transferwise/components");
|
|
2798
|
+
var Zl = require("react");
|
|
2799
|
+
var em = require("react/jsx-runtime");
|
|
2800
|
+
function Ql(e, t) {
|
|
2801
|
+
let r = s({ size: bo.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, n] = (0, Zl.useState)(t), i = r.initial && o === "initial" || r.submission && o === "submission" ? (0, em.jsx)(bo.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
|
|
2794
2802
|
return { isLoading: o !== "idle", setLoadingState: n, loader: i };
|
|
2795
2803
|
}
|
|
2796
|
-
var
|
|
2797
|
-
var
|
|
2798
|
-
var
|
|
2799
|
-
var
|
|
2800
|
-
var
|
|
2801
|
-
let { formatMessage: t } = (0,
|
|
2802
|
-
return (0,
|
|
2804
|
+
var nm = require("react");
|
|
2805
|
+
var wo = require("@transferwise/components");
|
|
2806
|
+
var tm = require("react-intl");
|
|
2807
|
+
var om = require("react/jsx-runtime");
|
|
2808
|
+
var rm = ({ onDismiss: e }) => {
|
|
2809
|
+
let { formatMessage: t } = (0, tm.useIntl)();
|
|
2810
|
+
return (0, om.jsx)(wo.Alert, { action: { text: t(Gt.retry), href: window.location.href }, message: t(Gt.errorAlert), type: wo.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2803
2811
|
};
|
|
2804
|
-
var
|
|
2812
|
+
var Kt = require("react/jsx-runtime");
|
|
2805
2813
|
var Xu = () => {
|
|
2806
2814
|
};
|
|
2807
|
-
var
|
|
2815
|
+
var Gn = class extends nm.Component {
|
|
2808
2816
|
constructor(r) {
|
|
2809
2817
|
super(r);
|
|
2810
2818
|
this.handleErrorReset = () => {
|
|
@@ -2821,31 +2829,31 @@ var require_main_min = __commonJS({
|
|
|
2821
2829
|
}
|
|
2822
2830
|
render() {
|
|
2823
2831
|
let { children: r } = this.props, { hasError: o, isFatalError: n } = this.state;
|
|
2824
|
-
return (0,
|
|
2832
|
+
return (0, Kt.jsxs)(Kt.Fragment, { children: [o && (0, Kt.jsx)(rm, { onDismiss: this.handleErrorReset }), !n && r] });
|
|
2825
2833
|
}
|
|
2826
2834
|
};
|
|
2827
|
-
var
|
|
2828
|
-
var
|
|
2835
|
+
var $n = Gn;
|
|
2836
|
+
var am = async (e, t) => {
|
|
2829
2837
|
switch (t) {
|
|
2830
2838
|
case "step":
|
|
2831
|
-
return nm(e);
|
|
2832
|
-
case "exit":
|
|
2833
2839
|
return im(e);
|
|
2840
|
+
case "exit":
|
|
2841
|
+
return lm(e);
|
|
2834
2842
|
case "action":
|
|
2835
|
-
return
|
|
2843
|
+
return sm(e);
|
|
2836
2844
|
default:
|
|
2837
2845
|
throw new Error("Unsupported X-Df-Response-Type. Allowed values are 'step', 'action', 'exit'.");
|
|
2838
2846
|
}
|
|
2839
2847
|
};
|
|
2840
|
-
var
|
|
2841
|
-
let t = await
|
|
2848
|
+
var im = async (e) => {
|
|
2849
|
+
let t = await Fr(e);
|
|
2842
2850
|
if (!T(t))
|
|
2843
2851
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2844
2852
|
let r = e.headers.get("etag") || void 0;
|
|
2845
2853
|
return { type: "step", step: t, etag: r };
|
|
2846
2854
|
};
|
|
2847
|
-
var
|
|
2848
|
-
let t = await
|
|
2855
|
+
var sm = async (e) => {
|
|
2856
|
+
let t = await Fr(e);
|
|
2849
2857
|
if (!T(t))
|
|
2850
2858
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2851
2859
|
if (!T(t.action))
|
|
@@ -2853,172 +2861,172 @@ var require_main_min = __commonJS({
|
|
|
2853
2861
|
let r = t.action;
|
|
2854
2862
|
return r.exit === true && T(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
|
|
2855
2863
|
};
|
|
2856
|
-
var
|
|
2857
|
-
var
|
|
2864
|
+
var lm = async (e) => ({ type: "exit", result: await Wn(e) });
|
|
2865
|
+
var mm = async (e) => {
|
|
2858
2866
|
var r, o, n;
|
|
2859
|
-
if (
|
|
2867
|
+
if (_n(e), (r = e.headers) != null && r.has("X-Df-Response-Type")) {
|
|
2860
2868
|
let a = e.headers.get("X-Df-Response-Type");
|
|
2861
|
-
return
|
|
2869
|
+
return am(e, a);
|
|
2862
2870
|
}
|
|
2863
2871
|
if ((o = e.headers) != null && o.has("X-Df-ResponseType")) {
|
|
2864
2872
|
let a = e.headers.get("X-Df-ResponseType");
|
|
2865
|
-
return
|
|
2873
|
+
return am(e, a);
|
|
2866
2874
|
}
|
|
2867
2875
|
if ((n = e.headers) != null && n.has("X-Df-Exit"))
|
|
2868
|
-
return
|
|
2869
|
-
let t = await
|
|
2870
|
-
return T(t) && t.action ?
|
|
2876
|
+
return lm(e);
|
|
2877
|
+
let t = await Fr(e.clone());
|
|
2878
|
+
return T(t) && t.action ? sm(e) : im(e);
|
|
2871
2879
|
};
|
|
2872
|
-
var
|
|
2873
|
-
|
|
2874
|
-
let t = await
|
|
2880
|
+
var cm = async (e) => {
|
|
2881
|
+
_n(e);
|
|
2882
|
+
let t = await Fr(e);
|
|
2875
2883
|
if (!T(t))
|
|
2876
2884
|
throw new Error("Incorrect response body in error response. Expected an object.");
|
|
2877
2885
|
if (!t.refreshFormUrl && !t.refreshUrl && !t.validation && !t.error)
|
|
2878
2886
|
throw t;
|
|
2879
2887
|
return t;
|
|
2880
2888
|
};
|
|
2881
|
-
var
|
|
2882
|
-
|
|
2883
|
-
let t = await
|
|
2889
|
+
var Wn = async (e) => {
|
|
2890
|
+
_n(e);
|
|
2891
|
+
let t = await Fr(e);
|
|
2884
2892
|
return T(t) ? t : null;
|
|
2885
2893
|
};
|
|
2886
|
-
var
|
|
2894
|
+
var Fr = async (e) => {
|
|
2887
2895
|
try {
|
|
2888
2896
|
return await e.json();
|
|
2889
2897
|
} catch (t) {
|
|
2890
2898
|
return null;
|
|
2891
2899
|
}
|
|
2892
2900
|
};
|
|
2893
|
-
var
|
|
2901
|
+
var _n = (e) => {
|
|
2894
2902
|
if (!Yu(e))
|
|
2895
2903
|
throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
|
|
2896
2904
|
if (e.bodyUsed)
|
|
2897
2905
|
throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
|
|
2898
2906
|
};
|
|
2899
2907
|
var Yu = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2900
|
-
var
|
|
2901
|
-
var
|
|
2908
|
+
var ot = require("react/jsx-runtime");
|
|
2909
|
+
var dm = () => {
|
|
2902
2910
|
};
|
|
2903
|
-
var Zu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: n, displayStepTitle: a = true, onCompletion: i, onError: l, onEvent: u =
|
|
2904
|
-
let { locale: d } = (0,
|
|
2911
|
+
var Zu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: n, displayStepTitle: a = true, onCompletion: i, onError: l, onEvent: u = dm, onLog: c = dm }) => {
|
|
2912
|
+
let { locale: d } = (0, um.useIntl)(), { formErrors: h, globalError: f, step: m, models: p, etag: y, modelIsValid: g, setFormErrors: b, setGlobalError: S, setStepAndEtag: F, setSchemaModel: O } = Xl(o), [A, v] = (0, xe.useState)(false), { isLoading: M, loader: N, setLoadingState: x } = Ql(n, o ? "idle" : "initial"), L = at("critical", c, e, (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key)), H = (0, xe.useMemo)(() => {
|
|
2905
2913
|
var C;
|
|
2906
2914
|
return s({ flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key) }, (C = m == null ? void 0 : m.analytics) != null ? C : {});
|
|
2907
|
-
}, [e, m]),
|
|
2908
|
-
let { url:
|
|
2909
|
-
return t(
|
|
2910
|
-
}, [t, d]), R = async (C,
|
|
2911
|
-
|
|
2915
|
+
}, [e, m]), q = (0, xe.useMemo)(() => Mo(u, H), [u, H]), P = (0, xe.useCallback)(({ action: C, data: z, etag: D }) => {
|
|
2916
|
+
let { url: te, method: Ge = "POST" } = C;
|
|
2917
|
+
return t(te != null ? te : "", { method: Ge, headers: s({ "accept-language": d, "Content-Type": "application/json" }, D ? { "If-None-Match": D } : {}), credentials: "include", body: Ge === "GET" ? void 0 : JSON.stringify(z) });
|
|
2918
|
+
}, [t, d]), R = async (C, z = {}) => {
|
|
2919
|
+
x(m ? "submission" : "initial"), q("Dynamic Flow - Step Submitted", { actionId: C.id || C.$id });
|
|
2912
2920
|
try {
|
|
2913
|
-
let D = await
|
|
2914
|
-
await
|
|
2921
|
+
let D = await P({ action: C, data: z });
|
|
2922
|
+
await Jt(D, "submission");
|
|
2915
2923
|
} catch (D) {
|
|
2916
|
-
|
|
2924
|
+
qe(D, "Error fetching next step");
|
|
2917
2925
|
}
|
|
2918
|
-
},
|
|
2919
|
-
|
|
2926
|
+
}, E = async (C, z, D) => {
|
|
2927
|
+
x("refresh"), q("Dynamic Flow - Step Refreshed", { status: "pending" });
|
|
2920
2928
|
try {
|
|
2921
|
-
let
|
|
2922
|
-
await
|
|
2923
|
-
} catch (
|
|
2924
|
-
|
|
2929
|
+
let te = await P({ action: { url: C, method: "POST" }, data: z, etag: D });
|
|
2930
|
+
await Jt(te, "refresh");
|
|
2931
|
+
} catch (te) {
|
|
2932
|
+
qe(te, "Error fetching refresh step");
|
|
2925
2933
|
}
|
|
2926
|
-
},
|
|
2927
|
-
|
|
2934
|
+
}, ue = async (C, z) => {
|
|
2935
|
+
x("submission");
|
|
2928
2936
|
try {
|
|
2929
|
-
let D = await
|
|
2930
|
-
await
|
|
2937
|
+
let D = await P({ action: C, data: z });
|
|
2938
|
+
await j(D, C.result);
|
|
2931
2939
|
} catch (D) {
|
|
2932
|
-
|
|
2940
|
+
qe(D, "Error fetching exit result");
|
|
2933
2941
|
}
|
|
2934
|
-
},
|
|
2935
|
-
let D = await
|
|
2936
|
-
ve(s(s({}, D),
|
|
2937
|
-
},
|
|
2938
|
-
|
|
2939
|
-
}, [i,
|
|
2942
|
+
}, j = async (C, z) => {
|
|
2943
|
+
let D = await Wn(C);
|
|
2944
|
+
ve(s(s({}, D), z));
|
|
2945
|
+
}, W = _l(E), ve = (0, xe.useCallback)((C) => {
|
|
2946
|
+
q("Dynamic Flow - Flow Finished", { result: "success" }), i(C);
|
|
2947
|
+
}, [i, q]);
|
|
2940
2948
|
(0, xe.useEffect)(() => {
|
|
2941
|
-
|
|
2949
|
+
q("Dynamic Flow - Flow Started", {});
|
|
2942
2950
|
}, []), (0, xe.useEffect)(() => {
|
|
2943
2951
|
if (!o) {
|
|
2944
2952
|
let C = s({ id: "#initial-step-request", method: "GET" }, r);
|
|
2945
2953
|
R(C, C.data);
|
|
2946
2954
|
}
|
|
2947
2955
|
}, [t, d, JSON.stringify(o), JSON.stringify(r)]);
|
|
2948
|
-
let
|
|
2956
|
+
let Jt = async (C, z) => {
|
|
2949
2957
|
try {
|
|
2950
2958
|
if (C.status === 304) {
|
|
2951
|
-
|
|
2959
|
+
x("idle");
|
|
2952
2960
|
return;
|
|
2953
2961
|
}
|
|
2954
2962
|
if (!C.ok) {
|
|
2955
|
-
let
|
|
2956
|
-
|
|
2963
|
+
let te = await cm(C);
|
|
2964
|
+
xr(te);
|
|
2957
2965
|
return;
|
|
2958
2966
|
}
|
|
2959
|
-
let D = await
|
|
2960
|
-
D.type === "action" ? R(D.action, D.action.data) : D.type === "exit" ? ve(D.result) :
|
|
2967
|
+
let D = await mm(C);
|
|
2968
|
+
D.type === "action" ? R(D.action, D.action.data) : D.type === "exit" ? ve(D.result) : Cr(D.step, D.etag, z);
|
|
2961
2969
|
} catch (D) {
|
|
2962
|
-
return
|
|
2970
|
+
return qe(D, "Error parsing fetch response", z, C.status);
|
|
2963
2971
|
}
|
|
2964
|
-
},
|
|
2965
|
-
F(C,
|
|
2966
|
-
},
|
|
2967
|
-
let
|
|
2968
|
-
|
|
2969
|
-
},
|
|
2970
|
-
L("Error fetching",
|
|
2971
|
-
},
|
|
2972
|
-
let { model:
|
|
2973
|
-
S(null),
|
|
2974
|
-
|
|
2972
|
+
}, Cr = (C, z, D) => {
|
|
2973
|
+
F(C, z), x("idle"), D === "submission" ? (v(false), q("Dynamic Flow - Step Started", s({ stepId: C.id || C.key }, C == null ? void 0 : C.analytics))) : q("Dynamic Flow - Step Refreshed", { status: "success" });
|
|
2974
|
+
}, xr = async (C) => {
|
|
2975
|
+
let z = C.refreshUrl || C.refreshFormUrl;
|
|
2976
|
+
z && await E(z, Fo(p), y), C.validation && b(C.validation), C.error && S(C.error), x("idle");
|
|
2977
|
+
}, qe = (C, z, D, te) => {
|
|
2978
|
+
L("Error fetching", z), D === "refresh" && q("Dynamic Flow - Step Refreshed", { status: "failure" }), q("Dynamic Flow - Flow Finished", { status: "failure" }), l(C, te), x("idle");
|
|
2979
|
+
}, Ft = (C) => {
|
|
2980
|
+
let { model: z, formSchema: D } = C, { $id: te = "" } = D;
|
|
2981
|
+
S(null), _(z) || L("Invalid model on change", "onModelChange was called but the model argument is not an object"), O(te, z, (Ct) => {
|
|
2982
|
+
Co(C, Ct);
|
|
2975
2983
|
});
|
|
2976
|
-
},
|
|
2984
|
+
}, Co = (C, z) => {
|
|
2977
2985
|
let { triggerSchema: D } = C;
|
|
2978
2986
|
if (tp(C)) {
|
|
2979
|
-
let
|
|
2980
|
-
Ct &&
|
|
2987
|
+
let te = D.refreshUrl || D.refreshFormUrl, Ge = (m == null ? void 0 : m.refreshUrl) || (m == null ? void 0 : m.refreshFormUrl), Ct = te || Ge;
|
|
2988
|
+
Ct && W(Ct, Fo(z), y, D);
|
|
2981
2989
|
}
|
|
2982
2990
|
}, km = async (C) => {
|
|
2983
|
-
if (
|
|
2991
|
+
if (M || C.disabled)
|
|
2984
2992
|
return;
|
|
2985
2993
|
if (C.exit && !C.url) {
|
|
2986
2994
|
ve(C.result);
|
|
2987
2995
|
return;
|
|
2988
2996
|
}
|
|
2989
|
-
let
|
|
2990
|
-
ep(
|
|
2997
|
+
let z = C.exit ? ue : R, { data: D, method: te, skipValidation: Ge } = C, Ct = s(s({}, Fo(p)), D);
|
|
2998
|
+
ep(te) ? (b(null), Ge || v(true), (g || Ge) && await z(C, Ct)) : await z(C);
|
|
2991
2999
|
};
|
|
2992
|
-
return (0,
|
|
3000
|
+
return (0, ot.jsx)(Nr, { flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key), onLog: c, children: (0, ot.jsx)(Mr, { metadata: H, onEvent: u, children: (0, ot.jsx)(ia, { loading: M, children: (0, ot.jsx)(da, { httpClient: t, children: N !== null ? N : (0, ot.jsx)(Jr, { step: m, model: Fo(p), submitted: A, globalError: f, formErrors: h, stepLayoutOptions: { displayStepTitle: a }, onAction: (C) => {
|
|
2993
3001
|
km(C);
|
|
2994
|
-
}, onModelChange:
|
|
3002
|
+
}, onModelChange: Ft }) }) }) }) });
|
|
2995
3003
|
};
|
|
2996
|
-
var Qu = (e) => (0,
|
|
2997
|
-
var
|
|
2998
|
-
var
|
|
3004
|
+
var Qu = (e) => (0, ot.jsx)($n, { onError: e.onError, children: (0, ot.jsx)(Zu, s({}, e)) });
|
|
3005
|
+
var Kn = Qu;
|
|
3006
|
+
var Fo = (e) => Object.values(e).reduce((t, r) => s(s({}, t), r), {});
|
|
2999
3007
|
var ep = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
3000
3008
|
var tp = (e) => {
|
|
3001
|
-
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: n = null } = e, a = () =>
|
|
3009
|
+
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: n = null } = e, a = () => K(o, r), i = () => K(n, r), l = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
3002
3010
|
return t !== "init" && l && (a() || i());
|
|
3003
3011
|
};
|
|
3004
|
-
var
|
|
3005
|
-
var
|
|
3006
|
-
var
|
|
3007
|
-
var
|
|
3008
|
-
var
|
|
3009
|
-
var
|
|
3010
|
-
var
|
|
3011
|
-
var
|
|
3012
|
-
var
|
|
3013
|
-
var
|
|
3014
|
-
var
|
|
3015
|
-
var
|
|
3016
|
-
var
|
|
3017
|
-
var
|
|
3018
|
-
var
|
|
3019
|
-
var
|
|
3020
|
-
var Sp = { en:
|
|
3021
|
-
var
|
|
3012
|
+
var pm = { "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.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.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.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" };
|
|
3013
|
+
var fm = { "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.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.imgAlt": "Rotate your phone icon", "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.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" };
|
|
3014
|
+
var ym = { "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.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.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.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" };
|
|
3015
|
+
var hm = { "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.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.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.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" };
|
|
3016
|
+
var gm = { "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\xE1sra", "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.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.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" };
|
|
3017
|
+
var Sm = { "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.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.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.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" };
|
|
3018
|
+
var bm = { "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.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.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.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" };
|
|
3019
|
+
var wm = { "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.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.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.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" };
|
|
3020
|
+
var Fm = { "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.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.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.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" };
|
|
3021
|
+
var Cm = { "dynamicFlows.ArraySchema.addItem": "Salvar", "dynamicFlows.ArraySchema.addItemTitle": "Add 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.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.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.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" };
|
|
3022
|
+
var xm = { "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.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.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.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" };
|
|
3023
|
+
var vm = { "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.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.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.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" };
|
|
3024
|
+
var Am = { "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.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.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.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" };
|
|
3025
|
+
var Om = { "dynamicFlows.ArraySchema.addItem": "Kaydet", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "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.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.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.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" };
|
|
3026
|
+
var Jn = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0 {maxItems} \u4E2A\u6216\u66F4\u5C11\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems}\u3002", "dynamicFlows.ArraySchema.removeItem": "\u5220\u9664", "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": "\u4E0D\u652F\u6301\u6444\u50CF\u5934", "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": "\u60A8\u7684\u56FE\u7247\u662F\u5426\u6E05\u6670\u3001\u53EF\u8BFB\u548C\u5B8C\u6574\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u91CD\u8BD5", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165 {maxLength} \u4E2A\u6216\u66F4\u5C11\u5B57\u7B26", "dynamicFlows.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57", "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\u4E0D\u6B63\u786E", "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\u95EE\u9898\u4E86\u2026", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8BD5", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "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": "\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 {maxItems} \u4E2A\u6216\u66F4\u5C11\u7684\u6587\u4EF6\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8BF7\u81F3\u5C11\u4E0A\u4F20 {minItems} \u4E2A\u6587\u4EF6\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u73B0\u4E00\u4E9B\u95EE\u9898\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF01", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
|
|
3027
|
+
var Pm = { "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.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.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.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" };
|
|
3028
|
+
var Sp = { en: fm, de: pm, es: ym, fr: hm, hu: gm, id: Sm, it: bm, ja: wm, pl: Fm, pt: Cm, ro: xm, ru: vm, th: Am, tr: Om, zh: Jn, "zh-CN": Jn, "zh-HK": Pm };
|
|
3029
|
+
var Mm = Sp;
|
|
3022
3030
|
}
|
|
3023
3031
|
});
|
|
3024
3032
|
|