@incodetech/web 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.
- package/THIRD_PARTY_NOTICES.txt +1 -4
- package/dist/{GeolocationPermissionDenied-CUt-uebQ.js → GeolocationPermissionDenied-Dag9fchQ.js} +23 -8
- package/dist/Password-4ht2vsqv.js +212 -0
- package/dist/RadioGroup-Cf6xDIm5.js +123 -0
- package/dist/RequiredLegend-DwaAzhid.js +16 -0
- package/dist/RequiredMarker-CGQR8lsb.js +16 -0
- package/dist/TextField-o3qwE7KD.js +166 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-BWKMRc6V.js → af-ZA-CdJRBJEg.js} +107 -881
- package/dist/{ageVerification-CMIp0I--.js → ageVerification-u2zo-WUl.js} +10 -8
- package/dist/{am-DPyjIvQV.js → am-Df9uoE6e.js} +107 -881
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/{applyStudioConfig-DxtP9221.js → applyStudioConfig-Deh55YNW.js} +2 -2
- package/dist/{ar-AE-CxCvbyoW.js → ar-AE-CAoWsgnA.js} +107 -881
- package/dist/{ar-EG-B1hHB55j.js → ar-EG-CXi0p-DV.js} +107 -881
- package/dist/{ar-10SoqF1i.js → ar-hyEIwsq9.js} +108 -882
- package/dist/assertClassBrand-CuHX5JcR.js +17 -0
- package/dist/authentication/authentication.es.js +7 -5
- package/dist/autoFocusTitle-CNeT8ydU.js +19 -0
- package/dist/{az-cmuBNn_5.js → az-CUehzrK3.js} +107 -881
- package/dist/{back-horizontal-hint-Dl2C4J4u.js → back-horizontal-hint-D5xvRtEe.js} +1 -1
- package/dist/{back-vertical-hint-CM4_HjWk.js → back-vertical-hint-DoKJSQhY.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BGU2Gcly.js → baseTutorial-xDkp34JC.js} +9 -7
- package/dist/{bn-CuGYlngZ.js → bn-DStUscj0.js} +107 -881
- package/dist/{bottomSheet-x20yd6eP.js → bottomSheet-COrgITc6.js} +3 -3
- package/dist/{bs-vwpJzaHm.js → bs-Lq1FPKJj.js} +107 -881
- package/dist/{ca-DXZs5vtr.js → ca-K83Ys4Fe.js} +107 -881
- package/dist/cameraOverlay-Bciqav_0.js +2 -0
- package/dist/{cameraOverlayHeader-BxutAKy-.js → cameraOverlayHeader-C7Pi5eIm.js} +9 -8
- package/dist/{cameraView-DVzaEGW8.js → cameraView-B7l40Opf.js} +3 -3
- package/dist/capture-D7HVD1ht.js +754 -0
- package/dist/capture-Do7z-u0d.js +3 -0
- package/dist/{tutorial-BKPHj5To.js → capture-I1enj-0M.js} +28 -68
- package/dist/capture-WaSNv1Wn.js +2 -0
- package/dist/captureButtonIcon-DVbAZ8TK.js +1 -0
- package/dist/captureFocusContext-CNtkY3Lk.js +718 -0
- package/dist/captureFooter-CucCxqz-.js +47 -0
- package/dist/{ceb-CmhS_VOs.js → ceb-NR8sWgTh.js} +107 -881
- package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
- package/dist/certificate-issuance/styles.css +1 -1
- package/dist/certificate-issuance/styles.css.js +1 -1
- package/dist/{checkbox-BC26Qbxh.js → checkbox-C5k2pepr.js} +4 -4
- package/dist/chooser-CNm0MKQl.js +1517 -0
- package/dist/connectionError-Bs3TO2RP.js +100 -0
- package/dist/consent/consent.es.js +16 -12
- package/dist/{countryFlag-DXSVHiby.js → countryFlag-CZUyZ06G.js} +1 -1
- package/dist/{countrySelector-0PDDFsZF.js → countrySelector-CPgaMT7n.js} +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-Dg5O-Vom.js → cs-CZ-KpSXcWZT.js} +107 -881
- package/dist/{cs-CoJlE7De.js → cs-UYoUjOrG.js} +107 -881
- package/dist/curp-validation/curp-validation.es.js +97 -96
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-COYGTuuK.js → customFields-BcubL9au.js} +33 -19
- package/dist/{customWatchlist-B0wY6Rwb.js → customWatchlist-D4RK0ow6.js} +11 -8
- package/dist/{da-DK-C_JAndM-.js → da-DK-Bds8n-Rj.js} +107 -881
- package/dist/dashboardTheme-DQaxmEq3.js +383 -0
- package/dist/dateInputComposed-BrpUtswb.js +1 -0
- package/dist/{dateInputComposed-QkmLGLHg.js → dateInputComposed-BzCDzTM3.js} +4 -5
- package/dist/{de-11hHLedu.js → de-CZlvE1Xz.js} +107 -881
- package/dist/denied-BeVKpBem.js +272 -0
- package/dist/devWarn-B4kGEiva.js +1056 -0
- package/dist/{deviceWallet-BeTpokSL.js → deviceWallet-7b1VpcGm.js} +4 -4
- package/dist/{digitalIdRedirect-BnljwZV3.js → digitalIdRedirect-CG9jzrQh.js} +4 -4
- package/dist/{digitalIdUpload-DNhqqMHT.js → digitalIdUpload-BUJcgYY5.js} +37 -15
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -1
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/documentCapture-BdEStEoH.js +2 -0
- package/dist/{documentCapture-uAKPK1U-.js → documentCapture-JcxukEgT.js} +113 -59
- package/dist/dropdownComposed-C36c9ZOm.js +1 -0
- package/dist/{dropdownComposed-D_RQd0Z9.js → dropdownComposed-yNmLuHxU.js} +8 -6
- package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-Bsqag_MS.js → ekybModule-Cp-7fs23.js} +109 -89
- package/dist/ekybModule-ccZRVb7E.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
- package/dist/ekyc-prefill/styles.css +2 -0
- package/dist/ekyc-prefill/styles.css.js +1 -0
- package/dist/ekycModule-CcZTIgGK.js +2 -0
- package/dist/ekycModule-DKUZp3Ww.js +358 -0
- package/dist/ekycPrefillModule-Bou_Ig42.js +2 -0
- package/dist/ekycPrefillModule-DJoeviHP.js +233 -0
- package/dist/{el-CRGmVrep.js → el-C6tFl9i9.js} +107 -881
- package/dist/{el-GR-CjtJiRTo.js → el-GR-BLkQ_dbO.js} +107 -881
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Cm2BEiQu.js → electronic-signature-D-4uTJdE.js} +55 -36
- package/dist/email/email.es.js +21 -16
- package/dist/{emailInput-JmK2JIFS.js → emailInput-C5VHG66O.js} +23 -12
- package/dist/{en-DG-Cruu6Woh.js → en-DG-BEuiDKtl.js} +107 -881
- package/dist/{en-CSjoG3e4.js → en-DNBypQuu.js} +107 -881
- package/dist/{errorContent-zY4jb6uY.js → errorContent-BC8mDFld.js} +21 -20
- package/dist/{formField-C3MNhFKI.js → errorParams-W7NX72mI.js} +2 -33
- package/dist/es-419-BCIRYhZK.js +5 -0
- package/dist/{es-C_LAY-Yu.js → es-DjQEM4f9.js} +108 -882
- package/dist/{es-ES-D7O0P5Mg.js → es-ES-Q6nMptUM.js} +107 -881
- package/dist/{es-MX-DVzFaANh.js → es-MX-Df5g3bAX.js} +107 -881
- package/dist/{et-DdSwjU5d.js → et-BYRhgB8X.js} +108 -882
- package/dist/expiredId-BVa13c9u.js +67 -0
- package/dist/extensibility.es.js +368 -42
- package/dist/{fa-IR-CdK8XLkS.js → fa-IR-DP-FPc-r.js} +107 -881
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +1 -1
- package/dist/face-match/styles.css.js +1 -1
- package/dist/faceMatch-B2n0FPIm.js +2 -0
- package/dist/{faceMatch-B0IzR9_u.js → faceMatch-C5QmR3Vt.js} +44 -53
- package/dist/{fi-FI-CYlEPu44.js → fi-FI-rnIjEC7X.js} +107 -881
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-CDGiqzsu.js +126 -0
- package/dist/fieldComparison-D-LmR1LR.js +2 -0
- package/dist/{fieldLabelHint-gdoE5nLQ.js → fieldLabelHint-eF42wLDJ.js} +3 -3
- package/dist/{finalSuccessScreen-BM9oeJDH.js → finalSuccessScreen-vOR061dK.js} +31 -22
- package/dist/fiscal-qr/fiscal-qr.es.js +25 -22
- package/dist/flipAnimation-CGP9Fu9J.js +46 -0
- package/dist/flipCapturedCardEligibility-C8wQ0_No.js +210 -0
- package/dist/flow/flow.es.js +216 -191
- package/dist/flow/shell/styles.css +1 -1
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -1
- package/dist/formField-DrSwXufE.js +49 -0
- package/dist/{fr-CA-DD_s9NuV.js → fr-CA-vPsubqTC.js} +107 -881
- package/dist/{fr-C4cP8ZNE.js → fr-P8YbBMxT.js} +107 -881
- package/dist/{front-horizontal-hint-Dol0Lpc6.js → front-horizontal-hint-CDHj9LQF.js} +1 -1
- package/dist/{front-vertical-hint-CAhAzw92.js → front-vertical-hint-B_pU27Iv.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -10
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-D3fvMZAl.js → he-DfptjOXC.js} +107 -881
- package/dist/{hi-DLf6_opn.js → hi-C7tSzMcB.js} +107 -881
- package/dist/{hmn-DzoODzbN.js → hmn-jKsUYgaq.js} +107 -881
- package/dist/{homeScreen-D1Xd93In.js → homeScreen-C1b8yg4y.js} +21 -14
- package/dist/{incodeComponent-C1Bz5Qou.js → hooks-COiwxC3h.js} +39 -325
- package/dist/{hr-C-jP0DrB.js → hr-ehtrddz3.js} +107 -881
- package/dist/{ht-CVt9koJf.js → ht-CA5NNkri.js} +107 -881
- package/dist/{hu-9fSzIeAd.js → hu-DYgOdNXH.js} +107 -881
- package/dist/{icons-BdiCuWFP.js → icons-CLoob8B-.js} +129 -56
- package/dist/id/id.es.js +166 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-Dgi5uGHK.js → id-CMBxWcTV.js} +107 -881
- package/dist/{id-back-of-card-CHFxXTEq.js → id-back-of-card-BEAthtU0.js} +1 -1
- package/dist/{id-back-of-card-vertical-CUBdKGbw.js → id-back-of-card-vertical-Ce0d7tp5.js} +1 -1
- package/dist/{id-front-of-card-DplNJr13.js → id-front-of-card-DS0lS9jP.js} +1 -1
- package/dist/{id-front-of-card-vertical-D1duHEsV.js → id-front-of-card-vertical-BLWn85NX.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +6 -5
- package/dist/idFlipTransition-3z8Lqcab.js +154 -0
- package/dist/{idOcr-sknZwQNF.js → idOcr-qPEZSG5D.js} +64 -37
- package/dist/identity-reuse/identity-reuse.es.js +36 -24
- package/dist/incodeComponent-CxWTvgqz.js +235 -0
- package/dist/{incodeModule-DJToJb00.js → incodeModule-BQVPjhJE.js} +5 -5
- package/dist/index.es.js +3 -3
- package/dist/{inputComposed-BuE0iZlw.js → inputComposed-oWeKvdES.js} +4 -4
- package/dist/{it-CEFstYFG.js → it-DNcyH3GL.js} +107 -881
- package/dist/{ja-BNdVd9B6.js → ja-BkVsn7yw.js} +107 -881
- package/dist/{ja-JP-B5TPMV1q.js → ja-JP-BI4iShf-.js} +108 -882
- package/dist/{jv-CMxkkXUk.js → jv-Bpp0lYl-.js} +107 -881
- package/dist/{ka-C70bUmEK.js → ka-__y8BNrb.js} +107 -881
- package/dist/{kk-C_55EmWt.js → kk-C8RZv7Y9.js} +107 -881
- package/dist/{km-D4Ig0NhN.js → km-CdNpEVlv.js} +114 -888
- package/dist/{ko-DfUa3dzQ.js → ko-Db8jh_Pq.js} +107 -881
- package/dist/{ko-KP-BwBB8ahu.js → ko-KP-Cn4RuF_b.js} +107 -881
- package/dist/{ky-CnJichOm.js → ky-DljlRCIf.js} +107 -881
- package/dist/kyb-checks/kyb-checks.es.js +2 -0
- package/dist/kyb-checks/styles.css +2 -0
- package/dist/kyb-checks/styles.css.js +1 -0
- package/dist/kybChecksModule-B2nSWMuy.js +2 -0
- package/dist/kybChecksModule-DGXAS1Sc.js +345 -0
- package/dist/{lo-ww1DXVAP.js → lo-DXJI47k7.js} +107 -881
- package/dist/{lt-IJ8qpluI.js → lt-CUHwdgrq.js} +107 -881
- package/dist/{lv-DMfsmqyK.js → lv-BFrYWmGH.js} +107 -881
- package/dist/{mandatoryConsent-Bp8sQoiu.js → mandatoryConsent-Dc0PQou0.js} +20 -14
- package/dist/{manualCaptureButton-Cd-FY05-.js → manualCaptureButton-DIlebb4i.js} +8 -7
- package/dist/{manualCaptureButton-BXOTp2PS.js → manualCaptureButton-t0b_hCKH.js} +15 -12
- package/dist/{mk-ByafmFak.js → mk-BRpnPevj.js} +107 -881
- package/dist/{mn-DjO9p3xN.js → mn-tly7Lz7o.js} +107 -881
- package/dist/{ms-3Vf1QpHl.js → ms-DFpRACK3.js} +107 -881
- package/dist/{my-C5hpE5P1.js → my-G2jJl4tA.js} +107 -881
- package/dist/{nb-NO-DGCWCOul.js → nb-NO-CaDPgzxb.js} +107 -881
- package/dist/{ne-CpJxcVhV.js → ne-BaCq8Imv.js} +107 -881
- package/dist/{nl-R2RykJHB.js → nl-BK-jT4yQ.js} +107 -881
- package/dist/{optionAccessibleLabel-BQl8HooZ.js → optionAccessibleLabel-CDKKh7c3.js} +25 -10
- package/dist/otpInput-B4mH5be-.js +245 -0
- package/dist/{page-utEpSa9Z.js → page-5CklyQnq.js} +86 -44
- package/dist/{pageUiConfig-rOL18JSI.js → pageUiConfig-DZQHreIo.js} +67 -25
- package/dist/{passport-horizontal-hint-BfTXA2LB.js → passport-horizontal-hint-JdWoLKa5.js} +1 -1
- package/dist/{passport-vertical-hint-C7dzd2ks.js → passport-vertical-hint-BgtJXbvC.js} +1 -1
- package/dist/passwordRequirements-bbbHZACR.js +49 -0
- package/dist/{pdf-BnPw8ZaT.js → pdf-CLcY9ugT.js} +2 -17
- package/dist/pdfViewer-2NTW2bZn.js +2 -0
- package/dist/{pdfViewer-DNMZsDFD.js → pdfViewer-D4xu2J13.js} +11 -14
- package/dist/permissionInstructionList-Dmy2y4cX.js +43 -0
- package/dist/{permissions-CCEc9lKM.js → permissions-BPh2QNoI.js} +84 -53
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-ByiK_6Hu.js → phoneInputComposed-Dzt9xdrF.js} +6 -6
- package/dist/{pl-B1LgnPj1.js → pl-CoWZGdbr.js} +107 -881
- package/dist/preloadableLazy-2hqV2Q8z.js +43 -0
- package/dist/{processing-Ci_Kl-Rh.js → processing-DStiN9XK.js} +2 -2
- package/dist/{progressBar-Caj-Vu1e.js → progressBar-CJqJXzAh.js} +2 -2
- package/dist/{pt-CPVeH0hD.js → pt-BDByRgpr.js} +107 -881
- package/dist/{pt-BR-DSJDHb-K.js → pt-BR-BRMyrqIN.js} +107 -881
- package/dist/{pt-PT-BWJTVPZY.js → pt-PT-CfwlYo6V.js} +107 -881
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +34 -33
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-Dtw9dM3O.js → registerIncodeElement-B5W7SqS3.js} +1 -1
- package/dist/{resendTimer-ODOCcKyh.js → resendTimer-COMRdeDC.js} +2 -2
- package/dist/richText-BMvr5dhl.js +1761 -0
- package/dist/{ro-8gGEWeHO.js → ro-ju058j4P.js} +107 -881
- package/dist/{ru-C4EVku5S.js → ru-DYwhf4Hw.js} +107 -881
- package/dist/{ru-RU-Dr0NOGjg.js → ru-RU-BAvJW-vp.js} +107 -881
- package/dist/{sanitizeSvg-ilJ8VQmH.js → sanitizeSvg-BZoCoRr0.js} +1 -1
- package/dist/selfie/selfie.es.js +30 -14
- package/dist/selfie/styles.css +1 -1
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +18 -13
- package/dist/{sk-BSTzMa__.js → sk-Cl6F-Kaz.js} +108 -882
- package/dist/{sl-_HvO-HVX.js → sl-BxsNneWx.js} +107 -881
- package/dist/{smsTabContent-CWBrtP4u.js → smsTabContent-BLJM1Hbk.js} +40 -27
- package/dist/{so-pyCaqonl.js → so-D8izvKPD.js} +107 -881
- package/dist/spacer-NanHQwzu.js +1100 -0
- package/dist/spinner-bRH4yw9e.js +69 -0
- package/dist/{sr-Bpxtt0kk.js → sr-BtsYxFKz.js} +107 -881
- package/dist/{sr-Latn-BjueCJSI.js → sr-Latn-BTn5o62j.js} +112 -886
- package/dist/sr-YU-BNViLYA5.js +5 -0
- package/dist/step-up/step-up.es.js +483 -0
- package/dist/step-up/styles.css +2 -0
- package/dist/{sv-SE-sv5v6ZWe.js → sv-SE-f5R8i8ue.js} +107 -881
- package/dist/{sw-BseJSmdR.js → sw-BgHNoEGs.js} +107 -881
- package/dist/{th-TH-D0WNW-3l.js → th-TH-DmfU-a6A.js} +107 -881
- package/dist/{th-C2G8Ur12.js → th-aFkhFNxp.js} +107 -881
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-CBOmxz5r.js → tl-CA42NVfv.js} +107 -881
- package/dist/{tl-PH-CwafDrED.js → tl-PH-DMCUe7pP.js} +107 -881
- package/dist/{tr-C4iH8UJx.js → tr-BVjID0jl.js} +108 -882
- package/dist/{transitionSpinner-DbrWrpRU.js → transitionSpinner-MclJtdHE.js} +5 -5
- package/dist/tutorial-fC2iei2v.js +28 -0
- package/dist/types/ae-signature.d.ts +7 -3
- package/dist/types/antifraud.d.ts +7 -3
- package/dist/types/authentication.d.ts +7 -3
- package/dist/types/certificate-issuance.d.ts +7 -3
- package/dist/types/consent.d.ts +7 -3
- package/dist/types/cross-document-data-match.d.ts +7 -3
- package/dist/types/curp-validation.d.ts +7 -3
- package/dist/types/document-capture.d.ts +7 -3
- package/dist/types/dynamic-forms.d.ts +7 -3
- package/dist/types/ekyb.d.ts +7 -3
- package/dist/types/ekyc-prefill.d.ts +213 -0
- package/dist/types/ekyc.d.ts +7 -3
- package/dist/types/electronic-signature.d.ts +7 -3
- package/dist/types/email.d.ts +7 -3
- package/dist/types/extensibility.d.ts +63 -17
- package/dist/types/face-match.d.ts +7 -3
- package/dist/types/field-comparison.d.ts +7 -3
- package/dist/types/fiscal-qr.d.ts +7 -3
- package/dist/types/flow.d.ts +16 -3
- package/dist/types/geolocation.d.ts +7 -3
- package/dist/types/government-validation.d.ts +7 -3
- package/dist/types/id-selfie-flow.d.ts +7 -3
- package/dist/types/id-verification.d.ts +7 -3
- package/dist/types/id.d.ts +7 -3
- package/dist/types/identity-reuse.d.ts +7 -3
- package/dist/types/index.d.ts +4 -0
- package/dist/types/kyb-checks.d.ts +213 -0
- package/dist/types/phone.d.ts +7 -3
- package/dist/types/qe-signature.d.ts +7 -3
- package/dist/types/selfie.d.ts +7 -3
- package/dist/types/signature.d.ts +7 -3
- package/dist/types/step-up.d.ts +85 -0
- package/dist/types/watchlist.d.ts +7 -3
- package/dist/types/workflow.d.ts +7 -3
- package/dist/{typography-BF9d8wEc.js → typography-Dncyo-3D.js} +3 -11
- package/dist/{uk-BGYlvKb_.js → uk-HjZTXCOA.js} +107 -881
- package/dist/{uk-UA-CbxzkCL_.js → uk-UA-ChpoWDcU.js} +108 -882
- package/dist/{ur-BQgtsAfv.js → ur-CZkQHBM4.js} +107 -881
- package/dist/{useCameraPreview-BmkAmzAs.js → useCameraPreview-DrteOjaq.js} +1 -1
- package/dist/useCaptureHelpButton-B5zEGcaB.js +43 -0
- package/dist/{useIsDarkTheme-COJZngNK.js → useIsDarkTheme-DAs5RhsW.js} +1 -1
- package/dist/{useModuleLoader-CceEKjsh.js → useModuleLoader-C2fbLotc.js} +8 -3
- package/dist/{uz-DqOg1Fdv.js → uz-BCp_m_Om.js} +107 -881
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-HIccnts1.js} +19 -1
- package/dist/{verificationResult-m99Ragq6.js → verificationResult-sh4xut0K.js} +30 -27
- package/dist/{vi-COxdKkHn.js → vi-BvxcvDgc.js} +107 -881
- package/dist/video-selfie/styles.css +1 -1
- package/dist/video-selfie/styles.css.js +1 -1
- package/dist/video-selfie/video-selfie.es.js +64 -42
- package/dist/watchlist/watchlist.es.js +12 -8
- package/dist/{watchlistForBusiness-C2zxbavl.js → watchlistForBusiness-DnS1r-Ml.js} +38 -22
- package/dist/{withEndScreenTexts-BwNU-8-X.js → withEndScreenTexts-CHWofhk5.js} +212 -46
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +1 -530
- package/dist/workflow-DBS9eyu4.js +533 -0
- package/dist/{zh-CN-DfvYQGdE.js → zh-CN-DZRia1ir.js} +108 -882
- package/dist/{zh-CPQoDPxf.js → zh-DN_kUZaR.js} +107 -881
- package/dist/{zh-HANT-B4LzHH2y.js → zh-HANT-DisU_Tal.js} +107 -881
- package/dist/{zh-TW-DtvvhBYL.js → zh-TW-BJzCsdPP.js} +107 -881
- package/package.json +44 -12
- package/dist/autoFocusTitle-BxsSeMSB.js +0 -32
- package/dist/browser-ponyfill-CHlXHPpU.js +0 -441
- package/dist/cameraOverlay-Be1PFI8S.js +0 -2
- package/dist/check-icon-BWTjhSuA.js +0 -48
- package/dist/dashboardTheme-COBidrbH.js +0 -246
- package/dist/dateInputComposed-CONPVayx.js +0 -1
- package/dist/denied-Btt81vUD.js +0 -1871
- package/dist/devWarn-Cr7MglXv.js +0 -2628
- package/dist/documentCapture-DGCraCO3.js +0 -2
- package/dist/dropdownComposed-DyZXfcTf.js +0 -1
- package/dist/ekybModule-D-czIusz.js +0 -2
- package/dist/ekycModule-CkBRa6h2.js +0 -2
- package/dist/ekycModule-WlhVn8AO.js +0 -321
- package/dist/es-419-CTB15v-l.js +0 -3231
- package/dist/esm-BTUEHyry.js +0 -430
- package/dist/expiredId-DpbWqSzB.js +0 -80
- package/dist/faceMatch-CRbIcwK2.js +0 -2
- package/dist/fieldComparison-DKQNK0-r.js +0 -2
- package/dist/fieldComparison-OwGIeOM5.js +0 -109
- package/dist/flipAnimation-D-5tokFC.js +0 -3275
- package/dist/inputComposed-5mLbxAZJ.js +0 -1
- package/dist/numberedStep-CqgNwc_a.js +0 -13
- package/dist/otpInput-B_iLvmIn.js +0 -157
- package/dist/passwordInputComposed-NtiseM85.js +0 -74
- package/dist/pdfViewer-7FzYV8l3.js +0 -2
- package/dist/radioGroupComposed-CocqpoKe.js +0 -160
- package/dist/radioGroupComposed-DlQ-fNrF.js +0 -1
- package/dist/reload-icon-BR1POqkD.js +0 -70
- package/dist/richText-CRWB2afV.js +0 -1549
- package/dist/spacer-CwyNauIk.js +0 -733
- package/dist/spinner-DEZJxLSc.js +0 -88
- package/dist/sr-YU-xCb5qxap.js +0 -3235
- package/dist/useCaptureHelpButton-D40hYyD7.js +0 -88
- /package/dist/{aligndevicelottie-BHWuptBk.js → aligndevicelottie-DroBRtbt.js} +0 -0
- /package/dist/{back-tutorial-BYZr11eV.js → back-tutorial-ydxRtY-Y.js} +0 -0
- /package/dist/{backdevicelottie-JflQKxT_.js → backdevicelottie-hv8vbwYH.js} +0 -0
- /package/dist/{blurdevicelottie-CWuMQEHL.js → blurdevicelottie-Cgu4hKn7.js} +0 -0
- /package/dist/{countryDefinitions-6FOOLcB2.js → countryDefinitions-DlsV3Tf8.js} +0 -0
- /package/dist/{defineProperty-CUC2zCmh.js → defineProperty-CRYuXE79.js} +0 -0
- /package/dist/{flip-animation-BqTKEBcW.js → flip-animation-CJhh7l_J.js} +0 -0
- /package/dist/{frontdevicelottie-BWD-NCfG.js → frontdevicelottie-vyO3BJJe.js} +0 -0
- /package/dist/{glaredevicelottie-Cjy50jGc.js → glaredevicelottie-DrgkRjFh.js} +0 -0
- /package/dist/{id-laser-h-By7lMim8.js → id-laser-h-CUz29uFc.js} +0 -0
- /package/dist/{id-laser-v-BCPAN2x5.js → id-laser-v-Bnf10QJp.js} +0 -0
- /package/dist/{id-tutorial-B9cUQuf0.js → id-tutorial-DGwvKAMs.js} +0 -0
- /package/dist/{lottie_light-DywVSPMT.js → lottie_light-BXXuEKyZ.js} +0 -0
- /package/dist/{passport-tutorial-TSZzEGqb.js → passport-tutorial-DoqqyBXo.js} +0 -0
- /package/dist/{pdf.worker.min-D7ZNTVBZ.js → pdf.worker.min-Cm2oniEB.js} +0 -0
- /package/dist/{policyUrls-Bpacx_pp.js → policyUrls-Hvb4jPfF.js} +0 -0
- /package/dist/{purify.es-DZazHwBu.js → purify.es-DIIgrZ-E.js} +0 -0
- /package/dist/{selfieTutorial-CLJAEuXG.js → selfieTutorial-BTewRjM5.js} +0 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import { a as toThemeUiConfig, d as useTranslation, g as readStoredLanguage, r as setThemeUiConfig } from "./devWarn-B4kGEiva.js";
|
|
2
|
+
import { b as u, c as z, l as A, m as d, o as P, y } from "./vendor-preact-HIccnts1.js";
|
|
3
|
+
import { i as fetchAndApplyTheme } from "./dashboardTheme-DQaxmEq3.js";
|
|
4
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-CNeT8ydU.js";
|
|
5
|
+
import { t as Page } from "./page-5CklyQnq.js";
|
|
6
|
+
import { a as TerminalErrorPage, b as useManager, h as useIsBrowserSupported, r as ResolvedConfigProvider, x as withSessionExpiry } from "./hooks-COiwxC3h.js";
|
|
7
|
+
import { t as TransitionSpinner } from "./transitionSpinner-MclJtdHE.js";
|
|
8
|
+
import { r as BrowserNotSupported, t as IncodeComponent } from "./incodeComponent-CxWTvgqz.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BQVPjhJE.js";
|
|
10
|
+
import { _ as resolveSessionLanguage, a as isHandoffLinkRejection, g as isDesktopOrEmulated, i as UnsupportedModule, n as resolveApiKey, p as setupSDK, r as extractIncodeStatus, s as LAZY_UI_MODULES, t as withEndScreenTexts } from "./withEndScreenTexts-CHWofhk5.js";
|
|
11
|
+
import { a as HEADLESS_WORKFLOW_MODULE_KEYS, n as useModuleLoader } from "./useModuleLoader-C2fbLotc.js";
|
|
12
|
+
import { initializeWasmUtil, resolveWasmConfigForPipelines, setWasmConfig, warmupWasm } from "@incodetech/core/wasm";
|
|
13
|
+
import { bootstrapSession, getFinishStatus, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
14
|
+
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
15
|
+
import { createWorkflowManager } from "@incodetech/core/workflow";
|
|
16
|
+
//#region src/modules/workflow/finishScreenStatusIcons.tsx
|
|
17
|
+
var FinishStatusSuccessIcon = () => /* @__PURE__ */ u("svg", {
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
width: "54",
|
|
20
|
+
height: "54",
|
|
21
|
+
viewBox: "0 0 54 54",
|
|
22
|
+
fill: "none",
|
|
23
|
+
class: "IncodeFinishStatusSuccessIcon",
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
focusable: "false",
|
|
26
|
+
children: [/* @__PURE__ */ u("path", {
|
|
27
|
+
d: "M27 53.25c14.498 0 26.25-11.752 26.25-26.25S41.498.75 27 .75.75 12.503.75 27 12.503 53.25 27 53.25Z",
|
|
28
|
+
fill: "#0CD5A2"
|
|
29
|
+
}), /* @__PURE__ */ u("path", {
|
|
30
|
+
d: "M37.5 20L23.492 35.75L16.5 27.875",
|
|
31
|
+
stroke: "white",
|
|
32
|
+
"stroke-width": "4",
|
|
33
|
+
"stroke-linecap": "round",
|
|
34
|
+
"stroke-linejoin": "round"
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
var FinishStatusReviewIcon = () => /* @__PURE__ */ u("svg", {
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: "56",
|
|
40
|
+
height: "54",
|
|
41
|
+
viewBox: "0 0 33 32",
|
|
42
|
+
fill: "none",
|
|
43
|
+
class: "IncodeFinishStatusReviewIcon",
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
focusable: "false",
|
|
46
|
+
children: /* @__PURE__ */ u("path", {
|
|
47
|
+
d: "M16.5 0c8.848 0 16 7.17 16 16 0 8.834-7.152 16-16 16-8.832 0-16-7.166-16-16 0-8.83 7.168-16 16-16Zm0 20.69c-.768 0-1.392.624-1.392 1.392a1.41 1.41 0 0 0 1.408 1.408c.768 0 1.392-.64 1.392-1.408s-.624-1.392-1.408-1.392Zm0-12.162c-.768 0-1.408.642-1.408 1.408v7.072c0 .77.64 1.392 1.408 1.392s1.392-.622 1.392-1.392V9.936c0-.766-.624-1.408-1.392-1.408Z",
|
|
48
|
+
fill: "#FF9900"
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
var FinishStatusErrorIcon = () => /* @__PURE__ */ u("svg", {
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
width: "72",
|
|
54
|
+
height: "72",
|
|
55
|
+
viewBox: "0 0 72 72",
|
|
56
|
+
fill: "none",
|
|
57
|
+
class: "IncodeFinishStatusErrorIcon",
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
focusable: "false",
|
|
60
|
+
children: /* @__PURE__ */ u("path", {
|
|
61
|
+
"fill-rule": "evenodd",
|
|
62
|
+
"clip-rule": "evenodd",
|
|
63
|
+
d: "M44.598 44.592a2.245 2.245 0 0 1-3.183 0l-5.418-5.421-5.403 5.403a2.25 2.25 0 0 1-3.183-3.18l5.403-5.403-5.406-5.409a2.247 2.247 0 0 1 0-3.18 2.247 2.247 0 0 1 3.18 0l5.406 5.406 5.406-5.403a2.247 2.247 0 0 1 3.18 0 2.247 2.247 0 0 1 0 3.18l-5.403 5.406 5.421 5.418a2.25 2.25 0 0 1 0 3.183ZM36 7.5C20.286 7.5 7.5 20.283 7.5 36c0 15.714 12.786 28.5 28.5 28.5S64.5 51.714 64.5 36C64.5 20.283 51.714 7.5 36 7.5Z",
|
|
64
|
+
fill: "#FF0000"
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/modules/workflow/finishScreenBySessionStatus.tsx
|
|
69
|
+
var VARIANT_CONTENT = {
|
|
70
|
+
success: {
|
|
71
|
+
Icon: FinishStatusSuccessIcon,
|
|
72
|
+
titleKey: "finishScreenBySessionStatus.success.title",
|
|
73
|
+
titleDefault: "Identity",
|
|
74
|
+
subtitleKey: "finishScreenBySessionStatus.success.subtitle",
|
|
75
|
+
subtitleDefault: "successfully verified"
|
|
76
|
+
},
|
|
77
|
+
error: {
|
|
78
|
+
Icon: FinishStatusErrorIcon,
|
|
79
|
+
titleKey: "finishScreenBySessionStatus.error.title",
|
|
80
|
+
titleDefault: "Unable to verify identity",
|
|
81
|
+
descriptionKey: "finishScreenBySessionStatus.error.description",
|
|
82
|
+
descriptionDefault: "We encountered an issue while processing your request. Please try again later."
|
|
83
|
+
},
|
|
84
|
+
review: {
|
|
85
|
+
Icon: FinishStatusReviewIcon,
|
|
86
|
+
titleKey: "finishScreenBySessionStatus.review.title",
|
|
87
|
+
titleDefault: "Verification under review",
|
|
88
|
+
descriptionKey: "finishScreenBySessionStatus.review.description",
|
|
89
|
+
descriptionDefault: "Your information did not match our records. Please contact IT support for assistance."
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
/** Status-specific workflow completion screen (success / error / review). */
|
|
93
|
+
var FinishScreenBySessionStatus = ({ scoreStatus }) => {
|
|
94
|
+
const { t } = useTranslation();
|
|
95
|
+
const variant = classifyScoreStatus(scoreStatus);
|
|
96
|
+
const content = VARIANT_CONTENT[variant];
|
|
97
|
+
const { Icon } = content;
|
|
98
|
+
return /* @__PURE__ */ u(Page, {
|
|
99
|
+
className: "IncodeFinishScreenBySessionStatus",
|
|
100
|
+
"data-testid": "finish-screen-by-session-status",
|
|
101
|
+
hideHeader: true,
|
|
102
|
+
hideFooterBranding: true,
|
|
103
|
+
children: /* @__PURE__ */ u("div", {
|
|
104
|
+
class: "IncodeFinishScreenStatus",
|
|
105
|
+
"data-variant": variant,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ u(Icon, {}),
|
|
108
|
+
/* @__PURE__ */ u("div", {
|
|
109
|
+
class: "IncodeFinishScreenTitleGroup",
|
|
110
|
+
children: [/* @__PURE__ */ u(AutoFocusTitle, {
|
|
111
|
+
className: "IncodeFinishScreenTitle",
|
|
112
|
+
children: t(content.titleKey, { defaultValue: content.titleDefault })
|
|
113
|
+
}, variant), content.subtitleKey ? /* @__PURE__ */ u("p", {
|
|
114
|
+
class: "IncodeFinishScreenSubtitle",
|
|
115
|
+
children: t(content.subtitleKey, { defaultValue: content.subtitleDefault })
|
|
116
|
+
}) : null]
|
|
117
|
+
}),
|
|
118
|
+
content.descriptionKey ? /* @__PURE__ */ u("p", {
|
|
119
|
+
class: "IncodeFinishScreenDescription",
|
|
120
|
+
children: t(content.descriptionKey, { defaultValue: content.descriptionDefault })
|
|
121
|
+
}) : null
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/modules/workflow/workflowInit.ts
|
|
128
|
+
var LAZY_WORKFLOW_MODULES = {
|
|
129
|
+
...LAZY_UI_MODULES,
|
|
130
|
+
REDIRECT_TO_MOBILE: () => import("./redirect-to-mobile/redirect-to-mobile.es.js").then((m) => m.RedirectToMobile),
|
|
131
|
+
ID: () => import("./id-verification/id-verification.es.js").then((m) => m.IdVerification),
|
|
132
|
+
IDENTITY_REUSE: () => import("./identity-reuse/identity-reuse.es.js").then((m) => m.IdentityReuse)
|
|
133
|
+
};
|
|
134
|
+
function setupWorkflowSDK(options) {
|
|
135
|
+
return setupSDK({
|
|
136
|
+
...options,
|
|
137
|
+
preloadFlow: false
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
async function fetchWorkflowTheme() {
|
|
141
|
+
try {
|
|
142
|
+
const theme = await fetchAndApplyTheme();
|
|
143
|
+
return {
|
|
144
|
+
theme,
|
|
145
|
+
uiConfig: toThemeUiConfig(theme)
|
|
146
|
+
};
|
|
147
|
+
} catch {
|
|
148
|
+
return {};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function createWorkflowUIManager(options = {}) {
|
|
152
|
+
let endScreen = {
|
|
153
|
+
endScreenTitle: null,
|
|
154
|
+
endScreenText: null
|
|
155
|
+
};
|
|
156
|
+
const manager = createWorkflowManager({
|
|
157
|
+
customModuleCallback: options.customModuleCallback,
|
|
158
|
+
interviewId: options.interviewId,
|
|
159
|
+
isDesktop: options.isDesktop ?? isDesktopOrEmulated(),
|
|
160
|
+
isReturnLeg: options.isReturnLeg,
|
|
161
|
+
getFinishStatus: async (workflowId, signal) => {
|
|
162
|
+
return {
|
|
163
|
+
...await getFinishStatus(workflowId, signal),
|
|
164
|
+
...endScreen
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
return Object.assign(manager, {
|
|
169
|
+
setEndScreenTexts(endScreenTitle, endScreenText) {
|
|
170
|
+
endScreen = {
|
|
171
|
+
endScreenTitle,
|
|
172
|
+
endScreenText
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
getEndScreenTexts() {
|
|
176
|
+
return endScreen;
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function warmupWorkflowWasm(wasmConfig) {
|
|
181
|
+
if (wasmConfig === false) return;
|
|
182
|
+
const resolved = resolveWasmConfigForPipelines(wasmConfig?.pipelines ?? [], wasmConfig);
|
|
183
|
+
const upgradeConfig = {
|
|
184
|
+
...resolved,
|
|
185
|
+
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
186
|
+
};
|
|
187
|
+
setWasmConfig(upgradeConfig);
|
|
188
|
+
return warmupWasm(resolved).then(() => initializeWasmUtil(upgradeConfig)).catch((error) => {
|
|
189
|
+
console.error("Workflow WASM warmup failed:", error);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/modules/workflow/createWorkflowSession.ts
|
|
194
|
+
async function createWorkflowSession(config, signal) {
|
|
195
|
+
return bootstrapSession(await resolveApiKey(config), {
|
|
196
|
+
configurationId: config.configurationId,
|
|
197
|
+
externalId: config.externalId,
|
|
198
|
+
externalCustomerId: config.externalCustomerId,
|
|
199
|
+
language: config.lang,
|
|
200
|
+
customFields: config.customFields,
|
|
201
|
+
uuid: config.uuid,
|
|
202
|
+
urlUuid: config.urlUuid,
|
|
203
|
+
loginHint: config.loginHint,
|
|
204
|
+
onUrlUuidRefreshed: config.onUrlUuidRefreshed
|
|
205
|
+
}, signal);
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/modules/workflow/workflowConfig.ts
|
|
209
|
+
function hasWorkflowToken(config) {
|
|
210
|
+
return typeof config.token === "string";
|
|
211
|
+
}
|
|
212
|
+
function isSelfLoadingWorkflowConfig(config) {
|
|
213
|
+
const bootstrapConfig = config;
|
|
214
|
+
return typeof bootstrapConfig.configurationId === "string" && (typeof bootstrapConfig.apiKey === "string" || typeof bootstrapConfig.clientId === "string");
|
|
215
|
+
}
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/modules/workflow/useWorkflowInitialization.ts
|
|
218
|
+
function useWorkflowInitialization(options) {
|
|
219
|
+
const { onError, onUrlUuidRefreshed } = options;
|
|
220
|
+
const [state, setState] = d({ status: "initializing" });
|
|
221
|
+
const managerRef = A(null);
|
|
222
|
+
y(() => {
|
|
223
|
+
if (state.status !== "initializing") return;
|
|
224
|
+
const abortController = new AbortController();
|
|
225
|
+
const { signal } = abortController;
|
|
226
|
+
const initialize = async () => {
|
|
227
|
+
try {
|
|
228
|
+
let resolvedToken;
|
|
229
|
+
let resolvedInterviewId;
|
|
230
|
+
let endScreenTitle = null;
|
|
231
|
+
let endScreenText = null;
|
|
232
|
+
if (hasWorkflowToken(options)) {
|
|
233
|
+
resolvedToken = options.token;
|
|
234
|
+
resolvedInterviewId = options.interviewId;
|
|
235
|
+
endScreenTitle = options.endScreenTitle ?? null;
|
|
236
|
+
endScreenText = options.endScreenText ?? null;
|
|
237
|
+
if (options.urlUuid) await refreshQrUrlUuid({
|
|
238
|
+
urlUuid: options.urlUuid,
|
|
239
|
+
onboardingId: null,
|
|
240
|
+
onRefreshed: onUrlUuidRefreshed
|
|
241
|
+
}, signal);
|
|
242
|
+
} else if (isSelfLoadingWorkflowConfig(options)) {
|
|
243
|
+
const session = await createWorkflowSession(options, signal);
|
|
244
|
+
resolvedToken = session.token;
|
|
245
|
+
resolvedInterviewId = session.interviewId;
|
|
246
|
+
endScreenTitle = session.endScreenTitle ?? null;
|
|
247
|
+
endScreenText = session.endScreenText ?? null;
|
|
248
|
+
} else throw new Error("Workflow requires token, or configurationId with apiKey or clientId");
|
|
249
|
+
if (signal.aborted) return;
|
|
250
|
+
const sessionReady = setupWorkflowSDK({
|
|
251
|
+
token: resolvedToken,
|
|
252
|
+
lang: options.lang,
|
|
253
|
+
wasmConfig: options.wasmConfig
|
|
254
|
+
});
|
|
255
|
+
const themePromise = options.disableDashboardTheme ? Promise.resolve() : fetchWorkflowTheme().then((result) => {
|
|
256
|
+
if (result.uiConfig) setThemeUiConfig(result.uiConfig);
|
|
257
|
+
});
|
|
258
|
+
managerRef.current = createWorkflowUIManager({
|
|
259
|
+
customModuleCallback: options.customModuleCallback,
|
|
260
|
+
interviewId: resolvedInterviewId,
|
|
261
|
+
isDesktop: options.isDesktop,
|
|
262
|
+
isReturnLeg: options.digitalIdReturn !== void 0
|
|
263
|
+
});
|
|
264
|
+
managerRef.current.setEndScreenTexts(endScreenTitle, endScreenText);
|
|
265
|
+
managerRef.current.load();
|
|
266
|
+
await sessionReady;
|
|
267
|
+
if (signal.aborted) return;
|
|
268
|
+
warmupWorkflowWasm(options.wasmConfig);
|
|
269
|
+
await themePromise;
|
|
270
|
+
if (signal.aborted) return;
|
|
271
|
+
setState({
|
|
272
|
+
status: "ready",
|
|
273
|
+
workflowManager: managerRef.current
|
|
274
|
+
});
|
|
275
|
+
} catch (error) {
|
|
276
|
+
if (signal.aborted) return;
|
|
277
|
+
managerRef.current?.stop();
|
|
278
|
+
managerRef.current = null;
|
|
279
|
+
const errorMessage = error instanceof Error ? error.message : "Failed to initialize SDK";
|
|
280
|
+
const errorCode = extractIncodeStatus(error);
|
|
281
|
+
setState({
|
|
282
|
+
status: "error",
|
|
283
|
+
error: errorMessage,
|
|
284
|
+
errorCode
|
|
285
|
+
});
|
|
286
|
+
onError?.(errorMessage, errorCode);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
initialize();
|
|
290
|
+
return () => {
|
|
291
|
+
abortController.abort();
|
|
292
|
+
managerRef.current?.stop();
|
|
293
|
+
managerRef.current = null;
|
|
294
|
+
};
|
|
295
|
+
}, []);
|
|
296
|
+
return state;
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/modules/workflow/workflow.tsx
|
|
300
|
+
var LazyHomeScreen = z(() => import("./homeScreen-C1b8yg4y.js").then((module) => ({ default: module.HomeScreen })));
|
|
301
|
+
function mapModuleConfig(options) {
|
|
302
|
+
const { moduleKey, config, workflowId, authHint, loginHintPrefill, lang, mergeSessionRecordings, ageAssurance, digitalIdReturn, digitalIdReturnUrl } = options;
|
|
303
|
+
switch (moduleKey) {
|
|
304
|
+
case "AUTHENTICATION": return {
|
|
305
|
+
...config,
|
|
306
|
+
authHint
|
|
307
|
+
};
|
|
308
|
+
case "DYNAMIC_FORMS": return {
|
|
309
|
+
...config,
|
|
310
|
+
prefillValue: loginHintPrefill
|
|
311
|
+
};
|
|
312
|
+
case "REDIRECT_TO_MOBILE": return {
|
|
313
|
+
...config,
|
|
314
|
+
flowId: workflowId,
|
|
315
|
+
authHint,
|
|
316
|
+
lang
|
|
317
|
+
};
|
|
318
|
+
case "ID_CAPTURE":
|
|
319
|
+
case "TUTORIAL_ID": return {
|
|
320
|
+
...config,
|
|
321
|
+
mergeSessionRecordings: config.mergeSessionRecordings ?? mergeSessionRecordings,
|
|
322
|
+
ageAssurance: config.ageAssurance ?? ageAssurance,
|
|
323
|
+
skipProcessId: true,
|
|
324
|
+
digitalIdReturn,
|
|
325
|
+
digitalIdReturnUrl
|
|
326
|
+
};
|
|
327
|
+
case "ID": return config;
|
|
328
|
+
case "SELFIE": return {
|
|
329
|
+
...config,
|
|
330
|
+
ageAssurance: config.ageAssurance ?? ageAssurance
|
|
331
|
+
};
|
|
332
|
+
case "ADDRESS": return {
|
|
333
|
+
...config,
|
|
334
|
+
processingType: "addressStatement"
|
|
335
|
+
};
|
|
336
|
+
case "SECOND_ID": return {
|
|
337
|
+
...config,
|
|
338
|
+
isSecondId: true,
|
|
339
|
+
digitalIdReturn,
|
|
340
|
+
digitalIdReturnUrl
|
|
341
|
+
};
|
|
342
|
+
case "MANDATORY_CONSENT": return {
|
|
343
|
+
...config,
|
|
344
|
+
type: "MANDATORY"
|
|
345
|
+
};
|
|
346
|
+
default: return config;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Inner component mounted only after `useWorkflowInitialization` has resolved
|
|
351
|
+
* the session and constructed the manager. Splitting this out keeps the
|
|
352
|
+
* `useManager` factory call out of the init path — token-mode and
|
|
353
|
+
* self-loading mode both arrive here with a fully-constructed manager.
|
|
354
|
+
*/
|
|
355
|
+
var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish, onError }) => {
|
|
356
|
+
const { i18n } = useTranslation();
|
|
357
|
+
const [workflowState, workflowManager] = useManager(() => initialManager, {
|
|
358
|
+
autoLoad: false,
|
|
359
|
+
manageLifecycle: false
|
|
360
|
+
});
|
|
361
|
+
const moduleKey = workflowState?.status === "ready" ? workflowState.currentNode.moduleKey : void 0;
|
|
362
|
+
const browser = useIsBrowserSupported();
|
|
363
|
+
const loadedWorkflowConfig = workflowState && "workflowConfig" in workflowState ? workflowState.workflowConfig : void 0;
|
|
364
|
+
const workflowDisablesBrowserScreen = loadedWorkflowConfig ? loadedWorkflowConfig.disableUnsupportedBrowserScreen === true : void 0;
|
|
365
|
+
const showFinishScreen = workflowState?.status === "finished" && workflowState.workflowConfig.showFinishScreenBySessionStatus === true;
|
|
366
|
+
const moduleLoaderState = useModuleLoader({
|
|
367
|
+
moduleKey,
|
|
368
|
+
modules: LAZY_WORKFLOW_MODULES,
|
|
369
|
+
headlessModuleKeys: HEADLESS_WORKFLOW_MODULE_KEYS,
|
|
370
|
+
onModuleLoading: config.onModuleLoading,
|
|
371
|
+
onModuleLoaded: config.onModuleLoaded,
|
|
372
|
+
onError
|
|
373
|
+
});
|
|
374
|
+
const terminalFiredRef = A(false);
|
|
375
|
+
y(() => {
|
|
376
|
+
if (terminalFiredRef.current) return;
|
|
377
|
+
if (workflowState?.status === "finished") {
|
|
378
|
+
terminalFiredRef.current = true;
|
|
379
|
+
const finishStatus = withEndScreenTexts(workflowState.finishStatus, initialManager.getEndScreenTexts());
|
|
380
|
+
const oauth2Secured = workflowState.workflowConfig.oauth2Secured === true;
|
|
381
|
+
queueMicrotask(() => onFinish?.(finishStatus, {
|
|
382
|
+
sdkOwnsTerminalScreen: showFinishScreen,
|
|
383
|
+
oauth2Secured,
|
|
384
|
+
...workflowState.workflowConfig.redirectOriginOnly !== void 0 ? { redirectOriginOnly: workflowState.workflowConfig.redirectOriginOnly } : {},
|
|
385
|
+
...workflowState.completedOnMobile ? { completedOnMobile: true } : {}
|
|
386
|
+
}));
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
if (workflowState?.status === "asyncResolution") {
|
|
390
|
+
terminalFiredRef.current = true;
|
|
391
|
+
queueMicrotask(() => onFinish?.());
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
if (workflowState?.status === "error" && onError) {
|
|
395
|
+
terminalFiredRef.current = true;
|
|
396
|
+
const { error, errorCode, moduleErrorCode } = workflowState;
|
|
397
|
+
queueMicrotask(() => onError(error, errorCode, moduleErrorCode));
|
|
398
|
+
}
|
|
399
|
+
}, [
|
|
400
|
+
workflowState,
|
|
401
|
+
onFinish,
|
|
402
|
+
onError,
|
|
403
|
+
showFinishScreen,
|
|
404
|
+
initialManager
|
|
405
|
+
]);
|
|
406
|
+
const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
|
|
407
|
+
const renderSpinner = () => /* @__PURE__ */ u("div", {
|
|
408
|
+
class: "IncodeWorkflow",
|
|
409
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
410
|
+
spinnerConfig: config.spinnerConfig,
|
|
411
|
+
renderMode: spinnerRenderMode
|
|
412
|
+
})
|
|
413
|
+
});
|
|
414
|
+
const handleModuleError = (error, _errorCode, moduleErrorCode) => {
|
|
415
|
+
const deferToGenericCopy = moduleKey === "MANDATORY_CONSENT" || moduleKey === "ML_CONSENT";
|
|
416
|
+
workflowManager.errorModule(error ?? (deferToGenericCopy ? void 0 : "Module error"), moduleErrorCode);
|
|
417
|
+
};
|
|
418
|
+
if (!browser.isSupported && workflowDisablesBrowserScreen === false) return /* @__PURE__ */ u("div", {
|
|
419
|
+
class: "IncodeWorkflow",
|
|
420
|
+
children: /* @__PURE__ */ u(BrowserNotSupported, { onContinue: browser.continueAnyway })
|
|
421
|
+
});
|
|
422
|
+
if (workflowState && "homeScreen" in workflowState && workflowState.homeScreen.visible) return /* @__PURE__ */ u("div", {
|
|
423
|
+
class: "IncodeWorkflow",
|
|
424
|
+
children: /* @__PURE__ */ u(P, {
|
|
425
|
+
fallback: null,
|
|
426
|
+
children: /* @__PURE__ */ u(LazyHomeScreen, {
|
|
427
|
+
isContinueLoading: workflowState.homeScreen.isContinueLoading,
|
|
428
|
+
onContinue: () => workflowManager.continueFromHome()
|
|
429
|
+
})
|
|
430
|
+
})
|
|
431
|
+
});
|
|
432
|
+
if (!workflowState || workflowState.status === "idle" || workflowState.status === "loading") return renderSpinner();
|
|
433
|
+
if (workflowState.status === "error") return /* @__PURE__ */ u("div", {
|
|
434
|
+
class: "IncodeWorkflow",
|
|
435
|
+
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
436
|
+
message: workflowState.error,
|
|
437
|
+
moduleErrorCode: workflowState.moduleErrorCode
|
|
438
|
+
})
|
|
439
|
+
});
|
|
440
|
+
if (workflowState.status === "completing") return /* @__PURE__ */ u("div", {
|
|
441
|
+
class: "IncodeWorkflow",
|
|
442
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {})
|
|
443
|
+
});
|
|
444
|
+
if (workflowState.status === "finished") {
|
|
445
|
+
if (showFinishScreen) return /* @__PURE__ */ u("div", {
|
|
446
|
+
class: "IncodeWorkflow",
|
|
447
|
+
children: /* @__PURE__ */ u(FinishScreenBySessionStatus, { scoreStatus: workflowState.scoreStatus })
|
|
448
|
+
});
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
if (workflowState.status === "asyncResolution" || workflowState.status === "closed") return null;
|
|
452
|
+
if (moduleLoaderState.status === "unsupported") return /* @__PURE__ */ u("div", {
|
|
453
|
+
class: "IncodeWorkflow",
|
|
454
|
+
children: /* @__PURE__ */ u(UnsupportedModule, {
|
|
455
|
+
moduleKey: workflowState.currentNode.moduleKey,
|
|
456
|
+
onNext: () => workflowManager.completeModule()
|
|
457
|
+
})
|
|
458
|
+
});
|
|
459
|
+
if (moduleLoaderState.status === "idle" || moduleLoaderState.status === "loading" || moduleLoaderState.status === "error") return renderSpinner();
|
|
460
|
+
const { Component } = moduleLoaderState;
|
|
461
|
+
const moduleConfig = mapModuleConfig({
|
|
462
|
+
moduleKey: workflowState.currentNode.moduleKey,
|
|
463
|
+
config: workflowState.config,
|
|
464
|
+
workflowId: workflowState.workflowConfig.id,
|
|
465
|
+
authHint: config.authHint,
|
|
466
|
+
loginHintPrefill: config.loginHintPrefill,
|
|
467
|
+
lang: i18n.language,
|
|
468
|
+
mergeSessionRecordings: workflowState.workflowConfig.mergeSessionRecordings,
|
|
469
|
+
ageAssurance: workflowState.workflowConfig.ageAssurance,
|
|
470
|
+
digitalIdReturn: config.digitalIdReturn,
|
|
471
|
+
digitalIdReturnUrl: config.digitalIdReturnUrl
|
|
472
|
+
});
|
|
473
|
+
let extraProps = {};
|
|
474
|
+
if (workflowState.currentNode.moduleKey === "REDIRECT_TO_MOBILE") extraProps = {
|
|
475
|
+
onFinish: () => workflowManager.finishWorkflow(),
|
|
476
|
+
onContinue: () => workflowManager.completeModule()
|
|
477
|
+
};
|
|
478
|
+
return /* @__PURE__ */ u("div", {
|
|
479
|
+
class: "IncodeWorkflow",
|
|
480
|
+
children: /* @__PURE__ */ u(Component, {
|
|
481
|
+
config: moduleConfig,
|
|
482
|
+
onFinish: (output) => workflowManager.completeModule(output),
|
|
483
|
+
onError: handleModuleError,
|
|
484
|
+
...extraProps
|
|
485
|
+
}, workflowState.currentNode.id)
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
var IncodeWorkflowContent = ({ config, onFinish, onError }) => {
|
|
489
|
+
const { i18n } = useTranslation();
|
|
490
|
+
const initialSessionLanguage = A(isSelfLoadingWorkflowConfig(config) ? resolveSessionLanguage(config.lang, i18n.language, readStoredLanguage()) : config.lang).current;
|
|
491
|
+
const initState = useWorkflowInitialization({
|
|
492
|
+
...config,
|
|
493
|
+
lang: initialSessionLanguage,
|
|
494
|
+
onError
|
|
495
|
+
});
|
|
496
|
+
y(() => {
|
|
497
|
+
if (readStoredLanguage()) return;
|
|
498
|
+
if (config.lang && i18n.language !== config.lang) i18n.changeLanguage(config.lang);
|
|
499
|
+
}, [config.lang, i18n]);
|
|
500
|
+
const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
|
|
501
|
+
if (initState.status === "error") return /* @__PURE__ */ u("div", {
|
|
502
|
+
class: "IncodeWorkflow",
|
|
503
|
+
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
504
|
+
message: initState.error,
|
|
505
|
+
retryable: !isHandoffLinkRejection(initState.errorCode)
|
|
506
|
+
})
|
|
507
|
+
});
|
|
508
|
+
if (initState.status === "initializing") return /* @__PURE__ */ u("div", {
|
|
509
|
+
class: "IncodeWorkflow",
|
|
510
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
511
|
+
spinnerConfig: config.spinnerConfig,
|
|
512
|
+
renderMode: spinnerRenderMode
|
|
513
|
+
})
|
|
514
|
+
});
|
|
515
|
+
return /* @__PURE__ */ u(IncodeWorkflowReady, {
|
|
516
|
+
config,
|
|
517
|
+
workflowManager: initState.workflowManager,
|
|
518
|
+
onFinish,
|
|
519
|
+
onError
|
|
520
|
+
});
|
|
521
|
+
};
|
|
522
|
+
var IncodeWorkflowContentRoot = ({ config, onFinish, onError }) => /* @__PURE__ */ u(IncodeComponent, {
|
|
523
|
+
deferBrowserCheck: true,
|
|
524
|
+
children: config ? /* @__PURE__ */ u(ResolvedConfigProvider, { children: /* @__PURE__ */ u(IncodeWorkflowContent, {
|
|
525
|
+
config,
|
|
526
|
+
onFinish,
|
|
527
|
+
onError
|
|
528
|
+
}) }) : null
|
|
529
|
+
});
|
|
530
|
+
var IncodeWorkflow = withSessionExpiry(IncodeWorkflowContentRoot, { keepMountedOffline: true });
|
|
531
|
+
registerIncodeModuleElement(IncodeWorkflow, "incode-workflow");
|
|
532
|
+
//#endregion
|
|
533
|
+
export { mapModuleConfig as n, IncodeWorkflow as t };
|