@wise/dynamic-flow-client-internal 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +996 -995
- package/build/main.min.js +1 -1
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -51,62 +51,62 @@ 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 bl = Object.create;
|
|
55
55
|
var _t = Object.defineProperty;
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
56
|
+
var wl = Object.defineProperties;
|
|
57
|
+
var Fl = Object.getOwnPropertyDescriptor;
|
|
58
|
+
var Cl = Object.getOwnPropertyDescriptors;
|
|
59
|
+
var xl = Object.getOwnPropertyNames;
|
|
60
|
+
var ja = Object.getOwnPropertySymbols;
|
|
61
|
+
var Al = Object.getPrototypeOf;
|
|
62
|
+
var Ua = Object.prototype.hasOwnProperty;
|
|
63
|
+
var vl = Object.prototype.propertyIsEnumerable;
|
|
64
|
+
var Va = (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
|
-
|
|
68
|
-
if (
|
|
69
|
-
for (var r of
|
|
70
|
-
|
|
67
|
+
Ua.call(t, r) && Va(e, r, t[r]);
|
|
68
|
+
if (ja)
|
|
69
|
+
for (var r of ja(t))
|
|
70
|
+
vl.call(t, r) && Va(e, r, t[r]);
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
|
-
var b = (e, t) =>
|
|
74
|
-
var
|
|
75
|
-
var
|
|
73
|
+
var b = (e, t) => wl(e, Cl(t));
|
|
74
|
+
var za = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
75
|
+
var Ol = (e, t) => {
|
|
76
76
|
for (var r in t)
|
|
77
77
|
_t(e, r, { get: t[r], enumerable: true });
|
|
78
78
|
};
|
|
79
|
-
var
|
|
79
|
+
var Ha = (e, t, r, o) => {
|
|
80
80
|
if (t && typeof t == "object" || typeof t == "function")
|
|
81
|
-
for (let
|
|
82
|
-
!
|
|
81
|
+
for (let a of xl(t))
|
|
82
|
+
!Ua.call(e, a) && a !== r && _t(e, a, { get: () => t[a], enumerable: !(o = Fl(t, a)) || o.enumerable });
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
var qe = (e, t, r) => (r = e != null ?
|
|
86
|
-
var
|
|
87
|
-
var st =
|
|
85
|
+
var qe = (e, t, r) => (r = e != null ? bl(Al(e)) : {}, Ha(t || !e || !e.__esModule ? _t(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
|
+
var Pl = (e) => Ha(_t({}, "__esModule", { value: true }), e);
|
|
87
|
+
var st = za((Nf, Rr) => {
|
|
88
88
|
(function() {
|
|
89
89
|
"use strict";
|
|
90
90
|
var e = {}.hasOwnProperty, t = "[native code]";
|
|
91
91
|
function r() {
|
|
92
|
-
for (var o = [],
|
|
93
|
-
var
|
|
94
|
-
if (
|
|
95
|
-
var s = typeof
|
|
92
|
+
for (var o = [], a = 0; a < arguments.length; a++) {
|
|
93
|
+
var n = arguments[a];
|
|
94
|
+
if (n) {
|
|
95
|
+
var s = typeof n;
|
|
96
96
|
if (s === "string" || s === "number")
|
|
97
|
-
o.push(
|
|
98
|
-
else if (Array.isArray(
|
|
99
|
-
if (
|
|
100
|
-
var l = r.apply(null,
|
|
97
|
+
o.push(n);
|
|
98
|
+
else if (Array.isArray(n)) {
|
|
99
|
+
if (n.length) {
|
|
100
|
+
var l = r.apply(null, n);
|
|
101
101
|
l && o.push(l);
|
|
102
102
|
}
|
|
103
103
|
} else if (s === "object") {
|
|
104
|
-
if (
|
|
105
|
-
o.push(
|
|
104
|
+
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
|
|
105
|
+
o.push(n.toString());
|
|
106
106
|
continue;
|
|
107
107
|
}
|
|
108
|
-
for (var u in
|
|
109
|
-
e.call(
|
|
108
|
+
for (var u in n)
|
|
109
|
+
e.call(n, u) && n[u] && o.push(u);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -117,46 +117,46 @@ var require_main_min = __commonJS({
|
|
|
117
117
|
}) : window.classNames = r;
|
|
118
118
|
})();
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Qs = za((ur, Aa) => {
|
|
121
121
|
(function(t, r) {
|
|
122
|
-
typeof ur == "object" && typeof
|
|
122
|
+
typeof ur == "object" && typeof Aa == "object" ? Aa.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof ur == "object" ? ur.Webcam = r(require("react")) : t.Webcam = r(t.React);
|
|
123
123
|
})(ur, function(e) {
|
|
124
124
|
return function(t) {
|
|
125
125
|
var r = {};
|
|
126
|
-
function o(
|
|
127
|
-
if (r[
|
|
128
|
-
return r[
|
|
129
|
-
var
|
|
130
|
-
return t[
|
|
126
|
+
function o(a) {
|
|
127
|
+
if (r[a])
|
|
128
|
+
return r[a].exports;
|
|
129
|
+
var n = r[a] = { i: a, l: false, exports: {} };
|
|
130
|
+
return t[a].call(n.exports, n, n.exports, o), n.l = true, n.exports;
|
|
131
131
|
}
|
|
132
|
-
return o.m = t, o.c = r, o.d = function(
|
|
133
|
-
o.o(
|
|
134
|
-
}, o.r = function(
|
|
135
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
136
|
-
}, o.t = function(
|
|
137
|
-
if (
|
|
138
|
-
return
|
|
132
|
+
return o.m = t, o.c = r, o.d = function(a, n, s) {
|
|
133
|
+
o.o(a, n) || Object.defineProperty(a, n, { enumerable: true, get: s });
|
|
134
|
+
}, o.r = function(a) {
|
|
135
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(a, "__esModule", { value: true });
|
|
136
|
+
}, o.t = function(a, n) {
|
|
137
|
+
if (n & 1 && (a = o(a)), n & 8 || n & 4 && typeof a == "object" && a && a.__esModule)
|
|
138
|
+
return a;
|
|
139
139
|
var s = /* @__PURE__ */ Object.create(null);
|
|
140
|
-
if (o.r(s), Object.defineProperty(s, "default", { enumerable: true, value:
|
|
141
|
-
for (var l in
|
|
140
|
+
if (o.r(s), Object.defineProperty(s, "default", { enumerable: true, value: a }), n & 2 && typeof a != "string")
|
|
141
|
+
for (var l in a)
|
|
142
142
|
o.d(s, l, function(u) {
|
|
143
|
-
return
|
|
143
|
+
return a[u];
|
|
144
144
|
}.bind(null, l));
|
|
145
145
|
return s;
|
|
146
|
-
}, o.n = function(
|
|
147
|
-
var
|
|
148
|
-
return
|
|
146
|
+
}, o.n = function(a) {
|
|
147
|
+
var n = a && a.__esModule ? function() {
|
|
148
|
+
return a.default;
|
|
149
149
|
} : function() {
|
|
150
|
-
return
|
|
150
|
+
return a;
|
|
151
151
|
};
|
|
152
|
-
return o.d(
|
|
153
|
-
}, o.o = function(
|
|
154
|
-
return Object.prototype.hasOwnProperty.call(
|
|
152
|
+
return o.d(n, "a", n), n;
|
|
153
|
+
}, o.o = function(a, n) {
|
|
154
|
+
return Object.prototype.hasOwnProperty.call(a, n);
|
|
155
155
|
}, o.p = "", o(o.s = "./src/react-webcam.tsx");
|
|
156
156
|
}({ "./src/react-webcam.tsx": function(t, r, o) {
|
|
157
157
|
"use strict";
|
|
158
158
|
o.r(r);
|
|
159
|
-
var
|
|
159
|
+
var a = o("react"), n = o.n(a), s = function() {
|
|
160
160
|
var g = function(f, m) {
|
|
161
161
|
return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, y) {
|
|
162
162
|
p.__proto__ = y;
|
|
@@ -298,64 +298,64 @@ 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, 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"]),
|
|
302
|
-
return
|
|
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"]), ne = A ? l(l({}, E), { transform: (E.transform || "") + " scaleX(-1)" }) : E, re = { getScreenshot: this.getScreenshot.bind(this) };
|
|
302
|
+
return a.createElement(a.Fragment, null, a.createElement("video", l({ autoPlay: true, src: y.src, muted: !h, playsInline: true, ref: function(de) {
|
|
303
303
|
m.video = de;
|
|
304
|
-
}, style:
|
|
304
|
+
}, style: ne }, Ae)), H && H(re));
|
|
305
305
|
}, f.defaultProps = { audio: false, forceScreenshotSourceSize: false, imageSmoothing: true, mirrored: false, onUserMedia: function() {
|
|
306
306
|
}, onUserMediaError: function() {
|
|
307
307
|
}, screenshotFormat: "image/webp", screenshotQuality: 0.92 }, f;
|
|
308
|
-
}(
|
|
308
|
+
}(a.Component);
|
|
309
309
|
r.default = d;
|
|
310
310
|
}, react: function(t, r) {
|
|
311
311
|
t.exports = e;
|
|
312
312
|
} }).default;
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
module2.exports =
|
|
315
|
+
var np = {};
|
|
316
|
+
Ol(np, { DynamicFlow: () => Ra, JsonSchemaForm: () => sr, Layout: () => me, convertStepToLayout: () => Wt, inlineReferences: () => Ge, isValidSchema: () => _, makeHttpClient: () => vr, translations: () => pl });
|
|
317
|
+
module2.exports = Pl(np);
|
|
318
318
|
function Wt(e, { displayStepTitle: t = true } = {}) {
|
|
319
319
|
if (e.layout)
|
|
320
|
-
return
|
|
320
|
+
return zl(e, t);
|
|
321
321
|
switch (e.type) {
|
|
322
322
|
case "final":
|
|
323
|
-
return kl(e);
|
|
324
|
-
case "decision":
|
|
325
323
|
return Il(e);
|
|
324
|
+
case "decision":
|
|
325
|
+
return Dl(e);
|
|
326
326
|
case "external":
|
|
327
|
-
return
|
|
327
|
+
return Ml(e);
|
|
328
328
|
default:
|
|
329
|
-
return
|
|
329
|
+
return kl(e);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function ho(e) {
|
|
333
333
|
let t = [];
|
|
334
334
|
if (e.title && t.push(So(e.title)), e.image) {
|
|
335
|
-
let r =
|
|
335
|
+
let r = qa(e.image);
|
|
336
336
|
t.push(r);
|
|
337
337
|
}
|
|
338
338
|
return e.description && t.push(bo(e.description)), t;
|
|
339
339
|
}
|
|
340
|
-
function Pl(e) {
|
|
341
|
-
return [...ho(e), Ml(e)];
|
|
342
|
-
}
|
|
343
340
|
function Ml(e) {
|
|
344
|
-
return
|
|
341
|
+
return [...ho(e), El(e)];
|
|
345
342
|
}
|
|
346
343
|
function El(e) {
|
|
344
|
+
return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
|
|
345
|
+
}
|
|
346
|
+
function kl(e) {
|
|
347
347
|
let t = ho(e);
|
|
348
|
-
if (e.reviewFields && t.push(
|
|
348
|
+
if (e.reviewFields && t.push(Bl(e.reviewFields)), e.schemas && t.push(...Vl(e)), e.actions) {
|
|
349
349
|
let r = e.actions.map(Sr);
|
|
350
350
|
t.push(go(r, "md"));
|
|
351
351
|
}
|
|
352
352
|
return t;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Il(e) {
|
|
355
355
|
let t = [];
|
|
356
356
|
if (e.details) {
|
|
357
357
|
if (e.details.image) {
|
|
358
|
-
let r =
|
|
358
|
+
let r = Rl(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 Dl(e) {
|
|
370
370
|
let t = ho(e);
|
|
371
|
-
return e.options && t.push(
|
|
371
|
+
return e.options && t.push(Tl(e.options)), t;
|
|
372
372
|
}
|
|
373
373
|
function go(e, t) {
|
|
374
374
|
return { type: "box", width: t || "md", components: e };
|
|
@@ -379,82 +379,82 @@ var require_main_min = __commonJS({
|
|
|
379
379
|
function bo(e) {
|
|
380
380
|
return { type: "paragraph", text: e, align: "center" };
|
|
381
381
|
}
|
|
382
|
-
function Dl(e) {
|
|
383
|
-
return { type: "form", schema: e };
|
|
384
|
-
}
|
|
385
382
|
function Ll(e) {
|
|
386
|
-
return { type: "
|
|
383
|
+
return { type: "form", schema: e };
|
|
387
384
|
}
|
|
388
385
|
function Tl(e) {
|
|
386
|
+
return { type: "decision", options: e.map(Nl) };
|
|
387
|
+
}
|
|
388
|
+
function Nl(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
|
-
function
|
|
391
|
+
function qa(e) {
|
|
392
392
|
return { type: "image", url: e.url, text: e.text, margin: e.margin || "lg", size: e.size || "md" };
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } :
|
|
394
|
+
function Rl(e) {
|
|
395
|
+
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : qa(e);
|
|
396
396
|
}
|
|
397
397
|
function Sr(e) {
|
|
398
398
|
return { type: "button", action: b(i({}, e), { title: e.title }) };
|
|
399
399
|
}
|
|
400
|
-
function Rl(e) {
|
|
401
|
-
return { type: "review", title: e.title, fields: e.fields.map(Bl) };
|
|
402
|
-
}
|
|
403
400
|
function Bl(e) {
|
|
404
|
-
return {
|
|
401
|
+
return { type: "review", title: e.title, fields: e.fields.map(jl) };
|
|
405
402
|
}
|
|
406
403
|
function jl(e) {
|
|
404
|
+
return { label: e.title, value: e.value };
|
|
405
|
+
}
|
|
406
|
+
function Vl(e) {
|
|
407
407
|
let t = [];
|
|
408
408
|
if (e.schemas && e.schemas[0]) {
|
|
409
|
-
let r = e.schemas[0], o =
|
|
410
|
-
|
|
409
|
+
let r = e.schemas[0], o = Ll(r);
|
|
410
|
+
Ul() ? t.push(o) : t.push(go([o], "md"));
|
|
411
411
|
}
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ul() {
|
|
415
415
|
return false;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function zl(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((
|
|
421
|
+
return e ? t ? e.map((a) => a.type === "form" ? Hl({ formComponent: a, schemas: t }) : a.type === "decision" ? ql({ decisionComponent: a, actions: r }) : a.type === "button" ? Gl({ actionComponent: a, actions: r }) : a.type === "box" ? $l({ boxComponent: a, schemas: t, actions: r, model: o }) : a.type === "columns" ? _l({ columnsComponent: a, schemas: t, actions: r, model: o }) : a) : e : [];
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Hl({ formComponent: e, schemas: t }) {
|
|
424
424
|
if (e.schemaId)
|
|
425
|
-
return { type: "form", margin: e.margin, schema:
|
|
425
|
+
return { type: "form", margin: e.margin, schema: Ga(t, e.schemaId) };
|
|
426
426
|
if (e.schema && br(e.schema) && e.schema.$ref)
|
|
427
|
-
return { type: "form", margin: e.margin, schema:
|
|
427
|
+
return { type: "form", margin: e.margin, schema: Ga(t, e.schema.$ref) };
|
|
428
428
|
if (e.schema && !br(e.schema))
|
|
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 ql({ decisionComponent: e, actions: t }) {
|
|
433
433
|
var o;
|
|
434
|
-
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((
|
|
434
|
+
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((a) => a.action && br(a.action) ? b(i({}, a), { action: $a(t, a.action.$ref) }) : a);
|
|
435
435
|
return b(i({}, e), { options: r });
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function Gl({ actionComponent: e, actions: t }) {
|
|
438
438
|
var r;
|
|
439
439
|
if (e.action && br(e.action) && ((r = e.action) != null && r.$ref)) {
|
|
440
|
-
let o = $
|
|
440
|
+
let o = $a(t, e.action.$ref);
|
|
441
441
|
return Sr(o);
|
|
442
442
|
}
|
|
443
443
|
return e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function $l({ 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
|
-
function
|
|
451
|
+
function Ga(e, t) {
|
|
452
452
|
let r = e.find((o) => o.$id === t);
|
|
453
453
|
if (!r)
|
|
454
454
|
throw new Error(`Fatal Error. Schema not found. $id ${t}`);
|
|
455
455
|
return r;
|
|
456
456
|
}
|
|
457
|
-
function $
|
|
457
|
+
function $a(e, t) {
|
|
458
458
|
let r = e.find((o) => o.$id === t);
|
|
459
459
|
if (!r)
|
|
460
460
|
throw new Error(`Fatal Error. Action not found. $id ${t}`);
|
|
@@ -464,47 +464,47 @@ var require_main_min = __commonJS({
|
|
|
464
464
|
return Object.prototype.hasOwnProperty.call(e, "$ref");
|
|
465
465
|
}
|
|
466
466
|
var xe = require("react");
|
|
467
|
-
var
|
|
467
|
+
var Ym = require("react-intl");
|
|
468
468
|
var wt = require("react");
|
|
469
469
|
var wr = require("react");
|
|
470
|
-
function
|
|
470
|
+
function _a() {
|
|
471
471
|
let [e, t] = (0, wr.useState)(0);
|
|
472
472
|
return { addPendingPromise: (0, wr.useCallback)((o) => {
|
|
473
|
-
t((
|
|
473
|
+
t((a) => a + 1), o.catch(Kl).finally(() => Wl(() => t((a) => Math.max(0, a - 1))));
|
|
474
474
|
}, [t]), pendingPromises: e };
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
var
|
|
476
|
+
var Wl = (e) => setTimeout(() => e(), 0);
|
|
477
|
+
var Kl = () => {
|
|
478
478
|
};
|
|
479
|
-
var
|
|
480
|
-
var
|
|
479
|
+
var Xa = require("react/jsx-runtime");
|
|
480
|
+
var Wa = { loading: false, registerPersistAsyncPromise: (e) => {
|
|
481
481
|
} };
|
|
482
|
-
var
|
|
483
|
-
var
|
|
484
|
-
let { pendingPromises: r, addPendingPromise: o } =
|
|
485
|
-
return (0,
|
|
482
|
+
var Ka = (0, wt.createContext)(Wa);
|
|
483
|
+
var Ja = ({ loading: e, children: t }) => {
|
|
484
|
+
let { pendingPromises: r, addPendingPromise: o } = _a(), a = (0, wt.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: o }), [e, r, o]);
|
|
485
|
+
return (0, Xa.jsx)(Ka.Provider, { value: a, children: t });
|
|
486
486
|
};
|
|
487
|
-
var Fr = () => (0, wt.useContext)(
|
|
487
|
+
var Fr = () => (0, wt.useContext)(Ka) || Wa;
|
|
488
488
|
var Ft = require("react");
|
|
489
|
-
var
|
|
490
|
-
var
|
|
489
|
+
var Za = require("react/jsx-runtime");
|
|
490
|
+
var Ya = (0, Ft.createContext)({ triggerEvent: () => {
|
|
491
491
|
} });
|
|
492
492
|
var Cr = ({ metadata: e, children: t, onEvent: r }) => {
|
|
493
493
|
let o = (0, Ft.useMemo)(() => ({ triggerEvent: wo(r, e) }), [r, e]);
|
|
494
|
-
return (0,
|
|
494
|
+
return (0, Za.jsx)(Ya.Provider, { value: o, children: t });
|
|
495
495
|
};
|
|
496
496
|
function Q() {
|
|
497
|
-
let { triggerEvent: e } = (0, Ft.useContext)(
|
|
497
|
+
let { triggerEvent: e } = (0, Ft.useContext)(Ya);
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
500
|
var wo = (e, t) => (r, o = {}) => {
|
|
501
501
|
try {
|
|
502
502
|
e(r, i(i({}, t), o));
|
|
503
|
-
} catch (
|
|
503
|
+
} catch (a) {
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
var ot = require("react");
|
|
507
|
-
function
|
|
507
|
+
function Qa(e) {
|
|
508
508
|
return e >= 200 && e < 300;
|
|
509
509
|
}
|
|
510
510
|
function xr(e) {
|
|
@@ -514,21 +514,21 @@ 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
|
|
518
|
-
return fetch(
|
|
517
|
+
let a = Jl(r, e || ""), n = Xl(o == null ? void 0 : o.headers, t);
|
|
518
|
+
return fetch(a, b(i({}, o || {}), { headers: n }));
|
|
519
519
|
};
|
|
520
|
-
var
|
|
521
|
-
var
|
|
520
|
+
var Jl = (e, t) => typeof e == "string" && Ar(e) ? t + e : e;
|
|
521
|
+
var Xl = (e, t) => {
|
|
522
522
|
if (!e && !t)
|
|
523
523
|
return {};
|
|
524
524
|
let r = new Headers(e);
|
|
525
|
-
for (let [o,
|
|
526
|
-
r.set(o,
|
|
525
|
+
for (let [o, a] of Object.entries(t || {}))
|
|
526
|
+
r.set(o, a);
|
|
527
527
|
return r;
|
|
528
528
|
};
|
|
529
529
|
var Fo = require("react/jsx-runtime");
|
|
530
530
|
var Or = (0, ot.createContext)(void 0);
|
|
531
|
-
var
|
|
531
|
+
var en = ({ httpClient: e, children: t }) => (0, Fo.jsx)(Or.Provider, { value: e, children: t });
|
|
532
532
|
var Pr = ({ baseUrl: e, children: t }) => {
|
|
533
533
|
let r = (0, ot.useMemo)(() => vr(e), [e]);
|
|
534
534
|
return (0, Fo.jsx)(Or.Provider, { value: r, children: t });
|
|
@@ -536,51 +536,51 @@ var require_main_min = __commonJS({
|
|
|
536
536
|
var ee = () => (0, ot.useContext)(Or) || fetch;
|
|
537
537
|
var Mr = () => !!(0, ot.useContext)(Or);
|
|
538
538
|
var Ct = require("react");
|
|
539
|
-
var
|
|
540
|
-
var
|
|
539
|
+
var rn = require("react/jsx-runtime");
|
|
540
|
+
var at = (e, t, r = "UNKNOWN-FLOW-ID", o = "UNKNOWN-FLOW-ID") => (a, n, s) => {
|
|
541
541
|
try {
|
|
542
|
-
t(e, `Dynamic Flow ${e} - ${
|
|
542
|
+
t(e, `Dynamic Flow ${e} - ${a} - ${n}`, i({ flowId: r, stepId: o }, s));
|
|
543
543
|
} catch (l) {
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
|
-
var
|
|
546
|
+
var tn = (0, Ct.createContext)(null);
|
|
547
547
|
var Er = ({ flowId: e, stepId: t, children: r, onLog: o }) => {
|
|
548
|
-
let
|
|
549
|
-
return (0,
|
|
548
|
+
let a = (0, Ct.useMemo)(() => ({ debug: at("debug", o, e, t), info: at("info", o, e, t), warning: at("warning", o, e, t), error: at("error", o, e, t), critical: at("critical", o, e, t) }), [o, e, t]);
|
|
549
|
+
return (0, rn.jsx)(tn.Provider, { value: a, children: r });
|
|
550
550
|
};
|
|
551
551
|
var xt = () => {
|
|
552
|
-
let e = (0, Ct.useContext)(
|
|
552
|
+
let e = (0, Ct.useContext)(tn);
|
|
553
553
|
if (e == null)
|
|
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
557
|
var k = (e) => typeof e == "string";
|
|
558
558
|
var R = (e) => typeof e == "number" && !Number.isNaN(e);
|
|
559
|
-
var
|
|
559
|
+
var on = (e) => R(e) && Math.floor(e) === e;
|
|
560
560
|
var ve = (e) => typeof e == "boolean";
|
|
561
561
|
var L = (e) => !M(e) && !J(e) && (e == null ? void 0 : e.constructor) === Object;
|
|
562
562
|
var z = (e) => Array.isArray(e);
|
|
563
563
|
var M = (e) => e === null;
|
|
564
564
|
var J = (e) => typeof e == "undefined";
|
|
565
565
|
var At = (e) => k(e) && e.length === 0 || (L(e) || z(e)) && Object.keys(e).length === 0;
|
|
566
|
-
function
|
|
566
|
+
function an(e, t) {
|
|
567
567
|
return t.oneOf.some((r) => $e(e, r) === e) ? e : null;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function nn(e, t) {
|
|
570
570
|
var o;
|
|
571
|
-
let r = t.oneOf.map((
|
|
572
|
-
return r.length === 0 ? null : (o = r.find((
|
|
571
|
+
let r = t.oneOf.map((a) => Yl(e, a)).filter((a) => a !== null);
|
|
572
|
+
return r.length === 0 ? null : (o = r.find((a) => a.some((n) => n !== null))) != null ? o : r[0];
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Yl(e, t) {
|
|
575
575
|
return !Le(t) || !Oe(t) ? null : Co(e, t);
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function sn(e) {
|
|
578
578
|
return k(e) && !At(e) ? e : null;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function mn(e) {
|
|
581
581
|
return R(e) ? e : null;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function ln(e) {
|
|
584
584
|
return ve(e) ? e : null;
|
|
585
585
|
}
|
|
586
586
|
function Co(e, t) {
|
|
@@ -593,72 +593,72 @@ var require_main_min = __commonJS({
|
|
|
593
593
|
}
|
|
594
594
|
return e.map((r) => vt(r, t.items));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function cn(e, t) {
|
|
597
597
|
return Object.keys(t.properties).reduce((r, o) => {
|
|
598
598
|
if (e && !J(e[o])) {
|
|
599
|
-
let
|
|
599
|
+
let a = e[o], n = t.properties[o], s = vt(a, n);
|
|
600
600
|
if (!M(s))
|
|
601
601
|
return b(i({}, r), { [o]: s });
|
|
602
602
|
}
|
|
603
603
|
return r;
|
|
604
604
|
}, {});
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function dn(e, t) {
|
|
607
607
|
return t.allOf.reduce((r, o) => {
|
|
608
|
-
let
|
|
609
|
-
return $(
|
|
608
|
+
let a = ie(e, o);
|
|
609
|
+
return $(a) ? i(i({}, r), a) : r;
|
|
610
610
|
}, {});
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
return t.oneOf.map((r) => ie(e, r)).reduce((r, o) => M(r) ? o : $(r) && $(o) ?
|
|
612
|
+
function un(e, t) {
|
|
613
|
+
return t.oneOf.map((r) => ie(e, r)).reduce((r, o) => M(r) ? o : $(r) && $(o) ? pn(r, o) : M(o) ? r : o, null);
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function pn(e, t) {
|
|
616
616
|
return Object.keys(t).reduce((r, o) => {
|
|
617
|
-
let
|
|
618
|
-
return $(
|
|
617
|
+
let a = e[o], n = t[o];
|
|
618
|
+
return $(a) && $(n) ? b(i({}, r), { [o]: pn(a, n) }) : 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) ? Zl(e, t) : $e(e, t);
|
|
622
622
|
function $e(e, t) {
|
|
623
623
|
if (M(e))
|
|
624
624
|
return null;
|
|
625
625
|
if (t.oneOf)
|
|
626
|
-
return
|
|
626
|
+
return an(e, t);
|
|
627
627
|
if (!J(t.const) && e === t.const)
|
|
628
628
|
return e;
|
|
629
629
|
if (t.type)
|
|
630
630
|
switch (t.type) {
|
|
631
631
|
case "string":
|
|
632
|
-
return
|
|
632
|
+
return sn(e);
|
|
633
633
|
case "number":
|
|
634
634
|
case "integer":
|
|
635
|
-
return
|
|
635
|
+
return mn(e);
|
|
636
636
|
case "boolean":
|
|
637
|
-
return
|
|
637
|
+
return ln(e);
|
|
638
638
|
default:
|
|
639
639
|
return null;
|
|
640
640
|
}
|
|
641
641
|
return null;
|
|
642
642
|
}
|
|
643
643
|
function ie(e, t) {
|
|
644
|
-
return Te(t) || Le(t) || M(e) ? null : t.allOf ?
|
|
644
|
+
return Te(t) || Le(t) || M(e) ? null : t.allOf ? dn(e, t) : t.oneOf ? un(e, t) : !J(t.const) && e === t.const ? e : Pe(t) ? cn(e, t) : null;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
return fe(t) ?
|
|
646
|
+
function Zl(e, t) {
|
|
647
|
+
return fe(t) ? nn(e, t) : Le(t) ? Co(e, t) : null;
|
|
648
648
|
}
|
|
649
649
|
function Kt(e, t = false) {
|
|
650
650
|
return !t || !J(e);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function fn(e, t = false) {
|
|
653
653
|
return !t || z(e);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function yn(e, t) {
|
|
656
656
|
return !R(t) || k(e) && e.length >= t;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function hn(e, t) {
|
|
659
659
|
return !R(t) || k(e) && e.length <= t;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function gn(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) {
|
|
@@ -667,10 +667,10 @@ var require_main_min = __commonJS({
|
|
|
667
667
|
function vo(e, t) {
|
|
668
668
|
return !R(t) && !k(t) || (R(e) || k(e)) && e >= t;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Sn(e, t) {
|
|
671
671
|
return !R(t) || z(e) && e.length >= t;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function bn(e, t) {
|
|
674
674
|
return !R(t) || z(e) && e.length <= t;
|
|
675
675
|
}
|
|
676
676
|
function _e(e, t, r) {
|
|
@@ -678,7 +678,7 @@ var require_main_min = __commonJS({
|
|
|
678
678
|
return Eo(e, t, r);
|
|
679
679
|
if (M(e))
|
|
680
680
|
return r ? ["required"] : [];
|
|
681
|
-
if (
|
|
681
|
+
if (Fn(t))
|
|
682
682
|
return Oo(e, t, r);
|
|
683
683
|
switch (t.type) {
|
|
684
684
|
case "number":
|
|
@@ -690,7 +690,7 @@ var require_main_min = __commonJS({
|
|
|
690
690
|
case "array":
|
|
691
691
|
return Ot(e, t, r);
|
|
692
692
|
case "object":
|
|
693
|
-
return
|
|
693
|
+
return Ql(e, t);
|
|
694
694
|
default:
|
|
695
695
|
return [];
|
|
696
696
|
}
|
|
@@ -701,7 +701,7 @@ var require_main_min = __commonJS({
|
|
|
701
701
|
if (e === "" && r)
|
|
702
702
|
return ["required"];
|
|
703
703
|
let o = [];
|
|
704
|
-
return Kt(e, r) || o.push("required"),
|
|
704
|
+
return Kt(e, r) || o.push("required"), yn(e, t.minLength) || o.push("minLength"), hn(e, t.maxLength) || o.push("maxLength"), gn(e, t.pattern) || o.push("pattern"), vo(e, t.minimum) || o.push("minimum"), Ao(e, t.maximum) || o.push("maximum"), o;
|
|
705
705
|
}
|
|
706
706
|
function kr(e, t, r) {
|
|
707
707
|
if (!R(e) && !M(e))
|
|
@@ -710,7 +710,7 @@ var require_main_min = __commonJS({
|
|
|
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
|
|
713
|
+
return on(e) ? kr(e, t, r) : ["type"];
|
|
714
714
|
}
|
|
715
715
|
function Mo(e, t, r) {
|
|
716
716
|
if (!ve(e) && !M(e))
|
|
@@ -724,121 +724,121 @@ var require_main_min = __commonJS({
|
|
|
724
724
|
function Ot(e, t, r) {
|
|
725
725
|
if (!z(e) && !M(e))
|
|
726
726
|
return ["type"];
|
|
727
|
-
if (!
|
|
727
|
+
if (!fn(e, r))
|
|
728
728
|
return ["required"];
|
|
729
729
|
let o = [];
|
|
730
|
-
return
|
|
730
|
+
return Sn(e, t.minItems) || o.push("minItems"), bn(e, t.maxItems) || o.push("maxItems"), o;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function wn(e, t) {
|
|
733
733
|
return M(e) ? ["type"] : [];
|
|
734
734
|
}
|
|
735
|
-
function Zl(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 Ql(e, t) {
|
|
739
|
-
return
|
|
736
|
+
return $(e) ? z(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, a) => o && a, true) ? [] : ["required"] : [] : ["type"];
|
|
740
737
|
}
|
|
741
738
|
function ec(e, t) {
|
|
742
|
-
return !
|
|
739
|
+
return !Oo(e, t).length;
|
|
743
740
|
}
|
|
744
741
|
function tc(e, t) {
|
|
745
|
-
return !
|
|
742
|
+
return !kr(e, t).length;
|
|
746
743
|
}
|
|
747
744
|
function rc(e, t) {
|
|
748
|
-
return !
|
|
745
|
+
return !Po(e, t).length;
|
|
749
746
|
}
|
|
750
747
|
function oc(e, t) {
|
|
748
|
+
return !Mo(e, t).length;
|
|
749
|
+
}
|
|
750
|
+
function ac(e, t) {
|
|
751
751
|
return !Eo(e, t).length;
|
|
752
752
|
}
|
|
753
753
|
function nc(e, t) {
|
|
754
|
-
return !L(e) || t.type !== "object" || !L(t.properties) ? false : Object.keys(t.properties).map((r) =>
|
|
754
|
+
return !L(e) || t.type !== "object" || !L(t.properties) ? false : Object.keys(t.properties).map((r) => ic(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function ic(e, t, r) {
|
|
757
757
|
return t.hidden ? true : typeof e == "undefined" ? !r : _(e, t);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function sc(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 mc(e, t) {
|
|
763
763
|
return z(t.oneOf) ? t.oneOf.some((r) => _(e, r)) : false;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function lc(e, t) {
|
|
766
766
|
return z(t.allOf) ? t.allOf.map((r) => _(e, r)).every((r) => r) : false;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
return !
|
|
768
|
+
function cc(e, t) {
|
|
769
|
+
return !wn(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 sc(e, t);
|
|
776
|
-
if (t.allOf)
|
|
777
775
|
return mc(e, t);
|
|
776
|
+
if (t.allOf)
|
|
777
|
+
return lc(e, t);
|
|
778
778
|
if (t.const)
|
|
779
|
-
return
|
|
779
|
+
return ac(e, t);
|
|
780
780
|
switch (t.type) {
|
|
781
781
|
case "string":
|
|
782
|
-
return Ql(e, t);
|
|
783
|
-
case "number":
|
|
784
782
|
return ec(e, t);
|
|
785
|
-
case "
|
|
783
|
+
case "number":
|
|
786
784
|
return tc(e, t);
|
|
787
|
-
case "
|
|
785
|
+
case "integer":
|
|
788
786
|
return rc(e, t);
|
|
787
|
+
case "boolean":
|
|
788
|
+
return oc(e, t);
|
|
789
789
|
case "array":
|
|
790
|
-
return
|
|
790
|
+
return sc(e, t);
|
|
791
791
|
case "object":
|
|
792
792
|
return nc(e, t);
|
|
793
793
|
case "blob":
|
|
794
|
-
return
|
|
794
|
+
return cc(e, t);
|
|
795
795
|
default:
|
|
796
796
|
return false;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
function
|
|
800
|
-
let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`,
|
|
801
|
-
return [
|
|
799
|
+
function dc(e) {
|
|
800
|
+
let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`, a = t.getFullYear(), n = r.length < 2 ? `0${r}` : r, s = o.length < 2 ? `0${o}` : o;
|
|
801
|
+
return [a, n, s].join("-");
|
|
802
802
|
}
|
|
803
|
-
var
|
|
803
|
+
var Cn = (e) => {
|
|
804
804
|
if (!e)
|
|
805
805
|
return null;
|
|
806
|
-
let [t, r, o] = e.split("-").map((
|
|
806
|
+
let [t, r, o] = e.split("-").map((a) => parseInt(a, 10));
|
|
807
807
|
return !R(t) || !R(r) || !R(o) ? null : new Date(t, r - 1, o);
|
|
808
808
|
};
|
|
809
|
-
var
|
|
809
|
+
var xn = (e) => dc(e);
|
|
810
810
|
var We = (e, t) => {
|
|
811
|
-
let r, o,
|
|
811
|
+
let r, o, a = () => {
|
|
812
812
|
r && (clearTimeout(r), r = null), o = null;
|
|
813
|
-
},
|
|
813
|
+
}, n = (...s) => {
|
|
814
814
|
o = s, r !== null && clearTimeout(r), r = setTimeout(() => {
|
|
815
815
|
e(...o), r = null, o = null;
|
|
816
816
|
}, t);
|
|
817
817
|
};
|
|
818
|
-
return
|
|
819
|
-
r !== null &&
|
|
820
|
-
},
|
|
821
|
-
r !== null && (e(...o),
|
|
822
|
-
},
|
|
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])) : !!(
|
|
825
|
-
var
|
|
818
|
+
return n.cancel = () => {
|
|
819
|
+
r !== null && a();
|
|
820
|
+
}, n.flush = () => {
|
|
821
|
+
r !== null && (e(...o), a());
|
|
822
|
+
}, n;
|
|
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])) : !!(An(e) && An(t) && uc(e, t));
|
|
825
|
+
var uc = (e, t) => {
|
|
826
826
|
let r = Object.keys(e), o = Object.keys(t);
|
|
827
|
-
return r.length === o.length && r.every((
|
|
827
|
+
return r.length === o.length && r.every((a) => Object.prototype.hasOwnProperty.call(t, a) && Ke(e[a], t[a]));
|
|
828
828
|
};
|
|
829
|
-
var
|
|
829
|
+
var An = (e) => typeof e == "object" && e !== null;
|
|
830
830
|
function Ir(e) {
|
|
831
831
|
return Math.floor(e / 1024);
|
|
832
832
|
}
|
|
833
|
-
var
|
|
833
|
+
var vn = (e) => new Promise((t, r) => {
|
|
834
834
|
let o = new FileReader();
|
|
835
|
-
o.readAsDataURL(e), o.addEventListener("load", () => t(o.result)), o.addEventListener("error", (
|
|
835
|
+
o.readAsDataURL(e), o.addEventListener("load", () => t(o.result)), o.addEventListener("error", (a) => r(a));
|
|
836
836
|
});
|
|
837
|
-
function
|
|
838
|
-
let r = t.reduce((o,
|
|
837
|
+
function On(e, t) {
|
|
838
|
+
let r = t.reduce((o, a) => b(i({}, o), { [a.id]: a }), {});
|
|
839
839
|
for (let o of e) {
|
|
840
|
-
let
|
|
841
|
-
if (!
|
|
840
|
+
let a = r[o.id];
|
|
841
|
+
if (!a || a.status !== o.status)
|
|
842
842
|
return false;
|
|
843
843
|
}
|
|
844
844
|
return true;
|
|
@@ -850,16 +850,16 @@ 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 pc = (e) => !!e.readOnly && Te(e);
|
|
854
|
+
var fc = (e) => !!e.oneOf && !!e.promotion;
|
|
855
|
+
var yc = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
|
|
856
856
|
function Te(e) {
|
|
857
|
-
return
|
|
857
|
+
return yc.has(e.type || "") || "const" in e && e.const !== void 0;
|
|
858
858
|
}
|
|
859
859
|
function Pe(e) {
|
|
860
860
|
return e.type === "object";
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function nt(e) {
|
|
863
863
|
return fe(e) && e.oneOf.every((t) => t.type === "object");
|
|
864
864
|
}
|
|
865
865
|
function fe(e) {
|
|
@@ -878,31 +878,31 @@ var require_main_min = __commonJS({
|
|
|
878
878
|
let t = e.items;
|
|
879
879
|
return !Array.isArray(t);
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function Fn(e) {
|
|
882
882
|
return e.type === "string";
|
|
883
883
|
}
|
|
884
884
|
function Dr(e) {
|
|
885
885
|
return !!e.persistAsync;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
return Dr(e) && (Pt(e.persistAsync.schema) ||
|
|
887
|
+
function hc(e) {
|
|
888
|
+
return Dr(e) && (Pt(e.persistAsync.schema) || gc(e.persistAsync.schema));
|
|
889
889
|
}
|
|
890
890
|
var Io = (e) => Te(e) && !!e.validationAsync;
|
|
891
|
-
function
|
|
891
|
+
function gc(e) {
|
|
892
892
|
return e.type === "string" && e.format === "base64url";
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Pn(e) {
|
|
895
895
|
return e.type === "string" && e.format === "base64url";
|
|
896
896
|
}
|
|
897
|
-
var
|
|
898
|
-
var it = (e) =>
|
|
899
|
-
var
|
|
900
|
-
var
|
|
901
|
-
var
|
|
897
|
+
var Mn = (e) => Le(e) && Oe(e) && hc(e.items);
|
|
898
|
+
var it = (e) => pc(e) ? "readOnly" : Dr(e) ? "persistAsync" : Io(e) ? "validationAsync" : Pe(e) ? "object" : Le(e) ? "array" : fc(e) ? "promotedOneOf" : fe(e) ? "oneOf" : ko(e) ? "allOf" : Te(e) ? "basic" : null;
|
|
899
|
+
var En = (e) => Sc(e) && bc(e) && wc(e);
|
|
900
|
+
var Sc = (e) => !e.type || e.type === "form";
|
|
901
|
+
var bc = (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 wc = (e) => {
|
|
906
906
|
if (!e.schemas)
|
|
907
907
|
return false;
|
|
908
908
|
let t = Lr(e.schemas);
|
|
@@ -912,7 +912,7 @@ var require_main_min = __commonJS({
|
|
|
912
912
|
if (!Pe(r) || Object.values(r.properties).length !== 1)
|
|
913
913
|
return false;
|
|
914
914
|
let o = Object.values(r.properties)[0];
|
|
915
|
-
return
|
|
915
|
+
return Pn(o) ? o.source === "camera" : false;
|
|
916
916
|
};
|
|
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;
|
|
@@ -920,101 +920,101 @@ var require_main_min = __commonJS({
|
|
|
920
920
|
var Lo = (e) => ve(e) || R(e) || k(e) || M(e);
|
|
921
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
|
|
923
|
+
var kn = (e) => M(e) ? true : xo(e);
|
|
924
924
|
var Xt = (e) => k(e) || M(e);
|
|
925
|
-
var
|
|
926
|
-
function
|
|
927
|
-
return (0,
|
|
925
|
+
var In = require("react");
|
|
926
|
+
function Dn(e, t) {
|
|
927
|
+
return (0, In.useCallback)(We(e, t), [e, t]);
|
|
928
928
|
}
|
|
929
929
|
var Yt = require("react");
|
|
930
|
-
function
|
|
931
|
-
let [t, r] = (0, Yt.useState)(null), [o,
|
|
930
|
+
function Ln(e) {
|
|
931
|
+
let [t, r] = (0, Yt.useState)(null), [o, a] = (0, Yt.useState)(false), n = () => a(true);
|
|
932
932
|
return (0, Yt.useEffect)(() => {
|
|
933
|
-
e && (
|
|
934
|
-
}, [e]), { requiresManualTrigger: !!(e && !t && !o), dismissConfirmation:
|
|
933
|
+
e && (a(false), r(window.open(e, "_blank")));
|
|
934
|
+
}, [e]), { requiresManualTrigger: !!(e && !t && !o), dismissConfirmation: n };
|
|
935
935
|
}
|
|
936
936
|
var Zt = require("react");
|
|
937
|
-
function
|
|
937
|
+
function Tn(e, t) {
|
|
938
938
|
let r = ee(), o = (0, Zt.useMemo)(() => {
|
|
939
939
|
if (e)
|
|
940
|
-
return () => r(e.url).then((
|
|
941
|
-
if (
|
|
940
|
+
return () => r(e.url).then((n) => {
|
|
941
|
+
if (n.ok)
|
|
942
942
|
try {
|
|
943
|
-
return
|
|
943
|
+
return n.json();
|
|
944
944
|
} catch (s) {
|
|
945
945
|
throw new Error("failed");
|
|
946
946
|
}
|
|
947
947
|
else
|
|
948
948
|
throw new Error("failed");
|
|
949
949
|
});
|
|
950
|
-
}, [e, r]),
|
|
951
|
-
let l = ((e == null ? void 0 : e.responseHandlers) || []).find((u) => u.result ===
|
|
950
|
+
}, [e, r]), a = (0, Zt.useCallback)((n) => {
|
|
951
|
+
let l = ((e == null ? void 0 : e.responseHandlers) || []).find((u) => u.result === n.result);
|
|
952
952
|
if (l != null && l.action) {
|
|
953
953
|
let { action: u } = l;
|
|
954
954
|
if (u.exit) {
|
|
955
|
-
let c = i(i({}, u.result || {}),
|
|
955
|
+
let c = i(i({}, u.result || {}), n.data || {});
|
|
956
956
|
t(b(i({}, u), { result: c }));
|
|
957
957
|
} else {
|
|
958
|
-
let c = i(i({}, u.data || {}),
|
|
958
|
+
let c = i(i({}, u.data || {}), n.data || {});
|
|
959
959
|
t(b(i({}, u), { data: c }));
|
|
960
960
|
}
|
|
961
961
|
return false;
|
|
962
962
|
}
|
|
963
963
|
return true;
|
|
964
964
|
}, [e == null ? void 0 : e.responseHandlers, t]);
|
|
965
|
-
Nr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse:
|
|
965
|
+
Nr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: a, onFailure: (0, Zt.useCallback)(() => {
|
|
966
966
|
e && t(e.onError.action);
|
|
967
967
|
}, [t, e]) });
|
|
968
968
|
}
|
|
969
|
-
var
|
|
970
|
-
var
|
|
971
|
-
var
|
|
972
|
-
var Qt = (0,
|
|
969
|
+
var Js = require("react");
|
|
970
|
+
var Xs = require("react-intl");
|
|
971
|
+
var Nn = require("react-intl");
|
|
972
|
+
var Qt = (0, Nn.defineMessages)({ genericError: { id: "dynamicFlows.PersistAsyncSchema.genericError", defaultMessage: "Something went wrong, please try again later!", description: "Generic error message for persist async schema" } });
|
|
973
973
|
var St = require("react");
|
|
974
|
-
var
|
|
975
|
-
var
|
|
974
|
+
var Gs = require("react-intl");
|
|
975
|
+
var Rn = { DAY_MONTH_YEAR: "day-month-year", MONTH_YEAR: "month-year" };
|
|
976
976
|
var B = { RADIO: "radio", CHECKBOX: "checkbox", SELECT: "select", FILE: "file", DATE: "date", DATETIME: "date-time", DATELOOKUP: "date-lookup", TEL: "tel", NUMBER: "number", HIDDEN: "hidden", PASSWORD: "password", TEXT: "text", TEXTAREA: "textarea", UPLOAD: "upload", TAB: "tab" };
|
|
977
|
-
var
|
|
978
|
-
var
|
|
979
|
-
var
|
|
977
|
+
var Bn = { SHORT: "short", LONG: "long" };
|
|
978
|
+
var jn = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
|
|
979
|
+
var Hs = qe(st());
|
|
980
980
|
var le = require("react");
|
|
981
|
-
var
|
|
981
|
+
var $n = require("@transferwise/components");
|
|
982
982
|
var Et = require("@transferwise/components");
|
|
983
|
-
var
|
|
984
|
-
var Mt = (e) =>
|
|
985
|
-
var wc = (e) => Cc.some((t) => e === `flag-${t}`);
|
|
983
|
+
var Un = require("react/jsx-runtime");
|
|
984
|
+
var Mt = (e) => Fc(e) || Cc(e);
|
|
986
985
|
var Fc = (e) => xc.some((t) => e === `flag-${t}`);
|
|
987
|
-
var
|
|
986
|
+
var Cc = (e) => Ac.some((t) => e === `flag-${t}`);
|
|
987
|
+
var Vn = ({ name: e }) => {
|
|
988
988
|
if (!Mt(e))
|
|
989
989
|
return null;
|
|
990
990
|
let t = e.substring(5);
|
|
991
|
-
return (0,
|
|
991
|
+
return (0, Un.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}` });
|
|
992
992
|
};
|
|
993
|
-
var
|
|
994
|
-
var
|
|
995
|
-
var
|
|
996
|
-
var
|
|
993
|
+
var xc = ["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 Ac = ["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
|
+
var zn = qe(require("@transferwise/icons"));
|
|
996
|
+
var Gn = require("react/jsx-runtime");
|
|
997
997
|
var Br = (e) => {
|
|
998
|
-
let t =
|
|
999
|
-
return Object.keys(
|
|
998
|
+
let t = qn(e);
|
|
999
|
+
return Object.keys(zn).includes(t);
|
|
1000
1000
|
};
|
|
1001
|
-
var
|
|
1001
|
+
var Hn = ({ name: e }) => {
|
|
1002
1002
|
if (!Br(e))
|
|
1003
1003
|
return null;
|
|
1004
|
-
let t =
|
|
1005
|
-
return (0,
|
|
1004
|
+
let t = qn(e), r = zn[t];
|
|
1005
|
+
return (0, Gn.jsx)(r, { size: 24 });
|
|
1006
1006
|
};
|
|
1007
|
-
var
|
|
1008
|
-
var
|
|
1007
|
+
var qn = (e) => e.split("-").map(vc).join("");
|
|
1008
|
+
var vc = (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 Oc = ({ type: e }) => Mt(e) ? (0, To.jsx)(Vn, { name: e }) : Br(e) ? (0, To.jsx)(Hn, { name: e }) : null;
|
|
1014
1014
|
function No(e) {
|
|
1015
1015
|
return Br(e) || Mt(e);
|
|
1016
1016
|
}
|
|
1017
|
-
var Je =
|
|
1017
|
+
var Je = Oc;
|
|
1018
1018
|
var er = require("react/jsx-runtime");
|
|
1019
1019
|
var mt = ({ icon: e, image: t }) => {
|
|
1020
1020
|
if (e != null && e.name)
|
|
@@ -1043,7 +1043,7 @@ var require_main_min = __commonJS({
|
|
|
1043
1043
|
return "";
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
|
-
var
|
|
1046
|
+
var Pc = (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) => `${
|
|
1058
|
-
var
|
|
1059
|
-
var
|
|
1057
|
+
var Ne = (e) => `${Pc(e.align)} ${U(e.margin)}`;
|
|
1058
|
+
var _n = require("react/jsx-runtime");
|
|
1059
|
+
var Mc = (e) => {
|
|
1060
1060
|
let t = e.component;
|
|
1061
|
-
return (0,
|
|
1061
|
+
return (0, _n.jsx)($n.Alert, { type: kc(Ec(t.context)), className: U(t.margin), message: t.markdown });
|
|
1062
1062
|
};
|
|
1063
|
-
var
|
|
1063
|
+
var Ec = (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 kc = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
|
|
1079
|
+
var se = Mc;
|
|
1080
1080
|
var lt = require("react/jsx-runtime");
|
|
1081
|
-
var
|
|
1081
|
+
var Ic = (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 +
|
|
1083
|
+
return !t.width || t.width === "xl" ? (0, lt.jsx)("div", { className: r + Wn(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 + Dc(t), children: (0, lt.jsx)("div", { className: Wn(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
|
-
var
|
|
1086
|
-
var
|
|
1085
|
+
var Wn = (e) => e ? " well p-b-0" : "";
|
|
1086
|
+
var Dc = (e) => {
|
|
1087
1087
|
switch (e.width) {
|
|
1088
1088
|
case "xs":
|
|
1089
1089
|
return " col-md-4 col-md-offset-4";
|
|
@@ -1098,21 +1098,21 @@ var require_main_min = __commonJS({
|
|
|
1098
1098
|
return " col-xs-12";
|
|
1099
1099
|
}
|
|
1100
1100
|
};
|
|
1101
|
-
var Ro =
|
|
1102
|
-
var
|
|
1103
|
-
var
|
|
1104
|
-
var
|
|
1101
|
+
var Ro = Ic;
|
|
1102
|
+
var Yn = require("@transferwise/components");
|
|
1103
|
+
var Lc = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
|
|
1104
|
+
var Kn = (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 ? Lc[t] : "secondary";
|
|
1108
1108
|
};
|
|
1109
|
-
var
|
|
1110
|
-
var
|
|
1109
|
+
var Tc = { primary: "neutral", secondary: "neutral", link: "neutral", positive: "positive", negative: "negative" };
|
|
1110
|
+
var Jn = (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 ? Tc[t] : "neutral";
|
|
1113
1113
|
return r === "neutral" ? "accent" : r;
|
|
1114
1114
|
};
|
|
1115
|
-
var
|
|
1115
|
+
var Xn = (e) => {
|
|
1116
1116
|
switch (e) {
|
|
1117
1117
|
case "xs":
|
|
1118
1118
|
case "sm":
|
|
@@ -1125,172 +1125,172 @@ var require_main_min = __commonJS({
|
|
|
1125
1125
|
return "md";
|
|
1126
1126
|
}
|
|
1127
1127
|
};
|
|
1128
|
-
var
|
|
1129
|
-
var
|
|
1128
|
+
var Zn = require("react/jsx-runtime");
|
|
1129
|
+
var Nc = (e) => {
|
|
1130
1130
|
var u;
|
|
1131
|
-
let { component: t, onAction: r } = e, o = t.action,
|
|
1132
|
-
return (0,
|
|
1131
|
+
let { component: t, onAction: r } = e, o = t.action, a = Jn(t), n = Kn(t), { loading: s } = Fr(), l = U(t.margin || "md");
|
|
1132
|
+
return (0, Zn.jsx)(Yn.Button, { size: Xn(t.size), type: a, priority: n, 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 = Nc;
|
|
1135
1135
|
var ct = require("react/jsx-runtime");
|
|
1136
|
-
var
|
|
1137
|
-
let t = e.component, { leftWidth: r, rightWidth: o } =
|
|
1136
|
+
var Rc = (e) => {
|
|
1137
|
+
let t = e.component, { leftWidth: r, rightWidth: o } = Bc(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 jo =
|
|
1140
|
+
var Bc = (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 = Rc;
|
|
1142
1142
|
var Vr = require("@transferwise/components");
|
|
1143
1143
|
var jr = require("react/jsx-runtime");
|
|
1144
|
-
var
|
|
1145
|
-
var Vo =
|
|
1146
|
-
var
|
|
1147
|
-
var
|
|
1144
|
+
var jc = ({ 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 = jc;
|
|
1146
|
+
var Qn = require("react/jsx-runtime");
|
|
1147
|
+
var Vc = ({ component: e }) => {
|
|
1148
1148
|
let r = `m-t-0 ${U(e.margin)}`;
|
|
1149
|
-
return (0,
|
|
1149
|
+
return (0, Qn.jsx)("hr", { className: r });
|
|
1150
1150
|
};
|
|
1151
|
-
var Uo =
|
|
1151
|
+
var Uo = Vc;
|
|
1152
1152
|
var kt = require("@transferwise/components");
|
|
1153
1153
|
var Ur = require("react");
|
|
1154
|
-
var
|
|
1155
|
-
var
|
|
1156
|
-
var
|
|
1154
|
+
var ri = require("react-intl");
|
|
1155
|
+
var ei = require("react-intl");
|
|
1156
|
+
var ti = (0, ei.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1157
1157
|
var Xe = require("react/jsx-runtime");
|
|
1158
|
-
var
|
|
1159
|
-
let { requestUrl: r, responseHandlers: o, polling:
|
|
1158
|
+
var Uc = ({ component: e, onAction: t }) => {
|
|
1159
|
+
let { requestUrl: r, responseHandlers: o, polling: a, retryTitle: n } = e, s = (0, ri.useIntl)(), l = (0, Ur.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1160
1160
|
(0, Ur.useEffect)(() => {
|
|
1161
1161
|
l();
|
|
1162
1162
|
}, [l]);
|
|
1163
|
-
let u =
|
|
1164
|
-
return
|
|
1163
|
+
let u = a && o ? b(i({}, a), { responseHandlers: o }) : void 0;
|
|
1164
|
+
return Tn(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: n || s.formatMessage(ti.retryTitle) })] });
|
|
1165
1165
|
};
|
|
1166
|
-
var zo =
|
|
1167
|
-
var
|
|
1168
|
-
var
|
|
1169
|
-
var
|
|
1166
|
+
var zo = Uc;
|
|
1167
|
+
var Fs = require("react");
|
|
1168
|
+
var oi = qe(st());
|
|
1169
|
+
var ai = require("react");
|
|
1170
1170
|
var Ee = require("react/jsx-runtime");
|
|
1171
|
-
var
|
|
1172
|
-
var
|
|
1173
|
-
var
|
|
1171
|
+
var zc = (e, t) => t.map((r) => ie(e, r) || {});
|
|
1172
|
+
var Hc = (e) => e.reduce((t, r) => i(i({}, r), t), {});
|
|
1173
|
+
var qc = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1174
1174
|
var ni = (e) => {
|
|
1175
|
-
let t = (
|
|
1176
|
-
let s = e.schema.allOf[
|
|
1177
|
-
r[
|
|
1178
|
-
}, [r, o] = (0,
|
|
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((
|
|
1175
|
+
let t = (a, n) => {
|
|
1176
|
+
let s = e.schema.allOf[a];
|
|
1177
|
+
r[a] = ie(n.model, s) || {}, o(r), e.onChange(b(i({}, n), { model: Hc(r) }));
|
|
1178
|
+
}, [r, o] = (0, ai.useState)(zc(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((a, n) => (0, Ee.jsx)("div", { className: (0, oi.default)(qc(a.width)), children: (0, Ee.jsx)(ue, { schema: a, model: r[n], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (s) => t(n, b(i({}, s), { model: s.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
|
|
1180
1180
|
};
|
|
1181
1181
|
ni.defaultProps = { disabled: false };
|
|
1182
1182
|
var Ho = ni;
|
|
1183
1183
|
var Hr = require("@transferwise/components");
|
|
1184
|
-
var
|
|
1184
|
+
var bi = qe(st());
|
|
1185
1185
|
var tr = require("react");
|
|
1186
1186
|
var zr = require("@transferwise/components");
|
|
1187
1187
|
var qo = require("@transferwise/formatting");
|
|
1188
|
+
var si = require("react-intl");
|
|
1188
1189
|
var ii = require("react-intl");
|
|
1189
|
-
var
|
|
1190
|
-
var he = (0, ai.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
|
|
1190
|
+
var he = (0, ii.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
|
|
1191
1191
|
var Re = require("react/jsx-runtime");
|
|
1192
|
-
var
|
|
1192
|
+
var mi = (e) => {
|
|
1193
1193
|
var l;
|
|
1194
|
-
let t =
|
|
1195
|
-
return (0, Re.jsxs)("div", { children: [o ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.errors }) : null,
|
|
1194
|
+
let t = Gc(e.schema), r = i(i(i({}, t), e.validationMessages), e.schema.validationMessages), o = (e.submitted || !e.changed) && !!e.errors, a = !o && (e.submitted || e.changed && e.blurred) && !!((l = e.validations) != null && l.length), n = e.focused && e.schema.description && !a, s = !!e.infoMessage;
|
|
1195
|
+
return (0, Re.jsxs)("div", { children: [o ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.errors }) : null, a ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.validations.map((u) => (0, Re.jsx)("div", { children: r[u] }, u)) }) : null, (n || s) && (0, Re.jsxs)(zr.InlineAlert, { type: "info", children: [n && (0, Re.jsx)("div", { children: e.schema.description }), s && (0, Re.jsx)("div", { children: e.infoMessage })] })] });
|
|
1196
1196
|
};
|
|
1197
|
-
|
|
1198
|
-
function
|
|
1199
|
-
let { formatMessage: t, locale: r } = (0,
|
|
1197
|
+
mi.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1198
|
+
function Gc(e) {
|
|
1199
|
+
let { formatMessage: t, locale: r } = (0, si.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
|
-
let
|
|
1202
|
-
return i(i({}, o),
|
|
1201
|
+
let a = { 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 };
|
|
1202
|
+
return i(i({}, o), a);
|
|
1203
1203
|
}
|
|
1204
1204
|
return o;
|
|
1205
1205
|
}
|
|
1206
|
-
var Be =
|
|
1207
|
-
async function
|
|
1206
|
+
var Be = mi;
|
|
1207
|
+
async function li(e, t) {
|
|
1208
1208
|
if (t)
|
|
1209
1209
|
return e;
|
|
1210
1210
|
if (e instanceof Blob)
|
|
1211
|
-
return
|
|
1211
|
+
return vn(e);
|
|
1212
1212
|
throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function ci(e) {
|
|
1215
1215
|
let t = e.data;
|
|
1216
1216
|
return i({ id: t }, e);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function di(e) {
|
|
1219
1219
|
let t = e instanceof Error;
|
|
1220
1220
|
if (!(L(e) && "data" in e) && !t)
|
|
1221
1221
|
return k(e) ? e : void 0;
|
|
1222
1222
|
if (t) {
|
|
1223
|
-
let
|
|
1224
|
-
return { id: Me(), message:
|
|
1223
|
+
let a = e;
|
|
1224
|
+
return { id: Me(), message: a.message };
|
|
1225
1225
|
} else
|
|
1226
1226
|
return i({ message: k(e.message) ? e.message : "" }, e);
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1229
|
-
var
|
|
1230
|
-
var
|
|
1231
|
-
var
|
|
1232
|
-
var
|
|
1233
|
-
function
|
|
1234
|
-
let { formatMessage: r } = (0,
|
|
1235
|
-
return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(
|
|
1228
|
+
var hi = require("react-intl");
|
|
1229
|
+
var ui = require("react-intl");
|
|
1230
|
+
var pi = (0, ui.defineMessages)({ required: { id: "dynamicFlows.DefaultErrorMessages.required", defaultMessage: "Please fill out this field.", description: "Customer has left the required field empty" } });
|
|
1231
|
+
var fi = require("react-intl");
|
|
1232
|
+
var yi = (0, fi.defineMessages)({ minItemsError: { id: "dynamicFlows.MultipleFileUploadSchema.minItemsError", defaultMessage: "Please upload at least {minItems} file(s).", description: "Customer has uploaded not enough files. To fix: upload more files." }, maxItemsError: { id: "dynamicFlows.MultipleFileUploadSchema.maxItemsError", defaultMessage: "Please upload {maxItems} or fewer files.", description: "Customer has uploaded too many files. To fix: upload fewer files." }, maxFileSizeError: { id: "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError", defaultMessage: "Sorry, that file is too big. Please upload a smaller file.", description: "Customer has uploaded a file that's too big. To fix: upload a smaller file." } });
|
|
1233
|
+
function gi({ maxItems: e, minItems: t }) {
|
|
1234
|
+
let { formatMessage: r } = (0, hi.useIntl)(), { maxFileSizeError: o, maxItemsError: a, minItemsError: n } = yi;
|
|
1235
|
+
return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(a, { maxItems: e }), minItemsErrorMessage: r(n, { minItems: t }), requiredMessage: r(pi.required) };
|
|
1236
1236
|
}
|
|
1237
1237
|
var It = require("react/jsx-runtime");
|
|
1238
|
-
var
|
|
1238
|
+
var wi = (e) => {
|
|
1239
1239
|
var C, D;
|
|
1240
|
-
let { onChange: t, schema: r } = e, o = Q(),
|
|
1240
|
+
let { onChange: t, schema: r } = e, o = Q(), a = gi(r), n = (0, tr.useMemo)(() => r.$id || Me(), [r.$id]), [s, l] = (0, tr.useState)(false), [u, c] = (0, tr.useState)(() => $c(e.model || [])), d = Fi(r.items.persistAsync), g = r.items.persistAsync.schema, f = Pt(g), m = async (T) => {
|
|
1241
1241
|
l(true);
|
|
1242
1242
|
try {
|
|
1243
|
-
let P = await
|
|
1243
|
+
let P = await li(T, f);
|
|
1244
1244
|
o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
|
|
1245
1245
|
let N = await d(P);
|
|
1246
|
-
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }),
|
|
1246
|
+
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), ci(N);
|
|
1247
1247
|
} catch (P) {
|
|
1248
|
-
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(
|
|
1248
|
+
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(di(P));
|
|
1249
1249
|
}
|
|
1250
1250
|
};
|
|
1251
1251
|
function p(T) {
|
|
1252
|
-
if (
|
|
1252
|
+
if (On(T, u))
|
|
1253
1253
|
return;
|
|
1254
1254
|
c(T);
|
|
1255
|
-
let N =
|
|
1255
|
+
let N = Si(T).map((G) => G.id);
|
|
1256
1256
|
t({ model: N, triggerSchema: r, triggerModel: N });
|
|
1257
1257
|
}
|
|
1258
|
-
let S =
|
|
1259
|
-
return (0, It.jsxs)("div", { className: (0,
|
|
1258
|
+
let S = Si(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: n, id: n }, w ? { fileTypes: w } : void 0), v ? { sizeLimit: Ir(v) } : void 0), { sizeLimitErrorMessage: ((C = g.validationMessages) == null ? void 0 : C.maxSize) || a.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((D = e.schema.validationMessages) == null ? void 0 : D.maxItems) || a.maxItemsErrorMessage, uploadButtonTitle: g.title, description: g.description, disabled: e.disabled, onUploadFile: (T) => m(T.get(n)), onFilesChange: p, onDeleteFile: () => Promise.resolve() });
|
|
1259
|
+
return (0, It.jsxs)("div", { className: (0, bi.default)("form-group", { "has-error": F }), children: [(0, It.jsx)("label", { className: "d-block control-label", htmlFor: n, 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: Wc(r, !!e.required, a), infoMessage: null, focused: false, blurred: true })] });
|
|
1260
1260
|
};
|
|
1261
|
-
|
|
1262
|
-
var Go =
|
|
1263
|
-
function
|
|
1261
|
+
wi.defaultProps = { errors: null, required: false };
|
|
1262
|
+
var Go = wi;
|
|
1263
|
+
function Si(e) {
|
|
1264
1264
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1265
1265
|
}
|
|
1266
|
-
function Gc(e) {
|
|
1267
|
-
return e.map((t) => $c(t) ? { id: t, status: Hr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1268
|
-
}
|
|
1269
1266
|
function $c(e) {
|
|
1267
|
+
return e.map((t) => _c(t) ? { id: t, status: Hr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1268
|
+
}
|
|
1269
|
+
function _c(e) {
|
|
1270
1270
|
return R(e) || k(e);
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1273
|
-
let { minItems: o, maxItems:
|
|
1274
|
-
return i(i(i({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }),
|
|
1272
|
+
function Wc(e, t, r) {
|
|
1273
|
+
let { minItems: o, maxItems: a } = e;
|
|
1274
|
+
return i(i(i({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }), a && { maxItems: r.maxItemsErrorMessage });
|
|
1275
1275
|
}
|
|
1276
1276
|
var Lt = require("@transferwise/components");
|
|
1277
|
-
var
|
|
1277
|
+
var ki = require("@transferwise/icons");
|
|
1278
1278
|
var $r = require("react");
|
|
1279
|
-
var
|
|
1280
|
-
var
|
|
1281
|
-
var
|
|
1282
|
-
var
|
|
1283
|
-
var Ai = require("react-intl");
|
|
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" } });
|
|
1279
|
+
var Ii = require("react-intl");
|
|
1280
|
+
var Ci = require("@transferwise/components");
|
|
1281
|
+
var Ai = require("react/jsx-runtime");
|
|
1282
|
+
var xi = ({ item: e, onClick: t }) => (0, Ai.jsx)(Ci.NavigationOption, { onClick: t, media: mt(e), title: e.title, content: e.description });
|
|
1285
1283
|
var vi = require("react-intl");
|
|
1286
|
-
var
|
|
1287
|
-
var
|
|
1288
|
-
|
|
1289
|
-
|
|
1284
|
+
var dt = (0, vi.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
|
+
var Oi = require("react-intl");
|
|
1286
|
+
var Mi = require("react/jsx-runtime");
|
|
1287
|
+
var Kc = ({ type: e, schema: t, model: r, errors: o, submitted: a, onModelChange: n, onAction: s }) => {
|
|
1288
|
+
let { formatMessage: l } = (0, Oi.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
|
+
return (0, Mi.jsx)(qr, { step: u, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: a, formErrors: o, globalError: null, onAction: (c) => {
|
|
1290
1290
|
s(c.url);
|
|
1291
|
-
}, onModelChange:
|
|
1291
|
+
}, onModelChange: n });
|
|
1292
1292
|
};
|
|
1293
|
-
var
|
|
1293
|
+
var Pi = Kc;
|
|
1294
1294
|
var Gr = (e, t) => {
|
|
1295
1295
|
let r = rr(e, t);
|
|
1296
1296
|
if (r >= 0)
|
|
@@ -1302,165 +1302,165 @@ var require_main_min = __commonJS({
|
|
|
1302
1302
|
if (o >= 0)
|
|
1303
1303
|
return o;
|
|
1304
1304
|
}
|
|
1305
|
-
return
|
|
1305
|
+
return nt(e) && $(t) && Object.keys(t).length >= 1 ? Dt(e, t) : nt(e) && !J(e.default) && $(e.default) && Object.keys(e.default).length >= 1 ? Dt(e, e.default) : null;
|
|
1306
1306
|
};
|
|
1307
1307
|
var rr = (e, t) => e.oneOf.findIndex((r) => !J(t) && _(t, r));
|
|
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) => Jc(o).reduce((a, [n, s]) => ye(s) && s.const === t[n] ? a + 2 : Jt(s) && typeof t[n] != "undefined" ? a + 1 : a, 0));
|
|
1312
1312
|
return r.every((o) => o === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function Jc(e) {
|
|
1315
1315
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1316
1316
|
}
|
|
1317
1317
|
var $o = (e, t, r = {}) => {
|
|
1318
|
-
let { defaultTitle: o = "", defaultDescription:
|
|
1318
|
+
let { defaultTitle: o = "", defaultDescription: a = "", defaultIcon: n, defaultImage: s } = r, l = Ye({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Ei }), u = Ye({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Ei }), c = Ye({ schema: e, model: t, providesProp: "providesIcon", getValueFromSchema: (g) => {
|
|
1319
1319
|
var f;
|
|
1320
1320
|
return (f = g.icon) != null ? f : null;
|
|
1321
1321
|
} }), d = Ye({ schema: e, model: t, providesProp: "providesImage", getValueFromSchema: (g) => {
|
|
1322
1322
|
var f;
|
|
1323
1323
|
return (f = g.image) != null ? f : null;
|
|
1324
1324
|
} });
|
|
1325
|
-
return { value: t, title: l || o, description: u ||
|
|
1325
|
+
return { value: t, title: l || o, description: u || a, icon: c || n, image: d || s };
|
|
1326
1326
|
};
|
|
1327
1327
|
var Ye = (e) => {
|
|
1328
|
-
let { schema: t, model: r, providesProp: o, getValueFromSchema:
|
|
1329
|
-
if (
|
|
1330
|
-
return
|
|
1328
|
+
let { schema: t, model: r, providesProp: o, getValueFromSchema: a } = e;
|
|
1329
|
+
if (Qc(t.summary, o))
|
|
1330
|
+
return a(t, r);
|
|
1331
1331
|
switch (it(t)) {
|
|
1332
1332
|
case "object":
|
|
1333
|
-
return Jc(e);
|
|
1334
|
-
case "oneOf":
|
|
1335
1333
|
return Xc(e);
|
|
1336
|
-
case "
|
|
1334
|
+
case "oneOf":
|
|
1337
1335
|
return Yc(e);
|
|
1336
|
+
case "allOf":
|
|
1337
|
+
return Zc(e);
|
|
1338
1338
|
default:
|
|
1339
1339
|
return null;
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
-
var
|
|
1342
|
+
var Xc = (e) => {
|
|
1343
1343
|
let { schema: t, model: r } = e, o = t;
|
|
1344
|
-
for (let
|
|
1345
|
-
let
|
|
1344
|
+
for (let a in o.properties) {
|
|
1345
|
+
let n = o.properties[a], s = $(r) && a in r ? r[a] : null, l = Ye(b(i({}, e), { schema: n, model: s }));
|
|
1346
1346
|
if (l)
|
|
1347
1347
|
return l;
|
|
1348
1348
|
}
|
|
1349
1349
|
return null;
|
|
1350
1350
|
};
|
|
1351
|
-
var
|
|
1351
|
+
var Yc = (e) => {
|
|
1352
1352
|
let { schema: t, model: r } = e;
|
|
1353
|
-
if (
|
|
1353
|
+
if (nt(t)) {
|
|
1354
1354
|
if (!$(r))
|
|
1355
1355
|
return null;
|
|
1356
|
-
let
|
|
1357
|
-
if (
|
|
1356
|
+
let n = Dt(t, r);
|
|
1357
|
+
if (n === null || n < 0)
|
|
1358
1358
|
return null;
|
|
1359
|
-
let s = t.oneOf[
|
|
1359
|
+
let s = t.oneOf[n];
|
|
1360
1360
|
return Ye(b(i({}, e), { schema: s }));
|
|
1361
1361
|
}
|
|
1362
|
-
let o = t,
|
|
1363
|
-
return
|
|
1362
|
+
let o = t, a = Gr(o, r);
|
|
1363
|
+
return a === null || a < 0 ? null : Ye(b(i({}, e), { schema: o.oneOf[a] }));
|
|
1364
1364
|
};
|
|
1365
|
-
var
|
|
1365
|
+
var Zc = (e) => {
|
|
1366
1366
|
let { schema: t } = e, r = t;
|
|
1367
1367
|
for (let o of r.allOf) {
|
|
1368
|
-
let
|
|
1369
|
-
if (
|
|
1370
|
-
return
|
|
1368
|
+
let a = Ye(b(i({}, e), { schema: o }));
|
|
1369
|
+
if (a)
|
|
1370
|
+
return a;
|
|
1371
1371
|
}
|
|
1372
1372
|
return null;
|
|
1373
1373
|
};
|
|
1374
|
-
var
|
|
1375
|
-
var
|
|
1374
|
+
var Ei = (e, t) => ye(e) ? e.title ? e.title : k(e.const) ? e.const : null : Tr(t) ? t : null;
|
|
1375
|
+
var Qc = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1376
1376
|
var ge = require("react/jsx-runtime");
|
|
1377
|
-
var
|
|
1378
|
-
let [
|
|
1377
|
+
var ed = ({ schema: e, model: t, errors: r, submitted: o, onChange: a }) => {
|
|
1378
|
+
let [n, 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.");
|
|
1381
1381
|
return t ? t.map((h) => $o(e.items, h, e == null ? void 0 : e.summary)) : null;
|
|
1382
1382
|
}), [c, d] = (0, $r.useState)({ item: null, model: null }), g = (h) => {
|
|
1383
1383
|
let F = h ? h.map(({ value: w }) => w) : null;
|
|
1384
|
-
|
|
1384
|
+
a({ model: F, triggerSchema: e.items, triggerModel: F });
|
|
1385
1385
|
}, f = () => {
|
|
1386
1386
|
s("add");
|
|
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 = td(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)(
|
|
1394
|
+
}, { formatMessage: S } = (0, Ii.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)(xi, { item: h, onClick: () => m(h) }, JSON.stringify(h))), (0, ge.jsx)(Lt.NavigationOption, { onClick: f, media: (0, ge.jsx)(ki.Plus, {}), title: e.addItemTitle || S(dt.addItemTitle) }), (0, ge.jsx)(Lt.Modal, { open: n !== null, onClose: y, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || S(dt.addItemTitle), body: (0, ge.jsx)(Pi, { type: n != null ? n : "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 td = (e, { originalItem: t, updatedItem: r, itemSummaries: o }) => {
|
|
1398
1398
|
if (e === "remove")
|
|
1399
|
-
return (o || []).filter((
|
|
1399
|
+
return (o || []).filter((a) => a !== t);
|
|
1400
1400
|
if (!r)
|
|
1401
1401
|
return o;
|
|
1402
1402
|
switch (e) {
|
|
1403
1403
|
case "add":
|
|
1404
1404
|
return [...o || [], r];
|
|
1405
1405
|
case "edit":
|
|
1406
|
-
return (o || []).map((
|
|
1406
|
+
return (o || []).map((a) => a === t ? r : a);
|
|
1407
1407
|
default:
|
|
1408
1408
|
return null;
|
|
1409
1409
|
}
|
|
1410
1410
|
};
|
|
1411
|
-
var
|
|
1411
|
+
var Di = ed;
|
|
1412
1412
|
var _o = require("react/jsx-runtime");
|
|
1413
|
-
var
|
|
1413
|
+
var Li = (e) => {
|
|
1414
1414
|
let { schema: t } = e;
|
|
1415
|
-
if (
|
|
1415
|
+
if (Mn(t))
|
|
1416
1416
|
return (0, _o.jsx)(Go, b(i({}, e), { schema: t }));
|
|
1417
1417
|
if (Oe(t))
|
|
1418
|
-
return (0, _o.jsx)(
|
|
1418
|
+
return (0, _o.jsx)(Di, b(i({}, e), { schema: t }));
|
|
1419
1419
|
throw new Error("Invalid array list schema");
|
|
1420
1420
|
};
|
|
1421
|
-
|
|
1422
|
-
var
|
|
1423
|
-
var
|
|
1424
|
-
var
|
|
1421
|
+
Li.defaultProps = { errors: null, required: false };
|
|
1422
|
+
var Ti = Li;
|
|
1423
|
+
var Ri = require("react/jsx-runtime");
|
|
1424
|
+
var Ni = (e) => {
|
|
1425
1425
|
let { schema: t } = e;
|
|
1426
1426
|
if (Oe(t))
|
|
1427
|
-
return (0,
|
|
1427
|
+
return (0, Ri.jsx)(Ti, i({}, e));
|
|
1428
1428
|
throw new Error("Not implemented");
|
|
1429
1429
|
};
|
|
1430
|
-
|
|
1431
|
-
var Wo =
|
|
1432
|
-
var
|
|
1430
|
+
Ni.defaultProps = { required: false };
|
|
1431
|
+
var Wo = Ni;
|
|
1432
|
+
var Bi = qe(st());
|
|
1433
1433
|
var _r = require("react");
|
|
1434
1434
|
var je = require("react/jsx-runtime");
|
|
1435
|
-
var
|
|
1436
|
-
var
|
|
1435
|
+
var rd = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1436
|
+
var ji = (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 }));
|
|
1439
|
-
},
|
|
1439
|
+
}, a = (c) => e.schema.required && e.schema.required.includes(c);
|
|
1440
1440
|
(0, _r.useEffect)(() => {
|
|
1441
1441
|
let c = ie(t, e.schema) || {};
|
|
1442
1442
|
r(c), Ke(c, t) || e.onChange({ model: c, triggerSchema: e.schema, triggerModel: c });
|
|
1443
1443
|
}, [e.schema]);
|
|
1444
|
-
let
|
|
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,
|
|
1444
|
+
let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (c) => typeof e.schema.properties[c] != "undefined", l = Array.from(n).filter(s), u = e.errors;
|
|
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, Bi.default)(rd(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: a(c), disabled: e.disabled, onChange: (d) => o(c, d), onPersistAsync: e.onPersistAsync }) }, c)) })] });
|
|
1446
1446
|
};
|
|
1447
|
-
|
|
1448
|
-
var or =
|
|
1449
|
-
var
|
|
1447
|
+
ji.defaultProps = { hideTitle: false, disabled: false };
|
|
1448
|
+
var or = ji;
|
|
1449
|
+
var Zi = qe(st());
|
|
1450
1450
|
var ke = require("react");
|
|
1451
1451
|
var Wr = require("@transferwise/components");
|
|
1452
|
-
var
|
|
1453
|
-
var
|
|
1454
|
-
var
|
|
1452
|
+
var zi = require("react-intl");
|
|
1453
|
+
var Vi = require("react-intl");
|
|
1454
|
+
var Ui = (0, Vi.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
|
|
1457
|
-
let t = (0,
|
|
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(
|
|
1456
|
+
var od = (e) => {
|
|
1457
|
+
let t = (0, zi.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(Ui.helpAria) });
|
|
1459
1459
|
};
|
|
1460
|
-
var Ve =
|
|
1461
|
-
var
|
|
1460
|
+
var Ve = od;
|
|
1461
|
+
var Ji = require("react");
|
|
1462
1462
|
var W = require("@transferwise/components");
|
|
1463
|
-
var
|
|
1463
|
+
var $i = require("react");
|
|
1464
1464
|
var Tt = (e, t = {}) => {
|
|
1465
1465
|
let { coerceValue: r = false } = t;
|
|
1466
1466
|
if (!M(e)) {
|
|
@@ -1496,7 +1496,7 @@ var require_main_min = __commonJS({
|
|
|
1496
1496
|
}
|
|
1497
1497
|
return e;
|
|
1498
1498
|
};
|
|
1499
|
-
var
|
|
1499
|
+
var Hi = (e, t = {}) => {
|
|
1500
1500
|
let { coerceValue: r = false } = t;
|
|
1501
1501
|
if (M(e))
|
|
1502
1502
|
return false;
|
|
@@ -1508,7 +1508,7 @@ var require_main_min = __commonJS({
|
|
|
1508
1508
|
}
|
|
1509
1509
|
return e;
|
|
1510
1510
|
};
|
|
1511
|
-
var
|
|
1511
|
+
var qi = (e) => {
|
|
1512
1512
|
if (!M(e)) {
|
|
1513
1513
|
if (!(e instanceof Date) && !k(e)) {
|
|
1514
1514
|
ut({ received: typeof e, expected: "string or Date" });
|
|
@@ -1517,12 +1517,12 @@ var require_main_min = __commonJS({
|
|
|
1517
1517
|
return e;
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
|
-
var
|
|
1520
|
+
var Gi = (e) => {
|
|
1521
1521
|
if (M(e))
|
|
1522
1522
|
return null;
|
|
1523
1523
|
if (!k(e))
|
|
1524
1524
|
return ut({ received: typeof e, expected: "string", fallback: "null" }), null;
|
|
1525
|
-
let t =
|
|
1525
|
+
let t = Cn(e);
|
|
1526
1526
|
return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
|
|
1527
1527
|
};
|
|
1528
1528
|
var Xo = ({ received: e, expected: t }) => {
|
|
@@ -1532,7 +1532,7 @@ var require_main_min = __commonJS({
|
|
|
1532
1532
|
console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Falling back to ${r}`);
|
|
1533
1533
|
};
|
|
1534
1534
|
var X = require("react/jsx-runtime");
|
|
1535
|
-
var Nt = class extends
|
|
1535
|
+
var Nt = class extends $i.PureComponent {
|
|
1536
1536
|
constructor(r) {
|
|
1537
1537
|
super(r);
|
|
1538
1538
|
this.getAutocompleteStatus = () => this.props.autoComplete ? "on" : "disabled";
|
|
@@ -1553,8 +1553,8 @@ var require_main_min = __commonJS({
|
|
|
1553
1553
|
this.getSelectedOption = (r2) => {
|
|
1554
1554
|
if (this.state.selectedOption !== null && typeof this.state.selectedOption != "undefined")
|
|
1555
1555
|
return r2.find((o) => {
|
|
1556
|
-
var
|
|
1557
|
-
return ((
|
|
1556
|
+
var a;
|
|
1557
|
+
return ((a = this.state.selectedOption) == null ? void 0 : a.value) === o.value;
|
|
1558
1558
|
});
|
|
1559
1559
|
if (this.props.value !== null && typeof this.props.value != "undefined")
|
|
1560
1560
|
return r2.find((o) => this.props.value === o.value);
|
|
@@ -1567,12 +1567,12 @@ var require_main_min = __commonJS({
|
|
|
1567
1567
|
}
|
|
1568
1568
|
render() {
|
|
1569
1569
|
var G;
|
|
1570
|
-
let { name: r, placeholder: o, step:
|
|
1570
|
+
let { name: r, placeholder: o, step: a, countryCode: n, type: s, options: l, disabled: u, readOnly: c, required: d, minLength: g, maxLength: f, min: m, max: p, searchPlaceholder: y, searchValue: S, onSearchChange: h, size: F, uploadProps: w, label: v, monthFormat: O, id: C, minDate: D, maxDate: T, value: P, mode: N } = this.props;
|
|
1571
1571
|
switch (s) {
|
|
1572
1572
|
case B.RADIO:
|
|
1573
1573
|
return (0, X.jsx)(W.RadioGroup, { radios: l.map(this.mapOption), name: r, selectedValue: Jo(P, { coerceValue: true }), onChange: this.handleOnChange });
|
|
1574
1574
|
case B.CHECKBOX:
|
|
1575
|
-
return (0, X.jsx)(W.Checkbox, { checked:
|
|
1575
|
+
return (0, X.jsx)(W.Checkbox, { checked: Hi(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
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) => {
|
|
@@ -1586,7 +1586,7 @@ var require_main_min = __commonJS({
|
|
|
1586
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
|
-
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:
|
|
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: a, type: "number", value: Jo(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (A) => {
|
|
1590
1590
|
this.props.onChange(parseFloat(A.target.value));
|
|
1591
1591
|
}, onFocus: this.handleOnFocus, onWheel: (A) => {
|
|
1592
1592
|
A.target instanceof HTMLElement && A.target.blur();
|
|
@@ -1597,13 +1597,13 @@ var require_main_min = __commonJS({
|
|
|
1597
1597
|
return (0, X.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: C, placeholder: o, readOnly: c, required: d, type: "password", value: Tt(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus });
|
|
1598
1598
|
case B.DATE:
|
|
1599
1599
|
case B.DATETIME:
|
|
1600
|
-
return (0, X.jsx)(W.DateInput, { disabled: u, size: F, value:
|
|
1600
|
+
return (0, X.jsx)(W.DateInput, { disabled: u, size: F, value: qi(P), mode: N, monthFormat: O, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1601
1601
|
case B.DATELOOKUP:
|
|
1602
|
-
return (0, X.jsx)(W.DateLookup, { value:
|
|
1603
|
-
this.handleOnChange(
|
|
1602
|
+
return (0, X.jsx)(W.DateLookup, { value: Gi(P), min: D, max: T, placeholder: o, monthFormat: O, disabled: u, onChange: (A) => {
|
|
1603
|
+
this.handleOnChange(xn(A));
|
|
1604
1604
|
}, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1605
1605
|
case B.TEL:
|
|
1606
|
-
return (0, X.jsx)(W.PhoneNumberInput, { disabled: u, countryCode:
|
|
1606
|
+
return (0, X.jsx)(W.PhoneNumberInput, { disabled: u, countryCode: n, placeholder: o, required: d, searchPlaceholder: y, size: F, initialValue: Tt(P), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1607
1607
|
case B.TEXTAREA: {
|
|
1608
1608
|
let A = { className: "form-control tw-form-control", id: C, name: r, placeholder: o, value: Tt(P, { coerceValue: true }), readOnly: c, required: d, minLength: g, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: u, autoComplete: this.getAutocompleteStatus() };
|
|
1609
1609
|
return this.props.displayPattern ? (0, X.jsx)(W.TextareaWithDisplayFormat, b(i({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, X.jsx)("textarea", b(i({}, A), { onChange: this.handleInputOnChange }));
|
|
@@ -1626,35 +1626,35 @@ var require_main_min = __commonJS({
|
|
|
1626
1626
|
}
|
|
1627
1627
|
};
|
|
1628
1628
|
var Se = Nt;
|
|
1629
|
-
Se.Type = B, Se.Size =
|
|
1629
|
+
Se.Type = B, Se.Size = jn, Se.MonthFormat = Bn, Se.DateMode = Rn, Se.defaultProps = { autoComplete: true, countryCode: null, disabled: false, displayPattern: null, id: null, label: "", max: null, maxDate: null, maxLength: null, min: null, minDate: null, minLength: null, mode: Nt.DateMode.DAY_MONTH_YEAR, monthFormat: Nt.MonthFormat.LONG, onBlur: null, onFocus: null, onSearchChange: null, options: [], placeholder: null, readOnly: false, required: false, searchPlaceholder: null, searchValue: "", selectedOption: null, size: Nt.Size.MEDIUM, step: 1, type: Nt.Type.TEXT, uploadProps: {}, value: null };
|
|
1630
1630
|
var Ze = require("@transferwise/components");
|
|
1631
1631
|
var be = require("react/jsx-runtime");
|
|
1632
|
-
var
|
|
1632
|
+
var _i = (e, t) => {
|
|
1633
1633
|
switch (t) {
|
|
1634
1634
|
case "select":
|
|
1635
1635
|
return nd(e);
|
|
1636
1636
|
case "radio":
|
|
1637
1637
|
default:
|
|
1638
|
-
return
|
|
1638
|
+
return ad(e);
|
|
1639
1639
|
}
|
|
1640
1640
|
};
|
|
1641
|
-
var
|
|
1642
|
-
var nd = (e) => i(i(i(i(i({ label: e.title, value: e.const },
|
|
1643
|
-
var
|
|
1644
|
-
var
|
|
1645
|
-
var
|
|
1641
|
+
var ad = (e) => i(i(i({ label: e.title, value: e.const }, Wi(e.title, e.description)), Rt(e)), Ki(e.disabled));
|
|
1642
|
+
var nd = (e) => i(i(i(i(i({ label: e.title, value: e.const }, Wi(e.title, e.description)), md(e.icon)), sd(e.image)), Ki(e.disabled)), id(e.keywords));
|
|
1643
|
+
var id = (e) => z(e) ? { searchStrings: e } : {};
|
|
1644
|
+
var sd = (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 md = (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
|
-
var
|
|
1648
|
+
var Wi = (e, t) => {
|
|
1649
1649
|
if (e && t)
|
|
1650
1650
|
return { [(e + t).length > 50 ? "secondary" : "note"]: t };
|
|
1651
1651
|
};
|
|
1652
|
-
var
|
|
1652
|
+
var Ki = (e) => {
|
|
1653
1653
|
if (!J(e) && !M(e))
|
|
1654
1654
|
return { disabled: e };
|
|
1655
1655
|
};
|
|
1656
|
-
var
|
|
1657
|
-
var
|
|
1656
|
+
var Yi = require("react/jsx-runtime");
|
|
1657
|
+
var ld = (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,25 +1675,25 @@ var require_main_min = __commonJS({
|
|
|
1675
1675
|
}
|
|
1676
1676
|
return e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1677
1677
|
};
|
|
1678
|
-
var
|
|
1679
|
-
var
|
|
1680
|
-
let { id: t, schema: r, value: o, disabled:
|
|
1681
|
-
|
|
1678
|
+
var cd = (e, t) => e.oneOf ? e.oneOf.map((r) => _i(r, t)) : null;
|
|
1679
|
+
var Xi = (e) => {
|
|
1680
|
+
let { id: t, schema: r, value: o, disabled: a, onChange: n, onFocus: s, onBlur: l, onSearchChange: u } = e, c = xt(), d = (h) => ld(r.type) && (M(h) || J(h)) ? "" : h, g = (h, F) => {
|
|
1681
|
+
n($e(h, r), F);
|
|
1682
1682
|
}, f = Yo(r);
|
|
1683
|
-
(0,
|
|
1684
|
-
|
|
1683
|
+
(0, Ji.useEffect)(() => {
|
|
1684
|
+
dd(r, c, f);
|
|
1685
1685
|
}, [JSON.stringify(r), c, f]);
|
|
1686
|
-
let m = r.values ||
|
|
1687
|
-
return (0,
|
|
1686
|
+
let m = r.values || cd(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: a || r.disabled, displayPattern: r.displayFormat, uploadProps: Kr(r) };
|
|
1687
|
+
return (0, Yi.jsx)(Se, i(i({ type: f, value: y }, p), S));
|
|
1688
1688
|
};
|
|
1689
|
-
|
|
1690
|
-
var
|
|
1689
|
+
Xi.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1690
|
+
var dd = (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
|
-
var
|
|
1693
|
+
var ar = Xi;
|
|
1694
1694
|
var oe = require("react/jsx-runtime");
|
|
1695
|
-
var
|
|
1696
|
-
let t = Q(), [r, o] = (0, ke.useState)(false), [
|
|
1695
|
+
var Qi = (e) => {
|
|
1696
|
+
let t = Q(), [r, o] = (0, ke.useState)(false), [a, n] = (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)(yd(e.model, e.schema.oneOf)), m = Dn(t, 200), p = (C) => {
|
|
1697
1697
|
m("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: C.length });
|
|
1698
1698
|
};
|
|
1699
1699
|
if ((0, ke.useEffect)(() => {
|
|
@@ -1704,9 +1704,9 @@ var require_main_min = __commonJS({
|
|
|
1704
1704
|
let y = (C, D) => {
|
|
1705
1705
|
f([...g.slice(0, C), D.model, ...g.slice(C + 1)]), o(true), e.onChange(D);
|
|
1706
1706
|
}, S = () => {
|
|
1707
|
-
|
|
1707
|
+
n(true);
|
|
1708
1708
|
}, h = () => {
|
|
1709
|
-
|
|
1709
|
+
n(false), l(true);
|
|
1710
1710
|
}, F = (C, D) => {
|
|
1711
1711
|
d(C);
|
|
1712
1712
|
let T = e.schema.oneOf[C];
|
|
@@ -1716,151 +1716,151 @@ 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,
|
|
1719
|
+
}, w = hd(e.schema), v = pd(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, Zi.default)(O), children: [ud(e.schema, u), (0, oe.jsx)(ar, { id: u, schema: w, value: c, disabled: e.disabled, onChange: F, onFocus: S, onBlur: h, onSearchChange: p }), (0, oe.jsx)(Be, { changed: r, focused: a, blurred: s, submitted: e.submitted, errors: fd(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
|
|
1722
|
+
function ud(e, t) {
|
|
1723
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 pd(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 fd(e) {
|
|
1731
1731
|
return typeof e == "string" ? e : null;
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function yd(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 hd(e) {
|
|
1737
|
+
return b(i({}, e), { oneOf: e.oneOf.map(gd) });
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1740
|
-
let { title: r, description: o, disabled:
|
|
1741
|
-
return { title: r, description: o, disabled:
|
|
1739
|
+
function gd(e, t) {
|
|
1740
|
+
let { title: r, description: o, disabled: a = false, icon: n, image: s, keywords: l } = e;
|
|
1741
|
+
return { title: r, description: o, disabled: a, icon: n, image: s, const: t, keywords: l };
|
|
1742
1742
|
}
|
|
1743
|
-
|
|
1744
|
-
var Zo =
|
|
1745
|
-
var
|
|
1743
|
+
Qi.defaultProps = { required: false, disabled: false };
|
|
1744
|
+
var Zo = Qi;
|
|
1745
|
+
var os = qe(st());
|
|
1746
1746
|
var pt = require("react");
|
|
1747
1747
|
var Jr = require("@transferwise/components");
|
|
1748
|
-
var
|
|
1749
|
-
var
|
|
1750
|
-
var
|
|
1751
|
-
let { id: t, httpClient: r = fetch, httpOptions: o, fileId:
|
|
1752
|
-
return (0,
|
|
1753
|
-
};
|
|
1754
|
-
var
|
|
1755
|
-
var
|
|
1756
|
-
let [t, r] = (0, pt.useState)({}), [o,
|
|
1748
|
+
var es = require("react");
|
|
1749
|
+
var rs = require("react/jsx-runtime");
|
|
1750
|
+
var ts = (e) => {
|
|
1751
|
+
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: a, idProperty: n, usAccept: s, maxSize: l, usPlaceholder: u, onSuccess: c, onFailure: d, onCancel: g } = e, f = Q(), m = (0, es.useMemo)(() => a ? [{ id: a, status: Jr.Status.SUCCEEDED }] : [], [a]), p = (y) => (f("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(`${o.url}`, { method: o.method || "POST", body: y }).then((S) => S.ok ? (c && c(S.clone()), S.json().then((h) => ({ id: h[n] }))) : (d && d({ response: S }), Promise.reject())));
|
|
1752
|
+
return (0, rs.jsx)(Jr.UploadInput, { id: t, fileInputName: o.fileInputName, files: m, uploadButtonTitle: e.usLabel, sizeLimit: l ? Ir(l) : void 0, fileTypes: s, description: u, onUploadFile: p, onDeleteFile: (y) => (g && g(), Promise.resolve()) });
|
|
1753
|
+
};
|
|
1754
|
+
var nr = require("react/jsx-runtime");
|
|
1755
|
+
var as = (e) => {
|
|
1756
|
+
let [t, r] = (0, pt.useState)({}), [o, a] = (0, pt.useState)(null), [n, s] = (0, pt.useState)([]), [l, u] = (0, pt.useState)(false), c = ee(), d = Q();
|
|
1757
1757
|
(0, pt.useEffect)(() => {
|
|
1758
1758
|
e.submitted && s(_e(e.model, e.schema, !!e.required));
|
|
1759
1759
|
}, [e.model, e.submitted]);
|
|
1760
1760
|
let f = async (w, v) => {
|
|
1761
|
-
let O = await w.json(), C =
|
|
1761
|
+
let O = await w.json(), C = ta(e.schema.persistAsync.idProperty, O);
|
|
1762
1762
|
e.onChange({ model: C, triggerSchema: e.schema, triggerModel: C }), u(true), d("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
|
|
1763
1763
|
}, m = async (w) => {
|
|
1764
1764
|
if (w.response && xr(w.response.status)) {
|
|
1765
1765
|
let v = await w.response.json();
|
|
1766
|
-
r(v.validation || {}),
|
|
1766
|
+
r(v.validation || {}), a([e.schema.persistAsync.param]);
|
|
1767
1767
|
}
|
|
1768
1768
|
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true), d("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
|
|
1769
1769
|
}, p = () => {
|
|
1770
|
-
|
|
1771
|
-
}, { url: y, method: S } = e.schema.persistAsync, h = o ||
|
|
1772
|
-
return (0,
|
|
1770
|
+
a(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true);
|
|
1771
|
+
}, { url: y, method: S } = e.schema.persistAsync, h = o || n, F = { "form-group": true, "has-error": (e.submitted || l) && !!h.length };
|
|
1772
|
+
return (0, nr.jsxs)("div", { className: (0, os.default)(F), children: [(0, nr.jsx)(ts, i({ id: e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, fileId: e.model, idProperty: e.schema.persistAsync.idProperty, animationDelay: 0, maxSize: e.schema.persistAsync.schema.maxSize, usLabel: e.schema.title || e.schema.persistAsync.schema.title, usPlaceholder: e.schema.description || e.schema.persistAsync.schema.description, httpOptions: { url: y, method: S, fileInputName: e.schema.persistAsync.param }, httpClient: c, onSuccess: f, onFailure: m, onCancel: p }, Kr(e.schema.persistAsync.schema))), (0, nr.jsx)(Be, { blurred: true, focused: false, changed: l, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: h, validationMessages: i({ required: "Value is required..." }, t), infoMessage: null })] });
|
|
1773
1773
|
};
|
|
1774
|
-
|
|
1775
|
-
var
|
|
1776
|
-
var
|
|
1774
|
+
as.defaultProps = { required: false };
|
|
1775
|
+
var ea = as;
|
|
1776
|
+
var ra = require("react/jsx-runtime");
|
|
1777
1777
|
var ns = (e) => {
|
|
1778
1778
|
let { schema: t } = e;
|
|
1779
|
-
return t.persistAsync.schema.type === "blob" ? (0,
|
|
1779
|
+
return t.persistAsync.schema.type === "blob" ? (0, ra.jsx)(ea, i({}, e)) : (0, ra.jsx)(Qo, i({}, e));
|
|
1780
1780
|
};
|
|
1781
1781
|
ns.defaultProps = { required: false };
|
|
1782
|
-
var
|
|
1783
|
-
var
|
|
1784
|
-
var
|
|
1782
|
+
var oa = ns;
|
|
1783
|
+
var ys = require("react");
|
|
1784
|
+
var is = (e, t) => {
|
|
1785
1785
|
let r = Dt(e, t);
|
|
1786
1786
|
return r !== null ? e.oneOf[r].promoted ? "promoted" : "other" : null;
|
|
1787
1787
|
};
|
|
1788
|
-
var
|
|
1789
|
-
var
|
|
1790
|
-
var
|
|
1791
|
-
let { id: t, selection: r, setSelection: o } = e, { promoted:
|
|
1792
|
-
return (0,
|
|
1788
|
+
var ss = require("@transferwise/components");
|
|
1789
|
+
var aa = require("react/jsx-runtime");
|
|
1790
|
+
var ms = (e) => {
|
|
1791
|
+
let { id: t, selection: r, setSelection: o } = e, { promoted: a, other: n, checkedMeans: s } = e.promotion, l = s === "other" ? n.title : (a == null ? void 0 : a.title) || e.promotedOneOf.title, u = s === "other" ? "other" : "promoted", c = s === "other" ? "promoted" : "other", d = r === u;
|
|
1792
|
+
return (0, aa.jsx)("div", { className: "form-group", children: (0, aa.jsx)(ss.Checkbox, { id: t, label: l, checked: d, onChange: () => {
|
|
1793
1793
|
o(d ? c : u);
|
|
1794
1794
|
} }) });
|
|
1795
1795
|
};
|
|
1796
|
-
|
|
1797
|
-
var
|
|
1798
|
-
var
|
|
1796
|
+
ms.defaultProps = {};
|
|
1797
|
+
var ls = ms;
|
|
1798
|
+
var cs = require("@transferwise/components");
|
|
1799
1799
|
var ir = require("react/jsx-runtime");
|
|
1800
|
-
var
|
|
1800
|
+
var ds = (e) => {
|
|
1801
1801
|
var u, c;
|
|
1802
|
-
let { id: t, selection: r, setSelection: o, promotion:
|
|
1803
|
-
return (0, ir.jsxs)("div", { className: "form-group", children: [s && (0, ir.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, ir.jsx)(
|
|
1802
|
+
let { id: t, selection: r, setSelection: o, promotion: a, promotedOneOf: n, title: s } = e, l = [i({ value: "promoted", label: ((u = a.promoted) == null ? void 0 : u.title) || n.title, secondary: ((c = a.promoted) == null ? void 0 : c.description) || n.description }, Rt(n)), i({ value: "other", label: a.other.title, secondary: a.other.description }, Rt(a.other))];
|
|
1803
|
+
return (0, ir.jsxs)("div", { className: "form-group", children: [s && (0, ir.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, ir.jsx)(cs.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: l, id: t, onChange: o })] });
|
|
1804
1804
|
};
|
|
1805
|
-
|
|
1806
|
-
var
|
|
1805
|
+
ds.defaultProps = { title: void 0 };
|
|
1806
|
+
var us = ds;
|
|
1807
1807
|
var Bt = require("react/jsx-runtime");
|
|
1808
|
-
var
|
|
1808
|
+
var ps = (e) => {
|
|
1809
1809
|
switch (e.promotion.control || "radio") {
|
|
1810
1810
|
case "radio":
|
|
1811
|
-
return (0, Bt.jsx)(
|
|
1811
|
+
return (0, Bt.jsx)(us, i({}, e));
|
|
1812
1812
|
case "checkbox":
|
|
1813
|
-
return (0, Bt.jsx)(
|
|
1813
|
+
return (0, Bt.jsx)(ls, i({}, e));
|
|
1814
1814
|
default:
|
|
1815
1815
|
return (0, Bt.jsx)(Bt.Fragment, {});
|
|
1816
1816
|
}
|
|
1817
1817
|
};
|
|
1818
|
-
|
|
1819
|
-
var
|
|
1818
|
+
ps.defaultProps = { id: Me(), title: void 0 };
|
|
1819
|
+
var fs = ps;
|
|
1820
1820
|
var Ue = require("react/jsx-runtime");
|
|
1821
|
-
var
|
|
1822
|
-
var
|
|
1821
|
+
var hs = (e) => e.promoted === true;
|
|
1822
|
+
var Sd = (e) => {
|
|
1823
1823
|
var l;
|
|
1824
|
-
let [t, r] = (0,
|
|
1825
|
-
return (0, Ue.jsxs)(Ue.Fragment, { children: [o && (0, Ue.jsx)(se, { component: o }), (0, Ue.jsx)(
|
|
1824
|
+
let [t, r] = (0, ys.useState)(is(e.schema, e.model) || ((l = e.schema.promotion) == null ? void 0 : l.default) || "promoted"), o = e.schema.alert, a = e.schema.oneOf.find(hs), n = bd(a), s = wd(e.schema);
|
|
1825
|
+
return (0, Ue.jsxs)(Ue.Fragment, { children: [o && (0, Ue.jsx)(se, { component: o }), (0, Ue.jsx)(fs, { id: e.schema.$id, title: e.schema.title, promotedOneOf: a, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ue.jsx)(or, b(i({}, e), { schema: n })), t === "other" && (0, Ue.jsx)(ue, b(i({}, e), { schema: s }))] });
|
|
1826
1826
|
};
|
|
1827
|
-
function
|
|
1827
|
+
function bd(e) {
|
|
1828
1828
|
return b(i({}, e), { title: void 0, description: void 0 });
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1831
|
-
var o,
|
|
1832
|
-
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((s) => !
|
|
1830
|
+
function wd(e) {
|
|
1831
|
+
var o, a, n;
|
|
1832
|
+
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((s) => !hs(s)), r = (n = (a = e.promotion) == null ? void 0 : a.other.heading) == null ? void 0 : n.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
|
|
1835
|
+
var na = Sd;
|
|
1836
1836
|
var Xr = require("@transferwise/components");
|
|
1837
|
+
var Ss = require("react-intl");
|
|
1837
1838
|
var gs = require("react-intl");
|
|
1838
|
-
var
|
|
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." } });
|
|
1839
|
+
var ia = (0, gs.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
1840
|
var jt = require("react/jsx-runtime");
|
|
1841
|
-
var
|
|
1842
|
-
let { title: r = "" } = e, { formatMessage: o } = (0,
|
|
1843
|
-
return (0, jt.jsx)(Xr.DefinitionList, { layout: Xr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value:
|
|
1841
|
+
var Fd = ({ schema: e, model: t }) => {
|
|
1842
|
+
let { title: r = "" } = e, { formatMessage: o } = (0, Ss.useIntl)(), a = Cd({ schema: e, model: t, formatMessage: o });
|
|
1843
|
+
return (0, jt.jsx)(Xr.DefinitionList, { layout: Xr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: a, key: "" }] });
|
|
1844
1844
|
};
|
|
1845
|
-
var
|
|
1846
|
-
function
|
|
1847
|
-
return Te(e) ? fe(e) ?
|
|
1848
|
-
}
|
|
1849
|
-
function Cd(e, t) {
|
|
1850
|
-
let r = xd(e, t);
|
|
1851
|
-
return r ? Ad(r) : t;
|
|
1845
|
+
var sa = Fd;
|
|
1846
|
+
function Cd({ schema: e, model: t, formatMessage: r }) {
|
|
1847
|
+
return Te(e) ? fe(e) ? xd(e, t) : e.type === "boolean" && ve(t) ? r(t ? ia.yes : ia.no) : t && t.toString() || "" : "";
|
|
1852
1848
|
}
|
|
1853
1849
|
function xd(e, t) {
|
|
1850
|
+
let r = Ad(e, t);
|
|
1851
|
+
return r ? vd(r) : t;
|
|
1852
|
+
}
|
|
1853
|
+
function Ad(e, t) {
|
|
1854
1854
|
return e.oneOf.find((r) => "const" in r ? t === r.const : false);
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function vd(e) {
|
|
1857
1857
|
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Rt({ icon: e.icon });
|
|
1858
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
|
-
var
|
|
1862
|
-
var
|
|
1863
|
-
let { schema: t, model: r, required: o, submitted:
|
|
1861
|
+
var ws = require("react/jsx-runtime");
|
|
1862
|
+
var bs = (e) => {
|
|
1863
|
+
let { schema: t, model: r, required: o, submitted: a, errors: n, onChange: s } = e, [l, u] = (0, Ie.useState)(r), c = (0, Ie.useRef)(null), [d, g] = (0, Ie.useState)(null), [f, m] = (0, Ie.useState)(null), [p, y] = (0, Ie.useState)(false), [S, h] = (0, Ie.useState)(null), F = ee(), w = Q(), v = xt();
|
|
1864
1864
|
(0, Ie.useEffect)(() => {
|
|
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]);
|
|
@@ -1881,37 +1881,37 @@ var require_main_min = __commonJS({
|
|
|
1881
1881
|
let N = new AbortController();
|
|
1882
1882
|
return h(N), N.signal;
|
|
1883
1883
|
};
|
|
1884
|
-
return (0,
|
|
1884
|
+
return (0, ws.jsx)(ft, i({}, { submitted: a || p, model: l, errors: f || n, infoMessage: d, onChange: (N) => {
|
|
1885
1885
|
s(b(i({}, N), { triggerSchema: t, triggerModel: N.model })), m(null), g(null), u(N.model);
|
|
1886
1886
|
}, onBlur: () => {
|
|
1887
1887
|
!M(l) && !Ke(l, c.current) && _(l, t) && O(l, t.validationAsync);
|
|
1888
1888
|
}, required: o, schema: t }));
|
|
1889
1889
|
};
|
|
1890
|
-
|
|
1891
|
-
var
|
|
1890
|
+
bs.defaultProps = { required: false };
|
|
1891
|
+
var ma = bs;
|
|
1892
1892
|
var pe = require("react/jsx-runtime");
|
|
1893
|
-
var
|
|
1894
|
-
var
|
|
1895
|
-
let { schema: t, model: r = null, errors: o = null, hideTitle:
|
|
1896
|
-
switch ((0,
|
|
1897
|
-
|
|
1893
|
+
var Cs = require("react");
|
|
1894
|
+
var Od = (e) => {
|
|
1895
|
+
let { schema: t, model: r = null, errors: o = null, hideTitle: a = false, disabled: n = false } = e, s = b(i({}, e), { model: r, errors: o, hideTitle: a, disabled: n }), l = it(t), u = xt();
|
|
1896
|
+
switch ((0, Fs.useEffect)(() => {
|
|
1897
|
+
Pd(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
|
-
return (0, pe.jsx)(
|
|
1900
|
+
return (0, pe.jsx)(sa, i({}, s));
|
|
1901
1901
|
case "persistAsync":
|
|
1902
|
-
return (0, pe.jsx)(
|
|
1902
|
+
return (0, pe.jsx)(oa, i({}, s));
|
|
1903
1903
|
case "validationAsync":
|
|
1904
|
-
return (0, pe.jsx)(
|
|
1904
|
+
return (0, pe.jsx)(ma, i({}, s));
|
|
1905
1905
|
case "basic": {
|
|
1906
1906
|
let c = i({ infoMessage: null }, s);
|
|
1907
1907
|
return (0, pe.jsx)(ft, i({}, c));
|
|
1908
1908
|
}
|
|
1909
1909
|
case "object":
|
|
1910
|
-
return (0,
|
|
1910
|
+
return (0, Cs.createElement)(or, b(i({}, s), { key: JSON.stringify(t) }));
|
|
1911
1911
|
case "array":
|
|
1912
1912
|
return (0, pe.jsx)(Wo, i({}, s));
|
|
1913
1913
|
case "promotedOneOf":
|
|
1914
|
-
return (0, pe.jsx)(
|
|
1914
|
+
return (0, pe.jsx)(na, i({}, s));
|
|
1915
1915
|
case "oneOf":
|
|
1916
1916
|
return (0, pe.jsx)(Zo, i({}, s));
|
|
1917
1917
|
case "allOf":
|
|
@@ -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 = Od;
|
|
1923
|
+
var Pd = (e, t, r) => {
|
|
1924
1924
|
switch (it(e)) {
|
|
1925
1925
|
case "persistAsync":
|
|
1926
1926
|
return Dr(e) && Tr(t) && Xt(r);
|
|
@@ -1931,9 +1931,9 @@ 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) && kn(t) && Xt(r);
|
|
1935
1935
|
case "promotedOneOf":
|
|
1936
|
-
return
|
|
1936
|
+
return nt(e) && Do(t);
|
|
1937
1937
|
case "oneOf":
|
|
1938
1938
|
return fe(e);
|
|
1939
1939
|
case "allOf":
|
|
@@ -1942,208 +1942,208 @@ var require_main_min = __commonJS({
|
|
|
1942
1942
|
return false;
|
|
1943
1943
|
};
|
|
1944
1944
|
var yt = require("react/jsx-runtime");
|
|
1945
|
-
var
|
|
1945
|
+
var Md = (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)(Ed, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, yt.jsx)(ue, i({}, t)) });
|
|
1948
1948
|
};
|
|
1949
|
-
var sr =
|
|
1950
|
-
var
|
|
1951
|
-
var
|
|
1949
|
+
var sr = Md;
|
|
1950
|
+
var Ed = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, yt.jsx)(Er, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : xs, children: (0, yt.jsx)(Cr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : xs, children: (0, yt.jsx)(Pr, { baseUrl: e, children: o }) }) });
|
|
1951
|
+
var xs = () => {
|
|
1952
1952
|
};
|
|
1953
|
-
var
|
|
1954
|
-
var
|
|
1953
|
+
var la = require("react/jsx-runtime");
|
|
1954
|
+
var kd = (e) => {
|
|
1955
1955
|
let t = e.component, r = t.schema;
|
|
1956
|
-
return (0,
|
|
1956
|
+
return (0, la.jsx)("div", { className: U(t.margin || "md"), children: (0, la.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
|
|
1960
|
+
var ca = kd;
|
|
1961
1961
|
var Vt = require("react/jsx-runtime");
|
|
1962
|
-
var
|
|
1963
|
-
let { text: t, size: r = "md", align: o = "left", margin:
|
|
1962
|
+
var Id = (e) => {
|
|
1963
|
+
let { text: t, size: r = "md", align: o = "left", margin: a = "md" } = e.component, n = Ne({ align: o, margin: a });
|
|
1964
1964
|
switch (r) {
|
|
1965
1965
|
case "xs":
|
|
1966
|
-
return (0, Vt.jsx)("h5", { className:
|
|
1966
|
+
return (0, Vt.jsx)("h5", { className: n, children: t });
|
|
1967
1967
|
case "sm":
|
|
1968
|
-
return (0, Vt.jsx)("h4", { className:
|
|
1968
|
+
return (0, Vt.jsx)("h4", { className: n, children: t });
|
|
1969
1969
|
case "lg":
|
|
1970
|
-
return (0, Vt.jsx)("h2", { className:
|
|
1970
|
+
return (0, Vt.jsx)("h2", { className: n, children: t });
|
|
1971
1971
|
case "xl":
|
|
1972
|
-
return (0, Vt.jsx)("h1", { className:
|
|
1972
|
+
return (0, Vt.jsx)("h1", { className: n, children: t });
|
|
1973
1973
|
case "md":
|
|
1974
1974
|
default:
|
|
1975
|
-
return (0, Vt.jsx)("h3", { className:
|
|
1975
|
+
return (0, Vt.jsx)("h3", { className: n, children: t });
|
|
1976
1976
|
}
|
|
1977
1977
|
};
|
|
1978
|
-
var
|
|
1979
|
-
var
|
|
1978
|
+
var da = Id;
|
|
1979
|
+
var ua = require("@transferwise/components");
|
|
1980
1980
|
var mr = require("react/jsx-runtime");
|
|
1981
|
-
var
|
|
1981
|
+
var pa = ({ component: e }) => {
|
|
1982
1982
|
let { content: t, align: r, margin: o } = e;
|
|
1983
|
-
return (0, mr.jsx)("div", { className: Ne({ align: r, margin: o }), children: (0, mr.jsx)(
|
|
1983
|
+
return (0, mr.jsx)("div", { className: Ne({ align: r, margin: o }), children: (0, mr.jsx)(ua.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
|
|
1984
1984
|
};
|
|
1985
|
-
var
|
|
1986
|
-
var
|
|
1985
|
+
var fa = ({ component: e }) => (0, mr.jsx)("div", { className: Ne(e), children: (0, mr.jsx)(ua.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
|
|
1986
|
+
var As = require("@transferwise/components");
|
|
1987
1987
|
var Yr = require("react");
|
|
1988
|
-
var
|
|
1989
|
-
var
|
|
1990
|
-
let { url: t, size: r, text: o, margin:
|
|
1988
|
+
var ya = require("react/jsx-runtime");
|
|
1989
|
+
var Dd = ({ component: e }) => {
|
|
1990
|
+
let { url: t, size: r, text: o, margin: a, accessibilityDescription: n } = e, s = ee(), [l, u] = (0, Yr.useState)("");
|
|
1991
1991
|
(0, Yr.useEffect)(() => {
|
|
1992
|
-
|
|
1992
|
+
Td(s, t).then(u);
|
|
1993
1993
|
}, [t, s]);
|
|
1994
|
-
let c = { alt:
|
|
1995
|
-
return l ? (0,
|
|
1994
|
+
let c = { alt: n || o || "", src: l, stretch: true, shrink: true };
|
|
1995
|
+
return l ? (0, ya.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, ya.jsx)(As.Image, i({ className: `img-responsive ${U(a || "md")}` }, c)) }) : null;
|
|
1996
1996
|
};
|
|
1997
|
-
var
|
|
1997
|
+
var Ld = (e) => new Promise((t, r) => {
|
|
1998
1998
|
let o = new FileReader();
|
|
1999
|
-
o.addEventListener("loadend", () => t(o.result)), o.addEventListener("error", (
|
|
1999
|
+
o.addEventListener("loadend", () => t(o.result)), o.addEventListener("error", (a) => r(a)), o.readAsDataURL(e);
|
|
2000
2000
|
});
|
|
2001
|
-
var
|
|
2001
|
+
var Td = 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(Ld).catch(() => t) : t;
|
|
2009
2009
|
} catch (o) {
|
|
2010
2010
|
return t;
|
|
2011
2011
|
}
|
|
2012
2012
|
};
|
|
2013
|
-
var
|
|
2013
|
+
var ha = Dd;
|
|
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((
|
|
2016
|
+
var Nd = ["positive", "neutral"];
|
|
2017
|
+
var Rd = ["warning", "negative"];
|
|
2018
|
+
var Bd = ({ component: e }) => {
|
|
2019
|
+
let { items: t } = e, r = t.filter((a) => Nd.includes(a.context)).map(({ text: a }) => a), o = t.filter((a) => Rd.includes(a.context)).map(({ text: a }) => a);
|
|
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
|
|
2022
|
+
var ga = Bd;
|
|
2023
2023
|
var q = require("react/jsx-runtime");
|
|
2024
2024
|
var Y = (e) => JSON.stringify(e);
|
|
2025
|
-
var
|
|
2026
|
-
let { components: t, model: r, submitted: o, errors:
|
|
2025
|
+
var jd = (e) => {
|
|
2026
|
+
let { components: t, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: l, baseUrl: u } = e, c = (d) => {
|
|
2027
2027
|
switch (d.type) {
|
|
2028
2028
|
case "heading":
|
|
2029
|
-
return (0, q.jsx)(
|
|
2029
|
+
return (0, q.jsx)(da, { component: d }, Y(d));
|
|
2030
2030
|
case "paragraph":
|
|
2031
|
-
return (0, q.jsx)(
|
|
2031
|
+
return (0, q.jsx)(ba, { component: d }, Y(d));
|
|
2032
2032
|
case "image":
|
|
2033
|
-
return (0, q.jsx)(
|
|
2033
|
+
return (0, q.jsx)(ha, { component: d }, Y(d));
|
|
2034
2034
|
case "alert":
|
|
2035
2035
|
return (0, q.jsx)(se, { component: d }, Y(d));
|
|
2036
2036
|
case "review":
|
|
2037
|
-
return (0, q.jsx)(
|
|
2037
|
+
return (0, q.jsx)(wa, { component: d, onAction: s }, Y(d));
|
|
2038
2038
|
case "divider":
|
|
2039
2039
|
return (0, q.jsx)(Uo, { component: d }, Y(d));
|
|
2040
2040
|
case "info":
|
|
2041
|
-
return (0, q.jsx)(
|
|
2041
|
+
return (0, q.jsx)(fa, { component: d }, Y(d));
|
|
2042
2042
|
case "instructions":
|
|
2043
|
-
return (0, q.jsx)(
|
|
2043
|
+
return (0, q.jsx)(ga, { component: d }, Y(d));
|
|
2044
2044
|
case "markdown":
|
|
2045
|
-
return (0, q.jsx)(
|
|
2045
|
+
return (0, q.jsx)(pa, { component: d }, Y(d));
|
|
2046
2046
|
case "columns":
|
|
2047
|
-
return (0, q.jsx)(jo, { component: d, model: r, submitted: o, errors:
|
|
2047
|
+
return (0, q.jsx)(jo, { component: d, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: l }, Y(d));
|
|
2048
2048
|
case "form":
|
|
2049
|
-
return (0, q.jsx)(
|
|
2049
|
+
return (0, q.jsx)(ca, { component: d, model: r, submitted: o, errors: a, onModelChange: n, onPersistAsync: l }, Y(b(i({}, d), { errors: a != null ? a : null })));
|
|
2050
2050
|
case "button":
|
|
2051
2051
|
return (0, q.jsx)(Bo, { component: d, onAction: s }, Y(d));
|
|
2052
2052
|
case "box":
|
|
2053
|
-
return (0, q.jsx)(Ro, { component: d, model: r, submitted: o, errors:
|
|
2053
|
+
return (0, q.jsx)(Ro, { component: d, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: l }, Y(d));
|
|
2054
2054
|
case "decision":
|
|
2055
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":
|
|
2059
2059
|
case "status-list":
|
|
2060
|
-
return (0, q.jsx)(
|
|
2060
|
+
return (0, q.jsx)(Sa, { component: d, onAction: s }, Y(d));
|
|
2061
2061
|
case "loading-indicator":
|
|
2062
2062
|
return (0, q.jsx)(cr, { component: d }, Y(d));
|
|
2063
2063
|
case "search":
|
|
2064
|
-
return (0, q.jsx)(
|
|
2064
|
+
return (0, q.jsx)(Fa, { component: d, onAction: s }, Y(d));
|
|
2065
2065
|
default:
|
|
2066
2066
|
return (0, q.jsx)("div", {}, Y(d));
|
|
2067
2067
|
}
|
|
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 =
|
|
2072
|
-
var As = require("@transferwise/components");
|
|
2073
|
-
var Ut = require("react/jsx-runtime");
|
|
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
|
-
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: Hd[o] } : {});
|
|
2077
|
-
return (0, Ut.jsx)(As.Summary, i({}, n));
|
|
2078
|
-
};
|
|
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;
|
|
2071
|
+
var me = jd;
|
|
2083
2072
|
var vs = require("@transferwise/components");
|
|
2084
|
-
var
|
|
2085
|
-
var
|
|
2073
|
+
var Ut = require("react/jsx-runtime");
|
|
2074
|
+
var Vd = ({ 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(Ud)] });
|
|
2075
|
+
var Ud = ({ title: e, description: t, icon: r, status: o }) => {
|
|
2076
|
+
let a = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Ut.jsx)(Je, { type: r.name }) } : {}), o ? { status: qd[o] } : {});
|
|
2077
|
+
return (0, Ut.jsx)(vs.Summary, i({}, a));
|
|
2078
|
+
};
|
|
2079
|
+
var zd = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2080
|
+
var Hd = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2081
|
+
var qd = i(i({}, zd), Hd);
|
|
2082
|
+
var Sa = Vd;
|
|
2083
|
+
var Os = require("@transferwise/components");
|
|
2084
|
+
var Ps = require("react/jsx-runtime");
|
|
2085
|
+
var Gd = ({ component: e }) => {
|
|
2086
2086
|
let { margin: t, size: r = "md" } = e;
|
|
2087
|
-
return (0,
|
|
2087
|
+
return (0, Ps.jsx)(Os.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${U(t)}` }, "data-testid": "loading-indicator" });
|
|
2088
2088
|
};
|
|
2089
|
-
var cr =
|
|
2090
|
-
var
|
|
2091
|
-
var
|
|
2092
|
-
var
|
|
2093
|
-
var
|
|
2094
|
-
var
|
|
2095
|
-
var
|
|
2096
|
-
function
|
|
2097
|
-
let e = (0,
|
|
2098
|
-
return e ? e.createSnackbar :
|
|
2089
|
+
var cr = Gd;
|
|
2090
|
+
var Ds = require("@transferwise/components");
|
|
2091
|
+
var Ls = require("react-intl");
|
|
2092
|
+
var Ms = require("react-intl");
|
|
2093
|
+
var Ca = (0, Ms.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
|
+
var Es = require("@transferwise/components");
|
|
2095
|
+
var ks = require("react");
|
|
2096
|
+
function Is() {
|
|
2097
|
+
let e = (0, ks.useContext)(Es.SnackbarContext);
|
|
2098
|
+
return e ? e.createSnackbar : $d;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function $d() {
|
|
2101
2101
|
}
|
|
2102
2102
|
var Qe = require("react/jsx-runtime");
|
|
2103
|
-
var
|
|
2104
|
-
var
|
|
2105
|
-
var
|
|
2106
|
-
let { formatMessage: t } = (0,
|
|
2103
|
+
var _d = ({ component: e }) => e.control === "copyable" ? (0, Qe.jsx)(Kd, { component: e }) : (0, Qe.jsx)(Wd, { component: e });
|
|
2104
|
+
var Wd = ({ component: e }) => (0, Qe.jsxs)("p", { className: Ne(e), children: [" ", e.text, " "] });
|
|
2105
|
+
var Kd = ({ component: e }) => {
|
|
2106
|
+
let { formatMessage: t } = (0, Ls.useIntl)(), r = Is(), { text: o } = e, a = () => {
|
|
2107
2107
|
var s;
|
|
2108
|
-
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(
|
|
2109
|
-
},
|
|
2110
|
-
return (0, Qe.jsxs)("div", { className: Ne(e), children: [(0, Qe.jsx)("input", { type: "text", className:
|
|
2111
|
-
};
|
|
2112
|
-
function
|
|
2113
|
-
}
|
|
2114
|
-
var
|
|
2115
|
-
var Ls = require("@transferwise/components");
|
|
2116
|
-
var ne = require("react/jsx-runtime");
|
|
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
|
-
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
|
-
s.preventDefault(), e.onAction(a);
|
|
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
|
-
};
|
|
2126
|
-
var Fn = Zd;
|
|
2127
|
-
var to = require("react");
|
|
2108
|
+
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(Ca.copied) })).catch(Jd);
|
|
2109
|
+
}, n = Ne({ align: e.align, margin: "sm" }) + " form-control";
|
|
2110
|
+
return (0, Qe.jsxs)("div", { className: Ne(e), children: [(0, Qe.jsx)("input", { type: "text", className: n, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, Qe.jsx)(Ds.Button, { block: true, onClick: a, children: t(Ca.copy) })] });
|
|
2111
|
+
};
|
|
2112
|
+
function Jd() {
|
|
2113
|
+
}
|
|
2114
|
+
var ba = _d;
|
|
2128
2115
|
var Ts = require("@transferwise/components");
|
|
2116
|
+
var ae = require("react/jsx-runtime");
|
|
2117
|
+
var Xd = (e, t) => t.fields.map(({ label: r, value: o, help: a }, n) => ({ key: String(n), title: r, value: Yd(o, a, e) }));
|
|
2118
|
+
var Yd = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, ae.jsxs)(ae.Fragment, { children: [(0, ae.jsx)(Ve, { help: t }), " ", e] }) : (0, ae.jsxs)(ae.Fragment, { children: [e, " ", (0, ae.jsx)(Ve, { help: t })] }) : e;
|
|
2119
|
+
var Zd = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
|
|
2120
|
+
var Qd = (e) => {
|
|
2121
|
+
let t = e.component, r = U(t.margin || "xs"), o = (n) => (0, ae.jsx)("a", { href: n.url, className: "pull-right", role: "button", onClick: (s) => {
|
|
2122
|
+
s.preventDefault(), e.onAction(n);
|
|
2123
|
+
}, children: n.title }), a = Zd(t);
|
|
2124
|
+
return (0, ae.jsxs)(ae.Fragment, { children: [t.title && (0, ae.jsxs)("h6", { className: "m-b-2", children: [t.title, t.action && o(t.action)] }), (0, ae.jsx)("div", { className: r, children: (0, ae.jsx)(Ts.DefinitionList, { layout: a, definitions: Xd(a, t) }) })] });
|
|
2125
|
+
};
|
|
2126
|
+
var wa = Qd;
|
|
2127
|
+
var to = require("react");
|
|
2128
|
+
var Ns = require("@transferwise/components");
|
|
2129
2129
|
var Qr = require("react/jsx-runtime");
|
|
2130
|
-
var
|
|
2130
|
+
var Rs = ({ title: e, value: t, onChange: r }) => (0, Qr.jsxs)("label", { className: "control-label d-inline", children: [e, (0, Qr.jsx)(Ns.Input, { type: "text", value: t, onChange: (o) => r(o.currentTarget.value) })] });
|
|
2131
2131
|
var eo = require("@transferwise/components");
|
|
2132
|
+
var js = require("react-intl");
|
|
2132
2133
|
var Bs = require("react-intl");
|
|
2133
|
-
var
|
|
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." } });
|
|
2134
|
+
var zt = (0, Bs.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
|
|
2138
|
-
let t = (0,
|
|
2136
|
+
var Vs = ({ 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 Us = ({ onRetrySearch: e }) => {
|
|
2138
|
+
let t = (0, js.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
|
|
2145
|
-
var
|
|
2146
|
-
let [t, r] = (0, Ht.useState)({ status: "idle" }), o = (0, Ht.useRef)(null),
|
|
2144
|
+
var eu = { "Content-Type": "application/json" };
|
|
2145
|
+
var zs = (e) => {
|
|
2146
|
+
let [t, r] = (0, Ht.useState)({ status: "idle" }), o = (0, Ht.useRef)(null), a = ee(), n = (0, Ht.useCallback)(async (c, { url: d, method: g, param: f } = e) => {
|
|
2147
2147
|
var p;
|
|
2148
2148
|
if ((p = o.current) == null || p.abort(), !c) {
|
|
2149
2149
|
r({ status: "idle" });
|
|
@@ -2153,31 +2153,31 @@ 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
|
|
2156
|
+
let y = g === "GET" ? `${d}?${f}=${encodeURIComponent(c)}` : d, S = g === "GET" ? {} : { body: JSON.stringify({ [f]: c }) }, h = await a(y, i({ method: g, signal: m, headers: eu }, S));
|
|
2157
2157
|
s(h, c);
|
|
2158
2158
|
} catch (y) {
|
|
2159
2159
|
l(y, c);
|
|
2160
2160
|
}
|
|
2161
|
-
}, [
|
|
2161
|
+
}, [a, 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 (tu(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
|
+
ru(c) === false && r({ status: "error" });
|
|
2172
2172
|
}, u = t.status === "success" ? t.results : [];
|
|
2173
|
-
return { status: t.status, results: u, search:
|
|
2173
|
+
return { status: t.status, results: u, search: n };
|
|
2174
2174
|
};
|
|
2175
|
-
var
|
|
2176
|
-
var
|
|
2175
|
+
var tu = (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 ru = (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:
|
|
2178
|
+
var ou = 400;
|
|
2179
|
+
var au = ({ component: e, onAction: t }) => {
|
|
2180
|
+
let [r, o] = (0, to.useState)(""), { title: a, margin: n, url: s, method: l, param: u, emptyMessage: c } = e, { status: d, results: g, search: f } = zs({ url: s, method: l, param: u }), m = (0, to.useMemo)(() => We(f, ou), [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,27 +2188,27 @@ var require_main_min = __commonJS({
|
|
|
2188
2188
|
}, S = () => {
|
|
2189
2189
|
o(r), f(r);
|
|
2190
2190
|
};
|
|
2191
|
-
return (0, gt.jsxs)("div", { className: U(
|
|
2191
|
+
return (0, gt.jsxs)("div", { className: U(n), children: [(0, gt.jsx)(Rs, { title: a, value: r, onChange: p }), d === "loading" && (0, gt.jsx)(cr, { component: { type: "loading-indicator", size: "sm" } }), d === "error" && (0, gt.jsx)(Us, { onRetrySearch: S }), d === "success" && (0, gt.jsx)(Vs, { results: g, emptyMessage: c, onSelect: y })] });
|
|
2192
2192
|
};
|
|
2193
|
-
var
|
|
2193
|
+
var Fa = au;
|
|
2194
2194
|
var ce = require("react/jsx-runtime");
|
|
2195
|
-
var
|
|
2196
|
-
var nu = (e) => e.type === "boolean" &&
|
|
2197
|
-
var
|
|
2195
|
+
var xa = (e) => M(e) || J(e);
|
|
2196
|
+
var nu = (e) => e.type === "boolean" && xa(e.default) ? false : e.default;
|
|
2197
|
+
var qs = (e) => {
|
|
2198
2198
|
var G, A, j;
|
|
2199
2199
|
let t = (E) => {
|
|
2200
|
-
f(true), o(
|
|
2200
|
+
f(true), o(a(E), "user");
|
|
2201
2201
|
}, r = (E) => _e(E, e.schema, e.required), o = (E, H) => {
|
|
2202
2202
|
u(E);
|
|
2203
2203
|
let Ae = r(E);
|
|
2204
2204
|
F(Ae);
|
|
2205
|
-
let
|
|
2206
|
-
d(
|
|
2207
|
-
},
|
|
2205
|
+
let ne = E;
|
|
2206
|
+
d(ne), ne !== c && e.onChange({ model: ne, triggerSchema: e.schema, triggerModel: ne, lastTriggerModel: c, type: H });
|
|
2207
|
+
}, a = (E) => $e(E, e.schema), n = () => 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
2210
|
let E = nu(e.schema);
|
|
2211
|
-
|
|
2211
|
+
xa(l) && !xa(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;
|
|
@@ -2218,21 +2218,21 @@ var require_main_min = __commonJS({
|
|
|
2218
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,
|
|
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, Hs.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)(ar, { id: w, schema: e.schema, value: l, disabled: !!e.disabled, onChange: t, onFocus: n, 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
|
-
|
|
2224
|
-
var ft =
|
|
2225
|
-
var
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2223
|
+
qs.defaultProps = { required: false, disabled: false, onBlur: null };
|
|
2224
|
+
var ft = qs;
|
|
2225
|
+
var Ws = require("react/jsx-runtime");
|
|
2226
|
+
var ta = (e, t) => t[e];
|
|
2227
|
+
var $s = (e, t) => {
|
|
2228
2228
|
var r;
|
|
2229
2229
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2230
2230
|
};
|
|
2231
|
-
var
|
|
2232
|
-
var
|
|
2233
|
-
let { schema: t, required: r, submitted: o, errors:
|
|
2231
|
+
var iu = /* @__PURE__ */ new Set([B.RADIO, B.SELECT, B.DATELOOKUP, B.FILE, B.UPLOAD]);
|
|
2232
|
+
var _s = (e) => {
|
|
2233
|
+
let { schema: t, required: r, submitted: o, errors: a, onChange: n, onPersistAsync: s } = e, l = (0, Gs.useIntl)(), u = ee(), c = Q(), [d, g] = (0, St.useState)(null), f = Ks(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
|
+
iu.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 };
|
|
@@ -2244,13 +2244,13 @@ var require_main_min = __commonJS({
|
|
|
2244
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
|
-
let { idProperty: Ae, param:
|
|
2248
|
-
if (
|
|
2249
|
-
let re =
|
|
2250
|
-
|
|
2247
|
+
let { idProperty: Ae, param: ne } = t.persistAsync;
|
|
2248
|
+
if (Qa(E.status)) {
|
|
2249
|
+
let re = ta(Ae, H);
|
|
2250
|
+
n({ model: re, triggerSchema: t, triggerModel: re });
|
|
2251
2251
|
} else if (xr(E.status)) {
|
|
2252
|
-
let { validation: re } = H, de = L(re) && (re == null ? void 0 : re[
|
|
2253
|
-
p(de),
|
|
2252
|
+
let { validation: re } = H, de = L(re) && (re == null ? void 0 : re[ne]) || null;
|
|
2253
|
+
p(de), n({ model: null, triggerSchema: t, triggerModel: null });
|
|
2254
2254
|
} else
|
|
2255
2255
|
w();
|
|
2256
2256
|
c("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
|
|
@@ -2268,14 +2268,14 @@ var require_main_min = __commonJS({
|
|
|
2268
2268
|
}, T = ({ model: P }) => {
|
|
2269
2269
|
p(null), _(P, t.persistAsync.schema) && g(P);
|
|
2270
2270
|
};
|
|
2271
|
-
return (0,
|
|
2271
|
+
return (0, Ws.jsx)(ft, { required: r, submitted: o || y, schema: t.persistAsync.schema, errors: m || a, model: null, infoMessage: null, onChange: T, onBlur: D });
|
|
2272
2272
|
};
|
|
2273
|
-
|
|
2274
|
-
var Qo =
|
|
2275
|
-
var
|
|
2276
|
-
let [t, r] = (0,
|
|
2273
|
+
_s.defaultProps = { required: false };
|
|
2274
|
+
var Qo = _s;
|
|
2275
|
+
var Fi = (e) => {
|
|
2276
|
+
let [t, r] = (0, Js.useState)(null), o = ee(), a = (0, Xs.useIntl)(), { schema: n } = e;
|
|
2277
2277
|
async function s(f) {
|
|
2278
|
-
let m = f instanceof Blob ? !Pt(
|
|
2278
|
+
let m = f instanceof Blob ? !Pt(n) : !_(f, n);
|
|
2279
2279
|
return (M(f) || m) && g(), await c(f);
|
|
2280
2280
|
}
|
|
2281
2281
|
let l = () => {
|
|
@@ -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(
|
|
2287
|
+
let m = Pt(n), p = l(), y = e.param, S = m ? su(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) {
|
|
@@ -2307,29 +2307,29 @@ var require_main_min = __commonJS({
|
|
|
2307
2307
|
if (f.status === 422) {
|
|
2308
2308
|
let m = await f.json();
|
|
2309
2309
|
if (L(m)) {
|
|
2310
|
-
let p =
|
|
2310
|
+
let p = $s(e.param, m);
|
|
2311
2311
|
if (k(p))
|
|
2312
2312
|
throw new Error(p);
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
|
-
throw new Error(
|
|
2315
|
+
throw new Error(a.formatMessage(Qt.genericError));
|
|
2316
2316
|
}
|
|
2317
2317
|
let g = (f) => {
|
|
2318
|
-
let m =
|
|
2318
|
+
let m = mu(f) ? f.message : a.formatMessage(Qt.genericError);
|
|
2319
2319
|
throw new Error(m);
|
|
2320
2320
|
};
|
|
2321
2321
|
return s;
|
|
2322
2322
|
};
|
|
2323
|
-
function
|
|
2323
|
+
function su(e, t) {
|
|
2324
2324
|
let r = new FormData();
|
|
2325
2325
|
return t !== null && r.append(e, t), r;
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function mu(e) {
|
|
2328
2328
|
return L(e) && "message" in e && typeof e.message == "string";
|
|
2329
2329
|
}
|
|
2330
2330
|
var et = require("react");
|
|
2331
|
-
function Nr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse:
|
|
2332
|
-
let s = (0, et.useRef)(
|
|
2331
|
+
function Nr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: a, onFailure: n }) {
|
|
2332
|
+
let s = (0, et.useRef)(a), l = (0, et.useRef)(n), u = (0, et.useMemo)(() => lu(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(() => {
|
|
@@ -2338,81 +2338,81 @@ var require_main_min = __commonJS({
|
|
|
2338
2338
|
return () => clearInterval(c);
|
|
2339
2339
|
}
|
|
2340
2340
|
}, [u, t]), (0, et.useEffect)(() => {
|
|
2341
|
-
s.current =
|
|
2342
|
-
}, [
|
|
2341
|
+
s.current = a, l.current = n;
|
|
2342
|
+
}, [a, n]);
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2345
|
-
let
|
|
2344
|
+
function lu(e, t, r, o, a) {
|
|
2345
|
+
let n = true, s = 0, l = 0;
|
|
2346
2346
|
return e ? () => {
|
|
2347
|
-
|
|
2348
|
-
s = 0,
|
|
2347
|
+
n && (l++, e().then((u) => {
|
|
2348
|
+
s = 0, n = o(u);
|
|
2349
2349
|
}).catch(() => {
|
|
2350
2350
|
s++;
|
|
2351
2351
|
}).finally(() => {
|
|
2352
|
-
(s >= r || l >= t) && (
|
|
2352
|
+
(s >= r || l >= t) && (a(), n = false);
|
|
2353
2353
|
}));
|
|
2354
2354
|
} : () => {
|
|
2355
2355
|
};
|
|
2356
2356
|
}
|
|
2357
2357
|
var ro = require("react");
|
|
2358
|
-
var
|
|
2358
|
+
var Ks = (e) => {
|
|
2359
2359
|
let t = (0, ro.useRef)();
|
|
2360
2360
|
return (0, ro.useEffect)(() => {
|
|
2361
2361
|
t.current = e;
|
|
2362
2362
|
}, [e]), t.current;
|
|
2363
2363
|
};
|
|
2364
2364
|
var dr = require("react");
|
|
2365
|
-
function
|
|
2365
|
+
function Ys(e, t) {
|
|
2366
2366
|
let r = ee(), o = (0, dr.useMemo)(() => {
|
|
2367
2367
|
if (e)
|
|
2368
|
-
return () => r(e.url).then((
|
|
2369
|
-
if (
|
|
2370
|
-
return
|
|
2368
|
+
return () => r(e.url).then((n) => {
|
|
2369
|
+
if (n.ok)
|
|
2370
|
+
return n.json().then((s) => s).catch((s) => null);
|
|
2371
2371
|
throw new Error("failed");
|
|
2372
2372
|
});
|
|
2373
|
-
}, [e, r]),
|
|
2374
|
-
Nr({ asyncFn: o, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse:
|
|
2373
|
+
}, [e, r]), a = (0, dr.useCallback)((n) => n != null && n.action ? (t(n.action), false) : true, [t]);
|
|
2374
|
+
Nr({ asyncFn: o, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse: a, onFailure: (0, dr.useCallback)(() => {
|
|
2375
2375
|
e && t(e.onError.action);
|
|
2376
2376
|
}, [t, e]) });
|
|
2377
2377
|
}
|
|
2378
|
-
var
|
|
2379
|
-
var
|
|
2378
|
+
var Zs = require("react/jsx-runtime");
|
|
2379
|
+
var cu = (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:
|
|
2386
|
+
var du = (e) => {
|
|
2387
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: a, formErrors: n, onModelChange: s } = e, l = cu(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
|
-
return
|
|
2390
|
+
return Ys(t.polling, g), (0, Zs.jsx)(me, { components: l, submitted: o, model: a, errors: n, onAction: g, onModelChange: s, onPersistAsync: c });
|
|
2391
2391
|
};
|
|
2392
|
-
var oo =
|
|
2392
|
+
var oo = du;
|
|
2393
2393
|
var mo = require("react");
|
|
2394
2394
|
var Ce = require("react");
|
|
2395
|
-
var
|
|
2396
|
-
var
|
|
2397
|
-
var Qs = require("react-intl");
|
|
2398
|
-
var pr = (0, Qs.defineMessages)({ reviewSubmit: { id: "dynamicFlows.CameraCapture.reviewSubmit", defaultMessage: "Yes, submit", description: "Accept and submit the image taken with the camera" }, reviewRetry: { id: "dynamicFlows.CameraCapture.reviewRetry", defaultMessage: "No, try again", description: "Image taken with camera is not good, don't submit, and retake the image" }, reviewInstructions: { id: "dynamicFlows.CameraCapture.reviewInstructions", defaultMessage: "Is your picture clear, readable and complete?", description: "After taking an image with the camera, prompt user to review the image" } });
|
|
2399
|
-
var Fe = require("@transferwise/components");
|
|
2395
|
+
var Fm = require("react-intl");
|
|
2396
|
+
var Cm = qe(Qs());
|
|
2400
2397
|
var em = require("react-intl");
|
|
2398
|
+
var pr = (0, em.defineMessages)({ reviewSubmit: { id: "dynamicFlows.CameraCapture.reviewSubmit", defaultMessage: "Yes, submit", description: "Accept and submit the image taken with the camera" }, reviewRetry: { id: "dynamicFlows.CameraCapture.reviewRetry", defaultMessage: "No, try again", description: "Image taken with camera is not good, don't submit, and retake the image" }, reviewInstructions: { id: "dynamicFlows.CameraCapture.reviewInstructions", defaultMessage: "Is your picture clear, readable and complete?", description: "After taking an image with the camera, prompt user to review the image" } });
|
|
2399
|
+
var Fe = require("@transferwise/components");
|
|
2400
|
+
var tm = require("react-intl");
|
|
2401
2401
|
var we = require("react/jsx-runtime");
|
|
2402
|
-
var
|
|
2403
|
-
var
|
|
2404
|
-
let r = (0,
|
|
2402
|
+
var rm = ({ onCapture: e }) => (0, we.jsx)("div", { className: "bottom-bar", children: (0, we.jsx)(uu, { onClick: e }) });
|
|
2403
|
+
var om = ({ onSubmit: e, onRetry: t }) => {
|
|
2404
|
+
let r = (0, tm.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
|
|
2408
|
-
var
|
|
2409
|
-
var
|
|
2407
|
+
var uu = ({ 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
|
+
var no = require("react");
|
|
2409
|
+
var am = (e) => {
|
|
2410
2410
|
var r;
|
|
2411
|
-
let { facingMode: t } = ((r =
|
|
2411
|
+
let { facingMode: t } = ((r = ao(e)) == null ? void 0 : r.getSettings()) || {};
|
|
2412
2412
|
return t === "user" || t === void 0;
|
|
2413
2413
|
};
|
|
2414
2414
|
var nm = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
|
|
2415
|
-
var
|
|
2415
|
+
var im = async (e) => {
|
|
2416
2416
|
let t = document.createElement("canvas");
|
|
2417
2417
|
if (e) {
|
|
2418
2418
|
t.setAttribute("height", `${e.videoHeight}`), t.setAttribute("width", `${e.videoWidth}`);
|
|
@@ -2421,35 +2421,35 @@ var require_main_min = __commonJS({
|
|
|
2421
2421
|
}
|
|
2422
2422
|
return t;
|
|
2423
2423
|
};
|
|
2424
|
-
var
|
|
2424
|
+
var sm = async () => {
|
|
2425
2425
|
var e, t;
|
|
2426
2426
|
return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput");
|
|
2427
2427
|
};
|
|
2428
|
-
var
|
|
2428
|
+
var mm = async () => {
|
|
2429
2429
|
var e, t;
|
|
2430
2430
|
return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput").map((r) => r.label);
|
|
2431
2431
|
};
|
|
2432
|
-
var
|
|
2433
|
-
var r, o,
|
|
2434
|
-
let t =
|
|
2435
|
-
return (
|
|
2432
|
+
var lm = async (e) => {
|
|
2433
|
+
var r, o, a;
|
|
2434
|
+
let t = va(e);
|
|
2435
|
+
return (a = (await ((o = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : o.call(r)) || []).filter((n) => n.kind === "videoinput").find((n) => n.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : a.label;
|
|
2436
2436
|
};
|
|
2437
|
-
var
|
|
2437
|
+
var ao = (e) => {
|
|
2438
2438
|
var t;
|
|
2439
2439
|
return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
|
|
2440
2440
|
};
|
|
2441
|
-
var
|
|
2441
|
+
var va = (e) => {
|
|
2442
2442
|
var t, r;
|
|
2443
|
-
return (r = (t =
|
|
2443
|
+
return (r = (t = ao(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2444
2444
|
};
|
|
2445
|
-
var
|
|
2446
|
-
let [t, r] = (0,
|
|
2447
|
-
(0,
|
|
2448
|
-
|
|
2445
|
+
var cm = (e) => {
|
|
2446
|
+
let [t, r] = (0, no.useState)(), o = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
|
|
2447
|
+
(0, no.useEffect)(() => {
|
|
2448
|
+
a(e).then(r);
|
|
2449
2449
|
}, [e]);
|
|
2450
|
-
let
|
|
2451
|
-
if (
|
|
2452
|
-
let s = (await
|
|
2450
|
+
let a = async (n) => {
|
|
2451
|
+
if (n === "back") {
|
|
2452
|
+
let s = (await sm()).find(nm);
|
|
2453
2453
|
if (s != null && s.deviceId)
|
|
2454
2454
|
return b(i({}, o), { deviceId: { exact: s.deviceId } });
|
|
2455
2455
|
}
|
|
@@ -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
|
|
2463
|
-
var
|
|
2464
|
-
var
|
|
2465
|
-
var
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2468
|
-
var
|
|
2469
|
-
var
|
|
2462
|
+
var pu = 92;
|
|
2463
|
+
var dm = 120;
|
|
2464
|
+
var fu = 40;
|
|
2465
|
+
var yu = 32;
|
|
2466
|
+
var hu = 48;
|
|
2467
|
+
var gu = 40;
|
|
2468
|
+
var um = 800;
|
|
2469
|
+
var Su = ({ overlay: e, outline: t, imageUrl: r, title: o, instructions: a, reviewInstructions: n }) => {
|
|
2470
2470
|
let s = (0, io.useRef)(null);
|
|
2471
2471
|
(0, io.useEffect)(() => {
|
|
2472
2472
|
let f = We(() => {
|
|
@@ -2478,50 +2478,50 @@ 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 ?
|
|
2482
|
-
if (
|
|
2483
|
-
l = c -
|
|
2484
|
-
let f =
|
|
2481
|
+
let l = (r ? fu : 0) + (o ? yu : 0) + (a ? hu : 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 }), a && (0, K.jsx)("small", { className: "camera-capture-instructions", children: a })] }), c = pu + l;
|
|
2482
|
+
if (n) {
|
|
2483
|
+
l = c - dm, u = (0, K.jsx)("small", { className: "camera-capture-instructions", children: n });
|
|
2484
|
+
let f = dm + gu;
|
|
2485
2485
|
c < f && (u = (0, K.jsx)(K.Fragment, {}));
|
|
2486
2486
|
}
|
|
2487
|
-
let d = { x: "50%", y: "5%", width: `min(90%, ${
|
|
2487
|
+
let d = { x: "50%", y: "5%", width: `min(90%, ${um}px)`, height: `calc(90% - ${c}px)`, style: { transform: `translateX(max(-45%, -${um / 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
|
|
2491
|
-
var
|
|
2492
|
-
var
|
|
2493
|
-
var
|
|
2494
|
-
var so = (0,
|
|
2490
|
+
var Oa = Su;
|
|
2491
|
+
var fm = require("@transferwise/components");
|
|
2492
|
+
var ym = require("react-intl");
|
|
2493
|
+
var pm = require("react-intl");
|
|
2494
|
+
var so = (0, pm.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
|
|
2497
|
-
let t = (0,
|
|
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)(
|
|
2496
|
+
var bu = ({ onAction: e }) => {
|
|
2497
|
+
let t = (0, ym.useIntl)();
|
|
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)(fm.Button, { block: true, onClick: e, children: t.formatMessage(so.action) })] }) }) }) });
|
|
2499
2499
|
};
|
|
2500
|
-
var
|
|
2500
|
+
var Pa = bu;
|
|
2501
|
+
var gm = require("react-intl");
|
|
2501
2502
|
var hm = require("react-intl");
|
|
2502
|
-
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" } });
|
|
2503
|
+
var Ma = (0, hm.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
|
|
2506
|
-
let e = (0,
|
|
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(
|
|
2508
|
-
};
|
|
2509
|
-
var
|
|
2510
|
-
var
|
|
2511
|
-
var
|
|
2512
|
-
var
|
|
2513
|
-
var
|
|
2514
|
-
var
|
|
2515
|
-
let r =
|
|
2516
|
-
return b(i({}, r && { "Available Video Devices (by label)": await
|
|
2505
|
+
var wu = () => {
|
|
2506
|
+
let e = (0, gm.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(Ma.title) }), (0, tt.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(Ma.paragraph) })] }) }) }) });
|
|
2508
|
+
};
|
|
2509
|
+
var Ea = wu;
|
|
2510
|
+
var Sm = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
|
|
2511
|
+
var bm = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await Fu(t, r));
|
|
2512
|
+
var wm = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
|
|
2513
|
+
var Fu = async (e, t) => {
|
|
2514
|
+
var n;
|
|
2515
|
+
let r = ao(t), o = va(t), a = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
|
|
2516
|
+
return b(i({}, r && { "Available Video Devices (by label)": await mm(), "Active Video Device (by label)": await lm(t), "Camera Capabilities": o, "Camera Settings": a }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
2517
2517
|
};
|
|
2518
2518
|
var te = require("react/jsx-runtime");
|
|
2519
|
-
var
|
|
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 } =
|
|
2521
|
-
var A, j, E, H, Ae,
|
|
2519
|
+
var Cu = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: a = "", instructions: n = "", showReview: s = false, onCapture: l, onEvent: u }) => {
|
|
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 } = cm(e), w = (0, Fm.useIntl)(), v = (0, Ce.useCallback)(async () => {
|
|
2521
|
+
var A, j, E, H, Ae, ne;
|
|
2522
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
|
-
let re = await
|
|
2524
|
+
let re = await im((ne = h == null ? void 0 : h.current) == null ? void 0 : ne.video);
|
|
2525
2525
|
re == null || re.toBlob((de) => {
|
|
2526
2526
|
if (de)
|
|
2527
2527
|
if (s) {
|
|
@@ -2533,57 +2533,57 @@ var require_main_min = __commonJS({
|
|
|
2533
2533
|
}
|
|
2534
2534
|
}, [h, s, S, d, l, g]), O = (0, Ce.useCallback)((A) => {
|
|
2535
2535
|
if (A instanceof DOMException && (A == null ? void 0 : A.name) === "NotAllowedError") {
|
|
2536
|
-
d("NO_CAMERA_ACCESS"),
|
|
2536
|
+
d("NO_CAMERA_ACCESS"), Sm(u);
|
|
2537
2537
|
return;
|
|
2538
2538
|
}
|
|
2539
|
-
d("CAMERA_NOT_SUPPORTED"),
|
|
2539
|
+
d("CAMERA_NOT_SUPPORTED"), wm(u, A);
|
|
2540
2540
|
}, [d, u]), C = (0, Ce.useCallback)((A) => {
|
|
2541
|
-
p(true), f(
|
|
2541
|
+
p(true), f(am(A)), bm(u, { direction: e }, A);
|
|
2542
2542
|
}, [f, u, e]), D = () => {
|
|
2543
2543
|
l((y == null ? void 0 : y.blob) || null);
|
|
2544
2544
|
}, T = () => {
|
|
2545
2545
|
d("CAPTURE"), S(void 0);
|
|
2546
|
-
}, P = () => d("CAPTURE"), N = (0, te.jsxs)(te.Fragment, { children: [F && (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)(
|
|
2546
|
+
}, P = () => d("CAPTURE"), N = (0, te.jsxs)(te.Fragment, { children: [F && (0, te.jsx)(Cm.default, { ref: h, audio: false, videoConstraints: F, mirrored: g, onUserMediaError: O, onUserMedia: C }), (0, te.jsx)(Oa, { overlay: t, outline: r, imageUrl: o, title: a, instructions: n }), m && (0, te.jsx)(rm, { 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)(Oa, { overlay: t, imageUrl: o, title: a, instructions: n, reviewInstructions: w.formatMessage(pr.reviewInstructions) }), (0, te.jsx)(om, { 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)(Pa, { onAction: P }), c === "CAMERA_NOT_SUPPORTED" && (0, te.jsx)(Ea, {})] });
|
|
2548
2548
|
};
|
|
2549
|
-
var
|
|
2550
|
-
var
|
|
2551
|
-
function
|
|
2549
|
+
var ka = Cu;
|
|
2550
|
+
var Am = require("react/jsx-runtime");
|
|
2551
|
+
function xu(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:
|
|
2557
|
+
var Au = (e) => {
|
|
2558
|
+
let { step: t, model: r, onModelChange: o, onAction: a } = e, n = Q(), s = xm(t), l = vu(t), u = Ou(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
|
-
F &&
|
|
2560
|
+
F && a(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 xu(O), T = { [C || ""]: D };
|
|
2566
2566
|
w(true), o({ model: T, formSchema: s, triggerModel: D, triggerSchema: l });
|
|
2567
2567
|
}
|
|
2568
2568
|
};
|
|
2569
|
-
return (0,
|
|
2569
|
+
return (0, Am.jsx)(ka, { overlay: y, outline: S, title: c, imageUrl: h, instructions: p, direction: m, onEvent: n, onCapture: (O) => {
|
|
2570
2570
|
v(O);
|
|
2571
2571
|
} });
|
|
2572
2572
|
};
|
|
2573
|
-
var lo =
|
|
2574
|
-
function
|
|
2573
|
+
var lo = Au;
|
|
2574
|
+
function xm(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
|
|
2581
|
-
let t =
|
|
2580
|
+
function vu(e) {
|
|
2581
|
+
let t = xm(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 Ou(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");
|
|
@@ -2591,70 +2591,70 @@ var require_main_min = __commonJS({
|
|
|
2591
2591
|
throw new Error("camera step expects 1 action");
|
|
2592
2592
|
return e.actions[0];
|
|
2593
2593
|
}
|
|
2594
|
-
var
|
|
2595
|
-
var
|
|
2596
|
-
var fr = (0,
|
|
2597
|
-
var
|
|
2598
|
-
var
|
|
2594
|
+
var Pm = require("react-intl");
|
|
2595
|
+
var vm = require("react-intl");
|
|
2596
|
+
var fr = (0, vm.defineMessages)({ title: { id: "dynamicFlows.ExternalConfirmation.title", defaultMessage: "Please confirm", description: "Heading for the confirmation screen." }, description: { id: "dynamicFlows.ExternalConfirmation.description", defaultMessage: "Please confirm you want to open **{origin}** in a new browser tab.", description: "Description for the confirmation screen." }, open: { id: "dynamicFlows.ExternalConfirmation.open", defaultMessage: "Open in new tab", description: "Button text confirming opening a new browser tab." }, cancel: { id: "dynamicFlows.ExternalConfirmation.cancel", defaultMessage: "Cancel", description: "Button text rejecting opening a new browser tab." } });
|
|
2597
|
+
var Mm = require("react/jsx-runtime");
|
|
2598
|
+
var Om = () => {
|
|
2599
2599
|
};
|
|
2600
|
-
var
|
|
2601
|
-
let { formatMessage: r } = (0,
|
|
2602
|
-
return (0,
|
|
2600
|
+
var Pu = ({ url: e, onClose: t }) => {
|
|
2601
|
+
let { formatMessage: r } = (0, Pm.useIntl)();
|
|
2602
|
+
return (0, Mm.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: Mu(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
|
-
}, onModelChange:
|
|
2604
|
+
}, onModelChange: Om, onPersistAsync: Om });
|
|
2605
2605
|
};
|
|
2606
|
-
var co =
|
|
2607
|
-
function
|
|
2606
|
+
var co = Pu;
|
|
2607
|
+
function Mu(e) {
|
|
2608
2608
|
try {
|
|
2609
2609
|
return new URL(e).origin;
|
|
2610
2610
|
} catch (t) {
|
|
2611
2611
|
return e;
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
|
-
var
|
|
2615
|
-
var
|
|
2614
|
+
var Em = require("@transferwise/components");
|
|
2615
|
+
var km = require("@transferwise/icons");
|
|
2616
2616
|
var qt = require("react/jsx-runtime");
|
|
2617
|
-
var
|
|
2617
|
+
var Eu = ({ 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)(
|
|
2620
|
-
var
|
|
2619
|
+
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, qt.jsx)("span", { className: "sr-only", children: e }), (0, qt.jsx)(Em.Avatar, { type: "icon", children: (0, qt.jsx)(km.ArrowLeft, { size: "24" }) })] });
|
|
2620
|
+
var Im = Eu;
|
|
2621
2621
|
var De = require("react/jsx-runtime");
|
|
2622
2622
|
var qr = (e) => {
|
|
2623
2623
|
var u, c;
|
|
2624
|
-
let { step: t, globalError: r, onAction: o } = e,
|
|
2625
|
-
return t === void 0 ? null :
|
|
2624
|
+
let { step: t, globalError: r, onAction: o } = e, a = (u = t == null ? void 0 : t.external) == null ? void 0 : u.url, n = (c = t == null ? void 0 : t.navigation) == null ? void 0 : c.backButton, { requiresManualTrigger: s, dismissConfirmation: l } = Ln(a);
|
|
2625
|
+
return t === void 0 ? null : a && s ? (0, De.jsx)(co, { url: a, onClose: l }) : En(t) ? (0, De.jsx)(lo, b(i({}, e), { step: t })) : (0, De.jsxs)(De.Fragment, { children: [n && (0, De.jsx)(Im, b(i({}, n), { 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
|
-
var
|
|
2628
|
-
var
|
|
2629
|
-
function
|
|
2630
|
-
let t = (0,
|
|
2627
|
+
var Dm = require("react");
|
|
2628
|
+
var ku = 1e3;
|
|
2629
|
+
function Lm(e) {
|
|
2630
|
+
let t = (0, Dm.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
|
|
2631
2631
|
if (t.current.has(o))
|
|
2632
2632
|
return t.current.get(o);
|
|
2633
|
-
let
|
|
2634
|
-
return t.current.set(o,
|
|
2633
|
+
let a = We((n, s, l) => e(n, s, l), ku);
|
|
2634
|
+
return t.current.set(o, a), a;
|
|
2635
2635
|
};
|
|
2636
|
-
return function(o,
|
|
2636
|
+
return function(o, a, n, s) {
|
|
2637
2637
|
let l = r(o);
|
|
2638
|
-
l(o,
|
|
2638
|
+
l(o, a, n), (!s || !Iu(s)) && l.flush();
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
|
-
var
|
|
2641
|
+
var Iu = (e) => it(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2642
2642
|
var Gt = require("react");
|
|
2643
|
-
var
|
|
2643
|
+
var Rm = (e) => {
|
|
2644
2644
|
var m, p;
|
|
2645
|
-
let [t, r] = (0, Gt.useState)((m = e == null ? void 0 : e.errors) == null ? void 0 : m.validation), [o,
|
|
2645
|
+
let [t, r] = (0, Gt.useState)((m = e == null ? void 0 : e.errors) == null ? void 0 : m.validation), [o, a] = (0, Gt.useState)((p = e == null ? void 0 : e.errors) == null ? void 0 : p.error), [n, s] = (0, Gt.useState)({ step: e || void 0, models: e != null && e.model ? Tm(e.model, Nm(e)) : {}, etag: void 0 }), { step: l, models: u, etag: c } = n, d = (y, S) => {
|
|
2646
2646
|
var h, F, w, v;
|
|
2647
|
-
s((O) => ({ step: y, models: y.model ?
|
|
2647
|
+
s((O) => ({ step: y, models: y.model ? Tm(y.model, Nm(y)) : O.models, etag: S })), r((F = (h = y == null ? void 0 : y.errors) == null ? void 0 : h.validation) != null ? F : null), a((v = (w = y == null ? void 0 : y.errors) == null ? void 0 : w.error) != null ? v : null);
|
|
2648
2648
|
}, g = (y, S, h) => {
|
|
2649
2649
|
s((F) => {
|
|
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)(() =>
|
|
2654
|
-
return { formErrors: t, globalError: o, step: l, models: u, etag: c, modelIsValid: f, setFormErrors: r, setGlobalError:
|
|
2653
|
+
}, f = (0, Gt.useMemo)(() => Lu(u, Du(l)), [u, l]);
|
|
2654
|
+
return { formErrors: t, globalError: o, step: l, models: u, etag: c, modelIsValid: f, setFormErrors: r, setGlobalError: a, setStepAndEtag: d, setSchemaModel: g };
|
|
2655
2655
|
};
|
|
2656
|
-
var
|
|
2657
|
-
var
|
|
2656
|
+
var Tm = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), b(i({}, r), { [o.$id || ""]: ie(e, o) || {} })), {});
|
|
2657
|
+
var Nm = (e) => [...uo((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
|
|
2658
2658
|
var uo = (e) => e.flatMap((t) => {
|
|
2659
2659
|
switch (t.type) {
|
|
2660
2660
|
case "columns":
|
|
@@ -2662,46 +2662,46 @@ var require_main_min = __commonJS({
|
|
|
2662
2662
|
case "box":
|
|
2663
2663
|
return uo(t.components);
|
|
2664
2664
|
case "form":
|
|
2665
|
-
return
|
|
2665
|
+
return Bm(t.schema) ? [t.schema] : [];
|
|
2666
2666
|
default:
|
|
2667
2667
|
return [];
|
|
2668
2668
|
}
|
|
2669
2669
|
});
|
|
2670
|
-
var
|
|
2671
|
-
var
|
|
2670
|
+
var Du = (e) => [...Ia((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
|
+
var Ia = (e) => e.flatMap((t) => {
|
|
2672
2672
|
switch (t.type) {
|
|
2673
2673
|
case "columns":
|
|
2674
|
-
return [...
|
|
2674
|
+
return [...Ia([...t.left, ...t.right])];
|
|
2675
2675
|
case "box":
|
|
2676
|
-
return
|
|
2676
|
+
return Ia(t.components);
|
|
2677
2677
|
case "form":
|
|
2678
|
-
return [
|
|
2678
|
+
return [Tu(t)];
|
|
2679
2679
|
default:
|
|
2680
2680
|
return [];
|
|
2681
2681
|
}
|
|
2682
2682
|
}).filter(Boolean);
|
|
2683
|
-
var
|
|
2684
|
-
var
|
|
2685
|
-
var
|
|
2683
|
+
var Lu = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !_(e[r.$id || ""] || {}, r))));
|
|
2684
|
+
var Tu = (e) => e.schema && !Bm(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2685
|
+
var Bm = (e) => e !== void 0 && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "$ref") === false;
|
|
2686
2686
|
var po = require("@transferwise/components");
|
|
2687
|
-
var
|
|
2688
|
-
var
|
|
2689
|
-
function
|
|
2690
|
-
let r = i({ size: po.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o,
|
|
2691
|
-
return { isLoading: o !== "idle", setLoadingState:
|
|
2687
|
+
var jm = require("react");
|
|
2688
|
+
var Um = require("react/jsx-runtime");
|
|
2689
|
+
function Vm(e, t) {
|
|
2690
|
+
let r = i({ size: po.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, a] = (0, jm.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0, Um.jsx)(po.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
|
|
2691
|
+
return { isLoading: o !== "idle", setLoadingState: a, loader: s };
|
|
2692
2692
|
}
|
|
2693
|
-
var
|
|
2693
|
+
var Gm = require("react");
|
|
2694
2694
|
var fo = require("@transferwise/components");
|
|
2695
|
-
var
|
|
2696
|
-
var
|
|
2697
|
-
var
|
|
2698
|
-
let { formatMessage: t } = (0,
|
|
2699
|
-
return (0,
|
|
2695
|
+
var zm = require("react-intl");
|
|
2696
|
+
var qm = require("react/jsx-runtime");
|
|
2697
|
+
var Hm = ({ onDismiss: e }) => {
|
|
2698
|
+
let { formatMessage: t } = (0, zm.useIntl)();
|
|
2699
|
+
return (0, qm.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 Nu = () => {
|
|
2703
2703
|
};
|
|
2704
|
-
var
|
|
2704
|
+
var Da = class extends Gm.Component {
|
|
2705
2705
|
constructor(r) {
|
|
2706
2706
|
super(r);
|
|
2707
2707
|
this.handleErrorReset = () => {
|
|
@@ -2713,35 +2713,35 @@ 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 = Nu } = this.props;
|
|
2717
2717
|
o(r);
|
|
2718
2718
|
}
|
|
2719
2719
|
render() {
|
|
2720
|
-
let { children: r } = this.props, { hasError: o, isFatalError:
|
|
2721
|
-
return (0, $t.jsxs)($t.Fragment, { children: [o && (0, $t.jsx)(
|
|
2720
|
+
let { children: r } = this.props, { hasError: o, isFatalError: a } = this.state;
|
|
2721
|
+
return (0, $t.jsxs)($t.Fragment, { children: [o && (0, $t.jsx)(Hm, { onDismiss: this.handleErrorReset }), !a && r] });
|
|
2722
2722
|
}
|
|
2723
2723
|
};
|
|
2724
|
-
var
|
|
2725
|
-
var
|
|
2724
|
+
var La = Da;
|
|
2725
|
+
var Ru = async (e) => {
|
|
2726
2726
|
switch (e.headers.get("X-Df-ResponseType")) {
|
|
2727
2727
|
case "step":
|
|
2728
|
-
return
|
|
2728
|
+
return $m(e);
|
|
2729
2729
|
case "exit":
|
|
2730
|
-
return
|
|
2730
|
+
return Wm(e);
|
|
2731
2731
|
case "action":
|
|
2732
|
-
return
|
|
2732
|
+
return _m(e);
|
|
2733
2733
|
default:
|
|
2734
2734
|
throw new Error("Unsupported X-Df-ResponseType. Allowed values are 'step', 'action', 'exit'.");
|
|
2735
2735
|
}
|
|
2736
2736
|
};
|
|
2737
|
-
var
|
|
2737
|
+
var $m = async (e) => {
|
|
2738
2738
|
let t = await yr(e);
|
|
2739
2739
|
if (!L(t))
|
|
2740
2740
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2741
2741
|
let r = e.headers.get("etag") || void 0;
|
|
2742
2742
|
return { type: "step", step: t, etag: r };
|
|
2743
2743
|
};
|
|
2744
|
-
var
|
|
2744
|
+
var _m = async (e) => {
|
|
2745
2745
|
let t = await yr(e);
|
|
2746
2746
|
if (!L(t))
|
|
2747
2747
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
@@ -2750,18 +2750,18 @@ var require_main_min = __commonJS({
|
|
|
2750
2750
|
let r = t.action;
|
|
2751
2751
|
return r.exit === true && L(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
|
|
2752
2752
|
};
|
|
2753
|
-
var
|
|
2754
|
-
var
|
|
2753
|
+
var Wm = async (e) => ({ type: "exit", result: await Ta(e) });
|
|
2754
|
+
var Km = async (e) => {
|
|
2755
2755
|
var r, o;
|
|
2756
|
-
if (
|
|
2757
|
-
return
|
|
2756
|
+
if (Na(e), (r = e.headers) != null && r.has("X-Df-ResponseType"))
|
|
2757
|
+
return Ru(e);
|
|
2758
2758
|
if ((o = e.headers) != null && o.has("X-Df-Exit"))
|
|
2759
|
-
return
|
|
2759
|
+
return Wm(e);
|
|
2760
2760
|
let t = await yr(e.clone());
|
|
2761
|
-
return L(t) && t.action ?
|
|
2761
|
+
return L(t) && t.action ? _m(e) : $m(e);
|
|
2762
2762
|
};
|
|
2763
|
-
var
|
|
2764
|
-
|
|
2763
|
+
var Jm = async (e) => {
|
|
2764
|
+
Na(e);
|
|
2765
2765
|
let t = await yr(e);
|
|
2766
2766
|
if (!L(t))
|
|
2767
2767
|
throw new Error("Incorrect response body in error response. Expected an object.");
|
|
@@ -2769,8 +2769,8 @@ var require_main_min = __commonJS({
|
|
|
2769
2769
|
throw t;
|
|
2770
2770
|
return t;
|
|
2771
2771
|
};
|
|
2772
|
-
var
|
|
2773
|
-
|
|
2772
|
+
var Ta = async (e) => {
|
|
2773
|
+
Na(e);
|
|
2774
2774
|
let t = await yr(e);
|
|
2775
2775
|
return L(t) ? t : null;
|
|
2776
2776
|
};
|
|
@@ -2781,18 +2781,18 @@ var require_main_min = __commonJS({
|
|
|
2781
2781
|
return null;
|
|
2782
2782
|
}
|
|
2783
2783
|
};
|
|
2784
|
-
var
|
|
2785
|
-
if (!
|
|
2784
|
+
var Na = (e) => {
|
|
2785
|
+
if (!Bu(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 Bu = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2791
2791
|
var rt = require("react/jsx-runtime");
|
|
2792
|
-
var
|
|
2792
|
+
var Xm = () => {
|
|
2793
2793
|
};
|
|
2794
|
-
var
|
|
2795
|
-
let { locale: d } = (0,
|
|
2794
|
+
var ju = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: a, displayStepTitle: n = true, onCompletion: s, onError: l, onEvent: u = Xm, onLog: c = Xm }) => {
|
|
2795
|
+
let { locale: d } = (0, Ym.useIntl)(), { formErrors: g, globalError: f, step: m, models: p, etag: y, modelIsValid: S, setFormErrors: h, setGlobalError: F, setStepAndEtag: w, setSchemaModel: v } = Rm(o), [O, C] = (0, xe.useState)(false), { isLoading: D, loader: T, setLoadingState: P } = Vm(a, o ? "idle" : "initial"), N = at("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
2798
|
}, [e, m]), A = (0, xe.useMemo)(() => wo(u, G), [u, G]), j = (0, xe.useCallback)(({ action: x, data: V, etag: I }) => {
|
|
@@ -2818,14 +2818,14 @@ var require_main_min = __commonJS({
|
|
|
2818
2818
|
P("submission");
|
|
2819
2819
|
try {
|
|
2820
2820
|
let I = await j({ action: x, data: V });
|
|
2821
|
-
await
|
|
2821
|
+
await ne(I, x.result);
|
|
2822
2822
|
} catch (I) {
|
|
2823
2823
|
gr(I, "Error fetching exit result");
|
|
2824
2824
|
}
|
|
2825
|
-
},
|
|
2826
|
-
let I = await
|
|
2825
|
+
}, ne = async (x, V) => {
|
|
2826
|
+
let I = await Ta(x);
|
|
2827
2827
|
de(i(i({}, I), V));
|
|
2828
|
-
}, re =
|
|
2828
|
+
}, re = Lm(H), de = (0, xe.useCallback)((x) => {
|
|
2829
2829
|
A("Dynamic Flow - Flow Finished", { result: "success" }), s(x);
|
|
2830
2830
|
}, [s, A]);
|
|
2831
2831
|
(0, xe.useEffect)(() => {
|
|
@@ -2843,34 +2843,34 @@ var require_main_min = __commonJS({
|
|
|
2843
2843
|
return;
|
|
2844
2844
|
}
|
|
2845
2845
|
if (!x.ok) {
|
|
2846
|
-
let Z = await
|
|
2847
|
-
|
|
2846
|
+
let Z = await Jm(x);
|
|
2847
|
+
yl(Z);
|
|
2848
2848
|
return;
|
|
2849
2849
|
}
|
|
2850
|
-
let I = await
|
|
2851
|
-
I.type === "action" ? E(I.action, I.action.data) : I.type === "exit" ? de(I.result) :
|
|
2850
|
+
let I = await Km(x);
|
|
2851
|
+
I.type === "action" ? E(I.action, I.action.data) : I.type === "exit" ? de(I.result) : fl(I.step, I.etag, V);
|
|
2852
2852
|
} catch (I) {
|
|
2853
2853
|
return gr(I, "Error parsing fetch response", V, x.status);
|
|
2854
2854
|
}
|
|
2855
|
-
},
|
|
2855
|
+
}, fl = (x, V, I) => {
|
|
2856
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
|
-
},
|
|
2857
|
+
}, yl = async (x) => {
|
|
2858
2858
|
let V = x.refreshUrl || x.refreshFormUrl;
|
|
2859
2859
|
V && await H(V, yo(p), y), x.validation && h(x.validation), x.error && F(x.error), P("idle");
|
|
2860
2860
|
}, gr = (x, V, I, Z) => {
|
|
2861
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
|
-
},
|
|
2862
|
+
}, hl = (x) => {
|
|
2863
2863
|
let { model: V, formSchema: I } = x, { $id: Z = "" } = I;
|
|
2864
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
|
-
|
|
2865
|
+
gl(x, bt);
|
|
2866
2866
|
});
|
|
2867
|
-
},
|
|
2867
|
+
}, gl = (x, V) => {
|
|
2868
2868
|
let { triggerSchema: I } = x;
|
|
2869
|
-
if (
|
|
2869
|
+
if (zu(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
2871
|
bt && re(bt, yo(V), y, I);
|
|
2872
2872
|
}
|
|
2873
|
-
},
|
|
2873
|
+
}, Sl = async (x) => {
|
|
2874
2874
|
if (D || x.disabled)
|
|
2875
2875
|
return;
|
|
2876
2876
|
if (x.exit && !x.url) {
|
|
@@ -2878,37 +2878,38 @@ var require_main_min = __commonJS({
|
|
|
2878
2878
|
return;
|
|
2879
2879
|
}
|
|
2880
2880
|
let V = x.exit ? Ae : E, { data: I, method: Z, skipValidation: He } = x, bt = i(i({}, yo(p)), I);
|
|
2881
|
-
|
|
2881
|
+
Uu(Z) ? (h(null), He || C(true), (S || He) && await V(x, bt)) : await V(x);
|
|
2882
2882
|
};
|
|
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)(
|
|
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)(Ja, { loading: D, children: (0, rt.jsx)(en, { httpClient: t, children: T !== null ? T : (0, rt.jsx)(qr, { step: m, model: yo(p), submitted: O, globalError: f, formErrors: g, stepLayoutOptions: { displayStepTitle: n }, onAction: (x) => {
|
|
2884
|
+
Sl(x);
|
|
2885
|
+
}, onModelChange: hl }) }) }) }) });
|
|
2886
2886
|
};
|
|
2887
|
-
var
|
|
2888
|
-
var
|
|
2887
|
+
var Vu = (e) => (0, rt.jsx)(La, { onError: e.onError, children: (0, rt.jsx)(ju, i({}, e)) });
|
|
2888
|
+
var Ra = Vu;
|
|
2889
2889
|
var yo = (e) => Object.values(e).reduce((t, r) => i(i({}, t), r), {});
|
|
2890
|
-
var
|
|
2891
|
-
var
|
|
2892
|
-
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel:
|
|
2893
|
-
return t !== "init" && l && (
|
|
2894
|
-
};
|
|
2895
|
-
var
|
|
2896
|
-
var
|
|
2897
|
-
var
|
|
2898
|
-
var
|
|
2899
|
-
var
|
|
2900
|
-
var
|
|
2901
|
-
var
|
|
2890
|
+
var Uu = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
2891
|
+
var zu = (e) => {
|
|
2892
|
+
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: a = null } = e, n = () => _(o, r), s = () => _(a, r), l = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
2893
|
+
return t !== "init" && l && (n() || s());
|
|
2894
|
+
};
|
|
2895
|
+
var Zm = { "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
|
+
var Qm = { "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
|
+
var el = { "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 tl = { "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
|
+
var rl = { "dynamicFlows.ArraySchema.addItem": "Ment\xE9s", "dynamicFlows.ArraySchema.addItemTitle": "Elem hozz\xE1ad\xE1sa", "dynamicFlows.ArraySchema.editItem": "Ment\xE9s", "dynamicFlows.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.", "dynamicFlows.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.", "dynamicFlows.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1sra", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Az \xE1ltalad haszn\xE1lt b\xF6ng\xE9sz\u0151 nem t\xE1mogatja a kamera haszn\xE1lat\xE1t. K\xE9r\xFCnk, pr\xF3b\xE1lkozz m\xE1s b\xF6ng\xE9sz\u0151vel, eszk\xF6zzel vagy t\xF6ltsd le az appot", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera nem t\xE1mogatott", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamer\xE1hoz val\xF3 hozz\xE1f\xE9r\xE9s enged\xE9lyez\xE9se", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz. Ezt a telefonod be\xE1ll\xEDt\xE1saiban enged\xE9lyezheted", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz", "dynamicFlows.CameraCapture.reviewInstructions": "Tiszta, olvashat\xF3, teljes k\xE9pet k\xE9sz\xEDtett\xE9l?", "dynamicFlows.CameraCapture.reviewRetry": "Nem, pr\xF3b\xE1ljuk \xFAjra", "dynamicFlows.CameraCapture.reviewSubmit": "Igen, elk\xFCld\xF6m", "dynamicFlows.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.", "dynamicFlows.ControlFeedback.minLength": "K\xE9r\xFCnk, legal\xE1bb {minLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.minimum": "K\xE9r\xFCnk add meg ezt vagy egy enn\xE9l nagyobb sz\xE1mot: {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {minimum} napj\xE1val, vagy egy enn\xE9l k\xE9s\u0151bbit.", "dynamicFlows.ControlFeedback.pattern": "Helytelen form\xE1tum", "dynamicFlows.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.", "dynamicFlows.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.", "dynamicFlows.ControlFeedback.type": "Helytelen t\xEDpus", "dynamicFlows.DynamicExternal.retryTitle": "Ablak \xFAjranyit\xE1sa", "dynamicFlows.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva", "dynamicFlows.DynamicParagraph.copy": "M\xE1sol\xE1s", "dynamicFlows.ErrorBoundary.errorAlert": "Hopp\xE1! Valami hiba t\xF6rt\xE9nt...", "dynamicFlows.ErrorBoundary.retry": "\xDAjra", "dynamicFlows.ExternalConfirmation.cancel": "M\xE9gsem", "dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.", "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon", "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s", "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra k\xE9s\u0151bb!", "dynamicFlows.ReadOnlySchema.no": "Nem", "dynamicFlows.ReadOnlySchema.yes": "Igen" };
|
|
2900
|
+
var ol = { "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 al = { "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
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
|
|
2904
|
-
var
|
|
2905
|
-
var
|
|
2906
|
-
var
|
|
2907
|
-
var
|
|
2908
|
-
var
|
|
2909
|
-
var
|
|
2910
|
-
var
|
|
2911
|
-
var
|
|
2903
|
+
var il = { "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
|
+
var sl = { "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 ml = { "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 ll = { "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
|
+
var cl = { "dynamicFlows.ArraySchema.addItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21 {maxItems} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}", "dynamicFlows.ArraySchema.removeItem": "\u0E25\u0E1A", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E43\u0E0A\u0E49\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07 \u0E43\u0E2B\u0E49\u0E25\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E14\u0E32\u0E27\u0E19\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E2D\u0E1B\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D\u0E02\u0E2D\u0E07\u0E40\u0E23\u0E32\u0E14\u0E39", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", "dynamicFlows.CameraCapture.reviewInstructions": "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19 \u0E2D\u0E48\u0E32\u0E19\u0E44\u0E14\u0E49 \u0E41\u0E25\u0E30\u0E04\u0E23\u0E1A\u0E16\u0E49\u0E27\u0E19\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", "dynamicFlows.CameraCapture.reviewRetry": "\u0E44\u0E21\u0E48 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E17\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.reviewSubmit": "\u0E43\u0E0A\u0E48 \u0E2A\u0E48\u0E07\u0E40\u0E25\u0E22", "dynamicFlows.ControlFeedback.maxLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19 {maxLength} \u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E48\u0E2D\u0E19 {maximum}", "dynamicFlows.ControlFeedback.minLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minLength} \u0E15\u0E31\u0E27", "dynamicFlows.ControlFeedback.minimum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {minimum} \u0E2B\u0E23\u0E37\u0E2D\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.minimumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E31\u0E07 {minimum}", "dynamicFlows.ControlFeedback.pattern": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49", "dynamicFlows.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.DynamicExternal.retryTitle": "\u0E40\u0E1B\u0E34\u0E14\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14", "dynamicFlows.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01", "dynamicFlows.ErrorBoundary.errorAlert": "\u0E2D\u0E4A\u0E30 \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07...", "dynamicFlows.ErrorBoundary.retry": "\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.ExternalConfirmation.cancel": "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", "dynamicFlows.ExternalConfirmation.description": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E34\u0E14 **{origin}** \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C", "dynamicFlows.ExternalConfirmation.open": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48", "dynamicFlows.ExternalConfirmation.title": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19", "dynamicFlows.Help.ariaLabel": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14 {maxItems} \u0E44\u0E1F\u0E25\u0E4C\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems} \u0E44\u0E1F\u0E25\u0E4C", "dynamicFlows.PersistAsyncSchema.genericError": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07!", "dynamicFlows.ReadOnlySchema.no": "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48", "dynamicFlows.ReadOnlySchema.yes": "\u0E43\u0E0A\u0E48" };
|
|
2908
|
+
var dl = { "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" };
|
|
2909
|
+
var Ba = { "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" };
|
|
2910
|
+
var ul = { "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" };
|
|
2911
|
+
var ap = { en: Qm, de: Zm, es: el, fr: tl, hu: rl, id: ol, it: al, ja: nl, pl: il, pt: sl, ro: ml, ru: ll, th: cl, tr: dl, zh: Ba, "zh-CN": Ba, "zh-HK": ul };
|
|
2912
|
+
var pl = ap;
|
|
2912
2913
|
}
|
|
2913
2914
|
});
|
|
2914
2915
|
|