@jaak.ai/stamps 1.0.0 → 2.0.0-beta.2

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 (162) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +531 -457
  3. package/dist/cjs/index-DGM9-FNg.js +1402 -0
  4. package/dist/cjs/index-DGM9-FNg.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +3 -0
  6. package/dist/cjs/index.cjs.js.map +1 -0
  7. package/dist/cjs/jaak-stamps-webcomponent.cjs.js +27 -0
  8. package/dist/cjs/jaak-stamps-webcomponent.cjs.js.map +1 -0
  9. package/dist/cjs/jaak-stamps.cjs.entry.js +1060 -0
  10. package/dist/cjs/jaak-stamps.cjs.entry.js.map +1 -0
  11. package/dist/cjs/jaak-stamps.entry.cjs.js.map +1 -0
  12. package/dist/cjs/loader.cjs.js +8 -15
  13. package/dist/cjs/loader.cjs.js.map +1 -0
  14. package/dist/collection/collection-manifest.json +3 -22
  15. package/dist/collection/components/my-component/my-component.css +530 -0
  16. package/dist/collection/components/my-component/my-component.js +1357 -0
  17. package/dist/collection/components/my-component/my-component.js.map +1 -0
  18. package/dist/collection/index.js +2 -1
  19. package/dist/collection/index.js.map +1 -0
  20. package/dist/collection/utils/utils.js +4 -0
  21. package/dist/collection/utils/utils.js.map +1 -0
  22. package/dist/components/index.d.ts +33 -0
  23. package/dist/components/index.js +1195 -0
  24. package/dist/components/index.js.map +1 -0
  25. package/dist/components/jaak-stamps.d.ts +11 -0
  26. package/dist/components/jaak-stamps.js +1109 -0
  27. package/dist/components/jaak-stamps.js.map +1 -0
  28. package/dist/esm/index-DqoVMnc7.js +1393 -0
  29. package/dist/esm/index-DqoVMnc7.js.map +1 -0
  30. package/dist/esm/index.js +3 -0
  31. package/dist/esm/index.js.map +1 -0
  32. package/dist/esm/jaak-stamps-webcomponent.js +23 -0
  33. package/dist/esm/jaak-stamps-webcomponent.js.map +1 -0
  34. package/dist/esm/jaak-stamps.entry.js +1058 -0
  35. package/dist/esm/jaak-stamps.entry.js.map +1 -0
  36. package/dist/esm/loader.js +9 -14
  37. package/dist/esm/loader.js.map +1 -0
  38. package/dist/jaak-stamps-webcomponent/index.esm.js +2 -0
  39. package/dist/jaak-stamps-webcomponent/index.esm.js.map +1 -0
  40. package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +2 -0
  41. package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js.map +1 -0
  42. package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -0
  43. package/dist/jaak-stamps-webcomponent/loader.esm.js.map +1 -0
  44. package/dist/jaak-stamps-webcomponent/p-DqoVMnc7.js +3 -0
  45. package/dist/jaak-stamps-webcomponent/p-DqoVMnc7.js.map +1 -0
  46. package/dist/jaak-stamps-webcomponent/p-f1172b06.entry.js +2 -0
  47. package/dist/jaak-stamps-webcomponent/p-f1172b06.entry.js.map +1 -0
  48. package/dist/types/components/my-component/my-component.d.ts +131 -0
  49. package/dist/types/components.d.ts +62 -1370
  50. package/dist/types/index.d.ts +10 -1
  51. package/dist/types/stencil-public-runtime.d.ts +93 -28
  52. package/dist/types/utils/utils.d.ts +1 -0
  53. package/loader/cdn.js +1 -3
  54. package/loader/index.cjs.js +1 -3
  55. package/loader/index.d.ts +5 -2
  56. package/loader/index.es2017.js +1 -3
  57. package/loader/index.js +1 -3
  58. package/package.json +22 -26
  59. package/dist/cjs/document-detector_19.cjs.entry.js +0 -8630
  60. package/dist/cjs/index-5e4e5e7d.js +0 -1685
  61. package/dist/cjs/mb-tooltip.cjs.entry.js +0 -26
  62. package/dist/cjs/stamps.cjs.js +0 -23
  63. package/dist/collection/components/document-detector/document-detector.css +0 -156
  64. package/dist/collection/components/document-detector/document-detector.js +0 -504
  65. package/dist/collection/components/shared/mb-api-process-status/mb-api-process-status.css +0 -360
  66. package/dist/collection/components/shared/mb-api-process-status/mb-api-process-status.js +0 -124
  67. package/dist/collection/components/shared/mb-button/mb-button.css +0 -95
  68. package/dist/collection/components/shared/mb-button/mb-button.js +0 -201
  69. package/dist/collection/components/shared/mb-button-classic/mb-button-classic.css +0 -100
  70. package/dist/collection/components/shared/mb-button-classic/mb-button-classic.js +0 -130
  71. package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.css +0 -740
  72. package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.js +0 -827
  73. package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.utils.js +0 -55
  74. package/dist/collection/components/shared/mb-camera-selection/mb-camera-selection.css +0 -124
  75. package/dist/collection/components/shared/mb-camera-selection/mb-camera-selection.js +0 -194
  76. package/dist/collection/components/shared/mb-camera-toolbar/mb-camera-toolbar.css +0 -80
  77. package/dist/collection/components/shared/mb-camera-toolbar/mb-camera-toolbar.js +0 -275
  78. package/dist/collection/components/shared/mb-completed/mb-completed.css +0 -17
  79. package/dist/collection/components/shared/mb-completed/mb-completed.js +0 -48
  80. package/dist/collection/components/shared/mb-component/mb-component.css +0 -321
  81. package/dist/collection/components/shared/mb-component/mb-component.js +0 -2294
  82. package/dist/collection/components/shared/mb-component/mb-component.utils.js +0 -14
  83. package/dist/collection/components/shared/mb-container/mb-container.css +0 -7
  84. package/dist/collection/components/shared/mb-container/mb-container.js +0 -23
  85. package/dist/collection/components/shared/mb-feedback/mb-feedback.css +0 -36
  86. package/dist/collection/components/shared/mb-feedback/mb-feedback.js +0 -91
  87. package/dist/collection/components/shared/mb-feedback/mb-feedback.utils.js +0 -11
  88. package/dist/collection/components/shared/mb-help/mb-help.css +0 -191
  89. package/dist/collection/components/shared/mb-help/mb-help.js +0 -409
  90. package/dist/collection/components/shared/mb-help/mb-help.model.js +0 -5
  91. package/dist/collection/components/shared/mb-image-box/mb-image-box.css +0 -78
  92. package/dist/collection/components/shared/mb-image-box/mb-image-box.js +0 -150
  93. package/dist/collection/components/shared/mb-modal/mb-modal.css +0 -106
  94. package/dist/collection/components/shared/mb-modal/mb-modal.js +0 -239
  95. package/dist/collection/components/shared/mb-overlay/mb-overlay.css +0 -46
  96. package/dist/collection/components/shared/mb-overlay/mb-overlay.js +0 -76
  97. package/dist/collection/components/shared/mb-progress-tracker/mb-progress-tracker.css +0 -24
  98. package/dist/collection/components/shared/mb-progress-tracker/mb-progress-tracker.js +0 -80
  99. package/dist/collection/components/shared/mb-screen/mb-screen.css +0 -19
  100. package/dist/collection/components/shared/mb-screen/mb-screen.js +0 -48
  101. package/dist/collection/components/shared/mb-spinner/mb-spinner.css +0 -30
  102. package/dist/collection/components/shared/mb-spinner/mb-spinner.js +0 -67
  103. package/dist/collection/components/shared/mb-tooltip/mb-tooltip.css +0 -62
  104. package/dist/collection/components/shared/mb-tooltip/mb-tooltip.js +0 -150
  105. package/dist/collection/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.css +0 -91
  106. package/dist/collection/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.js +0 -96
  107. package/dist/collection/utils/data-structures.js +0 -189
  108. package/dist/collection/utils/device.helpers.js +0 -37
  109. package/dist/collection/utils/error-structures.js +0 -47
  110. package/dist/collection/utils/generic.helpers.js +0 -82
  111. package/dist/collection/utils/sdk.service.js +0 -943
  112. package/dist/collection/utils/state-lifter.js +0 -3
  113. package/dist/collection/utils/status.document-detector.js +0 -15
  114. package/dist/collection/utils/translation.service.js +0 -97
  115. package/dist/esm/document-detector_19.entry.js +0 -8608
  116. package/dist/esm/index-dc740acb.js +0 -1656
  117. package/dist/esm/mb-tooltip.entry.js +0 -22
  118. package/dist/esm/polyfills/core-js.js +0 -11
  119. package/dist/esm/polyfills/css-shim.js +0 -1
  120. package/dist/esm/polyfills/dom.js +0 -79
  121. package/dist/esm/polyfills/es5-html-element.js +0 -1
  122. package/dist/esm/polyfills/index.js +0 -34
  123. package/dist/esm/polyfills/system.js +0 -6
  124. package/dist/esm/stamps.js +0 -18
  125. package/dist/stamps/index.esm.js +0 -0
  126. package/dist/stamps/p-7f07a434.js +0 -2
  127. package/dist/stamps/p-ae1d9117.entry.js +0 -9
  128. package/dist/stamps/p-ec3f5972.entry.js +0 -1
  129. package/dist/stamps/stamps.esm.js +0 -1
  130. package/dist/types/components/document-detector/document-detector.d.ts +0 -103
  131. package/dist/types/components/shared/mb-api-process-status/mb-api-process-status.d.ts +0 -30
  132. package/dist/types/components/shared/mb-button/mb-button.d.ts +0 -41
  133. package/dist/types/components/shared/mb-button-classic/mb-button-classic.d.ts +0 -27
  134. package/dist/types/components/shared/mb-camera-experience/mb-camera-experience.d.ts +0 -141
  135. package/dist/types/components/shared/mb-camera-experience/mb-camera-experience.utils.d.ts +0 -3
  136. package/dist/types/components/shared/mb-camera-selection/mb-camera-selection.d.ts +0 -33
  137. package/dist/types/components/shared/mb-camera-toolbar/mb-camera-toolbar.d.ts +0 -54
  138. package/dist/types/components/shared/mb-completed/mb-completed.d.ts +0 -12
  139. package/dist/types/components/shared/mb-component/mb-component.d.ts +0 -310
  140. package/dist/types/components/shared/mb-component/mb-component.utils.d.ts +0 -3
  141. package/dist/types/components/shared/mb-container/mb-container.d.ts +0 -8
  142. package/dist/types/components/shared/mb-feedback/mb-feedback.d.ts +0 -19
  143. package/dist/types/components/shared/mb-feedback/mb-feedback.utils.d.ts +0 -2
  144. package/dist/types/components/shared/mb-help/mb-help.d.ts +0 -66
  145. package/dist/types/components/shared/mb-help/mb-help.model.d.ts +0 -9
  146. package/dist/types/components/shared/mb-image-box/mb-image-box.d.ts +0 -35
  147. package/dist/types/components/shared/mb-modal/mb-modal.d.ts +0 -53
  148. package/dist/types/components/shared/mb-overlay/mb-overlay.d.ts +0 -17
  149. package/dist/types/components/shared/mb-progress-tracker/mb-progress-tracker.d.ts +0 -19
  150. package/dist/types/components/shared/mb-screen/mb-screen.d.ts +0 -12
  151. package/dist/types/components/shared/mb-spinner/mb-spinner.d.ts +0 -16
  152. package/dist/types/components/shared/mb-tooltip/mb-tooltip.d.ts +0 -10
  153. package/dist/types/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.d.ts +0 -7
  154. package/dist/types/utils/data-structures.d.ts +0 -264
  155. package/dist/types/utils/device.helpers.d.ts +0 -7
  156. package/dist/types/utils/error-structures.d.ts +0 -44
  157. package/dist/types/utils/generic.helpers.d.ts +0 -21
  158. package/dist/types/utils/sdk.service.d.ts +0 -52
  159. package/dist/types/utils/state-lifter.d.ts +0 -3
  160. package/dist/types/utils/status.document-detector.d.ts +0 -14
  161. package/dist/types/utils/translation.service.d.ts +0 -77
  162. package/loader/package.json +0 -11
@@ -1,504 +0,0 @@
1
- import { Host, h, } from "@stencil/core";
2
- import { SdkService } from "../../utils/sdk.service";
3
- import { TranslationService } from "../../utils/translation.service";
4
- import * as GenericHelpers from "../../utils/generic.helpers";
5
- import * as DeviceHelpers from "../../utils/device.helpers";
6
- import { StatusDocumentDetector } from "../../utils/status.document-detector";
7
- export class DocumentDetector {
8
- constructor() {
9
- this.blocked = false;
10
- this.allowHelloMessage = false;
11
- this.engineLocation = "https://storage.googleapis.com/jaak-storage/models/web/document-detector/v2.0.0";
12
- this.workerLocation = "https://storage.googleapis.com/jaak-storage/models/web/document-detector/v2.0.0/BlinkIDWasmSDK.worker.min.js";
13
- this.wasmType = "ADVANCE";
14
- this.recognizers = ['BlinkIdMultiSideRecognizer'];
15
- this.recognitionPauseTimeout = 3800;
16
- this.cameraExperienceStateDurations = null;
17
- this.enableDrag = false;
18
- this.hideFeedback = true;
19
- this.hideLoadingAndErrorUi = false;
20
- this.scanFromCamera = true;
21
- this.scanFromImage = false;
22
- this.thoroughScanFromImage = false;
23
- this.galleryOverlayType = "INLINE";
24
- this.galleryDropType = "INLINE";
25
- this.showActionLabels = false;
26
- this.showModalWindows = false;
27
- this.showCameraFeedbackBarcodeMessage = false;
28
- this.cameraId = null;
29
- this.allowHelpScreensFab = false;
30
- this.allowHelpScreensOnboarding = false;
31
- this.allowHelpScreensOnboardingPerpetuity = false;
32
- this.helpScreensTooltipPauseTimeout = 15000;
33
- this.pingProxyUrl = null;
34
- this.fatalError = {
35
- emit: (data) => {
36
- this.status.emit(StatusDocumentDetector.ERROR);
37
- return undefined;
38
- }
39
- };
40
- this.ready = {
41
- emit: (data) => {
42
- this.status.emit(StatusDocumentDetector.RECORDING);
43
- return undefined;
44
- }
45
- };
46
- this.scanError = {
47
- emit: (data) => {
48
- this.status.emit(StatusDocumentDetector.ERROR);
49
- return undefined;
50
- }
51
- };
52
- this.scanSuccess = {
53
- emit: (data) => {
54
- this.results.emit(data?.data?.data);
55
- this.status.emit(StatusDocumentDetector.RESULTS_SUCCESS);
56
- return undefined;
57
- }
58
- };
59
- this.feedback = {
60
- emit: (data) => {
61
- return undefined;
62
- }
63
- };
64
- this.cameraScanStarted = {
65
- emit: () => {
66
- this.status.emit(StatusDocumentDetector.FRONT_SIDE_DETECTION);
67
- return undefined;
68
- }
69
- };
70
- this.imageScanStarted = {
71
- emit: () => {
72
- this.status.emit(StatusDocumentDetector.RUNNING);
73
- return undefined;
74
- }
75
- };
76
- this.scanAborted = {
77
- emit: () => {
78
- this.status.emit(StatusDocumentDetector.DETECTION_FAILED);
79
- return undefined;
80
- }
81
- };
82
- this.restart = false;
83
- this.licenseKey = undefined;
84
- this.blinkIdVariant = "lightweight";
85
- this.recognizerOptions = {
86
- BlinkIdMultiSideRecognizer: {
87
- returnEncodedFullDocumentImage: true,
88
- returnEncodedFaceImage: true,
89
- returnEncodedSignatureImage: true,
90
- fullDocumentImageExtensionFactors: {
91
- upFactor: 0.1,
92
- downFactor: 0.1,
93
- leftFactor: 0.1,
94
- rightFactor: 0.1
95
- },
96
- fullDocumentImageDpi: 300
97
- }
98
- };
99
- this.config = undefined;
100
- }
101
- configHandler(newConfig) {
102
- if (newConfig) {
103
- this.licenseKey = newConfig.key;
104
- this.blinkIdVariant = newConfig.dynamicMode ? (DeviceHelpers.isDesktop() ? "full" : "lightweight") : "lightweight";
105
- if (newConfig.strictMode === false) {
106
- this.recognizerOptions = {
107
- BlinkIdMultiSideRecognizer: {
108
- ...this.recognizerOptions.BlinkIdMultiSideRecognizer,
109
- enableBlurFilter: false,
110
- enableGlareFilter: false,
111
- blurStrictnessLevel: 2,
112
- glareStrictnessLevel: 2
113
- }
114
- };
115
- }
116
- else {
117
- this.recognizerOptions = {
118
- BlinkIdMultiSideRecognizer: {
119
- ...this.recognizerOptions.BlinkIdMultiSideRecognizer,
120
- enableBlurFilter: true,
121
- enableGlareFilter: true,
122
- blurStrictnessLevel: 1,
123
- glareStrictnessLevel: 1
124
- }
125
- };
126
- }
127
- this.init();
128
- }
129
- }
130
- async setUiState(state) {
131
- this.mbComponentEl.setUiState(state);
132
- }
133
- async startCameraScan() {
134
- this.status.emit(StatusDocumentDetector.INITIALIZING);
135
- this.mbComponentEl.startCameraScan();
136
- }
137
- async startImageScan(file) {
138
- this.mbComponentEl.startImageScan(file);
139
- }
140
- async startMultiSideImageScan(firstFile, secondFile) {
141
- this.mbComponentEl.startMultiSideImageScan(firstFile, secondFile);
142
- }
143
- async setUiMessage(state, message) {
144
- this.feedbackEl.show({ state, message });
145
- }
146
- async getProductIntegrationInfo() {
147
- return this.sdkService?.getProductIntegrationInfo();
148
- }
149
- async restartComponent() {
150
- this.sdkService?.delete();
151
- this.init();
152
- this.restart = true;
153
- setTimeout(() => {
154
- this.restart = false;
155
- setTimeout(() => {
156
- this.startCameraScan();
157
- }, 300);
158
- }, 100);
159
- }
160
- componentWillLoad() {
161
- if (this.config) {
162
- this.licenseKey = this.config.key;
163
- this.blinkIdVariant = this.config.dynamicMode ? (DeviceHelpers.isDesktop() ? "full" : "lightweight") : "lightweight";
164
- if (this.config.strictMode === false) {
165
- this.recognizerOptions = {
166
- BlinkIdMultiSideRecognizer: {
167
- ...this.recognizerOptions.BlinkIdMultiSideRecognizer,
168
- enableBlurFilter: false,
169
- enableGlareFilter: false,
170
- blurStrictnessLevel: 2,
171
- glareStrictnessLevel: 2
172
- }
173
- };
174
- }
175
- else {
176
- this.recognizerOptions = {
177
- BlinkIdMultiSideRecognizer: {
178
- ...this.recognizerOptions.BlinkIdMultiSideRecognizer,
179
- enableBlurFilter: true,
180
- enableGlareFilter: true,
181
- blurStrictnessLevel: 1,
182
- glareStrictnessLevel: 1
183
- }
184
- };
185
- }
186
- }
187
- this.init();
188
- }
189
- componentWillUpdate() {
190
- if (this.blocked) {
191
- return;
192
- }
193
- if (this.config && this.config.key) {
194
- this.licenseKey = this.config.key;
195
- }
196
- this.sdkService?.delete();
197
- this.init();
198
- }
199
- disconnectedCallback() {
200
- this.sdkService?.delete();
201
- }
202
- init() {
203
- const rawRecognizers = GenericHelpers.stringToArray(this.rawRecognizers);
204
- this.finalRecognizers = this.recognizers
205
- ? this.recognizers
206
- : rawRecognizers;
207
- const rawTranslations = GenericHelpers.stringToObject(this.rawTranslations);
208
- this.finalTranslations = this.translations
209
- ? this.translations
210
- : rawTranslations;
211
- const customTranslations = {};
212
- if (this.config && this.config.translation) {
213
- if (this.config.translation.front) {
214
- customTranslations["camera-feedback-scan-front"] = this.config.translation.front;
215
- }
216
- if (this.config.translation.back) {
217
- customTranslations["camera-feedback-scan-back"] = this.config.translation.back;
218
- }
219
- if (this.config.translation.changeSide) {
220
- customTranslations["camera-feedback-flip"] = this.config.translation.changeSide;
221
- }
222
- if (this.config.translation.adjustAngle) {
223
- customTranslations["camera-feedback-adjust-angle"] = this.config.translation.adjustAngle;
224
- }
225
- if (this.config.translation.cameraFeedbackBlur) {
226
- customTranslations["camera-feedback-blur"] = this.config.translation.cameraFeedbackBlur;
227
- }
228
- if (this.config.translation.cameraFeedbackFacePhotoCovered) {
229
- customTranslations["camera-feedback-face-photo-covered"] = this.config.translation.cameraFeedbackFacePhotoCovered;
230
- }
231
- if (this.config.translation.cameraFeedbackGlare) {
232
- customTranslations["camera-feedback-glare"] = this.config.translation.cameraFeedbackGlare;
233
- }
234
- if (this.config.translation.cameraFeedbackWrongSide) {
235
- customTranslations["camera-feedback-wrong-side"] = this.config.translation.cameraFeedbackWrongSide;
236
- }
237
- if (this.config.translation.moveCloser) {
238
- customTranslations["camera-feedback-move-closer"] = this.config.translation.moveCloser;
239
- }
240
- if (this.config.translation.moveFarther) {
241
- customTranslations["camera-feedback-move-farther"] = this.config.translation.moveFarther;
242
- }
243
- }
244
- // Merge custom translations with finalTranslations
245
- const mergedTranslations = {
246
- ...(this.finalTranslations || {}),
247
- ...customTranslations
248
- };
249
- this.translationService = new TranslationService(mergedTranslations);
250
- this.sdkService = new SdkService();
251
- }
252
- render() {
253
- return (h(Host, null, h("mb-container", null, !this.restart && (h("mb-component", { dir: this.hostEl.getAttribute("dir"), ref: (el) => (this.mbComponentEl = el), allowHelloMessage: this.allowHelloMessage, recognitionPauseTimeout: this.recognitionPauseTimeout, cameraExperienceStateDurations: this.cameraExperienceStateDurations, engineLocation: this.engineLocation, workerLocation: this.workerLocation, licenseKey: this.licenseKey, wasmType: this.wasmType, blinkIdVariant: this.blinkIdVariant, recognizers: this.finalRecognizers, recognizerOptions: this.recognizerOptions, recognitionTimeout: this.recognitionTimeout, enableDrag: this.enableDrag, hideLoadingAndErrorUi: this.hideLoadingAndErrorUi, scanFromCamera: this.scanFromCamera, scanFromImage: this.scanFromImage, thoroughScanFromImage: this.thoroughScanFromImage, galleryOverlayType: this.galleryOverlayType, galleryDropType: this.galleryDropType, showActionLabels: this.showActionLabels, showModalWindows: this.showModalWindows, showCameraFeedbackBarcodeMessage: this.showCameraFeedbackBarcodeMessage, iconCameraDefault: this.iconCameraDefault, iconCameraActive: this.iconCameraActive, iconGalleryDefault: this.iconGalleryDefault, iconGalleryActive: this.iconGalleryActive, iconInvalidFormat: this.iconInvalidFormat, iconSpinnerScreenLoading: this.iconSpinnerScreenLoading, iconSpinnerFromGalleryExperience: this.iconSpinnerFromGalleryExperience, iconGalleryScanningCompleted: this.iconGalleryScanningCompleted, sdkService: this.sdkService, translationService: this.translationService, cameraId: this.cameraId, allowHelpScreens: false, pingProxyUrl: this.pingProxyUrl, allowHelpScreensFab: this.allowHelpScreensFab, allowHelpScreensOnboarding: this.allowHelpScreensOnboarding, allowHelpScreensOnboardingPerpetuity: this.allowHelpScreensOnboardingPerpetuity, helpScreensTooltipPauseTimeout: this.helpScreensTooltipPauseTimeout, onBlock: (ev) => {
254
- this.blocked = ev.detail;
255
- }, onFeedback: (ev) => {
256
- this.feedbackEl.show(ev.detail);
257
- this.feedback.emit(ev.detail);
258
- }, onScanSuccess: (ev) => this.scanSuccess.emit(ev.detail), onReady: (ev) => this.ready.emit(ev.detail), onCameraScanStarted: (ev) => this.cameraScanStarted.emit(ev.detail), onImageScanStarted: (ev) => this.imageScanStarted.emit(ev.detail), onScanError: (ev) => this.scanError.emit(ev.detail), onScanAborted: (ev) => this.scanAborted.emit(ev.detail), onStatus: (ev) => this.status.emit(ev.detail) })), h("mb-feedback", { dir: this.hostEl.getAttribute("dir"), visible: !this.hideFeedback, ref: (el) => (this.feedbackEl = el) }))));
259
- }
260
- static get is() { return "document-detector"; }
261
- static get encapsulation() { return "shadow"; }
262
- static get originalStyleUrls() {
263
- return {
264
- "$": ["document-detector.scss"]
265
- };
266
- }
267
- static get styleUrls() {
268
- return {
269
- "$": ["document-detector.css"]
270
- };
271
- }
272
- static get properties() {
273
- return {
274
- "licenseKey": {
275
- "type": "string",
276
- "mutable": true,
277
- "complexType": {
278
- "original": "string",
279
- "resolved": "string",
280
- "references": {}
281
- },
282
- "required": false,
283
- "optional": false,
284
- "docs": {
285
- "tags": [],
286
- "text": ""
287
- },
288
- "attribute": "license-key",
289
- "reflect": false
290
- },
291
- "config": {
292
- "type": "unknown",
293
- "mutable": true,
294
- "complexType": {
295
- "original": "{\n key: string;\n dynamicMode: boolean;\n strictMode: boolean;\n translation: {\n front: string;\n back: string;\n changeSide: string;\n adjustAngle: string;\n cameraFeedbackBlur: string;\n cameraFeedbackFacePhotoCovered: string;\n cameraFeedbackGlare: string;\n cameraFeedbackWrongSide: string;\n moveCloser: string;\n moveFarther: string;\n }\n }",
296
- "resolved": "{ key: string; dynamicMode: boolean; strictMode: boolean; translation: { front: string; back: string; changeSide: string; adjustAngle: string; cameraFeedbackBlur: string; cameraFeedbackFacePhotoCovered: string; cameraFeedbackGlare: string; cameraFeedbackWrongSide: string; moveCloser: string; moveFarther: string; }; }",
297
- "references": {}
298
- },
299
- "required": false,
300
- "optional": false,
301
- "docs": {
302
- "tags": [],
303
- "text": ""
304
- }
305
- }
306
- };
307
- }
308
- static get states() {
309
- return {
310
- "restart": {},
311
- "blinkIdVariant": {},
312
- "recognizerOptions": {}
313
- };
314
- }
315
- static get events() {
316
- return [{
317
- "method": "results",
318
- "name": "results",
319
- "bubbles": true,
320
- "cancelable": true,
321
- "composed": true,
322
- "docs": {
323
- "tags": [],
324
- "text": ""
325
- },
326
- "complexType": {
327
- "original": "any",
328
- "resolved": "any",
329
- "references": {}
330
- }
331
- }, {
332
- "method": "status",
333
- "name": "status",
334
- "bubbles": true,
335
- "cancelable": true,
336
- "composed": true,
337
- "docs": {
338
- "tags": [],
339
- "text": ""
340
- },
341
- "complexType": {
342
- "original": "StatusDocumentDetector",
343
- "resolved": "StatusDocumentDetector.BACK_SIDE_DETECTION | StatusDocumentDetector.CHANGE_SIDE | StatusDocumentDetector.DETECTION_FAILED | StatusDocumentDetector.DOCUMENT_DETECTED | StatusDocumentDetector.DOCUMENT_NOT_FOUND | StatusDocumentDetector.ERROR | StatusDocumentDetector.FRONT_SIDE_DETECTION | StatusDocumentDetector.INITIALIZING | StatusDocumentDetector.RECORDING | StatusDocumentDetector.RESULTS_EMPTY | StatusDocumentDetector.RESULTS_SUCCESS | StatusDocumentDetector.RUNNING",
344
- "references": {
345
- "StatusDocumentDetector": {
346
- "location": "import",
347
- "path": "../../utils/status.document-detector"
348
- }
349
- }
350
- }
351
- }];
352
- }
353
- static get methods() {
354
- return {
355
- "setUiState": {
356
- "complexType": {
357
- "signature": "(state: \"ERROR\" | \"LOADING\" | \"NONE\" | \"SUCCESS\") => Promise<void>",
358
- "parameters": [{
359
- "tags": [],
360
- "text": ""
361
- }],
362
- "references": {
363
- "Promise": {
364
- "location": "global"
365
- }
366
- },
367
- "return": "Promise<void>"
368
- },
369
- "docs": {
370
- "text": "",
371
- "tags": []
372
- }
373
- },
374
- "startCameraScan": {
375
- "complexType": {
376
- "signature": "() => Promise<void>",
377
- "parameters": [],
378
- "references": {
379
- "Promise": {
380
- "location": "global"
381
- }
382
- },
383
- "return": "Promise<void>"
384
- },
385
- "docs": {
386
- "text": "",
387
- "tags": []
388
- }
389
- },
390
- "startImageScan": {
391
- "complexType": {
392
- "signature": "(file: File) => Promise<void>",
393
- "parameters": [{
394
- "tags": [],
395
- "text": ""
396
- }],
397
- "references": {
398
- "Promise": {
399
- "location": "global"
400
- },
401
- "File": {
402
- "location": "global"
403
- }
404
- },
405
- "return": "Promise<void>"
406
- },
407
- "docs": {
408
- "text": "",
409
- "tags": []
410
- }
411
- },
412
- "startMultiSideImageScan": {
413
- "complexType": {
414
- "signature": "(firstFile: File, secondFile: File) => Promise<void>",
415
- "parameters": [{
416
- "tags": [],
417
- "text": ""
418
- }, {
419
- "tags": [],
420
- "text": ""
421
- }],
422
- "references": {
423
- "Promise": {
424
- "location": "global"
425
- },
426
- "File": {
427
- "location": "global"
428
- }
429
- },
430
- "return": "Promise<void>"
431
- },
432
- "docs": {
433
- "text": "",
434
- "tags": []
435
- }
436
- },
437
- "setUiMessage": {
438
- "complexType": {
439
- "signature": "(state: \"FEEDBACK_ERROR\" | \"FEEDBACK_INFO\" | \"FEEDBACK_OK\", message: string) => Promise<void>",
440
- "parameters": [{
441
- "tags": [],
442
- "text": ""
443
- }, {
444
- "tags": [],
445
- "text": ""
446
- }],
447
- "references": {
448
- "Promise": {
449
- "location": "global"
450
- }
451
- },
452
- "return": "Promise<void>"
453
- },
454
- "docs": {
455
- "text": "",
456
- "tags": []
457
- }
458
- },
459
- "getProductIntegrationInfo": {
460
- "complexType": {
461
- "signature": "() => Promise<ProductIntegrationInfo>",
462
- "parameters": [],
463
- "references": {
464
- "Promise": {
465
- "location": "global"
466
- },
467
- "ProductIntegrationInfo": {
468
- "location": "import",
469
- "path": "../../utils/data-structures"
470
- }
471
- },
472
- "return": "Promise<ProductIntegrationInfo>"
473
- },
474
- "docs": {
475
- "text": "",
476
- "tags": []
477
- }
478
- },
479
- "restartComponent": {
480
- "complexType": {
481
- "signature": "() => Promise<void>",
482
- "parameters": [],
483
- "references": {
484
- "Promise": {
485
- "location": "global"
486
- }
487
- },
488
- "return": "Promise<void>"
489
- },
490
- "docs": {
491
- "text": "",
492
- "tags": []
493
- }
494
- }
495
- };
496
- }
497
- static get elementRef() { return "hostEl"; }
498
- static get watchers() {
499
- return [{
500
- "propName": "config",
501
- "methodName": "configHandler"
502
- }];
503
- }
504
- }