@regulaforensics/idv-document 3.10.530-nightly → 3.10.531-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.iife.js CHANGED
@@ -277,7 +277,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
277
277
  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"
278
278
  fill="#BD7DFF"
279
279
  />
280
- </svg>`,VB,HB=(VB=class extends Ne{constructor(...e){var t;super(...e),t=this,this._performType=Jz.DATA,this.props=null,this._handleInputChange=function(){var e=d(function*(e){var n,r,i;let a=[...(n=e.target.files)==null?[]:n];if(!a.length)return;(r=t.props)!=null&&r.isProcessing&&t.props.isProcessing(!0),yield window.RegulaDocumentSDK.createBackendTransaction({},window.RegulaDocumentSDK.recognizerProcessParam);for(let e of a){let{isExtraLargeResolution:n,isDownscaleNeeded:r}=yield TB(e,oB,sB,cB),i=e.type.startsWith(`image/webp`);if(n){var o;(o=t.props)==null||o.perform({transactionId:``,cancel:!1,has_nfc:!1,errorCode:`IMAGE_RESOLUTION_EXCEEDS_LIMIT`},t._performType);return}let a;if(r||i){let n=yield DB(e,oB,sB);if(!n.ok){var s;let e={transactionId:``,cancel:!1,has_nfc:!1,errorCode:r?`IMAGE_DOWNSCALING_ERROR`:`IMAGE_PROCESSING_ERROR`};(s=t.props)==null||s.perform(e,t._performType);return}a=[n.imageData]}else a=[yield e.arrayBuffer()];try{yield window.RegulaDocumentSDK.processImage(a)}catch(e){var c;(c=t.props)==null||c.perform({transactionId:``,cancel:!1,has_nfc:!1,errorCode:`IMAGE_PROCESSING_ERROR`},t._performType)}}let l=(i=t.props)==null||(i=i.moduleProps)==null?void 0:i.finalizePackageSettings;try{var u,f;let e=yield bB(d(function*(){return window.RegulaDocumentSDK.finalizePackage()}),l==null?void 0:l.retryCount,l==null?void 0:l.retryDelay),n={transactionId:e==null?void 0:e.transactionId,cancel:!1,has_nfc:!1,errorCode:``};(u=t.props)==null||u.perform(n,t._performType),(f=t.props)!=null&&f.isProcessing&&t.props.isProcessing(!1)}catch(e){var p;console.log(`finalizePackage error: `,e),(p=t.props)==null||p.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},t._performType)}});return function(t){return e.apply(this,arguments)}}()}_handleUploadClick(){this._input.click()}_handleCloseClick(){var e;(e=this.props)==null||e.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},this._performType)}_setDocReaderGalleryProps(){var e;if(!this.props)return;let{processParam:t,sessionId:n,serviceToken:r,selectionLimit:i}=this.props.moduleProps;this._input.multiple=typeof i==`number`&&(i===0||i>1);let a=SB(t),o=a==null||(e=a.backendProcessing)==null?void 0:e.serviceURL;if(!o||!CB(o)){let e=new pB({errorCode:tB.CONFIGURATION_FAILED,message:`serviceURL is not defined or is invalid.`}),t=new fB({errorCode:eB.SCAN_ERROR,underlyingBaseError:e});this.props.perform(t)}r&&a!=null&&a.backendProcessing&&(a.backendProcessing.httpHeaders={Authorization:`Connection ${r}`});let s={processParam:Wz({},a)};n&&(s.tag=n),window.RegulaDocumentSDK.recognizerProcessParam=s,window.RegulaDocumentSDK.imageProcessParam={processParam:{scenario:_f.MrzAndLocate}}}updated(e){e.has(`props`)&&this._setDocReaderGalleryProps()}render(){var e,t;let n=(e=this.props)==null?void 0:e.moduleProps.locale;return de`<div
280
+ </svg>`,VB,HB=(VB=class extends Ne{constructor(...e){var t;super(...e),t=this,this._performType=Jz.DATA,this.props=null,this._handleInputChange=function(){var e=d(function*(e){var n,r,i;let a=[...(n=e.target.files)==null?[]:n];if(!a.length)return;(r=t.props)!=null&&r.isProcessing&&t.props.isProcessing(!0),yield window.RegulaDocumentSDK.createBackendTransaction({},window.RegulaDocumentSDK.recognizerProcessParam);for(let e of a){let{isExtraLargeResolution:n,isDownscaleNeeded:r}=yield TB(e,oB,sB,cB),i=e.type.startsWith(`image/webp`);if(n){var o;(o=t.props)==null||o.perform({transactionId:``,cancel:!1,has_nfc:!1,errorCode:`IMAGE_RESOLUTION_EXCEEDS_LIMIT`},t._performType);return}let a;if(r||i){let n=yield DB(e,oB,sB);if(!n.ok){var s;let e={transactionId:``,cancel:!1,has_nfc:!1,errorCode:r?`IMAGE_DOWNSCALING_ERROR`:`IMAGE_PROCESSING_ERROR`};(s=t.props)==null||s.perform(e,t._performType);return}a=[n.imageData]}else a=[yield e.arrayBuffer()];try{yield window.RegulaDocumentSDK.processImage(a)}catch(e){var c;(c=t.props)==null||c.perform({transactionId:``,cancel:!1,has_nfc:!1,errorCode:`IMAGE_PROCESSING_ERROR`},t._performType)}}let l=(i=t.props)==null||(i=i.moduleProps)==null?void 0:i.finalizePackageSettings;try{var u;let e=yield bB(d(function*(){return window.RegulaDocumentSDK.finalizePackage()}),l==null?void 0:l.retryCount,l==null?void 0:l.retryDelay),n={transactionId:e==null?void 0:e.transactionId,cancel:!1,has_nfc:!1,errorCode:``};(u=t.props)==null||u.perform(n,t._performType)}catch(e){var f;console.log(`finalizePackage error: `,e),(f=t.props)==null||f.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},t._performType)}});return function(t){return e.apply(this,arguments)}}()}_handleUploadClick(){this._input.click()}_handleCloseClick(){var e;(e=this.props)==null||e.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},this._performType)}_setDocReaderGalleryProps(){var e;if(!this.props)return;let{processParam:t,sessionId:n,serviceToken:r,selectionLimit:i}=this.props.moduleProps;this._input.multiple=typeof i==`number`&&(i===0||i>1);let a=SB(t),o=a==null||(e=a.backendProcessing)==null?void 0:e.serviceURL;if(!o||!CB(o)){let e=new pB({errorCode:tB.CONFIGURATION_FAILED,message:`serviceURL is not defined or is invalid.`}),t=new fB({errorCode:eB.SCAN_ERROR,underlyingBaseError:e});this.props.perform(t)}r&&a!=null&&a.backendProcessing&&(a.backendProcessing.httpHeaders={Authorization:`Connection ${r}`});let s={processParam:Wz({},a)};n&&(s.tag=n),window.RegulaDocumentSDK.recognizerProcessParam=s,window.RegulaDocumentSDK.imageProcessParam={processParam:{scenario:_f.MrzAndLocate}}}updated(e){e.has(`props`)&&this._setDocReaderGalleryProps()}render(){var e,t;let n=(e=this.props)==null?void 0:e.moduleProps.locale;return de`<div
281
281
  part="gallery-root"
282
282
  class="gallery-root"
283
283
  dir="${Xz(n)}"
package/dist/main.js CHANGED
@@ -21686,7 +21686,7 @@ var FB = (e) => e == null ? z : e, IB = o`
21686
21686
  }
21687
21687
  let l = (i = t.props) == null || (i = i.moduleProps) == null ? void 0 : i.finalizePackageSettings;
21688
21688
  try {
21689
- var d, f;
21689
+ var d;
21690
21690
  let e = yield yB(u(function* () {
21691
21691
  return window.RegulaDocumentSDK.finalizePackage();
21692
21692
  }), l == null ? void 0 : l.retryCount, l == null ? void 0 : l.retryDelay), n = {
@@ -21695,10 +21695,10 @@ var FB = (e) => e == null ? z : e, IB = o`
21695
21695
  has_nfc: !1,
21696
21696
  errorCode: ""
21697
21697
  };
21698
- (d = t.props) == null || d.perform(n, t._performType), (f = t.props) != null && f.isProcessing && t.props.isProcessing(!1);
21698
+ (d = t.props) == null || d.perform(n, t._performType);
21699
21699
  } catch (e) {
21700
- var p;
21701
- console.log("finalizePackage error: ", e), (p = t.props) == null || p.perform({
21700
+ var f;
21701
+ console.log("finalizePackage error: ", e), (f = t.props) == null || f.perform({
21702
21702
  transactionId: "",
21703
21703
  cancel: !0,
21704
21704
  has_nfc: !1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-document",
3
- "version": "3.10.530-nightly",
3
+ "version": "3.10.531-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",