@wise/dynamic-flow-client-internal 2.8.7 → 2.8.9
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 +430 -428
- package/build/main.min.js +1 -1
- package/package.json +20 -20
package/build/main.js
CHANGED
|
@@ -84,38 +84,38 @@ var require_main_min = __commonJS({
|
|
|
84
84
|
};
|
|
85
85
|
var Ee = (e, t, r) => (r = e != null ? zm(qm(e)) : {}, nn(t || !e || !e.__esModule ? Zt(r, "default", { value: e, enumerable: true }) : r, e));
|
|
86
86
|
var $m = (e) => nn(Zt({}, "__esModule", { value: true }), e);
|
|
87
|
-
var Xe = Aa((
|
|
87
|
+
var Xe = Aa((cf, Ur) => {
|
|
88
88
|
"use strict";
|
|
89
89
|
(function() {
|
|
90
90
|
"use strict";
|
|
91
|
-
var e = {}.hasOwnProperty
|
|
92
|
-
function
|
|
93
|
-
for (var
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
var i = typeof n;
|
|
97
|
-
if (i === "string" || i === "number")
|
|
98
|
-
a.push(n);
|
|
99
|
-
else if (Array.isArray(n)) {
|
|
100
|
-
if (n.length) {
|
|
101
|
-
var c = r.apply(null, n);
|
|
102
|
-
c && a.push(c);
|
|
103
|
-
}
|
|
104
|
-
} else if (i === "object") {
|
|
105
|
-
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
|
|
106
|
-
a.push(n.toString());
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
for (var l in n)
|
|
110
|
-
e.call(n, l) && n[l] && a.push(l);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
91
|
+
var e = {}.hasOwnProperty;
|
|
92
|
+
function t() {
|
|
93
|
+
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
94
|
+
var i = arguments[n];
|
|
95
|
+
i && (o = a(o, r(i)));
|
|
113
96
|
}
|
|
114
|
-
return
|
|
97
|
+
return o;
|
|
98
|
+
}
|
|
99
|
+
function r(o) {
|
|
100
|
+
if (typeof o == "string" || typeof o == "number")
|
|
101
|
+
return o;
|
|
102
|
+
if (typeof o != "object")
|
|
103
|
+
return "";
|
|
104
|
+
if (Array.isArray(o))
|
|
105
|
+
return t.apply(null, o);
|
|
106
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
107
|
+
return o.toString();
|
|
108
|
+
var n = "";
|
|
109
|
+
for (var i in o)
|
|
110
|
+
e.call(o, i) && o[i] && (n = a(n, i));
|
|
111
|
+
return n;
|
|
115
112
|
}
|
|
116
|
-
|
|
117
|
-
return
|
|
118
|
-
}
|
|
113
|
+
function a(o, n) {
|
|
114
|
+
return n ? o ? o + " " + n : o + n : o;
|
|
115
|
+
}
|
|
116
|
+
typeof Ur != "undefined" && Ur.exports ? (t.default = t, Ur.exports = t) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
|
|
117
|
+
return t;
|
|
118
|
+
}) : window.classNames = t;
|
|
119
119
|
})();
|
|
120
120
|
});
|
|
121
121
|
var Fc = Aa((hr, jo) => {
|
|
@@ -141,8 +141,8 @@ var require_main_min = __commonJS({
|
|
|
141
141
|
var i = /* @__PURE__ */ Object.create(null);
|
|
142
142
|
if (a.r(i), Object.defineProperty(i, "default", { enumerable: true, value: o }), n & 2 && typeof o != "string")
|
|
143
143
|
for (var c in o)
|
|
144
|
-
a.d(i, c, function(
|
|
145
|
-
return o[
|
|
144
|
+
a.d(i, c, function(d) {
|
|
145
|
+
return o[d];
|
|
146
146
|
}.bind(null, c));
|
|
147
147
|
return i;
|
|
148
148
|
}, a.n = function(o) {
|
|
@@ -158,45 +158,45 @@ var require_main_min = __commonJS({
|
|
|
158
158
|
}({ "./src/react-webcam.tsx": function(t, r, a) {
|
|
159
159
|
"use strict";
|
|
160
160
|
a.r(r);
|
|
161
|
-
var o = a("react"), n = a.n(o), i = function() {
|
|
161
|
+
var o = a("react"), n = a.n(o), i = /* @__PURE__ */ function() {
|
|
162
162
|
var h = function(y, u) {
|
|
163
|
-
return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
164
|
-
|
|
165
|
-
} || function(
|
|
163
|
+
return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, f) {
|
|
164
|
+
l.__proto__ = f;
|
|
165
|
+
} || function(l, f) {
|
|
166
166
|
for (var w in f)
|
|
167
|
-
f.hasOwnProperty(w) && (
|
|
167
|
+
f.hasOwnProperty(w) && (l[w] = f[w]);
|
|
168
168
|
}, h(y, u);
|
|
169
169
|
};
|
|
170
170
|
return function(y, u) {
|
|
171
171
|
h(y, u);
|
|
172
|
-
function
|
|
172
|
+
function l() {
|
|
173
173
|
this.constructor = y;
|
|
174
174
|
}
|
|
175
|
-
y.prototype = u === null ? Object.create(u) : (
|
|
175
|
+
y.prototype = u === null ? Object.create(u) : (l.prototype = u.prototype, new l());
|
|
176
176
|
};
|
|
177
177
|
}(), c = function() {
|
|
178
178
|
return c = Object.assign || function(h) {
|
|
179
|
-
for (var y, u = 1,
|
|
179
|
+
for (var y, u = 1, l = arguments.length; u < l; u++) {
|
|
180
180
|
y = arguments[u];
|
|
181
181
|
for (var f in y)
|
|
182
182
|
Object.prototype.hasOwnProperty.call(y, f) && (h[f] = y[f]);
|
|
183
183
|
}
|
|
184
184
|
return h;
|
|
185
185
|
}, c.apply(this, arguments);
|
|
186
|
-
},
|
|
186
|
+
}, d = function(h, y) {
|
|
187
187
|
var u = {};
|
|
188
|
-
for (var
|
|
189
|
-
Object.prototype.hasOwnProperty.call(h,
|
|
188
|
+
for (var l in h)
|
|
189
|
+
Object.prototype.hasOwnProperty.call(h, l) && y.indexOf(l) < 0 && (u[l] = h[l]);
|
|
190
190
|
if (h != null && typeof Object.getOwnPropertySymbols == "function")
|
|
191
|
-
for (var f = 0,
|
|
192
|
-
y.indexOf(
|
|
191
|
+
for (var f = 0, l = Object.getOwnPropertySymbols(h); f < l.length; f++)
|
|
192
|
+
y.indexOf(l[f]) < 0 && Object.prototype.propertyIsEnumerable.call(h, l[f]) && (u[l[f]] = h[l[f]]);
|
|
193
193
|
return u;
|
|
194
194
|
};
|
|
195
195
|
(function() {
|
|
196
196
|
typeof window != "undefined" && (navigator.mediaDevices === void 0 && (navigator.mediaDevices = {}), navigator.mediaDevices.getUserMedia === void 0 && (navigator.mediaDevices.getUserMedia = function(y) {
|
|
197
197
|
var u = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
|
|
198
|
-
return u ? new Promise(function(
|
|
199
|
-
u.call(navigator, y,
|
|
198
|
+
return u ? new Promise(function(l, f) {
|
|
199
|
+
u.call(navigator, y, l, f);
|
|
200
200
|
}) : Promise.reject(new Error("getUserMedia is not implemented in this browser"));
|
|
201
201
|
}));
|
|
202
202
|
})();
|
|
@@ -206,43 +206,43 @@ var require_main_min = __commonJS({
|
|
|
206
206
|
var p = function(h) {
|
|
207
207
|
i(y, h);
|
|
208
208
|
function y(u) {
|
|
209
|
-
var
|
|
210
|
-
return
|
|
209
|
+
var l = h.call(this, u) || this;
|
|
210
|
+
return l.canvas = null, l.ctx = null, l.requestUserMediaId = 0, l.unmounted = false, l.state = { hasUserMedia: false }, l;
|
|
211
211
|
}
|
|
212
212
|
return y.prototype.componentDidMount = function() {
|
|
213
|
-
var u = this,
|
|
213
|
+
var u = this, l = u.state, f = u.props;
|
|
214
214
|
if (this.unmounted = false, !m()) {
|
|
215
215
|
f.onUserMediaError("getUserMedia not supported");
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
l.hasUserMedia || this.requestUserMedia(), f.children && typeof f.children != "function" && console.warn("children must be a function");
|
|
219
219
|
}, y.prototype.componentDidUpdate = function(u) {
|
|
220
|
-
var
|
|
220
|
+
var l = this.props;
|
|
221
221
|
if (!m()) {
|
|
222
|
-
|
|
222
|
+
l.onUserMediaError("getUserMedia not supported");
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
var f = JSON.stringify(u.audioConstraints) !== JSON.stringify(
|
|
225
|
+
var f = JSON.stringify(u.audioConstraints) !== JSON.stringify(l.audioConstraints), w = JSON.stringify(u.videoConstraints) !== JSON.stringify(l.videoConstraints), S = u.minScreenshotWidth !== l.minScreenshotWidth, F = u.minScreenshotHeight !== l.minScreenshotHeight;
|
|
226
226
|
(w || S || F) && (this.canvas = null, this.ctx = null), (f || w) && (this.stopAndCleanup(), this.requestUserMedia());
|
|
227
227
|
}, y.prototype.componentWillUnmount = function() {
|
|
228
228
|
this.unmounted = true, this.stopAndCleanup();
|
|
229
229
|
}, y.stopMediaStream = function(u) {
|
|
230
|
-
u && (u.getVideoTracks && u.getAudioTracks ? (u.getVideoTracks().map(function(
|
|
231
|
-
u.removeTrack(
|
|
232
|
-
}), u.getAudioTracks().map(function(
|
|
233
|
-
u.removeTrack(
|
|
230
|
+
u && (u.getVideoTracks && u.getAudioTracks ? (u.getVideoTracks().map(function(l) {
|
|
231
|
+
u.removeTrack(l), l.stop();
|
|
232
|
+
}), u.getAudioTracks().map(function(l) {
|
|
233
|
+
u.removeTrack(l), l.stop();
|
|
234
234
|
})) : u.stop());
|
|
235
235
|
}, y.prototype.stopAndCleanup = function() {
|
|
236
236
|
var u = this.state;
|
|
237
237
|
u.hasUserMedia && (y.stopMediaStream(this.stream), u.src && window.URL.revokeObjectURL(u.src));
|
|
238
238
|
}, y.prototype.getScreenshot = function(u) {
|
|
239
|
-
var
|
|
239
|
+
var l = this, f = l.state, w = l.props;
|
|
240
240
|
if (!f.hasUserMedia)
|
|
241
241
|
return null;
|
|
242
242
|
var S = this.getCanvas(u);
|
|
243
243
|
return S && S.toDataURL(w.screenshotFormat, w.screenshotQuality);
|
|
244
244
|
}, y.prototype.getCanvas = function(u) {
|
|
245
|
-
var
|
|
245
|
+
var l = this, f = l.state, w = l.props;
|
|
246
246
|
if (!this.video || !f.hasUserMedia || !this.video.videoHeight)
|
|
247
247
|
return null;
|
|
248
248
|
if (!this.ctx) {
|
|
@@ -256,9 +256,9 @@ var require_main_min = __commonJS({
|
|
|
256
256
|
var v = this, O = v.ctx, x = v.canvas;
|
|
257
257
|
return O && x && (x.width = (u == null ? void 0 : u.width) || x.width, x.height = (u == null ? void 0 : u.height) || x.height, w.mirrored && (O.translate(x.width, 0), O.scale(-1, 1)), O.imageSmoothingEnabled = w.imageSmoothing, O.drawImage(this.video, 0, 0, (u == null ? void 0 : u.width) || x.width, (u == null ? void 0 : u.height) || x.height), w.mirrored && (O.scale(-1, 1), O.translate(-x.width, 0))), x;
|
|
258
258
|
}, y.prototype.requestUserMedia = function() {
|
|
259
|
-
var u = this,
|
|
259
|
+
var u = this, l = this.props, f = function(F, g) {
|
|
260
260
|
var v = { video: typeof g != "undefined" ? g : true };
|
|
261
|
-
|
|
261
|
+
l.audio && (v.audio = typeof F != "undefined" ? F : true), u.requestUserMediaId++;
|
|
262
262
|
var O = u.requestUserMediaId;
|
|
263
263
|
navigator.mediaDevices.getUserMedia(v).then(function(x) {
|
|
264
264
|
u.unmounted || O !== u.requestUserMediaId ? y.stopMediaStream(x) : u.handleUserMedia(null, x);
|
|
@@ -267,7 +267,7 @@ var require_main_min = __commonJS({
|
|
|
267
267
|
});
|
|
268
268
|
};
|
|
269
269
|
if ("mediaDevices" in navigator)
|
|
270
|
-
f(
|
|
270
|
+
f(l.audioConstraints, l.videoConstraints);
|
|
271
271
|
else {
|
|
272
272
|
var w = function(F) {
|
|
273
273
|
return { optional: [{ sourceId: F }] };
|
|
@@ -280,27 +280,27 @@ var require_main_min = __commonJS({
|
|
|
280
280
|
F.forEach(function(M) {
|
|
281
281
|
M.kind === "audio" ? g = M.id : M.kind === "video" && (v = M.id);
|
|
282
282
|
});
|
|
283
|
-
var O = S(
|
|
283
|
+
var O = S(l.audioConstraints);
|
|
284
284
|
O && (g = O);
|
|
285
|
-
var x = S(
|
|
285
|
+
var x = S(l.videoConstraints);
|
|
286
286
|
x && (v = x), f(w(g), w(v));
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
-
}, y.prototype.handleUserMedia = function(u,
|
|
289
|
+
}, y.prototype.handleUserMedia = function(u, l) {
|
|
290
290
|
var f = this.props;
|
|
291
|
-
if (u || !
|
|
291
|
+
if (u || !l) {
|
|
292
292
|
this.setState({ hasUserMedia: false }), f.onUserMediaError(u);
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
this.stream =
|
|
295
|
+
this.stream = l;
|
|
296
296
|
try {
|
|
297
|
-
this.video && (this.video.srcObject =
|
|
297
|
+
this.video && (this.video.srcObject = l), this.setState({ hasUserMedia: true });
|
|
298
298
|
} catch (w) {
|
|
299
|
-
this.setState({ hasUserMedia: true, src: window.URL.createObjectURL(
|
|
299
|
+
this.setState({ hasUserMedia: true, src: window.URL.createObjectURL(l) });
|
|
300
300
|
}
|
|
301
|
-
f.onUserMedia(
|
|
301
|
+
f.onUserMedia(l);
|
|
302
302
|
}, y.prototype.render = function() {
|
|
303
|
-
var u = this,
|
|
303
|
+
var u = this, l = this, f = l.state, w = l.props, S = w.audio, F = w.forceScreenshotSourceSize, g = w.disablePictureInPicture, v = w.onUserMedia, O = w.onUserMediaError, x = w.screenshotFormat, M = w.screenshotQuality, E = w.minScreenshotWidth, P = w.minScreenshotHeight, D = w.audioConstraints, U = w.videoConstraints, ee = w.imageSmoothing, A = w.mirrored, B = w.style, k = B === void 0 ? {} : B, ie = w.children, W = d(w, ["audio", "forceScreenshotSourceSize", "disablePictureInPicture", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), X = A ? c(c({}, k), { transform: (k.transform || "") + " scaleX(-1)" }) : k, ke = { getScreenshot: this.getScreenshot.bind(this) };
|
|
304
304
|
return o.createElement(o.Fragment, null, o.createElement("video", c({ autoPlay: true, disablePictureInPicture: g, src: f.src, muted: !S, playsInline: true, ref: function(nt) {
|
|
305
305
|
u.video = nt;
|
|
306
306
|
}, style: X }, W)), ie && ie(ke));
|
|
@@ -314,12 +314,12 @@ var require_main_min = __commonJS({
|
|
|
314
314
|
} }).default;
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
|
-
var Mc = Aa((
|
|
317
|
+
var Mc = Aa((VF, wr) => {
|
|
318
318
|
"use strict";
|
|
319
319
|
(function() {
|
|
320
320
|
"use strict";
|
|
321
321
|
var e = typeof window != "undefined" && typeof window.document != "undefined" ? window.document : {}, t = typeof wr != "undefined" && wr.exports, r = function() {
|
|
322
|
-
for (var n, i = [["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"], ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"], ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]], c = 0,
|
|
322
|
+
for (var n, i = [["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"], ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"], ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]], c = 0, d = i.length, m = {}; c < d; c++)
|
|
323
323
|
if (n = i[c], n && n[1] in e) {
|
|
324
324
|
for (c = 0; c < n.length; c++)
|
|
325
325
|
m[i[0][c]] = n[c];
|
|
@@ -327,13 +327,13 @@ var require_main_min = __commonJS({
|
|
|
327
327
|
}
|
|
328
328
|
return false;
|
|
329
329
|
}(), a = { change: r.fullscreenchange, error: r.fullscreenerror }, o = { request: function(n, i) {
|
|
330
|
-
return new Promise(function(c,
|
|
330
|
+
return new Promise(function(c, d) {
|
|
331
331
|
var m = function() {
|
|
332
332
|
this.off("change", m), c();
|
|
333
333
|
}.bind(this);
|
|
334
334
|
this.on("change", m), n = n || e.documentElement;
|
|
335
335
|
var p = n[r.requestFullscreen](i);
|
|
336
|
-
p instanceof Promise && p.then(m).catch(
|
|
336
|
+
p instanceof Promise && p.then(m).catch(d);
|
|
337
337
|
}.bind(this));
|
|
338
338
|
}, exit: function() {
|
|
339
339
|
return new Promise(function(n, i) {
|
|
@@ -345,8 +345,8 @@ var require_main_min = __commonJS({
|
|
|
345
345
|
this.off("change", c), n();
|
|
346
346
|
}.bind(this);
|
|
347
347
|
this.on("change", c);
|
|
348
|
-
var
|
|
349
|
-
|
|
348
|
+
var d = e[r.exitFullscreen]();
|
|
349
|
+
d instanceof Promise && d.then(c).catch(i);
|
|
350
350
|
}.bind(this));
|
|
351
351
|
}, toggle: function(n, i) {
|
|
352
352
|
return this.isFullscreen ? this.exit() : this.request(n, i);
|
|
@@ -374,9 +374,9 @@ var require_main_min = __commonJS({
|
|
|
374
374
|
} } }), t ? wr.exports = o : window.screenfull = o;
|
|
375
375
|
})();
|
|
376
376
|
});
|
|
377
|
-
var
|
|
378
|
-
Wm(
|
|
379
|
-
module2.exports = $m(
|
|
377
|
+
var Rp = {};
|
|
378
|
+
Wm(Rp, { DynamicFlow: () => Qo, JsonSchemaForm: () => en, Layout: () => ne, convertStepToLayout: () => Qt, inlineReferences: () => ze, isValidSchema: () => G, makeHttpClient: () => kr, translations: () => Nm });
|
|
379
|
+
module2.exports = $m(Rp);
|
|
380
380
|
function Qt(e, { displayStepTitle: t = true } = {}) {
|
|
381
381
|
if (e.layout)
|
|
382
382
|
return il(e, t);
|
|
@@ -1027,15 +1027,15 @@ var require_main_min = __commonJS({
|
|
|
1027
1027
|
throw new Error(n.message === "failed" ? "failed" : "network failed");
|
|
1028
1028
|
});
|
|
1029
1029
|
}, [e, r]), o = (0, or.useCallback)((n) => {
|
|
1030
|
-
let c = ((e == null ? void 0 : e.responseHandlers) || []).find((
|
|
1030
|
+
let c = ((e == null ? void 0 : e.responseHandlers) || []).find((d) => d.result === n.result);
|
|
1031
1031
|
if (c != null && c.action) {
|
|
1032
|
-
let { action:
|
|
1033
|
-
if (
|
|
1034
|
-
let m = s(s({},
|
|
1035
|
-
t(C(s({},
|
|
1032
|
+
let { action: d } = c;
|
|
1033
|
+
if (d.exit) {
|
|
1034
|
+
let m = s(s({}, d.result || {}), n.data || {});
|
|
1035
|
+
t(C(s({}, d), { result: m }));
|
|
1036
1036
|
} else {
|
|
1037
|
-
let m = s(s({},
|
|
1038
|
-
t(C(s({},
|
|
1037
|
+
let m = s(s({}, d.data || {}), n.data || {});
|
|
1038
|
+
t(C(s({}, d), { data: m }));
|
|
1039
1039
|
}
|
|
1040
1040
|
return false;
|
|
1041
1041
|
}
|
|
@@ -1185,11 +1185,13 @@ var require_main_min = __commonJS({
|
|
|
1185
1185
|
let t = e.action.type;
|
|
1186
1186
|
return (r = e.control) != null ? r : t ? td[t] : "secondary";
|
|
1187
1187
|
};
|
|
1188
|
-
var rd = {
|
|
1188
|
+
var rd = { positive: "positive", negative: "negative", neutral: "accent", warning: "accent" };
|
|
1189
|
+
var ad = { primary: "accent", secondary: "accent", link: "accent", positive: "positive", negative: "negative" };
|
|
1189
1190
|
var hi = (e) => {
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1191
|
+
if (e.context)
|
|
1192
|
+
return rd[e.context];
|
|
1193
|
+
let t = e.action.type;
|
|
1194
|
+
return t ? ad[t] : "accent";
|
|
1193
1195
|
};
|
|
1194
1196
|
var gi = (e) => {
|
|
1195
1197
|
switch (e) {
|
|
@@ -1205,64 +1207,64 @@ var require_main_min = __commonJS({
|
|
|
1205
1207
|
}
|
|
1206
1208
|
};
|
|
1207
1209
|
var Ci = require("react/jsx-runtime");
|
|
1208
|
-
var
|
|
1209
|
-
var
|
|
1210
|
+
var od = (e) => {
|
|
1211
|
+
var d;
|
|
1210
1212
|
let { component: t, onAction: r } = e, a = t.action, o = hi(t), n = fi(t), { loading: i } = At(), c = V(t.margin || "md");
|
|
1211
|
-
return (0, Ci.jsx)(wi.Button, { size: gi(t.size), type: n === "tertiary" ? void 0 : o, priority: n, block: true, className: c, disabled: t.disabled || a.disabled || i, onClick: () => r(a), children: (
|
|
1213
|
+
return (0, Ci.jsx)(wi.Button, { size: gi(t.size), type: n === "tertiary" ? void 0 : o, priority: n, block: true, className: c, disabled: t.disabled || a.disabled || i, onClick: () => r(a), children: (d = t.title) != null ? d : a.title });
|
|
1212
1214
|
};
|
|
1213
|
-
var Ka =
|
|
1215
|
+
var Ka = od;
|
|
1214
1216
|
var yt = require("react/jsx-runtime");
|
|
1215
|
-
var
|
|
1216
|
-
let t = e.component, { leftWidth: r, rightWidth: a } =
|
|
1217
|
+
var nd = (e) => {
|
|
1218
|
+
let t = e.component, { leftWidth: r, rightWidth: a } = id(t.bias);
|
|
1217
1219
|
return (0, yt.jsxs)("div", { className: `${V(t.margin || "xs")} row`, children: [(0, yt.jsx)("div", { className: `${r} m-b-0`, children: (0, yt.jsx)(ne, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, yt.jsx)("div", { className: `${a} m-b-0`, children: (0, yt.jsx)(ne, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
|
|
1218
1220
|
};
|
|
1219
|
-
var
|
|
1220
|
-
var Ja =
|
|
1221
|
+
var id = (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" };
|
|
1222
|
+
var Ja = nd;
|
|
1221
1223
|
var Gr = require("@transferwise/components");
|
|
1222
1224
|
var qr = require("react/jsx-runtime");
|
|
1223
|
-
function
|
|
1225
|
+
function sd({ component: e, onAction: t }) {
|
|
1224
1226
|
let { loading: r } = At();
|
|
1225
1227
|
return (0, qr.jsx)("div", { className: V(e.margin), children: (0, qr.jsx)(Gr.NavigationOptionsList, { children: e.options.map((a) => {
|
|
1226
1228
|
var o;
|
|
1227
1229
|
return (0, qr.jsx)(Gr.NavigationOption, { title: a.title, content: a.description, disabled: (o = a.disabled) != null ? o : r, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(a.action) }, JSON.stringify(a));
|
|
1228
1230
|
}) }) });
|
|
1229
1231
|
}
|
|
1230
|
-
var Xa =
|
|
1232
|
+
var Xa = sd;
|
|
1231
1233
|
var Si = require("react/jsx-runtime");
|
|
1232
|
-
var
|
|
1234
|
+
var cd = ({ component: e }) => {
|
|
1233
1235
|
let r = `m-t-0 ${V(e.margin)}`;
|
|
1234
1236
|
return (0, Si.jsx)("hr", { className: r });
|
|
1235
1237
|
};
|
|
1236
|
-
var Ya =
|
|
1238
|
+
var Ya = cd;
|
|
1237
1239
|
var Rt = require("@transferwise/components");
|
|
1238
1240
|
var Wr = require("react");
|
|
1239
1241
|
var xi = require("react-intl");
|
|
1240
1242
|
var Fi = require("react-intl");
|
|
1241
1243
|
var bi = (0, Fi.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
|
|
1242
1244
|
var Ze = require("react/jsx-runtime");
|
|
1243
|
-
var
|
|
1245
|
+
var md = ({ component: e, onAction: t }) => {
|
|
1244
1246
|
let { requestUrl: r, responseHandlers: a, polling: o, retryTitle: n } = e, i = (0, xi.useIntl)(), c = (0, Wr.useCallback)(() => window.open(r, "df-external-window"), [r]);
|
|
1245
1247
|
(0, Wr.useEffect)(() => {
|
|
1246
1248
|
c();
|
|
1247
1249
|
}, [c]);
|
|
1248
|
-
let
|
|
1249
|
-
return ti(
|
|
1250
|
+
let d = o && a ? C(s({}, o), { responseHandlers: a }) : void 0;
|
|
1251
|
+
return ti(d, t), (0, Ze.jsxs)(Ze.Fragment, { children: [(0, Ze.jsx)(Rt.Loader, { size: Rt.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Ze.jsx)("br", {}), (0, Ze.jsx)(Rt.Button, { priority: "tertiary", block: true, onClick: c, children: n || i.formatMessage(bi.retryTitle) })] });
|
|
1250
1252
|
};
|
|
1251
|
-
var Za =
|
|
1253
|
+
var Za = md;
|
|
1252
1254
|
var qs = require("react");
|
|
1253
1255
|
var vi = require("@transferwise/components");
|
|
1254
1256
|
var Ai = Ee(Xe());
|
|
1255
1257
|
var Oi = require("react");
|
|
1256
1258
|
var Re = require("react/jsx-runtime");
|
|
1257
|
-
var
|
|
1258
|
-
var
|
|
1259
|
-
var
|
|
1259
|
+
var ld = (e, t) => t.map((r) => ce(e, r) || {});
|
|
1260
|
+
var dd = (e) => e.reduce((t, r) => s(s({}, r), t), {});
|
|
1261
|
+
var ud = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1260
1262
|
function Pi(e) {
|
|
1261
1263
|
let t = (o, n) => {
|
|
1262
1264
|
let i = e.schema.allOf[o];
|
|
1263
|
-
r[o] = ce(n.model, i) || {}, a(r), e.onChange(C(s({}, n), { model:
|
|
1264
|
-
}, [r, a] = (0, Oi.useState)(
|
|
1265
|
-
return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(vi.Header, { title: e.schema.title }), e.schema.description && (0, Re.jsx)("p", { children: e.schema.description }), (0, Re.jsx)("div", { className: "row", children: e.schema.allOf.map((o, n) => (0, Re.jsx)("div", { className: (0, Ai.default)(
|
|
1265
|
+
r[o] = ce(n.model, i) || {}, a(r), e.onChange(C(s({}, n), { model: dd(r) }));
|
|
1266
|
+
}, [r, a] = (0, Oi.useState)(ld(e.model, e.schema.allOf));
|
|
1267
|
+
return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(vi.Header, { title: e.schema.title }), e.schema.description && (0, Re.jsx)("p", { children: e.schema.description }), (0, Re.jsx)("div", { className: "row", children: e.schema.allOf.map((o, n) => (0, Re.jsx)("div", { className: (0, Ai.default)(ud(o.width)), children: (0, Re.jsx)(me, { schema: o, model: r[n], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (i) => t(n, C(s({}, i), { model: i.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
|
|
1266
1268
|
}
|
|
1267
1269
|
Pi.defaultProps = { disabled: false };
|
|
1268
1270
|
var Qa = Pi;
|
|
@@ -1277,11 +1279,11 @@ var require_main_min = __commonJS({
|
|
|
1277
1279
|
var Ue = require("react/jsx-runtime");
|
|
1278
1280
|
function Ei(e) {
|
|
1279
1281
|
var c;
|
|
1280
|
-
let t =
|
|
1281
|
-
return (0, Ue.jsxs)("div", { id: e.id, children: [a ? (0, Ue.jsx)($r.InlineAlert, { type: "error", children: e.errors }) : null, o ? (0, Ue.jsx)($r.InlineAlert, { type: "error", children: e.validations.map((
|
|
1282
|
+
let t = pd(e.schema), r = s(s(s({}, t), e.validationMessages), e.schema.validationMessages), a = (e.submitted || !e.changed) && !!e.errors, o = !a && (e.submitted || e.changed && e.blurred) && !!((c = e.validations) != null && c.length), n = e.schema.description && !a && !o, i = !!e.infoMessage;
|
|
1283
|
+
return (0, Ue.jsxs)("div", { id: e.id, children: [a ? (0, Ue.jsx)($r.InlineAlert, { type: "error", children: e.errors }) : null, o ? (0, Ue.jsx)($r.InlineAlert, { type: "error", children: e.validations.map((d) => (0, Ue.jsx)("div", { children: r[d] }, d)) }) : null, (n || i) && (0, Ue.jsxs)($r.InlineAlert, { type: "info", children: [n && (0, Ue.jsx)("div", { children: e.schema.description }), i && (0, Ue.jsx)("div", { children: e.infoMessage })] })] });
|
|
1282
1284
|
}
|
|
1283
1285
|
Ei.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
|
|
1284
|
-
function
|
|
1286
|
+
function pd(e) {
|
|
1285
1287
|
let { formatMessage: t, locale: r } = (0, ki.useIntl)(), a = { type: t(Se.type), minimum: t(Se.minimum, { minimum: e.minimum }), maximum: t(Se.maximum, { maximum: e.maximum }), minLength: t(Se.minLength, { minLength: e.minLength }), maxLength: t(Se.maxLength, { maxLength: e.maxLength }), pattern: t(Se.pattern), required: t(Se.required) };
|
|
1286
1288
|
if (e.format === "date") {
|
|
1287
1289
|
let o = { pattern: t(Se.patternDate), minimum: e.minimum ? t(Se.minimumDate, { minimum: (0, eo.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(Se.maximumDate, { maximum: (0, eo.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
|
|
@@ -1323,7 +1325,7 @@ var require_main_min = __commonJS({
|
|
|
1323
1325
|
var ft = require("react/jsx-runtime");
|
|
1324
1326
|
function Hi(e) {
|
|
1325
1327
|
var M, E;
|
|
1326
|
-
let { onChange: t, schema: r } = e, a = re(), o = ji(r), n = (0, sr.useMemo)(() => r.$id || Te(), [r.$id]), [i, c] = (0, sr.useState)(false), [
|
|
1328
|
+
let { onChange: t, schema: r } = e, a = re(), o = ji(r), n = (0, sr.useMemo)(() => r.$id || Te(), [r.$id]), [i, c] = (0, sr.useState)(false), [d, m] = (0, sr.useState)(() => yd(e.model || [])), p = qi(r.items.persistAsync), h = r.items.persistAsync.schema, y = Dt(h), u = async (P) => {
|
|
1327
1329
|
c(true);
|
|
1328
1330
|
try {
|
|
1329
1331
|
let D = await Ii(P, y);
|
|
@@ -1334,28 +1336,28 @@ var require_main_min = __commonJS({
|
|
|
1334
1336
|
return a("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(Li(D));
|
|
1335
1337
|
}
|
|
1336
1338
|
};
|
|
1337
|
-
function
|
|
1338
|
-
if ($n(P,
|
|
1339
|
+
function l(P) {
|
|
1340
|
+
if ($n(P, d))
|
|
1339
1341
|
return;
|
|
1340
1342
|
m(P);
|
|
1341
1343
|
let U = Vi(P).map((ee) => ee.id);
|
|
1342
1344
|
t({ model: U, triggerSchema: r, triggerModel: U });
|
|
1343
1345
|
}
|
|
1344
|
-
let w = Vi(
|
|
1345
|
-
return (0, ft.jsxs)("div", { className: (0, Ui.default)("form-group", { "has-error": F }), children: [(0, ft.jsx)("label", { className: "d-block control-label", htmlFor: n, children: e.schema.title }), (0, ft.jsx)("div", { "aria-describedby": x, children: (0, ft.jsx)(_r.UploadInput, s({}, O)) }), (0, ft.jsx)(He, { id: x, changed: i, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages:
|
|
1346
|
+
let w = Vi(d).map((P) => P.id), S = It(w, r, e.required), F = !!e.errors || (i || e.submitted) && !!S.length, g = "accepts" in h && h.accepts, v = "maxSize" in h && h.maxSize, O = C(s(s({ multiple: true, className: "form-control", files: d, fileInputName: n, id: n }, g ? { fileTypes: g } : void 0), v ? { sizeLimit: Nr(v) } : void 0), { sizeLimitErrorMessage: ((M = h.validationMessages) == null ? void 0 : M.maxSize) || o.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((E = e.schema.validationMessages) == null ? void 0 : E.maxItems) || o.maxItemsErrorMessage, uploadButtonTitle: h.title, description: h.description, disabled: e.disabled, onUploadFile: (P) => u(P.get(n)), onFilesChange: l, onDeleteFile: () => Promise.resolve() }), x = `${n}-feedback`;
|
|
1347
|
+
return (0, ft.jsxs)("div", { className: (0, Ui.default)("form-group", { "has-error": F }), children: [(0, ft.jsx)("label", { className: "d-block control-label", htmlFor: n, children: e.schema.title }), (0, ft.jsx)("div", { "aria-describedby": x, children: (0, ft.jsx)(_r.UploadInput, s({}, O)) }), (0, ft.jsx)(He, { id: x, changed: i, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages: hd(r, !!e.required, o), infoMessage: null, focused: false, blurred: true })] });
|
|
1346
1348
|
}
|
|
1347
1349
|
Hi.defaultProps = { errors: null, required: false };
|
|
1348
1350
|
var to = Hi;
|
|
1349
1351
|
function Vi(e) {
|
|
1350
1352
|
return e.filter((t) => !t.error && t.status === "succeeded");
|
|
1351
1353
|
}
|
|
1352
|
-
function pd(e) {
|
|
1353
|
-
return e.map((t) => yd(t) ? { id: t, status: _r.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1354
|
-
}
|
|
1355
1354
|
function yd(e) {
|
|
1355
|
+
return e.map((t) => fd(t) ? { id: t, status: _r.Status.SUCCEEDED } : null).filter((t) => t !== null);
|
|
1356
|
+
}
|
|
1357
|
+
function fd(e) {
|
|
1356
1358
|
return z(e) || L(e);
|
|
1357
1359
|
}
|
|
1358
|
-
function
|
|
1360
|
+
function hd(e, t, r) {
|
|
1359
1361
|
let { minItems: a, maxItems: o } = e;
|
|
1360
1362
|
return s(s(s({}, t && { required: r.requiredMessage }), a && { minItems: r.minItemsErrorMessage }), o && { maxItems: r.maxItemsErrorMessage });
|
|
1361
1363
|
}
|
|
@@ -1370,13 +1372,13 @@ var require_main_min = __commonJS({
|
|
|
1370
1372
|
var ht = (0, _i.defineMessages)({ addItemTitle: { id: "dynamicFlows.ArraySchema.addItemTitle", defaultMessage: "Add Item", description: "Label on the button used to open a form to add an item" }, addItem: { id: "dynamicFlows.ArraySchema.addItem", defaultMessage: "Save", description: "Label on the add button used to submit a form that adds an item" }, editItem: { id: "dynamicFlows.ArraySchema.editItem", defaultMessage: "Save", description: "Label on the edit button used to submit a form that edits an item" }, removeItem: { id: "dynamicFlows.ArraySchema.removeItem", defaultMessage: "Remove", description: "Label on the remove button used to confirm deletion of an item" } });
|
|
1371
1373
|
var Ki = require("react-intl");
|
|
1372
1374
|
var Xi = require("react/jsx-runtime");
|
|
1373
|
-
function
|
|
1374
|
-
let { formatMessage: c } = (0, Ki.useIntl)(),
|
|
1375
|
-
return (0, Xi.jsx)(Kr, { step:
|
|
1375
|
+
function gd({ type: e, schema: t, model: r, errors: a, submitted: o, onModelChange: n, onAction: i }) {
|
|
1376
|
+
let { formatMessage: c } = (0, Ki.useIntl)(), d = { layout: [{ type: "form", schema: t.items }, { type: "button", control: "primary", action: { url: e, title: c(e === "add" ? ht.addItem : ht.editItem) } }, ...e === "edit" ? [{ type: "button", context: "negative", action: { url: "remove", title: c(ht.removeItem) } }] : []], title: "", actions: [], schemas: [] };
|
|
1377
|
+
return (0, Xi.jsx)(Kr, { step: d, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: o, formErrors: a, globalError: null, onAction: (m) => {
|
|
1376
1378
|
i(m.url);
|
|
1377
1379
|
}, onModelChange: n });
|
|
1378
1380
|
}
|
|
1379
|
-
var Ji =
|
|
1381
|
+
var Ji = gd;
|
|
1380
1382
|
var Jr = (e, t) => {
|
|
1381
1383
|
let r = cr(e, t);
|
|
1382
1384
|
if (r >= 0)
|
|
@@ -1397,38 +1399,38 @@ var require_main_min = __commonJS({
|
|
|
1397
1399
|
function Nt(e, t) {
|
|
1398
1400
|
if (t == null)
|
|
1399
1401
|
return null;
|
|
1400
|
-
let r = e.oneOf.map((a) =>
|
|
1402
|
+
let r = e.oneOf.map((a) => wd(a).reduce((o, [n, i]) => we(i) && i.const === t[n] ? o + 2 : tr(i) && typeof t[n] != "undefined" ? o + 1 : o, 0));
|
|
1401
1403
|
return r.every((a) => a === r[0]) ? null : r.indexOf(Math.max(...r));
|
|
1402
1404
|
}
|
|
1403
|
-
function
|
|
1405
|
+
function wd(e) {
|
|
1404
1406
|
return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
|
|
1405
1407
|
}
|
|
1406
1408
|
var ro = (e, t, r = {}) => {
|
|
1407
|
-
let { defaultTitle: a = "", defaultDescription: o = "", defaultIcon: n, defaultImage: i } = r, c = Qe({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Yi }),
|
|
1409
|
+
let { defaultTitle: a = "", defaultDescription: o = "", defaultIcon: n, defaultImage: i } = r, c = Qe({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Yi }), d = Qe({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Yi }), m = Qe({ schema: e, model: t, providesProp: "providesIcon", getValueFromSchema: (h) => {
|
|
1408
1410
|
var y;
|
|
1409
1411
|
return (y = h.icon) != null ? y : null;
|
|
1410
1412
|
} }), p = Qe({ schema: e, model: t, providesProp: "providesImage", getValueFromSchema: (h) => {
|
|
1411
1413
|
var y;
|
|
1412
1414
|
return (y = h.image) != null ? y : null;
|
|
1413
1415
|
} });
|
|
1414
|
-
return { value: t, title: c || a, description:
|
|
1416
|
+
return { value: t, title: c || a, description: d || o, icon: m || n, image: p || i };
|
|
1415
1417
|
};
|
|
1416
1418
|
var Qe = (e) => {
|
|
1417
1419
|
let { schema: t, model: r, providesProp: a, getValueFromSchema: o } = e;
|
|
1418
|
-
if (
|
|
1420
|
+
if (bd(t.summary, a))
|
|
1419
1421
|
return o(t, r);
|
|
1420
1422
|
switch (dt(t)) {
|
|
1421
1423
|
case "object":
|
|
1422
|
-
return wd(e);
|
|
1423
|
-
case "oneOf":
|
|
1424
1424
|
return Cd(e);
|
|
1425
|
-
case "
|
|
1425
|
+
case "oneOf":
|
|
1426
1426
|
return Sd(e);
|
|
1427
|
+
case "allOf":
|
|
1428
|
+
return Fd(e);
|
|
1427
1429
|
default:
|
|
1428
1430
|
return null;
|
|
1429
1431
|
}
|
|
1430
1432
|
};
|
|
1431
|
-
var
|
|
1433
|
+
var Cd = (e) => {
|
|
1432
1434
|
let { schema: t, model: r } = e, a = t;
|
|
1433
1435
|
for (let o in a.properties) {
|
|
1434
1436
|
let n = a.properties[o], i = $(r) && o in r ? r[o] : null, c = Qe(C(s({}, e), { schema: n, model: i }));
|
|
@@ -1437,7 +1439,7 @@ var require_main_min = __commonJS({
|
|
|
1437
1439
|
}
|
|
1438
1440
|
return null;
|
|
1439
1441
|
};
|
|
1440
|
-
var
|
|
1442
|
+
var Sd = (e) => {
|
|
1441
1443
|
let { schema: t, model: r } = e;
|
|
1442
1444
|
if (lt(t)) {
|
|
1443
1445
|
if (!$(r))
|
|
@@ -1451,7 +1453,7 @@ var require_main_min = __commonJS({
|
|
|
1451
1453
|
let a = t, o = Jr(a, r);
|
|
1452
1454
|
return o === null || o < 0 ? null : Qe(C(s({}, e), { schema: a.oneOf[o] }));
|
|
1453
1455
|
};
|
|
1454
|
-
var
|
|
1456
|
+
var Fd = (e) => {
|
|
1455
1457
|
let { schema: t } = e, r = t;
|
|
1456
1458
|
for (let a of r.allOf) {
|
|
1457
1459
|
let o = Qe(C(s({}, e), { schema: a }));
|
|
@@ -1461,10 +1463,10 @@ var require_main_min = __commonJS({
|
|
|
1461
1463
|
return null;
|
|
1462
1464
|
};
|
|
1463
1465
|
var Yi = (e, t) => we(e) ? e.title ? e.title : L(e.const) ? e.const : null : jr(t) ? t : null;
|
|
1464
|
-
var
|
|
1466
|
+
var bd = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
|
|
1465
1467
|
var Fe = require("react/jsx-runtime");
|
|
1466
|
-
var
|
|
1467
|
-
let [n, i] = (0, Xr.useState)(null), [c,
|
|
1468
|
+
var xd = ({ schema: e, model: t, errors: r, submitted: a, onChange: o }) => {
|
|
1469
|
+
let [n, i] = (0, Xr.useState)(null), [c, d] = (0, Xr.useState)(() => {
|
|
1468
1470
|
if (R(t) && !j(t))
|
|
1469
1471
|
throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
|
|
1470
1472
|
return t ? t.map((S) => ro(e.items, S, e == null ? void 0 : e.summary)) : null;
|
|
@@ -1475,19 +1477,19 @@ var require_main_min = __commonJS({
|
|
|
1475
1477
|
i("add");
|
|
1476
1478
|
}, u = (S) => {
|
|
1477
1479
|
p({ item: S, model: S.value }), i("edit");
|
|
1478
|
-
},
|
|
1480
|
+
}, l = (S) => {
|
|
1479
1481
|
var v;
|
|
1480
1482
|
let F = S === "remove" ? null : ro(e.items, m.model, e == null ? void 0 : e.summary);
|
|
1481
1483
|
if (S !== "remove" && !G((v = F == null ? void 0 : F.value) != null ? v : null, e.items))
|
|
1482
1484
|
return;
|
|
1483
|
-
let g =
|
|
1484
|
-
|
|
1485
|
+
let g = vd(S, { originalItem: m.item, updatedItem: F, itemSummaries: c });
|
|
1486
|
+
d(g), h(g), p({ item: null, model: null }), i(null);
|
|
1485
1487
|
}, f = () => {
|
|
1486
1488
|
p({ item: null, model: null }), i(null);
|
|
1487
1489
|
}, { formatMessage: w } = (0, Qi.useIntl)();
|
|
1488
|
-
return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((S) => (0, Fe.jsx)(Wi, { item: S, onClick: () => u(S) }, JSON.stringify(S))), (0, Fe.jsx)(Bt.NavigationOption, { onClick: y, media: (0, Fe.jsx)(Zi.Plus, {}), title: e.addItemTitle || w(ht.addItemTitle), showMediaAtAllSizes: true }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, onClose: f, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || w(ht.addItemTitle), body: (0, Fe.jsx)(Ji, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction:
|
|
1490
|
+
return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((S) => (0, Fe.jsx)(Wi, { item: S, onClick: () => u(S) }, JSON.stringify(S))), (0, Fe.jsx)(Bt.NavigationOption, { onClick: y, media: (0, Fe.jsx)(Zi.Plus, {}), title: e.addItemTitle || w(ht.addItemTitle), showMediaAtAllSizes: true }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, onClose: f, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || w(ht.addItemTitle), body: (0, Fe.jsx)(Ji, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction: l, onModelChange: ({ model: S }) => p(C(s({}, m), { model: S })) }) })] });
|
|
1489
1491
|
};
|
|
1490
|
-
var
|
|
1492
|
+
var vd = (e, { originalItem: t, updatedItem: r, itemSummaries: a }) => {
|
|
1491
1493
|
if (e === "remove")
|
|
1492
1494
|
return (a || []).filter((o) => o !== t);
|
|
1493
1495
|
if (!r)
|
|
@@ -1501,7 +1503,7 @@ var require_main_min = __commonJS({
|
|
|
1501
1503
|
return null;
|
|
1502
1504
|
}
|
|
1503
1505
|
};
|
|
1504
|
-
var es =
|
|
1506
|
+
var es = xd;
|
|
1505
1507
|
var ao = require("react/jsx-runtime");
|
|
1506
1508
|
var ts = (e) => {
|
|
1507
1509
|
let { schema: t } = e;
|
|
@@ -1525,7 +1527,7 @@ var require_main_min = __commonJS({
|
|
|
1525
1527
|
var ns = Ee(Xe());
|
|
1526
1528
|
var Yr = require("react");
|
|
1527
1529
|
var fe = require("react/jsx-runtime");
|
|
1528
|
-
var
|
|
1530
|
+
var Ad = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
|
|
1529
1531
|
function is(e) {
|
|
1530
1532
|
let [t, r] = (0, Yr.useState)(() => s({}, ce(e.model, e.schema))), a = (m, p) => {
|
|
1531
1533
|
p.model !== null ? t[m] = p.model : delete t[m], r(t), e.onChange(C(s({}, p), { model: t }));
|
|
@@ -1534,8 +1536,8 @@ var require_main_min = __commonJS({
|
|
|
1534
1536
|
let m = ce(t, e.schema) || {};
|
|
1535
1537
|
r(m), Je(m, t) || e.onChange({ model: m, triggerSchema: e.schema, triggerModel: m });
|
|
1536
1538
|
}, [e.schema]);
|
|
1537
|
-
let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), i = (m) => typeof e.schema.properties[m] != "undefined", c = Array.from(n).filter(i),
|
|
1538
|
-
return (0, fe.jsxs)(fe.Fragment, { children: [e.schema.alert && (0, fe.jsx)(se, { component: e.schema.alert }), (0, fe.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, fe.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, fe.jsxs)("p", { children: [" ", e.schema.description, " "] }), (0, fe.jsx)("div", { className: "row", children: c.map((m) => (0, fe.jsx)("div", { className: (0, ns.default)(
|
|
1539
|
+
let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), i = (m) => typeof e.schema.properties[m] != "undefined", c = Array.from(n).filter(i), d = e.errors;
|
|
1540
|
+
return (0, fe.jsxs)(fe.Fragment, { children: [e.schema.alert && (0, fe.jsx)(se, { component: e.schema.alert }), (0, fe.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, fe.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, fe.jsxs)("p", { children: [" ", e.schema.description, " "] }), (0, fe.jsx)("div", { className: "row", children: c.map((m) => (0, fe.jsx)("div", { className: (0, ns.default)(Ad(e.schema.properties[m].width)), children: (0, fe.jsx)(me, { schema: e.schema.properties[m], model: e.model && e.model[m], errors: d == null ? void 0 : d[m], submitted: e.submitted, required: o(m), disabled: e.disabled, onChange: (p) => a(m, p), onPersistAsync: e.onPersistAsync }) }, m)) })] })] });
|
|
1539
1541
|
}
|
|
1540
1542
|
is.defaultProps = { hideTitle: false, disabled: false };
|
|
1541
1543
|
var mr = is;
|
|
@@ -1547,11 +1549,11 @@ var require_main_min = __commonJS({
|
|
|
1547
1549
|
var ss = require("react-intl");
|
|
1548
1550
|
var cs = (0, ss.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
|
|
1549
1551
|
var no = require("react/jsx-runtime");
|
|
1550
|
-
function
|
|
1552
|
+
function Od(e) {
|
|
1551
1553
|
let t = (0, ms.useIntl)();
|
|
1552
1554
|
return (0, no.jsx)(Zr.Info, { className: "m-l-1", content: (0, no.jsx)(Zr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(cs.helpAria) });
|
|
1553
1555
|
}
|
|
1554
|
-
var qe =
|
|
1556
|
+
var qe = Od;
|
|
1555
1557
|
var gs = require("react");
|
|
1556
1558
|
var _ = require("@transferwise/components");
|
|
1557
1559
|
var ys = require("react");
|
|
@@ -1669,15 +1671,15 @@ var require_main_min = __commonJS({
|
|
|
1669
1671
|
}
|
|
1670
1672
|
render() {
|
|
1671
1673
|
var ee;
|
|
1672
|
-
let { name: r, placeholder: a, step: o, countryCode: n, type: i, options: c, disabled:
|
|
1674
|
+
let { name: r, placeholder: a, step: o, countryCode: n, type: i, options: c, disabled: d, readOnly: m, required: p, minLength: h, maxLength: y, min: u, max: l, searchPlaceholder: f, searchValue: w, onSearchChange: S, size: F, uploadProps: g, label: v, monthFormat: O, id: x, minDate: M, maxDate: E, value: P, mode: D, describedBy: U } = this.props;
|
|
1673
1675
|
switch (i) {
|
|
1674
1676
|
case N.RADIO:
|
|
1675
1677
|
return (0, Z.jsx)(_.RadioGroup, { radios: c.map(this.mapOption), name: r, selectedValue: io(P, { coerceValue: true }), onChange: this.handleOnChange });
|
|
1676
1678
|
case N.CHECKBOX:
|
|
1677
|
-
return (0, Z.jsx)(_.Checkbox, { checked: ls(P, { coerceValue: true }), disabled:
|
|
1679
|
+
return (0, Z.jsx)(_.Checkbox, { checked: ls(P, { coerceValue: true }), disabled: d, label: v, required: p, readOnly: m, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1678
1680
|
case N.SELECT: {
|
|
1679
1681
|
let A = c.length >= 20;
|
|
1680
|
-
return (0, Z.jsx)(_.Select, { id: x, selected: this.getSelectedOption(c), options: c, search: A, required: p, disabled:
|
|
1682
|
+
return (0, Z.jsx)(_.Select, { id: x, selected: this.getSelectedOption(c), options: c, search: A, required: p, disabled: d, placeholder: a, searchPlaceholder: f, searchValue: w, onChange: (B) => {
|
|
1681
1683
|
var k;
|
|
1682
1684
|
this.setState({ selectedOption: B != null ? B : void 0 }), this.props.onChange((k = B == null ? void 0 : B.value) != null ? k : null);
|
|
1683
1685
|
}, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: A ? S : void 0 });
|
|
@@ -1689,7 +1691,7 @@ var require_main_min = __commonJS({
|
|
|
1689
1691
|
} });
|
|
1690
1692
|
case N.NUMERIC:
|
|
1691
1693
|
case N.NUMBER:
|
|
1692
|
-
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled:
|
|
1694
|
+
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled: d, id: x, max: l, min: u, placeholder: a, readOnly: m, required: p, step: o, type: "number", value: io(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (A) => {
|
|
1693
1695
|
i === N.NUMERIC ? this.props.onChange(A.target.value) : this.props.onChange(parseFloat(A.target.value));
|
|
1694
1696
|
}, onFocus: this.handleOnFocus, onWheel: (A) => {
|
|
1695
1697
|
A.target instanceof HTMLElement && A.target.blur();
|
|
@@ -1697,23 +1699,23 @@ var require_main_min = __commonJS({
|
|
|
1697
1699
|
case N.HIDDEN:
|
|
1698
1700
|
return (0, Z.jsx)("input", { type: "hidden", name: r, value: zt(P, { coerceValue: true }), id: x });
|
|
1699
1701
|
case N.PASSWORD:
|
|
1700
|
-
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled:
|
|
1702
|
+
return (0, Z.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled: d, id: x, placeholder: a, readOnly: m, required: p, type: "password", value: zt(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus, "aria-describedby": U });
|
|
1701
1703
|
case N.DATE:
|
|
1702
1704
|
case N.DATETIME:
|
|
1703
|
-
return (0, Z.jsx)(_.DateInput, { disabled:
|
|
1705
|
+
return (0, Z.jsx)(_.DateInput, { disabled: d, size: F, value: ds(P), mode: D, monthFormat: O, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1704
1706
|
case N.DATELOOKUP:
|
|
1705
|
-
return (0, Z.jsx)(_.DateLookup, { value: us(P), min: M, max: E, placeholder: a, monthFormat: O, disabled:
|
|
1707
|
+
return (0, Z.jsx)(_.DateLookup, { value: us(P), min: M, max: E, placeholder: a, monthFormat: O, disabled: d, onChange: (A) => {
|
|
1706
1708
|
this.handleOnChange(qn(A));
|
|
1707
1709
|
}, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
|
|
1708
1710
|
case N.TEL:
|
|
1709
|
-
return (0, Z.jsx)(_.PhoneNumberInput, { disabled:
|
|
1711
|
+
return (0, Z.jsx)(_.PhoneNumberInput, { disabled: d, countryCode: n, placeholder: a, required: p, searchPlaceholder: f, size: F, initialValue: zt(P), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
|
|
1710
1712
|
case N.TEXTAREA: {
|
|
1711
|
-
let A = { className: "form-control tw-form-control", id: x, name: r, placeholder: a, value: zt(P, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled:
|
|
1713
|
+
let A = { className: "form-control tw-form-control", id: x, name: r, placeholder: a, value: zt(P, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteValue() };
|
|
1712
1714
|
return this.props.displayPattern ? (0, Z.jsx)(_.TextareaWithDisplayFormat, C(s({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, Z.jsx)("textarea", C(s({}, A), { onChange: this.handleInputOnChange, "aria-describedby": U }));
|
|
1713
1715
|
}
|
|
1714
1716
|
case N.FILE:
|
|
1715
1717
|
case N.UPLOAD:
|
|
1716
|
-
return (0, Z.jsx)(_.Upload, C(s({}, g), { usAccept: g.usAccept || "*", usDisabled: g.usDisabled ||
|
|
1718
|
+
return (0, Z.jsx)(_.Upload, C(s({}, g), { usAccept: g.usAccept || "*", usDisabled: g.usDisabled || d, onSuccess: (A) => {
|
|
1717
1719
|
this.handleOnChange(A);
|
|
1718
1720
|
}, onFailure: () => {
|
|
1719
1721
|
this.handleOnChange(null);
|
|
@@ -1723,7 +1725,7 @@ var require_main_min = __commonJS({
|
|
|
1723
1725
|
case N.TEXT:
|
|
1724
1726
|
case N.EMAIL:
|
|
1725
1727
|
default: {
|
|
1726
|
-
let A = { type: i === N.EMAIL ? "email" : "text", className: "form-control", id: x, name: r, placeholder: a, value: zt(P, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled:
|
|
1728
|
+
let A = { type: i === N.EMAIL ? "email" : "text", className: "form-control", id: x, name: r, placeholder: a, value: zt(P, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteValue() };
|
|
1727
1729
|
return this.props.displayPattern ? (0, Z.jsx)(_.InputWithDisplayFormat, C(s({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, Z.jsx)("input", C(s({}, A), { onChange: this.handleInputOnChange, "aria-describedby": U }));
|
|
1728
1730
|
}
|
|
1729
1731
|
}
|
|
@@ -1736,24 +1738,24 @@ var require_main_min = __commonJS({
|
|
|
1736
1738
|
var fs = (e, t) => {
|
|
1737
1739
|
switch (t) {
|
|
1738
1740
|
case "select":
|
|
1739
|
-
return
|
|
1741
|
+
return Md(e);
|
|
1740
1742
|
case "radio":
|
|
1741
1743
|
default:
|
|
1742
|
-
return
|
|
1744
|
+
return Pd(e);
|
|
1743
1745
|
}
|
|
1744
1746
|
};
|
|
1745
|
-
var
|
|
1746
|
-
var
|
|
1747
|
-
var
|
|
1748
|
-
var
|
|
1749
|
-
var
|
|
1747
|
+
var Pd = (e) => s(s(s({ label: e.title, value: e.const }, Ld(e.title, e.description)), Vt(e)), hs(e.disabled));
|
|
1748
|
+
var Md = (e) => s(s(s(s(s({ label: e.title, value: e.const }, Dd(e.title, e.description)), Id(e.icon)), Ed(e.image)), hs(e.disabled)), kd(e.keywords));
|
|
1749
|
+
var kd = (e) => j(e) ? { searchStrings: e } : {};
|
|
1750
|
+
var Ed = (e) => e != null && e.url ? { icon: (0, xe.jsx)("div", { className: "media", children: (0, xe.jsx)("div", { className: "np-option__no-media-circle", children: (0, xe.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
|
|
1751
|
+
var Id = (e) => e != null && e.name && Lt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && $a(e.name) ? { icon: (0, xe.jsx)(Ye, { type: e.name }) } : e != null && e.text ? { icon: (0, xe.jsx)("span", { children: e.text }) } : null;
|
|
1750
1752
|
var Vt = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, xe.jsx)(et.Avatar, { type: et.AvatarType.THUMBNAIL, children: (0, xe.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && $a(t.name) ? { avatar: (0, xe.jsx)(et.Avatar, { type: et.AvatarType.ICON, children: (0, xe.jsx)(Ye, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, xe.jsx)(et.Avatar, { type: et.AvatarType.INITIALS, children: t.text }) } : null;
|
|
1751
1753
|
var Qr = ({ accepts: e }) => s({}, j(e) && { usAccept: e.join(",") });
|
|
1752
|
-
var
|
|
1754
|
+
var Dd = (e, t) => {
|
|
1753
1755
|
if (e && t)
|
|
1754
1756
|
return { [(e + t).length > 50 ? "secondary" : "note"]: t };
|
|
1755
1757
|
};
|
|
1756
|
-
var
|
|
1758
|
+
var Ld = (e, t) => {
|
|
1757
1759
|
if (e && t)
|
|
1758
1760
|
return { note: t };
|
|
1759
1761
|
};
|
|
@@ -1762,30 +1764,30 @@ var require_main_min = __commonJS({
|
|
|
1762
1764
|
return { disabled: e };
|
|
1763
1765
|
};
|
|
1764
1766
|
var mo = require("react/jsx-runtime");
|
|
1765
|
-
var
|
|
1766
|
-
var lo = (e) => ge(e) ? e.control === N.TAB && e.oneOf.length > 3 ? N.SELECT : e.oneOf.length === 2 && !e.control ? N.RADIO : e.control || N.SELECT : Rr(e) ?
|
|
1767
|
-
var
|
|
1768
|
-
var
|
|
1769
|
-
var
|
|
1770
|
-
var
|
|
1767
|
+
var Td = (e) => e === "string" || e === "number";
|
|
1768
|
+
var lo = (e) => ge(e) ? e.control === N.TAB && e.oneOf.length > 3 ? N.SELECT : e.oneOf.length === 2 && !e.control ? N.RADIO : e.control || N.SELECT : Rr(e) ? Rd(e) : "control" in e && e.control ? e.control : e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
|
|
1769
|
+
var Rd = ({ format: e, control: t }) => t ? Nd[t] || t : e && Bd[e] || "text";
|
|
1770
|
+
var Nd = { "date-lookup": "date-lookup", password: "password", textarea: "textarea", email: "email", numeric: "numeric", "phone-number": "tel" };
|
|
1771
|
+
var Bd = { date: "date", email: "email", base64url: "file", password: "password", "phone-number": "tel" };
|
|
1772
|
+
var zd = (e, t) => e.oneOf ? e.oneOf.map((r) => fs(r, t)) : null;
|
|
1771
1773
|
function ws(e) {
|
|
1772
|
-
let { id: t, schema: r, value: a, disabled: o, onChange: n, onFocus: i, onBlur: c, onSearchChange:
|
|
1774
|
+
let { id: t, schema: r, value: a, disabled: o, onChange: n, onFocus: i, onBlur: c, onSearchChange: d, describedBy: m } = e, p = Mt(), h = (F) => Td(r.type) && (I(F) || Y(F)) ? "" : F, y = (F, g) => {
|
|
1773
1775
|
n($e(F, r), g);
|
|
1774
1776
|
}, u = lo(r);
|
|
1775
1777
|
(0, gs.useEffect)(() => {
|
|
1776
|
-
|
|
1778
|
+
jd(r, p, u);
|
|
1777
1779
|
}, [JSON.stringify(r), p, u]);
|
|
1778
|
-
let
|
|
1780
|
+
let l = r.values || zd(r, u), f = { onFocus: i, onBlur: c, onSearchChange: d, onChange: y }, w = h(a), S = { id: t, name: t, label: r.title, options: l || [], placeholder: r.placeholder, autoComplete: !r.help, autocompleteHint: r.autocompleteHint, disabled: o || r.disabled, displayPattern: r.displayFormat, uploadProps: Qr(r), describedBy: m };
|
|
1779
1781
|
return (0, mo.jsx)("div", { "aria-describedby": m, children: (0, mo.jsx)(jt, s(s({ type: u, value: w }, f), S)) });
|
|
1780
1782
|
}
|
|
1781
1783
|
ws.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
|
|
1782
|
-
var
|
|
1784
|
+
var jd = (e, t, r) => {
|
|
1783
1785
|
ge(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.");
|
|
1784
1786
|
};
|
|
1785
1787
|
var lr = ws;
|
|
1786
1788
|
var Q = require("react/jsx-runtime");
|
|
1787
1789
|
function Fs(e) {
|
|
1788
|
-
let t = re(), [r, a] = (0, Ne.useState)(false), [o, n] = (0, Ne.useState)(false), [i, c] = (0, Ne.useState)(false),
|
|
1790
|
+
let t = re(), [r, a] = (0, Ne.useState)(false), [o, n] = (0, Ne.useState)(false), [i, c] = (0, Ne.useState)(false), d = (0, Ne.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), [m, p] = (0, Ne.useState)(Jr(e.schema, e.model)), [h, y] = (0, Ne.useState)(qd(e.model, e.schema.oneOf)), u = Qn(t, 200), l = (M) => {
|
|
1789
1791
|
u("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: M.length });
|
|
1790
1792
|
};
|
|
1791
1793
|
if ((0, Ne.useEffect)(() => {
|
|
@@ -1808,28 +1810,28 @@ var require_main_min = __commonJS({
|
|
|
1808
1810
|
} else
|
|
1809
1811
|
e.onChange({ model: h[M], triggerSchema: P, triggerModel: h[M], type: E });
|
|
1810
1812
|
E !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: P == null ? void 0 : P.analyticsId });
|
|
1811
|
-
}, g =
|
|
1812
|
-
return (0, Q.jsxs)(Q.Fragment, { children: [(e.schema.oneOf.length > 1 || we(e.schema.oneOf[0])) && (0, Q.jsxs)(Q.Fragment, { children: [e.schema.alert && (0, Q.jsx)(se, { component: e.schema.alert }), (0, Q.jsxs)("div", { className: (0, Ss.default)(O), children: [
|
|
1813
|
+
}, g = Gd(e.schema), v = Ud(e, m), O = { "form-group": true, "has-error": !r && e.errors && !kt(e.errors) || (e.submitted || r && i) && v.length }, x = `${d}-feedback`;
|
|
1814
|
+
return (0, Q.jsxs)(Q.Fragment, { children: [(e.schema.oneOf.length > 1 || we(e.schema.oneOf[0])) && (0, Q.jsxs)(Q.Fragment, { children: [e.schema.alert && (0, Q.jsx)(se, { component: e.schema.alert }), (0, Q.jsxs)("div", { className: (0, Ss.default)(O), children: [Vd(e.schema, d), (0, Q.jsx)(lr, { id: d, schema: g, value: m, disabled: e.disabled, describedBy: x, onChange: F, onFocus: w, onBlur: S, onSearchChange: l }), (0, Q.jsx)(He, { id: x, changed: r, focused: o, blurred: i, submitted: e.submitted, errors: Hd(e.errors), schema: e.schema, validations: v, infoMessage: null })] })] }), tr(e.schema.oneOf[m]) && (0, Q.jsx)(me, { schema: e.schema.oneOf[m], model: h[m], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (M) => f(m, M), onPersistAsync: e.onPersistAsync })] });
|
|
1813
1815
|
}
|
|
1814
|
-
function
|
|
1816
|
+
function Vd(e, t) {
|
|
1815
1817
|
var o;
|
|
1816
1818
|
let r = e.help ? (0, Q.jsx)(qe, { help: e.help }) : null, a = we(e.oneOf[0]) ? (0, Q.jsx)("div", { className: "m-b-1", children: (0, Q.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) }) : (0, Q.jsx)(Q.Fragment, { children: r ? (0, Q.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] }) : (0, Q.jsx)(Cs.Header, { title: (o = e.title) != null ? o : "" }) });
|
|
1817
1819
|
return e.title ? a : r;
|
|
1818
1820
|
}
|
|
1819
|
-
function
|
|
1821
|
+
function Ud(e, t) {
|
|
1820
1822
|
let r = e.schema.oneOf[t != null ? t : -1];
|
|
1821
1823
|
return we(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
|
|
1822
1824
|
}
|
|
1823
|
-
function
|
|
1825
|
+
function Hd(e) {
|
|
1824
1826
|
return typeof e == "string" ? e : null;
|
|
1825
1827
|
}
|
|
1826
|
-
function
|
|
1828
|
+
function qd(e, t) {
|
|
1827
1829
|
return t.map((r) => Et(e, r));
|
|
1828
1830
|
}
|
|
1829
|
-
function
|
|
1830
|
-
return C(s({}, e), { oneOf: e.oneOf.map(
|
|
1831
|
+
function Gd(e) {
|
|
1832
|
+
return C(s({}, e), { oneOf: e.oneOf.map(Wd) });
|
|
1831
1833
|
}
|
|
1832
|
-
function
|
|
1834
|
+
function Wd(e, t) {
|
|
1833
1835
|
let { title: r, description: a, disabled: o = false, icon: n, image: i, keywords: c } = e;
|
|
1834
1836
|
return { title: r, description: a, disabled: o, icon: n, image: i, const: t, keywords: c };
|
|
1835
1837
|
}
|
|
@@ -1841,28 +1843,28 @@ var require_main_min = __commonJS({
|
|
|
1841
1843
|
var bs = require("react");
|
|
1842
1844
|
var vs = require("react/jsx-runtime");
|
|
1843
1845
|
function xs(e) {
|
|
1844
|
-
let { id: t, httpClient: r = fetch, httpOptions: a, fileId: o, idProperty: n, usAccept: i, maxSize: c, usPlaceholder:
|
|
1845
|
-
return (0, vs.jsx)(ea.UploadInput, { id: t, fileInputName: a.fileInputName, files: u, uploadButtonTitle: e.usLabel, sizeLimit: c ? Nr(c) : void 0, fileTypes: i, description:
|
|
1846
|
+
let { id: t, httpClient: r = fetch, httpOptions: a, fileId: o, idProperty: n, usAccept: i, maxSize: c, usPlaceholder: d, onSuccess: m, onFailure: p, onCancel: h } = e, y = re(), u = (0, bs.useMemo)(() => o ? [{ id: o, status: ea.Status.SUCCEEDED }] : [], [o]), l = (f) => (y("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(String(a.url), { method: a.method || "POST", body: f }).then((w) => w.ok ? (m == null || m(w.clone()), w.json().then((S) => ({ id: S[n] }))) : (p == null || p({ response: w }), Promise.reject())));
|
|
1847
|
+
return (0, vs.jsx)(ea.UploadInput, { id: t, fileInputName: a.fileInputName, files: u, uploadButtonTitle: e.usLabel, sizeLimit: c ? Nr(c) : void 0, fileTypes: i, description: d, onUploadFile: l, onDeleteFile: (f) => (h == null || h(), Promise.resolve()) });
|
|
1846
1848
|
}
|
|
1847
1849
|
var Ut = require("react/jsx-runtime");
|
|
1848
1850
|
function Os(e) {
|
|
1849
|
-
let [t, r] = (0, wt.useState)({}), [a, o] = (0, wt.useState)(null), [n, i] = (0, wt.useState)([]), [c,
|
|
1851
|
+
let [t, r] = (0, wt.useState)({}), [a, o] = (0, wt.useState)(null), [n, i] = (0, wt.useState)([]), [c, d] = (0, wt.useState)(false), m = ae(), p = re();
|
|
1850
1852
|
(0, wt.useEffect)(() => {
|
|
1851
1853
|
e.submitted && i(_e(e.model, e.schema, !!e.required));
|
|
1852
1854
|
}, [e.model, e.submitted]);
|
|
1853
1855
|
let y = async (O, x) => {
|
|
1854
1856
|
let M = await O.json(), E = fo(e.schema.persistAsync.idProperty, M);
|
|
1855
|
-
e.onChange({ model: E, triggerSchema: e.schema, triggerModel: E }),
|
|
1857
|
+
e.onChange({ model: E, triggerSchema: e.schema, triggerModel: E }), d(true), p("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
|
|
1856
1858
|
}, u = async (O) => {
|
|
1857
1859
|
if (O.response && Lr(O.response.status)) {
|
|
1858
1860
|
let x = await O.response.json();
|
|
1859
1861
|
r(x.validation || {}), o([e.schema.persistAsync.param]);
|
|
1860
1862
|
}
|
|
1861
|
-
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }),
|
|
1862
|
-
},
|
|
1863
|
-
o(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }),
|
|
1863
|
+
e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true), p("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
|
|
1864
|
+
}, l = () => {
|
|
1865
|
+
o(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true);
|
|
1864
1866
|
}, { url: f, method: w } = e.schema.persistAsync, S = a || n, F = { "form-group": true, "has-error": (e.submitted || c) && !!S.length }, g = e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, v = `${g}-feedback`;
|
|
1865
|
-
return (0, Ut.jsxs)("div", { className: (0, As.default)(F), children: [(0, Ut.jsx)("div", { "aria-describedby": v, children: (0, Ut.jsx)(xs, s({ id: g, 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: f, method: w, fileInputName: e.schema.persistAsync.param }, httpClient: m, onSuccess: y, onFailure: u, onCancel:
|
|
1867
|
+
return (0, Ut.jsxs)("div", { className: (0, As.default)(F), children: [(0, Ut.jsx)("div", { "aria-describedby": v, children: (0, Ut.jsx)(xs, s({ id: g, 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: f, method: w, fileInputName: e.schema.persistAsync.param }, httpClient: m, onSuccess: y, onFailure: u, onCancel: l }, Qr(e.schema.persistAsync.schema))) }), (0, Ut.jsx)(He, { id: v, blurred: true, focused: false, changed: c, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages: s({ required: "Value is required..." }, t), infoMessage: null })] });
|
|
1866
1868
|
}
|
|
1867
1869
|
Os.defaultProps = { required: false };
|
|
1868
1870
|
var yo = Os;
|
|
@@ -1881,9 +1883,9 @@ var require_main_min = __commonJS({
|
|
|
1881
1883
|
var ks = require("@transferwise/components");
|
|
1882
1884
|
var wo = require("react/jsx-runtime");
|
|
1883
1885
|
var Es = (e) => {
|
|
1884
|
-
let { id: t, selection: r, setSelection: a } = e, { promoted: o, other: n, checkedMeans: i } = e.promotion, c = i === "other" ? n.title : (o == null ? void 0 : o.title) || e.promotedOneOf.title,
|
|
1886
|
+
let { id: t, selection: r, setSelection: a } = e, { promoted: o, other: n, checkedMeans: i } = e.promotion, c = i === "other" ? n.title : (o == null ? void 0 : o.title) || e.promotedOneOf.title, d = i === "other" ? "other" : "promoted", m = i === "other" ? "promoted" : "other", p = r === d;
|
|
1885
1887
|
return (0, wo.jsx)("div", { className: "form-group", children: (0, wo.jsx)(ks.Checkbox, { id: t, label: c, checked: p, onChange: () => {
|
|
1886
|
-
a(p ? m :
|
|
1888
|
+
a(p ? m : d);
|
|
1887
1889
|
} }) });
|
|
1888
1890
|
};
|
|
1889
1891
|
Es.defaultProps = {};
|
|
@@ -1891,8 +1893,8 @@ var require_main_min = __commonJS({
|
|
|
1891
1893
|
var Ds = require("@transferwise/components");
|
|
1892
1894
|
var dr = require("react/jsx-runtime");
|
|
1893
1895
|
function Ls(e) {
|
|
1894
|
-
var
|
|
1895
|
-
let { id: t, selection: r, setSelection: a, promotion: o, promotedOneOf: n, title: i } = e, c = [s({ value: "promoted", label: ((
|
|
1896
|
+
var d, m;
|
|
1897
|
+
let { id: t, selection: r, setSelection: a, promotion: o, promotedOneOf: n, title: i } = e, c = [s({ value: "promoted", label: ((d = o.promoted) == null ? void 0 : d.title) || n.title, secondary: ((m = o.promoted) == null ? void 0 : m.description) || n.description }, Vt(n)), s({ value: "other", label: o.other.title, secondary: o.other.description }, Vt(o.other))];
|
|
1896
1898
|
return (0, dr.jsxs)("div", { className: "form-group", children: [i && (0, dr.jsx)("label", { className: "control-label", htmlFor: t, children: i }), (0, dr.jsx)(Ds.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: c, id: t, onChange: a })] });
|
|
1897
1899
|
}
|
|
1898
1900
|
Ls.defaultProps = { title: void 0 };
|
|
@@ -1912,48 +1914,48 @@ var require_main_min = __commonJS({
|
|
|
1912
1914
|
var Ns = Rs;
|
|
1913
1915
|
var Ge = require("react/jsx-runtime");
|
|
1914
1916
|
var zs = (e) => e.promoted === true;
|
|
1915
|
-
var
|
|
1917
|
+
var $d = (e) => {
|
|
1916
1918
|
var c;
|
|
1917
|
-
let [t, r] = (0, Bs.useState)(Ms(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), a = e.schema.alert, o = e.schema.oneOf.find(zs), n =
|
|
1919
|
+
let [t, r] = (0, Bs.useState)(Ms(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), a = e.schema.alert, o = e.schema.oneOf.find(zs), n = _d(o), i = Kd(e.schema);
|
|
1918
1920
|
return (0, Ge.jsxs)(Ge.Fragment, { children: [a && (0, Ge.jsx)(se, { component: a }), (0, Ge.jsx)(Ns, { id: e.schema.$id, title: e.schema.title, promotedOneOf: o, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ge.jsx)(mr, C(s({}, e), { schema: n })), t === "other" && (0, Ge.jsx)(me, C(s({}, e), { schema: i }))] });
|
|
1919
1921
|
};
|
|
1920
|
-
function
|
|
1922
|
+
function _d(e) {
|
|
1921
1923
|
return C(s({}, e), { title: void 0, description: void 0 });
|
|
1922
1924
|
}
|
|
1923
|
-
function
|
|
1925
|
+
function Kd(e) {
|
|
1924
1926
|
var a, o, n;
|
|
1925
1927
|
let t = (a = e.promotion) != null && a.displayTwice ? [...e.oneOf] : e.oneOf.filter((i) => !zs(i)), r = (n = (o = e.promotion) == null ? void 0 : o.other.heading) == null ? void 0 : n.text;
|
|
1926
1928
|
return t.length === 1 ? C(s({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
|
|
1927
1929
|
}
|
|
1928
|
-
var Co =
|
|
1930
|
+
var Co = $d;
|
|
1929
1931
|
var ta = require("@transferwise/components");
|
|
1930
1932
|
var Vs = require("react-intl");
|
|
1931
1933
|
var js = require("react-intl");
|
|
1932
1934
|
var So = (0, js.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." } });
|
|
1933
1935
|
var qt = require("react/jsx-runtime");
|
|
1934
|
-
function
|
|
1935
|
-
let { title: r = "" } = e, { formatMessage: a } = (0, Vs.useIntl)(), o =
|
|
1936
|
+
function Jd({ schema: e, model: t }) {
|
|
1937
|
+
let { title: r = "" } = e, { formatMessage: a } = (0, Vs.useIntl)(), o = Xd({ schema: e, model: t, formatMessage: a });
|
|
1936
1938
|
return (0, qt.jsx)(ta.DefinitionList, { layout: ta.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: o, key: "" }] });
|
|
1937
1939
|
}
|
|
1938
|
-
var Fo =
|
|
1939
|
-
function
|
|
1940
|
-
return Ve(e) ? ge(e) ?
|
|
1941
|
-
}
|
|
1942
|
-
function Xd(e, t) {
|
|
1943
|
-
let r = Yd(e, t);
|
|
1944
|
-
return r ? Zd(r) : t;
|
|
1940
|
+
var Fo = Jd;
|
|
1941
|
+
function Xd({ schema: e, model: t, formatMessage: r }) {
|
|
1942
|
+
return Ve(e) ? ge(e) ? Yd(e, t) : e.type === "boolean" && Ie(t) ? r(t ? So.yes : So.no) : t && t.toString() || "" : "";
|
|
1945
1943
|
}
|
|
1946
1944
|
function Yd(e, t) {
|
|
1945
|
+
let r = Zd(e, t);
|
|
1946
|
+
return r ? Qd(r) : t;
|
|
1947
|
+
}
|
|
1948
|
+
function Zd(e, t) {
|
|
1947
1949
|
return e.oneOf.find((r) => "const" in r ? t === r.const : false);
|
|
1948
1950
|
}
|
|
1949
|
-
function
|
|
1951
|
+
function Qd(e) {
|
|
1950
1952
|
let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Vt({ icon: e.icon });
|
|
1951
1953
|
return r != null && r.avatar ? (0, qt.jsxs)(qt.Fragment, { children: [r.avatar, " ", t] }) : t;
|
|
1952
1954
|
}
|
|
1953
1955
|
var Be = require("react");
|
|
1954
1956
|
var Hs = require("react/jsx-runtime");
|
|
1955
1957
|
function Us(e) {
|
|
1956
|
-
let { schema: t, model: r, required: a, submitted: o, errors: n, onChange: i } = e, [c,
|
|
1958
|
+
let { schema: t, model: r, required: a, submitted: o, errors: n, onChange: i } = e, [c, d] = (0, Be.useState)(r), m = (0, Be.useRef)(null), [p, h] = (0, Be.useState)(null), [y, u] = (0, Be.useState)(null), [l, f] = (0, Be.useState)(false), [w, S] = (0, Be.useState)(null), F = ae(), g = re(), v = Mt();
|
|
1957
1959
|
(0, Be.useEffect)(() => {
|
|
1958
1960
|
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".', {});
|
|
1959
1961
|
}, [v, t.validationAsync.method]);
|
|
@@ -1974,8 +1976,8 @@ var require_main_min = __commonJS({
|
|
|
1974
1976
|
let D = new AbortController();
|
|
1975
1977
|
return S(D), D.signal;
|
|
1976
1978
|
};
|
|
1977
|
-
return (0, Hs.jsx)(Ct, s({}, { submitted: o ||
|
|
1978
|
-
i(C(s({}, D), { triggerSchema: t, triggerModel: D.model })), u(null), h(null),
|
|
1979
|
+
return (0, Hs.jsx)(Ct, s({}, { submitted: o || l, model: c, errors: y || n, infoMessage: p, onChange: (D) => {
|
|
1980
|
+
i(C(s({}, D), { triggerSchema: t, triggerModel: D.model })), u(null), h(null), d(D.model);
|
|
1979
1981
|
}, onBlur: () => {
|
|
1980
1982
|
!I(c) && !Je(c, m.current) && G(c, t) && O(c, t.validationAsync);
|
|
1981
1983
|
}, required: a, schema: t }));
|
|
@@ -1984,11 +1986,11 @@ var require_main_min = __commonJS({
|
|
|
1984
1986
|
var bo = Us;
|
|
1985
1987
|
var he = require("react/jsx-runtime");
|
|
1986
1988
|
var Gs = require("react");
|
|
1987
|
-
function
|
|
1988
|
-
let { schema: t, model: r = null, errors: a = null, hideTitle: o = false, disabled: n = false } = e, i = C(s({}, e), { model: r, errors: a, hideTitle: o, disabled: n }), c = dt(t),
|
|
1989
|
+
function eu(e) {
|
|
1990
|
+
let { schema: t, model: r = null, errors: a = null, hideTitle: o = false, disabled: n = false } = e, i = C(s({}, e), { model: r, errors: a, hideTitle: o, disabled: n }), c = dt(t), d = Mt();
|
|
1989
1991
|
switch ((0, qs.useEffect)(() => {
|
|
1990
|
-
|
|
1991
|
-
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(a), c,
|
|
1992
|
+
tu(t, r, a) || d.error("Invalid schema or model", `Schema of type ${c || "undefined"} requested, but schema did not pass validation.`);
|
|
1993
|
+
}, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(a), c, d]), c) {
|
|
1992
1994
|
case "readOnly":
|
|
1993
1995
|
return (0, he.jsx)(Fo, s({}, i));
|
|
1994
1996
|
case "persistAsync":
|
|
@@ -2012,8 +2014,8 @@ var require_main_min = __commonJS({
|
|
|
2012
2014
|
}
|
|
2013
2015
|
return (0, he.jsx)(he.Fragment, {});
|
|
2014
2016
|
}
|
|
2015
|
-
var me =
|
|
2016
|
-
var
|
|
2017
|
+
var me = eu;
|
|
2018
|
+
var tu = (e, t, r) => {
|
|
2017
2019
|
switch (dt(e)) {
|
|
2018
2020
|
case "persistAsync":
|
|
2019
2021
|
return Br(e) && jr(t) && rr(r);
|
|
@@ -2035,21 +2037,21 @@ var require_main_min = __commonJS({
|
|
|
2035
2037
|
return false;
|
|
2036
2038
|
};
|
|
2037
2039
|
var xo = require("react/jsx-runtime");
|
|
2038
|
-
function
|
|
2040
|
+
function ru({ component: e, model: t = null, errors: r = null, submitted: a, onModelChange: o, onPersistAsync: n }) {
|
|
2039
2041
|
let i = e.schema;
|
|
2040
2042
|
return (0, xo.jsx)("div", { className: V(e.margin || "md"), children: (0, xo.jsx)(me, { schema: i, model: t, errors: r, submitted: a, onChange: (c) => {
|
|
2041
2043
|
o(s({ formSchema: i }, c));
|
|
2042
2044
|
}, onPersistAsync: n }) });
|
|
2043
2045
|
}
|
|
2044
|
-
var vo =
|
|
2046
|
+
var vo = ru;
|
|
2045
2047
|
var ra = require("@transferwise/components");
|
|
2046
2048
|
var Ws = Ee(Xe());
|
|
2047
2049
|
var ve = require("react/jsx-runtime");
|
|
2048
|
-
var
|
|
2050
|
+
var au = (e) => {
|
|
2049
2051
|
let { text: t, size: r = "md", align: a = "left", margin: o = "md", control: n } = e.component, i = (0, Ws.default)(Ce({ align: a, margin: o }));
|
|
2050
|
-
return n === "display" ? (0, ve.jsx)(
|
|
2052
|
+
return n === "display" ? (0, ve.jsx)(nu, { size: r, text: t, classes: i }) : (0, ve.jsx)(ou, { size: r, text: t, classes: i });
|
|
2051
2053
|
};
|
|
2052
|
-
var
|
|
2054
|
+
var ou = ({ size: e, text: t, classes: r }) => {
|
|
2053
2055
|
switch (e) {
|
|
2054
2056
|
case "xs":
|
|
2055
2057
|
return (0, ve.jsx)("h5", { className: r, children: t });
|
|
@@ -2064,7 +2066,7 @@ var require_main_min = __commonJS({
|
|
|
2064
2066
|
return (0, ve.jsx)("h3", { className: r, children: t });
|
|
2065
2067
|
}
|
|
2066
2068
|
};
|
|
2067
|
-
var
|
|
2069
|
+
var nu = ({ size: e, text: t, classes: r }) => {
|
|
2068
2070
|
switch (e) {
|
|
2069
2071
|
case "xs":
|
|
2070
2072
|
case "sm":
|
|
@@ -2077,7 +2079,7 @@ var require_main_min = __commonJS({
|
|
|
2077
2079
|
return (0, ve.jsx)(ra.Display, { type: "display-medium", className: r, children: t });
|
|
2078
2080
|
}
|
|
2079
2081
|
};
|
|
2080
|
-
var Ao =
|
|
2082
|
+
var Ao = au;
|
|
2081
2083
|
var Oo = require("@transferwise/components");
|
|
2082
2084
|
var ur = require("react/jsx-runtime");
|
|
2083
2085
|
var Po = ({ component: e }) => {
|
|
@@ -2088,44 +2090,44 @@ var require_main_min = __commonJS({
|
|
|
2088
2090
|
var $s = require("@transferwise/components");
|
|
2089
2091
|
var aa = require("react");
|
|
2090
2092
|
var ko = require("react/jsx-runtime");
|
|
2091
|
-
function
|
|
2092
|
-
let { url: t, size: r, text: a, margin: o, accessibilityDescription: n } = e, i = ae(), [c,
|
|
2093
|
+
function iu({ component: e }) {
|
|
2094
|
+
let { url: t, size: r, text: a, margin: o, accessibilityDescription: n } = e, i = ae(), [c, d] = (0, aa.useState)("");
|
|
2093
2095
|
(0, aa.useEffect)(() => {
|
|
2094
|
-
|
|
2096
|
+
cu(i, t).then(d);
|
|
2095
2097
|
}, [t, i]);
|
|
2096
2098
|
let m = { alt: n || a || "", src: c, stretch: true, shrink: true };
|
|
2097
2099
|
return c ? (0, ko.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, ko.jsx)($s.Image, s({ className: `img-responsive ${V(o || "md")}` }, m)) }) : null;
|
|
2098
2100
|
}
|
|
2099
|
-
var
|
|
2101
|
+
var su = (e) => new Promise((t, r) => {
|
|
2100
2102
|
let a = new FileReader();
|
|
2101
2103
|
a.addEventListener("loadend", () => t(a.result)), a.addEventListener("error", (o) => r(o)), a.readAsDataURL(e);
|
|
2102
2104
|
});
|
|
2103
|
-
var
|
|
2105
|
+
var cu = async (e, t) => {
|
|
2104
2106
|
var r;
|
|
2105
2107
|
try {
|
|
2106
2108
|
return vn(t) || t != null && t.startsWith(`${(r = window == null ? void 0 : window.location) == null ? void 0 : r.origin}/`) ? e(t, { method: "GET", headers: { "Content-Type": "image/image" }, credentials: "same-origin" }).then((a) => {
|
|
2107
2109
|
if (a.ok)
|
|
2108
2110
|
return a.blob();
|
|
2109
2111
|
throw new Error("Image fetching failed");
|
|
2110
|
-
}).then(
|
|
2112
|
+
}).then(su).catch(() => t) : t;
|
|
2111
2113
|
} catch (a) {
|
|
2112
2114
|
return t;
|
|
2113
2115
|
}
|
|
2114
2116
|
};
|
|
2115
|
-
var Eo =
|
|
2117
|
+
var Eo = iu;
|
|
2116
2118
|
var oa = require("@transferwise/components");
|
|
2117
2119
|
var pr = require("react/jsx-runtime");
|
|
2118
|
-
var
|
|
2119
|
-
var
|
|
2120
|
-
var
|
|
2121
|
-
let { items: t } = e, r = t.filter((o) =>
|
|
2120
|
+
var mu = ["positive", "neutral"];
|
|
2121
|
+
var lu = ["warning", "negative"];
|
|
2122
|
+
var du = ({ component: e }) => {
|
|
2123
|
+
let { items: t } = e, r = t.filter((o) => mu.includes(o.context)).map(({ text: o }) => o), a = t.filter((o) => lu.includes(o.context)).map(({ text: o }) => o);
|
|
2122
2124
|
return (0, pr.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, pr.jsx)(oa.Header, { title: e.title }) : null, (0, pr.jsx)(oa.InstructionsList, { dos: r, donts: a })] });
|
|
2123
2125
|
};
|
|
2124
|
-
var Io =
|
|
2126
|
+
var Io = du;
|
|
2125
2127
|
var H = require("react/jsx-runtime");
|
|
2126
2128
|
var K = (e) => JSON.stringify(e);
|
|
2127
|
-
function
|
|
2128
|
-
let { components: t, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c, baseUrl:
|
|
2129
|
+
function uu(e) {
|
|
2130
|
+
let { components: t, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c, baseUrl: d } = e, m = (p) => {
|
|
2129
2131
|
switch (p.type) {
|
|
2130
2132
|
case "heading":
|
|
2131
2133
|
return (0, H.jsx)(Ao, { component: p }, K(p));
|
|
@@ -2170,27 +2172,27 @@ var require_main_min = __commonJS({
|
|
|
2170
2172
|
return (0, H.jsx)("div", {}, K(p));
|
|
2171
2173
|
}
|
|
2172
2174
|
};
|
|
2173
|
-
return wn() ||
|
|
2175
|
+
return wn() || d == null ? (0, H.jsx)(H.Fragment, { children: t.map(m) }) : (0, H.jsx)(Ir, { baseUrl: d, children: t.map(m) });
|
|
2174
2176
|
}
|
|
2175
|
-
var ne =
|
|
2177
|
+
var ne = uu;
|
|
2176
2178
|
var na = require("@transferwise/components");
|
|
2177
2179
|
var Gt = require("react/jsx-runtime");
|
|
2178
|
-
var
|
|
2179
|
-
var
|
|
2180
|
-
let o = s(s({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Gt.jsx)(Ye, { type: r.name }) } : {}), a ? { status:
|
|
2180
|
+
var pu = ({ component: e }) => (0, Gt.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, Gt.jsx)(na.Header, { title: e.title }) : null, e.items.map(yu)] });
|
|
2181
|
+
var yu = ({ title: e, description: t, icon: r, status: a }) => {
|
|
2182
|
+
let o = s(s({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Gt.jsx)(Ye, { type: r.name }) } : {}), a ? { status: gu[a] } : {});
|
|
2181
2183
|
return (0, Gt.jsx)(na.Summary, s({}, o));
|
|
2182
2184
|
};
|
|
2183
|
-
var
|
|
2184
|
-
var
|
|
2185
|
-
var
|
|
2186
|
-
var Do =
|
|
2185
|
+
var fu = { done: "done", pending: "pending", "not-done": "notDone" };
|
|
2186
|
+
var hu = { positive: "done", warning: "pending", neutral: "notDone" };
|
|
2187
|
+
var gu = s(s({}, fu), hu);
|
|
2188
|
+
var Do = pu;
|
|
2187
2189
|
var _s = require("@transferwise/components");
|
|
2188
2190
|
var Ks = require("react/jsx-runtime");
|
|
2189
|
-
var
|
|
2191
|
+
var wu = ({ component: e }) => {
|
|
2190
2192
|
let { margin: t = "md", size: r = "md" } = e;
|
|
2191
2193
|
return (0, Ks.jsx)(_s.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${V(t)}` }, "data-testid": "loading-indicator" });
|
|
2192
2194
|
};
|
|
2193
|
-
var yr =
|
|
2195
|
+
var yr = wu;
|
|
2194
2196
|
var Qs = require("@transferwise/components");
|
|
2195
2197
|
var ec = require("react-intl");
|
|
2196
2198
|
var Js = require("react-intl");
|
|
@@ -2199,39 +2201,39 @@ var require_main_min = __commonJS({
|
|
|
2199
2201
|
var Ys = require("react");
|
|
2200
2202
|
function Zs() {
|
|
2201
2203
|
let e = (0, Ys.useContext)(Xs.SnackbarContext);
|
|
2202
|
-
return e ? e.createSnackbar :
|
|
2204
|
+
return e ? e.createSnackbar : Cu;
|
|
2203
2205
|
}
|
|
2204
|
-
function
|
|
2206
|
+
function Cu() {
|
|
2205
2207
|
}
|
|
2206
2208
|
var tt = require("react/jsx-runtime");
|
|
2207
|
-
function Cu({ component: e }) {
|
|
2208
|
-
return e.control === "copyable" ? (0, tt.jsx)(Fu, { component: e }) : (0, tt.jsx)(Su, { component: e });
|
|
2209
|
-
}
|
|
2210
2209
|
function Su({ component: e }) {
|
|
2211
|
-
return (0, tt.
|
|
2210
|
+
return e.control === "copyable" ? (0, tt.jsx)(bu, { component: e }) : (0, tt.jsx)(Fu, { component: e });
|
|
2212
2211
|
}
|
|
2213
2212
|
function Fu({ component: e }) {
|
|
2213
|
+
return (0, tt.jsxs)("p", { className: Ce(e), children: [" ", e.text, " "] });
|
|
2214
|
+
}
|
|
2215
|
+
function bu({ component: e }) {
|
|
2214
2216
|
let { formatMessage: t } = (0, ec.useIntl)(), r = Zs(), { text: a } = e, o = () => {
|
|
2215
2217
|
var i;
|
|
2216
|
-
(i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(Bo.copied) })).catch(
|
|
2218
|
+
(i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(Bo.copied) })).catch(xu);
|
|
2217
2219
|
}, n = `${Ce({ align: e.align, margin: "sm" })} form-control`;
|
|
2218
2220
|
return (0, tt.jsxs)("div", { className: Ce(e), children: [(0, tt.jsx)("input", { type: "text", className: n, value: a, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, tt.jsx)(Qs.Button, { block: true, onClick: o, children: t(Bo.copy) })] });
|
|
2219
2221
|
}
|
|
2220
|
-
function
|
|
2222
|
+
function xu() {
|
|
2221
2223
|
}
|
|
2222
|
-
var Lo =
|
|
2224
|
+
var Lo = Su;
|
|
2223
2225
|
var ia = require("@transferwise/components");
|
|
2224
2226
|
var le = require("react/jsx-runtime");
|
|
2225
|
-
var
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2228
|
-
function
|
|
2229
|
-
let t = e.component, r = V(t.margin || "xs"), a = (c,
|
|
2230
|
-
m.preventDefault(),
|
|
2231
|
-
} }), o =
|
|
2232
|
-
return (0, le.jsxs)("div", { className: r, children: [t.title && (0, le.jsx)(ia.Header, { title: t.title, action: n || i || void 0 }), (0, le.jsx)("div", { className: r, children: (0, le.jsx)(ia.DefinitionList, { layout: o, definitions:
|
|
2233
|
-
}
|
|
2234
|
-
var To =
|
|
2227
|
+
var vu = (e, t) => t.fields.map(({ label: r, value: a, help: o }, n) => ({ key: String(n), title: r, value: Au(a, o, e) }));
|
|
2228
|
+
var Au = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, le.jsxs)(le.Fragment, { children: [(0, le.jsx)(qe, { help: t }), " ", e] }) : (0, le.jsxs)(le.Fragment, { children: [e, " ", (0, le.jsx)(qe, { help: t })] }) : e;
|
|
2229
|
+
var Ou = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
|
|
2230
|
+
function Pu(e) {
|
|
2231
|
+
let t = e.component, r = V(t.margin || "xs"), a = (c, d) => ({ text: c != null ? c : "", href: d.url, onClick: (m) => {
|
|
2232
|
+
m.preventDefault(), d && e.onAction(d);
|
|
2233
|
+
} }), o = Ou(t), n = t.callToAction ? a(t.callToAction.title, t.callToAction.action) : null, i = !n && t.action ? a(t.action.title || "", t.action) : null;
|
|
2234
|
+
return (0, le.jsxs)("div", { className: r, children: [t.title && (0, le.jsx)(ia.Header, { title: t.title, action: n || i || void 0 }), (0, le.jsx)("div", { className: r, children: (0, le.jsx)(ia.DefinitionList, { layout: o, definitions: vu(o, t) }) })] });
|
|
2235
|
+
}
|
|
2236
|
+
var To = Pu;
|
|
2235
2237
|
var ma = require("react");
|
|
2236
2238
|
var tc = require("@transferwise/components");
|
|
2237
2239
|
var sa = require("react/jsx-runtime");
|
|
@@ -2252,8 +2254,8 @@ var require_main_min = __commonJS({
|
|
|
2252
2254
|
var sc = { "Content-Type": "application/json" };
|
|
2253
2255
|
var cc = (e) => {
|
|
2254
2256
|
let [t, r] = (0, $t.useState)({ status: "idle" }), a = (0, $t.useRef)(null), o = ae(), n = (0, $t.useCallback)(async (m, { url: p, method: h, param: y } = e) => {
|
|
2255
|
-
var
|
|
2256
|
-
if ((
|
|
2257
|
+
var l;
|
|
2258
|
+
if ((l = a.current) == null || l.abort(), !m) {
|
|
2257
2259
|
r({ status: "idle" });
|
|
2258
2260
|
return;
|
|
2259
2261
|
}
|
|
@@ -2261,7 +2263,7 @@ var require_main_min = __commonJS({
|
|
|
2261
2263
|
let { signal: u } = a.current;
|
|
2262
2264
|
r({ status: "loading" });
|
|
2263
2265
|
try {
|
|
2264
|
-
let w = await (h === "GET" ? o(
|
|
2266
|
+
let w = await (h === "GET" ? o(Eu(p, y, m), { method: h, signal: u, headers: sc }) : o(p, { method: h, signal: u, headers: sc, body: JSON.stringify({ [y]: m }) }));
|
|
2265
2267
|
i(w, m);
|
|
2266
2268
|
} catch (f) {
|
|
2267
2269
|
c(f, m);
|
|
@@ -2269,30 +2271,30 @@ var require_main_min = __commonJS({
|
|
|
2269
2271
|
}, [o, JSON.stringify(e)]), i = async (m, p) => {
|
|
2270
2272
|
if (m.ok) {
|
|
2271
2273
|
let h = await m.json().catch(() => null);
|
|
2272
|
-
if (
|
|
2274
|
+
if (Mu(h)) {
|
|
2273
2275
|
r({ status: "success", results: h.results });
|
|
2274
2276
|
return;
|
|
2275
2277
|
}
|
|
2276
2278
|
}
|
|
2277
2279
|
r({ status: "error" });
|
|
2278
2280
|
}, c = (m, p) => {
|
|
2279
|
-
|
|
2280
|
-
},
|
|
2281
|
-
return { status: t.status, results:
|
|
2281
|
+
ku(m) || r({ status: "error" });
|
|
2282
|
+
}, d = t.status === "success" ? t.results : [];
|
|
2283
|
+
return { status: t.status, results: d, search: n };
|
|
2282
2284
|
};
|
|
2283
|
-
var
|
|
2284
|
-
var
|
|
2285
|
-
var
|
|
2285
|
+
var Mu = (e) => R(e) && "results" in e && j(e.results) && e.results.every((t) => R(t) && "title" in t && "type" in t && "value" in t);
|
|
2286
|
+
var ku = (e) => e instanceof DOMException && e.name === "AbortError";
|
|
2287
|
+
var Eu = (e, t, r) => {
|
|
2286
2288
|
let [a, o] = e.split("?"), n = new URLSearchParams(o);
|
|
2287
2289
|
return n.set(t, r), `${a}?${n.toString()}`;
|
|
2288
2290
|
};
|
|
2289
2291
|
var Ft = require("react/jsx-runtime");
|
|
2290
|
-
var
|
|
2291
|
-
function
|
|
2292
|
-
let [r, a] = (0, ma.useState)(""), { title: o, margin: n, url: i, method: c, param:
|
|
2292
|
+
var Iu = 400;
|
|
2293
|
+
function Du({ component: e, onAction: t }) {
|
|
2294
|
+
let [r, a] = (0, ma.useState)(""), { title: o, margin: n, url: i, method: c, param: d, emptyMessage: m } = e, { status: p, results: h, search: y } = cc({ url: i, method: c, param: d }), u = re(), l = (0, ma.useMemo)(() => Ke(y, Iu), [y]), f = () => {
|
|
2293
2295
|
u("Dynamic Flow - Search Started", {});
|
|
2294
2296
|
}, w = (g) => {
|
|
2295
|
-
a(g),
|
|
2297
|
+
a(g), l(g);
|
|
2296
2298
|
}, S = ({ type: g, value: v }) => {
|
|
2297
2299
|
if (g === "action" && (u("Dynamic Flow - Search Result Selected", { type: "action", actionId: v.id || v.$id }), t(v)), g === "search") {
|
|
2298
2300
|
a(v.query);
|
|
@@ -2304,32 +2306,32 @@ var require_main_min = __commonJS({
|
|
|
2304
2306
|
};
|
|
2305
2307
|
return (0, Ft.jsxs)("div", { className: V(n || "md"), children: [(0, Ft.jsx)(rc, { title: o, value: r, onChange: w, onFocus: f }), p === "loading" && (0, Ft.jsx)(yr, { component: { type: "loading-indicator", size: "sm" } }), p === "error" && (0, Ft.jsx)(ic, { onRetrySearch: F }), p === "success" && (0, Ft.jsx)(nc, { results: h, emptyMessage: m, onSelect: S })] });
|
|
2306
2308
|
}
|
|
2307
|
-
var Ro =
|
|
2309
|
+
var Ro = Du;
|
|
2308
2310
|
var la = require("@transferwise/components");
|
|
2309
2311
|
var mc = require("react");
|
|
2310
2312
|
var _t = require("react/jsx-runtime");
|
|
2311
|
-
var
|
|
2313
|
+
var Lu = (e) => {
|
|
2312
2314
|
let [t, r] = (0, mc.useState)(false), { component: a, onAction: o } = e, { margin: n = "md" } = a;
|
|
2313
2315
|
return (0, _t.jsxs)("div", { className: Ce({ margin: n }), children: [(0, _t.jsx)(la.Button, { priority: "tertiary", block: true, onClick: () => r(true), children: a.trigger.title }), (0, _t.jsx)(la.Modal, { scroll: "content", onClose: () => r(false), open: t, size: "lg", body: (0, _t.jsx)(ne, C(s({}, e), { components: a.content.components, onAction: o })) })] });
|
|
2314
2316
|
};
|
|
2315
|
-
var No =
|
|
2317
|
+
var No = Lu;
|
|
2316
2318
|
var ue = require("react/jsx-runtime");
|
|
2317
2319
|
var zo = (e) => I(e) || Y(e);
|
|
2318
|
-
var
|
|
2320
|
+
var Tu = (e) => e.type === "boolean" && zo(e.default) ? false : e.default;
|
|
2319
2321
|
var dc = (e) => {
|
|
2320
2322
|
var ee, A, B;
|
|
2321
2323
|
let t = (k) => {
|
|
2322
2324
|
y(true), a(o(k), "user");
|
|
2323
2325
|
}, r = (k) => _e(k, e.schema, e.required), a = (k, ie) => {
|
|
2324
|
-
|
|
2326
|
+
d(k);
|
|
2325
2327
|
let W = r(k);
|
|
2326
2328
|
F(W);
|
|
2327
2329
|
let X = k;
|
|
2328
2330
|
p(X), X !== m && e.onChange({ model: X, triggerSchema: e.schema, triggerModel: X, lastTriggerModel: m, type: ie });
|
|
2329
|
-
}, o = (k) => $e(k, e.schema), n = () =>
|
|
2330
|
-
|
|
2331
|
-
}, [c,
|
|
2332
|
-
let k =
|
|
2331
|
+
}, o = (k) => $e(k, e.schema), n = () => l(true), i = () => {
|
|
2332
|
+
l(false), w(true), e.onBlur && e.onBlur();
|
|
2333
|
+
}, [c, d] = (0, de.useState)((ee = e.model) != null ? ee : null), [m, p] = (0, de.useState)((A = e.model) != null ? A : null), [h, y] = (0, de.useState)(false), [u, l] = (0, de.useState)(false), [f, w] = (0, de.useState)(false), [S, F] = (0, de.useState)([]), g = (0, de.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), v = () => {
|
|
2334
|
+
let k = Tu(e.schema);
|
|
2333
2335
|
zo(c) && !zo(k) && a(k, "init"), e.schema.const && a(e.schema.const, "init");
|
|
2334
2336
|
}, O = () => {
|
|
2335
2337
|
F(r(c));
|
|
@@ -2337,7 +2339,7 @@ var require_main_min = __commonJS({
|
|
|
2337
2339
|
(0, de.useEffect)(O, [e.model, e.submitted]), (0, de.useEffect)(v, [e.schema]), (0, de.useEffect)(() => {
|
|
2338
2340
|
var ie;
|
|
2339
2341
|
let k = (ie = e.model) != null ? ie : null;
|
|
2340
|
-
k !== c &&
|
|
2342
|
+
k !== c && d(k);
|
|
2341
2343
|
}, [e.model]);
|
|
2342
2344
|
let E = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && f) && !!S.length, "has-info": !!e.schema.description || !!e.infoMessage }, P = e.schema.format !== "file" && e.schema.type !== "boolean", D = e.schema.help, U = `${g}-feedback`;
|
|
2343
2345
|
return M ? null : (0, ue.jsxs)(ue.Fragment, { children: [e.schema.alert && (0, ue.jsx)(se, { component: e.schema.alert }), (0, ue.jsxs)("div", { className: (0, lc.default)(E), children: [P && (0, ue.jsxs)("div", { className: "d-inline-block m-b-1", children: [(0, ue.jsx)("label", { className: "control-label d-inline", htmlFor: g, children: e.schema.title }), !!D && (0, ue.jsx)(qe, { help: D })] }), !P && !!D && (0, ue.jsx)(qe, { help: D }), (0, ue.jsx)(lr, { id: g, schema: e.schema, value: c, disabled: !!e.disabled, onChange: t, onFocus: n, onBlur: i, describedBy: U }), (0, ue.jsx)(He, { id: U, changed: h, focused: u, blurred: f, submitted: e.submitted, errors: (B = e.errors) != null ? B : null, schema: e.schema, validations: S, infoMessage: e.infoMessage })] })] });
|
|
@@ -2350,18 +2352,18 @@ var require_main_min = __commonJS({
|
|
|
2350
2352
|
var r;
|
|
2351
2353
|
return (r = t.validation) == null ? void 0 : r[e];
|
|
2352
2354
|
};
|
|
2353
|
-
var
|
|
2355
|
+
var Ru = /* @__PURE__ */ new Set([N.RADIO, N.SELECT, N.DATELOOKUP, N.FILE, N.UPLOAD]);
|
|
2354
2356
|
function yc(e) {
|
|
2355
|
-
let { schema: t, required: r, submitted: a, errors: o, onChange: n, onPersistAsync: i } = e, c = (0, uc.useIntl)(),
|
|
2357
|
+
let { schema: t, required: r, submitted: a, errors: o, onChange: n, onPersistAsync: i } = e, c = (0, uc.useIntl)(), d = ae(), m = re(), [p, h] = (0, bt.useState)(null), y = hc(p), [u, l] = (0, bt.useState)(null), [f, w] = (0, bt.useState)(false), [S, F] = (0, bt.useState)(null);
|
|
2356
2358
|
(0, bt.useEffect)(() => {
|
|
2357
|
-
|
|
2359
|
+
Ru.has(lo(t.persistAsync.schema)) && x();
|
|
2358
2360
|
}, [p]);
|
|
2359
|
-
let g = () =>
|
|
2361
|
+
let g = () => l(c.formatMessage(nr.genericError)), v = async (P, D) => {
|
|
2360
2362
|
let U = O(), ee = { [D.param]: P };
|
|
2361
2363
|
w(true);
|
|
2362
2364
|
try {
|
|
2363
2365
|
m("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t.$id });
|
|
2364
|
-
let A =
|
|
2366
|
+
let A = d(D.url, { method: D.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(ee), signal: U });
|
|
2365
2367
|
i(A);
|
|
2366
2368
|
let B = await A, k = await B.json();
|
|
2367
2369
|
if (!R(k))
|
|
@@ -2372,7 +2374,7 @@ var require_main_min = __commonJS({
|
|
|
2372
2374
|
n({ model: X, triggerSchema: t, triggerModel: X });
|
|
2373
2375
|
} else if (Lr(B.status)) {
|
|
2374
2376
|
let { validation: X } = k, ke = R(X) && (X == null ? void 0 : X[W]) || null;
|
|
2375
|
-
|
|
2377
|
+
l(ke), n({ model: null, triggerSchema: t, triggerModel: null });
|
|
2376
2378
|
} else
|
|
2377
2379
|
g();
|
|
2378
2380
|
m("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
|
|
@@ -2388,7 +2390,7 @@ var require_main_min = __commonJS({
|
|
|
2388
2390
|
}, M = () => {
|
|
2389
2391
|
x();
|
|
2390
2392
|
}, E = ({ model: P }) => {
|
|
2391
|
-
|
|
2393
|
+
l(null), G(P, t.persistAsync.schema) && h(P);
|
|
2392
2394
|
};
|
|
2393
2395
|
return (0, fc.jsx)(Ct, { required: r, submitted: a || f, schema: t.persistAsync.schema, errors: u || o, model: null, infoMessage: null, onChange: E, onBlur: M });
|
|
2394
2396
|
}
|
|
@@ -2405,18 +2407,18 @@ var require_main_min = __commonJS({
|
|
|
2405
2407
|
let y = new AbortController();
|
|
2406
2408
|
return r(y), y.signal;
|
|
2407
2409
|
};
|
|
2408
|
-
function
|
|
2409
|
-
let u = Dt(n),
|
|
2410
|
-
return { method: e.method, headers: s({}, !u && { "Content-Type": "application/json" }), body: w, signal:
|
|
2410
|
+
function d(y) {
|
|
2411
|
+
let u = Dt(n), l = c(), f = e.param, w = u ? Nu(f, y) : JSON.stringify({ [f]: y });
|
|
2412
|
+
return { method: e.method, headers: s({}, !u && { "Content-Type": "application/json" }), body: w, signal: l };
|
|
2411
2413
|
}
|
|
2412
2414
|
async function m(y) {
|
|
2413
2415
|
try {
|
|
2414
|
-
let u = await a(e.url,
|
|
2416
|
+
let u = await a(e.url, d(y));
|
|
2415
2417
|
if (!u.ok)
|
|
2416
2418
|
return p(u);
|
|
2417
|
-
let
|
|
2418
|
-
if (R(
|
|
2419
|
-
let f =
|
|
2419
|
+
let l = await u.json();
|
|
2420
|
+
if (R(l)) {
|
|
2421
|
+
let f = l[e.idProperty];
|
|
2420
2422
|
if (L(f) || z(f))
|
|
2421
2423
|
return { data: f };
|
|
2422
2424
|
}
|
|
@@ -2429,47 +2431,47 @@ var require_main_min = __commonJS({
|
|
|
2429
2431
|
if (y.status === 422) {
|
|
2430
2432
|
let u = await y.json();
|
|
2431
2433
|
if (R(u)) {
|
|
2432
|
-
let
|
|
2433
|
-
if (L(
|
|
2434
|
-
throw new Error(
|
|
2434
|
+
let l = pc(e.param, u);
|
|
2435
|
+
if (L(l))
|
|
2436
|
+
throw new Error(l);
|
|
2435
2437
|
}
|
|
2436
2438
|
}
|
|
2437
2439
|
throw new Error(o.formatMessage(nr.genericError));
|
|
2438
2440
|
}
|
|
2439
2441
|
let h = (y) => {
|
|
2440
|
-
let u =
|
|
2442
|
+
let u = Bu(y) ? y.message : o.formatMessage(nr.genericError);
|
|
2441
2443
|
throw new Error(u);
|
|
2442
2444
|
};
|
|
2443
2445
|
return i;
|
|
2444
2446
|
};
|
|
2445
|
-
function
|
|
2447
|
+
function Nu(e, t) {
|
|
2446
2448
|
let r = new FormData();
|
|
2447
2449
|
return t !== null && r.append(e, t), r;
|
|
2448
2450
|
}
|
|
2449
|
-
function
|
|
2451
|
+
function Bu(e) {
|
|
2450
2452
|
return R(e) && "message" in e && typeof e.message == "string";
|
|
2451
2453
|
}
|
|
2452
2454
|
var rt = require("react");
|
|
2453
2455
|
function Vr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: a, onPollingResponse: o, onFailure: n }) {
|
|
2454
|
-
let i = (0, rt.useRef)(o), c = (0, rt.useRef)(n),
|
|
2456
|
+
let i = (0, rt.useRef)(o), c = (0, rt.useRef)(n), d = (0, rt.useMemo)(() => zu(e, r, a, (m) => i.current(m), () => c.current()), [e, r, a]);
|
|
2455
2457
|
(0, rt.useEffect)(() => {
|
|
2456
2458
|
if (t > 0) {
|
|
2457
2459
|
let m = setInterval(() => {
|
|
2458
|
-
|
|
2460
|
+
d();
|
|
2459
2461
|
}, t);
|
|
2460
2462
|
return () => clearInterval(m);
|
|
2461
2463
|
}
|
|
2462
|
-
}, [
|
|
2464
|
+
}, [d, t]), (0, rt.useEffect)(() => {
|
|
2463
2465
|
i.current = o, c.current = n;
|
|
2464
2466
|
}, [o, n]);
|
|
2465
2467
|
}
|
|
2466
|
-
function
|
|
2468
|
+
function zu(e, t, r, a, o) {
|
|
2467
2469
|
let n = true, i = 0, c = 0;
|
|
2468
2470
|
return e ? () => {
|
|
2469
|
-
n && (c++, e().then((
|
|
2470
|
-
i = 0, n = a(
|
|
2471
|
-
}).catch((
|
|
2472
|
-
|
|
2471
|
+
n && (c++, e().then((d) => {
|
|
2472
|
+
i = 0, n = a(d);
|
|
2473
|
+
}).catch((d) => {
|
|
2474
|
+
d.message !== "network failed" && (i += 1);
|
|
2473
2475
|
}).finally(() => {
|
|
2474
2476
|
(i >= r || c >= t) && (o(), n = false);
|
|
2475
2477
|
}));
|
|
@@ -2500,20 +2502,20 @@ var require_main_min = __commonJS({
|
|
|
2500
2502
|
}, [t, e]) });
|
|
2501
2503
|
}
|
|
2502
2504
|
var Sc = require("react/jsx-runtime");
|
|
2503
|
-
var
|
|
2505
|
+
var ju = (e, t) => {
|
|
2504
2506
|
var a;
|
|
2505
2507
|
if (kt(e))
|
|
2506
2508
|
return [];
|
|
2507
2509
|
let r = Qt(e, t);
|
|
2508
2510
|
return ze({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (a = e.model) != null ? a : null });
|
|
2509
2511
|
};
|
|
2510
|
-
var
|
|
2511
|
-
let { stepSpecification: t, stepLayoutOptions: r, submitted: a, model: o, formErrors: n, onModelChange: i } = e, c =
|
|
2512
|
+
var Vu = (e) => {
|
|
2513
|
+
let { stepSpecification: t, stepLayoutOptions: r, submitted: a, model: o, formErrors: n, onModelChange: i } = e, c = ju(t, r), { loading: d, registerPersistAsyncPromise: m } = At(), p = re(), h = d ? () => {
|
|
2512
2514
|
p("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
|
|
2513
2515
|
} : e.onAction;
|
|
2514
2516
|
return Cc(t.polling, h), (0, Sc.jsx)(ne, { components: c, submitted: a, model: o, errors: n, onAction: h, onModelChange: i, onPersistAsync: m });
|
|
2515
2517
|
};
|
|
2516
|
-
var ua =
|
|
2518
|
+
var ua = Vu;
|
|
2517
2519
|
var ga = require("react");
|
|
2518
2520
|
var oe = require("react");
|
|
2519
2521
|
var Hc = require("react-intl");
|
|
@@ -2523,27 +2525,27 @@ var require_main_min = __commonJS({
|
|
|
2523
2525
|
var Oe = require("@transferwise/components");
|
|
2524
2526
|
var xc = require("react-intl");
|
|
2525
2527
|
var Ae = require("react/jsx-runtime");
|
|
2526
|
-
var Vo = ({ onCapture: e }) => (0, Ae.jsx)("div", { className: "bottom-bar", children: (0, Ae.jsx)(
|
|
2528
|
+
var Vo = ({ onCapture: e }) => (0, Ae.jsx)("div", { className: "bottom-bar", children: (0, Ae.jsx)(Uu, { onClick: e }) });
|
|
2527
2529
|
var Uo = ({ onSubmit: e, onRetry: t }) => {
|
|
2528
2530
|
let r = (0, xc.useIntl)();
|
|
2529
2531
|
return (0, Ae.jsx)("div", { className: "bottom-bar p-x-2", children: (0, Ae.jsx)("div", { className: "row", children: (0, Ae.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, Ae.jsx)(Oe.Button, { className: "m-b-1", block: true, size: Oe.Size.MEDIUM, type: Oe.ControlType.ACCENT, onClick: e, children: r.formatMessage(pe.reviewSubmit) }), (0, Ae.jsx)(Oe.Button, { className: "m-b-2", block: true, size: Oe.Size.MEDIUM, type: Oe.ControlType.ACCENT, priority: Oe.Priority.SECONDARY, onClick: t, children: r.formatMessage(pe.reviewRetry) })] }) }) });
|
|
2530
2532
|
};
|
|
2531
|
-
var
|
|
2533
|
+
var Uu = ({ onClick: e }) => (0, Ae.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, Ae.jsx)("span", { className: "camera-capture-btn-inner" }) });
|
|
2532
2534
|
var Oc = require("react-intl");
|
|
2533
2535
|
var vc = require("react-intl");
|
|
2534
2536
|
var Ac = (0, vc.defineMessages)({ text: { id: "dynamicFlows.CameraCapture.rotatePhone.text", defaultMessage: "Rotate your phone to portrait view to take a photo", description: "Prompt the user to rotate their phone from landscape to portrait mode when attempting to take a photo" } });
|
|
2535
2537
|
var gr = require("react/jsx-runtime");
|
|
2536
|
-
function
|
|
2538
|
+
function Hu() {
|
|
2537
2539
|
let e = (0, Oc.useIntl)();
|
|
2538
2540
|
return (0, gr.jsxs)("div", { className: "orientation-lock-overlay", children: [(0, gr.jsx)("img", { className: "m-b-3", src: "https://wise.com/public-resources/assets/camera-guidelines/icon-rotate-phone.svg", width: "96", height: "96", alt: "" }), (0, gr.jsx)("p", { className: "text-center m-b-0", children: e.formatMessage(Ac.text) })] });
|
|
2539
2541
|
}
|
|
2540
|
-
var Ho =
|
|
2542
|
+
var Ho = Hu;
|
|
2541
2543
|
var Pc = require("@transferwise/components");
|
|
2542
2544
|
var at = require("react/jsx-runtime");
|
|
2543
|
-
function
|
|
2545
|
+
function qu({ title: e, description: t, actionButton: r, onAction: a }) {
|
|
2544
2546
|
return (0, at.jsx)("div", { className: "container p-t-5", children: (0, at.jsx)("div", { className: "row", children: (0, at.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, at.jsx)("h2", { className: "text-xs-center m-b-3", children: e }), (0, at.jsx)("p", { className: "text-xs-center m-b-5", children: t }), a && r && (0, at.jsx)(Pc.Button, { block: true, onClick: a, children: r })] }) }) });
|
|
2545
2547
|
}
|
|
2546
|
-
var qo =
|
|
2548
|
+
var qo = qu;
|
|
2547
2549
|
var ot = require("react");
|
|
2548
2550
|
var Kt = Ee(Mc());
|
|
2549
2551
|
var kc = (e) => {
|
|
@@ -2584,10 +2586,10 @@ var require_main_min = __commonJS({
|
|
|
2584
2586
|
var t, r;
|
|
2585
2587
|
return (r = (t = pa(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
|
|
2586
2588
|
};
|
|
2587
|
-
var ya = (e, t, r) => t == null ? void 0 : t(e, { Error:
|
|
2588
|
-
var
|
|
2589
|
-
var Rc = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await
|
|
2590
|
-
var
|
|
2589
|
+
var ya = (e, t, r) => t == null ? void 0 : t(e, { Error: Gu(r) });
|
|
2590
|
+
var Gu = (e) => e instanceof DOMException ? JSON.stringify({ name: e == null ? void 0 : e.name, message: e == null ? void 0 : e.message }) : e;
|
|
2591
|
+
var Rc = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await Wu(t, r));
|
|
2592
|
+
var Wu = async (e, t) => {
|
|
2591
2593
|
var n;
|
|
2592
2594
|
let r = pa(t), a = Go(t), o = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
|
|
2593
2595
|
return C(s({}, r && { "Available Video Devices (by label)": await Lc(), "Active Video Device (by label)": await Tc(t), "Camera Capabilities": a, "Camera Settings": o }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
|
|
@@ -2602,8 +2604,8 @@ var require_main_min = __commonJS({
|
|
|
2602
2604
|
let r = (0, ot.useCallback)(() => {
|
|
2603
2605
|
window.screen.orientation && "lock" in window.screen.orientation && typeof window.screen.orientation.lock == "function" && window.screen.orientation.lock("portrait").then(() => Bc(t)).catch(Wo);
|
|
2604
2606
|
}, [t]), a = (0, ot.useCallback)(() => {
|
|
2605
|
-
var c,
|
|
2606
|
-
return (m = (
|
|
2607
|
+
var c, d, m;
|
|
2608
|
+
return (m = (d = (c = window == null ? void 0 : window.screen) == null ? void 0 : c.orientation) == null ? void 0 : d.unlock) == null ? void 0 : m.call(d);
|
|
2607
2609
|
}, []), o = (0, ot.useCallback)(() => {
|
|
2608
2610
|
setTimeout(() => {
|
|
2609
2611
|
e && !Kt.default.isFullscreen && Kt.default.isEnabled && Kt.default.request(document.documentElement, { navigationUI: "show" }).then(() => {
|
|
@@ -2613,12 +2615,12 @@ var require_main_min = __commonJS({
|
|
|
2613
2615
|
}, [e, r]), n = (0, ot.useCallback)(() => {
|
|
2614
2616
|
Kt.default.isFullscreen && Kt.default.exit().catch(Wo), a();
|
|
2615
2617
|
}, [a]), i = (0, ot.useCallback)((c) => {
|
|
2616
|
-
var
|
|
2617
|
-
(
|
|
2618
|
+
var d, m;
|
|
2619
|
+
(d = c == null ? void 0 : c.target) != null && d.type.includes("landscape") && (m = window.screen) != null && m.orientation && Nc(t);
|
|
2618
2620
|
}, [t]);
|
|
2619
2621
|
return (0, ot.useEffect)(() => {
|
|
2620
|
-
var c,
|
|
2621
|
-
return e && ((
|
|
2622
|
+
var c, d;
|
|
2623
|
+
return e && ((d = (c = window.screen) == null ? void 0 : c.orientation) == null || d.addEventListener("change", (m) => i(m))), () => {
|
|
2622
2624
|
var m, p;
|
|
2623
2625
|
(p = (m = window.screen) == null ? void 0 : m.orientation) == null || p.removeEventListener("change", i), n();
|
|
2624
2626
|
};
|
|
@@ -2644,38 +2646,38 @@ var require_main_min = __commonJS({
|
|
|
2644
2646
|
};
|
|
2645
2647
|
var ha = require("react");
|
|
2646
2648
|
var J = require("react/jsx-runtime");
|
|
2647
|
-
var
|
|
2649
|
+
var $u = 92;
|
|
2648
2650
|
var Vc = 120;
|
|
2649
|
-
var
|
|
2650
|
-
var
|
|
2651
|
-
var
|
|
2652
|
-
var
|
|
2651
|
+
var _u = 40;
|
|
2652
|
+
var Ku = 32;
|
|
2653
|
+
var Ju = 48;
|
|
2654
|
+
var Xu = 40;
|
|
2653
2655
|
var Uc = 800;
|
|
2654
|
-
function
|
|
2656
|
+
function Yu({ overlay: e, outline: t, imageUrl: r, title: a, instructions: o, reviewInstructions: n }) {
|
|
2655
2657
|
let i = (0, ha.useRef)(null);
|
|
2656
2658
|
(0, ha.useEffect)(() => {
|
|
2657
2659
|
let y = Ke(() => {
|
|
2658
2660
|
var u;
|
|
2659
2661
|
if ((u = i.current) != null && u.innerHTML) {
|
|
2660
|
-
let
|
|
2661
|
-
|
|
2662
|
+
let l = i.current;
|
|
2663
|
+
l.innerHTML = String(l.innerHTML);
|
|
2662
2664
|
}
|
|
2663
2665
|
}, 100);
|
|
2664
2666
|
return window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
2665
2667
|
});
|
|
2666
|
-
let c = (r ?
|
|
2668
|
+
let c = (r ? _u : 0) + (a ? Ku : 0) + (o ? Ju : 0), d = (0, J.jsxs)(J.Fragment, { children: [r && (0, J.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), a && (0, J.jsx)("h4", { className: "camera-capture-title", children: a }), o && (0, J.jsx)("small", { className: "camera-capture-instructions", children: o })] }), m = $u + c;
|
|
2667
2669
|
if (n) {
|
|
2668
|
-
c = m - Vc,
|
|
2669
|
-
let y = Vc +
|
|
2670
|
-
m < y && (
|
|
2670
|
+
c = m - Vc, d = (0, J.jsx)("small", { className: "camera-capture-instructions", children: n });
|
|
2671
|
+
let y = Vc + Xu;
|
|
2672
|
+
m < y && (d = (0, J.jsx)(J.Fragment, {}));
|
|
2671
2673
|
}
|
|
2672
2674
|
let p = { x: "50%", y: "5%", width: `min(90%, ${Uc}px)`, height: `calc(90% - ${m}px)`, style: { transform: `translateX(max(-45%, -${Uc / 2}px))` } }, h = { style: { left: "5%", top: `calc(100% - ${m}px - 5%)`, height: `calc(${c}px + 5%)`, width: "90%" } };
|
|
2673
|
-
return (0, J.jsxs)("svg", { ref: i, xmlns: "http://www.w3.org/2000/svg", children: [(0, J.jsx)("defs", { children: (0, J.jsxs)("mask", { id: "mask", children: [(0, J.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, J.jsx)("image", s({ href: e }, p))] }) }), e && (0, J.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, J.jsx)("image", s({ href: t }, p)), (0, J.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, J.jsx)("div", C(s({ className: "camera-capture-text-and-image-container" }, h), { children:
|
|
2675
|
+
return (0, J.jsxs)("svg", { ref: i, xmlns: "http://www.w3.org/2000/svg", children: [(0, J.jsx)("defs", { children: (0, J.jsxs)("mask", { id: "mask", children: [(0, J.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, J.jsx)("image", s({ href: e }, p))] }) }), e && (0, J.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, J.jsx)("image", s({ href: t }, p)), (0, J.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, J.jsx)("div", C(s({ className: "camera-capture-text-and-image-container" }, h), { children: d })) })] });
|
|
2674
2676
|
}
|
|
2675
|
-
var $o =
|
|
2677
|
+
var $o = Yu;
|
|
2676
2678
|
var ye = require("react/jsx-runtime");
|
|
2677
|
-
function
|
|
2678
|
-
let [m, p] = (0, oe.useState)("CAPTURE"), [h, y] = (0, oe.useState)(), [u,
|
|
2679
|
+
function Zu({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: a = "", title: o = "", instructions: n = "", showReview: i = false, onCapture: c, onEvent: d }) {
|
|
2680
|
+
let [m, p] = (0, oe.useState)("CAPTURE"), [h, y] = (0, oe.useState)(), [u, l] = (0, oe.useState)(false), [f, w] = (0, oe.useState)(false), [S, F] = (0, oe.useState)(), g = (0, oe.useRef)(null), { videoConstraints: v } = jc(e), O = (0, oe.useMemo)(() => !!(Yn() && m === "CAPTURE"), [m]), { enterFullScreen: x, exitFullScreen: M } = zc(O, d), E = (0, Hc.useIntl)(), P = (0, oe.useCallback)(async () => {
|
|
2679
2681
|
var W, X, ke, nt, br, xr;
|
|
2680
2682
|
if ((W = g == null ? void 0 : g.current) != null && W.video && ((ke = (X = g == null ? void 0 : g.current) == null ? void 0 : X.video) == null ? void 0 : ke.readyState) >= 3) {
|
|
2681
2683
|
(br = (nt = g == null ? void 0 : g.current) == null ? void 0 : nt.video) == null || br.pause();
|
|
@@ -2693,19 +2695,19 @@ var require_main_min = __commonJS({
|
|
|
2693
2695
|
if (p("ERROR"), W instanceof DOMException)
|
|
2694
2696
|
switch (W == null ? void 0 : W.name) {
|
|
2695
2697
|
case "NotAllowedError":
|
|
2696
|
-
y({ title: E.formatMessage(pe.noCameraAccessTitle), description: E.formatMessage(pe.noCameraAccessParagraph), actionButton: E.formatMessage(pe.noCameraAccessAction), onAction: B }), ya("Dynamic Flow - Camera Permission Denied",
|
|
2698
|
+
y({ title: E.formatMessage(pe.noCameraAccessTitle), description: E.formatMessage(pe.noCameraAccessParagraph), actionButton: E.formatMessage(pe.noCameraAccessAction), onAction: B }), ya("Dynamic Flow - Camera Permission Denied", d, W);
|
|
2697
2699
|
return;
|
|
2698
2700
|
case "NotFoundError":
|
|
2699
2701
|
case "OverconstrainedError":
|
|
2700
2702
|
case "AbortError":
|
|
2701
2703
|
case "NotReadableError":
|
|
2702
|
-
y({ title: E.formatMessage(pe.cameraConnectionIssueTitle), description: E.formatMessage(pe.cameraConnectionIssueParagraph), actionButton: E.formatMessage(pe.cameraConnectionIssueAction), onAction: B }), ya("Dynamic Flow - Camera Not Accessible",
|
|
2704
|
+
y({ title: E.formatMessage(pe.cameraConnectionIssueTitle), description: E.formatMessage(pe.cameraConnectionIssueParagraph), actionButton: E.formatMessage(pe.cameraConnectionIssueAction), onAction: B }), ya("Dynamic Flow - Camera Not Accessible", d, W);
|
|
2703
2705
|
return;
|
|
2704
2706
|
}
|
|
2705
|
-
y({ title: E.formatMessage(pe.cameraNotSupportedTitle), description: E.formatMessage(pe.cameraNotSupportedParagraph) }), ya("Dynamic Flow - Camera Not Supported",
|
|
2706
|
-
}, [E,
|
|
2707
|
-
x(), w(true),
|
|
2708
|
-
}, [
|
|
2707
|
+
y({ title: E.formatMessage(pe.cameraNotSupportedTitle), description: E.formatMessage(pe.cameraNotSupportedParagraph) }), ya("Dynamic Flow - Camera Not Supported", d, W);
|
|
2708
|
+
}, [E, d]), U = (0, oe.useCallback)((W) => {
|
|
2709
|
+
x(), w(true), l(kc(W)), Rc(d, { direction: e }, W);
|
|
2710
|
+
}, [l, d, e, x]), ee = () => {
|
|
2709
2711
|
c((S == null ? void 0 : S.blob) || null);
|
|
2710
2712
|
}, A = () => {
|
|
2711
2713
|
p("CAPTURE"), F(void 0);
|
|
@@ -2718,44 +2720,44 @@ var require_main_min = __commonJS({
|
|
|
2718
2720
|
} })] }), ie = (0, ye.jsxs)("div", { className: "camera-capture", children: [(0, ye.jsx)("img", { className: "review-image", src: S == null ? void 0 : S.source, alt: "" }), (0, ye.jsx)($o, { overlay: t, imageUrl: a, title: o, instructions: n, reviewInstructions: E.formatMessage(pe.reviewInstructions) }), (0, ye.jsx)(Uo, { onSubmit: ee, onRetry: A })] });
|
|
2719
2721
|
return (0, ye.jsxs)("section", { children: [m === "CAPTURE" && k, m === "REVIEW" && ie, m === "ERROR" && h && (0, ye.jsx)(qo, s({}, h))] });
|
|
2720
2722
|
}
|
|
2721
|
-
var _o =
|
|
2723
|
+
var _o = Zu;
|
|
2722
2724
|
var Wc = require("react/jsx-runtime");
|
|
2723
|
-
function
|
|
2725
|
+
function Qu(e) {
|
|
2724
2726
|
return new Promise((t, r) => {
|
|
2725
2727
|
let a = new FileReader();
|
|
2726
2728
|
a.onloadend = () => t(a.result), a.readAsDataURL(e);
|
|
2727
2729
|
});
|
|
2728
2730
|
}
|
|
2729
|
-
function
|
|
2730
|
-
let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i = Gc(t), c =
|
|
2731
|
+
function ep(e) {
|
|
2732
|
+
let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i = Gc(t), c = tp(t), d = rp(t), { title: m, image: p, cameraConfig: h } = c, { assets: y, direction: u, instructions: l } = h || {}, { overlay: f, outline: w } = y || {}, { url: S } = p || {}, [F, g] = (0, ga.useState)(false);
|
|
2731
2733
|
(0, ga.useEffect)(() => {
|
|
2732
|
-
F && o(
|
|
2734
|
+
F && o(d);
|
|
2733
2735
|
}, [r]);
|
|
2734
2736
|
let v = async (O) => {
|
|
2735
2737
|
let { $id: x } = c;
|
|
2736
2738
|
if (O) {
|
|
2737
|
-
let M = await
|
|
2739
|
+
let M = await Qu(O), E = { [x || ""]: M };
|
|
2738
2740
|
g(true), a({ model: E, formSchema: i, triggerModel: M, triggerSchema: c });
|
|
2739
2741
|
}
|
|
2740
2742
|
};
|
|
2741
|
-
return (0, Wc.jsx)(_o, { overlay: f, outline: w, title: m, imageUrl: S, instructions:
|
|
2743
|
+
return (0, Wc.jsx)(_o, { overlay: f, outline: w, title: m, imageUrl: S, instructions: l, direction: u, onEvent: n, onCapture: (O) => {
|
|
2742
2744
|
v(O);
|
|
2743
2745
|
} });
|
|
2744
2746
|
}
|
|
2745
|
-
var wa =
|
|
2747
|
+
var wa = ep;
|
|
2746
2748
|
function Gc(e) {
|
|
2747
2749
|
let r = zr(e.schemas || [])[0];
|
|
2748
2750
|
if (!r || !Le(r))
|
|
2749
2751
|
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...");
|
|
2750
2752
|
return r;
|
|
2751
2753
|
}
|
|
2752
|
-
function
|
|
2754
|
+
function tp(e) {
|
|
2753
2755
|
let t = Gc(e), r = Object.values(t.properties)[0];
|
|
2754
2756
|
if (!r)
|
|
2755
2757
|
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...");
|
|
2756
2758
|
return r;
|
|
2757
2759
|
}
|
|
2758
|
-
function
|
|
2760
|
+
function rp(e) {
|
|
2759
2761
|
var t, r;
|
|
2760
2762
|
if (!e.schemas || ((t = zr(e.schemas)) == null ? void 0 : t.length) !== 1)
|
|
2761
2763
|
throw new Error("camera step expects 1 non-hidden object schema");
|
|
@@ -2769,14 +2771,14 @@ var require_main_min = __commonJS({
|
|
|
2769
2771
|
var Jc = require("react/jsx-runtime");
|
|
2770
2772
|
var _c = () => {
|
|
2771
2773
|
};
|
|
2772
|
-
var
|
|
2774
|
+
var ap = ({ url: e, onClose: t }) => {
|
|
2773
2775
|
let { formatMessage: r } = (0, Kc.useIntl)();
|
|
2774
|
-
return (0, Jc.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(Cr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(Cr.description, { origin:
|
|
2776
|
+
return (0, Jc.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(Cr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(Cr.description, { origin: op(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(Cr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(Cr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (a) => {
|
|
2775
2777
|
a.url && window.open(a.url, "_blank"), t();
|
|
2776
2778
|
}, onModelChange: _c, onPersistAsync: _c });
|
|
2777
2779
|
};
|
|
2778
|
-
var Ca =
|
|
2779
|
-
function
|
|
2780
|
+
var Ca = ap;
|
|
2781
|
+
function op(e) {
|
|
2780
2782
|
try {
|
|
2781
2783
|
return new URL(e).origin;
|
|
2782
2784
|
} catch (t) {
|
|
@@ -2786,37 +2788,37 @@ var require_main_min = __commonJS({
|
|
|
2786
2788
|
var Xc = require("@transferwise/components");
|
|
2787
2789
|
var Yc = require("@transferwise/icons");
|
|
2788
2790
|
var Jt = require("react/jsx-runtime");
|
|
2789
|
-
function
|
|
2791
|
+
function np({ title: e, action: t, onAction: r }) {
|
|
2790
2792
|
return (0, Jt.jsxs)("a", { href: "/", className: "df-back-btn", "aria-label": e, onClick: (a) => {
|
|
2791
2793
|
a.preventDefault(), r(C(s({}, t), { skipValidation: true }));
|
|
2792
2794
|
}, children: [(0, Jt.jsx)("span", { className: "sr-only", children: e }), (0, Jt.jsx)(Xc.Avatar, { type: "icon", children: (0, Jt.jsx)(Yc.ArrowLeft, { size: "24" }) })] });
|
|
2793
2795
|
}
|
|
2794
|
-
var Zc =
|
|
2796
|
+
var Zc = np;
|
|
2795
2797
|
var Pe = require("react/jsx-runtime");
|
|
2796
2798
|
function Kr(e) {
|
|
2797
|
-
var
|
|
2798
|
-
let { step: t, globalError: r, onAction: a } = e, o = (
|
|
2799
|
+
var d, m, p;
|
|
2800
|
+
let { step: t, globalError: r, onAction: a } = e, o = (d = t == null ? void 0 : t.external) == null ? void 0 : d.url, n = ((m = t == null ? void 0 : t.navigation) == null ? void 0 : m.back) || ((p = t == null ? void 0 : t.navigation) == null ? void 0 : p.backButton), { requiresManualTrigger: i, dismissConfirmation: c } = ei(o);
|
|
2799
2801
|
return t === void 0 ? r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null : o && i ? (0, Pe.jsx)(Ca, { url: o, onClose: c }) : Jn(t) ? (0, Pe.jsx)(wa, C(s({}, e), { step: t })) : (0, Pe.jsxs)(Pe.Fragment, { children: [n && (0, Pe.jsx)(Zc, C(s({}, n), { onAction: a })), r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, Pe.jsx)(ua, C(s({}, e), { stepSpecification: t }))] });
|
|
2800
2802
|
}
|
|
2801
2803
|
var Qc = require("react");
|
|
2802
|
-
var
|
|
2804
|
+
var ip = 1e3;
|
|
2803
2805
|
function em(e) {
|
|
2804
2806
|
let t = (0, Qc.useRef)(/* @__PURE__ */ new Map()), r = (a) => {
|
|
2805
2807
|
if (t.current.has(a))
|
|
2806
2808
|
return t.current.get(a);
|
|
2807
|
-
let o = Ke((n, i, c) => e(n, i, c),
|
|
2809
|
+
let o = Ke((n, i, c) => e(n, i, c), ip);
|
|
2808
2810
|
return t.current.set(a, o), o;
|
|
2809
2811
|
};
|
|
2810
2812
|
return function(a, o, n, i) {
|
|
2811
2813
|
let c = r(a);
|
|
2812
|
-
c(a, o, n), (!i || !
|
|
2814
|
+
c(a, o, n), (!i || !sp(i)) && c.flush();
|
|
2813
2815
|
};
|
|
2814
2816
|
}
|
|
2815
|
-
var
|
|
2817
|
+
var sp = (e) => dt(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
|
|
2816
2818
|
var Xt = require("react");
|
|
2817
2819
|
var am = (e) => {
|
|
2818
|
-
var u,
|
|
2819
|
-
let [t, r] = (0, Xt.useState)((u = e == null ? void 0 : e.errors) == null ? void 0 : u.validation), [a, o] = (0, Xt.useState)((
|
|
2820
|
+
var u, l;
|
|
2821
|
+
let [t, r] = (0, Xt.useState)((u = e == null ? void 0 : e.errors) == null ? void 0 : u.validation), [a, o] = (0, Xt.useState)((l = e == null ? void 0 : e.errors) == null ? void 0 : l.error), [n, i] = (0, Xt.useState)({ step: e || void 0, models: e != null && e.model ? tm(e.model, rm(e)) : {}, etag: void 0 }), { step: c, models: d, etag: m } = n, p = (f, w) => {
|
|
2820
2822
|
var S, F, g, v;
|
|
2821
2823
|
i((O) => ({ step: f, models: f.model ? tm(f.model, rm(f)) : O.models, etag: w })), r((F = (S = f == null ? void 0 : f.errors) == null ? void 0 : S.validation) != null ? F : null), o((v = (g = f == null ? void 0 : f.errors) == null ? void 0 : g.error) != null ? v : null);
|
|
2822
2824
|
}, h = (f, w, S) => {
|
|
@@ -2824,8 +2826,8 @@ var require_main_min = __commonJS({
|
|
|
2824
2826
|
let g = C(s({}, F.models), { [f]: w }), v = { step: F.step, models: g, etag: F.etag };
|
|
2825
2827
|
return S(g), v;
|
|
2826
2828
|
});
|
|
2827
|
-
}, y = (0, Xt.useMemo)(() =>
|
|
2828
|
-
return { formErrors: t, globalError: a, step: c, models:
|
|
2829
|
+
}, y = (0, Xt.useMemo)(() => mp(d, cp(c)), [d, c]);
|
|
2830
|
+
return { formErrors: t, globalError: a, step: c, models: d, etag: m, modelIsValid: y, setFormErrors: r, setGlobalError: o, setStepAndEtag: p, setSchemaModel: h };
|
|
2829
2831
|
};
|
|
2830
2832
|
var tm = (e, t = []) => t.reduce((r, a) => (a.$id || console.warn("Schema without $id property found."), C(s({}, r), { [a.$id || ""]: ce(e, a) || {} })), {});
|
|
2831
2833
|
var rm = (e) => [...Sa((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
|
|
@@ -2841,7 +2843,7 @@ var require_main_min = __commonJS({
|
|
|
2841
2843
|
return [];
|
|
2842
2844
|
}
|
|
2843
2845
|
});
|
|
2844
|
-
var
|
|
2846
|
+
var cp = (e) => [...Ko((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...Sa((e == null ? void 0 : e.layout) || [])];
|
|
2845
2847
|
var Ko = (e) => e.flatMap((t) => {
|
|
2846
2848
|
switch (t.type) {
|
|
2847
2849
|
case "columns":
|
|
@@ -2849,13 +2851,13 @@ var require_main_min = __commonJS({
|
|
|
2849
2851
|
case "box":
|
|
2850
2852
|
return Ko(t.components);
|
|
2851
2853
|
case "form":
|
|
2852
|
-
return [
|
|
2854
|
+
return [lp(t)];
|
|
2853
2855
|
default:
|
|
2854
2856
|
return [];
|
|
2855
2857
|
}
|
|
2856
2858
|
}).filter(Boolean);
|
|
2857
|
-
var
|
|
2858
|
-
var
|
|
2859
|
+
var mp = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !G(e[r.$id || ""] || {}, r))));
|
|
2860
|
+
var lp = (e) => e.schema && !om(e.schema) ? e.schema.$ref : e.schemaId;
|
|
2859
2861
|
var om = (e) => e !== void 0 && typeof e == "object" && !Object.hasOwnProperty.call(e, "$ref");
|
|
2860
2862
|
var Fa = require("@transferwise/components");
|
|
2861
2863
|
var nm = require("react");
|
|
@@ -2873,7 +2875,7 @@ var require_main_min = __commonJS({
|
|
|
2873
2875
|
return (0, lm.jsx)(ba.Alert, { action: { text: t(Wt.retry), href: window.location.href }, message: t(Wt.errorAlert), type: ba.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
|
|
2874
2876
|
}
|
|
2875
2877
|
var Yt = require("react/jsx-runtime");
|
|
2876
|
-
var
|
|
2878
|
+
var dp = () => {
|
|
2877
2879
|
};
|
|
2878
2880
|
var Jo = class extends dm.Component {
|
|
2879
2881
|
constructor(r) {
|
|
@@ -2887,7 +2889,7 @@ var require_main_min = __commonJS({
|
|
|
2887
2889
|
return { hasError: true, isFatalError: true };
|
|
2888
2890
|
}
|
|
2889
2891
|
componentDidCatch(r) {
|
|
2890
|
-
let { onError: a =
|
|
2892
|
+
let { onError: a = dp } = this.props;
|
|
2891
2893
|
a(r);
|
|
2892
2894
|
}
|
|
2893
2895
|
render() {
|
|
@@ -2962,24 +2964,24 @@ var require_main_min = __commonJS({
|
|
|
2962
2964
|
}
|
|
2963
2965
|
};
|
|
2964
2966
|
var Zo = (e) => {
|
|
2965
|
-
if (!
|
|
2967
|
+
if (!up(e))
|
|
2966
2968
|
throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
|
|
2967
2969
|
if (e.bodyUsed)
|
|
2968
2970
|
throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
|
|
2969
2971
|
};
|
|
2970
|
-
var
|
|
2972
|
+
var up = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
|
|
2971
2973
|
var We = require("react/jsx-runtime");
|
|
2972
2974
|
var wm = () => {
|
|
2973
2975
|
};
|
|
2974
|
-
var
|
|
2975
|
-
let { locale: h } = (0, Cm.useIntl)(), { formErrors: y, globalError: u, step:
|
|
2976
|
+
var pp = ({ flowId: e, httpClient: t, initialAction: r, initialStep: a, loaderConfig: o, displayStepTitle: n = true, features: i, onCompletion: c, onError: d, onEvent: m = wm, onLog: p = wm }) => {
|
|
2977
|
+
let { locale: h } = (0, Cm.useIntl)(), { formErrors: y, globalError: u, step: l, models: f, etag: w, modelIsValid: S, setFormErrors: F, setGlobalError: g, setStepAndEtag: v, setSchemaModel: O } = am(a), [x, M] = (0, Me.useState)(false), { isLoading: E, loader: P, setLoadingState: D } = im(o, a ? "idle" : "initial"), U = mt("critical", p, e, (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key)), ee = (0, Me.useMemo)(() => {
|
|
2976
2978
|
var b;
|
|
2977
|
-
return s({ flowId: e, stepId: (
|
|
2978
|
-
}, [e,
|
|
2979
|
+
return s({ flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key) }, (b = l == null ? void 0 : l.analytics) != null ? b : {});
|
|
2980
|
+
}, [e, l]), A = (0, Me.useMemo)(() => Ea(m, ee), [m, ee]), B = (0, Me.useCallback)(({ action: b, data: q, etag: T }) => {
|
|
2979
2981
|
let { url: te, method: st = "POST" } = b;
|
|
2980
2982
|
return t(te != null ? te : "", { method: st, headers: s({ "accept-language": h, "Content-Type": "application/json" }, T ? { "If-None-Match": T } : {}), credentials: "include", body: st === "GET" ? void 0 : JSON.stringify(q) });
|
|
2981
2983
|
}, [t, h]), k = async (b, q = {}) => {
|
|
2982
|
-
D(
|
|
2984
|
+
D(l ? "submission" : "initial"), A("Dynamic Flow - Step Submitted", { actionId: b.id || b.$id });
|
|
2983
2985
|
try {
|
|
2984
2986
|
let T = await B({ action: b, data: q });
|
|
2985
2987
|
if (b.exit && T.ok) {
|
|
@@ -3034,7 +3036,7 @@ var require_main_min = __commonJS({
|
|
|
3034
3036
|
let q = b.refreshUrl || b.refreshFormUrl;
|
|
3035
3037
|
q && await ie(q, xa(f), w), b.validation && F(b.validation), b.error && g(b.error), D("idle");
|
|
3036
3038
|
}, it = (b, q, T, te) => {
|
|
3037
|
-
U("Error fetching", q), T === "refresh" && A("Dynamic Flow - Step Refreshed", { status: "failure" }), A("Dynamic Flow - Flow Finished", { status: "failure" }),
|
|
3039
|
+
U("Error fetching", q), T === "refresh" && A("Dynamic Flow - Step Refreshed", { status: "failure" }), A("Dynamic Flow - Flow Finished", { status: "failure" }), d(b, te), D("idle");
|
|
3038
3040
|
}, xt = (b) => {
|
|
3039
3041
|
let { model: q, formSchema: T } = b, { $id: te = "" } = T;
|
|
3040
3042
|
g(null), $(q) || U("Invalid model on change", "onModelChange was called but the model argument is not an object"), O(te, q, (vr) => {
|
|
@@ -3042,8 +3044,8 @@ var require_main_min = __commonJS({
|
|
|
3042
3044
|
});
|
|
3043
3045
|
}, va = (b, q) => {
|
|
3044
3046
|
let { triggerSchema: T } = b;
|
|
3045
|
-
if (
|
|
3046
|
-
let te = T.refreshUrl || T.refreshFormUrl, st = (
|
|
3047
|
+
if (hp(b)) {
|
|
3048
|
+
let te = T.refreshUrl || T.refreshFormUrl, st = (l == null ? void 0 : l.refreshUrl) || (l == null ? void 0 : l.refreshFormUrl), vr = te || st;
|
|
3047
3049
|
vr && X(vr, xa(q), w, T);
|
|
3048
3050
|
}
|
|
3049
3051
|
}, Bm = async (b) => {
|
|
@@ -3054,28 +3056,28 @@ var require_main_min = __commonJS({
|
|
|
3054
3056
|
return;
|
|
3055
3057
|
}
|
|
3056
3058
|
let { data: q, method: T, skipValidation: te } = b, st = s(s({}, xa(f)), q);
|
|
3057
|
-
|
|
3059
|
+
fp(T) ? (F(null), te || M(true), (S || te) && await k(b, st)) : await k(b);
|
|
3058
3060
|
};
|
|
3059
|
-
return (0, We.jsx)(Dr, { flowId: e, stepId: (
|
|
3061
|
+
return (0, We.jsx)(Dr, { flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key), onLog: p, children: (0, We.jsx)(Mr, { metadata: ee, onEvent: m, children: (0, We.jsx)(pn, { loading: E, children: (0, We.jsx)(gn, { httpClient: t, children: (0, We.jsx)(Fn, { features: i, children: P !== null ? P : (0, We.jsx)(Kr, { step: l, model: xa(f), submitted: x, globalError: u, formErrors: y, stepLayoutOptions: { displayStepTitle: n }, onAction: (b) => {
|
|
3060
3062
|
Bm(b);
|
|
3061
3063
|
}, onModelChange: xt }) }) }) }) }) });
|
|
3062
3064
|
};
|
|
3063
|
-
function
|
|
3064
|
-
return (0, We.jsx)(Xo, { onError: e.onError, children: (0, We.jsx)(
|
|
3065
|
+
function yp(e) {
|
|
3066
|
+
return (0, We.jsx)(Xo, { onError: e.onError, children: (0, We.jsx)(pp, s({}, e)) });
|
|
3065
3067
|
}
|
|
3066
|
-
var Qo =
|
|
3068
|
+
var Qo = yp;
|
|
3067
3069
|
var xa = (e) => Object.values(e).reduce((t, r) => s(s({}, t), r), {});
|
|
3068
|
-
var
|
|
3069
|
-
var
|
|
3070
|
+
var fp = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
|
|
3071
|
+
var hp = (e) => {
|
|
3070
3072
|
let { type: t, triggerSchema: r, triggerModel: a, lastTriggerModel: o = null } = e, n = () => G(a, r), i = () => G(o, r), c = (r == null ? void 0 : r.refreshStepOnChange) || (r == null ? void 0 : r.refreshFormOnChange);
|
|
3071
3073
|
return t !== "init" && c && (n() || i());
|
|
3072
3074
|
};
|
|
3073
3075
|
var Fr = require("react/jsx-runtime");
|
|
3074
|
-
function
|
|
3076
|
+
function gp(e) {
|
|
3075
3077
|
let t = s({ model: null, errors: null }, e), { baseUrl: r = "", onEvent: a = Sm, onLog: o = Sm } = e;
|
|
3076
3078
|
return (0, Fr.jsx)(Dr, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: o, children: (0, Fr.jsx)(Mr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: a, children: (0, Fr.jsx)(Ir, { baseUrl: r, children: (0, Fr.jsx)(me, s({}, t)) }) }) });
|
|
3077
3079
|
}
|
|
3078
|
-
var en =
|
|
3080
|
+
var en = gp;
|
|
3079
3081
|
var Sm = () => {
|
|
3080
3082
|
};
|
|
3081
3083
|
var Fm = { "dynamicFlows.ArraySchema.addItem": "Speichern", "dynamicFlows.ArraySchema.addItemTitle": "Artikel hinzuf\xFCgen", "dynamicFlows.ArraySchema.editItem": "Speichern", "dynamicFlows.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.", "dynamicFlows.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.", "dynamicFlows.ArraySchema.removeItem": "Entfernen", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Erneut versuchen", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Bitte pr\xFCfe, ob deine Kamera verbunden ist, und versuche es dann erneut.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Wir k\xF6nnen nicht auf deine Kamera zugreifen", "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.CameraCapture.rotatePhone.text": "Drehe dein Ger\xE4t in die Hochformatansicht, um ein Foto aufzunehmen", "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.DefaultErrorMessages.required": "Bitte f\xFClle dieses Feld aus.", "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" };
|
|
@@ -3092,10 +3094,10 @@ var require_main_min = __commonJS({
|
|
|
3092
3094
|
var Dm = { "dynamicFlows.ArraySchema.addItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.addItemTitle": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0443\u043D\u043A\u0442", "dynamicFlows.ArraySchema.editItem": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "dynamicFlows.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.", "dynamicFlows.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435, \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0430 \u043B\u0438 \u043A\u0430\u043C\u0435\u0440\u0430, \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.", "dynamicFlows.CameraCapture.CameraConnectionIssue.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.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.CameraCapture.rotatePhone.text": "\u041F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u0432 \u043F\u043E\u0440\u0442\u0440\u0435\u0442\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044E", "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.DefaultErrorMessages.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.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" };
|
|
3093
3095
|
var Lm = { "dynamicFlows.ArraySchema.addItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.addItemTitle": "Add Item", "dynamicFlows.ArraySchema.editItem": "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01", "dynamicFlows.ArraySchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21 {maxItems} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}", "dynamicFlows.ArraySchema.removeItem": "\u0E25\u0E1A", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "Please check if it is connected and try again.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E43\u0E0A\u0E49\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07 \u0E43\u0E2B\u0E49\u0E25\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E14\u0E32\u0E27\u0E19\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E2D\u0E1B\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D\u0E02\u0E2D\u0E07\u0E40\u0E23\u0E32\u0E14\u0E39", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", "dynamicFlows.CameraCapture.reviewInstructions": "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19 \u0E2D\u0E48\u0E32\u0E19\u0E44\u0E14\u0E49 \u0E41\u0E25\u0E30\u0E04\u0E23\u0E1A\u0E16\u0E49\u0E27\u0E19\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", "dynamicFlows.CameraCapture.reviewRetry": "\u0E44\u0E21\u0E48 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E17\u0E31\u0E49\u0E07", "dynamicFlows.CameraCapture.reviewSubmit": "\u0E43\u0E0A\u0E48 \u0E2A\u0E48\u0E07\u0E40\u0E25\u0E22", "dynamicFlows.CameraCapture.rotatePhone.text": "Rotate your phone to portrait view to take a photo", "dynamicFlows.ControlFeedback.maxLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19 {maxLength} \u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.maximumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E48\u0E2D\u0E19 {maximum}", "dynamicFlows.ControlFeedback.minLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E2D\u0E31\u0E01\u0E02\u0E23\u0E30\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minLength} \u0E15\u0E31\u0E27", "dynamicFlows.ControlFeedback.minimum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {minimum} \u0E2B\u0E23\u0E37\u0E2D\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.ControlFeedback.minimumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E23\u0E07\u0E1E\u0E2D\u0E14\u0E35\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E31\u0E07 {minimum}", "dynamicFlows.ControlFeedback.pattern": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.ControlFeedback.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49", "dynamicFlows.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", "dynamicFlows.DefaultErrorMessages.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49", "dynamicFlows.DynamicExternal.retryTitle": "\u0E40\u0E1B\u0E34\u0E14\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14", "dynamicFlows.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01", "dynamicFlows.ErrorBoundary.errorAlert": "\u0E2D\u0E4A\u0E30 \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07...", "dynamicFlows.ErrorBoundary.retry": "\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", "dynamicFlows.ExternalConfirmation.cancel": "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", "dynamicFlows.ExternalConfirmation.description": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E34\u0E14 **{origin}** \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C", "dynamicFlows.ExternalConfirmation.open": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48", "dynamicFlows.ExternalConfirmation.title": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19", "dynamicFlows.Help.ariaLabel": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14 {maxItems} \u0E44\u0E1F\u0E25\u0E4C\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems} \u0E44\u0E1F\u0E25\u0E4C", "dynamicFlows.PersistAsyncSchema.genericError": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07!", "dynamicFlows.ReadOnlySchema.no": "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48", "dynamicFlows.ReadOnlySchema.yes": "\u0E43\u0E0A\u0E48" };
|
|
3094
3096
|
var Tm = { "dynamicFlows.ArraySchema.addItem": "Kaydet", "dynamicFlows.ArraySchema.addItemTitle": "\xD6\u011Fe ekle", "dynamicFlows.ArraySchema.editItem": "Kaydet", "dynamicFlows.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n", "dynamicFlows.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.", "dynamicFlows.ArraySchema.removeItem": "Kald\u0131r", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "Tekrar deneyin", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "L\xFCtfen ba\u011Fl\u0131 olup olmad\u0131\u011F\u0131n\u0131 kontrol edip tekrar deneyin.", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "Kameran\u0131za eri\u015Femiyoruz", "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.CameraCapture.rotatePhone.text": "Foto\u011Fraf \xE7ekmek i\xE7in telefonunuzu dik pozisyonda tutun", "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.DefaultErrorMessages.required": "L\xFCtfen bu alan\u0131 doldurun.", "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" };
|
|
3095
|
-
var tn = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9879\u76EE", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0\u4E0D\u8D85\u8FC7 {maxItems} \u9879\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u91CD\u8BD5", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
3096
|
-
var Rm = { "dynamicFlows.ArraySchema.addItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9805\u76EE", "dynamicFlows.ArraySchema.editItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "
|
|
3097
|
-
var
|
|
3098
|
-
var Nm =
|
|
3097
|
+
var tn = { "dynamicFlows.ArraySchema.addItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9879\u76EE", "dynamicFlows.ArraySchema.editItem": "\u4FDD\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0\u4E0D\u8D85\u8FC7 {maxItems} \u9879\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u91CD\u8BD5", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u8BF7\u68C0\u67E5\u662F\u5426\u8FDE\u63A5\uFF0C\u7136\u540E\u91CD\u8BD5\u3002", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u6211\u4EEC\u65E0\u6CD5\u8BBF\u95EE\u60A8\u7684\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u6444\u50CF\u5934\u3002\u8BF7\u5C1D\u8BD5\u5176\u4ED6\u6D4F\u89C8\u5668\u3001\u8BBE\u5907\u6216\u4E0B\u8F7D\u6211\u4EEC\u7684\u5E94\u7528\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u5141\u8BB8\u8BBF\u95EE\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u5728\u6D4F\u89C8\u5668\u8BBE\u7F6E\u4E2D\u542F\u7528\u76F8\u673A\u8BBF\u95EE\u6743\u9650\uFF0C\u518D\u91CD\u65B0\u5C1D\u8BD5\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u6211\u4EEC\u65E0\u6CD5\u8BBF\u95EE\u60A8\u7684\u6444\u50CF\u5934", "dynamicFlows.CameraCapture.reviewInstructions": "\u60A8\u7684\u56FE\u7247\u662F\u5426\u6E05\u6670\u3001\u53EF\u8BFB\u548C\u5B8C\u6574\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u518D\u8BD5\u4E00\u6B21", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.CameraCapture.rotatePhone.text": "\u5C06\u624B\u673A\u65CB\u8F6C\u5230\u7EB5\u5411\u89C6\u56FE\u4EE5\u62CD\u7167", "dynamicFlows.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC7 {maxLength} \u4E2A\u5B57\u7B26\u3002", "dynamicFlows.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57\u3002", "dynamicFlows.ControlFeedback.maximumDate": "\u8BF7\u8F93\u5165 {maximum} \u6216\u4E4B\u524D\u7684\u65E5\u671F", "dynamicFlows.ControlFeedback.minLength": "\u8BF7\u81F3\u5C11\u8F93\u5165 {minLength} \u4E2A\u5B57\u7B26", "dynamicFlows.ControlFeedback.minimum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5927\u4E8E\u6216\u7B49\u4E8E {minimum} \u7684\u6570\u5B57", "dynamicFlows.ControlFeedback.minimumDate": "\u8BF7\u8F93\u5165 {minimum} \u6216\u4E4B\u540E\u7684\u65E5\u671F", "dynamicFlows.ControlFeedback.pattern": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165", "dynamicFlows.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F", "dynamicFlows.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002", "dynamicFlows.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF", "dynamicFlows.DefaultErrorMessages.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002", "dynamicFlows.DynamicExternal.retryTitle": "\u91CD\u65B0\u6253\u5F00\u7A97\u53E3", "dynamicFlows.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F", "dynamicFlows.DynamicParagraph.copy": "\u590D\u5236", "dynamicFlows.ErrorBoundary.errorAlert": "\u7CDF\u7CD5\u3002\u51FA\u9519\u4E86\u2026", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8BD5", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "dynamicFlows.ExternalConfirmation.description": "\u8BF7\u786E\u8BA4\u60A8\u662F\u5426\u8981\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00**{origin}**\u3002", "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00", "dynamicFlows.ExternalConfirmation.title": "\u8BF7\u786E\u8BA4", "dynamicFlows.Help.ariaLabel": "\u70B9\u51FB\u6B64\u5904\u83B7\u53D6\u66F4\u591A\u4FE1\u606F\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8BE5\u6587\u4EF6\u592A\u5927\u3002\u8BF7\u4E0A\u4F20\u4E00\u4E2A\u66F4\u5C0F\u7684\u6587\u4EF6\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20\u4E0D\u8D85\u8FC7 {maxItems} \u4E2A\u6587\u4EF6\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
|
|
3098
|
+
var Rm = { "dynamicFlows.ArraySchema.addItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.addItemTitle": "\u6DFB\u52A0\u9805\u76EE", "dynamicFlows.ArraySchema.editItem": "\u5132\u5B58", "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "dynamicFlows.ArraySchema.removeItem": "\u79FB\u9664", "dynamicFlows.CameraCapture.CameraConnectionIssue.action": "\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.CameraConnectionIssue.paragraph": "\u8ACB\u6AA2\u67E5\u9023\u7DDA\u72C0\u614B\uFF0C\u7136\u5F8C\u518D\u8A66\u4E00\u6B21\u3002", "dynamicFlows.CameraCapture.CameraConnectionIssue.title": "\u6211\u5011\u7121\u6CD5\u53D6\u7528\u4F60\u7684\u76F8\u6A5F", "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.CameraCapture.rotatePhone.text": "\u5C07\u624B\u6A5F\u65CB\u8F49\u81F3\u5782\u76F4\u756B\u9762\u4EE5\u62CD\u7167", "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.DefaultErrorMessages.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002", "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" };
|
|
3099
|
+
var Tp = { en: bm, de: Fm, es: xm, fr: vm, hu: Am, id: Om, it: Pm, ja: Mm, pl: km, pt: Em, ro: Im, ru: Dm, th: Lm, tr: Tm, zh: tn, "zh-CN": tn, "zh-HK": Rm };
|
|
3100
|
+
var Nm = Tp;
|
|
3099
3101
|
}
|
|
3100
3102
|
});
|
|
3101
3103
|
|