@regulaforensics/idv-face 3.6.402-nightly → 3.6.404-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 +17 -13
- package/package.json +1 -1
package/dist/main.iife.js
CHANGED
|
@@ -77,7 +77,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
77
77
|
width: 100%;
|
|
78
78
|
height: 100%;
|
|
79
79
|
}
|
|
80
|
-
`;var MJ=Object.defineProperty,tJ=Object.getOwnPropertyDescriptor,qI=(e,M,t,r)=>{for(var i=r>1?void 0:r?tJ(M,t):M,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(M,t,i):a(i))||i);return r&&i&&MJ(M,t,i),i};let ni=class extends Ir{constructor(){super(...arguments),this._performType=al.DATA,this.props=null,this._isFinishWithExitOnce=!1,this._handleFaceLiveness=e=>{var r,i,n,a,o,u,I,D,g,N,j,c,s,T;const M=e.detail;(n=(r=this.props)==null?void 0:r.idvEventListener)==null||n.call(r,"IDV-FACE",`${M.action}${(i=M.data)!=null&&i.reason?`: ${M.data.reason}`:""}`);const t=((a=M==null?void 0:M.data)==null?void 0:a.transactionId)||"";if(M.action==="PROCESS_FINISHED"){if(this._isFinishWithExitOnce)return;if((
|
|
80
|
+
`;var MJ=Object.defineProperty,tJ=Object.getOwnPropertyDescriptor,qI=(e,M,t,r)=>{for(var i=r>1?void 0:r?tJ(M,t):M,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(M,t,i):a(i))||i);return r&&i&&MJ(M,t,i),i};let ni=class extends Ir{constructor(){super(...arguments),this._performType=al.DATA,this.props=null,this._isFinishWithExitOnce=!1,this._handleFaceLiveness=e=>{var r,i,n,a,o,u,I,D,g,N,j,c,s,T,l;const M=e.detail;(n=(r=this.props)==null?void 0:r.idvEventListener)==null||n.call(r,"IDV-FACE",`${M.action}${(i=M.data)!=null&&i.reason?`: ${M.data.reason}`:""}`);const t=((a=M==null?void 0:M.data)==null?void 0:a.transactionId)||"";if(M.action==="PROCESSING_REQUEST"){(o=this.props)!=null&&o.isProcessing&&this.props.isProcessing(!0);return}if(M.action==="PROCESS_FINISHED"){if(this._isFinishWithExitOnce)return;if((u=M.data)!=null&&u.reason&&((I=M.data)==null?void 0:I.status)===Tg.ERROR&&!ul.includes(M.data.reason)){const A={transactionId:"",cancel:!1,errorCode:M.data.reason};(D=this.props)==null||D.perform(A,this._performType)}if(((g=M.data)==null?void 0:g.status)===Tg.OK&&((N=M.data)!=null&&N.response)&&M.data.response.code===0){(j=this.props)!=null&&j.isProcessing&&this.props.isProcessing(!0);const E={transactionId:M.data.response.transactionId,cancel:!1,errorCode:""};(c=this.props)==null||c.perform(E,this._performType),this._isFinishWithExitOnce=!0;return}}if(M.action==="RETRY_COUNTER_EXCEEDED"){(s=this.props)!=null&&s.isProcessing&&this.props.isProcessing(!0);const y={transactionId:t,cancel:!1,errorCode:""};(T=this.props)==null||T.perform(y,this._performType),this._isFinishWithExitOnce=!0;return}if((M==null?void 0:M.action)==="CLOSE"){const y={transactionId:t,cancel:!0,errorCode:""};(l=this.props)==null||l.perform(y,this._performType)}}}_prepareCustomizationStyles(e,M,t){const r=[];if(e!=null&&e.onboardingScreenBackgroundColor&&r.push(Ce`
|
|
81
81
|
face-liveness::part(onboarding-screen) {
|
|
82
82
|
background-color: ${Se(e.onboardingScreenBackgroundColor)};
|
|
83
83
|
}
|
package/dist/main.js
CHANGED
|
@@ -13639,7 +13639,7 @@ var YX = Object.defineProperty, _X = Object.getOwnPropertyDescriptor, XI = (e, M
|
|
|
13639
13639
|
let Rr = class extends gr {
|
|
13640
13640
|
constructor() {
|
|
13641
13641
|
super(...arguments), this._performType = Fl.DATA, this.props = null, this._isFinishWithExitOnce = !1, this._handleFaceLiveness = (e) => {
|
|
13642
|
-
var r, i, n, a, o, u, I, D, g, N, j, c, s, T;
|
|
13642
|
+
var r, i, n, a, o, u, I, D, g, N, j, c, s, T, l;
|
|
13643
13643
|
const M = e.detail;
|
|
13644
13644
|
(n = (r = this.props) == null ? void 0 : r.idvEventListener) == null || n.call(
|
|
13645
13645
|
r,
|
|
@@ -13647,44 +13647,48 @@ let Rr = class extends gr {
|
|
|
13647
13647
|
`${M.action}${(i = M.data) != null && i.reason ? `: ${M.data.reason}` : ""}`
|
|
13648
13648
|
);
|
|
13649
13649
|
const t = ((a = M == null ? void 0 : M.data) == null ? void 0 : a.transactionId) || "";
|
|
13650
|
+
if (M.action === "PROCESSING_REQUEST") {
|
|
13651
|
+
(o = this.props) != null && o.isProcessing && this.props.isProcessing(!0);
|
|
13652
|
+
return;
|
|
13653
|
+
}
|
|
13650
13654
|
if (M.action === "PROCESS_FINISHED") {
|
|
13651
13655
|
if (this._isFinishWithExitOnce) return;
|
|
13652
|
-
if ((
|
|
13653
|
-
const
|
|
13656
|
+
if ((u = M.data) != null && u.reason && ((I = M.data) == null ? void 0 : I.status) === yg.ERROR && !Jl.includes(M.data.reason)) {
|
|
13657
|
+
const A = {
|
|
13654
13658
|
transactionId: "",
|
|
13655
13659
|
cancel: !1,
|
|
13656
13660
|
errorCode: M.data.reason
|
|
13657
13661
|
};
|
|
13658
|
-
(
|
|
13662
|
+
(D = this.props) == null || D.perform(A, this._performType);
|
|
13659
13663
|
}
|
|
13660
|
-
if (((
|
|
13661
|
-
(
|
|
13662
|
-
const
|
|
13664
|
+
if (((g = M.data) == null ? void 0 : g.status) === yg.OK && ((N = M.data) != null && N.response) && M.data.response.code === 0) {
|
|
13665
|
+
(j = this.props) != null && j.isProcessing && this.props.isProcessing(!0);
|
|
13666
|
+
const E = {
|
|
13663
13667
|
transactionId: M.data.response.transactionId,
|
|
13664
13668
|
cancel: !1,
|
|
13665
13669
|
errorCode: ""
|
|
13666
13670
|
};
|
|
13667
|
-
(
|
|
13671
|
+
(c = this.props) == null || c.perform(E, this._performType), this._isFinishWithExitOnce = !0;
|
|
13668
13672
|
return;
|
|
13669
13673
|
}
|
|
13670
13674
|
}
|
|
13671
13675
|
if (M.action === "RETRY_COUNTER_EXCEEDED") {
|
|
13672
|
-
(
|
|
13673
|
-
const
|
|
13676
|
+
(s = this.props) != null && s.isProcessing && this.props.isProcessing(!0);
|
|
13677
|
+
const y = {
|
|
13674
13678
|
transactionId: t,
|
|
13675
13679
|
cancel: !1,
|
|
13676
13680
|
errorCode: ""
|
|
13677
13681
|
};
|
|
13678
|
-
(
|
|
13682
|
+
(T = this.props) == null || T.perform(y, this._performType), this._isFinishWithExitOnce = !0;
|
|
13679
13683
|
return;
|
|
13680
13684
|
}
|
|
13681
13685
|
if ((M == null ? void 0 : M.action) === "CLOSE") {
|
|
13682
|
-
const
|
|
13686
|
+
const y = {
|
|
13683
13687
|
transactionId: t,
|
|
13684
13688
|
cancel: !0,
|
|
13685
13689
|
errorCode: ""
|
|
13686
13690
|
};
|
|
13687
|
-
(
|
|
13691
|
+
(l = this.props) == null || l.perform(y, this._performType);
|
|
13688
13692
|
}
|
|
13689
13693
|
};
|
|
13690
13694
|
}
|
package/package.json
CHANGED