@incodetech/core 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4677d7f

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 (109) hide show
  1. package/dist/{BaseWasmProvider--AzPfwOm.esm.js → BaseWasmProvider-CQgeReKV.esm.js} +1 -785
  2. package/dist/MotionSensorProvider-BTDLt08l.esm.js +254 -0
  3. package/dist/StateMachine-8d441d6x.d.ts +2 -0
  4. package/dist/{WasmUtilProvider-BonqBWdj.esm.js → WasmUtilProvider-C45HStLj.esm.js} +1 -1
  5. package/dist/{addressSearch-DC5By0cC.esm.js → addressSearch-C5qzDvkN.esm.js} +15 -8
  6. package/dist/antifraud.d.ts +1 -1
  7. package/dist/antifraud.esm.js +3 -3
  8. package/dist/authentication.d.ts +11 -9
  9. package/dist/authentication.esm.js +18 -13
  10. package/dist/{authenticationManager-B4gSCgrO.esm.js → authenticationManager-CW4qxgcq.esm.js} +7 -6
  11. package/dist/{authenticationManager-Bd10YGSO.d.ts → authenticationManager-CiXsOTdM.d.ts} +2 -2
  12. package/dist/{backCameraStream-DF_d7hTz.esm.js → backCameraStream-CUo1USCT.esm.js} +2 -2
  13. package/dist/camera.d.ts +16 -0
  14. package/dist/camera.esm.js +5 -0
  15. package/dist/consent.d.ts +52 -52
  16. package/dist/consent.esm.js +3 -3
  17. package/dist/curp-validation.d.ts +5 -5
  18. package/dist/curp-validation.esm.js +3 -3
  19. package/dist/{deepsightLoader-DKgEdLIS.esm.js → deepsightLoader-Bs5jHgca.esm.js} +10 -7
  20. package/dist/deepsightService-C3gQ_9Ml.esm.js +493 -0
  21. package/dist/{deepsightService-Ciu0atv5.d.ts → deepsightService-CMAtxAC9.d.ts} +193 -197
  22. package/dist/device.d.ts +46 -0
  23. package/dist/device.esm.js +106 -0
  24. package/dist/document-capture.d.ts +78 -78
  25. package/dist/document-capture.esm.js +6 -6
  26. package/dist/document-upload.d.ts +53 -53
  27. package/dist/document-upload.esm.js +6 -6
  28. package/dist/ekyb.d.ts +3 -3
  29. package/dist/ekyb.esm.js +11 -10
  30. package/dist/ekyc.d.ts +3 -3
  31. package/dist/ekyc.esm.js +104 -22
  32. package/dist/email.d.ts +3 -3
  33. package/dist/email.esm.js +5 -5
  34. package/dist/{emailManager-CpAwvP3v.esm.js → emailManager-CZ2IGW0g.esm.js} +4 -4
  35. package/dist/{emailManager-BQPIJR_O.d.ts → emailManager-DEIxY7l6.d.ts} +2 -2
  36. package/dist/events-BlVGS-8F.esm.js +472 -0
  37. package/dist/events.d.ts +232 -0
  38. package/dist/events.esm.js +4 -0
  39. package/dist/extensibility.d.ts +15 -13
  40. package/dist/extensibility.esm.js +25 -20
  41. package/dist/face-match.d.ts +1 -1
  42. package/dist/face-match.esm.js +3 -3
  43. package/dist/{faceCaptureManagerFactory-CdwpYykv.d.ts → faceCaptureManagerFactory-CWj-nXdx.d.ts} +8 -6
  44. package/dist/{faceCaptureSetup-DbXgtcp7.esm.js → faceCaptureSetup-DIE5cftl.esm.js} +13 -10
  45. package/dist/flow.d.ts +7 -6
  46. package/dist/flow.esm.js +8 -8
  47. package/dist/{flowCompletionService-TnWijsSw.esm.js → flowCompletionService-N6-xypy-.esm.js} +2 -2
  48. package/dist/{flowServices-CO2sIR3D.esm.js → flowServices-xgqnJ64L.esm.js} +3 -3
  49. package/dist/geolocation.d.ts +2 -2
  50. package/dist/geolocation.esm.js +4 -4
  51. package/dist/getBrowser-B800KRAi.esm.js +41 -0
  52. package/dist/getDeviceClass-BKd2FOAf.esm.js +14 -0
  53. package/dist/government-validation.d.ts +2 -2
  54. package/dist/government-validation.esm.js +4 -4
  55. package/dist/http.d.ts +57 -0
  56. package/dist/http.esm.js +3 -0
  57. package/dist/id.d.ts +11 -10
  58. package/dist/id.esm.js +19 -15
  59. package/dist/{idCaptureManager-IdqsAASp.d.ts → idCaptureManager-H-rkXnbK.d.ts} +7 -6
  60. package/dist/{idCaptureManager-DaLU1ug7.esm.js → idCaptureManager-SHBRQ-X_.esm.js} +15 -11
  61. package/dist/index.d.ts +3 -611
  62. package/dist/index.esm.js +10 -562
  63. package/dist/{lib-i-4qLKdG.esm.js → lib-Cq5Wc-Hd.esm.js} +1 -1
  64. package/dist/mandatory-consent.d.ts +58 -58
  65. package/dist/mandatory-consent.esm.js +3 -3
  66. package/dist/permissionServices-CDqkkway.esm.js +50 -0
  67. package/dist/phone.d.ts +3 -3
  68. package/dist/phone.esm.js +5 -5
  69. package/dist/{phoneManager-DA8WUJtl.d.ts → phoneManager-Clfbrs6b.d.ts} +2 -2
  70. package/dist/{phoneManager-BAPHSXx8.esm.js → phoneManager-CscgaER2.esm.js} +4 -4
  71. package/dist/{StreamCanvasCapture-DkpkIgyL.esm.js → recordingsRepository-blYn-iKZ.esm.js} +157 -215
  72. package/dist/redirect-to-mobile.d.ts +2 -2
  73. package/dist/redirect-to-mobile.esm.js +4 -4
  74. package/dist/selfie.d.ts +11 -9
  75. package/dist/selfie.esm.js +18 -13
  76. package/dist/{selfieManager-BSkzncsa.esm.js → selfieManager-DeGqD5aN.esm.js} +5 -4
  77. package/dist/{selfieManager-Dft5wZQ_.d.ts → selfieManager-h_hhEefT.d.ts} +2 -2
  78. package/dist/{session-OglUYC9l.esm.js → session-PLjFj_T3.esm.js} +5 -19
  79. package/dist/session.d.ts +46 -2
  80. package/dist/session.esm.js +7 -4
  81. package/dist/setup-DJ3dFl5k.d.ts +120 -0
  82. package/dist/setup-fvDWE7f8.esm.js +450 -0
  83. package/dist/signature.d.ts +2 -2
  84. package/dist/signature.esm.js +3 -3
  85. package/dist/{stats-BVigf5Rn.esm.js → stats-BZ1kFW4p.esm.js} +1 -1
  86. package/dist/stats.esm.js +2 -2
  87. package/dist/{types-CiLyvJGb.d.ts → types-T0VjZW3T.d.ts} +1 -1
  88. package/dist/types-qhLxpptI.d.ts +5 -0
  89. package/dist/{types-D8Y1faI5.d.ts → types-zH5PDmSe.d.ts} +1 -1
  90. package/dist/{StateMachine-CM_aOfNL.d.ts → warmup-CEOVQKby.d.ts} +1 -4
  91. package/dist/wasm.d.ts +15 -0
  92. package/dist/wasm.esm.js +10 -0
  93. package/dist/{Manager-C6AGXEq_.esm.js → xstate.esm-BXrcOcSC.esm.js} +103 -507
  94. package/package.json +18 -2
  95. package/dist/endpoints-CI5-28jT.esm.js +0 -69
  96. package/dist/id-CzDAG_kM.esm.js +0 -0
  97. package/dist/index-BuVKc9bv.d.ts +0 -1
  98. /package/dist/{Actor-By8WNHi-.d.ts → Actor-C-jivmFF.d.ts} +0 -0
  99. /package/dist/{BrowserEnvironmentProvider-BECjyw3_.esm.js → BrowserEnvironmentProvider--xQUs3sg.esm.js} +0 -0
  100. /package/dist/{BrowserTimerProvider-CIqH6hJp.esm.js → BrowserTimerProvider-CkHEwJFa.esm.js} +0 -0
  101. /package/dist/{Manager-CCT_-HuZ.d.ts → Manager-BqFybBV-.d.ts} +0 -0
  102. /package/dist/{api-C2uzxrpN.esm.js → api-CyI8qTie.esm.js} +0 -0
  103. /package/dist/{browserSimulation-DYAk0Ipe.esm.js → browserSimulation-yzDdWSBf.esm.js} +0 -0
  104. /package/dist/{camera-6XJdOeBF.d.ts → camera-CKsQVNlH.d.ts} +0 -0
  105. /package/dist/{camera-DAuRUvnp.esm.js → camera-CsT06Zqy.esm.js} +0 -0
  106. /package/dist/{chunk-D6hkk-hd.esm.js → chunk-BcQWkoAq.esm.js} +0 -0
  107. /package/dist/{displayErrors-CGJwvrTl.d.ts → displayErrors-CjMXlBnu.d.ts} +0 -0
  108. /package/dist/{flowCompletionService-BOd4Rk8n.d.ts → flowCompletionService-BV6ThEJ1.d.ts} +0 -0
  109. /package/dist/{platform-DdhkonXk.esm.js → platform-Dcuv6w60.esm.js} +0 -0
@@ -0,0 +1,254 @@
1
+ //#region ../infra/src/providers/browser/MotionSensorProvider.ts
2
+ var MotionSensorProvider = class {
3
+ constructor(thresholds) {
4
+ this._isRunning = false;
5
+ this._hasPermission = true;
6
+ this.acl = null;
7
+ this.gyro = null;
8
+ this.minNumberOfFrames = 3;
9
+ this.maxFrequency = 60;
10
+ this.emptyParams = {
11
+ meanX: 0,
12
+ meanY: 0,
13
+ meanZ: 0,
14
+ m2X: 0,
15
+ m2Y: 0,
16
+ m2Z: 0,
17
+ cumulativeAbsErrorX: 0,
18
+ cumulativeAbsErrorY: 0,
19
+ cumulativeAbsErrorZ: 0,
20
+ ptsNum: 0
21
+ };
22
+ this.paramsAcc = { ...this.emptyParams };
23
+ this.paramsGyro = { ...this.emptyParams };
24
+ this.paramsAccGrOld = { ...this.emptyParams };
25
+ this.paramsAccOld = { ...this.emptyParams };
26
+ this.paramsGyroscopeOld = { ...this.emptyParams };
27
+ this.paramsOrientationOld = { ...this.emptyParams };
28
+ this.deviceMotionListener = (event) => {
29
+ if (event.accelerationIncludingGravity) {
30
+ const accGrVal = {
31
+ x: event.accelerationIncludingGravity.x,
32
+ y: event.accelerationIncludingGravity.y,
33
+ z: event.accelerationIncludingGravity.z
34
+ };
35
+ if (this.checkFields(accGrVal)) {
36
+ this.paramsAccGrOld.ptsNum += 1;
37
+ this.updateParams(this.paramsAccGrOld, accGrVal);
38
+ }
39
+ }
40
+ if (event.acceleration) {
41
+ const accVal = {
42
+ x: event.acceleration.x,
43
+ y: event.acceleration.y,
44
+ z: event.acceleration.z
45
+ };
46
+ if (this.checkFields(accVal)) {
47
+ this.paramsAccOld.ptsNum += 1;
48
+ this.updateParams(this.paramsAccOld, accVal);
49
+ }
50
+ }
51
+ if (event.rotationRate) {
52
+ const gyroVal = {
53
+ x: event.rotationRate.alpha,
54
+ y: event.rotationRate.beta,
55
+ z: event.rotationRate.gamma
56
+ };
57
+ if (this.checkFields(gyroVal)) {
58
+ this.paramsGyroscopeOld.ptsNum += 1;
59
+ this.updateParams(this.paramsGyroscopeOld, gyroVal);
60
+ }
61
+ }
62
+ };
63
+ this.deviceOrientationListener = (event) => {
64
+ const orientationVal = {
65
+ x: event.alpha,
66
+ y: event.beta,
67
+ z: event.gamma
68
+ };
69
+ if (this.checkFields(orientationVal)) {
70
+ this.paramsOrientationOld.ptsNum += 1;
71
+ this.updateParams(this.paramsOrientationOld, orientationVal);
72
+ }
73
+ };
74
+ this.thresholds = {
75
+ accThreshold: thresholds?.accThreshold ?? .3,
76
+ gyroThreshold: thresholds?.gyroThreshold ?? .3,
77
+ accGrOldThreshold: thresholds?.accGrOldThreshold ?? .3,
78
+ accOldThreshold: thresholds?.accOldThreshold ?? .3,
79
+ gyroscopeOldThreshold: thresholds?.gyroscopeOldThreshold ?? 10,
80
+ orientationOldThreshold: thresholds?.orientationOldThreshold ?? 10,
81
+ maeAccThreshold: thresholds?.maeAccThreshold ?? .3,
82
+ maeGyroThreshold: thresholds?.maeGyroThreshold ?? .3,
83
+ maeAccGrOldThreshold: thresholds?.maeAccGrOldThreshold ?? .3,
84
+ maeAccOldThreshold: thresholds?.maeAccOldThreshold ?? .3,
85
+ maeGyroscopeOldThreshold: thresholds?.maeGyroscopeOldThreshold ?? 10,
86
+ maeOrientationOldThreshold: thresholds?.maeOrientationOldThreshold ?? 10
87
+ };
88
+ }
89
+ get isRunning() {
90
+ return this._isRunning;
91
+ }
92
+ get hasPermission() {
93
+ return this._hasPermission;
94
+ }
95
+ async requestPermission() {
96
+ if (typeof DeviceMotionEvent !== "undefined" && typeof DeviceMotionEvent.requestPermission === "function") {
97
+ sessionStorage.setItem("motionSensorsPermissionsRequested", String(true));
98
+ try {
99
+ if (await DeviceMotionEvent.requestPermission() !== "granted") {
100
+ this._hasPermission = false;
101
+ return "denied";
102
+ }
103
+ return "granted";
104
+ } catch {
105
+ this._hasPermission = false;
106
+ return "denied";
107
+ }
108
+ }
109
+ return "not-required";
110
+ }
111
+ initializeAccelerometer() {
112
+ if (!("Accelerometer" in window)) return;
113
+ try {
114
+ const AccelerometerConstructor = window.Accelerometer;
115
+ if (AccelerometerConstructor) {
116
+ this.acl = new AccelerometerConstructor({ frequency: this.maxFrequency });
117
+ this.acl.addEventListener("reading", () => this.updateAcc());
118
+ }
119
+ } catch {}
120
+ }
121
+ initializeGyroscope() {
122
+ if (!("Gyroscope" in window)) return;
123
+ try {
124
+ const GyroscopeConstructor = window.Gyroscope;
125
+ if (GyroscopeConstructor) {
126
+ this.gyro = new GyroscopeConstructor({ frequency: this.maxFrequency });
127
+ this.gyro.addEventListener("reading", () => this.updateGyro());
128
+ }
129
+ } catch {}
130
+ }
131
+ async start() {
132
+ if (this._isRunning || !this._hasPermission) return;
133
+ try {
134
+ this.initializeAccelerometer();
135
+ if (this.acl) this.acl.start();
136
+ } catch {}
137
+ try {
138
+ this.initializeGyroscope();
139
+ if (this.gyro) this.gyro.start();
140
+ } catch {}
141
+ window.addEventListener("devicemotion", this.deviceMotionListener);
142
+ window.addEventListener("deviceorientation", this.deviceOrientationListener);
143
+ this._isRunning = true;
144
+ }
145
+ stop() {
146
+ this._isRunning = false;
147
+ if (this.acl) this.acl.stop();
148
+ if (this.gyro) this.gyro.stop();
149
+ window.removeEventListener("devicemotion", this.deviceMotionListener);
150
+ window.removeEventListener("deviceorientation", this.deviceOrientationListener);
151
+ this.paramsAcc = { ...this.emptyParams };
152
+ this.paramsGyro = { ...this.emptyParams };
153
+ this.paramsAccGrOld = { ...this.emptyParams };
154
+ this.paramsAccOld = { ...this.emptyParams };
155
+ this.paramsGyroscopeOld = { ...this.emptyParams };
156
+ this.paramsOrientationOld = { ...this.emptyParams };
157
+ }
158
+ updateAcc() {
159
+ if (!this._isRunning || !this.acl) return;
160
+ this.paramsAcc.ptsNum += 1;
161
+ const val = {
162
+ x: this.acl.x,
163
+ y: this.acl.y,
164
+ z: this.acl.z
165
+ };
166
+ if (this.checkFields(val)) this.updateParams(this.paramsAcc, val);
167
+ }
168
+ updateGyro() {
169
+ if (!this._isRunning || !this.gyro) return;
170
+ this.paramsGyro.ptsNum += 1;
171
+ const val = {
172
+ x: this.gyro.x,
173
+ y: this.gyro.y,
174
+ z: this.gyro.z
175
+ };
176
+ if (this.checkFields(val)) this.updateParams(this.paramsGyro, val);
177
+ }
178
+ check() {
179
+ if (!this._hasPermission) return "UNCLEAR";
180
+ const result = this.checkStability();
181
+ return result === null ? "UNCLEAR" : result ? "FAIL" : "PASS";
182
+ }
183
+ checkStability() {
184
+ if (!this._isRunning) return null;
185
+ const filteredStdChecks = [
186
+ this.gyro ? this.isBelowStdThreshold(this.paramsGyro, this.thresholds.gyroThreshold) : null,
187
+ this.acl ? this.isBelowStdThreshold(this.paramsAcc, this.thresholds.accThreshold) : null,
188
+ this.isBelowStdThreshold(this.paramsAccGrOld, this.thresholds.accGrOldThreshold),
189
+ this.isBelowStdThreshold(this.paramsAccOld, this.thresholds.accOldThreshold),
190
+ this.isBelowStdThreshold(this.paramsGyroscopeOld, this.thresholds.gyroscopeOldThreshold),
191
+ this.isBelowStdThreshold(this.paramsOrientationOld, this.thresholds.orientationOldThreshold)
192
+ ].filter((check) => check !== null);
193
+ const finalStdCheck = filteredStdChecks.length > 0 ? filteredStdChecks.every((check) => check) : null;
194
+ const filteredMaeChecks = [
195
+ this.gyro ? this.isBelowMaeThreshold(this.paramsGyro, this.thresholds.maeGyroThreshold) : null,
196
+ this.acl ? this.isBelowMaeThreshold(this.paramsAcc, this.thresholds.maeAccThreshold) : null,
197
+ this.isBelowMaeThreshold(this.paramsAccGrOld, this.thresholds.maeAccGrOldThreshold),
198
+ this.isBelowMaeThreshold(this.paramsAccOld, this.thresholds.maeAccOldThreshold),
199
+ this.isBelowMaeThreshold(this.paramsGyroscopeOld, this.thresholds.maeGyroscopeOldThreshold),
200
+ this.isBelowMaeThreshold(this.paramsOrientationOld, this.thresholds.maeOrientationOldThreshold)
201
+ ].filter((check) => check !== null);
202
+ const finalMaeCheck = filteredMaeChecks.length > 0 ? filteredMaeChecks.every((check) => check) : null;
203
+ return finalStdCheck === null ? finalMaeCheck === null ? null : finalMaeCheck : finalMaeCheck !== null ? finalStdCheck && finalMaeCheck : finalStdCheck;
204
+ }
205
+ updateParams(params, val) {
206
+ const deltaX = val.x - params.meanX;
207
+ const deltaY = val.y - params.meanY;
208
+ const deltaZ = val.z - params.meanZ;
209
+ params.meanX += deltaX / params.ptsNum;
210
+ params.meanY += deltaY / params.ptsNum;
211
+ params.meanZ += deltaZ / params.ptsNum;
212
+ params.m2X += deltaX * (val.x - params.meanX);
213
+ params.m2Y += deltaY * (val.y - params.meanY);
214
+ params.m2Z += deltaZ * (val.z - params.meanZ);
215
+ params.cumulativeAbsErrorX += Math.abs(val.x - params.meanX);
216
+ params.cumulativeAbsErrorY += Math.abs(val.y - params.meanY);
217
+ params.cumulativeAbsErrorZ += Math.abs(val.z - params.meanZ);
218
+ }
219
+ calculateStd(params) {
220
+ const variance = {
221
+ x: params.m2X / params.ptsNum,
222
+ y: params.m2Y / params.ptsNum,
223
+ z: params.m2Z / params.ptsNum
224
+ };
225
+ return {
226
+ x: Math.sqrt(variance.x),
227
+ y: Math.sqrt(variance.y),
228
+ z: Math.sqrt(variance.z)
229
+ };
230
+ }
231
+ calculateMae(params) {
232
+ return {
233
+ x: params.cumulativeAbsErrorX / params.ptsNum,
234
+ y: params.cumulativeAbsErrorY / params.ptsNum,
235
+ z: params.cumulativeAbsErrorZ / params.ptsNum
236
+ };
237
+ }
238
+ checkFields(point) {
239
+ return point.x !== null && point.y !== null && point.z !== null;
240
+ }
241
+ isBelowStdThreshold(params, threshold) {
242
+ if (params.ptsNum < this.minNumberOfFrames) return null;
243
+ const std = this.calculateStd(params);
244
+ return std.x < threshold && std.y < threshold && std.z < threshold;
245
+ }
246
+ isBelowMaeThreshold(params, threshold) {
247
+ if (params.ptsNum < this.minNumberOfFrames) return null;
248
+ const mae = this.calculateMae(params);
249
+ return mae.x < threshold && mae.y < threshold && mae.z < threshold;
250
+ }
251
+ };
252
+
253
+ //#endregion
254
+ export { MotionSensorProvider as t };
@@ -0,0 +1,2 @@
1
+ import { AnyStateMachine, StateMachine, fromPromise } from "xstate";
2
+ export { StateMachine as n, fromPromise as r, AnyStateMachine as t };
@@ -1,4 +1,4 @@
1
- import { l as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider--AzPfwOm.esm.js";
1
+ import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-CQgeReKV.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/wasm/WasmUtilProvider.ts
4
4
  var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { x as fromCallback } from "./Manager-C6AGXEq_.esm.js";
3
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
4
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints } from "./events-BlVGS-8F.esm.js";
3
+ import { r as fromCallback } from "./xstate.esm-BXrcOcSC.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CkHEwJFa.esm.js";
5
5
 
6
6
  //#region src/shared/usStates.ts
7
7
  const usStates = {
@@ -343,11 +343,13 @@ const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
343
343
  * Fills form values from an address autocomplete suggestion.
344
344
  * Shared between eKYC and eKYB address forms.
345
345
  */
346
- function fillFromSuggestion(values, touched, suggestion) {
346
+ function fillFromSuggestion(values, touched, suggestion, activeFields) {
347
347
  const newValues = { ...values };
348
348
  const newTouched = { ...touched };
349
- if (suggestion.street) {
350
- newValues.street = suggestion.street;
349
+ const hasHouseNoField = !activeFields || activeFields.has("houseNo");
350
+ const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
351
+ if (streetValue) {
352
+ newValues.street = streetValue;
351
353
  newTouched.street = true;
352
354
  }
353
355
  if (suggestion.city) {
@@ -362,7 +364,7 @@ function fillFromSuggestion(values, touched, suggestion) {
362
364
  newValues.postalCode = suggestion.postalCode;
363
365
  newTouched.postalCode = true;
364
366
  }
365
- if (suggestion.houseNumber) {
367
+ if (suggestion.houseNumber && hasHouseNoField) {
366
368
  newValues.houseNo = suggestion.houseNumber;
367
369
  newTouched.houseNo = true;
368
370
  }
@@ -371,6 +373,11 @@ function fillFromSuggestion(values, touched, suggestion) {
371
373
  touched: newTouched
372
374
  };
373
375
  }
376
+ function buildStreetValue(street, houseNumber, hasHouseNoField) {
377
+ if (hasHouseNoField) return street ?? "";
378
+ if (houseNumber && street) return `${houseNumber} ${street}`;
379
+ return houseNumber ?? street ?? "";
380
+ }
374
381
 
375
382
  //#endregion
376
383
  //#region src/shared/addressSearch.ts
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
1
+ import { t as Manager } from "./Manager-BqFybBV-.js";
2
2
 
3
3
  //#region src/modules/antifraud/antifraudManager.d.ts
4
4
  type AntifraudIdleState = {
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { C as createActor, S as fromPromise, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
3
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BlVGS-8F.esm.js";
3
+ import { a as createActor, i as fromPromise, o as createManager, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
4
4
 
5
5
  //#region src/modules/antifraud/antifraudServices.ts
6
6
  async function processAntifraud(signal) {
@@ -1,10 +1,12 @@
1
- import "./StateMachine-CM_aOfNL.js";
2
- import "./Actor-By8WNHi-.js";
3
- import "./deepsightService-Ciu0atv5.js";
4
- import "./camera-6XJdOeBF.js";
5
- import "./types-CiLyvJGb.js";
6
- import "./types-D8Y1faI5.js";
7
- import "./Manager-CCT_-HuZ.js";
8
- import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-CdwpYykv.js";
9
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Bd10YGSO.js";
1
+ import "./warmup-CEOVQKby.js";
2
+ import "./Manager-BqFybBV-.js";
3
+ import "./Actor-C-jivmFF.js";
4
+ import "./StateMachine-8d441d6x.js";
5
+ import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-CWj-nXdx.js";
6
+ import "./camera-CKsQVNlH.js";
7
+ import "./types-T0VjZW3T.js";
8
+ import "./types-zH5PDmSe.js";
9
+ import "./deepsightService-CMAtxAC9.js";
10
+ import "./types-qhLxpptI.js";
11
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CiXsOTdM.js";
10
12
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,15 +1,20 @@
1
- import "./platform-DdhkonXk.esm.js";
2
- import "./BaseWasmProvider--AzPfwOm.esm.js";
3
- import "./StreamCanvasCapture-DkpkIgyL.esm.js";
4
- import "./browserSimulation-DYAk0Ipe.esm.js";
5
- import "./api-C2uzxrpN.esm.js";
6
- import "./Manager-C6AGXEq_.esm.js";
7
- import "./endpoints-CI5-28jT.esm.js";
8
- import "./camera-DAuRUvnp.esm.js";
9
- import "./stats-BVigf5Rn.esm.js";
10
- import "./backCameraStream-DF_d7hTz.esm.js";
11
- import "./WasmUtilProvider-BonqBWdj.esm.js";
12
- import "./faceCaptureSetup-DbXgtcp7.esm.js";
13
- import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-B4gSCgrO.esm.js";
1
+ import "./BaseWasmProvider-CQgeReKV.esm.js";
2
+ import "./WasmUtilProvider-C45HStLj.esm.js";
3
+ import "./api-CyI8qTie.esm.js";
4
+ import "./events-BlVGS-8F.esm.js";
5
+ import "./browserSimulation-yzDdWSBf.esm.js";
6
+ import "./xstate.esm-BXrcOcSC.esm.js";
7
+ import "./faceCaptureSetup-DIE5cftl.esm.js";
8
+ import "./recordingsRepository-blYn-iKZ.esm.js";
9
+ import "./deepsightService-C3gQ_9Ml.esm.js";
10
+ import "./camera-CsT06Zqy.esm.js";
11
+ import "./getBrowser-B800KRAi.esm.js";
12
+ import "./stats-BZ1kFW4p.esm.js";
13
+ import "./MotionSensorProvider-BTDLt08l.esm.js";
14
+ import "./permissionServices-CDqkkway.esm.js";
15
+ import "./platform-Dcuv6w60.esm.js";
16
+ import "./backCameraStream-CUo1USCT.esm.js";
17
+ import "./getDeviceClass-BKd2FOAf.esm.js";
18
+ import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CW4qxgcq.esm.js";
14
19
 
15
20
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,10 @@
1
- import { f as BrowserStorageProvider, p as getDeviceClass } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
2
- import { t as api } from "./api-C2uzxrpN.esm.js";
3
- import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames } from "./Manager-C6AGXEq_.esm.js";
4
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
5
- import { t as WasmUtilProvider } from "./WasmUtilProvider-BonqBWdj.esm.js";
6
- import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-DbXgtcp7.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-C45HStLj.esm.js";
2
+ import { t as api } from "./api-CyI8qTie.esm.js";
3
+ import { _ as endpoints, n as eventModuleNames } from "./events-BlVGS-8F.esm.js";
4
+ import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-BXrcOcSC.esm.js";
5
+ import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-DIE5cftl.esm.js";
6
+ import { u as BrowserStorageProvider } from "./recordingsRepository-blYn-iKZ.esm.js";
7
+ import { t as getDeviceClass } from "./getDeviceClass-BKd2FOAf.esm.js";
7
8
 
8
9
  //#region src/modules/authentication/authenticationErrorUtils.ts
9
10
  const AUTH_ERROR_MAP = {
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
2
- import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CdwpYykv.js";
1
+ import { t as Manager } from "./Manager-BqFybBV-.js";
2
+ import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CWj-nXdx.js";
3
3
 
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
@@ -1,5 +1,5 @@
1
- import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-DdhkonXk.esm.js";
2
- import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-DAuRUvnp.esm.js";
1
+ import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-CsT06Zqy.esm.js";
2
+ import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-Dcuv6w60.esm.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/ITimerCapability.ts
5
5
  function sleep(ms) {
@@ -0,0 +1,16 @@
1
+ import { n as PermissionStatus, t as PermissionResult } from "./types-qhLxpptI.js";
2
+
3
+ //#region src/internal/permissions/permissionServices.d.ts
4
+
5
+ /**
6
+ * Checks the current camera permission state without prompting the user.
7
+ */
8
+ declare function checkPermission(): Promise<PermissionResult>;
9
+ /**
10
+ * Requests camera permission by attempting to access the camera, then immediately
11
+ * stops the obtained stream. Also requests motion sensor permission (required on iOS
12
+ * to be called during a user gesture). This function does not keep or return the stream.
13
+ */
14
+ declare function requestPermission(): Promise<PermissionResult>;
15
+ //#endregion
16
+ export { type PermissionResult, type PermissionStatus, checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -0,0 +1,5 @@
1
+ import "./camera-CsT06Zqy.esm.js";
2
+ import "./MotionSensorProvider-BTDLt08l.esm.js";
3
+ import { n as requestPermission, t as checkPermission } from "./permissionServices-CDqkkway.esm.js";
4
+
5
+ export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };