@wise/dynamic-flow-client-internal 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +1211 -1207
- 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 Fl = Object.create;
|
|
55
|
+
var Wt = Object.defineProperty;
|
|
56
|
+
var Cl = Object.defineProperties;
|
|
57
|
+
var xl = Object.getOwnPropertyDescriptor;
|
|
58
|
+
var Al = Object.getOwnPropertyDescriptors;
|
|
59
|
+
var vl = Object.getOwnPropertyNames;
|
|
60
|
+
var Va = Object.getOwnPropertySymbols;
|
|
61
|
+
var Ol = Object.getPrototypeOf;
|
|
62
|
+
var za = Object.prototype.hasOwnProperty;
|
|
63
|
+
var Pl = Object.prototype.propertyIsEnumerable;
|
|
64
|
+
var Ua = (e, t, r) => t in e ? Wt(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
|
+
za.call(t, r) && Ua(e, r, t[r]);
|
|
68
|
+
if (Va)
|
|
69
|
+
for (var r of Va(t))
|
|
70
|
+
Pl.call(t, r) && Ua(e, r, t[r]);
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
|
-
var b = (e, t) =>
|
|
74
|
-
var
|
|
75
|
-
var
|
|
73
|
+
var b = (e, t) => Cl(e, Al(t));
|
|
74
|
+
var Ha = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
75
|
+
var Ml = (e, t) => {
|
|
76
76
|
for (var r in t)
|
|
77
|
-
|
|
77
|
+
Wt(e, r, { get: t[r], enumerable: true });
|
|
78
78
|
};
|
|
79
|
-
var
|
|
79
|
+
var qa = (e, t, r, o) => {
|
|
80
80
|
if (t && typeof t == "object" || typeof t == "function")
|
|
81
|
-
for (let a of
|
|
82
|
-
!
|
|
81
|
+
for (let a of vl(t))
|
|
82
|
+
!za.call(e, a) && a !== r && Wt(e, a, { get: () => t[a], enumerable: !(o = xl(t, a)) || o.enumerable });
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
var qe = (e, t, r) => (r = e != null ?
|
|
86
|
-
var
|
|
87
|
-
var st =
|
|
85
|
+
var qe = (e, t, r) => (r = e != null ? Fl(Ol(e)) : {}, qa(t || !e || !e.__esModule ? Wt(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
|
+
var kl = (e) => qa(Wt({}, "__esModule", { value: true }), e);
|
|
87
|
+
var st = Ha((Rf, Rr) => {
|
|
88
88
|
(function() {
|
|
89
89
|
"use strict";
|
|
90
90
|
var e = {}.hasOwnProperty, t = "[native code]";
|
|
@@ -117,9 +117,9 @@ var require_main_min = __commonJS({
|
|
|
117
117
|
}) : window.classNames = r;
|
|
118
118
|
})();
|
|
119
119
|
});
|
|
120
|
-
var em =
|
|
120
|
+
var em = Ha((ur, va) => {
|
|
121
121
|
(function(t, r) {
|
|
122
|
-
typeof ur == "object" && typeof
|
|
122
|
+
typeof ur == "object" && typeof va == "object" ? va.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof ur == "object" ? ur.Webcam = r(require("react")) : t.Webcam = r(t.React);
|
|
123
123
|
})(ur, function(e) {
|
|
124
124
|
return function(t) {
|
|
125
125
|
var r = {};
|
|
@@ -157,37 +157,37 @@ var require_main_min = __commonJS({
|
|
|
157
157
|
"use strict";
|
|
158
158
|
o.r(r);
|
|
159
159
|
var a = o("react"), n = o.n(a), s = function() {
|
|
160
|
-
var
|
|
161
|
-
return
|
|
160
|
+
var h = function(f, m) {
|
|
161
|
+
return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, y) {
|
|
162
162
|
p.__proto__ = y;
|
|
163
163
|
} || function(p, y) {
|
|
164
164
|
for (var S in y)
|
|
165
165
|
y.hasOwnProperty(S) && (p[S] = y[S]);
|
|
166
|
-
},
|
|
166
|
+
}, h(f, m);
|
|
167
167
|
};
|
|
168
168
|
return function(f, m) {
|
|
169
|
-
|
|
169
|
+
h(f, m);
|
|
170
170
|
function p() {
|
|
171
171
|
this.constructor = f;
|
|
172
172
|
}
|
|
173
173
|
f.prototype = m === null ? Object.create(m) : (p.prototype = m.prototype, new p());
|
|
174
174
|
};
|
|
175
175
|
}(), l = function() {
|
|
176
|
-
return l = Object.assign || function(
|
|
176
|
+
return l = Object.assign || function(h) {
|
|
177
177
|
for (var f, m = 1, p = arguments.length; m < p; m++) {
|
|
178
178
|
f = arguments[m];
|
|
179
179
|
for (var y in f)
|
|
180
|
-
Object.prototype.hasOwnProperty.call(f, y) && (
|
|
180
|
+
Object.prototype.hasOwnProperty.call(f, y) && (h[y] = f[y]);
|
|
181
181
|
}
|
|
182
|
-
return
|
|
182
|
+
return h;
|
|
183
183
|
}, l.apply(this, arguments);
|
|
184
|
-
}, u = function(
|
|
184
|
+
}, u = function(h, f) {
|
|
185
185
|
var m = {};
|
|
186
|
-
for (var p in
|
|
187
|
-
Object.prototype.hasOwnProperty.call(
|
|
188
|
-
if (
|
|
189
|
-
for (var y = 0, p = Object.getOwnPropertySymbols(
|
|
190
|
-
f.indexOf(p[y]) < 0 && Object.prototype.propertyIsEnumerable.call(
|
|
186
|
+
for (var p in h)
|
|
187
|
+
Object.prototype.hasOwnProperty.call(h, p) && f.indexOf(p) < 0 && (m[p] = h[p]);
|
|
188
|
+
if (h != null && typeof Object.getOwnPropertySymbols == "function")
|
|
189
|
+
for (var y = 0, p = Object.getOwnPropertySymbols(h); y < p.length; y++)
|
|
190
|
+
f.indexOf(p[y]) < 0 && Object.prototype.propertyIsEnumerable.call(h, p[y]) && (m[p[y]] = h[p[y]]);
|
|
191
191
|
return m;
|
|
192
192
|
};
|
|
193
193
|
(function() {
|
|
@@ -198,30 +198,30 @@ var require_main_min = __commonJS({
|
|
|
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
|
-
var
|
|
205
|
-
s(f,
|
|
204
|
+
var c = function(h) {
|
|
205
|
+
s(f, h);
|
|
206
206
|
function f(m) {
|
|
207
|
-
var p =
|
|
207
|
+
var p = h.call(this, m) || this;
|
|
208
208
|
return p.canvas = null, p.ctx = null, p.requestUserMediaId = 0, p.unmounted = false, p.state = { hasUserMedia: false }, p;
|
|
209
209
|
}
|
|
210
210
|
return f.prototype.componentDidMount = function() {
|
|
211
211
|
var m = this, p = m.state, y = m.props;
|
|
212
|
-
if (this.unmounted = false, !
|
|
212
|
+
if (this.unmounted = false, !d()) {
|
|
213
213
|
y.onUserMediaError("getUserMedia not supported");
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
216
|
p.hasUserMedia || this.requestUserMedia(), y.children && typeof y.children != "function" && console.warn("children must be a function");
|
|
217
217
|
}, f.prototype.componentDidUpdate = function(m) {
|
|
218
218
|
var p = this.props;
|
|
219
|
-
if (!
|
|
219
|
+
if (!d()) {
|
|
220
220
|
p.onUserMediaError("getUserMedia not supported");
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
var y = JSON.stringify(m.audioConstraints) !== JSON.stringify(p.audioConstraints), S = JSON.stringify(m.videoConstraints) !== JSON.stringify(p.videoConstraints),
|
|
224
|
-
(S ||
|
|
223
|
+
var y = JSON.stringify(m.audioConstraints) !== JSON.stringify(p.audioConstraints), S = JSON.stringify(m.videoConstraints) !== JSON.stringify(p.videoConstraints), g = m.minScreenshotWidth !== p.minScreenshotWidth, w = m.minScreenshotHeight !== p.minScreenshotHeight;
|
|
224
|
+
(S || g || w) && (this.canvas = null, this.ctx = null), (y || S) && (this.stopAndCleanup(), this.requestUserMedia());
|
|
225
225
|
}, f.prototype.componentWillUnmount = function() {
|
|
226
226
|
this.unmounted = true, this.stopAndCleanup();
|
|
227
227
|
}, f.stopMediaStream = function(m) {
|
|
@@ -237,51 +237,51 @@ var require_main_min = __commonJS({
|
|
|
237
237
|
var p = this, y = p.state, S = p.props;
|
|
238
238
|
if (!y.hasUserMedia)
|
|
239
239
|
return null;
|
|
240
|
-
var
|
|
241
|
-
return
|
|
240
|
+
var g = this.getCanvas(m);
|
|
241
|
+
return g && g.toDataURL(S.screenshotFormat, S.screenshotQuality);
|
|
242
242
|
}, f.prototype.getCanvas = function(m) {
|
|
243
243
|
var p = this, y = p.state, S = p.props;
|
|
244
244
|
if (!this.video || !y.hasUserMedia || !this.video.videoHeight)
|
|
245
245
|
return null;
|
|
246
246
|
if (!this.ctx) {
|
|
247
|
-
var
|
|
247
|
+
var g = this.video.videoWidth, w = this.video.videoHeight;
|
|
248
248
|
if (!this.props.forceScreenshotSourceSize) {
|
|
249
|
-
var
|
|
250
|
-
|
|
249
|
+
var F = g / w;
|
|
250
|
+
g = S.minScreenshotWidth || this.video.clientWidth, w = g / F, S.minScreenshotHeight && w < S.minScreenshotHeight && (w = S.minScreenshotHeight, g = w * F);
|
|
251
251
|
}
|
|
252
|
-
this.canvas = document.createElement("canvas"), this.canvas.width = m?.width ||
|
|
252
|
+
this.canvas = document.createElement("canvas"), this.canvas.width = m?.width || g, this.canvas.height = m?.height || w, this.ctx = this.canvas.getContext("2d");
|
|
253
253
|
}
|
|
254
|
-
var
|
|
255
|
-
return
|
|
254
|
+
var P = this, v = P.ctx, A = P.canvas;
|
|
255
|
+
return v && A && (S.mirrored && (v.translate(A.width, 0), v.scale(-1, 1)), v.imageSmoothingEnabled = S.imageSmoothing, v.drawImage(this.video, 0, 0, m?.width || A.width, m?.height || A.height), S.mirrored && (v.scale(-1, 1), v.translate(-A.width, 0))), A;
|
|
256
256
|
}, f.prototype.requestUserMedia = function() {
|
|
257
|
-
var m = this, p = this.props, y = function(
|
|
258
|
-
var
|
|
259
|
-
p.audio && (
|
|
260
|
-
var
|
|
261
|
-
navigator.mediaDevices.getUserMedia(
|
|
262
|
-
m.unmounted ||
|
|
263
|
-
}).catch(function(
|
|
264
|
-
m.handleUserMedia(
|
|
257
|
+
var m = this, p = this.props, y = function(w, F) {
|
|
258
|
+
var P = { video: typeof F < "u" ? F : true };
|
|
259
|
+
p.audio && (P.audio = typeof w < "u" ? w : true), m.requestUserMediaId++;
|
|
260
|
+
var v = m.requestUserMediaId;
|
|
261
|
+
navigator.mediaDevices.getUserMedia(P).then(function(A) {
|
|
262
|
+
m.unmounted || v !== m.requestUserMediaId ? f.stopMediaStream(A) : m.handleUserMedia(null, A);
|
|
263
|
+
}).catch(function(A) {
|
|
264
|
+
m.handleUserMedia(A);
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
if ("mediaDevices" in navigator)
|
|
268
268
|
y(p.audioConstraints, p.videoConstraints);
|
|
269
269
|
else {
|
|
270
|
-
var S = function(
|
|
271
|
-
return { optional: [{ sourceId:
|
|
272
|
-
},
|
|
273
|
-
var
|
|
274
|
-
return typeof
|
|
270
|
+
var S = function(w) {
|
|
271
|
+
return { optional: [{ sourceId: w }] };
|
|
272
|
+
}, g = function(w) {
|
|
273
|
+
var F = w.deviceId;
|
|
274
|
+
return typeof F == "string" ? F : Array.isArray(F) && F.length > 0 ? F[0] : typeof F == "object" && F.ideal ? F.ideal : null;
|
|
275
275
|
};
|
|
276
|
-
MediaStreamTrack.getSources(function(
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
|
|
276
|
+
MediaStreamTrack.getSources(function(w) {
|
|
277
|
+
var F = null, P = null;
|
|
278
|
+
w.forEach(function(E) {
|
|
279
|
+
E.kind === "audio" ? F = E.id : E.kind === "video" && (P = E.id);
|
|
280
280
|
});
|
|
281
|
-
var
|
|
282
|
-
|
|
283
|
-
var
|
|
284
|
-
|
|
281
|
+
var v = g(p.audioConstraints);
|
|
282
|
+
v && (F = v);
|
|
283
|
+
var A = g(p.videoConstraints);
|
|
284
|
+
A && (P = A), y(S(F), S(P));
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
}, f.prototype.handleUserMedia = function(m, p) {
|
|
@@ -298,64 +298,64 @@ var require_main_min = __commonJS({
|
|
|
298
298
|
}
|
|
299
299
|
y.onUserMedia(p);
|
|
300
300
|
}, f.prototype.render = function() {
|
|
301
|
-
var m = this, p = this, y = p.state, S = p.props,
|
|
302
|
-
return a.createElement(a.Fragment, null, a.createElement("video", l({ autoPlay: true, src: y.src, muted: !
|
|
301
|
+
var m = this, p = this, y = p.state, S = p.props, g = S.audio, w = S.forceScreenshotSourceSize, F = S.onUserMedia, P = S.onUserMediaError, v = S.screenshotFormat, A = S.screenshotQuality, E = S.minScreenshotWidth, R = S.minScreenshotHeight, x = S.audioConstraints, T = S.videoConstraints, H = S.imageSmoothing, L = S.mirrored, O = S.style, B = O === void 0 ? {} : O, M = S.children, ne = u(S, ["audio", "forceScreenshotSourceSize", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), Ae = L ? l(l({}, B), { transform: (B.transform || "") + " scaleX(-1)" }) : B, _ = { getScreenshot: this.getScreenshot.bind(this) };
|
|
302
|
+
return a.createElement(a.Fragment, null, a.createElement("video", l({ autoPlay: true, src: y.src, muted: !g, playsInline: true, ref: function(de) {
|
|
303
303
|
m.video = de;
|
|
304
|
-
}, style:
|
|
304
|
+
}, style: Ae }, ne)), M && M(_));
|
|
305
305
|
}, f.defaultProps = { audio: false, forceScreenshotSourceSize: false, imageSmoothing: true, mirrored: false, onUserMedia: function() {
|
|
306
306
|
}, onUserMediaError: function() {
|
|
307
307
|
}, screenshotFormat: "image/webp", screenshotQuality: 0.92 }, f;
|
|
308
308
|
}(a.Component);
|
|
309
|
-
r.default =
|
|
309
|
+
r.default = c;
|
|
310
310
|
}, react: function(t, r) {
|
|
311
311
|
t.exports = e;
|
|
312
312
|
} }).default;
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
315
|
var ip = {};
|
|
316
|
-
|
|
317
|
-
module2.exports =
|
|
318
|
-
function
|
|
316
|
+
Ml(ip, { DynamicFlow: () => Ba, JsonSchemaForm: () => sr, Layout: () => me, convertStepToLayout: () => Kt, inlineReferences: () => Ge, isValidSchema: () => W, makeHttpClient: () => vr, translations: () => yl });
|
|
317
|
+
module2.exports = kl(ip);
|
|
318
|
+
function Kt(e, { displayStepTitle: t = true } = {}) {
|
|
319
319
|
if (e.layout)
|
|
320
|
-
return
|
|
320
|
+
return ql(e, t);
|
|
321
321
|
switch (e.type) {
|
|
322
322
|
case "final":
|
|
323
|
-
return Dl(e);
|
|
324
|
-
case "decision":
|
|
325
323
|
return Ll(e);
|
|
324
|
+
case "decision":
|
|
325
|
+
return Tl(e);
|
|
326
326
|
case "external":
|
|
327
327
|
return El(e);
|
|
328
328
|
default:
|
|
329
|
-
return
|
|
329
|
+
return Dl(e);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function ho(e) {
|
|
333
333
|
let t = [];
|
|
334
334
|
if (e.title && t.push(So(e.title)), e.image) {
|
|
335
|
-
let r =
|
|
335
|
+
let r = Ga(e.image);
|
|
336
336
|
t.push(r);
|
|
337
337
|
}
|
|
338
338
|
return e.description && t.push(bo(e.description)), t;
|
|
339
339
|
}
|
|
340
340
|
function El(e) {
|
|
341
|
-
return [...ho(e),
|
|
341
|
+
return [...ho(e), Il(e)];
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Il(e) {
|
|
344
344
|
return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Dl(e) {
|
|
347
347
|
let t = ho(e);
|
|
348
|
-
if (e.reviewFields && t.push(
|
|
348
|
+
if (e.reviewFields && t.push(Vl(e.reviewFields)), e.schemas && t.push(...zl(e)), e.actions) {
|
|
349
349
|
let r = e.actions.map(Sr);
|
|
350
350
|
t.push(go(r, "md"));
|
|
351
351
|
}
|
|
352
352
|
return t;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Ll(e) {
|
|
355
355
|
let t = [];
|
|
356
356
|
if (e.details) {
|
|
357
357
|
if (e.details.image) {
|
|
358
|
-
let r =
|
|
358
|
+
let r = jl(e.details.image);
|
|
359
359
|
t.push(r);
|
|
360
360
|
}
|
|
361
361
|
e.details.title && t.push(So(e.details.title)), e.details.description && t.push(bo(e.details.description));
|
|
@@ -366,9 +366,9 @@ var require_main_min = __commonJS({
|
|
|
366
366
|
}
|
|
367
367
|
return t;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Tl(e) {
|
|
370
370
|
let t = ho(e);
|
|
371
|
-
return e.options && t.push(
|
|
371
|
+
return e.options && t.push(Rl(e.options)), t;
|
|
372
372
|
}
|
|
373
373
|
function go(e, t) {
|
|
374
374
|
return { type: "box", width: t || "md", components: e };
|
|
@@ -379,57 +379,57 @@ var require_main_min = __commonJS({
|
|
|
379
379
|
function bo(e) {
|
|
380
380
|
return { type: "paragraph", text: e, align: "center" };
|
|
381
381
|
}
|
|
382
|
-
function Tl(e) {
|
|
383
|
-
return { type: "form", schema: e };
|
|
384
|
-
}
|
|
385
382
|
function Nl(e) {
|
|
386
|
-
return { type: "
|
|
383
|
+
return { type: "form", schema: e };
|
|
387
384
|
}
|
|
388
385
|
function Rl(e) {
|
|
386
|
+
return { type: "decision", options: e.map(Bl) };
|
|
387
|
+
}
|
|
388
|
+
function Bl(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 Ga(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 jl(e) {
|
|
395
|
+
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : Ga(e);
|
|
396
396
|
}
|
|
397
397
|
function Sr(e) {
|
|
398
398
|
return { type: "button", action: b(i({}, e), { title: e.title }) };
|
|
399
399
|
}
|
|
400
|
-
function jl(e) {
|
|
401
|
-
return { type: "review", title: e.title, fields: e.fields.map(Vl) };
|
|
402
|
-
}
|
|
403
400
|
function Vl(e) {
|
|
404
|
-
return {
|
|
401
|
+
return { type: "review", title: e.title, fields: e.fields.map(Ul) };
|
|
405
402
|
}
|
|
406
403
|
function Ul(e) {
|
|
404
|
+
return { label: e.title, value: e.value };
|
|
405
|
+
}
|
|
406
|
+
function zl(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 = Nl(r);
|
|
410
|
+
Hl() ? t.push(o) : t.push(go([o], "md"));
|
|
411
411
|
}
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Hl() {
|
|
415
415
|
return false;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function ql(e, t) {
|
|
418
418
|
return [...t && e.title ? [So(e.title)] : [], ...e.description ? [bo(e.description)] : [], ...e.layout || []];
|
|
419
419
|
}
|
|
420
420
|
function Ge({ layout: e, schemas: t, actions: r, model: o }) {
|
|
421
|
-
return e ? t ? e.map((a) => a.type === "form" ?
|
|
421
|
+
return e ? t ? e.map((a) => a.type === "form" ? Gl({ formComponent: a, schemas: t }) : a.type === "decision" ? $l({ decisionComponent: a, actions: r }) : a.type === "button" ? _l({ actionComponent: a, actions: r }) : a.type === "box" ? Wl({ boxComponent: a, schemas: t, actions: r, model: o }) : a.type === "columns" ? Kl({ columnsComponent: a, schemas: t, actions: r, model: o }) : a) : e : [];
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Gl({ formComponent: e, schemas: t }) {
|
|
424
424
|
if (e.schemaId)
|
|
425
|
-
return { type: "form", margin: e.margin, schema:
|
|
425
|
+
return { type: "form", margin: e.margin, schema: $a(t, e.schemaId) };
|
|
426
426
|
if (e.schema && br(e.schema) && e.schema.$ref)
|
|
427
|
-
return { type: "form", margin: e.margin, schema:
|
|
427
|
+
return { type: "form", margin: e.margin, schema: $a(t, e.schema.$ref) };
|
|
428
428
|
if (e.schema && !br(e.schema))
|
|
429
429
|
return i({}, e);
|
|
430
430
|
throw new Error('Invalid form layout component. Missing "schema" or "schemaId" properties.');
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function $l({ decisionComponent: e, actions: t }) {
|
|
433
433
|
var o;
|
|
434
434
|
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((a) => a.action && br(a.action) ? b(i({}, a), { action: _a(t, a.action.$ref) }) : a);
|
|
435
435
|
return b(i({}, e), { options: r });
|
|
@@ -442,13 +442,13 @@ var require_main_min = __commonJS({
|
|
|
442
442
|
}
|
|
443
443
|
return e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Wl({ boxComponent: e, schemas: t, actions: r, model: o }) {
|
|
446
446
|
return b(i({}, e), { components: Ge({ layout: e.components, schemas: t, actions: r, model: o }) });
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Kl({ columnsComponent: e, schemas: t, actions: r, model: o }) {
|
|
449
449
|
return b(i({}, e), { left: Ge({ layout: e.left, schemas: t, actions: r, model: o }), right: Ge({ layout: e.right, schemas: t, actions: r, model: o }) });
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function $a(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}`);
|
|
@@ -464,37 +464,37 @@ var require_main_min = __commonJS({
|
|
|
464
464
|
return Object.prototype.hasOwnProperty.call(e, "$ref");
|
|
465
465
|
}
|
|
466
466
|
var xe = require("react");
|
|
467
|
-
var
|
|
468
|
-
var
|
|
467
|
+
var Qm = require("react-intl");
|
|
468
|
+
var Ft = require("react");
|
|
469
469
|
var wr = require("react");
|
|
470
|
-
function
|
|
470
|
+
function Wa() {
|
|
471
471
|
let [e, t] = (0, wr.useState)(0);
|
|
472
472
|
return { addPendingPromise: (0, wr.useCallback)((o) => {
|
|
473
|
-
t((a) => a + 1), o.catch(
|
|
473
|
+
t((a) => a + 1), o.catch(Xl).finally(() => Jl(() => t((a) => Math.max(0, a - 1))));
|
|
474
474
|
}, [t]), pendingPromises: e };
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
var
|
|
476
|
+
var Jl = (e) => setTimeout(() => e(), 0);
|
|
477
|
+
var Xl = () => {
|
|
478
478
|
};
|
|
479
|
-
var
|
|
480
|
-
var
|
|
479
|
+
var Ya = require("react/jsx-runtime");
|
|
480
|
+
var Ka = { loading: false, registerPersistAsyncPromise: (e) => {
|
|
481
481
|
} };
|
|
482
|
-
var
|
|
483
|
-
var
|
|
484
|
-
let { pendingPromises: r, addPendingPromise: o } =
|
|
485
|
-
return (0,
|
|
482
|
+
var Ja = (0, Ft.createContext)(Ka);
|
|
483
|
+
var Xa = ({ loading: e, children: t }) => {
|
|
484
|
+
let { pendingPromises: r, addPendingPromise: o } = Wa(), a = (0, Ft.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: o }), [e, r, o]);
|
|
485
|
+
return (0, Ya.jsx)(Ja.Provider, { value: a, children: t });
|
|
486
486
|
};
|
|
487
|
-
var Fr = () => (0,
|
|
488
|
-
var
|
|
489
|
-
var
|
|
490
|
-
var
|
|
487
|
+
var Fr = () => (0, Ft.useContext)(Ja) || Ka;
|
|
488
|
+
var Ct = require("react");
|
|
489
|
+
var Qa = require("react/jsx-runtime");
|
|
490
|
+
var Za = (0, Ct.createContext)({ triggerEvent: () => {
|
|
491
491
|
} });
|
|
492
492
|
var Cr = ({ metadata: e, children: t, onEvent: r }) => {
|
|
493
|
-
let o = (0,
|
|
494
|
-
return (0,
|
|
493
|
+
let o = (0, Ct.useMemo)(() => ({ triggerEvent: wo(r, e) }), [r, e]);
|
|
494
|
+
return (0, Qa.jsx)(Za.Provider, { value: o, children: t });
|
|
495
495
|
};
|
|
496
|
-
function
|
|
497
|
-
let { triggerEvent: e } = (0,
|
|
496
|
+
function ee() {
|
|
497
|
+
let { triggerEvent: e } = (0, Ct.useContext)(Za);
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
500
|
var wo = (e, t) => (r, o = {}) => {
|
|
@@ -504,7 +504,7 @@ var require_main_min = __commonJS({
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
var ot = require("react");
|
|
507
|
-
function
|
|
507
|
+
function en(e) {
|
|
508
508
|
return e >= 200 && e < 300;
|
|
509
509
|
}
|
|
510
510
|
function xr(e) {
|
|
@@ -514,11 +514,11 @@ var require_main_min = __commonJS({
|
|
|
514
514
|
return ["https://", "http://", "data:"].some((t) => e.slice(0, t.length) === t && e.length > t.length) === false;
|
|
515
515
|
}
|
|
516
516
|
var vr = (e, t) => (r, o) => {
|
|
517
|
-
let a =
|
|
517
|
+
let a = Yl(r, e || ""), n = Zl(o == null ? void 0 : o.headers, t);
|
|
518
518
|
return fetch(a, b(i({}, o || {}), { headers: n }));
|
|
519
519
|
};
|
|
520
|
-
var
|
|
521
|
-
var
|
|
520
|
+
var Yl = (e, t) => typeof e == "string" && Ar(e) ? t + e : e;
|
|
521
|
+
var Zl = (e, t) => {
|
|
522
522
|
if (!e && !t)
|
|
523
523
|
return {};
|
|
524
524
|
let r = new Headers(e);
|
|
@@ -528,285 +528,283 @@ var require_main_min = __commonJS({
|
|
|
528
528
|
};
|
|
529
529
|
var Fo = require("react/jsx-runtime");
|
|
530
530
|
var Or = (0, ot.createContext)(void 0);
|
|
531
|
-
var
|
|
531
|
+
var tn = ({ httpClient: e, children: t }) => (0, Fo.jsx)(Or.Provider, { value: e, children: t });
|
|
532
532
|
var Pr = ({ baseUrl: e, children: t }) => {
|
|
533
533
|
let r = (0, ot.useMemo)(() => vr(e), [e]);
|
|
534
534
|
return (0, Fo.jsx)(Or.Provider, { value: r, children: t });
|
|
535
535
|
};
|
|
536
|
-
var
|
|
536
|
+
var te = () => (0, ot.useContext)(Or) || fetch;
|
|
537
537
|
var Mr = () => !!(0, ot.useContext)(Or);
|
|
538
|
-
var
|
|
539
|
-
var
|
|
538
|
+
var xt = require("react");
|
|
539
|
+
var on = require("react/jsx-runtime");
|
|
540
540
|
var at = (e, t, r = "UNKNOWN-FLOW-ID", o = "UNKNOWN-FLOW-ID") => (a, n, s) => {
|
|
541
541
|
try {
|
|
542
542
|
t(e, `Dynamic Flow ${e} - ${a} - ${n}`, i({ flowId: r, stepId: o }, s));
|
|
543
543
|
} catch (l) {
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
|
-
var
|
|
547
|
-
var
|
|
548
|
-
let a = (0,
|
|
549
|
-
return (0,
|
|
546
|
+
var rn = (0, xt.createContext)(null);
|
|
547
|
+
var kr = ({ flowId: e, stepId: t, children: r, onLog: o }) => {
|
|
548
|
+
let a = (0, xt.useMemo)(() => ({ debug: at("debug", o, e, t), info: at("info", o, e, t), warning: at("warning", o, e, t), error: at("error", o, e, t), critical: at("critical", o, e, t) }), [o, e, t]);
|
|
549
|
+
return (0, on.jsx)(rn.Provider, { value: a, children: r });
|
|
550
550
|
};
|
|
551
|
-
var
|
|
552
|
-
let e = (0,
|
|
551
|
+
var At = () => {
|
|
552
|
+
let e = (0, xt.useContext)(rn);
|
|
553
553
|
if (e == null)
|
|
554
554
|
throw new Error("Logging context not found. Did you forget to wrap your component in a <LogProvider />?");
|
|
555
555
|
return e;
|
|
556
556
|
};
|
|
557
|
-
var
|
|
558
|
-
var
|
|
559
|
-
var
|
|
557
|
+
var I = (e) => typeof e == "string";
|
|
558
|
+
var V = (e) => typeof e == "number" && !Number.isNaN(e);
|
|
559
|
+
var an = (e) => V(e) && Math.floor(e) === e;
|
|
560
560
|
var ve = (e) => typeof e == "boolean";
|
|
561
|
-
var
|
|
562
|
-
var
|
|
563
|
-
var
|
|
564
|
-
var
|
|
565
|
-
var
|
|
566
|
-
function an(e, t) {
|
|
567
|
-
return t.oneOf.some((r) => _e(e, r) === e) ? e : null;
|
|
568
|
-
}
|
|
561
|
+
var N = (e) => !k(e) && !X(e) && (e == null ? void 0 : e.constructor) === Object;
|
|
562
|
+
var q = (e) => Array.isArray(e);
|
|
563
|
+
var k = (e) => e === null;
|
|
564
|
+
var X = (e) => typeof e == "undefined";
|
|
565
|
+
var vt = (e) => I(e) && e.length === 0 || (N(e) || q(e)) && Object.keys(e).length === 0;
|
|
569
566
|
function nn(e, t) {
|
|
567
|
+
return t.oneOf.some((r) => $e(e, r) === e) ? e : null;
|
|
568
|
+
}
|
|
569
|
+
function sn(e, t) {
|
|
570
570
|
var o;
|
|
571
|
-
let r = t.oneOf.map((a) =>
|
|
571
|
+
let r = t.oneOf.map((a) => Ql(e, a)).filter((a) => a !== null);
|
|
572
572
|
return r.length === 0 ? null : (o = r.find((a) => a.some((n) => n !== null))) != null ? o : r[0];
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Ql(e, t) {
|
|
575
575
|
return !Le(t) || !Oe(t) ? null : Co(e, t);
|
|
576
576
|
}
|
|
577
|
-
function sn(e) {
|
|
578
|
-
return k(e) && !At(e) ? e : null;
|
|
579
|
-
}
|
|
580
577
|
function mn(e) {
|
|
581
|
-
return
|
|
578
|
+
return I(e) && !vt(e) ? e : null;
|
|
582
579
|
}
|
|
583
580
|
function ln(e) {
|
|
581
|
+
return V(e) ? e : null;
|
|
582
|
+
}
|
|
583
|
+
function cn(e) {
|
|
584
584
|
return ve(e) ? e : null;
|
|
585
585
|
}
|
|
586
586
|
function Co(e, t) {
|
|
587
|
-
if (!
|
|
587
|
+
if (!q(e) || !Oe(t))
|
|
588
588
|
return null;
|
|
589
589
|
if (e.length > 0) {
|
|
590
590
|
let r = typeof e[0];
|
|
591
591
|
if (!e.every((o) => typeof o === r))
|
|
592
592
|
return new Array(e.length).fill(null);
|
|
593
593
|
}
|
|
594
|
-
return e.map((r) =>
|
|
594
|
+
return e.map((r) => Ot(r, t.items));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function dn(e, t) {
|
|
597
597
|
return Object.keys(t.properties).reduce((r, o) => {
|
|
598
|
-
if (e && !
|
|
599
|
-
let a = e[o], n = t.properties[o], s =
|
|
600
|
-
if (!
|
|
598
|
+
if (e && !X(e[o])) {
|
|
599
|
+
let a = e[o], n = t.properties[o], s = Ot(a, n);
|
|
600
|
+
if (!k(s))
|
|
601
601
|
return b(i({}, r), { [o]: s });
|
|
602
602
|
}
|
|
603
603
|
return r;
|
|
604
604
|
}, {});
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function un(e, t) {
|
|
607
607
|
return t.allOf.reduce((r, o) => {
|
|
608
608
|
let a = ie(e, o);
|
|
609
|
-
return
|
|
609
|
+
return $(a) ? i(i({}, r), a) : r;
|
|
610
610
|
}, {});
|
|
611
611
|
}
|
|
612
|
-
function un(e, t) {
|
|
613
|
-
return t.oneOf.map((r) => ie(e, r)).reduce((r, o) => M(r) ? o : _(r) && _(o) ? pn(r, o) : M(o) ? r : o, null);
|
|
614
|
-
}
|
|
615
612
|
function pn(e, t) {
|
|
613
|
+
return t.oneOf.map((r) => ie(e, r)).reduce((r, o) => k(r) ? o : $(r) && $(o) ? fn(r, o) : k(o) ? r : o, null);
|
|
614
|
+
}
|
|
615
|
+
function fn(e, t) {
|
|
616
616
|
return Object.keys(t).reduce((r, o) => {
|
|
617
617
|
let a = e[o], n = t[o];
|
|
618
|
-
return
|
|
618
|
+
return $(a) && $(n) ? b(i({}, r), { [o]: fn(a, n) }) : b(i({}, r), { [o]: t[o] });
|
|
619
619
|
}, i({}, e));
|
|
620
620
|
}
|
|
621
|
-
var
|
|
622
|
-
function
|
|
623
|
-
if (
|
|
621
|
+
var Ot = (e, t) => $(e) ? ie(e, t) : xo(e) ? ec(e, t) : $e(e, t);
|
|
622
|
+
function $e(e, t) {
|
|
623
|
+
if (k(e))
|
|
624
624
|
return null;
|
|
625
625
|
if (t.oneOf)
|
|
626
|
-
return
|
|
627
|
-
if (!
|
|
626
|
+
return nn(e, t);
|
|
627
|
+
if (!X(t.const) && e === t.const)
|
|
628
628
|
return e;
|
|
629
629
|
if (t.type)
|
|
630
630
|
switch (t.type) {
|
|
631
631
|
case "string":
|
|
632
|
-
return
|
|
632
|
+
return mn(e);
|
|
633
633
|
case "number":
|
|
634
634
|
case "integer":
|
|
635
|
-
return mn(e);
|
|
636
|
-
case "boolean":
|
|
637
635
|
return ln(e);
|
|
636
|
+
case "boolean":
|
|
637
|
+
return cn(e);
|
|
638
638
|
default:
|
|
639
639
|
return null;
|
|
640
640
|
}
|
|
641
641
|
return null;
|
|
642
642
|
}
|
|
643
643
|
function ie(e, t) {
|
|
644
|
-
return Te(t) || Le(t) ||
|
|
645
|
-
}
|
|
646
|
-
function Ql(e, t) {
|
|
647
|
-
return fe(t) ? nn(e, t) : Le(t) ? Co(e, t) : null;
|
|
644
|
+
return Te(t) || Le(t) || k(e) ? null : t.allOf ? un(e, t) : t.oneOf ? pn(e, t) : !X(t.const) && e === t.const ? e : Pe(t) ? dn(e, t) : null;
|
|
648
645
|
}
|
|
649
|
-
function
|
|
650
|
-
return
|
|
646
|
+
function ec(e, t) {
|
|
647
|
+
return fe(t) ? sn(e, t) : Le(t) ? Co(e, t) : null;
|
|
651
648
|
}
|
|
652
|
-
function
|
|
653
|
-
return !t ||
|
|
649
|
+
function Jt(e, t = false) {
|
|
650
|
+
return !t || !X(e);
|
|
654
651
|
}
|
|
655
|
-
function yn(e, t) {
|
|
656
|
-
return !
|
|
652
|
+
function yn(e, t = false) {
|
|
653
|
+
return !t || q(e);
|
|
657
654
|
}
|
|
658
655
|
function hn(e, t) {
|
|
659
|
-
return !
|
|
656
|
+
return !V(t) || I(e) && e.length >= t;
|
|
660
657
|
}
|
|
661
658
|
function gn(e, t) {
|
|
659
|
+
return !V(t) || I(e) && e.length <= t;
|
|
660
|
+
}
|
|
661
|
+
function Sn(e, t) {
|
|
662
662
|
return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
|
|
663
663
|
}
|
|
664
664
|
function Ao(e, t) {
|
|
665
|
-
return !
|
|
665
|
+
return !V(t) && !I(t) || (V(e) || I(e)) && e <= t;
|
|
666
666
|
}
|
|
667
667
|
function vo(e, t) {
|
|
668
|
-
return !
|
|
669
|
-
}
|
|
670
|
-
function Sn(e, t) {
|
|
671
|
-
return !R(t) || z(e) && e.length >= t;
|
|
668
|
+
return !V(t) && !I(t) || (V(e) || I(e)) && e >= t;
|
|
672
669
|
}
|
|
673
670
|
function bn(e, t) {
|
|
674
|
-
return !
|
|
671
|
+
return !V(t) || q(e) && e.length >= t;
|
|
675
672
|
}
|
|
676
|
-
function
|
|
673
|
+
function wn(e, t) {
|
|
674
|
+
return !V(t) || q(e) && e.length <= t;
|
|
675
|
+
}
|
|
676
|
+
function _e(e, t, r) {
|
|
677
677
|
if (t.const)
|
|
678
|
-
return
|
|
679
|
-
if (
|
|
678
|
+
return ko(e, t, r);
|
|
679
|
+
if (k(e))
|
|
680
680
|
return r ? ["required"] : [];
|
|
681
|
-
if (
|
|
681
|
+
if (Cn(t))
|
|
682
682
|
return Oo(e, t, r);
|
|
683
683
|
switch (t.type) {
|
|
684
684
|
case "number":
|
|
685
|
-
return
|
|
685
|
+
return Er(e, t, r);
|
|
686
686
|
case "integer":
|
|
687
687
|
return Po(e, t, r);
|
|
688
688
|
case "boolean":
|
|
689
689
|
return Mo(e, t, r);
|
|
690
690
|
case "array":
|
|
691
|
-
return
|
|
691
|
+
return Pt(e, t, r);
|
|
692
692
|
case "object":
|
|
693
|
-
return
|
|
693
|
+
return tc(e, t);
|
|
694
694
|
default:
|
|
695
695
|
return [];
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
function Oo(e, t, r) {
|
|
699
|
-
if (!
|
|
699
|
+
if (!I(e) && !k(e))
|
|
700
700
|
return ["type"];
|
|
701
701
|
if (e === "" && r)
|
|
702
702
|
return ["required"];
|
|
703
703
|
let o = [];
|
|
704
|
-
return
|
|
704
|
+
return Jt(e, r) || o.push("required"), hn(e, t.minLength) || o.push("minLength"), gn(e, t.maxLength) || o.push("maxLength"), Sn(e, t.pattern) || o.push("pattern"), vo(e, t.minimum) || o.push("minimum"), Ao(e, t.maximum) || o.push("maximum"), o;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
if (!
|
|
706
|
+
function Er(e, t, r) {
|
|
707
|
+
if (!V(e) && !k(e))
|
|
708
708
|
return ["type"];
|
|
709
709
|
let o = [];
|
|
710
|
-
return
|
|
710
|
+
return Jt(e, r) || o.push("required"), vo(e, t.minimum) || o.push("minimum"), Ao(e, t.maximum) || o.push("maximum"), o;
|
|
711
711
|
}
|
|
712
712
|
function Po(e, t, r) {
|
|
713
|
-
return
|
|
713
|
+
return an(e) ? Er(e, t, r) : ["type"];
|
|
714
714
|
}
|
|
715
715
|
function Mo(e, t, r) {
|
|
716
|
-
if (!ve(e) && !
|
|
716
|
+
if (!ve(e) && !k(e))
|
|
717
717
|
return ["type"];
|
|
718
718
|
let o = [];
|
|
719
|
-
return
|
|
719
|
+
return Jt(e, r) || o.push("required"), o;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
return
|
|
721
|
+
function ko(e, t, r) {
|
|
722
|
+
return Jt(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
if (!
|
|
724
|
+
function Pt(e, t, r) {
|
|
725
|
+
if (!q(e) && !k(e))
|
|
726
726
|
return ["type"];
|
|
727
|
-
if (!
|
|
727
|
+
if (!yn(e, r))
|
|
728
728
|
return ["required"];
|
|
729
729
|
let o = [];
|
|
730
|
-
return
|
|
730
|
+
return bn(e, t.minItems) || o.push("minItems"), wn(e, t.maxItems) || o.push("maxItems"), o;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
return
|
|
734
|
-
}
|
|
735
|
-
function ec(e, t) {
|
|
736
|
-
return _(e) ? z(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, a) => o && a, true) ? [] : ["required"] : [] : ["type"];
|
|
732
|
+
function Fn(e, t) {
|
|
733
|
+
return k(e) ? ["type"] : [];
|
|
737
734
|
}
|
|
738
735
|
function tc(e, t) {
|
|
739
|
-
return
|
|
736
|
+
return $(e) ? q(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, a) => o && a, true) ? [] : ["required"] : [] : ["type"];
|
|
740
737
|
}
|
|
741
738
|
function rc(e, t) {
|
|
742
|
-
return !
|
|
739
|
+
return !Oo(e, t).length;
|
|
743
740
|
}
|
|
744
741
|
function oc(e, t) {
|
|
745
|
-
return !
|
|
742
|
+
return !Er(e, t).length;
|
|
746
743
|
}
|
|
747
744
|
function ac(e, t) {
|
|
748
|
-
return !
|
|
745
|
+
return !Po(e, t).length;
|
|
749
746
|
}
|
|
750
747
|
function nc(e, t) {
|
|
751
|
-
return !
|
|
748
|
+
return !Mo(e, t).length;
|
|
752
749
|
}
|
|
753
750
|
function ic(e, t) {
|
|
754
|
-
return !
|
|
751
|
+
return !ko(e, t).length;
|
|
755
752
|
}
|
|
756
|
-
function sc(e, t
|
|
757
|
-
return t.
|
|
753
|
+
function sc(e, t) {
|
|
754
|
+
return !N(e) || t.type !== "object" || !N(t.properties) ? false : Object.keys(t.properties).map((r) => mc(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
|
|
758
755
|
}
|
|
759
|
-
function mc(e, t) {
|
|
760
|
-
return t.
|
|
756
|
+
function mc(e, t, r) {
|
|
757
|
+
return t.hidden ? true : typeof e == "undefined" ? !r : W(e, t);
|
|
761
758
|
}
|
|
762
759
|
function lc(e, t) {
|
|
763
|
-
return
|
|
760
|
+
return t.type !== "array" || !N(t.items) || Pt(e, t).length > 0 ? false : Array.isArray(e) && Oe(t) && e.map((r) => W(r, t.items)).every((r) => r);
|
|
764
761
|
}
|
|
765
762
|
function cc(e, t) {
|
|
766
|
-
return
|
|
763
|
+
return q(t.oneOf) ? t.oneOf.some((r) => W(e, r)) : false;
|
|
767
764
|
}
|
|
768
765
|
function dc(e, t) {
|
|
769
|
-
return
|
|
766
|
+
return q(t.allOf) ? t.allOf.map((r) => W(e, r)).every((r) => r) : false;
|
|
770
767
|
}
|
|
771
|
-
function
|
|
772
|
-
|
|
773
|
-
|
|
768
|
+
function uc(e, t) {
|
|
769
|
+
return !Fn(e, t).length;
|
|
770
|
+
}
|
|
771
|
+
function W(e, t) {
|
|
774
772
|
if (t.oneOf)
|
|
775
|
-
return lc(e, t);
|
|
776
|
-
if (t.allOf)
|
|
777
773
|
return cc(e, t);
|
|
774
|
+
if (t.allOf)
|
|
775
|
+
return dc(e, t);
|
|
778
776
|
if (t.const)
|
|
779
|
-
return
|
|
777
|
+
return ic(e, t);
|
|
780
778
|
switch (t.type) {
|
|
781
779
|
case "string":
|
|
782
|
-
return tc(e, t);
|
|
783
|
-
case "number":
|
|
784
780
|
return rc(e, t);
|
|
785
|
-
case "
|
|
781
|
+
case "number":
|
|
786
782
|
return oc(e, t);
|
|
787
|
-
case "
|
|
783
|
+
case "integer":
|
|
788
784
|
return ac(e, t);
|
|
785
|
+
case "boolean":
|
|
786
|
+
return nc(e, t);
|
|
789
787
|
case "array":
|
|
790
|
-
return
|
|
788
|
+
return lc(e, t);
|
|
791
789
|
case "object":
|
|
792
|
-
return
|
|
790
|
+
return sc(e, t);
|
|
793
791
|
case "blob":
|
|
794
|
-
return
|
|
792
|
+
return uc(e, t);
|
|
795
793
|
default:
|
|
796
794
|
return false;
|
|
797
795
|
}
|
|
798
796
|
}
|
|
799
|
-
function
|
|
797
|
+
function pc(e) {
|
|
800
798
|
let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`, a = t.getFullYear(), n = r.length < 2 ? `0${r}` : r, s = o.length < 2 ? `0${o}` : o;
|
|
801
799
|
return [a, n, s].join("-");
|
|
802
800
|
}
|
|
803
|
-
var
|
|
801
|
+
var xn = (e) => {
|
|
804
802
|
if (!e)
|
|
805
803
|
return null;
|
|
806
804
|
let [t, r, o] = e.split("-").map((a) => parseInt(a, 10));
|
|
807
|
-
return !
|
|
805
|
+
return !V(t) || !V(r) || !V(o) ? null : new Date(t, r - 1, o);
|
|
808
806
|
};
|
|
809
|
-
var
|
|
807
|
+
var An = (e) => pc(e);
|
|
810
808
|
var We = (e, t) => {
|
|
811
809
|
let r, o, a = () => {
|
|
812
810
|
r && (clearTimeout(r), r = null), o = null;
|
|
@@ -821,20 +819,20 @@ var require_main_min = __commonJS({
|
|
|
821
819
|
r !== null && (e(...o), a());
|
|
822
820
|
}, n;
|
|
823
821
|
};
|
|
824
|
-
var Ke = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Ke(r, t[o])) : !!(
|
|
825
|
-
var
|
|
822
|
+
var Ke = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Ke(r, t[o])) : !!(vn(e) && vn(t) && fc(e, t));
|
|
823
|
+
var fc = (e, t) => {
|
|
826
824
|
let r = Object.keys(e), o = Object.keys(t);
|
|
827
825
|
return r.length === o.length && r.every((a) => Object.prototype.hasOwnProperty.call(t, a) && Ke(e[a], t[a]));
|
|
828
826
|
};
|
|
829
|
-
var
|
|
827
|
+
var vn = (e) => typeof e == "object" && e !== null;
|
|
830
828
|
function Ir(e) {
|
|
831
829
|
return Math.floor(e / 1024);
|
|
832
830
|
}
|
|
833
|
-
var
|
|
831
|
+
var On = (e) => new Promise((t, r) => {
|
|
834
832
|
let o = new FileReader();
|
|
835
833
|
o.readAsDataURL(e), o.addEventListener("load", () => t(o.result)), o.addEventListener("error", (a) => r(a));
|
|
836
834
|
});
|
|
837
|
-
function
|
|
835
|
+
function Pn(e, t) {
|
|
838
836
|
let r = t.reduce((o, a) => b(i({}, o), { [a.id]: a }), {});
|
|
839
837
|
for (let o of e) {
|
|
840
838
|
let a = r[o.id];
|
|
@@ -845,16 +843,16 @@ var require_main_min = __commonJS({
|
|
|
845
843
|
}
|
|
846
844
|
var Me = (e = "") => `${e ? `${e}-` : ""}${Math.floor(1e8 * Math.random())}`;
|
|
847
845
|
function ye(e) {
|
|
848
|
-
return !
|
|
846
|
+
return !X(e == null ? void 0 : e.const);
|
|
849
847
|
}
|
|
850
|
-
function
|
|
848
|
+
function Xt(e) {
|
|
851
849
|
return !!e && !ye(e);
|
|
852
850
|
}
|
|
853
|
-
var
|
|
854
|
-
var
|
|
855
|
-
var
|
|
851
|
+
var yc = (e) => !!e.readOnly && Te(e);
|
|
852
|
+
var hc = (e) => !!e.oneOf && !!e.promotion;
|
|
853
|
+
var gc = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
|
|
856
854
|
function Te(e) {
|
|
857
|
-
return
|
|
855
|
+
return gc.has(e.type || "") || "const" in e && e.const !== void 0;
|
|
858
856
|
}
|
|
859
857
|
function Pe(e) {
|
|
860
858
|
return e.type === "object";
|
|
@@ -865,10 +863,10 @@ var require_main_min = __commonJS({
|
|
|
865
863
|
function fe(e) {
|
|
866
864
|
return !!e.oneOf;
|
|
867
865
|
}
|
|
868
|
-
function
|
|
866
|
+
function Eo(e) {
|
|
869
867
|
return !!e.allOf;
|
|
870
868
|
}
|
|
871
|
-
function
|
|
869
|
+
function Mt(e) {
|
|
872
870
|
return e.type === "blob";
|
|
873
871
|
}
|
|
874
872
|
function Le(e) {
|
|
@@ -878,31 +876,31 @@ var require_main_min = __commonJS({
|
|
|
878
876
|
let t = e.items;
|
|
879
877
|
return !Array.isArray(t);
|
|
880
878
|
}
|
|
881
|
-
function
|
|
879
|
+
function Cn(e) {
|
|
882
880
|
return e.type === "string";
|
|
883
881
|
}
|
|
884
882
|
function Dr(e) {
|
|
885
883
|
return !!e.persistAsync;
|
|
886
884
|
}
|
|
887
|
-
function
|
|
888
|
-
return Dr(e) && (
|
|
885
|
+
function Sc(e) {
|
|
886
|
+
return Dr(e) && (Mt(e.persistAsync.schema) || bc(e.persistAsync.schema));
|
|
889
887
|
}
|
|
890
888
|
var Io = (e) => Te(e) && !!e.validationAsync;
|
|
891
|
-
function
|
|
889
|
+
function bc(e) {
|
|
892
890
|
return e.type === "string" && e.format === "base64url";
|
|
893
891
|
}
|
|
894
|
-
function
|
|
892
|
+
function Mn(e) {
|
|
895
893
|
return e.type === "string" && e.format === "base64url";
|
|
896
894
|
}
|
|
897
|
-
var
|
|
898
|
-
var it = (e) =>
|
|
899
|
-
var En = (e) =>
|
|
900
|
-
var
|
|
901
|
-
var
|
|
895
|
+
var kn = (e) => Le(e) && Oe(e) && Sc(e.items);
|
|
896
|
+
var it = (e) => yc(e) ? "readOnly" : Dr(e) ? "persistAsync" : Io(e) ? "validationAsync" : Pe(e) ? "object" : Le(e) ? "array" : hc(e) ? "promotedOneOf" : fe(e) ? "oneOf" : Eo(e) ? "allOf" : Te(e) ? "basic" : null;
|
|
897
|
+
var En = (e) => wc(e) && Fc(e) && Cc(e);
|
|
898
|
+
var wc = (e) => !e.type || e.type === "form";
|
|
899
|
+
var Fc = (e) => {
|
|
902
900
|
var t;
|
|
903
901
|
return ((t = e == null ? void 0 : e.actions) == null ? void 0 : t.length) === 1;
|
|
904
902
|
};
|
|
905
|
-
var
|
|
903
|
+
var Cc = (e) => {
|
|
906
904
|
if (!e.schemas)
|
|
907
905
|
return false;
|
|
908
906
|
let t = Lr(e.schemas);
|
|
@@ -912,30 +910,30 @@ var require_main_min = __commonJS({
|
|
|
912
910
|
if (!Pe(r) || Object.values(r.properties).length !== 1)
|
|
913
911
|
return false;
|
|
914
912
|
let o = Object.values(r.properties)[0];
|
|
915
|
-
return
|
|
913
|
+
return Mn(o) ? o.source === "camera" : false;
|
|
916
914
|
};
|
|
917
915
|
var Lr = (e) => e.filter((t) => Pe(t) ? Object.values((t == null ? void 0 : t.properties) || {}).find((r) => (r == null ? void 0 : r.hidden) !== true) : (t == null ? void 0 : t.hidden) !== true);
|
|
918
|
-
var
|
|
919
|
-
var Do = (e) =>
|
|
920
|
-
var Lo = (e) => ve(e) ||
|
|
921
|
-
var Tr = (e) =>
|
|
922
|
-
var xo = (e) =>
|
|
923
|
-
var
|
|
924
|
-
var
|
|
925
|
-
var
|
|
926
|
-
function
|
|
927
|
-
return (0,
|
|
928
|
-
}
|
|
929
|
-
var
|
|
930
|
-
function
|
|
931
|
-
let [t, r] = (0,
|
|
932
|
-
return (0,
|
|
916
|
+
var $ = (e) => typeof e == "object" && e !== null && e.constructor === Object;
|
|
917
|
+
var Do = (e) => k(e) || $(e);
|
|
918
|
+
var Lo = (e) => ve(e) || V(e) || I(e) || k(e);
|
|
919
|
+
var Tr = (e) => I(e) || k(e);
|
|
920
|
+
var xo = (e) => q(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object") : false;
|
|
921
|
+
var In = (e) => k(e) ? true : xo(e);
|
|
922
|
+
var Yt = (e) => I(e) || k(e);
|
|
923
|
+
var Dn = require("react");
|
|
924
|
+
function Ln(e, t) {
|
|
925
|
+
return (0, Dn.useCallback)(We(e, t), [e, t]);
|
|
926
|
+
}
|
|
927
|
+
var Zt = require("react");
|
|
928
|
+
function Tn(e) {
|
|
929
|
+
let [t, r] = (0, Zt.useState)(null), [o, a] = (0, Zt.useState)(false), n = () => a(true);
|
|
930
|
+
return (0, Zt.useEffect)(() => {
|
|
933
931
|
e && (a(false), r(window.open(e, "_blank")));
|
|
934
932
|
}, [e]), { requiresManualTrigger: !!(e && !t && !o), dismissConfirmation: n };
|
|
935
933
|
}
|
|
936
|
-
var
|
|
937
|
-
function
|
|
938
|
-
let r =
|
|
934
|
+
var Qt = require("react");
|
|
935
|
+
function Nn(e, t) {
|
|
936
|
+
let r = te(), o = (0, Qt.useMemo)(() => {
|
|
939
937
|
if (e)
|
|
940
938
|
return () => r(e.url).then((n) => {
|
|
941
939
|
if (n.ok)
|
|
@@ -947,87 +945,87 @@ var require_main_min = __commonJS({
|
|
|
947
945
|
else
|
|
948
946
|
throw new Error("failed");
|
|
949
947
|
});
|
|
950
|
-
}, [e, r]), a = (0,
|
|
948
|
+
}, [e, r]), a = (0, Qt.useCallback)((n) => {
|
|
951
949
|
let l = ((e == null ? void 0 : e.responseHandlers) || []).find((u) => u.result === n.result);
|
|
952
950
|
if (l != null && l.action) {
|
|
953
951
|
let { action: u } = l;
|
|
954
952
|
if (u.exit) {
|
|
955
|
-
let
|
|
956
|
-
t(b(i({}, u), { result:
|
|
953
|
+
let d = i(i({}, u.result || {}), n.data || {});
|
|
954
|
+
t(b(i({}, u), { result: d }));
|
|
957
955
|
} else {
|
|
958
|
-
let
|
|
959
|
-
t(b(i({}, u), { data:
|
|
956
|
+
let d = i(i({}, u.data || {}), n.data || {});
|
|
957
|
+
t(b(i({}, u), { data: d }));
|
|
960
958
|
}
|
|
961
959
|
return false;
|
|
962
960
|
}
|
|
963
961
|
return true;
|
|
964
962
|
}, [e == null ? void 0 : e.responseHandlers, t]);
|
|
965
|
-
Nr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: a, onFailure: (0,
|
|
963
|
+
Nr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: a, onFailure: (0, Qt.useCallback)(() => {
|
|
966
964
|
e && t(e.onError.action);
|
|
967
965
|
}, [t, e]) });
|
|
968
966
|
}
|
|
969
967
|
var Xs = require("react");
|
|
970
968
|
var Ys = require("react-intl");
|
|
971
|
-
var
|
|
972
|
-
var
|
|
973
|
-
var
|
|
974
|
-
var
|
|
975
|
-
var
|
|
976
|
-
var
|
|
977
|
-
var
|
|
978
|
-
var
|
|
969
|
+
var Rn = require("react-intl");
|
|
970
|
+
var er = (0, Rn.defineMessages)({ genericError: { id: "dynamicFlows.PersistAsyncSchema.genericError", defaultMessage: "Something went wrong, please try again later!", description: "Generic error message for persist async schema" } });
|
|
971
|
+
var bt = require("react");
|
|
972
|
+
var $s = require("react-intl");
|
|
973
|
+
var Bn = { DAY_MONTH_YEAR: "day-month-year", MONTH_YEAR: "month-year" };
|
|
974
|
+
var U = { RADIO: "radio", CHECKBOX: "checkbox", SELECT: "select", FILE: "file", DATE: "date", DATETIME: "date-time", DATELOOKUP: "date-lookup", TEL: "tel", NUMBER: "number", HIDDEN: "hidden", PASSWORD: "password", TEXT: "text", TEXTAREA: "textarea", UPLOAD: "upload", TAB: "tab" };
|
|
975
|
+
var jn = { SHORT: "short", LONG: "long" };
|
|
976
|
+
var Vn = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
|
|
979
977
|
var qs = qe(st());
|
|
980
978
|
var le = require("react");
|
|
981
979
|
var _n = require("@transferwise/components");
|
|
982
980
|
var Et = require("@transferwise/components");
|
|
983
|
-
var
|
|
984
|
-
var
|
|
985
|
-
var Cc = (e) => Ac.some((t) => e === `flag-${t}`);
|
|
981
|
+
var zn = require("react/jsx-runtime");
|
|
982
|
+
var kt = (e) => xc(e) || Ac(e);
|
|
986
983
|
var xc = (e) => vc.some((t) => e === `flag-${t}`);
|
|
987
|
-
var
|
|
988
|
-
|
|
984
|
+
var Ac = (e) => Oc.some((t) => e === `flag-${t}`);
|
|
985
|
+
var Un = ({ name: e }) => {
|
|
986
|
+
if (!kt(e))
|
|
989
987
|
return null;
|
|
990
988
|
let t = e.substring(5);
|
|
991
|
-
return (0,
|
|
989
|
+
return (0, zn.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}` });
|
|
992
990
|
};
|
|
993
|
-
var
|
|
994
|
-
var
|
|
995
|
-
var
|
|
996
|
-
var
|
|
991
|
+
var vc = ["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"];
|
|
992
|
+
var Oc = ["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"];
|
|
993
|
+
var Hn = qe(require("@transferwise/icons"));
|
|
994
|
+
var $n = require("react/jsx-runtime");
|
|
997
995
|
var Br = (e) => {
|
|
998
|
-
let t =
|
|
999
|
-
return Object.keys(
|
|
996
|
+
let t = Gn(e);
|
|
997
|
+
return Object.keys(Hn).includes(t);
|
|
1000
998
|
};
|
|
1001
|
-
var
|
|
999
|
+
var qn = ({ name: e }) => {
|
|
1002
1000
|
if (!Br(e))
|
|
1003
1001
|
return null;
|
|
1004
|
-
let t =
|
|
1005
|
-
return (0,
|
|
1002
|
+
let t = Gn(e), r = Hn[t];
|
|
1003
|
+
return (0, $n.jsx)(r, { size: 24 });
|
|
1006
1004
|
};
|
|
1007
|
-
var
|
|
1008
|
-
var
|
|
1005
|
+
var Gn = (e) => e.split("-").map(Pc).join("");
|
|
1006
|
+
var Pc = (e) => {
|
|
1009
1007
|
var t;
|
|
1010
1008
|
return `${(t = e[0]) == null ? void 0 : t.toUpperCase()}${e.slice(1)}`;
|
|
1011
1009
|
};
|
|
1012
1010
|
var To = require("react/jsx-runtime");
|
|
1013
|
-
var
|
|
1011
|
+
var Mc = ({ type: e }) => kt(e) ? (0, To.jsx)(Un, { name: e }) : Br(e) ? (0, To.jsx)(qn, { name: e }) : null;
|
|
1014
1012
|
function No(e) {
|
|
1015
|
-
return Br(e) ||
|
|
1013
|
+
return Br(e) || kt(e);
|
|
1016
1014
|
}
|
|
1017
|
-
var Je =
|
|
1018
|
-
var
|
|
1015
|
+
var Je = Mc;
|
|
1016
|
+
var tr = require("react/jsx-runtime");
|
|
1019
1017
|
var mt = ({ icon: e, image: t }) => {
|
|
1020
1018
|
if (e != null && e.name)
|
|
1021
|
-
return (0,
|
|
1019
|
+
return (0, tr.jsx)(Et.Avatar, { type: Et.AvatarType.ICON, children: (0, tr.jsx)(Je, { type: e.name }) });
|
|
1022
1020
|
if (e != null && e.text)
|
|
1023
|
-
return (0,
|
|
1021
|
+
return (0, tr.jsx)(Et.Avatar, { type: Et.AvatarType.INITIALS, children: e.text });
|
|
1024
1022
|
if (t != null && t.url) {
|
|
1025
1023
|
let { url: r, text: o } = t;
|
|
1026
|
-
return (0,
|
|
1024
|
+
return (0, tr.jsx)("img", { src: r, alt: o });
|
|
1027
1025
|
}
|
|
1028
1026
|
return null;
|
|
1029
1027
|
};
|
|
1030
|
-
var
|
|
1028
|
+
var j = (e) => {
|
|
1031
1029
|
switch (e) {
|
|
1032
1030
|
case "xs":
|
|
1033
1031
|
return "m-t-0";
|
|
@@ -1043,7 +1041,7 @@ var require_main_min = __commonJS({
|
|
|
1043
1041
|
return "";
|
|
1044
1042
|
}
|
|
1045
1043
|
};
|
|
1046
|
-
var
|
|
1044
|
+
var kc = (e) => {
|
|
1047
1045
|
switch (e) {
|
|
1048
1046
|
case "right":
|
|
1049
1047
|
return "text-xs-right";
|
|
@@ -1054,13 +1052,13 @@ var require_main_min = __commonJS({
|
|
|
1054
1052
|
return "";
|
|
1055
1053
|
}
|
|
1056
1054
|
};
|
|
1057
|
-
var Ne = (e) => `${
|
|
1058
|
-
var
|
|
1055
|
+
var Ne = (e) => `${kc(e.align)} ${j(e.margin)}`;
|
|
1056
|
+
var Wn = require("react/jsx-runtime");
|
|
1059
1057
|
var Ec = (e) => {
|
|
1060
1058
|
let t = e.component;
|
|
1061
|
-
return (0,
|
|
1059
|
+
return (0, Wn.jsx)(_n.Alert, { type: Dc(Ic(t.context)), className: j(t.margin), message: t.markdown });
|
|
1062
1060
|
};
|
|
1063
|
-
var
|
|
1061
|
+
var Ic = (e) => {
|
|
1064
1062
|
switch (e) {
|
|
1065
1063
|
case "success":
|
|
1066
1064
|
return "positive";
|
|
@@ -1075,15 +1073,15 @@ var require_main_min = __commonJS({
|
|
|
1075
1073
|
return e;
|
|
1076
1074
|
}
|
|
1077
1075
|
};
|
|
1078
|
-
var
|
|
1076
|
+
var Dc = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
|
|
1079
1077
|
var se = Ec;
|
|
1080
1078
|
var lt = require("react/jsx-runtime");
|
|
1081
|
-
var Dc = (e) => {
|
|
1082
|
-
let t = e.component, r = U(t.margin || t.border ? "lg" : "xs");
|
|
1083
|
-
return !t.width || t.width === "xl" ? (0, lt.jsx)("div", { className: r + Wn(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, lt.jsx)("div", { className: "row", children: (0, lt.jsx)("div", { className: r + Lc(t), children: (0, lt.jsx)("div", { className: Wn(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
|
|
1084
|
-
};
|
|
1085
|
-
var Wn = (e) => e ? " well p-b-0" : "";
|
|
1086
1079
|
var Lc = (e) => {
|
|
1080
|
+
let t = e.component, r = j(t.margin || t.border ? "lg" : "xs");
|
|
1081
|
+
return !t.width || t.width === "xl" ? (0, lt.jsx)("div", { className: r + Kn(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, lt.jsx)("div", { className: "row", children: (0, lt.jsx)("div", { className: r + Tc(t), children: (0, lt.jsx)("div", { className: Kn(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
|
|
1082
|
+
};
|
|
1083
|
+
var Kn = (e) => e ? " well p-b-0" : "";
|
|
1084
|
+
var Tc = (e) => {
|
|
1087
1085
|
switch (e.width) {
|
|
1088
1086
|
case "xs":
|
|
1089
1087
|
return " col-md-4 col-md-offset-4";
|
|
@@ -1098,21 +1096,21 @@ var require_main_min = __commonJS({
|
|
|
1098
1096
|
return " col-xs-12";
|
|
1099
1097
|
}
|
|
1100
1098
|
};
|
|
1101
|
-
var Ro =
|
|
1102
|
-
var
|
|
1103
|
-
var
|
|
1104
|
-
var
|
|
1099
|
+
var Ro = Lc;
|
|
1100
|
+
var Zn = require("@transferwise/components");
|
|
1101
|
+
var Nc = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
|
|
1102
|
+
var Jn = (e) => {
|
|
1105
1103
|
var r;
|
|
1106
1104
|
let t = e.action.type;
|
|
1107
|
-
return (r = e.control) != null ? r : t ?
|
|
1105
|
+
return (r = e.control) != null ? r : t ? Nc[t] : "secondary";
|
|
1108
1106
|
};
|
|
1109
|
-
var
|
|
1110
|
-
var
|
|
1107
|
+
var Rc = { primary: "neutral", secondary: "neutral", link: "neutral", positive: "positive", negative: "negative" };
|
|
1108
|
+
var Xn = (e) => {
|
|
1111
1109
|
var o;
|
|
1112
|
-
let t = e.action.type, r = (o = e.context) != null ? o : t ?
|
|
1110
|
+
let t = e.action.type, r = (o = e.context) != null ? o : t ? Rc[t] : "neutral";
|
|
1113
1111
|
return r === "neutral" ? "accent" : r;
|
|
1114
1112
|
};
|
|
1115
|
-
var
|
|
1113
|
+
var Yn = (e) => {
|
|
1116
1114
|
switch (e) {
|
|
1117
1115
|
case "xs":
|
|
1118
1116
|
case "sm":
|
|
@@ -1125,233 +1123,233 @@ var require_main_min = __commonJS({
|
|
|
1125
1123
|
return "md";
|
|
1126
1124
|
}
|
|
1127
1125
|
};
|
|
1128
|
-
var
|
|
1129
|
-
var
|
|
1126
|
+
var Qn = require("react/jsx-runtime");
|
|
1127
|
+
var Bc = (e) => {
|
|
1130
1128
|
var u;
|
|
1131
|
-
let { component: t, onAction: r } = e, o = t.action, a =
|
|
1132
|
-
return (0,
|
|
1129
|
+
let { component: t, onAction: r } = e, o = t.action, a = Xn(t), n = Jn(t), { loading: s } = Fr(), l = j(t.margin || "md");
|
|
1130
|
+
return (0, Qn.jsx)(Zn.Button, { size: Yn(t.size), type: a, priority: n, block: true, className: l, disabled: t.disabled || o.disabled || s, onClick: () => r(o), children: (u = t.title) != null ? u : o.title });
|
|
1133
1131
|
};
|
|
1134
|
-
var Bo =
|
|
1132
|
+
var Bo = Bc;
|
|
1135
1133
|
var ct = require("react/jsx-runtime");
|
|
1136
|
-
var
|
|
1137
|
-
let t = e.component, { leftWidth: r, rightWidth: o } =
|
|
1138
|
-
return (0, ct.jsxs)("div", { className: `${
|
|
1134
|
+
var jc = (e) => {
|
|
1135
|
+
let t = e.component, { leftWidth: r, rightWidth: o } = Vc(t.bias);
|
|
1136
|
+
return (0, ct.jsxs)("div", { className: `${j(t.margin || "xs")} row`, children: [(0, ct.jsx)("div", { className: `${r} m-b-0`, children: (0, ct.jsx)(me, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, ct.jsx)("div", { className: `${o} m-b-0`, children: (0, ct.jsx)(me, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
|
|
1139
1137
|
};
|
|
1140
|
-
var
|
|
1141
|
-
var jo =
|
|
1138
|
+
var Vc = (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" };
|
|
1139
|
+
var jo = jc;
|
|
1142
1140
|
var Vr = require("@transferwise/components");
|
|
1143
1141
|
var jr = require("react/jsx-runtime");
|
|
1144
|
-
var
|
|
1145
|
-
var Vo =
|
|
1146
|
-
var
|
|
1147
|
-
var
|
|
1148
|
-
let r = `m-t-0 ${
|
|
1149
|
-
return (0,
|
|
1150
|
-
};
|
|
1151
|
-
var Uo =
|
|
1152
|
-
var
|
|
1142
|
+
var Uc = ({ component: e, onAction: t }) => (0, jr.jsx)("div", { className: j(e.margin), children: (0, jr.jsx)(Vr.NavigationOptionsList, { children: e.options.map((r) => (0, jr.jsx)(Vr.NavigationOption, { title: r.title, content: r.description, disabled: r.disabled, media: mt(r), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(r.action) }, JSON.stringify(r))) }) });
|
|
1143
|
+
var Vo = Uc;
|
|
1144
|
+
var ei = require("react/jsx-runtime");
|
|
1145
|
+
var zc = ({ component: e }) => {
|
|
1146
|
+
let r = `m-t-0 ${j(e.margin)}`;
|
|
1147
|
+
return (0, ei.jsx)("hr", { className: r });
|
|
1148
|
+
};
|
|
1149
|
+
var Uo = zc;
|
|
1150
|
+
var It = require("@transferwise/components");
|
|
1153
1151
|
var Ur = require("react");
|
|
1154
|
-
var
|
|
1155
|
-
var
|
|
1156
|
-
var
|
|
1152
|
+
var oi = require("react-intl");
|
|
1153
|
+
var ti = require("react-intl");
|
|
1154
|
+
var ri = (0, ti.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1157
1155
|
var Xe = require("react/jsx-runtime");
|
|
1158
|
-
var
|
|
1159
|
-
let { requestUrl: r, responseHandlers: o, polling: a, retryTitle: n } = e, s = (0,
|
|
1156
|
+
var Hc = ({ component: e, onAction: t }) => {
|
|
1157
|
+
let { requestUrl: r, responseHandlers: o, polling: a, retryTitle: n } = e, s = (0, oi.useIntl)(), l = (0, Ur.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1160
1158
|
(0, Ur.useEffect)(() => {
|
|
1161
1159
|
l();
|
|
1162
1160
|
}, [l]);
|
|
1163
1161
|
let u = a && o ? b(i({}, a), { responseHandlers: o }) : void 0;
|
|
1164
|
-
return
|
|
1162
|
+
return Nn(u, t), (0, Xe.jsxs)(Xe.Fragment, { children: [(0, Xe.jsx)(It.Loader, { size: It.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Xe.jsx)("br", {}), (0, Xe.jsx)(It.Button, { priority: "tertiary", block: true, onClick: l, children: n || s.formatMessage(ri.retryTitle) })] });
|
|
1165
1163
|
};
|
|
1166
|
-
var zo =
|
|
1164
|
+
var zo = Hc;
|
|
1167
1165
|
var Fs = require("react");
|
|
1168
|
-
var
|
|
1169
|
-
var
|
|
1170
|
-
var
|
|
1171
|
-
var
|
|
1172
|
-
var
|
|
1173
|
-
var
|
|
1174
|
-
var
|
|
1166
|
+
var ai = qe(st());
|
|
1167
|
+
var ni = require("react");
|
|
1168
|
+
var ke = require("react/jsx-runtime");
|
|
1169
|
+
var qc = (e, t) => t.map((r) => ie(e, r) || {});
|
|
1170
|
+
var Gc = (e) => e.reduce((t, r) => i(i({}, r), t), {});
|
|
1171
|
+
var $c = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1172
|
+
var ii = (e) => {
|
|
1175
1173
|
let t = (a, n) => {
|
|
1176
1174
|
let s = e.schema.allOf[a];
|
|
1177
|
-
r[a] = ie(n.model, s) || {}, o(r), e.onChange(b(i({}, n), { model:
|
|
1178
|
-
}, [r, o] = (0,
|
|
1179
|
-
return (0,
|
|
1175
|
+
r[a] = ie(n.model, s) || {}, o(r), e.onChange(b(i({}, n), { model: Gc(r) }));
|
|
1176
|
+
}, [r, o] = (0, ni.useState)(qc(e.model, e.schema.allOf));
|
|
1177
|
+
return (0, ke.jsxs)(ke.Fragment, { children: [e.schema.title && (0, ke.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ke.jsx)("p", { children: e.schema.description }), (0, ke.jsx)("div", { className: "row", children: e.schema.allOf.map((a, n) => (0, ke.jsx)("div", { className: (0, ai.default)($c(a.width)), children: (0, ke.jsx)(ue, { schema: a, model: r[n], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (s) => t(n, b(i({}, s), { model: s.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
|
|
1180
1178
|
};
|
|
1181
|
-
|
|
1182
|
-
var Ho =
|
|
1179
|
+
ii.defaultProps = { disabled: false };
|
|
1180
|
+
var Ho = ii;
|
|
1183
1181
|
var Hr = require("@transferwise/components");
|
|
1184
|
-
var
|
|
1185
|
-
var
|
|
1182
|
+
var wi = qe(st());
|
|
1183
|
+
var rr = require("react");
|
|
1186
1184
|
var zr = require("@transferwise/components");
|
|
1187
1185
|
var qo = require("@transferwise/formatting");
|
|
1186
|
+
var mi = require("react-intl");
|
|
1188
1187
|
var si = require("react-intl");
|
|
1189
|
-
var
|
|
1190
|
-
var he = (0, ii.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
|
|
1188
|
+
var he = (0, si.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
|
|
1191
1189
|
var Re = require("react/jsx-runtime");
|
|
1192
|
-
var
|
|
1190
|
+
var li = (e) => {
|
|
1193
1191
|
var l;
|
|
1194
1192
|
let t = _c(e.schema), r = i(i(i({}, t), e.validationMessages), e.schema.validationMessages), o = (e.submitted || !e.changed) && !!e.errors, a = !o && (e.submitted || e.changed && e.blurred) && !!((l = e.validations) != null && l.length), n = e.focused && e.schema.description && !a, s = !!e.infoMessage;
|
|
1195
|
-
return (0, Re.jsxs)("div", { children: [o ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.errors }) : null, a ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.validations.map((u) => (0, Re.jsx)("div", { children: r[u] }, u)) }) : null, (n || s) && (0, Re.jsxs)(zr.InlineAlert, { type: "info", children: [n && (0, Re.jsx)("div", { children: e.schema.description }), s && (0, Re.jsx)("div", { children: e.infoMessage })] })] });
|
|
1193
|
+
return (0, Re.jsxs)("div", { id: e.id, children: [o ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.errors }) : null, a ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.validations.map((u) => (0, Re.jsx)("div", { children: r[u] }, u)) }) : null, (n || s) && (0, Re.jsxs)(zr.InlineAlert, { type: "info", children: [n && (0, Re.jsx)("div", { children: e.schema.description }), s && (0, Re.jsx)("div", { children: e.infoMessage })] })] });
|
|
1196
1194
|
};
|
|
1197
|
-
|
|
1195
|
+
li.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1198
1196
|
function _c(e) {
|
|
1199
|
-
let { formatMessage: t, locale: r } = (0,
|
|
1197
|
+
let { formatMessage: t, locale: r } = (0, mi.useIntl)(), o = { type: t(he.type), minimum: t(he.minimum, { minimum: e.minimum }), maximum: t(he.maximum, { maximum: e.maximum }), minLength: t(he.minLength, { minLength: e.minLength }), maxLength: t(he.maxLength, { maxLength: e.maxLength }), pattern: t(he.pattern), required: t(he.required) };
|
|
1200
1198
|
if (e.format === "date") {
|
|
1201
1199
|
let a = { pattern: t(he.patternDate), minimum: e.minimum ? t(he.minimumDate, { minimum: (0, qo.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(he.maximumDate, { maximum: (0, qo.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
1202
1200
|
return i(i({}, o), a);
|
|
1203
1201
|
}
|
|
1204
1202
|
return o;
|
|
1205
1203
|
}
|
|
1206
|
-
var Be =
|
|
1207
|
-
async function
|
|
1204
|
+
var Be = li;
|
|
1205
|
+
async function ci(e, t) {
|
|
1208
1206
|
if (t)
|
|
1209
1207
|
return e;
|
|
1210
1208
|
if (e instanceof Blob)
|
|
1211
|
-
return
|
|
1209
|
+
return On(e);
|
|
1212
1210
|
throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
|
|
1213
1211
|
}
|
|
1214
|
-
function
|
|
1212
|
+
function di(e) {
|
|
1215
1213
|
let t = e.data;
|
|
1216
1214
|
return i({ id: t }, e);
|
|
1217
1215
|
}
|
|
1218
|
-
function
|
|
1216
|
+
function ui(e) {
|
|
1219
1217
|
let t = e instanceof Error;
|
|
1220
|
-
if (!(
|
|
1221
|
-
return
|
|
1218
|
+
if (!(N(e) && "data" in e) && !t)
|
|
1219
|
+
return I(e) ? e : void 0;
|
|
1222
1220
|
if (t) {
|
|
1223
1221
|
let a = e;
|
|
1224
1222
|
return { id: Me(), message: a.message };
|
|
1225
1223
|
} else
|
|
1226
|
-
return i({ message:
|
|
1227
|
-
}
|
|
1228
|
-
var
|
|
1229
|
-
var
|
|
1230
|
-
var
|
|
1231
|
-
var
|
|
1232
|
-
var
|
|
1233
|
-
function
|
|
1234
|
-
let { formatMessage: r } = (0,
|
|
1235
|
-
return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(a, { maxItems: e }), minItemsErrorMessage: r(n, { minItems: t }), requiredMessage: r(
|
|
1236
|
-
}
|
|
1237
|
-
var
|
|
1238
|
-
var
|
|
1239
|
-
var
|
|
1240
|
-
let { onChange: t, schema: r } = e, o =
|
|
1224
|
+
return i({ message: I(e.message) ? e.message : "" }, e);
|
|
1225
|
+
}
|
|
1226
|
+
var gi = require("react-intl");
|
|
1227
|
+
var pi = require("react-intl");
|
|
1228
|
+
var fi = (0, pi.defineMessages)({ required: { id: "dynamicFlows.DefaultErrorMessages.required", defaultMessage: "Please fill out this field.", description: "Customer has left the required field empty" } });
|
|
1229
|
+
var yi = require("react-intl");
|
|
1230
|
+
var hi = (0, yi.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." } });
|
|
1231
|
+
function Si({ maxItems: e, minItems: t }) {
|
|
1232
|
+
let { formatMessage: r } = (0, gi.useIntl)(), { maxFileSizeError: o, maxItemsError: a, minItemsError: n } = hi;
|
|
1233
|
+
return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(a, { maxItems: e }), minItemsErrorMessage: r(n, { minItems: t }), requiredMessage: r(fi.required) };
|
|
1234
|
+
}
|
|
1235
|
+
var dt = require("react/jsx-runtime");
|
|
1236
|
+
var Fi = (e) => {
|
|
1237
|
+
var E, R;
|
|
1238
|
+
let { onChange: t, schema: r } = e, o = ee(), a = Si(r), n = (0, rr.useMemo)(() => r.$id || Me(), [r.$id]), [s, l] = (0, rr.useState)(false), [u, d] = (0, rr.useState)(() => Wc(e.model || [])), c = Ci(r.items.persistAsync), h = r.items.persistAsync.schema, f = Mt(h), m = async (x) => {
|
|
1241
1239
|
l(true);
|
|
1242
1240
|
try {
|
|
1243
|
-
let
|
|
1241
|
+
let T = await ci(x, f);
|
|
1244
1242
|
o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
|
|
1245
|
-
let
|
|
1246
|
-
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }),
|
|
1247
|
-
} catch (
|
|
1248
|
-
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(
|
|
1243
|
+
let H = await c(T);
|
|
1244
|
+
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), di(H);
|
|
1245
|
+
} catch (T) {
|
|
1246
|
+
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(ui(T));
|
|
1249
1247
|
}
|
|
1250
1248
|
};
|
|
1251
|
-
function p(
|
|
1252
|
-
if (
|
|
1249
|
+
function p(x) {
|
|
1250
|
+
if (Pn(x, u))
|
|
1253
1251
|
return;
|
|
1254
|
-
|
|
1255
|
-
let
|
|
1256
|
-
t({ model:
|
|
1252
|
+
d(x);
|
|
1253
|
+
let H = bi(x).map((L) => L.id);
|
|
1254
|
+
t({ model: H, triggerSchema: r, triggerModel: H });
|
|
1257
1255
|
}
|
|
1258
|
-
let S =
|
|
1259
|
-
return (0,
|
|
1256
|
+
let S = bi(u).map((x) => x.id), g = Pt(S, r, e.required), w = !!e.errors || (s || e.submitted) && !!g.length, F = "accepts" in h && h.accepts, P = "maxSize" in h && h.maxSize, v = b(i(i({ multiple: true, className: "form-control", files: u, fileInputName: n, id: n }, F ? { fileTypes: F } : void 0), P ? { sizeLimit: Ir(P) } : void 0), { sizeLimitErrorMessage: ((E = h.validationMessages) == null ? void 0 : E.maxSize) || a.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((R = e.schema.validationMessages) == null ? void 0 : R.maxItems) || a.maxItemsErrorMessage, uploadButtonTitle: h.title, description: h.description, disabled: e.disabled, onUploadFile: (x) => m(x.get(n)), onFilesChange: p, onDeleteFile: () => Promise.resolve() }), A = `${n}-feedback`;
|
|
1257
|
+
return (0, dt.jsxs)("div", { className: (0, wi.default)("form-group", { "has-error": w }), children: [(0, dt.jsx)("label", { className: "d-block control-label", htmlFor: n, children: e.schema.title }), (0, dt.jsx)("div", { "aria-describedby": A, children: (0, dt.jsx)(Hr.UploadInput, i({}, v)) }), (0, dt.jsx)(Be, { id: A, changed: s, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: g, validationMessages: Jc(r, !!e.required, a), infoMessage: null, focused: false, blurred: true })] });
|
|
1260
1258
|
};
|
|
1261
|
-
|
|
1262
|
-
var Go =
|
|
1263
|
-
function
|
|
1259
|
+
Fi.defaultProps = { errors: null, required: false };
|
|
1260
|
+
var Go = Fi;
|
|
1261
|
+
function bi(e) {
|
|
1264
1262
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1265
1263
|
}
|
|
1266
|
-
function $c(e) {
|
|
1267
|
-
return e.map((t) => Wc(t) ? { id: t, status: Hr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1268
|
-
}
|
|
1269
1264
|
function Wc(e) {
|
|
1270
|
-
return
|
|
1265
|
+
return e.map((t) => Kc(t) ? { id: t, status: Hr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1266
|
+
}
|
|
1267
|
+
function Kc(e) {
|
|
1268
|
+
return V(e) || I(e);
|
|
1271
1269
|
}
|
|
1272
|
-
function
|
|
1270
|
+
function Jc(e, t, r) {
|
|
1273
1271
|
let { minItems: o, maxItems: a } = e;
|
|
1274
1272
|
return i(i(i({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }), a && { maxItems: r.maxItemsErrorMessage });
|
|
1275
1273
|
}
|
|
1276
1274
|
var Lt = require("@transferwise/components");
|
|
1277
|
-
var
|
|
1278
|
-
var
|
|
1279
|
-
var
|
|
1280
|
-
var
|
|
1281
|
-
var
|
|
1282
|
-
var
|
|
1283
|
-
var vi = require("react-intl");
|
|
1284
|
-
var dt = (0, vi.defineMessages)({ addItemTitle: { id: "dynamicFlows.ArraySchema.addItemTitle", defaultMessage: "Add Item", description: "Label on the button used to open a form to add an item" }, addItem: { id: "dynamicFlows.ArraySchema.addItem", defaultMessage: "Save", description: "Label on the add button used to submit a form that adds an item" }, editItem: { id: "dynamicFlows.ArraySchema.editItem", defaultMessage: "Save", description: "Label on the edit button used to submit a form that edits an item" }, removeItem: { id: "dynamicFlows.ArraySchema.removeItem", defaultMessage: "Remove", description: "Label on the remove button used to confirm deletion of an item" } });
|
|
1275
|
+
var Ii = require("@transferwise/icons");
|
|
1276
|
+
var $r = require("react");
|
|
1277
|
+
var Di = require("react-intl");
|
|
1278
|
+
var xi = require("@transferwise/components");
|
|
1279
|
+
var vi = require("react/jsx-runtime");
|
|
1280
|
+
var Ai = ({ item: e, onClick: t }) => (0, vi.jsx)(xi.NavigationOption, { onClick: t, media: mt(e), title: e.title, content: e.description });
|
|
1285
1281
|
var Oi = require("react-intl");
|
|
1286
|
-
var
|
|
1287
|
-
var
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1282
|
+
var ut = (0, Oi.defineMessages)({ addItemTitle: { id: "dynamicFlows.ArraySchema.addItemTitle", defaultMessage: "Add Item", description: "Label on the button used to open a form to add an item" }, addItem: { id: "dynamicFlows.ArraySchema.addItem", defaultMessage: "Save", description: "Label on the add button used to submit a form that adds an item" }, editItem: { id: "dynamicFlows.ArraySchema.editItem", defaultMessage: "Save", description: "Label on the edit button used to submit a form that edits an item" }, removeItem: { id: "dynamicFlows.ArraySchema.removeItem", defaultMessage: "Remove", description: "Label on the remove button used to confirm deletion of an item" } });
|
|
1283
|
+
var Pi = require("react-intl");
|
|
1284
|
+
var ki = require("react/jsx-runtime");
|
|
1285
|
+
var Xc = ({ type: e, schema: t, model: r, errors: o, submitted: a, onModelChange: n, onAction: s }) => {
|
|
1286
|
+
let { formatMessage: l } = (0, Pi.useIntl)(), u = { layout: [{ type: "form", schema: t.items }, { type: "button", control: "primary", action: { url: e, title: l(e === "add" ? ut.addItem : ut.editItem) } }, ...e === "edit" ? [{ type: "button", context: "negative", action: { url: "remove", title: l(ut.removeItem) } }] : []], title: "", actions: [], schemas: [] };
|
|
1287
|
+
return (0, ki.jsx)(qr, { step: u, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: a, formErrors: o, globalError: null, onAction: (d) => {
|
|
1288
|
+
s(d.url);
|
|
1291
1289
|
}, onModelChange: n });
|
|
1292
1290
|
};
|
|
1293
|
-
var
|
|
1291
|
+
var Mi = Xc;
|
|
1294
1292
|
var Gr = (e, t) => {
|
|
1295
|
-
let r =
|
|
1293
|
+
let r = or(e, t);
|
|
1296
1294
|
if (r >= 0)
|
|
1297
1295
|
return r;
|
|
1298
|
-
if (e.oneOf.length === 1 &&
|
|
1296
|
+
if (e.oneOf.length === 1 && Xt(e.oneOf[0]))
|
|
1299
1297
|
return 0;
|
|
1300
1298
|
if (ye(e.oneOf[0])) {
|
|
1301
|
-
let o =
|
|
1299
|
+
let o = or(e, e.default);
|
|
1302
1300
|
if (o >= 0)
|
|
1303
1301
|
return o;
|
|
1304
1302
|
}
|
|
1305
|
-
return nt(e) &&
|
|
1303
|
+
return nt(e) && $(t) && Object.keys(t).length >= 1 ? Dt(e, t) : nt(e) && !X(e.default) && $(e.default) && Object.keys(e.default).length >= 1 ? Dt(e, e.default) : null;
|
|
1306
1304
|
};
|
|
1307
|
-
var
|
|
1305
|
+
var or = (e, t) => e.oneOf.findIndex((r) => !X(t) && W(t, r));
|
|
1308
1306
|
function Dt(e, t) {
|
|
1309
1307
|
if (t == null)
|
|
1310
1308
|
return null;
|
|
1311
|
-
let r = e.oneOf.map((o) =>
|
|
1309
|
+
let r = e.oneOf.map((o) => Yc(o).reduce((a, [n, s]) => ye(s) && s.const === t[n] ? a + 2 : Xt(s) && typeof t[n] != "undefined" ? a + 1 : a, 0));
|
|
1312
1310
|
return r.every((o) => o === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1313
1311
|
}
|
|
1314
|
-
function
|
|
1312
|
+
function Yc(e) {
|
|
1315
1313
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1316
1314
|
}
|
|
1317
|
-
var
|
|
1318
|
-
let { defaultTitle: o = "", defaultDescription: a = "", defaultIcon: n, defaultImage: s } = r, l = Ye({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Ei }), u = Ye({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Ei }),
|
|
1315
|
+
var $o = (e, t, r = {}) => {
|
|
1316
|
+
let { defaultTitle: o = "", defaultDescription: a = "", defaultIcon: n, defaultImage: s } = r, l = Ye({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Ei }), u = Ye({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Ei }), d = Ye({ schema: e, model: t, providesProp: "providesIcon", getValueFromSchema: (h) => {
|
|
1319
1317
|
var f;
|
|
1320
|
-
return (f =
|
|
1321
|
-
} }),
|
|
1318
|
+
return (f = h.icon) != null ? f : null;
|
|
1319
|
+
} }), c = Ye({ schema: e, model: t, providesProp: "providesImage", getValueFromSchema: (h) => {
|
|
1322
1320
|
var f;
|
|
1323
|
-
return (f =
|
|
1321
|
+
return (f = h.image) != null ? f : null;
|
|
1324
1322
|
} });
|
|
1325
|
-
return { value: t, title: l || o, description: u || a, icon:
|
|
1323
|
+
return { value: t, title: l || o, description: u || a, icon: d || n, image: c || s };
|
|
1326
1324
|
};
|
|
1327
1325
|
var Ye = (e) => {
|
|
1328
1326
|
let { schema: t, model: r, providesProp: o, getValueFromSchema: a } = e;
|
|
1329
|
-
if (
|
|
1327
|
+
if (td(t.summary, o))
|
|
1330
1328
|
return a(t, r);
|
|
1331
1329
|
switch (it(t)) {
|
|
1332
1330
|
case "object":
|
|
1333
|
-
return Yc(e);
|
|
1334
|
-
case "oneOf":
|
|
1335
1331
|
return Zc(e);
|
|
1336
|
-
case "
|
|
1332
|
+
case "oneOf":
|
|
1337
1333
|
return Qc(e);
|
|
1334
|
+
case "allOf":
|
|
1335
|
+
return ed(e);
|
|
1338
1336
|
default:
|
|
1339
1337
|
return null;
|
|
1340
1338
|
}
|
|
1341
1339
|
};
|
|
1342
|
-
var
|
|
1340
|
+
var Zc = (e) => {
|
|
1343
1341
|
let { schema: t, model: r } = e, o = t;
|
|
1344
1342
|
for (let a in o.properties) {
|
|
1345
|
-
let n = o.properties[a], s =
|
|
1343
|
+
let n = o.properties[a], s = $(r) && a in r ? r[a] : null, l = Ye(b(i({}, e), { schema: n, model: s }));
|
|
1346
1344
|
if (l)
|
|
1347
1345
|
return l;
|
|
1348
1346
|
}
|
|
1349
1347
|
return null;
|
|
1350
1348
|
};
|
|
1351
|
-
var
|
|
1349
|
+
var Qc = (e) => {
|
|
1352
1350
|
let { schema: t, model: r } = e;
|
|
1353
1351
|
if (nt(t)) {
|
|
1354
|
-
if (
|
|
1352
|
+
if (!$(r))
|
|
1355
1353
|
return null;
|
|
1356
1354
|
let n = Dt(t, r);
|
|
1357
1355
|
if (n === null || n < 0)
|
|
@@ -1362,7 +1360,7 @@ var require_main_min = __commonJS({
|
|
|
1362
1360
|
let o = t, a = Gr(o, r);
|
|
1363
1361
|
return a === null || a < 0 ? null : Ye(b(i({}, e), { schema: o.oneOf[a] }));
|
|
1364
1362
|
};
|
|
1365
|
-
var
|
|
1363
|
+
var ed = (e) => {
|
|
1366
1364
|
let { schema: t } = e, r = t;
|
|
1367
1365
|
for (let o of r.allOf) {
|
|
1368
1366
|
let a = Ye(b(i({}, e), { schema: o }));
|
|
@@ -1371,30 +1369,30 @@ var require_main_min = __commonJS({
|
|
|
1371
1369
|
}
|
|
1372
1370
|
return null;
|
|
1373
1371
|
};
|
|
1374
|
-
var Ei = (e, t) => ye(e) ? e.title ? e.title :
|
|
1375
|
-
var
|
|
1372
|
+
var Ei = (e, t) => ye(e) ? e.title ? e.title : I(e.const) ? e.const : null : Tr(t) ? t : null;
|
|
1373
|
+
var td = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1376
1374
|
var ge = require("react/jsx-runtime");
|
|
1377
|
-
var
|
|
1378
|
-
let [n, s] = (0,
|
|
1379
|
-
if (
|
|
1375
|
+
var rd = ({ schema: e, model: t, errors: r, submitted: o, onChange: a }) => {
|
|
1376
|
+
let [n, s] = (0, $r.useState)(null), [l, u] = (0, $r.useState)(() => {
|
|
1377
|
+
if (N(t) && !q(t))
|
|
1380
1378
|
throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
|
|
1381
|
-
return t ? t.map((
|
|
1382
|
-
}), [
|
|
1383
|
-
let
|
|
1384
|
-
a({ model:
|
|
1379
|
+
return t ? t.map((g) => $o(e.items, g, e == null ? void 0 : e.summary)) : null;
|
|
1380
|
+
}), [d, c] = (0, $r.useState)({ item: null, model: null }), h = (g) => {
|
|
1381
|
+
let w = g ? g.map(({ value: F }) => F) : null;
|
|
1382
|
+
a({ model: w, triggerSchema: e.items, triggerModel: w });
|
|
1385
1383
|
}, f = () => {
|
|
1386
1384
|
s("add");
|
|
1387
|
-
}, m = (
|
|
1388
|
-
|
|
1389
|
-
}, p = (
|
|
1390
|
-
let
|
|
1391
|
-
u(
|
|
1385
|
+
}, m = (g) => {
|
|
1386
|
+
c({ item: g, model: g.value }), s("edit");
|
|
1387
|
+
}, p = (g) => {
|
|
1388
|
+
let w = g === "remove" ? null : $o(e.items, d.model, e == null ? void 0 : e.summary), F = od(g, { originalItem: d.item, updatedItem: w, itemSummaries: l });
|
|
1389
|
+
u(F), h(F), c({ item: null, model: null }), s(null);
|
|
1392
1390
|
}, y = () => {
|
|
1393
|
-
|
|
1394
|
-
}, { formatMessage: S } = (0,
|
|
1395
|
-
return (0, ge.jsxs)(ge.Fragment, { children: [e.title && (0, ge.jsx)(Lt.Header, { title: e.title }), l && l.map((
|
|
1391
|
+
c({ item: null, model: null }), s(null);
|
|
1392
|
+
}, { formatMessage: S } = (0, Di.useIntl)();
|
|
1393
|
+
return (0, ge.jsxs)(ge.Fragment, { children: [e.title && (0, ge.jsx)(Lt.Header, { title: e.title }), l && l.map((g) => (0, ge.jsx)(Ai, { item: g, onClick: () => m(g) }, JSON.stringify(g))), (0, ge.jsx)(Lt.NavigationOption, { onClick: f, media: (0, ge.jsx)(Ii.Plus, {}), title: e.addItemTitle || S(ut.addItemTitle) }), (0, ge.jsx)(Lt.Modal, { open: n !== null, onClose: y, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || S(ut.addItemTitle), body: (0, ge.jsx)(Mi, { type: n != null ? n : "add", schema: e, model: d.model, errors: r, submitted: o, onAction: p, onModelChange: ({ model: g }) => c(b(i({}, d), { model: g })) }) })] });
|
|
1396
1394
|
};
|
|
1397
|
-
var
|
|
1395
|
+
var od = (e, { originalItem: t, updatedItem: r, itemSummaries: o }) => {
|
|
1398
1396
|
if (e === "remove")
|
|
1399
1397
|
return (o || []).filter((a) => a !== t);
|
|
1400
1398
|
if (!r)
|
|
@@ -1408,70 +1406,70 @@ var require_main_min = __commonJS({
|
|
|
1408
1406
|
return null;
|
|
1409
1407
|
}
|
|
1410
1408
|
};
|
|
1411
|
-
var
|
|
1412
|
-
var
|
|
1413
|
-
var
|
|
1409
|
+
var Li = rd;
|
|
1410
|
+
var _o = require("react/jsx-runtime");
|
|
1411
|
+
var Ti = (e) => {
|
|
1414
1412
|
let { schema: t } = e;
|
|
1415
|
-
if (
|
|
1416
|
-
return (0,
|
|
1413
|
+
if (kn(t))
|
|
1414
|
+
return (0, _o.jsx)(Go, b(i({}, e), { schema: t }));
|
|
1417
1415
|
if (Oe(t))
|
|
1418
|
-
return (0,
|
|
1416
|
+
return (0, _o.jsx)(Li, b(i({}, e), { schema: t }));
|
|
1419
1417
|
throw new Error("Invalid array list schema");
|
|
1420
1418
|
};
|
|
1421
|
-
|
|
1422
|
-
var
|
|
1423
|
-
var
|
|
1424
|
-
var
|
|
1419
|
+
Ti.defaultProps = { errors: null, required: false };
|
|
1420
|
+
var Ni = Ti;
|
|
1421
|
+
var Bi = require("react/jsx-runtime");
|
|
1422
|
+
var Ri = (e) => {
|
|
1425
1423
|
let { schema: t } = e;
|
|
1426
1424
|
if (Oe(t))
|
|
1427
|
-
return (0,
|
|
1425
|
+
return (0, Bi.jsx)(Ni, i({}, e));
|
|
1428
1426
|
throw new Error("Not implemented");
|
|
1429
1427
|
};
|
|
1430
|
-
|
|
1431
|
-
var Wo =
|
|
1432
|
-
var
|
|
1433
|
-
var
|
|
1428
|
+
Ri.defaultProps = { required: false };
|
|
1429
|
+
var Wo = Ri;
|
|
1430
|
+
var ji = qe(st());
|
|
1431
|
+
var _r = require("react");
|
|
1434
1432
|
var je = require("react/jsx-runtime");
|
|
1435
|
-
var
|
|
1436
|
-
var
|
|
1437
|
-
let [t, r] = (0,
|
|
1438
|
-
|
|
1439
|
-
}, a = (
|
|
1440
|
-
(0,
|
|
1441
|
-
let
|
|
1442
|
-
r(
|
|
1433
|
+
var ad = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1434
|
+
var Vi = (e) => {
|
|
1435
|
+
let [t, r] = (0, _r.useState)(() => i({}, ie(e.model, e.schema))), o = (d, c) => {
|
|
1436
|
+
c.model !== null ? t[d] = c.model : delete t[d], r(t), e.onChange(b(i({}, c), { model: t }));
|
|
1437
|
+
}, a = (d) => e.schema.required && e.schema.required.includes(d);
|
|
1438
|
+
(0, _r.useEffect)(() => {
|
|
1439
|
+
let d = ie(t, e.schema) || {};
|
|
1440
|
+
r(d), Ke(d, t) || e.onChange({ model: d, triggerSchema: e.schema, triggerModel: d });
|
|
1443
1441
|
}, [e.schema]);
|
|
1444
|
-
let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (
|
|
1445
|
-
return (0, je.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, je.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, je.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, je.jsx)(se, { component: e.schema.alert }), (0, je.jsx)("div", { className: "row", children: l.map((
|
|
1442
|
+
let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (d) => typeof e.schema.properties[d] != "undefined", l = Array.from(n).filter(s), u = e.errors;
|
|
1443
|
+
return (0, je.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, je.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, je.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, je.jsx)(se, { component: e.schema.alert }), (0, je.jsx)("div", { className: "row", children: l.map((d) => (0, je.jsx)("div", { className: (0, ji.default)(ad(e.schema.properties[d].width)), children: (0, je.jsx)(ue, { schema: e.schema.properties[d], model: e.model && e.model[d], errors: u && u[d], submitted: e.submitted, required: a(d), disabled: e.disabled, onChange: (c) => o(d, c), onPersistAsync: e.onPersistAsync }) }, d)) })] });
|
|
1446
1444
|
};
|
|
1447
|
-
|
|
1448
|
-
var
|
|
1445
|
+
Vi.defaultProps = { hideTitle: false, disabled: false };
|
|
1446
|
+
var ar = Vi;
|
|
1449
1447
|
var Zi = qe(st());
|
|
1450
|
-
var
|
|
1448
|
+
var Ee = require("react");
|
|
1451
1449
|
var Wr = require("@transferwise/components");
|
|
1452
|
-
var
|
|
1453
|
-
var
|
|
1454
|
-
var
|
|
1450
|
+
var Hi = require("react-intl");
|
|
1451
|
+
var Ui = require("react-intl");
|
|
1452
|
+
var zi = (0, Ui.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
|
|
1455
1453
|
var Ko = require("react/jsx-runtime");
|
|
1456
|
-
var
|
|
1457
|
-
let t = (0,
|
|
1458
|
-
return (0, Ko.jsx)(Wr.Info, { className: "m-l-1", content: (0, Ko.jsx)(Wr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(
|
|
1454
|
+
var nd = (e) => {
|
|
1455
|
+
let t = (0, Hi.useIntl)();
|
|
1456
|
+
return (0, Ko.jsx)(Wr.Info, { className: "m-l-1", content: (0, Ko.jsx)(Wr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(zi.helpAria) });
|
|
1459
1457
|
};
|
|
1460
|
-
var Ve =
|
|
1461
|
-
var
|
|
1462
|
-
var
|
|
1458
|
+
var Ve = nd;
|
|
1459
|
+
var Xi = require("react");
|
|
1460
|
+
var K = require("@transferwise/components");
|
|
1463
1461
|
var _i = require("react");
|
|
1464
1462
|
var Tt = (e, t = {}) => {
|
|
1465
1463
|
let { coerceValue: r = false } = t;
|
|
1466
|
-
if (!
|
|
1467
|
-
if (
|
|
1468
|
-
|
|
1464
|
+
if (!k(e)) {
|
|
1465
|
+
if (N(e)) {
|
|
1466
|
+
pt({ received: "object", expected: "string" });
|
|
1469
1467
|
return;
|
|
1470
1468
|
}
|
|
1471
|
-
if (!
|
|
1469
|
+
if (!I(e)) {
|
|
1472
1470
|
if (r)
|
|
1473
1471
|
return Xo({ received: typeof e, expected: "string" }), String(e);
|
|
1474
|
-
|
|
1472
|
+
pt({ received: typeof e, expected: "string" });
|
|
1475
1473
|
return;
|
|
1476
1474
|
}
|
|
1477
1475
|
return e;
|
|
@@ -1479,59 +1477,59 @@ var require_main_min = __commonJS({
|
|
|
1479
1477
|
};
|
|
1480
1478
|
var Jo = (e, t = {}) => {
|
|
1481
1479
|
let { coerceValue: r = false } = t;
|
|
1482
|
-
if (
|
|
1480
|
+
if (k(e))
|
|
1483
1481
|
return;
|
|
1484
|
-
if (
|
|
1482
|
+
if (V(e))
|
|
1485
1483
|
return e;
|
|
1486
1484
|
let o = { received: typeof e, expected: "string or number" };
|
|
1487
|
-
if (
|
|
1488
|
-
|
|
1485
|
+
if (N(e)) {
|
|
1486
|
+
pt(o);
|
|
1489
1487
|
return;
|
|
1490
1488
|
}
|
|
1491
|
-
if (!
|
|
1489
|
+
if (!I(e)) {
|
|
1492
1490
|
if (r)
|
|
1493
1491
|
return Xo(o), String(e);
|
|
1494
|
-
|
|
1492
|
+
pt(o);
|
|
1495
1493
|
return;
|
|
1496
1494
|
}
|
|
1497
1495
|
return e;
|
|
1498
1496
|
};
|
|
1499
|
-
var
|
|
1497
|
+
var qi = (e, t = {}) => {
|
|
1500
1498
|
let { coerceValue: r = false } = t;
|
|
1501
|
-
if (
|
|
1499
|
+
if (k(e))
|
|
1502
1500
|
return false;
|
|
1503
1501
|
if (!ve(e)) {
|
|
1504
1502
|
if (r)
|
|
1505
1503
|
return Xo({ received: typeof e, expected: "boolean" }), !!e;
|
|
1506
|
-
|
|
1504
|
+
pt({ received: typeof e, expected: "boolean" });
|
|
1507
1505
|
return;
|
|
1508
1506
|
}
|
|
1509
1507
|
return e;
|
|
1510
1508
|
};
|
|
1511
|
-
var
|
|
1512
|
-
if (!
|
|
1513
|
-
if (!(e instanceof Date) && !
|
|
1514
|
-
|
|
1509
|
+
var Gi = (e) => {
|
|
1510
|
+
if (!k(e)) {
|
|
1511
|
+
if (!(e instanceof Date) && !I(e)) {
|
|
1512
|
+
pt({ received: typeof e, expected: "string or Date" });
|
|
1515
1513
|
return;
|
|
1516
1514
|
}
|
|
1517
1515
|
return e;
|
|
1518
1516
|
}
|
|
1519
1517
|
};
|
|
1520
|
-
var
|
|
1521
|
-
if (
|
|
1518
|
+
var $i = (e) => {
|
|
1519
|
+
if (k(e))
|
|
1522
1520
|
return null;
|
|
1523
|
-
if (!
|
|
1524
|
-
return
|
|
1525
|
-
let t =
|
|
1521
|
+
if (!I(e))
|
|
1522
|
+
return pt({ received: typeof e, expected: "string", fallback: "null" }), null;
|
|
1523
|
+
let t = xn(e);
|
|
1526
1524
|
return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
|
|
1527
1525
|
};
|
|
1528
1526
|
var Xo = ({ received: e, expected: t }) => {
|
|
1529
1527
|
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.`);
|
|
1530
1528
|
};
|
|
1531
|
-
var
|
|
1529
|
+
var pt = ({ received: e, expected: t, fallback: r = "undefined" }) => {
|
|
1532
1530
|
console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Falling back to ${r}`);
|
|
1533
1531
|
};
|
|
1534
|
-
var
|
|
1532
|
+
var Y = require("react/jsx-runtime");
|
|
1535
1533
|
var Nt = class extends _i.PureComponent {
|
|
1536
1534
|
constructor(r) {
|
|
1537
1535
|
super(r);
|
|
@@ -1559,105 +1557,105 @@ var require_main_min = __commonJS({
|
|
|
1559
1557
|
if (this.props.value !== null && typeof this.props.value != "undefined")
|
|
1560
1558
|
return r2.find((o) => this.props.value === o.value);
|
|
1561
1559
|
};
|
|
1562
|
-
this.mapOption = (r2) => b(i({}, r2), { value:
|
|
1560
|
+
this.mapOption = (r2) => b(i({}, r2), { value: V(r2.value) || I(r2.value) ? r2.value : void 0, secondary: r2.note, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
|
|
1563
1561
|
this.state = { selectedOption: r.selectedOption, touched: false, prevValue: r.value };
|
|
1564
1562
|
}
|
|
1565
1563
|
static getDerivedStateFromProps(r, o) {
|
|
1566
1564
|
return o.prevValue !== r.value ? { prevValue: r.value, value: r.value } : null;
|
|
1567
1565
|
}
|
|
1568
1566
|
render() {
|
|
1569
|
-
var
|
|
1570
|
-
let { name: r, placeholder: o, step: a, countryCode: n, type: s, options: l, disabled: u, readOnly:
|
|
1567
|
+
var L;
|
|
1568
|
+
let { name: r, placeholder: o, step: a, countryCode: n, type: s, options: l, disabled: u, readOnly: d, required: c, minLength: h, maxLength: f, min: m, max: p, searchPlaceholder: y, searchValue: S, onSearchChange: g, size: w, uploadProps: F, label: P, monthFormat: v, id: A, minDate: E, maxDate: R, value: x, mode: T, describedBy: H } = this.props;
|
|
1571
1569
|
switch (s) {
|
|
1572
|
-
case
|
|
1573
|
-
return (0,
|
|
1574
|
-
case
|
|
1575
|
-
return (0,
|
|
1576
|
-
case
|
|
1577
|
-
let
|
|
1578
|
-
return (0,
|
|
1579
|
-
var
|
|
1580
|
-
this.setState({ selectedOption:
|
|
1581
|
-
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange:
|
|
1570
|
+
case U.RADIO:
|
|
1571
|
+
return (0, Y.jsx)(K.RadioGroup, { radios: l.map(this.mapOption), name: r, selectedValue: Jo(x, { coerceValue: true }), onChange: this.handleOnChange });
|
|
1572
|
+
case U.CHECKBOX:
|
|
1573
|
+
return (0, Y.jsx)(K.Checkbox, { checked: qi(x, { coerceValue: true }), disabled: u, label: P, required: c, readOnly: d, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1574
|
+
case U.SELECT: {
|
|
1575
|
+
let O = l.length >= 20;
|
|
1576
|
+
return (0, Y.jsx)(K.Select, { id: A, selected: this.getSelectedOption(l), options: l, search: O, required: c, disabled: u, placeholder: o, searchPlaceholder: y, searchValue: S, onChange: (B) => {
|
|
1577
|
+
var M;
|
|
1578
|
+
this.setState({ selectedOption: B != null ? B : void 0 }), this.props.onChange((M = B == null ? void 0 : B.value) != null ? M : null);
|
|
1579
|
+
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: O ? g : void 0 });
|
|
1582
1580
|
}
|
|
1583
|
-
case
|
|
1584
|
-
return (0,
|
|
1585
|
-
let
|
|
1586
|
-
this.setState({ selectedOption: l.find((
|
|
1587
|
-
} });
|
|
1588
|
-
case B.NUMBER:
|
|
1589
|
-
return (0, X.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: C, max: p, min: m, placeholder: o, readOnly: c, required: d, step: a, type: "number", value: Jo(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (A) => {
|
|
1590
|
-
this.props.onChange(parseFloat(A.target.value));
|
|
1591
|
-
}, onFocus: this.handleOnFocus, onWheel: (A) => {
|
|
1592
|
-
A.target instanceof HTMLElement && A.target.blur();
|
|
1581
|
+
case U.TAB:
|
|
1582
|
+
return (0, Y.jsx)(K.Tabs, { selected: ((L = this.getSelectedOption(l)) == null ? void 0 : L.value) || 0, tabs: l.map((O) => ({ title: O.label, content: (0, Y.jsx)(Y.Fragment, {}), disabled: O.disabled || false })), name: A, onTabSelect: (O) => {
|
|
1583
|
+
let B = !!this.state.selectedOption;
|
|
1584
|
+
this.setState({ selectedOption: l.find((M) => M.value === O) }), this.props.onChange(O, B ? "user" : "init");
|
|
1593
1585
|
} });
|
|
1594
|
-
case
|
|
1595
|
-
return (0,
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1586
|
+
case U.NUMBER:
|
|
1587
|
+
return (0, Y.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: A, max: p, min: m, placeholder: o, readOnly: d, required: c, step: a, type: "number", value: Jo(x, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (O) => {
|
|
1588
|
+
this.props.onChange(parseFloat(O.target.value));
|
|
1589
|
+
}, onFocus: this.handleOnFocus, onWheel: (O) => {
|
|
1590
|
+
O.target instanceof HTMLElement && O.target.blur();
|
|
1591
|
+
}, "aria-describedby": H });
|
|
1592
|
+
case U.HIDDEN:
|
|
1593
|
+
return (0, Y.jsx)("input", { type: "hidden", name: r, value: Tt(x, { coerceValue: true }), id: A });
|
|
1594
|
+
case U.PASSWORD:
|
|
1595
|
+
return (0, Y.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: A, placeholder: o, readOnly: d, required: c, type: "password", value: Tt(x, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus, "aria-describedby": H });
|
|
1596
|
+
case U.DATE:
|
|
1597
|
+
case U.DATETIME:
|
|
1598
|
+
return (0, Y.jsx)(K.DateInput, { disabled: u, size: w, value: Gi(x), mode: T, monthFormat: v, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1599
|
+
case U.DATELOOKUP:
|
|
1600
|
+
return (0, Y.jsx)(K.DateLookup, { value: $i(x), min: E, max: R, placeholder: o, monthFormat: v, disabled: u, onChange: (O) => {
|
|
1601
|
+
this.handleOnChange(An(O));
|
|
1604
1602
|
}, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1605
|
-
case
|
|
1606
|
-
return (0,
|
|
1607
|
-
case
|
|
1608
|
-
let
|
|
1609
|
-
return this.props.displayPattern ? (0,
|
|
1603
|
+
case U.TEL:
|
|
1604
|
+
return (0, Y.jsx)(K.PhoneNumberInput, { disabled: u, countryCode: n, placeholder: o, required: c, searchPlaceholder: y, size: w, initialValue: Tt(x), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1605
|
+
case U.TEXTAREA: {
|
|
1606
|
+
let O = { className: "form-control tw-form-control", id: A, name: r, placeholder: o, value: Tt(x, { coerceValue: true }), readOnly: d, required: c, minLength: h, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: u, autoComplete: this.getAutocompleteStatus() };
|
|
1607
|
+
return this.props.displayPattern ? (0, Y.jsx)(K.TextareaWithDisplayFormat, b(i({ displayPattern: this.props.displayPattern }, O), { onChange: this.handleOnChange })) : (0, Y.jsx)("textarea", b(i({}, O), { onChange: this.handleInputOnChange, "aria-describedby": H }));
|
|
1610
1608
|
}
|
|
1611
|
-
case
|
|
1612
|
-
case
|
|
1613
|
-
return (0,
|
|
1614
|
-
this.handleOnChange(
|
|
1609
|
+
case U.FILE:
|
|
1610
|
+
case U.UPLOAD:
|
|
1611
|
+
return (0, Y.jsx)(K.Upload, b(i({}, F), { usAccept: F.usAccept || "*", usDisabled: F.usDisabled || u, onSuccess: (O) => {
|
|
1612
|
+
this.handleOnChange(O);
|
|
1615
1613
|
}, onFailure: () => {
|
|
1616
1614
|
this.handleOnChange(null);
|
|
1617
1615
|
}, onCancel: () => {
|
|
1618
1616
|
this.handleOnChange(null);
|
|
1619
1617
|
} }));
|
|
1620
|
-
case
|
|
1618
|
+
case U.TEXT:
|
|
1621
1619
|
default: {
|
|
1622
|
-
let
|
|
1623
|
-
return this.props.displayPattern ? (0,
|
|
1620
|
+
let O = { type: "text", className: "form-control", id: A, name: r, placeholder: o, value: Tt(x, { coerceValue: true }), readOnly: d, required: c, minLength: h, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: u, autoComplete: this.getAutocompleteStatus() };
|
|
1621
|
+
return this.props.displayPattern ? (0, Y.jsx)(K.InputWithDisplayFormat, b(i({ displayPattern: this.props.displayPattern }, O), { onChange: this.handleOnChange })) : (0, Y.jsx)("input", b(i({}, O), { onChange: this.handleInputOnChange, "aria-describedby": H }));
|
|
1624
1622
|
}
|
|
1625
1623
|
}
|
|
1626
1624
|
}
|
|
1627
1625
|
};
|
|
1628
1626
|
var Se = Nt;
|
|
1629
|
-
Se.Type =
|
|
1627
|
+
Se.Type = U, Se.Size = Vn, Se.MonthFormat = jn, Se.DateMode = Bn, Se.defaultProps = { autoComplete: true, countryCode: null, disabled: false, displayPattern: null, id: null, label: "", max: null, maxDate: null, maxLength: null, min: null, minDate: null, minLength: null, mode: Nt.DateMode.DAY_MONTH_YEAR, monthFormat: Nt.MonthFormat.LONG, onBlur: null, onFocus: null, onSearchChange: null, options: [], placeholder: null, readOnly: false, required: false, searchPlaceholder: null, searchValue: "", selectedOption: null, size: Nt.Size.MEDIUM, step: 1, type: Nt.Type.TEXT, uploadProps: {}, value: null };
|
|
1630
1628
|
var Ze = require("@transferwise/components");
|
|
1631
1629
|
var be = require("react/jsx-runtime");
|
|
1632
|
-
var
|
|
1630
|
+
var Wi = (e, t) => {
|
|
1633
1631
|
switch (t) {
|
|
1634
1632
|
case "select":
|
|
1635
|
-
return
|
|
1633
|
+
return sd(e);
|
|
1636
1634
|
case "radio":
|
|
1637
1635
|
default:
|
|
1638
|
-
return
|
|
1636
|
+
return id(e);
|
|
1639
1637
|
}
|
|
1640
1638
|
};
|
|
1641
|
-
var
|
|
1642
|
-
var
|
|
1643
|
-
var
|
|
1644
|
-
var
|
|
1645
|
-
var
|
|
1639
|
+
var id = (e) => i(i(i({ label: e.title, value: e.const }, Ki(e.title, e.description)), Rt(e)), Ji(e.disabled));
|
|
1640
|
+
var sd = (e) => i(i(i(i(i({ label: e.title, value: e.const }, Ki(e.title, e.description)), cd(e.icon)), ld(e.image)), Ji(e.disabled)), md(e.keywords));
|
|
1641
|
+
var md = (e) => q(e) ? { searchStrings: e } : {};
|
|
1642
|
+
var ld = (e) => e != null && e.url ? { icon: (0, be.jsx)("div", { className: "media", children: (0, be.jsx)("div", { className: "np-option__no-media-circle", children: (0, be.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
|
|
1643
|
+
var cd = (e) => e != null && e.name && kt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && No(e.name) ? { icon: (0, be.jsx)(Je, { type: e.name }) } : e != null && e.text ? { icon: (0, be.jsx)("span", { children: e.text }) } : null;
|
|
1646
1644
|
var Rt = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, be.jsx)(Ze.Avatar, { type: Ze.AvatarType.THUMBNAIL, children: (0, be.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && No(t.name) ? { avatar: (0, be.jsx)(Ze.Avatar, { type: Ze.AvatarType.ICON, children: (0, be.jsx)(Je, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, be.jsx)(Ze.Avatar, { type: Ze.AvatarType.INITIALS, children: t.text }) } : null;
|
|
1647
|
-
var Kr = ({ accepts: e }) => i({},
|
|
1648
|
-
var
|
|
1645
|
+
var Kr = ({ accepts: e }) => i({}, q(e) && { usAccept: e.join(",") });
|
|
1646
|
+
var Ki = (e, t) => {
|
|
1649
1647
|
if (e && t)
|
|
1650
1648
|
return { [(e + t).length > 50 ? "secondary" : "note"]: t };
|
|
1651
1649
|
};
|
|
1652
|
-
var
|
|
1653
|
-
if (!
|
|
1650
|
+
var Ji = (e) => {
|
|
1651
|
+
if (!X(e) && !k(e))
|
|
1654
1652
|
return { disabled: e };
|
|
1655
1653
|
};
|
|
1656
|
-
var
|
|
1657
|
-
var
|
|
1658
|
-
var
|
|
1654
|
+
var Yo = require("react/jsx-runtime");
|
|
1655
|
+
var dd = (e) => e === "string" || e === "number";
|
|
1656
|
+
var Zo = (e) => {
|
|
1659
1657
|
if (fe(e))
|
|
1660
|
-
return e.control ===
|
|
1658
|
+
return e.control === U.TAB && e.oneOf.length > 3 ? U.SELECT : e.oneOf.length === 2 && !e.control ? U.RADIO : e.control || U.SELECT;
|
|
1661
1659
|
if ("control" in e && e.control)
|
|
1662
1660
|
return e.control;
|
|
1663
1661
|
if (e.type === "string")
|
|
@@ -1675,122 +1673,122 @@ var require_main_min = __commonJS({
|
|
|
1675
1673
|
}
|
|
1676
1674
|
return e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1677
1675
|
};
|
|
1678
|
-
var
|
|
1679
|
-
var
|
|
1680
|
-
let { id: t, schema: r, value: o, disabled: a, onChange: n, onFocus: s, onBlur: l, onSearchChange: u } = e, c =
|
|
1681
|
-
n(
|
|
1682
|
-
},
|
|
1683
|
-
(0,
|
|
1684
|
-
|
|
1685
|
-
}, [JSON.stringify(r), c,
|
|
1686
|
-
let
|
|
1687
|
-
return (0,
|
|
1688
|
-
};
|
|
1689
|
-
|
|
1690
|
-
var
|
|
1676
|
+
var ud = (e, t) => e.oneOf ? e.oneOf.map((r) => Wi(r, t)) : null;
|
|
1677
|
+
var Yi = (e) => {
|
|
1678
|
+
let { id: t, schema: r, value: o, disabled: a, onChange: n, onFocus: s, onBlur: l, onSearchChange: u, describedBy: d } = e, c = At(), h = (w) => dd(r.type) && (k(w) || X(w)) ? "" : w, f = (w, F) => {
|
|
1679
|
+
n($e(w, r), F);
|
|
1680
|
+
}, m = Zo(r);
|
|
1681
|
+
(0, Xi.useEffect)(() => {
|
|
1682
|
+
pd(r, c, m);
|
|
1683
|
+
}, [JSON.stringify(r), c, m]);
|
|
1684
|
+
let p = r.values || ud(r, m), y = { onFocus: s, onBlur: l, onSearchChange: u, onChange: f }, S = h(o), g = { id: t, name: t, label: r.title, options: p || [], placeholder: r.placeholder, autoComplete: !r.help, disabled: a || r.disabled, displayPattern: r.displayFormat, uploadProps: Kr(r), describedBy: d };
|
|
1685
|
+
return (0, Yo.jsx)("div", { "aria-describedby": d, children: (0, Yo.jsx)(Se, i(i({ type: m, value: S }, y), g)) });
|
|
1686
|
+
};
|
|
1687
|
+
Yi.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1688
|
+
var pd = (e, t, r) => {
|
|
1691
1689
|
fe(e) && e.oneOf.length === 2 && !e.control && t.warning("Deprecation warning", 'A oneOf schema with 2 options and no control type currently renders as a "radio" but will be changed to render as a "select". Please specify control radio to retain the existing behaviour.'), r === "file" && t.warning("Deprecation warning", "Please use a persist-async blob schema instead of string with base64url for file uploads. The base64url does not perform well on low end devices. Support for this schema will be removed in a later release."), e.values && t.warning("Deprecated schema", "Schema.values is a legacy approach. Please use oneOf.");
|
|
1692
1690
|
};
|
|
1693
|
-
var
|
|
1691
|
+
var nr = Yi;
|
|
1694
1692
|
var oe = require("react/jsx-runtime");
|
|
1695
1693
|
var Qi = (e) => {
|
|
1696
|
-
let t =
|
|
1697
|
-
m("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength:
|
|
1694
|
+
let t = ee(), [r, o] = (0, Ee.useState)(false), [a, n] = (0, Ee.useState)(false), [s, l] = (0, Ee.useState)(false), u = (0, Ee.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), [d, c] = (0, Ee.useState)(Gr(e.schema, e.model)), [h, f] = (0, Ee.useState)(gd(e.model, e.schema.oneOf)), m = Ln(t, 200), p = (E) => {
|
|
1695
|
+
m("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: E.length });
|
|
1698
1696
|
};
|
|
1699
|
-
if ((0,
|
|
1700
|
-
let
|
|
1701
|
-
|
|
1702
|
-
}, [e.schema]), !
|
|
1697
|
+
if ((0, Ee.useEffect)(() => {
|
|
1698
|
+
let E = or(e.schema, e.model), R = or(e.schema, e.schema.default);
|
|
1699
|
+
E === -1 && R >= 0 && w(R, "init");
|
|
1700
|
+
}, [e.schema]), !q(e.schema.oneOf))
|
|
1703
1701
|
return console.error("Incorrect format", e.schema), null;
|
|
1704
|
-
let y = (
|
|
1705
|
-
f([...
|
|
1702
|
+
let y = (E, R) => {
|
|
1703
|
+
f([...h.slice(0, E), R.model, ...h.slice(E + 1)]), o(true), e.onChange(R);
|
|
1706
1704
|
}, S = () => {
|
|
1707
1705
|
n(true);
|
|
1708
|
-
},
|
|
1706
|
+
}, g = () => {
|
|
1709
1707
|
n(false), l(true);
|
|
1710
|
-
},
|
|
1711
|
-
|
|
1712
|
-
let
|
|
1713
|
-
if (ye(
|
|
1714
|
-
let
|
|
1715
|
-
e.onChange({ model:
|
|
1708
|
+
}, w = (E, R) => {
|
|
1709
|
+
c(E);
|
|
1710
|
+
let x = e.schema.oneOf[E];
|
|
1711
|
+
if (ye(x)) {
|
|
1712
|
+
let T = x.const;
|
|
1713
|
+
e.onChange({ model: T, triggerSchema: e.schema, triggerModel: T, type: R });
|
|
1716
1714
|
} else
|
|
1717
|
-
e.onChange({ model:
|
|
1718
|
-
|
|
1719
|
-
},
|
|
1720
|
-
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 || ye(e.schema.oneOf[0])) && (0, oe.jsxs)(oe.Fragment, { children: [(0, oe.jsxs)("div", { className: (0, Zi.default)(
|
|
1715
|
+
e.onChange({ model: h[E], triggerSchema: x, triggerModel: h[E], type: R });
|
|
1716
|
+
R !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: x == null ? void 0 : x.analyticsId });
|
|
1717
|
+
}, F = Sd(e.schema), P = yd(e, d), v = { "form-group": true, "has-error": !r && e.errors && !vt(e.errors) || (e.submitted || r && s) && P.length }, A = `${u}-feedback`;
|
|
1718
|
+
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 || ye(e.schema.oneOf[0])) && (0, oe.jsxs)(oe.Fragment, { children: [(0, oe.jsxs)("div", { className: (0, Zi.default)(v), children: [fd(e.schema, u), (0, oe.jsx)(nr, { id: u, schema: F, value: d, disabled: e.disabled, onChange: w, onFocus: S, onBlur: g, onSearchChange: p, describedBy: A }), (0, oe.jsx)(Be, { id: A, changed: r, focused: a, blurred: s, submitted: e.submitted, errors: hd(e.errors), schema: e.schema, validations: P, infoMessage: null })] }), e.schema.alert && (0, oe.jsx)(se, { component: e.schema.alert })] }), Xt(e.schema.oneOf[d]) && (0, oe.jsx)(ue, { schema: e.schema.oneOf[d], model: h[d], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (E) => y(d, E), onPersistAsync: e.onPersistAsync })] });
|
|
1721
1719
|
};
|
|
1722
|
-
function
|
|
1720
|
+
function fd(e, t) {
|
|
1723
1721
|
let r = e.help ? (0, oe.jsx)(Ve, { help: e.help }) : null, o = ye(e.oneOf[0]) ? (0, oe.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) : (0, oe.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] });
|
|
1724
1722
|
return e.title ? o : r;
|
|
1725
1723
|
}
|
|
1726
|
-
function
|
|
1724
|
+
function yd(e, t) {
|
|
1727
1725
|
let r = e.schema.oneOf[t != null ? t : -1];
|
|
1728
|
-
return ye(r) ?
|
|
1726
|
+
return ye(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
|
|
1729
1727
|
}
|
|
1730
|
-
function
|
|
1728
|
+
function hd(e) {
|
|
1731
1729
|
return typeof e == "string" ? e : null;
|
|
1732
1730
|
}
|
|
1733
|
-
function
|
|
1734
|
-
return t.map((r) =>
|
|
1731
|
+
function gd(e, t) {
|
|
1732
|
+
return t.map((r) => Ot(e, r));
|
|
1735
1733
|
}
|
|
1736
|
-
function
|
|
1737
|
-
return b(i({}, e), { oneOf: e.oneOf.map(
|
|
1734
|
+
function Sd(e) {
|
|
1735
|
+
return b(i({}, e), { oneOf: e.oneOf.map(bd) });
|
|
1738
1736
|
}
|
|
1739
|
-
function
|
|
1737
|
+
function bd(e, t) {
|
|
1740
1738
|
let { title: r, description: o, disabled: a = false, icon: n, image: s, keywords: l } = e;
|
|
1741
1739
|
return { title: r, description: o, disabled: a, icon: n, image: s, const: t, keywords: l };
|
|
1742
1740
|
}
|
|
1743
1741
|
Qi.defaultProps = { required: false, disabled: false };
|
|
1744
|
-
var
|
|
1742
|
+
var Qo = Qi;
|
|
1745
1743
|
var os = qe(st());
|
|
1746
|
-
var
|
|
1744
|
+
var ft = require("react");
|
|
1747
1745
|
var Jr = require("@transferwise/components");
|
|
1748
1746
|
var es = require("react");
|
|
1749
1747
|
var rs = require("react/jsx-runtime");
|
|
1750
1748
|
var ts = (e) => {
|
|
1751
|
-
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: a, idProperty: n, usAccept: s, maxSize: l, usPlaceholder: u, onSuccess:
|
|
1752
|
-
return (0, rs.jsx)(Jr.UploadInput, { id: t, fileInputName: o.fileInputName, files: m, uploadButtonTitle: e.usLabel, sizeLimit: l ? Ir(l) : void 0, fileTypes: s, description: u, onUploadFile: p, onDeleteFile: (y) => (
|
|
1749
|
+
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: a, idProperty: n, usAccept: s, maxSize: l, usPlaceholder: u, onSuccess: d, onFailure: c, onCancel: h } = e, f = ee(), m = (0, es.useMemo)(() => a ? [{ id: a, status: Jr.Status.SUCCEEDED }] : [], [a]), p = (y) => (f("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(`${o.url}`, { method: o.method || "POST", body: y }).then((S) => S.ok ? (d && d(S.clone()), S.json().then((g) => ({ id: g[n] }))) : (c && c({ response: S }), Promise.reject())));
|
|
1750
|
+
return (0, rs.jsx)(Jr.UploadInput, { id: t, fileInputName: o.fileInputName, files: m, uploadButtonTitle: e.usLabel, sizeLimit: l ? Ir(l) : void 0, fileTypes: s, description: u, onUploadFile: p, onDeleteFile: (y) => (h && h(), Promise.resolve()) });
|
|
1753
1751
|
};
|
|
1754
|
-
var
|
|
1752
|
+
var Bt = require("react/jsx-runtime");
|
|
1755
1753
|
var as = (e) => {
|
|
1756
|
-
let [t, r] = (0,
|
|
1757
|
-
(0,
|
|
1758
|
-
e.submitted && s(
|
|
1754
|
+
let [t, r] = (0, ft.useState)({}), [o, a] = (0, ft.useState)(null), [n, s] = (0, ft.useState)([]), [l, u] = (0, ft.useState)(false), d = te(), c = ee();
|
|
1755
|
+
(0, ft.useEffect)(() => {
|
|
1756
|
+
e.submitted && s(_e(e.model, e.schema, !!e.required));
|
|
1759
1757
|
}, [e.model, e.submitted]);
|
|
1760
|
-
let f = async (
|
|
1761
|
-
let
|
|
1762
|
-
e.onChange({ model:
|
|
1763
|
-
}, m = async (
|
|
1764
|
-
if (
|
|
1765
|
-
let
|
|
1766
|
-
r(
|
|
1758
|
+
let f = async (v, A) => {
|
|
1759
|
+
let E = await v.json(), R = ra(e.schema.persistAsync.idProperty, E);
|
|
1760
|
+
e.onChange({ model: R, triggerSchema: e.schema, triggerModel: R }), u(true), c("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
|
|
1761
|
+
}, m = async (v) => {
|
|
1762
|
+
if (v.response && xr(v.response.status)) {
|
|
1763
|
+
let A = await v.response.json();
|
|
1764
|
+
r(A.validation || {}), a([e.schema.persistAsync.param]);
|
|
1767
1765
|
}
|
|
1768
|
-
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true),
|
|
1766
|
+
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true), c("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
|
|
1769
1767
|
}, p = () => {
|
|
1770
1768
|
a(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true);
|
|
1771
|
-
}, { url: y, method: S } = e.schema.persistAsync,
|
|
1772
|
-
return (0,
|
|
1769
|
+
}, { url: y, method: S } = e.schema.persistAsync, g = o || n, w = { "form-group": true, "has-error": (e.submitted || l) && !!g.length }, F = e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, P = `${F}-feedback`;
|
|
1770
|
+
return (0, Bt.jsxs)("div", { className: (0, os.default)(w), children: [(0, Bt.jsx)("div", { "aria-describedby": P, children: (0, Bt.jsx)(ts, i({ id: F, fileId: e.model, idProperty: e.schema.persistAsync.idProperty, animationDelay: 0, maxSize: e.schema.persistAsync.schema.maxSize, usLabel: e.schema.title || e.schema.persistAsync.schema.title, usPlaceholder: e.schema.description || e.schema.persistAsync.schema.description, httpOptions: { url: y, method: S, fileInputName: e.schema.persistAsync.param }, httpClient: d, onSuccess: f, onFailure: m, onCancel: p }, Kr(e.schema.persistAsync.schema))) }), (0, Bt.jsx)(Be, { id: P, blurred: true, focused: false, changed: l, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: g, validationMessages: i({ required: "Value is required..." }, t), infoMessage: null })] });
|
|
1773
1771
|
};
|
|
1774
1772
|
as.defaultProps = { required: false };
|
|
1775
|
-
var
|
|
1776
|
-
var
|
|
1773
|
+
var ta = as;
|
|
1774
|
+
var oa = require("react/jsx-runtime");
|
|
1777
1775
|
var ns = (e) => {
|
|
1778
1776
|
let { schema: t } = e;
|
|
1779
|
-
return t.persistAsync.schema.type === "blob" ? (0,
|
|
1777
|
+
return t.persistAsync.schema.type === "blob" ? (0, oa.jsx)(ta, i({}, e)) : (0, oa.jsx)(ea, i({}, e));
|
|
1780
1778
|
};
|
|
1781
1779
|
ns.defaultProps = { required: false };
|
|
1782
|
-
var
|
|
1780
|
+
var aa = ns;
|
|
1783
1781
|
var ys = require("react");
|
|
1784
1782
|
var is = (e, t) => {
|
|
1785
1783
|
let r = Dt(e, t);
|
|
1786
1784
|
return r !== null ? e.oneOf[r].promoted ? "promoted" : "other" : null;
|
|
1787
1785
|
};
|
|
1788
1786
|
var ss = require("@transferwise/components");
|
|
1789
|
-
var
|
|
1787
|
+
var na = require("react/jsx-runtime");
|
|
1790
1788
|
var ms = (e) => {
|
|
1791
|
-
let { id: t, selection: r, setSelection: o } = e, { promoted: a, other: n, checkedMeans: s } = e.promotion, l = s === "other" ? n.title : (a == null ? void 0 : a.title) || e.promotedOneOf.title, u = s === "other" ? "other" : "promoted",
|
|
1792
|
-
return (0,
|
|
1793
|
-
o(
|
|
1789
|
+
let { id: t, selection: r, setSelection: o } = e, { promoted: a, other: n, checkedMeans: s } = e.promotion, l = s === "other" ? n.title : (a == null ? void 0 : a.title) || e.promotedOneOf.title, u = s === "other" ? "other" : "promoted", d = s === "other" ? "promoted" : "other", c = r === u;
|
|
1790
|
+
return (0, na.jsx)("div", { className: "form-group", children: (0, na.jsx)(ss.Checkbox, { id: t, label: l, checked: c, onChange: () => {
|
|
1791
|
+
o(c ? d : u);
|
|
1794
1792
|
} }) });
|
|
1795
1793
|
};
|
|
1796
1794
|
ms.defaultProps = {};
|
|
@@ -1798,332 +1796,332 @@ var require_main_min = __commonJS({
|
|
|
1798
1796
|
var cs = require("@transferwise/components");
|
|
1799
1797
|
var ir = require("react/jsx-runtime");
|
|
1800
1798
|
var ds = (e) => {
|
|
1801
|
-
var u,
|
|
1802
|
-
let { id: t, selection: r, setSelection: o, promotion: a, promotedOneOf: n, title: s } = e, l = [i({ value: "promoted", label: ((u = a.promoted) == null ? void 0 : u.title) || n.title, secondary: ((
|
|
1799
|
+
var u, d;
|
|
1800
|
+
let { id: t, selection: r, setSelection: o, promotion: a, promotedOneOf: n, title: s } = e, l = [i({ value: "promoted", label: ((u = a.promoted) == null ? void 0 : u.title) || n.title, secondary: ((d = a.promoted) == null ? void 0 : d.description) || n.description }, Rt(n)), i({ value: "other", label: a.other.title, secondary: a.other.description }, Rt(a.other))];
|
|
1803
1801
|
return (0, ir.jsxs)("div", { className: "form-group", children: [s && (0, ir.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, ir.jsx)(cs.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: l, id: t, onChange: o })] });
|
|
1804
1802
|
};
|
|
1805
1803
|
ds.defaultProps = { title: void 0 };
|
|
1806
1804
|
var us = ds;
|
|
1807
|
-
var
|
|
1805
|
+
var jt = require("react/jsx-runtime");
|
|
1808
1806
|
var ps = (e) => {
|
|
1809
1807
|
switch (e.promotion.control || "radio") {
|
|
1810
1808
|
case "radio":
|
|
1811
|
-
return (0,
|
|
1809
|
+
return (0, jt.jsx)(us, i({}, e));
|
|
1812
1810
|
case "checkbox":
|
|
1813
|
-
return (0,
|
|
1811
|
+
return (0, jt.jsx)(ls, i({}, e));
|
|
1814
1812
|
default:
|
|
1815
|
-
return (0,
|
|
1813
|
+
return (0, jt.jsx)(jt.Fragment, {});
|
|
1816
1814
|
}
|
|
1817
1815
|
};
|
|
1818
1816
|
ps.defaultProps = { id: Me(), title: void 0 };
|
|
1819
1817
|
var fs = ps;
|
|
1820
1818
|
var Ue = require("react/jsx-runtime");
|
|
1821
1819
|
var hs = (e) => e.promoted === true;
|
|
1822
|
-
var
|
|
1820
|
+
var wd = (e) => {
|
|
1823
1821
|
var l;
|
|
1824
|
-
let [t, r] = (0, ys.useState)(is(e.schema, e.model) || ((l = e.schema.promotion) == null ? void 0 : l.default) || "promoted"), o = e.schema.alert, a = e.schema.oneOf.find(hs), n =
|
|
1825
|
-
return (0, Ue.jsxs)(Ue.Fragment, { children: [o && (0, Ue.jsx)(se, { component: o }), (0, Ue.jsx)(fs, { id: e.schema.$id, title: e.schema.title, promotedOneOf: a, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ue.jsx)(
|
|
1822
|
+
let [t, r] = (0, ys.useState)(is(e.schema, e.model) || ((l = e.schema.promotion) == null ? void 0 : l.default) || "promoted"), o = e.schema.alert, a = e.schema.oneOf.find(hs), n = Fd(a), s = Cd(e.schema);
|
|
1823
|
+
return (0, Ue.jsxs)(Ue.Fragment, { children: [o && (0, Ue.jsx)(se, { component: o }), (0, Ue.jsx)(fs, { id: e.schema.$id, title: e.schema.title, promotedOneOf: a, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ue.jsx)(ar, b(i({}, e), { schema: n })), t === "other" && (0, Ue.jsx)(ue, b(i({}, e), { schema: s }))] });
|
|
1826
1824
|
};
|
|
1827
|
-
function
|
|
1825
|
+
function Fd(e) {
|
|
1828
1826
|
return b(i({}, e), { title: void 0, description: void 0 });
|
|
1829
1827
|
}
|
|
1830
|
-
function
|
|
1828
|
+
function Cd(e) {
|
|
1831
1829
|
var o, a, n;
|
|
1832
1830
|
let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((s) => !hs(s)), r = (n = (a = e.promotion) == null ? void 0 : a.other.heading) == null ? void 0 : n.text;
|
|
1833
1831
|
return t.length === 1 ? b(i({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
|
|
1834
1832
|
}
|
|
1835
|
-
var
|
|
1833
|
+
var ia = wd;
|
|
1836
1834
|
var Xr = require("@transferwise/components");
|
|
1837
1835
|
var Ss = require("react-intl");
|
|
1838
1836
|
var gs = require("react-intl");
|
|
1839
|
-
var
|
|
1840
|
-
var
|
|
1841
|
-
var
|
|
1842
|
-
let { title: r = "" } = e, { formatMessage: o } = (0, Ss.useIntl)(), a =
|
|
1843
|
-
return (0,
|
|
1837
|
+
var sa = (0, gs.defineMessages)({ yes: { id: "dynamicFlows.ReadOnlySchema.yes", defaultMessage: "Yes", description: "Yes, used for boolean schemas with a value of true." }, no: { id: "dynamicFlows.ReadOnlySchema.no", defaultMessage: "No", description: "No: used for boolean schemas with a value of false." } });
|
|
1838
|
+
var Vt = require("react/jsx-runtime");
|
|
1839
|
+
var xd = ({ schema: e, model: t }) => {
|
|
1840
|
+
let { title: r = "" } = e, { formatMessage: o } = (0, Ss.useIntl)(), a = Ad({ schema: e, model: t, formatMessage: o });
|
|
1841
|
+
return (0, Vt.jsx)(Xr.DefinitionList, { layout: Xr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: a, key: "" }] });
|
|
1844
1842
|
};
|
|
1845
|
-
var
|
|
1846
|
-
function
|
|
1847
|
-
return Te(e) ? fe(e) ?
|
|
1848
|
-
}
|
|
1849
|
-
function Ad(e, t) {
|
|
1850
|
-
let r = vd(e, t);
|
|
1851
|
-
return r ? Od(r) : t;
|
|
1843
|
+
var ma = xd;
|
|
1844
|
+
function Ad({ schema: e, model: t, formatMessage: r }) {
|
|
1845
|
+
return Te(e) ? fe(e) ? vd(e, t) : e.type === "boolean" && ve(t) ? r(t ? sa.yes : sa.no) : t && t.toString() || "" : "";
|
|
1852
1846
|
}
|
|
1853
1847
|
function vd(e, t) {
|
|
1848
|
+
let r = Od(e, t);
|
|
1849
|
+
return r ? Pd(r) : t;
|
|
1850
|
+
}
|
|
1851
|
+
function Od(e, t) {
|
|
1854
1852
|
return e.oneOf.find((r) => "const" in r ? t === r.const : false);
|
|
1855
1853
|
}
|
|
1856
|
-
function
|
|
1854
|
+
function Pd(e) {
|
|
1857
1855
|
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Rt({ icon: e.icon });
|
|
1858
|
-
return r != null && r.avatar ? (0,
|
|
1856
|
+
return r != null && r.avatar ? (0, Vt.jsxs)(Vt.Fragment, { children: [r.avatar, " ", t] }) : t;
|
|
1859
1857
|
}
|
|
1860
1858
|
var Ie = require("react");
|
|
1861
1859
|
var ws = require("react/jsx-runtime");
|
|
1862
1860
|
var bs = (e) => {
|
|
1863
|
-
let { schema: t, model: r, required: o, submitted: a, errors: n, onChange: s } = e, [l, u] = (0, Ie.useState)(r),
|
|
1861
|
+
let { schema: t, model: r, required: o, submitted: a, errors: n, onChange: s } = e, [l, u] = (0, Ie.useState)(r), d = (0, Ie.useRef)(null), [c, h] = (0, Ie.useState)(null), [f, m] = (0, Ie.useState)(null), [p, y] = (0, Ie.useState)(false), [S, g] = (0, Ie.useState)(null), w = te(), F = ee(), P = At();
|
|
1864
1862
|
(0, Ie.useEffect)(() => {
|
|
1865
|
-
t.validationAsync.method ||
|
|
1866
|
-
}, [
|
|
1867
|
-
let
|
|
1868
|
-
let
|
|
1869
|
-
|
|
1870
|
-
let
|
|
1863
|
+
t.validationAsync.method || P.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {});
|
|
1864
|
+
}, [P, t.validationAsync.method]);
|
|
1865
|
+
let v = async (T, H) => {
|
|
1866
|
+
let L = A(), O = { [H.param]: T };
|
|
1867
|
+
d.current = T, y(true), F("Dynamic Flow - ValidationAsync", { status: "pending" });
|
|
1868
|
+
let B = await w(H.url, { method: H.method || "POST", headers: { "Content-Type": "application/json" }, body: H.method === "GET" ? void 0 : JSON.stringify(O), signal: L });
|
|
1871
1869
|
try {
|
|
1872
|
-
let
|
|
1873
|
-
if (!
|
|
1870
|
+
let M = await B.json();
|
|
1871
|
+
if (!N(M))
|
|
1874
1872
|
throw new Error("Response body is not an object");
|
|
1875
|
-
|
|
1876
|
-
} catch (
|
|
1877
|
-
|
|
1873
|
+
F("Dynamic Flow - ValidationAsync", { status: "success" }), B.status === 200 ? h(I(M.message) ? M.message : null) : B.status === 422 && m(I(M.message) ? M.message : null);
|
|
1874
|
+
} catch (M) {
|
|
1875
|
+
F("Dynamic Flow - ValidationAsync", { status: "failure" });
|
|
1878
1876
|
}
|
|
1879
|
-
},
|
|
1877
|
+
}, A = () => {
|
|
1880
1878
|
S && S.abort();
|
|
1881
|
-
let
|
|
1882
|
-
return
|
|
1879
|
+
let T = new AbortController();
|
|
1880
|
+
return g(T), T.signal;
|
|
1883
1881
|
};
|
|
1884
|
-
return (0, ws.jsx)(
|
|
1885
|
-
s(b(i({},
|
|
1882
|
+
return (0, ws.jsx)(yt, i({}, { submitted: a || p, model: l, errors: f || n, infoMessage: c, onChange: (T) => {
|
|
1883
|
+
s(b(i({}, T), { triggerSchema: t, triggerModel: T.model })), m(null), h(null), u(T.model);
|
|
1886
1884
|
}, onBlur: () => {
|
|
1887
|
-
!
|
|
1885
|
+
!k(l) && !Ke(l, d.current) && W(l, t) && v(l, t.validationAsync);
|
|
1888
1886
|
}, required: o, schema: t }));
|
|
1889
1887
|
};
|
|
1890
1888
|
bs.defaultProps = { required: false };
|
|
1891
|
-
var
|
|
1889
|
+
var la = bs;
|
|
1892
1890
|
var pe = require("react/jsx-runtime");
|
|
1893
1891
|
var Cs = require("react");
|
|
1894
|
-
var
|
|
1895
|
-
let { schema: t, model: r = null, errors: o = null, hideTitle: a = false, disabled: n = false } = e, s = b(i({}, e), { model: r, errors: o, hideTitle: a, disabled: n }), l = it(t), u =
|
|
1892
|
+
var Md = (e) => {
|
|
1893
|
+
let { schema: t, model: r = null, errors: o = null, hideTitle: a = false, disabled: n = false } = e, s = b(i({}, e), { model: r, errors: o, hideTitle: a, disabled: n }), l = it(t), u = At();
|
|
1896
1894
|
switch ((0, Fs.useEffect)(() => {
|
|
1897
|
-
|
|
1895
|
+
kd(t, r, o) || u.error("Invalid schema or model", `Schema of type ${l || "undefined"} requested, but schema did not pass validation.`);
|
|
1898
1896
|
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(o), l, u]), l) {
|
|
1899
1897
|
case "readOnly":
|
|
1900
|
-
return (0, pe.jsx)(
|
|
1898
|
+
return (0, pe.jsx)(ma, i({}, s));
|
|
1901
1899
|
case "persistAsync":
|
|
1902
|
-
return (0, pe.jsx)(
|
|
1900
|
+
return (0, pe.jsx)(aa, i({}, s));
|
|
1903
1901
|
case "validationAsync":
|
|
1904
|
-
return (0, pe.jsx)(
|
|
1902
|
+
return (0, pe.jsx)(la, i({}, s));
|
|
1905
1903
|
case "basic": {
|
|
1906
|
-
let
|
|
1907
|
-
return (0, pe.jsx)(
|
|
1904
|
+
let d = i({ infoMessage: null }, s);
|
|
1905
|
+
return (0, pe.jsx)(yt, i({}, d));
|
|
1908
1906
|
}
|
|
1909
1907
|
case "object":
|
|
1910
|
-
return (0, Cs.createElement)(
|
|
1908
|
+
return (0, Cs.createElement)(ar, b(i({}, s), { key: JSON.stringify(t) }));
|
|
1911
1909
|
case "array":
|
|
1912
1910
|
return (0, pe.jsx)(Wo, i({}, s));
|
|
1913
1911
|
case "promotedOneOf":
|
|
1914
|
-
return (0, pe.jsx)(
|
|
1912
|
+
return (0, pe.jsx)(ia, i({}, s));
|
|
1915
1913
|
case "oneOf":
|
|
1916
|
-
return (0, pe.jsx)(
|
|
1914
|
+
return (0, pe.jsx)(Qo, i({}, s));
|
|
1917
1915
|
case "allOf":
|
|
1918
1916
|
return (0, pe.jsx)(Ho, i({}, s));
|
|
1919
1917
|
}
|
|
1920
1918
|
return (0, pe.jsx)(pe.Fragment, {});
|
|
1921
1919
|
};
|
|
1922
|
-
var ue =
|
|
1923
|
-
var
|
|
1920
|
+
var ue = Md;
|
|
1921
|
+
var kd = (e, t, r) => {
|
|
1924
1922
|
switch (it(e)) {
|
|
1925
1923
|
case "persistAsync":
|
|
1926
|
-
return Dr(e) && Tr(t) &&
|
|
1924
|
+
return Dr(e) && Tr(t) && Yt(r);
|
|
1927
1925
|
case "validationAsync":
|
|
1928
|
-
return Io(e) && Lo(t) &&
|
|
1926
|
+
return Io(e) && Lo(t) && Yt(r);
|
|
1929
1927
|
case "basic":
|
|
1930
|
-
return Te(e) && Lo(t) &&
|
|
1928
|
+
return Te(e) && Lo(t) && Yt(r);
|
|
1931
1929
|
case "object":
|
|
1932
1930
|
return Pe(e) && Do(t);
|
|
1933
1931
|
case "array":
|
|
1934
|
-
return Le(e) &&
|
|
1932
|
+
return Le(e) && In(t) && Yt(r);
|
|
1935
1933
|
case "promotedOneOf":
|
|
1936
1934
|
return nt(e) && Do(t);
|
|
1937
1935
|
case "oneOf":
|
|
1938
1936
|
return fe(e);
|
|
1939
1937
|
case "allOf":
|
|
1940
|
-
return
|
|
1938
|
+
return Eo(e) && $(t);
|
|
1941
1939
|
}
|
|
1942
1940
|
return false;
|
|
1943
1941
|
};
|
|
1944
|
-
var
|
|
1942
|
+
var ht = require("react/jsx-runtime");
|
|
1945
1943
|
var Ed = (e) => {
|
|
1946
1944
|
let t = i({ model: null, errors: null, disabled: false, baseUrl: "" }, e);
|
|
1947
|
-
return Mr() || t.baseUrl == null ? (0,
|
|
1945
|
+
return Mr() || t.baseUrl == null ? (0, ht.jsx)(ue, i({}, t)) : (0, ht.jsx)(Id, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, ht.jsx)(ue, i({}, t)) });
|
|
1948
1946
|
};
|
|
1949
1947
|
var sr = Ed;
|
|
1950
|
-
var
|
|
1948
|
+
var Id = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, ht.jsx)(kr, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : xs, children: (0, ht.jsx)(Cr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : xs, children: (0, ht.jsx)(Pr, { baseUrl: e, children: o }) }) });
|
|
1951
1949
|
var xs = () => {
|
|
1952
1950
|
};
|
|
1953
|
-
var
|
|
1954
|
-
var
|
|
1951
|
+
var ca = require("react/jsx-runtime");
|
|
1952
|
+
var Dd = (e) => {
|
|
1955
1953
|
let t = e.component, r = t.schema;
|
|
1956
|
-
return (0,
|
|
1954
|
+
return (0, ca.jsx)("div", { className: j(t.margin || "md"), children: (0, ca.jsx)(sr, { schema: r, model: e.model, submitted: e.submitted, errors: e.errors, onChange: (o) => {
|
|
1957
1955
|
e.onModelChange(i({ formSchema: r }, o));
|
|
1958
1956
|
}, onPersistAsync: e.onPersistAsync }) });
|
|
1959
1957
|
};
|
|
1960
|
-
var
|
|
1961
|
-
var
|
|
1962
|
-
var
|
|
1958
|
+
var da = Dd;
|
|
1959
|
+
var Ut = require("react/jsx-runtime");
|
|
1960
|
+
var Ld = (e) => {
|
|
1963
1961
|
let { text: t, size: r = "md", align: o = "left", margin: a = "md" } = e.component, n = Ne({ align: o, margin: a });
|
|
1964
1962
|
switch (r) {
|
|
1965
1963
|
case "xs":
|
|
1966
|
-
return (0,
|
|
1964
|
+
return (0, Ut.jsx)("h5", { className: n, children: t });
|
|
1967
1965
|
case "sm":
|
|
1968
|
-
return (0,
|
|
1966
|
+
return (0, Ut.jsx)("h4", { className: n, children: t });
|
|
1969
1967
|
case "lg":
|
|
1970
|
-
return (0,
|
|
1968
|
+
return (0, Ut.jsx)("h2", { className: n, children: t });
|
|
1971
1969
|
case "xl":
|
|
1972
|
-
return (0,
|
|
1970
|
+
return (0, Ut.jsx)("h1", { className: n, children: t });
|
|
1973
1971
|
case "md":
|
|
1974
1972
|
default:
|
|
1975
|
-
return (0,
|
|
1973
|
+
return (0, Ut.jsx)("h3", { className: n, children: t });
|
|
1976
1974
|
}
|
|
1977
1975
|
};
|
|
1978
|
-
var
|
|
1979
|
-
var
|
|
1976
|
+
var ua = Ld;
|
|
1977
|
+
var pa = require("@transferwise/components");
|
|
1980
1978
|
var mr = require("react/jsx-runtime");
|
|
1981
|
-
var
|
|
1979
|
+
var fa = ({ component: e }) => {
|
|
1982
1980
|
let { content: t, align: r, margin: o } = e;
|
|
1983
|
-
return (0, mr.jsx)("div", { className: Ne({ align: r, margin: o }), children: (0, mr.jsx)(
|
|
1981
|
+
return (0, mr.jsx)("div", { className: Ne({ align: r, margin: o }), children: (0, mr.jsx)(pa.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
|
|
1984
1982
|
};
|
|
1985
|
-
var
|
|
1983
|
+
var ya = ({ component: e }) => (0, mr.jsx)("div", { className: Ne(e), children: (0, mr.jsx)(pa.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
|
|
1986
1984
|
var As = require("@transferwise/components");
|
|
1987
1985
|
var Yr = require("react");
|
|
1988
|
-
var
|
|
1989
|
-
var
|
|
1990
|
-
let { url: t, size: r, text: o, margin: a, accessibilityDescription: n } = e, s =
|
|
1986
|
+
var ha = require("react/jsx-runtime");
|
|
1987
|
+
var Td = ({ component: e }) => {
|
|
1988
|
+
let { url: t, size: r, text: o, margin: a, accessibilityDescription: n } = e, s = te(), [l, u] = (0, Yr.useState)("");
|
|
1991
1989
|
(0, Yr.useEffect)(() => {
|
|
1992
|
-
|
|
1990
|
+
Rd(s, t).then(u);
|
|
1993
1991
|
}, [t, s]);
|
|
1994
|
-
let
|
|
1995
|
-
return l ? (0,
|
|
1992
|
+
let d = { alt: n || o || "", src: l, stretch: true, shrink: true };
|
|
1993
|
+
return l ? (0, ha.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, ha.jsx)(As.Image, i({ className: `img-responsive ${j(a || "md")}` }, d)) }) : null;
|
|
1996
1994
|
};
|
|
1997
|
-
var
|
|
1995
|
+
var Nd = (e) => new Promise((t, r) => {
|
|
1998
1996
|
let o = new FileReader();
|
|
1999
1997
|
o.addEventListener("loadend", () => t(o.result)), o.addEventListener("error", (a) => r(a)), o.readAsDataURL(e);
|
|
2000
1998
|
});
|
|
2001
|
-
var
|
|
1999
|
+
var Rd = async (e, t) => {
|
|
2002
2000
|
var r;
|
|
2003
2001
|
try {
|
|
2004
2002
|
return Ar(t) || (t == null ? void 0 : t.indexOf(`${(r = window == null ? void 0 : window.location) == null ? void 0 : r.origin}/`)) === 0 ? e(t, { method: "GET", headers: { "Content-Type": "image/image" }, credentials: "same-origin" }).then((o) => {
|
|
2005
2003
|
if (o.ok)
|
|
2006
2004
|
return o.blob();
|
|
2007
2005
|
throw new Error("Image fetching failed");
|
|
2008
|
-
}).then(
|
|
2006
|
+
}).then(Nd).catch(() => t) : t;
|
|
2009
2007
|
} catch (o) {
|
|
2010
2008
|
return t;
|
|
2011
2009
|
}
|
|
2012
2010
|
};
|
|
2013
|
-
var
|
|
2011
|
+
var ga = Td;
|
|
2014
2012
|
var Zr = require("@transferwise/components");
|
|
2015
2013
|
var lr = require("react/jsx-runtime");
|
|
2016
|
-
var
|
|
2017
|
-
var
|
|
2018
|
-
var
|
|
2019
|
-
let { items: t } = e, r = t.filter((a) =>
|
|
2020
|
-
return (0, lr.jsxs)("div", { className:
|
|
2021
|
-
};
|
|
2022
|
-
var
|
|
2023
|
-
var
|
|
2024
|
-
var
|
|
2025
|
-
var
|
|
2026
|
-
let { components: t, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: l, baseUrl: u } = e,
|
|
2027
|
-
switch (
|
|
2014
|
+
var Bd = ["positive", "neutral"];
|
|
2015
|
+
var jd = ["warning", "negative"];
|
|
2016
|
+
var Vd = ({ component: e }) => {
|
|
2017
|
+
let { items: t } = e, r = t.filter((a) => Bd.includes(a.context)).map(({ text: a }) => a), o = t.filter((a) => jd.includes(a.context)).map(({ text: a }) => a);
|
|
2018
|
+
return (0, lr.jsxs)("div", { className: j(e.margin || "md"), children: [e.title ? (0, lr.jsx)(Zr.Header, { title: e.title }) : null, (0, lr.jsx)(Zr.InstructionsList, { dos: r, donts: o })] });
|
|
2019
|
+
};
|
|
2020
|
+
var Sa = Vd;
|
|
2021
|
+
var G = require("react/jsx-runtime");
|
|
2022
|
+
var Z = (e) => JSON.stringify(e);
|
|
2023
|
+
var Ud = (e) => {
|
|
2024
|
+
let { components: t, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: l, baseUrl: u } = e, d = (c) => {
|
|
2025
|
+
switch (c.type) {
|
|
2028
2026
|
case "heading":
|
|
2029
|
-
return (0,
|
|
2027
|
+
return (0, G.jsx)(ua, { component: c }, Z(c));
|
|
2030
2028
|
case "paragraph":
|
|
2031
|
-
return (0,
|
|
2029
|
+
return (0, G.jsx)(wa, { component: c }, Z(c));
|
|
2032
2030
|
case "image":
|
|
2033
|
-
return (0,
|
|
2031
|
+
return (0, G.jsx)(ga, { component: c }, Z(c));
|
|
2034
2032
|
case "alert":
|
|
2035
|
-
return (0,
|
|
2033
|
+
return (0, G.jsx)(se, { component: c }, Z(c));
|
|
2036
2034
|
case "review":
|
|
2037
|
-
return (0,
|
|
2035
|
+
return (0, G.jsx)(Fa, { component: c, onAction: s }, Z(c));
|
|
2038
2036
|
case "divider":
|
|
2039
|
-
return (0,
|
|
2037
|
+
return (0, G.jsx)(Uo, { component: c }, Z(c));
|
|
2040
2038
|
case "info":
|
|
2041
|
-
return (0,
|
|
2039
|
+
return (0, G.jsx)(ya, { component: c }, Z(c));
|
|
2042
2040
|
case "instructions":
|
|
2043
|
-
return (0,
|
|
2041
|
+
return (0, G.jsx)(Sa, { component: c }, Z(c));
|
|
2044
2042
|
case "markdown":
|
|
2045
|
-
return (0,
|
|
2043
|
+
return (0, G.jsx)(fa, { component: c }, Z(c));
|
|
2046
2044
|
case "columns":
|
|
2047
|
-
return (0,
|
|
2045
|
+
return (0, G.jsx)(jo, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: l }, Z(c));
|
|
2048
2046
|
case "form":
|
|
2049
|
-
return (0,
|
|
2047
|
+
return (0, G.jsx)(da, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onPersistAsync: l }, Z(b(i({}, c), { errors: a != null ? a : null })));
|
|
2050
2048
|
case "button":
|
|
2051
|
-
return (0,
|
|
2049
|
+
return (0, G.jsx)(Bo, { component: c, onAction: s }, Z(c));
|
|
2052
2050
|
case "box":
|
|
2053
|
-
return (0,
|
|
2051
|
+
return (0, G.jsx)(Ro, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: l }, Z(c));
|
|
2054
2052
|
case "decision":
|
|
2055
|
-
return (0,
|
|
2053
|
+
return (0, G.jsx)(Vo, { component: c, onAction: s }, Z(c));
|
|
2056
2054
|
case "external":
|
|
2057
|
-
return (0,
|
|
2055
|
+
return (0, G.jsx)(zo, { component: c, onAction: s }, Z(c));
|
|
2058
2056
|
case "list":
|
|
2059
2057
|
case "status-list":
|
|
2060
|
-
return (0,
|
|
2058
|
+
return (0, G.jsx)(ba, { component: c, onAction: s }, Z(c));
|
|
2061
2059
|
case "loading-indicator":
|
|
2062
|
-
return (0,
|
|
2060
|
+
return (0, G.jsx)(cr, { component: c }, Z(c));
|
|
2063
2061
|
case "search":
|
|
2064
|
-
return (0,
|
|
2062
|
+
return (0, G.jsx)(Ca, { component: c, onAction: s }, Z(c));
|
|
2065
2063
|
default:
|
|
2066
|
-
return (0,
|
|
2064
|
+
return (0, G.jsx)("div", {}, Z(c));
|
|
2067
2065
|
}
|
|
2068
2066
|
};
|
|
2069
|
-
return Mr() || u == null ? (0,
|
|
2067
|
+
return Mr() || u == null ? (0, G.jsx)(G.Fragment, { children: t.map(d) }) : (0, G.jsx)(Pr, { baseUrl: u, children: t.map(d) });
|
|
2070
2068
|
};
|
|
2071
|
-
var me =
|
|
2069
|
+
var me = Ud;
|
|
2072
2070
|
var vs = require("@transferwise/components");
|
|
2073
|
-
var
|
|
2074
|
-
var
|
|
2075
|
-
var
|
|
2076
|
-
let a = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0,
|
|
2077
|
-
return (0,
|
|
2078
|
-
};
|
|
2079
|
-
var
|
|
2080
|
-
var
|
|
2081
|
-
var
|
|
2082
|
-
var
|
|
2071
|
+
var zt = require("react/jsx-runtime");
|
|
2072
|
+
var zd = ({ component: e }) => (0, zt.jsxs)("div", { className: j(e.margin || "md"), children: [e.title ? (0, zt.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(Hd)] });
|
|
2073
|
+
var Hd = ({ title: e, description: t, icon: r, status: o }) => {
|
|
2074
|
+
let a = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, zt.jsx)(Je, { type: r.name }) } : {}), o ? { status: $d[o] } : {});
|
|
2075
|
+
return (0, zt.jsx)(vs.Summary, i({}, a));
|
|
2076
|
+
};
|
|
2077
|
+
var qd = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2078
|
+
var Gd = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2079
|
+
var $d = i(i({}, qd), Gd);
|
|
2080
|
+
var ba = zd;
|
|
2083
2081
|
var Os = require("@transferwise/components");
|
|
2084
2082
|
var Ps = require("react/jsx-runtime");
|
|
2085
2083
|
var _d = ({ component: e }) => {
|
|
2086
2084
|
let { margin: t, size: r = "md" } = e;
|
|
2087
|
-
return (0, Ps.jsx)(Os.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${
|
|
2085
|
+
return (0, Ps.jsx)(Os.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${j(t)}` }, "data-testid": "loading-indicator" });
|
|
2088
2086
|
};
|
|
2089
2087
|
var cr = _d;
|
|
2090
2088
|
var Ds = require("@transferwise/components");
|
|
2091
2089
|
var Ls = require("react-intl");
|
|
2092
2090
|
var Ms = require("react-intl");
|
|
2093
|
-
var
|
|
2094
|
-
var
|
|
2095
|
-
var
|
|
2091
|
+
var xa = (0, Ms.defineMessages)({ copy: { id: "dynamicFlows.DynamicParagraph.copy", defaultMessage: "Copy", description: "Copy to clipboard button label." }, copied: { id: "dynamicFlows.DynamicParagraph.copied", defaultMessage: "Copied to clipboard", description: "Appears in a snackbar when the copy operation succeeds." } });
|
|
2092
|
+
var ks = require("@transferwise/components");
|
|
2093
|
+
var Es = require("react");
|
|
2096
2094
|
function Is() {
|
|
2097
|
-
let e = (0,
|
|
2098
|
-
return e ? e.createSnackbar :
|
|
2095
|
+
let e = (0, Es.useContext)(ks.SnackbarContext);
|
|
2096
|
+
return e ? e.createSnackbar : Wd;
|
|
2099
2097
|
}
|
|
2100
|
-
function
|
|
2098
|
+
function Wd() {
|
|
2101
2099
|
}
|
|
2102
2100
|
var Qe = require("react/jsx-runtime");
|
|
2103
|
-
var
|
|
2104
|
-
var
|
|
2105
|
-
var
|
|
2101
|
+
var Kd = ({ component: e }) => e.control === "copyable" ? (0, Qe.jsx)(Xd, { component: e }) : (0, Qe.jsx)(Jd, { component: e });
|
|
2102
|
+
var Jd = ({ component: e }) => (0, Qe.jsxs)("p", { className: Ne(e), children: [" ", e.text, " "] });
|
|
2103
|
+
var Xd = ({ component: e }) => {
|
|
2106
2104
|
let { formatMessage: t } = (0, Ls.useIntl)(), r = Is(), { text: o } = e, a = () => {
|
|
2107
2105
|
var s;
|
|
2108
|
-
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(
|
|
2109
|
-
}, n = Ne({ align: e.align
|
|
2110
|
-
return (0, Qe.jsxs)("div", { className: Ne(e), children: [(0, Qe.jsx)("input", { type: "text", className: n, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, Qe.jsx)(Ds.Button, { block: true, onClick: a, children: t(
|
|
2106
|
+
(s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(xa.copied) })).catch(Yd);
|
|
2107
|
+
}, n = Ne({ align: e.align }) + " form-control";
|
|
2108
|
+
return (0, Qe.jsxs)("div", { className: Ne(e), children: [(0, Qe.jsx)("input", { type: "text", className: n, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, Qe.jsx)(Ds.Button, { block: true, onClick: a, className: j("sm"), children: t(xa.copy) })] });
|
|
2111
2109
|
};
|
|
2112
|
-
function
|
|
2110
|
+
function Yd() {
|
|
2113
2111
|
}
|
|
2114
|
-
var
|
|
2112
|
+
var wa = Kd;
|
|
2115
2113
|
var Ts = require("@transferwise/components");
|
|
2116
2114
|
var ae = require("react/jsx-runtime");
|
|
2117
|
-
var
|
|
2118
|
-
var
|
|
2119
|
-
var
|
|
2120
|
-
var
|
|
2121
|
-
let t = e.component, r =
|
|
2115
|
+
var Zd = (e, t) => t.fields.map(({ label: r, value: o, help: a }, n) => ({ key: String(n), title: r, value: Qd(o, a, e) }));
|
|
2116
|
+
var Qd = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, ae.jsxs)(ae.Fragment, { children: [(0, ae.jsx)(Ve, { help: t }), " ", e] }) : (0, ae.jsxs)(ae.Fragment, { children: [e, " ", (0, ae.jsx)(Ve, { help: t })] }) : e;
|
|
2117
|
+
var eu = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
|
|
2118
|
+
var tu = (e) => {
|
|
2119
|
+
let t = e.component, r = j(t.margin || "xs"), o = (n) => (0, ae.jsx)("a", { href: n.url, className: "pull-right", role: "button", onClick: (s) => {
|
|
2122
2120
|
s.preventDefault(), e.onAction(n);
|
|
2123
|
-
}, children: n.title }), a =
|
|
2124
|
-
return (0, ae.jsxs)(ae.Fragment, { children: [t.title && (0, ae.jsxs)("h6", { className:
|
|
2121
|
+
}, children: n.title }), a = eu(t);
|
|
2122
|
+
return (0, ae.jsxs)(ae.Fragment, { children: [t.title && (0, ae.jsxs)("h6", { className: `m-b-2 ${r}`, children: [t.title, t.action && o(t.action)] }), (0, ae.jsx)("div", { className: t.title ? "" : r, children: (0, ae.jsx)(Ts.DefinitionList, { layout: a, definitions: Zd(a, t) }) })] });
|
|
2125
2123
|
};
|
|
2126
|
-
var
|
|
2124
|
+
var Fa = tu;
|
|
2127
2125
|
var to = require("react");
|
|
2128
2126
|
var Ns = require("@transferwise/components");
|
|
2129
2127
|
var Qr = require("react/jsx-runtime");
|
|
@@ -2131,21 +2129,21 @@ var require_main_min = __commonJS({
|
|
|
2131
2129
|
var eo = require("@transferwise/components");
|
|
2132
2130
|
var js = require("react-intl");
|
|
2133
2131
|
var Bs = require("react-intl");
|
|
2134
|
-
var
|
|
2135
|
-
var
|
|
2136
|
-
var Vs = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0,
|
|
2132
|
+
var Ht = (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." } });
|
|
2133
|
+
var gt = require("react/jsx-runtime");
|
|
2134
|
+
var Vs = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, gt.jsx)("p", { className: "m-t-2", children: t }) : (0, gt.jsx)(eo.NavigationOptionsList, { children: e.map((o) => (0, gt.jsx)(eo.NavigationOption, { title: o.title, content: o.description, media: mt(o), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(o) }, JSON.stringify(o))) });
|
|
2137
2135
|
var Us = ({ onRetrySearch: e }) => {
|
|
2138
2136
|
let t = (0, js.useIntl)();
|
|
2139
|
-
return (0,
|
|
2137
|
+
return (0, gt.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(Ht.errorAlert), "\xA0", (0, gt.jsx)("a", { href: "/", onClick: (r) => {
|
|
2140
2138
|
r.preventDefault(), e();
|
|
2141
|
-
}, children: t.formatMessage(
|
|
2139
|
+
}, children: t.formatMessage(Ht.retry) })] });
|
|
2142
2140
|
};
|
|
2143
|
-
var
|
|
2141
|
+
var qt = require("react");
|
|
2144
2142
|
var zs = { "Content-Type": "application/json" };
|
|
2145
2143
|
var Hs = (e) => {
|
|
2146
|
-
let [t, r] = (0,
|
|
2144
|
+
let [t, r] = (0, qt.useState)({ status: "idle" }), o = (0, qt.useRef)(null), a = te(), n = (0, qt.useCallback)(async (d, { url: c, method: h, param: f } = e) => {
|
|
2147
2145
|
var p;
|
|
2148
|
-
if ((p = o.current) == null || p.abort(), !
|
|
2146
|
+
if ((p = o.current) == null || p.abort(), !d) {
|
|
2149
2147
|
r({ status: "idle" });
|
|
2150
2148
|
return;
|
|
2151
2149
|
}
|
|
@@ -2153,134 +2151,134 @@ var require_main_min = __commonJS({
|
|
|
2153
2151
|
let m = o.current.signal;
|
|
2154
2152
|
r({ status: "loading" });
|
|
2155
2153
|
try {
|
|
2156
|
-
let S = await (
|
|
2157
|
-
s(S,
|
|
2154
|
+
let S = await (h === "GET" ? a(au(c, f, d), { method: h, signal: m, headers: zs }) : a(c, { method: h, signal: m, headers: zs, body: JSON.stringify({ [f]: d }) }));
|
|
2155
|
+
s(S, d);
|
|
2158
2156
|
} catch (y) {
|
|
2159
|
-
l(y,
|
|
2157
|
+
l(y, d);
|
|
2160
2158
|
}
|
|
2161
|
-
}, [a, JSON.stringify(e)]), s = async (
|
|
2162
|
-
if (
|
|
2163
|
-
let
|
|
2164
|
-
if (
|
|
2165
|
-
r({ status: "success", results:
|
|
2159
|
+
}, [a, JSON.stringify(e)]), s = async (d, c) => {
|
|
2160
|
+
if (d.ok) {
|
|
2161
|
+
let h = await d.json().catch(() => null);
|
|
2162
|
+
if (ru(h)) {
|
|
2163
|
+
r({ status: "success", results: h.results });
|
|
2166
2164
|
return;
|
|
2167
2165
|
}
|
|
2168
2166
|
}
|
|
2169
2167
|
r({ status: "error" });
|
|
2170
|
-
}, l = (
|
|
2171
|
-
|
|
2168
|
+
}, l = (d, c) => {
|
|
2169
|
+
ou(d) === false && r({ status: "error" });
|
|
2172
2170
|
}, u = t.status === "success" ? t.results : [];
|
|
2173
2171
|
return { status: t.status, results: u, search: n };
|
|
2174
2172
|
};
|
|
2175
|
-
var
|
|
2176
|
-
var
|
|
2177
|
-
var
|
|
2173
|
+
var ru = (e) => N(e) && "results" in e && q(e.results) && e.results.every((t) => N(t) && "title" in t && "type" in t && "value" in t);
|
|
2174
|
+
var ou = (e) => e instanceof DOMException && e.name === "AbortError";
|
|
2175
|
+
var au = (e, t, r) => {
|
|
2178
2176
|
let [o, a] = e.split("?"), n = new URLSearchParams(a);
|
|
2179
2177
|
return n.set(t, r), `${o}?${n.toString()}`;
|
|
2180
2178
|
};
|
|
2181
|
-
var
|
|
2182
|
-
var
|
|
2183
|
-
var
|
|
2184
|
-
let [r, o] = (0, to.useState)(""), { title: a, margin: n, url: s, method: l, param: u, emptyMessage:
|
|
2185
|
-
o(
|
|
2186
|
-
}, y = ({ type:
|
|
2187
|
-
if (
|
|
2188
|
-
o(
|
|
2189
|
-
let { url:
|
|
2190
|
-
f(
|
|
2179
|
+
var St = require("react/jsx-runtime");
|
|
2180
|
+
var nu = 400;
|
|
2181
|
+
var iu = ({ component: e, onAction: t }) => {
|
|
2182
|
+
let [r, o] = (0, to.useState)(""), { title: a, margin: n, url: s, method: l, param: u, emptyMessage: d } = e, { status: c, results: h, search: f } = Hs({ url: s, method: l, param: u }), m = (0, to.useMemo)(() => We(f, nu), [f]), p = (g) => {
|
|
2183
|
+
o(g), m(g);
|
|
2184
|
+
}, y = ({ type: g, value: w }) => {
|
|
2185
|
+
if (g === "action" && t(w), g === "search") {
|
|
2186
|
+
o(w.query);
|
|
2187
|
+
let { url: F, method: P, param: v, query: A } = w;
|
|
2188
|
+
f(A, { url: F, method: P, param: v });
|
|
2191
2189
|
}
|
|
2192
2190
|
}, S = () => {
|
|
2193
2191
|
o(r), f(r);
|
|
2194
2192
|
};
|
|
2195
|
-
return (0,
|
|
2193
|
+
return (0, St.jsxs)("div", { className: j(n), children: [(0, St.jsx)(Rs, { title: a, value: r, onChange: p }), c === "loading" && (0, St.jsx)(cr, { component: { type: "loading-indicator", size: "sm" } }), c === "error" && (0, St.jsx)(Us, { onRetrySearch: S }), c === "success" && (0, St.jsx)(Vs, { results: h, emptyMessage: d, onSelect: y })] });
|
|
2196
2194
|
};
|
|
2197
|
-
var
|
|
2195
|
+
var Ca = iu;
|
|
2198
2196
|
var ce = require("react/jsx-runtime");
|
|
2199
|
-
var
|
|
2200
|
-
var
|
|
2197
|
+
var Aa = (e) => k(e) || X(e);
|
|
2198
|
+
var su = (e) => e.type === "boolean" && Aa(e.default) ? false : e.default;
|
|
2201
2199
|
var Gs = (e) => {
|
|
2202
|
-
var
|
|
2203
|
-
let t = (
|
|
2204
|
-
f(true), o(a(
|
|
2205
|
-
}, r = (
|
|
2206
|
-
u(
|
|
2207
|
-
let Ae = r(
|
|
2208
|
-
|
|
2209
|
-
let
|
|
2210
|
-
|
|
2211
|
-
}, a = (
|
|
2200
|
+
var L, O, B;
|
|
2201
|
+
let t = (M) => {
|
|
2202
|
+
f(true), o(a(M), "user");
|
|
2203
|
+
}, r = (M) => _e(M, e.schema, e.required), o = (M, ne) => {
|
|
2204
|
+
u(M);
|
|
2205
|
+
let Ae = r(M);
|
|
2206
|
+
w(Ae);
|
|
2207
|
+
let _ = M;
|
|
2208
|
+
c(_), _ !== d && e.onChange({ model: _, triggerSchema: e.schema, triggerModel: _, lastTriggerModel: d, type: ne });
|
|
2209
|
+
}, a = (M) => $e(M, e.schema), n = () => p(true), s = () => {
|
|
2212
2210
|
p(false), S(true), e.onBlur && e.onBlur();
|
|
2213
|
-
}, [l, u] = (0, le.useState)((
|
|
2214
|
-
let
|
|
2215
|
-
|
|
2216
|
-
},
|
|
2217
|
-
|
|
2218
|
-
},
|
|
2219
|
-
(0, le.useEffect)(
|
|
2220
|
-
var
|
|
2221
|
-
let
|
|
2222
|
-
|
|
2211
|
+
}, [l, u] = (0, le.useState)((L = e.model) != null ? L : null), [d, c] = (0, le.useState)((O = e.model) != null ? O : null), [h, f] = (0, le.useState)(false), [m, p] = (0, le.useState)(false), [y, S] = (0, le.useState)(false), [g, w] = (0, le.useState)([]), F = (0, le.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), P = () => {
|
|
2212
|
+
let M = su(e.schema);
|
|
2213
|
+
Aa(l) && !Aa(M) && o(M, "init"), e.schema.const && o(e.schema.const, "init");
|
|
2214
|
+
}, v = () => {
|
|
2215
|
+
w(r(l));
|
|
2216
|
+
}, A = e.schema.const, E = e.schema.hidden || A;
|
|
2217
|
+
(0, le.useEffect)(v, [e.model, e.submitted]), (0, le.useEffect)(P, [e.schema]), (0, le.useEffect)(() => {
|
|
2218
|
+
var ne;
|
|
2219
|
+
let M = (ne = e.model) != null ? ne : null;
|
|
2220
|
+
M !== l && u(M);
|
|
2223
2221
|
}, [e.model]);
|
|
2224
|
-
let
|
|
2225
|
-
return
|
|
2222
|
+
let R = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && y) && !!g.length, "has-info": m && !!e.schema.description || !!e.infoMessage }, x = e.schema.format !== "file" && e.schema.type !== "boolean", T = e.schema.help, H = `${F}-feedback`;
|
|
2223
|
+
return E ? null : (0, ce.jsxs)(ce.Fragment, { children: [e.schema.alert && (0, ce.jsx)(se, { component: e.schema.alert }), (0, ce.jsxs)("div", { className: (0, qs.default)(R), children: [x && (0, ce.jsxs)("div", { className: "d-inline-block", children: [(0, ce.jsx)("label", { className: "control-label d-inline", htmlFor: F, children: e.schema.title }), !!T && (0, ce.jsx)(Ve, { help: T })] }), !x && !!T && (0, ce.jsx)(Ve, { help: T }), (0, ce.jsx)(nr, { id: F, schema: e.schema, value: l, disabled: !!e.disabled, onChange: t, onFocus: n, onBlur: s, describedBy: H }), (0, ce.jsx)(Be, { id: H, changed: h, focused: m, blurred: y, submitted: e.submitted, errors: (B = e.errors) != null ? B : null, schema: e.schema, validations: g, infoMessage: e.infoMessage })] })] });
|
|
2226
2224
|
};
|
|
2227
2225
|
Gs.defaultProps = { required: false, disabled: false, onBlur: null };
|
|
2228
|
-
var
|
|
2226
|
+
var yt = Gs;
|
|
2229
2227
|
var Ks = require("react/jsx-runtime");
|
|
2230
|
-
var
|
|
2231
|
-
var
|
|
2228
|
+
var ra = (e, t) => t[e];
|
|
2229
|
+
var _s = (e, t) => {
|
|
2232
2230
|
var r;
|
|
2233
2231
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2234
2232
|
};
|
|
2235
|
-
var
|
|
2233
|
+
var mu = /* @__PURE__ */ new Set([U.RADIO, U.SELECT, U.DATELOOKUP, U.FILE, U.UPLOAD]);
|
|
2236
2234
|
var Ws = (e) => {
|
|
2237
|
-
let { schema: t, required: r, submitted: o, errors: a, onChange: n, onPersistAsync: s } = e, l = (0,
|
|
2238
|
-
(0,
|
|
2239
|
-
|
|
2240
|
-
}, [
|
|
2241
|
-
let
|
|
2242
|
-
let
|
|
2235
|
+
let { schema: t, required: r, submitted: o, errors: a, onChange: n, onPersistAsync: s } = e, l = (0, $s.useIntl)(), u = te(), d = ee(), [c, h] = (0, bt.useState)(null), f = Js(c), [m, p] = (0, bt.useState)(null), [y, S] = (0, bt.useState)(false), [g, w] = (0, bt.useState)(null);
|
|
2236
|
+
(0, bt.useEffect)(() => {
|
|
2237
|
+
mu.has(Zo(t.persistAsync.schema)) && A();
|
|
2238
|
+
}, [c]);
|
|
2239
|
+
let F = () => p(l.formatMessage(er.genericError)), P = async (x, T) => {
|
|
2240
|
+
let H = v(), L = { [T.param]: x };
|
|
2243
2241
|
S(true);
|
|
2244
2242
|
try {
|
|
2245
|
-
|
|
2246
|
-
let
|
|
2247
|
-
s(
|
|
2248
|
-
let
|
|
2249
|
-
if (!
|
|
2243
|
+
d("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t.$id });
|
|
2244
|
+
let O = u(T.url, { method: T.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(L), signal: H });
|
|
2245
|
+
s(O);
|
|
2246
|
+
let B = await O, M = await B.json();
|
|
2247
|
+
if (!N(M))
|
|
2250
2248
|
throw new Error("Response is not an object");
|
|
2251
|
-
let { idProperty:
|
|
2252
|
-
if (
|
|
2253
|
-
let
|
|
2254
|
-
n({ model:
|
|
2255
|
-
} else if (xr(
|
|
2256
|
-
let { validation:
|
|
2249
|
+
let { idProperty: ne, param: Ae } = t.persistAsync;
|
|
2250
|
+
if (en(B.status)) {
|
|
2251
|
+
let _ = ra(ne, M);
|
|
2252
|
+
n({ model: _, triggerSchema: t, triggerModel: _ });
|
|
2253
|
+
} else if (xr(B.status)) {
|
|
2254
|
+
let { validation: _ } = M, de = N(_) && (_ == null ? void 0 : _[Ae]) || null;
|
|
2257
2255
|
p(de), n({ model: null, triggerSchema: t, triggerModel: null });
|
|
2258
2256
|
} else
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
} catch (
|
|
2262
|
-
|
|
2257
|
+
F();
|
|
2258
|
+
d("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
|
|
2259
|
+
} catch (O) {
|
|
2260
|
+
d("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), F();
|
|
2263
2261
|
}
|
|
2264
|
-
},
|
|
2265
|
-
|
|
2266
|
-
let
|
|
2267
|
-
return
|
|
2268
|
-
},
|
|
2269
|
-
!
|
|
2270
|
-
},
|
|
2271
|
-
|
|
2272
|
-
},
|
|
2273
|
-
p(null),
|
|
2262
|
+
}, v = () => {
|
|
2263
|
+
g && g.abort();
|
|
2264
|
+
let x = new AbortController();
|
|
2265
|
+
return w(x), x.signal;
|
|
2266
|
+
}, A = () => {
|
|
2267
|
+
!k(c) && !Ke(c, f) && P(c, t.persistAsync);
|
|
2268
|
+
}, E = () => {
|
|
2269
|
+
A();
|
|
2270
|
+
}, R = ({ model: x }) => {
|
|
2271
|
+
p(null), W(x, t.persistAsync.schema) && h(x);
|
|
2274
2272
|
};
|
|
2275
|
-
return (0, Ks.jsx)(
|
|
2273
|
+
return (0, Ks.jsx)(yt, { required: r, submitted: o || y, schema: t.persistAsync.schema, errors: m || a, model: null, infoMessage: null, onChange: R, onBlur: E });
|
|
2276
2274
|
};
|
|
2277
2275
|
Ws.defaultProps = { required: false };
|
|
2278
|
-
var
|
|
2279
|
-
var
|
|
2280
|
-
let [t, r] = (0, Xs.useState)(null), o =
|
|
2276
|
+
var ea = Ws;
|
|
2277
|
+
var Ci = (e) => {
|
|
2278
|
+
let [t, r] = (0, Xs.useState)(null), o = te(), a = (0, Ys.useIntl)(), { schema: n } = e;
|
|
2281
2279
|
async function s(f) {
|
|
2282
|
-
let m = f instanceof Blob ? !
|
|
2283
|
-
return (
|
|
2280
|
+
let m = f instanceof Blob ? !Mt(n) : !W(f, n);
|
|
2281
|
+
return (k(f) || m) && h(), await d(f);
|
|
2284
2282
|
}
|
|
2285
2283
|
let l = () => {
|
|
2286
2284
|
t && t.abort();
|
|
@@ -2288,64 +2286,64 @@ var require_main_min = __commonJS({
|
|
|
2288
2286
|
return r(f), f.signal;
|
|
2289
2287
|
};
|
|
2290
2288
|
function u(f) {
|
|
2291
|
-
let m =
|
|
2289
|
+
let m = Mt(n), p = l(), y = e.param, S = m ? lu(y, f) : JSON.stringify({ [y]: f });
|
|
2292
2290
|
return { method: e.method, headers: i({}, !m && { "Content-Type": "application/json" }), body: S, signal: p };
|
|
2293
2291
|
}
|
|
2294
|
-
async function
|
|
2292
|
+
async function d(f) {
|
|
2295
2293
|
try {
|
|
2296
2294
|
let m = await o(e.url, u(f));
|
|
2297
2295
|
if (!m.ok)
|
|
2298
|
-
return
|
|
2296
|
+
return c(m);
|
|
2299
2297
|
let p = await m.json();
|
|
2300
|
-
if (
|
|
2298
|
+
if (N(p)) {
|
|
2301
2299
|
let y = p[e.idProperty];
|
|
2302
|
-
if (
|
|
2300
|
+
if (I(y) || V(y))
|
|
2303
2301
|
return { data: y };
|
|
2304
2302
|
}
|
|
2305
|
-
return
|
|
2303
|
+
return h();
|
|
2306
2304
|
} catch (m) {
|
|
2307
|
-
return
|
|
2305
|
+
return h(m);
|
|
2308
2306
|
}
|
|
2309
2307
|
}
|
|
2310
|
-
async function
|
|
2308
|
+
async function c(f) {
|
|
2311
2309
|
if (f.status === 422) {
|
|
2312
2310
|
let m = await f.json();
|
|
2313
|
-
if (
|
|
2314
|
-
let p =
|
|
2315
|
-
if (
|
|
2311
|
+
if (N(m)) {
|
|
2312
|
+
let p = _s(e.param, m);
|
|
2313
|
+
if (I(p))
|
|
2316
2314
|
throw new Error(p);
|
|
2317
2315
|
}
|
|
2318
2316
|
}
|
|
2319
|
-
throw new Error(a.formatMessage(
|
|
2317
|
+
throw new Error(a.formatMessage(er.genericError));
|
|
2320
2318
|
}
|
|
2321
|
-
let
|
|
2322
|
-
let m =
|
|
2319
|
+
let h = (f) => {
|
|
2320
|
+
let m = cu(f) ? f.message : a.formatMessage(er.genericError);
|
|
2323
2321
|
throw new Error(m);
|
|
2324
2322
|
};
|
|
2325
2323
|
return s;
|
|
2326
2324
|
};
|
|
2327
|
-
function
|
|
2325
|
+
function lu(e, t) {
|
|
2328
2326
|
let r = new FormData();
|
|
2329
2327
|
return t !== null && r.append(e, t), r;
|
|
2330
2328
|
}
|
|
2331
|
-
function
|
|
2332
|
-
return
|
|
2329
|
+
function cu(e) {
|
|
2330
|
+
return N(e) && "message" in e && typeof e.message == "string";
|
|
2333
2331
|
}
|
|
2334
2332
|
var et = require("react");
|
|
2335
2333
|
function Nr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: a, onFailure: n }) {
|
|
2336
|
-
let s = (0, et.useRef)(a), l = (0, et.useRef)(n), u = (0, et.useMemo)(() =>
|
|
2334
|
+
let s = (0, et.useRef)(a), l = (0, et.useRef)(n), u = (0, et.useMemo)(() => du(e, r, o, (d) => s.current(d), () => l.current()), [e, r, o]);
|
|
2337
2335
|
(0, et.useEffect)(() => {
|
|
2338
2336
|
if (t > 0) {
|
|
2339
|
-
let
|
|
2337
|
+
let d = setInterval(() => {
|
|
2340
2338
|
u();
|
|
2341
2339
|
}, t);
|
|
2342
|
-
return () => clearInterval(
|
|
2340
|
+
return () => clearInterval(d);
|
|
2343
2341
|
}
|
|
2344
2342
|
}, [u, t]), (0, et.useEffect)(() => {
|
|
2345
2343
|
s.current = a, l.current = n;
|
|
2346
2344
|
}, [a, n]);
|
|
2347
2345
|
}
|
|
2348
|
-
function
|
|
2346
|
+
function du(e, t, r, o, a) {
|
|
2349
2347
|
let n = true, s = 0, l = 0;
|
|
2350
2348
|
return e ? () => {
|
|
2351
2349
|
n && (l++, e().then((u) => {
|
|
@@ -2367,7 +2365,7 @@ var require_main_min = __commonJS({
|
|
|
2367
2365
|
};
|
|
2368
2366
|
var dr = require("react");
|
|
2369
2367
|
function Zs(e, t) {
|
|
2370
|
-
let r =
|
|
2368
|
+
let r = te(), o = (0, dr.useMemo)(() => {
|
|
2371
2369
|
if (e)
|
|
2372
2370
|
return () => r(e.url).then((n) => {
|
|
2373
2371
|
if (n.ok)
|
|
@@ -2380,20 +2378,20 @@ var require_main_min = __commonJS({
|
|
|
2380
2378
|
}, [t, e]) });
|
|
2381
2379
|
}
|
|
2382
2380
|
var Qs = require("react/jsx-runtime");
|
|
2383
|
-
var
|
|
2381
|
+
var uu = (e, t) => {
|
|
2384
2382
|
var o;
|
|
2385
|
-
if (
|
|
2383
|
+
if (vt(e))
|
|
2386
2384
|
return [];
|
|
2387
|
-
let r =
|
|
2385
|
+
let r = Kt(e, t);
|
|
2388
2386
|
return Ge({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (o = e.model) != null ? o : null });
|
|
2389
2387
|
};
|
|
2390
|
-
var
|
|
2391
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: a, formErrors: n, onModelChange: s } = e, l =
|
|
2392
|
-
|
|
2388
|
+
var pu = (e) => {
|
|
2389
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: a, formErrors: n, onModelChange: s } = e, l = uu(t, r), { loading: u, registerPersistAsyncPromise: d } = Fr(), c = ee(), h = u ? () => {
|
|
2390
|
+
c("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2393
2391
|
} : e.onAction;
|
|
2394
|
-
return Zs(t.polling,
|
|
2392
|
+
return Zs(t.polling, h), (0, Qs.jsx)(me, { components: l, submitted: o, model: a, errors: n, onAction: h, onModelChange: s, onPersistAsync: d });
|
|
2395
2393
|
};
|
|
2396
|
-
var oo =
|
|
2394
|
+
var oo = pu;
|
|
2397
2395
|
var mo = require("react");
|
|
2398
2396
|
var Ce = require("react");
|
|
2399
2397
|
var Cm = require("react-intl");
|
|
@@ -2403,12 +2401,12 @@ var require_main_min = __commonJS({
|
|
|
2403
2401
|
var Fe = require("@transferwise/components");
|
|
2404
2402
|
var rm = require("react-intl");
|
|
2405
2403
|
var we = require("react/jsx-runtime");
|
|
2406
|
-
var om = ({ onCapture: e }) => (0, we.jsx)("div", { className: "bottom-bar", children: (0, we.jsx)(
|
|
2404
|
+
var om = ({ onCapture: e }) => (0, we.jsx)("div", { className: "bottom-bar", children: (0, we.jsx)(fu, { onClick: e }) });
|
|
2407
2405
|
var am = ({ onSubmit: e, onRetry: t }) => {
|
|
2408
2406
|
let r = (0, rm.useIntl)();
|
|
2409
2407
|
return (0, we.jsx)("div", { className: "bottom-bar p-x-2", children: (0, we.jsx)("div", { className: "row", children: (0, we.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, we.jsx)(Fe.Button, { className: "m-b-1", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, onClick: e, children: r.formatMessage(pr.reviewSubmit) }), (0, we.jsx)(Fe.Button, { className: "m-b-2", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, priority: Fe.Priority.SECONDARY, onClick: t, children: r.formatMessage(pr.reviewRetry) })] }) }) });
|
|
2410
2408
|
};
|
|
2411
|
-
var
|
|
2409
|
+
var fu = ({ onClick: e }) => (0, we.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, we.jsx)("span", { className: "camera-capture-btn-inner" }) });
|
|
2412
2410
|
var no = require("react");
|
|
2413
2411
|
var nm = (e) => {
|
|
2414
2412
|
var r;
|
|
@@ -2435,14 +2433,14 @@ var require_main_min = __commonJS({
|
|
|
2435
2433
|
};
|
|
2436
2434
|
var cm = async (e) => {
|
|
2437
2435
|
var r, o, a;
|
|
2438
|
-
let t =
|
|
2436
|
+
let t = Oa(e);
|
|
2439
2437
|
return (a = (await ((o = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : o.call(r)) || []).filter((n) => n.kind === "videoinput").find((n) => n.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : a.label;
|
|
2440
2438
|
};
|
|
2441
2439
|
var ao = (e) => {
|
|
2442
2440
|
var t;
|
|
2443
2441
|
return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
|
|
2444
2442
|
};
|
|
2445
|
-
var
|
|
2443
|
+
var Oa = (e) => {
|
|
2446
2444
|
var t, r;
|
|
2447
2445
|
return (r = (t = ao(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2448
2446
|
};
|
|
@@ -2462,15 +2460,15 @@ var require_main_min = __commonJS({
|
|
|
2462
2460
|
return { videoConstraints: t };
|
|
2463
2461
|
};
|
|
2464
2462
|
var io = require("react");
|
|
2465
|
-
var
|
|
2466
|
-
var
|
|
2463
|
+
var J = require("react/jsx-runtime");
|
|
2464
|
+
var yu = 92;
|
|
2467
2465
|
var um = 120;
|
|
2468
|
-
var
|
|
2469
|
-
var
|
|
2470
|
-
var
|
|
2471
|
-
var
|
|
2466
|
+
var hu = 40;
|
|
2467
|
+
var gu = 32;
|
|
2468
|
+
var Su = 48;
|
|
2469
|
+
var bu = 40;
|
|
2472
2470
|
var pm = 800;
|
|
2473
|
-
var
|
|
2471
|
+
var wu = ({ overlay: e, outline: t, imageUrl: r, title: o, instructions: a, reviewInstructions: n }) => {
|
|
2474
2472
|
let s = (0, io.useRef)(null);
|
|
2475
2473
|
(0, io.useEffect)(() => {
|
|
2476
2474
|
let f = We(() => {
|
|
@@ -2482,112 +2480,112 @@ var require_main_min = __commonJS({
|
|
|
2482
2480
|
}, 100);
|
|
2483
2481
|
return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
2484
2482
|
});
|
|
2485
|
-
let l = (r ?
|
|
2483
|
+
let l = (r ? hu : 0) + (o ? gu : 0) + (a ? Su : 0), u = (0, J.jsxs)(J.Fragment, { children: [r && (0, J.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), o && (0, J.jsx)("h4", { className: "camera-capture-title", children: o }), a && (0, J.jsx)("small", { className: "camera-capture-instructions", children: a })] }), d = yu + l;
|
|
2486
2484
|
if (n) {
|
|
2487
|
-
l =
|
|
2488
|
-
let f = um +
|
|
2489
|
-
|
|
2485
|
+
l = d - um, u = (0, J.jsx)("small", { className: "camera-capture-instructions", children: n });
|
|
2486
|
+
let f = um + bu;
|
|
2487
|
+
d < f && (u = (0, J.jsx)(J.Fragment, {}));
|
|
2490
2488
|
}
|
|
2491
|
-
let
|
|
2492
|
-
return (0,
|
|
2489
|
+
let c = { x: "50%", y: "5%", width: `min(90%, ${pm}px)`, height: `calc(90% - ${d}px)`, style: { transform: `translateX(max(-45%, -${pm / 2}px))` } }, h = { style: { left: "5%", top: `calc(100% - ${d}px - 5%)`, height: `calc(${l}px + 5%)`, width: "90%" } };
|
|
2490
|
+
return (0, J.jsxs)("svg", { ref: s, xmlns: "http://www.w3.org/2000/svg", children: [(0, J.jsx)("defs", { children: (0, J.jsxs)("mask", { id: "mask", children: [(0, J.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, J.jsx)("image", i({ href: e }, c))] }) }), e && (0, J.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, J.jsx)("image", i({ href: t }, c)), (0, J.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, J.jsx)("div", b(i({ className: "camera-capture-text-and-image-container" }, h), { children: u })) })] });
|
|
2493
2491
|
};
|
|
2494
|
-
var
|
|
2492
|
+
var Pa = wu;
|
|
2495
2493
|
var ym = require("@transferwise/components");
|
|
2496
2494
|
var hm = require("react-intl");
|
|
2497
2495
|
var fm = require("react-intl");
|
|
2498
2496
|
var so = (0, fm.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" } });
|
|
2499
2497
|
var ze = require("react/jsx-runtime");
|
|
2500
|
-
var
|
|
2498
|
+
var Fu = ({ onAction: e }) => {
|
|
2501
2499
|
let t = (0, hm.useIntl)();
|
|
2502
2500
|
return (0, ze.jsx)("div", { id: "no-camera-access", children: (0, ze.jsx)("div", { className: "container p-t-5", children: (0, ze.jsx)("div", { className: "row", children: (0, ze.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, ze.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(so.title) }), (0, ze.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(so.paragraph) }), (0, ze.jsx)(ym.Button, { block: true, onClick: e, children: t.formatMessage(so.action) })] }) }) }) });
|
|
2503
2501
|
};
|
|
2504
|
-
var
|
|
2502
|
+
var Ma = Fu;
|
|
2505
2503
|
var Sm = require("react-intl");
|
|
2506
2504
|
var gm = require("react-intl");
|
|
2507
|
-
var
|
|
2505
|
+
var ka = (0, gm.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" } });
|
|
2508
2506
|
var tt = require("react/jsx-runtime");
|
|
2509
|
-
var
|
|
2507
|
+
var Cu = () => {
|
|
2510
2508
|
let e = (0, Sm.useIntl)();
|
|
2511
|
-
return (0, tt.jsx)("div", { id: "camera-not-supported", children: (0, tt.jsx)("div", { className: "container p-t-5", children: (0, tt.jsx)("div", { className: "row", children: (0, tt.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, tt.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(
|
|
2509
|
+
return (0, tt.jsx)("div", { id: "camera-not-supported", children: (0, tt.jsx)("div", { className: "container p-t-5", children: (0, tt.jsx)("div", { className: "row", children: (0, tt.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, tt.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(ka.title) }), (0, tt.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(ka.paragraph) })] }) }) }) });
|
|
2512
2510
|
};
|
|
2513
|
-
var Ea =
|
|
2511
|
+
var Ea = Cu;
|
|
2514
2512
|
var bm = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
|
|
2515
|
-
var wm = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await
|
|
2513
|
+
var wm = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await xu(t, r));
|
|
2516
2514
|
var Fm = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
|
|
2517
|
-
var
|
|
2515
|
+
var xu = async (e, t) => {
|
|
2518
2516
|
var n;
|
|
2519
|
-
let r = ao(t), o =
|
|
2517
|
+
let r = ao(t), o = Oa(t), a = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
|
|
2520
2518
|
return b(i({}, r && { "Available Video Devices (by label)": await lm(), "Active Video Device (by label)": await cm(t), "Camera Capabilities": o, "Camera Settings": a }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
2521
2519
|
};
|
|
2522
|
-
var
|
|
2523
|
-
var
|
|
2524
|
-
let [
|
|
2525
|
-
var
|
|
2526
|
-
if ((
|
|
2527
|
-
(
|
|
2528
|
-
let
|
|
2529
|
-
|
|
2520
|
+
var re = require("react/jsx-runtime");
|
|
2521
|
+
var Au = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: a = "", instructions: n = "", showReview: s = false, onCapture: l, onEvent: u }) => {
|
|
2522
|
+
let [d, c] = (0, Ce.useState)("CAPTURE"), [h, f] = (0, Ce.useState)(false), [m, p] = (0, Ce.useState)(false), [y, S] = (0, Ce.useState)(), g = (0, Ce.useRef)(null), { videoConstraints: w } = dm(e), F = (0, Cm.useIntl)(), P = (0, Ce.useCallback)(async () => {
|
|
2523
|
+
var L, O, B, M, ne, Ae;
|
|
2524
|
+
if ((L = g == null ? void 0 : g.current) != null && L.video && ((B = (O = g == null ? void 0 : g.current) == null ? void 0 : O.video) == null ? void 0 : B.readyState) >= 3) {
|
|
2525
|
+
(ne = (M = g == null ? void 0 : g.current) == null ? void 0 : M.video) == null || ne.pause();
|
|
2526
|
+
let _ = await sm((Ae = g == null ? void 0 : g.current) == null ? void 0 : Ae.video);
|
|
2527
|
+
_ == null || _.toBlob((de) => {
|
|
2530
2528
|
if (de)
|
|
2531
2529
|
if (s) {
|
|
2532
2530
|
let hr = window.URL.createObjectURL(de);
|
|
2533
|
-
S({ source: hr, blob: de }),
|
|
2531
|
+
S({ source: hr, blob: de }), c("REVIEW");
|
|
2534
2532
|
} else
|
|
2535
2533
|
l(de);
|
|
2536
2534
|
}, "image/jpeg", 0.92);
|
|
2537
2535
|
}
|
|
2538
|
-
}, [
|
|
2539
|
-
if (
|
|
2540
|
-
|
|
2536
|
+
}, [g, s, S, c, l, h]), v = (0, Ce.useCallback)((L) => {
|
|
2537
|
+
if (L instanceof DOMException && (L == null ? void 0 : L.name) === "NotAllowedError") {
|
|
2538
|
+
c("NO_CAMERA_ACCESS"), bm(u);
|
|
2541
2539
|
return;
|
|
2542
2540
|
}
|
|
2543
|
-
|
|
2544
|
-
}, [
|
|
2545
|
-
p(true), f(nm(
|
|
2546
|
-
}, [f, u, e]),
|
|
2541
|
+
c("CAMERA_NOT_SUPPORTED"), Fm(u, L);
|
|
2542
|
+
}, [c, u]), A = (0, Ce.useCallback)((L) => {
|
|
2543
|
+
p(true), f(nm(L)), wm(u, { direction: e }, L);
|
|
2544
|
+
}, [f, u, e]), E = () => {
|
|
2547
2545
|
l((y == null ? void 0 : y.blob) || null);
|
|
2548
|
-
},
|
|
2549
|
-
|
|
2550
|
-
},
|
|
2551
|
-
return (0,
|
|
2546
|
+
}, R = () => {
|
|
2547
|
+
c("CAPTURE"), S(void 0);
|
|
2548
|
+
}, x = () => c("CAPTURE"), T = (0, re.jsxs)(re.Fragment, { children: [w && (0, re.jsx)(xm.default, { ref: g, audio: false, videoConstraints: w, mirrored: h, onUserMediaError: v, onUserMedia: A }), (0, re.jsx)(Pa, { overlay: t, outline: r, imageUrl: o, title: a, instructions: n }), m && (0, re.jsx)(om, { onCapture: () => void P() })] }), H = (0, re.jsxs)(re.Fragment, { children: [(0, re.jsx)("img", { className: "review-image", src: y == null ? void 0 : y.source, alt: "" }), (0, re.jsx)(Pa, { overlay: t, imageUrl: o, title: a, instructions: n, reviewInstructions: F.formatMessage(pr.reviewInstructions) }), (0, re.jsx)(am, { onSubmit: E, onRetry: R })] });
|
|
2549
|
+
return (0, re.jsxs)("section", { className: "camera-capture", children: [d === "CAPTURE" && T, d === "REVIEW" && H, d === "NO_CAMERA_ACCESS" && (0, re.jsx)(Ma, { onAction: x }), d === "CAMERA_NOT_SUPPORTED" && (0, re.jsx)(Ea, {})] });
|
|
2552
2550
|
};
|
|
2553
|
-
var
|
|
2551
|
+
var Ia = Au;
|
|
2554
2552
|
var vm = require("react/jsx-runtime");
|
|
2555
|
-
function
|
|
2553
|
+
function vu(e) {
|
|
2556
2554
|
return new Promise((t, r) => {
|
|
2557
2555
|
let o = new FileReader();
|
|
2558
2556
|
o.onloadend = () => t(o.result), o.readAsDataURL(e);
|
|
2559
2557
|
});
|
|
2560
2558
|
}
|
|
2561
|
-
var
|
|
2562
|
-
let { step: t, model: r, onModelChange: o, onAction: a } = e, n =
|
|
2559
|
+
var Ou = (e) => {
|
|
2560
|
+
let { step: t, model: r, onModelChange: o, onAction: a } = e, n = ee(), s = Am(t), l = Pu(t), u = Mu(t), { title: d, image: c, cameraConfig: h } = l, { assets: f, direction: m, instructions: p } = h || {}, { overlay: y, outline: S } = f || {}, { url: g } = c || {}, [w, F] = (0, mo.useState)(false);
|
|
2563
2561
|
(0, mo.useEffect)(() => {
|
|
2564
|
-
|
|
2562
|
+
w && a(u);
|
|
2565
2563
|
}, [r]);
|
|
2566
|
-
let
|
|
2567
|
-
let { $id:
|
|
2568
|
-
if (
|
|
2569
|
-
let
|
|
2570
|
-
|
|
2564
|
+
let P = async (v) => {
|
|
2565
|
+
let { $id: A } = l;
|
|
2566
|
+
if (v) {
|
|
2567
|
+
let E = await vu(v), R = { [A || ""]: E };
|
|
2568
|
+
F(true), o({ model: R, formSchema: s, triggerModel: E, triggerSchema: l });
|
|
2571
2569
|
}
|
|
2572
2570
|
};
|
|
2573
|
-
return (0, vm.jsx)(
|
|
2574
|
-
v
|
|
2571
|
+
return (0, vm.jsx)(Ia, { overlay: y, outline: S, title: d, imageUrl: g, instructions: p, direction: m, onEvent: n, onCapture: (v) => {
|
|
2572
|
+
P(v);
|
|
2575
2573
|
} });
|
|
2576
2574
|
};
|
|
2577
|
-
var lo =
|
|
2575
|
+
var lo = Ou;
|
|
2578
2576
|
function Am(e) {
|
|
2579
2577
|
let r = Lr(e.schemas || [])[0];
|
|
2580
2578
|
if (!r || !Pe(r))
|
|
2581
2579
|
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...");
|
|
2582
2580
|
return r;
|
|
2583
2581
|
}
|
|
2584
|
-
function
|
|
2582
|
+
function Pu(e) {
|
|
2585
2583
|
let t = Am(e), r = Object.values(t.properties)[0];
|
|
2586
2584
|
if (!r)
|
|
2587
2585
|
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...");
|
|
2588
2586
|
return r;
|
|
2589
2587
|
}
|
|
2590
|
-
function
|
|
2588
|
+
function Mu(e) {
|
|
2591
2589
|
var t, r;
|
|
2592
2590
|
if (!e.schemas || ((t = Lr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2593
2591
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
@@ -2598,16 +2596,16 @@ var require_main_min = __commonJS({
|
|
|
2598
2596
|
var Mm = require("react-intl");
|
|
2599
2597
|
var Om = require("react-intl");
|
|
2600
2598
|
var fr = (0, Om.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." } });
|
|
2601
|
-
var
|
|
2599
|
+
var km = require("react/jsx-runtime");
|
|
2602
2600
|
var Pm = () => {
|
|
2603
2601
|
};
|
|
2604
|
-
var
|
|
2602
|
+
var ku = ({ url: e, onClose: t }) => {
|
|
2605
2603
|
let { formatMessage: r } = (0, Mm.useIntl)();
|
|
2606
|
-
return (0,
|
|
2604
|
+
return (0, km.jsx)(me, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(fr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(fr.description, { origin: Eu(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(fr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(fr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (o) => {
|
|
2607
2605
|
o.url && window.open(o.url, "_blank"), t();
|
|
2608
2606
|
}, onModelChange: Pm, onPersistAsync: Pm });
|
|
2609
2607
|
};
|
|
2610
|
-
var co =
|
|
2608
|
+
var co = ku;
|
|
2611
2609
|
function Eu(e) {
|
|
2612
2610
|
try {
|
|
2613
2611
|
return new URL(e).origin;
|
|
@@ -2615,47 +2613,47 @@ var require_main_min = __commonJS({
|
|
|
2615
2613
|
return e;
|
|
2616
2614
|
}
|
|
2617
2615
|
}
|
|
2618
|
-
var
|
|
2616
|
+
var Em = require("@transferwise/components");
|
|
2619
2617
|
var Im = require("@transferwise/icons");
|
|
2620
|
-
var
|
|
2621
|
-
var
|
|
2618
|
+
var Gt = require("react/jsx-runtime");
|
|
2619
|
+
var Iu = ({ title: e, action: t, onAction: r }) => (0, Gt.jsxs)("a", { onClick: (o) => {
|
|
2622
2620
|
o.preventDefault(), r(b(i({}, t), { skipValidation: true }));
|
|
2623
|
-
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0,
|
|
2624
|
-
var Dm =
|
|
2621
|
+
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, Gt.jsx)("span", { className: "sr-only", children: e }), (0, Gt.jsx)(Em.Avatar, { type: "icon", children: (0, Gt.jsx)(Im.ArrowLeft, { size: "24" }) })] });
|
|
2622
|
+
var Dm = Iu;
|
|
2625
2623
|
var De = require("react/jsx-runtime");
|
|
2626
2624
|
var qr = (e) => {
|
|
2627
|
-
var u, c;
|
|
2628
|
-
let { step: t, globalError: r, onAction: o } = e, a = (u = t == null ? void 0 : t.external) == null ? void 0 : u.url, n = (c = t == null ? void 0 : t.navigation) == null ? void 0 : c.backButton, { requiresManualTrigger: s, dismissConfirmation: l } =
|
|
2625
|
+
var u, d, c;
|
|
2626
|
+
let { step: t, globalError: r, onAction: o } = e, a = (u = t == null ? void 0 : t.external) == null ? void 0 : u.url, n = ((d = t == null ? void 0 : t.navigation) == null ? void 0 : d.back) || ((c = t == null ? void 0 : t.navigation) == null ? void 0 : c.backButton), { requiresManualTrigger: s, dismissConfirmation: l } = Tn(a);
|
|
2629
2627
|
return t === void 0 ? null : a && s ? (0, De.jsx)(co, { url: a, onClose: l }) : En(t) ? (0, De.jsx)(lo, b(i({}, e), { step: t })) : (0, De.jsxs)(De.Fragment, { children: [n && (0, De.jsx)(Dm, b(i({}, n), { onAction: o })), r ? (0, De.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, De.jsx)(oo, b(i({}, e), { stepSpecification: t }))] });
|
|
2630
2628
|
};
|
|
2631
2629
|
var Lm = require("react");
|
|
2632
|
-
var
|
|
2630
|
+
var Du = 1e3;
|
|
2633
2631
|
function Tm(e) {
|
|
2634
2632
|
let t = (0, Lm.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
|
|
2635
2633
|
if (t.current.has(o))
|
|
2636
2634
|
return t.current.get(o);
|
|
2637
|
-
let a = We((n, s, l) => e(n, s, l),
|
|
2635
|
+
let a = We((n, s, l) => e(n, s, l), Du);
|
|
2638
2636
|
return t.current.set(o, a), a;
|
|
2639
2637
|
};
|
|
2640
2638
|
return function(o, a, n, s) {
|
|
2641
2639
|
let l = r(o);
|
|
2642
|
-
l(o, a, n), (!s || !
|
|
2640
|
+
l(o, a, n), (!s || !Lu(s)) && l.flush();
|
|
2643
2641
|
};
|
|
2644
2642
|
}
|
|
2645
|
-
var
|
|
2646
|
-
var
|
|
2643
|
+
var Lu = (e) => it(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2644
|
+
var $t = require("react");
|
|
2647
2645
|
var Bm = (e) => {
|
|
2648
2646
|
var m, p;
|
|
2649
|
-
let [t, r] = (0,
|
|
2650
|
-
var
|
|
2651
|
-
s((
|
|
2652
|
-
},
|
|
2653
|
-
s((
|
|
2654
|
-
let
|
|
2655
|
-
return
|
|
2647
|
+
let [t, r] = (0, $t.useState)((m = e == null ? void 0 : e.errors) == null ? void 0 : m.validation), [o, a] = (0, $t.useState)((p = e == null ? void 0 : e.errors) == null ? void 0 : p.error), [n, s] = (0, $t.useState)({ step: e || void 0, models: e != null && e.model ? Nm(e.model, Rm(e)) : {}, etag: void 0 }), { step: l, models: u, etag: d } = n, c = (y, S) => {
|
|
2648
|
+
var g, w, F, P;
|
|
2649
|
+
s((v) => ({ step: y, models: y.model ? Nm(y.model, Rm(y)) : v.models, etag: S })), r((w = (g = y == null ? void 0 : y.errors) == null ? void 0 : g.validation) != null ? w : null), a((P = (F = y == null ? void 0 : y.errors) == null ? void 0 : F.error) != null ? P : null);
|
|
2650
|
+
}, h = (y, S, g) => {
|
|
2651
|
+
s((w) => {
|
|
2652
|
+
let F = b(i({}, w.models), { [y]: S }), P = { step: w.step, models: F, etag: w.etag };
|
|
2653
|
+
return g(F), P;
|
|
2656
2654
|
});
|
|
2657
|
-
}, f = (0,
|
|
2658
|
-
return { formErrors: t, globalError: o, step: l, models: u, etag:
|
|
2655
|
+
}, f = (0, $t.useMemo)(() => Nu(u, Tu(l)), [u, l]);
|
|
2656
|
+
return { formErrors: t, globalError: o, step: l, models: u, etag: d, modelIsValid: f, setFormErrors: r, setGlobalError: a, setStepAndEtag: c, setSchemaModel: h };
|
|
2659
2657
|
};
|
|
2660
2658
|
var Nm = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), b(i({}, r), { [o.$id || ""]: ie(e, o) || {} })), {});
|
|
2661
2659
|
var Rm = (e) => [...uo((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
|
|
@@ -2671,21 +2669,21 @@ var require_main_min = __commonJS({
|
|
|
2671
2669
|
return [];
|
|
2672
2670
|
}
|
|
2673
2671
|
});
|
|
2674
|
-
var
|
|
2675
|
-
var
|
|
2672
|
+
var Tu = (e) => [...Da((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...uo((e == null ? void 0 : e.layout) || [])];
|
|
2673
|
+
var Da = (e) => e.flatMap((t) => {
|
|
2676
2674
|
switch (t.type) {
|
|
2677
2675
|
case "columns":
|
|
2678
|
-
return [...
|
|
2676
|
+
return [...Da([...t.left, ...t.right])];
|
|
2679
2677
|
case "box":
|
|
2680
|
-
return
|
|
2678
|
+
return Da(t.components);
|
|
2681
2679
|
case "form":
|
|
2682
|
-
return [
|
|
2680
|
+
return [Ru(t)];
|
|
2683
2681
|
default:
|
|
2684
2682
|
return [];
|
|
2685
2683
|
}
|
|
2686
2684
|
}).filter(Boolean);
|
|
2687
|
-
var
|
|
2688
|
-
var
|
|
2685
|
+
var Nu = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !W(e[r.$id || ""] || {}, r))));
|
|
2686
|
+
var Ru = (e) => e.schema && !jm(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2689
2687
|
var jm = (e) => e !== void 0 && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "$ref") === false;
|
|
2690
2688
|
var po = require("@transferwise/components");
|
|
2691
2689
|
var Vm = require("react");
|
|
@@ -2694,18 +2692,18 @@ var require_main_min = __commonJS({
|
|
|
2694
2692
|
let r = i({ size: po.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, a] = (0, Vm.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0, zm.jsx)(po.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
|
|
2695
2693
|
return { isLoading: o !== "idle", setLoadingState: a, loader: s };
|
|
2696
2694
|
}
|
|
2697
|
-
var
|
|
2695
|
+
var $m = require("react");
|
|
2698
2696
|
var fo = require("@transferwise/components");
|
|
2699
2697
|
var Hm = require("react-intl");
|
|
2700
2698
|
var Gm = require("react/jsx-runtime");
|
|
2701
2699
|
var qm = ({ onDismiss: e }) => {
|
|
2702
2700
|
let { formatMessage: t } = (0, Hm.useIntl)();
|
|
2703
|
-
return (0, Gm.jsx)(fo.Alert, { action: { text: t(
|
|
2701
|
+
return (0, Gm.jsx)(fo.Alert, { action: { text: t(Ht.retry), href: window.location.href }, message: t(Ht.errorAlert), type: fo.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2704
2702
|
};
|
|
2705
2703
|
var _t = require("react/jsx-runtime");
|
|
2706
|
-
var
|
|
2704
|
+
var Bu = () => {
|
|
2707
2705
|
};
|
|
2708
|
-
var
|
|
2706
|
+
var La = class extends $m.Component {
|
|
2709
2707
|
constructor(r) {
|
|
2710
2708
|
super(r);
|
|
2711
2709
|
this.handleErrorReset = () => {
|
|
@@ -2717,7 +2715,7 @@ var require_main_min = __commonJS({
|
|
|
2717
2715
|
return { hasError: true, isFatalError: true };
|
|
2718
2716
|
}
|
|
2719
2717
|
componentDidCatch(r) {
|
|
2720
|
-
let { onError: o =
|
|
2718
|
+
let { onError: o = Bu } = this.props;
|
|
2721
2719
|
o(r);
|
|
2722
2720
|
}
|
|
2723
2721
|
render() {
|
|
@@ -2725,58 +2723,64 @@ var require_main_min = __commonJS({
|
|
|
2725
2723
|
return (0, _t.jsxs)(_t.Fragment, { children: [o && (0, _t.jsx)(qm, { onDismiss: this.handleErrorReset }), !a && r] });
|
|
2726
2724
|
}
|
|
2727
2725
|
};
|
|
2728
|
-
var
|
|
2729
|
-
var
|
|
2730
|
-
switch (
|
|
2726
|
+
var Ta = La;
|
|
2727
|
+
var _m = async (e, t) => {
|
|
2728
|
+
switch (t) {
|
|
2731
2729
|
case "step":
|
|
2732
|
-
return
|
|
2730
|
+
return Wm(e);
|
|
2733
2731
|
case "exit":
|
|
2734
|
-
return
|
|
2732
|
+
return Jm(e);
|
|
2735
2733
|
case "action":
|
|
2736
|
-
return
|
|
2734
|
+
return Km(e);
|
|
2737
2735
|
default:
|
|
2738
|
-
throw new Error("Unsupported X-Df-
|
|
2736
|
+
throw new Error("Unsupported X-Df-Response-Type. Allowed values are 'step', 'action', 'exit'.");
|
|
2739
2737
|
}
|
|
2740
2738
|
};
|
|
2741
|
-
var
|
|
2739
|
+
var Wm = async (e) => {
|
|
2742
2740
|
let t = await yr(e);
|
|
2743
|
-
if (!
|
|
2741
|
+
if (!N(t))
|
|
2744
2742
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2745
2743
|
let r = e.headers.get("etag") || void 0;
|
|
2746
2744
|
return { type: "step", step: t, etag: r };
|
|
2747
2745
|
};
|
|
2748
|
-
var
|
|
2746
|
+
var Km = async (e) => {
|
|
2749
2747
|
let t = await yr(e);
|
|
2750
|
-
if (!
|
|
2748
|
+
if (!N(t))
|
|
2751
2749
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2752
|
-
if (!
|
|
2750
|
+
if (!N(t.action))
|
|
2753
2751
|
throw new Error("Incorrect response body in action response. Expected an object satisfying the type { action: Action }.");
|
|
2754
2752
|
let r = t.action;
|
|
2755
|
-
return r.exit === true &&
|
|
2756
|
-
};
|
|
2757
|
-
var Km = async (e) => ({ type: "exit", result: await Ta(e) });
|
|
2758
|
-
var Jm = async (e) => {
|
|
2759
|
-
var r, o;
|
|
2760
|
-
if (Na(e), (r = e.headers) != null && r.has("X-Df-ResponseType"))
|
|
2761
|
-
return Bu(e);
|
|
2762
|
-
if ((o = e.headers) != null && o.has("X-Df-Exit"))
|
|
2763
|
-
return Km(e);
|
|
2764
|
-
let t = await yr(e.clone());
|
|
2765
|
-
return L(t) && t.action ? Wm(e) : $m(e);
|
|
2753
|
+
return r.exit === true && N(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
|
|
2766
2754
|
};
|
|
2755
|
+
var Jm = async (e) => ({ type: "exit", result: await Na(e) });
|
|
2767
2756
|
var Xm = async (e) => {
|
|
2768
|
-
|
|
2757
|
+
var r, o, a;
|
|
2758
|
+
if (Ra(e), (r = e.headers) != null && r.has("X-Df-Response-Type")) {
|
|
2759
|
+
let n = e.headers.get("X-Df-Response-Type");
|
|
2760
|
+
return _m(e, n);
|
|
2761
|
+
}
|
|
2762
|
+
if ((o = e.headers) != null && o.has("X-Df-ResponseType")) {
|
|
2763
|
+
let n = e.headers.get("X-Df-ResponseType");
|
|
2764
|
+
return _m(e, n);
|
|
2765
|
+
}
|
|
2766
|
+
if ((a = e.headers) != null && a.has("X-Df-Exit"))
|
|
2767
|
+
return Jm(e);
|
|
2768
|
+
let t = await yr(e.clone());
|
|
2769
|
+
return N(t) && t.action ? Km(e) : Wm(e);
|
|
2770
|
+
};
|
|
2771
|
+
var Ym = async (e) => {
|
|
2772
|
+
Ra(e);
|
|
2769
2773
|
let t = await yr(e);
|
|
2770
|
-
if (!
|
|
2774
|
+
if (!N(t))
|
|
2771
2775
|
throw new Error("Incorrect response body in error response. Expected an object.");
|
|
2772
2776
|
if (!t.refreshFormUrl && !t.refreshUrl && !t.validation && !t.error)
|
|
2773
2777
|
throw t;
|
|
2774
2778
|
return t;
|
|
2775
2779
|
};
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2780
|
+
var Na = async (e) => {
|
|
2781
|
+
Ra(e);
|
|
2778
2782
|
let t = await yr(e);
|
|
2779
|
-
return
|
|
2783
|
+
return N(t) ? t : null;
|
|
2780
2784
|
};
|
|
2781
2785
|
var yr = async (e) => {
|
|
2782
2786
|
try {
|
|
@@ -2785,7 +2789,7 @@ var require_main_min = __commonJS({
|
|
|
2785
2789
|
return null;
|
|
2786
2790
|
}
|
|
2787
2791
|
};
|
|
2788
|
-
var
|
|
2792
|
+
var Ra = (e) => {
|
|
2789
2793
|
if (!ju(e))
|
|
2790
2794
|
throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
|
|
2791
2795
|
if (e.bodyUsed)
|
|
@@ -2793,127 +2797,127 @@ var require_main_min = __commonJS({
|
|
|
2793
2797
|
};
|
|
2794
2798
|
var ju = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2795
2799
|
var rt = require("react/jsx-runtime");
|
|
2796
|
-
var
|
|
2797
|
-
};
|
|
2798
|
-
var Vu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: a, displayStepTitle: n = true, onCompletion: s, onError: l, onEvent: u =
|
|
2799
|
-
let { locale:
|
|
2800
|
-
var
|
|
2801
|
-
return i({ flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key) }, (
|
|
2802
|
-
}, [e, m]),
|
|
2803
|
-
let { url:
|
|
2804
|
-
return t(
|
|
2805
|
-
}, [t,
|
|
2806
|
-
|
|
2800
|
+
var Zm = () => {
|
|
2801
|
+
};
|
|
2802
|
+
var Vu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: a, displayStepTitle: n = true, onCompletion: s, onError: l, onEvent: u = Zm, onLog: d = Zm }) => {
|
|
2803
|
+
let { locale: c } = (0, Qm.useIntl)(), { formErrors: h, globalError: f, step: m, models: p, etag: y, modelIsValid: S, setFormErrors: g, setGlobalError: w, setStepAndEtag: F, setSchemaModel: P } = Bm(o), [v, A] = (0, xe.useState)(false), { isLoading: E, loader: R, setLoadingState: x } = Um(a, o ? "idle" : "initial"), T = at("critical", d, e, (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key)), H = (0, xe.useMemo)(() => {
|
|
2804
|
+
var C;
|
|
2805
|
+
return i({ flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key) }, (C = m == null ? void 0 : m.analytics) != null ? C : {});
|
|
2806
|
+
}, [e, m]), L = (0, xe.useMemo)(() => wo(u, H), [u, H]), O = (0, xe.useCallback)(({ action: C, data: z, etag: D }) => {
|
|
2807
|
+
let { url: Q, method: He = "POST" } = C;
|
|
2808
|
+
return t(Q != null ? Q : "", { method: He, headers: i({ "accept-language": c, "Content-Type": "application/json" }, D ? { "If-None-Match": D } : {}), credentials: "include", body: He === "GET" ? void 0 : JSON.stringify(z) });
|
|
2809
|
+
}, [t, c]), B = async (C, z = {}) => {
|
|
2810
|
+
x(m ? "submission" : "initial"), L("Dynamic Flow - Step Submitted", { actionId: C.id || C.$id });
|
|
2807
2811
|
try {
|
|
2808
|
-
let
|
|
2809
|
-
await hr(
|
|
2810
|
-
} catch (
|
|
2811
|
-
gr(
|
|
2812
|
+
let D = await O({ action: C, data: z });
|
|
2813
|
+
await hr(D, "submission");
|
|
2814
|
+
} catch (D) {
|
|
2815
|
+
gr(D, "Error fetching next step");
|
|
2812
2816
|
}
|
|
2813
|
-
},
|
|
2814
|
-
|
|
2817
|
+
}, M = async (C, z, D) => {
|
|
2818
|
+
x("refresh"), L("Dynamic Flow - Step Refreshed", { status: "pending" });
|
|
2815
2819
|
try {
|
|
2816
|
-
let
|
|
2817
|
-
await hr(
|
|
2818
|
-
} catch (
|
|
2819
|
-
gr(
|
|
2820
|
+
let Q = await O({ action: { url: C, method: "POST" }, data: z, etag: D });
|
|
2821
|
+
await hr(Q, "refresh");
|
|
2822
|
+
} catch (Q) {
|
|
2823
|
+
gr(Q, "Error fetching refresh step");
|
|
2820
2824
|
}
|
|
2821
|
-
},
|
|
2822
|
-
|
|
2825
|
+
}, ne = async (C, z) => {
|
|
2826
|
+
x("submission");
|
|
2823
2827
|
try {
|
|
2824
|
-
let
|
|
2825
|
-
await
|
|
2826
|
-
} catch (
|
|
2827
|
-
gr(
|
|
2828
|
+
let D = await O({ action: C, data: z });
|
|
2829
|
+
await Ae(D, C.result);
|
|
2830
|
+
} catch (D) {
|
|
2831
|
+
gr(D, "Error fetching exit result");
|
|
2828
2832
|
}
|
|
2829
|
-
},
|
|
2830
|
-
let
|
|
2831
|
-
de(i(i({},
|
|
2832
|
-
},
|
|
2833
|
-
|
|
2834
|
-
}, [s,
|
|
2833
|
+
}, Ae = async (C, z) => {
|
|
2834
|
+
let D = await Na(C);
|
|
2835
|
+
de(i(i({}, D), z));
|
|
2836
|
+
}, _ = Tm(M), de = (0, xe.useCallback)((C) => {
|
|
2837
|
+
L("Dynamic Flow - Flow Finished", { result: "success" }), s(C);
|
|
2838
|
+
}, [s, L]);
|
|
2835
2839
|
(0, xe.useEffect)(() => {
|
|
2836
|
-
|
|
2840
|
+
L("Dynamic Flow - Flow Started", {});
|
|
2837
2841
|
}, []), (0, xe.useEffect)(() => {
|
|
2838
2842
|
if (!o) {
|
|
2839
|
-
let
|
|
2840
|
-
|
|
2843
|
+
let C = i({ id: "#initial-step-request", method: "GET" }, r);
|
|
2844
|
+
B(C, C.data);
|
|
2841
2845
|
}
|
|
2842
|
-
}, [t,
|
|
2843
|
-
let hr = async (
|
|
2846
|
+
}, [t, c, JSON.stringify(o), JSON.stringify(r)]);
|
|
2847
|
+
let hr = async (C, z) => {
|
|
2844
2848
|
try {
|
|
2845
|
-
if (
|
|
2846
|
-
|
|
2849
|
+
if (C.status === 304) {
|
|
2850
|
+
x("idle");
|
|
2847
2851
|
return;
|
|
2848
2852
|
}
|
|
2849
|
-
if (!
|
|
2850
|
-
let
|
|
2851
|
-
|
|
2853
|
+
if (!C.ok) {
|
|
2854
|
+
let Q = await Ym(C);
|
|
2855
|
+
gl(Q);
|
|
2852
2856
|
return;
|
|
2853
2857
|
}
|
|
2854
|
-
let
|
|
2855
|
-
|
|
2856
|
-
} catch (
|
|
2857
|
-
return gr(
|
|
2858
|
+
let D = await Xm(C);
|
|
2859
|
+
D.type === "action" ? B(D.action, D.action.data) : D.type === "exit" ? de(D.result) : hl(D.step, D.etag, z);
|
|
2860
|
+
} catch (D) {
|
|
2861
|
+
return gr(D, "Error parsing fetch response", z, C.status);
|
|
2858
2862
|
}
|
|
2859
|
-
},
|
|
2860
|
-
|
|
2861
|
-
},
|
|
2862
|
-
let
|
|
2863
|
-
|
|
2864
|
-
}, gr = (
|
|
2865
|
-
|
|
2866
|
-
},
|
|
2867
|
-
let { model:
|
|
2868
|
-
|
|
2869
|
-
|
|
2863
|
+
}, hl = (C, z, D) => {
|
|
2864
|
+
F(C, z), x("idle"), D === "submission" ? (A(false), L("Dynamic Flow - Step Started", i({ stepId: C.id || C.key }, C == null ? void 0 : C.analytics))) : L("Dynamic Flow - Step Refreshed", { status: "success" });
|
|
2865
|
+
}, gl = async (C) => {
|
|
2866
|
+
let z = C.refreshUrl || C.refreshFormUrl;
|
|
2867
|
+
z && await M(z, yo(p), y), C.validation && g(C.validation), C.error && w(C.error), x("idle");
|
|
2868
|
+
}, gr = (C, z, D, Q) => {
|
|
2869
|
+
T("Error fetching", z), D === "refresh" && L("Dynamic Flow - Step Refreshed", { status: "failure" }), L("Dynamic Flow - Flow Finished", { status: "failure" }), l(C, Q), x("idle");
|
|
2870
|
+
}, Sl = (C) => {
|
|
2871
|
+
let { model: z, formSchema: D } = C, { $id: Q = "" } = D;
|
|
2872
|
+
w(null), $(z) || T("Invalid model on change", "onModelChange was called but the model argument is not an object"), P(Q, z, (wt) => {
|
|
2873
|
+
bl(C, wt);
|
|
2870
2874
|
});
|
|
2871
|
-
},
|
|
2872
|
-
let { triggerSchema:
|
|
2873
|
-
if (Hu(
|
|
2874
|
-
let
|
|
2875
|
-
|
|
2875
|
+
}, bl = (C, z) => {
|
|
2876
|
+
let { triggerSchema: D } = C;
|
|
2877
|
+
if (Hu(C)) {
|
|
2878
|
+
let Q = D.refreshUrl || D.refreshFormUrl, He = (m == null ? void 0 : m.refreshUrl) || (m == null ? void 0 : m.refreshFormUrl), wt = Q || He;
|
|
2879
|
+
wt && _(wt, yo(z), y, D);
|
|
2876
2880
|
}
|
|
2877
|
-
},
|
|
2878
|
-
if (
|
|
2881
|
+
}, wl = async (C) => {
|
|
2882
|
+
if (E || C.disabled)
|
|
2879
2883
|
return;
|
|
2880
|
-
if (
|
|
2881
|
-
de(
|
|
2884
|
+
if (C.exit && !C.url) {
|
|
2885
|
+
de(C.result);
|
|
2882
2886
|
return;
|
|
2883
2887
|
}
|
|
2884
|
-
let
|
|
2885
|
-
zu(
|
|
2888
|
+
let z = C.exit ? ne : B, { data: D, method: Q, skipValidation: He } = C, wt = i(i({}, yo(p)), D);
|
|
2889
|
+
zu(Q) ? (g(null), He || A(true), (S || He) && await z(C, wt)) : await z(C);
|
|
2886
2890
|
};
|
|
2887
|
-
return (0, rt.jsx)(
|
|
2888
|
-
|
|
2889
|
-
}, onModelChange:
|
|
2891
|
+
return (0, rt.jsx)(kr, { flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key), onLog: d, children: (0, rt.jsx)(Cr, { metadata: H, onEvent: u, children: (0, rt.jsx)(Xa, { loading: E, children: (0, rt.jsx)(tn, { httpClient: t, children: R !== null ? R : (0, rt.jsx)(qr, { step: m, model: yo(p), submitted: v, globalError: f, formErrors: h, stepLayoutOptions: { displayStepTitle: n }, onAction: (C) => {
|
|
2892
|
+
wl(C);
|
|
2893
|
+
}, onModelChange: Sl }) }) }) }) });
|
|
2890
2894
|
};
|
|
2891
|
-
var Uu = (e) => (0, rt.jsx)(
|
|
2892
|
-
var
|
|
2895
|
+
var Uu = (e) => (0, rt.jsx)(Ta, { onError: e.onError, children: (0, rt.jsx)(Vu, i({}, e)) });
|
|
2896
|
+
var Ba = Uu;
|
|
2893
2897
|
var yo = (e) => Object.values(e).reduce((t, r) => i(i({}, t), r), {});
|
|
2894
2898
|
var zu = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
2895
2899
|
var Hu = (e) => {
|
|
2896
|
-
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: a = null } = e, n = () =>
|
|
2900
|
+
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: a = null } = e, n = () => W(o, r), s = () => W(a, r), l = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
2897
2901
|
return t !== "init" && l && (n() || s());
|
|
2898
2902
|
};
|
|
2899
|
-
var
|
|
2900
|
-
var
|
|
2901
|
-
var
|
|
2902
|
-
var
|
|
2903
|
-
var
|
|
2904
|
-
var
|
|
2905
|
-
var
|
|
2906
|
-
var
|
|
2907
|
-
var
|
|
2908
|
-
var
|
|
2909
|
-
var
|
|
2910
|
-
var
|
|
2911
|
-
var
|
|
2912
|
-
var
|
|
2913
|
-
var
|
|
2914
|
-
var
|
|
2915
|
-
var np = { en:
|
|
2916
|
-
var
|
|
2903
|
+
var el = { "dynamicFlows.ArraySchema.addItem": "Speichern", "dynamicFlows.ArraySchema.addItemTitle": "Artikel hinzuf\xFCgen", "dynamicFlows.ArraySchema.editItem": "Speichern", "dynamicFlows.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.", "dynamicFlows.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.", "dynamicFlows.ArraySchema.removeItem": "Entfernen", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Der von dir verwendete Browser unterst\xFCtzt keine Kameras. Bitte verwende einen anderen Browser oder ein anderes Ger\xE4t, oder lade unsere App herunter", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera wird nicht unterst\xFCtzt", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamerazugriff genehmigen", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Aktiviere den Kamerazugriff in den Einstellungen deines Browsers, um weitermachen zu k\xF6nnen.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Wir k\xF6nnen nicht auf deine Kamera zugreifen", "dynamicFlows.CameraCapture.reviewInstructions": "Ist das aufgenommene Bild deutlich erkennbar und vollst\xE4ndig?", "dynamicFlows.CameraCapture.reviewRetry": "Nein, erneut versuchen", "dynamicFlows.CameraCapture.reviewSubmit": "Ja, senden", "dynamicFlows.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.", "dynamicFlows.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.", "dynamicFlows.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.", "dynamicFlows.ControlFeedback.minLength": "Bitte gib mindestens {minLength} Zeichen ein.", "dynamicFlows.ControlFeedback.minimum": "Bitte gib eine Zahl ein, die {minimum} oder mehr betr\xE4gt.", "dynamicFlows.ControlFeedback.minimumDate": "Bitte gib ein Datum ein, das am oder nach dem {minimum} liegt.", "dynamicFlows.ControlFeedback.pattern": "Bitte gib die Angabe im richtigen Format ein.", "dynamicFlows.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.", "dynamicFlows.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.", "dynamicFlows.ControlFeedback.type": "Falscher Typ", "dynamicFlows.DynamicExternal.retryTitle": "Fenster erneut \xF6ffnen", "dynamicFlows.DynamicParagraph.copied": "In Zwischenablage kopiert", "dynamicFlows.DynamicParagraph.copy": "Kopieren", "dynamicFlows.ErrorBoundary.errorAlert": "Hoppla \u2013 da ist was schiefgelaufen...", "dynamicFlows.ErrorBoundary.retry": "Erneut versuchen", "dynamicFlows.ExternalConfirmation.cancel": "Abbrechen", "dynamicFlows.ExternalConfirmation.description": "Bitte best\xE4tige, dass du **{origin}** in einem neuen Browser-Tab \xF6ffnen m\xF6chtest.", "dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen", "dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen", "dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Bitte lade {maxItems} oder weniger Dateien hoch.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.", "dynamicFlows.PersistAsyncSchema.genericError": "Da ist etwas schiefgelaufen. Probiere es bitte sp\xE4ter noch einmal.", "dynamicFlows.ReadOnlySchema.no": "Nein", "dynamicFlows.ReadOnlySchema.yes": "Ja" };
|
|
2904
|
+
var tl = { "dynamicFlows.ArraySchema.addItem": "Save", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Save", "dynamicFlows.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.", "dynamicFlows.ArraySchema.minItemsError": "Please add at least {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Remove", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera not supported", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Enable camera access", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Enable camera access in your browser's settings to get going again.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "We can't access your camera", "dynamicFlows.CameraCapture.reviewInstructions": "Is your picture clear, readable and complete?", "dynamicFlows.CameraCapture.reviewRetry": "No, try again", "dynamicFlows.CameraCapture.reviewSubmit": "Yes, submit", "dynamicFlows.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.", "dynamicFlows.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.", "dynamicFlows.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Please enter at least {minLength} characters.", "dynamicFlows.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.", "dynamicFlows.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Please enter this in the correct format.", "dynamicFlows.ControlFeedback.patternDate": "Please enter a date in the corrrect format.", "dynamicFlows.ControlFeedback.required": "Please fill out this field.", "dynamicFlows.ControlFeedback.type": "Incorrect type", "dynamicFlows.DynamicExternal.retryTitle": "Reopen window", "dynamicFlows.DynamicParagraph.copied": "Copied to clipboard", "dynamicFlows.DynamicParagraph.copy": "Copy", "dynamicFlows.ErrorBoundary.errorAlert": "Oops. Something went wrong...", "dynamicFlows.ErrorBoundary.retry": "Retry", "dynamicFlows.ExternalConfirmation.cancel": "Cancel", "dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.", "dynamicFlows.ExternalConfirmation.open": "Open in new tab", "dynamicFlows.ExternalConfirmation.title": "Please confirm", "dynamicFlows.Help.ariaLabel": "Click here for more info.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Something went wrong, please try again later!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "Yes" };
|
|
2905
|
+
var rl = { "dynamicFlows.ArraySchema.addItem": "Guardar", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Guardar", "dynamicFlows.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.", "dynamicFlows.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Eliminar", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "El navegador que est\xE1s utilizando no es compatible con una c\xE1mara. Prueba con otro navegador, dispositivo o descarga nuestra app m\xF3vil.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE1mara no compatible", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Habilitar acceso a la c\xE1mara", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Habilita el acceso a la c\xE1mara en la configuraci\xF3n de tu navegador para volver a activarla.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "No podemos acceder a tu c\xE1mara", "dynamicFlows.CameraCapture.reviewInstructions": "\xBFTu foto es clara, legible y completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, intentar de nuevo", "dynamicFlows.CameraCapture.reviewSubmit": "S\xED, enviar", "dynamicFlows.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.", "dynamicFlows.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Introduce al menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Introduce una cifra igual o inferior a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Introduce una fecha que sea igual o posterior al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Utiliza el formato correcto.", "dynamicFlows.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.", "dynamicFlows.ControlFeedback.required": "Completa este campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorrecto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir ventana", "dynamicFlows.DynamicParagraph.copied": "Copiado al portapapeles", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Vaya. Algo ha salido mal...", "dynamicFlows.ErrorBoundary.retry": "Reintentar", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Confirma que quieres abrir **{origin}** en una nueva pesta\xF1a del navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir en nueva pesta\xF1a", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirma", "dynamicFlows.Help.ariaLabel": "Haz clic aqu\xED para obtener m\xE1s informaci\xF3n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Sube {maxItems} o menos archivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo ha ido mal. Int\xE9ntalo de nuevo m\xE1s tarde.", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xED" };
|
|
2906
|
+
var ol = { "dynamicFlows.ArraySchema.addItem": "Enregistrer", "dynamicFlows.ArraySchema.addItemTitle": "Ajouter un \xE9l\xE9ment", "dynamicFlows.ArraySchema.editItem": "Enregistrer", "dynamicFlows.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.", "dynamicFlows.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Supprimer", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Le navigateur que vous utilisez ne prend pas en charge l'appareil photo. Veuillez essayer un autre navigateur, un autre appareil ou t\xE9l\xE9charger notre appli.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Appareil photo non pris en charge", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Autoriser l'acc\xE8s \xE0 l'appareil photo", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Autorisez l'acc\xE8s \xE0 l'appareil photo depuis les param\xE8tres de votre navigateur.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nous n'avons pas acc\xE8s \xE0 votre appareil photo", "dynamicFlows.CameraCapture.reviewInstructions": "Votre image est-elle claire, lisible et dans son int\xE9gralit\xE9\xA0?", "dynamicFlows.CameraCapture.reviewRetry": "Non, r\xE9essayer", "dynamicFlows.CameraCapture.reviewSubmit": "Oui, confirmer", "dynamicFlows.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.", "dynamicFlows.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Veuillez saisir au moins {minLength} caract\xE8res.", "dynamicFlows.ControlFeedback.minimum": "Veuillez saisir un nombre sup\xE9rieur ou \xE9gal \xE0 {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Veuillez saisir une date \xE9gale ou post\xE9rieure au {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Veuillez saisir les informations dans le bon format.", "dynamicFlows.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.", "dynamicFlows.ControlFeedback.required": "Champ obligatoire.", "dynamicFlows.ControlFeedback.type": "Type incorrect", "dynamicFlows.DynamicExternal.retryTitle": "Rouvrir la fen\xEAtre", "dynamicFlows.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier", "dynamicFlows.DynamicParagraph.copy": "Copier", "dynamicFlows.ErrorBoundary.errorAlert": "Oups\xA0! Une erreur s'est produite...", "dynamicFlows.ErrorBoundary.retry": "R\xE9essayer", "dynamicFlows.ExternalConfirmation.cancel": "Annuler", "dynamicFlows.ExternalConfirmation.description": "Veuillez confirmer que vous souhaitez ouvrir **{origin}** dans un nouvel onglet.", "dynamicFlows.ExternalConfirmation.open": "Ouvrir dans un nouvel onglet", "dynamicFlows.ExternalConfirmation.title": "Veuillez confirmer", "dynamicFlows.Help.ariaLabel": "Cliquez ici pour plus d'informations.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Veuillez t\xE9l\xE9charger {maxItems} fichiers ou moins.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Un probl\xE8me est survenu, veuillez r\xE9essayer plus tard !", "dynamicFlows.ReadOnlySchema.no": "Non", "dynamicFlows.ReadOnlySchema.yes": "Oui" };
|
|
2907
|
+
var al = { "dynamicFlows.ArraySchema.addItem": "Ment\xE9s", "dynamicFlows.ArraySchema.addItemTitle": "Elem hozz\xE1ad\xE1sa", "dynamicFlows.ArraySchema.editItem": "Ment\xE9s", "dynamicFlows.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.", "dynamicFlows.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.", "dynamicFlows.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1sra", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Az \xE1ltalad haszn\xE1lt b\xF6ng\xE9sz\u0151 nem t\xE1mogatja a kamera haszn\xE1lat\xE1t. K\xE9r\xFCnk, pr\xF3b\xE1lkozz m\xE1s b\xF6ng\xE9sz\u0151vel, eszk\xF6zzel vagy t\xF6ltsd le az appot", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera nem t\xE1mogatott", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamer\xE1hoz val\xF3 hozz\xE1f\xE9r\xE9s enged\xE9lyez\xE9se", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz. Ezt a telefonod be\xE1ll\xEDt\xE1saiban enged\xE9lyezheted", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz", "dynamicFlows.CameraCapture.reviewInstructions": "Tiszta, olvashat\xF3, teljes k\xE9pet k\xE9sz\xEDtett\xE9l?", "dynamicFlows.CameraCapture.reviewRetry": "Nem, pr\xF3b\xE1ljuk \xFAjra", "dynamicFlows.CameraCapture.reviewSubmit": "Igen, elk\xFCld\xF6m", "dynamicFlows.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.", "dynamicFlows.ControlFeedback.minLength": "K\xE9r\xFCnk, legal\xE1bb {minLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.minimum": "K\xE9r\xFCnk add meg ezt vagy egy enn\xE9l nagyobb sz\xE1mot: {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {minimum} napj\xE1val, vagy egy enn\xE9l k\xE9s\u0151bbit.", "dynamicFlows.ControlFeedback.pattern": "Helytelen form\xE1tum", "dynamicFlows.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.", "dynamicFlows.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.", "dynamicFlows.ControlFeedback.type": "Helytelen t\xEDpus", "dynamicFlows.DynamicExternal.retryTitle": "Ablak \xFAjranyit\xE1sa", "dynamicFlows.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva", "dynamicFlows.DynamicParagraph.copy": "M\xE1sol\xE1s", "dynamicFlows.ErrorBoundary.errorAlert": "Hopp\xE1! Valami hiba t\xF6rt\xE9nt...", "dynamicFlows.ErrorBoundary.retry": "\xDAjra", "dynamicFlows.ExternalConfirmation.cancel": "M\xE9gsem", "dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.", "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon", "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s", "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra k\xE9s\u0151bb!", "dynamicFlows.ReadOnlySchema.no": "Nem", "dynamicFlows.ReadOnlySchema.yes": "Igen" };
|
|
2908
|
+
var nl = { "dynamicFlows.ArraySchema.addItem": "Simpan", "dynamicFlows.ArraySchema.addItemTitle": "Tambahkan Item", "dynamicFlows.ArraySchema.editItem": "Simpan", "dynamicFlows.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.", "dynamicFlows.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Hapus", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browser yang Anda gunakan tidak mendukung kamera. Silakan coba browser, perangkat yang lain, atau unduh aplikasi seluler kami.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera tidak didukung", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Izinkan akses kamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Untuk melanjutkan lagi, aktifkan akses kamera di pengaturan browser Anda.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kami tidak dapat mengakses kamera Anda", "dynamicFlows.CameraCapture.reviewInstructions": "Apakah gambar Anda jelas, dapat dibaca, dan lengkap?", "dynamicFlows.CameraCapture.reviewRetry": "Tidak, coba lagi", "dynamicFlows.CameraCapture.reviewSubmit": "Ya, kirim", "dynamicFlows.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.", "dynamicFlows.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.", "dynamicFlows.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Harap masukkan setidaknya {minLength} karakter.", "dynamicFlows.ControlFeedback.minimum": "Harap masukkan angka paling kecil {minimum} atau lebih dari itu.", "dynamicFlows.ControlFeedback.minimumDate": "Harap masukkan tanggal pada atau setelah {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Mohon masukkan ini dalam format yang benar.", "dynamicFlows.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.", "dynamicFlows.ControlFeedback.required": "Harap isi kolom ini.", "dynamicFlows.ControlFeedback.type": "Tipe salah", "dynamicFlows.DynamicExternal.retryTitle": "Buka window kembali", "dynamicFlows.DynamicParagraph.copied": "Disalin ke clipboard", "dynamicFlows.DynamicParagraph.copy": "Salin", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Terjadi kesalahan...", "dynamicFlows.ErrorBoundary.retry": "Coba lagi", "dynamicFlows.ExternalConfirmation.cancel": "Batalkan", "dynamicFlows.ExternalConfirmation.description": "Harap konfirmasikan bahwa Anda ingin membuka **{origin}** di tab browser baru.", "dynamicFlows.ExternalConfirmation.open": "Buka di tab baru", "dynamicFlows.ExternalConfirmation.title": "Harap konfirmasi", "dynamicFlows.Help.ariaLabel": "Klik di sini untuk info selengkapnya.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Harap unggah {maxItems} file atau kurang.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi nanti!", "dynamicFlows.ReadOnlySchema.no": "Tidak", "dynamicFlows.ReadOnlySchema.yes": "Ya" };
|
|
2909
|
+
var il = { "dynamicFlows.ArraySchema.addItem": "Salva", "dynamicFlows.ArraySchema.addItemTitle": "Aggiungi elemento", "dynamicFlows.ArraySchema.editItem": "Salva", "dynamicFlows.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Rimuovi", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Il browser che stai usando non supporta la videocamera. Prova con un altro browser o dispositivo, oppure scarica la nostra app", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Videocamera non supportata", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Consenti l'accesso alla fotocamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Non abbiamo accesso alla tua fotocamera. Puoi abilitare l'accesso nelle impostazioni del tuo browser", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Accesso alla fotocamera disabilitato", "dynamicFlows.CameraCapture.reviewInstructions": "La tua foto \xE8 chiara, ben leggibile e completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, riprova", "dynamicFlows.CameraCapture.reviewSubmit": "S\xEC, invia", "dynamicFlows.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.", "dynamicFlows.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Inserisci almeno {minLength} caratteri.", "dynamicFlows.ControlFeedback.minimum": "Inserisci un numero uguale o superiore a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Inserisci una data corrispondente o successiva al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Inseriscilo in un formato corretto.", "dynamicFlows.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.", "dynamicFlows.ControlFeedback.required": "Compila questo campo.", "dynamicFlows.ControlFeedback.type": "Tipo errato", "dynamicFlows.DynamicExternal.retryTitle": "Riapri la finestra", "dynamicFlows.DynamicParagraph.copied": "Copiato negli appunti", "dynamicFlows.DynamicParagraph.copy": "Copia", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Qualcosa \xE8 andato storto...", "dynamicFlows.ErrorBoundary.retry": "Riprova", "dynamicFlows.ExternalConfirmation.cancel": "Annulla", "dynamicFlows.ExternalConfirmation.description": "Conferma di voler aprire **{origin}** in una nuova scheda del browser.", "dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda", "dynamicFlows.ExternalConfirmation.title": "Conferma", "dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Carica al massimo {maxItems} file.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova pi\xF9 tardi!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xEC" };
|
|
2910
|
+
var sl = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58\u3059\u308B", "dynamicFlows.ArraySchema.addItemTitle": "\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58\u3059\u308B", "dynamicFlows.ArraySchema.maxItemsError": "{maxItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0B\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ArraySchema.removeItem": "\u524A\u9664\u3059\u308B", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u304A\u5BA2\u69D8\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u5225\u306E\u30D6\u30E9\u30A6\u30B6\u307E\u305F\u306F\u30C7\u30D0\u30A4\u30B9\u3092\u4F7F\u7528\u3059\u308B\u304B\u3001\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u8A31\u53EF\u3059\u308B", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u30D6\u30E9\u30A6\u30B6\u306E\u8A2D\u5B9A\u3067\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u6709\u52B9\u306B\u3057\u3066\u3001\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.reviewInstructions": "\u5199\u771F\u304C\u9BAE\u660E\u3067\u3001\u3059\u3079\u3066\u306E\u60C5\u5831\u304C\u8AAD\u307F\u53D6\u308C\u6B20\u3051\u3066\u3044\u308B\u90E8\u5206\u306A\u3069\u306F\u3042\u308A\u307E\u305B\u3093\u304B\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u3044\u3044\u3048\u3001\u64AE\u308A\u76F4\u3059", "dynamicFlows.CameraCapture.reviewSubmit": "\u306F\u3044\u3001\u9001\u4FE1\u3059\u308B", "dynamicFlows.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximumDate": "{maximum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u524D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minLength": "{minLength}\u6587\u5B57\u4EE5\u4E0A\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimum": "{minimum}\u4EE5\u4E0A\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimumDate": "{minimum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u964D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.pattern": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002", "dynamicFlows.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7", "dynamicFlows.DynamicExternal.retryTitle": "\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u3082\u3046\u4E00\u5EA6\u958B\u304F", "dynamicFlows.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F", "dynamicFlows.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B", "dynamicFlows.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F...", "dynamicFlows.ErrorBoundary.retry": "\u3084\u308A\u76F4\u3059", "dynamicFlows.ExternalConfirmation.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB\u3059\u308B", "dynamicFlows.ExternalConfirmation.description": "\u65B0\u3057\u3044\u30D6\u30E9\u30A6\u30B6\u30BF\u30D6\u3067**{origin}**\u3092\u958B\u304F\u3053\u3068\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ExternalConfirmation.open": "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F", "dynamicFlows.ExternalConfirmation.title": "\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044", "dynamicFlows.Help.ariaLabel": "\u8A73\u7D30\u306F\u3053\u3061\u3089\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "{maxItems}\u500B\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "{minItems}\u500B\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ReadOnlySchema.no": "\u3044\u3044\u3048", "dynamicFlows.ReadOnlySchema.yes": "\u306F\u3044" };
|
|
2911
|
+
var ml = { "dynamicFlows.ArraySchema.addItem": "Zapisz", "dynamicFlows.ArraySchema.addItemTitle": "Dodaj pozycj\u0119", "dynamicFlows.ArraySchema.editItem": "Zapisz", "dynamicFlows.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Usu\u0144", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Przegl\u0105darka, kt\xF3rej u\u017Cywasz, nie obs\u0142uguje aparatu. Wypr\xF3buj inn\u0105 przegl\u0105dark\u0119 lub urz\u0105dzenie albo pobierz nasz\u0105 aplikacj\u0119 mobiln\u0105.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Aparat nie jest obs\u0142ugiwany", "dynamicFlows.CameraCapture.NoCameraAccess.action": "W\u0142\u0105cz dost\u0119p do aparatu", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "W\u0142\u0105cz dost\u0119p do aparatu w ustawieniach przegl\u0105darki, \u017Ceby rozpocz\u0105\u0107 ponownie.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nie mo\u017Cemy uzyska\u0107 dost\u0119pu do Twojego aparatu", "dynamicFlows.CameraCapture.reviewInstructions": "Czy Twoje zdj\u0119cie jest wyra\u017Ane, czytelne i kompletne?", "dynamicFlows.CameraCapture.reviewRetry": "Nie, spr\xF3buj ponownie", "dynamicFlows.CameraCapture.reviewSubmit": "Tak, prze\u015Blij", "dynamicFlows.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.", "dynamicFlows.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Prosz\u0119 wpisa\u0107 co najmniej {minLength} znak\xF3w.", "dynamicFlows.ControlFeedback.minimum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub wi\u0119ksz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Wprowad\u017A dat\u0119 nie wcze\u015Bniejsz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Wprowad\u017A t\u0119 warto\u015B\u0107 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.", "dynamicFlows.ControlFeedback.type": "Nieprawid\u0142owy typ", "dynamicFlows.DynamicExternal.retryTitle": "Otw\xF3rz okno ponownie", "dynamicFlows.DynamicParagraph.copied": "Skopiowano do schowka", "dynamicFlows.DynamicParagraph.copy": "Kopiuj", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Wyst\u0105pi\u0142 b\u0142\u0105d...", "dynamicFlows.ErrorBoundary.retry": "Spr\xF3buj ponownie", "dynamicFlows.ExternalConfirmation.cancel": "Anuluj", "dynamicFlows.ExternalConfirmation.description": "Prosimy potwierdzi\u0107, \u017Ce chcesz otworzy\u0107 **{origin}** w nowej zak\u0142adce przegl\u0105darki.", "dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce", "dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A", "dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Prze\u015Blij do {maxItems} plik\xF3w.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.", "dynamicFlows.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, spr\xF3buj ponownie p\xF3\u017Aniej!", "dynamicFlows.ReadOnlySchema.no": "Nie", "dynamicFlows.ReadOnlySchema.yes": "Tak" };
|
|
2912
|
+
var ll = { "dynamicFlows.ArraySchema.addItem": "Salvar", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Salvar", "dynamicFlows.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.", "dynamicFlows.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Remover", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "O navegador que voc\xEA est\xE1 usando n\xE3o permite o uso da c\xE2mera. Por favor, tente com outro navegador ou computador, ou baixe o nosso aplicativo", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE2mera indispon\xEDvel", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permitir acesso \xE0 c\xE2mera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Ative o acesso \xE0 c\xE2mera nas configura\xE7\xF5es do navegador para continuar.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "N\xE3o temos acesso \xE0 sua c\xE2mera", "dynamicFlows.CameraCapture.reviewInstructions": "A sua foto est\xE1 clara, leg\xEDvel e aparece por inteiro?", "dynamicFlows.CameraCapture.reviewRetry": "N\xE3o, tentar novamente", "dynamicFlows.CameraCapture.reviewSubmit": "Sim, enviar", "dynamicFlows.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.", "dynamicFlows.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.", "dynamicFlows.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Por favor, insira pelo menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Por favor, insira um n\xFAmero que seja {minimum} ou mais.", "dynamicFlows.ControlFeedback.minimumDate": "Por favor, insira uma data que seja em ou ap\xF3s {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Por favor, insira essa informa\xE7\xE3o no formato correto.", "dynamicFlows.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.", "dynamicFlows.ControlFeedback.required": "Por favor, preencha o campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorreto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir janela", "dynamicFlows.DynamicParagraph.copied": "Copiado", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Algo deu errado...", "dynamicFlows.ErrorBoundary.retry": "Tentar novamente", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Por favor, confirme que deseja abrir * *{origin}* * em uma nova aba do navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirme", "dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Por favor, envie {maxItems} ou menos arquivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo deu errado. Por favor, tente novamente mais tarde!", "dynamicFlows.ReadOnlySchema.no": "N\xE3o", "dynamicFlows.ReadOnlySchema.yes": "Sim" };
|
|
2913
|
+
var cl = { "dynamicFlows.ArraySchema.addItem": "Salvare", "dynamicFlows.ArraySchema.addItemTitle": "Adaug\u0103 produs", "dynamicFlows.ArraySchema.editItem": "Salvare", "dynamicFlows.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.", "dynamicFlows.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Elimin\u0103", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browserul pe care \xEEl folose\u0219ti nu poate folosi o camer\u0103 foto. Te rug\u0103m s\u0103 \xEEncerci alt browser, alt dispozitiv sau s\u0103 descarci aplica\u021Bia noastr\u0103.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera nu este acceptat\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permite acces la camer\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Permite accesul la camera foto \xEEn set\u0103rile browserului t\u0103u, pentru a re\xEEncepe.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nu \xEE\u021Bi putem accesa camera", "dynamicFlows.CameraCapture.reviewInstructions": "Imaginea ta este clar\u0103, lizibil\u0103 \u0219i complet\u0103?", "dynamicFlows.CameraCapture.reviewRetry": "Nu, \xEEncearc\u0103 din nou", "dynamicFlows.CameraCapture.reviewSubmit": "Da, trimite", "dynamicFlows.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.", "dynamicFlows.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.", "dynamicFlows.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Te rug\u0103m s\u0103 introduci cel pu\u021Bin {minLength} caractere.", "dynamicFlows.ControlFeedback.minimum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {minimum} sau mai mare.", "dynamicFlows.ControlFeedback.minimumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de dup\u0103 sau egal\u0103 cu {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Te rug\u0103m s\u0103 introduci acest lucru \xEEn formatul corect.", "dynamicFlows.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.", "dynamicFlows.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.", "dynamicFlows.ControlFeedback.type": "Tip incorect", "dynamicFlows.DynamicExternal.retryTitle": "Redeschide fereastra", "dynamicFlows.DynamicParagraph.copied": "Copiat \xEEn clipboard", "dynamicFlows.DynamicParagraph.copy": "Copiaz\u0103", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Ceva nu a mers bine...", "dynamicFlows.ErrorBoundary.retry": "\xCEncearc\u0103 din nou", "dynamicFlows.ExternalConfirmation.cancel": "Anuleaz\u0103", "dynamicFlows.ExternalConfirmation.description": "Te rug\u0103m s\u0103 confirmi c\u0103 vrei s\u0103 deschizi **{origin}** \xEEntr-o nou\u0103 fil\u0103 a browserului.", "dynamicFlows.ExternalConfirmation.open": "Deschide \xEEntr-o fil\u0103 nou\u0103", "dynamicFlows.ExternalConfirmation.title": "Te rug\u0103m s\u0103 confirmi", "dynamicFlows.Help.ariaLabel": "D\u0103 click aici pentru mai multe informa\u021Bii.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Te rug\u0103m s\u0103 \xEEncarci {maxItems} fi\u0219iere sau mai pu\u021Bine.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).", "dynamicFlows.PersistAsyncSchema.genericError": "Ceva nu a mers bine. Te rug\u0103m s\u0103 \xEEncerci din nou mai t\xE2rziu!", "dynamicFlows.ReadOnlySchema.no": "Nu", "dynamicFlows.ReadOnlySchema.yes": "Da" };
|
|
2914
|
+
var dl = { "dynamicFlows.ArraySchema.addItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.addItemTitle": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0443\u043D\u043A\u0442", "dynamicFlows.ArraySchema.editItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.", "dynamicFlows.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u044B\u0439 \u0432\u0430\u043C\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043A\u0430\u043C\u0435\u0440\u0443. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043B\u0438 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0438\u043B\u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043D\u0430\u0448\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435 \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u041C\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0432\u0430\u0448\u0435\u0439 \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.reviewInstructions": "\u0412\u0430\u0448\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F \u0447\u0435\u0442\u043A\u0430\u044F, \u043B\u0435\u0433\u043A\u043E \u0447\u0438\u0442\u0430\u0435\u043C\u0430\u044F \u0438 \u043D\u0435 \u043E\u0431\u0440\u0435\u0437\u0430\u043D\u0430?", "dynamicFlows.CameraCapture.reviewRetry": "\u041D\u0435\u0442, \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0435 \u0440\u0430\u0437", "dynamicFlows.CameraCapture.reviewSubmit": "\u0414\u0430, \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C", "dynamicFlows.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {maximum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.minLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minLength} \u0441\u0438\u043C\u0432\u043E\u043B\u0430(-\u043E\u0432).", "dynamicFlows.ControlFeedback.minimum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.minimumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u043F\u043E\u0437\u0434\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.pattern": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u044D\u0442\u043E \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.patternDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443 \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.", "dynamicFlows.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F", "dynamicFlows.DynamicExternal.retryTitle": "\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E", "dynamicFlows.DynamicParagraph.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430", "dynamicFlows.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C", "dynamicFlows.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A...", "dynamicFlows.ErrorBoundary.retry": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443", "dynamicFlows.ExternalConfirmation.cancel": "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C", "dynamicFlows.ExternalConfirmation.description": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C **{origin}** \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", "dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435", "dynamicFlows.ExternalConfirmation.title": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435", "dynamicFlows.Help.ariaLabel": "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 {maxItems} \u0444\u0430\u0439\u043B\u043E\u0432.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems} \u0444\u0430\u0439\u043B(-\u0430/\u043E\u0432).", "dynamicFlows.PersistAsyncSchema.genericError": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435!", "dynamicFlows.ReadOnlySchema.no": "\u041D\u0435\u0442", "dynamicFlows.ReadOnlySchema.yes": "\u0414\u0430" };
|
|
2915
|
+
var ul = { "dynamicFlows.ArraySchema.addItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21 {maxItems} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}", "dynamicFlows.ArraySchema.removeItem": "\u0E25\u0E1A", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E43\u0E0A\u0E49\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07 \u0E43\u0E2B\u0E49\u0E25\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E14\u0E32\u0E27\u0E19\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E2D\u0E1B\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D\u0E02\u0E2D\u0E07\u0E40\u0E23\u0E32\u0E14\u0E39", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", "dynamicFlows.CameraCapture.reviewInstructions": "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19 \u0E2D\u0E48\u0E32\u0E19\u0E44\u0E14\u0E49 \u0E41\u0E25\u0E30\u0E04\u0E23\u0E1A\u0E16\u0E49\u0E27\u0E19\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", "dynamicFlows.CameraCapture.reviewRetry": "\u0E44\u0E21\u0E48 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E17\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.reviewSubmit": "\u0E43\u0E0A\u0E48 \u0E2A\u0E48\u0E07\u0E40\u0E25\u0E22", "dynamicFlows.ControlFeedback.maxLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19 {maxLength} \u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E48\u0E2D\u0E19 {maximum}", "dynamicFlows.ControlFeedback.minLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minLength} \u0E15\u0E31\u0E27", "dynamicFlows.ControlFeedback.minimum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {minimum} \u0E2B\u0E23\u0E37\u0E2D\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.minimumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E31\u0E07 {minimum}", "dynamicFlows.ControlFeedback.pattern": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49", "dynamicFlows.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.DynamicExternal.retryTitle": "\u0E40\u0E1B\u0E34\u0E14\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14", "dynamicFlows.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01", "dynamicFlows.ErrorBoundary.errorAlert": "\u0E2D\u0E4A\u0E30 \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07...", "dynamicFlows.ErrorBoundary.retry": "\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.ExternalConfirmation.cancel": "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", "dynamicFlows.ExternalConfirmation.description": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E34\u0E14 **{origin}** \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C", "dynamicFlows.ExternalConfirmation.open": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48", "dynamicFlows.ExternalConfirmation.title": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19", "dynamicFlows.Help.ariaLabel": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14 {maxItems} \u0E44\u0E1F\u0E25\u0E4C\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems} \u0E44\u0E1F\u0E25\u0E4C", "dynamicFlows.PersistAsyncSchema.genericError": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07!", "dynamicFlows.ReadOnlySchema.no": "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48", "dynamicFlows.ReadOnlySchema.yes": "\u0E43\u0E0A\u0E48" };
|
|
2916
|
+
var pl = { "dynamicFlows.ArraySchema.addItem": "Kaydet", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Kaydet", "dynamicFlows.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n", "dynamicFlows.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.", "dynamicFlows.ArraySchema.removeItem": "Kald\u0131r", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Kulland\u0131\u011F\u0131n\u0131z taray\u0131c\u0131da kamera deste\u011Fi yok. Farkl\u0131 bir taray\u0131c\u0131 / cihaz deneyin veya mobil uygulamam\u0131z\u0131 indirin.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera desteklenmiyor", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamera eri\u015Fimi verin", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Tekrar ba\u015Flamak i\xE7in taray\u0131c\u0131n\u0131z\u0131n ayarlar\u0131nda kamera eri\u015Fimini etkinle\u015Ftirin.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kameran\u0131za eri\u015Femiyoruz", "dynamicFlows.CameraCapture.reviewInstructions": "Foto\u011Fraf\u0131n\u0131z net, okunakl\u0131 ve eksiksiz mi?", "dynamicFlows.CameraCapture.reviewRetry": "Hay\u0131r, tekrar dene", "dynamicFlows.CameraCapture.reviewSubmit": "Evet, g\xF6nder", "dynamicFlows.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.", "dynamicFlows.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.", "dynamicFlows.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.", "dynamicFlows.ControlFeedback.minLength": "En az {minLength} karakter girebilirsiniz.", "dynamicFlows.ControlFeedback.minimum": "L\xFCtfen {minimum} veya daha y\xFCksek bir say\u0131 girin.", "dynamicFlows.ControlFeedback.minimumDate": "L\xFCtfen {minimum} veya daha ge\xE7 bir tarih girin.", "dynamicFlows.ControlFeedback.pattern": "Yanl\u0131\u015F bi\xE7im", "dynamicFlows.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.", "dynamicFlows.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.", "dynamicFlows.ControlFeedback.type": "Ge\xE7ersiz se\xE7im", "dynamicFlows.DynamicExternal.retryTitle": "Pencereyi yeniden a\xE7", "dynamicFlows.DynamicParagraph.copied": "Panoya kopyaland\u0131", "dynamicFlows.DynamicParagraph.copy": "Kopyala", "dynamicFlows.ErrorBoundary.errorAlert": "Aman\u0131n! Bir \u015Feyler ters gitti...", "dynamicFlows.ErrorBoundary.retry": "Tekrar dene", "dynamicFlows.ExternalConfirmation.cancel": "\u0130ptal edin", "dynamicFlows.ExternalConfirmation.description": "L\xFCtfen yeni bir taray\u0131c\u0131 sekmesinde **{origin}** a\xE7mak istedi\u011Finizi onaylay\u0131n.", "dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7", "dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n", "dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.", "dynamicFlows.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin", "dynamicFlows.ReadOnlySchema.no": "Hay\u0131r", "dynamicFlows.ReadOnlySchema.yes": "Evet" };
|
|
2917
|
+
var ja = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0 {maxItems} \u4E2A\u6216\u66F4\u5C11\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems}\u3002", "dynamicFlows.ArraySchema.removeItem": "\u5220\u9664", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Enable camera access", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Enable camera access in your browser's settings to get going again.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "We can't access your camera", "dynamicFlows.CameraCapture.reviewInstructions": "\u60A8\u7684\u56FE\u7247\u662F\u5426\u6E05\u6670\u3001\u53EF\u8BFB\u548C\u5B8C\u6574\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u91CD\u8BD5", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165 {maxLength} \u4E2A\u6216\u66F4\u5C11\u5B57\u7B26", "dynamicFlows.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57", "dynamicFlows.ControlFeedback.maximumDate": "\u8BF7\u8F93\u5165 {maximum} \u6216\u4E4B\u524D\u7684\u65E5\u671F", "dynamicFlows.ControlFeedback.minLength": "\u8BF7\u81F3\u5C11\u8F93\u5165 {minLength} \u4E2A\u5B57\u7B26", "dynamicFlows.ControlFeedback.minimum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5927\u4E8E\u6216\u7B49\u4E8E {minimum} \u7684\u6570\u5B57", "dynamicFlows.ControlFeedback.minimumDate": "\u8BF7\u8F93\u5165 {minimum} \u6216\u4E4B\u540E\u7684\u65E5\u671F", "dynamicFlows.ControlFeedback.pattern": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165", "dynamicFlows.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F", "dynamicFlows.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002", "dynamicFlows.ControlFeedback.type": "\u7C7B\u578B\u4E0D\u6B63\u786E", "dynamicFlows.DynamicExternal.retryTitle": "\u91CD\u65B0\u6253\u5F00\u7A97\u53E3", "dynamicFlows.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F", "dynamicFlows.DynamicParagraph.copy": "\u590D\u5236", "dynamicFlows.ErrorBoundary.errorAlert": "\u7CDF\u7CD5\u3002\u51FA\u95EE\u9898\u4E86\u2026", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8BD5", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.", "dynamicFlows.ExternalConfirmation.open": "Open in new tab", "dynamicFlows.ExternalConfirmation.title": "Please confirm", "dynamicFlows.Help.ariaLabel": "\u70B9\u51FB\u6B64\u5904\u83B7\u53D6\u66F4\u591A\u4FE1\u606F\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8BE5\u6587\u4EF6\u592A\u5927\u3002\u8BF7\u4E0A\u4F20\u4E00\u4E2A\u66F4\u5C0F\u7684\u6587\u4EF6\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20 {maxItems} \u4E2A\u6216\u66F4\u5C11\u7684\u6587\u4EF6\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8BF7\u81F3\u5C11\u4E0A\u4F20 {minItems} \u4E2A\u6587\u4EF6\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u73B0\u4E00\u4E9B\u95EE\u9898\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF01", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
|
|
2918
|
+
var fl = { "dynamicFlows.ArraySchema.addItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9805\u76EE", "dynamicFlows.ArraySchema.editItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u4F60\u76EE\u524D\u4F7F\u7528\u7684\u700F\u89BD\u5668\u4E0D\u652F\u6301\u76F8\u6A5F\u3002\u8ACB\u5617\u8A66\u4F7F\u7528\u5176\u4ED6\u700F\u89BD\u5668\u6216\u5176\u4ED6\u88DD\u7F6E\uFF0C\u6216\u8005\u4F60\u53EF\u4EE5\u4E0B\u8F09\u6211\u5011\u7684\u61C9\u7528\u7A0B\u5F0F\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u5141\u8A31\u53D6\u7528\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u4F60\u53EF\u4EE5\u5728\u700F\u89BD\u5668\u7684\u8A2D\u5B9A\u4E2D\u958B\u555F\u76F8\u6A5F\u5B58\u53D6\u6B0A\u9650\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u6211\u5011\u7121\u6CD5\u53D6\u7528\u4F60\u7684\u76F8\u6A5F", "dynamicFlows.CameraCapture.reviewInstructions": "\u4F60\u7684\u7167\u7247\u662F\u5426\u5B8C\u6574\u3001\u6E05\u6670\u53CA\u53EF\u8B80\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.maximumDate": "\u8ACB\u8F38\u5165{maximum}\u6216\u4E4B\u524D\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.minLength": "\u8ACB\u8F38\u5165\u81F3\u5C11{minLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.minimum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5927\u65BC\u6216\u7B49\u65BC{minimum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.minimumDate": "\u8ACB\u8F38\u5165{minimum}\u6216\u4E4B\u5F8C\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.pattern": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u5185\u5BB9\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002", "dynamicFlows.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B", "dynamicFlows.DynamicExternal.retryTitle": "\u91CD\u65B0\u6253\u958B\u8996\u7A97", "dynamicFlows.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F", "dynamicFlows.DynamicParagraph.copy": "\u8907\u88FD", "dynamicFlows.ErrorBoundary.errorAlert": "\u5662\uFF01\u51FA\u4E86\u4E9B\u554F\u984C...", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8A66", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "dynamicFlows.ExternalConfirmation.description": "\u8ACB\u78BA\u8A8D\u4F60\u662F\u5426\u8981\u5728\u700F\u89BD\u5668\u7684\u65B0\u5206\u9801\u6253\u958B**{origin}**\u3002", "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u5206\u9801\u4E2D\u958B\u555F", "dynamicFlows.ExternalConfirmation.title": "\u8ACB\u78BA\u8A8D", "dynamicFlows.Help.ariaLabel": "\u6309\u6B64\u67E5\u770B\u8A73\u60C5\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u8ACB\u4E0D\u8981\u4E0A\u8F09\u8D85\u904E{maxItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u4E86\u4E9B\u554F\u984C\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
|
|
2919
|
+
var np = { en: tl, de: el, es: rl, fr: ol, hu: al, id: nl, it: il, ja: sl, pl: ml, pt: ll, ro: cl, ru: dl, th: ul, tr: pl, zh: ja, "zh-CN": ja, "zh-HK": fl };
|
|
2920
|
+
var yl = np;
|
|
2917
2921
|
}
|
|
2918
2922
|
});
|
|
2919
2923
|
|