@regulaforensics/idv-document 3.6.329-nightly → 3.6.331-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
@@ -55,7 +55,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
55
55
  width: 100%;
56
56
  height: 100%;
57
57
  }
58
- `;var Jse=Object.defineProperty,e3e=Object.getOwnPropertyDescriptor,O5=(e,t,r,n)=>{for(var i=n>1?void 0:n?e3e(t,r):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Jse(t,r,i),i};let F2=class extends Nn{constructor(){super(...arguments),this._performType=L_.DATA,this.props=null,this._handleDocumentReader=e=>{var t,r,n,i,a,o,l,c;if(e.detail.action===Ae.CAMERA_PROCESS_STARTED&&((t=this.props)!=null&&t.isProcessing)&&this.props.isProcessing(!1),e.detail.action===Ae.PROCESS_FINISHED){if(((r=e.detail.data)==null?void 0:r.status)===sr.ERROR){const h={transactionId:"",cancel:!1,has_nfc:!1,errorCode:e.detail.data.reason};(n=this.props)==null||n.perform(h,this._performType)}const s=(i=e.detail.data)==null?void 0:i.status,u=s===sr.OK,f=s===sr.TIMEOUT;if(!(u||f)||!((a=e.detail.data)!=null&&a.response))return;(o=this.props)!=null&&o.isProcessing&&this.props.isProcessing(!0),window.RegulaDocumentSDK.finalizePackage().then(d=>{var p;const h={transactionId:(d==null?void 0:d.transactionId)||"",cancel:!1,has_nfc:!1,errorCode:""};(p=this.props)==null||p.perform(h,this._performType)}).catch(d=>{var p;console.log("finalizePackage error: ",d);const h={transactionId:"",cancel:!0,has_nfc:!1,errorCode:""};(p=this.props)==null||p.perform(h,this._performType)})}if(((l=e.detail)==null?void 0:l.action)===Ae.CLOSE||e.detail.action===Ae.CAMERA_PROCESS_CLOSED){const s={transactionId:"",cancel:!0,has_nfc:!1,errorCode:""};(c=this.props)==null||c.perform(s,this._performType)}}}_prepareCustomizationStyles(e){const t=[];return e!=null&&e.backgroundMaskColor&&t.push(Ht`
58
+ `;var Jse=Object.defineProperty,e3e=Object.getOwnPropertyDescriptor,O5=(e,t,r,n)=>{for(var i=n>1?void 0:n?e3e(t,r):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Jse(t,r,i),i};let F2=class extends Nn{constructor(){super(...arguments),this._performType=L_.DATA,this.props=null,this._handleDocumentReader=e=>{var t,r,n,i,a,o,l,c,s,u;if((r=(t=this.props)==null?void 0:t.idvEventListener)==null||r.call(t,"IDV-DOCUMENT",e.detail.action),e.detail.action===Ae.CAMERA_PROCESS_STARTED&&((n=this.props)!=null&&n.isProcessing)&&this.props.isProcessing(!1),e.detail.action===Ae.PROCESS_FINISHED){if(((i=e.detail.data)==null?void 0:i.status)===sr.ERROR){const m={transactionId:"",cancel:!1,has_nfc:!1,errorCode:e.detail.data.reason};(a=this.props)==null||a.perform(m,this._performType)}const f=(o=e.detail.data)==null?void 0:o.status,d=f===sr.OK,h=f===sr.TIMEOUT;if(!(d||h)||!((l=e.detail.data)!=null&&l.response))return;(c=this.props)!=null&&c.isProcessing&&this.props.isProcessing(!0),window.RegulaDocumentSDK.finalizePackage().then(p=>{var g;const m={transactionId:(p==null?void 0:p.transactionId)||"",cancel:!1,has_nfc:!1,errorCode:""};(g=this.props)==null||g.perform(m,this._performType)}).catch(p=>{var g;console.log("finalizePackage error: ",p);const m={transactionId:"",cancel:!0,has_nfc:!1,errorCode:""};(g=this.props)==null||g.perform(m,this._performType)})}if(((s=e.detail)==null?void 0:s.action)===Ae.CLOSE||e.detail.action===Ae.CAMERA_PROCESS_CLOSED){const f={transactionId:"",cancel:!0,has_nfc:!1,errorCode:""};(u=this.props)==null||u.perform(f,this._performType)}}}_prepareCustomizationStyles(e){const t=[];return e!=null&&e.backgroundMaskColor&&t.push(Ht`
59
59
  document-reader::part(frame-external-background) {
60
60
  fill: ${Ft(e.backgroundMaskColor)};
61
61
  }
package/dist/main.js CHANGED
@@ -21102,48 +21102,48 @@ var xle = Object.defineProperty, Nle = Object.getOwnPropertyDescriptor, I5 = (e,
21102
21102
  let p2 = class extends Pn {
21103
21103
  constructor() {
21104
21104
  super(...arguments), this._performType = iy.DATA, this.props = null, this._handleDocumentReader = (e) => {
21105
- var t, r, n, i, a, o, l, c;
21106
- if (e.detail.action === Te.CAMERA_PROCESS_STARTED && ((t = this.props) != null && t.isProcessing) && this.props.isProcessing(!1), e.detail.action === Te.PROCESS_FINISHED) {
21107
- if (((r = e.detail.data) == null ? void 0 : r.status) === or.ERROR) {
21108
- const h = {
21105
+ var t, r, n, i, a, o, l, c, s, u;
21106
+ if ((r = (t = this.props) == null ? void 0 : t.idvEventListener) == null || r.call(t, "IDV-DOCUMENT", e.detail.action), e.detail.action === Te.CAMERA_PROCESS_STARTED && ((n = this.props) != null && n.isProcessing) && this.props.isProcessing(!1), e.detail.action === Te.PROCESS_FINISHED) {
21107
+ if (((i = e.detail.data) == null ? void 0 : i.status) === or.ERROR) {
21108
+ const m = {
21109
21109
  transactionId: "",
21110
21110
  cancel: !1,
21111
21111
  has_nfc: !1,
21112
21112
  errorCode: e.detail.data.reason
21113
21113
  };
21114
- (n = this.props) == null || n.perform(h, this._performType);
21114
+ (a = this.props) == null || a.perform(m, this._performType);
21115
21115
  }
21116
- const s = (i = e.detail.data) == null ? void 0 : i.status, u = s === or.OK, f = s === or.TIMEOUT;
21117
- if (!(u || f) || !((a = e.detail.data) != null && a.response)) return;
21118
- (o = this.props) != null && o.isProcessing && this.props.isProcessing(!0), window.RegulaDocumentSDK.finalizePackage().then((d) => {
21119
- var p;
21120
- const h = {
21121
- transactionId: (d == null ? void 0 : d.transactionId) || "",
21116
+ const f = (o = e.detail.data) == null ? void 0 : o.status, d = f === or.OK, h = f === or.TIMEOUT;
21117
+ if (!(d || h) || !((l = e.detail.data) != null && l.response)) return;
21118
+ (c = this.props) != null && c.isProcessing && this.props.isProcessing(!0), window.RegulaDocumentSDK.finalizePackage().then((p) => {
21119
+ var g;
21120
+ const m = {
21121
+ transactionId: (p == null ? void 0 : p.transactionId) || "",
21122
21122
  cancel: !1,
21123
21123
  has_nfc: !1,
21124
21124
  errorCode: ""
21125
21125
  };
21126
- (p = this.props) == null || p.perform(h, this._performType);
21127
- }).catch((d) => {
21128
- var p;
21129
- console.log("finalizePackage error: ", d);
21130
- const h = {
21126
+ (g = this.props) == null || g.perform(m, this._performType);
21127
+ }).catch((p) => {
21128
+ var g;
21129
+ console.log("finalizePackage error: ", p);
21130
+ const m = {
21131
21131
  transactionId: "",
21132
21132
  cancel: !0,
21133
21133
  has_nfc: !1,
21134
21134
  errorCode: ""
21135
21135
  };
21136
- (p = this.props) == null || p.perform(h, this._performType);
21136
+ (g = this.props) == null || g.perform(m, this._performType);
21137
21137
  });
21138
21138
  }
21139
- if (((l = e.detail) == null ? void 0 : l.action) === Te.CLOSE || e.detail.action === Te.CAMERA_PROCESS_CLOSED) {
21140
- const s = {
21139
+ if (((s = e.detail) == null ? void 0 : s.action) === Te.CLOSE || e.detail.action === Te.CAMERA_PROCESS_CLOSED) {
21140
+ const f = {
21141
21141
  transactionId: "",
21142
21142
  cancel: !0,
21143
21143
  has_nfc: !1,
21144
21144
  errorCode: ""
21145
21145
  };
21146
- (c = this.props) == null || c.perform(s, this._performType);
21146
+ (u = this.props) == null || u.perform(f, this._performType);
21147
21147
  }
21148
21148
  };
21149
21149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-document",
3
- "version": "3.6.329-nightly",
3
+ "version": "3.6.331-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",