@regulaforensics/idv-capture-web 4.0.658-nightly → 4.0.660-rc

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/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t, n) => () => {
3
3
  if (n) throw n[0];
4
4
  try {
@@ -53,8 +53,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
53
53
  for (let n of e.cssRules) t += n.cssText;
54
54
  return _(t);
55
55
  })(e) : e;
56
- //#endregion
57
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/asyncToGenerator.js
56
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/asyncToGenerator.js
58
57
  function x(e, t, n, r, i, a, o) {
59
58
  try {
60
59
  var s = e[a](o), c = s.value;
@@ -79,8 +78,7 @@ function S(e) {
79
78
  });
80
79
  };
81
80
  }
82
- //#endregion
83
- //#region ../../node_modules/@lit/reactive-element/reactive-element.js
81
+ // ../../node_modules/@lit/reactive-element/reactive-element.js
84
82
  var C, w, { is: T, defineProperty: ee, getOwnPropertyDescriptor: E, getOwnPropertyNames: te, getOwnPropertySymbols: ne, getPrototypeOf: re } = Object, D = globalThis, O = D.trustedTypes, ie = O ? O.emptyScript : "", ae = D.reactiveElementPolyfillSupport, oe = (e, t) => e, se = {
85
83
  toAttribute(e, t) {
86
84
  switch (t) {
@@ -334,8 +332,7 @@ var le = class extends HTMLElement {
334
332
  firstUpdated(e) {}
335
333
  };
336
334
  le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[oe("elementProperties")] = /* @__PURE__ */ new Map(), le[oe("finalized")] = /* @__PURE__ */ new Map(), ae == null || ae({ ReactiveElement: le }), ((w = D.reactiveElementVersions) == null ? D.reactiveElementVersions = [] : w).push("2.1.2");
337
- //#endregion
338
- //#region ../../node_modules/lit-html/lit-html.js
335
+ // ../../node_modules/lit-html/lit-html.js
339
336
  var ue, de = globalThis, fe = (e) => e, pe = de.trustedTypes, me = pe ? pe.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, he = "$lit$", ge = `lit$${Math.random().toFixed(9).slice(2)}$`, _e = "?" + ge, ve = `<${_e}>`, ye = document, be = () => ye.createComment(""), xe = (e) => e === null || typeof e != "object" && typeof e != "function", Se = Array.isArray, Ce = (e) => Se(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", we = "[ \n\f\r]", Te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ee = /-->/g, De = />/g, Oe = RegExp(`>|${we}(?:([^\\s"'>=/]+)(${we}*=${we}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), ke = /'/g, Ae = /"/g, je = /^(?:script|style|textarea|title)$/i, Me = ((e) => (t, ...n) => ({
340
337
  _$litType$: e,
341
338
  strings: t,
@@ -606,8 +603,7 @@ var Je = (e, t, n) => {
606
603
  Qe._$litElement$ = !0, Qe.finalized = !0, (Ye = Ze.litElementHydrateSupport) == null || Ye.call(Ze, { LitElement: Qe });
607
604
  var $e = Ze.litElementPolyfillSupport;
608
605
  $e == null || $e({ LitElement: Qe }), ((Xe = Ze.litElementVersions) == null ? Ze.litElementVersions = [] : Xe).push("4.2.2");
609
- //#endregion
610
- //#region ../../node_modules/@lit/reactive-element/decorators/property.js
606
+ // ../../node_modules/@lit/reactive-element/decorators/property.js
611
607
  var et = {
612
608
  attribute: !0,
613
609
  type: String,
@@ -643,8 +639,7 @@ function nt(e) {
643
639
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
644
640
  })(e, t, n);
645
641
  }
646
- //#endregion
647
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
642
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
648
643
  function rt(e) {
649
644
  "@babel/helpers - typeof";
650
645
  return rt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -653,8 +648,7 @@ function rt(e) {
653
648
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
654
649
  }, rt(e);
655
650
  }
656
- //#endregion
657
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
651
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
658
652
  function it(e, t) {
659
653
  if (rt(e) != "object" || !e) return e;
660
654
  var n = e[Symbol.toPrimitive];
@@ -665,14 +659,12 @@ function it(e, t) {
665
659
  }
666
660
  return (t === "string" ? String : Number)(e);
667
661
  }
668
- //#endregion
669
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
662
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
670
663
  function at(e) {
671
664
  var t = it(e, "string");
672
665
  return rt(t) == "symbol" ? t : t + "";
673
666
  }
674
- //#endregion
675
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
667
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
676
668
  function ot(e, t, n) {
677
669
  return (t = at(t)) in e ? Object.defineProperty(e, t, {
678
670
  value: n,
@@ -681,8 +673,7 @@ function ot(e, t, n) {
681
673
  writable: !0
682
674
  }) : e[t] = n, e;
683
675
  }
684
- //#endregion
685
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
676
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/objectSpread2.js
686
677
  function st(e, t) {
687
678
  var n = Object.keys(e);
688
679
  if (Object.getOwnPropertySymbols) {
@@ -704,8 +695,7 @@ function j(e) {
704
695
  }
705
696
  return e;
706
697
  }
707
- //#endregion
708
- //#region ../../node_modules/@lit/reactive-element/decorators/state.js
698
+ // ../../node_modules/@lit/reactive-element/decorators/state.js
709
699
  function ct(e) {
710
700
  return nt(j(j({}, e), {}, {
711
701
  state: !0,
@@ -761,8 +751,7 @@ var lt = new class {
761
751
  }, o = t = e(r, i, a);
762
752
  return a;
763
753
  }, dt = ((e) => e ? ut(e) : ut);
764
- //#endregion
765
- //#region ../../node_modules/preact/dist/preact.module.js
754
+ // ../../node_modules/preact/dist/preact.module.js
766
755
  function ft(e, t) {
767
756
  for (var n in t) e[n] = t[n];
768
757
  return e;
@@ -1052,8 +1041,7 @@ var Wt, M, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn, nn, rn, an, on, sn, cn, l
1052
1041
  return e.__v.__b - t.__v.__b;
1053
1042
  }, Ct.__r = 0, Xt = Math.random().toString(8), Zt = "__d" + Xt, Qt = "__a" + Xt, $t = /(PointerCapture)$|Capture$/i, en = 0, tn = jt(!1), nn = jt(!0), rn = 0;
1054
1043
  }));
1055
- //#endregion
1056
- //#region ../../node_modules/preact/hooks/dist/hooks.module.js
1044
+ // ../../node_modules/preact/hooks/dist/hooks.module.js
1057
1045
  function un(e, t) {
1058
1046
  F.__h && F.__h(P, e, jn || t), jn = 0;
1059
1047
  var n = P.__H || (P.__H = {
@@ -1656,8 +1644,7 @@ var hr, gr, _r, vr, yr, br, xr, Sr, Cr, wr, Tr, Er, Dr, Or, kr, Ar, jr, Mr, Nr,
1656
1644
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Fr
1657
1645
  };
1658
1646
  }));
1659
- //#endregion
1660
- //#region ../../node_modules/zustand/esm/react.mjs
1647
+ // ../../node_modules/zustand/esm/react.mjs
1661
1648
  Br();
1662
1649
  var Vr = (e) => e;
1663
1650
  function Hr(e, t = Vr) {
@@ -3478,14 +3465,12 @@ for (let e = 0; e < 256; ++e) Yr.push((e + 256).toString(16).slice(1));
3478
3465
  function Xr(e, t = 0) {
3479
3466
  return (Yr[e[t + 0]] + Yr[e[t + 1]] + Yr[e[t + 2]] + Yr[e[t + 3]] + "-" + Yr[e[t + 4]] + Yr[e[t + 5]] + "-" + Yr[e[t + 6]] + Yr[e[t + 7]] + "-" + Yr[e[t + 8]] + Yr[e[t + 9]] + "-" + Yr[e[t + 10]] + Yr[e[t + 11]] + Yr[e[t + 12]] + Yr[e[t + 13]] + Yr[e[t + 14]] + Yr[e[t + 15]]).toLowerCase();
3480
3467
  }
3481
- //#endregion
3482
- //#region ../../node_modules/uuid/dist/rng.js
3468
+ // ../../node_modules/uuid/dist/rng.js
3483
3469
  var Zr = /* @__PURE__ */ new Uint8Array(16);
3484
3470
  function Qr() {
3485
3471
  return crypto.getRandomValues(Zr);
3486
3472
  }
3487
- //#endregion
3488
- //#region ../../node_modules/uuid/dist/v4.js
3473
+ // ../../node_modules/uuid/dist/v4.js
3489
3474
  function $r(e, t, n) {
3490
3475
  return !t && !e && crypto.randomUUID ? crypto.randomUUID() : ei(e, t, n);
3491
3476
  }
@@ -3501,8 +3486,7 @@ function ei(e, t, n) {
3501
3486
  }
3502
3487
  return Xr(o);
3503
3488
  }
3504
- //#endregion
3505
- //#region src/constants.ts
3489
+ // src/constants.ts
3506
3490
  var ti = Kr(), ni = /* @__PURE__ */ u(qr(), 1), ri = /* @__PURE__ */ u(Jr(), 1), ii = {
3507
3491
  MESSAGE: "MESSAGE",
3508
3492
  ERROR: "ERROR"
@@ -3587,8 +3571,7 @@ var oi = {
3587
3571
  }, ji = (e, t) => {
3588
3572
  for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
3589
3573
  };
3590
- //#endregion
3591
- //#region src/helpers/utils.ts
3574
+ // src/helpers/utils.ts
3592
3575
  function Mi(e) {
3593
3576
  try {
3594
3577
  return JSON.parse(JSON.stringify(e));
@@ -3779,7 +3762,7 @@ var ta = () => {
3779
3762
  osVersion: `${ti.osVersion}`,
3780
3763
  hostAppId: ta(),
3781
3764
  host: ta(),
3782
- sdkVersion: (t = "4.0.658-nightly") == null ? void 0 : t.trim(),
3765
+ sdkVersion: (t = "4.0.660-rc") == null ? void 0 : t.trim(),
3783
3766
  name: navigator.userAgent,
3784
3767
  deviceModel: `${ti.osName}/${ti.osVersion} ${ti.browserName}/${ti.fullBrowserVersion}`,
3785
3768
  hostAppVersion: `${ti.browserName}/${ti.fullBrowserVersion}`,
@@ -3846,8 +3829,7 @@ function ua() {
3846
3829
  return Array.from(new Uint8Array(t)).map((e) => e.toString(16).padStart(2, "0")).join("");
3847
3830
  }), ua.apply(this, arguments);
3848
3831
  }
3849
- //#endregion
3850
- //#region src/helpers/sanitizeForLogging.ts
3832
+ // src/helpers/sanitizeForLogging.ts
3851
3833
  var da = "********", fa = /"([^"]+)"\s*:\s*"((?:[^"\\]|\\.)*)"/g, pa = [
3852
3834
  "password",
3853
3835
  "token",
@@ -4294,8 +4276,7 @@ var Xa = class e extends V {
4294
4276
  }
4295
4277
  };
4296
4278
  Ra = Xa, Ra.MODULE = "IDV", Ra.ERROR_ENUM_NAME = "WorkflowPlatformError", Ra.SHORT_CODE = "WPE";
4297
- //#endregion
4298
- //#region src/types.ts
4279
+ // src/types.ts
4299
4280
  var Za = /* @__PURE__ */ function(e) {
4300
4281
  return e.Force = "force", e.ApiKey = "apiKey", e.Simple = "simple", e;
4301
4282
  }({}), H = class e {
@@ -4385,8 +4366,7 @@ var Za = /* @__PURE__ */ function(e) {
4385
4366
  (e = this.webSocket) == null || e.close(), this.webSocket = null, this.connected = !1, this.wasEverConnected = !1, this.lastConnectConfig = null, this.clearSubscriptions();
4386
4367
  }
4387
4368
  }.getInstance();
4388
- //#endregion
4389
- //#region ../../node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
4369
+ // ../../node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
4390
4370
  ln();
4391
4371
  var Qa = 0;
4392
4372
  Array.isArray;
@@ -4454,8 +4434,7 @@ var $a = Ut(void 0), eo = ({ perform: e, children: t, setIsProcessingCallback: n
4454
4434
  alignItems: "center",
4455
4435
  alignContent: "center"
4456
4436
  };
4457
- //#endregion
4458
- //#region ../idv-gui/src/components/icons/spinner/index.tsx
4437
+ // ../idv-gui/src/components/icons/spinner/index.tsx
4459
4438
  I();
4460
4439
  var so = ({ dataUrl: e, isFullSize: t = !1 }) => {
4461
4440
  let n = mn(null);
@@ -4542,8 +4521,7 @@ var so = ({ dataUrl: e, isFullSize: t = !1 }) => {
4542
4521
  RIGHT: "RIGHT",
4543
4522
  END: "END"
4544
4523
  };
4545
- //#endregion
4546
- //#region ../idv-gui/src/utils/ui-helpers.tsx
4524
+ // ../idv-gui/src/utils/ui-helpers.tsx
4547
4525
  function bo(e) {
4548
4526
  let t = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, n = [], r = 0;
4549
4527
  for (let a of e.matchAll(t)) {
@@ -4721,8 +4699,7 @@ var To = (e, t) => !!(e.base64 && !(t != null && t.base64.has(e.base64)) || e.im
4721
4699
  FILES_NOT_SELECTED: "files_not_selected",
4722
4700
  FILES_LIMIT_EXCEEDED: "files_limit_exceeded"
4723
4701
  };
4724
- //#endregion
4725
- //#region ../idv-gui/src/utils/index.ts
4702
+ // ../idv-gui/src/utils/index.ts
4726
4703
  function zo(e) {
4727
4704
  return e === lo.CENTER ? "center" : e === lo.RIGHT || e === lo.END ? "end" : "start";
4728
4705
  }
@@ -4780,8 +4757,7 @@ var Wo = (e, t) => e.reduce((e, n) => {
4780
4757
  return e.apply(this, arguments);
4781
4758
  };
4782
4759
  }(), qo = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4);
4783
- //#endregion
4784
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectWithoutPropertiesLoose.js
4760
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/objectWithoutPropertiesLoose.js
4785
4761
  function Jo(e, t) {
4786
4762
  if (e == null) return {};
4787
4763
  var n = {};
@@ -4791,8 +4767,7 @@ function Jo(e, t) {
4791
4767
  }
4792
4768
  return n;
4793
4769
  }
4794
- //#endregion
4795
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectWithoutProperties.js
4770
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/objectWithoutProperties.js
4796
4771
  function Yo(e, t) {
4797
4772
  if (e == null) return {};
4798
4773
  var n, r, i = Jo(e, t);
@@ -4802,8 +4777,7 @@ function Yo(e, t) {
4802
4777
  }
4803
4778
  return i;
4804
4779
  }
4805
- //#endregion
4806
- //#region ../idv-gui/src/components/image/index.tsx
4780
+ // ../idv-gui/src/components/image/index.tsx
4807
4781
  I();
4808
4782
  var Xo = ["isFullSize"], Zo = (e) => {
4809
4783
  let { isFullSize: t = !1 } = e, n = Yo(e, Xo), { failedAssets: r } = io(), i = Eo(n, r), [a, o] = N(0), s = i[a];
@@ -4872,8 +4846,7 @@ var Xo = ["isFullSize"], Zo = (e) => {
4872
4846
  children: /* @__PURE__ */ U(Zo, j({}, e))
4873
4847
  })
4874
4848
  });
4875
- //#endregion
4876
- //#region ../idv-gui/src/components/header/components/close-button/index.tsx
4849
+ // ../idv-gui/src/components/header/components/close-button/index.tsx
4877
4850
  I();
4878
4851
  var $o = {
4879
4852
  display: "flex",
@@ -4952,8 +4925,7 @@ var $o = {
4952
4925
  children: h
4953
4926
  });
4954
4927
  };
4955
- //#endregion
4956
- //#region ../idv-gui/src/hooks/useButtonInteractionState.ts
4928
+ // ../idv-gui/src/hooks/useButtonInteractionState.ts
4957
4929
  I();
4958
4930
  var ns = () => {
4959
4931
  let [e, t] = N(!1), [n, r] = N(!1);
@@ -5135,8 +5107,7 @@ var ns = () => {
5135
5107
  },
5136
5108
  children: e && xo(e)
5137
5109
  });
5138
- //#endregion
5139
- //#region ../idv-gui/src/screens/status-screen/index.tsx
5110
+ // ../idv-gui/src/screens/status-screen/index.tsx
5140
5111
  I();
5141
5112
  var ls = ({ header: e, footer: t, image: n, title: r, description: i, buttons: a, backgroundColor: o, backgroundImage: s }) => {
5142
5113
  let c = mn(null), l = mn(null), [u, d] = N(!1);
@@ -5326,8 +5297,7 @@ var ls = ({ header: e, footer: t, image: n, title: r, description: i, buttons: a
5326
5297
  }),
5327
5298
  children: e.map((t, n) => /* @__PURE__ */ U(hs, j({ isLastChild: n === e.length - 1 }, t), n))
5328
5299
  });
5329
- //#endregion
5330
- //#region ../idv-gui/src/screens/details-screen/index.tsx
5300
+ // ../idv-gui/src/screens/details-screen/index.tsx
5331
5301
  I();
5332
5302
  var vs = ({ title: e, header: t, footer: n, details: r, buttons: i, backgroundColor: a, backgroundImage: o }) => {
5333
5303
  let s = mn(null), [c, l] = N(!1);
@@ -5360,8 +5330,7 @@ var vs = ({ title: e, header: t, footer: n, details: r, buttons: i, backgroundCo
5360
5330
  })
5361
5331
  });
5362
5332
  };
5363
- //#endregion
5364
- //#region ../../node_modules/react-hook-form/dist/index.esm.mjs
5333
+ // ../../node_modules/react-hook-form/dist/index.esm.mjs
5365
5334
  Br();
5366
5335
  var ys = ["_f"], bs = ["name"], xs = ["_f"], Ss = [
5367
5336
  "ref",
@@ -5507,7 +5476,7 @@ function ec(e) {
5507
5476
  a,
5508
5477
  r
5509
5478
  ]);
5510
- qs(() => ((d.current !== n || !$s(f.current, r)) && (d.current = n, f.current = r, g()), n._subscribe({
5479
+ qs(() => (d.current === n && $s(f.current, r) || (d.current = n, f.current = r, g()), n._subscribe({
5511
5480
  name: r,
5512
5481
  formState: { values: !0 },
5513
5482
  exact: o,
@@ -6191,7 +6160,7 @@ function $c(e = {}) {
6191
6160
  if (o) {
6192
6161
  let n = o._f;
6193
6162
  n && (!n.disabled && Y(a, e, kc(t, n)), s = pc(n.ref) && Es(t) ? "" : t, mc(n.ref) ? [...n.ref.options].forEach((e) => e.selected = s.includes(e.value)) : n.refs ? ws(n.ref) ? n.refs.forEach((e) => {
6194
- (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(s) ? !!s.find((t) => t === e.value) : s === e.value || !!s);
6163
+ e.defaultChecked && e.disabled || (e.checked = Array.isArray(s) ? !!s.find((t) => t === e.value) : s === e.value || !!s);
6195
6164
  }) : n.refs.forEach((e) => e.checked = e.value === s) : fc(n.ref) ? n.ref.value = "" : (n.ref.value = s, n.ref.type || p.state.next({
6196
6165
  name: e,
6197
6166
  values: i ? a : Ns(a)
@@ -6244,7 +6213,7 @@ function $c(e = {}) {
6244
6213
  }, b = Ic(t.mode), x = Ic(t.reValidateMode);
6245
6214
  if (v) {
6246
6215
  let o, S, C = l.type ? Mc(v._f) : ks(i), w = i.type === Ps.BLUR || i.type === Ps.FOCUS_OUT, te = !zc(v._f) && !e.validate && !t.resolver && !J(n.errors, u) && !v._f.deps || Gc(w, J(n.touchedFields, u), n.isSubmitted, x, b), D = Bc(u, s, w);
6247
- Y(a, u, C), w ? (!l || !l.readOnly) && (v._f.onBlur && v._f.onBlur(i), c && c(0)) : v._f.onChange && v._f.onChange(i);
6216
+ Y(a, u, C), w ? l && l.readOnly || (v._f.onBlur && v._f.onBlur(i), c && c(0)) : v._f.onChange && v._f.onChange(i);
6248
6217
  let O = T(u, C, w), ie = !dc(O) || D;
6249
6218
  if (!w && p.state.next({
6250
6219
  name: u,
@@ -6606,8 +6575,7 @@ function el(e = {}) {
6606
6575
  o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(j({}, o._formState))), o._removeUnmounted();
6607
6576
  }), t.current.formState = L.useMemo(() => Ks(i, o), [o, i]), t.current;
6608
6577
  }
6609
- //#endregion
6610
- //#region ../idv-gui/src/utils/getValidateObjectHelper.ts
6578
+ // ../idv-gui/src/utils/getValidateObjectHelper.ts
6611
6579
  var tl = (e, t, n) => {
6612
6580
  let r = {};
6613
6581
  return e.forEach((e, i) => {
@@ -6618,8 +6586,7 @@ var tl = (e, t, n) => {
6618
6586
  "passed" in e && e.passed === !1 && (r[`remote_${i}`] = () => n != null && n() ? !0 : e.message);
6619
6587
  }), r;
6620
6588
  };
6621
- //#endregion
6622
- //#region ../idv-gui/src/hooks/useFormFieldValidation.ts
6589
+ // ../idv-gui/src/hooks/useFormFieldValidation.ts
6623
6590
  I();
6624
6591
  var nl = (e) => e.filter((e) => "passed" in e && e.passed === !1), rl = (e) => {
6625
6592
  if (!e) return [];
@@ -6768,8 +6735,7 @@ var nl = (e) => e.filter((e) => "passed" in e && e.passed === !1), rl = (e) => {
6768
6735
  }))]
6769
6736
  });
6770
6737
  };
6771
- //#endregion
6772
- //#region ../idv-gui/src/hooks/useIsKeyboard.ts
6738
+ // ../idv-gui/src/hooks/useIsKeyboard.ts
6773
6739
  I();
6774
6740
  var ll = () => {
6775
6741
  let [e, t] = N(!1);
@@ -6780,8 +6746,7 @@ var ll = () => {
6780
6746
  };
6781
6747
  }, []), e;
6782
6748
  };
6783
- //#endregion
6784
- //#region ../idv-gui/src/screens/questions-screen/components/questions/selector-options-question/SelectorOptionsOption.tsx
6749
+ // ../idv-gui/src/screens/questions-screen/components/questions/selector-options-question/SelectorOptionsOption.tsx
6785
6750
  I();
6786
6751
  var ul = ({ option: e, layout: t, dataSourceQuestion: n, register: r, watch: i, validate: a, clearFieldErrors: o }) => {
6787
6752
  let [s, c] = N(!1), l = ll(), u = String(n.id), d = i(u) === String(e.id), f = r(u, {
@@ -6859,8 +6824,7 @@ var ul = ({ option: e, layout: t, dataSourceQuestion: n, register: r, watch: i,
6859
6824
  }, o.id))]
6860
6825
  })
6861
6826
  });
6862
- //#endregion
6863
- //#region ../idv-gui/src/screens/questions-screen/components/questions/selector-buttons-question/SelectorButtonsOption.tsx
6827
+ // ../idv-gui/src/screens/questions-screen/components/questions/selector-buttons-question/SelectorButtonsOption.tsx
6864
6828
  I();
6865
6829
  var fl = ({ option: e, layout: t, dataSourceQuestion: n, register: r, watch: i, validate: a, clearFieldErrors: o }) => {
6866
6830
  let [s, c] = N(!1), l = ll(), u = String(n.id), d = i(u) === String(e.id), f = r(u, {
@@ -6940,8 +6904,7 @@ var fl = ({ option: e, layout: t, dataSourceQuestion: n, register: r, watch: i,
6940
6904
  })]
6941
6905
  })
6942
6906
  });
6943
- //#endregion
6944
- //#region ../idv-gui/src/screens/questions-screen/components/questions/select-input-custom/SelectInputCustom.tsx
6907
+ // ../idv-gui/src/screens/questions-screen/components/questions/select-input-custom/SelectInputCustom.tsx
6945
6908
  I();
6946
6909
  var ml = ({ isOpen: e, image: t }) => /* @__PURE__ */ U("div", {
6947
6910
  "data-ui": "gui-custom-select-chevron",
@@ -7257,8 +7220,7 @@ var ml = ({ isOpen: e, image: t }) => /* @__PURE__ */ U("div", {
7257
7220
  })]
7258
7221
  });
7259
7222
  };
7260
- //#endregion
7261
- //#region ../idv-gui/src/screens/questions-screen/components/questions/multi-selector-options-question/MultiSelectorOptionsOption.tsx
7223
+ // ../idv-gui/src/screens/questions-screen/components/questions/multi-selector-options-question/MultiSelectorOptionsOption.tsx
7262
7224
  I();
7263
7225
  var yl = ({ option: e, layout: t, dataSourceQuestion: n, isChosen: r, onToggle: i }) => {
7264
7226
  let [a, o] = N(!1), s = ll(), c = String(n.id), l = t.option, u = t.optionSelected, d = {
@@ -7353,8 +7315,7 @@ var yl = ({ option: e, layout: t, dataSourceQuestion: n, isChosen: r, onToggle:
7353
7315
  })
7354
7316
  });
7355
7317
  };
7356
- //#endregion
7357
- //#region ../idv-gui/src/screens/questions-screen/components/questions/multi-selector-buttons-question/MultiSelectorButtonsOption.tsx
7318
+ // ../idv-gui/src/screens/questions-screen/components/questions/multi-selector-buttons-question/MultiSelectorButtonsOption.tsx
7358
7319
  I();
7359
7320
  var xl = ({ option: e, layout: t, dataSourceQuestion: n, isChosen: r, onToggle: i }) => {
7360
7321
  let [a, o] = N(!1), s = ll(), c = String(n.id), l = t.option, u = t.optionSelected, d = {
@@ -7451,8 +7412,7 @@ var xl = ({ option: e, layout: t, dataSourceQuestion: n, isChosen: r, onToggle:
7451
7412
  })
7452
7413
  });
7453
7414
  };
7454
- //#endregion
7455
- //#region ../idv-gui/src/screens/questions-screen/components/question/index.tsx
7415
+ // ../idv-gui/src/screens/questions-screen/components/question/index.tsx
7456
7416
  I();
7457
7417
  var Cl = ({ layout: e, dataSourceQuestion: t, parentElementRef: n, shouldClearErrorsOnChange: r = !0 }) => {
7458
7418
  var i;
@@ -7557,8 +7517,7 @@ var Cl = ({ layout: e, dataSourceQuestion: t, parentElementRef: n, shouldClearEr
7557
7517
  });
7558
7518
  }
7559
7519
  };
7560
- //#endregion
7561
- //#region ../idv-gui/src/screens/questions-screen/index.tsx
7520
+ // ../idv-gui/src/screens/questions-screen/index.tsx
7562
7521
  Dl = Ol, Dl.MODULE = Po, Dl.ERROR_ENUM_NAME = "GuiModuleError", Dl.SHORT_CODE = "GM", I();
7563
7522
  var kl = ({ header: e, title: t, buttons: n, footer: r, questions: i, dataSource: a, properties: o, backgroundColor: s, backgroundImage: c }) => {
7564
7523
  var l;
@@ -7679,8 +7638,7 @@ var kl = ({ header: e, title: t, buttons: n, footer: r, questions: i, dataSource
7679
7638
  minHeight: "100%",
7680
7639
  overflow: "auto"
7681
7640
  };
7682
- //#endregion
7683
- //#region ../idv-gui/src/screens/gallery-screen/index.tsx
7641
+ // ../idv-gui/src/screens/gallery-screen/index.tsx
7684
7642
  I();
7685
7643
  var Nl = ({ header: e, footer: t, buttons: n, backgroundColor: r, backgroundImage: i, selectionLimit: a }) => {
7686
7644
  var o;
@@ -7760,8 +7718,7 @@ var Nl = ({ header: e, footer: t, buttons: n, backgroundColor: r, backgroundImag
7760
7718
  minHeight: "100%",
7761
7719
  overflow: "auto"
7762
7720
  };
7763
- //#endregion
7764
- //#region ../idv-gui/src/screens/camera-screen/index.tsx
7721
+ // ../idv-gui/src/screens/camera-screen/index.tsx
7765
7722
  I();
7766
7723
  var Ll = ({ header: e, footer: t, backgroundColor: n, backgroundImage: r, buttons: i, selectionLimit: a }) => {
7767
7724
  var o;
@@ -7894,8 +7851,7 @@ var Ll = ({ header: e, footer: t, backgroundColor: n, backgroundImage: r, button
7894
7851
  return e.apply(this, arguments);
7895
7852
  };
7896
7853
  }(), Vl = (e, t) => typeof t == "number" && t > 0 ? t * 1e3 : e;
7897
- //#endregion
7898
- //#region ../idv-gui/src/hooks/useGeolocationLogic.ts
7854
+ // ../idv-gui/src/hooks/useGeolocationLogic.ts
7899
7855
  I();
7900
7856
  var Hl = ({ askEveryTime: e, getLocationTimeout: t, locationAccuracy: n }) => {
7901
7857
  var r;
@@ -8173,8 +8129,7 @@ var tu = Ut(void 0), nu = ({ children: e, handlers: t }) => /* @__PURE__ */ U(tu
8173
8129
  let a = G(n) || "transparent", o = G(r), s = G(i);
8174
8130
  return e ? o || a : t && s || a;
8175
8131
  };
8176
- //#endregion
8177
- //#region ../idv-gui/src/components/imageButton/index.tsx
8132
+ // ../idv-gui/src/components/imageButton/index.tsx
8178
8133
  I();
8179
8134
  var ou = (e) => {
8180
8135
  let { image: t, responseBody: n, type: r, url: i, paddings: a, backgroundColor: o, highlightColor: s, hoverColor: c, cornerRadius: l, onClick: u } = e, { perform: d } = no(), [f, p] = N(!0), [m, h] = N(0), { failedAssets: g } = io(), { isHovered: _, isPressed: v, interactionHandlers: y } = ns(), b = Eo(t, g)[m];
@@ -8408,8 +8363,7 @@ function hu(e) {
8408
8363
  let t = mu[e.type];
8409
8364
  return t ? t(e) : null;
8410
8365
  }
8411
- //#endregion
8412
- //#region ../idv-gui/src/screens/generic/components/column/index.tsx
8366
+ // ../idv-gui/src/screens/generic/components/column/index.tsx
8413
8367
  var gu = ({ elements: e, horizontalAlignment: t, backgroundColor: n, cornerRadius: r, paddings: i }) => {
8414
8368
  let { layoutDirection: a } = ao(), o = du(a), s = o[yo.START];
8415
8369
  return /* @__PURE__ */ U("div", {
@@ -8586,8 +8540,7 @@ var gu = ({ elements: e, horizontalAlignment: t, backgroundColor: n, cornerRadiu
8586
8540
  }
8587
8541
  return null;
8588
8542
  };
8589
- //#endregion
8590
- //#region ../../node_modules/qrcode.react/lib/esm/index.js
8543
+ // ../../node_modules/qrcode.react/lib/esm/index.js
8591
8544
  Br();
8592
8545
  var Su = Object.defineProperty, Cu = Object.getOwnPropertySymbols, wu = Object.prototype.hasOwnProperty, Tu = Object.prototype.propertyIsEnumerable, Eu = (e, t, n) => t in e ? Su(e, t, {
8593
8546
  enumerable: !0,
@@ -9537,8 +9490,7 @@ var Ju = L.forwardRef(function(e, t) {
9537
9490
  }), b);
9538
9491
  });
9539
9492
  Ju.displayName = "QRCodeSVG";
9540
- //#endregion
9541
- //#region ../idv-gui/src/screens/device-transfer/styles.ts
9493
+ // ../idv-gui/src/screens/device-transfer/styles.ts
9542
9494
  var Yu = {
9543
9495
  width: "100%",
9544
9496
  height: "auto",
@@ -9614,8 +9566,7 @@ var Yu = {
9614
9566
  }({}), nd = /* @__PURE__ */ function(e) {
9615
9567
  return e.OK = "ok", e.SIZE = "size", e.FORMAT = "format", e;
9616
9568
  }({});
9617
- //#endregion
9618
- //#region ../idv-gui/src/screens/upload-files/utils.ts
9569
+ // ../idv-gui/src/screens/upload-files/utils.ts
9619
9570
  function rd(e) {
9620
9571
  if (e < 1024) return `${e} B`;
9621
9572
  let t = e / 1024;
@@ -9672,8 +9623,7 @@ var cd = (e) => {
9672
9623
  cursor: "pointer",
9673
9624
  padding: 0
9674
9625
  };
9675
- //#endregion
9676
- //#region ../idv-gui/src/screens/upload-files/components/upload-file-row/UploadFileRow.tsx
9626
+ // ../idv-gui/src/screens/upload-files/components/upload-file-row/UploadFileRow.tsx
9677
9627
  I();
9678
9628
  var hd = ({ uploadFile: e, uploadPhase: t, onRetryFile: n, onRemoveFile: r }) => {
9679
9629
  let [i, a] = N(!1), o = mn(null), s = _n(() => {
@@ -9760,8 +9710,7 @@ var hd = ({ uploadFile: e, uploadPhase: t, onRetryFile: n, onRemoveFile: r }) =>
9760
9710
  transition: "width 0.15s ease-out"
9761
9711
  } })
9762
9712
  });
9763
- //#endregion
9764
- //#region ../idv-gui/src/screens/upload-files/hooks/useUploadFiles.ts
9713
+ // ../idv-gui/src/screens/upload-files/hooks/useUploadFiles.ts
9765
9714
  I();
9766
9715
  var _d = ({ settings: e, errorMessages: t, serviceToken: n, uploadFileToTemp: r, abortRequest: i }) => {
9767
9716
  var a;
@@ -9992,8 +9941,7 @@ var _d = ({ settings: e, errorMessages: t, serviceToken: n, uploadFileToTemp: r,
9992
9941
  padding: "24px",
9993
9942
  width: "100%"
9994
9943
  };
9995
- //#endregion
9996
- //#region ../idv-gui/src/screens/upload-files/index.tsx
9944
+ // ../idv-gui/src/screens/upload-files/index.tsx
9997
9945
  I();
9998
9946
  var Ad = (e) => {
9999
9947
  var t, n, r, i, a;
@@ -10361,8 +10309,7 @@ var Md, Nd = !1, Pd = ({ children: e, locale: t, direction: n }) => /* @__PURE__
10361
10309
  }
10362
10310
  };
10363
10311
  Md = Id, Md.displayName = Po, Md.getSupportedTemplates = () => Object.values(co), Md.getIdentifier = () => Po, ya(Po, Id);
10364
- //#endregion
10365
- //#region ../../node_modules/class-validator/esm5/metadata/ValidationMetadata.js
10312
+ // ../../node_modules/class-validator/esm5/metadata/ValidationMetadata.js
10366
10313
  var Ld = function() {
10367
10314
  function e(e) {
10368
10315
  this.groups = [], this.each = !1, this.context = void 0, this.type = e.type, this.name = e.name, this.target = e.target, this.propertyName = e.propertyName, this.constraints = e == null ? void 0 : e.constraints, this.constraintCls = e.constraintCls, this.validationTypeOptions = e.validationTypeOptions, e.validationOptions && (this.message = e.validationOptions.message, this.groups = e.validationOptions.groups, this.always = e.validationOptions.always, this.each = e.validationOptions.each, this.context = e.validationOptions.context, this.validateIf = e.validationOptions.validateIf);
@@ -10393,26 +10340,22 @@ var Ld = function() {
10393
10340
  }), t;
10394
10341
  }, e;
10395
10342
  }();
10396
- //#endregion
10397
- //#region ../../node_modules/class-validator/esm5/utils/convert-to-array.util.js
10343
+ // ../../node_modules/class-validator/esm5/utils/convert-to-array.util.js
10398
10344
  function zd(e) {
10399
10345
  return e instanceof Map ? Array.from(e.values()) : Array.isArray(e) ? e : Array.from(e);
10400
10346
  }
10401
- //#endregion
10402
- //#region ../../node_modules/class-validator/esm5/utils/get-global.util.js
10347
+ // ../../node_modules/class-validator/esm5/utils/get-global.util.js
10403
10348
  function Bd() {
10404
10349
  if (typeof globalThis < "u") return globalThis;
10405
10350
  if (typeof global < "u") return global;
10406
10351
  if (typeof window < "u") return window;
10407
10352
  if (typeof self < "u") return self;
10408
10353
  }
10409
- //#endregion
10410
- //#region ../../node_modules/class-validator/esm5/utils/is-promise.util.js
10354
+ // ../../node_modules/class-validator/esm5/utils/is-promise.util.js
10411
10355
  function Vd(e) {
10412
10356
  return typeof e == "object" && !!e && typeof e.then == "function";
10413
10357
  }
10414
- //#endregion
10415
- //#region ../../node_modules/class-validator/esm5/metadata/MetadataStorage.js
10358
+ // ../../node_modules/class-validator/esm5/metadata/MetadataStorage.js
10416
10359
  var Hd = function(e) {
10417
10360
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
10418
10361
  if (n) return n.call(e);
@@ -10510,8 +10453,7 @@ function Kd() {
10510
10453
  var e = Bd();
10511
10454
  return e.classValidatorMetadataStorage || (e.classValidatorMetadataStorage = new Gd()), e.classValidatorMetadataStorage;
10512
10455
  }
10513
- //#endregion
10514
- //#region ../../node_modules/class-validator/esm5/validation/ValidationError.js
10456
+ // ../../node_modules/class-validator/esm5/validation/ValidationError.js
10515
10457
  var qd = function() {
10516
10458
  function e() {}
10517
10459
  return e.prototype.toString = function(e, t, n, r) {
@@ -10544,8 +10486,7 @@ var qd = function() {
10544
10486
  }).indexOf(e) !== -1;
10545
10487
  }, e.CUSTOM_VALIDATION = "customValidation", e.NESTED_VALIDATION = "nestedValidation", e.PROMISE_VALIDATION = "promiseValidation", e.CONDITIONAL_VALIDATION = "conditionalValidation", e.WHITELIST = "whitelistValidation", e.IS_DEFINED = "isDefined", e;
10546
10488
  }();
10547
- //#endregion
10548
- //#region ../../node_modules/class-validator/esm5/validation/ValidationUtils.js
10489
+ // ../../node_modules/class-validator/esm5/validation/ValidationUtils.js
10549
10490
  function Yd(e) {
10550
10491
  return Array.isArray(e) ? e.join(", ") : (typeof e == "symbol" && (e = e.description), `${e}`);
10551
10492
  }
@@ -10587,7 +10528,7 @@ var Xd = function() {
10587
10528
  var o = this.validatorOptions ? this.validatorOptions.groups : void 0, s = this.validatorOptions && this.validatorOptions.strictGroups || !1, c = this.validatorOptions && this.validatorOptions.always || !1, l = ((a = this.validatorOptions) == null ? void 0 : a.forbidUnknownValues) === void 0 || this.validatorOptions.forbidUnknownValues !== !1, u = this.metadataStorage.getTargetValidationMetadatas(e.constructor, t, c, s, o), d = this.metadataStorage.groupByPropertyName(u);
10588
10529
  if (l && !u.length) {
10589
10530
  var f = new qd();
10590
- (!this.validatorOptions || !this.validatorOptions.validationError || this.validatorOptions.validationError.target === void 0 || this.validatorOptions.validationError.target === !0) && (f.target = e), f.value = void 0, f.property = void 0, f.children = [], f.constraints = { unknownValue: "an unknown value was passed to the validate function" }, n.push(f);
10531
+ this.validatorOptions && this.validatorOptions.validationError && this.validatorOptions.validationError.target !== void 0 && this.validatorOptions.validationError.target !== !0 || (f.target = e), f.value = void 0, f.property = void 0, f.children = [], f.constraints = { unknownValue: "an unknown value was passed to the validate function" }, n.push(f);
10591
10532
  } else this.validatorOptions && this.validatorOptions.whitelist && this.whitelist(e, d, n), Object.keys(d).forEach(function(t) {
10592
10533
  var i = e[t], a = d[t].filter(function(e) {
10593
10534
  return e.type === Jd.IS_DEFINED;
@@ -10603,7 +10544,7 @@ var Xd = function() {
10603
10544
  }, e.prototype.whitelist = function(e, t, n) {
10604
10545
  var r = this, i = [];
10605
10546
  Object.keys(e).forEach(function(e) {
10606
- (!t[e] || t[e].length === 0) && i.push(e);
10547
+ t[e] && t[e].length !== 0 || i.push(e);
10607
10548
  }), i.length > 0 && (this.validatorOptions && this.validatorOptions.forbidNonWhitelisted ? i.forEach(function(t) {
10608
10549
  var i, a = r.generateValidationError(e, e[t], t);
10609
10550
  a.constraints = (i = {}, i[Jd.WHITELIST] = `property ${t} should not exist`, i), a.children = void 0, n.push(a);
@@ -10627,10 +10568,10 @@ var Xd = function() {
10627
10568
  }), c = i.filter(function(e) {
10628
10569
  return e.type === Jd.CONDITIONAL_VALIDATION;
10629
10570
  }), l = this.generateValidationError(e, t, n);
10630
- a.push(l), this.conditionalValidations(e, t, c) && (this.customValidations(e, t, r, l), this.mapContexts(e, t, r, l), !(t === void 0 && this.validatorOptions && this.validatorOptions.skipUndefinedProperties === !0) && (t === null && this.validatorOptions && this.validatorOptions.skipNullProperties === !0 || t == null && this.validatorOptions && this.validatorOptions.skipMissingProperties === !0 || (this.customValidations(e, t, o, l), this.nestedValidations(t, s, l), this.mapContexts(e, t, i, l), this.mapContexts(e, t, o, l))));
10571
+ a.push(l), this.conditionalValidations(e, t, c) && (this.customValidations(e, t, r, l), this.mapContexts(e, t, r, l), t === void 0 && this.validatorOptions && this.validatorOptions.skipUndefinedProperties === !0 || t === null && this.validatorOptions && this.validatorOptions.skipNullProperties === !0 || t == null && this.validatorOptions && this.validatorOptions.skipMissingProperties === !0 || (this.customValidations(e, t, o, l), this.nestedValidations(t, s, l), this.mapContexts(e, t, i, l), this.mapContexts(e, t, o, l)));
10631
10572
  }, e.prototype.generateValidationError = function(e, t, n) {
10632
10573
  var r = new qd();
10633
- return (!this.validatorOptions || !this.validatorOptions.validationError || this.validatorOptions.validationError.target === void 0 || this.validatorOptions.validationError.target === !0) && (r.target = e), (!this.validatorOptions || !this.validatorOptions.validationError || this.validatorOptions.validationError.value === void 0 || this.validatorOptions.validationError.value === !0) && (r.value = t), r.property = n, r.children = [], r.constraints = {}, r;
10574
+ return this.validatorOptions && this.validatorOptions.validationError && this.validatorOptions.validationError.target !== void 0 && this.validatorOptions.validationError.target !== !0 || (r.target = e), this.validatorOptions && this.validatorOptions.validationError && this.validatorOptions.validationError.value !== void 0 && this.validatorOptions.validationError.value !== !0 || (r.value = t), r.property = n, r.children = [], r.constraints = {}, r;
10634
10575
  }, e.prototype.conditionalValidations = function(e, t, n) {
10635
10576
  return n.map(function(n) {
10636
10577
  return n.constraints[0](e, t);
@@ -10873,8 +10814,7 @@ var Xd = function() {
10873
10814
  function rf(e) {
10874
10815
  return nf.get(e);
10875
10816
  }
10876
- //#endregion
10877
- //#region ../../node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
10817
+ // ../../node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
10878
10818
  var af = function() {
10879
10819
  function e(e, t, n) {
10880
10820
  n === void 0 && (n = !1), this.target = e, this.name = t, this.async = n;
@@ -10887,8 +10827,7 @@ var af = function() {
10887
10827
  configurable: !0
10888
10828
  }), e;
10889
10829
  }();
10890
- //#endregion
10891
- //#region ../../node_modules/class-validator/esm5/register-decorator.js
10830
+ // ../../node_modules/class-validator/esm5/register-decorator.js
10892
10831
  function of(e) {
10893
10832
  var t;
10894
10833
  if (e.validator instanceof Function) {
@@ -10915,8 +10854,7 @@ function of(e) {
10915
10854
  };
10916
10855
  Kd().addValidationMetadata(new Ld(r));
10917
10856
  }
10918
- //#endregion
10919
- //#region ../../node_modules/class-validator/esm5/decorator/common/ValidateBy.js
10857
+ // ../../node_modules/class-validator/esm5/decorator/common/ValidateBy.js
10920
10858
  function sf(e, t) {
10921
10859
  return function(n) {
10922
10860
  return e(t && t.each ? "each value in " : "", n);
@@ -10934,8 +10872,7 @@ function cf(e, t) {
10934
10872
  });
10935
10873
  };
10936
10874
  }
10937
- //#endregion
10938
- //#region ../../node_modules/class-validator/esm5/decorator/common/IsDefined.js
10875
+ // ../../node_modules/class-validator/esm5/decorator/common/IsDefined.js
10939
10876
  var lf = Jd.IS_DEFINED;
10940
10877
  function uf(e) {
10941
10878
  return e != null;
@@ -10953,8 +10890,7 @@ function df(e) {
10953
10890
  }
10954
10891
  }, e);
10955
10892
  }
10956
- //#endregion
10957
- //#region ../../node_modules/class-validator/esm5/decorator/common/IsOptional.js
10893
+ // ../../node_modules/class-validator/esm5/decorator/common/IsOptional.js
10958
10894
  var ff = "isOptional";
10959
10895
  function X(e) {
10960
10896
  return function(t, n) {
@@ -10971,8 +10907,7 @@ function X(e) {
10971
10907
  Kd().addValidationMetadata(new Ld(r));
10972
10908
  };
10973
10909
  }
10974
- //#endregion
10975
- //#region ../../node_modules/class-validator/esm5/decorator/common/ValidateIf.js
10910
+ // ../../node_modules/class-validator/esm5/decorator/common/ValidateIf.js
10976
10911
  function pf(e, t) {
10977
10912
  return function(n, r) {
10978
10913
  var i = {
@@ -10985,8 +10920,7 @@ function pf(e, t) {
10985
10920
  Kd().addValidationMetadata(new Ld(i));
10986
10921
  };
10987
10922
  }
10988
- //#endregion
10989
- //#region ../../node_modules/class-validator/esm5/decorator/common/ValidateNested.js
10923
+ // ../../node_modules/class-validator/esm5/decorator/common/ValidateNested.js
10990
10924
  var mf = function() {
10991
10925
  return mf = Object.assign || function(e) {
10992
10926
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
@@ -11005,8 +10939,7 @@ function hf(e) {
11005
10939
  Kd().addValidationMetadata(new Ld(r));
11006
10940
  };
11007
10941
  }
11008
- //#endregion
11009
- //#region ../../node_modules/class-validator/esm5/decorator/common/IsNotEmpty.js
10942
+ // ../../node_modules/class-validator/esm5/decorator/common/IsNotEmpty.js
11010
10943
  var gf = "isNotEmpty";
11011
10944
  function _f(e) {
11012
10945
  return e !== "" && e != null;
@@ -11024,8 +10957,7 @@ function vf(e) {
11024
10957
  }
11025
10958
  }, e);
11026
10959
  }
11027
- //#endregion
11028
- //#region ../../node_modules/class-validator/esm5/decorator/typechecker/IsBoolean.js
10960
+ // ../../node_modules/class-validator/esm5/decorator/typechecker/IsBoolean.js
11029
10961
  var yf = "isBoolean";
11030
10962
  function bf(e) {
11031
10963
  return e instanceof Boolean || typeof e == "boolean";
@@ -11043,8 +10975,7 @@ function xf(e) {
11043
10975
  }
11044
10976
  }, e);
11045
10977
  }
11046
- //#endregion
11047
- //#region ../../node_modules/class-validator/esm5/decorator/typechecker/IsNumber.js
10978
+ // ../../node_modules/class-validator/esm5/decorator/typechecker/IsNumber.js
11048
10979
  var Sf = "isNumber";
11049
10980
  function Cf(e, t) {
11050
10981
  if (t === void 0 && (t = {}), typeof e != "number") return !1;
@@ -11070,8 +11001,7 @@ function wf(e, t) {
11070
11001
  }
11071
11002
  }, t);
11072
11003
  }
11073
- //#endregion
11074
- //#region ../../node_modules/class-validator/esm5/decorator/typechecker/IsEnum.js
11004
+ // ../../node_modules/class-validator/esm5/decorator/typechecker/IsEnum.js
11075
11005
  var Tf = function(e, t) {
11076
11006
  var n = typeof Symbol == "function" && e[Symbol.iterator];
11077
11007
  if (!n) return e;
@@ -11117,8 +11047,7 @@ function kf(e, t) {
11117
11047
  }
11118
11048
  }, t);
11119
11049
  }
11120
- //#endregion
11121
- //#region ../../node_modules/class-validator/esm5/decorator/typechecker/IsString.js
11050
+ // ../../node_modules/class-validator/esm5/decorator/typechecker/IsString.js
11122
11051
  var Af = "isString";
11123
11052
  function jf(e) {
11124
11053
  return e instanceof String || typeof e == "string";
@@ -11136,8 +11065,7 @@ function Mf(e) {
11136
11065
  }
11137
11066
  }, e);
11138
11067
  }
11139
- //#endregion
11140
- //#region ../../node_modules/class-validator/esm5/decorator/typechecker/IsArray.js
11068
+ // ../../node_modules/class-validator/esm5/decorator/typechecker/IsArray.js
11141
11069
  var Nf = "isArray";
11142
11070
  function Pf(e) {
11143
11071
  return Array.isArray(e);
@@ -11155,8 +11083,7 @@ function Ff(e) {
11155
11083
  }
11156
11084
  }, e);
11157
11085
  }
11158
- //#endregion
11159
- //#region ../../node_modules/class-validator/esm5/decorator/typechecker/IsObject.js
11086
+ // ../../node_modules/class-validator/esm5/decorator/typechecker/IsObject.js
11160
11087
  var If = "isObject";
11161
11088
  function Lf(e) {
11162
11089
  return e != null && (typeof e == "object" || typeof e == "function") && !Array.isArray(e);
@@ -11174,19 +11101,16 @@ function Rf(e) {
11174
11101
  }
11175
11102
  }, e);
11176
11103
  }
11177
- //#endregion
11178
- //#region ../../node_modules/class-validator/esm5/index.js
11104
+ // ../../node_modules/class-validator/esm5/index.js
11179
11105
  function zf(e, t, n) {
11180
11106
  return typeof e == "string" ? rf(tf).validateSync(e, t, n) : rf(tf).validateSync(e, t);
11181
11107
  }
11182
- //#endregion
11183
- //#region ../../node_modules/class-transformer/esm5/enums/transformation-type.enum.js
11108
+ // ../../node_modules/class-transformer/esm5/enums/transformation-type.enum.js
11184
11109
  var Z;
11185
11110
  (function(e) {
11186
11111
  e[e.PLAIN_TO_CLASS = 0] = "PLAIN_TO_CLASS", e[e.CLASS_TO_PLAIN = 1] = "CLASS_TO_PLAIN", e[e.CLASS_TO_CLASS = 2] = "CLASS_TO_CLASS";
11187
11112
  })(Z || (Z = {}));
11188
- //#endregion
11189
- //#region ../../node_modules/class-transformer/esm5/storage.js
11113
+ // ../../node_modules/class-transformer/esm5/storage.js
11190
11114
  var Bf = new (function() {
11191
11115
  function e() {
11192
11116
  this._typeMetadatas = /* @__PURE__ */ new Map(), this._transformMetadatas = /* @__PURE__ */ new Map(), this._exposeMetadatas = /* @__PURE__ */ new Map(), this._excludeMetadatas = /* @__PURE__ */ new Map(), this._ancestorsMap = /* @__PURE__ */ new Map();
@@ -11279,21 +11203,18 @@ var Bf = new (function() {
11279
11203
  return this._ancestorsMap.get(e);
11280
11204
  }, e;
11281
11205
  }())();
11282
- //#endregion
11283
- //#region ../../node_modules/class-transformer/esm5/utils/get-global.util.js
11206
+ // ../../node_modules/class-transformer/esm5/utils/get-global.util.js
11284
11207
  function Vf() {
11285
11208
  if (typeof globalThis < "u") return globalThis;
11286
11209
  if (typeof global < "u") return global;
11287
11210
  if (typeof window < "u") return window;
11288
11211
  if (typeof self < "u") return self;
11289
11212
  }
11290
- //#endregion
11291
- //#region ../../node_modules/class-transformer/esm5/utils/is-promise.util.js
11213
+ // ../../node_modules/class-transformer/esm5/utils/is-promise.util.js
11292
11214
  function Hf(e) {
11293
11215
  return typeof e == "object" && !!e && typeof e.then == "function";
11294
11216
  }
11295
- //#endregion
11296
- //#region ../../node_modules/class-transformer/esm5/TransformOperationExecutor.js
11217
+ // ../../node_modules/class-transformer/esm5/TransformOperationExecutor.js
11297
11218
  var Uf = function(e, t, n) {
11298
11219
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
11299
11220
  return e.concat(a || Array.prototype.slice.call(t));
@@ -11347,9 +11268,9 @@ var Gf = function() {
11347
11268
  });
11348
11269
  if (!i && typeof t == "object" && t && typeof t.then == "function") return t;
11349
11270
  if (typeof t == "object" && t) {
11350
- !n && t.constructor !== Object && (!Array.isArray(t) && t.constructor === Array || (n = t.constructor)), !n && e && (n = e.constructor), this.options.enableCircularCheck && this.recursionStack.add(t);
11271
+ n || t.constructor === Object || !Array.isArray(t) && t.constructor === Array || (n = t.constructor), !n && e && (n = e.constructor), this.options.enableCircularCheck && this.recursionStack.add(t);
11351
11272
  var c = this.getKeys(n, t, i), l = e || {};
11352
- !e && (this.transformationType === Z.PLAIN_TO_CLASS || this.transformationType === Z.CLASS_TO_CLASS) && (l = i ? /* @__PURE__ */ new Map() : n ? new n() : {});
11273
+ e || this.transformationType !== Z.PLAIN_TO_CLASS && this.transformationType !== Z.CLASS_TO_CLASS || (l = i ? /* @__PURE__ */ new Map() : n ? new n() : {});
11353
11274
  for (var u = function(r) {
11354
11275
  if (r === "__proto__" || r === "constructor") return "continue";
11355
11276
  var o = r, s = r, c = r;
@@ -11520,21 +11441,18 @@ var Gf = function() {
11520
11441
  function Yf(e, t, n) {
11521
11442
  return Jf.plainToInstance(e, t, n);
11522
11443
  }
11523
- //#endregion
11524
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateMetadata.js
11444
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/decorateMetadata.js
11525
11445
  function Q(e, t) {
11526
11446
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
11527
11447
  }
11528
- //#endregion
11529
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
11448
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/decorate.js
11530
11449
  function $(e, t, n, r) {
11531
11450
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
11532
11451
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
11533
11452
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
11534
11453
  return i > 3 && a && Object.defineProperty(t, n, a), a;
11535
11454
  }
11536
- //#endregion
11537
- //#region src/models/workflow/session/workflow/workflow-step/workflow-step-client/WorkflowStepClientModel.ts
11455
+ // src/models/workflow/session/workflow/workflow-step/workflow-step-client/WorkflowStepClientModel.ts
11538
11456
  var Xf = class {};
11539
11457
  $([
11540
11458
  df(),
@@ -11545,8 +11463,7 @@ $([
11545
11463
  Rf(),
11546
11464
  Q("design:type", typeof Record > "u" ? Object : Record)
11547
11465
  ], Xf.prototype, "templateLayout", void 0);
11548
- //#endregion
11549
- //#region src/models/workflow/session/workflow/workflow-step/WorkflowStepModel.ts
11466
+ // src/models/workflow/session/workflow/workflow-step/WorkflowStepModel.ts
11550
11467
  var Zf = class {};
11551
11468
  $([
11552
11469
  df(),
@@ -11579,8 +11496,7 @@ $([
11579
11496
  hf(),
11580
11497
  Q("design:type", Xf === void 0 ? Object : Xf)
11581
11498
  ], Zf.prototype, "client", void 0);
11582
- //#endregion
11583
- //#region src/models/workflow/session/workflow/workflow-client/WorkflowClientModel.ts
11499
+ // src/models/workflow/session/workflow/workflow-client/WorkflowClientModel.ts
11584
11500
  var Qf = (e) => Array.isArray(e) && e.some((e) => e && typeof e == "object" && (e.templateId === "PROGRESS" || e.templateId === "GENERIC_PROGRESS")), $f = () => cf({
11585
11501
  name: "hasProgressStep",
11586
11502
  validator: {
@@ -11603,8 +11519,7 @@ $([
11603
11519
  $f(),
11604
11520
  Q("design:type", typeof Array > "u" ? Object : Array)
11605
11521
  ], ep.prototype, "steps", void 0);
11606
- //#endregion
11607
- //#region src/models/workflow/session/workflow/WorkflowModel.ts
11522
+ // src/models/workflow/session/workflow/WorkflowModel.ts
11608
11523
  var tp, np = class {
11609
11524
  static isWorkflowModel(e) {
11610
11525
  return typeof e == "object" && !!e && "id" in e && "steps" in e && "client" in e && !("error" in e);
@@ -11668,16 +11583,14 @@ tp = np, tp.fromPlain = (e) => {
11668
11583
  xf(),
11669
11584
  Q("design:type", Boolean)
11670
11585
  ], np.prototype, "trackLocation", void 0);
11671
- //#endregion
11672
- //#region src/models/workflow/session/workflow/workflow-logging/WorkflowLoggingModel.tsx
11586
+ // src/models/workflow/session/workflow/workflow-logging/WorkflowLoggingModel.tsx
11673
11587
  var rp = class {};
11674
11588
  $([
11675
11589
  X(),
11676
11590
  kf(ai),
11677
11591
  Q("design:type", ai === void 0 ? Object : ai)
11678
11592
  ], rp.prototype, "level", void 0);
11679
- //#endregion
11680
- //#region src/models/workflow/session/property/PropertyModel.ts
11593
+ // src/models/workflow/session/property/PropertyModel.ts
11681
11594
  var ip = class {};
11682
11595
  $([
11683
11596
  df(),
@@ -11722,8 +11635,7 @@ $([
11722
11635
  wf(),
11723
11636
  Q("design:type", Object)
11724
11637
  ], ip.prototype, "decimal", void 0), $([X(), Q("design:type", Object)], ip.prototype, "object", void 0);
11725
- //#endregion
11726
- //#region src/models/workflow/session/SessionModel.ts
11638
+ // src/models/workflow/session/SessionModel.ts
11727
11639
  var ap, op = class {
11728
11640
  static isSessionModel(e) {
11729
11641
  return typeof e == "object" && !!e && "id" in e && "currentStep" in e && "workflow" in e && "properties" in e && "isProcessingFiles" in e && !("error" in e);
@@ -11786,8 +11698,7 @@ ap = op, ap.fromPlain = (e) => {
11786
11698
  Rf(),
11787
11699
  Q("design:type", typeof Record > "u" ? Object : Record)
11788
11700
  ], op.prototype, "metadata", void 0);
11789
- //#endregion
11790
- //#region src/store/idvIntegrationController.ts
11701
+ // src/store/idvIntegrationController.ts
11791
11702
  var sp = (e, t) => ({
11792
11703
  _isInitialized: !1,
11793
11704
  _initializationInProgress: !1,
@@ -12340,8 +12251,7 @@ var sp = (e, t) => ({
12340
12251
  })();
12341
12252
  }
12342
12253
  });
12343
- //#endregion
12344
- //#region src/helpers/decorators.ts
12254
+ // src/helpers/decorators.ts
12345
12255
  function cp(e, t, n) {
12346
12256
  let r = n.value;
12347
12257
  n.value = /* @__PURE__ */ function() {
@@ -12371,8 +12281,7 @@ function cp(e, t, n) {
12371
12281
  };
12372
12282
  }();
12373
12283
  }
12374
- //#endregion
12375
- //#region src/services/IdvFetchService.ts
12284
+ // src/services/IdvFetchService.ts
12376
12285
  var lp = class {
12377
12286
  constructor() {
12378
12287
  this._connectionTokenExpirationBufferMs = 6e4, this._httpTimeoutMs = Ti, this._origin = "", this._apiKeyAuthToken = {
@@ -13397,8 +13306,7 @@ $([
13397
13306
  Q("design:paramtypes", [Object, typeof RequestInit > "u" ? Object : RequestInit]),
13398
13307
  Q("design:returntype", Promise)
13399
13308
  ], lp.prototype, "_httpFetch", null);
13400
- //#endregion
13401
- //#region src/services/AssetsService.ts
13309
+ // src/services/AssetsService.ts
13402
13310
  var up, dp = 3e4, fp = class e {
13403
13311
  static isImageLike(e) {
13404
13312
  return typeof e.imageURL == "string" || typeof e.imageId == "string" || typeof e.base64 == "string";
@@ -13502,8 +13410,7 @@ up = fp, up.decodedImages = /* @__PURE__ */ new Map(), up.failedAssets = {
13502
13410
  base64: /* @__PURE__ */ new Set(),
13503
13411
  blockingAssets: /* @__PURE__ */ new Set()
13504
13412
  };
13505
- //#endregion
13506
- //#region src/store/idvBusinessLogicController.ts
13413
+ // src/store/idvBusinessLogicController.ts
13507
13414
  var pp = (e, t) => ({
13508
13415
  fetchService: null,
13509
13416
  isProcessing: !1,
@@ -14268,8 +14175,7 @@ function hp() {
14268
14175
  return t.filter((e) => e !== null);
14269
14176
  }), hp.apply(this, arguments);
14270
14177
  }
14271
- //#endregion
14272
- //#region src/store/index.ts
14178
+ // src/store/index.ts
14273
14179
  var gp = Wr((...e) => j(j(j({}, _a(...e)), sp(...e)), pp(...e))), _p = (e) => /^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e) && e.length <= 100, vp = (e, t) => {
14274
14180
  if (!_p(e)) throw Error(`Invalid component name: ${e}`);
14275
14181
  let n = document.createElement(e);
@@ -15562,10 +15468,10 @@ var gp = Wr((...e) => j(j(j({}, _a(...e)), sp(...e)), pp(...e))), _p = (e) => /^
15562
15468
  isProcessing: this._isProcessingCallback,
15563
15469
  nonce: this.storeNonce
15564
15470
  };
15565
- return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = vp(e.id, t), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
15471
+ return this._currentScreenElement && this._isTheSameModuleAndScreen(e) || (this._currentScreenElement = vp(e.id, t), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
15566
15472
  }
15567
15473
  get version() {
15568
- return "4.0.658-nightly";
15474
+ return "4.0.660-rc";
15569
15475
  }
15570
15476
  disconnectedCallback() {
15571
15477
  var e;
@@ -15585,8 +15491,7 @@ var gp = Wr((...e) => j(j(j({}, _a(...e)), sp(...e)), pp(...e))), _p = (e) => /^
15585
15491
  }
15586
15492
  };
15587
15493
  Sp = Cp, Sp.styles = [xp], $([ct(), Q("design:type", Object)], Cp.prototype, "store", void 0), $([ct(), Q("design:type", Object)], Cp.prototype, "currentScreenConfig", void 0), $([ct(), Q("design:type", Object)], Cp.prototype, "processingScreenFromWorkflow", void 0), $([ct(), Q("design:type", Object)], Cp.prototype, "isProcessing", void 0), $([ct(), Q("design:type", Object)], Cp.prototype, "loadedModules", void 0), $([ct(), Q("design:type", Object)], Cp.prototype, "modulesConfig", void 0), $([ct(), Q("design:type", Object)], Cp.prototype, "storeNonce", void 0);
15588
- //#endregion
15589
- //#region src/services/IdvIntegrationService.ts
15494
+ // src/services/IdvIntegrationService.ts
15590
15495
  var wp = class {
15591
15496
  initialize(e) {
15592
15497
  return S(function* () {
@@ -15684,7 +15589,7 @@ var wp = class {
15684
15589
  }
15685
15590
  get version() {
15686
15591
  var e;
15687
- return (e = "4.0.658-nightly") == null ? "Version unavailable. Something went wrong" : e;
15592
+ return (e = "4.0.660-rc") == null ? "Version unavailable. Something went wrong" : e;
15688
15593
  }
15689
15594
  get currentSessionId() {
15690
15595
  return gp.getState().getCurrentSessionId();
@@ -15699,8 +15604,6 @@ var wp = class {
15699
15604
  gp.getState().setSessionRestoreMode(e);
15700
15605
  }
15701
15606
  };
15702
- //#endregion
15703
- //#region src/index.ts
15607
+ // src/index.ts
15704
15608
  window.customElements.get("idv-flow") || window.customElements.define("idv-flow", Cp);
15705
- //#endregion
15706
15609
  export { V as BaseError, Ya as BaseLoginError, va as BaseModule, vi as ConnectionError, _i as DeinitializationError, ii as IdvEventTypesEnum, wp as IdvIntegrationService, si as IdvServiceMessages, Cp as IdvWebComponent, di as InitializeError, yi as LoginError, ci as PrepareWorkflowError, hi as SessionError, gi as SocketError, mi as StartSessionError, ui as WorkflowError, pi as WorkflowPlatformError, ya as registerModule };