@regulaforensics/idv-document 4.0.685-nightly → 4.0.687-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 ../../node_modules/@lit/reactive-element/css-tag.js
1
+ // ../../node_modules/@lit/reactive-element/css-tag.js
2
2
  var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, n = Symbol(), r = /* @__PURE__ */ new WeakMap(), i = class {
3
3
  constructor(e, t, r) {
4
4
  if (this._$cssResult$ = !0, r !== n) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -30,8 +30,7 @@ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nat
30
30
  for (let n of e.cssRules) t += n.cssText;
31
31
  return a(t);
32
32
  })(e) : e;
33
- //#endregion
34
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/asyncToGenerator.js
33
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/asyncToGenerator.js
35
34
  function l(e, t, n, r, i, a, o) {
36
35
  try {
37
36
  var s = e[a](o), c = s.value;
@@ -56,8 +55,7 @@ function u(e) {
56
55
  });
57
56
  };
58
57
  }
59
- //#endregion
60
- //#region ../../node_modules/@lit/reactive-element/reactive-element.js
58
+ // ../../node_modules/@lit/reactive-element/reactive-element.js
61
59
  var d, f, { is: p, defineProperty: m, getOwnPropertyDescriptor: h, getOwnPropertyNames: g, getOwnPropertySymbols: _, getPrototypeOf: v } = Object, y = globalThis, b = y.trustedTypes, x = b ? b.emptyScript : "", S = y.reactiveElementPolyfillSupport, C = (e, t) => e, w = {
62
60
  toAttribute(e, t) {
63
61
  switch (t) {
@@ -311,8 +309,7 @@ var D = class extends HTMLElement {
311
309
  firstUpdated(e) {}
312
310
  };
313
311
  D.elementStyles = [], D.shadowRootOptions = { mode: "open" }, D[C("elementProperties")] = /* @__PURE__ */ new Map(), D[C("finalized")] = /* @__PURE__ */ new Map(), S == null || S({ ReactiveElement: D }), ((f = y.reactiveElementVersions) == null ? y.reactiveElementVersions = [] : f).push("2.1.2");
314
- //#endregion
315
- //#region ../../node_modules/lit-html/lit-html.js
312
+ // ../../node_modules/lit-html/lit-html.js
316
313
  var O, k = globalThis, A = (e) => e, j = k.trustedTypes, M = j ? j.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, N = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, F = "?" + P, I = `<${F}>`, L = document, ee = () => L.createComment(""), te = (e) => e === null || typeof e != "object" && typeof e != "function", ne = Array.isArray, R = (e) => ne(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", re = "[ \n\f\r]", ie = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ae = /-->/g, oe = />/g, se = RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), ce = /'/g, le = /"/g, ue = /^(?:script|style|textarea|title)$/i, de = ((e) => (t, ...n) => ({
317
314
  _$litType$: e,
318
315
  strings: t,
@@ -598,8 +595,7 @@ var Oe = (e, t, n) => {
598
595
  Me._$litElement$ = !0, Me.finalized = !0, (ke = je.litElementHydrateSupport) == null || ke.call(je, { LitElement: Me });
599
596
  var Ne = je.litElementPolyfillSupport;
600
597
  Ne == null || Ne({ LitElement: Me }), ((Ae = je.litElementVersions) == null ? je.litElementVersions = [] : Ae).push("4.2.2");
601
- //#endregion
602
- //#region ../../node_modules/lit-html/directive.js
598
+ // ../../node_modules/lit-html/directive.js
603
599
  var Pe = (e) => (...t) => ({
604
600
  _$litDirective$: e,
605
601
  values: t
@@ -9769,7 +9765,7 @@ function Nb(...e) {
9769
9765
  let { caseless: t, skipUndefined: n } = Mb(this) && this || {}, r = {}, i = (e, i) => {
9770
9766
  if (i === "__proto__" || i === "constructor" || i === "prototype") return;
9771
9767
  let a = t && Ab(r, i) || i, o = Gb(r, a) ? r[a] : void 0;
9772
- ub(o) && ub(e) ? r[a] = Nb(o, e) : ub(e) ? r[a] = Nb({}, e) : eb(e) ? r[a] = e.slice() : (!n || !tb(e)) && (r[a] = e);
9768
+ ub(o) && ub(e) ? r[a] = Nb(o, e) : ub(e) ? r[a] = Nb({}, e) : eb(e) ? r[a] = e.slice() : n && tb(e) || (r[a] = e);
9773
9769
  };
9774
9770
  for (let t = 0, n = e.length; t < n; t++) e[t] && kb(e[t], i);
9775
9771
  return r;
@@ -9803,7 +9799,7 @@ var Pb = (e, t, n, { allOwnKeys: r } = {}) => (kb(t, (t, r) => {
9803
9799
  let i, a, o, s = {};
9804
9800
  if (t = t || {}, e == null) return t;
9805
9801
  do {
9806
- for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
9802
+ for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], r && !r(o, e, t) || s[o] || (t[o] = e[o], s[o] = !0);
9807
9803
  e = n !== !1 && Jy(e);
9808
9804
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
9809
9805
  return t;
@@ -10394,7 +10390,7 @@ function Wx(e) {
10394
10390
  let a = e[i++];
10395
10391
  if (a === "__proto__") return !0;
10396
10392
  let o = Number.isFinite(+a), s = i >= e.length;
10397
- return a = !a && Q.isArray(r) ? r.length : a, s ? (Q.hasOwnProp(r, a) ? r[a] = Q.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!r[a] || !Q.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && Q.isArray(r[a]) && (r[a] = Ux(r[a])), !o);
10393
+ return a = !a && Q.isArray(r) ? r.length : a, s ? (Q.hasOwnProp(r, a) ? r[a] = Q.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : (r[a] && Q.isObject(r[a]) || (r[a] = []), t(e, n, r[a], i) && Q.isArray(r[a]) && (r[a] = Ux(r[a])), !o);
10398
10394
  }
10399
10395
  if (Q.isFormData(e) && Q.isFunction(e.entries)) {
10400
10396
  let n = {};
@@ -19794,7 +19790,7 @@ var jL = (function(e) {
19794
19790
  var t;
19795
19791
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
19796
19792
  var n = this.closed;
19797
- e.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) == null || t.call(this));
19793
+ e.prototype.unsubscribe.call(this), n || (t = this.onFinalize) == null || t.call(this);
19798
19794
  }
19799
19795
  }, t;
19800
19796
  })(hL), ML = rL(function(e) {
@@ -20323,7 +20319,7 @@ function LR(e, t) {
20323
20319
  let n = Array.isArray(t.customProtocols) ? t.customProtocols : [], r = new Set(n.map((e) => OR(e)).filter(Boolean)), i = kR(e);
20324
20320
  if (i && !r.has(i)) return e;
20325
20321
  let a = e.startsWith("//");
20326
- (a || !/^\.*\//.test(e)) && !i && (e = e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//, t.defaultProtocol));
20322
+ !a && /^\.*\//.test(e) || i || (e = e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//, t.defaultProtocol));
20327
20323
  let o = new URL(e);
20328
20324
  if (t.forceHttp && t.forceHttps) throw Error("The `forceHttp` and `forceHttps` options cannot be used together");
20329
20325
  if (t.forceHttp && o.protocol === "https:" && (o.protocol = "http:"), t.forceHttps && o.protocol === "http:" && (o.protocol = "https:"), t.stripAuthentication && (o.username = "", o.password = ""), t.stripHash ? o.hash = "" : t.stripTextFragment && (o.hash = o.hash.replace(/#?:~:text.*?$/i, "")), o.pathname) {
@@ -20611,8 +20607,7 @@ function KR() {
20611
20607
  ]);
20612
20608
  });
20613
20609
  }
20614
- //#endregion
20615
- //#region ../../node_modules/@lit/reactive-element/decorators/property.js
20610
+ // ../../node_modules/@lit/reactive-element/decorators/property.js
20616
20611
  var qR = {
20617
20612
  attribute: !0,
20618
20613
  type: String,
@@ -20648,14 +20643,12 @@ function YR(e) {
20648
20643
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
20649
20644
  })(e, t, n);
20650
20645
  }
20651
- //#endregion
20652
- //#region ../../node_modules/lit-html/directives/choose.js
20646
+ // ../../node_modules/lit-html/directives/choose.js
20653
20647
  var XR = (e, t, n) => {
20654
20648
  for (let n of t) if (n[0] === e) return (0, n[1])();
20655
20649
  return n == null ? void 0 : n();
20656
20650
  };
20657
- //#endregion
20658
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
20651
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
20659
20652
  function ZR(e) {
20660
20653
  "@babel/helpers - typeof";
20661
20654
  return ZR = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -20664,8 +20657,7 @@ function ZR(e) {
20664
20657
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
20665
20658
  }, ZR(e);
20666
20659
  }
20667
- //#endregion
20668
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
20660
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
20669
20661
  function QR(e, t) {
20670
20662
  if (ZR(e) != "object" || !e) return e;
20671
20663
  var n = e[Symbol.toPrimitive];
@@ -20676,14 +20668,12 @@ function QR(e, t) {
20676
20668
  }
20677
20669
  return (t === "string" ? String : Number)(e);
20678
20670
  }
20679
- //#endregion
20680
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
20671
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
20681
20672
  function $R(e) {
20682
20673
  var t = QR(e, "string");
20683
20674
  return ZR(t) == "symbol" ? t : t + "";
20684
20675
  }
20685
- //#endregion
20686
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
20676
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
20687
20677
  function ez(e, t, n) {
20688
20678
  return (t = $R(t)) in e ? Object.defineProperty(e, t, {
20689
20679
  value: n,
@@ -20692,8 +20682,7 @@ function ez(e, t, n) {
20692
20682
  writable: !0
20693
20683
  }) : e[t] = n, e;
20694
20684
  }
20695
- //#endregion
20696
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
20685
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/objectSpread2.js
20697
20686
  function tz(e, t) {
20698
20687
  var n = Object.keys(e);
20699
20688
  if (Object.getOwnPropertySymbols) {
@@ -20715,8 +20704,7 @@ function nz(e) {
20715
20704
  }
20716
20705
  return e;
20717
20706
  }
20718
- //#endregion
20719
- //#region ../interfaces-idv/src/index.ts
20707
+ // ../interfaces-idv/src/index.ts
20720
20708
  var rz = class e {
20721
20709
  constructor({ errorCode: e, errorCodeKey: t, message: n, underlyingError: r, underlyingBaseError: i, domain: a, module: o, errorEnumName: s, shortDomainCode: c }) {
20722
20710
  this.errorCode = e, this.errorCodeKey = t, this.message = n, this.underlyingError = r, this.underlyingBaseError = i, this.module = o, this.domain = a, this.errorEnumName = s, this.shortDomainCode = c;
@@ -20769,48 +20757,43 @@ function az(e) {
20769
20757
  var oz = {
20770
20758
  FORM: "form",
20771
20759
  DATA: "data"
20772
- }, sz = (e) => {
20773
- if (typeof e != "string") return !1;
20774
- try {
20775
- return new URL(e), !0;
20776
- } catch (e) {
20777
- return !1;
20778
- }
20779
- }, cz = ["ar", "he"], lz = (e) => {
20760
+ }, sz = ["ar", "he"], cz = (e) => {
20780
20761
  var t;
20781
20762
  let n = e ? (t = e.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
20782
- return cz.includes(n) ? "rtl" : "ltr";
20783
- }, uz = (e, t) => e.base64 && !(t != null && t.base64.has(e.base64)) ? e.base64 : e.imageURL && !(t != null && t.imageURL.has(e.imageURL)) ? e.imageURL : "", dz = (e, t, n) => {
20763
+ return sz.includes(n) ? "rtl" : "ltr";
20764
+ }, lz = (e, t) => e.base64 && !(t != null && t.base64.has(e.base64)) ? e.base64 : e.imageURL && !(t != null && t.imageURL.has(e.imageURL)) ? e.imageURL : "", uz = (e, t, n) => {
20784
20765
  var r;
20785
20766
  if (!t) return;
20786
20767
  let i = (r = e == null ? void 0 : e.idvAsset) == null ? null : r;
20787
20768
  for (; i;) {
20788
- let e = uz(i, n);
20769
+ let e = lz(i, n);
20789
20770
  if (e) return e;
20790
20771
  i = i.failurePolicy === "placeholderImage" && i.placeholderImage || null;
20791
20772
  }
20792
- }, fz = {
20773
+ }, dz = {
20793
20774
  DOC_READER: "DOC_READER",
20794
20775
  DOC_READER_GALLERY: "DOC_READER_GALLERY"
20795
- }, pz = /* @__PURE__ */ function(e) {
20776
+ }, fz = /* @__PURE__ */ function(e) {
20796
20777
  return e[e.NO_INITIALIZED = 0] = "NO_INITIALIZED", e[e.UNKNOWN_STEP = 1] = "UNKNOWN_STEP", e[e.SCAN_ERROR = 2] = "SCAN_ERROR", e[e.RFID_ERROR = 3] = "RFID_ERROR", e[e.IMAGE_LOADING_FAILED = 4] = "IMAGE_LOADING_FAILED", e;
20797
- }({}), mz = /* @__PURE__ */ function(e) {
20778
+ }({}), pz = /* @__PURE__ */ function(e) {
20798
20779
  return e[e.CONFIGURATION_FAILED = 0] = "CONFIGURATION_FAILED", e[e.INTERNAL_ERROR = 1] = "INTERNAL_ERROR", e[e.PRESENTER_UNAVAILABLE = 2] = "PRESENTER_UNAVAILABLE", e;
20799
- }({}), hz = "idv-document", gz = {
20780
+ }({}), mz = "idv-document", hz = {
20800
20781
  0: ff.auto,
20801
20782
  1: ff.captureVideo,
20802
20783
  2: ff.captureFrame
20803
- }, _z = {
20784
+ }, gz = {
20804
20785
  0: vf.line,
20805
20786
  1: vf.corners
20806
- }, vz = {
20787
+ }, _z = {
20807
20788
  0: !0,
20808
20789
  1: !0,
20809
20790
  2: !1,
20810
20791
  3: !0
20811
- }, yz = 1920, bz = 4e6, xz = 5e7, Sz, Cz, wz = class e extends rz {
20792
+ }, vz = 1920, yz = 4e6, bz = 5e7, xz = /* @__PURE__ */ function(e) {
20793
+ return e.BarcodeMRZ = "BarcodeMRZ", e.BoundsLite = "BoundsLite", e;
20794
+ }({}), Sz, Cz, wz = class e extends rz {
20812
20795
  constructor({ errorCode: t, message: n, underlyingError: r, underlyingBaseError: i }) {
20813
- let a = rz.getErrorKey(t, pz);
20796
+ let a = rz.getErrorKey(t, fz);
20814
20797
  super({
20815
20798
  errorCode: t,
20816
20799
  errorCodeKey: a,
@@ -20824,10 +20807,10 @@ var oz = {
20824
20807
  });
20825
20808
  }
20826
20809
  };
20827
- Sz = wz, Sz.MODULE = hz, Sz.ERROR_ENUM_NAME = "ReaderModuleError", Sz.SHORT_CODE = "RM";
20810
+ Sz = wz, Sz.MODULE = mz, Sz.ERROR_ENUM_NAME = "ReaderModuleError", Sz.SHORT_CODE = "RM";
20828
20811
  var Tz = class e extends rz {
20829
20812
  constructor({ errorCode: t, message: n, underlyingError: r, underlyingBaseError: i }) {
20830
- let a = rz.getErrorKey(t, mz);
20813
+ let a = rz.getErrorKey(t, pz);
20831
20814
  super({
20832
20815
  errorCode: t,
20833
20816
  errorCodeKey: a,
@@ -20841,27 +20824,23 @@ var Tz = class e extends rz {
20841
20824
  });
20842
20825
  }
20843
20826
  };
20844
- Cz = Tz, Cz.MODULE = hz, Cz.ERROR_ENUM_NAME = "ScanError", Cz.SHORT_CODE = "RMS";
20845
- //#endregion
20846
- //#region ../../node_modules/@lit/reactive-element/decorators/custom-element.js
20827
+ Cz = Tz, Cz.MODULE = mz, Cz.ERROR_ENUM_NAME = "ScanError", Cz.SHORT_CODE = "RMS";
20828
+ // ../../node_modules/@lit/reactive-element/decorators/custom-element.js
20847
20829
  var Ez = (e) => (t, n) => {
20848
20830
  n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
20849
20831
  customElements.define(e, t);
20850
20832
  });
20851
20833
  };
20852
- //#endregion
20853
- //#region ../../node_modules/@lit/reactive-element/decorators/state.js
20834
+ // ../../node_modules/@lit/reactive-element/decorators/state.js
20854
20835
  function Dz(e) {
20855
20836
  return YR(nz(nz({}, e), {}, {
20856
20837
  state: !0,
20857
20838
  attribute: !1
20858
20839
  }));
20859
20840
  }
20860
- //#endregion
20861
- //#region ../../node_modules/@lit/reactive-element/decorators/base.js
20841
+ // ../../node_modules/@lit/reactive-element/decorators/base.js
20862
20842
  var Oz = (e, t, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, n), n);
20863
- //#endregion
20864
- //#region ../../node_modules/@lit/reactive-element/decorators/query.js
20843
+ // ../../node_modules/@lit/reactive-element/decorators/query.js
20865
20844
  function kz(e, t) {
20866
20845
  return (n, r, i) => {
20867
20846
  let a = (t) => {
@@ -20890,8 +20869,7 @@ function kz(e, t) {
20890
20869
  } });
20891
20870
  };
20892
20871
  }
20893
- //#endregion
20894
- //#region src/utils/index.ts
20872
+ // src/utils/index.ts
20895
20873
  function Az(e) {
20896
20874
  return jz.apply(this, arguments);
20897
20875
  }
@@ -20919,8 +20897,14 @@ function Nz() {
20919
20897
  throw r;
20920
20898
  }), Nz.apply(this, arguments);
20921
20899
  }
20922
- var Pz = (e) => e ? (e.internalScenario && (e.scenario = e.internalScenario), delete e.internalScenario, e) : {};
20923
- function Fz(e, t, n, r, i) {
20900
+ var Pz = (e) => e ? (e.internalScenario && (e.scenario = e.internalScenario), delete e.internalScenario, e) : {}, Fz = (e) => {
20901
+ try {
20902
+ return new URL(e), !0;
20903
+ } catch (e) {
20904
+ return !1;
20905
+ }
20906
+ };
20907
+ function Iz(e, t, n, r, i) {
20924
20908
  let a = e * t, o = a > i;
20925
20909
  return {
20926
20910
  width: e,
@@ -20929,16 +20913,16 @@ function Fz(e, t, n, r, i) {
20929
20913
  isDownscaleNeeded: (e > n || t > n || a > r) && !o
20930
20914
  };
20931
20915
  }
20932
- var Iz = function() {
20916
+ var Lz = function() {
20933
20917
  var e = u(function* (e, t, n, r) {
20934
20918
  let i = yield createImageBitmap(e), { width: a, height: o } = i;
20935
- return i == null || i.close(), Fz(a, o, t, n, r);
20919
+ return i == null || i.close(), Iz(a, o, t, n, r);
20936
20920
  });
20937
20921
  return function(t, n, r, i) {
20938
20922
  return e.apply(this, arguments);
20939
20923
  };
20940
20924
  }();
20941
- function Lz({ width: e, height: t, softSideLimit: n, softPixelLimit: r }) {
20925
+ function Rz({ width: e, height: t, softSideLimit: n, softPixelLimit: r }) {
20942
20926
  if (!(e > 0 && t > 0)) return {
20943
20927
  width: 1,
20944
20928
  height: 1
@@ -20949,11 +20933,11 @@ function Lz({ width: e, height: t, softSideLimit: n, softPixelLimit: r }) {
20949
20933
  height: Math.max(1, Math.floor(t * c))
20950
20934
  };
20951
20935
  }
20952
- function Rz(e, t, n) {
20953
- return zz.apply(this, arguments);
20936
+ function zz(e, t, n) {
20937
+ return Bz.apply(this, arguments);
20954
20938
  }
20955
- function zz() {
20956
- return zz = u(function* (e, t, n) {
20939
+ function Bz() {
20940
+ return Bz = u(function* (e, t, n) {
20957
20941
  return new Promise((r) => {
20958
20942
  if (!e || !e.size) return r({ ok: !1 });
20959
20943
  let i = document.createElement("canvas"), a = i.getContext("2d"), o = URL.createObjectURL(e), s = new Image(), c = (e) => {
@@ -20966,7 +20950,7 @@ function zz() {
20966
20950
  s.onload = null, s.onerror = null, s.src = "", r(e);
20967
20951
  };
20968
20952
  s.onload = function() {
20969
- let e = Lz({
20953
+ let e = Rz({
20970
20954
  width: s.width,
20971
20955
  height: s.height,
20972
20956
  softSideLimit: t,
@@ -20985,14 +20969,14 @@ function zz() {
20985
20969
  return c({ ok: !1 });
20986
20970
  }, s.onerror = () => c({ ok: !1 }), s.src = o;
20987
20971
  });
20988
- }), zz.apply(this, arguments);
20972
+ }), Bz.apply(this, arguments);
20989
20973
  }
20990
- var Bz = (e) => {
20974
+ var Vz = (e) => {
20991
20975
  let { translationKeysData: t, translationKeysProps: n, locale: r } = e, i = {}, a = null;
20992
20976
  for (let e in t) i[t[e].key] = e;
20993
20977
  for (let e in n) i[e] && n[e] && (a ? a[i[e]] = n[e] : a = { [i[e]]: n[e] });
20994
20978
  return a ? { [r]: a } : {};
20995
- }, Vz = {
20979
+ }, Hz = {
20996
20980
  preparingCamera: {
20997
20981
  fallback: "Preparing the camera...",
20998
20982
  key: "strPrepareCamera"
@@ -21177,7 +21161,7 @@ var Bz = (e) => {
21177
21161
  fallback: "Tilt the document",
21178
21162
  key: "strTiltDocument"
21179
21163
  }
21180
- }, Hz = o`
21164
+ }, Uz = o`
21181
21165
  *,
21182
21166
  ::after,
21183
21167
  ::before {
@@ -21203,22 +21187,19 @@ var Bz = (e) => {
21203
21187
  height: 100%;
21204
21188
  }
21205
21189
  `;
21206
- //#endregion
21207
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateMetadata.js
21208
- function Uz(e, t) {
21190
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/decorateMetadata.js
21191
+ function Wz(e, t) {
21209
21192
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
21210
21193
  }
21211
- //#endregion
21212
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
21213
- function Wz(e, t, n, r) {
21194
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/decorate.js
21195
+ function Gz(e, t, n, r) {
21214
21196
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
21215
21197
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
21216
21198
  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);
21217
21199
  return i > 3 && a && Object.defineProperty(t, n, a), a;
21218
21200
  }
21219
- //#endregion
21220
- //#region src/web-components/document-idv/components/document-reader-camera/index.ts
21221
- var Gz = class extends Me {
21201
+ // src/web-components/document-idv/components/document-reader-camera/index.ts
21202
+ var Kz = class extends Me {
21222
21203
  constructor(...e) {
21223
21204
  super(...e), this._performType = oz.DATA, this.props = null, this._handleDocumentReader = (e) => {
21224
21205
  var t, n, r, i;
@@ -21236,10 +21217,7 @@ var Gz = class extends Me {
21236
21217
  }
21237
21218
  let t = (o = e.detail.data) == null ? void 0 : o.status, n = t === rp.OK, r = t === rp.TIMEOUT;
21238
21219
  if (!(n || r) || !((s = e.detail.data) != null && s.response)) return;
21239
- if ((c = this.props) != null && c.isProcessing) {
21240
- var d, f;
21241
- (d = this.props) == null || (f = d.idvEventListener) == null || f.call(d, "IDV-DOCUMENT", "Success. Start to finalize package", "DEBUG"), this.props.isProcessing(!0);
21242
- }
21220
+ (c = this.props) != null && c.isProcessing && this.props.isProcessing(!0);
21243
21221
  let i = (l = this.props) == null || (l = l.moduleProps) == null ? void 0 : l.finalizePackageSettings;
21244
21222
  Mz(() => window.RegulaDocumentSDK.finalizePackage(), i == null ? void 0 : i.retryCount, i == null ? void 0 : i.retryDelay).then((e) => {
21245
21223
  var t;
@@ -21261,8 +21239,8 @@ var Gz = class extends Me {
21261
21239
  });
21262
21240
  }
21263
21241
  if (((i = e.detail) == null ? void 0 : i.action) === W.CLOSE || e.detail.action === W.CAMERA_PROCESS_CLOSED) {
21264
- var p;
21265
- (p = this.props) == null || p.perform({
21242
+ var d;
21243
+ (d = this.props) == null || d.perform({
21266
21244
  transactionId: "",
21267
21245
  cancel: !0,
21268
21246
  has_nfc: !1,
@@ -21330,7 +21308,7 @@ var Gz = class extends Me {
21330
21308
  background-color: ${a(e.cameraPreviewBackgroundColor)};
21331
21309
  }
21332
21310
  `), e != null && e.containerCloseButtonImage) {
21333
- let i = dz(e.containerCloseButtonImage, t, n);
21311
+ let i = uz(e.containerCloseButtonImage, t, n);
21334
21312
  i && r.push(o`
21335
21313
  document-reader::part(container-close-button)::before {
21336
21314
  background-image: url(${a(i)});
@@ -21338,7 +21316,7 @@ var Gz = class extends Me {
21338
21316
  `);
21339
21317
  }
21340
21318
  if (e != null && e.menuFromCameraButtonImage) {
21341
- let i = dz(e.menuFromCameraButtonImage, t, n);
21319
+ let i = uz(e.menuFromCameraButtonImage, t, n);
21342
21320
  i && r.push(o`
21343
21321
  document-reader::part(menu-from-camera-button)::before {
21344
21322
  background-image: url(${a(i)});
@@ -21346,7 +21324,7 @@ var Gz = class extends Me {
21346
21324
  `);
21347
21325
  }
21348
21326
  if (e != null && e.menuFromGalleryButtonImage) {
21349
- let i = dz(e.menuFromGalleryButtonImage, t, n);
21327
+ let i = uz(e.menuFromGalleryButtonImage, t, n);
21350
21328
  i && r.push(o`
21351
21329
  document-reader::part(menu-from-gallery-button)::before {
21352
21330
  background-image: url(${a(i)});
@@ -21354,7 +21332,7 @@ var Gz = class extends Me {
21354
21332
  `);
21355
21333
  }
21356
21334
  if (e != null && e.menuFromMobileButtonImage) {
21357
- let i = dz(e.menuFromMobileButtonImage, t, n);
21335
+ let i = uz(e.menuFromMobileButtonImage, t, n);
21358
21336
  i && r.push(o`
21359
21337
  document-reader::part(menu-from-mobile-button)::before {
21360
21338
  background-image: url(${a(i)});
@@ -21362,7 +21340,7 @@ var Gz = class extends Me {
21362
21340
  `);
21363
21341
  }
21364
21342
  if (e != null && e.closeButton) {
21365
- let i = dz(e.closeButton, t, n);
21343
+ let i = uz(e.closeButton, t, n);
21366
21344
  i && r.push(o`
21367
21345
  document-reader::part(controls-process-close-button)::before {
21368
21346
  background-image: url(${a(i)});
@@ -21370,7 +21348,7 @@ var Gz = class extends Me {
21370
21348
  `);
21371
21349
  }
21372
21350
  if (e != null && e.switchButton) {
21373
- let i = dz(e.switchButton, t, n);
21351
+ let i = uz(e.switchButton, t, n);
21374
21352
  i && r.push(o`
21375
21353
  document-reader::part(controls-change-camera-button)::before {
21376
21354
  background-image: url(${a(i)});
@@ -21378,7 +21356,7 @@ var Gz = class extends Me {
21378
21356
  `);
21379
21357
  }
21380
21358
  if (e != null && e.infoTryAgainButtonImage) {
21381
- let i = dz(e.infoTryAgainButtonImage, t, n);
21359
+ let i = uz(e.infoTryAgainButtonImage, t, n);
21382
21360
  i && r.push(o`
21383
21361
  document-reader::part(info-try-again-button)::before {
21384
21362
  background-image: url(${a(i)});
@@ -21389,8 +21367,8 @@ var Gz = class extends Me {
21389
21367
  }
21390
21368
  _prepareTranslations(e) {
21391
21369
  let { locale: t, localizationKeys: n } = e, r = t && typeof t == "string" ? t.slice(0, 2).toLowerCase() : "";
21392
- return !r || !n ? null : Bz({
21393
- translationKeysData: Vz,
21370
+ return !r || !n ? null : Vz({
21371
+ translationKeysData: Hz,
21394
21372
  translationKeysProps: n,
21395
21373
  locale: r
21396
21374
  });
@@ -21437,7 +21415,7 @@ var Gz = class extends Me {
21437
21415
  uploadFileButton: t == null ? void 0 : t.uploadFileButton,
21438
21416
  mirrorButton: t == null ? void 0 : t.mirrorButton,
21439
21417
  nonce: (i = this.props) == null ? void 0 : i.nonce
21440
- }), u = nz(nz(nz(nz(nz({}, !!r && typeof r == "string" && { locale: r.slice(0, 2).toLowerCase() }), typeof (n == null ? void 0 : n.captureMode) == "number" && n.captureMode in gz && { captureMode: gz[n.captureMode] }), typeof (t == null ? void 0 : t.cameraFrameShapeType) == "number" && t.cameraFrameShapeType in _z && { cameraFrameShapeType: _z[t.cameraFrameShapeType] }), (typeof (n == null || (a = n.videoOutputSettings) == null ? void 0 : a.AVVideoWidthKey) == "number" || typeof (n == null || (o = n.videoOutputSettings) == null ? void 0 : o.AVVideoHeightKey) == "number") && { resolution: nz(nz({}, typeof (n == null || (s = n.videoOutputSettings) == null ? void 0 : s.AVVideoWidthKey) == "number" && { width: n.videoOutputSettings.AVVideoWidthKey }), typeof (n == null || (c = n.videoOutputSettings) == null ? void 0 : c.AVVideoHeightKey) == "number" && { height: n.videoOutputSettings.AVVideoHeightKey }) }), typeof (n == null ? void 0 : n.cameraFrame) == "number" && n.cameraFrame in vz && { cameraFrame: vz[n.cameraFrame] });
21418
+ }), u = nz(nz(nz(nz(nz({}, !!r && typeof r == "string" && { locale: r.slice(0, 2).toLowerCase() }), typeof (n == null ? void 0 : n.captureMode) == "number" && n.captureMode in hz && { captureMode: hz[n.captureMode] }), typeof (t == null ? void 0 : t.cameraFrameShapeType) == "number" && t.cameraFrameShapeType in gz && { cameraFrameShapeType: gz[t.cameraFrameShapeType] }), (typeof (n == null || (a = n.videoOutputSettings) == null ? void 0 : a.AVVideoWidthKey) == "number" || typeof (n == null || (o = n.videoOutputSettings) == null ? void 0 : o.AVVideoHeightKey) == "number") && { resolution: nz(nz({}, typeof (n == null || (s = n.videoOutputSettings) == null ? void 0 : s.AVVideoWidthKey) == "number" && { width: n.videoOutputSettings.AVVideoWidthKey }), typeof (n == null || (c = n.videoOutputSettings) == null ? void 0 : c.AVVideoHeightKey) == "number" && { height: n.videoOutputSettings.AVVideoHeightKey }) }), typeof (n == null ? void 0 : n.cameraFrame) == "number" && n.cameraFrame in _z && { cameraFrame: _z[n.cameraFrame] });
21441
21419
  return nz(nz({}, l), u);
21442
21420
  }
21443
21421
  _setDocReaderProps() {
@@ -21445,12 +21423,12 @@ var Gz = class extends Me {
21445
21423
  if (!this.props || !this._component) return;
21446
21424
  (e = (t = this.props).isProcessing) == null || e.call(t, !0);
21447
21425
  let { processParam: r, functionality: i, customization: a, sessionId: o, copyright: c, serviceToken: l, locale: u, preloadAssetsRequired: d, failedAssets: f } = this.props.moduleProps, p = Pz(r), m = p == null || (n = p.backendProcessing) == null ? void 0 : n.serviceURL;
21448
- if (!m || !sz(m)) {
21426
+ if (!m || !Fz(m)) {
21449
21427
  let e = new Tz({
21450
- errorCode: mz.CONFIGURATION_FAILED,
21428
+ errorCode: pz.CONFIGURATION_FAILED,
21451
21429
  message: "serviceURL is not defined or is invalid."
21452
21430
  }), t = new wz({
21453
- errorCode: pz.SCAN_ERROR,
21431
+ errorCode: fz.SCAN_ERROR,
21454
21432
  underlyingBaseError: e
21455
21433
  });
21456
21434
  this.props.perform(t);
@@ -21477,11 +21455,10 @@ var Gz = class extends Me {
21477
21455
  @document-reader=${this._handleDocumentReader}
21478
21456
  ></document-reader>`;
21479
21457
  }
21480
- }, Kz = (Gz.styles = [Hz], Gz);
21481
- Wz([Dz(), Uz("design:type", Object)], Kz.prototype, "props", void 0), Wz([kz("document-reader"), Uz("design:type", wI === void 0 ? Object : wI)], Kz.prototype, "_component", void 0), Kz = Wz([Ez("document-reader-camera")], Kz);
21482
- //#endregion
21483
- //#region ../../node_modules/lit-html/directives/if-defined.js
21484
- var qz = (e) => e == null ? z : e, Jz = o`
21458
+ }, qz = (Kz.styles = [Uz], Kz);
21459
+ Gz([Dz(), Wz("design:type", Object)], qz.prototype, "props", void 0), Gz([kz("document-reader"), Wz("design:type", wI === void 0 ? Object : wI)], qz.prototype, "_component", void 0), qz = Gz([Ez("document-reader-camera")], qz);
21460
+ // ../../node_modules/lit-html/directives/if-defined.js
21461
+ var Jz = (e) => e == null ? z : e, Yz = o`
21485
21462
  .gallery-root {
21486
21463
  display: flex;
21487
21464
  width: 100%;
@@ -21542,7 +21519,7 @@ var qz = (e) => e == null ? z : e, Jz = o`
21542
21519
  align-items: center;
21543
21520
  justify-content: center;
21544
21521
  }
21545
- `, Yz = de`<svg
21522
+ `, Xz = de`<svg
21546
21523
  xmlns="http://www.w3.org/2000/svg"
21547
21524
  viewBox="0 0 24 24"
21548
21525
  width="24"
@@ -21550,7 +21527,7 @@ var qz = (e) => e == null ? z : e, Jz = o`
21550
21527
  fill="rgba(0,0,0,0.6)"
21551
21528
  >
21552
21529
  <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
21553
- </svg>`, Xz = de` <svg
21530
+ </svg>`, Zz = de` <svg
21554
21531
  width="40"
21555
21532
  height="40"
21556
21533
  viewBox="0 0 23 22"
@@ -21581,7 +21558,7 @@ var qz = (e) => e == null ? z : e, Jz = o`
21581
21558
  <rect width="22" height="22" fill="white" transform="translate(0.5 1.90735e-05)" />
21582
21559
  </clipPath>
21583
21560
  </defs>
21584
- </svg>`, Zz = de`<svg
21561
+ </svg>`, Qz = de`<svg
21585
21562
  width="113"
21586
21563
  height="16"
21587
21564
  viewBox="0 0 113 16"
@@ -21613,7 +21590,7 @@ var qz = (e) => e == null ? z : e, Jz = o`
21613
21590
  d="M93.1547 5.85404C92.7965 5.24412 91.9727 4.77991 90.8981 4.77991C89.0174 4.77991 87.459 6.35794 87.459 8.38431C87.459 10.3925 89.0174 11.9336 90.8981 11.9336C91.9191 11.9336 92.5637 11.6287 93.0651 10.9996V11.6455C93.0651 13.0442 92.08 13.5462 91.1308 13.5462C90.1816 13.5462 89.4292 13.0792 89.286 12.0578H87.7099C87.7818 13.8512 89.2142 15 91.1308 15C93.0474 15 94.6758 13.9063 94.6758 11.539V4.83175H93.1547V5.85404ZM91.0772 10.3911C89.9307 10.3911 89.1069 9.54811 89.1069 8.38291C89.1069 7.21772 89.9307 6.32058 91.0772 6.32058C92.2237 6.32058 93.0651 7.21725 93.0651 8.38291C93.0651 9.54858 92.2232 10.3911 91.0772 10.3911Z"
21614
21591
  fill="#BD7DFF"
21615
21592
  />
21616
- </svg>`, Qz = class extends Me {
21593
+ </svg>`, $z = class extends Me {
21617
21594
  constructor(...e) {
21618
21595
  var t;
21619
21596
  super(...e), t = this, this._performType = oz.DATA, this.props = null, this._handleInputChange = function() {
@@ -21622,12 +21599,11 @@ var qz = (e) => e == null ? z : e, Jz = o`
21622
21599
  let a = [...(n = e.target.files) == null ? [] : n];
21623
21600
  if (!a.length) return;
21624
21601
  (r = t.props) != null && r.isProcessing && t.props.isProcessing(!0), yield window.RegulaDocumentSDK.createBackendTransaction({}, window.RegulaDocumentSDK.recognizerProcessParam);
21625
- let o = [];
21626
21602
  for (let e of a) {
21627
- let { isExtraLargeResolution: n, isDownscaleNeeded: r } = yield Iz(e, yz, bz, xz), i = e.type.startsWith("image/webp");
21603
+ let { isExtraLargeResolution: n, isDownscaleNeeded: r } = yield Lz(e, vz, yz, bz), i = e.type.startsWith("image/webp");
21628
21604
  if (n) {
21629
- var s;
21630
- (s = t.props) == null || s.perform({
21605
+ var o;
21606
+ (o = t.props) == null || o.perform({
21631
21607
  transactionId: "",
21632
21608
  cancel: !1,
21633
21609
  has_nfc: !1,
@@ -21635,49 +21611,49 @@ var qz = (e) => e == null ? z : e, Jz = o`
21635
21611
  }, t._performType);
21636
21612
  return;
21637
21613
  }
21614
+ let a;
21638
21615
  if (r || i) {
21639
- let n = yield Rz(e, yz, bz);
21616
+ let n = yield zz(e, vz, yz);
21640
21617
  if (!n.ok) {
21641
- var c;
21618
+ var s;
21642
21619
  let e = {
21643
21620
  transactionId: "",
21644
21621
  cancel: !1,
21645
21622
  has_nfc: !1,
21646
21623
  errorCode: r ? "IMAGE_DOWNSCALING_ERROR" : "IMAGE_PROCESSING_ERROR"
21647
21624
  };
21648
- (c = t.props) == null || c.perform(e, t._performType);
21625
+ (s = t.props) == null || s.perform(e, t._performType);
21649
21626
  return;
21650
21627
  }
21651
- o.push(n.imageData);
21652
- } else o.push(yield e.arrayBuffer());
21653
- }
21654
- try {
21655
- yield window.RegulaDocumentSDK.processImage(o);
21656
- } catch (e) {
21657
- var l;
21658
- (l = t.props) == null || l.perform({
21659
- transactionId: "",
21660
- cancel: !1,
21661
- has_nfc: !1,
21662
- errorCode: "IMAGE_PROCESSING_ERROR"
21663
- }, t._performType);
21664
- return;
21628
+ a = [n.imageData];
21629
+ } else a = [yield e.arrayBuffer()];
21630
+ try {
21631
+ yield window.RegulaDocumentSDK.processImage(a);
21632
+ } catch (e) {
21633
+ var c;
21634
+ (c = t.props) == null || c.perform({
21635
+ transactionId: "",
21636
+ cancel: !1,
21637
+ has_nfc: !1,
21638
+ errorCode: "IMAGE_PROCESSING_ERROR"
21639
+ }, t._performType);
21640
+ }
21665
21641
  }
21666
- let d = (i = t.props) == null || (i = i.moduleProps) == null ? void 0 : i.finalizePackageSettings;
21642
+ let l = (i = t.props) == null || (i = i.moduleProps) == null ? void 0 : i.finalizePackageSettings;
21667
21643
  try {
21668
- var f;
21644
+ var d;
21669
21645
  let e = yield Mz(u(function* () {
21670
21646
  return window.RegulaDocumentSDK.finalizePackage();
21671
- }), d == null ? void 0 : d.retryCount, d == null ? void 0 : d.retryDelay), n = {
21647
+ }), l == null ? void 0 : l.retryCount, l == null ? void 0 : l.retryDelay), n = {
21672
21648
  transactionId: e == null ? void 0 : e.transactionId,
21673
21649
  cancel: !1,
21674
21650
  has_nfc: !1,
21675
21651
  errorCode: ""
21676
21652
  };
21677
- (f = t.props) == null || f.perform(n, t._performType);
21653
+ (d = t.props) == null || d.perform(n, t._performType);
21678
21654
  } catch (e) {
21679
- var p;
21680
- console.log("finalizePackage error: ", e), (p = t.props) == null || p.perform({
21655
+ var f;
21656
+ console.log("finalizePackage error: ", e), (f = t.props) == null || f.perform({
21681
21657
  transactionId: "",
21682
21658
  cancel: !0,
21683
21659
  has_nfc: !1,
@@ -21708,12 +21684,12 @@ var qz = (e) => e == null ? z : e, Jz = o`
21708
21684
  let { processParam: t, sessionId: n, serviceToken: r, selectionLimit: i } = this.props.moduleProps;
21709
21685
  this._input.multiple = typeof i == "number" && (i === 0 || i > 1);
21710
21686
  let a = Pz(t), o = a == null || (e = a.backendProcessing) == null ? void 0 : e.serviceURL;
21711
- if (!o || !sz(o)) {
21687
+ if (!o || !Fz(o)) {
21712
21688
  let e = new Tz({
21713
- errorCode: mz.CONFIGURATION_FAILED,
21689
+ errorCode: pz.CONFIGURATION_FAILED,
21714
21690
  message: "serviceURL is not defined or is invalid."
21715
21691
  }), t = new wz({
21716
- errorCode: pz.SCAN_ERROR,
21692
+ errorCode: fz.SCAN_ERROR,
21717
21693
  underlyingBaseError: e
21718
21694
  });
21719
21695
  this.props.perform(t);
@@ -21731,14 +21707,14 @@ var qz = (e) => e == null ? z : e, Jz = o`
21731
21707
  return de`<div
21732
21708
  part="gallery-root"
21733
21709
  class="gallery-root"
21734
- dir="${lz(n)}"
21710
+ dir="${cz(n)}"
21735
21711
  lang="${n}"
21736
- style="background: ${qz((t = this.props) == null || (t = t.moduleProps) == null ? void 0 : t.backgroundColor)}"
21712
+ style="background: ${Jz((t = this.props) == null || (t = t.moduleProps) == null ? void 0 : t.backgroundColor)}"
21737
21713
  >
21738
21714
  <div class="header">
21739
- <button @click="${this._handleCloseClick}" class="close-btn">${Yz}</button>
21715
+ <button @click="${this._handleCloseClick}" class="close-btn">${Xz}</button>
21740
21716
  </div>
21741
- <button @click="${this._handleUploadClick}" class="btn">${Xz}</button>
21717
+ <button @click="${this._handleUploadClick}" class="btn">${Zz}</button>
21742
21718
  <input
21743
21719
  @change="${this._handleInputChange}"
21744
21720
  id="file-input"
@@ -21747,15 +21723,14 @@ var qz = (e) => e == null ? z : e, Jz = o`
21747
21723
  accept="image/png, image/jpeg, image/bmp, image/webp, image/gif, .jpg, .jpeg"
21748
21724
  />
21749
21725
  <div class="footer">
21750
- <a href>${Zz} </a>
21726
+ <a href>${Qz} </a>
21751
21727
  </div>
21752
21728
  </div>`;
21753
21729
  }
21754
- }, $z = (Qz.styles = [Jz], Qz);
21755
- Wz([Dz(), Uz("design:type", Object)], $z.prototype, "props", void 0), Wz([kz("#file-input"), Uz("design:type", typeof HTMLInputElement > "u" ? Object : HTMLInputElement)], $z.prototype, "_input", void 0), $z = Wz([Ez("document-reader-gallery")], $z);
21756
- //#endregion
21757
- //#region src/web-components/document-idv/index.ts
21758
- var eB, tB = !1, nB = class e extends Me {
21730
+ }, eB = ($z.styles = [Yz], $z);
21731
+ Gz([Dz(), Wz("design:type", Object)], eB.prototype, "props", void 0), Gz([kz("#file-input"), Wz("design:type", typeof HTMLInputElement > "u" ? Object : HTMLInputElement)], eB.prototype, "_input", void 0), eB = Gz([Ez("document-reader-gallery")], eB);
21732
+ // src/web-components/document-idv/index.ts
21733
+ var tB, nB = !1, rB = class e extends Me {
21759
21734
  constructor(...e) {
21760
21735
  super(...e), this.props = null, this.renderVersion = 0;
21761
21736
  }
@@ -21763,7 +21738,7 @@ var eB, tB = !1, nB = class e extends Me {
21763
21738
  if (!e.getSupportedTemplates().includes(t.moduleProps.templateId)) {
21764
21739
  var n;
21765
21740
  let e = new wz({
21766
- errorCode: pz.UNKNOWN_STEP,
21741
+ errorCode: fz.UNKNOWN_STEP,
21767
21742
  message: `TemplateId ${t.moduleProps.templateId} is not supported`
21768
21743
  });
21769
21744
  (n = t.perform) == null || n.call(t, e);
@@ -21772,7 +21747,7 @@ var eB, tB = !1, nB = class e extends Me {
21772
21747
  if (r && r.blockingAssets.size > 0) {
21773
21748
  var i;
21774
21749
  let e = new wz({
21775
- errorCode: pz.IMAGE_LOADING_FAILED,
21750
+ errorCode: fz.IMAGE_LOADING_FAILED,
21776
21751
  message: `Failed to load image asset${r.blockingAssets.size > 1 ? "s" : ""}: ${[...r.blockingAssets].join(", ")}`
21777
21752
  });
21778
21753
  (i = t.perform) == null || i.call(t, e);
@@ -21780,10 +21755,10 @@ var eB, tB = !1, nB = class e extends Me {
21780
21755
  this.renderVersion++, this.props = t;
21781
21756
  }
21782
21757
  static isReady() {
21783
- return tB;
21758
+ return nB;
21784
21759
  }
21785
21760
  static getSupportedTemplates() {
21786
- return [fz.DOC_READER, fz.DOC_READER_GALLERY];
21761
+ return [dz.DOC_READER, dz.DOC_READER_GALLERY];
21787
21762
  }
21788
21763
  static initialize(e) {
21789
21764
  var t, n;
@@ -21792,22 +21767,21 @@ var eB, tB = !1, nB = class e extends Me {
21792
21767
  window.RegulaDocumentSDK.initialize({
21793
21768
  license: r,
21794
21769
  module: i
21795
- }).then(() => tB = !0);
21770
+ }).then(() => nB = !0);
21796
21771
  });
21797
21772
  }
21798
21773
  static deinitialize() {
21799
21774
  var e;
21800
- tB = !1, (e = window.RegulaDocumentSDK) == null || e.shutdown();
21775
+ nB = !1, (e = window.RegulaDocumentSDK) == null || e.shutdown();
21801
21776
  }
21802
21777
  static getIdentifier() {
21803
- return hz;
21778
+ return mz;
21804
21779
  }
21805
21780
  static cancel() {}
21806
21781
  render() {
21807
21782
  var e;
21808
- return de`${ze(this.renderVersion, de`${XR((e = this.props) == null || (e = e.moduleProps) == null ? void 0 : e.templateId, [[fz.DOC_READER, () => de`<document-reader-camera .props=${this.props}></document-reader-camera>`], [fz.DOC_READER_GALLERY, () => de`<document-reader-gallery .props=${this.props}></document-reader-gallery>`]])}`)}`;
21783
+ return de`${ze(this.renderVersion, de`${XR((e = this.props) == null || (e = e.moduleProps) == null ? void 0 : e.templateId, [[dz.DOC_READER, () => de`<document-reader-camera .props=${this.props}></document-reader-camera>`], [dz.DOC_READER_GALLERY, () => de`<document-reader-gallery .props=${this.props}></document-reader-gallery>`]])}`)}`;
21809
21784
  }
21810
21785
  };
21811
- eB = nB, eB.displayName = hz, Wz([YR({ attribute: !1 }), Uz("design:type", Object)], nB.prototype, "props", void 0), Wz([YR({ attribute: !1 }), Uz("design:type", Object)], nB.prototype, "renderVersion", void 0), iz(hz, nB);
21812
- //#endregion
21813
- export { nB as DocumentIdv, Tf as ModuleType };
21786
+ tB = rB, tB.displayName = mz, Gz([YR({ attribute: !1 }), Wz("design:type", Object)], rB.prototype, "props", void 0), Gz([YR({ attribute: !1 }), Wz("design:type", Object)], rB.prototype, "renderVersion", void 0), iz(mz, rB);
21787
+ export { rB as DocumentIdv, xz as ModuleType };