@ekyc_qoobiss/qbs-ect-cmp 3.6.25 → 3.6.27

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.
Files changed (163) hide show
  1. package/dist/i18n/en.json +100 -0
  2. package/dist/i18n/ro.json +100 -0
  3. package/dist/i18n/ru.json +100 -0
  4. package/dist/{collection/helpers/Cameras.js → qbs-ect-cmp/Cameras-dfbebc29.js} +9 -6
  5. package/dist/{collection/models/CaptureFlow.js → qbs-ect-cmp/CaptureFlow-db5d90a4.js} +6 -4
  6. package/dist/{collection/libs/IDML5Detector/IDPose.js → qbs-ect-cmp/IDPose-181bcb25.js} +4 -2
  7. package/dist/{collection/models/IDevice.js → qbs-ect-cmp/IDevice-15ecfdeb.js} +6 -4
  8. package/dist/qbs-ect-cmp/ML5-657ef934.js +1370 -0
  9. package/dist/qbs-ect-cmp/Stream-b867a2be.js +3104 -0
  10. package/dist/qbs-ect-cmp/_commonjsHelpers-321aa363.js +44 -0
  11. package/dist/qbs-ect-cmp/agreement-check.entry.js +41 -0
  12. package/dist/qbs-ect-cmp/agreement-info.entry.js +66 -0
  13. package/dist/qbs-ect-cmp/app-globals-0f993ce5.js +3 -0
  14. package/dist/qbs-ect-cmp/base-component-2e490fd9.js +502 -0
  15. package/dist/qbs-ect-cmp/camera-comp.entry.js +103 -0
  16. package/dist/qbs-ect-cmp/camera-error.entry.js +59 -0
  17. package/dist/qbs-ect-cmp/capture-error.entry.js +53 -0
  18. package/dist/qbs-ect-cmp/css-shim-b7d3d95f.js +4 -0
  19. package/dist/qbs-ect-cmp/dom-64053c71.js +73 -0
  20. package/dist/qbs-ect-cmp/end-redirect.entry.js +25 -0
  21. package/dist/qbs-ect-cmp/error-end.entry.js +19 -0
  22. package/dist/qbs-ect-cmp/how-to-info.entry.js +52 -0
  23. package/dist/{collection/components/common/id-back-capture/id-back-capture.js → qbs-ect-cmp/id-back-capture.entry.js} +30 -100
  24. package/dist/{collection/components/common/id-capture/id-capture.js → qbs-ect-cmp/id-capture.entry.js} +28 -98
  25. package/dist/{collection/components/common/id-tilt/id-tilt.js → qbs-ect-cmp/id-tilt.entry.js} +28 -98
  26. package/dist/qbs-ect-cmp/identification-component.entry.js +909 -0
  27. package/dist/qbs-ect-cmp/index-78a05b9e.js +3371 -0
  28. package/dist/qbs-ect-cmp/index.esm.js +1 -0
  29. package/dist/qbs-ect-cmp/landing-validation.entry.js +90 -0
  30. package/dist/{esm → qbs-ect-cmp}/loader-dots.entry.js +1 -1
  31. package/dist/qbs-ect-cmp/mobile-redirect.entry.js +2984 -0
  32. package/dist/{collection/components/flow/process-id/process-id.js → qbs-ect-cmp/process-id.entry.js} +32 -100
  33. package/dist/qbs-ect-cmp/qbs-ect-cmp.css +320 -1
  34. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +148 -1
  35. package/dist/{esm → qbs-ect-cmp}/random-actions.entry.js +6 -3
  36. package/dist/{collection/components/common/selfie-capture/selfie-capture.js → qbs-ect-cmp/selfie-capture.entry.js} +28 -99
  37. package/dist/{collection/components/common/selfie-tilt/selfie-tilt.js → qbs-ect-cmp/selfie-tilt.entry.js} +29 -99
  38. package/dist/qbs-ect-cmp/shadow-css-98135883.js +387 -0
  39. package/dist/qbs-ect-cmp/sms-code-validation.entry.js +106 -0
  40. package/dist/{esm/store-fdeed827.js → qbs-ect-cmp/textValues-6bcc85dd.js} +51 -147
  41. package/dist/{collection/components/flow/user-liveness/user-liveness.js → qbs-ect-cmp/user-liveness.entry.js} +30 -91
  42. package/dist/{collection/utils/utils.js → qbs-ect-cmp/utils-8225f0b7.js} +10 -8
  43. package/dist/types/components/base-component.d.ts +2 -0
  44. package/dist/types/components/common/agreement-check/agreement-check.d.ts +1 -0
  45. package/dist/types/components/common/random-actions/random-actions.d.ts +2 -0
  46. package/dist/types/components/flow/end-redirect/end-redirect.d.ts +1 -0
  47. package/dist/types/components/identification-component/identification-component.d.ts +1 -0
  48. package/dist/types/components.d.ts +2 -0
  49. package/dist/types/helpers/TranslationUtils.d.ts +9 -0
  50. package/dist/types/helpers/textValues.d.ts +8 -95
  51. package/dist/types/models/IEctStore.d.ts +1 -0
  52. package/dist/types/models/ITranslationValues.d.ts +101 -0
  53. package/package.json +1 -1
  54. package/dist/cjs/agreement-check_19.cjs.entry.js +0 -10012
  55. package/dist/cjs/index-41696e0e.js +0 -1573
  56. package/dist/cjs/index.cjs.js +0 -2
  57. package/dist/cjs/loader-dots.cjs.entry.js +0 -19
  58. package/dist/cjs/loader.cjs.js +0 -22
  59. package/dist/cjs/qbs-ect-cmp.cjs.js +0 -23
  60. package/dist/cjs/random-actions.cjs.entry.js +0 -22
  61. package/dist/cjs/store-f1a0f55c.js +0 -413
  62. package/dist/collection/assets/canvas-masks/face_green.svg +0 -8
  63. package/dist/collection/assets/canvas-masks/face_white.svg +0 -8
  64. package/dist/collection/assets/canvas-masks/id_green.svg +0 -6
  65. package/dist/collection/assets/canvas-masks/id_white.svg +0 -6
  66. package/dist/collection/assets/complete.svg +0 -4
  67. package/dist/collection/assets/landing/device.svg +0 -14
  68. package/dist/collection/assets/landing/id.svg +0 -3
  69. package/dist/collection/assets/landing/info.svg +0 -3
  70. package/dist/collection/assets/landing/validation.svg +0 -16
  71. package/dist/collection/assets/loader.svg +0 -29
  72. package/dist/collection/collection-manifest.json +0 -32
  73. package/dist/collection/components/base-component.js +0 -59
  74. package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
  75. package/dist/collection/components/common/agreement-check/agreement-check.js +0 -101
  76. package/dist/collection/components/common/camera-error/camera-error.css +0 -0
  77. package/dist/collection/components/common/camera-error/camera-error.js +0 -91
  78. package/dist/collection/components/common/capture-error/capture-error.css +0 -0
  79. package/dist/collection/components/common/capture-error/capture-error.js +0 -101
  80. package/dist/collection/components/common/how-to-info/how-to-info.css +0 -0
  81. package/dist/collection/components/common/how-to-info/how-to-info.js +0 -122
  82. package/dist/collection/components/common/id-back-capture/id-back-capture.css +0 -35
  83. package/dist/collection/components/common/id-capture/id-capture.css +0 -35
  84. package/dist/collection/components/common/id-tilt/id-tilt.css +0 -35
  85. package/dist/collection/components/common/random-actions/random-actions.css +0 -0
  86. package/dist/collection/components/common/random-actions/random-actions.js +0 -20
  87. package/dist/collection/components/common/selfie-capture/selfie-capture.css +0 -7
  88. package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +0 -7
  89. package/dist/collection/components/controls/camera/camera.css +0 -47
  90. package/dist/collection/components/controls/camera/camera.js +0 -289
  91. package/dist/collection/components/controls/loader-dots/loader-dots.css +0 -61
  92. package/dist/collection/components/controls/loader-dots/loader-dots.js +0 -18
  93. package/dist/collection/components/flow/agreement-info/agreement-info.css +0 -0
  94. package/dist/collection/components/flow/agreement-info/agreement-info.js +0 -106
  95. package/dist/collection/components/flow/end-redirect/end-redirect.css +0 -128
  96. package/dist/collection/components/flow/end-redirect/end-redirect.js +0 -44
  97. package/dist/collection/components/flow/error-end/error-end.css +0 -0
  98. package/dist/collection/components/flow/error-end/error-end.js +0 -61
  99. package/dist/collection/components/flow/landing-validation/landing-validation.css +0 -0
  100. package/dist/collection/components/flow/landing-validation/landing-validation.js +0 -122
  101. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +0 -10
  102. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +0 -144
  103. package/dist/collection/components/flow/process-id/process-id.css +0 -0
  104. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.css +0 -0
  105. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +0 -140
  106. package/dist/collection/components/flow/user-liveness/user-liveness.css +0 -0
  107. package/dist/collection/components/identification-component/identification-component.css +0 -991
  108. package/dist/collection/components/identification-component/identification-component.js +0 -387
  109. package/dist/collection/global.js +0 -0
  110. package/dist/collection/helpers/ApiCall.js +0 -223
  111. package/dist/collection/helpers/DeviceDetection.js +0 -85
  112. package/dist/collection/helpers/Events.js +0 -58
  113. package/dist/collection/helpers/ML5.js +0 -38
  114. package/dist/collection/helpers/Stream.js +0 -229
  115. package/dist/collection/helpers/canvas.js +0 -10
  116. package/dist/collection/helpers/index.js +0 -21
  117. package/dist/collection/helpers/security.js +0 -25
  118. package/dist/collection/helpers/store.js +0 -47
  119. package/dist/collection/helpers/textValues.js +0 -145
  120. package/dist/collection/index.js +0 -1
  121. package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +0 -229
  122. package/dist/collection/libs/FaceML5Detector/FacePose.js +0 -85
  123. package/dist/collection/libs/IDML5Detector/IDML5Detector.js +0 -99
  124. package/dist/collection/models/FlowStatus.js +0 -14
  125. package/dist/collection/models/FlowSteps.js +0 -30
  126. package/dist/collection/models/IAbortResult.js +0 -1
  127. package/dist/collection/models/IAddRequest.js +0 -1
  128. package/dist/collection/models/IAgreement.js +0 -1
  129. package/dist/collection/models/ICamera.js +0 -1
  130. package/dist/collection/models/IEctStore.js +0 -1
  131. package/dist/collection/models/IGeneration.js +0 -1
  132. package/dist/collection/models/ILinkSend.js +0 -1
  133. package/dist/collection/models/ILogResult.js +0 -1
  134. package/dist/collection/models/IOrderStatus.js +0 -1
  135. package/dist/collection/models/IOtpCheck.js +0 -1
  136. package/dist/collection/models/IOtpSend.js +0 -1
  137. package/dist/collection/models/IUploadFile.js +0 -1
  138. package/dist/collection/models/IVerificationMode.js +0 -5
  139. package/dist/collection/models/OrderStatuses.js +0 -8
  140. package/dist/esm/agreement-check_19.entry.js +0 -9990
  141. package/dist/esm/index-cf54a432.js +0 -1543
  142. package/dist/esm/index.js +0 -1
  143. package/dist/esm/loader.js +0 -18
  144. package/dist/esm/polyfills/core-js.js +0 -11
  145. package/dist/esm/polyfills/css-shim.js +0 -1
  146. package/dist/esm/polyfills/dom.js +0 -79
  147. package/dist/esm/polyfills/es5-html-element.js +0 -1
  148. package/dist/esm/polyfills/index.js +0 -34
  149. package/dist/esm/polyfills/system.js +0 -6
  150. package/dist/esm/qbs-ect-cmp.js +0 -18
  151. package/dist/index.cjs.js +0 -1
  152. package/dist/index.js +0 -1
  153. package/dist/loader/cdn.js +0 -3
  154. package/dist/loader/index.cjs.js +0 -3
  155. package/dist/loader/index.d.ts +0 -21
  156. package/dist/loader/index.es2017.js +0 -3
  157. package/dist/loader/index.js +0 -4
  158. package/dist/loader/package.json +0 -11
  159. package/dist/qbs-ect-cmp/p-054dc5b3.entry.js +0 -1
  160. package/dist/qbs-ect-cmp/p-0b381be5.js +0 -1
  161. package/dist/qbs-ect-cmp/p-4ef6223b.entry.js +0 -1373
  162. package/dist/qbs-ect-cmp/p-6be3b9ca.entry.js +0 -1
  163. package/dist/qbs-ect-cmp/p-8942656c.js +0 -2
@@ -1,4 +1,4 @@
1
- import { a as getRenderingRef, f as forceUpdate } from './index-cf54a432.js';
1
+ import { g as getRenderingRef, f as forceUpdate } from './index-78a05b9e.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  const items = map.get(propName);
@@ -206,151 +206,6 @@ var FlowStatus;
206
206
  FlowStatus[FlowStatus["NONE"] = 10] = "NONE";
207
207
  })(FlowStatus || (FlowStatus = {}));
208
208
 
209
- class GlobalValues {
210
- }
211
- GlobalValues.FooterText = 'Qoobiss eKYC';
212
- GlobalValues.VideoLenght = 3100;
213
- class HowToValues extends GlobalValues {
214
- }
215
- HowToValues.IdTitile = 'Prezintă actul tău de identitate';
216
- HowToValues.IdSubTitileFace = 'Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
217
- HowToValues.IdSubTitileBack = 'Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
218
- HowToValues.IdButton = 'Sunt gata!';
219
- HowToValues.SelfieTitile = 'Validare video';
220
- HowToValues.SelfieSubTitile = 'Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.';
221
- HowToValues.SelfieButton = 'Sunt gata!';
222
- class LandingValues extends GlobalValues {
223
- }
224
- LandingValues.Title = 'Validarea identității la distanță este o procedură simplă și rapidă';
225
- LandingValues.Description = 'Asigură-te că ai:';
226
- LandingValues.IdInfo = 'Actul de identitate, în original';
227
- LandingValues.DeviceInfo = 'Un telefon mobil sau un calculator cu camera web';
228
- LandingValues.SmsInfo = 'Acces la un telefon mobil ce permite primirea de mesaje SMS';
229
- LandingValues.Warning = 'ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.';
230
- LandingValues.WarningMd = 'ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.';
231
- LandingValues.Terms = 'Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.';
232
- LandingValues.Button = 'Am înțeles';
233
- LandingValues.ButtonLeave = 'Nu sunt pregătit';
234
- class PhoneValidationValues extends GlobalValues {
235
- }
236
- PhoneValidationValues.Title = 'Este necesar să validăm numărul tău de telefon';
237
- PhoneValidationValues.Description = 'Introdu mai jos numarul tau de telefon:';
238
- PhoneValidationValues.Button = 'Trimite SMS de verificare';
239
- PhoneValidationValues.Label = 'Numarul tau de telefon';
240
- class CodeValidationValues extends GlobalValues {
241
- }
242
- CodeValidationValues.Title = 'Introdu codul de validare primit prin sms:';
243
- CodeValidationValues.Description = ' ';
244
- CodeValidationValues.Button = 'Validează';
245
- CodeValidationValues.Error = 'Codul introdus nu este valid. Asigură-te că îl introduci corect';
246
- class CompleteValues extends GlobalValues {
247
- }
248
- CompleteValues.Title = 'Procesul a fost finalizat.';
249
- CompleteValues.Description = 'Vei fi redirecționat în câteva momente.';
250
- CompleteValues.Message = 'Îți mulțumim!';
251
- class SessionKeys {
252
- }
253
- SessionKeys.FlowStatusKey = 'qbs-ect-flowstatus';
254
- SessionKeys.RequestIdKey = 'qbs-ect-requestid';
255
- SessionKeys.TokenKey = 'qbs-ect-token';
256
- SessionKeys.InitialisedKey = 'qbs-ect-initialised';
257
- SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
258
- SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
259
- SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
260
- SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
261
- class IdCaptureValues extends GlobalValues {
262
- }
263
- IdCaptureValues.Button = 'Încerc din nou';
264
- IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
265
- IdCaptureValues.TitleBack = 'Încadrează spatele actului de identitate în chenarul de pe ecran.';
266
- IdCaptureValues.TtileRotate = 'Întoarce actul de identitate.';
267
- IdCaptureValues.ErrorTitleR1 = 'Nu am putut colecta informațiile din actul de identitate!';
268
- IdCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
269
- IdCaptureValues.ErrorR1 = 'Încadrează actul de identitate în așa fel încât chenarul să se potrivească perfect pe colțurile actului de identitate. Trebuie să fie vizibilă întreaga suprafață a actului de identitate. ';
270
- IdCaptureValues.ErrorR2 = 'Ai grijă să te afli într-o zonă cu suficientă lumină și să nu acoperi părți ale actului de identitate cu degetele. Ai grijă de asemenea să nu se formeze reflexii de lumină pe suprafața acestuia.';
271
- IdCaptureValues.IDPoseMapping = {
272
- 0: '',
273
- 1: 'Înclină actul de identitate spre spate.',
274
- 2: '',
275
- 3: '',
276
- 4: '',
277
- };
278
- IdCaptureValues.IDPoseDemoMapping = {
279
- 0: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4',
280
- 1: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4',
281
- 2: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4',
282
- 3: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4',
283
- 4: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4',
284
- };
285
- IdCaptureValues.Loading = 'Transferăm datele. Asteptați...';
286
- class SelfieCaptureValues extends GlobalValues {
287
- }
288
- SelfieCaptureValues.Title = 'Încadrează fața în chenarul de pe ecran.';
289
- SelfieCaptureValues.FinalTitle = 'Îndreaptă capul și încadrează fața în chenarul de pe ecran.';
290
- SelfieCaptureValues.ErrorTitleR1 = 'Procesul a eșuat!';
291
- SelfieCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
292
- SelfieCaptureValues.ErrorR1 = 'Încadrează fața în așa fel încât chenarul să se suprapună peste linia bărbiei și a frunții, exact așa cum vezi în animația de pe ecran. ';
293
- SelfieCaptureValues.ErrorR2 = 'Rămâi cu fața încadrată în chenar și execută gestul solicitat după ce animația cu explicația a dispărut de pe ecran.';
294
- SelfieCaptureValues.Loading = 'Transferăm datele. Asteptați...';
295
- SelfieCaptureValues.FacePoseMapping = {
296
- 0: 'Întoarce capul spre stânga.',
297
- 1: 'Întoarce capul spre dreapta.',
298
- 2: 'Înclină capul spre spate.',
299
- 3: 'Înclină capul în față.',
300
- // 4: 'Înclină capul spre stânga.',
301
- // 5: 'Înclină capul spre dreapta.',
302
- 4: '',
303
- };
304
- SelfieCaptureValues.FacePoseDemoMapping = {
305
- 0: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4',
306
- 1: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4',
307
- 2: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4',
308
- 3: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4',
309
- // 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_left.mp4',
310
- // 5: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_right.mp4',
311
- 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4',
312
- };
313
- class AgreementInfoValues extends GlobalValues {
314
- }
315
- AgreementInfoValues.Title = 'Pentru începerea identificării avem nevoie de acordurile tale:';
316
- AgreementInfoValues.Button = 'Încep identificarea';
317
- AgreementInfoValues.Terms = 'Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare';
318
- AgreementInfoValues.Agreement = 'Îmi exprim acordul pentru prelucrarea datelor cu caracter personal';
319
- class AgreementCheckValues extends GlobalValues {
320
- }
321
- AgreementCheckValues.ButtonYes = 'Sunt de acord';
322
- AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
323
- class ApiUrls {
324
- constructor() {
325
- this.uriEnv = '/';
326
- this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
327
- this.OtpSend = this.uriEnv + 'validation/otp/send';
328
- this.OtpCheck = this.uriEnv + 'validation/otp/check';
329
- this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
330
- this.UploadCapture = this.uriEnv + 'validation/upload/capture';
331
- this.GetAgreement = this.uriEnv + 'validation/agreement/content';
332
- this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
333
- this.SendLink = this.uriEnv + 'validation/otp/sendlink';
334
- this.GetStatus = this.uriEnv + 'validation/identity/status';
335
- this.AddLog = this.uriEnv + 'validation/logs/add';
336
- this.AddStep = this.uriEnv + 'validation/logs/step';
337
- this.AbortRequest = this.uriEnv + 'validation/identity/abort';
338
- }
339
- }
340
- class MobileRedirectValues extends GlobalValues {
341
- }
342
- MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu un smartphone.';
343
- MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
344
- MobileRedirectValues.Validation = 'Număr de telefon invalid!';
345
- MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
346
- MobileRedirectValues.InfoAborted = 'Procesului de pe smartphone a fost amanat.';
347
- class CameraErrorValues extends GlobalValues {
348
- }
349
- CameraErrorValues.Title = 'Procesul de indetificare nu poate continua.';
350
- CameraErrorValues.Description = 'Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.';
351
- CameraErrorValues.Button = 'Reincep procesul';
352
- CameraErrorValues.HowToLink = 'https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4';
353
-
354
209
  const { state, onChange } = createStore({
355
210
  flowStatus: FlowStatus.NONE,
356
211
  environment: 'PROD',
@@ -369,6 +224,7 @@ const { state, onChange } = createStore({
369
224
  phoneNumber: '',
370
225
  apiBaseUrl: 'https://apiro.id-kyc.com',
371
226
  device: null,
227
+ langIso: 'ro',
372
228
  });
373
229
  onChange('environment', value => {
374
230
  state.debug = value == 'QA';
@@ -395,4 +251,52 @@ onChange('phoneValidation', value => {
395
251
  sessionStorage.setItem(SessionKeys.PhoneValidationKey, String(value));
396
252
  });
397
253
 
398
- export { ApiUrls as A, CameraErrorValues as C, FlowStatus as F, HowToValues as H, IdCaptureValues as I, LandingValues as L, MobileRedirectValues as M, PhoneValidationValues as P, SessionKeys as S, AgreementCheckValues as a, AgreementInfoValues as b, SelfieCaptureValues as c, CompleteValues as d, CodeValidationValues as e, state as s };
254
+ class IdCaptureValues {
255
+ }
256
+ IdCaptureValues.IDPoseDemoMapping = {
257
+ 0: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4',
258
+ 1: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4',
259
+ 2: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4',
260
+ 3: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4',
261
+ 4: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4',
262
+ };
263
+ class SelfieCaptureValues {
264
+ }
265
+ SelfieCaptureValues.FacePoseDemoMapping = {
266
+ 0: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4',
267
+ 1: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4',
268
+ 2: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4',
269
+ 3: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4',
270
+ // 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_left.mp4',
271
+ // 5: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_right.mp4',
272
+ 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4',
273
+ };
274
+ class SessionKeys {
275
+ }
276
+ SessionKeys.FlowStatusKey = 'qbs-ect-flowstatus';
277
+ SessionKeys.RequestIdKey = 'qbs-ect-requestid';
278
+ SessionKeys.TokenKey = 'qbs-ect-token';
279
+ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
280
+ SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
281
+ SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
282
+ SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
283
+ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
284
+ class ApiUrls {
285
+ constructor() {
286
+ this.uriEnv = '/';
287
+ this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
288
+ this.OtpSend = this.uriEnv + 'validation/otp/send';
289
+ this.OtpCheck = this.uriEnv + 'validation/otp/check';
290
+ this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
291
+ this.UploadCapture = this.uriEnv + 'validation/upload/capture';
292
+ this.GetAgreement = this.uriEnv + 'validation/agreement/content';
293
+ this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
294
+ this.SendLink = this.uriEnv + 'validation/otp/sendlink';
295
+ this.GetStatus = this.uriEnv + 'validation/identity/status';
296
+ this.AddLog = this.uriEnv + 'validation/logs/add';
297
+ this.AddStep = this.uriEnv + 'validation/logs/step';
298
+ this.AbortRequest = this.uriEnv + 'validation/identity/abort';
299
+ }
300
+ }
301
+
302
+ export { ApiUrls as A, FlowStatus as F, IdCaptureValues as I, SessionKeys as S, SelfieCaptureValues as a, state as s };
@@ -1,13 +1,19 @@
1
- import { h } from '@stencil/core';
2
- import store from '../../../helpers/store';
3
- import { Stream } from '../../../helpers/Stream';
4
- import { FlowStatus } from '../../../models/FlowStatus';
5
- import { FlowSteps } from '../../../models/FlowSteps';
6
- import { getLogMessage } from '../../../utils/utils';
7
- import { BaseComponent } from '../../base-component';
8
- import { CaptureUploadTypes, SelfieFlowStatus } from '../../../models/CaptureFlow';
9
- export class UserLiveness {
10
- constructor() {
1
+ import { r as registerInstance, e as createEvent, h } from './index-78a05b9e.js';
2
+ import { s as state, F as FlowStatus } from './textValues-6bcc85dd.js';
3
+ import { S as Stream } from './Stream-b867a2be.js';
4
+ import { B as BaseComponent, F as FlowSteps } from './base-component-2e490fd9.js';
5
+ import { g as getLogMessage } from './utils-8225f0b7.js';
6
+ import { C as CaptureUploadTypes, S as SelfieFlowStatus } from './CaptureFlow-db5d90a4.js';
7
+ import './ML5-657ef934.js';
8
+ import './_commonjsHelpers-321aa363.js';
9
+ import './IDevice-15ecfdeb.js';
10
+
11
+ const userLivenessCss = "";
12
+
13
+ const UserLiveness = class {
14
+ constructor(hostRef) {
15
+ registerInstance(this, hostRef);
16
+ this.apiErrorEvent = createEvent(this, "apiError", 7);
11
17
  this.recordingResultCount = 0;
12
18
  this.recordingRetryCount = 0;
13
19
  this.showError = undefined;
@@ -32,7 +38,7 @@ export class UserLiveness {
32
38
  back: null,
33
39
  tilt: null,
34
40
  };
35
- if (store.hasSelfieGesture) {
41
+ if (state.hasSelfieGesture) {
36
42
  this.flow.tilt = {
37
43
  photoDone: true,
38
44
  recordingDone: false,
@@ -123,7 +129,7 @@ export class UserLiveness {
123
129
  if (this.flow.front.photoDone) {
124
130
  return;
125
131
  }
126
- this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, photoType, photoFile);
132
+ this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(state.requestId, photoType, photoFile);
127
133
  if (this.flow.front.photoDone) {
128
134
  await this.endFlow();
129
135
  }
@@ -132,7 +138,7 @@ export class UserLiveness {
132
138
  }
133
139
  }
134
140
  async uploadRecording(uploadRec, recType) {
135
- let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, recType, uploadRec);
141
+ let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(state.requestId, recType, uploadRec);
136
142
  if (uplodDone) {
137
143
  return true;
138
144
  }
@@ -147,7 +153,12 @@ export class UserLiveness {
147
153
  async endFlow() {
148
154
  if (this.captureStep == SelfieFlowStatus.Selfie) {
149
155
  if (this.flow.front.photoDone && this.flow.front.recordingDone) {
150
- this.captureStep = SelfieFlowStatus.Gesture;
156
+ if (state.hasSelfieGesture) {
157
+ this.captureStep = SelfieFlowStatus.Gesture;
158
+ }
159
+ else {
160
+ this.captureStep = SelfieFlowStatus.End;
161
+ }
151
162
  }
152
163
  else {
153
164
  return;
@@ -164,7 +175,7 @@ export class UserLiveness {
164
175
  if (this.captureStep != SelfieFlowStatus.End) {
165
176
  return;
166
177
  }
167
- store.flowStatus = FlowStatus.COMPLETE;
178
+ state.flowStatus = FlowStatus.COMPLETE;
168
179
  }
169
180
  render() {
170
181
  let howTo = h("how-to-info", { idSide: "" });
@@ -185,79 +196,7 @@ export class UserLiveness {
185
196
  }
186
197
  return capture;
187
198
  }
188
- static get is() { return "user-liveness"; }
189
- static get originalStyleUrls() {
190
- return {
191
- "$": ["user-liveness.css"]
192
- };
193
- }
194
- static get styleUrls() {
195
- return {
196
- "$": ["user-liveness.css"]
197
- };
198
- }
199
- static get states() {
200
- return {
201
- "showError": {},
202
- "captureStep": {},
203
- "flow": {}
204
- };
205
- }
206
- static get events() {
207
- return [{
208
- "method": "apiErrorEvent",
209
- "name": "apiError",
210
- "bubbles": true,
211
- "cancelable": true,
212
- "composed": true,
213
- "docs": {
214
- "tags": [],
215
- "text": ""
216
- },
217
- "complexType": {
218
- "original": "any",
219
- "resolved": "any",
220
- "references": {}
221
- }
222
- }];
223
- }
224
- static get listeners() {
225
- return [{
226
- "name": "howToInfoDone",
227
- "method": "howToDone",
228
- "target": undefined,
229
- "capture": false,
230
- "passive": false
231
- }, {
232
- "name": "timeElapsed",
233
- "method": "timeElapsed",
234
- "target": undefined,
235
- "capture": false,
236
- "passive": false
237
- }, {
238
- "name": "captureErrorDone",
239
- "method": "captureErrorDone",
240
- "target": undefined,
241
- "capture": false,
242
- "passive": false
243
- }, {
244
- "name": "photoSelfieCapture",
245
- "method": "captureSelfieImage",
246
- "target": undefined,
247
- "capture": false,
248
- "passive": false
249
- }, {
250
- "name": "recordingSelfieCapture",
251
- "method": "capturedSelfieRecording",
252
- "target": undefined,
253
- "capture": false,
254
- "passive": false
255
- }, {
256
- "name": "verificationFinished",
257
- "method": "verificationFinished",
258
- "target": undefined,
259
- "capture": false,
260
- "passive": false
261
- }];
262
- }
263
- }
199
+ };
200
+ UserLiveness.style = userLivenessCss;
201
+
202
+ export { UserLiveness as user_liveness };
@@ -1,20 +1,22 @@
1
- import store from '../helpers/store';
2
- import { SessionKeys } from '../helpers/textValues';
3
- export function format(first, middle, last) {
1
+ import { s as state, S as SessionKeys } from './textValues-6bcc85dd.js';
2
+
3
+ function format(first, middle, last) {
4
4
  return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
5
5
  }
6
- export const blobToBase64 = (blob) => {
6
+ const blobToBase64 = (blob) => {
7
7
  return new Promise((resolve, _) => {
8
8
  const reader = new FileReader();
9
9
  reader.onloadend = () => resolve(reader.result);
10
10
  reader.readAsDataURL(blob);
11
11
  });
12
12
  };
13
- export const delay = ms => new Promise(res => setTimeout(res, ms));
14
- export const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
13
+ const delay = ms => new Promise(res => setTimeout(res, ms));
14
+ const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
15
15
  return {
16
- store_values: { request_id: store.requestId, redirect_id: store.redirectId, token: store.token },
16
+ store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
17
17
  session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
18
18
  parameter_values: { request_id: param_req_id, redirect_id: param_redirect_id, token: param_token },
19
19
  };
20
- };
20
+ };
21
+
22
+ export { blobToBase64 as b, delay as d, getLogMessage as g };
@@ -1,11 +1,13 @@
1
1
  import { EventEmitter } from '../stencil-public-runtime';
2
2
  import { ApiCall } from '../helpers/ApiCall';
3
3
  import { FlowMoments, FlowSteps } from '../models/FlowSteps';
4
+ import { TranslationValues } from '../models/ITranslationValues';
4
5
  export declare class BaseComponent {
5
6
  apiCall: ApiCall;
6
7
  protected flowStep: FlowSteps;
7
8
  private apiErrorEvent;
8
9
  private processError;
10
+ translations: TranslationValues;
9
11
  constructor(step: FlowSteps | undefined);
10
12
  setEventEmitter(event: EventEmitter<any>): void;
11
13
  setErrorCallback(callback: (data: any, zone: any) => void): void;
@@ -5,6 +5,7 @@ export declare class AgreementCheck {
5
5
  buttonEnabled: boolean;
6
6
  scrollClass: string;
7
7
  private apiCalls;
8
+ private baseComponent;
8
9
  constructor();
9
10
  apiErrorEvent: EventEmitter<any>;
10
11
  componentDidLoad(): Promise<void>;
@@ -1,6 +1,8 @@
1
1
  export declare class RandomActions {
2
+ private baseComponent;
2
3
  private topTitle;
3
4
  private buttonText;
5
+ constructor();
4
6
  componentWillLoad(): void;
5
7
  buttonClick(): void;
6
8
  render(): any;
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  export declare class EndRedirect {
3
+ private baseComponent;
3
4
  apiErrorEvent: EventEmitter<any>;
4
5
  constructor();
5
6
  componentDidLoad(): Promise<void>;
@@ -5,6 +5,7 @@ export declare class IdentificationComponent {
5
5
  env: string;
6
6
  redirect_id: string;
7
7
  phone_number: string;
8
+ lang_iso: string;
8
9
  private idSide;
9
10
  private errorMessage;
10
11
  private errorTitle;
@@ -39,6 +39,7 @@ export namespace Components {
39
39
  interface IdentificationComponent {
40
40
  "api_url": string;
41
41
  "env": string;
42
+ "lang_iso": string;
42
43
  "order_id": string;
43
44
  "phone_number": string;
44
45
  "redirect_id": string;
@@ -339,6 +340,7 @@ declare namespace LocalJSX {
339
340
  interface IdentificationComponent {
340
341
  "api_url"?: string;
341
342
  "env"?: string;
343
+ "lang_iso"?: string;
342
344
  "order_id"?: string;
343
345
  "phone_number"?: string;
344
346
  "redirect_id"?: string;
@@ -0,0 +1,9 @@
1
+ import { TranslationValues } from '../models/ITranslationValues';
2
+ declare class TranslationsController {
3
+ private values;
4
+ getValues(): Promise<TranslationValues>;
5
+ getLocale(element?: HTMLElement): string;
6
+ fetchTranslations(): Promise<any>;
7
+ }
8
+ export declare const Translations: TranslationsController;
9
+ export {};
@@ -1,46 +1,14 @@
1
1
  import { FacePose } from '../libs/FaceML5Detector/FacePose';
2
2
  import { IDPose } from '../libs/IDML5Detector/IDPose';
3
- export declare class GlobalValues {
4
- static readonly FooterText = "Qoobiss eKYC";
5
- static readonly VideoLenght = 3100;
6
- }
7
- export declare class HowToValues extends GlobalValues {
8
- static readonly IdTitile: string;
9
- static readonly IdSubTitileFace: string;
10
- static readonly IdSubTitileBack: string;
11
- static readonly IdButton: string;
12
- static readonly SelfieTitile: string;
13
- static readonly SelfieSubTitile: string;
14
- static readonly SelfieButton: string;
15
- }
16
- export declare class LandingValues extends GlobalValues {
17
- static readonly Title: string;
18
- static readonly Description: string;
19
- static readonly IdInfo: string;
20
- static readonly DeviceInfo: string;
21
- static readonly SmsInfo: string;
22
- static readonly Warning: string;
23
- static readonly WarningMd: string;
24
- static readonly Terms: string;
25
- static readonly Button: string;
26
- static readonly ButtonLeave: string;
27
- }
28
- export declare class PhoneValidationValues extends GlobalValues {
29
- static readonly Title: string;
30
- static readonly Description: string;
31
- static readonly Button: string;
32
- static readonly Label: string;
33
- }
34
- export declare class CodeValidationValues extends GlobalValues {
35
- static readonly Title: string;
36
- static readonly Description: string;
37
- static readonly Button: string;
38
- static readonly Error: string;
3
+ export declare class IdCaptureValues {
4
+ static readonly IDPoseDemoMapping: {
5
+ [key in IDPose]: string;
6
+ };
39
7
  }
40
- export declare class CompleteValues extends GlobalValues {
41
- static readonly Title: string;
42
- static readonly Description: string;
43
- static readonly Message: string;
8
+ export declare class SelfieCaptureValues {
9
+ static readonly FacePoseDemoMapping: {
10
+ [key in FacePose]: string;
11
+ };
44
12
  }
45
13
  export declare class SessionKeys {
46
14
  static readonly FlowStatusKey: string;
@@ -52,48 +20,6 @@ export declare class SessionKeys {
52
20
  static readonly PhoneValidationKey: string;
53
21
  static readonly RefreshDoneKey: string;
54
22
  }
55
- export declare class IdCaptureValues extends GlobalValues {
56
- static readonly Button: string;
57
- static readonly Title: string;
58
- static readonly TitleBack: string;
59
- static readonly TtileRotate: string;
60
- static readonly ErrorTitleR1: string;
61
- static readonly ErrorTitleR2: string;
62
- static readonly ErrorR1: string;
63
- static readonly ErrorR2: string;
64
- static readonly IDPoseMapping: {
65
- [key in IDPose]: string;
66
- };
67
- static readonly IDPoseDemoMapping: {
68
- [key in IDPose]: string;
69
- };
70
- static readonly Loading: string;
71
- }
72
- export declare class SelfieCaptureValues extends GlobalValues {
73
- static readonly Title: string;
74
- static readonly FinalTitle: string;
75
- static readonly ErrorTitleR1: string;
76
- static readonly ErrorTitleR2: string;
77
- static readonly ErrorR1: string;
78
- static readonly ErrorR2: string;
79
- static readonly Loading: string;
80
- static readonly FacePoseMapping: {
81
- [key in FacePose]: string;
82
- };
83
- static readonly FacePoseDemoMapping: {
84
- [key in FacePose]: string;
85
- };
86
- }
87
- export declare class AgreementInfoValues extends GlobalValues {
88
- static readonly Title: string;
89
- static readonly Button: string;
90
- static readonly Terms: string;
91
- static readonly Agreement: string;
92
- }
93
- export declare class AgreementCheckValues extends GlobalValues {
94
- static readonly ButtonYes: string;
95
- static readonly ButtonNo: string;
96
- }
97
23
  export declare class ApiUrls {
98
24
  private readonly uriEnv;
99
25
  readonly OtpSend: string;
@@ -109,16 +35,3 @@ export declare class ApiUrls {
109
35
  readonly AbortRequest: string;
110
36
  constructor();
111
37
  }
112
- export declare class MobileRedirectValues extends GlobalValues {
113
- static readonly InfoTop: string;
114
- static readonly InfoBottom: string;
115
- static readonly Validation: string;
116
- static readonly InfoWaiting: string;
117
- static readonly InfoAborted: string;
118
- }
119
- export declare class CameraErrorValues extends GlobalValues {
120
- static readonly Title: string;
121
- static readonly Description: string;
122
- static readonly Button: string;
123
- static readonly HowToLink: string;
124
- }
@@ -18,4 +18,5 @@ export interface EctStore {
18
18
  phoneNumber: string;
19
19
  apiBaseUrl: string;
20
20
  device: DeviceState;
21
+ langIso: string;
21
22
  }