@wise/dynamic-flow-client-internal 1.9.1 → 1.9.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.css +10 -0
- package/build/main.js +1194 -1187
- package/build/main.min.js +1 -1
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -51,40 +51,40 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
51
51
|
var require_main_min = __commonJS({
|
|
52
52
|
"../core/build/main.min.js"(exports, module2) {
|
|
53
53
|
"use strict";
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
54
|
+
var Ql = Object.create;
|
|
55
|
+
var Bt = Object.defineProperty;
|
|
56
|
+
var Zl = Object.defineProperties;
|
|
57
|
+
var ec = Object.getOwnPropertyDescriptor;
|
|
58
|
+
var tc = Object.getOwnPropertyDescriptors;
|
|
59
|
+
var rc = Object.getOwnPropertyNames;
|
|
60
|
+
var Mn = Object.getOwnPropertySymbols;
|
|
61
|
+
var oc = Object.getPrototypeOf;
|
|
62
|
+
var En = Object.prototype.hasOwnProperty;
|
|
63
|
+
var nc = Object.prototype.propertyIsEnumerable;
|
|
64
|
+
var kn = (e, t, r) => t in e ? Bt(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
|
+
En.call(t, r) && kn(e, r, t[r]);
|
|
68
|
+
if (Mn)
|
|
69
|
+
for (var r of Mn(t))
|
|
70
|
+
nc.call(t, r) && kn(e, r, t[r]);
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
|
-
var S = (e, t) =>
|
|
74
|
-
var
|
|
75
|
-
var
|
|
73
|
+
var S = (e, t) => Zl(e, tc(t));
|
|
74
|
+
var Dn = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
75
|
+
var ac = (e, t) => {
|
|
76
76
|
for (var r in t)
|
|
77
|
-
|
|
77
|
+
Bt(e, r, { get: t[r], enumerable: true });
|
|
78
78
|
};
|
|
79
|
-
var
|
|
79
|
+
var In = (e, t, r, o) => {
|
|
80
80
|
if (t && typeof t == "object" || typeof t == "function")
|
|
81
|
-
for (let n of
|
|
82
|
-
!
|
|
81
|
+
for (let n of rc(t))
|
|
82
|
+
!En.call(e, n) && n !== r && Bt(e, n, { get: () => t[n], enumerable: !(o = ec(t, n)) || o.enumerable });
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var rt =
|
|
85
|
+
var ze = (e, t, r) => (r = e != null ? Ql(oc(e)) : {}, In(t || !e || !e.__esModule ? Bt(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
|
+
var ic = (e) => In(Bt({}, "__esModule", { value: true }), e);
|
|
87
|
+
var rt = Dn((rf, Er) => {
|
|
88
88
|
(function() {
|
|
89
89
|
"use strict";
|
|
90
90
|
var e = {}.hasOwnProperty, t = "[native code]";
|
|
@@ -112,15 +112,15 @@ var require_main_min = __commonJS({
|
|
|
112
112
|
}
|
|
113
113
|
return o.join(" ");
|
|
114
114
|
}
|
|
115
|
-
typeof
|
|
115
|
+
typeof Er < "u" && Er.exports ? (r.default = r, Er.exports = r) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
|
|
116
116
|
return r;
|
|
117
117
|
}) : window.classNames = r;
|
|
118
118
|
})();
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Ns = Dn((sr, fn) => {
|
|
121
121
|
(function(t, r) {
|
|
122
|
-
typeof
|
|
123
|
-
})(
|
|
122
|
+
typeof sr == "object" && typeof fn == "object" ? fn.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof sr == "object" ? sr.Webcam = r(require("react")) : t.Webcam = r(t.React);
|
|
123
|
+
})(sr, function(e) {
|
|
124
124
|
return function(t) {
|
|
125
125
|
var r = {};
|
|
126
126
|
function o(n) {
|
|
@@ -158,23 +158,23 @@ var require_main_min = __commonJS({
|
|
|
158
158
|
o.r(r);
|
|
159
159
|
var n = o("react"), a = o.n(n), s = function() {
|
|
160
160
|
var h = function(f, l) {
|
|
161
|
-
return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
162
|
-
|
|
163
|
-
} || function(
|
|
161
|
+
return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, y) {
|
|
162
|
+
u.__proto__ = y;
|
|
163
|
+
} || function(u, y) {
|
|
164
164
|
for (var g in y)
|
|
165
|
-
y.hasOwnProperty(g) && (
|
|
165
|
+
y.hasOwnProperty(g) && (u[g] = y[g]);
|
|
166
166
|
}, h(f, l);
|
|
167
167
|
};
|
|
168
168
|
return function(f, l) {
|
|
169
169
|
h(f, l);
|
|
170
|
-
function
|
|
170
|
+
function u() {
|
|
171
171
|
this.constructor = f;
|
|
172
172
|
}
|
|
173
|
-
f.prototype = l === null ? Object.create(l) : (
|
|
173
|
+
f.prototype = l === null ? Object.create(l) : (u.prototype = l.prototype, new u());
|
|
174
174
|
};
|
|
175
175
|
}(), c = function() {
|
|
176
176
|
return c = Object.assign || function(h) {
|
|
177
|
-
for (var f, l = 1,
|
|
177
|
+
for (var f, l = 1, u = arguments.length; l < u; l++) {
|
|
178
178
|
f = arguments[l];
|
|
179
179
|
for (var y in f)
|
|
180
180
|
Object.prototype.hasOwnProperty.call(f, y) && (h[y] = f[y]);
|
|
@@ -183,64 +183,64 @@ var require_main_min = __commonJS({
|
|
|
183
183
|
}, c.apply(this, arguments);
|
|
184
184
|
}, p = function(h, f) {
|
|
185
185
|
var l = {};
|
|
186
|
-
for (var
|
|
187
|
-
Object.prototype.hasOwnProperty.call(h,
|
|
186
|
+
for (var u in h)
|
|
187
|
+
Object.prototype.hasOwnProperty.call(h, u) && f.indexOf(u) < 0 && (l[u] = h[u]);
|
|
188
188
|
if (h != null && typeof Object.getOwnPropertySymbols == "function")
|
|
189
|
-
for (var y = 0,
|
|
190
|
-
f.indexOf(
|
|
189
|
+
for (var y = 0, u = Object.getOwnPropertySymbols(h); y < u.length; y++)
|
|
190
|
+
f.indexOf(u[y]) < 0 && Object.prototype.propertyIsEnumerable.call(h, u[y]) && (l[u[y]] = h[u[y]]);
|
|
191
191
|
return l;
|
|
192
192
|
};
|
|
193
193
|
(function() {
|
|
194
194
|
typeof window > "u" || (navigator.mediaDevices === void 0 && (navigator.mediaDevices = {}), navigator.mediaDevices.getUserMedia === void 0 && (navigator.mediaDevices.getUserMedia = function(f) {
|
|
195
195
|
var l = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
|
|
196
|
-
return l ? new Promise(function(
|
|
197
|
-
l.call(navigator, f,
|
|
196
|
+
return l ? new Promise(function(u, y) {
|
|
197
|
+
l.call(navigator, f, u, y);
|
|
198
198
|
}) : Promise.reject(new Error("getUserMedia is not implemented in this browser"));
|
|
199
199
|
}));
|
|
200
200
|
})();
|
|
201
|
-
function
|
|
201
|
+
function d() {
|
|
202
202
|
return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
|
|
203
203
|
}
|
|
204
204
|
var m = function(h) {
|
|
205
205
|
s(f, h);
|
|
206
206
|
function f(l) {
|
|
207
|
-
var
|
|
208
|
-
return
|
|
207
|
+
var u = h.call(this, l) || this;
|
|
208
|
+
return u.canvas = null, u.ctx = null, u.requestUserMediaId = 0, u.unmounted = false, u.state = { hasUserMedia: false }, u;
|
|
209
209
|
}
|
|
210
210
|
return f.prototype.componentDidMount = function() {
|
|
211
|
-
var l = this,
|
|
212
|
-
if (this.unmounted = false, !
|
|
211
|
+
var l = this, u = l.state, y = l.props;
|
|
212
|
+
if (this.unmounted = false, !d()) {
|
|
213
213
|
y.onUserMediaError("getUserMedia not supported");
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
u.hasUserMedia || this.requestUserMedia(), y.children && typeof y.children != "function" && console.warn("children must be a function");
|
|
217
217
|
}, f.prototype.componentDidUpdate = function(l) {
|
|
218
|
-
var
|
|
219
|
-
if (!
|
|
220
|
-
|
|
218
|
+
var u = this.props;
|
|
219
|
+
if (!d()) {
|
|
220
|
+
u.onUserMediaError("getUserMedia not supported");
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
var y = JSON.stringify(l.audioConstraints) !== JSON.stringify(
|
|
223
|
+
var y = JSON.stringify(l.audioConstraints) !== JSON.stringify(u.audioConstraints), g = JSON.stringify(l.videoConstraints) !== JSON.stringify(u.videoConstraints), b = l.minScreenshotWidth !== u.minScreenshotWidth, x = l.minScreenshotHeight !== u.minScreenshotHeight;
|
|
224
224
|
(g || b || x) && (this.canvas = null, this.ctx = null), (y || g) && (this.stopAndCleanup(), this.requestUserMedia());
|
|
225
225
|
}, f.prototype.componentWillUnmount = function() {
|
|
226
226
|
this.unmounted = true, this.stopAndCleanup();
|
|
227
227
|
}, f.stopMediaStream = function(l) {
|
|
228
|
-
l && (l.getVideoTracks && l.getAudioTracks ? (l.getVideoTracks().map(function(
|
|
229
|
-
l.removeTrack(
|
|
230
|
-
}), l.getAudioTracks().map(function(
|
|
231
|
-
l.removeTrack(
|
|
228
|
+
l && (l.getVideoTracks && l.getAudioTracks ? (l.getVideoTracks().map(function(u) {
|
|
229
|
+
l.removeTrack(u), u.stop();
|
|
230
|
+
}), l.getAudioTracks().map(function(u) {
|
|
231
|
+
l.removeTrack(u), u.stop();
|
|
232
232
|
})) : l.stop());
|
|
233
233
|
}, f.prototype.stopAndCleanup = function() {
|
|
234
234
|
var l = this.state;
|
|
235
235
|
l.hasUserMedia && (f.stopMediaStream(this.stream), l.src && window.URL.revokeObjectURL(l.src));
|
|
236
236
|
}, f.prototype.getScreenshot = function(l) {
|
|
237
|
-
var
|
|
237
|
+
var u = this, y = u.state, g = u.props;
|
|
238
238
|
if (!y.hasUserMedia)
|
|
239
239
|
return null;
|
|
240
240
|
var b = this.getCanvas(l);
|
|
241
241
|
return b && b.toDataURL(g.screenshotFormat, g.screenshotQuality);
|
|
242
242
|
}, f.prototype.getCanvas = function(l) {
|
|
243
|
-
var
|
|
243
|
+
var u = this, y = u.state, g = u.props;
|
|
244
244
|
if (!this.video || !y.hasUserMedia || !this.video.videoHeight)
|
|
245
245
|
return null;
|
|
246
246
|
if (!this.ctx) {
|
|
@@ -254,9 +254,9 @@ var require_main_min = __commonJS({
|
|
|
254
254
|
var v = this, P = v.ctx, w = v.canvas;
|
|
255
255
|
return P && w && (g.mirrored && (P.translate(w.width, 0), P.scale(-1, 1)), P.imageSmoothingEnabled = g.imageSmoothing, P.drawImage(this.video, 0, 0, l?.width || w.width, l?.height || w.height), g.mirrored && (P.scale(-1, 1), P.translate(-w.width, 0))), w;
|
|
256
256
|
}, f.prototype.requestUserMedia = function() {
|
|
257
|
-
var l = this,
|
|
257
|
+
var l = this, u = this.props, y = function(x, C) {
|
|
258
258
|
var v = { video: typeof C < "u" ? C : true };
|
|
259
|
-
|
|
259
|
+
u.audio && (v.audio = typeof x < "u" ? x : true), l.requestUserMediaId++;
|
|
260
260
|
var P = l.requestUserMediaId;
|
|
261
261
|
navigator.mediaDevices.getUserMedia(v).then(function(w) {
|
|
262
262
|
l.unmounted || P !== l.requestUserMediaId ? f.stopMediaStream(w) : l.handleUserMedia(null, w);
|
|
@@ -265,7 +265,7 @@ var require_main_min = __commonJS({
|
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
if ("mediaDevices" in navigator)
|
|
268
|
-
y(
|
|
268
|
+
y(u.audioConstraints, u.videoConstraints);
|
|
269
269
|
else {
|
|
270
270
|
var g = function(x) {
|
|
271
271
|
return { optional: [{ sourceId: x }] };
|
|
@@ -278,27 +278,27 @@ var require_main_min = __commonJS({
|
|
|
278
278
|
x.forEach(function(I) {
|
|
279
279
|
I.kind === "audio" ? C = I.id : I.kind === "video" && (v = I.id);
|
|
280
280
|
});
|
|
281
|
-
var P = b(
|
|
281
|
+
var P = b(u.audioConstraints);
|
|
282
282
|
P && (C = P);
|
|
283
|
-
var w = b(
|
|
283
|
+
var w = b(u.videoConstraints);
|
|
284
284
|
w && (v = w), y(g(C), g(v));
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
}, f.prototype.handleUserMedia = function(l,
|
|
287
|
+
}, f.prototype.handleUserMedia = function(l, u) {
|
|
288
288
|
var y = this.props;
|
|
289
|
-
if (l || !
|
|
289
|
+
if (l || !u) {
|
|
290
290
|
this.setState({ hasUserMedia: false }), y.onUserMediaError(l);
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
|
-
this.stream =
|
|
293
|
+
this.stream = u;
|
|
294
294
|
try {
|
|
295
|
-
this.video && (this.video.srcObject =
|
|
295
|
+
this.video && (this.video.srcObject = u), this.setState({ hasUserMedia: true });
|
|
296
296
|
} catch {
|
|
297
|
-
this.setState({ hasUserMedia: true, src: window.URL.createObjectURL(
|
|
297
|
+
this.setState({ hasUserMedia: true, src: window.URL.createObjectURL(u) });
|
|
298
298
|
}
|
|
299
|
-
y.onUserMedia(
|
|
299
|
+
y.onUserMedia(u);
|
|
300
300
|
}, f.prototype.render = function() {
|
|
301
|
-
var l = this,
|
|
301
|
+
var l = this, u = this, y = u.state, g = u.props, b = g.audio, x = g.forceScreenshotSourceSize, C = g.onUserMedia, v = g.onUserMediaError, P = g.screenshotFormat, w = g.screenshotQuality, I = g.minScreenshotWidth, N = g.minScreenshotHeight, A = g.audioConstraints, L = g.videoConstraints, $ = g.imageSmoothing, O = g.mirrored, j = g.style, k = j === void 0 ? {} : j, z = g.children, Fe = p(g, ["audio", "forceScreenshotSourceSize", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), ne = O ? c(c({}, k), { transform: (k.transform || "") + " scaleX(-1)" }) : k, re = { getScreenshot: this.getScreenshot.bind(this) };
|
|
302
302
|
return n.createElement(n.Fragment, null, n.createElement("video", c({ autoPlay: true, src: y.src, muted: !b, playsInline: true, ref: function(me) {
|
|
303
303
|
l.video = me;
|
|
304
304
|
}, style: ne }, Fe)), z && z(re));
|
|
@@ -312,208 +312,208 @@ var require_main_min = __commonJS({
|
|
|
312
312
|
} }).default;
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
module2.exports =
|
|
318
|
-
function
|
|
315
|
+
var Au = {};
|
|
316
|
+
ac(Au, { DynamicFlow: () => An, JsonSchemaForm: () => rr, Layout: () => se, convertStepToLayout: () => jt, inlineReferences: () => He, isValidSchema: () => G, makeHttpClient: () => wr, translations: () => Wl });
|
|
317
|
+
module2.exports = ic(Au);
|
|
318
|
+
function jt(e, { displayStepTitle: t = true } = {}) {
|
|
319
319
|
if (e.layout)
|
|
320
|
-
return
|
|
320
|
+
return wc(e, t);
|
|
321
321
|
switch (e.type) {
|
|
322
322
|
case "final":
|
|
323
|
-
return
|
|
323
|
+
return mc(e);
|
|
324
324
|
case "decision":
|
|
325
|
-
return
|
|
325
|
+
return dc(e);
|
|
326
326
|
case "external":
|
|
327
|
-
return
|
|
327
|
+
return sc(e);
|
|
328
328
|
default:
|
|
329
|
-
return
|
|
329
|
+
return cc(e);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function io(e) {
|
|
333
333
|
let t = [];
|
|
334
|
-
if (e.title && t.push(
|
|
335
|
-
let r =
|
|
334
|
+
if (e.title && t.push(lo(e.title)), e.image) {
|
|
335
|
+
let r = Ln(e.image);
|
|
336
336
|
t.push(r);
|
|
337
337
|
}
|
|
338
|
-
return e.description && t.push(
|
|
338
|
+
return e.description && t.push(co(e.description)), t;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
return [...
|
|
340
|
+
function sc(e) {
|
|
341
|
+
return [...io(e), lc(e)];
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function lc(e) {
|
|
344
344
|
return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
let t =
|
|
348
|
-
if (e.reviewFields && t.push(
|
|
349
|
-
let r = e.actions.map(
|
|
350
|
-
t.push(
|
|
346
|
+
function cc(e) {
|
|
347
|
+
let t = io(e);
|
|
348
|
+
if (e.reviewFields && t.push(hc(e.reviewFields)), e.schemas && t.push(...bc(e)), e.actions) {
|
|
349
|
+
let r = e.actions.map(pr);
|
|
350
|
+
t.push(so(r, "md"));
|
|
351
351
|
}
|
|
352
352
|
return t;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function mc(e) {
|
|
355
355
|
let t = [];
|
|
356
356
|
if (e.details) {
|
|
357
357
|
if (e.details.image) {
|
|
358
|
-
let r =
|
|
358
|
+
let r = yc(e.details.image);
|
|
359
359
|
t.push(r);
|
|
360
360
|
}
|
|
361
|
-
e.details.title && t.push(
|
|
361
|
+
e.details.title && t.push(lo(e.details.title)), e.details.description && t.push(co(e.details.description));
|
|
362
362
|
}
|
|
363
363
|
if (e.actions) {
|
|
364
|
-
let r = e.actions.map((o) =>
|
|
365
|
-
t.push(
|
|
364
|
+
let r = e.actions.map((o) => pr(S(i({}, o), { type: o.type || "primary" })));
|
|
365
|
+
t.push(so(r, "md"));
|
|
366
366
|
}
|
|
367
367
|
return t;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let t =
|
|
371
|
-
return e.options && t.push(
|
|
369
|
+
function dc(e) {
|
|
370
|
+
let t = io(e);
|
|
371
|
+
return e.options && t.push(pc(e.options)), t;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function so(e, t) {
|
|
374
374
|
return { type: "box", width: t || "md", components: e };
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function lo(e) {
|
|
377
377
|
return { type: "heading", text: e, size: "lg", margin: "lg", align: "center" };
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function co(e) {
|
|
380
380
|
return { type: "paragraph", text: e, align: "center" };
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function uc(e) {
|
|
383
383
|
return { type: "form", schema: e };
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return { type: "decision", options: e.map(
|
|
385
|
+
function pc(e) {
|
|
386
|
+
return { type: "decision", options: e.map(fc) };
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function fc(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 Ln(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 yc(e) {
|
|
395
|
+
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : Ln(e);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function pr(e) {
|
|
398
398
|
return { type: "button", action: S(i({}, e), { title: e.title }) };
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
return { type: "review", title: e.title, fields: e.fields.map(
|
|
400
|
+
function hc(e) {
|
|
401
|
+
return { type: "review", title: e.title, fields: e.fields.map(gc) };
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function gc(e) {
|
|
404
404
|
return { label: e.title, value: e.value };
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function bc(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 = uc(r);
|
|
410
|
+
Sc() ? t.push(o) : t.push(so([o], "md"));
|
|
411
411
|
}
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Sc() {
|
|
415
415
|
return false;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
return [...t && e.title ? [
|
|
417
|
+
function wc(e, t) {
|
|
418
|
+
return [...t && e.title ? [lo(e.title)] : [], ...e.description ? [co(e.description)] : [], ...e.layout || []];
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
return e ? t ? e.map((n) => n.type === "form" ?
|
|
420
|
+
function He({ layout: e, schemas: t, actions: r, model: o }) {
|
|
421
|
+
return e ? t ? e.map((n) => n.type === "form" ? Fc({ formComponent: n, schemas: t }) : n.type === "decision" ? Cc({ decisionComponent: n, actions: r }) : n.type === "button" ? xc({ actionComponent: n, actions: r }) : n.type === "box" ? Oc({ boxComponent: n, schemas: t, actions: r, model: o }) : n.type === "columns" ? vc({ columnsComponent: n, schemas: t, actions: r, model: o }) : n) : e : [];
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Fc({ formComponent: e, schemas: t }) {
|
|
424
424
|
if (e.schemaId)
|
|
425
|
-
return { type: "form", margin: e.margin, schema:
|
|
426
|
-
if (e.schema &&
|
|
427
|
-
return { type: "form", margin: e.margin, schema:
|
|
428
|
-
if (e.schema && !
|
|
425
|
+
return { type: "form", margin: e.margin, schema: Nn(t, e.schemaId) };
|
|
426
|
+
if (e.schema && fr(e.schema) && e.schema.$ref)
|
|
427
|
+
return { type: "form", margin: e.margin, schema: Nn(t, e.schema.$ref) };
|
|
428
|
+
if (e.schema && !fr(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 Cc({ decisionComponent: e, actions: t }) {
|
|
433
433
|
var o;
|
|
434
|
-
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((n) => n.action &&
|
|
434
|
+
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((n) => n.action && fr(n.action) ? S(i({}, n), { action: Tn(t, n.action.$ref) }) : n);
|
|
435
435
|
return S(i({}, e), { options: r });
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function xc({ actionComponent: e, actions: t }) {
|
|
438
438
|
var r;
|
|
439
|
-
if (e.action &&
|
|
440
|
-
let o =
|
|
441
|
-
return
|
|
439
|
+
if (e.action && fr(e.action) && ((r = e.action) != null && r.$ref)) {
|
|
440
|
+
let o = Tn(t, e.action.$ref);
|
|
441
|
+
return pr(o);
|
|
442
442
|
}
|
|
443
443
|
return e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
return S(i({}, e), { components:
|
|
445
|
+
function Oc({ boxComponent: e, schemas: t, actions: r, model: o }) {
|
|
446
|
+
return S(i({}, e), { components: He({ layout: e.components, schemas: t, actions: r, model: o }) });
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
return S(i({}, e), { left:
|
|
448
|
+
function vc({ columnsComponent: e, schemas: t, actions: r, model: o }) {
|
|
449
|
+
return S(i({}, e), { left: He({ layout: e.left, schemas: t, actions: r, model: o }), right: He({ layout: e.right, schemas: t, actions: r, model: o }) });
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Nn(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 Tn(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}`);
|
|
461
461
|
return r;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function fr(e) {
|
|
464
464
|
return Object.prototype.hasOwnProperty.call(e, "$ref");
|
|
465
465
|
}
|
|
466
466
|
var we = require("react");
|
|
467
|
-
var
|
|
468
|
-
var
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
let [e, t] = (0,
|
|
472
|
-
return { addPendingPromise: (0,
|
|
473
|
-
t((n) => n + 1), o.catch(
|
|
467
|
+
var Dl = require("react-intl");
|
|
468
|
+
var pt = require("react");
|
|
469
|
+
var yr = require("react");
|
|
470
|
+
function Rn() {
|
|
471
|
+
let [e, t] = (0, yr.useState)(0);
|
|
472
|
+
return { addPendingPromise: (0, yr.useCallback)((o) => {
|
|
473
|
+
t((n) => n + 1), o.catch(Ac).finally(() => Pc(() => t((n) => Math.max(0, n - 1))));
|
|
474
474
|
}, [t]), pendingPromises: e };
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
var
|
|
476
|
+
var Pc = (e) => setTimeout(() => e(), 0);
|
|
477
|
+
var Ac = () => {
|
|
478
478
|
};
|
|
479
|
-
var
|
|
480
|
-
var
|
|
479
|
+
var Un = require("react/jsx-runtime");
|
|
480
|
+
var Bn = { loading: false, registerPersistAsyncPromise: (e) => {
|
|
481
481
|
} };
|
|
482
|
-
var
|
|
483
|
-
var
|
|
484
|
-
let { pendingPromises: r, addPendingPromise: o } =
|
|
485
|
-
return (0,
|
|
482
|
+
var jn = (0, pt.createContext)(Bn);
|
|
483
|
+
var Vn = ({ loading: e, children: t }) => {
|
|
484
|
+
let { pendingPromises: r, addPendingPromise: o } = Rn(), n = (0, pt.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: o }), [e, r, o]);
|
|
485
|
+
return (0, Un.jsx)(jn.Provider, { value: n, children: t });
|
|
486
486
|
};
|
|
487
|
-
var
|
|
488
|
-
var
|
|
489
|
-
var
|
|
490
|
-
var
|
|
487
|
+
var hr = () => (0, pt.useContext)(jn) || Bn;
|
|
488
|
+
var ft = require("react");
|
|
489
|
+
var Hn = require("react/jsx-runtime");
|
|
490
|
+
var zn = (0, ft.createContext)({ triggerEvent: () => {
|
|
491
491
|
} });
|
|
492
|
-
var
|
|
493
|
-
let o = (0,
|
|
494
|
-
return (0,
|
|
492
|
+
var gr = ({ metadata: e, children: t, onEvent: r }) => {
|
|
493
|
+
let o = (0, ft.useMemo)(() => ({ triggerEvent: mo(r, e) }), [r, e]);
|
|
494
|
+
return (0, Hn.jsx)(zn.Provider, { value: o, children: t });
|
|
495
495
|
};
|
|
496
496
|
function Z() {
|
|
497
|
-
let { triggerEvent: e } = (0,
|
|
497
|
+
let { triggerEvent: e } = (0, ft.useContext)(zn);
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
|
-
var
|
|
500
|
+
var mo = (e, t) => (r, o = {}) => e(r, i(i({}, t), o));
|
|
501
501
|
var et = require("react");
|
|
502
|
-
function
|
|
502
|
+
function qn(e) {
|
|
503
503
|
return e >= 200 && e < 300;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function br(e) {
|
|
506
506
|
return e === 422;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Sr(e = "") {
|
|
509
509
|
return ["https://", "http://", "data:"].some((t) => e.slice(0, t.length) === t && e.length > t.length) === false;
|
|
510
510
|
}
|
|
511
|
-
var
|
|
512
|
-
let n =
|
|
511
|
+
var wr = (e, t) => (r, o) => {
|
|
512
|
+
let n = Mc(r, e || ""), a = kc(o == null ? void 0 : o.headers, t);
|
|
513
513
|
return fetch(n, S(i({}, o || {}), { headers: a }));
|
|
514
514
|
};
|
|
515
|
-
var
|
|
516
|
-
var
|
|
515
|
+
var Mc = (e, t) => typeof e == "string" && Sr(e) ? t + e : e;
|
|
516
|
+
var kc = (e, t) => {
|
|
517
517
|
if (!e && !t)
|
|
518
518
|
return {};
|
|
519
519
|
let r = new Headers(e);
|
|
@@ -521,281 +521,281 @@ var require_main_min = __commonJS({
|
|
|
521
521
|
r.set(o, n);
|
|
522
522
|
return r;
|
|
523
523
|
};
|
|
524
|
-
var
|
|
525
|
-
var
|
|
526
|
-
var
|
|
527
|
-
var
|
|
528
|
-
let r = (0, et.useMemo)(() =>
|
|
529
|
-
return (0,
|
|
530
|
-
};
|
|
531
|
-
var ee = () => (0, et.useContext)(
|
|
532
|
-
var
|
|
533
|
-
var
|
|
534
|
-
var
|
|
524
|
+
var uo = require("react/jsx-runtime");
|
|
525
|
+
var Fr = (0, et.createContext)(void 0);
|
|
526
|
+
var $n = ({ httpClient: e, children: t }) => (0, uo.jsx)(Fr.Provider, { value: e, children: t });
|
|
527
|
+
var Cr = ({ baseUrl: e, children: t }) => {
|
|
528
|
+
let r = (0, et.useMemo)(() => wr(e), [e]);
|
|
529
|
+
return (0, uo.jsx)(Fr.Provider, { value: r, children: t });
|
|
530
|
+
};
|
|
531
|
+
var ee = () => (0, et.useContext)(Fr) || fetch;
|
|
532
|
+
var xr = () => !!(0, et.useContext)(Fr);
|
|
533
|
+
var yt = require("react");
|
|
534
|
+
var Wn = require("react/jsx-runtime");
|
|
535
535
|
var tt = (e, t, r = "UNKNOWN-FLOW-ID", o = "UNKNOWN-FLOW-ID") => (n, a, s) => t(e, `Dynamic Flow ${e} - ${n} - ${a}`, i({ flowId: r, stepId: o }, s));
|
|
536
|
-
var
|
|
537
|
-
var
|
|
538
|
-
let n = (0,
|
|
539
|
-
return (0,
|
|
536
|
+
var Gn = (0, yt.createContext)(null);
|
|
537
|
+
var Or = ({ flowId: e, stepId: t, children: r, onLog: o }) => {
|
|
538
|
+
let n = (0, yt.useMemo)(() => ({ debug: tt("debug", o, e, t), info: tt("info", o, e, t), warning: tt("warning", o, e, t), error: tt("error", o, e, t), critical: tt("critical", o, e, t) }), [o, e, t]);
|
|
539
|
+
return (0, Wn.jsx)(Gn.Provider, { value: n, children: r });
|
|
540
540
|
};
|
|
541
|
-
var
|
|
542
|
-
let e = (0,
|
|
541
|
+
var ht = () => {
|
|
542
|
+
let e = (0, yt.useContext)(Gn);
|
|
543
543
|
if (e == null)
|
|
544
544
|
throw new Error("Logging context not found. Did you forget to wrap your component in a <LogProvider />?");
|
|
545
545
|
return e;
|
|
546
546
|
};
|
|
547
547
|
var D = (e) => typeof e == "string";
|
|
548
548
|
var R = (e) => typeof e == "number" && !Number.isNaN(e);
|
|
549
|
-
var
|
|
549
|
+
var _n = (e) => R(e) && Math.floor(e) === e;
|
|
550
550
|
var Ce = (e) => typeof e == "boolean";
|
|
551
551
|
var T = (e) => !M(e) && !K(e) && (e == null ? void 0 : e.constructor) === Object;
|
|
552
552
|
var q = (e) => Array.isArray(e);
|
|
553
553
|
var M = (e) => e === null;
|
|
554
554
|
var K = (e) => typeof e == "undefined";
|
|
555
|
-
var
|
|
556
|
-
function _n(e, t) {
|
|
557
|
-
return t.oneOf.some((r) => Me(e, r) === e) ? e : null;
|
|
558
|
-
}
|
|
555
|
+
var gt = (e) => D(e) && e.length === 0 || (T(e) || q(e)) && Object.keys(e).length === 0;
|
|
559
556
|
function Kn(e, t) {
|
|
557
|
+
return t.oneOf.some((r) => ke(e, r) === e) ? e : null;
|
|
558
|
+
}
|
|
559
|
+
function Jn(e, t) {
|
|
560
560
|
var o;
|
|
561
|
-
let r = t.oneOf.map((n) =>
|
|
561
|
+
let r = t.oneOf.map((n) => Ec(e, n)).filter((n) => n !== null);
|
|
562
562
|
return r.length === 0 ? null : (o = r.find((n) => n.some((a) => a !== null))) != null ? o : r[0];
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return !
|
|
566
|
-
}
|
|
567
|
-
function Jn(e) {
|
|
568
|
-
return D(e) && !ht(e) ? e : null;
|
|
564
|
+
function Ec(e, t) {
|
|
565
|
+
return !Ee(t) || !qe(t) ? null : po(e, t);
|
|
569
566
|
}
|
|
570
567
|
function Xn(e) {
|
|
571
|
-
return
|
|
568
|
+
return D(e) && !gt(e) ? e : null;
|
|
572
569
|
}
|
|
573
570
|
function Yn(e) {
|
|
571
|
+
return R(e) ? e : null;
|
|
572
|
+
}
|
|
573
|
+
function Qn(e) {
|
|
574
574
|
return Ce(e) ? e : null;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
if (!q(e) || !
|
|
576
|
+
function po(e, t) {
|
|
577
|
+
if (!q(e) || !qe(t))
|
|
578
578
|
return null;
|
|
579
579
|
if (e.length > 0) {
|
|
580
580
|
let r = typeof e[0];
|
|
581
581
|
if (!e.every((o) => typeof o === r))
|
|
582
582
|
return new Array(e.length).fill(null);
|
|
583
583
|
}
|
|
584
|
-
return e.map((r) =>
|
|
584
|
+
return e.map((r) => ke(r, t.items));
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Zn(e, t) {
|
|
587
587
|
return Object.keys(t.properties).reduce((r, o) => {
|
|
588
588
|
if (e && !K(e[o])) {
|
|
589
|
-
let n = e[o], a = t.properties[o], s =
|
|
589
|
+
let n = e[o], a = t.properties[o], s = Vt(n, a);
|
|
590
590
|
if (!M(s))
|
|
591
591
|
return S(i({}, r), { [o]: s });
|
|
592
592
|
}
|
|
593
593
|
return r;
|
|
594
594
|
}, {});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function ea(e, t) {
|
|
597
597
|
return t.allOf.reduce((r, o) => {
|
|
598
598
|
let n = ae(e, o);
|
|
599
599
|
return Y(n) ? i(i({}, r), n) : r;
|
|
600
600
|
}, {});
|
|
601
601
|
}
|
|
602
|
-
function ea(e, t) {
|
|
603
|
-
return t.oneOf.map((r) => ae(e, r)).reduce((r, o) => M(r) ? o : Y(r) && Y(o) ? ta(r, o) : M(o) ? r : o, null);
|
|
604
|
-
}
|
|
605
602
|
function ta(e, t) {
|
|
603
|
+
return t.oneOf.map((r) => ae(e, r)).reduce((r, o) => M(r) ? o : Y(r) && Y(o) ? ra(r, o) : M(o) ? r : o, null);
|
|
604
|
+
}
|
|
605
|
+
function ra(e, t) {
|
|
606
606
|
return Object.keys(t).reduce((r, o) => {
|
|
607
607
|
let n = e[o], a = t[o];
|
|
608
|
-
return Y(n) && Y(a) ? S(i({}, r), { [o]:
|
|
608
|
+
return Y(n) && Y(a) ? S(i({}, r), { [o]: ra(n, a) }) : S(i({}, r), { [o]: t[o] });
|
|
609
609
|
}, i({}, e));
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
function
|
|
611
|
+
var Vt = (e, t) => Y(e) ? ae(e, t) : fo(e) ? Dc(e, t) : ke(e, t);
|
|
612
|
+
function ke(e, t) {
|
|
613
613
|
if (M(e))
|
|
614
614
|
return null;
|
|
615
615
|
if (t.oneOf)
|
|
616
|
-
return
|
|
616
|
+
return Kn(e, t);
|
|
617
617
|
if (!K(t.const) && e === t.const)
|
|
618
618
|
return e;
|
|
619
619
|
if (t.type)
|
|
620
620
|
switch (t.type) {
|
|
621
621
|
case "string":
|
|
622
|
-
return
|
|
622
|
+
return Xn(e);
|
|
623
623
|
case "number":
|
|
624
624
|
case "integer":
|
|
625
|
-
return Xn(e);
|
|
626
|
-
case "boolean":
|
|
627
625
|
return Yn(e);
|
|
626
|
+
case "boolean":
|
|
627
|
+
return Qn(e);
|
|
628
628
|
default:
|
|
629
629
|
return null;
|
|
630
630
|
}
|
|
631
631
|
return null;
|
|
632
632
|
}
|
|
633
633
|
function ae(e, t) {
|
|
634
|
-
return
|
|
634
|
+
return De(t) || Ee(t) || M(e) ? null : t.allOf ? ea(e, t) : t.oneOf ? ta(e, t) : !K(t.const) && e === t.const ? e : xe(t) ? Zn(e, t) : null;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return pe(t) ?
|
|
636
|
+
function Dc(e, t) {
|
|
637
|
+
return pe(t) ? Jn(e, t) : Ee(t) ? po(e, t) : null;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Ut(e, t = false) {
|
|
640
640
|
return !t || !K(e);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function oa(e, t = false) {
|
|
643
643
|
return !t || q(e);
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function na(e, t) {
|
|
646
646
|
return !R(t) || D(e) && e.length >= t;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function aa(e, t) {
|
|
649
649
|
return !R(t) || D(e) && e.length <= t;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function ia(e, t) {
|
|
652
652
|
return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function yo(e, t) {
|
|
655
655
|
return !R(t) && !D(t) || (R(e) || D(e)) && e <= t;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function ho(e, t) {
|
|
658
658
|
return !R(t) && !D(t) || (R(e) || D(e)) && e >= t;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function sa(e, t) {
|
|
661
661
|
return !R(t) || q(e) && e.length >= t;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function la(e, t) {
|
|
664
664
|
return !R(t) || q(e) && e.length <= t;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function $e(e, t, r) {
|
|
667
667
|
if (t.const)
|
|
668
|
-
return
|
|
668
|
+
return wo(e, t, r);
|
|
669
669
|
if (M(e))
|
|
670
670
|
return r ? ["required"] : [];
|
|
671
|
-
if (
|
|
672
|
-
return
|
|
671
|
+
if (ma(t))
|
|
672
|
+
return go(e, t, r);
|
|
673
673
|
switch (t.type) {
|
|
674
674
|
case "number":
|
|
675
|
-
return
|
|
675
|
+
return vr(e, t, r);
|
|
676
676
|
case "integer":
|
|
677
|
-
return go(e, t, r);
|
|
678
|
-
case "boolean":
|
|
679
677
|
return bo(e, t, r);
|
|
678
|
+
case "boolean":
|
|
679
|
+
return So(e, t, r);
|
|
680
680
|
case "array":
|
|
681
|
-
return
|
|
681
|
+
return bt(e, t, r);
|
|
682
682
|
case "object":
|
|
683
|
-
return
|
|
683
|
+
return Ic(e, t);
|
|
684
684
|
default:
|
|
685
685
|
return [];
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function go(e, t, r) {
|
|
689
689
|
if (!D(e) && !M(e))
|
|
690
690
|
return ["type"];
|
|
691
691
|
if (e === "" && r)
|
|
692
692
|
return ["required"];
|
|
693
693
|
let o = [];
|
|
694
|
-
return
|
|
694
|
+
return Ut(e, r) || o.push("required"), na(e, t.minLength) || o.push("minLength"), aa(e, t.maxLength) || o.push("maxLength"), ia(e, t.pattern) || o.push("pattern"), ho(e, t.minimum) || o.push("minimum"), yo(e, t.maximum) || o.push("maximum"), o;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function vr(e, t, r) {
|
|
697
697
|
if (!R(e) && !M(e))
|
|
698
698
|
return ["type"];
|
|
699
699
|
let o = [];
|
|
700
|
-
return
|
|
701
|
-
}
|
|
702
|
-
function go(e, t, r) {
|
|
703
|
-
return Wn(e) ? Or(e, t, r) : ["type"];
|
|
700
|
+
return Ut(e, r) || o.push("required"), ho(e, t.minimum) || o.push("minimum"), yo(e, t.maximum) || o.push("maximum"), o;
|
|
704
701
|
}
|
|
705
702
|
function bo(e, t, r) {
|
|
703
|
+
return _n(e) ? vr(e, t, r) : ["type"];
|
|
704
|
+
}
|
|
705
|
+
function So(e, t, r) {
|
|
706
706
|
if (!Ce(e) && !M(e))
|
|
707
707
|
return ["type"];
|
|
708
708
|
let o = [];
|
|
709
|
-
return
|
|
709
|
+
return Ut(e, r) || o.push("required"), o;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
711
|
+
function wo(e, t, r) {
|
|
712
|
+
return Ut(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function bt(e, t, r) {
|
|
715
715
|
if (!q(e) && !M(e))
|
|
716
716
|
return ["type"];
|
|
717
|
-
if (!
|
|
717
|
+
if (!oa(e, r))
|
|
718
718
|
return ["required"];
|
|
719
719
|
let o = [];
|
|
720
|
-
return
|
|
720
|
+
return sa(e, t.minItems) || o.push("minItems"), la(e, t.maxItems) || o.push("maxItems"), o;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function ca(e, t) {
|
|
723
723
|
return M(e) ? ["type"] : [];
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Ic(e, t) {
|
|
726
726
|
return Y(e) ? q(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, n) => o && n, true) ? [] : ["required"] : [] : ["type"];
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
return !ho(e, t).length;
|
|
730
|
-
}
|
|
731
|
-
function Ec(e, t) {
|
|
732
|
-
return !Or(e, t).length;
|
|
733
|
-
}
|
|
734
|
-
function Dc(e, t) {
|
|
728
|
+
function Lc(e, t) {
|
|
735
729
|
return !go(e, t).length;
|
|
736
730
|
}
|
|
737
|
-
function
|
|
731
|
+
function Nc(e, t) {
|
|
732
|
+
return !vr(e, t).length;
|
|
733
|
+
}
|
|
734
|
+
function Tc(e, t) {
|
|
738
735
|
return !bo(e, t).length;
|
|
739
736
|
}
|
|
740
|
-
function
|
|
737
|
+
function Rc(e, t) {
|
|
741
738
|
return !So(e, t).length;
|
|
742
739
|
}
|
|
743
|
-
function
|
|
744
|
-
return !
|
|
740
|
+
function Bc(e, t) {
|
|
741
|
+
return !wo(e, t).length;
|
|
742
|
+
}
|
|
743
|
+
function jc(e, t) {
|
|
744
|
+
return !T(e) || t.type !== "object" || !T(t.properties) ? false : Object.keys(t.properties).map((r) => Vc(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function Vc(e, t, r) {
|
|
747
747
|
return typeof e == "undefined" ? !r : G(e, t);
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
return t.type !== "array" || !T(t.items) ||
|
|
749
|
+
function Uc(e, t) {
|
|
750
|
+
return t.type !== "array" || !T(t.items) || bt(e, t).length > 0 ? false : Array.isArray(e) && qe(t) && e.map((r) => G(r, t.items)).every((r) => r);
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function zc(e, t) {
|
|
753
753
|
return q(t.oneOf) ? t.oneOf.some((r) => G(e, r)) : false;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function Hc(e, t) {
|
|
756
756
|
return q(t.allOf) ? t.allOf.map((r) => G(e, r)).every((r) => r) : false;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
759
|
-
return !
|
|
758
|
+
function qc(e, t) {
|
|
759
|
+
return !ca(e, t).length;
|
|
760
760
|
}
|
|
761
761
|
function G(e, t) {
|
|
762
762
|
if (t.oneOf)
|
|
763
|
-
return
|
|
763
|
+
return zc(e, t);
|
|
764
764
|
if (t.allOf)
|
|
765
|
-
return
|
|
765
|
+
return Hc(e, t);
|
|
766
766
|
if (t.const)
|
|
767
|
-
return
|
|
767
|
+
return Bc(e, t);
|
|
768
768
|
switch (t.type) {
|
|
769
769
|
case "string":
|
|
770
|
-
return
|
|
770
|
+
return Lc(e, t);
|
|
771
771
|
case "number":
|
|
772
|
-
return
|
|
772
|
+
return Nc(e, t);
|
|
773
773
|
case "integer":
|
|
774
|
-
return
|
|
774
|
+
return Tc(e, t);
|
|
775
775
|
case "boolean":
|
|
776
|
-
return Ic(e, t);
|
|
777
|
-
case "array":
|
|
778
776
|
return Rc(e, t);
|
|
777
|
+
case "array":
|
|
778
|
+
return Uc(e, t);
|
|
779
779
|
case "object":
|
|
780
|
-
return
|
|
780
|
+
return jc(e, t);
|
|
781
781
|
case "blob":
|
|
782
|
-
return
|
|
782
|
+
return qc(e, t);
|
|
783
783
|
default:
|
|
784
784
|
return false;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function $c(e) {
|
|
788
788
|
let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`, n = t.getFullYear(), a = r.length < 2 ? `0${r}` : r, s = o.length < 2 ? `0${o}` : o;
|
|
789
789
|
return [n, a, s].join("-");
|
|
790
790
|
}
|
|
791
|
-
var
|
|
791
|
+
var da = (e) => {
|
|
792
792
|
if (!e)
|
|
793
793
|
return null;
|
|
794
794
|
let [t, r, o] = e.split("-").map((n) => parseInt(n, 10));
|
|
795
795
|
return !R(t) || !R(r) || !R(o) ? null : new Date(t, r - 1, o);
|
|
796
796
|
};
|
|
797
|
-
var
|
|
798
|
-
var
|
|
797
|
+
var ua = (e) => $c(e);
|
|
798
|
+
var Ge = (e, t) => {
|
|
799
799
|
let r, o, n = () => {
|
|
800
800
|
r && (clearTimeout(r), r = null), o = null;
|
|
801
801
|
}, a = (...s) => {
|
|
@@ -809,20 +809,20 @@ var require_main_min = __commonJS({
|
|
|
809
809
|
r !== null && (e(...o), n());
|
|
810
810
|
}, a;
|
|
811
811
|
};
|
|
812
|
-
var
|
|
813
|
-
var
|
|
812
|
+
var We = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => We(r, t[o])) : !!(pa(e) && pa(t) && Gc(e, t));
|
|
813
|
+
var Gc = (e, t) => {
|
|
814
814
|
let r = Object.keys(e), o = Object.keys(t);
|
|
815
|
-
return r.length === o.length && r.every((n) => Object.prototype.hasOwnProperty.call(t, n) &&
|
|
815
|
+
return r.length === o.length && r.every((n) => Object.prototype.hasOwnProperty.call(t, n) && We(e[n], t[n]));
|
|
816
816
|
};
|
|
817
|
-
var
|
|
818
|
-
function
|
|
817
|
+
var pa = (e) => typeof e == "object" && e !== null;
|
|
818
|
+
function Pr(e) {
|
|
819
819
|
return Math.floor(e / 1024);
|
|
820
820
|
}
|
|
821
|
-
var
|
|
821
|
+
var fa = (e) => new Promise((t, r) => {
|
|
822
822
|
let o = new FileReader();
|
|
823
823
|
o.readAsDataURL(e), o.addEventListener("load", () => t(o.result)), o.addEventListener("error", (n) => r(n));
|
|
824
824
|
});
|
|
825
|
-
function
|
|
825
|
+
function ya(e, t) {
|
|
826
826
|
let r = t.reduce((o, n) => S(i({}, o), { [n.id]: n }), {});
|
|
827
827
|
for (let o of e) {
|
|
828
828
|
let n = r[o.id];
|
|
@@ -832,98 +832,98 @@ var require_main_min = __commonJS({
|
|
|
832
832
|
return true;
|
|
833
833
|
}
|
|
834
834
|
var Oe = (e = "") => `${e ? `${e}-` : ""}${Math.floor(1e8 * Math.random())}`;
|
|
835
|
-
function
|
|
835
|
+
function Ie(e) {
|
|
836
836
|
return !K(e == null ? void 0 : e.const);
|
|
837
837
|
}
|
|
838
|
-
function
|
|
839
|
-
return !!e && !
|
|
838
|
+
function zt(e) {
|
|
839
|
+
return !!e && !Ie(e);
|
|
840
840
|
}
|
|
841
|
-
var
|
|
842
|
-
var
|
|
843
|
-
var
|
|
844
|
-
function
|
|
845
|
-
return
|
|
841
|
+
var Wc = (e) => !!e.readOnly && De(e);
|
|
842
|
+
var _c = (e) => !!e.oneOf && !!e.promotion;
|
|
843
|
+
var Kc = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
|
|
844
|
+
function De(e) {
|
|
845
|
+
return Kc.has(e.type || "") || "const" in e && e.const !== void 0;
|
|
846
846
|
}
|
|
847
847
|
function xe(e) {
|
|
848
848
|
return e.type === "object";
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Ht(e) {
|
|
851
851
|
return pe(e) && e.oneOf.every((t) => t.type === "object");
|
|
852
852
|
}
|
|
853
853
|
function pe(e) {
|
|
854
854
|
return !!e.oneOf;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Fo(e) {
|
|
857
857
|
return !!e.allOf;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function St(e) {
|
|
860
860
|
return e.type === "blob";
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Ee(e) {
|
|
863
863
|
return e.type === "array";
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function qe(e) {
|
|
866
866
|
let t = e.items;
|
|
867
867
|
return !Array.isArray(t);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function ma(e) {
|
|
870
870
|
return e.type === "string";
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Ar(e) {
|
|
873
873
|
return !!e.persistAsync;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
876
|
-
return
|
|
875
|
+
function Jc(e) {
|
|
876
|
+
return Ar(e) && (St(e.persistAsync.schema) || Xc(e.persistAsync.schema));
|
|
877
877
|
}
|
|
878
|
-
var
|
|
879
|
-
function
|
|
878
|
+
var Co = (e) => De(e) && !!e.validationAsync;
|
|
879
|
+
function Xc(e) {
|
|
880
880
|
return e.type === "string" && e.format === "base64url";
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function ha(e) {
|
|
883
883
|
return e.type === "string" && e.format === "base64url";
|
|
884
884
|
}
|
|
885
|
-
var
|
|
886
|
-
var
|
|
887
|
-
var
|
|
888
|
-
var
|
|
889
|
-
var
|
|
885
|
+
var ga = (e) => Ee(e) && qe(e) && Jc(e.items);
|
|
886
|
+
var qt = (e) => Wc(e) ? "readOnly" : Ar(e) ? "persistAsync" : Co(e) ? "validationAsync" : xe(e) ? "object" : Ee(e) ? "array" : _c(e) ? "promotedOneOf" : pe(e) ? "oneOf" : Fo(e) ? "allOf" : De(e) ? "basic" : null;
|
|
887
|
+
var ba = (e) => Yc(e) && Qc(e) && Zc(e);
|
|
888
|
+
var Yc = (e) => !e.type || e.type === "form";
|
|
889
|
+
var Qc = (e) => {
|
|
890
890
|
var t;
|
|
891
891
|
return ((t = e == null ? void 0 : e.actions) == null ? void 0 : t.length) === 1;
|
|
892
892
|
};
|
|
893
|
-
var
|
|
893
|
+
var Zc = (e) => {
|
|
894
894
|
if (!e.schemas)
|
|
895
895
|
return false;
|
|
896
|
-
let t =
|
|
896
|
+
let t = Mr(e.schemas);
|
|
897
897
|
if ((t == null ? void 0 : t.length) !== 1)
|
|
898
898
|
return false;
|
|
899
899
|
let r = t[0];
|
|
900
900
|
if (!xe(r) || Object.values(r.properties).length !== 1)
|
|
901
901
|
return false;
|
|
902
902
|
let o = Object.values(r.properties)[0];
|
|
903
|
-
return
|
|
903
|
+
return ha(o) ? o.source === "camera" : false;
|
|
904
904
|
};
|
|
905
|
-
var
|
|
905
|
+
var Mr = (e) => e.filter((t) => xe(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);
|
|
906
906
|
var Y = (e) => typeof e == "object" && e !== null && e.constructor === Object;
|
|
907
|
-
var
|
|
908
|
-
var
|
|
909
|
-
var
|
|
910
|
-
var
|
|
911
|
-
var
|
|
912
|
-
var
|
|
913
|
-
var
|
|
914
|
-
function
|
|
915
|
-
return (0,
|
|
916
|
-
}
|
|
917
|
-
var
|
|
918
|
-
function
|
|
919
|
-
let [t, r] = (0,
|
|
920
|
-
return (0,
|
|
907
|
+
var xo = (e) => M(e) || Y(e);
|
|
908
|
+
var Oo = (e) => Ce(e) || R(e) || D(e) || M(e);
|
|
909
|
+
var Sa = (e) => D(e) || M(e);
|
|
910
|
+
var fo = (e) => q(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean") : false;
|
|
911
|
+
var wa = (e) => M(e) ? true : fo(e);
|
|
912
|
+
var $t = (e) => D(e) || M(e);
|
|
913
|
+
var Fa = require("react");
|
|
914
|
+
function Ca(e, t) {
|
|
915
|
+
return (0, Fa.useCallback)(Ge(e, t), [e, t]);
|
|
916
|
+
}
|
|
917
|
+
var Gt = require("react");
|
|
918
|
+
function xa(e) {
|
|
919
|
+
let [t, r] = (0, Gt.useState)(null), [o, n] = (0, Gt.useState)(false), a = () => n(true);
|
|
920
|
+
return (0, Gt.useEffect)(() => {
|
|
921
921
|
e && (n(false), r(window.open(e, "_blank")));
|
|
922
922
|
}, [e]), { requiresManualTrigger: !!(e && !t && !o), dismissConfirmation: a };
|
|
923
923
|
}
|
|
924
|
-
var
|
|
925
|
-
function
|
|
926
|
-
let r = ee(), o = (0,
|
|
924
|
+
var Wt = require("react");
|
|
925
|
+
function Oa(e, t) {
|
|
926
|
+
let r = ee(), o = (0, Wt.useMemo)(() => {
|
|
927
927
|
if (e)
|
|
928
928
|
return () => r(e.url).then((a) => {
|
|
929
929
|
if (a.ok)
|
|
@@ -935,83 +935,83 @@ var require_main_min = __commonJS({
|
|
|
935
935
|
else
|
|
936
936
|
throw new Error("failed");
|
|
937
937
|
});
|
|
938
|
-
}, [e, r]), n = (0,
|
|
938
|
+
}, [e, r]), n = (0, Wt.useCallback)((a) => {
|
|
939
939
|
let c = ((e == null ? void 0 : e.responseHandlers) || []).find((p) => p.result === a.result);
|
|
940
940
|
if (c != null && c.action) {
|
|
941
941
|
let { action: p } = c;
|
|
942
942
|
if (p.exit) {
|
|
943
|
-
let
|
|
944
|
-
t(S(i({}, p), { result:
|
|
943
|
+
let d = i(i({}, p.result || {}), a.data || {});
|
|
944
|
+
t(S(i({}, p), { result: d }));
|
|
945
945
|
} else {
|
|
946
|
-
let
|
|
947
|
-
t(S(i({}, p), { data:
|
|
946
|
+
let d = i(i({}, p.data || {}), a.data || {});
|
|
947
|
+
t(S(i({}, p), { data: d }));
|
|
948
948
|
}
|
|
949
949
|
return false;
|
|
950
950
|
}
|
|
951
951
|
return true;
|
|
952
952
|
}, [e == null ? void 0 : e.responseHandlers, t]);
|
|
953
|
-
|
|
953
|
+
kr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: n, onFailure: (0, Wt.useCallback)(() => {
|
|
954
954
|
e && t(e.onError.action);
|
|
955
955
|
}, [t, e]) });
|
|
956
956
|
}
|
|
957
|
-
var
|
|
958
|
-
var
|
|
959
|
-
var
|
|
960
|
-
var
|
|
957
|
+
var Es = require("react");
|
|
958
|
+
var Ds = require("react-intl");
|
|
959
|
+
var va = require("react-intl");
|
|
960
|
+
var _t = (0, va.defineMessages)({ genericError: { id: "dynamicFlows.PersistAsyncSchema.genericError", defaultMessage: "Something went wrong, please try again later!", description: "Generic error message for persist async schema" } });
|
|
961
961
|
var dt = require("react");
|
|
962
|
-
var
|
|
963
|
-
var
|
|
962
|
+
var vs = require("react-intl");
|
|
963
|
+
var Pa = { DAY_MONTH_YEAR: "day-month-year", MONTH_YEAR: "month-year" };
|
|
964
964
|
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" };
|
|
965
|
-
var
|
|
966
|
-
var
|
|
967
|
-
var
|
|
965
|
+
var Aa = { SHORT: "short", LONG: "long" };
|
|
966
|
+
var Ma = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
|
|
967
|
+
var xs = ze(rt());
|
|
968
968
|
var le = require("react");
|
|
969
|
-
var
|
|
970
|
-
var
|
|
971
|
-
var
|
|
972
|
-
var
|
|
973
|
-
var
|
|
974
|
-
var
|
|
975
|
-
var
|
|
976
|
-
if (!
|
|
969
|
+
var Ta = require("@transferwise/components");
|
|
970
|
+
var Ft = require("@transferwise/components");
|
|
971
|
+
var Ea = require("react/jsx-runtime");
|
|
972
|
+
var wt = (e) => em(e) || tm(e);
|
|
973
|
+
var em = (e) => rm.some((t) => e === `flag-${t}`);
|
|
974
|
+
var tm = (e) => om.some((t) => e === `flag-${t}`);
|
|
975
|
+
var ka = ({ name: e }) => {
|
|
976
|
+
if (!wt(e))
|
|
977
977
|
return null;
|
|
978
978
|
let t = e.substring(5);
|
|
979
|
-
return (0,
|
|
980
|
-
};
|
|
981
|
-
var
|
|
982
|
-
var
|
|
983
|
-
var
|
|
984
|
-
var
|
|
985
|
-
var
|
|
986
|
-
let t =
|
|
987
|
-
return Object.keys(
|
|
988
|
-
};
|
|
989
|
-
var
|
|
990
|
-
if (!
|
|
979
|
+
return (0, Ea.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}` });
|
|
980
|
+
};
|
|
981
|
+
var rm = ["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"];
|
|
982
|
+
var om = ["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"];
|
|
983
|
+
var Da = ze(require("@transferwise/icons"));
|
|
984
|
+
var Na = require("react/jsx-runtime");
|
|
985
|
+
var Dr = (e) => {
|
|
986
|
+
let t = La(e);
|
|
987
|
+
return Object.keys(Da).includes(t);
|
|
988
|
+
};
|
|
989
|
+
var Ia = ({ name: e }) => {
|
|
990
|
+
if (!Dr(e))
|
|
991
991
|
return null;
|
|
992
|
-
let t =
|
|
993
|
-
return (0,
|
|
992
|
+
let t = La(e), r = Da[t];
|
|
993
|
+
return (0, Na.jsx)(r, { size: 24 });
|
|
994
994
|
};
|
|
995
|
-
var
|
|
996
|
-
var
|
|
995
|
+
var La = (e) => e.split("-").map(nm).join("");
|
|
996
|
+
var nm = (e) => {
|
|
997
997
|
var t;
|
|
998
998
|
return `${(t = e[0]) == null ? void 0 : t.toUpperCase()}${e.slice(1)}`;
|
|
999
999
|
};
|
|
1000
|
-
var
|
|
1001
|
-
var
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1000
|
+
var vo = require("react/jsx-runtime");
|
|
1001
|
+
var am = ({ type: e }) => wt(e) ? (0, vo.jsx)(ka, { name: e }) : Dr(e) ? (0, vo.jsx)(Ia, { name: e }) : null;
|
|
1002
|
+
function Po(e) {
|
|
1003
|
+
return Dr(e) || wt(e);
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1006
|
-
var
|
|
1007
|
-
var
|
|
1005
|
+
var _e = am;
|
|
1006
|
+
var Kt = require("react/jsx-runtime");
|
|
1007
|
+
var Jt = ({ icon: e, image: t }) => {
|
|
1008
1008
|
if (e != null && e.name)
|
|
1009
|
-
return (0,
|
|
1009
|
+
return (0, Kt.jsx)(Ft.Avatar, { type: Ft.AvatarType.ICON, children: (0, Kt.jsx)(_e, { type: e.name }) });
|
|
1010
1010
|
if (e != null && e.text)
|
|
1011
|
-
return (0,
|
|
1011
|
+
return (0, Kt.jsx)(Ft.Avatar, { type: Ft.AvatarType.INITIALS, children: e.text });
|
|
1012
1012
|
if (t != null && t.url) {
|
|
1013
1013
|
let { url: r, text: o } = t;
|
|
1014
|
-
return (0,
|
|
1014
|
+
return (0, Kt.jsx)("img", { src: r, alt: o });
|
|
1015
1015
|
}
|
|
1016
1016
|
return null;
|
|
1017
1017
|
};
|
|
@@ -1031,7 +1031,7 @@ var require_main_min = __commonJS({
|
|
|
1031
1031
|
return "";
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
|
-
var
|
|
1034
|
+
var im = (e) => {
|
|
1035
1035
|
switch (e) {
|
|
1036
1036
|
case "right":
|
|
1037
1037
|
return "text-xs-right";
|
|
@@ -1042,13 +1042,13 @@ var require_main_min = __commonJS({
|
|
|
1042
1042
|
return "";
|
|
1043
1043
|
}
|
|
1044
1044
|
};
|
|
1045
|
-
var
|
|
1046
|
-
var
|
|
1047
|
-
var
|
|
1045
|
+
var Le = (e) => `${im(e.align)} ${U(e.margin)}`;
|
|
1046
|
+
var Ra = require("react/jsx-runtime");
|
|
1047
|
+
var sm = (e) => {
|
|
1048
1048
|
let t = e.component;
|
|
1049
|
-
return (0,
|
|
1049
|
+
return (0, Ra.jsx)(Ta.Alert, { type: cm(lm(t.context)), className: U(t.margin), message: t.markdown });
|
|
1050
1050
|
};
|
|
1051
|
-
var
|
|
1051
|
+
var lm = (e) => {
|
|
1052
1052
|
switch (e) {
|
|
1053
1053
|
case "success":
|
|
1054
1054
|
return "positive";
|
|
@@ -1063,15 +1063,15 @@ var require_main_min = __commonJS({
|
|
|
1063
1063
|
return e;
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
|
-
var
|
|
1067
|
-
var ie =
|
|
1066
|
+
var cm = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
|
|
1067
|
+
var ie = sm;
|
|
1068
1068
|
var ot = require("react/jsx-runtime");
|
|
1069
|
-
var
|
|
1069
|
+
var mm = (e) => {
|
|
1070
1070
|
let t = e.component, r = U(t.margin || t.border ? "lg" : "xs");
|
|
1071
|
-
return !t.width || t.width === "xl" ? (0, ot.jsx)("div", { className: r +
|
|
1071
|
+
return !t.width || t.width === "xl" ? (0, ot.jsx)("div", { className: r + Ba(t.border), children: (0, ot.jsx)(se, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, ot.jsx)("div", { className: "row", children: (0, ot.jsx)("div", { className: r + dm(t), children: (0, ot.jsx)("div", { className: Ba(t.border), children: (0, ot.jsx)(se, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
|
|
1072
1072
|
};
|
|
1073
|
-
var
|
|
1074
|
-
var
|
|
1073
|
+
var Ba = (e) => e ? " well p-b-0" : "";
|
|
1074
|
+
var dm = (e) => {
|
|
1075
1075
|
switch (e.width) {
|
|
1076
1076
|
case "xs":
|
|
1077
1077
|
return " col-md-4 col-md-offset-4";
|
|
@@ -1086,21 +1086,21 @@ var require_main_min = __commonJS({
|
|
|
1086
1086
|
return " col-xs-12";
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
|
-
var
|
|
1090
|
-
var
|
|
1091
|
-
var
|
|
1092
|
-
var
|
|
1089
|
+
var Ao = mm;
|
|
1090
|
+
var za = require("@transferwise/components");
|
|
1091
|
+
var um = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
|
|
1092
|
+
var ja = (e) => {
|
|
1093
1093
|
var r;
|
|
1094
1094
|
let t = e.action.type;
|
|
1095
|
-
return (r = e.control) != null ? r : t ?
|
|
1095
|
+
return (r = e.control) != null ? r : t ? um[t] : "secondary";
|
|
1096
1096
|
};
|
|
1097
|
-
var
|
|
1098
|
-
var
|
|
1097
|
+
var pm = { primary: "neutral", secondary: "neutral", link: "neutral", positive: "positive", negative: "negative" };
|
|
1098
|
+
var Va = (e) => {
|
|
1099
1099
|
var o;
|
|
1100
|
-
let t = e.action.type, r = (o = e.context) != null ? o : t ?
|
|
1100
|
+
let t = e.action.type, r = (o = e.context) != null ? o : t ? pm[t] : "neutral";
|
|
1101
1101
|
return r === "neutral" ? "accent" : r;
|
|
1102
1102
|
};
|
|
1103
|
-
var
|
|
1103
|
+
var Ua = (e) => {
|
|
1104
1104
|
switch (e) {
|
|
1105
1105
|
case "xs":
|
|
1106
1106
|
case "sm":
|
|
@@ -1113,97 +1113,97 @@ var require_main_min = __commonJS({
|
|
|
1113
1113
|
return "md";
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
|
-
var
|
|
1117
|
-
var
|
|
1116
|
+
var Ha = require("react/jsx-runtime");
|
|
1117
|
+
var fm = (e) => {
|
|
1118
1118
|
var p;
|
|
1119
|
-
let { component: t, onAction: r } = e, o = t.action, n =
|
|
1120
|
-
return (0,
|
|
1119
|
+
let { component: t, onAction: r } = e, o = t.action, n = Va(t), a = ja(t), { loading: s } = hr(), c = U(t.margin || "md");
|
|
1120
|
+
return (0, Ha.jsx)(za.Button, { size: Ua(t.size), type: n, priority: a, block: true, className: c, disabled: t.disabled || o.disabled || s, onClick: () => r(o), children: (p = t.title) != null ? p : o.title });
|
|
1121
1121
|
};
|
|
1122
|
-
var
|
|
1122
|
+
var Mo = fm;
|
|
1123
1123
|
var nt = require("react/jsx-runtime");
|
|
1124
|
-
var
|
|
1125
|
-
let t = e.component, { leftWidth: r, rightWidth: o } =
|
|
1124
|
+
var ym = (e) => {
|
|
1125
|
+
let t = e.component, { leftWidth: r, rightWidth: o } = hm(t.bias);
|
|
1126
1126
|
return (0, nt.jsxs)("div", { className: `${U(t.margin || "xs")} row`, children: [(0, nt.jsx)("div", { className: `${r} m-b-0`, children: (0, nt.jsx)(se, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, nt.jsx)("div", { className: `${o} m-b-0`, children: (0, nt.jsx)(se, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
|
|
1127
1127
|
};
|
|
1128
|
-
var
|
|
1129
|
-
var
|
|
1130
|
-
var
|
|
1131
|
-
var
|
|
1132
|
-
var
|
|
1133
|
-
var
|
|
1134
|
-
var
|
|
1135
|
-
var
|
|
1128
|
+
var hm = (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" };
|
|
1129
|
+
var ko = ym;
|
|
1130
|
+
var Lr = require("@transferwise/components");
|
|
1131
|
+
var Ir = require("react/jsx-runtime");
|
|
1132
|
+
var gm = ({ component: e, onAction: t }) => (0, Ir.jsx)("div", { className: U(e.margin), children: (0, Ir.jsx)(Lr.NavigationOptionsList, { children: e.options.map((r) => (0, Ir.jsx)(Lr.NavigationOption, { title: r.title, content: r.description, disabled: r.disabled, media: Jt(r), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(r.action) }, JSON.stringify(r))) }) });
|
|
1133
|
+
var Eo = gm;
|
|
1134
|
+
var qa = require("react/jsx-runtime");
|
|
1135
|
+
var bm = ({ component: e }) => {
|
|
1136
1136
|
let r = `m-t-0 ${U(e.margin)}`;
|
|
1137
|
-
return (0,
|
|
1138
|
-
};
|
|
1139
|
-
var
|
|
1140
|
-
var
|
|
1141
|
-
var
|
|
1142
|
-
var
|
|
1143
|
-
var
|
|
1144
|
-
var
|
|
1145
|
-
var
|
|
1146
|
-
var
|
|
1147
|
-
let { requestUrl: r, responseHandlers: o, polling: n, retryTitle: a } = e, s = (0,
|
|
1148
|
-
(0,
|
|
1137
|
+
return (0, qa.jsx)("hr", { className: r });
|
|
1138
|
+
};
|
|
1139
|
+
var Do = bm;
|
|
1140
|
+
var Ct = require("@transferwise/components");
|
|
1141
|
+
var Nr = require("react");
|
|
1142
|
+
var Wa = require("react-intl");
|
|
1143
|
+
var $a = require("react-intl");
|
|
1144
|
+
var Ga = (0, $a.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1145
|
+
var Ke = require("react/jsx-runtime");
|
|
1146
|
+
var Sm = ({ component: e, onAction: t }) => {
|
|
1147
|
+
let { requestUrl: r, responseHandlers: o, polling: n, retryTitle: a } = e, s = (0, Wa.useIntl)(), c = (0, Nr.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1148
|
+
(0, Nr.useEffect)(() => {
|
|
1149
1149
|
c();
|
|
1150
1150
|
}, [c]);
|
|
1151
1151
|
let p = n && o ? S(i({}, n), { responseHandlers: o }) : void 0;
|
|
1152
|
-
return
|
|
1152
|
+
return Oa(p, t), (0, Ke.jsxs)(Ke.Fragment, { children: [(0, Ke.jsx)(Ct.Loader, { size: Ct.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Ke.jsx)("br", {}), (0, Ke.jsx)(Ct.Button, { priority: "tertiary", block: true, onClick: c, children: a || s.formatMessage(Ga.retryTitle) })] });
|
|
1153
1153
|
};
|
|
1154
|
-
var
|
|
1155
|
-
var
|
|
1156
|
-
var
|
|
1157
|
-
var
|
|
1154
|
+
var Io = Sm;
|
|
1155
|
+
var rs = require("react");
|
|
1156
|
+
var _a = ze(rt());
|
|
1157
|
+
var Ka = require("react");
|
|
1158
1158
|
var ve = require("react/jsx-runtime");
|
|
1159
|
-
var
|
|
1160
|
-
var
|
|
1161
|
-
var
|
|
1162
|
-
var
|
|
1159
|
+
var wm = (e, t) => t.map((r) => ae(e, r) || {});
|
|
1160
|
+
var Fm = (e) => e.reduce((t, r) => i(i({}, r), t), {});
|
|
1161
|
+
var Cm = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1162
|
+
var Ja = (e) => {
|
|
1163
1163
|
let t = (n, a) => {
|
|
1164
1164
|
let s = e.schema.allOf[n];
|
|
1165
|
-
r[n] = ae(a.model, s) || {}, o(r), e.onChange(S(i({}, a), { model:
|
|
1166
|
-
}, [r, o] = (0,
|
|
1167
|
-
return (0, ve.jsxs)(ve.Fragment, { children: [e.schema.title && (0, ve.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ve.jsx)("p", { children: e.schema.description }), (0, ve.jsx)("div", { className: "row", children: e.schema.allOf.map((n, a) => (0, ve.jsx)("div", { className: (0,
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
var
|
|
1165
|
+
r[n] = ae(a.model, s) || {}, o(r), e.onChange(S(i({}, a), { model: Fm(r) }));
|
|
1166
|
+
}, [r, o] = (0, Ka.useState)(wm(e.model, e.schema.allOf));
|
|
1167
|
+
return (0, ve.jsxs)(ve.Fragment, { children: [e.schema.title && (0, ve.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ve.jsx)("p", { children: e.schema.description }), (0, ve.jsx)("div", { className: "row", children: e.schema.allOf.map((n, a) => (0, ve.jsx)("div", { className: (0, _a.default)(Cm(n.width)), children: (0, ve.jsx)(de, { schema: n, model: r[a], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (s) => t(a, S(i({}, s), { model: s.model })), onPersistAsync: e.onPersistAsync }) }, a)) })] });
|
|
1168
|
+
};
|
|
1169
|
+
Ja.defaultProps = { disabled: false };
|
|
1170
|
+
var Lo = Ja;
|
|
1171
|
+
var Rr = require("@transferwise/components");
|
|
1172
|
+
var ci = ze(rt());
|
|
1173
|
+
var Xt = require("react");
|
|
1171
1174
|
var Tr = require("@transferwise/components");
|
|
1172
|
-
var
|
|
1173
|
-
var
|
|
1174
|
-
var Nr = require("@transferwise/components");
|
|
1175
|
-
var Lo = require("@transferwise/formatting");
|
|
1175
|
+
var No = require("@transferwise/formatting");
|
|
1176
|
+
var Ya = require("react-intl");
|
|
1176
1177
|
var Xa = require("react-intl");
|
|
1177
|
-
var
|
|
1178
|
-
var
|
|
1179
|
-
var
|
|
1180
|
-
var Ya = (e) => {
|
|
1178
|
+
var fe = (0, Xa.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: "" } });
|
|
1179
|
+
var Ne = require("react/jsx-runtime");
|
|
1180
|
+
var Qa = (e) => {
|
|
1181
1181
|
var c;
|
|
1182
|
-
let t =
|
|
1183
|
-
return (0,
|
|
1182
|
+
let t = xm(e.schema), r = i(i(i({}, t), e.validationMessages), e.schema.validationMessages), o = (e.submitted || !e.changed) && !!e.errors, n = !o && (e.submitted || e.changed && e.blurred) && !!((c = e.validations) != null && c.length), a = e.focused && e.schema.description && !n, s = !!e.infoMessage;
|
|
1183
|
+
return (0, Ne.jsxs)("div", { children: [o ? (0, Ne.jsx)(Tr.InlineAlert, { type: "error", children: e.errors }) : null, n ? (0, Ne.jsx)(Tr.InlineAlert, { type: "error", children: e.validations.map((p) => (0, Ne.jsx)("div", { children: r[p] }, p)) }) : null, (a || s) && (0, Ne.jsxs)(Tr.InlineAlert, { type: "info", children: [a && (0, Ne.jsx)("div", { children: e.schema.description }), s && (0, Ne.jsx)("div", { children: e.infoMessage })] })] });
|
|
1184
1184
|
};
|
|
1185
|
-
|
|
1186
|
-
function
|
|
1187
|
-
let { formatMessage: t, locale: r } = (0,
|
|
1185
|
+
Qa.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1186
|
+
function xm(e) {
|
|
1187
|
+
let { formatMessage: t, locale: r } = (0, Ya.useIntl)(), o = { type: t(fe.type), minimum: t(fe.minimum, { minimum: e.minimum }), maximum: t(fe.maximum, { maximum: e.maximum }), minLength: t(fe.minLength, { minLength: e.minLength }), maxLength: t(fe.maxLength, { maxLength: e.maxLength }), pattern: t(fe.pattern), required: t(fe.required) };
|
|
1188
1188
|
if (e.format === "date") {
|
|
1189
|
-
let n = { pattern: t(fe.patternDate), minimum: e.minimum ? t(fe.minimumDate, { minimum: (0,
|
|
1189
|
+
let n = { pattern: t(fe.patternDate), minimum: e.minimum ? t(fe.minimumDate, { minimum: (0, No.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(fe.maximumDate, { maximum: (0, No.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
1190
1190
|
return i(i({}, o), n);
|
|
1191
1191
|
}
|
|
1192
1192
|
return o;
|
|
1193
1193
|
}
|
|
1194
|
-
var
|
|
1195
|
-
async function
|
|
1194
|
+
var Te = Qa;
|
|
1195
|
+
async function Za(e, t) {
|
|
1196
1196
|
if (t)
|
|
1197
1197
|
return e;
|
|
1198
1198
|
if (e instanceof Blob)
|
|
1199
|
-
return
|
|
1199
|
+
return fa(e);
|
|
1200
1200
|
throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function ei(e) {
|
|
1203
1203
|
let t = e.data;
|
|
1204
1204
|
return i({ id: t }, e);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function ti(e) {
|
|
1207
1207
|
let t = e instanceof Error;
|
|
1208
1208
|
if (!(T(e) && "data" in e) && !t)
|
|
1209
1209
|
return D(e) ? e : void 0;
|
|
@@ -1213,105 +1213,105 @@ var require_main_min = __commonJS({
|
|
|
1213
1213
|
} else
|
|
1214
1214
|
return i({ message: D(e.message) ? e.message : "" }, e);
|
|
1215
1215
|
}
|
|
1216
|
-
var
|
|
1217
|
-
var
|
|
1218
|
-
var
|
|
1219
|
-
var
|
|
1220
|
-
var
|
|
1221
|
-
function
|
|
1222
|
-
let { formatMessage: r } = (0,
|
|
1223
|
-
return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(n, { maxItems: e }), minItemsErrorMessage: r(a, { minItems: t }), requiredMessage: r(
|
|
1224
|
-
}
|
|
1225
|
-
var
|
|
1226
|
-
var
|
|
1216
|
+
var ii = require("react-intl");
|
|
1217
|
+
var ri = require("react-intl");
|
|
1218
|
+
var oi = (0, ri.defineMessages)({ required: { id: "dynamicFlows.DefaultErrorMessages.required", defaultMessage: "Please fill out this field.", description: "Customer has left the required field empty" } });
|
|
1219
|
+
var ni = require("react-intl");
|
|
1220
|
+
var ai = (0, ni.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." } });
|
|
1221
|
+
function si({ maxItems: e, minItems: t }) {
|
|
1222
|
+
let { formatMessage: r } = (0, ii.useIntl)(), { maxFileSizeError: o, maxItemsError: n, minItemsError: a } = ai;
|
|
1223
|
+
return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(n, { maxItems: e }), minItemsErrorMessage: r(a, { minItems: t }), requiredMessage: r(oi.required) };
|
|
1224
|
+
}
|
|
1225
|
+
var xt = require("react/jsx-runtime");
|
|
1226
|
+
var mi = (e) => {
|
|
1227
1227
|
var w, I;
|
|
1228
|
-
let { onChange: t, schema: r } = e, o = Z(), n =
|
|
1228
|
+
let { onChange: t, schema: r } = e, o = Z(), n = si(r), a = (0, Xt.useMemo)(() => r.$id || Oe(), [r.$id]), [s, c] = (0, Xt.useState)(false), [p, d] = (0, Xt.useState)(() => Om(e.model || [])), m = di(r.items.persistAsync), h = r.items.persistAsync.schema, f = St(h), l = async (N) => {
|
|
1229
1229
|
c(true);
|
|
1230
1230
|
try {
|
|
1231
|
-
let A = await
|
|
1231
|
+
let A = await Za(N, f);
|
|
1232
1232
|
o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
|
|
1233
1233
|
let L = await m(A);
|
|
1234
|
-
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }),
|
|
1234
|
+
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), ei(L);
|
|
1235
1235
|
} catch (A) {
|
|
1236
|
-
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(
|
|
1236
|
+
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(ti(A));
|
|
1237
1237
|
}
|
|
1238
1238
|
};
|
|
1239
|
-
function
|
|
1240
|
-
if (
|
|
1239
|
+
function u(N) {
|
|
1240
|
+
if (ya(N, p))
|
|
1241
1241
|
return;
|
|
1242
|
-
|
|
1243
|
-
let L =
|
|
1242
|
+
d(N);
|
|
1243
|
+
let L = li(N).map(($) => $.id);
|
|
1244
1244
|
t({ model: L, triggerSchema: r, triggerModel: L });
|
|
1245
1245
|
}
|
|
1246
|
-
let g =
|
|
1247
|
-
return (0,
|
|
1246
|
+
let g = li(p).map((N) => N.id), b = bt(g, r, e.required), x = !!e.errors || (s || e.submitted) && !!b.length, C = "accepts" in h && h.accepts, v = "maxSize" in h && h.maxSize, P = S(i(i({ multiple: true, className: "form-control", files: p, fileInputName: a, id: a }, C ? { fileTypes: C } : void 0), v ? { sizeLimit: Pr(v) } : void 0), { sizeLimitErrorMessage: ((w = h.validationMessages) == null ? void 0 : w.maxSize) || n.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((I = e.schema.validationMessages) == null ? void 0 : I.maxItems) || n.maxItemsErrorMessage, uploadButtonTitle: h.title, description: h.description, disabled: e.disabled, onUploadFile: (N) => l(N.get(a)), onFilesChange: u, onDeleteFile: () => Promise.resolve() });
|
|
1247
|
+
return (0, xt.jsxs)("div", { className: (0, ci.default)("form-group", { "has-error": x }), children: [(0, xt.jsx)("label", { className: "d-block control-label", htmlFor: a, children: e.schema.title }), (0, xt.jsx)(Rr.UploadInput, i({}, P)), (0, xt.jsx)(Te, { changed: s, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: b, validationMessages: Pm(r, !!e.required, n), infoMessage: null, focused: false, blurred: true })] });
|
|
1248
1248
|
};
|
|
1249
|
-
|
|
1250
|
-
var
|
|
1251
|
-
function
|
|
1249
|
+
mi.defaultProps = { errors: null, required: false };
|
|
1250
|
+
var To = mi;
|
|
1251
|
+
function li(e) {
|
|
1252
1252
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return e.map((t) =>
|
|
1254
|
+
function Om(e) {
|
|
1255
|
+
return e.map((t) => vm(t) ? { id: t, status: Rr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function vm(e) {
|
|
1258
1258
|
return R(e) || D(e);
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Pm(e, t, r) {
|
|
1261
1261
|
let { minItems: o, maxItems: n } = e;
|
|
1262
1262
|
return i(i(i({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }), n && { maxItems: r.maxItemsErrorMessage });
|
|
1263
1263
|
}
|
|
1264
|
-
var
|
|
1265
|
-
var
|
|
1264
|
+
var fi = require("react/jsx-runtime");
|
|
1265
|
+
var ui = (e) => {
|
|
1266
1266
|
let { schema: t } = e;
|
|
1267
|
-
if (
|
|
1268
|
-
return (0,
|
|
1267
|
+
if (ga(t))
|
|
1268
|
+
return (0, fi.jsx)(To, S(i({}, e), { schema: t }));
|
|
1269
1269
|
throw new Error("Not implemented");
|
|
1270
1270
|
};
|
|
1271
|
-
|
|
1272
|
-
var
|
|
1273
|
-
var
|
|
1274
|
-
var
|
|
1271
|
+
ui.defaultProps = { errors: null, required: false };
|
|
1272
|
+
var pi = ui;
|
|
1273
|
+
var hi = require("react/jsx-runtime");
|
|
1274
|
+
var yi = (e) => {
|
|
1275
1275
|
let { schema: t } = e;
|
|
1276
|
-
if (
|
|
1277
|
-
return (0,
|
|
1276
|
+
if (qe(t))
|
|
1277
|
+
return (0, hi.jsx)(pi, i({}, e));
|
|
1278
1278
|
throw new Error("Not implemented");
|
|
1279
1279
|
};
|
|
1280
|
-
|
|
1281
|
-
var
|
|
1282
|
-
var
|
|
1283
|
-
var
|
|
1284
|
-
var
|
|
1285
|
-
var
|
|
1286
|
-
var
|
|
1287
|
-
let [t, r] = (0,
|
|
1288
|
-
m.model !== null ? t[
|
|
1289
|
-
}, n = (
|
|
1290
|
-
(0,
|
|
1291
|
-
let
|
|
1292
|
-
r(
|
|
1280
|
+
yi.defaultProps = { required: false };
|
|
1281
|
+
var Ro = yi;
|
|
1282
|
+
var gi = ze(rt());
|
|
1283
|
+
var Br = require("react");
|
|
1284
|
+
var Re = require("react/jsx-runtime");
|
|
1285
|
+
var Am = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1286
|
+
var bi = (e) => {
|
|
1287
|
+
let [t, r] = (0, Br.useState)(() => i({}, ae(e.model, e.schema))), o = (d, m) => {
|
|
1288
|
+
m.model !== null ? t[d] = m.model : delete t[d], r(t), e.onChange(S(i({}, m), { model: t }));
|
|
1289
|
+
}, n = (d) => e.schema.required && e.schema.required.includes(d);
|
|
1290
|
+
(0, Br.useEffect)(() => {
|
|
1291
|
+
let d = ae(t, e.schema) || {};
|
|
1292
|
+
r(d), We(d, t) || e.onChange({ model: d, triggerSchema: e.schema, triggerModel: d });
|
|
1293
1293
|
}, [e.schema]);
|
|
1294
|
-
let a = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (
|
|
1295
|
-
return (0,
|
|
1294
|
+
let a = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (d) => typeof e.schema.properties[d] != "undefined", c = Array.from(a).filter(s), p = e.errors;
|
|
1295
|
+
return (0, Re.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, Re.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, Re.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, Re.jsx)(ie, { component: e.schema.alert }), (0, Re.jsx)("div", { className: "row", children: c.map((d) => (0, Re.jsx)("div", { className: (0, gi.default)(Am(e.schema.properties[d].width)), children: (0, Re.jsx)(de, { schema: e.schema.properties[d], model: e.model && e.model[d], errors: p && p[d], submitted: e.submitted, required: n(d), disabled: e.disabled, onChange: (m) => o(d, m), onPersistAsync: e.onPersistAsync }) }, d)) })] });
|
|
1296
1296
|
};
|
|
1297
|
-
|
|
1298
|
-
var
|
|
1299
|
-
var
|
|
1297
|
+
bi.defaultProps = { hideTitle: false, disabled: false };
|
|
1298
|
+
var Yt = bi;
|
|
1299
|
+
var Li = ze(rt());
|
|
1300
1300
|
var Pe = require("react");
|
|
1301
|
-
var
|
|
1302
|
-
var
|
|
1303
|
-
var
|
|
1304
|
-
var
|
|
1305
|
-
var
|
|
1306
|
-
var
|
|
1307
|
-
let t = (0,
|
|
1308
|
-
return (0,
|
|
1309
|
-
};
|
|
1310
|
-
var
|
|
1311
|
-
var
|
|
1301
|
+
var jr = require("@transferwise/components");
|
|
1302
|
+
var Fi = require("react-intl");
|
|
1303
|
+
var Si = require("react-intl");
|
|
1304
|
+
var wi = (0, Si.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
|
|
1305
|
+
var Bo = require("react/jsx-runtime");
|
|
1306
|
+
var Mm = (e) => {
|
|
1307
|
+
let t = (0, Fi.useIntl)();
|
|
1308
|
+
return (0, Bo.jsx)(jr.Info, { className: "m-l-1", content: (0, Bo.jsx)(jr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(wi.helpAria) });
|
|
1309
|
+
};
|
|
1310
|
+
var Ot = Mm;
|
|
1311
|
+
var ki = require("react");
|
|
1312
1312
|
var W = require("@transferwise/components");
|
|
1313
|
-
var
|
|
1314
|
-
var
|
|
1313
|
+
var vi = require("react");
|
|
1314
|
+
var vt = (e, t = {}) => {
|
|
1315
1315
|
let { coerceValue: r = false } = t;
|
|
1316
1316
|
if (!M(e)) {
|
|
1317
1317
|
if (T(e)) {
|
|
@@ -1320,14 +1320,14 @@ var require_main_min = __commonJS({
|
|
|
1320
1320
|
}
|
|
1321
1321
|
if (!D(e)) {
|
|
1322
1322
|
if (r)
|
|
1323
|
-
return
|
|
1323
|
+
return Vo({ received: typeof e, expected: "string" }), String(e);
|
|
1324
1324
|
at({ received: typeof e, expected: "string" });
|
|
1325
1325
|
return;
|
|
1326
1326
|
}
|
|
1327
1327
|
return e;
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
-
var
|
|
1330
|
+
var jo = (e, t = {}) => {
|
|
1331
1331
|
let { coerceValue: r = false } = t;
|
|
1332
1332
|
if (M(e))
|
|
1333
1333
|
return;
|
|
@@ -1340,25 +1340,25 @@ var require_main_min = __commonJS({
|
|
|
1340
1340
|
}
|
|
1341
1341
|
if (!D(e)) {
|
|
1342
1342
|
if (r)
|
|
1343
|
-
return
|
|
1343
|
+
return Vo(o), String(e);
|
|
1344
1344
|
at(o);
|
|
1345
1345
|
return;
|
|
1346
1346
|
}
|
|
1347
1347
|
return e;
|
|
1348
1348
|
};
|
|
1349
|
-
var
|
|
1349
|
+
var Ci = (e, t = {}) => {
|
|
1350
1350
|
let { coerceValue: r = false } = t;
|
|
1351
1351
|
if (M(e))
|
|
1352
1352
|
return false;
|
|
1353
1353
|
if (!Ce(e)) {
|
|
1354
1354
|
if (r)
|
|
1355
|
-
return
|
|
1355
|
+
return Vo({ received: typeof e, expected: "boolean" }), !!e;
|
|
1356
1356
|
at({ received: typeof e, expected: "boolean" });
|
|
1357
1357
|
return;
|
|
1358
1358
|
}
|
|
1359
1359
|
return e;
|
|
1360
1360
|
};
|
|
1361
|
-
var
|
|
1361
|
+
var xi = (e) => {
|
|
1362
1362
|
if (!M(e)) {
|
|
1363
1363
|
if (!(e instanceof Date) && !D(e)) {
|
|
1364
1364
|
at({ received: typeof e, expected: "string or Date" });
|
|
@@ -1367,22 +1367,22 @@ var require_main_min = __commonJS({
|
|
|
1367
1367
|
return e;
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
|
-
var
|
|
1370
|
+
var Oi = (e) => {
|
|
1371
1371
|
if (M(e))
|
|
1372
1372
|
return null;
|
|
1373
1373
|
if (!D(e))
|
|
1374
1374
|
return at({ received: typeof e, expected: "string", fallback: "null" }), null;
|
|
1375
|
-
let t =
|
|
1375
|
+
let t = da(e);
|
|
1376
1376
|
return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
|
|
1377
1377
|
};
|
|
1378
|
-
var
|
|
1378
|
+
var Vo = ({ received: e, expected: t }) => {
|
|
1379
1379
|
console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Type will be coerced, but this behaviour will change in the future, so please fix your code.`);
|
|
1380
1380
|
};
|
|
1381
1381
|
var at = ({ received: e, expected: t, fallback: r = "undefined" }) => {
|
|
1382
1382
|
console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Falling back to ${r}`);
|
|
1383
1383
|
};
|
|
1384
1384
|
var J = require("react/jsx-runtime");
|
|
1385
|
-
var
|
|
1385
|
+
var Pt = class extends vi.PureComponent {
|
|
1386
1386
|
constructor(r) {
|
|
1387
1387
|
super(r);
|
|
1388
1388
|
this.getAutocompleteStatus = () => this.props.autoComplete ? "on" : "disabled";
|
|
@@ -1417,12 +1417,12 @@ var require_main_min = __commonJS({
|
|
|
1417
1417
|
}
|
|
1418
1418
|
render() {
|
|
1419
1419
|
var $;
|
|
1420
|
-
let { name: r, placeholder: o, step: n, countryCode: a, type: s, options: c, disabled: p, readOnly:
|
|
1420
|
+
let { name: r, placeholder: o, step: n, countryCode: a, type: s, options: c, disabled: p, readOnly: d, required: m, minLength: h, maxLength: f, min: l, max: u, searchPlaceholder: y, searchValue: g, onSearchChange: b, size: x, uploadProps: C, label: v, monthFormat: P, id: w, minDate: I, maxDate: N, value: A, mode: L } = this.props;
|
|
1421
1421
|
switch (s) {
|
|
1422
1422
|
case B.RADIO:
|
|
1423
|
-
return (0, J.jsx)(W.RadioGroup, { radios: c.map(this.mapOption), name: r, selectedValue:
|
|
1423
|
+
return (0, J.jsx)(W.RadioGroup, { radios: c.map(this.mapOption), name: r, selectedValue: jo(A, { coerceValue: true }), onChange: this.handleOnChange });
|
|
1424
1424
|
case B.CHECKBOX:
|
|
1425
|
-
return (0, J.jsx)(W.Checkbox, { checked:
|
|
1425
|
+
return (0, J.jsx)(W.Checkbox, { checked: Ci(A, { coerceValue: true }), disabled: p, label: v, required: m, readOnly: d, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1426
1426
|
case B.SELECT: {
|
|
1427
1427
|
let O = c.length >= 20;
|
|
1428
1428
|
return (0, J.jsx)(W.Select, { id: w, selected: this.getSelectedOption(c), options: c, search: O, required: m, disabled: p, placeholder: o, searchPlaceholder: y, searchValue: g, onChange: (j) => {
|
|
@@ -1436,26 +1436,26 @@ var require_main_min = __commonJS({
|
|
|
1436
1436
|
this.setState({ selectedOption: c.find((k) => k.value === O) }), this.props.onChange(O, j ? "user" : "init");
|
|
1437
1437
|
} });
|
|
1438
1438
|
case B.NUMBER:
|
|
1439
|
-
return (0, J.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: p, id: w, max:
|
|
1439
|
+
return (0, J.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: p, id: w, max: u, min: l, placeholder: o, readOnly: d, required: m, step: n, type: "number", value: jo(A, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (O) => {
|
|
1440
1440
|
this.props.onChange(parseFloat(O.target.value));
|
|
1441
1441
|
}, onFocus: this.handleOnFocus, onWheel: (O) => {
|
|
1442
1442
|
O.target instanceof HTMLElement && O.target.blur();
|
|
1443
1443
|
} });
|
|
1444
1444
|
case B.HIDDEN:
|
|
1445
|
-
return (0, J.jsx)("input", { type: "hidden", name: r, value:
|
|
1445
|
+
return (0, J.jsx)("input", { type: "hidden", name: r, value: vt(A, { coerceValue: true }), id: w });
|
|
1446
1446
|
case B.PASSWORD:
|
|
1447
|
-
return (0, J.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: p, id: w, placeholder: o, readOnly:
|
|
1447
|
+
return (0, J.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: p, id: w, placeholder: o, readOnly: d, required: m, type: "password", value: vt(A, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus });
|
|
1448
1448
|
case B.DATE:
|
|
1449
1449
|
case B.DATETIME:
|
|
1450
|
-
return (0, J.jsx)(W.DateInput, { disabled: p, size: x, value:
|
|
1450
|
+
return (0, J.jsx)(W.DateInput, { disabled: p, size: x, value: xi(A), mode: L, monthFormat: P, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1451
1451
|
case B.DATELOOKUP:
|
|
1452
|
-
return (0, J.jsx)(W.DateLookup, { value:
|
|
1453
|
-
this.handleOnChange(
|
|
1452
|
+
return (0, J.jsx)(W.DateLookup, { value: Oi(A), min: I, max: N, placeholder: o, monthFormat: P, disabled: p, onChange: (O) => {
|
|
1453
|
+
this.handleOnChange(ua(O));
|
|
1454
1454
|
}, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1455
1455
|
case B.TEL:
|
|
1456
|
-
return (0, J.jsx)(W.PhoneNumberInput, { disabled: p, countryCode: a, placeholder: o, required: m, searchPlaceholder: y, size: x, initialValue:
|
|
1456
|
+
return (0, J.jsx)(W.PhoneNumberInput, { disabled: p, countryCode: a, placeholder: o, required: m, searchPlaceholder: y, size: x, initialValue: vt(A), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1457
1457
|
case B.TEXTAREA: {
|
|
1458
|
-
let O = { className: "form-control tw-form-control", id: w, name: r, placeholder: o, value:
|
|
1458
|
+
let O = { className: "form-control tw-form-control", id: w, name: r, placeholder: o, value: vt(A, { coerceValue: true }), readOnly: d, required: m, minLength: h, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: p, autoComplete: this.getAutocompleteStatus() };
|
|
1459
1459
|
return this.props.displayPattern ? (0, J.jsx)(W.TextareaWithDisplayFormat, S(i({ displayPattern: this.props.displayPattern }, O), { onChange: this.handleOnChange })) : (0, J.jsx)("textarea", S(i({}, O), { onChange: this.handleInputOnChange }));
|
|
1460
1460
|
}
|
|
1461
1461
|
case B.FILE:
|
|
@@ -1469,43 +1469,43 @@ var require_main_min = __commonJS({
|
|
|
1469
1469
|
} }));
|
|
1470
1470
|
case B.TEXT:
|
|
1471
1471
|
default: {
|
|
1472
|
-
let O = { type: "text", className: "form-control", id: w, name: r, placeholder: o, value:
|
|
1472
|
+
let O = { type: "text", className: "form-control", id: w, name: r, placeholder: o, value: vt(A, { coerceValue: true }), readOnly: d, required: m, minLength: h, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: p, autoComplete: this.getAutocompleteStatus() };
|
|
1473
1473
|
return this.props.displayPattern ? (0, J.jsx)(W.InputWithDisplayFormat, S(i({ displayPattern: this.props.displayPattern }, O), { onChange: this.handleOnChange })) : (0, J.jsx)("input", S(i({}, O), { onChange: this.handleInputOnChange }));
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
|
-
var ye =
|
|
1479
|
-
ye.Type = B, ye.Size =
|
|
1480
|
-
var
|
|
1478
|
+
var ye = Pt;
|
|
1479
|
+
ye.Type = B, ye.Size = Ma, ye.MonthFormat = Aa, ye.DateMode = Pa, ye.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: Pt.DateMode.DAY_MONTH_YEAR, monthFormat: Pt.MonthFormat.LONG, onBlur: null, onFocus: null, onSearchChange: null, options: [], placeholder: null, readOnly: false, required: false, searchPlaceholder: null, searchValue: "", selectedOption: null, size: Pt.Size.MEDIUM, step: 1, type: Pt.Type.TEXT, uploadProps: {}, value: null };
|
|
1480
|
+
var Je = require("@transferwise/components");
|
|
1481
1481
|
var he = require("react/jsx-runtime");
|
|
1482
|
-
var
|
|
1482
|
+
var Pi = (e, t) => {
|
|
1483
1483
|
switch (t) {
|
|
1484
1484
|
case "select":
|
|
1485
|
-
return
|
|
1485
|
+
return Em(e);
|
|
1486
1486
|
case "radio":
|
|
1487
1487
|
default:
|
|
1488
|
-
return
|
|
1488
|
+
return km(e);
|
|
1489
1489
|
}
|
|
1490
1490
|
};
|
|
1491
|
-
var
|
|
1492
|
-
var
|
|
1493
|
-
var
|
|
1494
|
-
var
|
|
1495
|
-
var
|
|
1496
|
-
var
|
|
1497
|
-
var
|
|
1498
|
-
var
|
|
1491
|
+
var km = (e) => i(i(i({ label: e.title, value: e.const }, Ai(e.title, e.description)), At(e)), Mi(e.disabled));
|
|
1492
|
+
var Em = (e) => i(i(i(i(i({ label: e.title, value: e.const }, Ai(e.title, e.description)), Lm(e.icon)), Im(e.image)), Mi(e.disabled)), Dm(e.keywords));
|
|
1493
|
+
var Dm = (e) => q(e) ? { searchStrings: e } : {};
|
|
1494
|
+
var Im = (e) => e != null && e.url ? { icon: (0, he.jsx)("div", { className: "media", children: (0, he.jsx)("div", { className: "np-option__no-media-circle", children: (0, he.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
|
|
1495
|
+
var Lm = (e) => e != null && e.name && wt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && Po(e.name) ? { icon: (0, he.jsx)(_e, { type: e.name }) } : e != null && e.text ? { icon: (0, he.jsx)("span", { children: e.text }) } : null;
|
|
1496
|
+
var At = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, he.jsx)(Je.Avatar, { type: Je.AvatarType.THUMBNAIL, children: (0, he.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && Po(t.name) ? { avatar: (0, he.jsx)(Je.Avatar, { type: Je.AvatarType.ICON, children: (0, he.jsx)(_e, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, he.jsx)(Je.Avatar, { type: Je.AvatarType.INITIALS, children: t.text }) } : null;
|
|
1497
|
+
var Vr = ({ accepts: e }) => i({}, q(e) && { usAccept: e.join(",") });
|
|
1498
|
+
var Ai = (e, t) => {
|
|
1499
1499
|
if (e && t)
|
|
1500
1500
|
return { [(e + t).length > 50 ? "secondary" : "note"]: t };
|
|
1501
1501
|
};
|
|
1502
|
-
var
|
|
1502
|
+
var Mi = (e) => {
|
|
1503
1503
|
if (!K(e) && !M(e))
|
|
1504
1504
|
return { disabled: e };
|
|
1505
1505
|
};
|
|
1506
|
-
var
|
|
1507
|
-
var
|
|
1508
|
-
var
|
|
1506
|
+
var Di = require("react/jsx-runtime");
|
|
1507
|
+
var Nm = (e) => e === "string" || e === "number";
|
|
1508
|
+
var Uo = (e) => {
|
|
1509
1509
|
if (pe(e))
|
|
1510
1510
|
return e.control === B.TAB && e.oneOf.length > 3 ? B.SELECT : e.oneOf.length === 2 && !e.control ? B.RADIO : e.control || B.SELECT;
|
|
1511
1511
|
if ("control" in e && e.control)
|
|
@@ -1525,52 +1525,52 @@ var require_main_min = __commonJS({
|
|
|
1525
1525
|
}
|
|
1526
1526
|
return e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1527
1527
|
};
|
|
1528
|
-
var
|
|
1529
|
-
var
|
|
1530
|
-
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: s, onBlur: c, onSearchChange: p } = e,
|
|
1531
|
-
a(
|
|
1532
|
-
}, f =
|
|
1533
|
-
(0,
|
|
1534
|
-
|
|
1535
|
-
}, [JSON.stringify(r),
|
|
1536
|
-
let l = r.values ||
|
|
1537
|
-
return (0,
|
|
1538
|
-
};
|
|
1539
|
-
|
|
1540
|
-
var
|
|
1528
|
+
var Tm = (e, t) => e.oneOf ? e.oneOf.map((r) => Pi(r, t)) : null;
|
|
1529
|
+
var Ei = (e) => {
|
|
1530
|
+
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: s, onBlur: c, onSearchChange: p } = e, d = ht(), m = (b) => Nm(r.type) && (M(b) || K(b)) ? "" : b, h = (b, x) => {
|
|
1531
|
+
a(ke(b, r), x);
|
|
1532
|
+
}, f = Uo(r);
|
|
1533
|
+
(0, ki.useEffect)(() => {
|
|
1534
|
+
Rm(r, d, f);
|
|
1535
|
+
}, [JSON.stringify(r), d, f]);
|
|
1536
|
+
let l = r.values || Tm(r, f), u = { onFocus: s, onBlur: c, onSearchChange: p, onChange: h }, y = m(o), g = { id: t, name: t, label: r.title, options: l || [], placeholder: r.placeholder, autoComplete: !r.help, disabled: n || r.disabled, displayPattern: r.displayFormat, uploadProps: Vr(r) };
|
|
1537
|
+
return (0, Di.jsx)(ye, i(i({ type: f, value: y }, u), g));
|
|
1538
|
+
};
|
|
1539
|
+
Ei.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1540
|
+
var Rm = (e, t, r) => {
|
|
1541
1541
|
pe(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.");
|
|
1542
1542
|
};
|
|
1543
|
-
var
|
|
1544
|
-
var
|
|
1545
|
-
let r =
|
|
1543
|
+
var Qt = Ei;
|
|
1544
|
+
var Ii = (e, t) => {
|
|
1545
|
+
let r = Zt(e, t);
|
|
1546
1546
|
if (r >= 0)
|
|
1547
1547
|
return r;
|
|
1548
|
-
if (e.oneOf.length === 1 &&
|
|
1548
|
+
if (e.oneOf.length === 1 && zt(e.oneOf[0]))
|
|
1549
1549
|
return 0;
|
|
1550
|
-
if (
|
|
1551
|
-
let o =
|
|
1550
|
+
if (Ie(e.oneOf[0])) {
|
|
1551
|
+
let o = Zt(e, e.default);
|
|
1552
1552
|
if (o >= 0)
|
|
1553
1553
|
return o;
|
|
1554
1554
|
}
|
|
1555
|
-
return
|
|
1555
|
+
return Ht(e) && Y(t) && Object.keys(t).length >= 1 ? Ur(e, t) : Ht(e) && !K(e.default) && Y(e.default) && Object.keys(e.default).length >= 1 ? Ur(e, e.default) : null;
|
|
1556
1556
|
};
|
|
1557
|
-
var
|
|
1558
|
-
function
|
|
1557
|
+
var Zt = (e, t) => e.oneOf.findIndex((r) => !K(t) && G(t, r));
|
|
1558
|
+
function Ur(e, t) {
|
|
1559
1559
|
if (t == null)
|
|
1560
1560
|
return null;
|
|
1561
|
-
let r = e.oneOf.map((o) =>
|
|
1561
|
+
let r = e.oneOf.map((o) => Bm(o).reduce((n, [a, s]) => Ie(s) && s.const === t[a] ? n + 2 : zt(s) && typeof t[a] != "undefined" ? n + 1 : n, 0));
|
|
1562
1562
|
return r.every((o) => o === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function Bm(e) {
|
|
1565
1565
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1566
1566
|
}
|
|
1567
1567
|
var oe = require("react/jsx-runtime");
|
|
1568
|
-
var
|
|
1569
|
-
let t = Z(), [r, o] = (0, Pe.useState)(false), [n, a] = (0, Pe.useState)(false), [s, c] = (0, Pe.useState)(false), p = (0, Pe.useMemo)(() => e.schema.$id || Oe(), [e.schema.$id]), [
|
|
1568
|
+
var Ni = (e) => {
|
|
1569
|
+
let t = Z(), [r, o] = (0, Pe.useState)(false), [n, a] = (0, Pe.useState)(false), [s, c] = (0, Pe.useState)(false), p = (0, Pe.useMemo)(() => e.schema.$id || Oe(), [e.schema.$id]), [d, m] = (0, Pe.useState)(Ii(e.schema, e.model)), [h, f] = (0, Pe.useState)(zm(e.model, e.schema.oneOf)), l = Ca(t, 200), u = (w) => {
|
|
1570
1570
|
l("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: w.length });
|
|
1571
1571
|
};
|
|
1572
1572
|
if ((0, Pe.useEffect)(() => {
|
|
1573
|
-
let w =
|
|
1573
|
+
let w = Zt(e.schema, e.model), I = Zt(e.schema, e.schema.default);
|
|
1574
1574
|
w === -1 && I >= 0 && x(I, "init");
|
|
1575
1575
|
}, [e.schema]), !q(e.schema.oneOf))
|
|
1576
1576
|
return console.error("Incorrect format", e.schema), null;
|
|
@@ -1583,163 +1583,163 @@ var require_main_min = __commonJS({
|
|
|
1583
1583
|
}, x = (w, I) => {
|
|
1584
1584
|
m(w);
|
|
1585
1585
|
let N = e.schema.oneOf[w];
|
|
1586
|
-
if (
|
|
1586
|
+
if (Ie(N)) {
|
|
1587
1587
|
let A = N.const;
|
|
1588
1588
|
e.onChange({ model: A, triggerSchema: e.schema, triggerModel: A, type: I });
|
|
1589
1589
|
} else
|
|
1590
1590
|
e.onChange({ model: h[w], triggerSchema: N, triggerModel: h[w], type: I });
|
|
1591
1591
|
I !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: N == null ? void 0 : N.analyticsId });
|
|
1592
|
-
}, C =
|
|
1593
|
-
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 ||
|
|
1592
|
+
}, C = Hm(e.schema), v = Vm(e, d), P = { "form-group": true, "has-error": !r && e.errors && !gt(e.errors) || (e.submitted || r && s) && v.length };
|
|
1593
|
+
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 || Ie(e.schema.oneOf[0])) && (0, oe.jsxs)(oe.Fragment, { children: [(0, oe.jsxs)("div", { className: (0, Li.default)(P), children: [jm(e.schema, p), (0, oe.jsx)(Qt, { id: p, schema: C, value: d, disabled: e.disabled, onChange: x, onFocus: g, onBlur: b, onSearchChange: u }), (0, oe.jsx)(Te, { changed: r, focused: n, blurred: s, submitted: e.submitted, errors: Um(e.errors), schema: e.schema, validations: v, infoMessage: null })] }), e.schema.alert && (0, oe.jsx)(ie, { component: e.schema.alert })] }), zt(e.schema.oneOf[d]) && (0, oe.jsx)(de, { schema: e.schema.oneOf[d], model: h[d], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (w) => y(d, w), onPersistAsync: e.onPersistAsync })] });
|
|
1594
1594
|
};
|
|
1595
|
-
function
|
|
1596
|
-
let r = e.help ? (0, oe.jsx)(
|
|
1595
|
+
function jm(e, t) {
|
|
1596
|
+
let r = e.help ? (0, oe.jsx)(Ot, { help: e.help }) : null, o = Ie(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] });
|
|
1597
1597
|
return e.title ? o : r;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Vm(e, t) {
|
|
1600
1600
|
let r = e.schema.oneOf[t != null ? t : -1];
|
|
1601
|
-
return
|
|
1601
|
+
return Ie(r) ? $e(r.const, e.schema, !!e.required) : t === null || t < 0 ? $e(null, e.schema, !!e.required) : [];
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function Um(e) {
|
|
1604
1604
|
return typeof e == "string" ? e : null;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1607
|
-
return t.map((r) =>
|
|
1606
|
+
function zm(e, t) {
|
|
1607
|
+
return t.map((r) => Vt(e, r));
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1610
|
-
return S(i({}, e), { oneOf: e.oneOf.map(
|
|
1609
|
+
function Hm(e) {
|
|
1610
|
+
return S(i({}, e), { oneOf: e.oneOf.map(qm) });
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function qm(e, t) {
|
|
1613
1613
|
let { title: r, description: o, disabled: n = false, icon: a, image: s, keywords: c } = e;
|
|
1614
1614
|
return { title: r, description: o, disabled: n, icon: a, image: s, const: t, keywords: c };
|
|
1615
1615
|
}
|
|
1616
|
-
|
|
1617
|
-
var
|
|
1618
|
-
var
|
|
1616
|
+
Ni.defaultProps = { required: false, disabled: false };
|
|
1617
|
+
var zo = Ni;
|
|
1618
|
+
var ji = ze(rt());
|
|
1619
1619
|
var it = require("react");
|
|
1620
|
-
var
|
|
1621
|
-
var
|
|
1622
|
-
var
|
|
1623
|
-
var
|
|
1624
|
-
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: n, idProperty: a, usAccept: s, maxSize: c, usPlaceholder: p, onSuccess:
|
|
1625
|
-
return (0,
|
|
1626
|
-
};
|
|
1627
|
-
var
|
|
1628
|
-
var
|
|
1629
|
-
let [t, r] = (0, it.useState)({}), [o, n] = (0, it.useState)(null), [a, s] = (0, it.useState)([]), [c, p] = (0, it.useState)(false),
|
|
1620
|
+
var zr = require("@transferwise/components");
|
|
1621
|
+
var Ti = require("react");
|
|
1622
|
+
var Bi = require("react/jsx-runtime");
|
|
1623
|
+
var Ri = (e) => {
|
|
1624
|
+
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: n, idProperty: a, usAccept: s, maxSize: c, usPlaceholder: p, onSuccess: d, onFailure: m, onCancel: h } = e, f = Z(), l = (0, Ti.useMemo)(() => n ? [{ id: n, status: zr.Status.SUCCEEDED }] : [], [n]), u = (y) => (f("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(`${o.url}`, { method: o.method || "POST", body: y }).then((g) => g.ok ? (d && d(g.clone()), g.json().then((b) => ({ id: b[a] }))) : (m && m({ response: g }), Promise.reject())));
|
|
1625
|
+
return (0, Bi.jsx)(zr.UploadInput, { id: t, fileInputName: o.fileInputName, files: l, uploadButtonTitle: e.usLabel, sizeLimit: c ? Pr(c) : void 0, fileTypes: s, description: p, onUploadFile: u, onDeleteFile: (y) => (h && h(), Promise.resolve()) });
|
|
1626
|
+
};
|
|
1627
|
+
var er = require("react/jsx-runtime");
|
|
1628
|
+
var Vi = (e) => {
|
|
1629
|
+
let [t, r] = (0, it.useState)({}), [o, n] = (0, it.useState)(null), [a, s] = (0, it.useState)([]), [c, p] = (0, it.useState)(false), d = ee(), m = Z();
|
|
1630
1630
|
(0, it.useEffect)(() => {
|
|
1631
|
-
e.submitted && s(
|
|
1631
|
+
e.submitted && s($e(e.model, e.schema, !!e.required));
|
|
1632
1632
|
}, [e.model, e.submitted]);
|
|
1633
1633
|
let f = async (C, v) => {
|
|
1634
|
-
let P = await C.json(), w =
|
|
1634
|
+
let P = await C.json(), w = $o(e.schema.persistAsync.idProperty, P);
|
|
1635
1635
|
e.onChange({ model: w, triggerSchema: e.schema, triggerModel: w }), p(true), m("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
|
|
1636
1636
|
}, l = async (C) => {
|
|
1637
|
-
if (C.response &&
|
|
1637
|
+
if (C.response && br(C.response.status)) {
|
|
1638
1638
|
let v = await C.response.json();
|
|
1639
1639
|
r(v.validation || {}), n([e.schema.persistAsync.param]);
|
|
1640
1640
|
}
|
|
1641
1641
|
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), p(true), m("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
|
|
1642
|
-
},
|
|
1642
|
+
}, u = () => {
|
|
1643
1643
|
n(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), p(true);
|
|
1644
1644
|
}, { url: y, method: g } = e.schema.persistAsync, b = o || a, x = { "form-group": true, "has-error": (e.submitted || c) && !!b.length };
|
|
1645
|
-
return (0,
|
|
1645
|
+
return (0, er.jsxs)("div", { className: (0, ji.default)(x), children: [(0, er.jsx)(Ri, 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: g, fileInputName: e.schema.persistAsync.param }, httpClient: d, onSuccess: f, onFailure: l, onCancel: u }, Vr(e.schema.persistAsync.schema))), (0, er.jsx)(Te, { blurred: true, focused: false, changed: c, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: b, validationMessages: i({ required: "Value is required..." }, t), infoMessage: null })] });
|
|
1646
1646
|
};
|
|
1647
|
-
|
|
1648
|
-
var
|
|
1649
|
-
var
|
|
1650
|
-
var
|
|
1647
|
+
Vi.defaultProps = { required: false };
|
|
1648
|
+
var qo = Vi;
|
|
1649
|
+
var Go = require("react/jsx-runtime");
|
|
1650
|
+
var Ui = (e) => {
|
|
1651
1651
|
let { schema: t } = e;
|
|
1652
|
-
return t.persistAsync.schema.type === "blob" ? (0,
|
|
1652
|
+
return t.persistAsync.schema.type === "blob" ? (0, Go.jsx)(qo, i({}, e)) : (0, Go.jsx)(Ho, i({}, e));
|
|
1653
1653
|
};
|
|
1654
|
-
|
|
1655
|
-
var
|
|
1656
|
-
var
|
|
1657
|
-
var
|
|
1658
|
-
let r =
|
|
1654
|
+
Ui.defaultProps = { required: false };
|
|
1655
|
+
var Wo = Ui;
|
|
1656
|
+
var Xi = require("react");
|
|
1657
|
+
var zi = (e, t) => {
|
|
1658
|
+
let r = Ur(e, t);
|
|
1659
1659
|
return r !== null ? e.oneOf[r].promoted ? "promoted" : "other" : null;
|
|
1660
1660
|
};
|
|
1661
|
-
var
|
|
1662
|
-
var
|
|
1663
|
-
var
|
|
1664
|
-
let { id: t, selection: r, setSelection: o } = e, { promoted: n, other: a, checkedMeans: s } = e.promotion, c = s === "other" ? a.title : (n == null ? void 0 : n.title) || e.promotedOneOf.title, p = s === "other" ? "other" : "promoted",
|
|
1665
|
-
return (0,
|
|
1666
|
-
o(m ?
|
|
1661
|
+
var Hi = require("@transferwise/components");
|
|
1662
|
+
var _o = require("react/jsx-runtime");
|
|
1663
|
+
var qi = (e) => {
|
|
1664
|
+
let { id: t, selection: r, setSelection: o } = e, { promoted: n, other: a, checkedMeans: s } = e.promotion, c = s === "other" ? a.title : (n == null ? void 0 : n.title) || e.promotedOneOf.title, p = s === "other" ? "other" : "promoted", d = s === "other" ? "promoted" : "other", m = r === p;
|
|
1665
|
+
return (0, _o.jsx)("div", { className: "form-group", children: (0, _o.jsx)(Hi.Checkbox, { id: t, label: c, checked: m, onChange: () => {
|
|
1666
|
+
o(m ? d : p);
|
|
1667
1667
|
} }) });
|
|
1668
1668
|
};
|
|
1669
|
-
|
|
1670
|
-
var
|
|
1671
|
-
var
|
|
1672
|
-
var
|
|
1673
|
-
var
|
|
1674
|
-
var p,
|
|
1675
|
-
let { id: t, selection: r, setSelection: o, promotion: n, promotedOneOf: a, title: s } = e, c = [i({ value: "promoted", label: ((p = n.promoted) == null ? void 0 : p.title) || a.title, secondary: ((
|
|
1676
|
-
return (0,
|
|
1677
|
-
};
|
|
1678
|
-
|
|
1679
|
-
var
|
|
1680
|
-
var
|
|
1681
|
-
var
|
|
1669
|
+
qi.defaultProps = {};
|
|
1670
|
+
var $i = qi;
|
|
1671
|
+
var Gi = require("@transferwise/components");
|
|
1672
|
+
var tr = require("react/jsx-runtime");
|
|
1673
|
+
var Wi = (e) => {
|
|
1674
|
+
var p, d;
|
|
1675
|
+
let { id: t, selection: r, setSelection: o, promotion: n, promotedOneOf: a, title: s } = e, c = [i({ value: "promoted", label: ((p = n.promoted) == null ? void 0 : p.title) || a.title, secondary: ((d = n.promoted) == null ? void 0 : d.description) || a.description }, At(a)), i({ value: "other", label: n.other.title, secondary: n.other.description }, At(n.other))];
|
|
1676
|
+
return (0, tr.jsxs)("div", { className: "form-group", children: [s && (0, tr.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, tr.jsx)(Gi.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: c, id: t, onChange: o })] });
|
|
1677
|
+
};
|
|
1678
|
+
Wi.defaultProps = { title: void 0 };
|
|
1679
|
+
var _i = Wi;
|
|
1680
|
+
var Mt = require("react/jsx-runtime");
|
|
1681
|
+
var Ki = (e) => {
|
|
1682
1682
|
switch (e.promotion.control || "radio") {
|
|
1683
1683
|
case "radio":
|
|
1684
|
-
return (0,
|
|
1684
|
+
return (0, Mt.jsx)(_i, i({}, e));
|
|
1685
1685
|
case "checkbox":
|
|
1686
|
-
return (0,
|
|
1686
|
+
return (0, Mt.jsx)($i, i({}, e));
|
|
1687
1687
|
default:
|
|
1688
|
-
return (0,
|
|
1688
|
+
return (0, Mt.jsx)(Mt.Fragment, {});
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
|
-
|
|
1692
|
-
var
|
|
1693
|
-
var
|
|
1694
|
-
var
|
|
1695
|
-
var
|
|
1691
|
+
Ki.defaultProps = { id: Oe(), title: void 0 };
|
|
1692
|
+
var Ji = Ki;
|
|
1693
|
+
var Be = require("react/jsx-runtime");
|
|
1694
|
+
var Yi = (e) => e.promoted === true;
|
|
1695
|
+
var $m = (e) => {
|
|
1696
1696
|
var c;
|
|
1697
|
-
let [t, r] = (0,
|
|
1698
|
-
return (0,
|
|
1697
|
+
let [t, r] = (0, Xi.useState)(zi(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), o = e.schema.alert, n = e.schema.oneOf.find(Yi), a = Gm(n), s = Wm(e.schema);
|
|
1698
|
+
return (0, Be.jsxs)(Be.Fragment, { children: [o && (0, Be.jsx)(ie, { component: o }), (0, Be.jsx)(Ji, { id: e.schema.$id, title: e.schema.title, promotedOneOf: n, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Be.jsx)(Yt, S(i({}, e), { schema: a })), t === "other" && (0, Be.jsx)(de, S(i({}, e), { schema: s }))] });
|
|
1699
1699
|
};
|
|
1700
|
-
function
|
|
1700
|
+
function Gm(e) {
|
|
1701
1701
|
return S(i({}, e), { title: void 0, description: void 0 });
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function Wm(e) {
|
|
1704
1704
|
var o, n, a;
|
|
1705
|
-
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((s) => !
|
|
1705
|
+
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((s) => !Yi(s)), r = (a = (n = e.promotion) == null ? void 0 : n.other.heading) == null ? void 0 : a.text;
|
|
1706
1706
|
return t.length === 1 ? S(i({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
|
|
1707
1707
|
}
|
|
1708
|
-
var
|
|
1709
|
-
var
|
|
1708
|
+
var Ko = $m;
|
|
1709
|
+
var Hr = require("@transferwise/components");
|
|
1710
|
+
var Zi = require("react-intl");
|
|
1710
1711
|
var Qi = require("react-intl");
|
|
1711
|
-
var
|
|
1712
|
-
var
|
|
1713
|
-
var
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
return (0, Mt.jsx)(zr.DefinitionList, { layout: zr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: n, key: "" }] });
|
|
1712
|
+
var Jo = (0, Qi.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." } });
|
|
1713
|
+
var kt = require("react/jsx-runtime");
|
|
1714
|
+
var _m = ({ schema: e, model: t }) => {
|
|
1715
|
+
let { title: r = "" } = e, { formatMessage: o } = (0, Zi.useIntl)(), n = Km({ schema: e, model: t, formatMessage: o });
|
|
1716
|
+
return (0, kt.jsx)(Hr.DefinitionList, { layout: Hr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: n, key: "" }] });
|
|
1717
1717
|
};
|
|
1718
|
-
var
|
|
1719
|
-
function
|
|
1720
|
-
return
|
|
1718
|
+
var Xo = _m;
|
|
1719
|
+
function Km({ schema: e, model: t, formatMessage: r }) {
|
|
1720
|
+
return De(e) ? pe(e) ? Jm(e, t) : e.type === "boolean" && Ce(t) ? r(t ? Jo.yes : Jo.no) : t && t.toString() || "" : "";
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1723
|
-
let r =
|
|
1724
|
-
return r ?
|
|
1722
|
+
function Jm(e, t) {
|
|
1723
|
+
let r = Xm(e, t);
|
|
1724
|
+
return r ? Ym(r) : t;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Xm(e, t) {
|
|
1727
1727
|
return e.oneOf.find((r) => "const" in r ? t === r.const : false);
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1730
|
-
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r =
|
|
1731
|
-
return r != null && r.avatar ? (0,
|
|
1729
|
+
function Ym(e) {
|
|
1730
|
+
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = At({ icon: e.icon });
|
|
1731
|
+
return r != null && r.avatar ? (0, kt.jsxs)(kt.Fragment, { children: [r.avatar, " ", t] }) : t;
|
|
1732
1732
|
}
|
|
1733
1733
|
var Ae = require("react");
|
|
1734
|
-
var
|
|
1735
|
-
var
|
|
1736
|
-
let { schema: t, model: r, required: o, submitted: n, errors: a, onChange: s } = e, [c, p] = (0, Ae.useState)(r),
|
|
1734
|
+
var ts = require("react/jsx-runtime");
|
|
1735
|
+
var es = (e) => {
|
|
1736
|
+
let { schema: t, model: r, required: o, submitted: n, errors: a, onChange: s } = e, [c, p] = (0, Ae.useState)(r), d = (0, Ae.useRef)(null), [m, h] = (0, Ae.useState)(null), [f, l] = (0, Ae.useState)(null), [u, y] = (0, Ae.useState)(false), [g, b] = (0, Ae.useState)(null), x = ee(), C = Z(), v = ht();
|
|
1737
1737
|
(0, Ae.useEffect)(() => {
|
|
1738
1738
|
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".', {});
|
|
1739
1739
|
}, [v, t.validationAsync.method]);
|
|
1740
1740
|
let P = async (L, $) => {
|
|
1741
1741
|
let O = w(), j = { [$.param]: L };
|
|
1742
|
-
|
|
1742
|
+
d.current = L, y(true), C("Dynamic Flow - ValidationAsync", { status: "pending" });
|
|
1743
1743
|
let k = await x($.url, { method: $.method || "POST", headers: { "Content-Type": "application/json" }, body: $.method === "GET" ? void 0 : JSON.stringify(j), signal: O });
|
|
1744
1744
|
try {
|
|
1745
1745
|
let z = await k.json();
|
|
@@ -1754,270 +1754,270 @@ var require_main_min = __commonJS({
|
|
|
1754
1754
|
let L = new AbortController();
|
|
1755
1755
|
return b(L), L.signal;
|
|
1756
1756
|
};
|
|
1757
|
-
return (0,
|
|
1757
|
+
return (0, ts.jsx)(st, i({}, { submitted: n || u, model: c, errors: f || a, infoMessage: m, onChange: (L) => {
|
|
1758
1758
|
s(S(i({}, L), { triggerSchema: t, triggerModel: L.model })), l(null), h(null), G(L.model, t) && p(L.model);
|
|
1759
1759
|
}, onBlur: () => {
|
|
1760
|
-
!M(c) && !
|
|
1760
|
+
!M(c) && !We(c, d.current) && P(c, t.validationAsync);
|
|
1761
1761
|
}, required: o, schema: t }));
|
|
1762
1762
|
};
|
|
1763
|
-
|
|
1764
|
-
var
|
|
1763
|
+
es.defaultProps = { required: false };
|
|
1764
|
+
var Yo = es;
|
|
1765
1765
|
var ue = require("react/jsx-runtime");
|
|
1766
|
-
var
|
|
1767
|
-
var
|
|
1768
|
-
let { schema: t, model: r = null, errors: o = null, hideTitle: n = false, disabled: a = false } = e, s = S(i({}, e), { model: r, errors: o, hideTitle: n, disabled: a }), c =
|
|
1769
|
-
switch ((0,
|
|
1770
|
-
|
|
1766
|
+
var os = require("react");
|
|
1767
|
+
var Qm = (e) => {
|
|
1768
|
+
let { schema: t, model: r = null, errors: o = null, hideTitle: n = false, disabled: a = false } = e, s = S(i({}, e), { model: r, errors: o, hideTitle: n, disabled: a }), c = qt(t), p = ht();
|
|
1769
|
+
switch ((0, rs.useEffect)(() => {
|
|
1770
|
+
Zm(t, r, o) || p.error("Invalid schema or model", `Schema of type ${c || "undefined"} requested, but schema did not pass validation.`);
|
|
1771
1771
|
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(o), c, p]), c) {
|
|
1772
1772
|
case "readOnly":
|
|
1773
|
-
return (0, ue.jsx)(
|
|
1773
|
+
return (0, ue.jsx)(Xo, i({}, s));
|
|
1774
1774
|
case "persistAsync":
|
|
1775
|
-
return (0, ue.jsx)(
|
|
1775
|
+
return (0, ue.jsx)(Wo, i({}, s));
|
|
1776
1776
|
case "validationAsync":
|
|
1777
|
-
return (0, ue.jsx)(
|
|
1777
|
+
return (0, ue.jsx)(Yo, i({}, s));
|
|
1778
1778
|
case "basic": {
|
|
1779
|
-
let
|
|
1780
|
-
return (0, ue.jsx)(st, i({},
|
|
1779
|
+
let d = i({ infoMessage: null }, s);
|
|
1780
|
+
return (0, ue.jsx)(st, i({}, d));
|
|
1781
1781
|
}
|
|
1782
1782
|
case "object":
|
|
1783
|
-
return (0,
|
|
1783
|
+
return (0, os.createElement)(Yt, S(i({}, s), { key: JSON.stringify(t) }));
|
|
1784
1784
|
case "array":
|
|
1785
|
-
return (0, ue.jsx)(
|
|
1785
|
+
return (0, ue.jsx)(Ro, i({}, s));
|
|
1786
1786
|
case "promotedOneOf":
|
|
1787
|
-
return (0, ue.jsx)(
|
|
1787
|
+
return (0, ue.jsx)(Ko, i({}, s));
|
|
1788
1788
|
case "oneOf":
|
|
1789
|
-
return (0, ue.jsx)(
|
|
1789
|
+
return (0, ue.jsx)(zo, i({}, s));
|
|
1790
1790
|
case "allOf":
|
|
1791
|
-
return (0, ue.jsx)(
|
|
1791
|
+
return (0, ue.jsx)(Lo, i({}, s));
|
|
1792
1792
|
}
|
|
1793
1793
|
return (0, ue.jsx)(ue.Fragment, {});
|
|
1794
1794
|
};
|
|
1795
|
-
var de =
|
|
1796
|
-
var
|
|
1797
|
-
switch (
|
|
1795
|
+
var de = Qm;
|
|
1796
|
+
var Zm = (e, t, r) => {
|
|
1797
|
+
switch (qt(e)) {
|
|
1798
1798
|
case "persistAsync":
|
|
1799
|
-
return
|
|
1799
|
+
return Ar(e) && Sa(t) && $t(r);
|
|
1800
1800
|
case "validationAsync":
|
|
1801
|
-
return
|
|
1801
|
+
return Co(e) && Oo(t) && $t(r);
|
|
1802
1802
|
case "basic":
|
|
1803
|
-
return
|
|
1803
|
+
return De(e) && Oo(t) && $t(r);
|
|
1804
1804
|
case "object":
|
|
1805
|
-
return xe(e) &&
|
|
1805
|
+
return xe(e) && xo(t);
|
|
1806
1806
|
case "array":
|
|
1807
|
-
return
|
|
1807
|
+
return Ee(e) && wa(t) && $t(r);
|
|
1808
1808
|
case "promotedOneOf":
|
|
1809
|
-
return
|
|
1809
|
+
return Ht(e) && xo(t);
|
|
1810
1810
|
case "oneOf":
|
|
1811
1811
|
return pe(e);
|
|
1812
1812
|
case "allOf":
|
|
1813
|
-
return
|
|
1813
|
+
return Fo(e) && Y(t);
|
|
1814
1814
|
}
|
|
1815
1815
|
return false;
|
|
1816
1816
|
};
|
|
1817
1817
|
var lt = require("react/jsx-runtime");
|
|
1818
|
-
var
|
|
1818
|
+
var ed = (e) => {
|
|
1819
1819
|
let t = i({ model: null, errors: null, disabled: false, baseUrl: "" }, e);
|
|
1820
|
-
return
|
|
1820
|
+
return xr() || t.baseUrl == null ? (0, lt.jsx)(de, i({}, t)) : (0, lt.jsx)(td, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, lt.jsx)(de, i({}, t)) });
|
|
1821
1821
|
};
|
|
1822
|
-
var
|
|
1823
|
-
var
|
|
1824
|
-
var
|
|
1822
|
+
var rr = ed;
|
|
1823
|
+
var td = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, lt.jsx)(Or, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : ns, children: (0, lt.jsx)(gr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : ns, children: (0, lt.jsx)(Cr, { baseUrl: e, children: o }) }) });
|
|
1824
|
+
var ns = () => {
|
|
1825
1825
|
};
|
|
1826
|
-
var
|
|
1827
|
-
var
|
|
1826
|
+
var Qo = require("react/jsx-runtime");
|
|
1827
|
+
var rd = (e) => {
|
|
1828
1828
|
let t = e.component, r = t.schema;
|
|
1829
|
-
return (0,
|
|
1829
|
+
return (0, Qo.jsx)("div", { className: U(t.margin || "md"), children: (0, Qo.jsx)(rr, { schema: r, model: e.model, submitted: e.submitted, errors: e.errors, onChange: (o) => {
|
|
1830
1830
|
e.onModelChange(i({ formSchema: r }, o));
|
|
1831
1831
|
}, onPersistAsync: e.onPersistAsync }) });
|
|
1832
1832
|
};
|
|
1833
|
-
var
|
|
1834
|
-
var
|
|
1835
|
-
var
|
|
1836
|
-
let { text: t, size: r = "md", align: o = "left", margin: n = "md" } = e.component, a =
|
|
1833
|
+
var Zo = rd;
|
|
1834
|
+
var Et = require("react/jsx-runtime");
|
|
1835
|
+
var od = (e) => {
|
|
1836
|
+
let { text: t, size: r = "md", align: o = "left", margin: n = "md" } = e.component, a = Le({ align: o, margin: n });
|
|
1837
1837
|
switch (r) {
|
|
1838
1838
|
case "xs":
|
|
1839
|
-
return (0,
|
|
1839
|
+
return (0, Et.jsx)("h5", { className: a, children: t });
|
|
1840
1840
|
case "sm":
|
|
1841
|
-
return (0,
|
|
1841
|
+
return (0, Et.jsx)("h4", { className: a, children: t });
|
|
1842
1842
|
case "lg":
|
|
1843
|
-
return (0,
|
|
1843
|
+
return (0, Et.jsx)("h2", { className: a, children: t });
|
|
1844
1844
|
case "xl":
|
|
1845
|
-
return (0,
|
|
1845
|
+
return (0, Et.jsx)("h1", { className: a, children: t });
|
|
1846
1846
|
case "md":
|
|
1847
1847
|
default:
|
|
1848
|
-
return (0,
|
|
1848
|
+
return (0, Et.jsx)("h3", { className: a, children: t });
|
|
1849
1849
|
}
|
|
1850
1850
|
};
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1853
|
-
var
|
|
1854
|
-
var
|
|
1851
|
+
var en = od;
|
|
1852
|
+
var tn = require("@transferwise/components");
|
|
1853
|
+
var or = require("react/jsx-runtime");
|
|
1854
|
+
var rn = ({ component: e }) => {
|
|
1855
1855
|
let { content: t, align: r, margin: o } = e;
|
|
1856
|
-
return (0,
|
|
1857
|
-
};
|
|
1858
|
-
var
|
|
1859
|
-
var
|
|
1860
|
-
var
|
|
1861
|
-
var
|
|
1862
|
-
var
|
|
1863
|
-
let { url: t, size: r, text: o, margin: n } = e, a = ee(), [s, c] = (0,
|
|
1864
|
-
(0,
|
|
1865
|
-
|
|
1856
|
+
return (0, or.jsx)("div", { className: Le({ align: r, margin: o }), children: (0, or.jsx)(tn.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
|
|
1857
|
+
};
|
|
1858
|
+
var on = ({ component: e }) => (0, or.jsx)("div", { className: Le(e), children: (0, or.jsx)(tn.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
|
|
1859
|
+
var as = require("@transferwise/components");
|
|
1860
|
+
var qr = require("react");
|
|
1861
|
+
var nn = require("react/jsx-runtime");
|
|
1862
|
+
var nd = ({ component: e }) => {
|
|
1863
|
+
let { url: t, size: r, text: o, margin: n } = e, a = ee(), [s, c] = (0, qr.useState)("");
|
|
1864
|
+
(0, qr.useEffect)(() => {
|
|
1865
|
+
id(a, t).then(c);
|
|
1866
1866
|
}, [t, a]);
|
|
1867
1867
|
let p = { alt: o || "", src: s, stretch: true, shrink: true };
|
|
1868
|
-
return s ? (0,
|
|
1868
|
+
return s ? (0, nn.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, nn.jsx)(as.Image, i({ className: `img-responsive ${U(n || "md")}` }, p)) }) : null;
|
|
1869
1869
|
};
|
|
1870
|
-
var
|
|
1870
|
+
var ad = (e) => new Promise((t, r) => {
|
|
1871
1871
|
let o = new FileReader();
|
|
1872
1872
|
o.addEventListener("loadend", () => t(o.result)), o.addEventListener("error", (n) => r(n)), o.readAsDataURL(e);
|
|
1873
1873
|
});
|
|
1874
|
-
var
|
|
1874
|
+
var id = async (e, t) => {
|
|
1875
1875
|
var r;
|
|
1876
1876
|
try {
|
|
1877
|
-
return
|
|
1877
|
+
return Sr(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) => {
|
|
1878
1878
|
if (o.ok)
|
|
1879
1879
|
return o.blob();
|
|
1880
1880
|
throw new Error("Image fetching failed");
|
|
1881
|
-
}).then(
|
|
1881
|
+
}).then(ad).catch(() => t) : t;
|
|
1882
1882
|
} catch (o) {
|
|
1883
1883
|
return t;
|
|
1884
1884
|
}
|
|
1885
1885
|
};
|
|
1886
|
-
var
|
|
1887
|
-
var
|
|
1888
|
-
var
|
|
1889
|
-
var
|
|
1890
|
-
var
|
|
1891
|
-
var
|
|
1892
|
-
let { items: t } = e, r = t.filter((n) =>
|
|
1893
|
-
return (0,
|
|
1886
|
+
var an = nd;
|
|
1887
|
+
var $r = require("@transferwise/components");
|
|
1888
|
+
var nr = require("react/jsx-runtime");
|
|
1889
|
+
var sd = ["positive", "neutral"];
|
|
1890
|
+
var ld = ["warning", "negative"];
|
|
1891
|
+
var cd = ({ component: e }) => {
|
|
1892
|
+
let { items: t } = e, r = t.filter((n) => sd.includes(n.context)).map(({ text: n }) => n), o = t.filter((n) => ld.includes(n.context)).map(({ text: n }) => n);
|
|
1893
|
+
return (0, nr.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, nr.jsx)($r.Header, { title: e.title }) : null, (0, nr.jsx)($r.InstructionsList, { dos: r, donts: o })] });
|
|
1894
1894
|
};
|
|
1895
|
-
var
|
|
1895
|
+
var sn = cd;
|
|
1896
1896
|
var H = require("react/jsx-runtime");
|
|
1897
1897
|
var X = (e) => JSON.stringify(e);
|
|
1898
|
-
var
|
|
1899
|
-
let { components: t, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: c, baseUrl: p } = e,
|
|
1898
|
+
var md = (e) => {
|
|
1899
|
+
let { components: t, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: c, baseUrl: p } = e, d = (m) => {
|
|
1900
1900
|
switch (m.type) {
|
|
1901
1901
|
case "heading":
|
|
1902
|
-
return (0, H.jsx)(
|
|
1902
|
+
return (0, H.jsx)(en, { component: m }, X(m));
|
|
1903
1903
|
case "paragraph":
|
|
1904
|
-
return (0, H.jsx)(
|
|
1904
|
+
return (0, H.jsx)(cn, { component: m }, X(m));
|
|
1905
1905
|
case "image":
|
|
1906
|
-
return (0, H.jsx)(
|
|
1906
|
+
return (0, H.jsx)(an, { component: m }, X(m));
|
|
1907
1907
|
case "alert":
|
|
1908
1908
|
return (0, H.jsx)(ie, { component: m }, X(m));
|
|
1909
1909
|
case "review":
|
|
1910
|
-
return (0, H.jsx)(
|
|
1910
|
+
return (0, H.jsx)(mn, { component: m, onAction: s }, X(m));
|
|
1911
1911
|
case "divider":
|
|
1912
|
-
return (0, H.jsx)(
|
|
1912
|
+
return (0, H.jsx)(Do, { component: m }, X(m));
|
|
1913
1913
|
case "info":
|
|
1914
|
-
return (0, H.jsx)(
|
|
1914
|
+
return (0, H.jsx)(on, { component: m }, X(m));
|
|
1915
1915
|
case "instructions":
|
|
1916
|
-
return (0, H.jsx)(
|
|
1916
|
+
return (0, H.jsx)(sn, { component: m }, X(m));
|
|
1917
1917
|
case "markdown":
|
|
1918
|
-
return (0, H.jsx)(
|
|
1918
|
+
return (0, H.jsx)(rn, { component: m }, X(m));
|
|
1919
1919
|
case "columns":
|
|
1920
|
-
return (0, H.jsx)(
|
|
1920
|
+
return (0, H.jsx)(ko, { component: m, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: c }, X(m));
|
|
1921
1921
|
case "form":
|
|
1922
|
-
return (0, H.jsx)(
|
|
1922
|
+
return (0, H.jsx)(Zo, { component: m, model: r, submitted: o, errors: n, onModelChange: a, onPersistAsync: c }, X(S(i({}, m), { errors: n != null ? n : null })));
|
|
1923
1923
|
case "button":
|
|
1924
|
-
return (0, H.jsx)(
|
|
1924
|
+
return (0, H.jsx)(Mo, { component: m, onAction: s }, X(m));
|
|
1925
1925
|
case "box":
|
|
1926
|
-
return (0, H.jsx)(
|
|
1926
|
+
return (0, H.jsx)(Ao, { component: m, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: c }, X(m));
|
|
1927
1927
|
case "decision":
|
|
1928
|
-
return (0, H.jsx)(
|
|
1928
|
+
return (0, H.jsx)(Eo, { component: m, onAction: s }, X(m));
|
|
1929
1929
|
case "external":
|
|
1930
|
-
return (0, H.jsx)(
|
|
1930
|
+
return (0, H.jsx)(Io, { component: m, onAction: s }, X(m));
|
|
1931
1931
|
case "list":
|
|
1932
1932
|
case "status-list":
|
|
1933
|
-
return (0, H.jsx)(
|
|
1933
|
+
return (0, H.jsx)(ln, { component: m, onAction: s }, X(m));
|
|
1934
1934
|
case "loading-indicator":
|
|
1935
|
-
return (0, H.jsx)(
|
|
1935
|
+
return (0, H.jsx)(ar, { component: m }, X(m));
|
|
1936
1936
|
case "search":
|
|
1937
|
-
return (0, H.jsx)(
|
|
1937
|
+
return (0, H.jsx)(dn, { component: m, onAction: s }, X(m));
|
|
1938
1938
|
default:
|
|
1939
1939
|
return (0, H.jsx)("div", {}, X(m));
|
|
1940
1940
|
}
|
|
1941
1941
|
};
|
|
1942
|
-
return
|
|
1942
|
+
return xr() || p == null ? (0, H.jsx)(H.Fragment, { children: t.map(d) }) : (0, H.jsx)(Cr, { baseUrl: p, children: t.map(d) });
|
|
1943
1943
|
};
|
|
1944
|
-
var se =
|
|
1945
|
-
var as = require("@transferwise/components");
|
|
1946
|
-
var Et = require("react/jsx-runtime");
|
|
1947
|
-
var sd = ({ component: e }) => (0, Et.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, Et.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(ld)] });
|
|
1948
|
-
var ld = ({ title: e, description: t, icon: r, status: o }) => {
|
|
1949
|
-
let n = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Et.jsx)(We, { type: r.name }) } : {}), o ? { status: dd[o] } : {});
|
|
1950
|
-
return (0, Et.jsx)(as.Summary, i({}, n));
|
|
1951
|
-
};
|
|
1952
|
-
var cd = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
1953
|
-
var md = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
1954
|
-
var dd = i(i({}, cd), md);
|
|
1955
|
-
var sn = sd;
|
|
1944
|
+
var se = md;
|
|
1956
1945
|
var is = require("@transferwise/components");
|
|
1957
|
-
var
|
|
1958
|
-
var
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
var
|
|
1964
|
-
var
|
|
1965
|
-
var
|
|
1966
|
-
var
|
|
1967
|
-
var
|
|
1968
|
-
var
|
|
1969
|
-
function ds() {
|
|
1970
|
-
let e = (0, ms.useContext)(cs.SnackbarContext);
|
|
1971
|
-
return e ? e.createSnackbar : pd;
|
|
1972
|
-
}
|
|
1973
|
-
function pd() {
|
|
1974
|
-
}
|
|
1975
|
-
var Je = require("react/jsx-runtime");
|
|
1976
|
-
var fd = ({ component: e }) => e.control === "copyable" ? (0, Je.jsx)(hd, { component: e }) : (0, Je.jsx)(yd, { component: e });
|
|
1977
|
-
var yd = ({ component: e }) => (0, Je.jsxs)("p", { className: Ie(e), children: [" ", e.text, " "] });
|
|
1946
|
+
var Dt = require("react/jsx-runtime");
|
|
1947
|
+
var dd = ({ component: e }) => (0, Dt.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, Dt.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(ud)] });
|
|
1948
|
+
var ud = ({ title: e, description: t, icon: r, status: o }) => {
|
|
1949
|
+
let n = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Dt.jsx)(_e, { type: r.name }) } : {}), o ? { status: yd[o] } : {});
|
|
1950
|
+
return (0, Dt.jsx)(is.Summary, i({}, n));
|
|
1951
|
+
};
|
|
1952
|
+
var pd = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
1953
|
+
var fd = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
1954
|
+
var yd = i(i({}, pd), fd);
|
|
1955
|
+
var ln = dd;
|
|
1956
|
+
var ss = require("@transferwise/components");
|
|
1957
|
+
var ls = require("react/jsx-runtime");
|
|
1978
1958
|
var hd = ({ component: e }) => {
|
|
1979
|
-
let {
|
|
1959
|
+
let { margin: t, size: r = "md" } = e;
|
|
1960
|
+
return (0, ls.jsx)(ss.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${U(t)}` }, "data-testid": "loading-indicator" });
|
|
1961
|
+
};
|
|
1962
|
+
var ar = hd;
|
|
1963
|
+
var ps = require("@transferwise/components");
|
|
1964
|
+
var fs = require("react-intl");
|
|
1965
|
+
var cs = require("react-intl");
|
|
1966
|
+
var un = (0, cs.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." } });
|
|
1967
|
+
var ms = require("@transferwise/components");
|
|
1968
|
+
var ds = require("react");
|
|
1969
|
+
function us() {
|
|
1970
|
+
let e = (0, ds.useContext)(ms.SnackbarContext);
|
|
1971
|
+
return e ? e.createSnackbar : gd;
|
|
1972
|
+
}
|
|
1973
|
+
function gd() {
|
|
1974
|
+
}
|
|
1975
|
+
var Xe = require("react/jsx-runtime");
|
|
1976
|
+
var bd = ({ component: e }) => e.control === "copyable" ? (0, Xe.jsx)(wd, { component: e }) : (0, Xe.jsx)(Sd, { component: e });
|
|
1977
|
+
var Sd = ({ component: e }) => (0, Xe.jsxs)("p", { className: Le(e), children: [" ", e.text, " "] });
|
|
1978
|
+
var wd = ({ component: e }) => {
|
|
1979
|
+
let { formatMessage: t } = (0, fs.useIntl)(), r = us(), { text: o } = e, n = () => {
|
|
1980
1980
|
var s;
|
|
1981
|
-
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(
|
|
1982
|
-
}, a =
|
|
1983
|
-
return (0,
|
|
1981
|
+
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(un.copied) })).catch(Fd);
|
|
1982
|
+
}, a = Le({ align: e.align, margin: "sm" }) + " form-control";
|
|
1983
|
+
return (0, Xe.jsxs)("div", { className: Le(e), children: [(0, Xe.jsx)("input", { type: "text", className: a, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, Xe.jsx)(ps.Button, { block: true, onClick: n, children: t(un.copy) })] });
|
|
1984
1984
|
};
|
|
1985
|
-
function
|
|
1985
|
+
function Fd() {
|
|
1986
1986
|
}
|
|
1987
|
-
var
|
|
1988
|
-
var
|
|
1989
|
-
var
|
|
1990
|
-
var
|
|
1991
|
-
var
|
|
1992
|
-
var
|
|
1993
|
-
let t = e.component, r = U(t.margin || "xs"), o = (n) => (0,
|
|
1987
|
+
var cn = bd;
|
|
1988
|
+
var ys = require("@transferwise/components");
|
|
1989
|
+
var je = require("react/jsx-runtime");
|
|
1990
|
+
var Cd = ({ label: e, value: t }, r) => ({ key: String(r), title: e, value: t });
|
|
1991
|
+
var xd = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
|
|
1992
|
+
var Od = (e) => {
|
|
1993
|
+
let t = e.component, r = U(t.margin || "xs"), o = (n) => (0, je.jsx)("a", { href: n.url, className: "pull-right", role: "button", onClick: (a) => {
|
|
1994
1994
|
a.preventDefault(), e.onAction(n);
|
|
1995
1995
|
}, children: n.title });
|
|
1996
|
-
return (0,
|
|
1996
|
+
return (0, je.jsxs)(je.Fragment, { children: [t.title && (0, je.jsxs)("h6", { className: "m-b-2", children: [t.title, t.action && o(t.action)] }), (0, je.jsx)("div", { className: r, children: (0, je.jsx)(ys.DefinitionList, { layout: xd(t), definitions: t.fields.map(Cd) }) })] });
|
|
1997
1997
|
};
|
|
1998
|
-
var
|
|
1999
|
-
var
|
|
2000
|
-
var
|
|
2001
|
-
var
|
|
2002
|
-
var
|
|
2003
|
-
var
|
|
1998
|
+
var mn = Od;
|
|
1999
|
+
var _r = require("react");
|
|
2000
|
+
var hs = require("@transferwise/components");
|
|
2001
|
+
var Gr = require("react/jsx-runtime");
|
|
2002
|
+
var gs = ({ title: e, value: t, onChange: r }) => (0, Gr.jsxs)("label", { className: "control-label d-inline", children: [e, (0, Gr.jsx)(hs.Input, { type: "text", value: t, onChange: (o) => r(o.currentTarget.value) })] });
|
|
2003
|
+
var Wr = require("@transferwise/components");
|
|
2004
|
+
var Ss = require("react-intl");
|
|
2004
2005
|
var bs = require("react-intl");
|
|
2005
|
-
var
|
|
2006
|
-
var Dt = (0, gs.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." } });
|
|
2006
|
+
var It = (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." } });
|
|
2007
2007
|
var ct = require("react/jsx-runtime");
|
|
2008
|
-
var
|
|
2009
|
-
var
|
|
2010
|
-
let t = (0,
|
|
2011
|
-
return (0, ct.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(
|
|
2008
|
+
var ws = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, ct.jsx)("p", { className: "m-t-2", children: t }) : (0, ct.jsx)(Wr.NavigationOptionsList, { children: e.map((o) => (0, ct.jsx)(Wr.NavigationOption, { title: o.title, content: o.description, media: Jt(o), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(o) }, JSON.stringify(o))) });
|
|
2009
|
+
var Fs = ({ onRetrySearch: e }) => {
|
|
2010
|
+
let t = (0, Ss.useIntl)();
|
|
2011
|
+
return (0, ct.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(It.errorAlert), "\xA0", (0, ct.jsx)("a", { href: "/", onClick: (r) => {
|
|
2012
2012
|
r.preventDefault(), e();
|
|
2013
|
-
}, children: t.formatMessage(
|
|
2014
|
-
};
|
|
2015
|
-
var
|
|
2016
|
-
var
|
|
2017
|
-
var
|
|
2018
|
-
let [t, r] = (0,
|
|
2019
|
-
var
|
|
2020
|
-
if ((
|
|
2013
|
+
}, children: t.formatMessage(It.retry) })] });
|
|
2014
|
+
};
|
|
2015
|
+
var Lt = require("react");
|
|
2016
|
+
var vd = { "Content-Type": "application/json" };
|
|
2017
|
+
var Cs = (e) => {
|
|
2018
|
+
let [t, r] = (0, Lt.useState)({ status: "idle" }), o = (0, Lt.useRef)(null), n = ee(), a = (0, Lt.useCallback)(async (d, { url: m, method: h, param: f } = e) => {
|
|
2019
|
+
var u;
|
|
2020
|
+
if ((u = o.current) == null || u.abort(), !d) {
|
|
2021
2021
|
r({ status: "idle" });
|
|
2022
2022
|
return;
|
|
2023
2023
|
}
|
|
@@ -2025,31 +2025,31 @@ var require_main_min = __commonJS({
|
|
|
2025
2025
|
let l = o.current.signal;
|
|
2026
2026
|
r({ status: "loading" });
|
|
2027
2027
|
try {
|
|
2028
|
-
let y = h === "GET" ? `${m}?${f}=${encodeURIComponent(
|
|
2029
|
-
s(b,
|
|
2028
|
+
let y = h === "GET" ? `${m}?${f}=${encodeURIComponent(d)}` : m, g = h === "GET" ? {} : { body: JSON.stringify({ [f]: d }) }, b = await n(y, i({ method: h, signal: l, headers: vd }, g));
|
|
2029
|
+
s(b, d);
|
|
2030
2030
|
} catch (y) {
|
|
2031
|
-
c(y,
|
|
2031
|
+
c(y, d);
|
|
2032
2032
|
}
|
|
2033
|
-
}, [n, JSON.stringify(e)]), s = async (
|
|
2034
|
-
if (
|
|
2035
|
-
let h = await
|
|
2036
|
-
if (
|
|
2033
|
+
}, [n, JSON.stringify(e)]), s = async (d, m) => {
|
|
2034
|
+
if (d.ok) {
|
|
2035
|
+
let h = await d.json().catch(() => null);
|
|
2036
|
+
if (Pd(h)) {
|
|
2037
2037
|
r({ status: "success", results: h.results });
|
|
2038
2038
|
return;
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
2041
|
r({ status: "error" });
|
|
2042
|
-
}, c = (
|
|
2043
|
-
|
|
2042
|
+
}, c = (d, m) => {
|
|
2043
|
+
Ad(d) === false && r({ status: "error" });
|
|
2044
2044
|
}, p = t.status === "success" ? t.results : [];
|
|
2045
2045
|
return { status: t.status, results: p, search: a };
|
|
2046
2046
|
};
|
|
2047
|
-
var
|
|
2048
|
-
var
|
|
2047
|
+
var Pd = (e) => T(e) && "results" in e && q(e.results) && e.results.every((t) => T(t) && "title" in t && "type" in t && "value" in t);
|
|
2048
|
+
var Ad = (e) => e instanceof DOMException && e.name === "AbortError";
|
|
2049
2049
|
var mt = require("react/jsx-runtime");
|
|
2050
|
-
var
|
|
2051
|
-
var
|
|
2052
|
-
let [r, o] = (0,
|
|
2050
|
+
var Md = 400;
|
|
2051
|
+
var kd = ({ component: e, onAction: t }) => {
|
|
2052
|
+
let [r, o] = (0, _r.useState)(""), { title: n, margin: a, url: s, method: c, param: p, emptyMessage: d } = e, { status: m, results: h, search: f } = Cs({ url: s, method: c, param: p }), l = (0, _r.useMemo)(() => Ge(f, Md), [f]), u = (b) => {
|
|
2053
2053
|
o(b), l(b);
|
|
2054
2054
|
}, y = ({ type: b, value: x }) => {
|
|
2055
2055
|
if (b === "action" && t(x), b === "search") {
|
|
@@ -2060,27 +2060,27 @@ var require_main_min = __commonJS({
|
|
|
2060
2060
|
}, g = () => {
|
|
2061
2061
|
o(r), f(r);
|
|
2062
2062
|
};
|
|
2063
|
-
return (0, mt.jsxs)("div", { className: U(a), children: [(0, mt.jsx)(
|
|
2063
|
+
return (0, mt.jsxs)("div", { className: U(a), children: [(0, mt.jsx)(gs, { title: n, value: r, onChange: u }), m === "loading" && (0, mt.jsx)(ar, { component: { type: "loading-indicator", size: "sm" } }), m === "error" && (0, mt.jsx)(Fs, { onRetrySearch: g }), m === "success" && (0, mt.jsx)(ws, { results: h, emptyMessage: d, onSelect: y })] });
|
|
2064
2064
|
};
|
|
2065
|
-
var
|
|
2065
|
+
var dn = kd;
|
|
2066
2066
|
var ce = require("react/jsx-runtime");
|
|
2067
|
-
var
|
|
2068
|
-
var
|
|
2069
|
-
var
|
|
2067
|
+
var pn = (e) => M(e) || K(e);
|
|
2068
|
+
var Ed = (e) => e.type === "boolean" && pn(e.default) ? false : e.default;
|
|
2069
|
+
var Os = (e) => {
|
|
2070
2070
|
var $, O, j;
|
|
2071
2071
|
let t = (k) => {
|
|
2072
2072
|
f(true), o(n(k), "user");
|
|
2073
|
-
}, r = (k) =>
|
|
2073
|
+
}, r = (k) => $e(k, e.schema, e.required), o = (k, z) => {
|
|
2074
2074
|
p(k);
|
|
2075
2075
|
let Fe = r(k);
|
|
2076
2076
|
x(Fe);
|
|
2077
2077
|
let ne = k;
|
|
2078
|
-
m(ne), ne !==
|
|
2079
|
-
}, n = (k) =>
|
|
2080
|
-
|
|
2081
|
-
}, [c, p] = (0, le.useState)(($ = e.model) != null ? $ : null), [
|
|
2082
|
-
let k =
|
|
2083
|
-
|
|
2078
|
+
m(ne), ne !== d && e.onChange({ model: ne, triggerSchema: e.schema, triggerModel: ne, lastTriggerModel: d, type: z });
|
|
2079
|
+
}, n = (k) => ke(k, e.schema), a = () => u(true), s = () => {
|
|
2080
|
+
u(false), g(true), e.onBlur && e.onBlur();
|
|
2081
|
+
}, [c, p] = (0, le.useState)(($ = e.model) != null ? $ : null), [d, m] = (0, le.useState)((O = e.model) != null ? O : null), [h, f] = (0, le.useState)(false), [l, u] = (0, le.useState)(false), [y, g] = (0, le.useState)(false), [b, x] = (0, le.useState)([]), C = (0, le.useMemo)(() => e.schema.$id || Oe(), [e.schema.$id]), v = () => {
|
|
2082
|
+
let k = Ed(e.schema);
|
|
2083
|
+
pn(c) && !pn(k) && o(k, "init"), e.schema.const && o(e.schema.const, "init");
|
|
2084
2084
|
}, P = () => {
|
|
2085
2085
|
x(r(c));
|
|
2086
2086
|
}, w = e.schema.const, I = e.schema.hidden || w;
|
|
@@ -2090,65 +2090,65 @@ var require_main_min = __commonJS({
|
|
|
2090
2090
|
k !== c && p(k);
|
|
2091
2091
|
}, [e.model]);
|
|
2092
2092
|
let N = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && y) && !!b.length, "has-info": l && !!e.schema.description || !!e.infoMessage }, A = e.schema.format !== "file" && e.schema.type !== "boolean", L = e.schema.help;
|
|
2093
|
-
return I ? null : (0, ce.jsxs)(ce.Fragment, { children: [e.schema.alert && (0, ce.jsx)(ie, { component: e.schema.alert }), (0, ce.jsxs)("div", { className: (0,
|
|
2093
|
+
return I ? null : (0, ce.jsxs)(ce.Fragment, { children: [e.schema.alert && (0, ce.jsx)(ie, { component: e.schema.alert }), (0, ce.jsxs)("div", { className: (0, xs.default)(N), children: [A && (0, ce.jsxs)("div", { className: "d-inline-block", children: [(0, ce.jsx)("label", { className: "control-label d-inline", htmlFor: C, children: e.schema.title }), !!L && (0, ce.jsx)(Ot, { help: L })] }), !A && !!L && (0, ce.jsx)(Ot, { help: L }), (0, ce.jsx)(Qt, { id: C, schema: e.schema, value: c, disabled: !!e.disabled, onChange: t, onFocus: a, onBlur: s }), (0, ce.jsx)(Te, { changed: h, focused: l, blurred: y, submitted: e.submitted, errors: (j = e.errors) != null ? j : null, schema: e.schema, validations: b, infoMessage: e.infoMessage })] })] });
|
|
2094
2094
|
};
|
|
2095
|
-
|
|
2096
|
-
var st =
|
|
2097
|
-
var
|
|
2098
|
-
var
|
|
2099
|
-
var
|
|
2095
|
+
Os.defaultProps = { required: false, disabled: false, onBlur: null };
|
|
2096
|
+
var st = Os;
|
|
2097
|
+
var Ms = require("react/jsx-runtime");
|
|
2098
|
+
var $o = (e, t) => t[e];
|
|
2099
|
+
var Ps = (e, t) => {
|
|
2100
2100
|
var r;
|
|
2101
2101
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2102
2102
|
};
|
|
2103
|
-
var
|
|
2104
|
-
var
|
|
2105
|
-
let { schema: t, required: r, submitted: o, errors: n, onChange: a, onPersistAsync: s } = e, c = (0,
|
|
2103
|
+
var Dd = /* @__PURE__ */ new Set([B.RADIO, B.SELECT, B.DATELOOKUP, B.FILE, B.UPLOAD]);
|
|
2104
|
+
var As = (e) => {
|
|
2105
|
+
let { schema: t, required: r, submitted: o, errors: n, onChange: a, onPersistAsync: s } = e, c = (0, vs.useIntl)(), p = ee(), d = Z(), [m, h] = (0, dt.useState)(null), f = ks(m), [l, u] = (0, dt.useState)(null), [y, g] = (0, dt.useState)(false), [b, x] = (0, dt.useState)(null);
|
|
2106
2106
|
(0, dt.useEffect)(() => {
|
|
2107
|
-
|
|
2107
|
+
Dd.has(Uo(t.persistAsync.schema)) && w();
|
|
2108
2108
|
}, [m]);
|
|
2109
|
-
let C = () =>
|
|
2109
|
+
let C = () => u(c.formatMessage(_t.genericError)), v = async (A, L) => {
|
|
2110
2110
|
let $ = P(), O = { [L.param]: A };
|
|
2111
2111
|
g(true);
|
|
2112
2112
|
try {
|
|
2113
|
-
|
|
2113
|
+
d("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t.$id });
|
|
2114
2114
|
let j = p(L.url, { method: L.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(O), signal: $ });
|
|
2115
2115
|
s(j);
|
|
2116
2116
|
let k = await j, z = await k.json();
|
|
2117
2117
|
if (!T(z))
|
|
2118
2118
|
throw new Error("Response is not an object");
|
|
2119
2119
|
let { idProperty: Fe, param: ne } = t.persistAsync;
|
|
2120
|
-
if (
|
|
2121
|
-
let re =
|
|
2120
|
+
if (qn(k.status)) {
|
|
2121
|
+
let re = $o(Fe, z);
|
|
2122
2122
|
a({ model: re, triggerSchema: t, triggerModel: re });
|
|
2123
|
-
} else if (
|
|
2123
|
+
} else if (br(k.status)) {
|
|
2124
2124
|
let { validation: re } = z, me = T(re) && (re == null ? void 0 : re[ne]) || null;
|
|
2125
|
-
|
|
2125
|
+
u(me), a({ model: null, triggerSchema: t, triggerModel: null });
|
|
2126
2126
|
} else
|
|
2127
2127
|
C();
|
|
2128
|
-
|
|
2128
|
+
d("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
|
|
2129
2129
|
} catch (j) {
|
|
2130
|
-
|
|
2130
|
+
d("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), C();
|
|
2131
2131
|
}
|
|
2132
2132
|
}, P = () => {
|
|
2133
2133
|
b && b.abort();
|
|
2134
2134
|
let A = new AbortController();
|
|
2135
2135
|
return x(A), A.signal;
|
|
2136
2136
|
}, w = () => {
|
|
2137
|
-
!M(m) && !
|
|
2137
|
+
!M(m) && !We(m, f) && v(m, t.persistAsync);
|
|
2138
2138
|
}, I = () => {
|
|
2139
2139
|
w();
|
|
2140
2140
|
}, N = ({ model: A }) => {
|
|
2141
|
-
|
|
2141
|
+
u(null), G(A, t.persistAsync.schema) && h(A);
|
|
2142
2142
|
};
|
|
2143
|
-
return (0,
|
|
2143
|
+
return (0, Ms.jsx)(st, { required: r, submitted: o || y, schema: t.persistAsync.schema, errors: l || n, model: null, infoMessage: null, onChange: N, onBlur: I });
|
|
2144
2144
|
};
|
|
2145
|
-
|
|
2146
|
-
var
|
|
2147
|
-
var
|
|
2148
|
-
let [t, r] = (0,
|
|
2145
|
+
As.defaultProps = { required: false };
|
|
2146
|
+
var Ho = As;
|
|
2147
|
+
var di = (e) => {
|
|
2148
|
+
let [t, r] = (0, Es.useState)(null), o = ee(), n = (0, Ds.useIntl)(), { schema: a } = e;
|
|
2149
2149
|
async function s(f) {
|
|
2150
|
-
let l = f instanceof Blob ? !
|
|
2151
|
-
return (M(f) || l) && h(), await
|
|
2150
|
+
let l = f instanceof Blob ? !St(a) : !G(f, a);
|
|
2151
|
+
return (M(f) || l) && h(), await d(f);
|
|
2152
2152
|
}
|
|
2153
2153
|
let c = () => {
|
|
2154
2154
|
t && t.abort();
|
|
@@ -2156,17 +2156,17 @@ var require_main_min = __commonJS({
|
|
|
2156
2156
|
return r(f), f.signal;
|
|
2157
2157
|
};
|
|
2158
2158
|
function p(f) {
|
|
2159
|
-
let l =
|
|
2160
|
-
return { method: e.method, headers: i({}, !l && { "Content-Type": "application/json" }), body: g, signal:
|
|
2159
|
+
let l = St(a), u = c(), y = e.param, g = l ? Id(y, f) : JSON.stringify({ [y]: f });
|
|
2160
|
+
return { method: e.method, headers: i({}, !l && { "Content-Type": "application/json" }), body: g, signal: u };
|
|
2161
2161
|
}
|
|
2162
|
-
async function
|
|
2162
|
+
async function d(f) {
|
|
2163
2163
|
try {
|
|
2164
2164
|
let l = await o(e.url, p(f));
|
|
2165
2165
|
if (!l.ok)
|
|
2166
2166
|
return m(l);
|
|
2167
|
-
let
|
|
2168
|
-
if (T(
|
|
2169
|
-
let y =
|
|
2167
|
+
let u = await l.json();
|
|
2168
|
+
if (T(u)) {
|
|
2169
|
+
let y = u[e.idProperty];
|
|
2170
2170
|
if (D(y) || R(y))
|
|
2171
2171
|
return { data: y };
|
|
2172
2172
|
}
|
|
@@ -2179,41 +2179,41 @@ var require_main_min = __commonJS({
|
|
|
2179
2179
|
if (f.status === 422) {
|
|
2180
2180
|
let l = await f.json();
|
|
2181
2181
|
if (T(l)) {
|
|
2182
|
-
let
|
|
2183
|
-
if (D(
|
|
2184
|
-
throw new Error(
|
|
2182
|
+
let u = Ps(e.param, l);
|
|
2183
|
+
if (D(u))
|
|
2184
|
+
throw new Error(u);
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
|
-
throw new Error(n.formatMessage(
|
|
2187
|
+
throw new Error(n.formatMessage(_t.genericError));
|
|
2188
2188
|
}
|
|
2189
2189
|
let h = (f) => {
|
|
2190
|
-
let l =
|
|
2190
|
+
let l = Ld(f) ? f.message : n.formatMessage(_t.genericError);
|
|
2191
2191
|
throw new Error(l);
|
|
2192
2192
|
};
|
|
2193
2193
|
return s;
|
|
2194
2194
|
};
|
|
2195
|
-
function
|
|
2195
|
+
function Id(e, t) {
|
|
2196
2196
|
let r = new FormData();
|
|
2197
2197
|
return t !== null && r.append(e, t), r;
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function Ld(e) {
|
|
2200
2200
|
return T(e) && "message" in e && typeof e.message == "string";
|
|
2201
2201
|
}
|
|
2202
|
-
var
|
|
2203
|
-
function
|
|
2204
|
-
let s = (0,
|
|
2205
|
-
(0,
|
|
2202
|
+
var Ye = require("react");
|
|
2203
|
+
function kr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: n, onFailure: a }) {
|
|
2204
|
+
let s = (0, Ye.useRef)(n), c = (0, Ye.useRef)(a), p = (0, Ye.useMemo)(() => Nd(e, r, o, (d) => s.current(d), () => c.current()), [e, r, o]);
|
|
2205
|
+
(0, Ye.useEffect)(() => {
|
|
2206
2206
|
if (t > 0) {
|
|
2207
|
-
let
|
|
2207
|
+
let d = setInterval(() => {
|
|
2208
2208
|
p();
|
|
2209
2209
|
}, t);
|
|
2210
|
-
return () => clearInterval(
|
|
2210
|
+
return () => clearInterval(d);
|
|
2211
2211
|
}
|
|
2212
|
-
}, [p, t]), (0,
|
|
2212
|
+
}, [p, t]), (0, Ye.useEffect)(() => {
|
|
2213
2213
|
s.current = n, c.current = a;
|
|
2214
2214
|
}, [n, a]);
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function Nd(e, t, r, o, n) {
|
|
2217
2217
|
let a = true, s = 0, c = 0;
|
|
2218
2218
|
return e ? () => {
|
|
2219
2219
|
a && (c++, e().then((p) => {
|
|
@@ -2226,65 +2226,65 @@ var require_main_min = __commonJS({
|
|
|
2226
2226
|
} : () => {
|
|
2227
2227
|
};
|
|
2228
2228
|
}
|
|
2229
|
-
var
|
|
2230
|
-
var
|
|
2231
|
-
let t = (0,
|
|
2232
|
-
return (0,
|
|
2229
|
+
var Kr = require("react");
|
|
2230
|
+
var ks = (e) => {
|
|
2231
|
+
let t = (0, Kr.useRef)();
|
|
2232
|
+
return (0, Kr.useEffect)(() => {
|
|
2233
2233
|
t.current = e;
|
|
2234
2234
|
}, [e]), t.current;
|
|
2235
2235
|
};
|
|
2236
|
-
var
|
|
2237
|
-
function
|
|
2238
|
-
let r = ee(), o = (0,
|
|
2236
|
+
var ir = require("react");
|
|
2237
|
+
function Is(e, t) {
|
|
2238
|
+
let r = ee(), o = (0, ir.useMemo)(() => {
|
|
2239
2239
|
if (e)
|
|
2240
2240
|
return () => r(e.url).then((a) => {
|
|
2241
2241
|
if (a.ok)
|
|
2242
2242
|
return a.json().then((s) => s).catch((s) => null);
|
|
2243
2243
|
throw new Error("failed");
|
|
2244
2244
|
});
|
|
2245
|
-
}, [e, r]), n = (0,
|
|
2246
|
-
|
|
2245
|
+
}, [e, r]), n = (0, ir.useCallback)((a) => a != null && a.action ? (t(a.action), false) : true, [t]);
|
|
2246
|
+
kr({ asyncFn: o, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse: n, onFailure: (0, ir.useCallback)(() => {
|
|
2247
2247
|
e && t(e.onError.action);
|
|
2248
2248
|
}, [t, e]) });
|
|
2249
2249
|
}
|
|
2250
|
-
var
|
|
2251
|
-
var
|
|
2250
|
+
var Ls = require("react/jsx-runtime");
|
|
2251
|
+
var Td = (e, t) => {
|
|
2252
2252
|
var o;
|
|
2253
|
-
if (
|
|
2253
|
+
if (gt(e))
|
|
2254
2254
|
return [];
|
|
2255
|
-
let r =
|
|
2256
|
-
return
|
|
2255
|
+
let r = jt(e, t);
|
|
2256
|
+
return He({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (o = e.model) != null ? o : null });
|
|
2257
2257
|
};
|
|
2258
|
-
var
|
|
2259
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: s } = e, c =
|
|
2258
|
+
var Rd = (e) => {
|
|
2259
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: s } = e, c = Td(t, r), { loading: p, registerPersistAsyncPromise: d } = hr(), m = Z(), h = p ? () => {
|
|
2260
2260
|
m("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2261
2261
|
} : e.onAction;
|
|
2262
|
-
return
|
|
2262
|
+
return Is(t.polling, h), (0, Ls.jsx)(se, { components: c, submitted: o, model: n, errors: a, onAction: h, onModelChange: s, onPersistAsync: d });
|
|
2263
2263
|
};
|
|
2264
|
-
var
|
|
2265
|
-
var
|
|
2264
|
+
var Jr = Rd;
|
|
2265
|
+
var eo = require("react");
|
|
2266
2266
|
var Se = require("react");
|
|
2267
|
-
var
|
|
2268
|
-
var
|
|
2269
|
-
var Ns = require("react-intl");
|
|
2270
|
-
var ir = (0, Ns.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" } });
|
|
2271
|
-
var be = require("@transferwise/components");
|
|
2267
|
+
var rl = require("react-intl");
|
|
2268
|
+
var ol = ze(Ns());
|
|
2272
2269
|
var Ts = require("react-intl");
|
|
2270
|
+
var lr = (0, Ts.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" } });
|
|
2271
|
+
var be = require("@transferwise/components");
|
|
2272
|
+
var Rs = require("react-intl");
|
|
2273
2273
|
var ge = require("react/jsx-runtime");
|
|
2274
|
-
var
|
|
2275
|
-
var
|
|
2276
|
-
let r = (0,
|
|
2277
|
-
return (0, ge.jsx)("div", { className: "bottom-bar p-x-2", children: (0, ge.jsx)("div", { className: "row", children: (0, ge.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, ge.jsx)(be.Button, { className: "m-b-1", block: true, size: be.Size.MEDIUM, type: be.ControlType.ACCENT, onClick: e, children: r.formatMessage(
|
|
2278
|
-
};
|
|
2279
|
-
var
|
|
2280
|
-
var
|
|
2281
|
-
var
|
|
2274
|
+
var Bs = ({ onCapture: e }) => (0, ge.jsx)("div", { className: "bottom-bar", children: (0, ge.jsx)(Bd, { onClick: e }) });
|
|
2275
|
+
var js = ({ onSubmit: e, onRetry: t }) => {
|
|
2276
|
+
let r = (0, Rs.useIntl)();
|
|
2277
|
+
return (0, ge.jsx)("div", { className: "bottom-bar p-x-2", children: (0, ge.jsx)("div", { className: "row", children: (0, ge.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, ge.jsx)(be.Button, { className: "m-b-1", block: true, size: be.Size.MEDIUM, type: be.ControlType.ACCENT, onClick: e, children: r.formatMessage(lr.reviewSubmit) }), (0, ge.jsx)(be.Button, { className: "m-b-2", block: true, size: be.Size.MEDIUM, type: be.ControlType.ACCENT, priority: be.Priority.SECONDARY, onClick: t, children: r.formatMessage(lr.reviewRetry) })] }) }) });
|
|
2278
|
+
};
|
|
2279
|
+
var Bd = ({ onClick: e }) => (0, ge.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, ge.jsx)("span", { className: "camera-capture-btn-inner" }) });
|
|
2280
|
+
var Yr = require("react");
|
|
2281
|
+
var Vs = (e) => {
|
|
2282
2282
|
var r;
|
|
2283
|
-
let { facingMode: t } = ((r =
|
|
2283
|
+
let { facingMode: t } = ((r = Xr(e)) == null ? void 0 : r.getSettings()) || {};
|
|
2284
2284
|
return t === "user" || t === void 0;
|
|
2285
2285
|
};
|
|
2286
|
-
var
|
|
2287
|
-
var
|
|
2286
|
+
var Us = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
|
|
2287
|
+
var zs = async (e) => {
|
|
2288
2288
|
let t = document.createElement("canvas");
|
|
2289
2289
|
if (e) {
|
|
2290
2290
|
t.setAttribute("height", `${e.videoHeight}`), t.setAttribute("width", `${e.videoWidth}`);
|
|
@@ -2293,35 +2293,35 @@ var require_main_min = __commonJS({
|
|
|
2293
2293
|
}
|
|
2294
2294
|
return t;
|
|
2295
2295
|
};
|
|
2296
|
-
var
|
|
2296
|
+
var Hs = async () => {
|
|
2297
2297
|
var e, t;
|
|
2298
2298
|
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");
|
|
2299
2299
|
};
|
|
2300
|
-
var
|
|
2300
|
+
var qs = async () => {
|
|
2301
2301
|
var e, t;
|
|
2302
2302
|
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);
|
|
2303
2303
|
};
|
|
2304
|
-
var
|
|
2304
|
+
var $s = async (e) => {
|
|
2305
2305
|
var r, o, n;
|
|
2306
|
-
let t =
|
|
2306
|
+
let t = yn(e);
|
|
2307
2307
|
return (n = (await ((o = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : o.call(r)) || []).filter((a) => a.kind === "videoinput").find((a) => a.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : n.label;
|
|
2308
2308
|
};
|
|
2309
|
-
var
|
|
2309
|
+
var Xr = (e) => {
|
|
2310
2310
|
var t;
|
|
2311
2311
|
return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
|
|
2312
2312
|
};
|
|
2313
|
-
var
|
|
2313
|
+
var yn = (e) => {
|
|
2314
2314
|
var t, r;
|
|
2315
|
-
return (r = (t =
|
|
2315
|
+
return (r = (t = Xr(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2316
2316
|
};
|
|
2317
|
-
var
|
|
2318
|
-
let [t, r] = (0,
|
|
2319
|
-
(0,
|
|
2317
|
+
var Gs = (e) => {
|
|
2318
|
+
let [t, r] = (0, Yr.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 };
|
|
2319
|
+
(0, Yr.useEffect)(() => {
|
|
2320
2320
|
n(e).then(r);
|
|
2321
2321
|
}, [e]);
|
|
2322
2322
|
let n = async (a) => {
|
|
2323
2323
|
if (a === "back") {
|
|
2324
|
-
let s = (await
|
|
2324
|
+
let s = (await Hs()).find(Us);
|
|
2325
2325
|
if (s != null && s.deviceId)
|
|
2326
2326
|
return S(i({}, o), { deviceId: { exact: s.deviceId } });
|
|
2327
2327
|
}
|
|
@@ -2329,230 +2329,237 @@ var require_main_min = __commonJS({
|
|
|
2329
2329
|
};
|
|
2330
2330
|
return { videoConstraints: t };
|
|
2331
2331
|
};
|
|
2332
|
-
var
|
|
2332
|
+
var Qr = require("react");
|
|
2333
2333
|
var _ = require("react/jsx-runtime");
|
|
2334
|
-
var
|
|
2335
|
-
var
|
|
2336
|
-
var
|
|
2337
|
-
var
|
|
2338
|
-
var
|
|
2339
|
-
var
|
|
2340
|
-
var
|
|
2341
|
-
var
|
|
2342
|
-
let s = (0,
|
|
2343
|
-
(0,
|
|
2344
|
-
let f =
|
|
2334
|
+
var jd = 92;
|
|
2335
|
+
var Ws = 120;
|
|
2336
|
+
var Vd = 40;
|
|
2337
|
+
var Ud = 32;
|
|
2338
|
+
var zd = 48;
|
|
2339
|
+
var Hd = 40;
|
|
2340
|
+
var _s = 800;
|
|
2341
|
+
var qd = ({ overlay: e, outline: t, imageUrl: r, title: o, instructions: n, reviewInstructions: a }) => {
|
|
2342
|
+
let s = (0, Qr.useRef)(null);
|
|
2343
|
+
(0, Qr.useEffect)(() => {
|
|
2344
|
+
let f = Ge(() => {
|
|
2345
2345
|
var l;
|
|
2346
2346
|
if ((l = s.current) != null && l.innerHTML) {
|
|
2347
|
-
let
|
|
2348
|
-
|
|
2347
|
+
let u = s.current;
|
|
2348
|
+
u.innerHTML += "";
|
|
2349
2349
|
}
|
|
2350
2350
|
}, 100);
|
|
2351
2351
|
return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
2352
2352
|
});
|
|
2353
|
-
let c = (r ?
|
|
2353
|
+
let c = (r ? Vd : 0) + (o ? Ud : 0) + (n ? zd : 0), p = (0, _.jsxs)(_.Fragment, { children: [r && (0, _.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), o && (0, _.jsx)("h4", { className: "camera-capture-title", children: o }), n && (0, _.jsx)("small", { className: "camera-capture-instructions", children: n })] }), d = jd + c;
|
|
2354
2354
|
if (a) {
|
|
2355
|
-
c =
|
|
2356
|
-
let f =
|
|
2357
|
-
|
|
2355
|
+
c = d - Ws, p = (0, _.jsx)("small", { className: "camera-capture-instructions", children: a });
|
|
2356
|
+
let f = Ws + Hd;
|
|
2357
|
+
d < f && (p = (0, _.jsx)(_.Fragment, {}));
|
|
2358
2358
|
}
|
|
2359
|
-
let m = { x: "50%", y: "5%", width: `min(90%, ${
|
|
2359
|
+
let m = { x: "50%", y: "5%", width: `min(90%, ${_s}px)`, height: `calc(90% - ${d}px)`, style: { transform: `translateX(max(-45%, -${_s / 2}px))` } }, h = { style: { left: "5%", top: `calc(100% - ${d}px - 5%)`, height: `calc(${c}px + 5%)`, width: "90%" } };
|
|
2360
2360
|
return (0, _.jsxs)("svg", { ref: s, xmlns: "http://www.w3.org/2000/svg", children: [(0, _.jsx)("defs", { children: (0, _.jsxs)("mask", { id: "mask", children: [(0, _.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, _.jsx)("image", i({ href: e }, m))] }) }), e && (0, _.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, _.jsx)("image", i({ href: t }, m)), (0, _.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, _.jsx)("div", S(i({ className: "camera-capture-text-and-image-container" }, h), { children: p })) })] });
|
|
2361
2361
|
};
|
|
2362
|
-
var
|
|
2363
|
-
var
|
|
2364
|
-
var
|
|
2365
|
-
var
|
|
2366
|
-
var
|
|
2367
|
-
var
|
|
2368
|
-
var
|
|
2369
|
-
let t = (0,
|
|
2370
|
-
return (0,
|
|
2362
|
+
var hn = qd;
|
|
2363
|
+
var Js = require("@transferwise/components");
|
|
2364
|
+
var Xs = require("react-intl");
|
|
2365
|
+
var Ks = require("react-intl");
|
|
2366
|
+
var Zr = (0, Ks.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" } });
|
|
2367
|
+
var Ve = require("react/jsx-runtime");
|
|
2368
|
+
var $d = ({ onAction: e }) => {
|
|
2369
|
+
let t = (0, Xs.useIntl)();
|
|
2370
|
+
return (0, Ve.jsx)("div", { id: "no-camera-access", children: (0, Ve.jsx)("div", { className: "container p-t-5", children: (0, Ve.jsx)("div", { className: "row", children: (0, Ve.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, Ve.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(Zr.title) }), (0, Ve.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(Zr.paragraph) }), (0, Ve.jsx)(Js.Button, { block: true, onClick: e, children: t.formatMessage(Zr.action) })] }) }) }) });
|
|
2371
2371
|
};
|
|
2372
|
-
var
|
|
2372
|
+
var gn = $d;
|
|
2373
|
+
var Qs = require("react-intl");
|
|
2373
2374
|
var Ys = require("react-intl");
|
|
2374
|
-
var
|
|
2375
|
-
var
|
|
2376
|
-
var
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
var
|
|
2382
|
-
var
|
|
2383
|
-
var
|
|
2384
|
-
var
|
|
2385
|
-
var Hd = async (e, t) => {
|
|
2375
|
+
var bn = (0, Ys.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" } });
|
|
2376
|
+
var Qe = require("react/jsx-runtime");
|
|
2377
|
+
var Gd = () => {
|
|
2378
|
+
let e = (0, Qs.useIntl)();
|
|
2379
|
+
return (0, Qe.jsx)("div", { id: "camera-not-supported", children: (0, Qe.jsx)("div", { className: "container p-t-5", children: (0, Qe.jsx)("div", { className: "row", children: (0, Qe.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, Qe.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(bn.title) }), (0, Qe.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(bn.paragraph) })] }) }) }) });
|
|
2380
|
+
};
|
|
2381
|
+
var Sn = Gd;
|
|
2382
|
+
var Zs = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
|
|
2383
|
+
var el = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await Wd(t, r));
|
|
2384
|
+
var tl = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
|
|
2385
|
+
var Wd = async (e, t) => {
|
|
2386
2386
|
var a;
|
|
2387
|
-
let r =
|
|
2388
|
-
return S(i({}, r && { "Available Video Devices (by label)": await
|
|
2387
|
+
let r = Xr(t), o = yn(t), n = (a = r == null ? void 0 : r.getSettings) == null ? void 0 : a.call(r);
|
|
2388
|
+
return S(i({}, r && { "Available Video Devices (by label)": await qs(), "Active Video Device (by label)": await $s(t), "Camera Capabilities": o, "Camera Settings": n }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
2389
2389
|
};
|
|
2390
2390
|
var te = require("react/jsx-runtime");
|
|
2391
|
-
var
|
|
2392
|
-
let [
|
|
2391
|
+
var _d = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: n = "", instructions: a = "", showReview: s = false, onCapture: c, onEvent: p }) => {
|
|
2392
|
+
let [d, m] = (0, Se.useState)("CAPTURE"), [h, f] = (0, Se.useState)(false), [l, u] = (0, Se.useState)(false), [y, g] = (0, Se.useState)(), b = (0, Se.useRef)(null), { videoConstraints: x } = Gs(e), C = (0, rl.useIntl)(), v = (0, Se.useCallback)(async () => {
|
|
2393
2393
|
var O, j, k, z, Fe, ne;
|
|
2394
2394
|
if ((O = b == null ? void 0 : b.current) != null && O.video && ((k = (j = b == null ? void 0 : b.current) == null ? void 0 : j.video) == null ? void 0 : k.readyState) >= 3) {
|
|
2395
2395
|
(Fe = (z = b == null ? void 0 : b.current) == null ? void 0 : z.video) == null || Fe.pause();
|
|
2396
|
-
let re = await
|
|
2396
|
+
let re = await zs((ne = b == null ? void 0 : b.current) == null ? void 0 : ne.video);
|
|
2397
2397
|
re == null || re.toBlob((me) => {
|
|
2398
2398
|
if (me)
|
|
2399
2399
|
if (s) {
|
|
2400
|
-
let
|
|
2401
|
-
g({ source:
|
|
2400
|
+
let dr = window.URL.createObjectURL(me);
|
|
2401
|
+
g({ source: dr, blob: me }), m("REVIEW");
|
|
2402
2402
|
} else
|
|
2403
2403
|
c(me);
|
|
2404
2404
|
}, "image/jpeg", 0.92);
|
|
2405
2405
|
}
|
|
2406
2406
|
}, [b, s, g, m, c, h]), P = (0, Se.useCallback)((O) => {
|
|
2407
2407
|
if (O instanceof DOMException && (O == null ? void 0 : O.name) === "NotAllowedError") {
|
|
2408
|
-
m("NO_CAMERA_ACCESS"),
|
|
2408
|
+
m("NO_CAMERA_ACCESS"), Zs(p);
|
|
2409
2409
|
return;
|
|
2410
2410
|
}
|
|
2411
|
-
m("CAMERA_NOT_SUPPORTED"),
|
|
2411
|
+
m("CAMERA_NOT_SUPPORTED"), tl(p, O);
|
|
2412
2412
|
}, [m, p]), w = (0, Se.useCallback)((O) => {
|
|
2413
|
-
|
|
2413
|
+
u(true), f(Vs(O)), el(p, { direction: e }, O);
|
|
2414
2414
|
}, [f, p, e]), I = () => {
|
|
2415
2415
|
c((y == null ? void 0 : y.blob) || null);
|
|
2416
2416
|
}, N = () => {
|
|
2417
2417
|
m("CAPTURE"), g(void 0);
|
|
2418
|
-
}, A = () => m("CAPTURE"), L = (0, te.jsxs)(te.Fragment, { children: [x && (0, te.jsx)(
|
|
2419
|
-
return (0, te.jsxs)("section", { className: "camera-capture", children: [
|
|
2418
|
+
}, A = () => m("CAPTURE"), L = (0, te.jsxs)(te.Fragment, { children: [x && (0, te.jsx)(ol.default, { ref: b, audio: false, videoConstraints: x, mirrored: h, onUserMediaError: P, onUserMedia: w }), (0, te.jsx)(hn, { overlay: t, outline: r, imageUrl: o, title: n, instructions: a }), l && (0, te.jsx)(Bs, { onCapture: () => void v() })] }), $ = (0, te.jsxs)(te.Fragment, { children: [(0, te.jsx)("img", { className: "review-image", src: y == null ? void 0 : y.source, alt: "" }), (0, te.jsx)(hn, { overlay: t, imageUrl: o, title: n, instructions: a, reviewInstructions: C.formatMessage(lr.reviewInstructions) }), (0, te.jsx)(js, { onSubmit: I, onRetry: N })] });
|
|
2419
|
+
return (0, te.jsxs)("section", { className: "camera-capture", children: [d === "CAPTURE" && L, d === "REVIEW" && $, d === "NO_CAMERA_ACCESS" && (0, te.jsx)(gn, { onAction: A }), d === "CAMERA_NOT_SUPPORTED" && (0, te.jsx)(Sn, {})] });
|
|
2420
2420
|
};
|
|
2421
|
-
var
|
|
2422
|
-
var
|
|
2423
|
-
function
|
|
2421
|
+
var wn = _d;
|
|
2422
|
+
var al = require("react/jsx-runtime");
|
|
2423
|
+
function Kd(e) {
|
|
2424
2424
|
return new Promise((t, r) => {
|
|
2425
2425
|
let o = new FileReader();
|
|
2426
2426
|
o.onloadend = () => t(o.result), o.readAsDataURL(e);
|
|
2427
2427
|
});
|
|
2428
2428
|
}
|
|
2429
|
-
var
|
|
2430
|
-
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = Z(), s =
|
|
2431
|
-
(0,
|
|
2429
|
+
var Jd = (e) => {
|
|
2430
|
+
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = Z(), s = nl(t), c = Xd(t), p = Yd(t), { title: d, image: m, cameraConfig: h } = c, { assets: f, direction: l, instructions: u } = h || {}, { overlay: y, outline: g } = f || {}, { url: b } = m || {}, [x, C] = (0, eo.useState)(false);
|
|
2431
|
+
(0, eo.useEffect)(() => {
|
|
2432
2432
|
x && n(p);
|
|
2433
2433
|
}, [r]);
|
|
2434
2434
|
let v = async (P) => {
|
|
2435
2435
|
let { $id: w } = c;
|
|
2436
2436
|
if (P) {
|
|
2437
|
-
let I = await
|
|
2437
|
+
let I = await Kd(P), N = { [w || ""]: I };
|
|
2438
2438
|
C(true), o({ model: N, formSchema: s, triggerModel: I, triggerSchema: c });
|
|
2439
2439
|
}
|
|
2440
2440
|
};
|
|
2441
|
-
return (0,
|
|
2441
|
+
return (0, al.jsx)(wn, { overlay: y, outline: g, title: d, imageUrl: b, instructions: u, direction: l, onEvent: a, onCapture: (P) => {
|
|
2442
2442
|
v(P);
|
|
2443
2443
|
} });
|
|
2444
2444
|
};
|
|
2445
|
-
var
|
|
2446
|
-
function
|
|
2447
|
-
let r =
|
|
2445
|
+
var to = Jd;
|
|
2446
|
+
function nl(e) {
|
|
2447
|
+
let r = Mr(e.schemas || [])[0];
|
|
2448
2448
|
if (!r || !xe(r))
|
|
2449
2449
|
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...");
|
|
2450
2450
|
return r;
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2453
|
-
let t =
|
|
2452
|
+
function Xd(e) {
|
|
2453
|
+
let t = nl(e), r = Object.values(t.properties)[0];
|
|
2454
2454
|
if (!r)
|
|
2455
2455
|
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...");
|
|
2456
2456
|
return r;
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function Yd(e) {
|
|
2459
2459
|
var t, r;
|
|
2460
|
-
if (!e.schemas || ((t =
|
|
2460
|
+
if (!e.schemas || ((t = Mr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2461
2461
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
2462
2462
|
if (((r = e == null ? void 0 : e.actions) == null ? void 0 : r.length) !== 1)
|
|
2463
2463
|
throw new Error("camera step expects 1 action");
|
|
2464
2464
|
return e.actions[0];
|
|
2465
2465
|
}
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2468
|
-
var
|
|
2469
|
-
var
|
|
2470
|
-
var
|
|
2466
|
+
var ll = require("react-intl");
|
|
2467
|
+
var il = require("react-intl");
|
|
2468
|
+
var cr = (0, il.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." } });
|
|
2469
|
+
var cl = require("react/jsx-runtime");
|
|
2470
|
+
var sl = () => {
|
|
2471
2471
|
};
|
|
2472
|
-
var
|
|
2473
|
-
let { formatMessage: r } = (0,
|
|
2474
|
-
return (0,
|
|
2472
|
+
var Qd = ({ url: e, onClose: t }) => {
|
|
2473
|
+
let { formatMessage: r } = (0, ll.useIntl)();
|
|
2474
|
+
return (0, cl.jsx)(se, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(cr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(cr.description, { origin: Zd(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(cr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(cr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (o) => {
|
|
2475
2475
|
o.url && window.open(o.url, "_blank"), t();
|
|
2476
|
-
}, onModelChange:
|
|
2476
|
+
}, onModelChange: sl, onPersistAsync: sl });
|
|
2477
2477
|
};
|
|
2478
|
-
var
|
|
2479
|
-
function
|
|
2478
|
+
var ro = Qd;
|
|
2479
|
+
function Zd(e) {
|
|
2480
2480
|
try {
|
|
2481
2481
|
return new URL(e).origin;
|
|
2482
2482
|
} catch (t) {
|
|
2483
2483
|
return e;
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
|
-
var
|
|
2487
|
-
var
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
};
|
|
2492
|
-
var
|
|
2493
|
-
var
|
|
2494
|
-
|
|
2495
|
-
|
|
2486
|
+
var ml = require("@transferwise/components");
|
|
2487
|
+
var dl = require("@transferwise/icons");
|
|
2488
|
+
var Nt = require("react/jsx-runtime");
|
|
2489
|
+
var eu = ({ title: e, action: t, onAction: r }) => (0, Nt.jsxs)("a", { onClick: (o) => {
|
|
2490
|
+
o.preventDefault(), r(S(i({}, t), { skipValidation: true }));
|
|
2491
|
+
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, Nt.jsx)("span", { className: "sr-only", children: e }), (0, Nt.jsx)(ml.Avatar, { type: "icon", children: (0, Nt.jsx)(dl.ArrowLeft, { size: "24" }) })] });
|
|
2492
|
+
var ul = eu;
|
|
2493
|
+
var Me = require("react/jsx-runtime");
|
|
2494
|
+
var pl = (e) => {
|
|
2495
|
+
var p, d;
|
|
2496
|
+
let { step: t, globalError: r, onAction: o } = e, n = (p = t == null ? void 0 : t.external) == null ? void 0 : p.url, a = (d = t == null ? void 0 : t.navigation) == null ? void 0 : d.backButton, { requiresManualTrigger: s, dismissConfirmation: c } = xa(n);
|
|
2497
|
+
return t === void 0 ? null : n && s ? (0, Me.jsx)(ro, { url: n, onClose: c }) : ba(t) ? (0, Me.jsx)(to, S(i({}, e), { step: t })) : (0, Me.jsxs)(Me.Fragment, { children: [a && (0, Me.jsx)(ul, S(i({}, a), { onAction: o })), r ? (0, Me.jsx)(ie, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, Me.jsx)(Jr, S(i({}, e), { stepSpecification: t }))] });
|
|
2498
|
+
};
|
|
2499
|
+
var fl = require("react");
|
|
2500
|
+
var tu = 1e3;
|
|
2501
|
+
function yl(e) {
|
|
2502
|
+
let t = (0, fl.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
|
|
2496
2503
|
if (t.current.has(o))
|
|
2497
2504
|
return t.current.get(o);
|
|
2498
|
-
let n =
|
|
2505
|
+
let n = Ge((a, s, c) => e(a, s, c), tu);
|
|
2499
2506
|
return t.current.set(o, n), n;
|
|
2500
2507
|
};
|
|
2501
2508
|
return function(o, n, a, s) {
|
|
2502
2509
|
let c = r(o);
|
|
2503
|
-
c(o, n, a), (!s || !
|
|
2510
|
+
c(o, n, a), (!s || !ru(s)) && c.flush();
|
|
2504
2511
|
};
|
|
2505
2512
|
}
|
|
2506
|
-
var
|
|
2507
|
-
var
|
|
2508
|
-
var
|
|
2509
|
-
var l,
|
|
2510
|
-
let [t, r] = (0,
|
|
2513
|
+
var ru = (e) => qt(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2514
|
+
var Tt = require("react");
|
|
2515
|
+
var gl = (e) => {
|
|
2516
|
+
var l, u;
|
|
2517
|
+
let [t, r] = (0, Tt.useState)((l = e == null ? void 0 : e.errors) == null ? void 0 : l.validation), [o, n] = (0, Tt.useState)((u = e == null ? void 0 : e.errors) == null ? void 0 : u.error), [a, s] = (0, Tt.useState)({ step: e || void 0, models: e != null && e.model ? hl(e.model, Fn(e)) : {}, etag: void 0 }), { step: c, models: p, etag: d } = a, m = (y, g) => {
|
|
2511
2518
|
var b, x, C, v;
|
|
2512
|
-
s((P) => ({ step: y, models: y.model ?
|
|
2519
|
+
s((P) => ({ step: y, models: y.model ? hl(y.model, Fn(y)) : P.models, etag: g })), r((x = (b = y == null ? void 0 : y.errors) == null ? void 0 : b.validation) != null ? x : null), n((v = (C = y == null ? void 0 : y.errors) == null ? void 0 : C.error) != null ? v : null);
|
|
2513
2520
|
}, h = (y, g, b) => {
|
|
2514
2521
|
s((x) => {
|
|
2515
2522
|
let C = S(i({}, x.models), { [y]: g }), v = { step: x.step, models: C, etag: x.etag };
|
|
2516
2523
|
return b(C), v;
|
|
2517
2524
|
});
|
|
2518
|
-
}, f = (0,
|
|
2519
|
-
return { formErrors: t, globalError: o, step: c, models: p, etag:
|
|
2525
|
+
}, f = (0, Tt.useMemo)(() => ou(p, Fn(c)), [p, c]);
|
|
2526
|
+
return { formErrors: t, globalError: o, step: c, models: p, etag: d, modelIsValid: f, setFormErrors: r, setGlobalError: n, setStepAndEtag: m, setSchemaModel: h };
|
|
2520
2527
|
};
|
|
2521
|
-
var
|
|
2522
|
-
var
|
|
2523
|
-
var
|
|
2528
|
+
var hl = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), S(i({}, r), { [o.$id || ""]: ae(e, o) || {} })), {});
|
|
2529
|
+
var Fn = (e) => [...Cn((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
|
|
2530
|
+
var Cn = (e) => e.flatMap((t) => {
|
|
2524
2531
|
switch (t.type) {
|
|
2525
2532
|
case "columns":
|
|
2526
|
-
return [...
|
|
2533
|
+
return [...Cn([...t.left, ...t.right])];
|
|
2527
2534
|
case "box":
|
|
2528
|
-
return
|
|
2535
|
+
return Cn(t.components);
|
|
2529
2536
|
case "form":
|
|
2530
|
-
return
|
|
2537
|
+
return nu(t.schema) ? [t.schema] : [];
|
|
2531
2538
|
default:
|
|
2532
2539
|
return [];
|
|
2533
2540
|
}
|
|
2534
2541
|
});
|
|
2535
|
-
var
|
|
2536
|
-
var
|
|
2537
|
-
var
|
|
2538
|
-
var
|
|
2539
|
-
var
|
|
2540
|
-
function
|
|
2541
|
-
let r = i({ size:
|
|
2542
|
+
var ou = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !G(e[r.$id || ""] || {}, r))));
|
|
2543
|
+
var nu = (e) => e !== void 0 && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "$ref") === false;
|
|
2544
|
+
var oo = require("@transferwise/components");
|
|
2545
|
+
var bl = require("react");
|
|
2546
|
+
var wl = require("react/jsx-runtime");
|
|
2547
|
+
function Sl(e, t) {
|
|
2548
|
+
let r = i({ size: oo.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, n] = (0, bl.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0, wl.jsx)(oo.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
|
|
2542
2549
|
return { isLoading: o !== "idle", setLoadingState: n, loader: s };
|
|
2543
2550
|
}
|
|
2544
|
-
var
|
|
2545
|
-
var
|
|
2546
|
-
var
|
|
2547
|
-
var
|
|
2548
|
-
var
|
|
2549
|
-
let { formatMessage: t } = (0,
|
|
2550
|
-
return (0,
|
|
2551
|
+
var Ol = require("react");
|
|
2552
|
+
var no = require("@transferwise/components");
|
|
2553
|
+
var Fl = require("react-intl");
|
|
2554
|
+
var xl = require("react/jsx-runtime");
|
|
2555
|
+
var Cl = ({ onDismiss: e }) => {
|
|
2556
|
+
let { formatMessage: t } = (0, Fl.useIntl)();
|
|
2557
|
+
return (0, xl.jsx)(no.Alert, { action: { text: t(It.retry), href: window.location.href }, message: t(It.errorAlert), type: no.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2551
2558
|
};
|
|
2552
|
-
var
|
|
2553
|
-
var
|
|
2559
|
+
var Rt = require("react/jsx-runtime");
|
|
2560
|
+
var au = () => {
|
|
2554
2561
|
};
|
|
2555
|
-
var
|
|
2562
|
+
var xn = class extends Ol.Component {
|
|
2556
2563
|
constructor(r) {
|
|
2557
2564
|
super(r);
|
|
2558
2565
|
this.handleErrorReset = () => {
|
|
@@ -2564,36 +2571,36 @@ var require_main_min = __commonJS({
|
|
|
2564
2571
|
return { hasError: true, isFatalError: true };
|
|
2565
2572
|
}
|
|
2566
2573
|
componentDidCatch(r) {
|
|
2567
|
-
let { onError: o =
|
|
2574
|
+
let { onError: o = au } = this.props;
|
|
2568
2575
|
o(r);
|
|
2569
2576
|
}
|
|
2570
2577
|
render() {
|
|
2571
2578
|
let { children: r } = this.props, { hasError: o, isFatalError: n } = this.state;
|
|
2572
|
-
return (0,
|
|
2579
|
+
return (0, Rt.jsxs)(Rt.Fragment, { children: [o && (0, Rt.jsx)(Cl, { onDismiss: this.handleErrorReset }), !n && r] });
|
|
2573
2580
|
}
|
|
2574
2581
|
};
|
|
2575
|
-
var
|
|
2576
|
-
var
|
|
2582
|
+
var On = xn;
|
|
2583
|
+
var iu = async (e) => {
|
|
2577
2584
|
switch (e.headers.get("X-Df-ResponseType")) {
|
|
2578
2585
|
case "step":
|
|
2579
|
-
return
|
|
2586
|
+
return vl(e);
|
|
2580
2587
|
case "exit":
|
|
2581
|
-
return
|
|
2588
|
+
return Al(e);
|
|
2582
2589
|
case "action":
|
|
2583
|
-
return
|
|
2590
|
+
return Pl(e);
|
|
2584
2591
|
default:
|
|
2585
2592
|
throw new Error("Unsupported X-Df-ResponseType. Allowed values are 'step', 'action', 'exit'.");
|
|
2586
2593
|
}
|
|
2587
2594
|
};
|
|
2588
|
-
var
|
|
2589
|
-
let t = await
|
|
2595
|
+
var vl = async (e) => {
|
|
2596
|
+
let t = await mr(e);
|
|
2590
2597
|
if (!T(t))
|
|
2591
2598
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2592
2599
|
let r = e.headers.get("etag") || void 0;
|
|
2593
2600
|
return { type: "step", step: t, etag: r };
|
|
2594
2601
|
};
|
|
2595
|
-
var
|
|
2596
|
-
let t = await
|
|
2602
|
+
var Pl = async (e) => {
|
|
2603
|
+
let t = await mr(e);
|
|
2597
2604
|
if (!T(t))
|
|
2598
2605
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2599
2606
|
if (!T(t.action))
|
|
@@ -2601,69 +2608,69 @@ var require_main_min = __commonJS({
|
|
|
2601
2608
|
let r = t.action;
|
|
2602
2609
|
return r.exit === true && T(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
|
|
2603
2610
|
};
|
|
2604
|
-
var
|
|
2605
|
-
var
|
|
2611
|
+
var Al = async (e) => ({ type: "exit", result: await vn(e) });
|
|
2612
|
+
var Ml = async (e) => {
|
|
2606
2613
|
var r, o;
|
|
2607
|
-
if (
|
|
2608
|
-
return
|
|
2614
|
+
if (Pn(e), (r = e.headers) != null && r.has("X-Df-ResponseType"))
|
|
2615
|
+
return iu(e);
|
|
2609
2616
|
if ((o = e.headers) != null && o.has("X-Df-Exit"))
|
|
2610
|
-
return
|
|
2611
|
-
let t = await
|
|
2612
|
-
return T(t) && t.action ?
|
|
2617
|
+
return Al(e);
|
|
2618
|
+
let t = await mr(e.clone());
|
|
2619
|
+
return T(t) && t.action ? Pl(e) : vl(e);
|
|
2613
2620
|
};
|
|
2614
|
-
var
|
|
2615
|
-
|
|
2616
|
-
let t = await
|
|
2621
|
+
var kl = async (e) => {
|
|
2622
|
+
Pn(e);
|
|
2623
|
+
let t = await mr(e);
|
|
2617
2624
|
if (!T(t))
|
|
2618
2625
|
throw new Error("Incorrect response body in error response. Expected an object.");
|
|
2619
2626
|
if (!t.refreshFormUrl && !t.refreshUrl && !t.validation && !t.error)
|
|
2620
2627
|
throw t;
|
|
2621
2628
|
return t;
|
|
2622
2629
|
};
|
|
2623
|
-
var
|
|
2624
|
-
|
|
2625
|
-
let t = await
|
|
2630
|
+
var vn = async (e) => {
|
|
2631
|
+
Pn(e);
|
|
2632
|
+
let t = await mr(e);
|
|
2626
2633
|
return T(t) ? t : null;
|
|
2627
2634
|
};
|
|
2628
|
-
var
|
|
2635
|
+
var mr = async (e) => {
|
|
2629
2636
|
try {
|
|
2630
2637
|
return await e.json();
|
|
2631
2638
|
} catch (t) {
|
|
2632
2639
|
return null;
|
|
2633
2640
|
}
|
|
2634
2641
|
};
|
|
2635
|
-
var
|
|
2636
|
-
if (!
|
|
2642
|
+
var Pn = (e) => {
|
|
2643
|
+
if (!su(e))
|
|
2637
2644
|
throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
|
|
2638
2645
|
if (e.bodyUsed)
|
|
2639
2646
|
throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
|
|
2640
2647
|
};
|
|
2641
|
-
var
|
|
2642
|
-
var
|
|
2643
|
-
var
|
|
2648
|
+
var su = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2649
|
+
var Ze = require("react/jsx-runtime");
|
|
2650
|
+
var El = () => {
|
|
2644
2651
|
};
|
|
2645
|
-
var
|
|
2646
|
-
let { locale: m } = (0,
|
|
2652
|
+
var lu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: n, displayStepTitle: a = true, onCompletion: s, onError: c, onEvent: p = El, onLog: d = El }) => {
|
|
2653
|
+
let { locale: m } = (0, Dl.useIntl)(), { formErrors: h, globalError: f, step: l, models: u, etag: y, modelIsValid: g, setFormErrors: b, setGlobalError: x, setStepAndEtag: C, setSchemaModel: v } = gl(o), [P, w] = (0, we.useState)(false), { isLoading: I, loader: N, setLoadingState: A } = Sl(n, o ? "idle" : "initial"), L = tt("critical", d, e, (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key)), $ = (0, we.useMemo)(() => {
|
|
2647
2654
|
var F;
|
|
2648
2655
|
return i({ flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key) }, (F = l == null ? void 0 : l.analytics) != null ? F : {});
|
|
2649
|
-
}, [e, l]), O = (0, we.useMemo)(() =>
|
|
2650
|
-
let { url: Q, method:
|
|
2651
|
-
return t(Q != null ? Q : "", { method:
|
|
2656
|
+
}, [e, l]), O = (0, we.useMemo)(() => mo(p, $), [p, $]), j = (0, we.useCallback)(({ action: F, data: V, etag: E }) => {
|
|
2657
|
+
let { url: Q, method: Ue = "POST" } = F;
|
|
2658
|
+
return t(Q != null ? Q : "", { method: Ue, headers: i({ "accept-language": m, "Content-Type": "application/json" }, E ? { "If-None-Match": E } : {}), credentials: "include", body: Ue === "GET" ? void 0 : JSON.stringify(V) });
|
|
2652
2659
|
}, [t, m]), k = async (F, V = {}) => {
|
|
2653
2660
|
A(l ? "submission" : "initial"), O("Dynamic Flow - Step Submitted", { actionId: F.id || F.$id });
|
|
2654
2661
|
try {
|
|
2655
2662
|
let E = await j({ action: F, data: V });
|
|
2656
|
-
await
|
|
2663
|
+
await dr(E, "submission");
|
|
2657
2664
|
} catch (E) {
|
|
2658
|
-
|
|
2665
|
+
ur(E, "Error fetching next step");
|
|
2659
2666
|
}
|
|
2660
2667
|
}, z = async (F, V, E) => {
|
|
2661
2668
|
A("refresh"), O("Dynamic Flow - Step Refreshed", { status: "pending" });
|
|
2662
2669
|
try {
|
|
2663
2670
|
let Q = await j({ action: { url: F, method: "POST" }, data: V, etag: E });
|
|
2664
|
-
await
|
|
2671
|
+
await dr(Q, "refresh");
|
|
2665
2672
|
} catch (Q) {
|
|
2666
|
-
|
|
2673
|
+
ur(Q, "Error fetching refresh step");
|
|
2667
2674
|
}
|
|
2668
2675
|
}, Fe = async (F, V) => {
|
|
2669
2676
|
A("submission");
|
|
@@ -2671,12 +2678,12 @@ var require_main_min = __commonJS({
|
|
|
2671
2678
|
let E = await j({ action: F, data: V });
|
|
2672
2679
|
await ne(E, F.result);
|
|
2673
2680
|
} catch (E) {
|
|
2674
|
-
|
|
2681
|
+
ur(E, "Error fetching exit result");
|
|
2675
2682
|
}
|
|
2676
2683
|
}, ne = async (F, V) => {
|
|
2677
|
-
let E = await
|
|
2684
|
+
let E = await vn(F);
|
|
2678
2685
|
me(i(i({}, E), V));
|
|
2679
|
-
}, re =
|
|
2686
|
+
}, re = yl(z), me = (0, we.useCallback)((F) => {
|
|
2680
2687
|
O("Dynamic Flow - Flow Finished", { result: "success" }), s(F);
|
|
2681
2688
|
}, [s, O]);
|
|
2682
2689
|
(0, we.useEffect)(() => {
|
|
@@ -2687,78 +2694,78 @@ var require_main_min = __commonJS({
|
|
|
2687
2694
|
k(F, F.data);
|
|
2688
2695
|
}
|
|
2689
2696
|
}, [t, m, JSON.stringify(o), JSON.stringify(r)]);
|
|
2690
|
-
let
|
|
2697
|
+
let dr = async (F, V) => {
|
|
2691
2698
|
try {
|
|
2692
2699
|
if (F.status === 304) {
|
|
2693
2700
|
A("idle");
|
|
2694
2701
|
return;
|
|
2695
2702
|
}
|
|
2696
2703
|
if (!F.ok) {
|
|
2697
|
-
let Q = await
|
|
2698
|
-
|
|
2704
|
+
let Q = await kl(F);
|
|
2705
|
+
Kl(Q);
|
|
2699
2706
|
return;
|
|
2700
2707
|
}
|
|
2701
|
-
let E = await
|
|
2702
|
-
E.type === "action" ? k(E.action, E.action.data) : E.type === "exit" ? me(E.result) :
|
|
2708
|
+
let E = await Ml(F);
|
|
2709
|
+
E.type === "action" ? k(E.action, E.action.data) : E.type === "exit" ? me(E.result) : _l(E.step, E.etag, V);
|
|
2703
2710
|
} catch (E) {
|
|
2704
|
-
return
|
|
2711
|
+
return ur(E, "Error parsing fetch response", V, F.status);
|
|
2705
2712
|
}
|
|
2706
|
-
},
|
|
2713
|
+
}, _l = (F, V, E) => {
|
|
2707
2714
|
C(F, V), A("idle"), E === "submission" ? (w(false), O("Dynamic Flow - Step Started", i({ stepId: F.id || F.key }, F == null ? void 0 : F.analytics))) : O("Dynamic Flow - Step Refreshed", { status: "success" });
|
|
2708
|
-
},
|
|
2715
|
+
}, Kl = async (F) => {
|
|
2709
2716
|
let V = F.refreshUrl || F.refreshFormUrl;
|
|
2710
|
-
V && await z(V,
|
|
2711
|
-
},
|
|
2717
|
+
V && await z(V, ao(u), y), F.validation && b(F.validation), F.error && x(F.error), A("idle");
|
|
2718
|
+
}, ur = (F, V, E, Q) => {
|
|
2712
2719
|
L("Error fetching", V), E === "refresh" && O("Dynamic Flow - Step Refreshed", { status: "failure" }), O("Dynamic Flow - Flow Finished", { status: "failure" }), c(F, Q), A("idle");
|
|
2713
|
-
},
|
|
2720
|
+
}, Jl = (F) => {
|
|
2714
2721
|
let { model: V, formSchema: E } = F, { $id: Q = "" } = E;
|
|
2715
|
-
x(null), Y(V) || L("Invalid model on change", "onModelChange was called but the model argument is not an object"), v(Q, V, (
|
|
2716
|
-
|
|
2722
|
+
x(null), Y(V) || L("Invalid model on change", "onModelChange was called but the model argument is not an object"), v(Q, V, (ut) => {
|
|
2723
|
+
Xl(F, ut);
|
|
2717
2724
|
});
|
|
2718
|
-
},
|
|
2725
|
+
}, Xl = (F, V) => {
|
|
2719
2726
|
let { triggerSchema: E } = F;
|
|
2720
|
-
if (
|
|
2721
|
-
let Q = E.refreshUrl || E.refreshFormUrl,
|
|
2722
|
-
|
|
2727
|
+
if (du(F)) {
|
|
2728
|
+
let Q = E.refreshUrl || E.refreshFormUrl, Ue = (l == null ? void 0 : l.refreshUrl) || (l == null ? void 0 : l.refreshFormUrl), ut = Q || Ue;
|
|
2729
|
+
ut && re(ut, ao(V), y, E);
|
|
2723
2730
|
}
|
|
2724
|
-
},
|
|
2731
|
+
}, Yl = async (F) => {
|
|
2725
2732
|
if (I || F.disabled)
|
|
2726
2733
|
return;
|
|
2727
2734
|
if (F.exit && !F.url) {
|
|
2728
2735
|
me(F.result);
|
|
2729
2736
|
return;
|
|
2730
2737
|
}
|
|
2731
|
-
let V = F.exit ? Fe : k, { data: E, method: Q } = F,
|
|
2732
|
-
|
|
2738
|
+
let V = F.exit ? Fe : k, { data: E, method: Q, skipValidation: Ue } = F, ut = i(i({}, ao(u)), E);
|
|
2739
|
+
mu(Q) ? (b(null), Ue || w(true), (g || Ue) && await V(F, ut)) : await V(F);
|
|
2733
2740
|
};
|
|
2734
|
-
return (0,
|
|
2735
|
-
|
|
2736
|
-
}, onModelChange:
|
|
2737
|
-
};
|
|
2738
|
-
var
|
|
2739
|
-
var
|
|
2740
|
-
var
|
|
2741
|
-
var
|
|
2742
|
-
var
|
|
2741
|
+
return (0, Ze.jsx)(Or, { flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key), onLog: d, children: (0, Ze.jsx)(gr, { metadata: $, onEvent: p, children: (0, Ze.jsx)(Vn, { loading: I, children: (0, Ze.jsx)($n, { httpClient: t, children: N !== null ? N : (0, Ze.jsx)(pl, { step: l, model: ao(u), submitted: P, globalError: f, formErrors: h, stepLayoutOptions: { displayStepTitle: a }, onAction: (F) => {
|
|
2742
|
+
Yl(F);
|
|
2743
|
+
}, onModelChange: Jl }) }) }) }) });
|
|
2744
|
+
};
|
|
2745
|
+
var cu = (e) => (0, Ze.jsx)(On, { onError: e.onError, children: (0, Ze.jsx)(lu, i({}, e)) });
|
|
2746
|
+
var An = cu;
|
|
2747
|
+
var ao = (e) => Object.values(e).reduce((t, r) => i(i({}, t), r), {});
|
|
2748
|
+
var mu = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
2749
|
+
var du = (e) => {
|
|
2743
2750
|
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: n = null } = e, a = () => G(o, r), s = () => G(n, r), c = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
2744
2751
|
return t !== "init" && c && (a() || s());
|
|
2745
2752
|
};
|
|
2746
|
-
var
|
|
2747
|
-
var
|
|
2748
|
-
var
|
|
2749
|
-
var
|
|
2750
|
-
var
|
|
2751
|
-
var
|
|
2752
|
-
var
|
|
2753
|
-
var
|
|
2754
|
-
var
|
|
2755
|
-
var
|
|
2756
|
-
var
|
|
2757
|
-
var
|
|
2758
|
-
var
|
|
2759
|
-
var
|
|
2760
|
-
var
|
|
2761
|
-
var
|
|
2753
|
+
var Il = { "dynamicFlows.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.", "dynamicFlows.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.", "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" };
|
|
2754
|
+
var Ll = { "dynamicFlows.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.", "dynamicFlows.ArraySchema.minItemsError": "Please add at least {minItems}.", "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" };
|
|
2755
|
+
var Nl = { "dynamicFlows.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.", "dynamicFlows.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.", "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" };
|
|
2756
|
+
var Tl = { "dynamicFlows.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.", "dynamicFlows.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.", "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" };
|
|
2757
|
+
var Rl = { "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.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" };
|
|
2758
|
+
var Bl = { "dynamicFlows.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.", "dynamicFlows.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.", "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" };
|
|
2759
|
+
var jl = { "dynamicFlows.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.", "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" };
|
|
2760
|
+
var Vl = { "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.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" };
|
|
2761
|
+
var Ul = { "dynamicFlows.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.", "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" };
|
|
2762
|
+
var zl = { "dynamicFlows.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.", "dynamicFlows.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.", "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" };
|
|
2763
|
+
var Hl = { "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.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" };
|
|
2764
|
+
var ql = { "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.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" };
|
|
2765
|
+
var $l = { "dynamicFlows.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n", "dynamicFlows.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.", "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" };
|
|
2766
|
+
var Gl = { "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "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" };
|
|
2767
|
+
var Pu = { en: Ll, de: Il, es: Nl, fr: Tl, hu: Rl, id: Bl, it: jl, ja: Vl, pl: Ul, pt: zl, ro: Hl, ru: ql, tr: $l, zh: Gl };
|
|
2768
|
+
var Wl = Pu;
|
|
2762
2769
|
}
|
|
2763
2770
|
});
|
|
2764
2771
|
|