@incodetech/core 0.0.0-dev-20261013-c7751a9f → 0.0.0-dev-20261013-c982cdcd

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 (165) hide show
  1. package/dist/{FaceDetectionProvider-XAuZT7P9.esm.js → FaceDetectionProvider-CGDd_ogY.esm.js} +9 -8
  2. package/dist/{IWasmUtilCapability-VC40Kx9N.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +23 -1
  3. package/dist/{MotionSensorProvider-MQ80-spU.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
  4. package/dist/{StreamCanvasCapture-CeBBJ_RC.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +1 -1
  5. package/dist/{safeStorage-DDAHV26l.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +87 -36
  6. package/dist/{addressSearch-CoXo7lfZ.esm.js → addressSearch-Bm8zTbQJ.esm.js} +3 -3
  7. package/dist/ae-signature.esm.js +1 -1
  8. package/dist/antifraud.esm.js +2 -2
  9. package/dist/{antifraudManager-nkA1Xfm1.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
  10. package/dist/{antifraudStateMachine-bbi6-rKP.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
  11. package/dist/{apiError-B9McXt0d.esm.js → apiError-B7lJaeTn.esm.js} +1 -1
  12. package/dist/authentication.d.ts +3 -3
  13. package/dist/authentication.esm.js +2 -2
  14. package/dist/{authenticationManager-BhZZQzwi.esm.js → authenticationManager-Bk74vxGj.esm.js} +6 -6
  15. package/dist/{authenticationManager-MVD0mrCo.d.ts → authenticationManager-CANv5-W5.d.ts} +1 -1
  16. package/dist/{authenticationStateMachine-PEbpCJ0-.esm.js → authenticationStateMachine-CSqcE4y3.esm.js} +5 -5
  17. package/dist/camera.esm.js +1 -1
  18. package/dist/certificate-issuance.esm.js +2 -2
  19. package/dist/{certificateIssuanceManager-B-qjOJde.esm.js → certificateIssuanceManager-CKJ4qjLc.esm.js} +3 -3
  20. package/dist/{certificateIssuanceStateMachine-DwLGw_a2.esm.js → certificateIssuanceStateMachine-yizSIonY.esm.js} +3 -3
  21. package/dist/consent.esm.js +2 -2
  22. package/dist/{consentManager-BhGljt6D.esm.js → consentManager-CjrxY737.esm.js} +3 -3
  23. package/dist/{consentStateMachine-fvRt5D6e.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
  24. package/dist/{createCameraCycleOwnership-BvOOxU85.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +2 -2
  25. package/dist/cross-document-data-match.esm.js +1 -1
  26. package/dist/{crossDocumentDataMatchManager-hxUaa6y_.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
  27. package/dist/curp-validation.esm.js +2 -2
  28. package/dist/{curpValidationManager-u6dRo9Bq.esm.js → curpValidationManager-DBNIn8BF.esm.js} +3 -3
  29. package/dist/{curpValidationStateMachine-Sf4rGn_0.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +3 -3
  30. package/dist/custom-fields.esm.js +1 -1
  31. package/dist/custom-watchlist.esm.js +2 -2
  32. package/dist/{customFieldsManager-C5Vw3fdd.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
  33. package/dist/{customWatchlistManager-szjmQvYu.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
  34. package/dist/{customWatchlistStateMachine-BtlZ6qoX.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
  35. package/dist/deepsightLoader-Bbannll8.esm.js +55 -0
  36. package/dist/{deepsightLoader-Cbrw8v4S.esm.js → deepsightService-cd1HQvBB.esm.js} +50 -55
  37. package/dist/document-capture.esm.js +2 -2
  38. package/dist/{documentCaptureManager-CV_bOPkN.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +3 -3
  39. package/dist/{documentCaptureStateMachine-CY4BH_nx.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +5 -5
  40. package/dist/dynamic-forms.esm.js +2 -2
  41. package/dist/{dynamicFormsManager-Bunapr8H.esm.js → dynamicFormsManager-DvzIRQGp.esm.js} +3 -3
  42. package/dist/{dynamicFormsStateMachine-Ba7NhLvL.esm.js → dynamicFormsStateMachine-BXq12SGh.esm.js} +4 -4
  43. package/dist/ekyb.esm.js +3 -3
  44. package/dist/{ekybManager-BXpy_3I6.esm.js → ekybManager-Bov25P3N.esm.js} +3 -3
  45. package/dist/{ekybStateMachine-DDyaxJ35.esm.js → ekybStateMachine-iwmM5mCm.esm.js} +5 -5
  46. package/dist/ekyc.esm.js +2 -2
  47. package/dist/{ekycManager-DsfBcNxs.esm.js → ekycManager-DZH51PnN.esm.js} +3 -3
  48. package/dist/{ekycStateMachine-DPMzZNhD.esm.js → ekycStateMachine-DnKlILfu.esm.js} +4 -4
  49. package/dist/electronic-signature.esm.js +1 -1
  50. package/dist/{electronicSignatureManager-DYJZjAtq.esm.js → electronicSignatureManager-DBhszLrG.esm.js} +5 -5
  51. package/dist/email.esm.js +2 -2
  52. package/dist/{emailManager-ppIDOf_n.esm.js → emailManager-CtlKRRaR.esm.js} +3 -3
  53. package/dist/{emailStateMachine-NiunNxhH.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
  54. package/dist/{endpoints-Bs3D8B_G.esm.js → endpoints-DHzlkQNe.esm.js} +1 -0
  55. package/dist/{events-CfLLkAh7.esm.js → events-CAgFE-k3.esm.js} +15 -3
  56. package/dist/events.d.ts +2 -1
  57. package/dist/events.esm.js +1 -1
  58. package/dist/extensibility.d.ts +9 -9
  59. package/dist/extensibility.esm.js +36 -36
  60. package/dist/face-match.esm.js +2 -2
  61. package/dist/{faceCaptureManagerFactory-BOWlD2lH.esm.js → faceCaptureManagerFactory-DWHQBeL2.esm.js} +15 -6
  62. package/dist/{faceCaptureManagerFactory-D-XSP04N.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +4 -4
  63. package/dist/{faceCaptureSetup-CeAyB-yC.esm.js → faceCaptureSetup-BBqAdrqm.esm.js} +11 -11
  64. package/dist/{faceMatchManager-BSR94HnV.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
  65. package/dist/{faceMatchStateMachine-BA9LVrWJ.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +3 -3
  66. package/dist/{feature-management-DYRVLOMy.esm.js → feature-management-DPIl-FtB.esm.js} +1 -1
  67. package/dist/feature-management.esm.js +1 -1
  68. package/dist/field-comparison.esm.js +1 -1
  69. package/dist/{fieldComparisonManager-B2y1ko1f.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +4 -4
  70. package/dist/fiscal-qr.esm.js +1 -1
  71. package/dist/{fiscalQrManager-gmU-xLHP.esm.js → fiscalQrManager-DmBkQfs0.esm.js} +5 -5
  72. package/dist/flow.d.ts +2 -2
  73. package/dist/flow.esm.js +6 -6
  74. package/dist/{flowCompletionService-xRc0i-x5.esm.js → flowCompletionService-BTxuv1Wb.esm.js} +2 -2
  75. package/dist/{flowServices-B8SKnzY5.esm.js → flowServices-pk---1Sx.esm.js} +5 -5
  76. package/dist/geolocation.esm.js +2 -2
  77. package/dist/{geolocationManager-DPPSB_oq.esm.js → geolocationManager-Ck6DsjTo.esm.js} +3 -3
  78. package/dist/{geolocationStateMachine-CcrrUnPD.esm.js → geolocationStateMachine-Ap2O_wgT.esm.js} +4 -4
  79. package/dist/government-validation.esm.js +2 -2
  80. package/dist/{governmentValidationManager-UuH2s-oi.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
  81. package/dist/{governmentValidationStateMachine-BvvrC_3A.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
  82. package/dist/home.esm.js +2 -2
  83. package/dist/id-ocr.esm.js +2 -2
  84. package/dist/id-selfie-flow.d.ts +1 -1
  85. package/dist/id-selfie-flow.esm.js +11 -11
  86. package/dist/id-verification.esm.js +2 -2
  87. package/dist/id.d.ts +2 -2
  88. package/dist/id.esm.js +3 -3
  89. package/dist/{idCaptureDefaults-CAKXwWww.esm.js → idCaptureDefaults-CQLveJd1.esm.js} +2 -2
  90. package/dist/{idCaptureManager-BXYldO77.d.ts → idCaptureManager-DW3eER4t.d.ts} +6 -3
  91. package/dist/{idCaptureManager-Bwpdlvxp.esm.js → idCaptureManager-TokRg0VQ.esm.js} +28 -20
  92. package/dist/{idCaptureServices-ssbb13iE.esm.js → idCaptureServices-BGhipfoM.esm.js} +8 -8
  93. package/dist/{idCaptureStateMachine-CL7qwlse.esm.js → idCaptureStateMachine-ByWuXQze.esm.js} +21 -21
  94. package/dist/{idOcrManager-124LjyWj.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
  95. package/dist/{idOcrStateMachine-Bd0-Hp9V.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
  96. package/dist/{idVerificationManager-BYVW3pLG.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
  97. package/dist/{idVerificationStateMachine-BtrFQSDe.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
  98. package/dist/identity-reuse.d.ts +1 -1
  99. package/dist/identity-reuse.esm.js +2 -2
  100. package/dist/{identityReuseManager-fu5okQhu.esm.js → identityReuseManager-BleUi6TK.esm.js} +3 -3
  101. package/dist/{identityReuseManager-BUNksfYU.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +8 -8
  102. package/dist/{identityReuseStateMachine-CCYWIgGl.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +3 -3
  103. package/dist/index.d.ts +1 -1
  104. package/dist/index.esm.js +1 -1
  105. package/dist/{invokeOnCaptureCallback-Brs1lo61.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
  106. package/dist/mandatory-consent.d.ts +1 -1
  107. package/dist/mandatory-consent.esm.js +2 -2
  108. package/dist/{mandatoryConsentManager-DDixKrq0.d.ts → mandatoryConsentManager-BkaLkcA2.d.ts} +4 -4
  109. package/dist/{mandatoryConsentManager-tCHVwjtG.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
  110. package/dist/{mandatoryConsentStateMachine-CZKXCn6v.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
  111. package/dist/{multipartRecordingService-CMjkhS2x.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
  112. package/dist/{permissionGuards-DGU1uh4i.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
  113. package/dist/{permissionServices-CPwDYRp8.esm.js → permissionServices-d2UW0r_L.esm.js} +2 -2
  114. package/dist/phone.esm.js +2 -2
  115. package/dist/{phoneManager-B6Uu_237.esm.js → phoneManager-BGBcpqsk.esm.js} +3 -3
  116. package/dist/{phoneStateMachine-pue0_Jsi.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +4 -4
  117. package/dist/qe-signature.esm.js +1 -1
  118. package/dist/redirect-to-mobile.esm.js +2 -2
  119. package/dist/{redirectToMobileManager-CQlyUyc8.esm.js → redirectToMobileManager-D8xpgVHn.esm.js} +4 -4
  120. package/dist/{redirectToMobileStateMachine-tGbjPhIm.esm.js → redirectToMobileStateMachine-DjKfrc4P.esm.js} +4 -4
  121. package/dist/{runChildModule-CQWc5KMf.esm.js → runChildModule-CpXjbJfG.esm.js} +4 -4
  122. package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
  123. package/dist/{sdkVersion-C6hcFArL.esm.js → sdkVersion-DvwSi-xM.esm.js} +1 -1
  124. package/dist/selfie.d.ts +4 -4
  125. package/dist/selfie.esm.js +12 -12
  126. package/dist/{selfieErrorUtils-LZLapGy6.esm.js → selfieErrorUtils-CQnuPhYb.esm.js} +1 -1
  127. package/dist/{selfieManager-CizvitYB.d.ts → selfieManager-1J0IEyFq.d.ts} +1 -1
  128. package/dist/{selfieManager-CG5VP1C-.esm.js → selfieManager-DCzPlJCU.esm.js} +6 -6
  129. package/dist/{selfieStateMachine-DsVxSp4B.esm.js → selfieStateMachine-IEKFw85T.esm.js} +5 -5
  130. package/dist/{session-BoAOTj24.esm.js → session-5KHEGxgB.esm.js} +4 -4
  131. package/dist/session.esm.js +4 -4
  132. package/dist/{sessionInitializer-Gjn-NrIE.esm.js → sessionInitializer-CiraPSTG.esm.js} +197 -7
  133. package/dist/{setup-CCsxCTuW.esm.js → setup-BJzlqOTL.esm.js} +176 -104
  134. package/dist/{setup-CDyTzfIx.d.ts → setup-oKDzNC62.d.ts} +6 -2
  135. package/dist/signature.esm.js +2 -2
  136. package/dist/{signatureManager-CEYKCuO4.esm.js → signatureManager-qqXyH93e.esm.js} +3 -3
  137. package/dist/{signatureStateMachine-C6Wh9ylX.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
  138. package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
  139. package/dist/{stats-Dz3XWA64.esm.js → stats-DmG_tkGk.esm.js} +1 -1
  140. package/dist/stats.esm.js +1 -1
  141. package/dist/{trueSightService-BLM6oloV.esm.js → trueSightService-Crpt3M-t.esm.js} +843 -843
  142. package/dist/trust-graph.esm.js +2 -2
  143. package/dist/{types-66IWBtU4.d.ts → types-C71Zo6vl.d.ts} +1 -1
  144. package/dist/{types-D0VzhBS7.d.ts → types-CwCWyBEi.d.ts} +2 -2
  145. package/dist/{types-nJoHpLPM.d.ts → types-zpO4fU6a.d.ts} +1 -1
  146. package/dist/video-selfie.d.ts +1 -1
  147. package/dist/video-selfie.esm.js +10 -10
  148. package/dist/{videoSelfieCameraWarmer-BctIPNfo.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js} +8 -8
  149. package/dist/{videoSelfieFlowModuleMachine-DQTlyw98.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
  150. package/dist/{videoSelfieStepDetector-D0Ws77pD.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +2 -2
  151. package/dist/wasm.d.ts +1 -1
  152. package/dist/wasm.esm.js +2 -2
  153. package/dist/{wasmDsFlagSync-BWpBwxxe.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
  154. package/dist/watchlist-for-business.esm.js +2 -2
  155. package/dist/watchlist.esm.js +2 -2
  156. package/dist/{watchlistForBusinessManager-cbMppk5K.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +3 -3
  157. package/dist/{watchlistForBusinessStateMachine-DsLzqEQG.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
  158. package/dist/{watchlistManager-F1bI2Ad4.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
  159. package/dist/{watchlistStateMachine-DU28IiMQ.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
  160. package/dist/workflow.d.ts +4 -4
  161. package/dist/workflow.esm.js +38 -38
  162. package/dist/{xstate-actors.esm-Ccyzgxj1.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
  163. package/dist/{xstate.esm-Bg3FuvIs.esm.js → xstate.esm-DSajW7CJ.esm.js} +9 -2
  164. package/package.json +1 -1
  165. package/dist/virtualCameraCheck-CW8mFdt9.esm.js +0 -48
@@ -1,15 +1,201 @@
1
- import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-BLM6oloV.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-DYRVLOMy.esm.js";
1
+ import { S as noteTokenActivated, _ as resetFeatureConfigCache, g as isFeatureEnabled, h as fetchFeatureConfig, l as trueSightLog, s as startTrueSightCollection, y as noteEnvironment } from "./trueSightService-Crpt3M-t.esm.js";
2
+ import { S as subscribeEvent, v as addEvent, y as getAnalyticsBatcher } from "./events-CAgFE-k3.esm.js";
3
3
  import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
- import { v as addEvent, y as getAnalyticsBatcher } from "./events-CfLLkAh7.esm.js";
5
- import { t as SDK_VERSION } from "./sdkVersion-C6hcFArL.esm.js";
6
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
7
- import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-Dz3XWA64.esm.js";
4
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
5
+ import { t as SDK_VERSION } from "./sdkVersion-DvwSi-xM.esm.js";
6
+ import { E as updateFeatureManagementUser } from "./feature-management-DPIl-FtB.esm.js";
7
+ import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-DmG_tkGk.esm.js";
8
8
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
9
9
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
10
10
  import { a as isIOS } from "./platform-DkcRc9JV.esm.js";
11
11
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
12
12
  import { i as linkSessionWithTRI, r as isTRIStarted } from "./tri-xzRLIIMN.esm.js";
13
+ //#region src/internal/fingerprint/fingerprintSignalsReporter.ts
14
+ const START_INTERVIEW_EVENT = "modelLoadEnd";
15
+ const CAPTURE_INTERVIEW_EVENT = "captureAttemptFinished";
16
+ const START_SIGNALS = ["pid", "device"];
17
+ function createFingerprintSignalsReporter(deps) {
18
+ let enabled = true;
19
+ let sessionActive = false;
20
+ let wasmReady = false;
21
+ let started = false;
22
+ let pendingStartSignals = START_SIGNALS;
23
+ let prefetchStarted = false;
24
+ let deviceDataUpdated = true;
25
+ let unsubscribe = null;
26
+ let optOutApplied = false;
27
+ let optInPending = false;
28
+ let queue = Promise.resolve();
29
+ let generation = 0;
30
+ function enqueue(work) {
31
+ const scheduledGeneration = generation;
32
+ queue = queue.then(async () => {
33
+ if (scheduledGeneration !== generation) return;
34
+ await work();
35
+ });
36
+ }
37
+ async function send(token, interviewEvent, type) {
38
+ const metadata = await (await deps.getWasmUtil()).getFingerprintSignals(type);
39
+ if (!metadata) return;
40
+ if (deps.getToken() !== token) return;
41
+ await deps.post(endpoints.deviceFingerprintSignals, {
42
+ interviewEvent,
43
+ metadata
44
+ }, { "X-Incode-Hardware-Id": token });
45
+ }
46
+ /**
47
+ * Sends `types` in order and stops at the first failure. Resolves to the
48
+ * types left unsent (empty when every send went through).
49
+ */
50
+ async function sendAll(token, interviewEvent, types) {
51
+ for (const [index, type] of types.entries()) try {
52
+ await send(token, interviewEvent, type);
53
+ } catch (error) {
54
+ deps.reportFailure({
55
+ message: error instanceof Error ? error.message : String(error),
56
+ signalsType: type,
57
+ interviewEvent
58
+ });
59
+ return types.slice(index);
60
+ }
61
+ return [];
62
+ }
63
+ /** Switches native behaviour collection (`sbc`); resolves to whether it worked. */
64
+ async function applyNativeCollection(on) {
65
+ try {
66
+ (await deps.getWasmUtil()).setBehaviourSignalsCollection(on);
67
+ return true;
68
+ } catch (error) {
69
+ deps.reportFailure({
70
+ message: error instanceof Error ? error.message : String(error),
71
+ signalsType: "behaviour",
72
+ interviewEvent: START_INTERVIEW_EVENT
73
+ });
74
+ return false;
75
+ }
76
+ }
77
+ async function applyNativeOptOut() {
78
+ if (optOutApplied || enabled) return;
79
+ optOutApplied = true;
80
+ if (!await applyNativeCollection(false)) optOutApplied = false;
81
+ }
82
+ async function applyNativeOptIn() {
83
+ if (!optInPending) return;
84
+ optInPending = false;
85
+ if (!await applyNativeCollection(true)) optInPending = true;
86
+ }
87
+ function startPrefetch() {
88
+ if (prefetchStarted) return;
89
+ prefetchStarted = true;
90
+ deps.getWasmUtil().then((wasmUtil) => wasmUtil.prefetchFingerprintSignals()).catch(() => void 0);
91
+ }
92
+ function tryStart() {
93
+ if (!wasmReady) return;
94
+ if (!enabled) {
95
+ enqueue(applyNativeOptOut);
96
+ return;
97
+ }
98
+ const token = deps.getToken();
99
+ if (!token) return;
100
+ startPrefetch();
101
+ if (optInPending) enqueue(applyNativeOptIn);
102
+ if (started || !sessionActive) return;
103
+ started = true;
104
+ ensureSubscribed();
105
+ const startGeneration = generation;
106
+ const allowRetry = (unsent) => {
107
+ if (startGeneration !== generation) return;
108
+ pendingStartSignals = unsent;
109
+ started = false;
110
+ };
111
+ enqueue(async () => {
112
+ if (!await applyNativeCollection(true)) {
113
+ allowRetry(pendingStartSignals);
114
+ return;
115
+ }
116
+ deviceDataUpdated = false;
117
+ const unsent = await sendAll(token, START_INTERVIEW_EVENT, pendingStartSignals);
118
+ if (unsent.length > 0) allowRetry(unsent);
119
+ });
120
+ }
121
+ function onCaptureAttemptFinished() {
122
+ wasmReady = true;
123
+ tryStart();
124
+ const token = deps.getToken();
125
+ if (!enabled || !started || !token) return;
126
+ enqueue(async () => {
127
+ const types = [];
128
+ if (deviceDataUpdated) {
129
+ deviceDataUpdated = false;
130
+ types.push("device");
131
+ }
132
+ types.push("behaviour");
133
+ await sendAll(token, CAPTURE_INTERVIEW_EVENT, types);
134
+ });
135
+ }
136
+ function ensureSubscribed() {
137
+ if (unsubscribe) return;
138
+ unsubscribe = deps.subscribe((event) => {
139
+ if (event.code === CAPTURE_INTERVIEW_EVENT) onCaptureAttemptFinished();
140
+ });
141
+ }
142
+ function resetSession() {
143
+ generation += 1;
144
+ sessionActive = false;
145
+ started = false;
146
+ pendingStartSignals = START_SIGNALS;
147
+ optInPending = false;
148
+ deviceDataUpdated = true;
149
+ }
150
+ return {
151
+ setEnabled(value) {
152
+ if (value === enabled) return;
153
+ enabled = value;
154
+ if (value) {
155
+ const wasOptedOut = optOutApplied;
156
+ optOutApplied = false;
157
+ optInPending = wasOptedOut && started;
158
+ } else optInPending = false;
159
+ tryStart();
160
+ },
161
+ onSessionActivated() {
162
+ sessionActive = true;
163
+ ensureSubscribed();
164
+ tryStart();
165
+ },
166
+ onWasmReady() {
167
+ wasmReady = true;
168
+ ensureSubscribed();
169
+ tryStart();
170
+ },
171
+ onTokenAvailable() {
172
+ tryStart();
173
+ },
174
+ onCameraInfoUpdated() {
175
+ deviceDataUpdated = true;
176
+ },
177
+ resetSession,
178
+ reset() {
179
+ resetSession();
180
+ wasmReady = false;
181
+ optOutApplied = false;
182
+ prefetchStarted = false;
183
+ unsubscribe?.();
184
+ unsubscribe = null;
185
+ }
186
+ };
187
+ }
188
+ const fingerprintSignalsReporter = createFingerprintSignalsReporter({
189
+ getWasmUtil: async () => {
190
+ const { WasmUtilProvider } = await import("./WasmUtilProvider-CIdnE7Fx.esm.js").then((n) => n.n);
191
+ return WasmUtilProvider.getInstance();
192
+ },
193
+ getToken: () => getToken(),
194
+ post: (url, body, headers) => api.post(url, body, { headers }),
195
+ subscribe: (listener) => subscribeEvent(listener),
196
+ reportFailure: ({ message, signalsType, interviewEvent }) => trueSightLog("warning", "wasm", "other", `fingerprint signals failed type=${signalsType} event=${interviewEvent} error=${message}`)
197
+ });
198
+ //#endregion
13
199
  //#region ../infra/src/providers/browser/BrowserEnvironmentProvider.ts
14
200
  var BrowserEnvironmentProvider = class {
15
201
  getScreenDimensions() {
@@ -548,6 +734,7 @@ function setClientHostingApp(hostingApp) {
548
734
  }
549
735
  function setClientFingerprintEnabled(enabled) {
550
736
  clientFingerprintEnabled = enabled;
737
+ fingerprintSignalsReporter.setEnabled(enabled);
551
738
  }
552
739
  function resolveDisableIpify(serverDisableIpify) {
553
740
  return !clientIpLookupEnabled || serverDisableIpify;
@@ -624,6 +811,7 @@ async function initializeSession(options = {}) {
624
811
  if (isTRIStarted()) triLinkPromise = linkSessionWithTRI(token);
625
812
  }
626
813
  if (token !== void 0) noteTokenActivated();
814
+ if (getToken()) fingerprintSignalsReporter.onTokenAvailable();
627
815
  const flowPreloadPromise = getToken() && preloadFlow === true ? preloadOptionalFlow() : Promise.resolve();
628
816
  await triLinkPromise;
629
817
  if (sessionInitialized && cachedFeatures) {
@@ -701,6 +889,7 @@ async function initializeSession(options = {}) {
701
889
  sessionInitialized = true;
702
890
  cachedFeatures = features;
703
891
  cachedDisableIpify = disableIpify;
892
+ fingerprintSignalsReporter.onSessionActivated();
704
893
  await flowPreloadPromise;
705
894
  return {
706
895
  features,
@@ -769,6 +958,7 @@ function getFingerprintEnabled() {
769
958
  * Useful for testing or when starting a new session.
770
959
  */
771
960
  function resetSessionInit() {
961
+ fingerprintSignalsReporter.resetSession();
772
962
  sessionInitialized = false;
773
963
  cachedFeatures = null;
774
964
  cachedDisableIpify = false;
@@ -781,4 +971,4 @@ function resetSessionInit() {
781
971
  resetDeviceStatsQueue();
782
972
  }
783
973
  //#endregion
784
- export { IpifyProvider as _, resetSessionInit as a, BrowserEnvironmentProvider as b, setClientIpLookupEnabled as c, registerFlowPreloader as d, resetStandaloneFlowPolicy as f, getFingerprint as g, isBrowserSimulation as h, initializeSession as i, whenSessionFingerprintSettled as l, setStandaloneFlowPolicy as m, getFingerprintEnabled as n, setClientFingerprintEnabled as o, resolveStandaloneFlowPolicy as p, getSessionFingerprintResult as r, setClientHostingApp as s, getDisableIpify as t, getStandaloneFlowPolicy as u, getThumbmarkId as v, getDeviceFingerprintInfo as y };
974
+ export { IpifyProvider as _, resetSessionInit as a, BrowserEnvironmentProvider as b, setClientIpLookupEnabled as c, registerFlowPreloader as d, resetStandaloneFlowPolicy as f, getFingerprint as g, isBrowserSimulation as h, initializeSession as i, whenSessionFingerprintSettled as l, setStandaloneFlowPolicy as m, getFingerprintEnabled as n, setClientFingerprintEnabled as o, resolveStandaloneFlowPolicy as p, getSessionFingerprintResult as r, setClientHostingApp as s, getDisableIpify as t, getStandaloneFlowPolicy as u, getThumbmarkId as v, fingerprintSignalsReporter as x, getDeviceFingerprintInfo as y };
@@ -1,106 +1,21 @@
1
1
  import { S as setWasmIntegrityObserver } from "./wasmWebClient-kbYZ2sxw.esm.js";
2
- import { D as resolveWasmConfig, S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, l as trueSightLog, o as resetTrueSight, t as finalizeTrueSight, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-BLM6oloV.esm.js";
2
+ import { D as resolveWasmConfig, d as getStoredHttpConfig, f as installFreshHttpClient, l as trueSightLog, m as upgradeToWasmHttpClient$1, o as resetTrueSight, p as resetHttpClientState, t as finalizeTrueSight } from "./trueSightService-Crpt3M-t.esm.js";
3
3
  import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-DMtbyb2l.esm.js";
4
- import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-DDAHV26l.esm.js";
5
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
6
- import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-DYRVLOMy.esm.js";
4
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
7
5
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
6
+ import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-CAgFE-k3.esm.js";
8
7
  import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
9
- import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-CfLLkAh7.esm.js";
10
- import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-Gjn-NrIE.esm.js";
11
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
12
- import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
8
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
9
+ import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp, x as fingerprintSignalsReporter } from "./sessionInitializer-CiraPSTG.esm.js";
10
+ import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
11
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
12
+ import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-DPIl-FtB.esm.js";
13
+ import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
13
14
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
14
- import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-B8SKnzY5.esm.js";
15
- //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
16
- var BrowserPageLifecycleProvider = class {
17
- sendBeacon(url, body, contentType = "application/json") {
18
- if (typeof navigator === "undefined" || typeof navigator.sendBeacon !== "function") return false;
19
- const blob = new Blob([body], { type: contentType });
20
- return navigator.sendBeacon(url, blob);
21
- }
22
- onPageHide(listener) {
23
- const onVisibilityChange = () => {
24
- if (document.visibilityState === "hidden") listener();
25
- };
26
- document.addEventListener("visibilitychange", onVisibilityChange);
27
- window.addEventListener("pagehide", listener);
28
- window.addEventListener("beforeunload", listener);
29
- return () => {
30
- document.removeEventListener("visibilitychange", onVisibilityChange);
31
- window.removeEventListener("pagehide", listener);
32
- window.removeEventListener("beforeunload", listener);
33
- };
34
- }
35
- };
36
- //#endregion
37
- //#region ../infra/src/providers/browser/BrowserStorageProvider.ts
38
- /**
39
- * Browser-based storage provider wrapping localStorage.
40
- * Handles JSON serialization/deserialization automatically.
41
- *
42
- * Degrades silently when the host makes localStorage unreachable: reads return
43
- * `null` and writes are no-ops. Deliberately quiet — hosts that harden against
44
- * self-XSS by deleting the global would otherwise see a warning on every call.
45
- */
46
- var BrowserStorageProvider = class {
47
- /**
48
- * Retrieves a value from localStorage.
49
- * @param key - The storage key
50
- * @returns The stored value, or null if not found or storage is unavailable
51
- * @throws Error if stored value is invalid JSON
52
- */
53
- async get(key) {
54
- const storage = resolveLocalStorage();
55
- if (!storage) return null;
56
- try {
57
- const item = storage.getItem(key);
58
- if (item === null) return null;
59
- return JSON.parse(item);
60
- } catch (error) {
61
- if (error instanceof SyntaxError) throw new Error(`Invalid JSON stored at key "${key}": ${error.message}`);
62
- throw error;
63
- }
64
- }
65
- /**
66
- * Stores a value in localStorage. No-op when storage is unavailable.
67
- * @param key - The storage key
68
- * @param value - The value to store (will be serialized as JSON)
69
- * @throws Error if value cannot be serialized or quota is exceeded
70
- */
71
- async set(key, value) {
72
- const storage = resolveLocalStorage();
73
- if (!storage) return;
74
- try {
75
- const serialized = JSON.stringify(value);
76
- storage.setItem(key, serialized);
77
- } catch (error) {
78
- if ((error instanceof DOMException || error.name === "QuotaExceededError") && error.name === "QuotaExceededError") throw new Error(`Storage quota exceeded for key "${key}"`);
79
- if (error instanceof TypeError) throw new Error(`Failed to serialize value for key "${key}": ${error.message}`);
80
- throw error;
81
- }
82
- }
83
- /**
84
- * Removes a value from localStorage. No-op when storage is unavailable.
85
- * @param key - The storage key to remove
86
- */
87
- async remove(key) {
88
- const storage = resolveLocalStorage();
89
- if (!storage) return;
90
- storage.removeItem(key);
91
- }
92
- /**
93
- * Clears all values from localStorage. No-op when storage is unavailable.
94
- */
95
- async clear() {
96
- const storage = resolveLocalStorage();
97
- if (!storage) return;
98
- storage.clear();
99
- }
100
- };
101
- //#endregion
15
+ import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-pk---1Sx.esm.js";
102
16
  //#region src/internal/events/AnalyticsBatchingService.ts
103
17
  const DEFAULT_MAX_BATCH_SIZE = 50;
18
+ const MAX_STATE_BATCH_SIZE = 50;
104
19
  const DEFAULT_MAX_BATCH_AGE_MS = 1e3;
105
20
  const DEFAULT_MAX_RETRIES = 2;
106
21
  const RETRY_BASE_DELAY_MS = 250;
@@ -110,6 +25,10 @@ function isTransientStatus(status) {
110
25
  function createAnalyticsBatchingService(options) {
111
26
  const { endpoint, authToken, pageLifecycle, timer, apiBaseUrl, apiClient = api, maxBatchSize = DEFAULT_MAX_BATCH_SIZE, maxBatchAgeMs = DEFAULT_MAX_BATCH_AGE_MS, maxRetries = DEFAULT_MAX_RETRIES } = options;
112
27
  let buffer = [];
28
+ let stateBuffer = [];
29
+ let stateToken = null;
30
+ let stateBatches = [];
31
+ let stateRequestInFlight = false;
113
32
  let started = false;
114
33
  let disposed = false;
115
34
  let ageTimerHandle = null;
@@ -164,16 +83,46 @@ function createAnalyticsBatchingService(options) {
164
83
  }
165
84
  sendBatch(batch, 0);
166
85
  }
167
- function handlePageHide() {
168
- if (disposed || buffer.length === 0) return;
169
- const batch = buffer;
170
- buffer = [];
171
- clearAgeTimer();
86
+ function syncStateToken() {
172
87
  const token = authToken();
173
- if (!token) {
174
- dropTokenless();
175
- return;
88
+ if (token !== stateToken) {
89
+ stateBuffer = [];
90
+ stateBatches = [];
91
+ stateToken = token;
176
92
  }
93
+ return token;
94
+ }
95
+ function sendNextStateBatch() {
96
+ if (disposed || !started || stateRequestInFlight || stateBatches.length === 0) return;
97
+ const token = syncStateToken();
98
+ const batch = stateBatches.shift();
99
+ if (!batch || !token) return;
100
+ stateRequestInFlight = true;
101
+ const onSettled = () => {
102
+ stateRequestInFlight = false;
103
+ sendNextStateBatch();
104
+ };
105
+ try {
106
+ apiClient.post(endpoint, batch.events, {
107
+ keepalive: true,
108
+ headers: { "X-Incode-Hardware-Id": batch.token }
109
+ }).then(onSettled, onSettled);
110
+ } catch {
111
+ Promise.resolve().then(onSettled);
112
+ }
113
+ }
114
+ function flushStateChanges() {
115
+ if (disposed) return;
116
+ const token = syncStateToken();
117
+ if (!token || stateBuffer.length === 0) return;
118
+ stateBatches.push({
119
+ events: stateBuffer,
120
+ token
121
+ });
122
+ stateBuffer = [];
123
+ sendNextStateBatch();
124
+ }
125
+ function sendBeacon(batch, token) {
177
126
  const url = `${apiBaseUrl().replace(/\/$/, "")}${endpoint}`;
178
127
  const body = JSON.stringify({
179
128
  token,
@@ -181,9 +130,37 @@ function createAnalyticsBatchingService(options) {
181
130
  });
182
131
  pageLifecycle.sendBeacon(url, body);
183
132
  }
133
+ function handlePageHide() {
134
+ if (disposed) return;
135
+ const token = syncStateToken();
136
+ const pendingStates = stateBatches;
137
+ stateBatches = [];
138
+ if (token && stateBuffer.length > 0) pendingStates.push({
139
+ events: stateBuffer,
140
+ token
141
+ });
142
+ stateBuffer = [];
143
+ for (const batch of pendingStates) sendBeacon(batch.events, batch.token);
144
+ if (buffer.length === 0) return;
145
+ const batch = buffer;
146
+ buffer = [];
147
+ clearAgeTimer();
148
+ if (!token) {
149
+ dropTokenless();
150
+ return;
151
+ }
152
+ sendBeacon(batch, token);
153
+ }
184
154
  function enqueue(entry) {
185
155
  if (disposed) return;
156
+ if (entry.code === "stateChanged") {
157
+ if (!syncStateToken()) return;
158
+ stateBuffer.push(entry);
159
+ if (stateBuffer.length === MAX_STATE_BATCH_SIZE) flushStateChanges();
160
+ return;
161
+ }
186
162
  buffer.push(entry);
163
+ if (entry.code === "captureAttemptFinished" || entry.code === "moduleClosed" || entry.code === "errorTriggered" || entry.code === "background") flushStateChanges();
187
164
  if (!started) return;
188
165
  if (buffer.length >= maxBatchSize) {
189
166
  flush();
@@ -196,6 +173,7 @@ function createAnalyticsBatchingService(options) {
196
173
  started = true;
197
174
  unsubscribeLifecycle = pageLifecycle.onPageHide(handlePageHide);
198
175
  if (buffer.length > 0) flush();
176
+ sendNextStateBatch();
199
177
  }
200
178
  function dispose() {
201
179
  if (disposed) return;
@@ -204,15 +182,106 @@ function createAnalyticsBatchingService(options) {
204
182
  unsubscribeLifecycle?.();
205
183
  unsubscribeLifecycle = null;
206
184
  buffer = [];
185
+ stateBuffer = [];
186
+ stateBatches = [];
187
+ stateToken = null;
207
188
  }
208
189
  return {
209
190
  enqueue,
210
191
  start,
211
192
  flush,
193
+ flushStateChanges,
212
194
  dispose
213
195
  };
214
196
  }
215
197
  //#endregion
198
+ //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
199
+ var BrowserPageLifecycleProvider = class {
200
+ sendBeacon(url, body, contentType = "application/json") {
201
+ if (typeof navigator === "undefined" || typeof navigator.sendBeacon !== "function") return false;
202
+ const blob = new Blob([body], { type: contentType });
203
+ return navigator.sendBeacon(url, blob);
204
+ }
205
+ onPageHide(listener) {
206
+ const onVisibilityChange = () => {
207
+ if (document.visibilityState === "hidden") listener();
208
+ };
209
+ document.addEventListener("visibilitychange", onVisibilityChange);
210
+ window.addEventListener("pagehide", listener);
211
+ window.addEventListener("beforeunload", listener);
212
+ return () => {
213
+ document.removeEventListener("visibilitychange", onVisibilityChange);
214
+ window.removeEventListener("pagehide", listener);
215
+ window.removeEventListener("beforeunload", listener);
216
+ };
217
+ }
218
+ };
219
+ //#endregion
220
+ //#region ../infra/src/providers/browser/BrowserStorageProvider.ts
221
+ /**
222
+ * Browser-based storage provider wrapping localStorage.
223
+ * Handles JSON serialization/deserialization automatically.
224
+ *
225
+ * Degrades silently when the host makes localStorage unreachable: reads return
226
+ * `null` and writes are no-ops. Deliberately quiet — hosts that harden against
227
+ * self-XSS by deleting the global would otherwise see a warning on every call.
228
+ */
229
+ var BrowserStorageProvider = class {
230
+ /**
231
+ * Retrieves a value from localStorage.
232
+ * @param key - The storage key
233
+ * @returns The stored value, or null if not found or storage is unavailable
234
+ * @throws Error if stored value is invalid JSON
235
+ */
236
+ async get(key) {
237
+ const storage = resolveLocalStorage();
238
+ if (!storage) return null;
239
+ try {
240
+ const item = storage.getItem(key);
241
+ if (item === null) return null;
242
+ return JSON.parse(item);
243
+ } catch (error) {
244
+ if (error instanceof SyntaxError) throw new Error(`Invalid JSON stored at key "${key}": ${error.message}`);
245
+ throw error;
246
+ }
247
+ }
248
+ /**
249
+ * Stores a value in localStorage. No-op when storage is unavailable.
250
+ * @param key - The storage key
251
+ * @param value - The value to store (will be serialized as JSON)
252
+ * @throws Error if value cannot be serialized or quota is exceeded
253
+ */
254
+ async set(key, value) {
255
+ const storage = resolveLocalStorage();
256
+ if (!storage) return;
257
+ try {
258
+ const serialized = JSON.stringify(value);
259
+ storage.setItem(key, serialized);
260
+ } catch (error) {
261
+ if ((error instanceof DOMException || error.name === "QuotaExceededError") && error.name === "QuotaExceededError") throw new Error(`Storage quota exceeded for key "${key}"`);
262
+ if (error instanceof TypeError) throw new Error(`Failed to serialize value for key "${key}": ${error.message}`);
263
+ throw error;
264
+ }
265
+ }
266
+ /**
267
+ * Removes a value from localStorage. No-op when storage is unavailable.
268
+ * @param key - The storage key to remove
269
+ */
270
+ async remove(key) {
271
+ const storage = resolveLocalStorage();
272
+ if (!storage) return;
273
+ storage.removeItem(key);
274
+ }
275
+ /**
276
+ * Clears all values from localStorage. No-op when storage is unavailable.
277
+ */
278
+ async clear() {
279
+ const storage = resolveLocalStorage();
280
+ if (!storage) return;
281
+ storage.clear();
282
+ }
283
+ };
284
+ //#endregion
216
285
  //#region ../infra/src/providers/browser/DevtoolsDetectorProvider.ts
217
286
  var DevtoolsDetectorProvider = class {
218
287
  constructor() {
@@ -587,6 +656,7 @@ async function setup(options) {
587
656
  ...effectiveWasm,
588
657
  pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
589
658
  });
659
+ fingerprintSignalsReporter.onWasmReady();
590
660
  if (!options.devMode) startDevtoolsDetector();
591
661
  }
592
662
  if (!getIsFeatureManagementLocked()) if (options.featureManagement === false) optOutFeatureManagement();
@@ -632,6 +702,7 @@ async function initializeWasmUtil(config) {
632
702
  ...resolved,
633
703
  pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
634
704
  });
705
+ fingerprintSignalsReporter.onWasmReady();
635
706
  await upgradeToWasmHttpClient$1(resolved);
636
707
  }
637
708
  /**
@@ -695,6 +766,7 @@ function reset() {
695
766
  resetDeviceStatsQueue();
696
767
  resetApi();
697
768
  resetSessionInit();
769
+ fingerprintSignalsReporter.reset();
698
770
  resetDashboardFlowCache();
699
771
  resetStandaloneFlowPolicy();
700
772
  setClientIpLookupEnabled(true);
@@ -186,8 +186,12 @@ type SetupOptions = {
186
186
  * collected during face capture (selfie/authentication/id/personhood) — the
187
187
  * descriptive device fields and `webglFingerprint` are unaffected.
188
188
  *
189
- * This option controls only the client-side JavaScript collection and
190
- * submission path. It does **not** suppress native fingerprint collection:
189
+ * It also stops the native fingerprint signals reporter
190
+ * (`POST /omni/add/device-fingerprint-signals`: PID/DEVICE at session start,
191
+ * BEHAVIOUR after each capture attempt) and switches native behaviour-signals
192
+ * collection off (`sbc(false)`) once WASM is ready.
193
+ *
194
+ * It does **not** suppress the rest of native fingerprint collection:
191
195
  * against the pinned `v2.14.50-post1` runtime, WASM starts collecting during
192
196
  * initialization regardless of this flag, and the full fingerprint bucket is
193
197
  * serialized into the metadata bundle.
@@ -1,3 +1,3 @@
1
- import { t as signatureMachine } from "./signatureStateMachine-C6Wh9ylX.esm.js";
2
- import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-CEYKCuO4.esm.js";
1
+ import { t as signatureMachine } from "./signatureStateMachine-BkRSrkKp.esm.js";
2
+ import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-qqXyH93e.esm.js";
3
3
  export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { t as signatureMachine } from "./signatureStateMachine-C6Wh9ylX.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { t as signatureMachine } from "./signatureStateMachine-BkRSrkKp.esm.js";
5
5
  //#region src/modules/signature/signatureActor.ts
6
6
  function createSignatureActor(options) {
7
7
  return createActor(signatureMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
3
- import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
2
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
+ import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  //#region src/modules/signature/signatureServices.ts
6
6
  /**
7
7
  * Uploads a signature image to the Omni API.
@@ -0,0 +1,19 @@
1
+ //#region src/internal/events/splitTrackedName.ts
2
+ /** Splits a Figma section/state path, keeping the full state name verbatim. */
3
+ function splitTrackedName(fullName) {
4
+ if (fullName === void 0) return {
5
+ screen: void 0,
6
+ state: void 0
7
+ };
8
+ const lastDot = fullName.lastIndexOf(".");
9
+ if (fullName.indexOf(".") === lastDot) return {
10
+ screen: fullName,
11
+ state: void 0
12
+ };
13
+ return {
14
+ screen: fullName.slice(0, lastDot),
15
+ state: fullName
16
+ };
17
+ }
18
+ //#endregion
19
+ export { splitTrackedName as t };
@@ -1,5 +1,5 @@
1
1
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
2
+ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
3
  //#region src/modules/stats/statsServices.ts
4
4
  const deviceStatsQueue = [];
5
5
  async function postDeviceStatsNow(stats) {