@regulaforensics/idv-gui 3.6.439-nightly → 3.6.442-nightly

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
@@ -7448,31 +7448,31 @@ var ps = ({ settings: e, errorMessages: t, serviceToken: n, uploadFileToTemp: r,
7448
7448
  return t.apply(this, arguments);
7449
7449
  };
7450
7450
  }(), w = function() {
7451
- var e = H(function* () {
7451
+ var e = H(function* (e) {
7452
7452
  if (b || g || _ || p) return;
7453
7453
  c((e) => e.map((e) => F(F({}, e), {}, { serverError: void 0 })));
7454
- let e = d.current.filter((e) => e.clientValidation === Ko.OK).map((e) => e.id);
7455
- if (!e.length) return;
7454
+ let t = d.current.filter((e) => e.clientValidation === Ko.OK).map((e) => e.id);
7455
+ if (!t.length) return;
7456
7456
  u(Go.UPLOADING), f.current = !1;
7457
- let t = [], n = !1;
7458
- for (let r of e) {
7457
+ let n = [], r = !1;
7458
+ for (let e of t) {
7459
7459
  if (f.current) break;
7460
- let e = d.current.find((e) => e.id === r);
7461
- if (!e || e.clientValidation !== Ko.OK) continue;
7462
- if (e.uploadState === $.SUCCESS && e.tempFileId) {
7463
- t.push(e.tempFileId);
7460
+ let t = d.current.find((t) => t.id === e);
7461
+ if (!t || t.clientValidation !== Ko.OK) continue;
7462
+ if (t.uploadState === $.SUCCESS && t.tempFileId) {
7463
+ n.push(t.tempFileId);
7464
7464
  continue;
7465
7465
  }
7466
- let i = yield S(e);
7466
+ let i = yield S(t);
7467
7467
  if (f.current) break;
7468
- i ? t.push(i.tempFileId) : n = !0;
7468
+ i ? n.push(i.tempFileId) : r = !0;
7469
7469
  }
7470
- !n && t.length === e.length && o({
7471
- files: t,
7470
+ !r && n.length === t.length && o({
7471
+ files: n,
7472
7472
  upload_complete: !0
7473
- }, Pe.DATA), u(Go.DONE);
7473
+ }, e), u(Go.DONE);
7474
7474
  });
7475
- return function() {
7475
+ return function(t) {
7476
7476
  return e.apply(this, arguments);
7477
7477
  };
7478
7478
  }(), T = function() {
@@ -7492,7 +7492,7 @@ var ps = ({ settings: e, errorMessages: t, serviceToken: n, uploadFileToTemp: r,
7492
7492
  return t.length > 0 && t.every((e) => e.uploadState === $.SUCCESS && e.tempFileId) && o({
7493
7493
  files: t.map((e) => e.tempFileId),
7494
7494
  upload_complete: !0
7495
- }, Pe.DATA), e;
7495
+ }, Pe.FORM), e;
7496
7496
  }), u(Go.DONE));
7497
7497
  });
7498
7498
  return function(t) {
@@ -7609,7 +7609,7 @@ var Es = (e) => {
7609
7609
  });
7610
7610
  } else if (e.actionId === "SUBMIT_FILES") {
7611
7611
  if (C.length === 0) return b(!0);
7612
- ee();
7612
+ ee(e.type === "FORM" ? Pe.FORM : Pe.DATA);
7613
7613
  }
7614
7614
  }
7615
7615
  };