@wise/dynamic-flow-client-internal 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +487 -486
- package/build/main.min.js +1 -1
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -51,40 +51,40 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
51
51
|
var require_main_min = __commonJS({
|
|
52
52
|
"../core/build/main.min.js"(exports, module2) {
|
|
53
53
|
"use strict";
|
|
54
|
-
var
|
|
54
|
+
var Sl = Object.create;
|
|
55
55
|
var _t = Object.defineProperty;
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
56
|
+
var bl = Object.defineProperties;
|
|
57
|
+
var wl = Object.getOwnPropertyDescriptor;
|
|
58
|
+
var Fl = Object.getOwnPropertyDescriptors;
|
|
59
|
+
var Cl = Object.getOwnPropertyNames;
|
|
60
|
+
var jn = Object.getOwnPropertySymbols;
|
|
61
|
+
var xl = Object.getPrototypeOf;
|
|
62
62
|
var Un = Object.prototype.hasOwnProperty;
|
|
63
|
-
var
|
|
64
|
-
var
|
|
63
|
+
var Al = Object.prototype.propertyIsEnumerable;
|
|
64
|
+
var Vn = (e, t, r) => t in e ? _t(e, t, { enumerable: true, configurable: true, writable: true, value: r }) : e[t] = r;
|
|
65
65
|
var i = (e, t) => {
|
|
66
66
|
for (var r in t ||= {})
|
|
67
|
-
Un.call(t, r) &&
|
|
68
|
-
if (
|
|
69
|
-
for (var r of
|
|
70
|
-
|
|
67
|
+
Un.call(t, r) && Vn(e, r, t[r]);
|
|
68
|
+
if (jn)
|
|
69
|
+
for (var r of jn(t))
|
|
70
|
+
Al.call(t, r) && Vn(e, r, t[r]);
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
|
-
var b = (e, t) =>
|
|
73
|
+
var b = (e, t) => bl(e, Fl(t));
|
|
74
74
|
var zn = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
75
|
-
var
|
|
75
|
+
var vl = (e, t) => {
|
|
76
76
|
for (var r in t)
|
|
77
77
|
_t(e, r, { get: t[r], enumerable: true });
|
|
78
78
|
};
|
|
79
79
|
var Hn = (e, t, r, o) => {
|
|
80
80
|
if (t && typeof t == "object" || typeof t == "function")
|
|
81
|
-
for (let n of
|
|
82
|
-
!Un.call(e, n) && n !== r && _t(e, n, { get: () => t[n], enumerable: !(o =
|
|
81
|
+
for (let n of Cl(t))
|
|
82
|
+
!Un.call(e, n) && n !== r && _t(e, n, { get: () => t[n], enumerable: !(o = wl(t, n)) || o.enumerable });
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
var qe = (e, t, r) => (r = e != null ?
|
|
86
|
-
var
|
|
87
|
-
var st = zn((
|
|
85
|
+
var qe = (e, t, r) => (r = e != null ? Sl(xl(e)) : {}, Hn(t || !e || !e.__esModule ? _t(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
|
+
var Ol = (e) => Hn(_t({}, "__esModule", { value: true }), e);
|
|
87
|
+
var st = zn((Lf, Rr) => {
|
|
88
88
|
(function() {
|
|
89
89
|
"use strict";
|
|
90
90
|
var e = {}.hasOwnProperty, t = "[native code]";
|
|
@@ -298,7 +298,7 @@ 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, S = p.props, h = S.audio, F = S.forceScreenshotSourceSize, w = S.onUserMedia, v = S.onUserMediaError, O = S.screenshotFormat, C = S.screenshotQuality, D = S.minScreenshotWidth, T = S.minScreenshotHeight, P = S.audioConstraints, N = S.videoConstraints, G = S.imageSmoothing, A = S.mirrored,
|
|
301
|
+
var m = this, p = this, y = p.state, S = p.props, h = S.audio, F = S.forceScreenshotSourceSize, w = S.onUserMedia, v = S.onUserMediaError, O = S.screenshotFormat, C = S.screenshotQuality, D = S.minScreenshotWidth, T = S.minScreenshotHeight, P = S.audioConstraints, N = S.videoConstraints, G = S.imageSmoothing, A = S.mirrored, j = S.style, E = j === void 0 ? {} : j, H = S.children, Ae = u(S, ["audio", "forceScreenshotSourceSize", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), ae = A ? l(l({}, E), { transform: (E.transform || "") + " scaleX(-1)" }) : E, re = { getScreenshot: this.getScreenshot.bind(this) };
|
|
302
302
|
return n.createElement(n.Fragment, null, n.createElement("video", l({ autoPlay: true, src: y.src, muted: !h, playsInline: true, ref: function(de) {
|
|
303
303
|
m.video = de;
|
|
304
304
|
}, style: ae }, Ae)), H && H(re));
|
|
@@ -312,21 +312,21 @@ var require_main_min = __commonJS({
|
|
|
312
312
|
} }).default;
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
module2.exports =
|
|
315
|
+
var op = {};
|
|
316
|
+
vl(op, { DynamicFlow: () => Bn, JsonSchemaForm: () => sr, Layout: () => me, convertStepToLayout: () => Wt, inlineReferences: () => Ge, isValidSchema: () => _, makeHttpClient: () => vr, translations: () => ul });
|
|
317
|
+
module2.exports = Ol(op);
|
|
318
318
|
function Wt(e, { displayStepTitle: t = true } = {}) {
|
|
319
319
|
if (e.layout)
|
|
320
|
-
return
|
|
320
|
+
return Ul(e, t);
|
|
321
321
|
switch (e.type) {
|
|
322
322
|
case "final":
|
|
323
323
|
return kl(e);
|
|
324
324
|
case "decision":
|
|
325
|
-
return
|
|
325
|
+
return Il(e);
|
|
326
326
|
case "external":
|
|
327
|
-
return
|
|
327
|
+
return Pl(e);
|
|
328
328
|
default:
|
|
329
|
-
return
|
|
329
|
+
return El(e);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function ho(e) {
|
|
@@ -337,15 +337,15 @@ var require_main_min = __commonJS({
|
|
|
337
337
|
}
|
|
338
338
|
return e.description && t.push(bo(e.description)), t;
|
|
339
339
|
}
|
|
340
|
-
function Ol(e) {
|
|
341
|
-
return [...ho(e), Pl(e)];
|
|
342
|
-
}
|
|
343
340
|
function Pl(e) {
|
|
344
|
-
return
|
|
341
|
+
return [...ho(e), Ml(e)];
|
|
345
342
|
}
|
|
346
343
|
function Ml(e) {
|
|
344
|
+
return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
|
|
345
|
+
}
|
|
346
|
+
function El(e) {
|
|
347
347
|
let t = ho(e);
|
|
348
|
-
if (e.reviewFields && t.push(
|
|
348
|
+
if (e.reviewFields && t.push(Rl(e.reviewFields)), e.schemas && t.push(...jl(e)), e.actions) {
|
|
349
349
|
let r = e.actions.map(Sr);
|
|
350
350
|
t.push(go(r, "md"));
|
|
351
351
|
}
|
|
@@ -355,7 +355,7 @@ var require_main_min = __commonJS({
|
|
|
355
355
|
let t = [];
|
|
356
356
|
if (e.details) {
|
|
357
357
|
if (e.details.image) {
|
|
358
|
-
let r =
|
|
358
|
+
let r = Nl(e.details.image);
|
|
359
359
|
t.push(r);
|
|
360
360
|
}
|
|
361
361
|
e.details.title && t.push(So(e.details.title)), e.details.description && t.push(bo(e.details.description));
|
|
@@ -366,9 +366,9 @@ var require_main_min = __commonJS({
|
|
|
366
366
|
}
|
|
367
367
|
return t;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Il(e) {
|
|
370
370
|
let t = ho(e);
|
|
371
|
-
return e.options && t.push(
|
|
371
|
+
return e.options && t.push(Ll(e.options)), t;
|
|
372
372
|
}
|
|
373
373
|
function go(e, t) {
|
|
374
374
|
return { type: "box", width: t || "md", components: e };
|
|
@@ -379,34 +379,34 @@ var require_main_min = __commonJS({
|
|
|
379
379
|
function bo(e) {
|
|
380
380
|
return { type: "paragraph", text: e, align: "center" };
|
|
381
381
|
}
|
|
382
|
-
function Il(e) {
|
|
383
|
-
return { type: "form", schema: e };
|
|
384
|
-
}
|
|
385
382
|
function Dl(e) {
|
|
386
|
-
return { type: "
|
|
383
|
+
return { type: "form", schema: e };
|
|
387
384
|
}
|
|
388
385
|
function Ll(e) {
|
|
386
|
+
return { type: "decision", options: e.map(Tl) };
|
|
387
|
+
}
|
|
388
|
+
function Tl(e) {
|
|
389
389
|
return { title: e.title, description: e.description, action: { title: e.title, method: "GET", url: e.url, disabled: e.disabled } };
|
|
390
390
|
}
|
|
391
391
|
function qn(e) {
|
|
392
392
|
return { type: "image", url: e.url, text: e.text, margin: e.margin || "lg", size: e.size || "md" };
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Nl(e) {
|
|
395
395
|
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : qn(e);
|
|
396
396
|
}
|
|
397
397
|
function Sr(e) {
|
|
398
398
|
return { type: "button", action: b(i({}, e), { title: e.title }) };
|
|
399
399
|
}
|
|
400
|
-
function Nl(e) {
|
|
401
|
-
return { type: "review", title: e.title, fields: e.fields.map(Rl) };
|
|
402
|
-
}
|
|
403
400
|
function Rl(e) {
|
|
404
|
-
return {
|
|
401
|
+
return { type: "review", title: e.title, fields: e.fields.map(Bl) };
|
|
405
402
|
}
|
|
406
403
|
function Bl(e) {
|
|
404
|
+
return { label: e.title, value: e.value };
|
|
405
|
+
}
|
|
406
|
+
function jl(e) {
|
|
407
407
|
let t = [];
|
|
408
408
|
if (e.schemas && e.schemas[0]) {
|
|
409
|
-
let r = e.schemas[0], o =
|
|
409
|
+
let r = e.schemas[0], o = Dl(r);
|
|
410
410
|
Vl() ? t.push(o) : t.push(go([o], "md"));
|
|
411
411
|
}
|
|
412
412
|
return t;
|
|
@@ -414,13 +414,13 @@ var require_main_min = __commonJS({
|
|
|
414
414
|
function Vl() {
|
|
415
415
|
return false;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Ul(e, t) {
|
|
418
418
|
return [...t && e.title ? [So(e.title)] : [], ...e.description ? [bo(e.description)] : [], ...e.layout || []];
|
|
419
419
|
}
|
|
420
420
|
function Ge({ layout: e, schemas: t, actions: r, model: o }) {
|
|
421
|
-
return e ? t ? e.map((n) => n.type === "form" ?
|
|
421
|
+
return e ? t ? e.map((n) => n.type === "form" ? zl({ formComponent: n, schemas: t }) : n.type === "decision" ? Hl({ decisionComponent: n, actions: r }) : n.type === "button" ? ql({ actionComponent: n, actions: r }) : n.type === "box" ? Gl({ boxComponent: n, schemas: t, actions: r, model: o }) : n.type === "columns" ? $l({ columnsComponent: n, schemas: t, actions: r, model: o }) : n) : e : [];
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function zl({ formComponent: e, schemas: t }) {
|
|
424
424
|
if (e.schemaId)
|
|
425
425
|
return { type: "form", margin: e.margin, schema: Gn(t, e.schemaId) };
|
|
426
426
|
if (e.schema && br(e.schema) && e.schema.$ref)
|
|
@@ -429,12 +429,12 @@ var require_main_min = __commonJS({
|
|
|
429
429
|
return i({}, e);
|
|
430
430
|
throw new Error('Invalid form layout component. Missing "schema" or "schemaId" properties.');
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Hl({ decisionComponent: e, actions: t }) {
|
|
433
433
|
var o;
|
|
434
434
|
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((n) => n.action && br(n.action) ? b(i({}, n), { action: $n(t, n.action.$ref) }) : n);
|
|
435
435
|
return b(i({}, e), { options: r });
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function ql({ actionComponent: e, actions: t }) {
|
|
438
438
|
var r;
|
|
439
439
|
if (e.action && br(e.action) && ((r = e.action) != null && r.$ref)) {
|
|
440
440
|
let o = $n(t, e.action.$ref);
|
|
@@ -442,10 +442,10 @@ var require_main_min = __commonJS({
|
|
|
442
442
|
}
|
|
443
443
|
return e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Gl({ boxComponent: e, schemas: t, actions: r, model: o }) {
|
|
446
446
|
return b(i({}, e), { components: Ge({ layout: e.components, schemas: t, actions: r, model: o }) });
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function $l({ columnsComponent: e, schemas: t, actions: r, model: o }) {
|
|
449
449
|
return b(i({}, e), { left: Ge({ layout: e.left, schemas: t, actions: r, model: o }), right: Ge({ layout: e.right, schemas: t, actions: r, model: o }) });
|
|
450
450
|
}
|
|
451
451
|
function Gn(e, t) {
|
|
@@ -470,11 +470,11 @@ var require_main_min = __commonJS({
|
|
|
470
470
|
function _n() {
|
|
471
471
|
let [e, t] = (0, wr.useState)(0);
|
|
472
472
|
return { addPendingPromise: (0, wr.useCallback)((o) => {
|
|
473
|
-
t((n) => n + 1), o.catch(
|
|
473
|
+
t((n) => n + 1), o.catch(Wl).finally(() => _l(() => t((n) => Math.max(0, n - 1))));
|
|
474
474
|
}, [t]), pendingPromises: e };
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
var
|
|
476
|
+
var _l = (e) => setTimeout(() => e(), 0);
|
|
477
|
+
var Wl = () => {
|
|
478
478
|
};
|
|
479
479
|
var Xn = require("react/jsx-runtime");
|
|
480
480
|
var Wn = { loading: false, registerPersistAsyncPromise: (e) => {
|
|
@@ -514,11 +514,11 @@ var require_main_min = __commonJS({
|
|
|
514
514
|
return ["https://", "http://", "data:"].some((t) => e.slice(0, t.length) === t && e.length > t.length) === false;
|
|
515
515
|
}
|
|
516
516
|
var vr = (e, t) => (r, o) => {
|
|
517
|
-
let n =
|
|
517
|
+
let n = Kl(r, e || ""), a = Jl(o == null ? void 0 : o.headers, t);
|
|
518
518
|
return fetch(n, b(i({}, o || {}), { headers: a }));
|
|
519
519
|
};
|
|
520
|
-
var
|
|
521
|
-
var
|
|
520
|
+
var Kl = (e, t) => typeof e == "string" && Ar(e) ? t + e : e;
|
|
521
|
+
var Jl = (e, t) => {
|
|
522
522
|
if (!e && !t)
|
|
523
523
|
return {};
|
|
524
524
|
let r = new Headers(e);
|
|
@@ -544,7 +544,7 @@ var require_main_min = __commonJS({
|
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
546
|
var ta = (0, Ct.createContext)(null);
|
|
547
|
-
var
|
|
547
|
+
var Er = ({ flowId: e, stepId: t, children: r, onLog: o }) => {
|
|
548
548
|
let n = (0, Ct.useMemo)(() => ({ debug: nt("debug", o, e, t), info: nt("info", o, e, t), warning: nt("warning", o, e, t), error: nt("error", o, e, t), critical: nt("critical", o, e, t) }), [o, e, t]);
|
|
549
549
|
return (0, ra.jsx)(ta.Provider, { value: n, children: r });
|
|
550
550
|
};
|
|
@@ -554,7 +554,7 @@ var require_main_min = __commonJS({
|
|
|
554
554
|
throw new Error("Logging context not found. Did you forget to wrap your component in a <LogProvider />?");
|
|
555
555
|
return e;
|
|
556
556
|
};
|
|
557
|
-
var
|
|
557
|
+
var k = (e) => typeof e == "string";
|
|
558
558
|
var R = (e) => typeof e == "number" && !Number.isNaN(e);
|
|
559
559
|
var oa = (e) => R(e) && Math.floor(e) === e;
|
|
560
560
|
var ve = (e) => typeof e == "boolean";
|
|
@@ -562,20 +562,20 @@ var require_main_min = __commonJS({
|
|
|
562
562
|
var z = (e) => Array.isArray(e);
|
|
563
563
|
var M = (e) => e === null;
|
|
564
564
|
var J = (e) => typeof e == "undefined";
|
|
565
|
-
var At = (e) =>
|
|
565
|
+
var At = (e) => k(e) && e.length === 0 || (L(e) || z(e)) && Object.keys(e).length === 0;
|
|
566
566
|
function na(e, t) {
|
|
567
567
|
return t.oneOf.some((r) => $e(e, r) === e) ? e : null;
|
|
568
568
|
}
|
|
569
569
|
function aa(e, t) {
|
|
570
570
|
var o;
|
|
571
|
-
let r = t.oneOf.map((n) =>
|
|
571
|
+
let r = t.oneOf.map((n) => Xl(e, n)).filter((n) => n !== null);
|
|
572
572
|
return r.length === 0 ? null : (o = r.find((n) => n.some((a) => a !== null))) != null ? o : r[0];
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Xl(e, t) {
|
|
575
575
|
return !Le(t) || !Oe(t) ? null : Co(e, t);
|
|
576
576
|
}
|
|
577
577
|
function ia(e) {
|
|
578
|
-
return
|
|
578
|
+
return k(e) && !At(e) ? e : null;
|
|
579
579
|
}
|
|
580
580
|
function sa(e) {
|
|
581
581
|
return R(e) ? e : null;
|
|
@@ -618,7 +618,7 @@ var require_main_min = __commonJS({
|
|
|
618
618
|
return $(n) && $(a) ? b(i({}, r), { [o]: ua(n, a) }) : b(i({}, r), { [o]: t[o] });
|
|
619
619
|
}, i({}, e));
|
|
620
620
|
}
|
|
621
|
-
var vt = (e, t) => $(e) ? ie(e, t) : xo(e) ?
|
|
621
|
+
var vt = (e, t) => $(e) ? ie(e, t) : xo(e) ? Yl(e, t) : $e(e, t);
|
|
622
622
|
function $e(e, t) {
|
|
623
623
|
if (M(e))
|
|
624
624
|
return null;
|
|
@@ -643,7 +643,7 @@ var require_main_min = __commonJS({
|
|
|
643
643
|
function ie(e, t) {
|
|
644
644
|
return Te(t) || Le(t) || M(e) ? null : t.allOf ? ca(e, t) : t.oneOf ? da(e, t) : !J(t.const) && e === t.const ? e : Pe(t) ? la(e, t) : null;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Yl(e, t) {
|
|
647
647
|
return fe(t) ? aa(e, t) : Le(t) ? Co(e, t) : null;
|
|
648
648
|
}
|
|
649
649
|
function Kt(e, t = false) {
|
|
@@ -653,19 +653,19 @@ var require_main_min = __commonJS({
|
|
|
653
653
|
return !t || z(e);
|
|
654
654
|
}
|
|
655
655
|
function fa(e, t) {
|
|
656
|
-
return !R(t) ||
|
|
656
|
+
return !R(t) || k(e) && e.length >= t;
|
|
657
657
|
}
|
|
658
658
|
function ya(e, t) {
|
|
659
|
-
return !R(t) ||
|
|
659
|
+
return !R(t) || k(e) && e.length <= t;
|
|
660
660
|
}
|
|
661
661
|
function ha(e, t) {
|
|
662
662
|
return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
|
|
663
663
|
}
|
|
664
664
|
function Ao(e, t) {
|
|
665
|
-
return !R(t) && !
|
|
665
|
+
return !R(t) && !k(t) || (R(e) || k(e)) && e <= t;
|
|
666
666
|
}
|
|
667
667
|
function vo(e, t) {
|
|
668
|
-
return !R(t) && !
|
|
668
|
+
return !R(t) && !k(t) || (R(e) || k(e)) && e >= t;
|
|
669
669
|
}
|
|
670
670
|
function ga(e, t) {
|
|
671
671
|
return !R(t) || z(e) && e.length >= t;
|
|
@@ -675,14 +675,14 @@ var require_main_min = __commonJS({
|
|
|
675
675
|
}
|
|
676
676
|
function _e(e, t, r) {
|
|
677
677
|
if (t.const)
|
|
678
|
-
return
|
|
678
|
+
return Eo(e, t, r);
|
|
679
679
|
if (M(e))
|
|
680
680
|
return r ? ["required"] : [];
|
|
681
681
|
if (wa(t))
|
|
682
682
|
return Oo(e, t, r);
|
|
683
683
|
switch (t.type) {
|
|
684
684
|
case "number":
|
|
685
|
-
return
|
|
685
|
+
return kr(e, t, r);
|
|
686
686
|
case "integer":
|
|
687
687
|
return Po(e, t, r);
|
|
688
688
|
case "boolean":
|
|
@@ -690,27 +690,27 @@ var require_main_min = __commonJS({
|
|
|
690
690
|
case "array":
|
|
691
691
|
return Ot(e, t, r);
|
|
692
692
|
case "object":
|
|
693
|
-
return
|
|
693
|
+
return Zl(e, t);
|
|
694
694
|
default:
|
|
695
695
|
return [];
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
function Oo(e, t, r) {
|
|
699
|
-
if (!
|
|
699
|
+
if (!k(e) && !M(e))
|
|
700
700
|
return ["type"];
|
|
701
701
|
if (e === "" && r)
|
|
702
702
|
return ["required"];
|
|
703
703
|
let o = [];
|
|
704
704
|
return Kt(e, r) || o.push("required"), fa(e, t.minLength) || o.push("minLength"), ya(e, t.maxLength) || o.push("maxLength"), ha(e, t.pattern) || o.push("pattern"), vo(e, t.minimum) || o.push("minimum"), Ao(e, t.maximum) || o.push("maximum"), o;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function kr(e, t, r) {
|
|
707
707
|
if (!R(e) && !M(e))
|
|
708
708
|
return ["type"];
|
|
709
709
|
let o = [];
|
|
710
710
|
return Kt(e, r) || o.push("required"), vo(e, t.minimum) || o.push("minimum"), Ao(e, t.maximum) || o.push("maximum"), o;
|
|
711
711
|
}
|
|
712
712
|
function Po(e, t, r) {
|
|
713
|
-
return oa(e) ?
|
|
713
|
+
return oa(e) ? kr(e, t, r) : ["type"];
|
|
714
714
|
}
|
|
715
715
|
function Mo(e, t, r) {
|
|
716
716
|
if (!ve(e) && !M(e))
|
|
@@ -718,7 +718,7 @@ var require_main_min = __commonJS({
|
|
|
718
718
|
let o = [];
|
|
719
719
|
return Kt(e, r) || o.push("required"), o;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Eo(e, t, r) {
|
|
722
722
|
return Kt(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
|
|
723
723
|
}
|
|
724
724
|
function Ot(e, t, r) {
|
|
@@ -732,71 +732,71 @@ var require_main_min = __commonJS({
|
|
|
732
732
|
function ba(e, t) {
|
|
733
733
|
return M(e) ? ["type"] : [];
|
|
734
734
|
}
|
|
735
|
-
function Yl(e, t) {
|
|
736
|
-
return $(e) ? z(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, n) => o && n, true) ? [] : ["required"] : [] : ["type"];
|
|
737
|
-
}
|
|
738
735
|
function Zl(e, t) {
|
|
739
|
-
return
|
|
736
|
+
return $(e) ? z(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, n) => o && n, true) ? [] : ["required"] : [] : ["type"];
|
|
740
737
|
}
|
|
741
738
|
function Ql(e, t) {
|
|
742
|
-
return !
|
|
739
|
+
return !Oo(e, t).length;
|
|
743
740
|
}
|
|
744
741
|
function ec(e, t) {
|
|
745
|
-
return !
|
|
742
|
+
return !kr(e, t).length;
|
|
746
743
|
}
|
|
747
744
|
function tc(e, t) {
|
|
748
|
-
return !
|
|
745
|
+
return !Po(e, t).length;
|
|
749
746
|
}
|
|
750
747
|
function rc(e, t) {
|
|
751
|
-
return !
|
|
748
|
+
return !Mo(e, t).length;
|
|
752
749
|
}
|
|
753
750
|
function oc(e, t) {
|
|
754
|
-
return !
|
|
751
|
+
return !Eo(e, t).length;
|
|
752
|
+
}
|
|
753
|
+
function nc(e, t) {
|
|
754
|
+
return !L(e) || t.type !== "object" || !L(t.properties) ? false : Object.keys(t.properties).map((r) => ac(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function ac(e, t, r) {
|
|
757
757
|
return t.hidden ? true : typeof e == "undefined" ? !r : _(e, t);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function ic(e, t) {
|
|
760
760
|
return t.type !== "array" || !L(t.items) || Ot(e, t).length > 0 ? false : Array.isArray(e) && Oe(t) && e.map((r) => _(r, t.items)).every((r) => r);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function sc(e, t) {
|
|
763
763
|
return z(t.oneOf) ? t.oneOf.some((r) => _(e, r)) : false;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function mc(e, t) {
|
|
766
766
|
return z(t.allOf) ? t.allOf.map((r) => _(e, r)).every((r) => r) : false;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function lc(e, t) {
|
|
769
769
|
return !ba(e, t).length;
|
|
770
770
|
}
|
|
771
771
|
function _(e, t) {
|
|
772
772
|
if (t.hidden)
|
|
773
773
|
return true;
|
|
774
774
|
if (t.oneOf)
|
|
775
|
-
return ic(e, t);
|
|
776
|
-
if (t.allOf)
|
|
777
775
|
return sc(e, t);
|
|
776
|
+
if (t.allOf)
|
|
777
|
+
return mc(e, t);
|
|
778
778
|
if (t.const)
|
|
779
|
-
return
|
|
779
|
+
return oc(e, t);
|
|
780
780
|
switch (t.type) {
|
|
781
781
|
case "string":
|
|
782
|
-
return Zl(e, t);
|
|
783
|
-
case "number":
|
|
784
782
|
return Ql(e, t);
|
|
785
|
-
case "
|
|
783
|
+
case "number":
|
|
786
784
|
return ec(e, t);
|
|
787
|
-
case "
|
|
785
|
+
case "integer":
|
|
788
786
|
return tc(e, t);
|
|
787
|
+
case "boolean":
|
|
788
|
+
return rc(e, t);
|
|
789
789
|
case "array":
|
|
790
|
-
return
|
|
790
|
+
return ic(e, t);
|
|
791
791
|
case "object":
|
|
792
|
-
return
|
|
792
|
+
return nc(e, t);
|
|
793
793
|
case "blob":
|
|
794
|
-
return
|
|
794
|
+
return lc(e, t);
|
|
795
795
|
default:
|
|
796
796
|
return false;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function cc(e) {
|
|
800
800
|
let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`, n = t.getFullYear(), a = r.length < 2 ? `0${r}` : r, s = o.length < 2 ? `0${o}` : o;
|
|
801
801
|
return [n, a, s].join("-");
|
|
802
802
|
}
|
|
@@ -806,7 +806,7 @@ var require_main_min = __commonJS({
|
|
|
806
806
|
let [t, r, o] = e.split("-").map((n) => parseInt(n, 10));
|
|
807
807
|
return !R(t) || !R(r) || !R(o) ? null : new Date(t, r - 1, o);
|
|
808
808
|
};
|
|
809
|
-
var Ca = (e) =>
|
|
809
|
+
var Ca = (e) => cc(e);
|
|
810
810
|
var We = (e, t) => {
|
|
811
811
|
let r, o, n = () => {
|
|
812
812
|
r && (clearTimeout(r), r = null), o = null;
|
|
@@ -821,8 +821,8 @@ var require_main_min = __commonJS({
|
|
|
821
821
|
r !== null && (e(...o), n());
|
|
822
822
|
}, a;
|
|
823
823
|
};
|
|
824
|
-
var Ke = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Ke(r, t[o])) : !!(xa(e) && xa(t) &&
|
|
825
|
-
var
|
|
824
|
+
var Ke = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Ke(r, t[o])) : !!(xa(e) && xa(t) && dc(e, t));
|
|
825
|
+
var dc = (e, t) => {
|
|
826
826
|
let r = Object.keys(e), o = Object.keys(t);
|
|
827
827
|
return r.length === o.length && r.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Ke(e[n], t[n]));
|
|
828
828
|
};
|
|
@@ -850,11 +850,11 @@ var require_main_min = __commonJS({
|
|
|
850
850
|
function Jt(e) {
|
|
851
851
|
return !!e && !ye(e);
|
|
852
852
|
}
|
|
853
|
-
var
|
|
854
|
-
var
|
|
855
|
-
var
|
|
853
|
+
var uc = (e) => !!e.readOnly && Te(e);
|
|
854
|
+
var pc = (e) => !!e.oneOf && !!e.promotion;
|
|
855
|
+
var fc = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
|
|
856
856
|
function Te(e) {
|
|
857
|
-
return
|
|
857
|
+
return fc.has(e.type || "") || "const" in e && e.const !== void 0;
|
|
858
858
|
}
|
|
859
859
|
function Pe(e) {
|
|
860
860
|
return e.type === "object";
|
|
@@ -865,7 +865,7 @@ var require_main_min = __commonJS({
|
|
|
865
865
|
function fe(e) {
|
|
866
866
|
return !!e.oneOf;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function ko(e) {
|
|
869
869
|
return !!e.allOf;
|
|
870
870
|
}
|
|
871
871
|
function Pt(e) {
|
|
@@ -884,25 +884,25 @@ var require_main_min = __commonJS({
|
|
|
884
884
|
function Dr(e) {
|
|
885
885
|
return !!e.persistAsync;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
return Dr(e) && (Pt(e.persistAsync.schema) ||
|
|
887
|
+
function yc(e) {
|
|
888
|
+
return Dr(e) && (Pt(e.persistAsync.schema) || hc(e.persistAsync.schema));
|
|
889
889
|
}
|
|
890
890
|
var Io = (e) => Te(e) && !!e.validationAsync;
|
|
891
|
-
function
|
|
891
|
+
function hc(e) {
|
|
892
892
|
return e.type === "string" && e.format === "base64url";
|
|
893
893
|
}
|
|
894
894
|
function Oa(e) {
|
|
895
895
|
return e.type === "string" && e.format === "base64url";
|
|
896
896
|
}
|
|
897
|
-
var Pa = (e) => Le(e) && Oe(e) &&
|
|
898
|
-
var it = (e) =>
|
|
899
|
-
var Ma = (e) =>
|
|
900
|
-
var
|
|
901
|
-
var
|
|
897
|
+
var Pa = (e) => Le(e) && Oe(e) && yc(e.items);
|
|
898
|
+
var it = (e) => uc(e) ? "readOnly" : Dr(e) ? "persistAsync" : Io(e) ? "validationAsync" : Pe(e) ? "object" : Le(e) ? "array" : pc(e) ? "promotedOneOf" : fe(e) ? "oneOf" : ko(e) ? "allOf" : Te(e) ? "basic" : null;
|
|
899
|
+
var Ma = (e) => gc(e) && Sc(e) && bc(e);
|
|
900
|
+
var gc = (e) => !e.type || e.type === "form";
|
|
901
|
+
var Sc = (e) => {
|
|
902
902
|
var t;
|
|
903
903
|
return ((t = e == null ? void 0 : e.actions) == null ? void 0 : t.length) === 1;
|
|
904
904
|
};
|
|
905
|
-
var
|
|
905
|
+
var bc = (e) => {
|
|
906
906
|
if (!e.schemas)
|
|
907
907
|
return false;
|
|
908
908
|
let t = Lr(e.schemas);
|
|
@@ -917,14 +917,14 @@ var require_main_min = __commonJS({
|
|
|
917
917
|
var Lr = (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);
|
|
918
918
|
var $ = (e) => typeof e == "object" && e !== null && e.constructor === Object;
|
|
919
919
|
var Do = (e) => M(e) || $(e);
|
|
920
|
-
var Lo = (e) => ve(e) || R(e) ||
|
|
921
|
-
var Tr = (e) =>
|
|
920
|
+
var Lo = (e) => ve(e) || R(e) || k(e) || M(e);
|
|
921
|
+
var Tr = (e) => k(e) || M(e);
|
|
922
922
|
var xo = (e) => z(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object") : false;
|
|
923
|
-
var
|
|
924
|
-
var Xt = (e) =>
|
|
925
|
-
var
|
|
923
|
+
var Ea = (e) => M(e) ? true : xo(e);
|
|
924
|
+
var Xt = (e) => k(e) || M(e);
|
|
925
|
+
var ka = require("react");
|
|
926
926
|
function Ia(e, t) {
|
|
927
|
-
return (0,
|
|
927
|
+
return (0, ka.useCallback)(We(e, t), [e, t]);
|
|
928
928
|
}
|
|
929
929
|
var Yt = require("react");
|
|
930
930
|
function Da(e) {
|
|
@@ -979,19 +979,19 @@ var require_main_min = __commonJS({
|
|
|
979
979
|
var zs = qe(st());
|
|
980
980
|
var le = require("react");
|
|
981
981
|
var Ga = require("@transferwise/components");
|
|
982
|
-
var
|
|
983
|
-
var
|
|
984
|
-
var Mt = (e) =>
|
|
985
|
-
var bc = (e) => Fc.some((t) => e === `flag-${t}`);
|
|
982
|
+
var Et = require("@transferwise/components");
|
|
983
|
+
var Va = require("react/jsx-runtime");
|
|
984
|
+
var Mt = (e) => wc(e) || Fc(e);
|
|
986
985
|
var wc = (e) => Cc.some((t) => e === `flag-${t}`);
|
|
987
|
-
var
|
|
986
|
+
var Fc = (e) => xc.some((t) => e === `flag-${t}`);
|
|
987
|
+
var ja = ({ name: e }) => {
|
|
988
988
|
if (!Mt(e))
|
|
989
989
|
return null;
|
|
990
990
|
let t = e.substring(5);
|
|
991
|
-
return (0,
|
|
991
|
+
return (0, Va.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}` });
|
|
992
992
|
};
|
|
993
|
-
var
|
|
994
|
-
var
|
|
993
|
+
var Cc = ["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"];
|
|
994
|
+
var xc = ["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"];
|
|
995
995
|
var Ua = qe(require("@transferwise/icons"));
|
|
996
996
|
var qa = require("react/jsx-runtime");
|
|
997
997
|
var Br = (e) => {
|
|
@@ -1004,23 +1004,23 @@ var require_main_min = __commonJS({
|
|
|
1004
1004
|
let t = Ha(e), r = Ua[t];
|
|
1005
1005
|
return (0, qa.jsx)(r, { size: 24 });
|
|
1006
1006
|
};
|
|
1007
|
-
var Ha = (e) => e.split("-").map(
|
|
1008
|
-
var
|
|
1007
|
+
var Ha = (e) => e.split("-").map(Ac).join("");
|
|
1008
|
+
var Ac = (e) => {
|
|
1009
1009
|
var t;
|
|
1010
1010
|
return `${(t = e[0]) == null ? void 0 : t.toUpperCase()}${e.slice(1)}`;
|
|
1011
1011
|
};
|
|
1012
1012
|
var To = require("react/jsx-runtime");
|
|
1013
|
-
var
|
|
1013
|
+
var vc = ({ type: e }) => Mt(e) ? (0, To.jsx)(ja, { name: e }) : Br(e) ? (0, To.jsx)(za, { name: e }) : null;
|
|
1014
1014
|
function No(e) {
|
|
1015
1015
|
return Br(e) || Mt(e);
|
|
1016
1016
|
}
|
|
1017
|
-
var Je =
|
|
1017
|
+
var Je = vc;
|
|
1018
1018
|
var er = require("react/jsx-runtime");
|
|
1019
1019
|
var mt = ({ icon: e, image: t }) => {
|
|
1020
1020
|
if (e != null && e.name)
|
|
1021
|
-
return (0, er.jsx)(
|
|
1021
|
+
return (0, er.jsx)(Et.Avatar, { type: Et.AvatarType.ICON, children: (0, er.jsx)(Je, { type: e.name }) });
|
|
1022
1022
|
if (e != null && e.text)
|
|
1023
|
-
return (0, er.jsx)(
|
|
1023
|
+
return (0, er.jsx)(Et.Avatar, { type: Et.AvatarType.INITIALS, children: e.text });
|
|
1024
1024
|
if (t != null && t.url) {
|
|
1025
1025
|
let { url: r, text: o } = t;
|
|
1026
1026
|
return (0, er.jsx)("img", { src: r, alt: o });
|
|
@@ -1043,7 +1043,7 @@ var require_main_min = __commonJS({
|
|
|
1043
1043
|
return "";
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
|
-
var
|
|
1046
|
+
var Oc = (e) => {
|
|
1047
1047
|
switch (e) {
|
|
1048
1048
|
case "right":
|
|
1049
1049
|
return "text-xs-right";
|
|
@@ -1054,13 +1054,13 @@ var require_main_min = __commonJS({
|
|
|
1054
1054
|
return "";
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
|
-
var Ne = (e) => `${
|
|
1057
|
+
var Ne = (e) => `${Oc(e.align)} ${U(e.margin)}`;
|
|
1058
1058
|
var $a = require("react/jsx-runtime");
|
|
1059
|
-
var
|
|
1059
|
+
var Pc = (e) => {
|
|
1060
1060
|
let t = e.component;
|
|
1061
|
-
return (0, $a.jsx)(Ga.Alert, { type: Mc(
|
|
1061
|
+
return (0, $a.jsx)(Ga.Alert, { type: Ec(Mc(t.context)), className: U(t.margin), message: t.markdown });
|
|
1062
1062
|
};
|
|
1063
|
-
var
|
|
1063
|
+
var Mc = (e) => {
|
|
1064
1064
|
switch (e) {
|
|
1065
1065
|
case "success":
|
|
1066
1066
|
return "positive";
|
|
@@ -1075,15 +1075,15 @@ var require_main_min = __commonJS({
|
|
|
1075
1075
|
return e;
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
var
|
|
1079
|
-
var se =
|
|
1078
|
+
var Ec = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
|
|
1079
|
+
var se = Pc;
|
|
1080
1080
|
var lt = require("react/jsx-runtime");
|
|
1081
1081
|
var kc = (e) => {
|
|
1082
1082
|
let t = e.component, r = U(t.margin || t.border ? "lg" : "xs");
|
|
1083
|
-
return !t.width || t.width === "xl" ? (0, lt.jsx)("div", { className: r + _a(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, lt.jsx)("div", { className: "row", children: (0, lt.jsx)("div", { className: r +
|
|
1083
|
+
return !t.width || t.width === "xl" ? (0, lt.jsx)("div", { className: r + _a(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, lt.jsx)("div", { className: "row", children: (0, lt.jsx)("div", { className: r + Ic(t), children: (0, lt.jsx)("div", { className: _a(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
|
|
1084
1084
|
};
|
|
1085
1085
|
var _a = (e) => e ? " well p-b-0" : "";
|
|
1086
|
-
var
|
|
1086
|
+
var Ic = (e) => {
|
|
1087
1087
|
switch (e.width) {
|
|
1088
1088
|
case "xs":
|
|
1089
1089
|
return " col-md-4 col-md-offset-4";
|
|
@@ -1100,16 +1100,16 @@ var require_main_min = __commonJS({
|
|
|
1100
1100
|
};
|
|
1101
1101
|
var Ro = kc;
|
|
1102
1102
|
var Xa = require("@transferwise/components");
|
|
1103
|
-
var
|
|
1103
|
+
var Dc = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
|
|
1104
1104
|
var Wa = (e) => {
|
|
1105
1105
|
var r;
|
|
1106
1106
|
let t = e.action.type;
|
|
1107
|
-
return (r = e.control) != null ? r : t ?
|
|
1107
|
+
return (r = e.control) != null ? r : t ? Dc[t] : "secondary";
|
|
1108
1108
|
};
|
|
1109
|
-
var
|
|
1109
|
+
var Lc = { primary: "neutral", secondary: "neutral", link: "neutral", positive: "positive", negative: "negative" };
|
|
1110
1110
|
var Ka = (e) => {
|
|
1111
1111
|
var o;
|
|
1112
|
-
let t = e.action.type, r = (o = e.context) != null ? o : t ?
|
|
1112
|
+
let t = e.action.type, r = (o = e.context) != null ? o : t ? Lc[t] : "neutral";
|
|
1113
1113
|
return r === "neutral" ? "accent" : r;
|
|
1114
1114
|
};
|
|
1115
1115
|
var Ja = (e) => {
|
|
@@ -1126,30 +1126,30 @@ var require_main_min = __commonJS({
|
|
|
1126
1126
|
}
|
|
1127
1127
|
};
|
|
1128
1128
|
var Ya = require("react/jsx-runtime");
|
|
1129
|
-
var
|
|
1129
|
+
var Tc = (e) => {
|
|
1130
1130
|
var u;
|
|
1131
1131
|
let { component: t, onAction: r } = e, o = t.action, n = Ka(t), a = Wa(t), { loading: s } = Fr(), l = U(t.margin || "md");
|
|
1132
1132
|
return (0, Ya.jsx)(Xa.Button, { size: Ja(t.size), type: n, priority: a, block: true, className: l, disabled: t.disabled || o.disabled || s, onClick: () => r(o), children: (u = t.title) != null ? u : o.title });
|
|
1133
1133
|
};
|
|
1134
|
-
var Bo =
|
|
1134
|
+
var Bo = Tc;
|
|
1135
1135
|
var ct = require("react/jsx-runtime");
|
|
1136
|
-
var
|
|
1137
|
-
let t = e.component, { leftWidth: r, rightWidth: o } =
|
|
1136
|
+
var Nc = (e) => {
|
|
1137
|
+
let t = e.component, { leftWidth: r, rightWidth: o } = Rc(t.bias);
|
|
1138
1138
|
return (0, ct.jsxs)("div", { className: `${U(t.margin || "xs")} row`, children: [(0, ct.jsx)("div", { className: `${r} m-b-0`, children: (0, ct.jsx)(me, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, ct.jsx)("div", { className: `${o} m-b-0`, children: (0, ct.jsx)(me, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
|
|
1139
1139
|
};
|
|
1140
|
-
var
|
|
1141
|
-
var
|
|
1142
|
-
var
|
|
1143
|
-
var
|
|
1144
|
-
var
|
|
1145
|
-
var
|
|
1140
|
+
var Rc = (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" };
|
|
1141
|
+
var jo = Nc;
|
|
1142
|
+
var Vr = require("@transferwise/components");
|
|
1143
|
+
var jr = require("react/jsx-runtime");
|
|
1144
|
+
var Bc = ({ component: e, onAction: t }) => (0, jr.jsx)("div", { className: U(e.margin), children: (0, jr.jsx)(Vr.NavigationOptionsList, { children: e.options.map((r) => (0, jr.jsx)(Vr.NavigationOption, { title: r.title, content: r.description, disabled: r.disabled, media: mt(r), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(r.action) }, JSON.stringify(r))) }) });
|
|
1145
|
+
var Vo = Bc;
|
|
1146
1146
|
var Za = require("react/jsx-runtime");
|
|
1147
|
-
var
|
|
1147
|
+
var jc = ({ component: e }) => {
|
|
1148
1148
|
let r = `m-t-0 ${U(e.margin)}`;
|
|
1149
1149
|
return (0, Za.jsx)("hr", { className: r });
|
|
1150
1150
|
};
|
|
1151
|
-
var Uo =
|
|
1152
|
-
var
|
|
1151
|
+
var Uo = jc;
|
|
1152
|
+
var kt = require("@transferwise/components");
|
|
1153
1153
|
var Ur = require("react");
|
|
1154
1154
|
var ti = require("react-intl");
|
|
1155
1155
|
var Qa = require("react-intl");
|
|
@@ -1161,22 +1161,22 @@ var require_main_min = __commonJS({
|
|
|
1161
1161
|
l();
|
|
1162
1162
|
}, [l]);
|
|
1163
1163
|
let u = n && o ? b(i({}, n), { responseHandlers: o }) : void 0;
|
|
1164
|
-
return La(u, t), (0, Xe.jsxs)(Xe.Fragment, { children: [(0, Xe.jsx)(
|
|
1164
|
+
return La(u, t), (0, Xe.jsxs)(Xe.Fragment, { children: [(0, Xe.jsx)(kt.Loader, { size: kt.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Xe.jsx)("br", {}), (0, Xe.jsx)(kt.Button, { priority: "tertiary", block: true, onClick: l, children: a || s.formatMessage(ei.retryTitle) })] });
|
|
1165
1165
|
};
|
|
1166
1166
|
var zo = Vc;
|
|
1167
1167
|
var ws = require("react");
|
|
1168
1168
|
var ri = qe(st());
|
|
1169
1169
|
var oi = require("react");
|
|
1170
|
-
var
|
|
1171
|
-
var
|
|
1172
|
-
var
|
|
1173
|
-
var
|
|
1170
|
+
var Ee = require("react/jsx-runtime");
|
|
1171
|
+
var Uc = (e, t) => t.map((r) => ie(e, r) || {});
|
|
1172
|
+
var zc = (e) => e.reduce((t, r) => i(i({}, r), t), {});
|
|
1173
|
+
var Hc = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1174
1174
|
var ni = (e) => {
|
|
1175
1175
|
let t = (n, a) => {
|
|
1176
1176
|
let s = e.schema.allOf[n];
|
|
1177
|
-
r[n] = ie(a.model, s) || {}, o(r), e.onChange(b(i({}, a), { model:
|
|
1178
|
-
}, [r, o] = (0, oi.useState)(
|
|
1179
|
-
return (0,
|
|
1177
|
+
r[n] = ie(a.model, s) || {}, o(r), e.onChange(b(i({}, a), { model: zc(r) }));
|
|
1178
|
+
}, [r, o] = (0, oi.useState)(Uc(e.model, e.schema.allOf));
|
|
1179
|
+
return (0, Ee.jsxs)(Ee.Fragment, { children: [e.schema.title && (0, Ee.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, Ee.jsx)("p", { children: e.schema.description }), (0, Ee.jsx)("div", { className: "row", children: e.schema.allOf.map((n, a) => (0, Ee.jsx)("div", { className: (0, ri.default)(Hc(n.width)), children: (0, Ee.jsx)(ue, { schema: n, model: r[a], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (s) => t(a, b(i({}, s), { model: s.model })), onPersistAsync: e.onPersistAsync }) }, a)) })] });
|
|
1180
1180
|
};
|
|
1181
1181
|
ni.defaultProps = { disabled: false };
|
|
1182
1182
|
var Ho = ni;
|
|
@@ -1191,11 +1191,11 @@ var require_main_min = __commonJS({
|
|
|
1191
1191
|
var Re = require("react/jsx-runtime");
|
|
1192
1192
|
var si = (e) => {
|
|
1193
1193
|
var l;
|
|
1194
|
-
let t =
|
|
1194
|
+
let t = qc(e.schema), r = i(i(i({}, 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, s = !!e.infoMessage;
|
|
1195
1195
|
return (0, Re.jsxs)("div", { children: [o ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.errors }) : null, n ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.validations.map((u) => (0, Re.jsx)("div", { children: r[u] }, u)) }) : null, (a || s) && (0, Re.jsxs)(zr.InlineAlert, { type: "info", children: [a && (0, Re.jsx)("div", { children: e.schema.description }), s && (0, Re.jsx)("div", { children: e.infoMessage })] })] });
|
|
1196
1196
|
};
|
|
1197
1197
|
si.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1198
|
-
function
|
|
1198
|
+
function qc(e) {
|
|
1199
1199
|
let { formatMessage: t, locale: r } = (0, ii.useIntl)(), o = { type: t(he.type), minimum: t(he.minimum, { minimum: e.minimum }), maximum: t(he.maximum, { maximum: e.maximum }), minLength: t(he.minLength, { minLength: e.minLength }), maxLength: t(he.maxLength, { maxLength: e.maxLength }), pattern: t(he.pattern), required: t(he.required) };
|
|
1200
1200
|
if (e.format === "date") {
|
|
1201
1201
|
let n = { pattern: t(he.patternDate), minimum: e.minimum ? t(he.minimumDate, { minimum: (0, qo.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(he.maximumDate, { maximum: (0, qo.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
@@ -1218,12 +1218,12 @@ var require_main_min = __commonJS({
|
|
|
1218
1218
|
function ci(e) {
|
|
1219
1219
|
let t = e instanceof Error;
|
|
1220
1220
|
if (!(L(e) && "data" in e) && !t)
|
|
1221
|
-
return
|
|
1221
|
+
return k(e) ? e : void 0;
|
|
1222
1222
|
if (t) {
|
|
1223
1223
|
let n = e;
|
|
1224
1224
|
return { id: Me(), message: n.message };
|
|
1225
1225
|
} else
|
|
1226
|
-
return i({ message:
|
|
1226
|
+
return i({ message: k(e.message) ? e.message : "" }, e);
|
|
1227
1227
|
}
|
|
1228
1228
|
var yi = require("react-intl");
|
|
1229
1229
|
var di = require("react-intl");
|
|
@@ -1237,7 +1237,7 @@ var require_main_min = __commonJS({
|
|
|
1237
1237
|
var It = require("react/jsx-runtime");
|
|
1238
1238
|
var bi = (e) => {
|
|
1239
1239
|
var C, D;
|
|
1240
|
-
let { onChange: t, schema: r } = e, o = Q(), n = hi(r), a = (0, tr.useMemo)(() => r.$id || Me(), [r.$id]), [s, l] = (0, tr.useState)(false), [u, c] = (0, tr.useState)(() =>
|
|
1240
|
+
let { onChange: t, schema: r } = e, o = Q(), n = hi(r), a = (0, tr.useMemo)(() => r.$id || Me(), [r.$id]), [s, l] = (0, tr.useState)(false), [u, c] = (0, tr.useState)(() => Gc(e.model || [])), d = wi(r.items.persistAsync), g = r.items.persistAsync.schema, f = Pt(g), m = async (T) => {
|
|
1241
1241
|
l(true);
|
|
1242
1242
|
try {
|
|
1243
1243
|
let P = await mi(T, f);
|
|
@@ -1256,27 +1256,27 @@ var require_main_min = __commonJS({
|
|
|
1256
1256
|
t({ model: N, triggerSchema: r, triggerModel: N });
|
|
1257
1257
|
}
|
|
1258
1258
|
let S = gi(u).map((T) => T.id), h = Ot(S, r, e.required), F = !!e.errors || (s || e.submitted) && !!h.length, w = "accepts" in g && g.accepts, v = "maxSize" in g && g.maxSize, O = b(i(i({ multiple: true, className: "form-control", files: u, fileInputName: a, id: a }, w ? { fileTypes: w } : void 0), v ? { sizeLimit: Ir(v) } : void 0), { sizeLimitErrorMessage: ((C = g.validationMessages) == null ? void 0 : C.maxSize) || n.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((D = e.schema.validationMessages) == null ? void 0 : D.maxItems) || n.maxItemsErrorMessage, uploadButtonTitle: g.title, description: g.description, disabled: e.disabled, onUploadFile: (T) => m(T.get(a)), onFilesChange: p, onDeleteFile: () => Promise.resolve() });
|
|
1259
|
-
return (0, It.jsxs)("div", { className: (0, Si.default)("form-group", { "has-error": F }), children: [(0, It.jsx)("label", { className: "d-block control-label", htmlFor: a, children: e.schema.title }), (0, It.jsx)(Hr.UploadInput, i({}, O)), (0, It.jsx)(Be, { changed: s, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: h, validationMessages:
|
|
1259
|
+
return (0, It.jsxs)("div", { className: (0, Si.default)("form-group", { "has-error": F }), children: [(0, It.jsx)("label", { className: "d-block control-label", htmlFor: a, children: e.schema.title }), (0, It.jsx)(Hr.UploadInput, i({}, O)), (0, It.jsx)(Be, { changed: s, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: h, validationMessages: _c(r, !!e.required, n), infoMessage: null, focused: false, blurred: true })] });
|
|
1260
1260
|
};
|
|
1261
1261
|
bi.defaultProps = { errors: null, required: false };
|
|
1262
1262
|
var Go = bi;
|
|
1263
1263
|
function gi(e) {
|
|
1264
1264
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1265
1265
|
}
|
|
1266
|
-
function qc(e) {
|
|
1267
|
-
return e.map((t) => Gc(t) ? { id: t, status: Hr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1268
|
-
}
|
|
1269
1266
|
function Gc(e) {
|
|
1270
|
-
return
|
|
1267
|
+
return e.map((t) => $c(t) ? { id: t, status: Hr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1271
1268
|
}
|
|
1272
|
-
function $c(e
|
|
1269
|
+
function $c(e) {
|
|
1270
|
+
return R(e) || k(e);
|
|
1271
|
+
}
|
|
1272
|
+
function _c(e, t, r) {
|
|
1273
1273
|
let { minItems: o, maxItems: n } = e;
|
|
1274
1274
|
return i(i(i({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }), n && { maxItems: r.maxItemsErrorMessage });
|
|
1275
1275
|
}
|
|
1276
1276
|
var Lt = require("@transferwise/components");
|
|
1277
|
-
var
|
|
1277
|
+
var Ei = require("@transferwise/icons");
|
|
1278
1278
|
var $r = require("react");
|
|
1279
|
-
var
|
|
1279
|
+
var ki = require("react-intl");
|
|
1280
1280
|
var Fi = require("@transferwise/components");
|
|
1281
1281
|
var xi = require("react/jsx-runtime");
|
|
1282
1282
|
var Ci = ({ item: e, onClick: t }) => (0, xi.jsx)(Fi.NavigationOption, { onClick: t, media: mt(e), title: e.title, content: e.description });
|
|
@@ -1284,13 +1284,13 @@ var require_main_min = __commonJS({
|
|
|
1284
1284
|
var dt = (0, Ai.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" } });
|
|
1285
1285
|
var vi = require("react-intl");
|
|
1286
1286
|
var Pi = require("react/jsx-runtime");
|
|
1287
|
-
var
|
|
1287
|
+
var Wc = ({ type: e, schema: t, model: r, errors: o, submitted: n, onModelChange: a, onAction: s }) => {
|
|
1288
1288
|
let { formatMessage: l } = (0, vi.useIntl)(), u = { layout: [{ type: "form", schema: t.items }, { type: "button", control: "primary", action: { url: e, title: l(e === "add" ? dt.addItem : dt.editItem) } }, { type: "button", context: "negative", action: { url: "remove", title: l(dt.removeItem) } }], title: "", actions: [], schemas: [] };
|
|
1289
1289
|
return (0, Pi.jsx)(qr, { step: u, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: n, formErrors: o, globalError: null, onAction: (c) => {
|
|
1290
1290
|
s(c.url);
|
|
1291
1291
|
}, onModelChange: a });
|
|
1292
1292
|
};
|
|
1293
|
-
var Oi =
|
|
1293
|
+
var Oi = Wc;
|
|
1294
1294
|
var Gr = (e, t) => {
|
|
1295
1295
|
let r = rr(e, t);
|
|
1296
1296
|
if (r >= 0)
|
|
@@ -1308,10 +1308,10 @@ var require_main_min = __commonJS({
|
|
|
1308
1308
|
function Dt(e, t) {
|
|
1309
1309
|
if (t == null)
|
|
1310
1310
|
return null;
|
|
1311
|
-
let r = e.oneOf.map((o) =>
|
|
1311
|
+
let r = e.oneOf.map((o) => Kc(o).reduce((n, [a, s]) => ye(s) && s.const === t[a] ? n + 2 : Jt(s) && typeof t[a] != "undefined" ? n + 1 : n, 0));
|
|
1312
1312
|
return r.every((o) => o === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function Kc(e) {
|
|
1315
1315
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1316
1316
|
}
|
|
1317
1317
|
var $o = (e, t, r = {}) => {
|
|
@@ -1326,20 +1326,20 @@ var require_main_min = __commonJS({
|
|
|
1326
1326
|
};
|
|
1327
1327
|
var Ye = (e) => {
|
|
1328
1328
|
let { schema: t, model: r, providesProp: o, getValueFromSchema: n } = e;
|
|
1329
|
-
if (
|
|
1329
|
+
if (Zc(t.summary, o))
|
|
1330
1330
|
return n(t, r);
|
|
1331
1331
|
switch (it(t)) {
|
|
1332
1332
|
case "object":
|
|
1333
|
-
return Kc(e);
|
|
1334
|
-
case "oneOf":
|
|
1335
1333
|
return Jc(e);
|
|
1336
|
-
case "
|
|
1334
|
+
case "oneOf":
|
|
1337
1335
|
return Xc(e);
|
|
1336
|
+
case "allOf":
|
|
1337
|
+
return Yc(e);
|
|
1338
1338
|
default:
|
|
1339
1339
|
return null;
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
-
var
|
|
1342
|
+
var Jc = (e) => {
|
|
1343
1343
|
let { schema: t, model: r } = e, o = t;
|
|
1344
1344
|
for (let n in o.properties) {
|
|
1345
1345
|
let a = o.properties[n], s = $(r) && n in r ? r[n] : null, l = Ye(b(i({}, e), { schema: a, model: s }));
|
|
@@ -1348,7 +1348,7 @@ var require_main_min = __commonJS({
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return null;
|
|
1350
1350
|
};
|
|
1351
|
-
var
|
|
1351
|
+
var Xc = (e) => {
|
|
1352
1352
|
let { schema: t, model: r } = e;
|
|
1353
1353
|
if (at(t)) {
|
|
1354
1354
|
if (!$(r))
|
|
@@ -1362,7 +1362,7 @@ var require_main_min = __commonJS({
|
|
|
1362
1362
|
let o = t, n = Gr(o, r);
|
|
1363
1363
|
return n === null || n < 0 ? null : Ye(b(i({}, e), { schema: o.oneOf[n] }));
|
|
1364
1364
|
};
|
|
1365
|
-
var
|
|
1365
|
+
var Yc = (e) => {
|
|
1366
1366
|
let { schema: t } = e, r = t;
|
|
1367
1367
|
for (let o of r.allOf) {
|
|
1368
1368
|
let n = Ye(b(i({}, e), { schema: o }));
|
|
@@ -1371,10 +1371,10 @@ var require_main_min = __commonJS({
|
|
|
1371
1371
|
}
|
|
1372
1372
|
return null;
|
|
1373
1373
|
};
|
|
1374
|
-
var Mi = (e, t) => ye(e) ? e.title ? e.title :
|
|
1375
|
-
var
|
|
1374
|
+
var Mi = (e, t) => ye(e) ? e.title ? e.title : k(e.const) ? e.const : null : Tr(t) ? t : null;
|
|
1375
|
+
var Zc = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1376
1376
|
var ge = require("react/jsx-runtime");
|
|
1377
|
-
var
|
|
1377
|
+
var Qc = ({ schema: e, model: t, errors: r, submitted: o, onChange: n }) => {
|
|
1378
1378
|
let [a, s] = (0, $r.useState)(null), [l, u] = (0, $r.useState)(() => {
|
|
1379
1379
|
if (L(t) && !z(t))
|
|
1380
1380
|
throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
|
|
@@ -1387,14 +1387,14 @@ var require_main_min = __commonJS({
|
|
|
1387
1387
|
}, m = (h) => {
|
|
1388
1388
|
d({ item: h, model: h.value }), s("edit");
|
|
1389
1389
|
}, p = (h) => {
|
|
1390
|
-
let F = h === "remove" ? null : $o(e.items, c.model, e == null ? void 0 : e.summary), w =
|
|
1390
|
+
let F = h === "remove" ? null : $o(e.items, c.model, e == null ? void 0 : e.summary), w = ed(h, { originalItem: c.item, updatedItem: F, itemSummaries: l });
|
|
1391
1391
|
u(w), g(w), d({ item: null, model: null }), s(null);
|
|
1392
1392
|
}, y = () => {
|
|
1393
1393
|
d({ item: null, model: null }), s(null);
|
|
1394
|
-
}, { formatMessage: S } = (0,
|
|
1395
|
-
return (0, ge.jsxs)(ge.Fragment, { children: [e.title && (0, ge.jsx)(Lt.Header, { title: e.title }), l && l.map((h) => (0, ge.jsx)(Ci, { item: h, onClick: () => m(h) }, JSON.stringify(h))), (0, ge.jsx)(Lt.NavigationOption, { onClick: f, media: (0, ge.jsx)(
|
|
1394
|
+
}, { formatMessage: S } = (0, ki.useIntl)();
|
|
1395
|
+
return (0, ge.jsxs)(ge.Fragment, { children: [e.title && (0, ge.jsx)(Lt.Header, { title: e.title }), l && l.map((h) => (0, ge.jsx)(Ci, { item: h, onClick: () => m(h) }, JSON.stringify(h))), (0, ge.jsx)(Lt.NavigationOption, { onClick: f, media: (0, ge.jsx)(Ei.Plus, {}), title: e.addItemTitle || S(dt.addItemTitle) }), (0, ge.jsx)(Lt.Modal, { open: a !== null, onClose: y, title: (a === "add" ? e.addItemTitle : e.editItemTitle) || S(dt.addItemTitle), body: (0, ge.jsx)(Oi, { type: a != null ? a : "add", schema: e, model: c.model, errors: r, submitted: o, onAction: p, onModelChange: ({ model: h }) => d(b(i({}, c), { model: h })) }) })] });
|
|
1396
1396
|
};
|
|
1397
|
-
var
|
|
1397
|
+
var ed = (e, { originalItem: t, updatedItem: r, itemSummaries: o }) => {
|
|
1398
1398
|
if (e === "remove")
|
|
1399
1399
|
return (o || []).filter((n) => n !== t);
|
|
1400
1400
|
if (!r)
|
|
@@ -1408,7 +1408,7 @@ var require_main_min = __commonJS({
|
|
|
1408
1408
|
return null;
|
|
1409
1409
|
}
|
|
1410
1410
|
};
|
|
1411
|
-
var Ii =
|
|
1411
|
+
var Ii = Qc;
|
|
1412
1412
|
var _o = require("react/jsx-runtime");
|
|
1413
1413
|
var Di = (e) => {
|
|
1414
1414
|
let { schema: t } = e;
|
|
@@ -1431,8 +1431,8 @@ var require_main_min = __commonJS({
|
|
|
1431
1431
|
var Wo = Ti;
|
|
1432
1432
|
var Ri = qe(st());
|
|
1433
1433
|
var _r = require("react");
|
|
1434
|
-
var
|
|
1435
|
-
var
|
|
1434
|
+
var je = require("react/jsx-runtime");
|
|
1435
|
+
var td = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1436
1436
|
var Bi = (e) => {
|
|
1437
1437
|
let [t, r] = (0, _r.useState)(() => i({}, ie(e.model, e.schema))), o = (c, d) => {
|
|
1438
1438
|
d.model !== null ? t[c] = d.model : delete t[c], r(t), e.onChange(b(i({}, d), { model: t }));
|
|
@@ -1442,22 +1442,22 @@ var require_main_min = __commonJS({
|
|
|
1442
1442
|
r(c), Ke(c, t) || e.onChange({ model: c, triggerSchema: e.schema, triggerModel: c });
|
|
1443
1443
|
}, [e.schema]);
|
|
1444
1444
|
let a = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (c) => typeof e.schema.properties[c] != "undefined", l = Array.from(a).filter(s), u = e.errors;
|
|
1445
|
-
return (0,
|
|
1445
|
+
return (0, je.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, je.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, je.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, je.jsx)(se, { component: e.schema.alert }), (0, je.jsx)("div", { className: "row", children: l.map((c) => (0, je.jsx)("div", { className: (0, Ri.default)(td(e.schema.properties[c].width)), children: (0, je.jsx)(ue, { 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)) })] });
|
|
1446
1446
|
};
|
|
1447
1447
|
Bi.defaultProps = { hideTitle: false, disabled: false };
|
|
1448
1448
|
var or = Bi;
|
|
1449
1449
|
var Yi = qe(st());
|
|
1450
|
-
var
|
|
1450
|
+
var ke = require("react");
|
|
1451
1451
|
var Wr = require("@transferwise/components");
|
|
1452
1452
|
var Ui = require("react-intl");
|
|
1453
|
-
var
|
|
1454
|
-
var
|
|
1453
|
+
var ji = require("react-intl");
|
|
1454
|
+
var Vi = (0, ji.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
|
|
1455
1455
|
var Ko = require("react/jsx-runtime");
|
|
1456
|
-
var
|
|
1456
|
+
var rd = (e) => {
|
|
1457
1457
|
let t = (0, Ui.useIntl)();
|
|
1458
|
-
return (0, Ko.jsx)(Wr.Info, { className: "m-l-1", content: (0, Ko.jsx)(Wr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(
|
|
1458
|
+
return (0, Ko.jsx)(Wr.Info, { className: "m-l-1", content: (0, Ko.jsx)(Wr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(Vi.helpAria) });
|
|
1459
1459
|
};
|
|
1460
|
-
var
|
|
1460
|
+
var Ve = rd;
|
|
1461
1461
|
var Ki = require("react");
|
|
1462
1462
|
var W = require("@transferwise/components");
|
|
1463
1463
|
var Gi = require("react");
|
|
@@ -1468,7 +1468,7 @@ var require_main_min = __commonJS({
|
|
|
1468
1468
|
ut({ received: "object", expected: "string" });
|
|
1469
1469
|
return;
|
|
1470
1470
|
}
|
|
1471
|
-
if (!
|
|
1471
|
+
if (!k(e)) {
|
|
1472
1472
|
if (r)
|
|
1473
1473
|
return Xo({ received: typeof e, expected: "string" }), String(e);
|
|
1474
1474
|
ut({ received: typeof e, expected: "string" });
|
|
@@ -1488,7 +1488,7 @@ var require_main_min = __commonJS({
|
|
|
1488
1488
|
ut(o);
|
|
1489
1489
|
return;
|
|
1490
1490
|
}
|
|
1491
|
-
if (!
|
|
1491
|
+
if (!k(e)) {
|
|
1492
1492
|
if (r)
|
|
1493
1493
|
return Xo(o), String(e);
|
|
1494
1494
|
ut(o);
|
|
@@ -1510,7 +1510,7 @@ var require_main_min = __commonJS({
|
|
|
1510
1510
|
};
|
|
1511
1511
|
var Hi = (e) => {
|
|
1512
1512
|
if (!M(e)) {
|
|
1513
|
-
if (!(e instanceof Date) && !
|
|
1513
|
+
if (!(e instanceof Date) && !k(e)) {
|
|
1514
1514
|
ut({ received: typeof e, expected: "string or Date" });
|
|
1515
1515
|
return;
|
|
1516
1516
|
}
|
|
@@ -1520,7 +1520,7 @@ var require_main_min = __commonJS({
|
|
|
1520
1520
|
var qi = (e) => {
|
|
1521
1521
|
if (M(e))
|
|
1522
1522
|
return null;
|
|
1523
|
-
if (!
|
|
1523
|
+
if (!k(e))
|
|
1524
1524
|
return ut({ received: typeof e, expected: "string", fallback: "null" }), null;
|
|
1525
1525
|
let t = Fa(e);
|
|
1526
1526
|
return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
|
|
@@ -1559,7 +1559,7 @@ var require_main_min = __commonJS({
|
|
|
1559
1559
|
if (this.props.value !== null && typeof this.props.value != "undefined")
|
|
1560
1560
|
return r2.find((o) => this.props.value === o.value);
|
|
1561
1561
|
};
|
|
1562
|
-
this.mapOption = (r2) => b(i({}, r2), { value: R(r2.value) ||
|
|
1562
|
+
this.mapOption = (r2) => b(i({}, r2), { value: R(r2.value) || k(r2.value) ? r2.value : void 0, secondary: r2.note, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
|
|
1563
1563
|
this.state = { selectedOption: r.selectedOption, touched: false, prevValue: r.value };
|
|
1564
1564
|
}
|
|
1565
1565
|
static getDerivedStateFromProps(r, o) {
|
|
@@ -1575,15 +1575,15 @@ var require_main_min = __commonJS({
|
|
|
1575
1575
|
return (0, X.jsx)(W.Checkbox, { checked: zi(P, { coerceValue: true }), disabled: u, label: v, required: d, readOnly: c, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1576
1576
|
case B.SELECT: {
|
|
1577
1577
|
let A = l.length >= 20;
|
|
1578
|
-
return (0, X.jsx)(W.Select, { id: C, selected: this.getSelectedOption(l), options: l, search: A, required: d, disabled: u, placeholder: o, searchPlaceholder: y, searchValue: S, onChange: (
|
|
1579
|
-
var
|
|
1580
|
-
this.setState({ selectedOption:
|
|
1578
|
+
return (0, X.jsx)(W.Select, { id: C, selected: this.getSelectedOption(l), options: l, search: A, required: d, disabled: u, placeholder: o, searchPlaceholder: y, searchValue: S, onChange: (j) => {
|
|
1579
|
+
var E;
|
|
1580
|
+
this.setState({ selectedOption: j != null ? j : void 0 }), this.props.onChange((E = j == null ? void 0 : j.value) != null ? E : null);
|
|
1581
1581
|
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: A ? h : void 0 });
|
|
1582
1582
|
}
|
|
1583
1583
|
case B.TAB:
|
|
1584
1584
|
return (0, X.jsx)(W.Tabs, { selected: ((G = this.getSelectedOption(l)) == null ? void 0 : G.value) || 0, tabs: l.map((A) => ({ title: A.label, content: (0, X.jsx)(X.Fragment, {}), disabled: A.disabled || false })), name: C, onTabSelect: (A) => {
|
|
1585
|
-
let
|
|
1586
|
-
this.setState({ selectedOption: l.find((
|
|
1585
|
+
let j = !!this.state.selectedOption;
|
|
1586
|
+
this.setState({ selectedOption: l.find((E) => E.value === A) }), this.props.onChange(A, j ? "user" : "init");
|
|
1587
1587
|
} });
|
|
1588
1588
|
case B.NUMBER:
|
|
1589
1589
|
return (0, X.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: C, max: p, min: m, placeholder: o, readOnly: c, required: d, step: n, type: "number", value: Jo(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (A) => {
|
|
@@ -1632,17 +1632,17 @@ var require_main_min = __commonJS({
|
|
|
1632
1632
|
var $i = (e, t) => {
|
|
1633
1633
|
switch (t) {
|
|
1634
1634
|
case "select":
|
|
1635
|
-
return
|
|
1635
|
+
return nd(e);
|
|
1636
1636
|
case "radio":
|
|
1637
1637
|
default:
|
|
1638
|
-
return
|
|
1638
|
+
return od(e);
|
|
1639
1639
|
}
|
|
1640
1640
|
};
|
|
1641
|
-
var
|
|
1642
|
-
var
|
|
1643
|
-
var
|
|
1644
|
-
var
|
|
1645
|
-
var
|
|
1641
|
+
var od = (e) => i(i(i({ label: e.title, value: e.const }, _i(e.title, e.description)), Rt(e)), Wi(e.disabled));
|
|
1642
|
+
var nd = (e) => i(i(i(i(i({ label: e.title, value: e.const }, _i(e.title, e.description)), sd(e.icon)), id(e.image)), Wi(e.disabled)), ad(e.keywords));
|
|
1643
|
+
var ad = (e) => z(e) ? { searchStrings: e } : {};
|
|
1644
|
+
var id = (e) => e != null && e.url ? { icon: (0, be.jsx)("div", { className: "media", children: (0, be.jsx)("div", { className: "np-option__no-media-circle", children: (0, be.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
|
|
1645
|
+
var sd = (e) => e != null && e.name && Mt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && No(e.name) ? { icon: (0, be.jsx)(Je, { type: e.name }) } : e != null && e.text ? { icon: (0, be.jsx)("span", { children: e.text }) } : null;
|
|
1646
1646
|
var Rt = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, be.jsx)(Ze.Avatar, { type: Ze.AvatarType.THUMBNAIL, children: (0, be.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && No(t.name) ? { avatar: (0, be.jsx)(Ze.Avatar, { type: Ze.AvatarType.ICON, children: (0, be.jsx)(Je, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, be.jsx)(Ze.Avatar, { type: Ze.AvatarType.INITIALS, children: t.text }) } : null;
|
|
1647
1647
|
var Kr = ({ accepts: e }) => i({}, z(e) && { usAccept: e.join(",") });
|
|
1648
1648
|
var _i = (e, t) => {
|
|
@@ -1654,7 +1654,7 @@ var require_main_min = __commonJS({
|
|
|
1654
1654
|
return { disabled: e };
|
|
1655
1655
|
};
|
|
1656
1656
|
var Xi = require("react/jsx-runtime");
|
|
1657
|
-
var
|
|
1657
|
+
var md = (e) => e === "string" || e === "number";
|
|
1658
1658
|
var Yo = (e) => {
|
|
1659
1659
|
if (fe(e))
|
|
1660
1660
|
return e.control === B.TAB && e.oneOf.length > 3 ? B.SELECT : e.oneOf.length === 2 && !e.control ? B.RADIO : e.control || B.SELECT;
|
|
@@ -1675,28 +1675,28 @@ var require_main_min = __commonJS({
|
|
|
1675
1675
|
}
|
|
1676
1676
|
return e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1677
1677
|
};
|
|
1678
|
-
var
|
|
1678
|
+
var ld = (e, t) => e.oneOf ? e.oneOf.map((r) => $i(r, t)) : null;
|
|
1679
1679
|
var Ji = (e) => {
|
|
1680
|
-
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: s, onBlur: l, onSearchChange: u } = e, c = xt(), d = (h) =>
|
|
1680
|
+
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: s, onBlur: l, onSearchChange: u } = e, c = xt(), d = (h) => md(r.type) && (M(h) || J(h)) ? "" : h, g = (h, F) => {
|
|
1681
1681
|
a($e(h, r), F);
|
|
1682
1682
|
}, f = Yo(r);
|
|
1683
1683
|
(0, Ki.useEffect)(() => {
|
|
1684
|
-
|
|
1684
|
+
cd(r, c, f);
|
|
1685
1685
|
}, [JSON.stringify(r), c, f]);
|
|
1686
|
-
let m = r.values ||
|
|
1686
|
+
let m = r.values || ld(r, f), p = { onFocus: s, onBlur: l, onSearchChange: u, onChange: g }, y = d(o), S = { id: t, name: t, label: r.title, options: m || [], placeholder: r.placeholder, autoComplete: !r.help, disabled: n || r.disabled, displayPattern: r.displayFormat, uploadProps: Kr(r) };
|
|
1687
1687
|
return (0, Xi.jsx)(Se, i(i({ type: f, value: y }, p), S));
|
|
1688
1688
|
};
|
|
1689
1689
|
Ji.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1690
|
-
var
|
|
1690
|
+
var cd = (e, t, r) => {
|
|
1691
1691
|
fe(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.");
|
|
1692
1692
|
};
|
|
1693
1693
|
var nr = Ji;
|
|
1694
1694
|
var oe = require("react/jsx-runtime");
|
|
1695
1695
|
var Zi = (e) => {
|
|
1696
|
-
let t = Q(), [r, o] = (0,
|
|
1696
|
+
let t = Q(), [r, o] = (0, ke.useState)(false), [n, a] = (0, ke.useState)(false), [s, l] = (0, ke.useState)(false), u = (0, ke.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), [c, d] = (0, ke.useState)(Gr(e.schema, e.model)), [g, f] = (0, ke.useState)(fd(e.model, e.schema.oneOf)), m = Ia(t, 200), p = (C) => {
|
|
1697
1697
|
m("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: C.length });
|
|
1698
1698
|
};
|
|
1699
|
-
if ((0,
|
|
1699
|
+
if ((0, ke.useEffect)(() => {
|
|
1700
1700
|
let C = rr(e.schema, e.model), D = rr(e.schema, e.schema.default);
|
|
1701
1701
|
C === -1 && D >= 0 && F(D, "init");
|
|
1702
1702
|
}, [e.schema]), !z(e.schema.oneOf))
|
|
@@ -1716,27 +1716,27 @@ var require_main_min = __commonJS({
|
|
|
1716
1716
|
} else
|
|
1717
1717
|
e.onChange({ model: g[C], triggerSchema: T, triggerModel: g[C], type: D });
|
|
1718
1718
|
D !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: T == null ? void 0 : T.analyticsId });
|
|
1719
|
-
}, w =
|
|
1720
|
-
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 || ye(e.schema.oneOf[0])) && (0, oe.jsxs)(oe.Fragment, { children: [(0, oe.jsxs)("div", { className: (0, Yi.default)(O), children: [
|
|
1719
|
+
}, w = yd(e.schema), v = ud(e, c), O = { "form-group": true, "has-error": !r && e.errors && !At(e.errors) || (e.submitted || r && s) && v.length };
|
|
1720
|
+
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 || ye(e.schema.oneOf[0])) && (0, oe.jsxs)(oe.Fragment, { children: [(0, oe.jsxs)("div", { className: (0, Yi.default)(O), children: [dd(e.schema, u), (0, oe.jsx)(nr, { id: u, schema: w, value: c, disabled: e.disabled, onChange: F, onFocus: S, onBlur: h, onSearchChange: p }), (0, oe.jsx)(Be, { changed: r, focused: n, blurred: s, submitted: e.submitted, errors: pd(e.errors), schema: e.schema, validations: v, infoMessage: null })] }), e.schema.alert && (0, oe.jsx)(se, { component: e.schema.alert })] }), Jt(e.schema.oneOf[c]) && (0, oe.jsx)(ue, { schema: e.schema.oneOf[c], model: g[c], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (C) => y(c, C), onPersistAsync: e.onPersistAsync })] });
|
|
1721
1721
|
};
|
|
1722
|
-
function
|
|
1723
|
-
let r = e.help ? (0, oe.jsx)(
|
|
1722
|
+
function dd(e, t) {
|
|
1723
|
+
let r = e.help ? (0, oe.jsx)(Ve, { help: e.help }) : null, o = ye(e.oneOf[0]) ? (0, oe.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) : (0, oe.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] });
|
|
1724
1724
|
return e.title ? o : r;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function ud(e, t) {
|
|
1727
1727
|
let r = e.schema.oneOf[t != null ? t : -1];
|
|
1728
1728
|
return ye(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function pd(e) {
|
|
1731
1731
|
return typeof e == "string" ? e : null;
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function fd(e, t) {
|
|
1734
1734
|
return t.map((r) => vt(e, r));
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1737
|
-
return b(i({}, e), { oneOf: e.oneOf.map(
|
|
1736
|
+
function yd(e) {
|
|
1737
|
+
return b(i({}, e), { oneOf: e.oneOf.map(hd) });
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function hd(e, t) {
|
|
1740
1740
|
let { title: r, description: o, disabled: n = false, icon: a, image: s, keywords: l } = e;
|
|
1741
1741
|
return { title: r, description: o, disabled: n, icon: a, image: s, const: t, keywords: l };
|
|
1742
1742
|
}
|
|
@@ -1819,43 +1819,43 @@ var require_main_min = __commonJS({
|
|
|
1819
1819
|
var ps = us;
|
|
1820
1820
|
var Ue = require("react/jsx-runtime");
|
|
1821
1821
|
var ys = (e) => e.promoted === true;
|
|
1822
|
-
var
|
|
1822
|
+
var gd = (e) => {
|
|
1823
1823
|
var l;
|
|
1824
|
-
let [t, r] = (0, fs.useState)(as(e.schema, e.model) || ((l = e.schema.promotion) == null ? void 0 : l.default) || "promoted"), o = e.schema.alert, n = e.schema.oneOf.find(ys), a =
|
|
1824
|
+
let [t, r] = (0, fs.useState)(as(e.schema, e.model) || ((l = e.schema.promotion) == null ? void 0 : l.default) || "promoted"), o = e.schema.alert, n = e.schema.oneOf.find(ys), a = Sd(n), s = bd(e.schema);
|
|
1825
1825
|
return (0, Ue.jsxs)(Ue.Fragment, { children: [o && (0, Ue.jsx)(se, { component: o }), (0, Ue.jsx)(ps, { id: e.schema.$id, title: e.schema.title, promotedOneOf: n, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ue.jsx)(or, b(i({}, e), { schema: a })), t === "other" && (0, Ue.jsx)(ue, b(i({}, e), { schema: s }))] });
|
|
1826
1826
|
};
|
|
1827
|
-
function
|
|
1827
|
+
function Sd(e) {
|
|
1828
1828
|
return b(i({}, e), { title: void 0, description: void 0 });
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function bd(e) {
|
|
1831
1831
|
var o, n, a;
|
|
1832
1832
|
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((s) => !ys(s)), r = (a = (n = e.promotion) == null ? void 0 : n.other.heading) == null ? void 0 : a.text;
|
|
1833
1833
|
return t.length === 1 ? b(i({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
|
|
1834
1834
|
}
|
|
1835
|
-
var an =
|
|
1835
|
+
var an = gd;
|
|
1836
1836
|
var Xr = require("@transferwise/components");
|
|
1837
1837
|
var gs = require("react-intl");
|
|
1838
1838
|
var hs = require("react-intl");
|
|
1839
1839
|
var sn = (0, hs.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." } });
|
|
1840
|
-
var
|
|
1841
|
-
var
|
|
1842
|
-
let { title: r = "" } = e, { formatMessage: o } = (0, gs.useIntl)(), n =
|
|
1843
|
-
return (0,
|
|
1840
|
+
var jt = require("react/jsx-runtime");
|
|
1841
|
+
var wd = ({ schema: e, model: t }) => {
|
|
1842
|
+
let { title: r = "" } = e, { formatMessage: o } = (0, gs.useIntl)(), n = Fd({ schema: e, model: t, formatMessage: o });
|
|
1843
|
+
return (0, jt.jsx)(Xr.DefinitionList, { layout: Xr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: n, key: "" }] });
|
|
1844
1844
|
};
|
|
1845
|
-
var mn =
|
|
1846
|
-
function
|
|
1847
|
-
return Te(e) ? fe(e) ?
|
|
1848
|
-
}
|
|
1849
|
-
function Fd(e, t) {
|
|
1850
|
-
let r = Cd(e, t);
|
|
1851
|
-
return r ? xd(r) : t;
|
|
1845
|
+
var mn = wd;
|
|
1846
|
+
function Fd({ schema: e, model: t, formatMessage: r }) {
|
|
1847
|
+
return Te(e) ? fe(e) ? Cd(e, t) : e.type === "boolean" && ve(t) ? r(t ? sn.yes : sn.no) : t && t.toString() || "" : "";
|
|
1852
1848
|
}
|
|
1853
1849
|
function Cd(e, t) {
|
|
1850
|
+
let r = xd(e, t);
|
|
1851
|
+
return r ? Ad(r) : t;
|
|
1852
|
+
}
|
|
1853
|
+
function xd(e, t) {
|
|
1854
1854
|
return e.oneOf.find((r) => "const" in r ? t === r.const : false);
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function Ad(e) {
|
|
1857
1857
|
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Rt({ icon: e.icon });
|
|
1858
|
-
return r != null && r.avatar ? (0,
|
|
1858
|
+
return r != null && r.avatar ? (0, jt.jsxs)(jt.Fragment, { children: [r.avatar, " ", t] }) : t;
|
|
1859
1859
|
}
|
|
1860
1860
|
var Ie = require("react");
|
|
1861
1861
|
var bs = require("react/jsx-runtime");
|
|
@@ -1865,14 +1865,14 @@ var require_main_min = __commonJS({
|
|
|
1865
1865
|
t.validationAsync.method || v.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {});
|
|
1866
1866
|
}, [v, t.validationAsync.method]);
|
|
1867
1867
|
let O = async (N, G) => {
|
|
1868
|
-
let A = C(),
|
|
1868
|
+
let A = C(), j = { [G.param]: N };
|
|
1869
1869
|
c.current = N, y(true), w("Dynamic Flow - ValidationAsync", { status: "pending" });
|
|
1870
|
-
let
|
|
1870
|
+
let E = await F(G.url, { method: G.method || "POST", headers: { "Content-Type": "application/json" }, body: G.method === "GET" ? void 0 : JSON.stringify(j), signal: A });
|
|
1871
1871
|
try {
|
|
1872
|
-
let H = await
|
|
1872
|
+
let H = await E.json();
|
|
1873
1873
|
if (!L(H))
|
|
1874
1874
|
throw new Error("Response body is not an object");
|
|
1875
|
-
w("Dynamic Flow - ValidationAsync", { status: "success" }),
|
|
1875
|
+
w("Dynamic Flow - ValidationAsync", { status: "success" }), E.status === 200 ? g(k(H.message) ? H.message : null) : E.status === 422 && m(k(H.message) ? H.message : null);
|
|
1876
1876
|
} catch (H) {
|
|
1877
1877
|
w("Dynamic Flow - ValidationAsync", { status: "failure" });
|
|
1878
1878
|
}
|
|
@@ -1891,10 +1891,10 @@ var require_main_min = __commonJS({
|
|
|
1891
1891
|
var ln = Ss;
|
|
1892
1892
|
var pe = require("react/jsx-runtime");
|
|
1893
1893
|
var Fs = require("react");
|
|
1894
|
-
var
|
|
1894
|
+
var vd = (e) => {
|
|
1895
1895
|
let { schema: t, model: r = null, errors: o = null, hideTitle: n = false, disabled: a = false } = e, s = b(i({}, e), { model: r, errors: o, hideTitle: n, disabled: a }), l = it(t), u = xt();
|
|
1896
1896
|
switch ((0, ws.useEffect)(() => {
|
|
1897
|
-
|
|
1897
|
+
Od(t, r, o) || u.error("Invalid schema or model", `Schema of type ${l || "undefined"} requested, but schema did not pass validation.`);
|
|
1898
1898
|
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(o), l, u]), l) {
|
|
1899
1899
|
case "readOnly":
|
|
1900
1900
|
return (0, pe.jsx)(mn, i({}, s));
|
|
@@ -1919,8 +1919,8 @@ var require_main_min = __commonJS({
|
|
|
1919
1919
|
}
|
|
1920
1920
|
return (0, pe.jsx)(pe.Fragment, {});
|
|
1921
1921
|
};
|
|
1922
|
-
var ue =
|
|
1923
|
-
var
|
|
1922
|
+
var ue = vd;
|
|
1923
|
+
var Od = (e, t, r) => {
|
|
1924
1924
|
switch (it(e)) {
|
|
1925
1925
|
case "persistAsync":
|
|
1926
1926
|
return Dr(e) && Tr(t) && Xt(r);
|
|
@@ -1931,48 +1931,48 @@ var require_main_min = __commonJS({
|
|
|
1931
1931
|
case "object":
|
|
1932
1932
|
return Pe(e) && Do(t);
|
|
1933
1933
|
case "array":
|
|
1934
|
-
return Le(e) &&
|
|
1934
|
+
return Le(e) && Ea(t) && Xt(r);
|
|
1935
1935
|
case "promotedOneOf":
|
|
1936
1936
|
return at(e) && Do(t);
|
|
1937
1937
|
case "oneOf":
|
|
1938
1938
|
return fe(e);
|
|
1939
1939
|
case "allOf":
|
|
1940
|
-
return
|
|
1940
|
+
return ko(e) && $(t);
|
|
1941
1941
|
}
|
|
1942
1942
|
return false;
|
|
1943
1943
|
};
|
|
1944
1944
|
var yt = require("react/jsx-runtime");
|
|
1945
|
-
var
|
|
1945
|
+
var Pd = (e) => {
|
|
1946
1946
|
let t = i({ model: null, errors: null, disabled: false, baseUrl: "" }, e);
|
|
1947
|
-
return Mr() || t.baseUrl == null ? (0, yt.jsx)(ue, i({}, t)) : (0, yt.jsx)(
|
|
1947
|
+
return Mr() || t.baseUrl == null ? (0, yt.jsx)(ue, i({}, t)) : (0, yt.jsx)(Md, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, yt.jsx)(ue, i({}, t)) });
|
|
1948
1948
|
};
|
|
1949
|
-
var sr =
|
|
1950
|
-
var
|
|
1949
|
+
var sr = Pd;
|
|
1950
|
+
var Md = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, yt.jsx)(Er, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : Cs, children: (0, yt.jsx)(Cr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : Cs, children: (0, yt.jsx)(Pr, { baseUrl: e, children: o }) }) });
|
|
1951
1951
|
var Cs = () => {
|
|
1952
1952
|
};
|
|
1953
1953
|
var cn = require("react/jsx-runtime");
|
|
1954
|
-
var
|
|
1954
|
+
var Ed = (e) => {
|
|
1955
1955
|
let t = e.component, r = t.schema;
|
|
1956
1956
|
return (0, cn.jsx)("div", { className: U(t.margin || "md"), children: (0, cn.jsx)(sr, { schema: r, model: e.model, submitted: e.submitted, errors: e.errors, onChange: (o) => {
|
|
1957
1957
|
e.onModelChange(i({ formSchema: r }, o));
|
|
1958
1958
|
}, onPersistAsync: e.onPersistAsync }) });
|
|
1959
1959
|
};
|
|
1960
|
-
var dn =
|
|
1961
|
-
var
|
|
1960
|
+
var dn = Ed;
|
|
1961
|
+
var Vt = require("react/jsx-runtime");
|
|
1962
1962
|
var kd = (e) => {
|
|
1963
1963
|
let { text: t, size: r = "md", align: o = "left", margin: n = "md" } = e.component, a = Ne({ align: o, margin: n });
|
|
1964
1964
|
switch (r) {
|
|
1965
1965
|
case "xs":
|
|
1966
|
-
return (0,
|
|
1966
|
+
return (0, Vt.jsx)("h5", { className: a, children: t });
|
|
1967
1967
|
case "sm":
|
|
1968
|
-
return (0,
|
|
1968
|
+
return (0, Vt.jsx)("h4", { className: a, children: t });
|
|
1969
1969
|
case "lg":
|
|
1970
|
-
return (0,
|
|
1970
|
+
return (0, Vt.jsx)("h2", { className: a, children: t });
|
|
1971
1971
|
case "xl":
|
|
1972
|
-
return (0,
|
|
1972
|
+
return (0, Vt.jsx)("h1", { className: a, children: t });
|
|
1973
1973
|
case "md":
|
|
1974
1974
|
default:
|
|
1975
|
-
return (0,
|
|
1975
|
+
return (0, Vt.jsx)("h3", { className: a, children: t });
|
|
1976
1976
|
}
|
|
1977
1977
|
};
|
|
1978
1978
|
var un = kd;
|
|
@@ -1986,43 +1986,43 @@ var require_main_min = __commonJS({
|
|
|
1986
1986
|
var xs = require("@transferwise/components");
|
|
1987
1987
|
var Yr = require("react");
|
|
1988
1988
|
var hn = require("react/jsx-runtime");
|
|
1989
|
-
var
|
|
1989
|
+
var Id = ({ component: e }) => {
|
|
1990
1990
|
let { url: t, size: r, text: o, margin: n, accessibilityDescription: a } = e, s = ee(), [l, u] = (0, Yr.useState)("");
|
|
1991
1991
|
(0, Yr.useEffect)(() => {
|
|
1992
|
-
|
|
1992
|
+
Ld(s, t).then(u);
|
|
1993
1993
|
}, [t, s]);
|
|
1994
1994
|
let c = { alt: a || o || "", src: l, stretch: true, shrink: true };
|
|
1995
1995
|
return l ? (0, hn.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, hn.jsx)(xs.Image, i({ className: `img-responsive ${U(n || "md")}` }, c)) }) : null;
|
|
1996
1996
|
};
|
|
1997
|
-
var
|
|
1997
|
+
var Dd = (e) => new Promise((t, r) => {
|
|
1998
1998
|
let o = new FileReader();
|
|
1999
1999
|
o.addEventListener("loadend", () => t(o.result)), o.addEventListener("error", (n) => r(n)), o.readAsDataURL(e);
|
|
2000
2000
|
});
|
|
2001
|
-
var
|
|
2001
|
+
var Ld = async (e, t) => {
|
|
2002
2002
|
var r;
|
|
2003
2003
|
try {
|
|
2004
2004
|
return Ar(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) => {
|
|
2005
2005
|
if (o.ok)
|
|
2006
2006
|
return o.blob();
|
|
2007
2007
|
throw new Error("Image fetching failed");
|
|
2008
|
-
}).then(
|
|
2008
|
+
}).then(Dd).catch(() => t) : t;
|
|
2009
2009
|
} catch (o) {
|
|
2010
2010
|
return t;
|
|
2011
2011
|
}
|
|
2012
2012
|
};
|
|
2013
|
-
var gn =
|
|
2013
|
+
var gn = Id;
|
|
2014
2014
|
var Zr = require("@transferwise/components");
|
|
2015
2015
|
var lr = require("react/jsx-runtime");
|
|
2016
|
-
var
|
|
2017
|
-
var
|
|
2018
|
-
var
|
|
2019
|
-
let { items: t } = e, r = t.filter((n) =>
|
|
2016
|
+
var Td = ["positive", "neutral"];
|
|
2017
|
+
var Nd = ["warning", "negative"];
|
|
2018
|
+
var Rd = ({ component: e }) => {
|
|
2019
|
+
let { items: t } = e, r = t.filter((n) => Td.includes(n.context)).map(({ text: n }) => n), o = t.filter((n) => Nd.includes(n.context)).map(({ text: n }) => n);
|
|
2020
2020
|
return (0, lr.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, lr.jsx)(Zr.Header, { title: e.title }) : null, (0, lr.jsx)(Zr.InstructionsList, { dos: r, donts: o })] });
|
|
2021
2021
|
};
|
|
2022
|
-
var Sn =
|
|
2022
|
+
var Sn = Rd;
|
|
2023
2023
|
var q = require("react/jsx-runtime");
|
|
2024
2024
|
var Y = (e) => JSON.stringify(e);
|
|
2025
|
-
var
|
|
2025
|
+
var Bd = (e) => {
|
|
2026
2026
|
let { components: t, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: l, baseUrl: u } = e, c = (d) => {
|
|
2027
2027
|
switch (d.type) {
|
|
2028
2028
|
case "heading":
|
|
@@ -2044,7 +2044,7 @@ var require_main_min = __commonJS({
|
|
|
2044
2044
|
case "markdown":
|
|
2045
2045
|
return (0, q.jsx)(fn, { component: d }, Y(d));
|
|
2046
2046
|
case "columns":
|
|
2047
|
-
return (0, q.jsx)(
|
|
2047
|
+
return (0, q.jsx)(jo, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: l }, Y(d));
|
|
2048
2048
|
case "form":
|
|
2049
2049
|
return (0, q.jsx)(dn, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onPersistAsync: l }, Y(b(i({}, d), { errors: n != null ? n : null })));
|
|
2050
2050
|
case "button":
|
|
@@ -2052,7 +2052,7 @@ var require_main_min = __commonJS({
|
|
|
2052
2052
|
case "box":
|
|
2053
2053
|
return (0, q.jsx)(Ro, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: l }, Y(d));
|
|
2054
2054
|
case "decision":
|
|
2055
|
-
return (0, q.jsx)(
|
|
2055
|
+
return (0, q.jsx)(Vo, { component: d, onAction: s }, Y(d));
|
|
2056
2056
|
case "external":
|
|
2057
2057
|
return (0, q.jsx)(zo, { component: d, onAction: s }, Y(d));
|
|
2058
2058
|
case "list":
|
|
@@ -2068,62 +2068,62 @@ var require_main_min = __commonJS({
|
|
|
2068
2068
|
};
|
|
2069
2069
|
return Mr() || u == null ? (0, q.jsx)(q.Fragment, { children: t.map(c) }) : (0, q.jsx)(Pr, { baseUrl: u, children: t.map(c) });
|
|
2070
2070
|
};
|
|
2071
|
-
var me =
|
|
2071
|
+
var me = Bd;
|
|
2072
2072
|
var As = require("@transferwise/components");
|
|
2073
2073
|
var Ut = require("react/jsx-runtime");
|
|
2074
|
-
var
|
|
2074
|
+
var jd = ({ component: e }) => (0, Ut.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, Ut.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(Vd)] });
|
|
2075
2075
|
var Vd = ({ title: e, description: t, icon: r, status: o }) => {
|
|
2076
|
-
let n = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Ut.jsx)(Je, { type: r.name }) } : {}), o ? { status:
|
|
2076
|
+
let n = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Ut.jsx)(Je, { type: r.name }) } : {}), o ? { status: Hd[o] } : {});
|
|
2077
2077
|
return (0, Ut.jsx)(As.Summary, i({}, n));
|
|
2078
2078
|
};
|
|
2079
|
-
var
|
|
2080
|
-
var
|
|
2081
|
-
var
|
|
2082
|
-
var bn =
|
|
2079
|
+
var Ud = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2080
|
+
var zd = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2081
|
+
var Hd = i(i({}, Ud), zd);
|
|
2082
|
+
var bn = jd;
|
|
2083
2083
|
var vs = require("@transferwise/components");
|
|
2084
2084
|
var Os = require("react/jsx-runtime");
|
|
2085
|
-
var
|
|
2085
|
+
var qd = ({ component: e }) => {
|
|
2086
2086
|
let { margin: t, size: r = "md" } = e;
|
|
2087
2087
|
return (0, Os.jsx)(vs.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${U(t)}` }, "data-testid": "loading-indicator" });
|
|
2088
2088
|
};
|
|
2089
|
-
var cr =
|
|
2089
|
+
var cr = qd;
|
|
2090
2090
|
var Is = require("@transferwise/components");
|
|
2091
2091
|
var Ds = require("react-intl");
|
|
2092
2092
|
var Ps = require("react-intl");
|
|
2093
2093
|
var xn = (0, Ps.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." } });
|
|
2094
2094
|
var Ms = require("@transferwise/components");
|
|
2095
|
-
var
|
|
2096
|
-
function
|
|
2097
|
-
let e = (0,
|
|
2098
|
-
return e ? e.createSnackbar :
|
|
2095
|
+
var Es = require("react");
|
|
2096
|
+
function ks() {
|
|
2097
|
+
let e = (0, Es.useContext)(Ms.SnackbarContext);
|
|
2098
|
+
return e ? e.createSnackbar : Gd;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function Gd() {
|
|
2101
2101
|
}
|
|
2102
2102
|
var Qe = require("react/jsx-runtime");
|
|
2103
|
-
var
|
|
2104
|
-
var
|
|
2105
|
-
var
|
|
2106
|
-
let { formatMessage: t } = (0, Ds.useIntl)(), r =
|
|
2103
|
+
var $d = ({ component: e }) => e.control === "copyable" ? (0, Qe.jsx)(Wd, { component: e }) : (0, Qe.jsx)(_d, { component: e });
|
|
2104
|
+
var _d = ({ component: e }) => (0, Qe.jsxs)("p", { className: Ne(e), children: [" ", e.text, " "] });
|
|
2105
|
+
var Wd = ({ component: e }) => {
|
|
2106
|
+
let { formatMessage: t } = (0, Ds.useIntl)(), r = ks(), { text: o } = e, n = () => {
|
|
2107
2107
|
var s;
|
|
2108
|
-
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(xn.copied) })).catch(
|
|
2108
|
+
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(xn.copied) })).catch(Kd);
|
|
2109
2109
|
}, a = Ne({ align: e.align, margin: "sm" }) + " form-control";
|
|
2110
2110
|
return (0, Qe.jsxs)("div", { className: Ne(e), children: [(0, Qe.jsx)("input", { type: "text", className: a, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, Qe.jsx)(Is.Button, { block: true, onClick: n, children: t(xn.copy) })] });
|
|
2111
2111
|
};
|
|
2112
|
-
function
|
|
2112
|
+
function Kd() {
|
|
2113
2113
|
}
|
|
2114
|
-
var wn =
|
|
2114
|
+
var wn = $d;
|
|
2115
2115
|
var Ls = require("@transferwise/components");
|
|
2116
2116
|
var ne = require("react/jsx-runtime");
|
|
2117
|
-
var
|
|
2118
|
-
var
|
|
2119
|
-
var
|
|
2120
|
-
var
|
|
2117
|
+
var Jd = (e, t) => t.fields.map(({ label: r, value: o, help: n }, a) => ({ key: String(a), title: r, value: Xd(o, n, e) }));
|
|
2118
|
+
var Xd = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, ne.jsxs)(ne.Fragment, { children: [(0, ne.jsx)(Ve, { help: t }), " ", e] }) : (0, ne.jsxs)(ne.Fragment, { children: [e, " ", (0, ne.jsx)(Ve, { help: t })] }) : e;
|
|
2119
|
+
var Yd = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
|
|
2120
|
+
var Zd = (e) => {
|
|
2121
2121
|
let t = e.component, r = U(t.margin || "xs"), o = (a) => (0, ne.jsx)("a", { href: a.url, className: "pull-right", role: "button", onClick: (s) => {
|
|
2122
2122
|
s.preventDefault(), e.onAction(a);
|
|
2123
|
-
}, children: a.title }), n =
|
|
2124
|
-
return (0, ne.jsxs)(ne.Fragment, { children: [t.title && (0, ne.jsxs)("h6", { className: "m-b-2", children: [t.title, t.action && o(t.action)] }), (0, ne.jsx)("div", { className: r, children: (0, ne.jsx)(Ls.DefinitionList, { layout: n, definitions:
|
|
2123
|
+
}, children: a.title }), n = Yd(t);
|
|
2124
|
+
return (0, ne.jsxs)(ne.Fragment, { children: [t.title && (0, ne.jsxs)("h6", { className: "m-b-2", children: [t.title, t.action && o(t.action)] }), (0, ne.jsx)("div", { className: r, children: (0, ne.jsx)(Ls.DefinitionList, { layout: n, definitions: Jd(n, t) }) })] });
|
|
2125
2125
|
};
|
|
2126
|
-
var Fn =
|
|
2126
|
+
var Fn = Zd;
|
|
2127
2127
|
var to = require("react");
|
|
2128
2128
|
var Ts = require("@transferwise/components");
|
|
2129
2129
|
var Qr = require("react/jsx-runtime");
|
|
@@ -2133,15 +2133,15 @@ var require_main_min = __commonJS({
|
|
|
2133
2133
|
var Rs = require("react-intl");
|
|
2134
2134
|
var zt = (0, Rs.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." } });
|
|
2135
2135
|
var ht = require("react/jsx-runtime");
|
|
2136
|
-
var
|
|
2137
|
-
var
|
|
2136
|
+
var js = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, ht.jsx)("p", { className: "m-t-2", children: t }) : (0, ht.jsx)(eo.NavigationOptionsList, { children: e.map((o) => (0, ht.jsx)(eo.NavigationOption, { title: o.title, content: o.description, media: mt(o), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(o) }, JSON.stringify(o))) });
|
|
2137
|
+
var Vs = ({ onRetrySearch: e }) => {
|
|
2138
2138
|
let t = (0, Bs.useIntl)();
|
|
2139
2139
|
return (0, ht.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(zt.errorAlert), "\xA0", (0, ht.jsx)("a", { href: "/", onClick: (r) => {
|
|
2140
2140
|
r.preventDefault(), e();
|
|
2141
2141
|
}, children: t.formatMessage(zt.retry) })] });
|
|
2142
2142
|
};
|
|
2143
2143
|
var Ht = require("react");
|
|
2144
|
-
var
|
|
2144
|
+
var Qd = { "Content-Type": "application/json" };
|
|
2145
2145
|
var Us = (e) => {
|
|
2146
2146
|
let [t, r] = (0, Ht.useState)({ status: "idle" }), o = (0, Ht.useRef)(null), n = ee(), a = (0, Ht.useCallback)(async (c, { url: d, method: g, param: f } = e) => {
|
|
2147
2147
|
var p;
|
|
@@ -2153,7 +2153,7 @@ var require_main_min = __commonJS({
|
|
|
2153
2153
|
let m = o.current.signal;
|
|
2154
2154
|
r({ status: "loading" });
|
|
2155
2155
|
try {
|
|
2156
|
-
let y = g === "GET" ? `${d}?${f}=${encodeURIComponent(c)}` : d, S = g === "GET" ? {} : { body: JSON.stringify({ [f]: c }) }, h = await n(y, i({ method: g, signal: m, headers:
|
|
2156
|
+
let y = g === "GET" ? `${d}?${f}=${encodeURIComponent(c)}` : d, S = g === "GET" ? {} : { body: JSON.stringify({ [f]: c }) }, h = await n(y, i({ method: g, signal: m, headers: Qd }, S));
|
|
2157
2157
|
s(h, c);
|
|
2158
2158
|
} catch (y) {
|
|
2159
2159
|
l(y, c);
|
|
@@ -2161,23 +2161,23 @@ var require_main_min = __commonJS({
|
|
|
2161
2161
|
}, [n, JSON.stringify(e)]), s = async (c, d) => {
|
|
2162
2162
|
if (c.ok) {
|
|
2163
2163
|
let g = await c.json().catch(() => null);
|
|
2164
|
-
if (
|
|
2164
|
+
if (eu(g)) {
|
|
2165
2165
|
r({ status: "success", results: g.results });
|
|
2166
2166
|
return;
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
r({ status: "error" });
|
|
2170
2170
|
}, l = (c, d) => {
|
|
2171
|
-
|
|
2171
|
+
tu(c) === false && r({ status: "error" });
|
|
2172
2172
|
}, u = t.status === "success" ? t.results : [];
|
|
2173
2173
|
return { status: t.status, results: u, search: a };
|
|
2174
2174
|
};
|
|
2175
|
-
var
|
|
2176
|
-
var
|
|
2175
|
+
var eu = (e) => L(e) && "results" in e && z(e.results) && e.results.every((t) => L(t) && "title" in t && "type" in t && "value" in t);
|
|
2176
|
+
var tu = (e) => e instanceof DOMException && e.name === "AbortError";
|
|
2177
2177
|
var gt = require("react/jsx-runtime");
|
|
2178
|
-
var
|
|
2179
|
-
var
|
|
2180
|
-
let [r, o] = (0, to.useState)(""), { title: n, margin: a, url: s, method: l, param: u, emptyMessage: c } = e, { status: d, results: g, search: f } = Us({ url: s, method: l, param: u }), m = (0, to.useMemo)(() => We(f,
|
|
2178
|
+
var ru = 400;
|
|
2179
|
+
var ou = ({ component: e, onAction: t }) => {
|
|
2180
|
+
let [r, o] = (0, to.useState)(""), { title: n, margin: a, url: s, method: l, param: u, emptyMessage: c } = e, { status: d, results: g, search: f } = Us({ url: s, method: l, param: u }), m = (0, to.useMemo)(() => We(f, ru), [f]), p = (h) => {
|
|
2181
2181
|
o(h), m(h);
|
|
2182
2182
|
}, y = ({ type: h, value: F }) => {
|
|
2183
2183
|
if (h === "action" && t(F), h === "search") {
|
|
@@ -2188,37 +2188,37 @@ var require_main_min = __commonJS({
|
|
|
2188
2188
|
}, S = () => {
|
|
2189
2189
|
o(r), f(r);
|
|
2190
2190
|
};
|
|
2191
|
-
return (0, gt.jsxs)("div", { className: U(a), children: [(0, gt.jsx)(Ns, { title: n, value: r, onChange: p }), d === "loading" && (0, gt.jsx)(cr, { component: { type: "loading-indicator", size: "sm" } }), d === "error" && (0, gt.jsx)(
|
|
2191
|
+
return (0, gt.jsxs)("div", { className: U(a), children: [(0, gt.jsx)(Ns, { title: n, value: r, onChange: p }), d === "loading" && (0, gt.jsx)(cr, { component: { type: "loading-indicator", size: "sm" } }), d === "error" && (0, gt.jsx)(Vs, { onRetrySearch: S }), d === "success" && (0, gt.jsx)(js, { results: g, emptyMessage: c, onSelect: y })] });
|
|
2192
2192
|
};
|
|
2193
|
-
var Cn =
|
|
2193
|
+
var Cn = ou;
|
|
2194
2194
|
var ce = require("react/jsx-runtime");
|
|
2195
2195
|
var An = (e) => M(e) || J(e);
|
|
2196
|
-
var
|
|
2196
|
+
var nu = (e) => e.type === "boolean" && An(e.default) ? false : e.default;
|
|
2197
2197
|
var Hs = (e) => {
|
|
2198
|
-
var G, A,
|
|
2199
|
-
let t = (
|
|
2200
|
-
f(true), o(n(
|
|
2201
|
-
}, r = (
|
|
2202
|
-
u(
|
|
2203
|
-
let Ae = r(
|
|
2198
|
+
var G, A, j;
|
|
2199
|
+
let t = (E) => {
|
|
2200
|
+
f(true), o(n(E), "user");
|
|
2201
|
+
}, r = (E) => _e(E, e.schema, e.required), o = (E, H) => {
|
|
2202
|
+
u(E);
|
|
2203
|
+
let Ae = r(E);
|
|
2204
2204
|
F(Ae);
|
|
2205
|
-
let ae =
|
|
2205
|
+
let ae = E;
|
|
2206
2206
|
d(ae), ae !== c && e.onChange({ model: ae, triggerSchema: e.schema, triggerModel: ae, lastTriggerModel: c, type: H });
|
|
2207
|
-
}, n = (
|
|
2207
|
+
}, n = (E) => $e(E, e.schema), a = () => p(true), s = () => {
|
|
2208
2208
|
p(false), S(true), e.onBlur && e.onBlur();
|
|
2209
2209
|
}, [l, u] = (0, le.useState)((G = e.model) != null ? G : null), [c, d] = (0, le.useState)((A = e.model) != null ? A : null), [g, f] = (0, le.useState)(false), [m, p] = (0, le.useState)(false), [y, S] = (0, le.useState)(false), [h, F] = (0, le.useState)([]), w = (0, le.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), v = () => {
|
|
2210
|
-
let
|
|
2211
|
-
An(l) && !An(
|
|
2210
|
+
let E = nu(e.schema);
|
|
2211
|
+
An(l) && !An(E) && o(E, "init"), e.schema.const && o(e.schema.const, "init");
|
|
2212
2212
|
}, O = () => {
|
|
2213
2213
|
F(r(l));
|
|
2214
2214
|
}, C = e.schema.const, D = e.schema.hidden || C;
|
|
2215
2215
|
(0, le.useEffect)(O, [e.model, e.submitted]), (0, le.useEffect)(v, [e.schema]), (0, le.useEffect)(() => {
|
|
2216
2216
|
var H;
|
|
2217
|
-
let
|
|
2218
|
-
|
|
2217
|
+
let E = (H = e.model) != null ? H : null;
|
|
2218
|
+
E !== l && u(E);
|
|
2219
2219
|
}, [e.model]);
|
|
2220
2220
|
let T = { "form-group": true, "has-error": (e.submitted || !g) && !!e.errors || (e.submitted || g && y) && !!h.length, "has-info": m && !!e.schema.description || !!e.infoMessage }, P = e.schema.format !== "file" && e.schema.type !== "boolean", N = e.schema.help;
|
|
2221
|
-
return D ? null : (0, ce.jsxs)(ce.Fragment, { children: [e.schema.alert && (0, ce.jsx)(se, { component: e.schema.alert }), (0, ce.jsxs)("div", { className: (0, zs.default)(T), children: [P && (0, ce.jsxs)("div", { className: "d-inline-block", children: [(0, ce.jsx)("label", { className: "control-label d-inline", htmlFor: w, children: e.schema.title }), !!N && (0, ce.jsx)(
|
|
2221
|
+
return D ? null : (0, ce.jsxs)(ce.Fragment, { children: [e.schema.alert && (0, ce.jsx)(se, { component: e.schema.alert }), (0, ce.jsxs)("div", { className: (0, zs.default)(T), children: [P && (0, ce.jsxs)("div", { className: "d-inline-block", children: [(0, ce.jsx)("label", { className: "control-label d-inline", htmlFor: w, children: e.schema.title }), !!N && (0, ce.jsx)(Ve, { help: N })] }), !P && !!N && (0, ce.jsx)(Ve, { help: N }), (0, ce.jsx)(nr, { id: w, schema: e.schema, value: l, disabled: !!e.disabled, onChange: t, onFocus: a, onBlur: s }), (0, ce.jsx)(Be, { changed: g, focused: m, blurred: y, submitted: e.submitted, errors: (j = e.errors) != null ? j : null, schema: e.schema, validations: h, infoMessage: e.infoMessage })] })] });
|
|
2222
2222
|
};
|
|
2223
2223
|
Hs.defaultProps = { required: false, disabled: false, onBlur: null };
|
|
2224
2224
|
var ft = Hs;
|
|
@@ -2228,33 +2228,33 @@ var require_main_min = __commonJS({
|
|
|
2228
2228
|
var r;
|
|
2229
2229
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2230
2230
|
};
|
|
2231
|
-
var
|
|
2231
|
+
var au = /* @__PURE__ */ new Set([B.RADIO, B.SELECT, B.DATELOOKUP, B.FILE, B.UPLOAD]);
|
|
2232
2232
|
var $s = (e) => {
|
|
2233
2233
|
let { schema: t, required: r, submitted: o, errors: n, onChange: a, onPersistAsync: s } = e, l = (0, qs.useIntl)(), u = ee(), c = Q(), [d, g] = (0, St.useState)(null), f = Ws(d), [m, p] = (0, St.useState)(null), [y, S] = (0, St.useState)(false), [h, F] = (0, St.useState)(null);
|
|
2234
2234
|
(0, St.useEffect)(() => {
|
|
2235
|
-
|
|
2235
|
+
au.has(Yo(t.persistAsync.schema)) && C();
|
|
2236
2236
|
}, [d]);
|
|
2237
2237
|
let w = () => p(l.formatMessage(Qt.genericError)), v = async (P, N) => {
|
|
2238
2238
|
let G = O(), A = { [N.param]: P };
|
|
2239
2239
|
S(true);
|
|
2240
2240
|
try {
|
|
2241
2241
|
c("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t.$id });
|
|
2242
|
-
let
|
|
2243
|
-
s(
|
|
2244
|
-
let
|
|
2242
|
+
let j = u(N.url, { method: N.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(A), signal: G });
|
|
2243
|
+
s(j);
|
|
2244
|
+
let E = await j, H = await E.json();
|
|
2245
2245
|
if (!L(H))
|
|
2246
2246
|
throw new Error("Response is not an object");
|
|
2247
2247
|
let { idProperty: Ae, param: ae } = t.persistAsync;
|
|
2248
|
-
if (Qn(
|
|
2248
|
+
if (Qn(E.status)) {
|
|
2249
2249
|
let re = tn(Ae, H);
|
|
2250
2250
|
a({ model: re, triggerSchema: t, triggerModel: re });
|
|
2251
|
-
} else if (xr(
|
|
2251
|
+
} else if (xr(E.status)) {
|
|
2252
2252
|
let { validation: re } = H, de = L(re) && (re == null ? void 0 : re[ae]) || null;
|
|
2253
2253
|
p(de), a({ model: null, triggerSchema: t, triggerModel: null });
|
|
2254
2254
|
} else
|
|
2255
2255
|
w();
|
|
2256
2256
|
c("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
|
|
2257
|
-
} catch (
|
|
2257
|
+
} catch (j) {
|
|
2258
2258
|
c("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), w();
|
|
2259
2259
|
}
|
|
2260
2260
|
}, O = () => {
|
|
@@ -2284,7 +2284,7 @@ var require_main_min = __commonJS({
|
|
|
2284
2284
|
return r(f), f.signal;
|
|
2285
2285
|
};
|
|
2286
2286
|
function u(f) {
|
|
2287
|
-
let m = Pt(a), p = l(), y = e.param, S = m ?
|
|
2287
|
+
let m = Pt(a), p = l(), y = e.param, S = m ? iu(y, f) : JSON.stringify({ [y]: f });
|
|
2288
2288
|
return { method: e.method, headers: i({}, !m && { "Content-Type": "application/json" }), body: S, signal: p };
|
|
2289
2289
|
}
|
|
2290
2290
|
async function c(f) {
|
|
@@ -2295,7 +2295,7 @@ var require_main_min = __commonJS({
|
|
|
2295
2295
|
let p = await m.json();
|
|
2296
2296
|
if (L(p)) {
|
|
2297
2297
|
let y = p[e.idProperty];
|
|
2298
|
-
if (
|
|
2298
|
+
if (k(y) || R(y))
|
|
2299
2299
|
return { data: y };
|
|
2300
2300
|
}
|
|
2301
2301
|
return g();
|
|
@@ -2308,28 +2308,28 @@ var require_main_min = __commonJS({
|
|
|
2308
2308
|
let m = await f.json();
|
|
2309
2309
|
if (L(m)) {
|
|
2310
2310
|
let p = Gs(e.param, m);
|
|
2311
|
-
if (
|
|
2311
|
+
if (k(p))
|
|
2312
2312
|
throw new Error(p);
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
throw new Error(n.formatMessage(Qt.genericError));
|
|
2316
2316
|
}
|
|
2317
2317
|
let g = (f) => {
|
|
2318
|
-
let m =
|
|
2318
|
+
let m = su(f) ? f.message : n.formatMessage(Qt.genericError);
|
|
2319
2319
|
throw new Error(m);
|
|
2320
2320
|
};
|
|
2321
2321
|
return s;
|
|
2322
2322
|
};
|
|
2323
|
-
function
|
|
2323
|
+
function iu(e, t) {
|
|
2324
2324
|
let r = new FormData();
|
|
2325
2325
|
return t !== null && r.append(e, t), r;
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function su(e) {
|
|
2328
2328
|
return L(e) && "message" in e && typeof e.message == "string";
|
|
2329
2329
|
}
|
|
2330
2330
|
var et = require("react");
|
|
2331
2331
|
function Nr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: n, onFailure: a }) {
|
|
2332
|
-
let s = (0, et.useRef)(n), l = (0, et.useRef)(a), u = (0, et.useMemo)(() =>
|
|
2332
|
+
let s = (0, et.useRef)(n), l = (0, et.useRef)(a), u = (0, et.useMemo)(() => mu(e, r, o, (c) => s.current(c), () => l.current()), [e, r, o]);
|
|
2333
2333
|
(0, et.useEffect)(() => {
|
|
2334
2334
|
if (t > 0) {
|
|
2335
2335
|
let c = setInterval(() => {
|
|
@@ -2341,7 +2341,7 @@ var require_main_min = __commonJS({
|
|
|
2341
2341
|
s.current = n, l.current = a;
|
|
2342
2342
|
}, [n, a]);
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function mu(e, t, r, o, n) {
|
|
2345
2345
|
let a = true, s = 0, l = 0;
|
|
2346
2346
|
return e ? () => {
|
|
2347
2347
|
a && (l++, e().then((u) => {
|
|
@@ -2376,20 +2376,20 @@ var require_main_min = __commonJS({
|
|
|
2376
2376
|
}, [t, e]) });
|
|
2377
2377
|
}
|
|
2378
2378
|
var Ys = require("react/jsx-runtime");
|
|
2379
|
-
var
|
|
2379
|
+
var lu = (e, t) => {
|
|
2380
2380
|
var o;
|
|
2381
2381
|
if (At(e))
|
|
2382
2382
|
return [];
|
|
2383
2383
|
let r = Wt(e, t);
|
|
2384
2384
|
return Ge({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (o = e.model) != null ? o : null });
|
|
2385
2385
|
};
|
|
2386
|
-
var
|
|
2387
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: s } = e, l =
|
|
2386
|
+
var cu = (e) => {
|
|
2387
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: s } = e, l = lu(t, r), { loading: u, registerPersistAsyncPromise: c } = Fr(), d = Q(), g = u ? () => {
|
|
2388
2388
|
d("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2389
2389
|
} : e.onAction;
|
|
2390
2390
|
return Xs(t.polling, g), (0, Ys.jsx)(me, { components: l, submitted: o, model: n, errors: a, onAction: g, onModelChange: s, onPersistAsync: c });
|
|
2391
2391
|
};
|
|
2392
|
-
var oo =
|
|
2392
|
+
var oo = cu;
|
|
2393
2393
|
var mo = require("react");
|
|
2394
2394
|
var Ce = require("react");
|
|
2395
2395
|
var wm = require("react-intl");
|
|
@@ -2399,12 +2399,12 @@ var require_main_min = __commonJS({
|
|
|
2399
2399
|
var Fe = require("@transferwise/components");
|
|
2400
2400
|
var em = require("react-intl");
|
|
2401
2401
|
var we = require("react/jsx-runtime");
|
|
2402
|
-
var tm = ({ onCapture: e }) => (0, we.jsx)("div", { className: "bottom-bar", children: (0, we.jsx)(
|
|
2402
|
+
var tm = ({ onCapture: e }) => (0, we.jsx)("div", { className: "bottom-bar", children: (0, we.jsx)(du, { onClick: e }) });
|
|
2403
2403
|
var rm = ({ onSubmit: e, onRetry: t }) => {
|
|
2404
2404
|
let r = (0, em.useIntl)();
|
|
2405
2405
|
return (0, we.jsx)("div", { className: "bottom-bar p-x-2", children: (0, we.jsx)("div", { className: "row", children: (0, we.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, we.jsx)(Fe.Button, { className: "m-b-1", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, onClick: e, children: r.formatMessage(pr.reviewSubmit) }), (0, we.jsx)(Fe.Button, { className: "m-b-2", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, priority: Fe.Priority.SECONDARY, onClick: t, children: r.formatMessage(pr.reviewRetry) })] }) }) });
|
|
2406
2406
|
};
|
|
2407
|
-
var
|
|
2407
|
+
var du = ({ onClick: e }) => (0, we.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, we.jsx)("span", { className: "camera-capture-btn-inner" }) });
|
|
2408
2408
|
var ao = require("react");
|
|
2409
2409
|
var om = (e) => {
|
|
2410
2410
|
var r;
|
|
@@ -2459,14 +2459,14 @@ var require_main_min = __commonJS({
|
|
|
2459
2459
|
};
|
|
2460
2460
|
var io = require("react");
|
|
2461
2461
|
var K = require("react/jsx-runtime");
|
|
2462
|
-
var
|
|
2462
|
+
var uu = 92;
|
|
2463
2463
|
var cm = 120;
|
|
2464
|
-
var
|
|
2465
|
-
var
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2464
|
+
var pu = 40;
|
|
2465
|
+
var fu = 32;
|
|
2466
|
+
var yu = 48;
|
|
2467
|
+
var hu = 40;
|
|
2468
2468
|
var dm = 800;
|
|
2469
|
-
var
|
|
2469
|
+
var gu = ({ overlay: e, outline: t, imageUrl: r, title: o, instructions: n, reviewInstructions: a }) => {
|
|
2470
2470
|
let s = (0, io.useRef)(null);
|
|
2471
2471
|
(0, io.useEffect)(() => {
|
|
2472
2472
|
let f = We(() => {
|
|
@@ -2478,48 +2478,48 @@ var require_main_min = __commonJS({
|
|
|
2478
2478
|
}, 100);
|
|
2479
2479
|
return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
2480
2480
|
});
|
|
2481
|
-
let l = (r ?
|
|
2481
|
+
let l = (r ? pu : 0) + (o ? fu : 0) + (n ? yu : 0), u = (0, K.jsxs)(K.Fragment, { children: [r && (0, K.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), o && (0, K.jsx)("h4", { className: "camera-capture-title", children: o }), n && (0, K.jsx)("small", { className: "camera-capture-instructions", children: n })] }), c = uu + l;
|
|
2482
2482
|
if (a) {
|
|
2483
2483
|
l = c - cm, u = (0, K.jsx)("small", { className: "camera-capture-instructions", children: a });
|
|
2484
|
-
let f = cm +
|
|
2484
|
+
let f = cm + hu;
|
|
2485
2485
|
c < f && (u = (0, K.jsx)(K.Fragment, {}));
|
|
2486
2486
|
}
|
|
2487
2487
|
let d = { x: "50%", y: "5%", width: `min(90%, ${dm}px)`, height: `calc(90% - ${c}px)`, style: { transform: `translateX(max(-45%, -${dm / 2}px))` } }, g = { style: { left: "5%", top: `calc(100% - ${c}px - 5%)`, height: `calc(${l}px + 5%)`, width: "90%" } };
|
|
2488
2488
|
return (0, K.jsxs)("svg", { ref: s, xmlns: "http://www.w3.org/2000/svg", children: [(0, K.jsx)("defs", { children: (0, K.jsxs)("mask", { id: "mask", children: [(0, K.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, K.jsx)("image", i({ href: e }, d))] }) }), e && (0, K.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, K.jsx)("image", i({ href: t }, d)), (0, K.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, K.jsx)("div", b(i({ className: "camera-capture-text-and-image-container" }, g), { children: u })) })] });
|
|
2489
2489
|
};
|
|
2490
|
-
var Pn =
|
|
2490
|
+
var Pn = gu;
|
|
2491
2491
|
var pm = require("@transferwise/components");
|
|
2492
2492
|
var fm = require("react-intl");
|
|
2493
2493
|
var um = require("react-intl");
|
|
2494
2494
|
var so = (0, um.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" } });
|
|
2495
2495
|
var ze = require("react/jsx-runtime");
|
|
2496
|
-
var
|
|
2496
|
+
var Su = ({ onAction: e }) => {
|
|
2497
2497
|
let t = (0, fm.useIntl)();
|
|
2498
2498
|
return (0, ze.jsx)("div", { id: "no-camera-access", children: (0, ze.jsx)("div", { className: "container p-t-5", children: (0, ze.jsx)("div", { className: "row", children: (0, ze.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, ze.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(so.title) }), (0, ze.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(so.paragraph) }), (0, ze.jsx)(pm.Button, { block: true, onClick: e, children: t.formatMessage(so.action) })] }) }) }) });
|
|
2499
2499
|
};
|
|
2500
|
-
var Mn =
|
|
2500
|
+
var Mn = Su;
|
|
2501
2501
|
var hm = require("react-intl");
|
|
2502
2502
|
var ym = require("react-intl");
|
|
2503
|
-
var
|
|
2503
|
+
var En = (0, ym.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" } });
|
|
2504
2504
|
var tt = require("react/jsx-runtime");
|
|
2505
|
-
var
|
|
2505
|
+
var bu = () => {
|
|
2506
2506
|
let e = (0, hm.useIntl)();
|
|
2507
|
-
return (0, tt.jsx)("div", { id: "camera-not-supported", children: (0, tt.jsx)("div", { className: "container p-t-5", children: (0, tt.jsx)("div", { className: "row", children: (0, tt.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, tt.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(
|
|
2507
|
+
return (0, tt.jsx)("div", { id: "camera-not-supported", children: (0, tt.jsx)("div", { className: "container p-t-5", children: (0, tt.jsx)("div", { className: "row", children: (0, tt.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, tt.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(En.title) }), (0, tt.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(En.paragraph) })] }) }) }) });
|
|
2508
2508
|
};
|
|
2509
|
-
var
|
|
2509
|
+
var kn = bu;
|
|
2510
2510
|
var gm = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
|
|
2511
|
-
var Sm = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await
|
|
2511
|
+
var Sm = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await wu(t, r));
|
|
2512
2512
|
var bm = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
|
|
2513
|
-
var
|
|
2513
|
+
var wu = async (e, t) => {
|
|
2514
2514
|
var a;
|
|
2515
2515
|
let r = no(t), o = On(t), n = (a = r == null ? void 0 : r.getSettings) == null ? void 0 : a.call(r);
|
|
2516
2516
|
return b(i({}, r && { "Available Video Devices (by label)": await sm(), "Active Video Device (by label)": await mm(t), "Camera Capabilities": o, "Camera Settings": n }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
2517
2517
|
};
|
|
2518
2518
|
var te = require("react/jsx-runtime");
|
|
2519
|
-
var
|
|
2519
|
+
var Fu = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: n = "", instructions: a = "", showReview: s = false, onCapture: l, onEvent: u }) => {
|
|
2520
2520
|
let [c, d] = (0, Ce.useState)("CAPTURE"), [g, f] = (0, Ce.useState)(false), [m, p] = (0, Ce.useState)(false), [y, S] = (0, Ce.useState)(), h = (0, Ce.useRef)(null), { videoConstraints: F } = lm(e), w = (0, wm.useIntl)(), v = (0, Ce.useCallback)(async () => {
|
|
2521
|
-
var A,
|
|
2522
|
-
if ((A = h == null ? void 0 : h.current) != null && A.video && ((
|
|
2521
|
+
var A, j, E, H, Ae, ae;
|
|
2522
|
+
if ((A = h == null ? void 0 : h.current) != null && A.video && ((E = (j = h == null ? void 0 : h.current) == null ? void 0 : j.video) == null ? void 0 : E.readyState) >= 3) {
|
|
2523
2523
|
(Ae = (H = h == null ? void 0 : h.current) == null ? void 0 : H.video) == null || Ae.pause();
|
|
2524
2524
|
let re = await am((ae = h == null ? void 0 : h.current) == null ? void 0 : ae.video);
|
|
2525
2525
|
re == null || re.toBlob((de) => {
|
|
@@ -2544,25 +2544,25 @@ var require_main_min = __commonJS({
|
|
|
2544
2544
|
}, T = () => {
|
|
2545
2545
|
d("CAPTURE"), S(void 0);
|
|
2546
2546
|
}, P = () => d("CAPTURE"), N = (0, te.jsxs)(te.Fragment, { children: [F && (0, te.jsx)(Fm.default, { ref: h, audio: false, videoConstraints: F, mirrored: g, onUserMediaError: O, onUserMedia: C }), (0, te.jsx)(Pn, { overlay: t, outline: r, imageUrl: o, title: n, instructions: a }), m && (0, te.jsx)(tm, { onCapture: () => void v() })] }), G = (0, te.jsxs)(te.Fragment, { children: [(0, te.jsx)("img", { className: "review-image", src: y == null ? void 0 : y.source, alt: "" }), (0, te.jsx)(Pn, { overlay: t, imageUrl: o, title: n, instructions: a, reviewInstructions: w.formatMessage(pr.reviewInstructions) }), (0, te.jsx)(rm, { onSubmit: D, onRetry: T })] });
|
|
2547
|
-
return (0, te.jsxs)("section", { className: "camera-capture", children: [c === "CAPTURE" && N, c === "REVIEW" && G, c === "NO_CAMERA_ACCESS" && (0, te.jsx)(Mn, { onAction: P }), c === "CAMERA_NOT_SUPPORTED" && (0, te.jsx)(
|
|
2547
|
+
return (0, te.jsxs)("section", { className: "camera-capture", children: [c === "CAPTURE" && N, c === "REVIEW" && G, c === "NO_CAMERA_ACCESS" && (0, te.jsx)(Mn, { onAction: P }), c === "CAMERA_NOT_SUPPORTED" && (0, te.jsx)(kn, {})] });
|
|
2548
2548
|
};
|
|
2549
|
-
var In =
|
|
2549
|
+
var In = Fu;
|
|
2550
2550
|
var xm = require("react/jsx-runtime");
|
|
2551
|
-
function
|
|
2551
|
+
function Cu(e) {
|
|
2552
2552
|
return new Promise((t, r) => {
|
|
2553
2553
|
let o = new FileReader();
|
|
2554
2554
|
o.onloadend = () => t(o.result), o.readAsDataURL(e);
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
2557
|
-
var
|
|
2558
|
-
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = Q(), s = Cm(t), l =
|
|
2557
|
+
var xu = (e) => {
|
|
2558
|
+
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = Q(), s = Cm(t), l = Au(t), u = vu(t), { title: c, image: d, cameraConfig: g } = l, { assets: f, direction: m, instructions: p } = g || {}, { overlay: y, outline: S } = f || {}, { url: h } = d || {}, [F, w] = (0, mo.useState)(false);
|
|
2559
2559
|
(0, mo.useEffect)(() => {
|
|
2560
2560
|
F && n(u);
|
|
2561
2561
|
}, [r]);
|
|
2562
2562
|
let v = async (O) => {
|
|
2563
2563
|
let { $id: C } = l;
|
|
2564
2564
|
if (O) {
|
|
2565
|
-
let D = await
|
|
2565
|
+
let D = await Cu(O), T = { [C || ""]: D };
|
|
2566
2566
|
w(true), o({ model: T, formSchema: s, triggerModel: D, triggerSchema: l });
|
|
2567
2567
|
}
|
|
2568
2568
|
};
|
|
@@ -2570,20 +2570,20 @@ var require_main_min = __commonJS({
|
|
|
2570
2570
|
v(O);
|
|
2571
2571
|
} });
|
|
2572
2572
|
};
|
|
2573
|
-
var lo =
|
|
2573
|
+
var lo = xu;
|
|
2574
2574
|
function Cm(e) {
|
|
2575
2575
|
let r = Lr(e.schemas || [])[0];
|
|
2576
2576
|
if (!r || !Pe(r))
|
|
2577
2577
|
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...");
|
|
2578
2578
|
return r;
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Au(e) {
|
|
2581
2581
|
let t = Cm(e), r = Object.values(t.properties)[0];
|
|
2582
2582
|
if (!r)
|
|
2583
2583
|
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...");
|
|
2584
2584
|
return r;
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function vu(e) {
|
|
2587
2587
|
var t, r;
|
|
2588
2588
|
if (!e.schemas || ((t = Lr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2589
2589
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
@@ -2597,14 +2597,14 @@ var require_main_min = __commonJS({
|
|
|
2597
2597
|
var Pm = require("react/jsx-runtime");
|
|
2598
2598
|
var vm = () => {
|
|
2599
2599
|
};
|
|
2600
|
-
var
|
|
2600
|
+
var Ou = ({ url: e, onClose: t }) => {
|
|
2601
2601
|
let { formatMessage: r } = (0, Om.useIntl)();
|
|
2602
|
-
return (0, Pm.jsx)(me, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(fr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(fr.description, { origin:
|
|
2602
|
+
return (0, Pm.jsx)(me, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(fr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(fr.description, { origin: Pu(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(fr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(fr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (o) => {
|
|
2603
2603
|
o.url && window.open(o.url, "_blank"), t();
|
|
2604
2604
|
}, onModelChange: vm, onPersistAsync: vm });
|
|
2605
2605
|
};
|
|
2606
|
-
var co =
|
|
2607
|
-
function
|
|
2606
|
+
var co = Ou;
|
|
2607
|
+
function Pu(e) {
|
|
2608
2608
|
try {
|
|
2609
2609
|
return new URL(e).origin;
|
|
2610
2610
|
} catch (t) {
|
|
@@ -2612,25 +2612,25 @@ var require_main_min = __commonJS({
|
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
2614
|
var Mm = require("@transferwise/components");
|
|
2615
|
-
var
|
|
2615
|
+
var Em = require("@transferwise/icons");
|
|
2616
2616
|
var qt = require("react/jsx-runtime");
|
|
2617
|
-
var
|
|
2617
|
+
var Mu = ({ title: e, action: t, onAction: r }) => (0, qt.jsxs)("a", { onClick: (o) => {
|
|
2618
2618
|
o.preventDefault(), r(b(i({}, t), { skipValidation: true }));
|
|
2619
|
-
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, qt.jsx)("span", { className: "sr-only", children: e }), (0, qt.jsx)(Mm.Avatar, { type: "icon", children: (0, qt.jsx)(
|
|
2620
|
-
var
|
|
2619
|
+
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, qt.jsx)("span", { className: "sr-only", children: e }), (0, qt.jsx)(Mm.Avatar, { type: "icon", children: (0, qt.jsx)(Em.ArrowLeft, { size: "24" }) })] });
|
|
2620
|
+
var km = Mu;
|
|
2621
2621
|
var De = require("react/jsx-runtime");
|
|
2622
2622
|
var qr = (e) => {
|
|
2623
2623
|
var u, c;
|
|
2624
2624
|
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.backButton, { requiresManualTrigger: s, dismissConfirmation: l } = Da(n);
|
|
2625
|
-
return t === void 0 ? null : n && s ? (0, De.jsx)(co, { url: n, onClose: l }) : Ma(t) ? (0, De.jsx)(lo, b(i({}, e), { step: t })) : (0, De.jsxs)(De.Fragment, { children: [a && (0, De.jsx)(
|
|
2625
|
+
return t === void 0 ? null : n && s ? (0, De.jsx)(co, { url: n, onClose: l }) : Ma(t) ? (0, De.jsx)(lo, b(i({}, e), { step: t })) : (0, De.jsxs)(De.Fragment, { children: [a && (0, De.jsx)(km, b(i({}, a), { onAction: o })), r ? (0, De.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, De.jsx)(oo, b(i({}, e), { stepSpecification: t }))] });
|
|
2626
2626
|
};
|
|
2627
2627
|
var Im = require("react");
|
|
2628
|
-
var
|
|
2628
|
+
var Eu = 1e3;
|
|
2629
2629
|
function Dm(e) {
|
|
2630
2630
|
let t = (0, Im.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
|
|
2631
2631
|
if (t.current.has(o))
|
|
2632
2632
|
return t.current.get(o);
|
|
2633
|
-
let n = We((a, s, l) => e(a, s, l),
|
|
2633
|
+
let n = We((a, s, l) => e(a, s, l), Eu);
|
|
2634
2634
|
return t.current.set(o, n), n;
|
|
2635
2635
|
};
|
|
2636
2636
|
return function(o, n, a, s) {
|
|
@@ -2650,7 +2650,7 @@ var require_main_min = __commonJS({
|
|
|
2650
2650
|
let w = b(i({}, F.models), { [y]: S }), v = { step: F.step, models: w, etag: F.etag };
|
|
2651
2651
|
return h(w), v;
|
|
2652
2652
|
});
|
|
2653
|
-
}, f = (0, Gt.useMemo)(() =>
|
|
2653
|
+
}, f = (0, Gt.useMemo)(() => Du(u, Iu(l)), [u, l]);
|
|
2654
2654
|
return { formErrors: t, globalError: o, step: l, models: u, etag: c, modelIsValid: f, setFormErrors: r, setGlobalError: n, setStepAndEtag: d, setSchemaModel: g };
|
|
2655
2655
|
};
|
|
2656
2656
|
var Lm = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), b(i({}, r), { [o.$id || ""]: ie(e, o) || {} })), {});
|
|
@@ -2667,7 +2667,7 @@ var require_main_min = __commonJS({
|
|
|
2667
2667
|
return [];
|
|
2668
2668
|
}
|
|
2669
2669
|
});
|
|
2670
|
-
var
|
|
2670
|
+
var Iu = (e) => [...Dn((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...uo((e == null ? void 0 : e.layout) || [])];
|
|
2671
2671
|
var Dn = (e) => e.flatMap((t) => {
|
|
2672
2672
|
switch (t.type) {
|
|
2673
2673
|
case "columns":
|
|
@@ -2675,19 +2675,19 @@ var require_main_min = __commonJS({
|
|
|
2675
2675
|
case "box":
|
|
2676
2676
|
return Dn(t.components);
|
|
2677
2677
|
case "form":
|
|
2678
|
-
return [
|
|
2678
|
+
return [Lu(t)];
|
|
2679
2679
|
default:
|
|
2680
2680
|
return [];
|
|
2681
2681
|
}
|
|
2682
2682
|
}).filter(Boolean);
|
|
2683
|
-
var
|
|
2684
|
-
var
|
|
2683
|
+
var Du = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !_(e[r.$id || ""] || {}, r))));
|
|
2684
|
+
var Lu = (e) => e.schema && !Rm(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2685
2685
|
var Rm = (e) => e !== void 0 && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "$ref") === false;
|
|
2686
2686
|
var po = require("@transferwise/components");
|
|
2687
2687
|
var Bm = require("react");
|
|
2688
|
-
var
|
|
2689
|
-
function
|
|
2690
|
-
let r = i({ size: po.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, n] = (0, Bm.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0,
|
|
2688
|
+
var Vm = require("react/jsx-runtime");
|
|
2689
|
+
function jm(e, t) {
|
|
2690
|
+
let r = i({ size: po.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, n] = (0, Bm.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0, Vm.jsx)(po.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
|
|
2691
2691
|
return { isLoading: o !== "idle", setLoadingState: n, loader: s };
|
|
2692
2692
|
}
|
|
2693
2693
|
var qm = require("react");
|
|
@@ -2699,7 +2699,7 @@ var require_main_min = __commonJS({
|
|
|
2699
2699
|
return (0, Hm.jsx)(fo.Alert, { action: { text: t(zt.retry), href: window.location.href }, message: t(zt.errorAlert), type: fo.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2700
2700
|
};
|
|
2701
2701
|
var $t = require("react/jsx-runtime");
|
|
2702
|
-
var
|
|
2702
|
+
var Tu = () => {
|
|
2703
2703
|
};
|
|
2704
2704
|
var Ln = class extends qm.Component {
|
|
2705
2705
|
constructor(r) {
|
|
@@ -2713,7 +2713,7 @@ var require_main_min = __commonJS({
|
|
|
2713
2713
|
return { hasError: true, isFatalError: true };
|
|
2714
2714
|
}
|
|
2715
2715
|
componentDidCatch(r) {
|
|
2716
|
-
let { onError: o =
|
|
2716
|
+
let { onError: o = Tu } = this.props;
|
|
2717
2717
|
o(r);
|
|
2718
2718
|
}
|
|
2719
2719
|
render() {
|
|
@@ -2722,7 +2722,7 @@ var require_main_min = __commonJS({
|
|
|
2722
2722
|
}
|
|
2723
2723
|
};
|
|
2724
2724
|
var Tn = Ln;
|
|
2725
|
-
var
|
|
2725
|
+
var Nu = async (e) => {
|
|
2726
2726
|
switch (e.headers.get("X-Df-ResponseType")) {
|
|
2727
2727
|
case "step":
|
|
2728
2728
|
return Gm(e);
|
|
@@ -2754,7 +2754,7 @@ var require_main_min = __commonJS({
|
|
|
2754
2754
|
var Wm = async (e) => {
|
|
2755
2755
|
var r, o;
|
|
2756
2756
|
if (Rn(e), (r = e.headers) != null && r.has("X-Df-ResponseType"))
|
|
2757
|
-
return
|
|
2757
|
+
return Nu(e);
|
|
2758
2758
|
if ((o = e.headers) != null && o.has("X-Df-Exit"))
|
|
2759
2759
|
return _m(e);
|
|
2760
2760
|
let t = await yr(e.clone());
|
|
@@ -2782,49 +2782,49 @@ var require_main_min = __commonJS({
|
|
|
2782
2782
|
}
|
|
2783
2783
|
};
|
|
2784
2784
|
var Rn = (e) => {
|
|
2785
|
-
if (!
|
|
2785
|
+
if (!Ru(e))
|
|
2786
2786
|
throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
|
|
2787
2787
|
if (e.bodyUsed)
|
|
2788
2788
|
throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
|
|
2789
2789
|
};
|
|
2790
|
-
var
|
|
2790
|
+
var Ru = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2791
2791
|
var rt = require("react/jsx-runtime");
|
|
2792
2792
|
var Jm = () => {
|
|
2793
2793
|
};
|
|
2794
|
-
var
|
|
2795
|
-
let { locale: d } = (0, Xm.useIntl)(), { formErrors: g, globalError: f, step: m, models: p, etag: y, modelIsValid: S, setFormErrors: h, setGlobalError: F, setStepAndEtag: w, setSchemaModel: v } = Nm(o), [O, C] = (0, xe.useState)(false), { isLoading: D, loader: T, setLoadingState: P } =
|
|
2794
|
+
var Bu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: n, displayStepTitle: a = true, onCompletion: s, onError: l, onEvent: u = Jm, onLog: c = Jm }) => {
|
|
2795
|
+
let { locale: d } = (0, Xm.useIntl)(), { formErrors: g, globalError: f, step: m, models: p, etag: y, modelIsValid: S, setFormErrors: h, setGlobalError: F, setStepAndEtag: w, setSchemaModel: v } = Nm(o), [O, C] = (0, xe.useState)(false), { isLoading: D, loader: T, setLoadingState: P } = jm(n, o ? "idle" : "initial"), N = nt("critical", c, e, (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key)), G = (0, xe.useMemo)(() => {
|
|
2796
2796
|
var x;
|
|
2797
2797
|
return i({ flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key) }, (x = m == null ? void 0 : m.analytics) != null ? x : {});
|
|
2798
|
-
}, [e, m]), A = (0, xe.useMemo)(() => wo(u, G), [u, G]),
|
|
2798
|
+
}, [e, m]), A = (0, xe.useMemo)(() => wo(u, G), [u, G]), j = (0, xe.useCallback)(({ action: x, data: V, etag: I }) => {
|
|
2799
2799
|
let { url: Z, method: He = "POST" } = x;
|
|
2800
|
-
return t(Z != null ? Z : "", { method: He, headers: i({ "accept-language": d, "Content-Type": "application/json" }, I ? { "If-None-Match": I } : {}), credentials: "include", body: He === "GET" ? void 0 : JSON.stringify(
|
|
2801
|
-
}, [t, d]),
|
|
2800
|
+
return t(Z != null ? Z : "", { method: He, headers: i({ "accept-language": d, "Content-Type": "application/json" }, I ? { "If-None-Match": I } : {}), credentials: "include", body: He === "GET" ? void 0 : JSON.stringify(V) });
|
|
2801
|
+
}, [t, d]), E = async (x, V = {}) => {
|
|
2802
2802
|
P(m ? "submission" : "initial"), A("Dynamic Flow - Step Submitted", { actionId: x.id || x.$id });
|
|
2803
2803
|
try {
|
|
2804
|
-
let I = await
|
|
2804
|
+
let I = await j({ action: x, data: V });
|
|
2805
2805
|
await hr(I, "submission");
|
|
2806
2806
|
} catch (I) {
|
|
2807
2807
|
gr(I, "Error fetching next step");
|
|
2808
2808
|
}
|
|
2809
|
-
}, H = async (x,
|
|
2809
|
+
}, H = async (x, V, I) => {
|
|
2810
2810
|
P("refresh"), A("Dynamic Flow - Step Refreshed", { status: "pending" });
|
|
2811
2811
|
try {
|
|
2812
|
-
let Z = await
|
|
2812
|
+
let Z = await j({ action: { url: x, method: "POST" }, data: V, etag: I });
|
|
2813
2813
|
await hr(Z, "refresh");
|
|
2814
2814
|
} catch (Z) {
|
|
2815
2815
|
gr(Z, "Error fetching refresh step");
|
|
2816
2816
|
}
|
|
2817
|
-
}, Ae = async (x,
|
|
2817
|
+
}, Ae = async (x, V) => {
|
|
2818
2818
|
P("submission");
|
|
2819
2819
|
try {
|
|
2820
|
-
let I = await
|
|
2820
|
+
let I = await j({ action: x, data: V });
|
|
2821
2821
|
await ae(I, x.result);
|
|
2822
2822
|
} catch (I) {
|
|
2823
2823
|
gr(I, "Error fetching exit result");
|
|
2824
2824
|
}
|
|
2825
|
-
}, ae = async (x,
|
|
2825
|
+
}, ae = async (x, V) => {
|
|
2826
2826
|
let I = await Nn(x);
|
|
2827
|
-
de(i(i({}, I),
|
|
2827
|
+
de(i(i({}, I), V));
|
|
2828
2828
|
}, re = Dm(H), de = (0, xe.useCallback)((x) => {
|
|
2829
2829
|
A("Dynamic Flow - Flow Finished", { result: "success" }), s(x);
|
|
2830
2830
|
}, [s, A]);
|
|
@@ -2833,10 +2833,10 @@ var require_main_min = __commonJS({
|
|
|
2833
2833
|
}, []), (0, xe.useEffect)(() => {
|
|
2834
2834
|
if (!o) {
|
|
2835
2835
|
let x = i({ id: "#initial-step-request", method: "GET" }, r);
|
|
2836
|
-
|
|
2836
|
+
E(x, x.data);
|
|
2837
2837
|
}
|
|
2838
2838
|
}, [t, d, JSON.stringify(o), JSON.stringify(r)]);
|
|
2839
|
-
let hr = async (x,
|
|
2839
|
+
let hr = async (x, V) => {
|
|
2840
2840
|
try {
|
|
2841
2841
|
if (x.status === 304) {
|
|
2842
2842
|
P("idle");
|
|
@@ -2844,70 +2844,71 @@ var require_main_min = __commonJS({
|
|
|
2844
2844
|
}
|
|
2845
2845
|
if (!x.ok) {
|
|
2846
2846
|
let Z = await Km(x);
|
|
2847
|
-
|
|
2847
|
+
fl(Z);
|
|
2848
2848
|
return;
|
|
2849
2849
|
}
|
|
2850
2850
|
let I = await Wm(x);
|
|
2851
|
-
I.type === "action" ?
|
|
2851
|
+
I.type === "action" ? E(I.action, I.action.data) : I.type === "exit" ? de(I.result) : pl(I.step, I.etag, V);
|
|
2852
2852
|
} catch (I) {
|
|
2853
|
-
return gr(I, "Error parsing fetch response",
|
|
2853
|
+
return gr(I, "Error parsing fetch response", V, x.status);
|
|
2854
2854
|
}
|
|
2855
|
-
},
|
|
2856
|
-
w(x,
|
|
2857
|
-
},
|
|
2858
|
-
let
|
|
2859
|
-
|
|
2860
|
-
}, gr = (x,
|
|
2861
|
-
N("Error fetching",
|
|
2862
|
-
},
|
|
2863
|
-
let { model:
|
|
2864
|
-
F(null), $(
|
|
2865
|
-
|
|
2855
|
+
}, pl = (x, V, I) => {
|
|
2856
|
+
w(x, V), P("idle"), I === "submission" ? (C(false), A("Dynamic Flow - Step Started", i({ stepId: x.id || x.key }, x == null ? void 0 : x.analytics))) : A("Dynamic Flow - Step Refreshed", { status: "success" });
|
|
2857
|
+
}, fl = async (x) => {
|
|
2858
|
+
let V = x.refreshUrl || x.refreshFormUrl;
|
|
2859
|
+
V && await H(V, yo(p), y), x.validation && h(x.validation), x.error && F(x.error), P("idle");
|
|
2860
|
+
}, gr = (x, V, I, Z) => {
|
|
2861
|
+
N("Error fetching", V), I === "refresh" && A("Dynamic Flow - Step Refreshed", { status: "failure" }), A("Dynamic Flow - Flow Finished", { status: "failure" }), l(x, Z), P("idle");
|
|
2862
|
+
}, yl = (x) => {
|
|
2863
|
+
let { model: V, formSchema: I } = x, { $id: Z = "" } = I;
|
|
2864
|
+
F(null), $(V) || N("Invalid model on change", "onModelChange was called but the model argument is not an object"), v(Z, V, (bt) => {
|
|
2865
|
+
hl(x, bt);
|
|
2866
2866
|
});
|
|
2867
|
-
},
|
|
2867
|
+
}, hl = (x, V) => {
|
|
2868
2868
|
let { triggerSchema: I } = x;
|
|
2869
|
-
if (
|
|
2869
|
+
if (Uu(x)) {
|
|
2870
2870
|
let Z = I.refreshUrl || I.refreshFormUrl, He = (m == null ? void 0 : m.refreshUrl) || (m == null ? void 0 : m.refreshFormUrl), bt = Z || He;
|
|
2871
|
-
bt && re(bt, yo(
|
|
2871
|
+
bt && re(bt, yo(V), y, I);
|
|
2872
2872
|
}
|
|
2873
|
-
},
|
|
2873
|
+
}, gl = async (x) => {
|
|
2874
2874
|
if (D || x.disabled)
|
|
2875
2875
|
return;
|
|
2876
2876
|
if (x.exit && !x.url) {
|
|
2877
2877
|
de(x.result);
|
|
2878
2878
|
return;
|
|
2879
2879
|
}
|
|
2880
|
-
let
|
|
2881
|
-
Vu(Z) ? (h(null), He || C(true), (S || He) && await
|
|
2880
|
+
let V = x.exit ? Ae : E, { data: I, method: Z, skipValidation: He } = x, bt = i(i({}, yo(p)), I);
|
|
2881
|
+
Vu(Z) ? (h(null), He || C(true), (S || He) && await V(x, bt)) : await V(x);
|
|
2882
2882
|
};
|
|
2883
|
-
return (0, rt.jsx)(
|
|
2884
|
-
|
|
2885
|
-
}, onModelChange:
|
|
2883
|
+
return (0, rt.jsx)(Er, { flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key), onLog: c, children: (0, rt.jsx)(Cr, { metadata: G, onEvent: u, children: (0, rt.jsx)(Jn, { loading: D, children: (0, rt.jsx)(ea, { httpClient: t, children: T !== null ? T : (0, rt.jsx)(qr, { step: m, model: yo(p), submitted: O, globalError: f, formErrors: g, stepLayoutOptions: { displayStepTitle: a }, onAction: (x) => {
|
|
2884
|
+
gl(x);
|
|
2885
|
+
}, onModelChange: yl }) }) }) }) });
|
|
2886
2886
|
};
|
|
2887
|
-
var
|
|
2888
|
-
var Bn =
|
|
2887
|
+
var ju = (e) => (0, rt.jsx)(Tn, { onError: e.onError, children: (0, rt.jsx)(Bu, i({}, e)) });
|
|
2888
|
+
var Bn = ju;
|
|
2889
2889
|
var yo = (e) => Object.values(e).reduce((t, r) => i(i({}, t), r), {});
|
|
2890
2890
|
var Vu = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
2891
|
-
var
|
|
2891
|
+
var Uu = (e) => {
|
|
2892
2892
|
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: n = null } = e, a = () => _(o, r), s = () => _(n, r), l = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
2893
2893
|
return t !== "init" && l && (a() || s());
|
|
2894
2894
|
};
|
|
2895
|
-
var Ym = { "dynamicFlows.ArraySchema.addItem": "Speichern", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2895
|
+
var Ym = { "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" };
|
|
2896
2896
|
var Zm = { "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.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" };
|
|
2897
2897
|
var Qm = { "dynamicFlows.ArraySchema.addItem": "Guardar", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "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" };
|
|
2898
|
-
var el = { "dynamicFlows.ArraySchema.addItem": "Enregistrer", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2898
|
+
var el = { "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" };
|
|
2899
2899
|
var tl = { "dynamicFlows.ArraySchema.addItem": "Ment\xE9s", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "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" };
|
|
2900
|
-
var rl = { "dynamicFlows.ArraySchema.addItem": "Simpan", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2901
|
-
var ol = { "dynamicFlows.ArraySchema.addItem": "Salva", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2902
|
-
var nl = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58\u3059\u308B", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2903
|
-
var al = { "dynamicFlows.ArraySchema.addItem": "Zapisz", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2900
|
+
var rl = { "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" };
|
|
2901
|
+
var ol = { "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" };
|
|
2902
|
+
var nl = { "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" };
|
|
2903
|
+
var al = { "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" };
|
|
2904
2904
|
var il = { "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" };
|
|
2905
|
-
var sl = { "dynamicFlows.ArraySchema.addItem": "Salvare", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2906
|
-
var ml = { "dynamicFlows.ArraySchema.addItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.addItemTitle": "
|
|
2905
|
+
var sl = { "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" };
|
|
2906
|
+
var ml = { "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" };
|
|
2907
2907
|
var ll = { "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" };
|
|
2908
|
-
var cl = { "dynamicFlows.ArraySchema.addItem": "\
|
|
2909
|
-
var
|
|
2910
|
-
var
|
|
2908
|
+
var cl = { "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" };
|
|
2909
|
+
var dl = { "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" };
|
|
2910
|
+
var rp = { en: Zm, de: Ym, es: Qm, fr: el, hu: tl, id: rl, it: ol, ja: nl, pl: al, pt: il, ro: sl, ru: ml, tr: ll, "zh-CN": cl, "zh-HK": dl };
|
|
2911
|
+
var ul = rp;
|
|
2911
2912
|
}
|
|
2912
2913
|
});
|
|
2913
2914
|
|