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