@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 +1 -1
- package/dist/main.js +20 -20
- package/package.json +1 -1
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&&((
|
|
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 && ((
|
|
21107
|
-
if (((
|
|
21108
|
-
const
|
|
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
|
-
(
|
|
21114
|
+
(a = this.props) == null || a.perform(m, this._performType);
|
|
21115
21115
|
}
|
|
21116
|
-
const
|
|
21117
|
-
if (!(
|
|
21118
|
-
(
|
|
21119
|
-
var
|
|
21120
|
-
const
|
|
21121
|
-
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
|
-
(
|
|
21127
|
-
}).catch((
|
|
21128
|
-
var
|
|
21129
|
-
console.log("finalizePackage error: ",
|
|
21130
|
-
const
|
|
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
|
-
(
|
|
21136
|
+
(g = this.props) == null || g.perform(m, this._performType);
|
|
21137
21137
|
});
|
|
21138
21138
|
}
|
|
21139
|
-
if (((
|
|
21140
|
-
const
|
|
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
|
-
(
|
|
21146
|
+
(u = this.props) == null || u.perform(f, this._performType);
|
|
21147
21147
|
}
|
|
21148
21148
|
};
|
|
21149
21149
|
}
|
package/package.json
CHANGED