@ekyc_qoobiss/qbs-ect-cmp 3.6.28 → 3.6.29
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/cjs/TranslationUtils-b918ffb1.js +346 -0
- package/dist/cjs/agreement-check_19.cjs.entry.js +783 -284
- package/dist/cjs/random-actions.cjs.entry.js +5 -6
- package/dist/collection/components/base-component.js +0 -4
- package/dist/collection/components/common/agreement-check/agreement-check.js +6 -2
- package/dist/collection/components/common/camera-error/camera-error.js +7 -5
- package/dist/collection/components/common/capture-error/capture-error.js +12 -10
- package/dist/collection/components/common/how-to-info/how-to-info.js +11 -9
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +8 -6
- package/dist/collection/components/common/id-capture/id-capture.js +6 -4
- package/dist/collection/components/common/id-tilt/id-tilt.js +6 -4
- package/dist/collection/components/common/random-actions/random-actions.js +5 -6
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +7 -5
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +8 -6
- package/dist/collection/components/flow/agreement-info/agreement-info.js +4 -2
- package/dist/collection/components/flow/end-redirect/end-redirect.js +5 -4
- package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -3
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +8 -6
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +12 -10
- package/dist/esm/TranslationUtils-8ceeb437.js +339 -0
- package/dist/esm/agreement-check_19.entry.js +575 -76
- package/dist/esm/random-actions.entry.js +5 -6
- package/dist/qbs-ect-cmp/p-473a4636.entry.js +1 -0
- package/dist/qbs-ect-cmp/{p-c32a782a.entry.js → p-b2c9c8d7.entry.js} +2 -2
- package/dist/qbs-ect-cmp/p-e568a07c.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/base-component.d.ts +0 -2
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
- package/dist/types/components/common/camera-error/camera-error.d.ts +1 -0
- package/dist/types/components/common/capture-error/capture-error.d.ts +1 -0
- package/dist/types/components/common/how-to-info/how-to-info.d.ts +2 -1
- package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +1 -0
- package/dist/types/components/common/id-capture/id-capture.d.ts +1 -0
- package/dist/types/components/common/id-tilt/id-tilt.d.ts +1 -0
- package/dist/types/components/common/random-actions/random-actions.d.ts +2 -2
- package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +2 -1
- package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +2 -1
- package/dist/types/components/flow/agreement-info/agreement-info.d.ts +2 -1
- package/dist/types/components/flow/end-redirect/end-redirect.d.ts +2 -1
- package/dist/types/components/flow/landing-validation/landing-validation.d.ts +1 -0
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +1 -0
- package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/base-component-aa9e52bf.js +0 -832
- package/dist/esm/base-component-b7f50d31.js +0 -824
- package/dist/qbs-ect-cmp/p-215a7e76.entry.js +0 -1
- package/dist/qbs-ect-cmp/p-7bedffaa.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,f as e}from"./p-8942656c.js";const s=t=>!("isConnected"in t)||t.isConnected,i=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(s))})(...e)}),2e3)}})(),n=t=>"function"==typeof t?t():t;var o;!function(t){t[t.LANDING=0]="LANDING",t[t.AGREEMENT=1]="AGREEMENT",t[t.PHONE=2]="PHONE",t[t.CODE=3]="CODE",t[t.CODEERROR=4]="CODEERROR",t[t.ID=5]="ID",t[t.LIVENESS=6]="LIVENESS",t[t.COMPLETE=7]="COMPLETE",t[t.ERROREND=8]="ERROREND",t[t.CAMERAERROR=9]="CAMERAERROR",t[t.NONE=10]="NONE"}(o||(o={}));class a{}a.IDPoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4"};class r{}r.FacePoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4"};class c{}c.FlowStatusKey="qbs-ect-flowstatus",c.RequestIdKey="qbs-ect-requestid",c.TokenKey="qbs-ect-token",c.InitialisedKey="qbs-ect-initialised",c.HasIdBackKey="qbs-ect-has-id-back",c.AgreementValidationKey="qbs-ect-agreement-validation",c.PhoneValidationKey="qbs-ect-phone-validation",c.RefreshDoneKey="qbs-ect-refresh-done";class l{constructor(){this.uriEnv="/",this.uriEnv="QA"==d.environment?"/dev_":"/",this.OtpSend=this.uriEnv+"validation/otp/send",this.OtpCheck=this.uriEnv+"validation/otp/check",this.IdentityInsert=this.uriEnv+"validation/identity/insert",this.UploadCapture=this.uriEnv+"validation/upload/capture",this.GetAgreement=this.uriEnv+"validation/agreement/content",this.GenerateAgreement=this.uriEnv+"validation/agreement/generate",this.SendLink=this.uriEnv+"validation/otp/sendlink",this.GetStatus=this.uriEnv+"validation/identity/status",this.AddLog=this.uriEnv+"validation/logs/add",this.AddStep=this.uriEnv+"validation/logs/step",this.AbortRequest=this.uriEnv+"validation/identity/abort"}}const{state:d,onChange:h}=(()=>{const s=((t,e=((t,e)=>t!==e))=>{const s=n(t);let i=new Map(Object.entries(null!=s?s:{}));const o={dispose:[],get:[],set:[],reset:[]},a=()=>{var e;i=new Map(Object.entries(null!==(e=n(t))&&void 0!==e?e:{})),o.reset.forEach((t=>t()))},r=t=>(o.get.forEach((e=>e(t))),i.get(t)),c=(t,s)=>{const n=i.get(t);e(s,n,t)&&(i.set(t,s),o.set.forEach((e=>e(t,s,n))))},l="undefined"==typeof Proxy?{}:new Proxy(s,{get:(t,e)=>r(e),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>i.has(e),set:(t,e,s)=>(c(e,s),!0)}),d=(t,e)=>(o[t].push(e),()=>{((t,e)=>{const s=t.indexOf(e);s>=0&&(t[s]=t[t.length-1],t.length--)})(o[t],e)});return{state:l,get:r,set:c,on:d,onChange:(e,s)=>{const i=d("set",((t,i)=>{t===e&&s(i)})),o=d("reset",(()=>s(n(t)[e])));return()=>{i(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(d("set",e.set)),e.get&&t.push(d("get",e.get)),e.reset&&t.push(d("reset",e.reset)),e.dispose&&t.push(d("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{o.dispose.forEach((t=>t())),a()},reset:a,forceUpdate:t=>{const e=i.get(t);o.set.forEach((s=>s(t,e,e)))}}})({flowStatus:o.NONE,environment:"PROD",debug:!1,requestId:"",redirectId:"",initialised:!1,token:"",cameraIds:[],cameraId:"",hasIdBack:!1,hasSelfieGesture:!1,hasIdTilt:!1,agreementsValidation:!0,phoneValidation:!0,phoneNumber:"",apiBaseUrl:"https://apiro.id-kyc.com",device:null,langIso:"ro"},void 0);return s.use((()=>{if("function"!=typeof t)return{};const s=new Map;return{dispose:()=>s.clear(),get:e=>{const i=t();i&&((t,e,s)=>{const i=t.get(e);i?i.includes(s)||i.push(s):t.set(e,[s])})(s,e,i)},set:t=>{const n=s.get(t);n&&s.set(t,n.filter(e)),i(s)},reset:()=>{s.forEach((t=>t.forEach(e))),i(s)}}})()),s})();h("environment",(t=>{d.debug="QA"==t})),h("flowStatus",(t=>{sessionStorage.setItem(c.FlowStatusKey,o[t])})),h("token",(t=>{sessionStorage.setItem(c.TokenKey,t)})),h("requestId",(t=>{sessionStorage.setItem(c.RequestIdKey,t)})),h("initialised",(t=>{sessionStorage.setItem(c.InitialisedKey,String(t))})),h("hasIdBack",(t=>{sessionStorage.setItem(c.HasIdBackKey,String(t))})),h("agreementsValidation",(t=>{sessionStorage.setItem(c.AgreementValidationKey,String(t))})),h("phoneValidation",(t=>{sessionStorage.setItem(c.PhoneValidationKey,String(t))}));const b=new class{async getValues(){return this.values||(this.values=await this.fetchTranslations()),this.values}getLocale(t=document.body){const e=t.closest("[lang]");return e?e.lang:d.langIso}async fetchTranslations(){const t=this.getLocale(),e=JSON.parse(sessionStorage.getItem(`i18n.${t}`));if(e&&Object.keys(e).length>0)return e;try{const e=await fetch(`/i18n/${t}.json`);if(e.ok){const s=await e.json();return sessionStorage.setItem(`i18n.${t}`,JSON.stringify(s)),s}}catch(e){console.error(`Error loading locale: ${t}`,e)}}};export{l as A,o as F,a as I,c as S,b as T,r as a,d as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-8942656c.js";export{s as setNonce}from"./p-8942656c.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-054dc5b3",[[1,"loader-dots"]]],["p-
|
|
1
|
+
import{p as e,b as t}from"./p-8942656c.js";export{s as setNonce}from"./p-8942656c.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-054dc5b3",[[1,"loader-dots"]]],["p-473a4636",[[0,"random-actions"]]],["p-b2c9c8d7",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],lang_iso:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{captureStep:[32],showTimeout:[32],showInvalid:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{showError:[32],captureStep:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{title:[32],description:[32],buttonDisabled:[32],demoVideo:[32]}],[0,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{warningText:[32],buttonDisabled:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32],prefilledPhone:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32],prefilledPhone:[32],canSend:[32]}],[0,"id-back-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32],scrollClass:[32]}],[0,"capture-error",{type:[1],buttonEnabled:[32],buttonText:[32]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32],buttonEnabled:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from '../stencil-public-runtime';
|
|
2
2
|
import { ApiCall } from '../helpers/ApiCall';
|
|
3
3
|
import { FlowMoments, FlowSteps } from '../models/FlowSteps';
|
|
4
|
-
import { TranslationValues } from '../models/ITranslationValues';
|
|
5
4
|
export declare class BaseComponent {
|
|
6
5
|
apiCall: ApiCall;
|
|
7
6
|
protected flowStep: FlowSteps;
|
|
8
7
|
private apiErrorEvent;
|
|
9
8
|
private processError;
|
|
10
|
-
translations: TranslationValues;
|
|
11
9
|
constructor(step: FlowSteps | undefined);
|
|
12
10
|
setEventEmitter(event: EventEmitter<any>): void;
|
|
13
11
|
setErrorCallback(callback: (data: any, zone: any) => void): void;
|
|
@@ -6,8 +6,10 @@ export declare class AgreementCheck {
|
|
|
6
6
|
scrollClass: string;
|
|
7
7
|
private apiCalls;
|
|
8
8
|
private baseComponent;
|
|
9
|
+
private translations;
|
|
9
10
|
constructor();
|
|
10
11
|
apiErrorEvent: EventEmitter<any>;
|
|
12
|
+
componentWillLoad(): Promise<void>;
|
|
11
13
|
componentDidLoad(): Promise<void>;
|
|
12
14
|
agreementAcceptance: EventEmitter<any>;
|
|
13
15
|
buttonClick(result: boolean): Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
export declare class HowToInfo {
|
|
3
3
|
private baseComponent;
|
|
4
|
+
private translations;
|
|
4
5
|
idSide: string;
|
|
5
6
|
topTitle: string;
|
|
6
7
|
subTitle: string;
|
|
@@ -13,6 +14,6 @@ export declare class HowToInfo {
|
|
|
13
14
|
componentDidLoad(): Promise<void>;
|
|
14
15
|
disconnectedCallback(): Promise<void>;
|
|
15
16
|
buttonClick(): void;
|
|
16
|
-
componentWillLoad(): void
|
|
17
|
+
componentWillLoad(): Promise<void>;
|
|
17
18
|
render(): any;
|
|
18
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
export declare class SelfieCapture {
|
|
3
3
|
private baseComponent;
|
|
4
|
+
private translations;
|
|
4
5
|
component: HTMLElement;
|
|
5
6
|
private videoStarted;
|
|
6
7
|
private captureTaken;
|
|
@@ -16,7 +17,7 @@ export declare class SelfieCapture {
|
|
|
16
17
|
private cameras;
|
|
17
18
|
constructor();
|
|
18
19
|
eventVideoStarted(event: any): void;
|
|
19
|
-
componentWillLoad(): void
|
|
20
|
+
componentWillLoad(): Promise<void>;
|
|
20
21
|
componentDidLoad(): Promise<void>;
|
|
21
22
|
openCamera(): Promise<void>;
|
|
22
23
|
closeCamera(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
export declare class SelfieTilt {
|
|
3
3
|
private baseComponent;
|
|
4
|
+
private translations;
|
|
4
5
|
component: HTMLElement;
|
|
5
6
|
private videoStarted;
|
|
6
7
|
private captureTaken;
|
|
@@ -17,7 +18,7 @@ export declare class SelfieTilt {
|
|
|
17
18
|
private mainStream;
|
|
18
19
|
constructor();
|
|
19
20
|
eventVideoStarted(event: any): void;
|
|
20
|
-
componentWillLoad(): void
|
|
21
|
+
componentWillLoad(): Promise<void>;
|
|
21
22
|
componentDidLoad(): Promise<void>;
|
|
22
23
|
openCamera(): Promise<void>;
|
|
23
24
|
closeCamera(): void;
|
|
@@ -5,10 +5,11 @@ export declare class AgreementInfo {
|
|
|
5
5
|
openAgreements: boolean;
|
|
6
6
|
openTerms: boolean;
|
|
7
7
|
private baseComponent;
|
|
8
|
+
private translations;
|
|
8
9
|
apiErrorEvent: EventEmitter<any>;
|
|
9
10
|
constructor();
|
|
10
11
|
componentDidLoad(): Promise<void>;
|
|
11
|
-
componentWillLoad(): void
|
|
12
|
+
componentWillLoad(): Promise<void>;
|
|
12
13
|
disconnectedCallback(): Promise<void>;
|
|
13
14
|
buttonClick(): Promise<void>;
|
|
14
15
|
agreementAcceptanceEmitted(data: any): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
export declare class EndRedirect {
|
|
3
|
-
private
|
|
3
|
+
private translations;
|
|
4
4
|
apiErrorEvent: EventEmitter<any>;
|
|
5
5
|
constructor();
|
|
6
|
+
componentWillLoad(): Promise<void>;
|
|
6
7
|
componentDidLoad(): Promise<void>;
|
|
7
8
|
render(): any;
|
|
8
9
|
}
|
|
@@ -8,11 +8,12 @@ export declare class SmsCodeValidation {
|
|
|
8
8
|
private prefilledPhone;
|
|
9
9
|
private canSend;
|
|
10
10
|
private baseComponent;
|
|
11
|
+
private translations;
|
|
11
12
|
apiErrorEvent: EventEmitter<any>;
|
|
12
13
|
constructor();
|
|
13
14
|
private doAction;
|
|
14
15
|
disconnectedCallback(): Promise<void>;
|
|
15
|
-
componentWillRender(): void
|
|
16
|
+
componentWillRender(): Promise<void>;
|
|
16
17
|
componentDidLoad(): Promise<void>;
|
|
17
18
|
handleChangePhone(ev: any): void;
|
|
18
19
|
handleChangeCode(ev: any): void;
|