@wise/dynamic-flow-client-internal 2.0.0 → 2.1.0
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 +658 -658
- package/build/main.min.js +1 -1
- package/build/types/dynamicFlow/DynamicFlow.d.ts +1 -2
- package/build/types/index.d.ts +1 -0
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -51,39 +51,39 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
51
51
|
var require_main_min = __commonJS({
|
|
52
52
|
"../core/build/main.min.js"(exports, module2) {
|
|
53
53
|
"use strict";
|
|
54
|
-
var
|
|
54
|
+
var gl = Object.create;
|
|
55
55
|
var _t = Object.defineProperty;
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
56
|
+
var Sl = Object.defineProperties;
|
|
57
|
+
var bl = Object.getOwnPropertyDescriptor;
|
|
58
|
+
var wl = Object.getOwnPropertyDescriptors;
|
|
59
|
+
var Fl = Object.getOwnPropertyNames;
|
|
60
60
|
var Vn = Object.getOwnPropertySymbols;
|
|
61
|
-
var
|
|
61
|
+
var Cl = Object.getPrototypeOf;
|
|
62
62
|
var Un = Object.prototype.hasOwnProperty;
|
|
63
|
-
var
|
|
63
|
+
var xl = Object.prototype.propertyIsEnumerable;
|
|
64
64
|
var jn = (e, t, r) => t in e ? _t(e, t, { enumerable: true, configurable: true, writable: true, value: r }) : e[t] = r;
|
|
65
65
|
var i = (e, t) => {
|
|
66
66
|
for (var r in t ||= {})
|
|
67
67
|
Un.call(t, r) && jn(e, r, t[r]);
|
|
68
68
|
if (Vn)
|
|
69
69
|
for (var r of Vn(t))
|
|
70
|
-
|
|
70
|
+
xl.call(t, r) && jn(e, r, t[r]);
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
|
-
var b = (e, t) =>
|
|
73
|
+
var b = (e, t) => Sl(e, wl(t));
|
|
74
74
|
var zn = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
75
|
-
var
|
|
75
|
+
var Al = (e, t) => {
|
|
76
76
|
for (var r in t)
|
|
77
77
|
_t(e, r, { get: t[r], enumerable: true });
|
|
78
78
|
};
|
|
79
79
|
var Hn = (e, t, r, o) => {
|
|
80
80
|
if (t && typeof t == "object" || typeof t == "function")
|
|
81
|
-
for (let n of
|
|
82
|
-
!Un.call(e, n) && n !== r && _t(e, n, { get: () => t[n], enumerable: !(o =
|
|
81
|
+
for (let n of Fl(t))
|
|
82
|
+
!Un.call(e, n) && n !== r && _t(e, n, { get: () => t[n], enumerable: !(o = bl(t, n)) || o.enumerable });
|
|
83
83
|
return e;
|
|
84
84
|
};
|
|
85
|
-
var qe = (e, t, r) => (r = e != null ?
|
|
86
|
-
var
|
|
85
|
+
var qe = (e, t, r) => (r = e != null ? gl(Cl(e)) : {}, Hn(t || !e || !e.__esModule ? _t(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
|
+
var vl = (e) => Hn(_t({}, "__esModule", { value: true }), e);
|
|
87
87
|
var st = zn((If, Rr) => {
|
|
88
88
|
(function() {
|
|
89
89
|
"use strict";
|
|
@@ -97,8 +97,8 @@ var require_main_min = __commonJS({
|
|
|
97
97
|
o.push(a);
|
|
98
98
|
else if (Array.isArray(a)) {
|
|
99
99
|
if (a.length) {
|
|
100
|
-
var
|
|
101
|
-
|
|
100
|
+
var l = r.apply(null, a);
|
|
101
|
+
l && o.push(l);
|
|
102
102
|
}
|
|
103
103
|
} else if (s === "object") {
|
|
104
104
|
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]")) {
|
|
@@ -138,10 +138,10 @@ var require_main_min = __commonJS({
|
|
|
138
138
|
return n;
|
|
139
139
|
var s = /* @__PURE__ */ Object.create(null);
|
|
140
140
|
if (o.r(s), Object.defineProperty(s, "default", { enumerable: true, value: n }), a & 2 && typeof n != "string")
|
|
141
|
-
for (var
|
|
142
|
-
o.d(s,
|
|
141
|
+
for (var l in n)
|
|
142
|
+
o.d(s, l, function(u) {
|
|
143
143
|
return n[u];
|
|
144
|
-
}.bind(null,
|
|
144
|
+
}.bind(null, l));
|
|
145
145
|
return s;
|
|
146
146
|
}, o.n = function(n) {
|
|
147
147
|
var a = n && n.__esModule ? function() {
|
|
@@ -157,89 +157,89 @@ var require_main_min = __commonJS({
|
|
|
157
157
|
"use strict";
|
|
158
158
|
o.r(r);
|
|
159
159
|
var n = o("react"), a = o.n(n), s = function() {
|
|
160
|
-
var g = function(f,
|
|
160
|
+
var g = function(f, m) {
|
|
161
161
|
return g = 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
|
-
}, g(f,
|
|
166
|
+
}, g(f, m);
|
|
167
167
|
};
|
|
168
|
-
return function(f,
|
|
169
|
-
g(f,
|
|
168
|
+
return function(f, m) {
|
|
169
|
+
g(f, m);
|
|
170
170
|
function p() {
|
|
171
171
|
this.constructor = f;
|
|
172
172
|
}
|
|
173
|
-
f.prototype =
|
|
173
|
+
f.prototype = m === null ? Object.create(m) : (p.prototype = m.prototype, new p());
|
|
174
174
|
};
|
|
175
|
-
}(),
|
|
176
|
-
return
|
|
177
|
-
for (var f,
|
|
178
|
-
f = arguments[
|
|
175
|
+
}(), l = function() {
|
|
176
|
+
return l = Object.assign || function(g) {
|
|
177
|
+
for (var f, m = 1, p = arguments.length; m < p; m++) {
|
|
178
|
+
f = arguments[m];
|
|
179
179
|
for (var y in f)
|
|
180
180
|
Object.prototype.hasOwnProperty.call(f, y) && (g[y] = f[y]);
|
|
181
181
|
}
|
|
182
182
|
return g;
|
|
183
|
-
},
|
|
183
|
+
}, l.apply(this, arguments);
|
|
184
184
|
}, u = function(g, f) {
|
|
185
|
-
var
|
|
185
|
+
var m = {};
|
|
186
186
|
for (var p in g)
|
|
187
|
-
Object.prototype.hasOwnProperty.call(g, p) && f.indexOf(p) < 0 && (
|
|
187
|
+
Object.prototype.hasOwnProperty.call(g, p) && f.indexOf(p) < 0 && (m[p] = g[p]);
|
|
188
188
|
if (g != null && typeof Object.getOwnPropertySymbols == "function")
|
|
189
189
|
for (var y = 0, p = Object.getOwnPropertySymbols(g); y < p.length; y++)
|
|
190
|
-
f.indexOf(p[y]) < 0 && Object.prototype.propertyIsEnumerable.call(g, p[y]) && (
|
|
191
|
-
return
|
|
190
|
+
f.indexOf(p[y]) < 0 && Object.prototype.propertyIsEnumerable.call(g, p[y]) && (m[p[y]] = g[p[y]]);
|
|
191
|
+
return m;
|
|
192
192
|
};
|
|
193
193
|
(function() {
|
|
194
194
|
typeof window > "u" || (navigator.mediaDevices === void 0 && (navigator.mediaDevices = {}), navigator.mediaDevices.getUserMedia === void 0 && (navigator.mediaDevices.getUserMedia = function(f) {
|
|
195
|
-
var
|
|
196
|
-
return
|
|
197
|
-
|
|
195
|
+
var m = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
|
|
196
|
+
return m ? new Promise(function(p, y) {
|
|
197
|
+
m.call(navigator, f, p, y);
|
|
198
198
|
}) : Promise.reject(new Error("getUserMedia is not implemented in this browser"));
|
|
199
199
|
}));
|
|
200
200
|
})();
|
|
201
|
-
function
|
|
201
|
+
function c() {
|
|
202
202
|
return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
|
|
203
203
|
}
|
|
204
204
|
var d = function(g) {
|
|
205
205
|
s(f, g);
|
|
206
|
-
function f(
|
|
207
|
-
var p = g.call(this,
|
|
206
|
+
function f(m) {
|
|
207
|
+
var p = g.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
|
-
var
|
|
212
|
-
if (this.unmounted = false, !
|
|
211
|
+
var m = this, p = m.state, y = m.props;
|
|
212
|
+
if (this.unmounted = false, !c()) {
|
|
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
|
-
}, f.prototype.componentDidUpdate = function(
|
|
217
|
+
}, f.prototype.componentDidUpdate = function(m) {
|
|
218
218
|
var p = this.props;
|
|
219
|
-
if (!
|
|
219
|
+
if (!c()) {
|
|
220
220
|
p.onUserMediaError("getUserMedia not supported");
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
var y = JSON.stringify(
|
|
223
|
+
var y = JSON.stringify(m.audioConstraints) !== JSON.stringify(p.audioConstraints), S = JSON.stringify(m.videoConstraints) !== JSON.stringify(p.videoConstraints), h = m.minScreenshotWidth !== p.minScreenshotWidth, F = m.minScreenshotHeight !== p.minScreenshotHeight;
|
|
224
224
|
(S || h || F) && (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
|
-
}, f.stopMediaStream = function(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}),
|
|
231
|
-
|
|
232
|
-
})) :
|
|
227
|
+
}, f.stopMediaStream = function(m) {
|
|
228
|
+
m && (m.getVideoTracks && m.getAudioTracks ? (m.getVideoTracks().map(function(p) {
|
|
229
|
+
m.removeTrack(p), p.stop();
|
|
230
|
+
}), m.getAudioTracks().map(function(p) {
|
|
231
|
+
m.removeTrack(p), p.stop();
|
|
232
|
+
})) : m.stop());
|
|
233
233
|
}, f.prototype.stopAndCleanup = function() {
|
|
234
|
-
var
|
|
235
|
-
|
|
236
|
-
}, f.prototype.getScreenshot = function(
|
|
234
|
+
var m = this.state;
|
|
235
|
+
m.hasUserMedia && (f.stopMediaStream(this.stream), m.src && window.URL.revokeObjectURL(m.src));
|
|
236
|
+
}, f.prototype.getScreenshot = function(m) {
|
|
237
237
|
var p = this, y = p.state, S = p.props;
|
|
238
238
|
if (!y.hasUserMedia)
|
|
239
239
|
return null;
|
|
240
|
-
var h = this.getCanvas(
|
|
240
|
+
var h = this.getCanvas(m);
|
|
241
241
|
return h && h.toDataURL(S.screenshotFormat, S.screenshotQuality);
|
|
242
|
-
}, f.prototype.getCanvas = function(
|
|
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;
|
|
@@ -249,19 +249,19 @@ var require_main_min = __commonJS({
|
|
|
249
249
|
var w = h / F;
|
|
250
250
|
h = S.minScreenshotWidth || this.video.clientWidth, F = h / w, S.minScreenshotHeight && F < S.minScreenshotHeight && (F = S.minScreenshotHeight, h = F * w);
|
|
251
251
|
}
|
|
252
|
-
this.canvas = document.createElement("canvas"), this.canvas.width =
|
|
252
|
+
this.canvas = document.createElement("canvas"), this.canvas.width = m?.width || h, this.canvas.height = m?.height || F, this.ctx = this.canvas.getContext("2d");
|
|
253
253
|
}
|
|
254
|
-
var v = this,
|
|
255
|
-
return
|
|
254
|
+
var v = this, O = v.ctx, C = v.canvas;
|
|
255
|
+
return O && C && (S.mirrored && (O.translate(C.width, 0), O.scale(-1, 1)), O.imageSmoothingEnabled = S.imageSmoothing, O.drawImage(this.video, 0, 0, m?.width || C.width, m?.height || C.height), S.mirrored && (O.scale(-1, 1), O.translate(-C.width, 0))), C;
|
|
256
256
|
}, f.prototype.requestUserMedia = function() {
|
|
257
|
-
var
|
|
257
|
+
var m = this, p = this.props, y = function(F, w) {
|
|
258
258
|
var v = { video: typeof w < "u" ? w : true };
|
|
259
|
-
p.audio && (v.audio = typeof F < "u" ? F : true),
|
|
260
|
-
var
|
|
259
|
+
p.audio && (v.audio = typeof F < "u" ? F : true), m.requestUserMediaId++;
|
|
260
|
+
var O = m.requestUserMediaId;
|
|
261
261
|
navigator.mediaDevices.getUserMedia(v).then(function(C) {
|
|
262
|
-
|
|
262
|
+
m.unmounted || O !== m.requestUserMediaId ? f.stopMediaStream(C) : m.handleUserMedia(null, C);
|
|
263
263
|
}).catch(function(C) {
|
|
264
|
-
|
|
264
|
+
m.handleUserMedia(C);
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
if ("mediaDevices" in navigator)
|
|
@@ -278,16 +278,16 @@ var require_main_min = __commonJS({
|
|
|
278
278
|
F.forEach(function(D) {
|
|
279
279
|
D.kind === "audio" ? w = D.id : D.kind === "video" && (v = D.id);
|
|
280
280
|
});
|
|
281
|
-
var
|
|
282
|
-
|
|
281
|
+
var O = h(p.audioConstraints);
|
|
282
|
+
O && (w = O);
|
|
283
283
|
var C = h(p.videoConstraints);
|
|
284
284
|
C && (v = C), y(S(w), S(v));
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
}, f.prototype.handleUserMedia = function(
|
|
287
|
+
}, f.prototype.handleUserMedia = function(m, p) {
|
|
288
288
|
var y = this.props;
|
|
289
|
-
if (
|
|
290
|
-
this.setState({ hasUserMedia: false }), y.onUserMediaError(
|
|
289
|
+
if (m || !p) {
|
|
290
|
+
this.setState({ hasUserMedia: false }), y.onUserMediaError(m);
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
this.stream = p;
|
|
@@ -298,10 +298,10 @@ var require_main_min = __commonJS({
|
|
|
298
298
|
}
|
|
299
299
|
y.onUserMedia(p);
|
|
300
300
|
}, f.prototype.render = function() {
|
|
301
|
-
var
|
|
302
|
-
return n.createElement(n.Fragment, null, n.createElement("video",
|
|
303
|
-
|
|
304
|
-
}, style: ae },
|
|
301
|
+
var m = this, p = this, y = p.state, S = p.props, h = S.audio, F = S.forceScreenshotSourceSize, w = S.onUserMedia, v = S.onUserMediaError, O = S.screenshotFormat, C = S.screenshotQuality, D = S.minScreenshotWidth, T = S.minScreenshotHeight, P = S.audioConstraints, N = S.videoConstraints, G = S.imageSmoothing, A = S.mirrored, V = S.style, k = V === void 0 ? {} : V, H = S.children, Ae = u(S, ["audio", "forceScreenshotSourceSize", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), ae = A ? l(l({}, k), { transform: (k.transform || "") + " scaleX(-1)" }) : k, re = { getScreenshot: this.getScreenshot.bind(this) };
|
|
302
|
+
return n.createElement(n.Fragment, null, n.createElement("video", l({ autoPlay: true, src: y.src, muted: !h, playsInline: true, ref: function(de) {
|
|
303
|
+
m.video = de;
|
|
304
|
+
}, style: ae }, Ae)), H && H(re));
|
|
305
305
|
}, f.defaultProps = { audio: false, forceScreenshotSourceSize: false, imageSmoothing: true, mirrored: false, onUserMedia: function() {
|
|
306
306
|
}, onUserMediaError: function() {
|
|
307
307
|
}, screenshotFormat: "image/webp", screenshotQuality: 0.92 }, f;
|
|
@@ -313,20 +313,20 @@ var require_main_min = __commonJS({
|
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
315
|
var tp = {};
|
|
316
|
-
|
|
317
|
-
module2.exports =
|
|
316
|
+
Al(tp, { DynamicFlow: () => Bn, JsonSchemaForm: () => sr, Layout: () => me, convertStepToLayout: () => Wt, inlineReferences: () => Ge, isValidSchema: () => _, makeHttpClient: () => vr, translations: () => dl });
|
|
317
|
+
module2.exports = vl(tp);
|
|
318
318
|
function Wt(e, { displayStepTitle: t = true } = {}) {
|
|
319
319
|
if (e.layout)
|
|
320
|
-
return
|
|
320
|
+
return jl(e, t);
|
|
321
321
|
switch (e.type) {
|
|
322
322
|
case "final":
|
|
323
|
-
return
|
|
323
|
+
return kl(e);
|
|
324
324
|
case "decision":
|
|
325
|
-
return
|
|
325
|
+
return El(e);
|
|
326
326
|
case "external":
|
|
327
|
-
return
|
|
327
|
+
return Ol(e);
|
|
328
328
|
default:
|
|
329
|
-
return
|
|
329
|
+
return Ml(e);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function ho(e) {
|
|
@@ -337,25 +337,25 @@ var require_main_min = __commonJS({
|
|
|
337
337
|
}
|
|
338
338
|
return e.description && t.push(bo(e.description)), t;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
return [...ho(e),
|
|
340
|
+
function Ol(e) {
|
|
341
|
+
return [...ho(e), Pl(e)];
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Pl(e) {
|
|
344
344
|
return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Ml(e) {
|
|
347
347
|
let t = ho(e);
|
|
348
|
-
if (e.reviewFields && t.push(
|
|
348
|
+
if (e.reviewFields && t.push(Nl(e.reviewFields)), e.schemas && t.push(...Bl(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 kl(e) {
|
|
355
355
|
let t = [];
|
|
356
356
|
if (e.details) {
|
|
357
357
|
if (e.details.image) {
|
|
358
|
-
let r =
|
|
358
|
+
let r = Tl(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 El(e) {
|
|
370
370
|
let t = ho(e);
|
|
371
|
-
return e.options && t.push(
|
|
371
|
+
return e.options && t.push(Dl(e.options)), t;
|
|
372
372
|
}
|
|
373
373
|
function go(e, t) {
|
|
374
374
|
return { type: "box", width: t || "md", components: e };
|
|
@@ -379,48 +379,48 @@ var require_main_min = __commonJS({
|
|
|
379
379
|
function bo(e) {
|
|
380
380
|
return { type: "paragraph", text: e, align: "center" };
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Il(e) {
|
|
383
383
|
return { type: "form", schema: e };
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return { type: "decision", options: e.map(
|
|
385
|
+
function Dl(e) {
|
|
386
|
+
return { type: "decision", options: e.map(Ll) };
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Ll(e) {
|
|
389
389
|
return { title: e.title, description: e.description, action: { title: e.title, method: "GET", url: e.url, disabled: e.disabled } };
|
|
390
390
|
}
|
|
391
391
|
function qn(e) {
|
|
392
392
|
return { type: "image", url: e.url, text: e.text, margin: e.margin || "lg", size: e.size || "md" };
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Tl(e) {
|
|
395
395
|
return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : qn(e);
|
|
396
396
|
}
|
|
397
397
|
function Sr(e) {
|
|
398
398
|
return { type: "button", action: b(i({}, e), { title: e.title }) };
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
return { type: "review", title: e.title, fields: e.fields.map(
|
|
400
|
+
function Nl(e) {
|
|
401
|
+
return { type: "review", title: e.title, fields: e.fields.map(Rl) };
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Rl(e) {
|
|
404
404
|
return { label: e.title, value: e.value };
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Bl(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 = Il(r);
|
|
410
|
+
Vl() ? t.push(o) : t.push(go([o], "md"));
|
|
411
411
|
}
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Vl() {
|
|
415
415
|
return false;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function jl(e, t) {
|
|
418
418
|
return [...t && e.title ? [So(e.title)] : [], ...e.description ? [bo(e.description)] : [], ...e.layout || []];
|
|
419
419
|
}
|
|
420
420
|
function Ge({ layout: e, schemas: t, actions: r, model: o }) {
|
|
421
|
-
return e ? t ? e.map((n) => n.type === "form" ?
|
|
421
|
+
return e ? t ? e.map((n) => n.type === "form" ? Ul({ formComponent: n, schemas: t }) : n.type === "decision" ? zl({ decisionComponent: n, actions: r }) : n.type === "button" ? Hl({ actionComponent: n, actions: r }) : n.type === "box" ? ql({ boxComponent: n, schemas: t, actions: r, model: o }) : n.type === "columns" ? Gl({ columnsComponent: n, schemas: t, actions: r, model: o }) : n) : e : [];
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Ul({ formComponent: e, schemas: t }) {
|
|
424
424
|
if (e.schemaId)
|
|
425
425
|
return { type: "form", margin: e.margin, schema: Gn(t, e.schemaId) };
|
|
426
426
|
if (e.schema && br(e.schema) && e.schema.$ref)
|
|
@@ -429,12 +429,12 @@ var require_main_min = __commonJS({
|
|
|
429
429
|
return i({}, e);
|
|
430
430
|
throw new Error('Invalid form layout component. Missing "schema" or "schemaId" properties.');
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function zl({ decisionComponent: e, actions: t }) {
|
|
433
433
|
var o;
|
|
434
434
|
let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((n) => n.action && br(n.action) ? b(i({}, n), { action: $n(t, n.action.$ref) }) : n);
|
|
435
435
|
return b(i({}, e), { options: r });
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function Hl({ actionComponent: e, actions: t }) {
|
|
438
438
|
var r;
|
|
439
439
|
if (e.action && br(e.action) && ((r = e.action) != null && r.$ref)) {
|
|
440
440
|
let o = $n(t, e.action.$ref);
|
|
@@ -442,10 +442,10 @@ var require_main_min = __commonJS({
|
|
|
442
442
|
}
|
|
443
443
|
return e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function ql({ 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 Gl({ columnsComponent: e, schemas: t, actions: r, model: o }) {
|
|
449
449
|
return b(i({}, e), { left: Ge({ layout: e.left, schemas: t, actions: r, model: o }), right: Ge({ layout: e.right, schemas: t, actions: r, model: o }) });
|
|
450
450
|
}
|
|
451
451
|
function Gn(e, t) {
|
|
@@ -464,17 +464,17 @@ var require_main_min = __commonJS({
|
|
|
464
464
|
return Object.prototype.hasOwnProperty.call(e, "$ref");
|
|
465
465
|
}
|
|
466
466
|
var xe = require("react");
|
|
467
|
-
var
|
|
467
|
+
var Xm = require("react-intl");
|
|
468
468
|
var wt = require("react");
|
|
469
469
|
var wr = require("react");
|
|
470
470
|
function _n() {
|
|
471
471
|
let [e, t] = (0, wr.useState)(0);
|
|
472
472
|
return { addPendingPromise: (0, wr.useCallback)((o) => {
|
|
473
|
-
t((n) => n + 1), o.catch(
|
|
473
|
+
t((n) => n + 1), o.catch(_l).finally(() => $l(() => t((n) => Math.max(0, n - 1))));
|
|
474
474
|
}, [t]), pendingPromises: e };
|
|
475
475
|
}
|
|
476
|
-
var $
|
|
477
|
-
var
|
|
476
|
+
var $l = (e) => setTimeout(() => e(), 0);
|
|
477
|
+
var _l = () => {
|
|
478
478
|
};
|
|
479
479
|
var Xn = require("react/jsx-runtime");
|
|
480
480
|
var Wn = { loading: false, registerPersistAsyncPromise: (e) => {
|
|
@@ -510,15 +510,15 @@ var require_main_min = __commonJS({
|
|
|
510
510
|
function xr(e) {
|
|
511
511
|
return e === 422;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Ar(e = "") {
|
|
514
514
|
return ["https://", "http://", "data:"].some((t) => e.slice(0, t.length) === t && e.length > t.length) === false;
|
|
515
515
|
}
|
|
516
516
|
var vr = (e, t) => (r, o) => {
|
|
517
|
-
let n =
|
|
517
|
+
let n = Wl(r, e || ""), a = Kl(o == null ? void 0 : o.headers, t);
|
|
518
518
|
return fetch(n, b(i({}, o || {}), { headers: a }));
|
|
519
519
|
};
|
|
520
|
-
var
|
|
521
|
-
var
|
|
520
|
+
var Wl = (e, t) => typeof e == "string" && Ar(e) ? t + e : e;
|
|
521
|
+
var Kl = (e, t) => {
|
|
522
522
|
if (!e && !t)
|
|
523
523
|
return {};
|
|
524
524
|
let r = new Headers(e);
|
|
@@ -527,20 +527,20 @@ var require_main_min = __commonJS({
|
|
|
527
527
|
return r;
|
|
528
528
|
};
|
|
529
529
|
var Fo = require("react/jsx-runtime");
|
|
530
|
-
var
|
|
531
|
-
var ea = ({ httpClient: e, children: t }) => (0, Fo.jsx)(
|
|
530
|
+
var Or = (0, ot.createContext)(void 0);
|
|
531
|
+
var ea = ({ 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
|
-
return (0, Fo.jsx)(
|
|
534
|
+
return (0, Fo.jsx)(Or.Provider, { value: r, children: t });
|
|
535
535
|
};
|
|
536
|
-
var ee = () => (0, ot.useContext)(
|
|
537
|
-
var Mr = () => !!(0, ot.useContext)(
|
|
536
|
+
var ee = () => (0, ot.useContext)(Or) || fetch;
|
|
537
|
+
var Mr = () => !!(0, ot.useContext)(Or);
|
|
538
538
|
var Ct = require("react");
|
|
539
539
|
var ra = require("react/jsx-runtime");
|
|
540
540
|
var nt = (e, t, r = "UNKNOWN-FLOW-ID", o = "UNKNOWN-FLOW-ID") => (n, a, s) => {
|
|
541
541
|
try {
|
|
542
542
|
t(e, `Dynamic Flow ${e} - ${n} - ${a}`, i({ flowId: r, stepId: o }, s));
|
|
543
|
-
} catch (
|
|
543
|
+
} catch (l) {
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
546
|
var ta = (0, Ct.createContext)(null);
|
|
@@ -562,29 +562,29 @@ var require_main_min = __commonJS({
|
|
|
562
562
|
var z = (e) => Array.isArray(e);
|
|
563
563
|
var M = (e) => e === null;
|
|
564
564
|
var J = (e) => typeof e == "undefined";
|
|
565
|
-
var
|
|
565
|
+
var At = (e) => E(e) && e.length === 0 || (L(e) || z(e)) && Object.keys(e).length === 0;
|
|
566
566
|
function na(e, t) {
|
|
567
567
|
return t.oneOf.some((r) => $e(e, r) === e) ? e : null;
|
|
568
568
|
}
|
|
569
569
|
function aa(e, t) {
|
|
570
570
|
var o;
|
|
571
|
-
let r = t.oneOf.map((n) =>
|
|
571
|
+
let r = t.oneOf.map((n) => Jl(e, n)).filter((n) => n !== null);
|
|
572
572
|
return r.length === 0 ? null : (o = r.find((n) => n.some((a) => a !== null))) != null ? o : r[0];
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
return !Le(t) || !
|
|
574
|
+
function Jl(e, t) {
|
|
575
|
+
return !Le(t) || !Oe(t) ? null : Co(e, t);
|
|
576
576
|
}
|
|
577
577
|
function ia(e) {
|
|
578
|
-
return E(e) && !
|
|
578
|
+
return E(e) && !At(e) ? e : null;
|
|
579
579
|
}
|
|
580
580
|
function sa(e) {
|
|
581
581
|
return R(e) ? e : null;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function ma(e) {
|
|
584
584
|
return ve(e) ? e : null;
|
|
585
585
|
}
|
|
586
586
|
function Co(e, t) {
|
|
587
|
-
if (!z(e) || !
|
|
587
|
+
if (!z(e) || !Oe(t))
|
|
588
588
|
return null;
|
|
589
589
|
if (e.length > 0) {
|
|
590
590
|
let r = typeof e[0];
|
|
@@ -593,7 +593,7 @@ var require_main_min = __commonJS({
|
|
|
593
593
|
}
|
|
594
594
|
return e.map((r) => vt(r, t.items));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function la(e, t) {
|
|
597
597
|
return Object.keys(t.properties).reduce((r, o) => {
|
|
598
598
|
if (e && !J(e[o])) {
|
|
599
599
|
let n = e[o], a = t.properties[o], s = vt(n, a);
|
|
@@ -603,7 +603,7 @@ var require_main_min = __commonJS({
|
|
|
603
603
|
return r;
|
|
604
604
|
}, {});
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function ca(e, t) {
|
|
607
607
|
return t.allOf.reduce((r, o) => {
|
|
608
608
|
let n = ie(e, o);
|
|
609
609
|
return $(n) ? i(i({}, r), n) : r;
|
|
@@ -618,7 +618,7 @@ var require_main_min = __commonJS({
|
|
|
618
618
|
return $(n) && $(a) ? b(i({}, r), { [o]: ua(n, a) }) : b(i({}, r), { [o]: t[o] });
|
|
619
619
|
}, i({}, e));
|
|
620
620
|
}
|
|
621
|
-
var vt = (e, t) => $(e) ? ie(e, t) : xo(e) ?
|
|
621
|
+
var vt = (e, t) => $(e) ? ie(e, t) : xo(e) ? Xl(e, t) : $e(e, t);
|
|
622
622
|
function $e(e, t) {
|
|
623
623
|
if (M(e))
|
|
624
624
|
return null;
|
|
@@ -634,16 +634,16 @@ var require_main_min = __commonJS({
|
|
|
634
634
|
case "integer":
|
|
635
635
|
return sa(e);
|
|
636
636
|
case "boolean":
|
|
637
|
-
return
|
|
637
|
+
return ma(e);
|
|
638
638
|
default:
|
|
639
639
|
return null;
|
|
640
640
|
}
|
|
641
641
|
return null;
|
|
642
642
|
}
|
|
643
643
|
function ie(e, t) {
|
|
644
|
-
return Te(t) || Le(t) || M(e) ? null : t.allOf ?
|
|
644
|
+
return Te(t) || Le(t) || M(e) ? null : t.allOf ? ca(e, t) : t.oneOf ? da(e, t) : !J(t.const) && e === t.const ? e : Pe(t) ? la(e, t) : null;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Xl(e, t) {
|
|
647
647
|
return fe(t) ? aa(e, t) : Le(t) ? Co(e, t) : null;
|
|
648
648
|
}
|
|
649
649
|
function Kt(e, t = false) {
|
|
@@ -661,7 +661,7 @@ var require_main_min = __commonJS({
|
|
|
661
661
|
function ha(e, t) {
|
|
662
662
|
return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function Ao(e, t) {
|
|
665
665
|
return !R(t) && !E(t) || (R(e) || E(e)) && e <= t;
|
|
666
666
|
}
|
|
667
667
|
function vo(e, t) {
|
|
@@ -679,7 +679,7 @@ var require_main_min = __commonJS({
|
|
|
679
679
|
if (M(e))
|
|
680
680
|
return r ? ["required"] : [];
|
|
681
681
|
if (wa(t))
|
|
682
|
-
return
|
|
682
|
+
return Oo(e, t, r);
|
|
683
683
|
switch (t.type) {
|
|
684
684
|
case "number":
|
|
685
685
|
return Er(e, t, r);
|
|
@@ -688,26 +688,26 @@ var require_main_min = __commonJS({
|
|
|
688
688
|
case "boolean":
|
|
689
689
|
return Mo(e, t, r);
|
|
690
690
|
case "array":
|
|
691
|
-
return
|
|
691
|
+
return Ot(e, t, r);
|
|
692
692
|
case "object":
|
|
693
|
-
return
|
|
693
|
+
return Yl(e, t);
|
|
694
694
|
default:
|
|
695
695
|
return [];
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Oo(e, t, r) {
|
|
699
699
|
if (!E(e) && !M(e))
|
|
700
700
|
return ["type"];
|
|
701
701
|
if (e === "" && r)
|
|
702
702
|
return ["required"];
|
|
703
703
|
let o = [];
|
|
704
|
-
return Kt(e, r) || o.push("required"), fa(e, t.minLength) || o.push("minLength"), ya(e, t.maxLength) || o.push("maxLength"), ha(e, t.pattern) || o.push("pattern"), vo(e, t.minimum) || o.push("minimum"),
|
|
704
|
+
return Kt(e, r) || o.push("required"), fa(e, t.minLength) || o.push("minLength"), ya(e, t.maxLength) || o.push("maxLength"), ha(e, t.pattern) || o.push("pattern"), vo(e, t.minimum) || o.push("minimum"), Ao(e, t.maximum) || o.push("maximum"), o;
|
|
705
705
|
}
|
|
706
706
|
function Er(e, t, r) {
|
|
707
707
|
if (!R(e) && !M(e))
|
|
708
708
|
return ["type"];
|
|
709
709
|
let o = [];
|
|
710
|
-
return Kt(e, r) || o.push("required"), vo(e, t.minimum) || o.push("minimum"),
|
|
710
|
+
return Kt(e, r) || o.push("required"), vo(e, t.minimum) || o.push("minimum"), Ao(e, t.maximum) || o.push("maximum"), o;
|
|
711
711
|
}
|
|
712
712
|
function Po(e, t, r) {
|
|
713
713
|
return oa(e) ? Er(e, t, r) : ["type"];
|
|
@@ -721,7 +721,7 @@ var require_main_min = __commonJS({
|
|
|
721
721
|
function ko(e, t, r) {
|
|
722
722
|
return Kt(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function Ot(e, t, r) {
|
|
725
725
|
if (!z(e) && !M(e))
|
|
726
726
|
return ["type"];
|
|
727
727
|
if (!pa(e, r))
|
|
@@ -732,71 +732,71 @@ var require_main_min = __commonJS({
|
|
|
732
732
|
function ba(e, t) {
|
|
733
733
|
return M(e) ? ["type"] : [];
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Yl(e, t) {
|
|
736
736
|
return $(e) ? z(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, n) => o && n, true) ? [] : ["required"] : [] : ["type"];
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
return !
|
|
738
|
+
function Zl(e, t) {
|
|
739
|
+
return !Oo(e, t).length;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Ql(e, t) {
|
|
742
742
|
return !Er(e, t).length;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function ec(e, t) {
|
|
745
745
|
return !Po(e, t).length;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function tc(e, t) {
|
|
748
748
|
return !Mo(e, t).length;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function rc(e, t) {
|
|
751
751
|
return !ko(e, t).length;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
return !L(e) || t.type !== "object" || !L(t.properties) ? false : Object.keys(t.properties).map((r) =>
|
|
753
|
+
function oc(e, t) {
|
|
754
|
+
return !L(e) || t.type !== "object" || !L(t.properties) ? false : Object.keys(t.properties).map((r) => nc(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function nc(e, t, r) {
|
|
757
757
|
return t.hidden ? true : typeof e == "undefined" ? !r : _(e, t);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
return t.type !== "array" || !L(t.items) ||
|
|
759
|
+
function ac(e, t) {
|
|
760
|
+
return t.type !== "array" || !L(t.items) || Ot(e, t).length > 0 ? false : Array.isArray(e) && Oe(t) && e.map((r) => _(r, t.items)).every((r) => r);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function ic(e, t) {
|
|
763
763
|
return z(t.oneOf) ? t.oneOf.some((r) => _(e, r)) : false;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function sc(e, t) {
|
|
766
766
|
return z(t.allOf) ? t.allOf.map((r) => _(e, r)).every((r) => r) : false;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function mc(e, t) {
|
|
769
769
|
return !ba(e, t).length;
|
|
770
770
|
}
|
|
771
771
|
function _(e, t) {
|
|
772
772
|
if (t.hidden)
|
|
773
773
|
return true;
|
|
774
774
|
if (t.oneOf)
|
|
775
|
-
return
|
|
775
|
+
return ic(e, t);
|
|
776
776
|
if (t.allOf)
|
|
777
|
-
return
|
|
777
|
+
return sc(e, t);
|
|
778
778
|
if (t.const)
|
|
779
|
-
return
|
|
779
|
+
return rc(e, t);
|
|
780
780
|
switch (t.type) {
|
|
781
781
|
case "string":
|
|
782
|
-
return
|
|
782
|
+
return Zl(e, t);
|
|
783
783
|
case "number":
|
|
784
|
-
return
|
|
784
|
+
return Ql(e, t);
|
|
785
785
|
case "integer":
|
|
786
|
-
return
|
|
786
|
+
return ec(e, t);
|
|
787
787
|
case "boolean":
|
|
788
|
-
return
|
|
788
|
+
return tc(e, t);
|
|
789
789
|
case "array":
|
|
790
|
-
return
|
|
790
|
+
return ac(e, t);
|
|
791
791
|
case "object":
|
|
792
|
-
return
|
|
792
|
+
return oc(e, t);
|
|
793
793
|
case "blob":
|
|
794
|
-
return
|
|
794
|
+
return mc(e, t);
|
|
795
795
|
default:
|
|
796
796
|
return false;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function lc(e) {
|
|
800
800
|
let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`, n = t.getFullYear(), a = r.length < 2 ? `0${r}` : r, s = o.length < 2 ? `0${o}` : o;
|
|
801
801
|
return [n, a, s].join("-");
|
|
802
802
|
}
|
|
@@ -806,7 +806,7 @@ var require_main_min = __commonJS({
|
|
|
806
806
|
let [t, r, o] = e.split("-").map((n) => parseInt(n, 10));
|
|
807
807
|
return !R(t) || !R(r) || !R(o) ? null : new Date(t, r - 1, o);
|
|
808
808
|
};
|
|
809
|
-
var Ca = (e) =>
|
|
809
|
+
var Ca = (e) => lc(e);
|
|
810
810
|
var We = (e, t) => {
|
|
811
811
|
let r, o, n = () => {
|
|
812
812
|
r && (clearTimeout(r), r = null), o = null;
|
|
@@ -821,8 +821,8 @@ var require_main_min = __commonJS({
|
|
|
821
821
|
r !== null && (e(...o), n());
|
|
822
822
|
}, a;
|
|
823
823
|
};
|
|
824
|
-
var Ke = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Ke(r, t[o])) : !!(xa(e) && xa(t) &&
|
|
825
|
-
var
|
|
824
|
+
var Ke = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Ke(r, t[o])) : !!(xa(e) && xa(t) && cc(e, t));
|
|
825
|
+
var cc = (e, t) => {
|
|
826
826
|
let r = Object.keys(e), o = Object.keys(t);
|
|
827
827
|
return r.length === o.length && r.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Ke(e[n], t[n]));
|
|
828
828
|
};
|
|
@@ -830,7 +830,7 @@ var require_main_min = __commonJS({
|
|
|
830
830
|
function Ir(e) {
|
|
831
831
|
return Math.floor(e / 1024);
|
|
832
832
|
}
|
|
833
|
-
var
|
|
833
|
+
var Aa = (e) => new Promise((t, r) => {
|
|
834
834
|
let o = new FileReader();
|
|
835
835
|
o.readAsDataURL(e), o.addEventListener("load", () => t(o.result)), o.addEventListener("error", (n) => r(n));
|
|
836
836
|
});
|
|
@@ -850,11 +850,11 @@ var require_main_min = __commonJS({
|
|
|
850
850
|
function Jt(e) {
|
|
851
851
|
return !!e && !ye(e);
|
|
852
852
|
}
|
|
853
|
-
var
|
|
854
|
-
var
|
|
855
|
-
var
|
|
853
|
+
var dc = (e) => !!e.readOnly && Te(e);
|
|
854
|
+
var uc = (e) => !!e.oneOf && !!e.promotion;
|
|
855
|
+
var pc = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
|
|
856
856
|
function Te(e) {
|
|
857
|
-
return
|
|
857
|
+
return pc.has(e.type || "") || "const" in e && e.const !== void 0;
|
|
858
858
|
}
|
|
859
859
|
function Pe(e) {
|
|
860
860
|
return e.type === "object";
|
|
@@ -874,7 +874,7 @@ var require_main_min = __commonJS({
|
|
|
874
874
|
function Le(e) {
|
|
875
875
|
return e.type === "array";
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Oe(e) {
|
|
878
878
|
let t = e.items;
|
|
879
879
|
return !Array.isArray(t);
|
|
880
880
|
}
|
|
@@ -884,25 +884,25 @@ var require_main_min = __commonJS({
|
|
|
884
884
|
function Dr(e) {
|
|
885
885
|
return !!e.persistAsync;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
return Dr(e) && (Pt(e.persistAsync.schema) ||
|
|
887
|
+
function fc(e) {
|
|
888
|
+
return Dr(e) && (Pt(e.persistAsync.schema) || yc(e.persistAsync.schema));
|
|
889
889
|
}
|
|
890
890
|
var Io = (e) => Te(e) && !!e.validationAsync;
|
|
891
|
-
function
|
|
891
|
+
function yc(e) {
|
|
892
892
|
return e.type === "string" && e.format === "base64url";
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Oa(e) {
|
|
895
895
|
return e.type === "string" && e.format === "base64url";
|
|
896
896
|
}
|
|
897
|
-
var Pa = (e) => Le(e) &&
|
|
898
|
-
var it = (e) =>
|
|
899
|
-
var Ma = (e) =>
|
|
900
|
-
var
|
|
901
|
-
var
|
|
897
|
+
var Pa = (e) => Le(e) && Oe(e) && fc(e.items);
|
|
898
|
+
var it = (e) => dc(e) ? "readOnly" : Dr(e) ? "persistAsync" : Io(e) ? "validationAsync" : Pe(e) ? "object" : Le(e) ? "array" : uc(e) ? "promotedOneOf" : fe(e) ? "oneOf" : Eo(e) ? "allOf" : Te(e) ? "basic" : null;
|
|
899
|
+
var Ma = (e) => hc(e) && gc(e) && Sc(e);
|
|
900
|
+
var hc = (e) => !e.type || e.type === "form";
|
|
901
|
+
var gc = (e) => {
|
|
902
902
|
var t;
|
|
903
903
|
return ((t = e == null ? void 0 : e.actions) == null ? void 0 : t.length) === 1;
|
|
904
904
|
};
|
|
905
|
-
var
|
|
905
|
+
var Sc = (e) => {
|
|
906
906
|
if (!e.schemas)
|
|
907
907
|
return false;
|
|
908
908
|
let t = Lr(e.schemas);
|
|
@@ -912,7 +912,7 @@ var require_main_min = __commonJS({
|
|
|
912
912
|
if (!Pe(r) || Object.values(r.properties).length !== 1)
|
|
913
913
|
return false;
|
|
914
914
|
let o = Object.values(r.properties)[0];
|
|
915
|
-
return
|
|
915
|
+
return Oa(o) ? o.source === "camera" : false;
|
|
916
916
|
};
|
|
917
917
|
var Lr = (e) => e.filter((t) => Pe(t) ? Object.values((t == null ? void 0 : t.properties) || {}).find((r) => (r == null ? void 0 : r.hidden) !== true) : (t == null ? void 0 : t.hidden) !== true);
|
|
918
918
|
var $ = (e) => typeof e == "object" && e !== null && e.constructor === Object;
|
|
@@ -948,15 +948,15 @@ var require_main_min = __commonJS({
|
|
|
948
948
|
throw new Error("failed");
|
|
949
949
|
});
|
|
950
950
|
}, [e, r]), n = (0, Zt.useCallback)((a) => {
|
|
951
|
-
let
|
|
952
|
-
if (
|
|
953
|
-
let { action: u } =
|
|
951
|
+
let l = ((e == null ? void 0 : e.responseHandlers) || []).find((u) => u.result === a.result);
|
|
952
|
+
if (l != null && l.action) {
|
|
953
|
+
let { action: u } = l;
|
|
954
954
|
if (u.exit) {
|
|
955
|
-
let
|
|
956
|
-
t(b(i({}, u), { result:
|
|
955
|
+
let c = i(i({}, u.result || {}), a.data || {});
|
|
956
|
+
t(b(i({}, u), { result: c }));
|
|
957
957
|
} else {
|
|
958
|
-
let
|
|
959
|
-
t(b(i({}, u), { data:
|
|
958
|
+
let c = i(i({}, u.data || {}), a.data || {});
|
|
959
|
+
t(b(i({}, u), { data: c }));
|
|
960
960
|
}
|
|
961
961
|
return false;
|
|
962
962
|
}
|
|
@@ -977,21 +977,21 @@ var require_main_min = __commonJS({
|
|
|
977
977
|
var Ra = { SHORT: "short", LONG: "long" };
|
|
978
978
|
var Ba = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
|
|
979
979
|
var zs = qe(st());
|
|
980
|
-
var
|
|
980
|
+
var le = require("react");
|
|
981
981
|
var Ga = require("@transferwise/components");
|
|
982
982
|
var kt = require("@transferwise/components");
|
|
983
983
|
var ja = require("react/jsx-runtime");
|
|
984
|
-
var Mt = (e) =>
|
|
985
|
-
var
|
|
986
|
-
var
|
|
984
|
+
var Mt = (e) => bc(e) || wc(e);
|
|
985
|
+
var bc = (e) => Fc.some((t) => e === `flag-${t}`);
|
|
986
|
+
var wc = (e) => Cc.some((t) => e === `flag-${t}`);
|
|
987
987
|
var Va = ({ name: e }) => {
|
|
988
988
|
if (!Mt(e))
|
|
989
989
|
return null;
|
|
990
990
|
let t = e.substring(5);
|
|
991
991
|
return (0, ja.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}` });
|
|
992
992
|
};
|
|
993
|
-
var
|
|
994
|
-
var
|
|
993
|
+
var Fc = ["aed", "ars", "aud", "bdt", "bgn", "bhd", "bnd", "brl", "bwp", "cad", "chf", "clp", "cny", "cop", "crc", "czk", "dkk", "egp", "eur", "fjd", "gbp", "gel", "ghs", "gtq", "hkd", "hrk", "huf", "idr", "ils", "imp", "inr", "isk", "jmd", "jpy", "kes", "krw", "kwd", "lak", "lkr", "lsl", "mad", "mur", "mxn", "myr", "mzn", "nad", "ngn", "nok", "npr", "nzd", "omr", "pab", "pen", "php", "pkr", "pln", "qar", "ron", "rub", "sar", "sek", "sgd", "thb", "tmt", "try", "twd", "tzs", "uah", "ugx", "usd", "uyu", "vnd", "xof", "zar", "zmw"];
|
|
994
|
+
var Cc = ["ad", "ae", "ar", "at", "au", "bd", "be", "bg", "bh", "bn", "br", "bw", "ca", "ch", "cl", "cn", "co", "cr", "cy", "cz", "de", "dk", "ee", "eg", "es", "eu", "fi", "fj", "fr", "gb", "ge", "gg", "gh", "gp", "gr", "gt", "hk", "hr", "hu", "id", "ie", "il", "im", "in", "is", "it", "je", "jm", "jp", "ke", "kr", "kw", "la", "li", "lk", "ls", "lt", "lu", "lv", "ma", "mc", "mt", "mu", "mx", "my", "mz", "na", "ng", "nl", "no", "np", "nz", "om", "pa", "pe", "ph", "pk", "pl", "pt", "qa", "ro", "ru", "sa", "se", "sg", "si", "sk", "sm", "th", "tm", "tr", "tw", "tz", "ua", "ug", "us", "uy", "va", "vn", "wi", "xo", "za", "zm"];
|
|
995
995
|
var Ua = qe(require("@transferwise/icons"));
|
|
996
996
|
var qa = require("react/jsx-runtime");
|
|
997
997
|
var Br = (e) => {
|
|
@@ -1004,19 +1004,19 @@ var require_main_min = __commonJS({
|
|
|
1004
1004
|
let t = Ha(e), r = Ua[t];
|
|
1005
1005
|
return (0, qa.jsx)(r, { size: 24 });
|
|
1006
1006
|
};
|
|
1007
|
-
var Ha = (e) => e.split("-").map(
|
|
1008
|
-
var
|
|
1007
|
+
var Ha = (e) => e.split("-").map(xc).join("");
|
|
1008
|
+
var xc = (e) => {
|
|
1009
1009
|
var t;
|
|
1010
1010
|
return `${(t = e[0]) == null ? void 0 : t.toUpperCase()}${e.slice(1)}`;
|
|
1011
1011
|
};
|
|
1012
1012
|
var To = require("react/jsx-runtime");
|
|
1013
|
-
var
|
|
1013
|
+
var Ac = ({ type: e }) => Mt(e) ? (0, To.jsx)(Va, { name: e }) : Br(e) ? (0, To.jsx)(za, { name: e }) : null;
|
|
1014
1014
|
function No(e) {
|
|
1015
1015
|
return Br(e) || Mt(e);
|
|
1016
1016
|
}
|
|
1017
|
-
var Je =
|
|
1017
|
+
var Je = Ac;
|
|
1018
1018
|
var er = require("react/jsx-runtime");
|
|
1019
|
-
var
|
|
1019
|
+
var mt = ({ icon: e, image: t }) => {
|
|
1020
1020
|
if (e != null && e.name)
|
|
1021
1021
|
return (0, er.jsx)(kt.Avatar, { type: kt.AvatarType.ICON, children: (0, er.jsx)(Je, { type: e.name }) });
|
|
1022
1022
|
if (e != null && e.text)
|
|
@@ -1043,7 +1043,7 @@ var require_main_min = __commonJS({
|
|
|
1043
1043
|
return "";
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
|
-
var
|
|
1046
|
+
var vc = (e) => {
|
|
1047
1047
|
switch (e) {
|
|
1048
1048
|
case "right":
|
|
1049
1049
|
return "text-xs-right";
|
|
@@ -1054,13 +1054,13 @@ var require_main_min = __commonJS({
|
|
|
1054
1054
|
return "";
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
|
-
var Ne = (e) => `${
|
|
1057
|
+
var Ne = (e) => `${vc(e.align)} ${U(e.margin)}`;
|
|
1058
1058
|
var $a = require("react/jsx-runtime");
|
|
1059
|
-
var
|
|
1059
|
+
var Oc = (e) => {
|
|
1060
1060
|
let t = e.component;
|
|
1061
|
-
return (0, $a.jsx)(Ga.Alert, { type:
|
|
1061
|
+
return (0, $a.jsx)(Ga.Alert, { type: Mc(Pc(t.context)), className: U(t.margin), message: t.markdown });
|
|
1062
1062
|
};
|
|
1063
|
-
var
|
|
1063
|
+
var Pc = (e) => {
|
|
1064
1064
|
switch (e) {
|
|
1065
1065
|
case "success":
|
|
1066
1066
|
return "positive";
|
|
@@ -1075,15 +1075,15 @@ var require_main_min = __commonJS({
|
|
|
1075
1075
|
return e;
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
var
|
|
1079
|
-
var se =
|
|
1080
|
-
var
|
|
1081
|
-
var
|
|
1078
|
+
var Mc = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
|
|
1079
|
+
var se = Oc;
|
|
1080
|
+
var lt = require("react/jsx-runtime");
|
|
1081
|
+
var kc = (e) => {
|
|
1082
1082
|
let t = e.component, r = U(t.margin || t.border ? "lg" : "xs");
|
|
1083
|
-
return !t.width || t.width === "xl" ? (0,
|
|
1083
|
+
return !t.width || t.width === "xl" ? (0, lt.jsx)("div", { className: r + _a(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, lt.jsx)("div", { className: "row", children: (0, lt.jsx)("div", { className: r + Ec(t), children: (0, lt.jsx)("div", { className: _a(t.border), children: (0, lt.jsx)(me, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
|
|
1084
1084
|
};
|
|
1085
1085
|
var _a = (e) => e ? " well p-b-0" : "";
|
|
1086
|
-
var
|
|
1086
|
+
var Ec = (e) => {
|
|
1087
1087
|
switch (e.width) {
|
|
1088
1088
|
case "xs":
|
|
1089
1089
|
return " col-md-4 col-md-offset-4";
|
|
@@ -1098,18 +1098,18 @@ var require_main_min = __commonJS({
|
|
|
1098
1098
|
return " col-xs-12";
|
|
1099
1099
|
}
|
|
1100
1100
|
};
|
|
1101
|
-
var Ro =
|
|
1101
|
+
var Ro = kc;
|
|
1102
1102
|
var Xa = require("@transferwise/components");
|
|
1103
|
-
var
|
|
1103
|
+
var Ic = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
|
|
1104
1104
|
var Wa = (e) => {
|
|
1105
1105
|
var r;
|
|
1106
1106
|
let t = e.action.type;
|
|
1107
|
-
return (r = e.control) != null ? r : t ?
|
|
1107
|
+
return (r = e.control) != null ? r : t ? Ic[t] : "secondary";
|
|
1108
1108
|
};
|
|
1109
|
-
var
|
|
1109
|
+
var Dc = { primary: "neutral", secondary: "neutral", link: "neutral", positive: "positive", negative: "negative" };
|
|
1110
1110
|
var Ka = (e) => {
|
|
1111
1111
|
var o;
|
|
1112
|
-
let t = e.action.type, r = (o = e.context) != null ? o : t ?
|
|
1112
|
+
let t = e.action.type, r = (o = e.context) != null ? o : t ? Dc[t] : "neutral";
|
|
1113
1113
|
return r === "neutral" ? "accent" : r;
|
|
1114
1114
|
};
|
|
1115
1115
|
var Ja = (e) => {
|
|
@@ -1126,57 +1126,57 @@ var require_main_min = __commonJS({
|
|
|
1126
1126
|
}
|
|
1127
1127
|
};
|
|
1128
1128
|
var Ya = require("react/jsx-runtime");
|
|
1129
|
-
var
|
|
1129
|
+
var Lc = (e) => {
|
|
1130
1130
|
var u;
|
|
1131
|
-
let { component: t, onAction: r } = e, o = t.action, n = Ka(t), a = Wa(t), { loading: s } = Fr(),
|
|
1132
|
-
return (0, Ya.jsx)(Xa.Button, { size: Ja(t.size), type: n, priority: a, block: true, className:
|
|
1131
|
+
let { component: t, onAction: r } = e, o = t.action, n = Ka(t), a = Wa(t), { loading: s } = Fr(), l = U(t.margin || "md");
|
|
1132
|
+
return (0, Ya.jsx)(Xa.Button, { size: Ja(t.size), type: n, priority: a, block: true, className: l, disabled: t.disabled || o.disabled || s, onClick: () => r(o), children: (u = t.title) != null ? u : o.title });
|
|
1133
1133
|
};
|
|
1134
|
-
var Bo =
|
|
1135
|
-
var
|
|
1136
|
-
var
|
|
1137
|
-
let t = e.component, { leftWidth: r, rightWidth: o } =
|
|
1138
|
-
return (0,
|
|
1134
|
+
var Bo = Lc;
|
|
1135
|
+
var ct = require("react/jsx-runtime");
|
|
1136
|
+
var Tc = (e) => {
|
|
1137
|
+
let t = e.component, { leftWidth: r, rightWidth: o } = Nc(t.bias);
|
|
1138
|
+
return (0, ct.jsxs)("div", { className: `${U(t.margin || "xs")} row`, children: [(0, ct.jsx)("div", { className: `${r} m-b-0`, children: (0, ct.jsx)(me, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, ct.jsx)("div", { className: `${o} m-b-0`, children: (0, ct.jsx)(me, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
|
|
1139
1139
|
};
|
|
1140
|
-
var
|
|
1141
|
-
var Vo =
|
|
1140
|
+
var Nc = (e) => e === "left" ? { leftWidth: "col-md-8", rightWidth: "col-md-4" } : e === "right" ? { leftWidth: "col-md-4", rightWidth: "col-md-8" } : { leftWidth: "col-md-6", rightWidth: "col-md-6" };
|
|
1141
|
+
var Vo = Tc;
|
|
1142
1142
|
var jr = require("@transferwise/components");
|
|
1143
1143
|
var Vr = require("react/jsx-runtime");
|
|
1144
|
-
var
|
|
1145
|
-
var jo =
|
|
1144
|
+
var Rc = ({ component: e, onAction: t }) => (0, Vr.jsx)("div", { className: U(e.margin), children: (0, Vr.jsx)(jr.NavigationOptionsList, { children: e.options.map((r) => (0, Vr.jsx)(jr.NavigationOption, { title: r.title, content: r.description, disabled: r.disabled, media: mt(r), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(r.action) }, JSON.stringify(r))) }) });
|
|
1145
|
+
var jo = Rc;
|
|
1146
1146
|
var Za = require("react/jsx-runtime");
|
|
1147
|
-
var
|
|
1147
|
+
var Bc = ({ component: e }) => {
|
|
1148
1148
|
let r = `m-t-0 ${U(e.margin)}`;
|
|
1149
1149
|
return (0, Za.jsx)("hr", { className: r });
|
|
1150
1150
|
};
|
|
1151
|
-
var Uo =
|
|
1151
|
+
var Uo = Bc;
|
|
1152
1152
|
var Et = require("@transferwise/components");
|
|
1153
1153
|
var Ur = require("react");
|
|
1154
1154
|
var ti = require("react-intl");
|
|
1155
1155
|
var Qa = require("react-intl");
|
|
1156
1156
|
var ei = (0, Qa.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1157
1157
|
var Xe = require("react/jsx-runtime");
|
|
1158
|
-
var
|
|
1159
|
-
let { requestUrl: r, responseHandlers: o, polling: n, retryTitle: a } = e, s = (0, ti.useIntl)(),
|
|
1158
|
+
var Vc = ({ component: e, onAction: t }) => {
|
|
1159
|
+
let { requestUrl: r, responseHandlers: o, polling: n, retryTitle: a } = e, s = (0, ti.useIntl)(), l = (0, Ur.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1160
1160
|
(0, Ur.useEffect)(() => {
|
|
1161
|
-
|
|
1162
|
-
}, [
|
|
1161
|
+
l();
|
|
1162
|
+
}, [l]);
|
|
1163
1163
|
let u = n && o ? b(i({}, n), { responseHandlers: o }) : void 0;
|
|
1164
|
-
return La(u, t), (0, Xe.jsxs)(Xe.Fragment, { children: [(0, Xe.jsx)(Et.Loader, { size: Et.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Xe.jsx)("br", {}), (0, Xe.jsx)(Et.Button, { priority: "tertiary", block: true, onClick:
|
|
1164
|
+
return La(u, t), (0, Xe.jsxs)(Xe.Fragment, { children: [(0, Xe.jsx)(Et.Loader, { size: Et.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Xe.jsx)("br", {}), (0, Xe.jsx)(Et.Button, { priority: "tertiary", block: true, onClick: l, children: a || s.formatMessage(ei.retryTitle) })] });
|
|
1165
1165
|
};
|
|
1166
|
-
var zo =
|
|
1166
|
+
var zo = Vc;
|
|
1167
1167
|
var ws = require("react");
|
|
1168
1168
|
var ri = qe(st());
|
|
1169
1169
|
var oi = require("react");
|
|
1170
1170
|
var ke = require("react/jsx-runtime");
|
|
1171
|
-
var
|
|
1172
|
-
var
|
|
1173
|
-
var
|
|
1171
|
+
var jc = (e, t) => t.map((r) => ie(e, r) || {});
|
|
1172
|
+
var Uc = (e) => e.reduce((t, r) => i(i({}, r), t), {});
|
|
1173
|
+
var zc = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1174
1174
|
var ni = (e) => {
|
|
1175
1175
|
let t = (n, a) => {
|
|
1176
1176
|
let s = e.schema.allOf[n];
|
|
1177
|
-
r[n] = ie(a.model, s) || {}, o(r), e.onChange(b(i({}, a), { model:
|
|
1178
|
-
}, [r, o] = (0, oi.useState)(
|
|
1179
|
-
return (0, ke.jsxs)(ke.Fragment, { children: [e.schema.title && (0, ke.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ke.jsx)("p", { children: e.schema.description }), (0, ke.jsx)("div", { className: "row", children: e.schema.allOf.map((n, a) => (0, ke.jsx)("div", { className: (0, ri.default)(
|
|
1177
|
+
r[n] = ie(a.model, s) || {}, o(r), e.onChange(b(i({}, a), { model: Uc(r) }));
|
|
1178
|
+
}, [r, o] = (0, oi.useState)(jc(e.model, e.schema.allOf));
|
|
1179
|
+
return (0, ke.jsxs)(ke.Fragment, { children: [e.schema.title && (0, ke.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ke.jsx)("p", { children: e.schema.description }), (0, ke.jsx)("div", { className: "row", children: e.schema.allOf.map((n, a) => (0, ke.jsx)("div", { className: (0, ri.default)(zc(n.width)), children: (0, ke.jsx)(ue, { schema: n, model: r[a], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (s) => t(a, b(i({}, s), { model: s.model })), onPersistAsync: e.onPersistAsync }) }, a)) })] });
|
|
1180
1180
|
};
|
|
1181
1181
|
ni.defaultProps = { disabled: false };
|
|
1182
1182
|
var Ho = ni;
|
|
@@ -1190,12 +1190,12 @@ var require_main_min = __commonJS({
|
|
|
1190
1190
|
var he = (0, ai.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
|
|
1191
1191
|
var Re = require("react/jsx-runtime");
|
|
1192
1192
|
var si = (e) => {
|
|
1193
|
-
var
|
|
1194
|
-
let t =
|
|
1193
|
+
var l;
|
|
1194
|
+
let t = Hc(e.schema), r = i(i(i({}, t), e.validationMessages), e.schema.validationMessages), o = (e.submitted || !e.changed) && !!e.errors, n = !o && (e.submitted || e.changed && e.blurred) && !!((l = e.validations) != null && l.length), a = e.focused && e.schema.description && !n, s = !!e.infoMessage;
|
|
1195
1195
|
return (0, Re.jsxs)("div", { children: [o ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.errors }) : null, n ? (0, Re.jsx)(zr.InlineAlert, { type: "error", children: e.validations.map((u) => (0, Re.jsx)("div", { children: r[u] }, u)) }) : null, (a || s) && (0, Re.jsxs)(zr.InlineAlert, { type: "info", children: [a && (0, Re.jsx)("div", { children: e.schema.description }), s && (0, Re.jsx)("div", { children: e.infoMessage })] })] });
|
|
1196
1196
|
};
|
|
1197
1197
|
si.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1198
|
-
function
|
|
1198
|
+
function Hc(e) {
|
|
1199
1199
|
let { formatMessage: t, locale: r } = (0, ii.useIntl)(), o = { type: t(he.type), minimum: t(he.minimum, { minimum: e.minimum }), maximum: t(he.maximum, { maximum: e.maximum }), minLength: t(he.minLength, { minLength: e.minLength }), maxLength: t(he.maxLength, { maxLength: e.maxLength }), pattern: t(he.pattern), required: t(he.required) };
|
|
1200
1200
|
if (e.format === "date") {
|
|
1201
1201
|
let n = { pattern: t(he.patternDate), minimum: e.minimum ? t(he.minimumDate, { minimum: (0, qo.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(he.maximumDate, { maximum: (0, qo.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
@@ -1204,18 +1204,18 @@ var require_main_min = __commonJS({
|
|
|
1204
1204
|
return o;
|
|
1205
1205
|
}
|
|
1206
1206
|
var Be = si;
|
|
1207
|
-
async function
|
|
1207
|
+
async function mi(e, t) {
|
|
1208
1208
|
if (t)
|
|
1209
1209
|
return e;
|
|
1210
1210
|
if (e instanceof Blob)
|
|
1211
|
-
return
|
|
1211
|
+
return Aa(e);
|
|
1212
1212
|
throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function li(e) {
|
|
1215
1215
|
let t = e.data;
|
|
1216
1216
|
return i({ id: t }, e);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function ci(e) {
|
|
1219
1219
|
let t = e instanceof Error;
|
|
1220
1220
|
if (!(L(e) && "data" in e) && !t)
|
|
1221
1221
|
return E(e) ? e : void 0;
|
|
@@ -1237,39 +1237,39 @@ var require_main_min = __commonJS({
|
|
|
1237
1237
|
var It = require("react/jsx-runtime");
|
|
1238
1238
|
var bi = (e) => {
|
|
1239
1239
|
var C, D;
|
|
1240
|
-
let { onChange: t, schema: r } = e, o = Q(), n = hi(r), a = (0, tr.useMemo)(() => r.$id || Me(), [r.$id]), [s,
|
|
1241
|
-
|
|
1240
|
+
let { onChange: t, schema: r } = e, o = Q(), n = hi(r), a = (0, tr.useMemo)(() => r.$id || Me(), [r.$id]), [s, l] = (0, tr.useState)(false), [u, c] = (0, tr.useState)(() => qc(e.model || [])), d = wi(r.items.persistAsync), g = r.items.persistAsync.schema, f = Pt(g), m = async (T) => {
|
|
1241
|
+
l(true);
|
|
1242
1242
|
try {
|
|
1243
|
-
let P = await
|
|
1243
|
+
let P = await mi(T, f);
|
|
1244
1244
|
o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
|
|
1245
1245
|
let N = await d(P);
|
|
1246
|
-
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }),
|
|
1246
|
+
return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), li(N);
|
|
1247
1247
|
} catch (P) {
|
|
1248
|
-
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(
|
|
1248
|
+
return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(ci(P));
|
|
1249
1249
|
}
|
|
1250
1250
|
};
|
|
1251
1251
|
function p(T) {
|
|
1252
1252
|
if (va(T, u))
|
|
1253
1253
|
return;
|
|
1254
|
-
|
|
1254
|
+
c(T);
|
|
1255
1255
|
let N = gi(T).map((G) => G.id);
|
|
1256
1256
|
t({ model: N, triggerSchema: r, triggerModel: N });
|
|
1257
1257
|
}
|
|
1258
|
-
let S = gi(u).map((T) => T.id), h =
|
|
1259
|
-
return (0, It.jsxs)("div", { className: (0, Si.default)("form-group", { "has-error": F }), children: [(0, It.jsx)("label", { className: "d-block control-label", htmlFor: a, children: e.schema.title }), (0, It.jsx)(Hr.UploadInput, i({},
|
|
1258
|
+
let S = gi(u).map((T) => T.id), h = Ot(S, r, e.required), F = !!e.errors || (s || e.submitted) && !!h.length, w = "accepts" in g && g.accepts, v = "maxSize" in g && g.maxSize, O = b(i(i({ multiple: true, className: "form-control", files: u, fileInputName: a, id: a }, w ? { fileTypes: w } : void 0), v ? { sizeLimit: Ir(v) } : void 0), { sizeLimitErrorMessage: ((C = g.validationMessages) == null ? void 0 : C.maxSize) || n.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((D = e.schema.validationMessages) == null ? void 0 : D.maxItems) || n.maxItemsErrorMessage, uploadButtonTitle: g.title, description: g.description, disabled: e.disabled, onUploadFile: (T) => m(T.get(a)), onFilesChange: p, onDeleteFile: () => Promise.resolve() });
|
|
1259
|
+
return (0, It.jsxs)("div", { className: (0, Si.default)("form-group", { "has-error": F }), children: [(0, It.jsx)("label", { className: "d-block control-label", htmlFor: a, children: e.schema.title }), (0, It.jsx)(Hr.UploadInput, i({}, O)), (0, It.jsx)(Be, { changed: s, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: h, validationMessages: $c(r, !!e.required, n), infoMessage: null, focused: false, blurred: true })] });
|
|
1260
1260
|
};
|
|
1261
1261
|
bi.defaultProps = { errors: null, required: false };
|
|
1262
1262
|
var Go = bi;
|
|
1263
1263
|
function gi(e) {
|
|
1264
1264
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return e.map((t) =>
|
|
1266
|
+
function qc(e) {
|
|
1267
|
+
return e.map((t) => Gc(t) ? { id: t, status: Hr.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function Gc(e) {
|
|
1270
1270
|
return R(e) || E(e);
|
|
1271
1271
|
}
|
|
1272
|
-
function $
|
|
1272
|
+
function $c(e, t, r) {
|
|
1273
1273
|
let { minItems: o, maxItems: n } = e;
|
|
1274
1274
|
return i(i(i({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }), n && { maxItems: r.maxItemsErrorMessage });
|
|
1275
1275
|
}
|
|
@@ -1279,18 +1279,18 @@ var require_main_min = __commonJS({
|
|
|
1279
1279
|
var Ei = require("react-intl");
|
|
1280
1280
|
var Fi = require("@transferwise/components");
|
|
1281
1281
|
var xi = require("react/jsx-runtime");
|
|
1282
|
-
var Ci = ({ item: e, onClick: t }) => (0, xi.jsx)(Fi.NavigationOption, { onClick: t, media:
|
|
1283
|
-
var
|
|
1284
|
-
var dt = (0,
|
|
1282
|
+
var Ci = ({ item: e, onClick: t }) => (0, xi.jsx)(Fi.NavigationOption, { onClick: t, media: mt(e), title: e.title, content: e.description });
|
|
1283
|
+
var Ai = require("react-intl");
|
|
1284
|
+
var dt = (0, Ai.defineMessages)({ addItemTitle: { id: "dynamicFlows.ArraySchema.addItemTitle", defaultMessage: "Add Item", description: "Label on the button used to open a form to add an item" }, addItem: { id: "dynamicFlows.ArraySchema.addItem", defaultMessage: "Save", description: "Label on the add button used to submit a form that adds an item" }, editItem: { id: "dynamicFlows.ArraySchema.editItem", defaultMessage: "Save", description: "Label on the edit button used to submit a form that edits an item" }, removeItem: { id: "dynamicFlows.ArraySchema.removeItem", defaultMessage: "Remove", description: "Label on the remove button used to confirm deletion of an item" } });
|
|
1285
1285
|
var vi = require("react-intl");
|
|
1286
1286
|
var Pi = require("react/jsx-runtime");
|
|
1287
|
-
var
|
|
1288
|
-
let { formatMessage:
|
|
1289
|
-
return (0, Pi.jsx)(qr, { step: u, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: n, formErrors: o, globalError: null, onAction: (
|
|
1290
|
-
s(
|
|
1287
|
+
var _c = ({ type: e, schema: t, model: r, errors: o, submitted: n, onModelChange: a, onAction: s }) => {
|
|
1288
|
+
let { formatMessage: l } = (0, vi.useIntl)(), u = { layout: [{ type: "form", schema: t.items }, { type: "button", control: "primary", action: { url: e, title: l(e === "add" ? dt.addItem : dt.editItem) } }, { type: "button", context: "negative", action: { url: "remove", title: l(dt.removeItem) } }], title: "", actions: [], schemas: [] };
|
|
1289
|
+
return (0, Pi.jsx)(qr, { step: u, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: n, formErrors: o, globalError: null, onAction: (c) => {
|
|
1290
|
+
s(c.url);
|
|
1291
1291
|
}, onModelChange: a });
|
|
1292
1292
|
};
|
|
1293
|
-
var
|
|
1293
|
+
var Oi = _c;
|
|
1294
1294
|
var Gr = (e, t) => {
|
|
1295
1295
|
let r = rr(e, t);
|
|
1296
1296
|
if (r >= 0)
|
|
@@ -1308,47 +1308,47 @@ var require_main_min = __commonJS({
|
|
|
1308
1308
|
function Dt(e, t) {
|
|
1309
1309
|
if (t == null)
|
|
1310
1310
|
return null;
|
|
1311
|
-
let r = e.oneOf.map((o) =>
|
|
1311
|
+
let r = e.oneOf.map((o) => Wc(o).reduce((n, [a, s]) => ye(s) && s.const === t[a] ? n + 2 : Jt(s) && typeof t[a] != "undefined" ? n + 1 : n, 0));
|
|
1312
1312
|
return r.every((o) => o === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function Wc(e) {
|
|
1315
1315
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1316
1316
|
}
|
|
1317
1317
|
var $o = (e, t, r = {}) => {
|
|
1318
|
-
let { defaultTitle: o = "", defaultDescription: n = "", defaultIcon: a, defaultImage: s } = r,
|
|
1318
|
+
let { defaultTitle: o = "", defaultDescription: n = "", defaultIcon: a, defaultImage: s } = r, l = Ye({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Mi }), u = Ye({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Mi }), c = Ye({ schema: e, model: t, providesProp: "providesIcon", getValueFromSchema: (g) => {
|
|
1319
1319
|
var f;
|
|
1320
1320
|
return (f = g.icon) != null ? f : null;
|
|
1321
1321
|
} }), d = Ye({ schema: e, model: t, providesProp: "providesImage", getValueFromSchema: (g) => {
|
|
1322
1322
|
var f;
|
|
1323
1323
|
return (f = g.image) != null ? f : null;
|
|
1324
1324
|
} });
|
|
1325
|
-
return { value: t, title:
|
|
1325
|
+
return { value: t, title: l || o, description: u || n, icon: c || a, image: d || s };
|
|
1326
1326
|
};
|
|
1327
1327
|
var Ye = (e) => {
|
|
1328
1328
|
let { schema: t, model: r, providesProp: o, getValueFromSchema: n } = e;
|
|
1329
|
-
if (
|
|
1329
|
+
if (Yc(t.summary, o))
|
|
1330
1330
|
return n(t, r);
|
|
1331
1331
|
switch (it(t)) {
|
|
1332
1332
|
case "object":
|
|
1333
|
-
return
|
|
1333
|
+
return Kc(e);
|
|
1334
1334
|
case "oneOf":
|
|
1335
|
-
return
|
|
1335
|
+
return Jc(e);
|
|
1336
1336
|
case "allOf":
|
|
1337
|
-
return
|
|
1337
|
+
return Xc(e);
|
|
1338
1338
|
default:
|
|
1339
1339
|
return null;
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
-
var
|
|
1342
|
+
var Kc = (e) => {
|
|
1343
1343
|
let { schema: t, model: r } = e, o = t;
|
|
1344
1344
|
for (let n in o.properties) {
|
|
1345
|
-
let a = o.properties[n], s = $(r) && n in r ? r[n] : null,
|
|
1346
|
-
if (
|
|
1347
|
-
return
|
|
1345
|
+
let a = o.properties[n], s = $(r) && n in r ? r[n] : null, l = Ye(b(i({}, e), { schema: a, model: s }));
|
|
1346
|
+
if (l)
|
|
1347
|
+
return l;
|
|
1348
1348
|
}
|
|
1349
1349
|
return null;
|
|
1350
1350
|
};
|
|
1351
|
-
var
|
|
1351
|
+
var Jc = (e) => {
|
|
1352
1352
|
let { schema: t, model: r } = e;
|
|
1353
1353
|
if (at(t)) {
|
|
1354
1354
|
if (!$(r))
|
|
@@ -1362,7 +1362,7 @@ var require_main_min = __commonJS({
|
|
|
1362
1362
|
let o = t, n = Gr(o, r);
|
|
1363
1363
|
return n === null || n < 0 ? null : Ye(b(i({}, e), { schema: o.oneOf[n] }));
|
|
1364
1364
|
};
|
|
1365
|
-
var
|
|
1365
|
+
var Xc = (e) => {
|
|
1366
1366
|
let { schema: t } = e, r = t;
|
|
1367
1367
|
for (let o of r.allOf) {
|
|
1368
1368
|
let n = Ye(b(i({}, e), { schema: o }));
|
|
@@ -1372,29 +1372,29 @@ var require_main_min = __commonJS({
|
|
|
1372
1372
|
return null;
|
|
1373
1373
|
};
|
|
1374
1374
|
var Mi = (e, t) => ye(e) ? e.title ? e.title : E(e.const) ? e.const : null : Tr(t) ? t : null;
|
|
1375
|
-
var
|
|
1375
|
+
var Yc = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1376
1376
|
var ge = require("react/jsx-runtime");
|
|
1377
|
-
var
|
|
1378
|
-
let [a, s] = (0, $r.useState)(null), [
|
|
1377
|
+
var Zc = ({ schema: e, model: t, errors: r, submitted: o, onChange: n }) => {
|
|
1378
|
+
let [a, s] = (0, $r.useState)(null), [l, u] = (0, $r.useState)(() => {
|
|
1379
1379
|
if (L(t) && !z(t))
|
|
1380
1380
|
throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
|
|
1381
1381
|
return t ? t.map((h) => $o(e.items, h, e == null ? void 0 : e.summary)) : null;
|
|
1382
|
-
}), [
|
|
1382
|
+
}), [c, d] = (0, $r.useState)({ item: null, model: null }), g = (h) => {
|
|
1383
1383
|
let F = h ? h.map(({ value: w }) => w) : null;
|
|
1384
1384
|
n({ model: F, triggerSchema: e.items, triggerModel: F });
|
|
1385
1385
|
}, f = () => {
|
|
1386
1386
|
s("add");
|
|
1387
|
-
},
|
|
1387
|
+
}, m = (h) => {
|
|
1388
1388
|
d({ item: h, model: h.value }), s("edit");
|
|
1389
1389
|
}, p = (h) => {
|
|
1390
|
-
let F = h === "remove" ? null : $o(e.items,
|
|
1390
|
+
let F = h === "remove" ? null : $o(e.items, c.model, e == null ? void 0 : e.summary), w = Qc(h, { originalItem: c.item, updatedItem: F, itemSummaries: l });
|
|
1391
1391
|
u(w), g(w), d({ item: null, model: null }), s(null);
|
|
1392
1392
|
}, y = () => {
|
|
1393
1393
|
d({ item: null, model: null }), s(null);
|
|
1394
1394
|
}, { formatMessage: S } = (0, Ei.useIntl)();
|
|
1395
|
-
return (0, ge.jsxs)(ge.Fragment, { children: [e.title && (0, ge.jsx)(Lt.Header, { title: e.title }),
|
|
1395
|
+
return (0, ge.jsxs)(ge.Fragment, { children: [e.title && (0, ge.jsx)(Lt.Header, { title: e.title }), l && l.map((h) => (0, ge.jsx)(Ci, { item: h, onClick: () => m(h) }, JSON.stringify(h))), (0, ge.jsx)(Lt.NavigationOption, { onClick: f, media: (0, ge.jsx)(ki.Plus, {}), title: e.addItemTitle || S(dt.addItemTitle) }), (0, ge.jsx)(Lt.Modal, { open: a !== null, onClose: y, title: (a === "add" ? e.addItemTitle : e.editItemTitle) || S(dt.addItemTitle), body: (0, ge.jsx)(Oi, { type: a != null ? a : "add", schema: e, model: c.model, errors: r, submitted: o, onAction: p, onModelChange: ({ model: h }) => d(b(i({}, c), { model: h })) }) })] });
|
|
1396
1396
|
};
|
|
1397
|
-
var
|
|
1397
|
+
var Qc = (e, { originalItem: t, updatedItem: r, itemSummaries: o }) => {
|
|
1398
1398
|
if (e === "remove")
|
|
1399
1399
|
return (o || []).filter((n) => n !== t);
|
|
1400
1400
|
if (!r)
|
|
@@ -1408,13 +1408,13 @@ var require_main_min = __commonJS({
|
|
|
1408
1408
|
return null;
|
|
1409
1409
|
}
|
|
1410
1410
|
};
|
|
1411
|
-
var Ii =
|
|
1411
|
+
var Ii = Zc;
|
|
1412
1412
|
var _o = require("react/jsx-runtime");
|
|
1413
1413
|
var Di = (e) => {
|
|
1414
1414
|
let { schema: t } = e;
|
|
1415
1415
|
if (Pa(t))
|
|
1416
1416
|
return (0, _o.jsx)(Go, b(i({}, e), { schema: t }));
|
|
1417
|
-
if (
|
|
1417
|
+
if (Oe(t))
|
|
1418
1418
|
return (0, _o.jsx)(Ii, b(i({}, e), { schema: t }));
|
|
1419
1419
|
throw new Error("Invalid array list schema");
|
|
1420
1420
|
};
|
|
@@ -1423,7 +1423,7 @@ var require_main_min = __commonJS({
|
|
|
1423
1423
|
var Ni = require("react/jsx-runtime");
|
|
1424
1424
|
var Ti = (e) => {
|
|
1425
1425
|
let { schema: t } = e;
|
|
1426
|
-
if (
|
|
1426
|
+
if (Oe(t))
|
|
1427
1427
|
return (0, Ni.jsx)(Li, i({}, e));
|
|
1428
1428
|
throw new Error("Not implemented");
|
|
1429
1429
|
};
|
|
@@ -1434,15 +1434,15 @@ var require_main_min = __commonJS({
|
|
|
1434
1434
|
var Ve = require("react/jsx-runtime");
|
|
1435
1435
|
var ed = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1436
1436
|
var Bi = (e) => {
|
|
1437
|
-
let [t, r] = (0, _r.useState)(() => i({}, ie(e.model, e.schema))), o = (
|
|
1438
|
-
d.model !== null ? t[
|
|
1439
|
-
}, n = (
|
|
1437
|
+
let [t, r] = (0, _r.useState)(() => i({}, ie(e.model, e.schema))), o = (c, d) => {
|
|
1438
|
+
d.model !== null ? t[c] = d.model : delete t[c], r(t), e.onChange(b(i({}, d), { model: t }));
|
|
1439
|
+
}, n = (c) => e.schema.required && e.schema.required.includes(c);
|
|
1440
1440
|
(0, _r.useEffect)(() => {
|
|
1441
|
-
let
|
|
1442
|
-
r(
|
|
1441
|
+
let c = ie(t, e.schema) || {};
|
|
1442
|
+
r(c), Ke(c, t) || e.onChange({ model: c, triggerSchema: e.schema, triggerModel: c });
|
|
1443
1443
|
}, [e.schema]);
|
|
1444
|
-
let a = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (
|
|
1445
|
-
return (0, Ve.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, Ve.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, Ve.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, Ve.jsx)(se, { component: e.schema.alert }), (0, Ve.jsx)("div", { className: "row", children:
|
|
1444
|
+
let a = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (c) => typeof e.schema.properties[c] != "undefined", l = Array.from(a).filter(s), u = e.errors;
|
|
1445
|
+
return (0, Ve.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, Ve.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, Ve.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, Ve.jsx)(se, { component: e.schema.alert }), (0, Ve.jsx)("div", { className: "row", children: l.map((c) => (0, Ve.jsx)("div", { className: (0, Ri.default)(ed(e.schema.properties[c].width)), children: (0, Ve.jsx)(ue, { schema: e.schema.properties[c], model: e.model && e.model[c], errors: u && u[c], submitted: e.submitted, required: n(c), disabled: e.disabled, onChange: (d) => o(c, d), onPersistAsync: e.onPersistAsync }) }, c)) })] });
|
|
1446
1446
|
};
|
|
1447
1447
|
Bi.defaultProps = { hideTitle: false, disabled: false };
|
|
1448
1448
|
var or = Bi;
|
|
@@ -1567,51 +1567,51 @@ var require_main_min = __commonJS({
|
|
|
1567
1567
|
}
|
|
1568
1568
|
render() {
|
|
1569
1569
|
var G;
|
|
1570
|
-
let { name: r, placeholder: o, step: n, countryCode: a, type: s, options:
|
|
1570
|
+
let { name: r, placeholder: o, step: n, countryCode: a, type: s, options: l, disabled: u, readOnly: c, required: d, minLength: g, maxLength: f, min: m, max: p, searchPlaceholder: y, searchValue: S, onSearchChange: h, size: F, uploadProps: w, label: v, monthFormat: O, id: C, minDate: D, maxDate: T, value: P, mode: N } = this.props;
|
|
1571
1571
|
switch (s) {
|
|
1572
1572
|
case B.RADIO:
|
|
1573
|
-
return (0, X.jsx)(W.RadioGroup, { radios:
|
|
1573
|
+
return (0, X.jsx)(W.RadioGroup, { radios: l.map(this.mapOption), name: r, selectedValue: Jo(P, { coerceValue: true }), onChange: this.handleOnChange });
|
|
1574
1574
|
case B.CHECKBOX:
|
|
1575
|
-
return (0, X.jsx)(W.Checkbox, { checked: zi(P, { coerceValue: true }), disabled: u, label: v, required: d, readOnly:
|
|
1575
|
+
return (0, X.jsx)(W.Checkbox, { checked: zi(P, { coerceValue: true }), disabled: u, label: v, required: d, readOnly: c, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1576
1576
|
case B.SELECT: {
|
|
1577
|
-
let
|
|
1578
|
-
return (0, X.jsx)(W.Select, { id: C, selected: this.getSelectedOption(
|
|
1577
|
+
let A = l.length >= 20;
|
|
1578
|
+
return (0, X.jsx)(W.Select, { id: C, selected: this.getSelectedOption(l), options: l, search: A, required: d, disabled: u, placeholder: o, searchPlaceholder: y, searchValue: S, onChange: (V) => {
|
|
1579
1579
|
var k;
|
|
1580
1580
|
this.setState({ selectedOption: V != null ? V : void 0 }), this.props.onChange((k = V == null ? void 0 : V.value) != null ? k : null);
|
|
1581
|
-
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange:
|
|
1581
|
+
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: A ? h : void 0 });
|
|
1582
1582
|
}
|
|
1583
1583
|
case B.TAB:
|
|
1584
|
-
return (0, X.jsx)(W.Tabs, { selected: ((G = this.getSelectedOption(
|
|
1584
|
+
return (0, X.jsx)(W.Tabs, { selected: ((G = this.getSelectedOption(l)) == null ? void 0 : G.value) || 0, tabs: l.map((A) => ({ title: A.label, content: (0, X.jsx)(X.Fragment, {}), disabled: A.disabled || false })), name: C, onTabSelect: (A) => {
|
|
1585
1585
|
let V = !!this.state.selectedOption;
|
|
1586
|
-
this.setState({ selectedOption:
|
|
1586
|
+
this.setState({ selectedOption: l.find((k) => k.value === A) }), this.props.onChange(A, V ? "user" : "init");
|
|
1587
1587
|
} });
|
|
1588
1588
|
case B.NUMBER:
|
|
1589
|
-
return (0, X.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: C, max: p, min:
|
|
1590
|
-
this.props.onChange(parseFloat(
|
|
1591
|
-
}, onFocus: this.handleOnFocus, onWheel: (
|
|
1592
|
-
|
|
1589
|
+
return (0, X.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: C, max: p, min: m, placeholder: o, readOnly: c, required: d, step: n, type: "number", value: Jo(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (A) => {
|
|
1590
|
+
this.props.onChange(parseFloat(A.target.value));
|
|
1591
|
+
}, onFocus: this.handleOnFocus, onWheel: (A) => {
|
|
1592
|
+
A.target instanceof HTMLElement && A.target.blur();
|
|
1593
1593
|
} });
|
|
1594
1594
|
case B.HIDDEN:
|
|
1595
1595
|
return (0, X.jsx)("input", { type: "hidden", name: r, value: Tt(P, { coerceValue: true }), id: C });
|
|
1596
1596
|
case B.PASSWORD:
|
|
1597
|
-
return (0, X.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: C, placeholder: o, readOnly:
|
|
1597
|
+
return (0, X.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: u, id: C, placeholder: o, readOnly: c, required: d, type: "password", value: Tt(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus });
|
|
1598
1598
|
case B.DATE:
|
|
1599
1599
|
case B.DATETIME:
|
|
1600
|
-
return (0, X.jsx)(W.DateInput, { disabled: u, size: F, value: Hi(P), mode: N, monthFormat:
|
|
1600
|
+
return (0, X.jsx)(W.DateInput, { disabled: u, size: F, value: Hi(P), mode: N, monthFormat: O, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1601
1601
|
case B.DATELOOKUP:
|
|
1602
|
-
return (0, X.jsx)(W.DateLookup, { value: qi(P), min: D, max: T, placeholder: o, monthFormat:
|
|
1603
|
-
this.handleOnChange(Ca(
|
|
1602
|
+
return (0, X.jsx)(W.DateLookup, { value: qi(P), min: D, max: T, placeholder: o, monthFormat: O, disabled: u, onChange: (A) => {
|
|
1603
|
+
this.handleOnChange(Ca(A));
|
|
1604
1604
|
}, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1605
1605
|
case B.TEL:
|
|
1606
1606
|
return (0, X.jsx)(W.PhoneNumberInput, { disabled: u, countryCode: a, placeholder: o, required: d, searchPlaceholder: y, size: F, initialValue: Tt(P), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1607
1607
|
case B.TEXTAREA: {
|
|
1608
|
-
let
|
|
1609
|
-
return this.props.displayPattern ? (0, X.jsx)(W.TextareaWithDisplayFormat, b(i({ displayPattern: this.props.displayPattern },
|
|
1608
|
+
let A = { className: "form-control tw-form-control", id: C, name: r, placeholder: o, value: Tt(P, { coerceValue: true }), readOnly: c, required: d, minLength: g, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: u, autoComplete: this.getAutocompleteStatus() };
|
|
1609
|
+
return this.props.displayPattern ? (0, X.jsx)(W.TextareaWithDisplayFormat, b(i({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, X.jsx)("textarea", b(i({}, A), { onChange: this.handleInputOnChange }));
|
|
1610
1610
|
}
|
|
1611
1611
|
case B.FILE:
|
|
1612
1612
|
case B.UPLOAD:
|
|
1613
|
-
return (0, X.jsx)(W.Upload, b(i({}, w), { usAccept: w.usAccept || "*", usDisabled: w.usDisabled || u, onSuccess: (
|
|
1614
|
-
this.handleOnChange(
|
|
1613
|
+
return (0, X.jsx)(W.Upload, b(i({}, w), { usAccept: w.usAccept || "*", usDisabled: w.usDisabled || u, onSuccess: (A) => {
|
|
1614
|
+
this.handleOnChange(A);
|
|
1615
1615
|
}, onFailure: () => {
|
|
1616
1616
|
this.handleOnChange(null);
|
|
1617
1617
|
}, onCancel: () => {
|
|
@@ -1619,8 +1619,8 @@ var require_main_min = __commonJS({
|
|
|
1619
1619
|
} }));
|
|
1620
1620
|
case B.TEXT:
|
|
1621
1621
|
default: {
|
|
1622
|
-
let
|
|
1623
|
-
return this.props.displayPattern ? (0, X.jsx)(W.InputWithDisplayFormat, b(i({ displayPattern: this.props.displayPattern },
|
|
1622
|
+
let A = { type: "text", className: "form-control", id: C, name: r, placeholder: o, value: Tt(P, { coerceValue: true }), readOnly: c, required: d, minLength: g, maxLength: f, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: u, autoComplete: this.getAutocompleteStatus() };
|
|
1623
|
+
return this.props.displayPattern ? (0, X.jsx)(W.InputWithDisplayFormat, b(i({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, X.jsx)("input", b(i({}, A), { onChange: this.handleInputOnChange }));
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
@@ -1675,26 +1675,26 @@ var require_main_min = __commonJS({
|
|
|
1675
1675
|
}
|
|
1676
1676
|
return e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1677
1677
|
};
|
|
1678
|
-
var
|
|
1678
|
+
var md = (e, t) => e.oneOf ? e.oneOf.map((r) => $i(r, t)) : null;
|
|
1679
1679
|
var Ji = (e) => {
|
|
1680
|
-
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: s, onBlur:
|
|
1680
|
+
let { id: t, schema: r, value: o, disabled: n, onChange: a, onFocus: s, onBlur: l, onSearchChange: u } = e, c = xt(), d = (h) => sd(r.type) && (M(h) || J(h)) ? "" : h, g = (h, F) => {
|
|
1681
1681
|
a($e(h, r), F);
|
|
1682
1682
|
}, f = Yo(r);
|
|
1683
1683
|
(0, Ki.useEffect)(() => {
|
|
1684
|
-
|
|
1685
|
-
}, [JSON.stringify(r),
|
|
1686
|
-
let
|
|
1684
|
+
ld(r, c, f);
|
|
1685
|
+
}, [JSON.stringify(r), c, f]);
|
|
1686
|
+
let m = r.values || md(r, f), p = { onFocus: s, onBlur: l, onSearchChange: u, onChange: g }, y = d(o), S = { id: t, name: t, label: r.title, options: m || [], placeholder: r.placeholder, autoComplete: !r.help, disabled: n || r.disabled, displayPattern: r.displayFormat, uploadProps: Kr(r) };
|
|
1687
1687
|
return (0, Xi.jsx)(Se, i(i({ type: f, value: y }, p), S));
|
|
1688
1688
|
};
|
|
1689
1689
|
Ji.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1690
|
-
var
|
|
1690
|
+
var ld = (e, t, r) => {
|
|
1691
1691
|
fe(e) && e.oneOf.length === 2 && !e.control && t.warning("Deprecation warning", 'A oneOf schema with 2 options and no control type currently renders as a "radio" but will be changed to render as a "select". Please specify control radio to retain the existing behaviour.'), r === "file" && t.warning("Deprecation warning", "Please use a persist-async blob schema instead of string with base64url for file uploads. The base64url does not perform well on low end devices. Support for this schema will be removed in a later release."), e.values && t.warning("Deprecated schema", "Schema.values is a legacy approach. Please use oneOf.");
|
|
1692
1692
|
};
|
|
1693
1693
|
var nr = Ji;
|
|
1694
1694
|
var oe = require("react/jsx-runtime");
|
|
1695
1695
|
var Zi = (e) => {
|
|
1696
|
-
let t = Q(), [r, o] = (0, Ee.useState)(false), [n, a] = (0, Ee.useState)(false), [s,
|
|
1697
|
-
|
|
1696
|
+
let t = Q(), [r, o] = (0, Ee.useState)(false), [n, a] = (0, Ee.useState)(false), [s, l] = (0, Ee.useState)(false), u = (0, Ee.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), [c, d] = (0, Ee.useState)(Gr(e.schema, e.model)), [g, f] = (0, Ee.useState)(pd(e.model, e.schema.oneOf)), m = Ia(t, 200), p = (C) => {
|
|
1697
|
+
m("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: C.length });
|
|
1698
1698
|
};
|
|
1699
1699
|
if ((0, Ee.useEffect)(() => {
|
|
1700
1700
|
let C = rr(e.schema, e.model), D = rr(e.schema, e.schema.default);
|
|
@@ -1706,7 +1706,7 @@ var require_main_min = __commonJS({
|
|
|
1706
1706
|
}, S = () => {
|
|
1707
1707
|
a(true);
|
|
1708
1708
|
}, h = () => {
|
|
1709
|
-
a(false),
|
|
1709
|
+
a(false), l(true);
|
|
1710
1710
|
}, F = (C, D) => {
|
|
1711
1711
|
d(C);
|
|
1712
1712
|
let T = e.schema.oneOf[C];
|
|
@@ -1716,10 +1716,10 @@ var require_main_min = __commonJS({
|
|
|
1716
1716
|
} else
|
|
1717
1717
|
e.onChange({ model: g[C], triggerSchema: T, triggerModel: g[C], type: D });
|
|
1718
1718
|
D !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: T == null ? void 0 : T.analyticsId });
|
|
1719
|
-
}, w = fd(e.schema), v = dd(e,
|
|
1720
|
-
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 || ye(e.schema.oneOf[0])) && (0, oe.jsxs)(oe.Fragment, { children: [(0, oe.jsxs)("div", { className: (0, Yi.default)(
|
|
1719
|
+
}, w = fd(e.schema), v = dd(e, c), O = { "form-group": true, "has-error": !r && e.errors && !At(e.errors) || (e.submitted || r && s) && v.length };
|
|
1720
|
+
return (0, oe.jsxs)(oe.Fragment, { children: [(e.schema.oneOf.length > 1 || ye(e.schema.oneOf[0])) && (0, oe.jsxs)(oe.Fragment, { children: [(0, oe.jsxs)("div", { className: (0, Yi.default)(O), children: [cd(e.schema, u), (0, oe.jsx)(nr, { id: u, schema: w, value: c, disabled: e.disabled, onChange: F, onFocus: S, onBlur: h, onSearchChange: p }), (0, oe.jsx)(Be, { changed: r, focused: n, blurred: s, submitted: e.submitted, errors: ud(e.errors), schema: e.schema, validations: v, infoMessage: null })] }), e.schema.alert && (0, oe.jsx)(se, { component: e.schema.alert })] }), Jt(e.schema.oneOf[c]) && (0, oe.jsx)(ue, { schema: e.schema.oneOf[c], model: g[c], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (C) => y(c, C), onPersistAsync: e.onPersistAsync })] });
|
|
1721
1721
|
};
|
|
1722
|
-
function
|
|
1722
|
+
function cd(e, t) {
|
|
1723
1723
|
let r = e.help ? (0, oe.jsx)(je, { help: e.help }) : null, o = ye(e.oneOf[0]) ? (0, oe.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) : (0, oe.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] });
|
|
1724
1724
|
return e.title ? o : r;
|
|
1725
1725
|
}
|
|
@@ -1737,8 +1737,8 @@ var require_main_min = __commonJS({
|
|
|
1737
1737
|
return b(i({}, e), { oneOf: e.oneOf.map(yd) });
|
|
1738
1738
|
}
|
|
1739
1739
|
function yd(e, t) {
|
|
1740
|
-
let { title: r, description: o, disabled: n = false, icon: a, image: s, keywords:
|
|
1741
|
-
return { title: r, description: o, disabled: n, icon: a, image: s, const: t, keywords:
|
|
1740
|
+
let { title: r, description: o, disabled: n = false, icon: a, image: s, keywords: l } = e;
|
|
1741
|
+
return { title: r, description: o, disabled: n, icon: a, image: s, const: t, keywords: l };
|
|
1742
1742
|
}
|
|
1743
1743
|
Zi.defaultProps = { required: false, disabled: false };
|
|
1744
1744
|
var Zo = Zi;
|
|
@@ -1748,19 +1748,19 @@ var require_main_min = __commonJS({
|
|
|
1748
1748
|
var Qi = require("react");
|
|
1749
1749
|
var ts = require("react/jsx-runtime");
|
|
1750
1750
|
var es = (e) => {
|
|
1751
|
-
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: n, idProperty: a, usAccept: s, maxSize:
|
|
1752
|
-
return (0, ts.jsx)(Jr.UploadInput, { id: t, fileInputName: o.fileInputName, files:
|
|
1751
|
+
let { id: t, httpClient: r = fetch, httpOptions: o, fileId: n, idProperty: a, usAccept: s, maxSize: l, usPlaceholder: u, onSuccess: c, onFailure: d, onCancel: g } = e, f = Q(), m = (0, Qi.useMemo)(() => n ? [{ id: n, status: Jr.Status.SUCCEEDED }] : [], [n]), p = (y) => (f("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(`${o.url}`, { method: o.method || "POST", body: y }).then((S) => S.ok ? (c && c(S.clone()), S.json().then((h) => ({ id: h[a] }))) : (d && d({ response: S }), Promise.reject())));
|
|
1752
|
+
return (0, ts.jsx)(Jr.UploadInput, { id: t, fileInputName: o.fileInputName, files: m, uploadButtonTitle: e.usLabel, sizeLimit: l ? Ir(l) : void 0, fileTypes: s, description: u, onUploadFile: p, onDeleteFile: (y) => (g && g(), Promise.resolve()) });
|
|
1753
1753
|
};
|
|
1754
1754
|
var ar = require("react/jsx-runtime");
|
|
1755
1755
|
var os = (e) => {
|
|
1756
|
-
let [t, r] = (0, pt.useState)({}), [o, n] = (0, pt.useState)(null), [a, s] = (0, pt.useState)([]), [
|
|
1756
|
+
let [t, r] = (0, pt.useState)({}), [o, n] = (0, pt.useState)(null), [a, s] = (0, pt.useState)([]), [l, u] = (0, pt.useState)(false), c = ee(), d = Q();
|
|
1757
1757
|
(0, pt.useEffect)(() => {
|
|
1758
1758
|
e.submitted && s(_e(e.model, e.schema, !!e.required));
|
|
1759
1759
|
}, [e.model, e.submitted]);
|
|
1760
1760
|
let f = async (w, v) => {
|
|
1761
|
-
let
|
|
1761
|
+
let O = await w.json(), C = tn(e.schema.persistAsync.idProperty, O);
|
|
1762
1762
|
e.onChange({ model: C, triggerSchema: e.schema, triggerModel: C }), u(true), d("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
|
|
1763
|
-
},
|
|
1763
|
+
}, m = async (w) => {
|
|
1764
1764
|
if (w.response && xr(w.response.status)) {
|
|
1765
1765
|
let v = await w.response.json();
|
|
1766
1766
|
r(v.validation || {}), n([e.schema.persistAsync.param]);
|
|
@@ -1768,8 +1768,8 @@ var require_main_min = __commonJS({
|
|
|
1768
1768
|
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true), d("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
|
|
1769
1769
|
}, p = () => {
|
|
1770
1770
|
n(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), u(true);
|
|
1771
|
-
}, { url: y, method: S } = e.schema.persistAsync, h = o || a, F = { "form-group": true, "has-error": (e.submitted ||
|
|
1772
|
-
return (0, ar.jsxs)("div", { className: (0, rs.default)(F), children: [(0, ar.jsx)(es, i({ id: e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, fileId: e.model, idProperty: e.schema.persistAsync.idProperty, animationDelay: 0, maxSize: e.schema.persistAsync.schema.maxSize, usLabel: e.schema.title || e.schema.persistAsync.schema.title, usPlaceholder: e.schema.description || e.schema.persistAsync.schema.description, httpOptions: { url: y, method: S, fileInputName: e.schema.persistAsync.param }, httpClient:
|
|
1771
|
+
}, { url: y, method: S } = e.schema.persistAsync, h = o || a, F = { "form-group": true, "has-error": (e.submitted || l) && !!h.length };
|
|
1772
|
+
return (0, ar.jsxs)("div", { className: (0, rs.default)(F), children: [(0, ar.jsx)(es, i({ id: e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, fileId: e.model, idProperty: e.schema.persistAsync.idProperty, animationDelay: 0, maxSize: e.schema.persistAsync.schema.maxSize, usLabel: e.schema.title || e.schema.persistAsync.schema.title, usPlaceholder: e.schema.description || e.schema.persistAsync.schema.description, httpOptions: { url: y, method: S, fileInputName: e.schema.persistAsync.param }, httpClient: c, onSuccess: f, onFailure: m, onCancel: p }, Kr(e.schema.persistAsync.schema))), (0, ar.jsx)(Be, { blurred: true, focused: false, changed: l, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: h, validationMessages: i({ required: "Value is required..." }, t), infoMessage: null })] });
|
|
1773
1773
|
};
|
|
1774
1774
|
os.defaultProps = { required: false };
|
|
1775
1775
|
var en = os;
|
|
@@ -1788,29 +1788,29 @@ var require_main_min = __commonJS({
|
|
|
1788
1788
|
var is = require("@transferwise/components");
|
|
1789
1789
|
var nn = require("react/jsx-runtime");
|
|
1790
1790
|
var ss = (e) => {
|
|
1791
|
-
let { id: t, selection: r, setSelection: o } = e, { promoted: n, other: a, checkedMeans: s } = e.promotion,
|
|
1792
|
-
return (0, nn.jsx)("div", { className: "form-group", children: (0, nn.jsx)(is.Checkbox, { id: t, label:
|
|
1793
|
-
o(d ?
|
|
1791
|
+
let { id: t, selection: r, setSelection: o } = e, { promoted: n, other: a, checkedMeans: s } = e.promotion, l = s === "other" ? a.title : (n == null ? void 0 : n.title) || e.promotedOneOf.title, u = s === "other" ? "other" : "promoted", c = s === "other" ? "promoted" : "other", d = r === u;
|
|
1792
|
+
return (0, nn.jsx)("div", { className: "form-group", children: (0, nn.jsx)(is.Checkbox, { id: t, label: l, checked: d, onChange: () => {
|
|
1793
|
+
o(d ? c : u);
|
|
1794
1794
|
} }) });
|
|
1795
1795
|
};
|
|
1796
1796
|
ss.defaultProps = {};
|
|
1797
|
-
var
|
|
1798
|
-
var
|
|
1797
|
+
var ms = ss;
|
|
1798
|
+
var ls = require("@transferwise/components");
|
|
1799
1799
|
var ir = require("react/jsx-runtime");
|
|
1800
|
-
var
|
|
1801
|
-
var u,
|
|
1802
|
-
let { id: t, selection: r, setSelection: o, promotion: n, promotedOneOf: a, title: s } = e,
|
|
1803
|
-
return (0, ir.jsxs)("div", { className: "form-group", children: [s && (0, ir.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, ir.jsx)(
|
|
1800
|
+
var cs = (e) => {
|
|
1801
|
+
var u, c;
|
|
1802
|
+
let { id: t, selection: r, setSelection: o, promotion: n, promotedOneOf: a, title: s } = e, l = [i({ value: "promoted", label: ((u = n.promoted) == null ? void 0 : u.title) || a.title, secondary: ((c = n.promoted) == null ? void 0 : c.description) || a.description }, Rt(a)), i({ value: "other", label: n.other.title, secondary: n.other.description }, Rt(n.other))];
|
|
1803
|
+
return (0, ir.jsxs)("div", { className: "form-group", children: [s && (0, ir.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, ir.jsx)(ls.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: l, id: t, onChange: o })] });
|
|
1804
1804
|
};
|
|
1805
|
-
|
|
1806
|
-
var ds =
|
|
1805
|
+
cs.defaultProps = { title: void 0 };
|
|
1806
|
+
var ds = cs;
|
|
1807
1807
|
var Bt = require("react/jsx-runtime");
|
|
1808
1808
|
var us = (e) => {
|
|
1809
1809
|
switch (e.promotion.control || "radio") {
|
|
1810
1810
|
case "radio":
|
|
1811
1811
|
return (0, Bt.jsx)(ds, i({}, e));
|
|
1812
1812
|
case "checkbox":
|
|
1813
|
-
return (0, Bt.jsx)(
|
|
1813
|
+
return (0, Bt.jsx)(ms, i({}, e));
|
|
1814
1814
|
default:
|
|
1815
1815
|
return (0, Bt.jsx)(Bt.Fragment, {});
|
|
1816
1816
|
}
|
|
@@ -1820,8 +1820,8 @@ var require_main_min = __commonJS({
|
|
|
1820
1820
|
var Ue = require("react/jsx-runtime");
|
|
1821
1821
|
var ys = (e) => e.promoted === true;
|
|
1822
1822
|
var hd = (e) => {
|
|
1823
|
-
var
|
|
1824
|
-
let [t, r] = (0, fs.useState)(as(e.schema, e.model) || ((
|
|
1823
|
+
var l;
|
|
1824
|
+
let [t, r] = (0, fs.useState)(as(e.schema, e.model) || ((l = e.schema.promotion) == null ? void 0 : l.default) || "promoted"), o = e.schema.alert, n = e.schema.oneOf.find(ys), a = gd(n), s = Sd(e.schema);
|
|
1825
1825
|
return (0, Ue.jsxs)(Ue.Fragment, { children: [o && (0, Ue.jsx)(se, { component: o }), (0, Ue.jsx)(ps, { id: e.schema.$id, title: e.schema.title, promotedOneOf: n, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ue.jsx)(or, b(i({}, e), { schema: a })), t === "other" && (0, Ue.jsx)(ue, b(i({}, e), { schema: s }))] });
|
|
1826
1826
|
};
|
|
1827
1827
|
function gd(e) {
|
|
@@ -1842,7 +1842,7 @@ var require_main_min = __commonJS({
|
|
|
1842
1842
|
let { title: r = "" } = e, { formatMessage: o } = (0, gs.useIntl)(), n = wd({ schema: e, model: t, formatMessage: o });
|
|
1843
1843
|
return (0, Vt.jsx)(Xr.DefinitionList, { layout: Xr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: n, key: "" }] });
|
|
1844
1844
|
};
|
|
1845
|
-
var
|
|
1845
|
+
var mn = bd;
|
|
1846
1846
|
function wd({ schema: e, model: t, formatMessage: r }) {
|
|
1847
1847
|
return Te(e) ? fe(e) ? Fd(e, t) : e.type === "boolean" && ve(t) ? r(t ? sn.yes : sn.no) : t && t.toString() || "" : "";
|
|
1848
1848
|
}
|
|
@@ -1860,19 +1860,19 @@ var require_main_min = __commonJS({
|
|
|
1860
1860
|
var Ie = require("react");
|
|
1861
1861
|
var bs = require("react/jsx-runtime");
|
|
1862
1862
|
var Ss = (e) => {
|
|
1863
|
-
let { schema: t, model: r, required: o, submitted: n, errors: a, onChange: s } = e, [
|
|
1863
|
+
let { schema: t, model: r, required: o, submitted: n, errors: a, onChange: s } = e, [l, u] = (0, Ie.useState)(r), c = (0, Ie.useRef)(null), [d, g] = (0, Ie.useState)(null), [f, m] = (0, Ie.useState)(null), [p, y] = (0, Ie.useState)(false), [S, h] = (0, Ie.useState)(null), F = ee(), w = Q(), v = xt();
|
|
1864
1864
|
(0, Ie.useEffect)(() => {
|
|
1865
1865
|
t.validationAsync.method || v.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {});
|
|
1866
1866
|
}, [v, t.validationAsync.method]);
|
|
1867
|
-
let
|
|
1868
|
-
let
|
|
1869
|
-
|
|
1870
|
-
let k = await F(G.url, { method: G.method || "POST", headers: { "Content-Type": "application/json" }, body: G.method === "GET" ? void 0 : JSON.stringify(V), signal:
|
|
1867
|
+
let O = async (N, G) => {
|
|
1868
|
+
let A = C(), V = { [G.param]: N };
|
|
1869
|
+
c.current = N, y(true), w("Dynamic Flow - ValidationAsync", { status: "pending" });
|
|
1870
|
+
let k = await F(G.url, { method: G.method || "POST", headers: { "Content-Type": "application/json" }, body: G.method === "GET" ? void 0 : JSON.stringify(V), signal: A });
|
|
1871
1871
|
try {
|
|
1872
1872
|
let H = await k.json();
|
|
1873
1873
|
if (!L(H))
|
|
1874
1874
|
throw new Error("Response body is not an object");
|
|
1875
|
-
w("Dynamic Flow - ValidationAsync", { status: "success" }), k.status === 200 ? g(E(H.message) ? H.message : null) : k.status === 422 &&
|
|
1875
|
+
w("Dynamic Flow - ValidationAsync", { status: "success" }), k.status === 200 ? g(E(H.message) ? H.message : null) : k.status === 422 && m(E(H.message) ? H.message : null);
|
|
1876
1876
|
} catch (H) {
|
|
1877
1877
|
w("Dynamic Flow - ValidationAsync", { status: "failure" });
|
|
1878
1878
|
}
|
|
@@ -1881,30 +1881,30 @@ var require_main_min = __commonJS({
|
|
|
1881
1881
|
let N = new AbortController();
|
|
1882
1882
|
return h(N), N.signal;
|
|
1883
1883
|
};
|
|
1884
|
-
return (0, bs.jsx)(ft, i({}, { submitted: n || p, model:
|
|
1885
|
-
s(b(i({}, N), { triggerSchema: t, triggerModel: N.model })),
|
|
1884
|
+
return (0, bs.jsx)(ft, i({}, { submitted: n || p, model: l, errors: f || a, infoMessage: d, onChange: (N) => {
|
|
1885
|
+
s(b(i({}, N), { triggerSchema: t, triggerModel: N.model })), m(null), g(null), u(N.model);
|
|
1886
1886
|
}, onBlur: () => {
|
|
1887
|
-
!M(
|
|
1887
|
+
!M(l) && !Ke(l, c.current) && _(l, t) && O(l, t.validationAsync);
|
|
1888
1888
|
}, required: o, schema: t }));
|
|
1889
1889
|
};
|
|
1890
1890
|
Ss.defaultProps = { required: false };
|
|
1891
|
-
var
|
|
1891
|
+
var ln = Ss;
|
|
1892
1892
|
var pe = require("react/jsx-runtime");
|
|
1893
1893
|
var Fs = require("react");
|
|
1894
|
-
var
|
|
1895
|
-
let { schema: t, model: r = null, errors: o = null, hideTitle: n = false, disabled: a = false } = e, s = b(i({}, e), { model: r, errors: o, hideTitle: n, disabled: a }),
|
|
1894
|
+
var Ad = (e) => {
|
|
1895
|
+
let { schema: t, model: r = null, errors: o = null, hideTitle: n = false, disabled: a = false } = e, s = b(i({}, e), { model: r, errors: o, hideTitle: n, disabled: a }), l = it(t), u = xt();
|
|
1896
1896
|
switch ((0, ws.useEffect)(() => {
|
|
1897
|
-
vd(t, r, o) || u.error("Invalid schema or model", `Schema of type ${
|
|
1898
|
-
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(o),
|
|
1897
|
+
vd(t, r, o) || u.error("Invalid schema or model", `Schema of type ${l || "undefined"} requested, but schema did not pass validation.`);
|
|
1898
|
+
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(o), l, u]), l) {
|
|
1899
1899
|
case "readOnly":
|
|
1900
|
-
return (0, pe.jsx)(
|
|
1900
|
+
return (0, pe.jsx)(mn, i({}, s));
|
|
1901
1901
|
case "persistAsync":
|
|
1902
1902
|
return (0, pe.jsx)(on, i({}, s));
|
|
1903
1903
|
case "validationAsync":
|
|
1904
|
-
return (0, pe.jsx)(
|
|
1904
|
+
return (0, pe.jsx)(ln, i({}, s));
|
|
1905
1905
|
case "basic": {
|
|
1906
|
-
let
|
|
1907
|
-
return (0, pe.jsx)(ft, i({},
|
|
1906
|
+
let c = i({ infoMessage: null }, s);
|
|
1907
|
+
return (0, pe.jsx)(ft, i({}, c));
|
|
1908
1908
|
}
|
|
1909
1909
|
case "object":
|
|
1910
1910
|
return (0, Fs.createElement)(or, b(i({}, s), { key: JSON.stringify(t) }));
|
|
@@ -1919,7 +1919,7 @@ var require_main_min = __commonJS({
|
|
|
1919
1919
|
}
|
|
1920
1920
|
return (0, pe.jsx)(pe.Fragment, {});
|
|
1921
1921
|
};
|
|
1922
|
-
var ue =
|
|
1922
|
+
var ue = Ad;
|
|
1923
1923
|
var vd = (e, t, r) => {
|
|
1924
1924
|
switch (it(e)) {
|
|
1925
1925
|
case "persistAsync":
|
|
@@ -1942,18 +1942,18 @@ var require_main_min = __commonJS({
|
|
|
1942
1942
|
return false;
|
|
1943
1943
|
};
|
|
1944
1944
|
var yt = require("react/jsx-runtime");
|
|
1945
|
-
var
|
|
1945
|
+
var Od = (e) => {
|
|
1946
1946
|
let t = i({ model: null, errors: null, disabled: false, baseUrl: "" }, e);
|
|
1947
1947
|
return Mr() || t.baseUrl == null ? (0, yt.jsx)(ue, i({}, t)) : (0, yt.jsx)(Pd, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, yt.jsx)(ue, i({}, t)) });
|
|
1948
1948
|
};
|
|
1949
|
-
var sr =
|
|
1949
|
+
var sr = Od;
|
|
1950
1950
|
var Pd = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, yt.jsx)(kr, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : Cs, children: (0, yt.jsx)(Cr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : Cs, children: (0, yt.jsx)(Pr, { baseUrl: e, children: o }) }) });
|
|
1951
1951
|
var Cs = () => {
|
|
1952
1952
|
};
|
|
1953
|
-
var
|
|
1953
|
+
var cn = require("react/jsx-runtime");
|
|
1954
1954
|
var Md = (e) => {
|
|
1955
1955
|
let t = e.component, r = t.schema;
|
|
1956
|
-
return (0,
|
|
1956
|
+
return (0, cn.jsx)("div", { className: U(t.margin || "md"), children: (0, cn.jsx)(sr, { schema: r, model: e.model, submitted: e.submitted, errors: e.errors, onChange: (o) => {
|
|
1957
1957
|
e.onModelChange(i({ formSchema: r }, o));
|
|
1958
1958
|
}, onPersistAsync: e.onPersistAsync }) });
|
|
1959
1959
|
};
|
|
@@ -1977,22 +1977,22 @@ var require_main_min = __commonJS({
|
|
|
1977
1977
|
};
|
|
1978
1978
|
var un = kd;
|
|
1979
1979
|
var pn = require("@transferwise/components");
|
|
1980
|
-
var
|
|
1980
|
+
var mr = require("react/jsx-runtime");
|
|
1981
1981
|
var fn = ({ component: e }) => {
|
|
1982
1982
|
let { content: t, align: r, margin: o } = e;
|
|
1983
|
-
return (0,
|
|
1983
|
+
return (0, mr.jsx)("div", { className: Ne({ align: r, margin: o }), children: (0, mr.jsx)(pn.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
|
|
1984
1984
|
};
|
|
1985
|
-
var yn = ({ component: e }) => (0,
|
|
1985
|
+
var yn = ({ component: e }) => (0, mr.jsx)("div", { className: Ne(e), children: (0, mr.jsx)(pn.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
|
|
1986
1986
|
var xs = require("@transferwise/components");
|
|
1987
1987
|
var Yr = require("react");
|
|
1988
1988
|
var hn = require("react/jsx-runtime");
|
|
1989
1989
|
var Ed = ({ component: e }) => {
|
|
1990
|
-
let { url: t, size: r, text: o, margin: n, accessibilityDescription: a } = e, s = ee(), [
|
|
1990
|
+
let { url: t, size: r, text: o, margin: n, accessibilityDescription: a } = e, s = ee(), [l, u] = (0, Yr.useState)("");
|
|
1991
1991
|
(0, Yr.useEffect)(() => {
|
|
1992
1992
|
Dd(s, t).then(u);
|
|
1993
1993
|
}, [t, s]);
|
|
1994
|
-
let
|
|
1995
|
-
return
|
|
1994
|
+
let c = { alt: a || o || "", src: l, stretch: true, shrink: true };
|
|
1995
|
+
return l ? (0, hn.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, hn.jsx)(xs.Image, i({ className: `img-responsive ${U(n || "md")}` }, c)) }) : null;
|
|
1996
1996
|
};
|
|
1997
1997
|
var Id = (e) => new Promise((t, r) => {
|
|
1998
1998
|
let o = new FileReader();
|
|
@@ -2001,7 +2001,7 @@ var require_main_min = __commonJS({
|
|
|
2001
2001
|
var Dd = async (e, t) => {
|
|
2002
2002
|
var r;
|
|
2003
2003
|
try {
|
|
2004
|
-
return
|
|
2004
|
+
return Ar(t) || (t == null ? void 0 : t.indexOf(`${(r = window == null ? void 0 : window.location) == null ? void 0 : r.origin}/`)) === 0 ? e(t, { method: "GET", headers: { "Content-Type": "image/image" }, credentials: "same-origin" }).then((o) => {
|
|
2005
2005
|
if (o.ok)
|
|
2006
2006
|
return o.blob();
|
|
2007
2007
|
throw new Error("Image fetching failed");
|
|
@@ -2012,18 +2012,18 @@ var require_main_min = __commonJS({
|
|
|
2012
2012
|
};
|
|
2013
2013
|
var gn = Ed;
|
|
2014
2014
|
var Zr = require("@transferwise/components");
|
|
2015
|
-
var
|
|
2015
|
+
var lr = require("react/jsx-runtime");
|
|
2016
2016
|
var Ld = ["positive", "neutral"];
|
|
2017
2017
|
var Td = ["warning", "negative"];
|
|
2018
2018
|
var Nd = ({ component: e }) => {
|
|
2019
2019
|
let { items: t } = e, r = t.filter((n) => Ld.includes(n.context)).map(({ text: n }) => n), o = t.filter((n) => Td.includes(n.context)).map(({ text: n }) => n);
|
|
2020
|
-
return (0,
|
|
2020
|
+
return (0, lr.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, lr.jsx)(Zr.Header, { title: e.title }) : null, (0, lr.jsx)(Zr.InstructionsList, { dos: r, donts: o })] });
|
|
2021
2021
|
};
|
|
2022
2022
|
var Sn = Nd;
|
|
2023
2023
|
var q = require("react/jsx-runtime");
|
|
2024
2024
|
var Y = (e) => JSON.stringify(e);
|
|
2025
2025
|
var Rd = (e) => {
|
|
2026
|
-
let { components: t, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync:
|
|
2026
|
+
let { components: t, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: l, baseUrl: u } = e, c = (d) => {
|
|
2027
2027
|
switch (d.type) {
|
|
2028
2028
|
case "heading":
|
|
2029
2029
|
return (0, q.jsx)(un, { component: d }, Y(d));
|
|
@@ -2044,13 +2044,13 @@ var require_main_min = __commonJS({
|
|
|
2044
2044
|
case "markdown":
|
|
2045
2045
|
return (0, q.jsx)(fn, { component: d }, Y(d));
|
|
2046
2046
|
case "columns":
|
|
2047
|
-
return (0, q.jsx)(Vo, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync:
|
|
2047
|
+
return (0, q.jsx)(Vo, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: l }, Y(d));
|
|
2048
2048
|
case "form":
|
|
2049
|
-
return (0, q.jsx)(dn, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onPersistAsync:
|
|
2049
|
+
return (0, q.jsx)(dn, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onPersistAsync: l }, Y(b(i({}, d), { errors: n != null ? n : null })));
|
|
2050
2050
|
case "button":
|
|
2051
2051
|
return (0, q.jsx)(Bo, { component: d, onAction: s }, Y(d));
|
|
2052
2052
|
case "box":
|
|
2053
|
-
return (0, q.jsx)(Ro, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync:
|
|
2053
|
+
return (0, q.jsx)(Ro, { component: d, model: r, submitted: o, errors: n, onModelChange: a, onAction: s, onPersistAsync: l }, Y(d));
|
|
2054
2054
|
case "decision":
|
|
2055
2055
|
return (0, q.jsx)(jo, { component: d, onAction: s }, Y(d));
|
|
2056
2056
|
case "external":
|
|
@@ -2059,34 +2059,34 @@ var require_main_min = __commonJS({
|
|
|
2059
2059
|
case "status-list":
|
|
2060
2060
|
return (0, q.jsx)(bn, { component: d, onAction: s }, Y(d));
|
|
2061
2061
|
case "loading-indicator":
|
|
2062
|
-
return (0, q.jsx)(
|
|
2062
|
+
return (0, q.jsx)(cr, { component: d }, Y(d));
|
|
2063
2063
|
case "search":
|
|
2064
2064
|
return (0, q.jsx)(Cn, { component: d, onAction: s }, Y(d));
|
|
2065
2065
|
default:
|
|
2066
2066
|
return (0, q.jsx)("div", {}, Y(d));
|
|
2067
2067
|
}
|
|
2068
2068
|
};
|
|
2069
|
-
return Mr() || u == null ? (0, q.jsx)(q.Fragment, { children: t.map(
|
|
2069
|
+
return Mr() || u == null ? (0, q.jsx)(q.Fragment, { children: t.map(c) }) : (0, q.jsx)(Pr, { baseUrl: u, children: t.map(c) });
|
|
2070
2070
|
};
|
|
2071
|
-
var
|
|
2072
|
-
var
|
|
2071
|
+
var me = Rd;
|
|
2072
|
+
var As = require("@transferwise/components");
|
|
2073
2073
|
var Ut = require("react/jsx-runtime");
|
|
2074
2074
|
var Bd = ({ component: e }) => (0, Ut.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, Ut.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(Vd)] });
|
|
2075
2075
|
var Vd = ({ title: e, description: t, icon: r, status: o }) => {
|
|
2076
2076
|
let n = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Ut.jsx)(Je, { type: r.name }) } : {}), o ? { status: zd[o] } : {});
|
|
2077
|
-
return (0, Ut.jsx)(
|
|
2077
|
+
return (0, Ut.jsx)(As.Summary, i({}, n));
|
|
2078
2078
|
};
|
|
2079
2079
|
var jd = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2080
2080
|
var Ud = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2081
2081
|
var zd = i(i({}, jd), Ud);
|
|
2082
2082
|
var bn = Bd;
|
|
2083
2083
|
var vs = require("@transferwise/components");
|
|
2084
|
-
var
|
|
2084
|
+
var Os = require("react/jsx-runtime");
|
|
2085
2085
|
var Hd = ({ component: e }) => {
|
|
2086
2086
|
let { margin: t, size: r = "md" } = e;
|
|
2087
|
-
return (0,
|
|
2087
|
+
return (0, Os.jsx)(vs.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${U(t)}` }, "data-testid": "loading-indicator" });
|
|
2088
2088
|
};
|
|
2089
|
-
var
|
|
2089
|
+
var cr = Hd;
|
|
2090
2090
|
var Is = require("@transferwise/components");
|
|
2091
2091
|
var Ds = require("react-intl");
|
|
2092
2092
|
var Ps = require("react-intl");
|
|
@@ -2133,7 +2133,7 @@ var require_main_min = __commonJS({
|
|
|
2133
2133
|
var Rs = require("react-intl");
|
|
2134
2134
|
var zt = (0, Rs.defineMessages)({ errorAlert: { id: "dynamicFlows.ErrorBoundary.errorAlert", defaultMessage: "Oops. Something went wrong...", description: "Generic error message for when something has gone wrong." }, retry: { id: "dynamicFlows.ErrorBoundary.retry", defaultMessage: "Retry", description: "Usually this follows the generic error and contains a link." } });
|
|
2135
2135
|
var ht = require("react/jsx-runtime");
|
|
2136
|
-
var Vs = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, ht.jsx)("p", { className: "m-t-2", children: t }) : (0, ht.jsx)(eo.NavigationOptionsList, { children: e.map((o) => (0, ht.jsx)(eo.NavigationOption, { title: o.title, content: o.description, media:
|
|
2136
|
+
var Vs = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, ht.jsx)("p", { className: "m-t-2", children: t }) : (0, ht.jsx)(eo.NavigationOptionsList, { children: e.map((o) => (0, ht.jsx)(eo.NavigationOption, { title: o.title, content: o.description, media: mt(o), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(o) }, JSON.stringify(o))) });
|
|
2137
2137
|
var js = ({ onRetrySearch: e }) => {
|
|
2138
2138
|
let t = (0, Bs.useIntl)();
|
|
2139
2139
|
return (0, ht.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(zt.errorAlert), "\xA0", (0, ht.jsx)("a", { href: "/", onClick: (r) => {
|
|
@@ -2143,32 +2143,32 @@ var require_main_min = __commonJS({
|
|
|
2143
2143
|
var Ht = require("react");
|
|
2144
2144
|
var Zd = { "Content-Type": "application/json" };
|
|
2145
2145
|
var Us = (e) => {
|
|
2146
|
-
let [t, r] = (0, Ht.useState)({ status: "idle" }), o = (0, Ht.useRef)(null), n = ee(), a = (0, Ht.useCallback)(async (
|
|
2146
|
+
let [t, r] = (0, Ht.useState)({ status: "idle" }), o = (0, Ht.useRef)(null), n = ee(), a = (0, Ht.useCallback)(async (c, { url: d, method: g, param: f } = e) => {
|
|
2147
2147
|
var p;
|
|
2148
|
-
if ((p = o.current) == null || p.abort(), !
|
|
2148
|
+
if ((p = o.current) == null || p.abort(), !c) {
|
|
2149
2149
|
r({ status: "idle" });
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
2152
|
o.current = new AbortController();
|
|
2153
|
-
let
|
|
2153
|
+
let m = o.current.signal;
|
|
2154
2154
|
r({ status: "loading" });
|
|
2155
2155
|
try {
|
|
2156
|
-
let y = g === "GET" ? `${d}?${f}=${encodeURIComponent(
|
|
2157
|
-
s(h,
|
|
2156
|
+
let y = g === "GET" ? `${d}?${f}=${encodeURIComponent(c)}` : d, S = g === "GET" ? {} : { body: JSON.stringify({ [f]: c }) }, h = await n(y, i({ method: g, signal: m, headers: Zd }, S));
|
|
2157
|
+
s(h, c);
|
|
2158
2158
|
} catch (y) {
|
|
2159
|
-
|
|
2159
|
+
l(y, c);
|
|
2160
2160
|
}
|
|
2161
|
-
}, [n, JSON.stringify(e)]), s = async (
|
|
2162
|
-
if (
|
|
2163
|
-
let g = await
|
|
2161
|
+
}, [n, JSON.stringify(e)]), s = async (c, d) => {
|
|
2162
|
+
if (c.ok) {
|
|
2163
|
+
let g = await c.json().catch(() => null);
|
|
2164
2164
|
if (Qd(g)) {
|
|
2165
2165
|
r({ status: "success", results: g.results });
|
|
2166
2166
|
return;
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
r({ status: "error" });
|
|
2170
|
-
},
|
|
2171
|
-
eu(
|
|
2170
|
+
}, l = (c, d) => {
|
|
2171
|
+
eu(c) === false && r({ status: "error" });
|
|
2172
2172
|
}, u = t.status === "success" ? t.results : [];
|
|
2173
2173
|
return { status: t.status, results: u, search: a };
|
|
2174
2174
|
};
|
|
@@ -2177,48 +2177,48 @@ var require_main_min = __commonJS({
|
|
|
2177
2177
|
var gt = require("react/jsx-runtime");
|
|
2178
2178
|
var tu = 400;
|
|
2179
2179
|
var ru = ({ component: e, onAction: t }) => {
|
|
2180
|
-
let [r, o] = (0, to.useState)(""), { title: n, margin: a, url: s, method:
|
|
2181
|
-
o(h),
|
|
2180
|
+
let [r, o] = (0, to.useState)(""), { title: n, margin: a, url: s, method: l, param: u, emptyMessage: c } = e, { status: d, results: g, search: f } = Us({ url: s, method: l, param: u }), m = (0, to.useMemo)(() => We(f, tu), [f]), p = (h) => {
|
|
2181
|
+
o(h), m(h);
|
|
2182
2182
|
}, y = ({ type: h, value: F }) => {
|
|
2183
2183
|
if (h === "action" && t(F), h === "search") {
|
|
2184
2184
|
o(F.query);
|
|
2185
|
-
let { url: w, method: v, param:
|
|
2186
|
-
f(C, { url: w, method: v, param:
|
|
2185
|
+
let { url: w, method: v, param: O, query: C } = F;
|
|
2186
|
+
f(C, { url: w, method: v, param: O });
|
|
2187
2187
|
}
|
|
2188
2188
|
}, S = () => {
|
|
2189
2189
|
o(r), f(r);
|
|
2190
2190
|
};
|
|
2191
|
-
return (0, gt.jsxs)("div", { className: U(a), children: [(0, gt.jsx)(Ns, { title: n, value: r, onChange: p }), d === "loading" && (0, gt.jsx)(
|
|
2191
|
+
return (0, gt.jsxs)("div", { className: U(a), children: [(0, gt.jsx)(Ns, { title: n, value: r, onChange: p }), d === "loading" && (0, gt.jsx)(cr, { component: { type: "loading-indicator", size: "sm" } }), d === "error" && (0, gt.jsx)(js, { onRetrySearch: S }), d === "success" && (0, gt.jsx)(Vs, { results: g, emptyMessage: c, onSelect: y })] });
|
|
2192
2192
|
};
|
|
2193
2193
|
var Cn = ru;
|
|
2194
|
-
var
|
|
2195
|
-
var
|
|
2196
|
-
var ou = (e) => e.type === "boolean" &&
|
|
2194
|
+
var ce = require("react/jsx-runtime");
|
|
2195
|
+
var An = (e) => M(e) || J(e);
|
|
2196
|
+
var ou = (e) => e.type === "boolean" && An(e.default) ? false : e.default;
|
|
2197
2197
|
var Hs = (e) => {
|
|
2198
|
-
var G,
|
|
2198
|
+
var G, A, V;
|
|
2199
2199
|
let t = (k) => {
|
|
2200
2200
|
f(true), o(n(k), "user");
|
|
2201
2201
|
}, r = (k) => _e(k, e.schema, e.required), o = (k, H) => {
|
|
2202
2202
|
u(k);
|
|
2203
|
-
let
|
|
2204
|
-
F(
|
|
2203
|
+
let Ae = r(k);
|
|
2204
|
+
F(Ae);
|
|
2205
2205
|
let ae = k;
|
|
2206
|
-
d(ae), ae !==
|
|
2206
|
+
d(ae), ae !== c && e.onChange({ model: ae, triggerSchema: e.schema, triggerModel: ae, lastTriggerModel: c, type: H });
|
|
2207
2207
|
}, n = (k) => $e(k, e.schema), a = () => p(true), s = () => {
|
|
2208
2208
|
p(false), S(true), e.onBlur && e.onBlur();
|
|
2209
|
-
}, [
|
|
2209
|
+
}, [l, u] = (0, le.useState)((G = e.model) != null ? G : null), [c, d] = (0, le.useState)((A = e.model) != null ? A : null), [g, f] = (0, le.useState)(false), [m, p] = (0, le.useState)(false), [y, S] = (0, le.useState)(false), [h, F] = (0, le.useState)([]), w = (0, le.useMemo)(() => e.schema.$id || Me(), [e.schema.$id]), v = () => {
|
|
2210
2210
|
let k = ou(e.schema);
|
|
2211
|
-
|
|
2212
|
-
},
|
|
2213
|
-
F(r(
|
|
2211
|
+
An(l) && !An(k) && o(k, "init"), e.schema.const && o(e.schema.const, "init");
|
|
2212
|
+
}, O = () => {
|
|
2213
|
+
F(r(l));
|
|
2214
2214
|
}, C = e.schema.const, D = e.schema.hidden || C;
|
|
2215
|
-
(0,
|
|
2215
|
+
(0, le.useEffect)(O, [e.model, e.submitted]), (0, le.useEffect)(v, [e.schema]), (0, le.useEffect)(() => {
|
|
2216
2216
|
var H;
|
|
2217
2217
|
let k = (H = e.model) != null ? H : null;
|
|
2218
|
-
k !==
|
|
2218
|
+
k !== l && u(k);
|
|
2219
2219
|
}, [e.model]);
|
|
2220
|
-
let T = { "form-group": true, "has-error": (e.submitted || !g) && !!e.errors || (e.submitted || g && y) && !!h.length, "has-info":
|
|
2221
|
-
return D ? null : (0,
|
|
2220
|
+
let T = { "form-group": true, "has-error": (e.submitted || !g) && !!e.errors || (e.submitted || g && y) && !!h.length, "has-info": m && !!e.schema.description || !!e.infoMessage }, P = e.schema.format !== "file" && e.schema.type !== "boolean", N = e.schema.help;
|
|
2221
|
+
return D ? null : (0, ce.jsxs)(ce.Fragment, { children: [e.schema.alert && (0, ce.jsx)(se, { component: e.schema.alert }), (0, ce.jsxs)("div", { className: (0, zs.default)(T), children: [P && (0, ce.jsxs)("div", { className: "d-inline-block", children: [(0, ce.jsx)("label", { className: "control-label d-inline", htmlFor: w, children: e.schema.title }), !!N && (0, ce.jsx)(je, { help: N })] }), !P && !!N && (0, ce.jsx)(je, { help: N }), (0, ce.jsx)(nr, { id: w, schema: e.schema, value: l, disabled: !!e.disabled, onChange: t, onFocus: a, onBlur: s }), (0, ce.jsx)(Be, { changed: g, focused: m, blurred: y, submitted: e.submitted, errors: (V = e.errors) != null ? V : null, schema: e.schema, validations: h, infoMessage: e.infoMessage })] })] });
|
|
2222
2222
|
};
|
|
2223
2223
|
Hs.defaultProps = { required: false, disabled: false, onBlur: null };
|
|
2224
2224
|
var ft = Hs;
|
|
@@ -2230,34 +2230,34 @@ var require_main_min = __commonJS({
|
|
|
2230
2230
|
};
|
|
2231
2231
|
var nu = /* @__PURE__ */ new Set([B.RADIO, B.SELECT, B.DATELOOKUP, B.FILE, B.UPLOAD]);
|
|
2232
2232
|
var $s = (e) => {
|
|
2233
|
-
let { schema: t, required: r, submitted: o, errors: n, onChange: a, onPersistAsync: s } = e,
|
|
2233
|
+
let { schema: t, required: r, submitted: o, errors: n, onChange: a, onPersistAsync: s } = e, l = (0, qs.useIntl)(), u = ee(), c = Q(), [d, g] = (0, St.useState)(null), f = Ws(d), [m, p] = (0, St.useState)(null), [y, S] = (0, St.useState)(false), [h, F] = (0, St.useState)(null);
|
|
2234
2234
|
(0, St.useEffect)(() => {
|
|
2235
2235
|
nu.has(Yo(t.persistAsync.schema)) && C();
|
|
2236
2236
|
}, [d]);
|
|
2237
|
-
let w = () => p(
|
|
2238
|
-
let G =
|
|
2237
|
+
let w = () => p(l.formatMessage(Qt.genericError)), v = async (P, N) => {
|
|
2238
|
+
let G = O(), A = { [N.param]: P };
|
|
2239
2239
|
S(true);
|
|
2240
2240
|
try {
|
|
2241
|
-
|
|
2242
|
-
let V = u(N.url, { method: N.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(
|
|
2241
|
+
c("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t.$id });
|
|
2242
|
+
let V = u(N.url, { method: N.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(A), signal: G });
|
|
2243
2243
|
s(V);
|
|
2244
2244
|
let k = await V, H = await k.json();
|
|
2245
2245
|
if (!L(H))
|
|
2246
2246
|
throw new Error("Response is not an object");
|
|
2247
|
-
let { idProperty:
|
|
2247
|
+
let { idProperty: Ae, param: ae } = t.persistAsync;
|
|
2248
2248
|
if (Qn(k.status)) {
|
|
2249
|
-
let re = tn(
|
|
2249
|
+
let re = tn(Ae, H);
|
|
2250
2250
|
a({ model: re, triggerSchema: t, triggerModel: re });
|
|
2251
2251
|
} else if (xr(k.status)) {
|
|
2252
2252
|
let { validation: re } = H, de = L(re) && (re == null ? void 0 : re[ae]) || null;
|
|
2253
2253
|
p(de), a({ model: null, triggerSchema: t, triggerModel: null });
|
|
2254
2254
|
} else
|
|
2255
2255
|
w();
|
|
2256
|
-
|
|
2256
|
+
c("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
|
|
2257
2257
|
} catch (V) {
|
|
2258
|
-
|
|
2258
|
+
c("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), w();
|
|
2259
2259
|
}
|
|
2260
|
-
},
|
|
2260
|
+
}, O = () => {
|
|
2261
2261
|
h && h.abort();
|
|
2262
2262
|
let P = new AbortController();
|
|
2263
2263
|
return F(P), P.signal;
|
|
@@ -2268,46 +2268,46 @@ var require_main_min = __commonJS({
|
|
|
2268
2268
|
}, T = ({ model: P }) => {
|
|
2269
2269
|
p(null), _(P, t.persistAsync.schema) && g(P);
|
|
2270
2270
|
};
|
|
2271
|
-
return (0, _s.jsx)(ft, { required: r, submitted: o || y, schema: t.persistAsync.schema, errors:
|
|
2271
|
+
return (0, _s.jsx)(ft, { required: r, submitted: o || y, schema: t.persistAsync.schema, errors: m || n, model: null, infoMessage: null, onChange: T, onBlur: D });
|
|
2272
2272
|
};
|
|
2273
2273
|
$s.defaultProps = { required: false };
|
|
2274
2274
|
var Qo = $s;
|
|
2275
2275
|
var wi = (e) => {
|
|
2276
2276
|
let [t, r] = (0, Ks.useState)(null), o = ee(), n = (0, Js.useIntl)(), { schema: a } = e;
|
|
2277
2277
|
async function s(f) {
|
|
2278
|
-
let
|
|
2279
|
-
return (M(f) ||
|
|
2278
|
+
let m = f instanceof Blob ? !Pt(a) : !_(f, a);
|
|
2279
|
+
return (M(f) || m) && g(), await c(f);
|
|
2280
2280
|
}
|
|
2281
|
-
let
|
|
2281
|
+
let l = () => {
|
|
2282
2282
|
t && t.abort();
|
|
2283
2283
|
let f = new AbortController();
|
|
2284
2284
|
return r(f), f.signal;
|
|
2285
2285
|
};
|
|
2286
2286
|
function u(f) {
|
|
2287
|
-
let
|
|
2288
|
-
return { method: e.method, headers: i({}, !
|
|
2287
|
+
let m = Pt(a), p = l(), y = e.param, S = m ? au(y, f) : JSON.stringify({ [y]: f });
|
|
2288
|
+
return { method: e.method, headers: i({}, !m && { "Content-Type": "application/json" }), body: S, signal: p };
|
|
2289
2289
|
}
|
|
2290
|
-
async function
|
|
2290
|
+
async function c(f) {
|
|
2291
2291
|
try {
|
|
2292
|
-
let
|
|
2293
|
-
if (!
|
|
2294
|
-
return d(
|
|
2295
|
-
let p = await
|
|
2292
|
+
let m = await o(e.url, u(f));
|
|
2293
|
+
if (!m.ok)
|
|
2294
|
+
return d(m);
|
|
2295
|
+
let p = await m.json();
|
|
2296
2296
|
if (L(p)) {
|
|
2297
2297
|
let y = p[e.idProperty];
|
|
2298
2298
|
if (E(y) || R(y))
|
|
2299
2299
|
return { data: y };
|
|
2300
2300
|
}
|
|
2301
2301
|
return g();
|
|
2302
|
-
} catch (
|
|
2303
|
-
return g(
|
|
2302
|
+
} catch (m) {
|
|
2303
|
+
return g(m);
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
async function d(f) {
|
|
2307
2307
|
if (f.status === 422) {
|
|
2308
|
-
let
|
|
2309
|
-
if (L(
|
|
2310
|
-
let p = Gs(e.param,
|
|
2308
|
+
let m = await f.json();
|
|
2309
|
+
if (L(m)) {
|
|
2310
|
+
let p = Gs(e.param, m);
|
|
2311
2311
|
if (E(p))
|
|
2312
2312
|
throw new Error(p);
|
|
2313
2313
|
}
|
|
@@ -2315,8 +2315,8 @@ var require_main_min = __commonJS({
|
|
|
2315
2315
|
throw new Error(n.formatMessage(Qt.genericError));
|
|
2316
2316
|
}
|
|
2317
2317
|
let g = (f) => {
|
|
2318
|
-
let
|
|
2319
|
-
throw new Error(
|
|
2318
|
+
let m = iu(f) ? f.message : n.formatMessage(Qt.genericError);
|
|
2319
|
+
throw new Error(m);
|
|
2320
2320
|
};
|
|
2321
2321
|
return s;
|
|
2322
2322
|
};
|
|
@@ -2329,27 +2329,27 @@ var require_main_min = __commonJS({
|
|
|
2329
2329
|
}
|
|
2330
2330
|
var et = require("react");
|
|
2331
2331
|
function Nr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: n, onFailure: a }) {
|
|
2332
|
-
let s = (0, et.useRef)(n),
|
|
2332
|
+
let s = (0, et.useRef)(n), l = (0, et.useRef)(a), u = (0, et.useMemo)(() => su(e, r, o, (c) => s.current(c), () => l.current()), [e, r, o]);
|
|
2333
2333
|
(0, et.useEffect)(() => {
|
|
2334
2334
|
if (t > 0) {
|
|
2335
|
-
let
|
|
2335
|
+
let c = setInterval(() => {
|
|
2336
2336
|
u();
|
|
2337
2337
|
}, t);
|
|
2338
|
-
return () => clearInterval(
|
|
2338
|
+
return () => clearInterval(c);
|
|
2339
2339
|
}
|
|
2340
2340
|
}, [u, t]), (0, et.useEffect)(() => {
|
|
2341
|
-
s.current = n,
|
|
2341
|
+
s.current = n, l.current = a;
|
|
2342
2342
|
}, [n, a]);
|
|
2343
2343
|
}
|
|
2344
2344
|
function su(e, t, r, o, n) {
|
|
2345
|
-
let a = true, s = 0,
|
|
2345
|
+
let a = true, s = 0, l = 0;
|
|
2346
2346
|
return e ? () => {
|
|
2347
|
-
a && (
|
|
2347
|
+
a && (l++, e().then((u) => {
|
|
2348
2348
|
s = 0, a = o(u);
|
|
2349
2349
|
}).catch(() => {
|
|
2350
2350
|
s++;
|
|
2351
2351
|
}).finally(() => {
|
|
2352
|
-
(s >= r ||
|
|
2352
|
+
(s >= r || l >= t) && (n(), a = false);
|
|
2353
2353
|
}));
|
|
2354
2354
|
} : () => {
|
|
2355
2355
|
};
|
|
@@ -2376,43 +2376,43 @@ var require_main_min = __commonJS({
|
|
|
2376
2376
|
}, [t, e]) });
|
|
2377
2377
|
}
|
|
2378
2378
|
var Ys = require("react/jsx-runtime");
|
|
2379
|
-
var
|
|
2379
|
+
var mu = (e, t) => {
|
|
2380
2380
|
var o;
|
|
2381
|
-
if (
|
|
2381
|
+
if (At(e))
|
|
2382
2382
|
return [];
|
|
2383
2383
|
let r = Wt(e, t);
|
|
2384
2384
|
return Ge({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (o = e.model) != null ? o : null });
|
|
2385
2385
|
};
|
|
2386
|
-
var
|
|
2387
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: s } = e,
|
|
2386
|
+
var lu = (e) => {
|
|
2387
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: n, formErrors: a, onModelChange: s } = e, l = mu(t, r), { loading: u, registerPersistAsyncPromise: c } = Fr(), d = Q(), g = u ? () => {
|
|
2388
2388
|
d("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2389
2389
|
} : e.onAction;
|
|
2390
|
-
return Xs(t.polling, g), (0, Ys.jsx)(
|
|
2390
|
+
return Xs(t.polling, g), (0, Ys.jsx)(me, { components: l, submitted: o, model: n, errors: a, onAction: g, onModelChange: s, onPersistAsync: c });
|
|
2391
2391
|
};
|
|
2392
|
-
var oo =
|
|
2393
|
-
var
|
|
2392
|
+
var oo = lu;
|
|
2393
|
+
var mo = require("react");
|
|
2394
2394
|
var Ce = require("react");
|
|
2395
|
-
var
|
|
2396
|
-
var
|
|
2395
|
+
var wm = require("react-intl");
|
|
2396
|
+
var Fm = qe(Zs());
|
|
2397
2397
|
var Qs = require("react-intl");
|
|
2398
2398
|
var pr = (0, Qs.defineMessages)({ reviewSubmit: { id: "dynamicFlows.CameraCapture.reviewSubmit", defaultMessage: "Yes, submit", description: "Accept and submit the image taken with the camera" }, reviewRetry: { id: "dynamicFlows.CameraCapture.reviewRetry", defaultMessage: "No, try again", description: "Image taken with camera is not good, don't submit, and retake the image" }, reviewInstructions: { id: "dynamicFlows.CameraCapture.reviewInstructions", defaultMessage: "Is your picture clear, readable and complete?", description: "After taking an image with the camera, prompt user to review the image" } });
|
|
2399
2399
|
var Fe = require("@transferwise/components");
|
|
2400
|
-
var
|
|
2400
|
+
var em = require("react-intl");
|
|
2401
2401
|
var we = require("react/jsx-runtime");
|
|
2402
|
-
var
|
|
2403
|
-
var
|
|
2404
|
-
let r = (0,
|
|
2402
|
+
var tm = ({ onCapture: e }) => (0, we.jsx)("div", { className: "bottom-bar", children: (0, we.jsx)(cu, { onClick: e }) });
|
|
2403
|
+
var rm = ({ onSubmit: e, onRetry: t }) => {
|
|
2404
|
+
let r = (0, em.useIntl)();
|
|
2405
2405
|
return (0, we.jsx)("div", { className: "bottom-bar p-x-2", children: (0, we.jsx)("div", { className: "row", children: (0, we.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, we.jsx)(Fe.Button, { className: "m-b-1", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, onClick: e, children: r.formatMessage(pr.reviewSubmit) }), (0, we.jsx)(Fe.Button, { className: "m-b-2", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, priority: Fe.Priority.SECONDARY, onClick: t, children: r.formatMessage(pr.reviewRetry) })] }) }) });
|
|
2406
2406
|
};
|
|
2407
|
-
var
|
|
2407
|
+
var cu = ({ onClick: e }) => (0, we.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, we.jsx)("span", { className: "camera-capture-btn-inner" }) });
|
|
2408
2408
|
var ao = require("react");
|
|
2409
|
-
var
|
|
2409
|
+
var om = (e) => {
|
|
2410
2410
|
var r;
|
|
2411
2411
|
let { facingMode: t } = ((r = no(e)) == null ? void 0 : r.getSettings()) || {};
|
|
2412
2412
|
return t === "user" || t === void 0;
|
|
2413
2413
|
};
|
|
2414
|
-
var
|
|
2415
|
-
var
|
|
2414
|
+
var nm = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
|
|
2415
|
+
var am = async (e) => {
|
|
2416
2416
|
let t = document.createElement("canvas");
|
|
2417
2417
|
if (e) {
|
|
2418
2418
|
t.setAttribute("height", `${e.videoHeight}`), t.setAttribute("width", `${e.videoWidth}`);
|
|
@@ -2421,35 +2421,35 @@ var require_main_min = __commonJS({
|
|
|
2421
2421
|
}
|
|
2422
2422
|
return t;
|
|
2423
2423
|
};
|
|
2424
|
-
var
|
|
2424
|
+
var im = async () => {
|
|
2425
2425
|
var e, t;
|
|
2426
2426
|
return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput");
|
|
2427
2427
|
};
|
|
2428
|
-
var
|
|
2428
|
+
var sm = async () => {
|
|
2429
2429
|
var e, t;
|
|
2430
2430
|
return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput").map((r) => r.label);
|
|
2431
2431
|
};
|
|
2432
|
-
var
|
|
2432
|
+
var mm = async (e) => {
|
|
2433
2433
|
var r, o, n;
|
|
2434
|
-
let t =
|
|
2434
|
+
let t = On(e);
|
|
2435
2435
|
return (n = (await ((o = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : o.call(r)) || []).filter((a) => a.kind === "videoinput").find((a) => a.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : n.label;
|
|
2436
2436
|
};
|
|
2437
2437
|
var no = (e) => {
|
|
2438
2438
|
var t;
|
|
2439
2439
|
return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
|
|
2440
2440
|
};
|
|
2441
|
-
var
|
|
2441
|
+
var On = (e) => {
|
|
2442
2442
|
var t, r;
|
|
2443
2443
|
return (r = (t = no(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2444
2444
|
};
|
|
2445
|
-
var
|
|
2445
|
+
var lm = (e) => {
|
|
2446
2446
|
let [t, r] = (0, ao.useState)(), o = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
|
|
2447
2447
|
(0, ao.useEffect)(() => {
|
|
2448
2448
|
n(e).then(r);
|
|
2449
2449
|
}, [e]);
|
|
2450
2450
|
let n = async (a) => {
|
|
2451
2451
|
if (a === "back") {
|
|
2452
|
-
let s = (await
|
|
2452
|
+
let s = (await im()).find(nm);
|
|
2453
2453
|
if (s != null && s.deviceId)
|
|
2454
2454
|
return b(i({}, o), { deviceId: { exact: s.deviceId } });
|
|
2455
2455
|
}
|
|
@@ -2460,94 +2460,94 @@ var require_main_min = __commonJS({
|
|
|
2460
2460
|
var io = require("react");
|
|
2461
2461
|
var K = require("react/jsx-runtime");
|
|
2462
2462
|
var du = 92;
|
|
2463
|
-
var
|
|
2463
|
+
var cm = 120;
|
|
2464
2464
|
var uu = 40;
|
|
2465
2465
|
var pu = 32;
|
|
2466
2466
|
var fu = 48;
|
|
2467
2467
|
var yu = 40;
|
|
2468
|
-
var
|
|
2468
|
+
var dm = 800;
|
|
2469
2469
|
var hu = ({ overlay: e, outline: t, imageUrl: r, title: o, instructions: n, reviewInstructions: a }) => {
|
|
2470
2470
|
let s = (0, io.useRef)(null);
|
|
2471
2471
|
(0, io.useEffect)(() => {
|
|
2472
2472
|
let f = We(() => {
|
|
2473
|
-
var
|
|
2474
|
-
if ((
|
|
2473
|
+
var m;
|
|
2474
|
+
if ((m = s.current) != null && m.innerHTML) {
|
|
2475
2475
|
let p = s.current;
|
|
2476
2476
|
p.innerHTML += "";
|
|
2477
2477
|
}
|
|
2478
2478
|
}, 100);
|
|
2479
2479
|
return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
2480
2480
|
});
|
|
2481
|
-
let
|
|
2481
|
+
let l = (r ? uu : 0) + (o ? pu : 0) + (n ? fu : 0), u = (0, K.jsxs)(K.Fragment, { children: [r && (0, K.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), o && (0, K.jsx)("h4", { className: "camera-capture-title", children: o }), n && (0, K.jsx)("small", { className: "camera-capture-instructions", children: n })] }), c = du + l;
|
|
2482
2482
|
if (a) {
|
|
2483
|
-
|
|
2484
|
-
let f =
|
|
2485
|
-
|
|
2483
|
+
l = c - cm, u = (0, K.jsx)("small", { className: "camera-capture-instructions", children: a });
|
|
2484
|
+
let f = cm + yu;
|
|
2485
|
+
c < f && (u = (0, K.jsx)(K.Fragment, {}));
|
|
2486
2486
|
}
|
|
2487
|
-
let d = { x: "50%", y: "5%", width: `min(90%, ${
|
|
2487
|
+
let d = { x: "50%", y: "5%", width: `min(90%, ${dm}px)`, height: `calc(90% - ${c}px)`, style: { transform: `translateX(max(-45%, -${dm / 2}px))` } }, g = { style: { left: "5%", top: `calc(100% - ${c}px - 5%)`, height: `calc(${l}px + 5%)`, width: "90%" } };
|
|
2488
2488
|
return (0, K.jsxs)("svg", { ref: s, xmlns: "http://www.w3.org/2000/svg", children: [(0, K.jsx)("defs", { children: (0, K.jsxs)("mask", { id: "mask", children: [(0, K.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, K.jsx)("image", i({ href: e }, d))] }) }), e && (0, K.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, K.jsx)("image", i({ href: t }, d)), (0, K.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, K.jsx)("div", b(i({ className: "camera-capture-text-and-image-container" }, g), { children: u })) })] });
|
|
2489
2489
|
};
|
|
2490
2490
|
var Pn = hu;
|
|
2491
|
-
var
|
|
2492
|
-
var
|
|
2493
|
-
var
|
|
2494
|
-
var so = (0,
|
|
2491
|
+
var pm = require("@transferwise/components");
|
|
2492
|
+
var fm = require("react-intl");
|
|
2493
|
+
var um = require("react-intl");
|
|
2494
|
+
var so = (0, um.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.NoCameraAccess.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting missing camera permissions" }, paragraph: { id: "dynamicFlows.CameraCapture.NoCameraAccess.paragraph", defaultMessage: "Enable camera access in your browser's settings to get going again.", description: "Further text of standalone page prompting missing camera permissions" }, action: { id: "dynamicFlows.CameraCapture.NoCameraAccess.action", defaultMessage: "Enable camera access", description: "Action to ask for camera permissions again" } });
|
|
2495
2495
|
var ze = require("react/jsx-runtime");
|
|
2496
2496
|
var gu = ({ onAction: e }) => {
|
|
2497
|
-
let t = (0,
|
|
2498
|
-
return (0, ze.jsx)("div", { id: "no-camera-access", children: (0, ze.jsx)("div", { className: "container p-t-5", children: (0, ze.jsx)("div", { className: "row", children: (0, ze.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, ze.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(so.title) }), (0, ze.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(so.paragraph) }), (0, ze.jsx)(
|
|
2497
|
+
let t = (0, fm.useIntl)();
|
|
2498
|
+
return (0, ze.jsx)("div", { id: "no-camera-access", children: (0, ze.jsx)("div", { className: "container p-t-5", children: (0, ze.jsx)("div", { className: "row", children: (0, ze.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, ze.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(so.title) }), (0, ze.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(so.paragraph) }), (0, ze.jsx)(pm.Button, { block: true, onClick: e, children: t.formatMessage(so.action) })] }) }) }) });
|
|
2499
2499
|
};
|
|
2500
2500
|
var Mn = gu;
|
|
2501
|
-
var
|
|
2502
|
-
var
|
|
2503
|
-
var kn = (0,
|
|
2501
|
+
var hm = require("react-intl");
|
|
2502
|
+
var ym = require("react-intl");
|
|
2503
|
+
var kn = (0, ym.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.CameraNotSupported.title", defaultMessage: "Camera not supported", description: "Title of standalone page prompting that camera is not available on users browser" }, paragraph: { id: "dynamicFlows.CameraCapture.CameraNotSupported.paragraph", defaultMessage: "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", description: "Further text of standalone page prompting that camera is not available on user's browser" } });
|
|
2504
2504
|
var tt = require("react/jsx-runtime");
|
|
2505
2505
|
var Su = () => {
|
|
2506
|
-
let e = (0,
|
|
2506
|
+
let e = (0, hm.useIntl)();
|
|
2507
2507
|
return (0, tt.jsx)("div", { id: "camera-not-supported", children: (0, tt.jsx)("div", { className: "container p-t-5", children: (0, tt.jsx)("div", { className: "row", children: (0, tt.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, tt.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(kn.title) }), (0, tt.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(kn.paragraph) })] }) }) }) });
|
|
2508
2508
|
};
|
|
2509
2509
|
var En = Su;
|
|
2510
|
-
var
|
|
2511
|
-
var
|
|
2512
|
-
var
|
|
2510
|
+
var gm = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
|
|
2511
|
+
var Sm = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await bu(t, r));
|
|
2512
|
+
var bm = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
|
|
2513
2513
|
var bu = async (e, t) => {
|
|
2514
2514
|
var a;
|
|
2515
|
-
let r = no(t), o =
|
|
2516
|
-
return b(i({}, r && { "Available Video Devices (by label)": await
|
|
2515
|
+
let r = no(t), o = On(t), n = (a = r == null ? void 0 : r.getSettings) == null ? void 0 : a.call(r);
|
|
2516
|
+
return b(i({}, r && { "Available Video Devices (by label)": await sm(), "Active Video Device (by label)": await mm(t), "Camera Capabilities": o, "Camera Settings": n }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
2517
2517
|
};
|
|
2518
2518
|
var te = require("react/jsx-runtime");
|
|
2519
|
-
var wu = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: n = "", instructions: a = "", showReview: s = false, onCapture:
|
|
2520
|
-
let [
|
|
2521
|
-
var
|
|
2522
|
-
if ((
|
|
2523
|
-
(
|
|
2524
|
-
let re = await
|
|
2519
|
+
var wu = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: n = "", instructions: a = "", showReview: s = false, onCapture: l, onEvent: u }) => {
|
|
2520
|
+
let [c, d] = (0, Ce.useState)("CAPTURE"), [g, f] = (0, Ce.useState)(false), [m, p] = (0, Ce.useState)(false), [y, S] = (0, Ce.useState)(), h = (0, Ce.useRef)(null), { videoConstraints: F } = lm(e), w = (0, wm.useIntl)(), v = (0, Ce.useCallback)(async () => {
|
|
2521
|
+
var A, V, k, H, Ae, ae;
|
|
2522
|
+
if ((A = h == null ? void 0 : h.current) != null && A.video && ((k = (V = h == null ? void 0 : h.current) == null ? void 0 : V.video) == null ? void 0 : k.readyState) >= 3) {
|
|
2523
|
+
(Ae = (H = h == null ? void 0 : h.current) == null ? void 0 : H.video) == null || Ae.pause();
|
|
2524
|
+
let re = await am((ae = h == null ? void 0 : h.current) == null ? void 0 : ae.video);
|
|
2525
2525
|
re == null || re.toBlob((de) => {
|
|
2526
2526
|
if (de)
|
|
2527
2527
|
if (s) {
|
|
2528
2528
|
let hr = window.URL.createObjectURL(de);
|
|
2529
2529
|
S({ source: hr, blob: de }), d("REVIEW");
|
|
2530
2530
|
} else
|
|
2531
|
-
|
|
2531
|
+
l(de);
|
|
2532
2532
|
}, "image/jpeg", 0.92);
|
|
2533
2533
|
}
|
|
2534
|
-
}, [h, s, S, d,
|
|
2535
|
-
if (
|
|
2536
|
-
d("NO_CAMERA_ACCESS"),
|
|
2534
|
+
}, [h, s, S, d, l, g]), O = (0, Ce.useCallback)((A) => {
|
|
2535
|
+
if (A instanceof DOMException && (A == null ? void 0 : A.name) === "NotAllowedError") {
|
|
2536
|
+
d("NO_CAMERA_ACCESS"), gm(u);
|
|
2537
2537
|
return;
|
|
2538
2538
|
}
|
|
2539
|
-
d("CAMERA_NOT_SUPPORTED"),
|
|
2540
|
-
}, [d, u]), C = (0, Ce.useCallback)((
|
|
2541
|
-
p(true), f(
|
|
2539
|
+
d("CAMERA_NOT_SUPPORTED"), bm(u, A);
|
|
2540
|
+
}, [d, u]), C = (0, Ce.useCallback)((A) => {
|
|
2541
|
+
p(true), f(om(A)), Sm(u, { direction: e }, A);
|
|
2542
2542
|
}, [f, u, e]), D = () => {
|
|
2543
|
-
|
|
2543
|
+
l((y == null ? void 0 : y.blob) || null);
|
|
2544
2544
|
}, T = () => {
|
|
2545
2545
|
d("CAPTURE"), S(void 0);
|
|
2546
|
-
}, P = () => d("CAPTURE"), N = (0, te.jsxs)(te.Fragment, { children: [F && (0, te.jsx)(
|
|
2547
|
-
return (0, te.jsxs)("section", { className: "camera-capture", children: [
|
|
2546
|
+
}, P = () => d("CAPTURE"), N = (0, te.jsxs)(te.Fragment, { children: [F && (0, te.jsx)(Fm.default, { ref: h, audio: false, videoConstraints: F, mirrored: g, onUserMediaError: O, onUserMedia: C }), (0, te.jsx)(Pn, { overlay: t, outline: r, imageUrl: o, title: n, instructions: a }), m && (0, te.jsx)(tm, { onCapture: () => void v() })] }), G = (0, te.jsxs)(te.Fragment, { children: [(0, te.jsx)("img", { className: "review-image", src: y == null ? void 0 : y.source, alt: "" }), (0, te.jsx)(Pn, { overlay: t, imageUrl: o, title: n, instructions: a, reviewInstructions: w.formatMessage(pr.reviewInstructions) }), (0, te.jsx)(rm, { onSubmit: D, onRetry: T })] });
|
|
2547
|
+
return (0, te.jsxs)("section", { className: "camera-capture", children: [c === "CAPTURE" && N, c === "REVIEW" && G, c === "NO_CAMERA_ACCESS" && (0, te.jsx)(Mn, { onAction: P }), c === "CAMERA_NOT_SUPPORTED" && (0, te.jsx)(En, {})] });
|
|
2548
2548
|
};
|
|
2549
2549
|
var In = wu;
|
|
2550
|
-
var
|
|
2550
|
+
var xm = require("react/jsx-runtime");
|
|
2551
2551
|
function Fu(e) {
|
|
2552
2552
|
return new Promise((t, r) => {
|
|
2553
2553
|
let o = new FileReader();
|
|
@@ -2555,35 +2555,35 @@ var require_main_min = __commonJS({
|
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
2557
2557
|
var Cu = (e) => {
|
|
2558
|
-
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = Q(), s =
|
|
2559
|
-
(0,
|
|
2558
|
+
let { step: t, model: r, onModelChange: o, onAction: n } = e, a = Q(), s = Cm(t), l = xu(t), u = Au(t), { title: c, image: d, cameraConfig: g } = l, { assets: f, direction: m, instructions: p } = g || {}, { overlay: y, outline: S } = f || {}, { url: h } = d || {}, [F, w] = (0, mo.useState)(false);
|
|
2559
|
+
(0, mo.useEffect)(() => {
|
|
2560
2560
|
F && n(u);
|
|
2561
2561
|
}, [r]);
|
|
2562
|
-
let v = async (
|
|
2563
|
-
let { $id: C } =
|
|
2564
|
-
if (
|
|
2565
|
-
let D = await Fu(
|
|
2566
|
-
w(true), o({ model: T, formSchema: s, triggerModel: D, triggerSchema:
|
|
2562
|
+
let v = async (O) => {
|
|
2563
|
+
let { $id: C } = l;
|
|
2564
|
+
if (O) {
|
|
2565
|
+
let D = await Fu(O), T = { [C || ""]: D };
|
|
2566
|
+
w(true), o({ model: T, formSchema: s, triggerModel: D, triggerSchema: l });
|
|
2567
2567
|
}
|
|
2568
2568
|
};
|
|
2569
|
-
return (0,
|
|
2570
|
-
v(
|
|
2569
|
+
return (0, xm.jsx)(In, { overlay: y, outline: S, title: c, imageUrl: h, instructions: p, direction: m, onEvent: a, onCapture: (O) => {
|
|
2570
|
+
v(O);
|
|
2571
2571
|
} });
|
|
2572
2572
|
};
|
|
2573
|
-
var
|
|
2574
|
-
function
|
|
2573
|
+
var lo = Cu;
|
|
2574
|
+
function Cm(e) {
|
|
2575
2575
|
let r = Lr(e.schemas || [])[0];
|
|
2576
2576
|
if (!r || !Pe(r))
|
|
2577
2577
|
throw new Error("The first schema in a camera step is expected to be of type object and have at least one property with a schema...");
|
|
2578
2578
|
return r;
|
|
2579
2579
|
}
|
|
2580
2580
|
function xu(e) {
|
|
2581
|
-
let t =
|
|
2581
|
+
let t = Cm(e), r = Object.values(t.properties)[0];
|
|
2582
2582
|
if (!r)
|
|
2583
2583
|
throw new Error("The first schema in a camera step is expected to be of type object and have at least one property with a schema...");
|
|
2584
2584
|
return r;
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function Au(e) {
|
|
2587
2587
|
var t, r;
|
|
2588
2588
|
if (!e.schemas || ((t = Lr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2589
2589
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
@@ -2591,70 +2591,70 @@ var require_main_min = __commonJS({
|
|
|
2591
2591
|
throw new Error("camera step expects 1 action");
|
|
2592
2592
|
return e.actions[0];
|
|
2593
2593
|
}
|
|
2594
|
-
var
|
|
2595
|
-
var
|
|
2596
|
-
var fr = (0,
|
|
2597
|
-
var
|
|
2598
|
-
var
|
|
2594
|
+
var Om = require("react-intl");
|
|
2595
|
+
var Am = require("react-intl");
|
|
2596
|
+
var fr = (0, Am.defineMessages)({ title: { id: "dynamicFlows.ExternalConfirmation.title", defaultMessage: "Please confirm", description: "Heading for the confirmation screen." }, description: { id: "dynamicFlows.ExternalConfirmation.description", defaultMessage: "Please confirm you want to open **{origin}** in a new browser tab.", description: "Description for the confirmation screen." }, open: { id: "dynamicFlows.ExternalConfirmation.open", defaultMessage: "Open in new tab", description: "Button text confirming opening a new browser tab." }, cancel: { id: "dynamicFlows.ExternalConfirmation.cancel", defaultMessage: "Cancel", description: "Button text rejecting opening a new browser tab." } });
|
|
2597
|
+
var Pm = require("react/jsx-runtime");
|
|
2598
|
+
var vm = () => {
|
|
2599
2599
|
};
|
|
2600
2600
|
var vu = ({ url: e, onClose: t }) => {
|
|
2601
|
-
let { formatMessage: r } = (0,
|
|
2602
|
-
return (0,
|
|
2601
|
+
let { formatMessage: r } = (0, Om.useIntl)();
|
|
2602
|
+
return (0, Pm.jsx)(me, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(fr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(fr.description, { origin: Ou(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(fr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(fr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (o) => {
|
|
2603
2603
|
o.url && window.open(o.url, "_blank"), t();
|
|
2604
|
-
}, onModelChange:
|
|
2604
|
+
}, onModelChange: vm, onPersistAsync: vm });
|
|
2605
2605
|
};
|
|
2606
|
-
var
|
|
2607
|
-
function
|
|
2606
|
+
var co = vu;
|
|
2607
|
+
function Ou(e) {
|
|
2608
2608
|
try {
|
|
2609
2609
|
return new URL(e).origin;
|
|
2610
2610
|
} catch (t) {
|
|
2611
2611
|
return e;
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
|
-
var
|
|
2615
|
-
var
|
|
2614
|
+
var Mm = require("@transferwise/components");
|
|
2615
|
+
var km = require("@transferwise/icons");
|
|
2616
2616
|
var qt = require("react/jsx-runtime");
|
|
2617
2617
|
var Pu = ({ title: e, action: t, onAction: r }) => (0, qt.jsxs)("a", { onClick: (o) => {
|
|
2618
2618
|
o.preventDefault(), r(b(i({}, t), { skipValidation: true }));
|
|
2619
|
-
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, qt.jsx)("span", { className: "sr-only", children: e }), (0, qt.jsx)(
|
|
2620
|
-
var
|
|
2619
|
+
}, href: "/", className: "df-back-btn", "aria-label": e, children: [(0, qt.jsx)("span", { className: "sr-only", children: e }), (0, qt.jsx)(Mm.Avatar, { type: "icon", children: (0, qt.jsx)(km.ArrowLeft, { size: "24" }) })] });
|
|
2620
|
+
var Em = Pu;
|
|
2621
2621
|
var De = require("react/jsx-runtime");
|
|
2622
2622
|
var qr = (e) => {
|
|
2623
|
-
var u,
|
|
2624
|
-
let { step: t, globalError: r, onAction: o } = e, n = (u = t == null ? void 0 : t.external) == null ? void 0 : u.url, a = (
|
|
2625
|
-
return t === void 0 ? null : n && s ? (0, De.jsx)(
|
|
2623
|
+
var u, c;
|
|
2624
|
+
let { step: t, globalError: r, onAction: o } = e, n = (u = t == null ? void 0 : t.external) == null ? void 0 : u.url, a = (c = t == null ? void 0 : t.navigation) == null ? void 0 : c.backButton, { requiresManualTrigger: s, dismissConfirmation: l } = Da(n);
|
|
2625
|
+
return t === void 0 ? null : n && s ? (0, De.jsx)(co, { url: n, onClose: l }) : Ma(t) ? (0, De.jsx)(lo, b(i({}, e), { step: t })) : (0, De.jsxs)(De.Fragment, { children: [a && (0, De.jsx)(Em, b(i({}, a), { onAction: o })), r ? (0, De.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, De.jsx)(oo, b(i({}, e), { stepSpecification: t }))] });
|
|
2626
2626
|
};
|
|
2627
|
-
var
|
|
2627
|
+
var Im = require("react");
|
|
2628
2628
|
var Mu = 1e3;
|
|
2629
|
-
function
|
|
2630
|
-
let t = (0,
|
|
2629
|
+
function Dm(e) {
|
|
2630
|
+
let t = (0, Im.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
|
|
2631
2631
|
if (t.current.has(o))
|
|
2632
2632
|
return t.current.get(o);
|
|
2633
|
-
let n = We((a, s,
|
|
2633
|
+
let n = We((a, s, l) => e(a, s, l), Mu);
|
|
2634
2634
|
return t.current.set(o, n), n;
|
|
2635
2635
|
};
|
|
2636
2636
|
return function(o, n, a, s) {
|
|
2637
|
-
let
|
|
2638
|
-
|
|
2637
|
+
let l = r(o);
|
|
2638
|
+
l(o, n, a), (!s || !ku(s)) && l.flush();
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
2641
|
var ku = (e) => it(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2642
2642
|
var Gt = require("react");
|
|
2643
|
-
var
|
|
2644
|
-
var
|
|
2645
|
-
let [t, r] = (0, Gt.useState)((
|
|
2643
|
+
var Nm = (e) => {
|
|
2644
|
+
var m, p;
|
|
2645
|
+
let [t, r] = (0, Gt.useState)((m = e == null ? void 0 : e.errors) == null ? void 0 : m.validation), [o, n] = (0, Gt.useState)((p = e == null ? void 0 : e.errors) == null ? void 0 : p.error), [a, s] = (0, Gt.useState)({ step: e || void 0, models: e != null && e.model ? Lm(e.model, Tm(e)) : {}, etag: void 0 }), { step: l, models: u, etag: c } = a, d = (y, S) => {
|
|
2646
2646
|
var h, F, w, v;
|
|
2647
|
-
s((
|
|
2647
|
+
s((O) => ({ step: y, models: y.model ? Lm(y.model, Tm(y)) : O.models, etag: S })), r((F = (h = y == null ? void 0 : y.errors) == null ? void 0 : h.validation) != null ? F : null), n((v = (w = y == null ? void 0 : y.errors) == null ? void 0 : w.error) != null ? v : null);
|
|
2648
2648
|
}, g = (y, S, h) => {
|
|
2649
2649
|
s((F) => {
|
|
2650
2650
|
let w = b(i({}, F.models), { [y]: S }), v = { step: F.step, models: w, etag: F.etag };
|
|
2651
2651
|
return h(w), v;
|
|
2652
2652
|
});
|
|
2653
|
-
}, f = (0, Gt.useMemo)(() => Iu(u, Eu(
|
|
2654
|
-
return { formErrors: t, globalError: o, step:
|
|
2653
|
+
}, f = (0, Gt.useMemo)(() => Iu(u, Eu(l)), [u, l]);
|
|
2654
|
+
return { formErrors: t, globalError: o, step: l, models: u, etag: c, modelIsValid: f, setFormErrors: r, setGlobalError: n, setStepAndEtag: d, setSchemaModel: g };
|
|
2655
2655
|
};
|
|
2656
|
-
var
|
|
2657
|
-
var
|
|
2656
|
+
var Lm = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), b(i({}, r), { [o.$id || ""]: ie(e, o) || {} })), {});
|
|
2657
|
+
var Tm = (e) => [...uo((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
|
|
2658
2658
|
var uo = (e) => e.flatMap((t) => {
|
|
2659
2659
|
switch (t.type) {
|
|
2660
2660
|
case "columns":
|
|
@@ -2662,7 +2662,7 @@ var require_main_min = __commonJS({
|
|
|
2662
2662
|
case "box":
|
|
2663
2663
|
return uo(t.components);
|
|
2664
2664
|
case "form":
|
|
2665
|
-
return
|
|
2665
|
+
return Rm(t.schema) ? [t.schema] : [];
|
|
2666
2666
|
default:
|
|
2667
2667
|
return [];
|
|
2668
2668
|
}
|
|
@@ -2681,27 +2681,27 @@ var require_main_min = __commonJS({
|
|
|
2681
2681
|
}
|
|
2682
2682
|
}).filter(Boolean);
|
|
2683
2683
|
var Iu = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !_(e[r.$id || ""] || {}, r))));
|
|
2684
|
-
var Du = (e) => e.schema && !
|
|
2685
|
-
var
|
|
2684
|
+
var Du = (e) => e.schema && !Rm(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2685
|
+
var Rm = (e) => e !== void 0 && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "$ref") === false;
|
|
2686
2686
|
var po = require("@transferwise/components");
|
|
2687
|
-
var
|
|
2688
|
-
var
|
|
2689
|
-
function
|
|
2690
|
-
let r = i({ size: po.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, n] = (0,
|
|
2687
|
+
var Bm = require("react");
|
|
2688
|
+
var jm = require("react/jsx-runtime");
|
|
2689
|
+
function Vm(e, t) {
|
|
2690
|
+
let r = i({ size: po.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, n] = (0, Bm.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0, jm.jsx)(po.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
|
|
2691
2691
|
return { isLoading: o !== "idle", setLoadingState: n, loader: s };
|
|
2692
2692
|
}
|
|
2693
|
-
var
|
|
2693
|
+
var qm = require("react");
|
|
2694
2694
|
var fo = require("@transferwise/components");
|
|
2695
|
-
var
|
|
2696
|
-
var
|
|
2697
|
-
var
|
|
2698
|
-
let { formatMessage: t } = (0,
|
|
2699
|
-
return (0,
|
|
2695
|
+
var Um = require("react-intl");
|
|
2696
|
+
var Hm = require("react/jsx-runtime");
|
|
2697
|
+
var zm = ({ onDismiss: e }) => {
|
|
2698
|
+
let { formatMessage: t } = (0, Um.useIntl)();
|
|
2699
|
+
return (0, Hm.jsx)(fo.Alert, { action: { text: t(zt.retry), href: window.location.href }, message: t(zt.errorAlert), type: fo.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2700
2700
|
};
|
|
2701
2701
|
var $t = require("react/jsx-runtime");
|
|
2702
2702
|
var Lu = () => {
|
|
2703
2703
|
};
|
|
2704
|
-
var Ln = class extends
|
|
2704
|
+
var Ln = class extends qm.Component {
|
|
2705
2705
|
constructor(r) {
|
|
2706
2706
|
super(r);
|
|
2707
2707
|
this.handleErrorReset = () => {
|
|
@@ -2718,30 +2718,30 @@ var require_main_min = __commonJS({
|
|
|
2718
2718
|
}
|
|
2719
2719
|
render() {
|
|
2720
2720
|
let { children: r } = this.props, { hasError: o, isFatalError: n } = this.state;
|
|
2721
|
-
return (0, $t.jsxs)($t.Fragment, { children: [o && (0, $t.jsx)(
|
|
2721
|
+
return (0, $t.jsxs)($t.Fragment, { children: [o && (0, $t.jsx)(zm, { onDismiss: this.handleErrorReset }), !n && r] });
|
|
2722
2722
|
}
|
|
2723
2723
|
};
|
|
2724
2724
|
var Tn = Ln;
|
|
2725
2725
|
var Tu = async (e) => {
|
|
2726
2726
|
switch (e.headers.get("X-Df-ResponseType")) {
|
|
2727
2727
|
case "step":
|
|
2728
|
-
return
|
|
2728
|
+
return Gm(e);
|
|
2729
2729
|
case "exit":
|
|
2730
|
-
return
|
|
2730
|
+
return _m(e);
|
|
2731
2731
|
case "action":
|
|
2732
|
-
return $
|
|
2732
|
+
return $m(e);
|
|
2733
2733
|
default:
|
|
2734
2734
|
throw new Error("Unsupported X-Df-ResponseType. Allowed values are 'step', 'action', 'exit'.");
|
|
2735
2735
|
}
|
|
2736
2736
|
};
|
|
2737
|
-
var
|
|
2737
|
+
var Gm = async (e) => {
|
|
2738
2738
|
let t = await yr(e);
|
|
2739
2739
|
if (!L(t))
|
|
2740
2740
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
2741
2741
|
let r = e.headers.get("etag") || void 0;
|
|
2742
2742
|
return { type: "step", step: t, etag: r };
|
|
2743
2743
|
};
|
|
2744
|
-
var $
|
|
2744
|
+
var $m = async (e) => {
|
|
2745
2745
|
let t = await yr(e);
|
|
2746
2746
|
if (!L(t))
|
|
2747
2747
|
throw new Error("Incorrect response body in response. Expected an object.");
|
|
@@ -2750,17 +2750,17 @@ var require_main_min = __commonJS({
|
|
|
2750
2750
|
let r = t.action;
|
|
2751
2751
|
return r.exit === true && L(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
|
|
2752
2752
|
};
|
|
2753
|
-
var
|
|
2754
|
-
var
|
|
2753
|
+
var _m = async (e) => ({ type: "exit", result: await Nn(e) });
|
|
2754
|
+
var Wm = async (e) => {
|
|
2755
2755
|
var r, o;
|
|
2756
2756
|
if (Rn(e), (r = e.headers) != null && r.has("X-Df-ResponseType"))
|
|
2757
2757
|
return Tu(e);
|
|
2758
2758
|
if ((o = e.headers) != null && o.has("X-Df-Exit"))
|
|
2759
|
-
return
|
|
2759
|
+
return _m(e);
|
|
2760
2760
|
let t = await yr(e.clone());
|
|
2761
|
-
return L(t) && t.action ? $
|
|
2761
|
+
return L(t) && t.action ? $m(e) : Gm(e);
|
|
2762
2762
|
};
|
|
2763
|
-
var
|
|
2763
|
+
var Km = async (e) => {
|
|
2764
2764
|
Rn(e);
|
|
2765
2765
|
let t = await yr(e);
|
|
2766
2766
|
if (!L(t))
|
|
@@ -2789,17 +2789,17 @@ var require_main_min = __commonJS({
|
|
|
2789
2789
|
};
|
|
2790
2790
|
var Nu = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2791
2791
|
var rt = require("react/jsx-runtime");
|
|
2792
|
-
var
|
|
2792
|
+
var Jm = () => {
|
|
2793
2793
|
};
|
|
2794
|
-
var Ru = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: n, displayStepTitle: a = true, onCompletion: s, onError:
|
|
2795
|
-
let { locale: d } = (0,
|
|
2794
|
+
var Ru = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: n, displayStepTitle: a = true, onCompletion: s, onError: l, onEvent: u = Jm, onLog: c = Jm }) => {
|
|
2795
|
+
let { locale: d } = (0, Xm.useIntl)(), { formErrors: g, globalError: f, step: m, models: p, etag: y, modelIsValid: S, setFormErrors: h, setGlobalError: F, setStepAndEtag: w, setSchemaModel: v } = Nm(o), [O, C] = (0, xe.useState)(false), { isLoading: D, loader: T, setLoadingState: P } = Vm(n, o ? "idle" : "initial"), N = nt("critical", c, e, (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key)), G = (0, xe.useMemo)(() => {
|
|
2796
2796
|
var x;
|
|
2797
|
-
return i({ flowId: e, stepId: (
|
|
2798
|
-
}, [e,
|
|
2797
|
+
return i({ flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key) }, (x = m == null ? void 0 : m.analytics) != null ? x : {});
|
|
2798
|
+
}, [e, m]), A = (0, xe.useMemo)(() => wo(u, G), [u, G]), V = (0, xe.useCallback)(({ action: x, data: j, etag: I }) => {
|
|
2799
2799
|
let { url: Z, method: He = "POST" } = x;
|
|
2800
2800
|
return t(Z != null ? Z : "", { method: He, headers: i({ "accept-language": d, "Content-Type": "application/json" }, I ? { "If-None-Match": I } : {}), credentials: "include", body: He === "GET" ? void 0 : JSON.stringify(j) });
|
|
2801
2801
|
}, [t, d]), k = async (x, j = {}) => {
|
|
2802
|
-
P(
|
|
2802
|
+
P(m ? "submission" : "initial"), A("Dynamic Flow - Step Submitted", { actionId: x.id || x.$id });
|
|
2803
2803
|
try {
|
|
2804
2804
|
let I = await V({ action: x, data: j });
|
|
2805
2805
|
await hr(I, "submission");
|
|
@@ -2807,14 +2807,14 @@ var require_main_min = __commonJS({
|
|
|
2807
2807
|
gr(I, "Error fetching next step");
|
|
2808
2808
|
}
|
|
2809
2809
|
}, H = async (x, j, I) => {
|
|
2810
|
-
P("refresh"),
|
|
2810
|
+
P("refresh"), A("Dynamic Flow - Step Refreshed", { status: "pending" });
|
|
2811
2811
|
try {
|
|
2812
2812
|
let Z = await V({ action: { url: x, method: "POST" }, data: j, etag: I });
|
|
2813
2813
|
await hr(Z, "refresh");
|
|
2814
2814
|
} catch (Z) {
|
|
2815
2815
|
gr(Z, "Error fetching refresh step");
|
|
2816
2816
|
}
|
|
2817
|
-
},
|
|
2817
|
+
}, Ae = async (x, j) => {
|
|
2818
2818
|
P("submission");
|
|
2819
2819
|
try {
|
|
2820
2820
|
let I = await V({ action: x, data: j });
|
|
@@ -2825,11 +2825,11 @@ var require_main_min = __commonJS({
|
|
|
2825
2825
|
}, ae = async (x, j) => {
|
|
2826
2826
|
let I = await Nn(x);
|
|
2827
2827
|
de(i(i({}, I), j));
|
|
2828
|
-
}, re =
|
|
2829
|
-
|
|
2830
|
-
}, [s,
|
|
2828
|
+
}, re = Dm(H), de = (0, xe.useCallback)((x) => {
|
|
2829
|
+
A("Dynamic Flow - Flow Finished", { result: "success" }), s(x);
|
|
2830
|
+
}, [s, A]);
|
|
2831
2831
|
(0, xe.useEffect)(() => {
|
|
2832
|
-
|
|
2832
|
+
A("Dynamic Flow - Flow Started", {});
|
|
2833
2833
|
}, []), (0, xe.useEffect)(() => {
|
|
2834
2834
|
if (!o) {
|
|
2835
2835
|
let x = i({ id: "#initial-step-request", method: "GET" }, r);
|
|
@@ -2843,71 +2843,71 @@ var require_main_min = __commonJS({
|
|
|
2843
2843
|
return;
|
|
2844
2844
|
}
|
|
2845
2845
|
if (!x.ok) {
|
|
2846
|
-
let Z = await
|
|
2847
|
-
|
|
2846
|
+
let Z = await Km(x);
|
|
2847
|
+
pl(Z);
|
|
2848
2848
|
return;
|
|
2849
2849
|
}
|
|
2850
|
-
let I = await
|
|
2851
|
-
I.type === "action" ? k(I.action, I.action.data) : I.type === "exit" ? de(I.result) :
|
|
2850
|
+
let I = await Wm(x);
|
|
2851
|
+
I.type === "action" ? k(I.action, I.action.data) : I.type === "exit" ? de(I.result) : ul(I.step, I.etag, j);
|
|
2852
2852
|
} catch (I) {
|
|
2853
2853
|
return gr(I, "Error parsing fetch response", j, x.status);
|
|
2854
2854
|
}
|
|
2855
|
-
},
|
|
2856
|
-
w(x, j), P("idle"), I === "submission" ? (C(false),
|
|
2857
|
-
},
|
|
2855
|
+
}, ul = (x, j, I) => {
|
|
2856
|
+
w(x, j), P("idle"), I === "submission" ? (C(false), A("Dynamic Flow - Step Started", i({ stepId: x.id || x.key }, x == null ? void 0 : x.analytics))) : A("Dynamic Flow - Step Refreshed", { status: "success" });
|
|
2857
|
+
}, pl = async (x) => {
|
|
2858
2858
|
let j = x.refreshUrl || x.refreshFormUrl;
|
|
2859
2859
|
j && await H(j, yo(p), y), x.validation && h(x.validation), x.error && F(x.error), P("idle");
|
|
2860
2860
|
}, gr = (x, j, I, Z) => {
|
|
2861
|
-
N("Error fetching", j), I === "refresh" &&
|
|
2862
|
-
},
|
|
2861
|
+
N("Error fetching", j), I === "refresh" && A("Dynamic Flow - Step Refreshed", { status: "failure" }), A("Dynamic Flow - Flow Finished", { status: "failure" }), l(x, Z), P("idle");
|
|
2862
|
+
}, fl = (x) => {
|
|
2863
2863
|
let { model: j, formSchema: I } = x, { $id: Z = "" } = I;
|
|
2864
2864
|
F(null), $(j) || N("Invalid model on change", "onModelChange was called but the model argument is not an object"), v(Z, j, (bt) => {
|
|
2865
|
-
|
|
2865
|
+
yl(x, bt);
|
|
2866
2866
|
});
|
|
2867
|
-
},
|
|
2867
|
+
}, yl = (x, j) => {
|
|
2868
2868
|
let { triggerSchema: I } = x;
|
|
2869
2869
|
if (ju(x)) {
|
|
2870
|
-
let Z = I.refreshUrl || I.refreshFormUrl, He = (
|
|
2870
|
+
let Z = I.refreshUrl || I.refreshFormUrl, He = (m == null ? void 0 : m.refreshUrl) || (m == null ? void 0 : m.refreshFormUrl), bt = Z || He;
|
|
2871
2871
|
bt && re(bt, yo(j), y, I);
|
|
2872
2872
|
}
|
|
2873
|
-
},
|
|
2873
|
+
}, hl = async (x) => {
|
|
2874
2874
|
if (D || x.disabled)
|
|
2875
2875
|
return;
|
|
2876
2876
|
if (x.exit && !x.url) {
|
|
2877
2877
|
de(x.result);
|
|
2878
2878
|
return;
|
|
2879
2879
|
}
|
|
2880
|
-
let j = x.exit ?
|
|
2880
|
+
let j = x.exit ? Ae : k, { data: I, method: Z, skipValidation: He } = x, bt = i(i({}, yo(p)), I);
|
|
2881
2881
|
Vu(Z) ? (h(null), He || C(true), (S || He) && await j(x, bt)) : await j(x);
|
|
2882
2882
|
};
|
|
2883
|
-
return (0, rt.jsx)(kr, { flowId: e, stepId: (
|
|
2884
|
-
|
|
2885
|
-
}, onModelChange:
|
|
2883
|
+
return (0, rt.jsx)(kr, { flowId: e, stepId: (m == null ? void 0 : m.id) || (m == null ? void 0 : m.key), onLog: c, children: (0, rt.jsx)(Cr, { metadata: G, onEvent: u, children: (0, rt.jsx)(Jn, { loading: D, children: (0, rt.jsx)(ea, { httpClient: t, children: T !== null ? T : (0, rt.jsx)(qr, { step: m, model: yo(p), submitted: O, globalError: f, formErrors: g, stepLayoutOptions: { displayStepTitle: a }, onAction: (x) => {
|
|
2884
|
+
hl(x);
|
|
2885
|
+
}, onModelChange: fl }) }) }) }) });
|
|
2886
2886
|
};
|
|
2887
2887
|
var Bu = (e) => (0, rt.jsx)(Tn, { onError: e.onError, children: (0, rt.jsx)(Ru, i({}, e)) });
|
|
2888
2888
|
var Bn = Bu;
|
|
2889
2889
|
var yo = (e) => Object.values(e).reduce((t, r) => i(i({}, t), r), {});
|
|
2890
2890
|
var Vu = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
2891
2891
|
var ju = (e) => {
|
|
2892
|
-
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: n = null } = e, a = () => _(o, r), s = () => _(n, r),
|
|
2893
|
-
return t !== "init" &&
|
|
2894
|
-
};
|
|
2895
|
-
var
|
|
2896
|
-
var
|
|
2897
|
-
var
|
|
2898
|
-
var
|
|
2899
|
-
var
|
|
2900
|
-
var
|
|
2901
|
-
var
|
|
2902
|
-
var
|
|
2903
|
-
var
|
|
2904
|
-
var
|
|
2905
|
-
var
|
|
2906
|
-
var
|
|
2907
|
-
var
|
|
2908
|
-
var
|
|
2909
|
-
var ep = { en:
|
|
2910
|
-
var
|
|
2892
|
+
let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: n = null } = e, a = () => _(o, r), s = () => _(n, r), l = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
2893
|
+
return t !== "init" && l && (a() || s());
|
|
2894
|
+
};
|
|
2895
|
+
var Ym = { "dynamicFlows.ArraySchema.addItem": "Speichern", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Speichern", "dynamicFlows.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.", "dynamicFlows.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.", "dynamicFlows.ArraySchema.removeItem": "Entfernen", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Der von dir verwendete Browser unterst\xFCtzt keine Kameras. Bitte verwende einen anderen Browser oder ein anderes Ger\xE4t, oder lade unsere App herunter", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera wird nicht unterst\xFCtzt", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamerazugriff genehmigen", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Aktiviere den Kamerazugriff in den Einstellungen deines Browsers, um weitermachen zu k\xF6nnen.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Wir k\xF6nnen nicht auf deine Kamera zugreifen", "dynamicFlows.CameraCapture.reviewInstructions": "Ist das aufgenommene Bild deutlich erkennbar und vollst\xE4ndig?", "dynamicFlows.CameraCapture.reviewRetry": "Nein, erneut versuchen", "dynamicFlows.CameraCapture.reviewSubmit": "Ja, senden", "dynamicFlows.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.", "dynamicFlows.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.", "dynamicFlows.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.", "dynamicFlows.ControlFeedback.minLength": "Bitte gib mindestens {minLength} Zeichen ein.", "dynamicFlows.ControlFeedback.minimum": "Bitte gib eine Zahl ein, die {minimum} oder mehr betr\xE4gt.", "dynamicFlows.ControlFeedback.minimumDate": "Bitte gib ein Datum ein, das am oder nach dem {minimum} liegt.", "dynamicFlows.ControlFeedback.pattern": "Bitte gib die Angabe im richtigen Format ein.", "dynamicFlows.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.", "dynamicFlows.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.", "dynamicFlows.ControlFeedback.type": "Falscher Typ", "dynamicFlows.DynamicExternal.retryTitle": "Fenster erneut \xF6ffnen", "dynamicFlows.DynamicParagraph.copied": "In Zwischenablage kopiert", "dynamicFlows.DynamicParagraph.copy": "Kopieren", "dynamicFlows.ErrorBoundary.errorAlert": "Hoppla \u2013 da ist was schiefgelaufen...", "dynamicFlows.ErrorBoundary.retry": "Erneut versuchen", "dynamicFlows.ExternalConfirmation.cancel": "Abbrechen", "dynamicFlows.ExternalConfirmation.description": "Bitte best\xE4tige, dass du **{origin}** in einem neuen Browser-Tab \xF6ffnen m\xF6chtest.", "dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen", "dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen", "dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Bitte lade {maxItems} oder weniger Dateien hoch.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.", "dynamicFlows.PersistAsyncSchema.genericError": "Da ist etwas schiefgelaufen. Probiere es bitte sp\xE4ter noch einmal.", "dynamicFlows.ReadOnlySchema.no": "Nein", "dynamicFlows.ReadOnlySchema.yes": "Ja" };
|
|
2896
|
+
var Zm = { "dynamicFlows.ArraySchema.addItem": "Save", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Save", "dynamicFlows.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.", "dynamicFlows.ArraySchema.minItemsError": "Please add at least {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Remove", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera not supported", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Enable camera access", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Enable camera access in your browser's settings to get going again.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "We can't access your camera", "dynamicFlows.CameraCapture.reviewInstructions": "Is your picture clear, readable and complete?", "dynamicFlows.CameraCapture.reviewRetry": "No, try again", "dynamicFlows.CameraCapture.reviewSubmit": "Yes, submit", "dynamicFlows.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.", "dynamicFlows.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.", "dynamicFlows.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Please enter at least {minLength} characters.", "dynamicFlows.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.", "dynamicFlows.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Please enter this in the correct format.", "dynamicFlows.ControlFeedback.patternDate": "Please enter a date in the corrrect format.", "dynamicFlows.ControlFeedback.required": "Please fill out this field.", "dynamicFlows.ControlFeedback.type": "Incorrect type", "dynamicFlows.DynamicExternal.retryTitle": "Reopen window", "dynamicFlows.DynamicParagraph.copied": "Copied to clipboard", "dynamicFlows.DynamicParagraph.copy": "Copy", "dynamicFlows.ErrorBoundary.errorAlert": "Oops. Something went wrong...", "dynamicFlows.ErrorBoundary.retry": "Retry", "dynamicFlows.ExternalConfirmation.cancel": "Cancel", "dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.", "dynamicFlows.ExternalConfirmation.open": "Open in new tab", "dynamicFlows.ExternalConfirmation.title": "Please confirm", "dynamicFlows.Help.ariaLabel": "Click here for more info.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Something went wrong, please try again later!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "Yes" };
|
|
2897
|
+
var Qm = { "dynamicFlows.ArraySchema.addItem": "Guardar", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Guardar", "dynamicFlows.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.", "dynamicFlows.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Eliminar", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "El navegador que est\xE1s utilizando no es compatible con una c\xE1mara. Prueba con otro navegador, dispositivo o descarga nuestra app m\xF3vil.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE1mara no compatible", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Habilitar acceso a la c\xE1mara", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Habilita el acceso a la c\xE1mara en la configuraci\xF3n de tu navegador para volver a activarla.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "No podemos acceder a tu c\xE1mara", "dynamicFlows.CameraCapture.reviewInstructions": "\xBFTu foto es clara, legible y completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, intentar de nuevo", "dynamicFlows.CameraCapture.reviewSubmit": "S\xED, enviar", "dynamicFlows.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.", "dynamicFlows.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Introduce al menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Introduce una cifra igual o inferior a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Introduce una fecha que sea igual o posterior al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Utiliza el formato correcto.", "dynamicFlows.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.", "dynamicFlows.ControlFeedback.required": "Completa este campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorrecto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir ventana", "dynamicFlows.DynamicParagraph.copied": "Copiado al portapapeles", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Vaya. Algo ha salido mal...", "dynamicFlows.ErrorBoundary.retry": "Reintentar", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Confirma que quieres abrir **{origin}** en una nueva pesta\xF1a del navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir en nueva pesta\xF1a", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirma", "dynamicFlows.Help.ariaLabel": "Haz clic aqu\xED para obtener m\xE1s informaci\xF3n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Sube {maxItems} o menos archivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo ha ido mal. Int\xE9ntalo de nuevo m\xE1s tarde.", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xED" };
|
|
2898
|
+
var el = { "dynamicFlows.ArraySchema.addItem": "Enregistrer", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Enregistrer", "dynamicFlows.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.", "dynamicFlows.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Supprimer", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Le navigateur que vous utilisez ne prend pas en charge l'appareil photo. Veuillez essayer un autre navigateur, un autre appareil ou t\xE9l\xE9charger notre appli.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Appareil photo non pris en charge", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Autoriser l'acc\xE8s \xE0 l'appareil photo", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Autorisez l'acc\xE8s \xE0 l'appareil photo depuis les param\xE8tres de votre navigateur.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nous n'avons pas acc\xE8s \xE0 votre appareil photo", "dynamicFlows.CameraCapture.reviewInstructions": "Votre image est-elle claire, lisible et dans son int\xE9gralit\xE9\xA0?", "dynamicFlows.CameraCapture.reviewRetry": "Non, r\xE9essayer", "dynamicFlows.CameraCapture.reviewSubmit": "Oui, confirmer", "dynamicFlows.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.", "dynamicFlows.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Veuillez saisir au moins {minLength} caract\xE8res.", "dynamicFlows.ControlFeedback.minimum": "Veuillez saisir un nombre sup\xE9rieur ou \xE9gal \xE0 {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Veuillez saisir une date \xE9gale ou post\xE9rieure au {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Veuillez saisir les informations dans le bon format.", "dynamicFlows.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.", "dynamicFlows.ControlFeedback.required": "Champ obligatoire.", "dynamicFlows.ControlFeedback.type": "Type incorrect", "dynamicFlows.DynamicExternal.retryTitle": "Rouvrir la fen\xEAtre", "dynamicFlows.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier", "dynamicFlows.DynamicParagraph.copy": "Copier", "dynamicFlows.ErrorBoundary.errorAlert": "Oups\xA0! Une erreur s'est produite...", "dynamicFlows.ErrorBoundary.retry": "R\xE9essayer", "dynamicFlows.ExternalConfirmation.cancel": "Annuler", "dynamicFlows.ExternalConfirmation.description": "Veuillez confirmer que vous souhaitez ouvrir **{origin}** dans un nouvel onglet.", "dynamicFlows.ExternalConfirmation.open": "Ouvrir dans un nouvel onglet", "dynamicFlows.ExternalConfirmation.title": "Veuillez confirmer", "dynamicFlows.Help.ariaLabel": "Cliquez ici pour plus d'informations.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Veuillez t\xE9l\xE9charger {maxItems} fichiers ou moins.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Un probl\xE8me est survenu, veuillez r\xE9essayer plus tard !", "dynamicFlows.ReadOnlySchema.no": "Non", "dynamicFlows.ReadOnlySchema.yes": "Oui" };
|
|
2899
|
+
var tl = { "dynamicFlows.ArraySchema.addItem": "Ment\xE9s", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Ment\xE9s", "dynamicFlows.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.", "dynamicFlows.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.", "dynamicFlows.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1sra", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Az \xE1ltalad haszn\xE1lt b\xF6ng\xE9sz\u0151 nem t\xE1mogatja a kamera haszn\xE1lat\xE1t. K\xE9r\xFCnk, pr\xF3b\xE1lkozz m\xE1s b\xF6ng\xE9sz\u0151vel, eszk\xF6zzel vagy t\xF6ltsd le az appot", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera nem t\xE1mogatott", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamer\xE1hoz val\xF3 hozz\xE1f\xE9r\xE9s enged\xE9lyez\xE9se", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz. Ezt a telefonod be\xE1ll\xEDt\xE1saiban enged\xE9lyezheted", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz", "dynamicFlows.CameraCapture.reviewInstructions": "Tiszta, olvashat\xF3, teljes k\xE9pet k\xE9sz\xEDtett\xE9l?", "dynamicFlows.CameraCapture.reviewRetry": "Nem, pr\xF3b\xE1ljuk \xFAjra", "dynamicFlows.CameraCapture.reviewSubmit": "Igen, elk\xFCld\xF6m", "dynamicFlows.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.", "dynamicFlows.ControlFeedback.minLength": "K\xE9r\xFCnk, legal\xE1bb {minLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.minimum": "K\xE9r\xFCnk add meg ezt vagy egy enn\xE9l nagyobb sz\xE1mot: {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {minimum} napj\xE1val, vagy egy enn\xE9l k\xE9s\u0151bbit.", "dynamicFlows.ControlFeedback.pattern": "Helytelen form\xE1tum", "dynamicFlows.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.", "dynamicFlows.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.", "dynamicFlows.ControlFeedback.type": "Helytelen t\xEDpus", "dynamicFlows.DynamicExternal.retryTitle": "Ablak \xFAjranyit\xE1sa", "dynamicFlows.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva", "dynamicFlows.DynamicParagraph.copy": "M\xE1sol\xE1s", "dynamicFlows.ErrorBoundary.errorAlert": "Hopp\xE1! Valami hiba t\xF6rt\xE9nt...", "dynamicFlows.ErrorBoundary.retry": "\xDAjra", "dynamicFlows.ExternalConfirmation.cancel": "M\xE9gsem", "dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.", "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon", "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s", "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra k\xE9s\u0151bb!", "dynamicFlows.ReadOnlySchema.no": "Nem", "dynamicFlows.ReadOnlySchema.yes": "Igen" };
|
|
2900
|
+
var rl = { "dynamicFlows.ArraySchema.addItem": "Simpan", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Simpan", "dynamicFlows.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.", "dynamicFlows.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Hapus", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browser yang Anda gunakan tidak mendukung kamera. Silakan coba browser, perangkat yang lain, atau unduh aplikasi seluler kami.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera tidak didukung", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Izinkan akses kamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Untuk melanjutkan lagi, aktifkan akses kamera di pengaturan browser Anda.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kami tidak dapat mengakses kamera Anda", "dynamicFlows.CameraCapture.reviewInstructions": "Apakah gambar Anda jelas, dapat dibaca, dan lengkap?", "dynamicFlows.CameraCapture.reviewRetry": "Tidak, coba lagi", "dynamicFlows.CameraCapture.reviewSubmit": "Ya, kirim", "dynamicFlows.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.", "dynamicFlows.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.", "dynamicFlows.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Harap masukkan setidaknya {minLength} karakter.", "dynamicFlows.ControlFeedback.minimum": "Harap masukkan angka paling kecil {minimum} atau lebih dari itu.", "dynamicFlows.ControlFeedback.minimumDate": "Harap masukkan tanggal pada atau setelah {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Mohon masukkan ini dalam format yang benar.", "dynamicFlows.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.", "dynamicFlows.ControlFeedback.required": "Harap isi kolom ini.", "dynamicFlows.ControlFeedback.type": "Tipe salah", "dynamicFlows.DynamicExternal.retryTitle": "Buka window kembali", "dynamicFlows.DynamicParagraph.copied": "Disalin ke clipboard", "dynamicFlows.DynamicParagraph.copy": "Salin", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Terjadi kesalahan...", "dynamicFlows.ErrorBoundary.retry": "Coba lagi", "dynamicFlows.ExternalConfirmation.cancel": "Batalkan", "dynamicFlows.ExternalConfirmation.description": "Harap konfirmasikan bahwa Anda ingin membuka **{origin}** di tab browser baru.", "dynamicFlows.ExternalConfirmation.open": "Buka di tab baru", "dynamicFlows.ExternalConfirmation.title": "Harap konfirmasi", "dynamicFlows.Help.ariaLabel": "Klik di sini untuk info selengkapnya.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Harap unggah {maxItems} file atau kurang.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi nanti!", "dynamicFlows.ReadOnlySchema.no": "Tidak", "dynamicFlows.ReadOnlySchema.yes": "Ya" };
|
|
2901
|
+
var ol = { "dynamicFlows.ArraySchema.addItem": "Salva", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Salva", "dynamicFlows.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Rimuovi", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Il browser che stai usando non supporta la videocamera. Prova con un altro browser o dispositivo, oppure scarica la nostra app", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Videocamera non supportata", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Consenti l'accesso alla fotocamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Non abbiamo accesso alla tua fotocamera. Puoi abilitare l'accesso nelle impostazioni del tuo browser", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Accesso alla fotocamera disabilitato", "dynamicFlows.CameraCapture.reviewInstructions": "La tua foto \xE8 chiara, ben leggibile e completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, riprova", "dynamicFlows.CameraCapture.reviewSubmit": "S\xEC, invia", "dynamicFlows.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.", "dynamicFlows.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Inserisci almeno {minLength} caratteri.", "dynamicFlows.ControlFeedback.minimum": "Inserisci un numero uguale o superiore a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Inserisci una data corrispondente o successiva al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Inseriscilo in un formato corretto.", "dynamicFlows.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.", "dynamicFlows.ControlFeedback.required": "Compila questo campo.", "dynamicFlows.ControlFeedback.type": "Tipo errato", "dynamicFlows.DynamicExternal.retryTitle": "Riapri la finestra", "dynamicFlows.DynamicParagraph.copied": "Copiato negli appunti", "dynamicFlows.DynamicParagraph.copy": "Copia", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Qualcosa \xE8 andato storto...", "dynamicFlows.ErrorBoundary.retry": "Riprova", "dynamicFlows.ExternalConfirmation.cancel": "Annulla", "dynamicFlows.ExternalConfirmation.description": "Conferma di voler aprire **{origin}** in una nuova scheda del browser.", "dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda", "dynamicFlows.ExternalConfirmation.title": "Conferma", "dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Carica al massimo {maxItems} file.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova pi\xF9 tardi!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xEC" };
|
|
2902
|
+
var nl = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58\u3059\u308B", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "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": "\u9589\u3058\u308B", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u304A\u5BA2\u69D8\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u5225\u306E\u30D6\u30E9\u30A6\u30B6\u307E\u305F\u306F\u30C7\u30D0\u30A4\u30B9\u3092\u4F7F\u7528\u3059\u308B\u304B\u3001\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u8A31\u53EF\u3059\u308B", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u30D6\u30E9\u30A6\u30B6\u306E\u8A2D\u5B9A\u3067\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u6709\u52B9\u306B\u3057\u3066\u3001\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.reviewInstructions": "\u5199\u771F\u304C\u9BAE\u660E\u3067\u3001\u3059\u3079\u3066\u306E\u60C5\u5831\u304C\u8AAD\u307F\u53D6\u308C\u6B20\u3051\u3066\u3044\u308B\u90E8\u5206\u306A\u3069\u306F\u3042\u308A\u307E\u305B\u3093\u304B\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u3044\u3044\u3048\u3001\u64AE\u308A\u76F4\u3059", "dynamicFlows.CameraCapture.reviewSubmit": "\u306F\u3044\u3001\u9001\u4FE1\u3059\u308B", "dynamicFlows.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximumDate": "{maximum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u524D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minLength": "{minLength}\u6587\u5B57\u4EE5\u4E0A\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimum": "{minimum}\u4EE5\u4E0A\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimumDate": "{minimum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u964D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.pattern": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002", "dynamicFlows.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7", "dynamicFlows.DynamicExternal.retryTitle": "\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u3082\u3046\u4E00\u5EA6\u958B\u304F", "dynamicFlows.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F", "dynamicFlows.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B", "dynamicFlows.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F...", "dynamicFlows.ErrorBoundary.retry": "\u3084\u308A\u76F4\u3059", "dynamicFlows.ExternalConfirmation.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB\u3059\u308B", "dynamicFlows.ExternalConfirmation.description": "\u65B0\u3057\u3044\u30D6\u30E9\u30A6\u30B6\u30BF\u30D6\u3067**{origin}**\u3092\u958B\u304F\u3053\u3068\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ExternalConfirmation.open": "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F", "dynamicFlows.ExternalConfirmation.title": "\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044", "dynamicFlows.Help.ariaLabel": "\u8A73\u7D30\u306F\u3053\u3061\u3089\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "{maxItems}\u500B\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "{minItems}\u500B\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ReadOnlySchema.no": "\u3044\u3044\u3048", "dynamicFlows.ReadOnlySchema.yes": "\u306F\u3044" };
|
|
2903
|
+
var al = { "dynamicFlows.ArraySchema.addItem": "Zapisz", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Zapisz", "dynamicFlows.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Usu\u0144", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Przegl\u0105darka, kt\xF3rej u\u017Cywasz, nie obs\u0142uguje aparatu. Wypr\xF3buj inn\u0105 przegl\u0105dark\u0119 lub urz\u0105dzenie albo pobierz nasz\u0105 aplikacj\u0119 mobiln\u0105.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Aparat nie jest obs\u0142ugiwany", "dynamicFlows.CameraCapture.NoCameraAccess.action": "W\u0142\u0105cz dost\u0119p do aparatu", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "W\u0142\u0105cz dost\u0119p do aparatu w ustawieniach przegl\u0105darki, \u017Ceby rozpocz\u0105\u0107 ponownie.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nie mo\u017Cemy uzyska\u0107 dost\u0119pu do Twojego aparatu", "dynamicFlows.CameraCapture.reviewInstructions": "Czy Twoje zdj\u0119cie jest wyra\u017Ane, czytelne i kompletne?", "dynamicFlows.CameraCapture.reviewRetry": "Nie, spr\xF3buj ponownie", "dynamicFlows.CameraCapture.reviewSubmit": "Tak, prze\u015Blij", "dynamicFlows.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.", "dynamicFlows.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Prosz\u0119 wpisa\u0107 co najmniej {minLength} znak\xF3w.", "dynamicFlows.ControlFeedback.minimum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub wi\u0119ksz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Wprowad\u017A dat\u0119 nie wcze\u015Bniejsz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Wprowad\u017A t\u0119 warto\u015B\u0107 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.", "dynamicFlows.ControlFeedback.type": "Nieprawid\u0142owy typ", "dynamicFlows.DynamicExternal.retryTitle": "Otw\xF3rz okno ponownie", "dynamicFlows.DynamicParagraph.copied": "Skopiowano do schowka", "dynamicFlows.DynamicParagraph.copy": "Kopiuj", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Wyst\u0105pi\u0142 b\u0142\u0105d...", "dynamicFlows.ErrorBoundary.retry": "Spr\xF3buj ponownie", "dynamicFlows.ExternalConfirmation.cancel": "Anuluj", "dynamicFlows.ExternalConfirmation.description": "Prosimy potwierdzi\u0107, \u017Ce chcesz otworzy\u0107 **{origin}** w nowej zak\u0142adce przegl\u0105darki.", "dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce", "dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A", "dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Prze\u015Blij do {maxItems} plik\xF3w.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.", "dynamicFlows.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, spr\xF3buj ponownie p\xF3\u017Aniej!", "dynamicFlows.ReadOnlySchema.no": "Nie", "dynamicFlows.ReadOnlySchema.yes": "Tak" };
|
|
2904
|
+
var il = { "dynamicFlows.ArraySchema.addItem": "Salvar", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Salvar", "dynamicFlows.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.", "dynamicFlows.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Remover", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "O navegador que voc\xEA est\xE1 usando n\xE3o permite o uso da c\xE2mera. Por favor, tente com outro navegador ou computador, ou baixe o nosso aplicativo", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE2mera indispon\xEDvel", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permitir acesso \xE0 c\xE2mera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Ative o acesso \xE0 c\xE2mera nas configura\xE7\xF5es do navegador para continuar.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "N\xE3o temos acesso \xE0 sua c\xE2mera", "dynamicFlows.CameraCapture.reviewInstructions": "A sua foto est\xE1 clara, leg\xEDvel e aparece por inteiro?", "dynamicFlows.CameraCapture.reviewRetry": "N\xE3o, tentar novamente", "dynamicFlows.CameraCapture.reviewSubmit": "Sim, enviar", "dynamicFlows.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.", "dynamicFlows.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.", "dynamicFlows.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Por favor, insira pelo menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Por favor, insira um n\xFAmero que seja {minimum} ou mais.", "dynamicFlows.ControlFeedback.minimumDate": "Por favor, insira uma data que seja em ou ap\xF3s {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Por favor, insira essa informa\xE7\xE3o no formato correto.", "dynamicFlows.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.", "dynamicFlows.ControlFeedback.required": "Por favor, preencha o campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorreto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir janela", "dynamicFlows.DynamicParagraph.copied": "Copiado", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Algo deu errado...", "dynamicFlows.ErrorBoundary.retry": "Tentar novamente", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Por favor, confirme que deseja abrir * *{origin}* * em uma nova aba do navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirme", "dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Por favor, envie {maxItems} ou menos arquivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo deu errado. Por favor, tente novamente mais tarde!", "dynamicFlows.ReadOnlySchema.no": "N\xE3o", "dynamicFlows.ReadOnlySchema.yes": "Sim" };
|
|
2905
|
+
var sl = { "dynamicFlows.ArraySchema.addItem": "Salvare", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Salvare", "dynamicFlows.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.", "dynamicFlows.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.", "dynamicFlows.ArraySchema.removeItem": "Elimin\u0103", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browserul pe care \xEEl folose\u0219ti nu poate folosi o camer\u0103 foto. Te rug\u0103m s\u0103 \xEEncerci alt browser, alt dispozitiv sau s\u0103 descarci aplica\u021Bia noastr\u0103.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera nu este acceptat\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permite acces la camer\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Permite accesul la camera foto \xEEn set\u0103rile browserului t\u0103u, pentru a re\xEEncepe.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nu \xEE\u021Bi putem accesa camera", "dynamicFlows.CameraCapture.reviewInstructions": "Imaginea ta este clar\u0103, lizibil\u0103 \u0219i complet\u0103?", "dynamicFlows.CameraCapture.reviewRetry": "Nu, \xEEncearc\u0103 din nou", "dynamicFlows.CameraCapture.reviewSubmit": "Da, trimite", "dynamicFlows.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.", "dynamicFlows.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.", "dynamicFlows.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Te rug\u0103m s\u0103 introduci cel pu\u021Bin {minLength} caractere.", "dynamicFlows.ControlFeedback.minimum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {minimum} sau mai mare.", "dynamicFlows.ControlFeedback.minimumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de dup\u0103 sau egal\u0103 cu {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Te rug\u0103m s\u0103 introduci acest lucru \xEEn formatul corect.", "dynamicFlows.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.", "dynamicFlows.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.", "dynamicFlows.ControlFeedback.type": "Tip incorect", "dynamicFlows.DynamicExternal.retryTitle": "Redeschide fereastra", "dynamicFlows.DynamicParagraph.copied": "Copiat \xEEn clipboard", "dynamicFlows.DynamicParagraph.copy": "Copiaz\u0103", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Ceva nu a mers bine...", "dynamicFlows.ErrorBoundary.retry": "\xCEncearc\u0103 din nou", "dynamicFlows.ExternalConfirmation.cancel": "Anuleaz\u0103", "dynamicFlows.ExternalConfirmation.description": "Te rug\u0103m s\u0103 confirmi c\u0103 vrei s\u0103 deschizi **{origin}** \xEEntr-o nou\u0103 fil\u0103 a browserului.", "dynamicFlows.ExternalConfirmation.open": "Deschide \xEEntr-o fil\u0103 nou\u0103", "dynamicFlows.ExternalConfirmation.title": "Te rug\u0103m s\u0103 confirmi", "dynamicFlows.Help.ariaLabel": "D\u0103 click aici pentru mai multe informa\u021Bii.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Te rug\u0103m s\u0103 \xEEncarci {maxItems} fi\u0219iere sau mai pu\u021Bine.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).", "dynamicFlows.PersistAsyncSchema.genericError": "Ceva nu a mers bine. Te rug\u0103m s\u0103 \xEEncerci din nou mai t\xE2rziu!", "dynamicFlows.ReadOnlySchema.no": "Nu", "dynamicFlows.ReadOnlySchema.yes": "Da" };
|
|
2906
|
+
var ml = { "dynamicFlows.ArraySchema.addItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.", "dynamicFlows.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u044B\u0439 \u0432\u0430\u043C\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043A\u0430\u043C\u0435\u0440\u0443. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043B\u0438 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0438\u043B\u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043D\u0430\u0448\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435 \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u041C\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0432\u0430\u0448\u0435\u0439 \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.reviewInstructions": "\u0412\u0430\u0448\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F \u0447\u0435\u0442\u043A\u0430\u044F, \u043B\u0435\u0433\u043A\u043E \u0447\u0438\u0442\u0430\u0435\u043C\u0430\u044F \u0438 \u043D\u0435 \u043E\u0431\u0440\u0435\u0437\u0430\u043D\u0430?", "dynamicFlows.CameraCapture.reviewRetry": "\u041D\u0435\u0442, \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0435 \u0440\u0430\u0437", "dynamicFlows.CameraCapture.reviewSubmit": "\u0414\u0430, \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C", "dynamicFlows.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {maximum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.minLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minLength} \u0441\u0438\u043C\u0432\u043E\u043B\u0430(-\u043E\u0432).", "dynamicFlows.ControlFeedback.minimum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.minimumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u043F\u043E\u0437\u0434\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.pattern": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u044D\u0442\u043E \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.patternDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443 \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.", "dynamicFlows.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F", "dynamicFlows.DynamicExternal.retryTitle": "\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E", "dynamicFlows.DynamicParagraph.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430", "dynamicFlows.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C", "dynamicFlows.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A...", "dynamicFlows.ErrorBoundary.retry": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443", "dynamicFlows.ExternalConfirmation.cancel": "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C", "dynamicFlows.ExternalConfirmation.description": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C **{origin}** \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", "dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435", "dynamicFlows.ExternalConfirmation.title": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435", "dynamicFlows.Help.ariaLabel": "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 {maxItems} \u0444\u0430\u0439\u043B\u043E\u0432.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems} \u0444\u0430\u0439\u043B(-\u0430/\u043E\u0432).", "dynamicFlows.PersistAsyncSchema.genericError": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435!", "dynamicFlows.ReadOnlySchema.no": "\u041D\u0435\u0442", "dynamicFlows.ReadOnlySchema.yes": "\u0414\u0430" };
|
|
2907
|
+
var ll = { "dynamicFlows.ArraySchema.addItem": "Kaydet", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "Kaydet", "dynamicFlows.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n", "dynamicFlows.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.", "dynamicFlows.ArraySchema.removeItem": "Kald\u0131r", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Kulland\u0131\u011F\u0131n\u0131z taray\u0131c\u0131da kamera deste\u011Fi yok. Farkl\u0131 bir taray\u0131c\u0131 / cihaz deneyin veya mobil uygulamam\u0131z\u0131 indirin.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera desteklenmiyor", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamera eri\u015Fimi verin", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Tekrar ba\u015Flamak i\xE7in taray\u0131c\u0131n\u0131z\u0131n ayarlar\u0131nda kamera eri\u015Fimini etkinle\u015Ftirin.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kameran\u0131za eri\u015Femiyoruz", "dynamicFlows.CameraCapture.reviewInstructions": "Foto\u011Fraf\u0131n\u0131z net, okunakl\u0131 ve eksiksiz mi?", "dynamicFlows.CameraCapture.reviewRetry": "Hay\u0131r, tekrar dene", "dynamicFlows.CameraCapture.reviewSubmit": "Evet, g\xF6nder", "dynamicFlows.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.", "dynamicFlows.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.", "dynamicFlows.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.", "dynamicFlows.ControlFeedback.minLength": "En az {minLength} karakter girebilirsiniz.", "dynamicFlows.ControlFeedback.minimum": "L\xFCtfen {minimum} veya daha y\xFCksek bir say\u0131 girin.", "dynamicFlows.ControlFeedback.minimumDate": "L\xFCtfen {minimum} veya daha ge\xE7 bir tarih girin.", "dynamicFlows.ControlFeedback.pattern": "Yanl\u0131\u015F bi\xE7im", "dynamicFlows.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.", "dynamicFlows.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.", "dynamicFlows.ControlFeedback.type": "Ge\xE7ersiz se\xE7im", "dynamicFlows.DynamicExternal.retryTitle": "Pencereyi yeniden a\xE7", "dynamicFlows.DynamicParagraph.copied": "Panoya kopyaland\u0131", "dynamicFlows.DynamicParagraph.copy": "Kopyala", "dynamicFlows.ErrorBoundary.errorAlert": "Aman\u0131n! Bir \u015Feyler ters gitti...", "dynamicFlows.ErrorBoundary.retry": "Tekrar dene", "dynamicFlows.ExternalConfirmation.cancel": "\u0130ptal edin", "dynamicFlows.ExternalConfirmation.description": "L\xFCtfen yeni bir taray\u0131c\u0131 sekmesinde **{origin}** a\xE7mak istedi\u011Finizi onaylay\u0131n.", "dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7", "dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n", "dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.", "dynamicFlows.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin", "dynamicFlows.ReadOnlySchema.no": "Hay\u0131r", "dynamicFlows.ReadOnlySchema.yes": "Evet" };
|
|
2908
|
+
var cl = { "dynamicFlows.ArraySchema.addItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "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" };
|
|
2909
|
+
var ep = { en: Zm, de: Ym, es: Qm, fr: el, hu: tl, id: rl, it: ol, ja: nl, pl: al, pt: il, ro: sl, ru: ml, tr: ll, zh: cl };
|
|
2910
|
+
var dl = ep;
|
|
2911
2911
|
}
|
|
2912
2912
|
});
|
|
2913
2913
|
|