@incodetech/web 2.4.1-agentic.1 → 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/dist/{GeolocationPermissionDenied-ClGp0a23.js → GeolocationPermissionDenied-Dag9fchQ.js} +16 -6
- 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-BKpmmWDe.js → af-ZA-CdJRBJEg.js} +58 -42
- package/dist/{ageVerification-CtuJDuRV.js → ageVerification-u2zo-WUl.js} +5 -6
- package/dist/{am-CW_ro5Ws.js → am-Df9uoE6e.js} +58 -42
- package/dist/antifraud/antifraud.es.js +5 -5
- package/dist/{applyStudioConfig-C6-Ak0q6.js → applyStudioConfig-Deh55YNW.js} +4 -5
- package/dist/{ar-AE-D9h8UMbm.js → ar-AE-CAoWsgnA.js} +58 -42
- package/dist/{ar-EG-DQqE9B26.js → ar-EG-CXi0p-DV.js} +58 -42
- package/dist/{ar-B5ToweVl.js → ar-hyEIwsq9.js} +59 -43
- package/dist/authentication/authentication.es.js +7 -7
- package/dist/autoFocusTitle-CNeT8ydU.js +19 -0
- package/dist/{az-DAZq-CQj.js → az-CUehzrK3.js} +58 -42
- package/dist/{back-horizontal-hint-qzSaNkEU.js → back-horizontal-hint-D5xvRtEe.js} +1 -1
- package/dist/{back-vertical-hint-DkYLOege.js → back-vertical-hint-DoKJSQhY.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-CF6WiVYt.js → baseTutorial-xDkp34JC.js} +4 -5
- package/dist/{bn-DRTyq2Y9.js → bn-DStUscj0.js} +58 -42
- package/dist/{bottomSheet-DylE2INk.js → bottomSheet-COrgITc6.js} +3 -3
- package/dist/{bs-B8q0B86-.js → bs-Lq1FPKJj.js} +58 -42
- package/dist/{ca-DvsHXRB-.js → ca-K83Ys4Fe.js} +58 -42
- package/dist/cameraOverlay-Bciqav_0.js +2 -0
- package/dist/{cameraOverlayHeader-CuVGnyXI.js → cameraOverlayHeader-C7Pi5eIm.js} +5 -5
- package/dist/{cameraView-D9ZxLKtA.js → cameraView-B7l40Opf.js} +3 -3
- package/dist/{capture-0jMDSGCE.js → capture-D7HVD1ht.js} +25 -33
- package/dist/capture-Do7z-u0d.js +3 -0
- package/dist/{capture-BlGlXoTx.js → capture-I1enj-0M.js} +27 -44
- package/dist/capture-WaSNv1Wn.js +2 -0
- package/dist/captureButtonIcon-DVbAZ8TK.js +1 -0
- package/dist/{captureFocusContext-9789qOe3.js → captureFocusContext-CNtkY3Lk.js} +53 -64
- package/dist/{captureFooter-B6WUFQCV.js → captureFooter-CucCxqz-.js} +5 -5
- package/dist/{ceb-pvlomXHV.js → ceb-NR8sWgTh.js} +58 -42
- package/dist/certificate-issuance/certificate-issuance.es.js +56 -39
- package/dist/certificate-issuance/styles.css +1 -1
- package/dist/certificate-issuance/styles.css.js +1 -1
- package/dist/{checkbox-BwUQ0Rs9.js → checkbox-C5k2pepr.js} +4 -4
- package/dist/chooser-CNm0MKQl.js +1517 -0
- package/dist/{connectionError-DexRpKWs.js → connectionError-Bs3TO2RP.js} +25 -15
- package/dist/consent/consent.es.js +11 -11
- package/dist/{countryFlag-CQMfCnE9.js → countryFlag-CZUyZ06G.js} +1 -1
- package/dist/{countrySelector-C0OEKMqL.js → countrySelector-CPgaMT7n.js} +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -5
- package/dist/{cs-CZ-GgvnJLMj.js → cs-CZ-KpSXcWZT.js} +58 -42
- package/dist/{cs-DB5PLEdt.js → cs-UYoUjOrG.js} +58 -42
- package/dist/curp-validation/curp-validation.es.js +82 -96
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-DQgRumW0.js → customFields-BcubL9au.js} +29 -21
- package/dist/{customWatchlist-BbC0fA-6.js → customWatchlist-D4RK0ow6.js} +11 -10
- package/dist/{da-DK-ZhpcfE_F.js → da-DK-Bds8n-Rj.js} +58 -42
- package/dist/dashboardTheme-DQaxmEq3.js +383 -0
- package/dist/dateInputComposed-BrpUtswb.js +1 -0
- package/dist/{dateInputComposed-1IcnucPq.js → dateInputComposed-BzCDzTM3.js} +4 -5
- package/dist/{de-DEBjzaow.js → de-CZlvE1Xz.js} +58 -42
- package/dist/denied-BeVKpBem.js +272 -0
- package/dist/{i18n-Dp014ljG.js → devWarn-B4kGEiva.js} +204 -90
- package/dist/{deviceWallet-CMjguFJO.js → deviceWallet-7b1VpcGm.js} +4 -4
- package/dist/{digitalIdRedirect-MNty16-5.js → digitalIdRedirect-CG9jzrQh.js} +4 -4
- package/dist/{digitalIdUpload-CUzTaoaI.js → digitalIdUpload-BUJcgYY5.js} +7 -9
- 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-BUMyJ8vw.js → documentCapture-JcxukEgT.js} +41 -49
- package/dist/dropdownComposed-C36c9ZOm.js +1 -0
- package/dist/{dropdownComposed-x3ewHxbT.js → dropdownComposed-yNmLuHxU.js} +8 -6
- package/dist/dynamic-forms/dynamic-forms.es.js +57 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-C5hEBLMs.js → ekybModule-Cp-7fs23.js} +101 -85
- 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-Dplr_D5N.js → el-C6tFl9i9.js} +58 -42
- package/dist/{el-GR-IZ4reOR7.js → el-GR-BLkQ_dbO.js} +58 -42
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BMda_cf3.js → electronic-signature-D-4uTJdE.js} +18 -14
- package/dist/email/email.es.js +16 -15
- package/dist/{emailInput-BI8gWC0D.js → emailInput-C5VHG66O.js} +23 -12
- package/dist/{en-DG-C6tsWvHi.js → en-DG-BEuiDKtl.js} +58 -42
- package/dist/{en-Db1L_u7B.js → en-DNBypQuu.js} +58 -42
- package/dist/{errorContent-pPAgyy2i.js → errorContent-BC8mDFld.js} +17 -19
- package/dist/{formField-CfQKYeGF.js → errorParams-W7NX72mI.js} +2 -33
- package/dist/{es-419-DxKrJq7W.js → es-419-BCIRYhZK.js} +1 -1
- package/dist/{es-C5unKsaF.js → es-DjQEM4f9.js} +59 -43
- package/dist/{es-ES-sHbsufzT.js → es-ES-Q6nMptUM.js} +58 -42
- package/dist/{es-MX-Cd_DCR0A.js → es-MX-Df5g3bAX.js} +58 -42
- package/dist/{et-BoGq2cx8.js → et-BYRhgB8X.js} +58 -42
- package/dist/{expiredId-DWjw94rT.js → expiredId-BVa13c9u.js} +20 -37
- package/dist/extensibility.es.js +329 -47
- package/dist/{fa-IR-DuUxGXrf.js → fa-IR-DP-FPc-r.js} +58 -42
- 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-DV7NxYu_.js → faceMatch-C5QmR3Vt.js} +40 -54
- package/dist/{fi-FI-DMOBNTjA.js → fi-FI-rnIjEC7X.js} +58 -42
- 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-CjrLxBaj.js → fieldLabelHint-eF42wLDJ.js} +1 -1
- package/dist/{finalSuccessScreen-C50L96j9.js → finalSuccessScreen-vOR061dK.js} +25 -20
- package/dist/fiscal-qr/fiscal-qr.es.js +16 -19
- package/dist/flipAnimation-CGP9Fu9J.js +46 -0
- package/dist/{flipCapturedCardEligibility-DLr9F2g2.js → flipCapturedCardEligibility-C8wQ0_No.js} +4 -4
- package/dist/flow/flow.es.js +45 -36
- 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-DZ8jlsp3.js → fr-CA-vPsubqTC.js} +58 -42
- package/dist/{fr-DSR-AP0e.js → fr-P8YbBMxT.js} +58 -42
- package/dist/{front-horizontal-hint-DOphQZg2.js → front-horizontal-hint-CDHj9LQF.js} +1 -1
- package/dist/{front-vertical-hint-S6PcS9_m.js → front-vertical-hint-B_pU27Iv.js} +1 -1
- package/dist/geolocation/geolocation.es.js +10 -10
- package/dist/government-validation/government-validation.es.js +7 -7
- package/dist/{he-N5dfJeyd.js → he-DfptjOXC.js} +58 -42
- package/dist/{hi-JR6K9zbd.js → hi-C7tSzMcB.js} +58 -42
- package/dist/{hmn-j2YA7FxW.js → hmn-jKsUYgaq.js} +58 -42
- package/dist/{homeScreen-C3pPw52y.js → homeScreen-C1b8yg4y.js} +12 -11
- package/dist/{hooks-BFP0WaJM.js → hooks-COiwxC3h.js} +33 -25
- package/dist/{hr-8cOdwB0t.js → hr-ehtrddz3.js} +58 -42
- package/dist/{ht-DDNL4C__.js → ht-CA5NNkri.js} +58 -42
- package/dist/{hu-CynQQUFQ.js → hu-DYgOdNXH.js} +58 -42
- package/dist/{icons-c-hFaG4L.js → icons-CLoob8B-.js} +3 -27
- package/dist/id/id.es.js +104 -39
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-o_Yg0n8W.js → id-CMBxWcTV.js} +58 -42
- package/dist/{id-back-of-card-Bk6ZQUE9.js → id-back-of-card-BEAthtU0.js} +1 -1
- package/dist/{id-back-of-card-vertical-BZo00s50.js → id-back-of-card-vertical-Ce0d7tp5.js} +1 -1
- package/dist/{id-front-of-card-BJ96se7u.js → id-front-of-card-DS0lS9jP.js} +1 -1
- package/dist/{id-front-of-card-vertical-DSfJB0lX.js → id-front-of-card-vertical-BLWn85NX.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -12
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +6 -6
- package/dist/{idFlipTransition-DXdtXYza.js → idFlipTransition-3z8Lqcab.js} +22 -26
- package/dist/{idOcr-CjqfkRJ7.js → idOcr-qPEZSG5D.js} +60 -37
- package/dist/identity-reuse/identity-reuse.es.js +21 -19
- package/dist/{incodeComponent-DtKh-UUm.js → incodeComponent-CxWTvgqz.js} +10 -12
- package/dist/{incodeModule-DCHXAeYU.js → incodeModule-BQVPjhJE.js} +5 -5
- package/dist/index.es.js +3 -4
- package/dist/{inputComposed-CmVsaHOa.js → inputComposed-oWeKvdES.js} +4 -4
- package/dist/{it-BXevrtHn.js → it-DNcyH3GL.js} +58 -42
- package/dist/{ja-DiTXnTx-.js → ja-BkVsn7yw.js} +58 -42
- package/dist/{ja-JP-D1IRWR-p.js → ja-JP-BI4iShf-.js} +59 -43
- package/dist/{jv-Us70GzGp.js → jv-Bpp0lYl-.js} +58 -42
- package/dist/{ka-BSsWQ4yU.js → ka-__y8BNrb.js} +58 -42
- package/dist/{kk-D5R6r4H7.js → kk-C8RZv7Y9.js} +58 -42
- package/dist/{km-CCCb2Rnt.js → km-CdNpEVlv.js} +65 -49
- package/dist/{ko-kQioCg2w.js → ko-Db8jh_Pq.js} +58 -42
- package/dist/{ko-KP-JF4khv1Y.js → ko-KP-Cn4RuF_b.js} +58 -42
- package/dist/{ky-CLOemVjC.js → ky-DljlRCIf.js} +58 -42
- package/dist/kyb-checks/kyb-checks.es.js +1 -1
- package/dist/kybChecksModule-B2nSWMuy.js +2 -0
- package/dist/{kybChecksModule-C6Y9Hxpr.js → kybChecksModule-DGXAS1Sc.js} +83 -67
- package/dist/{lo-tzHUt1CQ.js → lo-DXJI47k7.js} +58 -42
- package/dist/{lt-B2ZI-Cgu.js → lt-CUHwdgrq.js} +59 -43
- package/dist/{lv-BJnxtSYw.js → lv-BFrYWmGH.js} +59 -43
- package/dist/{mandatoryConsent-BiQuEZRu.js → mandatoryConsent-Dc0PQou0.js} +11 -11
- package/dist/{manualCaptureButton-BRSmPTeR.js → manualCaptureButton-DIlebb4i.js} +4 -4
- package/dist/{manualCaptureButton-Dw0MMSkc.js → manualCaptureButton-t0b_hCKH.js} +12 -13
- package/dist/{mk-Cj7Iw2Q4.js → mk-BRpnPevj.js} +58 -42
- package/dist/{mn-CA_rNxtz.js → mn-tly7Lz7o.js} +58 -42
- package/dist/{ms-BydA1Zjz.js → ms-DFpRACK3.js} +58 -42
- package/dist/{my-gFKufKaG.js → my-G2jJl4tA.js} +58 -42
- package/dist/{nb-NO-CDsGQbOZ.js → nb-NO-CaDPgzxb.js} +58 -42
- package/dist/{ne-Cyfi0vFI.js → ne-BaCq8Imv.js} +58 -42
- package/dist/{nl-e1gbmAFO.js → nl-BK-jT4yQ.js} +58 -42
- package/dist/{optionAccessibleLabel-BTUieMxH.js → optionAccessibleLabel-CDKKh7c3.js} +25 -10
- package/dist/{otpInput-D3L3QhnR.js → otpInput-B4mH5be-.js} +96 -15
- package/dist/{page-U6jZ7BBI.js → page-5CklyQnq.js} +32 -36
- package/dist/{pageUiConfig-Qf6ItVv9.js → pageUiConfig-DZQHreIo.js} +67 -17
- package/dist/{passport-horizontal-hint-Ddsh6fUS.js → passport-horizontal-hint-JdWoLKa5.js} +1 -1
- package/dist/{passport-vertical-hint-Dukxq6-T.js → passport-vertical-hint-BgtJXbvC.js} +1 -1
- package/dist/passwordRequirements-bbbHZACR.js +49 -0
- package/dist/{pdf-Bd5QplFS.js → pdf-CLcY9ugT.js} +2 -2
- package/dist/pdfViewer-2NTW2bZn.js +2 -0
- package/dist/{pdfViewer-BrqSEtbr.js → pdfViewer-D4xu2J13.js} +4 -4
- package/dist/permissionInstructionList-Dmy2y4cX.js +43 -0
- package/dist/{permissions-KUDhffd9.js → permissions-BPh2QNoI.js} +61 -43
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-DlJMTavK.js → phoneInputComposed-Dzt9xdrF.js} +6 -6
- package/dist/{pl-BSMcCWS-.js → pl-CoWZGdbr.js} +58 -42
- package/dist/{preloadableLazy-C8_OYaTC.js → preloadableLazy-2hqV2Q8z.js} +11 -5
- package/dist/{processing-B5EH7yNg.js → processing-DStiN9XK.js} +2 -2
- package/dist/{progressBar-CSpS29pV.js → progressBar-CJqJXzAh.js} +2 -2
- package/dist/{pt-BNFC2quK.js → pt-BDByRgpr.js} +58 -42
- package/dist/{pt-BR-bH8DC2gH.js → pt-BR-BRMyrqIN.js} +58 -42
- package/dist/{pt-PT-B8PXmgwU.js → pt-PT-CfwlYo6V.js} +58 -42
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +29 -26
- package/dist/{registerIncodeElement-oiLvm6xq.js → registerIncodeElement-B5W7SqS3.js} +1 -1
- package/dist/{resendTimer-D1H3gwkI.js → resendTimer-COMRdeDC.js} +2 -2
- package/dist/{richText-sUdTiRDE.js → richText-BMvr5dhl.js} +4 -4
- package/dist/{ro-DnN8QNYa.js → ro-ju058j4P.js} +58 -42
- package/dist/{ru-DAwUFXHq.js → ru-DYwhf4Hw.js} +58 -42
- package/dist/{ru-RU-Coxt0VCU.js → ru-RU-BAvJW-vp.js} +58 -42
- package/dist/{sanitizeSvg-OdNh1mqY.js → sanitizeSvg-BZoCoRr0.js} +1 -1
- package/dist/selfie/selfie.es.js +11 -11
- package/dist/signature/signature.es.js +10 -10
- package/dist/{sk-AB8sSlNw.js → sk-Cl6F-Kaz.js} +61 -45
- package/dist/{sl-6Dfzfi7s.js → sl-BxsNneWx.js} +58 -42
- package/dist/{smsTabContent-CBEKgzFv.js → smsTabContent-BLJM1Hbk.js} +15 -11
- package/dist/{so-X5BdrDvV.js → so-D8izvKPD.js} +58 -42
- package/dist/spacer-NanHQwzu.js +1100 -0
- package/dist/spinner-bRH4yw9e.js +69 -0
- package/dist/{sr-JHjMcbGs.js → sr-BtsYxFKz.js} +58 -42
- package/dist/{sr-Latn-DgT7eTG2.js → sr-Latn-BTn5o62j.js} +64 -48
- package/dist/{sr-YU-BBhB_G63.js → sr-YU-BNViLYA5.js} +1 -1
- package/dist/step-up/step-up.es.js +483 -0
- package/dist/step-up/styles.css +2 -0
- package/dist/{sv-SE-CvX8mC8T.js → sv-SE-f5R8i8ue.js} +58 -42
- package/dist/{sw-CN0TdnY4.js → sw-BgHNoEGs.js} +58 -42
- package/dist/{th-TH-CWr4z3JK.js → th-TH-DmfU-a6A.js} +58 -42
- package/dist/{th-BmFntKib.js → th-aFkhFNxp.js} +58 -42
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-rzkk5P_n.js → tl-CA42NVfv.js} +58 -42
- package/dist/{tl-PH-BRIbtBRN.js → tl-PH-DMCUe7pP.js} +58 -42
- package/dist/{tr-DKuVBwqW.js → tr-BVjID0jl.js} +58 -42
- package/dist/{transitionSpinner-Di0XBAix.js → transitionSpinner-MclJtdHE.js} +5 -6
- package/dist/{tutorial-C9psDR2i.js → tutorial-fC2iei2v.js} +4 -4
- 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 +57 -16
- 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/kyb-checks.d.ts +7 -3
- 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-CiGhKJGx.js → typography-Dncyo-3D.js} +3 -11
- package/dist/{uk-CXjqq4lX.js → uk-HjZTXCOA.js} +58 -42
- package/dist/{uk-UA-BIE9WByU.js → uk-UA-ChpoWDcU.js} +59 -43
- package/dist/{ur-vNGesC3r.js → ur-CZkQHBM4.js} +58 -42
- package/dist/{useCameraPreview-Bd7AYE9h.js → useCameraPreview-DrteOjaq.js} +1 -1
- package/dist/{useCaptureHelpButton-Dj-jESrS.js → useCaptureHelpButton-B5zEGcaB.js} +3 -3
- package/dist/{useIsDarkTheme-Bu9CvKxW.js → useIsDarkTheme-DAs5RhsW.js} +1 -1
- package/dist/{useModuleLoader-BBCNkJmc.js → useModuleLoader-C2fbLotc.js} +7 -2
- package/dist/{uz-Gmw1XRgv.js → uz-BCp_m_Om.js} +58 -42
- package/dist/{vendor-preact-DHGqBGMH.js → vendor-preact-HIccnts1.js} +1 -1
- package/dist/{verificationResult-Clxdxm_s.js → verificationResult-sh4xut0K.js} +19 -24
- package/dist/{vi-DTxxRUw0.js → vi-BvxcvDgc.js} +58 -42
- 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 +30 -25
- package/dist/watchlist/watchlist.es.js +12 -10
- package/dist/{watchlistForBusiness-CpFp2EYX.js → watchlistForBusiness-DnS1r-Ml.js} +34 -23
- package/dist/{withEndScreenTexts-Bd3mof3s.js → withEndScreenTexts-CHWofhk5.js} +28 -25
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +1 -534
- package/dist/workflow-DBS9eyu4.js +533 -0
- package/dist/{zh-CN-aB48G_R1.js → zh-CN-DZRia1ir.js} +58 -42
- package/dist/{zh-DjtyfO4e.js → zh-DN_kUZaR.js} +58 -42
- package/dist/{zh-HANT-8p8SH8C3.js → zh-HANT-DisU_Tal.js} +58 -42
- package/dist/{zh-TW-CCsz9gKq.js → zh-TW-BJzCsdPP.js} +58 -42
- package/package.json +27 -7
- package/dist/asset-Ctwd_20H.js +0 -355
- package/dist/autoFocusTitle-CzaCWWW5.js +0 -32
- package/dist/cameraOverlay-DNf0PEF4.js +0 -2
- package/dist/capture-DKBA5j5A.js +0 -3
- package/dist/capture-D_Dwrj1F.js +0 -2
- package/dist/captureButtonIcon-A9kn2E_m.js +0 -1
- package/dist/check-icon-BdHltEK6.js +0 -48
- package/dist/chooser-CmG71-lh.js +0 -1589
- package/dist/dashboardTheme-DtXsx9IK.js +0 -246
- package/dist/dateInputComposed-BFlCk-sg.js +0 -1
- package/dist/denied-CwdVWAUw.js +0 -1874
- package/dist/devWarn-CW20j1Qd.js +0 -9
- package/dist/documentCapture-rECLkwpi.js +0 -2
- package/dist/dropdownComposed-C9sLQE6i.js +0 -1
- package/dist/ekybModule-B5IEiSyi.js +0 -2
- package/dist/ekycModule-B7OFnP3H.js +0 -2
- package/dist/ekycModule-TVKk0qdS.js +0 -327
- package/dist/faceMatch-B2aMz3X2.js +0 -2
- package/dist/fieldComparison-BY2XXsp3.js +0 -2
- package/dist/fieldComparison-CFLU1h6n.js +0 -113
- package/dist/flipAnimation-8x-qdtF_.js +0 -33
- package/dist/inputComposed-DvGrso7g.js +0 -1
- package/dist/kybChecksModule-r3MIpFhS.js +0 -2
- package/dist/numberedStep-CeN77hnQ.js +0 -13
- package/dist/passwordInputComposed-CW_1DcB8.js +0 -74
- package/dist/pdfViewer-rDnnHzmw.js +0 -2
- package/dist/radioGroupComposed-CW8ElYSR.js +0 -160
- package/dist/radioGroupComposed-flIYNffL.js +0 -1
- package/dist/reload-icon-FD2e9Wet.js +0 -70
- package/dist/spacer-Jaru_3sb.js +0 -82
- package/dist/spinner-51btbot0.js +0 -407
- package/dist/uiConfig-BJAuZQWc.js +0 -77
- /package/dist/{aligndevicelottie-BEKzL4SB.js → aligndevicelottie-DroBRtbt.js} +0 -0
- /package/dist/{assertClassBrand-DJr5K93j.js → assertClassBrand-CuHX5JcR.js} +0 -0
- /package/dist/{back-tutorial-B9W63fa-.js → back-tutorial-ydxRtY-Y.js} +0 -0
- /package/dist/{backdevicelottie-DsN8QBV3.js → backdevicelottie-hv8vbwYH.js} +0 -0
- /package/dist/{blurdevicelottie-DkV7Kwo4.js → blurdevicelottie-Cgu4hKn7.js} +0 -0
- /package/dist/{countryDefinitions-RBVGM1D_.js → countryDefinitions-DlsV3Tf8.js} +0 -0
- /package/dist/{defineProperty-E9wRIIo9.js → defineProperty-CRYuXE79.js} +0 -0
- /package/dist/{flip-animation-DJVnWWL5.js → flip-animation-CJhh7l_J.js} +0 -0
- /package/dist/{frontdevicelottie-DiW1Wmya.js → frontdevicelottie-vyO3BJJe.js} +0 -0
- /package/dist/{glaredevicelottie-CK-fnX_s.js → glaredevicelottie-DrgkRjFh.js} +0 -0
- /package/dist/{helpButtonConfig-CjbrBQaV.js → helpButtonConfig-BFragC_J.js} +0 -0
- /package/dist/{id-laser-h-6Am_cjM8.js → id-laser-h-CUz29uFc.js} +0 -0
- /package/dist/{id-laser-v-DXoF3flH.js → id-laser-v-Bnf10QJp.js} +0 -0
- /package/dist/{id-tutorial-DkKH3eTE.js → id-tutorial-DGwvKAMs.js} +0 -0
- /package/dist/{lottie_light-B819EhaL.js → lottie_light-BXXuEKyZ.js} +0 -0
- /package/dist/{passport-tutorial-D3Fpk-Tj.js → passport-tutorial-DoqqyBXo.js} +0 -0
- /package/dist/{pdf.worker.min-DzBNMoKS.js → pdf.worker.min-Cm2oniEB.js} +0 -0
- /package/dist/{policyUrls-Benduf-R.js → policyUrls-Hvb4jPfF.js} +0 -0
- /package/dist/{purify.es-CSPoFViI.js → purify.es-DIIgrZ-E.js} +0 -0
- /package/dist/{realtimeFeedbackConfig-tBX94SOm.js → realtimeFeedbackConfig-DeZksjlR.js} +0 -0
- /package/dist/{selfieTutorial-DnsRD1Z9.js → selfieTutorial-BTewRjM5.js} +0 -0
|
@@ -1,535 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as u, c as z, l as A, m as d, o as P, y } from "../vendor-preact-DHGqBGMH.js";
|
|
3
|
-
import { n as setThemeUiConfig } from "../uiConfig-BJAuZQWc.js";
|
|
4
|
-
import { i as fetchAndApplyTheme } from "../dashboardTheme-DtXsx9IK.js";
|
|
5
|
-
import { t as AutoFocusTitle } from "../autoFocusTitle-CzaCWWW5.js";
|
|
6
|
-
import { t as Page } from "../page-U6jZ7BBI.js";
|
|
7
|
-
import { i as TerminalErrorPage, n as ResolvedConfigProvider, p as useIsBrowserSupported, v as useManager, y as withSessionExpiry } from "../hooks-BFP0WaJM.js";
|
|
8
|
-
import { t as TransitionSpinner } from "../transitionSpinner-Di0XBAix.js";
|
|
9
|
-
import { r as BrowserNotSupported, t as IncodeComponent } from "../incodeComponent-DtKh-UUm.js";
|
|
10
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-DCHXAeYU.js";
|
|
11
|
-
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-Bd3mof3s.js";
|
|
12
|
-
import { a as HEADLESS_WORKFLOW_MODULE_KEYS, n as useModuleLoader } from "../useModuleLoader-BBCNkJmc.js";
|
|
13
|
-
import { initializeWasmUtil, resolveWasmConfigForPipelines, setWasmConfig, warmupWasm } from "@incodetech/core/wasm";
|
|
14
|
-
import { bootstrapSession, getFinishStatus, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
15
|
-
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
16
|
-
import { createWorkflowManager } from "@incodetech/core/workflow";
|
|
17
|
-
//#region src/modules/workflow/finishScreenStatusIcons.tsx
|
|
18
|
-
var FinishStatusSuccessIcon = () => /* @__PURE__ */ u("svg", {
|
|
19
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
width: "54",
|
|
21
|
-
height: "54",
|
|
22
|
-
viewBox: "0 0 54 54",
|
|
23
|
-
fill: "none",
|
|
24
|
-
class: "IncodeFinishStatusSuccessIcon",
|
|
25
|
-
"aria-hidden": "true",
|
|
26
|
-
focusable: "false",
|
|
27
|
-
children: [/* @__PURE__ */ u("path", {
|
|
28
|
-
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",
|
|
29
|
-
fill: "#0CD5A2"
|
|
30
|
-
}), /* @__PURE__ */ u("path", {
|
|
31
|
-
d: "M37.5 20L23.492 35.75L16.5 27.875",
|
|
32
|
-
stroke: "white",
|
|
33
|
-
"stroke-width": "4",
|
|
34
|
-
"stroke-linecap": "round",
|
|
35
|
-
"stroke-linejoin": "round"
|
|
36
|
-
})]
|
|
37
|
-
});
|
|
38
|
-
var FinishStatusReviewIcon = () => /* @__PURE__ */ u("svg", {
|
|
39
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
-
width: "56",
|
|
41
|
-
height: "54",
|
|
42
|
-
viewBox: "0 0 33 32",
|
|
43
|
-
fill: "none",
|
|
44
|
-
class: "IncodeFinishStatusReviewIcon",
|
|
45
|
-
"aria-hidden": "true",
|
|
46
|
-
focusable: "false",
|
|
47
|
-
children: /* @__PURE__ */ u("path", {
|
|
48
|
-
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",
|
|
49
|
-
fill: "#FF9900"
|
|
50
|
-
})
|
|
51
|
-
});
|
|
52
|
-
var FinishStatusErrorIcon = () => /* @__PURE__ */ u("svg", {
|
|
53
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
54
|
-
width: "72",
|
|
55
|
-
height: "72",
|
|
56
|
-
viewBox: "0 0 72 72",
|
|
57
|
-
fill: "none",
|
|
58
|
-
class: "IncodeFinishStatusErrorIcon",
|
|
59
|
-
"aria-hidden": "true",
|
|
60
|
-
focusable: "false",
|
|
61
|
-
children: /* @__PURE__ */ u("path", {
|
|
62
|
-
"fill-rule": "evenodd",
|
|
63
|
-
"clip-rule": "evenodd",
|
|
64
|
-
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",
|
|
65
|
-
fill: "#FF0000"
|
|
66
|
-
})
|
|
67
|
-
});
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/modules/workflow/finishScreenBySessionStatus.tsx
|
|
70
|
-
var VARIANT_CONTENT = {
|
|
71
|
-
success: {
|
|
72
|
-
Icon: FinishStatusSuccessIcon,
|
|
73
|
-
titleKey: "finishScreenBySessionStatus.success.title",
|
|
74
|
-
titleDefault: "Identity",
|
|
75
|
-
subtitleKey: "finishScreenBySessionStatus.success.subtitle",
|
|
76
|
-
subtitleDefault: "successfully verified"
|
|
77
|
-
},
|
|
78
|
-
error: {
|
|
79
|
-
Icon: FinishStatusErrorIcon,
|
|
80
|
-
titleKey: "finishScreenBySessionStatus.error.title",
|
|
81
|
-
titleDefault: "Unable to verify identity",
|
|
82
|
-
descriptionKey: "finishScreenBySessionStatus.error.description",
|
|
83
|
-
descriptionDefault: "We encountered an issue while processing your request. Please try again later."
|
|
84
|
-
},
|
|
85
|
-
review: {
|
|
86
|
-
Icon: FinishStatusReviewIcon,
|
|
87
|
-
titleKey: "finishScreenBySessionStatus.review.title",
|
|
88
|
-
titleDefault: "Verification under review",
|
|
89
|
-
descriptionKey: "finishScreenBySessionStatus.review.description",
|
|
90
|
-
descriptionDefault: "Your information did not match our records. Please contact IT support for assistance."
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
/** Status-specific workflow completion screen (success / error / review). */
|
|
94
|
-
var FinishScreenBySessionStatus = ({ scoreStatus }) => {
|
|
95
|
-
const { t } = useTranslation();
|
|
96
|
-
const variant = classifyScoreStatus(scoreStatus);
|
|
97
|
-
const content = VARIANT_CONTENT[variant];
|
|
98
|
-
const { Icon } = content;
|
|
99
|
-
return /* @__PURE__ */ u(Page, {
|
|
100
|
-
className: "IncodeFinishScreenBySessionStatus",
|
|
101
|
-
"data-testid": "finish-screen-by-session-status",
|
|
102
|
-
hideHeader: true,
|
|
103
|
-
hideFooterBranding: true,
|
|
104
|
-
children: /* @__PURE__ */ u("div", {
|
|
105
|
-
class: "IncodeFinishScreenStatus",
|
|
106
|
-
"data-variant": variant,
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ u(Icon, {}),
|
|
109
|
-
/* @__PURE__ */ u("div", {
|
|
110
|
-
class: "IncodeFinishScreenTitleGroup",
|
|
111
|
-
children: [/* @__PURE__ */ u(AutoFocusTitle, {
|
|
112
|
-
className: "IncodeFinishScreenTitle",
|
|
113
|
-
children: t(content.titleKey, { defaultValue: content.titleDefault })
|
|
114
|
-
}, variant), content.subtitleKey ? /* @__PURE__ */ u("p", {
|
|
115
|
-
class: "IncodeFinishScreenSubtitle",
|
|
116
|
-
children: t(content.subtitleKey, { defaultValue: content.subtitleDefault })
|
|
117
|
-
}) : null]
|
|
118
|
-
}),
|
|
119
|
-
content.descriptionKey ? /* @__PURE__ */ u("p", {
|
|
120
|
-
class: "IncodeFinishScreenDescription",
|
|
121
|
-
children: t(content.descriptionKey, { defaultValue: content.descriptionDefault })
|
|
122
|
-
}) : null
|
|
123
|
-
]
|
|
124
|
-
})
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region src/modules/workflow/workflowInit.ts
|
|
129
|
-
var LAZY_WORKFLOW_MODULES = {
|
|
130
|
-
...LAZY_UI_MODULES,
|
|
131
|
-
REDIRECT_TO_MOBILE: () => import("../redirect-to-mobile/redirect-to-mobile.es.js").then((m) => m.RedirectToMobile),
|
|
132
|
-
ID: () => import("../id-verification/id-verification.es.js").then((m) => m.IdVerification),
|
|
133
|
-
IDENTITY_REUSE: () => import("../identity-reuse/identity-reuse.es.js").then((m) => m.IdentityReuse)
|
|
134
|
-
};
|
|
135
|
-
function setupWorkflowSDK(options) {
|
|
136
|
-
return setupSDK({
|
|
137
|
-
...options,
|
|
138
|
-
preloadFlow: false
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
async function fetchWorkflowTheme() {
|
|
142
|
-
try {
|
|
143
|
-
const theme = await fetchAndApplyTheme();
|
|
144
|
-
return {
|
|
145
|
-
theme,
|
|
146
|
-
uiConfig: {
|
|
147
|
-
logoSrc: theme.logo,
|
|
148
|
-
hideFooterBranding: theme.hideFooterBranding
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
} catch {
|
|
152
|
-
return {};
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function createWorkflowUIManager(options = {}) {
|
|
156
|
-
let endScreen = {
|
|
157
|
-
endScreenTitle: null,
|
|
158
|
-
endScreenText: null
|
|
159
|
-
};
|
|
160
|
-
const manager = createWorkflowManager({
|
|
161
|
-
customModuleCallback: options.customModuleCallback,
|
|
162
|
-
interviewId: options.interviewId,
|
|
163
|
-
isDesktop: options.isDesktop ?? isDesktopOrEmulated(),
|
|
164
|
-
isReturnLeg: options.isReturnLeg,
|
|
165
|
-
getFinishStatus: async (workflowId, signal) => {
|
|
166
|
-
return {
|
|
167
|
-
...await getFinishStatus(workflowId, signal),
|
|
168
|
-
...endScreen
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
return Object.assign(manager, {
|
|
173
|
-
setEndScreenTexts(endScreenTitle, endScreenText) {
|
|
174
|
-
endScreen = {
|
|
175
|
-
endScreenTitle,
|
|
176
|
-
endScreenText
|
|
177
|
-
};
|
|
178
|
-
},
|
|
179
|
-
getEndScreenTexts() {
|
|
180
|
-
return endScreen;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function warmupWorkflowWasm(wasmConfig) {
|
|
185
|
-
if (wasmConfig === false) return;
|
|
186
|
-
const resolved = resolveWasmConfigForPipelines(wasmConfig?.pipelines ?? [], wasmConfig);
|
|
187
|
-
const upgradeConfig = {
|
|
188
|
-
...resolved,
|
|
189
|
-
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
190
|
-
};
|
|
191
|
-
setWasmConfig(upgradeConfig);
|
|
192
|
-
return warmupWasm(resolved).then(() => initializeWasmUtil(upgradeConfig)).catch((error) => {
|
|
193
|
-
console.error("Workflow WASM warmup failed:", error);
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region src/modules/workflow/createWorkflowSession.ts
|
|
198
|
-
async function createWorkflowSession(config, signal) {
|
|
199
|
-
return bootstrapSession(await resolveApiKey(config), {
|
|
200
|
-
configurationId: config.configurationId,
|
|
201
|
-
externalId: config.externalId,
|
|
202
|
-
externalCustomerId: config.externalCustomerId,
|
|
203
|
-
language: config.lang,
|
|
204
|
-
customFields: config.customFields,
|
|
205
|
-
uuid: config.uuid,
|
|
206
|
-
urlUuid: config.urlUuid,
|
|
207
|
-
loginHint: config.loginHint,
|
|
208
|
-
onUrlUuidRefreshed: config.onUrlUuidRefreshed
|
|
209
|
-
}, signal);
|
|
210
|
-
}
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/modules/workflow/workflowConfig.ts
|
|
213
|
-
function hasWorkflowToken(config) {
|
|
214
|
-
return typeof config.token === "string";
|
|
215
|
-
}
|
|
216
|
-
function isSelfLoadingWorkflowConfig(config) {
|
|
217
|
-
const bootstrapConfig = config;
|
|
218
|
-
return typeof bootstrapConfig.configurationId === "string" && (typeof bootstrapConfig.apiKey === "string" || typeof bootstrapConfig.clientId === "string");
|
|
219
|
-
}
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/modules/workflow/useWorkflowInitialization.ts
|
|
222
|
-
function useWorkflowInitialization(options) {
|
|
223
|
-
const { onError, onUrlUuidRefreshed } = options;
|
|
224
|
-
const [state, setState] = d({ status: "initializing" });
|
|
225
|
-
const managerRef = A(null);
|
|
226
|
-
y(() => {
|
|
227
|
-
if (state.status !== "initializing") return;
|
|
228
|
-
const abortController = new AbortController();
|
|
229
|
-
const { signal } = abortController;
|
|
230
|
-
const initialize = async () => {
|
|
231
|
-
try {
|
|
232
|
-
let resolvedToken;
|
|
233
|
-
let resolvedInterviewId;
|
|
234
|
-
let endScreenTitle = null;
|
|
235
|
-
let endScreenText = null;
|
|
236
|
-
if (hasWorkflowToken(options)) {
|
|
237
|
-
resolvedToken = options.token;
|
|
238
|
-
resolvedInterviewId = options.interviewId;
|
|
239
|
-
endScreenTitle = options.endScreenTitle ?? null;
|
|
240
|
-
endScreenText = options.endScreenText ?? null;
|
|
241
|
-
if (options.urlUuid) await refreshQrUrlUuid({
|
|
242
|
-
urlUuid: options.urlUuid,
|
|
243
|
-
onboardingId: null,
|
|
244
|
-
onRefreshed: onUrlUuidRefreshed
|
|
245
|
-
}, signal);
|
|
246
|
-
} else if (isSelfLoadingWorkflowConfig(options)) {
|
|
247
|
-
const session = await createWorkflowSession(options, signal);
|
|
248
|
-
resolvedToken = session.token;
|
|
249
|
-
resolvedInterviewId = session.interviewId;
|
|
250
|
-
endScreenTitle = session.endScreenTitle ?? null;
|
|
251
|
-
endScreenText = session.endScreenText ?? null;
|
|
252
|
-
} else throw new Error("Workflow requires token, or configurationId with apiKey or clientId");
|
|
253
|
-
if (signal.aborted) return;
|
|
254
|
-
const sessionReady = setupWorkflowSDK({
|
|
255
|
-
token: resolvedToken,
|
|
256
|
-
lang: options.lang,
|
|
257
|
-
wasmConfig: options.wasmConfig
|
|
258
|
-
});
|
|
259
|
-
const themePromise = options.disableDashboardTheme ? Promise.resolve() : fetchWorkflowTheme().then((result) => {
|
|
260
|
-
if (result.uiConfig) setThemeUiConfig(result.uiConfig);
|
|
261
|
-
});
|
|
262
|
-
managerRef.current = createWorkflowUIManager({
|
|
263
|
-
customModuleCallback: options.customModuleCallback,
|
|
264
|
-
interviewId: resolvedInterviewId,
|
|
265
|
-
isDesktop: options.isDesktop,
|
|
266
|
-
isReturnLeg: options.digitalIdReturn !== void 0
|
|
267
|
-
});
|
|
268
|
-
managerRef.current.setEndScreenTexts(endScreenTitle, endScreenText);
|
|
269
|
-
managerRef.current.load();
|
|
270
|
-
await sessionReady;
|
|
271
|
-
if (signal.aborted) return;
|
|
272
|
-
warmupWorkflowWasm(options.wasmConfig);
|
|
273
|
-
await themePromise;
|
|
274
|
-
if (signal.aborted) return;
|
|
275
|
-
setState({
|
|
276
|
-
status: "ready",
|
|
277
|
-
workflowManager: managerRef.current
|
|
278
|
-
});
|
|
279
|
-
} catch (error) {
|
|
280
|
-
if (signal.aborted) return;
|
|
281
|
-
managerRef.current?.stop();
|
|
282
|
-
managerRef.current = null;
|
|
283
|
-
const errorMessage = error instanceof Error ? error.message : "Failed to initialize SDK";
|
|
284
|
-
const errorCode = extractIncodeStatus(error);
|
|
285
|
-
setState({
|
|
286
|
-
status: "error",
|
|
287
|
-
error: errorMessage,
|
|
288
|
-
errorCode
|
|
289
|
-
});
|
|
290
|
-
onError?.(errorMessage, errorCode);
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
initialize();
|
|
294
|
-
return () => {
|
|
295
|
-
abortController.abort();
|
|
296
|
-
managerRef.current?.stop();
|
|
297
|
-
managerRef.current = null;
|
|
298
|
-
};
|
|
299
|
-
}, []);
|
|
300
|
-
return state;
|
|
301
|
-
}
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region src/modules/workflow/workflow.tsx
|
|
304
|
-
var LazyHomeScreen = z(() => import("../homeScreen-C3pPw52y.js").then((module) => ({ default: module.HomeScreen })));
|
|
305
|
-
function mapModuleConfig(options) {
|
|
306
|
-
const { moduleKey, config, workflowId, authHint, loginHintPrefill, lang, mergeSessionRecordings, ageAssurance, digitalIdReturn, digitalIdReturnUrl } = options;
|
|
307
|
-
switch (moduleKey) {
|
|
308
|
-
case "AUTHENTICATION": return {
|
|
309
|
-
...config,
|
|
310
|
-
authHint
|
|
311
|
-
};
|
|
312
|
-
case "DYNAMIC_FORMS": return {
|
|
313
|
-
...config,
|
|
314
|
-
prefillValue: loginHintPrefill
|
|
315
|
-
};
|
|
316
|
-
case "REDIRECT_TO_MOBILE": return {
|
|
317
|
-
...config,
|
|
318
|
-
flowId: workflowId,
|
|
319
|
-
authHint,
|
|
320
|
-
lang
|
|
321
|
-
};
|
|
322
|
-
case "ID_CAPTURE":
|
|
323
|
-
case "TUTORIAL_ID": return {
|
|
324
|
-
...config,
|
|
325
|
-
mergeSessionRecordings: config.mergeSessionRecordings ?? mergeSessionRecordings,
|
|
326
|
-
ageAssurance: config.ageAssurance ?? ageAssurance,
|
|
327
|
-
skipProcessId: true,
|
|
328
|
-
digitalIdReturn,
|
|
329
|
-
digitalIdReturnUrl
|
|
330
|
-
};
|
|
331
|
-
case "ID": return config;
|
|
332
|
-
case "SELFIE": return {
|
|
333
|
-
...config,
|
|
334
|
-
ageAssurance: config.ageAssurance ?? ageAssurance
|
|
335
|
-
};
|
|
336
|
-
case "ADDRESS": return {
|
|
337
|
-
...config,
|
|
338
|
-
processingType: "addressStatement"
|
|
339
|
-
};
|
|
340
|
-
case "SECOND_ID": return {
|
|
341
|
-
...config,
|
|
342
|
-
isSecondId: true,
|
|
343
|
-
digitalIdReturn,
|
|
344
|
-
digitalIdReturnUrl
|
|
345
|
-
};
|
|
346
|
-
case "MANDATORY_CONSENT": return {
|
|
347
|
-
...config,
|
|
348
|
-
type: "MANDATORY"
|
|
349
|
-
};
|
|
350
|
-
default: return config;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Inner component mounted only after `useWorkflowInitialization` has resolved
|
|
355
|
-
* the session and constructed the manager. Splitting this out keeps the
|
|
356
|
-
* `useManager` factory call out of the init path — token-mode and
|
|
357
|
-
* self-loading mode both arrive here with a fully-constructed manager.
|
|
358
|
-
*/
|
|
359
|
-
var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish, onError }) => {
|
|
360
|
-
const { i18n } = useTranslation();
|
|
361
|
-
const [workflowState, workflowManager] = useManager(() => initialManager, {
|
|
362
|
-
autoLoad: false,
|
|
363
|
-
manageLifecycle: false
|
|
364
|
-
});
|
|
365
|
-
const moduleKey = workflowState?.status === "ready" ? workflowState.currentNode.moduleKey : void 0;
|
|
366
|
-
const browser = useIsBrowserSupported();
|
|
367
|
-
const loadedWorkflowConfig = workflowState && "workflowConfig" in workflowState ? workflowState.workflowConfig : void 0;
|
|
368
|
-
const workflowDisablesBrowserScreen = loadedWorkflowConfig ? loadedWorkflowConfig.disableUnsupportedBrowserScreen === true : void 0;
|
|
369
|
-
const showFinishScreen = workflowState?.status === "finished" && workflowState.workflowConfig.showFinishScreenBySessionStatus === true;
|
|
370
|
-
const moduleLoaderState = useModuleLoader({
|
|
371
|
-
moduleKey,
|
|
372
|
-
modules: LAZY_WORKFLOW_MODULES,
|
|
373
|
-
headlessModuleKeys: HEADLESS_WORKFLOW_MODULE_KEYS,
|
|
374
|
-
onModuleLoading: config.onModuleLoading,
|
|
375
|
-
onModuleLoaded: config.onModuleLoaded,
|
|
376
|
-
onError
|
|
377
|
-
});
|
|
378
|
-
const terminalFiredRef = A(false);
|
|
379
|
-
y(() => {
|
|
380
|
-
if (terminalFiredRef.current) return;
|
|
381
|
-
if (workflowState?.status === "finished") {
|
|
382
|
-
terminalFiredRef.current = true;
|
|
383
|
-
const finishStatus = withEndScreenTexts(workflowState.finishStatus, initialManager.getEndScreenTexts());
|
|
384
|
-
const oauth2Secured = workflowState.workflowConfig.oauth2Secured === true;
|
|
385
|
-
queueMicrotask(() => onFinish?.(finishStatus, {
|
|
386
|
-
sdkOwnsTerminalScreen: showFinishScreen,
|
|
387
|
-
oauth2Secured
|
|
388
|
-
}));
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
if (workflowState?.status === "asyncResolution") {
|
|
392
|
-
terminalFiredRef.current = true;
|
|
393
|
-
queueMicrotask(() => onFinish?.());
|
|
394
|
-
return;
|
|
395
|
-
}
|
|
396
|
-
if (workflowState?.status === "error" && onError) {
|
|
397
|
-
terminalFiredRef.current = true;
|
|
398
|
-
const { error, errorCode, moduleErrorCode } = workflowState;
|
|
399
|
-
queueMicrotask(() => onError(error, errorCode, moduleErrorCode));
|
|
400
|
-
}
|
|
401
|
-
}, [
|
|
402
|
-
workflowState,
|
|
403
|
-
onFinish,
|
|
404
|
-
onError,
|
|
405
|
-
showFinishScreen,
|
|
406
|
-
initialManager
|
|
407
|
-
]);
|
|
408
|
-
const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
|
|
409
|
-
const renderSpinner = () => /* @__PURE__ */ u("div", {
|
|
410
|
-
class: "IncodeWorkflow",
|
|
411
|
-
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
412
|
-
spinnerConfig: config.spinnerConfig,
|
|
413
|
-
renderMode: spinnerRenderMode
|
|
414
|
-
})
|
|
415
|
-
});
|
|
416
|
-
const handleModuleError = (error, _errorCode, moduleErrorCode) => {
|
|
417
|
-
const deferToGenericCopy = moduleKey === "MANDATORY_CONSENT" || moduleKey === "ML_CONSENT";
|
|
418
|
-
workflowManager.errorModule(error ?? (deferToGenericCopy ? void 0 : "Module error"), moduleErrorCode);
|
|
419
|
-
};
|
|
420
|
-
if (!browser.isSupported && workflowDisablesBrowserScreen === false) return /* @__PURE__ */ u("div", {
|
|
421
|
-
class: "IncodeWorkflow",
|
|
422
|
-
children: /* @__PURE__ */ u(BrowserNotSupported, { onContinue: browser.continueAnyway })
|
|
423
|
-
});
|
|
424
|
-
if (workflowState && "homeScreen" in workflowState && workflowState.homeScreen.visible) return /* @__PURE__ */ u("div", {
|
|
425
|
-
class: "IncodeWorkflow",
|
|
426
|
-
children: /* @__PURE__ */ u(P, {
|
|
427
|
-
fallback: null,
|
|
428
|
-
children: /* @__PURE__ */ u(LazyHomeScreen, {
|
|
429
|
-
isContinueLoading: workflowState.homeScreen.isContinueLoading,
|
|
430
|
-
onContinue: () => workflowManager.continueFromHome()
|
|
431
|
-
})
|
|
432
|
-
})
|
|
433
|
-
});
|
|
434
|
-
if (!workflowState || workflowState.status === "idle" || workflowState.status === "loading") return renderSpinner();
|
|
435
|
-
if (workflowState.status === "error") return /* @__PURE__ */ u("div", {
|
|
436
|
-
class: "IncodeWorkflow",
|
|
437
|
-
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
438
|
-
message: workflowState.error,
|
|
439
|
-
moduleErrorCode: workflowState.moduleErrorCode
|
|
440
|
-
})
|
|
441
|
-
});
|
|
442
|
-
if (workflowState.status === "completing") return /* @__PURE__ */ u("div", {
|
|
443
|
-
class: "IncodeWorkflow",
|
|
444
|
-
children: /* @__PURE__ */ u(TransitionSpinner, {})
|
|
445
|
-
});
|
|
446
|
-
if (workflowState.status === "finished") {
|
|
447
|
-
if (showFinishScreen) return /* @__PURE__ */ u("div", {
|
|
448
|
-
class: "IncodeWorkflow",
|
|
449
|
-
children: /* @__PURE__ */ u(FinishScreenBySessionStatus, { scoreStatus: workflowState.scoreStatus })
|
|
450
|
-
});
|
|
451
|
-
return null;
|
|
452
|
-
}
|
|
453
|
-
if (workflowState.status === "asyncResolution" || workflowState.status === "closed") return null;
|
|
454
|
-
if (moduleLoaderState.status === "unsupported") return /* @__PURE__ */ u("div", {
|
|
455
|
-
class: "IncodeWorkflow",
|
|
456
|
-
children: /* @__PURE__ */ u(UnsupportedModule, {
|
|
457
|
-
moduleKey: workflowState.currentNode.moduleKey,
|
|
458
|
-
onNext: () => workflowManager.completeModule()
|
|
459
|
-
})
|
|
460
|
-
});
|
|
461
|
-
if (moduleLoaderState.status === "idle" || moduleLoaderState.status === "loading" || moduleLoaderState.status === "error") return renderSpinner();
|
|
462
|
-
const { Component } = moduleLoaderState;
|
|
463
|
-
const moduleConfig = mapModuleConfig({
|
|
464
|
-
moduleKey: workflowState.currentNode.moduleKey,
|
|
465
|
-
config: workflowState.config,
|
|
466
|
-
workflowId: workflowState.workflowConfig.id,
|
|
467
|
-
authHint: config.authHint,
|
|
468
|
-
loginHintPrefill: config.loginHintPrefill,
|
|
469
|
-
lang: i18n.language,
|
|
470
|
-
mergeSessionRecordings: workflowState.workflowConfig.mergeSessionRecordings,
|
|
471
|
-
ageAssurance: workflowState.workflowConfig.ageAssurance,
|
|
472
|
-
digitalIdReturn: config.digitalIdReturn,
|
|
473
|
-
digitalIdReturnUrl: config.digitalIdReturnUrl
|
|
474
|
-
});
|
|
475
|
-
let extraProps = {};
|
|
476
|
-
if (workflowState.currentNode.moduleKey === "REDIRECT_TO_MOBILE") extraProps = {
|
|
477
|
-
onFinish: () => workflowManager.finishWorkflow(),
|
|
478
|
-
onContinue: () => workflowManager.completeModule()
|
|
479
|
-
};
|
|
480
|
-
return /* @__PURE__ */ u("div", {
|
|
481
|
-
class: "IncodeWorkflow",
|
|
482
|
-
children: /* @__PURE__ */ u(Component, {
|
|
483
|
-
config: moduleConfig,
|
|
484
|
-
onFinish: (output) => workflowManager.completeModule(output),
|
|
485
|
-
onError: handleModuleError,
|
|
486
|
-
...extraProps
|
|
487
|
-
}, workflowState.currentNode.id)
|
|
488
|
-
});
|
|
489
|
-
};
|
|
490
|
-
var IncodeWorkflowContent = ({ config, onFinish, onError }) => {
|
|
491
|
-
const { i18n } = useTranslation();
|
|
492
|
-
const initialSessionLanguage = A(isSelfLoadingWorkflowConfig(config) ? resolveSessionLanguage(config.lang, i18n.language, readStoredLanguage()) : config.lang).current;
|
|
493
|
-
const initState = useWorkflowInitialization({
|
|
494
|
-
...config,
|
|
495
|
-
lang: initialSessionLanguage,
|
|
496
|
-
onError
|
|
497
|
-
});
|
|
498
|
-
y(() => {
|
|
499
|
-
if (readStoredLanguage()) return;
|
|
500
|
-
if (config.lang && i18n.language !== config.lang) i18n.changeLanguage(config.lang);
|
|
501
|
-
}, [config.lang, i18n]);
|
|
502
|
-
const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
|
|
503
|
-
if (initState.status === "error") return /* @__PURE__ */ u("div", {
|
|
504
|
-
class: "IncodeWorkflow",
|
|
505
|
-
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
506
|
-
message: initState.error,
|
|
507
|
-
retryable: !isHandoffLinkRejection(initState.errorCode)
|
|
508
|
-
})
|
|
509
|
-
});
|
|
510
|
-
if (initState.status === "initializing") return /* @__PURE__ */ u("div", {
|
|
511
|
-
class: "IncodeWorkflow",
|
|
512
|
-
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
513
|
-
spinnerConfig: config.spinnerConfig,
|
|
514
|
-
renderMode: spinnerRenderMode
|
|
515
|
-
})
|
|
516
|
-
});
|
|
517
|
-
return /* @__PURE__ */ u(IncodeWorkflowReady, {
|
|
518
|
-
config,
|
|
519
|
-
workflowManager: initState.workflowManager,
|
|
520
|
-
onFinish,
|
|
521
|
-
onError
|
|
522
|
-
});
|
|
523
|
-
};
|
|
524
|
-
var IncodeWorkflowContentRoot = ({ config, onFinish, onError }) => /* @__PURE__ */ u(IncodeComponent, {
|
|
525
|
-
deferBrowserCheck: true,
|
|
526
|
-
children: config ? /* @__PURE__ */ u(ResolvedConfigProvider, { children: /* @__PURE__ */ u(IncodeWorkflowContent, {
|
|
527
|
-
config,
|
|
528
|
-
onFinish,
|
|
529
|
-
onError
|
|
530
|
-
}) }) : null
|
|
531
|
-
});
|
|
532
|
-
var IncodeWorkflow = withSessionExpiry(IncodeWorkflowContentRoot, { keepMountedOffline: true });
|
|
533
|
-
registerIncodeModuleElement(IncodeWorkflow, "incode-workflow");
|
|
534
|
-
//#endregion
|
|
1
|
+
import { n as mapModuleConfig, t as IncodeWorkflow } from "../workflow-DBS9eyu4.js";
|
|
535
2
|
export { IncodeWorkflow, mapModuleConfig };
|