@wise/dynamic-flow-client-internal 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.js CHANGED
@@ -51,40 +51,40 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
51
51
  var require_main_min = __commonJS({
52
52
  "../core/build/main.min.js"(exports, module2) {
53
53
  "use strict";
54
- var xc = Object.create;
54
+ var Ac = Object.create;
55
55
  var jt = Object.defineProperty;
56
- var Oc = Object.defineProperties;
57
- var Ac = Object.getOwnPropertyDescriptor;
58
- var vc = Object.getOwnPropertyDescriptors;
59
- var Pc = Object.getOwnPropertyNames;
60
- var va = Object.getOwnPropertySymbols;
61
- var kc = Object.getPrototypeOf;
62
- var ka = Object.prototype.hasOwnProperty;
63
- var Mc = Object.prototype.propertyIsEnumerable;
64
- var Pa = (e, t, r) => t in e ? jt(e, t, { enumerable: true, configurable: true, writable: true, value: r }) : e[t] = r;
56
+ var Pc = Object.defineProperties;
57
+ var kc = Object.getOwnPropertyDescriptor;
58
+ var Mc = Object.getOwnPropertyDescriptors;
59
+ var Ec = Object.getOwnPropertyNames;
60
+ var Oa = Object.getOwnPropertySymbols;
61
+ var Ic = Object.getPrototypeOf;
62
+ var Aa = Object.prototype.hasOwnProperty;
63
+ var Dc = Object.prototype.propertyIsEnumerable;
64
+ var va = (e, t, r) => t in e ? jt(e, t, { enumerable: true, configurable: true, writable: true, value: r }) : e[t] = r;
65
65
  var i = (e, t) => {
66
66
  for (var r in t ||= {})
67
- ka.call(t, r) && Pa(e, r, t[r]);
68
- if (va)
69
- for (var r of va(t))
70
- Mc.call(t, r) && Pa(e, r, t[r]);
67
+ Aa.call(t, r) && va(e, r, t[r]);
68
+ if (Oa)
69
+ for (var r of Oa(t))
70
+ Dc.call(t, r) && va(e, r, t[r]);
71
71
  return e;
72
72
  };
73
- var h = (e, t) => Oc(e, vc(t));
74
- var Ma = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
75
- var nt = (e, t) => {
73
+ var h = (e, t) => Pc(e, Mc(t));
74
+ var Pa = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
75
+ var ot = (e, t) => {
76
76
  for (var r in t)
77
77
  jt(e, r, { get: t[r], enumerable: true });
78
78
  };
79
- var Ea = (e, t, r, o) => {
79
+ var ka = (e, t, r, o) => {
80
80
  if (t && typeof t == "object" || typeof t == "function")
81
- for (let a of Pc(t))
82
- !ka.call(e, a) && a !== r && jt(e, a, { get: () => t[a], enumerable: !(o = Ac(t, a)) || o.enumerable });
81
+ for (let a of Ec(t))
82
+ !Aa.call(e, a) && a !== r && jt(e, a, { get: () => t[a], enumerable: !(o = kc(t, a)) || o.enumerable });
83
83
  return e;
84
84
  };
85
- var Ee = (e, t, r) => (r = e != null ? xc(kc(e)) : {}, Ea(t || !e || !e.__esModule ? jt(r, "default", { value: e, enumerable: true }) : r, e));
86
- var Ec = (e) => Ea(jt({}, "__esModule", { value: true }), e);
87
- var lt = Ma((nh, Or) => {
85
+ var Me = (e, t, r) => (r = e != null ? Ac(Ic(e)) : {}, ka(t || !e || !e.__esModule ? jt(r, "default", { value: e, enumerable: true }) : r, e));
86
+ var Lc = (e) => ka(jt({}, "__esModule", { value: true }), e);
87
+ var st = Pa((ch, vr) => {
88
88
  (function() {
89
89
  "use strict";
90
90
  var e = {}.hasOwnProperty, t = "[native code]";
@@ -112,14 +112,14 @@ var require_main_min = __commonJS({
112
112
  }
113
113
  return o.join(" ");
114
114
  }
115
- typeof Or < "u" && Or.exports ? (r.default = r, Or.exports = r) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
115
+ typeof vr < "u" && vr.exports ? (r.default = r, vr.exports = r) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
116
116
  return r;
117
117
  }) : window.classNames = r;
118
118
  })();
119
119
  });
120
- var Fs = Ma((or, ra) => {
120
+ var ws = Pa((or, oa) => {
121
121
  (function(t, r) {
122
- typeof or == "object" && typeof ra == "object" ? ra.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof or == "object" ? or.Webcam = r(require("react")) : t.Webcam = r(t.React);
122
+ typeof or == "object" && typeof oa == "object" ? oa.exports = r(require("react")) : typeof define == "function" && define.amd ? define(["react"], r) : typeof or == "object" ? or.Webcam = r(require("react")) : t.Webcam = r(t.React);
123
123
  })(or, function(e) {
124
124
  return function(t) {
125
125
  var r = {};
@@ -158,23 +158,23 @@ var require_main_min = __commonJS({
158
158
  o.r(r);
159
159
  var a = o("react"), n = o.n(a), s = function() {
160
160
  var b = function(y, l) {
161
- return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, f) {
162
- p.__proto__ = f;
163
- } || function(p, f) {
161
+ return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, f) {
162
+ u.__proto__ = f;
163
+ } || function(u, f) {
164
164
  for (var g in f)
165
- f.hasOwnProperty(g) && (p[g] = f[g]);
165
+ f.hasOwnProperty(g) && (u[g] = f[g]);
166
166
  }, b(y, l);
167
167
  };
168
168
  return function(y, l) {
169
169
  b(y, l);
170
- function p() {
170
+ function u() {
171
171
  this.constructor = y;
172
172
  }
173
- y.prototype = l === null ? Object.create(l) : (p.prototype = l.prototype, new p());
173
+ y.prototype = l === null ? Object.create(l) : (u.prototype = l.prototype, new u());
174
174
  };
175
175
  }(), m = function() {
176
176
  return m = Object.assign || function(b) {
177
- for (var y, l = 1, p = arguments.length; l < p; l++) {
177
+ for (var y, l = 1, u = arguments.length; l < u; l++) {
178
178
  y = arguments[l];
179
179
  for (var f in y)
180
180
  Object.prototype.hasOwnProperty.call(y, f) && (b[f] = y[f]);
@@ -183,125 +183,125 @@ var require_main_min = __commonJS({
183
183
  }, m.apply(this, arguments);
184
184
  }, d = function(b, y) {
185
185
  var l = {};
186
- for (var p in b)
187
- Object.prototype.hasOwnProperty.call(b, p) && y.indexOf(p) < 0 && (l[p] = b[p]);
186
+ for (var u in b)
187
+ Object.prototype.hasOwnProperty.call(b, u) && y.indexOf(u) < 0 && (l[u] = b[u]);
188
188
  if (b != null && typeof Object.getOwnPropertySymbols == "function")
189
- for (var f = 0, p = Object.getOwnPropertySymbols(b); f < p.length; f++)
190
- y.indexOf(p[f]) < 0 && Object.prototype.propertyIsEnumerable.call(b, p[f]) && (l[p[f]] = b[p[f]]);
189
+ for (var f = 0, u = Object.getOwnPropertySymbols(b); f < u.length; f++)
190
+ y.indexOf(u[f]) < 0 && Object.prototype.propertyIsEnumerable.call(b, u[f]) && (l[u[f]] = b[u[f]]);
191
191
  return l;
192
192
  };
193
193
  (function() {
194
194
  typeof window > "u" || (navigator.mediaDevices === void 0 && (navigator.mediaDevices = {}), navigator.mediaDevices.getUserMedia === void 0 && (navigator.mediaDevices.getUserMedia = function(y) {
195
195
  var l = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
196
- return l ? new Promise(function(p, f) {
197
- l.call(navigator, y, p, f);
196
+ return l ? new Promise(function(u, f) {
197
+ l.call(navigator, y, u, f);
198
198
  }) : Promise.reject(new Error("getUserMedia is not implemented in this browser"));
199
199
  }));
200
200
  })();
201
- function u() {
201
+ function p() {
202
202
  return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
203
203
  }
204
204
  var c = function(b) {
205
205
  s(y, b);
206
206
  function y(l) {
207
- var p = b.call(this, l) || this;
208
- return p.canvas = null, p.ctx = null, p.requestUserMediaId = 0, p.unmounted = false, p.state = { hasUserMedia: false }, p;
207
+ var u = b.call(this, l) || this;
208
+ return u.canvas = null, u.ctx = null, u.requestUserMediaId = 0, u.unmounted = false, u.state = { hasUserMedia: false }, u;
209
209
  }
210
210
  return y.prototype.componentDidMount = function() {
211
- var l = this, p = l.state, f = l.props;
212
- if (this.unmounted = false, !u()) {
211
+ var l = this, u = l.state, f = l.props;
212
+ if (this.unmounted = false, !p()) {
213
213
  f.onUserMediaError("getUserMedia not supported");
214
214
  return;
215
215
  }
216
- p.hasUserMedia || this.requestUserMedia(), f.children && typeof f.children != "function" && console.warn("children must be a function");
216
+ u.hasUserMedia || this.requestUserMedia(), f.children && typeof f.children != "function" && console.warn("children must be a function");
217
217
  }, y.prototype.componentDidUpdate = function(l) {
218
- var p = this.props;
219
- if (!u()) {
220
- p.onUserMediaError("getUserMedia not supported");
218
+ var u = this.props;
219
+ if (!p()) {
220
+ u.onUserMediaError("getUserMedia not supported");
221
221
  return;
222
222
  }
223
- var f = JSON.stringify(l.audioConstraints) !== JSON.stringify(p.audioConstraints), g = JSON.stringify(l.videoConstraints) !== JSON.stringify(p.videoConstraints), S = l.minScreenshotWidth !== p.minScreenshotWidth, O = l.minScreenshotHeight !== p.minScreenshotHeight;
224
- (g || S || O) && (this.canvas = null, this.ctx = null), (f || g) && (this.stopAndCleanup(), this.requestUserMedia());
223
+ var f = JSON.stringify(l.audioConstraints) !== JSON.stringify(u.audioConstraints), g = JSON.stringify(l.videoConstraints) !== JSON.stringify(u.videoConstraints), S = l.minScreenshotWidth !== u.minScreenshotWidth, v = l.minScreenshotHeight !== u.minScreenshotHeight;
224
+ (g || S || v) && (this.canvas = null, this.ctx = null), (f || g) && (this.stopAndCleanup(), this.requestUserMedia());
225
225
  }, y.prototype.componentWillUnmount = function() {
226
226
  this.unmounted = true, this.stopAndCleanup();
227
227
  }, y.stopMediaStream = function(l) {
228
- l && (l.getVideoTracks && l.getAudioTracks ? (l.getVideoTracks().map(function(p) {
229
- l.removeTrack(p), p.stop();
230
- }), l.getAudioTracks().map(function(p) {
231
- l.removeTrack(p), p.stop();
228
+ l && (l.getVideoTracks && l.getAudioTracks ? (l.getVideoTracks().map(function(u) {
229
+ l.removeTrack(u), u.stop();
230
+ }), l.getAudioTracks().map(function(u) {
231
+ l.removeTrack(u), u.stop();
232
232
  })) : l.stop());
233
233
  }, y.prototype.stopAndCleanup = function() {
234
234
  var l = this.state;
235
235
  l.hasUserMedia && (y.stopMediaStream(this.stream), l.src && window.URL.revokeObjectURL(l.src));
236
236
  }, y.prototype.getScreenshot = function(l) {
237
- var p = this, f = p.state, g = p.props;
237
+ var u = this, f = u.state, g = u.props;
238
238
  if (!f.hasUserMedia)
239
239
  return null;
240
240
  var S = this.getCanvas(l);
241
241
  return S && S.toDataURL(g.screenshotFormat, g.screenshotQuality);
242
242
  }, y.prototype.getCanvas = function(l) {
243
- var p = this, f = p.state, g = p.props;
243
+ var u = this, f = u.state, g = u.props;
244
244
  if (!this.video || !f.hasUserMedia || !this.video.videoHeight)
245
245
  return null;
246
246
  if (!this.ctx) {
247
- var S = this.video.videoWidth, O = this.video.videoHeight;
247
+ var S = this.video.videoWidth, v = this.video.videoHeight;
248
248
  if (!this.props.forceScreenshotSourceSize) {
249
- var F = S / O;
250
- S = g.minScreenshotWidth || this.video.clientWidth, O = S / F, g.minScreenshotHeight && O < g.minScreenshotHeight && (O = g.minScreenshotHeight, S = O * F);
249
+ var C = S / v;
250
+ S = g.minScreenshotWidth || this.video.clientWidth, v = S / C, g.minScreenshotHeight && v < g.minScreenshotHeight && (v = g.minScreenshotHeight, S = v * C);
251
251
  }
252
- this.canvas = document.createElement("canvas"), this.canvas.width = l?.width || S, this.canvas.height = l?.height || O, this.ctx = this.canvas.getContext("2d");
252
+ this.canvas = document.createElement("canvas"), this.canvas.width = l?.width || S, this.canvas.height = l?.height || v, this.ctx = this.canvas.getContext("2d");
253
253
  }
254
- var C = this, A = C.ctx, w = C.canvas;
255
- return A && w && (g.mirrored && (A.translate(w.width, 0), A.scale(-1, 1)), A.imageSmoothingEnabled = g.imageSmoothing, A.drawImage(this.video, 0, 0, l?.width || w.width, l?.height || w.height), g.mirrored && (A.scale(-1, 1), A.translate(-w.width, 0))), w;
254
+ var x = this, A = x.ctx, F = x.canvas;
255
+ return A && F && (g.mirrored && (A.translate(F.width, 0), A.scale(-1, 1)), A.imageSmoothingEnabled = g.imageSmoothing, A.drawImage(this.video, 0, 0, l?.width || F.width, l?.height || F.height), g.mirrored && (A.scale(-1, 1), A.translate(-F.width, 0))), F;
256
256
  }, y.prototype.requestUserMedia = function() {
257
- var l = this, p = this.props, f = function(O, F) {
258
- var C = { video: typeof F < "u" ? F : true };
259
- p.audio && (C.audio = typeof O < "u" ? O : true), l.requestUserMediaId++;
257
+ var l = this, u = this.props, f = function(v, C) {
258
+ var x = { video: typeof C < "u" ? C : true };
259
+ u.audio && (x.audio = typeof v < "u" ? v : true), l.requestUserMediaId++;
260
260
  var A = l.requestUserMediaId;
261
- navigator.mediaDevices.getUserMedia(C).then(function(w) {
262
- l.unmounted || A !== l.requestUserMediaId ? y.stopMediaStream(w) : l.handleUserMedia(null, w);
263
- }).catch(function(w) {
264
- l.handleUserMedia(w);
261
+ navigator.mediaDevices.getUserMedia(x).then(function(F) {
262
+ l.unmounted || A !== l.requestUserMediaId ? y.stopMediaStream(F) : l.handleUserMedia(null, F);
263
+ }).catch(function(F) {
264
+ l.handleUserMedia(F);
265
265
  });
266
266
  };
267
267
  if ("mediaDevices" in navigator)
268
- f(p.audioConstraints, p.videoConstraints);
268
+ f(u.audioConstraints, u.videoConstraints);
269
269
  else {
270
- var g = function(O) {
271
- return { optional: [{ sourceId: O }] };
272
- }, S = function(O) {
273
- var F = O.deviceId;
274
- return typeof F == "string" ? F : Array.isArray(F) && F.length > 0 ? F[0] : typeof F == "object" && F.ideal ? F.ideal : null;
270
+ var g = function(v) {
271
+ return { optional: [{ sourceId: v }] };
272
+ }, S = function(v) {
273
+ var C = v.deviceId;
274
+ return typeof C == "string" ? C : Array.isArray(C) && C.length > 0 ? C[0] : typeof C == "object" && C.ideal ? C.ideal : null;
275
275
  };
276
- MediaStreamTrack.getSources(function(O) {
277
- var F = null, C = null;
278
- O.forEach(function(D) {
279
- D.kind === "audio" ? F = D.id : D.kind === "video" && (C = D.id);
276
+ MediaStreamTrack.getSources(function(v) {
277
+ var C = null, x = null;
278
+ v.forEach(function(D) {
279
+ D.kind === "audio" ? C = D.id : D.kind === "video" && (x = D.id);
280
280
  });
281
- var A = S(p.audioConstraints);
282
- A && (F = A);
283
- var w = S(p.videoConstraints);
284
- w && (C = w), f(g(F), g(C));
281
+ var A = S(u.audioConstraints);
282
+ A && (C = A);
283
+ var F = S(u.videoConstraints);
284
+ F && (x = F), f(g(C), g(x));
285
285
  });
286
286
  }
287
- }, y.prototype.handleUserMedia = function(l, p) {
287
+ }, y.prototype.handleUserMedia = function(l, u) {
288
288
  var f = this.props;
289
- if (l || !p) {
289
+ if (l || !u) {
290
290
  this.setState({ hasUserMedia: false }), f.onUserMediaError(l);
291
291
  return;
292
292
  }
293
- this.stream = p;
293
+ this.stream = u;
294
294
  try {
295
- this.video && (this.video.srcObject = p), this.setState({ hasUserMedia: true });
295
+ this.video && (this.video.srcObject = u), this.setState({ hasUserMedia: true });
296
296
  } catch {
297
- this.setState({ hasUserMedia: true, src: window.URL.createObjectURL(p) });
297
+ this.setState({ hasUserMedia: true, src: window.URL.createObjectURL(u) });
298
298
  }
299
- f.onUserMedia(p);
299
+ f.onUserMedia(u);
300
300
  }, y.prototype.render = function() {
301
- var l = this, p = this, f = p.state, g = p.props, S = g.audio, O = g.forceScreenshotSourceSize, F = g.onUserMedia, C = g.onUserMediaError, A = g.screenshotFormat, w = g.screenshotQuality, D = g.minScreenshotWidth, k = g.minScreenshotHeight, I = g.audioConstraints, q = g.videoConstraints, ee = g.imageSmoothing, v = g.mirrored, T = g.style, M = T === void 0 ? {} : T, ue = g.children, pe = d(g, ["audio", "forceScreenshotSourceSize", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), le = v ? m(m({}, M), { transform: (M.transform || "") + " scaleX(-1)" }) : M, He = { getScreenshot: this.getScreenshot.bind(this) };
302
- return a.createElement(a.Fragment, null, a.createElement("video", m({ autoPlay: true, src: f.src, muted: !S, playsInline: true, ref: function(qe) {
303
- l.video = qe;
304
- }, style: le }, pe)), ue && ue(He));
301
+ var l = this, u = this, f = u.state, g = u.props, S = g.audio, v = g.forceScreenshotSourceSize, C = g.onUserMedia, x = g.onUserMediaError, A = g.screenshotFormat, F = g.screenshotQuality, D = g.minScreenshotWidth, M = g.minScreenshotHeight, P = g.audioConstraints, V = g.videoConstraints, X = g.imageSmoothing, O = g.mirrored, T = g.style, L = T === void 0 ? {} : T, oe = g.children, Ve = d(g, ["audio", "forceScreenshotSourceSize", "onUserMedia", "onUserMediaError", "screenshotFormat", "screenshotQuality", "minScreenshotWidth", "minScreenshotHeight", "audioConstraints", "videoConstraints", "imageSmoothing", "mirrored", "style", "children"]), ue = O ? m(m({}, L), { transform: (L.transform || "") + " scaleX(-1)" }) : L, rt = { getScreenshot: this.getScreenshot.bind(this) };
302
+ return a.createElement(a.Fragment, null, a.createElement("video", m({ autoPlay: true, src: f.src, muted: !S, playsInline: true, ref: function(xe) {
303
+ l.video = xe;
304
+ }, style: ue }, Ve)), oe && oe(rt));
305
305
  }, y.defaultProps = { audio: false, forceScreenshotSourceSize: false, imageSmoothing: true, mirrored: false, onUserMedia: function() {
306
306
  }, onUserMediaError: function() {
307
307
  }, screenshotFormat: "image/webp", screenshotQuality: 0.92 }, y;
@@ -312,67 +312,63 @@ var require_main_min = __commonJS({
312
312
  } }).default;
313
313
  });
314
314
  });
315
- var Pp = {};
316
- nt(Pp, { DynamicFlow: () => ga, JsonSchemaForm: () => tr, Layout: () => ne, convertStepToLayout: () => zt, fixtures: () => tc, inlineReferences: () => $e, isValidSchema: () => $, makeHttpClient: () => fr, translations: () => hc });
317
- module2.exports = Ec(Pp);
318
- function zt(e, { displayStepTitle: t = true } = {}) {
319
- if (!e || !e.type)
320
- throw new Error("Missing step type");
315
+ var Ip = {};
316
+ ot(Ip, { DynamicFlow: () => ga, JsonSchemaForm: () => er, Layout: () => ie, convertStepToLayout: () => Ut, fixtures: () => ac, inlineReferences: () => He, isValidSchema: () => $, makeHttpClient: () => yr, translations: () => Sc });
317
+ module2.exports = Lc(Ip);
318
+ function Ut(e, { displayStepTitle: t = true } = {}) {
321
319
  if (e.layout)
322
- return $c(e, t);
320
+ return Wc(e, t);
323
321
  switch (e.type) {
324
322
  case "final":
325
- return Tc(e);
323
+ return Rc(e);
326
324
  case "decision":
327
- return Nc(e);
328
- case "form":
329
- return Lc(e);
325
+ return jc(e);
330
326
  case "external":
331
- return Ic(e);
327
+ return Tc(e);
332
328
  default:
333
- throw new Error("invalid step type");
329
+ return Nc(e);
334
330
  }
335
331
  }
336
332
  function to(e) {
337
333
  let t = [];
338
334
  if (e.title && t.push(oo(e.title)), e.image) {
339
- let r = Ia(e.image);
335
+ let r = Ma(e.image);
340
336
  t.push(r);
341
337
  }
342
338
  return e.description && t.push(ao(e.description)), t;
343
339
  }
344
- function Ic(e) {
345
- return [...to(e), Dc(e)];
340
+ function Tc(e) {
341
+ return [...to(e), Bc(e)];
346
342
  }
347
- function Dc(e) {
343
+ function Bc(e) {
348
344
  return { type: "external", requestUrl: e.requestUrl, polling: e.polling, responseHandlers: e.responseHandlers, retryTitle: e.retryTitle };
349
345
  }
350
- function Lc(e) {
346
+ function Nc(e) {
351
347
  let t = to(e);
352
- if (e.reviewFields && t.push(zc(e.reviewFields)), e.schemas && t.push(...Hc(e)), e.actions) {
353
- let r = e.actions.map(lr);
348
+ if (e.reviewFields && t.push(qc(e.reviewFields)), e.schemas && t.push(...Gc(e)), e.actions) {
349
+ let r = e.actions.map(cr);
354
350
  t.push(ro(r, "md"));
355
351
  }
356
352
  return t;
357
353
  }
358
- function Tc(e) {
354
+ function Rc(e) {
359
355
  let t = [];
360
356
  if (e.details) {
361
357
  if (e.details.image) {
362
- let r = jc(e.details.image);
358
+ let r = Hc(e.details.image);
363
359
  t.push(r);
364
360
  }
365
361
  e.details.title && t.push(oo(e.details.title)), e.details.description && t.push(ao(e.details.description));
366
362
  }
367
363
  if (e.actions) {
368
- let r = e.actions.map((o) => lr(h(i({}, o), { type: o.type || "primary" })));
364
+ let r = e.actions.map((o) => cr(h(i({}, o), { type: o.type || "primary" })));
369
365
  t.push(ro(r, "md"));
370
366
  }
371
367
  return t;
372
368
  }
373
- function Nc(e) {
369
+ function jc(e) {
374
370
  let t = to(e);
375
- return e.options && t.push(Rc(e.options)), t;
371
+ return e.options && t.push(zc(e.options)), t;
376
372
  }
377
373
  function ro(e, t) {
378
374
  return { type: "box", width: t || "md", components: e };
@@ -383,76 +379,76 @@ var require_main_min = __commonJS({
383
379
  function ao(e) {
384
380
  return { type: "paragraph", text: e, align: "center" };
385
381
  }
386
- function Bc(e) {
382
+ function Uc(e) {
387
383
  return { type: "form", schema: e };
388
384
  }
389
- function Rc(e) {
390
- return { type: "decision", options: e.map(Uc) };
385
+ function zc(e) {
386
+ return { type: "decision", options: e.map(Vc) };
391
387
  }
392
- function Uc(e) {
388
+ function Vc(e) {
393
389
  return { title: e.title, description: e.description, action: { title: e.title, method: "GET", url: e.url, disabled: e.disabled } };
394
390
  }
395
- function Ia(e) {
391
+ function Ma(e) {
396
392
  return { type: "image", url: e.url, text: e.text, margin: e.margin || "lg", size: e.size || "md" };
397
393
  }
398
- function jc(e) {
399
- return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : Ia(e);
394
+ function Hc(e) {
395
+ return typeof e == "string" ? { type: "image", url: e, text: void 0, margin: "lg", size: "md" } : Ma(e);
400
396
  }
401
- function lr(e) {
397
+ function cr(e) {
402
398
  return { type: "button", action: h(i({}, e), { title: e.title }) };
403
399
  }
404
- function zc(e) {
405
- return { type: "review", title: e.title, fields: e.fields.map(Vc) };
400
+ function qc(e) {
401
+ return { type: "review", title: e.title, fields: e.fields.map($c) };
406
402
  }
407
- function Vc(e) {
403
+ function $c(e) {
408
404
  return { label: e.title, value: e.value };
409
405
  }
410
- function Hc(e) {
406
+ function Gc(e) {
411
407
  let t = [];
412
408
  if (e.schemas && e.schemas[0]) {
413
- let r = e.schemas[0], o = Bc(r);
414
- qc() ? t.push(o) : t.push(ro([o], "md"));
409
+ let r = e.schemas[0], o = Uc(r);
410
+ _c() ? t.push(o) : t.push(ro([o], "md"));
415
411
  }
416
412
  return t;
417
413
  }
418
- function qc() {
414
+ function _c() {
419
415
  return false;
420
416
  }
421
- function $c(e, t) {
417
+ function Wc(e, t) {
422
418
  return [...t && e.title ? [oo(e.title)] : [], ...e.description ? [ao(e.description)] : [], ...e.layout || []];
423
419
  }
424
- function $e({ layout: e, schemas: t, actions: r, model: o }) {
425
- return e ? t ? e.map((a) => a.type === "form" ? Gc({ formComponent: a, schemas: t }) : a.type === "decision" ? _c({ decisionComponent: a, actions: r }) : a.type === "button" ? Wc({ actionComponent: a, actions: r }) : a.type === "box" ? Kc({ boxComponent: a, schemas: t, actions: r, model: o }) : a.type === "columns" ? Yc({ columnsComponent: a, schemas: t, actions: r, model: o }) : a) : e : [];
420
+ function He({ layout: e, schemas: t, actions: r, model: o }) {
421
+ return e ? t ? e.map((a) => a.type === "form" ? Kc({ formComponent: a, schemas: t }) : a.type === "decision" ? Yc({ decisionComponent: a, actions: r }) : a.type === "button" ? Jc({ actionComponent: a, actions: r }) : a.type === "box" ? Zc({ boxComponent: a, schemas: t, actions: r, model: o }) : a.type === "columns" ? Xc({ columnsComponent: a, schemas: t, actions: r, model: o }) : a) : e : [];
426
422
  }
427
- function Gc({ formComponent: e, schemas: t }) {
428
- return no(e.schema) && e.schema.$ref ? h(i({}, e), { schema: Jc(t, e.schema.$ref) }) : i({}, e);
423
+ function Kc({ formComponent: e, schemas: t }) {
424
+ return no(e.schema) && e.schema.$ref ? h(i({}, e), { schema: Qc(t, e.schema.$ref) }) : i({}, e);
429
425
  }
430
- function _c({ decisionComponent: e, actions: t }) {
426
+ function Yc({ decisionComponent: e, actions: t }) {
431
427
  var o;
432
- let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((a) => a.action && no(a.action) ? h(i({}, a), { action: Da(t, a.action.$ref) }) : a);
428
+ let r = (o = e == null ? void 0 : e.options) == null ? void 0 : o.map((a) => a.action && no(a.action) ? h(i({}, a), { action: Ea(t, a.action.$ref) }) : a);
433
429
  return h(i({}, e), { options: r });
434
430
  }
435
- function Wc({ actionComponent: e, actions: t }) {
431
+ function Jc({ actionComponent: e, actions: t }) {
436
432
  var r;
437
433
  if (e.action && no(e.action) && ((r = e.action) != null && r.$ref)) {
438
- let o = Da(t, e.action.$ref);
439
- return lr(o);
434
+ let o = Ea(t, e.action.$ref);
435
+ return cr(o);
440
436
  }
441
437
  return e;
442
438
  }
443
- function Kc({ boxComponent: e, schemas: t, actions: r, model: o }) {
444
- return h(i({}, e), { components: $e({ layout: e.components, schemas: t, actions: r, model: o }) });
439
+ function Zc({ boxComponent: e, schemas: t, actions: r, model: o }) {
440
+ return h(i({}, e), { components: He({ layout: e.components, schemas: t, actions: r, model: o }) });
445
441
  }
446
- function Yc({ columnsComponent: e, schemas: t, actions: r, model: o }) {
447
- return h(i({}, e), { left: $e({ layout: e.left, schemas: t, actions: r, model: o }), right: $e({ layout: e.right, schemas: t, actions: r, model: o }) });
442
+ function Xc({ columnsComponent: e, schemas: t, actions: r, model: o }) {
443
+ return h(i({}, e), { left: He({ layout: e.left, schemas: t, actions: r, model: o }), right: He({ layout: e.right, schemas: t, actions: r, model: o }) });
448
444
  }
449
- function Jc(e, t) {
445
+ function Qc(e, t) {
450
446
  let r = e.find((o) => o.$id === t);
451
447
  if (!r)
452
448
  throw new Error(`Fatal Error. Schema not found. $id ${t}`);
453
449
  return r;
454
450
  }
455
- function Da(e, t) {
451
+ function Ea(e, t) {
456
452
  let r = e.find((o) => o.$id === t);
457
453
  if (!r)
458
454
  throw new Error(`Fatal Error. Action not found. $id ${t}`);
@@ -461,57 +457,57 @@ var require_main_min = __commonJS({
461
457
  function no(e) {
462
458
  return Object.prototype.hasOwnProperty.call(e, "$ref");
463
459
  }
464
- var xe = require("react");
465
- var yl = require("react-intl");
466
- var yt = require("react");
467
- var cr = require("react");
468
- function La() {
469
- let [e, t] = (0, cr.useState)(0);
470
- return { addPendingPromise: (0, cr.useCallback)((o) => {
471
- t((a) => a + 1), o.catch(Xc).finally(() => Zc(() => t((a) => Math.max(0, a - 1))));
460
+ var Ce = require("react");
461
+ var hl = require("react-intl");
462
+ var ft = require("react");
463
+ var mr = require("react");
464
+ function Ia() {
465
+ let [e, t] = (0, mr.useState)(0);
466
+ return { addPendingPromise: (0, mr.useCallback)((o) => {
467
+ t((a) => a + 1), o.catch(tm).finally(() => em(() => t((a) => Math.max(0, a - 1))));
472
468
  }, [t]), pendingPromises: e };
473
469
  }
474
- var Zc = (e) => setTimeout(() => e(), 0);
475
- var Xc = () => {
470
+ var em = (e) => setTimeout(() => e(), 0);
471
+ var tm = () => {
476
472
  };
477
- var Ra = require("react/jsx-runtime");
478
- var Ta = { loading: false, registerPersistAsyncPromise: (e) => {
473
+ var Ba = require("react/jsx-runtime");
474
+ var Da = { loading: false, registerPersistAsyncPromise: (e) => {
479
475
  } };
480
- var Na = (0, yt.createContext)(Ta);
481
- var Ba = ({ loading: e, children: t }) => {
482
- let { pendingPromises: r, addPendingPromise: o } = La(), a = (0, yt.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: o }), [e, r, o]);
483
- return (0, Ra.jsx)(Na.Provider, { value: a, children: t });
476
+ var La = (0, ft.createContext)(Da);
477
+ var Ta = ({ loading: e, children: t }) => {
478
+ let { pendingPromises: r, addPendingPromise: o } = Ia(), a = (0, ft.useMemo)(() => ({ loading: e || r > 0, registerPersistAsyncPromise: o }), [e, r, o]);
479
+ return (0, Ba.jsx)(La.Provider, { value: a, children: t });
484
480
  };
485
- var mr = () => (0, yt.useContext)(Na) || Ta;
486
- var ht = require("react");
487
- var ja = require("react/jsx-runtime");
488
- var Ua = (0, ht.createContext)({ triggerEvent: () => {
481
+ var dr = () => (0, ft.useContext)(La) || Da;
482
+ var yt = require("react");
483
+ var Ra = require("react/jsx-runtime");
484
+ var Na = (0, yt.createContext)({ triggerEvent: () => {
489
485
  } });
490
- var dr = ({ metadata: e, children: t, onEvent: r }) => {
491
- let o = (0, ht.useMemo)(() => ({ triggerEvent: io(r, e) }), [r, e]);
492
- return (0, ja.jsx)(Ua.Provider, { value: o, children: t });
486
+ var ur = ({ metadata: e, children: t, onEvent: r }) => {
487
+ let o = (0, yt.useMemo)(() => ({ triggerEvent: io(r, e) }), [r, e]);
488
+ return (0, Ra.jsx)(Na.Provider, { value: o, children: t });
493
489
  };
494
- function Z() {
495
- let { triggerEvent: e } = (0, ht.useContext)(Ua);
490
+ function Q() {
491
+ let { triggerEvent: e } = (0, yt.useContext)(Na);
496
492
  return e;
497
493
  }
498
494
  var io = (e, t) => (r, o = {}) => e(r, i(i({}, t), o));
499
- var it = require("react");
500
- function za(e) {
495
+ var at = require("react");
496
+ function ja(e) {
501
497
  return e >= 200 && e < 300;
502
498
  }
503
- function ur(e) {
499
+ function pr(e) {
504
500
  return e === 422;
505
501
  }
506
- function pr(e = "") {
502
+ function fr(e = "") {
507
503
  return ["https://", "http://", "data:"].some((t) => e.slice(0, t.length) === t && e.length > t.length) === false;
508
504
  }
509
- var fr = (e, t) => (r, o) => {
510
- let a = Qc(r, e || ""), n = em(o == null ? void 0 : o.headers, t);
505
+ var yr = (e, t) => (r, o) => {
506
+ let a = rm(r, e || ""), n = om(o == null ? void 0 : o.headers, t);
511
507
  return fetch(a, h(i({}, o || {}), { headers: n }));
512
508
  };
513
- var Qc = (e, t) => typeof e == "string" && pr(e) ? t + e : e;
514
- var em = (e, t) => {
509
+ var rm = (e, t) => typeof e == "string" && fr(e) ? t + e : e;
510
+ var om = (e, t) => {
515
511
  if (!e && !t)
516
512
  return {};
517
513
  let r = new Headers(e);
@@ -520,331 +516,331 @@ var require_main_min = __commonJS({
520
516
  return r;
521
517
  };
522
518
  var so = require("react/jsx-runtime");
523
- var yr = (0, it.createContext)(void 0);
524
- var Va = ({ httpClient: e, children: t }) => (0, so.jsx)(yr.Provider, { value: e, children: t });
525
- var hr = ({ baseUrl: e, children: t }) => {
526
- let r = (0, it.useMemo)(() => fr(e), [e]);
527
- return (0, so.jsx)(yr.Provider, { value: r, children: t });
528
- };
529
- var re = () => (0, it.useContext)(yr) || fetch;
530
- var gr = () => !!(0, it.useContext)(yr);
531
- var gt = require("react");
532
- var qa = require("react/jsx-runtime");
533
- var Ie = (e, t, r = "UNKNOWN-FLOW-ID", o = "UNKNOWN-FLOW-ID") => (a, n, s) => t(e, `Dynamic Flow ${e} - ${a} - ${n}`, i({ flowId: r, stepId: o }, s));
534
- var Ha = (0, gt.createContext)(null);
535
- var br = ({ flowId: e, stepId: t, children: r, onLog: o }) => {
536
- let a = (0, gt.useMemo)(() => ({ debug: Ie("debug", o, e, t), info: Ie("info", o, e, t), warning: Ie("warning", o, e, t), error: Ie("error", o, e, t), critical: Ie("critical", o, e, t) }), [o, e, t]);
537
- return (0, qa.jsx)(Ha.Provider, { value: a, children: r });
538
- };
539
- var Ge = () => {
540
- let e = (0, gt.useContext)(Ha);
519
+ var hr = (0, at.createContext)(void 0);
520
+ var Ua = ({ httpClient: e, children: t }) => (0, so.jsx)(hr.Provider, { value: e, children: t });
521
+ var gr = ({ baseUrl: e, children: t }) => {
522
+ let r = (0, at.useMemo)(() => yr(e), [e]);
523
+ return (0, so.jsx)(hr.Provider, { value: r, children: t });
524
+ };
525
+ var re = () => (0, at.useContext)(hr) || fetch;
526
+ var br = () => !!(0, at.useContext)(hr);
527
+ var ht = require("react");
528
+ var Va = require("react/jsx-runtime");
529
+ var nt = (e, t, r = "UNKNOWN-FLOW-ID", o = "UNKNOWN-FLOW-ID") => (a, n, s) => t(e, `Dynamic Flow ${e} - ${a} - ${n}`, i({ flowId: r, stepId: o }, s));
530
+ var za = (0, ht.createContext)(null);
531
+ var Sr = ({ flowId: e, stepId: t, children: r, onLog: o }) => {
532
+ let a = (0, ht.useMemo)(() => ({ debug: nt("debug", o, e, t), info: nt("info", o, e, t), warning: nt("warning", o, e, t), error: nt("error", o, e, t), critical: nt("critical", o, e, t) }), [o, e, t]);
533
+ return (0, Va.jsx)(za.Provider, { value: a, children: r });
534
+ };
535
+ var qe = () => {
536
+ let e = (0, ht.useContext)(za);
541
537
  if (e == null)
542
538
  throw new Error("Logging context not found. Did you forget to wrap your component in a <LogProvider />?");
543
539
  return e;
544
540
  };
545
541
  var J = (e) => typeof e == "object" && e !== null && e.constructor === Object;
546
- var lo = (e) => E(e) || J(e);
547
- var co = (e) => Ae(e) || N(e) || L(e) || E(e);
548
- var $a = (e) => L(e) || E(e);
549
- var mo = (e) => z(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean") : false;
550
- var Ga = (e) => E(e) ? true : mo(e);
551
- var bt = (e) => L(e) || E(e);
552
- var tm = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
553
- function fe(e) {
554
- return tm.has(e.type || "") || "const" in e && e.const !== void 0;
542
+ var lo = (e) => k(e) || J(e);
543
+ var co = (e) => Oe(e) || B(e) || E(e) || k(e);
544
+ var Ha = (e) => E(e) || k(e);
545
+ var mo = (e) => H(e) ? e.length === 0 ? true : e.every((t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean") : false;
546
+ var qa = (e) => k(e) ? true : mo(e);
547
+ var gt = (e) => E(e) || k(e);
548
+ var am = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean"]);
549
+ function pe(e) {
550
+ return am.has(e.type || "") || "const" in e && e.const !== void 0;
555
551
  }
556
552
  function ce(e) {
557
553
  return e.type === "object";
558
554
  }
559
- function Vt(e) {
555
+ function zt(e) {
560
556
  return me(e) && e.oneOf.every((t) => t.type === "object");
561
557
  }
562
558
  function me(e) {
563
559
  return !!e.oneOf;
564
560
  }
565
- function Ht(e) {
561
+ function Vt(e) {
566
562
  return !!e.allOf;
567
563
  }
568
- function st(e) {
564
+ function it(e) {
569
565
  return e.type === "blob";
570
566
  }
571
- function ye(e) {
567
+ function fe(e) {
572
568
  return e.type === "array";
573
569
  }
574
- function De(e) {
570
+ function Ee(e) {
575
571
  let t = e.items;
576
572
  return !Array.isArray(t);
577
573
  }
578
- function _a(e) {
574
+ function $a(e) {
579
575
  return e.type === "string";
580
576
  }
581
- function St(e) {
577
+ function bt(e) {
582
578
  return !!e.persistAsync;
583
579
  }
584
- function rm(e) {
585
- return St(e) && (st(e.persistAsync.schema) || om(e.persistAsync.schema));
580
+ function nm(e) {
581
+ return bt(e) && (it(e.persistAsync.schema) || im(e.persistAsync.schema));
586
582
  }
587
- var qt = (e) => fe(e) && !!e.validationAsync;
588
- function om(e) {
583
+ var Ht = (e) => pe(e) && !!e.validationAsync;
584
+ function im(e) {
589
585
  return e.type === "string" && e.format === "base64url";
590
586
  }
591
- var Wa = (e) => ye(e) && De(e) && rm(e.items);
587
+ var Ga = (e) => fe(e) && Ee(e) && nm(e.items);
592
588
  function uo(e) {
593
589
  return e.type === "string" && e.format === "base64url";
594
590
  }
595
- var L = (e) => typeof e == "string";
596
- var N = (e) => typeof e == "number" && !Number.isNaN(e);
597
- var Ka = (e) => N(e) && Math.floor(e) === e;
598
- var Ae = (e) => typeof e == "boolean";
599
- var R = (e) => !E(e) && !K(e) && (e == null ? void 0 : e.constructor) === Object;
600
- var z = (e) => Array.isArray(e);
601
- var E = (e) => e === null;
602
- var K = (e) => typeof e == "undefined";
603
- var wt = (e) => L(e) && e.length === 0 || (R(e) || z(e)) && Object.keys(e).length === 0;
604
- function Ya(e, t) {
605
- return t.oneOf.some((r) => Le(e, r) === e) ? e : null;
606
- }
607
- function Ja(e, t) {
591
+ var E = (e) => typeof e == "string";
592
+ var B = (e) => typeof e == "number" && !Number.isNaN(e);
593
+ var _a = (e) => B(e) && Math.floor(e) === e;
594
+ var Oe = (e) => typeof e == "boolean";
595
+ var N = (e) => !k(e) && !W(e) && (e == null ? void 0 : e.constructor) === Object;
596
+ var H = (e) => Array.isArray(e);
597
+ var k = (e) => e === null;
598
+ var W = (e) => typeof e == "undefined";
599
+ var St = (e) => E(e) && e.length === 0 || (N(e) || H(e)) && Object.keys(e).length === 0;
600
+ function Wa(e, t) {
601
+ return t.oneOf.some((r) => Ie(e, r) === e) ? e : null;
602
+ }
603
+ function Ka(e, t) {
608
604
  var o;
609
- let r = t.oneOf.map((a) => am(e, a)).filter((a) => a !== null);
605
+ let r = t.oneOf.map((a) => sm(e, a)).filter((a) => a !== null);
610
606
  return r.length === 0 ? null : (o = r.find((a) => a.some((n) => n !== null))) != null ? o : r[0];
611
607
  }
612
- function am(e, t) {
613
- return !ye(t) || !De(t) ? null : po(e, t);
608
+ function sm(e, t) {
609
+ return !fe(t) || !Ee(t) ? null : po(e, t);
614
610
  }
615
- function Za(e) {
616
- return L(e) && !wt(e) ? e : null;
611
+ function Ya(e) {
612
+ return E(e) && !St(e) ? e : null;
617
613
  }
618
- function Xa(e) {
619
- return N(e) ? e : null;
614
+ function Ja(e) {
615
+ return B(e) ? e : null;
620
616
  }
621
- function Qa(e) {
622
- return Ae(e) ? e : null;
617
+ function Za(e) {
618
+ return Oe(e) ? e : null;
623
619
  }
624
620
  function po(e, t) {
625
- if (!z(e) || !De(t))
621
+ if (!H(e) || !Ee(t))
626
622
  return null;
627
623
  if (e.length > 0) {
628
624
  let r = typeof e[0];
629
625
  if (!e.every((o) => typeof o === r))
630
626
  return new Array(e.length).fill(null);
631
627
  }
632
- return e.map((r) => Le(r, t.items));
628
+ return e.map((r) => Ie(r, t.items));
633
629
  }
634
- function en(e, t) {
630
+ function Xa(e, t) {
635
631
  return Object.keys(t.properties).reduce((r, o) => {
636
- if (e && !K(e[o])) {
637
- let a = e[o], n = t.properties[o], s = $t(a, n);
638
- if (!E(s))
632
+ if (e && !W(e[o])) {
633
+ let a = e[o], n = t.properties[o], s = qt(a, n);
634
+ if (!k(s))
639
635
  return h(i({}, r), { [o]: s });
640
636
  }
641
637
  return r;
642
638
  }, {});
643
639
  }
644
- function tn(e, t) {
640
+ function Qa(e, t) {
645
641
  return t.allOf.reduce((r, o) => {
646
- let a = oe(e, o);
642
+ let a = ae(e, o);
647
643
  return J(a) ? i(i({}, r), a) : r;
648
644
  }, {});
649
645
  }
650
- function rn(e, t) {
651
- return t.oneOf.map((r) => oe(e, r)).reduce((r, o) => E(r) ? o : J(r) && J(o) ? on(r, o) : E(o) ? r : o, null);
646
+ function en(e, t) {
647
+ return t.oneOf.map((r) => ae(e, r)).reduce((r, o) => k(r) ? o : J(r) && J(o) ? tn(r, o) : k(o) ? r : o, null);
652
648
  }
653
- function on(e, t) {
649
+ function tn(e, t) {
654
650
  return Object.keys(t).reduce((r, o) => {
655
651
  let a = e[o], n = t[o];
656
- return J(a) && J(n) ? h(i({}, r), { [o]: on(a, n) }) : h(i({}, r), { [o]: t[o] });
652
+ return J(a) && J(n) ? h(i({}, r), { [o]: tn(a, n) }) : h(i({}, r), { [o]: t[o] });
657
653
  }, i({}, e));
658
654
  }
659
- var $t = (e, t) => J(e) ? oe(e, t) : mo(e) ? nm(e, t) : Le(e, t);
660
- function Le(e, t) {
661
- if (E(e))
655
+ var qt = (e, t) => J(e) ? ae(e, t) : mo(e) ? lm(e, t) : Ie(e, t);
656
+ function Ie(e, t) {
657
+ if (k(e))
662
658
  return null;
663
659
  if (t.oneOf)
664
- return Ya(e, t);
665
- if (!K(t.const) && e === t.const)
660
+ return Wa(e, t);
661
+ if (!W(t.const) && e === t.const)
666
662
  return e;
667
663
  if (t.type)
668
664
  switch (t.type) {
669
665
  case "string":
670
- return Za(e);
666
+ return Ya(e);
671
667
  case "number":
672
668
  case "integer":
673
- return Xa(e);
669
+ return Ja(e);
674
670
  case "boolean":
675
- return Qa(e);
671
+ return Za(e);
676
672
  default:
677
673
  return null;
678
674
  }
679
675
  return null;
680
676
  }
681
- function oe(e, t) {
682
- return fe(t) || ye(t) || E(e) ? null : t.allOf ? tn(e, t) : t.oneOf ? rn(e, t) : !K(t.const) && e === t.const ? e : ce(t) ? en(e, t) : null;
677
+ function ae(e, t) {
678
+ return pe(t) || fe(t) || k(e) ? null : t.allOf ? Qa(e, t) : t.oneOf ? en(e, t) : !W(t.const) && e === t.const ? e : ce(t) ? Xa(e, t) : null;
683
679
  }
684
- function nm(e, t) {
685
- return me(t) ? Ja(e, t) : ye(t) ? po(e, t) : null;
680
+ function lm(e, t) {
681
+ return me(t) ? Ka(e, t) : fe(t) ? po(e, t) : null;
686
682
  }
687
- function Gt(e, t = false) {
688
- return !t || !K(e);
683
+ function $t(e, t = false) {
684
+ return !t || !W(e);
689
685
  }
690
- function an(e, t = false) {
691
- return !t || z(e);
686
+ function rn(e, t = false) {
687
+ return !t || H(e);
692
688
  }
693
- function nn(e, t) {
694
- return !N(t) || L(e) && e.length >= t;
689
+ function on(e, t) {
690
+ return !B(t) || E(e) && e.length >= t;
695
691
  }
696
- function sn(e, t) {
697
- return !N(t) || L(e) && e.length <= t;
692
+ function an(e, t) {
693
+ return !B(t) || E(e) && e.length <= t;
698
694
  }
699
- function ln(e, t) {
695
+ function nn(e, t) {
700
696
  return t === void 0 ? true : e == null ? false : !!new RegExp(t).test(e);
701
697
  }
702
698
  function fo(e, t) {
703
- return !N(t) && !L(t) || (N(e) || L(e)) && e <= t;
699
+ return !B(t) && !E(t) || (B(e) || E(e)) && e <= t;
704
700
  }
705
701
  function yo(e, t) {
706
- return !N(t) && !L(t) || (N(e) || L(e)) && e >= t;
702
+ return !B(t) && !E(t) || (B(e) || E(e)) && e >= t;
707
703
  }
708
- function cn(e, t) {
709
- return !N(t) || z(e) && e.length >= t;
704
+ function sn(e, t) {
705
+ return !B(t) || H(e) && e.length >= t;
710
706
  }
711
- function mn(e, t) {
712
- return !N(t) || z(e) && e.length <= t;
707
+ function ln(e, t) {
708
+ return !B(t) || H(e) && e.length <= t;
713
709
  }
714
- function _e(e, t, r) {
710
+ function $e(e, t, r) {
715
711
  if (t.const)
716
712
  return So(e, t, r);
717
- if (E(e))
713
+ if (k(e))
718
714
  return r ? ["required"] : [];
719
- if (_a(t))
715
+ if ($a(t))
720
716
  return ho(e, t, r);
721
717
  switch (t.type) {
722
718
  case "number":
723
- return Sr(e, t, r);
719
+ return wr(e, t, r);
724
720
  case "integer":
725
721
  return go(e, t, r);
726
722
  case "boolean":
727
723
  return bo(e, t, r);
728
724
  case "array":
729
- return Ft(e, t, r);
725
+ return wt(e, t, r);
730
726
  case "object":
731
- return im(e, t);
727
+ return cm(e, t);
732
728
  default:
733
729
  return [];
734
730
  }
735
731
  }
736
732
  function ho(e, t, r) {
737
- if (!L(e) && !E(e))
733
+ if (!E(e) && !k(e))
738
734
  return ["type"];
739
735
  if (e === "" && r)
740
736
  return ["required"];
741
737
  let o = [];
742
- return Gt(e, r) || o.push("required"), nn(e, t.minLength) || o.push("minLength"), sn(e, t.maxLength) || o.push("maxLength"), ln(e, t.pattern) || o.push("pattern"), yo(e, t.minimum) || o.push("minimum"), fo(e, t.maximum) || o.push("maximum"), o;
738
+ return $t(e, r) || o.push("required"), on(e, t.minLength) || o.push("minLength"), an(e, t.maxLength) || o.push("maxLength"), nn(e, t.pattern) || o.push("pattern"), yo(e, t.minimum) || o.push("minimum"), fo(e, t.maximum) || o.push("maximum"), o;
743
739
  }
744
- function Sr(e, t, r) {
745
- if (!N(e) && !E(e))
740
+ function wr(e, t, r) {
741
+ if (!B(e) && !k(e))
746
742
  return ["type"];
747
743
  let o = [];
748
- return Gt(e, r) || o.push("required"), yo(e, t.minimum) || o.push("minimum"), fo(e, t.maximum) || o.push("maximum"), o;
744
+ return $t(e, r) || o.push("required"), yo(e, t.minimum) || o.push("minimum"), fo(e, t.maximum) || o.push("maximum"), o;
749
745
  }
750
746
  function go(e, t, r) {
751
- return Ka(e) ? Sr(e, t, r) : ["type"];
747
+ return _a(e) ? wr(e, t, r) : ["type"];
752
748
  }
753
749
  function bo(e, t, r) {
754
- if (!Ae(e) && !E(e))
750
+ if (!Oe(e) && !k(e))
755
751
  return ["type"];
756
752
  let o = [];
757
- return Gt(e, r) || o.push("required"), o;
753
+ return $t(e, r) || o.push("required"), o;
758
754
  }
759
755
  function So(e, t, r) {
760
- return Gt(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
756
+ return $t(e, r) ? e !== t.const ? ["const"] : [] : ["required"];
761
757
  }
762
- function Ft(e, t, r) {
763
- if (!z(e) && !E(e))
758
+ function wt(e, t, r) {
759
+ if (!H(e) && !k(e))
764
760
  return ["type"];
765
- if (!an(e, r))
761
+ if (!rn(e, r))
766
762
  return ["required"];
767
763
  let o = [];
768
- return cn(e, t.minItems) || o.push("minItems"), mn(e, t.maxItems) || o.push("maxItems"), o;
764
+ return sn(e, t.minItems) || o.push("minItems"), ln(e, t.maxItems) || o.push("maxItems"), o;
769
765
  }
770
- function dn(e, t) {
771
- return E(e) ? ["type"] : [];
766
+ function cn(e, t) {
767
+ return k(e) ? ["type"] : [];
772
768
  }
773
- function im(e, t) {
774
- return J(e) ? z(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, a) => o && a, true) ? [] : ["required"] : [] : ["type"];
769
+ function cm(e, t) {
770
+ return J(e) ? H(t.required) ? t.required.map((o) => typeof e[o] != "undefined").reduce((o, a) => o && a, true) ? [] : ["required"] : [] : ["type"];
775
771
  }
776
- function sm(e, t) {
772
+ function mm(e, t) {
777
773
  return !ho(e, t).length;
778
774
  }
779
- function lm(e, t) {
780
- return !Sr(e, t).length;
775
+ function dm(e, t) {
776
+ return !wr(e, t).length;
781
777
  }
782
- function cm(e, t) {
778
+ function um(e, t) {
783
779
  return !go(e, t).length;
784
780
  }
785
- function mm(e, t) {
781
+ function pm(e, t) {
786
782
  return !bo(e, t).length;
787
783
  }
788
- function dm(e, t) {
784
+ function fm(e, t) {
789
785
  return !So(e, t).length;
790
786
  }
791
- function um(e, t) {
792
- return !R(e) || t.type !== "object" || !R(t.properties) ? false : Object.keys(t.properties).map((r) => pm(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
787
+ function ym(e, t) {
788
+ return !N(e) || t.type !== "object" || !N(t.properties) ? false : Object.keys(t.properties).map((r) => hm(e[r], t.properties[r], t.required && t.required.includes(r))).every((r) => r);
793
789
  }
794
- function pm(e, t, r) {
790
+ function hm(e, t, r) {
795
791
  return typeof e == "undefined" ? !r : $(e, t);
796
792
  }
797
- function fm(e, t) {
798
- return t.type !== "array" || !R(t.items) || Ft(e, t).length > 0 ? false : Array.isArray(e) && De(t) && e.map((r) => $(r, t.items)).every((r) => r);
793
+ function gm(e, t) {
794
+ return t.type !== "array" || !N(t.items) || wt(e, t).length > 0 ? false : Array.isArray(e) && Ee(t) && e.map((r) => $(r, t.items)).every((r) => r);
799
795
  }
800
- function ym(e, t) {
801
- return z(t.oneOf) ? t.oneOf.some((r) => $(e, r)) : false;
796
+ function bm(e, t) {
797
+ return H(t.oneOf) ? t.oneOf.some((r) => $(e, r)) : false;
802
798
  }
803
- function hm(e, t) {
804
- return z(t.allOf) ? t.allOf.map((r) => $(e, r)).every((r) => r) : false;
799
+ function Sm(e, t) {
800
+ return H(t.allOf) ? t.allOf.map((r) => $(e, r)).every((r) => r) : false;
805
801
  }
806
- function gm(e, t) {
807
- return !dn(e, t).length;
802
+ function wm(e, t) {
803
+ return !cn(e, t).length;
808
804
  }
809
805
  function $(e, t) {
810
806
  if (t.oneOf)
811
- return ym(e, t);
807
+ return bm(e, t);
812
808
  if (t.allOf)
813
- return hm(e, t);
809
+ return Sm(e, t);
814
810
  if (t.const)
815
- return dm(e, t);
811
+ return fm(e, t);
816
812
  switch (t.type) {
817
813
  case "string":
818
- return sm(e, t);
814
+ return mm(e, t);
819
815
  case "number":
820
- return lm(e, t);
816
+ return dm(e, t);
821
817
  case "integer":
822
- return cm(e, t);
818
+ return um(e, t);
823
819
  case "boolean":
824
- return mm(e, t);
820
+ return pm(e, t);
825
821
  case "array":
826
- return fm(e, t);
822
+ return gm(e, t);
827
823
  case "object":
828
- return um(e, t);
824
+ return ym(e, t);
829
825
  case "blob":
830
- return gm(e, t);
826
+ return wm(e, t);
831
827
  default:
832
828
  return false;
833
829
  }
834
830
  }
835
- var xn = require("react");
836
- function bm(e) {
831
+ var wn = require("react");
832
+ function Fm(e) {
837
833
  let t = new Date(e), r = `${t.getMonth() + 1}`, o = `${t.getDate()}`, a = t.getFullYear(), n = r.length < 2 ? `0${r}` : r, s = o.length < 2 ? `0${o}` : o;
838
834
  return [a, n, s].join("-");
839
835
  }
840
- var un = (e) => {
836
+ var mn = (e) => {
841
837
  if (!e)
842
838
  return null;
843
839
  let [t, r, o] = e.split("-").map((a) => parseInt(a, 10));
844
- return !N(t) || !N(r) || !N(o) ? null : new Date(t, r - 1, o);
840
+ return !B(t) || !B(r) || !B(o) ? null : new Date(t, r - 1, o);
845
841
  };
846
- var pn = (e) => bm(e);
847
- var Ct = (e, t) => {
842
+ var dn = (e) => Fm(e);
843
+ var Ft = (e, t) => {
848
844
  let r, o, a = () => {
849
845
  r && (clearTimeout(r), r = null), o = null;
850
846
  }, n = (...s) => {
@@ -858,20 +854,20 @@ var require_main_min = __commonJS({
858
854
  r !== null && (e(...o), a());
859
855
  }, n;
860
856
  };
861
- var We = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => We(r, t[o])) : !!(fn(e) && fn(t) && Sm(e, t));
862
- var Sm = (e, t) => {
857
+ var Ge = (e, t) => e === t ? true : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((r, o) => Ge(r, t[o])) : !!(un(e) && un(t) && Cm(e, t));
858
+ var Cm = (e, t) => {
863
859
  let r = Object.keys(e), o = Object.keys(t);
864
- return r.length === o.length && r.every((a) => Object.prototype.hasOwnProperty.call(t, a) && We(e[a], t[a]));
860
+ return r.length === o.length && r.every((a) => Object.prototype.hasOwnProperty.call(t, a) && Ge(e[a], t[a]));
865
861
  };
866
- var fn = (e) => typeof e == "object" && e !== null;
867
- function wr(e) {
862
+ var un = (e) => typeof e == "object" && e !== null;
863
+ function Fr(e) {
868
864
  return Math.floor(e / 1024);
869
865
  }
870
- var yn = (e) => new Promise((t, r) => {
866
+ var pn = (e) => new Promise((t, r) => {
871
867
  let o = new FileReader();
872
868
  o.readAsDataURL(e), o.addEventListener("load", () => t(o.result)), o.addEventListener("error", (a) => r(a));
873
869
  });
874
- function hn(e, t) {
870
+ function fn(e, t) {
875
871
  let r = t.reduce((o, a) => h(i({}, o), { [a.id]: a }), {});
876
872
  for (let o of e) {
877
873
  let a = r[o.id];
@@ -881,30 +877,29 @@ var require_main_min = __commonJS({
881
877
  return true;
882
878
  }
883
879
  var ve = (e = "") => `${e ? `${e}-` : ""}${Math.floor(1e8 * Math.random())}`;
884
- var gn = { DAY_MONTH_YEAR: "day-month-year", MONTH_YEAR: "month-year" };
885
- var B = { RADIO: "radio", CHECKBOX: "checkbox", SELECT: "select", FILE: "file", DATE: "date", DATETIME: "date-time", DATELOOKUP: "date-lookup", TEL: "tel", NUMBER: "number", HIDDEN: "hidden", PASSWORD: "password", TEXT: "text", TEXTAREA: "textarea", UPLOAD: "upload", TAB: "tab" };
886
- var bn = { SHORT: "short", LONG: "long" };
887
- var he = { READ_ONLY: "readOnly", PERSIST_ASYNC: "persistAsync", VALIDATION_ASYNC: "validationAsync", OBJECT: "object", PROMOTED_ONE_OF: "promotedOneOf", ONE_OF: "oneOf", ALL_OF: "allOf", BASIC: "basic", ARRAY: "array" };
888
- var Sn = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
889
- var wm = (e) => !!e.readOnly && fe(e);
890
- var Fm = (e) => !!e.oneOf && !!e.promotion;
891
- var Cm = me;
892
- var xm = Ht;
893
- var wo = (e) => wm(e) ? he.READ_ONLY : St(e) ? he.PERSIST_ASYNC : qt(e) ? he.VALIDATION_ASYNC : ce(e) ? he.OBJECT : ye(e) ? he.ARRAY : Fm(e) ? he.PROMOTED_ONE_OF : Cm(e) ? he.ONE_OF : xm(e) ? he.ALL_OF : fe(e) ? he.BASIC : null;
894
- function wn(e) {
895
- return wo(e) === he.BASIC && e.type !== "boolean" && e.format !== "base64url";
896
- }
897
- var Fn = { LAYOUT: "layout", CAMERA: "camera" };
898
- var Om = (e) => Am(e) && vm(e) && Pm(e);
899
- var Am = (e) => (e == null ? void 0 : e.type) === "form";
900
- var vm = (e) => {
880
+ var yn = { DAY_MONTH_YEAR: "day-month-year", MONTH_YEAR: "month-year" };
881
+ var R = { RADIO: "radio", CHECKBOX: "checkbox", SELECT: "select", FILE: "file", DATE: "date", DATETIME: "date-time", DATELOOKUP: "date-lookup", TEL: "tel", NUMBER: "number", HIDDEN: "hidden", PASSWORD: "password", TEXT: "text", TEXTAREA: "textarea", UPLOAD: "upload", TAB: "tab" };
882
+ var hn = { SHORT: "short", LONG: "long" };
883
+ var ye = { READ_ONLY: "readOnly", PERSIST_ASYNC: "persistAsync", VALIDATION_ASYNC: "validationAsync", OBJECT: "object", PROMOTED_ONE_OF: "promotedOneOf", ONE_OF: "oneOf", ALL_OF: "allOf", BASIC: "basic", ARRAY: "array" };
884
+ var gn = { EXTRA_SMALL: "xs", SMALL: "sm", MEDIUM: "md", LARGE: "lg", EXTRA_LARGE: "xl" };
885
+ var xm = (e) => !!e.readOnly && pe(e);
886
+ var Om = (e) => !!e.oneOf && !!e.promotion;
887
+ var vm = me;
888
+ var Am = Vt;
889
+ var wo = (e) => xm(e) ? ye.READ_ONLY : bt(e) ? ye.PERSIST_ASYNC : Ht(e) ? ye.VALIDATION_ASYNC : ce(e) ? ye.OBJECT : fe(e) ? ye.ARRAY : Om(e) ? ye.PROMOTED_ONE_OF : vm(e) ? ye.ONE_OF : Am(e) ? ye.ALL_OF : pe(e) ? ye.BASIC : null;
890
+ function bn(e) {
891
+ return wo(e) === ye.BASIC && e.type !== "boolean" && e.format !== "base64url";
892
+ }
893
+ var Sn = (e) => Pm(e) && km(e) && Mm(e);
894
+ var Pm = (e) => !e.type || e.type === "form";
895
+ var km = (e) => {
901
896
  var t;
902
897
  return ((t = e == null ? void 0 : e.actions) == null ? void 0 : t.length) === 1;
903
898
  };
904
- var Pm = (e) => {
899
+ var Mm = (e) => {
905
900
  if (!e.schemas)
906
901
  return false;
907
- let t = Fr(e.schemas);
902
+ let t = Cr(e.schemas);
908
903
  if ((t == null ? void 0 : t.length) !== 1)
909
904
  return false;
910
905
  let r = t[0];
@@ -913,21 +908,20 @@ var require_main_min = __commonJS({
913
908
  let o = Object.values(r.properties)[0];
914
909
  return uo(o) ? o.source === "camera" : false;
915
910
  };
916
- var Fr = (e) => e.filter((t) => ce(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);
917
- var Cn = (e) => Om(e) ? Fn.CAMERA : Fn.LAYOUT;
918
- function On(e, t) {
919
- return (0, xn.useCallback)(Ct(e, t), [e, t]);
911
+ var Cr = (e) => e.filter((t) => ce(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);
912
+ function Fn(e, t) {
913
+ return (0, wn.useCallback)(Ft(e, t), [e, t]);
920
914
  }
921
- var _t = require("react");
922
- function An(e) {
923
- let [t, r] = (0, _t.useState)(null), [o, a] = (0, _t.useState)(false), n = () => a(true);
924
- return (0, _t.useEffect)(() => {
915
+ var Gt = require("react");
916
+ function Cn(e) {
917
+ let [t, r] = (0, Gt.useState)(null), [o, a] = (0, Gt.useState)(false), n = () => a(true);
918
+ return (0, Gt.useEffect)(() => {
925
919
  e && (a(false), r(window.open(e, "_blank")));
926
920
  }, [e]), { requiresManualTrigger: !!(e && !t && !o), dismissConfirmation: n };
927
921
  }
928
- var Wt = require("react");
929
- function vn(e, t) {
930
- let r = re(), o = (0, Wt.useMemo)(() => {
922
+ var _t = require("react");
923
+ function xn(e, t) {
924
+ let r = re(), o = (0, _t.useMemo)(() => {
931
925
  if (e)
932
926
  return () => r(e.url).then((n) => {
933
927
  if (n.ok)
@@ -939,37 +933,37 @@ var require_main_min = __commonJS({
939
933
  else
940
934
  throw new Error("failed");
941
935
  });
942
- }, [e, r]), a = (0, Wt.useCallback)((n) => {
936
+ }, [e, r]), a = (0, _t.useCallback)((n) => {
943
937
  let m = ((e == null ? void 0 : e.responseHandlers) || []).find((d) => d.result === n.result);
944
938
  if (m != null && m.action) {
945
939
  let { action: d } = m;
946
940
  if (d.exit) {
947
- let u = i(i({}, d.result || {}), n.data || {});
948
- t(h(i({}, d), { result: u }));
941
+ let p = i(i({}, d.result || {}), n.data || {});
942
+ t(h(i({}, d), { result: p }));
949
943
  } else {
950
- let u = i(i({}, d.data || {}), n.data || {});
951
- t(h(i({}, d), { data: u }));
944
+ let p = i(i({}, d.data || {}), n.data || {});
945
+ t(h(i({}, d), { data: p }));
952
946
  }
953
947
  return false;
954
948
  }
955
949
  return true;
956
950
  }, [e == null ? void 0 : e.responseHandlers, t]);
957
- Cr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: a, onFailure: (0, Wt.useCallback)(() => {
951
+ xr({ asyncFn: o, interval: (e == null ? void 0 : e.interval) || 0, maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: (e == null ? void 0 : e.maxConsecutiveFails) || 0, onPollingResponse: a, onFailure: (0, _t.useCallback)(() => {
958
952
  e && t(e.onError.action);
959
953
  }, [t, e]) });
960
954
  }
961
- var gs = require("react");
962
- var bs = require("react-intl");
963
- var Pn = require("react-intl");
964
- var Kt = (0, Pn.defineMessages)({ genericError: { id: "dynamicFlows.PersistAsyncSchema.genericError", defaultMessage: "Something went wrong, please try again later!", description: "Generic error message for persist async schema" } });
965
- var ft = require("react");
966
- var us = require("react-intl");
967
- var km = { allOf: [{ title: "Number schemas", type: "object", displayOrder: ["number"], properties: { number: { type: "number", title: "Number input", minimum: 2, maximum: 200, default: 1, help: { markdown: "2 or more" }, validationMessages: { min: "Too low buddy!", max: "Crazy high!" } } }, required: ["number"] }, { title: "String schemas", type: "object", displayOrder: ["string", "date", "phone", "file"], properties: { string: { type: "string", title: "Text input", minLength: 2, maxLength: 8, pattern: "^[a-z]+$", default: "abc", help: { markdown: "Keep it secret, Keep it safe" } }, date: { type: "string", format: "date", title: "Date input", minimum: "2000-02-01", maximum: "2010-01-01", validationMessages: { min: "Must be after Feb 2000", max: "Must be before Jan 2010" } }, phone: { type: "string", format: "phone", title: "Phone input", minLength: 10, maxLength: 12 }, file: { type: "string", format: "base64url", title: "File input" } }, required: ["string"] }, { title: "Boolean schemas", type: "object", displayOrder: ["boolean"], properties: { boolean: { type: "boolean", title: "Boolean input", width: "md" } } }, { title: "OneOf Const schema", type: "object", displayOrder: ["select", "radio"], properties: { select: { title: "Select", placeholder: "Please choose", oneOf: [{ title: "One", const: "one" }, { title: "Two", const: "two" }, { title: "Three", const: "three" }] }, radio: { title: "Radio", placeholder: "Please choose", oneOf: [{ title: "One", const: "one" }, { title: "Two", const: "two" }] } }, required: ["select", "radio"] }] };
968
- var xr = km;
969
- var ms = Ee(lt());
970
- var ie = require("react");
971
- var kn = require("@transferwise/components");
972
- var j = (e) => {
955
+ var hs = require("react");
956
+ var gs = require("react-intl");
957
+ var On = require("react-intl");
958
+ var Wt = (0, On.defineMessages)({ genericError: { id: "dynamicFlows.PersistAsyncSchema.genericError", defaultMessage: "Something went wrong, please try again later!", description: "Generic error message for persist async schema" } });
959
+ var pt = require("react");
960
+ var ds = require("react-intl");
961
+ var Em = { allOf: [{ title: "Number schemas", type: "object", displayOrder: ["number"], properties: { number: { type: "number", title: "Number input", minimum: 2, maximum: 200, default: 1, help: { markdown: "2 or more" }, validationMessages: { min: "Too low buddy!", max: "Crazy high!" } } }, required: ["number"] }, { title: "String schemas", type: "object", displayOrder: ["string", "date", "phone", "file"], properties: { string: { type: "string", title: "Text input", minLength: 2, maxLength: 8, pattern: "^[a-z]+$", default: "abc", help: { markdown: "Keep it secret, Keep it safe" } }, date: { type: "string", format: "date", title: "Date input", minimum: "2000-02-01", maximum: "2010-01-01", validationMessages: { min: "Must be after Feb 2000", max: "Must be before Jan 2010" } }, phone: { type: "string", format: "phone", title: "Phone input", minLength: 10, maxLength: 12 }, file: { type: "string", format: "base64url", title: "File input" } }, required: ["string"] }, { title: "Boolean schemas", type: "object", displayOrder: ["boolean"], properties: { boolean: { type: "boolean", title: "Boolean input", width: "md" } } }, { title: "OneOf Const schema", type: "object", displayOrder: ["select", "radio"], properties: { select: { title: "Select", placeholder: "Please choose", oneOf: [{ title: "One", const: "one" }, { title: "Two", const: "two" }, { title: "Three", const: "three" }] }, radio: { title: "Radio", placeholder: "Please choose", oneOf: [{ title: "One", const: "one" }, { title: "Two", const: "two" }] } }, required: ["select", "radio"] }] };
962
+ var Or = Em;
963
+ var cs = Me(st());
964
+ var se = require("react");
965
+ var vn = require("@transferwise/components");
966
+ var U = (e) => {
973
967
  switch (e) {
974
968
  case "xs":
975
969
  return "m-b-0";
@@ -985,7 +979,7 @@ var require_main_min = __commonJS({
985
979
  return "";
986
980
  }
987
981
  };
988
- var Mm = (e) => {
982
+ var Im = (e) => {
989
983
  switch (e) {
990
984
  case "right":
991
985
  return "text-xs-right";
@@ -996,13 +990,13 @@ var require_main_min = __commonJS({
996
990
  return "";
997
991
  }
998
992
  };
999
- var Ke = (e) => `${Mm(e.align)} ${j(e.margin)}`;
1000
- var Mn = require("react/jsx-runtime");
1001
- var Em = (e) => {
993
+ var De = (e) => `${Im(e.align)} ${U(e.margin)}`;
994
+ var An = require("react/jsx-runtime");
995
+ var Dm = (e) => {
1002
996
  let t = e.component;
1003
- return (0, Mn.jsx)(kn.Alert, { type: Dm(Im(t.context)), className: j(t.margin), message: t.markdown });
997
+ return (0, An.jsx)(vn.Alert, { type: Tm(Lm(t.context)), className: U(t.margin), message: t.markdown });
1004
998
  };
1005
- var Im = (e) => {
999
+ var Lm = (e) => {
1006
1000
  switch (e) {
1007
1001
  case "success":
1008
1002
  return "positive";
@@ -1017,15 +1011,15 @@ var require_main_min = __commonJS({
1017
1011
  return e;
1018
1012
  }
1019
1013
  };
1020
- var Dm = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
1021
- var ae = Em;
1022
- var ct = require("react/jsx-runtime");
1023
- var Lm = (e) => {
1024
- let t = e.component, r = j(t.margin || t.border ? "lg" : "xs");
1025
- return !t.width || t.width === "xl" ? (0, ct.jsx)("div", { className: r + En(t.border), children: (0, ct.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, ct.jsx)("div", { className: "row", children: (0, ct.jsx)("div", { className: r + Tm(t), children: (0, ct.jsx)("div", { className: En(t.border), children: (0, ct.jsx)(ne, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
1014
+ var Tm = (e) => !e || !["neutral", "warning", "negative", "positive"].includes(e) ? "neutral" : e;
1015
+ var ne = Dm;
1016
+ var lt = require("react/jsx-runtime");
1017
+ var Bm = (e) => {
1018
+ let t = e.component, r = U(t.margin || t.border ? "lg" : "xs");
1019
+ return !t.width || t.width === "xl" ? (0, lt.jsx)("div", { className: r + Pn(t.border), children: (0, lt.jsx)(ie, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) : (0, lt.jsx)("div", { className: "row", children: (0, lt.jsx)("div", { className: r + Nm(t), children: (0, lt.jsx)("div", { className: Pn(t.border), children: (0, lt.jsx)(ie, { components: t.components, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }) }) });
1026
1020
  };
1027
- var En = (e) => e ? " well p-b-0" : "";
1028
- var Tm = (e) => {
1021
+ var Pn = (e) => e ? " well p-b-0" : "";
1022
+ var Nm = (e) => {
1029
1023
  switch (e.width) {
1030
1024
  case "xs":
1031
1025
  return " col-md-4 col-md-offset-4";
@@ -1040,15 +1034,21 @@ var require_main_min = __commonJS({
1040
1034
  return " col-xs-12";
1041
1035
  }
1042
1036
  };
1043
- var Fo = Lm;
1037
+ var Fo = Bm;
1044
1038
  var In = require("@transferwise/components");
1045
- var Dn = require("react/jsx-runtime");
1046
- var Nm = (e) => {
1047
- let { component: t, onAction: r } = e, o = t.action, { type: a, priority: n } = Um(o), { loading: s } = mr(), m = j(t.margin || "md") + " " + Bm(o);
1048
- return (0, Dn.jsx)(In.Button, { size: Rm(t.size), type: a, priority: n, block: true, className: m, disabled: o.disabled || s, onClick: () => r(o), children: o.title });
1039
+ var Rm = { primary: "primary", secondary: "secondary", link: "tertiary", positive: "primary", negative: "primary" };
1040
+ var kn = (e) => {
1041
+ var r;
1042
+ let t = e.action.type;
1043
+ return (r = e.control) != null ? r : t ? Rm[t] : "secondary";
1049
1044
  };
1050
- var Bm = (e) => e.primary ? "btn-primary" : "";
1051
- var Rm = (e) => {
1045
+ var jm = { primary: "neutral", secondary: "neutral", link: "neutral", positive: "positive", negative: "negative" };
1046
+ var Mn = (e) => {
1047
+ var o;
1048
+ let t = e.action.type, r = (o = e.context) != null ? o : t ? jm[t] : "neutral";
1049
+ return r === "neutral" ? "accent" : r;
1050
+ };
1051
+ var En = (e) => {
1052
1052
  switch (e) {
1053
1053
  case "xs":
1054
1054
  case "sm":
@@ -1061,116 +1061,106 @@ var require_main_min = __commonJS({
1061
1061
  return "md";
1062
1062
  }
1063
1063
  };
1064
+ var Dn = require("react/jsx-runtime");
1064
1065
  var Um = (e) => {
1065
- switch (e.type) {
1066
- case "link":
1067
- return { type: "accent", priority: "tertiary" };
1068
- case "primary":
1069
- return { type: "accent", priority: "primary" };
1070
- case "secondary":
1071
- return { type: "accent", priority: "secondary" };
1072
- case "positive":
1073
- return { type: "positive", priority: "primary" };
1074
- case "negative":
1075
- return { type: "negative", priority: "primary" };
1076
- default:
1077
- return { type: "accent", priority: "secondary" };
1078
- }
1066
+ var d;
1067
+ let { component: t, onAction: r } = e, o = t.action, a = Mn(t), n = kn(t), { loading: s } = dr(), m = U(t.margin || "md");
1068
+ return (0, Dn.jsx)(In.Button, { size: En(t.size), type: a, priority: n, block: true, className: m, disabled: t.disabled || o.disabled || s, onClick: () => r(o), children: (d = t.title) != null ? d : o.title });
1079
1069
  };
1080
- var Co = Nm;
1081
- var mt = require("react/jsx-runtime");
1082
- var jm = (e) => {
1083
- let t = e.component, { leftWidth: r, rightWidth: o } = zm(t.bias);
1084
- return (0, mt.jsxs)("div", { className: `${j(t.margin || "xs")} row`, children: [(0, mt.jsx)("div", { className: `${r} m-b-0`, children: (0, mt.jsx)(ne, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, mt.jsx)("div", { className: `${o} m-b-0`, children: (0, mt.jsx)(ne, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
1085
- };
1086
- var zm = (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" };
1087
- var xo = jm;
1088
- var Pe = require("@transferwise/components");
1089
- var Ye = require("react/jsx-runtime");
1090
- var Vm = (e) => {
1070
+ var Co = Um;
1071
+ var ct = require("react/jsx-runtime");
1072
+ var zm = (e) => {
1073
+ let t = e.component, { leftWidth: r, rightWidth: o } = Vm(t.bias);
1074
+ return (0, ct.jsxs)("div", { className: `${U(t.margin || "xs")} row`, children: [(0, ct.jsx)("div", { className: `${r} m-b-0`, children: (0, ct.jsx)(ie, { components: t.left, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) }), (0, ct.jsx)("div", { className: `${o} m-b-0`, children: (0, ct.jsx)(ie, { components: t.right, model: e.model, submitted: e.submitted, errors: e.errors, onModelChange: e.onModelChange, onAction: e.onAction, onPersistAsync: e.onPersistAsync }) })] });
1075
+ };
1076
+ var Vm = (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" };
1077
+ var xo = zm;
1078
+ var Ae = require("@transferwise/components");
1079
+ var _e = require("react/jsx-runtime");
1080
+ var Hm = (e) => {
1091
1081
  var t, r, o;
1092
1082
  if ((t = e.icon) != null && t.name)
1093
- return (0, Ye.jsx)(Pe.Avatar, { type: Pe.AvatarType.ICON, children: (0, Ye.jsx)(Je, { type: e.icon.name }) });
1083
+ return (0, _e.jsx)(Ae.Avatar, { type: Ae.AvatarType.ICON, children: (0, _e.jsx)(We, { type: e.icon.name }) });
1094
1084
  if ((r = e.icon) != null && r.text)
1095
- return (0, Ye.jsx)(Pe.Avatar, { type: Pe.AvatarType.INITIALS, children: e.icon.text });
1085
+ return (0, _e.jsx)(Ae.Avatar, { type: Ae.AvatarType.INITIALS, children: e.icon.text });
1096
1086
  if ((o = e.image) != null && o.url) {
1097
1087
  let { url: a, text: n } = e.image;
1098
- return (0, Ye.jsx)("img", { src: a, alt: n });
1088
+ return (0, _e.jsx)("img", { src: a, alt: n });
1099
1089
  }
1100
1090
  };
1101
- var Hm = (e) => {
1091
+ var qm = (e) => {
1102
1092
  let t = e.component, r = (o, a) => {
1103
- let n = Vm(o);
1104
- return (0, Ye.jsx)(Pe.NavigationOption, { title: o.title, content: o.description, disabled: o.disabled, media: n, showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => a(o.action) }, JSON.stringify(o));
1093
+ let n = Hm(o);
1094
+ return (0, _e.jsx)(Ae.NavigationOption, { title: o.title, content: o.description, disabled: o.disabled, media: n, showMediaCircle: false, showMediaAtAllSizes: true, onClick: () => a(o.action) }, JSON.stringify(o));
1105
1095
  };
1106
- return (0, Ye.jsx)("div", { className: j(t.margin), children: (0, Ye.jsx)(Pe.NavigationOptionsList, { children: t.options.map((o) => r(o, e.onAction)) }) });
1096
+ return (0, _e.jsx)("div", { className: U(t.margin), children: (0, _e.jsx)(Ae.NavigationOptionsList, { children: t.options.map((o) => r(o, e.onAction)) }) });
1107
1097
  };
1108
- var Oo = Hm;
1098
+ var Oo = qm;
1109
1099
  var Ln = require("react/jsx-runtime");
1110
- var qm = ({ component: e }) => {
1111
- let r = `m-t-0 ${j(e.margin)}`;
1100
+ var $m = ({ component: e }) => {
1101
+ let r = `m-t-0 ${U(e.margin)}`;
1112
1102
  return (0, Ln.jsx)("hr", { className: r });
1113
1103
  };
1114
- var Ao = qm;
1115
- var xt = require("@transferwise/components");
1104
+ var vo = $m;
1105
+ var Ct = require("@transferwise/components");
1116
1106
  var Ar = require("react");
1117
- var Bn = require("react-intl");
1107
+ var Nn = require("react-intl");
1118
1108
  var Tn = require("react-intl");
1119
- var Nn = (0, Tn.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
1120
- var Ze = require("react/jsx-runtime");
1121
- var $m = ({ component: e, onAction: t }) => {
1122
- let { requestUrl: r, responseHandlers: o, polling: a, retryTitle: n } = e, s = (0, Bn.useIntl)(), m = (0, Ar.useCallback)(() => window.open(r, "df-external-window"), [r]);
1109
+ var Bn = (0, Tn.defineMessages)({ retryTitle: { id: "dynamicFlows.DynamicExternal.retryTitle", defaultMessage: "Reopen window", description: "" } });
1110
+ var Ke = require("react/jsx-runtime");
1111
+ var Gm = ({ component: e, onAction: t }) => {
1112
+ let { requestUrl: r, responseHandlers: o, polling: a, retryTitle: n } = e, s = (0, Nn.useIntl)(), m = (0, Ar.useCallback)(() => window.open(r, "df-external-window"), [r]);
1123
1113
  (0, Ar.useEffect)(() => {
1124
1114
  m();
1125
1115
  }, [m]);
1126
1116
  let d = a && o ? h(i({}, a), { responseHandlers: o }) : void 0;
1127
- return vn(d, t), (0, Ze.jsxs)(Ze.Fragment, { children: [(0, Ze.jsx)(xt.Loader, { size: xt.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Ze.jsx)("br", {}), (0, Ze.jsx)(xt.Button, { priority: "tertiary", block: true, onClick: m, children: n || s.formatMessage(Nn.retryTitle) })] });
1128
- };
1129
- var vo = $m;
1130
- var Rn = Ee(lt());
1131
- var Un = require("react");
1132
- var ke = require("react/jsx-runtime");
1133
- var Gm = (e, t) => t.map((r) => oe(e, r) || {});
1134
- var _m = (e) => e.reduce((t, r) => i(i({}, r), t), {});
1135
- var Wm = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1136
- var jn = (e) => {
1117
+ return xn(d, t), (0, Ke.jsxs)(Ke.Fragment, { children: [(0, Ke.jsx)(Ct.Loader, { size: Ct.Size.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }), (0, Ke.jsx)("br", {}), (0, Ke.jsx)(Ct.Button, { priority: "tertiary", block: true, onClick: m, children: n || s.formatMessage(Bn.retryTitle) })] });
1118
+ };
1119
+ var Ao = Gm;
1120
+ var Rn = Me(st());
1121
+ var jn = require("react");
1122
+ var Pe = require("react/jsx-runtime");
1123
+ var _m = (e, t) => t.map((r) => ae(e, r) || {});
1124
+ var Wm = (e) => e.reduce((t, r) => i(i({}, r), t), {});
1125
+ var Km = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1126
+ var Un = (e) => {
1137
1127
  let t = (a, n) => {
1138
1128
  let s = e.schema.allOf[a];
1139
- r[a] = oe(n.model, s) || {}, o(r), e.onChange(h(i({}, n), { model: _m(r) }));
1140
- }, [r, o] = (0, Un.useState)(Gm(e.model, e.schema.allOf));
1141
- return (0, ke.jsxs)(ke.Fragment, { children: [e.schema.title && (0, ke.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, ke.jsx)("p", { children: e.schema.description }), (0, ke.jsx)("div", { className: "row", children: e.schema.allOf.map((a, n) => (0, ke.jsx)("div", { className: (0, Rn.default)(Wm(a.width)), children: (0, ke.jsx)(de, { schema: a, model: r[n], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (s) => t(n, h(i({}, s), { model: s.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
1142
- };
1143
- jn.defaultProps = { disabled: false };
1144
- var vr = jn;
1129
+ r[a] = ae(n.model, s) || {}, o(r), e.onChange(h(i({}, n), { model: Wm(r) }));
1130
+ }, [r, o] = (0, jn.useState)(_m(e.model, e.schema.allOf));
1131
+ return (0, Pe.jsxs)(Pe.Fragment, { children: [e.schema.title && (0, Pe.jsx)("h3", { className: "page-header", children: e.schema.title }), e.schema.description && (0, Pe.jsx)("p", { children: e.schema.description }), (0, Pe.jsx)("div", { className: "row", children: e.schema.allOf.map((a, n) => (0, Pe.jsx)("div", { className: (0, Rn.default)(Km(a.width)), children: (0, Pe.jsx)(de, { schema: a, model: r[n], errors: e.errors, submitted: e.submitted, disabled: e.disabled, onChange: (s) => t(n, h(i({}, s), { model: s.model })), onPersistAsync: e.onPersistAsync }) }, n)) })] });
1132
+ };
1133
+ Un.defaultProps = { disabled: false };
1134
+ var Pr = Un;
1135
+ var Mr = require("@transferwise/components");
1136
+ var Qn = Me(st());
1137
+ var Kt = require("react");
1145
1138
  var kr = require("@transferwise/components");
1146
- var Qn = Ee(lt());
1147
- var Yt = require("react");
1148
- var Pr = require("@transferwise/components");
1149
1139
  var Po = require("@transferwise/formatting");
1150
1140
  var Vn = require("react-intl");
1151
1141
  var zn = require("react-intl");
1152
- var ge = (0, zn.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: "" } });
1153
- var Te = require("react/jsx-runtime");
1142
+ var he = (0, zn.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: "" } });
1143
+ var Le = require("react/jsx-runtime");
1154
1144
  var Hn = (e) => {
1155
1145
  var m;
1156
- let t = Km(e.schema), r = i(i(i({}, t), e.validationMessages), e.schema.validationMessages), o = (e.submitted || !e.changed) && !!e.errors, a = !o && (e.submitted || e.changed && e.blurred) && !!((m = e.validations) != null && m.length), n = e.focused && e.schema.description && !a, s = !!e.infoMessage;
1157
- return (0, Te.jsxs)("div", { children: [o ? (0, Te.jsx)(Pr.InlineAlert, { type: "error", children: e.errors }) : null, a ? (0, Te.jsx)(Pr.InlineAlert, { type: "error", children: e.validations.map((d) => (0, Te.jsx)("div", { children: r[d] }, d)) }) : null, (n || s) && (0, Te.jsxs)(Pr.InlineAlert, { type: "info", children: [n && (0, Te.jsx)("div", { children: e.schema.description }), s && (0, Te.jsx)("div", { children: e.infoMessage })] })] });
1146
+ let t = Ym(e.schema), r = i(i(i({}, t), e.validationMessages), e.schema.validationMessages), o = (e.submitted || !e.changed) && !!e.errors, a = !o && (e.submitted || e.changed && e.blurred) && !!((m = e.validations) != null && m.length), n = e.focused && e.schema.description && !a, s = !!e.infoMessage;
1147
+ return (0, Le.jsxs)("div", { children: [o ? (0, Le.jsx)(kr.InlineAlert, { type: "error", children: e.errors }) : null, a ? (0, Le.jsx)(kr.InlineAlert, { type: "error", children: e.validations.map((d) => (0, Le.jsx)("div", { children: r[d] }, d)) }) : null, (n || s) && (0, Le.jsxs)(kr.InlineAlert, { type: "info", children: [n && (0, Le.jsx)("div", { children: e.schema.description }), s && (0, Le.jsx)("div", { children: e.infoMessage })] })] });
1158
1148
  };
1159
1149
  Hn.defaultProps = { errors: "", validations: [], validationMessages: {}, validationAsyncSuccessMessage: null };
1160
- function Km(e) {
1161
- let { formatMessage: t, locale: r } = (0, Vn.useIntl)(), o = { type: t(ge.type), minimum: t(ge.minimum, { minimum: e.minimum }), maximum: t(ge.maximum, { maximum: e.maximum }), minLength: t(ge.minLength, { minLength: e.minLength }), maxLength: t(ge.maxLength, { maxLength: e.maxLength }), pattern: t(ge.pattern), required: t(ge.required) };
1150
+ function Ym(e) {
1151
+ let { formatMessage: t, locale: r } = (0, Vn.useIntl)(), o = { type: t(he.type), minimum: t(he.minimum, { minimum: e.minimum }), maximum: t(he.maximum, { maximum: e.maximum }), minLength: t(he.minLength, { minLength: e.minLength }), maxLength: t(he.maxLength, { maxLength: e.maxLength }), pattern: t(he.pattern), required: t(he.required) };
1162
1152
  if (e.format === "date") {
1163
- let a = { pattern: t(ge.patternDate), minimum: e.minimum ? t(ge.minimumDate, { minimum: (0, Po.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(ge.maximumDate, { maximum: (0, Po.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
1153
+ let a = { pattern: t(he.patternDate), minimum: e.minimum ? t(he.minimumDate, { minimum: (0, Po.formatDate)(new Date(e.minimum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0, maximum: e.maximum ? t(he.maximumDate, { maximum: (0, Po.formatDate)(new Date(e.maximum), r, { timeZone: "UTC", dateStyle: "long" }) }) : void 0 };
1164
1154
  return i(i({}, o), a);
1165
1155
  }
1166
1156
  return o;
1167
1157
  }
1168
- var Ne = Hn;
1158
+ var Te = Hn;
1169
1159
  async function qn(e, t) {
1170
1160
  if (t)
1171
1161
  return e;
1172
1162
  if (e instanceof Blob)
1173
- return yn(e);
1163
+ return pn(e);
1174
1164
  throw new Error("Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.");
1175
1165
  }
1176
1166
  function $n(e) {
@@ -1179,13 +1169,13 @@ var require_main_min = __commonJS({
1179
1169
  }
1180
1170
  function Gn(e) {
1181
1171
  let t = e instanceof Error;
1182
- if (!(R(e) && "data" in e) && !t)
1183
- return L(e) ? e : void 0;
1172
+ if (!(N(e) && "data" in e) && !t)
1173
+ return E(e) ? e : void 0;
1184
1174
  if (t) {
1185
1175
  let a = e;
1186
1176
  return { id: ve(), message: a.message };
1187
1177
  } else
1188
- return i({ message: L(e.message) ? e.message : "" }, e);
1178
+ return i({ message: E(e.message) ? e.message : "" }, e);
1189
1179
  }
1190
1180
  var Jn = require("react-intl");
1191
1181
  var _n = require("react-intl");
@@ -1196,49 +1186,49 @@ var require_main_min = __commonJS({
1196
1186
  let { formatMessage: r } = (0, Jn.useIntl)(), { maxFileSizeError: o, maxItemsError: a, minItemsError: n } = Yn;
1197
1187
  return { maxFileSizeErrorMessage: r(o), maxItemsErrorMessage: r(a, { maxItems: e }), minItemsErrorMessage: r(n, { minItems: t }), requiredMessage: r(Wn.required) };
1198
1188
  }
1199
- var Ot = require("react/jsx-runtime");
1189
+ var xt = require("react/jsx-runtime");
1200
1190
  var ei = (e) => {
1201
- var w, D;
1202
- let { onChange: t, schema: r } = e, o = Z(), a = Zn(r), n = (0, Yt.useMemo)(() => r.$id || ve(), [r.$id]), [s, m] = (0, Yt.useState)(false), [d, u] = (0, Yt.useState)(() => Ym(e.model || [])), c = ti(r.items.persistAsync), b = r.items.persistAsync.schema, y = st(b), l = async (k) => {
1191
+ var F, D;
1192
+ let { onChange: t, schema: r } = e, o = Q(), a = Zn(r), n = (0, Kt.useMemo)(() => r.$id || ve(), [r.$id]), [s, m] = (0, Kt.useState)(false), [d, p] = (0, Kt.useState)(() => Jm(e.model || [])), c = ti(r.items.persistAsync), b = r.items.persistAsync.schema, y = it(b), l = async (M) => {
1203
1193
  m(true);
1204
1194
  try {
1205
- let I = await qn(k, y);
1195
+ let P = await qn(M, y);
1206
1196
  o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: r.$id });
1207
- let q = await c(I);
1208
- return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), $n(q);
1209
- } catch (I) {
1210
- return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(Gn(I));
1197
+ let V = await c(P);
1198
+ return o("Dynamic Flow - PersistAsync", { status: "success", schemaId: r.$id }), $n(V);
1199
+ } catch (P) {
1200
+ return o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: r.$id }), Promise.reject(Gn(P));
1211
1201
  }
1212
1202
  };
1213
- function p(k) {
1214
- if (hn(k, d))
1203
+ function u(M) {
1204
+ if (fn(M, d))
1215
1205
  return;
1216
- u(k);
1217
- let q = Xn(k).map((ee) => ee.id);
1218
- t({ model: q, triggerSchema: r, triggerModel: q });
1206
+ p(M);
1207
+ let V = Xn(M).map((X) => X.id);
1208
+ t({ model: V, triggerSchema: r, triggerModel: V });
1219
1209
  }
1220
- let g = Xn(d).map((k) => k.id), S = Ft(g, r, e.required), O = !!e.errors || (s || e.submitted) && !!S.length, F = "accepts" in b && b.accepts, C = "maxSize" in b && b.maxSize, A = h(i(i({ multiple: true, className: "form-control", files: d, fileInputName: n, id: n }, F ? { fileTypes: F } : void 0), C ? { sizeLimit: wr(C) } : void 0), { sizeLimitErrorMessage: ((w = b.validationMessages) == null ? void 0 : w.maxSize) || a.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((D = e.schema.validationMessages) == null ? void 0 : D.maxItems) || a.maxItemsErrorMessage, uploadButtonTitle: b.title, description: b.description, disabled: e.disabled, onUploadFile: (k) => l(k.get(n)), onFilesChange: p, onDeleteFile: () => Promise.resolve() });
1221
- return (0, Ot.jsxs)("div", { className: (0, Qn.default)("form-group", { "has-error": O }), children: [(0, Ot.jsx)("label", { className: "d-block control-label", htmlFor: n, children: e.schema.title }), (0, Ot.jsx)(kr.UploadInput, i({}, A)), (0, Ot.jsx)(Ne, { changed: s, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages: Zm(r, !!e.required, a), infoMessage: null, focused: false, blurred: true })] });
1210
+ let g = Xn(d).map((M) => M.id), S = wt(g, r, e.required), v = !!e.errors || (s || e.submitted) && !!S.length, C = "accepts" in b && b.accepts, x = "maxSize" in b && b.maxSize, A = h(i(i({ multiple: true, className: "form-control", files: d, fileInputName: n, id: n }, C ? { fileTypes: C } : void 0), x ? { sizeLimit: Fr(x) } : void 0), { sizeLimitErrorMessage: ((F = b.validationMessages) == null ? void 0 : F.maxSize) || a.maxFileSizeErrorMessage, maxFiles: e.schema.maxItems, maxFilesErrorMessage: ((D = e.schema.validationMessages) == null ? void 0 : D.maxItems) || a.maxItemsErrorMessage, uploadButtonTitle: b.title, description: b.description, disabled: e.disabled, onUploadFile: (M) => l(M.get(n)), onFilesChange: u, onDeleteFile: () => Promise.resolve() });
1211
+ return (0, xt.jsxs)("div", { className: (0, Qn.default)("form-group", { "has-error": v }), children: [(0, xt.jsx)("label", { className: "d-block control-label", htmlFor: n, children: e.schema.title }), (0, xt.jsx)(Mr.UploadInput, i({}, A)), (0, xt.jsx)(Te, { changed: s, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages: Xm(r, !!e.required, a), infoMessage: null, focused: false, blurred: true })] });
1222
1212
  };
1223
1213
  ei.defaultProps = { errors: null, required: false };
1224
1214
  var ko = ei;
1225
1215
  function Xn(e) {
1226
1216
  return e.filter((t) => !t.error && t.status === "succeeded");
1227
1217
  }
1228
- function Ym(e) {
1229
- return e.map((t) => Jm(t) ? { id: t, status: kr.Status.SUCCEEDED } : null).filter((t) => t !== null);
1230
- }
1231
1218
  function Jm(e) {
1232
- return N(e) || L(e);
1219
+ return e.map((t) => Zm(t) ? { id: t, status: Mr.Status.SUCCEEDED } : null).filter((t) => t !== null);
1233
1220
  }
1234
- function Zm(e, t, r) {
1221
+ function Zm(e) {
1222
+ return B(e) || E(e);
1223
+ }
1224
+ function Xm(e, t, r) {
1235
1225
  let { minItems: o, maxItems: a } = e;
1236
1226
  return i(i(i({}, t && { required: r.requiredMessage }), o && { minItems: r.minItemsErrorMessage }), a && { maxItems: r.maxItemsErrorMessage });
1237
1227
  }
1238
1228
  var ai = require("react/jsx-runtime");
1239
1229
  var ri = (e) => {
1240
1230
  let { schema: t } = e;
1241
- if (Wa(t))
1231
+ if (Ga(t))
1242
1232
  return (0, ai.jsx)(ko, h(i({}, e), { schema: t }));
1243
1233
  throw new Error("Not implemented");
1244
1234
  };
@@ -1247,54 +1237,54 @@ var require_main_min = __commonJS({
1247
1237
  var ii = require("react/jsx-runtime");
1248
1238
  var ni = (e) => {
1249
1239
  let { schema: t } = e;
1250
- if (De(t))
1240
+ if (Ee(t))
1251
1241
  return (0, ii.jsx)(oi, i({}, e));
1252
1242
  throw new Error("Not implemented");
1253
1243
  };
1254
1244
  ni.defaultProps = { required: false };
1255
- var Mr = ni;
1256
- var si = Ee(lt());
1257
- var Er = require("react");
1245
+ var Er = ni;
1246
+ var si = Me(st());
1247
+ var Ir = require("react");
1258
1248
  var Be = require("react/jsx-runtime");
1259
- var Xm = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1249
+ var Qm = (e) => ({ "col-xs-12": true, "col-sm-6": e === "md", "col-sm-4": e === "sm" });
1260
1250
  var li = (e) => {
1261
- let [t, r] = (0, Er.useState)(() => i({}, oe(e.model, e.schema))), o = (u, c) => {
1262
- c.model !== null ? t[u] = c.model : delete t[u], r(t), e.onChange(h(i({}, c), { model: t }));
1263
- }, a = (u) => e.schema.required && e.schema.required.includes(u);
1264
- (0, Er.useEffect)(() => {
1265
- let u = oe(t, e.schema) || {};
1266
- r(u), We(u, t) || e.onChange({ model: u, triggerSchema: e.schema, triggerModel: u });
1251
+ let [t, r] = (0, Ir.useState)(() => i({}, ae(e.model, e.schema))), o = (p, c) => {
1252
+ c.model !== null ? t[p] = c.model : delete t[p], r(t), e.onChange(h(i({}, c), { model: t }));
1253
+ }, a = (p) => e.schema.required && e.schema.required.includes(p);
1254
+ (0, Ir.useEffect)(() => {
1255
+ let p = ae(t, e.schema) || {};
1256
+ r(p), Ge(p, t) || e.onChange({ model: p, triggerSchema: e.schema, triggerModel: p });
1267
1257
  }, [e.schema]);
1268
- let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (u) => typeof e.schema.properties[u] != "undefined", m = Array.from(n).filter(s), d = e.errors;
1269
- return (0, Be.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, Be.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, Be.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, Be.jsx)(ae, { component: e.schema.alert }), (0, Be.jsx)("div", { className: "row", children: m.map((u) => (0, Be.jsx)("div", { className: (0, si.default)(Xm(e.schema.properties[u].width)), children: (0, Be.jsx)(de, { schema: e.schema.properties[u], model: e.model && e.model[u], errors: d && d[u], submitted: e.submitted, required: a(u), disabled: e.disabled, onChange: (c) => o(u, c), onPersistAsync: e.onPersistAsync }) }, u)) })] });
1258
+ let n = /* @__PURE__ */ new Set([...e.schema.displayOrder || [], ...Object.keys(e.schema.properties)]), s = (p) => typeof e.schema.properties[p] != "undefined", m = Array.from(n).filter(s), d = e.errors;
1259
+ return (0, Be.jsxs)("fieldset", { children: [e.schema.title && !e.hideTitle && (0, Be.jsxs)("legend", { children: [" ", e.schema.title, " "] }), e.schema.description && !e.hideTitle && (0, Be.jsxs)("p", { children: [" ", e.schema.description, " "] }), e.schema.alert && (0, Be.jsx)(ne, { component: e.schema.alert }), (0, Be.jsx)("div", { className: "row", children: m.map((p) => (0, Be.jsx)("div", { className: (0, si.default)(Qm(e.schema.properties[p].width)), children: (0, Be.jsx)(de, { schema: e.schema.properties[p], model: e.model && e.model[p], errors: d && d[p], submitted: e.submitted, required: a(p), disabled: e.disabled, onChange: (c) => o(p, c), onPersistAsync: e.onPersistAsync }) }, p)) })] });
1270
1260
  };
1271
1261
  li.defaultProps = { hideTitle: false, disabled: false };
1272
- var At = li;
1273
- var ki = Ee(lt());
1274
- var Me = require("react");
1275
- var Ir = require("@transferwise/components");
1262
+ var Ot = li;
1263
+ var ki = Me(st());
1264
+ var ke = require("react");
1265
+ var Dr = require("@transferwise/components");
1276
1266
  var di = require("react-intl");
1277
1267
  var ci = require("react-intl");
1278
1268
  var mi = (0, ci.defineMessages)({ helpAria: { id: "dynamicFlows.Help.ariaLabel", defaultMessage: "Click here for more info.", description: "Aria label for help." } });
1279
1269
  var Mo = require("react/jsx-runtime");
1280
- var Qm = (e) => {
1270
+ var ed = (e) => {
1281
1271
  let t = (0, di.useIntl)();
1282
- return (0, Mo.jsx)(Ir.Info, { className: "m-l-1", content: (0, Mo.jsx)(Ir.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(mi.helpAria) });
1272
+ return (0, Mo.jsx)(Dr.Info, { className: "m-l-1", content: (0, Mo.jsx)(Dr.Markdown, { children: e.help.markdown }), presentation: "POPOVER", size: "sm", "aria-label": t.formatMessage(mi.helpAria) });
1283
1273
  };
1284
- var vt = Qm;
1274
+ var vt = ed;
1285
1275
  var G = require("@transferwise/components");
1286
1276
  var yi = require("react");
1287
- var Pt = (e, t = {}) => {
1277
+ var At = (e, t = {}) => {
1288
1278
  let { coerceValue: r = false } = t;
1289
- if (!E(e)) {
1290
- if (R(e)) {
1291
- dt({ received: "object", expected: "string" });
1279
+ if (!k(e)) {
1280
+ if (N(e)) {
1281
+ mt({ received: "object", expected: "string" });
1292
1282
  return;
1293
1283
  }
1294
- if (!L(e)) {
1284
+ if (!E(e)) {
1295
1285
  if (r)
1296
1286
  return Io({ received: typeof e, expected: "string" }), String(e);
1297
- dt({ received: typeof e, expected: "string" });
1287
+ mt({ received: typeof e, expected: "string" });
1298
1288
  return;
1299
1289
  }
1300
1290
  return e;
@@ -1302,60 +1292,60 @@ var require_main_min = __commonJS({
1302
1292
  };
1303
1293
  var Eo = (e, t = {}) => {
1304
1294
  let { coerceValue: r = false } = t;
1305
- if (E(e))
1295
+ if (k(e))
1306
1296
  return;
1307
- if (N(e))
1297
+ if (B(e))
1308
1298
  return e;
1309
1299
  let o = { received: typeof e, expected: "string or number" };
1310
- if (R(e)) {
1311
- dt(o);
1300
+ if (N(e)) {
1301
+ mt(o);
1312
1302
  return;
1313
1303
  }
1314
- if (!L(e)) {
1304
+ if (!E(e)) {
1315
1305
  if (r)
1316
1306
  return Io(o), String(e);
1317
- dt(o);
1307
+ mt(o);
1318
1308
  return;
1319
1309
  }
1320
1310
  return e;
1321
1311
  };
1322
1312
  var ui = (e, t = {}) => {
1323
1313
  let { coerceValue: r = false } = t;
1324
- if (E(e))
1314
+ if (k(e))
1325
1315
  return false;
1326
- if (!Ae(e)) {
1316
+ if (!Oe(e)) {
1327
1317
  if (r)
1328
1318
  return Io({ received: typeof e, expected: "boolean" }), !!e;
1329
- dt({ received: typeof e, expected: "boolean" });
1319
+ mt({ received: typeof e, expected: "boolean" });
1330
1320
  return;
1331
1321
  }
1332
1322
  return e;
1333
1323
  };
1334
1324
  var pi = (e) => {
1335
- if (!E(e)) {
1336
- if (!(e instanceof Date) && !L(e)) {
1337
- dt({ received: typeof e, expected: "string or Date" });
1325
+ if (!k(e)) {
1326
+ if (!(e instanceof Date) && !E(e)) {
1327
+ mt({ received: typeof e, expected: "string or Date" });
1338
1328
  return;
1339
1329
  }
1340
1330
  return e;
1341
1331
  }
1342
1332
  };
1343
1333
  var fi = (e) => {
1344
- if (E(e))
1334
+ if (k(e))
1345
1335
  return null;
1346
- if (!L(e))
1347
- return dt({ received: typeof e, expected: "string", fallback: "null" }), null;
1348
- let t = un(e);
1336
+ if (!E(e))
1337
+ return mt({ received: typeof e, expected: "string", fallback: "null" }), null;
1338
+ let t = mn(e);
1349
1339
  return t === null && console.warn("Incorrectly formatted date string. Falling back to null."), t;
1350
1340
  };
1351
1341
  var Io = ({ received: e, expected: t }) => {
1352
1342
  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.`);
1353
1343
  };
1354
- var dt = ({ received: e, expected: t, fallback: r = "undefined" }) => {
1344
+ var mt = ({ received: e, expected: t, fallback: r = "undefined" }) => {
1355
1345
  console.warn(`Value with type ${e} passed to control that only accepts type ${t}. Falling back to ${r}`);
1356
1346
  };
1357
- var Y = require("react/jsx-runtime");
1358
- var kt = class extends yi.PureComponent {
1347
+ var K = require("react/jsx-runtime");
1348
+ var Pt = class extends yi.PureComponent {
1359
1349
  constructor(r) {
1360
1350
  super(r);
1361
1351
  this.getAutocompleteStatus = () => this.props.autoComplete ? "on" : "disabled";
@@ -1382,137 +1372,137 @@ var require_main_min = __commonJS({
1382
1372
  if (this.props.value !== null && typeof this.props.value != "undefined")
1383
1373
  return r2.find((o) => this.props.value === o.value);
1384
1374
  };
1385
- this.mapOption = (r2) => h(i({}, r2), { value: N(r2.value) || L(r2.value) ? r2.value : void 0, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
1375
+ this.mapOption = (r2) => h(i({}, r2), { value: B(r2.value) || E(r2.value) ? r2.value : void 0, disabled: r2.disabled || this.props.disabled, readOnly: this.props.readOnly });
1386
1376
  this.state = { selectedOption: r.selectedOption, touched: false, prevValue: r.value };
1387
1377
  }
1388
1378
  static getDerivedStateFromProps(r, o) {
1389
1379
  return o.prevValue !== r.value ? { prevValue: r.value, value: r.value } : null;
1390
1380
  }
1391
1381
  render() {
1392
- var ee;
1393
- let { name: r, placeholder: o, step: a, countryCode: n, type: s, options: m, disabled: d, readOnly: u, required: c, minLength: b, maxLength: y, min: l, max: p, searchPlaceholder: f, searchValue: g, onSearchChange: S, size: O, uploadProps: F, label: C, monthFormat: A, id: w, minDate: D, maxDate: k, value: I, mode: q } = this.props;
1382
+ var X;
1383
+ let { name: r, placeholder: o, step: a, countryCode: n, type: s, options: m, disabled: d, readOnly: p, required: c, minLength: b, maxLength: y, min: l, max: u, searchPlaceholder: f, searchValue: g, onSearchChange: S, size: v, uploadProps: C, label: x, monthFormat: A, id: F, minDate: D, maxDate: M, value: P, mode: V } = this.props;
1394
1384
  switch (s) {
1395
- case B.RADIO:
1396
- return (0, Y.jsx)(G.RadioGroup, { radios: m.map(this.mapOption), name: r, selectedValue: Eo(I, { coerceValue: true }), onChange: this.handleOnChange });
1397
- case B.CHECKBOX:
1398
- return (0, Y.jsx)(G.Checkbox, { checked: ui(I, { coerceValue: true }), disabled: d, label: C, required: c, readOnly: u, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
1399
- case B.SELECT: {
1400
- let v = m.length >= 20;
1401
- return (0, Y.jsx)(G.Select, { id: w, selected: this.getSelectedOption(m), options: m, search: v, required: c, disabled: d, placeholder: o, searchPlaceholder: f, searchValue: g, onChange: (T) => {
1402
- var M;
1403
- this.setState({ selectedOption: T != null ? T : void 0 }), this.props.onChange((M = T == null ? void 0 : T.value) != null ? M : null);
1404
- }, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: v ? S : void 0 });
1385
+ case R.RADIO:
1386
+ return (0, K.jsx)(G.RadioGroup, { radios: m.map(this.mapOption), name: r, selectedValue: Eo(P, { coerceValue: true }), onChange: this.handleOnChange });
1387
+ case R.CHECKBOX:
1388
+ return (0, K.jsx)(G.Checkbox, { checked: ui(P, { coerceValue: true }), disabled: d, label: x, required: c, readOnly: p, onChange: this.handleOnChange, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
1389
+ case R.SELECT: {
1390
+ let O = m.length >= 20;
1391
+ return (0, K.jsx)(G.Select, { id: F, selected: this.getSelectedOption(m), options: m, search: O, required: c, disabled: d, placeholder: o, searchPlaceholder: f, searchValue: g, onChange: (T) => {
1392
+ var L;
1393
+ this.setState({ selectedOption: T != null ? T : void 0 }), this.props.onChange((L = T == null ? void 0 : T.value) != null ? L : null);
1394
+ }, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, onSearchChange: O ? S : void 0 });
1405
1395
  }
1406
- case B.TAB:
1407
- return (0, Y.jsx)(G.Tabs, { selected: ((ee = this.getSelectedOption(m)) == null ? void 0 : ee.value) || 0, tabs: m.map((v) => ({ title: v.label, content: (0, Y.jsx)(Y.Fragment, {}), disabled: v.disabled || false })), name: w, onTabSelect: (v) => {
1396
+ case R.TAB:
1397
+ return (0, K.jsx)(G.Tabs, { selected: ((X = this.getSelectedOption(m)) == null ? void 0 : X.value) || 0, tabs: m.map((O) => ({ title: O.label, content: (0, K.jsx)(K.Fragment, {}), disabled: O.disabled || false })), name: F, onTabSelect: (O) => {
1408
1398
  let T = !!this.state.selectedOption;
1409
- this.setState({ selectedOption: m.find((M) => M.value === v) }), this.props.onChange(v, T ? "user" : "init");
1399
+ this.setState({ selectedOption: m.find((L) => L.value === O) }), this.props.onChange(O, T ? "user" : "init");
1410
1400
  } });
1411
- case B.NUMBER:
1412
- return (0, Y.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: d, id: w, max: p, min: l, placeholder: o, readOnly: u, required: c, step: a, type: "number", value: Eo(I, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (v) => {
1413
- this.props.onChange(parseFloat(v.target.value));
1414
- }, onFocus: this.handleOnFocus, onWheel: (v) => {
1415
- v.target instanceof HTMLElement && v.target.blur();
1401
+ case R.NUMBER:
1402
+ return (0, K.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: d, id: F, max: u, min: l, placeholder: o, readOnly: p, required: c, step: a, type: "number", value: Eo(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: (O) => {
1403
+ this.props.onChange(parseFloat(O.target.value));
1404
+ }, onFocus: this.handleOnFocus, onWheel: (O) => {
1405
+ O.target instanceof HTMLElement && O.target.blur();
1416
1406
  } });
1417
- case B.HIDDEN:
1418
- return (0, Y.jsx)("input", { type: "hidden", name: r, value: Pt(I, { coerceValue: true }), id: w });
1419
- case B.PASSWORD:
1420
- return (0, Y.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: d, id: w, placeholder: o, readOnly: u, required: c, type: "password", value: Pt(I, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus });
1421
- case B.DATE:
1422
- case B.DATETIME:
1423
- return (0, Y.jsx)(G.DateInput, { disabled: d, size: O, value: pi(I), mode: q, monthFormat: A, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
1424
- case B.DATELOOKUP:
1425
- return (0, Y.jsx)(G.DateLookup, { value: fi(I), min: D, max: k, placeholder: o, monthFormat: A, disabled: d, onChange: (v) => {
1426
- this.handleOnChange(pn(v));
1407
+ case R.HIDDEN:
1408
+ return (0, K.jsx)("input", { type: "hidden", name: r, value: At(P, { coerceValue: true }), id: F });
1409
+ case R.PASSWORD:
1410
+ return (0, K.jsx)("input", { autoComplete: this.getAutocompleteStatus(), className: "form-control", disabled: d, id: F, placeholder: o, readOnly: p, required: c, type: "password", value: At(P, { coerceValue: true }), onBlur: this.handleOnBlur, onChange: this.handleInputOnChange, onFocus: this.handleOnFocus });
1411
+ case R.DATE:
1412
+ case R.DATETIME:
1413
+ return (0, K.jsx)(G.DateInput, { disabled: d, size: v, value: pi(P), mode: V, monthFormat: A, onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
1414
+ case R.DATELOOKUP:
1415
+ return (0, K.jsx)(G.DateLookup, { value: fi(P), min: D, max: M, placeholder: o, monthFormat: A, disabled: d, onChange: (O) => {
1416
+ this.handleOnChange(dn(O));
1427
1417
  }, onBlur: this.handleOnBlur, onFocus: this.handleOnFocus });
1428
- case B.TEL:
1429
- return (0, Y.jsx)(G.PhoneNumberInput, { disabled: d, countryCode: n, placeholder: o, required: c, searchPlaceholder: f, size: O, initialValue: Pt(I), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
1430
- case B.TEXTAREA: {
1431
- let v = { className: "form-control tw-form-control", id: w, name: r, placeholder: o, value: Pt(I, { coerceValue: true }), readOnly: u, required: c, minLength: b, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteStatus() };
1432
- return this.props.displayPattern ? (0, Y.jsx)(G.TextareaWithDisplayFormat, h(i({ displayPattern: this.props.displayPattern }, v), { onChange: this.handleOnChange })) : (0, Y.jsx)("textarea", h(i({}, v), { onChange: this.handleInputOnChange }));
1418
+ case R.TEL:
1419
+ return (0, K.jsx)(G.PhoneNumberInput, { disabled: d, countryCode: n, placeholder: o, required: c, searchPlaceholder: f, size: v, initialValue: At(P), onBlur: this.handleOnBlur, onChange: this.handleOnChange, onFocus: this.handleOnFocus });
1420
+ case R.TEXTAREA: {
1421
+ let O = { className: "form-control tw-form-control", id: F, name: r, placeholder: o, value: At(P, { coerceValue: true }), readOnly: p, required: c, minLength: b, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteStatus() };
1422
+ return this.props.displayPattern ? (0, K.jsx)(G.TextareaWithDisplayFormat, h(i({ displayPattern: this.props.displayPattern }, O), { onChange: this.handleOnChange })) : (0, K.jsx)("textarea", h(i({}, O), { onChange: this.handleInputOnChange }));
1433
1423
  }
1434
- case B.FILE:
1435
- case B.UPLOAD:
1436
- return (0, Y.jsx)(G.Upload, h(i({}, F), { usAccept: F.usAccept || "*", usDisabled: F.usDisabled || d, onSuccess: (v) => {
1437
- this.handleOnChange(v);
1424
+ case R.FILE:
1425
+ case R.UPLOAD:
1426
+ return (0, K.jsx)(G.Upload, h(i({}, C), { usAccept: C.usAccept || "*", usDisabled: C.usDisabled || d, onSuccess: (O) => {
1427
+ this.handleOnChange(O);
1438
1428
  }, onFailure: () => {
1439
1429
  this.handleOnChange(null);
1440
1430
  }, onCancel: () => {
1441
1431
  this.handleOnChange(null);
1442
1432
  } }));
1443
- case B.TEXT:
1433
+ case R.TEXT:
1444
1434
  default: {
1445
- let v = { type: "text", className: "form-control", id: w, name: r, placeholder: o, value: Pt(I, { coerceValue: true }), readOnly: u, required: c, minLength: b, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteStatus() };
1446
- return this.props.displayPattern ? (0, Y.jsx)(G.InputWithDisplayFormat, h(i({ displayPattern: this.props.displayPattern }, v), { onChange: this.handleOnChange })) : (0, Y.jsx)("input", h(i({}, v), { onChange: this.handleInputOnChange }));
1435
+ let O = { type: "text", className: "form-control", id: F, name: r, placeholder: o, value: At(P, { coerceValue: true }), readOnly: p, required: c, minLength: b, maxLength: y, onFocus: this.handleOnFocus, onBlur: this.handleOnBlur, disabled: d, autoComplete: this.getAutocompleteStatus() };
1436
+ return this.props.displayPattern ? (0, K.jsx)(G.InputWithDisplayFormat, h(i({ displayPattern: this.props.displayPattern }, O), { onChange: this.handleOnChange })) : (0, K.jsx)("input", h(i({}, O), { onChange: this.handleInputOnChange }));
1447
1437
  }
1448
1438
  }
1449
1439
  }
1450
1440
  };
1451
- var be = kt;
1452
- be.Type = B, be.Size = Sn, be.MonthFormat = bn, be.DateMode = gn, be.defaultProps = { autoComplete: true, countryCode: null, disabled: false, displayPattern: null, id: null, label: "", max: null, maxDate: null, maxLength: null, min: null, minDate: null, minLength: null, mode: kt.DateMode.DAY_MONTH_YEAR, monthFormat: kt.MonthFormat.LONG, onBlur: null, onFocus: null, onSearchChange: null, options: [], placeholder: null, readOnly: false, required: false, searchPlaceholder: null, searchValue: "", selectedOption: null, size: kt.Size.MEDIUM, step: 1, type: kt.Type.TEXT, uploadProps: {}, value: null };
1453
- var Xe = require("@transferwise/components");
1441
+ var ge = Pt;
1442
+ ge.Type = R, ge.Size = gn, ge.MonthFormat = hn, ge.DateMode = yn, ge.defaultProps = { autoComplete: true, countryCode: null, disabled: false, displayPattern: null, id: null, label: "", max: null, maxDate: null, maxLength: null, min: null, minDate: null, minLength: null, mode: Pt.DateMode.DAY_MONTH_YEAR, monthFormat: Pt.MonthFormat.LONG, onBlur: null, onFocus: null, onSearchChange: null, options: [], placeholder: null, readOnly: false, required: false, searchPlaceholder: null, searchValue: "", selectedOption: null, size: Pt.Size.MEDIUM, step: 1, type: Pt.Type.TEXT, uploadProps: {}, value: null };
1443
+ var Ye = require("@transferwise/components");
1454
1444
  var gi = require("react/jsx-runtime");
1455
- var Mt = (e) => Do.some((t) => e === `flag-${t}`);
1445
+ var kt = (e) => Do.some((t) => e === `flag-${t}`);
1456
1446
  var hi = ({ name: e }) => {
1457
- if (!Mt(e))
1447
+ if (!kt(e))
1458
1448
  return null;
1459
1449
  let t = e.substring(5);
1460
1450
  return (0, gi.jsx)("img", { src: `https://wise.com/web-art/assets/flags/${t}.svg`, alt: "", "data-testid": `img-flag-${t}` });
1461
1451
  };
1462
1452
  var Do = ["aed", "ars", "aud", "bdt", "bgn", "bnd", "brl", "bwp", "cad", "chf", "clp", "cny", "cop", "crc", "czk", "dkk", "egp", "eur", "fjd", "gbp", "gel", "ghs", "hkd", "hrk", "huf", "idr", "ils", "imp", "inr", "jpy", "kes", "krw", "lak", "lkr", "lsl", "mad", "mxn", "myr", "mzn", "nad", "ngn", "nok", "npr", "nzd", "pab", "pen", "php", "pkr", "pln", "ron", "rub", "sek", "sgd", "thb", "tmt", "try", "tzs", "uah", "ugx", "usd", "uyu", "vnd", "xof", "zar", "zmw"];
1463
- var bi = Ee(require("@transferwise/icons"));
1453
+ var bi = Me(require("@transferwise/icons"));
1464
1454
  var Fi = require("react/jsx-runtime");
1465
- var Dr = (e) => {
1455
+ var Lr = (e) => {
1466
1456
  let t = wi(e);
1467
1457
  return Object.keys(bi).includes(t);
1468
1458
  };
1469
1459
  var Si = ({ name: e }) => {
1470
- if (!Dr(e))
1460
+ if (!Lr(e))
1471
1461
  return null;
1472
1462
  let t = wi(e), r = bi[t];
1473
1463
  return (0, Fi.jsx)(r, { size: 24 });
1474
1464
  };
1475
- var wi = (e) => e.split("-").map(ed).join("");
1476
- var ed = (e) => {
1465
+ var wi = (e) => e.split("-").map(td).join("");
1466
+ var td = (e) => {
1477
1467
  var t;
1478
1468
  return `${(t = e[0]) == null ? void 0 : t.toUpperCase()}${e.slice(1)}`;
1479
1469
  };
1480
1470
  var Lo = require("react/jsx-runtime");
1481
- var td = ({ type: e }) => Mt(e) ? (0, Lo.jsx)(hi, { name: e }) : Dr(e) ? (0, Lo.jsx)(Si, { name: e }) : null;
1471
+ var rd = ({ type: e }) => kt(e) ? (0, Lo.jsx)(hi, { name: e }) : Lr(e) ? (0, Lo.jsx)(Si, { name: e }) : null;
1482
1472
  function To(e) {
1483
- return Dr(e) || Mt(e);
1473
+ return Lr(e) || kt(e);
1484
1474
  }
1485
- var Je = td;
1486
- var Se = require("react/jsx-runtime");
1475
+ var We = rd;
1476
+ var be = require("react/jsx-runtime");
1487
1477
  var Ci = (e, t) => {
1488
1478
  switch (t) {
1489
1479
  case "select":
1490
- return od(e);
1480
+ return ad(e);
1491
1481
  case "radio":
1492
1482
  default:
1493
- return rd(e);
1483
+ return od(e);
1494
1484
  }
1495
1485
  };
1496
- var rd = (e) => i(i(i({ label: e.title, value: e.const }, xi(e.title, e.description)), Et(e)), Oi(e.disabled));
1497
- var od = (e) => i(i(i(i(i({ label: e.title, value: e.const }, xi(e.title, e.description)), id(e.icon)), nd(e.image)), Oi(e.disabled)), ad(e.keywords));
1498
- var ad = (e) => z(e) ? { searchStrings: e } : {};
1499
- var nd = (e) => e != null && e.url ? { icon: (0, Se.jsx)("div", { className: "media", children: (0, Se.jsx)("div", { className: "np-option__no-media-circle", children: (0, Se.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
1500
- var id = (e) => e != null && e.name && Mt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && To(e.name) ? { icon: (0, Se.jsx)(Je, { type: e.name }) } : e != null && e.text ? { icon: (0, Se.jsx)("span", { children: e.text }) } : null;
1501
- var Et = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, Se.jsx)(Xe.Avatar, { type: Xe.AvatarType.THUMBNAIL, children: (0, Se.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && To(t.name) ? { avatar: (0, Se.jsx)(Xe.Avatar, { type: Xe.AvatarType.ICON, children: (0, Se.jsx)(Je, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, Se.jsx)(Xe.Avatar, { type: Xe.AvatarType.INITIALS, children: t.text }) } : null;
1502
- var Lr = ({ accepts: e }) => i({}, z(e) && { usAccept: e.join(",") });
1486
+ var od = (e) => i(i(i({ label: e.title, value: e.const }, xi(e.title, e.description)), Mt(e)), Oi(e.disabled));
1487
+ var ad = (e) => i(i(i(i(i({ label: e.title, value: e.const }, xi(e.title, e.description)), sd(e.icon)), id(e.image)), Oi(e.disabled)), nd(e.keywords));
1488
+ var nd = (e) => H(e) ? { searchStrings: e } : {};
1489
+ var id = (e) => e != null && e.url ? { icon: (0, be.jsx)("div", { className: "media", children: (0, be.jsx)("div", { className: "np-option__no-media-circle", children: (0, be.jsx)("img", { src: e.url, alt: e.name || "" }) }) }) } : null;
1490
+ var sd = (e) => e != null && e.name && kt(e.name) ? { currency: e.name.substring(5) } : e != null && e.name && To(e.name) ? { icon: (0, be.jsx)(We, { type: e.name }) } : e != null && e.text ? { icon: (0, be.jsx)("span", { children: e.text }) } : null;
1491
+ var Mt = ({ image: e, icon: t }) => e != null && e.url ? { avatar: (0, be.jsx)(Ye.Avatar, { type: Ye.AvatarType.THUMBNAIL, children: (0, be.jsx)("img", { src: e.url, alt: "" }) }) } : t != null && t.name && To(t.name) ? { avatar: (0, be.jsx)(Ye.Avatar, { type: Ye.AvatarType.ICON, children: (0, be.jsx)(We, { type: t.name }) }) } : t != null && t.text ? { avatar: (0, be.jsx)(Ye.Avatar, { type: Ye.AvatarType.INITIALS, children: t.text }) } : null;
1492
+ var Tr = ({ accepts: e }) => i({}, H(e) && { usAccept: e.join(",") });
1503
1493
  var xi = (e, t) => {
1504
1494
  if (e && t)
1505
1495
  return { [(e + t).length > 50 ? "secondary" : "note"]: t };
1506
1496
  };
1507
1497
  var Oi = (e) => {
1508
- if (!K(e) && !E(e))
1498
+ if (!W(e) && !k(e))
1509
1499
  return { disabled: e };
1510
1500
  };
1511
- var vi = require("react/jsx-runtime");
1512
- var sd = (e) => e === "string" || e === "number";
1513
- var No = (e, t) => {
1501
+ var Ai = require("react/jsx-runtime");
1502
+ var ld = (e) => e === "string" || e === "number";
1503
+ var Bo = (e, t) => {
1514
1504
  if (me(e))
1515
- return e.control === B.TAB && e.oneOf.length > 3 ? B.SELECT : 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.'), B.RADIO) : e.control || B.SELECT;
1505
+ return e.control === R.TAB && e.oneOf.length > 3 ? R.SELECT : 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.RADIO) : e.control || R.SELECT;
1516
1506
  if ("control" in e && e.control)
1517
1507
  return e.control;
1518
1508
  if (e.type === "string")
@@ -1530,349 +1520,352 @@ var require_main_min = __commonJS({
1530
1520
  }
1531
1521
  return e.type === "boolean" ? "checkbox" : e.type === "integer" ? "number" : e.type;
1532
1522
  };
1533
- var ld = (e, t) => e.oneOf ? e.oneOf.map((r) => Ci(r, t)) : null;
1534
- var Ai = (e) => {
1535
- let t = Ge(), r = (u) => sd(e.schema.type) && (E(u) || K(u)) ? "" : u, o = (u, c) => {
1536
- e.onChange(Le(u, e.schema), c);
1537
- }, a = No(e.schema, t);
1523
+ var cd = (e, t) => e.oneOf ? e.oneOf.map((r) => Ci(r, t)) : null;
1524
+ var vi = (e) => {
1525
+ let t = qe(), r = (p) => ld(e.schema.type) && (k(p) || W(p)) ? "" : p, o = (p, c) => {
1526
+ e.onChange(Ie(p, e.schema), c);
1527
+ }, a = Bo(e.schema, t);
1538
1528
  a === "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.schema.values && t.error("Deprecated schema", "Schema.values is a legacy approach. Please use oneOf.");
1539
- let n = e.schema.values || ld(e.schema, a), s = { onFocus: e.onFocus, onBlur: e.onBlur, onSearchChange: e.onSearchChange, onChange: o }, m = r(e.value), d = { id: e.id, name: e.id, label: e.schema.title, options: n || [], placeholder: e.schema.placeholder, autoComplete: !e.schema.help, disabled: e.disabled || e.schema.disabled, displayPattern: e.schema.displayFormat, uploadProps: Lr(e.schema) };
1540
- return (0, vi.jsx)(be, i(i({ type: a, value: m }, s), d));
1529
+ let n = e.schema.values || cd(e.schema, a), s = { onFocus: e.onFocus, onBlur: e.onBlur, onSearchChange: e.onSearchChange, onChange: o }, m = r(e.value), d = { id: e.id, name: e.id, label: e.schema.title, options: n || [], placeholder: e.schema.placeholder, autoComplete: !e.schema.help, disabled: e.disabled || e.schema.disabled, displayPattern: e.schema.displayFormat, uploadProps: Tr(e.schema) };
1530
+ return (0, Ai.jsx)(ge, i(i({ type: a, value: m }, s), d));
1541
1531
  };
1542
- Ai.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
1543
- var Jt = Ai;
1544
- function Re(e) {
1545
- return !K(e == null ? void 0 : e.const);
1532
+ vi.defaultProps = { value: null, onFocus: null, onBlur: null, onSearchChange: null, disabled: false };
1533
+ var Yt = vi;
1534
+ function Ne(e) {
1535
+ return !W(e == null ? void 0 : e.const);
1546
1536
  }
1547
- function Zt(e) {
1548
- return !!e && !Re(e);
1537
+ function Jt(e) {
1538
+ return !!e && !Ne(e);
1549
1539
  }
1550
1540
  var Pi = (e, t) => {
1551
- let r = Xt(e, t);
1541
+ let r = Zt(e, t);
1552
1542
  if (r >= 0)
1553
1543
  return r;
1554
- if (e.oneOf.length === 1 && Zt(e.oneOf[0]))
1544
+ if (e.oneOf.length === 1 && Jt(e.oneOf[0]))
1555
1545
  return 0;
1556
- if (Re(e.oneOf[0])) {
1557
- let o = Xt(e, e.default);
1546
+ if (Ne(e.oneOf[0])) {
1547
+ let o = Zt(e, e.default);
1558
1548
  if (o >= 0)
1559
1549
  return o;
1560
1550
  }
1561
- return Vt(e) && J(t) && Object.keys(t).length >= 1 ? Tr(e, t) : Vt(e) && !K(e.default) && J(e.default) && Object.keys(e.default).length >= 1 ? Tr(e, e.default) : null;
1551
+ return zt(e) && J(t) && Object.keys(t).length >= 1 ? Br(e, t) : zt(e) && !W(e.default) && J(e.default) && Object.keys(e.default).length >= 1 ? Br(e, e.default) : null;
1562
1552
  };
1563
- var Xt = (e, t) => e.oneOf.findIndex((r) => !K(t) && $(t, r));
1564
- function Tr(e, t) {
1553
+ var Zt = (e, t) => e.oneOf.findIndex((r) => !W(t) && $(t, r));
1554
+ function Br(e, t) {
1565
1555
  if (t == null)
1566
1556
  return null;
1567
- let r = e.oneOf.map((o) => cd(o).reduce((a, [n, s]) => Re(s) && s.const === t[n] ? a + 2 : Zt(s) && typeof t[n] != "undefined" ? a + 1 : a, 0));
1557
+ let r = e.oneOf.map((o) => md(o).reduce((a, [n, s]) => Ne(s) && s.const === t[n] ? a + 2 : Jt(s) && typeof t[n] != "undefined" ? a + 1 : a, 0));
1568
1558
  return r.every((o) => o === r[0]) ? null : r.indexOf(Math.max(...r));
1569
1559
  }
1570
- function cd(e) {
1560
+ function md(e) {
1571
1561
  return e.properties !== null && typeof e.properties == "object" ? Object.entries(e.properties) : [];
1572
1562
  }
1573
1563
  var te = require("react/jsx-runtime");
1574
1564
  var Mi = (e) => {
1575
- let t = Z(), [r, o] = (0, Me.useState)(false), [a, n] = (0, Me.useState)(false), [s, m] = (0, Me.useState)(false), d = (0, Me.useMemo)(() => e.schema.$id || ve(), [e.schema.$id]), [u, c] = (0, Me.useState)(Pi(e.schema, e.model)), [b, y] = (0, Me.useState)(pd(e.model, e.schema.oneOf)), l = On(t, 200), p = (w) => {
1576
- l("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: w.length });
1565
+ let t = Q(), [r, o] = (0, ke.useState)(false), [a, n] = (0, ke.useState)(false), [s, m] = (0, ke.useState)(false), d = (0, ke.useMemo)(() => e.schema.$id || ve(), [e.schema.$id]), [p, c] = (0, ke.useState)(Pi(e.schema, e.model)), [b, y] = (0, ke.useState)(fd(e.model, e.schema.oneOf)), l = Fn(t, 200), u = (F) => {
1566
+ l("Dynamic Flow - OneOf Searched", { oneOfId: e.schema.analyticsId, searchValueLength: F.length });
1577
1567
  };
1578
- if ((0, Me.useEffect)(() => {
1579
- let w = Xt(e.schema, e.model), D = Xt(e.schema, e.schema.default);
1580
- w === -1 && D >= 0 && O(D, "init");
1581
- }, [e.schema]), !z(e.schema.oneOf))
1568
+ if ((0, ke.useEffect)(() => {
1569
+ let F = Zt(e.schema, e.model), D = Zt(e.schema, e.schema.default);
1570
+ F === -1 && D >= 0 && v(D, "init");
1571
+ }, [e.schema]), !H(e.schema.oneOf))
1582
1572
  return console.error("Incorrect format", e.schema), null;
1583
- let f = (w, D) => {
1584
- y([...b.slice(0, w), D.model, ...b.slice(w + 1)]), o(true), e.onChange(D);
1573
+ let f = (F, D) => {
1574
+ y([...b.slice(0, F), D.model, ...b.slice(F + 1)]), o(true), e.onChange(D);
1585
1575
  }, g = () => {
1586
1576
  n(true);
1587
1577
  }, S = () => {
1588
1578
  n(false), m(true);
1589
- }, O = (w, D) => {
1590
- c(w);
1591
- let k = e.schema.oneOf[w];
1592
- if (Re(k)) {
1593
- let I = k.const;
1594
- e.onChange({ model: I, triggerSchema: e.schema, triggerModel: I, type: D });
1579
+ }, v = (F, D) => {
1580
+ c(F);
1581
+ let M = e.schema.oneOf[F];
1582
+ if (Ne(M)) {
1583
+ let P = M.const;
1584
+ e.onChange({ model: P, triggerSchema: e.schema, triggerModel: P, type: D });
1595
1585
  } else
1596
- e.onChange({ model: b[w], triggerSchema: k, triggerModel: b[w], type: D });
1597
- D !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: k == null ? void 0 : k.analyticsId });
1598
- }, F = fd(e.schema), C = dd(e, u), A = { "form-group": true, "has-error": !r && e.errors && !wt(e.errors) || (e.submitted || r && s) && C.length };
1599
- return (0, te.jsxs)(te.Fragment, { children: [(e.schema.oneOf.length > 1 || Re(e.schema.oneOf[0])) && (0, te.jsxs)(te.Fragment, { children: [(0, te.jsxs)("div", { className: (0, ki.default)(A), children: [md(e.schema, d), (0, te.jsx)(Jt, { id: d, schema: F, value: u, disabled: e.disabled, onChange: O, onFocus: g, onBlur: S, onSearchChange: p }), (0, te.jsx)(Ne, { changed: r, focused: a, blurred: s, submitted: e.submitted, errors: ud(e.errors), schema: e.schema, validations: C, infoMessage: null })] }), e.schema.alert && (0, te.jsx)(ae, { component: e.schema.alert })] }), Zt(e.schema.oneOf[u]) && (0, te.jsx)(de, { schema: e.schema.oneOf[u], model: b[u], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (w) => f(u, w), onPersistAsync: e.onPersistAsync })] });
1586
+ e.onChange({ model: b[F], triggerSchema: M, triggerModel: b[F], type: D });
1587
+ D !== "init" && e.schema.analyticsId && t("Dynamic Flow - OneOf Selected", { oneOfId: e.schema.analyticsId, schemaId: M == null ? void 0 : M.analyticsId });
1588
+ }, C = yd(e.schema), x = ud(e, p), A = { "form-group": true, "has-error": !r && e.errors && !St(e.errors) || (e.submitted || r && s) && x.length };
1589
+ return (0, te.jsxs)(te.Fragment, { children: [(e.schema.oneOf.length > 1 || Ne(e.schema.oneOf[0])) && (0, te.jsxs)(te.Fragment, { children: [(0, te.jsxs)("div", { className: (0, ki.default)(A), children: [dd(e.schema, d), (0, te.jsx)(Yt, { id: d, schema: C, value: p, disabled: e.disabled, onChange: v, onFocus: g, onBlur: S, onSearchChange: u }), (0, te.jsx)(Te, { changed: r, focused: a, blurred: s, submitted: e.submitted, errors: pd(e.errors), schema: e.schema, validations: x, infoMessage: null })] }), e.schema.alert && (0, te.jsx)(ne, { component: e.schema.alert })] }), Jt(e.schema.oneOf[p]) && (0, te.jsx)(de, { schema: e.schema.oneOf[p], model: b[p], errors: e.errors, submitted: e.submitted, hideTitle: true, disabled: e.disabled, onChange: (F) => f(p, F), onPersistAsync: e.onPersistAsync })] });
1600
1590
  };
1601
- function md(e, t) {
1602
- let r = e.help ? (0, te.jsx)(vt, { help: e.help }) : null, o = Re(e.oneOf[0]) ? (0, te.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) : (0, te.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] });
1591
+ function dd(e, t) {
1592
+ let r = e.help ? (0, te.jsx)(vt, { help: e.help }) : null, o = Ne(e.oneOf[0]) ? (0, te.jsxs)("label", { className: "control-label d-inline", htmlFor: t, children: [e.title, " ", r] }) : (0, te.jsxs)("h4", { className: "m-b-2", children: [e.title, " ", r] });
1603
1593
  return e.title ? o : r;
1604
1594
  }
1605
- function dd(e, t) {
1595
+ function ud(e, t) {
1606
1596
  let r = e.schema.oneOf[t != null ? t : -1];
1607
- return Re(r) ? _e(r.const, e.schema, !!e.required) : t === null || t < 0 ? _e(null, e.schema, !!e.required) : [];
1597
+ return Ne(r) ? $e(r.const, e.schema, !!e.required) : t === null || t < 0 ? $e(null, e.schema, !!e.required) : [];
1608
1598
  }
1609
- function ud(e) {
1599
+ function pd(e) {
1610
1600
  return typeof e == "string" ? e : null;
1611
1601
  }
1612
- function pd(e, t) {
1613
- return t.map((r) => $t(e, r));
1602
+ function fd(e, t) {
1603
+ return t.map((r) => qt(e, r));
1614
1604
  }
1615
- function fd(e) {
1616
- return h(i({}, e), { oneOf: e.oneOf.map(yd) });
1605
+ function yd(e) {
1606
+ return h(i({}, e), { oneOf: e.oneOf.map(hd) });
1617
1607
  }
1618
- function yd(e, t) {
1608
+ function hd(e, t) {
1619
1609
  let { title: r, description: o, disabled: a = false, icon: n, image: s, keywords: m } = e;
1620
1610
  return { title: r, description: o, disabled: a, icon: n, image: s, const: t, keywords: m };
1621
1611
  }
1622
1612
  Mi.defaultProps = { required: false, disabled: false };
1623
1613
  var Nr = Mi;
1624
- var Li = Ee(lt());
1625
- var ut = require("react");
1626
- var Br = require("@transferwise/components");
1614
+ var Li = Me(st());
1615
+ var dt = require("react");
1616
+ var Rr = require("@transferwise/components");
1627
1617
  var Ei = require("react");
1628
1618
  var Di = require("react/jsx-runtime");
1629
1619
  var Ii = (e) => {
1630
- let { id: t, httpClient: r = fetch, httpOptions: o, fileId: a, idProperty: n, usAccept: s, maxSize: m, usPlaceholder: d, onSuccess: u, onFailure: c, onCancel: b } = e, y = Z(), l = (0, Ei.useMemo)(() => a ? [{ id: a, status: Br.Status.SUCCEEDED }] : [], [a]), p = (f) => (y("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(`${o.url}`, { method: o.method || "POST", body: f }).then((g) => g.ok ? (u && u(g.clone()), g.json().then((S) => ({ id: S[n] }))) : (c && c({ response: g }), Promise.reject())));
1631
- return (0, Di.jsx)(Br.UploadInput, { id: t, fileInputName: o.fileInputName, files: l, uploadButtonTitle: e.usLabel, sizeLimit: m ? wr(m) : void 0, fileTypes: s, description: d, onUploadFile: p, onDeleteFile: (f) => (b && b(), Promise.resolve()) });
1620
+ let { id: t, httpClient: r = fetch, httpOptions: o, fileId: a, idProperty: n, usAccept: s, maxSize: m, usPlaceholder: d, onSuccess: p, onFailure: c, onCancel: b } = e, y = Q(), l = (0, Ei.useMemo)(() => a ? [{ id: a, status: Rr.Status.SUCCEEDED }] : [], [a]), u = (f) => (y("Dynamic Flow - PersistAsync", { status: "pending", schemaId: t }), r(`${o.url}`, { method: o.method || "POST", body: f }).then((g) => g.ok ? (p && p(g.clone()), g.json().then((S) => ({ id: S[n] }))) : (c && c({ response: g }), Promise.reject())));
1621
+ return (0, Di.jsx)(Rr.UploadInput, { id: t, fileInputName: o.fileInputName, files: l, uploadButtonTitle: e.usLabel, sizeLimit: m ? Fr(m) : void 0, fileTypes: s, description: d, onUploadFile: u, onDeleteFile: (f) => (b && b(), Promise.resolve()) });
1632
1622
  };
1633
- var Qt = require("react/jsx-runtime");
1623
+ var Xt = require("react/jsx-runtime");
1634
1624
  var Ti = (e) => {
1635
- let [t, r] = (0, ut.useState)({}), [o, a] = (0, ut.useState)(null), [n, s] = (0, ut.useState)([]), [m, d] = (0, ut.useState)(false), u = re(), c = Z();
1636
- (0, ut.useEffect)(() => {
1637
- e.submitted && s(_e(e.model, e.schema, !!e.required));
1625
+ let [t, r] = (0, dt.useState)({}), [o, a] = (0, dt.useState)(null), [n, s] = (0, dt.useState)([]), [m, d] = (0, dt.useState)(false), p = re(), c = Q();
1626
+ (0, dt.useEffect)(() => {
1627
+ e.submitted && s($e(e.model, e.schema, !!e.required));
1638
1628
  }, [e.model, e.submitted]);
1639
- let y = async (F, C) => {
1640
- let A = await F.json(), w = Uo(e.schema.persistAsync.idProperty, A);
1641
- e.onChange({ model: w, triggerSchema: e.schema, triggerModel: w }), d(true), c("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
1642
- }, l = async (F) => {
1643
- if (F.response && ur(F.response.status)) {
1644
- let C = await F.response.json();
1645
- r(C.validation || {}), a([e.schema.persistAsync.param]);
1629
+ let y = async (C, x) => {
1630
+ let A = await C.json(), F = jo(e.schema.persistAsync.idProperty, A);
1631
+ e.onChange({ model: F, triggerSchema: e.schema, triggerModel: F }), d(true), c("Dynamic Flow - PersistAsync", { status: "success", schemaId: e.schema.$id });
1632
+ }, l = async (C) => {
1633
+ if (C.response && pr(C.response.status)) {
1634
+ let x = await C.response.json();
1635
+ r(x.validation || {}), a([e.schema.persistAsync.param]);
1646
1636
  }
1647
1637
  e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true), c("Dynamic Flow - PersistAsync", { status: "failure", schemaId: e.schema.$id });
1648
- }, p = () => {
1638
+ }, u = () => {
1649
1639
  a(null), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null }), d(true);
1650
- }, { url: f, method: g } = e.schema.persistAsync, S = o || n, O = { "form-group": true, "has-error": (e.submitted || m) && !!S.length };
1651
- return (0, Qt.jsxs)("div", { className: (0, Li.default)(O), children: [(0, Qt.jsx)(Ii, i({ id: e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, fileId: e.model, idProperty: e.schema.persistAsync.idProperty, animationDelay: 0, maxSize: e.schema.persistAsync.schema.maxSize, usLabel: e.schema.title || e.schema.persistAsync.schema.title, usPlaceholder: e.schema.description || e.schema.persistAsync.schema.description, httpOptions: { url: f, method: g, fileInputName: e.schema.persistAsync.param }, httpClient: u, onSuccess: y, onFailure: l, onCancel: p }, Lr(e.schema.persistAsync.schema))), (0, Qt.jsx)(Ne, { blurred: true, focused: false, changed: m, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages: i({ required: "Value is required..." }, t), infoMessage: null })] });
1640
+ }, { url: f, method: g } = e.schema.persistAsync, S = o || n, v = { "form-group": true, "has-error": (e.submitted || m) && !!S.length };
1641
+ return (0, Xt.jsxs)("div", { className: (0, Li.default)(v), children: [(0, Xt.jsx)(Ii, i({ id: e.schema.$id || e.schema.persistAsync.schema.$id || e.schema.persistAsync.idProperty, fileId: e.model, idProperty: e.schema.persistAsync.idProperty, animationDelay: 0, maxSize: e.schema.persistAsync.schema.maxSize, usLabel: e.schema.title || e.schema.persistAsync.schema.title, usPlaceholder: e.schema.description || e.schema.persistAsync.schema.description, httpOptions: { url: f, method: g, fileInputName: e.schema.persistAsync.param }, httpClient: p, onSuccess: y, onFailure: l, onCancel: u }, Tr(e.schema.persistAsync.schema))), (0, Xt.jsx)(Te, { blurred: true, focused: false, changed: m, submitted: e.submitted, errors: e.errors, schema: e.schema, validations: S, validationMessages: i({ required: "Value is required..." }, t), infoMessage: null })] });
1652
1642
  };
1653
1643
  Ti.defaultProps = { required: false };
1654
1644
  var Ro = Ti;
1655
- var jo = require("react/jsx-runtime");
1656
- var Ni = (e) => {
1645
+ var Uo = require("react/jsx-runtime");
1646
+ var Bi = (e) => {
1657
1647
  let { schema: t } = e;
1658
- return t.persistAsync.schema.type === "blob" ? (0, jo.jsx)(Ro, i({}, e)) : (0, jo.jsx)(Bo, i({}, e));
1648
+ return t.persistAsync.schema.type === "blob" ? (0, Uo.jsx)(Ro, i({}, e)) : (0, Uo.jsx)(No, i({}, e));
1659
1649
  };
1660
- Ni.defaultProps = { required: false };
1661
- var Rr = Ni;
1650
+ Bi.defaultProps = { required: false };
1651
+ var jr = Bi;
1662
1652
  var Gi = require("react");
1663
- var Bi = (e, t) => {
1664
- let r = Tr(e, t);
1653
+ var Ni = (e, t) => {
1654
+ let r = Br(e, t);
1665
1655
  return r !== null ? e.oneOf[r].promoted ? "promoted" : "other" : null;
1666
1656
  };
1667
1657
  var Ri = require("@transferwise/components");
1668
1658
  var zo = require("react/jsx-runtime");
1669
- var Ui = (e) => {
1670
- let { id: t, selection: r, setSelection: o } = e, { promoted: a, other: n, checkedMeans: s } = e.promotion, m = s === "other" ? n.title : (a == null ? void 0 : a.title) || e.promotedOneOf.title, d = s === "other" ? "other" : "promoted", u = s === "other" ? "promoted" : "other", c = r === d;
1659
+ var ji = (e) => {
1660
+ let { id: t, selection: r, setSelection: o } = e, { promoted: a, other: n, checkedMeans: s } = e.promotion, m = s === "other" ? n.title : (a == null ? void 0 : a.title) || e.promotedOneOf.title, d = s === "other" ? "other" : "promoted", p = s === "other" ? "promoted" : "other", c = r === d;
1671
1661
  return (0, zo.jsx)("div", { className: "form-group", children: (0, zo.jsx)(Ri.Checkbox, { id: t, label: m, checked: c, onChange: () => {
1672
- o(c ? u : d);
1662
+ o(c ? p : d);
1673
1663
  } }) });
1674
1664
  };
1675
- Ui.defaultProps = {};
1676
- var ji = Ui;
1665
+ ji.defaultProps = {};
1666
+ var Ui = ji;
1677
1667
  var zi = require("@transferwise/components");
1678
- var er = require("react/jsx-runtime");
1668
+ var Qt = require("react/jsx-runtime");
1679
1669
  var Vi = (e) => {
1680
- var d, u;
1681
- let { id: t, selection: r, setSelection: o, promotion: a, promotedOneOf: n, title: s } = e, m = [i({ value: "promoted", label: ((d = a.promoted) == null ? void 0 : d.title) || n.title, secondary: ((u = a.promoted) == null ? void 0 : u.description) || n.description }, Et(n)), i({ value: "other", label: a.other.title, secondary: a.other.description }, Et(a.other))];
1682
- return (0, er.jsxs)("div", { className: "form-group", children: [s && (0, er.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, er.jsx)(zi.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: m, id: t, onChange: o })] });
1670
+ var d, p;
1671
+ let { id: t, selection: r, setSelection: o, promotion: a, promotedOneOf: n, title: s } = e, m = [i({ value: "promoted", label: ((d = a.promoted) == null ? void 0 : d.title) || n.title, secondary: ((p = a.promoted) == null ? void 0 : p.description) || n.description }, Mt(n)), i({ value: "other", label: a.other.title, secondary: a.other.description }, Mt(a.other))];
1672
+ return (0, Qt.jsxs)("div", { className: "form-group", children: [s && (0, Qt.jsx)("label", { className: "control-label", htmlFor: t, children: s }), (0, Qt.jsx)(zi.RadioGroup, { name: "promoted-selection", selectedValue: r, radios: m, id: t, onChange: o })] });
1683
1673
  };
1684
1674
  Vi.defaultProps = { title: void 0 };
1685
1675
  var Hi = Vi;
1686
- var It = require("react/jsx-runtime");
1676
+ var Et = require("react/jsx-runtime");
1687
1677
  var qi = (e) => {
1688
1678
  switch (e.promotion.control || "radio") {
1689
1679
  case "radio":
1690
- return (0, It.jsx)(Hi, i({}, e));
1680
+ return (0, Et.jsx)(Hi, i({}, e));
1691
1681
  case "checkbox":
1692
- return (0, It.jsx)(ji, i({}, e));
1682
+ return (0, Et.jsx)(Ui, i({}, e));
1693
1683
  default:
1694
- return (0, It.jsx)(It.Fragment, {});
1684
+ return (0, Et.jsx)(Et.Fragment, {});
1695
1685
  }
1696
1686
  };
1697
1687
  qi.defaultProps = { id: ve(), title: void 0 };
1698
1688
  var $i = qi;
1699
- var Ue = require("react/jsx-runtime");
1689
+ var Re = require("react/jsx-runtime");
1700
1690
  var _i = (e) => e.promoted === true;
1701
- var hd = (e) => {
1691
+ var gd = (e) => {
1702
1692
  var m;
1703
- let [t, r] = (0, Gi.useState)(Bi(e.schema, e.model) || ((m = e.schema.promotion) == null ? void 0 : m.default) || "promoted"), o = e.schema.alert, a = e.schema.oneOf.find(_i), n = gd(a), s = bd(e.schema);
1704
- return (0, Ue.jsxs)(Ue.Fragment, { children: [o && (0, Ue.jsx)(ae, { component: o }), (0, Ue.jsx)($i, { id: e.schema.$id, title: e.schema.title, promotedOneOf: a, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Ue.jsx)(At, h(i({}, e), { schema: n })), t === "other" && (0, Ue.jsx)(de, h(i({}, e), { schema: s }))] });
1693
+ let [t, r] = (0, Gi.useState)(Ni(e.schema, e.model) || ((m = e.schema.promotion) == null ? void 0 : m.default) || "promoted"), o = e.schema.alert, a = e.schema.oneOf.find(_i), n = bd(a), s = Sd(e.schema);
1694
+ return (0, Re.jsxs)(Re.Fragment, { children: [o && (0, Re.jsx)(ne, { component: o }), (0, Re.jsx)($i, { id: e.schema.$id, title: e.schema.title, promotedOneOf: a, promotion: e.schema.promotion, selection: t, setSelection: r }), t === "promoted" && (0, Re.jsx)(Ot, h(i({}, e), { schema: n })), t === "other" && (0, Re.jsx)(de, h(i({}, e), { schema: s }))] });
1705
1695
  };
1706
- function gd(e) {
1696
+ function bd(e) {
1707
1697
  return h(i({}, e), { title: void 0, description: void 0 });
1708
1698
  }
1709
- function bd(e) {
1699
+ function Sd(e) {
1710
1700
  var o, a, n;
1711
1701
  let t = (o = e.promotion) != null && o.displayTwice ? [...e.oneOf] : e.oneOf.filter((s) => !_i(s)), r = (n = (a = e.promotion) == null ? void 0 : a.other.heading) == null ? void 0 : n.text;
1712
1702
  return t.length === 1 ? h(i({}, t[0]), { title: r }) : t.length > 1 ? { title: r, oneOf: t, control: e.control } : null;
1713
1703
  }
1714
- var Ur = hd;
1715
- var jr = require("@transferwise/components");
1704
+ var Ur = gd;
1705
+ var zr = require("@transferwise/components");
1716
1706
  var Ki = require("react-intl");
1717
1707
  var Wi = require("react-intl");
1718
1708
  var Vo = (0, Wi.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." } });
1719
- var Dt = require("react/jsx-runtime");
1720
- var Sd = ({ schema: e, model: t }) => {
1721
- let { title: r = "" } = e, { formatMessage: o } = (0, Ki.useIntl)(), a = wd({ schema: e, model: t, formatMessage: o });
1722
- return (0, Dt.jsx)(jr.DefinitionList, { layout: jr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: a, key: "" }] });
1709
+ var It = require("react/jsx-runtime");
1710
+ var wd = ({ schema: e, model: t }) => {
1711
+ let { title: r = "" } = e, { formatMessage: o } = (0, Ki.useIntl)(), a = Fd({ schema: e, model: t, formatMessage: o });
1712
+ return (0, It.jsx)(zr.DefinitionList, { layout: zr.Layout.VERTICAL_ONE_COLUMN, definitions: [{ title: r, value: a, key: "" }] });
1723
1713
  };
1724
- var Ho = Sd;
1725
- function wd({ schema: e, model: t, formatMessage: r }) {
1726
- return fe(e) ? me(e) ? Fd(e, t) : e.type === "boolean" && Ae(t) ? r(t ? Vo.yes : Vo.no) : t && t.toString() || "" : "";
1727
- }
1728
- function Fd(e, t) {
1729
- let r = Cd(e, t);
1730
- return r ? xd(r) : t;
1714
+ var Ho = wd;
1715
+ function Fd({ schema: e, model: t, formatMessage: r }) {
1716
+ return pe(e) ? me(e) ? Cd(e, t) : e.type === "boolean" && Oe(t) ? r(t ? Vo.yes : Vo.no) : t && t.toString() || "" : "";
1731
1717
  }
1732
1718
  function Cd(e, t) {
1719
+ let r = xd(e, t);
1720
+ return r ? Od(r) : t;
1721
+ }
1722
+ function xd(e, t) {
1733
1723
  return e.oneOf.find((r) => "const" in r ? t === r.const : false);
1734
1724
  }
1735
- function xd(e) {
1736
- let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Et({ icon: e.icon });
1737
- return r != null && r.avatar ? (0, Dt.jsxs)(Dt.Fragment, { children: [r.avatar, " ", t] }) : t;
1725
+ function Od(e) {
1726
+ let t = e.title && e.description ? `${e.title} - ${e.description}` : e.title || "", r = Mt({ icon: e.icon });
1727
+ return r != null && r.avatar ? (0, It.jsxs)(It.Fragment, { children: [r.avatar, " ", t] }) : t;
1738
1728
  }
1739
- var Qe = require("react");
1729
+ var Je = require("react");
1740
1730
  var Ji = require("react/jsx-runtime");
1741
1731
  var Yi = (e) => {
1742
- let [t, r] = (0, Qe.useState)(e.model), o = (0, Qe.useRef)(null), [a, n] = (0, Qe.useState)(null), [s, m] = (0, Qe.useState)(null), [d, u] = (0, Qe.useState)(false), [c, b] = (0, Qe.useState)(null), y = re(), l = Z(), p = Ge(), f = async (C, A) => {
1743
- let w = g(), D = { [A.param]: C };
1744
- o.current = C, u(true), A.method || p.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {}), l("Dynamic Flow - ValidationAsync", { status: "pending" });
1745
- let k = await y(A.url, { method: A.method || "POST", headers: { "Content-Type": "application/json" }, body: A.method === "GET" ? void 0 : JSON.stringify(D), signal: w });
1732
+ let [t, r] = (0, Je.useState)(e.model), o = (0, Je.useRef)(null), [a, n] = (0, Je.useState)(null), [s, m] = (0, Je.useState)(null), [d, p] = (0, Je.useState)(false), [c, b] = (0, Je.useState)(null), y = re(), l = Q(), u = qe(), f = async (x, A) => {
1733
+ let F = g(), D = { [A.param]: x };
1734
+ o.current = x, p(true), A.method || u.warning("Invalid schema or model", 'ValidationAsyncSchema without a "method" property would have defaulted to "GET" in previous versions. Now defaults to "POST".', {}), l("Dynamic Flow - ValidationAsync", { status: "pending" });
1735
+ let M = await y(A.url, { method: A.method || "POST", headers: { "Content-Type": "application/json" }, body: A.method === "GET" ? void 0 : JSON.stringify(D), signal: F });
1746
1736
  try {
1747
- let I = await k.json();
1748
- if (!R(I))
1737
+ let P = await M.json();
1738
+ if (!N(P))
1749
1739
  throw new Error("Response body is not an object");
1750
- l("Dynamic Flow - ValidationAsync", { status: "success" }), k.status === 200 ? n(L(I.message) ? I.message : null) : k.status === 422 && m(L(I.message) ? I.message : null);
1751
- } catch (I) {
1740
+ l("Dynamic Flow - ValidationAsync", { status: "success" }), M.status === 200 ? n(E(P.message) ? P.message : null) : M.status === 422 && m(E(P.message) ? P.message : null);
1741
+ } catch (P) {
1752
1742
  l("Dynamic Flow - ValidationAsync", { status: "failure" });
1753
1743
  }
1754
1744
  }, g = () => {
1755
1745
  c && c.abort();
1756
- let C = new AbortController();
1757
- return b(C), C.signal;
1746
+ let x = new AbortController();
1747
+ return b(x), x.signal;
1758
1748
  }, S = () => {
1759
- !E(t) && !We(t, o.current) && f(t, e.schema.validationAsync);
1760
- }, O = (C) => {
1761
- e.onChange(h(i({}, C), { triggerSchema: e.schema, triggerModel: C.model })), m(null), n(null), $(C.model, e.schema) && r(C.model);
1762
- }, F = { required: e.required, submitted: e.submitted || d, schema: e.schema, model: t, errors: s || e.errors, onChange: O, onBlur: S, infoMessage: a };
1763
- return (0, Ji.jsx)(et, i({}, F));
1749
+ !k(t) && !Ge(t, o.current) && f(t, e.schema.validationAsync);
1750
+ }, v = (x) => {
1751
+ e.onChange(h(i({}, x), { triggerSchema: e.schema, triggerModel: x.model })), m(null), n(null), $(x.model, e.schema) && r(x.model);
1752
+ }, C = { required: e.required, submitted: e.submitted || d, schema: e.schema, model: t, errors: s || e.errors, onChange: v, onBlur: S, infoMessage: a };
1753
+ return (0, Ji.jsx)(Ze, i({}, C));
1764
1754
  };
1765
1755
  Yi.defaultProps = { required: false };
1766
- var zr = Yi;
1767
- var V = require("react/jsx-runtime");
1768
- var Od = (e) => {
1769
- let { schema: t, model: r = null, errors: o = null, hideTitle: a = false, disabled: n = false } = e, s = h(i({}, e), { model: r, errors: o, hideTitle: a, disabled: n }), m = wo(t), d = Ge(), u = () => d.error("Invalid schema or model", `Schema of type ${m || "undefined"} requested, but schema did not pass validation.`);
1756
+ var Vr = Yi;
1757
+ var q = require("react/jsx-runtime");
1758
+ var vd = (e) => {
1759
+ let { schema: t, model: r = null, errors: o = null, hideTitle: a = false, disabled: n = false } = e, s = h(i({}, e), { model: r, errors: o, hideTitle: a, disabled: n }), m = wo(t), d = qe(), p = () => d.error("Invalid schema or model", `Schema of type ${m || "undefined"} requested, but schema did not pass validation.`);
1770
1760
  switch (m) {
1771
1761
  case "readOnly":
1772
- return (0, V.jsx)(Ho, i({}, s));
1762
+ return (0, q.jsx)(Ho, i({}, s));
1773
1763
  case "persistAsync":
1774
- if (St(t) && $a(r) && bt(o)) {
1764
+ if (bt(t) && Ha(r) && gt(o)) {
1775
1765
  let c = h(i({}, s), { schema: t, model: r, errors: o });
1776
- return (0, V.jsx)(Rr, i({}, c));
1766
+ return (0, q.jsx)(jr, i({}, c));
1777
1767
  } else
1778
- return u(), (0, V.jsx)(Rr, i({}, e));
1768
+ return p(), (0, q.jsx)(jr, i({}, e));
1779
1769
  case "validationAsync":
1780
- if (qt(t) && co(r) && bt(o)) {
1770
+ if (Ht(t) && co(r) && gt(o)) {
1781
1771
  let c = h(i({}, s), { schema: t, model: r, errors: o });
1782
- return (0, V.jsx)(zr, i({}, c));
1772
+ return (0, q.jsx)(Vr, i({}, c));
1783
1773
  } else
1784
- return u(), (0, V.jsx)(zr, i({}, e));
1774
+ return p(), (0, q.jsx)(Vr, i({}, e));
1785
1775
  case "basic":
1786
- if (fe(t) && co(r) && bt(o)) {
1776
+ if (pe(t) && co(r) && gt(o)) {
1787
1777
  let c = h(i({ infoMessage: null }, s), { schema: t, model: r, errors: o });
1788
- return (0, V.jsx)(et, i({}, c));
1778
+ return (0, q.jsx)(Ze, i({}, c));
1789
1779
  } else {
1790
1780
  let c = h(i({ infoMessage: null }, s), { schema: t, model: r, errors: o });
1791
- return u(), (0, V.jsx)(et, i({}, c));
1781
+ return p(), (0, q.jsx)(Ze, i({}, c));
1792
1782
  }
1793
1783
  case "object":
1794
1784
  if (ce(t) && lo(r)) {
1795
1785
  let c = h(i({}, s), { schema: t, model: r, errors: o });
1796
- return (0, V.jsx)(At, i({}, c), JSON.stringify(t));
1786
+ return (0, q.jsx)(Ot, i({}, c), JSON.stringify(t));
1797
1787
  } else
1798
- return u(), (0, V.jsx)(At, i({}, e));
1788
+ return p(), (0, q.jsx)(Ot, i({}, e));
1799
1789
  case "array":
1800
- if (ye(t) && Ga(r) && bt(o)) {
1790
+ if (fe(t) && qa(r) && gt(o)) {
1801
1791
  let c = h(i({}, s), { schema: t, model: r, errors: o });
1802
- return (0, V.jsx)(Mr, i({}, c));
1792
+ return (0, q.jsx)(Er, i({}, c));
1803
1793
  } else
1804
- return u(), (0, V.jsx)(Mr, i({}, e));
1794
+ return p(), (0, q.jsx)(Er, i({}, e));
1805
1795
  case "promotedOneOf":
1806
- if (Vt(t) && lo(r)) {
1796
+ if (zt(t) && lo(r)) {
1807
1797
  let c = h(i({}, s), { schema: t, model: r, errors: o });
1808
- return (0, V.jsx)(Ur, i({}, c));
1798
+ return (0, q.jsx)(Ur, i({}, c));
1809
1799
  } else
1810
- return u(), (0, V.jsx)(Ur, i({}, e));
1800
+ return p(), (0, q.jsx)(Ur, i({}, e));
1811
1801
  case "oneOf":
1812
1802
  if (me(t)) {
1813
1803
  let c = h(i({}, s), { schema: t, model: r, errors: o });
1814
- return (0, V.jsx)(Nr, i({}, c));
1804
+ return (0, q.jsx)(Nr, i({}, c));
1815
1805
  } else
1816
- return u(), (0, V.jsx)(Nr, i({}, e));
1806
+ return p(), (0, q.jsx)(Nr, i({}, e));
1817
1807
  case "allOf":
1818
- if (Ht(t) && J(r)) {
1808
+ if (Vt(t) && J(r)) {
1819
1809
  let c = h(i({}, s), { schema: t, model: r, errors: o });
1820
- return (0, V.jsx)(vr, i({}, c));
1810
+ return (0, q.jsx)(Pr, i({}, c));
1821
1811
  } else
1822
- return u(), (0, V.jsx)(vr, i({}, e));
1812
+ return p(), (0, q.jsx)(Pr, i({}, e));
1823
1813
  }
1824
- return (0, V.jsx)(V.Fragment, {});
1814
+ return (0, q.jsx)(q.Fragment, {});
1825
1815
  };
1826
- var de = Od;
1827
- var pt = require("react/jsx-runtime");
1816
+ var de = vd;
1817
+ var ut = require("react/jsx-runtime");
1828
1818
  var Ad = (e) => {
1829
1819
  let t = i({ model: null, errors: null, disabled: false, baseUrl: "" }, e);
1830
- return gr() || t.baseUrl == null ? (0, pt.jsx)(de, i({}, t)) : (0, pt.jsx)(vd, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, pt.jsx)(de, i({}, t)) });
1820
+ return br() || t.baseUrl == null ? (0, ut.jsx)(de, i({}, t)) : (0, ut.jsx)(Pd, { baseUrl: t.baseUrl, onEvent: t.onEvent, onLog: t.onLog, children: (0, ut.jsx)(de, i({}, t)) });
1831
1821
  };
1832
- var tr = Ad;
1833
- var vd = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, pt.jsx)(br, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : Zi, children: (0, pt.jsx)(dr, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : Zi, children: (0, pt.jsx)(hr, { baseUrl: e, children: o }) }) });
1822
+ var er = Ad;
1823
+ var Pd = ({ baseUrl: e, onEvent: t, onLog: r, children: o }) => (0, ut.jsx)(Sr, { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: r != null ? r : Zi, children: (0, ut.jsx)(ur, { metadata: { flowId: "JsonSchemaForm", stepId: "JsonSchemaForm" }, onEvent: t != null ? t : Zi, children: (0, ut.jsx)(gr, { baseUrl: e, children: o }) }) });
1834
1824
  var Zi = () => {
1835
1825
  };
1836
1826
  var qo = require("react/jsx-runtime");
1837
- var Pd = (e) => {
1827
+ var kd = (e) => {
1838
1828
  let t = e.component, r = t.schema;
1839
- return (0, qo.jsx)("div", { className: j(t.margin || "md"), children: (0, qo.jsx)(tr, { schema: r, model: e.model, submitted: e.submitted, errors: e.errors, onChange: (o) => {
1829
+ return (0, qo.jsx)("div", { className: U(t.margin || "md"), children: (0, qo.jsx)(er, { schema: r, model: e.model, submitted: e.submitted, errors: e.errors, onChange: (o) => {
1840
1830
  e.onModelChange(i({ formSchema: r }, o));
1841
1831
  }, onPersistAsync: e.onPersistAsync }) });
1842
1832
  };
1843
- var $o = Pd;
1844
- var Lt = require("react/jsx-runtime");
1845
- var kd = (e) => {
1846
- let { text: t, size: r = "md", align: o = "left", margin: a = "md" } = e.component, n = Ke({ align: o, margin: a });
1833
+ var $o = kd;
1834
+ var Dt = require("react/jsx-runtime");
1835
+ var Md = (e) => {
1836
+ let { text: t, size: r = "md", align: o = "left", margin: a = "md" } = e.component, n = De({ align: o, margin: a });
1847
1837
  switch (r) {
1848
1838
  case "xs":
1849
- return (0, Lt.jsx)("h5", { className: n, children: t });
1839
+ return (0, Dt.jsx)("h5", { className: n, children: t });
1850
1840
  case "sm":
1851
- return (0, Lt.jsx)("h4", { className: n, children: t });
1841
+ return (0, Dt.jsx)("h4", { className: n, children: t });
1852
1842
  case "lg":
1853
- return (0, Lt.jsx)("h2", { className: n, children: t });
1843
+ return (0, Dt.jsx)("h2", { className: n, children: t });
1854
1844
  case "xl":
1855
- return (0, Lt.jsx)("h1", { className: n, children: t });
1845
+ return (0, Dt.jsx)("h1", { className: n, children: t });
1856
1846
  case "md":
1857
1847
  default:
1858
- return (0, Lt.jsx)("h3", { className: n, children: t });
1848
+ return (0, Dt.jsx)("h3", { className: n, children: t });
1859
1849
  }
1860
1850
  };
1861
- var Go = kd;
1851
+ var Go = Md;
1852
+ var _o = require("@transferwise/components");
1853
+ var tr = require("react/jsx-runtime");
1854
+ var Wo = ({ component: e }) => {
1855
+ let { content: t, align: r, margin: o } = e;
1856
+ return (0, tr.jsx)("div", { className: De({ align: r, margin: o }), children: (0, tr.jsx)(_o.Markdown, { config: { link: { target: "_blank" } }, children: t }) });
1857
+ };
1858
+ var Ko = ({ component: e }) => (0, tr.jsx)("div", { className: De(e), children: (0, tr.jsx)(_o.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
1862
1859
  var Xi = require("@transferwise/components");
1863
- var _o = require("react/jsx-runtime");
1864
- var Md = ({ component: e }) => (0, _o.jsx)("div", { className: Ke(e), children: (0, _o.jsx)(Xi.Markdown, { config: { link: { target: "_blank" } }, children: e.markdown }) });
1865
- var Wo = Md;
1866
- var Qi = require("@transferwise/components");
1867
- var Vr = require("react");
1868
- var Ko = require("react/jsx-runtime");
1860
+ var Hr = require("react");
1861
+ var Yo = require("react/jsx-runtime");
1869
1862
  var Ed = ({ component: e }) => {
1870
- let { url: t, size: r, text: o, margin: a } = e, n = re(), [s, m] = (0, Vr.useState)("");
1871
- (0, Vr.useEffect)(() => {
1863
+ let { url: t, size: r, text: o, margin: a } = e, n = re(), [s, m] = (0, Hr.useState)("");
1864
+ (0, Hr.useEffect)(() => {
1872
1865
  Dd(n, t).then(m);
1873
1866
  }, [t, n]);
1874
1867
  let d = { alt: o || "", src: s, stretch: true, shrink: true };
1875
- return s ? (0, Ko.jsx)("div", { className: `df-image ${r || "xl"}`, children: (0, Ko.jsx)(Qi.Image, i({ className: `img-responsive ${j(a || "lg")}` }, d)) }) : null;
1868
+ return s ? (0, Yo.jsx)("div", { className: `df-image ${r || "xl"}`, children: (0, Yo.jsx)(Xi.Image, i({ className: `img-responsive ${U(a || "lg")}` }, d)) }) : null;
1876
1869
  };
1877
1870
  var Id = (e) => new Promise((t, r) => {
1878
1871
  let o = new FileReader();
@@ -1881,7 +1874,7 @@ var require_main_min = __commonJS({
1881
1874
  var Dd = async (e, t) => {
1882
1875
  var r;
1883
1876
  try {
1884
- return pr(t) || (t == null ? void 0 : t.indexOf(`${(r = window == null ? void 0 : window.location) == null ? void 0 : r.origin}/`)) === 0 ? e(t, { method: "GET", headers: { "Content-Type": "image/image" }, credentials: "same-origin" }).then((o) => {
1877
+ return fr(t) || (t == null ? void 0 : t.indexOf(`${(r = window == null ? void 0 : window.location) == null ? void 0 : r.origin}/`)) === 0 ? e(t, { method: "GET", headers: { "Content-Type": "image/image" }, credentials: "same-origin" }).then((o) => {
1885
1878
  if (o.ok)
1886
1879
  return o.blob();
1887
1880
  throw new Error("Image fetching failed");
@@ -1890,186 +1883,189 @@ var require_main_min = __commonJS({
1890
1883
  return t;
1891
1884
  }
1892
1885
  };
1893
- var Yo = Ed;
1894
- var H = require("react/jsx-runtime");
1895
- var X = (e) => JSON.stringify(e);
1886
+ var Jo = Ed;
1887
+ var z = require("react/jsx-runtime");
1888
+ var Z = (e) => JSON.stringify(e);
1896
1889
  var Ld = (e) => {
1897
- let { components: t, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: m, baseUrl: d } = e, u = (c) => {
1890
+ let { components: t, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: m, baseUrl: d } = e, p = (c) => {
1898
1891
  switch (c.type) {
1899
1892
  case "heading":
1900
- return (0, H.jsx)(Go, { component: c }, X(c));
1893
+ return (0, z.jsx)(Go, { component: c }, Z(c));
1901
1894
  case "paragraph":
1902
- return (0, H.jsx)(Xo, { component: c }, X(c));
1895
+ return (0, z.jsx)(Qo, { component: c }, Z(c));
1903
1896
  case "image":
1904
- return (0, H.jsx)(Yo, { component: c }, X(c));
1897
+ return (0, z.jsx)(Jo, { component: c }, Z(c));
1905
1898
  case "alert":
1906
- return (0, H.jsx)(ae, { component: c }, X(c));
1899
+ return (0, z.jsx)(ne, { component: c }, Z(c));
1907
1900
  case "review":
1908
- return (0, H.jsx)(Qo, { component: c, onAction: s }, X(c));
1901
+ return (0, z.jsx)(ea, { component: c, onAction: s }, Z(c));
1909
1902
  case "divider":
1910
- return (0, H.jsx)(Ao, { component: c }, X(c));
1903
+ return (0, z.jsx)(vo, { component: c }, Z(c));
1911
1904
  case "info":
1912
- return (0, H.jsx)(Wo, { component: c }, X(c));
1905
+ return (0, z.jsx)(Ko, { component: c }, Z(c));
1906
+ case "markdown":
1907
+ return (0, z.jsx)(Wo, { component: c }, Z(c));
1913
1908
  case "columns":
1914
- return (0, H.jsx)(xo, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: m }, X(c));
1909
+ return (0, z.jsx)(xo, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: m }, Z(c));
1915
1910
  case "form":
1916
- return (0, H.jsx)($o, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onPersistAsync: m }, X(c));
1911
+ return (0, z.jsx)($o, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onPersistAsync: m }, Z(h(i({}, c), { errors: a })));
1917
1912
  case "button":
1918
- return (0, H.jsx)(Co, { component: c, onAction: s }, X(c));
1913
+ return (0, z.jsx)(Co, { component: c, onAction: s }, Z(c));
1919
1914
  case "box":
1920
- return (0, H.jsx)(Fo, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: m }, X(c));
1915
+ return (0, z.jsx)(Fo, { component: c, model: r, submitted: o, errors: a, onModelChange: n, onAction: s, onPersistAsync: m }, Z(c));
1921
1916
  case "decision":
1922
- return (0, H.jsx)(Oo, { component: c, onAction: s }, X(c));
1917
+ return (0, z.jsx)(Oo, { component: c, onAction: s }, Z(c));
1923
1918
  case "external":
1924
- return (0, H.jsx)(vo, { component: c, onAction: s }, X(c));
1919
+ return (0, z.jsx)(Ao, { component: c, onAction: s }, Z(c));
1925
1920
  case "list":
1926
- return (0, H.jsx)(Jo, { component: c, onAction: s }, X(c));
1921
+ return (0, z.jsx)(Zo, { component: c, onAction: s }, Z(c));
1927
1922
  case "loading-indicator":
1928
- return (0, H.jsx)(Zo, { component: c }, X(c));
1923
+ return (0, z.jsx)(Xo, { component: c }, Z(c));
1929
1924
  default:
1930
- return (0, H.jsx)("div", {}, X(c));
1925
+ return (0, z.jsx)("div", {}, Z(c));
1931
1926
  }
1932
1927
  };
1933
- return gr() || d == null ? (0, H.jsx)(H.Fragment, { children: t.map(u) }) : (0, H.jsx)(hr, { baseUrl: d, children: t.map(u) });
1928
+ return br() || d == null ? (0, z.jsx)(z.Fragment, { children: t.map(p) }) : (0, z.jsx)(gr, { baseUrl: d, children: t.map(p) });
1934
1929
  };
1935
- var ne = Ld;
1930
+ var ie = Ld;
1931
+ var Qi = require("@transferwise/components");
1932
+ var Lt = require("react/jsx-runtime");
1933
+ var Td = ({ component: e }) => (0, Lt.jsxs)("div", { className: U(e.margin || "md"), children: [e.title ? (0, Lt.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(Bd)] });
1934
+ function Bd({ title: e, description: t, icon: r, status: o }) {
1935
+ let a = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Lt.jsx)(We, { type: r.name }) } : {}), o ? { status: Nd[o] } : {});
1936
+ return (0, Lt.jsx)(Qi.Summary, i({}, a));
1937
+ }
1938
+ var Nd = { positive: "done", warning: "pending", neutral: "notDone" };
1939
+ var Zo = Td;
1936
1940
  var es = require("@transferwise/components");
1937
- var Tt = require("react/jsx-runtime");
1938
- var Td = ({ component: e }) => (0, Tt.jsxs)("div", { className: j(e.margin || "md"), children: [e.title ? (0, Tt.jsxs)("h4", { className: "m-b-2", children: [" ", e.title, " "] }) : null, e.items.map(Nd)] });
1939
- function Nd({ title: e, description: t, icon: r, status: o }) {
1940
- let a = i(i({ key: `${e}/${t || ""}`, title: e, description: t }, r != null && r.name ? { icon: (0, Tt.jsx)(Je, { type: r.name }) } : {}), o ? { status: Bd[o] } : {});
1941
- return (0, Tt.jsx)(es.Summary, i({}, a));
1942
- }
1943
- var Bd = { positive: "done", warning: "pending", neutral: "notDone" };
1944
- var Jo = Td;
1945
- var ts = require("@transferwise/components");
1946
- var rs = require("react/jsx-runtime");
1941
+ var ts = require("react/jsx-runtime");
1947
1942
  var Rd = ({ component: e }) => {
1948
1943
  let { margin: t, size: r = "md" } = e;
1949
- return (0, rs.jsx)(ts.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${j(t)}` }, "data-testid": "loading-indicator" });
1950
- };
1951
- var Zo = Rd;
1952
- var ss = require("@transferwise/components");
1953
- var ls = require("react-intl");
1954
- var os = require("react-intl");
1955
- var ea = (0, os.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." } });
1956
- var as = require("@transferwise/components");
1957
- var ns = require("react");
1958
- function is() {
1959
- let e = (0, ns.useContext)(as.SnackbarContext);
1960
- return e ? e.createSnackbar : Ud;
1961
- }
1962
- function Ud() {
1963
- }
1964
- var tt = require("react/jsx-runtime");
1965
- var jd = ({ component: e }) => e.control === "copyable" ? (0, tt.jsx)(Vd, { component: e }) : (0, tt.jsx)(zd, { component: e });
1966
- var zd = ({ component: e }) => (0, tt.jsxs)("p", { className: Ke(e), children: [" ", e.text, " "] });
1944
+ return (0, ts.jsx)(es.Loader, { size: r, classNames: { "tw-loader": `tw-loader m-x-auto ${U(t)}` }, "data-testid": "loading-indicator" });
1945
+ };
1946
+ var Xo = Rd;
1947
+ var is = require("@transferwise/components");
1948
+ var ss = require("react-intl");
1949
+ var rs = require("react-intl");
1950
+ var ta = (0, rs.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." } });
1951
+ var os = require("@transferwise/components");
1952
+ var as = require("react");
1953
+ function ns() {
1954
+ let e = (0, as.useContext)(os.SnackbarContext);
1955
+ return e ? e.createSnackbar : jd;
1956
+ }
1957
+ function jd() {
1958
+ }
1959
+ var Xe = require("react/jsx-runtime");
1960
+ var Ud = ({ component: e }) => e.control === "copyable" ? (0, Xe.jsx)(Vd, { component: e }) : (0, Xe.jsx)(zd, { component: e });
1961
+ var zd = ({ component: e }) => (0, Xe.jsxs)("p", { className: De(e), children: [" ", e.text, " "] });
1967
1962
  var Vd = ({ component: e }) => {
1968
- let { formatMessage: t } = (0, ls.useIntl)(), r = is(), { text: o } = e, a = () => {
1963
+ let { formatMessage: t } = (0, ss.useIntl)(), r = ns(), { text: o } = e, a = () => {
1969
1964
  var s;
1970
- (s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(ea.copied) })).catch(Hd);
1971
- }, n = Ke({ align: e.align, margin: "sm" }) + " form-control";
1972
- return (0, tt.jsxs)("div", { className: Ke(e), children: [(0, tt.jsx)("input", { type: "text", className: n, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, tt.jsx)(ss.Button, { block: true, onClick: a, children: t(ea.copy) })] });
1965
+ (s = navigator.clipboard) == null || s.writeText(o).then(() => r({ text: t(ta.copied) })).catch(Hd);
1966
+ }, n = De({ align: e.align, margin: "sm" }) + " form-control";
1967
+ return (0, Xe.jsxs)("div", { className: De(e), children: [(0, Xe.jsx)("input", { type: "text", className: n, value: o, readOnly: true, style: { textOverflow: "ellipsis" } }), (0, Xe.jsx)(is.Button, { block: true, onClick: a, children: t(ta.copy) })] });
1973
1968
  };
1974
1969
  function Hd() {
1975
1970
  }
1976
- var Xo = jd;
1977
- var cs = require("@transferwise/components");
1971
+ var Qo = Ud;
1972
+ var ls = require("@transferwise/components");
1978
1973
  var je = require("react/jsx-runtime");
1979
1974
  var qd = ({ label: e, value: t }, r) => ({ key: String(r), title: e, value: t });
1980
1975
  var $d = (e) => e === "horizontal" ? "HORIZONTAL_RIGHT_ALIGNED" : "VERTICAL_ONE_COLUMN";
1981
1976
  var Gd = (e) => {
1982
- let t = e.component, r = j(t.margin || "xs"), o = (a) => (0, je.jsx)("a", { href: a.url, className: "pull-right", role: "button", onClick: (n) => {
1977
+ let t = e.component, r = U(t.margin || "xs"), o = (a) => (0, je.jsx)("a", { href: a.url, className: "pull-right", role: "button", onClick: (n) => {
1983
1978
  n.preventDefault(), e.onAction(a);
1984
1979
  }, children: a.title });
1985
- return (0, je.jsxs)(je.Fragment, { children: [t.title && (0, je.jsxs)("h6", { className: "m-b-2", children: [t.title, t.action && o(t.action)] }), (0, je.jsx)("div", { className: r, children: (0, je.jsx)(cs.DefinitionList, { layout: $d(t.orientation), definitions: t.fields.map(qd) }) })] });
1986
- };
1987
- var Qo = Gd;
1988
- var se = require("react/jsx-runtime");
1989
- var ta = (e) => E(e) || K(e);
1990
- var _d = (e) => e.type === "boolean" && ta(e.default) ? false : e.default;
1991
- var ds = (e) => {
1992
- var ee, v, T;
1993
- let t = (M) => {
1994
- y(true), o(a(M), "user");
1995
- }, r = (M) => _e(M, e.schema, e.required), o = (M, ue) => {
1996
- d(M);
1997
- let pe = r(M);
1998
- O(pe);
1999
- let le = M;
2000
- c(le), le !== u && e.onChange({ model: le, triggerSchema: e.schema, triggerModel: le, lastTriggerModel: u, type: ue });
2001
- }, a = (M) => Le(M, e.schema), n = () => p(true), s = () => {
2002
- p(false), g(true), e.onBlur && e.onBlur();
2003
- }, [m, d] = (0, ie.useState)((ee = e.model) != null ? ee : null), [u, c] = (0, ie.useState)((v = e.model) != null ? v : null), [b, y] = (0, ie.useState)(false), [l, p] = (0, ie.useState)(false), [f, g] = (0, ie.useState)(false), [S, O] = (0, ie.useState)([]), F = (0, ie.useMemo)(() => e.schema.$id || ve(), [e.schema.$id]), C = () => {
2004
- let M = _d(e.schema);
2005
- ta(m) && !ta(M) && o(M, "init"), e.schema.const && o(e.schema.const, "init");
1980
+ return (0, je.jsxs)(je.Fragment, { children: [t.title && (0, je.jsxs)("h6", { className: "m-b-2", children: [t.title, t.action && o(t.action)] }), (0, je.jsx)("div", { className: r, children: (0, je.jsx)(ls.DefinitionList, { layout: $d(t.orientation), definitions: t.fields.map(qd) }) })] });
1981
+ };
1982
+ var ea = Gd;
1983
+ var le = require("react/jsx-runtime");
1984
+ var ra = (e) => k(e) || W(e);
1985
+ var _d = (e) => e.type === "boolean" && ra(e.default) ? false : e.default;
1986
+ var ms = (e) => {
1987
+ var X, O, T;
1988
+ let t = (L) => {
1989
+ y(true), o(a(L), "user");
1990
+ }, r = (L) => $e(L, e.schema, e.required), o = (L, oe) => {
1991
+ d(L);
1992
+ let Ve = r(L);
1993
+ v(Ve);
1994
+ let ue = L;
1995
+ c(ue), ue !== p && e.onChange({ model: ue, triggerSchema: e.schema, triggerModel: ue, lastTriggerModel: p, type: oe });
1996
+ }, a = (L) => Ie(L, e.schema), n = () => u(true), s = () => {
1997
+ u(false), g(true), e.onBlur && e.onBlur();
1998
+ }, [m, d] = (0, se.useState)((X = e.model) != null ? X : null), [p, c] = (0, se.useState)((O = e.model) != null ? O : null), [b, y] = (0, se.useState)(false), [l, u] = (0, se.useState)(false), [f, g] = (0, se.useState)(false), [S, v] = (0, se.useState)([]), C = (0, se.useMemo)(() => e.schema.$id || ve(), [e.schema.$id]), x = () => {
1999
+ let L = _d(e.schema);
2000
+ ra(m) && !ra(L) && o(L, "init"), e.schema.const && o(e.schema.const, "init");
2006
2001
  }, A = () => {
2007
- O(r(m));
2008
- }, w = e.schema.const, D = e.schema.hidden || w;
2009
- (0, ie.useEffect)(A, [e.model, e.submitted]), (0, ie.useEffect)(C, [e.schema]), (0, ie.useEffect)(() => {
2010
- var M;
2011
- return d((M = e.model) != null ? M : null);
2002
+ v(r(m));
2003
+ }, F = e.schema.const, D = e.schema.hidden || F;
2004
+ (0, se.useEffect)(A, [e.model, e.submitted]), (0, se.useEffect)(x, [e.schema]), (0, se.useEffect)(() => {
2005
+ var oe;
2006
+ let L = (oe = e.model) != null ? oe : null;
2007
+ L !== m && d(L);
2012
2008
  }, [e.model]);
2013
- let k = { "form-group": true, "has-error": (e.submitted || !b) && !!e.errors || (e.submitted || b && f) && !!S.length, "has-info": l && !!e.schema.description || !!e.infoMessage }, I = e.schema.format !== "file" && e.schema.type !== "boolean", q = e.schema.help;
2014
- return D ? null : (0, se.jsxs)(se.Fragment, { children: [e.schema.alert && (0, se.jsx)(ae, { component: e.schema.alert }), (0, se.jsxs)("div", { className: (0, ms.default)(k), children: [I && (0, se.jsxs)("div", { className: "d-inline-block", children: [(0, se.jsx)("label", { className: "control-label d-inline", htmlFor: F, children: e.schema.title }), !!q && (0, se.jsx)(vt, { help: q })] }), !I && !!q && (0, se.jsx)(vt, { help: q }), (0, se.jsx)(Jt, { id: F, schema: e.schema, value: m, disabled: !!e.disabled, onChange: t, onFocus: n, onBlur: s }), (0, se.jsx)(Ne, { changed: b, focused: l, blurred: f, submitted: e.submitted, errors: (T = e.errors) != null ? T : null, schema: e.schema, validations: S, infoMessage: e.infoMessage })] })] });
2015
- };
2016
- ds.defaultProps = { required: false, disabled: false, onBlur: null };
2017
- var et = ds;
2018
- var ys = require("react/jsx-runtime");
2019
- var Uo = (e, t) => t[e];
2020
- var ps = (e, t) => {
2009
+ let M = { "form-group": true, "has-error": (e.submitted || !b) && !!e.errors || (e.submitted || b && f) && !!S.length, "has-info": l && !!e.schema.description || !!e.infoMessage }, P = e.schema.format !== "file" && e.schema.type !== "boolean", V = e.schema.help;
2010
+ return D ? null : (0, le.jsxs)(le.Fragment, { children: [e.schema.alert && (0, le.jsx)(ne, { component: e.schema.alert }), (0, le.jsxs)("div", { className: (0, cs.default)(M), children: [P && (0, le.jsxs)("div", { className: "d-inline-block", children: [(0, le.jsx)("label", { className: "control-label d-inline", htmlFor: C, children: e.schema.title }), !!V && (0, le.jsx)(vt, { help: V })] }), !P && !!V && (0, le.jsx)(vt, { help: V }), (0, le.jsx)(Yt, { id: C, schema: e.schema, value: m, disabled: !!e.disabled, onChange: t, onFocus: n, onBlur: s }), (0, le.jsx)(Te, { changed: b, focused: l, blurred: f, submitted: e.submitted, errors: (T = e.errors) != null ? T : null, schema: e.schema, validations: S, infoMessage: e.infoMessage })] })] });
2011
+ };
2012
+ ms.defaultProps = { required: false, disabled: false, onBlur: null };
2013
+ var Ze = ms;
2014
+ var fs = require("react/jsx-runtime");
2015
+ var jo = (e, t) => t[e];
2016
+ var us = (e, t) => {
2021
2017
  var r;
2022
2018
  return (r = t.validation) == null ? void 0 : r[e];
2023
2019
  };
2024
- var Wd = /* @__PURE__ */ new Set([B.RADIO, B.SELECT, B.DATELOOKUP, B.FILE, B.UPLOAD]);
2025
- var fs = (e) => {
2026
- let t = (0, us.useIntl)(), r = re(), o = Z(), [a, n] = (0, ft.useState)(null), s = hs(a), [m, d] = (0, ft.useState)(null), [u, c] = (0, ft.useState)(false), [b, y] = (0, ft.useState)(null), l = Ge();
2027
- (0, ft.useEffect)(() => {
2028
- Wd.has(No(e.schema.persistAsync.schema, l)) && S();
2020
+ var Wd = /* @__PURE__ */ new Set([R.RADIO, R.SELECT, R.DATELOOKUP, R.FILE, R.UPLOAD]);
2021
+ var ps = (e) => {
2022
+ let t = (0, ds.useIntl)(), r = re(), o = Q(), [a, n] = (0, pt.useState)(null), s = ys(a), [m, d] = (0, pt.useState)(null), [p, c] = (0, pt.useState)(false), [b, y] = (0, pt.useState)(null), l = qe();
2023
+ (0, pt.useEffect)(() => {
2024
+ Wd.has(Bo(e.schema.persistAsync.schema, l)) && S();
2029
2025
  }, [a]);
2030
- let p = () => d(t.formatMessage(Kt.genericError)), f = async (C, A) => {
2031
- let w = g(), D = { [A.param]: C };
2026
+ let u = () => d(t.formatMessage(Wt.genericError)), f = async (x, A) => {
2027
+ let F = g(), D = { [A.param]: x };
2032
2028
  c(true);
2033
2029
  try {
2034
- o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: xr.$id });
2035
- let k = r(A.url, { method: A.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(D), signal: w });
2036
- e.onPersistAsync(k);
2037
- let I = await k, q = await I.json();
2038
- if (!R(q))
2030
+ o("Dynamic Flow - PersistAsync", { status: "pending", schemaId: Or.$id });
2031
+ let M = r(A.url, { method: A.method, headers: { "Content-Type": "application/json" }, body: JSON.stringify(D), signal: F });
2032
+ e.onPersistAsync(M);
2033
+ let P = await M, V = await P.json();
2034
+ if (!N(V))
2039
2035
  throw new Error("Response is not an object");
2040
- let { idProperty: ee, param: v } = e.schema.persistAsync;
2041
- if (za(I.status)) {
2042
- let T = Uo(ee, q);
2036
+ let { idProperty: X, param: O } = e.schema.persistAsync;
2037
+ if (ja(P.status)) {
2038
+ let T = jo(X, V);
2043
2039
  e.onChange({ model: T, triggerSchema: e.schema, triggerModel: T });
2044
- } else if (ur(I.status)) {
2045
- let { validation: T } = q, M = R(T) && (T == null ? void 0 : T[v]) || null;
2046
- d(M), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null });
2040
+ } else if (pr(P.status)) {
2041
+ let { validation: T } = V, L = N(T) && (T == null ? void 0 : T[O]) || null;
2042
+ d(L), e.onChange({ model: null, triggerSchema: e.schema, triggerModel: null });
2047
2043
  } else
2048
- p();
2049
- o("Dynamic Flow - PersistAsync", { status: "success", schemaId: xr.$id });
2050
- } catch (k) {
2051
- o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: xr.$id }), p();
2044
+ u();
2045
+ o("Dynamic Flow - PersistAsync", { status: "success", schemaId: Or.$id });
2046
+ } catch (M) {
2047
+ o("Dynamic Flow - PersistAsync", { status: "failure", schemaId: Or.$id }), u();
2052
2048
  }
2053
2049
  }, g = () => {
2054
2050
  b && b.abort();
2055
- let C = new AbortController();
2056
- return y(C), C.signal;
2051
+ let x = new AbortController();
2052
+ return y(x), x.signal;
2057
2053
  }, S = () => {
2058
- !E(a) && !We(a, s) && f(a, e.schema.persistAsync);
2059
- }, O = () => {
2054
+ !k(a) && !Ge(a, s) && f(a, e.schema.persistAsync);
2055
+ }, v = () => {
2060
2056
  S();
2061
- }, F = ({ model: C }) => {
2062
- d(null), $(C, e.schema.persistAsync.schema) && n(C);
2057
+ }, C = ({ model: x }) => {
2058
+ d(null), $(x, e.schema.persistAsync.schema) && n(x);
2063
2059
  };
2064
- return (0, ys.jsx)(et, { required: e.required, submitted: e.submitted || u, schema: e.schema.persistAsync.schema, errors: m || e.errors, model: null, infoMessage: null, onChange: F, onBlur: O });
2060
+ return (0, fs.jsx)(Ze, { required: e.required, submitted: e.submitted || p, schema: e.schema.persistAsync.schema, errors: m || e.errors, model: null, infoMessage: null, onChange: C, onBlur: v });
2065
2061
  };
2066
- fs.defaultProps = { required: false };
2067
- var Bo = fs;
2062
+ ps.defaultProps = { required: false };
2063
+ var No = ps;
2068
2064
  var ti = (e) => {
2069
- let [t, r] = (0, gs.useState)(null), o = re(), a = (0, bs.useIntl)(), { schema: n } = e;
2065
+ let [t, r] = (0, hs.useState)(null), o = re(), a = (0, gs.useIntl)(), { schema: n } = e;
2070
2066
  async function s(y) {
2071
- let l = y instanceof Blob ? !st(n) : !$(y, n);
2072
- return (E(y) || l) && b(), await u(y);
2067
+ let l = y instanceof Blob ? !it(n) : !$(y, n);
2068
+ return (k(y) || l) && b(), await p(y);
2073
2069
  }
2074
2070
  let m = () => {
2075
2071
  t && t.abort();
@@ -2077,18 +2073,18 @@ var require_main_min = __commonJS({
2077
2073
  return r(y), y.signal;
2078
2074
  };
2079
2075
  function d(y) {
2080
- let l = st(n), p = m(), f = e.param, g = l ? Kd(f, y) : JSON.stringify({ [f]: y });
2081
- return { method: e.method, headers: i({}, !l && { "Content-Type": "application/json" }), body: g, signal: p };
2076
+ let l = it(n), u = m(), f = e.param, g = l ? Kd(f, y) : JSON.stringify({ [f]: y });
2077
+ return { method: e.method, headers: i({}, !l && { "Content-Type": "application/json" }), body: g, signal: u };
2082
2078
  }
2083
- async function u(y) {
2079
+ async function p(y) {
2084
2080
  try {
2085
2081
  let l = await o(e.url, d(y));
2086
2082
  if (!l.ok)
2087
2083
  return c(l);
2088
- let p = await l.json();
2089
- if (R(p)) {
2090
- let f = p[e.idProperty];
2091
- if (L(f) || N(f))
2084
+ let u = await l.json();
2085
+ if (N(u)) {
2086
+ let f = u[e.idProperty];
2087
+ if (E(f) || B(f))
2092
2088
  return { data: f };
2093
2089
  }
2094
2090
  return b();
@@ -2099,16 +2095,16 @@ var require_main_min = __commonJS({
2099
2095
  async function c(y) {
2100
2096
  if (y.status === 422) {
2101
2097
  let l = await y.json();
2102
- if (R(l)) {
2103
- let p = ps(e.param, l);
2104
- if (L(p))
2105
- throw new Error(p);
2098
+ if (N(l)) {
2099
+ let u = us(e.param, l);
2100
+ if (E(u))
2101
+ throw new Error(u);
2106
2102
  }
2107
2103
  }
2108
- throw new Error(a.formatMessage(Kt.genericError));
2104
+ throw new Error(a.formatMessage(Wt.genericError));
2109
2105
  }
2110
2106
  let b = (y) => {
2111
- let l = Yd(y) ? y.message : a.formatMessage(Kt.genericError);
2107
+ let l = Yd(y) ? y.message : a.formatMessage(Wt.genericError);
2112
2108
  throw new Error(l);
2113
2109
  };
2114
2110
  return s;
@@ -2118,19 +2114,19 @@ var require_main_min = __commonJS({
2118
2114
  return t !== null && r.append(e, t), r;
2119
2115
  }
2120
2116
  function Yd(e) {
2121
- return R(e) && "message" in e && typeof e.message == "string";
2117
+ return N(e) && "message" in e && typeof e.message == "string";
2122
2118
  }
2123
- var rt = require("react");
2124
- function Cr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: a, onFailure: n }) {
2125
- let s = (0, rt.useRef)(a), m = (0, rt.useRef)(n), d = (0, rt.useMemo)(() => Jd(e, r, o, (u) => s.current(u), () => m.current()), [e, r, o]);
2126
- (0, rt.useEffect)(() => {
2119
+ var Qe = require("react");
2120
+ function xr({ asyncFn: e, interval: t, maxAttempts: r, maxConsecutiveFails: o, onPollingResponse: a, onFailure: n }) {
2121
+ let s = (0, Qe.useRef)(a), m = (0, Qe.useRef)(n), d = (0, Qe.useMemo)(() => Jd(e, r, o, (p) => s.current(p), () => m.current()), [e, r, o]);
2122
+ (0, Qe.useEffect)(() => {
2127
2123
  if (t > 0) {
2128
- let u = setInterval(() => {
2124
+ let p = setInterval(() => {
2129
2125
  d();
2130
2126
  }, t);
2131
- return () => clearInterval(u);
2127
+ return () => clearInterval(p);
2132
2128
  }
2133
- }, [d, t]), (0, rt.useEffect)(() => {
2129
+ }, [d, t]), (0, Qe.useEffect)(() => {
2134
2130
  s.current = a, m.current = n;
2135
2131
  }, [a, n]);
2136
2132
  }
@@ -2147,15 +2143,15 @@ var require_main_min = __commonJS({
2147
2143
  } : () => {
2148
2144
  };
2149
2145
  }
2150
- var Hr = require("react");
2151
- var hs = (e) => {
2152
- let t = (0, Hr.useRef)();
2153
- return (0, Hr.useEffect)(() => {
2146
+ var qr = require("react");
2147
+ var ys = (e) => {
2148
+ let t = (0, qr.useRef)();
2149
+ return (0, qr.useEffect)(() => {
2154
2150
  t.current = e;
2155
2151
  }, [e]), t.current;
2156
2152
  };
2157
2153
  var rr = require("react");
2158
- function Ss(e, t) {
2154
+ function bs(e, t) {
2159
2155
  let r = re(), o = (0, rr.useMemo)(() => {
2160
2156
  if (e)
2161
2157
  return () => r(e.url).then((n) => {
@@ -2164,48 +2160,48 @@ var require_main_min = __commonJS({
2164
2160
  throw new Error("failed");
2165
2161
  });
2166
2162
  }, [e, r]), a = (0, rr.useCallback)((n) => n != null && n.action ? (t(n.action), false) : true, [t]);
2167
- Cr({ asyncFn: o, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse: a, onFailure: (0, rr.useCallback)(() => {
2163
+ xr({ asyncFn: o, interval: 1e3 * ((e == null ? void 0 : e.interval) || 0), maxAttempts: (e == null ? void 0 : e.maxAttempts) || 0, maxConsecutiveFails: 1, onPollingResponse: a, onFailure: (0, rr.useCallback)(() => {
2168
2164
  e && t(e.onError.action);
2169
2165
  }, [t, e]) });
2170
2166
  }
2171
- var ws = require("react/jsx-runtime");
2167
+ var Ss = require("react/jsx-runtime");
2172
2168
  var Zd = (e, t) => {
2173
2169
  var o;
2174
- if (!e || wt(e) || !e.layout && !e.type)
2170
+ if (St(e))
2175
2171
  return [];
2176
- let r = zt(e, t);
2177
- return $e({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (o = e.model) != null ? o : null });
2172
+ let r = Ut(e, t);
2173
+ return He({ layout: r, schemas: e.schemas || [], actions: e.actions || [], model: (o = e.model) != null ? o : null });
2178
2174
  };
2179
2175
  var Xd = (e) => {
2180
- let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: a, formErrors: n, onModelChange: s } = e, m = Zd(t, r), { loading: d, registerPersistAsyncPromise: u } = mr(), c = Z(), b = d ? () => {
2176
+ let { stepSpecification: t, stepLayoutOptions: r, submitted: o, model: a, formErrors: n, onModelChange: s } = e, m = Zd(t, r), { loading: d, registerPersistAsyncPromise: p } = dr(), c = Q(), b = d ? () => {
2181
2177
  c("Dynamic Flow - onAction supressed", { reason: "LayoutStep - loading state" });
2182
2178
  } : e.onAction;
2183
- return Ss(t.polling, b), (0, ws.jsx)(ne, { components: m, submitted: o, model: a, errors: n, onAction: b, onModelChange: s, onPersistAsync: u });
2184
- };
2185
- var qr = Xd;
2186
- var Kr = require("react");
2187
- var Ce = require("react");
2188
- var qs = require("react-intl");
2189
- var $s = Ee(Fs());
2179
+ return bs(t.polling, b), (0, Ss.jsx)(ie, { components: m, submitted: o, model: a, errors: n, onAction: b, onModelChange: s, onPersistAsync: p });
2180
+ };
2181
+ var $r = Xd;
2182
+ var Yr = require("react");
2183
+ var Fe = require("react");
2184
+ var Hs = require("react-intl");
2185
+ var qs = Me(ws());
2186
+ var Fs = require("react-intl");
2187
+ var ar = (0, Fs.defineMessages)({ reviewSubmit: { id: "dynamicFlows.CameraCapture.reviewSubmit", defaultMessage: "Yes, submit", description: "Accept and submit the image taken with the camera" }, reviewRetry: { id: "dynamicFlows.CameraCapture.reviewRetry", defaultMessage: "No, try again", description: "Image taken with camera is not good, don't submit, and retake the image" }, reviewInstructions: { id: "dynamicFlows.CameraCapture.reviewInstructions", defaultMessage: "Is your picture clear, readable and complete?", description: "After taking an image with the camera, prompt user to review the image" } });
2188
+ var we = require("@transferwise/components");
2190
2189
  var Cs = require("react-intl");
2191
- var ar = (0, Cs.defineMessages)({ reviewSubmit: { id: "dynamicFlows.CameraCapture.reviewSubmit", defaultMessage: "Yes, submit", description: "Accept and submit the image taken with the camera" }, reviewRetry: { id: "dynamicFlows.CameraCapture.reviewRetry", defaultMessage: "No, try again", description: "Image taken with camera is not good, don't submit, and retake the image" }, reviewInstructions: { id: "dynamicFlows.CameraCapture.reviewInstructions", defaultMessage: "Is your picture clear, readable and complete?", description: "After taking an image with the camera, prompt user to review the image" } });
2192
- var Fe = require("@transferwise/components");
2193
- var xs = require("react-intl");
2194
- var we = require("react/jsx-runtime");
2195
- var Os = ({ onCapture: e }) => (0, we.jsx)("div", { className: "bottom-bar", children: (0, we.jsx)(Qd, { onClick: e }) });
2196
- var As = ({ onSubmit: e, onRetry: t }) => {
2197
- let r = (0, xs.useIntl)();
2198
- return (0, we.jsx)("div", { className: "bottom-bar p-x-2", children: (0, we.jsx)("div", { className: "row", children: (0, we.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, we.jsx)(Fe.Button, { className: "m-b-1", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, onClick: e, children: r.formatMessage(ar.reviewSubmit) }), (0, we.jsx)(Fe.Button, { className: "m-b-2", block: true, size: Fe.Size.MEDIUM, type: Fe.ControlType.ACCENT, priority: Fe.Priority.SECONDARY, onClick: t, children: r.formatMessage(ar.reviewRetry) })] }) }) });
2199
- };
2200
- var Qd = ({ onClick: e }) => (0, we.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, we.jsx)("span", { className: "camera-capture-btn-inner" }) });
2201
- var Gr = require("react");
2190
+ var Se = require("react/jsx-runtime");
2191
+ var xs = ({ onCapture: e }) => (0, Se.jsx)("div", { className: "bottom-bar", children: (0, Se.jsx)(Qd, { onClick: e }) });
2192
+ var Os = ({ onSubmit: e, onRetry: t }) => {
2193
+ let r = (0, Cs.useIntl)();
2194
+ return (0, Se.jsx)("div", { className: "bottom-bar p-x-2", children: (0, Se.jsx)("div", { className: "row", children: (0, Se.jsxs)("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [(0, Se.jsx)(we.Button, { className: "m-b-1", block: true, size: we.Size.MEDIUM, type: we.ControlType.ACCENT, onClick: e, children: r.formatMessage(ar.reviewSubmit) }), (0, Se.jsx)(we.Button, { className: "m-b-2", block: true, size: we.Size.MEDIUM, type: we.ControlType.ACCENT, priority: we.Priority.SECONDARY, onClick: t, children: r.formatMessage(ar.reviewRetry) })] }) }) });
2195
+ };
2196
+ var Qd = ({ onClick: e }) => (0, Se.jsx)("button", { type: "button", className: "camera-capture-btn m-b-2", "data-testid": "camera-capture-button", onClick: e, children: (0, Se.jsx)("span", { className: "camera-capture-btn-inner" }) });
2197
+ var _r = require("react");
2202
2198
  var vs = (e) => {
2203
2199
  var r;
2204
- let { facingMode: t } = ((r = $r(e)) == null ? void 0 : r.getSettings()) || {};
2200
+ let { facingMode: t } = ((r = Gr(e)) == null ? void 0 : r.getSettings()) || {};
2205
2201
  return t === "user" || t === void 0;
2206
2202
  };
2207
- var Ps = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
2208
- var ks = async (e) => {
2203
+ var As = (e) => !!((e == null ? void 0 : e.label) || "").match(/camera2? 0/g);
2204
+ var Ps = async (e) => {
2209
2205
  let t = document.createElement("canvas");
2210
2206
  if (e) {
2211
2207
  t.setAttribute("height", `${e.videoHeight}`), t.setAttribute("width", `${e.videoWidth}`);
@@ -2214,35 +2210,35 @@ var require_main_min = __commonJS({
2214
2210
  }
2215
2211
  return t;
2216
2212
  };
2217
- var Ms = async () => {
2213
+ var ks = async () => {
2218
2214
  var e, t;
2219
2215
  return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput");
2220
2216
  };
2221
- var Es = async () => {
2217
+ var Ms = async () => {
2222
2218
  var e, t;
2223
2219
  return (await ((t = (e = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : e.enumerateDevices) == null ? void 0 : t.call(e)) || []).filter((r) => r.kind === "videoinput").map((r) => r.label);
2224
2220
  };
2225
- var Is = async (e) => {
2221
+ var Es = async (e) => {
2226
2222
  var r, o, a;
2227
- let t = oa(e);
2223
+ let t = aa(e);
2228
2224
  return (a = (await ((o = (r = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : r.enumerateDevices) == null ? void 0 : o.call(r)) || []).filter((n) => n.kind === "videoinput").find((n) => n.deviceId === (t == null ? void 0 : t.deviceId))) == null ? void 0 : a.label;
2229
2225
  };
2230
- var $r = (e) => {
2226
+ var Gr = (e) => {
2231
2227
  var t;
2232
2228
  return (((t = e == null ? void 0 : e.getVideoTracks) == null ? void 0 : t.call(e)) || [])[0];
2233
2229
  };
2234
- var oa = (e) => {
2230
+ var aa = (e) => {
2235
2231
  var t, r;
2236
- return (r = (t = $r(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
2232
+ return (r = (t = Gr(e)) == null ? void 0 : t.getCapabilities) == null ? void 0 : r.call(t);
2237
2233
  };
2238
- var Ds = (e) => {
2239
- let [t, r] = (0, Gr.useState)(), o = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
2240
- (0, Gr.useEffect)(() => {
2234
+ var Is = (e) => {
2235
+ let [t, r] = (0, _r.useState)(), o = { facingMode: e === "front" ? "user" : "environment", height: { min: 480, max: 1080, ideal: 720 }, width: { min: 640, max: 1920, ideal: 1280 }, frameRate: 30, aspectRatio: 16 / 9 };
2236
+ (0, _r.useEffect)(() => {
2241
2237
  a(e).then(r);
2242
2238
  }, [e]);
2243
2239
  let a = async (n) => {
2244
2240
  if (n === "back") {
2245
- let s = (await Ms()).find(Ps);
2241
+ let s = (await ks()).find(As);
2246
2242
  if (s != null && s.deviceId)
2247
2243
  return h(i({}, o), { deviceId: { exact: s.deviceId } });
2248
2244
  }
@@ -2250,97 +2246,97 @@ var require_main_min = __commonJS({
2250
2246
  };
2251
2247
  return { videoConstraints: t };
2252
2248
  };
2253
- var _r = require("react");
2249
+ var Wr = require("react");
2254
2250
  var _ = require("react/jsx-runtime");
2255
2251
  var eu = 92;
2256
- var Ls = 120;
2252
+ var Ds = 120;
2257
2253
  var tu = 40;
2258
2254
  var ru = 32;
2259
2255
  var ou = 48;
2260
2256
  var au = 40;
2261
- var Ts = 800;
2257
+ var Ls = 800;
2262
2258
  var nu = ({ overlay: e, outline: t, imageUrl: r, title: o, instructions: a, reviewInstructions: n }) => {
2263
- let s = (0, _r.useRef)(null);
2264
- (0, _r.useEffect)(() => {
2265
- let y = Ct(() => {
2259
+ let s = (0, Wr.useRef)(null);
2260
+ (0, Wr.useEffect)(() => {
2261
+ let y = Ft(() => {
2266
2262
  var l;
2267
2263
  if ((l = s.current) != null && l.innerHTML) {
2268
- let p = s.current;
2269
- p.innerHTML += "";
2264
+ let u = s.current;
2265
+ u.innerHTML += "";
2270
2266
  }
2271
2267
  }, 100);
2272
2268
  return window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
2273
2269
  });
2274
- let m = (r ? tu : 0) + (o ? ru : 0) + (a ? ou : 0), d = (0, _.jsxs)(_.Fragment, { children: [r && (0, _.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), o && (0, _.jsx)("h4", { className: "camera-capture-title", children: o }), a && (0, _.jsx)("small", { className: "camera-capture-instructions", children: a })] }), u = eu + m;
2270
+ let m = (r ? tu : 0) + (o ? ru : 0) + (a ? ou : 0), d = (0, _.jsxs)(_.Fragment, { children: [r && (0, _.jsx)("img", { className: "camera-capture-img", src: r, alt: "" }), o && (0, _.jsx)("h4", { className: "camera-capture-title", children: o }), a && (0, _.jsx)("small", { className: "camera-capture-instructions", children: a })] }), p = eu + m;
2275
2271
  if (n) {
2276
- m = u - Ls, d = (0, _.jsx)("small", { className: "camera-capture-instructions", children: n });
2277
- let y = Ls + au;
2278
- u < y && (d = (0, _.jsx)(_.Fragment, {}));
2272
+ m = p - Ds, d = (0, _.jsx)("small", { className: "camera-capture-instructions", children: n });
2273
+ let y = Ds + au;
2274
+ p < y && (d = (0, _.jsx)(_.Fragment, {}));
2279
2275
  }
2280
- let c = { x: "50%", y: "5%", width: `min(90%, ${Ts}px)`, height: `calc(90% - ${u}px)`, style: { transform: `translateX(max(-45%, -${Ts / 2}px))` } }, b = { style: { left: "5%", top: `calc(100% - ${u}px - 5%)`, height: `calc(${m}px + 5%)`, width: "90%" } };
2276
+ let c = { x: "50%", y: "5%", width: `min(90%, ${Ls}px)`, height: `calc(90% - ${p}px)`, style: { transform: `translateX(max(-45%, -${Ls / 2}px))` } }, b = { style: { left: "5%", top: `calc(100% - ${p}px - 5%)`, height: `calc(${m}px + 5%)`, width: "90%" } };
2281
2277
  return (0, _.jsxs)("svg", { ref: s, xmlns: "http://www.w3.org/2000/svg", children: [(0, _.jsx)("defs", { children: (0, _.jsxs)("mask", { id: "mask", children: [(0, _.jsx)("rect", { width: "100%", height: "100%", fill: "#fff" }), (0, _.jsx)("image", i({ href: e }, c))] }) }), e && (0, _.jsx)("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }), t && (0, _.jsx)("image", i({ href: t }, c)), (0, _.jsx)("foreignObject", { width: "100%", height: "100%", children: (0, _.jsx)("div", h(i({ className: "camera-capture-text-and-image-container" }, b), { children: d })) })] });
2282
2278
  };
2283
- var aa = nu;
2279
+ var na = nu;
2284
2280
  var Bs = require("@transferwise/components");
2285
- var Rs = require("react-intl");
2286
2281
  var Ns = require("react-intl");
2287
- var Wr = (0, Ns.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.NoCameraAccess.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting missing camera permissions" }, paragraph: { id: "dynamicFlows.CameraCapture.NoCameraAccess.paragraph", defaultMessage: "Enable camera access in your browser's settings to get going again.", description: "Further text of standalone page prompting missing camera permissions" }, action: { id: "dynamicFlows.CameraCapture.NoCameraAccess.action", defaultMessage: "Enable camera access", description: "Action to ask for camera permissions again" } });
2288
- var ze = require("react/jsx-runtime");
2282
+ var Ts = require("react-intl");
2283
+ var Kr = (0, Ts.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.NoCameraAccess.title", defaultMessage: "We can't access your camera", description: "Title of standalone page prompting missing camera permissions" }, paragraph: { id: "dynamicFlows.CameraCapture.NoCameraAccess.paragraph", defaultMessage: "Enable camera access in your browser's settings to get going again.", description: "Further text of standalone page prompting missing camera permissions" }, action: { id: "dynamicFlows.CameraCapture.NoCameraAccess.action", defaultMessage: "Enable camera access", description: "Action to ask for camera permissions again" } });
2284
+ var Ue = require("react/jsx-runtime");
2289
2285
  var iu = ({ onAction: e }) => {
2290
- let t = (0, Rs.useIntl)();
2291
- return (0, ze.jsx)("div", { id: "no-camera-access", children: (0, ze.jsx)("div", { className: "container p-t-5", children: (0, ze.jsx)("div", { className: "row", children: (0, ze.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, ze.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(Wr.title) }), (0, ze.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(Wr.paragraph) }), (0, ze.jsx)(Bs.Button, { block: true, onClick: e, children: t.formatMessage(Wr.action) })] }) }) }) });
2286
+ let t = (0, Ns.useIntl)();
2287
+ return (0, Ue.jsx)("div", { id: "no-camera-access", children: (0, Ue.jsx)("div", { className: "container p-t-5", children: (0, Ue.jsx)("div", { className: "row", children: (0, Ue.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, Ue.jsx)("h2", { className: "text-xs-center m-b-3", children: t.formatMessage(Kr.title) }), (0, Ue.jsx)("p", { className: "text-xs-center m-b-5", children: t.formatMessage(Kr.paragraph) }), (0, Ue.jsx)(Bs.Button, { block: true, onClick: e, children: t.formatMessage(Kr.action) })] }) }) }) });
2292
2288
  };
2293
- var na = iu;
2289
+ var ia = iu;
2294
2290
  var js = require("react-intl");
2295
- var Us = require("react-intl");
2296
- var ia = (0, Us.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.CameraNotSupported.title", defaultMessage: "Camera not supported", description: "Title of standalone page prompting that camera is not available on users browser" }, paragraph: { id: "dynamicFlows.CameraCapture.CameraNotSupported.paragraph", defaultMessage: "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", description: "Further text of standalone page prompting that camera is not available on user's browser" } });
2297
- var ot = require("react/jsx-runtime");
2291
+ var Rs = require("react-intl");
2292
+ var sa = (0, Rs.defineMessages)({ title: { id: "dynamicFlows.CameraCapture.CameraNotSupported.title", defaultMessage: "Camera not supported", description: "Title of standalone page prompting that camera is not available on users browser" }, paragraph: { id: "dynamicFlows.CameraCapture.CameraNotSupported.paragraph", defaultMessage: "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", description: "Further text of standalone page prompting that camera is not available on user's browser" } });
2293
+ var et = require("react/jsx-runtime");
2298
2294
  var su = () => {
2299
2295
  let e = (0, js.useIntl)();
2300
- return (0, ot.jsx)("div", { id: "camera-not-supported", children: (0, ot.jsx)("div", { className: "container p-t-5", children: (0, ot.jsx)("div", { className: "row", children: (0, ot.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, ot.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(ia.title) }), (0, ot.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(ia.paragraph) })] }) }) }) });
2296
+ return (0, et.jsx)("div", { id: "camera-not-supported", children: (0, et.jsx)("div", { className: "container p-t-5", children: (0, et.jsx)("div", { className: "row", children: (0, et.jsxs)("div", { className: "col-md-6 col-md-offset-3", children: [(0, et.jsx)("h2", { className: "text-xs-center m-b-3", children: e.formatMessage(sa.title) }), (0, et.jsx)("p", { className: "text-xs-center m-b-5", children: e.formatMessage(sa.paragraph) })] }) }) }) });
2301
2297
  };
2302
- var sa = su;
2303
- var zs = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
2304
- var Vs = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await lu(t, r));
2305
- var Hs = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
2298
+ var la = su;
2299
+ var Us = (e) => e == null ? void 0 : e("Dynamic Flow - Camera Permission Denied", {});
2300
+ var zs = async (e, t, r) => e == null ? void 0 : e("Dynamic Flow - Camera Feed Started", await lu(t, r));
2301
+ var Vs = (e, t) => e == null ? void 0 : e("Dynamic Flow - Camera Not Supported", { Error: t });
2306
2302
  var lu = async (e, t) => {
2307
2303
  var n;
2308
- let r = $r(t), o = oa(t), a = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
2309
- return h(i({}, r && { "Available Video Devices (by label)": await Es(), "Active Video Device (by label)": await Is(t), "Camera Capabilities": o, "Camera Settings": a }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
2304
+ let r = Gr(t), o = aa(t), a = (n = r == null ? void 0 : r.getSettings) == null ? void 0 : n.call(r);
2305
+ return h(i({}, r && { "Available Video Devices (by label)": await Ms(), "Active Video Device (by label)": await Es(t), "Camera Capabilities": o, "Camera Settings": a }), { "Camera Direction (Asked)": e == null ? void 0 : e.direction });
2310
2306
  };
2311
- var Q = require("react/jsx-runtime");
2307
+ var ee = require("react/jsx-runtime");
2312
2308
  var cu = ({ direction: e = "back", overlay: t = "", outline: r = "", imageUrl: o = "", title: a = "", instructions: n = "", showReview: s = false, onCapture: m, onEvent: d }) => {
2313
- let [u, c] = (0, Ce.useState)("CAPTURE"), [b, y] = (0, Ce.useState)(false), [l, p] = (0, Ce.useState)(false), [f, g] = (0, Ce.useState)(), S = (0, Ce.useRef)(null), { videoConstraints: O } = Ds(e), F = (0, qs.useIntl)(), C = (0, Ce.useCallback)(async () => {
2314
- var v, T, M, ue, pe, le;
2315
- if ((v = S == null ? void 0 : S.current) != null && v.video && ((M = (T = S == null ? void 0 : S.current) == null ? void 0 : T.video) == null ? void 0 : M.readyState) >= 3) {
2316
- (pe = (ue = S == null ? void 0 : S.current) == null ? void 0 : ue.video) == null || pe.pause();
2317
- let He = await ks((le = S == null ? void 0 : S.current) == null ? void 0 : le.video);
2318
- He == null || He.toBlob((qe) => {
2319
- if (qe)
2309
+ let [p, c] = (0, Fe.useState)("CAPTURE"), [b, y] = (0, Fe.useState)(false), [l, u] = (0, Fe.useState)(false), [f, g] = (0, Fe.useState)(), S = (0, Fe.useRef)(null), { videoConstraints: v } = Is(e), C = (0, Hs.useIntl)(), x = (0, Fe.useCallback)(async () => {
2310
+ var O, T, L, oe, Ve, ue;
2311
+ if ((O = S == null ? void 0 : S.current) != null && O.video && ((L = (T = S == null ? void 0 : S.current) == null ? void 0 : T.video) == null ? void 0 : L.readyState) >= 3) {
2312
+ (Ve = (oe = S == null ? void 0 : S.current) == null ? void 0 : oe.video) == null || Ve.pause();
2313
+ let rt = await Ps((ue = S == null ? void 0 : S.current) == null ? void 0 : ue.video);
2314
+ rt == null || rt.toBlob((xe) => {
2315
+ if (xe)
2320
2316
  if (s) {
2321
- let Ut = window.URL.createObjectURL(qe);
2322
- g({ source: Ut, blob: qe }), c("REVIEW");
2317
+ let sr = window.URL.createObjectURL(xe);
2318
+ g({ source: sr, blob: xe }), c("REVIEW");
2323
2319
  } else
2324
- m(qe);
2320
+ m(xe);
2325
2321
  }, "image/jpeg", 0.92);
2326
2322
  }
2327
- }, [S, s, g, c, m, b]), A = (0, Ce.useCallback)((v) => {
2328
- if (v instanceof DOMException && (v == null ? void 0 : v.name) === "NotAllowedError") {
2329
- c("NO_CAMERA_ACCESS"), zs(d);
2323
+ }, [S, s, g, c, m, b]), A = (0, Fe.useCallback)((O) => {
2324
+ if (O instanceof DOMException && (O == null ? void 0 : O.name) === "NotAllowedError") {
2325
+ c("NO_CAMERA_ACCESS"), Us(d);
2330
2326
  return;
2331
2327
  }
2332
- c("CAMERA_NOT_SUPPORTED"), Hs(d, v);
2333
- }, [c, d]), w = (0, Ce.useCallback)((v) => {
2334
- p(true), y(vs(v)), Vs(d, { direction: e }, v);
2328
+ c("CAMERA_NOT_SUPPORTED"), Vs(d, O);
2329
+ }, [c, d]), F = (0, Fe.useCallback)((O) => {
2330
+ u(true), y(vs(O)), zs(d, { direction: e }, O);
2335
2331
  }, [y, d, e]), D = () => {
2336
2332
  m((f == null ? void 0 : f.blob) || null);
2337
- }, k = () => {
2333
+ }, M = () => {
2338
2334
  c("CAPTURE"), g(void 0);
2339
- }, I = () => c("CAPTURE"), q = (0, Q.jsxs)(Q.Fragment, { children: [O && (0, Q.jsx)($s.default, { ref: S, audio: false, videoConstraints: O, mirrored: b, onUserMediaError: A, onUserMedia: w }), (0, Q.jsx)(aa, { overlay: t, outline: r, imageUrl: o, title: a, instructions: n }), l && (0, Q.jsx)(Os, { onCapture: () => void C() })] }), ee = (0, Q.jsxs)(Q.Fragment, { children: [(0, Q.jsx)("img", { className: "review-image", src: f == null ? void 0 : f.source, alt: "" }), (0, Q.jsx)(aa, { overlay: t, imageUrl: o, title: a, instructions: n, reviewInstructions: F.formatMessage(ar.reviewInstructions) }), (0, Q.jsx)(As, { onSubmit: D, onRetry: k })] });
2340
- return (0, Q.jsxs)("section", { className: "camera-capture", children: [u === "CAPTURE" && q, u === "REVIEW" && ee, u === "NO_CAMERA_ACCESS" && (0, Q.jsx)(na, { onAction: I }), u === "CAMERA_NOT_SUPPORTED" && (0, Q.jsx)(sa, {})] });
2335
+ }, P = () => c("CAPTURE"), V = (0, ee.jsxs)(ee.Fragment, { children: [v && (0, ee.jsx)(qs.default, { ref: S, audio: false, videoConstraints: v, mirrored: b, onUserMediaError: A, onUserMedia: F }), (0, ee.jsx)(na, { overlay: t, outline: r, imageUrl: o, title: a, instructions: n }), l && (0, ee.jsx)(xs, { onCapture: () => void x() })] }), X = (0, ee.jsxs)(ee.Fragment, { children: [(0, ee.jsx)("img", { className: "review-image", src: f == null ? void 0 : f.source, alt: "" }), (0, ee.jsx)(na, { overlay: t, imageUrl: o, title: a, instructions: n, reviewInstructions: C.formatMessage(ar.reviewInstructions) }), (0, ee.jsx)(Os, { onSubmit: D, onRetry: M })] });
2336
+ return (0, ee.jsxs)("section", { className: "camera-capture", children: [p === "CAPTURE" && V, p === "REVIEW" && X, p === "NO_CAMERA_ACCESS" && (0, ee.jsx)(ia, { onAction: P }), p === "CAMERA_NOT_SUPPORTED" && (0, ee.jsx)(la, {})] });
2341
2337
  };
2342
- var la = cu;
2343
- var _s = require("react/jsx-runtime");
2338
+ var ca = cu;
2339
+ var Gs = require("react/jsx-runtime");
2344
2340
  function mu(e) {
2345
2341
  return new Promise((t, r) => {
2346
2342
  let o = new FileReader();
@@ -2348,55 +2344,55 @@ var require_main_min = __commonJS({
2348
2344
  });
2349
2345
  }
2350
2346
  var du = (e) => {
2351
- let { step: t, model: r, onModelChange: o, onAction: a } = e, n = Z(), s = Gs(t), m = uu(t), d = pu(t), { title: u, image: c, cameraConfig: b } = m, { assets: y, direction: l, instructions: p } = b || {}, { overlay: f, outline: g } = y || {}, { url: S } = c || {}, [O, F] = (0, Kr.useState)(false);
2352
- (0, Kr.useEffect)(() => {
2353
- O && a(d);
2347
+ let { step: t, model: r, onModelChange: o, onAction: a } = e, n = Q(), s = $s(t), m = uu(t), d = pu(t), { title: p, image: c, cameraConfig: b } = m, { assets: y, direction: l, instructions: u } = b || {}, { overlay: f, outline: g } = y || {}, { url: S } = c || {}, [v, C] = (0, Yr.useState)(false);
2348
+ (0, Yr.useEffect)(() => {
2349
+ v && a(d);
2354
2350
  }, [r]);
2355
- let C = async (A) => {
2356
- let { $id: w } = m;
2351
+ let x = async (A) => {
2352
+ let { $id: F } = m;
2357
2353
  if (A) {
2358
- let D = await mu(A), k = { [w || ""]: D };
2359
- F(true), o({ model: k, formSchema: s, triggerModel: D, triggerSchema: m });
2354
+ let D = await mu(A), M = { [F || ""]: D };
2355
+ C(true), o({ model: M, formSchema: s, triggerModel: D, triggerSchema: m });
2360
2356
  }
2361
2357
  };
2362
- return (0, _s.jsx)(la, { overlay: f, outline: g, title: u, imageUrl: S, instructions: p, direction: l, onEvent: n, onCapture: (A) => {
2363
- C(A);
2358
+ return (0, Gs.jsx)(ca, { overlay: f, outline: g, title: p, imageUrl: S, instructions: u, direction: l, onEvent: n, onCapture: (A) => {
2359
+ x(A);
2364
2360
  } });
2365
2361
  };
2366
- var Yr = du;
2367
- function Gs(e) {
2368
- let r = Fr(e.schemas || [])[0];
2362
+ var Jr = du;
2363
+ function $s(e) {
2364
+ let r = Cr(e.schemas || [])[0];
2369
2365
  if (!r || !ce(r))
2370
2366
  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...");
2371
2367
  return r;
2372
2368
  }
2373
2369
  function uu(e) {
2374
- let t = Gs(e), r = Object.values(t.properties)[0];
2370
+ let t = $s(e), r = Object.values(t.properties)[0];
2375
2371
  if (!r)
2376
2372
  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...");
2377
2373
  return r;
2378
2374
  }
2379
2375
  function pu(e) {
2380
2376
  var t, r;
2381
- if (!e.schemas || ((t = Fr(e.schemas)) == null ? void 0 : t.length) !== 1)
2377
+ if (!e.schemas || ((t = Cr(e.schemas)) == null ? void 0 : t.length) !== 1)
2382
2378
  throw new Error("camera step expects 1 non-hidden object schema");
2383
2379
  if (((r = e == null ? void 0 : e.actions) == null ? void 0 : r.length) !== 1)
2384
2380
  throw new Error("camera step expects 1 action");
2385
2381
  return e.actions[0];
2386
2382
  }
2387
- var Ys = require("react-intl");
2388
- var Ws = require("react-intl");
2389
- var nr = (0, Ws.defineMessages)({ title: { id: "dynamicFlows.ExternalConfirmation.title", defaultMessage: "Please confirm", description: "Heading for the confirmation screen." }, description: { id: "dynamicFlows.ExternalConfirmation.description", defaultMessage: "Please confirm you want to open **{origin}** in a new browser tab.", description: "Description for the confirmation screen." }, open: { id: "dynamicFlows.ExternalConfirmation.open", defaultMessage: "Open in new tab", description: "Button text confirming opening a new browser tab." }, cancel: { id: "dynamicFlows.ExternalConfirmation.cancel", defaultMessage: "Cancel", description: "Button text rejecting opening a new browser tab." } });
2390
- var Js = require("react/jsx-runtime");
2391
- var Ks = () => {
2383
+ var Ks = require("react-intl");
2384
+ var _s = require("react-intl");
2385
+ var nr = (0, _s.defineMessages)({ title: { id: "dynamicFlows.ExternalConfirmation.title", defaultMessage: "Please confirm", description: "Heading for the confirmation screen." }, description: { id: "dynamicFlows.ExternalConfirmation.description", defaultMessage: "Please confirm you want to open **{origin}** in a new browser tab.", description: "Description for the confirmation screen." }, open: { id: "dynamicFlows.ExternalConfirmation.open", defaultMessage: "Open in new tab", description: "Button text confirming opening a new browser tab." }, cancel: { id: "dynamicFlows.ExternalConfirmation.cancel", defaultMessage: "Cancel", description: "Button text rejecting opening a new browser tab." } });
2386
+ var Ys = require("react/jsx-runtime");
2387
+ var Ws = () => {
2392
2388
  };
2393
2389
  var fu = ({ url: e, onClose: t }) => {
2394
- let { formatMessage: r } = (0, Ys.useIntl)();
2395
- return (0, Js.jsx)(ne, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(nr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(nr.description, { origin: yu(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(nr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(nr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (o) => {
2390
+ let { formatMessage: r } = (0, Ks.useIntl)();
2391
+ return (0, Ys.jsx)(ie, { components: [{ type: "box", width: "lg", components: [{ type: "heading", text: r(nr.title), size: "lg", align: "center", margin: "xl" }, { type: "info", markdown: r(nr.description, { origin: yu(e) }), align: "center", margin: "xl" }, { type: "box", width: "md", components: [{ type: "button", action: { title: r(nr.open), type: "primary", url: e, exit: true } }, { type: "button", action: { title: r(nr.cancel), type: "link", url: "", exit: true } }] }] }], submitted: false, onAction: (o) => {
2396
2392
  o.url && window.open(o.url, "_blank"), t();
2397
- }, onModelChange: Ks, onPersistAsync: Ks });
2393
+ }, onModelChange: Ws, onPersistAsync: Ws });
2398
2394
  };
2399
- var Jr = fu;
2395
+ var Zr = fu;
2400
2396
  function yu(e) {
2401
2397
  try {
2402
2398
  return new URL(e).origin;
@@ -2404,79 +2400,79 @@ var require_main_min = __commonJS({
2404
2400
  return e;
2405
2401
  }
2406
2402
  }
2407
- var Ve = require("react/jsx-runtime");
2408
- var Zs = (e) => {
2403
+ var ze = require("react/jsx-runtime");
2404
+ var Js = (e) => {
2409
2405
  var s;
2410
- let { step: t, globalError: r } = e, o = (s = t == null ? void 0 : t.external) == null ? void 0 : s.url, { requiresManualTrigger: a, dismissConfirmation: n } = An(o);
2411
- return t === void 0 ? null : o && a ? (0, Ve.jsx)(Jr, { url: o, onClose: n }) : Cn(t) === "camera" ? (0, Ve.jsx)(Yr, h(i({}, e), { step: t })) : (0, Ve.jsxs)(Ve.Fragment, { children: [r ? (0, Ve.jsx)(ae, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, Ve.jsx)(qr, h(i({}, e), { stepSpecification: t }))] });
2406
+ let { step: t, globalError: r } = e, o = (s = t == null ? void 0 : t.external) == null ? void 0 : s.url, { requiresManualTrigger: a, dismissConfirmation: n } = Cn(o);
2407
+ return t === void 0 ? null : o && a ? (0, ze.jsx)(Zr, { url: o, onClose: n }) : Sn(t) ? (0, ze.jsx)(Jr, h(i({}, e), { step: t })) : (0, ze.jsxs)(ze.Fragment, { children: [r ? (0, ze.jsx)(ne, { component: { context: "negative", markdown: r, margin: "lg" } }) : null, (0, ze.jsx)($r, h(i({}, e), { stepSpecification: t }))] });
2412
2408
  };
2413
- var Xs = require("react");
2409
+ var Zs = require("react");
2414
2410
  var hu = 1e3;
2415
- function Qs(e) {
2416
- let t = (0, Xs.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
2411
+ function Xs(e) {
2412
+ let t = (0, Zs.useRef)(/* @__PURE__ */ new Map()), r = (o) => {
2417
2413
  if (t.current.has(o))
2418
2414
  return t.current.get(o);
2419
- let a = Ct((n, s, m) => e(n, s, m), hu);
2415
+ let a = Ft((n, s, m) => e(n, s, m), hu);
2420
2416
  return t.current.set(o, a), a;
2421
2417
  };
2422
2418
  return function(o, a, n, s) {
2423
- let m = o.url || "", d = r(m);
2424
- d(o, a, n), (!s || !wn(s)) && d.flush();
2419
+ let m = r(o);
2420
+ m(o, a, n), (!s || !bn(s)) && m.flush();
2425
2421
  };
2426
2422
  }
2427
- var Nt = require("react");
2428
- function el(e) {
2423
+ var Tt = require("react");
2424
+ function Qs(e) {
2429
2425
  return Object.prototype.hasOwnProperty.call(e, "$ref") === false;
2430
2426
  }
2431
- var rl = (e) => {
2432
- var l, p;
2433
- let [t, r] = (0, Nt.useState)((l = e == null ? void 0 : e.errors) == null ? void 0 : l.validation), [o, a] = (0, Nt.useState)((p = e == null ? void 0 : e.errors) == null ? void 0 : p.error), [n, s] = (0, Nt.useState)({ step: e || void 0, models: e != null && e.model ? tl(e.model, ca(e)) : {}, etag: void 0 }), { step: m, models: d, etag: u } = n, c = (f, g) => {
2434
- var S, O, F, C;
2435
- s((A) => ({ step: f, models: f.model ? tl(f.model, ca(f)) : A.models, etag: g })), r((O = (S = f == null ? void 0 : f.errors) == null ? void 0 : S.validation) != null ? O : null), a((C = (F = f == null ? void 0 : f.errors) == null ? void 0 : F.error) != null ? C : null);
2427
+ var tl = (e) => {
2428
+ var l, u;
2429
+ let [t, r] = (0, Tt.useState)((l = e == null ? void 0 : e.errors) == null ? void 0 : l.validation), [o, a] = (0, Tt.useState)((u = e == null ? void 0 : e.errors) == null ? void 0 : u.error), [n, s] = (0, Tt.useState)({ step: e || void 0, models: e != null && e.model ? el(e.model, ma(e)) : {}, etag: void 0 }), { step: m, models: d, etag: p } = n, c = (f, g) => {
2430
+ var S, v, C, x;
2431
+ s((A) => ({ step: f, models: f.model ? el(f.model, ma(f)) : A.models, etag: g })), r((v = (S = f == null ? void 0 : f.errors) == null ? void 0 : S.validation) != null ? v : null), a((x = (C = f == null ? void 0 : f.errors) == null ? void 0 : C.error) != null ? x : null);
2436
2432
  }, b = (f, g, S) => {
2437
- s((O) => {
2438
- let F = h(i({}, O.models), { [f]: g }), C = { step: O.step, models: F, etag: O.etag };
2439
- return S(F), C;
2433
+ s((v) => {
2434
+ let C = h(i({}, v.models), { [f]: g }), x = { step: v.step, models: C, etag: v.etag };
2435
+ return S(C), x;
2440
2436
  });
2441
- }, y = (0, Nt.useMemo)(() => gu(d, ca(m)), [d, m]);
2442
- return { formErrors: t, globalError: o, step: m, models: d, etag: u, modelIsValid: y, setFormErrors: r, setGlobalError: a, setStepAndEtag: c, setSchemaModel: b };
2437
+ }, y = (0, Tt.useMemo)(() => gu(d, ma(m)), [d, m]);
2438
+ return { formErrors: t, globalError: o, step: m, models: d, etag: p, modelIsValid: y, setFormErrors: r, setGlobalError: a, setStepAndEtag: c, setSchemaModel: b };
2443
2439
  };
2444
- var tl = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), h(i({}, r), { [o.$id || ""]: oe(e, o) || {} })), {});
2445
- var ca = (e) => [...ma((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
2446
- var ma = (e) => e.flatMap((t) => {
2440
+ var el = (e, t = []) => t.reduce((r, o) => (o.$id || console.warn("Schema without $id property found."), h(i({}, r), { [o.$id || ""]: ae(e, o) || {} })), {});
2441
+ var ma = (e) => [...da((e == null ? void 0 : e.layout) || []), ...(e == null ? void 0 : e.schemas) || []];
2442
+ var da = (e) => e.flatMap((t) => {
2447
2443
  switch (t.type) {
2448
2444
  case "columns":
2449
- return [...ma([...t.left, ...t.right])];
2445
+ return [...da([...t.left, ...t.right])];
2450
2446
  case "box":
2451
- return ma(t.components);
2447
+ return da(t.components);
2452
2448
  case "form":
2453
- return el(t.schema) ? [t.schema] : [];
2449
+ return Qs(t.schema) ? [t.schema] : [];
2454
2450
  default:
2455
2451
  return [];
2456
2452
  }
2457
2453
  });
2458
2454
  var gu = (e, t = []) => !(t != null && t.some((r) => (r.$id || console.warn("Schema without $id property found."), !$(e[r.$id || ""] || {}, r))));
2459
- var Zr = require("@transferwise/components");
2460
- var ol = require("react");
2461
- var nl = require("react/jsx-runtime");
2462
- function al(e, t) {
2463
- let r = i({ size: Zr.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, a] = (0, ol.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0, nl.jsx)(Zr.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
2464
- return { loadingState: o, setLoadingState: a, loader: s };
2465
- }
2466
- var ml = require("react");
2467
2455
  var Xr = require("@transferwise/components");
2468
- var sl = require("react-intl");
2456
+ var rl = require("react");
2457
+ var al = require("react/jsx-runtime");
2458
+ function ol(e, t) {
2459
+ let r = i({ size: Xr.Size.EXTRA_LARGE, initial: true, submission: false }, e), [o, a] = (0, rl.useState)(t), s = r.initial && o === "initial" || r.submission && o === "submission" ? (0, al.jsx)(Xr.Loader, { size: r.size, classNames: { "tw-loader": "tw-loader m-x-auto" }, "data-testid": "loader" }) : null;
2460
+ return { isLoading: o !== "idle", setLoadingState: a, loader: s };
2461
+ }
2462
+ var cl = require("react");
2463
+ var Qr = require("@transferwise/components");
2469
2464
  var il = require("react-intl");
2470
- var da = (0, il.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: "Retry" } });
2471
- var cl = require("react/jsx-runtime");
2472
- var ll = ({ onDismiss: e }) => {
2473
- let { formatMessage: t } = (0, sl.useIntl)();
2474
- return (0, cl.jsx)(Xr.Alert, { action: { text: t(da.retry), href: window.location.href }, message: t(da.errorAlert), type: Xr.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
2465
+ var nl = require("react-intl");
2466
+ var ua = (0, nl.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: "Retry" } });
2467
+ var ll = require("react/jsx-runtime");
2468
+ var sl = ({ onDismiss: e }) => {
2469
+ let { formatMessage: t } = (0, il.useIntl)();
2470
+ return (0, ll.jsx)(Qr.Alert, { action: { text: t(ua.retry), href: window.location.href }, message: t(ua.errorAlert), type: Qr.Sentiment.NEGATIVE, className: "m-b-3", onDismiss: e });
2475
2471
  };
2476
2472
  var Bt = require("react/jsx-runtime");
2477
2473
  var bu = () => {
2478
2474
  };
2479
- var ua = class extends ml.Component {
2475
+ var pa = class extends cl.Component {
2480
2476
  constructor(r) {
2481
2477
  super(r);
2482
2478
  this.handleErrorReset = () => {
@@ -2493,39 +2489,63 @@ var require_main_min = __commonJS({
2493
2489
  }
2494
2490
  render() {
2495
2491
  let { children: r } = this.props, { hasError: o, isFatalError: a } = this.state;
2496
- return (0, Bt.jsxs)(Bt.Fragment, { children: [o && (0, Bt.jsx)(ll, { onDismiss: this.handleErrorReset }), !a && r] });
2492
+ return (0, Bt.jsxs)(Bt.Fragment, { children: [o && (0, Bt.jsx)(sl, { onDismiss: this.handleErrorReset }), !a && r] });
2497
2493
  }
2498
2494
  };
2499
- var pa = ua;
2500
- var dl = async (e) => {
2501
- var o;
2502
- if (ha(e), (o = e.headers) != null && o.has("X-Df-Exit"))
2503
- return { type: "exit", result: await fa(e) };
2504
- let t = await ya(e);
2505
- if (!R(t))
2506
- throw new Error("Incorrect response body in response. Expected an object.");
2507
- if (t.action) {
2508
- if (!R(t.action))
2509
- throw new Error("Incorrect response body in action response. Expected an object satisfying the type { action: Action }.");
2510
- let a = t.action;
2511
- return a.exit === true && R(a.result) ? { type: "exit", result: a.result } : { type: "action", action: t.action };
2495
+ var fa = pa;
2496
+ var Su = async (e) => {
2497
+ switch (e.headers.get("X-Df-ResponseType")) {
2498
+ case "step":
2499
+ return ml(e);
2500
+ case "exit":
2501
+ return ul(e);
2502
+ case "action":
2503
+ return dl(e);
2504
+ default:
2505
+ throw new Error("Unsupported X-Df-ResponseType. Allowed values are 'step', 'action', 'exit'.");
2512
2506
  }
2507
+ };
2508
+ var ml = async (e) => {
2509
+ let t = await ir(e);
2510
+ if (!N(t))
2511
+ throw new Error("Incorrect response body in response. Expected an object.");
2513
2512
  let r = e.headers.get("etag") || void 0;
2514
2513
  return { type: "step", step: t, etag: r };
2515
2514
  };
2516
- var ul = async (e) => {
2515
+ var dl = async (e) => {
2516
+ let t = await ir(e);
2517
+ if (!N(t))
2518
+ throw new Error("Incorrect response body in response. Expected an object.");
2519
+ if (!N(t.action))
2520
+ throw new Error("Incorrect response body in action response. Expected an object satisfying the type { action: Action }.");
2521
+ let r = t.action;
2522
+ return r.exit === true && N(r.result) ? { type: "exit", result: r.result } : { type: "action", action: t.action };
2523
+ };
2524
+ var ul = async (e) => ({ type: "exit", result: await ya(e) });
2525
+ var pl = async (e) => {
2526
+ var r, o;
2527
+ if (ha(e), (r = e.headers) != null && r.has("X-Df-ResponseType"))
2528
+ return Su(e);
2529
+ if ((o = e.headers) != null && o.has("X-Df-Exit"))
2530
+ return ul(e);
2531
+ let t = await ir(e.clone());
2532
+ return N(t) && t.action ? dl(e) : ml(e);
2533
+ };
2534
+ var fl = async (e) => {
2517
2535
  ha(e);
2518
- let t = await ya(e);
2519
- if (!R(t))
2536
+ let t = await ir(e);
2537
+ if (!N(t))
2520
2538
  throw new Error("Incorrect response body in error response. Expected an object.");
2539
+ if (!t.refreshFormUrl && !t.validation && !t.error)
2540
+ throw t;
2521
2541
  return t;
2522
2542
  };
2523
- var fa = async (e) => {
2543
+ var ya = async (e) => {
2524
2544
  ha(e);
2525
- let t = await ya(e);
2526
- return R(t) || t === null ? t : null;
2545
+ let t = await ir(e);
2546
+ return N(t) ? t : null;
2527
2547
  };
2528
- var ya = async (e) => {
2548
+ var ir = async (e) => {
2529
2549
  try {
2530
2550
  return await e.json();
2531
2551
  } catch (t) {
@@ -2533,170 +2553,141 @@ var require_main_min = __commonJS({
2533
2553
  }
2534
2554
  };
2535
2555
  var ha = (e) => {
2536
- if (!Su(e))
2556
+ if (!wu(e))
2537
2557
  throw new Error("Incorrect type of response from fetch. Expected object of type Response.");
2538
2558
  if (e.bodyUsed)
2539
2559
  throw new Error("The body of the provided Response object has already been used. Every request must respond with a new Response object.");
2540
2560
  };
2541
- var Su = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
2542
- var at = require("react/jsx-runtime");
2543
- var pl = () => {
2544
- };
2545
- var wu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: a, displayStepTitle: n = true, onCompletion: s, onError: m, onEvent: d = pl, onLog: u = pl }) => {
2546
- let { locale: c } = (0, yl.useIntl)(), { formErrors: b, globalError: y, step: l, models: p, etag: f, modelIsValid: g, setFormErrors: S, setGlobalError: O, setStepAndEtag: F, setSchemaModel: C } = rl(o), [A, w] = (0, xe.useState)(false), { loadingState: D, setLoadingState: k, loader: I } = al(a, o ? "idle" : "initial"), q = Ie("warning", u, e, l == null ? void 0 : l.key), ee = Ie("error", u, e, l == null ? void 0 : l.key), v = Ie("critical", u, e, l == null ? void 0 : l.key), T = (0, xe.useMemo)(() => {
2547
- var x;
2548
- return i({ flowId: e, stepId: l == null ? void 0 : l.key }, (x = l == null ? void 0 : l.analytics) != null ? x : {});
2549
- }, [e, l]), M = (0, xe.useMemo)(() => io(d, T), [d, T]), ue = (0, xe.useCallback)(({ action: x, data: U, etag: P }) => {
2550
- let { url: W, method: Oe = "POST" } = x;
2551
- return t(W != null ? W : "", { method: Oe, headers: i({ "accept-language": c, "Content-Type": "application/json" }, P ? { "If-None-Match": P } : {}), credentials: "include", body: Oe === "GET" ? void 0 : JSON.stringify(U) });
2552
- }, [t, c]), pe = async (x, U = {}) => {
2553
- k(D === "initial" ? "initial" : "submission");
2561
+ var wu = (e) => typeof e == "object" && e !== null && "clone" in e && "bodyUsed" in e;
2562
+ var tt = require("react/jsx-runtime");
2563
+ var yl = () => {
2564
+ };
2565
+ var Fu = ({ flowId: e, httpClient: t, initialAction: r, initialStep: o, loaderConfig: a, displayStepTitle: n = true, onCompletion: s, onError: m, onEvent: d = yl, onLog: p = yl }) => {
2566
+ let { locale: c } = (0, hl.useIntl)(), { formErrors: b, globalError: y, step: l, models: u, etag: f, modelIsValid: g, setFormErrors: S, setGlobalError: v, setStepAndEtag: C, setSchemaModel: x } = tl(o), [A, F] = (0, Ce.useState)(false), { isLoading: D, loader: M, setLoadingState: P } = ol(a, o ? "idle" : "initial"), V = nt("critical", p, e, (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key)), X = (0, Ce.useMemo)(() => {
2567
+ var w;
2568
+ return i({ flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key) }, (w = l == null ? void 0 : l.analytics) != null ? w : {});
2569
+ }, [e, l]), O = (0, Ce.useMemo)(() => io(d, X), [d, X]), T = (0, Ce.useCallback)(({ action: w, data: j, etag: I }) => {
2570
+ let { url: Y, method: Rt = "POST" } = w;
2571
+ return t(Y != null ? Y : "", { method: Rt, headers: i({ "accept-language": c, "Content-Type": "application/json" }, I ? { "If-None-Match": I } : {}), credentials: "include", body: Rt === "GET" ? void 0 : JSON.stringify(j) });
2572
+ }, [t, c]), L = async (w, j = {}) => {
2573
+ P(l ? "submission" : "initial"), O("Dynamic Flow - Step Submitted", { actionId: w.$id });
2554
2574
  try {
2555
- M("Dynamic Flow - Step Submitted", { actionId: x.$id });
2556
- let P = await ue({ action: x, data: U });
2557
- return Oa(P, "submission");
2558
- } catch (P) {
2559
- ir(P, "Error fetching next step");
2575
+ let I = await T({ action: w, data: j });
2576
+ await sr(I, "submission");
2577
+ } catch (I) {
2578
+ lr(I, "Error fetching next step");
2560
2579
  }
2561
- }, le = async (x, U, P) => {
2562
- k("refresh");
2580
+ }, oe = async (w, j, I) => {
2581
+ P("refresh"), O("Dynamic Flow - Step Refreshed", { status: "pending" });
2563
2582
  try {
2564
- M("Dynamic Flow - Step Refreshed", { status: "pending" });
2565
- let W = await ue({ action: x, data: U, etag: P });
2566
- await Oa(W, "refresh"), k("idle");
2567
- } catch (W) {
2568
- ir(W, "Error fetching refresh step");
2583
+ let Y = await T({ action: { url: w, method: "POST" }, data: j, etag: I });
2584
+ await sr(Y, "refresh");
2585
+ } catch (Y) {
2586
+ lr(Y, "Error fetching refresh step");
2569
2587
  }
2570
- }, He = async (x, U) => {
2588
+ }, Ve = async (w, j) => {
2589
+ P("submission");
2571
2590
  try {
2572
- let P = await ue({ action: x, data: U }), W = await fa(P);
2573
- Ut(i(i({}, W), x.result));
2574
- } catch (P) {
2575
- ir(P, "Error fetching exit result");
2591
+ let I = await T({ action: w, data: j });
2592
+ await ue(I, w.result);
2593
+ } catch (I) {
2594
+ lr(I, "Error fetching exit result");
2576
2595
  }
2577
- }, qe = Qs(le), Ut = (0, xe.useCallback)((x) => {
2578
- M("Dynamic Flow - Flow Finished", { result: "success" }), s(x);
2579
- }, [s, M]);
2580
- (0, xe.useEffect)(() => {
2581
- M("Dynamic Flow - Flow Started", {});
2582
- }, []), (0, xe.useEffect)(() => {
2596
+ }, ue = async (w, j) => {
2597
+ let I = await ya(w);
2598
+ xe(i(i({}, I), j));
2599
+ }, rt = Xs(oe), xe = (0, Ce.useCallback)((w) => {
2600
+ O("Dynamic Flow - Flow Finished", { result: "success" }), s(w);
2601
+ }, [s, O]);
2602
+ (0, Ce.useEffect)(() => {
2603
+ O("Dynamic Flow - Flow Started", {});
2604
+ }, []), (0, Ce.useEffect)(() => {
2583
2605
  if (!o) {
2584
- let x = i({ $id: "#initial-step-request", method: "GET" }, r);
2585
- pe(x, x.data);
2606
+ let w = i({ $id: "#initial-step-request", method: "GET" }, r);
2607
+ L(w, w.data);
2586
2608
  }
2587
2609
  }, [t, c, JSON.stringify(o), JSON.stringify(r)]);
2588
- let Oa = async (x, U) => {
2589
- if (x.ok)
2590
- try {
2591
- let P = await dl(x);
2592
- switch (P.type) {
2593
- case "action":
2594
- pe(P.action, P.action.data);
2595
- return;
2596
- case "exit":
2597
- return Ut(P.result);
2598
- case "step":
2599
- default: {
2600
- let { step: W, etag: Oe } = P;
2601
- return U === "submission" ? gc(W, Oe) : bc(W, Oe);
2602
- }
2603
- }
2604
- } catch (P) {
2605
- return ir(P, "Error parsing fetch response");
2606
- }
2607
- return Sc(x, U);
2608
- }, gc = (x, U) => {
2609
- F(x, U), w(false), k("idle"), M("Dynamic Flow - Step Started", i({ stepId: x.key }, x == null ? void 0 : x.analytics));
2610
- }, bc = (x, U) => {
2611
- F(x, U), k("idle"), M("Dynamic Flow - Step Refreshed", { status: "success" });
2612
- }, Sc = async (x, U) => {
2613
- if (x.status === 304) {
2614
- k("idle");
2615
- return;
2616
- }
2610
+ let sr = async (w, j) => {
2617
2611
  try {
2618
- let P = await ul(x);
2619
- if (P.refreshFormUrl) {
2620
- let W = { url: P == null ? void 0 : P.refreshFormUrl, method: "POST" };
2621
- await le(W, Qr(p), f);
2612
+ if (w.status === 304) {
2613
+ P("idle");
2614
+ return;
2622
2615
  }
2623
- if (P.validation && S(P.validation), P.error && O(P.error), !P.refreshFormUrl && !P.validation && !P.error)
2624
- throw ee("Invalid response", "Response body must contain at least one of the following properties: refreshFormUrl, validation, or error."), P;
2625
- } catch (P) {
2626
- U === "refresh" && M("Dynamic Flow - Step Refreshed", { status: "failure" }), M("Dynamic Flow - Flow Finished", { status: "failure" }), m(P, x.status), ee("Invalid response", "Error response body must be an object.");
2616
+ if (!w.ok) {
2617
+ let Y = await fl(w);
2618
+ Fc(Y);
2619
+ return;
2620
+ }
2621
+ let I = await pl(w);
2622
+ I.type === "action" ? L(I.action, I.action.data) : I.type === "exit" ? xe(I.result) : wc(I.step, I.etag, j);
2623
+ } catch (I) {
2624
+ return lr(I, "Error parsing fetch response", j, w.status);
2627
2625
  }
2628
- k("idle");
2629
- }, ir = (x, U) => {
2630
- v("Error fetching", U), m(x), k("idle");
2631
- }, wc = (x) => {
2632
- let { model: U, formSchema: P } = x, { $id: W = "" } = P;
2633
- O(null), J(U) || v("Invalid model on change", "onModelChange was called but the model argument is not an object"), C(W, U, (eo) => {
2634
- Fc(x, eo);
2626
+ }, wc = (w, j, I) => {
2627
+ C(w, j), P("idle"), I === "submission" ? (F(false), O("Dynamic Flow - Step Started", i({ stepId: w.id || w.key }, w == null ? void 0 : w.analytics))) : O("Dynamic Flow - Step Refreshed", { status: "success" });
2628
+ }, Fc = async (w) => {
2629
+ w.refreshFormUrl && await oe(w.refreshFormUrl, eo(u), f), w.validation && S(w.validation), w.error && v(w.error), P("idle");
2630
+ }, lr = (w, j, I, Y) => {
2631
+ V("Error fetching", j), I === "refresh" && O("Dynamic Flow - Step Refreshed", { status: "failure" }), O("Dynamic Flow - Flow Finished", { status: "failure" }), m(w, Y), P("idle");
2632
+ }, Cc = (w) => {
2633
+ let { model: j, formSchema: I } = w, { $id: Y = "" } = I;
2634
+ v(null), J(j) || V("Invalid model on change", "onModelChange was called but the model argument is not an object"), x(Y, j, (vc) => {
2635
+ xc(w, vc);
2635
2636
  });
2636
- }, Fc = (x, U) => {
2637
- let { triggerSchema: P } = x;
2638
- if (Cu(x)) {
2639
- let Oe = { url: P.refreshFormUrl || (l == null ? void 0 : l.refreshFormUrl), method: "POST" };
2640
- qe(Oe, Qr(U), f, P);
2637
+ }, xc = (w, j) => {
2638
+ let { triggerSchema: I } = w;
2639
+ if (Ou(w)) {
2640
+ let Y = I.refreshFormUrl || (l == null ? void 0 : l.refreshFormUrl);
2641
+ Y && rt(Y, eo(j), f, I);
2641
2642
  }
2642
- }, Cc = async (x) => {
2643
- let { data: U, method: P, exit: W, url: Oe, result: eo } = x, sr = i(i({}, Qr(p)), U), Aa = { url: x.url, method: x.method, currency: sr.currency, type: sr.type };
2644
- if (D !== "idle" || x.disabled) {
2645
- q("Action supressed", D !== "idle" ? `onAction was supressed because loadingState is ${D}` : "onAction was supressed because action is disabled", Aa);
2646
- return;
2647
- }
2648
- if (W) {
2649
- if (Oe) {
2650
- fl(P) ? (S(null), w(true), g && await He(x, sr)) : await He(x);
2651
- return;
2652
- }
2653
- Ut(eo);
2643
+ }, Oc = async (w) => {
2644
+ if (D || w.disabled)
2654
2645
  return;
2655
- }
2656
- if (fl(P)) {
2657
- S(null), w(true), g ? pe(x, sr) : M("Dynamic Flow - onAction supressed", i({ reason: "invalid model" }, Aa));
2646
+ if (w.exit && !w.url) {
2647
+ xe(w.result);
2658
2648
  return;
2659
2649
  }
2660
- pe(x);
2650
+ let j = w.exit ? Ve : L, { data: I, method: Y } = w, Rt = i(i({}, eo(u)), I);
2651
+ xu(Y) ? (S(null), F(true), g && await j(w, Rt)) : await j(w);
2661
2652
  };
2662
- return (0, at.jsx)(br, { flowId: e, stepId: l == null ? void 0 : l.key, onLog: u, children: (0, at.jsx)(dr, { metadata: T, onEvent: d, children: (0, at.jsx)(Ba, { loading: D !== "idle", children: (0, at.jsx)(Va, { httpClient: t, children: I !== null ? I : (0, at.jsx)(Zs, { step: l, model: Qr(p), submitted: A, globalError: y, formErrors: b, stepLayoutOptions: { displayStepTitle: n }, onAction: (x) => {
2663
- Cc(x);
2664
- }, onModelChange: wc }) }) }) }) });
2665
- };
2666
- var Fu = (e) => (0, at.jsx)(pa, { onError: e.onError, children: (0, at.jsx)(wu, i({}, e)) });
2667
- var ga = Fu;
2668
- var Qr = (e) => Object.values(e).reduce((t, r) => i(i({}, t), r), {});
2669
- var fl = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
2670
- var Cu = (e) => {
2653
+ return (0, tt.jsx)(Sr, { flowId: e, stepId: (l == null ? void 0 : l.id) || (l == null ? void 0 : l.key), onLog: p, children: (0, tt.jsx)(ur, { metadata: X, onEvent: d, children: (0, tt.jsx)(Ta, { loading: D, children: (0, tt.jsx)(Ua, { httpClient: t, children: M !== null ? M : (0, tt.jsx)(Js, { step: l, model: eo(u), submitted: A, globalError: y, formErrors: b, stepLayoutOptions: { displayStepTitle: n }, onAction: (w) => {
2654
+ Oc(w);
2655
+ }, onModelChange: Cc }) }) }) }) });
2656
+ };
2657
+ var Cu = (e) => (0, tt.jsx)(fa, { onError: e.onError, children: (0, tt.jsx)(Fu, i({}, e)) });
2658
+ var ga = Cu;
2659
+ var eo = (e) => Object.values(e).reduce((t, r) => i(i({}, t), r), {});
2660
+ var xu = (e = "POST") => ["POST", "PUT", "PATCH"].includes(e.toUpperCase());
2661
+ var Ou = (e) => {
2671
2662
  let { type: t, triggerSchema: r, triggerModel: o, lastTriggerModel: a = null } = e, n = () => $(o, r), s = () => $(a, r);
2672
2663
  return t !== "init" && (r == null ? void 0 : r.refreshFormOnChange) && (n() || s());
2673
2664
  };
2674
2665
  var ba = {};
2675
- nt(ba, { alert: () => hl, box: () => gl, button: () => bl, columns: () => Sl, copyable: () => wl, decision: () => Fl, decisionFlags: () => Cl, decisionIcons: () => xl, heading: () => Ol, image: () => Al, info: () => vl, list: () => Pl, loadingIndicator: () => kl, paragraph: () => Ml, review: () => El });
2676
- var xu = { type: "form", key: "Components/Alert", title: "Alert Component", description: "Alerts can have different contexts.", actions: [], schemas: [], layout: [{ type: "alert", markdown: 'This is an alert with "neutral" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "neutral" }, { type: "alert", markdown: 'This is an alert with "warning" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "warning" }, { type: "alert", markdown: 'This is an alert with "positive" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "positive" }, { type: "alert", markdown: 'This is an alert with "negative" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "negative" }] };
2677
- var hl = xu;
2678
- var Ou = { type: "form", key: "Components/Box", title: "Box Component", description: "Box is a container for other layour components. It can have a border!", actions: [], schemas: [], layout: ["xs", "sm", "md", "lg", "xl"].map((e) => ({ type: "box", width: e, border: true, components: [{ type: "paragraph", text: `This paragraph is inside a box with border: "true" and width: "${e}".` }] })) };
2679
- var gl = Ou;
2680
- var Au = ["primary", "secondary", "negative", "link"].map((e, t) => ({ type: "button", action: { url: "/action-url", method: "POST", title: `Button ${t + 1}, type: "${e}"`, type: e, data: { "button-number": t + 1 } } }));
2681
- var vu = { type: "form", key: "Components/Button", title: "Button Component", description: "Buttons typically trigger actions.", actions: [], schemas: [{ $id: "#schema", type: "object", displayOrder: [], properties: { "form-field": { type: "string", default: "Some text", title: 'Enter any text. It will be submitted under "form-field".' } } }], layout: [{ type: "box", width: "md", components: [{ type: "paragraph", text: "Action buttons merge the form data with their own action.data before submitting it to the specified URL." }, { type: "form", schema: { $ref: "#schema" } }, ...Au, { type: "paragraph", text: "Press any buttons and see the httpClient calls below.", align: "center" }] }] };
2682
- var bl = vu;
2683
- var Pu = { type: "form", key: "Components/Columns", title: "Columns Component", description: "Arrange components in two columns (when there's enough space)", actions: [], schemas: [], layout: [{ type: "columns", left: [{ type: "button", action: { title: "Save", type: "primary", exit: true, result: { side: "left" } } }], right: [{ type: "button", action: { title: "Delete", type: "negative", exit: true, result: { side: "right" } } }] }] };
2684
- var Sl = Pu;
2685
- var ku = { key: "Components/Copyable", type: "form", title: "Copyable Text", description: "Copyable Text Component.", actions: [], layout: [{ type: "paragraph", align: "center", text: "Please copy the code below and use it in that other thing." }, { type: "paragraph", text: "7Xtiq6fnX9aEVF7yZAmb2qyqS857ro8S", align: "center", control: "copyable" }], schemas: [] };
2686
- var wl = ku;
2687
- var Mu = { type: "form", key: "Components/Decision", title: "Decision Component", description: "A step with a decision Component.", actions: [], schemas: [], layout: [{ type: "heading", size: "sm", text: "Please continue using one of the following options:" }, { type: "decision", options: [{ title: "Create a new recipient", description: "You will need their bank details to hand", icon: { name: "plus" }, action: { title: "", url: "recipient" } }, { title: "Choose an existing recipient", disabled: false, icon: { name: "bank" }, action: { title: "", url: "review" } }, { title: "Show me the external step", disabled: false, icon: { name: "bulb" }, action: { title: "", url: "external" } }, { title: "Currency flags are now supported as well", disabled: false, icon: { name: "flag-eur" }, action: { title: "", url: "external" } }] }] };
2688
- var Fl = Mu;
2689
- var Eu = { type: "form", key: "Components/Decision Flags", title: "Decision Component", description: "A step with a decision Component.", actions: [], schemas: [], layout: [{ type: "heading", size: "sm", text: "Please continue using one of the following options:" }, { type: "decision", options: Do.map((e) => ({ title: `${e.toUpperCase()}`, icon: { name: `flag-${e}` }, action: { url: "/" } })) }] };
2690
- var Cl = Eu;
2691
- var Iu = Ee(require("@transferwise/icons"));
2692
- var Du = { type: "form", key: "Components/Decision Icons", title: "Decision Component", description: "A step with a decision Component.", actions: [], schemas: [], layout: [{ type: "heading", size: "sm", text: "Please continue using one of the following options:" }, { type: "decision", options: Object.keys(Iu).map((e) => ({ title: `${e} Icon`, icon: { name: e }, action: { url: "/" } })) }] };
2666
+ ot(ba, { alert: () => gl, box: () => bl, button: () => Sl, columns: () => wl, copyable: () => Fl, decision: () => Cl, decisionFlags: () => xl, decisionIcons: () => Ol, heading: () => vl, image: () => Al, info: () => Pl, list: () => kl, loadingIndicator: () => Ml, paragraph: () => El, review: () => Il });
2667
+ var vu = { id: "Components/Alert", title: "Alert Component", description: "Alerts can have different contexts.", schemas: [], layout: [{ type: "alert", markdown: 'This is an alert with "neutral" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "neutral" }, { type: "alert", markdown: 'This is an alert with "warning" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "warning" }, { type: "alert", markdown: 'This is an alert with "positive" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "positive" }, { type: "alert", markdown: 'This is an alert with "negative" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.', context: "negative" }] };
2668
+ var gl = vu;
2669
+ var Au = { id: "Components/Box", title: "Box Component", description: "Box is a container for other layour components. It can have a border!", schemas: [], layout: ["xs", "sm", "md", "lg", "xl"].map((e) => ({ type: "box", width: e, border: true, components: [{ type: "paragraph", text: `This paragraph is inside a box with border: "true" and width: "${e}".` }] })) };
2670
+ var bl = Au;
2671
+ var Pu = ["primary", "secondary", "negative", "link"].map((e, t) => ({ type: "button", action: { url: "/action-url", method: "POST", title: `Button ${t + 1}, type: "${e}"`, type: e, data: { "button-number": t + 1 } } }));
2672
+ var ku = { id: "Components/Button", title: "Button Component", description: "Buttons typically trigger actions.", schemas: [{ $id: "#schema", type: "object", displayOrder: [], properties: { "form-field": { type: "string", default: "Some text", title: 'Enter any text. It will be submitted under "form-field".' } } }], layout: [{ type: "box", width: "md", components: [{ type: "paragraph", text: "Action buttons merge the form data with their own action.data before submitting it to the specified URL." }, { type: "form", schema: { $ref: "#schema" } }, ...Pu, { type: "paragraph", text: "Press any buttons and see the httpClient calls below.", align: "center" }] }] };
2673
+ var Sl = ku;
2674
+ var Mu = { id: "Components/Columns", title: "Columns Component", description: "Arrange components in two columns (when there's enough space)", schemas: [], layout: [{ type: "columns", left: [{ type: "button", action: { title: "Save", type: "primary", exit: true, result: { side: "left" } } }], right: [{ type: "button", action: { title: "Delete", type: "negative", exit: true, result: { side: "right" } } }] }] };
2675
+ var wl = Mu;
2676
+ var Eu = { id: "Components/Copyable", title: "Copyable Text", description: "Copyable Text Component.", layout: [{ type: "paragraph", align: "center", text: "Please copy the code below and use it in that other thing." }, { type: "paragraph", text: "7Xtiq6fnX9aEVF7yZAmb2qyqS857ro8S", align: "center", control: "copyable" }], schemas: [] };
2677
+ var Fl = Eu;
2678
+ var Iu = { id: "Components/Decision", title: "Decision Component", description: "A step with a decision Component.", schemas: [], layout: [{ type: "heading", size: "sm", text: "Please continue using one of the following options:" }, { type: "decision", options: [{ title: "Create a new recipient", description: "You will need their bank details to hand", icon: { name: "plus" }, action: { title: "", url: "recipient" } }, { title: "Choose an existing recipient", disabled: false, icon: { name: "bank" }, action: { title: "", url: "review" } }, { title: "Show me the external step", disabled: false, icon: { name: "bulb" }, action: { title: "", url: "external" } }, { title: "Currency flags are now supported as well", disabled: false, icon: { name: "flag-eur" }, action: { title: "", url: "external" } }] }] };
2679
+ var Cl = Iu;
2680
+ var Du = { id: "Components/Decision Flags", title: "Decision Component", description: "A step with a decision Component.", schemas: [], layout: [{ type: "heading", size: "sm", text: "Please continue using one of the following options:" }, { type: "decision", options: Do.map((e) => ({ title: `${e.toUpperCase()}`, icon: { name: `flag-${e}` }, action: { url: "/" } })) }] };
2693
2681
  var xl = Du;
2694
- var Lu = { type: "form", key: "Components/Heading", title: "Heading Component", description: 'Headings can have different sizes: "xs", "sm", "md", "lg", "xl".', actions: [], schemas: [], layout: ["xs", "sm", "md", "lg", "xl"].map((e) => ({ type: "heading", text: `This is heading with size: "${e}"`, size: e })) };
2695
- var Ol = Lu;
2696
- var Tu = ["xs", "sm", "md", "lg", "xl"];
2697
- var Nu = { type: "form", key: "Components/Image", title: "Image Component", description: 'Images can have different sizes: "xs", "sm", "md", "lg", "xl".', actions: [], schemas: [], layout: Tu.flatMap((e) => [{ type: "paragraph", text: `This is an image with size: "${e}"`, align: "center" }, { type: "image", url: "http://placekitten.com/g/400/400", text: `This is an image with size: "${e}"`, size: e }]) };
2698
- var Al = Nu;
2699
- var Bu = { type: "form", key: "Components/Info", title: "Info Component", description: "A block of markdown content.", actions: [], schemas: [], layout: [{ type: "info", markdown: `## The Advantages of Using Bananas for Data Backup
2682
+ var Lu = Me(require("@transferwise/icons"));
2683
+ var Tu = { id: "Components/Decision Icons", title: "Decision Component", description: "A step with a decision Component.", schemas: [], layout: [{ type: "heading", size: "sm", text: "Please continue using one of the following options:" }, { type: "decision", options: Object.keys(Lu).map((e) => ({ title: `${e} Icon`, icon: { name: e }, action: { url: "/" } })) }] };
2684
+ var Ol = Tu;
2685
+ var Bu = { id: "Components/Heading", title: "Heading Component", description: 'Headings can have different sizes: "xs", "sm", "md", "lg", "xl".', schemas: [], layout: ["xs", "sm", "md", "lg", "xl"].map((e) => ({ type: "heading", text: `This is heading with size: "${e}"`, size: e })) };
2686
+ var vl = Bu;
2687
+ var Nu = ["xs", "sm", "md", "lg", "xl"];
2688
+ var Ru = { id: "Components/Image", title: "Image Component", description: 'Images can have different sizes: "xs", "sm", "md", "lg", "xl".', schemas: [], layout: Nu.flatMap((e) => [{ type: "paragraph", text: `This is an image with size: "${e}"`, align: "center" }, { type: "image", url: "https://images.unsplash.com/photo-1542736705-53f0131d1e98?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=400&q=80", text: `This is an image with size: "${e}"`, size: e }]) };
2689
+ var Al = Ru;
2690
+ var ju = { id: "Components/Info", title: "Info Component", description: "A block of markdown content.", schemas: [], layout: [{ type: "info", markdown: `## The Advantages of Using Bananas for Data Backup
2700
2691
 
2701
2692
  If you're looking for a fruit-based solution to your data backup needs, bananas might just be the perfect choice. Here are some reasons why:
2702
2693
 
@@ -2713,97 +2704,101 @@ Who needs passwords when you have bananas? With each backup, you can create a un
2713
2704
  But the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the [bananas](https://en.wikipedia.org/wiki/Banana) in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?
2714
2705
 
2715
2706
  `, align: "left" }, { type: "alert", markdown: "Links always open in a new tab.", context: "neutral" }] };
2716
- var vl = Bu;
2717
- var Ru = { type: "form", key: "Components/List", title: "List Component", description: "A list of items with optional states, subtitles, and images.", actions: [], schemas: [], layout: [{ type: "list", items: [{ title: "Step 1", description: "Get a chip.", icon: { name: "chip" }, status: "positive" }, { title: "Step 2", description: "Get a car.", icon: { name: "car" }, status: "neutral" }, { title: "Step 3", description: "Get a building.", icon: { name: "building" }, status: "warning" }] }] };
2718
- var Pl = Ru;
2719
- var Uu = { type: "form", key: "Components/Loading Indicator", title: "Loading Indicator Component", description: "A loading indicator to be displayed within a layout.", actions: [], schemas: [], layout: [{ type: "loading-indicator", size: "lg", margin: "md" }] };
2707
+ var Pl = ju;
2708
+ var Uu = { id: "Components/List", title: "List Component", description: "A list of items with optional states, subtitles, and images.", schemas: [], layout: [{ type: "list", items: [{ title: "Step 1", description: "Get a chip.", icon: { name: "chip" }, status: "positive" }, { title: "Step 2", description: "Get a car.", icon: { name: "car" }, status: "neutral" }, { title: "Step 3", description: "Get a building.", icon: { name: "building" }, status: "warning" }] }] };
2720
2709
  var kl = Uu;
2721
- var ju = { type: "form", key: "Components/Paragraph", title: "Paragraph Component", description: "A block of plain text.", actions: [], schemas: [], layout: [{ type: "paragraph", text: "Well, if you're really bent on using fruit for data backup, bananas might just be the perfect choice. For starters, they're portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go." }, { type: "paragraph", text: "And who needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data." }, { type: "paragraph", text: "But the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the bananas in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?" }, { type: "alert", markdown: "Paragraph is a block of plain text content. If you need richer formatting and layout options, consider using Info Layout.", context: "neutral" }] };
2722
- var Ml = ju;
2723
- var zu = { type: "form", key: "Components/Review", title: "Review Component", description: "Show a list of read-only fields.", actions: [], schemas: [], layout: [{ type: "box", border: true, components: [{ type: "review", title: "Please check your details (vertical orientation)", orientation: "vertical", fields: [{ label: "name", value: "Bob Loblaw" }, { label: "email", value: "bob.loblaw@law.blog" }, { label: "address", value: "123 Fake St, New York, NY 10001" }] }] }, { type: "box", border: true, components: [{ type: "review", title: "Please check your details (horizontal orientation)", orientation: "horizontal", fields: [{ label: "name", value: "Bob Loblaw" }, { label: "email", value: "bob.loblaw@law.blog" }, { label: "address", value: "123 Fake St, New York, NY 10001" }] }] }, { type: "box", border: true, components: [{ type: "review", title: "The action property is only supported on web", orientation: "horizontal", action: { title: "Edit", url: "/edit" }, fields: [{ label: "name", value: "Bob Loblaw" }, { label: "email", value: "bob.loblaw@law.blog" }, { label: "address", value: "123 Fake St, New York, NY 10001" }] }] }] };
2724
- var El = zu;
2710
+ var zu = { id: "Components/Loading Indicator", title: "Loading Indicator Component", description: "A loading indicator to be displayed within a layout.", schemas: [], layout: [{ type: "loading-indicator", size: "lg", margin: "md" }] };
2711
+ var Ml = zu;
2712
+ var Vu = { id: "Components/Paragraph", title: "Paragraph Component", description: "A block of plain text.", schemas: [], layout: [{ type: "paragraph", text: "Well, if you're really bent on using fruit for data backup, bananas might just be the perfect choice. For starters, they're portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go." }, { type: "paragraph", text: "And who needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data." }, { type: "paragraph", text: "But the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the bananas in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?" }, { type: "alert", markdown: "Paragraph is a block of plain text content. If you need richer formatting and layout options, consider using Info Layout.", context: "neutral" }] };
2713
+ var El = Vu;
2714
+ var Hu = { id: "Components/Review", title: "Review Component", description: "Show a list of read-only fields.", schemas: [], layout: [{ type: "box", border: true, components: [{ type: "review", title: "Please check your details (vertical orientation)", orientation: "vertical", fields: [{ label: "name", value: "Bob Loblaw" }, { label: "email", value: "bob.loblaw@law.blog" }, { label: "address", value: "123 Fake St, New York, NY 10001" }] }] }, { type: "box", border: true, components: [{ type: "review", title: "Please check your details (horizontal orientation)", orientation: "horizontal", fields: [{ label: "name", value: "Bob Loblaw" }, { label: "email", value: "bob.loblaw@law.blog" }, { label: "address", value: "123 Fake St, New York, NY 10001" }] }] }, { type: "box", border: true, components: [{ type: "review", title: "The action property is only supported on web", orientation: "horizontal", action: { title: "Edit", url: "/edit" }, fields: [{ label: "name", value: "Bob Loblaw" }, { label: "email", value: "bob.loblaw@law.blog" }, { label: "address", value: "123 Fake St, New York, NY 10001" }] }] }] };
2715
+ var Il = Hu;
2725
2716
  var Sa = {};
2726
- nt(Sa, { cameraCapture: () => Il, recipient: () => Dl, recipientUpdate: () => Ll, singleFileUpload: () => Tl, stepValidationErrors: () => Nl });
2727
- var Vu = { key: "Examples/Camera Capture", title: "Camera Capture Example", type: "form", schemas: [{ properties: { frontSideFile: { refreshFormOnChange: false, format: "base64url", $id: "frontSideFile", title: "Passport photo page", hidden: false, cameraConfig: { assets: { overlay: "https://wise.com/public-resources/assets/camera-guidelines/v2/overlay_passport.png", outline: "https://wise.com/public-resources/assets/camera-guidelines/v2/outline_passport.png" }, direction: "back" }, source: "camera", type: "string" } }, required: ["frontSideFile"], displayOrder: ["frontSideFile"], $id: "ee2501a9-2566-459b-a42e-f9f0932be0e6", type: "object" }, { properties: { type: { refreshFormOnChange: false, $id: "9200f887-bfdd-46ad-8386-e76f455a7cc8", const: "ID_DOCUMENT_WITH_LIVENESS", hidden: true, type: "string" } }, required: ["type"], displayOrder: ["type"], $id: "c59a2881-a2e0-4108-b42e-0d30fc95bd7f", type: "object" }, { properties: { profileId: { refreshFormOnChange: false, $id: "75d888dc-208a-4d7d-a2a7-aeca0dd1b533", const: 14551053, hidden: true, type: "integer" } }, required: ["profileId"], displayOrder: ["profileId"], $id: "3eec6add-2d0e-41d7-8317-49542c841484", type: "object" }, { properties: { sessionId: { refreshFormOnChange: false, $id: "df82adf3-8a66-46b5-bef8-72f59be2188d", const: "62dfe7d026c6da1ac0db1ee4", hidden: true, type: "string" } }, required: ["sessionId"], displayOrder: ["sessionId"], $id: "e1a8fb67-9af2-47e8-97c1-f2a88e5d5f3a", type: "object" }], actions: [{ url: "/v3/kyc-checks/87785/flow?actionId=SINGLE_PAGE_REVIEW&sessionId=62dfe7d026c6da1ac0db1ee4&", type: "primary", method: "POST", disabled: false, $id: "6789eac5-7bbe-49d8-9da8-6edb8e7ef165", title: "" }], layout: [{ type: "form", schema: { $ref: "ee2501a9-2566-459b-a42e-f9f0932be0e6" } }, { components: [{ action: { $ref: "6789eac5-7bbe-49d8-9da8-6edb8e7ef165" }, margin: "lg", size: "md", type: "button" }], border: false, width: "xl", type: "box" }], model: { profileId: 14551053, sessionId: "62dfe7d026c6da1ac0db1ee4", issuingCountry: "HU", documentType: "PASSPORT", type: "ID_DOCUMENT_WITH_LIVENESS", key: { value: "ID_DOCUMENT_WITH_LIVENESS14551053" } }, refreshFormUrl: "/" };
2728
- var Il = Vu;
2729
- var Hu = { key: "Examples/Recipient Creation", type: "form", title: "Recipient Creation Example", description: "A form step with the typical recipient creation form.", actions: [], schemas: [{ $id: "#new-recipient", allOf: [{ type: "object", displayOrder: ["profileId", "currency", "legalEntityType", "email"], properties: { profileId: { type: "number", hidden: true, const: 123456789 }, currency: { title: "Currency", type: "string", analyticsId: "currency", oneOf: [{ title: "EUR", analyticsId: "currency-eur", icon: { name: "flag-eur" }, description: "Euro", const: "EUR" }, { title: "GBP", analyticsId: "currency-gbp", icon: { name: "flag-gbp" }, description: "British pound", const: "GBP" }, { title: "INR", analyticsId: "currency-inr", icon: { name: "flag-inr" }, description: "Indian rupee", const: "INR" }, { title: "USD", analyticsId: "currency-usd", icon: { name: "flag-usd" }, description: "United States dollar", const: "USD" }], validationMessages: { required: "Please enter currency." }, default: "EUR", refreshFormOnChange: true }, legalEntityType: { title: "Select recipient type", type: "string", analyticsId: "legalEntityType", oneOf: [{ title: "Person", analyticsId: "legalEntityType-person", const: "PERSON" }, { title: "Business", analyticsId: "legalEntityType-business", const: "INSTITUTION" }], validationMessages: { required: "Please specify the type of recipient." }, refreshFormOnChange: true }, email: { title: "Their email", type: "string", analyticsId: "email", placeholder: "example@example.ex", validationMessages: { maxLength: "The email you have entered is too long.", pattern: "The email address is invalid." }, refreshFormOnChange: true, autofillProvider: "contact", autofillKey: "contact.email", refreshFormUrl: "/steps/recipient", pattern: "\\s*[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\s*", maxLength: 255 } }, required: ["currency", "legalEntityType"] }, { title: "Bank details", analyticsId: "bank-details", oneOf: [{ title: "Inside Europe", analyticsId: "bank-details-europe", type: "object", displayOrder: ["name", "ownedByCustomer", "details", "type"], properties: { name: { type: "object", displayOrder: ["fullName"], properties: { fullName: { title: "Full name of the account holder", type: "string", validationMessages: { minLength: "Name needs to be between 2 and 140 characters long.", maxLength: "Recipient name cannot be longer than 140 characters.", pattern: "This recipient name contains invalid characters. Please use latin characters only.", required: "Name cannot be empty." }, autofillProvider: "contact", autofillKey: "contact.fullName", pattern: `^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$`, minLength: 2, maxLength: 140 } }, required: ["fullName"] }, ownedByCustomer: { title: "My own Account", type: "boolean", hidden: true, const: false }, details: { type: "object", displayOrder: ["bic", "iban"], properties: { bic: { title: "Bank code (BIC/SWIFT)", type: "string", placeholder: "BARCGB22XXX", hidden: true, validationMessages: { minLength: "The BIC you have entered is too short.", maxLength: "The BIC you have entered is too long.", pattern: "Please specify a valid BIC." }, pattern: "^[A-Za-z]{6}[A-Za-z\\d]{2}([A-Za-z\\d]{3})?$", minLength: 8, maxLength: 11 }, iban: { title: "IBAN", type: "string", placeholder: "DE12345678901234567890", displayFormat: "**** **** **** **** **** **** **** ****", help: { markdown: "IBANs are long account numbers used by banks for cross-border transfers. Each country structures this number differently, but it always starts with a 2 digit country code (e.g. DE for Germany)." }, validationMessages: { minLength: "The IBAN you have entered is too short.", maxLength: "The IBAN you have entered is too long.", pattern: "Please specify a valid IBAN.", required: "Please specify an IBAN." }, refreshFormOnChange: true, pattern: "^[a-zA-Z]{2}[a-zA-Z0-9 ]{12,40}$", minLength: 14, maxLength: 42 } }, required: ["iban"] }, type: { title: "Type", type: "string", hidden: true, const: "Iban" } }, required: ["type", "name", "details"], icon: { name: "bank" } }, { title: "Outside Europe", analyticsId: "bank-details-outside-europe", type: "object", displayOrder: ["name", "ownedByCustomer", "details", "type"], properties: { name: { type: "object", displayOrder: ["fullName"], properties: { fullName: { title: "Full name of the account holder", type: "string", validationMessages: { minLength: "Name needs to be between 2 and 140 characters long.", maxLength: "Recipient name cannot be longer than 140 characters.", pattern: "This recipient name contains invalid characters. Please use latin characters only.", required: "Name cannot be empty." }, autofillProvider: "contact", autofillKey: "contact.fullName", pattern: `^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$`, minLength: 2, maxLength: 140 } }, required: ["fullName"] }, ownedByCustomer: { title: "My own Account", type: "boolean", hidden: true, const: false }, details: { type: "object", displayOrder: ["bic", "accountNumber"], properties: { bic: { title: "SWIFT / BIC code", type: "string", placeholder: "BUKBGB22", validationMessages: { minLength: "The BIC you have entered is too short.", maxLength: "The BIC you have entered is too long.", pattern: "Please specify a valid BIC.", required: "Please specify a BIC." }, pattern: "^[a-zA-Z]{6}(([a-zA-Z0-9]{2})|([a-zA-Z0-9]{5}))$", minLength: 8, maxLength: 11 }, accountNumber: { title: "IBAN / Account Number", type: "string", placeholder: "123456789012", validationMessages: { minLength: "Account number is too short.", maxLength: "Account number is too large.", pattern: "Please enter a valid account number.", required: "Please enter an IBAN or account number." }, pattern: "^[a-zA-Z0-9]{4,34}$", minLength: 4, maxLength: 34 } }, required: ["bic", "accountNumber"] }, type: { title: "Type", type: "string", hidden: true, const: "SwiftCode" } }, required: ["type", "name", "details"], icon: { name: "bank" }, alert: { context: "warning", markdown: "To send EUR to this account, we need to use the SWIFT network. It\u2019s slower, so the transfer might take a day or two longer. Also note that intermediary banks and your recipient\u2019s bank might charge extra fees to the amount received." } }], control: "tab", placeholder: "Please select where you are sending to..." }] }], refreshFormUrl: "/steps/recipient", layout: [{ type: "form", schema: { $ref: "#new-recipient" } }, { type: "button", action: { type: "primary", title: "Confirm", url: "/v2/accounts", method: "POST" } }], model: { ownedByCustomer: false, details: {} } };
2730
- var Dl = Hu;
2731
- var qu = { key: "Examples/Recipient Update", type: "form", title: "Edit recipient", actions: [{ title: "Update", url: "/responses/recipientUpdate/?delay=5000", type: "primary", method: "PATCH", $id: "submit" }], schemas: [{ $id: "form", allOf: [{ type: "object", displayOrder: ["currency"], properties: { currency: { title: "Currency", type: "string", analyticsId: "currency-select", oneOf: [{ title: "GBP", analyticsId: "GBP", icon: { name: "flag-gbp" }, description: "British pound", const: "GBP" }], readOnly: true } }, required: [] }, { title: "Bank details", type: "object", analyticsId: "SortCode", icon: { name: "bank" }, displayOrder: ["name", "details", "address"], properties: { name: { type: "object", displayOrder: ["fullName"], properties: { fullName: { title: "Full name of the account holder", type: "string", disabled: true, readOnly: true, validationMessages: { minLength: "Name needs to be between 2 and 140 characters long.", maxLength: "Recipient name cannot be longer than 140 characters.", pattern: "This recipient name may contain invalid characters or is not the full name. Please try again." }, autofillProvider: "contact", autofillKey: "contact.fullName", pattern: "^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.]+ +[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.]+([0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,. ]*)$", minLength: 2, maxLength: 140 } }, required: [] }, details: { type: "object", displayOrder: ["sortCode", "accountNumber"], properties: { sortCode: { title: "UK sort code", type: "string", placeholder: "40-30-20", disabled: true, readOnly: true, validationMessages: { pattern: "Please enter a valid bank code." }, pattern: "^\\d{2}-?\\d{2}-?\\d{2}$", minLength: 6, maxLength: 8, format: "numeric", displayFormat: "**-**-**" }, accountNumber: { title: "Account number", type: "string", placeholder: "12345678", disabled: true, readOnly: true, validationMessages: { minLength: "Account number is too short.", maxLength: "Account number is too large.", pattern: "Please enter a valid account number." }, pattern: "[0-9]{8}", minLength: 8, maxLength: 8, format: "numeric" } }, required: [] }, address: { title: "Recipient address", type: "object", displayOrder: ["country", "city", "firstLine", "postCode"], properties: { country: { title: "Country", type: "string", placeholder: "Choose a country", oneOf: [{ title: "Argentina", const: "AR" }, { title: "Brazil", const: "BR" }, { title: "Canada", const: "CA" }, { title: "Denmark", const: "DK" }, { title: "Egypt", const: "EG" }, { title: "France", const: "FR" }, { title: "Germany", const: "DE" }, { title: "Honduras", const: "HN" }, { title: "Italy", const: "IT" }, { title: "Japan", const: "JP" }, { title: "Korea, Republic of", const: "KR" }, { title: "Liberia", const: "LR" }, { title: "Morocco", const: "MA" }, { title: "New Zealand", const: "NZ" }, { title: "Oman", const: "OM" }, { title: "Peru", const: "PE" }, { title: "Qatar", const: "QA" }, { title: "Russian Federation", const: "RU" }, { title: "Spain", const: "ES" }, { title: "Turkey", const: "TR" }, { title: "United Kingdom of Great Britain and Northern Ireland", const: "GB" }, { title: "United States of America", const: "US" }, { title: "Viet Nam", const: "VN" }, { title: "Yemen", const: "YE" }, { title: "Zimbabwe", const: "ZW" }], validationMessages: { required: "Please select a country." }, autofillProvider: "contact", autofillKey: "contact.countryCode" }, city: { title: "City", type: "string", autofillProvider: "contact", autofillKey: "contact.city", pattern: "^.{1,255}$", minLength: 1, maxLength: 255 }, firstLine: { title: "Recipient address", type: "string", autofillProvider: "contact", autofillKey: "contact.firstLine", pattern: "^.{1,255}$", minLength: 1, maxLength: 255 }, postCode: { title: "Post code", type: "string", validationMessages: { pattern: "Please specify a valid post code.", required: "Please specify the recipient's post code." }, autofillProvider: "contact", autofillKey: "contact.postalCode", pattern: "^.{1,32}$", minLength: 1, maxLength: 32 } }, required: ["country", "city", "firstLine", "postCode"], help: { markdown: "For legal reasons, we need to ask for the recipient's address (not the bank's address). Don't worry, they won't get any post from us." } } }, required: ["address"] }] }], errors: { validation: { address: { country: "Please select a country.", city: "Please enter a city.", postCode: "Please enter a post code.", firstLine: "Please enter a residential address." } } }, refreshFormUrl: "/steps/recipientUpdate/?refresh", model: { country: "GB", ownedByCustomer: false, creatorId: 5465158, accountSummary: "(04-00-04) 27832001", active: true, longAccountSummary: "GBP account ending in 2001", type: "SortCode", isInternal: false, profileId: 5461759, legalEntityType: "PERSON", name: { fullName: "Fergus Jordan" }, currency: "GBP", details: { accountNumber: "27832001", sortCode: "040004", hashedByLooseHashAlgorithm: "5c577703b845c613532bf0e08bbb38ce37644f76af58e1af6fa7447df7041a27" }, id: 67912450, hash: "fe319d809ce8a4f155412afe1b62bc2f1abf6e4af89f762a85a47811f54dab53", commonFieldMap: { bankCodeField: "sortCode", accountNumberField: "accountNumber" } }, layout: [{ schema: { $ref: "form" }, type: "form" }, { type: "button", action: { $ref: "submit" } }] };
2732
- var Ll = qu;
2733
- var $u = { key: "Examples/Single File Upload", type: "form", title: "Single File Upload Example", actions: [], schemas: [{ $id: "#schema-1", type: "object", displayOrder: ["frontSide"], properties: { frontSide: { refreshFormOnChange: false, $id: "frontSide", persistAsync: { url: "/single-file-upload-url", param: "file", idProperty: "frontSide", schema: { accepts: ["image/jpeg", "image/png"], maxSize: 41943040, source: "file", description: "JPEG or PNG less than 10MB", $id: "cb22a588-c404-43fd-b3fa-754afb3729f4", title: "Upload file", type: "blob" }, method: "POST" }, title: "Single File Upload", type: "integer" } }, required: ["frontSide"] }, { $id: "#schema-2", type: "object", displayOrder: ["frontSide"], properties: { frontSide: { refreshFormOnChange: false, $id: "backSide", persistAsync: { url: "/single-file-upload-url-fail", param: "file", idProperty: "backSide", schema: { accepts: ["image/jpeg", "image/png"], maxSize: 41943040, source: "file", description: "JPEG or PNG less than 10MB", $id: "cb22a588-c404-43fd-b3fa-754afb3729f4", title: "Upload file", type: "blob" }, method: "POST" }, title: "Single File Upload", type: "integer" } }, required: ["backSide"] }], layout: [{ type: "paragraph", text: "The upload component below uses /single-file-upload-url" }, { type: "form", schema: { $ref: "#schema-1" } }, { type: "paragraph", text: "The upload component below uses /single-file-upload-url-fail" }, { type: "form", schema: { $ref: "#schema-2" } }, { type: "button", action: { url: "/submit-uploads", type: "primary", method: "POST", disabled: false, title: "Next" } }], model: { frontSide: 0 } };
2734
- var Tl = $u;
2735
- var Gu = { key: "Examples/Step Validation Errors", title: "Step with validation errors", type: "form", errors: { validation: { "bridekeeper-questions": { "favourite-colour": "Auuuuuuuugh" } } }, actions: [], layout: [{ type: "form", schema: { $ref: "#the-schema" } }], schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["bridekeeper-questions"], properties: { "bridekeeper-questions": { type: "object", displayOrder: ["name", "quest", "favourite-colour"], properties: { name: { title: "What is your name?", type: "string", placeholder: "Sir Lancelot of Camelot" }, quest: { title: "What is your quest?", type: "string", placeholder: "to seek the Holy Grail" }, "favourite-colour": { title: "What is your favourite colour?", analyticsId: "colour-select", oneOf: [{ title: "Blue", analyticsId: "colour-select-blue", image: { url: "https://placeholder.pics/svg/128/0099ff/FFFFFF" }, const: 1 }, { title: "Yellow", analyticsId: "colour-select-yellow", image: { url: "https://placeholder.pics/svg/128/ffcc00/FFFFFF" }, const: 2 }, { title: "Red", analyticsId: "colour-select-red", image: { url: "https://placeholder.pics/svg/128/ff6600/FFFFFF" }, const: 2 }] } } } } }] };
2736
- var Nl = Gu;
2737
- var wa = {};
2738
- nt(wa, { actionResponse: () => Bl, external: () => Rl, persistAsync: () => Ul, polling: () => jl, validationAsync: () => zl });
2739
- var _u = { key: "Features/Action Response", title: "Action Response", description: "", type: "form", actions: [], schemas: [], layout: [{ type: "paragraph", text: "The button below will trigger an action that fetches '/responses/action'.", align: "center" }, { type: "paragraph", text: "That should return an action response that will load a final step.", align: "center" }, { type: "button", action: { url: "/responses/action", title: "Submit", type: "primary" } }] };
2717
+ ot(Sa, { cameraCapture: () => Dl, recipient: () => Ll, recipientUpdate: () => Tl, singleFileUpload: () => Bl, stepValidationErrors: () => Nl });
2718
+ var qu = { id: "Examples/Camera Capture", title: "Camera Capture Example", schemas: [{ properties: { frontSideFile: { refreshFormOnChange: false, format: "base64url", $id: "frontSideFile", title: "Passport photo page", hidden: false, cameraConfig: { assets: { overlay: "https://wise.com/public-resources/assets/camera-guidelines/v2/overlay_passport.png", outline: "https://wise.com/public-resources/assets/camera-guidelines/v2/outline_passport.png" }, direction: "back" }, source: "camera", type: "string" } }, required: ["frontSideFile"], displayOrder: ["frontSideFile"], $id: "ee2501a9-2566-459b-a42e-f9f0932be0e6", type: "object" }, { properties: { type: { refreshFormOnChange: false, $id: "9200f887-bfdd-46ad-8386-e76f455a7cc8", const: "ID_DOCUMENT_WITH_LIVENESS", hidden: true, type: "string" } }, required: ["type"], displayOrder: ["type"], $id: "c59a2881-a2e0-4108-b42e-0d30fc95bd7f", type: "object" }, { properties: { profileId: { refreshFormOnChange: false, $id: "75d888dc-208a-4d7d-a2a7-aeca0dd1b533", const: 14551053, hidden: true, type: "integer" } }, required: ["profileId"], displayOrder: ["profileId"], $id: "3eec6add-2d0e-41d7-8317-49542c841484", type: "object" }, { properties: { sessionId: { refreshFormOnChange: false, $id: "df82adf3-8a66-46b5-bef8-72f59be2188d", const: "62dfe7d026c6da1ac0db1ee4", hidden: true, type: "string" } }, required: ["sessionId"], displayOrder: ["sessionId"], $id: "e1a8fb67-9af2-47e8-97c1-f2a88e5d5f3a", type: "object" }], actions: [{ url: "/v3/kyc-checks/87785/flow?actionId=SINGLE_PAGE_REVIEW&sessionId=62dfe7d026c6da1ac0db1ee4&", type: "primary", method: "POST", disabled: false, $id: "6789eac5-7bbe-49d8-9da8-6edb8e7ef165", title: "" }], layout: [{ type: "form", schema: { $ref: "ee2501a9-2566-459b-a42e-f9f0932be0e6" } }, { components: [{ action: { $ref: "6789eac5-7bbe-49d8-9da8-6edb8e7ef165" }, margin: "lg", size: "md", type: "button" }], border: false, width: "xl", type: "box" }], model: { profileId: 14551053, sessionId: "62dfe7d026c6da1ac0db1ee4", issuingCountry: "HU", documentType: "PASSPORT", type: "ID_DOCUMENT_WITH_LIVENESS", key: { value: "ID_DOCUMENT_WITH_LIVENESS14551053" } }, refreshFormUrl: "/" };
2719
+ var Dl = qu;
2720
+ var $u = { id: "Examples/Recipient Creation", title: "Recipient Creation Example", description: "A form step with the typical recipient creation form.", schemas: [{ $id: "#new-recipient", allOf: [{ type: "object", displayOrder: ["profileId", "currency", "legalEntityType", "email"], properties: { profileId: { type: "number", hidden: true, const: 123456789 }, currency: { title: "Currency", type: "string", analyticsId: "currency", oneOf: [{ title: "EUR", analyticsId: "currency-eur", icon: { name: "flag-eur" }, description: "Euro", const: "EUR" }, { title: "GBP", analyticsId: "currency-gbp", icon: { name: "flag-gbp" }, description: "British pound", const: "GBP" }, { title: "INR", analyticsId: "currency-inr", icon: { name: "flag-inr" }, description: "Indian rupee", const: "INR" }, { title: "USD", analyticsId: "currency-usd", icon: { name: "flag-usd" }, description: "United States dollar", const: "USD" }], validationMessages: { required: "Please enter currency." }, default: "EUR", refreshFormOnChange: true }, legalEntityType: { title: "Select recipient type", type: "string", analyticsId: "legalEntityType", oneOf: [{ title: "Person", analyticsId: "legalEntityType-person", const: "PERSON" }, { title: "Business", analyticsId: "legalEntityType-business", const: "INSTITUTION" }], validationMessages: { required: "Please specify the type of recipient." }, refreshFormOnChange: true }, email: { title: "Their email", type: "string", analyticsId: "email", placeholder: "example@example.ex", validationMessages: { maxLength: "The email you have entered is too long.", pattern: "The email address is invalid." }, refreshFormOnChange: true, autofillProvider: "contact", autofillKey: "contact.email", refreshFormUrl: "/steps/recipient", pattern: "\\s*[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\s*", maxLength: 255 } }, required: ["currency", "legalEntityType"] }, { title: "Bank details", analyticsId: "bank-details", oneOf: [{ title: "Inside Europe", analyticsId: "bank-details-europe", type: "object", displayOrder: ["name", "ownedByCustomer", "details", "type"], properties: { name: { type: "object", displayOrder: ["fullName"], properties: { fullName: { title: "Full name of the account holder", type: "string", validationMessages: { minLength: "Name needs to be between 2 and 140 characters long.", maxLength: "Recipient name cannot be longer than 140 characters.", pattern: "This recipient name contains invalid characters. Please use latin characters only.", required: "Name cannot be empty." }, autofillProvider: "contact", autofillKey: "contact.fullName", pattern: `^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$`, minLength: 2, maxLength: 140 } }, required: ["fullName"] }, ownedByCustomer: { title: "My own Account", type: "boolean", hidden: true, const: false }, details: { type: "object", displayOrder: ["bic", "iban"], properties: { bic: { title: "Bank code (BIC/SWIFT)", type: "string", placeholder: "BARCGB22XXX", hidden: true, validationMessages: { minLength: "The BIC you have entered is too short.", maxLength: "The BIC you have entered is too long.", pattern: "Please specify a valid BIC." }, pattern: "^[A-Za-z]{6}[A-Za-z\\d]{2}([A-Za-z\\d]{3})?$", minLength: 8, maxLength: 11 }, iban: { title: "IBAN", type: "string", placeholder: "DE12345678901234567890", displayFormat: "**** **** **** **** **** **** **** ****", help: { markdown: "IBANs are long account numbers used by banks for cross-border transfers. Each country structures this number differently, but it always starts with a 2 digit country code (e.g. DE for Germany)." }, validationMessages: { minLength: "The IBAN you have entered is too short.", maxLength: "The IBAN you have entered is too long.", pattern: "Please specify a valid IBAN.", required: "Please specify an IBAN." }, refreshFormOnChange: true, pattern: "^[a-zA-Z]{2}[a-zA-Z0-9 ]{12,40}$", minLength: 14, maxLength: 42 } }, required: ["iban"] }, type: { title: "Type", type: "string", hidden: true, const: "Iban" } }, required: ["type", "name", "details"], icon: { name: "bank" } }, { title: "Outside Europe", analyticsId: "bank-details-outside-europe", type: "object", displayOrder: ["name", "ownedByCustomer", "details", "type"], properties: { name: { type: "object", displayOrder: ["fullName"], properties: { fullName: { title: "Full name of the account holder", type: "string", validationMessages: { minLength: "Name needs to be between 2 and 140 characters long.", maxLength: "Recipient name cannot be longer than 140 characters.", pattern: "This recipient name contains invalid characters. Please use latin characters only.", required: "Name cannot be empty." }, autofillProvider: "contact", autofillKey: "contact.fullName", pattern: `^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$`, minLength: 2, maxLength: 140 } }, required: ["fullName"] }, ownedByCustomer: { title: "My own Account", type: "boolean", hidden: true, const: false }, details: { type: "object", displayOrder: ["bic", "accountNumber"], properties: { bic: { title: "SWIFT / BIC code", type: "string", placeholder: "BUKBGB22", validationMessages: { minLength: "The BIC you have entered is too short.", maxLength: "The BIC you have entered is too long.", pattern: "Please specify a valid BIC.", required: "Please specify a BIC." }, pattern: "^[a-zA-Z]{6}(([a-zA-Z0-9]{2})|([a-zA-Z0-9]{5}))$", minLength: 8, maxLength: 11 }, accountNumber: { title: "IBAN / Account Number", type: "string", placeholder: "123456789012", validationMessages: { minLength: "Account number is too short.", maxLength: "Account number is too large.", pattern: "Please enter a valid account number.", required: "Please enter an IBAN or account number." }, pattern: "^[a-zA-Z0-9]{4,34}$", minLength: 4, maxLength: 34 } }, required: ["bic", "accountNumber"] }, type: { title: "Type", type: "string", hidden: true, const: "SwiftCode" } }, required: ["type", "name", "details"], icon: { name: "bank" }, alert: { context: "warning", markdown: "To send EUR to this account, we need to use the SWIFT network. It\u2019s slower, so the transfer might take a day or two longer. Also note that intermediary banks and your recipient\u2019s bank might charge extra fees to the amount received." } }], control: "tab", placeholder: "Please select where you are sending to..." }] }], refreshFormUrl: "/steps/recipient", layout: [{ type: "form", schema: { $ref: "#new-recipient" } }, { type: "button", action: { type: "primary", title: "Confirm", url: "/v2/accounts", method: "POST" } }], model: { ownedByCustomer: false, details: {} } };
2721
+ var Ll = $u;
2722
+ var Gu = { id: "Examples/Recipient Update", title: "Edit recipient", schemas: [{ $id: "form", allOf: [{ type: "object", displayOrder: ["currency"], properties: { currency: { title: "Currency", type: "string", analyticsId: "currency-select", oneOf: [{ title: "GBP", analyticsId: "GBP", icon: { name: "flag-gbp" }, description: "British pound", const: "GBP" }], readOnly: true } }, required: [] }, { title: "Bank details", type: "object", analyticsId: "SortCode", icon: { name: "bank" }, displayOrder: ["name", "details", "address"], properties: { name: { type: "object", displayOrder: ["fullName"], properties: { fullName: { title: "Full name of the account holder", type: "string", disabled: true, readOnly: true, validationMessages: { minLength: "Name needs to be between 2 and 140 characters long.", maxLength: "Recipient name cannot be longer than 140 characters.", pattern: "This recipient name may contain invalid characters or is not the full name. Please try again." }, autofillProvider: "contact", autofillKey: "contact.fullName", pattern: "^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.]+ +[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,.]+([0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\xFF-_()'*,. ]*)$", minLength: 2, maxLength: 140 } }, required: [] }, details: { type: "object", displayOrder: ["sortCode", "accountNumber"], properties: { sortCode: { title: "UK sort code", type: "string", placeholder: "40-30-20", disabled: true, readOnly: true, validationMessages: { pattern: "Please enter a valid bank code." }, pattern: "^\\d{2}-?\\d{2}-?\\d{2}$", minLength: 6, maxLength: 8, format: "numeric", displayFormat: "**-**-**" }, accountNumber: { title: "Account number", type: "string", placeholder: "12345678", disabled: true, readOnly: true, validationMessages: { minLength: "Account number is too short.", maxLength: "Account number is too large.", pattern: "Please enter a valid account number." }, pattern: "[0-9]{8}", minLength: 8, maxLength: 8, format: "numeric" } }, required: [] }, address: { title: "Recipient address", type: "object", displayOrder: ["country", "city", "firstLine", "postCode"], properties: { country: { title: "Country", type: "string", placeholder: "Choose a country", oneOf: [{ title: "Argentina", const: "AR" }, { title: "Brazil", const: "BR" }, { title: "Canada", const: "CA" }, { title: "Denmark", const: "DK" }, { title: "Egypt", const: "EG" }, { title: "France", const: "FR" }, { title: "Germany", const: "DE" }, { title: "Honduras", const: "HN" }, { title: "Italy", const: "IT" }, { title: "Japan", const: "JP" }, { title: "Korea, Republic of", const: "KR" }, { title: "Liberia", const: "LR" }, { title: "Morocco", const: "MA" }, { title: "New Zealand", const: "NZ" }, { title: "Oman", const: "OM" }, { title: "Peru", const: "PE" }, { title: "Qatar", const: "QA" }, { title: "Russian Federation", const: "RU" }, { title: "Spain", const: "ES" }, { title: "Turkey", const: "TR" }, { title: "United Kingdom of Great Britain and Northern Ireland", const: "GB" }, { title: "United States of America", const: "US" }, { title: "Viet Nam", const: "VN" }, { title: "Yemen", const: "YE" }, { title: "Zimbabwe", const: "ZW" }], validationMessages: { required: "Please select a country." }, autofillProvider: "contact", autofillKey: "contact.countryCode" }, city: { title: "City", type: "string", autofillProvider: "contact", autofillKey: "contact.city", pattern: "^.{1,255}$", minLength: 1, maxLength: 255 }, firstLine: { title: "Recipient address", type: "string", autofillProvider: "contact", autofillKey: "contact.firstLine", pattern: "^.{1,255}$", minLength: 1, maxLength: 255 }, postCode: { title: "Post code", type: "string", validationMessages: { pattern: "Please specify a valid post code.", required: "Please specify the recipient's post code." }, autofillProvider: "contact", autofillKey: "contact.postalCode", pattern: "^.{1,32}$", minLength: 1, maxLength: 32 } }, required: ["country", "city", "firstLine", "postCode"], help: { markdown: "For legal reasons, we need to ask for the recipient's address (not the bank's address). Don't worry, they won't get any post from us." } } }, required: ["address"] }] }], errors: { validation: { address: { country: "Please select a country.", city: "Please enter a city.", postCode: "Please enter a post code.", firstLine: "Please enter a residential address." } } }, refreshFormUrl: "/steps/recipientUpdate/?refresh", model: { country: "GB", ownedByCustomer: false, creatorId: 5465158, accountSummary: "(04-00-04) 27832001", active: true, longAccountSummary: "GBP account ending in 2001", type: "SortCode", isInternal: false, profileId: 5461759, legalEntityType: "PERSON", name: { fullName: "Fergus Jordan" }, currency: "GBP", details: { accountNumber: "27832001", sortCode: "040004", hashedByLooseHashAlgorithm: "5c577703b845c613532bf0e08bbb38ce37644f76af58e1af6fa7447df7041a27" }, id: 67912450, hash: "fe319d809ce8a4f155412afe1b62bc2f1abf6e4af89f762a85a47811f54dab53", commonFieldMap: { bankCodeField: "sortCode", accountNumberField: "accountNumber" } }, layout: [{ schema: { $ref: "form" }, type: "form" }, { type: "button", action: { $id: "submit", title: "Update", url: "/responses/recipientUpdate/?delay=5000", type: "primary", method: "PATCH" } }] };
2723
+ var Tl = Gu;
2724
+ var _u = { id: "Examples/Single File Upload", title: "Single File Upload Example", schemas: [{ $id: "#schema-1", type: "object", displayOrder: ["frontSide"], properties: { frontSide: { refreshFormOnChange: false, $id: "frontSide", persistAsync: { url: "/single-file-upload-url", param: "file", idProperty: "frontSide", schema: { accepts: ["image/jpeg", "image/png"], maxSize: 41943040, source: "file", description: "JPEG or PNG less than 10MB", $id: "cb22a588-c404-43fd-b3fa-754afb3729f4", title: "Upload file", type: "blob" }, method: "POST" }, title: "Single File Upload", type: "integer" } }, required: ["frontSide"] }, { $id: "#schema-2", type: "object", displayOrder: ["frontSide"], properties: { frontSide: { refreshFormOnChange: false, $id: "backSide", persistAsync: { url: "/single-file-upload-url-fail", param: "file", idProperty: "backSide", schema: { accepts: ["image/jpeg", "image/png"], maxSize: 41943040, source: "file", description: "JPEG or PNG less than 10MB", $id: "cb22a588-c404-43fd-b3fa-754afb3729f4", title: "Upload file", type: "blob" }, method: "POST" }, title: "Single File Upload", type: "integer" } }, required: ["backSide"] }], layout: [{ type: "paragraph", text: "The upload component below uses /single-file-upload-url" }, { type: "form", schema: { $ref: "#schema-1" } }, { type: "paragraph", text: "The upload component below uses /single-file-upload-url-fail" }, { type: "form", schema: { $ref: "#schema-2" } }, { type: "button", action: { url: "/submit-uploads", type: "primary", method: "POST", disabled: false, title: "Next" } }], model: { frontSide: 0 } };
2740
2725
  var Bl = _u;
2741
- var Wu = { type: "form", key: "Features/External", title: "External Feature", description: "Your bank is opening in another window.", external: { url: "http://google.com/" }, polling: { url: "/polling/1234", interval: 2, maxAttempts: 5, onError: { action: { url: "/failure" } } }, layout: [{ type: "paragraph", align: "center", text: "Please, follow their instructions. Keep this window open." }, { type: "loading-indicator", margin: "xl" }, { type: "info", align: "center", markdown: "If it didn't work, you can [reopen](http://google.com/) the tab" }], actions: [], schemas: [] };
2742
- var Rl = Wu;
2743
- var Ku = { type: "form", key: "Features/Persist Async", title: "Persist Async Feature", schemas: [{ $id: "the-schema", type: "object", title: "Some Object", displayOrder: ["nameToken"], properties: { nameToken: { type: "string", title: "Text input", persistAsync: { method: "POST", url: "/persist-async-upload", param: "name", idProperty: "nameToken", schema: { title: "Enter your name", type: "string" } } } } }], actions: [{ title: "Submit Persist Async", url: "/persist-async-submit", method: "POST", type: "primary" }], layout: [{ type: "form", schema: { $ref: "the-schema" } }] };
2744
- var Ul = Ku;
2745
- var Yu = { type: "form", key: "Features/Polling", title: "Polling Feature", description: "Polling feature in a form step.", polling: { url: "/polling/1234", interval: 2, maxAttempts: 5, onError: { action: { url: "/failure" } } }, layout: [{ type: "paragraph", align: "center", text: "We are waiting for something to happen." }, { type: "loading-indicator", margin: "xl" }, { type: "button", action: { title: "Back", type: "link", url: "/back" } }], actions: [], schemas: [] };
2726
+ var Wu = { id: "Examples/Step Validation Errors", title: "Step with validation errors", errors: { validation: { "bridekeeper-questions": { "favourite-colour": "Auuuuuuuugh" } } }, layout: [{ type: "form", schema: { $ref: "#the-schema" } }], schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["bridekeeper-questions"], properties: { "bridekeeper-questions": { type: "object", displayOrder: ["name", "quest", "favourite-colour"], properties: { name: { title: "What is your name?", type: "string", placeholder: "Sir Lancelot of Camelot" }, quest: { title: "What is your quest?", type: "string", placeholder: "to seek the Holy Grail" }, "favourite-colour": { title: "What is your favourite colour?", analyticsId: "colour-select", oneOf: [{ title: "Blue", analyticsId: "colour-select-blue", image: { url: "https://placeholder.pics/svg/128/0099ff/FFFFFF" }, const: 1 }, { title: "Yellow", analyticsId: "colour-select-yellow", image: { url: "https://placeholder.pics/svg/128/ffcc00/FFFFFF" }, const: 2 }, { title: "Red", analyticsId: "colour-select-red", image: { url: "https://placeholder.pics/svg/128/ff6600/FFFFFF" }, const: 2 }] } } } } }] };
2727
+ var Nl = Wu;
2728
+ var wa = {};
2729
+ ot(wa, { actionResponse: () => Rl, external: () => jl, persistAsync: () => Ul, polling: () => zl, validationAsync: () => Vl });
2730
+ var Ku = { id: "Features/Action Response", title: "Action Response", description: "", type: "form", schemas: [], layout: [{ type: "paragraph", text: "The button below will trigger an action that fetches '/responses/action'.", align: "center" }, { type: "paragraph", text: "That should return an action response that will load a final step.", align: "center" }, { type: "button", action: { url: "/responses/action", title: "Submit", type: "primary" } }] };
2731
+ var Rl = Ku;
2732
+ var Yu = { type: "form", id: "Features/External", title: "External Feature", description: "Your bank is opening in another window.", external: { url: "http://google.com/" }, polling: { url: "/polling/1234", interval: 2, maxAttempts: 5, onError: { action: { url: "/failure" } } }, layout: [{ type: "paragraph", align: "center", text: "Please, follow their instructions. Keep this window open." }, { type: "loading-indicator", margin: "xl" }, { type: "info", align: "center", markdown: "If it didn't work, you can [reopen](http://google.com/) the tab" }], schemas: [] };
2746
2733
  var jl = Yu;
2747
- var Ju = { type: "form", key: "Features/Validation Async", title: "Validation Async Feature", schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["account-number"], properties: { "account-number": { $id: "#the-string-schema", type: "string", maxLength: 6, title: "Account number (max 6 digits)", validationAsync: { method: "POST", url: "/validate", param: "myParameter" } } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }], actions: [], model: {} };
2748
- var zl = Ju;
2734
+ var Ju = { id: "Features/Persist Async", title: "Persist Async Feature", schemas: [{ $id: "the-schema", type: "object", title: "Some Object", displayOrder: ["nameToken"], properties: { nameToken: { type: "string", title: "Text input", persistAsync: { method: "POST", url: "/persist-async-upload", param: "name", idProperty: "nameToken", schema: { title: "Enter your name", type: "string" } } } } }], layout: [{ type: "form", schema: { $ref: "the-schema" } }] };
2735
+ var Ul = Ju;
2736
+ var Zu = { id: "Features/Polling", title: "Polling Feature", description: "Polling feature in a form step.", polling: { url: "/polling/1234", interval: 2, maxAttempts: 5, onError: { action: { url: "/failure" } } }, layout: [{ type: "paragraph", align: "center", text: "We are waiting for something to happen." }, { type: "loading-indicator", margin: "xl" }, { type: "button", action: { title: "Back", type: "link", url: "/back" } }], schemas: [] };
2737
+ var zl = Zu;
2738
+ var Xu = { type: "form", id: "Features/Validation Async", title: "Validation Async Feature", schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["account-number"], properties: { "account-number": { $id: "#the-string-schema", type: "string", maxLength: 6, title: "Account number (max 6 digits)", validationAsync: { method: "POST", url: "/validate", param: "myParameter" } } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }], model: {} };
2739
+ var Vl = Xu;
2749
2740
  var Fa = {};
2750
- nt(Fa, { allLayoutComponents: () => Vl, finalStepLayout: () => Hl, listLayout: () => ql, payInLayout: () => $l, reviewLayout: () => Gl, successLayout: () => _l });
2751
- var Zu = [{ type: "box", width: "md", components: [{ type: "heading", text: "This is a large heading", size: "lg", align: "center", margin: "md" }, { type: "paragraph", text: "This is a paragraph of text. This is a paragraph of text. This is a paragraph of text.", align: "center", margin: "xl" }, { type: "loading-indicator", size: "lg", margin: "md" }] }, { type: "columns", bias: "left", left: [{ type: "box", border: true, components: [{ type: "heading", text: "Small heading", size: "sm", margin: "md" }, { type: "divider", margin: "xl" }, { type: "review", title: "Review title", margin: "lg", orientation: "horizontal", action: { $id: "edit-profile", title: "Edit", url: "/edit", method: "GET" }, fields: [{ label: "First name", value: "John" }, { label: "Last name", value: "Smith" }] }, { type: "image", text: "An image of cascading stylesheet computer code", url: "https://bootstrap.transferwise.com/assets/img/css2-bg.jpg", margin: "xs" }] }], right: [{ type: "form", schema: { type: "object", title: "Personal details", alert: { markdown: "Make sure you get this correct, or your transfer could be held up!", context: "neutral" }, displayOrder: ["firstname", "lastname"], properties: { firstname: { type: "string", title: "First name", alert: { markdown: "Please use **only** latin characters.", context: "warning" } }, lastname: { type: "string", title: "Last name", minLength: 3, help: { markdown: "help!" } } } } }, { type: "alert", markdown: "This is an alert - we can use **bold** to provide emphasis.", context: "warning" }, { type: "info", markdown: `### This heading comes from markdown
2741
+ ot(Fa, { allLayoutComponents: () => Hl, finalStepLayout: () => ql, listLayout: () => $l, payInLayout: () => Gl, reviewLayout: () => _l, successLayout: () => Wl });
2742
+ var Qu = [{ type: "box", width: "md", components: [{ type: "heading", text: "This is a large heading", size: "lg", align: "center", margin: "md" }, { type: "paragraph", text: "This is a paragraph of text. This is a paragraph of text. This is a paragraph of text.", align: "center", margin: "xl" }, { type: "loading-indicator", size: "lg", margin: "md" }] }, { type: "columns", bias: "left", left: [{ type: "box", border: true, components: [{ type: "heading", text: "Small heading", size: "sm", margin: "md" }, { type: "divider", margin: "xl" }, { type: "review", title: "Review title", margin: "lg", orientation: "horizontal", action: { $id: "edit-profile", title: "Edit", url: "/edit", method: "GET" }, fields: [{ label: "First name", value: "John" }, { label: "Last name", value: "Smith" }] }, { type: "image", text: "An image of cascading stylesheet computer code", url: "https://bootstrap.transferwise.com/assets/img/css2-bg.jpg", margin: "xs" }] }], right: [{ type: "form", schema: { type: "object", title: "Personal details", alert: { markdown: "Make sure you get this correct, or your transfer could be held up!", context: "neutral" }, displayOrder: ["firstname", "lastname"], properties: { firstname: { type: "string", title: "First name", alert: { markdown: "Please use **only** latin characters.", context: "warning" } }, lastname: { type: "string", title: "Last name", minLength: 3, help: { markdown: "help!" } } } } }, { type: "alert", markdown: "This is an alert - we can use **bold** to provide emphasis.", context: "warning" }, { type: "info", markdown: `### This heading comes from markdown
2752
2743
  \r We can use markdown to add [links](https://transferwise.com) and _other_ **formatting**
2753
2744
  \r. It will also let us add simple lists:
2754
2745
  - one
2755
2746
  - two
2756
2747
  - #### three` }] }, { type: "box", width: "sm", components: [{ type: "button", action: { title: "Submit", url: "", method: "GET", data: {}, type: "primary" } }, { type: "button", action: { title: "Cancel", url: "", method: "GET", data: {}, disabled: true } }] }, { type: "decision", options: [{ title: "More information about this option", icon: { name: "profile" }, action: { title: "Option 1", url: "/option1", method: "POST", data: { a: 1 } } }, { title: "More information about this option", icon: { name: "bank" }, action: { title: "Option 2", url: "/option2", method: "GET", data: {}, disabled: true } }] }];
2757
- var Vl = Zu;
2758
- var Xu = [{ type: "image", url: "https://via.placeholder.com/1024", text: "Image alt text", margin: "lg", size: "sm" }, { type: "heading", text: "Image size sm", size: "lg", margin: "lg", align: "center" }, { type: "paragraph", text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel ante felis. Nullam auctor posuere justo ac posuere. Nullam efficitur enim ut turpis venenatis vestibulum.", align: "center" }, { type: "box", width: "md", components: [{ type: "button", action: { title: "Button", type: "primary", exit: true, data: { someKey: "some value" }, url: "/success", method: "GET" } }] }];
2759
- var Hl = Xu;
2760
- var Qu = [{ type: "list", title: "This is a List", items: [{ title: "Item 1", description: "The first item is positive", icon: { name: "bank" }, status: "positive" }, { title: "Item 2", description: "The second item is neutral", icon: { name: "emoji" }, status: "neutral" }, { title: "Item 3", description: "The third item is warning", icon: { name: "gift-box" }, status: "warning" }] }];
2761
- var ql = Qu;
2762
- var ep = { key: "PAY_ID", type: "form", title: "Pay Using PayID", actions: [{ title: "I have paid", type: "primary", exit: true, result: { paid: "POTENTIALLY_PAID" }, $id: "#payNow" }, { title: "I'll transfer my money later", type: "secondary", exit: true, result: { paid: "NOT_PAID" }, $id: "#payLater" }], schemas: [{ title: "Pay Using PayID", type: "string", hidden: true, default: "PayId" }], layout: [{ type: "info", markdown: "Go to your online banking and transfer **50.25 AUD** to our account using the email below." }, { components: [{ context: "neutral", markdown: "We've updated our PayID email and no longer require you to enter any reference numbers. Use this PayID going forward.", type: "alert" }, { type: "review", title: "Our Bank Details", fields: [{ label: "Email", value: "rahul@wise.com" }] }, { left: [{ type: "review", fields: [{ label: "Account Name", value: "Wise Australia Pty Ltd" }] }], right: [{ type: "review", fields: [{ label: "Amount", value: "50.25 AUD" }] }], type: "columns" }], type: "box" }, { type: "button", action: { $ref: "#payNow" } }, { type: "button", action: { $ref: "#payLater" } }] };
2763
- var $l = ep;
2764
- var tp = [{ type: "box", width: "md", components: [{ type: "heading", align: "center", margin: "lg", text: "Review your transfer details" }, { type: "box", border: true, components: [{ type: "review", title: "Transfer details", orientation: "horizontal", action: { title: "Edit", url: "/edit-transfer", method: "GET" }, fields: [{ label: "You send approximately", value: "88.86 GBP" }, { label: "You send from", value: "GBP balance" }, { label: "Estimate total fees (included)", value: "0.86 GBP" }, { label: "Estimate amount we'll convert", value: "88 GBP" }, { label: "Live rate", value: "1.1363" }, { label: "Test gets exactly", value: "100 EUR" }, { label: "Should arrive", value: "in seconds" }] }, { type: "divider" }, { type: "review", title: "Recipient details", orientation: "horizontal", action: { title: "Edit", url: "/recipient", method: "GET" }, fields: [{ label: "Name", value: "Test Name" }, { label: "Email", value: "test@example.com" }, { label: "Sort code", value: "12-34-56" }, { label: "Account number", value: "12345678" }] }] }, { type: "box", border: true, components: [{ type: "form", schema: { title: "Schedule", type: "object", displayOrder: ["date", "frequency"], properties: { date: { title: "Date", type: "string", format: "date" }, frequency: { type: "string", title: "Frequency", control: "select", placeholder: "How often?", oneOf: [{ title: "Daily", const: "day" }, { title: "Weekly", const: "week" }, { title: "Monthly", const: "month" }] } } } }, { type: "alert", markdown: "We'll deduct the required amount **from your GBP balance** at the **real exchange rate** on the **28th of each month**, so that Rayna always gets exactly **100 EUR**. First **monthly** transfer will be made on **April 28, 2020 (BST)**" }] }, { type: "form", schema: { type: "object", displayOrder: ["reference"], properties: { reference: { type: "string", title: "Reference", placeholder: "Type a reference" } } } }, { type: "button", action: { title: "Create transfer", method: "POST", url: "/final", type: "primary" } }] }];
2765
- var Gl = tp;
2766
- var rp = [{ type: "box", width: "xs", components: [{ type: "image", url: "https://transferwise.com/staticrab/homepage/_next/static/images/how_to_2-06281f8ea9caa50445f075d460434bcf.svg", text: "An illustration" }] }, { type: "box", width: "lg", components: [{ type: "heading", align: "center", text: "You've scheduled a monthly payment of 100 EUR to Rayna Kenter" }] }, { type: "box", width: "md", components: [{ type: "info", align: "center", markdown: "Your first payment has been sent **now**", margin: "xs" }, { type: "paragraph", align: "center", text: "Your next payment will be made on July 29th, 2020 (BST)" }, { type: "columns", left: [{ type: "button", action: { title: "Check transfer details", url: "/check", method: "GET" } }], right: [{ type: "button", action: { title: "Invite & earn", url: "/check", method: "GET", type: "primary" } }] }] }];
2767
- var _l = rp;
2748
+ var Hl = Qu;
2749
+ var ep = [{ type: "image", url: "https://via.placeholder.com/1024", text: "Image alt text", margin: "lg", size: "sm" }, { type: "heading", text: "Image size sm", size: "lg", margin: "lg", align: "center" }, { type: "paragraph", text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel ante felis. Nullam auctor posuere justo ac posuere. Nullam efficitur enim ut turpis venenatis vestibulum.", align: "center" }, { type: "box", width: "md", components: [{ type: "button", action: { title: "Button", type: "primary", exit: true, data: { someKey: "some value" }, url: "/success", method: "GET" } }] }];
2750
+ var ql = ep;
2751
+ var tp = [{ type: "list", title: "This is a List", items: [{ title: "Item 1", description: "The first item is positive", icon: { name: "bank" }, status: "positive" }, { title: "Item 2", description: "The second item is neutral", icon: { name: "emoji" }, status: "neutral" }, { title: "Item 3", description: "The third item is warning", icon: { name: "gift-box" }, status: "warning" }] }];
2752
+ var $l = tp;
2753
+ var rp = { id: "PAY_ID", type: "form", title: "Pay Using PayID", schemas: [{ title: "Pay Using PayID", type: "string", hidden: true, default: "PayId" }], layout: [{ type: "info", markdown: "Go to your online banking and transfer **50.25 AUD** to our account using the email below." }, { components: [{ context: "neutral", markdown: "We've updated our PayID email and no longer require you to enter any reference numbers. Use this PayID going forward.", type: "alert" }, { type: "review", title: "Our Bank Details", fields: [{ label: "Email", value: "rahul@wise.com" }] }, { left: [{ type: "review", fields: [{ label: "Account Name", value: "Wise Australia Pty Ltd" }] }], right: [{ type: "review", fields: [{ label: "Amount", value: "50.25 AUD" }] }], type: "columns" }], type: "box" }, { type: "button", action: { title: "I have paid", type: "primary", exit: true, result: { paid: "POTENTIALLY_PAID" }, $id: "#payNow" } }, { type: "button", action: { $id: "#payLater", title: "I'll transfer my money later", type: "secondary", exit: true, result: { paid: "NOT_PAID" } } }] };
2754
+ var Gl = rp;
2755
+ var op = [{ type: "box", width: "md", components: [{ type: "heading", align: "center", margin: "lg", text: "Review your transfer details" }, { type: "box", border: true, components: [{ type: "review", title: "Transfer details", orientation: "horizontal", action: { title: "Edit", url: "/edit-transfer", method: "GET" }, fields: [{ label: "You send approximately", value: "88.86 GBP" }, { label: "You send from", value: "GBP balance" }, { label: "Estimate total fees (included)", value: "0.86 GBP" }, { label: "Estimate amount we'll convert", value: "88 GBP" }, { label: "Live rate", value: "1.1363" }, { label: "Test gets exactly", value: "100 EUR" }, { label: "Should arrive", value: "in seconds" }] }, { type: "divider" }, { type: "review", title: "Recipient details", orientation: "horizontal", action: { title: "Edit", url: "/recipient", method: "GET" }, fields: [{ label: "Name", value: "Test Name" }, { label: "Email", value: "test@example.com" }, { label: "Sort code", value: "12-34-56" }, { label: "Account number", value: "12345678" }] }] }, { type: "box", border: true, components: [{ type: "form", schema: { title: "Schedule", type: "object", displayOrder: ["date", "frequency"], properties: { date: { title: "Date", type: "string", format: "date" }, frequency: { type: "string", title: "Frequency", control: "select", placeholder: "How often?", oneOf: [{ title: "Daily", const: "day" }, { title: "Weekly", const: "week" }, { title: "Monthly", const: "month" }] } } } }, { type: "alert", markdown: "We'll deduct the required amount **from your GBP balance** at the **real exchange rate** on the **28th of each month**, so that Rayna always gets exactly **100 EUR**. First **monthly** transfer will be made on **April 28, 2020 (BST)**" }] }, { type: "form", schema: { type: "object", displayOrder: ["reference"], properties: { reference: { type: "string", title: "Reference", placeholder: "Type a reference" } } } }, { type: "button", action: { title: "Create transfer", method: "POST", url: "/final", type: "primary" } }] }];
2756
+ var _l = op;
2757
+ var ap = [{ type: "box", width: "xs", components: [{ type: "image", url: "https://transferwise.com/staticrab/homepage/_next/static/images/how_to_2-06281f8ea9caa50445f075d460434bcf.svg", text: "An illustration" }] }, { type: "box", width: "lg", components: [{ type: "heading", align: "center", text: "You've scheduled a monthly payment of 100 EUR to Rayna Kenter" }] }, { type: "box", width: "md", components: [{ type: "info", align: "center", markdown: "Your first payment has been sent **now**", margin: "xs" }, { type: "paragraph", align: "center", text: "Your next payment will be made on July 29th, 2020 (BST)" }, { type: "columns", left: [{ type: "button", action: { title: "Check transfer details", url: "/check", method: "GET" } }], right: [{ type: "button", action: { title: "Invite & earn", url: "/check", method: "GET", type: "primary" } }] }] }];
2758
+ var Wl = ap;
2768
2759
  var Ca = {};
2769
- nt(Ca, { action: () => Wl, actionResponseFinal: () => Kl, exit: () => Yl, recipientUpdateFinal: () => Jl });
2770
- var op = { action: { url: "/responses/success", method: "POST" } };
2771
- var Wl = op;
2772
- var ap = { type: "form", key: "action-response-final", title: "Action Response Final Step", description: "This step was loaded as a result of an Action Response.", actions: [], schemas: [], layout: [{ type: "alert", markdown: 'If you want to see this again, perhaps go back to "Action Response" story.', context: "positive" }, { type: "button", action: { title: "Start Over", type: "primary", url: "/steps/actionResponse" } }] };
2773
- var Kl = ap;
2774
- var np = { id: "123456", name: "Bob Loblaw", country: "US" };
2775
- var Yl = np;
2776
- var ip = { type: "form", key: "recipient-update-final", title: "Recipient Update Final Step", description: "The recipient has been updated.", actions: [], schemas: [], layout: [{ type: "alert", markdown: "Nothing to see here.", context: "positive" }, { type: "button", action: { title: "Start Over", type: "primary", url: "/steps/recipientUpdate" } }] };
2777
- var Jl = ip;
2760
+ ot(Ca, { action: () => Kl, actionResponseFinal: () => Yl, exit: () => Jl, recipientUpdateFinal: () => Zl });
2761
+ var np = { action: { url: "/responses/success", method: "POST" } };
2762
+ var Kl = np;
2763
+ var ip = { id: "action-response-final", title: "Action Response Final Step", description: "This step was loaded as a result of an Action Response.", schemas: [], layout: [{ type: "alert", markdown: 'If you want to see this again, perhaps go back to "Action Response" story.', context: "positive" }, { type: "button", action: { title: "Start Over", type: "primary", url: "/steps/actionResponse" } }] };
2764
+ var Yl = ip;
2765
+ var sp = { id: "123456", name: "Bob Loblaw", country: "US" };
2766
+ var Jl = sp;
2767
+ var lp = { id: "recipient-update-final", title: "Recipient Update Final Step", description: "The recipient has been updated.", schemas: [], layout: [{ type: "alert", markdown: "Nothing to see here.", context: "positive" }, { type: "button", action: { title: "Start Over", type: "primary", url: "/steps/recipientUpdate" } }] };
2768
+ var Zl = lp;
2778
2769
  var xa = {};
2779
- nt(xa, { numberAndInteger: () => Xl, oneOf: () => Ql, simpleForm: () => Zl, stringFormats: () => ec });
2780
- var sp = { key: "Schemas/Basic Form", title: "Simple Form", description: "A simple form with text fields and a checkbox.", type: "form", actions: [], schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["name", "pineapple"], properties: { name: { title: "Name (string schema)", type: "string" }, pineapple: { title: "Pineapple on pizza (boolean schema)", type: "boolean" } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2781
- var Zl = sp;
2782
- var lp = { key: "Schemas/Number And Integer", title: "Number and Integer Schemas", description: "Number and Integer Schemas.", type: "form", actions: [], schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["some-number", "some-integer"], properties: { "some-number": { title: "Number (number schema)", type: "number", validationMessages: { type: "This is not an number" } }, "some-integer": { title: "Integer (integer schema, does not support decimals)", type: "integer", validationMessages: { type: "This is not an integer" } } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2783
- var Xl = lp;
2784
- var cp = [["EUR", "Euro"], ["GBP", "British pound"], ["INR", "Indian rupee"], ["USD", "United States dollar"], ["AED", "United Arab Emirates dirham"], ["ARS", "Argentine peso"], ["AUD", "Australian dollar"], ["BDT", "Bangladeshi taka"], ["BGN", "Bulgarian lev"], ["BRL", "Brazilian real"], ["BWP", "Botswana pula"], ["CAD", "Canadian dollar"], ["CHF", "Swiss franc"], ["CLP", "Chilean peso"], ["CNY", "Chinese yuan"], ["COP", "Colombian peso"], ["CRC", "Costa Rican col\xF3n"], ["CZK", "Czech koruna"], ["DKK", "Danish krone"], ["EGP", "Egyptian pound"], ["FJD", "Fijian dollar"], ["GEL", "Georgian lari"], ["GHS", "Ghanaian cedi"], ["GTQ", "Guatemalan quetzal"], ["HKD", "Hong Kong dollar"], ["HRK", "Croatian kuna"], ["HUF", "Hungarian forint"], ["IDR", "Indonesian rupiah"], ["ILS", "Israeli shekel"], ["JPY", "Japanese yen"], ["KES", "Kenyan shilling"], ["KRW", "South Korean won"], ["LKR", "Sri Lankan rupee"], ["MAD", "Moroccan dirham"], ["MXN", "Mexican peso"], ["MYR", "Malaysian ringgit"], ["MZN", "Mozambican metical"], ["NAD", "Namibian dollar"], ["NGN", "Nigerian naira"], ["NOK", "Norwegian krone"], ["NPR", "Nepalese rupee"], ["NZD", "New Zealand dollar"], ["PEN", "Peruvian nuevo sol"], ["PHP", "Philippine peso"], ["PKR", "Pakistani rupee"], ["PLN", "Polish z\u0142oty"], ["RON", "Romanian leu"], ["RUB", "Russian rouble"], ["SEK", "Swedish krona"], ["SGD", "Singapore dollar"], ["THB", "Thai baht"], ["TRY", "Turkish lira"], ["TZS", "Tanzanian shilling"], ["UAH", "Ukrainian hryvnia"], ["UGX", "Ugandan shilling"], ["UYU", "Uruguayan peso"], ["VND", "Vietnamese dong"], ["XOF", "West African CFA franc"], ["ZAR", "South African rand"], ["ZMW", "Zambian kwacha"]];
2785
- var mp = { key: "Schemas/OneOf", title: "OneOf Schemas", description: "OneOf Schema using select, radio buttons and tabs.", type: "form", analytics: { custom: "this is the oneOf fixture" }, actions: [], schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["account-type-radio", "colour-select", "currency", "bank-details-tabs"], required: ["bank-details-tabs"], properties: { "account-type-radio": { title: 'Personal or Business Account? (oneOf schema with two options default to control: "radio")', analyticsId: "account-type-radio", control: "radio", oneOf: [{ title: "Personal", analyticsId: "account-type-radio-personal", icon: { name: "person" }, const: "PERSONAL" }, { title: "Business", analyticsId: "account-type-radio-business", icon: { name: "briefcase" }, const: "BUSINESS" }] }, "colour-select": { title: 'What is your favourite colour? (oneOf schema with more than two options default to control: "select")', placeholder: "Please select a colour", analyticsId: "colour-select", oneOf: [{ title: "Blue", analyticsId: "colour-select-blue", image: { url: "https://placeholder.pics/svg/64/0099ff/FFFFFF" }, const: 1 }, { title: "Yellow", analyticsId: "colour-select-yellow", image: { url: "https://placeholder.pics/svg/64/ffcc00/FFFFFF" }, const: 2 }, { title: "Red", analyticsId: "colour-select-red", image: { url: "https://placeholder.pics/svg/64/ff6600/FFFFFF" }, const: 3 }] }, currency: { title: "Currency (oneof schema of const schemas with default value)", type: "string", analyticsId: "currency", oneOf: cp.map(([e, t]) => ({ title: e, analyticsId: e, icon: { name: `flag-${e.toLowerCase()}` }, description: t, const: e })), validationMessages: { required: "Please enter currency." }, default: "EUR" }, "bank-details-tabs": { title: 'Bank Details (oneOf schema of object schemas and control: "tab")', control: "tab", analyticsId: "bank-details-tabs", oneOf: [{ type: "object", title: "UK Sortcode and Account Number", analyticsId: "bank-details-tabs-uk", displayOrder: ["account-number", "sort-code"], required: ["account-number", "sort-code"], properties: { "account-number": { title: "Account Number", type: "string" }, "sort-code": { title: "Sort Code", type: "string" } } }, { type: "object", title: "IBAN and BIC", analyticsId: "bank-details-tabs-iban", displayOrder: ["iban", "bic"], required: ["iban", "bic"], properties: { iban: { title: "IBAN", type: "string" }, bic: { title: "BIC", type: "string" } } }, { type: "object", title: "US Routing Number and Account Number", analyticsId: "bank-details-tabs-us", displayOrder: ["account-number", "routing-number"], required: ["account-number", "routing-number"], properties: { "account-number": { title: "Account Number", type: "string" }, "routing-number": { title: "Routing Number", type: "string" } } }] } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2770
+ ot(xa, { allOf: () => oc, boolean: () => rc, numberAndInteger: () => Ql, oneOf: () => ec, simpleForm: () => Xl, stringFormats: () => tc });
2771
+ var cp = { id: "Schemas/Basic Form", title: "Simple Form", description: "A simple form with text fields and a checkbox.", schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["name", "pineapple"], properties: { name: { title: "Name (string schema)", type: "string" }, pineapple: { title: "Pineapple on pizza (boolean schema)", type: "boolean" } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2772
+ var Xl = cp;
2773
+ var mp = { id: "Schemas/Number And Integer", title: "Number and Integer Schemas", description: "Number and Integer Schemas.", schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["some-number", "some-integer"], properties: { "some-number": { title: "Number (number schema)", type: "number", validationMessages: { type: "This is not an number" } }, "some-integer": { title: "Integer (integer schema, does not support decimals)", type: "integer", validationMessages: { type: "This is not an integer" } } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2786
2774
  var Ql = mp;
2787
- var dp = { key: "Schemas/String Formats", title: "String Schema Formats", description: "String schemas with different formats (password, date, telephone).", type: "form", actions: [], schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["name", "password", "dob", "date-lookup", "telephone"], properties: { name: { title: "Name (string schema no format)", type: "string" }, password: { title: 'Password (string schema with format: "password")', type: "string", format: "password" }, dob: { title: 'Date of birth (string schema with format: "date")', type: "string", format: "date" }, "date-lookup": { title: 'Date Lookup (string schema with format: "date" and control: "date-lookup")', type: "string", format: "date", control: "date-lookup", minimum: "2023-01-01", maximum: "2023-12-31", placeholder: "Select a date" }, telephone: { title: 'Phone number (string schema with format: "phone-number")', type: "string", format: "phone-number" } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }], model: { "date-lookup": "2023-01-01" } };
2788
- var ec = dp;
2789
- var Rt = (e) => ({ type: "form", key: `Components/Image-${e}`, title: `Image Component - ${e}`, description: `This is an image with size: "${e}"`, actions: [], schemas: [], layout: [{ type: "image", url: "http://placekitten.com/g/400/400", text: `This is an image with size: "${e}"`, size: e }] });
2790
- var tc = { steps: h(i(i(i(i({}, ba), Sa), wa), xa), { "image-xs": Rt("xs"), "image-sm": Rt("sm"), "image-md": Rt("md"), "image-lg": Rt("lg"), "image-xl": Rt("xl") }), layouts: i({}, Fa), responses: Ca };
2791
- var rc = { "dynamicFlows.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.", "dynamicFlows.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Der von dir verwendete Browser unterst\xFCtzt keine Kameras. Bitte verwende einen anderen Browser oder ein anderes Ger\xE4t, oder lade unsere App herunter", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera wird nicht unterst\xFCtzt", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamerazugriff genehmigen", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Aktiviere den Kamerazugriff in den Einstellungen deines Browsers, um weitermachen zu k\xF6nnen.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Wir k\xF6nnen nicht auf deine Kamera zugreifen", "dynamicFlows.CameraCapture.reviewInstructions": "Ist das aufgenommene Bild deutlich erkennbar und vollst\xE4ndig?", "dynamicFlows.CameraCapture.reviewRetry": "Nein, erneut versuchen", "dynamicFlows.CameraCapture.reviewSubmit": "Ja, senden", "dynamicFlows.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.", "dynamicFlows.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.", "dynamicFlows.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.", "dynamicFlows.ControlFeedback.minLength": "Bitte gib mindestens {minLength} Zeichen ein.", "dynamicFlows.ControlFeedback.minimum": "Bitte gib eine Zahl ein, die {minimum} oder mehr betr\xE4gt.", "dynamicFlows.ControlFeedback.minimumDate": "Bitte gib ein Datum ein, das am oder nach dem {minimum} liegt.", "dynamicFlows.ControlFeedback.pattern": "Bitte gib die Angabe im richtigen Format ein.", "dynamicFlows.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.", "dynamicFlows.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.", "dynamicFlows.ControlFeedback.type": "Falscher Typ", "dynamicFlows.DynamicExternal.retryTitle": "Fenster erneut \xF6ffnen", "dynamicFlows.DynamicParagraph.copied": "In Zwischenablage kopiert", "dynamicFlows.DynamicParagraph.copy": "Kopieren", "dynamicFlows.ErrorBoundary.errorAlert": "Hoppla \u2013 da ist was schiefgelaufen...", "dynamicFlows.ErrorBoundary.retry": "Erneut versuchen", "dynamicFlows.ExternalConfirmation.cancel": "Abbrechen", "dynamicFlows.ExternalConfirmation.description": "Bitte best\xE4tige, dass du **{origin}** in einem neuen Browser-Tab \xF6ffnen m\xF6chtest.", "dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen", "dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen", "dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Bitte lade {maxItems} oder weniger Dateien hoch.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.", "dynamicFlows.PersistAsyncSchema.genericError": "Da ist etwas schiefgelaufen. Probiere es bitte sp\xE4ter noch einmal.", "dynamicFlows.ReadOnlySchema.no": "Nein", "dynamicFlows.ReadOnlySchema.yes": "Ja" };
2792
- var oc = { "dynamicFlows.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.", "dynamicFlows.ArraySchema.minItemsError": "Please add at least {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera not supported", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Enable camera access", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Enable camera access in your browser's settings to get going again.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "We can't access your camera", "dynamicFlows.CameraCapture.reviewInstructions": "Is your picture clear, readable and complete?", "dynamicFlows.CameraCapture.reviewRetry": "No, try again", "dynamicFlows.CameraCapture.reviewSubmit": "Yes, submit", "dynamicFlows.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.", "dynamicFlows.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.", "dynamicFlows.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Please enter at least {minLength} characters.", "dynamicFlows.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.", "dynamicFlows.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Please enter this in the correct format.", "dynamicFlows.ControlFeedback.patternDate": "Please enter a date in the corrrect format.", "dynamicFlows.ControlFeedback.required": "Please fill out this field.", "dynamicFlows.ControlFeedback.type": "Incorrect type", "dynamicFlows.DynamicExternal.retryTitle": "Reopen window", "dynamicFlows.DynamicParagraph.copied": "Copied to clipboard", "dynamicFlows.DynamicParagraph.copy": "Copy", "dynamicFlows.ErrorBoundary.errorAlert": "Oops. Something went wrong...", "dynamicFlows.ErrorBoundary.retry": "Retry", "dynamicFlows.ExternalConfirmation.cancel": "Cancel", "dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.", "dynamicFlows.ExternalConfirmation.open": "Open in new tab", "dynamicFlows.ExternalConfirmation.title": "Please confirm", "dynamicFlows.Help.ariaLabel": "Click here for more info.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Something went wrong, please try again later!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "Yes" };
2793
- var ac = { "dynamicFlows.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.", "dynamicFlows.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "El navegador que est\xE1s utilizando no es compatible con una c\xE1mara. Prueba con otro navegador, dispositivo o descarga nuestra app m\xF3vil.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE1mara no compatible", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Habilitar acceso a la c\xE1mara", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Habilita el acceso a la c\xE1mara en la configuraci\xF3n de tu navegador para volver a activarla.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "No podemos acceder a tu c\xE1mara", "dynamicFlows.CameraCapture.reviewInstructions": "\xBFTu foto es clara, legible y completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, intentar de nuevo", "dynamicFlows.CameraCapture.reviewSubmit": "S\xED, enviar", "dynamicFlows.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.", "dynamicFlows.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Introduce al menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Introduce una cifra igual o inferior a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Introduce una fecha que sea igual o posterior al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Utiliza el formato correcto.", "dynamicFlows.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.", "dynamicFlows.ControlFeedback.required": "Completa este campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorrecto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir ventana", "dynamicFlows.DynamicParagraph.copied": "Copiado al portapapeles", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Vaya. Algo ha salido mal...", "dynamicFlows.ErrorBoundary.retry": "Reintentar", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Confirma que quieres abrir **{origin}** en una nueva pesta\xF1a del navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir en nueva pesta\xF1a", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirma", "dynamicFlows.Help.ariaLabel": "Haz clic aqu\xED para obtener m\xE1s informaci\xF3n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Sube {maxItems} o menos archivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo ha ido mal. Int\xE9ntalo de nuevo m\xE1s tarde.", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xED" };
2794
- var nc = { "dynamicFlows.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.", "dynamicFlows.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Le navigateur que vous utilisez ne prend pas en charge l'appareil photo. Veuillez essayer un autre navigateur, un autre appareil ou t\xE9l\xE9charger notre appli.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Appareil photo non pris en charge", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Autoriser l'acc\xE8s \xE0 l'appareil photo", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Autorisez l'acc\xE8s \xE0 l'appareil photo depuis les param\xE8tres de votre navigateur.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nous n'avons pas acc\xE8s \xE0 votre appareil photo", "dynamicFlows.CameraCapture.reviewInstructions": "Votre image est-elle claire, lisible et dans son int\xE9gralit\xE9\xA0?", "dynamicFlows.CameraCapture.reviewRetry": "Non, r\xE9essayer", "dynamicFlows.CameraCapture.reviewSubmit": "Oui, confirmer", "dynamicFlows.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.", "dynamicFlows.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Veuillez saisir au moins {minLength} caract\xE8res.", "dynamicFlows.ControlFeedback.minimum": "Veuillez saisir un nombre sup\xE9rieur ou \xE9gal \xE0 {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Veuillez saisir une date \xE9gale ou post\xE9rieure au {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Veuillez saisir les informations dans le bon format.", "dynamicFlows.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.", "dynamicFlows.ControlFeedback.required": "Champ obligatoire.", "dynamicFlows.ControlFeedback.type": "Type incorrect", "dynamicFlows.DynamicExternal.retryTitle": "Rouvrir la fen\xEAtre", "dynamicFlows.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier", "dynamicFlows.DynamicParagraph.copy": "Copier", "dynamicFlows.ErrorBoundary.errorAlert": "Oups\xA0! Une erreur s'est produite...", "dynamicFlows.ErrorBoundary.retry": "R\xE9essayer", "dynamicFlows.ExternalConfirmation.cancel": "Annuler", "dynamicFlows.ExternalConfirmation.description": "Veuillez confirmer que vous souhaitez ouvrir **{origin}** dans un nouvel onglet.", "dynamicFlows.ExternalConfirmation.open": "Ouvrir dans un nouvel onglet", "dynamicFlows.ExternalConfirmation.title": "Veuillez confirmer", "dynamicFlows.Help.ariaLabel": "Cliquez ici pour plus d'informations.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Veuillez t\xE9l\xE9charger {maxItems} fichiers ou moins.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Un probl\xE8me est survenu, veuillez r\xE9essayer plus tard !", "dynamicFlows.ReadOnlySchema.no": "Non", "dynamicFlows.ReadOnlySchema.yes": "Oui" };
2795
- var ic = { "dynamicFlows.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.", "dynamicFlows.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Az \xE1ltalad haszn\xE1lt b\xF6ng\xE9sz\u0151 nem t\xE1mogatja a kamera haszn\xE1lat\xE1t. K\xE9r\xFCnk, pr\xF3b\xE1lkozz m\xE1s b\xF6ng\xE9sz\u0151vel, eszk\xF6zzel vagy t\xF6ltsd le az appot", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera nem t\xE1mogatott", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamer\xE1hoz val\xF3 hozz\xE1f\xE9r\xE9s enged\xE9lyez\xE9se", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz. Ezt a telefonod be\xE1ll\xEDt\xE1saiban enged\xE9lyezheted", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz", "dynamicFlows.CameraCapture.reviewInstructions": "Tiszta, olvashat\xF3, teljes k\xE9pet k\xE9sz\xEDtett\xE9l?", "dynamicFlows.CameraCapture.reviewRetry": "Nem, pr\xF3b\xE1ljuk \xFAjra", "dynamicFlows.CameraCapture.reviewSubmit": "Igen, elk\xFCld\xF6m", "dynamicFlows.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.", "dynamicFlows.ControlFeedback.minLength": "K\xE9r\xFCnk, legal\xE1bb {minLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.minimum": "K\xE9r\xFCnk add meg ezt vagy egy enn\xE9l nagyobb sz\xE1mot: {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {minimum} napj\xE1val, vagy egy enn\xE9l k\xE9s\u0151bbit.", "dynamicFlows.ControlFeedback.pattern": "Helytelen form\xE1tum", "dynamicFlows.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.", "dynamicFlows.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.", "dynamicFlows.ControlFeedback.type": "Helytelen t\xEDpus", "dynamicFlows.DynamicExternal.retryTitle": "Ablak \xFAjranyit\xE1sa", "dynamicFlows.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva", "dynamicFlows.DynamicParagraph.copy": "M\xE1sol\xE1s", "dynamicFlows.ErrorBoundary.errorAlert": "Hopp\xE1! Valami hiba t\xF6rt\xE9nt...", "dynamicFlows.ErrorBoundary.retry": "\xDAjra", "dynamicFlows.ExternalConfirmation.cancel": "M\xE9gsem", "dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.", "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon", "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s", "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra k\xE9s\u0151bb!", "dynamicFlows.ReadOnlySchema.no": "Nem", "dynamicFlows.ReadOnlySchema.yes": "Igen" };
2796
- var sc = { "dynamicFlows.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.", "dynamicFlows.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browser yang Anda gunakan tidak mendukung kamera. Silakan coba browser, perangkat yang lain, atau unduh aplikasi seluler kami.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera tidak didukung", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Izinkan akses kamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Untuk melanjutkan lagi, aktifkan akses kamera di pengaturan browser Anda.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kami tidak dapat mengakses kamera Anda", "dynamicFlows.CameraCapture.reviewInstructions": "Apakah gambar Anda jelas, dapat dibaca, dan lengkap?", "dynamicFlows.CameraCapture.reviewRetry": "Tidak, coba lagi", "dynamicFlows.CameraCapture.reviewSubmit": "Ya, kirim", "dynamicFlows.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.", "dynamicFlows.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.", "dynamicFlows.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Harap masukkan setidaknya {minLength} karakter.", "dynamicFlows.ControlFeedback.minimum": "Harap masukkan angka paling kecil {minimum} atau lebih dari itu.", "dynamicFlows.ControlFeedback.minimumDate": "Harap masukkan tanggal pada atau setelah {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Mohon masukkan ini dalam format yang benar.", "dynamicFlows.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.", "dynamicFlows.ControlFeedback.required": "Harap isi kolom ini.", "dynamicFlows.ControlFeedback.type": "Tipe salah", "dynamicFlows.DynamicExternal.retryTitle": "Buka window kembali", "dynamicFlows.DynamicParagraph.copied": "Disalin ke clipboard", "dynamicFlows.DynamicParagraph.copy": "Salin", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Terjadi kesalahan...", "dynamicFlows.ErrorBoundary.retry": "Coba lagi", "dynamicFlows.ExternalConfirmation.cancel": "Batalkan", "dynamicFlows.ExternalConfirmation.description": "Harap konfirmasikan bahwa Anda ingin membuka **{origin}** di tab browser baru.", "dynamicFlows.ExternalConfirmation.open": "Buka di tab baru", "dynamicFlows.ExternalConfirmation.title": "Harap konfirmasi", "dynamicFlows.Help.ariaLabel": "Klik di sini untuk info selengkapnya.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Harap unggah {maxItems} file atau kurang.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi nanti!", "dynamicFlows.ReadOnlySchema.no": "Tidak", "dynamicFlows.ReadOnlySchema.yes": "Ya" };
2797
- var lc = { "dynamicFlows.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Il browser che stai usando non supporta la videocamera. Prova con un altro browser o dispositivo, oppure scarica la nostra app", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Videocamera non supportata", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Consenti l'accesso alla fotocamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Non abbiamo accesso alla tua fotocamera. Puoi abilitare l'accesso nelle impostazioni del tuo browser", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Accesso alla fotocamera disabilitato", "dynamicFlows.CameraCapture.reviewInstructions": "La tua foto \xE8 chiara, ben leggibile e completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, riprova", "dynamicFlows.CameraCapture.reviewSubmit": "S\xEC, invia", "dynamicFlows.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.", "dynamicFlows.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Inserisci almeno {minLength} caratteri.", "dynamicFlows.ControlFeedback.minimum": "Inserisci un numero uguale o superiore a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Inserisci una data corrispondente o successiva al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Inseriscilo in un formato corretto.", "dynamicFlows.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.", "dynamicFlows.ControlFeedback.required": "Compila questo campo.", "dynamicFlows.ControlFeedback.type": "Tipo errato", "dynamicFlows.DynamicExternal.retryTitle": "Riapri la finestra", "dynamicFlows.DynamicParagraph.copied": "Copiato negli appunti", "dynamicFlows.DynamicParagraph.copy": "Copia", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Qualcosa \xE8 andato storto...", "dynamicFlows.ErrorBoundary.retry": "Riprova", "dynamicFlows.ExternalConfirmation.cancel": "Annulla", "dynamicFlows.ExternalConfirmation.description": "Conferma di voler aprire **{origin}** in una nuova scheda del browser.", "dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda", "dynamicFlows.ExternalConfirmation.title": "Conferma", "dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Carica al massimo {maxItems} file.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova pi\xF9 tardi!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xEC" };
2798
- var cc = { "dynamicFlows.ArraySchema.maxItemsError": "{maxItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0B\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u304A\u5BA2\u69D8\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u5225\u306E\u30D6\u30E9\u30A6\u30B6\u307E\u305F\u306F\u30C7\u30D0\u30A4\u30B9\u3092\u4F7F\u7528\u3059\u308B\u304B\u3001\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u8A31\u53EF\u3059\u308B", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u30D6\u30E9\u30A6\u30B6\u306E\u8A2D\u5B9A\u3067\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u6709\u52B9\u306B\u3057\u3066\u3001\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.reviewInstructions": "\u5199\u771F\u304C\u9BAE\u660E\u3067\u3001\u3059\u3079\u3066\u306E\u60C5\u5831\u304C\u8AAD\u307F\u53D6\u308C\u6B20\u3051\u3066\u3044\u308B\u90E8\u5206\u306A\u3069\u306F\u3042\u308A\u307E\u305B\u3093\u304B\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u3044\u3044\u3048\u3001\u64AE\u308A\u76F4\u3059", "dynamicFlows.CameraCapture.reviewSubmit": "\u306F\u3044\u3001\u9001\u4FE1\u3059\u308B", "dynamicFlows.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximumDate": "{maximum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u524D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minLength": "{minLength}\u6587\u5B57\u4EE5\u4E0A\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimum": "{minimum}\u4EE5\u4E0A\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimumDate": "{minimum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u964D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.pattern": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002", "dynamicFlows.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7", "dynamicFlows.DynamicExternal.retryTitle": "\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u3082\u3046\u4E00\u5EA6\u958B\u304F", "dynamicFlows.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F", "dynamicFlows.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B", "dynamicFlows.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F...", "dynamicFlows.ErrorBoundary.retry": "\u3084\u308A\u76F4\u3059", "dynamicFlows.ExternalConfirmation.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB\u3059\u308B", "dynamicFlows.ExternalConfirmation.description": "\u65B0\u3057\u3044\u30D6\u30E9\u30A6\u30B6\u30BF\u30D6\u3067**{origin}**\u3092\u958B\u304F\u3053\u3068\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ExternalConfirmation.open": "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F", "dynamicFlows.ExternalConfirmation.title": "\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044", "dynamicFlows.Help.ariaLabel": "\u8A73\u7D30\u306F\u3053\u3061\u3089\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "{maxItems}\u500B\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "{minItems}\u500B\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ReadOnlySchema.no": "\u3044\u3044\u3048", "dynamicFlows.ReadOnlySchema.yes": "\u306F\u3044" };
2799
- var mc = { "dynamicFlows.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Przegl\u0105darka, kt\xF3rej u\u017Cywasz, nie obs\u0142uguje aparatu. Wypr\xF3buj inn\u0105 przegl\u0105dark\u0119 lub urz\u0105dzenie albo pobierz nasz\u0105 aplikacj\u0119 mobiln\u0105.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Aparat nie jest obs\u0142ugiwany", "dynamicFlows.CameraCapture.NoCameraAccess.action": "W\u0142\u0105cz dost\u0119p do aparatu", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "W\u0142\u0105cz dost\u0119p do aparatu w ustawieniach przegl\u0105darki, \u017Ceby rozpocz\u0105\u0107 ponownie.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nie mo\u017Cemy uzyska\u0107 dost\u0119pu do Twojego aparatu", "dynamicFlows.CameraCapture.reviewInstructions": "Czy Twoje zdj\u0119cie jest wyra\u017Ane, czytelne i kompletne?", "dynamicFlows.CameraCapture.reviewRetry": "Nie, spr\xF3buj ponownie", "dynamicFlows.CameraCapture.reviewSubmit": "Tak, prze\u015Blij", "dynamicFlows.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.", "dynamicFlows.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Prosz\u0119 wpisa\u0107 co najmniej {minLength} znak\xF3w.", "dynamicFlows.ControlFeedback.minimum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub wi\u0119ksz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Wprowad\u017A dat\u0119 nie wcze\u015Bniejsz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Wprowad\u017A t\u0119 warto\u015B\u0107 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.", "dynamicFlows.ControlFeedback.type": "Nieprawid\u0142owy typ", "dynamicFlows.DynamicExternal.retryTitle": "Otw\xF3rz okno ponownie", "dynamicFlows.DynamicParagraph.copied": "Skopiowano do schowka", "dynamicFlows.DynamicParagraph.copy": "Kopiuj", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Wyst\u0105pi\u0142 b\u0142\u0105d...", "dynamicFlows.ErrorBoundary.retry": "Spr\xF3buj ponownie", "dynamicFlows.ExternalConfirmation.cancel": "Anuluj", "dynamicFlows.ExternalConfirmation.description": "Prosimy potwierdzi\u0107, \u017Ce chcesz otworzy\u0107 **{origin}** w nowej zak\u0142adce przegl\u0105darki.", "dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce", "dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A", "dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Prze\u015Blij do {maxItems} plik\xF3w.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.", "dynamicFlows.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, spr\xF3buj ponownie p\xF3\u017Aniej!", "dynamicFlows.ReadOnlySchema.no": "Nie", "dynamicFlows.ReadOnlySchema.yes": "Tak" };
2800
- var dc = { "dynamicFlows.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.", "dynamicFlows.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "O navegador que voc\xEA est\xE1 usando n\xE3o permite o uso da c\xE2mera. Por favor, tente com outro navegador ou computador, ou baixe o nosso aplicativo", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE2mera indispon\xEDvel", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permitir acesso \xE0 c\xE2mera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Ative o acesso \xE0 c\xE2mera nas configura\xE7\xF5es do navegador para continuar.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "N\xE3o temos acesso \xE0 sua c\xE2mera", "dynamicFlows.CameraCapture.reviewInstructions": "A sua foto est\xE1 clara, leg\xEDvel e aparece por inteiro?", "dynamicFlows.CameraCapture.reviewRetry": "N\xE3o, tentar novamente", "dynamicFlows.CameraCapture.reviewSubmit": "Sim, enviar", "dynamicFlows.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.", "dynamicFlows.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.", "dynamicFlows.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Por favor, insira pelo menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Por favor, insira um n\xFAmero que seja {minimum} ou mais.", "dynamicFlows.ControlFeedback.minimumDate": "Por favor, insira uma data que seja em ou ap\xF3s {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Por favor, insira essa informa\xE7\xE3o no formato correto.", "dynamicFlows.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.", "dynamicFlows.ControlFeedback.required": "Por favor, preencha o campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorreto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir janela", "dynamicFlows.DynamicParagraph.copied": "Copiado", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Algo deu errado...", "dynamicFlows.ErrorBoundary.retry": "Tentar novamente", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Por favor, confirme que deseja abrir * *{origin}* * em uma nova aba do navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirme", "dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Por favor, envie {maxItems} ou menos arquivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo deu errado. Por favor, tente novamente mais tarde!", "dynamicFlows.ReadOnlySchema.no": "N\xE3o", "dynamicFlows.ReadOnlySchema.yes": "Sim" };
2801
- var uc = { "dynamicFlows.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.", "dynamicFlows.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browserul pe care \xEEl folose\u0219ti nu poate folosi o camer\u0103 foto. Te rug\u0103m s\u0103 \xEEncerci alt browser, alt dispozitiv sau s\u0103 descarci aplica\u021Bia noastr\u0103.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera nu este acceptat\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permite acces la camer\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Permite accesul la camera foto \xEEn set\u0103rile browserului t\u0103u, pentru a re\xEEncepe.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nu \xEE\u021Bi putem accesa camera", "dynamicFlows.CameraCapture.reviewInstructions": "Imaginea ta este clar\u0103, lizibil\u0103 \u0219i complet\u0103?", "dynamicFlows.CameraCapture.reviewRetry": "Nu, \xEEncearc\u0103 din nou", "dynamicFlows.CameraCapture.reviewSubmit": "Da, trimite", "dynamicFlows.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.", "dynamicFlows.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.", "dynamicFlows.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Te rug\u0103m s\u0103 introduci cel pu\u021Bin {minLength} caractere.", "dynamicFlows.ControlFeedback.minimum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {minimum} sau mai mare.", "dynamicFlows.ControlFeedback.minimumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de dup\u0103 sau egal\u0103 cu {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Te rug\u0103m s\u0103 introduci acest lucru \xEEn formatul corect.", "dynamicFlows.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.", "dynamicFlows.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.", "dynamicFlows.ControlFeedback.type": "Tip incorect", "dynamicFlows.DynamicExternal.retryTitle": "Redeschide fereastra", "dynamicFlows.DynamicParagraph.copied": "Copiat \xEEn clipboard", "dynamicFlows.DynamicParagraph.copy": "Copiaz\u0103", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Ceva nu a mers bine...", "dynamicFlows.ErrorBoundary.retry": "\xCEncearc\u0103 din nou", "dynamicFlows.ExternalConfirmation.cancel": "Anuleaz\u0103", "dynamicFlows.ExternalConfirmation.description": "Te rug\u0103m s\u0103 confirmi c\u0103 vrei s\u0103 deschizi **{origin}** \xEEntr-o nou\u0103 fil\u0103 a browserului.", "dynamicFlows.ExternalConfirmation.open": "Deschide \xEEntr-o fil\u0103 nou\u0103", "dynamicFlows.ExternalConfirmation.title": "Te rug\u0103m s\u0103 confirmi", "dynamicFlows.Help.ariaLabel": "D\u0103 click aici pentru mai multe informa\u021Bii.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Te rug\u0103m s\u0103 \xEEncarci {maxItems} fi\u0219iere sau mai pu\u021Bine.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).", "dynamicFlows.PersistAsyncSchema.genericError": "Ceva nu a mers bine. Te rug\u0103m s\u0103 \xEEncerci din nou mai t\xE2rziu!", "dynamicFlows.ReadOnlySchema.no": "Nu", "dynamicFlows.ReadOnlySchema.yes": "Da" };
2802
- var pc = { "dynamicFlows.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u044B\u0439 \u0432\u0430\u043C\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043A\u0430\u043C\u0435\u0440\u0443. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043B\u0438 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0438\u043B\u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043D\u0430\u0448\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435 \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u041C\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0432\u0430\u0448\u0435\u0439 \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.reviewInstructions": "\u0412\u0430\u0448\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F \u0447\u0435\u0442\u043A\u0430\u044F, \u043B\u0435\u0433\u043A\u043E \u0447\u0438\u0442\u0430\u0435\u043C\u0430\u044F \u0438 \u043D\u0435 \u043E\u0431\u0440\u0435\u0437\u0430\u043D\u0430?", "dynamicFlows.CameraCapture.reviewRetry": "\u041D\u0435\u0442, \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0435 \u0440\u0430\u0437", "dynamicFlows.CameraCapture.reviewSubmit": "\u0414\u0430, \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C", "dynamicFlows.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {maximum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.minLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minLength} \u0441\u0438\u043C\u0432\u043E\u043B\u0430(-\u043E\u0432).", "dynamicFlows.ControlFeedback.minimum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.minimumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u043F\u043E\u0437\u0434\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.pattern": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u044D\u0442\u043E \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.patternDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443 \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.", "dynamicFlows.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F", "dynamicFlows.DynamicExternal.retryTitle": "\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E", "dynamicFlows.DynamicParagraph.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430", "dynamicFlows.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C", "dynamicFlows.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A...", "dynamicFlows.ErrorBoundary.retry": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443", "dynamicFlows.ExternalConfirmation.cancel": "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C", "dynamicFlows.ExternalConfirmation.description": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C **{origin}** \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", "dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435", "dynamicFlows.ExternalConfirmation.title": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435", "dynamicFlows.Help.ariaLabel": "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 {maxItems} \u0444\u0430\u0439\u043B\u043E\u0432.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems} \u0444\u0430\u0439\u043B(-\u0430/\u043E\u0432).", "dynamicFlows.PersistAsyncSchema.genericError": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435!", "dynamicFlows.ReadOnlySchema.no": "\u041D\u0435\u0442", "dynamicFlows.ReadOnlySchema.yes": "\u0414\u0430" };
2803
- var fc = { "dynamicFlows.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n", "dynamicFlows.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Kulland\u0131\u011F\u0131n\u0131z taray\u0131c\u0131da kamera deste\u011Fi yok. Farkl\u0131 bir taray\u0131c\u0131 / cihaz deneyin veya mobil uygulamam\u0131z\u0131 indirin.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera desteklenmiyor", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamera eri\u015Fimi verin", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Tekrar ba\u015Flamak i\xE7in taray\u0131c\u0131n\u0131z\u0131n ayarlar\u0131nda kamera eri\u015Fimini etkinle\u015Ftirin.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kameran\u0131za eri\u015Femiyoruz", "dynamicFlows.CameraCapture.reviewInstructions": "Foto\u011Fraf\u0131n\u0131z net, okunakl\u0131 ve eksiksiz mi?", "dynamicFlows.CameraCapture.reviewRetry": "Hay\u0131r, tekrar dene", "dynamicFlows.CameraCapture.reviewSubmit": "Evet, g\xF6nder", "dynamicFlows.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.", "dynamicFlows.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.", "dynamicFlows.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.", "dynamicFlows.ControlFeedback.minLength": "En az {minLength} karakter girebilirsiniz.", "dynamicFlows.ControlFeedback.minimum": "L\xFCtfen {minimum} veya daha y\xFCksek bir say\u0131 girin.", "dynamicFlows.ControlFeedback.minimumDate": "L\xFCtfen {minimum} veya daha ge\xE7 bir tarih girin.", "dynamicFlows.ControlFeedback.pattern": "Yanl\u0131\u015F bi\xE7im", "dynamicFlows.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.", "dynamicFlows.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.", "dynamicFlows.ControlFeedback.type": "Ge\xE7ersiz se\xE7im", "dynamicFlows.DynamicExternal.retryTitle": "Pencereyi yeniden a\xE7", "dynamicFlows.DynamicParagraph.copied": "Panoya kopyaland\u0131", "dynamicFlows.DynamicParagraph.copy": "Kopyala", "dynamicFlows.ErrorBoundary.errorAlert": "Aman\u0131n! Bir \u015Feyler ters gitti...", "dynamicFlows.ErrorBoundary.retry": "Tekrar dene", "dynamicFlows.ExternalConfirmation.cancel": "\u0130ptal edin", "dynamicFlows.ExternalConfirmation.description": "L\xFCtfen yeni bir taray\u0131c\u0131 sekmesinde **{origin}** a\xE7mak istedi\u011Finizi onaylay\u0131n.", "dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7", "dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n", "dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.", "dynamicFlows.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin", "dynamicFlows.ReadOnlySchema.no": "Hay\u0131r", "dynamicFlows.ReadOnlySchema.yes": "Evet" };
2804
- var yc = { "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u4F60\u76EE\u524D\u4F7F\u7528\u7684\u700F\u89BD\u5668\u4E0D\u652F\u6301\u76F8\u6A5F\u3002\u8ACB\u5617\u8A66\u4F7F\u7528\u5176\u4ED6\u700F\u89BD\u5668\u6216\u5176\u4ED6\u88DD\u7F6E\uFF0C\u6216\u8005\u4F60\u53EF\u4EE5\u4E0B\u8F09\u6211\u5011\u7684\u61C9\u7528\u7A0B\u5F0F\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u5141\u8A31\u53D6\u7528\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u4F60\u53EF\u4EE5\u5728\u700F\u89BD\u5668\u7684\u8A2D\u5B9A\u4E2D\u958B\u555F\u76F8\u6A5F\u5B58\u53D6\u6B0A\u9650\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u6211\u5011\u7121\u6CD5\u53D6\u7528\u4F60\u7684\u76F8\u6A5F", "dynamicFlows.CameraCapture.reviewInstructions": "\u4F60\u7684\u7167\u7247\u662F\u5426\u5B8C\u6574\u3001\u6E05\u6670\u53CA\u53EF\u8B80\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.maximumDate": "\u8ACB\u8F38\u5165{maximum}\u6216\u4E4B\u524D\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.minLength": "\u8ACB\u8F38\u5165\u81F3\u5C11{minLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.minimum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5927\u65BC\u6216\u7B49\u65BC{minimum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.minimumDate": "\u8ACB\u8F38\u5165{minimum}\u6216\u4E4B\u5F8C\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.pattern": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u5185\u5BB9\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002", "dynamicFlows.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B", "dynamicFlows.DynamicExternal.retryTitle": "\u91CD\u65B0\u6253\u958B\u8996\u7A97", "dynamicFlows.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F", "dynamicFlows.DynamicParagraph.copy": "\u8907\u88FD", "dynamicFlows.ErrorBoundary.errorAlert": "\u5662\uFF01\u51FA\u4E86\u4E9B\u554F\u984C...", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8A66", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "dynamicFlows.ExternalConfirmation.description": "\u8ACB\u78BA\u8A8D\u4F60\u662F\u5426\u8981\u5728\u700F\u89BD\u5668\u7684\u65B0\u5206\u9801\u6253\u958B**{origin}**\u3002", "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u5206\u9801\u4E2D\u958B\u555F", "dynamicFlows.ExternalConfirmation.title": "\u8ACB\u78BA\u8A8D", "dynamicFlows.Help.ariaLabel": "\u6309\u6B64\u67E5\u770B\u8A73\u60C5\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u8ACB\u4E0D\u8981\u4E0A\u8F09\u8D85\u904E{maxItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u4E86\u4E9B\u554F\u984C\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
2805
- var vp = { en: oc, de: rc, es: ac, fr: nc, hu: ic, id: sc, it: lc, ja: cc, pl: mc, pt: dc, ro: uc, ru: pc, tr: fc, zh: yc };
2806
- var hc = vp;
2775
+ var dp = [["EUR", "Euro"], ["GBP", "British pound"], ["INR", "Indian rupee"], ["USD", "United States dollar"], ["AED", "United Arab Emirates dirham"], ["ARS", "Argentine peso"], ["AUD", "Australian dollar"], ["BDT", "Bangladeshi taka"], ["BGN", "Bulgarian lev"], ["BRL", "Brazilian real"], ["BWP", "Botswana pula"], ["CAD", "Canadian dollar"], ["CHF", "Swiss franc"], ["CLP", "Chilean peso"], ["CNY", "Chinese yuan"], ["COP", "Colombian peso"], ["CRC", "Costa Rican col\xF3n"], ["CZK", "Czech koruna"], ["DKK", "Danish krone"], ["EGP", "Egyptian pound"], ["FJD", "Fijian dollar"], ["GEL", "Georgian lari"], ["GHS", "Ghanaian cedi"], ["GTQ", "Guatemalan quetzal"], ["HKD", "Hong Kong dollar"], ["HRK", "Croatian kuna"], ["HUF", "Hungarian forint"], ["IDR", "Indonesian rupiah"], ["ILS", "Israeli shekel"], ["JPY", "Japanese yen"], ["KES", "Kenyan shilling"], ["KRW", "South Korean won"], ["LKR", "Sri Lankan rupee"], ["MAD", "Moroccan dirham"], ["MXN", "Mexican peso"], ["MYR", "Malaysian ringgit"], ["MZN", "Mozambican metical"], ["NAD", "Namibian dollar"], ["NGN", "Nigerian naira"], ["NOK", "Norwegian krone"], ["NPR", "Nepalese rupee"], ["NZD", "New Zealand dollar"], ["PEN", "Peruvian nuevo sol"], ["PHP", "Philippine peso"], ["PKR", "Pakistani rupee"], ["PLN", "Polish z\u0142oty"], ["RON", "Romanian leu"], ["RUB", "Russian rouble"], ["SEK", "Swedish krona"], ["SGD", "Singapore dollar"], ["THB", "Thai baht"], ["TRY", "Turkish lira"], ["TZS", "Tanzanian shilling"], ["UAH", "Ukrainian hryvnia"], ["UGX", "Ugandan shilling"], ["UYU", "Uruguayan peso"], ["VND", "Vietnamese dong"], ["XOF", "West African CFA franc"], ["ZAR", "South African rand"], ["ZMW", "Zambian kwacha"]];
2776
+ var up = { id: "Schemas/OneOf", title: "OneOf Schemas", description: "OneOf Schema using select, radio buttons and tabs.", analytics: { custom: "this is the oneOf fixture" }, schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["account-type-radio", "colour-select", "currency", "bank-details-tabs"], required: ["bank-details-tabs"], properties: { "account-type-radio": { title: 'Personal or Business Account? (oneOf schema with two options default to control: "radio")', analyticsId: "account-type-radio", control: "radio", oneOf: [{ title: "Personal", analyticsId: "account-type-radio-personal", icon: { name: "person" }, const: "PERSONAL" }, { title: "Business", analyticsId: "account-type-radio-business", icon: { name: "briefcase" }, const: "BUSINESS" }] }, "colour-select": { title: 'What is your favourite colour? (oneOf schema with more than two options default to control: "select")', placeholder: "Please select a colour", analyticsId: "colour-select", oneOf: [{ title: "Blue", analyticsId: "colour-select-blue", image: { url: "https://placeholder.pics/svg/64/0099ff/FFFFFF" }, const: 1 }, { title: "Yellow", analyticsId: "colour-select-yellow", image: { url: "https://placeholder.pics/svg/64/ffcc00/FFFFFF" }, const: 2 }, { title: "Red", analyticsId: "colour-select-red", image: { url: "https://placeholder.pics/svg/64/ff6600/FFFFFF" }, const: 3 }] }, currency: { title: "Currency (oneof schema of const schemas with default value)", type: "string", analyticsId: "currency", oneOf: dp.map(([e, t]) => ({ title: e, analyticsId: e, icon: { name: `flag-${e.toLowerCase()}` }, description: t, const: e })), validationMessages: { required: "Please enter currency." }, default: "EUR" }, "bank-details-tabs": { title: 'Bank Details (oneOf schema of object schemas and control: "tab")', control: "tab", analyticsId: "bank-details-tabs", oneOf: [{ type: "object", title: "UK Sortcode and Account Number", analyticsId: "bank-details-tabs-uk", displayOrder: ["account-number", "sort-code"], required: ["account-number", "sort-code"], properties: { "account-number": { title: "Account Number", type: "string" }, "sort-code": { title: "Sort Code", type: "string" } } }, { type: "object", title: "IBAN and BIC", analyticsId: "bank-details-tabs-iban", displayOrder: ["iban", "bic"], required: ["iban", "bic"], properties: { iban: { title: "IBAN", type: "string" }, bic: { title: "BIC", type: "string" } } }, { type: "object", title: "US Routing Number and Account Number", analyticsId: "bank-details-tabs-us", displayOrder: ["account-number", "routing-number"], required: ["account-number", "routing-number"], properties: { "account-number": { title: "Account Number", type: "string" }, "routing-number": { title: "Routing Number", type: "string" } } }] } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2777
+ var ec = up;
2778
+ var pp = { id: "Schemas/String Formats", title: "String Schema Formats", description: "String schemas with different formats (password, date, telephone).", schemas: [{ $id: "#the-schema", type: "object", displayOrder: ["name", "password", "dob", "date-lookup", "telephone"], properties: { name: { title: "Name (string schema no format)", type: "string" }, password: { title: 'Password (string schema with format: "password")', type: "string", format: "password" }, dob: { title: 'Date of birth (string schema with format: "date")', type: "string", format: "date" }, "date-lookup": { title: 'Date Lookup (string schema with format: "date" and control: "date-lookup")', type: "string", format: "date", control: "date-lookup", minimum: "2023-01-01", maximum: "2023-12-31", placeholder: "Select a date" }, telephone: { title: 'Phone number (string schema with format: "phone-number")', type: "string", format: "phone-number" } } }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }], model: { "date-lookup": "2023-01-01" } };
2779
+ var tc = pp;
2780
+ var fp = { key: "Schemas/Boolean Schema", title: "Boolean Schema", description: "A simple form with a boolean schema with no default value.", actions: [], schemas: [{ $id: "#schema-1", type: "object", displayOrder: ["pineapple"], required: ["pineapple"], properties: { pineapple: { title: "Pineapple on pizza (boolean schema)", type: "boolean" } } }], layout: [{ type: "form", schema: { $ref: "#schema-1" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2781
+ var rc = fp;
2782
+ var yp = { key: "Schemas/AllOf", title: "AllOf Schemas", description: "Three object schemas wrapped in an allOf.", analytics: { custom: "this is the allOf fixture" }, actions: [], schemas: [{ $id: "#the-schema", allOf: [{ $id: "#schema-1", type: "object", properties: { name: { title: "Name", type: "string" } }, displayOrder: ["name"] }, { $id: "#schema-2", type: "object", properties: { city: { title: "City", type: "string" } }, displayOrder: ["city"] }, { $id: "#schema-3", type: "object", properties: { color: { title: 'What is your favourite colour? (oneOf schema with more than two options default to control: "select")', placeholder: "Please select a colour", analyticsId: "colour-select", oneOf: [{ title: "Blue", analyticsId: "colour-select-blue", image: { url: "https://placeholder.pics/svg/64/0099ff/FFFFFF" }, const: 1 }, { title: "Yellow", analyticsId: "colour-select-yellow", image: { url: "https://placeholder.pics/svg/64/ffcc00/FFFFFF" }, const: 2 }, { title: "Red", analyticsId: "colour-select-red", image: { url: "https://placeholder.pics/svg/64/ff6600/FFFFFF" }, const: 3 }] } }, displayOrder: ["color"] }] }], layout: [{ type: "form", schema: { $ref: "#the-schema" } }, { type: "button", action: { url: "/submit", title: "Submit", type: "primary" } }] };
2783
+ var oc = yp;
2784
+ var Nt = (e) => ({ type: "form", id: `Components/Image-${e}`, title: `Image Component - ${e}`, description: `This is an image with size: "${e}"`, schemas: [], layout: [{ type: "image", url: "https://images.unsplash.com/photo-1542736705-53f0131d1e98?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=400&q=80", text: `This is an image with size: "${e}"`, size: e }] });
2785
+ var ac = { steps: h(i(i(i(i({}, ba), Sa), wa), xa), { "image-xs": Nt("xs"), "image-sm": Nt("sm"), "image-md": Nt("md"), "image-lg": Nt("lg"), "image-xl": Nt("xl") }), layouts: i({}, Fa), responses: Ca };
2786
+ var nc = { "dynamicFlows.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.", "dynamicFlows.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Der von dir verwendete Browser unterst\xFCtzt keine Kameras. Bitte verwende einen anderen Browser oder ein anderes Ger\xE4t, oder lade unsere App herunter", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera wird nicht unterst\xFCtzt", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamerazugriff genehmigen", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Aktiviere den Kamerazugriff in den Einstellungen deines Browsers, um weitermachen zu k\xF6nnen.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Wir k\xF6nnen nicht auf deine Kamera zugreifen", "dynamicFlows.CameraCapture.reviewInstructions": "Ist das aufgenommene Bild deutlich erkennbar und vollst\xE4ndig?", "dynamicFlows.CameraCapture.reviewRetry": "Nein, erneut versuchen", "dynamicFlows.CameraCapture.reviewSubmit": "Ja, senden", "dynamicFlows.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.", "dynamicFlows.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.", "dynamicFlows.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.", "dynamicFlows.ControlFeedback.minLength": "Bitte gib mindestens {minLength} Zeichen ein.", "dynamicFlows.ControlFeedback.minimum": "Bitte gib eine Zahl ein, die {minimum} oder mehr betr\xE4gt.", "dynamicFlows.ControlFeedback.minimumDate": "Bitte gib ein Datum ein, das am oder nach dem {minimum} liegt.", "dynamicFlows.ControlFeedback.pattern": "Bitte gib die Angabe im richtigen Format ein.", "dynamicFlows.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.", "dynamicFlows.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.", "dynamicFlows.ControlFeedback.type": "Falscher Typ", "dynamicFlows.DynamicExternal.retryTitle": "Fenster erneut \xF6ffnen", "dynamicFlows.DynamicParagraph.copied": "In Zwischenablage kopiert", "dynamicFlows.DynamicParagraph.copy": "Kopieren", "dynamicFlows.ErrorBoundary.errorAlert": "Hoppla \u2013 da ist was schiefgelaufen...", "dynamicFlows.ErrorBoundary.retry": "Erneut versuchen", "dynamicFlows.ExternalConfirmation.cancel": "Abbrechen", "dynamicFlows.ExternalConfirmation.description": "Bitte best\xE4tige, dass du **{origin}** in einem neuen Browser-Tab \xF6ffnen m\xF6chtest.", "dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen", "dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen", "dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Bitte lade {maxItems} oder weniger Dateien hoch.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Bitte lade mindestens {minItems} Datei(en) hoch.", "dynamicFlows.PersistAsyncSchema.genericError": "Da ist etwas schiefgelaufen. Probiere es bitte sp\xE4ter noch einmal.", "dynamicFlows.ReadOnlySchema.no": "Nein", "dynamicFlows.ReadOnlySchema.yes": "Ja" };
2787
+ var ic = { "dynamicFlows.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.", "dynamicFlows.ArraySchema.minItemsError": "Please add at least {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera not supported", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Enable camera access", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Enable camera access in your browser's settings to get going again.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "We can't access your camera", "dynamicFlows.CameraCapture.reviewInstructions": "Is your picture clear, readable and complete?", "dynamicFlows.CameraCapture.reviewRetry": "No, try again", "dynamicFlows.CameraCapture.reviewSubmit": "Yes, submit", "dynamicFlows.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.", "dynamicFlows.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.", "dynamicFlows.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Please enter at least {minLength} characters.", "dynamicFlows.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.", "dynamicFlows.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Please enter this in the correct format.", "dynamicFlows.ControlFeedback.patternDate": "Please enter a date in the corrrect format.", "dynamicFlows.ControlFeedback.required": "Please fill out this field.", "dynamicFlows.ControlFeedback.type": "Incorrect type", "dynamicFlows.DynamicExternal.retryTitle": "Reopen window", "dynamicFlows.DynamicParagraph.copied": "Copied to clipboard", "dynamicFlows.DynamicParagraph.copy": "Copy", "dynamicFlows.ErrorBoundary.errorAlert": "Oops. Something went wrong...", "dynamicFlows.ErrorBoundary.retry": "Retry", "dynamicFlows.ExternalConfirmation.cancel": "Cancel", "dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.", "dynamicFlows.ExternalConfirmation.open": "Open in new tab", "dynamicFlows.ExternalConfirmation.title": "Please confirm", "dynamicFlows.Help.ariaLabel": "Click here for more info.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Something went wrong, please try again later!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "Yes" };
2788
+ var sc = { "dynamicFlows.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.", "dynamicFlows.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "El navegador que est\xE1s utilizando no es compatible con una c\xE1mara. Prueba con otro navegador, dispositivo o descarga nuestra app m\xF3vil.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE1mara no compatible", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Habilitar acceso a la c\xE1mara", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Habilita el acceso a la c\xE1mara en la configuraci\xF3n de tu navegador para volver a activarla.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "No podemos acceder a tu c\xE1mara", "dynamicFlows.CameraCapture.reviewInstructions": "\xBFTu foto es clara, legible y completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, intentar de nuevo", "dynamicFlows.CameraCapture.reviewSubmit": "S\xED, enviar", "dynamicFlows.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.", "dynamicFlows.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Introduce al menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Introduce una cifra igual o inferior a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Introduce una fecha que sea igual o posterior al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Utiliza el formato correcto.", "dynamicFlows.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.", "dynamicFlows.ControlFeedback.required": "Completa este campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorrecto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir ventana", "dynamicFlows.DynamicParagraph.copied": "Copiado al portapapeles", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Vaya. Algo ha salido mal...", "dynamicFlows.ErrorBoundary.retry": "Reintentar", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Confirma que quieres abrir **{origin}** en una nueva pesta\xF1a del navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir en nueva pesta\xF1a", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirma", "dynamicFlows.Help.ariaLabel": "Haz clic aqu\xED para obtener m\xE1s informaci\xF3n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Sube {maxItems} o menos archivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Sube al menos {minItems} archivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo ha ido mal. Int\xE9ntalo de nuevo m\xE1s tarde.", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xED" };
2789
+ var lc = { "dynamicFlows.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.", "dynamicFlows.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Le navigateur que vous utilisez ne prend pas en charge l'appareil photo. Veuillez essayer un autre navigateur, un autre appareil ou t\xE9l\xE9charger notre appli.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Appareil photo non pris en charge", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Autoriser l'acc\xE8s \xE0 l'appareil photo", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Autorisez l'acc\xE8s \xE0 l'appareil photo depuis les param\xE8tres de votre navigateur.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nous n'avons pas acc\xE8s \xE0 votre appareil photo", "dynamicFlows.CameraCapture.reviewInstructions": "Votre image est-elle claire, lisible et dans son int\xE9gralit\xE9\xA0?", "dynamicFlows.CameraCapture.reviewRetry": "Non, r\xE9essayer", "dynamicFlows.CameraCapture.reviewSubmit": "Oui, confirmer", "dynamicFlows.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.", "dynamicFlows.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Veuillez saisir au moins {minLength} caract\xE8res.", "dynamicFlows.ControlFeedback.minimum": "Veuillez saisir un nombre sup\xE9rieur ou \xE9gal \xE0 {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Veuillez saisir une date \xE9gale ou post\xE9rieure au {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Veuillez saisir les informations dans le bon format.", "dynamicFlows.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.", "dynamicFlows.ControlFeedback.required": "Champ obligatoire.", "dynamicFlows.ControlFeedback.type": "Type incorrect", "dynamicFlows.DynamicExternal.retryTitle": "Rouvrir la fen\xEAtre", "dynamicFlows.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier", "dynamicFlows.DynamicParagraph.copy": "Copier", "dynamicFlows.ErrorBoundary.errorAlert": "Oups\xA0! Une erreur s'est produite...", "dynamicFlows.ErrorBoundary.retry": "R\xE9essayer", "dynamicFlows.ExternalConfirmation.cancel": "Annuler", "dynamicFlows.ExternalConfirmation.description": "Veuillez confirmer que vous souhaitez ouvrir **{origin}** dans un nouvel onglet.", "dynamicFlows.ExternalConfirmation.open": "Ouvrir dans un nouvel onglet", "dynamicFlows.ExternalConfirmation.title": "Veuillez confirmer", "dynamicFlows.Help.ariaLabel": "Cliquez ici pour plus d'informations.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Veuillez t\xE9l\xE9charger {maxItems} fichiers ou moins.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Veuillez t\xE9l\xE9charger au moins {minItems} fichier(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Un probl\xE8me est survenu, veuillez r\xE9essayer plus tard !", "dynamicFlows.ReadOnlySchema.no": "Non", "dynamicFlows.ReadOnlySchema.yes": "Oui" };
2790
+ var cc = { "dynamicFlows.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.", "dynamicFlows.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Az \xE1ltalad haszn\xE1lt b\xF6ng\xE9sz\u0151 nem t\xE1mogatja a kamera haszn\xE1lat\xE1t. K\xE9r\xFCnk, pr\xF3b\xE1lkozz m\xE1s b\xF6ng\xE9sz\u0151vel, eszk\xF6zzel vagy t\xF6ltsd le az appot", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera nem t\xE1mogatott", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamer\xE1hoz val\xF3 hozz\xE1f\xE9r\xE9s enged\xE9lyez\xE9se", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz. Ezt a telefonod be\xE1ll\xEDt\xE1saiban enged\xE9lyezheted", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nem tudunk hozz\xE1f\xE9rni a kamer\xE1dhoz", "dynamicFlows.CameraCapture.reviewInstructions": "Tiszta, olvashat\xF3, teljes k\xE9pet k\xE9sz\xEDtett\xE9l?", "dynamicFlows.CameraCapture.reviewRetry": "Nem, pr\xF3b\xE1ljuk \xFAjra", "dynamicFlows.CameraCapture.reviewSubmit": "Igen, elk\xFCld\xF6m", "dynamicFlows.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.", "dynamicFlows.ControlFeedback.minLength": "K\xE9r\xFCnk, legal\xE1bb {minLength} karaktert adj meg.", "dynamicFlows.ControlFeedback.minimum": "K\xE9r\xFCnk add meg ezt vagy egy enn\xE9l nagyobb sz\xE1mot: {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {minimum} napj\xE1val, vagy egy enn\xE9l k\xE9s\u0151bbit.", "dynamicFlows.ControlFeedback.pattern": "Helytelen form\xE1tum", "dynamicFlows.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.", "dynamicFlows.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.", "dynamicFlows.ControlFeedback.type": "Helytelen t\xEDpus", "dynamicFlows.DynamicExternal.retryTitle": "Ablak \xFAjranyit\xE1sa", "dynamicFlows.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva", "dynamicFlows.DynamicParagraph.copy": "M\xE1sol\xE1s", "dynamicFlows.ErrorBoundary.errorAlert": "Hopp\xE1! Valami hiba t\xF6rt\xE9nt...", "dynamicFlows.ErrorBoundary.retry": "\xDAjra", "dynamicFlows.ExternalConfirmation.cancel": "M\xE9gsem", "dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.", "dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon", "dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s", "dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "K\xE9r\xFCnk, hogy legfeljebb {maxItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "K\xE9r\xFCnk, hogy legal\xE1bb {minItems} f\xE1jlt t\xF6lts fel.", "dynamicFlows.PersistAsyncSchema.genericError": "Valami hiba t\xF6rt\xE9nt. K\xE9r\xFCnk, pr\xF3b\xE1ld \xFAjra k\xE9s\u0151bb!", "dynamicFlows.ReadOnlySchema.no": "Nem", "dynamicFlows.ReadOnlySchema.yes": "Igen" };
2791
+ var mc = { "dynamicFlows.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.", "dynamicFlows.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browser yang Anda gunakan tidak mendukung kamera. Silakan coba browser, perangkat yang lain, atau unduh aplikasi seluler kami.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera tidak didukung", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Izinkan akses kamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Untuk melanjutkan lagi, aktifkan akses kamera di pengaturan browser Anda.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kami tidak dapat mengakses kamera Anda", "dynamicFlows.CameraCapture.reviewInstructions": "Apakah gambar Anda jelas, dapat dibaca, dan lengkap?", "dynamicFlows.CameraCapture.reviewRetry": "Tidak, coba lagi", "dynamicFlows.CameraCapture.reviewSubmit": "Ya, kirim", "dynamicFlows.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.", "dynamicFlows.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.", "dynamicFlows.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Harap masukkan setidaknya {minLength} karakter.", "dynamicFlows.ControlFeedback.minimum": "Harap masukkan angka paling kecil {minimum} atau lebih dari itu.", "dynamicFlows.ControlFeedback.minimumDate": "Harap masukkan tanggal pada atau setelah {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Mohon masukkan ini dalam format yang benar.", "dynamicFlows.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.", "dynamicFlows.ControlFeedback.required": "Harap isi kolom ini.", "dynamicFlows.ControlFeedback.type": "Tipe salah", "dynamicFlows.DynamicExternal.retryTitle": "Buka window kembali", "dynamicFlows.DynamicParagraph.copied": "Disalin ke clipboard", "dynamicFlows.DynamicParagraph.copy": "Salin", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Terjadi kesalahan...", "dynamicFlows.ErrorBoundary.retry": "Coba lagi", "dynamicFlows.ExternalConfirmation.cancel": "Batalkan", "dynamicFlows.ExternalConfirmation.description": "Harap konfirmasikan bahwa Anda ingin membuka **{origin}** di tab browser baru.", "dynamicFlows.ExternalConfirmation.open": "Buka di tab baru", "dynamicFlows.ExternalConfirmation.title": "Harap konfirmasi", "dynamicFlows.Help.ariaLabel": "Klik di sini untuk info selengkapnya.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Harap unggah {maxItems} file atau kurang.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Harap unggah sedikitnya {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Terjadi kesalahan, mohon coba lagi nanti!", "dynamicFlows.ReadOnlySchema.no": "Tidak", "dynamicFlows.ReadOnlySchema.yes": "Ya" };
2792
+ var dc = { "dynamicFlows.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Il browser che stai usando non supporta la videocamera. Prova con un altro browser o dispositivo, oppure scarica la nostra app", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Videocamera non supportata", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Consenti l'accesso alla fotocamera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Non abbiamo accesso alla tua fotocamera. Puoi abilitare l'accesso nelle impostazioni del tuo browser", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Accesso alla fotocamera disabilitato", "dynamicFlows.CameraCapture.reviewInstructions": "La tua foto \xE8 chiara, ben leggibile e completa?", "dynamicFlows.CameraCapture.reviewRetry": "No, riprova", "dynamicFlows.CameraCapture.reviewSubmit": "S\xEC, invia", "dynamicFlows.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.", "dynamicFlows.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Inserisci almeno {minLength} caratteri.", "dynamicFlows.ControlFeedback.minimum": "Inserisci un numero uguale o superiore a {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Inserisci una data corrispondente o successiva al {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Inseriscilo in un formato corretto.", "dynamicFlows.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.", "dynamicFlows.ControlFeedback.required": "Compila questo campo.", "dynamicFlows.ControlFeedback.type": "Tipo errato", "dynamicFlows.DynamicExternal.retryTitle": "Riapri la finestra", "dynamicFlows.DynamicParagraph.copied": "Copiato negli appunti", "dynamicFlows.DynamicParagraph.copy": "Copia", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Qualcosa \xE8 andato storto...", "dynamicFlows.ErrorBoundary.retry": "Riprova", "dynamicFlows.ExternalConfirmation.cancel": "Annulla", "dynamicFlows.ExternalConfirmation.description": "Conferma di voler aprire **{origin}** in una nuova scheda del browser.", "dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda", "dynamicFlows.ExternalConfirmation.title": "Conferma", "dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Carica al massimo {maxItems} file.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Carica almeno {minItems} file.", "dynamicFlows.PersistAsyncSchema.genericError": "Qualcosa \xE8 andato storto. Riprova pi\xF9 tardi!", "dynamicFlows.ReadOnlySchema.no": "No", "dynamicFlows.ReadOnlySchema.yes": "S\xEC" };
2793
+ var uc = { "dynamicFlows.ArraySchema.maxItemsError": "{maxItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0B\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u304A\u5BA2\u69D8\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u5225\u306E\u30D6\u30E9\u30A6\u30B6\u307E\u305F\u306F\u30C7\u30D0\u30A4\u30B9\u3092\u4F7F\u7528\u3059\u308B\u304B\u3001\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u30AB\u30E1\u30E9\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u8A31\u53EF\u3059\u308B", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u30D6\u30E9\u30A6\u30B6\u306E\u8A2D\u5B9A\u3067\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092\u6709\u52B9\u306B\u3057\u3066\u3001\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u30AB\u30E1\u30E9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093", "dynamicFlows.CameraCapture.reviewInstructions": "\u5199\u771F\u304C\u9BAE\u660E\u3067\u3001\u3059\u3079\u3066\u306E\u60C5\u5831\u304C\u8AAD\u307F\u53D6\u308C\u6B20\u3051\u3066\u3044\u308B\u90E8\u5206\u306A\u3069\u306F\u3042\u308A\u307E\u305B\u3093\u304B\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u3044\u3044\u3048\u3001\u64AE\u308A\u76F4\u3059", "dynamicFlows.CameraCapture.reviewSubmit": "\u306F\u3044\u3001\u9001\u4FE1\u3059\u308B", "dynamicFlows.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.maximumDate": "{maximum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u524D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minLength": "{minLength}\u6587\u5B57\u4EE5\u4E0A\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimum": "{minimum}\u4EE5\u4E0A\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.minimumDate": "{minimum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u964D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.pattern": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002", "dynamicFlows.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7", "dynamicFlows.DynamicExternal.retryTitle": "\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u3082\u3046\u4E00\u5EA6\u958B\u304F", "dynamicFlows.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F", "dynamicFlows.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B", "dynamicFlows.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F...", "dynamicFlows.ErrorBoundary.retry": "\u3084\u308A\u76F4\u3059", "dynamicFlows.ExternalConfirmation.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB\u3059\u308B", "dynamicFlows.ExternalConfirmation.description": "\u65B0\u3057\u3044\u30D6\u30E9\u30A6\u30B6\u30BF\u30D6\u3067**{origin}**\u3092\u958B\u304F\u3053\u3068\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ExternalConfirmation.open": "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F", "dynamicFlows.ExternalConfirmation.title": "\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044", "dynamicFlows.Help.ariaLabel": "\u8A73\u7D30\u306F\u3053\u3061\u3089\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "{maxItems}\u500B\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "{minItems}\u500B\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002", "dynamicFlows.ReadOnlySchema.no": "\u3044\u3044\u3048", "dynamicFlows.ReadOnlySchema.yes": "\u306F\u3044" };
2794
+ var pc = { "dynamicFlows.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.", "dynamicFlows.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Przegl\u0105darka, kt\xF3rej u\u017Cywasz, nie obs\u0142uguje aparatu. Wypr\xF3buj inn\u0105 przegl\u0105dark\u0119 lub urz\u0105dzenie albo pobierz nasz\u0105 aplikacj\u0119 mobiln\u0105.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Aparat nie jest obs\u0142ugiwany", "dynamicFlows.CameraCapture.NoCameraAccess.action": "W\u0142\u0105cz dost\u0119p do aparatu", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "W\u0142\u0105cz dost\u0119p do aparatu w ustawieniach przegl\u0105darki, \u017Ceby rozpocz\u0105\u0107 ponownie.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nie mo\u017Cemy uzyska\u0107 dost\u0119pu do Twojego aparatu", "dynamicFlows.CameraCapture.reviewInstructions": "Czy Twoje zdj\u0119cie jest wyra\u017Ane, czytelne i kompletne?", "dynamicFlows.CameraCapture.reviewRetry": "Nie, spr\xF3buj ponownie", "dynamicFlows.CameraCapture.reviewSubmit": "Tak, prze\u015Blij", "dynamicFlows.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.", "dynamicFlows.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Prosz\u0119 wpisa\u0107 co najmniej {minLength} znak\xF3w.", "dynamicFlows.ControlFeedback.minimum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub wi\u0119ksz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.minimumDate": "Wprowad\u017A dat\u0119 nie wcze\u015Bniejsz\u0105 ni\u017C {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Wprowad\u017A t\u0119 warto\u015B\u0107 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.", "dynamicFlows.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.", "dynamicFlows.ControlFeedback.type": "Nieprawid\u0142owy typ", "dynamicFlows.DynamicExternal.retryTitle": "Otw\xF3rz okno ponownie", "dynamicFlows.DynamicParagraph.copied": "Skopiowano do schowka", "dynamicFlows.DynamicParagraph.copy": "Kopiuj", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Wyst\u0105pi\u0142 b\u0142\u0105d...", "dynamicFlows.ErrorBoundary.retry": "Spr\xF3buj ponownie", "dynamicFlows.ExternalConfirmation.cancel": "Anuluj", "dynamicFlows.ExternalConfirmation.description": "Prosimy potwierdzi\u0107, \u017Ce chcesz otworzy\u0107 **{origin}** w nowej zak\u0142adce przegl\u0105darki.", "dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce", "dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A", "dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Prze\u015Blij do {maxItems} plik\xF3w.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Prze\u015Blij co najmniej nast\u0119puj\u0105c\u0105 liczb\u0119 plik\xF3w: {minItems}.", "dynamicFlows.PersistAsyncSchema.genericError": "Wyst\u0105pi\u0142 b\u0142\u0105d, spr\xF3buj ponownie p\xF3\u017Aniej!", "dynamicFlows.ReadOnlySchema.no": "Nie", "dynamicFlows.ReadOnlySchema.yes": "Tak" };
2795
+ var fc = { "dynamicFlows.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.", "dynamicFlows.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "O navegador que voc\xEA est\xE1 usando n\xE3o permite o uso da c\xE2mera. Por favor, tente com outro navegador ou computador, ou baixe o nosso aplicativo", "dynamicFlows.CameraCapture.CameraNotSupported.title": "C\xE2mera indispon\xEDvel", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permitir acesso \xE0 c\xE2mera", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Ative o acesso \xE0 c\xE2mera nas configura\xE7\xF5es do navegador para continuar.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "N\xE3o temos acesso \xE0 sua c\xE2mera", "dynamicFlows.CameraCapture.reviewInstructions": "A sua foto est\xE1 clara, leg\xEDvel e aparece por inteiro?", "dynamicFlows.CameraCapture.reviewRetry": "N\xE3o, tentar novamente", "dynamicFlows.CameraCapture.reviewSubmit": "Sim, enviar", "dynamicFlows.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.", "dynamicFlows.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.", "dynamicFlows.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Por favor, insira pelo menos {minLength} caracteres.", "dynamicFlows.ControlFeedback.minimum": "Por favor, insira um n\xFAmero que seja {minimum} ou mais.", "dynamicFlows.ControlFeedback.minimumDate": "Por favor, insira uma data que seja em ou ap\xF3s {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Por favor, insira essa informa\xE7\xE3o no formato correto.", "dynamicFlows.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.", "dynamicFlows.ControlFeedback.required": "Por favor, preencha o campo.", "dynamicFlows.ControlFeedback.type": "Tipo incorreto", "dynamicFlows.DynamicExternal.retryTitle": "Reabrir janela", "dynamicFlows.DynamicParagraph.copied": "Copiado", "dynamicFlows.DynamicParagraph.copy": "Copiar", "dynamicFlows.ErrorBoundary.errorAlert": "Ops! Algo deu errado...", "dynamicFlows.ErrorBoundary.retry": "Tentar novamente", "dynamicFlows.ExternalConfirmation.cancel": "Cancelar", "dynamicFlows.ExternalConfirmation.description": "Por favor, confirme que deseja abrir * *{origin}* * em uma nova aba do navegador.", "dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba", "dynamicFlows.ExternalConfirmation.title": "Por favor, confirme", "dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Por favor, envie {maxItems} ou menos arquivos.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Por favor, envie pelo menos {minItems} arquivo(s).", "dynamicFlows.PersistAsyncSchema.genericError": "Algo deu errado. Por favor, tente novamente mais tarde!", "dynamicFlows.ReadOnlySchema.no": "N\xE3o", "dynamicFlows.ReadOnlySchema.yes": "Sim" };
2796
+ var yc = { "dynamicFlows.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.", "dynamicFlows.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Browserul pe care \xEEl folose\u0219ti nu poate folosi o camer\u0103 foto. Te rug\u0103m s\u0103 \xEEncerci alt browser, alt dispozitiv sau s\u0103 descarci aplica\u021Bia noastr\u0103.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Camera nu este acceptat\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Permite acces la camer\u0103", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Permite accesul la camera foto \xEEn set\u0103rile browserului t\u0103u, pentru a re\xEEncepe.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Nu \xEE\u021Bi putem accesa camera", "dynamicFlows.CameraCapture.reviewInstructions": "Imaginea ta este clar\u0103, lizibil\u0103 \u0219i complet\u0103?", "dynamicFlows.CameraCapture.reviewRetry": "Nu, \xEEncearc\u0103 din nou", "dynamicFlows.CameraCapture.reviewSubmit": "Da, trimite", "dynamicFlows.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.", "dynamicFlows.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.", "dynamicFlows.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.", "dynamicFlows.ControlFeedback.minLength": "Te rug\u0103m s\u0103 introduci cel pu\u021Bin {minLength} caractere.", "dynamicFlows.ControlFeedback.minimum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {minimum} sau mai mare.", "dynamicFlows.ControlFeedback.minimumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de dup\u0103 sau egal\u0103 cu {minimum}.", "dynamicFlows.ControlFeedback.pattern": "Te rug\u0103m s\u0103 introduci acest lucru \xEEn formatul corect.", "dynamicFlows.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.", "dynamicFlows.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.", "dynamicFlows.ControlFeedback.type": "Tip incorect", "dynamicFlows.DynamicExternal.retryTitle": "Redeschide fereastra", "dynamicFlows.DynamicParagraph.copied": "Copiat \xEEn clipboard", "dynamicFlows.DynamicParagraph.copy": "Copiaz\u0103", "dynamicFlows.ErrorBoundary.errorAlert": "Ups! Ceva nu a mers bine...", "dynamicFlows.ErrorBoundary.retry": "\xCEncearc\u0103 din nou", "dynamicFlows.ExternalConfirmation.cancel": "Anuleaz\u0103", "dynamicFlows.ExternalConfirmation.description": "Te rug\u0103m s\u0103 confirmi c\u0103 vrei s\u0103 deschizi **{origin}** \xEEntr-o nou\u0103 fil\u0103 a browserului.", "dynamicFlows.ExternalConfirmation.open": "Deschide \xEEntr-o fil\u0103 nou\u0103", "dynamicFlows.ExternalConfirmation.title": "Te rug\u0103m s\u0103 confirmi", "dynamicFlows.Help.ariaLabel": "D\u0103 click aici pentru mai multe informa\u021Bii.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "Te rug\u0103m s\u0103 \xEEncarci {maxItems} fi\u0219iere sau mai pu\u021Bine.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "Te rug\u0103m s\u0103 \xEEncarci cel pu\u021Bin {minItems} fi\u0219ier(e).", "dynamicFlows.PersistAsyncSchema.genericError": "Ceva nu a mers bine. Te rug\u0103m s\u0103 \xEEncerci din nou mai t\xE2rziu!", "dynamicFlows.ReadOnlySchema.no": "Nu", "dynamicFlows.ReadOnlySchema.yes": "Da" };
2797
+ var hc = { "dynamicFlows.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u044B\u0439 \u0432\u0430\u043C\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043A\u0430\u043C\u0435\u0440\u0443. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043B\u0438 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0438\u043B\u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043D\u0430\u0448\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043A\u0430\u043C\u0435\u0440\u0435 \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u041C\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0432\u0430\u0448\u0435\u0439 \u043A\u0430\u043C\u0435\u0440\u0435", "dynamicFlows.CameraCapture.reviewInstructions": "\u0412\u0430\u0448\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F \u0447\u0435\u0442\u043A\u0430\u044F, \u043B\u0435\u0433\u043A\u043E \u0447\u0438\u0442\u0430\u0435\u043C\u0430\u044F \u0438 \u043D\u0435 \u043E\u0431\u0440\u0435\u0437\u0430\u043D\u0430?", "dynamicFlows.CameraCapture.reviewRetry": "\u041D\u0435\u0442, \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0435 \u0440\u0430\u0437", "dynamicFlows.CameraCapture.reviewSubmit": "\u0414\u0430, \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C", "dynamicFlows.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.maximumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {maximum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.minLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minLength} \u0441\u0438\u043C\u0432\u043E\u043B\u0430(-\u043E\u0432).", "dynamicFlows.ControlFeedback.minimum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u044C\u0448\u0435.", "dynamicFlows.ControlFeedback.minimumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {minimum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u043F\u043E\u0437\u0434\u043D\u044E\u044E.", "dynamicFlows.ControlFeedback.pattern": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u044D\u0442\u043E \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.patternDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443 \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.", "dynamicFlows.ControlFeedback.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.", "dynamicFlows.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F", "dynamicFlows.DynamicExternal.retryTitle": "\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E", "dynamicFlows.DynamicParagraph.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430", "dynamicFlows.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C", "dynamicFlows.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A...", "dynamicFlows.ErrorBoundary.retry": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043F\u043E\u043F\u044B\u0442\u043A\u0443", "dynamicFlows.ExternalConfirmation.cancel": "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C", "dynamicFlows.ExternalConfirmation.description": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C **{origin}** \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", "dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435", "dynamicFlows.ExternalConfirmation.title": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435", "dynamicFlows.Help.ariaLabel": "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 {maxItems} \u0444\u0430\u0439\u043B\u043E\u0432.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems} \u0444\u0430\u0439\u043B(-\u0430/\u043E\u0432).", "dynamicFlows.PersistAsyncSchema.genericError": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435!", "dynamicFlows.ReadOnlySchema.no": "\u041D\u0435\u0442", "dynamicFlows.ReadOnlySchema.yes": "\u0414\u0430" };
2798
+ var gc = { "dynamicFlows.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n", "dynamicFlows.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "Kulland\u0131\u011F\u0131n\u0131z taray\u0131c\u0131da kamera deste\u011Fi yok. Farkl\u0131 bir taray\u0131c\u0131 / cihaz deneyin veya mobil uygulamam\u0131z\u0131 indirin.", "dynamicFlows.CameraCapture.CameraNotSupported.title": "Kamera desteklenmiyor", "dynamicFlows.CameraCapture.NoCameraAccess.action": "Kamera eri\u015Fimi verin", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "Tekrar ba\u015Flamak i\xE7in taray\u0131c\u0131n\u0131z\u0131n ayarlar\u0131nda kamera eri\u015Fimini etkinle\u015Ftirin.", "dynamicFlows.CameraCapture.NoCameraAccess.title": "Kameran\u0131za eri\u015Femiyoruz", "dynamicFlows.CameraCapture.reviewInstructions": "Foto\u011Fraf\u0131n\u0131z net, okunakl\u0131 ve eksiksiz mi?", "dynamicFlows.CameraCapture.reviewRetry": "Hay\u0131r, tekrar dene", "dynamicFlows.CameraCapture.reviewSubmit": "Evet, g\xF6nder", "dynamicFlows.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.", "dynamicFlows.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.", "dynamicFlows.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.", "dynamicFlows.ControlFeedback.minLength": "En az {minLength} karakter girebilirsiniz.", "dynamicFlows.ControlFeedback.minimum": "L\xFCtfen {minimum} veya daha y\xFCksek bir say\u0131 girin.", "dynamicFlows.ControlFeedback.minimumDate": "L\xFCtfen {minimum} veya daha ge\xE7 bir tarih girin.", "dynamicFlows.ControlFeedback.pattern": "Yanl\u0131\u015F bi\xE7im", "dynamicFlows.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.", "dynamicFlows.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.", "dynamicFlows.ControlFeedback.type": "Ge\xE7ersiz se\xE7im", "dynamicFlows.DynamicExternal.retryTitle": "Pencereyi yeniden a\xE7", "dynamicFlows.DynamicParagraph.copied": "Panoya kopyaland\u0131", "dynamicFlows.DynamicParagraph.copy": "Kopyala", "dynamicFlows.ErrorBoundary.errorAlert": "Aman\u0131n! Bir \u015Feyler ters gitti...", "dynamicFlows.ErrorBoundary.retry": "Tekrar dene", "dynamicFlows.ExternalConfirmation.cancel": "\u0130ptal edin", "dynamicFlows.ExternalConfirmation.description": "L\xFCtfen yeni bir taray\u0131c\u0131 sekmesinde **{origin}** a\xE7mak istedi\u011Finizi onaylay\u0131n.", "dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7", "dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n", "dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az dosya y\xFCkleyin.", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "L\xFCtfen en az {minItems} dosya y\xFCkleyin.", "dynamicFlows.PersistAsyncSchema.genericError": "Bir \u015Feyler ters gitti, l\xFCtfen tekrar deneyin", "dynamicFlows.ReadOnlySchema.no": "Hay\u0131r", "dynamicFlows.ReadOnlySchema.yes": "Evet" };
2799
+ var bc = { "dynamicFlows.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002", "dynamicFlows.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.paragraph": "\u4F60\u76EE\u524D\u4F7F\u7528\u7684\u700F\u89BD\u5668\u4E0D\u652F\u6301\u76F8\u6A5F\u3002\u8ACB\u5617\u8A66\u4F7F\u7528\u5176\u4ED6\u700F\u89BD\u5668\u6216\u5176\u4ED6\u88DD\u7F6E\uFF0C\u6216\u8005\u4F60\u53EF\u4EE5\u4E0B\u8F09\u6211\u5011\u7684\u61C9\u7528\u7A0B\u5F0F\u3002", "dynamicFlows.CameraCapture.CameraNotSupported.title": "\u4E0D\u652F\u6301\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.action": "\u5141\u8A31\u53D6\u7528\u76F8\u6A5F", "dynamicFlows.CameraCapture.NoCameraAccess.paragraph": "\u4F60\u53EF\u4EE5\u5728\u700F\u89BD\u5668\u7684\u8A2D\u5B9A\u4E2D\u958B\u555F\u76F8\u6A5F\u5B58\u53D6\u6B0A\u9650\u3002", "dynamicFlows.CameraCapture.NoCameraAccess.title": "\u6211\u5011\u7121\u6CD5\u53D6\u7528\u4F60\u7684\u76F8\u6A5F", "dynamicFlows.CameraCapture.reviewInstructions": "\u4F60\u7684\u7167\u7247\u662F\u5426\u5B8C\u6574\u3001\u6E05\u6670\u53CA\u53EF\u8B80\uFF1F", "dynamicFlows.CameraCapture.reviewRetry": "\u5426\uFF0C\u518D\u8A66\u4E00\u6B21", "dynamicFlows.CameraCapture.reviewSubmit": "\u662F\uFF0C\u63D0\u4EA4", "dynamicFlows.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.maximumDate": "\u8ACB\u8F38\u5165{maximum}\u6216\u4E4B\u524D\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.minLength": "\u8ACB\u8F38\u5165\u81F3\u5C11{minLength}\u500B\u5B57\u5143\u3002", "dynamicFlows.ControlFeedback.minimum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5927\u65BC\u6216\u7B49\u65BC{minimum}\u7684\u6578\u5B57\u3002", "dynamicFlows.ControlFeedback.minimumDate": "\u8ACB\u8F38\u5165{minimum}\u6216\u4E4B\u5F8C\u7684\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.pattern": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u5185\u5BB9\u3002", "dynamicFlows.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002", "dynamicFlows.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002", "dynamicFlows.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B", "dynamicFlows.DynamicExternal.retryTitle": "\u91CD\u65B0\u6253\u958B\u8996\u7A97", "dynamicFlows.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F", "dynamicFlows.DynamicParagraph.copy": "\u8907\u88FD", "dynamicFlows.ErrorBoundary.errorAlert": "\u5662\uFF01\u51FA\u4E86\u4E9B\u554F\u984C...", "dynamicFlows.ErrorBoundary.retry": "\u91CD\u8A66", "dynamicFlows.ExternalConfirmation.cancel": "\u53D6\u6D88", "dynamicFlows.ExternalConfirmation.description": "\u8ACB\u78BA\u8A8D\u4F60\u662F\u5426\u8981\u5728\u700F\u89BD\u5668\u7684\u65B0\u5206\u9801\u6253\u958B**{origin}**\u3002", "dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u5206\u9801\u4E2D\u958B\u555F", "dynamicFlows.ExternalConfirmation.title": "\u8ACB\u78BA\u8A8D", "dynamicFlows.Help.ariaLabel": "\u6309\u6B64\u67E5\u770B\u8A73\u60C5\u3002", "dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.maxItemsError": "\u8ACB\u4E0D\u8981\u4E0A\u8F09\u8D85\u904E{maxItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.MultipleFileUploadSchema.minItemsError": "\u8ACB\u4E0A\u8F09\u81F3\u5C11{minItems}\u500B\u6A94\u6848\u3002", "dynamicFlows.PersistAsyncSchema.genericError": "\u51FA\u4E86\u4E9B\u554F\u984C\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002", "dynamicFlows.ReadOnlySchema.no": "\u5426", "dynamicFlows.ReadOnlySchema.yes": "\u662F" };
2800
+ var Ep = { en: ic, de: nc, es: sc, fr: lc, hu: cc, id: mc, it: dc, ja: uc, pl: pc, pt: fc, ro: yc, ru: hc, tr: gc, zh: bc };
2801
+ var Sc = Ep;
2807
2802
  }
2808
2803
  });
2809
2804