@incodetech/core 0.0.0-dev-20260610-8787196e → 0.0.0-dev-20260610-e5b4c4d5

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 (208) hide show
  1. package/dist/{OpenViduRecordingProvider-BtAVDH2Y.esm.js → OpenViduRecordingProvider-O4GjBseO.esm.js} +1 -1
  2. package/dist/StreamCanvasCapture-ImiDQdVA.esm.js +118 -0
  3. package/dist/StreamCanvasCapture-yyl20qd9.d.ts +152 -0
  4. package/dist/{addressSearch-DPmseXCM.esm.js → addressSearch-rHF9QriL.esm.js} +4 -4
  5. package/dist/{ae-signature-lqjX_h2U.esm.js → ae-signature-CQjOxLrv.esm.js} +1 -1
  6. package/dist/ae-signature.d.ts +3 -3
  7. package/dist/ae-signature.esm.js +7 -7
  8. package/dist/antifraud.d.ts +3 -3
  9. package/dist/antifraud.esm.js +6 -6
  10. package/dist/{antifraudManager-DaUfoGLZ.esm.js → antifraudManager-CZDCQli0.esm.js} +3 -3
  11. package/dist/{antifraudManager-Bbgl_P0Y.d.ts → antifraudManager-CznnhyvD.d.ts} +2 -2
  12. package/dist/{antifraudStateMachine-DmhL7cti.esm.js → antifraudStateMachine-Bp7yS1LV.esm.js} +3 -3
  13. package/dist/authentication.d.ts +13 -12
  14. package/dist/authentication.esm.js +27 -25
  15. package/dist/{authenticationManager-DIN4eL_6.esm.js → authenticationManager-C3-IUymg.esm.js} +6 -6
  16. package/dist/{authenticationManager-ozJVUfiA.d.ts → authenticationManager-CIVY80H9.d.ts} +2 -2
  17. package/dist/{authenticationStateMachine-DzrcG7XX.esm.js → authenticationStateMachine-3HbNfPoL.esm.js} +8 -8
  18. package/dist/{backCameraStream-BtCwSIuT.esm.js → backCameraStream-D7Wo4Nbx.esm.js} +3 -3
  19. package/dist/{browserSimulation-CHpyEI-W.esm.js → browserSimulation-B1dWiXp7.esm.js} +2 -2
  20. package/dist/camera.d.ts +1 -1
  21. package/dist/camera.esm.js +4 -4
  22. package/dist/canvas-SKcRBxsk.esm.js +230 -0
  23. package/dist/consent.d.ts +3 -3
  24. package/dist/consent.esm.js +6 -6
  25. package/dist/{consentManager-CHV12fjQ.d.ts → consentManager-66SjOJ7U.d.ts} +52 -52
  26. package/dist/{consentManager-D0NGejCx.esm.js → consentManager-DOufCKTj.esm.js} +3 -3
  27. package/dist/{consentStateMachine-CUOuuC7d.esm.js → consentStateMachine-CUVp1kKY.esm.js} +3 -3
  28. package/dist/cpf-ocr.d.ts +3 -3
  29. package/dist/cpf-ocr.esm.js +6 -6
  30. package/dist/{cpfOcrManager-9ciXe_XT.esm.js → cpfOcrManager-Bm5OlZSa.esm.js} +5 -5
  31. package/dist/{cpfOcrManager-BR_dJaKV.d.ts → cpfOcrManager-DVSJov4W.d.ts} +22 -22
  32. package/dist/cross-document-data-match.d.ts +1 -1
  33. package/dist/cross-document-data-match.esm.js +5 -5
  34. package/dist/curp-validation.d.ts +7 -7
  35. package/dist/curp-validation.esm.js +6 -6
  36. package/dist/{curpValidationManager-BJDxY7JH.esm.js → curpValidationManager-CMXS-tjU.esm.js} +3 -3
  37. package/dist/{curpValidationManager-VE0Ndj36.d.ts → curpValidationManager-DIFa6O03.d.ts} +3 -3
  38. package/dist/{curpValidationStateMachine-BBUREbWY.esm.js → curpValidationStateMachine-CD-npCgV.esm.js} +3 -3
  39. package/dist/custom-fields.d.ts +2 -2
  40. package/dist/custom-fields.esm.js +5 -5
  41. package/dist/custom-watchlist.d.ts +1 -1
  42. package/dist/custom-watchlist.esm.js +5 -5
  43. package/dist/{customWatchlistStateMachine-qfxMGhCV.esm.js → customWatchlistStateMachine-CF4ETN-z.esm.js} +3 -3
  44. package/dist/{deepsightLoader-OlmqoVtS.esm.js → deepsightLoader-CTf5NdIB.esm.js} +13 -12
  45. package/dist/{deepsightService-CeXd7dhh.d.ts → deepsightService-B7ShOkWL.d.ts} +2 -152
  46. package/dist/{deepsightService-Dh9EiWze.esm.js → deepsightService-Da56SkD4.esm.js} +8 -236
  47. package/dist/device.esm.js +4 -4
  48. package/dist/document-capture.d.ts +235 -235
  49. package/dist/document-capture.esm.js +13 -13
  50. package/dist/document-upload.d.ts +53 -53
  51. package/dist/document-upload.esm.js +8 -8
  52. package/dist/{documentCaptureStateMachine-JqM4pyfY.esm.js → documentCaptureStateMachine-CV1dzgbn.esm.js} +7 -7
  53. package/dist/dynamic-forms.d.ts +2 -2
  54. package/dist/dynamic-forms.esm.js +5 -5
  55. package/dist/ekyb.d.ts +6 -6
  56. package/dist/ekyb.esm.js +16 -16
  57. package/dist/{ekybStateMachine-C0DLJplY.esm.js → ekybStateMachine-DWm7C2qW.esm.js} +5 -5
  58. package/dist/ekyc.d.ts +3 -3
  59. package/dist/ekyc.esm.js +8 -8
  60. package/dist/{ekycStateMachine-B5brX021.esm.js → ekycStateMachine-CRiViUGB.esm.js} +5 -5
  61. package/dist/electronic-signature.d.ts +3 -3
  62. package/dist/electronic-signature.esm.js +6 -6
  63. package/dist/{electronicSignatureManager-BY6tiZPR.esm.js → electronicSignatureManager-DECEJ9hm.esm.js} +5 -5
  64. package/dist/email.d.ts +4 -4
  65. package/dist/email.esm.js +8 -8
  66. package/dist/{emailManager-DRUHedQg.esm.js → emailManager-DAIwweQa.esm.js} +4 -4
  67. package/dist/{emailManager-VP0mIGdj.d.ts → emailManager-lAzDoQOs.d.ts} +3 -3
  68. package/dist/{emailStateMachine-CZgKn7a1.esm.js → emailStateMachine-C-ltLrvi.esm.js} +5 -5
  69. package/dist/{endpoints-BPHddOTi.esm.js → endpoints-zEf_JIJU.esm.js} +2 -1
  70. package/dist/{events-Bsw1l0pH.esm.js → events-Dvvriq9l.esm.js} +3 -2
  71. package/dist/events.d.ts +1 -0
  72. package/dist/events.esm.js +2 -2
  73. package/dist/extensibility.d.ts +26 -25
  74. package/dist/extensibility.esm.js +56 -54
  75. package/dist/face-match.d.ts +1 -1
  76. package/dist/face-match.esm.js +5 -5
  77. package/dist/{faceCaptureManagerFactory-BTsmDJ06.d.ts → faceCaptureManagerFactory-C_hRHx8a.d.ts} +9 -8
  78. package/dist/{faceCaptureManagerFactory-DKE4-MLG.esm.js → faceCaptureManagerFactory-kqbUqtrr.esm.js} +4 -4
  79. package/dist/{faceCaptureSetup-0XUJwf3G.esm.js → faceCaptureSetup-CoZCFG0w.esm.js} +7 -6
  80. package/dist/{faceMatchStateMachine-i3qgZ176.esm.js → faceMatchStateMachine-CN81-J0s.esm.js} +3 -3
  81. package/dist/field-comparison.d.ts +3 -3
  82. package/dist/field-comparison.esm.js +5 -5
  83. package/dist/{fieldComparisonManager-Bfb3-iwn.esm.js → fieldComparisonManager-Bnuq1mA0.esm.js} +4 -4
  84. package/dist/{fieldComparisonManager-DAP7RbND.d.ts → fieldComparisonManager-Bu5TaSr3.d.ts} +2 -2
  85. package/dist/fiscal-qr.d.ts +59 -0
  86. package/dist/fiscal-qr.esm.js +323 -0
  87. package/dist/flow-events.d.ts +6 -6
  88. package/dist/flow.d.ts +12 -12
  89. package/dist/flow.esm.js +16 -16
  90. package/dist/{flowCompletionService-DFV8vmO3.esm.js → flowCompletionService-DHpnjBvp.esm.js} +3 -3
  91. package/dist/{flowServices-DhaF-fP3.esm.js → flowServices-BykryjdA.esm.js} +4 -4
  92. package/dist/geolocation.d.ts +2 -2
  93. package/dist/geolocation.esm.js +6 -6
  94. package/dist/{geolocationStateMachine-DCG_hQkW.esm.js → geolocationStateMachine-D6yBlOQ_.esm.js} +4 -4
  95. package/dist/{getDeviceClass-cJ-TvND7.esm.js → getDeviceClass-C8Do2qYu.esm.js} +1 -1
  96. package/dist/government-validation.d.ts +3 -3
  97. package/dist/government-validation.esm.js +7 -7
  98. package/dist/{governmentValidationStateMachine-KY_Eu5b-.esm.js → governmentValidationStateMachine-M-iiovMY.esm.js} +5 -5
  99. package/dist/home.d.ts +15 -15
  100. package/dist/home.esm.js +3 -3
  101. package/dist/http-Cai3IoLS.esm.js +0 -0
  102. package/dist/http.esm.js +2 -1
  103. package/dist/id-ocr.d.ts +54 -54
  104. package/dist/id-ocr.esm.js +6 -6
  105. package/dist/id-verification.d.ts +27 -27
  106. package/dist/id-verification.esm.js +5 -5
  107. package/dist/id.d.ts +12 -11
  108. package/dist/id.esm.js +31 -29
  109. package/dist/{idCaptureManager-BXkPnZIc.d.ts → idCaptureManager-D-QYESvF.d.ts} +8 -7
  110. package/dist/{idCaptureManager-CWG0Qgeq.esm.js → idCaptureManager-mQGmxqf1.esm.js} +5 -5
  111. package/dist/{idCaptureStateMachine-Dqfxbea3.esm.js → idCaptureStateMachine-DXeLlQa_.esm.js} +19 -18
  112. package/dist/{idOcrStateMachine-DVjkIw10.esm.js → idOcrStateMachine-Cj2uN_q_.esm.js} +5 -5
  113. package/dist/{idVerificationStateMachine-B_F3G-v-.esm.js → idVerificationStateMachine-DVrl68dQ.esm.js} +3 -3
  114. package/dist/identity-reuse.d.ts +3 -3
  115. package/dist/identity-reuse.esm.js +6 -6
  116. package/dist/{identityReuseManager-CNcsh-xr.esm.js → identityReuseManager-DHYlQW3K.esm.js} +3 -3
  117. package/dist/{identityReuseManager-DVZLgcfm.d.ts → identityReuseManager-DYb7I3jf.d.ts} +36 -36
  118. package/dist/{identityReuseStateMachine-BrbaZto8.esm.js → identityReuseStateMachine-Dyfa7yzx.esm.js} +3 -3
  119. package/dist/{index-B1ijI7RD.d.ts → index-B2RUw1Th.d.ts} +169 -169
  120. package/dist/{index-C3KOkxmU.d.ts → index-B5hPA0Bg.d.ts} +2 -2
  121. package/dist/index.d.ts +2 -2
  122. package/dist/index.esm.js +12 -12
  123. package/dist/{invokeOnCaptureCallback-Bty7q0sC.esm.js → invokeOnCaptureCallback-ygByVdnn.esm.js} +1 -1
  124. package/dist/{lib-DmGBvFHu.esm.js → lib-BY67lgbq.esm.js} +1 -1
  125. package/dist/mandatory-consent.d.ts +7 -7
  126. package/dist/mandatory-consent.esm.js +6 -6
  127. package/dist/{mandatoryConsentManager-BUpEBczR.esm.js → mandatoryConsentManager-BTqe3YNU.esm.js} +3 -3
  128. package/dist/{mandatoryConsentManager-DwmDNt6y.d.ts → mandatoryConsentManager-DBc5NyKN.d.ts} +55 -55
  129. package/dist/{mandatoryConsentStateMachine-B6hfQFw1.esm.js → mandatoryConsentStateMachine-4yzCCY4e.esm.js} +3 -3
  130. package/dist/openviduLazy-B8L--0oe.esm.js +3 -0
  131. package/dist/{openviduLazy-6AQum7Ca.esm.js → openviduLazy-Dh14JNJc.esm.js} +2 -2
  132. package/dist/{permissionGuards-DUKOJ-Mt.esm.js → permissionGuards-C1ispV96.esm.js} +1 -1
  133. package/dist/{permissionServices-BjXAT5OT.esm.js → permissionServices-CG3bMSfG.esm.js} +3 -3
  134. package/dist/phone.d.ts +4 -4
  135. package/dist/phone.esm.js +8 -8
  136. package/dist/{phoneManager-Ddl_CeNb.esm.js → phoneManager-B44MT4ro.esm.js} +4 -4
  137. package/dist/{phoneManager-BgoX1fvQ.d.ts → phoneManager-fPmIBYQK.d.ts} +3 -3
  138. package/dist/{phoneStateMachine-CrjW4JrA.esm.js → phoneStateMachine-CMht9LLp.esm.js} +5 -5
  139. package/dist/{qe-signature-C8uvV_-H.esm.js → qe-signature-DCz2roEC.esm.js} +1 -1
  140. package/dist/qe-signature.d.ts +3 -3
  141. package/dist/qe-signature.esm.js +7 -7
  142. package/dist/{recordingService-DCUipzC7.esm.js → recordingService-DwPmv6FZ.esm.js} +16 -131
  143. package/dist/redirect-to-mobile.d.ts +3 -3
  144. package/dist/redirect-to-mobile.esm.js +7 -7
  145. package/dist/{redirectToMobileManager-CQxCClRy.esm.js → redirectToMobileManager-BAzevDYW.esm.js} +4 -4
  146. package/dist/{redirectToMobileManager-xOasdN0s.d.ts → redirectToMobileManager-BNe3IzC_.d.ts} +2 -2
  147. package/dist/{redirectToMobileStateMachine-DHqdmBzc.esm.js → redirectToMobileStateMachine-BmwxrN1h.esm.js} +4 -4
  148. package/dist/{runChildModule-B1uVG8D-.esm.js → runChildModule-CuoHZ1cx.esm.js} +3 -3
  149. package/dist/selfie.d.ts +13 -12
  150. package/dist/selfie.esm.js +28 -26
  151. package/dist/{selfieManager-CeTXxT2U.d.ts → selfieManager-dUbKRzOh.d.ts} +2 -2
  152. package/dist/{selfieManager-DpFMP4Rk.esm.js → selfieManager-zH9pAVXE.esm.js} +6 -6
  153. package/dist/{selfieStateMachine-DCHihi8J.esm.js → selfieStateMachine-Dr5sCDgI.esm.js} +4 -4
  154. package/dist/{session-Ds1d84mn.esm.js → session-BEtpaQ6D.esm.js} +3 -3
  155. package/dist/session.d.ts +5 -5
  156. package/dist/session.esm.js +12 -12
  157. package/dist/{sessionInitializer-Be88b4WX.esm.js → sessionInitializer-D0Ei5Ol7.esm.js} +7 -7
  158. package/dist/{setup-BtLWJPSp.d.ts → setup-BbkprdVv.d.ts} +1 -1
  159. package/dist/{setup-BgxDnUDw.esm.js → setup-DotVj7UA.esm.js} +7 -7
  160. package/dist/signature.d.ts +2 -2
  161. package/dist/signature.esm.js +5 -5
  162. package/dist/{signatureStateMachine-CY1u1o6J.esm.js → signatureStateMachine-CpcyA7CM.esm.js} +4 -4
  163. package/dist/{stats-AwLva7-C.esm.js → stats-SU3Linba.esm.js} +2 -2
  164. package/dist/stats.esm.js +3 -3
  165. package/dist/trust-graph.d.ts +3 -3
  166. package/dist/trust-graph.esm.js +3 -3
  167. package/dist/{types-BmZR-K77.d.ts → types-Bj9hdFjU.d.ts} +1 -1
  168. package/dist/{types-DJsgKeW0.d.ts → types-DOUhndhT.d.ts} +2 -2
  169. package/dist/{types-BI-jIO73.d.ts → types-NuT8ftBV.d.ts} +1 -1
  170. package/dist/wasm.d.ts +2 -2
  171. package/dist/wasm.esm.js +12 -12
  172. package/dist/watchlist-for-business.d.ts +1 -1
  173. package/dist/watchlist-for-business.esm.js +5 -5
  174. package/dist/watchlist.d.ts +1 -1
  175. package/dist/watchlist.esm.js +5 -5
  176. package/dist/{watchlistForBusinessStateMachine-CGRko-GU.esm.js → watchlistForBusinessStateMachine-DsEq8xwX.esm.js} +3 -3
  177. package/dist/{watchlistStateMachine-CWVTWVJY.esm.js → watchlistStateMachine-CREpVW-C.esm.js} +3 -3
  178. package/dist/workflow.d.ts +97 -97
  179. package/dist/workflow.esm.js +60 -58
  180. package/package.json +9 -1
  181. package/dist/openviduLazy-Dge_R911.esm.js +0 -3
  182. /package/dist/{Actor-Ds20AUDY.d.ts → Actor-Y0_Fj-KL.d.ts} +0 -0
  183. /package/dist/{BrowserStorageProvider-BrJver0U.esm.js → BrowserStorageProvider-BpJM-gIl.esm.js} +0 -0
  184. /package/dist/{BrowserTimerProvider-BESs49g_.esm.js → BrowserTimerProvider-DhNc_x02.esm.js} +0 -0
  185. /package/dist/{ITimerCapability-gIlcIrAX.esm.js → ITimerCapability-CB0I1Uf2.esm.js} +0 -0
  186. /package/dist/{IpifyProvider-BQKB2PR-.esm.js → IpifyProvider-D4LWD15E.esm.js} +0 -0
  187. /package/dist/{Manager-Dh6pC-6V.d.ts → Manager-BHn8wH8K.d.ts} +0 -0
  188. /package/dist/{MotionSensorProvider-D1JWpMLJ.esm.js → MotionSensorProvider-Bx7Mpzt0.esm.js} +0 -0
  189. /package/dist/{StateMachine-CENvPkCx.d.ts → StateMachine-BC_nGvrc.d.ts} +0 -0
  190. /package/dist/{WasmUtilProvider-CeyOvhU2.esm.js → WasmUtilProvider-CiEN7Gjn.esm.js} +0 -0
  191. /package/dist/{api-YxPMtty2.esm.js → api-CESGtpbH.esm.js} +0 -0
  192. /package/dist/{apiError-76Dulrw9.esm.js → apiError-B-j-gyDx.esm.js} +0 -0
  193. /package/dist/{camera-P7dse339.esm.js → camera-DJWm3V4g.esm.js} +0 -0
  194. /package/dist/{camera-D7qYpKeG.d.ts → camera-SRBpPq2X.d.ts} +0 -0
  195. /package/dist/{chunk-wtC55c3P.esm.js → chunk-CMUKZ2uL.esm.js} +0 -0
  196. /package/dist/{cpf-COPPtEoQ.esm.js → cpf-BRzggV8G.esm.js} +0 -0
  197. /package/dist/{dateUtils-CibceEoG.esm.js → dateUtils-AksLQmgV.esm.js} +0 -0
  198. /package/dist/{flowCompletionService-DOHFSAJ2.d.ts → flowCompletionService-BdR2cGgB.d.ts} +0 -0
  199. /package/dist/{getBrowser-CMJJeBF8.esm.js → getBrowser-C8DP7oTB.esm.js} +0 -0
  200. /package/dist/{getDeviceClass-C5yT6K2e.esm.js → getDeviceClass-C0olyNFS.esm.js} +0 -0
  201. /package/dist/{otp-lOELtCck.esm.js → otp-CGMdUzBC.esm.js} +0 -0
  202. /package/dist/{otp-Ci7E_eNt.d.ts → otp-DF5A0sFx.d.ts} +0 -0
  203. /package/dist/{platform-D871crJL.esm.js → platform-SKvEfCBh.esm.js} +0 -0
  204. /package/dist/{types-CRp-Maxh.esm.js → types-DsnEVMhr.esm.js} +0 -0
  205. /package/dist/{types-Cojkwi9p.d.ts → types-DvGZI7BF.d.ts} +0 -0
  206. /package/dist/{types-DI4L4PFE.d.ts → types-ya0LN_MX.d.ts} +0 -0
  207. /package/dist/{warmup-Bx2GXY3L.d.ts → warmup-Dg8Lh-50.d.ts} +0 -0
  208. /package/dist/{xstate.esm-CWoFJOio.esm.js → xstate.esm-C9wncMQa.esm.js} +0 -0
@@ -0,0 +1,323 @@
1
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
2
+ import { t as api } from "./api-CESGtpbH.esm.js";
3
+ import { h as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
4
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
5
+ import "./platform-SKvEfCBh.esm.js";
6
+ import { a as fromPromise, c as createManager, i as fromCallback, r as assign, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
7
+ import { i as stopCameraStream } from "./camera-DJWm3V4g.esm.js";
8
+ import "./ITimerCapability-CB0I1Uf2.esm.js";
9
+ import "./canvas-SKcRBxsk.esm.js";
10
+ import { n as getBackCameraStream } from "./backCameraStream-D7Wo4Nbx.esm.js";
11
+ import { t as StreamCanvasCapture } from "./StreamCanvasCapture-ImiDQdVA.esm.js";
12
+ import "./http-Cai3IoLS.esm.js";
13
+ import { BrowserQRCodeReader } from "@zxing/browser";
14
+
15
+ //#region src/modules/fiscal-qr/fiscalQrConstants.ts
16
+ const QR_SCAN_FPS = 10;
17
+ const INITIAL_FOCUS_DELAY_MS = 800;
18
+ const SCAN_INTERVAL_MS = 500;
19
+ const SUCCESS_DISPLAY_MS = 1500;
20
+ const PROCESSING_DISPLAY_MS = 3e3;
21
+ const ERROR_DISPLAY_MS = 3e3;
22
+ const MAX_ATTEMPTS = 3;
23
+
24
+ //#endregion
25
+ //#region src/modules/fiscal-qr/qrCodeDecoder.ts
26
+ function createQrCodeDecoder() {
27
+ const reader = new BrowserQRCodeReader();
28
+ return { decode(canvas) {
29
+ try {
30
+ const text = reader.decodeFromCanvas(canvas.canvas).getText().trim();
31
+ return text.length > 0 ? text : void 0;
32
+ } catch {
33
+ return;
34
+ }
35
+ } };
36
+ }
37
+
38
+ //#endregion
39
+ //#region src/modules/fiscal-qr/fiscalQrUtils.ts
40
+ /**
41
+ * Continuously decodes QR codes from an existing frame capturer until the first
42
+ * hit.
43
+ *
44
+ * When `applyFocusDelay` is true, waits {@link INITIAL_FOCUS_DELAY_MS} (camera
45
+ * focus) before the first attempt; otherwise scans immediately. Either way it
46
+ * then retries every {@link SCAN_INTERVAL_MS}. `onDetected` fires at most once.
47
+ *
48
+ * Takes a shared {@link StreamCanvasCapture} rather than a stream on purpose:
49
+ * the capturer (and its hidden video) is created once for the camera session
50
+ * and reused across scan restarts, so re-entering scanning never spins up a new
51
+ * stream consumer — which would briefly disturb the visible camera feed.
52
+ *
53
+ * @returns a cleanup function that stops the scan loop. It does NOT dispose the
54
+ * capturer or stop the camera — the caller owns those lifecycles.
55
+ */
56
+ function startQrScan(frameCapturer, onDetected, applyFocusDelay = true) {
57
+ const decoder = createQrCodeDecoder();
58
+ const timer = BrowserTimerProvider.getInstance();
59
+ let disposed = false;
60
+ let hasDetected = false;
61
+ let scanInterval;
62
+ let focusDelay;
63
+ const scan = () => {
64
+ if (disposed || hasDetected) return;
65
+ const canvas = frameCapturer.getLatestCanvas();
66
+ if (!canvas) return;
67
+ try {
68
+ const link = decoder.decode(canvas);
69
+ if (link && !disposed && !hasDetected) {
70
+ hasDetected = true;
71
+ onDetected(link);
72
+ }
73
+ } finally {
74
+ canvas.dispose();
75
+ }
76
+ };
77
+ const beginScanning = () => {
78
+ scan();
79
+ scanInterval = timer.setInterval(scan, SCAN_INTERVAL_MS);
80
+ };
81
+ if (applyFocusDelay) focusDelay = timer.setTimeout(beginScanning, INITIAL_FOCUS_DELAY_MS);
82
+ else beginScanning();
83
+ return () => {
84
+ disposed = true;
85
+ if (focusDelay !== void 0) timer.clearTimeout(focusDelay);
86
+ if (scanInterval !== void 0) timer.clearInterval(scanInterval);
87
+ };
88
+ }
89
+
90
+ //#endregion
91
+ //#region src/modules/fiscal-qr/fiscalQrServices.ts
92
+ /**
93
+ * Submits a scanned Fiscal QR link to the backend.
94
+ *
95
+ * Throws when the request fails OR when the backend rejects the link
96
+ * (`success === false`), so callers can retry/skip — matching the legacy SDK
97
+ * which only advanced when `postResp.success` was truthy.
98
+ */
99
+ async function submitFiscalQrLink(params, signal) {
100
+ const res = await api.post(endpoints.addFiscalQrLink, params, { signal });
101
+ if (!res.ok) throw new Error(`POST failed: ${res.status}`);
102
+ if (res.data?.success !== true) throw new Error("Fiscal QR link was not accepted");
103
+ return res.data;
104
+ }
105
+
106
+ //#endregion
107
+ //#region src/modules/fiscal-qr/fiscalQrStateMachine.ts
108
+ const fiscalQrMachine = setup({
109
+ types: {
110
+ context: {},
111
+ events: {},
112
+ input: {}
113
+ },
114
+ actors: {
115
+ initCamera: fromPromise(async () => {
116
+ const { stream } = await getBackCameraStream(void 0);
117
+ return {
118
+ stream,
119
+ frameCapturer: new StreamCanvasCapture(stream, { fps: QR_SCAN_FPS })
120
+ };
121
+ }),
122
+ submitFiscalQrLink: fromPromise(async ({ input, signal }) => {
123
+ await submitFiscalQrLink({ poaUrl: input.link }, signal);
124
+ }),
125
+ detectQrCode: fromCallback(({ input, sendBack }) => {
126
+ if (!input.frameCapturer) return () => {};
127
+ return startQrScan(input.frameCapturer, (link) => {
128
+ sendBack({
129
+ type: "QR_DETECTED",
130
+ link
131
+ });
132
+ }, input.applyFocusDelay);
133
+ })
134
+ },
135
+ actions: {
136
+ setLink: assign(({ event }) => {
137
+ if (event.type !== "QR_DETECTED") return {};
138
+ return {
139
+ link: event.link,
140
+ error: void 0
141
+ };
142
+ }),
143
+ setError: assign(({ event }) => ({ error: event.error?.message ?? "Submit failed" })),
144
+ setStream: assign(({ event }) => {
145
+ const { stream, frameCapturer } = event.output;
146
+ return {
147
+ stream,
148
+ frameCapturer,
149
+ error: void 0
150
+ };
151
+ }),
152
+ stopStream: assign(({ context }) => {
153
+ context.frameCapturer?.dispose();
154
+ if (context.stream) stopCameraStream(context.stream);
155
+ return {
156
+ stream: void 0,
157
+ frameCapturer: void 0
158
+ };
159
+ }),
160
+ incrementAttempts: assign(({ context }) => ({ attempts: context.attempts + 1 })),
161
+ resetSession: assign(() => ({
162
+ link: "",
163
+ error: void 0,
164
+ attempts: 0
165
+ })),
166
+ trackSuccess: () => addEvent({
167
+ code: "complete",
168
+ module: eventModuleNames.fiscalQr
169
+ })
170
+ },
171
+ guards: { isMaxAttemptsReached: ({ context }) => context.attempts + 1 >= MAX_ATTEMPTS }
172
+ }).createMachine({
173
+ id: "fiscalQr",
174
+ initial: "idle",
175
+ context: ({ input }) => ({
176
+ config: input.config,
177
+ link: "",
178
+ stream: void 0,
179
+ error: void 0,
180
+ attempts: 0
181
+ }),
182
+ on: { SKIP: ".finished" },
183
+ states: {
184
+ idle: { on: {
185
+ LOAD: "idle",
186
+ CONTINUE: {
187
+ target: "initCamera",
188
+ actions: "resetSession"
189
+ }
190
+ } },
191
+ initCamera: { invoke: {
192
+ id: "initCamera",
193
+ src: "initCamera",
194
+ input: void 0,
195
+ onDone: {
196
+ target: "scanning",
197
+ actions: "setStream"
198
+ },
199
+ onError: {
200
+ target: "scanning",
201
+ actions: "setError"
202
+ }
203
+ } },
204
+ scanning: {
205
+ invoke: {
206
+ id: "detectQrCode",
207
+ src: "detectQrCode",
208
+ input: ({ context }) => ({
209
+ frameCapturer: context.frameCapturer,
210
+ applyFocusDelay: context.attempts === 0
211
+ })
212
+ },
213
+ on: {
214
+ QR_DETECTED: {
215
+ target: "submitting",
216
+ actions: "setLink"
217
+ },
218
+ RESET: {
219
+ target: "idle",
220
+ actions: "stopStream"
221
+ }
222
+ }
223
+ },
224
+ submitting: { invoke: {
225
+ id: "submitFiscalQrLink",
226
+ src: "submitFiscalQrLink",
227
+ input: ({ context }) => ({ link: context.link }),
228
+ onDone: {
229
+ target: "success",
230
+ actions: "trackSuccess"
231
+ },
232
+ onError: [{
233
+ target: "finished",
234
+ guard: "isMaxAttemptsReached",
235
+ actions: ["incrementAttempts", "setError"]
236
+ }, {
237
+ target: "error",
238
+ actions: ["incrementAttempts", "setError"]
239
+ }]
240
+ } },
241
+ success: { after: { [SUCCESS_DISPLAY_MS]: "processing" } },
242
+ processing: {
243
+ entry: "stopStream",
244
+ after: { [PROCESSING_DISPLAY_MS]: "verified" }
245
+ },
246
+ verified: { after: { [PROCESSING_DISPLAY_MS]: "finished" } },
247
+ error: { after: { [ERROR_DISPLAY_MS]: "scanning" } },
248
+ finished: {
249
+ type: "final",
250
+ entry: "stopStream"
251
+ }
252
+ }
253
+ });
254
+
255
+ //#endregion
256
+ //#region src/modules/fiscal-qr/fiscalQrActor.ts
257
+ /**
258
+ * Creates and starts a Fiscal QR actor.
259
+ * The actor begins in 'idle' state, ready to receive events.
260
+ */
261
+ function createFiscalQrActor(options) {
262
+ return createActor(fiscalQrMachine, { input: { config: options.config } }).start();
263
+ }
264
+
265
+ //#endregion
266
+ //#region src/modules/fiscal-qr/fiscalQrManager.ts
267
+ function mapState(snapshot) {
268
+ const typedSnapshot = snapshot;
269
+ const { stream, error, attempts } = typedSnapshot.context;
270
+ if (typedSnapshot.matches("idle")) return { status: "idle" };
271
+ if (typedSnapshot.matches("initCamera") || typedSnapshot.matches("scanning")) return {
272
+ status: "scanning",
273
+ stream,
274
+ error
275
+ };
276
+ if (typedSnapshot.matches("submitting")) return {
277
+ status: "capturing",
278
+ stream
279
+ };
280
+ if (typedSnapshot.matches("success")) return {
281
+ status: "success",
282
+ stream
283
+ };
284
+ if (typedSnapshot.matches("processing")) return { status: "processing" };
285
+ if (typedSnapshot.matches("verified")) return { status: "verified" };
286
+ if (typedSnapshot.matches("error")) return {
287
+ status: "error",
288
+ error,
289
+ attempts,
290
+ stream
291
+ };
292
+ if (typedSnapshot.matches("finished")) return { status: "finished" };
293
+ return { status: "idle" };
294
+ }
295
+ function createApi({ actor, trackElementClicked }) {
296
+ return {
297
+ load() {
298
+ actor.send({ type: "LOAD" });
299
+ },
300
+ continue() {
301
+ trackElementClicked?.("continue");
302
+ actor.send({ type: "CONTINUE" });
303
+ },
304
+ skip() {
305
+ trackElementClicked?.("skip");
306
+ actor.send({ type: "SKIP" });
307
+ },
308
+ reset() {
309
+ actor.send({ type: "RESET" });
310
+ }
311
+ };
312
+ }
313
+ function createFiscalQrManager(options) {
314
+ return createManager({
315
+ actor: createFiscalQrActor(options),
316
+ mapState,
317
+ createApi,
318
+ instrumentation: createManagerInstrumentation(eventModuleNames.fiscalQr)
319
+ });
320
+ }
321
+
322
+ //#endregion
323
+ export { createFiscalQrManager, fiscalQrMachine };
@@ -1,7 +1,7 @@
1
- import "./camera-D7qYpKeG.js";
2
- import "./types-BmZR-K77.js";
3
- import "./types-Cojkwi9p.js";
4
- import "./types-DJsgKeW0.js";
5
- import "./flowCompletionService-DOHFSAJ2.js";
6
- import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-C3KOkxmU.js";
1
+ import "./camera-SRBpPq2X.js";
2
+ import "./types-Bj9hdFjU.js";
3
+ import "./types-DvGZI7BF.js";
4
+ import "./types-DOUhndhT.js";
5
+ import "./flowCompletionService-BdR2cGgB.js";
6
+ import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-B5hPA0Bg.js";
7
7
  export { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
package/dist/flow.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { n as WasmPipeline } from "./warmup-Bx2GXY3L.js";
2
- import { t as Manager } from "./Manager-Dh6pC-6V.js";
3
- import { t as AnyStateMachine } from "./StateMachine-CENvPkCx.js";
4
- import "./camera-D7qYpKeG.js";
5
- import "./types-BmZR-K77.js";
6
- import "./types-Cojkwi9p.js";
7
- import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DJsgKeW0.js";
8
- import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-DOHFSAJ2.js";
9
- import { o as FlowEventSubscribable } from "./index-C3KOkxmU.js";
10
- import { n as ModuleRegistry } from "./types-BI-jIO73.js";
11
- import * as xstate544 from "xstate";
1
+ import { n as WasmPipeline } from "./warmup-Dg8Lh-50.js";
2
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
3
+ import { t as AnyStateMachine } from "./StateMachine-BC_nGvrc.js";
4
+ import "./camera-SRBpPq2X.js";
5
+ import "./types-Bj9hdFjU.js";
6
+ import "./types-DvGZI7BF.js";
7
+ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DOUhndhT.js";
8
+ import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-BdR2cGgB.js";
9
+ import { o as FlowEventSubscribable } from "./index-B5hPA0Bg.js";
10
+ import { n as ModuleRegistry } from "./types-NuT8ftBV.js";
11
+ import * as xstate1248 from "xstate";
12
12
 
13
13
  //#region src/modules/flow/flowUtils.d.ts
14
14
  type NormalizeFlowModulesOptions = {
@@ -60,7 +60,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
60
60
  declare const getFlow: GetFlow;
61
61
  //#endregion
62
62
  //#region src/modules/flow/noOpFlowModuleMachine.d.ts
63
- declare const noOpFlowModuleMachine: xstate544.StateMachine<xstate544.MachineContext, xstate544.AnyEventObject, {}, never, never, never, never, "finished", string, xstate544.NonReducibleUnknown, xstate544.NonReducibleUnknown, xstate544.EventObject, xstate544.MetaObject, {
63
+ declare const noOpFlowModuleMachine: xstate1248.StateMachine<xstate1248.MachineContext, xstate1248.AnyEventObject, {}, never, never, never, never, "finished", string, xstate1248.NonReducibleUnknown, xstate1248.NonReducibleUnknown, xstate1248.EventObject, xstate1248.MetaObject, {
64
64
  readonly id: "noOpFlowModule";
65
65
  readonly initial: "finished";
66
66
  readonly states: {
package/dist/flow.esm.js CHANGED
@@ -1,19 +1,19 @@
1
- import "./api-YxPMtty2.esm.js";
2
- import { h as addEvent } from "./events-Bsw1l0pH.esm.js";
3
- import "./endpoints-BPHddOTi.esm.js";
4
- import "./stats-AwLva7-C.esm.js";
5
- import "./IpifyProvider-BQKB2PR-.esm.js";
6
- import "./browserSimulation-CHpyEI-W.esm.js";
7
- import "./sessionInitializer-Be88b4WX.esm.js";
8
- import "./platform-D871crJL.esm.js";
9
- import "./getBrowser-CMJJeBF8.esm.js";
10
- import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
11
- import "./apiError-76Dulrw9.esm.js";
12
- import "./types-CRp-Maxh.esm.js";
13
- import "./session-Ds1d84mn.esm.js";
14
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-DhaF-fP3.esm.js";
15
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B1uVG8D-.esm.js";
16
- import { t as getFinishStatus } from "./flowCompletionService-DFV8vmO3.esm.js";
1
+ import "./api-CESGtpbH.esm.js";
2
+ import { h as addEvent } from "./events-Dvvriq9l.esm.js";
3
+ import "./endpoints-zEf_JIJU.esm.js";
4
+ import "./stats-SU3Linba.esm.js";
5
+ import "./IpifyProvider-D4LWD15E.esm.js";
6
+ import "./browserSimulation-B1dWiXp7.esm.js";
7
+ import "./sessionInitializer-D0Ei5Ol7.esm.js";
8
+ import "./platform-SKvEfCBh.esm.js";
9
+ import "./getBrowser-C8DP7oTB.esm.js";
10
+ import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
11
+ import "./apiError-B-j-gyDx.esm.js";
12
+ import "./types-DsnEVMhr.esm.js";
13
+ import "./session-BEtpaQ6D.esm.js";
14
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BykryjdA.esm.js";
15
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CuoHZ1cx.esm.js";
16
+ import { t as getFinishStatus } from "./flowCompletionService-DHpnjBvp.esm.js";
17
17
 
18
18
  //#region src/modules/flow/noOpFlowModuleMachine.ts
19
19
  const noOpFlowModuleMachine = setup({}).createMachine({
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-YxPMtty2.esm.js";
2
- import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
- import { n as toIncodeApiError } from "./apiError-76Dulrw9.esm.js";
1
+ import { t as api } from "./api-CESGtpbH.esm.js";
2
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
3
+ import { n as toIncodeApiError } from "./apiError-B-j-gyDx.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowCompletionService.ts
6
6
  const getFinishStatus = async (flowId, signal) => {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-YxPMtty2.esm.js";
2
- import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
- import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-Be88b4WX.esm.js";
4
- import { n as toIncodeApiError } from "./apiError-76Dulrw9.esm.js";
1
+ import { t as api } from "./api-CESGtpbH.esm.js";
2
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-D0Ei5Ol7.esm.js";
4
+ import { n as toIncodeApiError } from "./apiError-B-j-gyDx.esm.js";
5
5
 
6
6
  //#region src/modules/flow/flowUtils.ts
7
7
  const WASM_MODULE_PIPELINES = {
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
- import "./Actor-Ds20AUDY.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import "./Actor-Y0_Fj-KL.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
5
5
  type GeolocationCoords = {
@@ -1,9 +1,9 @@
1
- import "./api-YxPMtty2.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
3
- import "./endpoints-BPHddOTi.esm.js";
4
- import "./platform-D871crJL.esm.js";
5
- import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
6
- import { t as geolocationMachine } from "./geolocationStateMachine-DCG_hQkW.esm.js";
1
+ import "./api-CESGtpbH.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
3
+ import "./endpoints-zEf_JIJU.esm.js";
4
+ import "./platform-SKvEfCBh.esm.js";
5
+ import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
6
+ import { t as geolocationMachine } from "./geolocationStateMachine-D6yBlOQ_.esm.js";
7
7
 
8
8
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
9
9
  var BrowserGeolocationProvider = class {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-YxPMtty2.esm.js";
2
- import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
- import { r as isIOS, t as isAndroid } from "./platform-D871crJL.esm.js";
4
- import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
1
+ import { t as api } from "./api-CESGtpbH.esm.js";
2
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
3
+ import { r as isIOS, t as isAndroid } from "./platform-SKvEfCBh.esm.js";
4
+ import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
5
5
 
6
6
  //#region src/modules/geolocation/geolocationServices.ts
7
7
  async function addGeolocation(params, signal) {
@@ -1,4 +1,4 @@
1
- import { t as getDeviceInfo } from "./getDeviceClass-C5yT6K2e.esm.js";
1
+ import { t as getDeviceInfo } from "./getDeviceClass-C0olyNFS.esm.js";
2
2
 
3
3
  //#region src/internal/device/getDeviceClass.ts
4
4
  function getDeviceClass() {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
- import "./Actor-Ds20AUDY.js";
3
- import { t as OtpValidationErrors } from "./otp-Ci7E_eNt.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import "./Actor-Y0_Fj-KL.js";
3
+ import { t as OtpValidationErrors } from "./otp-DF5A0sFx.js";
4
4
 
5
5
  //#region src/modules/government-validation/types.d.ts
6
6
  type GovernmentValidationConfig = {
@@ -1,10 +1,10 @@
1
- import "./BrowserTimerProvider-BESs49g_.esm.js";
2
- import "./api-YxPMtty2.esm.js";
3
- import { o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
4
- import "./endpoints-BPHddOTi.esm.js";
5
- import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
6
- import { t as OTP_CODE_LENGTH } from "./otp-lOELtCck.esm.js";
7
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-KY_Eu5b-.esm.js";
1
+ import "./BrowserTimerProvider-DhNc_x02.esm.js";
2
+ import "./api-CESGtpbH.esm.js";
3
+ import { o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
4
+ import "./endpoints-zEf_JIJU.esm.js";
5
+ import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
6
+ import { t as OTP_CODE_LENGTH } from "./otp-CGMdUzBC.esm.js";
7
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-M-iiovMY.esm.js";
8
8
 
9
9
  //#region src/modules/government-validation/governmentValidationActor.ts
10
10
  function createGovernmentValidationActor(options) {
@@ -1,8 +1,8 @@
1
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BESs49g_.esm.js";
2
- import { t as api } from "./api-YxPMtty2.esm.js";
3
- import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
4
- import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
5
- import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-lOELtCck.esm.js";
1
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
2
+ import { t as api } from "./api-CESGtpbH.esm.js";
3
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
4
+ import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
5
+ import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-CGMdUzBC.esm.js";
6
6
 
7
7
  //#region src/modules/government-validation/governmentValidationServices.ts
8
8
  async function processGovernmentValidation(signal) {
package/dist/home.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
- import "./camera-D7qYpKeG.js";
3
- import "./types-BmZR-K77.js";
4
- import "./types-Cojkwi9p.js";
5
- import { t as EmptyConfig } from "./types-DJsgKeW0.js";
6
- import * as xstate469 from "xstate";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import "./camera-SRBpPq2X.js";
3
+ import "./types-Bj9hdFjU.js";
4
+ import "./types-DvGZI7BF.js";
5
+ import { t as EmptyConfig } from "./types-DOUhndhT.js";
6
+ import * as xstate351 from "xstate";
7
7
 
8
8
  //#region src/modules/home/types.d.ts
9
9
  type HomeConfig = EmptyConfig;
@@ -35,41 +35,41 @@ type HomeContext = {
35
35
  type HomeInput = {
36
36
  config: EmptyConfig;
37
37
  };
38
- declare const homeMachine: xstate469.StateMachine<HomeContext, {
38
+ declare const homeMachine: xstate351.StateMachine<HomeContext, {
39
39
  type: "LOAD";
40
40
  } | {
41
41
  type: "COMPLETE";
42
42
  } | {
43
43
  type: "RESET";
44
- }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate469.NonReducibleUnknown, xstate469.EventObject, xstate469.MetaObject, {
44
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate351.NonReducibleUnknown, xstate351.EventObject, xstate351.MetaObject, {
45
45
  readonly id: "home";
46
46
  readonly initial: "idle";
47
47
  readonly context: ({
48
48
  input
49
49
  }: {
50
50
  spawn: {
51
- <TSrc extends never>(logic: TSrc, ...[options]: never): xstate469.ActorRefFromLogic<never>;
52
- <TLogic extends xstate469.AnyActorLogic>(src: TLogic, ...[options]: xstate469.ConditionalRequired<[options?: ({
51
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate351.ActorRefFromLogic<never>;
52
+ <TLogic extends xstate351.AnyActorLogic>(src: TLogic, ...[options]: xstate351.ConditionalRequired<[options?: ({
53
53
  id?: never;
54
54
  systemId?: string;
55
- input?: xstate469.InputFrom<TLogic> | undefined;
55
+ input?: xstate351.InputFrom<TLogic> | undefined;
56
56
  syncSnapshot?: boolean;
57
- } & { [K in xstate469.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate469.IsNotNever<xstate469.RequiredLogicInput<TLogic>>>): xstate469.ActorRefFromLogic<TLogic>;
57
+ } & { [K in xstate351.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate351.IsNotNever<xstate351.RequiredLogicInput<TLogic>>>): xstate351.ActorRefFromLogic<TLogic>;
58
58
  };
59
59
  input: HomeInput;
60
- self: xstate469.ActorRef<xstate469.MachineSnapshot<HomeContext, {
60
+ self: xstate351.ActorRef<xstate351.MachineSnapshot<HomeContext, {
61
61
  type: "LOAD";
62
62
  } | {
63
63
  type: "COMPLETE";
64
64
  } | {
65
65
  type: "RESET";
66
- }, Record<string, xstate469.AnyActorRef | undefined>, xstate469.StateValue, string, unknown, any, any>, {
66
+ }, Record<string, xstate351.AnyActorRef | undefined>, xstate351.StateValue, string, unknown, any, any>, {
67
67
  type: "LOAD";
68
68
  } | {
69
69
  type: "COMPLETE";
70
70
  } | {
71
71
  type: "RESET";
72
- }, xstate469.AnyEventObject>;
72
+ }, xstate351.AnyEventObject>;
73
73
  }) => {
74
74
  config: EmptyConfig;
75
75
  };
package/dist/home.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./api-YxPMtty2.esm.js";
2
- import { o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
3
- import { c as createManager, s as createActor, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
1
+ import "./api-CESGtpbH.esm.js";
2
+ import { o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
3
+ import { c as createManager, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
4
4
 
5
5
  //#region src/modules/home/homeStateMachine.ts
6
6
  const homeMachine = setup({ types: {
File without changes
package/dist/http.esm.js CHANGED
@@ -1,3 +1,4 @@
1
- import { n as getApi, t as api } from "./api-YxPMtty2.esm.js";
1
+ import { n as getApi, t as api } from "./api-CESGtpbH.esm.js";
2
+ import "./http-Cai3IoLS.esm.js";
2
3
 
3
4
  export { api, getApi };