@ekyc_qoobiss/qbs-ect-cmp 1.9.4 → 1.9.6
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_16.cjs.entry.js +53 -46
- package/dist/cjs/{index-be29a2a8.js → index-79f82518.js} +88 -2
- package/dist/cjs/loader-dots.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/qbs-ect-cmp.cjs.js +6 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/identification-component/identification-component.css +1 -1
- package/dist/collection/components/identification-component/identification-component.js +15 -12
- package/dist/collection/helpers/ApiCall.js +4 -1
- package/dist/collection/helpers/ML5.js +3 -3
- package/dist/collection/helpers/Stream.js +16 -15
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +6 -6
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +6 -6
- package/dist/esm/agreement-check_16.entry.js +53 -46
- package/dist/esm/{index-b6e6428d.js → index-9d69e511.js} +88 -3
- package/dist/esm/loader-dots.entry.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +3 -2
- package/dist/loader/index.d.ts +9 -0
- package/dist/qbs-ect-cmp/p-06e42b28.js +2 -0
- package/dist/qbs-ect-cmp/{p-09bbdee5.entry.js → p-4c8e922b.entry.js} +1 -1
- package/dist/qbs-ect-cmp/{p-d2e6df43.entry.js → p-d8d06163.entry.js} +13 -13
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/p-742256cd.js +0 -2
|
@@ -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 appendToMap = (map, propName, value) => {
|
|
8
8
|
const items = map.get(propName);
|
|
@@ -392,7 +392,10 @@ class ApiCall {
|
|
|
392
392
|
data: await this.toBase64(file),
|
|
393
393
|
};
|
|
394
394
|
let respJson = await this.post('/validation/upload/capture', JSON.stringify(data));
|
|
395
|
-
if (type == 'IdFront') {
|
|
395
|
+
if (!state.hasIdBack && type == 'IdFront') {
|
|
396
|
+
return respJson.isValid;
|
|
397
|
+
}
|
|
398
|
+
if (state.hasIdBack && type == 'IdBack') {
|
|
396
399
|
return respJson.isValid;
|
|
397
400
|
}
|
|
398
401
|
return true;
|
|
@@ -1772,15 +1775,15 @@ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,h=
|
|
|
1772
1775
|
const ml5 = /*@__PURE__*/getDefaultExportFromCjs(ml5_min);
|
|
1773
1776
|
|
|
1774
1777
|
class ML5 {
|
|
1775
|
-
constructor() {
|
|
1776
|
-
this.init();
|
|
1777
|
-
}
|
|
1778
1778
|
static getInstance() {
|
|
1779
1779
|
if (!ML5.instance) {
|
|
1780
1780
|
ML5.instance = new ML5();
|
|
1781
1781
|
}
|
|
1782
1782
|
return ML5.instance;
|
|
1783
1783
|
}
|
|
1784
|
+
constructor() {
|
|
1785
|
+
this.init();
|
|
1786
|
+
}
|
|
1784
1787
|
async init() {
|
|
1785
1788
|
return new Promise(async (resolve) => {
|
|
1786
1789
|
const modelPath = state.hasIdBack ? 'https://ekyc.blob.core.windows.net/$web/md/model.json' : 'https://ekyc.blob.core.windows.net/$web/model.json';
|
|
@@ -1806,6 +1809,12 @@ const idWhiteSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzM1IiBoZWlnaHQ9Ij
|
|
|
1806
1809
|
const idGreenSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzM1IiBoZWlnaHQ9IjIzOCIgdmlld0JveD0iMCAwIDMzNSAyMzgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMzM0Ljg4NiA0Ni45MjQxSDMyNy45MDhWNy45NzUzN0gyODguMjczVjAuOTkzMTY0SDMzNC44ODZWNDYuOTI0MVoiIGZpbGw9IiM0Y2E1ODUiLz4NCjxwYXRoIGQ9Ik0zMzUuMDAxIDIzNy4wMDdIMjg5LjA3VjIzMC4wMjVIMzI4LjAxOVYxOTAuMzlIMzM1LjAwMVYyMzcuMDA3WiIgZmlsbD0iIzRjYTU4NSIvPg0KPHBhdGggZD0iTTQ2LjcyNzEgMjM3LjAwN0gwLjEwOTg2M1YxOTEuMDcySDcuMDkyMDdWMjMwLjAyNUg0Ni43MjcxVjIzNy4wMDdaIiBmaWxsPSIjNGNhNTg1Ii8+DQo8cGF0aCBkPSJNNi45ODE3MiA0Ny42MTA0SC0wLjAwMDQ4ODI4MVYwLjk5MzE2NEg0NS45MzA1VjcuOTc1MzdINi45ODE3MlY0Ny42MTA0WiIgZmlsbD0iIzRjYTU4NSIvPg0KPC9zdmc+DQo=';
|
|
1807
1810
|
|
|
1808
1811
|
class IDML5Detector {
|
|
1812
|
+
static getInstance(stream, isMobile) {
|
|
1813
|
+
if (!IDML5Detector.instance) {
|
|
1814
|
+
IDML5Detector.instance = new IDML5Detector(stream, isMobile);
|
|
1815
|
+
}
|
|
1816
|
+
return IDML5Detector.instance;
|
|
1817
|
+
}
|
|
1809
1818
|
constructor(stream, _isMobile) {
|
|
1810
1819
|
this.MAX_DETECTION = 1000 * 25;
|
|
1811
1820
|
this.initTime = null;
|
|
@@ -1815,12 +1824,6 @@ class IDML5Detector {
|
|
|
1815
1824
|
this.stream = stream;
|
|
1816
1825
|
this.ml5 = ML5.getInstance();
|
|
1817
1826
|
}
|
|
1818
|
-
static getInstance(stream, isMobile) {
|
|
1819
|
-
if (!IDML5Detector.instance) {
|
|
1820
|
-
IDML5Detector.instance = new IDML5Detector(stream, isMobile);
|
|
1821
|
-
}
|
|
1822
|
-
return IDML5Detector.instance;
|
|
1823
|
-
}
|
|
1824
1827
|
updateHtmlElements(videoElement, canvasElement, _component) {
|
|
1825
1828
|
this.videoElement = videoElement;
|
|
1826
1829
|
this.canvasElement = canvasElement;
|
|
@@ -1999,6 +2002,12 @@ const faceWhiteSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9
|
|
|
1999
2002
|
const faceGreenSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjIyNC45OTk5OTk5OTk5OTk5NyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIHZlcnNpb249IjEuMSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQogPGc+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPGcgc3Ryb2tlPSJudWxsIiBpZD0iTGF5ZXIgMSI+DQogICA8cGF0aCBzdHJva2U9IiM0Y2E1ODUiIGlkPSJzdmdfMSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZmlsbD0ibm9uZSIgZD0ibTc0LjI3NzY1LDYuOTI3NjFjLTExLjM3NTk3LC0wLjAxNzEzIC0zMy41NjU1MSw1LjEwNDMzIC00Ni44MTMxNiwxOS40OTQ4MWMtNi43NDE0Myw3LjMyMjkyIC0xOC4xMjI2OSwyMy4wNjk2NyAtMTkuMjY3NTgsNTkuNjEzNjljLTAuNTE5MDYsMTYuNTY5MjEgNS4wNDUyNCw2MC42MjUzMyAxMC4yNDAwNiw3Ni40Njc3NWMzLjYzMTMsMTEuMDc0NjggMjcuNDgyMTUsNDMuOTMzNDkgNDQuNDkwNiw1My42ODI1MWM0LjgwNzkxLDIuNzU1NDYgMTEuMjk2NjgsMi42ODI1MSAxMi40MjI1NSwyLjY4MjUxYzEuMTg4NzYsLTAuMDg0NTcgNy4zMzAyNiwwLjA3Mjk0IDEyLjEzNzY1LC0yLjY4MjUxYzE3LjAwODQ2LC05Ljc0OTAyIDQwLjQwMjA4LC00Mi43Njg1MSA0NC40OTA2LC01My42ODI1MWM0LjQwMDM4LC0xMS43NDQ5MSAxMC43NTk2NSwtNTkuODk4NTQgMTAuMjQwMDYsLTc2LjQ2Nzc1Yy0xLjE0NDg5LC0zNi41NDQwMiAtMTIuNTI2MTUsLTUyLjI5MDc3IC0xOS4yNjc1OCwtNTkuNjEzNjljLTEzLjI0NzY1LC0xNC4zOTA0OCAtMzUuMzA2NjMsLTE5LjUyOTMzIC00Ni43NzgyNywtMTkuNDk0ODFjLTAuNzQ2ODgsMC4wMDIyMiAtMS44OTQ5NCwwIC0xLjg5NDk0LDB6IiBzdHJva2Utd2lkdGg9IjciLz4NCiAgPC9nPg0KIDwvZz4NCjwvc3ZnPg0K';
|
|
2000
2003
|
|
|
2001
2004
|
class FaceML5Detector {
|
|
2005
|
+
static getInstance(stream, isMobile) {
|
|
2006
|
+
if (!FaceML5Detector.instance) {
|
|
2007
|
+
FaceML5Detector.instance = new FaceML5Detector(stream, isMobile);
|
|
2008
|
+
}
|
|
2009
|
+
return FaceML5Detector.instance;
|
|
2010
|
+
}
|
|
2002
2011
|
constructor(stream, isMobile) {
|
|
2003
2012
|
this.MAX_DETECTION = 1000 * 30;
|
|
2004
2013
|
this.initTime = null;
|
|
@@ -2022,12 +2031,6 @@ class FaceML5Detector {
|
|
|
2022
2031
|
this.ml5 = ML5.getInstance();
|
|
2023
2032
|
this.isMobile = isMobile;
|
|
2024
2033
|
}
|
|
2025
|
-
static getInstance(stream, isMobile) {
|
|
2026
|
-
if (!FaceML5Detector.instance) {
|
|
2027
|
-
FaceML5Detector.instance = new FaceML5Detector(stream, isMobile);
|
|
2028
|
-
}
|
|
2029
|
-
return FaceML5Detector.instance;
|
|
2030
|
-
}
|
|
2031
2034
|
updateHtmlElements(videoElement, canvasElement, _component) {
|
|
2032
2035
|
this.videoElement = videoElement;
|
|
2033
2036
|
this.canvasElement = canvasElement;
|
|
@@ -4685,21 +4688,6 @@ var ImageFormat;
|
|
|
4685
4688
|
ImageFormat["PNG"] = "image/png";
|
|
4686
4689
|
})(ImageFormat || (ImageFormat = {}));
|
|
4687
4690
|
class Stream {
|
|
4688
|
-
constructor(device, _modelPath) {
|
|
4689
|
-
this.streamPaused = false;
|
|
4690
|
-
this.recordedChunks = [];
|
|
4691
|
-
this.videoSize = { width: 0, height: 0 };
|
|
4692
|
-
this.pauseStream = () => {
|
|
4693
|
-
this.streamPaused = true;
|
|
4694
|
-
this.mediaRecorder.pause();
|
|
4695
|
-
this.videoElement.pause();
|
|
4696
|
-
// this.dropMask();
|
|
4697
|
-
// if (this.faceDetection) Detector.getInstance().stopDetector();
|
|
4698
|
-
};
|
|
4699
|
-
this.device = device;
|
|
4700
|
-
this.idML5Detector = IDML5Detector.getInstance(this, device.isMobile);
|
|
4701
|
-
this.faceML5Detector = FaceML5Detector.getInstance(this, device.isMobile);
|
|
4702
|
-
}
|
|
4703
4691
|
setFaceDetection(val) {
|
|
4704
4692
|
this.faceDetection = val;
|
|
4705
4693
|
this.idDetection = !val;
|
|
@@ -4735,6 +4723,21 @@ class Stream {
|
|
|
4735
4723
|
setVerificationFinished(fun) {
|
|
4736
4724
|
this.verificationFinished = fun;
|
|
4737
4725
|
}
|
|
4726
|
+
constructor(device, _modelPath) {
|
|
4727
|
+
this.streamPaused = false;
|
|
4728
|
+
this.recordedChunks = [];
|
|
4729
|
+
this.videoSize = { width: 0, height: 0 };
|
|
4730
|
+
this.pauseStream = () => {
|
|
4731
|
+
this.streamPaused = true;
|
|
4732
|
+
this.mediaRecorder.pause();
|
|
4733
|
+
this.videoElement.pause();
|
|
4734
|
+
// this.dropMask();
|
|
4735
|
+
// if (this.faceDetection) Detector.getInstance().stopDetector();
|
|
4736
|
+
};
|
|
4737
|
+
this.device = device;
|
|
4738
|
+
this.idML5Detector = IDML5Detector.getInstance(this, device.isMobile);
|
|
4739
|
+
this.faceML5Detector = FaceML5Detector.getInstance(this, device.isMobile);
|
|
4740
|
+
}
|
|
4738
4741
|
static getInstance(device, modelPath) {
|
|
4739
4742
|
if (!Stream.instance) {
|
|
4740
4743
|
Stream.instance = new Stream(device, modelPath);
|
|
@@ -4768,6 +4771,7 @@ class Stream {
|
|
|
4768
4771
|
this.videoElement.srcObject = stream;
|
|
4769
4772
|
}
|
|
4770
4773
|
else {
|
|
4774
|
+
// @ts-ignore
|
|
4771
4775
|
this.videoElement.src = window.URL.createObjectURL(stream);
|
|
4772
4776
|
}
|
|
4773
4777
|
this.videoElement.addEventListener('loadedmetadata', async (_e) => {
|
|
@@ -5760,20 +5764,9 @@ const initDevice = () => {
|
|
|
5760
5764
|
return device;
|
|
5761
5765
|
};
|
|
5762
5766
|
|
|
5763
|
-
const identificationComponentCss = "@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.container-video{height:99vh;text-align:center;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{position:fixed;width:calc(100% - 5vh);bottom:5vh}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.dot-effect{position:fixed;bottom:13vh;width:calc(100% - 5vh);text-align:center;display:flex;align-items:center;justify-content:center}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:0;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.dot-shuttle{position:relative;left:-15px;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent;margin:-1px 0;opacity:1}.dot-shuttle::before{opacity:0.5}.dot-shuttle::after{opacity:0.5}.dot-shuttle::before,.dot-shuttle::after{content:'';display:inline-block;position:absolute;top:0;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent}.dot-shuttle::before{left:0;animation:dotShuttle 2s infinite ease-out}.dot-shuttle::after{left:0;animation:dotShuttle 2s infinite ease-out;animation-delay:1s}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@keyframes dotShuttle{0%,50%,100%{transform:translateX(0);opacity:1}25%{transform:translateX(-30px);opacity:0.5}75%{transform:translateX(30px);opacity:0.5}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}.dot-effect{max-width:490px}}";
|
|
5767
|
+
const identificationComponentCss = "@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.container-video{height:99vh;text-align:center;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{position:fixed;width:calc(100% - 5vh);bottom:5vh}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.dot-effect{position:fixed;bottom:13vh;width:calc(100% - 5vh);text-align:center;display:flex;align-items:center;justify-content:center}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:4;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.dot-shuttle{position:relative;left:-15px;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent;margin:-1px 0;opacity:1}.dot-shuttle::before{opacity:0.5}.dot-shuttle::after{opacity:0.5}.dot-shuttle::before,.dot-shuttle::after{content:'';display:inline-block;position:absolute;top:0;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent}.dot-shuttle::before{left:0;animation:dotShuttle 2s infinite ease-out}.dot-shuttle::after{left:0;animation:dotShuttle 2s infinite ease-out;animation-delay:1s}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@keyframes dotShuttle{0%,50%,100%{transform:translateX(0);opacity:1}25%{transform:translateX(-30px);opacity:0.5}75%{transform:translateX(30px);opacity:0.5}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}.dot-effect{max-width:490px}}";
|
|
5764
5768
|
|
|
5765
5769
|
const IdentificationComponent = class {
|
|
5766
|
-
constructor(hostRef) {
|
|
5767
|
-
index.registerInstance(this, hostRef);
|
|
5768
|
-
this.token = undefined;
|
|
5769
|
-
this.order_id = undefined;
|
|
5770
|
-
this.api_url = undefined;
|
|
5771
|
-
this.idSide = '';
|
|
5772
|
-
this.errorMessage = undefined;
|
|
5773
|
-
ML5.getInstance();
|
|
5774
|
-
this.device = initDevice();
|
|
5775
|
-
this.apiCall = new ApiCall();
|
|
5776
|
-
}
|
|
5777
5770
|
async onTokenChange(newValue, _oldValue) {
|
|
5778
5771
|
if (newValue == '') {
|
|
5779
5772
|
newValue = state.token;
|
|
@@ -5815,10 +5808,13 @@ const IdentificationComponent = class {
|
|
|
5815
5808
|
}
|
|
5816
5809
|
}
|
|
5817
5810
|
apiErrorEmitter(data) {
|
|
5818
|
-
if (data.
|
|
5811
|
+
if (data.message) {
|
|
5812
|
+
this.errorMessage = data.message;
|
|
5813
|
+
}
|
|
5814
|
+
else if (data.detail && data.detail.message) {
|
|
5819
5815
|
this.errorMessage = data.detail.message;
|
|
5820
5816
|
}
|
|
5821
|
-
else if (data.detail.stack) {
|
|
5817
|
+
else if (data.detail && data.detail.stack) {
|
|
5822
5818
|
this.errorMessage = data.detail.stack;
|
|
5823
5819
|
}
|
|
5824
5820
|
else {
|
|
@@ -5827,6 +5823,17 @@ const IdentificationComponent = class {
|
|
|
5827
5823
|
Events.flowError(data);
|
|
5828
5824
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5829
5825
|
}
|
|
5826
|
+
constructor(hostRef) {
|
|
5827
|
+
index.registerInstance(this, hostRef);
|
|
5828
|
+
this.token = undefined;
|
|
5829
|
+
this.order_id = undefined;
|
|
5830
|
+
this.api_url = undefined;
|
|
5831
|
+
this.idSide = '';
|
|
5832
|
+
this.errorMessage = undefined;
|
|
5833
|
+
ML5.getInstance();
|
|
5834
|
+
this.device = initDevice();
|
|
5835
|
+
this.apiCall = new ApiCall();
|
|
5836
|
+
}
|
|
5830
5837
|
async componentWillLoad() {
|
|
5831
5838
|
Events.init(window);
|
|
5832
5839
|
if (this.token) {
|
|
@@ -64,6 +64,18 @@ const isComplexType = (o) => {
|
|
|
64
64
|
o = typeof o;
|
|
65
65
|
return o === 'object' || o === 'function';
|
|
66
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
69
|
+
* out of a DOM's head.
|
|
70
|
+
*
|
|
71
|
+
* @param doc The DOM containing the `head` to query against
|
|
72
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
73
|
+
* exists or the tag has no content.
|
|
74
|
+
*/
|
|
75
|
+
function queryNonceMetaTagContent(doc) {
|
|
76
|
+
var _a, _b, _c;
|
|
77
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
78
|
+
}
|
|
67
79
|
/**
|
|
68
80
|
* Production h() function based on Preact by
|
|
69
81
|
* Jason Miller (@developit)
|
|
@@ -72,7 +84,6 @@ const isComplexType = (o) => {
|
|
|
72
84
|
*
|
|
73
85
|
* Modified for Stencil's compiler and vdom
|
|
74
86
|
*/
|
|
75
|
-
// const stack: any[] = [];
|
|
76
87
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
77
88
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
78
89
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -123,6 +134,14 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
123
134
|
}
|
|
124
135
|
return vnode;
|
|
125
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* A utility function for creating a virtual DOM node from a tag and some
|
|
139
|
+
* possible text content.
|
|
140
|
+
*
|
|
141
|
+
* @param tag the tag for this element
|
|
142
|
+
* @param text possible text content for the node
|
|
143
|
+
* @returns a newly-minted virtual DOM node
|
|
144
|
+
*/
|
|
126
145
|
const newVNode = (tag, text) => {
|
|
127
146
|
const vnode = {
|
|
128
147
|
$flags$: 0,
|
|
@@ -137,6 +156,12 @@ const newVNode = (tag, text) => {
|
|
|
137
156
|
return vnode;
|
|
138
157
|
};
|
|
139
158
|
const Host = {};
|
|
159
|
+
/**
|
|
160
|
+
* Check whether a given node is a Host node or not
|
|
161
|
+
*
|
|
162
|
+
* @param node the virtual DOM node to check
|
|
163
|
+
* @returns whether it's a Host node or not
|
|
164
|
+
*/
|
|
140
165
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
141
166
|
/**
|
|
142
167
|
* Parse a new property value for a given property type.
|
|
@@ -224,6 +249,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
224
249
|
styles.set(scopeId, style);
|
|
225
250
|
};
|
|
226
251
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
252
|
+
var _a;
|
|
227
253
|
let scopeId = getScopeId(cmpMeta);
|
|
228
254
|
const style = styles.get(scopeId);
|
|
229
255
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -243,6 +269,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
243
269
|
styleElm = doc.createElement('style');
|
|
244
270
|
styleElm.innerHTML = style;
|
|
245
271
|
}
|
|
272
|
+
// Apply CSP nonce to the style tag if it exists
|
|
273
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
274
|
+
if (nonce != null) {
|
|
275
|
+
styleElm.setAttribute('nonce', nonce);
|
|
276
|
+
}
|
|
246
277
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
247
278
|
}
|
|
248
279
|
if (appliedStyles) {
|
|
@@ -472,6 +503,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
472
503
|
}
|
|
473
504
|
return elm;
|
|
474
505
|
};
|
|
506
|
+
/**
|
|
507
|
+
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
508
|
+
* add them to the DOM in the appropriate place.
|
|
509
|
+
*
|
|
510
|
+
* @param parentElm the DOM node which should be used as a parent for the new
|
|
511
|
+
* DOM nodes
|
|
512
|
+
* @param before a child of the `parentElm` which the new children should be
|
|
513
|
+
* inserted before (optional)
|
|
514
|
+
* @param parentVNode the parent virtual DOM node
|
|
515
|
+
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
516
|
+
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
517
|
+
* creating DOM nodes (inclusive)
|
|
518
|
+
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
519
|
+
* creating DOM nodes (inclusive)
|
|
520
|
+
*/
|
|
475
521
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
476
522
|
let containerElm = (parentElm);
|
|
477
523
|
let childNode;
|
|
@@ -488,6 +534,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
488
534
|
}
|
|
489
535
|
}
|
|
490
536
|
};
|
|
537
|
+
/**
|
|
538
|
+
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
539
|
+
* This can be used to, for instance, clean up after a list of children which
|
|
540
|
+
* should no longer be shown.
|
|
541
|
+
*
|
|
542
|
+
* This function also handles some of Stencil's slot relocation logic.
|
|
543
|
+
*
|
|
544
|
+
* @param vnodes a list of virtual DOM nodes to remove
|
|
545
|
+
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
546
|
+
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
547
|
+
* @param vnode a VNode
|
|
548
|
+
* @param elm an element
|
|
549
|
+
*/
|
|
491
550
|
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
492
551
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
493
552
|
if ((vnode = vnodes[startIdx])) {
|
|
@@ -680,7 +739,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
680
739
|
*
|
|
681
740
|
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
682
741
|
* changing order within a `children` array or something along those lines then
|
|
683
|
-
* we could obtain a false
|
|
742
|
+
* we could obtain a false negative and then have to do needless re-rendering
|
|
743
|
+
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
684
744
|
*
|
|
685
745
|
* @param leftVNode the first VNode to check
|
|
686
746
|
* @param rightVNode the second VNode to check
|
|
@@ -747,6 +807,18 @@ const callNodeRefs = (vNode) => {
|
|
|
747
807
|
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
748
808
|
}
|
|
749
809
|
};
|
|
810
|
+
/**
|
|
811
|
+
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
812
|
+
*
|
|
813
|
+
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
814
|
+
* function will handle creating a virtual DOM tree with a single root, patching
|
|
815
|
+
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
816
|
+
* relocation, and reflecting attributes.
|
|
817
|
+
*
|
|
818
|
+
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
819
|
+
* the DOM node into which it should be rendered.
|
|
820
|
+
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
821
|
+
*/
|
|
750
822
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
751
823
|
const hostElm = hostRef.$hostElement$;
|
|
752
824
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -1239,6 +1311,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1239
1311
|
}
|
|
1240
1312
|
};
|
|
1241
1313
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1314
|
+
var _a;
|
|
1242
1315
|
const endBootstrap = createTime();
|
|
1243
1316
|
const cmpTags = [];
|
|
1244
1317
|
const exclude = options.exclude || [];
|
|
@@ -1321,6 +1394,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1321
1394
|
{
|
|
1322
1395
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1323
1396
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1397
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1398
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1399
|
+
if (nonce != null) {
|
|
1400
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1401
|
+
}
|
|
1324
1402
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1325
1403
|
}
|
|
1326
1404
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1365,6 +1443,13 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1365
1443
|
};
|
|
1366
1444
|
// prettier-ignore
|
|
1367
1445
|
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1446
|
+
/**
|
|
1447
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1448
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1449
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1450
|
+
* @returns void
|
|
1451
|
+
*/
|
|
1452
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1368
1453
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1369
1454
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1370
1455
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1480,3 +1565,4 @@ exports.getRenderingRef = getRenderingRef;
|
|
|
1480
1565
|
exports.h = h;
|
|
1481
1566
|
exports.promiseResolve = promiseResolve;
|
|
1482
1567
|
exports.registerInstance = registerInstance;
|
|
1568
|
+
exports.setNonce = setNonce;
|
|
@@ -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,10 +2,10 @@
|
|
|
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
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -18,4 +18,5 @@ const defineCustomElements = (win, options) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
exports.setNonce = index.setNonce;
|
|
21
22
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-79f82518.js');
|
|
4
6
|
|
|
5
7
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
8
|
+
Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
|
|
7
9
|
*/
|
|
8
10
|
const patchBrowser = () => {
|
|
9
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('qbs-ect-cmp.cjs.js', document.baseURI).href));
|
|
@@ -17,3 +19,5 @@ const patchBrowser = () => {
|
|
|
17
19
|
patchBrowser().then(options => {
|
|
18
20
|
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_16.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"idSide":[32],"errorMessage":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"showError":[32],"showHowTo":[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,"end-redirect"],[0,"error-end",{"message":[1]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
19
21
|
});
|
|
22
|
+
|
|
23
|
+
exports.setNonce = index.setNonce;
|
|
@@ -7,16 +7,6 @@ import { ML5 } from '../../helpers/ML5';
|
|
|
7
7
|
import { FlowStatus } from '../../models/FlowStatus';
|
|
8
8
|
import Events from '../../helpers/Events';
|
|
9
9
|
export class IdentificationComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.token = undefined;
|
|
12
|
-
this.order_id = undefined;
|
|
13
|
-
this.api_url = undefined;
|
|
14
|
-
this.idSide = '';
|
|
15
|
-
this.errorMessage = undefined;
|
|
16
|
-
ML5.getInstance();
|
|
17
|
-
this.device = initDevice();
|
|
18
|
-
this.apiCall = new ApiCall();
|
|
19
|
-
}
|
|
20
10
|
async onTokenChange(newValue, _oldValue) {
|
|
21
11
|
if (newValue == '') {
|
|
22
12
|
newValue = store.token;
|
|
@@ -58,10 +48,13 @@ export class IdentificationComponent {
|
|
|
58
48
|
}
|
|
59
49
|
}
|
|
60
50
|
apiErrorEmitter(data) {
|
|
61
|
-
if (data.
|
|
51
|
+
if (data.message) {
|
|
52
|
+
this.errorMessage = data.message;
|
|
53
|
+
}
|
|
54
|
+
else if (data.detail && data.detail.message) {
|
|
62
55
|
this.errorMessage = data.detail.message;
|
|
63
56
|
}
|
|
64
|
-
else if (data.detail.stack) {
|
|
57
|
+
else if (data.detail && data.detail.stack) {
|
|
65
58
|
this.errorMessage = data.detail.stack;
|
|
66
59
|
}
|
|
67
60
|
else {
|
|
@@ -70,6 +63,16 @@ export class IdentificationComponent {
|
|
|
70
63
|
Events.flowError(data);
|
|
71
64
|
store.flowStatus = FlowStatus.ERROREND;
|
|
72
65
|
}
|
|
66
|
+
constructor() {
|
|
67
|
+
this.token = undefined;
|
|
68
|
+
this.order_id = undefined;
|
|
69
|
+
this.api_url = undefined;
|
|
70
|
+
this.idSide = '';
|
|
71
|
+
this.errorMessage = undefined;
|
|
72
|
+
ML5.getInstance();
|
|
73
|
+
this.device = initDevice();
|
|
74
|
+
this.apiCall = new ApiCall();
|
|
75
|
+
}
|
|
73
76
|
async componentWillLoad() {
|
|
74
77
|
Events.init(window);
|
|
75
78
|
if (this.token) {
|
|
@@ -65,7 +65,10 @@ export class ApiCall {
|
|
|
65
65
|
data: await this.toBase64(file),
|
|
66
66
|
};
|
|
67
67
|
let respJson = await this.post('/validation/upload/capture', JSON.stringify(data));
|
|
68
|
-
if (type == 'IdFront') {
|
|
68
|
+
if (!store.hasIdBack && type == 'IdFront') {
|
|
69
|
+
return respJson.isValid;
|
|
70
|
+
}
|
|
71
|
+
if (store.hasIdBack && type == 'IdBack') {
|
|
69
72
|
return respJson.isValid;
|
|
70
73
|
}
|
|
71
74
|
return true;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import ml5 from 'ml5';
|
|
2
2
|
import store from './store';
|
|
3
3
|
export class ML5 {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.init();
|
|
6
|
-
}
|
|
7
4
|
static getInstance() {
|
|
8
5
|
if (!ML5.instance) {
|
|
9
6
|
ML5.instance = new ML5();
|
|
10
7
|
}
|
|
11
8
|
return ML5.instance;
|
|
12
9
|
}
|
|
10
|
+
constructor() {
|
|
11
|
+
this.init();
|
|
12
|
+
}
|
|
13
13
|
async init() {
|
|
14
14
|
return new Promise(async (resolve) => {
|
|
15
15
|
const modelPath = store.hasIdBack ? 'https://ekyc.blob.core.windows.net/$web/md/model.json' : 'https://ekyc.blob.core.windows.net/$web/model.json';
|