@ekyc_qoobiss/qbs-ect-cmp 3.5.14 → 3.5.15
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/agreement-check_18.cjs.entry.js +5 -26
- package/dist/cjs/{index-41696e0e.js → index-79f82518.js} +1 -6
- package/dist/cjs/loader-dots.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/qbs-ect-cmp.cjs.js +2 -3
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/flow/landing-validation/landing-validation.js +0 -22
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +0 -22
- package/dist/collection/components/identification-component/identification-component.js +4 -23
- package/dist/collection/global.js +0 -3
- package/dist/esm/agreement-check_18.entry.js +5 -26
- package/dist/esm/{index-146398fe.js → index-9d69e511.js} +1 -6
- package/dist/esm/loader-dots.entry.js +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/qbs-ect-cmp.js +3 -4
- package/dist/qbs-ect-cmp/p-06e42b28.js +2 -0
- package/dist/qbs-ect-cmp/{p-e53affcc.entry.js → p-420d2fef.entry.js} +2 -2
- package/dist/qbs-ect-cmp/{p-5e48b54e.entry.js → p-4c8e922b.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/landing-validation/landing-validation.d.ts +0 -2
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +0 -2
- package/dist/types/components/identification-component/identification-component.d.ts +1 -3
- package/package.json +1 -1
- package/dist/cjs/global-4490dd43.js +0 -5
- package/dist/esm/global-99fa9b6b.js +0 -3
- package/dist/qbs-ect-cmp/p-88bff13f.js +0 -2
- package/dist/qbs-ect-cmp/p-95ded4b7.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-79f82518.js');
|
|
6
6
|
|
|
7
7
|
var OrderStatuses;
|
|
8
8
|
(function (OrderStatuses) {
|
|
@@ -6437,7 +6437,7 @@ function v4(options, buf, offset) {
|
|
|
6437
6437
|
}
|
|
6438
6438
|
|
|
6439
6439
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6440
|
-
const version$1 = "3.5.
|
|
6440
|
+
const version$1 = "3.5.15";
|
|
6441
6441
|
const description = "Person Identification Component";
|
|
6442
6442
|
const main = "./dist/index.cjs.js";
|
|
6443
6443
|
const module$1 = "./dist/index.js";
|
|
@@ -6603,13 +6603,6 @@ const IdentificationComponent = class {
|
|
|
6603
6603
|
Events.flowError(this.errorTitle);
|
|
6604
6604
|
state.flowStatus = FlowStatus.ERROREND;
|
|
6605
6605
|
}
|
|
6606
|
-
handleOnBeforeUnload(event) {
|
|
6607
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6608
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6609
|
-
}
|
|
6610
|
-
async handleOnUnload() {
|
|
6611
|
-
await this.baseComponent.finalize();
|
|
6612
|
-
}
|
|
6613
6606
|
constructor(hostRef) {
|
|
6614
6607
|
index.registerInstance(this, hostRef);
|
|
6615
6608
|
this.logInit = {};
|
|
@@ -6625,6 +6618,7 @@ const IdentificationComponent = class {
|
|
|
6625
6618
|
}
|
|
6626
6619
|
async componentWillLoad() {
|
|
6627
6620
|
Events.init(window);
|
|
6621
|
+
Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
|
|
6628
6622
|
state.apiBaseUrl = this.api_url;
|
|
6629
6623
|
if (this.env && this.env != '') {
|
|
6630
6624
|
state.environment = this.env;
|
|
@@ -6685,7 +6679,6 @@ const IdentificationComponent = class {
|
|
|
6685
6679
|
state.requestId = savedRequest;
|
|
6686
6680
|
this.order_id = savedRequest;
|
|
6687
6681
|
}
|
|
6688
|
-
await this.baseComponent.initialize();
|
|
6689
6682
|
if (flowStatusToSet == null) {
|
|
6690
6683
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
6691
6684
|
if (flowSt) {
|
|
@@ -6737,8 +6730,8 @@ const IdentificationComponent = class {
|
|
|
6737
6730
|
}
|
|
6738
6731
|
ML5.getInstance();
|
|
6739
6732
|
}
|
|
6740
|
-
|
|
6741
|
-
|
|
6733
|
+
disconnectedCallback() {
|
|
6734
|
+
Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Finalized);
|
|
6742
6735
|
}
|
|
6743
6736
|
render() {
|
|
6744
6737
|
let currentBlock = index.h("div", null);
|
|
@@ -6804,13 +6797,6 @@ const deviceSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iMzI
|
|
|
6804
6797
|
const landingValidationCss = "";
|
|
6805
6798
|
|
|
6806
6799
|
const LandingValidation = class {
|
|
6807
|
-
handleOnBeforeUnload(event) {
|
|
6808
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6809
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6810
|
-
}
|
|
6811
|
-
async handleOnUnload() {
|
|
6812
|
-
await this.baseComponent.finalize();
|
|
6813
|
-
}
|
|
6814
6800
|
constructor(hostRef) {
|
|
6815
6801
|
index.registerInstance(this, hostRef);
|
|
6816
6802
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
@@ -9759,13 +9745,6 @@ var browser = {
|
|
|
9759
9745
|
const mobileRedirectCss = ".qr-canvas{max-height:60vh;max-width:80vw;text-align:center}.qr-canvas>canvas{width:100%;height:100%}";
|
|
9760
9746
|
|
|
9761
9747
|
const MobileRedirect = class {
|
|
9762
|
-
handleOnBeforeUnload(event) {
|
|
9763
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
9764
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
9765
|
-
}
|
|
9766
|
-
async handleOnUnload() {
|
|
9767
|
-
await this.baseComponent.finalize();
|
|
9768
|
-
}
|
|
9769
9748
|
constructor(hostRef) {
|
|
9770
9749
|
index.registerInstance(this, hostRef);
|
|
9771
9750
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
@@ -1417,7 +1417,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1417
1417
|
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1418
1418
|
if (listeners) {
|
|
1419
1419
|
listeners.map(([flags, name, method]) => {
|
|
1420
|
-
const target =
|
|
1420
|
+
const target = elm;
|
|
1421
1421
|
const handler = hostListenerProxy(hostRef, method);
|
|
1422
1422
|
const opts = hostListenerOpts(flags);
|
|
1423
1423
|
plt.ael(target, name, handler, opts);
|
|
@@ -1441,11 +1441,6 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1441
1441
|
consoleError(e);
|
|
1442
1442
|
}
|
|
1443
1443
|
};
|
|
1444
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
1445
|
-
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
|
1446
|
-
return win;
|
|
1447
|
-
return elm;
|
|
1448
|
-
};
|
|
1449
1444
|
// prettier-ignore
|
|
1450
1445
|
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1451
1446
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-79f82518.js');
|
|
6
6
|
|
|
7
7
|
const loaderDotsCss = "i,i::before,i::after{animation-duration:0.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}body{font-family:sans-serif}i{width:300px;height:75px;margin:auto;display:block;background:no-repeat;background-image:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));background-size:75px 75px;background-position:0%, 50%;position:relative;transform:translateZ(0) scale(0.25);animation-name:slide}i::before,i::after{content:'';width:75px;height:75px;background:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));position:absolute;top:50%;margin-top:-37.5px;animation-name:reveal}i::before{left:1%;animation-delay:40ms}i::after{right:1%;animation-direction:reverse}@keyframes slide{from{background-position:0%, 50%}to{background-position:50%, 100%}}@keyframes reveal{from{transform:scale(0.001)}to{transform:scale(1)}}";
|
|
8
8
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
require('./global-4490dd43.js');
|
|
5
|
+
const index = require('./index-79f82518.js');
|
|
7
6
|
|
|
8
7
|
/*
|
|
9
8
|
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,7 +14,7 @@ const patchEsm = () => {
|
|
|
15
14
|
const defineCustomElements = (win, options) => {
|
|
16
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
17
16
|
return patchEsm().then(() => {
|
|
18
|
-
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_18.cjs",[[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"]
|
|
17
|
+
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_18.cjs",[[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,"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"]]],[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"]]],[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-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[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"]}]]]], options);
|
|
19
18
|
});
|
|
20
19
|
};
|
|
21
20
|
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
require('./global-4490dd43.js');
|
|
5
|
+
const index = require('./index-79f82518.js');
|
|
7
6
|
|
|
8
7
|
/*
|
|
9
8
|
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -18,7 +17,7 @@ const patchBrowser = () => {
|
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
patchBrowser().then(options => {
|
|
21
|
-
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_18.cjs",[[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"]
|
|
20
|
+
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_18.cjs",[[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,"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"]]],[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"]]],[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-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[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"]}]]]], options);
|
|
22
21
|
});
|
|
23
22
|
|
|
24
23
|
exports.setNonce = index.setNonce;
|
|
@@ -17,13 +17,6 @@ import idValidation from '../../../assets/landing/validation.svg';
|
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import idDevice from '../../../assets/landing/device.svg';
|
|
19
19
|
export class LandingValidation {
|
|
20
|
-
handleOnBeforeUnload(event) {
|
|
21
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
22
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
23
|
-
}
|
|
24
|
-
async handleOnUnload() {
|
|
25
|
-
await this.baseComponent.finalize();
|
|
26
|
-
}
|
|
27
20
|
constructor() {
|
|
28
21
|
this.warningText = undefined;
|
|
29
22
|
this.buttonDisabled = undefined;
|
|
@@ -126,19 +119,4 @@ export class LandingValidation {
|
|
|
126
119
|
}
|
|
127
120
|
}];
|
|
128
121
|
}
|
|
129
|
-
static get listeners() {
|
|
130
|
-
return [{
|
|
131
|
-
"name": "onbeforeunload",
|
|
132
|
-
"method": "handleOnBeforeUnload",
|
|
133
|
-
"target": "window",
|
|
134
|
-
"capture": false,
|
|
135
|
-
"passive": false
|
|
136
|
-
}, {
|
|
137
|
-
"name": "onunload",
|
|
138
|
-
"method": "handleOnUnload",
|
|
139
|
-
"target": "window",
|
|
140
|
-
"capture": false,
|
|
141
|
-
"passive": false
|
|
142
|
-
}];
|
|
143
|
-
}
|
|
144
122
|
}
|
|
@@ -9,13 +9,6 @@ import { FlowSteps } from '../../../models/FlowSteps';
|
|
|
9
9
|
import { delay } from '../../../utils/utils';
|
|
10
10
|
import { BaseComponent } from '../../base-component';
|
|
11
11
|
export class MobileRedirect {
|
|
12
|
-
handleOnBeforeUnload(event) {
|
|
13
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
14
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
15
|
-
}
|
|
16
|
-
async handleOnUnload() {
|
|
17
|
-
await this.baseComponent.finalize();
|
|
18
|
-
}
|
|
19
12
|
constructor() {
|
|
20
13
|
this.infoTextTop = undefined;
|
|
21
14
|
this.infoTextBottom = undefined;
|
|
@@ -148,19 +141,4 @@ export class MobileRedirect {
|
|
|
148
141
|
}
|
|
149
142
|
}];
|
|
150
143
|
}
|
|
151
|
-
static get listeners() {
|
|
152
|
-
return [{
|
|
153
|
-
"name": "onbeforeunload",
|
|
154
|
-
"method": "handleOnBeforeUnload",
|
|
155
|
-
"target": "window",
|
|
156
|
-
"capture": false,
|
|
157
|
-
"passive": false
|
|
158
|
-
}, {
|
|
159
|
-
"name": "onunload",
|
|
160
|
-
"method": "handleOnUnload",
|
|
161
|
-
"target": "window",
|
|
162
|
-
"capture": false,
|
|
163
|
-
"passive": false
|
|
164
|
-
}];
|
|
165
|
-
}
|
|
166
144
|
}
|
|
@@ -9,7 +9,7 @@ import packageJson from '../../../package.json';
|
|
|
9
9
|
import { getLogMessage } from '../../utils/utils';
|
|
10
10
|
import { BaseComponent } from '../base-component';
|
|
11
11
|
import { Browser } from '../../models/IDevice';
|
|
12
|
-
import { FlowSteps } from '../../models/FlowSteps';
|
|
12
|
+
import { FlowMoments, FlowSteps } from '../../models/FlowSteps';
|
|
13
13
|
export class IdentificationComponent {
|
|
14
14
|
async onTokenChange(newValue, _oldValue) {
|
|
15
15
|
if (store.debug)
|
|
@@ -106,13 +106,6 @@ export class IdentificationComponent {
|
|
|
106
106
|
Events.flowError(this.errorTitle);
|
|
107
107
|
store.flowStatus = FlowStatus.ERROREND;
|
|
108
108
|
}
|
|
109
|
-
handleOnBeforeUnload(event) {
|
|
110
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
111
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
112
|
-
}
|
|
113
|
-
async handleOnUnload() {
|
|
114
|
-
await this.baseComponent.finalize();
|
|
115
|
-
}
|
|
116
109
|
constructor() {
|
|
117
110
|
this.logInit = {};
|
|
118
111
|
this.token = undefined;
|
|
@@ -127,6 +120,7 @@ export class IdentificationComponent {
|
|
|
127
120
|
}
|
|
128
121
|
async componentWillLoad() {
|
|
129
122
|
Events.init(window);
|
|
123
|
+
Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
|
|
130
124
|
store.apiBaseUrl = this.api_url;
|
|
131
125
|
if (this.env && this.env != '') {
|
|
132
126
|
store.environment = this.env;
|
|
@@ -187,7 +181,6 @@ export class IdentificationComponent {
|
|
|
187
181
|
store.requestId = savedRequest;
|
|
188
182
|
this.order_id = savedRequest;
|
|
189
183
|
}
|
|
190
|
-
await this.baseComponent.initialize();
|
|
191
184
|
if (flowStatusToSet == null) {
|
|
192
185
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
193
186
|
if (flowSt) {
|
|
@@ -239,8 +232,8 @@ export class IdentificationComponent {
|
|
|
239
232
|
}
|
|
240
233
|
ML5.getInstance();
|
|
241
234
|
}
|
|
242
|
-
|
|
243
|
-
|
|
235
|
+
disconnectedCallback() {
|
|
236
|
+
Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Finalized);
|
|
244
237
|
}
|
|
245
238
|
render() {
|
|
246
239
|
let currentBlock = h("div", null);
|
|
@@ -443,18 +436,6 @@ export class IdentificationComponent {
|
|
|
443
436
|
"target": undefined,
|
|
444
437
|
"capture": false,
|
|
445
438
|
"passive": false
|
|
446
|
-
}, {
|
|
447
|
-
"name": "onbeforeunload",
|
|
448
|
-
"method": "handleOnBeforeUnload",
|
|
449
|
-
"target": "window",
|
|
450
|
-
"capture": false,
|
|
451
|
-
"passive": false
|
|
452
|
-
}, {
|
|
453
|
-
"name": "onunload",
|
|
454
|
-
"method": "handleOnUnload",
|
|
455
|
-
"target": "window",
|
|
456
|
-
"capture": false,
|
|
457
|
-
"passive": false
|
|
458
439
|
}];
|
|
459
440
|
}
|
|
460
441
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, a as getElement } from './index-
|
|
1
|
+
import { g as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, a as getElement } from './index-9d69e511.js';
|
|
2
2
|
|
|
3
3
|
var OrderStatuses;
|
|
4
4
|
(function (OrderStatuses) {
|
|
@@ -6433,7 +6433,7 @@ function v4(options, buf, offset) {
|
|
|
6433
6433
|
}
|
|
6434
6434
|
|
|
6435
6435
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6436
|
-
const version$1 = "3.5.
|
|
6436
|
+
const version$1 = "3.5.15";
|
|
6437
6437
|
const description = "Person Identification Component";
|
|
6438
6438
|
const main = "./dist/index.cjs.js";
|
|
6439
6439
|
const module = "./dist/index.js";
|
|
@@ -6599,13 +6599,6 @@ const IdentificationComponent = class {
|
|
|
6599
6599
|
Events.flowError(this.errorTitle);
|
|
6600
6600
|
state.flowStatus = FlowStatus.ERROREND;
|
|
6601
6601
|
}
|
|
6602
|
-
handleOnBeforeUnload(event) {
|
|
6603
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6604
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6605
|
-
}
|
|
6606
|
-
async handleOnUnload() {
|
|
6607
|
-
await this.baseComponent.finalize();
|
|
6608
|
-
}
|
|
6609
6602
|
constructor(hostRef) {
|
|
6610
6603
|
registerInstance(this, hostRef);
|
|
6611
6604
|
this.logInit = {};
|
|
@@ -6621,6 +6614,7 @@ const IdentificationComponent = class {
|
|
|
6621
6614
|
}
|
|
6622
6615
|
async componentWillLoad() {
|
|
6623
6616
|
Events.init(window);
|
|
6617
|
+
Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
|
|
6624
6618
|
state.apiBaseUrl = this.api_url;
|
|
6625
6619
|
if (this.env && this.env != '') {
|
|
6626
6620
|
state.environment = this.env;
|
|
@@ -6681,7 +6675,6 @@ const IdentificationComponent = class {
|
|
|
6681
6675
|
state.requestId = savedRequest;
|
|
6682
6676
|
this.order_id = savedRequest;
|
|
6683
6677
|
}
|
|
6684
|
-
await this.baseComponent.initialize();
|
|
6685
6678
|
if (flowStatusToSet == null) {
|
|
6686
6679
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
6687
6680
|
if (flowSt) {
|
|
@@ -6733,8 +6726,8 @@ const IdentificationComponent = class {
|
|
|
6733
6726
|
}
|
|
6734
6727
|
ML5.getInstance();
|
|
6735
6728
|
}
|
|
6736
|
-
|
|
6737
|
-
|
|
6729
|
+
disconnectedCallback() {
|
|
6730
|
+
Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Finalized);
|
|
6738
6731
|
}
|
|
6739
6732
|
render() {
|
|
6740
6733
|
let currentBlock = h("div", null);
|
|
@@ -6800,13 +6793,6 @@ const deviceSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iMzI
|
|
|
6800
6793
|
const landingValidationCss = "";
|
|
6801
6794
|
|
|
6802
6795
|
const LandingValidation = class {
|
|
6803
|
-
handleOnBeforeUnload(event) {
|
|
6804
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6805
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
6806
|
-
}
|
|
6807
|
-
async handleOnUnload() {
|
|
6808
|
-
await this.baseComponent.finalize();
|
|
6809
|
-
}
|
|
6810
6796
|
constructor(hostRef) {
|
|
6811
6797
|
registerInstance(this, hostRef);
|
|
6812
6798
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
@@ -9755,13 +9741,6 @@ var browser = {
|
|
|
9755
9741
|
const mobileRedirectCss = ".qr-canvas{max-height:60vh;max-width:80vw;text-align:center}.qr-canvas>canvas{width:100%;height:100%}";
|
|
9756
9742
|
|
|
9757
9743
|
const MobileRedirect = class {
|
|
9758
|
-
handleOnBeforeUnload(event) {
|
|
9759
|
-
event.returnValue = 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
9760
|
-
return 'Parasirea procesului de identificare va duce la pierderea datelor introduse.';
|
|
9761
|
-
}
|
|
9762
|
-
async handleOnUnload() {
|
|
9763
|
-
await this.baseComponent.finalize();
|
|
9764
|
-
}
|
|
9765
9744
|
constructor(hostRef) {
|
|
9766
9745
|
registerInstance(this, hostRef);
|
|
9767
9746
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
@@ -1395,7 +1395,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1395
1395
|
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1396
1396
|
if (listeners) {
|
|
1397
1397
|
listeners.map(([flags, name, method]) => {
|
|
1398
|
-
const target =
|
|
1398
|
+
const target = elm;
|
|
1399
1399
|
const handler = hostListenerProxy(hostRef, method);
|
|
1400
1400
|
const opts = hostListenerOpts(flags);
|
|
1401
1401
|
plt.ael(target, name, handler, opts);
|
|
@@ -1419,11 +1419,6 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1419
1419
|
consoleError(e);
|
|
1420
1420
|
}
|
|
1421
1421
|
};
|
|
1422
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
1423
|
-
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
|
1424
|
-
return win;
|
|
1425
|
-
return elm;
|
|
1426
|
-
};
|
|
1427
1422
|
// prettier-ignore
|
|
1428
1423
|
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1429
1424
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-9d69e511.js';
|
|
2
2
|
|
|
3
3
|
const loaderDotsCss = "i,i::before,i::after{animation-duration:0.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}body{font-family:sans-serif}i{width:300px;height:75px;margin:auto;display:block;background:no-repeat;background-image:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));background-size:75px 75px;background-position:0%, 50%;position:relative;transform:translateZ(0) scale(0.25);animation-name:slide}i::before,i::after{content:'';width:75px;height:75px;background:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));position:absolute;top:50%;margin-top:-37.5px;animation-name:reveal}i::before{left:1%;animation-delay:40ms}i::after{right:1%;animation-direction:reverse}@keyframes slide{from{background-position:0%, 50%}to{background-position:50%, 100%}}@keyframes reveal{from{transform:scale(0.001)}to{transform:scale(1)}}";
|
|
4
4
|
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
3
|
-
import './global-99fa9b6b.js';
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-9d69e511.js';
|
|
2
|
+
export { s as setNonce } from './index-9d69e511.js';
|
|
4
3
|
|
|
5
4
|
/*
|
|
6
5
|
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -12,7 +11,7 @@ const patchEsm = () => {
|
|
|
12
11
|
const defineCustomElements = (win, options) => {
|
|
13
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
14
13
|
return patchEsm().then(() => {
|
|
15
|
-
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[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"]
|
|
14
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[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,"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"]]],[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"]]],[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-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[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"]}]]]], options);
|
|
16
15
|
});
|
|
17
16
|
};
|
|
18
17
|
|
package/dist/esm/qbs-ect-cmp.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
3
|
-
import './global-99fa9b6b.js';
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-9d69e511.js';
|
|
2
|
+
export { s as setNonce } from './index-9d69e511.js';
|
|
4
3
|
|
|
5
4
|
/*
|
|
6
5
|
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +14,5 @@ const patchBrowser = () => {
|
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
patchBrowser().then(options => {
|
|
18
|
-
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[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"]
|
|
17
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[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,"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"]]],[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"]]],[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-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[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"]}]]]], options);
|
|
19
18
|
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,e,t=null,l=!1;const o={},s=n=>"object"==(n=typeof n)||"function"===n;function c(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,e,...t)=>{let l=null,o=!1,c=!1;const i=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&c?i[i.length-1].t+=l:i.push(o?r(null,l):l),c=o)};if(u(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=r(n,null);return a.l=e,i.length>0&&(a.o=i),a},r=(n,e)=>({i:0,u:n,t:e,m:null,o:null,l:null}),u={},a=n=>z(n).p,f=(n,e,t)=>{const l=a(n);return{emit:n=>d(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},d=(n,e,t)=>{const l=nn.ce(e,t);return n.dispatchEvent(l),l},m=new WeakMap,p=n=>"sc-"+n.h,h=(n,e,t,l,o,c)=>{if(t!==l){let i=I(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=$(t),s=$(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===e){for(const e in t)l&&null!=l[e]||(e.includes("-")?n.style.removeProperty(e):n.style[e]="");for(const e in l)t&&l[e]===t[e]||(e.includes("-")?n.style.setProperty(e,l[e]):n.style[e]=l[e])}else if("ref"===e)l&&l(n);else if(i||"o"!==e[0]||"n"!==e[1]){const r=s(l);if((i||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!i||4&c||o)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):I(Y,r)?r.slice(2):r[2]+e.slice(3),t&&nn.rel(n,e,t,!1),l&&nn.ael(n,e,l,!1)}},y=/\s/,$=n=>n?n.split(y):[],b=(n,e,t,l)=>{const s=11===e.m.nodeType&&e.m.host?e.m.host:e.m,c=n&&n.l||o,i=e.l||o;for(l in c)l in i||h(s,l,c[l],void 0,t,e.i);for(l in i)h(s,l,c[l],i[l],t,e.i)},w=(e,t,l)=>{const o=t.o[l];let s,c,i=0;if(null!==o.t)s=o.m=Z.createTextNode(o.t);else if(s=o.m=Z.createElement(o.u),b(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(i=0;i<o.o.length;++i)c=w(e,o,i),c&&s.appendChild(c);return s},v=(n,t,l,o,s,c)=>{let i,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=w(null,l,s),i&&(o[s].m=i,r.insertBefore(i,t)))},S=(n,e,t,l,o)=>{for(;e<=t;++e)(l=n[e])&&(o=l.m,M(l),o.remove())},g=(n,e)=>n.u===e.u,j=(n,e)=>{const t=e.m=n.m,l=n.o,o=e.o,s=e.t;null===s?(b(n,e,!1),null!==l&&null!==o?((n,e,t,l)=>{let o,s=0,c=0,i=e.length-1,r=e[0],u=e[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=e[++s]:null==u?u=e[--i]:null==f?f=l[++c]:null==d?d=l[--a]:g(r,f)?(j(r,f),r=e[++s],f=l[++c]):g(u,d)?(j(u,d),u=e[--i],d=l[--a]):g(r,d)?(j(r,d),n.insertBefore(r.m,u.m.nextSibling),r=e[++s],d=l[--a]):g(u,f)?(j(u,f),n.insertBefore(u.m,r.m),u=e[--i],f=l[++c]):(o=w(e&&e[c],t,c),f=l[++c],o&&r.m.parentNode.insertBefore(o,r.m));s>i?v(n,null==l[a+1]?null:l[a+1].m,t,l,c,a):c>a&&S(e,s,i)})(t,l,e,o):null!==o?(null!==n.t&&(t.textContent=""),v(t,null,e,o,0,o.length-1)):null!==l&&S(l,0,l.length-1)):n.t!==s&&(t.data=s)},M=n=>{n.l&&n.l.ref&&n.l.ref(null),n.o&&n.o.map(M)},k=(n,e)=>{e&&!n.$&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.$=e)))},C=(n,e)=>{if(n.i|=16,!(4&n.i))return k(n,n.v),an((()=>O(n,e)));n.i|=512},O=(n,e)=>{const t=n.S;let l;return e&&(n.i|=256,n.g&&(n.g.map((([n,e])=>R(t,n,e))),n.g=null),l=R(t,"componentWillLoad")),l=T(l,(()=>R(t,"componentWillRender"))),T(l,(()=>L(n,t,e)))},L=async(n,e,t)=>{const l=n.p,o=l["s-rc"];t&&(n=>{const e=n.j,t=n.p,l=e.i,o=((n,e)=>{var t;let l=p(e);const o=X.get(l);if(n=11===n.nodeType?n:Z,o)if("string"==typeof o){let e,s=m.get(n=n.head||n);if(s||m.set(n,s=new Set),!s.has(l)){{e=Z.createElement("style"),e.innerHTML=o;const l=null!==(t=nn.M)&&void 0!==t?t:c(Z);null!=l&&e.setAttribute("nonce",l),n.insertBefore(e,n.querySelector("link"))}s&&s.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(n);P(n,e),o&&(o.map((n=>n())),l["s-rc"]=void 0);{const e=l["s-p"],t=()=>x(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},P=(l,o)=>{try{t=o,o=o.render(),l.i&=-17,l.i|=2,((t,l)=>{const o=t.p,s=t.j,c=t.k||r(null,null),a=(n=>n&&n.u===u)(l)?l:i(null,null,l);e=o.tagName,s.C&&(a.l=a.l||{},s.C.map((([n,e])=>a.l[e]=o[n]))),a.u=null,a.i|=4,t.k=a,a.m=c.m=o.shadowRoot||o,n=o["s-sc"],j(c,a)})(l,o)}catch(n){J(n,l.p)}return t=null,null},W=()=>t,x=n=>{const e=n.p,t=n.S,l=n.v;64&n.i||(n.i|=64,q(e),R(t,"componentDidLoad"),n.O(e),l||N()),n.$&&(n.$(),n.$=void 0),512&n.i&&un((()=>C(n,!1))),n.i&=-517},E=n=>{{const e=z(n),t=e.p.isConnected;return t&&2==(18&e.i)&&C(e,!1),t}},N=()=>{q(Z.documentElement),un((()=>d(Y,"appload",{detail:{namespace:"qbs-ect-cmp"}})))},R=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){J(n)}},T=(n,e)=>n&&n.then?n.then(e):e(),q=n=>n.classList.add("hydrated"),A=(n,e,t)=>{if(e.L){n.watchers&&(e.P=n.watchers);const l=Object.entries(e.L),o=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,n,{get(){return((n,e)=>z(this).W.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=z(n),c=o.p,i=o.W.get(e),r=o.i,u=o.S;if(t=((n,e)=>null==n||s(n)?n:2&e?parseFloat(n):1&e?n+"":n)(t,l.L[e][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.W.set(e,t),u)){if(l.P&&128&r){const n=l.P[e];n&&n.map((n=>{try{u[n](t,i,e)}catch(n){J(n,c)}}))}2==(18&r)&&C(o,!1)}})(this,n,t,e)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(n,e,l){nn.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(o.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,e])=>15&e[0])).map((([n,l])=>{const o=l[1]||n;return t.set(o,n),512&l[0]&&e.C.push([n,o]),o}))}}return n},F=(n,e={})=>{var t;const l=[],o=e.exclude||[],s=Y.customElements,i=Z.head,r=i.querySelector("meta[charset]"),u=Z.createElement("style"),a=[];let f,d=!0;Object.assign(nn,e),nn.N=new URL(e.resourcesUrl||"./",Z.baseURI).href,n.map((n=>{n[1].map((e=>{const t={i:e[0],h:e[1],L:e[2],R:e[3]};t.L=e[2],t.R=e[3],t.C=[],t.P={};const c=t.h,i=class extends HTMLElement{constructor(n){super(n),G(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):nn.jmp((()=>(n=>{if(0==(1&nn.i)){const e=z(n),t=e.j,l=()=>{};if(1&e.i)U(n,e,t.R);else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){k(e,e.v=t);break}}t.L&&Object.entries(t.L).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t,l,o)=>{if(0==(32&e.i)){{if(e.i|=32,(o=Q(t)).then){const n=()=>{};o=await o,n()}o.isProxied||(t.P=o.watchers,A(o,t,2),o.isProxied=!0);const n=()=>{};e.i|=8;try{new o(e)}catch(n){J(n)}e.i&=-9,e.i|=128,n()}if(o.style){let n=o.style;const e=p(t);if(!X.has(e)){const l=()=>{};((n,e,t)=>{let l=X.get(n);tn&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,X.set(n,l)})(e,n,!!(1&t.i)),l()}}}const s=e.v,c=()=>C(e,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,e,t)}l()}})(this)))}disconnectedCallback(){nn.jmp((()=>(()=>{if(0==(1&nn.i)){const n=z(this),e=n.S;n.T&&(n.T.map((n=>n())),n.T=void 0),R(e,"disconnectedCallback")}})()))}componentOnReady(){return z(this).q}};t.A=n[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,A(i,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(t=nn.M)&&void 0!==t?t:c(Z);null!=n&&u.setAttribute("nonce",n),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((n=>n.connectedCallback())):nn.jmp((()=>f=setTimeout(N,30)))},U=(n,e,t)=>{t&&t.map((([t,l,o])=>{const s=n,c=D(e,o),i=H(t);nn.ael(s,l,c,i),(e.T=e.T||[]).push((()=>nn.rel(s,l,c,i)))}))},D=(n,e)=>t=>{try{256&n.i?n.S[e](t):(n.g=n.g||[]).push([e,t])}catch(n){J(n)}},H=n=>0!=(2&n),V=n=>nn.M=n,_=new WeakMap,z=n=>_.get(n),B=(n,e)=>_.set(e.S=n,e),G=(n,e)=>{const t={i:0,p:n,j:e,W:new Map};return t.q=new Promise((n=>t.O=n)),n["s-p"]=[],n["s-rc"]=[],U(n,t,e.R),_.set(n,t)},I=(n,e)=>e in n,J=(n,e)=>(0,console.error)(n,e),K=new Map,Q=n=>{const e=n.h.replace(/-/g,"_"),t=n.A,l=K.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(K.set(t,n),n[e])),J)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},X=new Map,Y="undefined"!=typeof window?window:{},Z=Y.document||{head:{}},nn={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},en=n=>Promise.resolve(n),tn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),ln=[],on=[],sn=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&nn.i?un(rn):nn.raf(rn))},cn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){J(n)}n.length=0},rn=()=>{cn(ln),cn(on),(l=ln.length>0)&&nn.raf(rn)},un=n=>en().then(n),an=sn(on,!0);export{a,F as b,f as c,E as f,W as g,i as h,en as p,B as r,V as s}
|