@ekyc_qoobiss/qbs-ect-cmp 3.6.15 → 3.6.17
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_19.cjs.entry.js +316 -701
- package/dist/cjs/{index-79f82518.js → index-41696e0e.js} +6 -1
- package/dist/cjs/loader-dots.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/qbs-ect-cmp.cjs.js +2 -2
- package/dist/cjs/random-actions.cjs.entry.js +22 -0
- package/dist/cjs/store-4bf93725.js +415 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/common/agreement-check/agreement-check.js +21 -2
- package/dist/collection/components/common/random-actions/random-actions.css +0 -0
- package/dist/collection/components/common/random-actions/random-actions.js +20 -0
- package/dist/collection/components/flow/process-id/process-id.js +3 -0
- package/dist/collection/components/flow/user-liveness/user-liveness.js +13 -15
- package/dist/collection/components/identification-component/identification-component.css +7 -0
- package/dist/esm/agreement-check_19.entry.js +30 -415
- package/dist/esm/{index-9d69e511.js → index-cf54a432.js} +7 -2
- package/dist/esm/loader-dots.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/qbs-ect-cmp.js +3 -3
- package/dist/esm/random-actions.entry.js +18 -0
- package/dist/esm/store-b76678da.js +399 -0
- package/dist/qbs-ect-cmp/{p-4c8e922b.entry.js → p-054dc5b3.entry.js} +1 -1
- package/dist/qbs-ect-cmp/p-0a37620f.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-27abb3e6.js +1 -0
- package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
- package/dist/qbs-ect-cmp/{p-a85dd6fc.entry.js → p-b828c183.entry.js} +22 -22
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
- package/dist/types/components/common/random-actions/random-actions.d.ts +7 -0
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +2 -2
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/p-06e42b28.js +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-cf54a432.js';
|
|
2
|
+
export { s as setNonce } from './index-cf54a432.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_19",[[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],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
14
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_19",[[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],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]},[[9,"scroll","handleScroll"]]],[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);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
package/dist/esm/qbs-ect-cmp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-cf54a432.js';
|
|
2
|
+
export { s as setNonce } from './index-cf54a432.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_19",[[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],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
17
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_19",[[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],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]},[[9,"scroll","handleScroll"]]],[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);
|
|
18
18
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-cf54a432.js';
|
|
2
|
+
import { H as HowToValues } from './store-b76678da.js';
|
|
3
|
+
|
|
4
|
+
const randomActionsCss = "";
|
|
5
|
+
|
|
6
|
+
const RandomActions = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
componentWillLoad() { }
|
|
11
|
+
buttonClick() { }
|
|
12
|
+
render() {
|
|
13
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.topTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, HowToValues.FooterText))))));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
RandomActions.style = randomActionsCss;
|
|
17
|
+
|
|
18
|
+
export { RandomActions as random_actions };
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { a as getRenderingRef, f as forceUpdate } from './index-cf54a432.js';
|
|
2
|
+
|
|
3
|
+
const appendToMap = (map, propName, value) => {
|
|
4
|
+
const items = map.get(propName);
|
|
5
|
+
if (!items) {
|
|
6
|
+
map.set(propName, [value]);
|
|
7
|
+
}
|
|
8
|
+
else if (!items.includes(value)) {
|
|
9
|
+
items.push(value);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const debounce = (fn, ms) => {
|
|
13
|
+
let timeoutId;
|
|
14
|
+
return (...args) => {
|
|
15
|
+
if (timeoutId) {
|
|
16
|
+
clearTimeout(timeoutId);
|
|
17
|
+
}
|
|
18
|
+
timeoutId = setTimeout(() => {
|
|
19
|
+
timeoutId = 0;
|
|
20
|
+
fn(...args);
|
|
21
|
+
}, ms);
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Check if a possible element isConnected.
|
|
27
|
+
* The property might not be there, so we check for it.
|
|
28
|
+
*
|
|
29
|
+
* We want it to return true if isConnected is not a property,
|
|
30
|
+
* otherwise we would remove these elements and would not update.
|
|
31
|
+
*
|
|
32
|
+
* Better leak in Edge than to be useless.
|
|
33
|
+
*/
|
|
34
|
+
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
35
|
+
const cleanupElements = debounce((map) => {
|
|
36
|
+
for (let key of map.keys()) {
|
|
37
|
+
map.set(key, map.get(key).filter(isConnected));
|
|
38
|
+
}
|
|
39
|
+
}, 2000);
|
|
40
|
+
const stencilSubscription = () => {
|
|
41
|
+
if (typeof getRenderingRef !== 'function') {
|
|
42
|
+
// If we are not in a stencil project, we do nothing.
|
|
43
|
+
// This function is not really exported by @stencil/core.
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
const elmsToUpdate = new Map();
|
|
47
|
+
return {
|
|
48
|
+
dispose: () => elmsToUpdate.clear(),
|
|
49
|
+
get: (propName) => {
|
|
50
|
+
const elm = getRenderingRef();
|
|
51
|
+
if (elm) {
|
|
52
|
+
appendToMap(elmsToUpdate, propName, elm);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
set: (propName) => {
|
|
56
|
+
const elements = elmsToUpdate.get(propName);
|
|
57
|
+
if (elements) {
|
|
58
|
+
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
|
59
|
+
}
|
|
60
|
+
cleanupElements(elmsToUpdate);
|
|
61
|
+
},
|
|
62
|
+
reset: () => {
|
|
63
|
+
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
|
64
|
+
cleanupElements(elmsToUpdate);
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
|
70
|
+
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
71
|
+
const unwrappedState = unwrap(defaultState);
|
|
72
|
+
let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
|
|
73
|
+
const handlers = {
|
|
74
|
+
dispose: [],
|
|
75
|
+
get: [],
|
|
76
|
+
set: [],
|
|
77
|
+
reset: [],
|
|
78
|
+
};
|
|
79
|
+
const reset = () => {
|
|
80
|
+
var _a;
|
|
81
|
+
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
|
82
|
+
// otherwise, the state won't be properly reset
|
|
83
|
+
states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
|
|
84
|
+
handlers.reset.forEach((cb) => cb());
|
|
85
|
+
};
|
|
86
|
+
const dispose = () => {
|
|
87
|
+
// Call first dispose as resetting the state would
|
|
88
|
+
// cause less updates ;)
|
|
89
|
+
handlers.dispose.forEach((cb) => cb());
|
|
90
|
+
reset();
|
|
91
|
+
};
|
|
92
|
+
const get = (propName) => {
|
|
93
|
+
handlers.get.forEach((cb) => cb(propName));
|
|
94
|
+
return states.get(propName);
|
|
95
|
+
};
|
|
96
|
+
const set = (propName, value) => {
|
|
97
|
+
const oldValue = states.get(propName);
|
|
98
|
+
if (shouldUpdate(value, oldValue, propName)) {
|
|
99
|
+
states.set(propName, value);
|
|
100
|
+
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const state = (typeof Proxy === 'undefined'
|
|
104
|
+
? {}
|
|
105
|
+
: new Proxy(unwrappedState, {
|
|
106
|
+
get(_, propName) {
|
|
107
|
+
return get(propName);
|
|
108
|
+
},
|
|
109
|
+
ownKeys(_) {
|
|
110
|
+
return Array.from(states.keys());
|
|
111
|
+
},
|
|
112
|
+
getOwnPropertyDescriptor() {
|
|
113
|
+
return {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
configurable: true,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
has(_, propName) {
|
|
119
|
+
return states.has(propName);
|
|
120
|
+
},
|
|
121
|
+
set(_, propName, value) {
|
|
122
|
+
set(propName, value);
|
|
123
|
+
return true;
|
|
124
|
+
},
|
|
125
|
+
}));
|
|
126
|
+
const on = (eventName, callback) => {
|
|
127
|
+
handlers[eventName].push(callback);
|
|
128
|
+
return () => {
|
|
129
|
+
removeFromArray(handlers[eventName], callback);
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
const onChange = (propName, cb) => {
|
|
133
|
+
const unSet = on('set', (key, newValue) => {
|
|
134
|
+
if (key === propName) {
|
|
135
|
+
cb(newValue);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
// We need to unwrap the defaultState because it might be a function.
|
|
139
|
+
// Otherwise we might not be sending the right reset value.
|
|
140
|
+
const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
|
|
141
|
+
return () => {
|
|
142
|
+
unSet();
|
|
143
|
+
unReset();
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
const use = (...subscriptions) => {
|
|
147
|
+
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
|
148
|
+
if (subscription.set) {
|
|
149
|
+
unsubs.push(on('set', subscription.set));
|
|
150
|
+
}
|
|
151
|
+
if (subscription.get) {
|
|
152
|
+
unsubs.push(on('get', subscription.get));
|
|
153
|
+
}
|
|
154
|
+
if (subscription.reset) {
|
|
155
|
+
unsubs.push(on('reset', subscription.reset));
|
|
156
|
+
}
|
|
157
|
+
if (subscription.dispose) {
|
|
158
|
+
unsubs.push(on('dispose', subscription.dispose));
|
|
159
|
+
}
|
|
160
|
+
return unsubs;
|
|
161
|
+
}, []);
|
|
162
|
+
return () => unsubs.forEach((unsub) => unsub());
|
|
163
|
+
};
|
|
164
|
+
const forceUpdate = (key) => {
|
|
165
|
+
const oldValue = states.get(key);
|
|
166
|
+
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
167
|
+
};
|
|
168
|
+
return {
|
|
169
|
+
state,
|
|
170
|
+
get,
|
|
171
|
+
set,
|
|
172
|
+
on,
|
|
173
|
+
onChange,
|
|
174
|
+
use,
|
|
175
|
+
dispose,
|
|
176
|
+
reset,
|
|
177
|
+
forceUpdate,
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
const removeFromArray = (array, item) => {
|
|
181
|
+
const index = array.indexOf(item);
|
|
182
|
+
if (index >= 0) {
|
|
183
|
+
array[index] = array[array.length - 1];
|
|
184
|
+
array.length--;
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
const createStore = (defaultState, shouldUpdate) => {
|
|
189
|
+
const map = createObservableMap(defaultState, shouldUpdate);
|
|
190
|
+
map.use(stencilSubscription());
|
|
191
|
+
return map;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
var FlowStatus;
|
|
195
|
+
(function (FlowStatus) {
|
|
196
|
+
FlowStatus[FlowStatus["LANDING"] = 0] = "LANDING";
|
|
197
|
+
FlowStatus[FlowStatus["AGREEMENT"] = 1] = "AGREEMENT";
|
|
198
|
+
FlowStatus[FlowStatus["PHONE"] = 2] = "PHONE";
|
|
199
|
+
FlowStatus[FlowStatus["CODE"] = 3] = "CODE";
|
|
200
|
+
FlowStatus[FlowStatus["CODEERROR"] = 4] = "CODEERROR";
|
|
201
|
+
FlowStatus[FlowStatus["ID"] = 5] = "ID";
|
|
202
|
+
FlowStatus[FlowStatus["LIVENESS"] = 6] = "LIVENESS";
|
|
203
|
+
FlowStatus[FlowStatus["COMPLETE"] = 7] = "COMPLETE";
|
|
204
|
+
FlowStatus[FlowStatus["ERROREND"] = 8] = "ERROREND";
|
|
205
|
+
FlowStatus[FlowStatus["CAMERAERROR"] = 9] = "CAMERAERROR";
|
|
206
|
+
FlowStatus[FlowStatus["NONE"] = 10] = "NONE";
|
|
207
|
+
})(FlowStatus || (FlowStatus = {}));
|
|
208
|
+
|
|
209
|
+
class GlobalValues {
|
|
210
|
+
}
|
|
211
|
+
GlobalValues.FooterText = 'Qoobiss eKYC';
|
|
212
|
+
GlobalValues.VideoLenght = 3100;
|
|
213
|
+
class HowToValues extends GlobalValues {
|
|
214
|
+
}
|
|
215
|
+
HowToValues.IdTitile = 'Prezintă actul tău de identitate';
|
|
216
|
+
HowToValues.IdSubTitileFace = 'Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
|
|
217
|
+
HowToValues.IdSubTitileBack = 'Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
|
|
218
|
+
HowToValues.IdButton = 'Sunt gata!';
|
|
219
|
+
HowToValues.SelfieTitile = 'Validare video';
|
|
220
|
+
HowToValues.SelfieSubTitile = 'Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.';
|
|
221
|
+
HowToValues.SelfieButton = 'Sunt gata!';
|
|
222
|
+
class LandingValues extends GlobalValues {
|
|
223
|
+
}
|
|
224
|
+
LandingValues.Title = 'Validarea identității la distanță este o procedură simplă și rapidă';
|
|
225
|
+
LandingValues.Description = 'Asigură-te că ai:';
|
|
226
|
+
LandingValues.IdInfo = 'Actul de identitate, în original';
|
|
227
|
+
LandingValues.DeviceInfo = 'Un telefon mobil sau un calculator cu camera web';
|
|
228
|
+
LandingValues.SmsInfo = 'Acces la un telefon mobil ce permite primirea de mesaje SMS';
|
|
229
|
+
LandingValues.Warning = 'ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.';
|
|
230
|
+
LandingValues.WarningMd = 'ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.';
|
|
231
|
+
LandingValues.Terms = 'Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.';
|
|
232
|
+
LandingValues.Button = 'Am înțeles';
|
|
233
|
+
LandingValues.ButtonLeave = 'Nu sunt pregătit';
|
|
234
|
+
class PhoneValidationValues extends GlobalValues {
|
|
235
|
+
}
|
|
236
|
+
PhoneValidationValues.Title = 'Este necesar să validăm numărul tău de telefon';
|
|
237
|
+
PhoneValidationValues.Description = 'Introdu mai jos numarul tau de telefon:';
|
|
238
|
+
PhoneValidationValues.Button = 'Trimite SMS de verificare';
|
|
239
|
+
PhoneValidationValues.Label = 'Numarul tau de telefon';
|
|
240
|
+
class CodeValidationValues extends GlobalValues {
|
|
241
|
+
}
|
|
242
|
+
CodeValidationValues.Title = 'Introdu codul de validare primit prin sms:';
|
|
243
|
+
CodeValidationValues.Description = ' ';
|
|
244
|
+
CodeValidationValues.Button = 'Validează';
|
|
245
|
+
CodeValidationValues.Error = 'Codul introdus nu este valid. Asigură-te că îl introduci corect';
|
|
246
|
+
class CompleteValues extends GlobalValues {
|
|
247
|
+
}
|
|
248
|
+
CompleteValues.Title = 'Procesul a fost finalizat.';
|
|
249
|
+
CompleteValues.Description = 'Vei fi redirecționat în câteva momente.';
|
|
250
|
+
CompleteValues.Message = 'Îți mulțumim!';
|
|
251
|
+
class SessionKeys {
|
|
252
|
+
}
|
|
253
|
+
SessionKeys.FlowStatusKey = 'qbs-ect-flowstatus';
|
|
254
|
+
SessionKeys.RequestIdKey = 'qbs-ect-requestid';
|
|
255
|
+
SessionKeys.TokenKey = 'qbs-ect-token';
|
|
256
|
+
SessionKeys.InitialisedKey = 'qbs-ect-initialised';
|
|
257
|
+
SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
|
|
258
|
+
SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
|
|
259
|
+
SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
|
|
260
|
+
SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
261
|
+
class IdCaptureValues extends GlobalValues {
|
|
262
|
+
}
|
|
263
|
+
IdCaptureValues.Button = 'Încerc din nou';
|
|
264
|
+
IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
|
|
265
|
+
IdCaptureValues.TitleBack = 'Încadrează spatele actului de identitate în chenarul de pe ecran.';
|
|
266
|
+
IdCaptureValues.TtileRotate = 'Întoarce actul de identitate.';
|
|
267
|
+
IdCaptureValues.ErrorTitleR1 = 'Nu am putut colecta informațiile din actul de identitate!';
|
|
268
|
+
IdCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
|
|
269
|
+
IdCaptureValues.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. ';
|
|
270
|
+
IdCaptureValues.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.';
|
|
271
|
+
IdCaptureValues.IDPoseMapping = {
|
|
272
|
+
0: '',
|
|
273
|
+
1: 'Înclină actul de identitate spre spate.',
|
|
274
|
+
2: '',
|
|
275
|
+
3: '',
|
|
276
|
+
4: '',
|
|
277
|
+
};
|
|
278
|
+
IdCaptureValues.IDPoseDemoMapping = {
|
|
279
|
+
0: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4',
|
|
280
|
+
1: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4',
|
|
281
|
+
2: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4',
|
|
282
|
+
3: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4',
|
|
283
|
+
4: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4',
|
|
284
|
+
};
|
|
285
|
+
IdCaptureValues.Loading = 'Transferăm datele. Asteptați...';
|
|
286
|
+
class SelfieCaptureValues extends GlobalValues {
|
|
287
|
+
}
|
|
288
|
+
SelfieCaptureValues.Title = 'Încadrează fața în chenarul de pe ecran.';
|
|
289
|
+
SelfieCaptureValues.FinalTitle = 'Îndreaptă capul și încadrează fața în chenarul de pe ecran.';
|
|
290
|
+
SelfieCaptureValues.ErrorTitleR1 = 'Procesul a eșuat!';
|
|
291
|
+
SelfieCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
|
|
292
|
+
SelfieCaptureValues.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. ';
|
|
293
|
+
SelfieCaptureValues.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.';
|
|
294
|
+
SelfieCaptureValues.Loading = 'Transferăm datele. Asteptați...';
|
|
295
|
+
SelfieCaptureValues.FacePoseMapping = {
|
|
296
|
+
0: 'Întoarce capul spre stânga.',
|
|
297
|
+
1: 'Întoarce capul spre dreapta.',
|
|
298
|
+
2: 'Înclină capul spre spate.',
|
|
299
|
+
3: 'Înclină capul în față.',
|
|
300
|
+
// 4: 'Înclină capul spre stânga.',
|
|
301
|
+
// 5: 'Înclină capul spre dreapta.',
|
|
302
|
+
4: '',
|
|
303
|
+
};
|
|
304
|
+
SelfieCaptureValues.FacePoseDemoMapping = {
|
|
305
|
+
0: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4',
|
|
306
|
+
1: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4',
|
|
307
|
+
2: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4',
|
|
308
|
+
3: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4',
|
|
309
|
+
// 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_left.mp4',
|
|
310
|
+
// 5: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_right.mp4',
|
|
311
|
+
4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4',
|
|
312
|
+
};
|
|
313
|
+
class AgreementInfoValues extends GlobalValues {
|
|
314
|
+
}
|
|
315
|
+
AgreementInfoValues.Title = 'Pentru începerea identificării avem nevoie de acordurile tale:';
|
|
316
|
+
AgreementInfoValues.Button = 'Încep identificarea';
|
|
317
|
+
AgreementInfoValues.Terms = 'Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare';
|
|
318
|
+
AgreementInfoValues.Agreement = 'Îmi exprim acordul pentru prelucrarea datelor cu caracter personal';
|
|
319
|
+
class AgreementCheckValues extends GlobalValues {
|
|
320
|
+
}
|
|
321
|
+
AgreementCheckValues.ButtonYes = 'Sunt de acord';
|
|
322
|
+
AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
|
|
323
|
+
class ApiUrls {
|
|
324
|
+
constructor() {
|
|
325
|
+
this.uriEnv = '/';
|
|
326
|
+
this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
|
|
327
|
+
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
328
|
+
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
329
|
+
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
330
|
+
this.UploadCapture = this.uriEnv + 'validation/upload/capture';
|
|
331
|
+
this.GetAgreement = this.uriEnv + 'validation/agreement/content';
|
|
332
|
+
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
333
|
+
this.SendLink = this.uriEnv + 'validation/otp/sendlink';
|
|
334
|
+
this.GetStatus = this.uriEnv + 'validation/identity/status';
|
|
335
|
+
this.AddLog = this.uriEnv + 'validation/logs/add';
|
|
336
|
+
this.AddStep = this.uriEnv + 'validation/logs/step';
|
|
337
|
+
this.AbortRequest = this.uriEnv + 'validation/identity/abort';
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
class MobileRedirectValues extends GlobalValues {
|
|
341
|
+
}
|
|
342
|
+
MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu un smartphone.';
|
|
343
|
+
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
|
|
344
|
+
MobileRedirectValues.Validation = 'Număr de telefon invalid!';
|
|
345
|
+
MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
|
|
346
|
+
MobileRedirectValues.InfoAborted = 'Procesului de pe smartphone a fost amanat.';
|
|
347
|
+
class CameraErrorValues extends GlobalValues {
|
|
348
|
+
}
|
|
349
|
+
CameraErrorValues.Title = 'Procesul de indetificare nu poate continua.';
|
|
350
|
+
CameraErrorValues.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.';
|
|
351
|
+
CameraErrorValues.Button = 'Reincep procesul';
|
|
352
|
+
CameraErrorValues.HowToLink = 'https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4';
|
|
353
|
+
|
|
354
|
+
const { state, onChange } = createStore({
|
|
355
|
+
flowStatus: FlowStatus.NONE,
|
|
356
|
+
environment: 'PROD',
|
|
357
|
+
debug: false,
|
|
358
|
+
requestId: '',
|
|
359
|
+
redirectId: '',
|
|
360
|
+
initialised: false,
|
|
361
|
+
token: '',
|
|
362
|
+
cameraIds: [],
|
|
363
|
+
cameraId: '',
|
|
364
|
+
hasIdBack: false,
|
|
365
|
+
hasSelfieGesture: false,
|
|
366
|
+
hasIdTilt: false,
|
|
367
|
+
agreementsValidation: true,
|
|
368
|
+
phoneValidation: true,
|
|
369
|
+
phoneNumber: '',
|
|
370
|
+
apiBaseUrl: 'https://apiro.id-kyc.com',
|
|
371
|
+
device: null,
|
|
372
|
+
recordingRetryCount: 0,
|
|
373
|
+
});
|
|
374
|
+
onChange('environment', value => {
|
|
375
|
+
state.debug = value == 'QA';
|
|
376
|
+
});
|
|
377
|
+
onChange('flowStatus', value => {
|
|
378
|
+
sessionStorage.setItem(SessionKeys.FlowStatusKey, FlowStatus[value]);
|
|
379
|
+
});
|
|
380
|
+
onChange('token', value => {
|
|
381
|
+
sessionStorage.setItem(SessionKeys.TokenKey, value);
|
|
382
|
+
});
|
|
383
|
+
onChange('requestId', value => {
|
|
384
|
+
sessionStorage.setItem(SessionKeys.RequestIdKey, value);
|
|
385
|
+
});
|
|
386
|
+
onChange('initialised', value => {
|
|
387
|
+
sessionStorage.setItem(SessionKeys.InitialisedKey, String(value));
|
|
388
|
+
});
|
|
389
|
+
onChange('hasIdBack', value => {
|
|
390
|
+
sessionStorage.setItem(SessionKeys.HasIdBackKey, String(value));
|
|
391
|
+
});
|
|
392
|
+
onChange('agreementsValidation', value => {
|
|
393
|
+
sessionStorage.setItem(SessionKeys.AgreementValidationKey, String(value));
|
|
394
|
+
});
|
|
395
|
+
onChange('phoneValidation', value => {
|
|
396
|
+
sessionStorage.setItem(SessionKeys.PhoneValidationKey, String(value));
|
|
397
|
+
});
|
|
398
|
+
|
|
399
|
+
export { ApiUrls as A, CameraErrorValues as C, FlowStatus as F, GlobalValues as G, HowToValues as H, IdCaptureValues as I, LandingValues as L, MobileRedirectValues as M, PhoneValidationValues as P, SessionKeys as S, AgreementCheckValues as a, AgreementInfoValues as b, SelfieCaptureValues as c, CompleteValues as d, CodeValidationValues as e, state as s };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as a}from"./p-
|
|
1
|
+
import{r as i,h as a}from"./p-8942656c.js";const e=class{constructor(a){i(this,a)}render(){return a("i",null)}};e.style="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)}}";export{e as loader_dots}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s}from"./p-8942656c.js";import{H as o}from"./p-27abb3e6.js";const i=class{constructor(s){t(this,s)}componentWillLoad(){}buttonClick(){}render(){return s("div",{class:"container"},s("div",{class:"row"},s("div",{class:"text-center"},s("h1",null,this.topTitle)),s("div",{class:"pos-relative show-bottom"},s("div",{class:"btn-buletin"},s("button",{class:"main-button",onClick:()=>this.buttonClick()},this.buttonText),s("p",{class:"main-text font-size-18 text-right mb-0"},o.FooterText)))))}};i.style="";export{i as random_actions}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,f as t}from"./p-8942656c.js";const a=e=>!("isConnected"in e)||e.isConnected,i=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(a))})(...t)}),2e3)}})(),n=e=>"function"==typeof e?e():e;var s;!function(e){e[e.LANDING=0]="LANDING",e[e.AGREEMENT=1]="AGREEMENT",e[e.PHONE=2]="PHONE",e[e.CODE=3]="CODE",e[e.CODEERROR=4]="CODEERROR",e[e.ID=5]="ID",e[e.LIVENESS=6]="LIVENESS",e[e.COMPLETE=7]="COMPLETE",e[e.ERROREND=8]="ERROREND",e[e.CAMERAERROR=9]="CAMERAERROR",e[e.NONE=10]="NONE"}(s||(s={}));class r{}r.FooterText="Qoobiss eKYC",r.VideoLenght=3100;class c extends r{}c.IdTitile="Prezintă actul tău de identitate",c.IdSubTitileFace="Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",c.IdSubTitileBack="Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",c.IdButton="Sunt gata!",c.SelfieTitile="Validare video",c.SelfieSubTitile="Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.",c.SelfieButton="Sunt gata!";class o extends r{}o.Title="Validarea identității la distanță este o procedură simplă și rapidă",o.Description="Asigură-te că ai:",o.IdInfo="Actul de identitate, în original",o.DeviceInfo="Un telefon mobil sau un calculator cu camera web",o.SmsInfo="Acces la un telefon mobil ce permite primirea de mesaje SMS",o.Warning="ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",o.WarningMd="ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",o.Terms="Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",o.Button="Am înțeles",o.ButtonLeave="Nu sunt pregătit";class d extends r{}d.Title="Este necesar să validăm numărul tău de telefon",d.Description="Introdu mai jos numarul tau de telefon:",d.Button="Trimite SMS de verificare",d.Label="Numarul tau de telefon";class l extends r{}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 u extends r{}u.Title="Procesul a fost finalizat.",u.Description="Vei fi redirecționat în câteva momente.",u.Message="Îți mulțumim!";class p{}p.FlowStatusKey="qbs-ect-flowstatus",p.RequestIdKey="qbs-ect-requestid",p.TokenKey="qbs-ect-token",p.InitialisedKey="qbs-ect-initialised",p.HasIdBackKey="qbs-ect-has-id-back",p.AgreementValidationKey="qbs-ect-agreement-validation",p.PhoneValidationKey="qbs-ect-phone-validation",p.RefreshDoneKey="qbs-ect-refresh-done";class m extends r{}m.Button="Încerc din nou",m.Title="Încadrează actul de identitate în chenarul de pe ecran.",m.TitleBack="Încadrează spatele actului de identitate în chenarul de pe ecran.",m.TtileRotate="Întoarce actul de identitate.",m.ErrorTitleR1="Nu am putut colecta informațiile din actul de identitate!",m.ErrorTitleR2="Te rugăm să mai încerci o dată!",m.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. ",m.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.",m.IDPoseMapping={0:"",1:"Înclină actul de identitate spre spate.",2:"",3:"",4:""},m.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"},m.Loading="Transferăm datele. Asteptați...";class f extends r{}f.Title="Încadrează fața în chenarul de pe ecran.",f.FinalTitle="Îndreaptă capul și încadrează fața în chenarul de pe ecran.",f.ErrorTitleR1="Procesul a eșuat!",f.ErrorTitleR2="Te rugăm să mai încerci o dată!",f.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. ",f.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.",f.Loading="Transferăm datele. Asteptați...",f.FacePoseMapping={0:"Întoarce capul spre stânga.",1:"Întoarce capul spre dreapta.",2:"Înclină capul spre spate.",3:"Înclină capul în față.",4:""},f.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 b extends r{}b.Title="Pentru începerea identificării avem nevoie de acordurile tale:",b.Button="Încep identificarea",b.Terms="Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",b.Agreement="Îmi exprim acordul pentru prelucrarea datelor cu caracter personal";class h extends r{}h.ButtonYes="Sunt de acord",h.ButtonNo="Nu sunt de acord";class g{constructor(){this.uriEnv="/",this.uriEnv="QA"==S.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 w extends r{}w.InfoTop="Pentru a continua scanați codul de mai jos cu un smartphone.",w.InfoBottom="Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",w.Validation="Număr de telefon invalid!",w.InfoWaiting="Așteptăm finalizarea procesului pe smartphone.",w.InfoAborted="Procesului de pe smartphone a fost amanat.";class v extends r{}v.Title="Procesul de indetificare nu poate continua.",v.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.",v.Button="Reincep procesul",v.HowToLink="https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4";const{state:S,onChange:k}=(()=>{const a=((e,t=((e,t)=>e!==t))=>{const a=n(e);let i=new Map(Object.entries(null!=a?a:{}));const s={dispose:[],get:[],set:[],reset:[]},r=()=>{var t;i=new Map(Object.entries(null!==(t=n(e))&&void 0!==t?t:{})),s.reset.forEach((e=>e()))},c=e=>(s.get.forEach((t=>t(e))),i.get(e)),o=(e,a)=>{const n=i.get(e);t(a,n,e)&&(i.set(e,a),s.set.forEach((t=>t(e,a,n))))},d="undefined"==typeof Proxy?{}:new Proxy(a,{get:(e,t)=>c(t),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>i.has(t),set:(e,t,a)=>(o(t,a),!0)}),l=(e,t)=>(s[e].push(t),()=>{((e,t)=>{const a=e.indexOf(t);a>=0&&(e[a]=e[e.length-1],e.length--)})(s[e],t)});return{state:d,get:c,set:o,on:l,onChange:(t,a)=>{const i=l("set",((e,i)=>{e===t&&a(i)})),s=l("reset",(()=>a(n(e)[t])));return()=>{i(),s()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(l("set",t.set)),t.get&&e.push(l("get",t.get)),t.reset&&e.push(l("reset",t.reset)),t.dispose&&e.push(l("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{s.dispose.forEach((e=>e())),r()},reset:r,forceUpdate:e=>{const t=i.get(e);s.set.forEach((a=>a(e,t,t)))}}})({flowStatus:s.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 a.use((()=>{if("function"!=typeof e)return{};const a=new Map;return{dispose:()=>a.clear(),get:t=>{const i=e();i&&((e,t,a)=>{const i=e.get(t);i?i.includes(a)||i.push(a):e.set(t,[a])})(a,t,i)},set:e=>{const n=a.get(e);n&&a.set(e,n.filter(t)),i(a)},reset:()=>{a.forEach((e=>e.forEach(t))),i(a)}}})()),a})();k("environment",(e=>{S.debug="QA"==e})),k("flowStatus",(e=>{sessionStorage.setItem(p.FlowStatusKey,s[e])})),k("token",(e=>{sessionStorage.setItem(p.TokenKey,e)})),k("requestId",(e=>{sessionStorage.setItem(p.RequestIdKey,e)})),k("initialised",(e=>{sessionStorage.setItem(p.InitialisedKey,String(e))})),k("hasIdBack",(e=>{sessionStorage.setItem(p.HasIdBackKey,String(e))})),k("agreementsValidation",(e=>{sessionStorage.setItem(p.AgreementValidationKey,String(e))})),k("phoneValidation",(e=>{sessionStorage.setItem(p.PhoneValidationKey,String(e))}));export{g as A,v as C,s as F,r as G,c as H,m as I,o as L,w as M,d as P,p as S,h as a,b,f as c,u as d,l as e,S as s}
|
|
@@ -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=>B(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=en.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=J(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):J(Z,r)?r.slice(2):r[2]+e.slice(3),t&&en.rel(n,e,t,!1),l&&en.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=nn.createTextNode(o.t);else if(s=o.m=nn.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),fn((()=>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=Y.get(l);if(n=11===n.nodeType?n:nn,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=nn.createElement("style"),e.innerHTML=o;const l=null!==(t=en.M)&&void 0!==t?t:c(nn);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){K(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&&an((()=>C(n,!1))),n.i&=-517},E=n=>{{const e=B(n),t=e.p.isConnected;return t&&2==(18&e.i)&&C(e,!1),t}},N=()=>{q(nn.documentElement),an((()=>d(Z,"appload",{detail:{namespace:"qbs-ect-cmp"}})))},R=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){K(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)=>B(this).W.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=B(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){K(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){en.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=Z.customElements,i=nn.head,r=i.querySelector("meta[charset]"),u=nn.createElement("style"),a=[];let f,d=!0;Object.assign(en,e),en.N=new URL(e.resourcesUrl||"./",nn.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),I(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):en.jmp((()=>(n=>{if(0==(1&en.i)){const e=B(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=X(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){K(n)}e.i&=-9,e.i|=128,n()}if(o.style){let n=o.style;const e=p(t);if(!Y.has(e)){const l=()=>{};((n,e,t)=>{let l=Y.get(n);ln&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,Y.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(){en.jmp((()=>(()=>{if(0==(1&en.i)){const n=B(this),e=n.S;n.T&&(n.T.map((n=>n())),n.T=void 0),R(e,"disconnectedCallback")}})()))}componentOnReady(){return B(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=en.M)&&void 0!==t?t:c(nn);null!=n&&u.setAttribute("nonce",n),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((n=>n.connectedCallback())):en.jmp((()=>f=setTimeout(N,30)))},U=(n,e,t)=>{t&&t.map((([t,l,o])=>{const s=H(n,t),c=D(e,o),i=V(t);en.ael(s,l,c,i),(e.T=e.T||[]).push((()=>en.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){K(n)}},H=(n,e)=>8&e?Z:n,V=n=>0!=(2&n),_=n=>en.M=n,z=new WeakMap,B=n=>z.get(n),G=(n,e)=>z.set(e.S=n,e),I=(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),z.set(n,t)},J=(n,e)=>e in n,K=(n,e)=>(0,console.error)(n,e),Q=new Map,X=n=>{const e=n.h.replace(/-/g,"_"),t=n.A,l=Q.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(Q.set(t,n),n[e])),K)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z="undefined"!=typeof window?window:{},nn=Z.document||{head:{}},en={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)},tn=n=>Promise.resolve(n),ln=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),on=[],sn=[],cn=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&en.i?an(un):en.raf(un))},rn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){K(n)}n.length=0},un=()=>{rn(on),rn(sn),(l=on.length>0)&&en.raf(un)},an=n=>tn().then(n),fn=cn(sn,!0);export{W as a,F as b,f as c,E as f,a as g,i as h,tn as p,G as r,_ as s}
|