@incodetech/web 2.4.1 → 2.5.0-rc.1
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-GbB9B3J0.js → GeolocationPermissionDenied-C7oh9rAr.js} +23 -8
- package/dist/Password-CV69m5l9.js +212 -0
- package/dist/RadioGroup-DmCpmlJN.js +123 -0
- package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
- package/dist/RequiredMarker-CAqxArxr.js +16 -0
- package/dist/TextField-D41q5WTe.js +166 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-Bp16S_5w.js} +135 -881
- package/dist/{ageVerification-n-1fouaD.js → ageVerification-BBnJYo9K.js} +10 -8
- package/dist/{am-UBTEdpJv.js → am-CWJUWWuF.js} +135 -881
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/applyStudioConfig-20qjppIu.js +126 -0
- package/dist/{ar-AE--KjG2EAr.js → ar-AE-O12WV51F.js} +136 -882
- package/dist/{ar-RFuhholc.js → ar-DgUYRgR_.js} +135 -881
- package/dist/{ar-EG-y8SWJjy1.js → ar-EG-C7LOd56j.js} +135 -881
- package/dist/assertClassBrand-F6pL6aIr.js +17 -0
- package/dist/authentication/authentication.es.js +9 -6
- package/dist/autoFocusTitle-C2Ro8zdn.js +19 -0
- package/dist/{az-4Z0ZZq7T.js → az-DusLpWep.js} +135 -881
- package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
- package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BixkM88z.js → baseTutorial-BBwEV7AE.js} +9 -7
- package/dist/{bn-CNhjOqja.js → bn-CX4BixDE.js} +135 -881
- package/dist/{bottomSheet-B4REej8W.js → bottomSheet-DRRJstLk.js} +3 -3
- package/dist/{bs-Culcuxab.js → bs-DTnRhENx.js} +134 -880
- package/dist/{ca-h1xwo6CW.js → ca-DBI3m_a_.js} +134 -880
- package/dist/cameraOverlay-Bz9UJCHp.js +2 -0
- package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-VCCUFLoy.js} +9 -8
- package/dist/{cameraView-BpdAdfIK.js → cameraView-CKWEmlho.js} +13 -14
- package/dist/capture-B6vGKsRf.js +3 -0
- package/dist/capture-B_WX2h2H.js +2 -0
- package/dist/{tutorial-HfSD-QZ3.js → capture-BszIVhdg.js} +226 -82
- package/dist/capture-wy0SZwxu.js +754 -0
- package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
- package/dist/captureFocusContext-OuX65pCg.js +718 -0
- package/dist/captureFooter-5KiLmkNi.js +47 -0
- package/dist/{ceb-pTDH3h1x.js → ceb-fG0bt_zV.js} +135 -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-CALR7EFM.js → checkbox-tpW2Q3Zi.js} +4 -4
- package/dist/chooser-CqCxdQx8.js +1517 -0
- package/dist/connectionError-D67rCsgf.js +100 -0
- package/dist/consent/consent.es.js +19 -14
- package/dist/consent/styles.css +1 -1
- package/dist/consent/styles.css.js +1 -1
- package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
- package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
- package/dist/{countrySelector-DKvvYxP6.js → countrySelector-mjGgTZBA.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-DCggApzq.js} +134 -880
- package/dist/{cs-CrQuSSOI.js → cs-DsBY9V_4.js} +134 -880
- 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-DRwjotY-.js → customFields-COihEvWm.js} +33 -20
- package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-CE5WPSMm.js} +11 -9
- package/dist/{da-DK-CgrU79mp.js → da-DK-B7LXeFYP.js} +134 -880
- package/dist/dashboardTheme-Cxl2WlSK.js +388 -0
- package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-DqOzOxfP.js} +4 -5
- package/dist/dateInputComposed-kP5wiNvH.js +1 -0
- package/dist/{de-D0xnkswj.js → de-BhQ2hOut.js} +134 -880
- package/dist/denied-D4oFpTuV.js +272 -0
- package/dist/devWarn-SLn4Qexk.js +1034 -0
- package/dist/deviceWallet-CPP5AFbd.js +37 -0
- package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DqhYI_sj.js} +4 -4
- package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-p7Zcbeom.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-DlBMtLvL.js → documentCapture-DXG8TB9t.js} +136 -72
- package/dist/documentCapture-DczZSZ4A.js +2 -0
- package/dist/dropdownComposed-C3uN_APy.js +1 -0
- package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-CUBU43V3.js} +8 -6
- package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekyb/styles.css.js +1 -1
- package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-mGfuTVTJ.js} +109 -89
- package/dist/ekybModule-xZtYttfn.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekyc/styles.css.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-Cp-GdWbC.js +789 -0
- package/dist/ekycModule-DXy4cT0v.js +2 -0
- package/dist/ekycPrefillModule-BKbRJuek.js +233 -0
- package/dist/ekycPrefillModule-Cdu0zr52.js +2 -0
- package/dist/{el-B5gLXHxC.js → el-D-zg7VzS.js} +134 -880
- package/dist/{el-GR-DPUvlcvr.js → el-GR-D9eldyAW.js} +134 -880
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-uWLkdb8_.js} +55 -36
- package/dist/email/email.es.js +21 -16
- package/dist/{emailInput-ClX3Lu8X.js → emailInput-Bd8XECrW.js} +23 -12
- package/dist/{en-DG-DOwBuCCl.js → en-DG-CKwP-05W.js} +135 -881
- package/dist/{en-DNuMvR7-.js → en-DY1lnV9V.js} +135 -881
- package/dist/{errorContent-B_pH1MX7.js → errorContent-CqXgrkbQ.js} +21 -20
- package/dist/errorParams-B7BZHaA4.js +37 -0
- package/dist/es-419-DCPTzJnF.js +5 -0
- package/dist/{es-DNl7ceDm.js → es-BKio8b3N.js} +135 -881
- package/dist/{es-ES-BF9vl0Um.js → es-ES-MZM-tZ4f.js} +134 -880
- package/dist/{es-MX-Brp4FXN8.js → es-MX-Bwa400AE.js} +134 -880
- package/dist/{et-D5pPP4r0.js → et-CxKV1DgL.js} +136 -882
- package/dist/expiredId-BGfpQzNG.js +67 -0
- package/dist/extensibility.es.js +382 -55
- package/dist/{fa-IR-BoyK-lax.js → fa-IR-C1bLFtOi.js} +135 -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-ClTodgeI.js +2 -0
- package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-DpccWhgb.js} +54 -71
- package/dist/{fi-FI-mYdAUbtG.js → fi-FI-BC_3lqbM.js} +134 -880
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-CXSUE89Z.js +2 -0
- package/dist/fieldComparison-D2c7jots.js +126 -0
- package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
- package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-D1AeAOtK.js} +31 -22
- package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
- package/dist/flipAnimation-DwvNk514.js +46 -0
- package/dist/flipCapturedCardEligibility-C8ppBgP9.js +210 -0
- package/dist/flow/flow.es.js +315 -287
- 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-Bum3oh1A.js +49 -0
- package/dist/{fr-B4R5fgnm.js → fr-BGr4ZZSw.js} +134 -880
- package/dist/{fr-CA-DJSwRuWt.js → fr-CA-COfhYgrk.js} +134 -880
- package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
- package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -12
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-D2RDlnbd.js → he-BGdP9Cfd.js} +135 -881
- package/dist/helpButtonConfig-BFragC_J.js +24 -0
- package/dist/{hi-DFXhGN9O.js → hi-B8upUDpu.js} +135 -881
- package/dist/{hmn-BlNbfL-D.js → hmn-DOK-cZdX.js} +135 -881
- package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CPaZiLqi.js} +26 -14
- package/dist/{incodeComponent-B-lwJJCV.js → hooks-C6m_ILVe.js} +256 -280
- package/dist/{hr-DArr3n62.js → hr-BjtqyvXa.js} +134 -880
- package/dist/{ht-CAd-Hmi1.js → ht-CbbFp5XL.js} +135 -881
- package/dist/{hu-CulT8eq_.js → hu-BXk1xFve.js} +135 -881
- package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
- package/dist/id/id.es.js +167 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-D2VZL6b-.js → id-BrJu1D4k.js} +134 -880
- package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
- package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
- package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
- package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.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 +12 -6
- package/dist/idFlipTransition-DMAbw1_Y.js +154 -0
- package/dist/{idOcr-BWG3vj8j.js → idOcr-D9zxy2eU.js} +64 -37
- package/dist/identity-reuse/identity-reuse.es.js +38 -25
- package/dist/identity-reuse/styles.css.js +1 -0
- package/dist/incodeComponent-DPY-ikO3.js +235 -0
- package/dist/incodeModule-Dyy5PfM4.js +41 -0
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-B35soRFg.js → inputComposed-BG3XgpYE.js} +4 -4
- package/dist/{it-fs9OkGbv.js → it-DI-TPE-K.js} +135 -881
- package/dist/{ja-BvKVI6Oo.js → ja-3XIFqaXu.js} +135 -881
- package/dist/{ja-JP-C5-gDGuX.js → ja-JP-BAeRWiVk.js} +136 -882
- package/dist/{jv-CyId7aPo.js → jv-BhjQxxBl.js} +134 -880
- package/dist/{ka-pqIPc2el.js → ka-Bx4-RrZ_.js} +135 -881
- package/dist/{kk-DK7mWl6k.js → kk-Ct91ZRbP.js} +134 -880
- package/dist/{km-BaJYdDrm.js → km-BWQuuNXz.js} +142 -888
- package/dist/{ko-CdYIGTH_.js → ko-Cve9iLc7.js} +135 -881
- package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-0iLztCuj.js} +135 -881
- package/dist/{ky-Bc7ZXIXy.js → ky-DGt4vj88.js} +134 -880
- 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-BlLRwSFe.js +2 -0
- package/dist/kybChecksModule-DmjxRBhO.js +345 -0
- package/dist/{lo-0jgAavCe.js → lo-DPvsfR2F.js} +135 -881
- package/dist/{lt-DDEjR6RD.js → lt-BMI5NrHt.js} +134 -880
- package/dist/{lv-Ddzb_N3H.js → lv-Bpw5rGRP.js} +135 -881
- package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Blhxc0KK.js} +23 -16
- package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-B1hLcNl4.js} +8 -7
- package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-Cr-FQ3-N.js} +16 -12
- package/dist/{mk-SJwou4aX.js → mk-C9Z-5xUg.js} +135 -881
- package/dist/{mn-7B86xjpb.js → mn-p0zBw-tm.js} +134 -880
- package/dist/{ms-Bb-SlQCF.js → ms-CF8aT_Qq.js} +134 -880
- package/dist/{my-3ci4RJZY.js → my-CqWwTa_5.js} +135 -881
- package/dist/{nb-NO-DpZAni0R.js → nb-NO-C7Hb8Ok5.js} +134 -880
- package/dist/{ne-Dncyvxqt.js → ne-B5InVJ21.js} +135 -881
- package/dist/{nl-C1mnzCBH.js → nl-aJiBBLFg.js} +134 -880
- package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-JFrEz0Ax.js} +27 -11
- package/dist/otpInput-Bn8PHFh7.js +245 -0
- package/dist/{page-DINsqGIw.js → page-b7Hx6klV.js} +102 -79
- package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-BlsOWl2d.js} +88 -14
- package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
- package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
- package/dist/passwordRequirements-13qw_WSJ.js +49 -0
- package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
- package/dist/pdfViewer-BT-O-Zj1.js +2 -0
- package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-D_sXx3SF.js} +11 -14
- package/dist/permissionInstructionList-CGo9uSeQ.js +43 -0
- package/dist/{permissions-B7-lHrFm.js → permissions-CS58hLHp.js} +84 -53
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-Dc2lHg4Z.js} +49 -12
- package/dist/{pl-CWr2fVBg.js → pl-CDmSpQ_-.js} +134 -880
- package/dist/preloadableLazy-KWGuHoqn.js +43 -0
- package/dist/{processing-z5wuXrKw.js → processing-C5A54RCC.js} +2 -2
- package/dist/{progressBar-BcKFaXZR.js → progressBar-CmkJY5xT.js} +2 -2
- package/dist/{pt-AGz2XGAK.js → pt-0SO_cPU9.js} +135 -881
- package/dist/{pt-BR-CMvTsOqE.js → pt-BR-BEfs5M8G.js} +135 -881
- package/dist/{pt-PT-KzIM0vpf.js → pt-PT-ONBmg0BR.js} +135 -881
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
- package/dist/{resendTimer-On_zrMLS.js → resendTimer-B7aR2zn3.js} +2 -2
- package/dist/richText-DlHC_sMB.js +1761 -0
- package/dist/{ro-DYdJJDKn.js → ro-ChyvDsu3.js} +135 -881
- package/dist/{ru-C1cguVi2.js → ru-B_vdxKv-.js} +134 -880
- package/dist/{ru-RU-18JeDfwz.js → ru-RU-CrvUlCJj.js} +134 -880
- package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
- package/dist/selfie/selfie.es.js +37 -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-CtIcnYOo.js → sk-ljMYKwHQ.js} +136 -882
- package/dist/{sl-DS_Gc0Wc.js → sl-BbVJSIEt.js} +135 -881
- package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-BOIszuLx.js} +40 -27
- package/dist/{so-dqMTkg5E.js → so-DTymvbrx.js} +135 -881
- package/dist/spacer-DQdgPJjU.js +1100 -0
- package/dist/spinner-DQf6JseL.js +69 -0
- package/dist/{sr-DgHGiiWM.js → sr-JVvblELi.js} +134 -880
- package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-9I-jEoNt.js} +142 -888
- package/dist/sr-YU-AHJXObyx.js +5 -0
- package/dist/{sv-SE-Dw61hRjx.js → sv-SE-MhrEy6Di.js} +134 -880
- package/dist/{sw-De-Jo8XY.js → sw-2Mtjggv_.js} +135 -881
- package/dist/{th-BJixOgsM.js → th-CRCVvVIy.js} +135 -881
- package/dist/{th-TH-VyhljC5U.js → th-TH-BJP2vgt1.js} +135 -881
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-DhjdqhA4.js → tl-CI98qs3U.js} +135 -881
- package/dist/{tl-PH-D2S2Irx7.js → tl-PH-Bwmbtl_j.js} +135 -881
- package/dist/{tr-BJAuvOwN.js → tr-Bjsibm46.js} +135 -881
- package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-BTr1yrwy.js} +7 -7
- package/dist/tutorial-DO3fs1fY.js +28 -0
- package/dist/types/ae-signature.d.ts +17 -4
- package/dist/types/antifraud.d.ts +17 -4
- package/dist/types/authentication.d.ts +17 -4
- package/dist/types/certificate-issuance.d.ts +17 -4
- package/dist/types/consent.d.ts +17 -4
- package/dist/types/cross-document-data-match.d.ts +17 -4
- package/dist/types/curp-validation.d.ts +17 -4
- package/dist/types/document-capture.d.ts +17 -4
- package/dist/types/dynamic-forms.d.ts +17 -4
- package/dist/types/ekyb.d.ts +17 -4
- package/dist/types/ekyc-prefill.d.ts +213 -0
- package/dist/types/ekyc.d.ts +17 -4
- package/dist/types/electronic-signature.d.ts +17 -4
- package/dist/types/email.d.ts +17 -4
- package/dist/types/extensibility.d.ts +204 -37
- package/dist/types/face-match.d.ts +17 -4
- package/dist/types/field-comparison.d.ts +17 -4
- package/dist/types/fiscal-qr.d.ts +17 -4
- package/dist/types/flow.d.ts +38 -5
- package/dist/types/geolocation.d.ts +17 -4
- package/dist/types/government-validation.d.ts +17 -4
- package/dist/types/id-selfie-flow.d.ts +17 -4
- package/dist/types/id-verification.d.ts +17 -4
- package/dist/types/id.d.ts +17 -4
- package/dist/types/identity-reuse.d.ts +18 -5
- package/dist/types/index.d.ts +92 -10
- package/dist/types/kyb-checks.d.ts +213 -0
- package/dist/types/phone.d.ts +17 -4
- package/dist/types/qe-signature.d.ts +17 -4
- package/dist/types/redirect-to-mobile.d.ts +1 -1
- package/dist/types/selfie.d.ts +17 -4
- package/dist/types/signature.d.ts +17 -4
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +17 -4
- package/dist/types/workflow.d.ts +17 -4
- package/dist/{typography-8iwtPQbj.js → typography-CyT20XIA.js} +3 -11
- package/dist/{uk-UA-BZR90qDZ.js → uk-UA-DmKAplUk.js} +135 -881
- package/dist/{uk-CcU91ee-.js → uk-fCdIfhh5.js} +134 -880
- package/dist/{ur-CIXtUYHK.js → ur-Dh9AF1hS.js} +135 -881
- package/dist/useCameraPreview-hNLhri73.js +93 -0
- package/dist/useCaptureHelpButton-CSuQmlEp.js +43 -0
- package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
- package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
- package/dist/{uz-CeLVgwAD.js → uz-DYarfGyT.js} +135 -881
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
- package/dist/{verificationResult-C2gxbmAo.js → verificationResult-C8jlwbOw.js} +30 -27
- package/dist/{vi-CgfGVVLY.js → vi-uK03Bfuc.js} +135 -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 +120 -77
- package/dist/watchlist/watchlist.es.js +12 -9
- package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-DjSYKjVv.js} +63 -22
- package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-TlaaD6Qn.js} +253 -55
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +36 -28
- package/dist/{zh-CN-BOxod1_T.js → zh-CN-BkQoAg2R.js} +136 -882
- package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DRh68ryN.js} +135 -881
- package/dist/{zh-B-kjeCig.js → zh-JlU3mjl9.js} +134 -880
- package/dist/{zh-TW-B0v7GYYG.js → zh-TW-ByGAHrvB.js} +135 -881
- package/package.json +48 -12
- package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
- package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
- package/dist/cameraOverlay-DQEG24io.js +0 -2
- package/dist/check-icon-BpjpKqhJ.js +0 -48
- package/dist/connectionError-Cf6iGFyx.js +0 -45
- package/dist/dashboardTheme-CkyISqIs.js +0 -247
- package/dist/dateInputComposed-cgZGBSiu.js +0 -1
- package/dist/denied-ByGDWkTW.js +0 -1871
- package/dist/deviceWallet-C4UT05wN.js +0 -66
- package/dist/documentCapture-Dh1ftzGG.js +0 -2
- package/dist/dropdownComposed-DmT4s8VM.js +0 -1
- package/dist/ekybModule-BHInfPHS.js +0 -2
- package/dist/ekycModule-B2cfT3zi.js +0 -2
- package/dist/ekycModule-BQPl1KQT.js +0 -300
- package/dist/es-419-BU7r2Fvh.js +0 -3193
- package/dist/esm-15CISqPe.js +0 -430
- package/dist/expiredId-GIHjGAuY.js +0 -80
- package/dist/faceMatch-bXhejzhf.js +0 -2
- package/dist/fieldComparison-BirXQb7f.js +0 -2
- package/dist/fieldComparison-D8PL0eR1.js +0 -109
- package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
- package/dist/formField-0k8wVfXl.js +0 -60
- package/dist/incodeModule-DiVtqekm.js +0 -68
- package/dist/inputComposed-CKujYUSB.js +0 -1
- package/dist/numberedStep-CvbL3ht2.js +0 -13
- package/dist/otpInput-_B7xEZUU.js +0 -157
- package/dist/passwordInputComposed-B3WKjODU.js +0 -74
- package/dist/pdfViewer-DcB41xr7.js +0 -2
- package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
- package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
- package/dist/reload-icon-elAFo9-k.js +0 -70
- package/dist/richText-aCnLd3j2.js +0 -1549
- package/dist/spacer-lcnhSC-5.js +0 -741
- package/dist/spinner-B8BswhBb.js +0 -88
- package/dist/sr-YU-YuZu7wdb.js +0 -3197
- package/dist/statusPage-WIsGgf_m.js +0 -36
- package/dist/uiConfig-CwGL3QjP.js +0 -2589
- package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
- package/dist/useCoverMedia-VLw3OYN_.js +0 -149
- /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
- /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
- /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
- /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
- /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
- /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -1,3048 +0,0 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-CwGL3QjP.js";
|
|
2
|
-
import { S as k, _ as y, a as P, b as Q, c as A, d as _, f as d, g as x, h as q, i as D, s as z, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { c as TerminalErrorPage, f as useTimeoutHandle, l as useFeatureManagement, m as useEventListener, p as useResizeObserver, u as usePresence } from "./incodeComponent-B-lwJJCV.js";
|
|
4
|
-
import { a as useAnimationData, d as cn, r as AnimatedAsset, t as Spacer } from "./spacer-lcnhSC-5.js";
|
|
5
|
-
import { o as TypographyP, r as TypographyH3, t as Title } from "./typography-8iwtPQbj.js";
|
|
6
|
-
import { t as Spinner } from "./spinner-B8BswhBb.js";
|
|
7
|
-
import { t as TransitionSpinner } from "./transitionSpinner-BZO916B1.js";
|
|
8
|
-
import { a as LockIcon, f as ChevronRightIcon, t as LightningIcon, x as Button } from "./icons-C2LgNjXy.js";
|
|
9
|
-
import { i as useCloseButton, t as Page } from "./page-DINsqGIw.js";
|
|
10
|
-
import { n as Modal } from "./incode-logo-B1bl2S0z.js";
|
|
11
|
-
import { t as ProgressBar } from "./progressBar-BcKFaXZR.js";
|
|
12
|
-
import { n as CameraFrame, t as CameraView } from "./cameraView-BpdAdfIK.js";
|
|
13
|
-
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-D4Bjr6Fw.js";
|
|
14
|
-
import { n as CaptureFooter, t as useCaptureHelpButton } from "./useCaptureHelpButton-BTUZs3Ev.js";
|
|
15
|
-
import { t as BaseTutorial } from "./baseTutorial-BixkM88z.js";
|
|
16
|
-
import { n as RedStrikeIcon, t as ExpiredId } from "./expiredId-GIHjGAuY.js";
|
|
17
|
-
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-2Vj85OIZ.js";
|
|
18
|
-
import { i as usePreloadCaptureAnimations, n as CaptureNotification } from "./manualCaptureButton-C5VMDamt.js";
|
|
19
|
-
import { eventModuleNames, recordExperimentAssignmentOnce, stateChanged } from "@incodetech/core/events";
|
|
20
|
-
import { ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, numberParam, resolveExperiment } from "@incodetech/core/feature-management";
|
|
21
|
-
//#region src/shared/card/verificationOption/verificationOptionCard.tsx
|
|
22
|
-
function VerificationOptionCardList({ children }) {
|
|
23
|
-
return /* @__PURE__ */ u("div", {
|
|
24
|
-
class: "IncodeVerificationOptionCardList",
|
|
25
|
-
children
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function VerificationOptionCard({ icon: Icon, iconSrc, title, testId, onClick, tag }) {
|
|
29
|
-
return /* @__PURE__ */ u("button", {
|
|
30
|
-
type: "button",
|
|
31
|
-
class: "IncodeVerificationOptionCard",
|
|
32
|
-
onClick,
|
|
33
|
-
"data-testid": testId,
|
|
34
|
-
"aria-labelledby": `${testId}-label`,
|
|
35
|
-
children: [/* @__PURE__ */ u("span", {
|
|
36
|
-
class: "IncodeVerificationOptionCardIcon",
|
|
37
|
-
"aria-hidden": "true",
|
|
38
|
-
"data-testid": `${testId}-icon`,
|
|
39
|
-
children: iconSrc ? /* @__PURE__ */ u("img", {
|
|
40
|
-
class: "IncodeVerificationOptionCardImage",
|
|
41
|
-
src: iconSrc,
|
|
42
|
-
alt: "",
|
|
43
|
-
loading: "lazy",
|
|
44
|
-
decoding: "async"
|
|
45
|
-
}) : /* @__PURE__ */ u(Icon, {})
|
|
46
|
-
}), /* @__PURE__ */ u("span", {
|
|
47
|
-
class: "IncodeVerificationOptionCardContent",
|
|
48
|
-
children: [/* @__PURE__ */ u("span", {
|
|
49
|
-
id: `${testId}-label`,
|
|
50
|
-
class: "IncodeVerificationOptionCardTitleTagContainer",
|
|
51
|
-
children: [/* @__PURE__ */ u("span", {
|
|
52
|
-
class: "IncodeVerificationOptionCardTitle",
|
|
53
|
-
children: title
|
|
54
|
-
}), tag && /* @__PURE__ */ u(VerificationOptionCardTag, { label: tag })]
|
|
55
|
-
}), /* @__PURE__ */ u("span", {
|
|
56
|
-
class: "IncodeVerificationOptionCardArrow",
|
|
57
|
-
"data-testid": "chevron-right-icon",
|
|
58
|
-
children: /* @__PURE__ */ u(ChevronRightIcon, {
|
|
59
|
-
size: 24,
|
|
60
|
-
variant: "m"
|
|
61
|
-
})
|
|
62
|
-
})]
|
|
63
|
-
})]
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function VerificationOptionCardTag({ label }) {
|
|
67
|
-
return /* @__PURE__ */ u("div", {
|
|
68
|
-
class: "IncodeVerificationOptionCardTag",
|
|
69
|
-
children: [/* @__PURE__ */ u(LightningIcon, {}), /* @__PURE__ */ u("span", { children: label })]
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/modules/id/assets/blurIcon.tsx
|
|
74
|
-
var BlurIcon = ({ className }) => {
|
|
75
|
-
return /* @__PURE__ */ u("svg", {
|
|
76
|
-
width: "24",
|
|
77
|
-
height: "24",
|
|
78
|
-
viewBox: "0 0 24 24",
|
|
79
|
-
fill: "none",
|
|
80
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
81
|
-
class: className,
|
|
82
|
-
"aria-hidden": "true",
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ u("path", {
|
|
85
|
-
d: "M12.26 4.156a9.08 9.08 0 0 1 5.66 2.076.75.75 0 0 1-.954 1.158 7.58 7.58 0 0 0-4.717-1.734 7.56 7.56 0 0 0-4.696 1.716 12.5 12.5 0 0 0-3.49 4.639 12.3 12.3 0 0 0 3.46 4.615.75.75 0 0 1-.958 1.156 13.8 13.8 0 0 1-4.012-5.492.75.75 0 0 1 .002-.562 14 14 0 0 1 4.044-5.514l.002-.001a9.06 9.06 0 0 1 5.64-2.057z",
|
|
86
|
-
fill: "currentColor"
|
|
87
|
-
}),
|
|
88
|
-
/* @__PURE__ */ u("path", {
|
|
89
|
-
d: "M19.396 3.806a.751.751 0 0 1 1.062 1.06l-15.35 15.35a.75.75 0 1 1-1.061-1.06z",
|
|
90
|
-
fill: "currentColor"
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ u("path", {
|
|
93
|
-
d: "M12.429 8.184A3.82 3.82 0 0 1 14.95 9.3a.75.75 0 0 1-1.06 1.06 2.32 2.32 0 0 0-1.648-.68h0a2.325 2.325 0 0 0-2.321 2.329v.004a2.28 2.28 0 0 0 .678 1.633.75.75 0 0 1-1.056 1.066 3.79 3.79 0 0 1-1.122-2.705 3.825 3.825 0 0 1 3.817-3.827z",
|
|
94
|
-
fill: "currentColor"
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ u("path", {
|
|
97
|
-
d: "M19.054 8.343a.75.75 0 0 1 1.048.156 15.7 15.7 0 0 1 1.84 3.214c.08.189.079.402-.003.59-1.989 4.608-5.588 7.557-9.69 7.557-.917 0-1.828-.15-2.697-.438a.75.75 0 1 1 .472-1.423c.719.239 1.47.361 2.226.361 3.231 0 6.324-2.28 8.18-6.355a14.2 14.2 0 0 0-1.533-2.614.75.75 0 0 1 .157-1.048Z",
|
|
98
|
-
fill: "currentColor"
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ u("path", {
|
|
101
|
-
d: "M14.535 12.42a.75.75 0 1 1 1.476.269 3.83 3.83 0 0 1-3.072 3.077.75.75 0 0 1-.271-1.475 2.33 2.33 0 0 0 1.867-1.872Z",
|
|
102
|
-
fill: "currentColor"
|
|
103
|
-
})
|
|
104
|
-
]
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/modules/id/assets/glareIcon.tsx
|
|
109
|
-
var GlareIcon = ({ className }) => {
|
|
110
|
-
return /* @__PURE__ */ u("svg", {
|
|
111
|
-
width: "24",
|
|
112
|
-
height: "24",
|
|
113
|
-
viewBox: "0 0 24 24",
|
|
114
|
-
fill: "none",
|
|
115
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
116
|
-
class: className,
|
|
117
|
-
"aria-hidden": "true",
|
|
118
|
-
children: [
|
|
119
|
-
/* @__PURE__ */ u("path", {
|
|
120
|
-
d: "M2.25 15.128V9.512c0-1.629.511-3.079 1.49-4.13.985-1.055 2.387-1.647 4.042-1.647h5.489l.077.004a.75.75 0 0 1 0 1.492l-.078.004H7.783c-1.283 0-2.272.45-2.944 1.17-.677.727-1.088 1.79-1.088 3.107v5.616c0 1.318.41 2.38 1.085 3.106.67.72 1.659 1.17 2.947 1.17h8.434c1.29 0 2.278-.45 2.949-1.17.676-.726 1.085-1.788 1.085-3.106v-2.67a.75.75 0 0 1 1.5 0v2.67c0 1.627-.509 3.078-1.487 4.129-.985 1.056-2.388 1.647-4.047 1.647H7.782c-1.66 0-3.062-.59-4.046-1.647-.978-1.05-1.486-2.502-1.486-4.13Z",
|
|
121
|
-
fill: "currentColor"
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ u("path", {
|
|
124
|
-
d: "M14.27 14.412a.75.75 0 0 1 0 1.5H7.042a.75.75 0 0 1 0-1.5zm-5.31-3.76a.75.75 0 0 1 0 1.5H7.042a.75.75 0 1 1 0-1.5z",
|
|
125
|
-
fill: "currentColor"
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ u("path", {
|
|
128
|
-
d: "M18.404 3.096a.75.75 0 0 1 .703.49l.102.273a3.01 3.01 0 0 0 1.778 1.782l.274.101a.75.75 0 0 1 0 1.406l-.274.102a3.01 3.01 0 0 0-1.717 1.629l-.061.152-.102.274a.75.75 0 0 1-1.406 0L17.6 9.03A3.01 3.01 0 0 0 15.82 7.25l-.273-.102a.75.75 0 0 1 0-1.406l.273-.101A3.01 3.01 0 0 0 17.6 3.859l.101-.273.048-.106a.75.75 0 0 1 .655-.384Zm0 2.398a4.5 4.5 0 0 1-.95.951c.362.268.683.588.95.95.268-.362.588-.682.95-.95a4.5 4.5 0 0 1-.95-.95Z",
|
|
129
|
-
fill: "currentColor"
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ u("path", {
|
|
132
|
-
d: "M13.902 8.295a.75.75 0 0 1 .718.532c.099.326.353.58.677.679a.75.75 0 0 1 0 1.434 1.02 1.02 0 0 0-.677.68.75.75 0 0 1-1.436 0 1.02 1.02 0 0 0-.678-.68.75.75 0 0 1 0-1.434 1.02 1.02 0 0 0 .678-.679.75.75 0 0 1 .718-.532Z",
|
|
133
|
-
fill: "currentColor"
|
|
134
|
-
})
|
|
135
|
-
]
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/modules/id/assets/infoNotReadableIcon.tsx
|
|
140
|
-
var InfoNotReadableIcon = ({ className }) => {
|
|
141
|
-
return /* @__PURE__ */ u("svg", {
|
|
142
|
-
width: "24",
|
|
143
|
-
height: "24",
|
|
144
|
-
viewBox: "0 0 24 24",
|
|
145
|
-
fill: "none",
|
|
146
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
147
|
-
class: className,
|
|
148
|
-
"aria-hidden": "true",
|
|
149
|
-
children: [
|
|
150
|
-
/* @__PURE__ */ u("path", {
|
|
151
|
-
fillRule: "evenodd",
|
|
152
|
-
clipRule: "evenodd",
|
|
153
|
-
d: "M3.52 5.07c.843-.904 2.04-1.406 3.445-1.406h10.07c1.407 0 2.605.502 3.448 1.407.837.898 1.267 2.134 1.267 3.51v2.923a.75.75 0 0 1-1.5 0V8.58c0-1.065-.33-1.913-.865-2.487-.529-.568-1.313-.929-2.35-.929H6.965c-1.033 0-1.818.36-2.348.93-.536.574-.867 1.421-.867 2.486v6.588c0 1.067.33 1.914.865 2.488.529.568 1.313.929 2.35.929h4.157a.75.75 0 0 1 0 1.5H6.965c-1.407 0-2.605-.502-3.448-1.407-.837-.898-1.267-2.134-1.267-3.51V8.58c0-1.376.432-2.611 1.27-3.51Z",
|
|
154
|
-
fill: "currentColor"
|
|
155
|
-
}),
|
|
156
|
-
/* @__PURE__ */ u("path", {
|
|
157
|
-
fillRule: "evenodd",
|
|
158
|
-
clipRule: "evenodd",
|
|
159
|
-
d: "M2.25 9.712a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75Z",
|
|
160
|
-
fill: "currentColor"
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ u("path", {
|
|
163
|
-
fillRule: "evenodd",
|
|
164
|
-
clipRule: "evenodd",
|
|
165
|
-
d: "M18.436 14.397a2.171 2.171 0 1 0-3.072 3.07 2.171 2.171 0 0 0 3.072-3.07Zm-4.132-1.06a3.672 3.672 0 1 1 5.193 5.191 3.672 3.672 0 0 1-5.193-5.192Z",
|
|
166
|
-
fill: "currentColor"
|
|
167
|
-
}),
|
|
168
|
-
/* @__PURE__ */ u("path", {
|
|
169
|
-
fillRule: "evenodd",
|
|
170
|
-
clipRule: "evenodd",
|
|
171
|
-
d: "M18.436 17.47a.75.75 0 0 1 1.06 0l1.584 1.584a.75.75 0 1 1-1.061 1.06l-1.583-1.583a.75.75 0 0 1 0-1.06Z",
|
|
172
|
-
fill: "currentColor"
|
|
173
|
-
})
|
|
174
|
-
]
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/modules/id/assets/questionIcon.tsx
|
|
179
|
-
var QuestionIcon = ({ className }) => {
|
|
180
|
-
return /* @__PURE__ */ u("svg", {
|
|
181
|
-
width: "64",
|
|
182
|
-
height: "64",
|
|
183
|
-
viewBox: "0 0 64 64",
|
|
184
|
-
fill: "none",
|
|
185
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
186
|
-
class: className,
|
|
187
|
-
"aria-hidden": "true",
|
|
188
|
-
children: [/* @__PURE__ */ u("circle", {
|
|
189
|
-
cx: "32",
|
|
190
|
-
cy: "32",
|
|
191
|
-
r: "32",
|
|
192
|
-
fill: "#14151A"
|
|
193
|
-
}), /* @__PURE__ */ u("path", {
|
|
194
|
-
d: "M32 41a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0-22.5c4.69 0 8.167 3.558 8.167 8.06 0 2.276-.928 4.158-2.455 5.478-1.162 1.005-2.626 1.648-4.212 1.948V38h-3v-6.743l1.407-.087c1.607-.1 2.94-.62 3.843-1.401.874-.757 1.417-1.813 1.417-3.208 0-2.84-2.128-5.06-5.167-5.061-3.093 0-5.275 2.282-5.86 5.342l-2.947-.563C23.975 22.186 27.112 18.5 32 18.5Z",
|
|
195
|
-
fill: "white"
|
|
196
|
-
})]
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
//#endregion
|
|
200
|
-
//#region src/modules/id/commonIssues.tsx
|
|
201
|
-
var CommonIssues = ({ open, onClose, onTakeManually, onTakeAutomatically, portalContainer }) => {
|
|
202
|
-
const { t } = useTranslation();
|
|
203
|
-
const titleRef = q((el) => {
|
|
204
|
-
el?.focus();
|
|
205
|
-
}, []);
|
|
206
|
-
const handleSwitchCaptureMode = () => {
|
|
207
|
-
(onTakeAutomatically ?? onTakeManually)();
|
|
208
|
-
onClose();
|
|
209
|
-
};
|
|
210
|
-
return /* @__PURE__ */ u(Modal.Root, {
|
|
211
|
-
open,
|
|
212
|
-
onOpenChange: (isOpen) => {
|
|
213
|
-
if (!isOpen) onClose();
|
|
214
|
-
},
|
|
215
|
-
class: "IncodeCommonIssuesFullScreen",
|
|
216
|
-
hasBackdrop: false,
|
|
217
|
-
portalContainer: portalContainer ?? void 0,
|
|
218
|
-
manageInitialFocus: false,
|
|
219
|
-
children: /* @__PURE__ */ u(Modal.Content, {
|
|
220
|
-
class: "IncodeCommonIssuesContent",
|
|
221
|
-
children: [
|
|
222
|
-
/* @__PURE__ */ u(Modal.Icon, {
|
|
223
|
-
class: "IncodeCommonIssuesQuestionIcon",
|
|
224
|
-
children: /* @__PURE__ */ u(QuestionIcon, {})
|
|
225
|
-
}),
|
|
226
|
-
/* @__PURE__ */ u(Modal.TitleSection, { children: /* @__PURE__ */ u(Title, {
|
|
227
|
-
id: "incode-modal-title",
|
|
228
|
-
ref: titleRef,
|
|
229
|
-
className: "IncodeCommonIssuesTitle",
|
|
230
|
-
tabIndex: -1,
|
|
231
|
-
children: t("commonIssues.commonIssues")
|
|
232
|
-
}) }),
|
|
233
|
-
/* @__PURE__ */ u("div", {
|
|
234
|
-
class: "IncodeCommonIssuesCards",
|
|
235
|
-
children: [
|
|
236
|
-
/* @__PURE__ */ u("div", {
|
|
237
|
-
class: "IncodeCommonIssuesCard",
|
|
238
|
-
children: [/* @__PURE__ */ u("div", {
|
|
239
|
-
class: "IncodeCommonIssuesCardIcon",
|
|
240
|
-
"aria-hidden": "true",
|
|
241
|
-
children: /* @__PURE__ */ u(GlareIcon, {})
|
|
242
|
-
}), /* @__PURE__ */ u("div", {
|
|
243
|
-
class: "IncodeCommonIssuesCardText",
|
|
244
|
-
children: [/* @__PURE__ */ u("h3", {
|
|
245
|
-
class: "IncodeCommonIssuesCardTitle",
|
|
246
|
-
children: t("commonIssues.glarePresent")
|
|
247
|
-
}), /* @__PURE__ */ u("p", {
|
|
248
|
-
class: "IncodeCommonIssuesCardBody",
|
|
249
|
-
children: t("commonIssues.glarePresentDescription")
|
|
250
|
-
})]
|
|
251
|
-
})]
|
|
252
|
-
}),
|
|
253
|
-
/* @__PURE__ */ u("div", {
|
|
254
|
-
class: "IncodeCommonIssuesCard",
|
|
255
|
-
children: [/* @__PURE__ */ u("div", {
|
|
256
|
-
class: "IncodeCommonIssuesCardIcon",
|
|
257
|
-
"aria-hidden": "true",
|
|
258
|
-
children: /* @__PURE__ */ u(BlurIcon, {})
|
|
259
|
-
}), /* @__PURE__ */ u("div", {
|
|
260
|
-
class: "IncodeCommonIssuesCardText",
|
|
261
|
-
children: [/* @__PURE__ */ u("h3", {
|
|
262
|
-
class: "IncodeCommonIssuesCardTitle",
|
|
263
|
-
children: t("commonIssues.blurPresent")
|
|
264
|
-
}), /* @__PURE__ */ u("p", {
|
|
265
|
-
class: "IncodeCommonIssuesCardBody",
|
|
266
|
-
children: t("commonIssues.blurPresentDescription")
|
|
267
|
-
})]
|
|
268
|
-
})]
|
|
269
|
-
}),
|
|
270
|
-
/* @__PURE__ */ u("div", {
|
|
271
|
-
class: "IncodeCommonIssuesCard",
|
|
272
|
-
children: [/* @__PURE__ */ u("div", {
|
|
273
|
-
class: "IncodeCommonIssuesCardIcon",
|
|
274
|
-
"aria-hidden": "true",
|
|
275
|
-
children: /* @__PURE__ */ u(InfoNotReadableIcon, {})
|
|
276
|
-
}), /* @__PURE__ */ u("div", {
|
|
277
|
-
class: "IncodeCommonIssuesCardText",
|
|
278
|
-
children: [/* @__PURE__ */ u("h3", {
|
|
279
|
-
class: "IncodeCommonIssuesCardTitle",
|
|
280
|
-
children: t("commonIssues.notReadable")
|
|
281
|
-
}), /* @__PURE__ */ u("p", {
|
|
282
|
-
class: "IncodeCommonIssuesCardBody",
|
|
283
|
-
children: t("commonIssues.notReadableDescription")
|
|
284
|
-
})]
|
|
285
|
-
})]
|
|
286
|
-
})
|
|
287
|
-
]
|
|
288
|
-
}),
|
|
289
|
-
/* @__PURE__ */ u(Modal.Actions, {
|
|
290
|
-
class: "IncodeCommonIssuesButtons",
|
|
291
|
-
children: [/* @__PURE__ */ u(Button, {
|
|
292
|
-
variant: "link",
|
|
293
|
-
onClick: handleSwitchCaptureMode,
|
|
294
|
-
class: "IncodeCommonIssuesTakeManually",
|
|
295
|
-
children: t(onTakeAutomatically ? "commonIssues.takeAutomatically" : "commonIssues.takeManually")
|
|
296
|
-
}), /* @__PURE__ */ u(Button, {
|
|
297
|
-
onClick: onClose,
|
|
298
|
-
class: "IncodeCommonIssuesTryAgain",
|
|
299
|
-
children: t("commonIssues.tryAgain")
|
|
300
|
-
})]
|
|
301
|
-
})
|
|
302
|
-
]
|
|
303
|
-
})
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
//#endregion
|
|
307
|
-
//#region src/modules/id/experiments/useCaptureResultPreview.ts
|
|
308
|
-
var CROSSFADE_ANIMATION_NAME = "incodeIdCaptureResultCrossfadeOut";
|
|
309
|
-
var CROSSFADE_WATCHDOG_MS = 1e3;
|
|
310
|
-
/**
|
|
311
|
-
* IDC-05 rendering state.
|
|
312
|
-
*
|
|
313
|
-
* Core owns the phase on **both** paths — `detectingWithOptimization.optimizing`
|
|
314
|
-
* before the frame is committed (auto capture), `optimizingHold` after it
|
|
315
|
-
* (manual capture) — and reports both as `captureStatus: 'optimizing'`. So there
|
|
316
|
-
* is no dwell timer here, nothing to acknowledge, and no branch on which path
|
|
317
|
-
* produced it.
|
|
318
|
-
*
|
|
319
|
-
* What stays UI-owned is only the *tail*: keeping the frozen still (and the live
|
|
320
|
-
* camera layer beneath it) mounted for the length of the crossfade into the
|
|
321
|
-
* analyzing screen. `usePresence` starts that exit in the *same* render that
|
|
322
|
-
* stops reporting the phase — deriving it from an effect instead leaves one
|
|
323
|
-
* paintable frame with neither the still nor the fade, which resolves to the
|
|
324
|
-
* analyzing stage: the live `<video>` is destroyed, a bare `IdAnalyzing` flashes
|
|
325
|
-
* with no fade and an undecoded image, and the fade then remounts the element and
|
|
326
|
-
* re-attaches the MediaStream — a visible blink.
|
|
327
|
-
*/
|
|
328
|
-
var useCaptureResultPreview = (state) => {
|
|
329
|
-
const enabled = state.captureFeedbackMode === "optimizing";
|
|
330
|
-
const isOptimizing = enabled && state.captureStatus === "optimizing";
|
|
331
|
-
/**
|
|
332
|
-
* The auto path's phase runs before the commit, so its still is the best
|
|
333
|
-
* frame *so far*; the manual path's runs after, so `previewImageUrl` is all
|
|
334
|
-
* there is. One expression covers both.
|
|
335
|
-
*
|
|
336
|
-
* At the commit, core clears `candidateImageUrl` in the same assign that
|
|
337
|
-
* sets `previewImageUrl` (`getStoreCapturedImageValues`), so this falls through
|
|
338
|
-
* to the committed frame for the crossfade — the better-rectified crop, and the
|
|
339
|
-
* same URL the analyzing layer beneath is already mounting, so the swap paints
|
|
340
|
-
* from that URL's cache entry rather than decoding cold. The fallthrough is
|
|
341
|
-
* also what lets core free the phase's blob at the commit instead of holding it
|
|
342
|
-
* to the next boundary.
|
|
343
|
-
*/
|
|
344
|
-
const imageUrl = state.candidateImageUrl ?? state.previewImageUrl;
|
|
345
|
-
const { phase, isRendered, onAnimationEnd } = usePresence({
|
|
346
|
-
present: isOptimizing && Boolean(imageUrl),
|
|
347
|
-
animationName: CROSSFADE_ANIMATION_NAME,
|
|
348
|
-
timeoutMs: CROSSFADE_WATCHDOG_MS,
|
|
349
|
-
skipExit: !(state.previewImageUrl && state.captureStatus === "uploading")
|
|
350
|
-
});
|
|
351
|
-
return {
|
|
352
|
-
enabled,
|
|
353
|
-
phase,
|
|
354
|
-
isResultPreview: isRendered,
|
|
355
|
-
resultPreviewImageUrl: isRendered ? imageUrl : void 0,
|
|
356
|
-
isCrossfading: phase === "exiting",
|
|
357
|
-
onCrossfadeEnd: onAnimationEnd
|
|
358
|
-
};
|
|
359
|
-
};
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region src/modules/id/capture/captureHelpers.ts
|
|
362
|
-
/**
|
|
363
|
-
* Which layer(s) the capture screen mounts.
|
|
364
|
-
*
|
|
365
|
-
* The crossfade wins outright while it runs: on the IDC-05 treatment the machine
|
|
366
|
-
* commits the frame on its own clock, so `uploading` arrives *before* the fade
|
|
367
|
-
* rather than after it, and letting `uploading` win would hard-cut the live
|
|
368
|
-
* layer away mid-animation.
|
|
369
|
-
*
|
|
370
|
-
* A `present` phase keeps the live layer mounted through the manual-capture
|
|
371
|
-
* result preview, where a committed `previewImageUrl` already exists but the frozen still
|
|
372
|
-
* is deliberately still on screen.
|
|
373
|
-
*/
|
|
374
|
-
function getCaptureStageView(state, phase) {
|
|
375
|
-
const isCommitted = state.captureStatus === "capturing" || state.captureStatus === "uploading";
|
|
376
|
-
if (!state.previewImageUrl) return isCommitted ? "analyzing" : "live";
|
|
377
|
-
if (phase === "exiting") return "crossfade";
|
|
378
|
-
if (phase === "present") return "live";
|
|
379
|
-
return isCommitted ? "analyzing" : "live";
|
|
380
|
-
}
|
|
381
|
-
function getCaptureMode(state) {
|
|
382
|
-
return state.currentMode === "passport" ? "passport" : "id";
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Whether the manual-capture button is on screen right now: either the
|
|
386
|
-
* genuine auto-capture-failed fallback (`detectionStatus === 'manualCapture'`)
|
|
387
|
-
* or the `showCaptureButtonInAuto` shortcut (autocapture still running, button
|
|
388
|
-
* offered as an optional shortcut). Shared by `Capture`'s render and
|
|
389
|
-
* `useManualTooltipExperiment`'s sticky latch so the two can't drift apart.
|
|
390
|
-
*/
|
|
391
|
-
function isManualCaptureShown(state) {
|
|
392
|
-
return state.detectionStatus === "manualCapture" || state.showCaptureButtonInAuto && state.captureStatus === "detecting" && state.detectionStatus !== "capturing";
|
|
393
|
-
}
|
|
394
|
-
//#endregion
|
|
395
|
-
//#region src/modules/id/experiments/constants.ts
|
|
396
|
-
var CAMERA_PERMISSION_UX = {
|
|
397
|
-
CONTROL: "control",
|
|
398
|
-
PENDING: "pending",
|
|
399
|
-
PERMISSION_SHEET: "permissionSheet",
|
|
400
|
-
HOW_IT_WORKS: "howItWorks",
|
|
401
|
-
PERMISSION_IN_CAMERA: "permissionInCamera"
|
|
402
|
-
};
|
|
403
|
-
var ID_CAPTURE_STATUS = {
|
|
404
|
-
TUTORIAL: "tutorial",
|
|
405
|
-
PERMISSIONS: "permissions",
|
|
406
|
-
LOADING: "loading",
|
|
407
|
-
CAPTURE: "capture"
|
|
408
|
-
};
|
|
409
|
-
/** Underlying machine phases core collapses into `status: 'loading'`. */
|
|
410
|
-
var ID_CAPTURE_LOADING_PHASE = {
|
|
411
|
-
PERMISSIONS_IDLE: "permissionsIdle",
|
|
412
|
-
CHECKING_STREAM: "checkingStream",
|
|
413
|
-
INITIALIZING_DEEPSIGHT: "initializingDeepsight",
|
|
414
|
-
INITIALIZING_CAMERA: "initializingCamera"
|
|
415
|
-
};
|
|
416
|
-
/**
|
|
417
|
-
* The post-grant camera warm-up phases. IDC-03 is the only arm that renders
|
|
418
|
-
* across them — its shell stays mounted until live capture takes over — so
|
|
419
|
-
* `useCameraPermissionUx` (which arm may paint) and
|
|
420
|
-
* `useIdPermissionExperience` (whether the shell is retained) must agree on
|
|
421
|
-
* exactly this set.
|
|
422
|
-
*/
|
|
423
|
-
var CAMERA_WARMUP_LOADING_PHASES = new Set([
|
|
424
|
-
ID_CAPTURE_LOADING_PHASE.CHECKING_STREAM,
|
|
425
|
-
ID_CAPTURE_LOADING_PHASE.INITIALIZING_DEEPSIGHT,
|
|
426
|
-
ID_CAPTURE_LOADING_PHASE.INITIALIZING_CAMERA
|
|
427
|
-
]);
|
|
428
|
-
/** Underlying machine phases core collapses into `status: 'tutorial'`. */
|
|
429
|
-
var ID_CAPTURE_TUTORIAL_PHASE = {
|
|
430
|
-
CHECKING_PERMISSION: "checkingPermission",
|
|
431
|
-
READY: "ready",
|
|
432
|
-
INITIALIZING_CAMERA: "initializingCamera",
|
|
433
|
-
WAITING_FOR_PERMISSION: "waitingForPermission",
|
|
434
|
-
WAITING_FOR_CAMERA: "waitingForCamera"
|
|
435
|
-
};
|
|
436
|
-
/** Tutorial phases where the user has already continued and the CTA must show busy. */
|
|
437
|
-
var CONTINUING_TUTORIAL_PHASES = new Set([ID_CAPTURE_TUTORIAL_PHASE.WAITING_FOR_PERMISSION, ID_CAPTURE_TUTORIAL_PHASE.WAITING_FOR_CAMERA]);
|
|
438
|
-
var PERMISSION_DIALOG_STATUS = {
|
|
439
|
-
IDLE: "idle",
|
|
440
|
-
MOTION_ONLY: "motionOnly",
|
|
441
|
-
REQUESTING: "requesting"
|
|
442
|
-
};
|
|
443
|
-
var EXPERIMENT_LIFECYCLE_STATUS = { PENDING: "pending" };
|
|
444
|
-
/** IDC-08 arms — console-owned values, kebab-case `auto-dismiss` included. */
|
|
445
|
-
var MANUAL_TOOLTIP = {
|
|
446
|
-
CONTROL: "control",
|
|
447
|
-
REMOVE: "remove",
|
|
448
|
-
AUTO_DISMISS: "auto-dismiss"
|
|
449
|
-
};
|
|
450
|
-
var MANUAL_TOOLTIP_VARIANTS = [
|
|
451
|
-
MANUAL_TOOLTIP.CONTROL,
|
|
452
|
-
MANUAL_TOOLTIP.REMOVE,
|
|
453
|
-
MANUAL_TOOLTIP.AUTO_DISMISS
|
|
454
|
-
];
|
|
455
|
-
/**
|
|
456
|
-
* Today's shipped CSS dwell (`manualCaptureTooltipExit` animation-delay) — the
|
|
457
|
-
* control arm's behavior, so also the param default: an unallocated/control
|
|
458
|
-
* session that omits `autoDismissIntervalMs` must reproduce this exactly, not
|
|
459
|
-
* the treatment's shortened dwell.
|
|
460
|
-
*/
|
|
461
|
-
var MANUAL_TOOLTIP_DISMISS_DELAY_MS = 3500;
|
|
462
|
-
/** One `experimentAssigned` per session (default — today's product decision). */
|
|
463
|
-
var MANUAL_TOOLTIP_DEDUPE_RULE_ONCE = "once";
|
|
464
|
-
/** One `experimentAssigned` per (ID-module allocation, side). */
|
|
465
|
-
var MANUAL_TOOLTIP_DEDUPE_RULE_PER_CAPTURE = "per-capture";
|
|
466
|
-
//#endregion
|
|
467
|
-
//#region src/modules/id/experiments/idExperiments.ts
|
|
468
|
-
/**
|
|
469
|
-
* Code-owned registry of ID-module UI experiments. Each entry is a
|
|
470
|
-
* self-describing object param on `onboarding_web_sdk_ps`; see
|
|
471
|
-
* `useIdExperiment` for how it is read and reported.
|
|
472
|
-
*/
|
|
473
|
-
var ID_EXPERIMENTS = {
|
|
474
|
-
flipCapturedCard: {
|
|
475
|
-
storeParam: "idcExp07FlipInCaptureState",
|
|
476
|
-
module: eventModuleNames.idCapture,
|
|
477
|
-
...defineExperimentParams({ shouldFlipCapturedCard: booleanParam(false) })
|
|
478
|
-
},
|
|
479
|
-
cameraPermissionSheet: {
|
|
480
|
-
storeParam: "idcExp01PermissionSheet",
|
|
481
|
-
module: eventModuleNames.idCapture,
|
|
482
|
-
...defineExperimentParams({ showPermissionSheet: booleanParam(false) })
|
|
483
|
-
},
|
|
484
|
-
darkCameraLoading: {
|
|
485
|
-
storeParam: "idcExp04DarkCameraLoading",
|
|
486
|
-
module: eventModuleNames.idCapture,
|
|
487
|
-
...defineExperimentParams({ showDarkCameraLoading: booleanParam(false) })
|
|
488
|
-
},
|
|
489
|
-
cameraPermissionHowItWorks: {
|
|
490
|
-
storeParam: "idcExp02HowItWorks",
|
|
491
|
-
module: eventModuleNames.idCapture,
|
|
492
|
-
...defineExperimentParams({ showHowItWorks: booleanParam(false) })
|
|
493
|
-
},
|
|
494
|
-
cameraPermissionInCamera: {
|
|
495
|
-
storeParam: "idcExp03PermissionInCamera",
|
|
496
|
-
module: eventModuleNames.idCapture,
|
|
497
|
-
...defineExperimentParams({ showPermissionInCamera: booleanParam(false) })
|
|
498
|
-
},
|
|
499
|
-
manualTooltip: {
|
|
500
|
-
storeParam: "idcExp08ManualTooltip",
|
|
501
|
-
module: eventModuleNames.idCapture,
|
|
502
|
-
...defineExperimentParams({
|
|
503
|
-
manualTooltipVariant: enumParam(MANUAL_TOOLTIP.CONTROL, MANUAL_TOOLTIP_VARIANTS),
|
|
504
|
-
autoDismissIntervalMs: numberParam(MANUAL_TOOLTIP_DISMISS_DELAY_MS, {
|
|
505
|
-
min: 0,
|
|
506
|
-
max: 1e4,
|
|
507
|
-
integer: true
|
|
508
|
-
})
|
|
509
|
-
})
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
//#endregion
|
|
513
|
-
//#region src/experiments/makeUseModuleExperiment.ts
|
|
514
|
-
/**
|
|
515
|
-
* Builds a per-module experiment hook bound to `registry` (e.g.
|
|
516
|
-
* `ID_EXPERIMENTS`). Each experiment is a self-describing object param on the
|
|
517
|
-
* shared `onboarding_web_sdk_ps` store; the hook resolves it once at the
|
|
518
|
-
* visibility site (single-phase read — exposure logged on that read).
|
|
519
|
-
*/
|
|
520
|
-
function makeUseModuleExperiment(registry) {
|
|
521
|
-
return function useModuleExperiment({ key, enabled = true, reportAssignment = true, dedupeKey, conditions }) {
|
|
522
|
-
const spec = registry[key];
|
|
523
|
-
const { value: store, status } = useFeatureManagement("parameterStore", ONBOARDING_WEB_SDK_PARAMETER_STORE);
|
|
524
|
-
const conditionsKey = conditions ? JSON.stringify(conditions) : "";
|
|
525
|
-
const resolvedDedupeKey = dedupeKey ?? spec.storeParam;
|
|
526
|
-
const resolved = T(() => enabled && status === "ready" ? resolveExperiment(spec, { store }) : {
|
|
527
|
-
params: { ...spec.defaults },
|
|
528
|
-
assignment: null
|
|
529
|
-
}, [
|
|
530
|
-
enabled,
|
|
531
|
-
status,
|
|
532
|
-
store,
|
|
533
|
-
spec
|
|
534
|
-
]);
|
|
535
|
-
const assignment = resolved.assignment;
|
|
536
|
-
const variant = typeof assignment?.variant === "string" ? assignment.variant : null;
|
|
537
|
-
y(() => {
|
|
538
|
-
if (!assignment || !reportAssignment) return;
|
|
539
|
-
recordExperimentAssignmentOnce(spec.module, resolvedDedupeKey, {
|
|
540
|
-
...assignment,
|
|
541
|
-
conditions: conditionsKey ? JSON.parse(conditionsKey) : void 0
|
|
542
|
-
});
|
|
543
|
-
}, [
|
|
544
|
-
assignment,
|
|
545
|
-
reportAssignment,
|
|
546
|
-
spec,
|
|
547
|
-
resolvedDedupeKey,
|
|
548
|
-
conditionsKey
|
|
549
|
-
]);
|
|
550
|
-
return {
|
|
551
|
-
variant,
|
|
552
|
-
status,
|
|
553
|
-
params: resolved.params
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
//#endregion
|
|
558
|
-
//#region src/modules/id/experiments/useIdExperiment.ts
|
|
559
|
-
/**
|
|
560
|
-
* ID-module binding of `makeUseModuleExperiment` (see `@/experiments` for
|
|
561
|
-
* the shared parameter-store/analytics-gate/assignment-recording mechanics),
|
|
562
|
-
* bound to `ID_EXPERIMENTS`.
|
|
563
|
-
*
|
|
564
|
-
* Pass `enabled: false` for a surface/mode the treatment can never apply to
|
|
565
|
-
* (e.g. passport in `flipCapturedCard`) so that surface neither logs an
|
|
566
|
-
* exposure nor records an assignment; `params` still resolves to the
|
|
567
|
-
* registry-declared defaults so callers don't need a separate
|
|
568
|
-
* branch.
|
|
569
|
-
*/
|
|
570
|
-
var useIdExperiment = makeUseModuleExperiment(ID_EXPERIMENTS);
|
|
571
|
-
//#endregion
|
|
572
|
-
//#region src/modules/id/experiments/useManualTooltipExperiment.ts
|
|
573
|
-
/**
|
|
574
|
-
* IDC-08: resolves the manual-capture tooltip/title arm.
|
|
575
|
-
*
|
|
576
|
-
* A timing constraint the shared `useIdExperiment` hook doesn't cover on its
|
|
577
|
-
* own:
|
|
578
|
-
*
|
|
579
|
-
* **Expose at capture entry, report at treatment show (else at commit).**
|
|
580
|
-
* The arm is resolved (and Statsig-exposed) from the first render of
|
|
581
|
-
* `Capture` so the exposed population stays symmetric across arms, but the
|
|
582
|
-
* `experimentAssigned` interview-event lands at the first of two moments:
|
|
583
|
-
* the render where the manual-capture surface (the thing the arms actually
|
|
584
|
-
* change) becomes visible — so a session that sees the treatment and then
|
|
585
|
-
* abandons is still counted — or, for sessions that never show it, once a
|
|
586
|
-
* frame is committed. Reporting a never-shown session before commit would
|
|
587
|
-
* misdescribe it: `showedManualCapture: false` could still flip to `true`,
|
|
588
|
-
* but the first-wins dedupe would have already locked it in.
|
|
589
|
-
* `reportAssignment` gates the report without re-gating (and so
|
|
590
|
-
* re-exposing) the resolve.
|
|
591
|
-
*
|
|
592
|
-
* Reporting granularity is remote-selectable via
|
|
593
|
-
* `MANUAL_TOOLTIP_DEDUPE_RULE_PARAM` (ships ahead of the PM/mobile sync on
|
|
594
|
-
* the final rule, so it can be flipped without a code change): `'once'`
|
|
595
|
-
* (default) is one `experimentAssigned` per session — `Capture` unmounts
|
|
596
|
-
* between the front and back side, so whichever side reports first is the
|
|
597
|
-
* one the event describes, and the other side's report is a no-op.
|
|
598
|
-
* `'per-capture'` is one event per (ID-module allocation, side) instead — see
|
|
599
|
-
* `getManualTooltipDedupeKey`.
|
|
600
|
-
*/
|
|
601
|
-
function useManualTooltipExperiment(manager, state) {
|
|
602
|
-
const { value: onboardingParameterStore } = useFeatureManagement("parameterStore", ONBOARDING_WEB_SDK_PARAMETER_STORE, { disableExposureLog: true });
|
|
603
|
-
const dedupeKey = getManualTooltipDedupeKey(onboardingParameterStore, manager, state);
|
|
604
|
-
const showedManualCaptureRef = A(false);
|
|
605
|
-
if (isManualCaptureShown(state)) showedManualCaptureRef.current = true;
|
|
606
|
-
const { params, status } = useIdExperiment({
|
|
607
|
-
key: "manualTooltip",
|
|
608
|
-
enabled: true,
|
|
609
|
-
reportAssignment: showedManualCaptureRef.current || state.captureStatus === "uploading" || state.captureStatus === "holdOn",
|
|
610
|
-
dedupeKey,
|
|
611
|
-
conditions: { showedManualCapture: showedManualCaptureRef.current }
|
|
612
|
-
});
|
|
613
|
-
let dismissDelayMs = MANUAL_TOOLTIP_DISMISS_DELAY_MS;
|
|
614
|
-
if (status === EXPERIMENT_LIFECYCLE_STATUS.PENDING) return {
|
|
615
|
-
variant: MANUAL_TOOLTIP.CONTROL,
|
|
616
|
-
dismissDelayMs
|
|
617
|
-
};
|
|
618
|
-
if (params.manualTooltipVariant === MANUAL_TOOLTIP.AUTO_DISMISS) dismissDelayMs = params.autoDismissIntervalMs;
|
|
619
|
-
return {
|
|
620
|
-
variant: params.manualTooltipVariant,
|
|
621
|
-
dismissDelayMs
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
var captureOccurrences = /* @__PURE__ */ new WeakMap();
|
|
625
|
-
var nextCaptureOccurrence = 1;
|
|
626
|
-
function getCaptureOccurrence(manager) {
|
|
627
|
-
let occurrence = captureOccurrences.get(manager);
|
|
628
|
-
if (occurrence === void 0) {
|
|
629
|
-
occurrence = nextCaptureOccurrence++;
|
|
630
|
-
captureOccurrences.set(manager, occurrence);
|
|
631
|
-
}
|
|
632
|
-
return occurrence;
|
|
633
|
-
}
|
|
634
|
-
function getManualTooltipDedupeKey(store, manager, state) {
|
|
635
|
-
const dedupeRule = store.get("idcExp08ManualTooltipDedupeRule", "once") === "per-capture" ? MANUAL_TOOLTIP_DEDUPE_RULE_PER_CAPTURE : MANUAL_TOOLTIP_DEDUPE_RULE_ONCE;
|
|
636
|
-
const captureInstance = getCaptureOccurrence(manager);
|
|
637
|
-
const base = ID_EXPERIMENTS.manualTooltip.storeParam;
|
|
638
|
-
if (dedupeRule === "once") return base;
|
|
639
|
-
return `${base}:${captureInstance}:${state.currentMode}:${state.attemptsRemaining}`;
|
|
640
|
-
}
|
|
641
|
-
//#endregion
|
|
642
|
-
//#region src/modules/id/shared/captureFrame.tsx
|
|
643
|
-
var CaptureFrame = ({ orientation, mode, state, children, className }) => {
|
|
644
|
-
const isHorizontal = orientation !== "vertical";
|
|
645
|
-
const isPassport = mode === "passport";
|
|
646
|
-
const stateClass = `IncodeCaptureFrame${state.charAt(0).toUpperCase() + state.slice(1)}`;
|
|
647
|
-
return /* @__PURE__ */ u("div", {
|
|
648
|
-
class: cn("IncodeCaptureFrame", isHorizontal ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", stateClass, isPassport && "IncodeCaptureFramePassport", className),
|
|
649
|
-
"aria-hidden": "true",
|
|
650
|
-
role: "presentation",
|
|
651
|
-
children
|
|
652
|
-
});
|
|
653
|
-
};
|
|
654
|
-
//#endregion
|
|
655
|
-
//#region src/modules/id/processing/idProcessingLayout.tsx
|
|
656
|
-
var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent, bottomContent, overlayContent, imagePending = false, blurImage }) => {
|
|
657
|
-
const { t } = useTranslation();
|
|
658
|
-
const frameMode = mode === "id" ? "front" : mode;
|
|
659
|
-
const hasFrame = Boolean(imageUrl) || imagePending;
|
|
660
|
-
return /* @__PURE__ */ u(Page, {
|
|
661
|
-
hideHeader: true,
|
|
662
|
-
hideFooterBranding: true,
|
|
663
|
-
className: "IncodeIdProcessingPage",
|
|
664
|
-
children: /* @__PURE__ */ u("div", {
|
|
665
|
-
class: cn("IncodeIdProcessingLayout", !hasFrame && "IncodeIdProcessingLayoutNoImage"),
|
|
666
|
-
children: /* @__PURE__ */ u("div", {
|
|
667
|
-
class: "IncodeIdProcessingLayoutContent",
|
|
668
|
-
children: [
|
|
669
|
-
topContent && /* @__PURE__ */ u("div", {
|
|
670
|
-
class: "IncodeIdProcessingTopArea",
|
|
671
|
-
children: topContent
|
|
672
|
-
}),
|
|
673
|
-
hasFrame && /* @__PURE__ */ u(CaptureFrame, {
|
|
674
|
-
orientation,
|
|
675
|
-
mode: frameMode,
|
|
676
|
-
state: borderState,
|
|
677
|
-
children: imageUrl ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
|
|
678
|
-
src: imageUrl,
|
|
679
|
-
alt: "",
|
|
680
|
-
"aria-hidden": "true",
|
|
681
|
-
class: cn("IncodeIdProcessingImage", blurImage ? "IncodeIdProcessingImageBlurred" : void 0)
|
|
682
|
-
}), overlayContent && /* @__PURE__ */ u("div", {
|
|
683
|
-
class: "IncodeIdProcessingOverlay",
|
|
684
|
-
"aria-hidden": "true",
|
|
685
|
-
children: overlayContent
|
|
686
|
-
})] }) : /* @__PURE__ */ u("div", {
|
|
687
|
-
class: "IncodeIdProcessingPlaceholder",
|
|
688
|
-
"aria-hidden": "true"
|
|
689
|
-
})
|
|
690
|
-
}),
|
|
691
|
-
/* @__PURE__ */ u("div", {
|
|
692
|
-
class: "IncodeIdProcessingBottomArea",
|
|
693
|
-
children: [hasFrame && /* @__PURE__ */ u("div", {
|
|
694
|
-
class: "IncodeCaptureEncryptionLabel",
|
|
695
|
-
children: [/* @__PURE__ */ u(LockIcon, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: t("idv2.capture.allDataIsEncrypted") })]
|
|
696
|
-
}), bottomContent]
|
|
697
|
-
})
|
|
698
|
-
]
|
|
699
|
-
})
|
|
700
|
-
})
|
|
701
|
-
});
|
|
702
|
-
};
|
|
703
|
-
//#endregion
|
|
704
|
-
//#region src/modules/id/experiments/analyzingTitle.ts
|
|
705
|
-
/** Control arm: one static title for the whole upload. */
|
|
706
|
-
var ANALYZING_TITLE_KEY = "idv2.capture.processing.analyzing";
|
|
707
|
-
/** IDC-05 treatment arm, below `UPLOADING_TITLE_PROGRESS`. */
|
|
708
|
-
var PROCESSING_TITLE_KEY = "idv2.capture.processing.processing";
|
|
709
|
-
/** IDC-05 treatment arm, at or above `UPLOADING_TITLE_PROGRESS`. */
|
|
710
|
-
var UPLOADING_TITLE_KEY = "idv2.capture.processing.uploading";
|
|
711
|
-
/**
|
|
712
|
-
* IDC-05 treatment: the analyzing screen steps its title "Processing" →
|
|
713
|
-
* "Uploading" instead of resting on the control arm's single "Analyzing".
|
|
714
|
-
*
|
|
715
|
-
* Derived from `uploadProgress` rather than from a dwell timer, so the copy and
|
|
716
|
-
* the bar can never disagree about how far along the upload looks. That also
|
|
717
|
-
* makes it monotonic for free — the machine only ever raises `uploadProgress`
|
|
718
|
-
* within a single `uploading` visit (`Math.max` on the byte events, `Math.min`
|
|
719
|
-
* against the hold ceiling on the ticker) — so the title cannot walk backwards
|
|
720
|
-
* on a re-render or a stalled upload.
|
|
721
|
-
*
|
|
722
|
-
* Pure rather than a hook: no timers, no state, nothing to reset between
|
|
723
|
-
* attempts.
|
|
724
|
-
*/
|
|
725
|
-
function getAnalyzingTitleKey(resultPreviewEnabled, progress) {
|
|
726
|
-
if (!resultPreviewEnabled) return ANALYZING_TITLE_KEY;
|
|
727
|
-
return progress >= 80 ? UPLOADING_TITLE_KEY : PROCESSING_TITLE_KEY;
|
|
728
|
-
}
|
|
729
|
-
//#endregion
|
|
730
|
-
//#region src/modules/id/processing/idAnalyzing.tsx
|
|
731
|
-
var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocusTitle = true, resultPreviewEnabled = false, simulatedProgressDelayMs = 0 }) => {
|
|
732
|
-
const { t } = useTranslation();
|
|
733
|
-
const [simulatedDelayMs] = d(simulatedProgressDelayMs);
|
|
734
|
-
const titleRef = A(null);
|
|
735
|
-
const isHorizontal = orientation !== "vertical";
|
|
736
|
-
const titleKey = getAnalyzingTitleKey(resultPreviewEnabled, progress);
|
|
737
|
-
_(() => {
|
|
738
|
-
if (!autoFocusTitle) return;
|
|
739
|
-
titleRef.current?.focus();
|
|
740
|
-
}, [autoFocusTitle]);
|
|
741
|
-
return /* @__PURE__ */ u(IdProcessingLayout, {
|
|
742
|
-
imageUrl,
|
|
743
|
-
orientation,
|
|
744
|
-
mode,
|
|
745
|
-
borderState: "analyzing",
|
|
746
|
-
blurImage,
|
|
747
|
-
topContent: /* @__PURE__ */ u("div", {
|
|
748
|
-
class: "IncodeAnalyzingContent",
|
|
749
|
-
style: { "--progress-bar-simulated-delay": `${simulatedDelayMs}ms` },
|
|
750
|
-
children: [/* @__PURE__ */ u(ProgressBar, {
|
|
751
|
-
progress,
|
|
752
|
-
labelledById: "analyzing-title",
|
|
753
|
-
simulated: true
|
|
754
|
-
}), /* @__PURE__ */ u(Title, {
|
|
755
|
-
ref: titleRef,
|
|
756
|
-
id: "analyzing-title",
|
|
757
|
-
className: "IncodeAnalyzingTitle",
|
|
758
|
-
tabIndex: -1,
|
|
759
|
-
"aria-live": "polite",
|
|
760
|
-
children: /* @__PURE__ */ u("span", {
|
|
761
|
-
class: "IncodeAnalyzingTitleText",
|
|
762
|
-
children: t(titleKey)
|
|
763
|
-
}, titleKey)
|
|
764
|
-
})]
|
|
765
|
-
}),
|
|
766
|
-
overlayContent: /* @__PURE__ */ u(AnimatedAsset, {
|
|
767
|
-
name: "id.processing",
|
|
768
|
-
orientation: isHorizontal ? "horizontal" : "vertical",
|
|
769
|
-
loop: true,
|
|
770
|
-
autoStop: true,
|
|
771
|
-
class: "IncodeAnalyzingLottie"
|
|
772
|
-
}),
|
|
773
|
-
imagePending: !imageUrl
|
|
774
|
-
});
|
|
775
|
-
};
|
|
776
|
-
//#endregion
|
|
777
|
-
//#region src/modules/id/assets/greenCheckIcon.tsx
|
|
778
|
-
var GreenCheckIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
|
|
779
|
-
class: className,
|
|
780
|
-
width: "32",
|
|
781
|
-
height: "32",
|
|
782
|
-
viewBox: "0 0 32 32",
|
|
783
|
-
fill: "none",
|
|
784
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
785
|
-
"aria-hidden": "true",
|
|
786
|
-
...rest,
|
|
787
|
-
children: /* @__PURE__ */ u("path", {
|
|
788
|
-
d: "M16 0c8.836 0 16 7.164 16 16s-7.164 16-16 16S0 24.836 0 16 7.164 0 16 0Zm6.349 11.231a1.275 1.275 0 0 0-1.7-.092l-.008.007-.087.078-6.84 6.84-2.262-2.263a1.275 1.275 0 0 0-1.895 1.701l.006.008.079.088 3.17 3.17c.466.465 1.2.496 1.7.093l.008-.006.088-.079 7.74-7.74a1.275 1.275 0 0 0 0-1.805Z",
|
|
789
|
-
fill: "#189F60"
|
|
790
|
-
})
|
|
791
|
-
});
|
|
792
|
-
//#endregion
|
|
793
|
-
//#region src/modules/id/processing/idProcessingResult.tsx
|
|
794
|
-
var FADE_OUT_ANIMATION_NAME = "incodeIdProcessingResultFadeOut";
|
|
795
|
-
var EXIT_WATCHDOG_MS = 3500;
|
|
796
|
-
var IdProcessingResult = ({ variant, imageUrl, orientation, mode, title, subtitle, buttonText, onButtonClick, attemptsRemaining, blurImage, fadeOutOnClick, children }) => {
|
|
797
|
-
const { t } = useTranslation();
|
|
798
|
-
const titleRef = A(null);
|
|
799
|
-
const [isExiting, setIsExiting] = d(false);
|
|
800
|
-
const hasFiredButtonClickRef = A(false);
|
|
801
|
-
const { schedule: scheduleExitWatchdog, clear: clearExitWatchdog } = useTimeoutHandle();
|
|
802
|
-
y(() => {
|
|
803
|
-
titleRef.current?.focus();
|
|
804
|
-
}, []);
|
|
805
|
-
const fireButtonClick = () => {
|
|
806
|
-
if (hasFiredButtonClickRef.current) return;
|
|
807
|
-
hasFiredButtonClickRef.current = true;
|
|
808
|
-
onButtonClick();
|
|
809
|
-
};
|
|
810
|
-
const handleButtonClick = () => {
|
|
811
|
-
if (fadeOutOnClick) {
|
|
812
|
-
setIsExiting(true);
|
|
813
|
-
scheduleExitWatchdog(fireButtonClick, EXIT_WATCHDOG_MS);
|
|
814
|
-
return;
|
|
815
|
-
}
|
|
816
|
-
onButtonClick();
|
|
817
|
-
};
|
|
818
|
-
const handleExitAnimationEnd = (event) => {
|
|
819
|
-
if (event.animationName !== FADE_OUT_ANIMATION_NAME) return;
|
|
820
|
-
clearExitWatchdog();
|
|
821
|
-
fireButtonClick();
|
|
822
|
-
};
|
|
823
|
-
return /* @__PURE__ */ u(IdProcessingLayout, {
|
|
824
|
-
imageUrl,
|
|
825
|
-
orientation,
|
|
826
|
-
mode,
|
|
827
|
-
borderState: variant,
|
|
828
|
-
blurImage,
|
|
829
|
-
topContent: /* @__PURE__ */ u("div", {
|
|
830
|
-
class: cn("IncodeIdProcessingResultContent", isExiting && "IncodeIdProcessingResultContentExiting"),
|
|
831
|
-
onAnimationEnd: handleExitAnimationEnd,
|
|
832
|
-
children: [/* @__PURE__ */ u("div", {
|
|
833
|
-
class: "IncodeIdProcessingResultStatus",
|
|
834
|
-
role: "status",
|
|
835
|
-
children: [
|
|
836
|
-
variant === "success" ? /* @__PURE__ */ u(GreenCheckIcon, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ u(RedStrikeIcon, { className: "IncodeIdProcessingResultIcon" }),
|
|
837
|
-
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
838
|
-
title && /* @__PURE__ */ u(Title, {
|
|
839
|
-
ref: titleRef,
|
|
840
|
-
className: "IncodeIdProcessingResultTitle",
|
|
841
|
-
tabIndex: -1,
|
|
842
|
-
children: title
|
|
843
|
-
}),
|
|
844
|
-
subtitle && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
|
|
845
|
-
class: "IncodeIdProcessingResultSubtitle",
|
|
846
|
-
children: subtitle
|
|
847
|
-
})] })
|
|
848
|
-
]
|
|
849
|
-
}), children]
|
|
850
|
-
}),
|
|
851
|
-
bottomContent: /* @__PURE__ */ u("div", {
|
|
852
|
-
class: cn("IncodeIdProcessingResultButtonContainer", isExiting && "IncodeIdProcessingResultButtonContainerExiting"),
|
|
853
|
-
onAnimationEnd: handleExitAnimationEnd,
|
|
854
|
-
children: [attemptsRemaining !== void 0 && /* @__PURE__ */ u("p", {
|
|
855
|
-
class: "IncodeIdProcessingResultAttempts",
|
|
856
|
-
children: attemptsRemaining === 0 ? t("idv2.capture.processing.noAttemptsRemaining") : t("v2.idError.attemptsLeft", { count: attemptsRemaining })
|
|
857
|
-
}), /* @__PURE__ */ u(Button, {
|
|
858
|
-
onClick: handleButtonClick,
|
|
859
|
-
disabled: isExiting,
|
|
860
|
-
"data-testid": "retry-button",
|
|
861
|
-
children: buttonText
|
|
862
|
-
})]
|
|
863
|
-
})
|
|
864
|
-
});
|
|
865
|
-
};
|
|
866
|
-
//#endregion
|
|
867
|
-
//#region src/modules/id/experiments/flipCapturedCardEligibility.ts
|
|
868
|
-
/** Whether the captured-card treatment has a camera image it can physically flip. */
|
|
869
|
-
function canFlipCapturedCard(mode, previewImageUrl) {
|
|
870
|
-
return mode !== "passport" && Boolean(previewImageUrl);
|
|
871
|
-
}
|
|
872
|
-
//#endregion
|
|
873
|
-
//#region src/modules/id/processing/idSuccess.tsx
|
|
874
|
-
var IdSuccess = ({ manager, state, blurImage }) => {
|
|
875
|
-
const { t } = useTranslation();
|
|
876
|
-
const hasNextSide = state.needsBackCapture || state.needsFrontCapture;
|
|
877
|
-
const { params } = useIdExperiment({
|
|
878
|
-
key: "flipCapturedCard",
|
|
879
|
-
enabled: canFlipCapturedCard(state.currentMode, state.previewImageUrl) && hasNextSide
|
|
880
|
-
});
|
|
881
|
-
const shouldFlipCapturedCard = params.shouldFlipCapturedCard;
|
|
882
|
-
if (!state.previewImageUrl && !state.barcodeFastPathCaptured) return null;
|
|
883
|
-
const mode = state.currentMode === "passport" ? "passport" : "id";
|
|
884
|
-
const getSubtitle = () => {
|
|
885
|
-
if (state.needsBackCapture) return t("idv2.capture.processing.successFrontSubtitle");
|
|
886
|
-
if (state.needsFrontCapture) return t("idv2.capture.processing.successBackSubtitleScanFront");
|
|
887
|
-
return t("idv2.capture.processing.successBackSubtitle");
|
|
888
|
-
};
|
|
889
|
-
const getButtonText = () => {
|
|
890
|
-
if (state.needsBackCapture) return t("idv2.capture.processing.scanBack");
|
|
891
|
-
if (state.needsFrontCapture) return t("idv2.capture.processing.scanFront");
|
|
892
|
-
return t("idv2.capture.processing.continue");
|
|
893
|
-
};
|
|
894
|
-
return /* @__PURE__ */ u(IdProcessingResult, {
|
|
895
|
-
variant: "success",
|
|
896
|
-
imageUrl: state.previewImageUrl,
|
|
897
|
-
orientation: state.orientation,
|
|
898
|
-
mode,
|
|
899
|
-
title: t("idv2.capture.processing.successTitle"),
|
|
900
|
-
subtitle: getSubtitle(),
|
|
901
|
-
buttonText: getButtonText(),
|
|
902
|
-
onButtonClick: () => manager.nextStep(),
|
|
903
|
-
blurImage,
|
|
904
|
-
fadeOutOnClick: shouldFlipCapturedCard
|
|
905
|
-
});
|
|
906
|
-
};
|
|
907
|
-
//#endregion
|
|
908
|
-
//#region src/shared/acceptedDocumentCard/assets/driversLicenseIcon.tsx
|
|
909
|
-
var DriversLicenseIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
|
|
910
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
911
|
-
width: "20",
|
|
912
|
-
height: "20",
|
|
913
|
-
viewBox: "0 0 20 20",
|
|
914
|
-
fill: "none",
|
|
915
|
-
"aria-hidden": "true",
|
|
916
|
-
class: className,
|
|
917
|
-
children: /* @__PURE__ */ u("path", {
|
|
918
|
-
"fill-rule": "evenodd",
|
|
919
|
-
"clip-rule": "evenodd",
|
|
920
|
-
d: "m4.97 7.806.776-2.154a1.21 1.21 0 0 1 .94-.795 21.2 21.2 0 0 1 6.611 0 1.21 1.21 0 0 1 .953.801l.773 2.148c-3.344.32-6.709.32-10.053 0Zm8.738 4.708a.922.922 0 0 1 0-1.842.922.922 0 0 1 0 1.842Zm-7.423 0a.922.922 0 1 1 .92-.922.92.92 0 0 1-.92.922Zm11.82-4.452a.63.63 0 0 0-.708-.532c-.364.052-.73.092-1.095.136l-.001-.004-.874-2.422a2.46 2.46 0 0 0-1.933-1.618 22.5 22.5 0 0 0-7.008 0 2.46 2.46 0 0 0-1.919 1.613l-.871 2.42-.006.01c-.365-.043-.73-.083-1.094-.135a.625.625 0 0 0-.176 1.238c.31.044.62.077.932.115l-.408.561a3.36 3.36 0 0 0-.645 1.984v4.188c0 .57.464 1.035 1.035 1.035h1.667c.57 0 1.034-.464 1.034-1.035v-.384a.43.43 0 0 1 .123-.304.43.43 0 0 1 .301-.126h7.06a.43.43 0 0 1 .3.126q.06.06.092.138.03.08.03.167v.383c0 .57.464 1.035 1.035 1.035h1.683c.57 0 1.034-.464 1.034-1.035v-4.204c0-.723-.226-1.415-.656-2.002l-.392-.527c.31-.038.62-.07.928-.115a.625.625 0 0 0 .531-.706Z",
|
|
921
|
-
fill: "var(--icon-neutral-300)"
|
|
922
|
-
})
|
|
923
|
-
});
|
|
924
|
-
//#endregion
|
|
925
|
-
//#region src/shared/acceptedDocumentCard/assets/identificationCardIcon.tsx
|
|
926
|
-
var IdentificationCardIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
|
|
927
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
928
|
-
width: "20",
|
|
929
|
-
height: "20",
|
|
930
|
-
viewBox: "0 0 20 20",
|
|
931
|
-
fill: "none",
|
|
932
|
-
"aria-hidden": "true",
|
|
933
|
-
class: className,
|
|
934
|
-
children: /* @__PURE__ */ u("path", {
|
|
935
|
-
"fill-rule": "evenodd",
|
|
936
|
-
"clip-rule": "evenodd",
|
|
937
|
-
d: "M14.789 9.394h-2.923a.686.686 0 1 1 0-1.371h2.923a.685.685 0 0 1 0 1.37Zm0 3.09h-1.82a.685.685 0 0 1 0-1.37h1.82a.685.685 0 0 1 0 1.37Zm-4.395 1.196-5.333.007a.31.31 0 0 1-.22-.09.31.31 0 0 1-.09-.219c0-1.127.92-2.264 2.976-2.264s2.977 1.133 2.977 2.256a.31.31 0 0 1-.31.31ZM7.727 6.295c1.065 0 1.93.865 1.93 1.93a1.933 1.933 0 0 1-1.93 1.932 1.933 1.933 0 0 1-1.93-1.932c0-1.065.865-1.93 1.93-1.93Zm6.48-3.127H6.04c-2.25 0-3.833 1.667-3.833 4v5.667c0 2.333 1.583 4 3.833 4h8.167c2.25 0 3.833-1.667 3.833-4V7.168c0-2.333-1.583-4-3.833-4Z",
|
|
938
|
-
fill: "var(--icon-neutral-300)"
|
|
939
|
-
})
|
|
940
|
-
});
|
|
941
|
-
//#endregion
|
|
942
|
-
//#region src/shared/acceptedDocumentCard/assets/passportIcon.tsx
|
|
943
|
-
var PassportIcon$1 = ({ class: className }) => /* @__PURE__ */ u("svg", {
|
|
944
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
945
|
-
width: "20",
|
|
946
|
-
height: "20",
|
|
947
|
-
viewBox: "0 0 20 20",
|
|
948
|
-
fill: "none",
|
|
949
|
-
"aria-hidden": "true",
|
|
950
|
-
class: className,
|
|
951
|
-
children: [/* @__PURE__ */ u("path", {
|
|
952
|
-
d: "M9.998 10.277c-.757 0-1.373.618-1.373 1.375 0 .753.615 1.367 1.373 1.367.757 0 1.372-.614 1.372-1.367 0-.757-.616-1.375-1.372-1.375Z",
|
|
953
|
-
fill: "var(--icon-neutral-300)"
|
|
954
|
-
}), /* @__PURE__ */ u("path", {
|
|
955
|
-
"fill-rule": "evenodd",
|
|
956
|
-
"clip-rule": "evenodd",
|
|
957
|
-
d: "M5.962 17.919h8.077a2.205 2.205 0 0 0 2.204-2.2V7.86a2.205 2.205 0 0 0-1.724-2.147.2.2 0 0 0-.051-.005H6.727a.417.417 0 0 1 0-.834h7.51a.25.25 0 0 0 .25-.25v-.747c0-.56-.253-1.076-.695-1.418a1.78 1.78 0 0 0-1.546-.32L4.97 4.023a1.606 1.606 0 0 0-1.211 1.562V15.72c0 1.212.989 2.2 2.204 2.2Zm1.415-6.267A2.626 2.626 0 0 1 10 9.027a2.626 2.626 0 0 1 2.622 2.625A2.62 2.62 0 0 1 10 14.269a2.62 2.62 0 0 1-2.623-2.617Z",
|
|
958
|
-
fill: "var(--icon-neutral-300)"
|
|
959
|
-
})]
|
|
960
|
-
});
|
|
961
|
-
//#endregion
|
|
962
|
-
//#region src/shared/acceptedDocumentCard/assets/residenceDocumentIcon.tsx
|
|
963
|
-
var ResidenceDocumentIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
|
|
964
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
965
|
-
width: "20",
|
|
966
|
-
height: "20",
|
|
967
|
-
viewBox: "0 0 20 20",
|
|
968
|
-
fill: "none",
|
|
969
|
-
"aria-hidden": "true",
|
|
970
|
-
class: className,
|
|
971
|
-
children: [/* @__PURE__ */ u("path", {
|
|
972
|
-
"fill-rule": "evenodd",
|
|
973
|
-
"clip-rule": "evenodd",
|
|
974
|
-
d: "M11.04 13.363c-.14-.068-.481-.068-.997-.068s-.857 0-.985.062a.6.6 0 0 0-.292.29c-.063.132-.063.473-.063.99v2.935c0 .139.112.25.25.25h2.18a.25.25 0 0 0 .25-.25v-2.935c0-.516 0-.857-.062-.988a.6.6 0 0 0-.28-.286Z",
|
|
975
|
-
fill: "var(--icon-neutral-300)"
|
|
976
|
-
}), /* @__PURE__ */ u("path", {
|
|
977
|
-
"fill-rule": "evenodd",
|
|
978
|
-
"clip-rule": "evenodd",
|
|
979
|
-
d: "m18.019 7.751-2.417-1.913V4.102a.833.833 0 1 0-1.667 0v.416l-2.19-1.735a2.81 2.81 0 0 0-3.489.002L1.984 7.75A.834.834 0 1 0 3.02 9.058l.105-.082v5.67a3.18 3.18 0 0 0 3.178 3.175h.905a.25.25 0 0 0 .25-.25v-2.935c0-.735 0-1.141.185-1.527a1.84 1.84 0 0 1 .887-.883c.374-.181.78-.181 1.518-.181s1.145 0 1.532.187c.372.171.687.485.874.878.184.384.184.79.184 1.526v2.936c0 .137.112.25.25.25h.814a3.18 3.18 0 0 0 3.178-3.175V8.976l.105.082a.834.834 0 1 0 1.034-1.307Z",
|
|
980
|
-
fill: "var(--icon-neutral-300)"
|
|
981
|
-
})]
|
|
982
|
-
});
|
|
983
|
-
//#endregion
|
|
984
|
-
//#region src/shared/acceptedDocumentCard/acceptedDocumentCard.constants.ts
|
|
985
|
-
/** Used for every document type without a dedicated icon in the design system. */
|
|
986
|
-
var DefaultDocumentIcon = IdentificationCardIcon;
|
|
987
|
-
var DOCUMENT_CONFIG = {
|
|
988
|
-
IdentificationCard: {
|
|
989
|
-
label: "idv2.unacceptedId.identificationCard",
|
|
990
|
-
Icon: IdentificationCardIcon
|
|
991
|
-
},
|
|
992
|
-
Passport: {
|
|
993
|
-
label: "idv2.unacceptedId.passport",
|
|
994
|
-
Icon: PassportIcon$1
|
|
995
|
-
},
|
|
996
|
-
DriversLicense: {
|
|
997
|
-
label: "idv2.unacceptedId.driversLicense",
|
|
998
|
-
Icon: DriversLicenseIcon
|
|
999
|
-
},
|
|
1000
|
-
ResidenceDocument: {
|
|
1001
|
-
label: "idv2.unacceptedId.residenceDocument",
|
|
1002
|
-
Icon: ResidenceDocumentIcon
|
|
1003
|
-
},
|
|
1004
|
-
BirthCertificate: { label: "idv2.unacceptedId.birthCertificate" },
|
|
1005
|
-
TravelDocument: { label: "idv2.unacceptedId.travelDocument" },
|
|
1006
|
-
WeaponLicense: { label: "idv2.unacceptedId.weaponLicense" },
|
|
1007
|
-
MedicalCard: { label: "idv2.unacceptedId.medicalCard" },
|
|
1008
|
-
TribalIdentification: { label: "idv2.unacceptedId.tribalIdentification" },
|
|
1009
|
-
Currency: { label: "idv2.unacceptedId.currency" },
|
|
1010
|
-
VehicleRegistration: { label: "idv2.unacceptedId.vehicleRegistration" },
|
|
1011
|
-
TaxIdentification: { label: "idv2.unacceptedId.taxIdentification" },
|
|
1012
|
-
Visa: { label: "idv2.unacceptedId.visa" },
|
|
1013
|
-
Permit: { label: "idv2.unacceptedId.permit" },
|
|
1014
|
-
Military: { label: "idv2.unacceptedId.military" },
|
|
1015
|
-
VoterIdentification: { label: "idv2.unacceptedId.voterIdentification" },
|
|
1016
|
-
FederalID: { label: "idv2.unacceptedId.federalId" },
|
|
1017
|
-
Unknown: { label: "idv2.unacceptedId.unknown" },
|
|
1018
|
-
Other: { label: "idv2.unacceptedId.other" }
|
|
1019
|
-
};
|
|
1020
|
-
//#endregion
|
|
1021
|
-
//#region src/shared/acceptedDocumentCard/acceptedDocumentCard.tsx
|
|
1022
|
-
function resolveDocumentConfig(documentType) {
|
|
1023
|
-
const config = DOCUMENT_CONFIG[documentType] ?? DOCUMENT_CONFIG.Other;
|
|
1024
|
-
return {
|
|
1025
|
-
label: config.label,
|
|
1026
|
-
Icon: config.Icon ?? DefaultDocumentIcon
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
var AcceptedDocumentCard = ({ acceptedDocuments }) => {
|
|
1030
|
-
const { t } = useTranslation();
|
|
1031
|
-
const hasAcceptedDocuments = !!acceptedDocuments?.length;
|
|
1032
|
-
return /* @__PURE__ */ u("div", {
|
|
1033
|
-
class: "IncodeAcceptedDocumentCard",
|
|
1034
|
-
children: /* @__PURE__ */ u("div", {
|
|
1035
|
-
class: cn("IncodeAcceptedDocumentCardContainer", !hasAcceptedDocuments && "IncodeAcceptedDocumentCardContainerEmpty"),
|
|
1036
|
-
children: hasAcceptedDocuments ? /* @__PURE__ */ u("ul", {
|
|
1037
|
-
class: "IncodeAcceptedDocumentCardList",
|
|
1038
|
-
children: [...new Set(acceptedDocuments)].map((documentType) => {
|
|
1039
|
-
const { Icon, label } = resolveDocumentConfig(documentType);
|
|
1040
|
-
return /* @__PURE__ */ u("li", {
|
|
1041
|
-
class: "IncodeAcceptedDocumentCardItem",
|
|
1042
|
-
children: [/* @__PURE__ */ u(Icon, {}), /* @__PURE__ */ u(TypographyP, {
|
|
1043
|
-
className: "IncodeAcceptedDocumentCardItemLabel",
|
|
1044
|
-
children: t(label)
|
|
1045
|
-
})]
|
|
1046
|
-
}, documentType);
|
|
1047
|
-
})
|
|
1048
|
-
}) : /* @__PURE__ */ u("div", {
|
|
1049
|
-
class: "IncodeAcceptedDocumentCardEmptyState",
|
|
1050
|
-
children: [/* @__PURE__ */ u(DefaultDocumentIcon, { class: "IncodeAcceptedDocumentCardEmptyStateIcon" }), /* @__PURE__ */ u(TypographyP, {
|
|
1051
|
-
className: "IncodeAcceptedDocumentCardEmptyStateText",
|
|
1052
|
-
children: t("idv2.unacceptedId.noDocuments")
|
|
1053
|
-
})]
|
|
1054
|
-
})
|
|
1055
|
-
})
|
|
1056
|
-
});
|
|
1057
|
-
};
|
|
1058
|
-
//#endregion
|
|
1059
|
-
//#region src/modules/id/processing/unacceptedIdDocuments.tsx
|
|
1060
|
-
var UnacceptedIdDocuments = ({ acceptedDocuments, countryCode }) => {
|
|
1061
|
-
const { t, i18n } = useTranslation();
|
|
1062
|
-
const locale = i18n.language || "en";
|
|
1063
|
-
const flag = countryCode ? countryFlagEmoji(countryCode) : "";
|
|
1064
|
-
return /* @__PURE__ */ u("div", {
|
|
1065
|
-
class: "IncodeUnacceptedIdDocuments",
|
|
1066
|
-
children: [countryCode && /* @__PURE__ */ u("div", {
|
|
1067
|
-
class: "IncodeUnacceptedIdDocumentsCountry",
|
|
1068
|
-
children: [/* @__PURE__ */ u(TypographyH3, {
|
|
1069
|
-
className: "IncodeUnacceptedIdDocumentsCountryHeading",
|
|
1070
|
-
children: t("idv2.unacceptedId.acceptedDocuments")
|
|
1071
|
-
}), /* @__PURE__ */ u("span", {
|
|
1072
|
-
class: "IncodeUnacceptedIdDocumentsCountryLabel",
|
|
1073
|
-
children: [flag && /* @__PURE__ */ u("span", {
|
|
1074
|
-
class: "IncodeUnacceptedIdDocumentsCountryFlag",
|
|
1075
|
-
"aria-hidden": "true",
|
|
1076
|
-
children: flag
|
|
1077
|
-
}), /* @__PURE__ */ u("span", {
|
|
1078
|
-
class: "IncodeUnacceptedIdDocumentsCountryName",
|
|
1079
|
-
children: getCountryDisplayName(countryCode, locale)
|
|
1080
|
-
})]
|
|
1081
|
-
})]
|
|
1082
|
-
}), /* @__PURE__ */ u(AcceptedDocumentCard, { acceptedDocuments })]
|
|
1083
|
-
});
|
|
1084
|
-
};
|
|
1085
|
-
//#endregion
|
|
1086
|
-
//#region src/modules/id/processing/idError.tsx
|
|
1087
|
-
var IdError = ({ manager, state, blurImage, ..._rest }) => {
|
|
1088
|
-
const { t } = useTranslation();
|
|
1089
|
-
if (state.status === "error") return /* @__PURE__ */ u(TerminalErrorPage, {});
|
|
1090
|
-
const mode = state.currentMode === "passport" ? "passport" : "id";
|
|
1091
|
-
const unacceptableIdType = state.uploadError === "ID_TYPE_UNACCEPTABLE";
|
|
1092
|
-
if (!unacceptableIdType && !state.previewImageUrl) return null;
|
|
1093
|
-
let unacceptedIdDocumentsSlot = null;
|
|
1094
|
-
let imageUrl = state.previewImageUrl;
|
|
1095
|
-
if (unacceptableIdType) {
|
|
1096
|
-
imageUrl = void 0;
|
|
1097
|
-
unacceptedIdDocumentsSlot = /* @__PURE__ */ u(UnacceptedIdDocuments, {
|
|
1098
|
-
acceptedDocuments: state.acceptedDocuments,
|
|
1099
|
-
countryCode: state.countryCode
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
return /* @__PURE__ */ u(IdProcessingResult, {
|
|
1103
|
-
variant: "error",
|
|
1104
|
-
imageUrl,
|
|
1105
|
-
orientation: state.orientation,
|
|
1106
|
-
mode,
|
|
1107
|
-
title: state.uploadErrorMessage ? t(state.uploadErrorMessage) : void 0,
|
|
1108
|
-
subtitle: state.uploadErrorDescription ? t(state.uploadErrorDescription) : void 0,
|
|
1109
|
-
buttonText: state.canRetry ? t("idv2.capture.processing.tryAgain") : t("idv2.capture.processing.continue"),
|
|
1110
|
-
onButtonClick: () => manager.continueFromError(),
|
|
1111
|
-
attemptsRemaining: state.attemptsRemaining,
|
|
1112
|
-
blurImage,
|
|
1113
|
-
children: unacceptedIdDocumentsSlot
|
|
1114
|
-
});
|
|
1115
|
-
};
|
|
1116
|
-
//#endregion
|
|
1117
|
-
//#region src/modules/id/processing/idExpired.tsx
|
|
1118
|
-
/**
|
|
1119
|
-
* Flow / SDK 1 UXv2 capture-side expired-document screen — thin wrapper that
|
|
1120
|
-
* wires `idCaptureManager.retryCapture()` and forwards the
|
|
1121
|
-
* `attemptsRemaining` counter into the shared `<ExpiredId>` primitive.
|
|
1122
|
-
*
|
|
1123
|
-
* `isBackSide` triggers the Figma `1-9-11-id-documenterror` subtitle
|
|
1124
|
-
* ("Use a different ID from the accepted list") when the back side expired.
|
|
1125
|
-
*
|
|
1126
|
-
* Workflow's verify-side node uses its own wrapper in the `id-verification`
|
|
1127
|
-
* module that passes only `onContinue` (no attempts concept), matching the
|
|
1128
|
-
* legacy SDK 1 `Workflow.tsx → ProcessId.jsx → ExpiredId` one-shot Continue
|
|
1129
|
-
* behavior.
|
|
1130
|
-
*/
|
|
1131
|
-
var IdExpired = ({ manager, attemptsRemaining, isBackSide }) => /* @__PURE__ */ u(ExpiredId, {
|
|
1132
|
-
onRetry: () => manager.retryCapture(),
|
|
1133
|
-
attemptsRemaining,
|
|
1134
|
-
isBackSide
|
|
1135
|
-
});
|
|
1136
|
-
//#endregion
|
|
1137
|
-
//#region src/modules/id/processing/idNoAttempts.tsx
|
|
1138
|
-
var IdNoAttempts = ({ manager }) => {
|
|
1139
|
-
const { t } = useTranslation();
|
|
1140
|
-
const titleRef = A(null);
|
|
1141
|
-
y(() => {
|
|
1142
|
-
titleRef.current?.focus();
|
|
1143
|
-
}, []);
|
|
1144
|
-
const handleContinue = () => {
|
|
1145
|
-
manager.continueExhausted();
|
|
1146
|
-
};
|
|
1147
|
-
return /* @__PURE__ */ u(Page, {
|
|
1148
|
-
hideHeader: true,
|
|
1149
|
-
hideFooterBranding: true,
|
|
1150
|
-
className: "IncodeIdNoAttemptsPage",
|
|
1151
|
-
children: [/* @__PURE__ */ u("div", {
|
|
1152
|
-
class: "IncodeIdNoAttemptsContent",
|
|
1153
|
-
role: "alert",
|
|
1154
|
-
children: [
|
|
1155
|
-
/* @__PURE__ */ u(RedStrikeIcon, { className: "IncodeIdNoAttemptsIcon" }),
|
|
1156
|
-
/* @__PURE__ */ u(Title, {
|
|
1157
|
-
ref: titleRef,
|
|
1158
|
-
tabIndex: -1,
|
|
1159
|
-
className: "IncodeIdNoAttemptsTitle",
|
|
1160
|
-
children: t("idv2.capture.notifications.idScanFailed")
|
|
1161
|
-
}),
|
|
1162
|
-
/* @__PURE__ */ u(Spacer, { size: 12 }),
|
|
1163
|
-
/* @__PURE__ */ u("p", {
|
|
1164
|
-
class: "IncodeIdNoAttemptsSubtitle",
|
|
1165
|
-
children: t("idv2.capture.processing.noAttemptsRemaining")
|
|
1166
|
-
}),
|
|
1167
|
-
/* @__PURE__ */ u(Spacer, { size: 80 })
|
|
1168
|
-
]
|
|
1169
|
-
}), /* @__PURE__ */ u("div", {
|
|
1170
|
-
class: "IncodeIdNoAttemptsButtonContainer",
|
|
1171
|
-
children: /* @__PURE__ */ u(Button, {
|
|
1172
|
-
variant: "primary",
|
|
1173
|
-
onClick: handleContinue,
|
|
1174
|
-
children: t("idv2.capture.processing.continue")
|
|
1175
|
-
})
|
|
1176
|
-
})]
|
|
1177
|
-
});
|
|
1178
|
-
};
|
|
1179
|
-
//#endregion
|
|
1180
|
-
//#region src/modules/id/capture/captureResultFlash.tsx
|
|
1181
|
-
var FLASH_ANIMATION_NAME = "incodeCaptureResultFlash";
|
|
1182
|
-
/**
|
|
1183
|
-
* One-shot white "shutter" flash: on the `uxp_idc_exp05_show_result`
|
|
1184
|
-
* treatment's result preview, and at the end of the countdown. Plays on mount
|
|
1185
|
-
* (after `delayMs`) and reports `animationend` so its parent can remove and
|
|
1186
|
-
* re-arm it for the next capture.
|
|
1187
|
-
*/
|
|
1188
|
-
var CaptureResultFlash = ({ delayMs, onAnimationStart, onAnimationEnd }) => {
|
|
1189
|
-
const hasStartedRef = A(false);
|
|
1190
|
-
return /* @__PURE__ */ u("div", {
|
|
1191
|
-
class: "IncodeCaptureResultFlash",
|
|
1192
|
-
"aria-hidden": "true",
|
|
1193
|
-
style: delayMs ? { "--capture-result-flash-delay": `${delayMs}ms` } : void 0,
|
|
1194
|
-
onAnimationStart: (event) => {
|
|
1195
|
-
if (event.animationName !== FLASH_ANIMATION_NAME || hasStartedRef.current) return;
|
|
1196
|
-
hasStartedRef.current = true;
|
|
1197
|
-
onAnimationStart?.();
|
|
1198
|
-
},
|
|
1199
|
-
onAnimationEnd: (event) => {
|
|
1200
|
-
if (event.animationName !== FLASH_ANIMATION_NAME) return;
|
|
1201
|
-
onAnimationEnd?.();
|
|
1202
|
-
}
|
|
1203
|
-
});
|
|
1204
|
-
};
|
|
1205
|
-
//#endregion
|
|
1206
|
-
//#region src/modules/id/capture/idHint.tsx
|
|
1207
|
-
var FrontHorizontalHintSvg = z(() => import("./front-horizontal-hint-DEHmtcdg.js"));
|
|
1208
|
-
var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-Cb1NO-xT.js"));
|
|
1209
|
-
var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-BztyPanp.js"));
|
|
1210
|
-
var BackVerticalHintSvg = z(() => import("./back-vertical-hint-BSzA4QbJ.js"));
|
|
1211
|
-
var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-DgNc6F0-.js"));
|
|
1212
|
-
var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-B-toVsfT.js"));
|
|
1213
|
-
var CARD_WIDTH_IN_SVG = {
|
|
1214
|
-
"front-horizontal": 348,
|
|
1215
|
-
"back-horizontal": 348,
|
|
1216
|
-
"passport-horizontal": 342
|
|
1217
|
-
};
|
|
1218
|
-
var CARD_HEIGHT_IN_SVG = {
|
|
1219
|
-
"front-vertical": 446,
|
|
1220
|
-
"back-vertical": 446,
|
|
1221
|
-
"passport-vertical": 342
|
|
1222
|
-
};
|
|
1223
|
-
function computeScale(mode, orientation, width, height) {
|
|
1224
|
-
const key = `${mode}-${orientation}`;
|
|
1225
|
-
const cardWidth = CARD_WIDTH_IN_SVG[key];
|
|
1226
|
-
if (cardWidth) return width / cardWidth;
|
|
1227
|
-
const cardHeight = CARD_HEIGHT_IN_SVG[key];
|
|
1228
|
-
if (cardHeight) return height / cardHeight;
|
|
1229
|
-
return 1;
|
|
1230
|
-
}
|
|
1231
|
-
var IdHint = ({ mode, orientation, onAnimationStart, onAnimationEnd }) => {
|
|
1232
|
-
const containerRef = A(null);
|
|
1233
|
-
const hasStartedRef = A(false);
|
|
1234
|
-
const [scale, setScale] = d(1);
|
|
1235
|
-
y(() => {
|
|
1236
|
-
const el = containerRef.current;
|
|
1237
|
-
if (!el) return;
|
|
1238
|
-
const update = () => {
|
|
1239
|
-
setScale(computeScale(mode, orientation, el.clientWidth, el.clientHeight));
|
|
1240
|
-
};
|
|
1241
|
-
update();
|
|
1242
|
-
const observer = new ResizeObserver(update);
|
|
1243
|
-
observer.observe(el);
|
|
1244
|
-
return () => observer.disconnect();
|
|
1245
|
-
}, [mode, orientation]);
|
|
1246
|
-
const getSvgComponent = () => {
|
|
1247
|
-
if (mode === "front") return orientation === "horizontal" ? /* @__PURE__ */ u(FrontHorizontalHintSvg, {}) : /* @__PURE__ */ u(FrontVerticalHintSvg, {});
|
|
1248
|
-
if (mode === "back") return orientation === "horizontal" ? /* @__PURE__ */ u(BackHorizontalHintSvg, {}) : /* @__PURE__ */ u(BackVerticalHintSvg, {});
|
|
1249
|
-
if (mode === "passport") return orientation === "horizontal" ? /* @__PURE__ */ u(PassportHorizontalHintSvg, {}) : /* @__PURE__ */ u(PassportVerticalHintSvg, {});
|
|
1250
|
-
return null;
|
|
1251
|
-
};
|
|
1252
|
-
return /* @__PURE__ */ u("div", {
|
|
1253
|
-
ref: containerRef,
|
|
1254
|
-
class: "IncodeIdHint",
|
|
1255
|
-
"aria-hidden": "true",
|
|
1256
|
-
role: "presentation",
|
|
1257
|
-
children: /* @__PURE__ */ u("div", {
|
|
1258
|
-
class: "IncodeIdHintAnimated",
|
|
1259
|
-
onAnimationStart: (event) => {
|
|
1260
|
-
if (event.target !== event.currentTarget || event.animationName !== "slideUpAndDown" || hasStartedRef.current) return;
|
|
1261
|
-
hasStartedRef.current = true;
|
|
1262
|
-
onAnimationStart?.();
|
|
1263
|
-
},
|
|
1264
|
-
onAnimationEnd: (event) => {
|
|
1265
|
-
if (event.target === event.currentTarget && event.animationName === "slideUpAndDown") onAnimationEnd?.();
|
|
1266
|
-
},
|
|
1267
|
-
children: /* @__PURE__ */ u(P, {
|
|
1268
|
-
fallback: null,
|
|
1269
|
-
children: /* @__PURE__ */ u("div", {
|
|
1270
|
-
class: "IncodeIdHintSvg",
|
|
1271
|
-
style: { transform: `scale(${scale})` },
|
|
1272
|
-
children: getSvgComponent()
|
|
1273
|
-
})
|
|
1274
|
-
})
|
|
1275
|
-
})
|
|
1276
|
-
});
|
|
1277
|
-
};
|
|
1278
|
-
//#endregion
|
|
1279
|
-
//#region src/modules/id/capture/captureLiveFrameContent.tsx
|
|
1280
|
-
var CaptureLiveFrameContent = ({ countdownStart, countdownStepMs, showIdHint, mode, orientation, onIdHintAnimationStart, onIdHintAnimationEnd, onFlashAnimationStart }) => /* @__PURE__ */ u(k, { children: [countdownStart > 0 && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
1281
|
-
class: "IncodeCaptureCounter",
|
|
1282
|
-
"aria-hidden": "true",
|
|
1283
|
-
style: { "--capture-countdown-step": `${countdownStepMs}ms` },
|
|
1284
|
-
children: Array.from({ length: countdownStart }, (_, index) => /* @__PURE__ */ u("span", {
|
|
1285
|
-
class: "IncodeCaptureCounterDigit",
|
|
1286
|
-
style: { "--capture-countdown-index": index },
|
|
1287
|
-
children: countdownStart - index
|
|
1288
|
-
}, index))
|
|
1289
|
-
}), /* @__PURE__ */ u(CaptureResultFlash, {
|
|
1290
|
-
delayMs: countdownStart * countdownStepMs,
|
|
1291
|
-
onAnimationStart: onFlashAnimationStart
|
|
1292
|
-
})] }), showIdHint && /* @__PURE__ */ u(IdHint, {
|
|
1293
|
-
mode,
|
|
1294
|
-
orientation: orientation ?? "horizontal",
|
|
1295
|
-
onAnimationStart: onIdHintAnimationStart,
|
|
1296
|
-
onAnimationEnd: onIdHintAnimationEnd
|
|
1297
|
-
})] });
|
|
1298
|
-
//#endregion
|
|
1299
|
-
//#region src/modules/id/capture/captureResultPreview.tsx
|
|
1300
|
-
var CaptureResultPreview = ({ resultPreview, onFlashAnimationStart, onFlashAnimationEnd }) => {
|
|
1301
|
-
const [hasFlashed, setHasFlashed] = d(false);
|
|
1302
|
-
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
|
|
1303
|
-
src: resultPreview.imageUrl,
|
|
1304
|
-
alt: "",
|
|
1305
|
-
"aria-hidden": "true",
|
|
1306
|
-
class: cn("IncodeCaptureResultImage", resultPreview.blurImage && "IncodeCaptureResultImageBlurred")
|
|
1307
|
-
}), !hasFlashed && /* @__PURE__ */ u(CaptureResultFlash, {
|
|
1308
|
-
onAnimationStart: onFlashAnimationStart,
|
|
1309
|
-
onAnimationEnd: () => {
|
|
1310
|
-
setHasFlashed(true);
|
|
1311
|
-
onFlashAnimationEnd?.();
|
|
1312
|
-
}
|
|
1313
|
-
})] });
|
|
1314
|
-
};
|
|
1315
|
-
//#endregion
|
|
1316
|
-
//#region src/modules/id/capture/captureOverlayHelpers.ts
|
|
1317
|
-
var resolveResultView = (t) => ({
|
|
1318
|
-
frameState: "success",
|
|
1319
|
-
header: {
|
|
1320
|
-
title: t("idv2.capture.resultPreview.title"),
|
|
1321
|
-
subtitle: t("idv2.capture.resultPreview.subtitle")
|
|
1322
|
-
}
|
|
1323
|
-
});
|
|
1324
|
-
/** IDC-08 control/default copy — the title's shared idle vocabulary. */
|
|
1325
|
-
function getCaptureFrameTitle(t, mode) {
|
|
1326
|
-
if (mode === "passport") return t("idv2.capture.fillFramePassport");
|
|
1327
|
-
else if (mode === "back") return t("idv2.capture.fillFrameBack");
|
|
1328
|
-
return t("idv2.capture.fillFrameFront");
|
|
1329
|
-
}
|
|
1330
|
-
/** IDC-08 `remove`/`auto-dismiss` title — states the action instead of "fill the frame". */
|
|
1331
|
-
function getManualCaptureTitle(t, mode) {
|
|
1332
|
-
if (mode === "passport") return t("idv2.capture.manualCapture.capturePassport");
|
|
1333
|
-
else if (mode === "back") return t("idv2.capture.manualCapture.captureBack");
|
|
1334
|
-
return t("idv2.capture.manualCapture.captureFront");
|
|
1335
|
-
}
|
|
1336
|
-
var resolveLiveView = ({ t, mode, detectionStatus, isCapturing, showManualCapture, manualTooltipVariant }) => {
|
|
1337
|
-
if (isCapturing || detectionStatus === "capturing") return {
|
|
1338
|
-
frameState: "capturing",
|
|
1339
|
-
header: {
|
|
1340
|
-
title: t("idv2.capture.takingPhoto"),
|
|
1341
|
-
subtitle: t("idv2.capture.dontMove")
|
|
1342
|
-
}
|
|
1343
|
-
};
|
|
1344
|
-
const isManualCapture = detectionStatus === "manualCapture";
|
|
1345
|
-
const hasDetectionError = detectionStatus === "blur" || detectionStatus === "glare" || detectionStatus === "wrongSide" || detectionStatus === "farAway";
|
|
1346
|
-
if (!(detectionStatus === "detecting" || detectionStatus === "idNotDetected" || isManualCapture)) return {
|
|
1347
|
-
frameState: hasDetectionError ? "error" : "idle",
|
|
1348
|
-
header: null
|
|
1349
|
-
};
|
|
1350
|
-
const isManualTooltipTreatment = showManualCapture && manualTooltipVariant !== MANUAL_TOOLTIP.CONTROL;
|
|
1351
|
-
const title = isManualTooltipTreatment ? getManualCaptureTitle(t, mode) : getCaptureFrameTitle(t, mode);
|
|
1352
|
-
let subtitle = t("idv2.capture.autoCapture");
|
|
1353
|
-
if (isManualTooltipTreatment && manualTooltipVariant === MANUAL_TOOLTIP.REMOVE) subtitle = t("idv2.capture.manualCapture.pressButton");
|
|
1354
|
-
else if (isManualCapture) subtitle = "";
|
|
1355
|
-
return {
|
|
1356
|
-
frameState: "idle",
|
|
1357
|
-
header: {
|
|
1358
|
-
title,
|
|
1359
|
-
subtitle
|
|
1360
|
-
}
|
|
1361
|
-
};
|
|
1362
|
-
};
|
|
1363
|
-
//#endregion
|
|
1364
|
-
//#region src/modules/id/capture/captureFocusContext.tsx
|
|
1365
|
-
var CaptureAutoFocusContext = Q(true);
|
|
1366
|
-
/**
|
|
1367
|
-
* Capture is part of the public extensibility surface, but layered transitions
|
|
1368
|
-
* need to defer its focus without adding transition-only state to the public
|
|
1369
|
-
* Capture props. This private context carries that presentation signal through
|
|
1370
|
-
* Capture to CaptureOverlay while ordinary consumers retain autofocus by
|
|
1371
|
-
* default.
|
|
1372
|
-
*/
|
|
1373
|
-
var CaptureAutoFocusProvider = ({ enabled, children }) => /* @__PURE__ */ u(CaptureAutoFocusContext.Provider, {
|
|
1374
|
-
value: enabled,
|
|
1375
|
-
children
|
|
1376
|
-
});
|
|
1377
|
-
function useCaptureAutoFocus() {
|
|
1378
|
-
return x(CaptureAutoFocusContext);
|
|
1379
|
-
}
|
|
1380
|
-
//#endregion
|
|
1381
|
-
//#region src/modules/id/capture/captureOverlay.tsx
|
|
1382
|
-
var MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATIONS = ["manualCaptureTooltipExit", "manualCaptureTooltipExitAutoDismiss"];
|
|
1383
|
-
function reportAnimationState(mode, state) {
|
|
1384
|
-
const screen = mode === "back" ? "idCapture.backCapture" : "idCapture.frontCapture";
|
|
1385
|
-
stateChanged(eventModuleNames.idCapture, screen, { stateName: `${screen}.${state}` });
|
|
1386
|
-
}
|
|
1387
|
-
var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, countdownStart, countdownStepMs, isCapturing, showManualCapture, onCapture, onOpenHelp, helpButtonRef, captureButtonRef, hideFooterActions, trackAnimationStates = true, resultPreview, manualTooltipUx }, ref) => {
|
|
1388
|
-
const { t } = useTranslation();
|
|
1389
|
-
const autoFocus = useCaptureAutoFocus();
|
|
1390
|
-
usePreloadCaptureAnimations();
|
|
1391
|
-
const helpButton = useCaptureHelpButton({
|
|
1392
|
-
onOpenHelp,
|
|
1393
|
-
ariaLabel: t("idv2.needHelp.open"),
|
|
1394
|
-
buttonRef: helpButtonRef,
|
|
1395
|
-
hidden: hideFooterActions
|
|
1396
|
-
});
|
|
1397
|
-
const closeButton = useCloseButton();
|
|
1398
|
-
const isResultPreview = resultPreview !== void 0;
|
|
1399
|
-
const isTooltipRemoved = manualTooltipUx.variant === MANUAL_TOOLTIP.REMOVE;
|
|
1400
|
-
const hasShownIdHintRef = A(false);
|
|
1401
|
-
const cameraOverlayHeaderTitleRef = A(null);
|
|
1402
|
-
const [showIdHint, setShowIdHint] = d(false);
|
|
1403
|
-
const hintStateModeRef = A();
|
|
1404
|
-
const animationStateEnabledRef = A(false);
|
|
1405
|
-
_(() => {
|
|
1406
|
-
animationStateEnabledRef.current = trackAnimationStates;
|
|
1407
|
-
if (hintStateModeRef.current === mode && trackAnimationStates && !isResultPreview && (detectionStatus === "detecting" || detectionStatus === "idle")) reportAnimationState(mode, "default");
|
|
1408
|
-
if (!trackAnimationStates || hintStateModeRef.current !== mode || detectionStatus !== "idNotDetected" || isResultPreview) hintStateModeRef.current = void 0;
|
|
1409
|
-
}, [
|
|
1410
|
-
trackAnimationStates,
|
|
1411
|
-
mode,
|
|
1412
|
-
detectionStatus,
|
|
1413
|
-
isResultPreview
|
|
1414
|
-
]);
|
|
1415
|
-
_(() => () => {
|
|
1416
|
-
animationStateEnabledRef.current = false;
|
|
1417
|
-
hintStateModeRef.current = void 0;
|
|
1418
|
-
}, []);
|
|
1419
|
-
const trackAnimationState = (state) => {
|
|
1420
|
-
if (!animationStateEnabledRef.current) return;
|
|
1421
|
-
reportAnimationState(mode, state);
|
|
1422
|
-
};
|
|
1423
|
-
const handleIdHintAnimationStart = () => {
|
|
1424
|
-
if (!animationStateEnabledRef.current || detectionStatus !== "idNotDetected" || isResultPreview) return;
|
|
1425
|
-
hintStateModeRef.current = mode;
|
|
1426
|
-
trackAnimationState("hint");
|
|
1427
|
-
};
|
|
1428
|
-
const handleIdHintAnimationEnd = () => {
|
|
1429
|
-
if (hintStateModeRef.current === mode) {
|
|
1430
|
-
hintStateModeRef.current = void 0;
|
|
1431
|
-
trackAnimationState("default");
|
|
1432
|
-
}
|
|
1433
|
-
setShowIdHint(false);
|
|
1434
|
-
};
|
|
1435
|
-
const handleFlashAnimationStart = () => trackAnimationState("flash");
|
|
1436
|
-
const [manualCaptureTooltipDismissed, setManualCaptureTooltipDismissed] = d(isTooltipRemoved);
|
|
1437
|
-
y(() => {
|
|
1438
|
-
if (detectionStatus === "idNotDetected") {
|
|
1439
|
-
if (hasShownIdHintRef.current) return;
|
|
1440
|
-
hasShownIdHintRef.current = true;
|
|
1441
|
-
setShowIdHint(true);
|
|
1442
|
-
return;
|
|
1443
|
-
}
|
|
1444
|
-
if (showIdHint) setShowIdHint(false);
|
|
1445
|
-
}, [detectionStatus, showIdHint]);
|
|
1446
|
-
y(() => {
|
|
1447
|
-
if (!showManualCapture) setManualCaptureTooltipDismissed(isTooltipRemoved);
|
|
1448
|
-
}, [showManualCapture, isTooltipRemoved]);
|
|
1449
|
-
const handleManualCaptureTooltipAnimationEnd = (event) => {
|
|
1450
|
-
if (!MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATIONS.includes(event.animationName)) return;
|
|
1451
|
-
setManualCaptureTooltipDismissed(true);
|
|
1452
|
-
};
|
|
1453
|
-
y(() => {
|
|
1454
|
-
if (!autoFocus) return;
|
|
1455
|
-
if (showManualCapture && captureButtonRef) captureButtonRef.current?.focus();
|
|
1456
|
-
}, [
|
|
1457
|
-
autoFocus,
|
|
1458
|
-
showManualCapture,
|
|
1459
|
-
captureButtonRef
|
|
1460
|
-
]);
|
|
1461
|
-
_(() => {
|
|
1462
|
-
if (!isResultPreview) return;
|
|
1463
|
-
cameraOverlayHeaderTitleRef.current?.focus();
|
|
1464
|
-
}, [isResultPreview]);
|
|
1465
|
-
const { frameState, header } = T(() => isResultPreview ? resolveResultView(t) : resolveLiveView({
|
|
1466
|
-
t,
|
|
1467
|
-
mode,
|
|
1468
|
-
detectionStatus,
|
|
1469
|
-
isCapturing,
|
|
1470
|
-
showManualCapture,
|
|
1471
|
-
manualTooltipVariant: manualTooltipUx.variant
|
|
1472
|
-
}), [
|
|
1473
|
-
isResultPreview,
|
|
1474
|
-
t,
|
|
1475
|
-
mode,
|
|
1476
|
-
detectionStatus,
|
|
1477
|
-
isCapturing,
|
|
1478
|
-
showManualCapture,
|
|
1479
|
-
manualTooltipUx.variant
|
|
1480
|
-
]);
|
|
1481
|
-
const isPassport = mode === "passport";
|
|
1482
|
-
const frameOrientation = orientation !== "vertical" ? "horizontal" : "vertical";
|
|
1483
|
-
const showManualCaptureNode = !isResultPreview && showManualCapture;
|
|
1484
|
-
const showCounter = isCapturing && counterValue > 0;
|
|
1485
|
-
const captureAriaLabel = header?.title ? `${header.title}. ${t("manualCapture.ariaLabel")}` : void 0;
|
|
1486
|
-
const manualCaptureTooltip = /* @__PURE__ */ u("div", {
|
|
1487
|
-
id: "manual-capture-tooltip",
|
|
1488
|
-
class: "IncodeIdManualCaptureTooltip",
|
|
1489
|
-
children: /* @__PURE__ */ u("ol", {
|
|
1490
|
-
class: "IncodeIdManualCaptureTooltipList",
|
|
1491
|
-
children: [/* @__PURE__ */ u("li", { children: t(isPassport ? "idv2.commonIssues.firstStepPassport" : "idv2.commonIssues.firstStep") }), /* @__PURE__ */ u("li", { children: t("idv2.commonIssues.secondStep") })]
|
|
1492
|
-
})
|
|
1493
|
-
});
|
|
1494
|
-
return /* @__PURE__ */ u(CameraOverlay, {
|
|
1495
|
-
className: "IncodeCaptureOverlayId",
|
|
1496
|
-
floatingHelpButton: helpButton.floating,
|
|
1497
|
-
floatingCloseButton: closeButton,
|
|
1498
|
-
children: [
|
|
1499
|
-
/* @__PURE__ */ u("div", {
|
|
1500
|
-
class: "IncodeCaptureTopSection",
|
|
1501
|
-
children: [!isResultPreview && /* @__PURE__ */ u(CaptureNotification, {
|
|
1502
|
-
detectionStatus,
|
|
1503
|
-
mode,
|
|
1504
|
-
isCapturing
|
|
1505
|
-
}), /* @__PURE__ */ u(CameraOverlayHeader, {
|
|
1506
|
-
titleRef: cameraOverlayHeaderTitleRef,
|
|
1507
|
-
title: header?.title ?? "",
|
|
1508
|
-
subtitle: header?.subtitle,
|
|
1509
|
-
visible: header !== null,
|
|
1510
|
-
titleId: "id-capture-heading",
|
|
1511
|
-
className: cn(isResultPreview && "IncodeCaptureResultHeaderReveal"),
|
|
1512
|
-
autoFocusTitle: autoFocus
|
|
1513
|
-
})]
|
|
1514
|
-
}),
|
|
1515
|
-
/* @__PURE__ */ u(CameraFrame, {
|
|
1516
|
-
ref,
|
|
1517
|
-
variant: "locked",
|
|
1518
|
-
orientation: frameOrientation,
|
|
1519
|
-
frameState,
|
|
1520
|
-
className: cn(isPassport && "IncodeCaptureFramePassport"),
|
|
1521
|
-
children: resultPreview ? /* @__PURE__ */ u(CaptureResultPreview, {
|
|
1522
|
-
resultPreview,
|
|
1523
|
-
onFlashAnimationStart: handleFlashAnimationStart
|
|
1524
|
-
}) : /* @__PURE__ */ u(CaptureLiveFrameContent, {
|
|
1525
|
-
countdownStart,
|
|
1526
|
-
countdownStepMs,
|
|
1527
|
-
showIdHint,
|
|
1528
|
-
mode,
|
|
1529
|
-
orientation,
|
|
1530
|
-
onIdHintAnimationStart: handleIdHintAnimationStart,
|
|
1531
|
-
onIdHintAnimationEnd: handleIdHintAnimationEnd,
|
|
1532
|
-
onFlashAnimationStart: handleFlashAnimationStart
|
|
1533
|
-
})
|
|
1534
|
-
}),
|
|
1535
|
-
/* @__PURE__ */ u("div", {
|
|
1536
|
-
class: "IncodeSrOnly",
|
|
1537
|
-
"aria-live": "polite",
|
|
1538
|
-
"aria-atomic": "true",
|
|
1539
|
-
children: showCounter ? counterValue : ""
|
|
1540
|
-
}),
|
|
1541
|
-
/* @__PURE__ */ u(CaptureFooter, {
|
|
1542
|
-
onOpenHelp,
|
|
1543
|
-
onCapture,
|
|
1544
|
-
isManualCapture: showManualCapture,
|
|
1545
|
-
captureAriaLabel,
|
|
1546
|
-
helpButtonRef,
|
|
1547
|
-
helpAriaLabel: helpButton.footer?.ariaLabel,
|
|
1548
|
-
showHelpButton: Boolean(helpButton.footer),
|
|
1549
|
-
captureButtonRef,
|
|
1550
|
-
captureAriaDescribedBy: showManualCaptureNode ? "manual-capture-tooltip" : void 0,
|
|
1551
|
-
hideActions: hideFooterActions,
|
|
1552
|
-
children: showManualCaptureNode ? /* @__PURE__ */ u("div", {
|
|
1553
|
-
class: cn("IncodeIdManualCaptureTooltipContainer", manualTooltipUx.variant === MANUAL_TOOLTIP.AUTO_DISMISS && "IncodeIdManualCaptureTooltipContainerAutoDismiss", manualCaptureTooltipDismissed && "IncodeIdManualCaptureTooltipContainerSrOnly"),
|
|
1554
|
-
style: { "--manual-capture-tooltip-dismiss-delay": `${manualTooltipUx.dismissDelayMs}ms` },
|
|
1555
|
-
onAnimationEnd: handleManualCaptureTooltipAnimationEnd,
|
|
1556
|
-
children: manualCaptureTooltip
|
|
1557
|
-
}) : null
|
|
1558
|
-
})
|
|
1559
|
-
]
|
|
1560
|
-
});
|
|
1561
|
-
});
|
|
1562
|
-
//#endregion
|
|
1563
|
-
//#region src/modules/id/capture/capture.tsx
|
|
1564
|
-
var Capture = ({ manager, state }) => {
|
|
1565
|
-
const { enabled: resultPreviewEnabled, phase: resultPreviewPhase, isResultPreview, resultPreviewImageUrl, onCrossfadeEnd } = useCaptureResultPreview(state);
|
|
1566
|
-
const manualTooltipUx = useManualTooltipExperiment(manager, state);
|
|
1567
|
-
const stageView = getCaptureStageView(state, resultPreviewPhase);
|
|
1568
|
-
const isCrossfadeStage = stageView === "crossfade";
|
|
1569
|
-
const isLiveStage = stageView === "live";
|
|
1570
|
-
const isCapturing = !isResultPreview && (state.captureStatus === "capturing" || state.detectionStatus === "capturing");
|
|
1571
|
-
const countdownStartRef = A(0);
|
|
1572
|
-
if (!isCapturing) countdownStartRef.current = 0;
|
|
1573
|
-
else if (countdownStartRef.current === 0) countdownStartRef.current = state.counterValue;
|
|
1574
|
-
const countdownStart = countdownStartRef.current;
|
|
1575
|
-
const countdownEndMs = countdownStart * state.countdownStepMs;
|
|
1576
|
-
if (state.captureStatus === "holdOn") return /* @__PURE__ */ u(TransitionSpinner, { subtitleKey: "idv2.capture.holdOn.subtitle" });
|
|
1577
|
-
if (state.captureStatus === "success" && (state.previewImageUrl || state.barcodeFastPathCaptured)) return /* @__PURE__ */ u(IdSuccess, {
|
|
1578
|
-
manager,
|
|
1579
|
-
state,
|
|
1580
|
-
blurImage: state.ageAssurance
|
|
1581
|
-
});
|
|
1582
|
-
if (state.captureStatus === "uploadError" && state.previewImageUrl) return /* @__PURE__ */ u(IdError, {
|
|
1583
|
-
manager,
|
|
1584
|
-
state,
|
|
1585
|
-
blurImage: state.ageAssurance
|
|
1586
|
-
});
|
|
1587
|
-
const isAnalyzingPending = isLiveStage && countdownStart > 0;
|
|
1588
|
-
const isAnalyzingHidden = isCrossfadeStage || isAnalyzingPending;
|
|
1589
|
-
let idAnalyzingSlot = null;
|
|
1590
|
-
if (!isLiveStage || isAnalyzingPending) idAnalyzingSlot = /* @__PURE__ */ u("div", {
|
|
1591
|
-
class: cn("IncodeIdCaptureStageAnalyzing", isCrossfadeStage && "IncodeIdCaptureStageResultEntering", isAnalyzingPending && "IncodeIdCaptureStageAnalyzingPending"),
|
|
1592
|
-
style: isAnalyzingPending ? { "--capture-countdown-end": `${countdownEndMs}ms` } : void 0,
|
|
1593
|
-
"aria-hidden": isAnalyzingHidden || void 0,
|
|
1594
|
-
inert: isAnalyzingHidden || void 0,
|
|
1595
|
-
children: /* @__PURE__ */ u(IdAnalyzing, {
|
|
1596
|
-
imageUrl: state.previewImageUrl,
|
|
1597
|
-
progress: state.uploadProgress ?? 0,
|
|
1598
|
-
orientation: state.orientation,
|
|
1599
|
-
mode: getCaptureMode(state),
|
|
1600
|
-
blurImage: state.ageAssurance,
|
|
1601
|
-
autoFocusTitle: !isAnalyzingHidden,
|
|
1602
|
-
simulatedProgressDelayMs: countdownEndMs,
|
|
1603
|
-
resultPreviewEnabled
|
|
1604
|
-
})
|
|
1605
|
-
}, "analyzing");
|
|
1606
|
-
let captureViewSlot = null;
|
|
1607
|
-
if (stageView !== "analyzing") captureViewSlot = /* @__PURE__ */ u("div", {
|
|
1608
|
-
class: cn("IncodeIdCaptureStageLive", isCrossfadeStage && "IncodeIdCaptureStageResultExiting"),
|
|
1609
|
-
onAnimationEnd: onCrossfadeEnd,
|
|
1610
|
-
children: /* @__PURE__ */ u(CaptureView, {
|
|
1611
|
-
manager,
|
|
1612
|
-
state,
|
|
1613
|
-
isCapturing,
|
|
1614
|
-
countdownStart,
|
|
1615
|
-
isResultPreview,
|
|
1616
|
-
resultPreviewImageUrl,
|
|
1617
|
-
hideFooterActions: !isLiveStage || state.captureStatus === "optimizing",
|
|
1618
|
-
manualTooltipUx
|
|
1619
|
-
})
|
|
1620
|
-
}, "live");
|
|
1621
|
-
return /* @__PURE__ */ u("div", {
|
|
1622
|
-
class: "IncodeIdCaptureStage",
|
|
1623
|
-
children: [idAnalyzingSlot, captureViewSlot]
|
|
1624
|
-
});
|
|
1625
|
-
};
|
|
1626
|
-
var CaptureView = ({ manager, state, isCapturing, countdownStart, isResultPreview, resultPreviewImageUrl, hideFooterActions, manualTooltipUx }) => {
|
|
1627
|
-
const frameRef = A(null);
|
|
1628
|
-
const helpButtonRef = A(null);
|
|
1629
|
-
const captureButtonRef = A(null);
|
|
1630
|
-
const portalRef = A(null);
|
|
1631
|
-
const [isHelpOpen, setIsHelpOpen] = d(false);
|
|
1632
|
-
const reportFrame = q(() => {
|
|
1633
|
-
const frameElement = frameRef.current;
|
|
1634
|
-
if (!frameElement) return;
|
|
1635
|
-
const rect = frameElement.getBoundingClientRect();
|
|
1636
|
-
manager.updateDetectionArea({
|
|
1637
|
-
x: rect.left,
|
|
1638
|
-
y: rect.top,
|
|
1639
|
-
width: rect.width,
|
|
1640
|
-
height: rect.height
|
|
1641
|
-
});
|
|
1642
|
-
}, [manager]);
|
|
1643
|
-
useEventListener("resize", reportFrame);
|
|
1644
|
-
useResizeObserver(frameRef, reportFrame);
|
|
1645
|
-
const showManualCapture = isManualCaptureShown(state);
|
|
1646
|
-
const resultPreview = isResultPreview && resultPreviewImageUrl ? {
|
|
1647
|
-
imageUrl: resultPreviewImageUrl,
|
|
1648
|
-
blurImage: state.ageAssurance
|
|
1649
|
-
} : void 0;
|
|
1650
|
-
const handleOpenHelp = () => {
|
|
1651
|
-
if (manager.openHelp()) setIsHelpOpen(true);
|
|
1652
|
-
};
|
|
1653
|
-
const handleCloseHelp = () => {
|
|
1654
|
-
manager.closeHelp();
|
|
1655
|
-
setIsHelpOpen(false);
|
|
1656
|
-
requestAnimationFrame(() => {
|
|
1657
|
-
if (captureButtonRef.current) captureButtonRef.current.focus();
|
|
1658
|
-
else helpButtonRef.current?.focus();
|
|
1659
|
-
});
|
|
1660
|
-
};
|
|
1661
|
-
const handleTakeManually = () => {
|
|
1662
|
-
manager.switchToManualCapture();
|
|
1663
|
-
};
|
|
1664
|
-
const handleTakeAutomatically = () => {
|
|
1665
|
-
manager.switchToAutoCapture();
|
|
1666
|
-
};
|
|
1667
|
-
const handleCapture = () => {
|
|
1668
|
-
manager.capture();
|
|
1669
|
-
};
|
|
1670
|
-
const mirrored = !state.usingBackCamera;
|
|
1671
|
-
return /* @__PURE__ */ u(Page, {
|
|
1672
|
-
hideHeader: true,
|
|
1673
|
-
hideFooterBranding: true,
|
|
1674
|
-
className: "IncodeIdCapturePage",
|
|
1675
|
-
children: [
|
|
1676
|
-
/* @__PURE__ */ u(CameraView, {
|
|
1677
|
-
stream: state.stream,
|
|
1678
|
-
onPlaying: reportFrame,
|
|
1679
|
-
mirrored,
|
|
1680
|
-
"aria-hidden": isHelpOpen || void 0,
|
|
1681
|
-
children: /* @__PURE__ */ u(CaptureOverlay, {
|
|
1682
|
-
ref: frameRef,
|
|
1683
|
-
mode: state.currentMode,
|
|
1684
|
-
orientation: state.orientation,
|
|
1685
|
-
detectionStatus: state.detectionStatus,
|
|
1686
|
-
counterValue: state.counterValue,
|
|
1687
|
-
countdownStart,
|
|
1688
|
-
countdownStepMs: state.countdownStepMs,
|
|
1689
|
-
isCapturing,
|
|
1690
|
-
showManualCapture,
|
|
1691
|
-
onCapture: handleCapture,
|
|
1692
|
-
onOpenHelp: handleOpenHelp,
|
|
1693
|
-
helpButtonRef,
|
|
1694
|
-
captureButtonRef,
|
|
1695
|
-
resultPreview,
|
|
1696
|
-
hideFooterActions,
|
|
1697
|
-
manualTooltipUx,
|
|
1698
|
-
trackAnimationStates: !isHelpOpen && (state.captureStatus === "detecting" || state.captureStatus === "optimizing")
|
|
1699
|
-
})
|
|
1700
|
-
}),
|
|
1701
|
-
/* @__PURE__ */ u("div", { ref: portalRef }),
|
|
1702
|
-
/* @__PURE__ */ u(CommonIssues, {
|
|
1703
|
-
open: isHelpOpen,
|
|
1704
|
-
onClose: handleCloseHelp,
|
|
1705
|
-
onTakeManually: handleTakeManually,
|
|
1706
|
-
onTakeAutomatically: state.detectionStatus === "manualCapture" ? handleTakeAutomatically : void 0,
|
|
1707
|
-
portalContainer: portalRef.current
|
|
1708
|
-
})
|
|
1709
|
-
]
|
|
1710
|
-
});
|
|
1711
|
-
};
|
|
1712
|
-
//#endregion
|
|
1713
|
-
//#region src/modules/id/tutorialHelpers.ts
|
|
1714
|
-
/**
|
|
1715
|
-
* Resolves the tutorial's animation and copy for one document/side pairing.
|
|
1716
|
-
*
|
|
1717
|
-
* The three shapes are mutually exclusive, so each returns whole — passport
|
|
1718
|
-
* wins over side, matching the order the screen's copy was authored in.
|
|
1719
|
-
*/
|
|
1720
|
-
function getTutorialContent(t, isPassport, isBack, disclaimerText) {
|
|
1721
|
-
let adjustedDisclaimerText;
|
|
1722
|
-
if (isBack) adjustedDisclaimerText = t("idv2.backTutorial.disclaimer");
|
|
1723
|
-
else adjustedDisclaimerText = t("idv2.tutorial.v2.autocapture");
|
|
1724
|
-
if (disclaimerText) adjustedDisclaimerText = disclaimerText;
|
|
1725
|
-
if (isPassport) return {
|
|
1726
|
-
animationKey: "id.tutorial.passport",
|
|
1727
|
-
title: t("idv2.capture.passport.title"),
|
|
1728
|
-
subtitle: t("idv2.capture.passport.subtitle"),
|
|
1729
|
-
disclaimerText: adjustedDisclaimerText
|
|
1730
|
-
};
|
|
1731
|
-
if (isBack) return {
|
|
1732
|
-
animationKey: "id.tutorial.back",
|
|
1733
|
-
title: t("idv2.backTutorial.title"),
|
|
1734
|
-
subtitle: t("idv2.backTutorial.subtitle"),
|
|
1735
|
-
disclaimerText: adjustedDisclaimerText
|
|
1736
|
-
};
|
|
1737
|
-
return {
|
|
1738
|
-
animationKey: "id.tutorial.front",
|
|
1739
|
-
title: t("idv2.tutorial.title"),
|
|
1740
|
-
subtitle: t("idv2.tutorial.subtitle"),
|
|
1741
|
-
disclaimerText: adjustedDisclaimerText
|
|
1742
|
-
};
|
|
1743
|
-
}
|
|
1744
|
-
//#endregion
|
|
1745
|
-
//#region src/modules/id/tutorial.tsx
|
|
1746
|
-
var Tutorial = ({ manager, documentType, mode, isLoading: isLoadingProp, actionsSlot, onContinue, disclaimerText, shouldScaleAnimationContainer = true }) => {
|
|
1747
|
-
const { t } = useTranslation();
|
|
1748
|
-
const [internalIsLoading, setInternalIsLoading] = d(false);
|
|
1749
|
-
const isLoading = isLoadingProp ?? internalIsLoading;
|
|
1750
|
-
const isPassport = documentType === "passport";
|
|
1751
|
-
const tutorialContent = getTutorialContent(t, isPassport, mode === "back", disclaimerText);
|
|
1752
|
-
const { data: animationData, isOverride } = useAnimationData(tutorialContent.animationKey);
|
|
1753
|
-
const handleContinue = async () => {
|
|
1754
|
-
if (isLoadingProp === void 0) setInternalIsLoading(true);
|
|
1755
|
-
if (onContinue) {
|
|
1756
|
-
onContinue();
|
|
1757
|
-
return;
|
|
1758
|
-
}
|
|
1759
|
-
await manager.nextStep();
|
|
1760
|
-
};
|
|
1761
|
-
return /* @__PURE__ */ u(BaseTutorial, {
|
|
1762
|
-
animationData,
|
|
1763
|
-
recolor: !isOverride,
|
|
1764
|
-
title: tutorialContent.title,
|
|
1765
|
-
subtitle: tutorialContent.subtitle,
|
|
1766
|
-
onContinue: handleContinue,
|
|
1767
|
-
buttonText: t("idv2.tutorial.startScan"),
|
|
1768
|
-
disclaimerText: tutorialContent.disclaimerText,
|
|
1769
|
-
isLoading,
|
|
1770
|
-
actionsSlot,
|
|
1771
|
-
className: cn("IncodeIdTutorial", isPassport ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"),
|
|
1772
|
-
shouldScaleAnimationContainer
|
|
1773
|
-
});
|
|
1774
|
-
};
|
|
1775
|
-
//#endregion
|
|
1776
|
-
//#region src/modules/id/assets/idCardIcon.tsx
|
|
1777
|
-
var IdCardIcon = () => {
|
|
1778
|
-
return /* @__PURE__ */ u("svg", {
|
|
1779
|
-
width: "119",
|
|
1780
|
-
height: "86",
|
|
1781
|
-
viewBox: "0 0 119 86",
|
|
1782
|
-
fill: "none",
|
|
1783
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1784
|
-
class: "IncodeIdCardIcon",
|
|
1785
|
-
"aria-hidden": "true",
|
|
1786
|
-
children: [
|
|
1787
|
-
/* @__PURE__ */ u("title", { children: "ID Card" }),
|
|
1788
|
-
/* @__PURE__ */ u("rect", {
|
|
1789
|
-
x: "21.9619",
|
|
1790
|
-
y: "21.5",
|
|
1791
|
-
width: "75",
|
|
1792
|
-
height: "43",
|
|
1793
|
-
rx: "2",
|
|
1794
|
-
fill: "white"
|
|
1795
|
-
}),
|
|
1796
|
-
/* @__PURE__ */ u("rect", {
|
|
1797
|
-
x: "27.9619",
|
|
1798
|
-
y: "28.5",
|
|
1799
|
-
width: "75",
|
|
1800
|
-
height: "43",
|
|
1801
|
-
rx: "5",
|
|
1802
|
-
fill: "#C9C9C9",
|
|
1803
|
-
fillOpacity: "0.15"
|
|
1804
|
-
}),
|
|
1805
|
-
/* @__PURE__ */ u("path", {
|
|
1806
|
-
d: "M20.462 23a3 3 0 0 1 3-3h72a3 3 0 0 1 3 3v40a3 3 0 0 1-3 3h-72a3 3 0 0 1-3-3z",
|
|
1807
|
-
fill: "#C9C9C9",
|
|
1808
|
-
fillOpacity: "0.8"
|
|
1809
|
-
}),
|
|
1810
|
-
/* @__PURE__ */ u("path", {
|
|
1811
|
-
d: "M21.896 23.43a2 2 0 0 1 2-2h70.75a2 2 0 0 1 2 2v38.856a2 2 0 0 1-2 2h-70.75a2 2 0 0 1-2-2z",
|
|
1812
|
-
fill: "white"
|
|
1813
|
-
}),
|
|
1814
|
-
/* @__PURE__ */ u("path", {
|
|
1815
|
-
fillRule: "evenodd",
|
|
1816
|
-
clipRule: "evenodd",
|
|
1817
|
-
d: "M25.882 32.392c0-.55.447-.997.997-.997h64.783a.997.997 0 1 1 0 1.994H26.879a.997.997 0 0 1-.997-.997Z",
|
|
1818
|
-
fill: "#C9C9C9",
|
|
1819
|
-
fillOpacity: "0.5"
|
|
1820
|
-
}),
|
|
1821
|
-
/* @__PURE__ */ u("path", {
|
|
1822
|
-
fillRule: "evenodd",
|
|
1823
|
-
clipRule: "evenodd",
|
|
1824
|
-
d: "M67.742 37.376h-17.94v2.99h17.94zm0 5.98h-17.94v2.99h17.94zm-17.94 5.98h23.92v2.99h-23.92zm7.973 5.98h-7.973v2.99h7.973z",
|
|
1825
|
-
fill: "#C9C9C9",
|
|
1826
|
-
fillOpacity: "0.5"
|
|
1827
|
-
}),
|
|
1828
|
-
/* @__PURE__ */ u("rect", {
|
|
1829
|
-
x: "25.8818",
|
|
1830
|
-
y: "24.4189",
|
|
1831
|
-
width: "30.8967",
|
|
1832
|
-
height: "3.98667",
|
|
1833
|
-
rx: "1",
|
|
1834
|
-
fill: "#C9C9C9",
|
|
1835
|
-
fillOpacity: "0.5"
|
|
1836
|
-
}),
|
|
1837
|
-
/* @__PURE__ */ u("rect", {
|
|
1838
|
-
x: "86.2949",
|
|
1839
|
-
y: "24.4907",
|
|
1840
|
-
width: "5.98",
|
|
1841
|
-
height: "3.93138",
|
|
1842
|
-
fill: "#EAF0F6"
|
|
1843
|
-
}),
|
|
1844
|
-
/* @__PURE__ */ u("rect", {
|
|
1845
|
-
x: "25.9619",
|
|
1846
|
-
y: "35.5",
|
|
1847
|
-
width: "21",
|
|
1848
|
-
height: "24",
|
|
1849
|
-
rx: "2",
|
|
1850
|
-
class: "IncodeIdCardIconFill"
|
|
1851
|
-
}),
|
|
1852
|
-
/* @__PURE__ */ u("path", {
|
|
1853
|
-
d: "M33.13 52.42c-.01.776-1.359 1.025-2.265 1.9 1.577 1.135 3.855 1.9 5.432 1.9 1.834 0 3.955-.765 5.532-1.9-.907-.875-2.337-1.122-2.357-1.9 0-.296.001-3.173.003-3.468 0-4.973-6.535-7.932-6.354.08q.007 1.695.009 3.387Z",
|
|
1854
|
-
fill: "url(#paint0_linear_id)"
|
|
1855
|
-
}),
|
|
1856
|
-
/* @__PURE__ */ u("path", {
|
|
1857
|
-
fillRule: "evenodd",
|
|
1858
|
-
clipRule: "evenodd",
|
|
1859
|
-
d: "M46.888 58.041a2 2 0 0 1-1.926 1.459h-17a2 2 0 0 1-2-2v-1.52c1.762-1.447 6.207-2.658 6.207-2.658 0 1.039 2.58 2.665 4.14 2.691 2.174 0 4.14-1.651 4.14-2.69 0 0 4.916 1.589 5.865 3.303.212.383.404.878.574 1.415Z",
|
|
1860
|
-
fill: "#CECECE"
|
|
1861
|
-
}),
|
|
1862
|
-
/* @__PURE__ */ u("path", {
|
|
1863
|
-
d: "M41.92 45.294a.87.87 0 0 0-.616-1.069l-.091-.024a.87.87 0 0 0-1.037.521l-.697 1.76a.872.872 0 0 0 .688 1.185l.311.044a.87.87 0 0 0 .966-.637z",
|
|
1864
|
-
fill: "url(#paint1_linear_id)"
|
|
1865
|
-
}),
|
|
1866
|
-
/* @__PURE__ */ u("path", {
|
|
1867
|
-
d: "M31.003 45.294a.872.872 0 1 1 1.685-.451l.451 1.684a.872.872 0 1 1-1.685.452z",
|
|
1868
|
-
fill: "url(#paint2_linear_id)"
|
|
1869
|
-
}),
|
|
1870
|
-
/* @__PURE__ */ u("path", {
|
|
1871
|
-
d: "M41.258 45.085c0 3.82-2.694 6.915-4.796 6.915-2.3 0-4.797-3.096-4.797-6.915 0-3.402.265-7.038 4.797-7.038 4.531 0 4.796 3.557 4.796 7.038Z",
|
|
1872
|
-
fill: "url(#paint3_linear_id)"
|
|
1873
|
-
}),
|
|
1874
|
-
/* @__PURE__ */ u("defs", { children: [
|
|
1875
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
1876
|
-
id: "paint0_linear_id",
|
|
1877
|
-
x1: "35.8774",
|
|
1878
|
-
y1: "49.2574",
|
|
1879
|
-
x2: "35.8774",
|
|
1880
|
-
y2: "53.7757",
|
|
1881
|
-
gradientUnits: "userSpaceOnUse",
|
|
1882
|
-
children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
1883
|
-
offset: "1",
|
|
1884
|
-
stopColor: "white"
|
|
1885
|
-
})]
|
|
1886
|
-
}),
|
|
1887
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
1888
|
-
id: "paint1_linear_id",
|
|
1889
|
-
x1: "39.9447",
|
|
1890
|
-
y1: "46.8213",
|
|
1891
|
-
x2: "41.2507",
|
|
1892
|
-
y2: "46.8737",
|
|
1893
|
-
gradientUnits: "userSpaceOnUse",
|
|
1894
|
-
children: [/* @__PURE__ */ u("stop", {
|
|
1895
|
-
offset: "0.0416667",
|
|
1896
|
-
stopColor: "#B5B5B5"
|
|
1897
|
-
}), /* @__PURE__ */ u("stop", {
|
|
1898
|
-
offset: "1",
|
|
1899
|
-
stopColor: "white"
|
|
1900
|
-
})]
|
|
1901
|
-
}),
|
|
1902
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
1903
|
-
id: "paint2_linear_id",
|
|
1904
|
-
x1: "32.0377",
|
|
1905
|
-
y1: "46.8216",
|
|
1906
|
-
x2: "30.7317",
|
|
1907
|
-
y2: "46.874",
|
|
1908
|
-
gradientUnits: "userSpaceOnUse",
|
|
1909
|
-
children: [/* @__PURE__ */ u("stop", {
|
|
1910
|
-
offset: "0.0416667",
|
|
1911
|
-
stopColor: "#B5B5B5"
|
|
1912
|
-
}), /* @__PURE__ */ u("stop", {
|
|
1913
|
-
offset: "1",
|
|
1914
|
-
stopColor: "white"
|
|
1915
|
-
})]
|
|
1916
|
-
}),
|
|
1917
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
1918
|
-
id: "paint3_linear_id",
|
|
1919
|
-
x1: "31.7839",
|
|
1920
|
-
y1: "45.028",
|
|
1921
|
-
x2: "38.5592",
|
|
1922
|
-
y2: "45.0529",
|
|
1923
|
-
gradientUnits: "userSpaceOnUse",
|
|
1924
|
-
children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
|
|
1925
|
-
offset: "1",
|
|
1926
|
-
stopColor: "white"
|
|
1927
|
-
})]
|
|
1928
|
-
})
|
|
1929
|
-
] })
|
|
1930
|
-
]
|
|
1931
|
-
});
|
|
1932
|
-
};
|
|
1933
|
-
//#endregion
|
|
1934
|
-
//#region src/modules/id/assets/passportIcon.tsx
|
|
1935
|
-
var PassportIcon = () => {
|
|
1936
|
-
return /* @__PURE__ */ u("svg", {
|
|
1937
|
-
width: "118",
|
|
1938
|
-
height: "86",
|
|
1939
|
-
viewBox: "0 0 118 86",
|
|
1940
|
-
fill: "none",
|
|
1941
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1942
|
-
class: "IncodePassportIcon",
|
|
1943
|
-
"aria-hidden": "true",
|
|
1944
|
-
children: [
|
|
1945
|
-
/* @__PURE__ */ u("title", { children: "Passport" }),
|
|
1946
|
-
/* @__PURE__ */ u("g", {
|
|
1947
|
-
"clip-path": "url(#clip0_25823_31181)",
|
|
1948
|
-
children: [
|
|
1949
|
-
/* @__PURE__ */ u("rect", {
|
|
1950
|
-
x: "29.5381",
|
|
1951
|
-
y: "11",
|
|
1952
|
-
width: "67",
|
|
1953
|
-
height: "75",
|
|
1954
|
-
rx: "5",
|
|
1955
|
-
fill: "#C9C9C9",
|
|
1956
|
-
"fill-opacity": "0.15"
|
|
1957
|
-
}),
|
|
1958
|
-
/* @__PURE__ */ u("rect", {
|
|
1959
|
-
x: "26.8977",
|
|
1960
|
-
y: "5.66234",
|
|
1961
|
-
width: "64.3575",
|
|
1962
|
-
height: "74.3225",
|
|
1963
|
-
rx: "4.21024",
|
|
1964
|
-
stroke: "#C9C9C9",
|
|
1965
|
-
"stroke-opacity": "0.8",
|
|
1966
|
-
"stroke-width": "1.24563"
|
|
1967
|
-
}),
|
|
1968
|
-
/* @__PURE__ */ u("path", {
|
|
1969
|
-
d: "M27.434 42.295h63.197V76.34a3 3 0 0 1-3 3H30.434a3 3 0 0 1-3-3z",
|
|
1970
|
-
fill: "white"
|
|
1971
|
-
}),
|
|
1972
|
-
/* @__PURE__ */ u("path", {
|
|
1973
|
-
d: "M55.603 66.41c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296h-8.408a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296zm17-4c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296H47.195a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296zm-7-4c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296H47.195a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296zm0-4c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296H47.195a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296z",
|
|
1974
|
-
fill: "#E9E9EB"
|
|
1975
|
-
}),
|
|
1976
|
-
/* @__PURE__ */ u("rect", {
|
|
1977
|
-
x: "80.4148",
|
|
1978
|
-
y: "66.9609",
|
|
1979
|
-
width: "6.44508",
|
|
1980
|
-
height: "1.95402",
|
|
1981
|
-
rx: "0.295996",
|
|
1982
|
-
fill: "#E9E9EB"
|
|
1983
|
-
}),
|
|
1984
|
-
/* @__PURE__ */ u("rect", {
|
|
1985
|
-
x: "80.4148",
|
|
1986
|
-
y: "62.7734",
|
|
1987
|
-
width: "6.44508",
|
|
1988
|
-
height: "1.95402",
|
|
1989
|
-
rx: "0.295996",
|
|
1990
|
-
fill: "#E9E9EB"
|
|
1991
|
-
}),
|
|
1992
|
-
/* @__PURE__ */ u("rect", {
|
|
1993
|
-
x: "80.4148",
|
|
1994
|
-
y: "58.5859",
|
|
1995
|
-
width: "6.44508",
|
|
1996
|
-
height: "1.95402",
|
|
1997
|
-
rx: "0.295996",
|
|
1998
|
-
fill: "#E9E9EB"
|
|
1999
|
-
}),
|
|
2000
|
-
/* @__PURE__ */ u("path", {
|
|
2001
|
-
d: "M27.434 71.715h63.197v4.627a3 3 0 0 1-3 3H30.434a3 3 0 0 1-3-3z",
|
|
2002
|
-
fill: "#F4F4F5"
|
|
2003
|
-
}),
|
|
2004
|
-
/* @__PURE__ */ u("rect", {
|
|
2005
|
-
x: "31.8992",
|
|
2006
|
-
y: "46.4102",
|
|
2007
|
-
width: "26",
|
|
2008
|
-
height: "3",
|
|
2009
|
-
rx: "0.295996",
|
|
2010
|
-
fill: "#C9C9C9",
|
|
2011
|
-
"fill-opacity": "0.5"
|
|
2012
|
-
}),
|
|
2013
|
-
/* @__PURE__ */ u("rect", {
|
|
2014
|
-
x: "81.8992",
|
|
2015
|
-
y: "46.4102",
|
|
2016
|
-
width: "5",
|
|
2017
|
-
height: "4",
|
|
2018
|
-
rx: "0.295996",
|
|
2019
|
-
fill: "#EAF0F6"
|
|
2020
|
-
}),
|
|
2021
|
-
/* @__PURE__ */ u("rect", {
|
|
2022
|
-
x: "30.8992",
|
|
2023
|
-
y: "73.4102",
|
|
2024
|
-
width: "56",
|
|
2025
|
-
height: "2",
|
|
2026
|
-
rx: "0.295996",
|
|
2027
|
-
fill: "#C9C9C9",
|
|
2028
|
-
"fill-opacity": "0.5"
|
|
2029
|
-
}),
|
|
2030
|
-
/* @__PURE__ */ u("rect", {
|
|
2031
|
-
x: "30.8992",
|
|
2032
|
-
y: "76.4102",
|
|
2033
|
-
width: "56",
|
|
2034
|
-
height: "2",
|
|
2035
|
-
rx: "0.295996",
|
|
2036
|
-
fill: "#C9C9C9",
|
|
2037
|
-
"fill-opacity": "0.5"
|
|
2038
|
-
}),
|
|
2039
|
-
/* @__PURE__ */ u("g", {
|
|
2040
|
-
"clip-path": "url(#clip1_25823_31181)",
|
|
2041
|
-
children: /* @__PURE__ */ u("g", {
|
|
2042
|
-
"clip-path": "url(#clip2_25823_31181)",
|
|
2043
|
-
children: [
|
|
2044
|
-
/* @__PURE__ */ u("rect", {
|
|
2045
|
-
x: "31.2175",
|
|
2046
|
-
y: "52.8086",
|
|
2047
|
-
width: "14.1292",
|
|
2048
|
-
height: "16.9552",
|
|
2049
|
-
class: "IncodePassportIconFill"
|
|
2050
|
-
}),
|
|
2051
|
-
/* @__PURE__ */ u("path", {
|
|
2052
|
-
d: "M45.602 67.29c.649 1.16 1.023 3.84 1.023 3.84H30.26s.373-2.68 1.022-3.84c.65-1.162 4.604-2.239 4.604-2.239.35.633 1.379 1.21 2.432 1.236 1.142.028 2.313-.55 2.677-1.236 0 0 3.957 1.077 4.606 2.238Z",
|
|
2053
|
-
fill: "white"
|
|
2054
|
-
}),
|
|
2055
|
-
/* @__PURE__ */ u("path", {
|
|
2056
|
-
d: "M36.52 64.13v.026q-.01.82-1.382 1.235c1.102.8 2.204 1.44 3.306 1.44s2.204-.64 3.306-1.44q-1.362-.414-1.382-1.237l.001-2.444c.066.01.06.004 0-.013.002-.686.005.212.01-.725.003-.937-3.922-1.775-3.864.797 0 .263.002 2.064.006 2.361Z",
|
|
2057
|
-
fill: "url(#paint0_linear_25823_31181)"
|
|
2058
|
-
}),
|
|
2059
|
-
/* @__PURE__ */ u("path", {
|
|
2060
|
-
d: "M36.469 62.872c1.613-.168 3.132.53 3.132.53s-.301 1.582-3.133 1.123z",
|
|
2061
|
-
fill: "#CDCDCD"
|
|
2062
|
-
}),
|
|
2063
|
-
/* @__PURE__ */ u("path", {
|
|
2064
|
-
d: "M45.602 67.29c.649 1.16 1.023 3.84 1.023 3.84H30.26s.373-2.68 1.022-3.84c.65-1.162 4.604-2.239 4.604-2.239 0 .704 1.365 1.72 2.432 1.737 1.487 0 2.677-1.033 2.677-1.737 0 0 3.957 1.077 4.606 2.238Z",
|
|
2065
|
-
fill: "#CECECE"
|
|
2066
|
-
}),
|
|
2067
|
-
/* @__PURE__ */ u("path", {
|
|
2068
|
-
d: "M35.146 59.56c.215-.358.483-.111.59.057l.15 1.596c-.005.138-.088.227-.305.254-.271.034-.45-.704-.513-.98-.062-.276-.19-.478.078-.926Z",
|
|
2069
|
-
fill: "url(#paint1_linear_25823_31181)"
|
|
2070
|
-
}),
|
|
2071
|
-
/* @__PURE__ */ u("path", {
|
|
2072
|
-
d: "M41.639 59.655c-.212-.361-.483-.117-.592.05l-.165 1.594c.004.139.087.228.303.257.271.037.457-.7.522-.975.066-.275.196-.476-.069-.927Z",
|
|
2073
|
-
fill: "url(#paint2_linear_25823_31181)"
|
|
2074
|
-
}),
|
|
2075
|
-
/* @__PURE__ */ u("path", {
|
|
2076
|
-
d: "M41.425 59.934c0 2.307-1.67 4.178-2.974 4.178-1.426 0-2.974-1.87-2.974-4.178 0-2.056.164-4.252 2.974-4.252s2.974 2.149 2.974 4.252Z",
|
|
2077
|
-
fill: "url(#paint3_linear_25823_31181)"
|
|
2078
|
-
})
|
|
2079
|
-
]
|
|
2080
|
-
})
|
|
2081
|
-
}),
|
|
2082
|
-
/* @__PURE__ */ u("mask", {
|
|
2083
|
-
id: "path-23-inside-1_25823_31181",
|
|
2084
|
-
fill: "white",
|
|
2085
|
-
children: /* @__PURE__ */ u("path", { d: "M87.629 6.285a3 3 0 0 1 3 3v33.539H27.517V9.285a3 3 0 0 1 3-3z" })
|
|
2086
|
-
}),
|
|
2087
|
-
/* @__PURE__ */ u("path", {
|
|
2088
|
-
d: "M87.629 6.285a3 3 0 0 1 3 3v33.539H27.517V9.285a3 3 0 0 1 3-3z",
|
|
2089
|
-
fill: "#F4F4F5"
|
|
2090
|
-
}),
|
|
2091
|
-
/* @__PURE__ */ u("path", {
|
|
2092
|
-
d: "M90.629 6.285v36.539zM27.517 42.824V6.285zm0-36.539h63.112zm63.112 37.751H27.517v-2.425h63.112z",
|
|
2093
|
-
fill: "#C9C9C9",
|
|
2094
|
-
"fill-opacity": "0.8",
|
|
2095
|
-
mask: "url(#path-23-inside-1_25823_31181)"
|
|
2096
|
-
})
|
|
2097
|
-
]
|
|
2098
|
-
}),
|
|
2099
|
-
/* @__PURE__ */ u("defs", { children: [
|
|
2100
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2101
|
-
id: "paint0_linear_25823_31181",
|
|
2102
|
-
x1: "38.1511",
|
|
2103
|
-
y1: "61.9259",
|
|
2104
|
-
x2: "38.1511",
|
|
2105
|
-
y2: "65.1098",
|
|
2106
|
-
gradientUnits: "userSpaceOnUse",
|
|
2107
|
-
children: [/* @__PURE__ */ u("stop", { "stop-color": "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
2108
|
-
offset: "1",
|
|
2109
|
-
"stop-color": "white"
|
|
2110
|
-
})]
|
|
2111
|
-
}),
|
|
2112
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2113
|
-
id: "paint1_linear_25823_31181",
|
|
2114
|
-
x1: "35.7261",
|
|
2115
|
-
y1: "60.3676",
|
|
2116
|
-
x2: "35.2086",
|
|
2117
|
-
y2: "60.4633",
|
|
2118
|
-
gradientUnits: "userSpaceOnUse",
|
|
2119
|
-
children: [
|
|
2120
|
-
/* @__PURE__ */ u("stop", {
|
|
2121
|
-
offset: "0.171875",
|
|
2122
|
-
"stop-color": "#BDBDBD"
|
|
2123
|
-
}),
|
|
2124
|
-
/* @__PURE__ */ u("stop", {
|
|
2125
|
-
offset: "0.640625",
|
|
2126
|
-
"stop-color": "#E1E1E1"
|
|
2127
|
-
}),
|
|
2128
|
-
/* @__PURE__ */ u("stop", {
|
|
2129
|
-
offset: "1",
|
|
2130
|
-
"stop-color": "#DDDDDD"
|
|
2131
|
-
})
|
|
2132
|
-
]
|
|
2133
|
-
}),
|
|
2134
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2135
|
-
id: "paint2_linear_25823_31181",
|
|
2136
|
-
x1: "41.0508",
|
|
2137
|
-
y1: "60.4556",
|
|
2138
|
-
x2: "41.5674",
|
|
2139
|
-
y2: "60.5562",
|
|
2140
|
-
gradientUnits: "userSpaceOnUse",
|
|
2141
|
-
children: [
|
|
2142
|
-
/* @__PURE__ */ u("stop", {
|
|
2143
|
-
offset: "0.0416667",
|
|
2144
|
-
"stop-color": "#B5B5B5"
|
|
2145
|
-
}),
|
|
2146
|
-
/* @__PURE__ */ u("stop", {
|
|
2147
|
-
offset: "0.362488",
|
|
2148
|
-
"stop-color": "#E2E2E2"
|
|
2149
|
-
}),
|
|
2150
|
-
/* @__PURE__ */ u("stop", {
|
|
2151
|
-
offset: "1",
|
|
2152
|
-
"stop-color": "white"
|
|
2153
|
-
})
|
|
2154
|
-
]
|
|
2155
|
-
}),
|
|
2156
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2157
|
-
id: "paint3_linear_25823_31181",
|
|
2158
|
-
x1: "35.8426",
|
|
2159
|
-
y1: "59.8572",
|
|
2160
|
-
x2: "40.0436",
|
|
2161
|
-
y2: "59.8731",
|
|
2162
|
-
gradientUnits: "userSpaceOnUse",
|
|
2163
|
-
children: [/* @__PURE__ */ u("stop", { "stop-color": "#E0E0E0" }), /* @__PURE__ */ u("stop", {
|
|
2164
|
-
offset: "1",
|
|
2165
|
-
"stop-color": "white"
|
|
2166
|
-
})]
|
|
2167
|
-
}),
|
|
2168
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2169
|
-
id: "clip0_25823_31181",
|
|
2170
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2171
|
-
width: "118",
|
|
2172
|
-
height: "86",
|
|
2173
|
-
fill: "white"
|
|
2174
|
-
})
|
|
2175
|
-
}),
|
|
2176
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2177
|
-
id: "clip1_25823_31181",
|
|
2178
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2179
|
-
x: "31.2625",
|
|
2180
|
-
y: "52.7891",
|
|
2181
|
-
width: "14.0499",
|
|
2182
|
-
height: "17.0253",
|
|
2183
|
-
rx: "2",
|
|
2184
|
-
fill: "white"
|
|
2185
|
-
})
|
|
2186
|
-
}),
|
|
2187
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2188
|
-
id: "clip2_25823_31181",
|
|
2189
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2190
|
-
width: "18.0004",
|
|
2191
|
-
height: "18.0005",
|
|
2192
|
-
fill: "white",
|
|
2193
|
-
transform: "translate(29.4441 52.7891)"
|
|
2194
|
-
})
|
|
2195
|
-
})
|
|
2196
|
-
] })
|
|
2197
|
-
]
|
|
2198
|
-
});
|
|
2199
|
-
};
|
|
2200
|
-
//#endregion
|
|
2201
|
-
//#region src/modules/id/assets/deviceWalletsIcon.tsx
|
|
2202
|
-
var DeviceWalletsIcon = () => {
|
|
2203
|
-
return /* @__PURE__ */ u("svg", {
|
|
2204
|
-
width: "60",
|
|
2205
|
-
height: "60",
|
|
2206
|
-
viewBox: "0 0 60 60",
|
|
2207
|
-
fill: "none",
|
|
2208
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2209
|
-
"aria-hidden": "true",
|
|
2210
|
-
focusable: "false",
|
|
2211
|
-
class: "IncodeDeviceWalletsIcon",
|
|
2212
|
-
children: [
|
|
2213
|
-
/* @__PURE__ */ u("title", { children: "Mobile Driver License icon" }),
|
|
2214
|
-
/* @__PURE__ */ u("g", {
|
|
2215
|
-
clipPath: "url(#clip0_26265_2591)",
|
|
2216
|
-
children: /* @__PURE__ */ u("g", {
|
|
2217
|
-
clipPath: "url(#clip1_26265_2591)",
|
|
2218
|
-
children: /* @__PURE__ */ u("g", {
|
|
2219
|
-
clipPath: "url(#clip2_26265_2591)",
|
|
2220
|
-
children: [
|
|
2221
|
-
/* @__PURE__ */ u("rect", {
|
|
2222
|
-
x: "24.1111",
|
|
2223
|
-
y: "10.0779",
|
|
2224
|
-
width: "20.52",
|
|
2225
|
-
height: "42.066",
|
|
2226
|
-
rx: "2.565",
|
|
2227
|
-
fill: "#C9C9C9",
|
|
2228
|
-
fillOpacity: "0.15"
|
|
2229
|
-
}),
|
|
2230
|
-
/* @__PURE__ */ u("rect", {
|
|
2231
|
-
x: "18.3396",
|
|
2232
|
-
y: "49.7073",
|
|
2233
|
-
width: "41.8095",
|
|
2234
|
-
height: "23.3415",
|
|
2235
|
-
rx: "2.69325",
|
|
2236
|
-
transform: "rotate(-90 18.3396 49.7073)",
|
|
2237
|
-
fill: "#F7F7F7",
|
|
2238
|
-
stroke: "#D4D4D4",
|
|
2239
|
-
strokeWidth: "0.769499"
|
|
2240
|
-
}),
|
|
2241
|
-
/* @__PURE__ */ u("path", {
|
|
2242
|
-
d: "M20.06 13.217c0-.85.688-1.539 1.538-1.539h16.823c.85 0 1.54.689 1.54 1.539v8.492c0 .85-.69 1.54-1.54 1.54H21.598c-.85 0-1.539-.69-1.539-1.54z",
|
|
2243
|
-
fill: "#C9C9C9",
|
|
2244
|
-
fillOpacity: "0.8"
|
|
2245
|
-
}),
|
|
2246
|
-
/* @__PURE__ */ u("path", {
|
|
2247
|
-
d: "M20.522 13.167c0-.567.46-1.026 1.026-1.026H38.47c.567 0 1.026.46 1.026 1.026v8.593c0 .566-.46 1.026-1.026 1.026H21.548c-.567 0-1.026-.46-1.026-1.026z",
|
|
2248
|
-
fill: "white"
|
|
2249
|
-
}),
|
|
2250
|
-
/* @__PURE__ */ u("path", {
|
|
2251
|
-
d: "M30.244 19.75a.25.25 0 0 1 .25.25v.3a.25.25 0 0 1-.25.25h-1.63a.25.25 0 0 1-.25-.25V20a.25.25 0 0 1 .25-.25zm4.262-1.598a.25.25 0 0 1 .25.25v.3a.25.25 0 0 1-.25.25h-5.893a.25.25 0 0 1-.25-.25v-.3a.25.25 0 0 1 .25-.25zm-1.598-1.598a.25.25 0 0 1 .25.25v.3a.25.25 0 0 1-.25.25h-4.295a.25.25 0 0 1-.25-.25v-.3a.25.25 0 0 1 .25-.25zm0-1.598a.25.25 0 0 1 .25.25v.299a.25.25 0 0 1-.25.25h-4.295a.25.25 0 0 1-.25-.25v-.3a.25.25 0 0 1 .25-.25z",
|
|
2252
|
-
fill: "#C9C9C9",
|
|
2253
|
-
fillOpacity: "0.5"
|
|
2254
|
-
}),
|
|
2255
|
-
/* @__PURE__ */ u("rect", {
|
|
2256
|
-
x: "21.9907",
|
|
2257
|
-
y: "14.4548",
|
|
2258
|
-
width: "5.61267",
|
|
2259
|
-
height: "6.41448",
|
|
2260
|
-
rx: "0.592504",
|
|
2261
|
-
class: "IncodeDeviceWalletsIconFill"
|
|
2262
|
-
}),
|
|
2263
|
-
/* @__PURE__ */ u("path", {
|
|
2264
|
-
d: "M23.907 18.977c-.003.207-.364.274-.606.507.422.304 1.03.508 1.452.508.49 0 1.057-.204 1.478-.508-.242-.233-.624-.3-.63-.507l.001-.927c0-1.33-1.746-2.12-1.698.022q.002.452.003.905Z",
|
|
2265
|
-
fill: "url(#paint0_linear_26265_2591)"
|
|
2266
|
-
}),
|
|
2267
|
-
/* @__PURE__ */ u("path", {
|
|
2268
|
-
d: "M25.862 19.218c.02.006 1.316.428 1.567.883.054.096.1.22.144.354a.59.59 0 0 1-.562.413h-4.427a.59.59 0 0 1-.593-.591v-.349c.471-.387 1.658-.71 1.658-.71 0 .278.69.712 1.106.719.581 0 1.107-.441 1.107-.719Z",
|
|
2269
|
-
fill: "#CECECE"
|
|
2270
|
-
}),
|
|
2271
|
-
/* @__PURE__ */ u("path", {
|
|
2272
|
-
d: "M23.907 18.142c.623-.066 1.21.444 1.21.444s-.116.627-1.21.445z",
|
|
2273
|
-
fill: "#CDCDCD"
|
|
2274
|
-
}),
|
|
2275
|
-
/* @__PURE__ */ u("path", {
|
|
2276
|
-
d: "M26.251 17.086a.247.247 0 0 0-.467-.155l-.17.43a.258.258 0 0 0 .204.35l.03.005a.26.26 0 0 0 .285-.19z",
|
|
2277
|
-
fill: "url(#paint1_linear_26265_2591)"
|
|
2278
|
-
}),
|
|
2279
|
-
/* @__PURE__ */ u("path", {
|
|
2280
|
-
d: "M23.337 17.073a.233.233 0 0 1 .45-.121l.121.45a.233.233 0 0 1-.45.12z",
|
|
2281
|
-
fill: "url(#paint2_linear_26265_2591)"
|
|
2282
|
-
}),
|
|
2283
|
-
/* @__PURE__ */ u("path", {
|
|
2284
|
-
d: "M26.08 17.017c0 1.021-.72 1.849-1.282 1.849-.615 0-1.282-.828-1.282-1.849 0-.909.07-1.88 1.282-1.88 1.21 0 1.282.95 1.282 1.88Z",
|
|
2285
|
-
fill: "url(#paint3_linear_26265_2591)"
|
|
2286
|
-
}),
|
|
2287
|
-
/* @__PURE__ */ u("rect", {
|
|
2288
|
-
x: "22.0591",
|
|
2289
|
-
y: "43.936",
|
|
2290
|
-
width: "15.903",
|
|
2291
|
-
height: "3.078",
|
|
2292
|
-
rx: "0.512999",
|
|
2293
|
-
fill: "#E4E4E4"
|
|
2294
|
-
})
|
|
2295
|
-
]
|
|
2296
|
-
})
|
|
2297
|
-
})
|
|
2298
|
-
}),
|
|
2299
|
-
/* @__PURE__ */ u("defs", { children: [
|
|
2300
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2301
|
-
id: "paint0_linear_26265_2591",
|
|
2302
|
-
x1: "24.6409",
|
|
2303
|
-
y1: "18.1316",
|
|
2304
|
-
x2: "24.6409",
|
|
2305
|
-
y2: "19.3392",
|
|
2306
|
-
gradientUnits: "userSpaceOnUse",
|
|
2307
|
-
children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
2308
|
-
offset: "1",
|
|
2309
|
-
stopColor: "white"
|
|
2310
|
-
})]
|
|
2311
|
-
}),
|
|
2312
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2313
|
-
id: "paint1_linear_26265_2591",
|
|
2314
|
-
x1: "25.7267",
|
|
2315
|
-
y1: "17.4809",
|
|
2316
|
-
x2: "26.0758",
|
|
2317
|
-
y2: "17.4949",
|
|
2318
|
-
gradientUnits: "userSpaceOnUse",
|
|
2319
|
-
children: [/* @__PURE__ */ u("stop", {
|
|
2320
|
-
offset: "0.0416667",
|
|
2321
|
-
stopColor: "#B5B5B5"
|
|
2322
|
-
}), /* @__PURE__ */ u("stop", {
|
|
2323
|
-
offset: "1",
|
|
2324
|
-
stopColor: "white"
|
|
2325
|
-
})]
|
|
2326
|
-
}),
|
|
2327
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2328
|
-
id: "paint2_linear_26265_2591",
|
|
2329
|
-
x1: "23.614",
|
|
2330
|
-
y1: "17.4808",
|
|
2331
|
-
x2: "23.2649",
|
|
2332
|
-
y2: "17.4948",
|
|
2333
|
-
gradientUnits: "userSpaceOnUse",
|
|
2334
|
-
children: [/* @__PURE__ */ u("stop", {
|
|
2335
|
-
offset: "0.0416667",
|
|
2336
|
-
stopColor: "#B5B5B5"
|
|
2337
|
-
}), /* @__PURE__ */ u("stop", {
|
|
2338
|
-
offset: "1",
|
|
2339
|
-
stopColor: "white"
|
|
2340
|
-
})]
|
|
2341
|
-
}),
|
|
2342
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2343
|
-
id: "paint3_linear_26265_2591",
|
|
2344
|
-
x1: "23.5474",
|
|
2345
|
-
y1: "17.0021",
|
|
2346
|
-
x2: "25.3582",
|
|
2347
|
-
y2: "17.0087",
|
|
2348
|
-
gradientUnits: "userSpaceOnUse",
|
|
2349
|
-
children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
|
|
2350
|
-
offset: "1",
|
|
2351
|
-
stopColor: "white"
|
|
2352
|
-
})]
|
|
2353
|
-
}),
|
|
2354
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2355
|
-
id: "clip0_26265_2591",
|
|
2356
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2357
|
-
width: "60",
|
|
2358
|
-
height: "60",
|
|
2359
|
-
fill: "white"
|
|
2360
|
-
})
|
|
2361
|
-
}),
|
|
2362
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2363
|
-
id: "clip1_26265_2591",
|
|
2364
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2365
|
-
width: "60",
|
|
2366
|
-
height: "60",
|
|
2367
|
-
fill: "white",
|
|
2368
|
-
transform: "translate(0.5 0.5)"
|
|
2369
|
-
})
|
|
2370
|
-
}),
|
|
2371
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2372
|
-
id: "clip2_26265_2591",
|
|
2373
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2374
|
-
width: "60.5339",
|
|
2375
|
-
height: "45.144",
|
|
2376
|
-
fill: "white",
|
|
2377
|
-
transform: "translate(0 7)"
|
|
2378
|
-
})
|
|
2379
|
-
})
|
|
2380
|
-
] })
|
|
2381
|
-
]
|
|
2382
|
-
});
|
|
2383
|
-
};
|
|
2384
|
-
//#endregion
|
|
2385
|
-
//#region src/modules/id/assets/digitalIdIcon.tsx
|
|
2386
|
-
var DigitalIdIcon = () => {
|
|
2387
|
-
return /* @__PURE__ */ u("svg", {
|
|
2388
|
-
width: "61",
|
|
2389
|
-
height: "61",
|
|
2390
|
-
viewBox: "0 0 61 61",
|
|
2391
|
-
fill: "none",
|
|
2392
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2393
|
-
"aria-hidden": "true",
|
|
2394
|
-
focusable: "false",
|
|
2395
|
-
class: "IncodeDigitalIdIcon",
|
|
2396
|
-
children: [
|
|
2397
|
-
/* @__PURE__ */ u("title", { children: "Digital ID Icon" }),
|
|
2398
|
-
/* @__PURE__ */ u("g", {
|
|
2399
|
-
clipPath: "url(#clip0_24620_2022)",
|
|
2400
|
-
children: [
|
|
2401
|
-
/* @__PURE__ */ u("g", {
|
|
2402
|
-
clipPath: "url(#clip1_24620_2022)",
|
|
2403
|
-
children: [
|
|
2404
|
-
/* @__PURE__ */ u("path", {
|
|
2405
|
-
d: "M15.792 9.262c0-.752.609-1.36 1.36-1.36H44.02c.751 0 1.36.608 1.36 1.36v41.15a1.36 1.36 0 0 1-1.36 1.36H17.152a1.36 1.36 0 0 1-1.36-1.36z",
|
|
2406
|
-
fill: "white"
|
|
2407
|
-
}),
|
|
2408
|
-
/* @__PURE__ */ u("rect", {
|
|
2409
|
-
x: "31.0889",
|
|
2410
|
-
y: "13.8564",
|
|
2411
|
-
width: "12.9231",
|
|
2412
|
-
height: "15.8138",
|
|
2413
|
-
rx: "1.36032",
|
|
2414
|
-
fill: "#EAF0F6"
|
|
2415
|
-
}),
|
|
2416
|
-
/* @__PURE__ */ u("path", {
|
|
2417
|
-
fillRule: "evenodd",
|
|
2418
|
-
clipRule: "evenodd",
|
|
2419
|
-
d: "M36.047 19.967c0 .215-.175.39-.39.39h-1.4a.39.39 0 0 1-.39-.39v-1.4c0-.215.175-.39.39-.39h1.4a.39.39 0 0 1 .39.39zm-.39-2.708h-1.4a1.31 1.31 0 0 0-1.309 1.309v1.399a1.31 1.31 0 0 0 1.31 1.309h1.398a1.31 1.31 0 0 0 1.31-1.309v-1.4a1.31 1.31 0 0 0-1.31-1.308Z",
|
|
2420
|
-
class: "IncodeDigitalIdIconFill"
|
|
2421
|
-
}),
|
|
2422
|
-
/* @__PURE__ */ u("path", {
|
|
2423
|
-
fillRule: "evenodd",
|
|
2424
|
-
clipRule: "evenodd",
|
|
2425
|
-
d: "M34.957 18.809a.46.46 0 0 0-.459.461.46.46 0 0 0 .918 0v-.005a.457.457 0 0 0-.459-.456Z",
|
|
2426
|
-
class: "IncodeDigitalIdIconFill"
|
|
2427
|
-
}),
|
|
2428
|
-
/* @__PURE__ */ u("path", {
|
|
2429
|
-
fillRule: "evenodd",
|
|
2430
|
-
clipRule: "evenodd",
|
|
2431
|
-
d: "M34.957 23.974a.46.46 0 0 0-.459.462.46.46 0 0 0 .918 0v-.006a.457.457 0 0 0-.459-.456Z",
|
|
2432
|
-
class: "IncodeDigitalIdIconFill"
|
|
2433
|
-
}),
|
|
2434
|
-
/* @__PURE__ */ u("path", {
|
|
2435
|
-
fillRule: "evenodd",
|
|
2436
|
-
clipRule: "evenodd",
|
|
2437
|
-
d: "M36.047 25.132c0 .215-.175.39-.39.39h-1.4a.39.39 0 0 1-.39-.39v-1.4c0-.215.175-.39.39-.39h1.4a.39.39 0 0 1 .39.39zm-.39-2.708h-1.4a1.31 1.31 0 0 0-1.309 1.309v1.399a1.31 1.31 0 0 0 1.31 1.309h1.398a1.31 1.31 0 0 0 1.31-1.309v-1.4a1.31 1.31 0 0 0-1.31-1.308Z",
|
|
2438
|
-
class: "IncodeDigitalIdIconFill"
|
|
2439
|
-
}),
|
|
2440
|
-
/* @__PURE__ */ u("path", {
|
|
2441
|
-
fillRule: "evenodd",
|
|
2442
|
-
clipRule: "evenodd",
|
|
2443
|
-
d: "M41.224 25.132c0 .215-.175.39-.39.39h-1.4a.39.39 0 0 1-.39-.39v-1.4c0-.215.175-.39.39-.39h1.4a.39.39 0 0 1 .39.39zm-.39-2.708h-1.4a1.31 1.31 0 0 0-1.309 1.309v1.399a1.31 1.31 0 0 0 1.309 1.309h1.4a1.31 1.31 0 0 0 1.308-1.309v-1.4a1.31 1.31 0 0 0-1.309-1.308Z",
|
|
2444
|
-
class: "IncodeDigitalIdIconFill"
|
|
2445
|
-
}),
|
|
2446
|
-
/* @__PURE__ */ u("path", {
|
|
2447
|
-
fillRule: "evenodd",
|
|
2448
|
-
clipRule: "evenodd",
|
|
2449
|
-
d: "M40.118 23.966a.46.46 0 0 0-.459.459v.005c0 .253.206.456.46.456a.461.461 0 0 0 0-.92Z",
|
|
2450
|
-
class: "IncodeDigitalIdIconFill"
|
|
2451
|
-
}),
|
|
2452
|
-
/* @__PURE__ */ u("path", {
|
|
2453
|
-
fillRule: "evenodd",
|
|
2454
|
-
clipRule: "evenodd",
|
|
2455
|
-
d: "M38.584 18.18a.46.46 0 0 0 .46-.46v-.005a.457.457 0 0 0-.46-.456.46.46 0 0 0-.459.462c0 .253.206.459.46.459Z",
|
|
2456
|
-
class: "IncodeDigitalIdIconFill"
|
|
2457
|
-
}),
|
|
2458
|
-
/* @__PURE__ */ u("path", {
|
|
2459
|
-
fillRule: "evenodd",
|
|
2460
|
-
clipRule: "evenodd",
|
|
2461
|
-
d: "M40.993 17.259h-.875a.459.459 0 1 0 0 .918h.875c.119 0 .216.097.216.216v.874a.459.459 0 1 0 .918 0v-.874c0-.626-.509-1.134-1.134-1.134Z",
|
|
2462
|
-
class: "IncodeDigitalIdIconFill"
|
|
2463
|
-
}),
|
|
2464
|
-
/* @__PURE__ */ u("path", {
|
|
2465
|
-
fillRule: "evenodd",
|
|
2466
|
-
clipRule: "evenodd",
|
|
2467
|
-
d: "M41.668 20.355h-1.55a.46.46 0 0 0 0 .918h1.55a.46.46 0 0 0 0-.918Z",
|
|
2468
|
-
class: "IncodeDigitalIdIconFill"
|
|
2469
|
-
}),
|
|
2470
|
-
/* @__PURE__ */ u("path", {
|
|
2471
|
-
fillRule: "evenodd",
|
|
2472
|
-
clipRule: "evenodd",
|
|
2473
|
-
d: "M38.584 21.276a.46.46 0 0 0 .46-.459v-.874c0-.12.096-.216.215-.216h.874a.46.46 0 0 0 0-.918h-.874c-.625 0-1.134.508-1.134 1.134v.874c0 .253.206.46.46.46Z",
|
|
2474
|
-
class: "IncodeDigitalIdIconFill"
|
|
2475
|
-
}),
|
|
2476
|
-
/* @__PURE__ */ u("rect", {
|
|
2477
|
-
x: "18.0088",
|
|
2478
|
-
y: "32.5596",
|
|
2479
|
-
width: "10.3725",
|
|
2480
|
-
height: "2.04049",
|
|
2481
|
-
rx: "0.680162",
|
|
2482
|
-
fill: "#EBECEF"
|
|
2483
|
-
}),
|
|
2484
|
-
/* @__PURE__ */ u("rect", {
|
|
2485
|
-
x: "15.792",
|
|
2486
|
-
y: "10.2881",
|
|
2487
|
-
width: "29.587",
|
|
2488
|
-
height: "2.04049",
|
|
2489
|
-
fill: "#EBECEF"
|
|
2490
|
-
}),
|
|
2491
|
-
/* @__PURE__ */ u("rect", {
|
|
2492
|
-
x: "18.0088",
|
|
2493
|
-
y: "36.1318",
|
|
2494
|
-
width: "10.3725",
|
|
2495
|
-
height: "2.04049",
|
|
2496
|
-
rx: "0.680162",
|
|
2497
|
-
fill: "#EBECEF"
|
|
2498
|
-
}),
|
|
2499
|
-
/* @__PURE__ */ u("rect", {
|
|
2500
|
-
x: "18.0088",
|
|
2501
|
-
y: "39.7002",
|
|
2502
|
-
width: "13.7733",
|
|
2503
|
-
height: "2.04049",
|
|
2504
|
-
rx: "0.680162",
|
|
2505
|
-
fill: "#EBECEF"
|
|
2506
|
-
})
|
|
2507
|
-
]
|
|
2508
|
-
}),
|
|
2509
|
-
/* @__PURE__ */ u("path", {
|
|
2510
|
-
d: "M44.019 7.405c1.025 0 1.856.832 1.856 1.857v41.15a1.857 1.857 0 0 1-1.856 1.856H17.152a1.857 1.857 0 0 1-1.856-1.857V9.261c0-1.024.831-1.856 1.856-1.856z",
|
|
2511
|
-
stroke: "#EBECEF",
|
|
2512
|
-
"stroke-width": "0.991903"
|
|
2513
|
-
}),
|
|
2514
|
-
/* @__PURE__ */ u("g", {
|
|
2515
|
-
clipPath: "url(#clip2_24620_2022)",
|
|
2516
|
-
children: [
|
|
2517
|
-
/* @__PURE__ */ u("rect", {
|
|
2518
|
-
x: "17.1406",
|
|
2519
|
-
y: "13.9385",
|
|
2520
|
-
width: "12.9231",
|
|
2521
|
-
height: "15.7324",
|
|
2522
|
-
rx: "0.936455",
|
|
2523
|
-
class: "IncodeDigitalIdIconFill"
|
|
2524
|
-
}),
|
|
2525
|
-
/* @__PURE__ */ u("path", {
|
|
2526
|
-
d: "M21.83 24.439v.024q-.008.76-1.28 1.143c1.021.741 2.042 1.334 3.062 1.334s2.04-.593 3.061-1.334q-1.261-.384-1.28-1.145c0-.193 0-2.07.002-2.263.06.009.055.003 0-.012.001-.635.004.196.008-.671.004-.868-3.631-1.644-3.578.738.001.243.003 1.91.006 2.186Z",
|
|
2527
|
-
fill: "url(#paint0_linear_24620_2022)"
|
|
2528
|
-
}),
|
|
2529
|
-
/* @__PURE__ */ u("path", {
|
|
2530
|
-
d: "M30.064 27.331v1.405c0 .517-.42.936-.937.936h-11.05a.936.936 0 0 1-.936-.936v-1.368c.6-1.075 4.097-2.073 4.097-2.073.324.586 1.276 1.12 2.251 1.145 1.058.026 2.142-.509 2.48-1.145 0 0 3.494.96 4.095 2.036Z",
|
|
2531
|
-
fill: "#CECECE"
|
|
2532
|
-
}),
|
|
2533
|
-
/* @__PURE__ */ u("path", {
|
|
2534
|
-
d: "M21.79 23.277c1.494-.155 2.9.492 2.9.492s-.278 1.464-2.9 1.039z",
|
|
2535
|
-
fill: "#CDCDCD"
|
|
2536
|
-
}),
|
|
2537
|
-
/* @__PURE__ */ u("path", {
|
|
2538
|
-
d: "M20.557 20.208c.2-.332.448-.104.547.052l.139 1.477c-.005.129-.082.21-.283.236-.25.032-.417-.652-.475-.908-.058-.255-.177-.442.072-.857Z",
|
|
2539
|
-
fill: "url(#paint1_linear_24620_2022)"
|
|
2540
|
-
}),
|
|
2541
|
-
/* @__PURE__ */ u("path", {
|
|
2542
|
-
d: "M26.57 20.29c-.195-.333-.446-.107-.547.048l-.153 1.476c.004.128.08.21.28.238.252.034.424-.648.484-.903s.182-.44-.063-.858Z",
|
|
2543
|
-
fill: "url(#paint2_linear_24620_2022)"
|
|
2544
|
-
}),
|
|
2545
|
-
/* @__PURE__ */ u("path", {
|
|
2546
|
-
d: "M26.368 20.554c0 2.136-1.546 3.868-2.754 3.868-1.32 0-2.754-1.732-2.754-3.868 0-1.904.152-3.938 2.754-3.938s2.754 1.99 2.754 3.938Z",
|
|
2547
|
-
fill: "#FAFAFA"
|
|
2548
|
-
})
|
|
2549
|
-
]
|
|
2550
|
-
})
|
|
2551
|
-
]
|
|
2552
|
-
}),
|
|
2553
|
-
/* @__PURE__ */ u("defs", { children: [
|
|
2554
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2555
|
-
id: "paint0_linear_24620_2022",
|
|
2556
|
-
x1: "23.3405",
|
|
2557
|
-
y1: "22.3978",
|
|
2558
|
-
x2: "23.3405",
|
|
2559
|
-
y2: "25.346",
|
|
2560
|
-
gradientUnits: "userSpaceOnUse",
|
|
2561
|
-
children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
2562
|
-
offset: "1",
|
|
2563
|
-
stopColor: "white"
|
|
2564
|
-
})]
|
|
2565
|
-
}),
|
|
2566
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2567
|
-
id: "paint1_linear_24620_2022",
|
|
2568
|
-
x1: "21.0945",
|
|
2569
|
-
y1: "20.9548",
|
|
2570
|
-
x2: "20.6152",
|
|
2571
|
-
y2: "21.0435",
|
|
2572
|
-
gradientUnits: "userSpaceOnUse",
|
|
2573
|
-
children: [
|
|
2574
|
-
/* @__PURE__ */ u("stop", {
|
|
2575
|
-
offset: "0.171875",
|
|
2576
|
-
stopColor: "#BDBDBD"
|
|
2577
|
-
}),
|
|
2578
|
-
/* @__PURE__ */ u("stop", {
|
|
2579
|
-
offset: "0.640625",
|
|
2580
|
-
stopColor: "#E1E1E1"
|
|
2581
|
-
}),
|
|
2582
|
-
/* @__PURE__ */ u("stop", {
|
|
2583
|
-
offset: "1",
|
|
2584
|
-
stopColor: "#DDDDDD"
|
|
2585
|
-
})
|
|
2586
|
-
]
|
|
2587
|
-
}),
|
|
2588
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2589
|
-
id: "paint2_linear_24620_2022",
|
|
2590
|
-
x1: "26.0263",
|
|
2591
|
-
y1: "21.0327",
|
|
2592
|
-
x2: "26.5047",
|
|
2593
|
-
y2: "21.1259",
|
|
2594
|
-
gradientUnits: "userSpaceOnUse",
|
|
2595
|
-
children: [
|
|
2596
|
-
/* @__PURE__ */ u("stop", {
|
|
2597
|
-
offset: "0.0416667",
|
|
2598
|
-
stopColor: "#B5B5B5"
|
|
2599
|
-
}),
|
|
2600
|
-
/* @__PURE__ */ u("stop", {
|
|
2601
|
-
offset: "0.362488",
|
|
2602
|
-
stopColor: "#E2E2E2"
|
|
2603
|
-
}),
|
|
2604
|
-
/* @__PURE__ */ u("stop", {
|
|
2605
|
-
offset: "1",
|
|
2606
|
-
stopColor: "white"
|
|
2607
|
-
})
|
|
2608
|
-
]
|
|
2609
|
-
}),
|
|
2610
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2611
|
-
id: "clip0_24620_2022",
|
|
2612
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2613
|
-
width: "60",
|
|
2614
|
-
height: "60",
|
|
2615
|
-
fill: "white",
|
|
2616
|
-
transform: "translate(0.5 0.5)"
|
|
2617
|
-
})
|
|
2618
|
-
}),
|
|
2619
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2620
|
-
id: "clip1_24620_2022",
|
|
2621
|
-
children: /* @__PURE__ */ u("path", {
|
|
2622
|
-
d: "M15.792 9.262c0-.752.609-1.36 1.36-1.36H44.02c.751 0 1.36.608 1.36 1.36v41.15a1.36 1.36 0 0 1-1.36 1.36H17.152a1.36 1.36 0 0 1-1.36-1.36z",
|
|
2623
|
-
fill: "white"
|
|
2624
|
-
})
|
|
2625
|
-
}),
|
|
2626
|
-
/* @__PURE__ */ u("clipPath", {
|
|
2627
|
-
id: "clip2_24620_2022",
|
|
2628
|
-
children: /* @__PURE__ */ u("rect", {
|
|
2629
|
-
x: "17.1406",
|
|
2630
|
-
y: "13.9385",
|
|
2631
|
-
width: "12.9231",
|
|
2632
|
-
height: "15.7324",
|
|
2633
|
-
rx: "0.680162",
|
|
2634
|
-
fill: "white"
|
|
2635
|
-
})
|
|
2636
|
-
})
|
|
2637
|
-
] })
|
|
2638
|
-
]
|
|
2639
|
-
});
|
|
2640
|
-
};
|
|
2641
|
-
//#endregion
|
|
2642
|
-
//#region src/modules/id/chooser/chooser.constants.ts
|
|
2643
|
-
var CHOOSER_OPTIONS_LOOKUP = {
|
|
2644
|
-
digitalIdRedirect: {
|
|
2645
|
-
type: "digitalIdRedirect",
|
|
2646
|
-
icon: DigitalIdIcon,
|
|
2647
|
-
title: "idv2.chooser.digitalIdRedirectButtonTitle",
|
|
2648
|
-
testId: "verification-option-digitalIdRedirect",
|
|
2649
|
-
weight: 6
|
|
2650
|
-
},
|
|
2651
|
-
digitalIdUpload: {
|
|
2652
|
-
type: "digitalIdUpload",
|
|
2653
|
-
icon: DigitalIdIcon,
|
|
2654
|
-
title: "idv2.chooser.digitalIdUploadButtonTitle",
|
|
2655
|
-
testId: "verification-option-digitalIdUpload",
|
|
2656
|
-
weight: 2
|
|
2657
|
-
},
|
|
2658
|
-
id: {
|
|
2659
|
-
type: "id",
|
|
2660
|
-
icon: IdCardIcon,
|
|
2661
|
-
title: "idv2.chooser.idButtonTitle",
|
|
2662
|
-
testId: "verification-option-id",
|
|
2663
|
-
weight: 3
|
|
2664
|
-
},
|
|
2665
|
-
passport: {
|
|
2666
|
-
type: "passport",
|
|
2667
|
-
icon: PassportIcon,
|
|
2668
|
-
title: "idv2.chooser.passportButtonTitle",
|
|
2669
|
-
testId: "verification-option-passport",
|
|
2670
|
-
weight: 4
|
|
2671
|
-
},
|
|
2672
|
-
digitalId: {
|
|
2673
|
-
icon: DeviceWalletsIcon,
|
|
2674
|
-
title: "idv2.chooser.digitalIdButtonTitle",
|
|
2675
|
-
testId: "verification-option-digitalId",
|
|
2676
|
-
type: "digitalId",
|
|
2677
|
-
weight: 5
|
|
2678
|
-
}
|
|
2679
|
-
};
|
|
2680
|
-
//#endregion
|
|
2681
|
-
//#region src/modules/id/chooser/digitalIdProviderLogos.ts
|
|
2682
|
-
/**
|
|
2683
|
-
* Digital-ID provider logos, keyed by provider id.
|
|
2684
|
-
*
|
|
2685
|
-
* The backend's `digitalIds.methods[].logoUrl` currently carries bare asset
|
|
2686
|
-
* file names (`idin.svg`), which would resolve against the host page and
|
|
2687
|
-
* render broken. Until it sends absolute links, the chooser card falls back to
|
|
2688
|
-
* this map. A backend-sent absolute URL always wins — see `toCardLogoSrc` in
|
|
2689
|
-
* `chooser.helpers.ts`.
|
|
2690
|
-
*
|
|
2691
|
-
* **The full Trinsic catalog is kept here on purpose**, including providers the
|
|
2692
|
-
* SDK does not offer yet, so adding one is a lookup rather than a hunt. Source:
|
|
2693
|
-
* the Trinsic integrations catalog (`content.trinsic.id/connect/integrations`).
|
|
2694
|
-
*
|
|
2695
|
-
* Keys are the Trinsic provider ids. {@link getDigitalIdProviderLogo}
|
|
2696
|
-
* normalises before looking up, so the vendor-prefixed form the SDK and
|
|
2697
|
-
* `ms-credential-verification` use (`trinsic_netherlands_idin`) finds
|
|
2698
|
-
* `netherlands-idin` too.
|
|
2699
|
-
*
|
|
2700
|
-
* `name` is the catalog's display name. It is reference data — the card shows
|
|
2701
|
-
* the backend's `displayName` — but it is what makes this list searchable by
|
|
2702
|
-
* the name a person actually knows the provider by.
|
|
2703
|
-
*/
|
|
2704
|
-
var DIGITAL_ID_PROVIDER_LOGOS = {
|
|
2705
|
-
"a-mojeid": {
|
|
2706
|
-
name: "MojeID login",
|
|
2707
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/mojeid.png"
|
|
2708
|
-
},
|
|
2709
|
-
"australia-connect-id": {
|
|
2710
|
-
name: "ConnectID",
|
|
2711
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/connectid-logo.png"
|
|
2712
|
-
},
|
|
2713
|
-
"austria-valera-eudi-sandbox": {
|
|
2714
|
-
name: "Austria Valera EUDI Sandbox",
|
|
2715
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/austria-valera-eudi-sandbox.png"
|
|
2716
|
-
},
|
|
2717
|
-
"brazil-cpf-lookup": {
|
|
2718
|
-
name: "Brazil CPF Check",
|
|
2719
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/cpf.png"
|
|
2720
|
-
},
|
|
2721
|
-
"brazil-digital-cnh": {
|
|
2722
|
-
name: "Brazil Digital CNH",
|
|
2723
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/cnh.png"
|
|
2724
|
-
},
|
|
2725
|
-
clear: {
|
|
2726
|
-
name: "CLEAR",
|
|
2727
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/clear.svg"
|
|
2728
|
-
},
|
|
2729
|
-
"czech-bank-id": {
|
|
2730
|
-
name: "Czech Bank iD",
|
|
2731
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/czech-bank-id.png"
|
|
2732
|
-
},
|
|
2733
|
-
"czech-republic-mojeid": {
|
|
2734
|
-
name: "MojeID Czech",
|
|
2735
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/mojeid.png"
|
|
2736
|
-
},
|
|
2737
|
-
"denmark-altid": {
|
|
2738
|
-
name: "AltID",
|
|
2739
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/denmark-altid.png"
|
|
2740
|
-
},
|
|
2741
|
-
"denmark-mitid": {
|
|
2742
|
-
name: "MitID",
|
|
2743
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/mitid-logo.svg"
|
|
2744
|
-
},
|
|
2745
|
-
"document-scan": {
|
|
2746
|
-
name: "Scan your government ID",
|
|
2747
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/document-scan.png"
|
|
2748
|
-
},
|
|
2749
|
-
"eudi-reference-wallet": {
|
|
2750
|
-
name: "EUDI Reference Wallet",
|
|
2751
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/eudi-reference-wallet.png"
|
|
2752
|
-
},
|
|
2753
|
-
"finnish-trust-network": {
|
|
2754
|
-
name: "Finnish Trust Network",
|
|
2755
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/ftn.png"
|
|
2756
|
-
},
|
|
2757
|
-
"france-identite": {
|
|
2758
|
-
name: "France Identité",
|
|
2759
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/france-identite.png"
|
|
2760
|
-
},
|
|
2761
|
-
"germany-eudi-sandbox": {
|
|
2762
|
-
name: "Germany EUDI Sandbox",
|
|
2763
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/germany-eudi-sandbox.png"
|
|
2764
|
-
},
|
|
2765
|
-
"google-wallet": {
|
|
2766
|
-
name: "Google Wallet",
|
|
2767
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/google-wallet.png"
|
|
2768
|
-
},
|
|
2769
|
-
"indonesia-dukcapil-match": {
|
|
2770
|
-
name: "Indonesia Identity Verification",
|
|
2771
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/indonesia-dukcapil-match.png"
|
|
2772
|
-
},
|
|
2773
|
-
"italy-spid": {
|
|
2774
|
-
name: "SPID",
|
|
2775
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/spid.svg"
|
|
2776
|
-
},
|
|
2777
|
-
"kenya-nid-lookup-3": {
|
|
2778
|
-
name: "Kenya NID Lookup",
|
|
2779
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/ke-nid.png"
|
|
2780
|
-
},
|
|
2781
|
-
"kenya-nid-match-2": {
|
|
2782
|
-
name: "Kenya NID Match",
|
|
2783
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/ke-nid.png"
|
|
2784
|
-
},
|
|
2785
|
-
"mobile-id": {
|
|
2786
|
-
name: "Mobile-ID",
|
|
2787
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/mobiil-id-logo.svg"
|
|
2788
|
-
},
|
|
2789
|
-
"moldova-evo-wallet": {
|
|
2790
|
-
name: "EVO Wallet",
|
|
2791
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/moldova-evo-wallet.png"
|
|
2792
|
-
},
|
|
2793
|
-
"netherlands-idin": {
|
|
2794
|
-
name: "IDIN",
|
|
2795
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/idin-logo.svg"
|
|
2796
|
-
},
|
|
2797
|
-
"nigeria-nin-lookup-2": {
|
|
2798
|
-
name: "Nigeria NIN Lookup",
|
|
2799
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
2800
|
-
},
|
|
2801
|
-
"nigeria-nin-lookup-3": {
|
|
2802
|
-
name: "Nigeria NIN Lookup",
|
|
2803
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
2804
|
-
},
|
|
2805
|
-
"nigeria-nin-match-2": {
|
|
2806
|
-
name: "Nigeria NIN Match",
|
|
2807
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
2808
|
-
},
|
|
2809
|
-
"norway-bankid": {
|
|
2810
|
-
name: "BankID Norway",
|
|
2811
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/no-bankid.png"
|
|
2812
|
-
},
|
|
2813
|
-
oneid: {
|
|
2814
|
-
name: "OneID",
|
|
2815
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/oneid-logo.svg"
|
|
2816
|
-
},
|
|
2817
|
-
"philippines-digital-national-id-qr": {
|
|
2818
|
-
name: "Digital National ID",
|
|
2819
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
2820
|
-
},
|
|
2821
|
-
"philippines-philsys-match": {
|
|
2822
|
-
name: "PhilSys Biometric Verification",
|
|
2823
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
2824
|
-
},
|
|
2825
|
-
"philippines-physical-national-id-qr": {
|
|
2826
|
-
name: "Philippines National ID",
|
|
2827
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
2828
|
-
},
|
|
2829
|
-
"singpass-login": {
|
|
2830
|
-
name: "Singpass",
|
|
2831
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/singpass-logo.png"
|
|
2832
|
-
},
|
|
2833
|
-
"singpass-myinfo": {
|
|
2834
|
-
name: "Singpass",
|
|
2835
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/singpass-logo.png"
|
|
2836
|
-
},
|
|
2837
|
-
"smart-id": {
|
|
2838
|
-
name: "Smart-ID",
|
|
2839
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/smart-id-logo.svg"
|
|
2840
|
-
},
|
|
2841
|
-
"south-africa-nid-lookup-2": {
|
|
2842
|
-
name: "South Africa NID Lookup",
|
|
2843
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/za-nid.png"
|
|
2844
|
-
},
|
|
2845
|
-
"south-africa-nid-match-2": {
|
|
2846
|
-
name: "South Africa NID Match",
|
|
2847
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/za-nid.png"
|
|
2848
|
-
},
|
|
2849
|
-
"sweden-bankid": {
|
|
2850
|
-
name: "BankID Sweden",
|
|
2851
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/se-bankid.svg"
|
|
2852
|
-
},
|
|
2853
|
-
"uganda-nid-match-2": {
|
|
2854
|
-
name: "Uganda NID",
|
|
2855
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/ug-nid.png"
|
|
2856
|
-
},
|
|
2857
|
-
"uk-evisa-lookup": {
|
|
2858
|
-
name: "UK eVisa Lookup",
|
|
2859
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/uk-evisa.svg"
|
|
2860
|
-
},
|
|
2861
|
-
"usa-louisiana-wallet": {
|
|
2862
|
-
name: "LA Wallet",
|
|
2863
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/la-wallet.png"
|
|
2864
|
-
},
|
|
2865
|
-
"zimbabwe-nid-lookup-2": {
|
|
2866
|
-
name: "Zimbabwe NID Lookup",
|
|
2867
|
-
logoUrl: "https://content.trinsic.id/connect/integrations/zw-nid.png"
|
|
2868
|
-
},
|
|
2869
|
-
"trinsic-mock-output": {
|
|
2870
|
-
name: "Mock - Output",
|
|
2871
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2872
|
-
},
|
|
2873
|
-
"trinsic-test-database-lookup": {
|
|
2874
|
-
name: "Mock - Database Lookup",
|
|
2875
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2876
|
-
},
|
|
2877
|
-
"trinsic-test-deeplink": {
|
|
2878
|
-
name: "Mock - DeeplinkToMobile",
|
|
2879
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2880
|
-
},
|
|
2881
|
-
"trinsic-test-deeplink-refresh": {
|
|
2882
|
-
name: "Mock - DeeplinkToMobile + RefreshStepContent",
|
|
2883
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2884
|
-
},
|
|
2885
|
-
"trinsic-test-delayed-results": {
|
|
2886
|
-
name: "Mock - Delayed Results",
|
|
2887
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2888
|
-
},
|
|
2889
|
-
"trinsic-test-handoff": {
|
|
2890
|
-
name: "Mock - Handoff",
|
|
2891
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2892
|
-
},
|
|
2893
|
-
"trinsic-test-offline": {
|
|
2894
|
-
name: "Mock - Offline",
|
|
2895
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2896
|
-
},
|
|
2897
|
-
"trinsic-test-redirect": {
|
|
2898
|
-
name: "Mock - Redirect",
|
|
2899
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2900
|
-
},
|
|
2901
|
-
"trinsic-test-show-content": {
|
|
2902
|
-
name: "Mock - ShowContent",
|
|
2903
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2904
|
-
},
|
|
2905
|
-
"trinsic-test-show-content-refresh": {
|
|
2906
|
-
name: "Mock - ShowContent + RefreshStepContent",
|
|
2907
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2908
|
-
},
|
|
2909
|
-
"trinsic-test-sub-providers": {
|
|
2910
|
-
name: "Mock - Sub-providers",
|
|
2911
|
-
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2912
|
-
}
|
|
2913
|
-
};
|
|
2914
|
-
/**
|
|
2915
|
-
* The map's key form: lowercased, `_` as `-`, and the vendor prefix dropped so
|
|
2916
|
-
* `trinsic_netherlands_idin` (what the SDK and `ms-credential-verification`
|
|
2917
|
-
* use) finds `netherlands-idin` (what Trinsic publishes).
|
|
2918
|
-
*
|
|
2919
|
-
* The `trinsic-test-*` / `trinsic-mock-*` keys keep their prefix: it is part of
|
|
2920
|
-
* the name there, and dropping only the first segment leaves `test-redirect`,
|
|
2921
|
-
* which is still distinct from every real provider.
|
|
2922
|
-
*/
|
|
2923
|
-
function toLogoKey(providerId) {
|
|
2924
|
-
return providerId.toLowerCase().replace(/_/g, "-");
|
|
2925
|
-
}
|
|
2926
|
-
/**
|
|
2927
|
-
* The catalog logo for a provider id, or `undefined` when the map does not
|
|
2928
|
-
* carry it — the card then falls back to the generic digital-ID glyph.
|
|
2929
|
-
*/
|
|
2930
|
-
function getDigitalIdProviderLogo(providerId) {
|
|
2931
|
-
if (!providerId) return;
|
|
2932
|
-
const key = toLogoKey(providerId);
|
|
2933
|
-
return DIGITAL_ID_PROVIDER_LOGOS[key]?.logoUrl ?? DIGITAL_ID_PROVIDER_LOGOS[key.replace(/^trinsic-/, "")]?.logoUrl;
|
|
2934
|
-
}
|
|
2935
|
-
//#endregion
|
|
2936
|
-
//#region src/modules/id/chooser/chooser.helpers.ts
|
|
2937
|
-
/**
|
|
2938
|
-
* The card logo: the backend's own link when it is absolute, else the catalog
|
|
2939
|
-
* logo for the provider (`digitalIdProviderLogos`), else nothing — the card
|
|
2940
|
-
* then renders the generic digital-ID glyph.
|
|
2941
|
-
*
|
|
2942
|
-
* The backend catalog still carries bare asset file names (`idin.svg`) for
|
|
2943
|
-
* some methods. Those would resolve against the host page and render broken,
|
|
2944
|
-
* so they are ignored in favour of the catalog map.
|
|
2945
|
-
*/
|
|
2946
|
-
function toCardLogoSrc(logoUrl, providerId) {
|
|
2947
|
-
if (logoUrl && /^(https?:\/\/|data:)/i.test(logoUrl)) return logoUrl;
|
|
2948
|
-
return getDigitalIdProviderLogo(providerId);
|
|
2949
|
-
}
|
|
2950
|
-
/**
|
|
2951
|
-
* Expands the `digitalIdRedirect` document type into one card per enabled
|
|
2952
|
-
* web-redirect provider (iDIN, FTN, …) in backend order. With no provider
|
|
2953
|
-
* options (e.g. the mDL wallet fallback) the generic redirect card is kept.
|
|
2954
|
-
*/
|
|
2955
|
-
function toDigitalIdRedirectCards(digitalIdRedirectOptions) {
|
|
2956
|
-
const base = CHOOSER_OPTIONS_LOOKUP.digitalIdRedirect;
|
|
2957
|
-
if (digitalIdRedirectOptions.length === 0) return [{
|
|
2958
|
-
...base,
|
|
2959
|
-
key: base.type
|
|
2960
|
-
}];
|
|
2961
|
-
return digitalIdRedirectOptions.map((option) => ({
|
|
2962
|
-
...base,
|
|
2963
|
-
key: `${base.type}:${option.providerId}`,
|
|
2964
|
-
testId: `${base.testId}-${option.providerId}`,
|
|
2965
|
-
providerId: option.providerId,
|
|
2966
|
-
displayName: option.displayName,
|
|
2967
|
-
iconSrc: toCardLogoSrc(option.logoUrl, option.providerId)
|
|
2968
|
-
}));
|
|
2969
|
-
}
|
|
2970
|
-
function getAvailableChooserOptions(availableDocumentTypes, digitalIdRedirectOptions = []) {
|
|
2971
|
-
const cards = [];
|
|
2972
|
-
for (const documentType of availableDocumentTypes) {
|
|
2973
|
-
if (documentType === "digitalIdRedirect") {
|
|
2974
|
-
cards.push(...toDigitalIdRedirectCards(digitalIdRedirectOptions));
|
|
2975
|
-
continue;
|
|
2976
|
-
}
|
|
2977
|
-
const chooserOption = CHOOSER_OPTIONS_LOOKUP[documentType];
|
|
2978
|
-
if (chooserOption) cards.push({
|
|
2979
|
-
...chooserOption,
|
|
2980
|
-
key: chooserOption.type
|
|
2981
|
-
});
|
|
2982
|
-
}
|
|
2983
|
-
return cards.sort((cardA, cardB) => cardA.weight - cardB.weight);
|
|
2984
|
-
}
|
|
2985
|
-
//#endregion
|
|
2986
|
-
//#region src/modules/id/chooser/chooser.tsx
|
|
2987
|
-
var Chooser = ({ manager, state }) => {
|
|
2988
|
-
const { t } = useTranslation();
|
|
2989
|
-
const availableChooserOptions = T(() => getAvailableChooserOptions(state.availableDocumentTypes, state.digitalIdRedirectOptions), [state.availableDocumentTypes, state.digitalIdRedirectOptions]);
|
|
2990
|
-
const handleSelect = (card) => {
|
|
2991
|
-
if (card.providerId) {
|
|
2992
|
-
manager.selectDocument(card.type, { providerId: card.providerId });
|
|
2993
|
-
return;
|
|
2994
|
-
}
|
|
2995
|
-
manager.selectDocument(card.type);
|
|
2996
|
-
};
|
|
2997
|
-
return /* @__PURE__ */ u(Page, {
|
|
2998
|
-
title: t("idv2.chooser.chooseHowToVerifyTitle"),
|
|
2999
|
-
"data-testid": "document-chooser-page",
|
|
3000
|
-
className: "IncodeChooserPage",
|
|
3001
|
-
children: /* @__PURE__ */ u("div", {
|
|
3002
|
-
class: "IncodeChooserContainer",
|
|
3003
|
-
children: /* @__PURE__ */ u(VerificationOptionCardList, { children: availableChooserOptions.map((card) => /* @__PURE__ */ u(VerificationOptionCard, {
|
|
3004
|
-
icon: card.icon,
|
|
3005
|
-
iconSrc: card.iconSrc,
|
|
3006
|
-
title: card.displayName ?? t(card.title),
|
|
3007
|
-
testId: card.testId,
|
|
3008
|
-
tag: card.tag ? t(card.tag) : void 0,
|
|
3009
|
-
onClick: () => handleSelect(card)
|
|
3010
|
-
}, card.key)) })
|
|
3011
|
-
})
|
|
3012
|
-
});
|
|
3013
|
-
};
|
|
3014
|
-
//#endregion
|
|
3015
|
-
//#region src/modules/id/flipAnimation.tsx
|
|
3016
|
-
var FlipAnimation = ({ manager, direction }) => {
|
|
3017
|
-
const [waitingForCamera, setWaitingForCamera] = d(false);
|
|
3018
|
-
const { t } = useTranslation();
|
|
3019
|
-
const handleAnimationComplete = q(async () => {
|
|
3020
|
-
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
3021
|
-
if (direction === "toBack") manager.continueToBack();
|
|
3022
|
-
else manager.continueToFront();
|
|
3023
|
-
setWaitingForCamera(true);
|
|
3024
|
-
}, [direction, manager]);
|
|
3025
|
-
if (waitingForCamera) return /* @__PURE__ */ u(Spinner, {
|
|
3026
|
-
size: "large",
|
|
3027
|
-
title: `${t("webcam.loading")}...`
|
|
3028
|
-
});
|
|
3029
|
-
return /* @__PURE__ */ u("div", {
|
|
3030
|
-
class: "IncodeFlipAnimation",
|
|
3031
|
-
children: [
|
|
3032
|
-
/* @__PURE__ */ u(Title, {
|
|
3033
|
-
role: "status",
|
|
3034
|
-
className: "IncodeFlipAnimationTitle",
|
|
3035
|
-
children: t(direction === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront")
|
|
3036
|
-
}),
|
|
3037
|
-
/* @__PURE__ */ u(Spacer, { size: 32 }),
|
|
3038
|
-
/* @__PURE__ */ u(AnimatedAsset, {
|
|
3039
|
-
name: "id.flip",
|
|
3040
|
-
loop: false,
|
|
3041
|
-
reverse: direction === "toFront",
|
|
3042
|
-
onComplete: handleAnimationComplete
|
|
3043
|
-
})
|
|
3044
|
-
]
|
|
3045
|
-
});
|
|
3046
|
-
};
|
|
3047
|
-
//#endregion
|
|
3048
|
-
export { ID_CAPTURE_LOADING_PHASE as _, CaptureAutoFocusProvider as a, VerificationOptionCard as b, IdExpired as c, CaptureFrame as d, useIdExperiment as f, EXPERIMENT_LIFECYCLE_STATUS as g, CONTINUING_TUTORIAL_PHASES as h, Capture as i, IdError as l, CAMERA_WARMUP_LOADING_PHASES as m, Chooser as n, getCaptureFrameTitle as o, CAMERA_PERMISSION_UX as p, Tutorial as r, IdNoAttempts as s, FlipAnimation as t, canFlipCapturedCard as u, ID_CAPTURE_STATUS as v, VerificationOptionCardList as x, PERMISSION_DIALOG_STATUS as y };
|