@incodetech/core 2.4.1-agentic → 2.4.1-agentic.10

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 (239) hide show
  1. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  2. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  3. package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
  4. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  5. package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +11 -12
  6. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  7. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
  8. package/dist/MultipartRecordingProvider-BfQPSgSO.esm.js +151 -0
  9. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
  12. package/dist/WorkerEncoderRecordingProvider-CyCrQnZR.esm.js +80 -0
  13. package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
  14. package/dist/ae-signature.esm.js +1 -1
  15. package/dist/antifraud.esm.js +2 -2
  16. package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
  17. package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
  18. package/dist/{api-BO8JA7Pf.esm.js → api-BSnbg4HO.esm.js} +4 -0
  19. package/dist/{apiError-CfuIvnUy.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
  20. package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-zQH85Elh.esm.js} +2 -2
  21. package/dist/authentication.d.ts +3 -3
  22. package/dist/authentication.esm.js +2 -2
  23. package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
  24. package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
  25. package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
  26. package/dist/avatar.d.ts +1 -1
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
  29. package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
  30. package/dist/camera.d.ts +2 -2
  31. package/dist/camera.esm.js +1 -1
  32. package/dist/certificate-issuance.esm.js +2 -2
  33. package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
  34. package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
  35. package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
  36. package/dist/consent.d.ts +1 -1
  37. package/dist/consent.esm.js +2 -2
  38. package/dist/{consentManager-_q9yJUku.d.ts → consentManager-7aHaehwF.d.ts} +5 -5
  39. package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
  40. package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
  41. package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
  42. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
  45. package/dist/curp-validation.d.ts +1 -1
  46. package/dist/curp-validation.esm.js +2 -2
  47. package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
  48. package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
  55. package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +34 -29
  56. package/dist/definitionSource-BHNxbuiv.esm.js +184 -0
  57. package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +5 -5
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +3 -2
  61. package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
  62. package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +67 -26
  63. package/dist/dynamic-forms.esm.js +2 -2
  64. package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
  65. package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
  66. package/dist/ekyb.d.ts +4 -4
  67. package/dist/ekyb.esm.js +3 -3
  68. package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  69. package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
  70. package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +7 -3
  71. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  72. package/dist/ekyc-prefill.d.ts +17 -0
  73. package/dist/ekyc-prefill.esm.js +3 -0
  74. package/dist/ekyc.d.ts +3 -2
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
  77. package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-q1fos6IY.d.ts} +2 -1
  78. package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
  79. package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
  80. package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
  81. package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
  82. package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-DBTczgGE.esm.js} +719 -596
  83. package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-Dcff8BOD.esm.js} +103 -14
  84. package/dist/electronic-signature.esm.js +1 -1
  85. package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
  86. package/dist/email.esm.js +2 -2
  87. package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
  88. package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
  89. package/dist/{events-CQteqXfy.esm.js → events-C7h7oaTE.esm.js} +1 -1
  90. package/dist/events.esm.js +1 -1
  91. package/dist/extensibility.d.ts +20 -18
  92. package/dist/extensibility.esm.js +37 -35
  93. package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
  94. package/dist/face-match.d.ts +1 -1
  95. package/dist/face-match.esm.js +2 -2
  96. package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
  97. package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
  98. package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +12 -403
  99. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
  100. package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
  101. package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
  102. package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-CmKTG_T5.esm.js} +35 -21
  103. package/dist/feature-management.esm.js +1 -1
  104. package/dist/field-comparison.esm.js +1 -1
  105. package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
  106. package/dist/fiscal-qr.esm.js +1 -1
  107. package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +3 -3
  108. package/dist/flow-events.d.ts +1 -1
  109. package/dist/flow.d.ts +33 -18
  110. package/dist/flow.esm.js +82 -17
  111. package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
  112. package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-Ca2vKNt2.esm.js} +84 -139
  113. package/dist/geolocation.esm.js +2 -2
  114. package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
  115. package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
  116. package/dist/government-validation.esm.js +2 -2
  117. package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
  118. package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-CeSDNgha.esm.js} +1 -1
  119. package/dist/home.d.ts +1 -1
  120. package/dist/home.esm.js +1 -1
  121. package/dist/http.esm.js +1 -1
  122. package/dist/id-ocr.d.ts +2 -2
  123. package/dist/id-ocr.esm.js +3 -19
  124. package/dist/id-selfie-flow.d.ts +3 -3
  125. package/dist/id-selfie-flow.esm.js +10 -9
  126. package/dist/id-verification.esm.js +2 -2
  127. package/dist/id.d.ts +4 -4
  128. package/dist/id.esm.js +4 -4
  129. package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
  130. package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-B5xqok0L.esm.js} +9 -8
  131. package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CG8zbAp0.d.ts} +10 -8
  132. package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-BIF_7rub.esm.js} +27 -196
  133. package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +50 -22
  134. package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
  135. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-B5xeI2lg.d.ts} +3 -3
  136. package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
  137. package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
  138. package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
  139. package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
  140. package/dist/identity-reuse.esm.js +2 -2
  141. package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
  142. package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
  143. package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
  144. package/dist/{index-DMDAk85K.d.ts → index-CSPOoqah.d.ts} +1 -1
  145. package/dist/index.d.ts +1 -1
  146. package/dist/index.esm.js +1 -1
  147. package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-C1-j4fsq.esm.js} +1 -1
  148. package/dist/kyb-checks.d.ts +3 -0
  149. package/dist/kyb-checks.esm.js +3 -0
  150. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  151. package/dist/kybChecksManager-CnqwgKoV.esm.js +89 -0
  152. package/dist/kybChecksStateMachine-Be41K_NS.esm.js +719 -0
  153. package/dist/mandatory-consent.d.ts +2 -2
  154. package/dist/mandatory-consent.esm.js +2 -2
  155. package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +20 -11
  156. package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
  157. package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
  158. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  159. package/dist/multipartRecordingService-CCiRpByl.esm.js +407 -0
  160. package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
  161. package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-CZpORUWY.esm.js} +8 -6
  162. package/dist/phone.esm.js +2 -2
  163. package/dist/phoneFormat-DEpESpz2.esm.js +87 -0
  164. package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-C-qD3p3N.esm.js} +3 -3
  165. package/dist/phoneServices-BdR1nmSO.esm.js +77 -0
  166. package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +20 -60
  167. package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
  168. package/dist/qe-signature.esm.js +1 -1
  169. package/dist/recordingService-BVSCo0ac.esm.js +397 -0
  170. package/dist/redirect-to-mobile.esm.js +2 -2
  171. package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +3 -3
  172. package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +40 -22
  173. package/dist/resolveForm-f9PhUo9j.esm.js +143 -0
  174. package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
  175. package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
  176. package/dist/selfie.d.ts +4 -4
  177. package/dist/selfie.esm.js +10 -10
  178. package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
  179. package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
  180. package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
  181. package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
  182. package/dist/{session-DAaAewMX.esm.js → session-D0DWDKp9.esm.js} +4 -4
  183. package/dist/session.d.ts +2 -2
  184. package/dist/session.esm.js +6 -6
  185. package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-I92b2dmL.esm.js} +94 -24
  186. package/dist/{setup-CDAKwTr7.esm.js → setup-BpjzWqR1.esm.js} +25 -27
  187. package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
  188. package/dist/signature.esm.js +2 -2
  189. package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
  190. package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
  191. package/dist/{stats-BpMz-hTP.esm.js → stats-C2sigf9p.esm.js} +1 -1
  192. package/dist/stats.esm.js +1 -1
  193. package/dist/step-up.d.ts +378 -0
  194. package/dist/step-up.esm.js +639 -0
  195. package/dist/textRules-D4NRinKY.d.ts +41 -0
  196. package/dist/{tri-BajQnjbf.esm.js → tri-DaUNvo-o.esm.js} +29 -34
  197. package/dist/tri.d.ts +2 -2
  198. package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
  199. package/dist/tri.esm.js +2 -2
  200. package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
  201. package/dist/trust-graph.esm.js +1 -1
  202. package/dist/types-B-PIc0en.d.ts +115 -0
  203. package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
  204. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  205. package/dist/{types-xEEWCx1j.d.ts → types-BqlZSoZ-.d.ts} +5 -5
  206. package/dist/types-CTaL0XJz.d.ts +80 -0
  207. package/dist/{types-e8fCsvvk.d.ts → types-Cbm9J2yF.d.ts} +1 -1
  208. package/dist/{types--3HDl2SF.d.ts → types-CgihAhT_.d.ts} +3 -3
  209. package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
  210. package/dist/{types-B2FK_wYb.d.ts → types-DEa3taWc.d.ts} +9 -41
  211. package/dist/{types-PTZHRhGX.d.ts → types-P9LzsfRo.d.ts} +3 -2
  212. package/dist/{types-DuD8TRJU.d.ts → types-TisHEbBg.d.ts} +12 -4
  213. package/dist/types-kLsU6Jkt.d.ts +6 -0
  214. package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
  215. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  216. package/dist/video-selfie.d.ts +5 -4
  217. package/dist/video-selfie.esm.js +9 -7
  218. package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +16 -14
  219. package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
  220. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  221. package/dist/{warmup-BkfxQZsC.esm.js → warmup-9iKKNNuW.esm.js} +69 -20
  222. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  223. package/dist/wasm.d.ts +9 -3
  224. package/dist/wasm.esm.js +3 -3
  225. package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
  226. package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-C3v3s_4H.esm.js} +34 -19
  227. package/dist/watchlist-for-business.esm.js +2 -2
  228. package/dist/watchlist.esm.js +2 -2
  229. package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
  230. package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
  231. package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
  232. package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
  233. package/dist/workflow.d.ts +226 -41
  234. package/dist/workflow.esm.js +163 -67
  235. package/package.json +21 -5
  236. package/dist/addressSearch-41sMcnJk.esm.js +0 -604
  237. package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
  238. package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
  239. package/dist/types-D9r3zRfY.d.ts +0 -6
@@ -1,604 +0,0 @@
1
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
- import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
- //#region src/shared/usStates.ts
5
- const usStates = {
6
- AL: {
7
- code: "AL",
8
- name: "Alabama"
9
- },
10
- AK: {
11
- code: "AK",
12
- name: "Alaska"
13
- },
14
- AZ: {
15
- code: "AZ",
16
- name: "Arizona"
17
- },
18
- AR: {
19
- code: "AR",
20
- name: "Arkansas"
21
- },
22
- CA: {
23
- code: "CA",
24
- name: "California"
25
- },
26
- CO: {
27
- code: "CO",
28
- name: "Colorado"
29
- },
30
- CT: {
31
- code: "CT",
32
- name: "Connecticut"
33
- },
34
- DE: {
35
- code: "DE",
36
- name: "Delaware"
37
- },
38
- FL: {
39
- code: "FL",
40
- name: "Florida"
41
- },
42
- GA: {
43
- code: "GA",
44
- name: "Georgia"
45
- },
46
- HI: {
47
- code: "HI",
48
- name: "Hawaii"
49
- },
50
- ID: {
51
- code: "ID",
52
- name: "Idaho"
53
- },
54
- IL: {
55
- code: "IL",
56
- name: "Illinois"
57
- },
58
- IN: {
59
- code: "IN",
60
- name: "Indiana"
61
- },
62
- IA: {
63
- code: "IA",
64
- name: "Iowa"
65
- },
66
- KS: {
67
- code: "KS",
68
- name: "Kansas"
69
- },
70
- KY: {
71
- code: "KY",
72
- name: "Kentucky"
73
- },
74
- LA: {
75
- code: "LA",
76
- name: "Louisiana"
77
- },
78
- ME: {
79
- code: "ME",
80
- name: "Maine"
81
- },
82
- MD: {
83
- code: "MD",
84
- name: "Maryland"
85
- },
86
- MA: {
87
- code: "MA",
88
- name: "Massachusetts"
89
- },
90
- MI: {
91
- code: "MI",
92
- name: "Michigan"
93
- },
94
- MN: {
95
- code: "MN",
96
- name: "Minnesota"
97
- },
98
- MS: {
99
- code: "MS",
100
- name: "Mississippi"
101
- },
102
- MO: {
103
- code: "MO",
104
- name: "Missouri"
105
- },
106
- MT: {
107
- code: "MT",
108
- name: "Montana"
109
- },
110
- NE: {
111
- code: "NE",
112
- name: "Nebraska"
113
- },
114
- NV: {
115
- code: "NV",
116
- name: "Nevada"
117
- },
118
- NH: {
119
- code: "NH",
120
- name: "New Hampshire"
121
- },
122
- NJ: {
123
- code: "NJ",
124
- name: "New Jersey"
125
- },
126
- NM: {
127
- code: "NM",
128
- name: "New Mexico"
129
- },
130
- NY: {
131
- code: "NY",
132
- name: "New York"
133
- },
134
- NC: {
135
- code: "NC",
136
- name: "North Carolina"
137
- },
138
- ND: {
139
- code: "ND",
140
- name: "North Dakota"
141
- },
142
- OH: {
143
- code: "OH",
144
- name: "Ohio"
145
- },
146
- OK: {
147
- code: "OK",
148
- name: "Oklahoma"
149
- },
150
- OR: {
151
- code: "OR",
152
- name: "Oregon"
153
- },
154
- PA: {
155
- code: "PA",
156
- name: "Pennsylvania"
157
- },
158
- RI: {
159
- code: "RI",
160
- name: "Rhode Island"
161
- },
162
- SC: {
163
- code: "SC",
164
- name: "South Carolina"
165
- },
166
- SD: {
167
- code: "SD",
168
- name: "South Dakota"
169
- },
170
- TN: {
171
- code: "TN",
172
- name: "Tennessee"
173
- },
174
- TX: {
175
- code: "TX",
176
- name: "Texas"
177
- },
178
- UT: {
179
- code: "UT",
180
- name: "Utah"
181
- },
182
- VT: {
183
- code: "VT",
184
- name: "Vermont"
185
- },
186
- VA: {
187
- code: "VA",
188
- name: "Virginia"
189
- },
190
- WA: {
191
- code: "WA",
192
- name: "Washington"
193
- },
194
- WV: {
195
- code: "WV",
196
- name: "West Virginia"
197
- },
198
- WI: {
199
- code: "WI",
200
- name: "Wisconsin"
201
- },
202
- WY: {
203
- code: "WY",
204
- name: "Wyoming"
205
- }
206
- };
207
- const usStateOptions = Object.values(usStates).map((state) => ({
208
- value: state.code,
209
- label: state.name
210
- }));
211
- //#endregion
212
- //#region src/shared/addressSuggestion.ts
213
- /** Shown when an autocomplete suggestion has no street (city/region-level result). */
214
- const STREET_LEVEL_REQUIRED_ERROR = { key: "verification.errors.streetLevelRequired" };
215
- function isStreetMissingFromSuggestion(suggestion) {
216
- return !suggestion.street?.trim();
217
- }
218
- /**
219
- * Validation error for `street` after selecting a suggestion without `street`,
220
- * or `undefined` when the suggestion is street-level or street is not active.
221
- */
222
- function getStreetLevelErrorForSuggestion(suggestion, activeFields) {
223
- if (!activeFields.has("street")) return void 0;
224
- return isStreetMissingFromSuggestion(suggestion) ? STREET_LEVEL_REQUIRED_ERROR : void 0;
225
- }
226
- /**
227
- * Fills form values from an address autocomplete suggestion.
228
- * Shared between eKYC and eKYB address forms.
229
- */
230
- function fillFromSuggestion(values, touched, suggestion, activeFields) {
231
- const newValues = { ...values };
232
- const newTouched = { ...touched };
233
- const hasHouseNoField = !activeFields || activeFields.has("houseNo");
234
- const hasStreetField = !activeFields || activeFields.has("street");
235
- const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
236
- if (hasStreetField) {
237
- newValues.street = streetValue;
238
- newTouched.street = true;
239
- }
240
- if (suggestion.city) {
241
- newValues.city = suggestion.city;
242
- newTouched.city = true;
243
- }
244
- if (suggestion.stateCode) {
245
- newValues.state = suggestion.stateCode;
246
- newTouched.state = true;
247
- }
248
- if (suggestion.postalCode) {
249
- newValues.postalCode = suggestion.postalCode;
250
- newTouched.postalCode = true;
251
- }
252
- if (suggestion.houseNumber && hasHouseNoField) {
253
- newValues.houseNo = suggestion.houseNumber;
254
- newTouched.houseNo = true;
255
- }
256
- return {
257
- values: newValues,
258
- touched: newTouched
259
- };
260
- }
261
- function buildStreetValue(street, houseNumber, hasHouseNoField) {
262
- if (hasHouseNoField) return street ?? "";
263
- if (houseNumber && street) return `${houseNumber} ${street}`;
264
- return houseNumber ?? street ?? "";
265
- }
266
- //#endregion
267
- //#region src/shared/displayErrors.ts
268
- const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
269
- const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
270
- US: 10,
271
- BR: 9,
272
- GB: 8,
273
- UK: 8,
274
- AR: 8,
275
- CA: 7,
276
- NL: 6,
277
- PT: 8
278
- };
279
- const FIXED_LENGTH_KEY = "verification.errors.invalidPostalCodeFixedLength";
280
- /**
281
- * Countries whose postal code is a fixed number of digits. It sets the
282
- * check, the input's max length and the digits-only typing mask.
283
- */
284
- const FIXED_DIGIT_POSTAL_CODE_LENGTH = {
285
- BE: 4,
286
- DK: 4,
287
- NO: 4,
288
- PH: 4,
289
- DE: 5,
290
- ES: 5,
291
- FI: 5,
292
- FR: 5,
293
- GR: 5,
294
- IT: 5,
295
- KE: 5,
296
- MX: 5,
297
- CN: 6,
298
- IN: 6,
299
- NG: 6,
300
- SG: 6,
301
- IL: 7
302
- };
303
- function getPostalCodeMaxLength(country) {
304
- return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? FIXED_DIGIT_POSTAL_CODE_LENGTH[country] ?? 8;
305
- }
306
- function getPostalCodeErrorKey(country) {
307
- if (country in FIXED_DIGIT_POSTAL_CODE_LENGTH) return FIXED_LENGTH_KEY;
308
- if (country === "CA") return "verification.errors.CAPostalCodeInvalidFormat";
309
- if (country === "AR") return "verification.errors.ARPostalCodeInvalidFormat";
310
- if (country === "GB" || country === "UK") return "verification.errors.UKPostalCodeInvalidFormat";
311
- if (country === "NL") return "verification.errors.NLPostalCodeInvalidFormat";
312
- if (country === "PT") return "verification.errors.PTPostalCodeInvalidFormat";
313
- if (country === "US") return "verification.errors.zipCodeInvalidFormat";
314
- return "verification.errors.postalCodeInvalidFormat";
315
- }
316
- const US_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{9}|\d{5}-\d{4})$/;
317
- const BR_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{8}|\d{5}-\d{3})$/;
318
- const CA_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$/;
319
- const UK_POSTAL_CODE_REGEX = /^(?:[A-Z]{2}\d|[A-Z]{2}\d{2}|[A-Z]\d|[A-Z]\d{2}|[A-Z]\d[A-Z]|[A-Z]{2}\d[A-Z]) \d[A-Z]{2}$/;
320
- const AR_POSTAL_CODE_REGEX = /^[A-Za-z]\d{4}[A-Za-z]{3}$/;
321
- /** Four digits and two uppercase letters, such as 1016DV. */
322
- const NL_POSTAL_CODE_REGEX = /^\d{4}[A-Z]{2}$/;
323
- /** Seven digits, the first 1 to 9, with or without a hyphen: 4430-458. */
324
- const PT_POSTAL_CODE_REGEX = /^[1-9]\d{3}-?\d{3}$/;
325
- /**
326
- * Validates a postal code by country.
327
- * Covers all countries used by eKYC and eKYB.
328
- */
329
- function validatePostalCode(postalCode, country) {
330
- if (!postalCode) return false;
331
- const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
332
- if (fixedDigits !== void 0) return postalCode.length === fixedDigits && /^\d+$/.test(postalCode);
333
- switch (country) {
334
- case "US": return US_POSTAL_CODE_REGEX.test(postalCode);
335
- case "BR": return BR_POSTAL_CODE_REGEX.test(postalCode);
336
- case "CA": return CA_POSTAL_CODE_REGEX.test(postalCode);
337
- case "GB":
338
- case "UK": return UK_POSTAL_CODE_REGEX.test(postalCode.toUpperCase());
339
- case "AR": return AR_POSTAL_CODE_REGEX.test(postalCode.replace(/\s/g, "").toUpperCase());
340
- case "NL": return NL_POSTAL_CODE_REGEX.test(postalCode);
341
- case "PT": return PT_POSTAL_CODE_REGEX.test(postalCode);
342
- case "CM": return postalCode.length > 0;
343
- default: {
344
- const stripped = postalCode.replace(/\D/g, "");
345
- return /^\d+$/.test(stripped) && [5, 8].includes(stripped.length);
346
- }
347
- }
348
- }
349
- /**
350
- * Progressively formats postal code input by country.
351
- * Covers all countries used by eKYC and eKYB.
352
- */
353
- function formatPostalCode(value, country) {
354
- const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
355
- if (fixedDigits !== void 0) return value.replace(/\D/g, "").slice(0, fixedDigits);
356
- if (country === "US" || country === "BR") {
357
- const maxDigits = country === "US" ? 9 : 8;
358
- const hasDash = value.includes("-");
359
- const digits = value.replace(/\D/g, "").slice(0, maxDigits);
360
- if (digits.length <= 5) {
361
- if (hasDash && digits.length === 5) return `${digits}-`;
362
- return digits;
363
- }
364
- if (hasDash) return `${digits.slice(0, 5)}-${digits.slice(5)}`;
365
- return digits;
366
- }
367
- if (country === "CA") {
368
- const normalized = value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 6);
369
- if (normalized.length <= 3) return normalized;
370
- return `${normalized.slice(0, 3)} ${normalized.slice(3)}`;
371
- }
372
- if (country === "GB" || country === "UK") {
373
- const normalized = value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 7);
374
- if (normalized.length <= 3) return normalized;
375
- return `${normalized.slice(0, -3)} ${normalized.slice(-3)}`;
376
- }
377
- if (country === "AR") return value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 8);
378
- if (country === "PT") {
379
- const digits = value.replace(/\D/g, "").slice(0, 7);
380
- return digits.length <= 4 ? digits : `${digits.slice(0, 4)}-${digits.slice(4)}`;
381
- }
382
- if (country === "NL") return `${value.replace(/\D/g, "").slice(0, 4)}${value.replace(/[^A-Za-z]/g, "").slice(0, 2).toUpperCase()}`;
383
- return value.slice(0, 8);
384
- }
385
- //#endregion
386
- //#region src/internal/forms/checkSupport.ts
387
- const GROUP_POLICIES = /* @__PURE__ */ new Set(["hide", "forceShow"]);
388
- /**
389
- * Compares `major.minor` vocabulary versions. The compiler's twin is
390
- * `compareVersions` in `packages/form-definitions/scripts/lib/checks.mjs`;
391
- * both are tested against that package's `fixtures/vocabularyVersions.json`.
392
- */
393
- function compareVocabulary(a, b) {
394
- const [aMajor = 0, aMinor = 0] = a.split(".").map(Number);
395
- const [bMajor = 0, bMinor = 0] = b.split(".").map(Number);
396
- return aMajor - bMajor || aMinor - bMinor;
397
- }
398
- /**
399
- * Whether this build can use a definition. Any id it doesn't implement makes
400
- * the definition unsupported, so the caller falls back to its bundled
401
- * definition or current form. Presentation hints (widget, keyboard, autofill)
402
- * never fail: an unknown hint falls back to the platform default.
403
- */
404
- function checkSupport(definition, ids) {
405
- const problems = [];
406
- const need = (category, known, id, path) => {
407
- if (!known.has(id)) problems.push({
408
- category,
409
- id,
410
- path
411
- });
412
- };
413
- if (!ids.schemaVersions.includes(definition.schemaVersion)) problems.push({
414
- category: "schemaVersion",
415
- id: String(definition.schemaVersion),
416
- path: "schemaVersion"
417
- });
418
- if (compareVocabulary(definition.vocabulary, ids.vocabulary) > 0) problems.push({
419
- category: "vocabulary",
420
- id: definition.vocabulary,
421
- path: "vocabulary"
422
- });
423
- const checkField = (field, path) => {
424
- need("kind", ids.kinds, field.kind, `${path}.kind`);
425
- need("group", ids.groups, field.group, `${path}.group`);
426
- field.rules?.forEach((rule, i) => need("rule", ids.rules, rule.id, `${path}.rules[${i}]`));
427
- field.input?.format?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.input.format[${i}]`));
428
- field.payload?.transforms?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.payload.transforms[${i}]`));
429
- if (field.optionsRef) need("optionList", ids.optionLists, field.optionsRef, `${path}.optionsRef`);
430
- if (field.suggestionsRef) need("optionList", ids.optionLists, field.suggestionsRef, `${path}.suggestionsRef`);
431
- field.requiredWhen?.forEach((condition, i) => {
432
- const keys = Object.keys(condition);
433
- if (keys.length !== 1) problems.push({
434
- category: "condition",
435
- id: keys.join("+") || "(empty)",
436
- path: `${path}.requiredWhen[${i}]`
437
- });
438
- for (const key of keys) need("condition", ids.conditions, key, `${path}.requiredWhen[${i}]`);
439
- });
440
- field.prefill?.forEach((id, i) => need("prefillSource", ids.prefillSources, id, `${path}.prefill[${i}]`));
441
- const lock = field.phone?.lockCountry;
442
- if (typeof lock === "string" && lock !== "whenPhoneRisk") problems.push({
443
- category: "phoneLock",
444
- id: lock,
445
- path: `${path}.phone`
446
- });
447
- };
448
- definition.fields.forEach((field) => checkField(field, `fields.${field.name}`));
449
- definition.groups?.forEach((policy) => {
450
- need("group", ids.groups, policy.group, `groups.${policy.group}`);
451
- if (!GROUP_POLICIES.has(policy.whenDisabled)) problems.push({
452
- category: "groupPolicy",
453
- id: policy.whenDisabled,
454
- path: `groups.${policy.group}`
455
- });
456
- });
457
- definition.groupRules?.forEach((rule, i) => {
458
- need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`);
459
- const cases = rule.id === "rulesByOption" ? rule.params?.cases : void 0;
460
- if (cases && typeof cases === "object" && !Array.isArray(cases)) for (const [value, rules] of Object.entries(cases)) {
461
- if (!Array.isArray(rules)) continue;
462
- rules.forEach((ref, j) => {
463
- const id = ref?.id;
464
- need("rule", ids.rules, typeof id === "string" ? id : "(missing)", `groupRules[${i}].params.cases.${value}[${j}]`);
465
- });
466
- }
467
- });
468
- definition.collections?.forEach((collection) => {
469
- need("group", ids.groups, collection.group, `collections.${collection.id}`);
470
- collection.fields.forEach((field) => checkField(field, `collections.${collection.id}.fields.${field.name}`));
471
- });
472
- return problems.length === 0 ? { supported: true } : {
473
- supported: false,
474
- problems
475
- };
476
- }
477
- //#endregion
478
- //#region src/internal/forms/definitionSource.ts
479
- const queryKey = ({ module, source, country }) => `${module}|${source ?? ""}|${country ?? ""}`;
480
- /**
481
- * The definitions bundled with this build. Matches module, source and country
482
- * exactly, so a pair without its own definition keeps the current builder.
483
- */
484
- function createBundledDefinitionSource(definitions) {
485
- const byQuery = new Map(Object.values(definitions).map((definition) => [queryKey(definition), definition]));
486
- return { select: (query) => byQuery.get(queryKey(query)) };
487
- }
488
- //#endregion
489
- //#region src/internal/forms/resolveForm.ts
490
- const FORCE_SHOW = "forceShow";
491
- const WHEN_PHONE_RISK = "whenPhoneRisk";
492
- /**
493
- * Resolves a definition against module configuration: which fields show,
494
- * which are required, whether the phone is locked, and which group rules and
495
- * collections apply. Pure and synchronous, so it runs inside an assign action.
496
- *
497
- * Call `checkSupport` first for any definition that wasn't bundled with this
498
- * build; `resolveForm` ignores ids it doesn't know.
499
- */
500
- function resolveForm(definition, context) {
501
- const forcedGroups = new Set((definition.groups ?? []).filter((policy) => policy.whenDisabled === FORCE_SHOW).map((policy) => policy.group));
502
- const isOn = (group) => context.groups[group] === true;
503
- const isShown = (group) => isOn(group) || forcedGroups.has(group);
504
- const riskAddons = new Set(context.riskAddons ?? []);
505
- const shownFields = definition.fields.filter((field) => isShown(field.group));
506
- const shownNames = new Set(shownFields.map((field) => field.name));
507
- const fields = shownFields.map((field) => {
508
- const conditions = field.requiredWhen ?? [];
509
- const addonRequired = conditions.some((condition) => condition.riskAddon !== void 0 && riskAddons.has(condition.riskAddon));
510
- const requiredIfFilled = conditions.map((condition) => condition.fieldFilled).filter((name) => name !== void 0 && shownNames.has(name));
511
- const lock = field.phone?.lockCountry;
512
- return {
513
- field,
514
- required: field.required === true || addonRequired,
515
- requiredIfFilled,
516
- forced: !isOn(field.group),
517
- phoneLocked: field.kind === "phone" && (lock === true || lock === WHEN_PHONE_RISK && context.phoneRisk === true)
518
- };
519
- });
520
- const order = shownFields.map((field) => field.name);
521
- return {
522
- definition,
523
- fields,
524
- groupRules: (definition.groupRules ?? []).map((rule) => ({
525
- rule,
526
- fields: order.filter((name) => rule.fields.includes(name))
527
- })).filter((resolved) => resolved.fields.length > 0),
528
- collections: (definition.collections ?? []).filter((collection) => isShown(collection.group)).map((collection) => ({
529
- collection,
530
- min: collection.min ?? 0,
531
- max: collection.max
532
- }))
533
- };
534
- }
535
- //#endregion
536
- //#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
537
- /**
538
- * The rollout switch for form definitions (ENG-59781): one all-or-nothing
539
- * answer to "do eKYC and eKYB build their forms from catalog definitions, or
540
- * with today's builders?". Both module adapters ask it before selecting a
541
- * definition (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
542
- * (`internal/forms`) knows nothing about it.
543
- *
544
- * Off by default, so every source and country keeps today's builder. A
545
- * catalog-only eKYC source, one today's builder never knew, uses its
546
- * definition either way, since it has no old path to fall back to.
547
- *
548
- * This is Incode's rollout decision, not the integrator's: it is not a
549
- * `setup()` option. A later step reads a Statsig gate here instead of the
550
- * constant.
551
- */
552
- const ENABLED_BY_DEFAULT = false;
553
- /** Whether sources and countries with a form definition use it. */
554
- function isFormDefinitionsEnabled() {
555
- return ENABLED_BY_DEFAULT;
556
- }
557
- //#endregion
558
- //#region src/shared/addressSearch.ts
559
- /** Searches for address suggestions via the address autocomplete API. */
560
- async function searchAddress(query, signal) {
561
- const res = await api.post(endpoints.addressAutocomplete, { search: query }, { signal });
562
- if (!res.ok) throw new Error(`POST ${endpoints.addressAutocomplete} failed: ${res.status} ${res.statusText}`);
563
- return { apiResponse: { items: (res.data.apiResponse?.items ?? []).map((item, i) => {
564
- const addr = item.address ?? item;
565
- return {
566
- id: item.id ?? i,
567
- label: addr.label ?? item.title ?? "",
568
- street: addr.street,
569
- city: addr.city,
570
- stateCode: addr.stateCode ?? addr.state,
571
- postalCode: addr.postalCode,
572
- houseNumber: addr.houseNumber,
573
- countryCode: addr.countryCode
574
- };
575
- }) } };
576
- }
577
- const DEBOUNCE_MS = 300;
578
- /**
579
- * XState callback actor that debounces address search requests.
580
- * Cancels in-flight HTTP requests when the actor is stopped.
581
- */
582
- const debounceSearchActor = fromCallback(({ input, sendBack }) => {
583
- const timerProvider = BrowserTimerProvider.getInstance();
584
- const controller = new AbortController();
585
- const handle = timerProvider.setTimeout(async () => {
586
- try {
587
- sendBack({
588
- type: "RESULTS",
589
- suggestions: (await searchAddress(input.query, controller.signal)).apiResponse?.items ?? []
590
- });
591
- } catch {
592
- if (!controller.signal.aborted) sendBack({
593
- type: "RESULTS",
594
- suggestions: []
595
- });
596
- }
597
- }, DEBOUNCE_MS);
598
- return () => {
599
- timerProvider.clearTimeout(handle);
600
- controller.abort();
601
- };
602
- });
603
- //#endregion
604
- export { usStates as _, createBundledDefinitionSource as a, formatPostalCode as c, validatePostalCode as d, DYNAMIC_REQUIRED_KEY as f, usStateOptions as g, getStreetLevelErrorForSuggestion as h, resolveForm as i, getPostalCodeErrorKey as l, fillFromSuggestion as m, searchAddress as n, checkSupport as o, STREET_LEVEL_REQUIRED_ERROR as p, isFormDefinitionsEnabled as r, FIXED_DIGIT_POSTAL_CODE_LENGTH as s, debounceSearchActor as t, getPostalCodeMaxLength as u };
@@ -1,33 +0,0 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
2
- import { u as trueSightLog } from "./trueSightService-BujtUIW6.esm.js";
3
- import { t as SDK_VERSION } from "./sdkVersion-C3_P-Qbq.esm.js";
4
- import { b as IpifyProvider, n as getFingerprintEnabled, t as getDisableIpify, x as BrowserEnvironmentProvider } from "./sessionInitializer-CWFT4dfw.esm.js";
5
- import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BhU5H2oR.esm.js";
6
- import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
7
- import { t as createDeepsightService } from "./deepsightService-twg3bXqY.esm.js";
8
- //#region src/internal/deepsight/deepsightLoader.ts
9
- async function loadDeepsightSession(options) {
10
- try {
11
- return await loadDeepsightSessionInternal(options);
12
- } catch (error) {
13
- trueSightLog("warning", "deepsight", "other", `deepsight load failed error=${String(error)}`);
14
- throw error;
15
- }
16
- }
17
- async function loadDeepsightSessionInternal(options) {
18
- setWasmDsFlagSync(options.ds === true);
19
- const service = createDeepsightService({
20
- sdkVersion: SDK_VERSION,
21
- wasmUtil: await WasmUtilProvider.getInstance(),
22
- browserEnv: new BrowserEnvironmentProvider(),
23
- motionSensor: new MotionSensorProvider(),
24
- ipLookup: new IpifyProvider()
25
- });
26
- const disableIpify = options.disableIpify ?? getDisableIpify();
27
- const disableFingerprint = options.disableFingerprint ?? !getFingerprintEnabled();
28
- await service.initialize(disableIpify, disableFingerprint);
29
- await service.startMotionSensors();
30
- return service;
31
- }
32
- //#endregion
33
- export { loadDeepsightSession };