@regulaforensics/idv-document 3.4.309-nightly → 3.4.310-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
@@ -10186,22 +10186,22 @@ $e.getAdapter = hb.getAdapter;
10186
10186
  $e.HttpStatusCode = Ju;
10187
10187
  $e.default = $e;
10188
10188
  const {
10189
- Axios: Ble,
10190
- AxiosError: zle,
10191
- CanceledError: Gle,
10192
- isCancel: Wle,
10193
- CancelToken: $le,
10194
- VERSION: Kle,
10195
- all: qle,
10196
- Cancel: Yle,
10197
- isAxiosError: Qle,
10198
- spread: Xle,
10199
- toFormData: Jle,
10200
- AxiosHeaders: ece,
10201
- HttpStatusCode: tce,
10202
- formToJSON: rce,
10203
- getAdapter: nce,
10204
- mergeConfig: ice
10189
+ Axios: zle,
10190
+ AxiosError: Gle,
10191
+ CanceledError: Wle,
10192
+ isCancel: $le,
10193
+ CancelToken: Kle,
10194
+ VERSION: qle,
10195
+ all: Yle,
10196
+ Cancel: Qle,
10197
+ isAxiosError: Xle,
10198
+ spread: Jle,
10199
+ toFormData: ece,
10200
+ AxiosHeaders: tce,
10201
+ HttpStatusCode: rce,
10202
+ formToJSON: nce,
10203
+ getAdapter: ice,
10204
+ mergeConfig: ace
10205
10205
  } = $e, ar = "https://api.regulaforensics.com".replace(/\/+$/, "");
10206
10206
  class ao {
10207
10207
  constructor(t, r = ar, n = $e) {
@@ -20873,7 +20873,9 @@ const d2 = "idv-document", q9 = {
20873
20873
  1: !0,
20874
20874
  2: !1,
20875
20875
  3: !0
20876
- }, X9 = 1920, J9 = 4e6, R3e = 5e7, Jr = class Jr extends nn {
20876
+ }, X9 = 1920, J9 = 4e6, R3e = 5e7;
20877
+ var I3e = /* @__PURE__ */ ((e) => (e.BarcodeMRZ = "BarcodeMRZ", e.BoundsLite = "BoundsLite", e))(I3e || {});
20878
+ const Jr = class Jr extends nn {
20877
20879
  constructor({
20878
20880
  errorCode: t,
20879
20881
  message: r,
@@ -20927,14 +20929,14 @@ const oy = (e) => (t, r) => {
20927
20929
  function sy(e) {
20928
20930
  return iy(F5(Ut({}, e), { state: !0, attribute: !1 }));
20929
20931
  }
20930
- const I3e = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
20932
+ const T3e = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
20931
20933
  function ly(e, t) {
20932
20934
  return (r, n, i) => {
20933
20935
  const a = (o) => {
20934
20936
  var l, c;
20935
20937
  return (c = (l = o.renderRoot) == null ? void 0 : l.querySelector(e)) != null ? c : null;
20936
20938
  };
20937
- return I3e(r, n, { get() {
20939
+ return T3e(r, n, { get() {
20938
20940
  return a(this);
20939
20941
  } });
20940
20942
  };
@@ -20946,15 +20948,15 @@ const cy = (e) => e != null ? e : It, uy = (e) => e ? (e.internalScenario && (e.
20946
20948
  return !1;
20947
20949
  }
20948
20950
  };
20949
- function T3e(e, t, r, n, i) {
20951
+ function P3e(e, t, r, n, i) {
20950
20952
  const a = e * t, o = a > i, l = a > n, s = (e > r || t > r || l) && !o;
20951
20953
  return { width: e, height: t, isExtraLargeResolution: o, isDownscaleNeeded: s };
20952
20954
  }
20953
- const P3e = (e, t, r, n) => Ni(null, null, function* () {
20955
+ const O3e = (e, t, r, n) => Ni(null, null, function* () {
20954
20956
  const i = yield createImageBitmap(e), { width: a, height: o } = i;
20955
- return i == null || i.close(), T3e(a, o, t, r, n);
20957
+ return i == null || i.close(), P3e(a, o, t, r, n);
20956
20958
  });
20957
- function O3e({
20959
+ function D3e({
20958
20960
  width: e,
20959
20961
  height: t,
20960
20962
  softSideLimit: r,
@@ -20965,7 +20967,7 @@ function O3e({
20965
20967
  const i = Math.max(e, t), a = e * t, o = i > r ? r / i : 1, l = a > n ? Math.sqrt(n / a) : 1, c = Math.min(o, l, 1), s = Math.max(1, Math.floor(e * c)), u = Math.max(1, Math.floor(t * c));
20966
20968
  return { width: s, height: u };
20967
20969
  }
20968
- function D3e(e, t, r) {
20970
+ function x3e(e, t, r) {
20969
20971
  return Ni(this, null, function* () {
20970
20972
  return new Promise((i) => {
20971
20973
  if (!e || !e.size) return i({ ok: !1 });
@@ -20981,7 +20983,7 @@ function D3e(e, t, r) {
20981
20983
  c.onload = null, c.onerror = null, c.src = "", i(u);
20982
20984
  };
20983
20985
  c.onload = function() {
20984
- const u = O3e({
20986
+ const u = D3e({
20985
20987
  width: c.width,
20986
20988
  height: c.height,
20987
20989
  softSideLimit: t,
@@ -21000,7 +21002,7 @@ function D3e(e, t, r) {
21000
21002
  });
21001
21003
  });
21002
21004
  }
21003
- const x3e = (e) => {
21005
+ const N3e = (e) => {
21004
21006
  const { translationKeysData: t, translationKeysProps: r, locale: n } = e, i = {};
21005
21007
  let a = null;
21006
21008
  for (const o in t)
@@ -21010,54 +21012,54 @@ const x3e = (e) => {
21010
21012
  return a ? {
21011
21013
  [n]: a
21012
21014
  } : {};
21013
- }, N3e = { fallback: "Preparing the camera...", key: "strPrepareCamera" }, L3e = { fallback: "Timeout", key: "strTimeout" }, Z3e = { fallback: "No camera focus", key: "strNoFocus" }, j3e = { fallback: "Something went wrong", key: "messageUnknownError" }, F3e = { fallback: "No camera with the specified ID found.", key: "InfoScreenIncorrectCameraIdTitle" }, U3e = { fallback: "Done!", key: "strDoneMessage" }, B3e = { fallback: "Camera unavailable!", key: "statusCameraUnavailableTitle" }, z3e = { fallback: "Your browser version is not supported", key: "statusBrowserNotSupportedTitle" }, G3e = { fallback: "HTTPS not used", key: "statusBrowserHTTPNotSupportedSubtitle" }, W3e = { fallback: "Insecure context", key: "statusBrowserInsecurePageContextSubtitle" }, $3e = { fallback: "The license cannot be found or has expired", key: "statusProcMgrBadLicenseSubtitle" }, K3e = { fallback: "This file is corrupt or not supported", key: "statusIncorrectDataTitle" }, q3e = { fallback: "This file is too large to be uploaded", key: "statusLargeDataTitle" }, Y3e = { fallback: "Fit the document into the frame", key: "strPlaceDocumentInFrame" }, Q3e = { fallback: "Hold the document straight", key: "strHoldDocumentStraight" }, X3e = { fallback: "Avoid glare on the document", key: "strGlaresOnDocument" }, J3e = { fallback: "Try again", key: "faceLivenessScreenButton" }, ele = { fallback: "No camera available", key: "InfoScreenNoCameraTitle" }, tle = { fallback: "Position the document in the center", key: "documentReaderDocumentReaderLayoutDocumentCenter" }, rle = { fallback: "Upload a photo", key: "cameraCaptureCameraCaptureStartScreenTitle" }, nle = { fallback: "Move closer", key: "hint.moveCloser" }, ile = { fallback: "Hold the device still", key: "strKeepDeviceStill" }, ale = { fallback: "Camera", key: "strCamera" }, ole = { fallback: "Switch to mobile", key: "switchToMobile" }, sle = { fallback: "Open the camera on your mobile device, scan the QR code, and follow the link", key: "openPhoneCamera" }, lle = { fallback: "Please wait...", key: "strPleaseWait" }, cle = { fallback: "Mobile device", key: "mobileDevice" }, ule = { fallback: "Identity document verification", key: "verifyYourIdentity" }, fle = { fallback: "Capture a document using the computer’s camera, upload it from files, or scan it on a mobile device", key: "fromCameraFilesMobileDesktop" }, dle = { fallback: "Capture a document using the computer’s camera or upload it from files", key: "fromCameraFilesDesktop" }, hle = { fallback: "Capture a document using the computer’s camera or scan it on a mobile device", key: "fromCameraMobileDesktop" }, ple = { fallback: "Upload a document from files or scan it on a mobile device", key: "fromFilesMobileDesktop" }, mle = { fallback: "Use the computer's camera to capture a document", key: "fromCameraDesktop" }, gle = { fallback: "Pick a document from files and upload it", key: "fromFilesDesktop" }, vle = { fallback: "Use your mobile camera to capture a document", key: "fromMobileDesktop" }, ble = { fallback: "Capture a document using the mobile's camera or upload it from gallery", key: "fromCameraGalleryMobile" }, _le = { fallback: "Pick a document from the gallery and upload it", key: "fromGalleryMobile" }, yle = { fallback: "Gallery", key: "gallery" }, wle = { fallback: "Files", key: "files" }, Cle = { fallback: "Return to the computer", key: "returnToComputer" }, Hle = { fallback: "Your document has been captured", key: "documentCaptured" }, Vle = { fallback: "or", key: "strOr" }, Ele = { fallback: "Click here to continue in browser", key: "continueInBrowser" }, kle = { fallback: "Skip", key: "strSkip" }, Sle = { fallback: "Flip the document", key: "documentReaderDocumentReaderLayoutFlipDocument" }, Mle = { fallback: "Tilt the document", key: "strTiltDocument" }, Ale = {
21014
- preparingCamera: N3e,
21015
- timeout: L3e,
21016
- noFocus: Z3e,
21017
- somethingWentWrong: j3e,
21018
- incorrectCameraId: F3e,
21019
- done: U3e,
21020
- cameraUnavailable: B3e,
21021
- versionNotSupported: z3e,
21022
- httpNotSupported: G3e,
21023
- insecurePageContext: W3e,
21024
- badLicense: $3e,
21025
- fileCorrupt: K3e,
21026
- largeFile: q3e,
21027
- placeDocumentIntoFrame: Y3e,
21028
- holdDocumentStraight: Q3e,
21029
- glaresOnDocument: X3e,
21030
- tryAgain: J3e,
21031
- noCameraAvailable: ele,
21032
- positionDocumentCenter: tle,
21033
- uploadPhoto: rle,
21034
- moveCloser: nle,
21035
- keepDeviceStill: ile,
21036
- camera: ale,
21037
- switchToMobile: ole,
21038
- openPhoneCamera: sle,
21039
- pleaseWait: lle,
21040
- mobileDevice: cle,
21041
- verifyYourIdentity: ule,
21042
- fromCameraFilesMobileDesktop: fle,
21043
- fromCameraFilesDesktop: dle,
21044
- fromCameraMobileDesktop: hle,
21045
- fromFilesMobileDesktop: ple,
21046
- fromCameraDesktop: mle,
21047
- fromFilesDesktop: gle,
21048
- fromMobileDesktop: vle,
21049
- fromCameraGalleryMobile: ble,
21050
- fromGalleryMobile: _le,
21051
- gallery: yle,
21052
- files: wle,
21053
- returnToComputer: Cle,
21054
- documentCaptured: Hle,
21055
- or: Vle,
21056
- continueInBrowser: Ele,
21057
- skip: kle,
21058
- flipTheDocument: Sle,
21059
- tiltTheDocument: Mle
21060
- }, Rle = Wt`
21015
+ }, L3e = { fallback: "Preparing the camera...", key: "strPrepareCamera" }, Z3e = { fallback: "Timeout", key: "strTimeout" }, j3e = { fallback: "No camera focus", key: "strNoFocus" }, F3e = { fallback: "Something went wrong", key: "messageUnknownError" }, U3e = { fallback: "No camera with the specified ID found.", key: "InfoScreenIncorrectCameraIdTitle" }, B3e = { fallback: "Done!", key: "strDoneMessage" }, z3e = { fallback: "Camera unavailable!", key: "statusCameraUnavailableTitle" }, G3e = { fallback: "Your browser version is not supported", key: "statusBrowserNotSupportedTitle" }, W3e = { fallback: "HTTPS not used", key: "statusBrowserHTTPNotSupportedSubtitle" }, $3e = { fallback: "Insecure context", key: "statusBrowserInsecurePageContextSubtitle" }, K3e = { fallback: "The license cannot be found or has expired", key: "statusProcMgrBadLicenseSubtitle" }, q3e = { fallback: "This file is corrupt or not supported", key: "statusIncorrectDataTitle" }, Y3e = { fallback: "This file is too large to be uploaded", key: "statusLargeDataTitle" }, Q3e = { fallback: "Fit the document into the frame", key: "strPlaceDocumentInFrame" }, X3e = { fallback: "Hold the document straight", key: "strHoldDocumentStraight" }, J3e = { fallback: "Avoid glare on the document", key: "strGlaresOnDocument" }, ele = { fallback: "Try again", key: "faceLivenessScreenButton" }, tle = { fallback: "No camera available", key: "InfoScreenNoCameraTitle" }, rle = { fallback: "Position the document in the center", key: "documentReaderDocumentReaderLayoutDocumentCenter" }, nle = { fallback: "Upload a photo", key: "cameraCaptureCameraCaptureStartScreenTitle" }, ile = { fallback: "Move closer", key: "hint.moveCloser" }, ale = { fallback: "Hold the device still", key: "strKeepDeviceStill" }, ole = { fallback: "Camera", key: "strCamera" }, sle = { fallback: "Switch to mobile", key: "switchToMobile" }, lle = { fallback: "Open the camera on your mobile device, scan the QR code, and follow the link", key: "openPhoneCamera" }, cle = { fallback: "Please wait...", key: "strPleaseWait" }, ule = { fallback: "Mobile device", key: "mobileDevice" }, fle = { fallback: "Identity document verification", key: "verifyYourIdentity" }, dle = { fallback: "Capture a document using the computer’s camera, upload it from files, or scan it on a mobile device", key: "fromCameraFilesMobileDesktop" }, hle = { fallback: "Capture a document using the computer’s camera or upload it from files", key: "fromCameraFilesDesktop" }, ple = { fallback: "Capture a document using the computer’s camera or scan it on a mobile device", key: "fromCameraMobileDesktop" }, mle = { fallback: "Upload a document from files or scan it on a mobile device", key: "fromFilesMobileDesktop" }, gle = { fallback: "Use the computer's camera to capture a document", key: "fromCameraDesktop" }, vle = { fallback: "Pick a document from files and upload it", key: "fromFilesDesktop" }, ble = { fallback: "Use your mobile camera to capture a document", key: "fromMobileDesktop" }, _le = { fallback: "Capture a document using the mobile's camera or upload it from gallery", key: "fromCameraGalleryMobile" }, yle = { fallback: "Pick a document from the gallery and upload it", key: "fromGalleryMobile" }, wle = { fallback: "Gallery", key: "gallery" }, Cle = { fallback: "Files", key: "files" }, Hle = { fallback: "Return to the computer", key: "returnToComputer" }, Vle = { fallback: "Your document has been captured", key: "documentCaptured" }, Ele = { fallback: "or", key: "strOr" }, kle = { fallback: "Click here to continue in browser", key: "continueInBrowser" }, Sle = { fallback: "Skip", key: "strSkip" }, Mle = { fallback: "Flip the document", key: "documentReaderDocumentReaderLayoutFlipDocument" }, Ale = { fallback: "Tilt the document", key: "strTiltDocument" }, Rle = {
21016
+ preparingCamera: L3e,
21017
+ timeout: Z3e,
21018
+ noFocus: j3e,
21019
+ somethingWentWrong: F3e,
21020
+ incorrectCameraId: U3e,
21021
+ done: B3e,
21022
+ cameraUnavailable: z3e,
21023
+ versionNotSupported: G3e,
21024
+ httpNotSupported: W3e,
21025
+ insecurePageContext: $3e,
21026
+ badLicense: K3e,
21027
+ fileCorrupt: q3e,
21028
+ largeFile: Y3e,
21029
+ placeDocumentIntoFrame: Q3e,
21030
+ holdDocumentStraight: X3e,
21031
+ glaresOnDocument: J3e,
21032
+ tryAgain: ele,
21033
+ noCameraAvailable: tle,
21034
+ positionDocumentCenter: rle,
21035
+ uploadPhoto: nle,
21036
+ moveCloser: ile,
21037
+ keepDeviceStill: ale,
21038
+ camera: ole,
21039
+ switchToMobile: sle,
21040
+ openPhoneCamera: lle,
21041
+ pleaseWait: cle,
21042
+ mobileDevice: ule,
21043
+ verifyYourIdentity: fle,
21044
+ fromCameraFilesMobileDesktop: dle,
21045
+ fromCameraFilesDesktop: hle,
21046
+ fromCameraMobileDesktop: ple,
21047
+ fromFilesMobileDesktop: mle,
21048
+ fromCameraDesktop: gle,
21049
+ fromFilesDesktop: vle,
21050
+ fromMobileDesktop: ble,
21051
+ fromCameraGalleryMobile: _le,
21052
+ fromGalleryMobile: yle,
21053
+ gallery: wle,
21054
+ files: Cle,
21055
+ returnToComputer: Hle,
21056
+ documentCaptured: Vle,
21057
+ or: Ele,
21058
+ continueInBrowser: kle,
21059
+ skip: Sle,
21060
+ flipTheDocument: Mle,
21061
+ tiltTheDocument: Ale
21062
+ }, Ile = Wt`
21061
21063
  *,
21062
21064
  ::after,
21063
21065
  ::before {
@@ -21083,10 +21085,10 @@ const x3e = (e) => {
21083
21085
  height: 100%;
21084
21086
  }
21085
21087
  `;
21086
- var Ile = Object.defineProperty, Tle = Object.getOwnPropertyDescriptor, T5 = (e, t, r, n) => {
21087
- for (var i = n > 1 ? void 0 : n ? Tle(t, r) : t, a = e.length - 1, o; a >= 0; a--)
21088
+ var Tle = Object.defineProperty, Ple = Object.getOwnPropertyDescriptor, T5 = (e, t, r, n) => {
21089
+ for (var i = n > 1 ? void 0 : n ? Ple(t, r) : t, a = e.length - 1, o; a >= 0; a--)
21088
21090
  (o = e[a]) && (i = (n ? o(t, r, i) : o(i)) || i);
21089
- return n && i && Ile(t, r, i), i;
21091
+ return n && i && Tle(t, r, i), i;
21090
21092
  };
21091
21093
  let p2 = class extends xn {
21092
21094
  constructor() {
@@ -21194,8 +21196,8 @@ let p2 = class extends xn {
21194
21196
  }
21195
21197
  _prepareTranslations(e) {
21196
21198
  const { locale: t, localizationKeys: r } = e, n = t && typeof t == "string" ? t.slice(0, 2).toLowerCase() : "";
21197
- return !n || !r ? null : x3e({
21198
- translationKeysData: Ale,
21199
+ return !n || !r ? null : N3e({
21200
+ translationKeysData: Rle,
21199
21201
  translationKeysProps: r,
21200
21202
  locale: n
21201
21203
  });
@@ -21308,7 +21310,7 @@ let p2 = class extends xn {
21308
21310
  ></document-reader>`;
21309
21311
  }
21310
21312
  };
21311
- p2.styles = [Rle];
21313
+ p2.styles = [Ile];
21312
21314
  T5([
21313
21315
  sy()
21314
21316
  ], p2.prototype, "props", 2);
@@ -21318,7 +21320,7 @@ T5([
21318
21320
  p2 = T5([
21319
21321
  oy("document-reader-camera")
21320
21322
  ], p2);
21321
- const Ple = Wt`
21323
+ const Ole = Wt`
21322
21324
  .gallery-root {
21323
21325
  display: flex;
21324
21326
  width: 100%;
@@ -21379,7 +21381,7 @@ const Ple = Wt`
21379
21381
  align-items: center;
21380
21382
  justify-content: center;
21381
21383
  }
21382
- `, Ole = Cn`<svg
21384
+ `, Dle = Cn`<svg
21383
21385
  xmlns="http://www.w3.org/2000/svg"
21384
21386
  viewBox="0 0 24 24"
21385
21387
  width="24"
@@ -21387,7 +21389,7 @@ const Ple = Wt`
21387
21389
  fill="rgba(0,0,0,0.6)"
21388
21390
  >
21389
21391
  <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" />
21390
- </svg>`, Dle = Cn` <svg
21392
+ </svg>`, xle = Cn` <svg
21391
21393
  width="40"
21392
21394
  height="40"
21393
21395
  viewBox="0 0 23 22"
@@ -21418,7 +21420,7 @@ const Ple = Wt`
21418
21420
  <rect width="22" height="22" fill="white" transform="translate(0.5 1.90735e-05)" />
21419
21421
  </clipPath>
21420
21422
  </defs>
21421
- </svg>`, xle = Cn`<svg
21423
+ </svg>`, Nle = Cn`<svg
21422
21424
  width="113"
21423
21425
  height="16"
21424
21426
  viewBox="0 0 113 16"
@@ -21451,10 +21453,10 @@ const Ple = Wt`
21451
21453
  fill="#BD7DFF"
21452
21454
  />
21453
21455
  </svg>`;
21454
- var Nle = Object.defineProperty, Lle = Object.getOwnPropertyDescriptor, P5 = (e, t, r, n) => {
21455
- for (var i = n > 1 ? void 0 : n ? Lle(t, r) : t, a = e.length - 1, o; a >= 0; a--)
21456
+ var Lle = Object.defineProperty, Zle = Object.getOwnPropertyDescriptor, P5 = (e, t, r, n) => {
21457
+ for (var i = n > 1 ? void 0 : n ? Zle(t, r) : t, a = e.length - 1, o; a >= 0; a--)
21456
21458
  (o = e[a]) && (i = (n ? o(t, r, i) : o(i)) || i);
21457
- return n && i && Nle(t, r, i), i;
21459
+ return n && i && Lle(t, r, i), i;
21458
21460
  };
21459
21461
  let m2 = class extends xn {
21460
21462
  constructor() {
@@ -21464,7 +21466,7 @@ let m2 = class extends xn {
21464
21466
  if (!r.length) return;
21465
21467
  (o = this.props) != null && o.isProcessing && this.props.isProcessing(!0), yield window.RegulaDocumentSDK.createBackendTransaction({}, window.RegulaDocumentSDK.recognizerProcessParam);
21466
21468
  for (const d of r) {
21467
- const { isExtraLargeResolution: h, isDownscaleNeeded: p } = yield P3e(
21469
+ const { isExtraLargeResolution: h, isDownscaleNeeded: p } = yield O3e(
21468
21470
  d,
21469
21471
  X9,
21470
21472
  J9,
@@ -21482,7 +21484,7 @@ let m2 = class extends xn {
21482
21484
  }
21483
21485
  let g;
21484
21486
  if (p || m) {
21485
- const _ = yield D3e(d, X9, J9);
21487
+ const _ = yield x3e(d, X9, J9);
21486
21488
  if (!_.ok) {
21487
21489
  const v = {
21488
21490
  transactionId: "",
@@ -21575,9 +21577,9 @@ let m2 = class extends xn {
21575
21577
  style="background: ${cy((a = (i = this.props) == null ? void 0 : i.moduleProps) == null ? void 0 : a.backgroundColor)}"
21576
21578
  >
21577
21579
  <div class="header">
21578
- <button @click="${this._handleCloseClick}" class="close-btn">${Ole}</button>
21580
+ <button @click="${this._handleCloseClick}" class="close-btn">${Dle}</button>
21579
21581
  </div>
21580
- <button @click="${this._handleUploadClick}" class="btn">${Dle}</button>
21582
+ <button @click="${this._handleUploadClick}" class="btn">${xle}</button>
21581
21583
  <input
21582
21584
  @change="${this._handleInputChange}"
21583
21585
  id="file-input"
@@ -21586,12 +21588,12 @@ let m2 = class extends xn {
21586
21588
  accept="image/png, image/jpeg, image/bmp, image/webp, image/gif, .jpg, .jpeg"
21587
21589
  />
21588
21590
  <div class="footer">
21589
- <a href>${xle} </a>
21591
+ <a href>${Nle} </a>
21590
21592
  </div>
21591
21593
  </div>`;
21592
21594
  }
21593
21595
  };
21594
- m2.styles = [Ple];
21596
+ m2.styles = [Ole];
21595
21597
  P5([
21596
21598
  sy()
21597
21599
  ], m2.prototype, "props", 2);
@@ -21601,10 +21603,10 @@ P5([
21601
21603
  m2 = P5([
21602
21604
  oy("document-reader-gallery")
21603
21605
  ], m2);
21604
- var Zle = Object.defineProperty, jle = (e, t, r, n) => {
21606
+ var jle = Object.defineProperty, Fle = (e, t, r, n) => {
21605
21607
  for (var i = void 0, a = e.length - 1, o; a >= 0; a--)
21606
21608
  (o = e[a]) && (i = o(t, r, i) || i);
21607
- return i && Zle(t, r, i), i;
21609
+ return i && jle(t, r, i), i;
21608
21610
  };
21609
21611
  let xu = !1;
21610
21612
  var Nn;
@@ -21628,14 +21630,14 @@ const dy = (Nn = class extends xn {
21628
21630
  return [ca.DOC_READER, ca.DOC_READER_GALLERY];
21629
21631
  }
21630
21632
  static initialize(t) {
21631
- var n;
21632
- const r = (n = t == null ? void 0 : t.docreader) == null ? void 0 : n.devLicense;
21633
+ var i, a;
21634
+ const r = (i = t == null ? void 0 : t.docreader) == null ? void 0 : i.devLicense, n = (a = t == null ? void 0 : t.docreader) == null ? void 0 : a.module;
21633
21635
  window.RegulaDocumentSDK = new i3e(), console.info(
21634
21636
  "%cDocument Reader web component version: %s",
21635
21637
  "color: #6e56b0;",
21636
21638
  window.RegulaDocumentSDK.version.component
21637
21639
  ), a3e().then(() => {
21638
- window.RegulaDocumentSDK.initialize({ license: r }).then(() => xu = !0);
21640
+ window.RegulaDocumentSDK.initialize({ license: r, module: n }).then(() => xu = !0);
21639
21641
  });
21640
21642
  }
21641
21643
  static deinitialize() {
@@ -21659,11 +21661,12 @@ const dy = (Nn = class extends xn {
21659
21661
  ])}`;
21660
21662
  }
21661
21663
  }, Nn.displayName = d2, Nn);
21662
- jle([
21664
+ Fle([
21663
21665
  iy({ attribute: !1 })
21664
21666
  ], dy.prototype, "props");
21665
- let Fle = dy;
21666
- k3e(d2, Fle);
21667
+ let Ule = dy;
21668
+ k3e(d2, Ule);
21667
21669
  export {
21668
- Fle as DocumentIdv
21670
+ Ule as DocumentIdv,
21671
+ I3e as ModuleType
21669
21672
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-document",
3
- "version": "3.4.309-nightly",
3
+ "version": "3.4.310-nightly",
4
4
  "description": "Regula framework agnostic web components to work with document idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.iife.js",