@ekyc_qoobiss/qbs-ect-cmp 1.5.21 → 1.5.23

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 (66) hide show
  1. package/README.md +3 -4
  2. package/dist/cjs/agreement-check_12.cjs.entry.js +45 -48
  3. package/dist/cjs/{index-9ebcada7.js → index-be29a2a8.js} +0 -5
  4. package/dist/cjs/loader-dots.cjs.entry.js +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/qbs-ect-cmp.cjs.js +2 -2
  7. package/dist/collection/components/id-back-capture/id-back-capture.js +18 -21
  8. package/dist/collection/components/id-capture/id-capture.js +18 -21
  9. package/dist/collection/components/selfie-capture/selfie-capture.js +17 -20
  10. package/dist/esm/agreement-check_12.entry.js +45 -48
  11. package/dist/esm/{index-3fe6775c.js → index-b6e6428d.js} +1 -5
  12. package/dist/esm/loader-dots.entry.js +1 -1
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/esm/qbs-ect-cmp.js +2 -2
  15. package/dist/qbs-ect-cmp/{p-a69bb428.entry.js → p-45a94ee0.entry.js} +1 -1
  16. package/dist/qbs-ect-cmp/p-742256cd.js +2 -0
  17. package/dist/qbs-ect-cmp/{p-d2c3c6ec.entry.js → p-96512201.entry.js} +2 -2
  18. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  19. package/dist/types/components/id-back-capture/id-back-capture.d.ts +0 -2
  20. package/dist/types/components/id-capture/id-capture.d.ts +0 -2
  21. package/dist/types/components/selfie-capture/selfie-capture.d.ts +0 -2
  22. package/package.json +1 -1
  23. package/dist/components/ApiCall.js +0 -156
  24. package/dist/components/Cameras.js +0 -100
  25. package/dist/components/agreement-check.d.ts +0 -11
  26. package/dist/components/agreement-check.js +0 -6
  27. package/dist/components/agreement-check2.js +0 -45
  28. package/dist/components/agreement-info.d.ts +0 -11
  29. package/dist/components/agreement-info.js +0 -6
  30. package/dist/components/agreement-info2.js +0 -76
  31. package/dist/components/camera-comp.d.ts +0 -11
  32. package/dist/components/camera-comp.js +0 -6
  33. package/dist/components/camera.js +0 -4609
  34. package/dist/components/capture-error.d.ts +0 -11
  35. package/dist/components/capture-error.js +0 -6
  36. package/dist/components/capture-error2.js +0 -69
  37. package/dist/components/end-redirect.d.ts +0 -11
  38. package/dist/components/end-redirect.js +0 -6
  39. package/dist/components/end-redirect2.js +0 -37
  40. package/dist/components/how-to-info.d.ts +0 -11
  41. package/dist/components/how-to-info.js +0 -6
  42. package/dist/components/how-to-info2.js +0 -92
  43. package/dist/components/id-back-capture.d.ts +0 -11
  44. package/dist/components/id-back-capture.js +0 -6
  45. package/dist/components/id-back-capture2.js +0 -142
  46. package/dist/components/id-capture.d.ts +0 -11
  47. package/dist/components/id-capture.js +0 -6
  48. package/dist/components/id-capture2.js +0 -142
  49. package/dist/components/identification-component.d.ts +0 -11
  50. package/dist/components/identification-component.js +0 -411
  51. package/dist/components/index.d.ts +0 -34
  52. package/dist/components/index.js +0 -14
  53. package/dist/components/landing-validation.d.ts +0 -11
  54. package/dist/components/landing-validation.js +0 -6
  55. package/dist/components/landing-validation2.js +0 -61
  56. package/dist/components/loader-dots.d.ts +0 -11
  57. package/dist/components/loader-dots.js +0 -33
  58. package/dist/components/selfie-capture.d.ts +0 -11
  59. package/dist/components/selfie-capture.js +0 -6
  60. package/dist/components/selfie-capture2.js +0 -140
  61. package/dist/components/sms-code-validation.d.ts +0 -11
  62. package/dist/components/sms-code-validation.js +0 -6
  63. package/dist/components/sms-code-validation2.js +0 -98
  64. package/dist/components/store.js +0 -209
  65. package/dist/components/textValues.js +0 -84
  66. package/dist/qbs-ect-cmp/p-3fa495e4.js +0 -2
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SelfieCapture extends Components.SelfieCapture, HTMLElement {}
4
- export const SelfieCapture: {
5
- prototype: SelfieCapture;
6
- new (): SelfieCapture;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,6 +0,0 @@
1
- import { S as SelfieCapture$1, d as defineCustomElement$1 } from './selfie-capture2.js';
2
-
3
- const SelfieCapture = SelfieCapture$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { SelfieCapture, defineCustomElement };
@@ -1,140 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
2
- import { b as FacePose, E as Events, S as Stream, F as FaceML5Detector, d as defineCustomElement$1 } from './camera.js';
3
- import { C as Cameras } from './Cameras.js';
4
- import { b as SelfieCaptureValues } from './textValues.js';
5
-
6
- const selfieCaptureCss = ".block{width:60%;margin-left:20%}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;left:50%;top:50%;z-index:2;transform:scale(-1, 1)}";
7
-
8
- const SelfieCapture = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.eventPhotoCapture = createEvent(this, "photoSelfieCapture", 7);
13
- this.photoIsReady = photos => {
14
- this.closeCamera();
15
- this.eventPhotoCapture.emit(photos);
16
- };
17
- this.device = undefined;
18
- this.videoStarted = undefined;
19
- this.cameraSize = undefined;
20
- this.stopAnimation = undefined;
21
- this.captureTaken = undefined;
22
- this.titleMesage = undefined;
23
- this.animationPath = undefined;
24
- this.captureTaken = false;
25
- this.cameras = new Cameras();
26
- }
27
- eventChangeTitle(event) {
28
- this.stopAnimation = false;
29
- if (event.detail == null) {
30
- this.animationPath = getAssetPath('../../assets/animations/face/general.gif');
31
- this.titleMesage = SelfieCaptureValues.FinalTitle;
32
- }
33
- else {
34
- this.animationPath = getAssetPath('../../assets/animations/face/' + FacePose[event.detail] + '.gif');
35
- this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
36
- }
37
- }
38
- eventVideoStarted(event) {
39
- this.videoStarted = true;
40
- this.cameraSize = event.detail;
41
- }
42
- eventStopAnimation() {
43
- this.stopAnimation = true;
44
- }
45
- componentWillLoad() {
46
- Events.init(this.component);
47
- this.titleMesage = SelfieCaptureValues.Title;
48
- if (!navigator.mediaDevices) {
49
- Events.errorEvent('This browser does not support webRTC');
50
- }
51
- }
52
- async componentDidLoad() {
53
- this.openCamera();
54
- this.animationPath = getAssetPath('../../assets/animations/face/general.gif');
55
- }
56
- async openCamera() {
57
- const constraints = this.cameras.GetConstraints('', this.device, true);
58
- setTimeout(() => {
59
- navigator.mediaDevices
60
- .getUserMedia(constraints)
61
- .then(stream => {
62
- const superStream = Stream.getInstance();
63
- superStream.initStream(stream);
64
- })
65
- .catch(e => {
66
- this.closeCamera();
67
- Events.errorEvent(e);
68
- });
69
- }, 100);
70
- }
71
- closeCamera() {
72
- if (Stream.instance) {
73
- Events.closeEvent();
74
- Stream.getInstance().dropStream();
75
- }
76
- }
77
- disconnectedCallback() {
78
- this.closeCamera();
79
- Stream.instance = null;
80
- FaceML5Detector.instance = null;
81
- }
82
- takePhoto() {
83
- if (this.captureTaken)
84
- return;
85
- this.captureTaken = true;
86
- this.titleMesage = SelfieCaptureValues.Loading;
87
- Stream.getInstance()
88
- .takePhoto()
89
- .then(res => {
90
- this.photoIsReady(res[0]);
91
- });
92
- }
93
- render() {
94
- let loadingBlock;
95
- if (this.captureTaken) {
96
- loadingBlock = (h("div", { class: "pos-relative" }, h("div", { class: "dot-effect" }, h("div", { class: "snippet", "data-title": ".dot-shuttle" }, h("div", { class: "stage filter-contrast" }, h("div", { class: "dot-shuttle" }))))));
97
- }
98
- let animationBlock;
99
- if (this.videoStarted && this.stopAnimation !== true) {
100
- let left = 0;
101
- if (this.cameraSize.width > this.cameraSize.height)
102
- left = (this.cameraSize.width) / 2 - (this.cameraSize.height / 1.77 / 2);
103
- animationBlock = (h("img", { class: "animation", style: { left: left + 'px' }, "data-src": this.animationPath, src: this.animationPath }));
104
- }
105
- let divClass = "chenar-buletin pos-relative";
106
- if (this.videoStarted && this.cameraSize.width < this.cameraSize.height)
107
- divClass += " block";
108
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { hidden: this.captureTaken, class: divClass }, animationBlock, h("camera-comp", { device: this.device, "capture-mode": "selfie" })), loadingBlock, h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText)))));
109
- }
110
- get component() { return this; }
111
- static get style() { return selfieCaptureCss; }
112
- }, [0, "selfie-capture", {
113
- "device": [16],
114
- "videoStarted": [32],
115
- "cameraSize": [32],
116
- "stopAnimation": [32],
117
- "captureTaken": [32],
118
- "titleMesage": [32],
119
- "animationPath": [32]
120
- }, [[0, "changeTitle", "eventChangeTitle"], [0, "videoStarted", "eventVideoStarted"], [0, "stopAnimation", "eventStopAnimation"], [0, "takePhoto", "takePhoto"]]]);
121
- function defineCustomElement() {
122
- if (typeof customElements === "undefined") {
123
- return;
124
- }
125
- const components = ["selfie-capture", "camera-comp"];
126
- components.forEach(tagName => { switch (tagName) {
127
- case "selfie-capture":
128
- if (!customElements.get(tagName)) {
129
- customElements.define(tagName, SelfieCapture);
130
- }
131
- break;
132
- case "camera-comp":
133
- if (!customElements.get(tagName)) {
134
- defineCustomElement$1();
135
- }
136
- break;
137
- } });
138
- }
139
-
140
- export { SelfieCapture as S, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SmsCodeValidation extends Components.SmsCodeValidation, HTMLElement {}
4
- export const SmsCodeValidation: {
5
- prototype: SmsCodeValidation;
6
- new (): SmsCodeValidation;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,6 +0,0 @@
1
- import { S as SmsCodeValidation$1, d as defineCustomElement$1 } from './sms-code-validation2.js';
2
-
3
- const SmsCodeValidation = SmsCodeValidation$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { SmsCodeValidation, defineCustomElement };
@@ -1,98 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { A as ApiCall } from './ApiCall.js';
3
- import { s as state } from './store.js';
4
- import { P as PhoneValidationValues, c as CodeValidationValues } from './textValues.js';
5
-
6
- const smsCodeValidationCss = "";
7
-
8
- const SmsCodeValidation = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.title = undefined;
13
- this.details = undefined;
14
- this.buttonText = undefined;
15
- this.phoneNumber = undefined;
16
- this.code = undefined;
17
- this.apiCall = new ApiCall();
18
- }
19
- async doAction() {
20
- if (state.flowStatus == 'CODE' || state.flowStatus == 'CODEERROR') {
21
- var codeChecked = await this.apiCall.CheckOTPCode(state.requestId, this.code);
22
- if (typeof codeChecked === 'boolean' && codeChecked) {
23
- state.flowStatus = 'HOWTOID';
24
- }
25
- else {
26
- state.flowStatus = 'CODEERROR';
27
- }
28
- }
29
- if (state.flowStatus == 'PHONE') {
30
- var codeSent = await this.apiCall.SendOTPCode(state.requestId, this.phoneNumber);
31
- if (typeof codeSent === 'boolean' && codeSent) {
32
- state.flowStatus = 'CODE';
33
- }
34
- }
35
- }
36
- componentWillRender() {
37
- if (state.flowStatus == 'PHONE') {
38
- this.title = PhoneValidationValues.Title;
39
- this.details = PhoneValidationValues.Description;
40
- this.buttonText = PhoneValidationValues.Button;
41
- }
42
- if (state.flowStatus == 'CODE' || state.flowStatus == 'CODEERROR') {
43
- this.title = CodeValidationValues.Title;
44
- this.details = CodeValidationValues.Description;
45
- this.buttonText = CodeValidationValues.Button;
46
- }
47
- }
48
- handleChangePhone(ev) {
49
- let value = ev.target ? ev.target.value : '';
50
- this.phoneNumber = value.replace(/\D/g, '');
51
- if (this.phoneNumber.length > 10)
52
- this.phoneNumber = this.phoneNumber.substring(0, 10);
53
- ev.target.value = this.phoneNumber;
54
- }
55
- handleChangeCode(ev) {
56
- let value = ev.target ? ev.target.value : '';
57
- this.code = value;
58
- if (this.code.length > 4)
59
- this.code = this.code.substring(0, 4);
60
- ev.target.value = this.code;
61
- }
62
- render() {
63
- let inputBlock;
64
- let errorBlock;
65
- if (state.flowStatus == 'CODEERROR') {
66
- errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red" }, CodeValidationValues.Error);
67
- }
68
- if (state.flowStatus == 'PHONE') {
69
- inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
70
- }
71
- else {
72
- inputBlock = (h("div", { class: "input-container mb-15" }, h("input", { type: "text", id: "codeInput", class: "main-input", onInput: ev => this.handleChangeCode(ev), value: this.code })));
73
- }
74
- return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", null, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20" }, this.details) : errorBlock), inputBlock, h("div", { class: "btn-buletin" }, h("button", { id: "action", class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText)))));
75
- }
76
- static get style() { return smsCodeValidationCss; }
77
- }, [0, "sms-code-validation", {
78
- "title": [32],
79
- "details": [32],
80
- "buttonText": [32],
81
- "phoneNumber": [32],
82
- "code": [32]
83
- }]);
84
- function defineCustomElement() {
85
- if (typeof customElements === "undefined") {
86
- return;
87
- }
88
- const components = ["sms-code-validation"];
89
- components.forEach(tagName => { switch (tagName) {
90
- case "sms-code-validation":
91
- if (!customElements.get(tagName)) {
92
- customElements.define(tagName, SmsCodeValidation);
93
- }
94
- break;
95
- } });
96
- }
97
-
98
- export { SmsCodeValidation as S, defineCustomElement as d };
@@ -1,209 +0,0 @@
1
- import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
2
- import { S as SessionKeys } from './textValues.js';
3
-
4
- const appendToMap = (map, propName, value) => {
5
- const items = map.get(propName);
6
- if (!items) {
7
- map.set(propName, [value]);
8
- }
9
- else if (!items.includes(value)) {
10
- items.push(value);
11
- }
12
- };
13
- const debounce = (fn, ms) => {
14
- let timeoutId;
15
- return (...args) => {
16
- if (timeoutId) {
17
- clearTimeout(timeoutId);
18
- }
19
- timeoutId = setTimeout(() => {
20
- timeoutId = 0;
21
- fn(...args);
22
- }, ms);
23
- };
24
- };
25
-
26
- /**
27
- * Check if a possible element isConnected.
28
- * The property might not be there, so we check for it.
29
- *
30
- * We want it to return true if isConnected is not a property,
31
- * otherwise we would remove these elements and would not update.
32
- *
33
- * Better leak in Edge than to be useless.
34
- */
35
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
36
- const cleanupElements = debounce((map) => {
37
- for (let key of map.keys()) {
38
- map.set(key, map.get(key).filter(isConnected));
39
- }
40
- }, 2000);
41
- const stencilSubscription = () => {
42
- if (typeof getRenderingRef !== 'function') {
43
- // If we are not in a stencil project, we do nothing.
44
- // This function is not really exported by @stencil/core.
45
- return {};
46
- }
47
- const elmsToUpdate = new Map();
48
- return {
49
- dispose: () => elmsToUpdate.clear(),
50
- get: (propName) => {
51
- const elm = getRenderingRef();
52
- if (elm) {
53
- appendToMap(elmsToUpdate, propName, elm);
54
- }
55
- },
56
- set: (propName) => {
57
- const elements = elmsToUpdate.get(propName);
58
- if (elements) {
59
- elmsToUpdate.set(propName, elements.filter(forceUpdate));
60
- }
61
- cleanupElements(elmsToUpdate);
62
- },
63
- reset: () => {
64
- elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
65
- cleanupElements(elmsToUpdate);
66
- },
67
- };
68
- };
69
-
70
- const unwrap = (val) => (typeof val === 'function' ? val() : val);
71
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
72
- const unwrappedState = unwrap(defaultState);
73
- let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
74
- const handlers = {
75
- dispose: [],
76
- get: [],
77
- set: [],
78
- reset: [],
79
- };
80
- const reset = () => {
81
- var _a;
82
- // When resetting the state, the default state may be a function - unwrap it to invoke it.
83
- // otherwise, the state won't be properly reset
84
- states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
85
- handlers.reset.forEach((cb) => cb());
86
- };
87
- const dispose = () => {
88
- // Call first dispose as resetting the state would
89
- // cause less updates ;)
90
- handlers.dispose.forEach((cb) => cb());
91
- reset();
92
- };
93
- const get = (propName) => {
94
- handlers.get.forEach((cb) => cb(propName));
95
- return states.get(propName);
96
- };
97
- const set = (propName, value) => {
98
- const oldValue = states.get(propName);
99
- if (shouldUpdate(value, oldValue, propName)) {
100
- states.set(propName, value);
101
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
102
- }
103
- };
104
- const state = (typeof Proxy === 'undefined'
105
- ? {}
106
- : new Proxy(unwrappedState, {
107
- get(_, propName) {
108
- return get(propName);
109
- },
110
- ownKeys(_) {
111
- return Array.from(states.keys());
112
- },
113
- getOwnPropertyDescriptor() {
114
- return {
115
- enumerable: true,
116
- configurable: true,
117
- };
118
- },
119
- has(_, propName) {
120
- return states.has(propName);
121
- },
122
- set(_, propName, value) {
123
- set(propName, value);
124
- return true;
125
- },
126
- }));
127
- const on = (eventName, callback) => {
128
- handlers[eventName].push(callback);
129
- return () => {
130
- removeFromArray(handlers[eventName], callback);
131
- };
132
- };
133
- const onChange = (propName, cb) => {
134
- const unSet = on('set', (key, newValue) => {
135
- if (key === propName) {
136
- cb(newValue);
137
- }
138
- });
139
- // We need to unwrap the defaultState because it might be a function.
140
- // Otherwise we might not be sending the right reset value.
141
- const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
142
- return () => {
143
- unSet();
144
- unReset();
145
- };
146
- };
147
- const use = (...subscriptions) => {
148
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
149
- if (subscription.set) {
150
- unsubs.push(on('set', subscription.set));
151
- }
152
- if (subscription.get) {
153
- unsubs.push(on('get', subscription.get));
154
- }
155
- if (subscription.reset) {
156
- unsubs.push(on('reset', subscription.reset));
157
- }
158
- if (subscription.dispose) {
159
- unsubs.push(on('dispose', subscription.dispose));
160
- }
161
- return unsubs;
162
- }, []);
163
- return () => unsubs.forEach((unsub) => unsub());
164
- };
165
- const forceUpdate = (key) => {
166
- const oldValue = states.get(key);
167
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
168
- };
169
- return {
170
- state,
171
- get,
172
- set,
173
- on,
174
- onChange,
175
- use,
176
- dispose,
177
- reset,
178
- forceUpdate,
179
- };
180
- };
181
- const removeFromArray = (array, item) => {
182
- const index = array.indexOf(item);
183
- if (index >= 0) {
184
- array[index] = array[array.length - 1];
185
- array.length--;
186
- }
187
- };
188
-
189
- const createStore = (defaultState, shouldUpdate) => {
190
- const map = createObservableMap(defaultState, shouldUpdate);
191
- map.use(stencilSubscription());
192
- return map;
193
- };
194
-
195
- const { state, onChange } = createStore({
196
- flowStatus: '',
197
- requestId: '',
198
- initialised: false,
199
- token: '',
200
- cameraIds: [],
201
- cameraId: '',
202
- hasIdBack: false,
203
- apiBaseUrl: 'https://apiro.id-kyc.com',
204
- });
205
- onChange('flowStatus', value => {
206
- sessionStorage.setItem(SessionKeys.FlowStatusKey, value);
207
- });
208
-
209
- export { state as s };
@@ -1,84 +0,0 @@
1
- class GlobalValues {
2
- }
3
- GlobalValues.FooterText = 'Qoobiss eKYC';
4
- class HowToValues extends GlobalValues {
5
- }
6
- HowToValues.IdTitile = 'Pentru realizarea procesului de identificare este necesară verificarea actului de identitate';
7
- HowToValues.IdSubTitileFace = 'Prezintă fața actului de identitate';
8
- HowToValues.IdSubTitileBack = 'Prezintă spatele actului de identitate';
9
- HowToValues.IdDescriptionR1 = 'Urmărește cu atenție indicațiile de pe ecran.';
10
- HowToValues.IdDescriptionR2 = 'Ai grijă să nu se formeze în niciun moment reflexii de lumină pe actul de identitate.';
11
- HowToValues.IdDescriptionR3 = 'Folosește actul de identitate în original! Utilizarea copiilor duce la invalidarea procesului!';
12
- HowToValues.IdButton = 'Sunt gata!';
13
- HowToValues.SelfieTitile = 'Trebuie să realizăm o scurtă înregistrare cu tine în fața camerei telefonului sau a calculatorului.';
14
- HowToValues.SelfieDescriptionR1 = 'Asigură-te că ești într-o zonă cu sufiecientă lumină.';
15
- HowToValues.SelfieDescriptionR2 = 'Urmărește cu atenție indicațiile de pe ecran.';
16
- HowToValues.SelfieButton = 'Sunt gata!';
17
- class LandingValues extends GlobalValues {
18
- }
19
- LandingValues.Title = 'Validarea identității la distanță este o procedură simplă și rapidă';
20
- LandingValues.Description = 'Asigură-te că ai:';
21
- LandingValues.IdInfo = 'Actul de identitate, în original';
22
- LandingValues.DeviceInfo = 'Un telefon mobil sau un calculator cu camera web';
23
- LandingValues.SmsInfo = 'Acces la un telefon mobil ce permite primirea de mesaje SMS';
24
- LandingValues.Warning = 'ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.';
25
- LandingValues.WarningMd = 'ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.';
26
- LandingValues.Terms = 'Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.';
27
- LandingValues.Button = 'Am înțeles';
28
- class PhoneValidationValues extends GlobalValues {
29
- }
30
- PhoneValidationValues.Title = 'Este necesar să validăm numărul tău de telefon';
31
- PhoneValidationValues.Description = 'Introdu mai jos numarul tau de telefon:';
32
- PhoneValidationValues.Button = 'Trimite SMS de verificare';
33
- PhoneValidationValues.Label = 'Numarul tau de telefon';
34
- class CodeValidationValues extends GlobalValues {
35
- }
36
- CodeValidationValues.Title = 'Introdu codul de validare primit prin sms:';
37
- CodeValidationValues.Description = ' ';
38
- CodeValidationValues.Button = 'Validează';
39
- CodeValidationValues.Error = 'Codul introdus nu este valid. Asigură-te că îl introduci corect';
40
- class CompleteValues extends GlobalValues {
41
- }
42
- CompleteValues.Title = 'Procesul a fost finalizat.';
43
- CompleteValues.Description = 'Vei fi redirecționat în câteva momente.';
44
- CompleteValues.Message = 'Îți mulțumim!';
45
- class SessionKeys {
46
- }
47
- SessionKeys.FlowStatusKey = 'qbs-ect-flowstatus';
48
- SessionKeys.RequestIdKey = 'qbs-ect-requestid';
49
- class IdCaptureValues extends GlobalValues {
50
- }
51
- IdCaptureValues.Button = 'Încerc din nou';
52
- IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
53
- IdCaptureValues.Error = 'Procesul a eșuat. Te rugăm să respecți întocmai instrucțiunile de pe ecran. Ai grijă să încadrezi integral actul în chenraul de pe ecran și să nu apară reflexii de lumină pe suprafața acestuia.';
54
- IdCaptureValues.IDPoseMapping = {
55
- 0: 'Înclină actul de identitate spre spate.',
56
- 1: 'Îndreaptă actul de identitate si reîncadrează-l în chenarul de pe ecran.',
57
- };
58
- IdCaptureValues.Loading = 'Datele sunt încărcate';
59
- class SelfieCaptureValues extends GlobalValues {
60
- }
61
- SelfieCaptureValues.Title = 'Încadrează fața în chenarul de pe ecran.';
62
- SelfieCaptureValues.FinalTitle = 'Îndreaptă capul și încadrează fața în chenarul de pe ecran.';
63
- SelfieCaptureValues.Error = 'Procesul a eșuat. Te rugăm să respecți întocmai instrucțiunile de pe ecran.';
64
- SelfieCaptureValues.Loading = 'Datele sunt încărcate';
65
- SelfieCaptureValues.FacePoseMapping = {
66
- 0: 'Întoarce capul spre stânga.',
67
- 1: 'Întoarce capul spre dreapta.',
68
- 2: 'Înclină capul spre spate.',
69
- 3: 'Înclină capul în față.',
70
- 4: 'Înclină capul spre stânga.',
71
- 5: 'Înclină capul spre dreapta.',
72
- };
73
- class AgreementInfoValues extends GlobalValues {
74
- }
75
- AgreementInfoValues.Title = 'Pentru începerea identificării avem nevoie de acordurile tale:';
76
- AgreementInfoValues.Button = 'Încep identificarea';
77
- AgreementInfoValues.Terms = 'Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare';
78
- AgreementInfoValues.Agreement = 'Îmi exprim acordul pentru prelucrarea datelor cu caracter personal';
79
- class AgreementCheckValues extends GlobalValues {
80
- }
81
- AgreementCheckValues.ButtonYes = 'Sunt de acord';
82
- AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
83
-
84
- export { AgreementCheckValues as A, CompleteValues as C, HowToValues as H, IdCaptureValues as I, LandingValues as L, PhoneValidationValues as P, SessionKeys as S, AgreementInfoValues as a, SelfieCaptureValues as b, CodeValidationValues as c };
@@ -1,2 +0,0 @@
1
- let e,t,n=null,l=!1;const s=e=>{const t=new URL(e,Z.t);return t.origin!==X.location.origin?t.href:t.pathname},o={},c=e=>"object"==(e=typeof e)||"function"===e,r=(e,t,...n)=>{let l=null,s=!1,o=!1;const r=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!c(l))&&(l+=""),s&&o?r[r.length-1].l+=l:r.push(s?i(null,l):l),o=s)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=i(e,null);return a.o=t,r.length>0&&(a.i=r),a},i=(e,t)=>({u:0,h:e,l:t,p:null,i:null,o:null}),u={},a=e=>_(e).m,f=(e,t,n)=>{const l=a(e);return{emit:e=>d(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},d=(e,t,n)=>{const l=Z.ce(t,n);return e.dispatchEvent(l),l},h=new WeakMap,p=e=>"sc-"+e.$,y=(e,t,n,l,s,o)=>{if(n!==l){let r=G(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,s=$(n),o=$(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const i=c(l);if((r||i&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&o||s)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):G(X,i)?i.slice(2):i[2]+t.slice(3),n&&Z.rel(e,t,n,!1),l&&Z.ael(e,t,l,!1)}},m=/\s/,$=e=>e?e.split(m):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,c=e&&e.o||o,r=t.o||o;for(l in c)l in r||y(s,l,c[l],void 0,n,t.u);for(l in r)y(s,l,c[l],r[l],n,t.u)},w=(t,n,l)=>{const s=n.i[l];let o,c,r=0;if(null!==s.l)o=s.p=Y.createTextNode(s.l);else if(o=s.p=Y.createElement(s.h),b(null,s,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.i)for(r=0;r<s.i.length;++r)c=w(t,s,r),c&&o.appendChild(c);return o},S=(e,n,l,s,o,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=w(null,l,o),r&&(s[o].p=r,i.insertBefore(r,n)))},g=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.p,M(l),s.remove())},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.p=e.p,l=e.i,s=t.i,o=t.l;null===o?(b(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,c=0,r=t.length-1,i=t[0],u=t[r],a=l.length-1,f=l[0],d=l[a];for(;o<=r&&c<=a;)null==i?i=t[++o]:null==u?u=t[--r]:null==f?f=l[++c]:null==d?d=l[--a]:j(i,f)?(v(i,f),i=t[++o],f=l[++c]):j(u,d)?(v(u,d),u=t[--r],d=l[--a]):j(i,d)?(v(i,d),e.insertBefore(i.p,u.p.nextSibling),i=t[++o],d=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.p,i.p),u=t[--r],f=l[++c]):(s=w(t&&t[c],n,c),f=l[++c],s&&i.p.parentNode.insertBefore(s,i.p));o>r?S(e,null==l[a+1]?null:l[a+1].p,n,l,c,a):c>a&&g(t,o,r)})(n,l,t,s):null!==s?(null!==e.l&&(n.textContent=""),S(n,null,t,s,0,s.length-1)):null!==l&&g(l,0,l.length-1)):e.l!==o&&(n.data=o)},M=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(M)},k=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},C=(e,t)=>{if(e.u|=16,!(4&e.u))return k(e,e.g),ie((()=>O(e,t)));e.u|=512},O=(e,t)=>{const n=e.j;let l;return t&&(e.u|=256,e.v&&(e.v.map((([e,t])=>N(n,e,t))),e.v=null),l=N(n,"componentWillLoad")),l=T(l,(()=>N(n,"componentWillRender"))),T(l,(()=>L(e,n,t)))},L=async(e,t,n)=>{const l=e.m,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.m,l=t.u,s=((e,t)=>{let n=p(t);const l=Q.get(n);if(e=11===e.nodeType?e:Y,l)if("string"==typeof l){let t,s=h.get(e=e.head||e);s||h.set(e,s=new Set),s.has(n)||(t=Y.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);P(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>W(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},P=(l,s)=>{try{n=s,s=s.render(),l.u&=-17,l.u|=2,((n,l)=>{const s=n.m,o=n.M,c=n.k||i(null,null),a=(e=>e&&e.h===u)(l)?l:r(null,null,l);t=s.tagName,o.C&&(a.o=a.o||{},o.C.map((([e,t])=>a.o[t]=s[e]))),a.h=null,a.u|=4,n.k=a,a.p=c.p=s.shadowRoot||s,e=s["s-sc"],v(c,a)})(l,s)}catch(e){I(e,l.m)}return n=null,null},R=()=>n,W=e=>{const t=e.m,n=e.j,l=e.g;64&e.u||(e.u|=64,U(t),N(n,"componentDidLoad"),e.O(t),l||E()),e.S&&(e.S(),e.S=void 0),512&e.u&&re((()=>C(e,!1))),e.u&=-517},x=e=>{{const t=_(e),n=t.m.isConnected;return n&&2==(18&t.u)&&C(t,!1),n}},E=()=>{U(Y.documentElement),re((()=>d(X,"appload",{detail:{namespace:"qbs-ect-cmp"}})))},N=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},T=(e,t)=>e&&e.then?e.then(t):t(),U=e=>e.classList.add("hydrated"),q=(e,t,n)=>{if(t.L){e.watchers&&(t.P=e.watchers);const l=Object.entries(t.L),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).R.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.m,r=s.R.get(t),i=s.u,u=s.j;if(n=((e,t)=>null==e||c(e)?e:2&t?parseFloat(e):1&t?e+"":e)(n,l.L[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(s.R.set(t,n),u)){if(l.P&&128&i){const e=l.P[t];e&&e.map((e=>{try{u[e](n,r,t)}catch(e){I(e,o)}}))}2==(18&i)&&C(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){Z.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.C.push([e,s]),s}))}}return e},A=(e,t={})=>{const n=[],l=t.exclude||[],s=X.customElements,o=Y.head,c=o.querySelector("meta[charset]"),r=Y.createElement("style"),i=[];let u,a=!0;Object.assign(Z,t),Z.t=new URL(t.resourcesUrl||"./",Y.baseURI).href,e.map((e=>{e[1].map((t=>{const o={u:t[0],$:t[1],L:t[2],W:t[3]};o.L=t[2],o.W=t[3],o.C=[],o.P={};const c=o.$,r=class extends HTMLElement{constructor(e){super(e),B(e=this,o),1&o.u&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?i.push(this):Z.jmp((()=>(e=>{if(0==(1&Z.u)){const t=_(e),n=t.M,l=()=>{};if(1&t.u)F(e,t,n.W);else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(t,t.g=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.u)){{if(t.u|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.P=s.watchers,q(s,n,2),s.isProxied=!0);const e=()=>{};t.u|=8;try{new s(t)}catch(e){I(e)}t.u&=-9,t.u|=128,e()}if(s.style){let e=s.style;const t=p(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);te&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.u)),l()}}}const o=t.g,c=()=>C(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){Z.jmp((()=>(()=>{if(0==(1&Z.u)){const e=_(this),t=e.j;e.N&&(e.N.map((e=>e())),e.N=void 0),N(t,"disconnectedCallback")}})()))}componentOnReady(){return _(this).T}};o.U=e[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,q(r,o,1)))}))})),r.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),o.insertBefore(r,c?c.nextSibling:o.firstChild),a=!1,i.length?i.map((e=>e.connectedCallback())):Z.jmp((()=>u=setTimeout(E,30)))},F=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=e,c=D(t,s),r=H(n);Z.ael(o,l,c,r),(t.N=t.N||[]).push((()=>Z.rel(o,l,c,r)))}))},D=(e,t)=>n=>{try{256&e.u?e.j[t](n):(e.v=e.v||[]).push([t,n])}catch(e){I(e)}},H=e=>0!=(2&e),V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.j=e,t),B=(e,t)=>{const n={u:0,m:e,M:t,R:new Map};return n.T=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],F(e,n,t.W),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.$.replace(/-/g,"_"),n=e.U,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Q=new Map,X="undefined"!=typeof window?window:{},Y=X.document||{head:{}},Z={u:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ee=e=>Promise.resolve(e),te=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],le=[],se=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&Z.u?re(ce):Z.raf(ce))},oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},ce=()=>{oe(ne),oe(le),(l=ne.length>0)&&Z.raf(ce)},re=e=>ee().then(e),ie=se(le,!0);export{a,A as b,f as c,s as d,x as f,R as g,r as h,ee as p,z as r}