@ekyc_qoobiss/qbs-ect-cmp 3.6.27 → 3.6.29

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 (168) hide show
  1. package/dist/cjs/TranslationUtils-b918ffb1.js +346 -0
  2. package/dist/cjs/agreement-check_19.cjs.entry.js +9997 -0
  3. package/dist/cjs/index-41696e0e.js +1573 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader-dots.cjs.entry.js +19 -0
  6. package/dist/cjs/loader.cjs.js +22 -0
  7. package/dist/cjs/qbs-ect-cmp.cjs.js +23 -0
  8. package/dist/cjs/random-actions.cjs.entry.js +22 -0
  9. package/dist/collection/assets/canvas-masks/face_green.svg +8 -0
  10. package/dist/collection/assets/canvas-masks/face_white.svg +8 -0
  11. package/dist/collection/assets/canvas-masks/id_green.svg +6 -0
  12. package/dist/collection/assets/canvas-masks/id_white.svg +6 -0
  13. package/dist/collection/assets/complete.svg +4 -0
  14. package/dist/collection/assets/landing/device.svg +14 -0
  15. package/dist/collection/assets/landing/id.svg +3 -0
  16. package/dist/collection/assets/landing/info.svg +3 -0
  17. package/dist/collection/assets/landing/validation.svg +16 -0
  18. package/dist/collection/assets/loader.svg +29 -0
  19. package/dist/collection/collection-manifest.json +32 -0
  20. package/dist/collection/components/base-component.js +59 -0
  21. package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
  22. package/dist/collection/components/common/agreement-check/agreement-check.js +108 -0
  23. package/dist/collection/components/common/camera-error/camera-error.css +0 -0
  24. package/dist/collection/components/common/camera-error/camera-error.js +93 -0
  25. package/dist/collection/components/common/capture-error/capture-error.css +0 -0
  26. package/dist/collection/components/common/capture-error/capture-error.js +102 -0
  27. package/dist/collection/components/common/how-to-info/how-to-info.css +0 -0
  28. package/dist/collection/components/common/how-to-info/how-to-info.js +123 -0
  29. package/dist/collection/components/common/id-back-capture/id-back-capture.css +35 -0
  30. package/dist/{qbs-ect-cmp/id-back-capture.entry.js → collection/components/common/id-back-capture/id-back-capture.js} +102 -30
  31. package/dist/collection/components/common/id-capture/id-capture.css +35 -0
  32. package/dist/{qbs-ect-cmp/id-capture.entry.js → collection/components/common/id-capture/id-capture.js} +100 -28
  33. package/dist/collection/components/common/id-tilt/id-tilt.css +35 -0
  34. package/dist/{qbs-ect-cmp/id-tilt.entry.js → collection/components/common/id-tilt/id-tilt.js} +100 -28
  35. package/dist/collection/components/common/random-actions/random-actions.css +0 -0
  36. package/dist/collection/components/common/random-actions/random-actions.js +23 -0
  37. package/dist/collection/components/common/selfie-capture/selfie-capture.css +7 -0
  38. package/dist/{qbs-ect-cmp/selfie-capture.entry.js → collection/components/common/selfie-capture/selfie-capture.js} +102 -29
  39. package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +7 -0
  40. package/dist/{qbs-ect-cmp/selfie-tilt.entry.js → collection/components/common/selfie-tilt/selfie-tilt.js} +103 -30
  41. package/dist/collection/components/controls/camera/camera.css +47 -0
  42. package/dist/collection/components/controls/camera/camera.js +289 -0
  43. package/dist/collection/components/controls/loader-dots/loader-dots.css +61 -0
  44. package/dist/collection/components/controls/loader-dots/loader-dots.js +18 -0
  45. package/dist/collection/components/flow/agreement-info/agreement-info.css +0 -0
  46. package/dist/collection/components/flow/agreement-info/agreement-info.js +107 -0
  47. package/dist/collection/components/flow/end-redirect/end-redirect.css +128 -0
  48. package/dist/collection/components/flow/end-redirect/end-redirect.js +48 -0
  49. package/dist/collection/components/flow/error-end/error-end.css +0 -0
  50. package/dist/collection/components/flow/error-end/error-end.js +61 -0
  51. package/dist/collection/components/flow/landing-validation/landing-validation.css +0 -0
  52. package/dist/collection/components/flow/landing-validation/landing-validation.js +124 -0
  53. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +10 -0
  54. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +145 -0
  55. package/dist/collection/components/flow/process-id/process-id.css +0 -0
  56. package/dist/{qbs-ect-cmp/process-id.entry.js → collection/components/flow/process-id/process-id.js} +100 -32
  57. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.css +0 -0
  58. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +141 -0
  59. package/dist/collection/components/flow/user-liveness/user-liveness.css +0 -0
  60. package/dist/{qbs-ect-cmp/user-liveness.entry.js → collection/components/flow/user-liveness/user-liveness.js} +91 -25
  61. package/dist/collection/components/identification-component/identification-component.css +991 -0
  62. package/dist/collection/components/identification-component/identification-component.js +408 -0
  63. package/dist/collection/global.js +0 -0
  64. package/dist/collection/helpers/ApiCall.js +223 -0
  65. package/dist/{qbs-ect-cmp/Cameras-dfbebc29.js → collection/helpers/Cameras.js} +6 -9
  66. package/dist/collection/helpers/DeviceDetection.js +85 -0
  67. package/dist/collection/helpers/Events.js +58 -0
  68. package/dist/collection/helpers/ML5.js +38 -0
  69. package/dist/collection/helpers/Stream.js +229 -0
  70. package/dist/collection/helpers/TranslationUtils.js +37 -0
  71. package/dist/collection/helpers/canvas.js +10 -0
  72. package/dist/collection/helpers/index.js +21 -0
  73. package/dist/collection/helpers/security.js +25 -0
  74. package/dist/collection/helpers/store.js +48 -0
  75. package/dist/collection/helpers/textValues.js +48 -0
  76. package/dist/collection/index.js +1 -0
  77. package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +182 -0
  78. package/dist/collection/libs/FaceML5Detector/FacePose.js +85 -0
  79. package/dist/collection/libs/IDML5Detector/IDML5Detector.js +99 -0
  80. package/dist/{qbs-ect-cmp/IDPose-181bcb25.js → collection/libs/IDML5Detector/IDPose.js} +2 -4
  81. package/dist/{qbs-ect-cmp/CaptureFlow-db5d90a4.js → collection/models/CaptureFlow.js} +4 -6
  82. package/dist/collection/models/FlowStatus.js +14 -0
  83. package/dist/collection/models/FlowSteps.js +30 -0
  84. package/dist/collection/models/IAbortResult.js +1 -0
  85. package/dist/collection/models/IAddRequest.js +1 -0
  86. package/dist/collection/models/IAgreement.js +1 -0
  87. package/dist/collection/models/ICamera.js +1 -0
  88. package/dist/{qbs-ect-cmp/IDevice-15ecfdeb.js → collection/models/IDevice.js} +4 -6
  89. package/dist/collection/models/IEctStore.js +1 -0
  90. package/dist/collection/models/IGeneration.js +1 -0
  91. package/dist/collection/models/ILinkSend.js +1 -0
  92. package/dist/collection/models/ILogResult.js +1 -0
  93. package/dist/collection/models/IOrderStatus.js +1 -0
  94. package/dist/collection/models/IOtpCheck.js +1 -0
  95. package/dist/collection/models/IOtpSend.js +1 -0
  96. package/dist/collection/models/ITranslationValues.js +1 -0
  97. package/dist/collection/models/IUploadFile.js +1 -0
  98. package/dist/collection/models/IVerificationMode.js +5 -0
  99. package/dist/collection/models/OrderStatuses.js +8 -0
  100. package/dist/{qbs-ect-cmp/utils-8225f0b7.js → collection/utils/utils.js} +8 -10
  101. package/dist/{qbs-ect-cmp/textValues-6bcc85dd.js → esm/TranslationUtils-8ceeb437.js} +84 -47
  102. package/dist/esm/agreement-check_19.entry.js +9975 -0
  103. package/dist/esm/index-cf54a432.js +1543 -0
  104. package/dist/esm/index.js +1 -0
  105. package/dist/{qbs-ect-cmp → esm}/loader-dots.entry.js +1 -1
  106. package/dist/esm/loader.js +18 -0
  107. package/dist/esm/polyfills/core-js.js +11 -0
  108. package/dist/esm/polyfills/css-shim.js +1 -0
  109. package/dist/esm/polyfills/dom.js +79 -0
  110. package/dist/esm/polyfills/es5-html-element.js +1 -0
  111. package/dist/esm/polyfills/index.js +34 -0
  112. package/dist/esm/polyfills/system.js +6 -0
  113. package/dist/esm/qbs-ect-cmp.js +18 -0
  114. package/dist/{qbs-ect-cmp → esm}/random-actions.entry.js +6 -9
  115. package/dist/index.cjs.js +1 -0
  116. package/dist/index.js +1 -0
  117. package/dist/loader/cdn.js +3 -0
  118. package/dist/loader/index.cjs.js +3 -0
  119. package/dist/loader/index.d.ts +21 -0
  120. package/dist/loader/index.es2017.js +3 -0
  121. package/dist/loader/index.js +4 -0
  122. package/dist/loader/package.json +11 -0
  123. package/dist/qbs-ect-cmp/index.esm.js +0 -1
  124. package/dist/qbs-ect-cmp/p-054dc5b3.entry.js +1 -0
  125. package/dist/qbs-ect-cmp/p-473a4636.entry.js +1 -0
  126. package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
  127. package/dist/qbs-ect-cmp/p-b2c9c8d7.entry.js +1373 -0
  128. package/dist/qbs-ect-cmp/p-e568a07c.js +1 -0
  129. package/dist/qbs-ect-cmp/qbs-ect-cmp.css +1 -320
  130. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -148
  131. package/dist/types/components/base-component.d.ts +0 -2
  132. package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
  133. package/dist/types/components/common/camera-error/camera-error.d.ts +1 -0
  134. package/dist/types/components/common/capture-error/capture-error.d.ts +1 -0
  135. package/dist/types/components/common/how-to-info/how-to-info.d.ts +2 -1
  136. package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +1 -0
  137. package/dist/types/components/common/id-capture/id-capture.d.ts +1 -0
  138. package/dist/types/components/common/id-tilt/id-tilt.d.ts +1 -0
  139. package/dist/types/components/common/random-actions/random-actions.d.ts +2 -2
  140. package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +2 -1
  141. package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +2 -1
  142. package/dist/types/components/flow/agreement-info/agreement-info.d.ts +2 -1
  143. package/dist/types/components/flow/end-redirect/end-redirect.d.ts +2 -1
  144. package/dist/types/components/flow/landing-validation/landing-validation.d.ts +1 -0
  145. package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +1 -0
  146. package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +2 -1
  147. package/package.json +1 -1
  148. package/dist/qbs-ect-cmp/ML5-657ef934.js +0 -1370
  149. package/dist/qbs-ect-cmp/Stream-b867a2be.js +0 -3104
  150. package/dist/qbs-ect-cmp/_commonjsHelpers-321aa363.js +0 -44
  151. package/dist/qbs-ect-cmp/agreement-check.entry.js +0 -41
  152. package/dist/qbs-ect-cmp/agreement-info.entry.js +0 -66
  153. package/dist/qbs-ect-cmp/app-globals-0f993ce5.js +0 -3
  154. package/dist/qbs-ect-cmp/base-component-2e490fd9.js +0 -502
  155. package/dist/qbs-ect-cmp/camera-comp.entry.js +0 -103
  156. package/dist/qbs-ect-cmp/camera-error.entry.js +0 -59
  157. package/dist/qbs-ect-cmp/capture-error.entry.js +0 -53
  158. package/dist/qbs-ect-cmp/css-shim-b7d3d95f.js +0 -4
  159. package/dist/qbs-ect-cmp/dom-64053c71.js +0 -73
  160. package/dist/qbs-ect-cmp/end-redirect.entry.js +0 -25
  161. package/dist/qbs-ect-cmp/error-end.entry.js +0 -19
  162. package/dist/qbs-ect-cmp/how-to-info.entry.js +0 -52
  163. package/dist/qbs-ect-cmp/identification-component.entry.js +0 -909
  164. package/dist/qbs-ect-cmp/index-78a05b9e.js +0 -3371
  165. package/dist/qbs-ect-cmp/landing-validation.entry.js +0 -90
  166. package/dist/qbs-ect-cmp/mobile-redirect.entry.js +0 -2984
  167. package/dist/qbs-ect-cmp/shadow-css-98135883.js +0 -387
  168. package/dist/qbs-ect-cmp/sms-code-validation.entry.js +0 -106
@@ -1,909 +0,0 @@
1
- import { r as registerInstance, h } from './index-78a05b9e.js';
2
- import { s as state, F as FlowStatus, S as SessionKeys } from './textValues-6bcc85dd.js';
3
- import { M as ML5 } from './ML5-657ef934.js';
4
- import { E as Events, F as FlowSteps, a as FlowMoments, B as BaseComponent } from './base-component-2e490fd9.js';
5
- import { g as getLogMessage } from './utils-8225f0b7.js';
6
- import { B as Browser } from './IDevice-15ecfdeb.js';
7
- import './_commonjsHelpers-321aa363.js';
8
-
9
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
10
- // require the crypto API and do not support built-in fallback to lower quality random number
11
- // generators (like Math.random()).
12
- let getRandomValues;
13
- const rnds8 = new Uint8Array(16);
14
- function rng() {
15
- // lazy load so that environments that need to polyfill have a chance to do so
16
- if (!getRandomValues) {
17
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
18
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
19
-
20
- if (!getRandomValues) {
21
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
22
- }
23
- }
24
-
25
- return getRandomValues(rnds8);
26
- }
27
-
28
- const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
29
-
30
- function validate(uuid) {
31
- return typeof uuid === 'string' && REGEX.test(uuid);
32
- }
33
-
34
- /**
35
- * Convert array of 16 byte values to UUID string format of the form:
36
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
37
- */
38
-
39
- const byteToHex = [];
40
-
41
- for (let i = 0; i < 256; ++i) {
42
- byteToHex.push((i + 0x100).toString(16).slice(1));
43
- }
44
-
45
- function unsafeStringify(arr, offset = 0) {
46
- // Note: Be careful editing this code! It's been tuned for performance
47
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
48
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
49
- }
50
-
51
- function stringify(arr, offset = 0) {
52
- const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
53
- // of the following:
54
- // - One or more input array values don't map to a hex octet (leading to
55
- // "undefined" in the uuid)
56
- // - Invalid input values for the RFC `version` or `variant` fields
57
-
58
- if (!validate(uuid)) {
59
- throw TypeError('Stringified UUID is invalid');
60
- }
61
-
62
- return uuid;
63
- }
64
-
65
- //
66
- // Inspired by https://github.com/LiosK/UUID.js
67
- // and http://docs.python.org/library/uuid.html
68
-
69
- let _nodeId;
70
-
71
- let _clockseq; // Previous uuid creation time
72
-
73
-
74
- let _lastMSecs = 0;
75
- let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
76
-
77
- function v1(options, buf, offset) {
78
- let i = buf && offset || 0;
79
- const b = buf || new Array(16);
80
- options = options || {};
81
- let node = options.node || _nodeId;
82
- let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
83
- // specified. We do this lazily to minimize issues related to insufficient
84
- // system entropy. See #189
85
-
86
- if (node == null || clockseq == null) {
87
- const seedBytes = options.random || (options.rng || rng)();
88
-
89
- if (node == null) {
90
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
91
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
92
- }
93
-
94
- if (clockseq == null) {
95
- // Per 4.2.2, randomize (14 bit) clockseq
96
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
97
- }
98
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
99
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
100
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
101
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
102
-
103
-
104
- let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
105
- // cycle to simulate higher resolution clock
106
-
107
- let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
108
-
109
- const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
110
-
111
- if (dt < 0 && options.clockseq === undefined) {
112
- clockseq = clockseq + 1 & 0x3fff;
113
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
114
- // time interval
115
-
116
-
117
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
118
- nsecs = 0;
119
- } // Per 4.2.1.2 Throw error if too many uuids are requested
120
-
121
-
122
- if (nsecs >= 10000) {
123
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
124
- }
125
-
126
- _lastMSecs = msecs;
127
- _lastNSecs = nsecs;
128
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
129
-
130
- msecs += 12219292800000; // `time_low`
131
-
132
- const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
133
- b[i++] = tl >>> 24 & 0xff;
134
- b[i++] = tl >>> 16 & 0xff;
135
- b[i++] = tl >>> 8 & 0xff;
136
- b[i++] = tl & 0xff; // `time_mid`
137
-
138
- const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
139
- b[i++] = tmh >>> 8 & 0xff;
140
- b[i++] = tmh & 0xff; // `time_high_and_version`
141
-
142
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
143
-
144
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
145
-
146
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
147
-
148
- b[i++] = clockseq & 0xff; // `node`
149
-
150
- for (let n = 0; n < 6; ++n) {
151
- b[i + n] = node[n];
152
- }
153
-
154
- return buf || unsafeStringify(b);
155
- }
156
-
157
- function parse(uuid) {
158
- if (!validate(uuid)) {
159
- throw TypeError('Invalid UUID');
160
- }
161
-
162
- let v;
163
- const arr = new Uint8Array(16); // Parse ########-....-....-....-............
164
-
165
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
166
- arr[1] = v >>> 16 & 0xff;
167
- arr[2] = v >>> 8 & 0xff;
168
- arr[3] = v & 0xff; // Parse ........-####-....-....-............
169
-
170
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
171
- arr[5] = v & 0xff; // Parse ........-....-####-....-............
172
-
173
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
174
- arr[7] = v & 0xff; // Parse ........-....-....-####-............
175
-
176
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
177
- arr[9] = v & 0xff; // Parse ........-....-....-....-############
178
- // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
179
-
180
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
181
- arr[11] = v / 0x100000000 & 0xff;
182
- arr[12] = v >>> 24 & 0xff;
183
- arr[13] = v >>> 16 & 0xff;
184
- arr[14] = v >>> 8 & 0xff;
185
- arr[15] = v & 0xff;
186
- return arr;
187
- }
188
-
189
- function stringToBytes(str) {
190
- str = unescape(encodeURIComponent(str)); // UTF8 escape
191
-
192
- const bytes = [];
193
-
194
- for (let i = 0; i < str.length; ++i) {
195
- bytes.push(str.charCodeAt(i));
196
- }
197
-
198
- return bytes;
199
- }
200
-
201
- const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
202
- const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
203
- function v35(name, version, hashfunc) {
204
- function generateUUID(value, namespace, buf, offset) {
205
- var _namespace;
206
-
207
- if (typeof value === 'string') {
208
- value = stringToBytes(value);
209
- }
210
-
211
- if (typeof namespace === 'string') {
212
- namespace = parse(namespace);
213
- }
214
-
215
- if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
216
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
217
- } // Compute hash of namespace and value, Per 4.3
218
- // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
219
- // hashfunc([...namespace, ... value])`
220
-
221
-
222
- let bytes = new Uint8Array(16 + value.length);
223
- bytes.set(namespace);
224
- bytes.set(value, namespace.length);
225
- bytes = hashfunc(bytes);
226
- bytes[6] = bytes[6] & 0x0f | version;
227
- bytes[8] = bytes[8] & 0x3f | 0x80;
228
-
229
- if (buf) {
230
- offset = offset || 0;
231
-
232
- for (let i = 0; i < 16; ++i) {
233
- buf[offset + i] = bytes[i];
234
- }
235
-
236
- return buf;
237
- }
238
-
239
- return unsafeStringify(bytes);
240
- } // Function#name is not settable on some platforms (#270)
241
-
242
-
243
- try {
244
- generateUUID.name = name; // eslint-disable-next-line no-empty
245
- } catch (err) {} // For CommonJS default export support
246
-
247
-
248
- generateUUID.DNS = DNS;
249
- generateUUID.URL = URL;
250
- return generateUUID;
251
- }
252
-
253
- /*
254
- * Browser-compatible JavaScript MD5
255
- *
256
- * Modification of JavaScript MD5
257
- * https://github.com/blueimp/JavaScript-MD5
258
- *
259
- * Copyright 2011, Sebastian Tschan
260
- * https://blueimp.net
261
- *
262
- * Licensed under the MIT license:
263
- * https://opensource.org/licenses/MIT
264
- *
265
- * Based on
266
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
267
- * Digest Algorithm, as defined in RFC 1321.
268
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
269
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
270
- * Distributed under the BSD License
271
- * See http://pajhome.org.uk/crypt/md5 for more info.
272
- */
273
- function md5(bytes) {
274
- if (typeof bytes === 'string') {
275
- const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
276
-
277
- bytes = new Uint8Array(msg.length);
278
-
279
- for (let i = 0; i < msg.length; ++i) {
280
- bytes[i] = msg.charCodeAt(i);
281
- }
282
- }
283
-
284
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
285
- }
286
- /*
287
- * Convert an array of little-endian words to an array of bytes
288
- */
289
-
290
-
291
- function md5ToHexEncodedArray(input) {
292
- const output = [];
293
- const length32 = input.length * 32;
294
- const hexTab = '0123456789abcdef';
295
-
296
- for (let i = 0; i < length32; i += 8) {
297
- const x = input[i >> 5] >>> i % 32 & 0xff;
298
- const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
299
- output.push(hex);
300
- }
301
-
302
- return output;
303
- }
304
- /**
305
- * Calculate output length with padding and bit length
306
- */
307
-
308
-
309
- function getOutputLength(inputLength8) {
310
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
311
- }
312
- /*
313
- * Calculate the MD5 of an array of little-endian words, and a bit length.
314
- */
315
-
316
-
317
- function wordsToMd5(x, len) {
318
- /* append padding */
319
- x[len >> 5] |= 0x80 << len % 32;
320
- x[getOutputLength(len) - 1] = len;
321
- let a = 1732584193;
322
- let b = -271733879;
323
- let c = -1732584194;
324
- let d = 271733878;
325
-
326
- for (let i = 0; i < x.length; i += 16) {
327
- const olda = a;
328
- const oldb = b;
329
- const oldc = c;
330
- const oldd = d;
331
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
332
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
333
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
334
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
335
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
336
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
337
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
338
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
339
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
340
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
341
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
342
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
343
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
344
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
345
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
346
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
347
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
348
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
349
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
350
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
351
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
352
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
353
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
354
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
355
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
356
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
357
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
358
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
359
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
360
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
361
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
362
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
363
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
364
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
365
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
366
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
367
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
368
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
369
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
370
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
371
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
372
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
373
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
374
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
375
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
376
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
377
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
378
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
379
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
380
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
381
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
382
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
383
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
384
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
385
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
386
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
387
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
388
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
389
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
390
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
391
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
392
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
393
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
394
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
395
- a = safeAdd(a, olda);
396
- b = safeAdd(b, oldb);
397
- c = safeAdd(c, oldc);
398
- d = safeAdd(d, oldd);
399
- }
400
-
401
- return [a, b, c, d];
402
- }
403
- /*
404
- * Convert an array bytes to an array of little-endian words
405
- * Characters >255 have their high-byte silently ignored.
406
- */
407
-
408
-
409
- function bytesToWords(input) {
410
- if (input.length === 0) {
411
- return [];
412
- }
413
-
414
- const length8 = input.length * 8;
415
- const output = new Uint32Array(getOutputLength(length8));
416
-
417
- for (let i = 0; i < length8; i += 8) {
418
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
419
- }
420
-
421
- return output;
422
- }
423
- /*
424
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
425
- * to work around bugs in some JS interpreters.
426
- */
427
-
428
-
429
- function safeAdd(x, y) {
430
- const lsw = (x & 0xffff) + (y & 0xffff);
431
- const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
432
- return msw << 16 | lsw & 0xffff;
433
- }
434
- /*
435
- * Bitwise rotate a 32-bit number to the left.
436
- */
437
-
438
-
439
- function bitRotateLeft(num, cnt) {
440
- return num << cnt | num >>> 32 - cnt;
441
- }
442
- /*
443
- * These functions implement the four basic operations the algorithm uses.
444
- */
445
-
446
-
447
- function md5cmn(q, a, b, x, s, t) {
448
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
449
- }
450
-
451
- function md5ff(a, b, c, d, x, s, t) {
452
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
453
- }
454
-
455
- function md5gg(a, b, c, d, x, s, t) {
456
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
457
- }
458
-
459
- function md5hh(a, b, c, d, x, s, t) {
460
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
461
- }
462
-
463
- function md5ii(a, b, c, d, x, s, t) {
464
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
465
- }
466
-
467
- const v3 = v35('v3', 0x30, md5);
468
-
469
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
470
- const native = {
471
- randomUUID
472
- };
473
-
474
- function v4(options, buf, offset) {
475
- if (native.randomUUID && !buf && !options) {
476
- return native.randomUUID();
477
- }
478
-
479
- options = options || {};
480
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
481
-
482
- rnds[6] = rnds[6] & 0x0f | 0x40;
483
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
484
-
485
- if (buf) {
486
- offset = offset || 0;
487
-
488
- for (let i = 0; i < 16; ++i) {
489
- buf[offset + i] = rnds[i];
490
- }
491
-
492
- return buf;
493
- }
494
-
495
- return unsafeStringify(rnds);
496
- }
497
-
498
- // Adapted from Chris Veness' SHA1 code at
499
- // http://www.movable-type.co.uk/scripts/sha1.html
500
- function f(s, x, y, z) {
501
- switch (s) {
502
- case 0:
503
- return x & y ^ ~x & z;
504
-
505
- case 1:
506
- return x ^ y ^ z;
507
-
508
- case 2:
509
- return x & y ^ x & z ^ y & z;
510
-
511
- case 3:
512
- return x ^ y ^ z;
513
- }
514
- }
515
-
516
- function ROTL(x, n) {
517
- return x << n | x >>> 32 - n;
518
- }
519
-
520
- function sha1(bytes) {
521
- const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
522
- const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
523
-
524
- if (typeof bytes === 'string') {
525
- const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
526
-
527
- bytes = [];
528
-
529
- for (let i = 0; i < msg.length; ++i) {
530
- bytes.push(msg.charCodeAt(i));
531
- }
532
- } else if (!Array.isArray(bytes)) {
533
- // Convert Array-like to Array
534
- bytes = Array.prototype.slice.call(bytes);
535
- }
536
-
537
- bytes.push(0x80);
538
- const l = bytes.length / 4 + 2;
539
- const N = Math.ceil(l / 16);
540
- const M = new Array(N);
541
-
542
- for (let i = 0; i < N; ++i) {
543
- const arr = new Uint32Array(16);
544
-
545
- for (let j = 0; j < 16; ++j) {
546
- arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
547
- }
548
-
549
- M[i] = arr;
550
- }
551
-
552
- M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
553
- M[N - 1][14] = Math.floor(M[N - 1][14]);
554
- M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
555
-
556
- for (let i = 0; i < N; ++i) {
557
- const W = new Uint32Array(80);
558
-
559
- for (let t = 0; t < 16; ++t) {
560
- W[t] = M[i][t];
561
- }
562
-
563
- for (let t = 16; t < 80; ++t) {
564
- W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
565
- }
566
-
567
- let a = H[0];
568
- let b = H[1];
569
- let c = H[2];
570
- let d = H[3];
571
- let e = H[4];
572
-
573
- for (let t = 0; t < 80; ++t) {
574
- const s = Math.floor(t / 20);
575
- const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
576
- e = d;
577
- d = c;
578
- c = ROTL(b, 30) >>> 0;
579
- b = a;
580
- a = T;
581
- }
582
-
583
- H[0] = H[0] + a >>> 0;
584
- H[1] = H[1] + b >>> 0;
585
- H[2] = H[2] + c >>> 0;
586
- H[3] = H[3] + d >>> 0;
587
- H[4] = H[4] + e >>> 0;
588
- }
589
-
590
- return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
591
- }
592
-
593
- const v5 = v35('v5', 0x50, sha1);
594
-
595
- const nil = '00000000-0000-0000-0000-000000000000';
596
-
597
- function version$1(uuid) {
598
- if (!validate(uuid)) {
599
- throw TypeError('Invalid UUID');
600
- }
601
-
602
- return parseInt(uuid.slice(14, 15), 16);
603
- }
604
-
605
- const name = "@ekyc_qoobiss/qbs-ect-cmp";
606
- const version = "3.6.27";
607
- const description = "Person Identification Component";
608
- const main = "./dist/index.cjs.js";
609
- const module = "./dist/index.js";
610
- const es2015 = "./dist/esm/index.mjs";
611
- const es2017 = "./dist/esm/index.mjs";
612
- const types = "./dist/types/index.d.ts";
613
- const collection = "./dist/collection/collection-manifest.json";
614
- const unpkg = "./dist/qbs-ect-cmp/qbs-ect-cmp.esm.js";
615
- const repository = {
616
- type: "git",
617
- url: "https://github.com/"
618
- };
619
- const files = [
620
- "dist/",
621
- "dist/loader/"
622
- ];
623
- const scripts = {
624
- build: "stencil build --prod",
625
- start: "stencil build --dev --watch --serve",
626
- test: "stencil test --spec --e2e",
627
- "test.watch": "stencil test --spec --e2e --watchAll",
628
- generate: "stencil generate",
629
- prepublish: "npm run build"
630
- };
631
- const dependencies = {
632
- "@fontsource/inter": "^4.5.12",
633
- "@stencil/core": "^2.20.0",
634
- "@stencil/react-output-target": "^0.3.1",
635
- kalmanjs: "^1.1.0",
636
- ml5: "^0.12.2",
637
- piexifjs: "^1.0.6",
638
- qrcode: "^1.5.1",
639
- tracking: "^1.1.3",
640
- uuid: "^9.0.0"
641
- };
642
- const devDependencies = {
643
- "@d0whc3r/stencil-inline-file": "^0.1.2",
644
- "@rollup/plugin-image": "^2.1.1",
645
- "@stencil/angular-output-target": "^0.4.0",
646
- "@stencil/store": "^2.0.1",
647
- "@types/jest": "^27.0.3",
648
- jest: "^27.4.5",
649
- "jest-cli": "^27.4.5",
650
- puppeteer: "^16.1.1",
651
- "rollup-plugin-node-polyfills": "^0.2.1"
652
- };
653
- const license = "MIT";
654
- const packageJson = {
655
- name: name,
656
- version: version,
657
- description: description,
658
- main: main,
659
- module: module,
660
- es2015: es2015,
661
- es2017: es2017,
662
- types: types,
663
- collection: collection,
664
- "collection:main": "./dist/collection/index.js",
665
- unpkg: unpkg,
666
- repository: repository,
667
- files: files,
668
- scripts: scripts,
669
- dependencies: dependencies,
670
- devDependencies: devDependencies,
671
- license: license
672
- };
673
-
674
- const loaderSvg = 'data:image/svg+xml;base64,PHN2ZyBpZD0ic3Bpbm5lckxvYWRlclJlZiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBvdmVyZmxvdz0idmlzaWJsZSIgZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSIjMDMwMzAzIiBjbGFzcz0ic2luZ2xlLWxvYWRlciI+DQogIDxkZWZzPg0KICAgIDxjaXJjbGUgaWQ9InNwaW5uZXIiIHI9IjQiIGN4PSI1MCIgY3k9IjUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0zMCkiLz4gICAgDQogIDwvZGVmcz4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoNDUgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMC4xMjVzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPg0KICA8L3VzZT4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDkwIDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuMjVzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPg0KICA8L3VzZT4NCiAgPHVzZSB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeGxpbms6aHJlZj0iI3NwaW5uZXIiIHRyYW5zZm9ybT0icm90YXRlKDEzNSA1MCA1MCkiPg0KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMDsxOzAiIGR1cj0iMXMiIGJlZ2luPSIwLjM3NXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMTgwIDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuNXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMjI1IDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuNjI1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQogIDx1c2UgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhsaW5rOmhyZWY9IiNzcGlubmVyIiB0cmFuc2Zvcm09InJvdGF0ZSgyNzAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMC43NXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMzE1IDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuODc1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQo8L3N2Zz4=';
675
-
676
- 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}}";
677
-
678
- const IdentificationComponent = class {
679
- async onTokenChange(newValue, _oldValue) {
680
- if (state.debug)
681
- console.log('Token change called with value: ' + newValue);
682
- if (newValue == '') {
683
- newValue = state.token;
684
- return;
685
- }
686
- if (state.token !== newValue) {
687
- state.token = newValue;
688
- }
689
- }
690
- agreementAcceptanceEmitted(data) {
691
- try {
692
- this.baseComponent.apiCall.GenerateAgreement(data.detail.agreementType);
693
- }
694
- catch (e) {
695
- this.apiErrorEmitter(e, 'Agreement Acceptance');
696
- }
697
- }
698
- async apiErrorEmitter(data, zone) {
699
- var _a, _b, _c, _d, _e, _f;
700
- if (data.detail) {
701
- this.errorTitle = (_b = (_a = data.detail.message) !== null && _a !== void 0 ? _a : data.detail.status) !== null && _b !== void 0 ? _b : '';
702
- this.errorMessage = (_d = (_c = data.detail.stack) !== null && _c !== void 0 ? _c : data.detail.statusText) !== null && _d !== void 0 ? _d : '';
703
- }
704
- else if (data.message) {
705
- this.errorTitle = data.message;
706
- }
707
- else if (data.status) {
708
- this.errorTitle = (_e = data.status) !== null && _e !== void 0 ? _e : '';
709
- this.errorMessage = (_f = data.statusText) !== null && _f !== void 0 ? _f : '';
710
- }
711
- else {
712
- this.errorTitle = data;
713
- }
714
- let apiLogData = { message: this.errorTitle, stack: this.errorMessage, zone };
715
- try {
716
- await this.baseComponent.apiCall.AddLog(apiLogData, getLogMessage(this.order_id, this.redirect_id, this.token));
717
- }
718
- catch (_g) { }
719
- Events.flowError(this.errorTitle);
720
- state.flowStatus = FlowStatus.ERROREND;
721
- }
722
- handleScroll(ev) {
723
- if (ev.target.offsetHeight + ev.target.scrollTop >= ev.target.scrollHeight) {
724
- }
725
- else {
726
- }
727
- }
728
- constructor(hostRef) {
729
- registerInstance(this, hostRef);
730
- this.logInit = {};
731
- this.flowStatusToSet = FlowStatus.NONE;
732
- this.token = undefined;
733
- this.order_id = undefined;
734
- this.api_url = undefined;
735
- this.env = undefined;
736
- this.redirect_id = undefined;
737
- this.phone_number = undefined;
738
- this.lang_iso = undefined;
739
- this.idSide = '';
740
- this.errorMessage = undefined;
741
- this.errorTitle = undefined;
742
- }
743
- async componentWillLoad() {
744
- Events.init(window);
745
- Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
746
- state.apiBaseUrl = this.api_url;
747
- if (this.env && this.env != '') {
748
- state.environment = this.env;
749
- }
750
- this.baseComponent = new BaseComponent(FlowSteps.ComponentLoaded);
751
- this.baseComponent.setErrorCallback(this.apiErrorEmitter);
752
- if (state.debug)
753
- this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
754
- if (this.token) {
755
- if (state.debug)
756
- console.log('Store Token set with property value: ' + this.token);
757
- state.token = this.token;
758
- }
759
- else if (state.token == '') {
760
- state.token = sessionStorage.getItem(SessionKeys.TokenKey);
761
- this.token = state.token;
762
- if (state.debug)
763
- console.log('Store Token set with session value: ' + state.token);
764
- }
765
- if (this.redirect_id) {
766
- state.redirectId = this.redirect_id;
767
- }
768
- if (this.phone_number && this.phone_number != '') {
769
- state.phoneNumber = this.phone_number;
770
- }
771
- if (this.lang_iso && this.lang_iso != '') {
772
- state.langIso = this.lang_iso;
773
- }
774
- var ini = sessionStorage.getItem(SessionKeys.InitialisedKey);
775
- if (ini && ini.toLowerCase() == 'true') {
776
- state.initialised = true;
777
- }
778
- var hasIdBk = sessionStorage.getItem(SessionKeys.HasIdBackKey);
779
- if (hasIdBk && hasIdBk.toLowerCase() == 'true') {
780
- state.hasIdBack = true;
781
- }
782
- var agrVal = sessionStorage.getItem(SessionKeys.AgreementValidationKey);
783
- if (agrVal && agrVal.toLowerCase() == 'true') {
784
- state.agreementsValidation = true;
785
- }
786
- var phoneVal = sessionStorage.getItem(SessionKeys.PhoneValidationKey);
787
- if (phoneVal && phoneVal.toLowerCase() == 'true') {
788
- state.phoneValidation = true;
789
- }
790
- const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
791
- if (this.order_id && this.order_id != '') {
792
- state.requestId = this.order_id;
793
- if (state.debug)
794
- console.log('Current RequestId has value: ' + this.order_id);
795
- if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
796
- if (state.debug)
797
- console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
798
- this.flowStatusToSet = FlowStatus.LANDING;
799
- state.initialised = false;
800
- }
801
- }
802
- else if (savedRequest) {
803
- if (state.debug)
804
- console.log('Current RequestId has no value, setting with session value: ' + savedRequest);
805
- state.requestId = savedRequest;
806
- this.order_id = savedRequest;
807
- }
808
- if (this.flowStatusToSet == FlowStatus.NONE) {
809
- var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
810
- if (flowSt) {
811
- this.flowStatusToSet = FlowStatus[flowSt];
812
- }
813
- else {
814
- this.flowStatusToSet = FlowStatus.LANDING;
815
- }
816
- }
817
- }
818
- async componentDidLoad() {
819
- await this.initializeRequest();
820
- state.flowStatus = this.flowStatusToSet;
821
- }
822
- componentWillRender() {
823
- if (this.idSide == '') {
824
- this.idSide = state.hasIdBack ? 'front' : '';
825
- }
826
- }
827
- async initializeRequest() {
828
- if (state.initialised) {
829
- return;
830
- }
831
- if (state.environment == 'DEMO') {
832
- state.initialised = true;
833
- return;
834
- }
835
- if (state.device.browser == Browser.Mi) {
836
- this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
837
- return;
838
- }
839
- try {
840
- if (state.debug)
841
- this.baseComponent.apiCall.AddLog({ phase: 'debug mode' }, this.logInit);
842
- }
843
- catch (_a) { }
844
- try {
845
- if (!state.device.isMobile && state.redirectId == '') {
846
- state.redirectId = v4();
847
- this.redirect_id = state.redirectId;
848
- }
849
- if (state.token != '' && (state.requestId != '' || state.redirectId != '')) {
850
- state.initialised = await this.baseComponent.apiCall.AddIdentificationRequest(state.device, packageJson.version);
851
- if (!this.order_id || this.order_id == '') {
852
- this.order_id = state.requestId;
853
- }
854
- }
855
- }
856
- catch (e) {
857
- this.apiErrorEmitter(e, 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
858
- }
859
- ML5.getInstance();
860
- }
861
- disconnectedCallback() {
862
- Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Finalized);
863
- }
864
- render() {
865
- let currentBlock = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "div-ci align-center" }, h("img", { src: loaderSvg })))));
866
- if (state.device.isMobile || state.environment == 'DEMO') {
867
- if (state.flowStatus == FlowStatus.LANDING) {
868
- currentBlock = h("landing-validation", null);
869
- }
870
- }
871
- else if (state.flowStatus != FlowStatus.NONE) {
872
- currentBlock = h("mobile-redirect", null);
873
- }
874
- if (state.flowStatus == FlowStatus.AGREEMENT) {
875
- currentBlock = h("agreement-info", null);
876
- }
877
- if (state.flowStatus == FlowStatus.PHONE) {
878
- currentBlock = h("sms-code-validation", null);
879
- }
880
- if (state.flowStatus == FlowStatus.CODE) {
881
- currentBlock = h("sms-code-validation", null);
882
- }
883
- if (state.flowStatus == FlowStatus.CODEERROR) {
884
- currentBlock = h("sms-code-validation", null);
885
- }
886
- if (state.flowStatus == FlowStatus.ID) {
887
- currentBlock = h("process-id", null);
888
- }
889
- if (state.flowStatus == FlowStatus.LIVENESS) {
890
- currentBlock = h("user-liveness", { id: "camera" });
891
- }
892
- if (state.flowStatus == FlowStatus.COMPLETE) {
893
- currentBlock = h("end-redirect", null);
894
- }
895
- if (state.flowStatus == FlowStatus.ERROREND) {
896
- currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
897
- }
898
- if (state.flowStatus == FlowStatus.CAMERAERROR) {
899
- currentBlock = h("camera-error", null);
900
- }
901
- return h("div", null, currentBlock);
902
- }
903
- static get watchers() { return {
904
- "token": ["onTokenChange"]
905
- }; }
906
- };
907
- IdentificationComponent.style = identificationComponentCss;
908
-
909
- export { IdentificationComponent as identification_component };