@ekyc_qoobiss/qbs-ect-cmp 3.6.10 → 3.6.12
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/{Stream-1b0beea8.js → Stream-f03c722d.js} +4 -1
- package/dist/cjs/agreement-check_18.cjs.entry.js +6 -6
- package/dist/cjs/id-double-side.cjs.entry.js +1 -1
- package/dist/cjs/id-single-side.cjs.entry.js +1 -1
- package/dist/collection/components/flow/process-id/process-id.js +4 -4
- package/dist/collection/helpers/ApiCall.js +2 -0
- package/dist/collection/helpers/store.js +2 -1
- package/dist/esm/{Stream-0935dac1.js → Stream-9d2f3b4a.js} +4 -1
- package/dist/esm/agreement-check_18.entry.js +6 -6
- package/dist/esm/id-double-side.entry.js +1 -1
- package/dist/esm/id-single-side.entry.js +1 -1
- package/dist/qbs-ect-cmp/{p-c8a04b87.js → p-369f99a9.js} +1 -1
- package/dist/qbs-ect-cmp/{p-e5c2d08c.entry.js → p-85ffa9cc.entry.js} +1 -1
- package/dist/qbs-ect-cmp/{p-933b4d66.entry.js → p-a3317fe7.entry.js} +1 -1
- package/dist/qbs-ect-cmp/{p-d95265e0.entry.js → p-e641a6c6.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/models/IAddRequest.d.ts +2 -0
- package/dist/types/models/IEctStore.d.ts +2 -1
- package/package.json +1 -1
|
@@ -373,7 +373,8 @@ const { state, onChange } = createStore({
|
|
|
373
373
|
cameraIds: [],
|
|
374
374
|
cameraId: '',
|
|
375
375
|
hasIdBack: false,
|
|
376
|
-
|
|
376
|
+
hasSelfieGesture: false,
|
|
377
|
+
hasIdTilt: false,
|
|
377
378
|
agreementsValidation: true,
|
|
378
379
|
phoneValidation: true,
|
|
379
380
|
phoneNumber: '',
|
|
@@ -593,6 +594,8 @@ class ApiCall {
|
|
|
593
594
|
state.requestId = jsonResp.requestId;
|
|
594
595
|
}
|
|
595
596
|
state.hasIdBack = jsonResp.hasIdBack;
|
|
597
|
+
state.hasSelfieGesture = jsonResp.hasIdTilt;
|
|
598
|
+
state.hasSelfieGesture = jsonResp.hasSelfieGesture;
|
|
596
599
|
state.agreementsValidation = jsonResp.agreementsValidation;
|
|
597
600
|
state.phoneValidation = jsonResp.phoneValidation;
|
|
598
601
|
state.phoneNumber = jsonResp.phoneNumber;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-79f82518.js');
|
|
6
|
-
const Stream = require('./Stream-
|
|
6
|
+
const Stream = require('./Stream-f03c722d.js');
|
|
7
7
|
|
|
8
8
|
const agreementCheckCss = "";
|
|
9
9
|
|
|
@@ -896,7 +896,7 @@ function v4(options, buf, offset) {
|
|
|
896
896
|
}
|
|
897
897
|
|
|
898
898
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
899
|
-
const version$1 = "3.6.
|
|
899
|
+
const version$1 = "3.6.12";
|
|
900
900
|
const description = "Person Identification Component";
|
|
901
901
|
const main = "./dist/index.cjs.js";
|
|
902
902
|
const module$1 = "./dist/index.js";
|
|
@@ -4356,7 +4356,7 @@ const ProcessId = class {
|
|
|
4356
4356
|
uploadType: CaptureUploadTypes.IdBack,
|
|
4357
4357
|
};
|
|
4358
4358
|
}
|
|
4359
|
-
if (Stream.state.
|
|
4359
|
+
if (Stream.state.hasIdTilt) {
|
|
4360
4360
|
this.flow.tilt = {
|
|
4361
4361
|
photoDone: true,
|
|
4362
4362
|
recordingDone: false,
|
|
@@ -4529,7 +4529,7 @@ const ProcessId = class {
|
|
|
4529
4529
|
if (Stream.state.hasIdBack) {
|
|
4530
4530
|
this.captureStep = CaptureFlowStatus.IdBack;
|
|
4531
4531
|
}
|
|
4532
|
-
else if (Stream.state.
|
|
4532
|
+
else if (Stream.state.hasIdTilt) {
|
|
4533
4533
|
this.captureStep = CaptureFlowStatus.Tilt;
|
|
4534
4534
|
}
|
|
4535
4535
|
else {
|
|
@@ -4542,7 +4542,7 @@ const ProcessId = class {
|
|
|
4542
4542
|
}
|
|
4543
4543
|
if (this.captureStep == CaptureFlowStatus.IdBack && Stream.state.hasIdBack) {
|
|
4544
4544
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
4545
|
-
if (Stream.state.
|
|
4545
|
+
if (Stream.state.hasIdTilt) {
|
|
4546
4546
|
this.captureStep = CaptureFlowStatus.Tilt;
|
|
4547
4547
|
}
|
|
4548
4548
|
else {
|
|
@@ -4553,7 +4553,7 @@ const ProcessId = class {
|
|
|
4553
4553
|
return;
|
|
4554
4554
|
}
|
|
4555
4555
|
}
|
|
4556
|
-
if (this.captureStep == CaptureFlowStatus.Tilt && Stream.state.
|
|
4556
|
+
if (this.captureStep == CaptureFlowStatus.Tilt && Stream.state.hasIdTilt) {
|
|
4557
4557
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
4558
4558
|
this.flow.recordingData.push(...this.flow.front.recoding);
|
|
4559
4559
|
this.flow.recordingData.push(...this.flow.back.recoding);
|
|
@@ -43,7 +43,7 @@ export class ProcessId {
|
|
|
43
43
|
uploadType: CaptureUploadTypes.IdBack,
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
if (store.
|
|
46
|
+
if (store.hasIdTilt) {
|
|
47
47
|
this.flow.tilt = {
|
|
48
48
|
photoDone: true,
|
|
49
49
|
recordingDone: false,
|
|
@@ -216,7 +216,7 @@ export class ProcessId {
|
|
|
216
216
|
if (store.hasIdBack) {
|
|
217
217
|
this.captureStep = CaptureFlowStatus.IdBack;
|
|
218
218
|
}
|
|
219
|
-
else if (store.
|
|
219
|
+
else if (store.hasIdTilt) {
|
|
220
220
|
this.captureStep = CaptureFlowStatus.Tilt;
|
|
221
221
|
}
|
|
222
222
|
else {
|
|
@@ -229,7 +229,7 @@ export class ProcessId {
|
|
|
229
229
|
}
|
|
230
230
|
if (this.captureStep == CaptureFlowStatus.IdBack && store.hasIdBack) {
|
|
231
231
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
232
|
-
if (store.
|
|
232
|
+
if (store.hasIdTilt) {
|
|
233
233
|
this.captureStep = CaptureFlowStatus.Tilt;
|
|
234
234
|
}
|
|
235
235
|
else {
|
|
@@ -240,7 +240,7 @@ export class ProcessId {
|
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
if (this.captureStep == CaptureFlowStatus.Tilt && store.
|
|
243
|
+
if (this.captureStep == CaptureFlowStatus.Tilt && store.hasIdTilt) {
|
|
244
244
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
245
245
|
this.flow.recordingData.push(...this.flow.front.recoding);
|
|
246
246
|
this.flow.recordingData.push(...this.flow.back.recoding);
|
|
@@ -156,6 +156,8 @@ export class ApiCall {
|
|
|
156
156
|
store.requestId = jsonResp.requestId;
|
|
157
157
|
}
|
|
158
158
|
store.hasIdBack = jsonResp.hasIdBack;
|
|
159
|
+
store.hasSelfieGesture = jsonResp.hasIdTilt;
|
|
160
|
+
store.hasSelfieGesture = jsonResp.hasSelfieGesture;
|
|
159
161
|
store.agreementsValidation = jsonResp.agreementsValidation;
|
|
160
162
|
store.phoneValidation = jsonResp.phoneValidation;
|
|
161
163
|
store.phoneNumber = jsonResp.phoneNumber;
|
|
@@ -371,7 +371,8 @@ const { state, onChange } = createStore({
|
|
|
371
371
|
cameraIds: [],
|
|
372
372
|
cameraId: '',
|
|
373
373
|
hasIdBack: false,
|
|
374
|
-
|
|
374
|
+
hasSelfieGesture: false,
|
|
375
|
+
hasIdTilt: false,
|
|
375
376
|
agreementsValidation: true,
|
|
376
377
|
phoneValidation: true,
|
|
377
378
|
phoneNumber: '',
|
|
@@ -591,6 +592,8 @@ class ApiCall {
|
|
|
591
592
|
state.requestId = jsonResp.requestId;
|
|
592
593
|
}
|
|
593
594
|
state.hasIdBack = jsonResp.hasIdBack;
|
|
595
|
+
state.hasSelfieGesture = jsonResp.hasIdTilt;
|
|
596
|
+
state.hasSelfieGesture = jsonResp.hasSelfieGesture;
|
|
594
597
|
state.agreementsValidation = jsonResp.agreementsValidation;
|
|
595
598
|
state.phoneValidation = jsonResp.phoneValidation;
|
|
596
599
|
state.phoneNumber = jsonResp.phoneNumber;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-5d6f9123.js';
|
|
2
|
-
import { A as ApiCall, a as AgreementCheckValues, b as AgreementInfoValues, B as BaseComponent, F as FlowSteps, s as state, c as FlowStatus, S as Stream, V as VerificationMode, C as CameraErrorValues, M as MobileOS, d as SessionKeys, I as IdCaptureValues, e as SelfieCaptureValues, f as delay, E as Events, g as CompleteValues, H as HowToValues, h as Browser, i as FlowMoments, j as IDML5Detector, k as FaceML5Detector, l as getLogMessage, m as ML5, L as LandingValues, n as createCommonjsModule, o as MobileRedirectValues, O as OrderStatuses, p as FacePose, P as PhoneValidationValues, q as CodeValidationValues } from './Stream-
|
|
2
|
+
import { A as ApiCall, a as AgreementCheckValues, b as AgreementInfoValues, B as BaseComponent, F as FlowSteps, s as state, c as FlowStatus, S as Stream, V as VerificationMode, C as CameraErrorValues, M as MobileOS, d as SessionKeys, I as IdCaptureValues, e as SelfieCaptureValues, f as delay, E as Events, g as CompleteValues, H as HowToValues, h as Browser, i as FlowMoments, j as IDML5Detector, k as FaceML5Detector, l as getLogMessage, m as ML5, L as LandingValues, n as createCommonjsModule, o as MobileRedirectValues, O as OrderStatuses, p as FacePose, P as PhoneValidationValues, q as CodeValidationValues } from './Stream-9d2f3b4a.js';
|
|
3
3
|
|
|
4
4
|
const agreementCheckCss = "";
|
|
5
5
|
|
|
@@ -892,7 +892,7 @@ function v4(options, buf, offset) {
|
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
895
|
-
const version$1 = "3.6.
|
|
895
|
+
const version$1 = "3.6.12";
|
|
896
896
|
const description = "Person Identification Component";
|
|
897
897
|
const main = "./dist/index.cjs.js";
|
|
898
898
|
const module = "./dist/index.js";
|
|
@@ -4352,7 +4352,7 @@ const ProcessId = class {
|
|
|
4352
4352
|
uploadType: CaptureUploadTypes.IdBack,
|
|
4353
4353
|
};
|
|
4354
4354
|
}
|
|
4355
|
-
if (state.
|
|
4355
|
+
if (state.hasIdTilt) {
|
|
4356
4356
|
this.flow.tilt = {
|
|
4357
4357
|
photoDone: true,
|
|
4358
4358
|
recordingDone: false,
|
|
@@ -4525,7 +4525,7 @@ const ProcessId = class {
|
|
|
4525
4525
|
if (state.hasIdBack) {
|
|
4526
4526
|
this.captureStep = CaptureFlowStatus.IdBack;
|
|
4527
4527
|
}
|
|
4528
|
-
else if (state.
|
|
4528
|
+
else if (state.hasIdTilt) {
|
|
4529
4529
|
this.captureStep = CaptureFlowStatus.Tilt;
|
|
4530
4530
|
}
|
|
4531
4531
|
else {
|
|
@@ -4538,7 +4538,7 @@ const ProcessId = class {
|
|
|
4538
4538
|
}
|
|
4539
4539
|
if (this.captureStep == CaptureFlowStatus.IdBack && state.hasIdBack) {
|
|
4540
4540
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
4541
|
-
if (state.
|
|
4541
|
+
if (state.hasIdTilt) {
|
|
4542
4542
|
this.captureStep = CaptureFlowStatus.Tilt;
|
|
4543
4543
|
}
|
|
4544
4544
|
else {
|
|
@@ -4549,7 +4549,7 @@ const ProcessId = class {
|
|
|
4549
4549
|
return;
|
|
4550
4550
|
}
|
|
4551
4551
|
}
|
|
4552
|
-
if (this.captureStep == CaptureFlowStatus.Tilt && state.
|
|
4552
|
+
if (this.captureStep == CaptureFlowStatus.Tilt && state.hasIdTilt) {
|
|
4553
4553
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
4554
4554
|
this.flow.recordingData.push(...this.flow.front.recoding);
|
|
4555
4555
|
this.flow.recordingData.push(...this.flow.back.recoding);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-5d6f9123.js';
|
|
2
|
-
import { B as BaseComponent, F as FlowSteps, l as getLogMessage, s as state, c as FlowStatus, S as Stream } from './Stream-
|
|
2
|
+
import { B as BaseComponent, F as FlowSteps, l as getLogMessage, s as state, c as FlowStatus, S as Stream } from './Stream-9d2f3b4a.js';
|
|
3
3
|
|
|
4
4
|
const idDoubleSideCss = "";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-5d6f9123.js';
|
|
2
|
-
import { B as BaseComponent, F as FlowSteps, l as getLogMessage, s as state, c as FlowStatus, S as Stream } from './Stream-
|
|
2
|
+
import { B as BaseComponent, F as FlowSteps, l as getLogMessage, s as state, c as FlowStatus, S as Stream } from './Stream-9d2f3b4a.js';
|
|
3
3
|
|
|
4
4
|
const idSingleSideCss = "";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as t,f as n}from"./p-aacd7024.js";var e;!function(t){t[t.Capturing=0]="Capturing",t[t.FinishedCapturing=1]="FinishedCapturing",t[t.Waiting=2]="Waiting",t[t.NotFound=3]="NotFound",t[t.Aborted=4]="Aborted"}(e||(e={}));const r=t=>!("isConnected"in t)||t.isConnected,i=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(r))})(...n)}),2e3)}})(),o=t=>"function"==typeof t?t():t;var u;!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"}(u||(u={}));class a{}a.FooterText="Qoobiss eKYC",a.VideoLenght=3100;class s extends a{}s.IdTitile="Prezintă actul tău de identitate",s.IdSubTitileFace="Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",s.IdSubTitileBack="Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",s.IdButton="Sunt gata!",s.SelfieTitile="Validare video",s.SelfieSubTitile="Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.",s.SelfieButton="Sunt gata!";class c extends a{}c.Title="Validarea identității la distanță este o procedură simplă și rapidă",c.Description="Asigură-te că ai:",c.IdInfo="Actul de identitate, în original",c.DeviceInfo="Un telefon mobil sau un calculator cu camera web",c.SmsInfo="Acces la un telefon mobil ce permite primirea de mesaje SMS",c.Warning="ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",c.WarningMd="ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",c.Terms="Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",c.Button="Am înțeles",c.ButtonLeave="Nu sunt pregătit";class f extends a{}f.Title="Este necesar să validăm numărul tău de telefon",f.Description="Introdu mai jos numarul tau de telefon:",f.Button="Trimite SMS de verificare",f.Label="Numarul tau de telefon";class l extends a{}l.Title="Introdu codul de validare primit prin sms:",l.Description=" ",l.Button="Validează",l.Error="Codul introdus nu este valid. Asigură-te că îl introduci corect";class h extends a{}h.Title="Procesul a fost finalizat.",h.Description="Vei fi redirecționat în câteva momente.",h.Message="Îți mulțumim!";class d{}d.FlowStatusKey="qbs-ect-flowstatus",d.RequestIdKey="qbs-ect-requestid",d.TokenKey="qbs-ect-token",d.InitialisedKey="qbs-ect-initialised",d.HasIdBackKey="qbs-ect-has-id-back",d.AgreementValidationKey="qbs-ect-agreement-validation",d.PhoneValidationKey="qbs-ect-phone-validation",d.RefreshDoneKey="qbs-ect-refresh-done";class v extends a{}v.Button="Încerc din nou",v.Title="Încadrează actul de identitate în chenarul de pe ecran.",v.TitleBack="Încadrează spatele actului de identitate în chenarul de pe ecran.",v.TtileRotate="Întoarce actul de identitate.",v.ErrorTitleR1="Nu am putut colecta informațiile din actul de identitate!",v.ErrorTitleR2="Te rugăm să mai încerci o dată!",v.ErrorR1="Încadrează actul de identitate în așa fel încât chenarul să se potrivească perfect pe colțurile actului de identitate. Trebuie să fie vizibilă întreaga suprafață a actului de identitate. ",v.ErrorR2="Ai grijă să te afli într-o zonă cu suficientă lumină și să nu acoperi părți ale actului de identitate cu degetele. Ai grijă de asemenea să nu se formeze reflexii de lumină pe suprafața acestuia.",v.IDPoseMapping={0:"",1:"Înclină actul de identitate spre spate.",2:"",3:"",4:""},v.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"},v.Loading="Transferăm datele. Asteptați...";class p extends a{}p.Title="Încadrează fața în chenarul de pe ecran.",p.FinalTitle="Îndreaptă capul și încadrează fața în chenarul de pe ecran.",p.ErrorTitleR1="Procesul a eșuat!",p.ErrorTitleR2="Te rugăm să mai încerci o dată!",p.ErrorR1="Încadrează fața în așa fel încât chenarul să se suprapună peste linia bărbiei și a frunții, exact așa cum vezi în animația de pe ecran. ",p.ErrorR2="Rămâi cu fața încadrată în chenar și execută gestul solicitat după ce animația cu explicația a dispărut de pe ecran.",p.Loading="Transferăm datele. Asteptați...",p.FacePoseMapping={0:"Întoarce capul spre stânga.",1:"Întoarce capul spre dreapta.",2:"Înclină capul spre spate.",3:"Înclină capul în față.",4:""},p.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 m extends a{}m.Title="Pentru începerea identificării avem nevoie de acordurile tale:",m.Button="Încep identificarea",m.Terms="Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",m.Agreement="Îmi exprim acordul pentru prelucrarea datelor cu caracter personal";class b extends a{}b.ButtonYes="Sunt de acord",b.ButtonNo="Nu sunt de acord";class g{constructor(){this.uriEnv="/",this.uriEnv="QA"==x.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"}}class y extends a{}y.InfoTop="Pentru a continua scanați codul de mai jos cu un smartphone.",y.InfoBottom="Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",y.Validation="Număr de telefon invalid!",y.InfoWaiting="Așteptăm finalizarea procesului pe smartphone.",y.InfoAborted="Procesului de pe smartphone a fost amanat.";class w extends a{}w.Title="Procesul de indetificare nu poate continua.",w.Description="Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.",w.Button="Reincep procesul",w.HowToLink="https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4";const{state:x,onChange:O}=(()=>{const e=((t,n=((t,n)=>t!==n))=>{const e=o(t);let r=new Map(Object.entries(null!=e?e:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var n;r=new Map(Object.entries(null!==(n=o(t))&&void 0!==n?n:{})),i.reset.forEach((t=>t()))},a=t=>(i.get.forEach((n=>n(t))),r.get(t)),s=(t,e)=>{const o=r.get(t);n(e,o,t)&&(r.set(t,e),i.set.forEach((n=>n(t,e,o))))},c="undefined"==typeof Proxy?{}:new Proxy(e,{get:(t,n)=>a(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>r.has(n),set:(t,n,e)=>(s(n,e),!0)}),f=(t,n)=>(i[t].push(n),()=>{((t,n)=>{const e=t.indexOf(n);e>=0&&(t[e]=t[t.length-1],t.length--)})(i[t],n)});return{state:c,get:a,set:s,on:f,onChange:(n,e)=>{const r=f("set",((t,r)=>{t===n&&e(r)})),i=f("reset",(()=>e(o(t)[n])));return()=>{r(),i()}},use:(...t)=>{const n=t.reduce(((t,n)=>(n.set&&t.push(f("set",n.set)),n.get&&t.push(f("get",n.get)),n.reset&&t.push(f("reset",n.reset)),n.dispose&&t.push(f("dispose",n.dispose)),t)),[]);return()=>n.forEach((t=>t()))},dispose:()=>{i.dispose.forEach((t=>t())),u()},reset:u,forceUpdate:t=>{const n=r.get(t);i.set.forEach((e=>e(t,n,n)))}}})({flowStatus:u.NONE,environment:"PROD",debug:!1,requestId:"",redirectId:"",initialised:!1,token:"",cameraIds:[],cameraId:"",hasIdBack:!1,idTiltCheck:!1,agreementsValidation:!0,phoneValidation:!0,phoneNumber:"",apiBaseUrl:"https://apiro.id-kyc.com",device:null,recordingRetryCount:0},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:n=>{const r=t();r&&((t,n,e)=>{const r=t.get(n);r?r.includes(e)||r.push(e):t.set(n,[e])})(e,n,r)},set:t=>{const r=e.get(t);r&&e.set(t,r.filter(n)),i(e)},reset:()=>{e.forEach((t=>t.forEach(n))),i(e)}}})()),e})();var C,A,E,j,k;O("environment",(t=>{x.debug="QA"==t})),O("flowStatus",(t=>{sessionStorage.setItem(d.FlowStatusKey,u[t])})),O("token",(t=>{sessionStorage.setItem(d.TokenKey,t)})),O("requestId",(t=>{sessionStorage.setItem(d.RequestIdKey,t)})),O("initialised",(t=>{sessionStorage.setItem(d.InitialisedKey,String(t))})),O("hasIdBack",(t=>{sessionStorage.setItem(d.HasIdBackKey,String(t))})),O("agreementsValidation",(t=>{sessionStorage.setItem(d.AgreementValidationKey,String(t))})),O("phoneValidation",(t=>{sessionStorage.setItem(d.PhoneValidationKey,String(t))})),function(t){t[t.ComponentLoaded="component-loaded"]="ComponentLoaded",t[t.MobileRedirect="mobile-redirect"]="MobileRedirect",t[t.Landing="landing"]="Landing",t[t.Agreements="agreements"]="Agreements",t[t.OtpSend="otp-send"]="OtpSend",t[t.OtpCheck="otp-check"]="OtpCheck",t[t.CiFront="ci-front"]="CiFront",t[t.CiFrontHowTo="ci-front-how-to"]="CiFrontHowTo",t[t.CiFrontHoldAnimation="ci-front-hold-animation"]="CiFrontHoldAnimation",t[t.CiFrontTiltAnimation="ci-front-tilt-animation"]="CiFrontTiltAnimation",t[t.CiFrontCapture="ci-front-capture"]="CiFrontCapture",t[t.CiBack="ci-back"]="CiBack",t[t.CiBackHowTo="ci-back-how-to"]="CiBackHowTo",t[t.CiBackHoldAnimation="ci-back-hold-animation"]="CiBackHoldAnimation",t[t.CiBackTiltAnimation="ci-back-tilt-animation"]="CiBackTiltAnimation",t[t.CiBackCapture="ci-back-capture"]="CiBackCapture",t[t.CiTilt="ci-tilt"]="CiTilt",t[t.SelfieHowTo="selfie-how-to"]="SelfieHowTo",t[t.SelfieHoldAnimation="selfie-hold-animation"]="SelfieHoldAnimation",t[t.SelfieTiltAnimation="selfie-tilt-animation"]="SelfieTiltAnimation",t[t.SelfieCapture="selfie-capture"]="SelfieCapture",t[t.Selfie="selfie"]="Selfie",t[t.End="end"]="End",t[t.CameraError="camera-error"]="CameraError"}(C||(C={})),function(t){t[t.Initialized="initialized"]="Initialized",t[t.Finalized="finalized"]="Finalized",t[t.None="none"]="None"}(A||(A={}));class M{constructor(){this.serviceErrors=["Service Unavailable","Unauthorized"],this.toBase64=t=>new Promise(((n,e)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>n(r.result),r.onerror=t=>e(t)})),this.urls=new g}async http(t){const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);try{return await n.json()}catch(t){throw new Error("No json found in response "+t)}}async post(t,n,e=!0){var r=new Request(x.apiBaseUrl+t,{method:"POST",body:n,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});try{return await this.http(r)}catch(r){if(!e||this.serviceErrors.includes(r.message))throw r;this.AddLog("Error in post ",r);try{var i=new Request(x.apiBaseUrl+t,{method:"POST",body:n,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(i)}catch(e){this.AddLog("Error in post ",e);var o=new Request(x.apiBaseUrl+t,{method:"POST",body:n,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(o)}}}async get(t,n=!0){var e=new Request(x.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});try{return await this.http(e)}catch(e){if(!n||this.serviceErrors.includes(e.message))throw e;this.AddLog("Error in get ",e);try{var r=new Request(x.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(r)}catch(n){this.AddLog("Error in get ",n);var i=new Request(x.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(i)}}}async SendOTPCode(t,n){let e={requestId:t,phone:n};return(await this.post(this.urls.OtpSend,JSON.stringify(e))).sent}async CheckOTPCode(t,n){let e={requestId:t,otp:n};return(await this.post(this.urls.OtpCheck,JSON.stringify(e))).valid}async AddIdentificationRequest(t,n){x.debug&&console.log("Calling identity request with store:"+JSON.stringify(x));let e={requestId:x.requestId,clientDeviceInfo:JSON.stringify(t),redirectId:x.redirectId,phoneNumber:x.phoneNumber,version:n},r=await this.post(this.urls.IdentityInsert,JSON.stringify(e));return""==x.requestId&&(x.requestId=r.requestId),x.hasIdBack=r.hasIdBack,x.agreementsValidation=r.agreementsValidation,x.phoneValidation=r.phoneValidation,x.phoneNumber=r.phoneNumber,!0}async UploadFileForRequestB64(t,n,e){let r={requestId:t,type:n,data:await this.toBase64(e)},i=await this.post(this.urls.UploadCapture,JSON.stringify(r));return x.hasIdBack||"IdFront"!=n?x.hasIdBack&&"IdBack"==n?i.isValid:"Selfie"!=n||i.isValid:i.isValid}async GetAgreement(t){return(await this.get(this.urls.GetAgreement+"?type="+t+"&requestId="+x.requestId)).htmlText}async GenerateAgreement(t){let n={requestId:x.requestId,documentType:t};return(await this.post(this.urls.GenerateAgreement,JSON.stringify(n))).generation}async GetStatus(t){let n=await this.get(this.urls.GetStatus+"?orderId="+t);return e[n.status]}async SendLink(t,n){let e={requestId:x.requestId,link:t,phoneNumber:n};return(await this.post(this.urls.SendLink,JSON.stringify(e))).sent}async AddLog(t,n){try{let e={requestId:x.requestId,action:u[x.flowStatus],message:JSON.stringify({error:t,context:n})};return(await this.post(this.urls.AddLog,JSON.stringify(e),!1)).saved}catch(t){}}async AddStep(t,n){let e={requestId:x.requestId,redirectId:x.redirectId,step:C[t],moment:A[n],timestamp:(new Date).toISOString()};return(await this.post(this.urls.AddStep,JSON.stringify(e))).saved}async AbortRequest(){return(await this.post(this.urls.AbortRequest,JSON.stringify({requestId:x.requestId}))).saved}}!function(t){t.Android="android",t.iOS="ios",t.Unknown="unknown",t.WindowsPhone="Windows Phone"}(E||(E={})),function(t){t.Linux="linux",t.MacOS="mac_os",t.Unix="unix",t.Unknown="unknown",t.Windows="windows"}(j||(j={})),function(t){t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Mi="mi",t.Unknown="unknown"}(k||(k={}));class N{constructor(){var t,n,e,r;this.supportedScreenOrientation=null!==(n=null!==(t=((null===screen||void 0===screen?void 0:screen.orientation)||{}).type)&&void 0!==t?t:screen.mozOrientation)&&void 0!==n?n:screen.msOrientation,this.safariScreenOrientation=!(null===screen||void 0===screen?void 0:screen.orientation)&&matchMedia("(orientation: portrait)").matches?"portrait-primary":"landscape-primary",this.initialScreenOrientation=null!==(r=null!==(e=this.supportedScreenOrientation)&&void 0!==e?e:this.safariScreenOrientation)&&void 0!==r?r:"portrait-primary",this.userAgent=navigator.userAgent||navigator.vendor||window.opera||void 0,this.isMobile=this.isMobileDevice(),this.isTablet=this.isTabletDevice(),this.isDesktop=!this.isMobile&&!this.isTablet}isMobileDevice(){return[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some((t=>this.userAgent.match(t)))}isTabletDevice(){return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.userAgent.toLowerCase())}getMobileOS(){return this.isMobileDevice()?/windows phone/i.test(this.userAgent)?E.WindowsPhone:/android/i.test(this.userAgent)?E.Android:/iPad|iPhone|iPod/.test(this.userAgent)&&!window.MSStream?E.iOS:E.Unknown:void 0}getDesktopOS(){return this.isDesktop?-1!==this.userAgent.indexOf("Win")?j.Windows:-1!==this.userAgent.indexOf("Mac")?j.MacOS:-1!==this.userAgent.indexOf("X11")?j.Unix:-1!==this.userAgent.indexOf("Linux")?j.Linux:j.Unknown:void 0}getDeviceOS(){var t;return null!==(t=this.getMobileOS())&&void 0!==t?t:this.getDesktopOS()}getBrowser(){if(/XiaoMi/i.test(this.userAgent)||/MiuiBrowser/i.test(this.userAgent))return k.Mi;var t=/chrome/i.test(this.userAgent);return t?k.Chrome:/firefox/i.test(navigator.userAgent)?k.Firefox:!t&&/safari/i.test(navigator.userAgent)?k.Safari:k.Unknown}getDevice(){return{isDesktop:this.isDesktop,desktopOS:this.getDesktopOS(),isWindowsDesktop:this.getDeviceOS()===j.Windows,isLinuxOrUnixDesktop:this.getDeviceOS()===j.Linux||this.getDeviceOS()===j.Unix,isMobile:this.isMobile,mobileOS:this.getMobileOS(),isAndroidDevice:this.getDeviceOS()===E.Android,isAppleDevice:this.getDeviceOS()===E.iOS||this.getDeviceOS()===j.MacOS,isUnknownMobileDevice:this.getDeviceOS()===E.Unknown,browser:this.getBrowser(),isTablet:this.isTablet,initialScreenOrientation:this.initialScreenOrientation}}}class D{static init(t){this.callingModule=t}static flowEvent(t,n){const e=`ect-${t.toString()}-${n.toString()}-event`;this.callingModule.dispatchEvent(new CustomEvent(e,{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowStarted(){this.callingModule.dispatchEvent(new CustomEvent("ect-started",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowAborted(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-aborted",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowCompleted(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-completed",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowError(t){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-error",{detail:{error:t},bubbles:!0,cancelable:!0,composed:!0}))}static tokenExpired(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-session-expired",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}}class R{constructor(t){this.apiErrorEvent=null,this.processError=null,this.apiCall=new M,t&&(this.flowStep=t),x.device||(x.device=(new N).getDevice())}setEventEmitter(t){this.apiErrorEvent=t}setErrorCallback(t){this.processError=t}async logStep(t,n){D.flowEvent(t,n);try{await this.apiCall.AddStep(t,n)}catch(e){this.apiErrorEvent?this.apiErrorEvent.emit(e):this.processError(e,`${t}-${n}`)}}async initialize(){D.flowEvent(this.flowStep,A.Initialized);try{await this.apiCall.AddStep(this.flowStep,A.Initialized)}catch(t){this.apiErrorEvent?this.apiErrorEvent.emit(t):this.processError(t,`${this.flowStep}-${A.Initialized}`)}}async finalize(){D.flowEvent(this.flowStep,A.Finalized);try{await this.apiCall.AddStep(this.flowStep,A.Finalized)}catch(t){this.apiErrorEvent?this.apiErrorEvent.emit(t):this.processError(t,`${this.flowStep}-${A.Finalized}`)}}}function S(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function T(t,n,e){return t(e={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}const F=S(T((function(t){window,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s=581)}([function(t,n,e){e.r(n),function(t,r,i,o){e.d(n,"AdadeltaOptimizer",(function(){return lh})),e.d(n,"AdagradOptimizer",(function(){return hh})),e.d(n,"AdamOptimizer",(function(){return dh})),e.d(n,"AdamaxOptimizer",(function(){return vh})),e.d(n,"Add",(function(){return gr})),e.d(n,"AddN",(function(){return yr})),e.d(n,"BroadcastTo",(function(){return jr})),e.d(n,"DataStorage",(function(){return uo})),e.d(n,"Div",(function(){return wr})),e.d(n,"ENV",(function(){return h})),e.d(n,"Environment",(function(){return f})),e.d(n,"FromPixels",(function(){return Rr})),e.d(n,"FusedBatchNorm",(function(){return xr})),e.d(n,"Identity",(function(){return Mr})),e.d(n,"KernelBackend",(function(){return ao})),e.d(n,"MaxPoolWithArgmax",(function(){return Sr})),e.d(n,"MomentumOptimizer",(function(){return mh})),e.d(n,"NonMaxSuppressionV5",(function(){return Er})),e.d(n,"OneHot",(function(){return kr})),e.d(n,"Optimizer",(function(){return fh})),e.d(n,"PadV2",(function(){return Dr})),e.d(n,"RMSPropOptimizer",(function(){return bh})),e.d(n,"Rank",(function(){return Ct})),e.d(n,"Reduction",(function(){return tf})),e.d(n,"SGDOptimizer",(function(){return ph})),e.d(n,"Square",(function(){return Cr})),e.d(n,"SquaredDifference",(function(){return Or})),e.d(n,"Tensor",(function(){return Ot})),e.d(n,"TensorBuffer",(function(){return gt})),e.d(n,"Tile",(function(){return Nr})),e.d(n,"Transpose",(function(){return Ar})),e.d(n,"Variable",(function(){return Mt})),e.d(n,"abs",(function(){return Ir})),e.d(n,"acos",(function(){return Br})),e.d(n,"acosh",(function(){return Lr})),e.d(n,"add",(function(){return Tr})),e.d(n,"addN",(function(){return ja})),e.d(n,"addStrict",(function(){return bi})),e.d(n,"all",(function(){return yc})),e.d(n,"any",(function(){return wc})),e.d(n,"argMax",(function(){return xc})),e.d(n,"argMin",(function(){return Oc})),e.d(n,"asin",(function(){return Gr})),e.d(n,"asinh",(function(){return Hr})),e.d(n,"atan",(function(){return Wr})),e.d(n,"atan2",(function(){return gi})),e.d(n,"atanh",(function(){return Vr})),e.d(n,"avgPool",(function(){return sc})),e.d(n,"avgPool3d",(function(){return lc})),e.d(n,"backend",(function(){return fe})),e.d(n,"backend_util",(function(){return Eo})),e.d(n,"basicLSTMCell",(function(){return Bc})),e.d(n,"batchNorm",(function(){return Sa})),e.d(n,"batchNorm2d",(function(){return Pa})),e.d(n,"batchNorm3d",(function(){return Ba})),e.d(n,"batchNorm4d",(function(){return Ha})),e.d(n,"batchNormalization",(function(){return Ra})),e.d(n,"batchNormalization2d",(function(){return Fa})),e.d(n,"batchNormalization3d",(function(){return Ia})),e.d(n,"batchNormalization4d",(function(){return Ga})),e.d(n,"batchToSpaceND",(function(){return er})),e.d(n,"booleanMaskAsync",(function(){return zs})),e.d(n,"broadcastTo",(function(){return Wa})),e.d(n,"browser",(function(){return rh})),e.d(n,"buffer",(function(){return tr})),e.d(n,"cast",(function(){return rr})),e.d(n,"ceil",(function(){return Ur})),e.d(n,"clipByValue",(function(){return Xr})),e.d(n,"clone",(function(){return Va})),e.d(n,"complex",(function(){return Me})),e.d(n,"concat",(function(){return Ze})),e.d(n,"concat1d",(function(){return Ke})),e.d(n,"concat2d",(function(){return Je})),e.d(n,"concat3d",(function(){return Qe})),e.d(n,"concat4d",(function(){return _e})),e.d(n,"conv1d",(function(){return Gs})),e.d(n,"conv2d",(function(){return Hs})),e.d(n,"conv2dTranspose",(function(){return Ks})),e.d(n,"conv3d",(function(){return Ws})),e.d(n,"conv3dTranspose",(function(){return Js})),e.d(n,"cos",(function(){return qr})),e.d(n,"cosh",(function(){return Yr})),e.d(n,"cumsum",(function(){return ir})),e.d(n,"customGrad",(function(){return no})),e.d(n,"deprecationWarn",(function(){return Zn})),e.d(n,"depthToSpace",(function(){return or})),e.d(n,"depthwiseConv2d",(function(){return Xs})),e.d(n,"diag",(function(){return Qc})),e.d(n,"disableDeprecationWarnings",(function(){return Yn})),e.d(n,"dispose",(function(){return te})),e.d(n,"disposeVariables",(function(){return Kn})),e.d(n,"div",(function(){return Fi})),e.d(n,"divNoNan",(function(){return Ja})),e.d(n,"divStrict",(function(){return yi})),e.d(n,"dot",(function(){return _s})),e.d(n,"dropout",(function(){return _c})),e.d(n,"elu",(function(){return Dc})),e.d(n,"enableDebugMode",(function(){return qn})),e.d(n,"enableProdMode",(function(){return Xn})),e.d(n,"engine",(function(){return Jn})),e.d(n,"env",(function(){return l})),e.d(n,"equal",(function(){return ws})),e.d(n,"equalStrict",(function(){return xs})),e.d(n,"erf",(function(){return Zr})),e.d(n,"exp",(function(){return Kr})),e.d(n,"expandDims",(function(){return ur})),e.d(n,"expm1",(function(){return Jr})),e.d(n,"eye",(function(){return _a})),e.d(n,"fft",(function(){return Uc})),e.d(n,"fill",(function(){return Ve})),e.d(n,"findBackend",(function(){return ae})),e.d(n,"findBackendFactory",(function(){return se})),e.d(n,"floor",(function(){return Qr})),e.d(n,"floorDiv",(function(){return wi})),e.d(n,"frame",(function(){return rf})),e.d(n,"fused",(function(){return If})),e.d(n,"gather",(function(){return Fs})),e.d(n,"gatherND",(function(){return Jc})),e.d(n,"gather_util",(function(){return zi})),e.d(n,"getBackend",(function(){return oe})),e.d(n,"getGradient",(function(){return m})),e.d(n,"getKernel",(function(){return p})),e.d(n,"getKernelsForBackend",(function(){return b})),e.d(n,"grad",(function(){return Ji})),e.d(n,"grads",(function(){return Qi})),e.d(n,"greater",(function(){return Os})),e.d(n,"greaterEqual",(function(){return Cs})),e.d(n,"greaterEqualStrict",(function(){return As})),e.d(n,"greaterStrict",(function(){return Es})),e.d(n,"hammingWindow",(function(){return ef})),e.d(n,"hannWindow",(function(){return nf})),e.d(n,"ifft",(function(){return Xc})),e.d(n,"imag",(function(){return De})),e.d(n,"image",(function(){return Nf})),e.d(n,"inTopKAsync",(function(){return af})),e.d(n,"io",(function(){return $l})),e.d(n,"irfft",(function(){return Yc})),e.d(n,"isFinite",(function(){return ci})),e.d(n,"isInf",(function(){return si})),e.d(n,"isNaN",(function(){return ai})),e.d(n,"keep",(function(){return ne})),e.d(n,"leakyRelu",(function(){return Rc})),e.d(n,"less",(function(){return js})),e.d(n,"lessEqual",(function(){return ks})),e.d(n,"lessEqualStrict",(function(){return Ms})),e.d(n,"lessStrict",(function(){return Ns})),e.d(n,"linalg",(function(){return Of})),e.d(n,"linspace",(function(){return Ue})),e.d(n,"localResponseNormalization",(function(){return zc})),e.d(n,"log",(function(){return _r})),e.d(n,"log1p",(function(){return $r})),e.d(n,"logSigmoid",(function(){return ti})),e.d(n,"logSoftmax",(function(){return io})),e.d(n,"logSumExp",(function(){return Cc})),e.d(n,"logicalAnd",(function(){return Ua})),e.d(n,"logicalNot",(function(){return Xa})),e.d(n,"logicalOr",(function(){return qa})),e.d(n,"logicalXor",(function(){return Ya})),e.d(n,"losses",(function(){return bf})),e.d(n,"matMul",(function(){return Qs})),e.d(n,"math",(function(){return nh})),e.d(n,"max",(function(){return Ac})),e.d(n,"maxPool",(function(){return ac})),e.d(n,"maxPool3d",(function(){return fc})),e.d(n,"maxPoolWithArgmax",(function(){return hc})),e.d(n,"maximum",(function(){return xi})),e.d(n,"maximumStrict",(function(){return Oi})),e.d(n,"mean",(function(){return Ec})),e.d(n,"memory",(function(){return Qn})),e.d(n,"min",(function(){return jc})),e.d(n,"minimum",(function(){return Ci})),e.d(n,"minimumStrict",(function(){return Ai})),e.d(n,"mod",(function(){return Ei})),e.d(n,"modStrict",(function(){return ji})),e.d(n,"moments",(function(){return kc})),e.d(n,"movingAverage",(function(){return Gc})),e.d(n,"mul",(function(){return ki})),e.d(n,"mulStrict",(function(){return Mi})),e.d(n,"multiRNNCell",(function(){return Lc})),e.d(n,"multinomial",(function(){return $a})),e.d(n,"neg",(function(){return ni})),e.d(n,"nextFrame",(function(){return xh})),e.d(n,"norm",(function(){return Ic})),e.d(n,"notEqual",(function(){return Ds})),e.d(n,"notEqualStrict",(function(){return Rs})),e.d(n,"oneHot",(function(){return ts})),e.d(n,"ones",(function(){return He})),e.d(n,"onesLike",(function(){return qe})),e.d(n,"op",(function(){return ke})),e.d(n,"outerProduct",(function(){return $s})),e.d(n,"pad",(function(){return ns})),e.d(n,"pad1d",(function(){return es})),e.d(n,"pad2d",(function(){return rs})),e.d(n,"pad3d",(function(){return is})),e.d(n,"pad4d",(function(){return os})),e.d(n,"pool",(function(){return cc})),e.d(n,"pow",(function(){return Ni})),e.d(n,"powStrict",(function(){return Di})),e.d(n,"prelu",(function(){return Sc})),e.d(n,"print",(function(){return nr})),e.d(n,"prod",(function(){return Nc})),e.d(n,"profile",(function(){return _n})),e.d(n,"rand",(function(){return us})),e.d(n,"randomGamma",(function(){return vs})),e.d(n,"randomNormal",(function(){return ps})),e.d(n,"randomUniform",(function(){return ms})),e.d(n,"range",(function(){return Xe})),e.d(n,"ready",(function(){return ie})),e.d(n,"real",(function(){return Ne})),e.d(n,"reciprocal",(function(){return ei})),e.d(n,"registerBackend",(function(){return ce})),e.d(n,"registerGradient",(function(){return y})),e.d(n,"registerKernel",(function(){return g})),e.d(n,"relu",(function(){return Tc})),e.d(n,"relu6",(function(){return Fc})),e.d(n,"removeBackend",(function(){return ue})),e.d(n,"reshape",(function(){return ar})),e.d(n,"reverse",(function(){return tc})),e.d(n,"reverse1d",(function(){return nc})),e.d(n,"reverse2d",(function(){return ec})),e.d(n,"reverse3d",(function(){return rc})),e.d(n,"reverse4d",(function(){return ic})),e.d(n,"rfft",(function(){return qc})),e.d(n,"round",(function(){return ri})),e.d(n,"rsqrt",(function(){return ii})),e.d(n,"scalar",(function(){return Te})),e.d(n,"scatterND",(function(){return Vc})),e.d(n,"scatter_util",(function(){return Hi})),e.d(n,"selu",(function(){return Pc})),e.d(n,"separableConv2d",(function(){return Zs})),e.d(n,"serialization",(function(){return ah})),e.d(n,"setBackend",(function(){return re})),e.d(n,"setPlatform",(function(){return le})),e.d(n,"setdiff1dAsync",(function(){return hr})),e.d(n,"sigmoid",(function(){return oi})),e.d(n,"sign",(function(){return ui})),e.d(n,"signal",(function(){return uf})),e.d(n,"sin",(function(){return fi})),e.d(n,"sinh",(function(){return li})),e.d(n,"slice",(function(){return dc})),e.d(n,"slice1d",(function(){return vc})),e.d(n,"slice2d",(function(){return pc})),e.d(n,"slice3d",(function(){return mc})),e.d(n,"slice4d",(function(){return bc})),e.d(n,"slice_util",(function(){return Ki})),e.d(n,"softmax",(function(){return ro})),e.d(n,"softplus",(function(){return hi})),e.d(n,"spaceToBatchND",(function(){return sr})),e.d(n,"sparseToDense",(function(){return Kc})),e.d(n,"spectral",(function(){return Zc})),e.d(n,"split",(function(){return $e})),e.d(n,"sqrt",(function(){return di})),e.d(n,"square",(function(){return bs})),e.d(n,"squaredDifference",(function(){return gs})),e.d(n,"squaredDifferenceStrict",(function(){return Ri})),e.d(n,"squeeze",(function(){return cr})),e.d(n,"stack",(function(){return fr})),e.d(n,"step",(function(){return vi})),e.d(n,"stft",(function(){return of})),e.d(n,"stridedSlice",(function(){return Hc})),e.d(n,"sub",(function(){return Si})),e.d(n,"subStrict",(function(){return Ti})),e.d(n,"sum",(function(){return Mc})),e.d(n,"sumOutType",(function(){return Rt})),e.d(n,"tan",(function(){return pi})),e.d(n,"tanh",(function(){return mi})),e.d(n,"tensor",(function(){return Re})),e.d(n,"tensor1d",(function(){return Fe})),e.d(n,"tensor2d",(function(){return Pe})),e.d(n,"tensor3d",(function(){return ze})),e.d(n,"tensor4d",(function(){return Ie})),e.d(n,"tensor5d",(function(){return Be})),e.d(n,"tensor6d",(function(){return Le})),e.d(n,"tensor_util",(function(){return zt})),e.d(n,"test_util",(function(){return fs})),e.d(n,"tidy",(function(){return $n})),e.d(n,"tile",(function(){return Qa})),e.d(n,"time",(function(){return ee})),e.d(n,"topk",(function(){return Wc})),e.d(n,"train",(function(){return yh})),e.d(n,"transpose",(function(){return oo})),e.d(n,"truncatedNormal",(function(){return ys})),e.d(n,"unregisterGradient",(function(){return x})),e.d(n,"unregisterKernel",(function(){return w})),e.d(n,"unsortedSegmentSum",(function(){return Ps})),e.d(n,"unstack",(function(){return lr})),e.d(n,"util",(function(){return ht})),e.d(n,"valueAndGrad",(function(){return _i})),e.d(n,"valueAndGrads",(function(){return $i})),e.d(n,"variable",(function(){return Ge})),e.d(n,"variableGrads",(function(){return to})),e.d(n,"version_core",(function(){return sh})),e.d(n,"webgl",(function(){return ch})),e.d(n,"where",(function(){return Za})),e.d(n,"whereAsync",(function(){return Ka})),e.d(n,"zeros",(function(){return We})),e.d(n,"zerosLike",(function(){return Ye}));
|
|
1
|
+
import{a as t,f as n}from"./p-aacd7024.js";var e;!function(t){t[t.Capturing=0]="Capturing",t[t.FinishedCapturing=1]="FinishedCapturing",t[t.Waiting=2]="Waiting",t[t.NotFound=3]="NotFound",t[t.Aborted=4]="Aborted"}(e||(e={}));const r=t=>!("isConnected"in t)||t.isConnected,i=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(r))})(...n)}),2e3)}})(),o=t=>"function"==typeof t?t():t;var u;!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"}(u||(u={}));class a{}a.FooterText="Qoobiss eKYC",a.VideoLenght=3100;class s extends a{}s.IdTitile="Prezintă actul tău de identitate",s.IdSubTitileFace="Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",s.IdSubTitileBack="Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",s.IdButton="Sunt gata!",s.SelfieTitile="Validare video",s.SelfieSubTitile="Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.",s.SelfieButton="Sunt gata!";class c extends a{}c.Title="Validarea identității la distanță este o procedură simplă și rapidă",c.Description="Asigură-te că ai:",c.IdInfo="Actul de identitate, în original",c.DeviceInfo="Un telefon mobil sau un calculator cu camera web",c.SmsInfo="Acces la un telefon mobil ce permite primirea de mesaje SMS",c.Warning="ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",c.WarningMd="ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",c.Terms="Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",c.Button="Am înțeles",c.ButtonLeave="Nu sunt pregătit";class f extends a{}f.Title="Este necesar să validăm numărul tău de telefon",f.Description="Introdu mai jos numarul tau de telefon:",f.Button="Trimite SMS de verificare",f.Label="Numarul tau de telefon";class l extends a{}l.Title="Introdu codul de validare primit prin sms:",l.Description=" ",l.Button="Validează",l.Error="Codul introdus nu este valid. Asigură-te că îl introduci corect";class h extends a{}h.Title="Procesul a fost finalizat.",h.Description="Vei fi redirecționat în câteva momente.",h.Message="Îți mulțumim!";class d{}d.FlowStatusKey="qbs-ect-flowstatus",d.RequestIdKey="qbs-ect-requestid",d.TokenKey="qbs-ect-token",d.InitialisedKey="qbs-ect-initialised",d.HasIdBackKey="qbs-ect-has-id-back",d.AgreementValidationKey="qbs-ect-agreement-validation",d.PhoneValidationKey="qbs-ect-phone-validation",d.RefreshDoneKey="qbs-ect-refresh-done";class v extends a{}v.Button="Încerc din nou",v.Title="Încadrează actul de identitate în chenarul de pe ecran.",v.TitleBack="Încadrează spatele actului de identitate în chenarul de pe ecran.",v.TtileRotate="Întoarce actul de identitate.",v.ErrorTitleR1="Nu am putut colecta informațiile din actul de identitate!",v.ErrorTitleR2="Te rugăm să mai încerci o dată!",v.ErrorR1="Încadrează actul de identitate în așa fel încât chenarul să se potrivească perfect pe colțurile actului de identitate. Trebuie să fie vizibilă întreaga suprafață a actului de identitate. ",v.ErrorR2="Ai grijă să te afli într-o zonă cu suficientă lumină și să nu acoperi părți ale actului de identitate cu degetele. Ai grijă de asemenea să nu se formeze reflexii de lumină pe suprafața acestuia.",v.IDPoseMapping={0:"",1:"Înclină actul de identitate spre spate.",2:"",3:"",4:""},v.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"},v.Loading="Transferăm datele. Asteptați...";class p extends a{}p.Title="Încadrează fața în chenarul de pe ecran.",p.FinalTitle="Îndreaptă capul și încadrează fața în chenarul de pe ecran.",p.ErrorTitleR1="Procesul a eșuat!",p.ErrorTitleR2="Te rugăm să mai încerci o dată!",p.ErrorR1="Încadrează fața în așa fel încât chenarul să se suprapună peste linia bărbiei și a frunții, exact așa cum vezi în animația de pe ecran. ",p.ErrorR2="Rămâi cu fața încadrată în chenar și execută gestul solicitat după ce animația cu explicația a dispărut de pe ecran.",p.Loading="Transferăm datele. Asteptați...",p.FacePoseMapping={0:"Întoarce capul spre stânga.",1:"Întoarce capul spre dreapta.",2:"Înclină capul spre spate.",3:"Înclină capul în față.",4:""},p.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 m extends a{}m.Title="Pentru începerea identificării avem nevoie de acordurile tale:",m.Button="Încep identificarea",m.Terms="Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",m.Agreement="Îmi exprim acordul pentru prelucrarea datelor cu caracter personal";class b extends a{}b.ButtonYes="Sunt de acord",b.ButtonNo="Nu sunt de acord";class g{constructor(){this.uriEnv="/",this.uriEnv="QA"==x.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"}}class y extends a{}y.InfoTop="Pentru a continua scanați codul de mai jos cu un smartphone.",y.InfoBottom="Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",y.Validation="Număr de telefon invalid!",y.InfoWaiting="Așteptăm finalizarea procesului pe smartphone.",y.InfoAborted="Procesului de pe smartphone a fost amanat.";class w extends a{}w.Title="Procesul de indetificare nu poate continua.",w.Description="Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.",w.Button="Reincep procesul",w.HowToLink="https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4";const{state:x,onChange:O}=(()=>{const e=((t,n=((t,n)=>t!==n))=>{const e=o(t);let r=new Map(Object.entries(null!=e?e:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var n;r=new Map(Object.entries(null!==(n=o(t))&&void 0!==n?n:{})),i.reset.forEach((t=>t()))},a=t=>(i.get.forEach((n=>n(t))),r.get(t)),s=(t,e)=>{const o=r.get(t);n(e,o,t)&&(r.set(t,e),i.set.forEach((n=>n(t,e,o))))},c="undefined"==typeof Proxy?{}:new Proxy(e,{get:(t,n)=>a(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>r.has(n),set:(t,n,e)=>(s(n,e),!0)}),f=(t,n)=>(i[t].push(n),()=>{((t,n)=>{const e=t.indexOf(n);e>=0&&(t[e]=t[t.length-1],t.length--)})(i[t],n)});return{state:c,get:a,set:s,on:f,onChange:(n,e)=>{const r=f("set",((t,r)=>{t===n&&e(r)})),i=f("reset",(()=>e(o(t)[n])));return()=>{r(),i()}},use:(...t)=>{const n=t.reduce(((t,n)=>(n.set&&t.push(f("set",n.set)),n.get&&t.push(f("get",n.get)),n.reset&&t.push(f("reset",n.reset)),n.dispose&&t.push(f("dispose",n.dispose)),t)),[]);return()=>n.forEach((t=>t()))},dispose:()=>{i.dispose.forEach((t=>t())),u()},reset:u,forceUpdate:t=>{const n=r.get(t);i.set.forEach((e=>e(t,n,n)))}}})({flowStatus:u.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,recordingRetryCount:0},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:n=>{const r=t();r&&((t,n,e)=>{const r=t.get(n);r?r.includes(e)||r.push(e):t.set(n,[e])})(e,n,r)},set:t=>{const r=e.get(t);r&&e.set(t,r.filter(n)),i(e)},reset:()=>{e.forEach((t=>t.forEach(n))),i(e)}}})()),e})();var C,A,E,j,k;O("environment",(t=>{x.debug="QA"==t})),O("flowStatus",(t=>{sessionStorage.setItem(d.FlowStatusKey,u[t])})),O("token",(t=>{sessionStorage.setItem(d.TokenKey,t)})),O("requestId",(t=>{sessionStorage.setItem(d.RequestIdKey,t)})),O("initialised",(t=>{sessionStorage.setItem(d.InitialisedKey,String(t))})),O("hasIdBack",(t=>{sessionStorage.setItem(d.HasIdBackKey,String(t))})),O("agreementsValidation",(t=>{sessionStorage.setItem(d.AgreementValidationKey,String(t))})),O("phoneValidation",(t=>{sessionStorage.setItem(d.PhoneValidationKey,String(t))})),function(t){t[t.ComponentLoaded="component-loaded"]="ComponentLoaded",t[t.MobileRedirect="mobile-redirect"]="MobileRedirect",t[t.Landing="landing"]="Landing",t[t.Agreements="agreements"]="Agreements",t[t.OtpSend="otp-send"]="OtpSend",t[t.OtpCheck="otp-check"]="OtpCheck",t[t.CiFront="ci-front"]="CiFront",t[t.CiFrontHowTo="ci-front-how-to"]="CiFrontHowTo",t[t.CiFrontHoldAnimation="ci-front-hold-animation"]="CiFrontHoldAnimation",t[t.CiFrontTiltAnimation="ci-front-tilt-animation"]="CiFrontTiltAnimation",t[t.CiFrontCapture="ci-front-capture"]="CiFrontCapture",t[t.CiBack="ci-back"]="CiBack",t[t.CiBackHowTo="ci-back-how-to"]="CiBackHowTo",t[t.CiBackHoldAnimation="ci-back-hold-animation"]="CiBackHoldAnimation",t[t.CiBackTiltAnimation="ci-back-tilt-animation"]="CiBackTiltAnimation",t[t.CiBackCapture="ci-back-capture"]="CiBackCapture",t[t.CiTilt="ci-tilt"]="CiTilt",t[t.SelfieHowTo="selfie-how-to"]="SelfieHowTo",t[t.SelfieHoldAnimation="selfie-hold-animation"]="SelfieHoldAnimation",t[t.SelfieTiltAnimation="selfie-tilt-animation"]="SelfieTiltAnimation",t[t.SelfieCapture="selfie-capture"]="SelfieCapture",t[t.Selfie="selfie"]="Selfie",t[t.End="end"]="End",t[t.CameraError="camera-error"]="CameraError"}(C||(C={})),function(t){t[t.Initialized="initialized"]="Initialized",t[t.Finalized="finalized"]="Finalized",t[t.None="none"]="None"}(A||(A={}));class M{constructor(){this.serviceErrors=["Service Unavailable","Unauthorized"],this.toBase64=t=>new Promise(((n,e)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>n(r.result),r.onerror=t=>e(t)})),this.urls=new g}async http(t){const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);try{return await n.json()}catch(t){throw new Error("No json found in response "+t)}}async post(t,n,e=!0){var r=new Request(x.apiBaseUrl+t,{method:"POST",body:n,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});try{return await this.http(r)}catch(r){if(!e||this.serviceErrors.includes(r.message))throw r;this.AddLog("Error in post ",r);try{var i=new Request(x.apiBaseUrl+t,{method:"POST",body:n,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(i)}catch(e){this.AddLog("Error in post ",e);var o=new Request(x.apiBaseUrl+t,{method:"POST",body:n,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(o)}}}async get(t,n=!0){var e=new Request(x.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});try{return await this.http(e)}catch(e){if(!n||this.serviceErrors.includes(e.message))throw e;this.AddLog("Error in get ",e);try{var r=new Request(x.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(r)}catch(n){this.AddLog("Error in get ",n);var i=new Request(x.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+x.token}});return await this.http(i)}}}async SendOTPCode(t,n){let e={requestId:t,phone:n};return(await this.post(this.urls.OtpSend,JSON.stringify(e))).sent}async CheckOTPCode(t,n){let e={requestId:t,otp:n};return(await this.post(this.urls.OtpCheck,JSON.stringify(e))).valid}async AddIdentificationRequest(t,n){x.debug&&console.log("Calling identity request with store:"+JSON.stringify(x));let e={requestId:x.requestId,clientDeviceInfo:JSON.stringify(t),redirectId:x.redirectId,phoneNumber:x.phoneNumber,version:n},r=await this.post(this.urls.IdentityInsert,JSON.stringify(e));return""==x.requestId&&(x.requestId=r.requestId),x.hasIdBack=r.hasIdBack,x.hasSelfieGesture=r.hasIdTilt,x.hasSelfieGesture=r.hasSelfieGesture,x.agreementsValidation=r.agreementsValidation,x.phoneValidation=r.phoneValidation,x.phoneNumber=r.phoneNumber,!0}async UploadFileForRequestB64(t,n,e){let r={requestId:t,type:n,data:await this.toBase64(e)},i=await this.post(this.urls.UploadCapture,JSON.stringify(r));return x.hasIdBack||"IdFront"!=n?x.hasIdBack&&"IdBack"==n?i.isValid:"Selfie"!=n||i.isValid:i.isValid}async GetAgreement(t){return(await this.get(this.urls.GetAgreement+"?type="+t+"&requestId="+x.requestId)).htmlText}async GenerateAgreement(t){let n={requestId:x.requestId,documentType:t};return(await this.post(this.urls.GenerateAgreement,JSON.stringify(n))).generation}async GetStatus(t){let n=await this.get(this.urls.GetStatus+"?orderId="+t);return e[n.status]}async SendLink(t,n){let e={requestId:x.requestId,link:t,phoneNumber:n};return(await this.post(this.urls.SendLink,JSON.stringify(e))).sent}async AddLog(t,n){try{let e={requestId:x.requestId,action:u[x.flowStatus],message:JSON.stringify({error:t,context:n})};return(await this.post(this.urls.AddLog,JSON.stringify(e),!1)).saved}catch(t){}}async AddStep(t,n){let e={requestId:x.requestId,redirectId:x.redirectId,step:C[t],moment:A[n],timestamp:(new Date).toISOString()};return(await this.post(this.urls.AddStep,JSON.stringify(e))).saved}async AbortRequest(){return(await this.post(this.urls.AbortRequest,JSON.stringify({requestId:x.requestId}))).saved}}!function(t){t.Android="android",t.iOS="ios",t.Unknown="unknown",t.WindowsPhone="Windows Phone"}(E||(E={})),function(t){t.Linux="linux",t.MacOS="mac_os",t.Unix="unix",t.Unknown="unknown",t.Windows="windows"}(j||(j={})),function(t){t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Mi="mi",t.Unknown="unknown"}(k||(k={}));class N{constructor(){var t,n,e,r;this.supportedScreenOrientation=null!==(n=null!==(t=((null===screen||void 0===screen?void 0:screen.orientation)||{}).type)&&void 0!==t?t:screen.mozOrientation)&&void 0!==n?n:screen.msOrientation,this.safariScreenOrientation=!(null===screen||void 0===screen?void 0:screen.orientation)&&matchMedia("(orientation: portrait)").matches?"portrait-primary":"landscape-primary",this.initialScreenOrientation=null!==(r=null!==(e=this.supportedScreenOrientation)&&void 0!==e?e:this.safariScreenOrientation)&&void 0!==r?r:"portrait-primary",this.userAgent=navigator.userAgent||navigator.vendor||window.opera||void 0,this.isMobile=this.isMobileDevice(),this.isTablet=this.isTabletDevice(),this.isDesktop=!this.isMobile&&!this.isTablet}isMobileDevice(){return[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some((t=>this.userAgent.match(t)))}isTabletDevice(){return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.userAgent.toLowerCase())}getMobileOS(){return this.isMobileDevice()?/windows phone/i.test(this.userAgent)?E.WindowsPhone:/android/i.test(this.userAgent)?E.Android:/iPad|iPhone|iPod/.test(this.userAgent)&&!window.MSStream?E.iOS:E.Unknown:void 0}getDesktopOS(){return this.isDesktop?-1!==this.userAgent.indexOf("Win")?j.Windows:-1!==this.userAgent.indexOf("Mac")?j.MacOS:-1!==this.userAgent.indexOf("X11")?j.Unix:-1!==this.userAgent.indexOf("Linux")?j.Linux:j.Unknown:void 0}getDeviceOS(){var t;return null!==(t=this.getMobileOS())&&void 0!==t?t:this.getDesktopOS()}getBrowser(){if(/XiaoMi/i.test(this.userAgent)||/MiuiBrowser/i.test(this.userAgent))return k.Mi;var t=/chrome/i.test(this.userAgent);return t?k.Chrome:/firefox/i.test(navigator.userAgent)?k.Firefox:!t&&/safari/i.test(navigator.userAgent)?k.Safari:k.Unknown}getDevice(){return{isDesktop:this.isDesktop,desktopOS:this.getDesktopOS(),isWindowsDesktop:this.getDeviceOS()===j.Windows,isLinuxOrUnixDesktop:this.getDeviceOS()===j.Linux||this.getDeviceOS()===j.Unix,isMobile:this.isMobile,mobileOS:this.getMobileOS(),isAndroidDevice:this.getDeviceOS()===E.Android,isAppleDevice:this.getDeviceOS()===E.iOS||this.getDeviceOS()===j.MacOS,isUnknownMobileDevice:this.getDeviceOS()===E.Unknown,browser:this.getBrowser(),isTablet:this.isTablet,initialScreenOrientation:this.initialScreenOrientation}}}class D{static init(t){this.callingModule=t}static flowEvent(t,n){const e=`ect-${t.toString()}-${n.toString()}-event`;this.callingModule.dispatchEvent(new CustomEvent(e,{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowStarted(){this.callingModule.dispatchEvent(new CustomEvent("ect-started",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowAborted(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-aborted",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowCompleted(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-completed",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowError(t){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-error",{detail:{error:t},bubbles:!0,cancelable:!0,composed:!0}))}static tokenExpired(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-session-expired",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}}class R{constructor(t){this.apiErrorEvent=null,this.processError=null,this.apiCall=new M,t&&(this.flowStep=t),x.device||(x.device=(new N).getDevice())}setEventEmitter(t){this.apiErrorEvent=t}setErrorCallback(t){this.processError=t}async logStep(t,n){D.flowEvent(t,n);try{await this.apiCall.AddStep(t,n)}catch(e){this.apiErrorEvent?this.apiErrorEvent.emit(e):this.processError(e,`${t}-${n}`)}}async initialize(){D.flowEvent(this.flowStep,A.Initialized);try{await this.apiCall.AddStep(this.flowStep,A.Initialized)}catch(t){this.apiErrorEvent?this.apiErrorEvent.emit(t):this.processError(t,`${this.flowStep}-${A.Initialized}`)}}async finalize(){D.flowEvent(this.flowStep,A.Finalized);try{await this.apiCall.AddStep(this.flowStep,A.Finalized)}catch(t){this.apiErrorEvent?this.apiErrorEvent.emit(t):this.processError(t,`${this.flowStep}-${A.Finalized}`)}}}function S(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function T(t,n,e){return t(e={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}const F=S(T((function(t){window,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s=581)}([function(t,n,e){e.r(n),function(t,r,i,o){e.d(n,"AdadeltaOptimizer",(function(){return lh})),e.d(n,"AdagradOptimizer",(function(){return hh})),e.d(n,"AdamOptimizer",(function(){return dh})),e.d(n,"AdamaxOptimizer",(function(){return vh})),e.d(n,"Add",(function(){return gr})),e.d(n,"AddN",(function(){return yr})),e.d(n,"BroadcastTo",(function(){return jr})),e.d(n,"DataStorage",(function(){return uo})),e.d(n,"Div",(function(){return wr})),e.d(n,"ENV",(function(){return h})),e.d(n,"Environment",(function(){return f})),e.d(n,"FromPixels",(function(){return Rr})),e.d(n,"FusedBatchNorm",(function(){return xr})),e.d(n,"Identity",(function(){return Mr})),e.d(n,"KernelBackend",(function(){return ao})),e.d(n,"MaxPoolWithArgmax",(function(){return Sr})),e.d(n,"MomentumOptimizer",(function(){return mh})),e.d(n,"NonMaxSuppressionV5",(function(){return Er})),e.d(n,"OneHot",(function(){return kr})),e.d(n,"Optimizer",(function(){return fh})),e.d(n,"PadV2",(function(){return Dr})),e.d(n,"RMSPropOptimizer",(function(){return bh})),e.d(n,"Rank",(function(){return Ct})),e.d(n,"Reduction",(function(){return tf})),e.d(n,"SGDOptimizer",(function(){return ph})),e.d(n,"Square",(function(){return Cr})),e.d(n,"SquaredDifference",(function(){return Or})),e.d(n,"Tensor",(function(){return Ot})),e.d(n,"TensorBuffer",(function(){return gt})),e.d(n,"Tile",(function(){return Nr})),e.d(n,"Transpose",(function(){return Ar})),e.d(n,"Variable",(function(){return Mt})),e.d(n,"abs",(function(){return Ir})),e.d(n,"acos",(function(){return Br})),e.d(n,"acosh",(function(){return Lr})),e.d(n,"add",(function(){return Tr})),e.d(n,"addN",(function(){return ja})),e.d(n,"addStrict",(function(){return bi})),e.d(n,"all",(function(){return yc})),e.d(n,"any",(function(){return wc})),e.d(n,"argMax",(function(){return xc})),e.d(n,"argMin",(function(){return Oc})),e.d(n,"asin",(function(){return Gr})),e.d(n,"asinh",(function(){return Hr})),e.d(n,"atan",(function(){return Wr})),e.d(n,"atan2",(function(){return gi})),e.d(n,"atanh",(function(){return Vr})),e.d(n,"avgPool",(function(){return sc})),e.d(n,"avgPool3d",(function(){return lc})),e.d(n,"backend",(function(){return fe})),e.d(n,"backend_util",(function(){return Eo})),e.d(n,"basicLSTMCell",(function(){return Bc})),e.d(n,"batchNorm",(function(){return Sa})),e.d(n,"batchNorm2d",(function(){return Pa})),e.d(n,"batchNorm3d",(function(){return Ba})),e.d(n,"batchNorm4d",(function(){return Ha})),e.d(n,"batchNormalization",(function(){return Ra})),e.d(n,"batchNormalization2d",(function(){return Fa})),e.d(n,"batchNormalization3d",(function(){return Ia})),e.d(n,"batchNormalization4d",(function(){return Ga})),e.d(n,"batchToSpaceND",(function(){return er})),e.d(n,"booleanMaskAsync",(function(){return zs})),e.d(n,"broadcastTo",(function(){return Wa})),e.d(n,"browser",(function(){return rh})),e.d(n,"buffer",(function(){return tr})),e.d(n,"cast",(function(){return rr})),e.d(n,"ceil",(function(){return Ur})),e.d(n,"clipByValue",(function(){return Xr})),e.d(n,"clone",(function(){return Va})),e.d(n,"complex",(function(){return Me})),e.d(n,"concat",(function(){return Ze})),e.d(n,"concat1d",(function(){return Ke})),e.d(n,"concat2d",(function(){return Je})),e.d(n,"concat3d",(function(){return Qe})),e.d(n,"concat4d",(function(){return _e})),e.d(n,"conv1d",(function(){return Gs})),e.d(n,"conv2d",(function(){return Hs})),e.d(n,"conv2dTranspose",(function(){return Ks})),e.d(n,"conv3d",(function(){return Ws})),e.d(n,"conv3dTranspose",(function(){return Js})),e.d(n,"cos",(function(){return qr})),e.d(n,"cosh",(function(){return Yr})),e.d(n,"cumsum",(function(){return ir})),e.d(n,"customGrad",(function(){return no})),e.d(n,"deprecationWarn",(function(){return Zn})),e.d(n,"depthToSpace",(function(){return or})),e.d(n,"depthwiseConv2d",(function(){return Xs})),e.d(n,"diag",(function(){return Qc})),e.d(n,"disableDeprecationWarnings",(function(){return Yn})),e.d(n,"dispose",(function(){return te})),e.d(n,"disposeVariables",(function(){return Kn})),e.d(n,"div",(function(){return Fi})),e.d(n,"divNoNan",(function(){return Ja})),e.d(n,"divStrict",(function(){return yi})),e.d(n,"dot",(function(){return _s})),e.d(n,"dropout",(function(){return _c})),e.d(n,"elu",(function(){return Dc})),e.d(n,"enableDebugMode",(function(){return qn})),e.d(n,"enableProdMode",(function(){return Xn})),e.d(n,"engine",(function(){return Jn})),e.d(n,"env",(function(){return l})),e.d(n,"equal",(function(){return ws})),e.d(n,"equalStrict",(function(){return xs})),e.d(n,"erf",(function(){return Zr})),e.d(n,"exp",(function(){return Kr})),e.d(n,"expandDims",(function(){return ur})),e.d(n,"expm1",(function(){return Jr})),e.d(n,"eye",(function(){return _a})),e.d(n,"fft",(function(){return Uc})),e.d(n,"fill",(function(){return Ve})),e.d(n,"findBackend",(function(){return ae})),e.d(n,"findBackendFactory",(function(){return se})),e.d(n,"floor",(function(){return Qr})),e.d(n,"floorDiv",(function(){return wi})),e.d(n,"frame",(function(){return rf})),e.d(n,"fused",(function(){return If})),e.d(n,"gather",(function(){return Fs})),e.d(n,"gatherND",(function(){return Jc})),e.d(n,"gather_util",(function(){return zi})),e.d(n,"getBackend",(function(){return oe})),e.d(n,"getGradient",(function(){return m})),e.d(n,"getKernel",(function(){return p})),e.d(n,"getKernelsForBackend",(function(){return b})),e.d(n,"grad",(function(){return Ji})),e.d(n,"grads",(function(){return Qi})),e.d(n,"greater",(function(){return Os})),e.d(n,"greaterEqual",(function(){return Cs})),e.d(n,"greaterEqualStrict",(function(){return As})),e.d(n,"greaterStrict",(function(){return Es})),e.d(n,"hammingWindow",(function(){return ef})),e.d(n,"hannWindow",(function(){return nf})),e.d(n,"ifft",(function(){return Xc})),e.d(n,"imag",(function(){return De})),e.d(n,"image",(function(){return Nf})),e.d(n,"inTopKAsync",(function(){return af})),e.d(n,"io",(function(){return $l})),e.d(n,"irfft",(function(){return Yc})),e.d(n,"isFinite",(function(){return ci})),e.d(n,"isInf",(function(){return si})),e.d(n,"isNaN",(function(){return ai})),e.d(n,"keep",(function(){return ne})),e.d(n,"leakyRelu",(function(){return Rc})),e.d(n,"less",(function(){return js})),e.d(n,"lessEqual",(function(){return ks})),e.d(n,"lessEqualStrict",(function(){return Ms})),e.d(n,"lessStrict",(function(){return Ns})),e.d(n,"linalg",(function(){return Of})),e.d(n,"linspace",(function(){return Ue})),e.d(n,"localResponseNormalization",(function(){return zc})),e.d(n,"log",(function(){return _r})),e.d(n,"log1p",(function(){return $r})),e.d(n,"logSigmoid",(function(){return ti})),e.d(n,"logSoftmax",(function(){return io})),e.d(n,"logSumExp",(function(){return Cc})),e.d(n,"logicalAnd",(function(){return Ua})),e.d(n,"logicalNot",(function(){return Xa})),e.d(n,"logicalOr",(function(){return qa})),e.d(n,"logicalXor",(function(){return Ya})),e.d(n,"losses",(function(){return bf})),e.d(n,"matMul",(function(){return Qs})),e.d(n,"math",(function(){return nh})),e.d(n,"max",(function(){return Ac})),e.d(n,"maxPool",(function(){return ac})),e.d(n,"maxPool3d",(function(){return fc})),e.d(n,"maxPoolWithArgmax",(function(){return hc})),e.d(n,"maximum",(function(){return xi})),e.d(n,"maximumStrict",(function(){return Oi})),e.d(n,"mean",(function(){return Ec})),e.d(n,"memory",(function(){return Qn})),e.d(n,"min",(function(){return jc})),e.d(n,"minimum",(function(){return Ci})),e.d(n,"minimumStrict",(function(){return Ai})),e.d(n,"mod",(function(){return Ei})),e.d(n,"modStrict",(function(){return ji})),e.d(n,"moments",(function(){return kc})),e.d(n,"movingAverage",(function(){return Gc})),e.d(n,"mul",(function(){return ki})),e.d(n,"mulStrict",(function(){return Mi})),e.d(n,"multiRNNCell",(function(){return Lc})),e.d(n,"multinomial",(function(){return $a})),e.d(n,"neg",(function(){return ni})),e.d(n,"nextFrame",(function(){return xh})),e.d(n,"norm",(function(){return Ic})),e.d(n,"notEqual",(function(){return Ds})),e.d(n,"notEqualStrict",(function(){return Rs})),e.d(n,"oneHot",(function(){return ts})),e.d(n,"ones",(function(){return He})),e.d(n,"onesLike",(function(){return qe})),e.d(n,"op",(function(){return ke})),e.d(n,"outerProduct",(function(){return $s})),e.d(n,"pad",(function(){return ns})),e.d(n,"pad1d",(function(){return es})),e.d(n,"pad2d",(function(){return rs})),e.d(n,"pad3d",(function(){return is})),e.d(n,"pad4d",(function(){return os})),e.d(n,"pool",(function(){return cc})),e.d(n,"pow",(function(){return Ni})),e.d(n,"powStrict",(function(){return Di})),e.d(n,"prelu",(function(){return Sc})),e.d(n,"print",(function(){return nr})),e.d(n,"prod",(function(){return Nc})),e.d(n,"profile",(function(){return _n})),e.d(n,"rand",(function(){return us})),e.d(n,"randomGamma",(function(){return vs})),e.d(n,"randomNormal",(function(){return ps})),e.d(n,"randomUniform",(function(){return ms})),e.d(n,"range",(function(){return Xe})),e.d(n,"ready",(function(){return ie})),e.d(n,"real",(function(){return Ne})),e.d(n,"reciprocal",(function(){return ei})),e.d(n,"registerBackend",(function(){return ce})),e.d(n,"registerGradient",(function(){return y})),e.d(n,"registerKernel",(function(){return g})),e.d(n,"relu",(function(){return Tc})),e.d(n,"relu6",(function(){return Fc})),e.d(n,"removeBackend",(function(){return ue})),e.d(n,"reshape",(function(){return ar})),e.d(n,"reverse",(function(){return tc})),e.d(n,"reverse1d",(function(){return nc})),e.d(n,"reverse2d",(function(){return ec})),e.d(n,"reverse3d",(function(){return rc})),e.d(n,"reverse4d",(function(){return ic})),e.d(n,"rfft",(function(){return qc})),e.d(n,"round",(function(){return ri})),e.d(n,"rsqrt",(function(){return ii})),e.d(n,"scalar",(function(){return Te})),e.d(n,"scatterND",(function(){return Vc})),e.d(n,"scatter_util",(function(){return Hi})),e.d(n,"selu",(function(){return Pc})),e.d(n,"separableConv2d",(function(){return Zs})),e.d(n,"serialization",(function(){return ah})),e.d(n,"setBackend",(function(){return re})),e.d(n,"setPlatform",(function(){return le})),e.d(n,"setdiff1dAsync",(function(){return hr})),e.d(n,"sigmoid",(function(){return oi})),e.d(n,"sign",(function(){return ui})),e.d(n,"signal",(function(){return uf})),e.d(n,"sin",(function(){return fi})),e.d(n,"sinh",(function(){return li})),e.d(n,"slice",(function(){return dc})),e.d(n,"slice1d",(function(){return vc})),e.d(n,"slice2d",(function(){return pc})),e.d(n,"slice3d",(function(){return mc})),e.d(n,"slice4d",(function(){return bc})),e.d(n,"slice_util",(function(){return Ki})),e.d(n,"softmax",(function(){return ro})),e.d(n,"softplus",(function(){return hi})),e.d(n,"spaceToBatchND",(function(){return sr})),e.d(n,"sparseToDense",(function(){return Kc})),e.d(n,"spectral",(function(){return Zc})),e.d(n,"split",(function(){return $e})),e.d(n,"sqrt",(function(){return di})),e.d(n,"square",(function(){return bs})),e.d(n,"squaredDifference",(function(){return gs})),e.d(n,"squaredDifferenceStrict",(function(){return Ri})),e.d(n,"squeeze",(function(){return cr})),e.d(n,"stack",(function(){return fr})),e.d(n,"step",(function(){return vi})),e.d(n,"stft",(function(){return of})),e.d(n,"stridedSlice",(function(){return Hc})),e.d(n,"sub",(function(){return Si})),e.d(n,"subStrict",(function(){return Ti})),e.d(n,"sum",(function(){return Mc})),e.d(n,"sumOutType",(function(){return Rt})),e.d(n,"tan",(function(){return pi})),e.d(n,"tanh",(function(){return mi})),e.d(n,"tensor",(function(){return Re})),e.d(n,"tensor1d",(function(){return Fe})),e.d(n,"tensor2d",(function(){return Pe})),e.d(n,"tensor3d",(function(){return ze})),e.d(n,"tensor4d",(function(){return Ie})),e.d(n,"tensor5d",(function(){return Be})),e.d(n,"tensor6d",(function(){return Le})),e.d(n,"tensor_util",(function(){return zt})),e.d(n,"test_util",(function(){return fs})),e.d(n,"tidy",(function(){return $n})),e.d(n,"tile",(function(){return Qa})),e.d(n,"time",(function(){return ee})),e.d(n,"topk",(function(){return Wc})),e.d(n,"train",(function(){return yh})),e.d(n,"transpose",(function(){return oo})),e.d(n,"truncatedNormal",(function(){return ys})),e.d(n,"unregisterGradient",(function(){return x})),e.d(n,"unregisterKernel",(function(){return w})),e.d(n,"unsortedSegmentSum",(function(){return Ps})),e.d(n,"unstack",(function(){return lr})),e.d(n,"util",(function(){return ht})),e.d(n,"valueAndGrad",(function(){return _i})),e.d(n,"valueAndGrads",(function(){return $i})),e.d(n,"variable",(function(){return Ge})),e.d(n,"variableGrads",(function(){return to})),e.d(n,"version_core",(function(){return sh})),e.d(n,"webgl",(function(){return ch})),e.d(n,"where",(function(){return Za})),e.d(n,"whereAsync",(function(){return Ka})),e.d(n,"zeros",(function(){return We})),e.d(n,"zerosLike",(function(){return Ye}));
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2020 Google LLC. All Rights Reserved.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-aacd7024.js";import{B as h,F as a,l as e,s as o,c as d,S as r}from"./p-
|
|
1
|
+
import{r as i,c as t,h as s}from"./p-aacd7024.js";import{B as h,F as a,l as e,s as o,c as d,S as r}from"./p-369f99a9.js";const n=class{constructor(s){i(this,s),this.apiErrorEvent=t(this,"apiError",7),this.recordingResultCount=0,this.showTimeout=void 0,this.showInvalid=void 0,this.showHowTo=void 0,this.front=void 0,this.flow={photoDone:!1,recordingDone:!1,verificationFinished:!1,photoFile:null,photoFileName:"",photoUploadType:"",recordingFile:null,recordingFileName:"",recordingUploadType:""},this.baseComponent=new h(a.CiBack),this.baseComponent.setEventEmitter(this.apiErrorEvent)}componentWillLoad(){this.captureRetryCount=0,this.showHowTo=!0,this.flow.photoFileName="idImage.png",this.flow.recordingFileName="idVideo.",this.flow.photoUploadType="IdFront",this.flow.recordingUploadType="IdFrontVideo",this.front=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}captureErrorDone(){1==this.showTimeout&&(this.showTimeout=!1),1==this.showInvalid&&(this.flow.photoFileName="idImage.png",this.flow.recordingFileName="idVideo.",this.flow.photoUploadType="IdFront",this.flow.recordingUploadType="IdFrontVideo",this.flow.photoFile=null,this.flow.recordingFile=null,this.flow.photoDone=!1,this.flow.recordingDone=!1,this.front=!0,this.showInvalid=!1)}async captureIdImage(i){let t=i.detail;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:t},e()),void this.triggerErrorFlow();try{this.flow.photoFile=new File([t],this.flow.photoFileName,{type:"image/png"}),this.uploadPhoto()}catch(i){this.apiErrorEvent.emit(i)}}async captureIdBackImage(i){let t=i.detail;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:t},e()),void this.triggerErrorFlow();try{this.flow.photoFile=new File([t],this.flow.photoFileName,{type:"image/png"}),this.uploadPhoto()}catch(i){this.apiErrorEvent.emit(i)}}async capturedIdRecording(i){let t=i.detail;if(0==t.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:t},e()),void this.triggerErrorFlow();this.recordingResultCount=0;let s=t.type==r.mp4MimeType.type?r.mp4MimeType:r.webmMimeType;try{this.flow.recordingFile=new File([t],this.flow.recordingFileName+s.extension,{type:s.type}),this.uploadRecording()}catch(i){o.recordingRetryCount<3?(o.recordingRetryCount++,this.triggerErrorFlow()):this.apiErrorEvent.emit(i)}}async verificationFinished(i){this.flow.verificationFinished=!0,await this.endFlow()}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhoto(){null==this.flow.photoFile||this.flow.photoDone||(this.flow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,this.flow.photoUploadType,this.flow.photoFile),this.flow.photoDone?await this.endFlow():(this.switchCamera(),this.triggerErrorFlow()))}async uploadRecording(){null==this.flow.recordingFile||this.flow.recordingDone||(this.flow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,this.flow.recordingUploadType,this.flow.recordingFile),this.flow.recordingDone?await this.endFlow():this.triggerErrorFlow())}triggerErrorFlow(){this.flow.photoFile=null,this.flow.recordingFile=null,this.showInvalid=!0}async endFlow(){if(this.flow.photoDone&&this.flow.recordingDone)return this.front?(this.flow.photoFileName="idBackImage.png",this.flow.recordingFileName="idBackVideo.",this.flow.photoUploadType="IdBack",this.flow.recordingUploadType="IdBackVideo",this.flow.photoFile=null,this.flow.recordingFile=null,this.flow.photoDone=!1,this.flow.recordingDone=!1,this.front=!1,void(this.showHowTo=!0)):void(this.flow.verificationFinished&&(o.recordingRetryCount=0,o.flowStatus=d.LIVENESS))}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let i=o.cameraIds.indexOf(o.cameraId);o.cameraId=i===o.cameraIds.length-1?o.cameraIds[0]:o.cameraIds[i+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let i=s("capture-error",{type:"ID"}),t=s("id-capture",{id:"idFront"}),h=s("id-back-capture",{id:"idBack"}),a=s("how-to-info",{idSide:this.front?"front":"back"});return this.showHowTo?a:this.showInvalid||this.showTimeout?i:this.front?t:h}};n.style="";export{n as id_double_side}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as n}from"./p-aacd7024.js";import{A as s,a as o,b as a,B as r,F as l,s as c,c as M,S as h,V as u,C as f,M as d,d as g,I as N,e as D,f as I,E as y,g as m,H as z,h as w,i as j,j as A,k as p,l as x,m as T,L as v,n as U,o as b,O as L,p as E,P as O,q as k}from"./p-c8a04b87.js";const C=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementAcceptance=i(this,"agreementAcceptance",7),this.agreementType=void 0,this.htmlContent=void 0,this.buttonEnabled=void 0,this.apiCalls=new s,this.buttonEnabled=!0}async componentDidLoad(){try{this.htmlContent=await this.apiCalls.GetAgreement(this.agreementType)}catch(t){this.apiErrorEvent.emit(t)}}async buttonClick(t){this.buttonEnabled=!1,this.agreementAcceptance.emit({agreementType:this.agreementType,result:t})}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"scroll",innerHTML:this.htmlContent}),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("div",{class:"d-flex two-buttons"},e("button",{class:"normal-button red-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!1)},o.ButtonNo),e("button",{class:"normal-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!0)},o.ButtonYes)),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.htmlContent?t:e("div",null)}};C.style="";const S=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementsChecked=void 0,this.termsChecked=void 0,this.openAgreements=void 0,this.openTerms=void 0,this.baseComponent=new r(l.Agreements),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.agreementsChecked=!1,this.termsChecked=!1}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.openAgreements=!1,this.openTerms=!1}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.agreementsChecked&&this.termsChecked&&(c.flowStatus=M.PHONE)}agreementAcceptanceEmitted(t){"agreement"==t.detail.agreementType&&(this.agreementsChecked=t.detail.result,this.openAgreements=!1),"terms"==t.detail.agreementType&&(this.termsChecked=t.detail.result,this.openTerms=!1)}agreementsClicked(){this.openAgreements=!0}termsClicked(){this.openTerms=!0}render(){let t=e("agreement-check",{agreementType:"agreement"}),i=e("agreement-check",{agreementType:"terms"}),n=e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},a.Title),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.agreementsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.agreementsChecked}),a.Agreement)),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.termsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.termsChecked}),a.Terms))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},a.Button),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.openAgreements?t:this.openTerms?i:n}};S.style="";const Q=class{constructor(e){t(this,e),this.eventVideoStarted=i(this,"videoStarted",7),this.eventCloseCamera=i(this,"closeCamera",7),this.errorCameraEvent=i(this,"errorCamera",7),this.eventTakePhoto=i(this,"takePhoto",7),this.eventRecordingSelfieReady=i(this,"recordingSelfieCapture",7),this.eventRecordingIdReady=i(this,"recordingIdCapture",7),this.eventTimeElapsed=i(this,"timeElapsed",7),this.eventChangeTitle=i(this,"changeTitle",7),this.verificationFinished=i(this,"verificationFinished",7),this.callbackErrors=(t,i)=>{i?(this.errorCameraEvent.emit(t),this.eventCloseCamera.emit()):this.errorCameraEvent.emit(t)},this.callbackAutoCapturing=()=>{this.eventTakePhoto.emit()},this.callbackSelfieRecordingReady=t=>{this.eventRecordingSelfieReady.emit(t)},this.callbackIdRecordingReady=t=>{this.eventRecordingIdReady.emit(t)},this.callbackTimeElapsed=()=>{this.eventTimeElapsed.emit()},this.callbackChangeTitle=t=>{this.eventChangeTitle.emit(t)},this.callbackVideoStarted=()=>{this.eventVideoStarted.emit(this.component.getBoundingClientRect())},this.callbackVerificationFinished=()=>{this.verificationFinished.emit()},this.modelPath=void 0,this.probabilityThreshold=void 0,this.captureMode=void 0}componentDidLoad(){this.startStream()}render(){let t="cameraVideo",i="cameraCanvas";return c.device.isDesktop&&(t="cameraVideoSelfieDesk",i="cameraCanvasSelfieDesk"),"selfie"==this.captureMode&&(t="cameraVideoSelfie",i="cameraCanvasSelfie"),e("div",{class:"camera"},e("video",{id:"video",loop:!0,autoplay:!0,playsinline:!0,muted:!0,class:t,ref:t=>this.cameraVideo=t}),e("canvas",{id:"output",class:i,ref:t=>this.cameraCanvas=t}))}startStream(){const t=h.getInstance("tilt"==this.captureMode?u.Tilt:u.Full);t.updateHtmlElements(this.cameraVideo,this.cameraCanvas,this.component),"selfie"==this.captureMode?(t.setFaceDetection(!0),t.setCallbackRecordingReady(this.callbackSelfieRecordingReady)):(t.setIdDetection(!0),t.setCallbackRecordingReady(this.callbackIdRecordingReady)),t.setCallbackErrors(this.callbackErrors),t.setCallbackAutoCapturing(this.callbackAutoCapturing),t.setCallbackChangeTitle(this.callbackChangeTitle),t.setCallbackVideoStarted(this.callbackVideoStarted),t.setCallbackTimeElapsed(this.callbackTimeElapsed),t.setVerificationFinished(this.callbackVerificationFinished)}get component(){return n(this)}};Q.style=".camera{width:100%;height:100%;color:white;display:flex;align-items:center;justify-content:center;position:relative}.cameraCanvas,.cameraCanvasSelfie,.cameraCanvasSelfieDesk{z-index:3;max-width:100%;max-height:100%;border-radius:10px}.cameraCanvasSelfie,.cameraCanvasSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraVideo,.cameraVideoSelfie,.cameraVideoSelfieDesk{z-index:2;position:absolute;max-width:100%;max-height:100%;border-radius:10px}.cameraVideoSelfie,.cameraVideoSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraMobile{position:fixed;top:0;left:0;background:black}";const Y=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.description=void 0,this.buttonDisabled=void 0,this.demoVideo=void 0,this.baseComponent=new r(l.CameraError),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){this.buttonDisabled=!1,this.title=f.Title,this.description=f.Description,this.buttonText=f.Button}async componentDidLoad(){await this.baseComponent.initialize(),c.device.mobileOS!=d.iOS?(this.demoVideo.src=f.HowToLink,this.demoVideo.loop=!0,this.demoVideo.play()):"true"===sessionStorage.getItem(g.RefreshDoneKey)&&(sessionStorage.setItem(g.RefreshDoneKey,"false"),c.flowStatus=M.LANDING)}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.buttonDisabled=!0,c.device.mobileOS==d.iOS?(sessionStorage.setItem(g.RefreshDoneKey,"true"),window.location.reload()):c.flowStatus=M.LANDING}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.title),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.description)),e("div",{hidden:c.device.mobileOS==d.iOS},e("video",{id:"howtoPermissions",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:this.buttonDisabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},f.FooterText)))))}};Y.style="";const F=class{constructor(e){t(this,e),this.eventCaptureErrorDone=i(this,"captureErrorDone",7),this.type=void 0,this.buttonEnabled=void 0,this.buttonText=void 0}async componentWillLoad(){this.buttonEnabled=!1,"ID"==this.type&&(this.titleR1=N.ErrorTitleR1,this.titleR2=N.ErrorTitleR2,this.descriptionR1=N.ErrorR1,this.descriptionR2=N.ErrorR2),"LIVENESS"==this.type&&(this.titleR1=D.ErrorTitleR1,this.titleR2=D.ErrorTitleR2,this.descriptionR1=D.ErrorR1,this.descriptionR2=D.ErrorR2)}async componentDidLoad(){for(let t=5;t>=1;t--)this.buttonText=t.toString(),await I(1e3);this.buttonText=N.Button,this.buttonEnabled=!0}buttonClick(){this.buttonEnabled=!1,this.eventCaptureErrorDone.emit()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.titleR1),e("h1",{class:"color-red"},this.titleR2),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR1),e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR2)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText)))))}};F.style="";const Z=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7)}async componentDidLoad(){y.flowCompleted()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},m.Title),e("p",{class:"main-text font-size-18 mt-8 text-center"},m.Description)),e("div",{class:"buletin-container"},e("div",{class:"container-coin"},e("div",{class:"coin-scale"},e("div",{class:"coin-flip"},e("img",{class:"w-40 coin",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iODQiIHZpZXdCb3g9IjAgMCA4MyA4NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik00MS41IDgzLjcwNjJDMzAuNDE0NyA4My43MDYyIDE5Ljk5MjkgNzkuMzgwNCAxMi4xNTQ2IDcxLjUyNUM0LjMxNjQxIDYzLjY2OTcgMCA1My4yMjUxIDAgNDIuMTE1NkMwIDMxLjAwNjEgNC4zMTY0MSAyMC41NjE1IDEyLjE1NDYgMTIuNzA2MUMxOS45OTI5IDQuODUwNzUgMzAuNDE0NyAwLjUyNDkwMiA0MS41IDAuNTI0OTAyQzUyLjU4NTMgMC41MjQ5MDIgNjMuMDA3MSA0Ljg1MDc1IDcwLjg0NTMgMTIuNzA2MUM3OC42ODM2IDIwLjU2MTUgODMgMzEuMDA2MSA4MyA0Mi4xMTU2QzgzIDUzLjIyNTEgNzguNjgzNiA2My42Njk3IDcwLjg0NTMgNzEuNTI1QzYzLjAwNzEgNzkuMzgwNCA1Mi41ODUzIDgzLjcwNjIgNDEuNSA4My43MDYyWk00MS41IDQuNzYzMTNDMjAuOTQ4MyA0Ljc2MzEzIDQuMjI4OTkgMjEuNTE4OSA0LjIyODk5IDQyLjExNTZDNC4yMjg5OSA2Mi43MTIyIDIwLjk0ODMgNzkuNDY4IDQxLjUgNzkuNDY4QzYyLjA1MTcgNzkuNDY4IDc4Ljc3MSA2Mi43MTIyIDc4Ljc3MSA0Mi4xMTU2Qzc4Ljc3MSAyMS41MTg5IDYyLjA1MTcgNC43NjMxMyA0MS41IDQuNzYzMTNaIiBmaWxsPSIjNURDMUFDIi8+DQo8cGF0aCBkPSJNMzcuNDY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EwzOC45NzU3IDQ0LjQ5MDNDMzguMTQ5OCA0NS4zMTc5IDM2LjgxMDQgNDUuMzE3OSAzNS45ODQ2IDQ0LjQ5MDNMMjkuMjAzMiAzNy42OTQxQzI4LjIzMzggMzYuNzIyNSAyNi45NDQzIDM2LjE4NzUgMjUuNTczNyAzNi4xODc1TDI1LjU3NTMgMzYuMTg5WiIgZmlsbD0iIzVEQzFBQyIvPg0KPC9zdmc+DQo="}))))),e("div",{class:"text-center"},e("p",{class:"font-weight-900 font-size-3 color-black-2 text-center mt-20"},m.Message),e("p",null,c.requestId)),e("div",{class:"btn-buletin"},e("p",{class:"main-text font-size-18 text-center mb-0"},m.FooterText))))}};Z.style="h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";const B=class{constructor(i){t(this,i),this.message=void 0,this.errorTitle=void 0}componentDidLoad(){}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"text-center"},e("h1",null,this.errorTitle)),e("div",{class:"text-center"},e("p",null,c.requestId)),e("div",null,e("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.message))))}};B.style="";const R=class{constructor(e){t(this,e),this.eventHowToInfoDone=i(this,"howToInfoDone",7),this.apiErrorEvent=i(this,"apiError",7),this.idSide=void 0,this.topTitle=void 0,this.subTitle=void 0,this.imagePath=void 0,this.buttonText=void 0,this.buttonEnabled=void 0}async componentDidLoad(){await this.baseComponent.initialize()}async disconnectedCallback(){await this.baseComponent.finalize()}buttonClick(){this.buttonEnabled=!1,this.eventHowToInfoDone.emit()}componentWillLoad(){this.subTitle="",this.buttonEnabled=!0,c.flowStatus==M.ID&&(this.topTitle=z.IdTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_id.png",this.buttonText=z.IdButton,"front"==this.idSide&&(this.baseComponent=new r(l.CiFrontHowTo),this.subTitle=z.IdSubTitileFace),"back"==this.idSide&&(this.baseComponent=new r(l.CiBackHowTo),this.subTitle=z.IdSubTitileBack)),c.flowStatus==M.LIVENESS&&(this.baseComponent=new r(l.SelfieHowTo),this.topTitle=z.SelfieTitile,this.subTitle=z.SelfieSubTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_selfie.png",this.buttonText=z.SelfieButton),this.baseComponent.setEventEmitter(this.apiErrorEvent)}render(){let t=""!=this.subTitle?e("p",{class:"font-size-2"},this.subTitle):null;return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:this.imagePath})),e("div",{class:"text-center"},e("h1",null,this.topTitle),t),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},z.FooterText)))))}};R.style="";class W{async GetCameras(t){var i=[];const e=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind));for(const n of e){const e=this.GetConstraints(n.deviceId,t),s=await navigator.mediaDevices.getUserMedia(e);s.getVideoTracks().forEach((e=>{var s,o;if(t.browser===w.Firefox){const t=e.getSettings();let o=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";o="e"===o?"environment":o,o="u"===o?"user":o,i.push({deviceId:n.deviceId,name:n.label,height:t.height,width:t.width,frameRate:Number(t.frameRate.max),focusModes:null!==(s=t.focusMode)&&void 0!==s?s:[],torch:!1,recommended:!1,facingMode:o})}else{const t=e.getCapabilities();let s=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";s="e"===s?"environment":s,s="u"===s?"user":s,i.push({deviceId:n.deviceId,name:n.label,height:t.height.max,width:t.width.max,frameRate:Number(t.frameRate.max),focusModes:null!==(o=t.focusMode)&&void 0!==o?o:[],torch:t.torch,recommended:!1,facingMode:s})}})),s.getTracks().forEach((t=>{t.stop()}))}if(i.length>0){var n=(i=i.sort(((t,i)=>i.frameRate-t.frameRate))).find((t=>t.focusModes.length>1&&"environment"===t.facingMode));if(n)i[i.indexOf(n)].recommended=!0;else{var s=i.find((t=>"environment"===t.facingMode));s&&(i[i.indexOf(s)].recommended=!0)}}return i}GetConstraints(t,i,e=!1){let n={audio:!1},s={frameRate:30};return t&&(s.deviceId={exact:t}),i.isDesktop?s.width={ideal:1280}:(s.facingMode="user",e?i.isAndroidDevice?(s.width={ideal:1280},s.height={ideal:720}):(s.width={ideal:1920},s.height={ideal:1080}):(s.facingMode="environment",s.width={ideal:1280},s.aspectRatio=1)),n.video=s,n}GetRecommendedCamera(t){if(t&&t.length>0){var i=t.find((t=>t.recommended));if(i)return i}return null}static async InitCameras(t){try{let e=new W,n=(await e.GetCameras(t)).filter((t=>"environment"==t.facingMode));var i=e.GetRecommendedCamera(n);return c.cameraIds=n.map((t=>t.deviceId)),c.cameraId=null==i?void 0:i.deviceId,!0}catch(t){if(console.log(t),t.message.includes("Permission denied")||t.name.includes("NotAllowedError"))return!1;throw t}}}var P;!function(t){t[t.Straight=0]="Straight",t[t.Tilted=1]="Tilted",t[t.Rotate=2]="Rotate",t[t.BackStraight=3]="BackStraight",t[t.BackTilted=4]="BackTilted"}(P||(P={}));const G=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdBackCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiBackHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiBackHoldAnimation,j.Initialized),this.titleMesage=N.TtileRotate,this.demoVideo.src=N.IDPoseDemoMapping[P.Rotate],this.demoVideo.play(),await I(N.VideoLenght),this.titleMesage=N.TitleBack,this.demoVideo.src=N.IDPoseDemoMapping[P.BackStraight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiBackHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiBackCapture,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiBackCapture,j.Finalized)}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoBack",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};G.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const V=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiFrontHoldAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Straight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiFrontHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiFrontCapture,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiFrontCapture,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};V.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const J=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.IDPoseMapping[1],navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiFrontTiltAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Tilted],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiFrontTiltAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiTilt,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiTilt,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"tilt"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};let H;J.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const X=new Uint8Array(16);function _(){if(!H&&(H="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!H))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return H(X)}const K=[];for(let t=0;t<256;++t)K.push((t+256).toString(16).slice(1));const q={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $(t,i,e){if(q.randomUUID&&!i&&!t)return q.randomUUID();const n=(t=t||{}).random||(t.rng||_)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,i){e=e||0;for(let t=0;t<16;++t)i[e+t]=n[t];return i}return function(t,i=0){return(K[t[i+0]]+K[t[i+1]]+K[t[i+2]]+K[t[i+3]]+"-"+K[t[i+4]]+K[t[i+5]]+"-"+K[t[i+6]]+K[t[i+7]]+"-"+K[t[i+8]]+K[t[i+9]]+"-"+K[t[i+10]]+K[t[i+11]]+K[t[i+12]]+K[t[i+13]]+K[t[i+14]]+K[t[i+15]]).toLowerCase()}(n)}const tt=class{async onTokenChange(t,i){c.debug&&console.log("Token change called with value: "+t),""!=t?c.token!==t&&(c.token=t,await this.initializeRequest()):t=c.token}async onOrderIdChange(t,i){c.debug&&console.log("OrderId change called with value: "+t),c.requestId!==t&&""!=t&&(c.requestId=t,c.initialised=!1,await this.initializeRequest(),c.flowStatus!=M.LANDING&&c.flowStatus!=M.NONE&&(c.flowStatus=M.LANDING))}onApiUrlChange(t,i){""==c.apiBaseUrl?c.apiBaseUrl!==t&&(c.apiBaseUrl=t):t=c.apiBaseUrl}onEnvChange(t,i){""==c.environment?c.environment!==t&&(c.environment=t):t=c.environment}async onRedirectIdChange(t,i){c.debug&&console.log("RedirectId change called with value: "+t),""==c.redirectId?(c.redirectId!==t&&(c.redirectId=t),await this.initializeRequest()):t=c.redirectId}async onPhoneChange(t,i){""==c.phoneNumber?c.phoneNumber!==t&&(c.phoneNumber=t):t=c.phoneNumber}agreementAcceptanceEmitted(t){try{this.baseComponent.apiCall.GenerateAgreement(t.detail.agreementType)}catch(t){this.apiErrorEmitter(t,"Agreement Acceptance")}}async apiErrorEmitter(t,i){var e,n,s,o,a,r;t.detail?(this.errorTitle=null!==(n=null!==(e=t.detail.message)&&void 0!==e?e:t.detail.status)&&void 0!==n?n:"",this.errorMessage=null!==(o=null!==(s=t.detail.stack)&&void 0!==s?s:t.detail.statusText)&&void 0!==o?o:""):t.message?this.errorTitle=t.message:t.status?(this.errorTitle=null!==(a=t.status)&&void 0!==a?a:"",this.errorMessage=null!==(r=t.statusText)&&void 0!==r?r:""):this.errorTitle=t;let l={message:this.errorTitle,stack:this.errorMessage,zone:i};try{await this.baseComponent.apiCall.AddLog(l,x(this.order_id,this.redirect_id,this.token))}catch(t){}y.flowError(this.errorTitle),c.flowStatus=M.ERROREND}constructor(i){t(this,i),this.logInit={},this.flowStatusToSet=M.NONE,this.token=void 0,this.order_id=void 0,this.api_url=void 0,this.env=void 0,this.redirect_id=void 0,this.phone_number=void 0,this.idSide="",this.errorMessage=void 0,this.errorTitle=void 0}async componentWillLoad(){y.init(window),y.flowEvent(l.ComponentLoaded,j.Initialized),c.apiBaseUrl=this.api_url,this.env&&""!=this.env&&(c.environment=this.env),this.baseComponent=new r(l.ComponentLoaded),this.baseComponent.setErrorCallback(this.apiErrorEmitter),c.debug&&(this.logInit=x(this.order_id,this.redirect_id,this.token)),this.token?(c.debug&&console.log("Store Token set with property value: "+this.token),c.token=this.token):""==c.token&&(c.token=sessionStorage.getItem(g.TokenKey),this.token=c.token,c.debug&&console.log("Store Token set with session value: "+c.token)),this.redirect_id&&(c.redirectId=this.redirect_id),this.phone_number&&""!=this.phone_number&&(c.phoneNumber=this.phone_number);var t=sessionStorage.getItem(g.InitialisedKey);t&&"true"==t.toLowerCase()&&(c.initialised=!0);var i=sessionStorage.getItem(g.HasIdBackKey);i&&"true"==i.toLowerCase()&&(c.hasIdBack=!0);var e=sessionStorage.getItem(g.AgreementValidationKey);e&&"true"==e.toLowerCase()&&(c.agreementsValidation=!0);var n=sessionStorage.getItem(g.PhoneValidationKey);n&&"true"==n.toLowerCase()&&(c.phoneValidation=!0);const s=sessionStorage.getItem(g.RequestIdKey);if(this.order_id&&""!=this.order_id?(c.requestId=this.order_id,c.debug&&console.log("Current RequestId has value: "+this.order_id),s&&""!=s&&s!=this.order_id&&(c.debug&&console.log("Session RequestId: "+s+" has different value than property one: "+this.order_id),this.flowStatusToSet=M.LANDING,c.initialised=!1)):s&&(c.debug&&console.log("Current RequestId has no value, setting with session value: "+s),c.requestId=s,this.order_id=s),this.flowStatusToSet==M.NONE){var o=sessionStorage.getItem(g.FlowStatusKey);this.flowStatusToSet=o?M[o]:M.LANDING}}async componentDidLoad(){await this.initializeRequest(),c.flowStatus=this.flowStatusToSet}componentWillRender(){""==this.idSide&&(this.idSide=c.hasIdBack?"front":"")}async initializeRequest(){if(!c.initialised)if("DEMO"!=c.environment)if(c.device.browser!=w.Mi){try{c.debug&&this.baseComponent.apiCall.AddLog({phase:"debug mode"},this.logInit)}catch(t){}try{c.device.isMobile||""!=c.redirectId||(c.redirectId=$(),this.redirect_id=c.redirectId),""==c.token||""==c.requestId&&""==c.redirectId||(c.initialised=await this.baseComponent.apiCall.AddIdentificationRequest(c.device,"3.6.10"),this.order_id&&""!=this.order_id||(this.order_id=c.requestId))}catch(t){this.apiErrorEmitter(t,"Request Initialisation RequestId:"+c.requestId+" RedirectId:"+c.redirectId)}T.getInstance()}else this.apiErrorEmitter("Mi Browser nu este acceptat. Va rugam utilizati Chrome.","Request Initialisation RequestId:"+c.requestId+" RedirectId:"+c.redirectId);else c.initialised=!0}disconnectedCallback(){y.flowEvent(l.ComponentLoaded,j.Finalized)}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0ic3Bpbm5lckxvYWRlclJlZiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBvdmVyZmxvdz0idmlzaWJsZSIgZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSIjMDMwMzAzIiBjbGFzcz0ic2luZ2xlLWxvYWRlciI+DQogIDxkZWZzPg0KICAgIDxjaXJjbGUgaWQ9InNwaW5uZXIiIHI9IjQiIGN4PSI1MCIgY3k9IjUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0zMCkiLz4gICAgDQogIDwvZGVmcz4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIi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t=e("landing-validation",null)):c.flowStatus!=M.NONE&&(t=e("mobile-redirect",null)),c.flowStatus==M.AGREEMENT&&(t=e("agreement-info",null)),c.flowStatus==M.PHONE&&(t=e("sms-code-validation",null)),c.flowStatus==M.CODE&&(t=e("sms-code-validation",null)),c.flowStatus==M.CODEERROR&&(t=e("sms-code-validation",null)),c.flowStatus==M.ID&&(t=e("process-id",null)),c.flowStatus==M.LIVENESS&&(t=e("user-liveness",{id:"camera"})),c.flowStatus==M.COMPLETE&&(t=e("end-redirect",null)),c.flowStatus==M.ERROREND&&(t=e("error-end",{errorTitle:this.errorTitle,message:this.errorMessage})),c.flowStatus==M.CAMERAERROR&&(t=e("camera-error",null)),e("div",null,t)}static get watchers(){return{token:["onTokenChange"],order_id:["onOrderIdChange"],api_url:["onApiUrlChange"],env:["onEnvChange"],redirect_id:["onRedirectIdChange"],phone_number:["onPhoneChange"]}}};tt.style="@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.container-video{height:99vh;text-align:center;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.link-text{margin-top:1vh;text-decoration:underline}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.show-bottom{bottom:-2vh}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.mt-5{margin-top:5vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{text-align:center}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-size-25{font-size:2.5vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:4;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}}";const it=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.warningText=void 0,this.buttonDisabled=void 0,this.baseComponent=new r(l.Landing),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){y.flowStarted(),this.baseComponent.apiCall=new s,this.buttonDisabled=!1,await this.initRequest()}async componentDidLoad(){"DEMO"!==c.environment&&await this.baseComponent.initialize()}async initRequest(){this.warningText=c.hasIdBack?v.WarningMd:v.Warning}async startFlow(){if(c.initialised){if(this.buttonDisabled=!0,"DEMO"===c.environment)return void(c.flowStatus=M.COMPLETE);await W.InitCameras(c.device)?c.flowStatus=c.agreementsValidation?M.AGREEMENT:c.phoneValidation?M.PHONE:M.ID:(c.device.mobileOS==d.iOS&&sessionStorage.setItem(g.RefreshDoneKey,"false"),c.flowStatus=M.CAMERAERROR)}}async disconnectedCallback(){await this.baseComponent.finalize()}async leaveFlow(){if(!this.buttonDisabled){c.initialised=!1;try{await this.baseComponent.apiCall.AbortRequest(),y.flowAborted()}catch(t){y.flowAborted(),this.apiErrorEvent.emit(t)}}}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},v.Title),e("div",{class:"d-flex space-between align-center"},e("p",{class:"main-text font-size-2"},v.Description),e("div",{class:"img-info"},e("div",{class:"i-effect"}),e("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDY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-container"},e("h3",{class:"font-size-2 mb-1 text-center"},this.warningText)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!c.initialised||this.buttonDisabled,onClick:()=>this.startFlow()},v.Button),e("p",{class:"main-text font-size-2 link-text mb-0",onClick:()=>this.leaveFlow()},v.ButtonLeave),e("p",{class:"main-text font-size-18 text-right mb-0"},v.FooterText)))))}};it.style="";var et=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then};let nt;const st=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];var ot=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},at=function(t){return st[t]},rt=function(t){let i=0;for(;0!==t;)i++,t>>>=1;return i},lt=function(){return void 0!==nt},ct=function(t){return nt(t)},Mt=U((function(t,i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2},i.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}}));function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(t){const i=Math.floor(t/8);return 1==(this.buffer[i]>>>7-t%8&1)},put:function(t,i){for(let e=0;e<i;e++)this.putBit(1==(t>>>i-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var ut=ht;function ft(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}ft.prototype.set=function(t,i,e,n){const s=t*this.size+i;this.data[s]=e,n&&(this.reservedBit[s]=!0)},ft.prototype.get=function(t,i){return this.data[t*this.size+i]},ft.prototype.xor=function(t,i,e){this.data[t*this.size+i]^=e},ft.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]};var dt=ft,gt=U((function(t,i){const e=ot;i.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,n=e(t),s=145===n?26:2*Math.ceil((n-13)/(2*i-2)),o=[n-7];for(let t=1;t<i-1;t++)o[t]=o[t-1]-s;return o.push(6),o.reverse()},i.getPositions=function(t){const e=[],n=i.getRowColCoords(t),s=n.length;for(let t=0;t<s;t++)for(let i=0;i<s;i++)0===t&&0===i||0===t&&i===s-1||t===s-1&&0===i||e.push([n[t],n[i]]);return e}}));const Nt=ot;var Dt=U((function(t,i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,e,n){switch(t){case i.Patterns.PATTERN000:return(e+n)%2==0;case i.Patterns.PATTERN001:return e%2==0;case i.Patterns.PATTERN010:return n%3==0;case i.Patterns.PATTERN011:return(e+n)%3==0;case i.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case i.Patterns.PATTERN101:return e*n%2+e*n%3==0;case i.Patterns.PATTERN110:return(e*n%2+e*n%3)%2==0;case i.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}i.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},i.from=function(t){return i.isValid(t)?parseInt(t,10):void 0},i.getPenaltyN1=function(t){const i=t.size;let e=0,n=0,s=0,o=null,a=null;for(let r=0;r<i;r++){n=s=0,o=a=null;for(let l=0;l<i;l++){let i=t.get(r,l);i===o?n++:(n>=5&&(e+=n-5+3),o=i,n=1),i=t.get(l,r),i===a?s++:(s>=5&&(e+=s-5+3),a=i,s=1)}n>=5&&(e+=n-5+3),s>=5&&(e+=s-5+3)}return e},i.getPenaltyN2=function(t){const i=t.size;let e=0;for(let n=0;n<i-1;n++)for(let s=0;s<i-1;s++){const i=t.get(n,s)+t.get(n,s+1)+t.get(n+1,s)+t.get(n+1,s+1);4!==i&&0!==i||e++}return 3*e},i.getPenaltyN3=function(t){const i=t.size;let e=0,n=0,s=0;for(let o=0;o<i;o++){n=s=0;for(let a=0;a<i;a++)n=n<<1&2047|t.get(o,a),a>=10&&(1488===n||93===n)&&e++,s=s<<1&2047|t.get(a,o),a>=10&&(1488===s||93===s)&&e++}return 40*e},i.getPenaltyN4=function(t){let i=0;const e=t.data.length;for(let n=0;n<e;n++)i+=t.data[n];return 10*Math.abs(Math.ceil(100*i/e/5)-10)},i.applyMask=function(t,i){const n=i.size;for(let s=0;s<n;s++)for(let o=0;o<n;o++)i.isReserved(o,s)||i.xor(o,s,e(t,o,s))},i.getBestMask=function(t,e){const n=Object.keys(i.Patterns).length;let s=0,o=1/0;for(let a=0;a<n;a++){e(a),i.applyMask(a,t);const n=i.getPenaltyN1(t)+i.getPenaltyN2(t)+i.getPenaltyN3(t)+i.getPenaltyN4(t);i.applyMask(a,t),n<o&&(o=n,s=a)}return s}}));const It=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],yt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];var mt=function(t,i){switch(i){case Mt.L:return It[4*(t-1)+0];case Mt.M:return It[4*(t-1)+1];case Mt.Q:return It[4*(t-1)+2];case Mt.H:return It[4*(t-1)+3];default:return}},zt=function(t,i){switch(i){case Mt.L:return yt[4*(t-1)+0];case Mt.M:return yt[4*(t-1)+1];case Mt.Q:return yt[4*(t-1)+2];case Mt.H:return yt[4*(t-1)+3];default:return}};const wt=new Uint8Array(512),jt=new Uint8Array(256);!function(){let t=1;for(let i=0;i<255;i++)wt[i]=t,jt[t]=i,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)wt[t]=wt[t-255]}();var At=function(t,i){return 0===t||0===i?0:wt[jt[t]+jt[i]]},pt=U((function(t,i){i.mul=function(t,i){const e=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let s=0;s<i.length;s++)e[n+s]^=At(t[n],i[s]);return e},i.mod=function(t,i){let e=new Uint8Array(t);for(;e.length-i.length>=0;){const t=e[0];for(let n=0;n<i.length;n++)e[n]^=At(i[n],t);let n=0;for(;n<e.length&&0===e[n];)n++;e=e.slice(n)}return e},i.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let s=0;s<t;s++)e=i.mul(e,new Uint8Array([1,(n=s,wt[n])]));var n;return e}}));function xt(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}xt.prototype.initialize=function(t){this.degree=t,this.genPoly=pt.generateECPolynomial(this.degree)},xt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const e=pt.mod(i,this.genPoly),n=this.degree-e.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(e,n),t}return e};var Tt=xt,vt=function(t){return!isNaN(t)&&t>=1&&t<=40};const Ut="[0-9]+";let bt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";bt=bt.replace(/u/g,"\\u");const Lt="(?:(?![A-Z0-9 $%*+\\-./:]|"+bt+")(?:.|[\r\n]))+";var Et=new RegExp(bt,"g"),Ot=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),kt=new RegExp(Lt,"g"),Ct=new RegExp(Ut,"g"),St=new RegExp("[A-Z $%*+\\-./:]+","g");const Qt=new RegExp("^"+bt+"$"),Yt=new RegExp("^"+Ut+"$"),Ft=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");var Zt={KANJI:Et,BYTE_KANJI:Ot,BYTE:kt,NUMERIC:Ct,ALPHANUMERIC:St,testKanji:function(t){return Qt.test(t)},testNumeric:function(t){return Yt.test(t)},testAlphanumeric:function(t){return Ft.test(t)}},Bt=U((function(t,i){i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(t,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!vt(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},i.getBestModeForData=function(t){return Zt.testNumeric(t)?i.NUMERIC:Zt.testAlphanumeric(t)?i.ALPHANUMERIC:Zt.testKanji(t)?i.KANJI:i.BYTE},i.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},i.isValid=function(t){return t&&t.bit&&t.ccBits},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}})),Rt=U((function(t,i){const e=rt(7973);function n(t,i){return Bt.getCharCountIndicator(t,i)+4}function s(t,i){let e=0;return t.forEach((function(t){const s=n(t.mode,i);e+=s+t.getBitsLength()})),e}i.from=function(t,i){return vt(t)?parseInt(t,10):i},i.getCapacity=function(t,i,e){if(!vt(t))throw new Error("Invalid QR Code version");void 0===e&&(e=Bt.BYTE);const s=8*(at(t)-zt(t,i));if(e===Bt.MIXED)return s;const o=s-n(e,t);switch(e){case Bt.NUMERIC:return Math.floor(o/10*3);case Bt.ALPHANUMERIC:return Math.floor(o/11*2);case Bt.KANJI:return Math.floor(o/13);default:return Math.floor(o/8)}},i.getBestVersionForData=function(t,e){let n;const o=Mt.from(e,Mt.M);if(Array.isArray(t)){if(t.length>1)return function(t,e){for(let n=1;n<=40;n++)if(s(t,n)<=i.getCapacity(n,e,Bt.MIXED))return n}(t,o);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,e,n){for(let s=1;s<=40;s++)if(e<=i.getCapacity(s,n,t))return s}(n.mode,n.getLength(),o)},i.getEncodedBits=function(t){if(!vt(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;rt(i)-e>=0;)i^=7973<<rt(i)-e;return t<<12|i}}));const Wt=rt(1335);function Pt(t){this.mode=Bt.NUMERIC,this.data=t.toString()}Pt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},Pt.prototype.getLength=function(){return this.data.length},Pt.prototype.getBitsLength=function(){return Pt.getBitsLength(this.data.length)},Pt.prototype.write=function(t){let i,e,n;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),n=parseInt(e,10),t.put(n,10);const s=this.data.length-i;s>0&&(e=this.data.substr(i),n=parseInt(e,10),t.put(n,3*s+1))};var Gt=Pt;const Vt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Jt(t){this.mode=Bt.ALPHANUMERIC,this.data=t}Jt.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},Jt.prototype.getLength=function(){return this.data.length},Jt.prototype.getBitsLength=function(){return Jt.getBitsLength(this.data.length)},Jt.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let e=45*Vt.indexOf(this.data[i]);e+=Vt.indexOf(this.data[i+1]),t.put(e,11)}this.data.length%2&&t.put(Vt.indexOf(this.data[i]),6)};var Ht=Jt;function Xt(t){this.mode=Bt.BYTE,"string"==typeof t&&(t=function(t){for(var i=[],e=t.length,n=0;n<e;n++){var s=t.charCodeAt(n);if(s>=55296&&s<=56319&&e>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(s=1024*(s-55296)+o-56320+65536,n+=1)}s<128?i.push(s):s<2048?(i.push(s>>6|192),i.push(63&s|128)):s<55296||s>=57344&&s<65536?(i.push(s>>12|224),i.push(s>>6&63|128),i.push(63&s|128)):s>=65536&&s<=1114111?(i.push(s>>18|240),i.push(s>>12&63|128),i.push(s>>6&63|128),i.push(63&s|128)):i.push(239,191,189)}return new Uint8Array(i).buffer}(t)),this.data=new Uint8Array(t)}Xt.getBitsLength=function(t){return 8*t},Xt.prototype.getLength=function(){return this.data.length},Xt.prototype.getBitsLength=function(){return Xt.getBitsLength(this.data.length)},Xt.prototype.write=function(t){for(let i=0,e=this.data.length;i<e;i++)t.put(this.data[i],8)};var _t=Xt;function Kt(t){this.mode=Bt.KANJI,this.data=t}Kt.getBitsLength=function(t){return 13*t},Kt.prototype.getLength=function(){return this.data.length},Kt.prototype.getBitsLength=function(){return Kt.getBitsLength(this.data.length)},Kt.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let e=ct(this.data[i]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13)}};var qt=Kt,$t=U((function(t){var i={single_source_shortest_paths:function(t,e,n){var s={},o={};o[e]=0;var a,r,l,c,M,h,u=i.PriorityQueue.make();for(u.push(e,0);!u.empty();)for(l in c=(a=u.pop()).cost,M=t[r=a.value]||{})M.hasOwnProperty(l)&&(h=c+M[l],(void 0===o[l]||o[l]>h)&&(o[l]=h,u.push(l,h),s[l]=r));if(void 0!==n&&void 0===o[n]){var f=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(f)}return s},extract_shortest_path_from_predecessor_list:function(t,i){for(var e=[],n=i;n;)e.push(n),n=t[n];return e.reverse(),e},find_path:function(t,e,n){var s=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,s={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(s[e]=n[e]);return s.queue=[],s.sorter=t.sorter||n.default_sorter,s},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){this.queue.push({value:t,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i})),ti=U((function(t,i){function e(t){return unescape(encodeURIComponent(t)).length}function n(t,i,e){const n=[];let s;for(;null!==(s=t.exec(e));)n.push({data:s[0],index:s.index,mode:i,length:s[0].length});return n}function s(t){const i=n(Zt.NUMERIC,Bt.NUMERIC,t),e=n(Zt.ALPHANUMERIC,Bt.ALPHANUMERIC,t);let s,o;return lt()?(s=n(Zt.BYTE,Bt.BYTE,t),o=n(Zt.KANJI,Bt.KANJI,t)):(s=n(Zt.BYTE_KANJI,Bt.BYTE,t),o=[]),i.concat(e,s,o).sort((function(t,i){return t.index-i.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function o(t,i){switch(i){case Bt.NUMERIC:return Gt.getBitsLength(t);case Bt.ALPHANUMERIC:return Ht.getBitsLength(t);case Bt.KANJI:return qt.getBitsLength(t);case Bt.BYTE:return _t.getBitsLength(t)}}function a(t,i){let e;const n=Bt.getBestModeForData(t);if(e=Bt.from(i,n),e!==Bt.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+Bt.toString(e)+".\n Suggested mode is: "+Bt.toString(n));switch(e!==Bt.KANJI||lt()||(e=Bt.BYTE),e){case Bt.NUMERIC:return new Gt(t);case Bt.ALPHANUMERIC:return new Ht(t);case Bt.KANJI:return new qt(t);case Bt.BYTE:return new _t(t)}}i.fromArray=function(t){return t.reduce((function(t,i){return"string"==typeof i?t.push(a(i,null)):i.data&&t.push(a(i.data,i.mode)),t}),[])},i.fromString=function(t,n){const a=function(t){const i=[];for(let n=0;n<t.length;n++){const s=t[n];switch(s.mode){case Bt.NUMERIC:i.push([s,{data:s.data,mode:Bt.ALPHANUMERIC,length:s.length},{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.ALPHANUMERIC:i.push([s,{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.KANJI:i.push([s,{data:s.data,mode:Bt.BYTE,length:e(s.data)}]);break;case Bt.BYTE:i.push([{data:s.data,mode:Bt.BYTE,length:e(s.data)}])}}return i}(s(t,lt())),r=function(t,i){const e={},n={start:{}};let s=["start"];for(let a=0;a<t.length;a++){const r=t[a],l=[];for(let t=0;t<r.length;t++){const c=r[t],M=""+a+t;l.push(M),e[M]={node:c,lastCount:0},n[M]={};for(let t=0;t<s.length;t++){const a=s[t];e[a]&&e[a].node.mode===c.mode?(n[a][M]=o(e[a].lastCount+c.length,c.mode)-o(e[a].lastCount,c.mode),e[a].lastCount+=c.length):(e[a]&&(e[a].lastCount=c.length),n[a][M]=o(c.length,c.mode)+4+Bt.getCharCountIndicator(c.mode,i))}}s=l}for(let t=0;t<s.length;t++)n[s[t]].end=0;return{map:n,table:e}}(a,n),l=$t.find_path(r.map,"start","end"),c=[];for(let t=1;t<l.length-1;t++)c.push(r.table[l[t]].node);return i.fromArray(c.reduce((function(t,i){const e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===i.mode?(t[t.length-1].data+=i.data,t):(t.push(i),t)}),[]))},i.rawSplit=function(t){return i.fromArray(s(t,lt()))}}));function ii(t,i,e){const n=t.size,s=function(t,i){const e=t.bit<<3|i;let n=e<<10;for(;rt(n)-Wt>=0;)n^=1335<<rt(n)-Wt;return 21522^(e<<10|n)}(i,e);let o,a;for(o=0;o<15;o++)a=1==(s>>o&1),t.set(o<6?o:o<8?o+1:n-15+o,8,a,!0),t.set(8,o<8?n-o-1:o<9?15-o-1+1:15-o-1,a,!0);t.set(n-8,8,1,!0)}function ei(t,i,e,n){let s;if(Array.isArray(t))s=ti.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=i;if(!n){const i=ti.rawSplit(t);n=Rt.getBestVersionForData(i,e)}s=ti.fromString(t,n||40)}}const o=Rt.getBestVersionForData(s,e);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<o)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+o+".\n")}else i=o;const a=function(t,i,e){const n=new ut;e.forEach((function(i){n.put(i.mode.bit,4),n.put(i.getLength(),Bt.getCharCountIndicator(i.mode,t)),i.write(n)}));const s=8*(at(t)-zt(t,i));for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);const o=(s-n.getLengthInBits())/8;for(let t=0;t<o;t++)n.put(t%2?17:236,8);return function(t,i,e){const n=at(i),s=n-zt(i,e),o=mt(i,e),a=o-n%o,r=Math.floor(n/o),l=Math.floor(s/o),c=l+1,M=r-l,h=new Tt(M);let u=0;const f=new Array(o),d=new Array(o);let g=0;const N=new Uint8Array(t.buffer);for(let t=0;t<o;t++){const i=t<a?l:c;f[t]=N.slice(u,u+i),d[t]=h.encode(f[t]),u+=i,g=Math.max(g,i)}const D=new Uint8Array(n);let I,y,m=0;for(I=0;I<g;I++)for(y=0;y<o;y++)I<f[y].length&&(D[m++]=f[y][I]);for(I=0;I<M;I++)for(y=0;y<o;y++)D[m++]=d[y][I];return D}(n,t,i)}(i,e,s),r=ot(i),l=new dt(r);return function(t,i){const e=t.size,n=function(t){const i=Nt(t);return[[0,0],[i-7,0],[0,i-7]]}(i);for(let i=0;i<n.length;i++){const s=n[i][0],o=n[i][1];for(let i=-1;i<=7;i++)if(!(s+i<=-1||e<=s+i))for(let n=-1;n<=7;n++)o+n<=-1||e<=o+n||t.set(s+i,o+n,i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4,!0)}}(l,i),function(t){const i=t.size;for(let e=8;e<i-8;e++){const i=e%2==0;t.set(e,6,i,!0),t.set(6,e,i,!0)}}(l),function(t,i){const e=gt.getPositions(i);for(let i=0;i<e.length;i++){const n=e[i][0],s=e[i][1];for(let i=-2;i<=2;i++)for(let e=-2;e<=2;e++)t.set(n+i,s+e,-2===i||2===i||-2===e||2===e||0===i&&0===e,!0)}}(l,i),ii(l,e,0),i>=7&&function(t,i){const e=t.size,n=Rt.getEncodedBits(i);let s,o,a;for(let i=0;i<18;i++)s=Math.floor(i/3),o=i%3+e-8-3,a=1==(n>>i&1),t.set(s,o,a,!0),t.set(o,s,a,!0)}(l,i),function(t,i){const e=t.size;let n=-1,s=e-1,o=7,a=0;for(let r=e-1;r>0;r-=2)for(6===r&&r--;;){for(let e=0;e<2;e++)if(!t.isReserved(s,r-e)){let n=!1;a<i.length&&(n=1==(i[a]>>>o&1)),t.set(s,r-e,n),o--,-1===o&&(a++,o=7)}if(s+=n,s<0||e<=s){s-=n,n=-n;break}}}(l,a),isNaN(n)&&(n=Dt.getBestMask(l,ii.bind(null,l,e))),Dt.applyMask(n,l),ii(l,e,n),{modules:l,version:i,errorCorrectionLevel:e,maskPattern:n,segments:s}}var ni=function(t,i){if(void 0===t||""===t)throw new Error("No input text");let e,n,s=Mt.M;return void 0!==i&&(s=Mt.from(i.errorCorrectionLevel,Mt.M),e=Rt.from(i.version),n=Dt.from(i.maskPattern),i.toSJISFunc&&function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');nt=t}(i.toSJISFunc)),ei(t,e,s,n)},si=U((function(t,i){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+t);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map((function(t){return[t,t]})))),6===i.length&&i.push("F","F");const e=parseInt(i.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+i.slice(0,6).join("")}}i.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=t.width&&t.width>=21?t.width:void 0;return{width:i,scale:i?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},i.getScale=function(t,i){return i.width&&i.width>=t+2*i.margin?i.width/(t+2*i.margin):i.scale},i.getImageWidth=function(t,e){const n=i.getScale(t,e);return Math.floor((t+2*e.margin)*n)},i.qrToImageData=function(t,e,n){const s=e.modules.size,o=e.modules.data,a=i.getScale(s,n),r=Math.floor((s+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let i=0;i<r;i++)for(let e=0;e<r;e++){let M=4*(i*r+e),h=n.color.light;i>=l&&e>=l&&i<r-l&&e<r-l&&(h=c[o[Math.floor((i-l)/a)*s+Math.floor((e-l)/a)]?1:0]),t[M++]=h.r,t[M++]=h.g,t[M++]=h.b,t[M]=h.a}}})),oi=U((function(t,i){i.render=function(t,i,e){let n=e,s=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=si.getOptions(n);const o=si.getImageWidth(t.modules.size,n),a=s.getContext("2d"),r=a.createImageData(o,o);return si.qrToImageData(r.data,t,n),function(t,i,e){t.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=e,i.width=e,i.style.height=e+"px",i.style.width=e+"px"}(a,s,o),a.putImageData(r,0,0),s},i.renderToDataURL=function(t,e,n){let s=n;return void 0!==s||e&&e.getContext||(s=e,e=void 0),s||(s={}),i.render(t,e,s).toDataURL(s.type||"image/png",(s.rendererOpts||{}).quality)}}));function ai(t,i){const e=t.a/255,n=i+'="'+t.hex+'"';return e<1?n+" "+i+'-opacity="'+e.toFixed(2).slice(1)+'"':n}function ri(t,i,e){let n=t+i;return void 0!==e&&(n+=" "+e),n}function li(t,i,e,n,s){const o=[].slice.call(arguments,1),a=o.length,r="function"==typeof o[a-1];if(!r&&!et())throw new Error("Callback required as last argument");if(!r){if(a<1)throw new Error("Too few arguments provided");return 1===a?(e=i,i=n=void 0):2!==a||i.getContext||(n=e,e=i,i=void 0),new Promise((function(s,o){try{const o=ni(e,n);s(t(o,i,n))}catch(t){o(t)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(s=e,e=i,i=n=void 0):3===a&&(i.getContext&&void 0===s?(s=n,n=void 0):(s=n,n=e,e=i,i=void 0));try{const o=ni(e,n);s(null,t(o,i,n))}catch(t){s(t)}}var ci={create:ni,toCanvas:li.bind(null,oi.render),toDataURL:li.bind(null,oi.renderToDataURL),toString:li.bind(null,(function(t,i,e){return function(t,i,e){const n=si.getOptions(i),s=t.modules.size,o=t.modules.data,a=s+2*n.margin,r=n.color.light.a?"<path "+ai(n.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+ai(n.color.dark,"stroke")+' d="'+function(t,i,e){let n="",s=0,o=!1,a=0;for(let r=0;r<t.length;r++){const l=Math.floor(r%i),c=Math.floor(r/i);l||o||(o=!0),t[r]?(a++,r>0&&l>0&&t[r-1]||(n+=o?ri("M",l+e,.5+c+e):ri("m",s,0),s=0,o=!1),l+1<i&&t[r+1]||(n+=ri("h",a),a=0)):s++}return n}(o,s,n.margin)+'"/>',c='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+'viewBox="0 0 '+a+" "+a+'" shape-rendering="crispEdges">'+r+l+"</svg>\n";return"function"==typeof e&&e(null,c),c}(t,e)}))};const Mi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.infoTextTop=void 0,this.infoTextBottom=void 0,this.contact=void 0,this.invalidValue=void 0,this.waitingMobile=void 0,this.orderStatus=void 0,this.redirectLink=void 0,this.qrCode=void 0,this.prefilledPhone=!1,this.baseComponent=new r(l.MobileRedirect),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.invalidValue=!1,this.waitingMobile=!1}async componentWillLoad(){y.flowStarted(),this.infoTextTop=b.InfoTop,this.infoTextBottom=b.InfoBottom,this.redirectLink=(c.hasIdBack?"https://onmd.id-kyc.com/":"https://onro.id-kyc.com/")+("QA"==c.environment?"test":"ect")+"/mobileredirect?redirectId="+c.redirectId,c.phoneNumber&&""!=c.phoneNumber&&(this.contact=c.phoneNumber,this.prefilledPhone=!0);var t=this;ci.toDataURL(this.redirectLink,{type:"image/png",errorCorrectionLevel:"M",scale:6},(function(i,e){i&&console.error(i),t.qrCode=e}))}async componentDidLoad(){for(await this.baseComponent.initialize(),await I(5e3),await this.checkStatus();this.orderStatus==L.Capturing||this.orderStatus==L.Waiting;)await this.checkStatus(),await I(5e3)}async checkStatus(){this.orderStatus=await this.baseComponent.apiCall.GetStatus(c.requestId),this.orderStatus==L.FinishedCapturing&&(this.waitingMobile=!1,c.flowStatus=M.COMPLETE),this.orderStatus==L.NotFound&&this.apiErrorEvent.emit({message:"No order was started for this process."}),this.orderStatus==L.Capturing&&(this.infoTextTop=b.InfoWaiting,this.waitingMobile=!0),this.orderStatus==L.Aborted&&(this.waitingMobile=!1,this.infoTextTop=b.InfoAborted,y.flowAborted())}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){if(""!=this.contact&&10==this.contact.length){this.waitingMobile=!0,this.infoTextTop=b.InfoWaiting;try{await this.baseComponent.apiCall.SendLink(this.redirectLink,this.contact)}catch(t){this.apiErrorEvent.emit(t)}}}handleChangeContact(t){this.contact=(t.target?t.target.value:"").replace(/\D/g,""),this.contact.length>10&&(this.contact=this.contact.substring(0,10)),this.invalidValue=10!=this.contact.length,t.target.value=this.contact}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{hidden:this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)),e("div",{class:"qr-canvas align-center"},e("img",{src:this.qrCode})),e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextBottom)),e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1 color-red",hidden:0==this.invalidValue},e("b",null,b.Validation)),e("input",{type:"text",id:"codeInput",class:"main-input",disabled:this.prefilledPhone,value:this.contact,onInput:t=>this.handleChangeContact(t)})),e("div",{class:"pos-relative"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},"Trimite"),e("p",{class:"main-text font-size-18 text-right mb-0"},b.FooterText)))),e("div",{hidden:0==this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)))))}};var hi,ui;Mi.style=".qr-canvas{max-height:60vh;max-width:80vw;text-align:center}.qr-canvas>canvas{width:100%;height:100%}",function(t){t.IdFront="IdFront",t.IdBack="IdBack",t.IdFrontVideo="IdFrontVideo",t.None="None"}(hi||(hi={})),function(t){t[t.HowToFront=0]="HowToFront",t[t.IdFront=1]="IdFront",t[t.HowToBack=2]="HowToBack",t[t.IdBack=3]="IdBack",t[t.Tilt=4]="Tilt",t[t.End=5]="End"}(ui||(ui={}));const fi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.captureStep=void 0,this.showTimeout=void 0,this.showInvalid=void 0,this.flow=void 0,this.baseComponent=new r(l.CiBack),this.baseComponent.setEventEmitter(this.apiErrorEvent)}componentWillLoad(){this.captureRetryCount=0,this.flow={front:{photoDone:!1,recordingDone:!1,fileName:"idImage.png",file:null,recoding:null,uploadType:hi.IdFront},back:null,tilt:null,recordingData:[],mimeType:""},c.hasIdBack&&(this.flow.back={photoDone:!1,recordingDone:!1,fileName:"idBackImage.png",file:null,recoding:null,uploadType:hi.IdBack}),c.idTiltCheck&&(this.flow.tilt={photoDone:!0,recordingDone:!1,fileName:"idTiltImage.png",file:null,recoding:null,uploadType:hi.None}),this.captureStep=ui.HowToFront}howToDone(){this.captureStep==ui.HowToFront&&(this.captureStep=ui.IdFront),this.captureStep==ui.HowToBack&&(this.captureStep=ui.IdBack)}timeElapsed(){this.showTimeout=!0}captureErrorDone(){1==this.showTimeout&&(this.showTimeout=!1),1==this.showInvalid&&(this.showInvalid=!1)}async captureIdImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{this.flow.front.file=new File([i],this.flow.front.fileName,{type:"image/png"}),this.flow.front.photoDone=await this.uploadPhotos(this.flow.front.uploadType,this.flow.front.file),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async captureIdBackImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{this.flow.back.file=new File([i],this.flow.back.fileName,{type:"image/png"}),this.flow.back.photoDone=await this.uploadPhotos(this.flow.back.uploadType,this.flow.back.file),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedIdRecording(t){var i=t.detail;if(0!=i.RecordingChunks.length||0!=this.recordingResultCount){if(0==i.RecordingChunks.length)return await this.baseComponent.apiCall.AddLog({message:"Empty recording for "+this.captureStep,blobData:i.RecordingChunks},x()),void this.triggerErrorFlow();this.flow.mimeType=t.detail.MimeType,this.captureStep==ui.IdFront&&(this.flow.front.recoding=i.RecordingChunks,this.flow.front.recordingDone=!0),this.captureStep==ui.IdBack&&(this.flow.back.recoding=i.RecordingChunks,this.flow.back.recordingDone=!0),this.captureStep==ui.Tilt&&(this.flow.tilt.recoding=i.RecordingChunks,this.flow.tilt.recordingDone=!0),await this.endFlow(),this.recordingResultCount=0}else this.recordingResultCount++}async getRecordingFile(){let t=new Blob(this.flow.recordingData,{type:this.flow.mimeType});if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:t},x()),void this.triggerErrorFlow(!0);let i=t.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;try{var e=new File([t],"idVideo."+i.extension,{type:i.type});if(this.uploadRecording("IdFrontVideo",e))return!0;this.triggerErrorFlow(!0)}catch(t){this.triggerErrorFlow(!0)}}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhotos(t,i){return!(null==i||""==t||!await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,t,i)&&(this.switchCamera(),this.triggerErrorFlow(),1))}async uploadRecording(t,i){if(null!=i)return!!await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,t,i)||(this.triggerErrorFlow(),!1)}triggerErrorFlow(t=!1){t&&(this.captureStep=ui.IdFront),(this.captureStep==ui.IdFront||t)&&(this.flow.front.file=null,this.flow.front.photoDone=!1,this.flow.front.recordingDone=!1,this.flow.front.recoding=null),(this.captureStep==ui.IdBack||t)&&(this.flow.back.file=null,this.flow.back.photoDone=!1,this.flow.back.recordingDone=!1,this.flow.back.recoding=null),(this.captureStep==ui.Tilt||t)&&(this.flow.tilt.photoDone=!0,this.flow.tilt.recordingDone=!1,this.flow.tilt.recoding=null),this.showInvalid=!0}async endFlow(){if(this.captureStep==ui.IdFront){if(!this.flow.front.photoDone||!this.flow.front.recordingDone)return;this.captureStep=c.hasIdBack?ui.IdBack:c.idTiltCheck?ui.Tilt:ui.End}if(this.captureStep==ui.IdBack&&c.hasIdBack){if(!this.flow.back.photoDone||!this.flow.back.recordingDone)return;this.captureStep=c.idTiltCheck?ui.Tilt:ui.End}if(this.captureStep==ui.Tilt&&c.idTiltCheck){if(!this.flow.tilt.photoDone||!this.flow.tilt.recordingDone)return;this.flow.recordingData.push(...this.flow.front.recoding),this.flow.recordingData.push(...this.flow.back.recoding),this.flow.recordingData.push(...this.flow.tilt.recoding),await this.getRecordingFile(),this.captureStep=ui.End}this.captureStep==ui.End&&(c.flowStatus=M.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let t=c.cameraIds.indexOf(c.cameraId);c.cameraId=t===c.cameraIds.length-1?c.cameraIds[0]:c.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=e("capture-error",{type:"ID"}),i=e("id-capture",null),n=e("id-back-capture",null),s=e("id-tilt",null),o=e("how-to-info",{idSide:"front"}),a=e("how-to-info",{idSide:"back"});return this.showInvalid||this.showTimeout?t:this.captureStep==ui.HowToFront?o:this.captureStep==ui.HowToBack?a:this.captureStep==ui.IdFront?i:this.captureStep==ui.IdBack?n:this.captureStep==ui.Tilt?s:void 0}};fi.style="";const di=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoSelfieCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.demoEnded=void 0,this.demoVideo=void 0,this.uploadingLink=void 0,this.captureHeight=void 0,this.captureWidth=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.demoEnded=!1,this.uploadingLink="https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4",this.baseComponent=new r(l.SelfieHoldAnimation)}async eventChangeTitle(t){null==t.detail?this.titleMesage=D.FinalTitle:(await this.baseComponent.logStep(l.SelfieTiltAnimation,j.Initialized),this.titleMesage=D.FacePoseMapping[t.detail],this.demoEnded=!1,this.demoVideo.src=D.FacePoseDemoMapping[t.detail],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(l.SelfieTiltAnimation,j.Finalized))}eventVideoStarted(t){this.videoStarted=!0;var i=Math.round(16*t.detail.width/9);this.captureHeight=i-Math.round((window.screen.height-i)/2),this.captureWidth=Math.round(9*this.captureHeight/16)}componentWillLoad(){this.titleMesage=D.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Initialized),this.demoVideo.src=D.FacePoseDemoMapping[E.Main],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.SelfieCapture,j.Initialized);const t=this.cameras.GetConstraints("",c.device,!0);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Finalized)}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=D.Loading,this.closeCamera(),this.demoEnded=!1,this.demoVideo.src=this.uploadingLink,this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t;c.device.isMobile&&this.videoStarted&&(t={width:this.captureWidth+"px",height:this.captureHeight+"px",overflow:"hidden",borderRadius:"10px","text-align":"center",margin:"auto"});let i=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:this.demoEnded},e("video",{id:"howtoSelfie",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:0==this.demoEnded},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("camera-comp",{"capture-mode":"selfie"}))))),e("div",{class:"capture-title"},e("h1",{class:i},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},D.FooterText))))}get component(){return n(this)}};di.style="";const gi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.details=void 0,this.buttonText=void 0,this.phoneNumber=void 0,this.code=void 0,this.prefilledPhone=!1,this.canSend=!1,c.flowStatus==M.PHONE&&(this.baseComponent=new r(l.OtpSend)),c.flowStatus==M.CODE&&(this.baseComponent=new r(l.OtpCheck)),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async doAction(){try{if(this.canSend=!1,c.flowStatus==M.CODE||c.flowStatus==M.CODEERROR){var t=await this.baseComponent.apiCall.CheckOTPCode(c.requestId,this.code);c.flowStatus=!0===t?M.ID:M.CODEERROR}c.flowStatus==M.PHONE&&!0===await this.baseComponent.apiCall.SendOTPCode(c.requestId,this.phoneNumber)&&(c.flowStatus=M.CODE)}catch(t){this.apiErrorEvent.emit(t)}}async disconnectedCallback(){await this.baseComponent.finalize()}componentWillRender(){c.flowStatus==M.PHONE&&(this.title=O.Title,this.details=O.Description,this.buttonText=O.Button,c.phoneNumber&&""!=c.phoneNumber&&(this.phoneNumber=c.phoneNumber,this.prefilledPhone=!0,this.canSend=!0)),c.flowStatus!=M.CODE&&c.flowStatus!=M.CODEERROR||(this.title=k.Title,this.details=k.Description,this.buttonText=k.Button)}async componentDidLoad(){await this.baseComponent.initialize()}handleChangePhone(t){this.phoneNumber=(t.target?t.target.value:"").replace(/\D/g,""),this.phoneNumber.length>10&&(this.phoneNumber=this.phoneNumber.substring(0,10)),this.canSend=10==this.phoneNumber.length,t.target.value=this.phoneNumber}handleChangeCode(t){this.code=t.target?t.target.value:"",this.code.length>4&&(this.code=this.code.substring(0,4)),this.canSend=4==this.code.length,t.target.value=this.code}render(){let t,i;return c.flowStatus==M.CODEERROR&&(i=e("p",{class:"main-text font-size-18 mt-15 color-red text-center"},k.Error)),t=c.flowStatus==M.PHONE?e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1"},e("b",null,O.Label)),e("input",{type:"tel",id:"phoneInput",class:"main-input",disabled:this.prefilledPhone,onInput:t=>this.handleChangePhone(t),value:this.phoneNumber})):e("div",{class:"input-container mb-15"},e("input",{type:"text",id:"codeInput",class:"main-input",onInput:t=>this.handleChangeCode(t),value:this.code})),e("div",{class:"container"},e("div",{class:"row row-validare"},e("div",null,e("h1",{class:"text-center"},this.title),null==i?e("p",{class:"main-text font-size-2 mt-15 mb-20 text-center"},this.details):i),t,e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{id:"action",disabled:!this.canSend,class:"main-button",onClick:()=>this.doAction()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},O.FooterText)))))}};gi.style="";const Ni=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.showError=void 0,this.showHowTo=void 0,this.selfieFlow={photoDone:!1,recordingDone:!1,verificationFinished:!1,photoFile:null,recordingFile:null},this.baseComponent=new r(l.Selfie),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.showHowTo=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showError=!0}captureErrorDone(){this.showError=!1,this.selfieFlow.photoDone=!1,this.selfieFlow.recordingDone=!1,this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null}async captureSelfieImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty selfie",blobData:i},x()),void this.triggerErrorFlow();try{this.selfieFlow.photoFile=new File([i],"selfie.png",{type:"image/png"}),await this.uploadPhoto()}catch(t){this.apiErrorEvent.emit(t)}}async capturedSelfieRecording(t){let i=t.detail;if(0==i.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:i},x()),void this.triggerErrorFlow();let e=i.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;try{this.selfieFlow.recordingFile=new File([i],"selfieVideo."+e.extension,{type:e.type}),await this.uploadRecording()}catch(t){c.recordingRetryCount<3?(c.recordingRetryCount++,this.triggerErrorFlow()):this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.selfieFlow.verificationFinished=!0,await this.endFlow()}async disconnectedCallback(){await this.baseComponent.finalize()}async uploadPhoto(){null==this.selfieFlow.photoFile||this.selfieFlow.photoDone||(this.selfieFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,"Selfie",this.selfieFlow.photoFile),this.selfieFlow.photoDone?await this.endFlow():this.triggerErrorFlow())}async uploadRecording(){null==this.selfieFlow.recordingFile||this.selfieFlow.recordingDone||(this.selfieFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,"SelfieVideo",this.selfieFlow.recordingFile),this.selfieFlow.recordingDone?await this.endFlow():this.triggerErrorFlow())}triggerErrorFlow(){this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,this.showError=!0}async endFlow(){this.selfieFlow.photoDone&&this.selfieFlow.recordingDone&&this.selfieFlow.verificationFinished&&(c.recordingRetryCount=0,c.flowStatus=M.COMPLETE)}render(){let t=e("how-to-info",{idSide:""}),i=e("selfie-capture",{id:"camera"}),n=e("capture-error",{type:"LIVENESS"});return this.showHowTo?t:this.showError?n:i}};Ni.style="";export{C as agreement_check,S as agreement_info,Q as camera_comp,Y as camera_error,F as capture_error,Z as end_redirect,B as error_end,R as how_to_info,G as id_back_capture,V as id_capture,J as id_tilt,tt as identification_component,it as landing_validation,Mi as mobile_redirect,fi as process_id,di as selfie_capture,gi as sms_code_validation,Ni as user_liveness}
|
|
1
|
+
import{r as t,c as i,h as e,g as n}from"./p-aacd7024.js";import{A as s,a as o,b as a,B as r,F as l,s as c,c as M,S as h,V as u,C as f,M as d,d as g,I as N,e as D,f as I,E as y,g as m,H as z,h as w,i as j,j as A,k as p,l as x,m as T,L as v,n as U,o as L,O as b,p as E,P as O,q as k}from"./p-369f99a9.js";const C=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementAcceptance=i(this,"agreementAcceptance",7),this.agreementType=void 0,this.htmlContent=void 0,this.buttonEnabled=void 0,this.apiCalls=new s,this.buttonEnabled=!0}async componentDidLoad(){try{this.htmlContent=await this.apiCalls.GetAgreement(this.agreementType)}catch(t){this.apiErrorEvent.emit(t)}}async buttonClick(t){this.buttonEnabled=!1,this.agreementAcceptance.emit({agreementType:this.agreementType,result:t})}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"scroll",innerHTML:this.htmlContent}),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("div",{class:"d-flex two-buttons"},e("button",{class:"normal-button red-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!1)},o.ButtonNo),e("button",{class:"normal-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!0)},o.ButtonYes)),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.htmlContent?t:e("div",null)}};C.style="";const S=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementsChecked=void 0,this.termsChecked=void 0,this.openAgreements=void 0,this.openTerms=void 0,this.baseComponent=new r(l.Agreements),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.agreementsChecked=!1,this.termsChecked=!1}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.openAgreements=!1,this.openTerms=!1}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.agreementsChecked&&this.termsChecked&&(c.flowStatus=M.PHONE)}agreementAcceptanceEmitted(t){"agreement"==t.detail.agreementType&&(this.agreementsChecked=t.detail.result,this.openAgreements=!1),"terms"==t.detail.agreementType&&(this.termsChecked=t.detail.result,this.openTerms=!1)}agreementsClicked(){this.openAgreements=!0}termsClicked(){this.openTerms=!0}render(){let t=e("agreement-check",{agreementType:"agreement"}),i=e("agreement-check",{agreementType:"terms"}),n=e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},a.Title),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.agreementsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.agreementsChecked}),a.Agreement)),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.termsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.termsChecked}),a.Terms))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},a.Button),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.openAgreements?t:this.openTerms?i:n}};S.style="";const Q=class{constructor(e){t(this,e),this.eventVideoStarted=i(this,"videoStarted",7),this.eventCloseCamera=i(this,"closeCamera",7),this.errorCameraEvent=i(this,"errorCamera",7),this.eventTakePhoto=i(this,"takePhoto",7),this.eventRecordingSelfieReady=i(this,"recordingSelfieCapture",7),this.eventRecordingIdReady=i(this,"recordingIdCapture",7),this.eventTimeElapsed=i(this,"timeElapsed",7),this.eventChangeTitle=i(this,"changeTitle",7),this.verificationFinished=i(this,"verificationFinished",7),this.callbackErrors=(t,i)=>{i?(this.errorCameraEvent.emit(t),this.eventCloseCamera.emit()):this.errorCameraEvent.emit(t)},this.callbackAutoCapturing=()=>{this.eventTakePhoto.emit()},this.callbackSelfieRecordingReady=t=>{this.eventRecordingSelfieReady.emit(t)},this.callbackIdRecordingReady=t=>{this.eventRecordingIdReady.emit(t)},this.callbackTimeElapsed=()=>{this.eventTimeElapsed.emit()},this.callbackChangeTitle=t=>{this.eventChangeTitle.emit(t)},this.callbackVideoStarted=()=>{this.eventVideoStarted.emit(this.component.getBoundingClientRect())},this.callbackVerificationFinished=()=>{this.verificationFinished.emit()},this.modelPath=void 0,this.probabilityThreshold=void 0,this.captureMode=void 0}componentDidLoad(){this.startStream()}render(){let t="cameraVideo",i="cameraCanvas";return c.device.isDesktop&&(t="cameraVideoSelfieDesk",i="cameraCanvasSelfieDesk"),"selfie"==this.captureMode&&(t="cameraVideoSelfie",i="cameraCanvasSelfie"),e("div",{class:"camera"},e("video",{id:"video",loop:!0,autoplay:!0,playsinline:!0,muted:!0,class:t,ref:t=>this.cameraVideo=t}),e("canvas",{id:"output",class:i,ref:t=>this.cameraCanvas=t}))}startStream(){const t=h.getInstance("tilt"==this.captureMode?u.Tilt:u.Full);t.updateHtmlElements(this.cameraVideo,this.cameraCanvas,this.component),"selfie"==this.captureMode?(t.setFaceDetection(!0),t.setCallbackRecordingReady(this.callbackSelfieRecordingReady)):(t.setIdDetection(!0),t.setCallbackRecordingReady(this.callbackIdRecordingReady)),t.setCallbackErrors(this.callbackErrors),t.setCallbackAutoCapturing(this.callbackAutoCapturing),t.setCallbackChangeTitle(this.callbackChangeTitle),t.setCallbackVideoStarted(this.callbackVideoStarted),t.setCallbackTimeElapsed(this.callbackTimeElapsed),t.setVerificationFinished(this.callbackVerificationFinished)}get component(){return n(this)}};Q.style=".camera{width:100%;height:100%;color:white;display:flex;align-items:center;justify-content:center;position:relative}.cameraCanvas,.cameraCanvasSelfie,.cameraCanvasSelfieDesk{z-index:3;max-width:100%;max-height:100%;border-radius:10px}.cameraCanvasSelfie,.cameraCanvasSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraVideo,.cameraVideoSelfie,.cameraVideoSelfieDesk{z-index:2;position:absolute;max-width:100%;max-height:100%;border-radius:10px}.cameraVideoSelfie,.cameraVideoSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraMobile{position:fixed;top:0;left:0;background:black}";const Y=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.description=void 0,this.buttonDisabled=void 0,this.demoVideo=void 0,this.baseComponent=new r(l.CameraError),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){this.buttonDisabled=!1,this.title=f.Title,this.description=f.Description,this.buttonText=f.Button}async componentDidLoad(){await this.baseComponent.initialize(),c.device.mobileOS!=d.iOS?(this.demoVideo.src=f.HowToLink,this.demoVideo.loop=!0,this.demoVideo.play()):"true"===sessionStorage.getItem(g.RefreshDoneKey)&&(sessionStorage.setItem(g.RefreshDoneKey,"false"),c.flowStatus=M.LANDING)}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.buttonDisabled=!0,c.device.mobileOS==d.iOS?(sessionStorage.setItem(g.RefreshDoneKey,"true"),window.location.reload()):c.flowStatus=M.LANDING}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.title),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.description)),e("div",{hidden:c.device.mobileOS==d.iOS},e("video",{id:"howtoPermissions",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:this.buttonDisabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},f.FooterText)))))}};Y.style="";const F=class{constructor(e){t(this,e),this.eventCaptureErrorDone=i(this,"captureErrorDone",7),this.type=void 0,this.buttonEnabled=void 0,this.buttonText=void 0}async componentWillLoad(){this.buttonEnabled=!1,"ID"==this.type&&(this.titleR1=N.ErrorTitleR1,this.titleR2=N.ErrorTitleR2,this.descriptionR1=N.ErrorR1,this.descriptionR2=N.ErrorR2),"LIVENESS"==this.type&&(this.titleR1=D.ErrorTitleR1,this.titleR2=D.ErrorTitleR2,this.descriptionR1=D.ErrorR1,this.descriptionR2=D.ErrorR2)}async componentDidLoad(){for(let t=5;t>=1;t--)this.buttonText=t.toString(),await I(1e3);this.buttonText=N.Button,this.buttonEnabled=!0}buttonClick(){this.buttonEnabled=!1,this.eventCaptureErrorDone.emit()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.titleR1),e("h1",{class:"color-red"},this.titleR2),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR1),e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR2)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText)))))}};F.style="";const Z=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7)}async componentDidLoad(){y.flowCompleted()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},m.Title),e("p",{class:"main-text font-size-18 mt-8 text-center"},m.Description)),e("div",{class:"buletin-container"},e("div",{class:"container-coin"},e("div",{class:"coin-scale"},e("div",{class:"coin-flip"},e("img",{class:"w-40 coin",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iODQiIHZpZXdCb3g9IjAgMCA4MyA4NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik00MS41IDgzLjcwNjJDMzAuNDE0N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t-20"},m.Message),e("p",null,c.requestId)),e("div",{class:"btn-buletin"},e("p",{class:"main-text font-size-18 text-center mb-0"},m.FooterText))))}};Z.style="h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";const B=class{constructor(i){t(this,i),this.message=void 0,this.errorTitle=void 0}componentDidLoad(){}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"text-center"},e("h1",null,this.errorTitle)),e("div",{class:"text-center"},e("p",null,c.requestId)),e("div",null,e("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.message))))}};B.style="";const R=class{constructor(e){t(this,e),this.eventHowToInfoDone=i(this,"howToInfoDone",7),this.apiErrorEvent=i(this,"apiError",7),this.idSide=void 0,this.topTitle=void 0,this.subTitle=void 0,this.imagePath=void 0,this.buttonText=void 0,this.buttonEnabled=void 0}async componentDidLoad(){await this.baseComponent.initialize()}async disconnectedCallback(){await this.baseComponent.finalize()}buttonClick(){this.buttonEnabled=!1,this.eventHowToInfoDone.emit()}componentWillLoad(){this.subTitle="",this.buttonEnabled=!0,c.flowStatus==M.ID&&(this.topTitle=z.IdTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_id.png",this.buttonText=z.IdButton,"front"==this.idSide&&(this.baseComponent=new r(l.CiFrontHowTo),this.subTitle=z.IdSubTitileFace),"back"==this.idSide&&(this.baseComponent=new r(l.CiBackHowTo),this.subTitle=z.IdSubTitileBack)),c.flowStatus==M.LIVENESS&&(this.baseComponent=new r(l.SelfieHowTo),this.topTitle=z.SelfieTitile,this.subTitle=z.SelfieSubTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_selfie.png",this.buttonText=z.SelfieButton),this.baseComponent.setEventEmitter(this.apiErrorEvent)}render(){let t=""!=this.subTitle?e("p",{class:"font-size-2"},this.subTitle):null;return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:this.imagePath})),e("div",{class:"text-center"},e("h1",null,this.topTitle),t),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},z.FooterText)))))}};R.style="";class W{async GetCameras(t){var i=[];const e=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind));for(const n of e){const e=this.GetConstraints(n.deviceId,t),s=await navigator.mediaDevices.getUserMedia(e);s.getVideoTracks().forEach((e=>{var s,o;if(t.browser===w.Firefox){const t=e.getSettings();let o=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";o="e"===o?"environment":o,o="u"===o?"user":o,i.push({deviceId:n.deviceId,name:n.label,height:t.height,width:t.width,frameRate:Number(t.frameRate.max),focusModes:null!==(s=t.focusMode)&&void 0!==s?s:[],torch:!1,recommended:!1,facingMode:o})}else{const t=e.getCapabilities();let s=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";s="e"===s?"environment":s,s="u"===s?"user":s,i.push({deviceId:n.deviceId,name:n.label,height:t.height.max,width:t.width.max,frameRate:Number(t.frameRate.max),focusModes:null!==(o=t.focusMode)&&void 0!==o?o:[],torch:t.torch,recommended:!1,facingMode:s})}})),s.getTracks().forEach((t=>{t.stop()}))}if(i.length>0){var n=(i=i.sort(((t,i)=>i.frameRate-t.frameRate))).find((t=>t.focusModes.length>1&&"environment"===t.facingMode));if(n)i[i.indexOf(n)].recommended=!0;else{var s=i.find((t=>"environment"===t.facingMode));s&&(i[i.indexOf(s)].recommended=!0)}}return i}GetConstraints(t,i,e=!1){let n={audio:!1},s={frameRate:30};return t&&(s.deviceId={exact:t}),i.isDesktop?s.width={ideal:1280}:(s.facingMode="user",e?i.isAndroidDevice?(s.width={ideal:1280},s.height={ideal:720}):(s.width={ideal:1920},s.height={ideal:1080}):(s.facingMode="environment",s.width={ideal:1280},s.aspectRatio=1)),n.video=s,n}GetRecommendedCamera(t){if(t&&t.length>0){var i=t.find((t=>t.recommended));if(i)return i}return null}static async InitCameras(t){try{let e=new W,n=(await e.GetCameras(t)).filter((t=>"environment"==t.facingMode));var i=e.GetRecommendedCamera(n);return c.cameraIds=n.map((t=>t.deviceId)),c.cameraId=null==i?void 0:i.deviceId,!0}catch(t){if(console.log(t),t.message.includes("Permission denied")||t.name.includes("NotAllowedError"))return!1;throw t}}}var P;!function(t){t[t.Straight=0]="Straight",t[t.Tilted=1]="Tilted",t[t.Rotate=2]="Rotate",t[t.BackStraight=3]="BackStraight",t[t.BackTilted=4]="BackTilted"}(P||(P={}));const G=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdBackCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiBackHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiBackHoldAnimation,j.Initialized),this.titleMesage=N.TtileRotate,this.demoVideo.src=N.IDPoseDemoMapping[P.Rotate],this.demoVideo.play(),await I(N.VideoLenght),this.titleMesage=N.TitleBack,this.demoVideo.src=N.IDPoseDemoMapping[P.BackStraight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiBackHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiBackCapture,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiBackCapture,j.Finalized)}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoBack",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};G.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const V=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiFrontHoldAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Straight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiFrontHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiFrontCapture,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiFrontCapture,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};V.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const J=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.IDPoseMapping[1],navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiFrontTiltAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Tilted],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiFrontTiltAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiTilt,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiTilt,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"tilt"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};let H;J.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const X=new Uint8Array(16);function _(){if(!H&&(H="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!H))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return H(X)}const K=[];for(let t=0;t<256;++t)K.push((t+256).toString(16).slice(1));const q={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $(t,i,e){if(q.randomUUID&&!i&&!t)return q.randomUUID();const n=(t=t||{}).random||(t.rng||_)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,i){e=e||0;for(let t=0;t<16;++t)i[e+t]=n[t];return i}return function(t,i=0){return(K[t[i+0]]+K[t[i+1]]+K[t[i+2]]+K[t[i+3]]+"-"+K[t[i+4]]+K[t[i+5]]+"-"+K[t[i+6]]+K[t[i+7]]+"-"+K[t[i+8]]+K[t[i+9]]+"-"+K[t[i+10]]+K[t[i+11]]+K[t[i+12]]+K[t[i+13]]+K[t[i+14]]+K[t[i+15]]).toLowerCase()}(n)}const tt=class{async onTokenChange(t,i){c.debug&&console.log("Token change called with value: "+t),""!=t?c.token!==t&&(c.token=t,await this.initializeRequest()):t=c.token}async onOrderIdChange(t,i){c.debug&&console.log("OrderId change called with value: "+t),c.requestId!==t&&""!=t&&(c.requestId=t,c.initialised=!1,await this.initializeRequest(),c.flowStatus!=M.LANDING&&c.flowStatus!=M.NONE&&(c.flowStatus=M.LANDING))}onApiUrlChange(t,i){""==c.apiBaseUrl?c.apiBaseUrl!==t&&(c.apiBaseUrl=t):t=c.apiBaseUrl}onEnvChange(t,i){""==c.environment?c.environment!==t&&(c.environment=t):t=c.environment}async onRedirectIdChange(t,i){c.debug&&console.log("RedirectId change called with value: "+t),""==c.redirectId?(c.redirectId!==t&&(c.redirectId=t),await this.initializeRequest()):t=c.redirectId}async onPhoneChange(t,i){""==c.phoneNumber?c.phoneNumber!==t&&(c.phoneNumber=t):t=c.phoneNumber}agreementAcceptanceEmitted(t){try{this.baseComponent.apiCall.GenerateAgreement(t.detail.agreementType)}catch(t){this.apiErrorEmitter(t,"Agreement Acceptance")}}async apiErrorEmitter(t,i){var e,n,s,o,a,r;t.detail?(this.errorTitle=null!==(n=null!==(e=t.detail.message)&&void 0!==e?e:t.detail.status)&&void 0!==n?n:"",this.errorMessage=null!==(o=null!==(s=t.detail.stack)&&void 0!==s?s:t.detail.statusText)&&void 0!==o?o:""):t.message?this.errorTitle=t.message:t.status?(this.errorTitle=null!==(a=t.status)&&void 0!==a?a:"",this.errorMessage=null!==(r=t.statusText)&&void 0!==r?r:""):this.errorTitle=t;let l={message:this.errorTitle,stack:this.errorMessage,zone:i};try{await this.baseComponent.apiCall.AddLog(l,x(this.order_id,this.redirect_id,this.token))}catch(t){}y.flowError(this.errorTitle),c.flowStatus=M.ERROREND}constructor(i){t(this,i),this.logInit={},this.flowStatusToSet=M.NONE,this.token=void 0,this.order_id=void 0,this.api_url=void 0,this.env=void 0,this.redirect_id=void 0,this.phone_number=void 0,this.idSide="",this.errorMessage=void 0,this.errorTitle=void 0}async componentWillLoad(){y.init(window),y.flowEvent(l.ComponentLoaded,j.Initialized),c.apiBaseUrl=this.api_url,this.env&&""!=this.env&&(c.environment=this.env),this.baseComponent=new r(l.ComponentLoaded),this.baseComponent.setErrorCallback(this.apiErrorEmitter),c.debug&&(this.logInit=x(this.order_id,this.redirect_id,this.token)),this.token?(c.debug&&console.log("Store Token set with property value: "+this.token),c.token=this.token):""==c.token&&(c.token=sessionStorage.getItem(g.TokenKey),this.token=c.token,c.debug&&console.log("Store Token set with session value: "+c.token)),this.redirect_id&&(c.redirectId=this.redirect_id),this.phone_number&&""!=this.phone_number&&(c.phoneNumber=this.phone_number);var t=sessionStorage.getItem(g.InitialisedKey);t&&"true"==t.toLowerCase()&&(c.initialised=!0);var i=sessionStorage.getItem(g.HasIdBackKey);i&&"true"==i.toLowerCase()&&(c.hasIdBack=!0);var e=sessionStorage.getItem(g.AgreementValidationKey);e&&"true"==e.toLowerCase()&&(c.agreementsValidation=!0);var n=sessionStorage.getItem(g.PhoneValidationKey);n&&"true"==n.toLowerCase()&&(c.phoneValidation=!0);const s=sessionStorage.getItem(g.RequestIdKey);if(this.order_id&&""!=this.order_id?(c.requestId=this.order_id,c.debug&&console.log("Current RequestId has value: "+this.order_id),s&&""!=s&&s!=this.order_id&&(c.debug&&console.log("Session RequestId: "+s+" has different value than property one: "+this.order_id),this.flowStatusToSet=M.LANDING,c.initialised=!1)):s&&(c.debug&&console.log("Current RequestId has no value, setting with session value: "+s),c.requestId=s,this.order_id=s),this.flowStatusToSet==M.NONE){var o=sessionStorage.getItem(g.FlowStatusKey);this.flowStatusToSet=o?M[o]:M.LANDING}}async componentDidLoad(){await this.initializeRequest(),c.flowStatus=this.flowStatusToSet}componentWillRender(){""==this.idSide&&(this.idSide=c.hasIdBack?"front":"")}async initializeRequest(){if(!c.initialised)if("DEMO"!=c.environment)if(c.device.browser!=w.Mi){try{c.debug&&this.baseComponent.apiCall.AddLog({phase:"debug mode"},this.logInit)}catch(t){}try{c.device.isMobile||""!=c.redirectId||(c.redirectId=$(),this.redirect_id=c.redirectId),""==c.token||""==c.requestId&&""==c.redirectId||(c.initialised=await this.baseComponent.apiCall.AddIdentificationRequest(c.device,"3.6.12"),this.order_id&&""!=this.order_id||(this.order_id=c.requestId))}catch(t){this.apiErrorEmitter(t,"Request Initialisation RequestId:"+c.requestId+" RedirectId:"+c.redirectId)}T.getInstance()}else this.apiErrorEmitter("Mi Browser nu este acceptat. Va rugam utilizati Chrome.","Request Initialisation RequestId:"+c.requestId+" RedirectId:"+c.redirectId);else c.initialised=!0}disconnectedCallback(){y.flowEvent(l.ComponentLoaded,j.Finalized)}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0ic3Bpbm5lckxvYWRlclJlZiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBvdmVyZmxvdz0idmlzaWJsZSIgZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSIjMDMwMzAzIiBjbGFzcz0ic2luZ2xlLWxvYWRlciI+DQogIDxkZWZzPg0KICAgIDxjaXJjbGUgaWQ9InNwaW5uZXIiIHI9IjQiIGN4PSI1MCIgY3k9IjUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0zMCkiLz4gICAgDQogIDwvZGVmcz4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoNDUgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZ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aW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuNjI1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQogIDx1c2UgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhsaW5rOmhyZWY9IiNzcGlubmVyIiB0cmFuc2Zvcm09InJvdGF0ZSgyNzAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMC43NXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMzE1IDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuODc1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQo8L3N2Zz4="}))));return c.device.isMobile||"DEMO"==c.environment?c.flowStatus==M.LANDING&&(t=e("landing-validation",null)):c.flowStatus!=M.NONE&&(t=e("mobile-redirect",null)),c.flowStatus==M.AGREEMENT&&(t=e("agreement-info",null)),c.flowStatus==M.PHONE&&(t=e("sms-code-validation",null)),c.flowStatus==M.CODE&&(t=e("sms-code-validation",null)),c.flowStatus==M.CODEERROR&&(t=e("sms-code-validation",null)),c.flowStatus==M.ID&&(t=e("process-id",null)),c.flowStatus==M.LIVENESS&&(t=e("user-liveness",{id:"camera"})),c.flowStatus==M.COMPLETE&&(t=e("end-redirect",null)),c.flowStatus==M.ERROREND&&(t=e("error-end",{errorTitle:this.errorTitle,message:this.errorMessage})),c.flowStatus==M.CAMERAERROR&&(t=e("camera-error",null)),e("div",null,t)}static get watchers(){return{token:["onTokenChange"],order_id:["onOrderIdChange"],api_url:["onApiUrlChange"],env:["onEnvChange"],redirect_id:["onRedirectIdChange"],phone_number:["onPhoneChange"]}}};tt.style="@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.container-video{height:99vh;text-align:center;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.link-text{margin-top:1vh;text-decoration:underline}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.show-bottom{bottom:-2vh}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.mt-5{margin-top:5vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{text-align:center}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-size-25{font-size:2.5vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:4;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}}";const it=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.warningText=void 0,this.buttonDisabled=void 0,this.baseComponent=new r(l.Landing),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){y.flowStarted(),this.baseComponent.apiCall=new s,this.buttonDisabled=!1,await this.initRequest()}async componentDidLoad(){"DEMO"!==c.environment&&await this.baseComponent.initialize()}async initRequest(){this.warningText=c.hasIdBack?v.WarningMd:v.Warning}async startFlow(){if(c.initialised){if(this.buttonDisabled=!0,"DEMO"===c.environment)return void(c.flowStatus=M.COMPLETE);await W.InitCameras(c.device)?c.flowStatus=c.agreementsValidation?M.AGREEMENT:c.phoneValidation?M.PHONE:M.ID:(c.device.mobileOS==d.iOS&&sessionStorage.setItem(g.RefreshDoneKey,"false"),c.flowStatus=M.CAMERAERROR)}}async disconnectedCallback(){await this.baseComponent.finalize()}async leaveFlow(){if(!this.buttonDisabled){c.initialised=!1;try{await this.baseComponent.apiCall.AbortRequest(),y.flowAborted()}catch(t){y.flowAborted(),this.apiErrorEvent.emit(t)}}}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},v.Title),e("div",{class:"d-flex space-between align-center"},e("p",{class:"main-text font-size-2"},v.Description),e("div",{class:"img-info"},e("div",{class:"i-effect"}),e("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDYgMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMC4zNDQ4NiAyNy44ODQ4VjguNzkzODZINS42Mzk2VjI3Ljg4NDhIMC4zNDQ4NlpNMy4wMDQ2NiA2LjMzMjkyQzIuMjE3NDkgNi4zMzI5MiAxLjU0MjE4IDYuMDcxOTEgMC45Nzg3MzggNS41NDk4OUMwLjQyMzU3NyA1LjAxOTU5IDAuMTQ1OTk2IDQuMzg1N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xMy4zNzIzIDIwLjk1NyAxMi43QzIwLjk1NyAxMi4wMjc2IDIwLjQxOTcgMTEuNDY4OSAxOS43NDI4IDExLjQ2ODlDMTkuMDY1OSAxMS40Njg5IDE4LjUyODYgMTIuMDI3NiAxOC41Mjg2IDEyLjdaTTE5LjM0NjggMTIuN0MxOS4zNDY4IDEyLjQ4MTggMTkuNTI0NCAxMi4zMDQxIDE5Ljc0MjggMTIuMzA0MUMxOS45NjEyIDEyLjMwNDEgMjAuMTM4NyAxMi40ODE4IDIwLjEzODcgMTIuN0MyMC4xMzg3IDEyLjkxODEgMTkuOTYxMiAxMy4wOTU4IDE5Ljc0MjggMTMuMDk1OEMxOS41MjQ0IDEzLjA5NTggMTkuMzQ2OCAxMi45MTgxIDE5LjM0NjggMTIuN1oiIGZpbGw9IiM2RTc0ODgiIHN0cm9rZT0iIzZFNzQ4OCIgc3Ryb2tlLXdpZHRoPSIwLjc0NDg5MSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE0XzE2MDEiPg0KPHJlY3Qgd2lkdGg9IjM5LjQ3OTIiIGhlaWdodD0iNDMuMjAzNyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMjYwMzc2IDAuNTEzNDI4KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K"})),e("h3",null,v.SmsInfo))),e("div",{class:"terms-container"},e("h3",{class:"font-size-2 mb-1 text-center"},this.warningText)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!c.initialised||this.buttonDisabled,onClick:()=>this.startFlow()},v.Button),e("p",{class:"main-text font-size-2 link-text mb-0",onClick:()=>this.leaveFlow()},v.ButtonLeave),e("p",{class:"main-text font-size-18 text-right mb-0"},v.FooterText)))))}};it.style="";var et=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then};let nt;const st=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];var ot=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},at=function(t){return st[t]},rt=function(t){let i=0;for(;0!==t;)i++,t>>>=1;return i},lt=function(){return void 0!==nt},ct=function(t){return nt(t)},Mt=U((function(t,i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2},i.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}}));function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(t){const i=Math.floor(t/8);return 1==(this.buffer[i]>>>7-t%8&1)},put:function(t,i){for(let e=0;e<i;e++)this.putBit(1==(t>>>i-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var ut=ht;function ft(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}ft.prototype.set=function(t,i,e,n){const s=t*this.size+i;this.data[s]=e,n&&(this.reservedBit[s]=!0)},ft.prototype.get=function(t,i){return this.data[t*this.size+i]},ft.prototype.xor=function(t,i,e){this.data[t*this.size+i]^=e},ft.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]};var dt=ft,gt=U((function(t,i){const e=ot;i.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,n=e(t),s=145===n?26:2*Math.ceil((n-13)/(2*i-2)),o=[n-7];for(let t=1;t<i-1;t++)o[t]=o[t-1]-s;return o.push(6),o.reverse()},i.getPositions=function(t){const e=[],n=i.getRowColCoords(t),s=n.length;for(let t=0;t<s;t++)for(let i=0;i<s;i++)0===t&&0===i||0===t&&i===s-1||t===s-1&&0===i||e.push([n[t],n[i]]);return e}}));const Nt=ot;var Dt=U((function(t,i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,e,n){switch(t){case i.Patterns.PATTERN000:return(e+n)%2==0;case i.Patterns.PATTERN001:return e%2==0;case i.Patterns.PATTERN010:return n%3==0;case i.Patterns.PATTERN011:return(e+n)%3==0;case i.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case i.Patterns.PATTERN101:return e*n%2+e*n%3==0;case i.Patterns.PATTERN110:return(e*n%2+e*n%3)%2==0;case i.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}i.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},i.from=function(t){return i.isValid(t)?parseInt(t,10):void 0},i.getPenaltyN1=function(t){const i=t.size;let e=0,n=0,s=0,o=null,a=null;for(let r=0;r<i;r++){n=s=0,o=a=null;for(let l=0;l<i;l++){let i=t.get(r,l);i===o?n++:(n>=5&&(e+=n-5+3),o=i,n=1),i=t.get(l,r),i===a?s++:(s>=5&&(e+=s-5+3),a=i,s=1)}n>=5&&(e+=n-5+3),s>=5&&(e+=s-5+3)}return e},i.getPenaltyN2=function(t){const i=t.size;let e=0;for(let n=0;n<i-1;n++)for(let s=0;s<i-1;s++){const i=t.get(n,s)+t.get(n,s+1)+t.get(n+1,s)+t.get(n+1,s+1);4!==i&&0!==i||e++}return 3*e},i.getPenaltyN3=function(t){const i=t.size;let e=0,n=0,s=0;for(let o=0;o<i;o++){n=s=0;for(let a=0;a<i;a++)n=n<<1&2047|t.get(o,a),a>=10&&(1488===n||93===n)&&e++,s=s<<1&2047|t.get(a,o),a>=10&&(1488===s||93===s)&&e++}return 40*e},i.getPenaltyN4=function(t){let i=0;const e=t.data.length;for(let n=0;n<e;n++)i+=t.data[n];return 10*Math.abs(Math.ceil(100*i/e/5)-10)},i.applyMask=function(t,i){const n=i.size;for(let s=0;s<n;s++)for(let o=0;o<n;o++)i.isReserved(o,s)||i.xor(o,s,e(t,o,s))},i.getBestMask=function(t,e){const n=Object.keys(i.Patterns).length;let s=0,o=1/0;for(let a=0;a<n;a++){e(a),i.applyMask(a,t);const n=i.getPenaltyN1(t)+i.getPenaltyN2(t)+i.getPenaltyN3(t)+i.getPenaltyN4(t);i.applyMask(a,t),n<o&&(o=n,s=a)}return s}}));const It=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],yt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];var mt=function(t,i){switch(i){case Mt.L:return It[4*(t-1)+0];case Mt.M:return It[4*(t-1)+1];case Mt.Q:return It[4*(t-1)+2];case Mt.H:return It[4*(t-1)+3];default:return}},zt=function(t,i){switch(i){case Mt.L:return yt[4*(t-1)+0];case Mt.M:return yt[4*(t-1)+1];case Mt.Q:return yt[4*(t-1)+2];case Mt.H:return yt[4*(t-1)+3];default:return}};const wt=new Uint8Array(512),jt=new Uint8Array(256);!function(){let t=1;for(let i=0;i<255;i++)wt[i]=t,jt[t]=i,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)wt[t]=wt[t-255]}();var At=function(t,i){return 0===t||0===i?0:wt[jt[t]+jt[i]]},pt=U((function(t,i){i.mul=function(t,i){const e=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let s=0;s<i.length;s++)e[n+s]^=At(t[n],i[s]);return e},i.mod=function(t,i){let e=new Uint8Array(t);for(;e.length-i.length>=0;){const t=e[0];for(let n=0;n<i.length;n++)e[n]^=At(i[n],t);let n=0;for(;n<e.length&&0===e[n];)n++;e=e.slice(n)}return e},i.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let s=0;s<t;s++)e=i.mul(e,new Uint8Array([1,(n=s,wt[n])]));var n;return e}}));function xt(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}xt.prototype.initialize=function(t){this.degree=t,this.genPoly=pt.generateECPolynomial(this.degree)},xt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const e=pt.mod(i,this.genPoly),n=this.degree-e.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(e,n),t}return e};var Tt=xt,vt=function(t){return!isNaN(t)&&t>=1&&t<=40};const Ut="[0-9]+";let Lt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Lt=Lt.replace(/u/g,"\\u");const bt="(?:(?![A-Z0-9 $%*+\\-./:]|"+Lt+")(?:.|[\r\n]))+";var Et=new RegExp(Lt,"g"),Ot=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),kt=new RegExp(bt,"g"),Ct=new RegExp(Ut,"g"),St=new RegExp("[A-Z $%*+\\-./:]+","g");const Qt=new RegExp("^"+Lt+"$"),Yt=new RegExp("^"+Ut+"$"),Ft=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");var Zt={KANJI:Et,BYTE_KANJI:Ot,BYTE:kt,NUMERIC:Ct,ALPHANUMERIC:St,testKanji:function(t){return Qt.test(t)},testNumeric:function(t){return Yt.test(t)},testAlphanumeric:function(t){return Ft.test(t)}},Bt=U((function(t,i){i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(t,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!vt(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},i.getBestModeForData=function(t){return Zt.testNumeric(t)?i.NUMERIC:Zt.testAlphanumeric(t)?i.ALPHANUMERIC:Zt.testKanji(t)?i.KANJI:i.BYTE},i.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},i.isValid=function(t){return t&&t.bit&&t.ccBits},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}})),Rt=U((function(t,i){const e=rt(7973);function n(t,i){return Bt.getCharCountIndicator(t,i)+4}function s(t,i){let e=0;return t.forEach((function(t){const s=n(t.mode,i);e+=s+t.getBitsLength()})),e}i.from=function(t,i){return vt(t)?parseInt(t,10):i},i.getCapacity=function(t,i,e){if(!vt(t))throw new Error("Invalid QR Code version");void 0===e&&(e=Bt.BYTE);const s=8*(at(t)-zt(t,i));if(e===Bt.MIXED)return s;const o=s-n(e,t);switch(e){case Bt.NUMERIC:return Math.floor(o/10*3);case Bt.ALPHANUMERIC:return Math.floor(o/11*2);case Bt.KANJI:return Math.floor(o/13);default:return Math.floor(o/8)}},i.getBestVersionForData=function(t,e){let n;const o=Mt.from(e,Mt.M);if(Array.isArray(t)){if(t.length>1)return function(t,e){for(let n=1;n<=40;n++)if(s(t,n)<=i.getCapacity(n,e,Bt.MIXED))return n}(t,o);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,e,n){for(let s=1;s<=40;s++)if(e<=i.getCapacity(s,n,t))return s}(n.mode,n.getLength(),o)},i.getEncodedBits=function(t){if(!vt(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;rt(i)-e>=0;)i^=7973<<rt(i)-e;return t<<12|i}}));const Wt=rt(1335);function Pt(t){this.mode=Bt.NUMERIC,this.data=t.toString()}Pt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},Pt.prototype.getLength=function(){return this.data.length},Pt.prototype.getBitsLength=function(){return Pt.getBitsLength(this.data.length)},Pt.prototype.write=function(t){let i,e,n;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),n=parseInt(e,10),t.put(n,10);const s=this.data.length-i;s>0&&(e=this.data.substr(i),n=parseInt(e,10),t.put(n,3*s+1))};var Gt=Pt;const Vt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Jt(t){this.mode=Bt.ALPHANUMERIC,this.data=t}Jt.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},Jt.prototype.getLength=function(){return this.data.length},Jt.prototype.getBitsLength=function(){return Jt.getBitsLength(this.data.length)},Jt.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let e=45*Vt.indexOf(this.data[i]);e+=Vt.indexOf(this.data[i+1]),t.put(e,11)}this.data.length%2&&t.put(Vt.indexOf(this.data[i]),6)};var Ht=Jt;function Xt(t){this.mode=Bt.BYTE,"string"==typeof t&&(t=function(t){for(var i=[],e=t.length,n=0;n<e;n++){var s=t.charCodeAt(n);if(s>=55296&&s<=56319&&e>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(s=1024*(s-55296)+o-56320+65536,n+=1)}s<128?i.push(s):s<2048?(i.push(s>>6|192),i.push(63&s|128)):s<55296||s>=57344&&s<65536?(i.push(s>>12|224),i.push(s>>6&63|128),i.push(63&s|128)):s>=65536&&s<=1114111?(i.push(s>>18|240),i.push(s>>12&63|128),i.push(s>>6&63|128),i.push(63&s|128)):i.push(239,191,189)}return new Uint8Array(i).buffer}(t)),this.data=new Uint8Array(t)}Xt.getBitsLength=function(t){return 8*t},Xt.prototype.getLength=function(){return this.data.length},Xt.prototype.getBitsLength=function(){return Xt.getBitsLength(this.data.length)},Xt.prototype.write=function(t){for(let i=0,e=this.data.length;i<e;i++)t.put(this.data[i],8)};var _t=Xt;function Kt(t){this.mode=Bt.KANJI,this.data=t}Kt.getBitsLength=function(t){return 13*t},Kt.prototype.getLength=function(){return this.data.length},Kt.prototype.getBitsLength=function(){return Kt.getBitsLength(this.data.length)},Kt.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let e=ct(this.data[i]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13)}};var qt=Kt,$t=U((function(t){var i={single_source_shortest_paths:function(t,e,n){var s={},o={};o[e]=0;var a,r,l,c,M,h,u=i.PriorityQueue.make();for(u.push(e,0);!u.empty();)for(l in c=(a=u.pop()).cost,M=t[r=a.value]||{})M.hasOwnProperty(l)&&(h=c+M[l],(void 0===o[l]||o[l]>h)&&(o[l]=h,u.push(l,h),s[l]=r));if(void 0!==n&&void 0===o[n]){var f=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(f)}return s},extract_shortest_path_from_predecessor_list:function(t,i){for(var e=[],n=i;n;)e.push(n),n=t[n];return e.reverse(),e},find_path:function(t,e,n){var s=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,s={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(s[e]=n[e]);return s.queue=[],s.sorter=t.sorter||n.default_sorter,s},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){this.queue.push({value:t,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i})),ti=U((function(t,i){function e(t){return unescape(encodeURIComponent(t)).length}function n(t,i,e){const n=[];let s;for(;null!==(s=t.exec(e));)n.push({data:s[0],index:s.index,mode:i,length:s[0].length});return n}function s(t){const i=n(Zt.NUMERIC,Bt.NUMERIC,t),e=n(Zt.ALPHANUMERIC,Bt.ALPHANUMERIC,t);let s,o;return lt()?(s=n(Zt.BYTE,Bt.BYTE,t),o=n(Zt.KANJI,Bt.KANJI,t)):(s=n(Zt.BYTE_KANJI,Bt.BYTE,t),o=[]),i.concat(e,s,o).sort((function(t,i){return t.index-i.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function o(t,i){switch(i){case Bt.NUMERIC:return Gt.getBitsLength(t);case Bt.ALPHANUMERIC:return Ht.getBitsLength(t);case Bt.KANJI:return qt.getBitsLength(t);case Bt.BYTE:return _t.getBitsLength(t)}}function a(t,i){let e;const n=Bt.getBestModeForData(t);if(e=Bt.from(i,n),e!==Bt.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+Bt.toString(e)+".\n Suggested mode is: "+Bt.toString(n));switch(e!==Bt.KANJI||lt()||(e=Bt.BYTE),e){case Bt.NUMERIC:return new Gt(t);case Bt.ALPHANUMERIC:return new Ht(t);case Bt.KANJI:return new qt(t);case Bt.BYTE:return new _t(t)}}i.fromArray=function(t){return t.reduce((function(t,i){return"string"==typeof i?t.push(a(i,null)):i.data&&t.push(a(i.data,i.mode)),t}),[])},i.fromString=function(t,n){const a=function(t){const i=[];for(let n=0;n<t.length;n++){const s=t[n];switch(s.mode){case Bt.NUMERIC:i.push([s,{data:s.data,mode:Bt.ALPHANUMERIC,length:s.length},{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.ALPHANUMERIC:i.push([s,{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.KANJI:i.push([s,{data:s.data,mode:Bt.BYTE,length:e(s.data)}]);break;case Bt.BYTE:i.push([{data:s.data,mode:Bt.BYTE,length:e(s.data)}])}}return i}(s(t,lt())),r=function(t,i){const e={},n={start:{}};let s=["start"];for(let a=0;a<t.length;a++){const r=t[a],l=[];for(let t=0;t<r.length;t++){const c=r[t],M=""+a+t;l.push(M),e[M]={node:c,lastCount:0},n[M]={};for(let t=0;t<s.length;t++){const a=s[t];e[a]&&e[a].node.mode===c.mode?(n[a][M]=o(e[a].lastCount+c.length,c.mode)-o(e[a].lastCount,c.mode),e[a].lastCount+=c.length):(e[a]&&(e[a].lastCount=c.length),n[a][M]=o(c.length,c.mode)+4+Bt.getCharCountIndicator(c.mode,i))}}s=l}for(let t=0;t<s.length;t++)n[s[t]].end=0;return{map:n,table:e}}(a,n),l=$t.find_path(r.map,"start","end"),c=[];for(let t=1;t<l.length-1;t++)c.push(r.table[l[t]].node);return i.fromArray(c.reduce((function(t,i){const e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===i.mode?(t[t.length-1].data+=i.data,t):(t.push(i),t)}),[]))},i.rawSplit=function(t){return i.fromArray(s(t,lt()))}}));function ii(t,i,e){const n=t.size,s=function(t,i){const e=t.bit<<3|i;let n=e<<10;for(;rt(n)-Wt>=0;)n^=1335<<rt(n)-Wt;return 21522^(e<<10|n)}(i,e);let o,a;for(o=0;o<15;o++)a=1==(s>>o&1),t.set(o<6?o:o<8?o+1:n-15+o,8,a,!0),t.set(8,o<8?n-o-1:o<9?15-o-1+1:15-o-1,a,!0);t.set(n-8,8,1,!0)}function ei(t,i,e,n){let s;if(Array.isArray(t))s=ti.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=i;if(!n){const i=ti.rawSplit(t);n=Rt.getBestVersionForData(i,e)}s=ti.fromString(t,n||40)}}const o=Rt.getBestVersionForData(s,e);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<o)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+o+".\n")}else i=o;const a=function(t,i,e){const n=new ut;e.forEach((function(i){n.put(i.mode.bit,4),n.put(i.getLength(),Bt.getCharCountIndicator(i.mode,t)),i.write(n)}));const s=8*(at(t)-zt(t,i));for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);const o=(s-n.getLengthInBits())/8;for(let t=0;t<o;t++)n.put(t%2?17:236,8);return function(t,i,e){const n=at(i),s=n-zt(i,e),o=mt(i,e),a=o-n%o,r=Math.floor(n/o),l=Math.floor(s/o),c=l+1,M=r-l,h=new Tt(M);let u=0;const f=new Array(o),d=new Array(o);let g=0;const N=new Uint8Array(t.buffer);for(let t=0;t<o;t++){const i=t<a?l:c;f[t]=N.slice(u,u+i),d[t]=h.encode(f[t]),u+=i,g=Math.max(g,i)}const D=new Uint8Array(n);let I,y,m=0;for(I=0;I<g;I++)for(y=0;y<o;y++)I<f[y].length&&(D[m++]=f[y][I]);for(I=0;I<M;I++)for(y=0;y<o;y++)D[m++]=d[y][I];return D}(n,t,i)}(i,e,s),r=ot(i),l=new dt(r);return function(t,i){const e=t.size,n=function(t){const i=Nt(t);return[[0,0],[i-7,0],[0,i-7]]}(i);for(let i=0;i<n.length;i++){const s=n[i][0],o=n[i][1];for(let i=-1;i<=7;i++)if(!(s+i<=-1||e<=s+i))for(let n=-1;n<=7;n++)o+n<=-1||e<=o+n||t.set(s+i,o+n,i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4,!0)}}(l,i),function(t){const i=t.size;for(let e=8;e<i-8;e++){const i=e%2==0;t.set(e,6,i,!0),t.set(6,e,i,!0)}}(l),function(t,i){const e=gt.getPositions(i);for(let i=0;i<e.length;i++){const n=e[i][0],s=e[i][1];for(let i=-2;i<=2;i++)for(let e=-2;e<=2;e++)t.set(n+i,s+e,-2===i||2===i||-2===e||2===e||0===i&&0===e,!0)}}(l,i),ii(l,e,0),i>=7&&function(t,i){const e=t.size,n=Rt.getEncodedBits(i);let s,o,a;for(let i=0;i<18;i++)s=Math.floor(i/3),o=i%3+e-8-3,a=1==(n>>i&1),t.set(s,o,a,!0),t.set(o,s,a,!0)}(l,i),function(t,i){const e=t.size;let n=-1,s=e-1,o=7,a=0;for(let r=e-1;r>0;r-=2)for(6===r&&r--;;){for(let e=0;e<2;e++)if(!t.isReserved(s,r-e)){let n=!1;a<i.length&&(n=1==(i[a]>>>o&1)),t.set(s,r-e,n),o--,-1===o&&(a++,o=7)}if(s+=n,s<0||e<=s){s-=n,n=-n;break}}}(l,a),isNaN(n)&&(n=Dt.getBestMask(l,ii.bind(null,l,e))),Dt.applyMask(n,l),ii(l,e,n),{modules:l,version:i,errorCorrectionLevel:e,maskPattern:n,segments:s}}var ni=function(t,i){if(void 0===t||""===t)throw new Error("No input text");let e,n,s=Mt.M;return void 0!==i&&(s=Mt.from(i.errorCorrectionLevel,Mt.M),e=Rt.from(i.version),n=Dt.from(i.maskPattern),i.toSJISFunc&&function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');nt=t}(i.toSJISFunc)),ei(t,e,s,n)},si=U((function(t,i){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+t);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map((function(t){return[t,t]})))),6===i.length&&i.push("F","F");const e=parseInt(i.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+i.slice(0,6).join("")}}i.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=t.width&&t.width>=21?t.width:void 0;return{width:i,scale:i?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},i.getScale=function(t,i){return i.width&&i.width>=t+2*i.margin?i.width/(t+2*i.margin):i.scale},i.getImageWidth=function(t,e){const n=i.getScale(t,e);return Math.floor((t+2*e.margin)*n)},i.qrToImageData=function(t,e,n){const s=e.modules.size,o=e.modules.data,a=i.getScale(s,n),r=Math.floor((s+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let i=0;i<r;i++)for(let e=0;e<r;e++){let M=4*(i*r+e),h=n.color.light;i>=l&&e>=l&&i<r-l&&e<r-l&&(h=c[o[Math.floor((i-l)/a)*s+Math.floor((e-l)/a)]?1:0]),t[M++]=h.r,t[M++]=h.g,t[M++]=h.b,t[M]=h.a}}})),oi=U((function(t,i){i.render=function(t,i,e){let n=e,s=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=si.getOptions(n);const o=si.getImageWidth(t.modules.size,n),a=s.getContext("2d"),r=a.createImageData(o,o);return si.qrToImageData(r.data,t,n),function(t,i,e){t.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=e,i.width=e,i.style.height=e+"px",i.style.width=e+"px"}(a,s,o),a.putImageData(r,0,0),s},i.renderToDataURL=function(t,e,n){let s=n;return void 0!==s||e&&e.getContext||(s=e,e=void 0),s||(s={}),i.render(t,e,s).toDataURL(s.type||"image/png",(s.rendererOpts||{}).quality)}}));function ai(t,i){const e=t.a/255,n=i+'="'+t.hex+'"';return e<1?n+" "+i+'-opacity="'+e.toFixed(2).slice(1)+'"':n}function ri(t,i,e){let n=t+i;return void 0!==e&&(n+=" "+e),n}function li(t,i,e,n,s){const o=[].slice.call(arguments,1),a=o.length,r="function"==typeof o[a-1];if(!r&&!et())throw new Error("Callback required as last argument");if(!r){if(a<1)throw new Error("Too few arguments provided");return 1===a?(e=i,i=n=void 0):2!==a||i.getContext||(n=e,e=i,i=void 0),new Promise((function(s,o){try{const o=ni(e,n);s(t(o,i,n))}catch(t){o(t)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(s=e,e=i,i=n=void 0):3===a&&(i.getContext&&void 0===s?(s=n,n=void 0):(s=n,n=e,e=i,i=void 0));try{const o=ni(e,n);s(null,t(o,i,n))}catch(t){s(t)}}var ci={create:ni,toCanvas:li.bind(null,oi.render),toDataURL:li.bind(null,oi.renderToDataURL),toString:li.bind(null,(function(t,i,e){return function(t,i,e){const n=si.getOptions(i),s=t.modules.size,o=t.modules.data,a=s+2*n.margin,r=n.color.light.a?"<path "+ai(n.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+ai(n.color.dark,"stroke")+' d="'+function(t,i,e){let n="",s=0,o=!1,a=0;for(let r=0;r<t.length;r++){const l=Math.floor(r%i),c=Math.floor(r/i);l||o||(o=!0),t[r]?(a++,r>0&&l>0&&t[r-1]||(n+=o?ri("M",l+e,.5+c+e):ri("m",s,0),s=0,o=!1),l+1<i&&t[r+1]||(n+=ri("h",a),a=0)):s++}return n}(o,s,n.margin)+'"/>',c='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+'viewBox="0 0 '+a+" "+a+'" shape-rendering="crispEdges">'+r+l+"</svg>\n";return"function"==typeof e&&e(null,c),c}(t,e)}))};const Mi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.infoTextTop=void 0,this.infoTextBottom=void 0,this.contact=void 0,this.invalidValue=void 0,this.waitingMobile=void 0,this.orderStatus=void 0,this.redirectLink=void 0,this.qrCode=void 0,this.prefilledPhone=!1,this.baseComponent=new r(l.MobileRedirect),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.invalidValue=!1,this.waitingMobile=!1}async componentWillLoad(){y.flowStarted(),this.infoTextTop=L.InfoTop,this.infoTextBottom=L.InfoBottom,this.redirectLink=(c.hasIdBack?"https://onmd.id-kyc.com/":"https://onro.id-kyc.com/")+("QA"==c.environment?"test":"ect")+"/mobileredirect?redirectId="+c.redirectId,c.phoneNumber&&""!=c.phoneNumber&&(this.contact=c.phoneNumber,this.prefilledPhone=!0);var t=this;ci.toDataURL(this.redirectLink,{type:"image/png",errorCorrectionLevel:"M",scale:6},(function(i,e){i&&console.error(i),t.qrCode=e}))}async componentDidLoad(){for(await this.baseComponent.initialize(),await I(5e3),await this.checkStatus();this.orderStatus==b.Capturing||this.orderStatus==b.Waiting;)await this.checkStatus(),await I(5e3)}async checkStatus(){this.orderStatus=await this.baseComponent.apiCall.GetStatus(c.requestId),this.orderStatus==b.FinishedCapturing&&(this.waitingMobile=!1,c.flowStatus=M.COMPLETE),this.orderStatus==b.NotFound&&this.apiErrorEvent.emit({message:"No order was started for this process."}),this.orderStatus==b.Capturing&&(this.infoTextTop=L.InfoWaiting,this.waitingMobile=!0),this.orderStatus==b.Aborted&&(this.waitingMobile=!1,this.infoTextTop=L.InfoAborted,y.flowAborted())}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){if(""!=this.contact&&10==this.contact.length){this.waitingMobile=!0,this.infoTextTop=L.InfoWaiting;try{await this.baseComponent.apiCall.SendLink(this.redirectLink,this.contact)}catch(t){this.apiErrorEvent.emit(t)}}}handleChangeContact(t){this.contact=(t.target?t.target.value:"").replace(/\D/g,""),this.contact.length>10&&(this.contact=this.contact.substring(0,10)),this.invalidValue=10!=this.contact.length,t.target.value=this.contact}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{hidden:this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)),e("div",{class:"qr-canvas align-center"},e("img",{src:this.qrCode})),e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextBottom)),e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1 color-red",hidden:0==this.invalidValue},e("b",null,L.Validation)),e("input",{type:"text",id:"codeInput",class:"main-input",disabled:this.prefilledPhone,value:this.contact,onInput:t=>this.handleChangeContact(t)})),e("div",{class:"pos-relative"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},"Trimite"),e("p",{class:"main-text font-size-18 text-right mb-0"},L.FooterText)))),e("div",{hidden:0==this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)))))}};var hi,ui;Mi.style=".qr-canvas{max-height:60vh;max-width:80vw;text-align:center}.qr-canvas>canvas{width:100%;height:100%}",function(t){t.IdFront="IdFront",t.IdBack="IdBack",t.IdFrontVideo="IdFrontVideo",t.None="None"}(hi||(hi={})),function(t){t[t.HowToFront=0]="HowToFront",t[t.IdFront=1]="IdFront",t[t.HowToBack=2]="HowToBack",t[t.IdBack=3]="IdBack",t[t.Tilt=4]="Tilt",t[t.End=5]="End"}(ui||(ui={}));const fi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.captureStep=void 0,this.showTimeout=void 0,this.showInvalid=void 0,this.flow=void 0,this.baseComponent=new r(l.CiBack),this.baseComponent.setEventEmitter(this.apiErrorEvent)}componentWillLoad(){this.captureRetryCount=0,this.flow={front:{photoDone:!1,recordingDone:!1,fileName:"idImage.png",file:null,recoding:null,uploadType:hi.IdFront},back:null,tilt:null,recordingData:[],mimeType:""},c.hasIdBack&&(this.flow.back={photoDone:!1,recordingDone:!1,fileName:"idBackImage.png",file:null,recoding:null,uploadType:hi.IdBack}),c.hasIdTilt&&(this.flow.tilt={photoDone:!0,recordingDone:!1,fileName:"idTiltImage.png",file:null,recoding:null,uploadType:hi.None}),this.captureStep=ui.HowToFront}howToDone(){this.captureStep==ui.HowToFront&&(this.captureStep=ui.IdFront),this.captureStep==ui.HowToBack&&(this.captureStep=ui.IdBack)}timeElapsed(){this.showTimeout=!0}captureErrorDone(){1==this.showTimeout&&(this.showTimeout=!1),1==this.showInvalid&&(this.showInvalid=!1)}async captureIdImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{this.flow.front.file=new File([i],this.flow.front.fileName,{type:"image/png"}),this.flow.front.photoDone=await this.uploadPhotos(this.flow.front.uploadType,this.flow.front.file),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async captureIdBackImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{this.flow.back.file=new File([i],this.flow.back.fileName,{type:"image/png"}),this.flow.back.photoDone=await this.uploadPhotos(this.flow.back.uploadType,this.flow.back.file),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedIdRecording(t){var i=t.detail;if(0!=i.RecordingChunks.length||0!=this.recordingResultCount){if(0==i.RecordingChunks.length)return await this.baseComponent.apiCall.AddLog({message:"Empty recording for "+this.captureStep,blobData:i.RecordingChunks},x()),void this.triggerErrorFlow();this.flow.mimeType=t.detail.MimeType,this.captureStep==ui.IdFront&&(this.flow.front.recoding=i.RecordingChunks,this.flow.front.recordingDone=!0),this.captureStep==ui.IdBack&&(this.flow.back.recoding=i.RecordingChunks,this.flow.back.recordingDone=!0),this.captureStep==ui.Tilt&&(this.flow.tilt.recoding=i.RecordingChunks,this.flow.tilt.recordingDone=!0),await this.endFlow(),this.recordingResultCount=0}else this.recordingResultCount++}async getRecordingFile(){let t=new Blob(this.flow.recordingData,{type:this.flow.mimeType});if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:t},x()),void this.triggerErrorFlow(!0);let i=t.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;try{var e=new File([t],"idVideo."+i.extension,{type:i.type});if(this.uploadRecording("IdFrontVideo",e))return!0;this.triggerErrorFlow(!0)}catch(t){this.triggerErrorFlow(!0)}}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhotos(t,i){return!(null==i||""==t||!await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,t,i)&&(this.switchCamera(),this.triggerErrorFlow(),1))}async uploadRecording(t,i){if(null!=i)return!!await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,t,i)||(this.triggerErrorFlow(),!1)}triggerErrorFlow(t=!1){t&&(this.captureStep=ui.IdFront),(this.captureStep==ui.IdFront||t)&&(this.flow.front.file=null,this.flow.front.photoDone=!1,this.flow.front.recordingDone=!1,this.flow.front.recoding=null),(this.captureStep==ui.IdBack||t)&&(this.flow.back.file=null,this.flow.back.photoDone=!1,this.flow.back.recordingDone=!1,this.flow.back.recoding=null),(this.captureStep==ui.Tilt||t)&&(this.flow.tilt.photoDone=!0,this.flow.tilt.recordingDone=!1,this.flow.tilt.recoding=null),this.showInvalid=!0}async endFlow(){if(this.captureStep==ui.IdFront){if(!this.flow.front.photoDone||!this.flow.front.recordingDone)return;this.captureStep=c.hasIdBack?ui.IdBack:c.hasIdTilt?ui.Tilt:ui.End}if(this.captureStep==ui.IdBack&&c.hasIdBack){if(!this.flow.back.photoDone||!this.flow.back.recordingDone)return;this.captureStep=c.hasIdTilt?ui.Tilt:ui.End}if(this.captureStep==ui.Tilt&&c.hasIdTilt){if(!this.flow.tilt.photoDone||!this.flow.tilt.recordingDone)return;this.flow.recordingData.push(...this.flow.front.recoding),this.flow.recordingData.push(...this.flow.back.recoding),this.flow.recordingData.push(...this.flow.tilt.recoding),await this.getRecordingFile(),this.captureStep=ui.End}this.captureStep==ui.End&&(c.flowStatus=M.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let t=c.cameraIds.indexOf(c.cameraId);c.cameraId=t===c.cameraIds.length-1?c.cameraIds[0]:c.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=e("capture-error",{type:"ID"}),i=e("id-capture",null),n=e("id-back-capture",null),s=e("id-tilt",null),o=e("how-to-info",{idSide:"front"}),a=e("how-to-info",{idSide:"back"});return this.showInvalid||this.showTimeout?t:this.captureStep==ui.HowToFront?o:this.captureStep==ui.HowToBack?a:this.captureStep==ui.IdFront?i:this.captureStep==ui.IdBack?n:this.captureStep==ui.Tilt?s:void 0}};fi.style="";const di=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoSelfieCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.demoEnded=void 0,this.demoVideo=void 0,this.uploadingLink=void 0,this.captureHeight=void 0,this.captureWidth=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.demoEnded=!1,this.uploadingLink="https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4",this.baseComponent=new r(l.SelfieHoldAnimation)}async eventChangeTitle(t){null==t.detail?this.titleMesage=D.FinalTitle:(await this.baseComponent.logStep(l.SelfieTiltAnimation,j.Initialized),this.titleMesage=D.FacePoseMapping[t.detail],this.demoEnded=!1,this.demoVideo.src=D.FacePoseDemoMapping[t.detail],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(l.SelfieTiltAnimation,j.Finalized))}eventVideoStarted(t){this.videoStarted=!0;var i=Math.round(16*t.detail.width/9);this.captureHeight=i-Math.round((window.screen.height-i)/2),this.captureWidth=Math.round(9*this.captureHeight/16)}componentWillLoad(){this.titleMesage=D.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Initialized),this.demoVideo.src=D.FacePoseDemoMapping[E.Main],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.SelfieCapture,j.Initialized);const t=this.cameras.GetConstraints("",c.device,!0);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Finalized)}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=D.Loading,this.closeCamera(),this.demoEnded=!1,this.demoVideo.src=this.uploadingLink,this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t;c.device.isMobile&&this.videoStarted&&(t={width:this.captureWidth+"px",height:this.captureHeight+"px",overflow:"hidden",borderRadius:"10px","text-align":"center",margin:"auto"});let i=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:this.demoEnded},e("video",{id:"howtoSelfie",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:0==this.demoEnded},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("camera-comp",{"capture-mode":"selfie"}))))),e("div",{class:"capture-title"},e("h1",{class:i},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},D.FooterText))))}get component(){return n(this)}};di.style="";const gi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.details=void 0,this.buttonText=void 0,this.phoneNumber=void 0,this.code=void 0,this.prefilledPhone=!1,this.canSend=!1,c.flowStatus==M.PHONE&&(this.baseComponent=new r(l.OtpSend)),c.flowStatus==M.CODE&&(this.baseComponent=new r(l.OtpCheck)),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async doAction(){try{if(this.canSend=!1,c.flowStatus==M.CODE||c.flowStatus==M.CODEERROR){var t=await this.baseComponent.apiCall.CheckOTPCode(c.requestId,this.code);c.flowStatus=!0===t?M.ID:M.CODEERROR}c.flowStatus==M.PHONE&&!0===await this.baseComponent.apiCall.SendOTPCode(c.requestId,this.phoneNumber)&&(c.flowStatus=M.CODE)}catch(t){this.apiErrorEvent.emit(t)}}async disconnectedCallback(){await this.baseComponent.finalize()}componentWillRender(){c.flowStatus==M.PHONE&&(this.title=O.Title,this.details=O.Description,this.buttonText=O.Button,c.phoneNumber&&""!=c.phoneNumber&&(this.phoneNumber=c.phoneNumber,this.prefilledPhone=!0,this.canSend=!0)),c.flowStatus!=M.CODE&&c.flowStatus!=M.CODEERROR||(this.title=k.Title,this.details=k.Description,this.buttonText=k.Button)}async componentDidLoad(){await this.baseComponent.initialize()}handleChangePhone(t){this.phoneNumber=(t.target?t.target.value:"").replace(/\D/g,""),this.phoneNumber.length>10&&(this.phoneNumber=this.phoneNumber.substring(0,10)),this.canSend=10==this.phoneNumber.length,t.target.value=this.phoneNumber}handleChangeCode(t){this.code=t.target?t.target.value:"",this.code.length>4&&(this.code=this.code.substring(0,4)),this.canSend=4==this.code.length,t.target.value=this.code}render(){let t,i;return c.flowStatus==M.CODEERROR&&(i=e("p",{class:"main-text font-size-18 mt-15 color-red text-center"},k.Error)),t=c.flowStatus==M.PHONE?e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1"},e("b",null,O.Label)),e("input",{type:"tel",id:"phoneInput",class:"main-input",disabled:this.prefilledPhone,onInput:t=>this.handleChangePhone(t),value:this.phoneNumber})):e("div",{class:"input-container mb-15"},e("input",{type:"text",id:"codeInput",class:"main-input",onInput:t=>this.handleChangeCode(t),value:this.code})),e("div",{class:"container"},e("div",{class:"row row-validare"},e("div",null,e("h1",{class:"text-center"},this.title),null==i?e("p",{class:"main-text font-size-2 mt-15 mb-20 text-center"},this.details):i),t,e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{id:"action",disabled:!this.canSend,class:"main-button",onClick:()=>this.doAction()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},O.FooterText)))))}};gi.style="";const Ni=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.showError=void 0,this.showHowTo=void 0,this.selfieFlow={photoDone:!1,recordingDone:!1,verificationFinished:!1,photoFile:null,recordingFile:null},this.baseComponent=new r(l.Selfie),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.showHowTo=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showError=!0}captureErrorDone(){this.showError=!1,this.selfieFlow.photoDone=!1,this.selfieFlow.recordingDone=!1,this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null}async captureSelfieImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty selfie",blobData:i},x()),void this.triggerErrorFlow();try{this.selfieFlow.photoFile=new File([i],"selfie.png",{type:"image/png"}),await this.uploadPhoto()}catch(t){this.apiErrorEvent.emit(t)}}async capturedSelfieRecording(t){let i=t.detail;if(0==i.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:i},x()),void this.triggerErrorFlow();let e=i.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;try{this.selfieFlow.recordingFile=new File([i],"selfieVideo."+e.extension,{type:e.type}),await this.uploadRecording()}catch(t){c.recordingRetryCount<3?(c.recordingRetryCount++,this.triggerErrorFlow()):this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.selfieFlow.verificationFinished=!0,await this.endFlow()}async disconnectedCallback(){await this.baseComponent.finalize()}async uploadPhoto(){null==this.selfieFlow.photoFile||this.selfieFlow.photoDone||(this.selfieFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,"Selfie",this.selfieFlow.photoFile),this.selfieFlow.photoDone?await this.endFlow():this.triggerErrorFlow())}async uploadRecording(){null==this.selfieFlow.recordingFile||this.selfieFlow.recordingDone||(this.selfieFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,"SelfieVideo",this.selfieFlow.recordingFile),this.selfieFlow.recordingDone?await this.endFlow():this.triggerErrorFlow())}triggerErrorFlow(){this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,this.showError=!0}async endFlow(){this.selfieFlow.photoDone&&this.selfieFlow.recordingDone&&this.selfieFlow.verificationFinished&&(c.recordingRetryCount=0,c.flowStatus=M.COMPLETE)}render(){let t=e("how-to-info",{idSide:""}),i=e("selfie-capture",{id:"camera"}),n=e("capture-error",{type:"LIVENESS"});return this.showHowTo?t:this.showError?n:i}};Ni.style="";export{C as agreement_check,S as agreement_info,Q as camera_comp,Y as camera_error,F as capture_error,Z as end_redirect,B as error_end,R as how_to_info,G as id_back_capture,V as id_capture,J as id_tilt,tt as identification_component,it as landing_validation,Mi as mobile_redirect,fi as process_id,di as selfie_capture,gi as sms_code_validation,Ni as user_liveness}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-aacd7024.js";import{B as h,F as a,l as e,s as o,c as n,S as r}from"./p-
|
|
1
|
+
import{r as i,c as t,h as s}from"./p-aacd7024.js";import{B as h,F as a,l as e,s as o,c as n,S as r}from"./p-369f99a9.js";const l=class{constructor(s){i(this,s),this.apiErrorEvent=t(this,"apiError",7),this.recordingResultCount=0,this.showTimeout=void 0,this.showHowTo=void 0,this.idFlow={verificationFinished:!1,photoDone:!1,recordingDone:!1,photoFile:null,recordingFile:null},this.baseComponent=new h(a.CiFront),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.captureRetryCount=0,this.showHowTo=!0}captureErrorDone(){this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!1}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}async captureIdImage(i){let t=i.detail;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:t},e()),void(this.showTimeout=!0);try{this.idFlow.photoFile=new File([t],"idImage.png",{type:"image/png"}),await this.uploadPhoto()}catch(i){this.apiErrorEvent.emit(i)}}async verificationFinished(i){this.idFlow.verificationFinished=!0,await this.endFlow()}async capturedIdRecording(i){let t=i.detail;if(0==t.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty ID recording",blobData:t},e()),void(this.showTimeout=!0);let s=t.type==r.mp4MimeType.type?r.mp4MimeType:r.webmMimeType;if(o.flowStatus==n.ID)try{this.idFlow.recordingFile=new File([t],"idVideo."+s.extension,{type:s.type}),await this.uploadRecording()}catch(i){this.apiErrorEvent.emit(i)}}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhoto(){null==this.idFlow.photoFile||this.idFlow.photoDone||(this.idFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFront",this.idFlow.photoFile),this.idFlow.photoDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.switchCamera(),this.showTimeout=!0))}async uploadRecording(){null==this.idFlow.recordingFile||this.idFlow.recordingDone||(this.idFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFrontVideo",this.idFlow.recordingFile),this.idFlow.recordingDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!0))}async endFlow(){this.idFlow.photoDone&&this.idFlow.recordingDone&&this.idFlow.verificationFinished&&(o.flowStatus=n.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let i=o.cameraIds.indexOf(o.cameraId);o.cameraId=i===o.cameraIds.length-1?o.cameraIds[0]:o.cameraIds[i+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let i=s("capture-error",{type:"ID"}),t=s("id-capture",{id:"idFront"}),h=s("how-to-info",{idSide:"front"});return this.showHowTo?h:this.showTimeout?i:t}};l.style="";export{l as id_single_side}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-aacd7024.js";export{s as setNonce}from"./p-aacd7024.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-
|
|
1
|
+
import{p as e,b as t}from"./p-aacd7024.js";export{s as setNonce}from"./p-aacd7024.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-a3317fe7",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[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],showHowTo:[32],selfieFlow:[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-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,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[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,"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"]}]]],["p-85ffa9cc",[[0,"id-double-side",{showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]]]],["p-e641a6c6",[[0,"id-single-side",{showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]]]],["p-7c33dd41",[[1,"loader-dots"]]]],e)));
|
|
@@ -11,7 +11,8 @@ export interface EctStore {
|
|
|
11
11
|
cameraIds: string[];
|
|
12
12
|
cameraId: string;
|
|
13
13
|
hasIdBack: boolean;
|
|
14
|
-
|
|
14
|
+
hasSelfieGesture: boolean;
|
|
15
|
+
hasIdTilt: boolean;
|
|
15
16
|
agreementsValidation: boolean;
|
|
16
17
|
phoneValidation: boolean;
|
|
17
18
|
phoneNumber: string;
|