@wise/dynamic-flow-client-internal 2.8.12 → 2.8.15

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 CHANGED
@@ -57,34 +57,34 @@ var require_main_min = __commonJS({
57
57
  var Um = Object.getOwnPropertyDescriptor;
58
58
  var Hm = Object.getOwnPropertyDescriptors;
59
59
  var qm = Object.getOwnPropertyNames;
60
- var an = Object.getOwnPropertySymbols;
60
+ var on = Object.getOwnPropertySymbols;
61
61
  var Gm = Object.getPrototypeOf;
62
- var nn = Object.prototype.hasOwnProperty;
63
- var Wm = Object.prototype.propertyIsEnumerable;
64
- var on = (e, t, r) => t in e ? Zt(e, t, { enumerable: true, configurable: true, writable: true, value: r }) : e[t] = r;
62
+ var sn = Object.prototype.hasOwnProperty;
63
+ var $m = Object.prototype.propertyIsEnumerable;
64
+ var nn = (e, t, r) => t in e ? Zt(e, t, { enumerable: true, configurable: true, writable: true, value: r }) : e[t] = r;
65
65
  var s = (e, t) => {
66
66
  for (var r in t || (t = {}))
67
- nn.call(t, r) && on(e, r, t[r]);
68
- if (an)
69
- for (var r of an(t))
70
- Wm.call(t, r) && on(e, r, t[r]);
67
+ sn.call(t, r) && nn(e, r, t[r]);
68
+ if (on)
69
+ for (var r of on(t))
70
+ $m.call(t, r) && nn(e, r, t[r]);
71
71
  return e;
72
72
  };
73
73
  var S = (e, t) => Vm(e, Hm(t));
74
- var Oa = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
75
- var $m = (e, t) => {
74
+ var Pa = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
75
+ var Wm = (e, t) => {
76
76
  for (var r in t)
77
77
  Zt(e, r, { get: t[r], enumerable: true });
78
78
  };
79
- var sn = (e, t, r, a) => {
79
+ var cn = (e, t, r, a) => {
80
80
  if (t && typeof t == "object" || typeof t == "function")
81
81
  for (let o of qm(t))
82
- !nn.call(e, o) && o !== r && Zt(e, o, { get: () => t[o], enumerable: !(a = Um(t, o)) || a.enumerable });
82
+ !sn.call(e, o) && o !== r && Zt(e, o, { get: () => t[o], enumerable: !(a = Um(t, o)) || a.enumerable });
83
83
  return e;
84
84
  };
85
- var Ee = (e, t, r) => (r = e != null ? jm(Gm(e)) : {}, sn(t || !e || !e.__esModule ? Zt(r, "default", { value: e, enumerable: true }) : r, e));
86
- var _m = (e) => sn(Zt({}, "__esModule", { value: true }), e);
87
- var Xe = Oa((mf, Ur) => {
85
+ var Ee = (e, t, r) => (r = e != null ? jm(Gm(e)) : {}, cn(t || !e || !e.__esModule ? Zt(r, "default", { value: e, enumerable: true }) : r, e));
86
+ var _m = (e) => cn(Zt({}, "__esModule", { value: true }), e);
87
+ var Xe = Pa((lf, Hr) => {
88
88
  "use strict";
89
89
  (function() {
90
90
  "use strict";
@@ -113,15 +113,15 @@ var require_main_min = __commonJS({
113
113
  function a(o, n) {
114
114
  return n ? o ? o + " " + n : o + n : o;
115
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() {
116
+ typeof Hr != "undefined" && Hr.exports ? (t.default = t, Hr.exports = t) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
117
117
  return t;
118
118
  }) : window.classNames = t;
119
119
  })();
120
120
  });
121
- var bc = Oa((hr, Vo) => {
121
+ var bc = Pa((hr, Uo) => {
122
122
  "use strict";
123
123
  (function(t, r) {
124
- typeof hr == "object" && typeof Vo == "object" ? Vo.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof hr == "object" ? hr.Webcam = r(require("react")) : t.Webcam = r(t.React);
124
+ typeof hr == "object" && typeof Uo == "object" ? Uo.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof hr == "object" ? hr.Webcam = r(require("react")) : t.Webcam = r(t.React);
125
125
  })(hr, function(e) {
126
126
  return function(t) {
127
127
  var r = {};
@@ -163,8 +163,8 @@ var require_main_min = __commonJS({
163
163
  return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, f) {
164
164
  l.__proto__ = f;
165
165
  } || function(l, f) {
166
- for (var w in f)
167
- f.hasOwnProperty(w) && (l[w] = f[w]);
166
+ for (var g in f)
167
+ f.hasOwnProperty(g) && (l[g] = f[g]);
168
168
  }, h(y, u);
169
169
  };
170
170
  return function(y, u) {
@@ -222,8 +222,8 @@ var require_main_min = __commonJS({
222
222
  l.onUserMediaError("getUserMedia not supported");
223
223
  return;
224
224
  }
225
- var f = JSON.stringify(u.audioConstraints) !== JSON.stringify(l.audioConstraints), w = JSON.stringify(u.videoConstraints) !== JSON.stringify(l.videoConstraints), C = u.minScreenshotWidth !== l.minScreenshotWidth, F = u.minScreenshotHeight !== l.minScreenshotHeight;
226
- (w || C || F) && (this.canvas = null, this.ctx = null), (f || w) && (this.stopAndCleanup(), this.requestUserMedia());
225
+ var f = JSON.stringify(u.audioConstraints) !== JSON.stringify(l.audioConstraints), g = JSON.stringify(u.videoConstraints) !== JSON.stringify(l.videoConstraints), C = u.minScreenshotWidth !== l.minScreenshotWidth, F = u.minScreenshotHeight !== l.minScreenshotHeight;
226
+ (g || C || F) && (this.canvas = null, this.ctx = null), (f || g) && (this.stopAndCleanup(), this.requestUserMedia());
227
227
  }, y.prototype.componentWillUnmount = function() {
228
228
  this.unmounted = true, this.stopAndCleanup();
229
229
  }, y.stopMediaStream = function(u) {
@@ -236,32 +236,32 @@ var require_main_min = __commonJS({
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 l = this, f = l.state, w = l.props;
239
+ var l = this, f = l.state, g = l.props;
240
240
  if (!f.hasUserMedia)
241
241
  return null;
242
242
  var C = this.getCanvas(u);
243
- return C && C.toDataURL(w.screenshotFormat, w.screenshotQuality);
243
+ return C && C.toDataURL(g.screenshotFormat, g.screenshotQuality);
244
244
  }, y.prototype.getCanvas = function(u) {
245
- var l = this, f = l.state, w = l.props;
245
+ var l = this, f = l.state, g = l.props;
246
246
  if (!this.video || !f.hasUserMedia || !this.video.videoHeight)
247
247
  return null;
248
248
  if (!this.ctx) {
249
249
  var C = this.video.videoWidth, F = this.video.videoHeight;
250
250
  if (!this.props.forceScreenshotSourceSize) {
251
- var g = C / F;
252
- C = w.minScreenshotWidth || this.video.clientWidth, F = C / g, w.minScreenshotHeight && F < w.minScreenshotHeight && (F = w.minScreenshotHeight, C = F * g);
251
+ var w = C / F;
252
+ C = g.minScreenshotWidth || this.video.clientWidth, F = C / w, g.minScreenshotHeight && F < g.minScreenshotHeight && (F = g.minScreenshotHeight, C = F * w);
253
253
  }
254
254
  this.canvas = document.createElement("canvas"), this.canvas.width = (u == null ? void 0 : u.width) || C, this.canvas.height = (u == null ? void 0 : u.height) || F, this.ctx = this.canvas.getContext("2d");
255
255
  }
256
- var v = this, O = v.ctx, x = v.canvas;
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;
256
+ var A = this, M = A.ctx, x = A.canvas;
257
+ return M && x && (x.width = (u == null ? void 0 : u.width) || x.width, x.height = (u == null ? void 0 : u.height) || x.height, g.mirrored && (M.translate(x.width, 0), M.scale(-1, 1)), M.imageSmoothingEnabled = g.imageSmoothing, M.drawImage(this.video, 0, 0, (u == null ? void 0 : u.width) || x.width, (u == null ? void 0 : u.height) || x.height), g.mirrored && (M.scale(-1, 1), M.translate(-x.width, 0))), x;
258
258
  }, y.prototype.requestUserMedia = function() {
259
- var u = this, l = this.props, f = function(F, g) {
260
- var v = { video: typeof g != "undefined" ? g : true };
261
- l.audio && (v.audio = typeof F != "undefined" ? F : true), u.requestUserMediaId++;
262
- var O = u.requestUserMediaId;
263
- navigator.mediaDevices.getUserMedia(v).then(function(x) {
264
- u.unmounted || O !== u.requestUserMediaId ? y.stopMediaStream(x) : u.handleUserMedia(null, x);
259
+ var u = this, l = this.props, f = function(F, w) {
260
+ var A = { video: typeof w != "undefined" ? w : true };
261
+ l.audio && (A.audio = typeof F != "undefined" ? F : true), u.requestUserMediaId++;
262
+ var M = u.requestUserMediaId;
263
+ navigator.mediaDevices.getUserMedia(A).then(function(x) {
264
+ u.unmounted || M !== u.requestUserMediaId ? y.stopMediaStream(x) : u.handleUserMedia(null, x);
265
265
  }).catch(function(x) {
266
266
  u.handleUserMedia(x);
267
267
  });
@@ -269,21 +269,21 @@ var require_main_min = __commonJS({
269
269
  if ("mediaDevices" in navigator)
270
270
  f(l.audioConstraints, l.videoConstraints);
271
271
  else {
272
- var w = function(F) {
272
+ var g = function(F) {
273
273
  return { optional: [{ sourceId: F }] };
274
274
  }, C = function(F) {
275
- var g = F.deviceId;
276
- return typeof g == "string" ? g : Array.isArray(g) && g.length > 0 ? g[0] : typeof g == "object" && g.ideal ? g.ideal : null;
275
+ var w = F.deviceId;
276
+ return typeof w == "string" ? w : Array.isArray(w) && w.length > 0 ? w[0] : typeof w == "object" && w.ideal ? w.ideal : null;
277
277
  };
278
278
  MediaStreamTrack.getSources(function(F) {
279
- var g = null, v = null;
280
- F.forEach(function(M) {
281
- M.kind === "audio" ? g = M.id : M.kind === "video" && (v = M.id);
279
+ var w = null, A = null;
280
+ F.forEach(function(k) {
281
+ k.kind === "audio" ? w = k.id : k.kind === "video" && (A = k.id);
282
282
  });
283
- var O = C(l.audioConstraints);
284
- O && (g = O);
283
+ var M = C(l.audioConstraints);
284
+ M && (w = M);
285
285
  var x = C(l.videoConstraints);
286
- x && (v = x), f(w(g), w(v));
286
+ x && (A = x), f(g(w), g(A));
287
287
  });
288
288
  }
289
289
  }, y.prototype.handleUserMedia = function(u, l) {
@@ -295,15 +295,15 @@ var require_main_min = __commonJS({
295
295
  this.stream = l;
296
296
  try {
297
297
  this.video && (this.video.srcObject = l), this.setState({ hasUserMedia: true });
298
- } catch (w) {
298
+ } catch (g) {
299
299
  this.setState({ hasUserMedia: true, src: window.URL.createObjectURL(l) });
300
300
  }
301
301
  f.onUserMedia(l);
302
302
  }, y.prototype.render = function() {
303
- var u = this, l = this, f = l.state, w = l.props, C = 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
- return o.createElement(o.Fragment, null, o.createElement("video", c({ autoPlay: true, disablePictureInPicture: g, src: f.src, muted: !C, playsInline: true, ref: function(nt) {
303
+ var u = this, l = this, f = l.state, g = l.props, C = g.audio, F = g.forceScreenshotSourceSize, w = g.disablePictureInPicture, A = g.onUserMedia, M = g.onUserMediaError, x = g.screenshotFormat, k = g.screenshotQuality, I = g.minScreenshotWidth, O = g.minScreenshotHeight, P = g.audioConstraints, B = g.videoConstraints, _ = g.imageSmoothing, v = g.mirrored, z = g.style, E = z === void 0 ? {} : z, ie = g.children, $ = d(g, ["audio", "forceScreenshotSourceSize", "disablePictureInPicture", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), Y = v ? c(c({}, E), { transform: (E.transform || "") + " scaleX(-1)" }) : E, ke = { getScreenshot: this.getScreenshot.bind(this) };
304
+ return o.createElement(o.Fragment, null, o.createElement("video", c({ autoPlay: true, disablePictureInPicture: w, src: f.src, muted: !C, playsInline: true, ref: function(nt) {
305
305
  u.video = nt;
306
- }, style: X }, W)), ie && ie(ke));
306
+ }, style: Y }, $)), ie && ie(ke));
307
307
  }, y.defaultProps = { audio: false, disablePictureInPicture: false, forceScreenshotSourceSize: false, imageSmoothing: true, mirrored: false, onUserMedia: function() {
308
308
  }, onUserMediaError: function() {
309
309
  }, screenshotFormat: "image/webp", screenshotQuality: 0.92 }, y;
@@ -314,7 +314,7 @@ var require_main_min = __commonJS({
314
314
  } }).default;
315
315
  });
316
316
  });
317
- var kc = Oa((jF, wr) => {
317
+ var kc = Pa((qF, wr) => {
318
318
  "use strict";
319
319
  (function() {
320
320
  "use strict";
@@ -374,9 +374,9 @@ var require_main_min = __commonJS({
374
374
  } } }), t ? wr.exports = o : window.screenfull = o;
375
375
  })();
376
376
  });
377
- var Np = {};
378
- $m(Np, { DynamicFlow: () => en, JsonSchemaForm: () => tn, Layout: () => ne, convertStepToLayout: () => Qt, inlineReferences: () => ze, isValidSchema: () => G, makeHttpClient: () => kr, translations: () => Bm });
379
- module2.exports = _m(Np);
377
+ var Rp = {};
378
+ Wm(Rp, { DynamicFlow: () => tn, JsonSchemaForm: () => rn, Layout: () => ne, convertStepToLayout: () => Qt, inlineReferences: () => ze, isValidSchema: () => G, makeHttpClient: () => zr, translations: () => Bm });
379
+ module2.exports = _m(Rp);
380
380
  function Qt(e, { displayStepTitle: t = true } = {}) {
381
381
  if (e.layout)
382
382
  return sl(e, t);
@@ -391,25 +391,25 @@ var require_main_min = __commonJS({
391
391
  return Xm(e);
392
392
  }
393
393
  }
394
- function Pa(e) {
394
+ function Ma(e) {
395
395
  let t = [];
396
- if (e.title && t.push(ka(e.title)), e.image) {
397
- let r = cn(e.image);
396
+ if (e.title && t.push(Ea(e.title)), e.image) {
397
+ let r = mn(e.image);
398
398
  t.push(r);
399
399
  }
400
- return e.description && t.push(Ea(e.description)), t;
400
+ return e.description && t.push(Ia(e.description)), t;
401
401
  }
402
402
  function Km(e) {
403
- return [...Pa(e), Jm(e)];
403
+ return [...Ma(e), Jm(e)];
404
404
  }
405
405
  function Jm(e) {
406
406
  return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
407
407
  }
408
408
  function Xm(e) {
409
- let t = Pa(e);
409
+ let t = Ma(e);
410
410
  if (e.reviewFields && t.push(al(e.reviewFields)), e.schemas && t.push(...nl(e)), e.actions) {
411
411
  let r = e.actions.map(Ar);
412
- t.push(Ma(r, "md"));
412
+ t.push(ka(r, "md"));
413
413
  }
414
414
  return t;
415
415
  }
@@ -420,25 +420,25 @@ var require_main_min = __commonJS({
420
420
  let r = rl(e.details.image);
421
421
  t.push(r);
422
422
  }
423
- e.details.title && t.push(ka(e.details.title)), e.details.description && t.push(Ea(e.details.description));
423
+ e.details.title && t.push(Ea(e.details.title)), e.details.description && t.push(Ia(e.details.description));
424
424
  }
425
425
  if (e.actions) {
426
426
  let r = e.actions.map((a) => Ar(S(s({}, a), { type: a.type || "primary" })));
427
- t.push(Ma(r, "md"));
427
+ t.push(ka(r, "md"));
428
428
  }
429
429
  return t;
430
430
  }
431
431
  function Zm(e) {
432
- let t = Pa(e);
432
+ let t = Ma(e);
433
433
  return e.options && t.push(el(e.options)), t;
434
434
  }
435
- function Ma(e, t) {
435
+ function ka(e, t) {
436
436
  return { type: "box", width: t || "md", components: e };
437
437
  }
438
- function ka(e) {
438
+ function Ea(e) {
439
439
  return { type: "heading", text: e, size: "lg", margin: "lg", align: "center" };
440
440
  }
441
- function Ea(e) {
441
+ function Ia(e) {
442
442
  return { type: "paragraph", text: e, align: "center" };
443
443
  }
444
444
  function Qm(e) {
@@ -450,11 +450,11 @@ var require_main_min = __commonJS({
450
450
  function tl(e) {
451
451
  return { title: e.title, description: e.description, action: { title: e.title, method: "GET", url: e.url, disabled: e.disabled } };
452
452
  }
453
- function cn(e) {
453
+ function mn(e) {
454
454
  return { type: "image", url: e.url, text: e.text, margin: e.margin || "lg", size: e.size || "md" };
455
455
  }
456
456
  function rl(e) {
457
- return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : cn(e);
457
+ return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : mn(e);
458
458
  }
459
459
  function Ar(e) {
460
460
  return { type: "button", action: S(s({}, e), { title: e.title }) };
@@ -469,7 +469,7 @@ var require_main_min = __commonJS({
469
469
  let t = [];
470
470
  if (e.schemas && e.schemas[0]) {
471
471
  let r = e.schemas[0], a = Qm(r);
472
- il() ? t.push(a) : t.push(Ma([a], "md"));
472
+ il() ? t.push(a) : t.push(ka([a], "md"));
473
473
  }
474
474
  return t;
475
475
  }
@@ -477,40 +477,40 @@ var require_main_min = __commonJS({
477
477
  return false;
478
478
  }
479
479
  function sl(e, t) {
480
- return [...t && e.title ? [ka(e.title)] : [], ...e.description ? [Ea(e.description)] : [], ...e.layout || []];
480
+ return [...t && e.title ? [Ea(e.title)] : [], ...e.description ? [Ia(e.description)] : [], ...e.layout || []];
481
481
  }
482
482
  function ze({ layout: e, schemas: t, actions: r, model: a }) {
483
483
  return e ? t ? e.map((o) => o.type === "form" ? cl({ formComponent: o, schemas: t }) : o.type === "decision" ? ml({ decisionComponent: o, actions: r }) : o.type === "button" ? ll({ actionComponent: o, actions: r }) : o.type === "box" ? S(s({}, o), { components: ze({ layout: o.components, schemas: t, actions: r, model: a }) }) : o.type === "modal" ? S(s({}, o), { components: ze({ layout: o.content.components, schemas: t, actions: r, model: a }) }) : o.type === "columns" ? S(s({}, o), { left: ze({ layout: o.left, schemas: t, actions: r, model: a }), right: ze({ layout: o.right, schemas: t, actions: r, model: a }) }) : o) : e : [];
484
484
  }
485
485
  function cl({ formComponent: e, schemas: t }) {
486
486
  if (e.schemaId)
487
- return { type: "form", margin: e.margin, schema: mn(t, e.schemaId) };
487
+ return { type: "form", margin: e.margin, schema: ln(t, e.schemaId) };
488
488
  if (e.schema && Or(e.schema) && e.schema.$ref)
489
- return { type: "form", margin: e.margin, schema: mn(t, e.schema.$ref) };
489
+ return { type: "form", margin: e.margin, schema: ln(t, e.schema.$ref) };
490
490
  if (e.schema && !Or(e.schema))
491
491
  return s({}, e);
492
492
  throw new Error('Invalid form layout component. Missing "schema" or "schemaId" properties.');
493
493
  }
494
494
  function ml({ decisionComponent: e, actions: t }) {
495
495
  var a;
496
- let r = (a = e == null ? void 0 : e.options) == null ? void 0 : a.map((o) => o.action && Or(o.action) ? S(s({}, o), { action: ln(t, o.action.$ref) }) : o);
496
+ let r = (a = e == null ? void 0 : e.options) == null ? void 0 : a.map((o) => o.action && Or(o.action) ? S(s({}, o), { action: dn(t, o.action.$ref) }) : o);
497
497
  return S(s({}, e), { options: r });
498
498
  }
499
499
  function ll({ actionComponent: e, actions: t }) {
500
500
  var r;
501
501
  if (e.action && Or(e.action) && ((r = e.action) != null && r.$ref)) {
502
- let a = ln(t, e.action.$ref);
502
+ let a = dn(t, e.action.$ref);
503
503
  return Ar(a);
504
504
  }
505
505
  return e;
506
506
  }
507
- function mn(e, t) {
507
+ function ln(e, t) {
508
508
  let r = e.find((a) => a.$id === t);
509
509
  if (!r)
510
510
  throw new Error(`Fatal Error. Schema not found. $id ${t}`);
511
511
  return r;
512
512
  }
513
- function ln(e, t) {
513
+ function dn(e, t) {
514
514
  let r = e.find((a) => a.$id === t);
515
515
  if (!r)
516
516
  throw new Error(`Fatal Error. Action not found. $id ${t}`);
@@ -523,7 +523,7 @@ var require_main_min = __commonJS({
523
523
  var Cm = require("react-intl");
524
524
  var vt = require("react");
525
525
  var Pr = require("react");
526
- function dn() {
526
+ function un() {
527
527
  let [e, t] = (0, Pr.useState)(0);
528
528
  return { addPendingPromise: (0, Pr.useCallback)((a) => {
529
529
  t((o) => o + 1), a.catch(ul).finally(() => dl(() => t((o) => Math.max(0, o - 1))));
@@ -532,129 +532,95 @@ var require_main_min = __commonJS({
532
532
  var dl = (e) => setTimeout(() => e(), 0);
533
533
  var ul = () => {
534
534
  };
535
- var fn = require("react/jsx-runtime");
536
- var un = { loading: false, registerPersistAsyncPromise: (e) => {
535
+ var hn = require("react/jsx-runtime");
536
+ var pn = { loading: false, registerPersistAsyncPromise: (e) => {
537
537
  } };
538
- var pn = (0, vt.createContext)(un);
539
- var yn = ({ loading: e, children: t }) => {
540
- let { pendingPromises: r, addPendingPromise: a } = dn(), o = (0, vt.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: a }), [e, r, a]);
541
- return (0, fn.jsx)(pn.Provider, { value: o, children: t });
538
+ var yn = (0, vt.createContext)(pn);
539
+ var fn = ({ loading: e, children: t }) => {
540
+ let { pendingPromises: r, addPendingPromise: a } = un(), o = (0, vt.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: a }), [e, r, a]);
541
+ return (0, hn.jsx)(yn.Provider, { value: o, children: t });
542
542
  };
543
- var At = () => (0, vt.useContext)(pn) || un;
543
+ var At = () => (0, vt.useContext)(yn) || pn;
544
544
  var Ot = require("react");
545
- var gn = require("react/jsx-runtime");
546
- var hn = (0, Ot.createContext)({ triggerEvent: () => {
545
+ var wn = require("react/jsx-runtime");
546
+ var gn = (0, Ot.createContext)({ triggerEvent: () => {
547
547
  } });
548
548
  function Mr({ metadata: e, children: t, onEvent: r }) {
549
- let a = (0, Ot.useMemo)(() => ({ triggerEvent: Ia(r, e) }), [r, e]);
550
- return (0, gn.jsx)(hn.Provider, { value: a, children: t });
549
+ let a = (0, Ot.useMemo)(() => ({ triggerEvent: Da(r, e) }), [r, e]);
550
+ return (0, wn.jsx)(gn.Provider, { value: a, children: t });
551
551
  }
552
552
  function re() {
553
- let { triggerEvent: e } = (0, Ot.useContext)(hn);
553
+ let { triggerEvent: e } = (0, Ot.useContext)(gn);
554
554
  return e;
555
555
  }
556
- var Ia = (e, t) => (r, a = {}) => {
556
+ var Da = (e, t) => (r, a = {}) => {
557
557
  try {
558
558
  e(r, s(s({}, t), a));
559
559
  } catch (o) {
560
560
  }
561
561
  };
562
- var ct = require("react");
563
- var kr = (e, t) => (r, a) => {
564
- let o = pl(r, e || ""), n = yl(a == null ? void 0 : a.headers, t);
565
- return fetch(o, S(s({}, a != null ? a : {}), { headers: n }));
566
- };
567
- var pl = (e, t) => typeof e == "string" && fl(e) ? t + e : e;
568
- var yl = (e, t) => {
569
- if (!e && !t)
570
- return {};
571
- let r = new Headers(e);
572
- for (let [a, o] of Object.entries(t != null ? t : {}))
573
- r.set(a, o);
574
- return r;
575
- };
576
- function fl(e = "") {
577
- return !["https://", "http://", "data:"].some((t) => e.startsWith(t) && e.length > t.length);
578
- }
579
- var Da = require("react/jsx-runtime");
580
- var Er = (0, ct.createContext)(void 0);
581
- function wn({ httpClient: e, children: t }) {
582
- return (0, Da.jsx)(Er.Provider, { value: e, children: t });
583
- }
584
- function Ir({ baseUrl: e, children: t }) {
585
- let r = (0, ct.useMemo)(() => kr(e), [e]);
586
- return (0, Da.jsx)(Er.Provider, { value: r, children: t });
587
- }
588
- var ae = () => {
589
- let e = (0, ct.useContext)(Er);
590
- return e != null ? e : fetch;
591
- };
592
- var Sn = () => !!(0, ct.useContext)(Er);
593
562
  var Pt = require("react");
594
- var Fn = require("react/jsx-runtime");
595
- var mt = (e, t, r = "UNKNOWN-FLOW-ID", a = "UNKNOWN-FLOW-ID") => (o, n, i) => {
563
+ var Cn = require("react/jsx-runtime");
564
+ var ct = (e, t, r = "UNKNOWN-FLOW-ID", a = "UNKNOWN-FLOW-ID") => (o, n, i) => {
596
565
  try {
597
566
  t(e, `Dynamic Flow ${e} - ${o} - ${n}`, s({ flowId: r, stepId: a }, i));
598
567
  } catch (c) {
599
568
  }
600
569
  };
601
- var Cn = (0, Pt.createContext)(null);
602
- function Dr({ flowId: e, stepId: t, children: r, onLog: a }) {
603
- let o = (0, Pt.useMemo)(() => ({ debug: mt("debug", a, e, t), info: mt("info", a, e, t), warning: mt("warning", a, e, t), error: mt("error", a, e, t), critical: mt("critical", a, e, t) }), [a, e, t]);
604
- return (0, Fn.jsx)(Cn.Provider, { value: o, children: r });
570
+ var Sn = (0, Pt.createContext)(null);
571
+ function kr({ flowId: e, stepId: t, children: r, onLog: a }) {
572
+ let o = (0, Pt.useMemo)(() => ({ debug: ct("debug", a, e, t), info: ct("info", a, e, t), warning: ct("warning", a, e, t), error: ct("error", a, e, t), critical: ct("critical", a, e, t) }), [a, e, t]);
573
+ return (0, Cn.jsx)(Sn.Provider, { value: o, children: r });
605
574
  }
606
575
  var Mt = () => {
607
- let e = (0, Pt.useContext)(Cn);
576
+ let e = (0, Pt.useContext)(Sn);
608
577
  if (e == null)
609
578
  throw new Error("Logging context not found. Did you forget to wrap your component in a <LogProvider />?");
610
579
  return e;
611
580
  };
612
581
  var La = require("react");
613
- var xn = require("react/jsx-runtime");
614
- var hl = (0, La.createContext)([]);
615
- function bn({ features: e, children: t }) {
616
- return (0, xn.jsx)(hl.Provider, { value: e, children: t });
582
+ var bn = require("react/jsx-runtime");
583
+ var pl = (0, La.createContext)([]);
584
+ function Fn({ features: e, children: t }) {
585
+ return (0, bn.jsx)(pl.Provider, { value: e, children: t });
617
586
  }
618
- function vn(e) {
587
+ function xn(e) {
619
588
  return e >= 200 && e < 300;
620
589
  }
621
- function Lr(e) {
590
+ function Er(e) {
622
591
  return e === 422;
623
592
  }
624
- function An(e = "") {
625
- return !["https://", "http://", "data:"].some((t) => e.startsWith(t) && e.length > t.length);
626
- }
627
593
  var L = (e) => typeof e == "string";
628
- var z = (e) => typeof e == "number" && !Number.isNaN(e);
629
- var On = (e) => z(e) && Math.floor(e) === e;
594
+ var j = (e) => typeof e == "number" && !Number.isNaN(e);
595
+ var vn = (e) => j(e) && Math.floor(e) === e;
630
596
  var Ie = (e) => typeof e == "boolean";
631
- var R = (e) => !I(e) && !Y(e) && (e == null ? void 0 : e.constructor) === Object;
632
- var j = (e) => Array.isArray(e);
633
- var I = (e) => e === null;
634
- var Y = (e) => typeof e == "undefined";
635
- var kt = (e) => L(e) && e.length === 0 || (R(e) || j(e)) && Object.keys(e).length === 0;
636
- function Pn(e, t) {
637
- return t.oneOf.some((r) => $e(e, r) === e) ? e : null;
638
- }
639
- function Mn(e, t) {
597
+ var R = (e) => !D(e) && !Z(e) && (e == null ? void 0 : e.constructor) === Object;
598
+ var V = (e) => Array.isArray(e);
599
+ var D = (e) => e === null;
600
+ var Z = (e) => typeof e == "undefined";
601
+ var kt = (e) => L(e) && e.length === 0 || (R(e) || V(e)) && Object.keys(e).length === 0;
602
+ function An(e, t) {
603
+ return t.oneOf.some((r) => We(e, r) === e) ? e : null;
604
+ }
605
+ function On(e, t) {
640
606
  var a;
641
- let r = t.oneOf.map((o) => gl(e, o)).filter((o) => o !== null);
607
+ let r = t.oneOf.map((o) => yl(e, o)).filter((o) => o !== null);
642
608
  return r.length === 0 ? null : (a = r.find((o) => o.some((n) => n !== null))) != null ? a : r[0];
643
609
  }
644
- function gl(e, t) {
610
+ function yl(e, t) {
645
611
  return !je(t) || !De(t) ? null : Ta(e, t);
646
612
  }
647
- function kn(e) {
613
+ function Pn(e) {
648
614
  return L(e) && !kt(e) ? e : null;
649
615
  }
650
- function En(e) {
651
- return z(e) ? e : null;
616
+ function Mn(e) {
617
+ return j(e) ? e : null;
652
618
  }
653
- function In(e) {
619
+ function kn(e) {
654
620
  return Ie(e) ? e : null;
655
621
  }
656
622
  function Ta(e, t) {
657
- if (!j(e) || !De(t))
623
+ if (!V(e) || !De(t))
658
624
  return null;
659
625
  if (e.length > 0) {
660
626
  let r = typeof e[0];
@@ -663,96 +629,96 @@ var require_main_min = __commonJS({
663
629
  }
664
630
  return e.map((r) => Et(r, t.items));
665
631
  }
666
- function Dn(e, t) {
632
+ function En(e, t) {
667
633
  return Object.keys(t.properties).reduce((r, a) => {
668
- if (e && !Y(e[a])) {
634
+ if (e && !Z(e[a])) {
669
635
  let o = e[a], n = t.properties[a], i = Et(o, n);
670
- if (!I(i))
636
+ if (!D(i))
671
637
  return S(s({}, r), { [a]: i });
672
638
  }
673
639
  return r;
674
640
  }, {});
675
641
  }
676
- function Ln(e, t) {
642
+ function In(e, t) {
677
643
  return t.allOf.reduce((r, a) => {
678
644
  let o = ce(e, a);
679
- return $(o) ? s(s({}, r), o) : r;
645
+ return W(o) ? s(s({}, r), o) : r;
680
646
  }, {});
681
647
  }
682
- function Tn(e, t) {
683
- return t.oneOf.map((r) => ce(e, r)).reduce((r, a) => I(r) ? a : $(r) && $(a) ? Rn(r, a) : I(a) ? r : a, null);
648
+ function Dn(e, t) {
649
+ return t.oneOf.map((r) => ce(e, r)).reduce((r, a) => D(r) ? a : W(r) && W(a) ? Ln(r, a) : D(a) ? r : a, null);
684
650
  }
685
- function Rn(e, t) {
651
+ function Ln(e, t) {
686
652
  return Object.keys(t).reduce((r, a) => {
687
653
  let o = e[a], n = t[a];
688
- return $(o) && $(n) ? S(s({}, r), { [a]: Rn(o, n) }) : S(s({}, r), { [a]: t[a] });
654
+ return W(o) && W(n) ? S(s({}, r), { [a]: Ln(o, n) }) : S(s({}, r), { [a]: t[a] });
689
655
  }, s({}, e));
690
656
  }
691
- var Et = (e, t) => $(e) ? ce(e, t) : Ra(e) ? wl(e, t) : $e(e, t);
692
- function $e(e, t) {
693
- if (I(e))
657
+ var Et = (e, t) => W(e) ? ce(e, t) : Ra(e) ? fl(e, t) : We(e, t);
658
+ function We(e, t) {
659
+ if (D(e))
694
660
  return null;
695
661
  if (t.oneOf)
696
- return Pn(e, t);
697
- if (!Y(t.const) && e === t.const)
662
+ return An(e, t);
663
+ if (!Z(t.const) && e === t.const)
698
664
  return e;
699
665
  if (t.type)
700
666
  switch (t.type) {
701
667
  case "string":
702
- return kn(e);
668
+ return Pn(e);
703
669
  case "number":
704
670
  case "integer":
705
- return En(e);
671
+ return Mn(e);
706
672
  case "boolean":
707
- return In(e);
673
+ return kn(e);
708
674
  default:
709
675
  return null;
710
676
  }
711
677
  return null;
712
678
  }
713
679
  function ce(e, t) {
714
- return Ve(t) || je(t) || I(e) ? null : t.allOf ? Ln(e, t) : t.oneOf ? Tn(e, t) : !Y(t.const) && e === t.const ? e : Le(t) ? Dn(e, t) : null;
680
+ return Ve(t) || je(t) || D(e) ? null : t.allOf ? In(e, t) : t.oneOf ? Dn(e, t) : !Z(t.const) && e === t.const ? e : Le(t) ? En(e, t) : null;
715
681
  }
716
- function wl(e, t) {
717
- return ge(t) ? Mn(e, t) : je(t) ? Ta(e, t) : null;
682
+ function fl(e, t) {
683
+ return ge(t) ? On(e, t) : je(t) ? Ta(e, t) : null;
718
684
  }
719
685
  function er(e, t = false) {
720
- return !t || !Y(e);
686
+ return !t || !Z(e);
721
687
  }
722
- function Nn(e, t = false) {
723
- return !t || j(e);
688
+ function Tn(e, t = false) {
689
+ return !t || V(e);
724
690
  }
725
- function Bn(e, t) {
726
- return !z(t) || L(e) && e.length >= t;
691
+ function Rn(e, t) {
692
+ return !j(t) || L(e) && e.length >= t;
727
693
  }
728
- function zn(e, t) {
729
- return !z(t) || L(e) && e.length <= t;
694
+ function Nn(e, t) {
695
+ return !j(t) || L(e) && e.length <= t;
730
696
  }
731
- function jn(e, t) {
697
+ function Bn(e, t) {
732
698
  return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
733
699
  }
734
700
  function Na(e, t) {
735
- return !z(t) && !L(t) || (z(e) || L(e)) && e <= t;
701
+ return !j(t) && !L(t) || (j(e) || L(e)) && e <= t;
736
702
  }
737
703
  function Ba(e, t) {
738
- return !z(t) && !L(t) || (z(e) || L(e)) && e >= t;
704
+ return !j(t) && !L(t) || (j(e) || L(e)) && e >= t;
739
705
  }
740
- function Vn(e, t) {
741
- return !z(t) || j(e) && e.length >= t;
706
+ function zn(e, t) {
707
+ return !j(t) || V(e) && e.length >= t;
742
708
  }
743
- function Un(e, t) {
744
- return !z(t) || j(e) && e.length <= t;
709
+ function jn(e, t) {
710
+ return !j(t) || V(e) && e.length <= t;
745
711
  }
746
712
  function _e(e, t, r) {
747
713
  if (t.const)
748
714
  return Ua(e, t, r);
749
- if (I(e))
715
+ if (D(e))
750
716
  return r ? ["required"] : [];
751
- if (Rr(t))
717
+ if (Dr(t))
752
718
  return za(e, t, r);
753
719
  switch (t.type) {
754
720
  case "number":
755
- return Tr(e, t, r);
721
+ return Ir(e, t, r);
756
722
  case "integer":
757
723
  return ja(e, t, r);
758
724
  case "boolean":
@@ -760,30 +726,30 @@ var require_main_min = __commonJS({
760
726
  case "array":
761
727
  return It(e, t, r);
762
728
  case "object":
763
- return Sl(e, t);
729
+ return hl(e, t);
764
730
  default:
765
731
  return [];
766
732
  }
767
733
  }
768
734
  function za(e, t, r) {
769
- if (!L(e) && !I(e))
735
+ if (!L(e) && !D(e))
770
736
  return ["type"];
771
737
  if (e === "" && r)
772
738
  return ["required"];
773
739
  let a = [];
774
- return er(e, r) || a.push("required"), Bn(e, t.minLength) || a.push("minLength"), zn(e, t.maxLength) || a.push("maxLength"), jn(e, t.pattern) || a.push("pattern"), Ba(e, t.minimum) || a.push("minimum"), Na(e, t.maximum) || a.push("maximum"), a;
740
+ return er(e, r) || a.push("required"), Rn(e, t.minLength) || a.push("minLength"), Nn(e, t.maxLength) || a.push("maxLength"), Bn(e, t.pattern) || a.push("pattern"), Ba(e, t.minimum) || a.push("minimum"), Na(e, t.maximum) || a.push("maximum"), a;
775
741
  }
776
- function Tr(e, t, r) {
777
- if (!z(e) && !I(e))
742
+ function Ir(e, t, r) {
743
+ if (!j(e) && !D(e))
778
744
  return ["type"];
779
745
  let a = [];
780
746
  return er(e, r) || a.push("required"), Ba(e, t.minimum) || a.push("minimum"), Na(e, t.maximum) || a.push("maximum"), a;
781
747
  }
782
748
  function ja(e, t, r) {
783
- return On(e) ? Tr(e, t, r) : ["type"];
749
+ return vn(e) ? Ir(e, t, r) : ["type"];
784
750
  }
785
751
  function Va(e, t, r) {
786
- if (!Ie(e) && !I(e))
752
+ if (!Ie(e) && !D(e))
787
753
  return ["type"];
788
754
  let a = [];
789
755
  return er(e, r) || a.push("required"), a;
@@ -792,89 +758,89 @@ var require_main_min = __commonJS({
792
758
  return er(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
793
759
  }
794
760
  function It(e, t, r) {
795
- if (!j(e) && !I(e))
761
+ if (!V(e) && !D(e))
796
762
  return ["type"];
797
- if (!Nn(e, r))
763
+ if (!Tn(e, r))
798
764
  return ["required"];
799
765
  let a = [];
800
- return Vn(e, t.minItems) || a.push("minItems"), Un(e, t.maxItems) || a.push("maxItems"), a;
766
+ return zn(e, t.minItems) || a.push("minItems"), jn(e, t.maxItems) || a.push("maxItems"), a;
801
767
  }
802
- function Hn(e, t) {
803
- return I(e) ? ["type"] : [];
768
+ function Vn(e, t) {
769
+ return D(e) ? ["type"] : [];
804
770
  }
805
- function Sl(e, t) {
806
- return $(e) ? j(t.required) ? t.required.map((a) => typeof e[a] != "undefined").reduce((a, o) => a && o, true) ? [] : ["required"] : [] : ["type"];
771
+ function hl(e, t) {
772
+ return W(e) ? V(t.required) ? t.required.map((a) => typeof e[a] != "undefined").reduce((a, o) => a && o, true) ? [] : ["required"] : [] : ["type"];
807
773
  }
808
- function Cl(e, t) {
774
+ function gl(e, t) {
809
775
  return !za(e, t).length;
810
776
  }
811
- function Fl(e, t) {
812
- return !Tr(e, t).length;
777
+ function wl(e, t) {
778
+ return !Ir(e, t).length;
813
779
  }
814
- function bl(e, t) {
780
+ function Sl(e, t) {
815
781
  return !ja(e, t).length;
816
782
  }
817
- function xl(e, t) {
783
+ function Cl(e, t) {
818
784
  return !Va(e, t).length;
819
785
  }
820
- function vl(e, t) {
786
+ function Fl(e, t) {
821
787
  return !Ua(e, t).length;
822
788
  }
823
- function Al(e, t) {
824
- return !R(e) || t.type !== "object" || !R(t.properties) ? false : Object.keys(t.properties).map((r) => Ol(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
789
+ function bl(e, t) {
790
+ return !R(e) || t.type !== "object" || !R(t.properties) ? false : Object.keys(t.properties).map((r) => xl(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
825
791
  }
826
- function Ol(e, t, r) {
792
+ function xl(e, t, r) {
827
793
  return t.hidden ? true : typeof e == "undefined" ? !r : G(e, t);
828
794
  }
829
- function Pl(e, t) {
795
+ function vl(e, t) {
830
796
  return t.type !== "array" || !R(t.items) || It(e, t).length > 0 ? false : Array.isArray(e) && De(t) && e.map((r) => G(r, t.items)).every((r) => r);
831
797
  }
832
- function Ml(e, t) {
833
- return j(t.oneOf) ? t.oneOf.some((r) => G(e, r)) : false;
798
+ function Al(e, t) {
799
+ return V(t.oneOf) ? t.oneOf.some((r) => G(e, r)) : false;
834
800
  }
835
- function kl(e, t) {
836
- return j(t.allOf) ? t.allOf.map((r) => G(e, r)).every((r) => r) : false;
801
+ function Ol(e, t) {
802
+ return V(t.allOf) ? t.allOf.map((r) => G(e, r)).every((r) => r) : false;
837
803
  }
838
- function El(e, t) {
839
- return !Hn(e, t).length;
804
+ function Pl(e, t) {
805
+ return !Vn(e, t).length;
840
806
  }
841
807
  function G(e, t) {
842
808
  if (t.oneOf)
843
- return Ml(e, t);
809
+ return Al(e, t);
844
810
  if (t.allOf)
845
- return kl(e, t);
811
+ return Ol(e, t);
846
812
  if (t.const)
847
- return vl(e, t);
813
+ return Fl(e, t);
848
814
  switch (t.type) {
849
815
  case "string":
850
- return Cl(e, t);
816
+ return gl(e, t);
851
817
  case "number":
852
- return Fl(e, t);
818
+ return wl(e, t);
853
819
  case "integer":
854
- return bl(e, t);
820
+ return Sl(e, t);
855
821
  case "boolean":
856
- return xl(e, t);
822
+ return Cl(e, t);
857
823
  case "array":
858
- return Pl(e, t);
824
+ return vl(e, t);
859
825
  case "object":
860
- return Al(e, t);
826
+ return bl(e, t);
861
827
  case "blob":
862
- return El(e, t);
828
+ return Pl(e, t);
863
829
  default:
864
830
  return false;
865
831
  }
866
832
  }
867
- function Il(e) {
833
+ function Ml(e) {
868
834
  let t = new Date(e), r = String(t.getMonth() + 1), a = String(t.getDate()), o = t.getFullYear(), n = r.length < 2 ? `0${r}` : r, i = a.length < 2 ? `0${a}` : a;
869
835
  return [o, n, i].join("-");
870
836
  }
871
- var qn = (e) => {
837
+ var Un = (e) => {
872
838
  if (!e)
873
839
  return null;
874
840
  let [t, r, a] = e.split("-").map((o) => parseInt(o, 10));
875
- return !z(t) || !z(r) || !z(a) ? null : new Date(t, r - 1, a);
841
+ return !j(t) || !j(r) || !j(a) ? null : new Date(t, r - 1, a);
876
842
  };
877
- var Gn = (e) => Il(e);
843
+ var Hn = (e) => Ml(e);
878
844
  var Ke = (e, t) => {
879
845
  let r, a, o = () => {
880
846
  r && (clearTimeout(r), r = null), a = null;
@@ -889,20 +855,20 @@ var require_main_min = __commonJS({
889
855
  r !== null && (e(...a), o());
890
856
  }, n;
891
857
  };
892
- var Je = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, a) => Je(r, t[a])) : !!(Wn(e) && Wn(t) && Dl(e, t));
893
- var Dl = (e, t) => {
858
+ var Je = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, a) => Je(r, t[a])) : !!(qn(e) && qn(t) && kl(e, t));
859
+ var kl = (e, t) => {
894
860
  let r = Object.keys(e), a = Object.keys(t);
895
861
  return r.length === a.length && r.every((o) => Object.hasOwnProperty.call(t, o) && Je(e[o], t[o]));
896
862
  };
897
- var Wn = (e) => typeof e == "object" && e !== null;
898
- function Nr(e) {
863
+ var qn = (e) => typeof e == "object" && e !== null;
864
+ function Lr(e) {
899
865
  return Math.floor(e / 1024);
900
866
  }
901
- var $n = (e) => new Promise((t, r) => {
867
+ var Gn = (e) => new Promise((t, r) => {
902
868
  let a = new FileReader();
903
869
  a.readAsDataURL(e), a.addEventListener("load", () => t(a.result)), a.addEventListener("error", (o) => r(o));
904
870
  });
905
- function _n(e, t) {
871
+ function $n(e, t) {
906
872
  let r = t.reduce((a, o) => S(s({}, a), { [o.id]: o }), {});
907
873
  for (let a of e) {
908
874
  let o = r[a.id];
@@ -913,21 +879,21 @@ var require_main_min = __commonJS({
913
879
  }
914
880
  var Te = (e = "") => `${e ? `${e}-` : ""}${Math.floor(1e8 * Math.random())}`;
915
881
  function we(e) {
916
- return !Y(e == null ? void 0 : e.const);
882
+ return !Z(e == null ? void 0 : e.const);
917
883
  }
918
884
  function tr(e) {
919
885
  return !!e && !we(e);
920
886
  }
921
- var Ll = (e) => !!e.readOnly && Ve(e);
922
- var Tl = (e) => !!e.oneOf && !!e.promotion;
923
- var Rl = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
887
+ var El = (e) => !!e.readOnly && Ve(e);
888
+ var Il = (e) => !!e.oneOf && !!e.promotion;
889
+ var Dl = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
924
890
  function Ve(e) {
925
- return Rl.has(e.type || "") || "const" in e && e.const !== void 0;
891
+ return Dl.has(e.type || "") || "const" in e && e.const !== void 0;
926
892
  }
927
893
  function Le(e) {
928
894
  return e.type === "object";
929
895
  }
930
- function lt(e) {
896
+ function mt(e) {
931
897
  return ge(e) && e.oneOf.every((t) => t.type === "object");
932
898
  }
933
899
  function ge(e) {
@@ -946,71 +912,102 @@ var require_main_min = __commonJS({
946
912
  let t = e.items;
947
913
  return !Array.isArray(t);
948
914
  }
949
- function Rr(e) {
915
+ function Dr(e) {
950
916
  return e.type === "string";
951
917
  }
952
- function Br(e) {
918
+ function Tr(e) {
953
919
  return !!e.persistAsync;
954
920
  }
955
- function Nl(e) {
956
- return Br(e) && (Dt(e.persistAsync.schema) || Bl(e.persistAsync.schema));
921
+ function Ll(e) {
922
+ return Tr(e) && (Dt(e.persistAsync.schema) || Tl(e.persistAsync.schema));
957
923
  }
958
924
  var qa = (e) => Ve(e) && !!e.validationAsync;
959
- function Bl(e) {
925
+ function Tl(e) {
960
926
  return e.type === "string" && e.format === "base64url";
961
927
  }
962
- function Kn(e) {
928
+ function Wn(e) {
963
929
  return e.type === "string" && e.format === "base64url";
964
930
  }
965
- var Jn = (e) => je(e) && De(e) && Nl(e.items);
966
- var dt = (e) => Ll(e) ? "readOnly" : Br(e) ? "persistAsync" : qa(e) ? "validationAsync" : Le(e) ? "object" : je(e) ? "array" : Tl(e) ? "promotedOneOf" : ge(e) ? "oneOf" : Ha(e) ? "allOf" : Ve(e) ? "basic" : null;
967
- var Xn = (e) => zl(e) && jl(e) && Vl(e);
968
- var zl = (e) => !e.type || e.type === "form";
969
- var jl = (e) => {
931
+ var _n = (e) => je(e) && De(e) && Ll(e.items);
932
+ var lt = (e) => El(e) ? "readOnly" : Tr(e) ? "persistAsync" : qa(e) ? "validationAsync" : Le(e) ? "object" : je(e) ? "array" : Il(e) ? "promotedOneOf" : ge(e) ? "oneOf" : Ha(e) ? "allOf" : Ve(e) ? "basic" : null;
933
+ var Kn = (e) => Rl(e) && Nl(e) && Bl(e);
934
+ var Rl = (e) => !e.type || e.type === "form";
935
+ var Nl = (e) => {
970
936
  var t;
971
937
  return ((t = e == null ? void 0 : e.actions) == null ? void 0 : t.length) === 1;
972
938
  };
973
- var Vl = (e) => {
939
+ var Bl = (e) => {
974
940
  if (!e.schemas)
975
941
  return false;
976
- let t = zr(e.schemas);
942
+ let t = Rr(e.schemas);
977
943
  if ((t == null ? void 0 : t.length) !== 1)
978
944
  return false;
979
945
  let r = t[0];
980
946
  if (!Le(r) || Object.values(r.properties).length !== 1)
981
947
  return false;
982
948
  let a = Object.values(r.properties)[0];
983
- return Kn(a) ? a.source === "camera" : false;
984
- };
985
- var zr = (e) => e.filter((t) => Le(t) ? Object.values((t == null ? void 0 : t.properties) || {}).find((r) => (r == null ? void 0 : r.hidden) !== true) : (t == null ? void 0 : t.hidden) !== true);
986
- var $ = (e) => typeof e == "object" && e !== null && e.constructor === Object;
987
- var Ga = (e) => I(e) || $(e);
988
- var Wa = (e) => Ie(e) || z(e) || L(e) || I(e);
989
- var jr = (e) => L(e) || I(e);
990
- var Ra = (e) => j(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object") : false;
991
- var Yn = (e) => I(e) ? true : Ra(e);
992
- var rr = (e) => L(e) || I(e);
993
- var Zn = () => Hl() && (ql() || Ul());
994
- var Ul = (e = window.navigator.userAgent) => /mobi|\b(iphone|android|blackberry|webos|windows phone)\b/i.test(e);
995
- var Hl = (e = window.screen.width, t = window.screen.height) => e < 768 || t < 768;
996
- var ql = (e = window.navigator, t = window.matchMedia) => {
949
+ return Wn(a) ? a.source === "camera" : false;
950
+ };
951
+ var Rr = (e) => e.filter((t) => Le(t) ? Object.values((t == null ? void 0 : t.properties) || {}).find((r) => (r == null ? void 0 : r.hidden) !== true) : (t == null ? void 0 : t.hidden) !== true);
952
+ var W = (e) => typeof e == "object" && e !== null && e.constructor === Object;
953
+ var Ga = (e) => D(e) || W(e);
954
+ var $a = (e) => Ie(e) || j(e) || L(e) || D(e);
955
+ var Nr = (e) => L(e) || D(e);
956
+ var Ra = (e) => V(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object") : false;
957
+ var Jn = (e) => D(e) ? true : Ra(e);
958
+ var rr = (e) => L(e) || D(e);
959
+ var Xn = () => jl() && (Vl() || zl());
960
+ var zl = (e = window.navigator.userAgent) => /mobi|\b(iphone|android|blackberry|webos|windows phone)\b/i.test(e);
961
+ var jl = (e = window.screen.width, t = window.screen.height) => e < 768 || t < 768;
962
+ var Vl = (e = window.navigator, t = window.matchMedia) => {
997
963
  if ("maxTouchPoints" in e)
998
964
  return e.maxTouchPoints > 0;
999
965
  let r = t == null ? void 0 : t("(pointer:coarse)");
1000
966
  return (r == null ? void 0 : r.media) === "(pointer:coarse)" ? !!r.matches : false;
1001
967
  };
1002
- var Qn = require("react");
1003
- function ei(e, t) {
1004
- return (0, Qn.useCallback)(Ke(e, t), [e, t]);
968
+ var Yn = require("react");
969
+ function Zn(e, t) {
970
+ return (0, Yn.useCallback)(Ke(e, t), [e, t]);
1005
971
  }
1006
972
  var ar = require("react");
1007
- function ti(e) {
973
+ function Qn(e) {
1008
974
  let [t, r] = (0, ar.useState)(null), [a, o] = (0, ar.useState)(false), n = () => o(true);
1009
975
  return (0, ar.useEffect)(() => {
1010
976
  e && (o(false), r(window.open(e, "_blank")));
1011
977
  }, [e]), { requiresManualTrigger: !!(e && !t && !a), dismissConfirmation: n };
1012
978
  }
1013
979
  var or = require("react");
980
+ var dt = require("react");
981
+ function Br(e = "") {
982
+ return !["https://", "http://", "data:"].some((t) => e.startsWith(t) && e.length > t.length);
983
+ }
984
+ var zr = (e, t) => (r, a) => {
985
+ let o = Ul(r, e || ""), n = Hl(a == null ? void 0 : a.headers, t);
986
+ return fetch(o, S(s({}, a != null ? a : {}), { headers: n }));
987
+ };
988
+ var Ul = (e, t) => typeof e == "string" && Br(e) ? t + e : e;
989
+ var Hl = (e, t) => {
990
+ if (!e && !t)
991
+ return {};
992
+ let r = new Headers(e);
993
+ for (let [a, o] of Object.entries(t != null ? t : {}))
994
+ r.set(a, o);
995
+ return r;
996
+ };
997
+ var Wa = require("react/jsx-runtime");
998
+ var jr = (0, dt.createContext)(void 0);
999
+ function ei({ httpClient: e, children: t }) {
1000
+ return (0, Wa.jsx)(jr.Provider, { value: e, children: t });
1001
+ }
1002
+ function Vr({ baseUrl: e, children: t }) {
1003
+ let r = (0, dt.useMemo)(() => zr(e), [e]);
1004
+ return (0, Wa.jsx)(jr.Provider, { value: r, children: t });
1005
+ }
1006
+ var ae = () => {
1007
+ let e = (0, dt.useContext)(jr);
1008
+ return e != null ? e : fetch;
1009
+ };
1010
+ var ti = () => !!(0, dt.useContext)(jr);
1014
1011
  function ri(e, t) {
1015
1012
  let r = ae(), a = (0, or.useMemo)(() => {
1016
1013
  if (e)
@@ -1041,7 +1038,7 @@ var require_main_min = __commonJS({
1041
1038
  }
1042
1039
  return true;
1043
1040
  }, [e == null ? void 0 : e.responseHandlers, t]);
1044
- Vr({ asyncFn: a, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: o, onFailure: (0, or.useCallback)(() => {
1041
+ Ur({ asyncFn: a, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: o, onFailure: (0, or.useCallback)(() => {
1045
1042
  e && t(e.onError.action);
1046
1043
  }, [t, e]) });
1047
1044
  }
@@ -1060,9 +1057,9 @@ var require_main_min = __commonJS({
1060
1057
  var pi = require("@transferwise/components");
1061
1058
  var Tt = require("@transferwise/components");
1062
1059
  var ci = require("react/jsx-runtime");
1063
- var Lt = (e) => Gl(e) || Wl(e);
1064
- var Gl = (e) => $l.some((t) => e === `flag-${t}`);
1065
- var Wl = (e) => _l.some((t) => e === `flag-${t}`);
1060
+ var Lt = (e) => ql(e) || Gl(e);
1061
+ var ql = (e) => $l.some((t) => e === `flag-${t}`);
1062
+ var Gl = (e) => Wl.some((t) => e === `flag-${t}`);
1066
1063
  function si({ name: e }) {
1067
1064
  if (!Lt(e))
1068
1065
  return null;
@@ -1070,29 +1067,29 @@ var require_main_min = __commonJS({
1070
1067
  return (0, ci.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}`, width: "24px" });
1071
1068
  }
1072
1069
  var $l = ["aed", "ars", "aud", "bdt", "bgn", "bhd", "bnd", "brl", "bwp", "cad", "chf", "clp", "cny", "cop", "crc", "czk", "dkk", "egp", "eur", "fjd", "gbp", "gel", "ghs", "gtq", "hkd", "hrk", "huf", "idr", "ils", "imp", "inr", "isk", "jmd", "jpy", "kes", "krw", "kwd", "lak", "lkr", "lsl", "mad", "mur", "mxn", "myr", "mzn", "nad", "ngn", "nok", "npr", "nzd", "omr", "pab", "pen", "php", "pkr", "pln", "qar", "ron", "rub", "sar", "sek", "sgd", "thb", "tmt", "try", "twd", "tzs", "uah", "ugx", "usd", "uyu", "vnd", "xof", "zar", "zmw"];
1073
- var _l = ["ad", "ae", "ar", "at", "au", "bd", "be", "bg", "bh", "bn", "br", "bw", "ca", "ch", "cl", "cn", "co", "cr", "cy", "cz", "de", "dk", "ee", "eg", "es", "eu", "fi", "fj", "fr", "gb", "ge", "gg", "gh", "gp", "gr", "gt", "hk", "hr", "hu", "id", "ie", "il", "im", "in", "is", "it", "je", "jm", "jp", "ke", "kr", "kw", "la", "li", "lk", "ls", "lt", "lu", "lv", "ma", "mc", "mt", "mu", "mx", "my", "mz", "na", "ng", "nl", "no", "np", "nz", "om", "pa", "pe", "ph", "pk", "pl", "pt", "qa", "ro", "ru", "sa", "se", "sg", "si", "sk", "sm", "th", "tm", "tr", "tw", "tz", "ua", "ug", "us", "uy", "va", "vn", "wi", "xo", "za", "zm"];
1070
+ var Wl = ["ad", "ae", "ar", "at", "au", "bd", "be", "bg", "bh", "bn", "br", "bw", "ca", "ch", "cl", "cn", "co", "cr", "cy", "cz", "de", "dk", "ee", "eg", "es", "eu", "fi", "fj", "fr", "gb", "ge", "gg", "gh", "gp", "gr", "gt", "hk", "hr", "hu", "id", "ie", "il", "im", "in", "is", "it", "je", "jm", "jp", "ke", "kr", "kw", "la", "li", "lk", "ls", "lt", "lu", "lv", "ma", "mc", "mt", "mu", "mx", "my", "mz", "na", "ng", "nl", "no", "np", "nz", "om", "pa", "pe", "ph", "pk", "pl", "pt", "qa", "ro", "ru", "sa", "se", "sg", "si", "sk", "sm", "th", "tm", "tr", "tw", "tz", "ua", "ug", "us", "uy", "va", "vn", "wi", "xo", "za", "zm"];
1074
1071
  var mi = Ee(require("@transferwise/icons"));
1075
1072
  var ui = require("react/jsx-runtime");
1076
- var Hr = (e) => {
1073
+ var qr = (e) => {
1077
1074
  let t = di(e);
1078
1075
  return Object.keys(mi).includes(t);
1079
1076
  };
1080
1077
  function li({ name: e }) {
1081
- if (!Hr(e))
1078
+ if (!qr(e))
1082
1079
  return null;
1083
1080
  let t = di(e), r = mi[t];
1084
1081
  return (0, ui.jsx)(r, { size: 24 });
1085
1082
  }
1086
- var di = (e) => e.split("-").map(Kl).join("");
1087
- var Kl = (e) => `${e[0].toUpperCase()}${e.slice(1)}`;
1088
- var $a = require("react/jsx-runtime");
1089
- function Jl({ type: e }) {
1090
- return Lt(e) ? (0, $a.jsx)(si, { name: e }) : Hr(e) ? (0, $a.jsx)(li, { name: e }) : null;
1083
+ var di = (e) => e.split("-").map(_l).join("");
1084
+ var _l = (e) => `${e[0].toUpperCase()}${e.slice(1)}`;
1085
+ var _a = require("react/jsx-runtime");
1086
+ function Kl({ type: e }) {
1087
+ return Lt(e) ? (0, _a.jsx)(si, { name: e }) : qr(e) ? (0, _a.jsx)(li, { name: e }) : null;
1091
1088
  }
1092
- function _a(e) {
1093
- return Hr(e) || Lt(e);
1089
+ function Ka(e) {
1090
+ return qr(e) || Lt(e);
1094
1091
  }
1095
- var Ye = Jl;
1092
+ var Ye = Kl;
1096
1093
  var ir = require("react/jsx-runtime");
1097
1094
  var ut = ({ icon: e, image: t }) => {
1098
1095
  if (e != null && e.name)
@@ -1105,7 +1102,7 @@ var require_main_min = __commonJS({
1105
1102
  }
1106
1103
  return null;
1107
1104
  };
1108
- var V = (e) => {
1105
+ var U = (e) => {
1109
1106
  switch (e) {
1110
1107
  case "xs":
1111
1108
  return "m-b-0";
@@ -1121,7 +1118,7 @@ var require_main_min = __commonJS({
1121
1118
  return "";
1122
1119
  }
1123
1120
  };
1124
- var Xl = (e) => {
1121
+ var Jl = (e) => {
1125
1122
  switch (e) {
1126
1123
  case "right":
1127
1124
  return "text-xs-right";
@@ -1132,13 +1129,13 @@ var require_main_min = __commonJS({
1132
1129
  return "";
1133
1130
  }
1134
1131
  };
1135
- var Se = (e) => `${Xl(e.align)} ${V(e.margin)}`;
1132
+ var Se = (e) => `${Jl(e.align)} ${U(e.margin)}`;
1136
1133
  var yi = require("react/jsx-runtime");
1137
- var Yl = (e) => {
1134
+ var Xl = (e) => {
1138
1135
  let t = e.component;
1139
- return (0, yi.jsx)(pi.Alert, { type: Ql(Zl(t.context)), className: V(t.margin), message: t.markdown });
1136
+ return (0, yi.jsx)(pi.Alert, { type: Zl(Yl(t.context)), className: U(t.margin), message: t.markdown });
1140
1137
  };
1141
- var Zl = (e) => {
1138
+ var Yl = (e) => {
1142
1139
  switch (e) {
1143
1140
  case "success":
1144
1141
  return "positive";
@@ -1153,15 +1150,15 @@ var require_main_min = __commonJS({
1153
1150
  return e;
1154
1151
  }
1155
1152
  };
1156
- var Ql = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
1157
- var se = Yl;
1153
+ var Zl = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
1154
+ var se = Xl;
1158
1155
  var pt = require("react/jsx-runtime");
1159
- var ed = (e) => {
1160
- let t = e.component, r = V(t.margin || t.border ? "lg" : "xs");
1161
- return !t.width || t.width === "xl" ? (0, pt.jsx)("div", { className: r + fi(t.border), children: (0, pt.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, pt.jsx)("div", { className: "row", children: (0, pt.jsx)("div", { className: r + td(t), children: (0, pt.jsx)("div", { className: fi(t.border), children: (0, pt.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
1156
+ var Ql = (e) => {
1157
+ let t = e.component, r = U(t.margin || t.border ? "lg" : "xs");
1158
+ return !t.width || t.width === "xl" ? (0, pt.jsx)("div", { className: r + fi(t.border), children: (0, pt.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, pt.jsx)("div", { className: "row", children: (0, pt.jsx)("div", { className: r + ed(t), children: (0, pt.jsx)("div", { className: fi(t.border), children: (0, pt.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
1162
1159
  };
1163
1160
  var fi = (e) => e ? " well p-b-0" : "";
1164
- var td = (e) => {
1161
+ var ed = (e) => {
1165
1162
  switch (e.width) {
1166
1163
  case "xs":
1167
1164
  return " col-md-4 col-md-offset-4";
@@ -1176,21 +1173,21 @@ var require_main_min = __commonJS({
1176
1173
  return " col-xs-12";
1177
1174
  }
1178
1175
  };
1179
- var Ka = ed;
1176
+ var Ja = Ql;
1180
1177
  var Si = require("@transferwise/components");
1181
- var rd = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
1178
+ var td = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
1182
1179
  var hi = (e) => {
1183
1180
  var r;
1184
1181
  let t = e.action.type;
1185
- return (r = e.control) != null ? r : t ? rd[t] : "secondary";
1182
+ return (r = e.control) != null ? r : t ? td[t] : "secondary";
1186
1183
  };
1187
- var ad = { positive: "positive", negative: "negative", neutral: "accent", warning: "accent" };
1188
- var od = { primary: "accent", secondary: "accent", link: "accent", positive: "positive", negative: "negative" };
1184
+ var rd = { positive: "positive", negative: "negative", neutral: "accent", warning: "accent" };
1185
+ var ad = { primary: "accent", secondary: "accent", link: "accent", positive: "positive", negative: "negative" };
1189
1186
  var gi = (e) => {
1190
1187
  if (e.context)
1191
- return ad[e.context];
1188
+ return rd[e.context];
1192
1189
  let t = e.action.type;
1193
- return t ? od[t] : "accent";
1190
+ return t ? ad[t] : "accent";
1194
1191
  };
1195
1192
  var wi = (e) => {
1196
1193
  switch (e) {
@@ -1206,39 +1203,39 @@ var require_main_min = __commonJS({
1206
1203
  }
1207
1204
  };
1208
1205
  var Ci = require("react/jsx-runtime");
1209
- function nd(e) {
1206
+ function od(e) {
1210
1207
  var d;
1211
- let { component: t, onAction: r } = e, a = t.action, o = gi(t), n = hi(t), { loading: i } = At(), c = V(t.margin || "md");
1208
+ let { component: t, onAction: r } = e, a = t.action, o = gi(t), n = hi(t), { loading: i } = At(), c = U(t.margin || "md");
1212
1209
  return (0, Ci.jsx)(Si.Button, { size: wi(t.size), type: n === "tertiary" ? void 0 : o, priority: n, block: true, className: c, disabled: i || t.disabled || a.disabled, onClick: () => r(a), children: (d = t.title) != null ? d : a.title });
1213
1210
  }
1214
- var Ja = nd;
1211
+ var Xa = od;
1215
1212
  var yt = require("react/jsx-runtime");
1216
- var id = (e) => {
1217
- let t = e.component, { leftWidth: r, rightWidth: a } = sd(t.bias);
1218
- 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 }) })] });
1219
- };
1220
- var sd = (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" };
1221
- var Xa = id;
1222
- var Gr = require("@transferwise/components");
1223
- var qr = require("react/jsx-runtime");
1224
- function cd({ component: e, onAction: t }) {
1213
+ var nd = (e) => {
1214
+ let t = e.component, { leftWidth: r, rightWidth: a } = id(t.bias);
1215
+ return (0, yt.jsxs)("div", { className: `${U(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 }) })] });
1216
+ };
1217
+ 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" };
1218
+ var Ya = nd;
1219
+ var $r = require("@transferwise/components");
1220
+ var Gr = require("react/jsx-runtime");
1221
+ function sd({ component: e, onAction: t }) {
1225
1222
  let { loading: r } = At();
1226
- return (0, qr.jsx)("div", { className: V(e.margin), children: (0, qr.jsx)(Gr.NavigationOptionsList, { children: e.options.map((a) => (0, qr.jsx)(Gr.NavigationOption, { title: a.title, content: a.description, disabled: r || a.disabled, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(a.action) }, JSON.stringify(a))) }) });
1223
+ return (0, Gr.jsx)("div", { className: U(e.margin), children: (0, Gr.jsx)($r.NavigationOptionsList, { children: e.options.map((a) => (0, Gr.jsx)($r.NavigationOption, { title: a.title, content: a.description, disabled: r || a.disabled, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => t(a.action) }, JSON.stringify(a))) }) });
1227
1224
  }
1228
- var Ya = cd;
1225
+ var Za = sd;
1229
1226
  var Fi = require("react/jsx-runtime");
1230
- var md = ({ component: e }) => {
1231
- let r = `m-t-0 ${V(e.margin)}`;
1227
+ var cd = ({ component: e }) => {
1228
+ let r = `m-t-0 ${U(e.margin)}`;
1232
1229
  return (0, Fi.jsx)("hr", { className: r });
1233
1230
  };
1234
- var Za = md;
1231
+ var Qa = cd;
1235
1232
  var Rt = require("@transferwise/components");
1236
1233
  var Wr = require("react");
1237
1234
  var vi = require("react-intl");
1238
1235
  var bi = require("react-intl");
1239
1236
  var xi = (0, bi.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
1240
1237
  var Ze = require("react/jsx-runtime");
1241
- var ld = ({ component: e, onAction: t }) => {
1238
+ var md = ({ component: e, onAction: t }) => {
1242
1239
  let { requestUrl: r, responseHandlers: a, polling: o, retryTitle: n } = e, i = (0, vi.useIntl)(), c = (0, Wr.useCallback)(() => window.open(r, "df-external-window"), [r]);
1243
1240
  (0, Wr.useEffect)(() => {
1244
1241
  c();
@@ -1246,43 +1243,43 @@ var require_main_min = __commonJS({
1246
1243
  let d = o && a ? S(s({}, o), { responseHandlers: a }) : void 0;
1247
1244
  return ri(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(xi.retryTitle) })] });
1248
1245
  };
1249
- var Qa = ld;
1246
+ var eo = md;
1250
1247
  var Gs = require("react");
1251
1248
  var Ai = require("@transferwise/components");
1252
1249
  var Oi = Ee(Xe());
1253
1250
  var Pi = require("react");
1254
1251
  var Re = require("react/jsx-runtime");
1255
- var dd = (e, t) => t.map((r) => ce(e, r) || {});
1256
- var ud = (e) => e.reduce((t, r) => s(s({}, r), t), {});
1257
- var pd = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1252
+ var ld = (e, t) => t.map((r) => ce(e, r) || {});
1253
+ var dd = (e) => e.reduce((t, r) => s(s({}, r), t), {});
1254
+ var ud = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1258
1255
  function Mi(e) {
1259
1256
  let t = (o, n) => {
1260
1257
  let i = e.schema.allOf[o];
1261
- r[o] = ce(n.model, i) || {}, a(r), e.onChange(S(s({}, n), { model: ud(r) }));
1262
- }, [r, a] = (0, Pi.useState)(dd(e.model, e.schema.allOf));
1263
- return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(Ai.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, Oi.default)(pd(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, S(s({}, i), { model: i.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
1258
+ r[o] = ce(n.model, i) || {}, a(r), e.onChange(S(s({}, n), { model: dd(r) }));
1259
+ }, [r, a] = (0, Pi.useState)(ld(e.model, e.schema.allOf));
1260
+ return (0, Re.jsxs)(Re.Fragment, { children: [e.schema.title && (0, Re.jsx)(Ai.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, Oi.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, S(s({}, i), { model: i.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
1264
1261
  }
1265
1262
  Mi.defaultProps = { disabled: false };
1266
- var eo = Mi;
1267
- var _r = require("@transferwise/components");
1263
+ var to = Mi;
1264
+ var Kr = require("@transferwise/components");
1268
1265
  var Hi = Ee(Xe());
1269
1266
  var sr = require("react");
1270
- var $r = require("@transferwise/components");
1271
- var to = require("@transferwise/formatting");
1267
+ var _r = require("@transferwise/components");
1268
+ var ro = require("@transferwise/formatting");
1272
1269
  var Ei = require("react-intl");
1273
1270
  var ki = require("react-intl");
1274
1271
  var Ce = (0, ki.defineMessages)({ type: { id: "dynamicFlows.ControlFeedback.type", defaultMessage: "Incorrect type", description: "" }, minimum: { id: "dynamicFlows.ControlFeedback.minimum", defaultMessage: "Please enter a number that's {minimum} or more.", description: "" }, maximum: { id: "dynamicFlows.ControlFeedback.maximum", defaultMessage: "Please enter a number that's {maximum} or less.", description: "" }, minLength: { id: "dynamicFlows.ControlFeedback.minLength", defaultMessage: "Please enter at least {minLength} characters.", description: "" }, maxLength: { id: "dynamicFlows.ControlFeedback.maxLength", defaultMessage: "Please enter {maxLength} or fewer characters.", description: "" }, minimumDate: { id: "dynamicFlows.ControlFeedback.minimumDate", defaultMessage: "Please enter a date that's on or after {minimum}.", description: "" }, maximumDate: { id: "dynamicFlows.ControlFeedback.maximumDate", defaultMessage: "Please enter a date that's on or before {maximum}.", description: "" }, pattern: { id: "dynamicFlows.ControlFeedback.pattern", defaultMessage: "Please enter this in the correct format.", description: "" }, patternDate: { id: "dynamicFlows.ControlFeedback.patternDate", defaultMessage: "Please enter a date in the corrrect format.", description: "" }, required: { id: "dynamicFlows.ControlFeedback.required", defaultMessage: "Please fill out this field.", description: "" } });
1275
1272
  var Ue = require("react/jsx-runtime");
1276
1273
  function Ii(e) {
1277
1274
  var c;
1278
- let t = yd(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;
1279
- 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 })] })] });
1275
+ 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;
1276
+ 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 })] })] });
1280
1277
  }
1281
1278
  Ii.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
1282
- function yd(e) {
1279
+ function pd(e) {
1283
1280
  let { formatMessage: t, locale: r } = (0, Ei.useIntl)(), a = { type: t(Ce.type), minimum: t(Ce.minimum, { minimum: e.minimum }), maximum: t(Ce.maximum, { maximum: e.maximum }), minLength: t(Ce.minLength, { minLength: e.minLength }), maxLength: t(Ce.maxLength, { maxLength: e.maxLength }), pattern: t(Ce.pattern), required: t(Ce.required) };
1284
1281
  if (e.format === "date") {
1285
- let o = { pattern: t(Ce.patternDate), minimum: e.minimum ? t(Ce.minimumDate, { minimum: (0, to.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(Ce.maximumDate, { maximum: (0, to.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
1282
+ let o = { pattern: t(Ce.patternDate), minimum: e.minimum ? t(Ce.minimumDate, { minimum: (0, ro.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(Ce.maximumDate, { maximum: (0, ro.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
1286
1283
  return s(s({}, a), o);
1287
1284
  }
1288
1285
  return a;
@@ -1292,7 +1289,7 @@ var require_main_min = __commonJS({
1292
1289
  if (t)
1293
1290
  return e;
1294
1291
  if (e instanceof Blob)
1295
- return $n(e);
1292
+ return Gn(e);
1296
1293
  throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
1297
1294
  }
1298
1295
  function Li(e) {
@@ -1320,62 +1317,62 @@ var require_main_min = __commonJS({
1320
1317
  }
1321
1318
  var ft = require("react/jsx-runtime");
1322
1319
  function qi(e) {
1323
- var M, E;
1324
- let { onChange: t, schema: r } = e, a = re(), o = Vi(r), n = (0, sr.useMemo)(() => r.$id || Te(), [r.$id]), [i, c] = (0, sr.useState)(false), [d, m] = (0, sr.useState)(() => fd(e.model || [])), p = Gi(r.items.persistAsync), h = r.items.persistAsync.schema, y = Dt(h), u = async (P) => {
1320
+ var k, I;
1321
+ let { onChange: t, schema: r } = e, a = re(), o = Vi(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 = Gi(r.items.persistAsync), h = r.items.persistAsync.schema, y = Dt(h), u = async (O) => {
1325
1322
  c(true);
1326
1323
  try {
1327
- let D = await Di(P, y);
1324
+ let P = await Di(O, y);
1328
1325
  a("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
1329
- let U = await p(D);
1330
- return a("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), Li(U);
1331
- } catch (D) {
1332
- return a("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(Ti(D));
1326
+ let B = await p(P);
1327
+ return a("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), Li(B);
1328
+ } catch (P) {
1329
+ return a("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(Ti(P));
1333
1330
  }
1334
1331
  };
1335
- function l(P) {
1336
- if (_n(P, d))
1332
+ function l(O) {
1333
+ if ($n(O, d))
1337
1334
  return;
1338
- m(P);
1339
- let U = Ui(P).map((ee) => ee.id);
1340
- t({ model: U, triggerSchema: r, triggerModel: U });
1335
+ m(O);
1336
+ let B = Ui(O).map((_) => _.id);
1337
+ t({ model: B, triggerSchema: r, triggerModel: B });
1341
1338
  }
1342
- let w = Ui(d).map((P) => P.id), C = It(w, r, e.required), F = !!e.errors || (i || e.submitted) && !!C.length, g = "accepts" in h && h.accepts, v = "maxSize" in h && h.maxSize, O = S(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`;
1343
- return (0, ft.jsxs)("div", { className: (0, Hi.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: C, validationMessages: gd(r, !!e.required, o), infoMessage: null, focused: false, blurred: true })] });
1339
+ let g = Ui(d).map((O) => O.id), C = It(g, r, e.required), F = !!e.errors || (i || e.submitted) && !!C.length, w = "accepts" in h && h.accepts, A = "maxSize" in h && h.maxSize, M = S(s(s({ multiple: true, className: "form-control", files: d, fileInputName: n, id: n }, w ? { fileTypes: w } : void 0), A ? { sizeLimit: Lr(A) } : void 0), { sizeLimitErrorMessage: ((k = h.validationMessages) == null ? void 0 : k.maxSize) || o.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((I = e.schema.validationMessages) == null ? void 0 : I.maxItems) || o.maxItemsErrorMessage, uploadButtonTitle: h.title, description: h.description, disabled: e.disabled, onUploadFile: (O) => u(O.get(n)), onFilesChange: l, onDeleteFile: () => Promise.resolve() }), x = `${n}-feedback`;
1340
+ return (0, ft.jsxs)("div", { className: (0, Hi.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)(Kr.UploadInput, s({}, M)) }), (0, ft.jsx)(He, { id: x, changed: i, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: C, validationMessages: hd(r, !!e.required, o), infoMessage: null, focused: false, blurred: true })] });
1344
1341
  }
1345
1342
  qi.defaultProps = { errors: null, required: false };
1346
- var ro = qi;
1343
+ var ao = qi;
1347
1344
  function Ui(e) {
1348
1345
  return e.filter((t) => !t.error && t.status === "succeeded");
1349
1346
  }
1350
- function fd(e) {
1351
- return e.map((t) => hd(t) ? { id: t, status: _r.Status.SUCCEEDED } : null).filter((t) => t !== null);
1347
+ function yd(e) {
1348
+ return e.map((t) => fd(t) ? { id: t, status: Kr.Status.SUCCEEDED } : null).filter((t) => t !== null);
1352
1349
  }
1353
- function hd(e) {
1354
- return z(e) || L(e);
1350
+ function fd(e) {
1351
+ return j(e) || L(e);
1355
1352
  }
1356
- function gd(e, t, r) {
1353
+ function hd(e, t, r) {
1357
1354
  let { minItems: a, maxItems: o } = e;
1358
1355
  return s(s(s({}, t && { required: r.requiredMessage }), a && { minItems: r.minItemsErrorMessage }), o && { maxItems: r.maxItemsErrorMessage });
1359
1356
  }
1360
1357
  var Bt = require("@transferwise/components");
1361
1358
  var Qi = require("@transferwise/icons");
1362
- var Xr = require("react");
1359
+ var Yr = require("react");
1363
1360
  var es = require("react-intl");
1364
- var Wi = require("@transferwise/components");
1361
+ var $i = require("@transferwise/components");
1365
1362
  var _i = require("react/jsx-runtime");
1366
- var $i = ({ item: e, onClick: t }) => (0, _i.jsx)(Wi.NavigationOption, { onClick: t, media: ut(e), title: e.title, content: e.description, showMediaAtAllSizes: true });
1363
+ var Wi = ({ item: e, onClick: t }) => (0, _i.jsx)($i.NavigationOption, { onClick: t, media: ut(e), title: e.title, content: e.description, showMediaAtAllSizes: true });
1367
1364
  var Ki = require("react-intl");
1368
1365
  var ht = (0, Ki.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" } });
1369
1366
  var Ji = require("react-intl");
1370
1367
  var Yi = require("react/jsx-runtime");
1371
- function wd({ type: e, schema: t, model: r, errors: a, submitted: o, onModelChange: n, onAction: i }) {
1368
+ function gd({ type: e, schema: t, model: r, errors: a, submitted: o, onModelChange: n, onAction: i }) {
1372
1369
  let { formatMessage: c } = (0, Ji.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: [] };
1373
- return (0, Yi.jsx)(Kr, { step: d, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: o, formErrors: a, globalError: null, onAction: (m) => {
1370
+ return (0, Yi.jsx)(Jr, { step: d, model: r, stepLayoutOptions: { displayStepTitle: false }, submitted: o, formErrors: a, globalError: null, onAction: (m) => {
1374
1371
  i(m.url);
1375
1372
  }, onModelChange: n });
1376
1373
  }
1377
- var Xi = wd;
1378
- var Jr = (e, t) => {
1374
+ var Xi = gd;
1375
+ var Xr = (e, t) => {
1379
1376
  let r = cr(e, t);
1380
1377
  if (r >= 0)
1381
1378
  return r;
@@ -1386,22 +1383,22 @@ var require_main_min = __commonJS({
1386
1383
  if (a >= 0)
1387
1384
  return a;
1388
1385
  }
1389
- return lt(e) && $(t) && Object.keys(t).length >= 1 ? Nt(e, t) : lt(e) && !Y(e.default) && $(e.default) && Object.keys(e.default).length >= 1 ? Nt(e, e.default) : null;
1386
+ return mt(e) && W(t) && Object.keys(t).length >= 1 ? Nt(e, t) : mt(e) && !Z(e.default) && W(e.default) && Object.keys(e.default).length >= 1 ? Nt(e, e.default) : null;
1390
1387
  };
1391
1388
  var cr = (e, t) => {
1392
- let r = (a) => !Y(t) && G(t, a);
1389
+ let r = (a) => !Z(t) && G(t, a);
1393
1390
  return e.oneOf.filter(r).length === 1 ? e.oneOf.findIndex(r) : -1;
1394
1391
  };
1395
1392
  function Nt(e, t) {
1396
1393
  if (t == null)
1397
1394
  return null;
1398
- let r = e.oneOf.map((a) => Sd(a).reduce((o, [n, i]) => we(i) && i.const === t[n] ? o + 2 : tr(i) && typeof t[n] != "undefined" ? o + 1 : o, 0));
1395
+ 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));
1399
1396
  return r.every((a) => a === r[0]) ? null : r.indexOf(Math.max(...r));
1400
1397
  }
1401
- function Sd(e) {
1398
+ function wd(e) {
1402
1399
  return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
1403
1400
  }
1404
- var ao = (e, t, r = {}) => {
1401
+ var oo = (e, t, r = {}) => {
1405
1402
  let { defaultTitle: a = "", defaultDescription: o = "", defaultIcon: n, defaultImage: i } = r, c = Qe({ schema: e, model: t, providesProp: "providesTitle", getValueFromSchema: Zi }), d = Qe({ schema: e, model: t, providesProp: "providesDescription", getValueFromSchema: Zi }), m = Qe({ schema: e, model: t, providesProp: "providesIcon", getValueFromSchema: (h) => {
1406
1403
  var y;
1407
1404
  return (y = h.icon) != null ? y : null;
@@ -1413,32 +1410,32 @@ var require_main_min = __commonJS({
1413
1410
  };
1414
1411
  var Qe = (e) => {
1415
1412
  let { schema: t, model: r, providesProp: a, getValueFromSchema: o } = e;
1416
- if (xd(t.summary, a))
1413
+ if (bd(t.summary, a))
1417
1414
  return o(t, r);
1418
- switch (dt(t)) {
1415
+ switch (lt(t)) {
1419
1416
  case "object":
1420
- return Cd(e);
1417
+ return Sd(e);
1421
1418
  case "oneOf":
1422
- return Fd(e);
1419
+ return Cd(e);
1423
1420
  case "allOf":
1424
- return bd(e);
1421
+ return Fd(e);
1425
1422
  default:
1426
1423
  return null;
1427
1424
  }
1428
1425
  };
1429
- var Cd = (e) => {
1426
+ var Sd = (e) => {
1430
1427
  let { schema: t, model: r } = e, a = t;
1431
1428
  for (let o in a.properties) {
1432
- let n = a.properties[o], i = $(r) && o in r ? r[o] : null, c = Qe(S(s({}, e), { schema: n, model: i }));
1429
+ let n = a.properties[o], i = W(r) && o in r ? r[o] : null, c = Qe(S(s({}, e), { schema: n, model: i }));
1433
1430
  if (c)
1434
1431
  return c;
1435
1432
  }
1436
1433
  return null;
1437
1434
  };
1438
- var Fd = (e) => {
1435
+ var Cd = (e) => {
1439
1436
  let { schema: t, model: r } = e;
1440
- if (lt(t)) {
1441
- if (!$(r))
1437
+ if (mt(t)) {
1438
+ if (!W(r))
1442
1439
  return null;
1443
1440
  let n = Nt(t, r);
1444
1441
  if (n === null || n < 0)
@@ -1446,10 +1443,10 @@ var require_main_min = __commonJS({
1446
1443
  let i = t.oneOf[n];
1447
1444
  return Qe(S(s({}, e), { schema: i }));
1448
1445
  }
1449
- let a = t, o = Jr(a, r);
1446
+ let a = t, o = Xr(a, r);
1450
1447
  return o === null || o < 0 ? null : Qe(S(s({}, e), { schema: a.oneOf[o] }));
1451
1448
  };
1452
- var bd = (e) => {
1449
+ var Fd = (e) => {
1453
1450
  let { schema: t } = e, r = t;
1454
1451
  for (let a of r.allOf) {
1455
1452
  let o = Qe(S(s({}, e), { schema: a }));
@@ -1458,34 +1455,34 @@ var require_main_min = __commonJS({
1458
1455
  }
1459
1456
  return null;
1460
1457
  };
1461
- var Zi = (e, t) => we(e) ? e.title ? e.title : L(e.const) ? e.const : null : jr(t) ? t : null;
1462
- var xd = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
1458
+ var Zi = (e, t) => we(e) ? e.title ? e.title : L(e.const) ? e.const : null : Nr(t) ? t : null;
1459
+ var bd = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
1463
1460
  var Fe = require("react/jsx-runtime");
1464
- function vd({ schema: e, model: t, errors: r, submitted: a, onChange: o }) {
1465
- let [n, i] = (0, Xr.useState)(null), [c, d] = (0, Xr.useState)(() => {
1466
- if (R(t) && !j(t))
1461
+ function xd({ schema: e, model: t, errors: r, submitted: a, onChange: o }) {
1462
+ let [n, i] = (0, Yr.useState)(null), [c, d] = (0, Yr.useState)(() => {
1463
+ if (R(t) && !V(t))
1467
1464
  throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
1468
- return t ? t.map((C) => ao(e.items, C, e == null ? void 0 : e.summary)) : null;
1469
- }), [m, p] = (0, Xr.useState)({ item: null, model: null }), h = (C) => {
1470
- let F = C ? C.map(({ value: g }) => g) : null;
1465
+ return t ? t.map((C) => oo(e.items, C, e == null ? void 0 : e.summary)) : null;
1466
+ }), [m, p] = (0, Yr.useState)({ item: null, model: null }), h = (C) => {
1467
+ let F = C ? C.map(({ value: w }) => w) : null;
1471
1468
  o({ model: F, triggerSchema: e.items, triggerModel: F });
1472
1469
  }, y = () => {
1473
1470
  i("add");
1474
1471
  }, u = (C) => {
1475
1472
  p({ item: C, model: C.value }), i("edit");
1476
1473
  }, l = (C) => {
1477
- var v;
1478
- let F = C === "remove" ? null : ao(e.items, m.model, e == null ? void 0 : e.summary);
1479
- if (C !== "remove" && !G((v = F == null ? void 0 : F.value) != null ? v : null, e.items))
1474
+ var A;
1475
+ let F = C === "remove" ? null : oo(e.items, m.model, e == null ? void 0 : e.summary);
1476
+ if (C !== "remove" && !G((A = F == null ? void 0 : F.value) != null ? A : null, e.items))
1480
1477
  return;
1481
- let g = Ad(C, { originalItem: m.item, updatedItem: F, itemSummaries: c });
1482
- d(g), h(g), p({ item: null, model: null }), i(null);
1478
+ let w = vd(C, { originalItem: m.item, updatedItem: F, itemSummaries: c });
1479
+ d(w), h(w), p({ item: null, model: null }), i(null);
1483
1480
  }, f = () => {
1484
1481
  p({ item: null, model: null }), i(null);
1485
- }, { formatMessage: w } = (0, es.useIntl)();
1486
- return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((C) => (0, Fe.jsx)($i, { item: C, onClick: () => u(C) }, JSON.stringify(C))), (0, Fe.jsx)(Bt.NavigationOption, { media: (0, Fe.jsx)(Qi.Plus, {}), title: e.addItemTitle || w(ht.addItemTitle), showMediaAtAllSizes: true, onClick: y }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || w(ht.addItemTitle), body: (0, Fe.jsx)(Xi, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction: l, onModelChange: ({ model: C }) => p(S(s({}, m), { model: C })) }), onClose: f })] });
1482
+ }, { formatMessage: g } = (0, es.useIntl)();
1483
+ return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((C) => (0, Fe.jsx)(Wi, { item: C, onClick: () => u(C) }, JSON.stringify(C))), (0, Fe.jsx)(Bt.NavigationOption, { media: (0, Fe.jsx)(Qi.Plus, {}), title: e.addItemTitle || g(ht.addItemTitle), showMediaAtAllSizes: true, onClick: y }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || g(ht.addItemTitle), body: (0, Fe.jsx)(Xi, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction: l, onModelChange: ({ model: C }) => p(S(s({}, m), { model: C })) }), onClose: f })] });
1487
1484
  }
1488
- var Ad = (e, { originalItem: t, updatedItem: r, itemSummaries: a }) => {
1485
+ var vd = (e, { originalItem: t, updatedItem: r, itemSummaries: a }) => {
1489
1486
  if (e === "remove")
1490
1487
  return (a || []).filter((o) => o !== t);
1491
1488
  if (!r)
@@ -1499,14 +1496,14 @@ var require_main_min = __commonJS({
1499
1496
  return null;
1500
1497
  }
1501
1498
  };
1502
- var ts = vd;
1503
- var oo = require("react/jsx-runtime");
1499
+ var ts = xd;
1500
+ var no = require("react/jsx-runtime");
1504
1501
  var rs = (e) => {
1505
1502
  let { schema: t } = e;
1506
- if (Jn(t))
1507
- return (0, oo.jsx)(ro, S(s({}, e), { schema: t }));
1503
+ if (_n(t))
1504
+ return (0, no.jsx)(ao, S(s({}, e), { schema: t }));
1508
1505
  if (De(t))
1509
- return (0, oo.jsx)(ts, S(s({}, e), { schema: t }));
1506
+ return (0, no.jsx)(ts, S(s({}, e), { schema: t }));
1510
1507
  throw new Error("Invalid array list schema");
1511
1508
  };
1512
1509
  rs.defaultProps = { errors: null, required: false };
@@ -1519,62 +1516,62 @@ var require_main_min = __commonJS({
1519
1516
  throw new Error("Not implemented");
1520
1517
  };
1521
1518
  os.defaultProps = { required: false };
1522
- var no = os;
1523
- var Yr = require("@transferwise/components");
1519
+ var io = os;
1520
+ var Zr = require("@transferwise/components");
1524
1521
  var is = Ee(Xe());
1525
- var Zr = require("react");
1522
+ var Qr = require("react");
1526
1523
  var le = require("react/jsx-runtime");
1527
- var Od = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1524
+ var Ad = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1528
1525
  function ss(e) {
1529
- let [t, r] = (0, Zr.useState)(() => s({}, ce(e.model, e.schema))), a = (m, p) => {
1526
+ let [t, r] = (0, Qr.useState)(() => s({}, ce(e.model, e.schema))), a = (m, p) => {
1530
1527
  p.model !== null ? t[m] = p.model : delete t[m], r(t), e.onChange(S(s({}, p), { model: t }));
1531
1528
  }, o = (m) => e.schema.required && e.schema.required.includes(m);
1532
- (0, Zr.useEffect)(() => {
1529
+ (0, Qr.useEffect)(() => {
1533
1530
  let m = ce(t, e.schema) || {};
1534
1531
  r(m), Je(m, t) || e.onChange({ model: m, triggerSchema: e.schema, triggerModel: m });
1535
1532
  }, [e.schema]);
1536
1533
  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;
1537
- return (0, le.jsxs)(le.Fragment, { children: [e.schema.alert && (0, le.jsx)(se, { component: e.schema.alert }), (0, le.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, le.jsx)(Yr.Section, { children: (0, le.jsx)(Yr.Header, { title: e.schema.title }) }), e.schema.description && !e.hideTitle && (0, le.jsxs)("p", { children: [" ", e.schema.description, " "] }), (0, le.jsx)("div", { className: "row", children: c.map((m) => (0, le.jsx)("div", { className: (0, is.default)(Od(e.schema.properties[m].width)), children: (0, le.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)) })] })] });
1534
+ return (0, le.jsxs)(le.Fragment, { children: [e.schema.alert && (0, le.jsx)(se, { component: e.schema.alert }), (0, le.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, le.jsx)(Zr.Section, { children: (0, le.jsx)(Zr.Header, { title: e.schema.title }) }), e.schema.description && !e.hideTitle && (0, le.jsxs)("p", { children: [" ", e.schema.description, " "] }), (0, le.jsx)("div", { className: "row", children: c.map((m) => (0, le.jsx)("div", { className: (0, is.default)(Ad(e.schema.properties[m].width)), children: (0, le.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)) })] })] });
1538
1535
  }
1539
1536
  ss.defaultProps = { hideTitle: false, disabled: false };
1540
1537
  var mr = ss;
1541
1538
  var Cs = require("@transferwise/components");
1542
1539
  var Fs = Ee(Xe());
1543
1540
  var Ne = require("react");
1544
- var Qr = require("@transferwise/components");
1541
+ var ea = require("@transferwise/components");
1545
1542
  var ls = require("react-intl");
1546
1543
  var cs = require("react-intl");
1547
1544
  var ms = (0, cs.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
1548
- var io = require("react/jsx-runtime");
1549
- function Pd(e) {
1545
+ var so = require("react/jsx-runtime");
1546
+ function Od(e) {
1550
1547
  let t = (0, ls.useIntl)();
1551
- return (0, io.jsx)(Qr.Info, { className: "m-l-1", content: (0, io.jsx)(Qr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(ms.helpAria) });
1548
+ return (0, so.jsx)(ea.Info, { className: "m-l-1", content: (0, so.jsx)(ea.Markdown, { config: { link: { target: "_blank" } }, children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(ms.helpAria) });
1552
1549
  }
1553
- var qe = Pd;
1550
+ var qe = Od;
1554
1551
  var ws = require("react");
1555
- var _ = require("@transferwise/components");
1552
+ var K = require("@transferwise/components");
1556
1553
  var fs = require("react");
1557
1554
  var zt = (e, t = {}) => {
1558
1555
  let { coerceValue: r = false } = t;
1559
- if (!I(e)) {
1556
+ if (!D(e)) {
1560
1557
  if (R(e)) {
1561
1558
  gt({ received: "object", expected: "string" });
1562
1559
  return;
1563
1560
  }
1564
1561
  if (!L(e)) {
1565
1562
  if (r)
1566
- return co({ received: typeof e, expected: "string" }), String(e);
1563
+ return mo({ received: typeof e, expected: "string" }), String(e);
1567
1564
  gt({ received: typeof e, expected: "string" });
1568
1565
  return;
1569
1566
  }
1570
1567
  return e;
1571
1568
  }
1572
1569
  };
1573
- var so = (e, t = {}) => {
1570
+ var co = (e, t = {}) => {
1574
1571
  let { coerceValue: r = false } = t;
1575
- if (I(e))
1572
+ if (D(e))
1576
1573
  return;
1577
- if (z(e))
1574
+ if (j(e))
1578
1575
  return e;
1579
1576
  let a = { received: typeof e, expected: "string or number" };
1580
1577
  if (R(e)) {
@@ -1583,7 +1580,7 @@ var require_main_min = __commonJS({
1583
1580
  }
1584
1581
  if (!L(e)) {
1585
1582
  if (r)
1586
- return co(a), String(e);
1583
+ return mo(a), String(e);
1587
1584
  gt(a);
1588
1585
  return;
1589
1586
  }
@@ -1591,18 +1588,18 @@ var require_main_min = __commonJS({
1591
1588
  };
1592
1589
  var ds = (e, t = {}) => {
1593
1590
  let { coerceValue: r = false } = t;
1594
- if (I(e))
1591
+ if (D(e))
1595
1592
  return false;
1596
1593
  if (!Ie(e)) {
1597
1594
  if (r)
1598
- return co({ received: typeof e, expected: "boolean" }), !!e;
1595
+ return mo({ received: typeof e, expected: "boolean" }), !!e;
1599
1596
  gt({ received: typeof e, expected: "boolean" });
1600
1597
  return;
1601
1598
  }
1602
1599
  return e;
1603
1600
  };
1604
1601
  var us = (e) => {
1605
- if (!I(e)) {
1602
+ if (!D(e)) {
1606
1603
  if (!(e instanceof Date) && !L(e)) {
1607
1604
  gt({ received: typeof e, expected: "string or Date" });
1608
1605
  return;
@@ -1611,31 +1608,31 @@ var require_main_min = __commonJS({
1611
1608
  }
1612
1609
  };
1613
1610
  var ps = (e) => {
1614
- if (I(e))
1611
+ if (D(e))
1615
1612
  return null;
1616
1613
  if (!L(e))
1617
1614
  return gt({ received: typeof e, expected: "string", fallback: "null" }), null;
1618
- let t = qn(e);
1615
+ let t = Un(e);
1619
1616
  return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
1620
1617
  };
1621
- var co = ({ received: e, expected: t }) => {
1618
+ var mo = ({ received: e, expected: t }) => {
1622
1619
  console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Type will be coerced, but this behaviour will change in the future, so please fix your code.`);
1623
1620
  };
1624
1621
  var gt = ({ received: e, expected: t, fallback: r = "undefined" }) => {
1625
1622
  console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Falling back to ${r}`);
1626
1623
  };
1627
- var mo = (e) => {
1624
+ var lo = (e) => {
1628
1625
  let t = e.filter((r) => ys[r]);
1629
1626
  return t.length === 0 ? "off" : t.map((r) => ys[r]).join(" ");
1630
1627
  };
1631
1628
  var ys = { on: "on", name: "name", "name-prefix": "honorific-prefix", "given-name": "given-name", "additional-name": "additional-name", "family-name": "family-name", "name-suffix": "honorific-suffix", nickname: "nickname", email: "email", "new-username": "username", username: "username", "new-password": "new-password", password: "current-password", "one-time-code": "one-time-code", "job-title": "organization-title", "organization-name": "organization", "full-street-address": "street-address", "street-address-line-1": "address-line1", "street-address-line-2": "address-line2", "street-address-line-3": "address-line3", "address-level-1": "address-level1", "address-level-2": "address-level2", "address-level-3": "address-level3", "address-level-4": "address-level4", "country-code": "country", "country-name": "country-name", "postal-code": "postal-code", "credit-card-name": "cc-name", "credit-card-given-name": "cc-given-name", "credit-card-middle-name": "cc-additional-name", "credit-card-family-name": "cc-family-name", "credit-card-number": "cc-number", "credit-card-expiration": "cc-exp", "credit-card-expiration-month": "cc-exp-month", "credit-card-expiration-year": "cc-exp-year", "credit-card-security-code": "cc-csc", "credit-card-type": "cc-type", "transaction-currency": "transaction-currency", "transaction-amount": "transaction-amount", language: "language", birthdate: "bday", "birthdate-day": "bday-day", "birthdate-month": "bday-month", "birthdate-year": "bday-year", gender: "sex", "phone-number": "tel", "phone-country-code": "tel-country-code", "phone-national": "tel-national", "phone-area-code": "tel-area-code", "phone-local": "tel-local", "phone-local-prefix": "tel-local-prefix", "phone-local-suffix": "tel-local-suffix", "phone-extension": "tel-extension", url: "url", photo: "photo", impp: "impp", shipping: "shipping", billing: "billing", home: "home", work: "work", mobile: "mobile", fax: "fax", pager: "pager" };
1632
- var Z = require("react/jsx-runtime");
1629
+ var Q = require("react/jsx-runtime");
1633
1630
  var be = class be extends fs.PureComponent {
1634
1631
  constructor(r) {
1635
1632
  super(r);
1636
1633
  this.getAutocompleteValue = () => {
1637
1634
  let { autoComplete: r2, autocompleteHint: a } = this.props;
1638
- return j(a) ? mo(a) : r2 === true ? "on" : "off";
1635
+ return V(a) ? lo(a) : r2 === true ? "on" : "off";
1639
1636
  };
1640
1637
  this.handleOnChange = (r2) => {
1641
1638
  this.props.onChange(r2);
@@ -1660,60 +1657,60 @@ var require_main_min = __commonJS({
1660
1657
  if (this.props.value !== null && typeof this.props.value != "undefined")
1661
1658
  return r2.find((a) => this.props.value === a.value);
1662
1659
  };
1663
- this.mapOption = (r2) => S(s({}, r2), { value: z(r2.value) || L(r2.value) ? r2.value : void 0, secondary: r2.note, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
1660
+ this.mapOption = (r2) => S(s({}, r2), { value: j(r2.value) || L(r2.value) ? r2.value : void 0, secondary: r2.note, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
1664
1661
  this.state = { selectedOption: r.selectedOption, touched: false, prevValue: r.value };
1665
1662
  }
1666
1663
  static getDerivedStateFromProps(r, a) {
1667
1664
  return a.prevValue !== r.value ? { prevValue: r.value, value: r.value } : null;
1668
1665
  }
1669
1666
  render() {
1670
- var ee;
1671
- 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: C, size: F, uploadProps: g, label: v, monthFormat: O, id: x, minDate: M, maxDate: E, value: P, mode: D, describedBy: U } = this.props;
1667
+ var _;
1668
+ 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: g, onSearchChange: C, size: F, uploadProps: w, label: A, monthFormat: M, id: x, minDate: k, maxDate: I, value: O, mode: P, describedBy: B } = this.props;
1672
1669
  switch (i) {
1673
1670
  case N.RADIO:
1674
- return (0, Z.jsx)(_.RadioGroup, { radios: c.map(this.mapOption), name: r, selectedValue: so(P, { coerceValue: true }), onChange: this.handleOnChange });
1671
+ return (0, Q.jsx)(K.RadioGroup, { radios: c.map(this.mapOption), name: r, selectedValue: co(O, { coerceValue: true }), onChange: this.handleOnChange });
1675
1672
  case N.CHECKBOX:
1676
- return (0, Z.jsx)(_.Checkbox, { checked: ds(P, { coerceValue: true }), disabled: d, label: v, required: p, readOnly: m, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
1673
+ return (0, Q.jsx)(K.Checkbox, { checked: ds(O, { coerceValue: true }), disabled: d, label: A, required: p, readOnly: m, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
1677
1674
  case N.SELECT: {
1678
- let A = c.length >= 20;
1679
- 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) => {
1680
- var k;
1681
- this.setState({ selectedOption: B != null ? B : void 0 }), this.props.onChange((k = B == null ? void 0 : B.value) != null ? k : null);
1682
- }, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: A ? C : void 0 });
1675
+ let v = c.length >= 20;
1676
+ return (0, Q.jsx)(K.Select, { id: x, selected: this.getSelectedOption(c), options: c, search: v, required: p, disabled: d, placeholder: a, searchPlaceholder: f, searchValue: g, onChange: (z) => {
1677
+ var E;
1678
+ this.setState({ selectedOption: z != null ? z : void 0 }), this.props.onChange((E = z == null ? void 0 : z.value) != null ? E : null);
1679
+ }, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: v ? C : void 0 });
1683
1680
  }
1684
1681
  case N.TAB:
1685
- return (0, Z.jsx)(_.Tabs, { selected: ((ee = this.getSelectedOption(c)) == null ? void 0 : ee.value) || 0, tabs: c.map((A) => ({ title: A.label, content: (0, Z.jsx)(Z.Fragment, {}), disabled: A.disabled || false })), name: x, onTabSelect: (A) => {
1686
- let B = !!this.state.selectedOption;
1687
- this.setState({ selectedOption: c.find((k) => k.value === A) }), this.props.onChange(A, B ? "user" : "init");
1682
+ return (0, Q.jsx)(K.Tabs, { selected: ((_ = this.getSelectedOption(c)) == null ? void 0 : _.value) || 0, tabs: c.map((v) => ({ title: v.label, content: (0, Q.jsx)(Q.Fragment, {}), disabled: v.disabled || false })), name: x, onTabSelect: (v) => {
1683
+ let z = !!this.state.selectedOption;
1684
+ this.setState({ selectedOption: c.find((E) => E.value === v) }), this.props.onChange(v, z ? "user" : "init");
1688
1685
  } });
1689
1686
  case N.NUMERIC:
1690
1687
  case N.NUMBER:
1691
- 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: so(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (A) => {
1692
- i === N.NUMERIC ? this.props.onChange(A.target.value) : this.props.onChange(parseFloat(A.target.value));
1693
- }, onFocus: this.handleOnFocus, onWheel: (A) => {
1694
- A.target instanceof HTMLElement && A.target.blur();
1695
- }, "aria-describedby": U });
1688
+ return (0, Q.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: co(O, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (v) => {
1689
+ i === N.NUMERIC ? this.props.onChange(v.target.value) : this.props.onChange(parseFloat(v.target.value));
1690
+ }, onFocus: this.handleOnFocus, onWheel: (v) => {
1691
+ v.target instanceof HTMLElement && v.target.blur();
1692
+ }, "aria-describedby": B });
1696
1693
  case N.HIDDEN:
1697
- return (0, Z.jsx)("input", { type: "hidden", name: r, value: zt(P, { coerceValue: true }), id: x });
1694
+ return (0, Q.jsx)("input", { type: "hidden", name: r, value: zt(O, { coerceValue: true }), id: x });
1698
1695
  case N.PASSWORD:
1699
- 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 });
1696
+ return (0, Q.jsx)("input", { autoComplete: this.getAutocompleteValue(), className: "form-control", disabled: d, id: x, placeholder: a, readOnly: m, required: p, type: "password", value: zt(O, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus, "aria-describedby": B });
1700
1697
  case N.DATE:
1701
1698
  case N.DATETIME:
1702
- return (0, Z.jsx)(_.DateInput, { disabled: d, size: F, value: us(P), mode: D, monthFormat: O, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
1699
+ return (0, Q.jsx)(K.DateInput, { disabled: d, size: F, value: us(O), mode: P, monthFormat: M, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
1703
1700
  case N.DATELOOKUP:
1704
- return (0, Z.jsx)(_.DateLookup, { value: ps(P), min: M, max: E, placeholder: a, monthFormat: O, disabled: d, onChange: (A) => {
1705
- this.handleOnChange(Gn(A));
1701
+ return (0, Q.jsx)(K.DateLookup, { value: ps(O), min: k, max: I, placeholder: a, monthFormat: M, disabled: d, onChange: (v) => {
1702
+ this.handleOnChange(Hn(v));
1706
1703
  }, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
1707
1704
  case N.TEL:
1708
- 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 });
1705
+ return (0, Q.jsx)(K.PhoneNumberInput, { disabled: d, countryCode: n, placeholder: a, required: p, searchPlaceholder: f, size: F, initialValue: zt(O), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
1709
1706
  case N.TEXTAREA: {
1710
- 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() };
1711
- return this.props.displayPattern ? (0, Z.jsx)(_.TextareaWithDisplayFormat, S(s({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, Z.jsx)("textarea", S(s({}, A), { onChange: this.handleInputOnChange, "aria-describedby": U }));
1707
+ let v = { className: "form-control tw-form-control", id: x, name: r, placeholder: a, value: zt(O, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteValue() };
1708
+ return this.props.displayPattern ? (0, Q.jsx)(K.TextareaWithDisplayFormat, S(s({ displayPattern: this.props.displayPattern }, v), { onChange: this.handleOnChange })) : (0, Q.jsx)("textarea", S(s({}, v), { onChange: this.handleInputOnChange, "aria-describedby": B }));
1712
1709
  }
1713
1710
  case N.FILE:
1714
1711
  case N.UPLOAD:
1715
- return (0, Z.jsx)(_.Upload, S(s({}, g), { usAccept: g.usAccept || "*", usDisabled: g.usDisabled || d, onSuccess: (A) => {
1716
- this.handleOnChange(A);
1712
+ return (0, Q.jsx)(K.Upload, S(s({}, w), { usAccept: w.usAccept || "*", usDisabled: w.usDisabled || d, onSuccess: (v) => {
1713
+ this.handleOnChange(v);
1717
1714
  }, onFailure: () => {
1718
1715
  this.handleOnChange(null);
1719
1716
  }, onCancel: () => {
@@ -1722,8 +1719,8 @@ var require_main_min = __commonJS({
1722
1719
  case N.TEXT:
1723
1720
  case N.EMAIL:
1724
1721
  default: {
1725
- 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() };
1726
- return this.props.displayPattern ? (0, Z.jsx)(_.InputWithDisplayFormat, S(s({ displayPattern: this.props.displayPattern }, A), { onChange: this.handleOnChange })) : (0, Z.jsx)("input", S(s({}, A), { onChange: this.handleInputOnChange, "aria-describedby": U }));
1722
+ let v = { type: i === N.EMAIL ? "email" : "text", className: "form-control", id: x, name: r, placeholder: a, value: zt(O, { coerceValue: true }), readOnly: m, required: p, minLength: h, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteValue() };
1723
+ return this.props.displayPattern ? (0, Q.jsx)(K.InputWithDisplayFormat, S(s({ displayPattern: this.props.displayPattern }, v), { onChange: this.handleOnChange })) : (0, Q.jsx)("input", S(s({}, v), { onChange: this.handleInputOnChange, "aria-describedby": B }));
1727
1724
  }
1728
1725
  }
1729
1726
  }
@@ -1735,97 +1732,97 @@ var require_main_min = __commonJS({
1735
1732
  var hs = (e, t) => {
1736
1733
  switch (t) {
1737
1734
  case "select":
1738
- return kd(e);
1735
+ return Md(e);
1739
1736
  case "radio":
1740
1737
  default:
1741
- return Md(e);
1738
+ return Pd(e);
1742
1739
  }
1743
1740
  };
1744
- var Md = (e) => s(s(s({ label: e.title, value: e.const }, Td(e.title, e.description)), Vt(e)), gs(e.disabled));
1745
- var kd = (e) => s(s(s(s(s({ label: e.title, value: e.const }, Ld(e.title, e.description)), Dd(e.icon)), Id(e.image)), gs(e.disabled)), Ed(e.keywords));
1746
- var Ed = (e) => j(e) ? { searchStrings: e } : {};
1747
- var Id = (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;
1748
- var Dd = (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;
1749
- 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;
1750
- var ea = ({ accepts: e }) => s({}, j(e) && { usAccept: e.join(",") });
1751
- var Ld = (e, t) => {
1741
+ var Pd = (e) => s(s(s({ label: e.title, value: e.const }, Ld(e.title, e.description)), Vt(e)), gs(e.disabled));
1742
+ 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)), gs(e.disabled)), kd(e.keywords));
1743
+ var kd = (e) => V(e) ? { searchStrings: e } : {};
1744
+ 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;
1745
+ var Id = (e) => e != null && e.name && Lt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && Ka(e.name) ? { icon: (0, xe.jsx)(Ye, { type: e.name }) } : e != null && e.text ? { icon: (0, xe.jsx)("span", { children: e.text }) } : null;
1746
+ 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 && Ka(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;
1747
+ var ta = ({ accepts: e }) => s({}, V(e) && { usAccept: e.join(",") });
1748
+ var Dd = (e, t) => {
1752
1749
  if (e && t)
1753
1750
  return { [(e + t).length > 50 ? "secondary" : "note"]: t };
1754
1751
  };
1755
- var Td = (e, t) => {
1752
+ var Ld = (e, t) => {
1756
1753
  if (e && t)
1757
1754
  return { note: t };
1758
1755
  };
1759
1756
  var gs = (e) => {
1760
- if (!Y(e) && !I(e))
1757
+ if (!Z(e) && !D(e))
1761
1758
  return { disabled: e };
1762
1759
  };
1763
- var lo = require("react/jsx-runtime");
1764
- var Rd = (e) => e === "string" || e === "number";
1765
- var uo = (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) ? Nd(e) : "control" in e && e.control ? e.control : e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
1766
- var Nd = ({ format: e, control: t }) => t ? Bd[t] || t : e && zd[e] || "text";
1767
- var Bd = { "date-lookup": "date-lookup", password: "password", textarea: "textarea", email: "email", numeric: "numeric", "phone-number": "tel" };
1768
- var zd = { date: "date", email: "email", base64url: "file", password: "password", "phone-number": "tel" };
1769
- var jd = (e, t) => e.oneOf ? e.oneOf.map((r) => hs(r, t)) : null;
1760
+ var uo = require("react/jsx-runtime");
1761
+ var Td = (e) => e === "string" || e === "number";
1762
+ var po = (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 : Dr(e) ? Rd(e) : "control" in e && e.control ? e.control : e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
1763
+ var Rd = ({ format: e, control: t }) => t ? Nd[t] || t : e && Bd[e] || "text";
1764
+ var Nd = { "date-lookup": "date-lookup", password: "password", textarea: "textarea", email: "email", numeric: "numeric", "phone-number": "tel" };
1765
+ var Bd = { date: "date", email: "email", base64url: "file", password: "password", "phone-number": "tel" };
1766
+ var zd = (e, t) => e.oneOf ? e.oneOf.map((r) => hs(r, t)) : null;
1770
1767
  function Ss(e) {
1771
- let { id: t, schema: r, value: a, disabled: o, onChange: n, onFocus: i, onBlur: c, onSearchChange: d, describedBy: m } = e, p = Mt(), h = (F) => Rd(r.type) && (I(F) || Y(F)) ? "" : F, y = (F, g) => {
1772
- n($e(F, r), g);
1773
- }, u = uo(r);
1768
+ 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) && (D(F) || Z(F)) ? "" : F, y = (F, w) => {
1769
+ n(We(F, r), w);
1770
+ }, u = po(r);
1774
1771
  (0, ws.useEffect)(() => {
1775
- Vd(r, p, u);
1772
+ jd(r, p, u);
1776
1773
  }, [JSON.stringify(r), p, u]);
1777
- let l = r.values || jd(r, u), f = { onFocus: i, onBlur: c, onSearchChange: d, onChange: y }, w = h(a), C = { 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: ea(r), describedBy: m };
1778
- return (0, lo.jsx)("div", { "aria-describedby": m, children: (0, lo.jsx)(jt, s(s({ type: u, value: w }, f), C)) });
1774
+ let l = r.values || zd(r, u), f = { onFocus: i, onBlur: c, onSearchChange: d, onChange: y }, g = h(a), C = { 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: ta(r), describedBy: m };
1775
+ return (0, uo.jsx)("div", { "aria-describedby": m, children: (0, uo.jsx)(jt, s(s({ type: u, value: g }, f), C)) });
1779
1776
  }
1780
1777
  Ss.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
1781
- var Vd = (e, t, r) => {
1778
+ var jd = (e, t, r) => {
1782
1779
  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.");
1783
1780
  };
1784
1781
  var lr = Ss;
1785
- var Q = require("react/jsx-runtime");
1782
+ var ee = require("react/jsx-runtime");
1786
1783
  function bs(e) {
1787
- 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)(Gd(e.model, e.schema.oneOf)), u = ei(t, 200), l = (M) => {
1788
- u("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: M.length });
1784
+ 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)(Xr(e.schema, e.model)), [h, y] = (0, Ne.useState)(qd(e.model, e.schema.oneOf)), u = Zn(t, 200), l = (k) => {
1785
+ u("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: k.length });
1789
1786
  };
1790
1787
  if ((0, Ne.useEffect)(() => {
1791
- let M = cr(e.schema, e.model), E = cr(e.schema, e.schema.default);
1792
- M === -1 && E >= 0 && F(E, "init");
1793
- }, [e.schema]), !j(e.schema.oneOf))
1788
+ let k = cr(e.schema, e.model), I = cr(e.schema, e.schema.default);
1789
+ k === -1 && I >= 0 && F(I, "init");
1790
+ }, [e.schema]), !V(e.schema.oneOf))
1794
1791
  return console.error("Incorrect format", e.schema), null;
1795
- let f = (M, E) => {
1796
- y([...h.slice(0, M), E.model, ...h.slice(M + 1)]), a(true), e.onChange(E);
1797
- }, w = () => {
1792
+ let f = (k, I) => {
1793
+ y([...h.slice(0, k), I.model, ...h.slice(k + 1)]), a(true), e.onChange(I);
1794
+ }, g = () => {
1798
1795
  n(true);
1799
1796
  }, C = () => {
1800
1797
  n(false), c(true);
1801
- }, F = (M, E) => {
1802
- p(M);
1803
- let P = e.schema.oneOf[M];
1804
- if (we(P)) {
1805
- let D = P.const;
1806
- e.onChange({ model: D, triggerSchema: e.schema, triggerModel: D, type: E });
1798
+ }, F = (k, I) => {
1799
+ p(k);
1800
+ let O = e.schema.oneOf[k];
1801
+ if (we(O)) {
1802
+ let P = O.const;
1803
+ e.onChange({ model: P, triggerSchema: e.schema, triggerModel: P, type: I });
1807
1804
  } else
1808
- e.onChange({ model: h[M], triggerSchema: P, triggerModel: h[M], type: E });
1809
- E !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: P == null ? void 0 : P.analyticsId });
1810
- }, g = Wd(e.schema), v = Hd(e, m), O = { "form-group": true, "has-error": !r && e.errors && !kt(e.errors) || (e.submitted || r && i) && v.length }, x = `${d}-feedback`;
1811
- 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, Fs.default)(O), children: [Ud(e.schema, d), (0, Q.jsx)(lr, { id: d, schema: g, value: m, disabled: e.disabled, describedBy: x, onChange: F, onFocus: w, onBlur: C, onSearchChange: l }), (0, Q.jsx)(He, { id: x, changed: r, focused: o, blurred: i, submitted: e.submitted, errors: qd(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 })] });
1805
+ e.onChange({ model: h[k], triggerSchema: O, triggerModel: h[k], type: I });
1806
+ I !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: O == null ? void 0 : O.analyticsId });
1807
+ }, w = Gd(e.schema), A = Ud(e, m), M = { "form-group": true, "has-error": !r && e.errors && !kt(e.errors) || (e.submitted || r && i) && A.length }, x = `${d}-feedback`;
1808
+ return (0, ee.jsxs)(ee.Fragment, { children: [(e.schema.oneOf.length > 1 || we(e.schema.oneOf[0])) && (0, ee.jsxs)(ee.Fragment, { children: [e.schema.alert && (0, ee.jsx)(se, { component: e.schema.alert }), (0, ee.jsxs)("div", { className: (0, Fs.default)(M), children: [Vd(e.schema, d), (0, ee.jsx)(lr, { id: d, schema: w, value: m, disabled: e.disabled, describedBy: x, onChange: F, onFocus: g, onBlur: C, onSearchChange: l }), (0, ee.jsx)(He, { id: x, changed: r, focused: o, blurred: i, submitted: e.submitted, errors: Hd(e.errors), schema: e.schema, validations: A, infoMessage: null })] })] }), tr(e.schema.oneOf[m]) && (0, ee.jsx)(me, { schema: e.schema.oneOf[m], model: h[m], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (k) => f(m, k), onPersistAsync: e.onPersistAsync })] });
1812
1809
  }
1813
- function Ud(e, t) {
1810
+ function Vd(e, t) {
1814
1811
  var o;
1815
- 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 : "" }) });
1812
+ let r = e.help ? (0, ee.jsx)(qe, { help: e.help }) : null, a = we(e.oneOf[0]) ? (0, ee.jsx)("div", { className: "m-b-1", children: (0, ee.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) }) : (0, ee.jsx)(ee.Fragment, { children: r ? (0, ee.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] }) : (0, ee.jsx)(Cs.Header, { title: (o = e.title) != null ? o : "" }) });
1816
1813
  return e.title ? a : r;
1817
1814
  }
1818
- function Hd(e, t) {
1815
+ function Ud(e, t) {
1819
1816
  let r = e.schema.oneOf[t != null ? t : -1];
1820
1817
  return we(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
1821
1818
  }
1822
- function qd(e) {
1819
+ function Hd(e) {
1823
1820
  return typeof e == "string" ? e : null;
1824
1821
  }
1825
- function Gd(e, t) {
1822
+ function qd(e, t) {
1826
1823
  return t.map((r) => Et(e, r));
1827
1824
  }
1828
- function Wd(e) {
1825
+ function Gd(e) {
1829
1826
  return S(s({}, e), { oneOf: e.oneOf.map($d) });
1830
1827
  }
1831
1828
  function $d(e, t) {
@@ -1833,55 +1830,55 @@ var require_main_min = __commonJS({
1833
1830
  return { title: r, description: a, disabled: o, icon: n, image: i, const: t, keywords: c };
1834
1831
  }
1835
1832
  bs.defaultProps = { required: false, disabled: false };
1836
- var po = bs;
1833
+ var yo = bs;
1837
1834
  var Os = Ee(Xe());
1838
1835
  var wt = require("react");
1839
- var ta = require("@transferwise/components");
1836
+ var ra = require("@transferwise/components");
1840
1837
  var xs = require("react");
1841
1838
  var As = require("react/jsx-runtime");
1842
1839
  function vs(e) {
1843
- 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, xs.useMemo)(() => o ? [{ id: o, status: ta.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((C) => ({ id: C[n] }))) : (p == null || p({ response: w }), Promise.reject())));
1844
- return (0, As.jsx)(ta.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()) });
1840
+ 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, xs.useMemo)(() => o ? [{ id: o, status: ra.Status.SUCCEEDED }] : [], [o]), l = (f) => (y("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(String(a.url), { method: a.method || "POST", body: f }).then((g) => g.ok ? (m == null || m(g.clone()), g.json().then((C) => ({ id: C[n] }))) : (p == null || p({ response: g }), Promise.reject())));
1841
+ return (0, As.jsx)(ra.UploadInput, { id: t, fileInputName: a.fileInputName, files: u, uploadButtonTitle: e.usLabel, sizeLimit: c ? Lr(c) : void 0, fileTypes: i, description: d, onUploadFile: l, onDeleteFile: (f) => (h == null || h(), Promise.resolve()) });
1845
1842
  }
1846
1843
  var Ut = require("react/jsx-runtime");
1847
1844
  function Ps(e) {
1848
- 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();
1845
+ let { model: t, schema: r, submitted: a, required: o, errors: n, onChange: i } = e, [c, d] = (0, wt.useState)({}), [m, p] = (0, wt.useState)(null), [h, y] = (0, wt.useState)([]), [u, l] = (0, wt.useState)(false), f = ae(), g = re();
1849
1846
  (0, wt.useEffect)(() => {
1850
- e.submitted && i(_e(e.model, e.schema, !!e.required));
1851
- }, [e.model, e.submitted]);
1852
- let y = async (O, x) => {
1853
- let M = await O.json(), E = ho(e.schema.persistAsync.idProperty, M);
1854
- e.onChange({ model: E, triggerSchema: e.schema, triggerModel: E }), d(true), p("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
1855
- }, u = async (O) => {
1856
- if (O.response && Lr(O.response.status)) {
1857
- let x = await O.response.json();
1858
- r(x.validation || {}), o([e.schema.persistAsync.param]);
1847
+ y(a ? _e(t, r, !!o) : []);
1848
+ }, [t, r, a, o]);
1849
+ let C = async (P, B) => {
1850
+ let _ = await P.json(), v = go(r.persistAsync.idProperty, _);
1851
+ i({ model: v, triggerSchema: r, triggerModel: v }), l(true), g("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id });
1852
+ }, F = async (P) => {
1853
+ if (P.response && Er(P.response.status)) {
1854
+ let B = await P.response.json();
1855
+ d(B.validation || {}), p([r.persistAsync.param]);
1859
1856
  }
1860
- e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true), p("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
1861
- }, l = () => {
1862
- o(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true);
1863
- }, { url: f, method: w } = e.schema.persistAsync, C = a || n, F = { "form-group": true, "has-error": (e.submitted || c) && !!C.length }, g = e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, v = `${g}-feedback`;
1864
- return (0, Ut.jsxs)("div", { className: (0, Os.default)(F), children: [(0, Ut.jsx)("div", { "aria-describedby": v, children: (0, Ut.jsx)(vs, 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 }, ea(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: C, validationMessages: s({ required: "Value is required..." }, t), infoMessage: null })] });
1857
+ i({ model: null, triggerSchema: r, triggerModel: null }), l(true), g("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id });
1858
+ }, w = () => {
1859
+ p(null), i({ model: null, triggerSchema: r, triggerModel: null }), l(true);
1860
+ }, { url: A, method: M } = r.persistAsync, x = m || h, k = { "form-group": true, "has-error": (a || u) && !!x.length }, I = r.$id || r.persistAsync.schema.$id || r.persistAsync.idProperty, O = `${I}-feedback`;
1861
+ return (0, Ut.jsxs)("div", { className: (0, Os.default)(k), children: [(0, Ut.jsx)("div", { "aria-describedby": O, children: (0, Ut.jsx)(vs, s({ id: I, fileId: t, idProperty: r.persistAsync.idProperty, animationDelay: 0, maxSize: r.persistAsync.schema.maxSize, usLabel: r.title || r.persistAsync.schema.title, usPlaceholder: r.description || r.persistAsync.schema.description, httpOptions: { url: A, method: M, fileInputName: r.persistAsync.param }, httpClient: f, onSuccess: C, onFailure: F, onCancel: w }, ta(r.persistAsync.schema))) }), (0, Ut.jsx)(He, { id: O, blurred: true, focused: false, changed: u, submitted: a, errors: n, schema: r, validations: x, validationMessages: s({ required: "Value is required..." }, c), infoMessage: null })] });
1865
1862
  }
1866
1863
  Ps.defaultProps = { required: false };
1867
- var fo = Ps;
1868
- var go = require("react/jsx-runtime");
1864
+ var ho = Ps;
1865
+ var wo = require("react/jsx-runtime");
1869
1866
  function Ms(e) {
1870
1867
  let { schema: t } = e;
1871
- return t.persistAsync.schema.type === "blob" ? (0, go.jsx)(fo, s({}, e)) : (0, go.jsx)(yo, s({}, e));
1868
+ return t.persistAsync.schema.type === "blob" ? (0, wo.jsx)(ho, s({}, e)) : (0, wo.jsx)(fo, s({}, e));
1872
1869
  }
1873
1870
  Ms.defaultProps = { required: false };
1874
- var wo = Ms;
1871
+ var So = Ms;
1875
1872
  var zs = require("react");
1876
1873
  var ks = (e, t) => {
1877
1874
  let r = Nt(e, t);
1878
1875
  return r !== null ? e.oneOf[r].promoted ? "promoted" : "other" : null;
1879
1876
  };
1880
1877
  var Es = require("@transferwise/components");
1881
- var So = require("react/jsx-runtime");
1878
+ var Co = require("react/jsx-runtime");
1882
1879
  var Is = (e) => {
1883
1880
  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;
1884
- return (0, So.jsx)("div", { className: "form-group", children: (0, So.jsx)(Es.Checkbox, { id: t, label: c, checked: p, onChange: () => {
1881
+ return (0, Co.jsx)("div", { className: "form-group", children: (0, Co.jsx)(Es.Checkbox, { id: t, label: c, checked: p, onChange: () => {
1885
1882
  a(p ? m : d);
1886
1883
  } }) });
1887
1884
  };
@@ -1911,144 +1908,144 @@ var require_main_min = __commonJS({
1911
1908
  var Bs = Ns;
1912
1909
  var Ge = require("react/jsx-runtime");
1913
1910
  var js = (e) => e.promoted === true;
1914
- var _d = (e) => {
1911
+ var Wd = (e) => {
1915
1912
  var c;
1916
- let [t, r] = (0, zs.useState)(ks(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), a = e.schema.alert, o = e.schema.oneOf.find(js), n = Kd(o), i = Jd(e.schema);
1913
+ let [t, r] = (0, zs.useState)(ks(e.schema, e.model) || ((c = e.schema.promotion) == null ? void 0 : c.default) || "promoted"), a = e.schema.alert, o = e.schema.oneOf.find(js), n = _d(o), i = Kd(e.schema);
1917
1914
  return (0, Ge.jsxs)(Ge.Fragment, { children: [a && (0, Ge.jsx)(se, { component: a }), (0, Ge.jsx)(Bs, { id: e.schema.$id, title: e.schema.title, promotedOneOf: o, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ge.jsx)(mr, S(s({}, e), { schema: n })), t === "other" && (0, Ge.jsx)(me, S(s({}, e), { schema: i }))] });
1918
1915
  };
1919
- function Kd(e) {
1916
+ function _d(e) {
1920
1917
  return S(s({}, e), { title: void 0, description: void 0 });
1921
1918
  }
1922
- function Jd(e) {
1919
+ function Kd(e) {
1923
1920
  var a, o, n;
1924
1921
  let t = (a = e.promotion) != null && a.displayTwice ? [...e.oneOf] : e.oneOf.filter((i) => !js(i)), r = (n = (o = e.promotion) == null ? void 0 : o.other.heading) == null ? void 0 : n.text;
1925
1922
  return t.length === 1 ? S(s({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
1926
1923
  }
1927
- var Co = _d;
1928
- var ra = require("@transferwise/components");
1924
+ var Fo = Wd;
1925
+ var aa = require("@transferwise/components");
1929
1926
  var Us = require("react-intl");
1930
1927
  var Vs = require("react-intl");
1931
- var Fo = (0, Vs.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." } });
1928
+ var bo = (0, Vs.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." } });
1932
1929
  var qt = require("react/jsx-runtime");
1933
- function Xd({ schema: e, model: t }) {
1934
- let { title: r = "" } = e, { formatMessage: a } = (0, Us.useIntl)(), o = Yd({ schema: e, model: t, formatMessage: a });
1935
- return (0, qt.jsx)(ra.DefinitionList, { layout: ra.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: o, key: "" }] });
1930
+ function Jd({ schema: e, model: t }) {
1931
+ let { title: r = "" } = e, { formatMessage: a } = (0, Us.useIntl)(), o = Xd({ schema: e, model: t, formatMessage: a });
1932
+ return (0, qt.jsx)(aa.DefinitionList, { layout: aa.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: o, key: "" }] });
1936
1933
  }
1937
- var bo = Xd;
1938
- function Yd({ schema: e, model: t, formatMessage: r }) {
1939
- return Ve(e) ? ge(e) ? Zd(e, t) : e.type === "boolean" && Ie(t) ? r(t ? Fo.yes : Fo.no) : t && t.toString() || "" : "";
1934
+ var xo = Jd;
1935
+ function Xd({ schema: e, model: t, formatMessage: r }) {
1936
+ return Ve(e) ? ge(e) ? Yd(e, t) : e.type === "boolean" && Ie(t) ? r(t ? bo.yes : bo.no) : t && t.toString() || "" : "";
1940
1937
  }
1941
- function Zd(e, t) {
1942
- let r = Qd(e, t);
1943
- return r ? eu(r) : t;
1938
+ function Yd(e, t) {
1939
+ let r = Zd(e, t);
1940
+ return r ? Qd(r) : t;
1944
1941
  }
1945
- function Qd(e, t) {
1942
+ function Zd(e, t) {
1946
1943
  return e.oneOf.find((r) => "const" in r ? t === r.const : false);
1947
1944
  }
1948
- function eu(e) {
1945
+ function Qd(e) {
1949
1946
  let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Vt({ icon: e.icon });
1950
1947
  return r != null && r.avatar ? (0, qt.jsxs)(qt.Fragment, { children: [r.avatar, " ", t] }) : t;
1951
1948
  }
1952
1949
  var Be = require("react");
1953
1950
  var qs = require("react/jsx-runtime");
1954
1951
  function Hs(e) {
1955
- 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, C] = (0, Be.useState)(null), F = ae(), g = re(), v = Mt();
1952
+ 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), [g, C] = (0, Be.useState)(null), F = ae(), w = re(), A = Mt();
1956
1953
  (0, Be.useEffect)(() => {
1957
- 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".', {});
1958
- }, [v, t.validationAsync.method]);
1959
- let O = async (D, U) => {
1960
- let ee = x(), A = { [U.param]: D };
1961
- m.current = D, f(true), g("Dynamic Flow - ValidationAsync", { status: "pending" });
1962
- let B = await F(U.url, { method: U.method || "POST", headers: { "Content-Type": "application/json" }, body: U.method === "GET" ? void 0 : JSON.stringify(A), signal: ee });
1954
+ t.validationAsync.method || A.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {});
1955
+ }, [A, t.validationAsync.method]);
1956
+ let M = async (P, B) => {
1957
+ let _ = x(), v = { [B.param]: P };
1958
+ m.current = P, f(true), w("Dynamic Flow - ValidationAsync", { status: "pending" });
1959
+ let z = await F(B.url, { method: B.method || "POST", headers: { "Content-Type": "application/json" }, body: B.method === "GET" ? void 0 : JSON.stringify(v), signal: _ });
1963
1960
  try {
1964
- let k = await B.json();
1965
- if (!R(k))
1961
+ let E = await z.json();
1962
+ if (!R(E))
1966
1963
  throw new Error("Response body is not an object");
1967
- g("Dynamic Flow - ValidationAsync", { status: "success" }), B.status === 200 ? h(L(k.message) ? k.message : null) : B.status === 422 && u(L(k.message) ? k.message : null);
1968
- } catch (k) {
1969
- g("Dynamic Flow - ValidationAsync", { status: "failure" });
1964
+ w("Dynamic Flow - ValidationAsync", { status: "success" }), z.status === 200 ? h(L(E.message) ? E.message : null) : z.status === 422 && u(L(E.message) ? E.message : null);
1965
+ } catch (E) {
1966
+ w("Dynamic Flow - ValidationAsync", { status: "failure" });
1970
1967
  }
1971
1968
  }, x = () => {
1972
- w && w.abort();
1973
- let D = new AbortController();
1974
- return C(D), D.signal;
1969
+ g && g.abort();
1970
+ let P = new AbortController();
1971
+ return C(P), P.signal;
1975
1972
  };
1976
- return (0, qs.jsx)(St, s({}, { submitted: o || l, model: c, errors: y || n, infoMessage: p, onChange: (D) => {
1977
- i(S(s({}, D), { triggerSchema: t, triggerModel: D.model })), u(null), h(null), d(D.model);
1973
+ return (0, qs.jsx)(St, s({}, { submitted: o || l, model: c, errors: y || n, infoMessage: p, onChange: (P) => {
1974
+ i(S(s({}, P), { triggerSchema: t, triggerModel: P.model })), u(null), h(null), d(P.model);
1978
1975
  }, onBlur: () => {
1979
- !I(c) && !Je(c, m.current) && G(c, t) && O(c, t.validationAsync);
1976
+ !D(c) && !Je(c, m.current) && G(c, t) && M(c, t.validationAsync);
1980
1977
  }, required: a, schema: t }));
1981
1978
  }
1982
1979
  Hs.defaultProps = { required: false };
1983
- var xo = Hs;
1980
+ var vo = Hs;
1984
1981
  var he = require("react/jsx-runtime");
1985
- var Ws = require("react");
1986
- function tu(e) {
1987
- let { schema: t, model: r = null, errors: a = null, hideTitle: o = false, disabled: n = false } = e, i = S(s({}, e), { model: r, errors: a, hideTitle: o, disabled: n }), c = dt(t), d = Mt();
1982
+ var $s = require("react");
1983
+ function eu(e) {
1984
+ let { schema: t, model: r = null, errors: a = null, hideTitle: o = false, disabled: n = false } = e, i = S(s({}, e), { model: r, errors: a, hideTitle: o, disabled: n }), c = lt(t), d = Mt();
1988
1985
  switch ((0, Gs.useEffect)(() => {
1989
- ru(t, r, a) || d.error("Invalid schema or model", `Schema of type ${c || "undefined"} requested, but schema did not pass validation.`);
1986
+ tu(t, r, a) || d.error("Invalid schema or model", `Schema of type ${c || "undefined"} requested, but schema did not pass validation.`);
1990
1987
  }, [JSON.stringify(t), JSON.stringify(r), JSON.stringify(a), c, d]), c) {
1991
1988
  case "readOnly":
1992
- return (0, he.jsx)(bo, s({}, i));
1989
+ return (0, he.jsx)(xo, s({}, i));
1993
1990
  case "persistAsync":
1994
- return (0, he.jsx)(wo, s({}, i));
1991
+ return (0, he.jsx)(So, s({}, i));
1995
1992
  case "validationAsync":
1996
- return (0, he.jsx)(xo, s({}, i));
1993
+ return (0, he.jsx)(vo, s({}, i));
1997
1994
  case "basic": {
1998
1995
  let m = s({ infoMessage: null }, i);
1999
1996
  return (0, he.jsx)(St, s({}, m));
2000
1997
  }
2001
1998
  case "object":
2002
- return (0, Ws.createElement)(mr, S(s({}, i), { key: JSON.stringify(t) }));
1999
+ return (0, $s.createElement)(mr, S(s({}, i), { key: JSON.stringify(t) }));
2003
2000
  case "array":
2004
- return (0, he.jsx)(no, s({}, i));
2001
+ return (0, he.jsx)(io, s({}, i));
2005
2002
  case "promotedOneOf":
2006
- return (0, he.jsx)(Co, s({}, i));
2003
+ return (0, he.jsx)(Fo, s({}, i));
2007
2004
  case "oneOf":
2008
- return (0, he.jsx)(po, s({}, i));
2005
+ return (0, he.jsx)(yo, s({}, i));
2009
2006
  case "allOf":
2010
- return (0, he.jsx)(eo, s({}, i));
2007
+ return (0, he.jsx)(to, s({}, i));
2011
2008
  }
2012
2009
  return (0, he.jsx)(he.Fragment, {});
2013
2010
  }
2014
- var me = tu;
2015
- var ru = (e, t, r) => {
2016
- switch (dt(e)) {
2011
+ var me = eu;
2012
+ var tu = (e, t, r) => {
2013
+ switch (lt(e)) {
2017
2014
  case "persistAsync":
2018
- return Br(e) && jr(t) && rr(r);
2015
+ return Tr(e) && Nr(t) && rr(r);
2019
2016
  case "validationAsync":
2020
- return qa(e) && Wa(t) && rr(r);
2017
+ return qa(e) && $a(t) && rr(r);
2021
2018
  case "basic":
2022
- return Ve(e) && Wa(t) && rr(r);
2019
+ return Ve(e) && $a(t) && rr(r);
2023
2020
  case "object":
2024
2021
  return Le(e) && Ga(t);
2025
2022
  case "array":
2026
- return je(e) && Yn(t) && rr(r);
2023
+ return je(e) && Jn(t) && rr(r);
2027
2024
  case "promotedOneOf":
2028
- return lt(e) && Ga(t);
2025
+ return mt(e) && Ga(t);
2029
2026
  case "oneOf":
2030
2027
  return ge(e);
2031
2028
  case "allOf":
2032
- return Ha(e) && $(t);
2029
+ return Ha(e) && W(t);
2033
2030
  }
2034
2031
  return false;
2035
2032
  };
2036
- var vo = require("react/jsx-runtime");
2037
- function au({ component: e, model: t = null, errors: r = null, submitted: a, onModelChange: o, onPersistAsync: n }) {
2033
+ var Ao = require("react/jsx-runtime");
2034
+ function ru({ component: e, model: t = null, errors: r = null, submitted: a, onModelChange: o, onPersistAsync: n }) {
2038
2035
  let i = e.schema;
2039
- return (0, vo.jsx)("div", { className: V(e.margin || "md"), children: (0, vo.jsx)(me, { schema: i, model: t, errors: r, submitted: a, onChange: (c) => {
2036
+ return (0, Ao.jsx)("div", { className: U(e.margin || "md"), children: (0, Ao.jsx)(me, { schema: i, model: t, errors: r, submitted: a, onChange: (c) => {
2040
2037
  o(s({ formSchema: i }, c));
2041
2038
  }, onPersistAsync: n }) });
2042
2039
  }
2043
- var Ao = au;
2044
- var aa = require("@transferwise/components");
2045
- var $s = Ee(Xe());
2040
+ var Oo = ru;
2041
+ var oa = require("@transferwise/components");
2042
+ var Ws = Ee(Xe());
2046
2043
  var ve = require("react/jsx-runtime");
2047
- var ou = (e) => {
2048
- let { text: t, size: r = "md", align: a = "left", margin: o = "md", control: n } = e.component, i = (0, $s.default)(Se({ align: a, margin: o }));
2049
- return n === "display" ? (0, ve.jsx)(iu, { size: r, text: t, classes: i }) : (0, ve.jsx)(nu, { size: r, text: t, classes: i });
2044
+ var au = (e) => {
2045
+ let { text: t, size: r = "md", align: a = "left", margin: o = "md", control: n } = e.component, i = (0, Ws.default)(Se({ align: a, margin: o }));
2046
+ return n === "display" ? (0, ve.jsx)(nu, { size: r, text: t, classes: i }) : (0, ve.jsx)(ou, { size: r, text: t, classes: i });
2050
2047
  };
2051
- var nu = ({ size: e, text: t, classes: r }) => {
2048
+ var ou = ({ size: e, text: t, classes: r }) => {
2052
2049
  switch (e) {
2053
2050
  case "xs":
2054
2051
  return (0, ve.jsx)("h5", { className: r, children: t });
@@ -2063,194 +2060,194 @@ var require_main_min = __commonJS({
2063
2060
  return (0, ve.jsx)("h3", { className: r, children: t });
2064
2061
  }
2065
2062
  };
2066
- var iu = ({ size: e, text: t, classes: r }) => {
2063
+ var nu = ({ size: e, text: t, classes: r }) => {
2067
2064
  switch (e) {
2068
2065
  case "xs":
2069
2066
  case "sm":
2070
- return (0, ve.jsx)(aa.Display, { type: "display-small", className: r, children: t });
2067
+ return (0, ve.jsx)(oa.Display, { type: "display-small", className: r, children: t });
2071
2068
  case "xl":
2072
2069
  case "lg":
2073
- return (0, ve.jsx)(aa.Display, { type: "display-large", className: r, children: t });
2070
+ return (0, ve.jsx)(oa.Display, { type: "display-large", className: r, children: t });
2074
2071
  case "md":
2075
2072
  default:
2076
- return (0, ve.jsx)(aa.Display, { type: "display-medium", className: r, children: t });
2073
+ return (0, ve.jsx)(oa.Display, { type: "display-medium", className: r, children: t });
2077
2074
  }
2078
2075
  };
2079
- var Oo = ou;
2080
- var Po = require("@transferwise/components");
2076
+ var Po = au;
2077
+ var Mo = require("@transferwise/components");
2081
2078
  var ur = require("react/jsx-runtime");
2082
- var Mo = ({ component: e }) => {
2079
+ var ko = ({ component: e }) => {
2083
2080
  let { content: t, align: r, margin: a } = e;
2084
- return (0, ur.jsx)("div", { className: Se({ align: r, margin: a }), children: (0, ur.jsx)(Po.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
2081
+ return (0, ur.jsx)("div", { className: Se({ align: r, margin: a }), children: (0, ur.jsx)(Mo.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
2085
2082
  };
2086
- var ko = ({ component: e }) => (0, ur.jsx)("div", { className: Se(e), children: (0, ur.jsx)(Po.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
2083
+ var Eo = ({ component: e }) => (0, ur.jsx)("div", { className: Se(e), children: (0, ur.jsx)(Mo.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
2087
2084
  var _s = require("@transferwise/components");
2088
- var oa = require("react");
2089
- var Eo = require("react/jsx-runtime");
2090
- function su({ component: e }) {
2091
- let { url: t, size: r, text: a, margin: o, accessibilityDescription: n } = e, i = ae(), [c, d] = (0, oa.useState)("");
2092
- (0, oa.useEffect)(() => {
2093
- mu(i, t).then(d);
2085
+ var na = require("react");
2086
+ var Io = require("react/jsx-runtime");
2087
+ function iu({ component: e }) {
2088
+ let { url: t, size: r, text: a, margin: o, accessibilityDescription: n } = e, i = ae(), [c, d] = (0, na.useState)("");
2089
+ (0, na.useEffect)(() => {
2090
+ cu(i, t).then(d);
2094
2091
  }, [t, i]);
2095
2092
  let m = { alt: n || a || "", src: c, stretch: true, shrink: true };
2096
- return c ? (0, Eo.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, Eo.jsx)(_s.Image, s({ className: `img-responsive ${V(o || "md")}` }, m)) }) : null;
2093
+ return c ? (0, Io.jsx)("div", { className: `df-image ${r || "md"}`, children: (0, Io.jsx)(_s.Image, s({ className: `img-responsive ${U(o || "md")}` }, m)) }) : null;
2097
2094
  }
2098
- var cu = (e) => new Promise((t, r) => {
2095
+ var su = (e) => new Promise((t, r) => {
2099
2096
  let a = new FileReader();
2100
2097
  a.addEventListener("loadend", () => t(a.result)), a.addEventListener("error", (o) => r(o)), a.readAsDataURL(e);
2101
2098
  });
2102
- var mu = async (e, t) => {
2099
+ var cu = async (e, t) => {
2103
2100
  var r;
2104
2101
  try {
2105
- return An(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) => {
2102
+ return Br(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) => {
2106
2103
  if (a.ok)
2107
2104
  return a.blob();
2108
2105
  throw new Error("Image fetching failed");
2109
- }).then(cu).catch(() => t) : t;
2106
+ }).then(su).catch(() => t) : t;
2110
2107
  } catch (a) {
2111
2108
  return t;
2112
2109
  }
2113
2110
  };
2114
- var Io = su;
2115
- var na = require("@transferwise/components");
2111
+ var Do = iu;
2112
+ var ia = require("@transferwise/components");
2116
2113
  var pr = require("react/jsx-runtime");
2117
- var lu = ["positive", "neutral"];
2118
- var du = ["warning", "negative"];
2119
- var uu = ({ component: e }) => {
2120
- let { items: t } = e, r = t.filter((o) => lu.includes(o.context)).map(({ text: o }) => o), a = t.filter((o) => du.includes(o.context)).map(({ text: o }) => o);
2121
- return (0, pr.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, pr.jsx)(na.Header, { title: e.title }) : null, (0, pr.jsx)(na.InstructionsList, { dos: r, donts: a })] });
2114
+ var mu = ["positive", "neutral"];
2115
+ var lu = ["warning", "negative"];
2116
+ var du = ({ component: e }) => {
2117
+ 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);
2118
+ return (0, pr.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, pr.jsx)(ia.Header, { title: e.title }) : null, (0, pr.jsx)(ia.InstructionsList, { dos: r, donts: a })] });
2122
2119
  };
2123
- var Do = uu;
2120
+ var Lo = du;
2124
2121
  var H = require("react/jsx-runtime");
2125
- var K = (e) => JSON.stringify(e);
2126
- function pu(e) {
2122
+ var J = (e) => JSON.stringify(e);
2123
+ function uu(e) {
2127
2124
  let { components: t, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c, baseUrl: d } = e, m = (p) => {
2128
2125
  switch (p.type) {
2129
2126
  case "heading":
2130
- return (0, H.jsx)(Oo, { component: p }, K(p));
2127
+ return (0, H.jsx)(Po, { component: p }, J(p));
2131
2128
  case "paragraph":
2132
- return (0, H.jsx)(To, { component: p }, K(p));
2129
+ return (0, H.jsx)(Ro, { component: p }, J(p));
2133
2130
  case "image":
2134
- return (0, H.jsx)(Io, { component: p }, K(p));
2131
+ return (0, H.jsx)(Do, { component: p }, J(p));
2135
2132
  case "alert":
2136
- return (0, H.jsx)(se, { component: p }, K(p));
2133
+ return (0, H.jsx)(se, { component: p }, J(p));
2137
2134
  case "review":
2138
- return (0, H.jsx)(Ro, { component: p, onAction: i }, K(p));
2135
+ return (0, H.jsx)(No, { component: p, onAction: i }, J(p));
2139
2136
  case "divider":
2140
- return (0, H.jsx)(Za, { component: p }, K(p));
2137
+ return (0, H.jsx)(Qa, { component: p }, J(p));
2141
2138
  case "info":
2142
- return (0, H.jsx)(ko, { component: p }, K(p));
2139
+ return (0, H.jsx)(Eo, { component: p }, J(p));
2143
2140
  case "instructions":
2144
- return (0, H.jsx)(Do, { component: p }, K(p));
2141
+ return (0, H.jsx)(Lo, { component: p }, J(p));
2145
2142
  case "markdown":
2146
- return (0, H.jsx)(Mo, { component: p }, K(p));
2143
+ return (0, H.jsx)(ko, { component: p }, J(p));
2147
2144
  case "columns":
2148
- return (0, H.jsx)(Xa, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, K(p));
2145
+ return (0, H.jsx)(Ya, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, J(p));
2149
2146
  case "form":
2150
- return (0, H.jsx)(Ao, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onPersistAsync: c }, K(S(s({}, p), { errors: o != null ? o : null })));
2147
+ return (0, H.jsx)(Oo, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onPersistAsync: c }, J(S(s({}, p), { errors: o != null ? o : null })));
2151
2148
  case "button":
2152
- return (0, H.jsx)(Ja, { component: p, onAction: i }, K(p));
2149
+ return (0, H.jsx)(Xa, { component: p, onAction: i }, J(p));
2153
2150
  case "box":
2154
- return (0, H.jsx)(Ka, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, K(p));
2151
+ return (0, H.jsx)(Ja, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, J(p));
2155
2152
  case "decision":
2156
- return (0, H.jsx)(Ya, { component: p, onAction: i }, K(p));
2153
+ return (0, H.jsx)(Za, { component: p, onAction: i }, J(p));
2157
2154
  case "external":
2158
- return (0, H.jsx)(Qa, { component: p, onAction: i }, K(p));
2155
+ return (0, H.jsx)(eo, { component: p, onAction: i }, J(p));
2159
2156
  case "list":
2160
2157
  case "status-list":
2161
- return (0, H.jsx)(Lo, { component: p, onAction: i }, K(p));
2158
+ return (0, H.jsx)(To, { component: p, onAction: i }, J(p));
2162
2159
  case "loading-indicator":
2163
- return (0, H.jsx)(yr, { component: p }, K(p));
2160
+ return (0, H.jsx)(yr, { component: p }, J(p));
2164
2161
  case "search":
2165
- return (0, H.jsx)(No, { component: p, onAction: i }, K(p));
2162
+ return (0, H.jsx)(Bo, { component: p, onAction: i }, J(p));
2166
2163
  case "modal":
2167
- return (0, H.jsx)(Bo, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, K(p));
2164
+ return (0, H.jsx)(zo, { component: p, model: r, submitted: a, errors: o, onModelChange: n, onAction: i, onPersistAsync: c }, J(p));
2168
2165
  default:
2169
- return (0, H.jsx)("div", {}, K(p));
2166
+ return (0, H.jsx)("div", {}, J(p));
2170
2167
  }
2171
2168
  };
2172
- return Sn() || d == null ? (0, H.jsx)(H.Fragment, { children: t.map(m) }) : (0, H.jsx)(Ir, { baseUrl: d, children: t.map(m) });
2169
+ return ti() || d == null ? (0, H.jsx)(H.Fragment, { children: t.map(m) }) : (0, H.jsx)(Vr, { baseUrl: d, children: t.map(m) });
2173
2170
  }
2174
- var ne = pu;
2175
- var ia = require("@transferwise/components");
2171
+ var ne = uu;
2172
+ var sa = require("@transferwise/components");
2176
2173
  var Gt = require("react/jsx-runtime");
2177
- var yu = ({ component: e }) => (0, Gt.jsxs)("div", { className: V(e.margin || "md"), children: [e.title ? (0, Gt.jsx)(ia.Header, { title: e.title }) : null, e.items.map(fu)] });
2178
- var fu = ({ title: e, description: t, icon: r, status: a }) => {
2179
- 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: wu[a] } : {});
2180
- return (0, Gt.jsx)(ia.Summary, s({}, o));
2181
- };
2182
- var hu = { done: "done", pending: "pending", "not-done": "notDone" };
2183
- var gu = { positive: "done", warning: "pending", neutral: "notDone" };
2184
- var wu = s(s({}, hu), gu);
2185
- var Lo = yu;
2174
+ var pu = ({ component: e }) => (0, Gt.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, Gt.jsx)(sa.Header, { title: e.title }) : null, e.items.map(yu)] });
2175
+ var yu = ({ title: e, description: t, icon: r, status: a }) => {
2176
+ 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] } : {});
2177
+ return (0, Gt.jsx)(sa.Summary, s({}, o));
2178
+ };
2179
+ var fu = { done: "done", pending: "pending", "not-done": "notDone" };
2180
+ var hu = { positive: "done", warning: "pending", neutral: "notDone" };
2181
+ var gu = s(s({}, fu), hu);
2182
+ var To = pu;
2186
2183
  var Ks = require("@transferwise/components");
2187
2184
  var Js = require("react/jsx-runtime");
2188
- var Su = ({ component: e }) => {
2185
+ var wu = ({ component: e }) => {
2189
2186
  let { margin: t = "md", size: r = "md" } = e;
2190
- return (0, Js.jsx)(Ks.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${V(t)}` }, "data-testid": "loading-indicator" });
2187
+ return (0, Js.jsx)(Ks.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${U(t)}` }, "data-testid": "loading-indicator" });
2191
2188
  };
2192
- var yr = Su;
2189
+ var yr = wu;
2193
2190
  var ec = require("@transferwise/components");
2194
2191
  var tc = require("react-intl");
2195
2192
  var Xs = require("react-intl");
2196
- var zo = (0, Xs.defineMessages)({ copy: { id: "dynamicFlows.DynamicParagraph.copy", defaultMessage: "Copy", description: "Copy to clipboard button label." }, copied: { id: "dynamicFlows.DynamicParagraph.copied", defaultMessage: "Copied to clipboard", description: "Appears in a snackbar when the copy operation succeeds." } });
2193
+ var jo = (0, Xs.defineMessages)({ copy: { id: "dynamicFlows.DynamicParagraph.copy", defaultMessage: "Copy", description: "Copy to clipboard button label." }, copied: { id: "dynamicFlows.DynamicParagraph.copied", defaultMessage: "Copied to clipboard", description: "Appears in a snackbar when the copy operation succeeds." } });
2197
2194
  var Ys = require("@transferwise/components");
2198
2195
  var Zs = require("react");
2199
2196
  function Qs() {
2200
2197
  let e = (0, Zs.useContext)(Ys.SnackbarContext);
2201
- return e ? e.createSnackbar : Cu;
2198
+ return e ? e.createSnackbar : Su;
2202
2199
  }
2203
- function Cu() {
2200
+ function Su() {
2204
2201
  }
2205
2202
  var tt = require("react/jsx-runtime");
2206
- function Fu({ component: e }) {
2207
- return e.control === "copyable" ? (0, tt.jsx)(xu, { component: e }) : (0, tt.jsx)(bu, { component: e });
2203
+ function Cu({ component: e }) {
2204
+ return e.control === "copyable" ? (0, tt.jsx)(bu, { component: e }) : (0, tt.jsx)(Fu, { component: e });
2208
2205
  }
2209
- function bu({ component: e }) {
2206
+ function Fu({ component: e }) {
2210
2207
  return (0, tt.jsxs)("p", { className: Se(e), children: [" ", e.text, " "] });
2211
2208
  }
2212
- function xu({ component: e }) {
2209
+ function bu({ component: e }) {
2213
2210
  let { formatMessage: t } = (0, tc.useIntl)(), r = Qs(), { text: a } = e, o = () => {
2214
2211
  var i;
2215
- (i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(zo.copied) })).catch(vu);
2212
+ (i = navigator.clipboard) == null || i.writeText(a).then(() => r({ text: t(jo.copied) })).catch(xu);
2216
2213
  }, n = `${Se({ align: e.align, margin: "sm" })} form-control`;
2217
- return (0, tt.jsxs)("div", { className: Se(e), children: [(0, tt.jsx)("input", { type: "text", className: n, value: a, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, tt.jsx)(ec.Button, { block: true, onClick: o, children: t(zo.copy) })] });
2214
+ return (0, tt.jsxs)("div", { className: Se(e), children: [(0, tt.jsx)("input", { type: "text", className: n, value: a, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, tt.jsx)(ec.Button, { block: true, onClick: o, children: t(jo.copy) })] });
2218
2215
  }
2219
- function vu() {
2216
+ function xu() {
2220
2217
  }
2221
- var To = Fu;
2222
- var sa = require("@transferwise/components");
2218
+ var Ro = Cu;
2219
+ var ca = require("@transferwise/components");
2223
2220
  var de = require("react/jsx-runtime");
2224
- var Au = (e, t) => t.fields.map(({ label: r, value: a, help: o }, n) => ({ key: String(n), title: r, value: Ou(a, o, e) }));
2225
- var Ou = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, de.jsxs)(de.Fragment, { children: [(0, de.jsx)(qe, { help: t }), " ", e] }) : (0, de.jsxs)(de.Fragment, { children: [e, " ", (0, de.jsx)(qe, { help: t })] }) : e;
2226
- var Pu = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
2227
- function Mu(e) {
2228
- let t = e.component, r = V(t.margin || "xs"), a = (c, d) => ({ text: c != null ? c : "", href: d.url, onClick: (m) => {
2221
+ var vu = (e, t) => t.fields.map(({ label: r, value: a, help: o }, n) => ({ key: String(n), title: r, value: Au(a, o, e) }));
2222
+ var Au = (e, t, r) => t ? r === "HORIZONTAL_RIGHT_ALIGNED" ? (0, de.jsxs)(de.Fragment, { children: [(0, de.jsx)(qe, { help: t }), " ", e] }) : (0, de.jsxs)(de.Fragment, { children: [e, " ", (0, de.jsx)(qe, { help: t })] }) : e;
2223
+ var Ou = (e) => (e.control || e.orientation) === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
2224
+ function Pu(e) {
2225
+ let t = e.component, r = U(t.margin || "xs"), a = (c, d) => ({ text: c != null ? c : "", href: d.url, onClick: (m) => {
2229
2226
  m.preventDefault(), d && e.onAction(d);
2230
- } }), o = Pu(t), n = t.callToAction ? a(t.callToAction.title, t.callToAction.action) : null, i = !n && t.action ? a(t.action.title || "", t.action) : null;
2231
- return (0, de.jsxs)("div", { className: r, children: [t.title && (0, de.jsx)(sa.Header, { title: t.title, action: n || i || void 0 }), (0, de.jsx)("div", { className: r, children: (0, de.jsx)(sa.DefinitionList, { layout: o, definitions: Au(o, t) }) })] });
2227
+ } }), 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;
2228
+ return (0, de.jsxs)("div", { className: r, children: [t.title && (0, de.jsx)(ca.Header, { title: t.title, action: n || i || void 0 }), (0, de.jsx)("div", { className: r, children: (0, de.jsx)(ca.DefinitionList, { layout: o, definitions: vu(o, t) }) })] });
2232
2229
  }
2233
- var Ro = Mu;
2234
- var la = require("react");
2230
+ var No = Pu;
2231
+ var da = require("react");
2235
2232
  var rc = require("@transferwise/components");
2236
- var ca = require("react/jsx-runtime");
2237
- var ac = ({ title: e, value: t, onFocus: r, onChange: a }) => (0, ca.jsxs)("label", { className: "control-label d-inline", children: [e, (0, ca.jsx)(rc.Input, { type: "text", value: t, className: "m-t-1", onFocus: r, onChange: (o) => a(o.currentTarget.value) })] });
2238
- var ma = require("@transferwise/components");
2233
+ var ma = require("react/jsx-runtime");
2234
+ var ac = ({ title: e, value: t, onFocus: r, onChange: a }) => (0, ma.jsxs)("label", { className: "control-label d-inline", children: [e, (0, ma.jsx)(rc.Input, { type: "text", value: t, className: "m-t-1", onFocus: r, onChange: (o) => a(o.currentTarget.value) })] });
2235
+ var la = require("@transferwise/components");
2239
2236
  var nc = require("react-intl");
2240
2237
  var oc = require("react-intl");
2241
- var Wt = (0, oc.defineMessages)({ errorAlert: { id: "dynamicFlows.ErrorBoundary.errorAlert", defaultMessage: "Oops. Something went wrong...", description: "Generic error message for when something has gone wrong." }, retry: { id: "dynamicFlows.ErrorBoundary.retry", defaultMessage: "Retry", description: "Usually this follows the generic error and contains a link." } });
2238
+ var $t = (0, oc.defineMessages)({ errorAlert: { id: "dynamicFlows.ErrorBoundary.errorAlert", defaultMessage: "Oops. Something went wrong...", description: "Generic error message for when something has gone wrong." }, retry: { id: "dynamicFlows.ErrorBoundary.retry", defaultMessage: "Retry", description: "Usually this follows the generic error and contains a link." } });
2242
2239
  var Ct = require("react/jsx-runtime");
2243
- var ic = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, Ct.jsx)("p", { className: "m-t-2", children: t }) : (0, Ct.jsx)(ma.NavigationOptionsList, { children: e.map((a) => (0, Ct.jsx)(ma.NavigationOption, { title: a.title, content: a.description, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(a) }, JSON.stringify(a))) });
2240
+ var ic = ({ results: e, emptyMessage: t, onSelect: r }) => e.length === 0 ? (0, Ct.jsx)("p", { className: "m-t-2", children: t }) : (0, Ct.jsx)(la.NavigationOptionsList, { children: e.map((a) => (0, Ct.jsx)(la.NavigationOption, { title: a.title, content: a.description, media: ut(a), showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => r(a) }, JSON.stringify(a))) });
2244
2241
  var sc = ({ onRetrySearch: e }) => {
2245
2242
  let t = (0, nc.useIntl)();
2246
- return (0, Ct.jsxs)("p", { className: "m-t-2", children: [t.formatMessage(Wt.errorAlert), "\xA0", (0, Ct.jsx)("a", { href: "/", onClick: (r) => {
2243
+ return (0, Ct.jsxs)("p", { className: "m-t-2", children: [t.formatMessage($t.errorAlert), "\xA0", (0, Ct.jsx)("a", { href: "/", onClick: (r) => {
2247
2244
  r.preventDefault(), e();
2248
- }, children: t.formatMessage(Wt.retry) })] });
2245
+ }, children: t.formatMessage($t.retry) })] });
2249
2246
  };
2250
- var $t = require("react");
2247
+ var Wt = require("react");
2251
2248
  var cc = { "Content-Type": "application/json" };
2252
2249
  var mc = (e) => {
2253
- 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) => {
2250
+ let [t, r] = (0, Wt.useState)({ status: "idle" }), a = (0, Wt.useRef)(null), o = ae(), n = (0, Wt.useCallback)(async (m, { url: p, method: h, param: y } = e) => {
2254
2251
  var l;
2255
2252
  if ((l = a.current) == null || l.abort(), !m) {
2256
2253
  r({ status: "idle" });
@@ -2260,144 +2257,144 @@ var require_main_min = __commonJS({
2260
2257
  let { signal: u } = a.current;
2261
2258
  r({ status: "loading" });
2262
2259
  try {
2263
- let w = await (h === "GET" ? o(Iu(p, y, m), { method: h, signal: u, headers: cc }) : o(p, { method: h, signal: u, headers: cc, body: JSON.stringify({ [y]: m }) }));
2264
- i(w, m);
2260
+ let g = await (h === "GET" ? o(Eu(p, y, m), { method: h, signal: u, headers: cc }) : o(p, { method: h, signal: u, headers: cc, body: JSON.stringify({ [y]: m }) }));
2261
+ i(g, m);
2265
2262
  } catch (f) {
2266
2263
  c(f, m);
2267
2264
  }
2268
2265
  }, [o, JSON.stringify(e)]), i = async (m, p) => {
2269
2266
  if (m.ok) {
2270
2267
  let h = await m.json().catch(() => null);
2271
- if (ku(h)) {
2268
+ if (Mu(h)) {
2272
2269
  r({ status: "success", results: h.results });
2273
2270
  return;
2274
2271
  }
2275
2272
  }
2276
2273
  r({ status: "error" });
2277
2274
  }, c = (m, p) => {
2278
- Eu(m) || r({ status: "error" });
2275
+ ku(m) || r({ status: "error" });
2279
2276
  }, d = t.status === "success" ? t.results : [];
2280
2277
  return { status: t.status, results: d, search: n };
2281
2278
  };
2282
- var ku = (e) => R(e) && "results" in e && j(e.results) && e.results.every((t) => R(t) && "title" in t && "type" in t && "value" in t);
2283
- var Eu = (e) => e instanceof DOMException && e.name === "AbortError";
2284
- var Iu = (e, t, r) => {
2279
+ var Mu = (e) => R(e) && "results" in e && V(e.results) && e.results.every((t) => R(t) && "title" in t && "type" in t && "value" in t);
2280
+ var ku = (e) => e instanceof DOMException && e.name === "AbortError";
2281
+ var Eu = (e, t, r) => {
2285
2282
  let [a, o] = e.split("?"), n = new URLSearchParams(o);
2286
2283
  return n.set(t, r), `${a}?${n.toString()}`;
2287
2284
  };
2288
2285
  var Ft = require("react/jsx-runtime");
2289
- var Du = 400;
2290
- function Lu({ component: e, onAction: t }) {
2291
- let [r, a] = (0, la.useState)(""), { title: o, margin: n, url: i, method: c, param: d, emptyMessage: m } = e, { status: p, results: h, search: y } = mc({ url: i, method: c, param: d }), u = re(), l = (0, la.useMemo)(() => Ke(y, Du), [y]), f = () => {
2286
+ var Iu = 400;
2287
+ function Du({ component: e, onAction: t }) {
2288
+ let [r, a] = (0, da.useState)(""), { title: o, margin: n, url: i, method: c, param: d, emptyMessage: m } = e, { status: p, results: h, search: y } = mc({ url: i, method: c, param: d }), u = re(), l = (0, da.useMemo)(() => Ke(y, Iu), [y]), f = () => {
2292
2289
  u("Dynamic Flow - Search Started", {});
2293
- }, w = (g) => {
2294
- a(g), l(g);
2295
- }, C = ({ type: g, value: v }) => {
2296
- if (g === "action" && (u("Dynamic Flow - Search Result Selected", { type: "action", actionId: v.id || v.$id }), t(v)), g === "search") {
2297
- a(v.query);
2298
- let { url: O, method: x, param: M, query: E } = v;
2299
- u("Dynamic Flow - Search Result Selected", { type: "search" }), y(E, { url: O, method: x, param: M });
2290
+ }, g = (w) => {
2291
+ a(w), l(w);
2292
+ }, C = ({ type: w, value: A }) => {
2293
+ if (w === "action" && (u("Dynamic Flow - Search Result Selected", { type: "action", actionId: A.id || A.$id }), t(A)), w === "search") {
2294
+ a(A.query);
2295
+ let { url: M, method: x, param: k, query: I } = A;
2296
+ u("Dynamic Flow - Search Result Selected", { type: "search" }), y(I, { url: M, method: x, param: k });
2300
2297
  }
2301
2298
  }, F = () => {
2302
2299
  a(r), y(r);
2303
2300
  };
2304
- return (0, Ft.jsxs)("div", { className: V(n || "md"), children: [(0, Ft.jsx)(ac, { 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)(sc, { onRetrySearch: F }), p === "success" && (0, Ft.jsx)(ic, { results: h, emptyMessage: m, onSelect: C })] });
2301
+ return (0, Ft.jsxs)("div", { className: U(n || "md"), children: [(0, Ft.jsx)(ac, { title: o, value: r, onChange: g, onFocus: f }), p === "loading" && (0, Ft.jsx)(yr, { component: { type: "loading-indicator", size: "sm" } }), p === "error" && (0, Ft.jsx)(sc, { onRetrySearch: F }), p === "success" && (0, Ft.jsx)(ic, { results: h, emptyMessage: m, onSelect: C })] });
2305
2302
  }
2306
- var No = Lu;
2307
- var da = require("@transferwise/components");
2303
+ var Bo = Du;
2304
+ var ua = require("@transferwise/components");
2308
2305
  var lc = require("react");
2309
2306
  var _t = require("react/jsx-runtime");
2310
- var Tu = (e) => {
2307
+ var Lu = (e) => {
2311
2308
  let [t, r] = (0, lc.useState)(false), { component: a, onAction: o } = e, { margin: n = "md" } = a;
2312
- return (0, _t.jsxs)("div", { className: Se({ margin: n }), children: [(0, _t.jsx)(da.Button, { priority: "tertiary", block: true, onClick: () => r(true), children: a.trigger.title }), (0, _t.jsx)(da.Modal, { scroll: "content", onClose: () => r(false), open: t, size: "lg", body: (0, _t.jsx)(ne, S(s({}, e), { components: a.content.components, onAction: o })) })] });
2309
+ return (0, _t.jsxs)("div", { className: Se({ margin: n }), children: [(0, _t.jsx)(ua.Button, { priority: "tertiary", block: true, onClick: () => r(true), children: a.trigger.title }), (0, _t.jsx)(ua.Modal, { scroll: "content", onClose: () => r(false), open: t, size: "lg", body: (0, _t.jsx)(ne, S(s({}, e), { components: a.content.components, onAction: o })) })] });
2313
2310
  };
2314
- var Bo = Tu;
2311
+ var zo = Lu;
2315
2312
  var pe = require("react/jsx-runtime");
2316
- var jo = (e) => I(e) || Y(e);
2317
- var Ru = (e) => e.type === "boolean" && jo(e.default) ? false : e.default;
2313
+ var Vo = (e) => D(e) || Z(e);
2314
+ var Tu = (e) => e.type === "boolean" && Vo(e.default) ? false : e.default;
2318
2315
  var uc = (e) => {
2319
- var ee, A, B;
2320
- let t = (k) => {
2321
- y(true), a(o(k), "user");
2322
- }, r = (k) => _e(k, e.schema, e.required), a = (k, ie) => {
2323
- d(k);
2324
- let W = r(k);
2325
- F(W);
2326
- let X = k;
2327
- p(X), X !== m && e.onChange({ model: X, triggerSchema: e.schema, triggerModel: X, lastTriggerModel: m, type: ie });
2328
- }, o = (k) => $e(k, e.schema), n = () => l(true), i = () => {
2329
- l(false), w(true), e.onBlur && e.onBlur();
2330
- }, [c, d] = (0, ue.useState)((ee = e.model) != null ? ee : null), [m, p] = (0, ue.useState)((A = e.model) != null ? A : null), [h, y] = (0, ue.useState)(false), [u, l] = (0, ue.useState)(false), [f, w] = (0, ue.useState)(false), [C, F] = (0, ue.useState)([]), g = (0, ue.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), v = () => {
2331
- let k = Ru(e.schema);
2332
- jo(c) && !jo(k) && a(k, "init"), e.schema.const && a(e.schema.const, "init");
2333
- }, O = () => {
2316
+ var _, v, z;
2317
+ let t = (E) => {
2318
+ y(true), a(o(E), "user");
2319
+ }, r = (E) => _e(E, e.schema, e.required), a = (E, ie) => {
2320
+ d(E);
2321
+ let $ = r(E);
2322
+ F($);
2323
+ let Y = E;
2324
+ p(Y), Y !== m && e.onChange({ model: Y, triggerSchema: e.schema, triggerModel: Y, lastTriggerModel: m, type: ie });
2325
+ }, o = (E) => We(E, e.schema), n = () => l(true), i = () => {
2326
+ l(false), g(true), e.onBlur && e.onBlur();
2327
+ }, [c, d] = (0, ue.useState)((_ = e.model) != null ? _ : null), [m, p] = (0, ue.useState)((v = e.model) != null ? v : null), [h, y] = (0, ue.useState)(false), [u, l] = (0, ue.useState)(false), [f, g] = (0, ue.useState)(false), [C, F] = (0, ue.useState)([]), w = (0, ue.useMemo)(() => e.schema.$id || Te(), [e.schema.$id]), A = () => {
2328
+ let E = Tu(e.schema);
2329
+ Vo(c) && !Vo(E) && a(E, "init"), e.schema.const && a(e.schema.const, "init");
2330
+ }, M = () => {
2334
2331
  F(r(c));
2335
- }, x = e.schema.const, M = e.schema.hidden || x;
2336
- (0, ue.useEffect)(O, [e.model, e.submitted]), (0, ue.useEffect)(v, [e.schema]), (0, ue.useEffect)(() => {
2332
+ }, x = e.schema.const, k = e.schema.hidden || x;
2333
+ (0, ue.useEffect)(M, [e.model, e.submitted]), (0, ue.useEffect)(A, [e.schema]), (0, ue.useEffect)(() => {
2337
2334
  var ie;
2338
- let k = (ie = e.model) != null ? ie : null;
2339
- k !== c && d(k);
2335
+ let E = (ie = e.model) != null ? ie : null;
2336
+ E !== c && d(E);
2340
2337
  }, [e.model]);
2341
- let E = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && f) && !!C.length, "has-info": !!e.schema.description || !!e.infoMessage }, P = e.schema.format !== "file" && e.schema.type !== "boolean", D = e.schema.help, U = `${g}-feedback`;
2342
- return M ? null : (0, pe.jsxs)(pe.Fragment, { children: [e.schema.alert && (0, pe.jsx)(se, { component: e.schema.alert }), (0, pe.jsxs)("div", { className: (0, dc.default)(E), children: [P && (0, pe.jsxs)("div", { className: "d-inline-block m-b-1", children: [(0, pe.jsx)("label", { className: "control-label d-inline", htmlFor: g, children: e.schema.title }), !!D && (0, pe.jsx)(qe, { help: D })] }), !P && !!D && (0, pe.jsx)(qe, { help: D }), (0, pe.jsx)(lr, { id: g, schema: e.schema, value: c, disabled: !!e.disabled, onChange: t, onFocus: n, onBlur: i, describedBy: U }), (0, pe.jsx)(He, { id: U, changed: h, focused: u, blurred: f, submitted: e.submitted, errors: (B = e.errors) != null ? B : null, schema: e.schema, validations: C, infoMessage: e.infoMessage })] })] });
2338
+ let I = { "form-group": true, "has-error": (e.submitted || !h) && !!e.errors || (e.submitted || h && f) && !!C.length, "has-info": !!e.schema.description || !!e.infoMessage }, O = e.schema.format !== "file" && e.schema.type !== "boolean", P = e.schema.help, B = `${w}-feedback`;
2339
+ return k ? null : (0, pe.jsxs)(pe.Fragment, { children: [e.schema.alert && (0, pe.jsx)(se, { component: e.schema.alert }), (0, pe.jsxs)("div", { className: (0, dc.default)(I), children: [O && (0, pe.jsxs)("div", { className: "d-inline-block m-b-1", children: [(0, pe.jsx)("label", { className: "control-label d-inline", htmlFor: w, children: e.schema.title }), !!P && (0, pe.jsx)(qe, { help: P })] }), !O && !!P && (0, pe.jsx)(qe, { help: P }), (0, pe.jsx)(lr, { id: w, schema: e.schema, value: c, disabled: !!e.disabled, onChange: t, onFocus: n, onBlur: i, describedBy: B }), (0, pe.jsx)(He, { id: B, changed: h, focused: u, blurred: f, submitted: e.submitted, errors: (z = e.errors) != null ? z : null, schema: e.schema, validations: C, infoMessage: e.infoMessage })] })] });
2343
2340
  };
2344
2341
  uc.defaultProps = { required: false, disabled: false, onBlur: null };
2345
2342
  var St = uc;
2346
2343
  var hc = require("react/jsx-runtime");
2347
- var ho = (e, t) => t[e];
2344
+ var go = (e, t) => t[e];
2348
2345
  var yc = (e, t) => {
2349
2346
  var r;
2350
2347
  return (r = t.validation) == null ? void 0 : r[e];
2351
2348
  };
2352
- var Nu = /* @__PURE__ */ new Set([N.RADIO, N.SELECT, N.DATELOOKUP, N.FILE, N.UPLOAD]);
2349
+ var Ru = /* @__PURE__ */ new Set([N.RADIO, N.SELECT, N.DATELOOKUP, N.FILE, N.UPLOAD]);
2353
2350
  function fc(e) {
2354
- let { schema: t, required: r, submitted: a, errors: o, onChange: n, onPersistAsync: i } = e, c = (0, pc.useIntl)(), d = ae(), m = re(), [p, h] = (0, bt.useState)(null), y = gc(p), [u, l] = (0, bt.useState)(null), [f, w] = (0, bt.useState)(false), [C, F] = (0, bt.useState)(null);
2351
+ let { schema: t, required: r, submitted: a, errors: o, onChange: n, onPersistAsync: i } = e, c = (0, pc.useIntl)(), d = ae(), m = re(), [p, h] = (0, bt.useState)(null), y = gc(p), [u, l] = (0, bt.useState)(null), [f, g] = (0, bt.useState)(false), [C, F] = (0, bt.useState)(null);
2355
2352
  (0, bt.useEffect)(() => {
2356
- Nu.has(uo(t.persistAsync.schema)) && x();
2353
+ Ru.has(po(t.persistAsync.schema)) && x();
2357
2354
  }, [p]);
2358
- let g = () => l(c.formatMessage(nr.genericError)), v = async (P, D) => {
2359
- let U = O(), ee = { [D.param]: P };
2360
- w(true);
2355
+ let w = () => l(c.formatMessage(nr.genericError)), A = async (O, P) => {
2356
+ let B = M(), _ = { [P.param]: O };
2357
+ g(true);
2361
2358
  try {
2362
2359
  m("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t.$id });
2363
- let A = d(D.url, { method: D.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(ee), signal: U });
2364
- i(A);
2365
- let B = await A, k = await B.json();
2366
- if (!R(k))
2360
+ let v = d(P.url, { method: P.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(_), signal: B });
2361
+ i(v);
2362
+ let z = await v, E = await z.json();
2363
+ if (!R(E))
2367
2364
  throw new Error("Response is not an object");
2368
- let { idProperty: ie, param: W } = t.persistAsync;
2369
- if (vn(B.status)) {
2370
- let X = ho(ie, k);
2371
- n({ model: X, triggerSchema: t, triggerModel: X });
2372
- } else if (Lr(B.status)) {
2373
- let { validation: X } = k, ke = R(X) && (X == null ? void 0 : X[W]) || null;
2365
+ let { idProperty: ie, param: $ } = t.persistAsync;
2366
+ if (xn(z.status)) {
2367
+ let Y = go(ie, E);
2368
+ n({ model: Y, triggerSchema: t, triggerModel: Y });
2369
+ } else if (Er(z.status)) {
2370
+ let { validation: Y } = E, ke = R(Y) && (Y == null ? void 0 : Y[$]) || null;
2374
2371
  l(ke), n({ model: null, triggerSchema: t, triggerModel: null });
2375
2372
  } else
2376
- g();
2373
+ w();
2377
2374
  m("Dynamic Flow - PersistAsync", { status: "success", schemaId: t.$id });
2378
- } catch (A) {
2379
- m("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), g();
2375
+ } catch (v) {
2376
+ m("Dynamic Flow - PersistAsync", { status: "failure", schemaId: t.$id }), w();
2380
2377
  }
2381
- }, O = () => {
2378
+ }, M = () => {
2382
2379
  C && C.abort();
2383
- let P = new AbortController();
2384
- return F(P), P.signal;
2380
+ let O = new AbortController();
2381
+ return F(O), O.signal;
2385
2382
  }, x = () => {
2386
- !I(p) && !Je(p, y) && v(p, t.persistAsync);
2387
- }, M = () => {
2383
+ !D(p) && !Je(p, y) && A(p, t.persistAsync);
2384
+ }, k = () => {
2388
2385
  x();
2389
- }, E = ({ model: P }) => {
2390
- l(null), G(P, t.persistAsync.schema) && h(P);
2386
+ }, I = ({ model: O }) => {
2387
+ l(null), G(O, t.persistAsync.schema) && h(O);
2391
2388
  };
2392
- return (0, hc.jsx)(St, { required: r, submitted: a || f, schema: t.persistAsync.schema, errors: u || o, model: null, infoMessage: null, onChange: E, onBlur: M });
2389
+ return (0, hc.jsx)(St, { required: r, submitted: a || f, schema: t.persistAsync.schema, errors: u || o, model: null, infoMessage: null, onChange: I, onBlur: k });
2393
2390
  }
2394
2391
  fc.defaultProps = { required: false };
2395
- var yo = fc;
2392
+ var fo = fc;
2396
2393
  var Gi = (e) => {
2397
2394
  let [t, r] = (0, wc.useState)(null), a = ae(), o = (0, Sc.useIntl)(), { schema: n } = e;
2398
2395
  async function i(y) {
2399
2396
  let u = y instanceof Blob ? !Dt(n) : !G(y, n);
2400
- return (I(y) || u) && h(), await m(y);
2397
+ return (D(y) || u) && h(), await m(y);
2401
2398
  }
2402
2399
  let c = () => {
2403
2400
  t && t.abort();
@@ -2405,8 +2402,8 @@ var require_main_min = __commonJS({
2405
2402
  return r(y), y.signal;
2406
2403
  };
2407
2404
  function d(y) {
2408
- let u = Dt(n), l = c(), f = e.param, w = u ? Bu(f, y) : JSON.stringify({ [f]: y });
2409
- return { method: e.method, headers: s({}, !u && { "Content-Type": "application/json" }), body: w, signal: l };
2405
+ let u = Dt(n), l = c(), f = e.param, g = u ? Nu(f, y) : JSON.stringify({ [f]: y });
2406
+ return { method: e.method, headers: s({}, !u && { "Content-Type": "application/json" }), body: g, signal: l };
2410
2407
  }
2411
2408
  async function m(y) {
2412
2409
  try {
@@ -2416,7 +2413,7 @@ var require_main_min = __commonJS({
2416
2413
  let l = await u.json();
2417
2414
  if (R(l)) {
2418
2415
  let f = l[e.idProperty];
2419
- if (L(f) || z(f))
2416
+ if (L(f) || j(f))
2420
2417
  return { data: f };
2421
2418
  }
2422
2419
  return h();
@@ -2436,21 +2433,21 @@ var require_main_min = __commonJS({
2436
2433
  throw new Error(o.formatMessage(nr.genericError));
2437
2434
  }
2438
2435
  let h = (y) => {
2439
- let u = zu(y) ? y.message : o.formatMessage(nr.genericError);
2436
+ let u = Bu(y) ? y.message : o.formatMessage(nr.genericError);
2440
2437
  throw new Error(u);
2441
2438
  };
2442
2439
  return i;
2443
2440
  };
2444
- function Bu(e, t) {
2441
+ function Nu(e, t) {
2445
2442
  let r = new FormData();
2446
2443
  return t !== null && r.append(e, t), r;
2447
2444
  }
2448
- function zu(e) {
2445
+ function Bu(e) {
2449
2446
  return R(e) && "message" in e && typeof e.message == "string";
2450
2447
  }
2451
2448
  var rt = require("react");
2452
- function Vr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: a, onPollingResponse: o, onFailure: n }) {
2453
- let i = (0, rt.useRef)(o), c = (0, rt.useRef)(n), d = (0, rt.useMemo)(() => ju(e, r, a, (m) => i.current(m), () => c.current()), [e, r, a]);
2449
+ function Ur({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: a, onPollingResponse: o, onFailure: n }) {
2450
+ 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]);
2454
2451
  (0, rt.useEffect)(() => {
2455
2452
  if (t > 0) {
2456
2453
  let m = setInterval(() => {
@@ -2462,7 +2459,7 @@ var require_main_min = __commonJS({
2462
2459
  i.current = o, c.current = n;
2463
2460
  }, [o, n]);
2464
2461
  }
2465
- function ju(e, t, r, a, o) {
2462
+ function zu(e, t, r, a, o) {
2466
2463
  let n = true, i = 0, c = 0;
2467
2464
  return e ? () => {
2468
2465
  n && (c++, e().then((d) => {
@@ -2475,10 +2472,10 @@ var require_main_min = __commonJS({
2475
2472
  } : () => {
2476
2473
  };
2477
2474
  }
2478
- var ua = require("react");
2475
+ var pa = require("react");
2479
2476
  var gc = (e) => {
2480
- let t = (0, ua.useRef)();
2481
- return (0, ua.useEffect)(() => {
2477
+ let t = (0, pa.useRef)();
2478
+ return (0, pa.useEffect)(() => {
2482
2479
  t.current = e;
2483
2480
  }, [e]), t.current;
2484
2481
  };
@@ -2494,26 +2491,26 @@ var require_main_min = __commonJS({
2494
2491
  throw new Error(n.message === "failed" ? "failed" : "network failed");
2495
2492
  });
2496
2493
  }, [e, r]), o = (0, fr.useCallback)((n) => n != null && n.action ? (t(n.action), false) : true, [t]);
2497
- Vr({ asyncFn: a, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse: o, onFailure: (0, fr.useCallback)(() => {
2494
+ Ur({ asyncFn: a, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse: o, onFailure: (0, fr.useCallback)(() => {
2498
2495
  e && t(e.onError.action);
2499
2496
  }, [t, e]) });
2500
2497
  }
2501
2498
  var Fc = require("react/jsx-runtime");
2502
- var Vu = (e, t) => {
2499
+ var ju = (e, t) => {
2503
2500
  var a;
2504
2501
  if (kt(e))
2505
2502
  return [];
2506
2503
  let r = Qt(e, t);
2507
2504
  return ze({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (a = e.model) != null ? a : null });
2508
2505
  };
2509
- var Uu = (e) => {
2510
- let { stepSpecification: t, stepLayoutOptions: r, submitted: a, model: o, formErrors: n, onModelChange: i } = e, c = Vu(t, r), { loading: d, registerPersistAsyncPromise: m } = At(), p = re(), h = d ? () => {
2506
+ var Vu = (e) => {
2507
+ 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 ? () => {
2511
2508
  p("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
2512
2509
  } : e.onAction;
2513
2510
  return Cc(t.polling, h), (0, Fc.jsx)(ne, { components: c, submitted: a, model: o, errors: n, onAction: h, onModelChange: i, onPersistAsync: m });
2514
2511
  };
2515
- var pa = Uu;
2516
- var wa = require("react");
2512
+ var ya = Vu;
2513
+ var Sa = require("react");
2517
2514
  var oe = require("react");
2518
2515
  var qc = require("react-intl");
2519
2516
  var Gc = Ee(bc());
@@ -2522,32 +2519,32 @@ var require_main_min = __commonJS({
2522
2519
  var Oe = require("@transferwise/components");
2523
2520
  var vc = require("react-intl");
2524
2521
  var Ae = require("react/jsx-runtime");
2525
- var Uo = ({ onCapture: e }) => (0, Ae.jsx)("div", { className: "bottom-bar", children: (0, Ae.jsx)(Hu, { onClick: e }) });
2526
- var Ho = ({ onSubmit: e, onRetry: t }) => {
2522
+ var Ho = ({ onCapture: e }) => (0, Ae.jsx)("div", { className: "bottom-bar", children: (0, Ae.jsx)(Uu, { onClick: e }) });
2523
+ var qo = ({ onSubmit: e, onRetry: t }) => {
2527
2524
  let r = (0, vc.useIntl)();
2528
2525
  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(ye.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(ye.reviewRetry) })] }) }) });
2529
2526
  };
2530
- var Hu = ({ 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" }) });
2527
+ 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" }) });
2531
2528
  var Pc = require("react-intl");
2532
2529
  var Ac = require("react-intl");
2533
2530
  var Oc = (0, Ac.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" } });
2534
2531
  var gr = require("react/jsx-runtime");
2535
- function qu() {
2532
+ function Hu() {
2536
2533
  let e = (0, Pc.useIntl)();
2537
2534
  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(Oc.text) })] });
2538
2535
  }
2539
- var qo = qu;
2536
+ var Go = Hu;
2540
2537
  var Mc = require("@transferwise/components");
2541
2538
  var at = require("react/jsx-runtime");
2542
- function Gu({ title: e, description: t, actionButton: r, onAction: a }) {
2539
+ function qu({ title: e, description: t, actionButton: r, onAction: a }) {
2543
2540
  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)(Mc.Button, { block: true, onClick: a, children: r })] }) }) });
2544
2541
  }
2545
- var Go = Gu;
2542
+ var $o = qu;
2546
2543
  var ot = require("react");
2547
2544
  var Kt = Ee(kc());
2548
2545
  var Ec = (e) => {
2549
2546
  var r;
2550
- let { facingMode: t } = ((r = ya(e)) == null ? void 0 : r.getSettings()) || {};
2547
+ let { facingMode: t } = ((r = fa(e)) == null ? void 0 : r.getSettings()) || {};
2551
2548
  return t === "user" || t === void 0;
2552
2549
  };
2553
2550
  var Ic = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
@@ -2575,20 +2572,20 @@ var require_main_min = __commonJS({
2575
2572
  let t = Wo(e);
2576
2573
  return (o = (await ((a = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : a.call(r)) || []).filter((n) => n.kind === "videoinput").find((n) => n.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : o.label;
2577
2574
  };
2578
- var ya = (e) => {
2575
+ var fa = (e) => {
2579
2576
  var t;
2580
2577
  return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
2581
2578
  };
2582
2579
  var Wo = (e) => {
2583
2580
  var t, r;
2584
- return (r = (t = ya(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
2581
+ return (r = (t = fa(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
2585
2582
  };
2586
- var fa = (e, t, r) => t == null ? void 0 : t(e, { Error: Wu(r) });
2587
- var Wu = (e) => e instanceof DOMException ? JSON.stringify({ name: e == null ? void 0 : e.name, message: e == null ? void 0 : e.message }) : e;
2583
+ var ha = (e, t, r) => t == null ? void 0 : t(e, { Error: Gu(r) });
2584
+ var Gu = (e) => e instanceof DOMException ? JSON.stringify({ name: e == null ? void 0 : e.name, message: e == null ? void 0 : e.message }) : e;
2588
2585
  var Nc = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await $u(t, r));
2589
2586
  var $u = async (e, t) => {
2590
2587
  var n;
2591
- let r = ya(t), a = Wo(t), o = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
2588
+ let r = fa(t), a = Wo(t), o = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
2592
2589
  return S(s({}, r && { "Available Video Devices (by label)": await Tc(), "Active Video Device (by label)": await Rc(t), "Camera Capabilities": a, "Camera Settings": o }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
2593
2590
  };
2594
2591
  var Bc = (e) => {
@@ -2599,7 +2596,7 @@ var require_main_min = __commonJS({
2599
2596
  };
2600
2597
  var jc = (e, t) => {
2601
2598
  let r = (0, ot.useCallback)(() => {
2602
- window.screen.orientation && "lock" in window.screen.orientation && typeof window.screen.orientation.lock == "function" && window.screen.orientation.lock("portrait").then(() => zc(t)).catch($o);
2599
+ window.screen.orientation && "lock" in window.screen.orientation && typeof window.screen.orientation.lock == "function" && window.screen.orientation.lock("portrait").then(() => zc(t)).catch(_o);
2603
2600
  }, [t]), a = (0, ot.useCallback)(() => {
2604
2601
  var c, d, m;
2605
2602
  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,10 +2604,10 @@ var require_main_min = __commonJS({
2607
2604
  setTimeout(() => {
2608
2605
  e && !Kt.default.isFullscreen && Kt.default.isEnabled && Kt.default.request(document.documentElement, { navigationUI: "show" }).then(() => {
2609
2606
  r();
2610
- }).catch($o);
2607
+ }).catch(_o);
2611
2608
  }, 100);
2612
2609
  }, [e, r]), n = (0, ot.useCallback)(() => {
2613
- Kt.default.isFullscreen && Kt.default.exit().catch($o), a();
2610
+ Kt.default.isFullscreen && Kt.default.exit().catch(_o), a();
2614
2611
  }, [a]), i = (0, ot.useCallback)((c) => {
2615
2612
  var d, m;
2616
2613
  (d = c == null ? void 0 : c.target) != null && d.type.includes("landscape") && (m = window.screen) != null && m.orientation && Bc(t);
@@ -2623,12 +2620,12 @@ var require_main_min = __commonJS({
2623
2620
  };
2624
2621
  }, [n, i, e]), { enterFullScreen: o, exitFullScreen: n };
2625
2622
  };
2626
- var $o = () => {
2623
+ var _o = () => {
2627
2624
  };
2628
- var ha = require("react");
2625
+ var ga = require("react");
2629
2626
  var Vc = (e) => {
2630
- let [t, r] = (0, ha.useState)(), a = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
2631
- (0, ha.useEffect)(() => {
2627
+ let [t, r] = (0, ga.useState)(), a = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
2628
+ (0, ga.useEffect)(() => {
2632
2629
  o(e).then(r);
2633
2630
  }, [e]);
2634
2631
  let o = async (n) => {
@@ -2641,18 +2638,18 @@ var require_main_min = __commonJS({
2641
2638
  };
2642
2639
  return { videoConstraints: t };
2643
2640
  };
2644
- var ga = require("react");
2645
- var J = require("react/jsx-runtime");
2646
- var _u = 92;
2641
+ var wa = require("react");
2642
+ var X = require("react/jsx-runtime");
2643
+ var Wu = 92;
2647
2644
  var Uc = 120;
2648
- var Ku = 40;
2649
- var Ju = 32;
2650
- var Xu = 48;
2651
- var Yu = 40;
2645
+ var _u = 40;
2646
+ var Ku = 32;
2647
+ var Ju = 48;
2648
+ var Xu = 40;
2652
2649
  var Hc = 800;
2653
- function Zu({ overlay: e, outline: t, imageUrl: r, title: a, instructions: o, reviewInstructions: n }) {
2654
- let i = (0, ga.useRef)(null);
2655
- (0, ga.useEffect)(() => {
2650
+ function Yu({ overlay: e, outline: t, imageUrl: r, title: a, instructions: o, reviewInstructions: n }) {
2651
+ let i = (0, wa.useRef)(null);
2652
+ (0, wa.useEffect)(() => {
2656
2653
  let y = Ke(() => {
2657
2654
  var u;
2658
2655
  if ((u = i.current) != null && u.innerHTML) {
@@ -2662,101 +2659,101 @@ var require_main_min = __commonJS({
2662
2659
  }, 100);
2663
2660
  return window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
2664
2661
  });
2665
- let c = (r ? Ku : 0) + (a ? Ju : 0) + (o ? Xu : 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;
2662
+ let c = (r ? _u : 0) + (a ? Ku : 0) + (o ? Ju : 0), d = (0, X.jsxs)(X.Fragment, { children: [r && (0, X.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), a && (0, X.jsx)("h4", { className: "camera-capture-title", children: a }), o && (0, X.jsx)("small", { className: "camera-capture-instructions", children: o })] }), m = Wu + c;
2666
2663
  if (n) {
2667
- c = m - Uc, d = (0, J.jsx)("small", { className: "camera-capture-instructions", children: n });
2668
- let y = Uc + Yu;
2669
- m < y && (d = (0, J.jsx)(J.Fragment, {}));
2664
+ c = m - Uc, d = (0, X.jsx)("small", { className: "camera-capture-instructions", children: n });
2665
+ let y = Uc + Xu;
2666
+ m < y && (d = (0, X.jsx)(X.Fragment, {}));
2670
2667
  }
2671
2668
  let p = { x: "50%", y: "5%", width: `min(90%, ${Hc}px)`, height: `calc(90% - ${m}px)`, style: { transform: `translateX(max(-45%, -${Hc / 2}px))` } }, h = { style: { left: "5%", top: `calc(100% - ${m}px - 5%)`, height: `calc(${c}px + 5%)`, width: "90%" } };
2672
- 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", S(s({ className: "camera-capture-text-and-image-container" }, h), { children: d })) })] });
2669
+ return (0, X.jsxs)("svg", { ref: i, xmlns: "http://www.w3.org/2000/svg", children: [(0, X.jsx)("defs", { children: (0, X.jsxs)("mask", { id: "mask", children: [(0, X.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, X.jsx)("image", s({ href: e }, p))] }) }), e && (0, X.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, X.jsx)("image", s({ href: t }, p)), (0, X.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, X.jsx)("div", S(s({ className: "camera-capture-text-and-image-container" }, h), { children: d })) })] });
2673
2670
  }
2674
- var _o = Zu;
2671
+ var Ko = Yu;
2675
2672
  var fe = require("react/jsx-runtime");
2676
- function Qu({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: a = "", title: o = "", instructions: n = "", showReview: i = false, onCapture: c, onEvent: d }) {
2677
- let [m, p] = (0, oe.useState)("CAPTURE"), [h, y] = (0, oe.useState)(), [u, l] = (0, oe.useState)(false), [f, w] = (0, oe.useState)(false), [C, F] = (0, oe.useState)(), g = (0, oe.useRef)(null), { videoConstraints: v } = Vc(e), O = (0, oe.useMemo)(() => !!(Zn() && m === "CAPTURE"), [m]), { enterFullScreen: x, exitFullScreen: M } = jc(O, d), E = (0, qc.useIntl)(), P = (0, oe.useCallback)(async () => {
2678
- var W, X, ke, nt, br, xr;
2679
- 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) {
2680
- (br = (nt = g == null ? void 0 : g.current) == null ? void 0 : nt.video) == null || br.pause();
2681
- let it = await Dc((xr = g == null ? void 0 : g.current) == null ? void 0 : xr.video);
2673
+ function Zu({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: a = "", title: o = "", instructions: n = "", showReview: i = false, onCapture: c, onEvent: d }) {
2674
+ let [m, p] = (0, oe.useState)("CAPTURE"), [h, y] = (0, oe.useState)(), [u, l] = (0, oe.useState)(false), [f, g] = (0, oe.useState)(false), [C, F] = (0, oe.useState)(), w = (0, oe.useRef)(null), { videoConstraints: A } = Vc(e), M = (0, oe.useMemo)(() => !!(Xn() && m === "CAPTURE"), [m]), { enterFullScreen: x, exitFullScreen: k } = jc(M, d), I = (0, qc.useIntl)(), O = (0, oe.useCallback)(async () => {
2675
+ var $, Y, ke, nt, br, xr;
2676
+ if (($ = w == null ? void 0 : w.current) != null && $.video && ((ke = (Y = w == null ? void 0 : w.current) == null ? void 0 : Y.video) == null ? void 0 : ke.readyState) >= 3) {
2677
+ (br = (nt = w == null ? void 0 : w.current) == null ? void 0 : nt.video) == null || br.pause();
2678
+ let it = await Dc((xr = w == null ? void 0 : w.current) == null ? void 0 : xr.video);
2682
2679
  it == null || it.toBlob((xt) => {
2683
2680
  if (xt)
2684
2681
  if (i) {
2685
- let Aa = window.URL.createObjectURL(xt);
2686
- F({ source: Aa, blob: xt }), p("REVIEW");
2682
+ let Oa = window.URL.createObjectURL(xt);
2683
+ F({ source: Oa, blob: xt }), p("REVIEW");
2687
2684
  } else
2688
2685
  c(xt);
2689
2686
  }, "image/jpeg", 0.92);
2690
2687
  }
2691
- }, [g, i, F, p, c, u]), D = (0, oe.useCallback)((W) => {
2692
- if (p("ERROR"), W instanceof DOMException)
2693
- switch (W == null ? void 0 : W.name) {
2688
+ }, [w, i, F, p, c, u]), P = (0, oe.useCallback)(($) => {
2689
+ if (p("ERROR"), $ instanceof DOMException)
2690
+ switch ($ == null ? void 0 : $.name) {
2694
2691
  case "NotAllowedError":
2695
- y({ title: E.formatMessage(ye.noCameraAccessTitle), description: E.formatMessage(ye.noCameraAccessParagraph), actionButton: E.formatMessage(ye.noCameraAccessAction), onAction: B }), fa("Dynamic Flow - Camera Permission Denied", d, W);
2692
+ y({ title: I.formatMessage(ye.noCameraAccessTitle), description: I.formatMessage(ye.noCameraAccessParagraph), actionButton: I.formatMessage(ye.noCameraAccessAction), onAction: z }), ha("Dynamic Flow - Camera Permission Denied", d, $);
2696
2693
  return;
2697
2694
  case "NotFoundError":
2698
2695
  case "OverconstrainedError":
2699
2696
  case "AbortError":
2700
2697
  case "NotReadableError":
2701
- y({ title: E.formatMessage(ye.cameraConnectionIssueTitle), description: E.formatMessage(ye.cameraConnectionIssueParagraph), actionButton: E.formatMessage(ye.cameraConnectionIssueAction), onAction: B }), fa("Dynamic Flow - Camera Not Accessible", d, W);
2698
+ y({ title: I.formatMessage(ye.cameraConnectionIssueTitle), description: I.formatMessage(ye.cameraConnectionIssueParagraph), actionButton: I.formatMessage(ye.cameraConnectionIssueAction), onAction: z }), ha("Dynamic Flow - Camera Not Accessible", d, $);
2702
2699
  return;
2703
2700
  }
2704
- y({ title: E.formatMessage(ye.cameraNotSupportedTitle), description: E.formatMessage(ye.cameraNotSupportedParagraph) }), fa("Dynamic Flow - Camera Not Supported", d, W);
2705
- }, [E, d]), U = (0, oe.useCallback)((W) => {
2706
- x(), w(true), l(Ec(W)), Nc(d, { direction: e }, W);
2707
- }, [l, d, e, x]), ee = () => {
2701
+ y({ title: I.formatMessage(ye.cameraNotSupportedTitle), description: I.formatMessage(ye.cameraNotSupportedParagraph) }), ha("Dynamic Flow - Camera Not Supported", d, $);
2702
+ }, [I, d]), B = (0, oe.useCallback)(($) => {
2703
+ x(), g(true), l(Ec($)), Nc(d, { direction: e }, $);
2704
+ }, [l, d, e, x]), _ = () => {
2708
2705
  c((C == null ? void 0 : C.blob) || null);
2709
- }, A = () => {
2706
+ }, v = () => {
2710
2707
  p("CAPTURE"), F(void 0);
2711
- }, B = () => p("CAPTURE");
2708
+ }, z = () => p("CAPTURE");
2712
2709
  (0, oe.useEffect)(() => {
2713
- m !== "CAPTURE" && M();
2714
- }, [m, M]);
2715
- let k = (0, fe.jsxs)("div", { className: "camera-capture", children: [v && (0, fe.jsx)(Gc.default, { ref: g, audio: false, videoConstraints: v, mirrored: u, onUserMediaError: D, onUserMedia: U }), (0, fe.jsx)(_o, { overlay: t, outline: r, imageUrl: a, title: o, instructions: n }), O && (0, fe.jsx)(qo, {}), f && (0, fe.jsx)(Uo, { onCapture: () => {
2716
- P();
2717
- } })] }), ie = (0, fe.jsxs)("div", { className: "camera-capture", children: [(0, fe.jsx)("img", { className: "review-image", src: C == null ? void 0 : C.source, alt: "" }), (0, fe.jsx)(_o, { overlay: t, imageUrl: a, title: o, instructions: n, reviewInstructions: E.formatMessage(ye.reviewInstructions) }), (0, fe.jsx)(Ho, { onSubmit: ee, onRetry: A })] });
2718
- return (0, fe.jsxs)("section", { children: [m === "CAPTURE" && k, m === "REVIEW" && ie, m === "ERROR" && h && (0, fe.jsx)(Go, s({}, h))] });
2719
- }
2720
- var Ko = Qu;
2721
- var $c = require("react/jsx-runtime");
2722
- function ep(e) {
2710
+ m !== "CAPTURE" && k();
2711
+ }, [m, k]);
2712
+ let E = (0, fe.jsxs)("div", { className: "camera-capture", children: [A && (0, fe.jsx)(Gc.default, { ref: w, audio: false, videoConstraints: A, mirrored: u, onUserMediaError: P, onUserMedia: B }), (0, fe.jsx)(Ko, { overlay: t, outline: r, imageUrl: a, title: o, instructions: n }), M && (0, fe.jsx)(Go, {}), f && (0, fe.jsx)(Ho, { onCapture: () => {
2713
+ O();
2714
+ } })] }), ie = (0, fe.jsxs)("div", { className: "camera-capture", children: [(0, fe.jsx)("img", { className: "review-image", src: C == null ? void 0 : C.source, alt: "" }), (0, fe.jsx)(Ko, { overlay: t, imageUrl: a, title: o, instructions: n, reviewInstructions: I.formatMessage(ye.reviewInstructions) }), (0, fe.jsx)(qo, { onSubmit: _, onRetry: v })] });
2715
+ return (0, fe.jsxs)("section", { children: [m === "CAPTURE" && E, m === "REVIEW" && ie, m === "ERROR" && h && (0, fe.jsx)($o, s({}, h))] });
2716
+ }
2717
+ var Jo = Zu;
2718
+ var Wc = require("react/jsx-runtime");
2719
+ function Qu(e) {
2723
2720
  return new Promise((t, r) => {
2724
2721
  let a = new FileReader();
2725
2722
  a.onloadend = () => t(a.result), a.readAsDataURL(e);
2726
2723
  });
2727
2724
  }
2728
- function tp(e) {
2729
- let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i = Wc(t), c = rp(t), d = ap(t), { title: m, image: p, cameraConfig: h } = c, { assets: y, direction: u, instructions: l } = h || {}, { overlay: f, outline: w } = y || {}, { url: C } = p || {}, [F, g] = (0, wa.useState)(false);
2730
- (0, wa.useEffect)(() => {
2725
+ function ep(e) {
2726
+ let { step: t, model: r, onModelChange: a, onAction: o } = e, n = re(), i = $c(t), c = tp(t), d = rp(t), { title: m, image: p, cameraConfig: h } = c, { assets: y, direction: u, instructions: l } = h || {}, { overlay: f, outline: g } = y || {}, { url: C } = p || {}, [F, w] = (0, Sa.useState)(false);
2727
+ (0, Sa.useEffect)(() => {
2731
2728
  F && o(d);
2732
2729
  }, [r]);
2733
- let v = async (O) => {
2730
+ let A = async (M) => {
2734
2731
  let { $id: x } = c;
2735
- if (O) {
2736
- let M = await ep(O), E = { [x || ""]: M };
2737
- g(true), a({ model: E, formSchema: i, triggerModel: M, triggerSchema: c });
2732
+ if (M) {
2733
+ let k = await Qu(M), I = { [x || ""]: k };
2734
+ w(true), a({ model: I, formSchema: i, triggerModel: k, triggerSchema: c });
2738
2735
  }
2739
2736
  };
2740
- return (0, $c.jsx)(Ko, { overlay: f, outline: w, title: m, imageUrl: C, instructions: l, direction: u, onEvent: n, onCapture: (O) => {
2741
- v(O);
2737
+ return (0, Wc.jsx)(Jo, { overlay: f, outline: g, title: m, imageUrl: C, instructions: l, direction: u, onEvent: n, onCapture: (M) => {
2738
+ A(M);
2742
2739
  } });
2743
2740
  }
2744
- var Sa = tp;
2745
- function Wc(e) {
2746
- let r = zr(e.schemas || [])[0];
2741
+ var Ca = ep;
2742
+ function $c(e) {
2743
+ let r = Rr(e.schemas || [])[0];
2747
2744
  if (!r || !Le(r))
2748
2745
  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...");
2749
2746
  return r;
2750
2747
  }
2751
- function rp(e) {
2752
- let t = Wc(e), r = Object.values(t.properties)[0];
2748
+ function tp(e) {
2749
+ let t = $c(e), r = Object.values(t.properties)[0];
2753
2750
  if (!r)
2754
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...");
2755
2752
  return r;
2756
2753
  }
2757
- function ap(e) {
2754
+ function rp(e) {
2758
2755
  var t, r;
2759
- if (!e.schemas || ((t = zr(e.schemas)) == null ? void 0 : t.length) !== 1)
2756
+ if (!e.schemas || ((t = Rr(e.schemas)) == null ? void 0 : t.length) !== 1)
2760
2757
  throw new Error("camera step expects 1 non-hidden object schema");
2761
2758
  if (((r = e == null ? void 0 : e.actions) == null ? void 0 : r.length) !== 1)
2762
2759
  throw new Error("camera step expects 1 action");
@@ -2768,14 +2765,14 @@ var require_main_min = __commonJS({
2768
2765
  var Xc = require("react/jsx-runtime");
2769
2766
  var Kc = () => {
2770
2767
  };
2771
- var op = ({ url: e, onClose: t }) => {
2768
+ var ap = ({ url: e, onClose: t }) => {
2772
2769
  let { formatMessage: r } = (0, Jc.useIntl)();
2773
- return (0, Xc.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(Sr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(Sr.description, { origin: np(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(Sr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(Sr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (a) => {
2770
+ return (0, Xc.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(Sr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(Sr.description, { origin: op(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(Sr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(Sr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (a) => {
2774
2771
  a.url && window.open(a.url, "_blank"), t();
2775
2772
  }, onModelChange: Kc, onPersistAsync: Kc });
2776
2773
  };
2777
- var Ca = op;
2778
- function np(e) {
2774
+ var Fa = ap;
2775
+ function op(e) {
2779
2776
  try {
2780
2777
  return new URL(e).origin;
2781
2778
  } catch (t) {
@@ -2785,96 +2782,96 @@ var require_main_min = __commonJS({
2785
2782
  var Yc = require("@transferwise/components");
2786
2783
  var Zc = require("@transferwise/icons");
2787
2784
  var Jt = require("react/jsx-runtime");
2788
- function ip({ title: e, action: t, onAction: r }) {
2785
+ function np({ title: e, action: t, onAction: r }) {
2789
2786
  return (0, Jt.jsxs)("a", { href: "/", className: "df-back-btn", "aria-label": e, onClick: (a) => {
2790
2787
  a.preventDefault(), r(S(s({}, t), { skipValidation: true }));
2791
2788
  }, children: [(0, Jt.jsx)("span", { className: "sr-only", children: e }), (0, Jt.jsx)(Yc.Avatar, { type: "icon", children: (0, Jt.jsx)(Zc.ArrowLeft, { size: "24" }) })] });
2792
2789
  }
2793
- var Qc = ip;
2790
+ var Qc = np;
2794
2791
  var Pe = require("react/jsx-runtime");
2795
- function Kr(e) {
2792
+ function Jr(e) {
2796
2793
  var d, m, p;
2797
- 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 } = ti(o);
2798
- 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 }) : Xn(t) ? (0, Pe.jsx)(Sa, S(s({}, e), { step: t })) : (0, Pe.jsxs)(Pe.Fragment, { children: [n && (0, Pe.jsx)(Qc, S(s({}, n), { onAction: a })), r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, Pe.jsx)(pa, S(s({}, e), { stepSpecification: t }))] });
2794
+ 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 } = Qn(o);
2795
+ return t === void 0 ? r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null : o && i ? (0, Pe.jsx)(Fa, { url: o, onClose: c }) : Kn(t) ? (0, Pe.jsx)(Ca, S(s({}, e), { step: t })) : (0, Pe.jsxs)(Pe.Fragment, { children: [n && (0, Pe.jsx)(Qc, S(s({}, n), { onAction: a })), r ? (0, Pe.jsx)(se, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, Pe.jsx)(ya, S(s({}, e), { stepSpecification: t }))] });
2799
2796
  }
2800
2797
  var em = require("react");
2801
- var sp = 1e3;
2798
+ var ip = 1e3;
2802
2799
  function tm(e) {
2803
2800
  let t = (0, em.useRef)(/* @__PURE__ */ new Map()), r = (a) => {
2804
2801
  if (t.current.has(a))
2805
2802
  return t.current.get(a);
2806
- let o = Ke((n, i, c) => e(n, i, c), sp);
2803
+ let o = Ke((n, i, c) => e(n, i, c), ip);
2807
2804
  return t.current.set(a, o), o;
2808
2805
  };
2809
2806
  return function(a, o, n, i) {
2810
2807
  let c = r(a);
2811
- c(a, o, n), (!i || !cp(i)) && c.flush();
2808
+ c(a, o, n), (!i || !sp(i)) && c.flush();
2812
2809
  };
2813
2810
  }
2814
- var cp = (e) => dt(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
2811
+ var sp = (e) => lt(e) === "basic" && e.type !== "boolean" && e.format !== "base64url";
2815
2812
  var Xt = require("react");
2816
2813
  var om = (e) => {
2817
2814
  var u, l;
2818
- 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 ? rm(e.model, am(e)) : {}, etag: void 0 }), { step: c, models: d, etag: m } = n, p = (f, w) => {
2819
- var C, F, g, v;
2820
- i((O) => ({ step: f, models: f.model ? rm(f.model, am(f)) : O.models, etag: w })), r((F = (C = f == null ? void 0 : f.errors) == null ? void 0 : C.validation) != null ? F : null), o((v = (g = f == null ? void 0 : f.errors) == null ? void 0 : g.error) != null ? v : null);
2821
- }, h = (f, w, C) => {
2815
+ 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 ? rm(e.model, am(e)) : {}, etag: void 0 }), { step: c, models: d, etag: m } = n, p = (f, g) => {
2816
+ var C, F, w, A;
2817
+ i((M) => ({ step: f, models: f.model ? rm(f.model, am(f)) : M.models, etag: g })), r((F = (C = f == null ? void 0 : f.errors) == null ? void 0 : C.validation) != null ? F : null), o((A = (w = f == null ? void 0 : f.errors) == null ? void 0 : w.error) != null ? A : null);
2818
+ }, h = (f, g, C) => {
2822
2819
  i((F) => {
2823
- let g = S(s({}, F.models), { [f]: w }), v = { step: F.step, models: g, etag: F.etag };
2824
- return C(g), v;
2820
+ let w = S(s({}, F.models), { [f]: g }), A = { step: F.step, models: w, etag: F.etag };
2821
+ return C(w), A;
2825
2822
  });
2826
- }, y = (0, Xt.useMemo)(() => lp(d, mp(c)), [d, c]);
2823
+ }, y = (0, Xt.useMemo)(() => mp(d, cp(c)), [d, c]);
2827
2824
  return { formErrors: t, globalError: a, step: c, models: d, etag: m, modelIsValid: y, setFormErrors: r, setGlobalError: o, setStepAndEtag: p, setSchemaModel: h };
2828
2825
  };
2829
2826
  var rm = (e, t = []) => t.reduce((r, a) => (a.$id || console.warn("Schema without $id property found."), S(s({}, r), { [a.$id || ""]: ce(e, a) || {} })), {});
2830
- var am = (e) => [...Fa((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
2831
- var Fa = (e) => e.flatMap((t) => {
2827
+ var am = (e) => [...ba((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
2828
+ var ba = (e) => e.flatMap((t) => {
2832
2829
  switch (t.type) {
2833
2830
  case "columns":
2834
- return [...Fa([...t.left, ...t.right])];
2831
+ return [...ba([...t.left, ...t.right])];
2835
2832
  case "box":
2836
- return Fa(t.components);
2833
+ return ba(t.components);
2837
2834
  case "form":
2838
2835
  return nm(t.schema) ? [t.schema] : [];
2839
2836
  default:
2840
2837
  return [];
2841
2838
  }
2842
2839
  });
2843
- var mp = (e) => [...Jo((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...Fa((e == null ? void 0 : e.layout) || [])];
2844
- var Jo = (e) => e.flatMap((t) => {
2840
+ var cp = (e) => [...Xo((e == null ? void 0 : e.layout) || []).map((t) => ((e == null ? void 0 : e.schemas) || []).find((r) => r.$id === t)).filter(Boolean), ...ba((e == null ? void 0 : e.layout) || [])];
2841
+ var Xo = (e) => e.flatMap((t) => {
2845
2842
  switch (t.type) {
2846
2843
  case "columns":
2847
- return [...Jo([...t.left, ...t.right])];
2844
+ return [...Xo([...t.left, ...t.right])];
2848
2845
  case "box":
2849
- return Jo(t.components);
2846
+ return Xo(t.components);
2850
2847
  case "form":
2851
- return [dp(t)];
2848
+ return [lp(t)];
2852
2849
  default:
2853
2850
  return [];
2854
2851
  }
2855
2852
  }).filter(Boolean);
2856
- var lp = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !G(e[r.$id || ""] || {}, r))));
2857
- var dp = (e) => e.schema && !nm(e.schema) ? e.schema.$ref : e.schemaId;
2853
+ var mp = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !G(e[r.$id || ""] || {}, r))));
2854
+ var lp = (e) => e.schema && !nm(e.schema) ? e.schema.$ref : e.schemaId;
2858
2855
  var nm = (e) => e !== void 0 && typeof e == "object" && !Object.hasOwnProperty.call(e, "$ref");
2859
- var ba = require("@transferwise/components");
2856
+ var xa = require("@transferwise/components");
2860
2857
  var im = require("react");
2861
2858
  var cm = require("react/jsx-runtime");
2862
2859
  function sm(e, t) {
2863
- let r = s({ size: ba.Size.EXTRA_LARGE, initial: true, submission: false }, e), [a, o] = (0, im.useState)(t), i = r.initial && a === "initial" || r.submission && a === "submission" ? (0, cm.jsx)(ba.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
2860
+ let r = s({ size: xa.Size.EXTRA_LARGE, initial: true, submission: false }, e), [a, o] = (0, im.useState)(t), i = r.initial && a === "initial" || r.submission && a === "submission" ? (0, cm.jsx)(xa.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
2864
2861
  return { isLoading: a !== "idle", setLoadingState: o, loader: i };
2865
2862
  }
2866
2863
  var um = require("react");
2867
- var xa = require("@transferwise/components");
2864
+ var va = require("@transferwise/components");
2868
2865
  var mm = require("react-intl");
2869
2866
  var dm = require("react/jsx-runtime");
2870
2867
  function lm({ onDismiss: e }) {
2871
2868
  let { formatMessage: t } = (0, mm.useIntl)();
2872
- return (0, dm.jsx)(xa.Alert, { action: { text: t(Wt.retry), href: window.location.href }, message: t(Wt.errorAlert), type: xa.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
2869
+ return (0, dm.jsx)(va.Alert, { action: { text: t($t.retry), href: window.location.href }, message: t($t.errorAlert), type: va.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
2873
2870
  }
2874
2871
  var Yt = require("react/jsx-runtime");
2875
- var up = () => {
2872
+ var dp = () => {
2876
2873
  };
2877
- var Xo = class extends um.Component {
2874
+ var Yo = class extends um.Component {
2878
2875
  constructor(r) {
2879
2876
  super(r);
2880
2877
  this.handleErrorReset = () => {
@@ -2886,7 +2883,7 @@ var require_main_min = __commonJS({
2886
2883
  return { hasError: true, isFatalError: true };
2887
2884
  }
2888
2885
  componentDidCatch(r) {
2889
- let { onError: a = up } = this.props;
2886
+ let { onError: a = dp } = this.props;
2890
2887
  a(r);
2891
2888
  }
2892
2889
  render() {
@@ -2894,7 +2891,7 @@ var require_main_min = __commonJS({
2894
2891
  return (0, Yt.jsxs)(Yt.Fragment, { children: [a && (0, Yt.jsx)(lm, { onDismiss: this.handleErrorReset }), !o && r] });
2895
2892
  }
2896
2893
  };
2897
- var Yo = Xo;
2894
+ var Zo = Yo;
2898
2895
  var pm = async (e, t) => {
2899
2896
  switch (t) {
2900
2897
  case "step":
@@ -2923,10 +2920,10 @@ var require_main_min = __commonJS({
2923
2920
  let r = t.action;
2924
2921
  return r.exit === true && R(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
2925
2922
  };
2926
- var hm = async (e) => ({ type: "exit", result: await Zo(e) });
2923
+ var hm = async (e) => ({ type: "exit", result: await Qo(e) });
2927
2924
  var gm = async (e) => {
2928
2925
  var r, a, o;
2929
- if (Qo(e), (r = e.headers) != null && r.has("X-Df-Response-Type")) {
2926
+ if (en(e), (r = e.headers) != null && r.has("X-Df-Response-Type")) {
2930
2927
  let n = e.headers.get("X-Df-Response-Type");
2931
2928
  return pm(e, n);
2932
2929
  }
@@ -2940,7 +2937,7 @@ var require_main_min = __commonJS({
2940
2937
  return R(t) && t.action ? fm(e) : ym(e);
2941
2938
  };
2942
2939
  var wm = async (e) => {
2943
- Qo(e);
2940
+ en(e);
2944
2941
  let t = await Cr(e);
2945
2942
  if (!R(t))
2946
2943
  throw new Error("Incorrect response body in error response. Expected an object.");
@@ -2948,8 +2945,8 @@ var require_main_min = __commonJS({
2948
2945
  throw t;
2949
2946
  return t;
2950
2947
  };
2951
- var Zo = async (e) => {
2952
- Qo(e);
2948
+ var Qo = async (e) => {
2949
+ en(e);
2953
2950
  let t = await Cr(e);
2954
2951
  return R(t) ? t : null;
2955
2952
  };
@@ -2960,29 +2957,29 @@ var require_main_min = __commonJS({
2960
2957
  return null;
2961
2958
  }
2962
2959
  };
2963
- var Qo = (e) => {
2964
- if (!pp(e))
2960
+ var en = (e) => {
2961
+ if (!up(e))
2965
2962
  throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
2966
2963
  if (e.bodyUsed)
2967
2964
  throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
2968
2965
  };
2969
- var pp = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
2970
- var We = require("react/jsx-runtime");
2966
+ var up = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
2967
+ var $e = require("react/jsx-runtime");
2971
2968
  var Sm = () => {
2972
2969
  };
2973
- var yp = ({ flowId: e, httpClient: t, initialAction: r, initialStep: a, loaderConfig: o, displayStepTitle: n = true, features: i, onCompletion: c, onError: d, onEvent: m = Sm, onLog: p = Sm }) => {
2974
- let { locale: h } = (0, Cm.useIntl)(), { formErrors: y, globalError: u, step: l, models: f, etag: w, modelIsValid: C, setFormErrors: F, setGlobalError: g, setStepAndEtag: v, setSchemaModel: O } = om(a), [x, M] = (0, Me.useState)(false), { isLoading: E, loader: P, setLoadingState: D } = sm(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)(() => {
2970
+ var pp = ({ flowId: e, httpClient: t, initialAction: r, initialStep: a, loaderConfig: o, displayStepTitle: n = true, features: i, onCompletion: c, onError: d, onEvent: m = Sm, onLog: p = Sm }) => {
2971
+ let { locale: h } = (0, Cm.useIntl)(), { formErrors: y, globalError: u, step: l, models: f, etag: g, modelIsValid: C, setFormErrors: F, setGlobalError: w, setStepAndEtag: A, setSchemaModel: M } = om(a), [x, k] = (0, Me.useState)(false), { isLoading: I, loader: O, setLoadingState: P } = sm(o, a ? "idle" : "initial"), B = ct("critical", p, e, (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key)), _ = (0, Me.useMemo)(() => {
2975
2972
  var b;
2976
2973
  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 : {});
2977
- }, [e, l]), A = (0, Me.useMemo)(() => Ia(m, ee), [m, ee]), B = (0, Me.useCallback)(({ action: b, data: q, etag: T }) => {
2974
+ }, [e, l]), v = (0, Me.useMemo)(() => Da(m, _), [m, _]), z = (0, Me.useCallback)(({ action: b, data: q, etag: T }) => {
2978
2975
  let { url: te, method: st = "POST" } = b;
2979
2976
  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) });
2980
- }, [t, h]), k = async (b, q = {}) => {
2981
- D(l ? "submission" : "initial"), A("Dynamic Flow - Step Submitted", { actionId: b.id || b.$id });
2977
+ }, [t, h]), E = async (b, q = {}) => {
2978
+ P(l ? "submission" : "initial"), v("Dynamic Flow - Step Submitted", { actionId: b.id || b.$id });
2982
2979
  try {
2983
- let T = await B({ action: b, data: q });
2980
+ let T = await z({ action: b, data: q });
2984
2981
  if (b.exit && T.ok) {
2985
- await W(T, b.result);
2982
+ await $(T, b.result);
2986
2983
  return;
2987
2984
  }
2988
2985
  await nt(T, "submission");
@@ -2990,31 +2987,31 @@ var require_main_min = __commonJS({
2990
2987
  it(T, b.exit ? "Error fetching exit result" : "Error fetching next step");
2991
2988
  }
2992
2989
  }, ie = async (b, q, T) => {
2993
- D("refresh"), A("Dynamic Flow - Step Refreshed", { status: "pending" });
2990
+ P("refresh"), v("Dynamic Flow - Step Refreshed", { status: "pending" });
2994
2991
  try {
2995
- let te = await B({ action: { url: b, method: "POST" }, data: q, etag: T });
2992
+ let te = await z({ action: { url: b, method: "POST" }, data: q, etag: T });
2996
2993
  await nt(te, "refresh");
2997
2994
  } catch (te) {
2998
2995
  it(te, "Error fetching refresh step");
2999
2996
  }
3000
- }, W = async (b, q) => {
3001
- let T = await Zo(b);
2997
+ }, $ = async (b, q) => {
2998
+ let T = await Qo(b);
3002
2999
  ke(s(s({}, T), q));
3003
- }, X = tm(ie), ke = (0, Me.useCallback)((b) => {
3004
- A("Dynamic Flow - Flow Finished", { result: "success" }), c(b);
3005
- }, [c, A]);
3000
+ }, Y = tm(ie), ke = (0, Me.useCallback)((b) => {
3001
+ v("Dynamic Flow - Flow Finished", { result: "success" }), c(b);
3002
+ }, [c, v]);
3006
3003
  (0, Me.useEffect)(() => {
3007
- A("Dynamic Flow - Flow Started", {});
3004
+ v("Dynamic Flow - Flow Started", {});
3008
3005
  }, []), (0, Me.useEffect)(() => {
3009
3006
  if (!a) {
3010
3007
  let b = s({ id: "#initial-step-request", method: "GET" }, r);
3011
- k(b, b.data);
3008
+ E(b, b.data);
3012
3009
  }
3013
3010
  }, [t, h, JSON.stringify(a), JSON.stringify(r)]);
3014
3011
  let nt = async (b, q) => {
3015
3012
  try {
3016
3013
  if (b.status === 304) {
3017
- D("idle");
3014
+ P("idle");
3018
3015
  return;
3019
3016
  }
3020
3017
  if (!b.ok) {
@@ -3023,58 +3020,58 @@ var require_main_min = __commonJS({
3023
3020
  return;
3024
3021
  }
3025
3022
  let T = await gm(b);
3026
- T.type === "action" ? k(T.action, T.action.data) : T.type === "exit" ? ke(T.result) : br(T.step, T.etag, q);
3023
+ T.type === "action" ? E(T.action, T.action.data) : T.type === "exit" ? ke(T.result) : br(T.step, T.etag, q);
3027
3024
  } catch (T) {
3028
3025
  it(T, "Error parsing fetch response", q, b.status);
3029
3026
  }
3030
3027
  }, br = (b, q, T) => {
3031
- v(b, q), D("idle"), T === "submission" ? (M(false), A("Dynamic Flow - Step Started", s({ stepId: b.id || b.key }, b == null ? void 0 : b.analytics))) : A("Dynamic Flow - Step Refreshed", { status: "success" });
3028
+ A(b, q), P("idle"), T === "submission" ? (k(false), v("Dynamic Flow - Step Started", s({ stepId: b.id || b.key }, b == null ? void 0 : b.analytics))) : v("Dynamic Flow - Step Refreshed", { status: "success" });
3032
3029
  }, xr = async (b) => {
3033
3030
  let q = b.refreshUrl || b.refreshFormUrl;
3034
- q && await ie(q, va(f), w), b.validation && F(b.validation), b.error && g(b.error), D("idle");
3031
+ q && await ie(q, Aa(f), g), b.validation && F(b.validation), b.error && w(b.error), P("idle");
3035
3032
  }, it = (b, q, T, te) => {
3036
- 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");
3033
+ B("Error fetching", q), T === "refresh" && v("Dynamic Flow - Step Refreshed", { status: "failure" }), v("Dynamic Flow - Flow Finished", { status: "failure" }), d(b, te), P("idle");
3037
3034
  }, xt = (b) => {
3038
3035
  let { model: q, formSchema: T } = b, { $id: te = "" } = T;
3039
- g(null), $(q) || U("Invalid model on change", "onModelChange was called but the model argument is not an object"), O(te, q, (vr) => {
3040
- Aa(b, vr);
3036
+ w(null), W(q) || B("Invalid model on change", "onModelChange was called but the model argument is not an object"), M(te, q, (vr) => {
3037
+ Oa(b, vr);
3041
3038
  });
3042
- }, Aa = (b, q) => {
3039
+ }, Oa = (b, q) => {
3043
3040
  let { triggerSchema: T } = b;
3044
- if (gp(b)) {
3041
+ if (hp(b)) {
3045
3042
  let te = T.refreshUrl || T.refreshFormUrl, st = (l == null ? void 0 : l.refreshUrl) || (l == null ? void 0 : l.refreshFormUrl), vr = te || st;
3046
- vr && X(vr, va(q), w, T);
3043
+ vr && Y(vr, Aa(q), g, T);
3047
3044
  }
3048
3045
  }, zm = async (b) => {
3049
- if (E || b.disabled)
3046
+ if (I || b.disabled)
3050
3047
  return;
3051
3048
  if (b.exit && !b.url) {
3052
3049
  ke(b.result);
3053
3050
  return;
3054
3051
  }
3055
- let { data: q, method: T, skipValidation: te } = b, st = s(s({}, va(f)), q);
3056
- hp(T) ? (F(null), te || M(true), (C || te) && await k(b, st)) : await k(b);
3052
+ let { data: q, method: T, skipValidation: te } = b, st = s(s({}, Aa(f)), q);
3053
+ fp(T) ? (F(null), te || k(true), (C || te) && await E(b, st)) : await E(b);
3057
3054
  };
3058
- 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)(yn, { loading: E, children: (0, We.jsx)(wn, { httpClient: t, children: (0, We.jsx)(bn, { features: i, children: P !== null ? P : (0, We.jsx)(Kr, { step: l, model: va(f), submitted: x, globalError: u, formErrors: y, stepLayoutOptions: { displayStepTitle: n }, onAction: (b) => {
3055
+ return (0, $e.jsx)(kr, { flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key), onLog: p, children: (0, $e.jsx)(Mr, { metadata: _, onEvent: m, children: (0, $e.jsx)(fn, { loading: I, children: (0, $e.jsx)(ei, { httpClient: t, children: (0, $e.jsx)(Fn, { features: i, children: O !== null ? O : (0, $e.jsx)(Jr, { step: l, model: Aa(f), submitted: x, globalError: u, formErrors: y, stepLayoutOptions: { displayStepTitle: n }, onAction: (b) => {
3059
3056
  zm(b);
3060
3057
  }, onModelChange: xt }) }) }) }) }) });
3061
3058
  };
3062
- function fp(e) {
3063
- return (0, We.jsx)(Yo, { onError: e.onError, children: (0, We.jsx)(yp, s({}, e)) });
3059
+ function yp(e) {
3060
+ return (0, $e.jsx)(Zo, { onError: e.onError, children: (0, $e.jsx)(pp, s({}, e)) });
3064
3061
  }
3065
- var en = fp;
3066
- var va = (e) => Object.values(e).reduce((t, r) => s(s({}, t), r), {});
3067
- var hp = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
3068
- var gp = (e) => {
3062
+ var tn = yp;
3063
+ var Aa = (e) => Object.values(e).reduce((t, r) => s(s({}, t), r), {});
3064
+ var fp = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
3065
+ var hp = (e) => {
3069
3066
  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);
3070
3067
  return t !== "init" && c && (n() || i());
3071
3068
  };
3072
3069
  var Fr = require("react/jsx-runtime");
3073
- function wp(e) {
3070
+ function gp(e) {
3074
3071
  let t = s({ model: null, errors: null }, e), { baseUrl: r = "", onEvent: a = Fm, onLog: o = Fm } = e;
3075
- 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)) }) }) });
3072
+ return (0, Fr.jsx)(kr, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: o, children: (0, Fr.jsx)(Mr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: a, children: (0, Fr.jsx)(Vr, { baseUrl: r, children: (0, Fr.jsx)(me, s({}, t)) }) }) });
3076
3073
  }
3077
- var tn = wp;
3074
+ var rn = gp;
3078
3075
  var Fm = () => {
3079
3076
  };
3080
3077
  var bm = { "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" };
@@ -3091,10 +3088,10 @@ var require_main_min = __commonJS({
3091
3088
  var Lm = { "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" };
3092
3089
  var Tm = { "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" };
3093
3090
  var Rm = { "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" };
3094
- var rn = { "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" };
3091
+ var an = { "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" };
3095
3092
  var Nm = { "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" };
3096
- var Rp = { en: xm, de: bm, es: vm, fr: Am, hu: Om, id: Pm, it: Mm, ja: km, pl: Em, pt: Im, ro: Dm, ru: Lm, th: Tm, tr: Rm, zh: rn, "zh-CN": rn, "zh-HK": Nm };
3097
- var Bm = Rp;
3093
+ var Tp = { en: xm, de: bm, es: vm, fr: Am, hu: Om, id: Pm, it: Mm, ja: km, pl: Em, pt: Im, ro: Dm, ru: Lm, th: Tm, tr: Rm, zh: an, "zh-CN": an, "zh-HK": Nm };
3094
+ var Bm = Tp;
3098
3095
  }
3099
3096
  });
3100
3097