@incodetech/core 0.0.0-dev-20261104-4dbc3ea3 → 0.0.0-dev-20261104-49452fc0
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.
- package/dist/{FaceDetectionProvider-Clp2STaL.esm.js → FaceDetectionProvider-YEIZbGDi.esm.js} +9 -9
- package/dist/{WasmUtilProvider-DZOGC2HE.esm.js → WasmUtilProvider-BP6-08Yn.esm.js} +2 -2
- package/dist/{addressSearch-41sMcnJk.esm.js → addressSearch-DzbE9Ogt.esm.js} +2 -352
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
- package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
- package/dist/{api-BO8JA7Pf.esm.js → api-CpP4PS4S.esm.js} +2 -0
- package/dist/{apiError-BYiBD0Ua.esm.js → apiError-b2fuT-IQ.esm.js} +1 -1
- package/dist/{attemptCarry-C8NbkPlt.esm.js → attemptCarry-WOkfvFMw.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager--l6e_7Pr.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
- package/dist/{authenticationManager-D3MYWvA6.esm.js → authenticationManager-x8mqpHOE.esm.js} +5 -5
- package/dist/{authenticationStateMachine-BCTipd5K.esm.js → authenticationStateMachine-C5Jln1aT.esm.js} +3 -3
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DMlSL6Ax.esm.js} +2 -2
- package/dist/{consentManager-D8rgr5Dv.d.ts → consentManager-ybzeu6sI.d.ts} +5 -5
- package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-C7t3QLf-.esm.js → curpValidationManager-DNpC3wyf.esm.js} +2 -2
- package/dist/{curpValidationManager-B9LuZ0tj.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-DAFndzpo.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
- package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
- package/dist/{deepsightLoader-AYvov0JE.esm.js → deepsightLoader-DEaTmOtV.esm.js} +5 -5
- package/dist/{desktopCameraElection-CzF8HsJn.esm.js → desktopCameraElection-CvVbR9-p.esm.js} +4 -4
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BfXguEU3.esm.js → documentCaptureManager-CNF5LNmp.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-DJPyCwQu.esm.js → documentCaptureStateMachine-p8yovofp.esm.js} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Dt8hp7Xd.esm.js → dynamicFormsManager-f8riHilf.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DLAvflmE.esm.js → dynamicFormsStateMachine-Dt4_Fsxk.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-D2iEUBPj.esm.js → ekybManager-BwBdOOMz.esm.js} +2 -2
- package/dist/{ekybStateMachine-PH1hy6T0.esm.js → ekybStateMachine-Cr_wkUnH.esm.js} +4 -3
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-Be6T7RJs.esm.js → ekycManager-CoWoHxtL.esm.js} +2 -2
- package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
- package/dist/{ekycStateMachine-DZbKVMgq.esm.js → ekycStateMachine-DOWVsq7o.esm.js} +5 -67
- package/dist/{ekycUtils-ChD5TcJH.esm.js → ekycUtils-as4sEjNz.esm.js} +59 -8
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DDL-ylsJ.esm.js → electronicSignatureManager-DRPy_cGL.esm.js} +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CDhBis0c.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
- package/dist/{emailStateMachine-D6WedIVj.esm.js → emailStateMachine-KgHfDNvM.esm.js} +2 -2
- package/dist/{events-CQteqXfy.esm.js → events-ggpBBaZ8.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +15 -14
- package/dist/extensibility.esm.js +36 -35
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-tFqvK5KO.esm.js → faceCaptureManagerFactory-Bl3wOB84.esm.js} +4 -4
- package/dist/{faceCaptureManagerFactory-BQtDMMuq.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +3 -3
- package/dist/{faceCaptureSetup-B8W4cid6.esm.js → faceCaptureSetup-zI6zgq4z.esm.js} +11 -11
- package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +2 -2
- package/dist/{feature-management-C5QYxdqM.esm.js → feature-management-DQFwX8Hl.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Bj2YnPFD.esm.js → fiscalQrManager-BZeklojR.esm.js} +2 -2
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +7 -7
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-CHf7rcBO.esm.js → flowCompletionService-DHFje7x-.esm.js} +2 -2
- package/dist/{flowServices-BWnaP5s0.esm.js → flowServices-Cb0iHJVG.esm.js} +8 -8
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CbRv_K1Y.esm.js → geolocationManager-Cw8v5-5V.esm.js} +2 -2
- package/dist/{geolocationStateMachine-BdDTTyAI.esm.js → geolocationStateMachine-ma-iPEHx.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BOIM1God.esm.js → idCaptureDefaults-CnAGmc1o.esm.js} +3 -3
- package/dist/{idCaptureManager-BwnhLz9C.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +2 -2
- package/dist/{idCaptureManager-CWlC3EJz.esm.js → idCaptureManager-DSTzKvSp.esm.js} +8 -8
- package/dist/{idCaptureServices-D9d-qtrS.esm.js → idCaptureServices-DrnyYM5Z.esm.js} +5 -5
- package/dist/{idCaptureStateMachine-zmw_aQU4.esm.js → idCaptureStateMachine-Cx8jXNgx.esm.js} +17 -17
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
- package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
- package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +1 -1
- package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
- package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
- package/dist/{index-D2xVKjpi.d.ts → index-DC0P2Vzw.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-DswTVAz4.esm.js +89 -0
- package/dist/kybChecksStateMachine-DI_5RyBk.esm.js +718 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-BeVif8kS.d.ts → mandatoryConsentManager-6e3_CcJt.d.ts} +6 -6
- package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +1 -1
- package/dist/{multipartRecordingService-Cp2NhhmP.esm.js → multipartRecordingService-BTqkHGG9.esm.js} +1 -1
- package/dist/{permissionGuards-Dck-ZReK.esm.js → permissionGuards-s7Qm6q8W.esm.js} +1 -1
- package/dist/{permissionServices-CJSZshmj.esm.js → permissionServices-RawRSsLZ.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
- package/dist/{phoneManager-DLFQqWDV.esm.js → phoneManager-Dy5tODCU.esm.js} +2 -2
- package/dist/{phoneServices-Cn4uBGpN.esm.js → phoneServices-DJgyOzU2.esm.js} +1 -1
- package/dist/{phoneStateMachine-BLFIfxPy.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +19 -9
- package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-Bst83HaS.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-zbt2C0w0.esm.js → recordingService-CTko6Cjn.esm.js} +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +39 -21
- package/dist/resolveForm-O7-r79VA.esm.js +351 -0
- package/dist/{runChildModule-DqeR4WUi.esm.js → runChildModule-qXpd7G2p.esm.js} +2 -2
- package/dist/{sdkVersion-DvR2zcLB.esm.js → sdkVersion-WYkWwTmz.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-DfQnVgaQ.esm.js → selfieErrorUtils-f3lQlFEy.esm.js} +1 -1
- package/dist/{selfieManager-BDStgLz_.esm.js → selfieManager-B8swkeIe.esm.js} +5 -5
- package/dist/{selfieManager-DMFBTmjl.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
- package/dist/{selfieStateMachine-Bkwmpva6.esm.js → selfieStateMachine-CGMAbg6e.esm.js} +3 -3
- package/dist/{session-D8sTB7-6.esm.js → session-sPZ3TAsp.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-CdOpCvp3.esm.js → sessionInitializer-C2NbBy_s.esm.js} +13 -10
- package/dist/{setup-Cj8cl6ne.esm.js → setup-C86PfxZS.esm.js} +25 -22
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
- package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
- package/dist/{stats-BpMz-hTP.esm.js → stats-CatA2dea.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{trueSightService-h_nIpoO_.esm.js → trueSightService-JP7_wQle.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-CfGxl1G0.d.ts → types-BEVHQbbC.d.ts} +1 -1
- package/dist/{types-XwxtmhWC.d.ts → types-BPm1JSu7.d.ts} +1 -1
- package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-DPc-3Uo6.d.ts → types-CRaFu6wS.d.ts} +3 -1
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-bn0ZpYF1.d.ts → types-Cd0J0F9D.d.ts} +1 -1
- package/dist/{types-CAawq94W.d.ts → types-Csh8vzPo.d.ts} +1 -1
- package/dist/{types-B2FK_wYb.d.ts → types-CuMJ2M7D.d.ts} +2 -41
- package/dist/types-J6g6iKe_.d.ts +6 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +7 -7
- package/dist/{videoSelfieCameraWarmer-DqQPTyle.esm.js → videoSelfieCameraWarmer-gdlCA1VK.esm.js} +6 -6
- package/dist/{videoSelfieStepDetector-C8uL2RCz.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +2 -2
- package/dist/{warmup-DPfXWeBq.esm.js → warmup-BUnab2eW.esm.js} +24 -17
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-Ck2Lt6OY.esm.js → wasmDsFlagSync-DhJXZ9el.esm.js} +1 -1
- package/dist/{wasmWebClient-DClKyqNR.esm.js → wasmWebClient-CowdFxEv.esm.js} +12 -9
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-DdaPl2PS.esm.js} +1 -1
- package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +40 -40
- package/package.json +6 -1
- package/dist/types-BZ_Hjz-X.d.ts +0 -6
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
//#region src/shared/usStates.ts
|
|
2
|
+
const usStates = {
|
|
3
|
+
AL: {
|
|
4
|
+
code: "AL",
|
|
5
|
+
name: "Alabama"
|
|
6
|
+
},
|
|
7
|
+
AK: {
|
|
8
|
+
code: "AK",
|
|
9
|
+
name: "Alaska"
|
|
10
|
+
},
|
|
11
|
+
AZ: {
|
|
12
|
+
code: "AZ",
|
|
13
|
+
name: "Arizona"
|
|
14
|
+
},
|
|
15
|
+
AR: {
|
|
16
|
+
code: "AR",
|
|
17
|
+
name: "Arkansas"
|
|
18
|
+
},
|
|
19
|
+
CA: {
|
|
20
|
+
code: "CA",
|
|
21
|
+
name: "California"
|
|
22
|
+
},
|
|
23
|
+
CO: {
|
|
24
|
+
code: "CO",
|
|
25
|
+
name: "Colorado"
|
|
26
|
+
},
|
|
27
|
+
CT: {
|
|
28
|
+
code: "CT",
|
|
29
|
+
name: "Connecticut"
|
|
30
|
+
},
|
|
31
|
+
DE: {
|
|
32
|
+
code: "DE",
|
|
33
|
+
name: "Delaware"
|
|
34
|
+
},
|
|
35
|
+
FL: {
|
|
36
|
+
code: "FL",
|
|
37
|
+
name: "Florida"
|
|
38
|
+
},
|
|
39
|
+
GA: {
|
|
40
|
+
code: "GA",
|
|
41
|
+
name: "Georgia"
|
|
42
|
+
},
|
|
43
|
+
HI: {
|
|
44
|
+
code: "HI",
|
|
45
|
+
name: "Hawaii"
|
|
46
|
+
},
|
|
47
|
+
ID: {
|
|
48
|
+
code: "ID",
|
|
49
|
+
name: "Idaho"
|
|
50
|
+
},
|
|
51
|
+
IL: {
|
|
52
|
+
code: "IL",
|
|
53
|
+
name: "Illinois"
|
|
54
|
+
},
|
|
55
|
+
IN: {
|
|
56
|
+
code: "IN",
|
|
57
|
+
name: "Indiana"
|
|
58
|
+
},
|
|
59
|
+
IA: {
|
|
60
|
+
code: "IA",
|
|
61
|
+
name: "Iowa"
|
|
62
|
+
},
|
|
63
|
+
KS: {
|
|
64
|
+
code: "KS",
|
|
65
|
+
name: "Kansas"
|
|
66
|
+
},
|
|
67
|
+
KY: {
|
|
68
|
+
code: "KY",
|
|
69
|
+
name: "Kentucky"
|
|
70
|
+
},
|
|
71
|
+
LA: {
|
|
72
|
+
code: "LA",
|
|
73
|
+
name: "Louisiana"
|
|
74
|
+
},
|
|
75
|
+
ME: {
|
|
76
|
+
code: "ME",
|
|
77
|
+
name: "Maine"
|
|
78
|
+
},
|
|
79
|
+
MD: {
|
|
80
|
+
code: "MD",
|
|
81
|
+
name: "Maryland"
|
|
82
|
+
},
|
|
83
|
+
MA: {
|
|
84
|
+
code: "MA",
|
|
85
|
+
name: "Massachusetts"
|
|
86
|
+
},
|
|
87
|
+
MI: {
|
|
88
|
+
code: "MI",
|
|
89
|
+
name: "Michigan"
|
|
90
|
+
},
|
|
91
|
+
MN: {
|
|
92
|
+
code: "MN",
|
|
93
|
+
name: "Minnesota"
|
|
94
|
+
},
|
|
95
|
+
MS: {
|
|
96
|
+
code: "MS",
|
|
97
|
+
name: "Mississippi"
|
|
98
|
+
},
|
|
99
|
+
MO: {
|
|
100
|
+
code: "MO",
|
|
101
|
+
name: "Missouri"
|
|
102
|
+
},
|
|
103
|
+
MT: {
|
|
104
|
+
code: "MT",
|
|
105
|
+
name: "Montana"
|
|
106
|
+
},
|
|
107
|
+
NE: {
|
|
108
|
+
code: "NE",
|
|
109
|
+
name: "Nebraska"
|
|
110
|
+
},
|
|
111
|
+
NV: {
|
|
112
|
+
code: "NV",
|
|
113
|
+
name: "Nevada"
|
|
114
|
+
},
|
|
115
|
+
NH: {
|
|
116
|
+
code: "NH",
|
|
117
|
+
name: "New Hampshire"
|
|
118
|
+
},
|
|
119
|
+
NJ: {
|
|
120
|
+
code: "NJ",
|
|
121
|
+
name: "New Jersey"
|
|
122
|
+
},
|
|
123
|
+
NM: {
|
|
124
|
+
code: "NM",
|
|
125
|
+
name: "New Mexico"
|
|
126
|
+
},
|
|
127
|
+
NY: {
|
|
128
|
+
code: "NY",
|
|
129
|
+
name: "New York"
|
|
130
|
+
},
|
|
131
|
+
NC: {
|
|
132
|
+
code: "NC",
|
|
133
|
+
name: "North Carolina"
|
|
134
|
+
},
|
|
135
|
+
ND: {
|
|
136
|
+
code: "ND",
|
|
137
|
+
name: "North Dakota"
|
|
138
|
+
},
|
|
139
|
+
OH: {
|
|
140
|
+
code: "OH",
|
|
141
|
+
name: "Ohio"
|
|
142
|
+
},
|
|
143
|
+
OK: {
|
|
144
|
+
code: "OK",
|
|
145
|
+
name: "Oklahoma"
|
|
146
|
+
},
|
|
147
|
+
OR: {
|
|
148
|
+
code: "OR",
|
|
149
|
+
name: "Oregon"
|
|
150
|
+
},
|
|
151
|
+
PA: {
|
|
152
|
+
code: "PA",
|
|
153
|
+
name: "Pennsylvania"
|
|
154
|
+
},
|
|
155
|
+
RI: {
|
|
156
|
+
code: "RI",
|
|
157
|
+
name: "Rhode Island"
|
|
158
|
+
},
|
|
159
|
+
SC: {
|
|
160
|
+
code: "SC",
|
|
161
|
+
name: "South Carolina"
|
|
162
|
+
},
|
|
163
|
+
SD: {
|
|
164
|
+
code: "SD",
|
|
165
|
+
name: "South Dakota"
|
|
166
|
+
},
|
|
167
|
+
TN: {
|
|
168
|
+
code: "TN",
|
|
169
|
+
name: "Tennessee"
|
|
170
|
+
},
|
|
171
|
+
TX: {
|
|
172
|
+
code: "TX",
|
|
173
|
+
name: "Texas"
|
|
174
|
+
},
|
|
175
|
+
UT: {
|
|
176
|
+
code: "UT",
|
|
177
|
+
name: "Utah"
|
|
178
|
+
},
|
|
179
|
+
VT: {
|
|
180
|
+
code: "VT",
|
|
181
|
+
name: "Vermont"
|
|
182
|
+
},
|
|
183
|
+
VA: {
|
|
184
|
+
code: "VA",
|
|
185
|
+
name: "Virginia"
|
|
186
|
+
},
|
|
187
|
+
WA: {
|
|
188
|
+
code: "WA",
|
|
189
|
+
name: "Washington"
|
|
190
|
+
},
|
|
191
|
+
WV: {
|
|
192
|
+
code: "WV",
|
|
193
|
+
name: "West Virginia"
|
|
194
|
+
},
|
|
195
|
+
WI: {
|
|
196
|
+
code: "WI",
|
|
197
|
+
name: "Wisconsin"
|
|
198
|
+
},
|
|
199
|
+
WY: {
|
|
200
|
+
code: "WY",
|
|
201
|
+
name: "Wyoming"
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
const usStateOptions = Object.values(usStates).map((state) => ({
|
|
205
|
+
value: state.code,
|
|
206
|
+
label: state.name
|
|
207
|
+
}));
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/shared/displayErrors.ts
|
|
210
|
+
const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/internal/forms/checkSupport.ts
|
|
213
|
+
const GROUP_POLICIES = /* @__PURE__ */ new Set(["hide", "forceShow"]);
|
|
214
|
+
/**
|
|
215
|
+
* Compares `major.minor` vocabulary versions. The compiler's twin is
|
|
216
|
+
* `compareVersions` in `packages/form-definitions/scripts/lib/checks.mjs`;
|
|
217
|
+
* both are tested against that package's `fixtures/vocabularyVersions.json`.
|
|
218
|
+
*/
|
|
219
|
+
function compareVocabulary(a, b) {
|
|
220
|
+
const [aMajor = 0, aMinor = 0] = a.split(".").map(Number);
|
|
221
|
+
const [bMajor = 0, bMinor = 0] = b.split(".").map(Number);
|
|
222
|
+
return aMajor - bMajor || aMinor - bMinor;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Whether this build can use a definition. Any id it doesn't implement makes
|
|
226
|
+
* the definition unsupported, so the caller falls back to its bundled
|
|
227
|
+
* definition or current form. Presentation hints (widget, keyboard, autofill)
|
|
228
|
+
* never fail: an unknown hint falls back to the platform default.
|
|
229
|
+
*/
|
|
230
|
+
function checkSupport(definition, ids) {
|
|
231
|
+
const problems = [];
|
|
232
|
+
const need = (category, known, id, path) => {
|
|
233
|
+
if (!known.has(id)) problems.push({
|
|
234
|
+
category,
|
|
235
|
+
id,
|
|
236
|
+
path
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
if (!ids.schemaVersions.includes(definition.schemaVersion)) problems.push({
|
|
240
|
+
category: "schemaVersion",
|
|
241
|
+
id: String(definition.schemaVersion),
|
|
242
|
+
path: "schemaVersion"
|
|
243
|
+
});
|
|
244
|
+
if (compareVocabulary(definition.vocabulary, ids.vocabulary) > 0) problems.push({
|
|
245
|
+
category: "vocabulary",
|
|
246
|
+
id: definition.vocabulary,
|
|
247
|
+
path: "vocabulary"
|
|
248
|
+
});
|
|
249
|
+
const checkField = (field, path) => {
|
|
250
|
+
need("kind", ids.kinds, field.kind, `${path}.kind`);
|
|
251
|
+
need("group", ids.groups, field.group, `${path}.group`);
|
|
252
|
+
field.rules?.forEach((rule, i) => need("rule", ids.rules, rule.id, `${path}.rules[${i}]`));
|
|
253
|
+
field.input?.format?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.input.format[${i}]`));
|
|
254
|
+
field.payload?.transforms?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.payload.transforms[${i}]`));
|
|
255
|
+
if (field.optionsRef) need("optionList", ids.optionLists, field.optionsRef, `${path}.optionsRef`);
|
|
256
|
+
if (field.suggestionsRef) need("optionList", ids.optionLists, field.suggestionsRef, `${path}.suggestionsRef`);
|
|
257
|
+
field.requiredWhen?.forEach((condition, i) => {
|
|
258
|
+
const keys = Object.keys(condition);
|
|
259
|
+
if (keys.length !== 1) problems.push({
|
|
260
|
+
category: "condition",
|
|
261
|
+
id: keys.join("+") || "(empty)",
|
|
262
|
+
path: `${path}.requiredWhen[${i}]`
|
|
263
|
+
});
|
|
264
|
+
for (const key of keys) need("condition", ids.conditions, key, `${path}.requiredWhen[${i}]`);
|
|
265
|
+
});
|
|
266
|
+
field.prefill?.forEach((id, i) => need("prefillSource", ids.prefillSources, id, `${path}.prefill[${i}]`));
|
|
267
|
+
const lock = field.phone?.lockCountry;
|
|
268
|
+
if (typeof lock === "string" && lock !== "whenPhoneRisk") problems.push({
|
|
269
|
+
category: "phoneLock",
|
|
270
|
+
id: lock,
|
|
271
|
+
path: `${path}.phone`
|
|
272
|
+
});
|
|
273
|
+
};
|
|
274
|
+
definition.fields.forEach((field) => checkField(field, `fields.${field.name}`));
|
|
275
|
+
definition.groups?.forEach((policy) => {
|
|
276
|
+
need("group", ids.groups, policy.group, `groups.${policy.group}`);
|
|
277
|
+
if (!GROUP_POLICIES.has(policy.whenDisabled)) problems.push({
|
|
278
|
+
category: "groupPolicy",
|
|
279
|
+
id: policy.whenDisabled,
|
|
280
|
+
path: `groups.${policy.group}`
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
definition.groupRules?.forEach((rule, i) => {
|
|
284
|
+
need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`);
|
|
285
|
+
const cases = rule.id === "rulesByOption" ? rule.params?.cases : void 0;
|
|
286
|
+
if (cases && typeof cases === "object" && !Array.isArray(cases)) for (const [value, rules] of Object.entries(cases)) {
|
|
287
|
+
if (!Array.isArray(rules)) continue;
|
|
288
|
+
rules.forEach((ref, j) => {
|
|
289
|
+
const id = ref?.id;
|
|
290
|
+
need("rule", ids.rules, typeof id === "string" ? id : "(missing)", `groupRules[${i}].params.cases.${value}[${j}]`);
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
definition.collections?.forEach((collection) => {
|
|
295
|
+
need("group", ids.groups, collection.group, `collections.${collection.id}`);
|
|
296
|
+
collection.fields.forEach((field) => checkField(field, `collections.${collection.id}.fields.${field.name}`));
|
|
297
|
+
});
|
|
298
|
+
return problems.length === 0 ? { supported: true } : {
|
|
299
|
+
supported: false,
|
|
300
|
+
problems
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region src/internal/forms/resolveForm.ts
|
|
305
|
+
const FORCE_SHOW = "forceShow";
|
|
306
|
+
const WHEN_PHONE_RISK = "whenPhoneRisk";
|
|
307
|
+
/**
|
|
308
|
+
* Resolves a definition against module configuration: which fields show,
|
|
309
|
+
* which are required, whether the phone is locked, and which group rules and
|
|
310
|
+
* collections apply. Pure and synchronous, so it runs inside an assign action.
|
|
311
|
+
*
|
|
312
|
+
* Call `checkSupport` first for any definition that wasn't bundled with this
|
|
313
|
+
* build; `resolveForm` ignores ids it doesn't know.
|
|
314
|
+
*/
|
|
315
|
+
function resolveForm(definition, context) {
|
|
316
|
+
const forcedGroups = new Set((definition.groups ?? []).filter((policy) => policy.whenDisabled === FORCE_SHOW).map((policy) => policy.group));
|
|
317
|
+
const isOn = (group) => context.groups[group] === true;
|
|
318
|
+
const isShown = (group) => isOn(group) || forcedGroups.has(group);
|
|
319
|
+
const riskAddons = new Set(context.riskAddons ?? []);
|
|
320
|
+
const shownFields = definition.fields.filter((field) => isShown(field.group));
|
|
321
|
+
const shownNames = new Set(shownFields.map((field) => field.name));
|
|
322
|
+
const fields = shownFields.map((field) => {
|
|
323
|
+
const conditions = field.requiredWhen ?? [];
|
|
324
|
+
const addonRequired = conditions.some((condition) => condition.riskAddon !== void 0 && riskAddons.has(condition.riskAddon));
|
|
325
|
+
const requiredIfFilled = conditions.map((condition) => condition.fieldFilled).filter((name) => name !== void 0 && shownNames.has(name));
|
|
326
|
+
const lock = field.phone?.lockCountry;
|
|
327
|
+
return {
|
|
328
|
+
field,
|
|
329
|
+
required: field.required === true || addonRequired,
|
|
330
|
+
requiredIfFilled,
|
|
331
|
+
forced: !isOn(field.group),
|
|
332
|
+
phoneLocked: field.kind === "phone" && (lock === true || lock === WHEN_PHONE_RISK && context.phoneRisk === true)
|
|
333
|
+
};
|
|
334
|
+
});
|
|
335
|
+
const order = shownFields.map((field) => field.name);
|
|
336
|
+
return {
|
|
337
|
+
definition,
|
|
338
|
+
fields,
|
|
339
|
+
groupRules: (definition.groupRules ?? []).map((rule) => ({
|
|
340
|
+
rule,
|
|
341
|
+
fields: order.filter((name) => rule.fields.includes(name))
|
|
342
|
+
})).filter((resolved) => resolved.fields.length > 0),
|
|
343
|
+
collections: (definition.collections ?? []).filter((collection) => isShown(collection.group)).map((collection) => ({
|
|
344
|
+
collection,
|
|
345
|
+
min: collection.min ?? 0,
|
|
346
|
+
max: collection.max
|
|
347
|
+
}))
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
//#endregion
|
|
351
|
+
export { usStates as a, usStateOptions as i, checkSupport as n, DYNAMIC_REQUIRED_KEY as r, resolveForm as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { w as createEventBus } from "./events-
|
|
3
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
2
|
+
import { w as createEventBus } from "./events-ggpBBaZ8.esm.js";
|
|
3
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-JP7_wQle.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-DV2ULUYS.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-BEVHQbbC.js";
|
|
5
5
|
import { n as DeepsightService } from "./StreamCanvasCapture-C3xNfOsv.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-DmZFzs1-.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-C86PfxZS.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./events-ggpBBaZ8.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
8
|
-
import { s as processFace } from "./FaceDetectionProvider-
|
|
9
|
-
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
10
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
11
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
12
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
6
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-zI6zgq4z.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bl3wOB84.esm.js";
|
|
8
|
+
import { s as processFace } from "./FaceDetectionProvider-YEIZbGDi.esm.js";
|
|
9
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-CvVbR9-p.esm.js";
|
|
10
|
+
import { t as selfieMachine } from "./selfieStateMachine-CGMAbg6e.esm.js";
|
|
11
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-B8swkeIe.esm.js";
|
|
12
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BJ0GVHGr.esm.js";
|
|
13
13
|
/**
|
|
14
14
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
15
15
|
* face-capture state tree; only the upload/process step is local instead of
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
1
|
+
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-YEIZbGDi.esm.js";
|
|
2
2
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
3
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
4
|
const isFaceErrorCode = (value) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-C86PfxZS.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./events-ggpBBaZ8.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bl3wOB84.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-CGMAbg6e.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-DV2ULUYS.js";
|
|
4
4
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
5
5
|
type SelfieState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { n as validateUploadResponse } from "./selfieErrorUtils-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-zI6zgq4z.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-YEIZbGDi.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-f3lQlFEy.esm.js";
|
|
6
6
|
/**
|
|
7
7
|
* The selfie capture state machine.
|
|
8
8
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as getApi, u as endpoints } from "./api-
|
|
2
|
-
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
4
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { n as getApi, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
|
+
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-JP7_wQle.esm.js";
|
|
3
|
+
import "./sessionInitializer-C2NbBy_s.esm.js";
|
|
4
|
+
import { i as toIncodeApiError } from "./apiError-b2fuT-IQ.esm.js";
|
|
5
5
|
//#region src/internal/session/sessionService.ts
|
|
6
6
|
/**
|
|
7
7
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./warmup-BO57syF6.js";
|
|
2
|
-
import { t as DeviceFingerprintResult } from "./types-
|
|
2
|
+
import { t as DeviceFingerprintResult } from "./types-Csh8vzPo.js";
|
|
3
3
|
import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/session/sessionService.d.ts
|
|
5
5
|
type CreateSessionOptions = {
|
package/dist/session.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as getToken } from "./api-
|
|
1
|
+
import { r as getToken } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { a as initializeSession, f as whenSessionFingerprintSettled } from "./sessionInitializer-
|
|
3
|
+
import { a as initializeSession, f as whenSessionFingerprintSettled } from "./sessionInitializer-C2NbBy_s.esm.js";
|
|
4
4
|
import { n as onConnectivityChange, r as resumeConnectivity, t as isConnectivityLost } from "./connectivity-BCuEoQ-n.esm.js";
|
|
5
|
-
import { t as IncodeApiError } from "./apiError-
|
|
6
|
-
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
7
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
5
|
+
import { t as IncodeApiError } from "./apiError-b2fuT-IQ.esm.js";
|
|
6
|
+
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-sPZ3TAsp.esm.js";
|
|
7
|
+
import { n as getFinishStatus } from "./flowCompletionService-DHFje7x-.esm.js";
|
|
8
8
|
//#region src/internal/session/sessionExpired.ts
|
|
9
9
|
var SessionExpiredError = class extends Error {
|
|
10
10
|
constructor() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { n as setWasmMetadataV2Enabled } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
|
|
3
|
-
import { C as subscribeEvent, b as getAnalyticsBatcher, y as addEvent } from "./events-
|
|
4
|
-
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-
|
|
5
|
-
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
3
|
+
import { C as subscribeEvent, b as getAnalyticsBatcher, y as addEvent } from "./events-ggpBBaZ8.esm.js";
|
|
4
|
+
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
5
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-JP7_wQle.esm.js";
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-WYkWwTmz.esm.js";
|
|
7
7
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
8
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
9
|
-
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-
|
|
8
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DQFwX8Hl.esm.js";
|
|
9
|
+
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CatA2dea.esm.js";
|
|
10
10
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
11
11
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
12
12
|
import { a as isIOS } from "./platform-aPh7gTWh.esm.js";
|
|
@@ -312,7 +312,7 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
312
312
|
}
|
|
313
313
|
const fingerprintSignalsReporter = createFingerprintSignalsReporter({
|
|
314
314
|
getWasmUtil: async () => {
|
|
315
|
-
return (await import("./WasmUtilProvider-
|
|
315
|
+
return (await import("./WasmUtilProvider-BP6-08Yn.esm.js").then((n) => n.n)).WasmUtilProvider.getInstance();
|
|
316
316
|
},
|
|
317
317
|
getToken: () => getToken(),
|
|
318
318
|
post: async (url, body, headers) => (await api.post(url, body, { headers })).data,
|
|
@@ -692,8 +692,11 @@ var FingerprintProvider = class {
|
|
|
692
692
|
}
|
|
693
693
|
async getFingerprint(disableIpify = false) {
|
|
694
694
|
this.visitorIdPromise ??= getThumbmarkId();
|
|
695
|
-
const visitorId = await
|
|
696
|
-
|
|
695
|
+
const [visitorId, deviceInfo, ip] = await Promise.all([
|
|
696
|
+
this.visitorIdPromise,
|
|
697
|
+
getDeviceFingerprintInfo(),
|
|
698
|
+
disableIpify ? Promise.resolve("") : this.ipLookup.getIp()
|
|
699
|
+
]);
|
|
697
700
|
return {
|
|
698
701
|
visitorId,
|
|
699
702
|
ip,
|
|
@@ -908,7 +911,7 @@ function deviceHashSkipReason(activationOptedOut) {
|
|
|
908
911
|
function startSessionWasm(token, config) {
|
|
909
912
|
(async () => {
|
|
910
913
|
try {
|
|
911
|
-
const warmupModule = await import("./warmup-
|
|
914
|
+
const warmupModule = await import("./warmup-BUnab2eW.esm.js").then((n) => n.c);
|
|
912
915
|
const warmup = warmupModule.warmupWasm({
|
|
913
916
|
...config,
|
|
914
917
|
pipelines: []
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { P as setWasmIntegrityObserver, _ as setWasmDiagnosticsHandler, w as resolveWasmConfig, y as DEFAULT_WASM_VERSION } from "./wasmWebClient-
|
|
2
|
-
import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, m as rearmWasmDiagnostics, n as getWarmupFacts, p as getWasmDiagnosticsMode, s as warmupWasm } from "./warmup-
|
|
3
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
4
|
-
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-
|
|
5
|
-
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-
|
|
6
|
-
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-
|
|
7
|
-
import { C as BrowserEnvironmentProvider, _ as setStandaloneFlowPolicy, a as initializeSession, c as setClientHostingApp, d as setClientWasmDisabled, g as resolveStandaloneFlowPolicy, h as resetStandaloneFlowPolicy, l as setClientIpLookupEnabled, m as registerFlowPreloader, o as resetSessionInit, s as setClientFingerprintEnabled, u as setClientWasmConfig, w as fingerprintSignalsReporter } from "./sessionInitializer-
|
|
1
|
+
import { P as setWasmIntegrityObserver, _ as setWasmDiagnosticsHandler, w as resolveWasmConfig, y as DEFAULT_WASM_VERSION } from "./wasmWebClient-CowdFxEv.esm.js";
|
|
2
|
+
import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, m as rearmWasmDiagnostics, n as getWarmupFacts, p as getWasmDiagnosticsMode, s as warmupWasm } from "./warmup-BUnab2eW.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
|
|
4
|
+
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-ggpBBaZ8.esm.js";
|
|
5
|
+
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
6
|
+
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-JP7_wQle.esm.js";
|
|
7
|
+
import { C as BrowserEnvironmentProvider, _ as setStandaloneFlowPolicy, a as initializeSession, c as setClientHostingApp, d as setClientWasmDisabled, g as resolveStandaloneFlowPolicy, h as resetStandaloneFlowPolicy, l as setClientIpLookupEnabled, m as registerFlowPreloader, o as resetSessionInit, s as setClientFingerprintEnabled, u as setClientWasmConfig, w as fingerprintSignalsReporter } from "./sessionInitializer-C2NbBy_s.esm.js";
|
|
8
8
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
9
9
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
10
|
-
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-
|
|
11
|
-
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-
|
|
10
|
+
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-DQFwX8Hl.esm.js";
|
|
11
|
+
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CatA2dea.esm.js";
|
|
12
12
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
13
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-Cb0iHJVG.esm.js";
|
|
14
14
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
15
15
|
/**
|
|
16
16
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
@@ -562,19 +562,11 @@ async function setup(options) {
|
|
|
562
562
|
}
|
|
563
563
|
configured = true;
|
|
564
564
|
applyEnvironment(options.environment);
|
|
565
|
-
|
|
566
|
-
await warmupWasm(effectiveWasm);
|
|
567
|
-
await (await WasmUtilProvider.getInstance()).initialize({
|
|
568
|
-
...effectiveWasm,
|
|
569
|
-
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
570
|
-
});
|
|
571
|
-
fingerprintSignalsReporter.onWasmReady();
|
|
572
|
-
if (!options.devMode) startDevtoolsDetector();
|
|
573
|
-
}
|
|
565
|
+
let featureManagementReady;
|
|
574
566
|
if (!getIsFeatureManagementLocked()) if (options.featureManagement === false) optOutFeatureManagement();
|
|
575
567
|
else {
|
|
576
568
|
const featureManagementSetupOptions = typeof options.featureManagement === "object" ? options.featureManagement : {};
|
|
577
|
-
const
|
|
569
|
+
const initialization = initializeFeatureManagement({
|
|
578
570
|
environment: getEnvironment(),
|
|
579
571
|
clientExperimentId: featureManagementSetupOptions.clientExperimentId,
|
|
580
572
|
disableStableId: featureManagementSetupOptions.disableStableId,
|
|
@@ -583,10 +575,21 @@ async function setup(options) {
|
|
|
583
575
|
appVersion: featureManagementSetupOptions.appVersion,
|
|
584
576
|
redactedUserInfo: featureManagementSetupOptions.redactedUserInfo
|
|
585
577
|
});
|
|
586
|
-
if (featureManagementSetupOptions.awaitInitialization === true)
|
|
578
|
+
if (featureManagementSetupOptions.awaitInitialization === true) featureManagementReady = initialization;
|
|
587
579
|
}
|
|
588
580
|
else if (options.featureManagement !== void 0) console.error("[FeatureManagement] Feature management is locked after the first setup() call and cannot be changed (re-enabled, disabled, or reconfigured). Ignoring this change. Call reset() before changing it.");
|
|
589
|
-
|
|
581
|
+
const triReady = options.tri ? initializeTRI(options.tri, { sessionToken: options.token }) : void 0;
|
|
582
|
+
if (effectiveWasm) {
|
|
583
|
+
await warmupWasm(effectiveWasm);
|
|
584
|
+
await (await WasmUtilProvider.getInstance()).initialize({
|
|
585
|
+
...effectiveWasm,
|
|
586
|
+
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
587
|
+
});
|
|
588
|
+
fingerprintSignalsReporter.onWasmReady();
|
|
589
|
+
if (!options.devMode) startDevtoolsDetector();
|
|
590
|
+
}
|
|
591
|
+
await featureManagementReady;
|
|
592
|
+
await triReady;
|
|
590
593
|
}
|
|
591
594
|
/**
|
|
592
595
|
* Sets the WASM configuration without performing warmup.
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
2
|
-
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-
|
|
1
|
+
import { t as signatureMachine } from "./signatureStateMachine-DBVDd1Eu.esm.js";
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-CwqjcxPg.esm.js";
|
|
3
3
|
export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
4
|
+
import { t as signatureMachine } from "./signatureStateMachine-DBVDd1Eu.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();
|
package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-DBVDd1Eu.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/signature/signatureServices.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
1
|
+
import { r as getToken, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
//#region src/modules/stats/statsServices.ts
|
|
3
3
|
const deviceStatsQueue = [];
|
|
4
4
|
async function postDeviceStatsNow(stats) {
|