@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
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-41696e0e.js');
|
|
6
|
+
const store = require('./store-4bf93725.js');
|
|
6
7
|
|
|
7
8
|
var OrderStatuses;
|
|
8
9
|
(function (OrderStatuses) {
|
|
@@ -13,402 +14,6 @@ var OrderStatuses;
|
|
|
13
14
|
OrderStatuses[OrderStatuses["Aborted"] = 4] = "Aborted";
|
|
14
15
|
})(OrderStatuses || (OrderStatuses = {}));
|
|
15
16
|
|
|
16
|
-
const appendToMap = (map, propName, value) => {
|
|
17
|
-
const items = map.get(propName);
|
|
18
|
-
if (!items) {
|
|
19
|
-
map.set(propName, [value]);
|
|
20
|
-
}
|
|
21
|
-
else if (!items.includes(value)) {
|
|
22
|
-
items.push(value);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const debounce = (fn, ms) => {
|
|
26
|
-
let timeoutId;
|
|
27
|
-
return (...args) => {
|
|
28
|
-
if (timeoutId) {
|
|
29
|
-
clearTimeout(timeoutId);
|
|
30
|
-
}
|
|
31
|
-
timeoutId = setTimeout(() => {
|
|
32
|
-
timeoutId = 0;
|
|
33
|
-
fn(...args);
|
|
34
|
-
}, ms);
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a possible element isConnected.
|
|
40
|
-
* The property might not be there, so we check for it.
|
|
41
|
-
*
|
|
42
|
-
* We want it to return true if isConnected is not a property,
|
|
43
|
-
* otherwise we would remove these elements and would not update.
|
|
44
|
-
*
|
|
45
|
-
* Better leak in Edge than to be useless.
|
|
46
|
-
*/
|
|
47
|
-
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
48
|
-
const cleanupElements = debounce((map) => {
|
|
49
|
-
for (let key of map.keys()) {
|
|
50
|
-
map.set(key, map.get(key).filter(isConnected));
|
|
51
|
-
}
|
|
52
|
-
}, 2000);
|
|
53
|
-
const stencilSubscription = () => {
|
|
54
|
-
if (typeof index.getRenderingRef !== 'function') {
|
|
55
|
-
// If we are not in a stencil project, we do nothing.
|
|
56
|
-
// This function is not really exported by @stencil/core.
|
|
57
|
-
return {};
|
|
58
|
-
}
|
|
59
|
-
const elmsToUpdate = new Map();
|
|
60
|
-
return {
|
|
61
|
-
dispose: () => elmsToUpdate.clear(),
|
|
62
|
-
get: (propName) => {
|
|
63
|
-
const elm = index.getRenderingRef();
|
|
64
|
-
if (elm) {
|
|
65
|
-
appendToMap(elmsToUpdate, propName, elm);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
set: (propName) => {
|
|
69
|
-
const elements = elmsToUpdate.get(propName);
|
|
70
|
-
if (elements) {
|
|
71
|
-
elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
|
|
72
|
-
}
|
|
73
|
-
cleanupElements(elmsToUpdate);
|
|
74
|
-
},
|
|
75
|
-
reset: () => {
|
|
76
|
-
elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
|
|
77
|
-
cleanupElements(elmsToUpdate);
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
|
83
|
-
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
84
|
-
const unwrappedState = unwrap(defaultState);
|
|
85
|
-
let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
|
|
86
|
-
const handlers = {
|
|
87
|
-
dispose: [],
|
|
88
|
-
get: [],
|
|
89
|
-
set: [],
|
|
90
|
-
reset: [],
|
|
91
|
-
};
|
|
92
|
-
const reset = () => {
|
|
93
|
-
var _a;
|
|
94
|
-
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
|
95
|
-
// otherwise, the state won't be properly reset
|
|
96
|
-
states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
|
|
97
|
-
handlers.reset.forEach((cb) => cb());
|
|
98
|
-
};
|
|
99
|
-
const dispose = () => {
|
|
100
|
-
// Call first dispose as resetting the state would
|
|
101
|
-
// cause less updates ;)
|
|
102
|
-
handlers.dispose.forEach((cb) => cb());
|
|
103
|
-
reset();
|
|
104
|
-
};
|
|
105
|
-
const get = (propName) => {
|
|
106
|
-
handlers.get.forEach((cb) => cb(propName));
|
|
107
|
-
return states.get(propName);
|
|
108
|
-
};
|
|
109
|
-
const set = (propName, value) => {
|
|
110
|
-
const oldValue = states.get(propName);
|
|
111
|
-
if (shouldUpdate(value, oldValue, propName)) {
|
|
112
|
-
states.set(propName, value);
|
|
113
|
-
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
const state = (typeof Proxy === 'undefined'
|
|
117
|
-
? {}
|
|
118
|
-
: new Proxy(unwrappedState, {
|
|
119
|
-
get(_, propName) {
|
|
120
|
-
return get(propName);
|
|
121
|
-
},
|
|
122
|
-
ownKeys(_) {
|
|
123
|
-
return Array.from(states.keys());
|
|
124
|
-
},
|
|
125
|
-
getOwnPropertyDescriptor() {
|
|
126
|
-
return {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
configurable: true,
|
|
129
|
-
};
|
|
130
|
-
},
|
|
131
|
-
has(_, propName) {
|
|
132
|
-
return states.has(propName);
|
|
133
|
-
},
|
|
134
|
-
set(_, propName, value) {
|
|
135
|
-
set(propName, value);
|
|
136
|
-
return true;
|
|
137
|
-
},
|
|
138
|
-
}));
|
|
139
|
-
const on = (eventName, callback) => {
|
|
140
|
-
handlers[eventName].push(callback);
|
|
141
|
-
return () => {
|
|
142
|
-
removeFromArray(handlers[eventName], callback);
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
const onChange = (propName, cb) => {
|
|
146
|
-
const unSet = on('set', (key, newValue) => {
|
|
147
|
-
if (key === propName) {
|
|
148
|
-
cb(newValue);
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
// We need to unwrap the defaultState because it might be a function.
|
|
152
|
-
// Otherwise we might not be sending the right reset value.
|
|
153
|
-
const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
|
|
154
|
-
return () => {
|
|
155
|
-
unSet();
|
|
156
|
-
unReset();
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
const use = (...subscriptions) => {
|
|
160
|
-
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
|
161
|
-
if (subscription.set) {
|
|
162
|
-
unsubs.push(on('set', subscription.set));
|
|
163
|
-
}
|
|
164
|
-
if (subscription.get) {
|
|
165
|
-
unsubs.push(on('get', subscription.get));
|
|
166
|
-
}
|
|
167
|
-
if (subscription.reset) {
|
|
168
|
-
unsubs.push(on('reset', subscription.reset));
|
|
169
|
-
}
|
|
170
|
-
if (subscription.dispose) {
|
|
171
|
-
unsubs.push(on('dispose', subscription.dispose));
|
|
172
|
-
}
|
|
173
|
-
return unsubs;
|
|
174
|
-
}, []);
|
|
175
|
-
return () => unsubs.forEach((unsub) => unsub());
|
|
176
|
-
};
|
|
177
|
-
const forceUpdate = (key) => {
|
|
178
|
-
const oldValue = states.get(key);
|
|
179
|
-
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
180
|
-
};
|
|
181
|
-
return {
|
|
182
|
-
state,
|
|
183
|
-
get,
|
|
184
|
-
set,
|
|
185
|
-
on,
|
|
186
|
-
onChange,
|
|
187
|
-
use,
|
|
188
|
-
dispose,
|
|
189
|
-
reset,
|
|
190
|
-
forceUpdate,
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
const removeFromArray = (array, item) => {
|
|
194
|
-
const index = array.indexOf(item);
|
|
195
|
-
if (index >= 0) {
|
|
196
|
-
array[index] = array[array.length - 1];
|
|
197
|
-
array.length--;
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
const createStore = (defaultState, shouldUpdate) => {
|
|
202
|
-
const map = createObservableMap(defaultState, shouldUpdate);
|
|
203
|
-
map.use(stencilSubscription());
|
|
204
|
-
return map;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
var FlowStatus;
|
|
208
|
-
(function (FlowStatus) {
|
|
209
|
-
FlowStatus[FlowStatus["LANDING"] = 0] = "LANDING";
|
|
210
|
-
FlowStatus[FlowStatus["AGREEMENT"] = 1] = "AGREEMENT";
|
|
211
|
-
FlowStatus[FlowStatus["PHONE"] = 2] = "PHONE";
|
|
212
|
-
FlowStatus[FlowStatus["CODE"] = 3] = "CODE";
|
|
213
|
-
FlowStatus[FlowStatus["CODEERROR"] = 4] = "CODEERROR";
|
|
214
|
-
FlowStatus[FlowStatus["ID"] = 5] = "ID";
|
|
215
|
-
FlowStatus[FlowStatus["LIVENESS"] = 6] = "LIVENESS";
|
|
216
|
-
FlowStatus[FlowStatus["COMPLETE"] = 7] = "COMPLETE";
|
|
217
|
-
FlowStatus[FlowStatus["ERROREND"] = 8] = "ERROREND";
|
|
218
|
-
FlowStatus[FlowStatus["CAMERAERROR"] = 9] = "CAMERAERROR";
|
|
219
|
-
FlowStatus[FlowStatus["NONE"] = 10] = "NONE";
|
|
220
|
-
})(FlowStatus || (FlowStatus = {}));
|
|
221
|
-
|
|
222
|
-
class GlobalValues {
|
|
223
|
-
}
|
|
224
|
-
GlobalValues.FooterText = 'Qoobiss eKYC';
|
|
225
|
-
GlobalValues.VideoLenght = 3100;
|
|
226
|
-
class HowToValues extends GlobalValues {
|
|
227
|
-
}
|
|
228
|
-
HowToValues.IdTitile = 'Prezintă actul tău de identitate';
|
|
229
|
-
HowToValues.IdSubTitileFace = 'Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
|
|
230
|
-
HowToValues.IdSubTitileBack = 'Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
|
|
231
|
-
HowToValues.IdButton = 'Sunt gata!';
|
|
232
|
-
HowToValues.SelfieTitile = 'Validare video';
|
|
233
|
-
HowToValues.SelfieSubTitile = 'Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.';
|
|
234
|
-
HowToValues.SelfieButton = 'Sunt gata!';
|
|
235
|
-
class LandingValues extends GlobalValues {
|
|
236
|
-
}
|
|
237
|
-
LandingValues.Title = 'Validarea identității la distanță este o procedură simplă și rapidă';
|
|
238
|
-
LandingValues.Description = 'Asigură-te că ai:';
|
|
239
|
-
LandingValues.IdInfo = 'Actul de identitate, în original';
|
|
240
|
-
LandingValues.DeviceInfo = 'Un telefon mobil sau un calculator cu camera web';
|
|
241
|
-
LandingValues.SmsInfo = 'Acces la un telefon mobil ce permite primirea de mesaje SMS';
|
|
242
|
-
LandingValues.Warning = 'ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.';
|
|
243
|
-
LandingValues.WarningMd = 'ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.';
|
|
244
|
-
LandingValues.Terms = 'Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.';
|
|
245
|
-
LandingValues.Button = 'Am înțeles';
|
|
246
|
-
LandingValues.ButtonLeave = 'Nu sunt pregătit';
|
|
247
|
-
class PhoneValidationValues extends GlobalValues {
|
|
248
|
-
}
|
|
249
|
-
PhoneValidationValues.Title = 'Este necesar să validăm numărul tău de telefon';
|
|
250
|
-
PhoneValidationValues.Description = 'Introdu mai jos numarul tau de telefon:';
|
|
251
|
-
PhoneValidationValues.Button = 'Trimite SMS de verificare';
|
|
252
|
-
PhoneValidationValues.Label = 'Numarul tau de telefon';
|
|
253
|
-
class CodeValidationValues extends GlobalValues {
|
|
254
|
-
}
|
|
255
|
-
CodeValidationValues.Title = 'Introdu codul de validare primit prin sms:';
|
|
256
|
-
CodeValidationValues.Description = ' ';
|
|
257
|
-
CodeValidationValues.Button = 'Validează';
|
|
258
|
-
CodeValidationValues.Error = 'Codul introdus nu este valid. Asigură-te că îl introduci corect';
|
|
259
|
-
class CompleteValues extends GlobalValues {
|
|
260
|
-
}
|
|
261
|
-
CompleteValues.Title = 'Procesul a fost finalizat.';
|
|
262
|
-
CompleteValues.Description = 'Vei fi redirecționat în câteva momente.';
|
|
263
|
-
CompleteValues.Message = 'Îți mulțumim!';
|
|
264
|
-
class SessionKeys {
|
|
265
|
-
}
|
|
266
|
-
SessionKeys.FlowStatusKey = 'qbs-ect-flowstatus';
|
|
267
|
-
SessionKeys.RequestIdKey = 'qbs-ect-requestid';
|
|
268
|
-
SessionKeys.TokenKey = 'qbs-ect-token';
|
|
269
|
-
SessionKeys.InitialisedKey = 'qbs-ect-initialised';
|
|
270
|
-
SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
|
|
271
|
-
SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
|
|
272
|
-
SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
|
|
273
|
-
SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
274
|
-
class IdCaptureValues extends GlobalValues {
|
|
275
|
-
}
|
|
276
|
-
IdCaptureValues.Button = 'Încerc din nou';
|
|
277
|
-
IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
|
|
278
|
-
IdCaptureValues.TitleBack = 'Încadrează spatele actului de identitate în chenarul de pe ecran.';
|
|
279
|
-
IdCaptureValues.TtileRotate = 'Întoarce actul de identitate.';
|
|
280
|
-
IdCaptureValues.ErrorTitleR1 = 'Nu am putut colecta informațiile din actul de identitate!';
|
|
281
|
-
IdCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
|
|
282
|
-
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. ';
|
|
283
|
-
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.';
|
|
284
|
-
IdCaptureValues.IDPoseMapping = {
|
|
285
|
-
0: '',
|
|
286
|
-
1: 'Înclină actul de identitate spre spate.',
|
|
287
|
-
2: '',
|
|
288
|
-
3: '',
|
|
289
|
-
4: '',
|
|
290
|
-
};
|
|
291
|
-
IdCaptureValues.IDPoseDemoMapping = {
|
|
292
|
-
0: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4',
|
|
293
|
-
1: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4',
|
|
294
|
-
2: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4',
|
|
295
|
-
3: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4',
|
|
296
|
-
4: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4',
|
|
297
|
-
};
|
|
298
|
-
IdCaptureValues.Loading = 'Transferăm datele. Asteptați...';
|
|
299
|
-
class SelfieCaptureValues extends GlobalValues {
|
|
300
|
-
}
|
|
301
|
-
SelfieCaptureValues.Title = 'Încadrează fața în chenarul de pe ecran.';
|
|
302
|
-
SelfieCaptureValues.FinalTitle = 'Îndreaptă capul și încadrează fața în chenarul de pe ecran.';
|
|
303
|
-
SelfieCaptureValues.ErrorTitleR1 = 'Procesul a eșuat!';
|
|
304
|
-
SelfieCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
|
|
305
|
-
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. ';
|
|
306
|
-
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.';
|
|
307
|
-
SelfieCaptureValues.Loading = 'Transferăm datele. Asteptați...';
|
|
308
|
-
SelfieCaptureValues.FacePoseMapping = {
|
|
309
|
-
0: 'Întoarce capul spre stânga.',
|
|
310
|
-
1: 'Întoarce capul spre dreapta.',
|
|
311
|
-
2: 'Înclină capul spre spate.',
|
|
312
|
-
3: 'Înclină capul în față.',
|
|
313
|
-
// 4: 'Înclină capul spre stânga.',
|
|
314
|
-
// 5: 'Înclină capul spre dreapta.',
|
|
315
|
-
4: '',
|
|
316
|
-
};
|
|
317
|
-
SelfieCaptureValues.FacePoseDemoMapping = {
|
|
318
|
-
0: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4',
|
|
319
|
-
1: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4',
|
|
320
|
-
2: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4',
|
|
321
|
-
3: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4',
|
|
322
|
-
// 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_left.mp4',
|
|
323
|
-
// 5: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_right.mp4',
|
|
324
|
-
4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4',
|
|
325
|
-
};
|
|
326
|
-
class AgreementInfoValues extends GlobalValues {
|
|
327
|
-
}
|
|
328
|
-
AgreementInfoValues.Title = 'Pentru începerea identificării avem nevoie de acordurile tale:';
|
|
329
|
-
AgreementInfoValues.Button = 'Încep identificarea';
|
|
330
|
-
AgreementInfoValues.Terms = 'Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare';
|
|
331
|
-
AgreementInfoValues.Agreement = 'Îmi exprim acordul pentru prelucrarea datelor cu caracter personal';
|
|
332
|
-
class AgreementCheckValues extends GlobalValues {
|
|
333
|
-
}
|
|
334
|
-
AgreementCheckValues.ButtonYes = 'Sunt de acord';
|
|
335
|
-
AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
|
|
336
|
-
class ApiUrls {
|
|
337
|
-
constructor() {
|
|
338
|
-
this.uriEnv = '/';
|
|
339
|
-
this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
|
|
340
|
-
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
341
|
-
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
342
|
-
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
343
|
-
this.UploadCapture = this.uriEnv + 'validation/upload/capture';
|
|
344
|
-
this.GetAgreement = this.uriEnv + 'validation/agreement/content';
|
|
345
|
-
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
346
|
-
this.SendLink = this.uriEnv + 'validation/otp/sendlink';
|
|
347
|
-
this.GetStatus = this.uriEnv + 'validation/identity/status';
|
|
348
|
-
this.AddLog = this.uriEnv + 'validation/logs/add';
|
|
349
|
-
this.AddStep = this.uriEnv + 'validation/logs/step';
|
|
350
|
-
this.AbortRequest = this.uriEnv + 'validation/identity/abort';
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
class MobileRedirectValues extends GlobalValues {
|
|
354
|
-
}
|
|
355
|
-
MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu un smartphone.';
|
|
356
|
-
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
|
|
357
|
-
MobileRedirectValues.Validation = 'Număr de telefon invalid!';
|
|
358
|
-
MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
|
|
359
|
-
MobileRedirectValues.InfoAborted = 'Procesului de pe smartphone a fost amanat.';
|
|
360
|
-
class CameraErrorValues extends GlobalValues {
|
|
361
|
-
}
|
|
362
|
-
CameraErrorValues.Title = 'Procesul de indetificare nu poate continua.';
|
|
363
|
-
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.';
|
|
364
|
-
CameraErrorValues.Button = 'Reincep procesul';
|
|
365
|
-
CameraErrorValues.HowToLink = 'https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4';
|
|
366
|
-
|
|
367
|
-
const { state, onChange } = createStore({
|
|
368
|
-
flowStatus: FlowStatus.NONE,
|
|
369
|
-
environment: 'PROD',
|
|
370
|
-
debug: false,
|
|
371
|
-
requestId: '',
|
|
372
|
-
redirectId: '',
|
|
373
|
-
initialised: false,
|
|
374
|
-
token: '',
|
|
375
|
-
cameraIds: [],
|
|
376
|
-
cameraId: '',
|
|
377
|
-
hasIdBack: false,
|
|
378
|
-
hasSelfieGesture: false,
|
|
379
|
-
hasIdTilt: false,
|
|
380
|
-
agreementsValidation: true,
|
|
381
|
-
phoneValidation: true,
|
|
382
|
-
phoneNumber: '',
|
|
383
|
-
apiBaseUrl: 'https://apiro.id-kyc.com',
|
|
384
|
-
device: null,
|
|
385
|
-
recordingRetryCount: 0,
|
|
386
|
-
});
|
|
387
|
-
onChange('environment', value => {
|
|
388
|
-
state.debug = value == 'QA';
|
|
389
|
-
});
|
|
390
|
-
onChange('flowStatus', value => {
|
|
391
|
-
sessionStorage.setItem(SessionKeys.FlowStatusKey, FlowStatus[value]);
|
|
392
|
-
});
|
|
393
|
-
onChange('token', value => {
|
|
394
|
-
sessionStorage.setItem(SessionKeys.TokenKey, value);
|
|
395
|
-
});
|
|
396
|
-
onChange('requestId', value => {
|
|
397
|
-
sessionStorage.setItem(SessionKeys.RequestIdKey, value);
|
|
398
|
-
});
|
|
399
|
-
onChange('initialised', value => {
|
|
400
|
-
sessionStorage.setItem(SessionKeys.InitialisedKey, String(value));
|
|
401
|
-
});
|
|
402
|
-
onChange('hasIdBack', value => {
|
|
403
|
-
sessionStorage.setItem(SessionKeys.HasIdBackKey, String(value));
|
|
404
|
-
});
|
|
405
|
-
onChange('agreementsValidation', value => {
|
|
406
|
-
sessionStorage.setItem(SessionKeys.AgreementValidationKey, String(value));
|
|
407
|
-
});
|
|
408
|
-
onChange('phoneValidation', value => {
|
|
409
|
-
sessionStorage.setItem(SessionKeys.PhoneValidationKey, String(value));
|
|
410
|
-
});
|
|
411
|
-
|
|
412
17
|
var FlowSteps;
|
|
413
18
|
(function (FlowSteps) {
|
|
414
19
|
FlowSteps[FlowSteps["ComponentLoaded"] = 'component-loaded'] = "ComponentLoaded";
|
|
@@ -449,7 +54,7 @@ class ApiCall {
|
|
|
449
54
|
reader.onload = () => resolve(reader.result);
|
|
450
55
|
reader.onerror = error => reject(error);
|
|
451
56
|
});
|
|
452
|
-
this.urls = new ApiUrls();
|
|
57
|
+
this.urls = new store.ApiUrls();
|
|
453
58
|
}
|
|
454
59
|
// private async http2<T>(method: string, url: string, data: string): Promise<T> {
|
|
455
60
|
// return new Promise((resolve, reject) => {
|
|
@@ -488,12 +93,12 @@ class ApiCall {
|
|
|
488
93
|
}
|
|
489
94
|
}
|
|
490
95
|
async post(url, data, withRetry = true) {
|
|
491
|
-
var request = new Request(state.apiBaseUrl + url, {
|
|
96
|
+
var request = new Request(store.state.apiBaseUrl + url, {
|
|
492
97
|
method: 'POST',
|
|
493
98
|
body: data,
|
|
494
99
|
headers: {
|
|
495
100
|
'Content-Type': 'application/json',
|
|
496
|
-
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
101
|
+
'Authorization': 'IDKYC-TOKEN ' + store.state.token,
|
|
497
102
|
},
|
|
498
103
|
});
|
|
499
104
|
try {
|
|
@@ -505,24 +110,24 @@ class ApiCall {
|
|
|
505
110
|
}
|
|
506
111
|
this.AddLog('Error in post ', ex);
|
|
507
112
|
try {
|
|
508
|
-
var request2 = new Request(state.apiBaseUrl + url, {
|
|
113
|
+
var request2 = new Request(store.state.apiBaseUrl + url, {
|
|
509
114
|
method: 'POST',
|
|
510
115
|
body: data,
|
|
511
116
|
headers: {
|
|
512
117
|
'Content-Type': 'application/json',
|
|
513
|
-
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
118
|
+
'Authorization': 'IDKYC-TOKEN ' + store.state.token,
|
|
514
119
|
},
|
|
515
120
|
});
|
|
516
121
|
return await this.http(request2);
|
|
517
122
|
}
|
|
518
123
|
catch (ex2) {
|
|
519
124
|
this.AddLog('Error in post ', ex2);
|
|
520
|
-
var request3 = new Request(state.apiBaseUrl + url, {
|
|
125
|
+
var request3 = new Request(store.state.apiBaseUrl + url, {
|
|
521
126
|
method: 'POST',
|
|
522
127
|
body: data,
|
|
523
128
|
headers: {
|
|
524
129
|
'Content-Type': 'application/json',
|
|
525
|
-
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
130
|
+
'Authorization': 'IDKYC-TOKEN ' + store.state.token,
|
|
526
131
|
},
|
|
527
132
|
});
|
|
528
133
|
return await this.http(request3);
|
|
@@ -530,11 +135,11 @@ class ApiCall {
|
|
|
530
135
|
}
|
|
531
136
|
}
|
|
532
137
|
async get(url, withRetry = true) {
|
|
533
|
-
var request = new Request(state.apiBaseUrl + url, {
|
|
138
|
+
var request = new Request(store.state.apiBaseUrl + url, {
|
|
534
139
|
method: 'GET',
|
|
535
140
|
headers: {
|
|
536
141
|
'Content-Type': 'application/json',
|
|
537
|
-
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
142
|
+
'Authorization': 'IDKYC-TOKEN ' + store.state.token,
|
|
538
143
|
},
|
|
539
144
|
});
|
|
540
145
|
try {
|
|
@@ -546,22 +151,22 @@ class ApiCall {
|
|
|
546
151
|
}
|
|
547
152
|
this.AddLog('Error in get ', ex);
|
|
548
153
|
try {
|
|
549
|
-
var request2 = new Request(state.apiBaseUrl + url, {
|
|
154
|
+
var request2 = new Request(store.state.apiBaseUrl + url, {
|
|
550
155
|
method: 'GET',
|
|
551
156
|
headers: {
|
|
552
157
|
'Content-Type': 'application/json',
|
|
553
|
-
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
158
|
+
'Authorization': 'IDKYC-TOKEN ' + store.state.token,
|
|
554
159
|
},
|
|
555
160
|
});
|
|
556
161
|
return await this.http(request2);
|
|
557
162
|
}
|
|
558
163
|
catch (ex2) {
|
|
559
164
|
this.AddLog('Error in get ', ex2);
|
|
560
|
-
var request3 = new Request(state.apiBaseUrl + url, {
|
|
165
|
+
var request3 = new Request(store.state.apiBaseUrl + url, {
|
|
561
166
|
method: 'GET',
|
|
562
167
|
headers: {
|
|
563
168
|
'Content-Type': 'application/json',
|
|
564
|
-
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
169
|
+
'Authorization': 'IDKYC-TOKEN ' + store.state.token,
|
|
565
170
|
},
|
|
566
171
|
});
|
|
567
172
|
return await this.http(request3);
|
|
@@ -579,25 +184,25 @@ class ApiCall {
|
|
|
579
184
|
return jsonResp.valid;
|
|
580
185
|
}
|
|
581
186
|
async AddIdentificationRequest(deviceInfo, version) {
|
|
582
|
-
if (state.debug)
|
|
583
|
-
console.log('Calling identity request with store:' + JSON.stringify(state));
|
|
187
|
+
if (store.state.debug)
|
|
188
|
+
console.log('Calling identity request with store:' + JSON.stringify(store.state));
|
|
584
189
|
let data = {
|
|
585
|
-
requestId: state.requestId,
|
|
190
|
+
requestId: store.state.requestId,
|
|
586
191
|
clientDeviceInfo: JSON.stringify(deviceInfo),
|
|
587
|
-
redirectId: state.redirectId,
|
|
588
|
-
phoneNumber: state.phoneNumber,
|
|
192
|
+
redirectId: store.state.redirectId,
|
|
193
|
+
phoneNumber: store.state.phoneNumber,
|
|
589
194
|
version: version,
|
|
590
195
|
};
|
|
591
196
|
let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
|
|
592
|
-
if (state.requestId == '') {
|
|
593
|
-
state.requestId = jsonResp.requestId;
|
|
594
|
-
}
|
|
595
|
-
state.hasIdBack = jsonResp.hasIdBack;
|
|
596
|
-
state.hasIdTilt = jsonResp.hasIdTilt;
|
|
597
|
-
state.hasSelfieGesture = jsonResp.hasSelfieGesture;
|
|
598
|
-
state.agreementsValidation = jsonResp.agreementsValidation;
|
|
599
|
-
state.phoneValidation = jsonResp.phoneValidation;
|
|
600
|
-
state.phoneNumber = jsonResp.phoneNumber;
|
|
197
|
+
if (store.state.requestId == '') {
|
|
198
|
+
store.state.requestId = jsonResp.requestId;
|
|
199
|
+
}
|
|
200
|
+
store.state.hasIdBack = jsonResp.hasIdBack;
|
|
201
|
+
store.state.hasIdTilt = jsonResp.hasIdTilt;
|
|
202
|
+
store.state.hasSelfieGesture = jsonResp.hasSelfieGesture;
|
|
203
|
+
store.state.agreementsValidation = jsonResp.agreementsValidation;
|
|
204
|
+
store.state.phoneValidation = jsonResp.phoneValidation;
|
|
205
|
+
store.state.phoneNumber = jsonResp.phoneNumber;
|
|
601
206
|
return true;
|
|
602
207
|
}
|
|
603
208
|
async UploadFileForRequestB64(requestId, type, file) {
|
|
@@ -607,10 +212,10 @@ class ApiCall {
|
|
|
607
212
|
data: await this.toBase64(file),
|
|
608
213
|
};
|
|
609
214
|
let respJson = await this.post(this.urls.UploadCapture, JSON.stringify(data));
|
|
610
|
-
if (!state.hasIdBack && type == 'IdFront') {
|
|
215
|
+
if (!store.state.hasIdBack && type == 'IdFront') {
|
|
611
216
|
return respJson.isValid;
|
|
612
217
|
}
|
|
613
|
-
if (state.hasIdBack && type == 'IdBack') {
|
|
218
|
+
if (store.state.hasIdBack && type == 'IdBack') {
|
|
614
219
|
return respJson.isValid;
|
|
615
220
|
}
|
|
616
221
|
if (type == 'Selfie') {
|
|
@@ -619,11 +224,11 @@ class ApiCall {
|
|
|
619
224
|
return true;
|
|
620
225
|
}
|
|
621
226
|
async GetAgreement(agreementType) {
|
|
622
|
-
let resp = await this.get(this.urls.GetAgreement + '?type=' + agreementType + '&requestId=' + state.requestId);
|
|
227
|
+
let resp = await this.get(this.urls.GetAgreement + '?type=' + agreementType + '&requestId=' + store.state.requestId);
|
|
623
228
|
return resp.htmlText;
|
|
624
229
|
}
|
|
625
230
|
async GenerateAgreement(agreementType) {
|
|
626
|
-
let data = { requestId: state.requestId, documentType: agreementType };
|
|
231
|
+
let data = { requestId: store.state.requestId, documentType: agreementType };
|
|
627
232
|
let resp = await this.post(this.urls.GenerateAgreement, JSON.stringify(data));
|
|
628
233
|
return resp.generation;
|
|
629
234
|
}
|
|
@@ -632,15 +237,15 @@ class ApiCall {
|
|
|
632
237
|
return OrderStatuses[resp.status];
|
|
633
238
|
}
|
|
634
239
|
async SendLink(link, phoneNumber) {
|
|
635
|
-
let data = { requestId: state.requestId, link: link, phoneNumber: phoneNumber };
|
|
240
|
+
let data = { requestId: store.state.requestId, link: link, phoneNumber: phoneNumber };
|
|
636
241
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
637
242
|
return resp.sent;
|
|
638
243
|
}
|
|
639
244
|
async AddLog(error, context) {
|
|
640
245
|
try {
|
|
641
246
|
let data = {
|
|
642
|
-
requestId: state.requestId,
|
|
643
|
-
action: FlowStatus[state.flowStatus],
|
|
247
|
+
requestId: store.state.requestId,
|
|
248
|
+
action: store.FlowStatus[store.state.flowStatus],
|
|
644
249
|
message: JSON.stringify({ error, context }),
|
|
645
250
|
};
|
|
646
251
|
let result = await this.post(this.urls.AddLog, JSON.stringify(data), false);
|
|
@@ -649,12 +254,12 @@ class ApiCall {
|
|
|
649
254
|
catch (_a) { }
|
|
650
255
|
}
|
|
651
256
|
async AddStep(step, moment) {
|
|
652
|
-
let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
|
|
257
|
+
let data = { requestId: store.state.requestId, redirectId: store.state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
|
|
653
258
|
let result = await this.post(this.urls.AddStep, JSON.stringify(data));
|
|
654
259
|
return result.saved;
|
|
655
260
|
}
|
|
656
261
|
async AbortRequest() {
|
|
657
|
-
let result = await this.post(this.urls.AbortRequest, JSON.stringify({ requestId: state.requestId }));
|
|
262
|
+
let result = await this.post(this.urls.AbortRequest, JSON.stringify({ requestId: store.state.requestId }));
|
|
658
263
|
return result.saved;
|
|
659
264
|
}
|
|
660
265
|
}
|
|
@@ -669,6 +274,7 @@ const AgreementCheck = class {
|
|
|
669
274
|
this.agreementType = undefined;
|
|
670
275
|
this.htmlContent = undefined;
|
|
671
276
|
this.buttonEnabled = undefined;
|
|
277
|
+
this.scrollClass = 'scroll';
|
|
672
278
|
this.apiCalls = new ApiCall();
|
|
673
279
|
this.buttonEnabled = true;
|
|
674
280
|
}
|
|
@@ -684,8 +290,16 @@ const AgreementCheck = class {
|
|
|
684
290
|
this.buttonEnabled = false;
|
|
685
291
|
this.agreementAcceptance.emit({ agreementType: this.agreementType, result });
|
|
686
292
|
}
|
|
293
|
+
handleScroll(ev) {
|
|
294
|
+
if (ev.target.offsetHeight + ev.target.scrollTop >= ev.target.scrollHeight) {
|
|
295
|
+
this.scrollClass = 'scroll-full';
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
this.scrollClass = 'scroll';
|
|
299
|
+
}
|
|
300
|
+
}
|
|
687
301
|
render() {
|
|
688
|
-
let content = (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class:
|
|
302
|
+
let content = (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: this.scrollClass, innerHTML: this.htmlContent }), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("div", { class: "d-flex two-buttons" }, index.h("button", { class: "normal-button red-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(false) }, store.AgreementCheckValues.ButtonNo), index.h("button", { class: "normal-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(true) }, store.AgreementCheckValues.ButtonYes)), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.AgreementInfoValues.FooterText))))));
|
|
689
303
|
return this.htmlContent ? content : index.h("div", null);
|
|
690
304
|
}
|
|
691
305
|
};
|
|
@@ -866,8 +480,8 @@ class BaseComponent {
|
|
|
866
480
|
this.apiCall = new ApiCall();
|
|
867
481
|
if (step)
|
|
868
482
|
this.flowStep = step;
|
|
869
|
-
if (!state.device) {
|
|
870
|
-
state.device = new DeviceDetection().getDevice();
|
|
483
|
+
if (!store.state.device) {
|
|
484
|
+
store.state.device = new DeviceDetection().getDevice();
|
|
871
485
|
}
|
|
872
486
|
}
|
|
873
487
|
setEventEmitter(event) {
|
|
@@ -941,7 +555,7 @@ const AgreementInfo = class {
|
|
|
941
555
|
}
|
|
942
556
|
async buttonClick() {
|
|
943
557
|
if (this.agreementsChecked && this.termsChecked) {
|
|
944
|
-
state.flowStatus = FlowStatus.PHONE;
|
|
558
|
+
store.state.flowStatus = store.FlowStatus.PHONE;
|
|
945
559
|
}
|
|
946
560
|
}
|
|
947
561
|
agreementAcceptanceEmitted(data) {
|
|
@@ -963,7 +577,7 @@ const AgreementInfo = class {
|
|
|
963
577
|
render() {
|
|
964
578
|
let agreementsCheck = index.h("agreement-check", { agreementType: "agreement" });
|
|
965
579
|
let termsCheck = index.h("agreement-check", { agreementType: "terms" });
|
|
966
|
-
let mainComp = (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, AgreementInfoValues.Title), index.h("div", { class: "d-flex space-between align-center" }, index.h("h3", { class: "main-text font-size-2", onClick: () => this.agreementsClicked() }, index.h("input", { type: "checkbox", readOnly: true, checked: this.agreementsChecked }), AgreementInfoValues.Agreement)), index.h("div", { class: "d-flex space-between align-center" }, index.h("h3", { class: "main-text font-size-2", onClick: () => this.termsClicked() }, index.h("input", { type: "checkbox", readOnly: true, checked: this.termsChecked }), AgreementInfoValues.Terms))), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, AgreementInfoValues.Button), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, AgreementInfoValues.FooterText))))));
|
|
580
|
+
let mainComp = (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, store.AgreementInfoValues.Title), index.h("div", { class: "d-flex space-between align-center" }, index.h("h3", { class: "main-text font-size-2", onClick: () => this.agreementsClicked() }, index.h("input", { type: "checkbox", readOnly: true, checked: this.agreementsChecked }), store.AgreementInfoValues.Agreement)), index.h("div", { class: "d-flex space-between align-center" }, index.h("h3", { class: "main-text font-size-2", onClick: () => this.termsClicked() }, index.h("input", { type: "checkbox", readOnly: true, checked: this.termsChecked }), store.AgreementInfoValues.Terms))), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, store.AgreementInfoValues.Button), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.AgreementInfoValues.FooterText))))));
|
|
967
581
|
return this.openAgreements ? agreementsCheck : this.openTerms ? termsCheck : mainComp;
|
|
968
582
|
}
|
|
969
583
|
};
|
|
@@ -2271,7 +1885,7 @@ class ML5 {
|
|
|
2271
1885
|
}
|
|
2272
1886
|
async init() {
|
|
2273
1887
|
return new Promise(async (resolve) => {
|
|
2274
|
-
const modelPath = state.hasIdBack ? 'https://ekyc.blob.core.windows.net/$web/md/model.json' : 'https://ekyc.blob.core.windows.net/$web/model.json';
|
|
1888
|
+
const modelPath = store.state.hasIdBack ? 'https://ekyc.blob.core.windows.net/$web/md/model.json' : 'https://ekyc.blob.core.windows.net/$web/model.json';
|
|
2275
1889
|
this.classifier = await ml5.imageClassifier(modelPath, this.loaded);
|
|
2276
1890
|
this.faceapi = await ml5.faceApi({ withLandmarks: true, withDescriptors: false }, this.loaded);
|
|
2277
1891
|
//warmup
|
|
@@ -2283,13 +1897,13 @@ class ML5 {
|
|
|
2283
1897
|
});
|
|
2284
1898
|
}
|
|
2285
1899
|
loaded() {
|
|
2286
|
-
if (state.debug)
|
|
1900
|
+
if (store.state.debug)
|
|
2287
1901
|
console.log('ML5 LOADED!!!');
|
|
2288
1902
|
}
|
|
2289
1903
|
gotResults(error, results) {
|
|
2290
|
-
if (state.debug)
|
|
1904
|
+
if (store.state.debug)
|
|
2291
1905
|
console.log(error);
|
|
2292
|
-
if (state.debug)
|
|
1906
|
+
if (store.state.debug)
|
|
2293
1907
|
console.log(results);
|
|
2294
1908
|
}
|
|
2295
1909
|
}
|
|
@@ -2308,8 +1922,8 @@ const blobToBase64 = (blob) => {
|
|
|
2308
1922
|
const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
2309
1923
|
const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
|
|
2310
1924
|
return {
|
|
2311
|
-
store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
|
|
2312
|
-
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
1925
|
+
store_values: { request_id: store.state.requestId, redirect_id: store.state.redirectId, token: store.state.token },
|
|
1926
|
+
session_values: { request_id: sessionStorage.getItem(store.SessionKeys.RequestIdKey), token: sessionStorage.getItem(store.SessionKeys.TokenKey) },
|
|
2313
1927
|
parameter_values: { request_id: param_req_id, redirect_id: param_redirect_id, token: param_token },
|
|
2314
1928
|
};
|
|
2315
1929
|
};
|
|
@@ -2585,7 +2199,7 @@ class FaceML5Detector {
|
|
|
2585
2199
|
this.stream.autoCapturing();
|
|
2586
2200
|
// this.frontFace = new FaceLandmarks(results[0], this.width, this.height);
|
|
2587
2201
|
await this.drawFrame('green');
|
|
2588
|
-
await delay(GlobalValues.VideoLenght);
|
|
2202
|
+
await delay(store.GlobalValues.VideoLenght);
|
|
2589
2203
|
}
|
|
2590
2204
|
}
|
|
2591
2205
|
}
|
|
@@ -2656,7 +2270,7 @@ class FaceML5Detector {
|
|
|
2656
2270
|
if (this.frontFace == null) {
|
|
2657
2271
|
this.frontFace = face;
|
|
2658
2272
|
// await this.drawFrame('green');
|
|
2659
|
-
if (state.debug)
|
|
2273
|
+
if (store.state.debug)
|
|
2660
2274
|
console.log('face ok');
|
|
2661
2275
|
}
|
|
2662
2276
|
else if (this.frontFace != null && this.presentedFacePose == null) {
|
|
@@ -5249,8 +4863,8 @@ class Stream {
|
|
|
5249
4863
|
// this.dropMask();
|
|
5250
4864
|
// if (this.faceDetection) Detector.getInstance().stopDetector();
|
|
5251
4865
|
};
|
|
5252
|
-
this.idML5Detector = IDML5Detector.getInstance(this, state.device.isMobile);
|
|
5253
|
-
this.faceML5Detector = FaceML5Detector.getInstance(this, state.device.isMobile);
|
|
4866
|
+
this.idML5Detector = IDML5Detector.getInstance(this, store.state.device.isMobile);
|
|
4867
|
+
this.faceML5Detector = FaceML5Detector.getInstance(this, store.state.device.isMobile);
|
|
5254
4868
|
this.verificationMode = mode;
|
|
5255
4869
|
}
|
|
5256
4870
|
static getInstance(mode) {
|
|
@@ -5318,7 +4932,7 @@ class Stream {
|
|
|
5318
4932
|
return;
|
|
5319
4933
|
var options = { mimeType: Stream.webmMimeType.mime, videoBitsPerSecond: 1500000 };
|
|
5320
4934
|
if (!MediaRecorder.isTypeSupported(options.mimeType)) {
|
|
5321
|
-
if (state.device.mobileOS == MobileOS.iOS || state.device.browser == Browser.Safari)
|
|
4935
|
+
if (store.state.device.mobileOS == MobileOS.iOS || store.state.device.browser == Browser.Safari)
|
|
5322
4936
|
options.mimeType = Stream.mp4MimeType.mime;
|
|
5323
4937
|
}
|
|
5324
4938
|
this.recordedChunks = [];
|
|
@@ -5369,7 +4983,7 @@ class Stream {
|
|
|
5369
4983
|
const context = canvas.getContext('2d');
|
|
5370
4984
|
context.drawImage(this.videoElement, 0, 0, canvas.width, canvas.height);
|
|
5371
4985
|
canvas.toBlob((frame) => {
|
|
5372
|
-
if (frame.type === ImageFormat.JPEG && !state.device.isAppleDevice) {
|
|
4986
|
+
if (frame.type === ImageFormat.JPEG && !store.state.device.isAppleDevice) {
|
|
5373
4987
|
try {
|
|
5374
4988
|
addExifInImg(frame, this.stream.getTracks()[0], this.videoSize).then(updatedFrame => resolve(updatedFrame));
|
|
5375
4989
|
}
|
|
@@ -5471,7 +5085,7 @@ const Camera = class {
|
|
|
5471
5085
|
render() {
|
|
5472
5086
|
let cameraVideoClass = 'cameraVideo';
|
|
5473
5087
|
let cameraCanvasClass = 'cameraCanvas';
|
|
5474
|
-
if (state.device.isDesktop) {
|
|
5088
|
+
if (store.state.device.isDesktop) {
|
|
5475
5089
|
cameraVideoClass = 'cameraVideoSelfieDesk';
|
|
5476
5090
|
cameraCanvasClass = 'cameraCanvasSelfieDesk';
|
|
5477
5091
|
}
|
|
@@ -5523,22 +5137,22 @@ const CameraError = class {
|
|
|
5523
5137
|
}
|
|
5524
5138
|
async componentWillLoad() {
|
|
5525
5139
|
this.buttonDisabled = false;
|
|
5526
|
-
this.title = CameraErrorValues.Title;
|
|
5527
|
-
this.description = CameraErrorValues.Description;
|
|
5528
|
-
this.buttonText = CameraErrorValues.Button;
|
|
5140
|
+
this.title = store.CameraErrorValues.Title;
|
|
5141
|
+
this.description = store.CameraErrorValues.Description;
|
|
5142
|
+
this.buttonText = store.CameraErrorValues.Button;
|
|
5529
5143
|
}
|
|
5530
5144
|
async componentDidLoad() {
|
|
5531
5145
|
await this.baseComponent.initialize();
|
|
5532
|
-
if (state.device.mobileOS != MobileOS.iOS) {
|
|
5533
|
-
this.demoVideo.src = CameraErrorValues.HowToLink;
|
|
5146
|
+
if (store.state.device.mobileOS != MobileOS.iOS) {
|
|
5147
|
+
this.demoVideo.src = store.CameraErrorValues.HowToLink;
|
|
5534
5148
|
this.demoVideo.loop = true;
|
|
5535
5149
|
this.demoVideo.play();
|
|
5536
5150
|
}
|
|
5537
5151
|
else {
|
|
5538
|
-
var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
|
|
5152
|
+
var loaded = sessionStorage.getItem(store.SessionKeys.RefreshDoneKey);
|
|
5539
5153
|
if (loaded === 'true') {
|
|
5540
|
-
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
5541
|
-
state.flowStatus = FlowStatus.LANDING;
|
|
5154
|
+
sessionStorage.setItem(store.SessionKeys.RefreshDoneKey, 'false');
|
|
5155
|
+
store.state.flowStatus = store.FlowStatus.LANDING;
|
|
5542
5156
|
}
|
|
5543
5157
|
}
|
|
5544
5158
|
}
|
|
@@ -5547,16 +5161,16 @@ const CameraError = class {
|
|
|
5547
5161
|
}
|
|
5548
5162
|
async buttonClick() {
|
|
5549
5163
|
this.buttonDisabled = true;
|
|
5550
|
-
if (state.device.mobileOS == MobileOS.iOS) {
|
|
5551
|
-
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
|
|
5164
|
+
if (store.state.device.mobileOS == MobileOS.iOS) {
|
|
5165
|
+
sessionStorage.setItem(store.SessionKeys.RefreshDoneKey, 'true');
|
|
5552
5166
|
window.location.reload();
|
|
5553
5167
|
}
|
|
5554
5168
|
else {
|
|
5555
|
-
state.flowStatus = FlowStatus.LANDING;
|
|
5169
|
+
store.state.flowStatus = store.FlowStatus.LANDING;
|
|
5556
5170
|
}
|
|
5557
5171
|
}
|
|
5558
5172
|
render() {
|
|
5559
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("h1", { class: "color-red" }, this.title), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), index.h("div", { hidden: state.device.mobileOS == MobileOS.iOS }, index.h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, CameraErrorValues.FooterText))))));
|
|
5173
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("h1", { class: "color-red" }, this.title), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), index.h("div", { hidden: store.state.device.mobileOS == MobileOS.iOS }, index.h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.CameraErrorValues.FooterText))))));
|
|
5560
5174
|
}
|
|
5561
5175
|
};
|
|
5562
5176
|
CameraError.style = cameraErrorCss;
|
|
@@ -5575,16 +5189,16 @@ const CaptureError = class {
|
|
|
5575
5189
|
async componentWillLoad() {
|
|
5576
5190
|
this.buttonEnabled = false;
|
|
5577
5191
|
if (this.type == 'ID') {
|
|
5578
|
-
this.titleR1 = IdCaptureValues.ErrorTitleR1;
|
|
5579
|
-
this.titleR2 = IdCaptureValues.ErrorTitleR2;
|
|
5580
|
-
this.descriptionR1 = IdCaptureValues.ErrorR1;
|
|
5581
|
-
this.descriptionR2 = IdCaptureValues.ErrorR2;
|
|
5192
|
+
this.titleR1 = store.IdCaptureValues.ErrorTitleR1;
|
|
5193
|
+
this.titleR2 = store.IdCaptureValues.ErrorTitleR2;
|
|
5194
|
+
this.descriptionR1 = store.IdCaptureValues.ErrorR1;
|
|
5195
|
+
this.descriptionR2 = store.IdCaptureValues.ErrorR2;
|
|
5582
5196
|
}
|
|
5583
5197
|
if (this.type == 'LIVENESS') {
|
|
5584
|
-
this.titleR1 = SelfieCaptureValues.ErrorTitleR1;
|
|
5585
|
-
this.titleR2 = SelfieCaptureValues.ErrorTitleR2;
|
|
5586
|
-
this.descriptionR1 = SelfieCaptureValues.ErrorR1;
|
|
5587
|
-
this.descriptionR2 = SelfieCaptureValues.ErrorR2;
|
|
5198
|
+
this.titleR1 = store.SelfieCaptureValues.ErrorTitleR1;
|
|
5199
|
+
this.titleR2 = store.SelfieCaptureValues.ErrorTitleR2;
|
|
5200
|
+
this.descriptionR1 = store.SelfieCaptureValues.ErrorR1;
|
|
5201
|
+
this.descriptionR2 = store.SelfieCaptureValues.ErrorR2;
|
|
5588
5202
|
}
|
|
5589
5203
|
}
|
|
5590
5204
|
async componentDidLoad() {
|
|
@@ -5593,7 +5207,7 @@ const CaptureError = class {
|
|
|
5593
5207
|
this.buttonText = i.toString();
|
|
5594
5208
|
await delay(1000);
|
|
5595
5209
|
}
|
|
5596
|
-
this.buttonText = IdCaptureValues.Button;
|
|
5210
|
+
this.buttonText = store.IdCaptureValues.Button;
|
|
5597
5211
|
this.buttonEnabled = true;
|
|
5598
5212
|
}
|
|
5599
5213
|
async buttonClick() {
|
|
@@ -5602,7 +5216,7 @@ const CaptureError = class {
|
|
|
5602
5216
|
this.eventCaptureErrorDone.emit();
|
|
5603
5217
|
}
|
|
5604
5218
|
render() {
|
|
5605
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("h1", { class: "color-red" }, this.titleR1), index.h("h1", { class: "color-red" }, this.titleR2), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
|
|
5219
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("h1", { class: "color-red" }, this.titleR1), index.h("h1", { class: "color-red" }, this.titleR2), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.IdCaptureValues.FooterText))))));
|
|
5606
5220
|
}
|
|
5607
5221
|
};
|
|
5608
5222
|
CaptureError.style = captureErrorCss;
|
|
@@ -5617,7 +5231,7 @@ const EndRedirect = class {
|
|
|
5617
5231
|
Events.flowCompleted();
|
|
5618
5232
|
}
|
|
5619
5233
|
render() {
|
|
5620
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, CompleteValues.Title), index.h("p", { class: "main-text font-size-18 mt-8 text-center" }, CompleteValues.Description)), index.h("div", { class: "buletin-container" }, index.h("div", { class: "container-coin" }, index.h("div", { class: "coin-scale" }, index.h("div", { class: "coin-flip" }, index.h("img", { class: "w-40 coin", src: completeSvg }))))), index.h("div", { class: "text-center" }, index.h("p", { class: "font-weight-900 font-size-3 color-black-2 text-center mt-20" }, CompleteValues.Message), index.h("p", null, state.requestId)), index.h("div", { class: "btn-buletin" }, index.h("p", { class: "main-text font-size-18 text-center mb-0" }, CompleteValues.FooterText)))));
|
|
5234
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, store.CompleteValues.Title), index.h("p", { class: "main-text font-size-18 mt-8 text-center" }, store.CompleteValues.Description)), index.h("div", { class: "buletin-container" }, index.h("div", { class: "container-coin" }, index.h("div", { class: "coin-scale" }, index.h("div", { class: "coin-flip" }, index.h("img", { class: "w-40 coin", src: completeSvg }))))), index.h("div", { class: "text-center" }, index.h("p", { class: "font-weight-900 font-size-3 color-black-2 text-center mt-20" }, store.CompleteValues.Message), index.h("p", null, store.state.requestId)), index.h("div", { class: "btn-buletin" }, index.h("p", { class: "main-text font-size-18 text-center mb-0" }, store.CompleteValues.FooterText)))));
|
|
5621
5235
|
}
|
|
5622
5236
|
};
|
|
5623
5237
|
EndRedirect.style = endRedirectCss;
|
|
@@ -5632,7 +5246,7 @@ const ErrorEnd = class {
|
|
|
5632
5246
|
}
|
|
5633
5247
|
componentDidLoad() { }
|
|
5634
5248
|
render() {
|
|
5635
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "text-center" }, index.h("h1", null, this.errorTitle)), index.h("div", { class: "text-center" }, index.h("p", null, state.requestId)), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
5249
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "text-center" }, index.h("h1", null, this.errorTitle)), index.h("div", { class: "text-center" }, index.h("p", null, store.state.requestId)), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
5636
5250
|
}
|
|
5637
5251
|
};
|
|
5638
5252
|
ErrorEnd.style = errorEndCss;
|
|
@@ -5654,31 +5268,31 @@ const HowToInfo = class {
|
|
|
5654
5268
|
componentWillLoad() {
|
|
5655
5269
|
this.subTitle = '';
|
|
5656
5270
|
this.buttonEnabled = true;
|
|
5657
|
-
if (state.flowStatus == FlowStatus.ID) {
|
|
5658
|
-
this.topTitle = HowToValues.IdTitile;
|
|
5271
|
+
if (store.state.flowStatus == store.FlowStatus.ID) {
|
|
5272
|
+
this.topTitle = store.HowToValues.IdTitile;
|
|
5659
5273
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_id.png';
|
|
5660
|
-
this.buttonText = HowToValues.IdButton;
|
|
5274
|
+
this.buttonText = store.HowToValues.IdButton;
|
|
5661
5275
|
if (this.idSide == 'front') {
|
|
5662
5276
|
this.baseComponent = new BaseComponent(FlowSteps.CiFrontHowTo);
|
|
5663
|
-
this.subTitle = HowToValues.IdSubTitileFace;
|
|
5277
|
+
this.subTitle = store.HowToValues.IdSubTitileFace;
|
|
5664
5278
|
}
|
|
5665
5279
|
if (this.idSide == 'back') {
|
|
5666
5280
|
this.baseComponent = new BaseComponent(FlowSteps.CiBackHowTo);
|
|
5667
|
-
this.subTitle = HowToValues.IdSubTitileBack;
|
|
5281
|
+
this.subTitle = store.HowToValues.IdSubTitileBack;
|
|
5668
5282
|
}
|
|
5669
5283
|
}
|
|
5670
|
-
if (state.flowStatus == FlowStatus.LIVENESS) {
|
|
5284
|
+
if (store.state.flowStatus == store.FlowStatus.LIVENESS) {
|
|
5671
5285
|
this.baseComponent = new BaseComponent(FlowSteps.SelfieHowTo);
|
|
5672
|
-
this.topTitle = HowToValues.SelfieTitile;
|
|
5673
|
-
this.subTitle = HowToValues.SelfieSubTitile;
|
|
5286
|
+
this.topTitle = store.HowToValues.SelfieTitile;
|
|
5287
|
+
this.subTitle = store.HowToValues.SelfieSubTitile;
|
|
5674
5288
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_selfie.png';
|
|
5675
|
-
this.buttonText = HowToValues.SelfieButton;
|
|
5289
|
+
this.buttonText = store.HowToValues.SelfieButton;
|
|
5676
5290
|
}
|
|
5677
5291
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
5678
5292
|
}
|
|
5679
5293
|
render() {
|
|
5680
5294
|
let sub = this.subTitle != '' ? index.h("p", { class: "font-size-2" }, this.subTitle) : null;
|
|
5681
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "div-ci align-center" }, index.h("img", { src: this.imagePath })), index.h("div", { class: "text-center" }, index.h("h1", null, this.topTitle), sub), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, HowToValues.FooterText))))));
|
|
5295
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "div-ci align-center" }, index.h("img", { src: this.imagePath })), index.h("div", { class: "text-center" }, index.h("h1", null, this.topTitle), sub), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.HowToValues.FooterText))))));
|
|
5682
5296
|
}
|
|
5683
5297
|
};
|
|
5684
5298
|
HowToInfo.style = howToInfoCss;
|
|
@@ -5797,8 +5411,8 @@ class Cameras {
|
|
|
5797
5411
|
let cam = new Cameras();
|
|
5798
5412
|
let cameras = (await cam.GetCameras(device)).filter(c => c.facingMode == 'environment');
|
|
5799
5413
|
var recommCamera = cam.GetRecommendedCamera(cameras);
|
|
5800
|
-
state.cameraIds = cameras.map(camera => camera.deviceId);
|
|
5801
|
-
state.cameraId = recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId;
|
|
5414
|
+
store.state.cameraIds = cameras.map(camera => camera.deviceId);
|
|
5415
|
+
store.state.cameraId = recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId;
|
|
5802
5416
|
return true;
|
|
5803
5417
|
}
|
|
5804
5418
|
catch (e) {
|
|
@@ -5857,19 +5471,19 @@ const IdBackCapture = class {
|
|
|
5857
5471
|
}
|
|
5858
5472
|
async componentDidLoad() {
|
|
5859
5473
|
await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Initialized);
|
|
5860
|
-
this.titleMesage = IdCaptureValues.TtileRotate;
|
|
5861
|
-
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
5474
|
+
this.titleMesage = store.IdCaptureValues.TtileRotate;
|
|
5475
|
+
this.demoVideo.src = store.IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
5862
5476
|
this.demoVideo.play();
|
|
5863
|
-
await delay(IdCaptureValues.VideoLenght);
|
|
5864
|
-
this.titleMesage = IdCaptureValues.TitleBack;
|
|
5865
|
-
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
5477
|
+
await delay(store.IdCaptureValues.VideoLenght);
|
|
5478
|
+
this.titleMesage = store.IdCaptureValues.TitleBack;
|
|
5479
|
+
this.demoVideo.src = store.IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
5866
5480
|
this.demoVideo.play();
|
|
5867
|
-
await delay(IdCaptureValues.VideoLenght);
|
|
5481
|
+
await delay(store.IdCaptureValues.VideoLenght);
|
|
5868
5482
|
this.showDemo = false;
|
|
5869
5483
|
this.openCamera();
|
|
5870
5484
|
}
|
|
5871
5485
|
async openCamera() {
|
|
5872
|
-
const constraints = this.cameras.GetConstraints(state.cameraId, state.device);
|
|
5486
|
+
const constraints = this.cameras.GetConstraints(store.state.cameraId, store.state.device);
|
|
5873
5487
|
setTimeout(() => {
|
|
5874
5488
|
navigator.mediaDevices
|
|
5875
5489
|
.getUserMedia(constraints)
|
|
@@ -5898,7 +5512,7 @@ const IdBackCapture = class {
|
|
|
5898
5512
|
if (this.verified)
|
|
5899
5513
|
return;
|
|
5900
5514
|
this.verified = true;
|
|
5901
|
-
this.titleMesage = IdCaptureValues.Loading;
|
|
5515
|
+
this.titleMesage = store.IdCaptureValues.Loading;
|
|
5902
5516
|
this.closeCamera();
|
|
5903
5517
|
this.showDemo = true;
|
|
5904
5518
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -5923,7 +5537,7 @@ const IdBackCapture = class {
|
|
|
5923
5537
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
5924
5538
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
5925
5539
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
5926
|
-
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.showDemo == false }, index.h("video", { id: "howtoBack", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.showDemo }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { "capture-mode": "id" })))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
|
|
5540
|
+
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.showDemo == false }, index.h("video", { id: "howtoBack", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.showDemo }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { "capture-mode": "id" })))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.IdCaptureValues.FooterText)))));
|
|
5927
5541
|
}
|
|
5928
5542
|
get component() { return index.getElement(this); }
|
|
5929
5543
|
};
|
|
@@ -5959,7 +5573,7 @@ const IdCapture = class {
|
|
|
5959
5573
|
this.cameraSize = event.detail;
|
|
5960
5574
|
}
|
|
5961
5575
|
async componentWillLoad() {
|
|
5962
|
-
this.titleMesage = IdCaptureValues.Title;
|
|
5576
|
+
this.titleMesage = store.IdCaptureValues.Title;
|
|
5963
5577
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
5964
5578
|
if (!navigator.mediaDevices) {
|
|
5965
5579
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -5967,14 +5581,14 @@ const IdCapture = class {
|
|
|
5967
5581
|
}
|
|
5968
5582
|
async componentDidLoad() {
|
|
5969
5583
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
|
|
5970
|
-
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
5584
|
+
this.demoVideo.src = store.IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
5971
5585
|
this.demoVideo.play();
|
|
5972
|
-
await delay(IdCaptureValues.VideoLenght);
|
|
5586
|
+
await delay(store.IdCaptureValues.VideoLenght);
|
|
5973
5587
|
this.showDemo = false;
|
|
5974
5588
|
this.openCamera();
|
|
5975
5589
|
}
|
|
5976
5590
|
async openCamera() {
|
|
5977
|
-
const constraints = this.cameras.GetConstraints(state.cameraId, state.device);
|
|
5591
|
+
const constraints = this.cameras.GetConstraints(store.state.cameraId, store.state.device);
|
|
5978
5592
|
setTimeout(() => {
|
|
5979
5593
|
navigator.mediaDevices
|
|
5980
5594
|
.getUserMedia(constraints)
|
|
@@ -6011,7 +5625,7 @@ const IdCapture = class {
|
|
|
6011
5625
|
if (this.verified)
|
|
6012
5626
|
return;
|
|
6013
5627
|
this.verified = true;
|
|
6014
|
-
this.titleMesage = IdCaptureValues.Loading;
|
|
5628
|
+
this.titleMesage = store.IdCaptureValues.Loading;
|
|
6015
5629
|
this.closeCamera();
|
|
6016
5630
|
this.showDemo = true;
|
|
6017
5631
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -6033,7 +5647,7 @@ const IdCapture = class {
|
|
|
6033
5647
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
6034
5648
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
6035
5649
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
6036
|
-
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.showDemo == false }, index.h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.showDemo }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { "capture-mode": "id" })))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
|
|
5650
|
+
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.showDemo == false }, index.h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.showDemo }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { "capture-mode": "id" })))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.IdCaptureValues.FooterText)))));
|
|
6037
5651
|
}
|
|
6038
5652
|
get component() { return index.getElement(this); }
|
|
6039
5653
|
};
|
|
@@ -6069,7 +5683,7 @@ const IdTilt = class {
|
|
|
6069
5683
|
this.cameraSize = event.detail;
|
|
6070
5684
|
}
|
|
6071
5685
|
async componentWillLoad() {
|
|
6072
|
-
this.titleMesage = IdCaptureValues.IDPoseMapping[1];
|
|
5686
|
+
this.titleMesage = store.IdCaptureValues.IDPoseMapping[1];
|
|
6073
5687
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
6074
5688
|
if (!navigator.mediaDevices) {
|
|
6075
5689
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -6077,14 +5691,14 @@ const IdTilt = class {
|
|
|
6077
5691
|
}
|
|
6078
5692
|
async componentDidLoad() {
|
|
6079
5693
|
await this.baseComponent.logStep(FlowSteps.CiTilt, FlowMoments.Initialized);
|
|
6080
|
-
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Tilted];
|
|
5694
|
+
this.demoVideo.src = store.IdCaptureValues.IDPoseDemoMapping[IDPose.Tilted];
|
|
6081
5695
|
this.demoVideo.play();
|
|
6082
|
-
await delay(IdCaptureValues.VideoLenght);
|
|
5696
|
+
await delay(store.IdCaptureValues.VideoLenght);
|
|
6083
5697
|
this.showDemo = false;
|
|
6084
5698
|
this.openCamera();
|
|
6085
5699
|
}
|
|
6086
5700
|
async openCamera() {
|
|
6087
|
-
const constraints = this.cameras.GetConstraints(state.cameraId, state.device);
|
|
5701
|
+
const constraints = this.cameras.GetConstraints(store.state.cameraId, store.state.device);
|
|
6088
5702
|
setTimeout(() => {
|
|
6089
5703
|
navigator.mediaDevices
|
|
6090
5704
|
.getUserMedia(constraints)
|
|
@@ -6121,7 +5735,7 @@ const IdTilt = class {
|
|
|
6121
5735
|
if (this.verified)
|
|
6122
5736
|
return;
|
|
6123
5737
|
this.verified = true;
|
|
6124
|
-
this.titleMesage = IdCaptureValues.Loading;
|
|
5738
|
+
this.titleMesage = store.IdCaptureValues.Loading;
|
|
6125
5739
|
this.closeCamera();
|
|
6126
5740
|
this.showDemo = true;
|
|
6127
5741
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -6143,7 +5757,7 @@ const IdTilt = class {
|
|
|
6143
5757
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
6144
5758
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
6145
5759
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
6146
|
-
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.showDemo == false }, index.h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.showDemo }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { "capture-mode": "tilt" })))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
|
|
5760
|
+
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.showDemo == false }, index.h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.showDemo }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { "capture-mode": "tilt" })))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.IdCaptureValues.FooterText)))));
|
|
6147
5761
|
}
|
|
6148
5762
|
get component() { return index.getElement(this); }
|
|
6149
5763
|
};
|
|
@@ -6215,7 +5829,7 @@ function v4(options, buf, offset) {
|
|
|
6215
5829
|
}
|
|
6216
5830
|
|
|
6217
5831
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6218
|
-
const version$1 = "3.6.
|
|
5832
|
+
const version$1 = "3.6.17";
|
|
6219
5833
|
const description = "Person Identification Component";
|
|
6220
5834
|
const main = "./dist/index.cjs.js";
|
|
6221
5835
|
const module$1 = "./dist/index.js";
|
|
@@ -6285,70 +5899,70 @@ const packageJson = {
|
|
|
6285
5899
|
|
|
6286
5900
|
const loaderSvg = 'data:image/svg+xml;base64,PHN2ZyBpZD0ic3Bpbm5lckxvYWRlclJlZiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBvdmVyZmxvdz0idmlzaWJsZSIgZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSIjMDMwMzAzIiBjbGFzcz0ic2luZ2xlLWxvYWRlciI+DQogIDxkZWZzPg0KICAgIDxjaXJjbGUgaWQ9InNwaW5uZXIiIHI9IjQiIGN4PSI1MCIgY3k9IjUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0zMCkiLz4gICAgDQogIDwvZGVmcz4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoNDUgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMC4xMjVzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPg0KICA8L3VzZT4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDkwIDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuMjVzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPg0KICA8L3VzZT4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDEzNSA1MCA1MCkiPg0KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMDsxOzAiIGR1cj0iMXMiIGJlZ2luPSIwLjM3NXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMTgwIDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuNXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMjI1IDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuNjI1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQogIDx1c2UgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhsaW5rOmhyZWY9IiNzcGlubmVyIiB0cmFuc2Zvcm09InJvdGF0ZSgyNzAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMC43NXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMzE1IDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuODc1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQo8L3N2Zz4=';
|
|
6287
5901
|
|
|
6288
|
-
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}.link-text{margin-top:1vh;text-decoration:underline}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.show-bottom{bottom:-2vh}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.mt-5{margin-top:5vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{text-align:center}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-size-25{font-size:2.5vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:4;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}}";
|
|
5902
|
+
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}.link-text{margin-top:1vh;text-decoration:underline}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.show-bottom{bottom:-2vh}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.mt-5{margin-top:5vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{text-align:center}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-size-25{font-size:2.5vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.scroll-full{margin:4px, 4px;padding:4px;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:4;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}}";
|
|
6289
5903
|
|
|
6290
5904
|
const IdentificationComponent = class {
|
|
6291
5905
|
async onTokenChange(newValue, _oldValue) {
|
|
6292
|
-
if (state.debug)
|
|
5906
|
+
if (store.state.debug)
|
|
6293
5907
|
console.log('Token change called with value: ' + newValue);
|
|
6294
5908
|
if (newValue == '') {
|
|
6295
|
-
newValue = state.token;
|
|
5909
|
+
newValue = store.state.token;
|
|
6296
5910
|
return;
|
|
6297
5911
|
}
|
|
6298
|
-
if (state.token !== newValue) {
|
|
6299
|
-
state.token = newValue;
|
|
5912
|
+
if (store.state.token !== newValue) {
|
|
5913
|
+
store.state.token = newValue;
|
|
6300
5914
|
await this.initializeRequest();
|
|
6301
5915
|
}
|
|
6302
5916
|
}
|
|
6303
5917
|
async onOrderIdChange(newValue, _oldValue) {
|
|
6304
|
-
if (state.debug)
|
|
5918
|
+
if (store.state.debug)
|
|
6305
5919
|
console.log('OrderId change called with value: ' + newValue);
|
|
6306
|
-
if (state.requestId !== newValue && newValue != '') {
|
|
6307
|
-
state.requestId = newValue;
|
|
6308
|
-
state.initialised = false;
|
|
5920
|
+
if (store.state.requestId !== newValue && newValue != '') {
|
|
5921
|
+
store.state.requestId = newValue;
|
|
5922
|
+
store.state.initialised = false;
|
|
6309
5923
|
await this.initializeRequest();
|
|
6310
|
-
if (state.flowStatus != FlowStatus.LANDING && state.flowStatus != FlowStatus.NONE) {
|
|
6311
|
-
state.flowStatus = FlowStatus.LANDING;
|
|
5924
|
+
if (store.state.flowStatus != store.FlowStatus.LANDING && store.state.flowStatus != store.FlowStatus.NONE) {
|
|
5925
|
+
store.state.flowStatus = store.FlowStatus.LANDING;
|
|
6312
5926
|
}
|
|
6313
5927
|
}
|
|
6314
5928
|
}
|
|
6315
5929
|
onApiUrlChange(newValue, _oldValue) {
|
|
6316
|
-
if (state.apiBaseUrl != '') {
|
|
6317
|
-
newValue = state.apiBaseUrl;
|
|
5930
|
+
if (store.state.apiBaseUrl != '') {
|
|
5931
|
+
newValue = store.state.apiBaseUrl;
|
|
6318
5932
|
return;
|
|
6319
5933
|
}
|
|
6320
|
-
if (state.apiBaseUrl !== newValue) {
|
|
6321
|
-
state.apiBaseUrl = newValue;
|
|
5934
|
+
if (store.state.apiBaseUrl !== newValue) {
|
|
5935
|
+
store.state.apiBaseUrl = newValue;
|
|
6322
5936
|
}
|
|
6323
5937
|
}
|
|
6324
5938
|
onEnvChange(newValue, _oldValue) {
|
|
6325
|
-
if (state.environment != '') {
|
|
6326
|
-
newValue = state.environment;
|
|
5939
|
+
if (store.state.environment != '') {
|
|
5940
|
+
newValue = store.state.environment;
|
|
6327
5941
|
return;
|
|
6328
5942
|
}
|
|
6329
|
-
if (state.environment !== newValue) {
|
|
6330
|
-
state.environment = newValue;
|
|
5943
|
+
if (store.state.environment !== newValue) {
|
|
5944
|
+
store.state.environment = newValue;
|
|
6331
5945
|
}
|
|
6332
5946
|
}
|
|
6333
5947
|
async onRedirectIdChange(newValue, _oldValue) {
|
|
6334
|
-
if (state.debug)
|
|
5948
|
+
if (store.state.debug)
|
|
6335
5949
|
console.log('RedirectId change called with value: ' + newValue);
|
|
6336
|
-
if (state.redirectId != '') {
|
|
6337
|
-
newValue = state.redirectId;
|
|
5950
|
+
if (store.state.redirectId != '') {
|
|
5951
|
+
newValue = store.state.redirectId;
|
|
6338
5952
|
return;
|
|
6339
5953
|
}
|
|
6340
|
-
if (state.redirectId !== newValue) {
|
|
6341
|
-
state.redirectId = newValue;
|
|
5954
|
+
if (store.state.redirectId !== newValue) {
|
|
5955
|
+
store.state.redirectId = newValue;
|
|
6342
5956
|
}
|
|
6343
5957
|
await this.initializeRequest();
|
|
6344
5958
|
}
|
|
6345
5959
|
async onPhoneChange(newValue, _oldValue) {
|
|
6346
|
-
if (state.phoneNumber != '') {
|
|
6347
|
-
newValue = state.phoneNumber;
|
|
5960
|
+
if (store.state.phoneNumber != '') {
|
|
5961
|
+
newValue = store.state.phoneNumber;
|
|
6348
5962
|
return;
|
|
6349
5963
|
}
|
|
6350
|
-
if (state.phoneNumber !== newValue) {
|
|
6351
|
-
state.phoneNumber = newValue;
|
|
5964
|
+
if (store.state.phoneNumber !== newValue) {
|
|
5965
|
+
store.state.phoneNumber = newValue;
|
|
6352
5966
|
}
|
|
6353
5967
|
}
|
|
6354
5968
|
agreementAcceptanceEmitted(data) {
|
|
@@ -6381,12 +5995,12 @@ const IdentificationComponent = class {
|
|
|
6381
5995
|
}
|
|
6382
5996
|
catch (_g) { }
|
|
6383
5997
|
Events.flowError(this.errorTitle);
|
|
6384
|
-
state.flowStatus = FlowStatus.ERROREND;
|
|
5998
|
+
store.state.flowStatus = store.FlowStatus.ERROREND;
|
|
6385
5999
|
}
|
|
6386
6000
|
constructor(hostRef) {
|
|
6387
6001
|
index.registerInstance(this, hostRef);
|
|
6388
6002
|
this.logInit = {};
|
|
6389
|
-
this.flowStatusToSet = FlowStatus.NONE;
|
|
6003
|
+
this.flowStatusToSet = store.FlowStatus.NONE;
|
|
6390
6004
|
this.token = undefined;
|
|
6391
6005
|
this.order_id = undefined;
|
|
6392
6006
|
this.api_url = undefined;
|
|
@@ -6400,115 +6014,115 @@ const IdentificationComponent = class {
|
|
|
6400
6014
|
async componentWillLoad() {
|
|
6401
6015
|
Events.init(window);
|
|
6402
6016
|
Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
|
|
6403
|
-
state.apiBaseUrl = this.api_url;
|
|
6017
|
+
store.state.apiBaseUrl = this.api_url;
|
|
6404
6018
|
if (this.env && this.env != '') {
|
|
6405
|
-
state.environment = this.env;
|
|
6019
|
+
store.state.environment = this.env;
|
|
6406
6020
|
}
|
|
6407
6021
|
this.baseComponent = new BaseComponent(FlowSteps.ComponentLoaded);
|
|
6408
6022
|
this.baseComponent.setErrorCallback(this.apiErrorEmitter);
|
|
6409
|
-
if (state.debug)
|
|
6023
|
+
if (store.state.debug)
|
|
6410
6024
|
this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
|
|
6411
6025
|
if (this.token) {
|
|
6412
|
-
if (state.debug)
|
|
6026
|
+
if (store.state.debug)
|
|
6413
6027
|
console.log('Store Token set with property value: ' + this.token);
|
|
6414
|
-
state.token = this.token;
|
|
6028
|
+
store.state.token = this.token;
|
|
6415
6029
|
}
|
|
6416
|
-
else if (state.token == '') {
|
|
6417
|
-
state.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
6418
|
-
this.token = state.token;
|
|
6419
|
-
if (state.debug)
|
|
6420
|
-
console.log('Store Token set with session value: ' + state.token);
|
|
6030
|
+
else if (store.state.token == '') {
|
|
6031
|
+
store.state.token = sessionStorage.getItem(store.SessionKeys.TokenKey);
|
|
6032
|
+
this.token = store.state.token;
|
|
6033
|
+
if (store.state.debug)
|
|
6034
|
+
console.log('Store Token set with session value: ' + store.state.token);
|
|
6421
6035
|
}
|
|
6422
6036
|
if (this.redirect_id) {
|
|
6423
|
-
state.redirectId = this.redirect_id;
|
|
6037
|
+
store.state.redirectId = this.redirect_id;
|
|
6424
6038
|
}
|
|
6425
6039
|
if (this.phone_number && this.phone_number != '') {
|
|
6426
|
-
state.phoneNumber = this.phone_number;
|
|
6040
|
+
store.state.phoneNumber = this.phone_number;
|
|
6427
6041
|
}
|
|
6428
|
-
var ini = sessionStorage.getItem(SessionKeys.InitialisedKey);
|
|
6042
|
+
var ini = sessionStorage.getItem(store.SessionKeys.InitialisedKey);
|
|
6429
6043
|
if (ini && ini.toLowerCase() == 'true') {
|
|
6430
|
-
state.initialised = true;
|
|
6044
|
+
store.state.initialised = true;
|
|
6431
6045
|
}
|
|
6432
|
-
var hasIdBk = sessionStorage.getItem(SessionKeys.HasIdBackKey);
|
|
6046
|
+
var hasIdBk = sessionStorage.getItem(store.SessionKeys.HasIdBackKey);
|
|
6433
6047
|
if (hasIdBk && hasIdBk.toLowerCase() == 'true') {
|
|
6434
|
-
state.hasIdBack = true;
|
|
6048
|
+
store.state.hasIdBack = true;
|
|
6435
6049
|
}
|
|
6436
|
-
var agrVal = sessionStorage.getItem(SessionKeys.AgreementValidationKey);
|
|
6050
|
+
var agrVal = sessionStorage.getItem(store.SessionKeys.AgreementValidationKey);
|
|
6437
6051
|
if (agrVal && agrVal.toLowerCase() == 'true') {
|
|
6438
|
-
state.agreementsValidation = true;
|
|
6052
|
+
store.state.agreementsValidation = true;
|
|
6439
6053
|
}
|
|
6440
|
-
var phoneVal = sessionStorage.getItem(SessionKeys.PhoneValidationKey);
|
|
6054
|
+
var phoneVal = sessionStorage.getItem(store.SessionKeys.PhoneValidationKey);
|
|
6441
6055
|
if (phoneVal && phoneVal.toLowerCase() == 'true') {
|
|
6442
|
-
state.phoneValidation = true;
|
|
6056
|
+
store.state.phoneValidation = true;
|
|
6443
6057
|
}
|
|
6444
|
-
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
6058
|
+
const savedRequest = sessionStorage.getItem(store.SessionKeys.RequestIdKey);
|
|
6445
6059
|
if (this.order_id && this.order_id != '') {
|
|
6446
|
-
state.requestId = this.order_id;
|
|
6447
|
-
if (state.debug)
|
|
6060
|
+
store.state.requestId = this.order_id;
|
|
6061
|
+
if (store.state.debug)
|
|
6448
6062
|
console.log('Current RequestId has value: ' + this.order_id);
|
|
6449
6063
|
if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
|
|
6450
|
-
if (state.debug)
|
|
6064
|
+
if (store.state.debug)
|
|
6451
6065
|
console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
|
|
6452
|
-
this.flowStatusToSet = FlowStatus.LANDING;
|
|
6453
|
-
state.initialised = false;
|
|
6066
|
+
this.flowStatusToSet = store.FlowStatus.LANDING;
|
|
6067
|
+
store.state.initialised = false;
|
|
6454
6068
|
}
|
|
6455
6069
|
}
|
|
6456
6070
|
else if (savedRequest) {
|
|
6457
|
-
if (state.debug)
|
|
6071
|
+
if (store.state.debug)
|
|
6458
6072
|
console.log('Current RequestId has no value, setting with session value: ' + savedRequest);
|
|
6459
|
-
state.requestId = savedRequest;
|
|
6073
|
+
store.state.requestId = savedRequest;
|
|
6460
6074
|
this.order_id = savedRequest;
|
|
6461
6075
|
}
|
|
6462
|
-
if (this.flowStatusToSet == FlowStatus.NONE) {
|
|
6463
|
-
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
6076
|
+
if (this.flowStatusToSet == store.FlowStatus.NONE) {
|
|
6077
|
+
var flowSt = sessionStorage.getItem(store.SessionKeys.FlowStatusKey);
|
|
6464
6078
|
if (flowSt) {
|
|
6465
|
-
this.flowStatusToSet = FlowStatus[flowSt];
|
|
6079
|
+
this.flowStatusToSet = store.FlowStatus[flowSt];
|
|
6466
6080
|
}
|
|
6467
6081
|
else {
|
|
6468
|
-
this.flowStatusToSet = FlowStatus.LANDING;
|
|
6082
|
+
this.flowStatusToSet = store.FlowStatus.LANDING;
|
|
6469
6083
|
}
|
|
6470
6084
|
}
|
|
6471
6085
|
}
|
|
6472
6086
|
async componentDidLoad() {
|
|
6473
6087
|
await this.initializeRequest();
|
|
6474
|
-
state.flowStatus = this.flowStatusToSet;
|
|
6088
|
+
store.state.flowStatus = this.flowStatusToSet;
|
|
6475
6089
|
}
|
|
6476
6090
|
componentWillRender() {
|
|
6477
6091
|
if (this.idSide == '') {
|
|
6478
|
-
this.idSide = state.hasIdBack ? 'front' : '';
|
|
6092
|
+
this.idSide = store.state.hasIdBack ? 'front' : '';
|
|
6479
6093
|
}
|
|
6480
6094
|
}
|
|
6481
6095
|
async initializeRequest() {
|
|
6482
|
-
if (state.initialised) {
|
|
6096
|
+
if (store.state.initialised) {
|
|
6483
6097
|
return;
|
|
6484
6098
|
}
|
|
6485
|
-
if (state.environment == 'DEMO') {
|
|
6486
|
-
state.initialised = true;
|
|
6099
|
+
if (store.state.environment == 'DEMO') {
|
|
6100
|
+
store.state.initialised = true;
|
|
6487
6101
|
return;
|
|
6488
6102
|
}
|
|
6489
|
-
if (state.device.browser == Browser.Mi) {
|
|
6490
|
-
this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
|
|
6103
|
+
if (store.state.device.browser == Browser.Mi) {
|
|
6104
|
+
this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.state.requestId + ' RedirectId:' + store.state.redirectId);
|
|
6491
6105
|
return;
|
|
6492
6106
|
}
|
|
6493
6107
|
try {
|
|
6494
|
-
if (state.debug)
|
|
6108
|
+
if (store.state.debug)
|
|
6495
6109
|
this.baseComponent.apiCall.AddLog({ phase: 'debug mode' }, this.logInit);
|
|
6496
6110
|
}
|
|
6497
6111
|
catch (_a) { }
|
|
6498
6112
|
try {
|
|
6499
|
-
if (!state.device.isMobile && state.redirectId == '') {
|
|
6500
|
-
state.redirectId = v4();
|
|
6501
|
-
this.redirect_id = state.redirectId;
|
|
6113
|
+
if (!store.state.device.isMobile && store.state.redirectId == '') {
|
|
6114
|
+
store.state.redirectId = v4();
|
|
6115
|
+
this.redirect_id = store.state.redirectId;
|
|
6502
6116
|
}
|
|
6503
|
-
if (state.token != '' && (state.requestId != '' || state.redirectId != '')) {
|
|
6504
|
-
state.initialised = await this.baseComponent.apiCall.AddIdentificationRequest(state.device, packageJson.version);
|
|
6117
|
+
if (store.state.token != '' && (store.state.requestId != '' || store.state.redirectId != '')) {
|
|
6118
|
+
store.state.initialised = await this.baseComponent.apiCall.AddIdentificationRequest(store.state.device, packageJson.version);
|
|
6505
6119
|
if (!this.order_id || this.order_id == '') {
|
|
6506
|
-
this.order_id = state.requestId;
|
|
6120
|
+
this.order_id = store.state.requestId;
|
|
6507
6121
|
}
|
|
6508
6122
|
}
|
|
6509
6123
|
}
|
|
6510
6124
|
catch (e) {
|
|
6511
|
-
this.apiErrorEmitter(e, 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
|
|
6125
|
+
this.apiErrorEmitter(e, 'Request Initialisation RequestId:' + store.state.requestId + ' RedirectId:' + store.state.redirectId);
|
|
6512
6126
|
}
|
|
6513
6127
|
ML5.getInstance();
|
|
6514
6128
|
}
|
|
@@ -6517,39 +6131,39 @@ const IdentificationComponent = class {
|
|
|
6517
6131
|
}
|
|
6518
6132
|
render() {
|
|
6519
6133
|
let currentBlock = (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "div-ci align-center" }, index.h("img", { src: loaderSvg })))));
|
|
6520
|
-
if (state.device.isMobile || state.environment == 'DEMO') {
|
|
6521
|
-
if (state.flowStatus == FlowStatus.LANDING) {
|
|
6134
|
+
if (store.state.device.isMobile || store.state.environment == 'DEMO') {
|
|
6135
|
+
if (store.state.flowStatus == store.FlowStatus.LANDING) {
|
|
6522
6136
|
currentBlock = index.h("landing-validation", null);
|
|
6523
6137
|
}
|
|
6524
6138
|
}
|
|
6525
|
-
else if (state.flowStatus != FlowStatus.NONE) {
|
|
6139
|
+
else if (store.state.flowStatus != store.FlowStatus.NONE) {
|
|
6526
6140
|
currentBlock = index.h("mobile-redirect", null);
|
|
6527
6141
|
}
|
|
6528
|
-
if (state.flowStatus == FlowStatus.AGREEMENT) {
|
|
6142
|
+
if (store.state.flowStatus == store.FlowStatus.AGREEMENT) {
|
|
6529
6143
|
currentBlock = index.h("agreement-info", null);
|
|
6530
6144
|
}
|
|
6531
|
-
if (state.flowStatus == FlowStatus.PHONE) {
|
|
6145
|
+
if (store.state.flowStatus == store.FlowStatus.PHONE) {
|
|
6532
6146
|
currentBlock = index.h("sms-code-validation", null);
|
|
6533
6147
|
}
|
|
6534
|
-
if (state.flowStatus == FlowStatus.CODE) {
|
|
6148
|
+
if (store.state.flowStatus == store.FlowStatus.CODE) {
|
|
6535
6149
|
currentBlock = index.h("sms-code-validation", null);
|
|
6536
6150
|
}
|
|
6537
|
-
if (state.flowStatus == FlowStatus.CODEERROR) {
|
|
6151
|
+
if (store.state.flowStatus == store.FlowStatus.CODEERROR) {
|
|
6538
6152
|
currentBlock = index.h("sms-code-validation", null);
|
|
6539
6153
|
}
|
|
6540
|
-
if (state.flowStatus == FlowStatus.ID) {
|
|
6154
|
+
if (store.state.flowStatus == store.FlowStatus.ID) {
|
|
6541
6155
|
currentBlock = index.h("process-id", null);
|
|
6542
6156
|
}
|
|
6543
|
-
if (state.flowStatus == FlowStatus.LIVENESS) {
|
|
6157
|
+
if (store.state.flowStatus == store.FlowStatus.LIVENESS) {
|
|
6544
6158
|
currentBlock = index.h("user-liveness", { id: "camera" });
|
|
6545
6159
|
}
|
|
6546
|
-
if (state.flowStatus == FlowStatus.COMPLETE) {
|
|
6160
|
+
if (store.state.flowStatus == store.FlowStatus.COMPLETE) {
|
|
6547
6161
|
currentBlock = index.h("end-redirect", null);
|
|
6548
6162
|
}
|
|
6549
|
-
if (state.flowStatus == FlowStatus.ERROREND) {
|
|
6163
|
+
if (store.state.flowStatus == store.FlowStatus.ERROREND) {
|
|
6550
6164
|
currentBlock = index.h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
6551
6165
|
}
|
|
6552
|
-
if (state.flowStatus == FlowStatus.CAMERAERROR) {
|
|
6166
|
+
if (store.state.flowStatus == store.FlowStatus.CAMERAERROR) {
|
|
6553
6167
|
currentBlock = index.h("camera-error", null);
|
|
6554
6168
|
}
|
|
6555
6169
|
return index.h("div", null, currentBlock);
|
|
@@ -6591,38 +6205,38 @@ const LandingValidation = class {
|
|
|
6591
6205
|
await this.initRequest();
|
|
6592
6206
|
}
|
|
6593
6207
|
async componentDidLoad() {
|
|
6594
|
-
if (state.environment !== 'DEMO') {
|
|
6208
|
+
if (store.state.environment !== 'DEMO') {
|
|
6595
6209
|
await this.baseComponent.initialize();
|
|
6596
6210
|
}
|
|
6597
6211
|
}
|
|
6598
6212
|
async initRequest() {
|
|
6599
|
-
if (state.hasIdBack) {
|
|
6600
|
-
this.warningText = LandingValues.WarningMd;
|
|
6213
|
+
if (store.state.hasIdBack) {
|
|
6214
|
+
this.warningText = store.LandingValues.WarningMd;
|
|
6601
6215
|
}
|
|
6602
6216
|
else {
|
|
6603
|
-
this.warningText = LandingValues.Warning;
|
|
6217
|
+
this.warningText = store.LandingValues.Warning;
|
|
6604
6218
|
}
|
|
6605
6219
|
}
|
|
6606
6220
|
async startFlow() {
|
|
6607
|
-
if (state.initialised) {
|
|
6221
|
+
if (store.state.initialised) {
|
|
6608
6222
|
this.buttonDisabled = true;
|
|
6609
|
-
if (state.environment === 'DEMO') {
|
|
6610
|
-
state.flowStatus = FlowStatus.COMPLETE;
|
|
6223
|
+
if (store.state.environment === 'DEMO') {
|
|
6224
|
+
store.state.flowStatus = store.FlowStatus.COMPLETE;
|
|
6611
6225
|
return;
|
|
6612
6226
|
}
|
|
6613
|
-
if (!(await Cameras.InitCameras(state.device))) {
|
|
6614
|
-
if (state.device.mobileOS == MobileOS.iOS)
|
|
6615
|
-
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
6616
|
-
state.flowStatus = FlowStatus.CAMERAERROR;
|
|
6227
|
+
if (!(await Cameras.InitCameras(store.state.device))) {
|
|
6228
|
+
if (store.state.device.mobileOS == MobileOS.iOS)
|
|
6229
|
+
sessionStorage.setItem(store.SessionKeys.RefreshDoneKey, 'false');
|
|
6230
|
+
store.state.flowStatus = store.FlowStatus.CAMERAERROR;
|
|
6617
6231
|
}
|
|
6618
|
-
else if (state.agreementsValidation) {
|
|
6619
|
-
state.flowStatus = FlowStatus.AGREEMENT;
|
|
6232
|
+
else if (store.state.agreementsValidation) {
|
|
6233
|
+
store.state.flowStatus = store.FlowStatus.AGREEMENT;
|
|
6620
6234
|
}
|
|
6621
|
-
else if (state.phoneValidation) {
|
|
6622
|
-
state.flowStatus = FlowStatus.PHONE;
|
|
6235
|
+
else if (store.state.phoneValidation) {
|
|
6236
|
+
store.state.flowStatus = store.FlowStatus.PHONE;
|
|
6623
6237
|
}
|
|
6624
6238
|
else {
|
|
6625
|
-
state.flowStatus = FlowStatus.ID;
|
|
6239
|
+
store.state.flowStatus = store.FlowStatus.ID;
|
|
6626
6240
|
}
|
|
6627
6241
|
}
|
|
6628
6242
|
}
|
|
@@ -6632,7 +6246,7 @@ const LandingValidation = class {
|
|
|
6632
6246
|
async leaveFlow() {
|
|
6633
6247
|
if (this.buttonDisabled)
|
|
6634
6248
|
return;
|
|
6635
|
-
state.initialised = false;
|
|
6249
|
+
store.state.initialised = false;
|
|
6636
6250
|
try {
|
|
6637
6251
|
await this.baseComponent.apiCall.AbortRequest();
|
|
6638
6252
|
Events.flowAborted();
|
|
@@ -6643,7 +6257,7 @@ const LandingValidation = class {
|
|
|
6643
6257
|
}
|
|
6644
6258
|
}
|
|
6645
6259
|
render() {
|
|
6646
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, LandingValues.Title), index.h("div", { class: "d-flex space-between align-center" }, index.h("p", { class: "main-text font-size-2" }, LandingValues.Description), index.h("div", { class: "img-info" }, index.h("div", { class: "i-effect" }), index.h("img", { src: infoSvg })))), index.h("div", { class: "info-container" }, index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: idSvg })), index.h("h3", null, LandingValues.IdInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: deviceSvg })), index.h("h3", null, LandingValues.DeviceInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: validationSvg })), index.h("h3", null, LandingValues.SmsInfo))), index.h("div", { class: "terms-container" }, index.h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !state.initialised || this.buttonDisabled, onClick: () => this.startFlow() }, LandingValues.Button), index.h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
|
|
6260
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, store.LandingValues.Title), index.h("div", { class: "d-flex space-between align-center" }, index.h("p", { class: "main-text font-size-2" }, store.LandingValues.Description), index.h("div", { class: "img-info" }, index.h("div", { class: "i-effect" }), index.h("img", { src: infoSvg })))), index.h("div", { class: "info-container" }, index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: idSvg })), index.h("h3", null, store.LandingValues.IdInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: deviceSvg })), index.h("h3", null, store.LandingValues.DeviceInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: validationSvg })), index.h("h3", null, store.LandingValues.SmsInfo))), index.h("div", { class: "terms-container" }, index.h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !store.state.initialised || this.buttonDisabled, onClick: () => this.startFlow() }, store.LandingValues.Button), index.h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, store.LandingValues.ButtonLeave), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.LandingValues.FooterText))))));
|
|
6647
6261
|
}
|
|
6648
6262
|
};
|
|
6649
6263
|
LandingValidation.style = landingValidationCss;
|
|
@@ -9543,13 +9157,13 @@ const MobileRedirect = class {
|
|
|
9543
9157
|
}
|
|
9544
9158
|
async componentWillLoad() {
|
|
9545
9159
|
Events.flowStarted();
|
|
9546
|
-
this.infoTextTop = MobileRedirectValues.InfoTop;
|
|
9547
|
-
this.infoTextBottom = MobileRedirectValues.InfoBottom;
|
|
9548
|
-
let envUri = state.environment == 'QA' ? 'test' : 'ect';
|
|
9549
|
-
let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
9550
|
-
this.redirectLink = baseUri + envUri + '/mobileredirect?redirectId=' + state.redirectId;
|
|
9551
|
-
if (state.phoneNumber && state.phoneNumber != '') {
|
|
9552
|
-
this.contact = state.phoneNumber;
|
|
9160
|
+
this.infoTextTop = store.MobileRedirectValues.InfoTop;
|
|
9161
|
+
this.infoTextBottom = store.MobileRedirectValues.InfoBottom;
|
|
9162
|
+
let envUri = store.state.environment == 'QA' ? 'test' : 'ect';
|
|
9163
|
+
let baseUri = store.state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
9164
|
+
this.redirectLink = baseUri + envUri + '/mobileredirect?redirectId=' + store.state.redirectId;
|
|
9165
|
+
if (store.state.phoneNumber && store.state.phoneNumber != '') {
|
|
9166
|
+
this.contact = store.state.phoneNumber;
|
|
9553
9167
|
this.prefilledPhone = true;
|
|
9554
9168
|
}
|
|
9555
9169
|
var self = this;
|
|
@@ -9569,21 +9183,21 @@ const MobileRedirect = class {
|
|
|
9569
9183
|
}
|
|
9570
9184
|
}
|
|
9571
9185
|
async checkStatus() {
|
|
9572
|
-
this.orderStatus = await this.baseComponent.apiCall.GetStatus(state.requestId);
|
|
9186
|
+
this.orderStatus = await this.baseComponent.apiCall.GetStatus(store.state.requestId);
|
|
9573
9187
|
if (this.orderStatus == OrderStatuses.FinishedCapturing) {
|
|
9574
9188
|
this.waitingMobile = false;
|
|
9575
|
-
state.flowStatus = FlowStatus.COMPLETE;
|
|
9189
|
+
store.state.flowStatus = store.FlowStatus.COMPLETE;
|
|
9576
9190
|
}
|
|
9577
9191
|
if (this.orderStatus == OrderStatuses.NotFound) {
|
|
9578
9192
|
this.apiErrorEvent.emit({ message: 'No order was started for this process.' });
|
|
9579
9193
|
}
|
|
9580
9194
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
9581
|
-
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
9195
|
+
this.infoTextTop = store.MobileRedirectValues.InfoWaiting;
|
|
9582
9196
|
this.waitingMobile = true;
|
|
9583
9197
|
}
|
|
9584
9198
|
if (this.orderStatus == OrderStatuses.Aborted) {
|
|
9585
9199
|
this.waitingMobile = false;
|
|
9586
|
-
this.infoTextTop = MobileRedirectValues.InfoAborted;
|
|
9200
|
+
this.infoTextTop = store.MobileRedirectValues.InfoAborted;
|
|
9587
9201
|
Events.flowAborted();
|
|
9588
9202
|
}
|
|
9589
9203
|
}
|
|
@@ -9595,7 +9209,7 @@ const MobileRedirect = class {
|
|
|
9595
9209
|
return;
|
|
9596
9210
|
}
|
|
9597
9211
|
this.waitingMobile = true;
|
|
9598
|
-
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
9212
|
+
this.infoTextTop = store.MobileRedirectValues.InfoWaiting;
|
|
9599
9213
|
try {
|
|
9600
9214
|
await this.baseComponent.apiCall.SendLink(this.redirectLink, this.contact);
|
|
9601
9215
|
}
|
|
@@ -9613,7 +9227,7 @@ const MobileRedirect = class {
|
|
|
9613
9227
|
ev.target.value = this.contact;
|
|
9614
9228
|
}
|
|
9615
9229
|
render() {
|
|
9616
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { hidden: this.waitingMobile }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop)), index.h("div", { class: "qr-canvas align-center" }, index.h("img", { src: this.qrCode })), index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextBottom)), index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, index.h("b", null, MobileRedirectValues.Validation)), index.h("input", { type: "text", id: "codeInput", class: "main-input", disabled: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), index.h("div", { class: "pos-relative" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), index.h("div", { hidden: this.waitingMobile == false }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9230
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { hidden: this.waitingMobile }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop)), index.h("div", { class: "qr-canvas align-center" }, index.h("img", { src: this.qrCode })), index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextBottom)), index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, index.h("b", null, store.MobileRedirectValues.Validation)), index.h("input", { type: "text", id: "codeInput", class: "main-input", disabled: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), index.h("div", { class: "pos-relative" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.MobileRedirectValues.FooterText)))), index.h("div", { hidden: this.waitingMobile == false }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9617
9231
|
}
|
|
9618
9232
|
};
|
|
9619
9233
|
MobileRedirect.style = mobileRedirectCss;
|
|
@@ -9675,7 +9289,7 @@ const ProcessId = class {
|
|
|
9675
9289
|
back: null,
|
|
9676
9290
|
tilt: null,
|
|
9677
9291
|
};
|
|
9678
|
-
if (state.hasIdBack) {
|
|
9292
|
+
if (store.state.hasIdBack) {
|
|
9679
9293
|
this.flow.back = {
|
|
9680
9294
|
photoDone: false,
|
|
9681
9295
|
recordingDone: false,
|
|
@@ -9685,7 +9299,7 @@ const ProcessId = class {
|
|
|
9685
9299
|
recType: CaptureUploadTypes.IdBackVideo,
|
|
9686
9300
|
};
|
|
9687
9301
|
}
|
|
9688
|
-
if (state.hasIdTilt) {
|
|
9302
|
+
if (store.state.hasIdTilt) {
|
|
9689
9303
|
this.flow.tilt = {
|
|
9690
9304
|
photoDone: true,
|
|
9691
9305
|
recordingDone: false,
|
|
@@ -9782,7 +9396,7 @@ const ProcessId = class {
|
|
|
9782
9396
|
if (photoFile == null || uploadType == '') {
|
|
9783
9397
|
return false;
|
|
9784
9398
|
}
|
|
9785
|
-
var uploadResult = await this.baseComponent.apiCall.UploadFileForRequestB64(state.requestId, uploadType, photoFile);
|
|
9399
|
+
var uploadResult = await this.baseComponent.apiCall.UploadFileForRequestB64(store.state.requestId, uploadType, photoFile);
|
|
9786
9400
|
if (uploadResult) {
|
|
9787
9401
|
return true;
|
|
9788
9402
|
}
|
|
@@ -9796,7 +9410,7 @@ const ProcessId = class {
|
|
|
9796
9410
|
if (recordingFile == null) {
|
|
9797
9411
|
return;
|
|
9798
9412
|
}
|
|
9799
|
-
var uploadResult = await this.baseComponent.apiCall.UploadFileForRequestB64(state.requestId, uploadType, recordingFile);
|
|
9413
|
+
var uploadResult = await this.baseComponent.apiCall.UploadFileForRequestB64(store.state.requestId, uploadType, recordingFile);
|
|
9800
9414
|
if (uploadResult) {
|
|
9801
9415
|
return true;
|
|
9802
9416
|
}
|
|
@@ -9806,6 +9420,9 @@ const ProcessId = class {
|
|
|
9806
9420
|
return false;
|
|
9807
9421
|
}
|
|
9808
9422
|
triggerErrorFlow(restart = false) {
|
|
9423
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9424
|
+
restart = true;
|
|
9425
|
+
}
|
|
9809
9426
|
if (restart) {
|
|
9810
9427
|
this.captureStep = IdCaptureFlowStatus.IdFront;
|
|
9811
9428
|
}
|
|
@@ -9826,10 +9443,10 @@ const ProcessId = class {
|
|
|
9826
9443
|
async endFlow() {
|
|
9827
9444
|
if (this.captureStep == IdCaptureFlowStatus.IdFront) {
|
|
9828
9445
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
9829
|
-
if (state.hasIdBack) {
|
|
9446
|
+
if (store.state.hasIdBack) {
|
|
9830
9447
|
this.captureStep = IdCaptureFlowStatus.IdBack;
|
|
9831
9448
|
}
|
|
9832
|
-
else if (state.hasIdTilt) {
|
|
9449
|
+
else if (store.state.hasIdTilt) {
|
|
9833
9450
|
this.captureStep = IdCaptureFlowStatus.Tilt;
|
|
9834
9451
|
}
|
|
9835
9452
|
else {
|
|
@@ -9840,9 +9457,9 @@ const ProcessId = class {
|
|
|
9840
9457
|
return;
|
|
9841
9458
|
}
|
|
9842
9459
|
}
|
|
9843
|
-
if (this.captureStep == IdCaptureFlowStatus.IdBack && state.hasIdBack) {
|
|
9460
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack && store.state.hasIdBack) {
|
|
9844
9461
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
9845
|
-
if (state.hasIdTilt) {
|
|
9462
|
+
if (store.state.hasIdTilt) {
|
|
9846
9463
|
this.captureStep = IdCaptureFlowStatus.Tilt;
|
|
9847
9464
|
}
|
|
9848
9465
|
else {
|
|
@@ -9853,7 +9470,7 @@ const ProcessId = class {
|
|
|
9853
9470
|
return;
|
|
9854
9471
|
}
|
|
9855
9472
|
}
|
|
9856
|
-
if (this.captureStep == IdCaptureFlowStatus.Tilt && state.hasIdTilt) {
|
|
9473
|
+
if (this.captureStep == IdCaptureFlowStatus.Tilt && store.state.hasIdTilt) {
|
|
9857
9474
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
9858
9475
|
this.captureStep = IdCaptureFlowStatus.End;
|
|
9859
9476
|
}
|
|
@@ -9864,15 +9481,15 @@ const ProcessId = class {
|
|
|
9864
9481
|
if (this.captureStep != IdCaptureFlowStatus.End) {
|
|
9865
9482
|
return;
|
|
9866
9483
|
}
|
|
9867
|
-
state.flowStatus = FlowStatus.LIVENESS;
|
|
9484
|
+
store.state.flowStatus = store.FlowStatus.LIVENESS;
|
|
9868
9485
|
}
|
|
9869
9486
|
async disconnectedCallback() {
|
|
9870
9487
|
await this.baseComponent.finalize();
|
|
9871
9488
|
}
|
|
9872
9489
|
switchCamera() {
|
|
9873
9490
|
if (this.captureRetryCount == 1) {
|
|
9874
|
-
let camIndex = state.cameraIds.indexOf(state.cameraId);
|
|
9875
|
-
state.cameraId = camIndex === state.cameraIds.length - 1 ? state.cameraIds[0] : state.cameraIds[camIndex + 1];
|
|
9491
|
+
let camIndex = store.state.cameraIds.indexOf(store.state.cameraId);
|
|
9492
|
+
store.state.cameraId = camIndex === store.state.cameraIds.length - 1 ? store.state.cameraIds[0] : store.state.cameraIds[camIndex + 1];
|
|
9876
9493
|
this.captureRetryCount = 0;
|
|
9877
9494
|
}
|
|
9878
9495
|
else {
|
|
@@ -9944,7 +9561,7 @@ const SelfieCapture = class {
|
|
|
9944
9561
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
9945
9562
|
}
|
|
9946
9563
|
componentWillLoad() {
|
|
9947
|
-
this.titleMesage = SelfieCaptureValues.Title;
|
|
9564
|
+
this.titleMesage = store.SelfieCaptureValues.Title;
|
|
9948
9565
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
9949
9566
|
if (!navigator.mediaDevices) {
|
|
9950
9567
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -9952,14 +9569,14 @@ const SelfieCapture = class {
|
|
|
9952
9569
|
}
|
|
9953
9570
|
async componentDidLoad() {
|
|
9954
9571
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Initialized);
|
|
9955
|
-
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
9572
|
+
this.demoVideo.src = store.SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
9956
9573
|
this.demoVideo.play();
|
|
9957
|
-
await delay(SelfieCaptureValues.VideoLenght);
|
|
9574
|
+
await delay(store.SelfieCaptureValues.VideoLenght);
|
|
9958
9575
|
this.demoEnded = true;
|
|
9959
9576
|
this.openCamera();
|
|
9960
9577
|
}
|
|
9961
9578
|
async openCamera() {
|
|
9962
|
-
const constraints = this.cameras.GetConstraints('', state.device, true);
|
|
9579
|
+
const constraints = this.cameras.GetConstraints('', store.state.device, true);
|
|
9963
9580
|
setTimeout(() => {
|
|
9964
9581
|
navigator.mediaDevices
|
|
9965
9582
|
.getUserMedia(constraints)
|
|
@@ -9995,7 +9612,7 @@ const SelfieCapture = class {
|
|
|
9995
9612
|
if (this.verified)
|
|
9996
9613
|
return;
|
|
9997
9614
|
this.verified = true;
|
|
9998
|
-
this.titleMesage = SelfieCaptureValues.Loading;
|
|
9615
|
+
this.titleMesage = store.SelfieCaptureValues.Loading;
|
|
9999
9616
|
this.closeCamera();
|
|
10000
9617
|
this.demoEnded = false;
|
|
10001
9618
|
this.demoVideo.src = this.uploadingLink;
|
|
@@ -10004,7 +9621,7 @@ const SelfieCapture = class {
|
|
|
10004
9621
|
}
|
|
10005
9622
|
render() {
|
|
10006
9623
|
let cameraStyle;
|
|
10007
|
-
if (state.device.isMobile && this.videoStarted) {
|
|
9624
|
+
if (store.state.device.isMobile && this.videoStarted) {
|
|
10008
9625
|
cameraStyle = {
|
|
10009
9626
|
'width': this.captureWidth + 'px',
|
|
10010
9627
|
'height': this.captureHeight + 'px',
|
|
@@ -10017,7 +9634,7 @@ const SelfieCapture = class {
|
|
|
10017
9634
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
10018
9635
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
10019
9636
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
10020
|
-
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.demoEnded }, index.h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.demoEnded == false }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("camera-comp", { "capture-mode": "selfie" }))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText)))));
|
|
9637
|
+
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.demoEnded }, index.h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.demoEnded == false }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("camera-comp", { "capture-mode": "selfie" }))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.SelfieCaptureValues.FooterText)))));
|
|
10021
9638
|
}
|
|
10022
9639
|
get component() { return index.getElement(this); }
|
|
10023
9640
|
};
|
|
@@ -10054,14 +9671,14 @@ const SelfieTilt = class {
|
|
|
10054
9671
|
async eventChangeTitle(event) {
|
|
10055
9672
|
// this.stopAnimation = false;
|
|
10056
9673
|
if (event.detail == null) {
|
|
10057
|
-
this.titleMesage = SelfieCaptureValues.FinalTitle;
|
|
9674
|
+
this.titleMesage = store.SelfieCaptureValues.FinalTitle;
|
|
10058
9675
|
}
|
|
10059
9676
|
else {
|
|
10060
|
-
this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
|
|
9677
|
+
this.titleMesage = store.SelfieCaptureValues.FacePoseMapping[event.detail];
|
|
10061
9678
|
this.demoEnded = false;
|
|
10062
|
-
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
|
|
9679
|
+
this.demoVideo.src = store.SelfieCaptureValues.FacePoseDemoMapping[event.detail];
|
|
10063
9680
|
this.demoVideo.play();
|
|
10064
|
-
await delay(SelfieCaptureValues.VideoLenght);
|
|
9681
|
+
await delay(store.SelfieCaptureValues.VideoLenght);
|
|
10065
9682
|
this.demoEnded = true;
|
|
10066
9683
|
}
|
|
10067
9684
|
}
|
|
@@ -10073,7 +9690,7 @@ const SelfieTilt = class {
|
|
|
10073
9690
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
10074
9691
|
}
|
|
10075
9692
|
componentWillLoad() {
|
|
10076
|
-
this.titleMesage = SelfieCaptureValues.Title;
|
|
9693
|
+
this.titleMesage = store.SelfieCaptureValues.Title;
|
|
10077
9694
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
10078
9695
|
if (!navigator.mediaDevices) {
|
|
10079
9696
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -10085,7 +9702,7 @@ const SelfieTilt = class {
|
|
|
10085
9702
|
this.openCamera();
|
|
10086
9703
|
}
|
|
10087
9704
|
async openCamera() {
|
|
10088
|
-
const constraints = this.cameras.GetConstraints('', state.device, true);
|
|
9705
|
+
const constraints = this.cameras.GetConstraints('', store.state.device, true);
|
|
10089
9706
|
setTimeout(() => {
|
|
10090
9707
|
navigator.mediaDevices
|
|
10091
9708
|
.getUserMedia(constraints)
|
|
@@ -10120,7 +9737,7 @@ const SelfieTilt = class {
|
|
|
10120
9737
|
if (this.verified)
|
|
10121
9738
|
return;
|
|
10122
9739
|
this.verified = true;
|
|
10123
|
-
this.titleMesage = SelfieCaptureValues.Loading;
|
|
9740
|
+
this.titleMesage = store.SelfieCaptureValues.Loading;
|
|
10124
9741
|
this.closeCamera();
|
|
10125
9742
|
this.demoEnded = false;
|
|
10126
9743
|
this.demoVideo.src = this.uploadingLink;
|
|
@@ -10129,7 +9746,7 @@ const SelfieTilt = class {
|
|
|
10129
9746
|
}
|
|
10130
9747
|
render() {
|
|
10131
9748
|
let cameraStyle;
|
|
10132
|
-
if (state.device.isMobile && this.videoStarted) {
|
|
9749
|
+
if (store.state.device.isMobile && this.videoStarted) {
|
|
10133
9750
|
cameraStyle = {
|
|
10134
9751
|
'width': this.captureWidth + 'px',
|
|
10135
9752
|
'height': this.captureHeight + 'px',
|
|
@@ -10142,7 +9759,7 @@ const SelfieTilt = class {
|
|
|
10142
9759
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
10143
9760
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
10144
9761
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
10145
|
-
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.demoEnded }, index.h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.demoEnded == false }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("camera-comp", { "capture-mode": "selfie" }))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText)))));
|
|
9762
|
+
return (index.h("div", { class: bgDemo }, index.h("div", { class: "container-video" }, index.h("div", { hidden: this.demoEnded }, index.h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.demoEnded == false }, index.h("div", { hidden: this.verified }, index.h("div", { class: "video-capture" }, index.h("div", { style: cameraStyle }, index.h("camera-comp", { "capture-mode": "selfie" }))))), index.h("div", { class: "capture-title" }, index.h("h1", { class: titleClass }, this.titleMesage), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.SelfieCaptureValues.FooterText)))));
|
|
10146
9763
|
}
|
|
10147
9764
|
get component() { return index.getElement(this); }
|
|
10148
9765
|
};
|
|
@@ -10161,10 +9778,10 @@ const SmsCodeValidation = class {
|
|
|
10161
9778
|
this.code = undefined;
|
|
10162
9779
|
this.prefilledPhone = false;
|
|
10163
9780
|
this.canSend = false;
|
|
10164
|
-
if (state.flowStatus == FlowStatus.PHONE) {
|
|
9781
|
+
if (store.state.flowStatus == store.FlowStatus.PHONE) {
|
|
10165
9782
|
this.baseComponent = new BaseComponent(FlowSteps.OtpSend);
|
|
10166
9783
|
}
|
|
10167
|
-
if (state.flowStatus == FlowStatus.CODE) {
|
|
9784
|
+
if (store.state.flowStatus == store.FlowStatus.CODE) {
|
|
10168
9785
|
this.baseComponent = new BaseComponent(FlowSteps.OtpCheck);
|
|
10169
9786
|
}
|
|
10170
9787
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
@@ -10172,19 +9789,19 @@ const SmsCodeValidation = class {
|
|
|
10172
9789
|
async doAction() {
|
|
10173
9790
|
try {
|
|
10174
9791
|
this.canSend = false;
|
|
10175
|
-
if (state.flowStatus == FlowStatus.CODE || state.flowStatus == FlowStatus.CODEERROR) {
|
|
10176
|
-
var codeChecked = await this.baseComponent.apiCall.CheckOTPCode(state.requestId, this.code);
|
|
9792
|
+
if (store.state.flowStatus == store.FlowStatus.CODE || store.state.flowStatus == store.FlowStatus.CODEERROR) {
|
|
9793
|
+
var codeChecked = await this.baseComponent.apiCall.CheckOTPCode(store.state.requestId, this.code);
|
|
10177
9794
|
if (codeChecked === true) {
|
|
10178
|
-
state.flowStatus = FlowStatus.ID;
|
|
9795
|
+
store.state.flowStatus = store.FlowStatus.ID;
|
|
10179
9796
|
}
|
|
10180
9797
|
else {
|
|
10181
|
-
state.flowStatus = FlowStatus.CODEERROR;
|
|
9798
|
+
store.state.flowStatus = store.FlowStatus.CODEERROR;
|
|
10182
9799
|
}
|
|
10183
9800
|
}
|
|
10184
|
-
if (state.flowStatus == FlowStatus.PHONE) {
|
|
10185
|
-
var codeSent = await this.baseComponent.apiCall.SendOTPCode(state.requestId, this.phoneNumber);
|
|
9801
|
+
if (store.state.flowStatus == store.FlowStatus.PHONE) {
|
|
9802
|
+
var codeSent = await this.baseComponent.apiCall.SendOTPCode(store.state.requestId, this.phoneNumber);
|
|
10186
9803
|
if (codeSent === true) {
|
|
10187
|
-
state.flowStatus = FlowStatus.CODE;
|
|
9804
|
+
store.state.flowStatus = store.FlowStatus.CODE;
|
|
10188
9805
|
}
|
|
10189
9806
|
}
|
|
10190
9807
|
}
|
|
@@ -10196,20 +9813,20 @@ const SmsCodeValidation = class {
|
|
|
10196
9813
|
await this.baseComponent.finalize();
|
|
10197
9814
|
}
|
|
10198
9815
|
componentWillRender() {
|
|
10199
|
-
if (state.flowStatus == FlowStatus.PHONE) {
|
|
10200
|
-
this.title = PhoneValidationValues.Title;
|
|
10201
|
-
this.details = PhoneValidationValues.Description;
|
|
10202
|
-
this.buttonText = PhoneValidationValues.Button;
|
|
10203
|
-
if (state.phoneNumber && state.phoneNumber != '') {
|
|
10204
|
-
this.phoneNumber = state.phoneNumber;
|
|
9816
|
+
if (store.state.flowStatus == store.FlowStatus.PHONE) {
|
|
9817
|
+
this.title = store.PhoneValidationValues.Title;
|
|
9818
|
+
this.details = store.PhoneValidationValues.Description;
|
|
9819
|
+
this.buttonText = store.PhoneValidationValues.Button;
|
|
9820
|
+
if (store.state.phoneNumber && store.state.phoneNumber != '') {
|
|
9821
|
+
this.phoneNumber = store.state.phoneNumber;
|
|
10205
9822
|
this.prefilledPhone = true;
|
|
10206
9823
|
this.canSend = true;
|
|
10207
9824
|
}
|
|
10208
9825
|
}
|
|
10209
|
-
if (state.flowStatus == FlowStatus.CODE || state.flowStatus == FlowStatus.CODEERROR) {
|
|
10210
|
-
this.title = CodeValidationValues.Title;
|
|
10211
|
-
this.details = CodeValidationValues.Description;
|
|
10212
|
-
this.buttonText = CodeValidationValues.Button;
|
|
9826
|
+
if (store.state.flowStatus == store.FlowStatus.CODE || store.state.flowStatus == store.FlowStatus.CODEERROR) {
|
|
9827
|
+
this.title = store.CodeValidationValues.Title;
|
|
9828
|
+
this.details = store.CodeValidationValues.Description;
|
|
9829
|
+
this.buttonText = store.CodeValidationValues.Button;
|
|
10213
9830
|
}
|
|
10214
9831
|
}
|
|
10215
9832
|
async componentDidLoad() {
|
|
@@ -10234,16 +9851,16 @@ const SmsCodeValidation = class {
|
|
|
10234
9851
|
render() {
|
|
10235
9852
|
let inputBlock;
|
|
10236
9853
|
let errorBlock;
|
|
10237
|
-
if (state.flowStatus == FlowStatus.CODEERROR) {
|
|
10238
|
-
errorBlock = index.h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, CodeValidationValues.Error);
|
|
9854
|
+
if (store.state.flowStatus == store.FlowStatus.CODEERROR) {
|
|
9855
|
+
errorBlock = index.h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, store.CodeValidationValues.Error);
|
|
10239
9856
|
}
|
|
10240
|
-
if (state.flowStatus == FlowStatus.PHONE) {
|
|
10241
|
-
inputBlock = (index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1" }, index.h("b", null, PhoneValidationValues.Label)), index.h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
9857
|
+
if (store.state.flowStatus == store.FlowStatus.PHONE) {
|
|
9858
|
+
inputBlock = (index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1" }, index.h("b", null, store.PhoneValidationValues.Label)), index.h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
10242
9859
|
}
|
|
10243
9860
|
else {
|
|
10244
9861
|
inputBlock = (index.h("div", { class: "input-container mb-15" }, index.h("input", { type: "text", id: "codeInput", class: "main-input", onInput: ev => this.handleChangeCode(ev), value: this.code })));
|
|
10245
9862
|
}
|
|
10246
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row row-validare" }, index.h("div", null, index.h("h1", { class: "text-center" }, this.title), errorBlock == null ? index.h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText))))));
|
|
9863
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row row-validare" }, index.h("div", null, index.h("h1", { class: "text-center" }, this.title), errorBlock == null ? index.h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.PhoneValidationValues.FooterText))))));
|
|
10247
9864
|
}
|
|
10248
9865
|
};
|
|
10249
9866
|
SmsCodeValidation.style = smsCodeValidationCss;
|
|
@@ -10277,7 +9894,7 @@ const UserLiveness = class {
|
|
|
10277
9894
|
back: null,
|
|
10278
9895
|
tilt: null,
|
|
10279
9896
|
};
|
|
10280
|
-
if (state.hasSelfieGesture) {
|
|
9897
|
+
if (store.state.hasSelfieGesture) {
|
|
10281
9898
|
this.flow.tilt = {
|
|
10282
9899
|
photoDone: true,
|
|
10283
9900
|
recordingDone: false,
|
|
@@ -10315,7 +9932,7 @@ const UserLiveness = class {
|
|
|
10315
9932
|
}
|
|
10316
9933
|
try {
|
|
10317
9934
|
var uploadPhoto = new File([selfiePhoto], this.flow.front.fileName, { type: 'image/png' });
|
|
10318
|
-
await this.uploadPhoto(uploadPhoto);
|
|
9935
|
+
await this.uploadPhoto(uploadPhoto, this.flow.front.photoType);
|
|
10319
9936
|
}
|
|
10320
9937
|
catch (e) {
|
|
10321
9938
|
this.apiErrorEvent.emit(e);
|
|
@@ -10333,21 +9950,20 @@ const UserLiveness = class {
|
|
|
10333
9950
|
return;
|
|
10334
9951
|
}
|
|
10335
9952
|
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
10336
|
-
let currentFlow;
|
|
10337
|
-
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
10338
|
-
currentFlow = this.flow.front;
|
|
10339
|
-
}
|
|
10340
|
-
if (this.captureStep == SelfieFlowStatus.Gesture) {
|
|
10341
|
-
currentFlow = this.flow.tilt;
|
|
10342
|
-
}
|
|
10343
9953
|
try {
|
|
10344
|
-
|
|
10345
|
-
|
|
9954
|
+
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
9955
|
+
let uploadRec = new File([selfieRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
|
|
9956
|
+
this.flow.front.recordingDone = await this.uploadRecording(uploadRec, this.flow.front.recType);
|
|
9957
|
+
}
|
|
9958
|
+
if (this.captureStep == SelfieFlowStatus.Gesture) {
|
|
9959
|
+
let uploadRec = new File([selfieRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
|
|
9960
|
+
this.flow.tilt.recordingDone = await this.uploadRecording(uploadRec, this.flow.tilt.recType);
|
|
9961
|
+
}
|
|
10346
9962
|
await this.endFlow();
|
|
10347
9963
|
}
|
|
10348
9964
|
catch (e) {
|
|
10349
|
-
if (state.recordingRetryCount < 3) {
|
|
10350
|
-
state.recordingRetryCount++;
|
|
9965
|
+
if (store.state.recordingRetryCount < 3) {
|
|
9966
|
+
store.state.recordingRetryCount++;
|
|
10351
9967
|
this.triggerErrorFlow();
|
|
10352
9968
|
}
|
|
10353
9969
|
else {
|
|
@@ -10356,17 +9972,16 @@ const UserLiveness = class {
|
|
|
10356
9972
|
}
|
|
10357
9973
|
}
|
|
10358
9974
|
async verificationFinished(_event) {
|
|
10359
|
-
this.captureStep = SelfieFlowStatus.End;
|
|
10360
9975
|
await this.endFlow();
|
|
10361
9976
|
}
|
|
10362
9977
|
async disconnectedCallback() {
|
|
10363
9978
|
await this.baseComponent.finalize();
|
|
10364
9979
|
}
|
|
10365
|
-
async uploadPhoto(photoFile) {
|
|
9980
|
+
async uploadPhoto(photoFile, photoType) {
|
|
10366
9981
|
if (this.flow.front.photoDone) {
|
|
10367
9982
|
return;
|
|
10368
9983
|
}
|
|
10369
|
-
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(state.requestId,
|
|
9984
|
+
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.state.requestId, photoType, photoFile);
|
|
10370
9985
|
if (this.flow.front.photoDone) {
|
|
10371
9986
|
await this.endFlow();
|
|
10372
9987
|
}
|
|
@@ -10374,8 +9989,8 @@ const UserLiveness = class {
|
|
|
10374
9989
|
this.triggerErrorFlow();
|
|
10375
9990
|
}
|
|
10376
9991
|
}
|
|
10377
|
-
async uploadRecording(uploadRec) {
|
|
10378
|
-
let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(state.requestId,
|
|
9992
|
+
async uploadRecording(uploadRec, recType) {
|
|
9993
|
+
let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.state.requestId, recType, uploadRec);
|
|
10379
9994
|
if (uplodDone) {
|
|
10380
9995
|
return true;
|
|
10381
9996
|
}
|
|
@@ -10407,8 +10022,8 @@ const UserLiveness = class {
|
|
|
10407
10022
|
if (this.captureStep != SelfieFlowStatus.End) {
|
|
10408
10023
|
return;
|
|
10409
10024
|
}
|
|
10410
|
-
state.recordingRetryCount = 0;
|
|
10411
|
-
state.flowStatus = FlowStatus.COMPLETE;
|
|
10025
|
+
store.state.recordingRetryCount = 0;
|
|
10026
|
+
store.state.flowStatus = store.FlowStatus.COMPLETE;
|
|
10412
10027
|
}
|
|
10413
10028
|
render() {
|
|
10414
10029
|
let howTo = index.h("how-to-info", { idSide: "" });
|